diff --git a/dist/1042.a0ec141e.async.js b/dist/1042.600effe8.async.js similarity index 99% rename from dist/1042.a0ec141e.async.js rename to dist/1042.600effe8.async.js index fe32376..733aec6 100644 --- a/dist/1042.a0ec141e.async.js +++ b/dist/1042.600effe8.async.js @@ -1 +1 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[1042],{35611:function(_e,he,t){"use strict";t.d(he,{Z:function(){return ne}});var f=t(28991),a=t(85893),ye=t(18106),se=t(86629),P=t(96156),ge=t(90484),d=t(28481),Re=t(84305),ve=t(39559),m=t(81253),S=t(6999),De=t(75302),A=t(8812),re=t(53621),Te=t(94184),H=t.n(Te),oe=t(97435),je=t(50344),Me=t(80334),F=t(67294),Se=t(58856),Ce=["tab","children"],B=["key","tab","tabKey","disabled","destroyInactiveTabPane","children","className","style","cardProps"];function Ne(n){return n.filter(function(v){return v})}function xe(n,v,l){if(n)return n.map(function(Z){return(0,f.Z)((0,f.Z)({},Z),{},{children:(0,a.jsx)(U,(0,f.Z)((0,f.Z)({},l==null?void 0:l.cardProps),{},{children:Z.children}))})});(0,Me.ET)(!l,"Tabs.TabPane is deprecated. Please use `items` directly.");var y=(0,je.Z)(v).map(function(Z){if(F.isValidElement(Z)){var _=Z.key,L=Z.props,X=L||{},k=X.tab,ae=X.children,ue=(0,m.Z)(X,Ce),ie=(0,f.Z)((0,f.Z)({key:String(_)},ue),{},{children:(0,a.jsx)(U,(0,f.Z)((0,f.Z)({},l==null?void 0:l.cardProps),{},{children:ae})),label:k});return ie}return null});return Ne(y)}var Oe=function(v){var l=v.key,y=v.tab,Z=v.tabKey,_=v.disabled,L=v.destroyInactiveTabPane,X=v.children,k=v.className,ae=v.style,ue=v.cardProps,ie=(0,m.Z)(v,B),Ze=(0,F.useContext)(ve.ZP.ConfigContext),q=Ze.getPrefixCls,Ie=q("pro-card-tabpane"),ce=H()(Ie,k);return(0,a.jsx)(se.Z.TabPane,(0,f.Z)((0,f.Z)({tabKey:Z,tab:y,className:ce,style:ae,disabled:_,destroyInactiveTabPane:L},ie),{},{children:(0,a.jsx)(U,(0,f.Z)((0,f.Z)({},ue),{},{children:X}))}),l)},i=Oe,r=t(21770),s=t(6599),x=function(v){var l=v.actions,y=v.prefixCls;return Array.isArray(l)&&(l==null?void 0:l.length)?(0,a.jsx)("ul",{className:"".concat(y,"-actions"),children:l.map(function(Z,_){return(0,a.jsx)("li",{style:{width:"".concat(100/l.length,"%")},children:(0,a.jsx)("span",{children:Z})},"action-".concat(_))})}):l?(0,a.jsx)("ul",{className:"".concat(y,"-actions"),children:l}):null},e=x,g=t(89032),o=t(15746),$=t(13062),N=t(71230),W=t(61070),T=function(v){var l=v.style,y=v.prefix;return(0,a.jsxs)("div",{className:"".concat(y,"-loading-content"),style:l,children:[(0,a.jsx)(N.Z,{gutter:8,children:(0,a.jsx)(o.Z,{span:22,children:(0,a.jsx)("div",{className:"".concat(y,"-loading-block")})})}),(0,a.jsxs)(N.Z,{gutter:8,children:[(0,a.jsx)(o.Z,{span:8,children:(0,a.jsx)("div",{className:"".concat(y,"-loading-block")})}),(0,a.jsx)(o.Z,{span:15,children:(0,a.jsx)("div",{className:"".concat(y,"-loading-block")})})]}),(0,a.jsxs)(N.Z,{gutter:8,children:[(0,a.jsx)(o.Z,{span:6,children:(0,a.jsx)("div",{className:"".concat(y,"-loading-block")})}),(0,a.jsx)(o.Z,{span:18,children:(0,a.jsx)("div",{className:"".concat(y,"-loading-block")})})]}),(0,a.jsxs)(N.Z,{gutter:8,children:[(0,a.jsx)(o.Z,{span:13,children:(0,a.jsx)("div",{className:"".concat(y,"-loading-block")})}),(0,a.jsx)(o.Z,{span:9,children:(0,a.jsx)("div",{className:"".concat(y,"-loading-block")})})]}),(0,a.jsxs)(N.Z,{gutter:8,children:[(0,a.jsx)(o.Z,{span:4,children:(0,a.jsx)("div",{className:"".concat(y,"-loading-block")})}),(0,a.jsx)(o.Z,{span:3,children:(0,a.jsx)("div",{className:"".concat(y,"-loading-block")})}),(0,a.jsx)(o.Z,{span:16,children:(0,a.jsx)("div",{className:"".concat(y,"-loading-block")})})]})]})},O=T,V=t(43237),z=["className","style","bodyStyle","headStyle","title","subTitle","extra","tip","wrap","layout","loading","gutter","tooltip","split","headerBordered","bordered","children","size","actions","ghost","hoverable","direction","collapsed","collapsible","collapsibleIconRender","defaultCollapsed","onCollapse","checked","onChecked","tabs","type"],D=De.ZP.useBreakpoint,J=F.forwardRef(function(n,v){var l,y,Z,_=n.className,L=n.style,X=n.bodyStyle,k=X===void 0?{}:X,ae=n.headStyle,ue=ae===void 0?{}:ae,ie=n.title,Ze=n.subTitle,q=n.extra,Ie=n.tip,ce=n.wrap,Fe=ce===void 0?!1:ce,M=n.layout,c=n.loading,h=n.gutter,C=h===void 0?0:h,E=n.tooltip,R=n.split,j=n.headerBordered,ee=j===void 0?!1:j,Ee=n.bordered,Ae=Ee===void 0?!1:Ee,Be=n.children,We=n.size,ze=n.actions,Ye=n.ghost,rt=Ye===void 0?!1:Ye,Qe=n.hoverable,ot=Qe===void 0?!1:Qe,it=n.direction,Xe=n.collapsed,ke=n.collapsible,ct=ke===void 0?!1:ke,qe=n.collapsibleIconRender,et=n.defaultCollapsed,dt=et===void 0?!1:et,st=n.onCollapse,vt=n.checked,Ge=n.onChecked,fe=n.tabs,we=n.type,Le=(0,m.Z)(n,z),ut=(0,F.useContext)(ve.ZP.ConfigContext),ft=ut.getPrefixCls,tt=D(),mt=(0,r.Z)(dt,{value:Xe,onChange:st}),nt=(0,d.Z)(mt,2),Ue=nt[0],ht=nt[1],Ve=["xxl","xl","lg","md","sm","xs"],yt=xe(fe==null?void 0:fe.items,Be,fe),gt=function(K){var I=[0,0],te=Array.isArray(K)?K:[K,0];return te.forEach(function(le,me){if((0,ge.Z)(le)==="object")for(var de=0;de=0&&de<=24),te));return(0,a.jsx)("div",{style:(0,f.Z)((0,f.Z)((0,f.Z)({},$e),Ke(be>0,{paddingRight:be/2,paddingLeft:be/2})),Ke(Pe>0,{paddingTop:Pe/2,paddingBottom:Pe/2})),className:Rt,children:F.cloneElement(w)},"pro-card-col-".concat((w==null?void 0:w.key)||K))}return w}),Et=H()("".concat(b),_,(l={},(0,P.Z)(l,"".concat(b,"-border"),Ae),(0,P.Z)(l,"".concat(b,"-contain-card"),He),(0,P.Z)(l,"".concat(b,"-loading"),c),(0,P.Z)(l,"".concat(b,"-split"),R==="vertical"||R==="horizontal"),(0,P.Z)(l,"".concat(b,"-ghost"),rt),(0,P.Z)(l,"".concat(b,"-hoverable"),ot),(0,P.Z)(l,"".concat(b,"-size-").concat(We),We),(0,P.Z)(l,"".concat(b,"-type-").concat(we),we),(0,P.Z)(l,"".concat(b,"-collapse"),Ue),(0,P.Z)(l,"".concat(b,"-checked"),vt),l)),bt=H()("".concat(b,"-body"),(y={},(0,P.Z)(y,"".concat(b,"-body-center"),M==="center"),(0,P.Z)(y,"".concat(b,"-body-direction-column"),R==="horizontal"||it==="column"),(0,P.Z)(y,"".concat(b,"-body-wrap"),Fe&&He),y)),Pt=(0,f.Z)((0,f.Z)((0,f.Z)({},Ke(be>0,{marginRight:-be/2,marginLeft:-be/2})),Ke(Pe>0,{marginTop:-Pe/2,marginBottom:-Pe/2})),k),lt=F.isValidElement(c)?c:(0,a.jsx)(O,{prefix:b,style:k.padding===0||k.padding==="0px"?{padding:24}:void 0}),pe=ct&&Xe===void 0&&(qe?qe({collapsed:Ue}):(0,a.jsx)(A.Z,{rotate:Ue?void 0:90,className:"".concat(b,"-collapsible-icon")}));return(0,a.jsxs)("div",(0,f.Z)((0,f.Z)({className:Et,style:L,ref:v,onClick:function(K){var I;Ge==null||Ge(K),Le==null||(I=Le.onClick)===null||I===void 0||I.call(Le,K)}},(0,oe.Z)(Le,["prefixCls","colSpan"])),{},{children:[(ie||q||pe)&&(0,a.jsxs)("div",{className:H()("".concat(b,"-header"),(Z={},(0,P.Z)(Z,"".concat(b,"-header-border"),ee||we==="inner"),(0,P.Z)(Z,"".concat(b,"-header-collapsible"),pe),Z)),style:ue,onClick:function(){pe&&ht(!Ue)},children:[(0,a.jsxs)("div",{className:"".concat(b,"-title"),children:[pe,(0,a.jsx)(re.Z,{label:ie,tooltip:E||Ie,subTitle:Ze})]}),q&&(0,a.jsx)("div",{className:"".concat(b,"-extra"),children:q})]}),fe?(0,a.jsx)("div",{className:"".concat(b,"-tabs"),children:(0,a.jsx)(se.Z,(0,f.Z)((0,f.Z)({onChange:fe.onChange},fe),{},{items:yt,children:c?lt:Be}))}):(0,a.jsx)("div",{className:bt,style:Pt,children:c?lt:Zt}),(0,a.jsx)(e,{actions:ze,prefixCls:b})]}))}),U=J,G=t(31666),p=function(v){var l=(0,F.useContext)(ve.ZP.ConfigContext),y=l.getPrefixCls,Z=y("pro-card-divider"),_=v.className,L=v.style,X=L===void 0?{}:L,k=v.type,ae=H()(Z,_,(0,P.Z)({},"".concat(Z,"-").concat(k),k));return(0,a.jsx)("div",{className:ae,style:X})},Y=p,u=function(v){return(0,a.jsx)(U,(0,f.Z)({bodyStyle:{padding:0}},v))},Q=U;Q.isProCard=!0,Q.Divider=Y,Q.TabPane=i,Q.Group=u;var ne=Q},50727:function(_e,he,t){"use strict";var f=t(9715),a=t(55843),ye=t(57663),se=t(71577),P=t(96156),ge=t(28481),d=t(81253),Re=t(55507),ve=t(92137),m=t(28991),S=t(85893),De=t(49101),A=t(97462),re=t(952),Te=t(78775),H=t(26369),oe=t(22270),je=t(48171),Me=t(60249),F=t(21770),Se=t(88306),Ce=t(8880),B=t(67294),Ne=t(77153),xe=["onTableChange","maxLength","formItemProps","recordCreatorProps","rowKey","controlled","defaultValue","onChange","editableFormRef"],Oe=["record","position","creatorButtonText","newRecordType","parentKey","style"],i=B.createContext(void 0);function r(e){var g=e.children,o=e.record,$=e.position,N=e.newRecordType,W=e.parentKey,T=(0,B.useContext)(i);return B.cloneElement(g,(0,m.Z)((0,m.Z)({},g.props),{},{onClick:function(){var O=(0,ve.Z)((0,Re.Z)().mark(function z(D){var J,U,G,p;return(0,Re.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,(J=(U=g.props).onClick)===null||J===void 0?void 0:J.call(U,D);case 2:if(p=u.sent,p!==!1){u.next=5;break}return u.abrupt("return");case 5:T==null||(G=T.current)===null||G===void 0||G.addEditRecord(o,{position:$,newRecordType:N,parentKey:W});case 6:case"end":return u.stop()}},z)}));function V(z){return O.apply(this,arguments)}return V}()}))}function s(e){var g,o,$=(0,Te.YB)(),N=e.onTableChange,W=e.maxLength,T=e.formItemProps,O=e.recordCreatorProps,V=e.rowKey,z=e.controlled,D=e.defaultValue,J=e.onChange,U=e.editableFormRef,G=(0,d.Z)(e,xe),p=(0,H.Z)(e.value),Y=(0,B.useRef)(),u=(0,B.useRef)();(0,B.useImperativeHandle)(G.actionRef,function(){return Y.current});var Q=(0,F.Z)(function(){return e.value||D||[]},{value:e.value,onChange:e.onChange}),ne=(0,ge.Z)(Q,2),n=ne[0],v=ne[1],l=B.useMemo(function(){return typeof V=="function"?V:function(M,c){return M[V]||c}},[V]),y=function(c){if(typeof c=="number"&&!e.name){if(c>=n.length)return c;var h=n&&n[c];return l==null?void 0:l(h,c)}if((typeof c=="string"||c>=n.length)&&e.name){var C=n.findIndex(function(E,R){var j;return(l==null||(j=l(E,R))===null||j===void 0?void 0:j.toString())===(c==null?void 0:c.toString())});return C}return c};(0,B.useImperativeHandle)(U,function(){var M=function(C){var E,R;if(C==null)throw new Error("rowIndex is required");var j=y(C),ee=[e.name,(E=j==null?void 0:j.toString())!==null&&E!==void 0?E:""].flat(1).filter(Boolean);return(R=u.current)===null||R===void 0?void 0:R.getFieldValue(ee)},c=function(){var C,E=[e.name].flat(1).filter(Boolean);if(Array.isArray(E)&&E.length===0){var R,j=(R=u.current)===null||R===void 0?void 0:R.getFieldsValue();return Array.isArray(j)?j:Object.keys(j).map(function(ee){return j[ee]})}return(C=u.current)===null||C===void 0?void 0:C.getFieldValue(E)};return(0,m.Z)((0,m.Z)({},u.current),{},{getRowData:M,getRowsData:c,setRowData:function(C,E){var R,j,ee,Ee;if(C==null)throw new Error("rowIndex is required");var Ae=y(C),Be=[e.name,(R=Ae==null?void 0:Ae.toString())!==null&&R!==void 0?R:""].flat(1).filter(Boolean),We=((j=u.current)===null||j===void 0||(ee=j.getFieldsValue)===null||ee===void 0?void 0:ee.call(j))||{},ze=(0,Ce.Z)(We,Be,(0,m.Z)((0,m.Z)({},M(C)),E||{}));return(Ee=u.current)===null||Ee===void 0?void 0:Ee.setFieldsValue(ze)}})}),(0,B.useEffect)(function(){!e.controlled||n.forEach(function(M,c){var h;(h=u.current)===null||h===void 0||h.setFieldsValue((0,P.Z)({},l(M,c),M))},{})},[n,e.controlled]),(0,B.useEffect)(function(){if(e.name){var M;u.current=e==null||(M=e.editable)===null||M===void 0?void 0:M.form}},[(g=e.editable)===null||g===void 0?void 0:g.form,e.name]);var Z=O||{},_=Z.record,L=Z.position,X=Z.creatorButtonText,k=Z.newRecordType,ae=Z.parentKey,ue=Z.style,ie=(0,d.Z)(Z,Oe),Ze=L==="top",q=(0,B.useMemo)(function(){return W&&W<=(n==null?void 0:n.length)?!1:O!==!1&&(0,S.jsx)(r,{record:(0,oe.h)(_,n==null?void 0:n.length,n)||{},position:L,parentKey:(0,oe.h)(ae,n==null?void 0:n.length,n),newRecordType:k,children:(0,S.jsx)(se.Z,(0,m.Z)((0,m.Z)({type:"dashed",style:(0,m.Z)({display:"block",margin:"10px 0",width:"100%"},ue),icon:(0,S.jsx)(De.Z,{})},ie),{},{children:X||$.getMessage("editableTable.action.add","\u6DFB\u52A0\u4E00\u884C\u6570\u636E")}))})},[O,W,n==null?void 0:n.length]),Ie=(0,B.useMemo)(function(){return q?Ze?{components:{header:{wrapper:function(c){var h,C=c.className,E=c.children;return(0,S.jsxs)("thead",{className:C,children:[E,(0,S.jsxs)("tr",{style:{position:"relative"},children:[(0,S.jsx)("td",{colSpan:0,style:{visibility:"hidden"},children:q}),(0,S.jsx)("td",{style:{position:"absolute",left:0,width:"100%"},colSpan:(h=G.columns)===null||h===void 0?void 0:h.length,children:q})]})]})}}}}:{tableViewRender:function(c,h){var C,E;return(0,S.jsxs)(S.Fragment,{children:[(C=(E=e.tableViewRender)===null||E===void 0?void 0:E.call(e,c,h))!==null&&C!==void 0?C:h,q]})}}:{}},[Ze,q]),ce=(0,m.Z)({},e.editable),Fe=(0,je.J)(function(M,c){var h,C,E;if((h=e.editable)===null||h===void 0||(C=h.onValuesChange)===null||C===void 0||C.call(h,M,c),(E=e.onValuesChange)===null||E===void 0||E.call(e,c,M),e.controlled){var R;e==null||(R=e.onChange)===null||R===void 0||R.call(e,c)}});return((e==null?void 0:e.onValuesChange)||((o=e.editable)===null||o===void 0?void 0:o.onValuesChange)||e.controlled&&(e==null?void 0:e.onChange))&&(ce.onValuesChange=Fe),(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(i.Provider,{value:Y,children:(0,S.jsx)(Ne.Z,(0,m.Z)((0,m.Z)((0,m.Z)({search:!1,options:!1,pagination:!1,rowKey:V,revalidateOnFocus:!1},G),Ie),{},{tableLayout:"fixed",actionRef:Y,onChange:N,editable:(0,m.Z)((0,m.Z)({},ce),{},{formProps:(0,m.Z)({formRef:u},ce.formProps)}),dataSource:n,onDataSourceChange:function(c){if(v(c),e.name&&L==="top"){var h,C=(0,Ce.Z)({},[e.name].flat(1).filter(Boolean),c);(h=u.current)===null||h===void 0||h.setFieldsValue(C)}}}))}),e.name?(0,S.jsx)(A.Z,{name:[e.name],children:function(c){var h,C,E=(0,Se.Z)(c,[e.name].flat(1)),R=E==null?void 0:E.find(function(j,ee){return!(0,Me.Z)(j,p==null?void 0:p[ee])});return R&&p&&(e==null||(h=e.editable)===null||h===void 0||(C=h.onValuesChange)===null||C===void 0||C.call(h,R,E)),null}}):null]})}function x(e){var g=re.ZP.useFormInstance();return e.name?(0,S.jsx)(a.Z.Item,(0,m.Z)((0,m.Z)({style:{maxWidth:"100%"}},e==null?void 0:e.formItemProps),{},{name:e.name,children:(0,S.jsx)(s,(0,m.Z)((0,m.Z)({},e),{},{editable:(0,m.Z)((0,m.Z)({},e.editable),{},{form:g})}))})):(0,S.jsx)(s,(0,m.Z)({},e))}x.RecordCreator=r,he.Z=x},6599:function(){},43237:function(){},31666:function(){},61070:function(){},58856:function(){},52953:function(){},4914:function(_e,he,t){"use strict";t.d(he,{K:function(){return F},Z:function(){return Oe}});var f=t(96156),a=t(28481),ye=t(90484),se=t(94184),P=t.n(se),ge=t(50344),d=t(67294),Re=t(53124),ve=t(96159),m=t(24308),S=function(r){var s=r.children;return s},De=S,A=t(22122);function re(i){return i!=null}var Te=function(r){var s=r.itemPrefixCls,x=r.component,e=r.span,g=r.className,o=r.style,$=r.labelStyle,N=r.contentStyle,W=r.bordered,T=r.label,O=r.content,V=r.colon,z=x;if(W){var D;return d.createElement(z,{className:P()((D={},(0,f.Z)(D,"".concat(s,"-item-label"),re(T)),(0,f.Z)(D,"".concat(s,"-item-content"),re(O)),D),g),style:o,colSpan:e},re(T)&&d.createElement("span",{style:$},T),re(O)&&d.createElement("span",{style:N},O))}return d.createElement(z,{className:P()("".concat(s,"-item"),g),style:o,colSpan:e},d.createElement("div",{className:"".concat(s,"-item-container")},(T||T===0)&&d.createElement("span",{className:P()("".concat(s,"-item-label"),(0,f.Z)({},"".concat(s,"-item-no-colon"),!V)),style:$},T),(O||O===0)&&d.createElement("span",{className:P()("".concat(s,"-item-content")),style:N},O)))},H=Te;function oe(i,r,s){var x=r.colon,e=r.prefixCls,g=r.bordered,o=s.component,$=s.type,N=s.showLabel,W=s.showContent,T=s.labelStyle,O=s.contentStyle;return i.map(function(V,z){var D=V.props,J=D.label,U=D.children,G=D.prefixCls,p=G===void 0?e:G,Y=D.className,u=D.style,Q=D.labelStyle,ne=D.contentStyle,n=D.span,v=n===void 0?1:n,l=V.key;return typeof o=="string"?d.createElement(H,{key:"".concat($,"-").concat(l||z),className:Y,style:u,labelStyle:(0,A.Z)((0,A.Z)({},T),Q),contentStyle:(0,A.Z)((0,A.Z)({},O),ne),span:v,colon:x,component:o,itemPrefixCls:p,bordered:g,label:N?J:null,content:W?U:null}):[d.createElement(H,{key:"label-".concat(l||z),className:Y,style:(0,A.Z)((0,A.Z)((0,A.Z)({},T),u),Q),span:1,colon:x,component:o[0],itemPrefixCls:p,bordered:g,label:J}),d.createElement(H,{key:"content-".concat(l||z),className:Y,style:(0,A.Z)((0,A.Z)((0,A.Z)({},O),u),ne),span:v*2-1,component:o[1],itemPrefixCls:p,bordered:g,content:U})]})}var je=function(r){var s=d.useContext(F),x=r.prefixCls,e=r.vertical,g=r.row,o=r.index,$=r.bordered;return e?d.createElement(d.Fragment,null,d.createElement("tr",{key:"label-".concat(o),className:"".concat(x,"-row")},oe(g,r,(0,A.Z)({component:"th",type:"label",showLabel:!0},s))),d.createElement("tr",{key:"content-".concat(o),className:"".concat(x,"-row")},oe(g,r,(0,A.Z)({component:"td",type:"content",showContent:!0},s)))):d.createElement("tr",{key:o,className:"".concat(x,"-row")},oe(g,r,(0,A.Z)({component:$?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0},s)))},Me=je,F=d.createContext({}),Se={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1};function Ce(i,r){if(typeof i=="number")return i;if((0,ye.Z)(i)==="object")for(var s=0;ss)&&(x=(0,ve.Tm)(i,{span:s})),x}function Ne(i,r){var s=(0,ge.Z)(i).filter(function(o){return o}),x=[],e=[],g=r;return s.forEach(function(o,$){var N,W=(N=o.props)===null||N===void 0?void 0:N.span,T=W||1;if($===s.length-1){e.push(B(o,W,g)),x.push(e);return}T=0&&de<=24),te));return(0,a.jsx)("div",{style:(0,f.Z)((0,f.Z)((0,f.Z)({},$e),Ke(be>0,{paddingRight:be/2,paddingLeft:be/2})),Ke(Pe>0,{paddingTop:Pe/2,paddingBottom:Pe/2})),className:Rt,children:F.cloneElement(w)},"pro-card-col-".concat((w==null?void 0:w.key)||K))}return w}),Et=H()("".concat(b),_,(l={},(0,P.Z)(l,"".concat(b,"-border"),Ae),(0,P.Z)(l,"".concat(b,"-contain-card"),He),(0,P.Z)(l,"".concat(b,"-loading"),c),(0,P.Z)(l,"".concat(b,"-split"),R==="vertical"||R==="horizontal"),(0,P.Z)(l,"".concat(b,"-ghost"),rt),(0,P.Z)(l,"".concat(b,"-hoverable"),ot),(0,P.Z)(l,"".concat(b,"-size-").concat(We),We),(0,P.Z)(l,"".concat(b,"-type-").concat(we),we),(0,P.Z)(l,"".concat(b,"-collapse"),Ue),(0,P.Z)(l,"".concat(b,"-checked"),vt),l)),bt=H()("".concat(b,"-body"),(y={},(0,P.Z)(y,"".concat(b,"-body-center"),M==="center"),(0,P.Z)(y,"".concat(b,"-body-direction-column"),R==="horizontal"||it==="column"),(0,P.Z)(y,"".concat(b,"-body-wrap"),Fe&&He),y)),Pt=(0,f.Z)((0,f.Z)((0,f.Z)({},Ke(be>0,{marginRight:-be/2,marginLeft:-be/2})),Ke(Pe>0,{marginTop:-Pe/2,marginBottom:-Pe/2})),k),lt=F.isValidElement(c)?c:(0,a.jsx)(O,{prefix:b,style:k.padding===0||k.padding==="0px"?{padding:24}:void 0}),pe=ct&&Xe===void 0&&(qe?qe({collapsed:Ue}):(0,a.jsx)(A.Z,{rotate:Ue?void 0:90,className:"".concat(b,"-collapsible-icon")}));return(0,a.jsxs)("div",(0,f.Z)((0,f.Z)({className:Et,style:L,ref:v,onClick:function(K){var I;Ge==null||Ge(K),Le==null||(I=Le.onClick)===null||I===void 0||I.call(Le,K)}},(0,oe.Z)(Le,["prefixCls","colSpan"])),{},{children:[(ie||q||pe)&&(0,a.jsxs)("div",{className:H()("".concat(b,"-header"),(Z={},(0,P.Z)(Z,"".concat(b,"-header-border"),ee||we==="inner"),(0,P.Z)(Z,"".concat(b,"-header-collapsible"),pe),Z)),style:ue,onClick:function(){pe&&ht(!Ue)},children:[(0,a.jsxs)("div",{className:"".concat(b,"-title"),children:[pe,(0,a.jsx)(re.Z,{label:ie,tooltip:E||Ie,subTitle:Ze})]}),q&&(0,a.jsx)("div",{className:"".concat(b,"-extra"),children:q})]}),fe?(0,a.jsx)("div",{className:"".concat(b,"-tabs"),children:(0,a.jsx)(se.Z,(0,f.Z)((0,f.Z)({onChange:fe.onChange},fe),{},{items:yt,children:c?lt:Be}))}):(0,a.jsx)("div",{className:bt,style:Pt,children:c?lt:Zt}),(0,a.jsx)(e,{actions:ze,prefixCls:b})]}))}),U=J,G=t(31666),p=function(v){var l=(0,F.useContext)(ve.ZP.ConfigContext),y=l.getPrefixCls,Z=y("pro-card-divider"),_=v.className,L=v.style,X=L===void 0?{}:L,k=v.type,ae=H()(Z,_,(0,P.Z)({},"".concat(Z,"-").concat(k),k));return(0,a.jsx)("div",{className:ae,style:X})},Y=p,u=function(v){return(0,a.jsx)(U,(0,f.Z)({bodyStyle:{padding:0}},v))},Q=U;Q.isProCard=!0,Q.Divider=Y,Q.TabPane=i,Q.Group=u;var ne=Q},50727:function(_e,he,t){"use strict";var f=t(9715),a=t(55843),ye=t(57663),se=t(71577),P=t(96156),ge=t(28481),d=t(81253),Re=t(55507),ve=t(92137),m=t(28991),S=t(85893),De=t(49101),A=t(97462),re=t(952),Te=t(78775),H=t(26369),oe=t(22270),je=t(48171),Me=t(60249),F=t(21770),Se=t(88306),Ce=t(8880),B=t(67294),Ne=t(77153),xe=["onTableChange","maxLength","formItemProps","recordCreatorProps","rowKey","controlled","defaultValue","onChange","editableFormRef"],Oe=["record","position","creatorButtonText","newRecordType","parentKey","style"],i=B.createContext(void 0);function r(e){var g=e.children,o=e.record,$=e.position,N=e.newRecordType,W=e.parentKey,T=(0,B.useContext)(i);return B.cloneElement(g,(0,m.Z)((0,m.Z)({},g.props),{},{onClick:function(){var O=(0,ve.Z)((0,Re.Z)().mark(function z(D){var J,U,G,p;return(0,Re.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,(J=(U=g.props).onClick)===null||J===void 0?void 0:J.call(U,D);case 2:if(p=u.sent,p!==!1){u.next=5;break}return u.abrupt("return");case 5:T==null||(G=T.current)===null||G===void 0||G.addEditRecord(o,{position:$,newRecordType:N,parentKey:W});case 6:case"end":return u.stop()}},z)}));function V(z){return O.apply(this,arguments)}return V}()}))}function s(e){var g,o,$=(0,Te.YB)(),N=e.onTableChange,W=e.maxLength,T=e.formItemProps,O=e.recordCreatorProps,V=e.rowKey,z=e.controlled,D=e.defaultValue,J=e.onChange,U=e.editableFormRef,G=(0,d.Z)(e,xe),p=(0,H.Z)(e.value),Y=(0,B.useRef)(),u=(0,B.useRef)();(0,B.useImperativeHandle)(G.actionRef,function(){return Y.current});var Q=(0,F.Z)(function(){return e.value||D||[]},{value:e.value,onChange:e.onChange}),ne=(0,ge.Z)(Q,2),n=ne[0],v=ne[1],l=B.useMemo(function(){return typeof V=="function"?V:function(M,c){return M[V]||c}},[V]),y=function(c){if(typeof c=="number"&&!e.name){if(c>=n.length)return c;var h=n&&n[c];return l==null?void 0:l(h,c)}if((typeof c=="string"||c>=n.length)&&e.name){var C=n.findIndex(function(E,R){var j;return(l==null||(j=l(E,R))===null||j===void 0?void 0:j.toString())===(c==null?void 0:c.toString())});return C}return c};(0,B.useImperativeHandle)(U,function(){var M=function(C){var E,R;if(C==null)throw new Error("rowIndex is required");var j=y(C),ee=[e.name,(E=j==null?void 0:j.toString())!==null&&E!==void 0?E:""].flat(1).filter(Boolean);return(R=u.current)===null||R===void 0?void 0:R.getFieldValue(ee)},c=function(){var C,E=[e.name].flat(1).filter(Boolean);if(Array.isArray(E)&&E.length===0){var R,j=(R=u.current)===null||R===void 0?void 0:R.getFieldsValue();return Array.isArray(j)?j:Object.keys(j).map(function(ee){return j[ee]})}return(C=u.current)===null||C===void 0?void 0:C.getFieldValue(E)};return(0,m.Z)((0,m.Z)({},u.current),{},{getRowData:M,getRowsData:c,setRowData:function(C,E){var R,j,ee,Ee;if(C==null)throw new Error("rowIndex is required");var Ae=y(C),Be=[e.name,(R=Ae==null?void 0:Ae.toString())!==null&&R!==void 0?R:""].flat(1).filter(Boolean),We=((j=u.current)===null||j===void 0||(ee=j.getFieldsValue)===null||ee===void 0?void 0:ee.call(j))||{},ze=(0,Ce.Z)(We,Be,(0,m.Z)((0,m.Z)({},M(C)),E||{}));return(Ee=u.current)===null||Ee===void 0?void 0:Ee.setFieldsValue(ze)}})}),(0,B.useEffect)(function(){!e.controlled||n.forEach(function(M,c){var h;(h=u.current)===null||h===void 0||h.setFieldsValue((0,P.Z)({},l(M,c),M))},{})},[n,e.controlled]),(0,B.useEffect)(function(){if(e.name){var M;u.current=e==null||(M=e.editable)===null||M===void 0?void 0:M.form}},[(g=e.editable)===null||g===void 0?void 0:g.form,e.name]);var Z=O||{},_=Z.record,L=Z.position,X=Z.creatorButtonText,k=Z.newRecordType,ae=Z.parentKey,ue=Z.style,ie=(0,d.Z)(Z,Oe),Ze=L==="top",q=(0,B.useMemo)(function(){return W&&W<=(n==null?void 0:n.length)?!1:O!==!1&&(0,S.jsx)(r,{record:(0,oe.h)(_,n==null?void 0:n.length,n)||{},position:L,parentKey:(0,oe.h)(ae,n==null?void 0:n.length,n),newRecordType:k,children:(0,S.jsx)(se.Z,(0,m.Z)((0,m.Z)({type:"dashed",style:(0,m.Z)({display:"block",margin:"10px 0",width:"100%"},ue),icon:(0,S.jsx)(De.Z,{})},ie),{},{children:X||$.getMessage("editableTable.action.add","\u6DFB\u52A0\u4E00\u884C\u6570\u636E")}))})},[O,W,n==null?void 0:n.length]),Ie=(0,B.useMemo)(function(){return q?Ze?{components:{header:{wrapper:function(c){var h,C=c.className,E=c.children;return(0,S.jsxs)("thead",{className:C,children:[E,(0,S.jsxs)("tr",{style:{position:"relative"},children:[(0,S.jsx)("td",{colSpan:0,style:{visibility:"hidden"},children:q}),(0,S.jsx)("td",{style:{position:"absolute",left:0,width:"100%"},colSpan:(h=G.columns)===null||h===void 0?void 0:h.length,children:q})]})]})}}}}:{tableViewRender:function(c,h){var C,E;return(0,S.jsxs)(S.Fragment,{children:[(C=(E=e.tableViewRender)===null||E===void 0?void 0:E.call(e,c,h))!==null&&C!==void 0?C:h,q]})}}:{}},[Ze,q]),ce=(0,m.Z)({},e.editable),Fe=(0,je.J)(function(M,c){var h,C,E;if((h=e.editable)===null||h===void 0||(C=h.onValuesChange)===null||C===void 0||C.call(h,M,c),(E=e.onValuesChange)===null||E===void 0||E.call(e,c,M),e.controlled){var R;e==null||(R=e.onChange)===null||R===void 0||R.call(e,c)}});return((e==null?void 0:e.onValuesChange)||((o=e.editable)===null||o===void 0?void 0:o.onValuesChange)||e.controlled&&(e==null?void 0:e.onChange))&&(ce.onValuesChange=Fe),(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(i.Provider,{value:Y,children:(0,S.jsx)(Ne.Z,(0,m.Z)((0,m.Z)((0,m.Z)({search:!1,options:!1,pagination:!1,rowKey:V,revalidateOnFocus:!1},G),Ie),{},{tableLayout:"fixed",actionRef:Y,onChange:N,editable:(0,m.Z)((0,m.Z)({},ce),{},{formProps:(0,m.Z)({formRef:u},ce.formProps)}),dataSource:n,onDataSourceChange:function(c){if(v(c),e.name&&L==="top"){var h,C=(0,Ce.Z)({},[e.name].flat(1).filter(Boolean),c);(h=u.current)===null||h===void 0||h.setFieldsValue(C)}}}))}),e.name?(0,S.jsx)(A.Z,{name:[e.name],children:function(c){var h,C,E=(0,Se.Z)(c,[e.name].flat(1)),R=E==null?void 0:E.find(function(j,ee){return!(0,Me.Z)(j,p==null?void 0:p[ee])});return R&&p&&(e==null||(h=e.editable)===null||h===void 0||(C=h.onValuesChange)===null||C===void 0||C.call(h,R,E)),null}}):null]})}function x(e){var g=re.ZP.useFormInstance();return e.name?(0,S.jsx)(a.Z.Item,(0,m.Z)((0,m.Z)({style:{maxWidth:"100%"}},e==null?void 0:e.formItemProps),{},{name:e.name,children:(0,S.jsx)(s,(0,m.Z)((0,m.Z)({},e),{},{editable:(0,m.Z)((0,m.Z)({},e.editable),{},{form:g})}))})):(0,S.jsx)(s,(0,m.Z)({},e))}x.RecordCreator=r,he.Z=x},6599:function(){},43237:function(){},31666:function(){},61070:function(){},58856:function(){},52953:function(){},4914:function(_e,he,t){"use strict";t.d(he,{K:function(){return F},Z:function(){return Oe}});var f=t(96156),a=t(28481),ye=t(90484),se=t(94184),P=t.n(se),ge=t(50344),d=t(67294),Re=t(53124),ve=t(96159),m=t(24308),S=function(r){var s=r.children;return s},De=S,A=t(22122);function re(i){return i!=null}var Te=function(r){var s=r.itemPrefixCls,x=r.component,e=r.span,g=r.className,o=r.style,$=r.labelStyle,N=r.contentStyle,W=r.bordered,T=r.label,O=r.content,V=r.colon,z=x;if(W){var D;return d.createElement(z,{className:P()((D={},(0,f.Z)(D,"".concat(s,"-item-label"),re(T)),(0,f.Z)(D,"".concat(s,"-item-content"),re(O)),D),g),style:o,colSpan:e},re(T)&&d.createElement("span",{style:$},T),re(O)&&d.createElement("span",{style:N},O))}return d.createElement(z,{className:P()("".concat(s,"-item"),g),style:o,colSpan:e},d.createElement("div",{className:"".concat(s,"-item-container")},(T||T===0)&&d.createElement("span",{className:P()("".concat(s,"-item-label"),(0,f.Z)({},"".concat(s,"-item-no-colon"),!V)),style:$},T),(O||O===0)&&d.createElement("span",{className:P()("".concat(s,"-item-content")),style:N},O)))},H=Te;function oe(i,r,s){var x=r.colon,e=r.prefixCls,g=r.bordered,o=s.component,$=s.type,N=s.showLabel,W=s.showContent,T=s.labelStyle,O=s.contentStyle;return i.map(function(V,z){var D=V.props,J=D.label,U=D.children,G=D.prefixCls,p=G===void 0?e:G,Y=D.className,u=D.style,Q=D.labelStyle,ne=D.contentStyle,n=D.span,v=n===void 0?1:n,l=V.key;return typeof o=="string"?d.createElement(H,{key:"".concat($,"-").concat(l||z),className:Y,style:u,labelStyle:(0,A.Z)((0,A.Z)({},T),Q),contentStyle:(0,A.Z)((0,A.Z)({},O),ne),span:v,colon:x,component:o,itemPrefixCls:p,bordered:g,label:N?J:null,content:W?U:null}):[d.createElement(H,{key:"label-".concat(l||z),className:Y,style:(0,A.Z)((0,A.Z)((0,A.Z)({},T),u),Q),span:1,colon:x,component:o[0],itemPrefixCls:p,bordered:g,label:J}),d.createElement(H,{key:"content-".concat(l||z),className:Y,style:(0,A.Z)((0,A.Z)((0,A.Z)({},O),u),ne),span:v*2-1,component:o[1],itemPrefixCls:p,bordered:g,content:U})]})}var je=function(r){var s=d.useContext(F),x=r.prefixCls,e=r.vertical,g=r.row,o=r.index,$=r.bordered;return e?d.createElement(d.Fragment,null,d.createElement("tr",{key:"label-".concat(o),className:"".concat(x,"-row")},oe(g,r,(0,A.Z)({component:"th",type:"label",showLabel:!0},s))),d.createElement("tr",{key:"content-".concat(o),className:"".concat(x,"-row")},oe(g,r,(0,A.Z)({component:"td",type:"content",showContent:!0},s)))):d.createElement("tr",{key:o,className:"".concat(x,"-row")},oe(g,r,(0,A.Z)({component:$?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0},s)))},Me=je,F=d.createContext({}),Se={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1};function Ce(i,r){if(typeof i=="number")return i;if((0,ye.Z)(i)==="object")for(var s=0;ss)&&(x=(0,ve.Tm)(i,{span:s})),x}function Ne(i,r){var s=(0,ge.Z)(i).filter(function(o){return o}),x=[],e=[],g=r;return s.forEach(function(o,$){var N,W=(N=o.props)===null||N===void 0?void 0:N.span,T=W||1;if($===s.length-1){e.push(B(o,W,g)),x.push(e);return}T0&&arguments[0]!==void 0?arguments[0]:10,e=t.useState(!1),r=(0,v.Z)(e,2),a=r[0],c=r[1],l=t.useRef(null),m=function(){window.clearTimeout(l.current)};t.useEffect(function(){return m},[]);var p=function(I,R){m(),l.current=window.setTimeout(function(){c(I),R&&R()},n)};return[a,p,m]}function J(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,e=t.useRef(null),r=t.useRef(null);t.useEffect(function(){return function(){window.clearTimeout(r.current)}},[]);function a(c){(c||e.current===null)&&(e.current=c),window.clearTimeout(r.current),r.current=window.setTimeout(function(){e.current=null},n)}return[function(){return e.current},a]}function Ve(n,e,r,a){var c=t.useRef(null);c.current={open:e,triggerOpen:r,customizedTrigger:a},t.useEffect(function(){function l(m){var p;if(!((p=c.current)!==null&&p!==void 0&&p.customizedTrigger)){var S=m.target;S.shadowRoot&&m.composed&&(S=m.composedPath()[0]||S),c.current.open&&n().filter(function(I){return I}).every(function(I){return!I.contains(S)&&I!==S})&&c.current.triggerOpen(!1)}}return window.addEventListener("mousedown",l),function(){return window.removeEventListener("mousedown",l)}},[])}var ze=i(64217),In=i(19214),dn=function(e){var r=e.className,a=e.customizeIcon,c=e.customizeIconProps,l=e.onMouseDown,m=e.onClick,p=e.children,S;return typeof a=="function"?S=a(c):S=a,t.createElement("span",{className:r,onMouseDown:function(R){R.preventDefault(),l&&l(R)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:m,"aria-hidden":!0},S!==void 0?S:t.createElement("span",{className:Re()(r.split(/\s+/).map(function(I){return"".concat(I,"-icon")}))},p))},ln=dn,Vn=function(e,r){var a,c,l=e.prefixCls,m=e.id,p=e.inputElement,S=e.disabled,I=e.tabIndex,R=e.autoFocus,h=e.autoComplete,y=e.editable,g=e.activeDescendantId,T=e.value,d=e.maxLength,b=e.onKeyDown,D=e.onMouseDown,k=e.onChange,z=e.onPaste,pe=e.onCompositionStart,ne=e.onCompositionEnd,H=e.open,me=e.attrs,Y=p||t.createElement("input",null),q=Y,ce=q.ref,Ce=q.props,De=Ce.onKeyDown,he=Ce.onChange,ye=Ce.onMouseDown,Ie=Ce.onCompositionStart,X=Ce.onCompositionEnd,ee=Ce.style;return(0,de.Kp)(!("maxLength"in Y.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),Y=t.cloneElement(Y,(0,N.Z)((0,N.Z)((0,N.Z)({type:"search"},Ce),{},{id:m,ref:(0,$e.sQ)(r,ce),disabled:S,tabIndex:I,autoComplete:h||"off",autoFocus:R,className:Re()("".concat(l,"-selection-search-input"),(a=Y)===null||a===void 0||(c=a.props)===null||c===void 0?void 0:c.className),role:"combobox","aria-expanded":H,"aria-haspopup":"listbox","aria-owns":"".concat(m,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(m,"_list"),"aria-activedescendant":g},me),{},{value:y?T:"",maxLength:d,readOnly:!y,unselectable:y?null:"on",style:(0,N.Z)((0,N.Z)({},ee),{},{opacity:y?null:0}),onKeyDown:function(te){b(te),De&&De(te)},onMouseDown:function(te){D(te),ye&&ye(te)},onChange:function(te){k(te),he&&he(te)},onCompositionStart:function(te){pe(te),Ie&&Ie(te)},onCompositionEnd:function(te){ne(te),X&&X(te)},onPaste:z})),Y},un=t.forwardRef(Vn);un.displayName="Input";var _n=un;function An(n){return Array.isArray(n)?n:n!==void 0?[n]:[]}var ft=typeof window!="undefined"&&window.document&&window.document.documentElement,Fn=ft;function Sn(n){return n!=null}function En(n){return["string","number"].includes((0,be.Z)(n))}function nt(n){var e=void 0;return n&&(En(n.title)?e=n.title.toString():En(n.label)&&(e=n.label.toString())),e}function Rn(n,e){Fn?t.useLayoutEffect(n,e):t.useEffect(n,e)}function Tt(n){var e;return(e=n.key)!==null&&e!==void 0?e:n.value}var bt=function(e){e.preventDefault(),e.stopPropagation()},Nt=function(e){var r=e.id,a=e.prefixCls,c=e.values,l=e.open,m=e.searchValue,p=e.autoClearSearchValue,S=e.inputRef,I=e.placeholder,R=e.disabled,h=e.mode,y=e.showSearch,g=e.autoFocus,T=e.autoComplete,d=e.activeDescendantId,b=e.tabIndex,D=e.removeIcon,k=e.maxTagCount,z=e.maxTagTextLength,pe=e.maxTagPlaceholder,ne=pe===void 0?function(Se){return"+ ".concat(Se.length," ...")}:pe,H=e.tagRender,me=e.onToggleOpen,Y=e.onRemove,q=e.onInputChange,ce=e.onInputPaste,Ce=e.onInputKeyDown,De=e.onInputMouseDown,he=e.onInputCompositionStart,ye=e.onInputCompositionEnd,Ie=t.useRef(null),X=(0,t.useState)(0),ee=(0,v.Z)(X,2),Q=ee[0],te=ee[1],qe=(0,t.useState)(!1),Ue=(0,v.Z)(qe,2),Wn=Ue[0],Ze=Ue[1],G="".concat(a,"-selection"),x=l||h==="multiple"&&p===!1||h==="tags"?m:"",_=h==="tags"||h==="multiple"&&p===!1||y&&(l||Wn);Rn(function(){te(Ie.current.scrollWidth)},[x]);function se(Se,Fe,Te,en,on){return t.createElement("span",{className:Re()("".concat(G,"-item"),(0,U.Z)({},"".concat(G,"-item-disabled"),Te)),title:nt(Se)},t.createElement("span",{className:"".concat(G,"-item-content")},Fe),en&&t.createElement(ln,{className:"".concat(G,"-item-remove"),onMouseDown:bt,onClick:on,customizeIcon:D},"\xD7"))}function ae(Se,Fe,Te,en,on){var cn=function(fe){bt(fe),me(!l)};return t.createElement("span",{onMouseDown:cn},H({label:Fe,value:Se,disabled:Te,closable:en,onClose:on}))}function le(Se){var Fe=Se.disabled,Te=Se.label,en=Se.value,on=!R&&!Fe,cn=Te;if(typeof z=="number"&&(typeof Te=="string"||typeof Te=="number")){var ke=String(cn);ke.length>z&&(cn="".concat(ke.slice(0,z),"..."))}var fe=function(an){an&&an.stopPropagation(),Y(Se)};return typeof H=="function"?ae(en,cn,Fe,on,fe):se(Se,cn,Fe,on,fe)}function Pe(Se){var Fe=typeof ne=="function"?ne(Se):ne;return se({title:Fe},Fe,!1)}var We=t.createElement("div",{className:"".concat(G,"-search"),style:{width:Q},onFocus:function(){Ze(!0)},onBlur:function(){Ze(!1)}},t.createElement(_n,{ref:S,open:l,prefixCls:a,id:r,inputElement:null,disabled:R,autoFocus:g,autoComplete:T,editable:_,activeDescendantId:d,value:x,onKeyDown:Ce,onMouseDown:De,onChange:q,onPaste:ce,onCompositionStart:he,onCompositionEnd:ye,tabIndex:b,attrs:(0,ze.Z)(e,!0)}),t.createElement("span",{ref:Ie,className:"".concat(G,"-search-mirror"),"aria-hidden":!0},x,"\xA0")),mn=t.createElement(In.Z,{prefixCls:"".concat(G,"-overflow"),data:c,renderItem:le,renderRest:Pe,suffix:We,itemKey:Tt,maxCount:k});return t.createElement(t.Fragment,null,mn,!c.length&&!x&&t.createElement("span",{className:"".concat(G,"-placeholder")},I))},Lt=Nt,Vt=function(e){var r=e.inputElement,a=e.prefixCls,c=e.id,l=e.inputRef,m=e.disabled,p=e.autoFocus,S=e.autoComplete,I=e.activeDescendantId,R=e.mode,h=e.open,y=e.values,g=e.placeholder,T=e.tabIndex,d=e.showSearch,b=e.searchValue,D=e.activeValue,k=e.maxLength,z=e.onInputKeyDown,pe=e.onInputMouseDown,ne=e.onInputChange,H=e.onInputPaste,me=e.onInputCompositionStart,Y=e.onInputCompositionEnd,q=t.useState(!1),ce=(0,v.Z)(q,2),Ce=ce[0],De=ce[1],he=R==="combobox",ye=he||d,Ie=y[0],X=b||"";he&&D&&!Ce&&(X=D),t.useEffect(function(){he&&De(!1)},[he,D]);var ee=R!=="combobox"&&!h&&!d?!1:!!X,Q=nt(Ie),te=function(){if(Ie)return null;var Ue=ee?{visibility:"hidden"}:void 0;return t.createElement("span",{className:"".concat(a,"-selection-placeholder"),style:Ue},g)};return t.createElement(t.Fragment,null,t.createElement("span",{className:"".concat(a,"-selection-search")},t.createElement(_n,{ref:l,prefixCls:a,id:c,open:h,inputElement:r,disabled:m,autoFocus:p,autoComplete:S,editable:ye,activeDescendantId:I,value:X,onKeyDown:z,onMouseDown:pe,onChange:function(Ue){De(!0),ne(Ue)},onPaste:H,onCompositionStart:me,onCompositionEnd:Y,tabIndex:T,attrs:(0,ze.Z)(e,!0),maxLength:he?k:void 0})),!he&&Ie&&!ee&&t.createElement("span",{className:"".concat(a,"-selection-item"),title:Q},Ie.label),te())},At=Vt;function Ct(n){return![O.Z.ESC,O.Z.SHIFT,O.Z.BACKSPACE,O.Z.TAB,O.Z.WIN_KEY,O.Z.ALT,O.Z.META,O.Z.WIN_KEY_RIGHT,O.Z.CTRL,O.Z.SEMICOLON,O.Z.EQUALS,O.Z.CAPS_LOCK,O.Z.CONTEXT_MENU,O.Z.F1,O.Z.F2,O.Z.F3,O.Z.F4,O.Z.F5,O.Z.F6,O.Z.F7,O.Z.F8,O.Z.F9,O.Z.F10,O.Z.F11,O.Z.F12].includes(n)}var Ft=function(e,r){var a=(0,t.useRef)(null),c=(0,t.useRef)(!1),l=e.prefixCls,m=e.open,p=e.mode,S=e.showSearch,I=e.tokenWithEnter,R=e.autoClearSearchValue,h=e.onSearch,y=e.onSearchSubmit,g=e.onToggleOpen,T=e.onInputKeyDown,d=e.domRef;t.useImperativeHandle(r,function(){return{focus:function(){a.current.focus()},blur:function(){a.current.blur()}}});var b=J(0),D=(0,v.Z)(b,2),k=D[0],z=D[1],pe=function(ee){var Q=ee.which;(Q===O.Z.UP||Q===O.Z.DOWN)&&ee.preventDefault(),T&&T(ee),Q===O.Z.ENTER&&p==="tags"&&!c.current&&!m&&(y==null||y(ee.target.value)),Ct(Q)&&g(!0)},ne=function(){z(!0)},H=(0,t.useRef)(null),me=function(ee){h(ee,!0,c.current)!==!1&&g(!0)},Y=function(){c.current=!0},q=function(ee){c.current=!1,p!=="combobox"&&me(ee.target.value)},ce=function(ee){var Q=ee.target.value;if(I&&H.current&&/[\r\n]/.test(H.current)){var te=H.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Q=Q.replace(te,H.current)}H.current=null,me(Q)},Ce=function(ee){var Q=ee.clipboardData,te=Q.getData("text");H.current=te},De=function(ee){var Q=ee.target;if(Q!==a.current){var te=document.body.style.msTouchAction!==void 0;te?setTimeout(function(){a.current.focus()}):a.current.focus()}},he=function(ee){var Q=k();ee.target!==a.current&&!Q&&p!=="combobox"&&ee.preventDefault(),(p!=="combobox"&&(!S||!Q)||!m)&&(m&&R!==!1&&h("",!0,!1),g())},ye={inputRef:a,onInputKeyDown:pe,onInputMouseDown:ne,onInputChange:ce,onInputPaste:Ce,onInputCompositionStart:Y,onInputCompositionEnd:q},Ie=p==="multiple"||p==="tags"?t.createElement(Lt,(0,ie.Z)({},e,ye)):t.createElement(At,(0,ie.Z)({},e,ye));return t.createElement("div",{ref:d,className:"".concat(l,"-selector"),onClick:De,onMouseDown:he},Ie)},yt=t.forwardRef(Ft);yt.displayName="Selector";var f=yt,$=i(2306),M=["prefixCls","disabled","visible","children","popupElement","containerWidth","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],o=function(e){var r=e===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:r,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:r,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:r,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:r,adjustY:1}}}},A=function(e,r){var a=e.prefixCls,c=e.disabled,l=e.visible,m=e.children,p=e.popupElement,S=e.containerWidth,I=e.animation,R=e.transitionName,h=e.dropdownStyle,y=e.dropdownClassName,g=e.direction,T=g===void 0?"ltr":g,d=e.placement,b=e.dropdownMatchSelectWidth,D=e.dropdownRender,k=e.dropdownAlign,z=e.getPopupContainer,pe=e.empty,ne=e.getTriggerDOMNode,H=e.onPopupVisibleChange,me=e.onPopupMouseEnter,Y=(0,s.Z)(e,M),q="".concat(a,"-dropdown"),ce=p;D&&(ce=D(p));var Ce=t.useMemo(function(){return o(b)},[b]),De=I?"".concat(q,"-").concat(I):R,he=t.useRef(null);t.useImperativeHandle(r,function(){return{getPopupElement:function(){return he.current}}});var ye=(0,N.Z)({minWidth:S},h);return typeof b=="number"?ye.width=b:b&&(ye.width=S),t.createElement($.Z,(0,ie.Z)({},Y,{showAction:H?["click"]:[],hideAction:H?["click"]:[],popupPlacement:d||(T==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Ce,prefixCls:q,popupTransitionName:De,popup:t.createElement("div",{ref:he,onMouseEnter:me},ce),popupAlign:k,popupVisible:l,getPopupContainer:z,popupClassName:Re()(y,(0,U.Z)({},"".concat(q,"-empty"),pe)),popupStyle:ye,getTriggerDOMNode:ne,onPopupVisibleChange:H}),m)},C=t.forwardRef(A);C.displayName="SelectTrigger";var L=C,u=i(99809);function E(n,e){var r=n.key,a;return"value"in n&&(a=n.value),r!=null?r:a!==void 0?a:"rc-index-key-".concat(e)}function P(n,e){var r=n||{},a=r.label,c=r.value,l=r.options;return{label:a||(e?"children":"label"),value:c||"value",options:l||"options"}}function W(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=e.fieldNames,a=e.childrenAsData,c=[],l=P(r,!1),m=l.label,p=l.value,S=l.options;function I(R,h){R.forEach(function(y){var g=y[m];if(h||!(S in y)){var T=y[p];c.push({key:E(y,c.length),groupOption:h,data:y,label:g,value:T})}else{var d=g;d===void 0&&a&&(d=y.label),c.push({key:E(y,c.length),group:!0,data:y,label:d}),I(y[S],!0)}})}return I(n,!1),c}function F(n){var e=(0,N.Z)({},n);return"props"in e||Object.defineProperty(e,"props",{get:function(){return(0,de.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),e}}),e}function re(n,e){if(!e||!e.length)return null;var r=!1;function a(l,m){var p=(0,u.Z)(m),S=p[0],I=p.slice(1);if(!S)return[l];var R=l.split(S);return r=r||R.length>1,R.reduce(function(h,y){return[].concat((0,oe.Z)(h),(0,oe.Z)(a(y,I)))},[]).filter(function(h){return h})}var c=a(n,e);return r?c:null}var ue=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","showArrow","inputIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],ge=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function Ae(n){return n==="tags"||n==="multiple"}var _e=t.forwardRef(function(n,e){var r,a,c=n.id,l=n.prefixCls,m=n.className,p=n.showSearch,S=n.tagRender,I=n.direction,R=n.omitDomProps,h=n.displayValues,y=n.onDisplayValuesChange,g=n.emptyOptions,T=n.notFoundContent,d=T===void 0?"Not Found":T,b=n.onClear,D=n.mode,k=n.disabled,z=n.loading,pe=n.getInputElement,ne=n.getRawInputElement,H=n.open,me=n.defaultOpen,Y=n.onDropdownVisibleChange,q=n.activeValue,ce=n.onActiveValueChange,Ce=n.activeDescendantId,De=n.searchValue,he=n.autoClearSearchValue,ye=n.onSearch,Ie=n.onSearchSplit,X=n.tokenSeparators,ee=n.allowClear,Q=n.showArrow,te=n.inputIcon,qe=n.clearIcon,Ue=n.OptionList,Wn=n.animation,Ze=n.transitionName,G=n.dropdownStyle,x=n.dropdownClassName,_=n.dropdownMatchSelectWidth,se=n.dropdownRender,ae=n.dropdownAlign,le=n.placement,Pe=n.getPopupContainer,We=n.showAction,mn=We===void 0?[]:We,Se=n.onFocus,Fe=n.onBlur,Te=n.onKeyUp,en=n.onKeyDown,on=n.onMouseDown,cn=(0,s.Z)(n,ue),ke=Ae(D),fe=(p!==void 0?p:ke)||D==="combobox",On=(0,N.Z)({},cn);ge.forEach(function(B){delete On[B]}),R==null||R.forEach(function(B){delete On[B]});var an=t.useState(!1),nn=(0,v.Z)(an,2),kn=nn[0],Jn=nn[1];t.useEffect(function(){Jn((0,Ln.Z)())},[]);var Cn=t.useRef(null),hn=t.useRef(null),Pn=t.useRef(null),gn=t.useRef(null),sn=t.useRef(null),zt=Ye(),ut=(0,v.Z)(zt,3),gt=ut[0],Bn=ut[1],jt=ut[2];t.useImperativeHandle(e,function(){var B,V;return{focus:(B=gn.current)===null||B===void 0?void 0:B.focus,blur:(V=gn.current)===null||V===void 0?void 0:V.blur,scrollTo:function(tn){var Oe;return(Oe=sn.current)===null||Oe===void 0?void 0:Oe.scrollTo(tn)}}});var fn=t.useMemo(function(){var B;if(D!=="combobox")return De;var V=(B=h[0])===null||B===void 0?void 0:B.value;return typeof V=="string"||typeof V=="number"?String(V):""},[De,D,h]),xt=D==="combobox"&&typeof pe=="function"&&pe()||null,yn=typeof ne=="function"&&ne(),Zt=(0,$e.x1)(hn,yn==null||(r=yn.props)===null||r===void 0?void 0:r.ref),Ot=(0,we.Z)(void 0,{defaultValue:me,value:H}),qn=(0,v.Z)(Ot,2),pt=qn[0],St=qn[1],Ne=pt,Pt=!d&&g;(k||Pt&&Ne&&D==="combobox")&&(Ne=!1);var $n=Pt?!1:Ne,w=t.useCallback(function(B){var V=B!==void 0?B:!Ne;k||(St(V),Ne!==V&&(Y==null||Y(V)))},[k,Ne,St,Y]),K=t.useMemo(function(){return(X||[]).some(function(B){return[` +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[2339],{88258:function(Yn,Ge,i){"use strict";var ie=i(67294),oe=i(53124),U=i(14277),N=function(s){return ie.createElement(oe.C,null,function(Ee){var we=Ee.getPrefixCls,de=we("empty");switch(s){case"Table":case"List":return ie.createElement(U.Z,{image:U.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return ie.createElement(U.Z,{image:U.Z.PRESENTED_IMAGE_SIMPLE,className:"".concat(de,"-small")});default:return ie.createElement(U.Z,null)}})};Ge.Z=N},14277:function(Yn,Ge,i){"use strict";i.d(Ge,{Z:function(){return $e}});var ie=i(96156),oe=i(22122),U=i(94184),N=i.n(U),v=i(67294),s=i(53124),Ee=i(42051),we=function(){var Me=v.useContext(s.E_),Ye=Me.getPrefixCls,J=Ye("empty-img-default");return v.createElement("svg",{className:J,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},v.createElement("g",{fill:"none",fillRule:"evenodd"},v.createElement("g",{transform:"translate(24 31.67)"},v.createElement("ellipse",{className:"".concat(J,"-ellipse"),cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),v.createElement("path",{className:"".concat(J,"-path-1"),d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z"}),v.createElement("path",{className:"".concat(J,"-path-2"),d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",transform:"translate(13.56)"}),v.createElement("path",{className:"".concat(J,"-path-3"),d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z"}),v.createElement("path",{className:"".concat(J,"-path-4"),d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z"})),v.createElement("path",{className:"".concat(J,"-path-5"),d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z"}),v.createElement("g",{className:"".concat(J,"-g"),transform:"translate(149.65 15.383)"},v.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),v.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},de=we,t=function(){var Me=v.useContext(s.E_),Ye=Me.getPrefixCls,J=Ye("empty-img-simple");return v.createElement("svg",{className:J,width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},v.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},v.createElement("ellipse",{className:"".concat(J,"-ellipse"),cx:"32",cy:"33",rx:"32",ry:"7"}),v.createElement("g",{className:"".concat(J,"-g"),fillRule:"nonzero"},v.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),v.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",className:"".concat(J,"-path")}))))},Le=t,Re=function(Ke,Me){var Ye={};for(var J in Ke)Object.prototype.hasOwnProperty.call(Ke,J)&&Me.indexOf(J)<0&&(Ye[J]=Ke[J]);if(Ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ve=0,J=Object.getOwnPropertySymbols(Ke);Ve0&&arguments[0]!==void 0?arguments[0]:10,e=t.useState(!1),r=(0,v.Z)(e,2),a=r[0],c=r[1],l=t.useRef(null),m=function(){window.clearTimeout(l.current)};t.useEffect(function(){return m},[]);var p=function(I,R){m(),l.current=window.setTimeout(function(){c(I),R&&R()},n)};return[a,p,m]}function J(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,e=t.useRef(null),r=t.useRef(null);t.useEffect(function(){return function(){window.clearTimeout(r.current)}},[]);function a(c){(c||e.current===null)&&(e.current=c),window.clearTimeout(r.current),r.current=window.setTimeout(function(){e.current=null},n)}return[function(){return e.current},a]}function Ve(n,e,r,a){var c=t.useRef(null);c.current={open:e,triggerOpen:r,customizedTrigger:a},t.useEffect(function(){function l(m){var p;if(!((p=c.current)!==null&&p!==void 0&&p.customizedTrigger)){var S=m.target;S.shadowRoot&&m.composed&&(S=m.composedPath()[0]||S),c.current.open&&n().filter(function(I){return I}).every(function(I){return!I.contains(S)&&I!==S})&&c.current.triggerOpen(!1)}}return window.addEventListener("mousedown",l),function(){return window.removeEventListener("mousedown",l)}},[])}var ze=i(64217),In=i(26120),dn=function(e){var r=e.className,a=e.customizeIcon,c=e.customizeIconProps,l=e.onMouseDown,m=e.onClick,p=e.children,S;return typeof a=="function"?S=a(c):S=a,t.createElement("span",{className:r,onMouseDown:function(R){R.preventDefault(),l&&l(R)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:m,"aria-hidden":!0},S!==void 0?S:t.createElement("span",{className:Re()(r.split(/\s+/).map(function(I){return"".concat(I,"-icon")}))},p))},ln=dn,Vn=function(e,r){var a,c,l=e.prefixCls,m=e.id,p=e.inputElement,S=e.disabled,I=e.tabIndex,R=e.autoFocus,h=e.autoComplete,y=e.editable,g=e.activeDescendantId,T=e.value,d=e.maxLength,E=e.onKeyDown,D=e.onMouseDown,k=e.onChange,z=e.onPaste,pe=e.onCompositionStart,ne=e.onCompositionEnd,H=e.open,me=e.attrs,Y=p||t.createElement("input",null),q=Y,ce=q.ref,Ce=q.props,De=Ce.onKeyDown,he=Ce.onChange,ye=Ce.onMouseDown,Ie=Ce.onCompositionStart,X=Ce.onCompositionEnd,ee=Ce.style;return(0,de.Kp)(!("maxLength"in Y.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),Y=t.cloneElement(Y,(0,N.Z)((0,N.Z)((0,N.Z)({type:"search"},Ce),{},{id:m,ref:(0,$e.sQ)(r,ce),disabled:S,tabIndex:I,autoComplete:h||"off",autoFocus:R,className:Re()("".concat(l,"-selection-search-input"),(a=Y)===null||a===void 0||(c=a.props)===null||c===void 0?void 0:c.className),role:"combobox","aria-expanded":H,"aria-haspopup":"listbox","aria-owns":"".concat(m,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(m,"_list"),"aria-activedescendant":g},me),{},{value:y?T:"",maxLength:d,readOnly:!y,unselectable:y?null:"on",style:(0,N.Z)((0,N.Z)({},ee),{},{opacity:y?null:0}),onKeyDown:function(te){E(te),De&&De(te)},onMouseDown:function(te){D(te),ye&&ye(te)},onChange:function(te){k(te),he&&he(te)},onCompositionStart:function(te){pe(te),Ie&&Ie(te)},onCompositionEnd:function(te){ne(te),X&&X(te)},onPaste:z})),Y},un=t.forwardRef(Vn);un.displayName="Input";var _n=un;function An(n){return Array.isArray(n)?n:n!==void 0?[n]:[]}var ft=typeof window!="undefined"&&window.document&&window.document.documentElement,Fn=ft;function Sn(n){return n!=null}function bn(n){return["string","number"].includes((0,Ee.Z)(n))}function nt(n){var e=void 0;return n&&(bn(n.title)?e=n.title.toString():bn(n.label)&&(e=n.label.toString())),e}function Rn(n,e){Fn?t.useLayoutEffect(n,e):t.useEffect(n,e)}function Tt(n){var e;return(e=n.key)!==null&&e!==void 0?e:n.value}var Et=function(e){e.preventDefault(),e.stopPropagation()},Nt=function(e){var r=e.id,a=e.prefixCls,c=e.values,l=e.open,m=e.searchValue,p=e.autoClearSearchValue,S=e.inputRef,I=e.placeholder,R=e.disabled,h=e.mode,y=e.showSearch,g=e.autoFocus,T=e.autoComplete,d=e.activeDescendantId,E=e.tabIndex,D=e.removeIcon,k=e.maxTagCount,z=e.maxTagTextLength,pe=e.maxTagPlaceholder,ne=pe===void 0?function(Se){return"+ ".concat(Se.length," ...")}:pe,H=e.tagRender,me=e.onToggleOpen,Y=e.onRemove,q=e.onInputChange,ce=e.onInputPaste,Ce=e.onInputKeyDown,De=e.onInputMouseDown,he=e.onInputCompositionStart,ye=e.onInputCompositionEnd,Ie=t.useRef(null),X=(0,t.useState)(0),ee=(0,v.Z)(X,2),Q=ee[0],te=ee[1],qe=(0,t.useState)(!1),Ue=(0,v.Z)(qe,2),Wn=Ue[0],Ze=Ue[1],G="".concat(a,"-selection"),x=l||h==="multiple"&&p===!1||h==="tags"?m:"",_=h==="tags"||h==="multiple"&&p===!1||y&&(l||Wn);Rn(function(){te(Ie.current.scrollWidth)},[x]);function se(Se,Fe,Te,en,on){return t.createElement("span",{className:Re()("".concat(G,"-item"),(0,U.Z)({},"".concat(G,"-item-disabled"),Te)),title:nt(Se)},t.createElement("span",{className:"".concat(G,"-item-content")},Fe),en&&t.createElement(ln,{className:"".concat(G,"-item-remove"),onMouseDown:Et,onClick:on,customizeIcon:D},"\xD7"))}function ae(Se,Fe,Te,en,on){var cn=function(fe){Et(fe),me(!l)};return t.createElement("span",{onMouseDown:cn},H({label:Fe,value:Se,disabled:Te,closable:en,onClose:on}))}function le(Se){var Fe=Se.disabled,Te=Se.label,en=Se.value,on=!R&&!Fe,cn=Te;if(typeof z=="number"&&(typeof Te=="string"||typeof Te=="number")){var ke=String(cn);ke.length>z&&(cn="".concat(ke.slice(0,z),"..."))}var fe=function(an){an&&an.stopPropagation(),Y(Se)};return typeof H=="function"?ae(en,cn,Fe,on,fe):se(Se,cn,Fe,on,fe)}function Pe(Se){var Fe=typeof ne=="function"?ne(Se):ne;return se({title:Fe},Fe,!1)}var We=t.createElement("div",{className:"".concat(G,"-search"),style:{width:Q},onFocus:function(){Ze(!0)},onBlur:function(){Ze(!1)}},t.createElement(_n,{ref:S,open:l,prefixCls:a,id:r,inputElement:null,disabled:R,autoFocus:g,autoComplete:T,editable:_,activeDescendantId:d,value:x,onKeyDown:Ce,onMouseDown:De,onChange:q,onPaste:ce,onCompositionStart:he,onCompositionEnd:ye,tabIndex:E,attrs:(0,ze.Z)(e,!0)}),t.createElement("span",{ref:Ie,className:"".concat(G,"-search-mirror"),"aria-hidden":!0},x,"\xA0")),mn=t.createElement(In.Z,{prefixCls:"".concat(G,"-overflow"),data:c,renderItem:le,renderRest:Pe,suffix:We,itemKey:Tt,maxCount:k});return t.createElement(t.Fragment,null,mn,!c.length&&!x&&t.createElement("span",{className:"".concat(G,"-placeholder")},I))},Lt=Nt,Vt=function(e){var r=e.inputElement,a=e.prefixCls,c=e.id,l=e.inputRef,m=e.disabled,p=e.autoFocus,S=e.autoComplete,I=e.activeDescendantId,R=e.mode,h=e.open,y=e.values,g=e.placeholder,T=e.tabIndex,d=e.showSearch,E=e.searchValue,D=e.activeValue,k=e.maxLength,z=e.onInputKeyDown,pe=e.onInputMouseDown,ne=e.onInputChange,H=e.onInputPaste,me=e.onInputCompositionStart,Y=e.onInputCompositionEnd,q=t.useState(!1),ce=(0,v.Z)(q,2),Ce=ce[0],De=ce[1],he=R==="combobox",ye=he||d,Ie=y[0],X=E||"";he&&D&&!Ce&&(X=D),t.useEffect(function(){he&&De(!1)},[he,D]);var ee=R!=="combobox"&&!h&&!d?!1:!!X,Q=nt(Ie),te=function(){if(Ie)return null;var Ue=ee?{visibility:"hidden"}:void 0;return t.createElement("span",{className:"".concat(a,"-selection-placeholder"),style:Ue},g)};return t.createElement(t.Fragment,null,t.createElement("span",{className:"".concat(a,"-selection-search")},t.createElement(_n,{ref:l,prefixCls:a,id:c,open:h,inputElement:r,disabled:m,autoFocus:p,autoComplete:S,editable:ye,activeDescendantId:I,value:X,onKeyDown:z,onMouseDown:pe,onChange:function(Ue){De(!0),ne(Ue)},onPaste:H,onCompositionStart:me,onCompositionEnd:Y,tabIndex:T,attrs:(0,ze.Z)(e,!0),maxLength:he?k:void 0})),!he&&Ie?t.createElement("span",{className:"".concat(a,"-selection-item"),title:Q,style:ee?{visibility:"hidden"}:void 0},Ie.label):null,te())},At=Vt;function Ct(n){return![O.Z.ESC,O.Z.SHIFT,O.Z.BACKSPACE,O.Z.TAB,O.Z.WIN_KEY,O.Z.ALT,O.Z.META,O.Z.WIN_KEY_RIGHT,O.Z.CTRL,O.Z.SEMICOLON,O.Z.EQUALS,O.Z.CAPS_LOCK,O.Z.CONTEXT_MENU,O.Z.F1,O.Z.F2,O.Z.F3,O.Z.F4,O.Z.F5,O.Z.F6,O.Z.F7,O.Z.F8,O.Z.F9,O.Z.F10,O.Z.F11,O.Z.F12].includes(n)}var Ft=function(e,r){var a=(0,t.useRef)(null),c=(0,t.useRef)(!1),l=e.prefixCls,m=e.open,p=e.mode,S=e.showSearch,I=e.tokenWithEnter,R=e.autoClearSearchValue,h=e.onSearch,y=e.onSearchSubmit,g=e.onToggleOpen,T=e.onInputKeyDown,d=e.domRef;t.useImperativeHandle(r,function(){return{focus:function(){a.current.focus()},blur:function(){a.current.blur()}}});var E=J(0),D=(0,v.Z)(E,2),k=D[0],z=D[1],pe=function(ee){var Q=ee.which;(Q===O.Z.UP||Q===O.Z.DOWN)&&ee.preventDefault(),T&&T(ee),Q===O.Z.ENTER&&p==="tags"&&!c.current&&!m&&(y==null||y(ee.target.value)),Ct(Q)&&g(!0)},ne=function(){z(!0)},H=(0,t.useRef)(null),me=function(ee){h(ee,!0,c.current)!==!1&&g(!0)},Y=function(){c.current=!0},q=function(ee){c.current=!1,p!=="combobox"&&me(ee.target.value)},ce=function(ee){var Q=ee.target.value;if(I&&H.current&&/[\r\n]/.test(H.current)){var te=H.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Q=Q.replace(te,H.current)}H.current=null,me(Q)},Ce=function(ee){var Q=ee.clipboardData,te=Q.getData("text");H.current=te},De=function(ee){var Q=ee.target;if(Q!==a.current){var te=document.body.style.msTouchAction!==void 0;te?setTimeout(function(){a.current.focus()}):a.current.focus()}},he=function(ee){var Q=k();ee.target!==a.current&&!Q&&p!=="combobox"&&ee.preventDefault(),(p!=="combobox"&&(!S||!Q)||!m)&&(m&&R!==!1&&h("",!0,!1),g())},ye={inputRef:a,onInputKeyDown:pe,onInputMouseDown:ne,onInputChange:ce,onInputPaste:Ce,onInputCompositionStart:Y,onInputCompositionEnd:q},Ie=p==="multiple"||p==="tags"?t.createElement(Lt,(0,ie.Z)({},e,ye)):t.createElement(At,(0,ie.Z)({},e,ye));return t.createElement("div",{ref:d,className:"".concat(l,"-selector"),onClick:De,onMouseDown:he},Ie)},yt=t.forwardRef(Ft);yt.displayName="Selector";var f=yt,$=i(2306),M=["prefixCls","disabled","visible","children","popupElement","containerWidth","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],o=function(e){var r=e===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:r,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:r,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:r,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:r,adjustY:1}}}},A=function(e,r){var a=e.prefixCls,c=e.disabled,l=e.visible,m=e.children,p=e.popupElement,S=e.containerWidth,I=e.animation,R=e.transitionName,h=e.dropdownStyle,y=e.dropdownClassName,g=e.direction,T=g===void 0?"ltr":g,d=e.placement,E=e.dropdownMatchSelectWidth,D=e.dropdownRender,k=e.dropdownAlign,z=e.getPopupContainer,pe=e.empty,ne=e.getTriggerDOMNode,H=e.onPopupVisibleChange,me=e.onPopupMouseEnter,Y=(0,s.Z)(e,M),q="".concat(a,"-dropdown"),ce=p;D&&(ce=D(p));var Ce=t.useMemo(function(){return o(E)},[E]),De=I?"".concat(q,"-").concat(I):R,he=t.useRef(null);t.useImperativeHandle(r,function(){return{getPopupElement:function(){return he.current}}});var ye=(0,N.Z)({minWidth:S},h);return typeof E=="number"?ye.width=E:E&&(ye.width=S),t.createElement($.Z,(0,ie.Z)({},Y,{showAction:H?["click"]:[],hideAction:H?["click"]:[],popupPlacement:d||(T==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Ce,prefixCls:q,popupTransitionName:De,popup:t.createElement("div",{ref:he,onMouseEnter:me},ce),popupAlign:k,popupVisible:l,getPopupContainer:z,popupClassName:Re()(y,(0,U.Z)({},"".concat(q,"-empty"),pe)),popupStyle:ye,getTriggerDOMNode:ne,onPopupVisibleChange:H}),m)},C=t.forwardRef(A);C.displayName="SelectTrigger";var L=C,u=i(99809);function b(n,e){var r=n.key,a;return"value"in n&&(a=n.value),r!=null?r:a!==void 0?a:"rc-index-key-".concat(e)}function P(n,e){var r=n||{},a=r.label,c=r.value,l=r.options;return{label:a||(e?"children":"label"),value:c||"value",options:l||"options"}}function W(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=e.fieldNames,a=e.childrenAsData,c=[],l=P(r,!1),m=l.label,p=l.value,S=l.options;function I(R,h){R.forEach(function(y){var g=y[m];if(h||!(S in y)){var T=y[p];c.push({key:b(y,c.length),groupOption:h,data:y,label:g,value:T})}else{var d=g;d===void 0&&a&&(d=y.label),c.push({key:b(y,c.length),group:!0,data:y,label:d}),I(y[S],!0)}})}return I(n,!1),c}function F(n){var e=(0,N.Z)({},n);return"props"in e||Object.defineProperty(e,"props",{get:function(){return(0,de.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),e}}),e}function re(n,e){if(!e||!e.length)return null;var r=!1;function a(l,m){var p=(0,u.Z)(m),S=p[0],I=p.slice(1);if(!S)return[l];var R=l.split(S);return r=r||R.length>1,R.reduce(function(h,y){return[].concat((0,oe.Z)(h),(0,oe.Z)(a(y,I)))},[]).filter(function(h){return h})}var c=a(n,e);return r?c:null}var ue=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","showArrow","inputIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],ge=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function Ae(n){return n==="tags"||n==="multiple"}var _e=t.forwardRef(function(n,e){var r,a,c=n.id,l=n.prefixCls,m=n.className,p=n.showSearch,S=n.tagRender,I=n.direction,R=n.omitDomProps,h=n.displayValues,y=n.onDisplayValuesChange,g=n.emptyOptions,T=n.notFoundContent,d=T===void 0?"Not Found":T,E=n.onClear,D=n.mode,k=n.disabled,z=n.loading,pe=n.getInputElement,ne=n.getRawInputElement,H=n.open,me=n.defaultOpen,Y=n.onDropdownVisibleChange,q=n.activeValue,ce=n.onActiveValueChange,Ce=n.activeDescendantId,De=n.searchValue,he=n.autoClearSearchValue,ye=n.onSearch,Ie=n.onSearchSplit,X=n.tokenSeparators,ee=n.allowClear,Q=n.showArrow,te=n.inputIcon,qe=n.clearIcon,Ue=n.OptionList,Wn=n.animation,Ze=n.transitionName,G=n.dropdownStyle,x=n.dropdownClassName,_=n.dropdownMatchSelectWidth,se=n.dropdownRender,ae=n.dropdownAlign,le=n.placement,Pe=n.getPopupContainer,We=n.showAction,mn=We===void 0?[]:We,Se=n.onFocus,Fe=n.onBlur,Te=n.onKeyUp,en=n.onKeyDown,on=n.onMouseDown,cn=(0,s.Z)(n,ue),ke=Ae(D),fe=(p!==void 0?p:ke)||D==="combobox",On=(0,N.Z)({},cn);ge.forEach(function(B){delete On[B]}),R==null||R.forEach(function(B){delete On[B]});var an=t.useState(!1),nn=(0,v.Z)(an,2),kn=nn[0],Jn=nn[1];t.useEffect(function(){Jn((0,Ln.Z)())},[]);var Cn=t.useRef(null),hn=t.useRef(null),Pn=t.useRef(null),gn=t.useRef(null),sn=t.useRef(null),zt=Ye(),ut=(0,v.Z)(zt,3),gt=ut[0],Bn=ut[1],jt=ut[2];t.useImperativeHandle(e,function(){var B,V;return{focus:(B=gn.current)===null||B===void 0?void 0:B.focus,blur:(V=gn.current)===null||V===void 0?void 0:V.blur,scrollTo:function(tn){var Oe;return(Oe=sn.current)===null||Oe===void 0?void 0:Oe.scrollTo(tn)}}});var fn=t.useMemo(function(){var B;if(D!=="combobox")return De;var V=(B=h[0])===null||B===void 0?void 0:B.value;return typeof V=="string"||typeof V=="number"?String(V):""},[De,D,h]),xt=D==="combobox"&&typeof pe=="function"&&pe()||null,yn=typeof ne=="function"&&ne(),Zt=(0,$e.x1)(hn,yn==null||(r=yn.props)===null||r===void 0?void 0:r.ref),Ot=(0,we.Z)(void 0,{defaultValue:me,value:H}),qn=(0,v.Z)(Ot,2),pt=qn[0],St=qn[1],Ne=pt,Pt=!d&&g;(k||Pt&&Ne&&D==="combobox")&&(Ne=!1);var $n=Pt?!1:Ne,w=t.useCallback(function(B){var V=B!==void 0?B:!Ne;k||(St(V),Ne!==V&&(Y==null||Y(V)))},[k,Ne,St,Y]),K=t.useMemo(function(){return(X||[]).some(function(B){return[` `,`\r -`].includes(B)})},[X]),Z=function(V,je,tn){var Oe=!0,rn=V;ce==null||ce(null);var pn=tn?null:re(V,X);return D!=="combobox"&&pn&&(rn="",Ie==null||Ie(pn),w(!1),Oe=!1),ye&&fn!==rn&&ye(rn,{source:je?"typing":"effect"}),Oe},j=function(V){!V||!V.trim()||ye(V,{source:"submit"})};t.useEffect(function(){!Ne&&!ke&&D!=="combobox"&&Z("",!1,!1)},[Ne]),t.useEffect(function(){pt&&k&&St(!1),k&&Bn(!1)},[k]);var ve=J(),Ee=(0,v.Z)(ve,2),Tn=Ee[0],wn=Ee[1],et=function(V){var je=Tn(),tn=V.which;if(tn===O.Z.ENTER&&(D!=="combobox"&&V.preventDefault(),Ne||w(!0)),wn(!!fn),tn===O.Z.BACKSPACE&&!je&&ke&&!fn&&h.length){for(var Oe=(0,oe.Z)(h),rn=null,pn=Oe.length-1;pn>=0;pn-=1){var Et=Oe[pn];if(!Et.disabled){Oe.splice(pn,1),rn=Et;break}}rn&&y(Oe,{type:"remove",values:[rn]})}for(var jn=arguments.length,st=new Array(jn>1?jn-1:0),Gn=1;Gn1?je-1:0),Oe=1;Oe1?pn-1:0),jn=1;jn1&&arguments[1]!==void 0?arguments[1]:!1;return(0,ot.Z)(n).map(function(r,a){if(!t.isValidElement(r)||!r.type)return null;var c=r,l=c.type.isSelectOptGroup,m=c.key,p=c.props,S=p.children,I=(0,s.Z)(p,Qe);return e||!l?dt(r):(0,N.Z)((0,N.Z)({key:"__RC_SELECT_GRP__".concat(m===null?a:m,"__"),label:m},I),{},{options:Zn(S)})}).filter(function(r){return r})}function at(n,e,r,a,c){return t.useMemo(function(){var l=n,m=!n;m&&(l=Zn(e));var p=new Map,S=new Map,I=function(y,g,T){T&&typeof T=="string"&&y.set(g[T],g)};function R(h){for(var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,g=0;g1&&arguments[1]!==void 0?arguments[1]:1,se=q.length,ae=0;ae1&&arguments[1]!==void 0?arguments[1]:!1;ee(x);var se={source:_?"keyboard":"mouse"},ae=q[x];if(!ae){d(null,-1,se);return}d(ae.value,x,se)};(0,t.useEffect)(function(){Q(b!==!1?he(0):-1)},[q.length,I]);var te=t.useCallback(function(G){return z.has(G)&&S!=="combobox"},[S,(0,oe.Z)(z).toString(),z.size]);(0,t.useEffect)(function(){var G=setTimeout(function(){if(!p&&m&&z.size===1){var _=Array.from(z)[0],se=q.findIndex(function(ae){var le=ae.data;return le.value===_});se!==-1&&(Q(se),De(se))}});if(m){var x;(x=ce.current)===null||x===void 0||x.scrollTo(void 0)}return function(){return clearTimeout(G)}},[m,I]);var qe=function(x){x!==void 0&&D(x,{selected:!z.has(x)}),p||R(!1)};if(t.useImperativeHandle(r,function(){return{onKeyDown:function(x){var _=x.which,se=x.ctrlKey;switch(_){case O.Z.N:case O.Z.P:case O.Z.UP:case O.Z.DOWN:{var ae=0;if(_===O.Z.UP?ae=-1:_===O.Z.DOWN?ae=1:Ht()&&se&&(_===O.Z.N?ae=1:_===O.Z.P&&(ae=-1)),ae!==0){var le=he(X+ae,ae);De(le),Q(le,!0)}break}case O.Z.ENTER:{var Pe=q[X];Pe&&!Pe.data.disabled?qe(Pe.value):qe(void 0),m&&x.preventDefault();break}case O.Z.ESC:R(!1),m&&x.stopPropagation()}},onKeyUp:function(){},scrollTo:function(x){De(x)}}}),q.length===0)return t.createElement("div",{role:"listbox",id:"".concat(l,"_list"),className:"".concat(Y,"-empty"),onMouseDown:Ce},h);var Ue=Object.keys(pe).map(function(G){return pe[G]}),Wn=function(x){return x.label},Ze=function(x){var _=q[x];if(!_)return null;var se=_.data||{},ae=se.value,le=_.group,Pe=(0,ze.Z)(se,!0),We=Wn(_);return _?t.createElement("div",(0,ie.Z)({"aria-label":typeof We=="string"&&!le?We:null},Pe,{key:x,role:le?"presentation":"option",id:"".concat(l,"_list_").concat(x),"aria-selected":te(ae)}),ae):null};return t.createElement(t.Fragment,null,t.createElement("div",{role:"listbox",id:"".concat(l,"_list"),style:{height:0,width:0,overflow:"hidden"}},Ze(X-1),Ze(X),Ze(X+1)),t.createElement(Qn.Z,{itemKey:"key",ref:ce,data:q,height:H,itemHeight:me,fullHeight:!1,onMouseDown:Ce,onScroll:y,virtual:ne},function(G,x){var _,se=G.group,ae=G.groupOption,le=G.data,Pe=G.label,We=G.value,mn=le.key;if(se){var Se,Fe=(Se=le.title)!==null&&Se!==void 0?Se:It(Pe)?Pe.toString():void 0;return t.createElement("div",{className:Re()(Y,"".concat(Y,"-group")),title:Fe},Pe!==void 0?Pe:mn)}var Te=le.disabled,en=le.title,on=le.children,cn=le.style,ke=le.className,fe=(0,s.Z)(le,Kt),On=(0,wt.Z)(fe,Ue),an=te(We),nn="".concat(Y,"-option"),kn=Re()(Y,nn,ke,(_={},(0,U.Z)(_,"".concat(nn,"-grouped"),ae),(0,U.Z)(_,"".concat(nn,"-active"),X===x&&!Te),(0,U.Z)(_,"".concat(nn,"-disabled"),Te),(0,U.Z)(_,"".concat(nn,"-selected"),an),_)),Jn=Wn(G),Cn=!k||typeof k=="function"||an,hn=typeof Jn=="number"?Jn:Jn||We,Pn=It(hn)?hn.toString():void 0;return en!==void 0&&(Pn=en),t.createElement("div",(0,ie.Z)({},(0,ze.Z)(On),{"aria-selected":an,className:kn,title:Pn,onMouseMove:function(){X===x||Te||Q(x)},onClick:function(){Te||qe(We)},style:cn}),t.createElement("div",{className:"".concat(nn,"-content")},hn),t.isValidElement(k)||an,Cn&&t.createElement(ln,{className:"".concat(Y,"-option-state"),customizeIcon:k,customizeIconProps:{isSelected:an}},an?"\u2713":null))}))},Rt=t.forwardRef(Ut);Rt.displayName="OptionList";var Wt=Rt;function mt(n){var e=n.mode,r=n.options,a=n.children,c=n.backfill,l=n.allowClear,m=n.placeholder,p=n.getInputElement,S=n.showSearch,I=n.onSearch,R=n.defaultOpen,h=n.autoFocus,y=n.labelInValue,g=n.value,T=n.inputValue,d=n.optionLabelProp,b=isMultiple(e),D=S!==void 0?S:b||e==="combobox",k=r||convertChildrenToData(a);if(warning(e!=="tags"||k.every(function(H){return!H.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),e==="tags"||e==="combobox"){var z=k.some(function(H){return H.options?H.options.some(function(me){return typeof("value"in me?me.value:me.key)=="number"}):typeof("value"in H?H.value:H.key)=="number"});warning(!z,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(e!=="combobox"||!d,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(e==="combobox"||!c,"`backfill` only works with `combobox` mode."),warning(e==="combobox"||!p,"`getInputElement` only work with `combobox` mode."),noteOnce(e!=="combobox"||!p||!l||!m,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),I&&!D&&e!=="combobox"&&e!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!R||h,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),g!=null){var pe=toArray(g);warning(!y||pe.every(function(H){return _typeof(H)==="object"&&("key"in H||"value"in H)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!b||Array.isArray(g),"`value` should be array when `mode` is `multiple` or `tags`")}if(a){var ne=null;toNodeArray(a).some(function(H){if(!React.isValidElement(H)||!H.type)return!1;var me=H,Y=me.type;if(Y.isSelectOption)return!1;if(Y.isSelectOptGroup){var q=toNodeArray(H.props.children).every(function(ce){return!React.isValidElement(ce)||!H.type||ce.type.isSelectOption?!0:(ne=ce.type,!1)});return!q}return ne=Y,!0}),ne&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(ne.displayName||ne.name||ne,"`.")),warning(T===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function _t(n,e){if(n){var r=function a(c){for(var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,m=0;m2&&arguments[2]!==void 0?arguments[2]:{},j=Z.source,ve=j===void 0?"keyboard":j;yn(K),m&&a==="combobox"&&w!==null&&ve==="keyboard"&&Bn(String(w))},[m,a]),qn=function(K,Z,j){var ve=function(){var Mn,Nn=On(K);return[X?{label:Nn==null?void 0:Nn[Ze.label],value:K,key:(Mn=Nn==null?void 0:Nn.key)!==null&&Mn!==void 0?Mn:K}:K,F(Nn)]};if(Z&&g){var Ee=ve(),Tn=(0,v.Z)(Ee,2),wn=Tn[0],et=Tn[1];g(wn,et)}else if(!Z&&T&&j!=="clear"){var Be=ve(),zn=(0,v.Z)(Be,2),ct=zn[0],Gt=zn[1];T(ct,Gt)}},pt=Kn(function(w,K){var Z,j=qe?K.selected:!0;j?Z=qe?[].concat((0,oe.Z)(fe),[w]):[w]:Z=fe.filter(function(ve){return ve.value!==w}),sn(Z),qn(w,j),a==="combobox"?Bn(""):(!Ae||y)&&(se(""),Bn(""))}),St=function(K,Z){sn(K);var j=Z.type,ve=Z.values;(j==="remove"||j==="clear")&&ve.forEach(function(Ee){qn(Ee.value,!1,j)})},Ne=function(K,Z){if(se(K),Bn(null),Z.source==="submit"){var j=(K||"").trim();if(j){var ve=Array.from(new Set([].concat((0,oe.Z)(nn),[j])));sn(ve),qn(j,!0),se("")}return}Z.source!=="blur"&&(a==="combobox"&&sn(K),R==null||R(K))},Pt=function(K){var Z=K;a!=="tags"&&(Z=K.map(function(ve){var Ee=Pe.get(ve);return Ee==null?void 0:Ee.value}).filter(function(ve){return ve!==void 0}));var j=Array.from(new Set([].concat((0,oe.Z)(nn),(0,oe.Z)(Z))));sn(j),j.forEach(function(ve){qn(ve,!0)})},$n=t.useMemo(function(){var w=q!==!1&&b!==!1;return(0,N.Z)((0,N.Z)({},ae),{},{flattenOptions:gn,onActiveValue:Ot,defaultActiveFirstOption:Zt,onSelect:pt,menuItemSelectedIcon:Y,rawValues:nn,fieldNames:Ze,virtual:w,listHeight:Ce,listItemHeight:he,childrenAsData:Ue})},[ae,gn,Ot,Zt,pt,Y,nn,Ze,q,b,Ce,he,Ue]);return t.createElement(vt.Provider,{value:$n},t.createElement(bn,(0,ie.Z)({},Q,{id:te,prefixCls:l,ref:e,omitDomProps:Bt,mode:a,displayValues:an,onDisplayValuesChange:St,searchValue:_,onSearch:Ne,autoClearSearchValue:y,onSearchSplit:Pt,dropdownMatchSelectWidth:b,OptionList:Wt,emptyOptions:!gn.length,activeValue:gt,activeDescendantId:"".concat(te,"_list_").concat(xt)})))}),Un=ht;Un.Option=Je,Un.OptGroup=Xn;var it=Un,$t=it},64217:function(Yn,Ge,i){"use strict";i.d(Ge,{Z:function(){return we}});var ie=i(28991),oe=`accept acceptCharset accessKey action allowFullScreen allowTransparency +`].includes(B)})},[X]),Z=function(V,je,tn){var Oe=!0,rn=V;ce==null||ce(null);var pn=tn?null:re(V,X);return D!=="combobox"&&pn&&(rn="",Ie==null||Ie(pn),w(!1),Oe=!1),ye&&fn!==rn&&ye(rn,{source:je?"typing":"effect"}),Oe},j=function(V){!V||!V.trim()||ye(V,{source:"submit"})};t.useEffect(function(){!Ne&&!ke&&D!=="combobox"&&Z("",!1,!1)},[Ne]),t.useEffect(function(){pt&&k&&St(!1),k&&Bn(!1)},[k]);var ve=J(),be=(0,v.Z)(ve,2),Tn=be[0],wn=be[1],et=function(V){var je=Tn(),tn=V.which;if(tn===O.Z.ENTER&&(D!=="combobox"&&V.preventDefault(),Ne||w(!0)),wn(!!fn),tn===O.Z.BACKSPACE&&!je&&ke&&!fn&&h.length){for(var Oe=(0,oe.Z)(h),rn=null,pn=Oe.length-1;pn>=0;pn-=1){var bt=Oe[pn];if(!bt.disabled){Oe.splice(pn,1),rn=bt;break}}rn&&y(Oe,{type:"remove",values:[rn]})}for(var jn=arguments.length,st=new Array(jn>1?jn-1:0),Gn=1;Gn1?je-1:0),Oe=1;Oe1?pn-1:0),jn=1;jn1&&arguments[1]!==void 0?arguments[1]:!1;return(0,ot.Z)(n).map(function(r,a){if(!t.isValidElement(r)||!r.type)return null;var c=r,l=c.type.isSelectOptGroup,m=c.key,p=c.props,S=p.children,I=(0,s.Z)(p,Qe);return e||!l?dt(r):(0,N.Z)((0,N.Z)({key:"__RC_SELECT_GRP__".concat(m===null?a:m,"__"),label:m},I),{},{options:Zn(S)})}).filter(function(r){return r})}function at(n,e,r,a,c){return t.useMemo(function(){var l=n,m=!n;m&&(l=Zn(e));var p=new Map,S=new Map,I=function(y,g,T){T&&typeof T=="string"&&y.set(g[T],g)};function R(h){for(var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,g=0;g1&&arguments[1]!==void 0?arguments[1]:1,se=q.length,ae=0;ae1&&arguments[1]!==void 0?arguments[1]:!1;ee(x);var se={source:_?"keyboard":"mouse"},ae=q[x];if(!ae){d(null,-1,se);return}d(ae.value,x,se)};(0,t.useEffect)(function(){Q(E!==!1?he(0):-1)},[q.length,I]);var te=t.useCallback(function(G){return z.has(G)&&S!=="combobox"},[S,(0,oe.Z)(z).toString(),z.size]);(0,t.useEffect)(function(){var G=setTimeout(function(){if(!p&&m&&z.size===1){var _=Array.from(z)[0],se=q.findIndex(function(ae){var le=ae.data;return le.value===_});se!==-1&&(Q(se),De(se))}});if(m){var x;(x=ce.current)===null||x===void 0||x.scrollTo(void 0)}return function(){return clearTimeout(G)}},[m,I]);var qe=function(x){x!==void 0&&D(x,{selected:!z.has(x)}),p||R(!1)};if(t.useImperativeHandle(r,function(){return{onKeyDown:function(x){var _=x.which,se=x.ctrlKey;switch(_){case O.Z.N:case O.Z.P:case O.Z.UP:case O.Z.DOWN:{var ae=0;if(_===O.Z.UP?ae=-1:_===O.Z.DOWN?ae=1:Ht()&&se&&(_===O.Z.N?ae=1:_===O.Z.P&&(ae=-1)),ae!==0){var le=he(X+ae,ae);De(le),Q(le,!0)}break}case O.Z.ENTER:{var Pe=q[X];Pe&&!Pe.data.disabled?qe(Pe.value):qe(void 0),m&&x.preventDefault();break}case O.Z.ESC:R(!1),m&&x.stopPropagation()}},onKeyUp:function(){},scrollTo:function(x){De(x)}}}),q.length===0)return t.createElement("div",{role:"listbox",id:"".concat(l,"_list"),className:"".concat(Y,"-empty"),onMouseDown:Ce},h);var Ue=Object.keys(pe).map(function(G){return pe[G]}),Wn=function(x){return x.label},Ze=function(x){var _=q[x];if(!_)return null;var se=_.data||{},ae=se.value,le=_.group,Pe=(0,ze.Z)(se,!0),We=Wn(_);return _?t.createElement("div",(0,ie.Z)({"aria-label":typeof We=="string"&&!le?We:null},Pe,{key:x,role:le?"presentation":"option",id:"".concat(l,"_list_").concat(x),"aria-selected":te(ae)}),ae):null};return t.createElement(t.Fragment,null,t.createElement("div",{role:"listbox",id:"".concat(l,"_list"),style:{height:0,width:0,overflow:"hidden"}},Ze(X-1),Ze(X),Ze(X+1)),t.createElement(Qn.Z,{itemKey:"key",ref:ce,data:q,height:H,itemHeight:me,fullHeight:!1,onMouseDown:Ce,onScroll:y,virtual:ne},function(G,x){var _,se=G.group,ae=G.groupOption,le=G.data,Pe=G.label,We=G.value,mn=le.key;if(se){var Se,Fe=(Se=le.title)!==null&&Se!==void 0?Se:It(Pe)?Pe.toString():void 0;return t.createElement("div",{className:Re()(Y,"".concat(Y,"-group")),title:Fe},Pe!==void 0?Pe:mn)}var Te=le.disabled,en=le.title,on=le.children,cn=le.style,ke=le.className,fe=(0,s.Z)(le,Kt),On=(0,wt.Z)(fe,Ue),an=te(We),nn="".concat(Y,"-option"),kn=Re()(Y,nn,ke,(_={},(0,U.Z)(_,"".concat(nn,"-grouped"),ae),(0,U.Z)(_,"".concat(nn,"-active"),X===x&&!Te),(0,U.Z)(_,"".concat(nn,"-disabled"),Te),(0,U.Z)(_,"".concat(nn,"-selected"),an),_)),Jn=Wn(G),Cn=!k||typeof k=="function"||an,hn=typeof Jn=="number"?Jn:Jn||We,Pn=It(hn)?hn.toString():void 0;return en!==void 0&&(Pn=en),t.createElement("div",(0,ie.Z)({},(0,ze.Z)(On),{"aria-selected":an,className:kn,title:Pn,onMouseMove:function(){X===x||Te||Q(x)},onClick:function(){Te||qe(We)},style:cn}),t.createElement("div",{className:"".concat(nn,"-content")},hn),t.isValidElement(k)||an,Cn&&t.createElement(ln,{className:"".concat(Y,"-option-state"),customizeIcon:k,customizeIconProps:{isSelected:an}},an?"\u2713":null))}))},Rt=t.forwardRef(Ut);Rt.displayName="OptionList";var Wt=Rt;function mt(n){var e=n.mode,r=n.options,a=n.children,c=n.backfill,l=n.allowClear,m=n.placeholder,p=n.getInputElement,S=n.showSearch,I=n.onSearch,R=n.defaultOpen,h=n.autoFocus,y=n.labelInValue,g=n.value,T=n.inputValue,d=n.optionLabelProp,E=isMultiple(e),D=S!==void 0?S:E||e==="combobox",k=r||convertChildrenToData(a);if(warning(e!=="tags"||k.every(function(H){return!H.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),e==="tags"||e==="combobox"){var z=k.some(function(H){return H.options?H.options.some(function(me){return typeof("value"in me?me.value:me.key)=="number"}):typeof("value"in H?H.value:H.key)=="number"});warning(!z,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(e!=="combobox"||!d,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(e==="combobox"||!c,"`backfill` only works with `combobox` mode."),warning(e==="combobox"||!p,"`getInputElement` only work with `combobox` mode."),noteOnce(e!=="combobox"||!p||!l||!m,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),I&&!D&&e!=="combobox"&&e!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!R||h,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),g!=null){var pe=toArray(g);warning(!y||pe.every(function(H){return _typeof(H)==="object"&&("key"in H||"value"in H)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!E||Array.isArray(g),"`value` should be array when `mode` is `multiple` or `tags`")}if(a){var ne=null;toNodeArray(a).some(function(H){if(!React.isValidElement(H)||!H.type)return!1;var me=H,Y=me.type;if(Y.isSelectOption)return!1;if(Y.isSelectOptGroup){var q=toNodeArray(H.props.children).every(function(ce){return!React.isValidElement(ce)||!H.type||ce.type.isSelectOption?!0:(ne=ce.type,!1)});return!q}return ne=Y,!0}),ne&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(ne.displayName||ne.name||ne,"`.")),warning(T===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function _t(n,e){if(n){var r=function a(c){for(var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,m=0;m2&&arguments[2]!==void 0?arguments[2]:{},j=Z.source,ve=j===void 0?"keyboard":j;yn(K),m&&a==="combobox"&&w!==null&&ve==="keyboard"&&Bn(String(w))},[m,a]),qn=function(K,Z,j){var ve=function(){var Mn,Nn=On(K);return[X?{label:Nn==null?void 0:Nn[Ze.label],value:K,key:(Mn=Nn==null?void 0:Nn.key)!==null&&Mn!==void 0?Mn:K}:K,F(Nn)]};if(Z&&g){var be=ve(),Tn=(0,v.Z)(be,2),wn=Tn[0],et=Tn[1];g(wn,et)}else if(!Z&&T&&j!=="clear"){var Be=ve(),zn=(0,v.Z)(Be,2),ct=zn[0],Gt=zn[1];T(ct,Gt)}},pt=Kn(function(w,K){var Z,j=qe?K.selected:!0;j?Z=qe?[].concat((0,oe.Z)(fe),[w]):[w]:Z=fe.filter(function(ve){return ve.value!==w}),sn(Z),qn(w,j),a==="combobox"?Bn(""):(!Ae||y)&&(se(""),Bn(""))}),St=function(K,Z){sn(K);var j=Z.type,ve=Z.values;(j==="remove"||j==="clear")&&ve.forEach(function(be){qn(be.value,!1,j)})},Ne=function(K,Z){if(se(K),Bn(null),Z.source==="submit"){var j=(K||"").trim();if(j){var ve=Array.from(new Set([].concat((0,oe.Z)(nn),[j])));sn(ve),qn(j,!0),se("")}return}Z.source!=="blur"&&(a==="combobox"&&sn(K),R==null||R(K))},Pt=function(K){var Z=K;a!=="tags"&&(Z=K.map(function(ve){var be=Pe.get(ve);return be==null?void 0:be.value}).filter(function(ve){return ve!==void 0}));var j=Array.from(new Set([].concat((0,oe.Z)(nn),(0,oe.Z)(Z))));sn(j),j.forEach(function(ve){qn(ve,!0)})},$n=t.useMemo(function(){var w=q!==!1&&E!==!1;return(0,N.Z)((0,N.Z)({},ae),{},{flattenOptions:gn,onActiveValue:Ot,defaultActiveFirstOption:Zt,onSelect:pt,menuItemSelectedIcon:Y,rawValues:nn,fieldNames:Ze,virtual:w,listHeight:Ce,listItemHeight:he,childrenAsData:Ue})},[ae,gn,Ot,Zt,pt,Y,nn,Ze,q,E,Ce,he,Ue]);return t.createElement(vt.Provider,{value:$n},t.createElement(En,(0,ie.Z)({},Q,{id:te,prefixCls:l,ref:e,omitDomProps:Bt,mode:a,displayValues:an,onDisplayValuesChange:St,searchValue:_,onSearch:Ne,autoClearSearchValue:y,onSearchSplit:Pt,dropdownMatchSelectWidth:E,OptionList:Wt,emptyOptions:!gn.length,activeValue:gt,activeDescendantId:"".concat(te,"_list_").concat(xt)})))}),Un=ht;Un.Option=Je,Un.OptGroup=Xn;var it=Un,$t=it},64217:function(Yn,Ge,i){"use strict";i.d(Ge,{Z:function(){return we}});var ie=i(28991),oe=`accept acceptCharset accessKey action allowFullScreen allowTransparency alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge charSet checked classID className colSpan cols content contentEditable contextMenu controls coords crossOrigin data dateTime default defer dir disabled download draggable @@ -17,4 +17,4 @@ onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata - onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,N="".concat(oe," ").concat(U).split(/[\s\n]+/),v="aria-",s="data-";function be(de,t){return de.indexOf(t)===0}function we(de){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Le;t===!1?Le={aria:!0,data:!0,attr:!0}:t===!0?Le={aria:!0}:Le=(0,ie.Z)({},t);var Re={};return Object.keys(de).forEach(function(He){(Le.aria&&(He==="role"||be(He,v))||Le.data&&be(He,s)||Le.attr&&N.includes(He))&&(Re[He]=de[He])}),Re}},7606:function(Yn,Ge,i){"use strict";i.d(Ge,{Z:function(){return yt}});var ie=i(22122),oe=i(96156),U=i(28991),N=i(28481),v=i(81253),s=i(67294),be=i(94184),we=i.n(be),de=i(48717),t=s.forwardRef(function(f,$){var M=f.height,o=f.offset,A=f.children,C=f.prefixCls,L=f.onInnerResize,u=f.innerProps,E={},P={display:"flex",flexDirection:"column"};return o!==void 0&&(E={height:M,position:"relative",overflow:"hidden"},P=(0,U.Z)((0,U.Z)({},P),{},{transform:"translateY(".concat(o,"px)"),position:"absolute",left:0,right:0,top:0})),s.createElement("div",{style:E},s.createElement(de.Z,{onResize:function(F){var re=F.offsetHeight;re&&L&&L()}},s.createElement("div",(0,ie.Z)({style:P,className:we()((0,oe.Z)({},"".concat(C,"-holder-inner"),C)),ref:$},u),A)))});t.displayName="Filler";var Le=t,Re=i(6610),He=i(5991),Ln=i(10379),O=i(44144),$e=i(75164),Ke=20;function Me(f){return"touches"in f?f.touches[0].pageY:f.pageY}var Ye=function(f){(0,Ln.Z)(M,f);var $=(0,O.Z)(M);function M(){var o;(0,Re.Z)(this,M);for(var A=arguments.length,C=new Array(A),L=0;LE},o}return(0,He.Z)(M,[{key:"componentDidMount",value:function(){this.scrollbarRef.current.addEventListener("touchstart",this.onScrollbarTouchStart),this.thumbRef.current.addEventListener("touchstart",this.onMouseDown)}},{key:"componentDidUpdate",value:function(A){A.scrollTop!==this.props.scrollTop&&this.delayHidden()}},{key:"componentWillUnmount",value:function(){this.removeEvents(),clearTimeout(this.visibleTimeout)}},{key:"render",value:function(){var A=this.state,C=A.dragging,L=A.visible,u=this.props.prefixCls,E=this.getSpinHeight(),P=this.getTop(),W=this.showScroll(),F=W&&L;return s.createElement("div",{ref:this.scrollbarRef,className:we()("".concat(u,"-scrollbar"),(0,oe.Z)({},"".concat(u,"-scrollbar-show"),W)),style:{width:8,top:0,bottom:0,right:0,position:"absolute",display:F?null:"none"},onMouseDown:this.onContainerMouseDown,onMouseMove:this.delayHidden},s.createElement("div",{ref:this.thumbRef,className:we()("".concat(u,"-scrollbar-thumb"),(0,oe.Z)({},"".concat(u,"-scrollbar-thumb-moving"),C)),style:{width:"100%",height:E,top:P,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"},onMouseDown:this.onMouseDown}))}}]),M}(s.Component);function J(f){var $=f.children,M=f.setRef,o=s.useCallback(function(A){M(A)},[]);return s.cloneElement($,{ref:o})}function Ve(f,$,M,o,A,C){var L=C.getKey;return f.slice($,M+1).map(function(u,E){var P=$+E,W=A(u,P,{}),F=L(u);return s.createElement(J,{key:F,setRef:function(ue){return o(u,ue)}},W)})}var ze=i(34203),In=function(){function f(){(0,Re.Z)(this,f),this.maps=void 0,this.maps=Object.create(null)}return(0,He.Z)(f,[{key:"set",value:function(M,o){this.maps[M]=o}},{key:"get",value:function(M){return this.maps[M]}}]),f}(),dn=In;function ln(f,$,M){var o=s.useState(0),A=(0,N.Z)(o,2),C=A[0],L=A[1],u=(0,s.useRef)(new Map),E=(0,s.useRef)(new dn),P=(0,s.useRef)();function W(){$e.Z.cancel(P.current)}function F(){W(),P.current=(0,$e.Z)(function(){u.current.forEach(function(ue,ge){if(ue&&ue.offsetParent){var Ae=(0,ze.Z)(ue),_e=Ae.offsetHeight;E.current.get(ge)!==_e&&E.current.set(ge,Ae.offsetHeight)}}),L(function(ue){return ue+1})})}function re(ue,ge){var Ae=f(ue),_e=u.current.get(Ae);ge?(u.current.set(Ae,ge),F()):u.current.delete(Ae),!_e!=!ge&&(ge?$==null||$(ue):M==null||M(ue))}return(0,s.useEffect)(function(){return W},[]),[re,F,E.current,C]}var Vn=i(90484);function un(f,$,M,o,A,C,L,u){var E=s.useRef();return function(P){if(P==null){u();return}if($e.Z.cancel(E.current),typeof P=="number")L(P);else if(P&&(0,Vn.Z)(P)==="object"){var W,F=P.align;"index"in P?W=P.index:W=$.findIndex(function(Ae){return A(Ae)===P.key});var re=P.offset,ue=re===void 0?0:re,ge=function Ae(_e,bn){if(!(_e<0||!f.current)){var Dn=f.current.clientHeight,Hn=!1,Xe=bn;if(Dn){for(var tt=bn||F,ot=0,xn=0,Qe=0,dt=Math.min($.length,W),Zn=0;Zn<=dt;Zn+=1){var at=A($[Zn]);xn=ot;var Kn=M.get(at);Qe=xn+(Kn===void 0?o:Kn),ot=Qe,Zn===W&&Kn===void 0&&(Hn=!0)}var vn=null;switch(tt){case"top":vn=xn-ue;break;case"bottom":vn=Qe-Dn+ue;break;default:{var Xn=f.current.scrollTop,xe=Xn+Dn;xnxe&&(Xe="bottom")}}vn!==null&&vn!==f.current.scrollTop&&L(vn)}E.current=(0,$e.Z)(function(){Hn&&C(),Ae(_e-1,Xe)},2)}};ge(3)}}}function _n(f,$,M,o){var A=M-f,C=$-M,L=Math.min(A,C)*2;if(o<=L){var u=Math.floor(o/2);return o%2?M+u+1:M-u}return A>C?M-(o-C):M+(o-A)}function An(f,$,M){var o=f.length,A=$.length,C,L;if(o===0&&A===0)return null;o1&&arguments[1]!==void 0?arguments[1]:!1,E=L<0&&C.current.top||L>0&&C.current.bottom;return u&&E?(clearTimeout(o.current),M.current=!1):(!E||M.current)&&A(),!M.current&&E}};function nt(f,$,M,o){var A=(0,s.useRef)(0),C=(0,s.useRef)(null),L=(0,s.useRef)(null),u=(0,s.useRef)(!1),E=En($,M);function P(F){if(!!f){$e.Z.cancel(C.current);var re=F.deltaY;A.current+=re,L.current=re,!E(re)&&(Sn||F.preventDefault(),C.current=(0,$e.Z)(function(){var ue=u.current?10:1;o(A.current*ue),A.current=0}))}}function W(F){!f||(u.current=F.detail===L.current)}return[P,W]}var Rn=i(8410),Tt=14/15;function bt(f,$,M){var o=(0,s.useRef)(!1),A=(0,s.useRef)(0),C=(0,s.useRef)(null),L=(0,s.useRef)(null),u,E=function(re){if(o.current){var ue=Math.ceil(re.touches[0].pageY),ge=A.current-ue;A.current=ue,M(ge)&&re.preventDefault(),clearInterval(L.current),L.current=setInterval(function(){ge*=Tt,(!M(ge,!0)||Math.abs(ge)<=.1)&&clearInterval(L.current)},16)}},P=function(){o.current=!1,u()},W=function(re){u(),re.touches.length===1&&!o.current&&(o.current=!0,A.current=Math.ceil(re.touches[0].pageY),C.current=re.target,C.current.addEventListener("touchmove",E),C.current.addEventListener("touchend",P))};u=function(){C.current&&(C.current.removeEventListener("touchmove",E),C.current.removeEventListener("touchend",P))},(0,Rn.Z)(function(){return f&&$.current.addEventListener("touchstart",W),function(){var F;(F=$.current)===null||F===void 0||F.removeEventListener("touchstart",W),u(),clearInterval(L.current)}},[f])}var Nt=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","component","onScroll","onVisibleChange","innerProps"],Lt=[],Vt={overflowY:"auto",overflowAnchor:"none"};function At(f,$){var M=f.prefixCls,o=M===void 0?"rc-virtual-list":M,A=f.className,C=f.height,L=f.itemHeight,u=f.fullHeight,E=u===void 0?!0:u,P=f.style,W=f.data,F=f.children,re=f.itemKey,ue=f.virtual,ge=f.component,Ae=ge===void 0?"div":ge,_e=f.onScroll,bn=f.onVisibleChange,Dn=f.innerProps,Hn=(0,v.Z)(f,Nt),Xe=!!(ue!==!1&&C&&L),tt=Xe&&W&&L*W.length>C,ot=(0,s.useState)(0),xn=(0,N.Z)(ot,2),Qe=xn[0],dt=xn[1],Zn=(0,s.useState)(!1),at=(0,N.Z)(Zn,2),Kn=at[0],vn=at[1],Xn=we()(o,A),xe=W||Lt,Je=(0,s.useRef)(),wt=(0,s.useRef)(),Mt=(0,s.useRef)(),Qn=s.useCallback(function(d){return typeof re=="function"?re(d):d==null?void 0:d[re]},[re]),Ht={getKey:Qn};function rt(d){dt(function(b){var D;typeof d=="function"?D=d(b):D=d;var k=r(D);return Je.current.scrollTop=k,k})}var vt=(0,s.useRef)({start:0,end:xe.length}),Kt=(0,s.useRef)(),It=ft(xe,Qn),Ut=(0,N.Z)(It,1),Rt=Ut[0];Kt.current=Rt;var Wt=ln(Qn,null,null),mt=(0,N.Z)(Wt,4),_t=mt[0],kt=mt[1],Dt=mt[2],Bt=mt[3],lt=s.useMemo(function(){if(!Xe)return{scrollHeight:void 0,start:0,end:xe.length-1,offset:void 0};if(!tt){var d;return{scrollHeight:((d=wt.current)===null||d===void 0?void 0:d.offsetHeight)||0,start:0,end:xe.length-1,offset:void 0}}for(var b=0,D,k,z,pe=xe.length,ne=0;ne=Qe&&D===void 0&&(D=ne,k=b),q>Qe+C&&z===void 0&&(z=ne),b=q}return D===void 0&&(D=0,k=0,z=Math.ceil(C/L)),z===void 0&&(z=xe.length-1),z=Math.min(z+1,xe.length),{scrollHeight:b,start:D,end:z,offset:k}},[tt,Xe,Qe,xe,Bt,C]),ht=lt.scrollHeight,Un=lt.start,it=lt.end,$t=lt.offset;vt.current.start=Un,vt.current.end=it;var n=ht-C,e=(0,s.useRef)(n);e.current=n;function r(d){var b=d;return Number.isNaN(e.current)||(b=Math.min(b,e.current)),b=Math.max(b,0),b}var a=Qe<=0,c=Qe>=n,l=En(a,c);function m(d){var b=d;rt(b)}function p(d){var b=d.currentTarget.scrollTop;b!==Qe&&rt(b),_e==null||_e(d)}var S=nt(Xe,a,c,function(d){rt(function(b){var D=b+d;return D})}),I=(0,N.Z)(S,2),R=I[0],h=I[1];bt(Xe,Je,function(d,b){return l(d,b)?!1:(R({preventDefault:function(){},deltaY:d}),!0)}),(0,Rn.Z)(function(){function d(b){Xe&&b.preventDefault()}return Je.current.addEventListener("wheel",R),Je.current.addEventListener("DOMMouseScroll",h),Je.current.addEventListener("MozMousePixelScroll",d),function(){Je.current&&(Je.current.removeEventListener("wheel",R),Je.current.removeEventListener("DOMMouseScroll",h),Je.current.removeEventListener("MozMousePixelScroll",d))}},[Xe]);var y=un(Je,xe,Dt,L,Qn,kt,rt,function(){var d;(d=Mt.current)===null||d===void 0||d.delayHidden()});s.useImperativeHandle($,function(){return{scrollTo:y}}),(0,Rn.Z)(function(){if(bn){var d=xe.slice(Un,it+1);bn(d,xe)}},[Un,it,xe]);var g=Ve(xe,Un,it,_t,F,Ht),T=null;return C&&(T=(0,U.Z)((0,oe.Z)({},E?"height":"maxHeight",C),Vt),Xe&&(T.overflowY="hidden",Kn&&(T.pointerEvents="none"))),s.createElement("div",(0,ie.Z)({style:(0,U.Z)((0,U.Z)({},P),{},{position:"relative"}),className:Xn},Hn),s.createElement(Ae,{className:"".concat(o,"-holder"),style:T,ref:Je,onScroll:p},s.createElement(Le,{prefixCls:o,height:ht,offset:$t,onInnerResize:kt,ref:wt,innerProps:Dn},g)),Xe&&s.createElement(Ye,{ref:Mt,prefixCls:o,scrollTop:Qe,height:C,scrollHeight:ht,count:xe.length,onScroll:m,onStartMove:function(){vn(!0)},onStopMove:function(){vn(!1)}}))}var Ct=s.forwardRef(At);Ct.displayName="List";var Ft=Ct,yt=Ft}}]); + onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,N="".concat(oe," ").concat(U).split(/[\s\n]+/),v="aria-",s="data-";function Ee(de,t){return de.indexOf(t)===0}function we(de){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Le;t===!1?Le={aria:!0,data:!0,attr:!0}:t===!0?Le={aria:!0}:Le=(0,ie.Z)({},t);var Re={};return Object.keys(de).forEach(function(He){(Le.aria&&(He==="role"||Ee(He,v))||Le.data&&Ee(He,s)||Le.attr&&N.includes(He))&&(Re[He]=de[He])}),Re}},7606:function(Yn,Ge,i){"use strict";i.d(Ge,{Z:function(){return yt}});var ie=i(22122),oe=i(96156),U=i(28991),N=i(28481),v=i(81253),s=i(67294),Ee=i(94184),we=i.n(Ee),de=i(48717),t=s.forwardRef(function(f,$){var M=f.height,o=f.offset,A=f.children,C=f.prefixCls,L=f.onInnerResize,u=f.innerProps,b={},P={display:"flex",flexDirection:"column"};return o!==void 0&&(b={height:M,position:"relative",overflow:"hidden"},P=(0,U.Z)((0,U.Z)({},P),{},{transform:"translateY(".concat(o,"px)"),position:"absolute",left:0,right:0,top:0})),s.createElement("div",{style:b},s.createElement(de.Z,{onResize:function(F){var re=F.offsetHeight;re&&L&&L()}},s.createElement("div",(0,ie.Z)({style:P,className:we()((0,oe.Z)({},"".concat(C,"-holder-inner"),C)),ref:$},u),A)))});t.displayName="Filler";var Le=t,Re=i(6610),He=i(5991),Ln=i(10379),O=i(44144),$e=i(75164),Ke=20;function Me(f){return"touches"in f?f.touches[0].pageY:f.pageY}var Ye=function(f){(0,Ln.Z)(M,f);var $=(0,O.Z)(M);function M(){var o;(0,Re.Z)(this,M);for(var A=arguments.length,C=new Array(A),L=0;Lb},o}return(0,He.Z)(M,[{key:"componentDidMount",value:function(){this.scrollbarRef.current.addEventListener("touchstart",this.onScrollbarTouchStart),this.thumbRef.current.addEventListener("touchstart",this.onMouseDown)}},{key:"componentDidUpdate",value:function(A){A.scrollTop!==this.props.scrollTop&&this.delayHidden()}},{key:"componentWillUnmount",value:function(){this.removeEvents(),clearTimeout(this.visibleTimeout)}},{key:"render",value:function(){var A=this.state,C=A.dragging,L=A.visible,u=this.props.prefixCls,b=this.getSpinHeight(),P=this.getTop(),W=this.showScroll(),F=W&&L;return s.createElement("div",{ref:this.scrollbarRef,className:we()("".concat(u,"-scrollbar"),(0,oe.Z)({},"".concat(u,"-scrollbar-show"),W)),style:{width:8,top:0,bottom:0,right:0,position:"absolute",display:F?null:"none"},onMouseDown:this.onContainerMouseDown,onMouseMove:this.delayHidden},s.createElement("div",{ref:this.thumbRef,className:we()("".concat(u,"-scrollbar-thumb"),(0,oe.Z)({},"".concat(u,"-scrollbar-thumb-moving"),C)),style:{width:"100%",height:b,top:P,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"},onMouseDown:this.onMouseDown}))}}]),M}(s.Component);function J(f){var $=f.children,M=f.setRef,o=s.useCallback(function(A){M(A)},[]);return s.cloneElement($,{ref:o})}function Ve(f,$,M,o,A,C){var L=C.getKey;return f.slice($,M+1).map(function(u,b){var P=$+b,W=A(u,P,{}),F=L(u);return s.createElement(J,{key:F,setRef:function(ue){return o(u,ue)}},W)})}var ze=i(34203),In=function(){function f(){(0,Re.Z)(this,f),this.maps=void 0,this.maps=Object.create(null)}return(0,He.Z)(f,[{key:"set",value:function(M,o){this.maps[M]=o}},{key:"get",value:function(M){return this.maps[M]}}]),f}(),dn=In;function ln(f,$,M){var o=s.useState(0),A=(0,N.Z)(o,2),C=A[0],L=A[1],u=(0,s.useRef)(new Map),b=(0,s.useRef)(new dn),P=(0,s.useRef)();function W(){$e.Z.cancel(P.current)}function F(){W(),P.current=(0,$e.Z)(function(){u.current.forEach(function(ue,ge){if(ue&&ue.offsetParent){var Ae=(0,ze.Z)(ue),_e=Ae.offsetHeight;b.current.get(ge)!==_e&&b.current.set(ge,Ae.offsetHeight)}}),L(function(ue){return ue+1})})}function re(ue,ge){var Ae=f(ue),_e=u.current.get(Ae);ge?(u.current.set(Ae,ge),F()):u.current.delete(Ae),!_e!=!ge&&(ge?$==null||$(ue):M==null||M(ue))}return(0,s.useEffect)(function(){return W},[]),[re,F,b.current,C]}var Vn=i(90484);function un(f,$,M,o,A,C,L,u){var b=s.useRef();return function(P){if(P==null){u();return}if($e.Z.cancel(b.current),typeof P=="number")L(P);else if(P&&(0,Vn.Z)(P)==="object"){var W,F=P.align;"index"in P?W=P.index:W=$.findIndex(function(Ae){return A(Ae)===P.key});var re=P.offset,ue=re===void 0?0:re,ge=function Ae(_e,En){if(!(_e<0||!f.current)){var Dn=f.current.clientHeight,Hn=!1,Xe=En;if(Dn){for(var tt=En||F,ot=0,xn=0,Qe=0,dt=Math.min($.length,W),Zn=0;Zn<=dt;Zn+=1){var at=A($[Zn]);xn=ot;var Kn=M.get(at);Qe=xn+(Kn===void 0?o:Kn),ot=Qe,Zn===W&&Kn===void 0&&(Hn=!0)}var vn=null;switch(tt){case"top":vn=xn-ue;break;case"bottom":vn=Qe-Dn+ue;break;default:{var Xn=f.current.scrollTop,xe=Xn+Dn;xnxe&&(Xe="bottom")}}vn!==null&&vn!==f.current.scrollTop&&L(vn)}b.current=(0,$e.Z)(function(){Hn&&C(),Ae(_e-1,Xe)},2)}};ge(3)}}}function _n(f,$,M,o){var A=M-f,C=$-M,L=Math.min(A,C)*2;if(o<=L){var u=Math.floor(o/2);return o%2?M+u+1:M-u}return A>C?M-(o-C):M+(o-A)}function An(f,$,M){var o=f.length,A=$.length,C,L;if(o===0&&A===0)return null;o1&&arguments[1]!==void 0?arguments[1]:!1,b=L<0&&C.current.top||L>0&&C.current.bottom;return u&&b?(clearTimeout(o.current),M.current=!1):(!b||M.current)&&A(),!M.current&&b}};function nt(f,$,M,o){var A=(0,s.useRef)(0),C=(0,s.useRef)(null),L=(0,s.useRef)(null),u=(0,s.useRef)(!1),b=bn($,M);function P(F){if(!!f){$e.Z.cancel(C.current);var re=F.deltaY;A.current+=re,L.current=re,!b(re)&&(Sn||F.preventDefault(),C.current=(0,$e.Z)(function(){var ue=u.current?10:1;o(A.current*ue),A.current=0}))}}function W(F){!f||(u.current=F.detail===L.current)}return[P,W]}var Rn=i(8410),Tt=14/15;function Et(f,$,M){var o=(0,s.useRef)(!1),A=(0,s.useRef)(0),C=(0,s.useRef)(null),L=(0,s.useRef)(null),u,b=function(re){if(o.current){var ue=Math.ceil(re.touches[0].pageY),ge=A.current-ue;A.current=ue,M(ge)&&re.preventDefault(),clearInterval(L.current),L.current=setInterval(function(){ge*=Tt,(!M(ge,!0)||Math.abs(ge)<=.1)&&clearInterval(L.current)},16)}},P=function(){o.current=!1,u()},W=function(re){u(),re.touches.length===1&&!o.current&&(o.current=!0,A.current=Math.ceil(re.touches[0].pageY),C.current=re.target,C.current.addEventListener("touchmove",b),C.current.addEventListener("touchend",P))};u=function(){C.current&&(C.current.removeEventListener("touchmove",b),C.current.removeEventListener("touchend",P))},(0,Rn.Z)(function(){return f&&$.current.addEventListener("touchstart",W),function(){var F;(F=$.current)===null||F===void 0||F.removeEventListener("touchstart",W),u(),clearInterval(L.current)}},[f])}var Nt=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","component","onScroll","onVisibleChange","innerProps"],Lt=[],Vt={overflowY:"auto",overflowAnchor:"none"};function At(f,$){var M=f.prefixCls,o=M===void 0?"rc-virtual-list":M,A=f.className,C=f.height,L=f.itemHeight,u=f.fullHeight,b=u===void 0?!0:u,P=f.style,W=f.data,F=f.children,re=f.itemKey,ue=f.virtual,ge=f.component,Ae=ge===void 0?"div":ge,_e=f.onScroll,En=f.onVisibleChange,Dn=f.innerProps,Hn=(0,v.Z)(f,Nt),Xe=!!(ue!==!1&&C&&L),tt=Xe&&W&&L*W.length>C,ot=(0,s.useState)(0),xn=(0,N.Z)(ot,2),Qe=xn[0],dt=xn[1],Zn=(0,s.useState)(!1),at=(0,N.Z)(Zn,2),Kn=at[0],vn=at[1],Xn=we()(o,A),xe=W||Lt,Je=(0,s.useRef)(),wt=(0,s.useRef)(),Mt=(0,s.useRef)(),Qn=s.useCallback(function(d){return typeof re=="function"?re(d):d==null?void 0:d[re]},[re]),Ht={getKey:Qn};function rt(d){dt(function(E){var D;typeof d=="function"?D=d(E):D=d;var k=r(D);return Je.current.scrollTop=k,k})}var vt=(0,s.useRef)({start:0,end:xe.length}),Kt=(0,s.useRef)(),It=ft(xe,Qn),Ut=(0,N.Z)(It,1),Rt=Ut[0];Kt.current=Rt;var Wt=ln(Qn,null,null),mt=(0,N.Z)(Wt,4),_t=mt[0],kt=mt[1],Dt=mt[2],Bt=mt[3],lt=s.useMemo(function(){if(!Xe)return{scrollHeight:void 0,start:0,end:xe.length-1,offset:void 0};if(!tt){var d;return{scrollHeight:((d=wt.current)===null||d===void 0?void 0:d.offsetHeight)||0,start:0,end:xe.length-1,offset:void 0}}for(var E=0,D,k,z,pe=xe.length,ne=0;ne=Qe&&D===void 0&&(D=ne,k=E),q>Qe+C&&z===void 0&&(z=ne),E=q}return D===void 0&&(D=0,k=0,z=Math.ceil(C/L)),z===void 0&&(z=xe.length-1),z=Math.min(z+1,xe.length),{scrollHeight:E,start:D,end:z,offset:k}},[tt,Xe,Qe,xe,Bt,C]),ht=lt.scrollHeight,Un=lt.start,it=lt.end,$t=lt.offset;vt.current.start=Un,vt.current.end=it;var n=ht-C,e=(0,s.useRef)(n);e.current=n;function r(d){var E=d;return Number.isNaN(e.current)||(E=Math.min(E,e.current)),E=Math.max(E,0),E}var a=Qe<=0,c=Qe>=n,l=bn(a,c);function m(d){var E=d;rt(E)}function p(d){var E=d.currentTarget.scrollTop;E!==Qe&&rt(E),_e==null||_e(d)}var S=nt(Xe,a,c,function(d){rt(function(E){var D=E+d;return D})}),I=(0,N.Z)(S,2),R=I[0],h=I[1];Et(Xe,Je,function(d,E){return l(d,E)?!1:(R({preventDefault:function(){},deltaY:d}),!0)}),(0,Rn.Z)(function(){function d(E){Xe&&E.preventDefault()}return Je.current.addEventListener("wheel",R),Je.current.addEventListener("DOMMouseScroll",h),Je.current.addEventListener("MozMousePixelScroll",d),function(){Je.current&&(Je.current.removeEventListener("wheel",R),Je.current.removeEventListener("DOMMouseScroll",h),Je.current.removeEventListener("MozMousePixelScroll",d))}},[Xe]);var y=un(Je,xe,Dt,L,Qn,kt,rt,function(){var d;(d=Mt.current)===null||d===void 0||d.delayHidden()});s.useImperativeHandle($,function(){return{scrollTo:y}}),(0,Rn.Z)(function(){if(En){var d=xe.slice(Un,it+1);En(d,xe)}},[Un,it,xe]);var g=Ve(xe,Un,it,_t,F,Ht),T=null;return C&&(T=(0,U.Z)((0,oe.Z)({},b?"height":"maxHeight",C),Vt),Xe&&(T.overflowY="hidden",Kn&&(T.pointerEvents="none"))),s.createElement("div",(0,ie.Z)({style:(0,U.Z)((0,U.Z)({},P),{},{position:"relative"}),className:Xn},Hn),s.createElement(Ae,{className:"".concat(o,"-holder"),style:T,ref:Je,onScroll:p},s.createElement(Le,{prefixCls:o,height:ht,offset:$t,onInnerResize:kt,ref:wt,innerProps:Dn},g)),Xe&&s.createElement(Ye,{ref:Mt,prefixCls:o,scrollTop:Qe,height:C,scrollHeight:ht,count:xe.length,onScroll:m,onStartMove:function(){vn(!0)},onStopMove:function(){vn(!1)}}))}var Ct=s.forwardRef(At);Ct.displayName="List";var Ft=Ct,yt=Ft}}]); diff --git a/dist/4407.11fa480c.chunk.css b/dist/2383.11fa480c.chunk.css similarity index 100% rename from dist/4407.11fa480c.chunk.css rename to dist/2383.11fa480c.chunk.css diff --git a/dist/3914.a0296ac4.chunk.css b/dist/2664.a0296ac4.chunk.css similarity index 100% rename from dist/3914.a0296ac4.chunk.css rename to dist/2664.a0296ac4.chunk.css diff --git a/dist/2664.f9ceb3c1.async.js b/dist/2664.f9ceb3c1.async.js new file mode 100644 index 0000000..67a779b --- /dev/null +++ b/dist/2664.f9ceb3c1.async.js @@ -0,0 +1 @@ +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[2664],{25414:function(){},95562:function(Ct,Ke,f){"use strict";f.d(Ke,{Z:function(){return ma}});var B=f(96156),V=f(22122),Pe=f(54549),We=f(44545),xt=f(49101),Tt=f(94184),j=f.n(Tt),F=f(28991),k=f(28481),he=f(90484),ye=f(81253),t=f(67294),Pt=f(31131),Ue=f(21770),Zt=f(63441),ge=(0,t.createContext)(null),Nt=t.forwardRef(function(e,a){var o=e.prefixCls,n=e.className,r=e.style,i=e.id,l=e.active,s=e.tabKey,c=e.children;return t.createElement("div",{id:i&&"".concat(i,"-panel-").concat(s),role:"tabpanel",tabIndex:l?0:-1,"aria-labelledby":i&&"".concat(i,"-tab-").concat(s),"aria-hidden":!l,style:r,className:j()(o,l&&"".concat(o,"-active"),n),ref:a},c)}),Ve=Nt,Rt=["key","forceRender","style","className"];function It(e){var a=e.id,o=e.activeKey,n=e.animated,r=e.tabPosition,i=e.destroyInactiveTabPane,l=t.useContext(ge),s=l.prefixCls,c=l.tabs,g=n.tabPane,C="".concat(s,"-tabpane");return t.createElement("div",{className:j()("".concat(s,"-content-holder"))},t.createElement("div",{className:j()("".concat(s,"-content"),"".concat(s,"-content-").concat(r),(0,B.Z)({},"".concat(s,"-content-animated"),g))},c.map(function(u){var E=u.key,Z=u.forceRender,N=u.style,R=u.className,O=(0,ye.Z)(u,Rt),L=E===o;return t.createElement(Zt.Z,(0,V.Z)({key:E,visible:L,forceRender:Z,removeOnLeave:!!i,leavedClassName:"".concat(C,"-hidden")},n.tabPaneMotion),function(M,x){var W=M.style,w=M.className;return t.createElement(Ve,(0,V.Z)({},O,{prefixCls:C,id:a,tabKey:E,animated:g,active:L,style:(0,F.Z)((0,F.Z)({},N),W),className:j()(R,w),ref:x}))})})))}var $e=f(85061),je=f(48717),kt=f(66680),Fe=f(75164),Lt=f(42550),He={width:0,height:0,left:0,top:0};function At(e,a,o){return(0,t.useMemo)(function(){for(var n,r=new Map,i=a.get((n=e[0])===null||n===void 0?void 0:n.key)||He,l=i.left+i.width,s=0;sS?(P=h,I.current="x"):(P=d,I.current="y"),a(-P,-P)&&v.preventDefault()}var D=(0,t.useRef)(null);D.current={onTouchStart:x,onTouchMove:W,onTouchEnd:w,onWheel:T},t.useEffect(function(){function v(p){D.current.onTouchStart(p)}function h(p){D.current.onTouchMove(p)}function d(p){D.current.onTouchEnd(p)}function P(p){D.current.onWheel(p)}return document.addEventListener("touchmove",h,{passive:!1}),document.addEventListener("touchend",d,{passive:!1}),e.current.addEventListener("touchstart",v,{passive:!1}),e.current.addEventListener("wheel",P),function(){document.removeEventListener("touchmove",h),document.removeEventListener("touchend",d)}},[])}var Bt=f(8410);function Qe(e){var a=(0,t.useState)(0),o=(0,k.Z)(a,2),n=o[0],r=o[1],i=(0,t.useRef)(0),l=(0,t.useRef)();return l.current=e,(0,Bt.o)(function(){var s;(s=l.current)===null||s===void 0||s.call(l)},[n]),function(){i.current===n&&(i.current+=1,r(i.current))}}function wt(e){var a=(0,t.useRef)([]),o=(0,t.useState)({}),n=(0,k.Z)(o,2),r=n[1],i=(0,t.useRef)(typeof e=="function"?e():e),l=Qe(function(){var c=i.current;a.current.forEach(function(g){c=g(c)}),a.current=[],i.current=c,r({})});function s(c){a.current.push(c),l()}return[i.current,s]}var Je={width:0,height:0,left:0,top:0,right:0};function Dt(e,a,o,n,r,i,l){var s=l.tabs,c=l.tabPosition,g=l.rtl,C,u,E;return["top","bottom"].includes(c)?(C="width",u=g?"right":"left",E=Math.abs(o)):(C="height",u="top",E=-o),(0,t.useMemo)(function(){if(!s.length)return[0,0];for(var Z=s.length,N=Z,R=0;RE+a){N=R-1;break}}for(var L=0,M=Z-1;M>=0;M-=1){var x=e.get(s[M].key)||Je;if(x[u]b?"left":"right"})}),p=(0,k.Z)(P,2),S=p[0],G=p[1],ue=Ge(0,function(y,b){!d&&x&&x({direction:y>b?"top":"bottom"})}),_=(0,k.Z)(ue,2),H=_[0],q=_[1],de=(0,t.useState)([0,0]),oe=(0,k.Z)(de,2),m=oe[0],z=oe[1],Y=(0,t.useState)([0,0]),$=(0,k.Z)(Y,2),ee=$[0],ce=$[1],ie=(0,t.useState)([0,0]),ve=(0,k.Z)(ie,2),Ze=ve[0],Ne=ve[1],Re=(0,t.useState)([0,0]),fe=(0,k.Z)(Re,2),Ie=fe[0],ke=fe[1],A=wt(new Map),te=(0,k.Z)(A,2),me=te[0],ba=te[1],Ce=At(i,me,ee[0]),Le=Ee(m,d),be=Ee(ee,d),Ae=Ee(Ze,d),it=Ee(Ie,d),lt=Lele?le:y}var st=(0,t.useRef)(),ha=(0,t.useState)(),ct=(0,k.Z)(ha,2),xe=ct[0],ut=ct[1];function Oe(){ut(Date.now())}function Be(){window.clearTimeout(st.current)}Ot(T,function(y,b){function K(U,re){U(function(J){var Za=Me(J+re);return Za})}return lt?(d?K(G,y):K(q,b),Be(),Oe(),!0):!1}),(0,t.useEffect)(function(){return Be(),xe&&(st.current=window.setTimeout(function(){ut(0)},100)),Be},[xe]);var ya=Dt(Ce,Q,d?S:H,be,Ae,it,(0,F.Z)((0,F.Z)({},e),{},{tabs:i})),dt=(0,k.Z)(ya,2),ga=dt[0],Sa=dt[1],vt=(0,kt.Z)(function(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:C,b=Ce.get(y)||{width:0,height:0,left:0,right:0,top:0};if(d){var K=S;u?b.rightS+Q&&(K=b.right+b.width-Q):b.left<-S?K=-b.left:b.left+b.width>-S+Q&&(K=-(b.left+b.width-Q)),q(0),G(Me(K))}else{var U=H;b.top<-H?U=-b.top:b.top+b.height>-H+Q&&(U=-(b.top+b.height-Q)),G(0),q(Me(U))}}),Te={};R==="top"||R==="bottom"?Te[u?"marginRight":"marginLeft"]=O:Te.marginTop=O;var ft=i.map(function(y,b){var K=y.key;return t.createElement(Ft,{id:c,prefixCls:r,key:K,tab:y,style:b===0?void 0:Te,closable:y.closable,editable:Z,active:K===C,renderWrapper:L,removeAriaLabel:N==null?void 0:N.removeAriaLabel,onClick:function(re){M(K,re)},onFocus:function(){vt(K),Oe(),!!T.current&&(u||(T.current.scrollLeft=0),T.current.scrollTop=0)}})}),mt=function(){return ba(function(){var b=new Map;return i.forEach(function(K){var U,re=K.key,J=(U=D.current)===null||U===void 0?void 0:U.querySelector('[data-node-key="'.concat(_e(re),'"]'));J&&b.set(re,{width:J.offsetWidth,height:J.offsetHeight,left:J.offsetLeft,top:J.offsetTop})}),b})};(0,t.useEffect)(function(){mt()},[i.map(function(y){return y.key}).join("_")]);var we=Qe(function(){var y=se(W),b=se(w),K=se(I);z([y[0]-b[0]-K[0],y[1]-b[1]-K[1]]);var U=se(h);Ne(U);var re=se(v);ke(re);var J=se(D);ce([J[0]-U[0],J[1]-U[1]]),mt()}),Ea=i.slice(0,ga),Ca=i.slice(Sa+1),bt=[].concat((0,$e.Z)(Ea),(0,$e.Z)(Ca)),xa=(0,t.useState)(),pt=(0,k.Z)(xa,2),Ta=pt[0],Pa=pt[1],ne=Ce.get(C),ht=(0,t.useRef)();function yt(){Fe.Z.cancel(ht.current)}(0,t.useEffect)(function(){var y={};return ne&&(d?(u?y.right=ne.right:y.left=ne.left,y.width=ne.width):(y.top=ne.top,y.height=ne.height)),yt(),ht.current=(0,Fe.Z)(function(){Pa(y)}),yt},[ne,d,u]),(0,t.useEffect)(function(){vt()},[C,ae,le,qe(ne),qe(Ce),d]),(0,t.useEffect)(function(){we()},[u]);var gt=!!bt.length,pe="".concat(r,"-nav-wrap"),De,ze,St,Et;return d?u?(ze=S>0,De=S!==le):(De=S<0,ze=S!==ae):(St=H<0,Et=H!==ae),t.createElement(je.Z,{onResize:we},t.createElement("div",{ref:(0,Lt.x1)(a,W),role:"tablist",className:j()("".concat(r,"-nav"),l),style:s,onKeyDown:function(){Oe()}},t.createElement(tt,{ref:w,position:"left",extra:E,prefixCls:r}),t.createElement("div",{className:j()(pe,(o={},(0,B.Z)(o,"".concat(pe,"-ping-left"),De),(0,B.Z)(o,"".concat(pe,"-ping-right"),ze),(0,B.Z)(o,"".concat(pe,"-ping-top"),St),(0,B.Z)(o,"".concat(pe,"-ping-bottom"),Et),o)),ref:T},t.createElement(je.Z,{onResize:we},t.createElement("div",{ref:D,className:"".concat(r,"-nav-list"),style:{transform:"translate(".concat(S,"px, ").concat(H,"px)"),transition:xe?"none":void 0}},ft,t.createElement(et,{ref:h,prefixCls:r,locale:N,editable:Z,style:(0,F.Z)((0,F.Z)({},ft.length===0?void 0:Te),{},{visibility:gt?"hidden":null})}),t.createElement("div",{className:j()("".concat(r,"-ink-bar"),(0,B.Z)({},"".concat(r,"-ink-bar-animated"),g.inkBar)),style:Ta})))),t.createElement($t,(0,V.Z)({},e,{removeAriaLabel:N==null?void 0:N.removeAriaLabel,ref:v,prefixCls:r,tabs:bt,className:!gt&&pa,tabMoving:!!xe})),t.createElement(tt,{ref:I,position:"right",extra:E,prefixCls:r})))}var nt=t.forwardRef(Ht),Gt=["renderTabBar"],Xt=["label","key"];function Yt(e){var a=e.renderTabBar,o=(0,ye.Z)(e,Gt),n=t.useContext(ge),r=n.tabs;if(a){var i=(0,F.Z)((0,F.Z)({},o),{},{panes:r.map(function(l){var s=l.label,c=l.key,g=(0,ye.Z)(l,Xt);return t.createElement(Ve,(0,V.Z)({tab:s,key:c,tabKey:c},g))})});return a(i,nt)}return t.createElement(nt,o)}var Na=f(80334);function Qt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},a;return e===!1?a={inkBar:!1,tabPane:!1}:e===!0?a={inkBar:!0,tabPane:!1}:a=(0,F.Z)({inkBar:!0},(0,he.Z)(e)==="object"?e:{}),a.tabPaneMotion&&a.tabPane===void 0&&(a.tabPane=!0),!a.tabPaneMotion&&a.tabPane&&(a.tabPane=!1),a}var Jt=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName"],rt=0;function qt(e,a){var o,n=e.id,r=e.prefixCls,i=r===void 0?"rc-tabs":r,l=e.className,s=e.items,c=e.direction,g=e.activeKey,C=e.defaultActiveKey,u=e.editable,E=e.animated,Z=e.tabPosition,N=Z===void 0?"top":Z,R=e.tabBarGutter,O=e.tabBarStyle,L=e.tabBarExtraContent,M=e.locale,x=e.moreIcon,W=e.moreTransitionName,w=e.destroyInactiveTabPane,I=e.renderTabBar,T=e.onChange,D=e.onTabClick,v=e.onTabScroll,h=e.getPopupContainer,d=e.popupClassName,P=(0,ye.Z)(e,Jt),p=t.useMemo(function(){return(s||[]).filter(function(A){return A&&(0,he.Z)(A)==="object"&&"key"in A})},[s]),S=c==="rtl",G=Qt(E),ue=(0,t.useState)(!1),_=(0,k.Z)(ue,2),H=_[0],q=_[1];(0,t.useEffect)(function(){q((0,Pt.Z)())},[]);var de=(0,Ue.Z)(function(){var A;return(A=p[0])===null||A===void 0?void 0:A.key},{value:g,defaultValue:C}),oe=(0,k.Z)(de,2),m=oe[0],z=oe[1],Y=(0,t.useState)(function(){return p.findIndex(function(A){return A.key===m})}),$=(0,k.Z)(Y,2),ee=$[0],ce=$[1];(0,t.useEffect)(function(){var A=p.findIndex(function(me){return me.key===m});if(A===-1){var te;A=Math.max(0,Math.min(ee,p.length-1)),z((te=p[A])===null||te===void 0?void 0:te.key)}ce(A)},[p.map(function(A){return A.key}).join("_"),m,ee]);var ie=(0,Ue.Z)(null,{value:n}),ve=(0,k.Z)(ie,2),Ze=ve[0],Ne=ve[1];(0,t.useEffect)(function(){n||(Ne("rc-tabs-".concat(rt)),rt+=1)},[]);function Re(A,te){D==null||D(A,te);var me=A!==m;z(A),me&&(T==null||T(A))}var fe={id:Ze,activeKey:m,animated:G,tabPosition:N,rtl:S,mobile:H},Ie,ke=(0,F.Z)((0,F.Z)({},fe),{},{editable:u,locale:M,moreIcon:x,moreTransitionName:W,tabBarGutter:R,onTabClick:Re,onTabScroll:v,extra:L,style:O,panes:null,getPopupContainer:h,popupClassName:d});return t.createElement(ge.Provider,{value:{tabs:p,prefixCls:i}},t.createElement("div",(0,V.Z)({ref:a,id:n,className:j()(i,"".concat(i,"-").concat(N),(o={},(0,B.Z)(o,"".concat(i,"-mobile"),H),(0,B.Z)(o,"".concat(i,"-editable"),u),(0,B.Z)(o,"".concat(i,"-rtl"),S),o),l)},P),Ie,t.createElement(Yt,(0,V.Z)({},ke,{renderTabBar:I})),t.createElement(It,(0,V.Z)({destroyInactiveTabPane:w},fe,{animated:G}))))}var _t=t.forwardRef(qt),ea=_t,ta=ea,aa=f(53124),na=f(97647),ra=f(33603),oa={motionAppear:!1,motionEnter:!0,motionLeave:!0};function ia(e){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},o;return a===!1?o={inkBar:!1,tabPane:!1}:a===!0?o={inkBar:!0,tabPane:!0}:o=(0,V.Z)({inkBar:!0},(0,he.Z)(a)==="object"?a:{}),o.tabPane&&(o.tabPaneMotion=(0,V.Z)((0,V.Z)({},oa),{motionName:(0,ra.mL)(e,"switch")})),o}var la=f(50344),sa=function(e,a){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&a.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,n=Object.getOwnPropertySymbols(e);r2?42:16};return(0,e.jsx)(O.Z,{bordered:!1,style:{marginBottom:16},children:(0,e.jsx)("div",{style:{width:"100%",justifyContent:"space-between",display:"flex"},children:new Array(s).fill(null).map(function(Z,o){return(0,e.jsxs)("div",{style:{borderLeft:s>2&&o===1?"1px solid rgba(0,0,0,0.06)":void 0,paddingLeft:x(o),flex:1,marginRight:o===0?16:0},children:[(0,e.jsx)(h.Z,{active:r,paragraph:!1,title:{width:100,style:{marginTop:0}}}),(0,e.jsx)(h.Z.Button,{active:r,style:{height:48}})]},o)})})})},m=function(t){var a=t.active;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(O.Z,{bordered:!1,style:{borderRadius:0},bodyStyle:{padding:24},children:(0,e.jsxs)("div",{style:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[(0,e.jsx)("div",{style:{maxWidth:"100%",flex:1},children:(0,e.jsx)(h.Z,{active:a,title:{width:100,style:{marginTop:0}},paragraph:{rows:1,style:{margin:0}}})}),(0,e.jsx)(h.Z.Button,{active:a,size:"small",style:{width:165,marginTop:12}})]})}),(0,e.jsx)(je,{})]})},j=function(t){var a=t.size,r=t.active,i=r===void 0?!0:r,s=t.actionButton;return(0,e.jsxs)(O.Z,{bordered:!1,bodyStyle:{padding:0},children:[new Array(a).fill(null).map(function(x,Z){return(0,e.jsx)(m,{active:!!i},Z)}),s!==!1&&(0,e.jsx)(O.Z,{bordered:!1,style:{borderTopRightRadius:0,borderTopLeftRadius:0},bodyStyle:{display:"flex",alignItems:"center",justifyContent:"center"},children:(0,e.jsx)(h.Z.Button,{style:{width:102},active:i,size:"small"})})]})},D=function(t){var a=t.active;return(0,e.jsxs)("div",{style:{marginBottom:16},children:[(0,e.jsx)(h.Z,{paragraph:!1,title:{width:185}}),(0,e.jsx)(h.Z.Button,{active:a,size:"small"})]})},I=function(t){var a=t.active;return(0,e.jsx)(O.Z,{bordered:!1,style:{borderBottomRightRadius:0,borderBottomLeftRadius:0},bodyStyle:{paddingBottom:8},children:(0,e.jsxs)(Y.Z,{style:{width:"100%",justifyContent:"space-between"},children:[(0,e.jsx)(h.Z.Button,{active:a,style:{width:200},size:"small"}),(0,e.jsxs)(Y.Z,{children:[(0,e.jsx)(h.Z.Button,{active:a,size:"small",style:{width:120}}),(0,e.jsx)(h.Z.Button,{active:a,size:"small",style:{width:80}})]})]})})},E=function(t){var a=t.active,r=a===void 0?!0:a,i=t.statistic,s=t.actionButton,x=t.toolbar,Z=t.pageHeader,o=t.list,P=o===void 0?5:o;return(0,e.jsxs)("div",{style:{width:"100%"},children:[Z!==!1&&(0,e.jsx)(D,{active:r}),i!==!1&&(0,e.jsx)(u,{size:i,active:r}),(x!==!1||P!==!1)&&(0,e.jsxs)(O.Z,{bordered:!1,bodyStyle:{padding:0},children:[x!==!1&&(0,e.jsx)(I,{active:r}),P!==!1&&(0,e.jsx)(j,{size:P,active:r,actionButton:s})]})]})},k=E,W={xs:1,sm:2,md:3,lg:3,xl:3,xxl:4},J=function(t){var a=t.active;return(0,e.jsxs)("div",{style:{marginTop:32},children:[(0,e.jsx)(h.Z.Button,{active:a,size:"small",style:{width:100,marginBottom:16}}),(0,e.jsxs)("div",{style:{width:"100%",justifyContent:"space-between",display:"flex"},children:[(0,e.jsxs)("div",{style:{flex:1,marginRight:24,maxWidth:300},children:[(0,e.jsx)(h.Z,{active:a,paragraph:!1,title:{style:{marginTop:0}}}),(0,e.jsx)(h.Z,{active:a,paragraph:!1,title:{style:{marginTop:8}}}),(0,e.jsx)(h.Z,{active:a,paragraph:!1,title:{style:{marginTop:8}}})]}),(0,e.jsx)("div",{style:{flex:1,alignItems:"center",justifyContent:"center"},children:(0,e.jsxs)("div",{style:{maxWidth:300,margin:"auto"},children:[(0,e.jsx)(h.Z,{active:a,paragraph:!1,title:{style:{marginTop:0}}}),(0,e.jsx)(h.Z,{active:a,paragraph:!1,title:{style:{marginTop:8}}})]})})]})]})},z=function(t){var a=t.size,r=t.active,i=(0,me.ZP)(),s=a===void 0?W[i]||3:a;return(0,e.jsx)("div",{style:{width:"100%",justifyContent:"space-between",display:"flex"},children:new Array(s).fill(null).map(function(x,Z){return(0,e.jsxs)("div",{style:{flex:1,paddingLeft:Z===0?0:24,paddingRight:Z===s-1?0:24},children:[(0,e.jsx)(h.Z,{active:r,paragraph:!1,title:{style:{marginTop:0}}}),(0,e.jsx)(h.Z,{active:r,paragraph:!1,title:{style:{marginTop:8}}}),(0,e.jsx)(h.Z,{active:r,paragraph:!1,title:{style:{marginTop:8}}})]},Z)})})},A=function(t){var a=t.active,r=t.header,i=r===void 0?!1:r,s=(0,me.ZP)(),x=W[s]||3;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)("div",{style:{display:"flex",background:i?"rgba(0,0,0,0.02)":"none",padding:"24px 8px"},children:[new Array(x).fill(null).map(function(Z,o){return(0,e.jsx)("div",{style:{flex:1,paddingLeft:i&&o===0?0:20,paddingRight:32},children:(0,e.jsx)(h.Z,{active:a,paragraph:!1,title:{style:{margin:0,height:24,width:i?"75px":"100%"}}})},o)}),(0,e.jsx)("div",{style:{flex:3,paddingLeft:32},children:(0,e.jsx)(h.Z,{active:a,paragraph:!1,title:{style:{margin:0,height:24,width:i?"75px":"100%"}}})})]}),(0,e.jsx)(je,{padding:"0px 0px"})]})},ae=function(t){var a=t.active,r=t.size,i=r===void 0?4:r;return(0,e.jsxs)(O.Z,{bordered:!1,children:[(0,e.jsx)(h.Z.Button,{active:a,size:"small",style:{width:100,marginBottom:16}}),(0,e.jsx)(A,{header:!0,active:a}),new Array(i).fill(null).map(function(s,x){return(0,e.jsx)(A,{active:a},x)}),(0,e.jsx)("div",{style:{display:"flex",justifyContent:"flex-end",paddingTop:16},children:(0,e.jsx)(h.Z,{active:a,paragraph:!1,title:{style:{margin:0,height:32,float:"right",maxWidth:"630px"}}})})]})},q=function(t){var a=t.active;return(0,e.jsxs)(O.Z,{bordered:!1,style:{borderTopRightRadius:0,borderTopLeftRadius:0},children:[(0,e.jsx)(h.Z.Button,{active:a,size:"small",style:{width:100,marginBottom:16}}),(0,e.jsx)(z,{active:a}),(0,e.jsx)(J,{active:a})]})},R=function(t){var a=t.active,r=a===void 0?!0:a,i=t.pageHeader,s=t.list;return(0,e.jsxs)("div",{style:{width:"100%"},children:[i!==!1&&(0,e.jsx)(D,{active:r}),(0,e.jsx)(q,{active:r}),s!==!1&&(0,e.jsx)(je,{}),s!==!1&&(0,e.jsx)(ae,{active:r,size:s})]})},ie=R,se=function(t){var a=t.active,r=a===void 0?!0:a,i=t.pageHeader;return(0,e.jsxs)("div",{style:{width:"100%"},children:[i!==!1&&(0,e.jsx)(D,{active:r}),(0,e.jsx)(O.Z,{children:(0,e.jsxs)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",padding:128},children:[(0,e.jsx)(h.Z.Avatar,{size:64,style:{marginBottom:32}}),(0,e.jsx)(h.Z.Button,{active:r,style:{width:214,marginBottom:8}}),(0,e.jsx)(h.Z.Button,{active:r,style:{width:328},size:"small"}),(0,e.jsxs)(Y.Z,{style:{marginTop:24},children:[(0,e.jsx)(h.Z.Button,{active:r,style:{width:116}}),(0,e.jsx)(h.Z.Button,{active:r,style:{width:116}})]})]})})]})},oe=se,de=["type"],ce=function(t){var a=t.type,r=a===void 0?"list":a,i=(0,xe.Z)(t,de);return r==="result"?(0,e.jsx)(oe,(0,d.Z)({},i)):r==="descriptions"?(0,e.jsx)(ie,(0,d.Z)({},i)):(0,e.jsx)(k,(0,d.Z)({},i))},N=ce,Se=n(34792),ue=n(48086),ne=n(28481),ye=n(78775),ee=n(21770),ge=n(86671);function Re(l){var t=l.data,a=l.row;return(0,d.Z)((0,d.Z)({},t),a)}function be(l){var t=l.type||"single",a=(0,ye.YB)(),r=(0,ee.Z)([],{value:l.editableKeys,onChange:l.onChange?function(y){var S;l==null||(S=l.onChange)===null||S===void 0||S.call(l,y,l.dataSource)}:void 0}),i=(0,ne.Z)(r,2),s=i[0],x=i[1],Z=(0,U.useMemo)(function(){var y=t==="single"?s==null?void 0:s.slice(0,1):s;return new Set(y)},[(s||[]).join(","),t]),o=(0,U.useCallback)(function(y){return!!(s==null?void 0:s.includes((0,ge.sN)(y)))},[(s||[]).join(",")]),P=function(S){return Z.size>0&&t==="single"?(ue.default.warn(l.onlyOneLineEditorAlertMessage||a.getMessage("editableTable.onlyOneLineEditor","\u53EA\u80FD\u540C\u65F6\u7F16\u8F91\u4E00\u884C")),!1):(Z.add((0,ge.sN)(S)),x(Array.from(Z)),!0)},$=function(S){return Z.delete((0,ge.sN)(S)),x(Array.from(Z)),!0},Q=function(){var y=(0,_.Z)((0,G.Z)().mark(function S(w,b,g,T){var L,M;return(0,G.Z)().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,l==null||(L=l.onCancel)===null||L===void 0?void 0:L.call(l,w,b,g,T);case 2:if(M=c.sent,M!==!1){c.next=5;break}return c.abrupt("return",!1);case 5:return c.abrupt("return",!0);case 6:case"end":return c.stop()}},S)}));return function(w,b,g,T){return y.apply(this,arguments)}}(),F=function(){var y=(0,_.Z)((0,G.Z)().mark(function S(w,b,g){var T,L,M;return(0,G.Z)().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,l==null||(T=l.onSave)===null||T===void 0?void 0:T.call(l,w,b,g);case 2:if(L=c.sent,L!==!1){c.next=5;break}return c.abrupt("return",!1);case 5:return $(w),M={data:l.dataSource,row:b,key:w,childrenColumnName:l.childrenColumnName||"children"},l.setDataSource(Re(M)),c.abrupt("return",!0);case 9:case"end":return c.stop()}},S)}));return function(w,b,g){return y.apply(this,arguments)}}(),K=a.getMessage("editableTable.action.save","\u4FDD\u5B58"),H=a.getMessage("editableTable.action.delete","\u5220\u9664"),B=a.getMessage("editableTable.action.cancel","\u53D6\u6D88"),X=(0,U.useCallback)(function(y,S){var w=(0,d.Z)({recordKey:y,cancelEditable:$,onCancel:Q,onSave:F,editableKeys:s,setEditableRowKeys:x,saveText:K,cancelText:B,deleteText:H,deletePopconfirmMessage:"".concat(a.getMessage("deleteThisLine","\u5220\u9664\u6B64\u884C"),"?"),editorType:"Map"},S),b=(0,ge.aX)(l.dataSource,w);return l.actionRender?l.actionRender(l.dataSource,w,{save:b[0],delete:b[1],cancel:b[2]}):b},[s&&s.join(","),l.dataSource]);return{editableKeys:s,setEditableRowKeys:x,isEditable:o,actionRender:X,startEditable:P,cancelEditable:$}}var he=be,Le=n(2026),Oe=n(94984),ke=n(77398),Fe=n(53621),We=n(78164),He=n(50344),Ve=n(88306),Ue=n(30939),it=n(65515),Qe=function(t,a){var r=a||{},i=r.onRequestError,s=r.effects,x=r.manual,Z=r.dataSource,o=r.defaultDataSource,P=r.onDataSourceChange,$=(0,ee.Z)(o,{value:Z,onChange:P}),Q=(0,ne.Z)($,2),F=Q[0],K=Q[1],H=(0,ee.Z)(a==null?void 0:a.loading,{value:a==null?void 0:a.loading,onChange:a==null?void 0:a.onLoadingChange}),B=(0,ne.Z)(H,2),X=B[0],y=B[1],S=function(g){K(g),y(!1)},w=function(){var b=(0,_.Z)((0,G.Z)().mark(function g(){var T,L,M;return(0,G.Z)().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:if(!X){c.next=2;break}return c.abrupt("return");case 2:return y(!0),c.prev=3,c.next=6,t();case 6:if(c.t0=c.sent,c.t0){c.next=9;break}c.t0={};case 9:T=c.t0,L=T.data,M=T.success,M!==!1&&S(L),c.next=23;break;case 15:if(c.prev=15,c.t1=c.catch(3),i!==void 0){c.next=21;break}throw new Error(c.t1);case 21:i(c.t1);case 22:y(!1);case 23:case"end":return c.stop()}},g,null,[[3,15]])}));return function(){return b.apply(this,arguments)}}();return(0,U.useEffect)(function(){x||w()},[].concat((0,V.Z)(s||[]),[x])),{dataSource:F,setDataSource:K,loading:X,reload:function(){return w()}}},Xe=Qe,Ge=["valueEnum","render","renderText","mode","plain","dataIndex","request","params","editable"],Ye=["request","columns","params","dataSource","onDataSourceChange","formProps","editable","loading","onLoadingChange","actionRef","onRequestError"],Je=function(t,a){var r=t.dataIndex;if(r){var i=Array.isArray(r)?(0,Ve.Z)(a,r):a[r];if(i!==void 0||i!==null)return i}return t.children},qe=function(t){var a=t.valueEnum,r=t.action,i=t.index,s=t.text,x=t.entity,Z=t.mode,o=t.render,P=t.editableUtils,$=t.valueType,Q=t.plain,F=t.dataIndex,K=t.request,H=t.renderFormItem,B=t.params,X=fe.ZP.useFormInstance(),y={text:s,valueEnum:a,mode:Z||"read",proFieldProps:{render:o?function(){return o==null?void 0:o(s,x,i,r,(0,d.Z)((0,d.Z)({},t),{},{type:"descriptions"}))}:void 0},ignoreFormItem:!0,valueType:$,request:K,params:B,plain:Q};if(Z==="read"||!Z||$==="option"){var S=(0,Le.Z)(t.fieldProps,void 0,(0,d.Z)((0,d.Z)({},t),{},{rowKey:F,isEditable:!1}));return(0,e.jsx)(Ze.Z,(0,d.Z)((0,d.Z)({name:F},y),{},{fieldProps:S}))}var w=function(){var g,T=(0,Le.Z)(t.formItemProps,X,(0,d.Z)((0,d.Z)({},t),{},{rowKey:F,isEditable:!0})),L=(0,Le.Z)(t.fieldProps,X,(0,d.Z)((0,d.Z)({},t),{},{rowKey:F,isEditable:!0})),M=H?H==null?void 0:H((0,d.Z)((0,d.Z)({},t),{},{type:"descriptions"}),{isEditable:!0,recordKey:F,record:X.getFieldValue([F].flat(1)),defaultRender:function(){return(0,e.jsx)(Ze.Z,(0,d.Z)((0,d.Z)({},y),{},{fieldProps:L}))},type:"descriptions"},X):void 0;return(0,e.jsxs)(Y.Z,{children:[(0,e.jsx)(Oe.Z,(0,d.Z)((0,d.Z)({name:F},T),{},{style:(0,d.Z)({margin:0},(T==null?void 0:T.style)||{}),initialValue:s||(T==null?void 0:T.initialValue),children:M||(0,e.jsx)(Ze.Z,(0,d.Z)((0,d.Z)({},y),{},{proFieldProps:(0,d.Z)({},y.proFieldProps),fieldProps:L}))})),P==null||(g=P.actionRender)===null||g===void 0?void 0:g.call(P,F||i,{cancelText:(0,e.jsx)(ve.Z,{}),saveText:(0,e.jsx)(De.Z,{}),deleteText:!1})]})};return(0,e.jsx)("div",{style:{marginTop:-5,marginBottom:-5,marginLeft:0,marginRight:0},children:w()})},_e=function(t,a,r,i){var s,x=[],Z=t==null||(s=t.map)===null||s===void 0?void 0:s.call(t,function(o,P){var $,Q;if(U.isValidElement(o))return o;var F=o.valueEnum,K=o.render,H=o.renderText,B=o.mode,X=o.plain,y=o.dataIndex,S=o.request,w=o.params,b=o.editable,g=(0,xe.Z)(o,Ge),T=($=Je(o,a))!==null&&$!==void 0?$:g.children,L=H?H(T,a,P,r):T,M=typeof g.title=="function"?g.title(o,"descriptions",null):g.title,te=typeof g.valueType=="function"?g.valueType(a||{},"descriptions"):g.valueType,c=i==null?void 0:i.isEditable(y||P),re=B||c?"edit":"read",p=i&&re==="read"&&b!==!1&&(b==null?void 0:b(L,a,P))!==!1,C=p?Y.Z:U.Fragment,Be=re==="edit"?L:(0,ke.X)(L,o,L),Te=(0,U.createElement)(v.Z.Item,(0,d.Z)((0,d.Z)({},g),{},{key:g.key||((Q=g.label)===null||Q===void 0?void 0:Q.toString())||P,label:(M||g.label||g.tooltip||g.tip)&&(0,e.jsx)(Fe.Z,{label:M||g.label,tooltip:g.tooltip||g.tip,ellipsis:o.ellipsis})}),(0,e.jsxs)(C,{children:[(0,e.jsx)(qe,(0,d.Z)((0,d.Z)({},o),{},{dataIndex:o.dataIndex||P,mode:re,text:Be,valueType:te,entity:a,index:P,action:r,editableUtils:i})),p&&te!=="option"&&(0,e.jsx)(pe.Z,{onClick:function(){i==null||i.startEditable(y||P)}})]}));return te==="option"?(x.push(Te),null):Te}).filter(function(o){return o});return{options:(x==null?void 0:x.length)?x:null,children:Z}},et=function(t){return(0,e.jsx)(v.Z.Item,(0,d.Z)((0,d.Z)({},t),{},{children:t.children}))},tt=function(t){return t.children},Ae=function(t){var a,r=t.request,i=t.columns,s=t.params,x=s===void 0?{}:s,Z=t.dataSource,o=t.onDataSourceChange,P=t.formProps,$=t.editable,Q=t.loading,F=t.onLoadingChange,K=t.actionRef,H=t.onRequestError,B=(0,xe.Z)(t,Ye),X=(0,U.useContext)(le.ZP.ConfigContext),y=Xe((0,_.Z)((0,G.Z)().mark(function c(){var re;return(0,G.Z)().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:if(!r){C.next=6;break}return C.next=3,r(x);case 3:C.t0=C.sent,C.next=7;break;case 6:C.t0={data:{}};case 7:return re=C.t0,C.abrupt("return",re);case 9:case"end":return C.stop()}},c)})),{onRequestError:H,effects:[(0,Ue.P)(x)],manual:!r,dataSource:Z,loading:Q,onLoadingChange:F,onDataSourceChange:o}),S=he((0,d.Z)((0,d.Z)({},t.editable),{},{childrenColumnName:void 0,dataSource:y.dataSource,setDataSource:y.setDataSource}));if((0,U.useEffect)(function(){K&&(K.current=(0,d.Z)({reload:y.reload},S))},[y,K,S]),y.loading||y.loading===void 0&&r)return(0,e.jsx)(N,{type:"descriptions",list:!1,pageHeader:!1});var w=function(){var re=(0,He.Z)(t.children).filter(Boolean).map(function(p){if(!U.isValidElement(p))return p;var C=p==null?void 0:p.props,Be=C.valueEnum,Te=C.valueType,Ke=C.dataIndex,nt=C.ellipsis,rt=C.copyable,lt=C.request;return!Te&&!Be&&!Ke&&!lt&&!nt&&!rt?p:(0,d.Z)((0,d.Z)({},p==null?void 0:p.props),{},{entity:Z})});return[].concat((0,V.Z)(i||[]),(0,V.Z)(re)).filter(function(p){return!p||(p==null?void 0:p.valueType)&&["index","indexBorder"].includes(p==null?void 0:p.valueType)?!1:!(p==null?void 0:p.hideInDescriptions)}).sort(function(p,C){return C.order||p.order?(C.order||0)-(p.order||0):(C.index||0)-(p.index||0)})},b=_e(w(),y.dataSource||{},(K==null?void 0:K.current)||y,$?S:void 0),g=b.options,T=b.children,L=$?fe.ZP:tt,M=null;(B.title||B.tooltip||B.tip)&&(M=(0,e.jsx)(Fe.Z,{label:B.title,tooltip:B.tooltip||B.tip}));var te=X.getPrefixCls("pro-descriptions");return(0,e.jsx)(We.Z,{children:(0,e.jsx)(L,(0,d.Z)((0,d.Z)({form:(a=t.editable)===null||a===void 0?void 0:a.form,component:!1,submitter:!1},P),{},{onFinish:void 0,children:(0,e.jsx)(v.Z,(0,d.Z)((0,d.Z)({className:te},B),{},{extra:B.extra?(0,e.jsxs)(Y.Z,{children:[g,B.extra]}):g,title:M,children:T}))}),"form")})};Ae.Item=et;var at=Ae},65515:function(){},52953:function(){},4914:function(we,Ce,n){"use strict";n.d(Ce,{K:function(){return O},Z:function(){return je}});var V=n(96156),G=n(28481),_=n(90484),Pe=n(94184),le=n.n(Pe),ze=n(50344),v=n(67294),xe=n(53124),Me=n(96159),Y=n(24308),d=function(u){var m=u.children;return m},U=d,e=n(22122);function ve(f){return f!=null}var De=function(u){var m=u.itemPrefixCls,j=u.component,D=u.span,I=u.className,E=u.style,k=u.labelStyle,W=u.contentStyle,J=u.bordered,z=u.label,A=u.content,ae=u.colon,q=j;if(J){var R;return v.createElement(q,{className:le()((R={},(0,V.Z)(R,"".concat(m,"-item-label"),ve(z)),(0,V.Z)(R,"".concat(m,"-item-content"),ve(A)),R),I),style:E,colSpan:D},ve(z)&&v.createElement("span",{style:k},z),ve(A)&&v.createElement("span",{style:W},A))}return v.createElement(q,{className:le()("".concat(m,"-item"),I),style:E,colSpan:D},v.createElement("div",{className:"".concat(m,"-item-container")},(z||z===0)&&v.createElement("span",{className:le()("".concat(m,"-item-label"),(0,V.Z)({},"".concat(m,"-item-no-colon"),!ae)),style:k},z),(A||A===0)&&v.createElement("span",{className:le()("".concat(m,"-item-content")),style:W},A)))},pe=De;function fe(f,u,m){var j=u.colon,D=u.prefixCls,I=u.bordered,E=m.component,k=m.type,W=m.showLabel,J=m.showContent,z=m.labelStyle,A=m.contentStyle;return f.map(function(ae,q){var R=ae.props,ie=R.label,se=R.children,oe=R.prefixCls,de=oe===void 0?D:oe,ce=R.className,N=R.style,Se=R.labelStyle,ue=R.contentStyle,ne=R.span,ye=ne===void 0?1:ne,ee=ae.key;return typeof E=="string"?v.createElement(pe,{key:"".concat(k,"-").concat(ee||q),className:ce,style:N,labelStyle:(0,e.Z)((0,e.Z)({},z),Se),contentStyle:(0,e.Z)((0,e.Z)({},A),ue),span:ye,colon:j,component:E,itemPrefixCls:de,bordered:I,label:W?ie:null,content:J?se:null}):[v.createElement(pe,{key:"label-".concat(ee||q),className:ce,style:(0,e.Z)((0,e.Z)((0,e.Z)({},z),N),Se),span:1,colon:j,component:E[0],itemPrefixCls:de,bordered:I,label:ie}),v.createElement(pe,{key:"content-".concat(ee||q),className:ce,style:(0,e.Z)((0,e.Z)((0,e.Z)({},A),N),ue),span:ye*2-1,component:E[1],itemPrefixCls:de,bordered:I,content:se})]})}var Ze=function(u){var m=v.useContext(O),j=u.prefixCls,D=u.vertical,I=u.row,E=u.index,k=u.bordered;return D?v.createElement(v.Fragment,null,v.createElement("tr",{key:"label-".concat(E),className:"".concat(j,"-row")},fe(I,u,(0,e.Z)({component:"th",type:"label",showLabel:!0},m))),v.createElement("tr",{key:"content-".concat(E),className:"".concat(j,"-row")},fe(I,u,(0,e.Z)({component:"td",type:"content",showContent:!0},m)))):v.createElement("tr",{key:E,className:"".concat(j,"-row")},fe(I,u,(0,e.Z)({component:k?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0},m)))},Ne=Ze,O=v.createContext({}),Ie={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1};function h(f,u){if(typeof f=="number")return f;if((0,_.Z)(f)==="object")for(var m=0;mm)&&(j=(0,Me.Tm)(f,{span:m})),j}function $e(f,u){var m=(0,ze.Z)(f).filter(function(E){return E}),j=[],D=[],I=u;return m.forEach(function(E,k){var W,J=(W=E.props)===null||W===void 0?void 0:W.span,z=J||1;if(k===m.length-1){D.push(me(E,J,I)),j.push(D);return}z1&&arguments[1]!==void 0?arguments[1]:100,_=arguments.length>2?arguments[2]:void 0,J=(0,T.useState)(U),q=(0,i.Z)(J,2),be=q[0],ce=q[1],Pe=(0,k.Z)(U);return(0,T.useEffect)(function(){var Ke=setTimeout(function(){ce(Pe.current)},Z);return function(){return clearTimeout(Ke)}},_?[Z].concat((0,u.Z)(_)):void 0),be}var ae=n(75661),te=n(56725),ee=n(27068),G=n(29405),Ve=n(38663),Be=n(80341),le=n(96156),ve=n(22122),we=n(94184),re=n.n(we),Qe=n(63441),Ct=n(53124),Xe=n(96159),Ie=n(98787);function Kt(U){return Ie.Y.includes(U)}var St=function(Z){var _,J=Z.className,q=Z.prefixCls,be=Z.style,ce=Z.color,Pe=Z.children,Ke=Z.text,nt=Z.placement,Et=nt===void 0?"end":nt,lt=T.useContext(Ct.E_),Ne=lt.getPrefixCls,$t=lt.direction,Le=Ne("ribbon",q),Zt=Kt(ce),tt=re()(Le,"".concat(Le,"-placement-").concat(Et),(_={},(0,le.Z)(_,"".concat(Le,"-rtl"),$t==="rtl"),(0,le.Z)(_,"".concat(Le,"-color-").concat(ce),Zt),_),J),Vt={},yt={};return ce&&!Zt&&(Vt.background=ce,yt.color=ce),T.createElement("div",{className:"".concat(Le,"-wrapper")},Pe,T.createElement("div",{className:tt,style:(0,ve.Z)((0,ve.Z)({},Vt),be)},T.createElement("span",{className:"".concat(Le,"-text")},Ke),T.createElement("div",{className:"".concat(Le,"-corner"),style:yt})))},fr=St;function vr(U){var Z=U.prefixCls,_=U.value,J=U.current,q=U.offset,be=q===void 0?0:q,ce;return be&&(ce={position:"absolute",top:"".concat(be,"00%"),left:0}),T.createElement("span",{style:ce,className:re()("".concat(Z,"-only-unit"),{current:J})},_)}function dt(U,Z,_){for(var J=U,q=0;(J+10)%10!==Z;)J+=_,q+=_;return q}function Ot(U){var Z=U.prefixCls,_=U.count,J=U.value,q=Number(J),be=Math.abs(_),ce=T.useState(q),Pe=(0,i.Z)(ce,2),Ke=Pe[0],nt=Pe[1],Et=T.useState(be),lt=(0,i.Z)(Et,2),Ne=lt[0],$t=lt[1],Le=function(){nt(q),$t(be)};T.useEffect(function(){var _t=setTimeout(function(){Le()},1e3);return function(){clearTimeout(_t)}},[q]);var Zt,tt;if(Ke===q||Number.isNaN(q)||Number.isNaN(Ke))Zt=[T.createElement(vr,(0,ve.Z)({},U,{key:q,current:!0}))],tt={transition:"none"};else{Zt=[];for(var Vt=q+10,yt=[],_e=q;_e<=Vt;_e+=1)yt.push(_e);var Wt=yt.findIndex(function(_t){return _t%10===Ke});Zt=yt.map(function(_t,rr){var Ft=_t%10;return T.createElement(vr,(0,ve.Z)({},U,{key:_t,value:Ft,offset:rr-Wt,current:rr===Wt}))});var gr=Ne$t?"".concat($t,"+"):lt,jt=pt==="0"||pt===0,ct=lt===null||jt&&!rr,Qt=(Pe!=null||nt!=null)&&ct,pr=Zt&&!jt,Cr=pr?"":pt,lr=(0,T.useMemo)(function(){var vt=Cr==null||Cr==="";return(vt||jt&&!rr)&&!pr},[Cr,jt,rr,pr]),hr=(0,T.useRef)(lt);lr||(hr.current=lt);var Tt=hr.current,Zr=(0,T.useRef)(Cr);lr||(Zr.current=Cr);var yr=Zr.current,Or=(0,T.useRef)(pr);lr||(Or.current=pr);var or=(0,T.useMemo)(function(){if(!_e)return(0,ve.Z)({},Wt);var vt={marginTop:_e[1]};return ft==="rtl"?vt.left=parseInt(_e[0],10):vt.right=-parseInt(_e[0],10),(0,ve.Z)((0,ve.Z)({},vt),Wt)},[ft,_e,Wt]),ir=yt!=null?yt:typeof Tt=="string"||typeof Tt=="number"?Tt:void 0,mr=lr||!Ke?null:T.createElement("span",{className:"".concat(He,"-status-text")},Ke),Nt=!Tt||(0,O.Z)(Tt)!=="object"?void 0:(0,Xe.Tm)(Tt,function(vt){return{style:(0,ve.Z)((0,ve.Z)({},or),vt.style)}}),Ut=re()((_={},(0,le.Z)(_,"".concat(He,"-status-dot"),Qt),(0,le.Z)(_,"".concat(He,"-status-").concat(Pe),!!Pe),(0,le.Z)(_,"".concat(He,"-status-").concat(nt),Kt(nt)),_)),qt={};nt&&!Kt(nt)&&(qt.background=nt);var Yt=re()(He,(J={},(0,le.Z)(J,"".concat(He,"-status"),Qt),(0,le.Z)(J,"".concat(He,"-not-a-wrapper"),!ce),(0,le.Z)(J,"".concat(He,"-rtl"),ft==="rtl"),J),gr);if(!ce&&Qt){var er=or.color;return T.createElement("span",(0,ve.Z)({},Ft,{className:Yt,style:or}),T.createElement("span",{className:Ut,style:qt}),Ke&&T.createElement("span",{style:{color:er},className:"".concat(He,"-status-text")},Ke))}return T.createElement("span",(0,ve.Z)({},Ft,{className:Yt}),ce,T.createElement(Qe.Z,{visible:!lr,motionName:"".concat(He,"-zoom"),motionAppear:!1,motionDeadline:1e3},function(vt){var Pt,Rr=vt.className,br=wt("scroll-number",be),Ar=Or.current,zr=re()((Pt={},(0,le.Z)(Pt,"".concat(He,"-dot"),Ar),(0,le.Z)(Pt,"".concat(He,"-count"),!Ar),(0,le.Z)(Pt,"".concat(He,"-count-sm"),Vt==="small"),(0,le.Z)(Pt,"".concat(He,"-multiple-words"),!Ar&&yr&&yr.toString().length>1),(0,le.Z)(Pt,"".concat(He,"-status-").concat(Pe),!!Pe),(0,le.Z)(Pt,"".concat(He,"-status-").concat(nt),Kt(nt)),Pt)),Lr=(0,ve.Z)({},or);return nt&&!Kt(nt)&&(Lr=Lr||{},Lr.background=nt),T.createElement(K,{prefixCls:br,show:!lr,motionClassName:Rr,className:zr,count:yr,title:ir,style:Lr,key:"scrollNumber"},Nt)}),mr)};ot.Ribbon=fr;var Ce=ot,m=n(59189),x={Success:function(Z){var _=Z.children;return(0,A.jsx)(Ce,{status:"success",text:_})},Error:function(Z){var _=Z.children;return(0,A.jsx)(Ce,{status:"error",text:_})},Default:function(Z){var _=Z.children;return(0,A.jsx)(Ce,{status:"default",text:_})},Processing:function(Z){var _=Z.children;return(0,A.jsx)(Ce,{status:"processing",text:_})},Warning:function(Z){var _=Z.children;return(0,A.jsx)(Ce,{status:"warning",text:_})},success:function(Z){var _=Z.children;return(0,A.jsx)(Ce,{status:"success",text:_})},error:function(Z){var _=Z.children;return(0,A.jsx)(Ce,{status:"error",text:_})},default:function(Z){var _=Z.children;return(0,A.jsx)(Ce,{status:"default",text:_})},processing:function(Z){var _=Z.children;return(0,A.jsx)(Ce,{status:"processing",text:_})},warning:function(Z){var _=Z.children;return(0,A.jsx)(Ce,{status:"warning",text:_})}},p=function(Z){var _=Z.color,J=Z.children;return(0,A.jsx)(Ce,{color:_,text:J})},L=x,X=n(81539),H=n(47673),Ae=n(4107),Re=n(43358),Ze=n(34041),me=n(76570),ut=n(76422),ge=n(26435),qe=["label","prefixCls","onChange","value","mode","children","defaultValue","size","showSearch","disabled","style","className","bordered","options","onSearch","allowClear","labelInValue","fieldNames","lightLabel","labelTrigger"],it=function(Z,_){return(0,O.Z)(_)!=="object"?Z[_]||_:Z[_==null?void 0:_.value]||_.label},It=function(Z,_){var J=Z.label,q=Z.prefixCls,be=Z.onChange,ce=Z.value,Pe=Z.mode,Ke=Z.children,nt=Z.defaultValue,Et=Z.size,lt=Z.showSearch,Ne=Z.disabled,$t=Z.style,Le=Z.className,Zt=Z.bordered,tt=Z.options,Vt=Z.onSearch,yt=Z.allowClear,_e=Z.labelInValue,Wt=Z.fieldNames,gr=Z.lightLabel,_t=Z.labelTrigger,rr=(0,c.Z)(Z,qe),Ft=Z.placeholder,bt=Ft===void 0?J:Ft,wt=Wt||{},ft=wt.label,He=ft===void 0?"label":ft,pt=wt.value,jt=pt===void 0?"value":pt,ct=(0,T.useContext)(S.ZP.ConfigContext),Qt=ct.getPrefixCls,pr=Qt("pro-field-select-light-select"),Cr=(0,T.useState)(!1),lr=(0,i.Z)(Cr,2),hr=lr[0],Tt=lr[1],Zr=(0,T.useState)(""),yr=(0,i.Z)(Zr,2),Or=yr[0],or=yr[1],ir=(0,T.useMemo)(function(){var Nt={};return tt==null||tt.forEach(function(Ut){var qt=Ut[He],Yt=Ut[jt];Nt[Yt]=qt||Yt}),Nt},[He,tt,jt]),mr=Array.isArray(ce)?ce.map(function(Nt){return it(ir,Nt)}):it(ir,ce);return(0,A.jsxs)("div",{className:re()(pr,(0,le.Z)({},"".concat(pr,"-searchable"),lt),Le),style:$t,onClick:function(Ut){var qt,Yt,er;if(!Ne){var vt=gr==null||(qt=gr.current)===null||qt===void 0||(Yt=qt.labelRef)===null||Yt===void 0||(er=Yt.current)===null||er===void 0?void 0:er.contains(Ut.target);Tt(vt?!hr:!0)}},children:[(0,A.jsx)(Ze.Z,(0,g.Z)((0,g.Z)({},rr),{},{allowClear:yt,value:ce,mode:Pe,labelInValue:_e,size:Et,disabled:Ne,onChange:function(Ut,qt){be==null||be(Ut,qt),Pe!=="multiple"&&setTimeout(function(){Tt(!1)},0)},bordered:Zt,showSearch:lt,onSearch:Vt,style:$t,dropdownRender:function(Ut){return(0,A.jsxs)("div",{ref:_,children:[lt&&(0,A.jsx)("div",{style:{margin:"4px 8px"},children:(0,A.jsx)(Ae.Z,{value:Or,allowClear:yt,onChange:function(Yt){or(Yt.target.value.toLowerCase()),Vt==null||Vt(Yt.target.value)},onKeyDown:function(Yt){Yt.stopPropagation()},style:{width:"100%"},prefix:(0,A.jsx)(me.Z,{})})}),Ut]})},open:hr,onDropdownVisibleChange:function(Ut){Ut||setTimeout(function(){or("")},0),_t||Tt(Ut)},prefixCls:q,options:Or?tt==null?void 0:tt.filter(function(Nt){var Ut,qt,Yt,er,vt;return((Ut=String(Nt[He]))===null||Ut===void 0||(qt=Ut.toLowerCase())===null||qt===void 0?void 0:qt.includes(Or))||((Yt=Nt[jt])===null||Yt===void 0||(er=Yt.toString())===null||er===void 0||(vt=er.toLowerCase())===null||vt===void 0?void 0:vt.includes(Or))}):tt})),(0,A.jsx)(ut.Z,{ellipsis:!0,size:Et,label:J,placeholder:bt,disabled:Ne,expanded:hr,bordered:Zt,allowClear:yt,value:mr||(ce==null?void 0:ce.label)||ce,onClear:function(){be==null||be(void 0,void 0)},ref:gr})]})},je=T.forwardRef(It),gt=["optionItemRender","mode","onSearch","onFocus","onChange","autoClearSearchValue","searchOnFocus","resetAfterSelect","fetchDataOnSearch","optionFilterProp","optionLabelProp","className","disabled","options","fetchData","resetData","prefixCls","onClear","searchValue","showSearch","fieldNames"],W=Ze.Z.Option,se=Ze.Z.OptGroup,We=function(Z,_){var J=Z.optionItemRender,q=Z.mode,be=Z.onSearch,ce=Z.onFocus,Pe=Z.onChange,Ke=Z.autoClearSearchValue,nt=Z.searchOnFocus,Et=nt===void 0?!1:nt,lt=Z.resetAfterSelect,Ne=lt===void 0?!1:lt,$t=Z.fetchDataOnSearch,Le=$t===void 0?!0:$t,Zt=Z.optionFilterProp,tt=Zt===void 0?"label":Zt,Vt=Z.optionLabelProp,yt=Vt===void 0?"label":Vt,_e=Z.className,Wt=Z.disabled,gr=Z.options,_t=Z.fetchData,rr=Z.resetData,Ft=Z.prefixCls,bt=Z.onClear,wt=Z.searchValue,ft=Z.showSearch,He=Z.fieldNames,pt=(0,c.Z)(Z,gt),jt=He||{},ct=jt.label,Qt=ct===void 0?"label":ct,pr=jt.value,Cr=pr===void 0?"value":pr,lr=jt.options,hr=lr===void 0?"options":lr,Tt=(0,T.useState)(wt),Zr=(0,i.Z)(Tt,2),yr=Zr[0],Or=Zr[1],or=(0,T.useRef)();(0,T.useImperativeHandle)(_,function(){return or.current}),(0,T.useEffect)(function(){if(pt.autoFocus){var er;or==null||(er=or.current)===null||er===void 0||er.focus()}},[pt.autoFocus]),(0,T.useEffect)(function(){Or(wt)},[wt]);var ir=(0,T.useContext)(S.ZP.ConfigContext),mr=ir.getPrefixCls,Nt=mr("pro-filed-search-select",Ft),Ut=re()(Nt,_e,(0,le.Z)({},"".concat(Nt,"-disabled"),Wt)),qt=function(vt,Pt){return Array.isArray(vt)&&vt.length>0?vt.map(function(Rr,br){var Ar=Pt==null?void 0:Pt[br],zr=(Ar==null?void 0:Ar["data-item"])||{};return(0,g.Z)((0,g.Z)({},zr),Rr)}):[]},Yt=function er(vt){return vt.map(function(Pt){var Rr,br=Pt.disabled,Ar=Pt.className,zr=Pt.optionType,Lr=Pt[Qt],mn=Pt[Cr],Mn=(Rr=Pt[hr])!==null&&Rr!==void 0?Rr:[];return zr==="optGroup"||Pt.options?(0,A.jsx)(se,{label:Lr,children:er(Mn)},mn):(0,T.createElement)(W,(0,g.Z)((0,g.Z)({},Pt),{},{value:mn,key:mn||(Lr==null?void 0:Lr.toString()),disabled:br,"data-item":Pt,className:"".concat(Nt,"-option ").concat(Ar||""),label:Lr}),(J==null?void 0:J(Pt))||Lr)})};return(0,A.jsx)(Ze.Z,(0,g.Z)((0,g.Z)({ref:or,className:Ut,allowClear:!0,autoClearSearchValue:Ke,disabled:Wt,mode:q,showSearch:ft,searchValue:yr,optionFilterProp:tt,optionLabelProp:yt,onClear:function(){bt==null||bt(),_t(""),ft&&Or("")}},pt),{},{onSearch:ft?function(er){Le&&_t(er),be==null||be(er),Or(er)}:void 0,onChange:function(vt,Pt){ft&&Ke&&(yr||_t(""),be==null||be(""),Or(""));for(var Rr=arguments.length,br=new Array(Rr>2?Rr-2:0),Ar=2;Are.offsetHeight&&e.scrollTo({top:a+t.offsetHeight-e.offsetHeight})}}function Ce(t,e,a){var r=new Set(t),o=e();return t.filter(function(s){var f=o[s],d=f?f.parent:null,v=f?f.children:null;return a===dt?!(v&&v.some(function(C){return C.key&&r.has(C.key)})):!(d&&!d.node.disabled&&r.has(d.key))})}function m(t,e,a){for(var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,o=e,s=[],f=function(C){var P,w,D,M=t[C],j=(P=o)===null||P===void 0?void 0:P.findIndex(function(N){var Y=N[a.value];return r?String(Y)===String(M):Y===M}),F=j!==-1?(w=o)===null||w===void 0?void 0:w[j]:null;s.push({value:(D=F==null?void 0:F[a.value])!==null&&D!==void 0?D:M,index:j,option:F}),o=F==null?void 0:F[a.children]},d=0;d0&&M.length>=w)){var V=[].concat((0,G.Z)(N),[Y]),z=Y[a.children];if((!z||z.length===0||s)&&d(t,V,{label:a.label})){var ue;M.push((0,i.Z)((0,i.Z)({},Y),{},(ue={},(0,ee.Z)(ue,a.label,C(t,V,r,a)),(0,ee.Z)(ue,Re,V),ue)))}z&&j(Y[a.children],V)}})}return j(e,[]),D&&M.sort(function(F,N){return D(F[Re],N[Re],t,a)}),w>0?M.slice(0,w):M},[t,e,a,r,C,s,d,D,w])};function ge(t){var e,a=t.prefixCls,r=t.checked,o=t.halfChecked,s=t.disabled,f=t.onClick,d=l.useContext(St),v=d.checkable,C=typeof v!="boolean"?v:null;return l.createElement("span",{className:we()("".concat(a),(e={},(0,ee.Z)(e,"".concat(a,"-checked"),r),(0,ee.Z)(e,"".concat(a,"-indeterminate"),!r&&o),(0,ee.Z)(e,"".concat(a,"-disabled"),s),e)),onClick:f},C)}var qe="__cascader_fix_label__";function it(t){var e=t.prefixCls,a=t.multiple,r=t.options,o=t.activeValue,s=t.prevValuePath,f=t.onToggleOpen,d=t.onSelect,v=t.onActive,C=t.checkedSet,P=t.halfCheckedSet,w=t.loadingKeys,D=t.isSelectable,M="".concat(e,"-menu"),j="".concat(e,"-menu-item"),F=l.useContext(St),N=F.fieldNames,Y=F.changeOnSelect,V=F.expandTrigger,z=F.expandIcon,ue=F.loadingIcon,ne=F.dropdownMenuColumnStyle,oe=V==="hover",fe=l.useMemo(function(){return r.map(function(Q){var pe,Se=Q.disabled,ie=Q[Re],ke=(pe=Q[qe])!==null&&pe!==void 0?pe:Q[N.label],Fe=Q[N.value],he=B(Q,N),ht=ie?ie.map(function(at){return at[N.value]}):[].concat((0,G.Z)(s),[Fe]),mt=Ot(ht),Ye=w.includes(mt),ze=C.has(mt),rt=P.has(mt);return{disabled:Se,label:ke,value:Fe,isLeaf:he,isLoading:Ye,checked:ze,halfChecked:rt,option:Q,fullPath:ht,fullPathKey:mt}})},[r,C,N,P,w,s]);return l.createElement("ul",{className:M,role:"menu"},fe.map(function(Q){var pe,Se=Q.disabled,ie=Q.label,ke=Q.value,Fe=Q.isLeaf,he=Q.isLoading,ht=Q.checked,mt=Q.halfChecked,Ye=Q.option,ze=Q.fullPath,rt=Q.fullPathKey,at=function(){!Se&&(!oe||!Fe)&&v(ze)},Ht=function(){D(Ye)&&d(ze,Fe)},Lt;return typeof Ye.title=="string"?Lt=Ye.title:typeof ie=="string"&&(Lt=ie),l.createElement("li",{key:rt,className:we()(j,(pe={},(0,ee.Z)(pe,"".concat(j,"-expand"),!Fe),(0,ee.Z)(pe,"".concat(j,"-active"),o===ke),(0,ee.Z)(pe,"".concat(j,"-disabled"),Se),(0,ee.Z)(pe,"".concat(j,"-loading"),he),pe)),style:ne,role:"menuitemcheckbox",title:Lt,"aria-checked":ht,"data-path-key":rt,onClick:function(){at(),(!a||Fe)&&Ht()},onDoubleClick:function(){Y&&f(!1)},onMouseEnter:function(){oe&&at()},onMouseDown:function(kt){kt.preventDefault()}},a&&l.createElement(ge,{prefixCls:"".concat(e,"-checkbox"),checked:ht,halfChecked:mt,disabled:Se,onClick:function(kt){kt.stopPropagation(),Ht()}}),l.createElement("div",{className:"".concat(j,"-content")},ie),!he&&z&&!Fe&&l.createElement("div",{className:"".concat(j,"-expand-icon")},z),he&&ue&&l.createElement("div",{className:"".concat(j,"-loading-icon")},ue))}))}var It=function(){var t=(0,Qe.lk)(),e=t.multiple,a=t.open,r=l.useContext(St),o=r.values,s=l.useState([]),f=(0,re.Z)(s,2),d=f[0],v=f[1];return l.useEffect(function(){if(a&&!e){var C=o[0];v(C||[])}},[a]),[d,v]},je=n(15105),gt=function(t,e,a,r,o,s){var f=(0,Qe.lk)(),d=f.direction,v=f.searchValue,C=f.toggleOpen,P=f.open,w=d==="rtl",D=l.useMemo(function(){for(var ne=-1,oe=e,fe=[],Q=[],pe=r.length,Se=function(mt){var Ye=oe.findIndex(function(ze){return ze[a.value]===r[mt]});if(Ye===-1)return"break";ne=Ye,fe.push(ne),Q.push(r[mt]),oe=oe[ne][a.children]},ie=0;ie1){var oe=j.slice(0,-1);Y(oe)}else C(!1)},ue=function(){var oe,fe=((oe=N[F])===null||oe===void 0?void 0:oe[a.children])||[],Q=fe.find(function(Se){return!Se.disabled});if(Q){var pe=[].concat((0,G.Z)(j),[Q[a.value]]);Y(pe)}};l.useImperativeHandle(t,function(){return{onKeyDown:function(oe){var fe=oe.which;switch(fe){case je.Z.UP:case je.Z.DOWN:{var Q=0;fe===je.Z.UP?Q=-1:fe===je.Z.DOWN&&(Q=1),Q!==0&&V(Q);break}case je.Z.LEFT:{w?ue():z();break}case je.Z.RIGHT:{w?z():ue();break}case je.Z.BACKSPACE:{v||z();break}case je.Z.ENTER:{if(j.length){var pe=N[F],Se=(pe==null?void 0:pe[Re])||[];Se.length?s(Se.map(function(ie){return ie[a.value]}),Se[Se.length-1]):s(j,N[F])}break}case je.Z.ESC:C(!1),P&&oe.stopPropagation()}},onKeyUp:function(){}}})},W=l.forwardRef(function(t,e){var a,r,o,s,f=(0,Qe.lk)(),d=f.prefixCls,v=f.multiple,C=f.searchValue,P=f.toggleOpen,w=f.notFoundContent,D=f.direction,M=l.useRef(),j=D==="rtl",F=l.useContext(St),N=F.options,Y=F.values,V=F.halfValues,z=F.fieldNames,ue=F.changeOnSelect,ne=F.onSelect,oe=F.searchOptions,fe=F.dropdownPrefixCls,Q=F.loadData,pe=F.expandTrigger,Se=fe||d,ie=l.useState([]),ke=(0,re.Z)(ie,2),Fe=ke[0],he=ke[1],ht=function(st){if(!(!Q||C)){var xt=m(st,N,z),Jt=xt.map(function(Ir){var Hr=Ir.option;return Hr}),cr=Jt[Jt.length-1];if(cr&&!B(cr,z)){var Tr=Ot(st);he(function(Ir){return[].concat((0,G.Z)(Ir),[Tr])}),Q(Jt)}}};l.useEffect(function(){Fe.length&&Fe.forEach(function(Bt){var st=zt(Bt),xt=m(st,N,z,!0).map(function(cr){var Tr=cr.option;return Tr}),Jt=xt[xt.length-1];(!Jt||Jt[z.children]||B(Jt,z))&&he(function(cr){return cr.filter(function(Tr){return Tr!==Bt})})})},[N,Fe,z]);var mt=l.useMemo(function(){return new Set(Dt(Y))},[Y]),Ye=l.useMemo(function(){return new Set(Dt(V))},[V]),ze=It(),rt=(0,re.Z)(ze,2),at=rt[0],Ht=rt[1],Lt=function(st){Ht(st),ht(st)},Rt=function(st){var xt=st.disabled,Jt=B(st,z);return!xt&&(Jt||ue||v)},kt=function(st,xt){var Jt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;ne(st),!v&&(xt||ue&&(pe==="hover"||Jt))&&P(!1)},nr=l.useMemo(function(){return C?oe:N},[C,oe,N]),Gt=l.useMemo(function(){for(var Bt=[{options:nr}],st=nr,xt=function(Ir){var Hr=at[Ir],Er=st.find(function(Vr){return Vr[z.value]===Hr}),Nr=Er==null?void 0:Er[z.children];if(!(Nr==null?void 0:Nr.length))return"break";st=Nr,Bt.push({options:Nr})},Jt=0;Jt":ke,he=t.loadingIcon,ht=t.children,mt=t.dropdownMatchSelectWidth,Ye=mt===void 0?!1:mt,ze=t.showCheckedStrategy,rt=ze===void 0?vr:ze,at=(0,h.Z)(t,Ee),Ht=(0,Ct.ZP)(a),Lt=!!w,Rt=(0,Ie.Z)(f,{value:d,postState:Te}),kt=(0,re.Z)(Rt,2),nr=kt[0],Gt=kt[1],At=l.useMemo(function(){return K(s)},[JSON.stringify(s)]),ur=l.useMemo(function(){return N||[]},[N]),sr=L(ur,At),Pr=l.useCallback(function(Mr){var dr=sr();return Mr.map(function(Fr){var Br=dr[Fr].nodes;return Br.map(function(Ur){return Ur[At.value]})})},[sr,At]),tr=(0,Ie.Z)("",{value:D,postState:function(dr){return dr||""}}),Xt=(0,re.Z)(tr,2),Bt=Xt[0],st=Xt[1],xt=function(dr,Fr){st(dr),Fr.source!=="blur"&&M&&M(dr)},Jt=Ae(j),cr=(0,re.Z)(Jt,2),Tr=cr[0],Ir=cr[1],Hr=ut(Bt,ur,At,Y||o,Ir,v),Er=X(ur,At),Nr=l.useMemo(function(){var Mr=Er(nr),dr=(0,re.Z)(Mr,2),Fr=dr[0],Br=dr[1];if(!Lt||!nr.length)return[Fr,[],Br];var Ur=Dt(Fr),rn=sr(),Yr=(0,Xe.S)(Ur,!0,rn),vn=Yr.checkedKeys,nn=Yr.halfCheckedKeys;return[Pr(vn),Pr(nn),Br]},[Lt,nr,sr,Pr,Er]),Vr=(0,re.Z)(Nr,3),$r=Vr[0],Xr=Vr[1],wr=Vr[2],aa=l.useMemo(function(){var Mr=Dt($r),dr=Ce(Mr,sr,rt);return[].concat((0,G.Z)(wr),(0,G.Z)(Pr(dr)))},[$r,sr,Pr,wr,rt]),Wr=x(aa,ur,At,Lt,P),Jr=H(function(Mr){if(Gt(Mr),C){var dr=Te(Mr),Fr=dr.map(function(rn){return m(rn,ur,At).map(function(Yr){return Yr.option})}),Br=Lt?dr:dr[0],Ur=Lt?Fr:Fr[0];C(Br,Ur)}}),Kr=H(function(Mr){if(st(""),!Lt)Jr(Mr);else{var dr=Ot(Mr),Fr=Dt($r),Br=Dt(Xr),Ur=Fr.includes(dr),rn=wr.some(function(Qr){return Ot(Qr)===dr}),Yr=$r,vn=wr;if(rn&&!Ur)vn=wr.filter(function(Qr){return Ot(Qr)!==dr});else{var nn=Ur?Fr.filter(function(Qr){return Qr!==dr}):[].concat((0,G.Z)(Fr),[dr]),En=sr(),Gr;if(Ur){var ua=(0,Xe.S)(nn,{checked:!1,halfCheckedKeys:Br},En);Gr=ua.checkedKeys}else{var $n=(0,Xe.S)(nn,!0,En);Gr=$n.checkedKeys}var Hn=Ce(Gr,sr,rt);Yr=Pr(Hn)}Jr([].concat((0,G.Z)(vn),(0,G.Z)(Yr)))}}),Sn=function(dr,Fr){if(Fr.type==="clear"){Jr([]);return}var Br=Fr.values[0].valueCells;Kr(Br)},Ln=ue!==void 0?ue:z,oa=oe||ne,ia=pe||Q,Bn=function(dr){Se==null||Se(dr),ie==null||ie(dr)},Zn=l.useMemo(function(){return{options:ur,fieldNames:At,values:$r,halfValues:Xr,changeOnSelect:v,onSelect:Kr,checkable:w,searchOptions:Hr,dropdownPrefixCls:Y,loadData:V,expandTrigger:F,expandIcon:Fe,loadingIcon:he,dropdownMenuColumnStyle:fe}},[ur,At,$r,Xr,v,Kr,w,Hr,Y,V,F,Fe,he,fe]),On=!(Bt?Hr:ur).length,la=Bt&&Ir.matchInputWidth||On?{}:{minWidth:"auto"};return l.createElement(St.Provider,{value:Zn},l.createElement(Qe.Ac,(0,te.Z)({},at,{ref:e,id:Ht,prefixCls:o,dropdownMatchSelectWidth:Ye,dropdownStyle:la,displayValues:Wr,onDisplayValuesChange:Sn,mode:Lt?"multiple":void 0,searchValue:Bt,onSearch:xt,showSearch:Tr,OptionList:se,emptyOptions:On,open:Ln,dropdownClassName:oa,placement:ia,onDropdownVisibleChange:Bn,getRawInputElement:function(){return ht}})))});xe.SHOW_PARENT=vr,xe.SHOW_CHILD=dt;var Oe=xe,ye=Oe,Me=n(98423),De=n(53124),Je=n(88258),Ge=n(98866),U=n(97647),Z=n(4173),_=n(65223),J=n(46163),q=n(33603),be=n(9708),ce=function(t,e){var a={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(a[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(t);od?D=1:D=Math.round(w*100/d)/100,a.a!==D)return{h:a.h,s:a.s,l:a.l,a:D,source:"rgb"}}else{var M;if(P<0?M=0:P>f?M=1:M=Math.round(P*100/f)/100,o!==M)return{h:a.h,s:a.s,l:a.l,a:M,source:"rgb"}}return null},or={},ir=function(e,a,r,o){if(typeof document=="undefined"&&!o)return null;var s=o?new o:document.createElement("canvas");s.width=r*2,s.height=r*2;var f=s.getContext("2d");return f?(f.fillStyle=e,f.fillRect(0,0,s.width,s.height),f.fillStyle=a,f.fillRect(0,0,r,r),f.translate(r,r),f.fillRect(0,0,r,r),s.toDataURL()):null},mr=function(e,a,r,o){var s="".concat(e,"-").concat(a,"-").concat(r).concat(o?"-server":"");if(or[s])return or[s];var f=ir(e,a,r,o);return or[s]=f,f};function Nt(t){return Nt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Nt(t)}function Ut(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),a.push.apply(a,r)}return a}function qt(t){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:100,_=arguments.length>2?arguments[2]:void 0,J=(0,T.useState)(U),q=(0,i.Z)(J,2),be=q[0],ce=q[1],Pe=(0,k.Z)(U);return(0,T.useEffect)(function(){var Ke=setTimeout(function(){ce(Pe.current)},Z);return function(){return clearTimeout(Ke)}},_?[Z].concat((0,u.Z)(_)):void 0),be}var ae=n(75661),te=n(56725),ee=n(27068),G=n(29405),Ve=n(38663),Be=n(80341),ue=n(96156),ve=n(22122),we=n(94184),re=n.n(we),Qe=n(63441),Ct=n(53124),Xe=n(96159),Ie=n(98787);function Yt(U){return Ie.Y.includes(U)}var St=function(Z){var _,J=Z.className,q=Z.prefixCls,be=Z.style,ce=Z.color,Pe=Z.children,Ke=Z.text,nt=Z.placement,Et=nt===void 0?"end":nt,lt=T.useContext(Ct.E_),Ne=lt.getPrefixCls,$t=lt.direction,Le=Ne("ribbon",q),Zt=Yt(ce),tt=re()(Le,"".concat(Le,"-placement-").concat(Et),(_={},(0,ue.Z)(_,"".concat(Le,"-rtl"),$t==="rtl"),(0,ue.Z)(_,"".concat(Le,"-color-").concat(ce),Zt),_),J),Wt={},yt={};return ce&&!Zt&&(Wt.background=ce,yt.color=ce),T.createElement("div",{className:"".concat(Le,"-wrapper")},Pe,T.createElement("div",{className:tt,style:(0,ve.Z)((0,ve.Z)({},Wt),be)},T.createElement("span",{className:"".concat(Le,"-text")},Ke),T.createElement("div",{className:"".concat(Le,"-corner"),style:yt})))},fr=St;function vr(U){var Z=U.prefixCls,_=U.value,J=U.current,q=U.offset,be=q===void 0?0:q,ce;return be&&(ce={position:"absolute",top:"".concat(be,"00%"),left:0}),T.createElement("span",{style:ce,className:re()("".concat(Z,"-only-unit"),{current:J})},_)}function dt(U,Z,_){for(var J=U,q=0;(J+10)%10!==Z;)J+=_,q+=_;return q}function Ot(U){var Z=U.prefixCls,_=U.count,J=U.value,q=Number(J),be=Math.abs(_),ce=T.useState(q),Pe=(0,i.Z)(ce,2),Ke=Pe[0],nt=Pe[1],Et=T.useState(be),lt=(0,i.Z)(Et,2),Ne=lt[0],$t=lt[1],Le=function(){nt(q),$t(be)};T.useEffect(function(){var _t=setTimeout(function(){Le()},1e3);return function(){clearTimeout(_t)}},[q]);var Zt,tt;if(Ke===q||Number.isNaN(q)||Number.isNaN(Ke))Zt=[T.createElement(vr,(0,ve.Z)({},U,{key:q,current:!0}))],tt={transition:"none"};else{Zt=[];for(var Wt=q+10,yt=[],_e=q;_e<=Wt;_e+=1)yt.push(_e);var Ut=yt.findIndex(function(_t){return _t%10===Ke});Zt=yt.map(function(_t,rr){var Ft=_t%10;return T.createElement(vr,(0,ve.Z)({},U,{key:_t,value:Ft,offset:rr-Ut,current:rr===Ut}))});var gr=Ne$t?"".concat($t,"+"):lt,jt=pt==="0"||pt===0,ct=lt===null||jt&&!rr,Qt=(Pe!=null||nt!=null)&&ct,pr=Zt&&!jt,Cr=pr?"":pt,lr=(0,T.useMemo)(function(){var vt=Cr==null||Cr==="";return(vt||jt&&!rr)&&!pr},[Cr,jt,rr,pr]),hr=(0,T.useRef)(lt);lr||(hr.current=lt);var Tt=hr.current,Or=(0,T.useRef)(Cr);lr||(Or.current=Cr);var yr=Or.current,Er=(0,T.useRef)(pr);lr||(Er.current=pr);var or=(0,T.useMemo)(function(){if(!_e)return(0,ve.Z)({},Ut);var vt={marginTop:_e[1]};return ft==="rtl"?vt.left=parseInt(_e[0],10):vt.right=-parseInt(_e[0],10),(0,ve.Z)((0,ve.Z)({},vt),Ut)},[ft,_e,Ut]),ir=yt!=null?yt:typeof Tt=="string"||typeof Tt=="number"?Tt:void 0,mr=lr||!Ke?null:T.createElement("span",{className:"".concat(He,"-status-text")},Ke),Nt=!Tt||(0,O.Z)(Tt)!=="object"?void 0:(0,Xe.Tm)(Tt,function(vt){return{style:(0,ve.Z)((0,ve.Z)({},or),vt.style)}}),Kt=re()((_={},(0,ue.Z)(_,"".concat(He,"-status-dot"),Qt),(0,ue.Z)(_,"".concat(He,"-status-").concat(Pe),!!Pe),(0,ue.Z)(_,"".concat(He,"-status-").concat(nt),Yt(nt)),_)),qt={};nt&&!Yt(nt)&&(qt.background=nt);var zt=re()(He,(J={},(0,ue.Z)(J,"".concat(He,"-status"),Qt),(0,ue.Z)(J,"".concat(He,"-not-a-wrapper"),!ce),(0,ue.Z)(J,"".concat(He,"-rtl"),ft==="rtl"),J),gr);if(!ce&&Qt){var er=or.color;return T.createElement("span",(0,ve.Z)({},Ft,{className:zt,style:or}),T.createElement("span",{className:Kt,style:qt}),Ke&&T.createElement("span",{style:{color:er},className:"".concat(He,"-status-text")},Ke))}return T.createElement("span",(0,ve.Z)({},Ft,{className:zt}),ce,T.createElement(Qe.Z,{visible:!lr,motionName:"".concat(He,"-zoom"),motionAppear:!1,motionDeadline:1e3},function(vt){var Pt,Rr=vt.className,br=wt("scroll-number",be),Ar=Er.current,zr=re()((Pt={},(0,ue.Z)(Pt,"".concat(He,"-dot"),Ar),(0,ue.Z)(Pt,"".concat(He,"-count"),!Ar),(0,ue.Z)(Pt,"".concat(He,"-count-sm"),Wt==="small"),(0,ue.Z)(Pt,"".concat(He,"-multiple-words"),!Ar&&yr&&yr.toString().length>1),(0,ue.Z)(Pt,"".concat(He,"-status-").concat(Pe),!!Pe),(0,ue.Z)(Pt,"".concat(He,"-status-").concat(nt),Yt(nt)),Pt)),Nr=(0,ve.Z)({},or);return nt&&!Yt(nt)&&(Nr=Nr||{},Nr.background=nt),T.createElement(K,{prefixCls:br,show:!lr,motionClassName:Rr,className:zr,count:yr,title:ir,style:Nr,key:"scrollNumber"},Nt)}),mr)};ot.Ribbon=fr;var Ce=ot,m=n(59189),x={Success:function(Z){var _=Z.children;return(0,j.jsx)(Ce,{status:"success",text:_})},Error:function(Z){var _=Z.children;return(0,j.jsx)(Ce,{status:"error",text:_})},Default:function(Z){var _=Z.children;return(0,j.jsx)(Ce,{status:"default",text:_})},Processing:function(Z){var _=Z.children;return(0,j.jsx)(Ce,{status:"processing",text:_})},Warning:function(Z){var _=Z.children;return(0,j.jsx)(Ce,{status:"warning",text:_})},success:function(Z){var _=Z.children;return(0,j.jsx)(Ce,{status:"success",text:_})},error:function(Z){var _=Z.children;return(0,j.jsx)(Ce,{status:"error",text:_})},default:function(Z){var _=Z.children;return(0,j.jsx)(Ce,{status:"default",text:_})},processing:function(Z){var _=Z.children;return(0,j.jsx)(Ce,{status:"processing",text:_})},warning:function(Z){var _=Z.children;return(0,j.jsx)(Ce,{status:"warning",text:_})}},p=function(Z){var _=Z.color,J=Z.children;return(0,j.jsx)(Ce,{color:_,text:J})},L=x,X=n(81539),H=n(47673),Ae=n(4107),Re=n(43358),Ze=n(34041),me=n(76570),ut=n(76422),ge=n(26435),qe=["label","prefixCls","onChange","value","mode","children","defaultValue","size","showSearch","disabled","style","className","bordered","options","onSearch","allowClear","labelInValue","fieldNames","lightLabel","labelTrigger"],it=function(Z,_){return(0,O.Z)(_)!=="object"?Z[_]||_:Z[_==null?void 0:_.value]||_.label},It=function(Z,_){var J=Z.label,q=Z.prefixCls,be=Z.onChange,ce=Z.value,Pe=Z.mode,Ke=Z.children,nt=Z.defaultValue,Et=Z.size,lt=Z.showSearch,Ne=Z.disabled,$t=Z.style,Le=Z.className,Zt=Z.bordered,tt=Z.options,Wt=Z.onSearch,yt=Z.allowClear,_e=Z.labelInValue,Ut=Z.fieldNames,gr=Z.lightLabel,_t=Z.labelTrigger,rr=(0,c.Z)(Z,qe),Ft=Z.placeholder,bt=Ft===void 0?J:Ft,wt=Ut||{},ft=wt.label,He=ft===void 0?"label":ft,pt=wt.value,jt=pt===void 0?"value":pt,ct=(0,T.useContext)(S.ZP.ConfigContext),Qt=ct.getPrefixCls,pr=Qt("pro-field-select-light-select"),Cr=(0,T.useState)(!1),lr=(0,i.Z)(Cr,2),hr=lr[0],Tt=lr[1],Or=(0,T.useState)(""),yr=(0,i.Z)(Or,2),Er=yr[0],or=yr[1],ir=(0,T.useMemo)(function(){var Nt={};return tt==null||tt.forEach(function(Kt){var qt=Kt[He],zt=Kt[jt];Nt[zt]=qt||zt}),Nt},[He,tt,jt]),mr=Array.isArray(ce)?ce.map(function(Nt){return it(ir,Nt)}):it(ir,ce);return(0,j.jsxs)("div",{className:re()(pr,(0,ue.Z)({},"".concat(pr,"-searchable"),lt),Le),style:$t,onClick:function(Kt){var qt,zt,er;if(!Ne){var vt=gr==null||(qt=gr.current)===null||qt===void 0||(zt=qt.labelRef)===null||zt===void 0||(er=zt.current)===null||er===void 0?void 0:er.contains(Kt.target);Tt(vt?!hr:!0)}},children:[(0,j.jsx)(Ze.Z,(0,g.Z)((0,g.Z)({},rr),{},{allowClear:yt,value:ce,mode:Pe,labelInValue:_e,size:Et,disabled:Ne,onChange:function(Kt,qt){be==null||be(Kt,qt),Pe!=="multiple"&&setTimeout(function(){Tt(!1)},0)},bordered:Zt,showSearch:lt,onSearch:Wt,style:$t,dropdownRender:function(Kt){return(0,j.jsxs)("div",{ref:_,children:[lt&&(0,j.jsx)("div",{style:{margin:"4px 8px"},children:(0,j.jsx)(Ae.Z,{value:Er,allowClear:yt,onChange:function(zt){or(zt.target.value.toLowerCase()),Wt==null||Wt(zt.target.value)},onKeyDown:function(zt){zt.stopPropagation()},style:{width:"100%"},prefix:(0,j.jsx)(me.Z,{})})}),Kt]})},open:hr,onDropdownVisibleChange:function(Kt){Kt||setTimeout(function(){or("")},0),_t||Tt(Kt)},prefixCls:q,options:Er?tt==null?void 0:tt.filter(function(Nt){var Kt,qt,zt,er,vt;return((Kt=String(Nt[He]))===null||Kt===void 0||(qt=Kt.toLowerCase())===null||qt===void 0?void 0:qt.includes(Er))||((zt=Nt[jt])===null||zt===void 0||(er=zt.toString())===null||er===void 0||(vt=er.toLowerCase())===null||vt===void 0?void 0:vt.includes(Er))}):tt})),(0,j.jsx)(ut.Z,{ellipsis:!0,size:Et,label:J,placeholder:bt,disabled:Ne,expanded:hr,bordered:Zt,allowClear:yt,value:mr||(ce==null?void 0:ce.label)||ce,onClear:function(){be==null||be(void 0,void 0)},ref:gr})]})},je=T.forwardRef(It),gt=["optionItemRender","mode","onSearch","onFocus","onChange","autoClearSearchValue","searchOnFocus","resetAfterSelect","fetchDataOnSearch","optionFilterProp","optionLabelProp","className","disabled","options","fetchData","resetData","prefixCls","onClear","searchValue","showSearch","fieldNames"],W=Ze.Z.Option,se=Ze.Z.OptGroup,We=function(Z,_){var J=Z.optionItemRender,q=Z.mode,be=Z.onSearch,ce=Z.onFocus,Pe=Z.onChange,Ke=Z.autoClearSearchValue,nt=Z.searchOnFocus,Et=nt===void 0?!1:nt,lt=Z.resetAfterSelect,Ne=lt===void 0?!1:lt,$t=Z.fetchDataOnSearch,Le=$t===void 0?!0:$t,Zt=Z.optionFilterProp,tt=Zt===void 0?"label":Zt,Wt=Z.optionLabelProp,yt=Wt===void 0?"label":Wt,_e=Z.className,Ut=Z.disabled,gr=Z.options,_t=Z.fetchData,rr=Z.resetData,Ft=Z.prefixCls,bt=Z.onClear,wt=Z.searchValue,ft=Z.showSearch,He=Z.fieldNames,pt=(0,c.Z)(Z,gt),jt=He||{},ct=jt.label,Qt=ct===void 0?"label":ct,pr=jt.value,Cr=pr===void 0?"value":pr,lr=jt.options,hr=lr===void 0?"options":lr,Tt=(0,T.useState)(wt),Or=(0,i.Z)(Tt,2),yr=Or[0],Er=Or[1],or=(0,T.useRef)();(0,T.useImperativeHandle)(_,function(){return or.current}),(0,T.useEffect)(function(){if(pt.autoFocus){var er;or==null||(er=or.current)===null||er===void 0||er.focus()}},[pt.autoFocus]),(0,T.useEffect)(function(){Er(wt)},[wt]);var ir=(0,T.useContext)(S.ZP.ConfigContext),mr=ir.getPrefixCls,Nt=mr("pro-filed-search-select",Ft),Kt=re()(Nt,_e,(0,ue.Z)({},"".concat(Nt,"-disabled"),Ut)),qt=function(vt,Pt){return Array.isArray(vt)&&vt.length>0?vt.map(function(Rr,br){var Ar=Pt==null?void 0:Pt[br],zr=(Ar==null?void 0:Ar["data-item"])||{};return(0,g.Z)((0,g.Z)({},zr),Rr)}):[]},zt=function er(vt){return vt.map(function(Pt){var Rr,br=Pt.disabled,Ar=Pt.className,zr=Pt.optionType,Nr=Pt[Qt],mn=Pt[Cr],Mn=(Rr=Pt[hr])!==null&&Rr!==void 0?Rr:[];return zr==="optGroup"||Pt.options?(0,j.jsx)(se,{label:Nr,children:er(Mn)},mn):(0,T.createElement)(W,(0,g.Z)((0,g.Z)({},Pt),{},{value:mn,key:mn||(Nr==null?void 0:Nr.toString()),disabled:br,"data-item":Pt,className:"".concat(Nt,"-option ").concat(Ar||""),label:Nr}),(J==null?void 0:J(Pt))||Nr)})};return(0,j.jsx)(Ze.Z,(0,g.Z)((0,g.Z)({ref:or,className:Kt,allowClear:!0,autoClearSearchValue:Ke,disabled:Ut,mode:q,showSearch:ft,searchValue:yr,optionFilterProp:tt,optionLabelProp:yt,onClear:function(){bt==null||bt(),_t(""),ft&&Er("")}},pt),{},{onSearch:ft?function(er){Le&&_t(er),be==null||be(er),Er(er)}:void 0,onChange:function(vt,Pt){ft&&Ke&&(yr||_t(""),be==null||be(""),Er(""));for(var Rr=arguments.length,br=new Array(Rr>2?Rr-2:0),Ar=2;Are.offsetHeight&&e.scrollTo({top:a+t.offsetHeight-e.offsetHeight})}}function Ce(t,e,a){var r=new Set(t),o=e();return t.filter(function(s){var f=o[s],d=f?f.parent:null,v=f?f.children:null;return a===dt?!(v&&v.some(function(C){return C.key&&r.has(C.key)})):!(d&&!d.node.disabled&&r.has(d.key))})}function m(t,e,a){for(var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,o=e,s=[],f=function(){var C,P,w,A=t[d],M=(C=o)===null||C===void 0?void 0:C.findIndex(function(D){var N=D[a.value];return r?String(N)===String(A):N===A}),F=M!==-1?(P=o)===null||P===void 0?void 0:P[M]:null;s.push({value:(w=F==null?void 0:F[a.value])!==null&&w!==void 0?w:A,index:M,option:F}),o=F==null?void 0:F[a.children]},d=0;d0&&M.length>=w)){var V=[].concat((0,G.Z)(N),[z]),Y=z[a.children];if((!Y||Y.length===0||s)&&d(t,V,{label:a.label})){var oe;M.push((0,i.Z)((0,i.Z)({},z),{},(oe={},(0,ee.Z)(oe,a.label,C(t,V,r,a)),(0,ee.Z)(oe,Re,V),(0,ee.Z)(oe,a.children,void 0),oe)))}Y&&F(z[a.children],V)}})}return F(e,[]),A&&M.sort(function(D,N){return A(D[Re],N[Re],t,a)}),w>0?M.slice(0,w):M},[t,e,a,r,C,s,d,A,w])};function ge(t){var e,a=t.prefixCls,r=t.checked,o=t.halfChecked,s=t.disabled,f=t.onClick,d=l.useContext(St),v=d.checkable,C=typeof v!="boolean"?v:null;return l.createElement("span",{className:we()("".concat(a),(e={},(0,ee.Z)(e,"".concat(a,"-checked"),r),(0,ee.Z)(e,"".concat(a,"-indeterminate"),!r&&o),(0,ee.Z)(e,"".concat(a,"-disabled"),s),e)),onClick:f},C)}var qe="__cascader_fix_label__";function it(t){var e=t.prefixCls,a=t.multiple,r=t.options,o=t.activeValue,s=t.prevValuePath,f=t.onToggleOpen,d=t.onSelect,v=t.onActive,C=t.checkedSet,P=t.halfCheckedSet,w=t.loadingKeys,A=t.isSelectable,M="".concat(e,"-menu"),F="".concat(e,"-menu-item"),D=l.useContext(St),N=D.fieldNames,z=D.changeOnSelect,V=D.expandTrigger,Y=D.expandIcon,oe=D.loadingIcon,ne=D.dropdownMenuColumnStyle,ie=V==="hover",fe=l.useMemo(function(){return r.map(function(Q){var pe,Se=Q.disabled,le=Q[Re],ke=(pe=Q[qe])!==null&&pe!==void 0?pe:Q[N.label],Fe=Q[N.value],he=B(Q,N),ht=le?le.map(function(at){return at[N.value]}):[].concat((0,G.Z)(s),[Fe]),mt=Ot(ht),Ye=w.includes(mt),ze=C.has(mt),rt=P.has(mt);return{disabled:Se,label:ke,value:Fe,isLeaf:he,isLoading:Ye,checked:ze,halfChecked:rt,option:Q,fullPath:ht,fullPathKey:mt}})},[r,C,N,P,w,s]);return l.createElement("ul",{className:M,role:"menu"},fe.map(function(Q){var pe,Se=Q.disabled,le=Q.label,ke=Q.value,Fe=Q.isLeaf,he=Q.isLoading,ht=Q.checked,mt=Q.halfChecked,Ye=Q.option,ze=Q.fullPath,rt=Q.fullPathKey,at=function(){if(!Se){var Vt=(0,G.Z)(ze);ie&&Fe&&Vt.pop(),v(Vt)}},Ht=function(){A(Ye)&&d(ze,Fe)},Lt;return typeof Ye.title=="string"?Lt=Ye.title:typeof le=="string"&&(Lt=le),l.createElement("li",{key:rt,className:we()(F,(pe={},(0,ee.Z)(pe,"".concat(F,"-expand"),!Fe),(0,ee.Z)(pe,"".concat(F,"-active"),o===ke),(0,ee.Z)(pe,"".concat(F,"-disabled"),Se),(0,ee.Z)(pe,"".concat(F,"-loading"),he),pe)),style:ne,role:"menuitemcheckbox",title:Lt,"aria-checked":ht,"data-path-key":rt,onClick:function(){at(),(!a||Fe)&&Ht()},onDoubleClick:function(){z&&f(!1)},onMouseEnter:function(){ie&&at()},onMouseDown:function(Vt){Vt.preventDefault()}},a&&l.createElement(ge,{prefixCls:"".concat(e,"-checkbox"),checked:ht,halfChecked:mt,disabled:Se,onClick:function(Vt){Vt.stopPropagation(),Ht()}}),l.createElement("div",{className:"".concat(F,"-content")},le),!he&&Y&&!Fe&&l.createElement("div",{className:"".concat(F,"-expand-icon")},Y),he&&oe&&l.createElement("div",{className:"".concat(F,"-loading-icon")},oe))}))}var It=function(){var t=(0,Qe.lk)(),e=t.multiple,a=t.open,r=l.useContext(St),o=r.values,s=l.useState([]),f=(0,re.Z)(s,2),d=f[0],v=f[1];return l.useEffect(function(){if(a&&!e){var C=o[0];v(C||[])}},[a]),[d,v]},je=n(15105),gt=function(t,e,a,r,o,s){var f=(0,Qe.lk)(),d=f.direction,v=f.searchValue,C=f.toggleOpen,P=f.open,w=d==="rtl",A=l.useMemo(function(){for(var ne=-1,ie=e,fe=[],Q=[],pe=r.length,Se=function(mt){var Ye=ie.findIndex(function(ze){return ze[a.value]===r[mt]});if(Ye===-1)return"break";ne=Ye,fe.push(ne),Q.push(r[mt]),ie=ie[ne][a.children]},le=0;le1){var ie=F.slice(0,-1);z(ie)}else C(!1)},oe=function(){var ie,fe=((ie=N[D])===null||ie===void 0?void 0:ie[a.children])||[],Q=fe.find(function(Se){return!Se.disabled});if(Q){var pe=[].concat((0,G.Z)(F),[Q[a.value]]);z(pe)}};l.useImperativeHandle(t,function(){return{onKeyDown:function(ie){var fe=ie.which;switch(fe){case je.Z.UP:case je.Z.DOWN:{var Q=0;fe===je.Z.UP?Q=-1:fe===je.Z.DOWN&&(Q=1),Q!==0&&V(Q);break}case je.Z.LEFT:{w?oe():Y();break}case je.Z.RIGHT:{w?Y():oe();break}case je.Z.BACKSPACE:{v||Y();break}case je.Z.ENTER:{if(F.length){var pe=N[D],Se=(pe==null?void 0:pe[Re])||[];Se.length?s(Se.map(function(le){return le[a.value]}),Se[Se.length-1]):s(F,N[D])}break}case je.Z.ESC:C(!1),P&&ie.stopPropagation()}},onKeyUp:function(){}}})},W=l.forwardRef(function(t,e){var a,r,o,s,f=(0,Qe.lk)(),d=f.prefixCls,v=f.multiple,C=f.searchValue,P=f.toggleOpen,w=f.notFoundContent,A=f.direction,M=l.useRef(),F=A==="rtl",D=l.useContext(St),N=D.options,z=D.values,V=D.halfValues,Y=D.fieldNames,oe=D.changeOnSelect,ne=D.onSelect,ie=D.searchOptions,fe=D.dropdownPrefixCls,Q=D.loadData,pe=D.expandTrigger,Se=fe||d,le=l.useState([]),ke=(0,re.Z)(le,2),Fe=ke[0],he=ke[1],ht=function(st){if(!(!Q||C)){var xt=m(st,N,Y),Jt=xt.map(function(Ir){var Lr=Ir.option;return Lr}),cr=Jt[Jt.length-1];if(cr&&!B(cr,Y)){var Tr=Ot(st);he(function(Ir){return[].concat((0,G.Z)(Ir),[Tr])}),Q(Jt)}}};l.useEffect(function(){Fe.length&&Fe.forEach(function(Bt){var st=kt(Bt),xt=m(st,N,Y,!0).map(function(cr){var Tr=cr.option;return Tr}),Jt=xt[xt.length-1];(!Jt||Jt[Y.children]||B(Jt,Y))&&he(function(cr){return cr.filter(function(Tr){return Tr!==Bt})})})},[N,Fe,Y]);var mt=l.useMemo(function(){return new Set(Dt(z))},[z]),Ye=l.useMemo(function(){return new Set(Dt(V))},[V]),ze=It(),rt=(0,re.Z)(ze,2),at=rt[0],Ht=rt[1],Lt=function(st){Ht(st),ht(st)},Rt=function(st){var xt=st.disabled,Jt=B(st,Y);return!xt&&(Jt||oe||v)},Vt=function(st,xt){var Jt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;ne(st),!v&&(xt||oe&&(pe==="hover"||Jt))&&P(!1)},nr=l.useMemo(function(){return C?ie:N},[C,ie,N]),Gt=l.useMemo(function(){for(var Bt=[{options:nr}],st=nr,xt=function(){var Ir=at[Jt],Lr=st.find(function(Hr){return Hr[Y.value]===Ir}),Pr=Lr==null?void 0:Lr[Y.children];if(!(Pr==null?void 0:Pr.length))return"break";st=Pr,Bt.push({options:Pr})},Jt=0;Jt":ke,he=t.loadingIcon,ht=t.children,mt=t.dropdownMatchSelectWidth,Ye=mt===void 0?!1:mt,ze=t.showCheckedStrategy,rt=ze===void 0?vr:ze,at=(0,h.Z)(t,Ee),Ht=(0,Ct.ZP)(a),Lt=!!w,Rt=(0,Ie.Z)(f,{value:d,postState:Te}),Vt=(0,re.Z)(Rt,2),nr=Vt[0],Gt=Vt[1],At=l.useMemo(function(){return K(s)},[JSON.stringify(s)]),ur=l.useMemo(function(){return N||[]},[N]),sr=L(ur,At),Sr=l.useCallback(function(Mr){var dr=sr();return Mr.map(function(Fr){var Br=dr[Fr].nodes;return Br.map(function(Wr){return Wr[At.value]})})},[sr,At]),tr=(0,Ie.Z)("",{value:A,postState:function(dr){return dr||""}}),Xt=(0,re.Z)(tr,2),Bt=Xt[0],st=Xt[1],xt=function(dr,Fr){st(dr),Fr.source!=="blur"&&M&&M(dr)},Jt=Ae(F),cr=(0,re.Z)(Jt,2),Tr=cr[0],Ir=cr[1],Lr=ut(Bt,ur,At,z||o,Ir,v),Pr=X(ur,At),Hr=l.useMemo(function(){var Mr=Pr(nr),dr=(0,re.Z)(Mr,2),Fr=dr[0],Br=dr[1];if(!Lt||!nr.length)return[Fr,[],Br];var Wr=Dt(Fr),rn=sr(),Yr=(0,Xe.S)(Wr,!0,rn),vn=Yr.checkedKeys,nn=Yr.halfCheckedKeys;return[Sr(vn),Sr(nn),Br]},[Lt,nr,sr,Sr,Pr]),Ur=(0,re.Z)(Hr,3),$r=Ur[0],Xr=Ur[1],wr=Ur[2],aa=l.useMemo(function(){var Mr=Dt($r),dr=Ce(Mr,sr,rt);return[].concat((0,G.Z)(wr),(0,G.Z)(Sr(dr)))},[$r,sr,Sr,wr,rt]),Vr=x(aa,ur,At,Lt,P),Jr=H(function(Mr){if(Gt(Mr),C){var dr=Te(Mr),Fr=dr.map(function(rn){return m(rn,ur,At).map(function(Yr){return Yr.option})}),Br=Lt?dr:dr[0],Wr=Lt?Fr:Fr[0];C(Br,Wr)}}),Kr=H(function(Mr){if(st(""),!Lt)Jr(Mr);else{var dr=Ot(Mr),Fr=Dt($r),Br=Dt(Xr),Wr=Fr.includes(dr),rn=wr.some(function(Qr){return Ot(Qr)===dr}),Yr=$r,vn=wr;if(rn&&!Wr)vn=wr.filter(function(Qr){return Ot(Qr)!==dr});else{var nn=Wr?Fr.filter(function(Qr){return Qr!==dr}):[].concat((0,G.Z)(Fr),[dr]),En=sr(),Gr;if(Wr){var ua=(0,Xe.S)(nn,{checked:!1,halfCheckedKeys:Br},En);Gr=ua.checkedKeys}else{var $n=(0,Xe.S)(nn,!0,En);Gr=$n.checkedKeys}var Hn=Ce(Gr,sr,rt);Yr=Sr(Hn)}Jr([].concat((0,G.Z)(vn),(0,G.Z)(Yr)))}}),Sn=function(dr,Fr){if(Fr.type==="clear"){Jr([]);return}var Br=Fr.values[0].valueCells;Kr(Br)},Ln=oe!==void 0?oe:Y,oa=ie||ne,ia=pe||Q,Bn=function(dr){Se==null||Se(dr),le==null||le(dr)},Zn=l.useMemo(function(){return{options:ur,fieldNames:At,values:$r,halfValues:Xr,changeOnSelect:v,onSelect:Kr,checkable:w,searchOptions:Lr,dropdownPrefixCls:z,loadData:V,expandTrigger:D,expandIcon:Fe,loadingIcon:he,dropdownMenuColumnStyle:fe}},[ur,At,$r,Xr,v,Kr,w,Lr,z,V,D,Fe,he,fe]),On=!(Bt?Lr:ur).length,la=Bt&&Ir.matchInputWidth||On?{}:{minWidth:"auto"};return l.createElement(St.Provider,{value:Zn},l.createElement(Qe.Ac,(0,te.Z)({},at,{ref:e,id:Ht,prefixCls:o,dropdownMatchSelectWidth:Ye,dropdownStyle:la,displayValues:Vr,onDisplayValuesChange:Sn,mode:Lt?"multiple":void 0,searchValue:Bt,onSearch:xt,showSearch:Tr,OptionList:se,emptyOptions:On,open:Ln,dropdownClassName:oa,placement:ia,onDropdownVisibleChange:Bn,getRawInputElement:function(){return ht}})))});xe.SHOW_PARENT=vr,xe.SHOW_CHILD=dt;var Oe=xe,ye=Oe,Me=n(98423),De=n(53124),Je=n(88258),Ge=n(98866),U=n(97647),Z=n(4173),_=n(65223),J=n(46163),q=n(33603),be=n(9708),ce=function(t,e){var a={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(a[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(t);od?A=1:A=Math.round(w*100/d)/100,a.a!==A)return{h:a.h,s:a.s,l:a.l,a:A,source:"rgb"}}else{var M;if(P<0?M=0:P>f?M=1:M=Math.round(P*100/f)/100,o!==M)return{h:a.h,s:a.s,l:a.l,a:M,source:"rgb"}}return null},or={},ir=function(e,a,r,o){if(typeof document=="undefined"&&!o)return null;var s=o?new o:document.createElement("canvas");s.width=r*2,s.height=r*2;var f=s.getContext("2d");return f?(f.fillStyle=e,f.fillRect(0,0,s.width,s.height),f.fillStyle=a,f.fillRect(0,0,r,r),f.translate(r,r),f.fillRect(0,0,r,r),s.toDataURL()):null},mr=function(e,a,r,o){var s="".concat(e,"-").concat(a,"-").concat(r).concat(o?"-server":"");if(or[s])return or[s];var f=ir(e,a,r,o);return or[s]=f,f};function Nt(t){return Nt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Nt(t)}function Kt(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),a.push.apply(a,r)}return a}function qt(t){for(var e=1;ef)w=0;else{var D=-(P*100/f)+100;w=360*D/100}if(r.h!==w)return{h:w,s:r.s,l:r.l,a:r.a,source:"hsl"}}else{var M;if(C<0)M=0;else if(C>s)M=359;else{var j=C*100/s;M=360*j/100}if(r.h!==M)return{h:M,s:r.s,l:r.l,a:r.a,source:"hsl"}}return null};function on(t){return on=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},on(t)}function io(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ca(t,e){for(var a=0;af)w=0;else{var A=-(P*100/f)+100;w=360*A/100}if(r.h!==w)return{h:w,s:r.s,l:r.l,a:r.a,source:"hsl"}}else{var M;if(C<0)M=0;else if(C>s)M=359;else{var F=C*100/s;M=360*F/100}if(r.h!==M)return{h:M,s:r.s,l:r.l,a:r.a,source:"hsl"}}return null};function on(t){return on=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},on(t)}function io(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ca(t,e){for(var a=0;as&&(C=s),P<0?P=0:P>f&&(P=f);var w=C/s,D=1-P/f;return{h:a.h,s:w,v:D,a:a.a,source:"hsv"}};function ln(t){return ln=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ln(t)}function Co(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function da(t,e){for(var a=0;as&&(C=s),P<0?P=0:P>f&&(P=f);var w=C/s,A=1-P/f;return{h:a.h,s:w,v:A,a:a.a,source:"hsv"}};function ln(t){return ln=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ln(t)}function Co(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function da(t,e){for(var a=0;a=128?"#000":"#fff"},ku={hsl:{a:1,h:0,l:.5,s:1},hex:"#ff0000",rgb:{r:255,g:0,b:0,a:1},hsv:{h:0,s:1,v:1,a:1}},Gu=function(e,a){var r=e.replace("\xB0","");return tinycolor("".concat(a," (").concat(r,")"))._ok};function un(t){return un=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},un(t)}function Yn(){return Yn=Object.assign?Object.assign.bind():function(t){for(var e=1;e-1},li=function(e){return Number(String(e).replace(/%/g,""))},ui=1,si=function(t){qo(a,t);var e=_o(a);function a(r){var o;return Xo(this,a),o=e.call(this),o.handleBlur=function(){o.state.blurValue&&o.setState({value:o.state.blurValue,blurValue:null})},o.handleChange=function(s){o.setUpdatedValue(s.target.value,s)},o.handleKeyDown=function(s){var f=li(s.target.value);if(!isNaN(f)&&ii(s.keyCode)){var d=o.getArrowOffset(),v=s.keyCode===ya?f+d:f-d;o.setUpdatedValue(v,s)}},o.handleDrag=function(s){if(o.props.dragLabel){var f=Math.round(o.props.value+s.movementX);f>=0&&f<=o.props.dragMax&&o.props.onChange&&o.props.onChange(o.getValueObjectWithLabel(f),s)}},o.handleMouseDown=function(s){o.props.dragLabel&&(s.preventDefault(),o.handleDrag(s),window.addEventListener("mousemove",o.handleDrag),window.addEventListener("mouseup",o.handleMouseUp))},o.handleMouseUp=function(){o.unbindEventListeners()},o.unbindEventListeners=function(){window.removeEventListener("mousemove",o.handleDrag),window.removeEventListener("mouseup",o.handleMouseUp)},o.state={value:String(r.value).toUpperCase(),blurValue:String(r.value).toUpperCase()},o.inputId="rc-editable-input-".concat(ui++),o}return Jo(a,[{key:"componentDidUpdate",value:function(o,s){this.props.value!==this.state.value&&(o.value!==this.props.value||s.value!==this.state.value)&&(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(o){return Go({},this.props.label,o)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||ni}},{key:"setUpdatedValue",value:function(o,s){var f=this.props.label?this.getValueObjectWithLabel(o):o;this.props.onChange&&this.props.onChange(f,s),this.setState({value:o})}},{key:"render",value:function(){var o=this,s=(0,Tt.ZP)({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return l.createElement("div",{style:s.wrap},l.createElement("input",{id:this.inputId,style:s.input,ref:function(d){return o.input=d},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?l.createElement("label",{htmlFor:this.inputId,style:s.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),a}(l.PureComponent||l.Component),yn=si;function cn(t){return cn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},cn(t)}function Gn(){return Gn=Object.assign?Object.assign.bind():function(t){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:"span";return function(r){hi(s,r);var o=mi(s);function s(){var f;ci(this,s);for(var d=arguments.length,v=new Array(d),C=0;C100&&(P.a=100),P.a/=100,a==null||a({h:o==null?void 0:o.h,s:o==null?void 0:o.s,l:o==null?void 0:o.l,a:P.a,source:"rgb"},w))};return l.createElement("div",{style:d.fields,className:"flexbox-fix"},l.createElement("div",{style:d.double},l.createElement(yn,{style:{input:d.input,label:d.label},label:"hex",value:s==null?void 0:s.replace("#",""),onChange:v})),l.createElement("div",{style:d.single},l.createElement(yn,{style:{input:d.input,label:d.label},label:"r",value:r==null?void 0:r.r,onChange:v,dragLabel:"true",dragMax:"255"})),l.createElement("div",{style:d.single},l.createElement(yn,{style:{input:d.input,label:d.label},label:"g",value:r==null?void 0:r.g,onChange:v,dragLabel:"true",dragMax:"255"})),l.createElement("div",{style:d.single},l.createElement(yn,{style:{input:d.input,label:d.label},label:"b",value:r==null?void 0:r.b,onChange:v,dragLabel:"true",dragMax:"255"})),l.createElement("div",{style:d.alpha},l.createElement(yn,{style:{input:d.input,label:d.label},label:"a",value:Math.round(((r==null?void 0:r.a)||0)*100),onChange:v,dragLabel:"true",dragMax:"100"})))},wi=Ei;function xn(t){return xn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xn(t)}function Pa(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),a.push.apply(a,r)}return a}function Sa(t){for(var e=1;ehe?ue([he,Fe]):Fe===void 0&&he===void 0&&ue(void 0)}},Q=function(ke,Fe){var he=(0,G.Z)(z||[]);he[ke]=Fe===null?void 0:Fe,ue(he)},pe=(v==null?void 0:v.placeholder)||f,Se=(0,u.jsxs)(ct.Z.Group,{compact:!0,onBlur:fe,children:[(0,u.jsx)(en.Z,(0,i.Z)((0,i.Z)({},v),{},{placeholder:Array.isArray(pe)?pe[0]:pe,id:N!=null?N:"".concat(N,"-0"),style:{width:"calc((100% - ".concat(D,"px) / 2)")},value:z==null?void 0:z[0],defaultValue:j==null?void 0:j[0],onChange:function(ke){return Q(0,ke)}})),(0,u.jsx)(ct.Z,{style:{width:D,textAlign:"center",borderLeft:0,borderRight:0,pointerEvents:"none",backgroundColor:"#FFF"},placeholder:P,disabled:!0}),(0,u.jsx)(en.Z,(0,i.Z)((0,i.Z)({},v),{},{placeholder:Array.isArray(pe)?pe[1]:pe,id:N!=null?N:"".concat(N,"-1"),style:{width:"calc((100% - ".concat(D,"px) / 2)"),borderLeft:0},value:z==null?void 0:z[1],defaultValue:j==null?void 0:j[1],onChange:function(ke){return Q(1,ke)}}))]});return d?d(r,(0,i.Z)({mode:o},v),Se):Se}return null},Ji=l.forwardRef(Xi),qu=n(22385),qn=n(45777),Qi=function(e){var a=e.text,r=e.mode,o=e.render,s=e.renderFormItem,f=e.format,d=e.fieldProps,v=(0,O.YB)();if(r==="read"){var C=(0,u.jsx)(qn.Z,{title:Dr()(a).format((d==null?void 0:d.format)||f||"YYYY-MM-DD HH:mm:ss"),children:Dr()(a).fromNow()});return o?o(a,(0,i.Z)({mode:r},d),(0,u.jsx)(u.Fragment,{children:C})):(0,u.jsx)(u.Fragment,{children:C})}if(r==="edit"||r==="update"){var P=v.getMessage("tableForm.selectPlaceholder","\u8BF7\u9009\u62E9"),w=Pn(d.value),D=(0,u.jsx)(_r.Z,(0,i.Z)((0,i.Z)({placeholder:P,showTime:!0},d),{},{value:w}));return s?s(a,(0,i.Z)({mode:r},d),D):D}return null},qi=Qi,_u=n(12968),_i=n(6122),el=l.forwardRef(function(t,e){var a=t.text,r=t.mode,o=t.render,s=t.renderFormItem,f=t.fieldProps,d=t.placeholder,v=t.width;if(r==="read"){var C=(0,u.jsx)(_i.Z,(0,i.Z)({ref:e,width:v||32,src:a},f));return o?o(a,(0,i.Z)({mode:r},f),C):C}if(r==="edit"||r==="update"){var P=(0,u.jsx)(ct.Z,(0,i.Z)({ref:e,placeholder:d},f));return s?s(a,(0,i.Z)({mode:r},f),P):P}return null}),wa=el,es=n(76592),tl=function(e,a){var r,o=e.border,s=o===void 0?!1:o,f=e.children,d=(0,l.useContext)(Le.ZP.ConfigContext),v=d.getPrefixCls,C=v("pro-field-index-column");return(0,u.jsx)("div",{ref:a,className:we()(C,(r={},(0,ee.Z)(r,"".concat(C,"-border"),s),(0,ee.Z)(r,"top-three",f>3),r)),children:f})},Ra=l.forwardRef(tl),rl=["content","numberFormatOptions","numberPopoverRender"],nl=["text","mode","render","renderFormItem","fieldProps","proFieldKey","plain","valueEnum","placeholder","locale","customSymbol","numberFormatOptions","numberPopoverRender"],al=new Intl.NumberFormat("zh-Hans-CN",{currency:"CNY",style:"currency"}),ol={style:"currency",currency:"USD"},il={style:"currency",currency:"RUB"},ll={style:"currency",currency:"RSD"},ul={style:"currency",currency:"MYR"},sl={style:"currency",currency:"BRL"},Ma={default:al,"zh-Hans-CN":{currency:"CNY",style:"currency"},"en-US":ol,"ru-RU":il,"ms-MY":ul,"sr-RS":ll,"pt-BR":sl},Fa=function(e,a,r,o){var s=a;return typeof s=="string"&&(s=Number(s)),!s&&s!==0?"":new Intl.NumberFormat(e||"zh-Hans-CN",(0,i.Z)((0,i.Z)({},e===!1?{}:Ma[e||"zh-Hans-CN"]||Ma["zh-Hans-CN"]),{},{maximumFractionDigits:r},o)).format(s)},_n=2,cl=l.forwardRef(function(t,e){var a=t.content,r=t.numberFormatOptions,o=t.numberPopoverRender,s=(0,h.Z)(t,rl),f=(0,Ie.Z)(function(){return s.defaultValue},{value:s.value,onChange:s.onChange}),d=(0,re.Z)(f,2),v=d[0],C=d[1],P=a==null?void 0:a((0,i.Z)((0,i.Z)({},s),{},{value:v})),w={visible:P?s.visible:!1};return(0,u.jsx)(hr.Z,(0,i.Z)((0,i.Z)({placement:"topLeft"},w),{},{trigger:["focus","click"],content:P,getPopupContainer:function(M){return(M==null?void 0:M.parentElement)||document.body},children:(0,u.jsx)(en.Z,(0,i.Z)((0,i.Z)({ref:e},s),{},{value:v,onChange:C}))}))}),dl=function(e,a){var r,o,s=e.text,f=e.mode,d=e.render,v=e.renderFormItem,C=e.fieldProps,P=e.proFieldKey,w=e.plain,D=e.valueEnum,M=e.placeholder,j=e.locale,F=j===void 0?(r=C.customSymbol)!==null&&r!==void 0?r:"zh-Hans-CN":j,N=e.customSymbol,Y=N===void 0?C.customSymbol:N,V=e.numberFormatOptions,z=V===void 0?C==null?void 0:C.numberFormatOptions:V,ue=e.numberPopoverRender,ne=ue===void 0?(C==null?void 0:C.numberPopoverRender)||!1:ue,oe=(0,h.Z)(e,nl),fe=(o=C==null?void 0:C.precision)!==null&&o!==void 0?o:_n,Q=(0,O.YB)();F&&O.Go[F]&&(Q=O.Go[F]);var pe=(0,l.useMemo)(function(){if(Y)return Y;var Fe=Q.getMessage("moneySymbol","\uFFE5");if(!(oe.moneySymbol===!1||C.moneySymbol===!1))return Fe},[Y,C.moneySymbol,Q,oe.moneySymbol]);if(f==="read"){var Se=(0,u.jsx)("span",{ref:a,children:Fa(pe?F:!1,s,fe,z!=null?z:C.numberFormatOptions)});return d?d(s,(0,i.Z)({mode:f},C),Se):Se}if(f==="edit"||f==="update"){var ie=function(he){var ht=new RegExp("\\B(?=(\\d{".concat(3+Math.max(fe-_n,0),"})+(?!\\d))"),"g"),mt=String(he).split("."),Ye=(0,re.Z)(mt,2),ze=Ye[0],rt=Ye[1],at=ze.replace(ht,","),Ht="";return rt&&fe>0&&(Ht=".".concat(rt.slice(0,fe===void 0?_n:fe))),"".concat(at).concat(Ht)},ke=(0,u.jsx)(cl,(0,i.Z)({content:function(he){if(ne!==!1&&!!he.value){var ht=Fa(pe?F:!1,"".concat(ie(he.value)),fe,(0,i.Z)((0,i.Z)({},z),{},{notation:"compact"}));return typeof ne=="function"?ne==null?void 0:ne(he,ht):ht}},ref:a,precision:fe,formatter:function(he){return he&&pe?"".concat(pe," ").concat(ie(he)):he==null?void 0:he.toString()},parser:function(he){return pe&&he?he.replace(new RegExp("\\".concat(pe,"\\s?|(,*)"),"g"),""):he},placeholder:M},(0,Qn.Z)(C,["numberFormatOptions","precision","numberPopoverRender","customSymbol","moneySymbol","visible"])));return v?v(s,(0,i.Z)({mode:f},C),ke):ke}return null},ja=l.forwardRef(dl),Aa=function(e){return e.map(function(a,r){return l.isValidElement(a)?l.cloneElement(a,(0,i.Z)({key:r},a==null?void 0:a.props)):(0,u.jsx)(l.Fragment,{children:a},r)})},fl=function(e,a){var r=e.text,o=e.mode,s=e.render,f=e.fieldProps,d=(0,l.useContext)(Le.ZP.ConfigContext),v=d.getPrefixCls,C=v("pro-field-option");if((0,l.useImperativeHandle)(a,function(){return{}}),s){var P=s(r,(0,i.Z)({mode:o},f),(0,u.jsx)(u.Fragment,{}));return!P||(P==null?void 0:P.length)<1||!Array.isArray(P)?null:(0,u.jsx)(rr.Z,{size:16,className:C,children:Aa(P)})}return!r||!Array.isArray(r)?l.isValidElement(r)?r:null:(0,u.jsx)(rr.Z,{size:16,className:C,children:Aa(r)})},vl=l.forwardRef(fl),hl=n(95357),ml=n(88633),pl=["text","mode","render","renderFormItem","fieldProps","proFieldKey"],gl=function(e,a){var r=e.text,o=e.mode,s=e.render,f=e.renderFormItem,d=e.fieldProps,v=e.proFieldKey,C=(0,h.Z)(e,pl),P=(0,O.YB)(),w=(0,Ie.Z)(function(){return C.visible||!1},{value:C.visible,onChange:C.onVisible}),D=(0,re.Z)(w,2),M=D[0],j=D[1];if(o==="read"){var F=(0,u.jsx)(u.Fragment,{children:"-"});return r&&(F=(0,u.jsxs)(rr.Z,{children:[(0,u.jsx)("span",{ref:a,children:M?r:"\uFF0A \uFF0A \uFF0A \uFF0A \uFF0A"}),(0,u.jsx)("a",{onClick:function(){return j(!M)},children:M?(0,u.jsx)(hl.Z,{}):(0,u.jsx)(ml.Z,{})})]})),s?s(r,(0,i.Z)({mode:o},d),F):F}if(o==="edit"||o==="update"){var N=(0,u.jsx)(ct.Z.Password,(0,i.Z)({placeholder:P.getMessage("tableForm.inputPlaceholder","\u8BF7\u8F93\u5165"),ref:a},d));return f?f(r,(0,i.Z)({mode:o},d),N):N}return null},yl=l.forwardRef(gl),bl=n(49323),Nn=n.n(bl);function xl(t){return t===0?null:t>0?"+":"-"}function Cl(t){return t===0?"#595959":t>0?"#ff4d4f":"#52c41a"}function Pl(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;return e>=0?t==null?void 0:t.toFixed(e):t}var Sl=function(e,a){var r=e.text,o=e.prefix,s=e.precision,f=e.suffix,d=f===void 0?"%":f,v=e.mode,C=e.showColor,P=C===void 0?!1:C,w=e.render,D=e.renderFormItem,M=e.fieldProps,j=e.placeholder,F=e.showSymbol,N=(0,l.useMemo)(function(){return typeof r=="string"&&r.includes("%")?Nn()(r.replace("%","")):Nn()(r)},[r]),Y=(0,l.useMemo)(function(){return typeof F=="function"?F==null?void 0:F(r):F},[F,r]);if(v==="read"){var V=P?{color:Cl(N)}:{},z=(0,u.jsxs)("span",{style:V,ref:a,children:[o&&(0,u.jsx)("span",{children:o}),Y&&(0,u.jsxs)(l.Fragment,{children:[xl(N)," "]}),Pl(Math.abs(N),s),d&&d]});return w?w(r,(0,i.Z)((0,i.Z)({mode:v},M),{},{prefix:o,precision:s,showSymbol:Y,suffix:d}),z):z}if(v==="edit"||v==="update"){var ue=(0,u.jsx)(en.Z,(0,i.Z)({ref:a,formatter:function(oe){return oe&&o?"".concat(o," ").concat(oe).replace(/\B(?=(\d{3})+(?!\d)$)/g,","):oe},parser:function(oe){return oe?oe.replace(/.*\s|,/g,""):""},placeholder:j},M));return D?D(r,(0,i.Z)({mode:v},M),ue):ue}return null},Da=l.forwardRef(Sl),ts=n(34669),Zl=n(54458);function Ol(t){return t===100?"success":t<0?"exception":t<100?"active":"normal"}var El=function(e,a){var r=e.text,o=e.mode,s=e.render,f=e.plain,d=e.renderFormItem,v=e.fieldProps,C=e.placeholder,P=(0,l.useMemo)(function(){return typeof r=="string"&&r.includes("%")?Nn()(r.replace("%","")):Nn()(r)},[r]);if(o==="read"){var w=(0,u.jsx)(Zl.Z,(0,i.Z)({ref:a,size:"small",style:{minWidth:100,maxWidth:320},percent:P,steps:f?10:void 0,status:Ol(P)},v));return s?s(P,(0,i.Z)({mode:o},v),w):w}if(o==="edit"||o==="update"){var D=(0,u.jsx)(en.Z,(0,i.Z)({ref:a,placeholder:C},v));return d?d(r,(0,i.Z)({mode:o},v),D):D}return null},Ia=l.forwardRef(El),rs=n(88983),ea=n(47933),ns=n(25702),wl=["radioType","renderFormItem","mode","render"],Rl=function(e,a){var r=e.radioType,o=e.renderFormItem,s=e.mode,f=e.render,d=(0,h.Z)(e,wl),v=(0,l.useContext)(Le.ZP.ConfigContext),C=v.getPrefixCls,P=C("pro-field-radio"),w=(0,tt.aK)(d),D=(0,re.Z)(w,3),M=D[0],j=D[1],F=D[2],N=(0,l.useRef)();if((0,l.useImperativeHandle)(a,function(){return(0,i.Z)((0,i.Z)({},N.current||{}),{},{fetchData:function(){return F()}})}),M)return(0,u.jsx)(bt.Z,{size:"small"});if(s==="read"){var Y=(j==null?void 0:j.length)?j==null?void 0:j.reduce(function(oe,fe){var Q;return(0,i.Z)((0,i.Z)({},oe),{},(0,ee.Z)({},(Q=fe.value)!==null&&Q!==void 0?Q:"",fe.label))},{}):void 0,V=(0,u.jsx)(u.Fragment,{children:(0,tt.MP)(d.text,(0,tt.L9)(d.valueEnum||Y))});return f?f(d.text,(0,i.Z)({mode:s},d.fieldProps),V)||null:V}if(s==="edit"){var z,ue=r==="button"?ea.ZP.Button:ea.ZP,ne=(0,u.jsx)(ea.ZP.Group,(0,i.Z)((0,i.Z)({ref:N},d.fieldProps),{},{className:we()((z=d.fieldProps)===null||z===void 0?void 0:z.className,"".concat(P,"-").concat(d.fieldProps.layout||"horizontal")),options:void 0,children:j==null?void 0:j.map(function(oe){return(0,u.jsx)(ue,(0,i.Z)((0,i.Z)({},oe),{},{children:oe.label}),oe.value)})}));return o?o(d.text,(0,i.Z)({mode:s},d.fieldProps),ne)||null:ne}return null},Ta=l.forwardRef(Rl),Ml=function(e,a){var r=e.text,o=e.mode,s=e.format,f=e.render,d=e.renderFormItem,v=e.plain,C=e.showTime,P=e.fieldProps,w=(0,O.YB)(),D=Array.isArray(r)?r:[],M=(0,re.Z)(D,2),j=M[0],F=M[1],N=(0,l.useCallback)(function(oe){if(typeof(P==null?void 0:P.format)=="function"){var fe;return P==null||(fe=P.format)===null||fe===void 0?void 0:fe.call(P,oe)}return(P==null?void 0:P.format)||s||"YYYY-MM-DD"},[P,s]),Y=j?Dr()(j).format(N(Dr()(j))):"",V=F?Dr()(F).format(N(Dr()(F))):"";if(o==="read"){var z=(0,u.jsxs)("div",{ref:a,children:[(0,u.jsx)("div",{children:Y||"-"}),(0,u.jsx)("div",{children:V||"-"})]});return f?f(r,(0,i.Z)({mode:o},P),(0,u.jsx)("span",{children:z})):z}if(o==="edit"||o==="update"){var ue=Pn(P.value),ne=(0,u.jsx)(_r.Z.RangePicker,(0,i.Z)((0,i.Z)({ref:a,format:s,showTime:C,placeholder:[w.getMessage("tableForm.selectPlaceholder","\u8BF7\u9009\u62E9"),w.getMessage("tableForm.selectPlaceholder","\u8BF7\u9009\u62E9")],bordered:v===void 0?!0:!v},P),{},{value:ue}));return d?d(r,(0,i.Z)({mode:o},P),ne):ne}return null},Na=l.forwardRef(Ml),as=n(44408),Fl=n(51120),La=n(6610),Ba=n(5991),$a=n(10379),Ha=n(44144),jl=n(34203);function Al(t){var e=t.pageXOffset,a="scrollLeft";if(typeof e!="number"){var r=t.document;e=r.documentElement[a],typeof e!="number"&&(e=r.body[a])}return e}function Dl(t){var e,a,r=t.ownerDocument,o=r.body,s=r&&r.documentElement,f=t.getBoundingClientRect();return e=f.left,a=f.top,e-=s.clientLeft||o.clientLeft||0,a-=s.clientTop||o.clientTop||0,{left:e,top:a}}function Il(t){var e=Dl(t),a=t.ownerDocument,r=a.defaultView||a.parentWindow;return e.left+=Al(r),e.left}var Tl=function(t){(0,$a.Z)(a,t);var e=(0,Ha.Z)(a);function a(){var r;(0,La.Z)(this,a);for(var o=arguments.length,s=new Array(o),f=0;f=P&&dD?"true":"false","aria-posinset":D+1,"aria-setsize":M,tabIndex:v?-1:0},l.createElement("div",{className:"".concat(C,"-first")},F),l.createElement("div",{className:"".concat(C,"-second")},F)));return w&&(N=w(N,this.props)),N}}]),a}(l.Component);function Va(){}var Wa=function(t){(0,$a.Z)(a,t);var e=(0,Ha.Z)(a);function a(r){var o;(0,La.Z)(this,a),o=e.call(this,r),o.stars=void 0,o.rate=void 0,o.onHover=function(f,d){var v=o.props.onHoverChange,C=o.getStarValue(d,f.pageX),P=o.state.cleanedValue;C!==P&&o.setState({hoverValue:C,cleanedValue:null}),v(C)},o.onMouseLeave=function(){var f=o.props.onHoverChange;o.setState({hoverValue:void 0,cleanedValue:null}),f(void 0)},o.onClick=function(f,d){var v=o.props.allowClear,C=o.state.value,P=o.getStarValue(d,f.pageX),w=!1;v&&(w=P===C),o.onMouseLeave(),o.changeValue(w?0:P),o.setState({cleanedValue:w?P:null})},o.onFocus=function(){var f=o.props.onFocus;o.setState({focused:!0}),f&&f()},o.onBlur=function(){var f=o.props.onBlur;o.setState({focused:!1}),f&&f()},o.onKeyDown=function(f){var d=f.keyCode,v=o.props,C=v.count,P=v.allowHalf,w=v.onKeyDown,D=v.direction,M=D==="rtl",j=o.state.value;d===je.Z.RIGHT&&j0&&!M||d===je.Z.RIGHT&&j>0&&M?(P?j-=.5:j-=1,o.changeValue(j),f.preventDefault()):d===je.Z.LEFT&&jM/2||!C&&s-D0&&(e="".concat(o,"\u5206\u949F").concat(e)),r>0&&(e="".concat(r,"\u5C0F\u65F6").concat(e)),a>0&&(e="".concat(a,"\u5929").concat(e)),e}var Ul=function(e,a){var r=e.text,o=e.mode,s=e.render,f=e.renderFormItem,d=e.fieldProps,v=e.placeholder;if(o==="read"){var C=Wl(Number(r)),P=(0,u.jsx)("span",{ref:a,children:C});return s?s(r,(0,i.Z)({mode:o},d),P):P}if(o==="edit"||o==="update"){var w=(0,u.jsx)(en.Z,(0,i.Z)({ref:a,min:0,style:{width:"100%"},placeholder:v},d));return f?f(r,(0,i.Z)({mode:o},d),w):w}return null},Kl=l.forwardRef(Ul),os=n(34294),Yl=n(96774),zl=n.n(Yl),kl=l.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0}),tn=kl;function ta(t,e,a){return(t-e)/(a-e)}function ra(t,e,a,r){var o=ta(e,a,r),s={};switch(t){case"rtl":s.right="".concat(o*100,"%"),s.transform="translateX(50%)";break;case"btt":s.bottom="".concat(o*100,"%"),s.transform="translateY(50%)";break;case"ttb":s.top="".concat(o*100,"%"),s.transform="translateY(-50%)";break;default:s.left="".concat(o*100,"%"),s.transform="translateX(-50%)";break}return s}function fn(t,e){return Array.isArray(t)?t[e]:t}var Gl=["prefixCls","value","valueIndex","onStartMove","style","render","dragging","onOffsetChange"],Xl=l.forwardRef(function(t,e){var a,r,o=t.prefixCls,s=t.value,f=t.valueIndex,d=t.onStartMove,v=t.style,C=t.render,P=t.dragging,w=t.onOffsetChange,D=(0,h.Z)(t,Gl),M=l.useContext(tn),j=M.min,F=M.max,N=M.direction,Y=M.disabled,V=M.range,z=M.tabIndex,ue=M.ariaLabelForHandle,ne=M.ariaLabelledByForHandle,oe=M.ariaValueTextFormatterForHandle,fe="".concat(o,"-handle"),Q=function(Fe){Y||d(Fe,f)},pe=function(Fe){if(!Y){var he=null;switch(Fe.which||Fe.keyCode){case je.Z.LEFT:he=N==="ltr"||N==="btt"?-1:1;break;case je.Z.RIGHT:he=N==="ltr"||N==="btt"?1:-1;break;case je.Z.UP:he=N!=="ttb"?1:-1;break;case je.Z.DOWN:he=N!=="ttb"?-1:1;break;case je.Z.HOME:he="min";break;case je.Z.END:he="max";break;case je.Z.PAGE_UP:he=2;break;case je.Z.PAGE_DOWN:he=-2;break}he!==null&&(Fe.preventDefault(),w(he,f))}},Se=ra(N,s,j,F),ie=l.createElement("div",(0,te.Z)({ref:e,className:we()(fe,(a={},(0,ee.Z)(a,"".concat(fe,"-").concat(f+1),V),(0,ee.Z)(a,"".concat(fe,"-dragging"),P),a)),style:(0,i.Z)((0,i.Z)({},Se),v),onMouseDown:Q,onTouchStart:Q,onKeyDown:pe,tabIndex:Y?null:fn(z,f),role:"slider","aria-valuemin":j,"aria-valuemax":F,"aria-valuenow":s,"aria-disabled":Y,"aria-label":fn(ue,f),"aria-labelledby":fn(ne,f),"aria-valuetext":(r=fn(oe,f))===null||r===void 0?void 0:r(s)},D));return C&&(ie=C(ie,{index:f,prefixCls:o,value:s,dragging:P})),ie}),Jl=Xl,Ql=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","draggingIndex"],ql=l.forwardRef(function(t,e){var a=t.prefixCls,r=t.style,o=t.onStartMove,s=t.onOffsetChange,f=t.values,d=t.handleRender,v=t.draggingIndex,C=(0,h.Z)(t,Ql),P=l.useRef({});return l.useImperativeHandle(e,function(){return{focus:function(D){var M;(M=P.current[D])===null||M===void 0||M.focus()}}}),l.createElement(l.Fragment,null,f.map(function(w,D){return l.createElement(Jl,(0,te.Z)({ref:function(j){j?P.current[D]=j:delete P.current[D]},dragging:v===D,prefixCls:a,style:fn(r,D),key:D,value:w,valueIndex:D,onStartMove:o,onOffsetChange:s,render:d},C))}))}),_l=ql;function Ka(t){var e="touches"in t?t.touches[0]:t;return{pageX:e.pageX,pageY:e.pageY}}function eu(t,e,a,r,o,s,f,d,v){var C=l.useState(null),P=(0,re.Z)(C,2),w=P[0],D=P[1],M=l.useState(-1),j=(0,re.Z)(M,2),F=j[0],N=j[1],Y=l.useState(a),V=(0,re.Z)(Y,2),z=V[0],ue=V[1],ne=l.useState(a),oe=(0,re.Z)(ne,2),fe=oe[0],Q=oe[1],pe=l.useRef(null),Se=l.useRef(null);l.useEffect(function(){F===-1&&ue(a)},[a,F]),l.useEffect(function(){return function(){document.removeEventListener("mousemove",pe.current),document.removeEventListener("mouseup",Se.current),document.removeEventListener("touchmove",pe.current),document.removeEventListener("touchend",Se.current)}},[]);var ie=function(Ye,ze){z.some(function(rt,at){return rt!==Ye[at]})&&(ze!==void 0&&D(ze),ue(Ye),f(Ye))},ke=function(Ye,ze){if(Ye===-1){var rt=fe[0],at=fe[fe.length-1],Ht=r-rt,Lt=o-at,Rt=ze*(o-r);Rt=Math.max(Rt,Ht),Rt=Math.min(Rt,Lt);var kt=s(rt+Rt);Rt=kt-rt;var nr=fe.map(function(sr){return sr+Rt});ie(nr)}else{var Gt=(o-r)*ze,At=(0,G.Z)(z);At[Ye]=fe[Ye];var ur=v(At,Gt,Ye,"dist");ie(ur.values,ur.value)}},Fe=l.useRef(ke);Fe.current=ke;var he=function(Ye,ze){Ye.stopPropagation();var rt=a[ze];N(ze),D(rt),Q(a);var at=Ka(Ye),Ht=at.pageX,Lt=at.pageY,Rt=function(Gt){Gt.preventDefault();var At=Ka(Gt),ur=At.pageX,sr=At.pageY,Pr=ur-Ht,tr=sr-Lt,Xt=t.current.getBoundingClientRect(),Bt=Xt.width,st=Xt.height,xt;switch(e){case"btt":xt=-tr/st;break;case"ttb":xt=tr/st;break;case"rtl":xt=-Pr/Bt;break;default:xt=Pr/Bt}Fe.current(ze,xt)},kt=function nr(Gt){Gt.preventDefault(),document.removeEventListener("mouseup",nr),document.removeEventListener("mousemove",Rt),document.removeEventListener("touchend",nr),document.removeEventListener("touchmove",Rt),pe.current=null,Se.current=null,N(-1),d()};document.addEventListener("mouseup",kt),document.addEventListener("mousemove",Rt),document.addEventListener("touchend",kt),document.addEventListener("touchmove",Rt),pe.current=Rt,Se.current=kt},ht=l.useMemo(function(){var mt=(0,G.Z)(a).sort(function(ze,rt){return ze-rt}),Ye=(0,G.Z)(z).sort(function(ze,rt){return ze-rt});return mt.every(function(ze,rt){return ze===Ye[rt]})?z:a},[a,z]);return[F,w,ht,he]}function tu(t){var e=t.prefixCls,a=t.style,r=t.start,o=t.end,s=t.index,f=t.onStartMove,d=l.useContext(tn),v=d.direction,C=d.min,P=d.max,w=d.disabled,D=d.range,M="".concat(e,"-track"),j=ta(r,C,P),F=ta(o,C,P),N=function(z){!w&&f&&f(z,-1)},Y={};switch(v){case"rtl":Y.right="".concat(j*100,"%"),Y.width="".concat(F*100-j*100,"%");break;case"btt":Y.bottom="".concat(j*100,"%"),Y.height="".concat(F*100-j*100,"%");break;case"ttb":Y.top="".concat(j*100,"%"),Y.height="".concat(F*100-j*100,"%");break;default:Y.left="".concat(j*100,"%"),Y.width="".concat(F*100-j*100,"%")}return l.createElement("div",{className:we()(M,D&&"".concat(M,"-").concat(s+1)),style:(0,i.Z)((0,i.Z)({},Y),a),onMouseDown:N,onTouchStart:N})}function ru(t){var e=t.prefixCls,a=t.style,r=t.values,o=t.startPoint,s=t.onStartMove,f=l.useContext(tn),d=f.included,v=f.range,C=f.min,P=l.useMemo(function(){if(!v){if(r.length===0)return[];var w=o!=null?o:C,D=r[0];return[{start:Math.min(w,D),end:Math.max(w,D)}]}for(var M=[],j=0;j3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof F=="number"){var V,z=j[N],ue=z+F,ne=[];r.forEach(function(Se){ne.push(Se.value)}),ne.push(t,e),ne.push(d(z));var oe=F>0?1:-1;Y==="unit"?ne.push(d(z+oe*a)):ne.push(d(ue)),ne=ne.filter(function(Se){return Se!==null}).filter(function(Se){return F<0?Se<=z:Se>=z}),Y==="unit"&&(ne=ne.filter(function(Se){return Se!==z}));var fe=Y==="unit"?z:ue;V=ne[0];var Q=Math.abs(V-fe);if(ne.forEach(function(Se){var ie=Math.abs(Se-fe);ie1){var pe=(0,G.Z)(j);return pe[N]=V,M(pe,F-oe,N,Y)}return V}else{if(F==="min")return t;if(F==="max")return e}},P=function(j,F,N){var Y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",V=j[N],z=C(j,F,N,Y);return{value:z,changed:z!==V}},w=function(j){return s===null&&j===0||typeof s=="number"&&j3&&arguments[3]!==void 0?arguments[3]:"unit",V=j.map(v),z=V[N],ue=C(V,F,N,Y);if(V[N]=ue,o===!1){var ne=s||0;N>0&&V[N-1]!==z&&(V[N]=Math.max(V[N],V[N-1]+ne)),N0;pe-=1)for(var Se=!0;w(V[pe]-V[pe-1])&&Se;){var ie=P(V,-1,pe-1);V[pe-1]=ie.value,Se=ie.changed}for(var ke=V.length-1;ke>0;ke-=1)for(var Fe=!0;w(V[ke]-V[ke-1])&&Fe;){var he=P(V,-1,ke-1);V[ke-1]=he.value,Fe=he.changed}for(var ht=0;ht=0?ke:!1},[ke,cr]),Ir=l.useMemo(function(){var Sr=Object.keys(kt||{});return Sr.map(function(ar){var Mt=kt[ar],jr={value:Number(ar)};return Mt&&(0,c.Z)(Mt)==="object"&&!l.isValidElement(Mt)&&("label"in Mt||"style"in Mt)?(jr.style=Mt.style,jr.label=Mt.label):jr.label=Mt,jr}).filter(function(ar){var Mt=ar.label;return Mt||typeof Mt=="number"}).sort(function(ar,Mt){return ar.value-Mt.value})},[kt]),Hr=lu(xt,Jt,cr,Ir,Se,Tr),Er=(0,re.Z)(Hr,2),Nr=Er[0],Vr=Er[1],$r=(0,Ie.Z)(z,{value:V}),Xr=(0,re.Z)($r,2),wr=Xr[0],aa=Xr[1],Wr=l.useMemo(function(){var Sr=wr==null?[]:Array.isArray(wr)?wr:[wr],ar=(0,re.Z)(Sr,1),Mt=ar[0],jr=Mt===void 0?xt:Mt,xr=wr===null?[]:[jr];if(ue){if(xr=(0,G.Z)(Sr),ne||wr===void 0){var hn=ne>=0?ne+1:2;for(xr=xr.slice(0,hn);xr.length=0&&Xt.current.focus(Sr)}On(null)},[Zn]);var Mr=l.useMemo(function(){return Fe&&cr===null?!1:Fe},[Fe,cr]),dr=function(){Q==null||Q(Kr(Jr.current))},Fr=eu(Bt,st,Wr,xt,Jt,Nr,Sn,dr,Vr),Br=(0,re.Z)(Fr,4),Ur=Br[0],rn=Br[1],Yr=Br[2],vn=Br[3],nn=function(ar,Mt){vn(ar,Mt),fe==null||fe(Kr(Jr.current))},En=Ur!==-1;l.useEffect(function(){if(!En){var Sr=Wr.lastIndexOf(rn);Xt.current.focus(Sr)}},[En]);var Gr=l.useMemo(function(){return(0,G.Z)(Yr).sort(function(Sr,ar){return Sr-ar})},[Yr]),ua=l.useMemo(function(){return ue?[Gr[0],Gr[Gr.length-1]]:[xt,Gr[0]]},[Gr,ue,xt]),$n=(0,re.Z)(ua,2),Hn=$n[0],Qr=$n[1];l.useImperativeHandle(e,function(){return{focus:function(){Xt.current.focus(0)},blur:function(){var ar=document,Mt=ar.activeElement;Bt.current.contains(Mt)&&(Mt==null||Mt.blur())}}}),l.useEffect(function(){C&&Xt.current.focus(0)},[]);var Ku=l.useMemo(function(){return{min:xt,max:Jt,direction:st,disabled:v,step:cr,included:Ye,includedStart:Hn,includedEnd:Qr,range:ue,tabIndex:ur,ariaLabelForHandle:sr,ariaLabelledByForHandle:Pr,ariaValueTextFormatterForHandle:tr}},[xt,Jt,st,v,cr,Ye,Hn,Qr,ue,ur,sr,Pr,tr]);return l.createElement(tn.Provider,{value:Ku},l.createElement("div",{ref:Bt,className:we()(o,s,(a={},(0,ee.Z)(a,"".concat(o,"-disabled"),v),(0,ee.Z)(a,"".concat(o,"-vertical"),ht),(0,ee.Z)(a,"".concat(o,"-horizontal"),!ht),(0,ee.Z)(a,"".concat(o,"-with-marks"),Ir.length),a)),style:f,onMouseDown:oa},l.createElement("div",{className:"".concat(o,"-rail"),style:Ht}),l.createElement(ru,{prefixCls:o,style:rt,values:Gr,startPoint:ze,onStartMove:Mr?nn:null}),l.createElement(iu,{prefixCls:o,marks:Ir,dots:nr,style:Lt,activeStyle:Rt}),l.createElement(_l,{ref:Xt,prefixCls:o,style:at,values:Yr,draggingIndex:Ur,onStartMove:nn,onOffsetChange:la,onFocus:P,onBlur:w,handleRender:Gt}),l.createElement(au,{prefixCls:o,marks:Ir,onClick:Ln})))}),su=uu,cu=su,Ya=n(75164),du=n(42550),fu=l.forwardRef(function(t,e){var a=t.open,r=(0,l.useRef)(null),o=(0,l.useRef)(null);function s(){Ya.Z.cancel(o.current),o.current=null}function f(){o.current=(0,Ya.Z)(function(){var d;(d=r.current)===null||d===void 0||d.forcePopupAlign(),o.current=null})}return l.useEffect(function(){return a?f():s(),s},[a,t.title]),l.createElement(qn.Z,(0,te.Z)({ref:(0,du.sQ)(r,e)},t))}),vu=fu,hu=function(t,e){var a={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(a[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(t);o2&&arguments[2]!==void 0?arguments[2]:!0,et=Object.keys(We).reduce(function(Te,xe){var Oe=We[xe];return(0,ve.Z)(Oe)||(Te[xe]=Oe),Te},{});if(Object.keys(et).length<1||typeof window=="undefined"||(0,Ve.Z)(se)!=="object"||(0,ve.Z)(se)||se instanceof Blob)return se;var Ee=Array.isArray(se)?[]:{},$e=function Te(xe,Oe){var ye=Array.isArray(xe),Me=ye?[]:{};return xe==null||xe===void 0?Me:(Object.keys(xe).forEach(function(De){var Je=Oe?[Oe,De].flat(1):[De].flat(1),Ge=xe[De],U=(0,Be.Z)(et,Je),Z=function q(be){return Array.isArray(be)&&be.forEach(function(ce,Pe){!ce||(typeof ce=="function"&&(Ge[Pe]=ce(Ge,De,xe)),(0,Ve.Z)(ce)==="object"&&!Array.isArray(ce)&&Object.keys(ce).forEach(function(Ke){if(typeof ce[Ke]=="function"){var nt=ce[Ke](xe[De][Pe][Ke],De,xe);Ge[Pe][Ke]=(0,Ve.Z)(nt)==="object"?nt[Ke]:nt}}),(0,Ve.Z)(ce)==="object"&&Array.isArray(ce)&&q(ce))}),De},_=function(){var be=typeof U=="function"?U==null?void 0:U(Ge,De,xe):Z(U);if(Array.isArray(be)){Me=(0,le.Z)(Me,be,Ge);return}(0,Ve.Z)(be)==="object"&&!Array.isArray(Ee)?Ee=(0,i.Z)((0,i.Z)({},Ee),be):(0,Ve.Z)(be)==="object"&&Array.isArray(Ee)?Me=(0,i.Z)((0,i.Z)({},Me),be):be&&(Me=(0,le.Z)(Me,[be],Ge))};if(U&&typeof U=="function"&&_(),typeof window!="undefined"){if(re(Ge)){var J=Te(Ge,Je);if(Object.keys(J).length<1)return;Me=(0,le.Z)(Me,[De],J);return}_()}}),Ue?Me:xe)};return Ee=Array.isArray(se)&&Array.isArray(Ee)?(0,G.Z)($e(se)):(0,we.T)({},$e(se),Ee),Ee},Ct=Qe,Xe=n(22270),Ie=n(48171),Kt=n(26369),St=n(60249),fr=n(41036),vr=n(56725),dt=n(75661),Ot=n(23312),Dt=function(){return Dt=Object.assign||function(W){for(var se,We=1,Ue=arguments.length;We0&&arguments[0]!==void 0?arguments[0]:[],ft=it(wt);if(!ft)throw new Error("nameList is require");var He=(bt=Vt())===null||bt===void 0?void 0:bt.getFieldValue(ft),pt=ft?(0,le.Z)({},ft,He):He;return(0,Be.Z)(Te(pt,q,ft),ft)},getFieldFormatValueObject:function(bt){var wt,ft=it(bt),He=(wt=Vt())===null||wt===void 0?void 0:wt.getFieldValue(ft),pt=ft?(0,le.Z)({},ft,He):He;return Te(pt,q,ft)},validateFieldsReturnFormatValue:function(){var Ft=(0,O.Z)((0,u.Z)().mark(function wt(ft){var He,pt,jt;return(0,u.Z)().wrap(function(Qt){for(;;)switch(Qt.prev=Qt.next){case 0:if(!(!Array.isArray(ft)&&ft)){Qt.next=2;break}throw new Error("nameList must be array");case 2:return Qt.next=4,(He=Vt())===null||He===void 0?void 0:He.validateFields(ft);case 4:return pt=Qt.sent,jt=Te(pt,q),Qt.abrupt("return",jt||{});case 7:case"end":return Qt.stop()}},wt)}));function bt(wt){return Ft.apply(this,arguments)}return bt}(),formRef:Le}},[q,Te]),_e=(0,k.useMemo)(function(){return k.Children.toArray(se).map(function(Ft,bt){return bt===0&&k.isValidElement(Ft)&&Pe?k.cloneElement(Ft,(0,i.Z)((0,i.Z)({},Ft.props),{},{autoFocus:Pe})):Ft})},[Pe,se]),Wt=(0,k.useMemo)(function(){return typeof Ue=="boolean"||!Ue?{}:Ue},[Ue]);(0,k.useImperativeHandle)(xe,function(){return(0,i.Z)((0,i.Z)({},Ne),yt)},[yt,Ne]);var gr=(0,k.useMemo)(function(){if(Ue!==!1)return(0,l.jsx)(Ae,(0,i.Z)((0,i.Z)({},Wt),{},{onReset:function(){var bt,wt,ft=Te((bt=Le.current)===null||bt===void 0?void 0:bt.getFieldsValue(),q);if(Wt==null||(wt=Wt.onReset)===null||wt===void 0||wt.call(Wt,ft),_==null||_(ft),U){var He,pt=Object.keys(Te((He=Le.current)===null||He===void 0?void 0:He.getFieldsValue(),!1)).reduce(function(jt,ct){return(0,i.Z)((0,i.Z)({},jt),{},(0,c.Z)({},ct,ft[ct]||void 0))},Ge);Z(qe(U,pt,"set"))}},submitButtonProps:(0,i.Z)({loading:Me},Wt.submitButtonProps)}),"submitter")},[Ue,Wt,Me,Te,q,_,U,Ge,Z]),_t=(0,k.useMemo)(function(){var Ft=Ke?(0,l.jsx)(tt,{children:_e}):_e;return We?We(Ft,gr,Le.current):Ft},[Ke,tt,_e,We,gr]),rr=(0,Kt.Z)(W.initialValues);return(0,k.useEffect)(function(){if(!(U||!W.initialValues||!rr||lt.request)){var Ft=(0,St.Z)(W.initialValues,rr);(0,m.ET)(Ft,"initialValues \u53EA\u5728 form \u521D\u59CB\u5316\u65F6\u751F\u6548\uFF0C\u5982\u679C\u4F60\u9700\u8981\u5F02\u6B65\u52A0\u8F7D\u63A8\u8350\u4F7F\u7528 request\uFF0C\u6216\u8005 initialValues ?
: null "),(0,m.ET)(Ft,"The initialValues only take effect when the form is initialized, if you need to load asynchronously recommended request, or the initialValues ? : null ")}},[W.initialValues]),(0,k.useEffect)(function(){var Ft,bt,wt=Te((Ft=Le.current)===null||Ft===void 0||(bt=Ft.getFieldsValue)===null||bt===void 0?void 0:bt.call(Ft,!0),q);Oe==null||Oe(wt,Le.current)},[]),(0,l.jsx)(fr.Z.Provider,{value:yt,children:(0,l.jsx)(S.ZP.SizeContext.Provider,{value:lt.size||$t,children:(0,l.jsxs)(Ze._p.Provider,{value:{grid:Ke,colProps:Et},children:[lt.component!==!1&&(0,l.jsx)("input",{type:"text",style:{display:"none"}}),_t]})})})}var je=0;function gt(W){var se=W.extraUrlParams,We=se===void 0?{}:se,Ue=W.syncToUrl,et=W.isKeyPressSubmit,Ee=W.syncToUrlAsImportant,$e=Ee===void 0?!1:Ee,Te=W.syncToInitialValues,xe=Te===void 0?!0:Te,Oe=W.children,ye=W.contentRender,Me=W.submitter,De=W.fieldProps,Je=W.formItemProps,Ge=W.groupProps,U=W.dateFormatter,Z=U===void 0?"string":U,_=W.formRef,J=W.onInit,q=W.form,be=W.formComponentType,ce=W.onReset,Pe=W.grid,Ke=W.rowProps,nt=W.colProps,Et=W.omitNil,lt=Et===void 0?!0:Et,Ne=W.request,$t=W.params,Le=W.initialValues,Zt=W.formKey,tt=Zt===void 0?je:Zt,Vt=W.readonly,yt=(0,A.Z)(W,ge),_e=(0,k.useRef)({}),Wt=(0,vr.Z)(!1),gr=(0,g.Z)(Wt,2),_t=gr[0],rr=gr[1],Ft=K({},{disabled:!Ue}),bt=(0,g.Z)(Ft,2),wt=bt[0],ft=bt[1],He=(0,k.useRef)((0,dt.x)());(0,k.useEffect)(function(){je+=0},[]);var pt=ee({request:Ne,params:$t,proFieldKey:tt}),jt=(0,g.Z)(pt,1),ct=jt[0],Qt=(0,k.useState)(function(){return Ue?qe(Ue,wt,"get"):{}}),pr=(0,g.Z)(Qt,2),Cr=pr[0],lr=pr[1],hr=(0,k.useRef)({}),Tt=(0,k.useRef)({}),Zr=(0,k.useCallback)(function(or,ir,mr){return Ct((0,Ot.ZP)(or,Z,Tt.current,ir,mr),hr.current,ir)},[Z]);(0,k.useEffect)(function(){xe||lr({})},[xe]),(0,k.useEffect)(function(){!Ue||ft((0,i.Z)((0,i.Z)({},wt),We))},[We,Ue]);var yr=(0,k.useMemo)(function(){if(typeof window!="undefined"&&be&&["DrawerForm"].includes(be))return function(or){return or.parentNode||document.body}},[be]),Or=(0,Ie.J)((0,O.Z)((0,u.Z)().mark(function or(){var ir,mr,Nt,Ut,qt,Yt;return(0,u.Z)().wrap(function(vt){for(;;)switch(vt.prev=vt.next){case 0:if(yt.onFinish){vt.next=2;break}return vt.abrupt("return");case 2:if(!_t){vt.next=4;break}return vt.abrupt("return");case 4:return rr(!0),vt.prev=5,Nt=_e==null||(ir=_e.current)===null||ir===void 0||(mr=ir.getFieldsFormatValue)===null||mr===void 0?void 0:mr.call(ir),vt.next=9,yt.onFinish(Nt);case 9:Ue&&(Yt=Object.keys(_e==null||(Ut=_e.current)===null||Ut===void 0||(qt=Ut.getFieldsFormatValue)===null||qt===void 0?void 0:qt.call(Ut,void 0,!1)).reduce(function(Pt,Rr){var br;return(0,i.Z)((0,i.Z)({},Pt),{},(0,c.Z)({},Rr,(br=Nt[Rr])!==null&&br!==void 0?br:void 0))},We),Object.keys(wt).forEach(function(Pt){Yt[Pt]!==!1&&Yt[Pt]!==0&&!Yt[Pt]&&(Yt[Pt]=void 0)}),ft(qe(Ue,Yt,"set"))),rr(!1),vt.next=16;break;case 13:vt.prev=13,vt.t0=vt.catch(5),rr(!1);case 16:case"end":return vt.stop()}},or,null,[[5,13]])})));return(0,k.useImperativeHandle)(_,function(){return _e.current},[!ct]),!ct&&W.request?(0,l.jsx)("div",{style:{paddingTop:50,paddingBottom:50,textAlign:"center"},children:(0,l.jsx)(b.Z,{})}):(0,l.jsx)(me.A.Provider,{value:{mode:W.readonly?"read":"edit"},children:(0,l.jsx)(T.oK,{children:(0,l.jsx)(Re.Z.Provider,{value:{formRef:_e,fieldProps:De,formItemProps:Je,groupProps:Ge,formComponentType:be,getPopupContainer:yr,formKey:He.current,setFieldValueType:function(ir,mr){var Nt=mr.valueType,Ut=Nt===void 0?"text":Nt,qt=mr.dateFormat,Yt=mr.transform;!Array.isArray(ir)||(hr.current=(0,le.Z)(hr.current,ir,Yt),Tt.current=(0,le.Z)(Tt.current,ir,{valueType:Ut,dateFormat:qt}))}},children:(0,l.jsx)($.Z,(0,i.Z)((0,i.Z)({onKeyPress:function(ir){if(!!et&&ir.key==="Enter"){var mr;(mr=_e.current)===null||mr===void 0||mr.submit()}},autoComplete:"off",form:q},(0,Ce.Z)(yt,["autoFocusFirstInput"])),{},{initialValues:$e?(0,i.Z)((0,i.Z)((0,i.Z)({},ct),Le),Cr):(0,i.Z)((0,i.Z)((0,i.Z)({},Cr),ct),Le),onValuesChange:function(ir,mr){var Nt;yt==null||(Nt=yt.onValuesChange)===null||Nt===void 0||Nt.call(yt,Zr(ir,!!lt),Zr(mr,!!lt))},onFinish:Or,children:(0,l.jsx)(It,(0,i.Z)((0,i.Z)({transformKey:Zr,autoComplete:"off",loading:_t,onUrlSearchChange:ft},W),{},{formRef:_e,initialValues:(0,i.Z)((0,i.Z)({},Le),ct)}))}))})})})}},9105:function(E,R,n){"use strict";n.d(R,{A:function(){return b}});var h=n(67294),b=h.createContext({mode:"edit"})},66758:function(E,R,n){"use strict";n.d(R,{z:function(){return b}});var h=n(67294),b=h.createContext({});R.Z=b},82785:function(E,R,n){"use strict";n.d(R,{Z:function(){return Dt}});var h=n(84305),b=n(39559),g=n(9715),c=n(55843),i=n(96156),u=n(28991),O=n(81253),y=n(67294),S=n(85893),I=function(K){var B=!1;return(typeof K=="string"&&K.startsWith("date")&&!K.endsWith("Range")||K==="select"||K==="time")&&(B=!0),B},$=I,A=n(51812),l=n(28481),T=n(56725),k=n(30381),de=n.n(k),ae=function(K,B){return typeof B=="function"?B(de()(K)):de()(K).format(B)},te=function(K,B){var ot=Array.isArray(K)?K:[],Ce=(0,l.Z)(ot,2),m=Ce[0],x=Ce[1],p,L;Array.isArray(B)?(p=B[0],L=B[1]):(p=B,L=B);var X=m?ae(m,p):"",H=x?ae(x,L):"",Ae=X&&H?"".concat(X," ~ ").concat(H):"";return Ae},ee=te,G=n(23312),Ve=n(1643),Be=n(76422),le=n(94184),ve=n.n(le),we=n(11913),re=["label","size","disabled","onChange","className","style","children","valuePropName","placeholder","labelFormatter","bordered","footerRender","allowClear","otherFieldProps","valueType","placement"],Qe=function(K){var B,ot=K.label,Ce=K.size,m=K.disabled,x=K.onChange,p=K.className,L=K.style,X=K.children,H=K.valuePropName,Ae=K.placeholder,Re=K.labelFormatter,Ze=K.bordered,me=K.footerRender,ut=K.allowClear,ge=K.otherFieldProps,qe=K.valueType,it=K.placement,It=(0,O.Z)(K,re),je=(0,y.useContext)(b.ZP.ConfigContext),gt=je.getPrefixCls,W=gt("pro-field-light-wrapper"),se=(0,y.useState)(K[H]),We=(0,l.Z)(se,2),Ue=We[0],et=We[1],Ee=(0,T.Z)(!1),$e=(0,l.Z)(Ee,2),Te=$e[0],xe=$e[1],Oe=function(){for(var Je,Ge=arguments.length,U=new Array(Ge),Z=0;Z0?(0,y.jsx)("div",{className:"".concat(H,"-action"),children:be}):null,Pe={name:Ue.name,field:it,index:It,record:je==null||(ot=je.getFieldValue)===null||ot===void 0?void 0:ot.call(je,[et.listName,Ue.name,it.name].filter(function(Ne){return Ne!==void 0}).flat(1)),fields:ge,operation:Re,meta:qe},Ke=(0,k.zx)(),nt=Ke.grid,Et=(p==null?void 0:p(Z,Pe))||Z,lt=(L==null?void 0:L({listDom:(0,y.jsx)("div",{className:"".concat(H,"-container"),style:{width:nt?"100%":void 0},children:Et}),action:ce},Pe))||(0,y.jsxs)("div",{className:"".concat(H,"-item ").concat(X?"".concat(H,"-item-show-label"):""),style:{display:"flex",alignItems:"flex-end"},children:[(0,y.jsx)("div",{className:"".concat(H,"-container"),style:{width:nt?"100%":void 0},children:Et}),ce]});return(0,y.jsx)(Dt.Provider,{value:(0,c.Z)((0,c.Z)({},it),{},{listName:[et.listName,gt,it.name].filter(function(Ne){return Ne!==void 0}).flat(1)}),children:lt})},dt=function(B){var ot=(0,$.YB)(),Ce=B.creatorButtonProps,m=B.prefixCls,x=B.children,p=B.creatorRecord,L=B.action,X=B.fields,H=B.actionGuard,Ae=B.max,Re=B.fieldExtraRender,Ze=B.meta,me=B.containerClassName,ut=B.containerStyle,ge=B.onAfterAdd,qe=B.onAfterRemove,it=(0,T.useRef)(new Map),It=(0,T.useState)(!1),je=(0,Ve.Z)(It,2),gt=je[0],W=je[1],se=(0,T.useMemo)(function(){return X.map(function(Ee){var $e,Te;if(!(($e=it.current)===null||$e===void 0?void 0:$e.has(Ee.key.toString()))){var xe;(xe=it.current)===null||xe===void 0||xe.set(Ee.key.toString(),(0,le.x)())}var Oe=(Te=it.current)===null||Te===void 0?void 0:Te.get(Ee.key.toString());return(0,c.Z)((0,c.Z)({},Ee),{},{uuid:Oe})})},[X]),We=(0,T.useMemo)(function(){var Ee=(0,c.Z)({},L),$e=se.length;return(H==null?void 0:H.beforeAddRow)?Ee.add=(0,G.Z)((0,ee.Z)().mark(function Te(){var xe,Oe,ye,Me,De,Je=arguments;return(0,ee.Z)().wrap(function(U){for(;;)switch(U.prev=U.next){case 0:for(xe=Je.length,Oe=new Array(xe),ye=0;ye0&&arguments[0]!==void 0?arguments[0]:{},Be=Ve.children,le=Ve.Wrapper,ve=(0,O.Z)(Ve,I);return ae?(0,y.jsx)(u.Z,(0,c.Z)((0,c.Z)((0,c.Z)({gutter:8},te),ve),{},{children:Be})):le?(0,y.jsx)(le,{children:Be}):Be},ColWrapper:function(){var Ve=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Be=Ve.children,le=Ve.Wrapper,ve=(0,O.Z)(Ve,$),we=(0,S.useMemo)(function(){var re=(0,c.Z)((0,c.Z)({},ee),ve);return typeof re.span=="undefined"&&typeof re.xs=="undefined"&&(re.xs=24),re},[ve]);return ae?(0,y.jsx)(g.Z,(0,c.Z)((0,c.Z)({},we),{},{children:Be})):le?(0,y.jsx)(le,{children:Be}):Be}}},T=function(de){var ae=(0,S.useMemo)(function(){return(0,h.Z)(de)==="object"?de:{grid:de}},[de]),te=(0,S.useContext)(A),ee=te.grid,G=te.colProps;return(0,S.useMemo)(function(){return l({grid:!!(ee||ae.grid),rowProps:ae==null?void 0:ae.rowProps,colProps:(ae==null?void 0:ae.colProps)||G,Wrapper:ae==null?void 0:ae.Wrapper})},[ae==null?void 0:ae.Wrapper,ae.grid,ee,JSON.stringify([G,ae==null?void 0:ae.colProps,ae==null?void 0:ae.rowProps])])}},952:function(E,R,n){"use strict";var h=n(56640),b=n.n(h),g=n(5894);R.ZP=g.A},5894:function(E,R,n){"use strict";n.d(R,{A:function(){return ve}});var h=n(9715),b=n(55843),g=n(28991),c=n(85893),i=n(88374),u=n(96156),O=n(49111),y=n(19650),S=n(84305),I=n(39559),$=n(28481),A=n(8812),l=n(56725),T=n(53621),k=n(94184),de=n.n(k),ae=n(67294),te=n(66758),ee=n(2514),G=n(96138),Ve=ae.forwardRef(function(we,re){var Qe=ae.useContext(te.Z),Ct=Qe.groupProps,Xe=(0,g.Z)((0,g.Z)({},Ct),we),Ie=Xe.children,Kt=Xe.collapsible,St=Xe.defaultCollapsed,fr=Xe.style,vr=Xe.labelLayout,dt=Xe.title,Ot=dt===void 0?we.label:dt,Dt=Xe.tooltip,zt=Xe.align,K=zt===void 0?"start":zt,B=Xe.direction,ot=Xe.size,Ce=ot===void 0?32:ot,m=Xe.titleStyle,x=Xe.titleRender,p=Xe.spaceProps,L=Xe.extra,X=Xe.autoFocus,H=(0,l.Z)(function(){return St||!1},{value:we.collapsed,onChange:we.onCollapse}),Ae=(0,$.Z)(H,2),Re=Ae[0],Ze=Ae[1],me=(0,ae.useContext)(I.ZP.ConfigContext),ut=me.getPrefixCls,ge=(0,ee.zx)(we),qe=ge.ColWrapper,it=ge.RowWrapper,It=ut("pro-form-group"),je=Kt&&(0,c.jsx)(A.Z,{style:{marginRight:8},rotate:Re?void 0:90}),gt=(0,c.jsx)(T.Z,{label:je?(0,c.jsxs)("div",{children:[je,Ot]}):Ot,tooltip:Dt}),W=(0,ae.useCallback)(function($e){var Te=$e.children;return(0,c.jsx)(y.Z,(0,g.Z)((0,g.Z)({},p),{},{className:de()("".concat(It,"-container"),p==null?void 0:p.className),size:Ce,align:K,direction:B,style:(0,g.Z)({rowGap:0},p==null?void 0:p.style),children:Te}))},[K,It,B,Ce,p]),se=x?x(gt,we):gt,We=(0,ae.useMemo)(function(){var $e=[],Te=ae.Children.toArray(Ie).map(function(xe,Oe){var ye;return ae.isValidElement(xe)&&(xe==null||(ye=xe.props)===null||ye===void 0?void 0:ye.hidden)?($e.push(xe),null):Oe===0&&ae.isValidElement(xe)&&X?ae.cloneElement(xe,(0,g.Z)((0,g.Z)({},xe.props),{},{autoFocus:X})):xe});return[(0,c.jsx)(it,{Wrapper:W,children:Te},"children"),$e.length>0?(0,c.jsx)("div",{style:{display:"none"},children:$e}):null]},[Ie,it,W,X]),Ue=(0,$.Z)(We,2),et=Ue[0],Ee=Ue[1];return(0,c.jsx)(qe,{children:(0,c.jsxs)("div",{className:de()(It,(0,u.Z)({},"".concat(It,"-twoLine"),vr==="twoLine")),style:fr,ref:re,children:[Ee,(Ot||Dt||L)&&(0,c.jsx)("div",{className:"".concat(It,"-title"),style:m,onClick:function(){Ze(!Re)},children:L?(0,c.jsxs)("div",{style:{display:"flex",width:"100%",alignItems:"center",justifyContent:"space-between"},children:[se,(0,c.jsx)("span",{onClick:function(Te){return Te.stopPropagation()},children:L})]}):se}),Kt&&Re?null:et]})})});Ve.displayName="ProForm-Group";var Be=Ve,le=n(82785);function ve(we){return(0,c.jsx)(i.I,(0,g.Z)({layout:"vertical",submitter:{render:function(Qe,Ct){return Ct.reverse()}},contentRender:function(Qe,Ct){return(0,c.jsxs)(c.Fragment,{children:[Qe,Ct]})}},we))}ve.Group=Be,ve.useForm=b.Z.useForm,ve.Item=le.Z,ve.useWatch=b.Z.useWatch,ve.ErrorList=b.Z.ErrorList,ve.Provider=b.Z.Provider,ve.useFormInstance=b.Z.useFormInstance},76422:function(E,R,n){"use strict";var h=n(96156),b=n(84305),g=n(39559),c=n(85893),i=n(54549),u=n(57254),O=n(78775),y=n(94184),S=n.n(y),I=n(67294),$=n(83931),A=n.n($),l=function(k,de){var ae,te=k.label,ee=k.onClear,G=k.value,Ve=k.size,Be=Ve===void 0?"middle":Ve,le=k.disabled,ve=k.onLabelClick,we=k.ellipsis,re=k.placeholder,Qe=k.className,Ct=k.style,Xe=k.formatter,Ie=k.bordered,Kt=k.allowClear,St=Kt===void 0?!0:Kt,fr=(0,I.useContext)(g.ZP.ConfigContext),vr=fr.getPrefixCls,dt=vr("pro-core-field-label"),Ot=(0,O.YB)(),Dt=(0,I.useRef)(null),zt=(0,I.useRef)(null);(0,I.useImperativeHandle)(de,function(){return{labelRef:zt,clearRef:Dt}});var K=function(Ce){return Xe?Xe(Ce):Array.isArray(Ce)?Ce.join(","):Ce},B=function(Ce,m){if(m!=null&&m!==""&&(!Array.isArray(m)||m.length)){var x,p,L=Ce?(0,c.jsxs)("span",{onClick:ve,className:"".concat(dt,"-text"),children:[Ce,": "]}):"",X=K(m);if(!we)return(0,c.jsxs)("span",{style:{display:"inline-flex",alignItems:"center"},children:[L,K(m)]});var H=41,Ae=function(){var me=Array.isArray(m)&&m.length>1,ut=Ot.getMessage("form.lightFilter.itemUnit","\u9879");return typeof X=="string"&&X.length>H&&me?"...".concat(m.length).concat(ut):""},Re=Ae();return(0,c.jsxs)("span",{title:typeof X=="string"?X:void 0,style:{display:"inline-flex",alignItems:"center"},children:[L,(0,c.jsx)("span",{style:{paddingLeft:4},children:typeof X=="string"?X==null||(x=X.toString())===null||x===void 0||(p=x.substr)===null||p===void 0?void 0:p.call(x,0,H):X}),Re]})}return Ce||re};return(0,c.jsxs)("span",{className:S()(dt,"".concat(dt,"-").concat(Be),(ae={},(0,h.Z)(ae,"".concat(dt,"-active"),!!G||G===0),(0,h.Z)(ae,"".concat(dt,"-disabled"),le),(0,h.Z)(ae,"".concat(dt,"-bordered"),Ie),(0,h.Z)(ae,"".concat(dt,"-allow-clear"),St),ae),Qe),style:Ct,ref:zt,children:[B(te,G),(G||G===0)&&St&&(0,c.jsx)(i.Z,{role:"button",title:"\u6E05\u9664",className:S()("".concat(dt,"-icon"),"".concat(dt,"-close")),onClick:function(Ce){ee&&!le&&ee(),Ce.stopPropagation()},ref:Dt}),(0,c.jsx)(u.Z,{className:S()("".concat(dt,"-icon"),"".concat(dt,"-arrow"))})]})};R.Z=I.forwardRef(l)},1643:function(E,R,n){"use strict";n.d(R,{Z:function(){return de}});var h=n(28991),b=n(59250),g=n(13013),c=n(84305),i=n(39559),u=n(85893),O=n(67294),y=n(57663),S=n(71577),I=n(78775),$=n(93562),A=function(te){var ee=(0,I.YB)(),G=te.onClear,Ve=te.onConfirm,Be=te.disabled,le=te.footerRender,ve=(0,O.useContext)(i.ZP.ConfigContext),we=ve.getPrefixCls,re=we("pro-core-dropdown-footer"),Qe=[(0,u.jsx)(S.Z,{style:{visibility:G?"visible":"hidden"},type:"link",size:"small",disabled:Be,onClick:function(Ie){G&&G(Ie),Ie.stopPropagation()},children:ee.getMessage("form.lightFilter.clear","\u6E05\u9664")},"clear"),(0,u.jsx)(S.Z,{"data-type":"confirm",type:"primary",size:"small",onClick:Ve,disabled:Be,children:ee.getMessage("form.lightFilter.confirm","\u786E\u8BA4")},"confirm")];if(le===!1||(le==null?void 0:le(Ve,G))===!1)return null;var Ct=(le==null?void 0:le(Ve,G))||Qe;return(0,u.jsx)("div",{className:re,onClick:function(Ie){return Ie.target.getAttribute("data-type")!=="confirm"&&Ie.stopPropagation()},children:Ct})},l=A,T=n(28152),k=function(te){var ee=te.children,G=te.label,Ve=te.footer,Be=te.disabled,le=te.onVisibleChange,ve=te.visible,we=te.footerRender,re=te.placement,Qe=(0,O.useContext)(i.ZP.ConfigContext),Ct=Qe.getPrefixCls,Xe=Ct("pro-core-field-dropdown");return(0,u.jsx)(g.Z,{disabled:Be,placement:re,trigger:["click"],visible:ve,onVisibleChange:le,overlay:(0,u.jsxs)("div",{className:"".concat(Xe,"-overlay"),children:[(0,u.jsx)("div",{className:"".concat(Xe,"-content"),children:ee}),Ve&&(0,u.jsx)(l,(0,h.Z)({disabled:Be,footerRender:we},Ve))]}),children:(0,u.jsx)("span",{className:"".concat(Xe,"-label"),children:G})})},de=k},53621:function(E,R,n){"use strict";var h=n(28991),b=n(22385),g=n(45777),c=n(96156),i=n(84305),u=n(39559),O=n(85893),y=n(68628),S=n(94184),I=n.n(S),$=n(67294),A=n(47369),l=n.n(A),T=function(de){var ae=de.label,te=de.tooltip,ee=de.ellipsis,G=de.subTitle,Ve=(0,$.useContext)(u.ZP.ConfigContext),Be=Ve.getPrefixCls;if(!te&&!G)return(0,O.jsx)(O.Fragment,{children:ae});var le=Be("pro-core-label-tip"),ve=typeof te=="string"||$.isValidElement(te)?{title:te}:te,we=(ve==null?void 0:ve.icon)||(0,O.jsx)(y.Z,{});return(0,O.jsxs)("div",{className:le,onMouseDown:function(Qe){return Qe.stopPropagation()},onMouseLeave:function(Qe){return Qe.stopPropagation()},onMouseMove:function(Qe){return Qe.stopPropagation()},children:[(0,O.jsx)("div",{className:I()("".concat(le,"-title"),(0,c.Z)({},"".concat(le,"-title-ellipsis"),ee)),children:ae}),G&&(0,O.jsx)("div",{className:"".concat(le,"-subtitle"),children:G}),te&&(0,O.jsx)(g.Z,(0,h.Z)((0,h.Z)({},ve),{},{children:(0,O.jsx)("span",{className:"".concat(le,"-icon"),children:we})}))]})};R.Z=$.memo(T)},41036:function(E,R,n){"use strict";var h=n(67294),b=h.createContext({});R.Z=b},23312:function(E,R,n){"use strict";n.d(R,{Cl:function(){return u}});var h=n(90484),b=n(30381),g=n.n(b),c=n(88306),i=n(74763),u={time:"HH:mm:ss",timeRange:"HH:mm:ss",date:"YYYY-MM-DD",dateWeek:"YYYY-wo",dateMonth:"YYYY-MM",dateQuarter:"YYYY-\\QQ",dateYear:"YYYY",dateRange:"YYYY-MM-DD",dateTime:"YYYY-MM-DD HH:mm:ss",dateTimeRange:"YYYY-MM-DD HH:mm:ss"};function O($){return Object.prototype.toString.call($)==="[object Object]"}function y($){if(O($)===!1)return!1;var A=$.constructor;if(A===void 0)return!0;var l=A.prototype;return!(O(l)===!1||l.hasOwnProperty("isPrototypeOf")===!1)}var S=function(A,l,T){if(!l)return A;if(g().isMoment(A)){if(l==="number")return A.valueOf();if(l==="string")return A.format(u[T]||"YYYY-MM-DD HH:mm:ss");if(typeof l=="string"&&l!=="string")return A.format(l);if(typeof l=="function")return l(A,T)}return A},I=function $(A,l,T,k,de){var ae={};return typeof window=="undefined"||(0,h.Z)(A)!=="object"||(0,i.Z)(A)||A instanceof Blob||Array.isArray(A)?A:(Object.keys(A).forEach(function(te){var ee=de?[de,te].flat(1):[te],G=(0,c.Z)(T,ee)||"text",Ve="text",Be;typeof G=="string"?Ve=G:G&&(Ve=G.valueType,Be=G.dateFormat);var le=A[te];if(!((0,i.Z)(le)&&k)){if(y(le)&&!Array.isArray(le)&&!g().isMoment(le)){ae[te]=$(le,l,T,k,[te]);return}if(Array.isArray(le)){ae[te]=le.map(function(ve,we){return g().isMoment(ve)?S(ve,Be||l,Ve):$(ve,l,T,k,[te,"".concat(we)])});return}ae[te]=S(le,Be||l,Ve)}}),ae)};R.ZP=I},27068:function(E,R,n){"use strict";n.d(R,{Au:function(){return S}});var h=n(55507),b=n(92137),g=n(67294),c=n(60249),i=n(10178),u=function($,A,l){return(0,c.Z)($,A,l)};function O(I,$){var A=(0,g.useRef)();return u(I,A.current,$)||(A.current=I),A.current}function y(I,$,A){(0,g.useEffect)(I,O($||[],A))}function S(I,$,A,l){var T=(0,i.Z)((0,b.Z)((0,h.Z)().mark(function k(){return(0,h.Z)().wrap(function(ae){for(;;)switch(ae.prev=ae.next){case 0:I();case 1:case"end":return ae.stop()}},k)})),l||16);(0,g.useEffect)(function(){T.run()},O($||[],A))}R.ZP=y},51804:function(E,R,n){"use strict";var h=n(67294),b=function(c){var i=(0,h.useRef)(c);return i.current=c,i};R.Z=b},26369:function(E,R,n){"use strict";var h=n(67294),b=function(c){var i=(0,h.useRef)();return(0,h.useEffect)(function(){i.current=c}),i.current};R.Z=b},60249:function(E,R,n){"use strict";var h=n(11965),b=n(90484);function g(c,i,u,O){if(c===i)return!0;if(c&&i&&(0,b.Z)(c)==="object"&&(0,b.Z)(i)==="object"){if(c.constructor!==i.constructor)return!1;var y,S,I;if(Array.isArray(c)){if(y=c.length,y!=i.length)return!1;for(S=y;S--!=0;)if(!g(c[S],i[S],u,O))return!1;return!0}if(c instanceof Map&&i instanceof Map){if(c.size!==i.size)return!1;var $=(0,h.Z)(c.entries()),A;try{for($.s();!(A=$.n()).done;)if(S=A.value,!i.has(S[0]))return!1}catch(te){$.e(te)}finally{$.f()}var l=(0,h.Z)(c.entries()),T;try{for(l.s();!(T=l.n()).done;)if(S=T.value,!g(S[1],i.get(S[0]),u,O))return!1}catch(te){l.e(te)}finally{l.f()}return!0}if(c instanceof Set&&i instanceof Set){if(c.size!==i.size)return!1;var k=(0,h.Z)(c.entries()),de;try{for(k.s();!(de=k.n()).done;)if(S=de.value,!i.has(S[0]))return!1}catch(te){k.e(te)}finally{k.f()}return!0}if(ArrayBuffer.isView(c)&&ArrayBuffer.isView(i)){if(y=c.length,y!=i.length)return!1;for(S=y;S--!=0;)if(c[S]!==i[S])return!1;return!0}if(c.constructor===RegExp)return c.source===i.source&&c.flags===i.flags;if(c.valueOf!==Object.prototype.valueOf&&c.valueOf)return c.valueOf()===i.valueOf();if(c.toString!==Object.prototype.toString&&c.toString)return c.toString()===i.toString();if(I=Object.keys(c),y=I.length,y!==Object.keys(i).length)return!1;for(S=y;S--!=0;)if(!Object.prototype.hasOwnProperty.call(i,I[S]))return!1;for(S=y;S--!=0;){var ae=I[S];if(!(u==null?void 0:u.includes(ae))&&!(ae==="_owner"&&c.$$typeof)&&!g(c[ae],i[ae],u,O))return O&&console.log(ae),!1}return!0}return c!==c&&i!==i}R.Z=g},74763:function(E,R){"use strict";var n=function(b){return b==null};R.Z=n},92210:function(E,R,n){"use strict";n.d(R,{T:function(){return g}});var h=n(28991),b=n(90484),g=function(){for(var i={},u=arguments.length,O=new Array(u),y=0;y0&&arguments[0]!==void 0?arguments[0]:21;if(typeof window=="undefined"||!window.crypto)return(h+=1).toFixed(0);for(var u="",O=crypto.getRandomValues(new Uint8Array(i));i--;){var y=63&O[i];u+=y<36?y.toString(36):y<62?(y-26).toString(36).toUpperCase():y<63?"_":"-"}return u},g=function(){return typeof window=="undefined"?b():window.crypto&&window.crypto.randomUUID&&typeof crypto.randomUUID=="function"?crypto.randomUUID():b()}},22270:function(E,R,n){"use strict";n.d(R,{h:function(){return h}});function h(b){if(typeof b=="function"){for(var g=arguments.length,c=new Array(g>1?g-1:0),i=1;i1?u[y-1]:void 0,I=y>2?u[2]:void 0;for(S=c.length>3&&typeof S=="function"?(y--,S):void 0,I&&b(u[0],u[1],I)&&(S=y<3?void 0:S,y=1),i=Object(i);++O0){if(++c>=R)return arguments[0]}else c=0;return g.apply(void 0,arguments)}}E.exports=b},55514:function(E,R,n){var h=n(24523),b=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,g=/\\(\\)?/g,c=h(function(i){var u=[];return i.charCodeAt(0)===46&&u.push(""),i.replace(b,function(O,y,S,I){u.push(S?I.replace(g,"$1"):y||O)}),u});E.exports=c},40327:function(E,R,n){var h=n(33448),b=1/0;function g(c){if(typeof c=="string"||h(c))return c;var i=c+"";return i=="0"&&1/c==-b?"-0":i}E.exports=g},50361:function(E,R,n){var h=n(85990),b=1,g=4;function c(i){return h(i,b|g)}E.exports=c},75703:function(E){function R(n){return function(){return n}}E.exports=R},66073:function(E,R,n){E.exports=n(84486)},84486:function(E,R,n){var h=n(77412),b=n(89881),g=n(54290),c=n(1469);function i(u,O){var y=c(u)?h:b;return y(u,g(O))}E.exports=i},2525:function(E,R,n){var h=n(47816),b=n(54290);function g(c,i){return c&&h(c,b(i))}E.exports=g},27361:function(E,R,n){var h=n(97786);function b(g,c,i){var u=g==null?void 0:h(g,c);return u===void 0?i:u}E.exports=b},79095:function(E,R,n){var h=n(13),b=n(222);function g(c,i){return c!=null&&b(c,i,h)}E.exports=g},6557:function(E){function R(n){return n}E.exports=R},29246:function(E,R,n){var h=n(98612),b=n(37005);function g(c){return b(c)&&h(c)}E.exports=g},56688:function(E,R,n){var h=n(25588),b=n(7518),g=n(31167),c=g&&g.isMap,i=c?b(c):h;E.exports=i},68630:function(E,R,n){var h=n(44239),b=n(85924),g=n(37005),c="[object Object]",i=Function.prototype,u=Object.prototype,O=i.toString,y=u.hasOwnProperty,S=O.call(Object);function I($){if(!g($)||h($)!=c)return!1;var A=b($);if(A===null)return!0;var l=y.call(A,"constructor")&&A.constructor;return typeof l=="function"&&l instanceof l&&O.call(l)==S}E.exports=I},72928:function(E,R,n){var h=n(29221),b=n(7518),g=n(31167),c=g&&g.isSet,i=c?b(c):h;E.exports=i},47037:function(E,R,n){var h=n(44239),b=n(1469),g=n(37005),c="[object String]";function i(u){return typeof u=="string"||!b(u)&&g(u)&&h(u)==c}E.exports=i},81704:function(E,R,n){var h=n(14636),b=n(35014),g=n(98612);function c(i){return g(i)?h(i,!0):b(i)}E.exports=c},35161:function(E,R,n){var h=n(29932),b=n(67206),g=n(69199),c=n(1469);function i(u,O){var y=c(u)?h:g;return y(u,b(O,3))}E.exports=i},15644:function(E,R,n){var h=n(83369),b="Expected a function";function g(c,i){if(typeof c!="function"||i!=null&&typeof i!="function")throw new TypeError(b);var u=function(){var O=arguments,y=i?i.apply(this,O):O[0],S=u.cache;if(S.has(y))return S.get(y);var I=c.apply(this,O);return u.cache=S.set(y,I)||S,I};return u.cache=new(g.Cache||h),u}g.Cache=h,E.exports=g},82492:function(E,R,n){var h=n(42980),b=n(21463),g=b(function(c,i,u){h(c,i,u)});E.exports=g},39601:function(E,R,n){var h=n(40371),b=n(79152),g=n(15403),c=n(40327);function i(u){return g(u)?h(c(u)):b(u)}E.exports=i},23493:function(E,R,n){var h=n(23279),b=n(13218),g="Expected a function";function c(i,u,O){var y=!0,S=!0;if(typeof i!="function")throw new TypeError(g);return b(O)&&(y="leading"in O?!!O.leading:y,S="trailing"in O?!!O.trailing:S),h(i,u,{leading:y,maxWait:u,trailing:S})}E.exports=c},59881:function(E,R,n){var h=n(98363),b=n(81704);function g(c){return h(c,b(c))}E.exports=g},79833:function(E,R,n){var h=n(80531);function b(g){return g==null?"":h(g)}E.exports=b},24754:function(E,R,n){"use strict";Object.defineProperty(R,"__esModule",{value:!0}),R.autoprefix=void 0;var h=n(2525),b=c(h),g=Object.assign||function(O){for(var y=1;y1&&arguments[1]!==void 0?arguments[1]:"span";return function(A){O(l,A);function l(){var T,k,de,ae;i(this,l);for(var te=arguments.length,ee=Array(te),G=0;G1&&arguments[1]!==void 0?arguments[1]:"span";return function(A){O(l,A);function l(){var T,k,de,ae;i(this,l);for(var te=arguments.length,ee=Array(te),G=0;G0&&arguments[0]!==void 0?arguments[0]:[],l=[];return(0,y.default)(A,function(T){Array.isArray(T)?$(T).map(function(k){return l.push(k)}):(0,u.default)(T)?(0,c.default)(T,function(k,de){k===!0&&l.push(de),l.push(de+"-"+k)}):(0,b.default)(T)&&l.push(T)}),l};R.default=I},79941:function(E,R,n){"use strict";var h;h={value:!0},h=h=h=h=h=void 0;var b=n(14147),g=T(b),c=n(18556),i=T(c),u=n(24754),O=T(u),y=n(91765),S=T(y),I=n(36002),$=T(I),A=n(57742),l=T(A);function T(de){return de&&de.__esModule?de:{default:de}}h=S.default,h=S.default,h=$.default,h=l.default;var k=h=function(ae){for(var te=arguments.length,ee=Array(te>1?te-1:0),G=1;G1&&arguments[1]!==void 0?arguments[1]:!0;c[O]=y};return b===0&&i("first-child"),b===g-1&&i("last-child"),(b===0||b%2==0)&&i("even"),Math.abs(b%2)===1&&i("odd"),i("nth-child",b),c};R.default=n},18556:function(E,R,n){"use strict";Object.defineProperty(R,"__esModule",{value:!0}),R.mergeClasses=void 0;var h=n(2525),b=u(h),g=n(50361),c=u(g),i=Object.assign||function(y){for(var S=1;S1&&arguments[1]!==void 0?arguments[1]:[],$=S.default&&(0,c.default)(S.default)||{};return I.map(function(A){var l=S[A];return l&&(0,b.default)(l,function(T,k){$[k]||($[k]={}),$[k]=i({},$[k],l[k])}),A}),$};R.default=O},21997:function(E,R,n){"use strict";n.d(R,{Z:function(){return c}});function h(m){return h=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(x){return typeof x}:function(x){return x&&typeof Symbol=="function"&&x.constructor===Symbol&&x!==Symbol.prototype?"symbol":typeof x},h(m)}var b=/^\s+/,g=/\s+$/;function c(m,x){if(m=m||"",x=x||{},m instanceof c)return m;if(!(this instanceof c))return new c(m,x);var p=i(m);this._originalInput=m,this._r=p.r,this._g=p.g,this._b=p.b,this._a=p.a,this._roundA=Math.round(100*this._a)/100,this._format=x.format||p.format,this._gradientType=x.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=p.ok}c.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var x=this.toRgb();return(x.r*299+x.g*587+x.b*114)/1e3},getLuminance:function(){var x=this.toRgb(),p,L,X,H,Ae,Re;return p=x.r/255,L=x.g/255,X=x.b/255,p<=.03928?H=p/12.92:H=Math.pow((p+.055)/1.055,2.4),L<=.03928?Ae=L/12.92:Ae=Math.pow((L+.055)/1.055,2.4),X<=.03928?Re=X/12.92:Re=Math.pow((X+.055)/1.055,2.4),.2126*H+.7152*Ae+.0722*Re},setAlpha:function(x){return this._a=Xe(x),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var x=S(this._r,this._g,this._b);return{h:x.h*360,s:x.s,v:x.v,a:this._a}},toHsvString:function(){var x=S(this._r,this._g,this._b),p=Math.round(x.h*360),L=Math.round(x.s*100),X=Math.round(x.v*100);return this._a==1?"hsv("+p+", "+L+"%, "+X+"%)":"hsva("+p+", "+L+"%, "+X+"%, "+this._roundA+")"},toHsl:function(){var x=O(this._r,this._g,this._b);return{h:x.h*360,s:x.s,l:x.l,a:this._a}},toHslString:function(){var x=O(this._r,this._g,this._b),p=Math.round(x.h*360),L=Math.round(x.s*100),X=Math.round(x.l*100);return this._a==1?"hsl("+p+", "+L+"%, "+X+"%)":"hsla("+p+", "+L+"%, "+X+"%, "+this._roundA+")"},toHex:function(x){return $(this._r,this._g,this._b,x)},toHexString:function(x){return"#"+this.toHex(x)},toHex8:function(x){return A(this._r,this._g,this._b,this._a,x)},toHex8String:function(x){return"#"+this.toHex8(x)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(Ie(this._r,255)*100)+"%",g:Math.round(Ie(this._g,255)*100)+"%",b:Math.round(Ie(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(Ie(this._r,255)*100)+"%, "+Math.round(Ie(this._g,255)*100)+"%, "+Math.round(Ie(this._b,255)*100)+"%)":"rgba("+Math.round(Ie(this._r,255)*100)+"%, "+Math.round(Ie(this._g,255)*100)+"%, "+Math.round(Ie(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:Qe[$(this._r,this._g,this._b,!0)]||!1},toFilter:function(x){var p="#"+l(this._r,this._g,this._b,this._a),L=p,X=this._gradientType?"GradientType = 1, ":"";if(x){var H=c(x);L="#"+l(H._r,H._g,H._b,H._a)}return"progid:DXImageTransform.Microsoft.gradient("+X+"startColorstr="+p+",endColorstr="+L+")"},toString:function(x){var p=!!x;x=x||this._format;var L=!1,X=this._a<1&&this._a>=0,H=!p&&X&&(x==="hex"||x==="hex6"||x==="hex3"||x==="hex4"||x==="hex8"||x==="name");return H?x==="name"&&this._a===0?this.toName():this.toRgbString():(x==="rgb"&&(L=this.toRgbString()),x==="prgb"&&(L=this.toPercentageRgbString()),(x==="hex"||x==="hex6")&&(L=this.toHexString()),x==="hex3"&&(L=this.toHexString(!0)),x==="hex4"&&(L=this.toHex8String(!0)),x==="hex8"&&(L=this.toHex8String()),x==="name"&&(L=this.toName()),x==="hsl"&&(L=this.toHslString()),x==="hsv"&&(L=this.toHsvString()),L||this.toHexString())},clone:function(){return c(this.toString())},_applyModification:function(x,p){var L=x.apply(null,[this].concat([].slice.call(p)));return this._r=L._r,this._g=L._g,this._b=L._b,this.setAlpha(L._a),this},lighten:function(){return this._applyModification(ae,arguments)},brighten:function(){return this._applyModification(te,arguments)},darken:function(){return this._applyModification(ee,arguments)},desaturate:function(){return this._applyModification(T,arguments)},saturate:function(){return this._applyModification(k,arguments)},greyscale:function(){return this._applyModification(de,arguments)},spin:function(){return this._applyModification(G,arguments)},_applyCombination:function(x,p){return x.apply(null,[this].concat([].slice.call(p)))},analogous:function(){return this._applyCombination(ve,arguments)},complement:function(){return this._applyCombination(Ve,arguments)},monochromatic:function(){return this._applyCombination(we,arguments)},splitcomplement:function(){return this._applyCombination(le,arguments)},triad:function(){return this._applyCombination(Be,[3])},tetrad:function(){return this._applyCombination(Be,[4])}},c.fromRatio=function(m,x){if(h(m)=="object"){var p={};for(var L in m)m.hasOwnProperty(L)&&(L==="a"?p[L]=m[L]:p[L]=Ot(m[L]));m=p}return c(m,x)};function i(m){var x={r:0,g:0,b:0},p=1,L=null,X=null,H=null,Ae=!1,Re=!1;return typeof m=="string"&&(m=ot(m)),h(m)=="object"&&(B(m.r)&&B(m.g)&&B(m.b)?(x=u(m.r,m.g,m.b),Ae=!0,Re=String(m.r).substr(-1)==="%"?"prgb":"rgb"):B(m.h)&&B(m.s)&&B(m.v)?(L=Ot(m.s),X=Ot(m.v),x=I(m.h,L,X),Ae=!0,Re="hsv"):B(m.h)&&B(m.s)&&B(m.l)&&(L=Ot(m.s),H=Ot(m.l),x=y(m.h,L,H),Ae=!0,Re="hsl"),m.hasOwnProperty("a")&&(p=m.a)),p=Xe(p),{ok:Ae,format:m.format||Re,r:Math.min(255,Math.max(x.r,0)),g:Math.min(255,Math.max(x.g,0)),b:Math.min(255,Math.max(x.b,0)),a:p}}function u(m,x,p){return{r:Ie(m,255)*255,g:Ie(x,255)*255,b:Ie(p,255)*255}}function O(m,x,p){m=Ie(m,255),x=Ie(x,255),p=Ie(p,255);var L=Math.max(m,x,p),X=Math.min(m,x,p),H,Ae,Re=(L+X)/2;if(L==X)H=Ae=0;else{var Ze=L-X;switch(Ae=Re>.5?Ze/(2-L-X):Ze/(L+X),L){case m:H=(x-p)/Ze+(x1&&(ge-=1),ge<1/6?me+(ut-me)*6*ge:ge<1/2?ut:ge<2/3?me+(ut-me)*(2/3-ge)*6:me}if(x===0)L=X=H=p;else{var Re=p<.5?p*(1+x):p+x-p*x,Ze=2*p-Re;L=Ae(Ze,Re,m+1/3),X=Ae(Ze,Re,m),H=Ae(Ze,Re,m-1/3)}return{r:L*255,g:X*255,b:H*255}}function S(m,x,p){m=Ie(m,255),x=Ie(x,255),p=Ie(p,255);var L=Math.max(m,x,p),X=Math.min(m,x,p),H,Ae,Re=L,Ze=L-X;if(Ae=L===0?0:Ze/L,L==X)H=0;else{switch(L){case m:H=(x-p)/Ze+(x>1)+720)%360;--x;)L.h=(L.h+X)%360,H.push(c(L));return H}function we(m,x){x=x||6;for(var p=c(m).toHsv(),L=p.h,X=p.s,H=p.v,Ae=[],Re=1/x;x--;)Ae.push(c({h:L,s:X,v:H})),H=(H+Re)%1;return Ae}c.mix=function(m,x,p){p=p===0?0:p||50;var L=c(m).toRgb(),X=c(x).toRgb(),H=p/100,Ae={r:(X.r-L.r)*H+L.r,g:(X.g-L.g)*H+L.g,b:(X.b-L.b)*H+L.b,a:(X.a-L.a)*H+L.a};return c(Ae)},c.readability=function(m,x){var p=c(m),L=c(x);return(Math.max(p.getLuminance(),L.getLuminance())+.05)/(Math.min(p.getLuminance(),L.getLuminance())+.05)},c.isReadable=function(m,x,p){var L=c.readability(m,x),X,H;switch(H=!1,X=Ce(p),X.level+X.size){case"AAsmall":case"AAAlarge":H=L>=4.5;break;case"AAlarge":H=L>=3;break;case"AAAsmall":H=L>=7;break}return H},c.mostReadable=function(m,x,p){var L=null,X=0,H,Ae,Re,Ze;p=p||{},Ae=p.includeFallbackColors,Re=p.level,Ze=p.size;for(var me=0;meX&&(X=H,L=c(x[me]));return c.isReadable(m,L,{level:Re,size:Ze})||!Ae?L:(p.includeFallbackColors=!1,c.mostReadable(m,["#fff","#000"],p))};var re=c.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},Qe=c.hexNames=Ct(re);function Ct(m){var x={};for(var p in m)m.hasOwnProperty(p)&&(x[m[p]]=p);return x}function Xe(m){return m=parseFloat(m),(isNaN(m)||m<0||m>1)&&(m=1),m}function Ie(m,x){fr(m)&&(m="100%");var p=vr(m);return m=Math.min(x,Math.max(0,parseFloat(m))),p&&(m=parseInt(m*x,10)/100),Math.abs(m-x)<1e-6?1:m%x/parseFloat(x)}function Kt(m){return Math.min(1,Math.max(0,m))}function St(m){return parseInt(m,16)}function fr(m){return typeof m=="string"&&m.indexOf(".")!=-1&&parseFloat(m)===1}function vr(m){return typeof m=="string"&&m.indexOf("%")!=-1}function dt(m){return m.length==1?"0"+m:""+m}function Ot(m){return m<=1&&(m=m*100+"%"),m}function Dt(m){return Math.round(parseFloat(m)*255).toString(16)}function zt(m){return St(m)/255}var K=function(){var m="[-\\+]?\\d+%?",x="[-\\+]?\\d*\\.\\d+%?",p="(?:"+x+")|(?:"+m+")",L="[\\s|\\(]+("+p+")[,|\\s]+("+p+")[,|\\s]+("+p+")\\s*\\)?",X="[\\s|\\(]+("+p+")[,|\\s]+("+p+")[,|\\s]+("+p+")[,|\\s]+("+p+")\\s*\\)?";return{CSS_UNIT:new RegExp(p),rgb:new RegExp("rgb"+L),rgba:new RegExp("rgba"+X),hsl:new RegExp("hsl"+L),hsla:new RegExp("hsla"+X),hsv:new RegExp("hsv"+L),hsva:new RegExp("hsva"+X),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function B(m){return!!K.CSS_UNIT.exec(m)}function ot(m){m=m.replace(b,"").replace(g,"").toLowerCase();var x=!1;if(re[m])m=re[m],x=!0;else if(m=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var p;return(p=K.rgb.exec(m))?{r:p[1],g:p[2],b:p[3]}:(p=K.rgba.exec(m))?{r:p[1],g:p[2],b:p[3],a:p[4]}:(p=K.hsl.exec(m))?{h:p[1],s:p[2],l:p[3]}:(p=K.hsla.exec(m))?{h:p[1],s:p[2],l:p[3],a:p[4]}:(p=K.hsv.exec(m))?{h:p[1],s:p[2],v:p[3]}:(p=K.hsva.exec(m))?{h:p[1],s:p[2],v:p[3],a:p[4]}:(p=K.hex8.exec(m))?{r:St(p[1]),g:St(p[2]),b:St(p[3]),a:zt(p[4]),format:x?"name":"hex8"}:(p=K.hex6.exec(m))?{r:St(p[1]),g:St(p[2]),b:St(p[3]),format:x?"name":"hex"}:(p=K.hex4.exec(m))?{r:St(p[1]+""+p[1]),g:St(p[2]+""+p[2]),b:St(p[3]+""+p[3]),a:zt(p[4]+""+p[4]),format:x?"name":"hex8"}:(p=K.hex3.exec(m))?{r:St(p[1]+""+p[1]),g:St(p[2]+""+p[2]),b:St(p[3]+""+p[3]),format:x?"name":"hex"}:!1}function Ce(m){var x,p;return m=m||{level:"AA",size:"small"},x=(m.level||"AA").toUpperCase(),p=(m.size||"small").toLowerCase(),x!=="AA"&&x!=="AAA"&&(x="AA"),p!=="small"&&p!=="large"&&(p="small"),{level:x,size:p}}}}]); + `),l.createElement("div",{style:w.white,className:"saturation-white"},l.createElement("div",{style:w.black,className:"saturation-black"}),l.createElement("div",{style:w.pointer},this.props.pointer?l.createElement(this.props.pointer,this.props):l.createElement("div",{style:w.circle}))))}}]),a}(l.PureComponent||l.Component),jo=Fo,Ao=n(23279),Do=n.n(Ao),Io=n(66073),To=n.n(Io),Kn=n(21997),fa=function(e){var a=["r","g","b","a","h","s","l","v"],r=0,o=0;return To()(a,function(s){if(e[s]&&(r+=1,isNaN(e[s])||(o+=1),s==="s"||s==="l")){var f=/^\d+%$/;f.test(e[s])&&(o+=1)}}),r===o?e:!1},pn=function(e,a){var r=e.hex?(0,Kn.Z)(e.hex):(0,Kn.Z)(e),o=r.toHsl(),s=r.toHsv(),f=r.toRgb(),d=r.toHex();o.s===0&&(o.h=a||0,s.h=a||0);var v=d==="000000"&&f.a===0;return{hsl:o,hex:v?"transparent":"#".concat(d),rgb:f,hsv:s,oldHue:e.h||a||o.h,source:e.source}},No=function(e){if(e==="transparent")return!0;var a=String(e).charAt(0)==="#"?1:0;return e.length!==4+a&&e.length<7+a&&(0,Kn.Z)(e).isValid()},zu=function(e){if(!e)return"#fff";var a=pn(e);if(a.hex==="transparent")return"rgba(0,0,0,0.4)";var r=(a.rgb.r*299+a.rgb.g*587+a.rgb.b*114)/1e3;return r>=128?"#000":"#fff"},ku={hsl:{a:1,h:0,l:.5,s:1},hex:"#ff0000",rgb:{r:255,g:0,b:0,a:1},hsv:{h:0,s:1,v:1,a:1}},Gu=function(e,a){var r=e.replace("\xB0","");return tinycolor("".concat(a," (").concat(r,")"))._ok};function un(t){return un=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},un(t)}function Yn(){return Yn=Object.assign?Object.assign.bind():function(t){for(var e=1;e-1},li=function(e){return Number(String(e).replace(/%/g,""))},ui=1,si=function(t){qo(a,t);var e=_o(a);function a(r){var o;return Xo(this,a),o=e.call(this),o.handleBlur=function(){o.state.blurValue&&o.setState({value:o.state.blurValue,blurValue:null})},o.handleChange=function(s){o.setUpdatedValue(s.target.value,s)},o.handleKeyDown=function(s){var f=li(s.target.value);if(!isNaN(f)&&ii(s.keyCode)){var d=o.getArrowOffset(),v=s.keyCode===ya?f+d:f-d;o.setUpdatedValue(v,s)}},o.handleDrag=function(s){if(o.props.dragLabel){var f=Math.round(o.props.value+s.movementX);f>=0&&f<=o.props.dragMax&&o.props.onChange&&o.props.onChange(o.getValueObjectWithLabel(f),s)}},o.handleMouseDown=function(s){o.props.dragLabel&&(s.preventDefault(),o.handleDrag(s),window.addEventListener("mousemove",o.handleDrag),window.addEventListener("mouseup",o.handleMouseUp))},o.handleMouseUp=function(){o.unbindEventListeners()},o.unbindEventListeners=function(){window.removeEventListener("mousemove",o.handleDrag),window.removeEventListener("mouseup",o.handleMouseUp)},o.state={value:String(r.value).toUpperCase(),blurValue:String(r.value).toUpperCase()},o.inputId="rc-editable-input-".concat(ui++),o}return Jo(a,[{key:"componentDidUpdate",value:function(o,s){this.props.value!==this.state.value&&(o.value!==this.props.value||s.value!==this.state.value)&&(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(o){return Go({},this.props.label,o)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||ni}},{key:"setUpdatedValue",value:function(o,s){var f=this.props.label?this.getValueObjectWithLabel(o):o;this.props.onChange&&this.props.onChange(f,s),this.setState({value:o})}},{key:"render",value:function(){var o=this,s=(0,Tt.ZP)({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return l.createElement("div",{style:s.wrap},l.createElement("input",{id:this.inputId,style:s.input,ref:function(d){return o.input=d},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?l.createElement("label",{htmlFor:this.inputId,style:s.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),a}(l.PureComponent||l.Component),yn=si;function cn(t){return cn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},cn(t)}function Gn(){return Gn=Object.assign?Object.assign.bind():function(t){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:"span";return function(r){hi(s,r);var o=mi(s);function s(){var f;ci(this,s);for(var d=arguments.length,v=new Array(d),C=0;C100&&(P.a=100),P.a/=100,a==null||a({h:o==null?void 0:o.h,s:o==null?void 0:o.s,l:o==null?void 0:o.l,a:P.a,source:"rgb"},w))};return l.createElement("div",{style:d.fields,className:"flexbox-fix"},l.createElement("div",{style:d.double},l.createElement(yn,{style:{input:d.input,label:d.label},label:"hex",value:s==null?void 0:s.replace("#",""),onChange:v})),l.createElement("div",{style:d.single},l.createElement(yn,{style:{input:d.input,label:d.label},label:"r",value:r==null?void 0:r.r,onChange:v,dragLabel:"true",dragMax:"255"})),l.createElement("div",{style:d.single},l.createElement(yn,{style:{input:d.input,label:d.label},label:"g",value:r==null?void 0:r.g,onChange:v,dragLabel:"true",dragMax:"255"})),l.createElement("div",{style:d.single},l.createElement(yn,{style:{input:d.input,label:d.label},label:"b",value:r==null?void 0:r.b,onChange:v,dragLabel:"true",dragMax:"255"})),l.createElement("div",{style:d.alpha},l.createElement(yn,{style:{input:d.input,label:d.label},label:"a",value:Math.round(((r==null?void 0:r.a)||0)*100),onChange:v,dragLabel:"true",dragMax:"100"})))},wi=Ei;function xn(t){return xn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xn(t)}function Pa(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),a.push.apply(a,r)}return a}function Sa(t){for(var e=1;ehe?oe([he,Fe]):Fe===void 0&&he===void 0&&oe(void 0)}},Q=function(ke,Fe){var he=(0,G.Z)(Y||[]);he[ke]=Fe===null?void 0:Fe,oe(he)},pe=(v==null?void 0:v.placeholder)||f,Se=(0,u.jsxs)(ct.Z.Group,{compact:!0,onBlur:fe,children:[(0,u.jsx)(en.Z,(0,i.Z)((0,i.Z)({},v),{},{placeholder:Array.isArray(pe)?pe[0]:pe,id:N!=null?N:"".concat(N,"-0"),style:{width:"calc((100% - ".concat(A,"px) / 2)")},value:Y==null?void 0:Y[0],defaultValue:F==null?void 0:F[0],onChange:function(ke){return Q(0,ke)}})),(0,u.jsx)(ct.Z,{style:{width:A,textAlign:"center",borderLeft:0,borderRight:0,pointerEvents:"none",backgroundColor:"#FFF"},placeholder:P,disabled:!0}),(0,u.jsx)(en.Z,(0,i.Z)((0,i.Z)({},v),{},{placeholder:Array.isArray(pe)?pe[1]:pe,id:N!=null?N:"".concat(N,"-1"),style:{width:"calc((100% - ".concat(A,"px) / 2)"),borderLeft:0},value:Y==null?void 0:Y[1],defaultValue:F==null?void 0:F[1],onChange:function(ke){return Q(1,ke)}}))]});return d?d(r,(0,i.Z)({mode:o},v),Se):Se}return null},Ji=l.forwardRef(Xi),qu=n(22385),qn=n(45777),Qi=function(e){var a=e.text,r=e.mode,o=e.render,s=e.renderFormItem,f=e.format,d=e.fieldProps,v=(0,O.YB)();if(r==="read"){var C=(0,u.jsx)(qn.Z,{title:Dr()(a).format((d==null?void 0:d.format)||f||"YYYY-MM-DD HH:mm:ss"),children:Dr()(a).fromNow()});return o?o(a,(0,i.Z)({mode:r},d),(0,u.jsx)(u.Fragment,{children:C})):(0,u.jsx)(u.Fragment,{children:C})}if(r==="edit"||r==="update"){var P=v.getMessage("tableForm.selectPlaceholder","\u8BF7\u9009\u62E9"),w=Pn(d.value),A=(0,u.jsx)(_r.Z,(0,i.Z)((0,i.Z)({placeholder:P,showTime:!0},d),{},{value:w}));return s?s(a,(0,i.Z)({mode:r},d),A):A}return null},qi=Qi,_u=n(12968),_i=n(6122),el=l.forwardRef(function(t,e){var a=t.text,r=t.mode,o=t.render,s=t.renderFormItem,f=t.fieldProps,d=t.placeholder,v=t.width;if(r==="read"){var C=(0,u.jsx)(_i.Z,(0,i.Z)({ref:e,width:v||32,src:a},f));return o?o(a,(0,i.Z)({mode:r},f),C):C}if(r==="edit"||r==="update"){var P=(0,u.jsx)(ct.Z,(0,i.Z)({ref:e,placeholder:d},f));return s?s(a,(0,i.Z)({mode:r},f),P):P}return null}),wa=el,es=n(76592),tl=function(e,a){var r,o=e.border,s=o===void 0?!1:o,f=e.children,d=(0,l.useContext)(Le.ZP.ConfigContext),v=d.getPrefixCls,C=v("pro-field-index-column");return(0,u.jsx)("div",{ref:a,className:we()(C,(r={},(0,ee.Z)(r,"".concat(C,"-border"),s),(0,ee.Z)(r,"top-three",f>3),r)),children:f})},Ra=l.forwardRef(tl),rl=["content","numberFormatOptions","numberPopoverRender"],nl=["text","mode","render","renderFormItem","fieldProps","proFieldKey","plain","valueEnum","placeholder","locale","customSymbol","numberFormatOptions","numberPopoverRender"],al=new Intl.NumberFormat("zh-Hans-CN",{currency:"CNY",style:"currency"}),ol={style:"currency",currency:"USD"},il={style:"currency",currency:"RUB"},ll={style:"currency",currency:"RSD"},ul={style:"currency",currency:"MYR"},sl={style:"currency",currency:"BRL"},Ma={default:al,"zh-Hans-CN":{currency:"CNY",style:"currency"},"en-US":ol,"ru-RU":il,"ms-MY":ul,"sr-RS":ll,"pt-BR":sl},Fa=function(e,a,r,o){var s=a;return typeof s=="string"&&(s=Number(s)),!s&&s!==0?"":new Intl.NumberFormat(e||"zh-Hans-CN",(0,i.Z)((0,i.Z)({},e===!1?{}:Ma[e||"zh-Hans-CN"]||Ma["zh-Hans-CN"]),{},{maximumFractionDigits:r},o)).format(s)},_n=2,cl=l.forwardRef(function(t,e){var a=t.content,r=t.numberFormatOptions,o=t.numberPopoverRender,s=(0,h.Z)(t,rl),f=(0,Ie.Z)(function(){return s.defaultValue},{value:s.value,onChange:s.onChange}),d=(0,re.Z)(f,2),v=d[0],C=d[1],P=a==null?void 0:a((0,i.Z)((0,i.Z)({},s),{},{value:v})),w={visible:P?s.visible:!1};return(0,u.jsx)(hr.Z,(0,i.Z)((0,i.Z)({placement:"topLeft"},w),{},{trigger:["focus","click"],content:P,getPopupContainer:function(M){return(M==null?void 0:M.parentElement)||document.body},children:(0,u.jsx)(en.Z,(0,i.Z)((0,i.Z)({ref:e},s),{},{value:v,onChange:C}))}))}),dl=function(e,a){var r,o,s=e.text,f=e.mode,d=e.render,v=e.renderFormItem,C=e.fieldProps,P=e.proFieldKey,w=e.plain,A=e.valueEnum,M=e.placeholder,F=e.locale,D=F===void 0?(r=C.customSymbol)!==null&&r!==void 0?r:"zh-Hans-CN":F,N=e.customSymbol,z=N===void 0?C.customSymbol:N,V=e.numberFormatOptions,Y=V===void 0?C==null?void 0:C.numberFormatOptions:V,oe=e.numberPopoverRender,ne=oe===void 0?(C==null?void 0:C.numberPopoverRender)||!1:oe,ie=(0,h.Z)(e,nl),fe=(o=C==null?void 0:C.precision)!==null&&o!==void 0?o:_n,Q=(0,O.YB)();D&&O.Go[D]&&(Q=O.Go[D]);var pe=(0,l.useMemo)(function(){if(z)return z;var Fe=Q.getMessage("moneySymbol","\uFFE5");if(!(ie.moneySymbol===!1||C.moneySymbol===!1))return Fe},[z,C.moneySymbol,Q,ie.moneySymbol]);if(f==="read"){var Se=(0,u.jsx)("span",{ref:a,children:Fa(pe?D:!1,s,fe,Y!=null?Y:C.numberFormatOptions)});return d?d(s,(0,i.Z)({mode:f},C),Se):Se}if(f==="edit"||f==="update"){var le=function(he){var ht=new RegExp("\\B(?=(\\d{".concat(3+Math.max(fe-_n,0),"})+(?!\\d))"),"g"),mt=String(he).split("."),Ye=(0,re.Z)(mt,2),ze=Ye[0],rt=Ye[1],at=ze.replace(ht,","),Ht="";return rt&&fe>0&&(Ht=".".concat(rt.slice(0,fe===void 0?_n:fe))),"".concat(at).concat(Ht)},ke=(0,u.jsx)(cl,(0,i.Z)({content:function(he){if(ne!==!1&&!!he.value){var ht=Fa(pe?D:!1,"".concat(le(he.value)),fe,(0,i.Z)((0,i.Z)({},Y),{},{notation:"compact"}));return typeof ne=="function"?ne==null?void 0:ne(he,ht):ht}},ref:a,precision:fe,formatter:function(he){return he&&pe?"".concat(pe," ").concat(le(he)):he==null?void 0:he.toString()},parser:function(he){return pe&&he?he.replace(new RegExp("\\".concat(pe,"\\s?|(,*)"),"g"),""):he},placeholder:M},(0,Qn.Z)(C,["numberFormatOptions","precision","numberPopoverRender","customSymbol","moneySymbol","visible"])));return v?v(s,(0,i.Z)({mode:f},C),ke):ke}return null},ja=l.forwardRef(dl),Aa=function(e){return e.map(function(a,r){return l.isValidElement(a)?l.cloneElement(a,(0,i.Z)({key:r},a==null?void 0:a.props)):(0,u.jsx)(l.Fragment,{children:a},r)})},fl=function(e,a){var r=e.text,o=e.mode,s=e.render,f=e.fieldProps,d=(0,l.useContext)(Le.ZP.ConfigContext),v=d.getPrefixCls,C=v("pro-field-option");if((0,l.useImperativeHandle)(a,function(){return{}}),s){var P=s(r,(0,i.Z)({mode:o},f),(0,u.jsx)(u.Fragment,{}));return!P||(P==null?void 0:P.length)<1||!Array.isArray(P)?null:(0,u.jsx)(rr.Z,{size:16,className:C,children:Aa(P)})}return!r||!Array.isArray(r)?l.isValidElement(r)?r:null:(0,u.jsx)(rr.Z,{size:16,className:C,children:Aa(r)})},vl=l.forwardRef(fl),hl=n(95357),ml=n(88633),pl=["text","mode","render","renderFormItem","fieldProps","proFieldKey"],gl=function(e,a){var r=e.text,o=e.mode,s=e.render,f=e.renderFormItem,d=e.fieldProps,v=e.proFieldKey,C=(0,h.Z)(e,pl),P=(0,O.YB)(),w=(0,Ie.Z)(function(){return C.visible||!1},{value:C.visible,onChange:C.onVisible}),A=(0,re.Z)(w,2),M=A[0],F=A[1];if(o==="read"){var D=(0,u.jsx)(u.Fragment,{children:"-"});return r&&(D=(0,u.jsxs)(rr.Z,{children:[(0,u.jsx)("span",{ref:a,children:M?r:"\uFF0A \uFF0A \uFF0A \uFF0A \uFF0A"}),(0,u.jsx)("a",{onClick:function(){return F(!M)},children:M?(0,u.jsx)(hl.Z,{}):(0,u.jsx)(ml.Z,{})})]})),s?s(r,(0,i.Z)({mode:o},d),D):D}if(o==="edit"||o==="update"){var N=(0,u.jsx)(ct.Z.Password,(0,i.Z)({placeholder:P.getMessage("tableForm.inputPlaceholder","\u8BF7\u8F93\u5165"),ref:a},d));return f?f(r,(0,i.Z)({mode:o},d),N):N}return null},yl=l.forwardRef(gl),bl=n(49323),Nn=n.n(bl);function xl(t){return t===0?null:t>0?"+":"-"}function Cl(t){return t===0?"#595959":t>0?"#ff4d4f":"#52c41a"}function Pl(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;return e>=0?t==null?void 0:t.toFixed(e):t}var Sl=function(e,a){var r=e.text,o=e.prefix,s=e.precision,f=e.suffix,d=f===void 0?"%":f,v=e.mode,C=e.showColor,P=C===void 0?!1:C,w=e.render,A=e.renderFormItem,M=e.fieldProps,F=e.placeholder,D=e.showSymbol,N=(0,l.useMemo)(function(){return typeof r=="string"&&r.includes("%")?Nn()(r.replace("%","")):Nn()(r)},[r]),z=(0,l.useMemo)(function(){return typeof D=="function"?D==null?void 0:D(r):D},[D,r]);if(v==="read"){var V=P?{color:Cl(N)}:{},Y=(0,u.jsxs)("span",{style:V,ref:a,children:[o&&(0,u.jsx)("span",{children:o}),z&&(0,u.jsxs)(l.Fragment,{children:[xl(N)," "]}),Pl(Math.abs(N),s),d&&d]});return w?w(r,(0,i.Z)((0,i.Z)({mode:v},M),{},{prefix:o,precision:s,showSymbol:z,suffix:d}),Y):Y}if(v==="edit"||v==="update"){var oe=(0,u.jsx)(en.Z,(0,i.Z)({ref:a,formatter:function(ie){return ie&&o?"".concat(o," ").concat(ie).replace(/\B(?=(\d{3})+(?!\d)$)/g,","):ie},parser:function(ie){return ie?ie.replace(/.*\s|,/g,""):""},placeholder:F},M));return A?A(r,(0,i.Z)({mode:v},M),oe):oe}return null},Da=l.forwardRef(Sl),ts=n(34669),Zl=n(54458);function Ol(t){return t===100?"success":t<0?"exception":t<100?"active":"normal"}var El=function(e,a){var r=e.text,o=e.mode,s=e.render,f=e.plain,d=e.renderFormItem,v=e.fieldProps,C=e.placeholder,P=(0,l.useMemo)(function(){return typeof r=="string"&&r.includes("%")?Nn()(r.replace("%","")):Nn()(r)},[r]);if(o==="read"){var w=(0,u.jsx)(Zl.Z,(0,i.Z)({ref:a,size:"small",style:{minWidth:100,maxWidth:320},percent:P,steps:f?10:void 0,status:Ol(P)},v));return s?s(P,(0,i.Z)({mode:o},v),w):w}if(o==="edit"||o==="update"){var A=(0,u.jsx)(en.Z,(0,i.Z)({ref:a,placeholder:C},v));return d?d(r,(0,i.Z)({mode:o},v),A):A}return null},Ia=l.forwardRef(El),rs=n(88983),ea=n(47933),ns=n(25702),wl=["radioType","renderFormItem","mode","render"],Rl=function(e,a){var r=e.radioType,o=e.renderFormItem,s=e.mode,f=e.render,d=(0,h.Z)(e,wl),v=(0,l.useContext)(Le.ZP.ConfigContext),C=v.getPrefixCls,P=C("pro-field-radio"),w=(0,tt.aK)(d),A=(0,re.Z)(w,3),M=A[0],F=A[1],D=A[2],N=(0,l.useRef)();if((0,l.useImperativeHandle)(a,function(){return(0,i.Z)((0,i.Z)({},N.current||{}),{},{fetchData:function(){return D()}})}),M)return(0,u.jsx)(bt.Z,{size:"small"});if(s==="read"){var z=(F==null?void 0:F.length)?F==null?void 0:F.reduce(function(ie,fe){var Q;return(0,i.Z)((0,i.Z)({},ie),{},(0,ee.Z)({},(Q=fe.value)!==null&&Q!==void 0?Q:"",fe.label))},{}):void 0,V=(0,u.jsx)(u.Fragment,{children:(0,tt.MP)(d.text,(0,tt.L9)(d.valueEnum||z))});return f?f(d.text,(0,i.Z)({mode:s},d.fieldProps),V)||null:V}if(s==="edit"){var Y,oe=r==="button"?ea.ZP.Button:ea.ZP,ne=(0,u.jsx)(ea.ZP.Group,(0,i.Z)((0,i.Z)({ref:N},d.fieldProps),{},{className:we()((Y=d.fieldProps)===null||Y===void 0?void 0:Y.className,"".concat(P,"-").concat(d.fieldProps.layout||"horizontal")),options:void 0,children:F==null?void 0:F.map(function(ie){return(0,u.jsx)(oe,(0,i.Z)((0,i.Z)({},ie),{},{children:ie.label}),ie.value)})}));return o?o(d.text,(0,i.Z)({mode:s},d.fieldProps),ne)||null:ne}return null},Ta=l.forwardRef(Rl),Ml=function(e,a){var r=e.text,o=e.mode,s=e.format,f=e.render,d=e.renderFormItem,v=e.plain,C=e.showTime,P=e.fieldProps,w=(0,O.YB)(),A=Array.isArray(r)?r:[],M=(0,re.Z)(A,2),F=M[0],D=M[1],N=(0,l.useCallback)(function(ie){if(typeof(P==null?void 0:P.format)=="function"){var fe;return P==null||(fe=P.format)===null||fe===void 0?void 0:fe.call(P,ie)}return(P==null?void 0:P.format)||s||"YYYY-MM-DD"},[P,s]),z=F?Dr()(F).format(N(Dr()(F))):"",V=D?Dr()(D).format(N(Dr()(D))):"";if(o==="read"){var Y=(0,u.jsxs)("div",{ref:a,children:[(0,u.jsx)("div",{children:z||"-"}),(0,u.jsx)("div",{children:V||"-"})]});return f?f(r,(0,i.Z)({mode:o},P),(0,u.jsx)("span",{children:Y})):Y}if(o==="edit"||o==="update"){var oe=Pn(P.value),ne=(0,u.jsx)(_r.Z.RangePicker,(0,i.Z)((0,i.Z)({ref:a,format:s,showTime:C,placeholder:[w.getMessage("tableForm.selectPlaceholder","\u8BF7\u9009\u62E9"),w.getMessage("tableForm.selectPlaceholder","\u8BF7\u9009\u62E9")],bordered:v===void 0?!0:!v},P),{},{value:oe}));return d?d(r,(0,i.Z)({mode:o},P),ne):ne}return null},Na=l.forwardRef(Ml),as=n(44408),Fl=n(51120),La=n(6610),Ba=n(5991),$a=n(10379),Ha=n(44144),jl=n(34203);function Al(t){var e=t.pageXOffset,a="scrollLeft";if(typeof e!="number"){var r=t.document;e=r.documentElement[a],typeof e!="number"&&(e=r.body[a])}return e}function Dl(t){var e,a,r=t.ownerDocument,o=r.body,s=r&&r.documentElement,f=t.getBoundingClientRect();return e=f.left,a=f.top,e-=s.clientLeft||o.clientLeft||0,a-=s.clientTop||o.clientTop||0,{left:e,top:a}}function Il(t){var e=Dl(t),a=t.ownerDocument,r=a.defaultView||a.parentWindow;return e.left+=Al(r),e.left}var Tl=function(t){(0,$a.Z)(a,t);var e=(0,Ha.Z)(a);function a(){var r;(0,La.Z)(this,a);for(var o=arguments.length,s=new Array(o),f=0;f=P&&dA?"true":"false","aria-posinset":A+1,"aria-setsize":M,tabIndex:v?-1:0},l.createElement("div",{className:"".concat(C,"-first")},D),l.createElement("div",{className:"".concat(C,"-second")},D)));return w&&(N=w(N,this.props)),N}}]),a}(l.Component);function Va(){}var Wa=function(t){(0,$a.Z)(a,t);var e=(0,Ha.Z)(a);function a(r){var o;(0,La.Z)(this,a),o=e.call(this,r),o.stars=void 0,o.rate=void 0,o.onHover=function(f,d){var v=o.props.onHoverChange,C=o.getStarValue(d,f.pageX),P=o.state.cleanedValue;C!==P&&o.setState({hoverValue:C,cleanedValue:null}),v(C)},o.onMouseLeave=function(){var f=o.props.onHoverChange;o.setState({hoverValue:void 0,cleanedValue:null}),f(void 0)},o.onClick=function(f,d){var v=o.props.allowClear,C=o.state.value,P=o.getStarValue(d,f.pageX),w=!1;v&&(w=P===C),o.onMouseLeave(),o.changeValue(w?0:P),o.setState({cleanedValue:w?P:null})},o.onFocus=function(){var f=o.props.onFocus;o.setState({focused:!0}),f&&f()},o.onBlur=function(){var f=o.props.onBlur;o.setState({focused:!1}),f&&f()},o.onKeyDown=function(f){var d=f.keyCode,v=o.props,C=v.count,P=v.allowHalf,w=v.onKeyDown,A=v.direction,M=A==="rtl",F=o.state.value;d===je.Z.RIGHT&&F0&&!M||d===je.Z.RIGHT&&F>0&&M?(P?F-=.5:F-=1,o.changeValue(F),f.preventDefault()):d===je.Z.LEFT&&FM/2||!C&&s-A0&&(e="".concat(o,"\u5206\u949F").concat(e)),r>0&&(e="".concat(r,"\u5C0F\u65F6").concat(e)),a>0&&(e="".concat(a,"\u5929").concat(e)),e}var Ul=function(e,a){var r=e.text,o=e.mode,s=e.render,f=e.renderFormItem,d=e.fieldProps,v=e.placeholder;if(o==="read"){var C=Wl(Number(r)),P=(0,u.jsx)("span",{ref:a,children:C});return s?s(r,(0,i.Z)({mode:o},d),P):P}if(o==="edit"||o==="update"){var w=(0,u.jsx)(en.Z,(0,i.Z)({ref:a,min:0,style:{width:"100%"},placeholder:v},d));return f?f(r,(0,i.Z)({mode:o},d),w):w}return null},Kl=l.forwardRef(Ul),os=n(34294),Yl=n(96774),zl=n.n(Yl),kl=l.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0}),tn=kl;function ta(t,e,a){return(t-e)/(a-e)}function ra(t,e,a,r){var o=ta(e,a,r),s={};switch(t){case"rtl":s.right="".concat(o*100,"%"),s.transform="translateX(50%)";break;case"btt":s.bottom="".concat(o*100,"%"),s.transform="translateY(50%)";break;case"ttb":s.top="".concat(o*100,"%"),s.transform="translateY(-50%)";break;default:s.left="".concat(o*100,"%"),s.transform="translateX(-50%)";break}return s}function fn(t,e){return Array.isArray(t)?t[e]:t}var Gl=["prefixCls","value","valueIndex","onStartMove","style","render","dragging","onOffsetChange"],Xl=l.forwardRef(function(t,e){var a,r,o=t.prefixCls,s=t.value,f=t.valueIndex,d=t.onStartMove,v=t.style,C=t.render,P=t.dragging,w=t.onOffsetChange,A=(0,h.Z)(t,Gl),M=l.useContext(tn),F=M.min,D=M.max,N=M.direction,z=M.disabled,V=M.range,Y=M.tabIndex,oe=M.ariaLabelForHandle,ne=M.ariaLabelledByForHandle,ie=M.ariaValueTextFormatterForHandle,fe="".concat(o,"-handle"),Q=function(Fe){z||d(Fe,f)},pe=function(Fe){if(!z){var he=null;switch(Fe.which||Fe.keyCode){case je.Z.LEFT:he=N==="ltr"||N==="btt"?-1:1;break;case je.Z.RIGHT:he=N==="ltr"||N==="btt"?1:-1;break;case je.Z.UP:he=N!=="ttb"?1:-1;break;case je.Z.DOWN:he=N!=="ttb"?-1:1;break;case je.Z.HOME:he="min";break;case je.Z.END:he="max";break;case je.Z.PAGE_UP:he=2;break;case je.Z.PAGE_DOWN:he=-2;break}he!==null&&(Fe.preventDefault(),w(he,f))}},Se=ra(N,s,F,D),le=l.createElement("div",(0,te.Z)({ref:e,className:we()(fe,(a={},(0,ee.Z)(a,"".concat(fe,"-").concat(f+1),V),(0,ee.Z)(a,"".concat(fe,"-dragging"),P),a)),style:(0,i.Z)((0,i.Z)({},Se),v),onMouseDown:Q,onTouchStart:Q,onKeyDown:pe,tabIndex:z?null:fn(Y,f),role:"slider","aria-valuemin":F,"aria-valuemax":D,"aria-valuenow":s,"aria-disabled":z,"aria-label":fn(oe,f),"aria-labelledby":fn(ne,f),"aria-valuetext":(r=fn(ie,f))===null||r===void 0?void 0:r(s)},A));return C&&(le=C(le,{index:f,prefixCls:o,value:s,dragging:P})),le}),Jl=Xl,Ql=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","draggingIndex"],ql=l.forwardRef(function(t,e){var a=t.prefixCls,r=t.style,o=t.onStartMove,s=t.onOffsetChange,f=t.values,d=t.handleRender,v=t.draggingIndex,C=(0,h.Z)(t,Ql),P=l.useRef({});return l.useImperativeHandle(e,function(){return{focus:function(A){var M;(M=P.current[A])===null||M===void 0||M.focus()}}}),l.createElement(l.Fragment,null,f.map(function(w,A){return l.createElement(Jl,(0,te.Z)({ref:function(F){F?P.current[A]=F:delete P.current[A]},dragging:v===A,prefixCls:a,style:fn(r,A),key:A,value:w,valueIndex:A,onStartMove:o,onOffsetChange:s,render:d},C))}))}),_l=ql;function Ka(t){var e="touches"in t?t.touches[0]:t;return{pageX:e.pageX,pageY:e.pageY}}function eu(t,e,a,r,o,s,f,d,v){var C=l.useState(null),P=(0,re.Z)(C,2),w=P[0],A=P[1],M=l.useState(-1),F=(0,re.Z)(M,2),D=F[0],N=F[1],z=l.useState(a),V=(0,re.Z)(z,2),Y=V[0],oe=V[1],ne=l.useState(a),ie=(0,re.Z)(ne,2),fe=ie[0],Q=ie[1],pe=l.useRef(null),Se=l.useRef(null);l.useEffect(function(){D===-1&&oe(a)},[a,D]),l.useEffect(function(){return function(){document.removeEventListener("mousemove",pe.current),document.removeEventListener("mouseup",Se.current),document.removeEventListener("touchmove",pe.current),document.removeEventListener("touchend",Se.current)}},[]);var le=function(Ye,ze){Y.some(function(rt,at){return rt!==Ye[at]})&&(ze!==void 0&&A(ze),oe(Ye),f(Ye))},ke=function(Ye,ze){if(Ye===-1){var rt=fe[0],at=fe[fe.length-1],Ht=r-rt,Lt=o-at,Rt=ze*(o-r);Rt=Math.max(Rt,Ht),Rt=Math.min(Rt,Lt);var Vt=s(rt+Rt);Rt=Vt-rt;var nr=fe.map(function(sr){return sr+Rt});le(nr)}else{var Gt=(o-r)*ze,At=(0,G.Z)(Y);At[Ye]=fe[Ye];var ur=v(At,Gt,Ye,"dist");le(ur.values,ur.value)}},Fe=l.useRef(ke);Fe.current=ke;var he=function(Ye,ze){Ye.stopPropagation();var rt=a[ze];N(ze),A(rt),Q(a);var at=Ka(Ye),Ht=at.pageX,Lt=at.pageY,Rt=function(Gt){Gt.preventDefault();var At=Ka(Gt),ur=At.pageX,sr=At.pageY,Sr=ur-Ht,tr=sr-Lt,Xt=t.current.getBoundingClientRect(),Bt=Xt.width,st=Xt.height,xt;switch(e){case"btt":xt=-tr/st;break;case"ttb":xt=tr/st;break;case"rtl":xt=-Sr/Bt;break;default:xt=Sr/Bt}Fe.current(ze,xt)},Vt=function nr(Gt){Gt.preventDefault(),document.removeEventListener("mouseup",nr),document.removeEventListener("mousemove",Rt),document.removeEventListener("touchend",nr),document.removeEventListener("touchmove",Rt),pe.current=null,Se.current=null,N(-1),d()};document.addEventListener("mouseup",Vt),document.addEventListener("mousemove",Rt),document.addEventListener("touchend",Vt),document.addEventListener("touchmove",Rt),pe.current=Rt,Se.current=Vt},ht=l.useMemo(function(){var mt=(0,G.Z)(a).sort(function(ze,rt){return ze-rt}),Ye=(0,G.Z)(Y).sort(function(ze,rt){return ze-rt});return mt.every(function(ze,rt){return ze===Ye[rt]})?Y:a},[a,Y]);return[D,w,ht,he]}function tu(t){var e=t.prefixCls,a=t.style,r=t.start,o=t.end,s=t.index,f=t.onStartMove,d=l.useContext(tn),v=d.direction,C=d.min,P=d.max,w=d.disabled,A=d.range,M="".concat(e,"-track"),F=ta(r,C,P),D=ta(o,C,P),N=function(Y){!w&&f&&f(Y,-1)},z={};switch(v){case"rtl":z.right="".concat(F*100,"%"),z.width="".concat(D*100-F*100,"%");break;case"btt":z.bottom="".concat(F*100,"%"),z.height="".concat(D*100-F*100,"%");break;case"ttb":z.top="".concat(F*100,"%"),z.height="".concat(D*100-F*100,"%");break;default:z.left="".concat(F*100,"%"),z.width="".concat(D*100-F*100,"%")}return l.createElement("div",{className:we()(M,A&&"".concat(M,"-").concat(s+1)),style:(0,i.Z)((0,i.Z)({},z),a),onMouseDown:N,onTouchStart:N})}function ru(t){var e=t.prefixCls,a=t.style,r=t.values,o=t.startPoint,s=t.onStartMove,f=l.useContext(tn),d=f.included,v=f.range,C=f.min,P=l.useMemo(function(){if(!v){if(r.length===0)return[];var w=o!=null?o:C,A=r[0];return[{start:Math.min(w,A),end:Math.max(w,A)}]}for(var M=[],F=0;F3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof D=="number"){var V,Y=F[N],oe=Y+D,ne=[];r.forEach(function(Se){ne.push(Se.value)}),ne.push(t,e),ne.push(d(Y));var ie=D>0?1:-1;z==="unit"?ne.push(d(Y+ie*a)):ne.push(d(oe)),ne=ne.filter(function(Se){return Se!==null}).filter(function(Se){return D<0?Se<=Y:Se>=Y}),z==="unit"&&(ne=ne.filter(function(Se){return Se!==Y}));var fe=z==="unit"?Y:oe;V=ne[0];var Q=Math.abs(V-fe);if(ne.forEach(function(Se){var le=Math.abs(Se-fe);le1){var pe=(0,G.Z)(F);return pe[N]=V,M(pe,D-ie,N,z)}return V}else{if(D==="min")return t;if(D==="max")return e}},P=function(F,D,N){var z=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",V=F[N],Y=C(F,D,N,z);return{value:Y,changed:Y!==V}},w=function(F){return s===null&&F===0||typeof s=="number"&&F3&&arguments[3]!==void 0?arguments[3]:"unit",V=F.map(v),Y=V[N],oe=C(V,D,N,z);if(V[N]=oe,o===!1){var ne=s||0;N>0&&V[N-1]!==Y&&(V[N]=Math.max(V[N],V[N-1]+ne)),N0;pe-=1)for(var Se=!0;w(V[pe]-V[pe-1])&&Se;){var le=P(V,-1,pe-1);V[pe-1]=le.value,Se=le.changed}for(var ke=V.length-1;ke>0;ke-=1)for(var Fe=!0;w(V[ke]-V[ke-1])&&Fe;){var he=P(V,-1,ke-1);V[ke-1]=he.value,Fe=he.changed}for(var ht=0;ht=0?ke:!1},[ke,cr]),Ir=l.useMemo(function(){var Zr=Object.keys(Vt||{});return Zr.map(function(ar){var Mt=Vt[ar],jr={value:Number(ar)};return Mt&&(0,c.Z)(Mt)==="object"&&!l.isValidElement(Mt)&&("label"in Mt||"style"in Mt)?(jr.style=Mt.style,jr.label=Mt.label):jr.label=Mt,jr}).filter(function(ar){var Mt=ar.label;return Mt||typeof Mt=="number"}).sort(function(ar,Mt){return ar.value-Mt.value})},[Vt]),Lr=lu(xt,Jt,cr,Ir,Se,Tr),Pr=(0,re.Z)(Lr,2),Hr=Pr[0],Ur=Pr[1],$r=(0,Ie.Z)(Y,{value:V}),Xr=(0,re.Z)($r,2),wr=Xr[0],aa=Xr[1],Vr=l.useMemo(function(){var Zr=wr==null?[]:Array.isArray(wr)?wr:[wr],ar=(0,re.Z)(Zr,1),Mt=ar[0],jr=Mt===void 0?xt:Mt,xr=wr===null?[]:[jr];if(oe){if(xr=(0,G.Z)(Zr),ne||wr===void 0){var hn=ne>=0?ne+1:2;for(xr=xr.slice(0,hn);xr.length=0&&Xt.current.focus(Zr)}On(null)},[Zn]);var Mr=l.useMemo(function(){return Fe&&cr===null?!1:Fe},[Fe,cr]),dr=function(){Q==null||Q(Kr(Jr.current))},Fr=eu(Bt,st,Vr,xt,Jt,Hr,Sn,dr,Ur),Br=(0,re.Z)(Fr,4),Wr=Br[0],rn=Br[1],Yr=Br[2],vn=Br[3],nn=function(ar,Mt){vn(ar,Mt),fe==null||fe(Kr(Jr.current))},En=Wr!==-1;l.useEffect(function(){if(!En){var Zr=Vr.lastIndexOf(rn);Xt.current.focus(Zr)}},[En]);var Gr=l.useMemo(function(){return(0,G.Z)(Yr).sort(function(Zr,ar){return Zr-ar})},[Yr]),ua=l.useMemo(function(){return oe?[Gr[0],Gr[Gr.length-1]]:[xt,Gr[0]]},[Gr,oe,xt]),$n=(0,re.Z)(ua,2),Hn=$n[0],Qr=$n[1];l.useImperativeHandle(e,function(){return{focus:function(){Xt.current.focus(0)},blur:function(){var ar=document,Mt=ar.activeElement;Bt.current.contains(Mt)&&(Mt==null||Mt.blur())}}}),l.useEffect(function(){C&&Xt.current.focus(0)},[]);var Ku=l.useMemo(function(){return{min:xt,max:Jt,direction:st,disabled:v,step:cr,included:Ye,includedStart:Hn,includedEnd:Qr,range:oe,tabIndex:ur,ariaLabelForHandle:sr,ariaLabelledByForHandle:Sr,ariaValueTextFormatterForHandle:tr}},[xt,Jt,st,v,cr,Ye,Hn,Qr,oe,ur,sr,Sr,tr]);return l.createElement(tn.Provider,{value:Ku},l.createElement("div",{ref:Bt,className:we()(o,s,(a={},(0,ee.Z)(a,"".concat(o,"-disabled"),v),(0,ee.Z)(a,"".concat(o,"-vertical"),ht),(0,ee.Z)(a,"".concat(o,"-horizontal"),!ht),(0,ee.Z)(a,"".concat(o,"-with-marks"),Ir.length),a)),style:f,onMouseDown:oa},l.createElement("div",{className:"".concat(o,"-rail"),style:Ht}),l.createElement(ru,{prefixCls:o,style:rt,values:Gr,startPoint:ze,onStartMove:Mr?nn:null}),l.createElement(iu,{prefixCls:o,marks:Ir,dots:nr,style:Lt,activeStyle:Rt}),l.createElement(_l,{ref:Xt,prefixCls:o,style:at,values:Yr,draggingIndex:Wr,onStartMove:nn,onOffsetChange:la,onFocus:P,onBlur:w,handleRender:Gt}),l.createElement(au,{prefixCls:o,marks:Ir,onClick:Ln})))}),su=uu,cu=su,Ya=n(75164),du=n(42550),fu=l.forwardRef(function(t,e){var a=t.open,r=(0,l.useRef)(null),o=(0,l.useRef)(null);function s(){Ya.Z.cancel(o.current),o.current=null}function f(){o.current=(0,Ya.Z)(function(){var d;(d=r.current)===null||d===void 0||d.forcePopupAlign(),o.current=null})}return l.useEffect(function(){return a?f():s(),s},[a,t.title]),l.createElement(qn.Z,(0,te.Z)({ref:(0,du.sQ)(r,e)},t))}),vu=fu,hu=function(t,e){var a={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(a[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(t);o2&&arguments[2]!==void 0?arguments[2]:!0,et=Object.keys(We).reduce(function(Te,xe){var Oe=We[xe];return(0,ve.Z)(Oe)||(Te[xe]=Oe),Te},{});if(Object.keys(et).length<1||typeof window=="undefined"||(0,Ve.Z)(se)!=="object"||(0,ve.Z)(se)||se instanceof Blob)return se;var Ee=Array.isArray(se)?[]:{},$e=function Te(xe,Oe){var ye=Array.isArray(xe),Me=ye?[]:{};return xe==null||xe===void 0?Me:(Object.keys(xe).forEach(function(De){var Je=Oe?[Oe,De].flat(1):[De].flat(1),Ge=xe[De],U=(0,Be.Z)(et,Je),Z=function q(be){return Array.isArray(be)&&be.forEach(function(ce,Pe){!ce||(typeof ce=="function"&&(Ge[Pe]=ce(Ge,De,xe)),(0,Ve.Z)(ce)==="object"&&!Array.isArray(ce)&&Object.keys(ce).forEach(function(Ke){if(typeof ce[Ke]=="function"){var nt=ce[Ke](xe[De][Pe][Ke],De,xe);Ge[Pe][Ke]=(0,Ve.Z)(nt)==="object"?nt[Ke]:nt}}),(0,Ve.Z)(ce)==="object"&&Array.isArray(ce)&&q(ce))}),De},_=function(){var be=typeof U=="function"?U==null?void 0:U(Ge,De,xe):Z(U);if(Array.isArray(be)){Me=(0,ue.Z)(Me,be,Ge);return}(0,Ve.Z)(be)==="object"&&!Array.isArray(Ee)?Ee=(0,i.Z)((0,i.Z)({},Ee),be):(0,Ve.Z)(be)==="object"&&Array.isArray(Ee)?Me=(0,i.Z)((0,i.Z)({},Me),be):be&&(Me=(0,ue.Z)(Me,[be],Ge))};if(U&&typeof U=="function"&&_(),typeof window!="undefined"){if(re(Ge)){var J=Te(Ge,Je);if(Object.keys(J).length<1)return;Me=(0,ue.Z)(Me,[De],J);return}_()}}),Ue?Me:xe)};return Ee=Array.isArray(se)&&Array.isArray(Ee)?(0,G.Z)($e(se)):(0,we.T)({},$e(se),Ee),Ee},Ct=Qe,Xe=n(22270),Ie=n(48171),Yt=n(26369),St=n(60249),fr=n(41036),vr=n(56725),dt=n(75661),Ot=n(23312),Dt=function(){return Dt=Object.assign||function(W){for(var se,We=1,Ue=arguments.length;We0&&arguments[0]!==void 0?arguments[0]:[],ft=it(wt);if(!ft)throw new Error("nameList is require");var He=(bt=Wt())===null||bt===void 0?void 0:bt.getFieldValue(ft),pt=ft?(0,ue.Z)({},ft,He):He;return(0,Be.Z)(Te(pt,q,ft),ft)},getFieldFormatValueObject:function(bt){var wt,ft=it(bt),He=(wt=Wt())===null||wt===void 0?void 0:wt.getFieldValue(ft),pt=ft?(0,ue.Z)({},ft,He):He;return Te(pt,q,ft)},validateFieldsReturnFormatValue:function(){var Ft=(0,O.Z)((0,u.Z)().mark(function wt(ft){var He,pt,jt;return(0,u.Z)().wrap(function(Qt){for(;;)switch(Qt.prev=Qt.next){case 0:if(!(!Array.isArray(ft)&&ft)){Qt.next=2;break}throw new Error("nameList must be array");case 2:return Qt.next=4,(He=Wt())===null||He===void 0?void 0:He.validateFields(ft);case 4:return pt=Qt.sent,jt=Te(pt,q),Qt.abrupt("return",jt||{});case 7:case"end":return Qt.stop()}},wt)}));function bt(wt){return Ft.apply(this,arguments)}return bt}(),formRef:Le}},[q,Te]),_e=(0,k.useMemo)(function(){return k.Children.toArray(se).map(function(Ft,bt){return bt===0&&k.isValidElement(Ft)&&Pe?k.cloneElement(Ft,(0,i.Z)((0,i.Z)({},Ft.props),{},{autoFocus:Pe})):Ft})},[Pe,se]),Ut=(0,k.useMemo)(function(){return typeof Ue=="boolean"||!Ue?{}:Ue},[Ue]);(0,k.useImperativeHandle)(xe,function(){return(0,i.Z)((0,i.Z)({},Ne),yt)},[yt,Ne]);var gr=(0,k.useMemo)(function(){if(Ue!==!1)return(0,l.jsx)(Ae,(0,i.Z)((0,i.Z)({},Ut),{},{onReset:function(){var bt,wt,ft=Te((bt=Le.current)===null||bt===void 0?void 0:bt.getFieldsValue(),q);if(Ut==null||(wt=Ut.onReset)===null||wt===void 0||wt.call(Ut,ft),_==null||_(ft),U){var He,pt=Object.keys(Te((He=Le.current)===null||He===void 0?void 0:He.getFieldsValue(),!1)).reduce(function(jt,ct){return(0,i.Z)((0,i.Z)({},jt),{},(0,c.Z)({},ct,ft[ct]||void 0))},Ge);Z(qe(U,pt,"set"))}},submitButtonProps:(0,i.Z)({loading:Me},Ut.submitButtonProps)}),"submitter")},[Ue,Ut,Me,Te,q,_,U,Ge,Z]),_t=(0,k.useMemo)(function(){var Ft=Ke?(0,l.jsx)(tt,{children:_e}):_e;return We?We(Ft,gr,Le.current):Ft},[Ke,tt,_e,We,gr]),rr=(0,Yt.Z)(W.initialValues);return(0,k.useEffect)(function(){if(!(U||!W.initialValues||!rr||lt.request)){var Ft=(0,St.Z)(W.initialValues,rr);(0,m.ET)(Ft,"initialValues \u53EA\u5728 form \u521D\u59CB\u5316\u65F6\u751F\u6548\uFF0C\u5982\u679C\u4F60\u9700\u8981\u5F02\u6B65\u52A0\u8F7D\u63A8\u8350\u4F7F\u7528 request\uFF0C\u6216\u8005 initialValues ? : null "),(0,m.ET)(Ft,"The initialValues only take effect when the form is initialized, if you need to load asynchronously recommended request, or the initialValues ? : null ")}},[W.initialValues]),(0,k.useEffect)(function(){var Ft,bt,wt=Te((Ft=Le.current)===null||Ft===void 0||(bt=Ft.getFieldsValue)===null||bt===void 0?void 0:bt.call(Ft,!0),q);Oe==null||Oe(wt,Le.current)},[]),(0,l.jsx)(fr.Z.Provider,{value:yt,children:(0,l.jsx)(S.ZP.SizeContext.Provider,{value:lt.size||$t,children:(0,l.jsxs)(Ze._p.Provider,{value:{grid:Ke,colProps:Et},children:[lt.component!==!1&&(0,l.jsx)("input",{type:"text",style:{display:"none"}}),_t]})})})}var je=0;function gt(W){var se=W.extraUrlParams,We=se===void 0?{}:se,Ue=W.syncToUrl,et=W.isKeyPressSubmit,Ee=W.syncToUrlAsImportant,$e=Ee===void 0?!1:Ee,Te=W.syncToInitialValues,xe=Te===void 0?!0:Te,Oe=W.children,ye=W.contentRender,Me=W.submitter,De=W.fieldProps,Je=W.formItemProps,Ge=W.groupProps,U=W.dateFormatter,Z=U===void 0?"string":U,_=W.formRef,J=W.onInit,q=W.form,be=W.formComponentType,ce=W.onReset,Pe=W.grid,Ke=W.rowProps,nt=W.colProps,Et=W.omitNil,lt=Et===void 0?!0:Et,Ne=W.request,$t=W.params,Le=W.initialValues,Zt=W.formKey,tt=Zt===void 0?je:Zt,Wt=W.readonly,yt=(0,j.Z)(W,ge),_e=(0,k.useRef)({}),Ut=(0,vr.Z)(!1),gr=(0,g.Z)(Ut,2),_t=gr[0],rr=gr[1],Ft=K({},{disabled:!Ue}),bt=(0,g.Z)(Ft,2),wt=bt[0],ft=bt[1],He=(0,k.useRef)((0,dt.x)());(0,k.useEffect)(function(){je+=0},[]);var pt=ee({request:Ne,params:$t,proFieldKey:tt}),jt=(0,g.Z)(pt,1),ct=jt[0],Qt=(0,k.useState)(function(){return Ue?qe(Ue,wt,"get"):{}}),pr=(0,g.Z)(Qt,2),Cr=pr[0],lr=pr[1],hr=(0,k.useRef)({}),Tt=(0,k.useRef)({}),Or=(0,k.useCallback)(function(or,ir,mr){return Ct((0,Ot.ZP)(or,Z,Tt.current,ir,mr),hr.current,ir)},[Z]);(0,k.useEffect)(function(){xe||lr({})},[xe]),(0,k.useEffect)(function(){!Ue||ft((0,i.Z)((0,i.Z)({},wt),We))},[We,Ue]);var yr=(0,k.useMemo)(function(){if(typeof window!="undefined"&&be&&["DrawerForm"].includes(be))return function(or){return or.parentNode||document.body}},[be]),Er=(0,Ie.J)((0,O.Z)((0,u.Z)().mark(function or(){var ir,mr,Nt,Kt,qt,zt;return(0,u.Z)().wrap(function(vt){for(;;)switch(vt.prev=vt.next){case 0:if(yt.onFinish){vt.next=2;break}return vt.abrupt("return");case 2:if(!_t){vt.next=4;break}return vt.abrupt("return");case 4:return rr(!0),vt.prev=5,Nt=_e==null||(ir=_e.current)===null||ir===void 0||(mr=ir.getFieldsFormatValue)===null||mr===void 0?void 0:mr.call(ir),vt.next=9,yt.onFinish(Nt);case 9:Ue&&(zt=Object.keys(_e==null||(Kt=_e.current)===null||Kt===void 0||(qt=Kt.getFieldsFormatValue)===null||qt===void 0?void 0:qt.call(Kt,void 0,!1)).reduce(function(Pt,Rr){var br;return(0,i.Z)((0,i.Z)({},Pt),{},(0,c.Z)({},Rr,(br=Nt[Rr])!==null&&br!==void 0?br:void 0))},We),Object.keys(wt).forEach(function(Pt){zt[Pt]!==!1&&zt[Pt]!==0&&!zt[Pt]&&(zt[Pt]=void 0)}),ft(qe(Ue,zt,"set"))),rr(!1),vt.next=16;break;case 13:vt.prev=13,vt.t0=vt.catch(5),rr(!1);case 16:case"end":return vt.stop()}},or,null,[[5,13]])})));return(0,k.useImperativeHandle)(_,function(){return _e.current},[!ct]),!ct&&W.request?(0,l.jsx)("div",{style:{paddingTop:50,paddingBottom:50,textAlign:"center"},children:(0,l.jsx)(b.Z,{})}):(0,l.jsx)(me.A.Provider,{value:{mode:W.readonly?"read":"edit"},children:(0,l.jsx)(T.oK,{children:(0,l.jsx)(Re.Z.Provider,{value:{formRef:_e,fieldProps:De,formItemProps:Je,groupProps:Ge,formComponentType:be,getPopupContainer:yr,formKey:He.current,setFieldValueType:function(ir,mr){var Nt=mr.valueType,Kt=Nt===void 0?"text":Nt,qt=mr.dateFormat,zt=mr.transform;!Array.isArray(ir)||(hr.current=(0,ue.Z)(hr.current,ir,zt),Tt.current=(0,ue.Z)(Tt.current,ir,{valueType:Kt,dateFormat:qt}))}},children:(0,l.jsx)($.Z,(0,i.Z)((0,i.Z)({onKeyPress:function(ir){if(!!et&&ir.key==="Enter"){var mr;(mr=_e.current)===null||mr===void 0||mr.submit()}},autoComplete:"off",form:q},(0,Ce.Z)(yt,["autoFocusFirstInput"])),{},{initialValues:$e?(0,i.Z)((0,i.Z)((0,i.Z)({},ct),Le),Cr):(0,i.Z)((0,i.Z)((0,i.Z)({},Cr),ct),Le),onValuesChange:function(ir,mr){var Nt;yt==null||(Nt=yt.onValuesChange)===null||Nt===void 0||Nt.call(yt,Or(ir,!!lt),Or(mr,!!lt))},onFinish:Er,children:(0,l.jsx)(It,(0,i.Z)((0,i.Z)({transformKey:Or,autoComplete:"off",loading:_t,onUrlSearchChange:ft},W),{},{formRef:_e,initialValues:(0,i.Z)((0,i.Z)({},Le),ct)}))}))})})})}},9105:function(E,R,n){"use strict";n.d(R,{A:function(){return b}});var h=n(67294),b=h.createContext({mode:"edit"})},66758:function(E,R,n){"use strict";n.d(R,{z:function(){return b}});var h=n(67294),b=h.createContext({});R.Z=b},82785:function(E,R,n){"use strict";n.d(R,{Z:function(){return Dt}});var h=n(84305),b=n(39559),g=n(9715),c=n(55843),i=n(96156),u=n(28991),O=n(81253),y=n(67294),S=n(85893),I=function(K){var B=!1;return(typeof K=="string"&&K.startsWith("date")&&!K.endsWith("Range")||K==="select"||K==="time")&&(B=!0),B},$=I,j=n(51812),l=n(28481),T=n(56725),k=n(30381),de=n.n(k),ae=function(K,B){return typeof B=="function"?B(de()(K)):de()(K).format(B)},te=function(K,B){var ot=Array.isArray(K)?K:[],Ce=(0,l.Z)(ot,2),m=Ce[0],x=Ce[1],p,L;Array.isArray(B)?(p=B[0],L=B[1]):(p=B,L=B);var X=m?ae(m,p):"",H=x?ae(x,L):"",Ae=X&&H?"".concat(X," ~ ").concat(H):"";return Ae},ee=te,G=n(23312),Ve=n(1643),Be=n(76422),ue=n(94184),ve=n.n(ue),we=n(11913),re=["label","size","disabled","onChange","className","style","children","valuePropName","placeholder","labelFormatter","bordered","footerRender","allowClear","otherFieldProps","valueType","placement"],Qe=function(K){var B,ot=K.label,Ce=K.size,m=K.disabled,x=K.onChange,p=K.className,L=K.style,X=K.children,H=K.valuePropName,Ae=K.placeholder,Re=K.labelFormatter,Ze=K.bordered,me=K.footerRender,ut=K.allowClear,ge=K.otherFieldProps,qe=K.valueType,it=K.placement,It=(0,O.Z)(K,re),je=(0,y.useContext)(b.ZP.ConfigContext),gt=je.getPrefixCls,W=gt("pro-field-light-wrapper"),se=(0,y.useState)(K[H]),We=(0,l.Z)(se,2),Ue=We[0],et=We[1],Ee=(0,T.Z)(!1),$e=(0,l.Z)(Ee,2),Te=$e[0],xe=$e[1],Oe=function(){for(var Je,Ge=arguments.length,U=new Array(Ge),Z=0;Z0?(0,y.jsx)("div",{className:"".concat(H,"-action"),children:be}):null,Pe={name:Ue.name,field:it,index:It,record:je==null||(ot=je.getFieldValue)===null||ot===void 0?void 0:ot.call(je,[et.listName,Ue.name,it.name].filter(function(Ne){return Ne!==void 0}).flat(1)),fields:ge,operation:Re,meta:qe},Ke=(0,k.zx)(),nt=Ke.grid,Et=(p==null?void 0:p(Z,Pe))||Z,lt=(L==null?void 0:L({listDom:(0,y.jsx)("div",{className:"".concat(H,"-container"),style:{width:nt?"100%":void 0},children:Et}),action:ce},Pe))||(0,y.jsxs)("div",{className:"".concat(H,"-item ").concat(X?"".concat(H,"-item-show-label"):""),style:{display:"flex",alignItems:"flex-end"},children:[(0,y.jsx)("div",{className:"".concat(H,"-container"),style:{width:nt?"100%":void 0},children:Et}),ce]});return(0,y.jsx)(Dt.Provider,{value:(0,c.Z)((0,c.Z)({},it),{},{listName:[et.listName,gt,it.name].filter(function(Ne){return Ne!==void 0}).flat(1)}),children:lt})},dt=function(B){var ot=(0,$.YB)(),Ce=B.creatorButtonProps,m=B.prefixCls,x=B.children,p=B.creatorRecord,L=B.action,X=B.fields,H=B.actionGuard,Ae=B.max,Re=B.fieldExtraRender,Ze=B.meta,me=B.containerClassName,ut=B.containerStyle,ge=B.onAfterAdd,qe=B.onAfterRemove,it=(0,T.useRef)(new Map),It=(0,T.useState)(!1),je=(0,Ve.Z)(It,2),gt=je[0],W=je[1],se=(0,T.useMemo)(function(){return X.map(function(Ee){var $e,Te;if(!(($e=it.current)===null||$e===void 0?void 0:$e.has(Ee.key.toString()))){var xe;(xe=it.current)===null||xe===void 0||xe.set(Ee.key.toString(),(0,ue.x)())}var Oe=(Te=it.current)===null||Te===void 0?void 0:Te.get(Ee.key.toString());return(0,c.Z)((0,c.Z)({},Ee),{},{uuid:Oe})})},[X]),We=(0,T.useMemo)(function(){var Ee=(0,c.Z)({},L),$e=se.length;return(H==null?void 0:H.beforeAddRow)?Ee.add=(0,G.Z)((0,ee.Z)().mark(function Te(){var xe,Oe,ye,Me,De,Je=arguments;return(0,ee.Z)().wrap(function(U){for(;;)switch(U.prev=U.next){case 0:for(xe=Je.length,Oe=new Array(xe),ye=0;ye0&&arguments[0]!==void 0?arguments[0]:{},Be=Ve.children,ue=Ve.Wrapper,ve=(0,O.Z)(Ve,I);return ae?(0,y.jsx)(u.Z,(0,c.Z)((0,c.Z)((0,c.Z)({gutter:8},te),ve),{},{children:Be})):ue?(0,y.jsx)(ue,{children:Be}):Be},ColWrapper:function(){var Ve=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Be=Ve.children,ue=Ve.Wrapper,ve=(0,O.Z)(Ve,$),we=(0,S.useMemo)(function(){var re=(0,c.Z)((0,c.Z)({},ee),ve);return typeof re.span=="undefined"&&typeof re.xs=="undefined"&&(re.xs=24),re},[ve]);return ae?(0,y.jsx)(g.Z,(0,c.Z)((0,c.Z)({},we),{},{children:Be})):ue?(0,y.jsx)(ue,{children:Be}):Be}}},T=function(de){var ae=(0,S.useMemo)(function(){return(0,h.Z)(de)==="object"?de:{grid:de}},[de]),te=(0,S.useContext)(j),ee=te.grid,G=te.colProps;return(0,S.useMemo)(function(){return l({grid:!!(ee||ae.grid),rowProps:ae==null?void 0:ae.rowProps,colProps:(ae==null?void 0:ae.colProps)||G,Wrapper:ae==null?void 0:ae.Wrapper})},[ae==null?void 0:ae.Wrapper,ae.grid,ee,JSON.stringify([G,ae==null?void 0:ae.colProps,ae==null?void 0:ae.rowProps])])}},952:function(E,R,n){"use strict";var h=n(56640),b=n.n(h),g=n(5894);R.ZP=g.A},5894:function(E,R,n){"use strict";n.d(R,{A:function(){return ve}});var h=n(9715),b=n(55843),g=n(28991),c=n(85893),i=n(88374),u=n(96156),O=n(49111),y=n(19650),S=n(84305),I=n(39559),$=n(28481),j=n(8812),l=n(56725),T=n(53621),k=n(94184),de=n.n(k),ae=n(67294),te=n(66758),ee=n(2514),G=n(96138),Ve=ae.forwardRef(function(we,re){var Qe=ae.useContext(te.Z),Ct=Qe.groupProps,Xe=(0,g.Z)((0,g.Z)({},Ct),we),Ie=Xe.children,Yt=Xe.collapsible,St=Xe.defaultCollapsed,fr=Xe.style,vr=Xe.labelLayout,dt=Xe.title,Ot=dt===void 0?we.label:dt,Dt=Xe.tooltip,kt=Xe.align,K=kt===void 0?"start":kt,B=Xe.direction,ot=Xe.size,Ce=ot===void 0?32:ot,m=Xe.titleStyle,x=Xe.titleRender,p=Xe.spaceProps,L=Xe.extra,X=Xe.autoFocus,H=(0,l.Z)(function(){return St||!1},{value:we.collapsed,onChange:we.onCollapse}),Ae=(0,$.Z)(H,2),Re=Ae[0],Ze=Ae[1],me=(0,ae.useContext)(I.ZP.ConfigContext),ut=me.getPrefixCls,ge=(0,ee.zx)(we),qe=ge.ColWrapper,it=ge.RowWrapper,It=ut("pro-form-group"),je=Yt&&(0,c.jsx)(j.Z,{style:{marginRight:8},rotate:Re?void 0:90}),gt=(0,c.jsx)(T.Z,{label:je?(0,c.jsxs)("div",{children:[je,Ot]}):Ot,tooltip:Dt}),W=(0,ae.useCallback)(function($e){var Te=$e.children;return(0,c.jsx)(y.Z,(0,g.Z)((0,g.Z)({},p),{},{className:de()("".concat(It,"-container"),p==null?void 0:p.className),size:Ce,align:K,direction:B,style:(0,g.Z)({rowGap:0},p==null?void 0:p.style),children:Te}))},[K,It,B,Ce,p]),se=x?x(gt,we):gt,We=(0,ae.useMemo)(function(){var $e=[],Te=ae.Children.toArray(Ie).map(function(xe,Oe){var ye;return ae.isValidElement(xe)&&(xe==null||(ye=xe.props)===null||ye===void 0?void 0:ye.hidden)?($e.push(xe),null):Oe===0&&ae.isValidElement(xe)&&X?ae.cloneElement(xe,(0,g.Z)((0,g.Z)({},xe.props),{},{autoFocus:X})):xe});return[(0,c.jsx)(it,{Wrapper:W,children:Te},"children"),$e.length>0?(0,c.jsx)("div",{style:{display:"none"},children:$e}):null]},[Ie,it,W,X]),Ue=(0,$.Z)(We,2),et=Ue[0],Ee=Ue[1];return(0,c.jsx)(qe,{children:(0,c.jsxs)("div",{className:de()(It,(0,u.Z)({},"".concat(It,"-twoLine"),vr==="twoLine")),style:fr,ref:re,children:[Ee,(Ot||Dt||L)&&(0,c.jsx)("div",{className:"".concat(It,"-title"),style:m,onClick:function(){Ze(!Re)},children:L?(0,c.jsxs)("div",{style:{display:"flex",width:"100%",alignItems:"center",justifyContent:"space-between"},children:[se,(0,c.jsx)("span",{onClick:function(Te){return Te.stopPropagation()},children:L})]}):se}),Yt&&Re?null:et]})})});Ve.displayName="ProForm-Group";var Be=Ve,ue=n(82785);function ve(we){return(0,c.jsx)(i.I,(0,g.Z)({layout:"vertical",submitter:{render:function(Qe,Ct){return Ct.reverse()}},contentRender:function(Qe,Ct){return(0,c.jsxs)(c.Fragment,{children:[Qe,Ct]})}},we))}ve.Group=Be,ve.useForm=b.Z.useForm,ve.Item=ue.Z,ve.useWatch=b.Z.useWatch,ve.ErrorList=b.Z.ErrorList,ve.Provider=b.Z.Provider,ve.useFormInstance=b.Z.useFormInstance},76422:function(E,R,n){"use strict";var h=n(96156),b=n(84305),g=n(39559),c=n(85893),i=n(54549),u=n(57254),O=n(78775),y=n(94184),S=n.n(y),I=n(67294),$=n(83931),j=n.n($),l=function(k,de){var ae,te=k.label,ee=k.onClear,G=k.value,Ve=k.size,Be=Ve===void 0?"middle":Ve,ue=k.disabled,ve=k.onLabelClick,we=k.ellipsis,re=k.placeholder,Qe=k.className,Ct=k.style,Xe=k.formatter,Ie=k.bordered,Yt=k.allowClear,St=Yt===void 0?!0:Yt,fr=(0,I.useContext)(g.ZP.ConfigContext),vr=fr.getPrefixCls,dt=vr("pro-core-field-label"),Ot=(0,O.YB)(),Dt=(0,I.useRef)(null),kt=(0,I.useRef)(null);(0,I.useImperativeHandle)(de,function(){return{labelRef:kt,clearRef:Dt}});var K=function(Ce){return Xe?Xe(Ce):Array.isArray(Ce)?Ce.join(","):Ce},B=function(Ce,m){if(m!=null&&m!==""&&(!Array.isArray(m)||m.length)){var x,p,L=Ce?(0,c.jsxs)("span",{onClick:ve,className:"".concat(dt,"-text"),children:[Ce,": "]}):"",X=K(m);if(!we)return(0,c.jsxs)("span",{style:{display:"inline-flex",alignItems:"center"},children:[L,K(m)]});var H=41,Ae=function(){var me=Array.isArray(m)&&m.length>1,ut=Ot.getMessage("form.lightFilter.itemUnit","\u9879");return typeof X=="string"&&X.length>H&&me?"...".concat(m.length).concat(ut):""},Re=Ae();return(0,c.jsxs)("span",{title:typeof X=="string"?X:void 0,style:{display:"inline-flex",alignItems:"center"},children:[L,(0,c.jsx)("span",{style:{paddingLeft:4},children:typeof X=="string"?X==null||(x=X.toString())===null||x===void 0||(p=x.substr)===null||p===void 0?void 0:p.call(x,0,H):X}),Re]})}return Ce||re};return(0,c.jsxs)("span",{className:S()(dt,"".concat(dt,"-").concat(Be),(ae={},(0,h.Z)(ae,"".concat(dt,"-active"),!!G||G===0),(0,h.Z)(ae,"".concat(dt,"-disabled"),ue),(0,h.Z)(ae,"".concat(dt,"-bordered"),Ie),(0,h.Z)(ae,"".concat(dt,"-allow-clear"),St),ae),Qe),style:Ct,ref:kt,children:[B(te,G),(G||G===0)&&St&&(0,c.jsx)(i.Z,{role:"button",title:"\u6E05\u9664",className:S()("".concat(dt,"-icon"),"".concat(dt,"-close")),onClick:function(Ce){ee&&!ue&&ee(),Ce.stopPropagation()},ref:Dt}),(0,c.jsx)(u.Z,{className:S()("".concat(dt,"-icon"),"".concat(dt,"-arrow"))})]})};R.Z=I.forwardRef(l)},1643:function(E,R,n){"use strict";n.d(R,{Z:function(){return de}});var h=n(28991),b=n(59250),g=n(13013),c=n(84305),i=n(39559),u=n(85893),O=n(67294),y=n(57663),S=n(71577),I=n(78775),$=n(93562),j=function(te){var ee=(0,I.YB)(),G=te.onClear,Ve=te.onConfirm,Be=te.disabled,ue=te.footerRender,ve=(0,O.useContext)(i.ZP.ConfigContext),we=ve.getPrefixCls,re=we("pro-core-dropdown-footer"),Qe=[(0,u.jsx)(S.Z,{style:{visibility:G?"visible":"hidden"},type:"link",size:"small",disabled:Be,onClick:function(Ie){G&&G(Ie),Ie.stopPropagation()},children:ee.getMessage("form.lightFilter.clear","\u6E05\u9664")},"clear"),(0,u.jsx)(S.Z,{"data-type":"confirm",type:"primary",size:"small",onClick:Ve,disabled:Be,children:ee.getMessage("form.lightFilter.confirm","\u786E\u8BA4")},"confirm")];if(ue===!1||(ue==null?void 0:ue(Ve,G))===!1)return null;var Ct=(ue==null?void 0:ue(Ve,G))||Qe;return(0,u.jsx)("div",{className:re,onClick:function(Ie){return Ie.target.getAttribute("data-type")!=="confirm"&&Ie.stopPropagation()},children:Ct})},l=j,T=n(28152),k=function(te){var ee=te.children,G=te.label,Ve=te.footer,Be=te.disabled,ue=te.onVisibleChange,ve=te.visible,we=te.footerRender,re=te.placement,Qe=(0,O.useContext)(i.ZP.ConfigContext),Ct=Qe.getPrefixCls,Xe=Ct("pro-core-field-dropdown");return(0,u.jsx)(g.Z,{disabled:Be,placement:re,trigger:["click"],visible:ve,onVisibleChange:ue,overlay:(0,u.jsxs)("div",{className:"".concat(Xe,"-overlay"),children:[(0,u.jsx)("div",{className:"".concat(Xe,"-content"),children:ee}),Ve&&(0,u.jsx)(l,(0,h.Z)({disabled:Be,footerRender:we},Ve))]}),children:(0,u.jsx)("span",{className:"".concat(Xe,"-label"),children:G})})},de=k},53621:function(E,R,n){"use strict";var h=n(28991),b=n(22385),g=n(45777),c=n(96156),i=n(84305),u=n(39559),O=n(85893),y=n(68628),S=n(94184),I=n.n(S),$=n(67294),j=n(47369),l=n.n(j),T=function(de){var ae=de.label,te=de.tooltip,ee=de.ellipsis,G=de.subTitle,Ve=(0,$.useContext)(u.ZP.ConfigContext),Be=Ve.getPrefixCls;if(!te&&!G)return(0,O.jsx)(O.Fragment,{children:ae});var ue=Be("pro-core-label-tip"),ve=typeof te=="string"||$.isValidElement(te)?{title:te}:te,we=(ve==null?void 0:ve.icon)||(0,O.jsx)(y.Z,{});return(0,O.jsxs)("div",{className:ue,onMouseDown:function(Qe){return Qe.stopPropagation()},onMouseLeave:function(Qe){return Qe.stopPropagation()},onMouseMove:function(Qe){return Qe.stopPropagation()},children:[(0,O.jsx)("div",{className:I()("".concat(ue,"-title"),(0,c.Z)({},"".concat(ue,"-title-ellipsis"),ee)),children:ae}),G&&(0,O.jsx)("div",{className:"".concat(ue,"-subtitle"),children:G}),te&&(0,O.jsx)(g.Z,(0,h.Z)((0,h.Z)({},ve),{},{children:(0,O.jsx)("span",{className:"".concat(ue,"-icon"),children:we})}))]})};R.Z=$.memo(T)},41036:function(E,R,n){"use strict";var h=n(67294),b=h.createContext({});R.Z=b},23312:function(E,R,n){"use strict";n.d(R,{Cl:function(){return u}});var h=n(90484),b=n(30381),g=n.n(b),c=n(88306),i=n(74763),u={time:"HH:mm:ss",timeRange:"HH:mm:ss",date:"YYYY-MM-DD",dateWeek:"YYYY-wo",dateMonth:"YYYY-MM",dateQuarter:"YYYY-\\QQ",dateYear:"YYYY",dateRange:"YYYY-MM-DD",dateTime:"YYYY-MM-DD HH:mm:ss",dateTimeRange:"YYYY-MM-DD HH:mm:ss"};function O($){return Object.prototype.toString.call($)==="[object Object]"}function y($){if(O($)===!1)return!1;var j=$.constructor;if(j===void 0)return!0;var l=j.prototype;return!(O(l)===!1||l.hasOwnProperty("isPrototypeOf")===!1)}var S=function(j,l,T){if(!l)return j;if(g().isMoment(j)){if(l==="number")return j.valueOf();if(l==="string")return j.format(u[T]||"YYYY-MM-DD HH:mm:ss");if(typeof l=="string"&&l!=="string")return j.format(l);if(typeof l=="function")return l(j,T)}return j},I=function $(j,l,T,k,de){var ae={};return typeof window=="undefined"||(0,h.Z)(j)!=="object"||(0,i.Z)(j)||j instanceof Blob||Array.isArray(j)?j:(Object.keys(j).forEach(function(te){var ee=de?[de,te].flat(1):[te],G=(0,c.Z)(T,ee)||"text",Ve="text",Be;typeof G=="string"?Ve=G:G&&(Ve=G.valueType,Be=G.dateFormat);var ue=j[te];if(!((0,i.Z)(ue)&&k)){if(y(ue)&&!Array.isArray(ue)&&!g().isMoment(ue)){ae[te]=$(ue,l,T,k,[te]);return}if(Array.isArray(ue)){ae[te]=ue.map(function(ve,we){return g().isMoment(ve)?S(ve,Be||l,Ve):$(ve,l,T,k,[te,"".concat(we)])});return}ae[te]=S(ue,Be||l,Ve)}}),ae)};R.ZP=I},27068:function(E,R,n){"use strict";n.d(R,{Au:function(){return S}});var h=n(55507),b=n(92137),g=n(67294),c=n(60249),i=n(10178),u=function($,j,l){return(0,c.Z)($,j,l)};function O(I,$){var j=(0,g.useRef)();return u(I,j.current,$)||(j.current=I),j.current}function y(I,$,j){(0,g.useEffect)(I,O($||[],j))}function S(I,$,j,l){var T=(0,i.Z)((0,b.Z)((0,h.Z)().mark(function k(){return(0,h.Z)().wrap(function(ae){for(;;)switch(ae.prev=ae.next){case 0:I();case 1:case"end":return ae.stop()}},k)})),l||16);(0,g.useEffect)(function(){T.run()},O($||[],j))}R.ZP=y},51804:function(E,R,n){"use strict";var h=n(67294),b=function(c){var i=(0,h.useRef)(c);return i.current=c,i};R.Z=b},26369:function(E,R,n){"use strict";var h=n(67294),b=function(c){var i=(0,h.useRef)();return(0,h.useEffect)(function(){i.current=c}),i.current};R.Z=b},60249:function(E,R,n){"use strict";var h=n(11965),b=n(90484);function g(c,i,u,O){if(c===i)return!0;if(c&&i&&(0,b.Z)(c)==="object"&&(0,b.Z)(i)==="object"){if(c.constructor!==i.constructor)return!1;var y,S,I;if(Array.isArray(c)){if(y=c.length,y!=i.length)return!1;for(S=y;S--!=0;)if(!g(c[S],i[S],u,O))return!1;return!0}if(c instanceof Map&&i instanceof Map){if(c.size!==i.size)return!1;var $=(0,h.Z)(c.entries()),j;try{for($.s();!(j=$.n()).done;)if(S=j.value,!i.has(S[0]))return!1}catch(te){$.e(te)}finally{$.f()}var l=(0,h.Z)(c.entries()),T;try{for(l.s();!(T=l.n()).done;)if(S=T.value,!g(S[1],i.get(S[0]),u,O))return!1}catch(te){l.e(te)}finally{l.f()}return!0}if(c instanceof Set&&i instanceof Set){if(c.size!==i.size)return!1;var k=(0,h.Z)(c.entries()),de;try{for(k.s();!(de=k.n()).done;)if(S=de.value,!i.has(S[0]))return!1}catch(te){k.e(te)}finally{k.f()}return!0}if(ArrayBuffer.isView(c)&&ArrayBuffer.isView(i)){if(y=c.length,y!=i.length)return!1;for(S=y;S--!=0;)if(c[S]!==i[S])return!1;return!0}if(c.constructor===RegExp)return c.source===i.source&&c.flags===i.flags;if(c.valueOf!==Object.prototype.valueOf&&c.valueOf)return c.valueOf()===i.valueOf();if(c.toString!==Object.prototype.toString&&c.toString)return c.toString()===i.toString();if(I=Object.keys(c),y=I.length,y!==Object.keys(i).length)return!1;for(S=y;S--!=0;)if(!Object.prototype.hasOwnProperty.call(i,I[S]))return!1;for(S=y;S--!=0;){var ae=I[S];if(!(u==null?void 0:u.includes(ae))&&!(ae==="_owner"&&c.$$typeof)&&!g(c[ae],i[ae],u,O))return O&&console.log(ae),!1}return!0}return c!==c&&i!==i}R.Z=g},74763:function(E,R){"use strict";var n=function(b){return b==null};R.Z=n},92210:function(E,R,n){"use strict";n.d(R,{T:function(){return g}});var h=n(28991),b=n(90484),g=function(){for(var i={},u=arguments.length,O=new Array(u),y=0;y0&&arguments[0]!==void 0?arguments[0]:21;if(typeof window=="undefined"||!window.crypto)return(h+=1).toFixed(0);for(var u="",O=crypto.getRandomValues(new Uint8Array(i));i--;){var y=63&O[i];u+=y<36?y.toString(36):y<62?(y-26).toString(36).toUpperCase():y<63?"_":"-"}return u},g=function(){return typeof window=="undefined"?b():window.crypto&&window.crypto.randomUUID&&typeof crypto.randomUUID=="function"?crypto.randomUUID():b()}},22270:function(E,R,n){"use strict";n.d(R,{h:function(){return h}});function h(b){if(typeof b=="function"){for(var g=arguments.length,c=new Array(g>1?g-1:0),i=1;i1?u[y-1]:void 0,I=y>2?u[2]:void 0;for(S=c.length>3&&typeof S=="function"?(y--,S):void 0,I&&b(u[0],u[1],I)&&(S=y<3?void 0:S,y=1),i=Object(i);++O0){if(++c>=R)return arguments[0]}else c=0;return g.apply(void 0,arguments)}}E.exports=b},55514:function(E,R,n){var h=n(24523),b=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,g=/\\(\\)?/g,c=h(function(i){var u=[];return i.charCodeAt(0)===46&&u.push(""),i.replace(b,function(O,y,S,I){u.push(S?I.replace(g,"$1"):y||O)}),u});E.exports=c},40327:function(E,R,n){var h=n(33448),b=1/0;function g(c){if(typeof c=="string"||h(c))return c;var i=c+"";return i=="0"&&1/c==-b?"-0":i}E.exports=g},50361:function(E,R,n){var h=n(85990),b=1,g=4;function c(i){return h(i,b|g)}E.exports=c},75703:function(E){function R(n){return function(){return n}}E.exports=R},66073:function(E,R,n){E.exports=n(84486)},84486:function(E,R,n){var h=n(77412),b=n(89881),g=n(54290),c=n(1469);function i(u,O){var y=c(u)?h:b;return y(u,g(O))}E.exports=i},2525:function(E,R,n){var h=n(47816),b=n(54290);function g(c,i){return c&&h(c,b(i))}E.exports=g},27361:function(E,R,n){var h=n(97786);function b(g,c,i){var u=g==null?void 0:h(g,c);return u===void 0?i:u}E.exports=b},79095:function(E,R,n){var h=n(13),b=n(222);function g(c,i){return c!=null&&b(c,i,h)}E.exports=g},6557:function(E){function R(n){return n}E.exports=R},29246:function(E,R,n){var h=n(98612),b=n(37005);function g(c){return b(c)&&h(c)}E.exports=g},56688:function(E,R,n){var h=n(25588),b=n(7518),g=n(31167),c=g&&g.isMap,i=c?b(c):h;E.exports=i},68630:function(E,R,n){var h=n(44239),b=n(85924),g=n(37005),c="[object Object]",i=Function.prototype,u=Object.prototype,O=i.toString,y=u.hasOwnProperty,S=O.call(Object);function I($){if(!g($)||h($)!=c)return!1;var j=b($);if(j===null)return!0;var l=y.call(j,"constructor")&&j.constructor;return typeof l=="function"&&l instanceof l&&O.call(l)==S}E.exports=I},72928:function(E,R,n){var h=n(29221),b=n(7518),g=n(31167),c=g&&g.isSet,i=c?b(c):h;E.exports=i},47037:function(E,R,n){var h=n(44239),b=n(1469),g=n(37005),c="[object String]";function i(u){return typeof u=="string"||!b(u)&&g(u)&&h(u)==c}E.exports=i},81704:function(E,R,n){var h=n(14636),b=n(35014),g=n(98612);function c(i){return g(i)?h(i,!0):b(i)}E.exports=c},35161:function(E,R,n){var h=n(29932),b=n(67206),g=n(69199),c=n(1469);function i(u,O){var y=c(u)?h:g;return y(u,b(O,3))}E.exports=i},15644:function(E,R,n){var h=n(83369),b="Expected a function";function g(c,i){if(typeof c!="function"||i!=null&&typeof i!="function")throw new TypeError(b);var u=function(){var O=arguments,y=i?i.apply(this,O):O[0],S=u.cache;if(S.has(y))return S.get(y);var I=c.apply(this,O);return u.cache=S.set(y,I)||S,I};return u.cache=new(g.Cache||h),u}g.Cache=h,E.exports=g},82492:function(E,R,n){var h=n(42980),b=n(21463),g=b(function(c,i,u){h(c,i,u)});E.exports=g},39601:function(E,R,n){var h=n(40371),b=n(79152),g=n(15403),c=n(40327);function i(u){return g(u)?h(c(u)):b(u)}E.exports=i},23493:function(E,R,n){var h=n(23279),b=n(13218),g="Expected a function";function c(i,u,O){var y=!0,S=!0;if(typeof i!="function")throw new TypeError(g);return b(O)&&(y="leading"in O?!!O.leading:y,S="trailing"in O?!!O.trailing:S),h(i,u,{leading:y,maxWait:u,trailing:S})}E.exports=c},59881:function(E,R,n){var h=n(98363),b=n(81704);function g(c){return h(c,b(c))}E.exports=g},79833:function(E,R,n){var h=n(80531);function b(g){return g==null?"":h(g)}E.exports=b},24754:function(E,R,n){"use strict";Object.defineProperty(R,"__esModule",{value:!0}),R.autoprefix=void 0;var h=n(2525),b=c(h),g=Object.assign||function(O){for(var y=1;y1&&arguments[1]!==void 0?arguments[1]:"span";return function(j){O(l,j);function l(){var T,k,de,ae;i(this,l);for(var te=arguments.length,ee=Array(te),G=0;G1&&arguments[1]!==void 0?arguments[1]:"span";return function(j){O(l,j);function l(){var T,k,de,ae;i(this,l);for(var te=arguments.length,ee=Array(te),G=0;G0&&arguments[0]!==void 0?arguments[0]:[],l=[];return(0,y.default)(j,function(T){Array.isArray(T)?$(T).map(function(k){return l.push(k)}):(0,u.default)(T)?(0,c.default)(T,function(k,de){k===!0&&l.push(de),l.push(de+"-"+k)}):(0,b.default)(T)&&l.push(T)}),l};R.default=I},79941:function(E,R,n){"use strict";var h;h={value:!0},h=h=h=h=h=void 0;var b=n(14147),g=T(b),c=n(18556),i=T(c),u=n(24754),O=T(u),y=n(91765),S=T(y),I=n(36002),$=T(I),j=n(57742),l=T(j);function T(de){return de&&de.__esModule?de:{default:de}}h=S.default,h=S.default,h=$.default,h=l.default;var k=h=function(ae){for(var te=arguments.length,ee=Array(te>1?te-1:0),G=1;G1&&arguments[1]!==void 0?arguments[1]:!0;c[O]=y};return b===0&&i("first-child"),b===g-1&&i("last-child"),(b===0||b%2==0)&&i("even"),Math.abs(b%2)===1&&i("odd"),i("nth-child",b),c};R.default=n},18556:function(E,R,n){"use strict";Object.defineProperty(R,"__esModule",{value:!0}),R.mergeClasses=void 0;var h=n(2525),b=u(h),g=n(50361),c=u(g),i=Object.assign||function(y){for(var S=1;S1&&arguments[1]!==void 0?arguments[1]:[],$=S.default&&(0,c.default)(S.default)||{};return I.map(function(j){var l=S[j];return l&&(0,b.default)(l,function(T,k){$[k]||($[k]={}),$[k]=i({},$[k],l[k])}),j}),$};R.default=O},21997:function(E,R,n){"use strict";n.d(R,{Z:function(){return c}});function h(m){return h=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(x){return typeof x}:function(x){return x&&typeof Symbol=="function"&&x.constructor===Symbol&&x!==Symbol.prototype?"symbol":typeof x},h(m)}var b=/^\s+/,g=/\s+$/;function c(m,x){if(m=m||"",x=x||{},m instanceof c)return m;if(!(this instanceof c))return new c(m,x);var p=i(m);this._originalInput=m,this._r=p.r,this._g=p.g,this._b=p.b,this._a=p.a,this._roundA=Math.round(100*this._a)/100,this._format=x.format||p.format,this._gradientType=x.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=p.ok}c.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var x=this.toRgb();return(x.r*299+x.g*587+x.b*114)/1e3},getLuminance:function(){var x=this.toRgb(),p,L,X,H,Ae,Re;return p=x.r/255,L=x.g/255,X=x.b/255,p<=.03928?H=p/12.92:H=Math.pow((p+.055)/1.055,2.4),L<=.03928?Ae=L/12.92:Ae=Math.pow((L+.055)/1.055,2.4),X<=.03928?Re=X/12.92:Re=Math.pow((X+.055)/1.055,2.4),.2126*H+.7152*Ae+.0722*Re},setAlpha:function(x){return this._a=Xe(x),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var x=S(this._r,this._g,this._b);return{h:x.h*360,s:x.s,v:x.v,a:this._a}},toHsvString:function(){var x=S(this._r,this._g,this._b),p=Math.round(x.h*360),L=Math.round(x.s*100),X=Math.round(x.v*100);return this._a==1?"hsv("+p+", "+L+"%, "+X+"%)":"hsva("+p+", "+L+"%, "+X+"%, "+this._roundA+")"},toHsl:function(){var x=O(this._r,this._g,this._b);return{h:x.h*360,s:x.s,l:x.l,a:this._a}},toHslString:function(){var x=O(this._r,this._g,this._b),p=Math.round(x.h*360),L=Math.round(x.s*100),X=Math.round(x.l*100);return this._a==1?"hsl("+p+", "+L+"%, "+X+"%)":"hsla("+p+", "+L+"%, "+X+"%, "+this._roundA+")"},toHex:function(x){return $(this._r,this._g,this._b,x)},toHexString:function(x){return"#"+this.toHex(x)},toHex8:function(x){return j(this._r,this._g,this._b,this._a,x)},toHex8String:function(x){return"#"+this.toHex8(x)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(Ie(this._r,255)*100)+"%",g:Math.round(Ie(this._g,255)*100)+"%",b:Math.round(Ie(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(Ie(this._r,255)*100)+"%, "+Math.round(Ie(this._g,255)*100)+"%, "+Math.round(Ie(this._b,255)*100)+"%)":"rgba("+Math.round(Ie(this._r,255)*100)+"%, "+Math.round(Ie(this._g,255)*100)+"%, "+Math.round(Ie(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:Qe[$(this._r,this._g,this._b,!0)]||!1},toFilter:function(x){var p="#"+l(this._r,this._g,this._b,this._a),L=p,X=this._gradientType?"GradientType = 1, ":"";if(x){var H=c(x);L="#"+l(H._r,H._g,H._b,H._a)}return"progid:DXImageTransform.Microsoft.gradient("+X+"startColorstr="+p+",endColorstr="+L+")"},toString:function(x){var p=!!x;x=x||this._format;var L=!1,X=this._a<1&&this._a>=0,H=!p&&X&&(x==="hex"||x==="hex6"||x==="hex3"||x==="hex4"||x==="hex8"||x==="name");return H?x==="name"&&this._a===0?this.toName():this.toRgbString():(x==="rgb"&&(L=this.toRgbString()),x==="prgb"&&(L=this.toPercentageRgbString()),(x==="hex"||x==="hex6")&&(L=this.toHexString()),x==="hex3"&&(L=this.toHexString(!0)),x==="hex4"&&(L=this.toHex8String(!0)),x==="hex8"&&(L=this.toHex8String()),x==="name"&&(L=this.toName()),x==="hsl"&&(L=this.toHslString()),x==="hsv"&&(L=this.toHsvString()),L||this.toHexString())},clone:function(){return c(this.toString())},_applyModification:function(x,p){var L=x.apply(null,[this].concat([].slice.call(p)));return this._r=L._r,this._g=L._g,this._b=L._b,this.setAlpha(L._a),this},lighten:function(){return this._applyModification(ae,arguments)},brighten:function(){return this._applyModification(te,arguments)},darken:function(){return this._applyModification(ee,arguments)},desaturate:function(){return this._applyModification(T,arguments)},saturate:function(){return this._applyModification(k,arguments)},greyscale:function(){return this._applyModification(de,arguments)},spin:function(){return this._applyModification(G,arguments)},_applyCombination:function(x,p){return x.apply(null,[this].concat([].slice.call(p)))},analogous:function(){return this._applyCombination(ve,arguments)},complement:function(){return this._applyCombination(Ve,arguments)},monochromatic:function(){return this._applyCombination(we,arguments)},splitcomplement:function(){return this._applyCombination(ue,arguments)},triad:function(){return this._applyCombination(Be,[3])},tetrad:function(){return this._applyCombination(Be,[4])}},c.fromRatio=function(m,x){if(h(m)=="object"){var p={};for(var L in m)m.hasOwnProperty(L)&&(L==="a"?p[L]=m[L]:p[L]=Ot(m[L]));m=p}return c(m,x)};function i(m){var x={r:0,g:0,b:0},p=1,L=null,X=null,H=null,Ae=!1,Re=!1;return typeof m=="string"&&(m=ot(m)),h(m)=="object"&&(B(m.r)&&B(m.g)&&B(m.b)?(x=u(m.r,m.g,m.b),Ae=!0,Re=String(m.r).substr(-1)==="%"?"prgb":"rgb"):B(m.h)&&B(m.s)&&B(m.v)?(L=Ot(m.s),X=Ot(m.v),x=I(m.h,L,X),Ae=!0,Re="hsv"):B(m.h)&&B(m.s)&&B(m.l)&&(L=Ot(m.s),H=Ot(m.l),x=y(m.h,L,H),Ae=!0,Re="hsl"),m.hasOwnProperty("a")&&(p=m.a)),p=Xe(p),{ok:Ae,format:m.format||Re,r:Math.min(255,Math.max(x.r,0)),g:Math.min(255,Math.max(x.g,0)),b:Math.min(255,Math.max(x.b,0)),a:p}}function u(m,x,p){return{r:Ie(m,255)*255,g:Ie(x,255)*255,b:Ie(p,255)*255}}function O(m,x,p){m=Ie(m,255),x=Ie(x,255),p=Ie(p,255);var L=Math.max(m,x,p),X=Math.min(m,x,p),H,Ae,Re=(L+X)/2;if(L==X)H=Ae=0;else{var Ze=L-X;switch(Ae=Re>.5?Ze/(2-L-X):Ze/(L+X),L){case m:H=(x-p)/Ze+(x1&&(ge-=1),ge<1/6?me+(ut-me)*6*ge:ge<1/2?ut:ge<2/3?me+(ut-me)*(2/3-ge)*6:me}if(x===0)L=X=H=p;else{var Re=p<.5?p*(1+x):p+x-p*x,Ze=2*p-Re;L=Ae(Ze,Re,m+1/3),X=Ae(Ze,Re,m),H=Ae(Ze,Re,m-1/3)}return{r:L*255,g:X*255,b:H*255}}function S(m,x,p){m=Ie(m,255),x=Ie(x,255),p=Ie(p,255);var L=Math.max(m,x,p),X=Math.min(m,x,p),H,Ae,Re=L,Ze=L-X;if(Ae=L===0?0:Ze/L,L==X)H=0;else{switch(L){case m:H=(x-p)/Ze+(x>1)+720)%360;--x;)L.h=(L.h+X)%360,H.push(c(L));return H}function we(m,x){x=x||6;for(var p=c(m).toHsv(),L=p.h,X=p.s,H=p.v,Ae=[],Re=1/x;x--;)Ae.push(c({h:L,s:X,v:H})),H=(H+Re)%1;return Ae}c.mix=function(m,x,p){p=p===0?0:p||50;var L=c(m).toRgb(),X=c(x).toRgb(),H=p/100,Ae={r:(X.r-L.r)*H+L.r,g:(X.g-L.g)*H+L.g,b:(X.b-L.b)*H+L.b,a:(X.a-L.a)*H+L.a};return c(Ae)},c.readability=function(m,x){var p=c(m),L=c(x);return(Math.max(p.getLuminance(),L.getLuminance())+.05)/(Math.min(p.getLuminance(),L.getLuminance())+.05)},c.isReadable=function(m,x,p){var L=c.readability(m,x),X,H;switch(H=!1,X=Ce(p),X.level+X.size){case"AAsmall":case"AAAlarge":H=L>=4.5;break;case"AAlarge":H=L>=3;break;case"AAAsmall":H=L>=7;break}return H},c.mostReadable=function(m,x,p){var L=null,X=0,H,Ae,Re,Ze;p=p||{},Ae=p.includeFallbackColors,Re=p.level,Ze=p.size;for(var me=0;meX&&(X=H,L=c(x[me]));return c.isReadable(m,L,{level:Re,size:Ze})||!Ae?L:(p.includeFallbackColors=!1,c.mostReadable(m,["#fff","#000"],p))};var re=c.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},Qe=c.hexNames=Ct(re);function Ct(m){var x={};for(var p in m)m.hasOwnProperty(p)&&(x[m[p]]=p);return x}function Xe(m){return m=parseFloat(m),(isNaN(m)||m<0||m>1)&&(m=1),m}function Ie(m,x){fr(m)&&(m="100%");var p=vr(m);return m=Math.min(x,Math.max(0,parseFloat(m))),p&&(m=parseInt(m*x,10)/100),Math.abs(m-x)<1e-6?1:m%x/parseFloat(x)}function Yt(m){return Math.min(1,Math.max(0,m))}function St(m){return parseInt(m,16)}function fr(m){return typeof m=="string"&&m.indexOf(".")!=-1&&parseFloat(m)===1}function vr(m){return typeof m=="string"&&m.indexOf("%")!=-1}function dt(m){return m.length==1?"0"+m:""+m}function Ot(m){return m<=1&&(m=m*100+"%"),m}function Dt(m){return Math.round(parseFloat(m)*255).toString(16)}function kt(m){return St(m)/255}var K=function(){var m="[-\\+]?\\d+%?",x="[-\\+]?\\d*\\.\\d+%?",p="(?:"+x+")|(?:"+m+")",L="[\\s|\\(]+("+p+")[,|\\s]+("+p+")[,|\\s]+("+p+")\\s*\\)?",X="[\\s|\\(]+("+p+")[,|\\s]+("+p+")[,|\\s]+("+p+")[,|\\s]+("+p+")\\s*\\)?";return{CSS_UNIT:new RegExp(p),rgb:new RegExp("rgb"+L),rgba:new RegExp("rgba"+X),hsl:new RegExp("hsl"+L),hsla:new RegExp("hsla"+X),hsv:new RegExp("hsv"+L),hsva:new RegExp("hsva"+X),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function B(m){return!!K.CSS_UNIT.exec(m)}function ot(m){m=m.replace(b,"").replace(g,"").toLowerCase();var x=!1;if(re[m])m=re[m],x=!0;else if(m=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var p;return(p=K.rgb.exec(m))?{r:p[1],g:p[2],b:p[3]}:(p=K.rgba.exec(m))?{r:p[1],g:p[2],b:p[3],a:p[4]}:(p=K.hsl.exec(m))?{h:p[1],s:p[2],l:p[3]}:(p=K.hsla.exec(m))?{h:p[1],s:p[2],l:p[3],a:p[4]}:(p=K.hsv.exec(m))?{h:p[1],s:p[2],v:p[3]}:(p=K.hsva.exec(m))?{h:p[1],s:p[2],v:p[3],a:p[4]}:(p=K.hex8.exec(m))?{r:St(p[1]),g:St(p[2]),b:St(p[3]),a:kt(p[4]),format:x?"name":"hex8"}:(p=K.hex6.exec(m))?{r:St(p[1]),g:St(p[2]),b:St(p[3]),format:x?"name":"hex"}:(p=K.hex4.exec(m))?{r:St(p[1]+""+p[1]),g:St(p[2]+""+p[2]),b:St(p[3]+""+p[3]),a:kt(p[4]+""+p[4]),format:x?"name":"hex8"}:(p=K.hex3.exec(m))?{r:St(p[1]+""+p[1]),g:St(p[2]+""+p[2]),b:St(p[3]+""+p[3]),format:x?"name":"hex"}:!1}function Ce(m){var x,p;return m=m||{level:"AA",size:"small"},x=(m.level||"AA").toUpperCase(),p=(m.size||"small").toLowerCase(),x!=="AA"&&x!=="AAA"&&(x="AA"),p!=="small"&&p!=="large"&&(p="small"),{level:x,size:p}}}}]); diff --git a/dist/1125.ce16fcce.chunk.css b/dist/3390.ce16fcce.chunk.css similarity index 100% rename from dist/1125.ce16fcce.chunk.css rename to dist/3390.ce16fcce.chunk.css diff --git a/dist/7859.fd105af1.chunk.css b/dist/3453.fd105af1.chunk.css similarity index 100% rename from dist/7859.fd105af1.chunk.css rename to dist/3453.fd105af1.chunk.css diff --git a/dist/4211.c8d267bf.chunk.css b/dist/3888.c8d267bf.chunk.css similarity index 100% rename from dist/4211.c8d267bf.chunk.css rename to dist/3888.c8d267bf.chunk.css diff --git a/dist/3914.c22fbfba.async.js b/dist/3914.c22fbfba.async.js deleted file mode 100644 index 6b5c9ac..0000000 --- a/dist/3914.c22fbfba.async.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[3914],{25414:function(){},86629:function(Et,We,m){"use strict";m.d(We,{Z:function(){return ca}});var O=m(96156),$=m(22122),Ne=m(54549),Ve=m(44545),St=m(49101),Ct=m(94184),U=m.n(Ct),F=m(28991),L=m(28481),ge=m(90484),Ee=m(81253),t=m(67294),xt=m(31131),$e=m(21770),Tt=m(63441),Se=(0,t.createContext)(null),Pt=t.forwardRef(function(e,a){var o=e.prefixCls,n=e.className,r=e.style,i=e.id,l=e.active,s=e.tabKey,c=e.children;return t.createElement("div",{id:i&&"".concat(i,"-panel-").concat(s),role:"tabpanel",tabIndex:l?0:-1,"aria-labelledby":i&&"".concat(i,"-tab-").concat(s),"aria-hidden":!l,style:r,className:U()(o,l&&"".concat(o,"-active"),n),ref:a},c)}),je=Pt,Zt=["key","forceRender","style","className"];function Nt(e){var a=e.id,o=e.activeKey,n=e.animated,r=e.tabPosition,i=e.destroyInactiveTabPane,l=t.useContext(Se),s=l.prefixCls,c=l.tabs,g=n.tabPane,C="".concat(s,"-tabpane");return t.createElement("div",{className:U()("".concat(s,"-content-holder"))},t.createElement("div",{className:U()("".concat(s,"-content"),"".concat(s,"-content-").concat(r),(0,O.Z)({},"".concat(s,"-content-animated"),g))},c.map(function(u){var S=u.key,Z=u.forceRender,N=u.style,R=u.className,w=(0,Ee.Z)(u,Zt),k=S===o;return t.createElement(Tt.Z,(0,$.Z)({key:S,visible:k,forceRender:Z,removeOnLeave:!!i,leavedClassName:"".concat(C,"-hidden")},n.tabPaneMotion),function(M,x){var W=M.style,B=M.className;return t.createElement(je,(0,$.Z)({},w,{prefixCls:C,id:a,tabKey:S,animated:g,active:k,style:(0,F.Z)((0,F.Z)({},N),W),className:U()(R,B),ref:x}))})})))}var Ue=m(85061),Fe=m(48717),ue=m(75164),Rt=m(42550),He={width:0,height:0,left:0,top:0};function It(e,a,o){return(0,t.useMemo)(function(){for(var n,r=new Map,i=a.get((n=e[0])===null||n===void 0?void 0:n.key)||He,l=i.left+i.width,s=0;sE?(P=h,I.current="x"):(P=d,I.current="y"),a(-P,-P)&&v.preventDefault()}var D=(0,t.useRef)(null);D.current={onTouchStart:x,onTouchMove:W,onTouchEnd:B,onWheel:T},t.useEffect(function(){function v(b){D.current.onTouchStart(b)}function h(b){D.current.onTouchMove(b)}function d(b){D.current.onTouchEnd(b)}function P(b){D.current.onWheel(b)}return document.addEventListener("touchmove",h,{passive:!1}),document.addEventListener("touchend",d,{passive:!1}),e.current.addEventListener("touchstart",v,{passive:!1}),e.current.addEventListener("wheel",P),function(){document.removeEventListener("touchmove",h),document.removeEventListener("touchend",d)}},[])}var Qe={width:0,height:0,left:0,top:0,right:0};function Mt(e,a,o,n,r,i,l){var s=l.tabs,c=l.tabPosition,g=l.rtl,C,u,S;return["top","bottom"].includes(c)?(C="width",u=g?"right":"left",S=Math.abs(o)):(C="height",u="top",S=-o),(0,t.useMemo)(function(){if(!s.length)return[0,0];for(var Z=s.length,N=Z,R=0;RS+a){N=R-1;break}}for(var k=0,M=Z-1;M>=0;M-=1){var x=e.get(s[M].key)||Qe;if(x[u]V?"left":"right"})}),b=(0,L.Z)(P,2),E=b[0],X=b[1],de=Xe(0,function(y,V){!d&&x&&x({direction:y>V?"top":"bottom"})}),te=(0,L.Z)(de,2),H=te[0],_=te[1],ve=(0,t.useState)([0,0]),oe=(0,L.Z)(ve,2),f=oe[0],z=oe[1],J=(0,t.useState)([0,0]),j=(0,L.Z)(J,2),ae=j[0],ce=j[1],ie=(0,t.useState)([0,0]),fe=(0,L.Z)(ie,2),Re=fe[0],Ie=fe[1],ke=(0,t.useState)([0,0]),me=(0,L.Z)(ke,2),Ae=me[0],Le=me[1],A=kt(new Map),ne=(0,L.Z)(A,2),be=ne[0],ua=ne[1],Te=It(i,be,ae[0]),le=xe(f,d),ee=xe(ae,d),Me=xe(Re,d),ot=xe(Ae,d),da=lehe?he:y}var it=(0,t.useRef)(),fa=(0,t.useState)(),lt=(0,L.Z)(fa,2),Pe=lt[0],st=lt[1];function Oe(){st(Date.now())}function Be(){window.clearTimeout(it.current)}Lt(T,function(y,V){function p(K,G){K(function(q){var Ca=we(q+G);return Ca})}return le>=ee?!1:(d?p(X,y):p(_,V),Be(),Oe(),!0)}),(0,t.useEffect)(function(){return Be(),Pe&&(it.current=window.setTimeout(function(){st(0)},100)),Be},[Pe]);var ma=Mt(Te,Q,d?E:H,ee,Me,ot,(0,F.Z)((0,F.Z)({},e),{},{tabs:i})),ct=(0,L.Z)(ma,2),ba=ct[0],pa=ct[1],ut=function(){var V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:C,p=Te.get(V)||{width:0,height:0,left:0,right:0,top:0};if(d){var K=E;u?p.rightE+Q&&(K=p.right+p.width-Q):p.left<-E?K=-p.left:p.left+p.width>-E+Q&&(K=-(p.left+p.width-Q)),_(0),X(we(K))}else{var G=H;p.top<-H?G=-p.top:p.top+p.height>-H+Q&&(G=-(p.top+p.height-Q)),X(0),_(we(G))}},Ze={};R==="top"||R==="bottom"?Ze[u?"marginRight":"marginLeft"]=w:Ze.marginTop=w;var dt=i.map(function(y,V){var p=y.key;return t.createElement(Wt,{id:c,prefixCls:r,key:p,tab:y,style:V===0?void 0:Ze,closable:y.closable,editable:Z,active:p===C,renderWrapper:k,removeAriaLabel:N==null?void 0:N.removeAriaLabel,onClick:function(G){M(p,G)},onFocus:function(){ut(p),Oe(),!!T.current&&(u||(T.current.scrollLeft=0),T.current.scrollTop=0)}})}),vt=function(){return ua(function(){var V=new Map;return i.forEach(function(p){var K,G=p.key,q=(K=D.current)===null||K===void 0?void 0:K.querySelector('[data-node-key="'.concat(G,'"]'));q&&V.set(G,{width:q.offsetWidth,height:q.offsetHeight,left:q.offsetLeft,top:q.offsetTop})}),V})};(0,t.useEffect)(function(){vt()},[i.map(function(y){return y.key}).join("_")]);var De=Ge(function(){var y=se(W),V=se(B),p=se(I);z([y[0]-V[0]-p[0],y[1]-V[1]-p[1]]);var K=se(h);Ie(K);var G=se(v);Le(G);var q=se(D);ce([q[0]-K[0],q[1]-K[1]]),vt()}),ha=i.slice(0,ba),ya=i.slice(pa+1),ft=[].concat((0,Ue.Z)(ha),(0,Ue.Z)(ya)),ga=(0,t.useState)(),mt=(0,L.Z)(ga,2),Ea=mt[0],Sa=mt[1],re=Te.get(C),bt=(0,t.useRef)();function pt(){ue.Z.cancel(bt.current)}(0,t.useEffect)(function(){var y={};return re&&(d?(u?y.right=re.right:y.left=re.left,y.width=re.width):(y.top=re.top,y.height=re.height)),pt(),bt.current=(0,ue.Z)(function(){Sa(y)}),pt},[re,d,u]),(0,t.useEffect)(function(){ut()},[C,qe(re),qe(Te),d]),(0,t.useEffect)(function(){De()},[u]);var ht=!!ft.length,ye="".concat(r,"-nav-wrap"),ze,Ke,yt,gt;return d?u?(Ke=E>0,ze=E+le0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},a;return e===!1?a={inkBar:!1,tabPane:!1}:e===!0?a={inkBar:!0,tabPane:!1}:a=(0,F.Z)({inkBar:!0},(0,ge.Z)(e)==="object"?e:{}),a.tabPaneMotion&&a.tabPane===void 0&&(a.tabPane=!0),!a.tabPaneMotion&&a.tabPane&&(a.tabPane=!1),a}var Ht=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName"],nt=0;function Gt(e,a){var o,n=e.id,r=e.prefixCls,i=r===void 0?"rc-tabs":r,l=e.className,s=e.items,c=e.direction,g=e.activeKey,C=e.defaultActiveKey,u=e.editable,S=e.animated,Z=e.tabPosition,N=Z===void 0?"top":Z,R=e.tabBarGutter,w=e.tabBarStyle,k=e.tabBarExtraContent,M=e.locale,x=e.moreIcon,W=e.moreTransitionName,B=e.destroyInactiveTabPane,I=e.renderTabBar,T=e.onChange,D=e.onTabClick,v=e.onTabScroll,h=e.getPopupContainer,d=e.popupClassName,P=(0,Ee.Z)(e,Ht),b=t.useMemo(function(){return(s||[]).filter(function(A){return A&&(0,ge.Z)(A)==="object"&&"key"in A})},[s]),E=c==="rtl",X=Ft(S),de=(0,t.useState)(!1),te=(0,L.Z)(de,2),H=te[0],_=te[1];(0,t.useEffect)(function(){_((0,xt.Z)())},[]);var ve=(0,$e.Z)(function(){var A;return(A=b[0])===null||A===void 0?void 0:A.key},{value:g,defaultValue:C}),oe=(0,L.Z)(ve,2),f=oe[0],z=oe[1],J=(0,t.useState)(function(){return b.findIndex(function(A){return A.key===f})}),j=(0,L.Z)(J,2),ae=j[0],ce=j[1];(0,t.useEffect)(function(){var A=b.findIndex(function(be){return be.key===f});if(A===-1){var ne;A=Math.max(0,Math.min(ae,b.length-1)),z((ne=b[A])===null||ne===void 0?void 0:ne.key)}ce(A)},[b.map(function(A){return A.key}).join("_"),f,ae]);var ie=(0,$e.Z)(null,{value:n}),fe=(0,L.Z)(ie,2),Re=fe[0],Ie=fe[1];(0,t.useEffect)(function(){n||(Ie("rc-tabs-".concat(nt)),nt+=1)},[]);function ke(A,ne){D==null||D(A,ne);var be=A!==f;z(A),be&&(T==null||T(A))}var me={id:Re,activeKey:f,animated:X,tabPosition:N,rtl:E,mobile:H},Ae,Le=(0,F.Z)((0,F.Z)({},me),{},{editable:u,locale:M,moreIcon:x,moreTransitionName:W,tabBarGutter:R,onTabClick:ke,onTabScroll:v,extra:k,style:w,panes:null,getPopupContainer:h,popupClassName:d});return t.createElement(Se.Provider,{value:{tabs:b,prefixCls:i}},t.createElement("div",(0,$.Z)({ref:a,id:n,className:U()(i,"".concat(i,"-").concat(N),(o={},(0,O.Z)(o,"".concat(i,"-mobile"),H),(0,O.Z)(o,"".concat(i,"-editable"),u),(0,O.Z)(o,"".concat(i,"-rtl"),E),o),l)},P),Ae,t.createElement(Ut,(0,$.Z)({},Le,{renderTabBar:I})),t.createElement(Nt,(0,$.Z)({destroyInactiveTabPane:B},me,{animated:X}))))}var Xt=t.forwardRef(Gt),Yt=Xt,Jt=Yt,Qt=m(53124),qt=m(97647),_t=m(33603),ea={motionAppear:!1,motionEnter:!0,motionLeave:!0};function ta(e){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},o;return a===!1?o={inkBar:!1,tabPane:!1}:a===!0?o={inkBar:!0,tabPane:!0}:o=(0,$.Z)({inkBar:!0},(0,ge.Z)(a)==="object"?a:{}),o.tabPane&&(o.tabPaneMotion=(0,$.Z)((0,$.Z)({},ea),{motionName:(0,_t.mL)(e,"switch")})),o}var aa=m(50344),na=function(e,a){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&a.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,n=Object.getOwnPropertySymbols(e);rWe-1)&&!!Tt&&Xt>=24;fn+=1;var Mn=h.isValidElement(je)&&(je.key||"".concat((nn=je.props)===null||nn===void 0?void 0:nn.name))||Tt;return h.isValidElement(je)&&wt?l.preserve?{itemDom:h.cloneElement(je,{hidden:!0,key:Mn||Tt}),hidden:!0,colSpan:Ae}:{itemDom:null,colSpan:0,hidden:!0}:{itemDom:je,colSpan:Ae,hidden:!1}}),It=pt.map(function(je,Tt){var Ke,E,Me=je.itemDom,nn=je.colSpan,Sn=Me==null||(Ke=Me.props)===null||Ke===void 0?void 0:Ke.hidden;if(Sn)return Me;var Ae=h.isValidElement(Me)&&(Me.key||"".concat((E=Me.props)===null||E===void 0?void 0:E.name))||Tt;24-pe%2417&&Ke(Ae.width)},children:(0,R.jsx)(rt.I,(0,c.Z)((0,c.Z)({isKeyPressSubmit:!0,preserve:tn},It),{},{className:fe()(Rt,It.className),onReset:gt,style:Gt,layout:E.layout,fieldProps:{style:{width:"100%"}},formItemProps:nn,groupProps:{titleStyle:{display:"inline-block",marginRight:16}},contentRender:function(Ae,qe,wt){return(0,R.jsx)(er,{spanSize:E,collapsed:l,form:wt,collapseRender:Kt,defaultCollapsed:X,onCollapse:We,optionRender:ct,submitter:qe,items:Ae,split:Xt,resetText:P.resetText,searchText:P.searchText,searchGutter:q,preserve:tn,ignoreRules:sn,showLength:Me,showHiddenNum:pt})}}))},"resize-observer")}var Wn=e(57663),kn=e(71577),wr=e(35556),S=e(75899),N=e(85061),G=e(92210),y=e(50344),x=e(161),L=["onFinish","step","formRef","title","stepProps"];function ue(P){var l=(0,h.useRef)(),D=(0,h.useContext)(et),F=P.onFinish,X=P.step,le=P.formRef,K=P.title,ze=P.stepProps,q=(0,H.Z)(P,L);return(0,te.ET)(!q.submitter,"StepForm \u4E0D\u5305\u542B\u63D0\u4EA4\u6309\u94AE\uFF0C\u8BF7\u5728 StepsForm \u4E0A"),(0,h.useImperativeHandle)(le,function(){return l.current}),(0,h.useEffect)(function(){if(!!(P.name||P.step)){var ke=(P.name||P.step).toString();return D==null||D.regForm(ke,P),function(){D==null||D.unRegForm(ke)}}},[]),D&&(D==null?void 0:D.formArrayRef)&&(D.formArrayRef.current[X||0]=l),(0,R.jsx)(rt.I,(0,c.Z)({formRef:l,onFinish:function(){var ke=(0,nt.Z)((0,ft.Z)().mark(function ct(Kt){var gt;return(0,ft.Z)().wrap(function(Pt){for(;;)switch(Pt.prev=Pt.next){case 0:if(q.name&&(D==null||D.onFormFinish(q.name,Kt)),!F){Pt.next=9;break}return D==null||D.setLoading(!0),Pt.next=5,F==null?void 0:F(Kt);case 5:return gt=Pt.sent,gt&&(D==null||D.next()),D==null||D.setLoading(!1),Pt.abrupt("return");case 9:(D==null?void 0:D.lastStep)||D==null||D.next();case 10:case"end":return Pt.stop()}},ct)}));function Ye(ct){return ke.apply(this,arguments)}return Ye}(),layout:"vertical"},q))}var xe=ue,Xe=["current","onCurrentChange","submitter","stepsFormRender","stepsRender","stepFormRender","stepsProps","onFinish","formProps","containerStyle","formRef","formMapRef"],et=h.createContext(void 0),de={horizontal:function(l){var D=l.stepsDom,F=l.formDom;return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(C.Z,{gutter:{xs:8,sm:16,md:24},children:(0,R.jsx)(Ze.Z,{span:24,children:D})}),(0,R.jsx)(C.Z,{gutter:{xs:8,sm:16,md:24},children:(0,R.jsx)(Ze.Z,{span:24,children:F})})]})},vertical:function(l){var D=l.stepsDom,F=l.formDom;return(0,R.jsxs)(C.Z,{align:"stretch",wrap:!0,gutter:{xs:8,sm:16,md:24},children:[(0,R.jsx)(Ze.Z,{xxl:4,xl:6,lg:7,md:8,sm:10,xs:12,children:h.cloneElement(D,{style:{height:"100%"}})}),(0,R.jsx)(Ze.Z,{children:(0,R.jsx)("div",{style:{display:"flex",alignItems:"center",width:"100%",height:"100%"},children:F})})]})}};function _e(P){var l=(0,h.useContext)(Dn.ZP.ConfigContext),D=l.getPrefixCls,F=D("pro-steps-form"),X=P.current,le=P.onCurrentChange,K=P.submitter,ze=P.stepsFormRender,q=P.stepsRender,ke=P.stepFormRender,Ye=P.stepsProps,ct=P.onFinish,Kt=P.formProps,gt=P.containerStyle,We=P.formRef,Pt=P.formMapRef,Qt=(0,H.Z)(P,Xe),Gt=(0,h.useRef)(new Map),Xt=(0,h.useRef)(new Map),fn=(0,h.useRef)([]),tn=(0,h.useState)([]),sn=(0,V.Z)(tn,2),pe=sn[0],pt=sn[1],It=(0,h.useState)(!1),At=(0,V.Z)(It,2),Rt=At[0],lt=At[1],je=(0,Be.YB)(),Tt=(0,Ue.Z)(0,{value:P.current,onChange:P.onCurrentChange}),Ke=(0,V.Z)(Tt,2),E=Ke[0],Me=Ke[1],nn=(0,h.useMemo)(function(){return de[(Ye==null?void 0:Ye.direction)||"horizontal"]},[Ye==null?void 0:Ye.direction]),Sn=(0,h.useMemo)(function(){return E===pe.length-1},[pe.length,E]),Ae=(0,h.useCallback)(function(ee,Se){Xt.current.has(ee)||pt(function(Jt){return[].concat((0,N.Z)(Jt),[ee])}),Xt.current.set(ee,Se)},[]),qe=(0,h.useCallback)(function(ee){pt(function(Se){return Se.filter(function(Jt){return Jt!==ee})}),Xt.current.delete(ee),Gt.current.delete(ee)},[]);(0,h.useImperativeHandle)(Pt,function(){return fn.current}),(0,h.useImperativeHandle)(We,function(){var ee;return(ee=fn.current[E||0])===null||ee===void 0?void 0:ee.current},[E]);var wt=(0,h.useCallback)(function(){var ee=(0,nt.Z)((0,ft.Z)().mark(function Se(Jt,Xn){var xr,Sr;return(0,ft.Z)().wrap(function(Gn){for(;;)switch(Gn.prev=Gn.next){case 0:if(Gt.current.set(Jt,Xn),!(!Sn||!ct)){Gn.next=3;break}return Gn.abrupt("return");case 3:return lt(!0),xr=G.T.apply(void 0,[{}].concat((0,N.Z)(Array.from(Gt.current.values())))),Gn.prev=5,Gn.next=8,ct(xr);case 8:Sr=Gn.sent,Sr&&(Me(0),fn.current.forEach(function(Nt){var Ee;return(Ee=Nt.current)===null||Ee===void 0?void 0:Ee.resetFields()})),Gn.next=15;break;case 12:Gn.prev=12,Gn.t0=Gn.catch(5),console.log(Gn.t0);case 15:return Gn.prev=15,lt(!1),Gn.finish(15);case 18:case"end":return Gn.stop()}},Se,null,[[5,12,15,18]])}));return function(Se,Jt){return ee.apply(this,arguments)}}(),[Sn,ct,lt,Me]),Mn=(0,h.useMemo)(function(){return(0,R.jsx)("div",{className:"".concat(F,"-steps-container"),style:{maxWidth:Math.min(pe.length*320,1160)},children:(0,R.jsx)(S.Z,(0,c.Z)((0,c.Z)({},Ye),{},{current:E,onChange:void 0,children:pe.map(function(ee){var Se=Xt.current.get(ee);return(0,R.jsx)(S.Z.Step,(0,c.Z)({title:Se==null?void 0:Se.title},Se==null?void 0:Se.stepProps),ee)})}))})},[pe,F,E,Ye]),_t=(0,an.J)(function(){var ee,Se=fn.current[E];(ee=Se.current)===null||ee===void 0||ee.submit()}),Nn=(0,an.J)(function(){E<1||Me(E-1)}),Hn=(0,h.useMemo)(function(){return K!==!1&&(0,R.jsx)(kn.Z,(0,c.Z)((0,c.Z)({type:"primary",loading:Rt},K==null?void 0:K.submitButtonProps),{},{onClick:function(){var Se;K==null||(Se=K.onSubmit)===null||Se===void 0||Se.call(K),_t()},children:je.getMessage("stepsForm.next","\u4E0B\u4E00\u6B65")}),"next")},[je,Rt,_t,K]),n=(0,h.useMemo)(function(){return K!==!1&&(0,R.jsx)(kn.Z,(0,c.Z)((0,c.Z)({},K==null?void 0:K.resetButtonProps),{},{onClick:function(){var Se;Nn(),K==null||(Se=K.onReset)===null||Se===void 0||Se.call(K)},children:je.getMessage("stepsForm.prev","\u4E0A\u4E00\u6B65")}),"pre")},[je,Nn,K]),d=(0,h.useMemo)(function(){return K!==!1&&(0,R.jsx)(kn.Z,(0,c.Z)((0,c.Z)({type:"primary",loading:Rt},K==null?void 0:K.submitButtonProps),{},{onClick:function(){var Se;K==null||(Se=K.onSubmit)===null||Se===void 0||Se.call(K),_t()},children:je.getMessage("stepsForm.submit","\u63D0\u4EA4")}),"submit")},[je,Rt,_t,K]),m=(0,an.J)(function(){E>pe.length-2||Me(E+1)}),Y=(0,h.useMemo)(function(){var ee=[],Se=E||0;if(Se<1?ee.push(Hn):Se+1===pe.length?ee.push(n,d):ee.push(n,Hn),ee=ee.filter(h.isValidElement),K&&K.render){var Jt,Xn={form:(Jt=fn.current[E])===null||Jt===void 0?void 0:Jt.current,onSubmit:_t,step:E,onPre:Nn};return K.render(Xn,ee)}return K&&(K==null?void 0:K.render)===!1?null:ee},[pe.length,Hn,_t,n,Nn,E,d,K]),bt=(0,h.useMemo)(function(){return(0,y.Z)(P.children).map(function(ee,Se){var Jt=ee.props,Xn=Jt.name||"".concat(Se),xr=E===Se,Sr=xr?{contentRender:ke,submitter:!1}:{};return(0,R.jsx)("div",{className:fe()("".concat(F,"-step"),(0,Fe.Z)({},"".concat(F,"-step-active"),xr)),children:h.cloneElement(ee,(0,c.Z)((0,c.Z)((0,c.Z)((0,c.Z)({},Sr),Kt),Jt),{},{name:Xn,step:Se,key:Xn}))},Xn)})},[Kt,F,P.children,E,ke]),kt=(0,h.useMemo)(function(){return q?q(pe.map(function(ee){var Se;return{key:ee,title:(Se=Xt.current.get(ee))===null||Se===void 0?void 0:Se.title}}),Mn):Mn},[pe,Mn,q]),un=(0,h.useMemo)(function(){return(0,R.jsxs)("div",{className:"".concat(F,"-container"),style:gt,children:[bt,ze?null:(0,R.jsx)(ln.Z,{children:Y})]})},[gt,bt,F,ze,Y]),Mt=(0,h.useMemo)(function(){var ee={stepsDom:kt,formDom:un};return ze?ze(nn(ee),Y):nn(ee)},[kt,un,nn,ze,Y]);return(0,R.jsx)("div",{className:F,children:(0,R.jsx)(De.Z.Provider,(0,c.Z)((0,c.Z)({},Qt),{},{children:(0,R.jsx)(et.Provider,{value:{loading:Rt,setLoading:lt,regForm:Ae,keyArray:pe,next:m,formArrayRef:fn,formMapRef:Xt,lastStep:Sn,unRegForm:qe,onFormFinish:wt},children:Mt})}))})}function jt(P){return(0,R.jsx)(Be.oK,{children:(0,R.jsx)(_e,(0,c.Z)({},P))})}jt.StepForm=xe,jt.useForm=De.Z.useForm;var Ie=["steps","columns","forceUpdate","grid"],Cn=function(l){var D=l.steps,F=l.columns,X=l.forceUpdate,le=l.grid,K=(0,H.Z)(l,Ie),ze=(0,we.Z)(K),q=(0,h.useCallback)(function(Ye){var ct,Kt;(ct=(Kt=ze.current).onCurrentChange)===null||ct===void 0||ct.call(Kt,Ye),X([])},[X,ze]),ke=(0,h.useMemo)(function(){return D==null?void 0:D.map(function(Ye,ct){return(0,h.createElement)(zr,(0,c.Z)((0,c.Z)({grid:le},Ye),{},{key:ct,layoutType:"StepForm",columns:F[ct]}))})},[F,le,D]);return(0,R.jsx)(jt,(0,c.Z)((0,c.Z)({},K),{},{onCurrentChange:q,children:ke}))},vn=Cn,ur=function(l){var D=l.children;return(0,R.jsx)(R.Fragment,{children:D})},In=ur,Ln=e(97462),tr=function(l,D){var F=D.genItems;if(l.valueType==="dependency"){var X,le,K,ze=(X=l.getFieldProps)===null||X===void 0?void 0:X.call(l);return(0,te.ET)(Array.isArray((le=l.name)!==null&&le!==void 0?le:ze==null?void 0:ze.name),'SchemaForm: fieldProps.name should be NamePath[] when valueType is "dependency"'),(0,te.ET)(typeof l.columns=="function",'SchemaForm: columns should be a function when valueType is "dependency"'),Array.isArray((K=l.name)!==null&&K!==void 0?K:ze==null?void 0:ze.name)?(0,h.createElement)(Ln.Z,(0,c.Z)((0,c.Z)({name:l.name},ze),{},{key:l.key}),function(q){return!l.columns||typeof l.columns!="function"?null:F(l.columns(q))}):null}return!0},Qn=function(l){if(l.valueType==="divider"){var D;return(0,h.createElement)(st.Z,(0,c.Z)((0,c.Z)({},(D=l.getFieldProps)===null||D===void 0?void 0:D.call(l)),{},{key:l.key}))}return!0},Un=e(31649),nr=function(l,D){var F=D.action,X=D.formRef,le=D.type,K=D.originItem,ze=(0,c.Z)((0,c.Z)({},(0,u.Z)(l,["dataIndex","width","render","renderFormItem","renderText","title"])),{},{name:l.dataIndex,width:l.width,render:(l==null?void 0:l.render)?function(ct,Kt,gt){var We,Pt,Qt;return l==null||(We=l.render)===null||We===void 0?void 0:We.call(l,ct,Kt,gt,F==null?void 0:F.current,(0,c.Z)((0,c.Z)({type:le},l),{},{formItemProps:(Pt=l.getFormItemProps)===null||Pt===void 0?void 0:Pt.call(l),fieldProps:(Qt=l.getFieldProps)===null||Qt===void 0?void 0:Qt.call(l)}))}:void 0}),q=function(){return(0,R.jsx)(Un.Z,(0,c.Z)((0,c.Z)({},ze),{},{ignoreFormItem:!0}))},ke=(l==null?void 0:l.renderFormItem)?function(ct,Kt){var gt,We,Pt,Qt=(0,Pe.Z)((0,c.Z)((0,c.Z)({},Kt),{},{onChange:void 0}));return l==null||(gt=l.renderFormItem)===null||gt===void 0?void 0:gt.call(l,(0,c.Z)((0,c.Z)({type:le},l),{},{formItemProps:(We=l.getFormItemProps)===null||We===void 0?void 0:We.call(l),fieldProps:(Pt=l.getFieldProps)===null||Pt===void 0?void 0:Pt.call(l),originProps:K}),(0,c.Z)((0,c.Z)({},Qt),{},{defaultRender:q,type:le}),X.current)}:void 0;if(l==null?void 0:l.renderFormItem){var Ye=ke==null?void 0:ke(null,{});if(!Ye||l.ignoreFormItem)return Ye}return(0,h.createElement)(Un.Z,(0,c.Z)((0,c.Z)({},ze),{},{key:"".concat(l.key,"-").concat(l.index),renderFormItem:ke}))},wn=e(59962),Rr=function(l,D){var F=D.genItems;if(l.valueType==="formList"&&l.dataIndex){var X,le,K,ze,q,ke,Ye,ct,Kt,gt,We;return!l.columns||!Array.isArray(l.columns)?null:(0,R.jsx)(wn.u,(0,c.Z)((0,c.Z)({name:l.dataIndex,label:l.label,initialValue:l.initialValue,colProps:l.colProps,rowProps:l.rowProps},(X=l.getFieldProps)===null||X===void 0?void 0:X.call(l)),{},{isValidateList:(le=((q=l.getFormItemProps)===null||q===void 0?void 0:q.call(l))||((ke=l.getFieldProps)===null||ke===void 0?void 0:ke.call(l)))===null||le===void 0||(K=le.rules)===null||K===void 0||(ze=K[0])===null||ze===void 0?void 0:ze.required,emptyListMessage:(Ye=((gt=l.getFormItemProps)===null||gt===void 0?void 0:gt.call(l))||((We=l.getFieldProps)===null||We===void 0?void 0:We.call(l)))===null||Ye===void 0||(ct=Ye.rules)===null||ct===void 0||(Kt=ct[0])===null||Kt===void 0?void 0:Kt.message,children:F(l.columns)}),l.key)}return!0},pr=e(47673),Jn=e(4107),Bn=e(64893),$t=e(2514),Tr=["children","value","valuePropName","onChange","fieldProps","space","type","transform","convertValue"],lr=["children","space","valuePropName"],yr={space:ln.Z,group:Jn.Z.Group};function Vn(P){var l=arguments.length<=1?void 0:arguments[1];return l&&l.target&&P in l.target?l.target[P]:l}var xn=function(l){var D=l.children,F=l.value,X=F===void 0?[]:F,le=l.valuePropName,K=l.onChange,ze=l.fieldProps,q=l.space,ke=l.type,Ye=ke===void 0?"space":ke,ct=l.transform,Kt=l.convertValue,gt=(0,H.Z)(l,Tr),We=(0,an.J)(function(pe,pt){var It,At=(0,N.Z)(X);At[pt]=Vn(le||"value",pe),K==null||K(At),ze==null||(It=ze.onChange)===null||It===void 0||It.call(ze,At)}),Pt=-1,Qt=(0,y.Z)(D).map(function(pe){if(h.isValidElement(pe)){var pt,It,At;Pt+=1;var Rt=Pt,lt=(pe==null||(pt=pe.type)===null||pt===void 0?void 0:pt.displayName)==="ProFormComponent"||(pe==null||(It=pe.props)===null||It===void 0?void 0:It.readonly),je=lt?(0,c.Z)((0,c.Z)({key:Rt,ignoreFormItem:!0},pe.props||{}),{},{fieldProps:(0,c.Z)((0,c.Z)({},pe==null||(At=pe.props)===null||At===void 0?void 0:At.fieldProps),{},{onChange:function(){We(arguments.length<=0?void 0:arguments[0],Rt)}}),value:X==null?void 0:X[Rt],onChange:void 0}):(0,c.Z)((0,c.Z)({key:Rt},pe.props||{}),{},{value:X==null?void 0:X[Rt],onChange:function(Ke){var E,Me;We(Ke,Rt),(E=(Me=pe.props).onChange)===null||E===void 0||E.call(Me,Ke)}});return h.cloneElement(pe,je)}return pe}),Gt=yr[Ye],Xt=(0,$t.zx)(gt),fn=Xt.RowWrapper,tn=(0,h.useMemo)(function(){return(0,c.Z)({},Ye==="group"?{compact:!0}:{})},[Ye]),sn=(0,h.useCallback)(function(pe){var pt=pe.children;return(0,R.jsx)(Gt,(0,c.Z)((0,c.Z)((0,c.Z)({},tn),q),{},{align:"start",children:pt}))},[Gt,q,tn]);return(0,R.jsx)(fn,{Wrapper:sn,children:Qt})},zt=h.forwardRef(function(P,l){var D=P.children,F=P.space,X=P.valuePropName,le=(0,H.Z)(P,lr);return(0,h.useImperativeHandle)(l,function(){return{}}),(0,R.jsx)(xn,(0,c.Z)((0,c.Z)((0,c.Z)({space:F,valuePropName:X},le.fieldProps),{},{onChange:void 0},le),{},{children:D}))}),$n=(0,Bn.G)(zt),ir=$n,Mr=function(l,D){var F=D.genItems;if(l.valueType==="formSet"&&l.dataIndex){var X,le;return!l.columns||!Array.isArray(l.columns)?null:(0,h.createElement)(ir,(0,c.Z)((0,c.Z)({},(X=l.getFormItemProps)===null||X===void 0?void 0:X.call(l)),{},{key:l.key,initialValue:l.initialValue,name:l.dataIndex,label:l.label,colProps:l.colProps,rowProps:l.rowProps},(le=l.getFieldProps)===null||le===void 0?void 0:le.call(l)),F(l.columns))}return!0},Cr=e(24739),rr=function(l,D){var F=D.genItems;if(l.valueType==="group"){var X;return!l.columns||!Array.isArray(l.columns)?null:(0,R.jsx)(Cr.UW,(0,c.Z)((0,c.Z)({label:l.label,colProps:l.colProps,rowProps:l.rowProps},(X=l.getFieldProps)===null||X===void 0?void 0:X.call(l)),{},{children:F(l.columns)}),l.key)}return!0},Dr=function(l){return l.valueType&&typeof l.valueType=="string"&&["index","indexBorder","option"].includes(l==null?void 0:l.valueType)?null:!0},Fr=[Dr,rr,Rr,Mr,Qn,tr],Zr=function(l,D){for(var F=0;F=0&&hr<=24),or));return(0,a.jsx)("div",{style:(0,u.Z)((0,u.Z)((0,u.Z)({},Or),Wr($r>0,{paddingRight:$r/2,paddingLeft:$r/2})),Wr(Ar>0,{paddingTop:Ar/2,paddingBottom:Ar/2})),className:ra,children:p.cloneElement(qn)},"pro-card-col-".concat((qn==null?void 0:qn.key)||yt))}return qn}),Yr=Ue()("".concat(Wt),g,(i={},(0,Q.Z)(i,"".concat(Wt,"-border"),B),(0,Q.Z)(i,"".concat(Wt,"-contain-card"),Gr),(0,Q.Z)(i,"".concat(Wt,"-loading"),Ve),(0,Q.Z)(i,"".concat(Wt,"-split"),Re==="vertical"||Re==="horizontal"),(0,Q.Z)(i,"".concat(Wt,"-ghost"),Zt),(0,Q.Z)(i,"".concat(Wt,"-hoverable"),On),(0,Q.Z)(i,"".concat(Wt,"-size-").concat(Le),Le),(0,Q.Z)(i,"".concat(Wt,"-type-").concat(hn),hn),(0,Q.Z)(i,"".concat(Wt,"-collapse"),br),(0,Q.Z)(i,"".concat(Wt,"-checked"),dn),i)),Qr=Ue()("".concat(Wt,"-body"),(r={},(0,Q.Z)(r,"".concat(Wt,"-body-center"),be==="center"),(0,Q.Z)(r,"".concat(Wt,"-body-direction-column"),Re==="horizontal"||Fn==="column"),(0,Q.Z)(r,"".concat(Wt,"-body-wrap"),z&&Gr),r)),qr=(0,u.Z)((0,u.Z)((0,u.Z)({},Wr($r>0,{marginRight:-$r/2,marginLeft:-$r/2})),Wr(Ar>0,{marginTop:-Ar/2,marginBottom:-Ar/2})),Z),ea=p.isValidElement(Ve)?Ve:(0,a.jsx)(J,{prefix:Wt,style:Z.padding===0||Z.padding==="0px"?{padding:24}:void 0}),An=Yt&&jn===void 0&&(bn?bn({collapsed:br}):(0,a.jsx)(an.Z,{rotate:br?void 0:90,className:"".concat(Wt,"-collapsible-icon")}));return(0,a.jsxs)("div",(0,u.Z)((0,u.Z)({className:Yr,style:T,ref:t,onClick:function(yt){var zn;cn==null||cn(yt),gn==null||(zn=gn.onClick)===null||zn===void 0||zn.call(gn,yt)}},(0,te.Z)(gn,["prefixCls","colSpan"])),{},{children:[(w||M||An)&&(0,a.jsxs)("div",{className:Ue()("".concat(Wt,"-header"),(s={},(0,Q.Z)(s,"".concat(Wt,"-header-border"),ye||hn==="inner"),(0,Q.Z)(s,"".concat(Wt,"-header-collapsible"),An),s)),style:W,onClick:function(){An&&fr(!br)},children:[(0,a.jsxs)("div",{className:"".concat(Wt,"-title"),children:[An,(0,a.jsx)(Ct.Z,{label:w,tooltip:vt||A,subTitle:b})]}),M&&(0,a.jsx)("div",{className:"".concat(Wt,"-extra"),children:M})]}),qt?(0,a.jsx)("div",{className:"".concat(Wt,"-tabs"),children:(0,a.jsx)(nt.Z,(0,u.Z)((0,u.Z)({onChange:qt.onChange},qt),{},{items:Br,children:Ve?ea:j}))}):(0,a.jsx)("div",{className:Qr,style:qr,children:Ve?ea:_r}),(0,a.jsx)(se,{actions:Te,prefixCls:Wt})]}))}),ht=St,Ot=e(99509),dt=function(t){var i=(0,p.useContext)(R.ZP.ConfigContext),r=i.getPrefixCls,s=r("pro-card-divider"),g=t.className,T=t.style,v=T===void 0?{}:T,Z=t.type,O=Ue()(s,g,(0,Q.Z)({},"".concat(s,"-").concat(Z),Z));return(0,a.jsx)("div",{className:O,style:v})},ln=dt,Bt=function(t){return(0,a.jsx)(ht,(0,u.Z)({bodyStyle:{padding:0}},t))},Qe=ht;Qe.isProCard=!0,Qe.Divider=ln,Qe.TabPane=mt,Qe.Group=Bt;var Ge=Qe,U=Ge,oe=e(952),$=e(78775),re=e(86671),ge=e(51812),me=e(56725),ot=e(27068),Dt=e(78164),en=e(30939),er=e(17462),yn=e(76772),Pr=e(49111),Wn=e(19650),kn=e(60870),wr=function(t){var i=t.intl,r=t.onCleanSelected;return[(0,a.jsx)("a",{onClick:r,children:i.getMessage("alert.clear","\u6E05\u7A7A")},"0")]};function S(o){var t=o.selectedRowKeys,i=t===void 0?[]:t,r=o.onCleanSelected,s=o.alwaysShowAlert,g=o.selectedRows,T=o.alertInfoRender,v=T===void 0?function(z){var be=z.intl;return(0,a.jsxs)(Wn.Z,{children:[be.getMessage("alert.selected","\u5DF2\u9009\u62E9"),i.length,be.getMessage("alert.item","\u9879"),"\xA0\xA0"]})}:T,Z=o.alertOptionRender,O=Z===void 0?wr:Z,W=(0,$.YB)(),w=O&&O({onCleanSelected:r,selectedRowKeys:i,selectedRows:g,intl:W}),b=(0,p.useContext)(R.ZP.ConfigContext),M=b.getPrefixCls,A=M("pro-table-alert");if(v===!1)return null;var _=v({intl:W,selectedRowKeys:i,selectedRows:g,onCleanSelected:r});return _===!1||i.length<1&&!s?null:(0,a.jsx)("div",{className:A,children:(0,a.jsx)(yn.Z,{message:(0,a.jsxs)("div",{className:"".concat(A,"-info"),children:[(0,a.jsx)("div",{className:"".concat(A,"-info-content"),children:_}),w?(0,a.jsx)("div",{className:"".concat(A,"-info-option"),children:w}):null]}),type:"info"})})}var N=S,G=e(5991),y=e(6610),x=e(10379),L=e(44144),ue=e(60249),xe=function(t){return t!=null};function Xe(o,t,i){var r,s;if(o===!1)return!1;var g=t.total,T=t.current,v=t.pageSize,Z=t.setPageInfo,O=(0,De.Z)(o)==="object"?o:{};return(0,u.Z)((0,u.Z)({showTotal:function(w,b){return"".concat(i.getMessage("pagination.total.range","\u7B2C")," ").concat(b[0],"-").concat(b[1]," ").concat(i.getMessage("pagination.total.total","\u6761/\u603B\u5171")," ").concat(w," ").concat(i.getMessage("pagination.total.item","\u6761"))},total:g},O),{},{current:o!==!0&&o&&(r=o.current)!==null&&r!==void 0?r:T,pageSize:o!==!0&&o&&(s=o.pageSize)!==null&&s!==void 0?s:v,onChange:function(w,b){var M=o.onChange;M==null||M(w,b||20),(b!==v||T!==w)&&Z({pageSize:b,current:w})}})}function et(o,t,i){var r=(0,u.Z)((0,u.Z)({},i.editableUtils),{},{pageInfo:t.pageInfo,reload:function(){var s=(0,f.Z)((0,c.Z)().mark(function T(v){return(0,c.Z)().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:if(!v){O.next=3;break}return O.next=3,t.setPageInfo({current:1});case 3:t==null||t.reload();case 4:case"end":return O.stop()}},T)}));function g(T){return s.apply(this,arguments)}return g}(),reloadAndRest:function(){var s=(0,f.Z)((0,c.Z)().mark(function T(){return(0,c.Z)().wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:return i.onCleanSelected(),Z.next=3,t.setPageInfo({current:1});case 3:return Z.next=5,t==null?void 0:t.reload();case 5:case"end":return Z.stop()}},T)}));function g(){return s.apply(this,arguments)}return g}(),reset:function(){var s=(0,f.Z)((0,c.Z)().mark(function T(){var v;return(0,c.Z)().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return O.next=2,i.resetAll();case 2:return O.next=4,t==null||(v=t.reset)===null||v===void 0?void 0:v.call(t);case 4:return O.next=6,t==null?void 0:t.reload();case 6:case"end":return O.stop()}},T)}));function g(){return s.apply(this,arguments)}return g}(),fullScreen:function(){return i.fullScreen()},clearSelected:function(){return i.onCleanSelected()},setPageInfo:function(g){return t.setPageInfo(g)}});o.current=r}function de(o,t){return t.filter(function(i){return i}).length<1?o:t.reduce(function(i,r){return r(i)},o)}var _e=function(t,i){return i===void 0?!1:typeof i=="boolean"?i:i[t]},jt=function(t){var i;return t&&(0,De.Z)(t)==="object"&&(t==null||(i=t.props)===null||i===void 0?void 0:i.colSpan)},Ie=function(t,i){return t?Array.isArray(t)?t.join("-"):t.toString():"".concat(i)};function Cn(o){return Array.isArray(o)?o.join(","):o==null?void 0:o.toString()}function vn(o){var t={},i={};return o.forEach(function(r){var s=Cn(r.dataIndex);if(!!s){if(r.filters){var g=r.defaultFilteredValue;g===void 0?t[s]=null:t[s]=r.defaultFilteredValue}r.sorter&&r.defaultSortOrder&&(i[s]=r.defaultSortOrder)}}),{sort:i,filter:t}}function ur(o,t){var i=o.oldIndex,r=o.newIndex;if(i!==r){var s=arrayMoveImmutable(_toConsumableArray(t||[]),i,r).filter(function(g){return!!g});return _toConsumableArray(s)}return null}var In=e(64107),Ln=e(85378);function tr(o){var t=o.replace(/[A-Z]/g,function(i){return"-".concat(i.toLowerCase())});return t.startsWith("-")&&(t=t.slice(1)),t}var Qn=function(t,i){return!t&&i!==!1?(i==null?void 0:i.filterType)==="light"?"LightFilter":"QueryFilter":"Form"},Un=function(t,i,r){return!t&&r==="LightFilter"?(0,te.Z)((0,u.Z)({},i),["labelWidth","defaultCollapsed","filterType"]):t?{}:(0,te.Z)((0,u.Z)({labelWidth:i?i==null?void 0:i.labelWidth:void 0,defaultCollapsed:!0},i),["filterType"])},nr=function(t,i){return t?(0,te.Z)(i,["ignoreRules"]):(0,u.Z)({ignoreRules:!0},i)},wn=function(t){var i,r=t.onSubmit,s=t.formRef,g=t.dateFormatter,T=g===void 0?"string":g,v=t.type,Z=t.columns,O=t.action,W=t.ghost,w=t.manualRequest,b=t.onReset,M=t.submitButtonLoading,A=t.search,_=t.form,z=t.bordered,be=v==="form",Ve=function(){var B=(0,f.Z)((0,c.Z)().mark(function j(Le,Te){return(0,c.Z)().wrap(function(Zt){for(;;)switch(Zt.prev=Zt.next){case 0:r&&r(Le,Te);case 1:case"end":return Zt.stop()}},j)}));return function(Le,Te){return B.apply(this,arguments)}}(),Oe=(0,p.useContext)(R.ZP.ConfigContext),ae=Oe.getPrefixCls,vt=(0,p.useMemo)(function(){return Z.filter(function(B){return!(B===ve.Z.EXPAND_COLUMN||B===ve.Z.SELECTION_COLUMN||(B.hideInSearch||B.search===!1)&&v!=="form"||v==="form"&&B.hideInForm)}).map(function(B){var j,Le=!B.valueType||["textarea","jsonCode","code"].includes(B==null?void 0:B.valueType)&&v==="table"?"text":B==null?void 0:B.valueType,Te=(B==null?void 0:B.key)||(B==null||(j=B.dataIndex)===null||j===void 0?void 0:j.toString());return(0,u.Z)((0,u.Z)((0,u.Z)({},B),{},{width:void 0},B.search?B.search:{}),{},{valueType:Le,proFieldProps:(0,u.Z)((0,u.Z)({},B.proFieldProps),{},{proFieldKey:Te?"table-field-".concat(Te):void 0})})})},[Z,v]),Re=ae("pro-table-search"),Je=ae("pro-table-form"),ye=(0,p.useMemo)(function(){return Qn(be,A)},[A,be]),I=(0,p.useMemo)(function(){return{submitter:{submitButtonProps:{loading:M}}}},[M]);return(0,a.jsx)("div",{className:Ue()((i={},(0,Q.Z)(i,ae("pro-card"),!0),(0,Q.Z)(i,"".concat(ae("pro-card"),"-border"),!!z),(0,Q.Z)(i,"".concat(ae("pro-card"),"-bordered"),!!z),(0,Q.Z)(i,"".concat(ae("pro-card"),"-ghost"),!!W),(0,Q.Z)(i,Re,!0),(0,Q.Z)(i,Je,be),(0,Q.Z)(i,ae("pro-table-search-".concat(tr(ye))),!0),(0,Q.Z)(i,"".concat(Re,"-ghost"),W),(0,Q.Z)(i,A==null?void 0:A.className,A!==!1&&(A==null?void 0:A.className)),i)),children:(0,a.jsx)(In.Z,(0,u.Z)((0,u.Z)((0,u.Z)((0,u.Z)({layoutType:ye,columns:vt,type:v},I),Un(be,A,ye)),nr(be,_||{})),{},{formRef:s,action:O,dateFormatter:T,onInit:function(j){if(v!=="form"){var Le,Te,ce,Zt=(Le=O.current)===null||Le===void 0?void 0:Le.pageInfo,Et=j.current,On=Et===void 0?Zt==null?void 0:Zt.current:Et,Fn=j.pageSize,jn=Fn===void 0?Zt==null?void 0:Zt.pageSize:Fn;if((Te=O.current)===null||Te===void 0||(ce=Te.setPageInfo)===null||ce===void 0||ce.call(Te,(0,u.Z)((0,u.Z)({},Zt),{},{current:parseInt(On,10),pageSize:parseInt(jn,10)})),w)return;Ve(j,!0)}},onReset:function(j){b==null||b(j)},onFinish:function(j){Ve(j,!1)},initialValues:_==null?void 0:_.initialValues}))})},Rr=wn,pr=function(o){(0,x.Z)(i,o);var t=(0,L.Z)(i);function i(){var r;(0,y.Z)(this,i);for(var s=arguments.length,g=new Array(s),T=0;T0&&arguments[0]!==void 0?arguments[0]:{},g=(0,p.useRef)(),T=(0,p.useRef)(null),v=(0,p.useRef)(),Z=(0,p.useRef)(),O=(0,p.useState)(""),W=(0,V.Z)(O,2),w=W[0],b=W[1],M=(0,p.useRef)([]),A=(0,$e.Z)(function(){return s.size||s.defaultSize||"middle"},{value:s.size,onChange:s.onSizeChange}),_=(0,V.Z)(A,2),z=_[0],be=_[1],Ve=(0,p.useMemo)(function(){var I,B={};return(I=s.columns)===null||I===void 0||I.forEach(function(j,Le){var Te=j.key,ce=j.dataIndex,Zt=j.fixed,Et=j.disable,On=Ie(Te!=null?Te:ce,Le);On&&(B[On]={show:!0,fixed:Zt,disable:Et})}),B},[s.columns]),Oe=(0,$e.Z)(function(){var I,B,j=s.columnsState||{},Le=j.persistenceType,Te=j.persistenceKey;if(Te&&Le&&typeof window!="undefined"){var ce=window[Le];try{var Zt=ce==null?void 0:ce.getItem(Te);if(Zt)return JSON.parse(Zt)}catch(Et){console.warn(Et)}}return s.columnsStateMap||((I=s.columnsState)===null||I===void 0?void 0:I.value)||((B=s.columnsState)===null||B===void 0?void 0:B.defaultValue)||Ve},{value:((o=s.columnsState)===null||o===void 0?void 0:o.value)||s.columnsStateMap,onChange:((t=s.columnsState)===null||t===void 0?void 0:t.onChange)||s.onColumnsStateChange}),ae=(0,V.Z)(Oe,2),vt=ae[0],Re=ae[1];(0,p.useLayoutEffect)(function(){var I=s.columnsState||{},B=I.persistenceType,j=I.persistenceKey;if(j&&B&&typeof window!="undefined"){var Le=window[B];try{var Te=Le==null?void 0:Le.getItem(j);Re(Te?JSON.parse(Te):Ve)}catch(ce){console.warn(ce)}}},[s.columnsState,Ve,Re]),(0,rt.ET)(!s.columnsStateMap,"columnsStateMap\u5DF2\u7ECF\u5E9F\u5F03\uFF0C\u8BF7\u4F7F\u7528 columnsState.value \u66FF\u6362"),(0,rt.ET)(!s.columnsStateMap,"columnsStateMap has been discarded, please use columnSstate.value replacement");var Je=(0,p.useCallback)(function(){var I=s.columnsState||{},B=I.persistenceType,j=I.persistenceKey;if(!(!j||!B||typeof window=="undefined")){var Le=window[B];try{Le==null||Le.removeItem(j)}catch(Te){console.error(Te)}}},[s.columnsState]);(0,p.useEffect)(function(){var I,B;if(!(!((I=s.columnsState)===null||I===void 0?void 0:I.persistenceKey)||!((B=s.columnsState)===null||B===void 0?void 0:B.persistenceType))&&typeof window!="undefined"){var j=s.columnsState,Le=j.persistenceType,Te=j.persistenceKey,ce=window[Le];try{ce==null||ce.setItem(Te,JSON.stringify(vt))}catch(Zt){console.error(Zt)}}},[(i=s.columnsState)===null||i===void 0?void 0:i.persistenceKey,vt,(r=s.columnsState)===null||r===void 0?void 0:r.persistenceType]);var ye={action:g.current,setAction:function(B){g.current=B},sortKeyColumns:M.current,setSortKeyColumns:function(B){M.current=B},propsRef:Z,columnsMap:vt,keyWords:w,setKeyWords:function(B){return b(B)},setTableSize:be,tableSize:z,prefixName:v.current,setPrefixName:function(B){v.current=B},setColumnsMap:Re,columns:s.columns,rootDomRef:T,clearPersistenceStorage:Je};return Object.defineProperty(ye,"prefixName",{get:function(){return v.current}}),Object.defineProperty(ye,"sortKeyColumns",{get:function(){return M.current}}),Object.defineProperty(ye,"action",{get:function(){return g.current}}),ye}var xn=(0,yr.f)(Vn),zt=xn,$n=e(63185),ir=e(9676),Mr=e(20136),Cr=e(55241),rr=e(32157),Dr=e(7573),Fr=e(55934),Zr=e(81162),Vr=e(81455),sr=e(48171),dr=e(22270),zr=e(16089),P=["key","dataIndex","children"],l=function(t){var i=t.title,r=t.show,s=t.children,g=t.columnKey,T=t.fixed,v=zt.useContainer(),Z=v.columnsMap,O=v.setColumnsMap;return r?(0,a.jsx)($t.Z,{title:i,children:(0,a.jsx)("span",{onClick:function(w){w.stopPropagation(),w.preventDefault();var b=Z[g]||{},M=typeof b.disable=="boolean"&&b.disable;if(!M){var A=(0,u.Z)((0,u.Z)({},Z),{},(0,Q.Z)({},g,(0,u.Z)((0,u.Z)({},b),{},{fixed:T})));O(A)}},children:s})}):null},D=function(t){var i=t.columnKey,r=t.isLeaf,s=t.title,g=t.className,T=t.fixed,v=(0,$.YB)(),Z=(0,a.jsxs)("span",{className:"".concat(g,"-list-item-option"),children:[(0,a.jsx)(l,{columnKey:i,fixed:"left",title:v.getMessage("tableToolBar.leftPin","\u56FA\u5B9A\u5728\u5217\u9996"),show:T!=="left",children:(0,a.jsx)(Fr.Z,{})}),(0,a.jsx)(l,{columnKey:i,fixed:void 0,title:v.getMessage("tableToolBar.noPin","\u4E0D\u56FA\u5B9A"),show:!!T,children:(0,a.jsx)(Zr.Z,{})}),(0,a.jsx)(l,{columnKey:i,fixed:"right",title:v.getMessage("tableToolBar.rightPin","\u56FA\u5B9A\u5728\u5217\u5C3E"),show:T!=="right",children:(0,a.jsx)(Vr.Z,{})})]});return(0,a.jsxs)("span",{className:"".concat(g,"-list-item"),children:[(0,a.jsx)("div",{className:"".concat(g,"-list-item-title"),children:s}),r?null:Z]},i)},F=function(t){var i,r,s=t.list,g=t.draggable,T=t.checkable,v=t.className,Z=t.showTitle,O=Z===void 0?!0:Z,W=t.title,w=t.listHeight,b=w===void 0?280:w,M=zt.useContainer(),A=M.columnsMap,_=M.setColumnsMap,z=M.sortKeyColumns,be=M.setSortKeyColumns,Ve=s&&s.length>0,Oe=(0,p.useMemo)(function(){if(!Ve)return{};var Je=[],ye=function I(B,j){return B.map(function(Le){var Te,ce=Le.key,Zt=Le.dataIndex,Et=Le.children,On=(0,h.Z)(Le,P),Fn=Ie(ce,On.index),jn=A[Fn||"null"]||{show:!0};jn.show!==!1&&(j==null?void 0:j.show)!==!1&&!Et&&Je.push(Fn);var mn=(0,u.Z)((0,u.Z)({key:Fn},(0,te.Z)(On,["className"])),{},{selectable:!1,disabled:jn.disable===!0,disableCheckbox:typeof jn.disable=="boolean"?jn.disable:(Te=jn.disable)===null||Te===void 0?void 0:Te.checkbox,isLeaf:j?!0:void 0});return Et&&(mn.children=I(Et,jn)),mn})};return{list:ye(s),keys:Je}},[A,s,Ve]),ae=(0,sr.J)(function(Je,ye,I){var B=(0,u.Z)({},A),j=(0,Pe.Z)(z),Le=j.findIndex(function(Et){return Et===Je}),Te=j.findIndex(function(Et){return Et===ye}),ce=I>Te;if(!(Le<0)){var Zt=j[Le];j.splice(Le,1),I===0?j.unshift(Zt):j.splice(ce?Te:Te+1,0,Zt),j.forEach(function(Et,On){B[Et]=(0,u.Z)((0,u.Z)({},B[Et]||{}),{},{order:On})}),_(B),be(j)}}),vt=(0,sr.J)(function(Je){var ye=Je.node.key,I=(0,u.Z)({},A[ye]);I.show=Je.checked,_((0,u.Z)((0,u.Z)({},A),{},(0,Q.Z)({},ye,I)))});if(!Ve)return null;var Re=(0,a.jsx)(Dr.Z,{itemHeight:24,draggable:g&&!!((i=Oe.list)===null||i===void 0?void 0:i.length)&&((r=Oe.list)===null||r===void 0?void 0:r.length)>1,checkable:T,onDrop:function(ye){var I=ye.node.key,B=ye.dragNode.key,j=ye.dropPosition,Le=ye.dropToGap,Te=j===-1||!Le?j+1:j;ae(B,I,Te)},blockNode:!0,onCheck:function(ye,I){return vt(I)},checkedKeys:Oe.keys,showLine:!1,titleRender:function(ye){var I=(0,u.Z)((0,u.Z)({},ye),{},{children:void 0});return(0,a.jsx)(D,(0,u.Z)((0,u.Z)({className:v},I),{},{title:(0,dr.h)(I.title,I),columnKey:I.key}))},height:b,treeData:Oe.list});return(0,a.jsxs)(a.Fragment,{children:[O&&(0,a.jsx)("span",{className:"".concat(v,"-list-title"),children:W}),Re]})},X=function(t){var i=t.localColumns,r=t.className,s=t.draggable,g=t.checkable,T=t.listsHeight,v=[],Z=[],O=[],W=(0,$.YB)();i.forEach(function(M){if(!M.hideInSetting){var A=M.fixed;if(A==="left"){Z.push(M);return}if(A==="right"){v.push(M);return}O.push(M)}});var w=v&&v.length>0,b=Z&&Z.length>0;return(0,a.jsxs)("div",{className:Ue()("".concat(r,"-list"),(0,Q.Z)({},"".concat(r,"-list-group"),w||b)),children:[(0,a.jsx)(F,{title:W.getMessage("tableToolBar.leftFixedTitle","\u56FA\u5B9A\u5728\u5DE6\u4FA7"),list:Z,draggable:s,checkable:g,className:r,listHeight:T}),(0,a.jsx)(F,{list:O,draggable:s,checkable:g,title:W.getMessage("tableToolBar.noFixedTitle","\u4E0D\u56FA\u5B9A"),showTitle:b||w,className:r,listHeight:T}),(0,a.jsx)(F,{title:W.getMessage("tableToolBar.rightFixedTitle","\u56FA\u5B9A\u5728\u53F3\u4FA7"),list:v,draggable:s,checkable:g,className:r,listHeight:T})]})};function le(o){var t,i,r=(0,p.useRef)({}),s=zt.useContainer(),g=o.columns,T=o.checkedReset,v=T===void 0?!0:T,Z=s.columnsMap,O=s.setColumnsMap,W=s.clearPersistenceStorage;(0,p.useEffect)(function(){var ae,vt;if((ae=s.propsRef.current)===null||ae===void 0||(vt=ae.columnsState)===null||vt===void 0?void 0:vt.value){var Re,Je;r.current=JSON.parse(JSON.stringify(((Re=s.propsRef.current)===null||Re===void 0||(Je=Re.columnsState)===null||Je===void 0?void 0:Je.value)||{}))}},[]);var w=(0,sr.J)(function(){var ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,vt={},Re=function Je(ye){ye.forEach(function(I){var B=I.key,j=I.fixed,Le=I.index,Te=I.children,ce=Ie(B,Le);ce&&(vt[ce]={show:ae,fixed:j}),Te&&Je(Te)})};Re(g),O(vt)}),b=(0,sr.J)(function(ae){ae.target.checked?w():w(!1)}),M=(0,sr.J)(function(){W==null||W(),O(r.current)}),A=Object.values(Z).filter(function(ae){return!ae||ae.show===!1}),_=A.length>0&&A.length!==g.length,z=(0,$.YB)(),be=(0,p.useContext)(R.ZP.ConfigContext),Ve=be.getPrefixCls,Oe=Ve("pro-table-column-setting");return(0,a.jsx)(Cr.Z,{arrowPointAtCenter:!0,title:(0,a.jsxs)("div",{className:"".concat(Oe,"-title"),children:[(0,a.jsx)(ir.Z,{indeterminate:_,checked:A.length===0&&A.length!==g.length,onChange:function(vt){return b(vt)},children:z.getMessage("tableToolBar.columnDisplay","\u5217\u5C55\u793A")}),v?(0,a.jsx)("a",{onClick:M,className:"".concat(Oe,"-action-rest-button"),children:z.getMessage("tableToolBar.reset","\u91CD\u7F6E")}):null,(o==null?void 0:o.extra)?(0,a.jsx)(Wn.Z,{size:12,align:"center",children:o.extra}):null]}),overlayClassName:"".concat(Oe,"-overlay"),trigger:"click",placement:"bottomRight",content:(0,a.jsx)(X,{checkable:(t=o.checkable)!==null&&t!==void 0?t:!0,draggable:(i=o.draggable)!==null&&i!==void 0?i:!0,className:Oe,localColumns:g,listsHeight:o.listsHeight}),children:o.children||(0,a.jsx)($t.Z,{title:z.getMessage("tableToolBar.columnSetting","\u5217\u8BBE\u7F6E"),children:(0,a.jsx)(lr.Z,{})})})}var K=le,ze=e(47673),q=e(4107),ke=e(38069),Ye=e(30887),ct=e(28682),Kt=e(59250),gt=e(13013),We=e(57254),Pt=e(36003),Qt=["label","key"],Gt=function(t){var i=t.items,r=i===void 0?[]:i,s=t.type,g=s===void 0?"inline":s,T=t.prefixCls,v=t.activeKey,Z=(0,$e.Z)(v,{value:v,onChange:t.onChange}),O=(0,V.Z)(Z,2),W=O[0],w=O[1];if(r.length<1)return null;var b=r.find(function(M){return M.key===W})||r[0];return g==="inline"?(0,a.jsx)("div",{className:Ue()("".concat(T,"-menu"),"".concat(T,"-inline-menu")),children:r.map(function(M,A){return(0,a.jsx)("div",{onClick:function(){w(M.key)},className:Ue()("".concat(T,"-inline-menu-item"),b.key===M.key?"".concat(T,"-inline-menu-item-active"):void 0),children:M.label},M.key||A)})}):g==="tab"?(0,a.jsx)(nt.Z,{activeKey:b.key,onTabClick:function(A){return w(A)},children:r.map(function(M,A){var _=M.label,z=M.key,be=(0,h.Z)(M,Qt);return(0,a.jsx)(nt.Z.TabPane,(0,u.Z)({tab:_},be),z||A)})}):(0,a.jsx)("div",{className:Ue()("".concat(T,"-menu"),"".concat(T,"-dropdownmenu")),children:(0,a.jsx)(gt.Z,{trigger:["click"],overlay:(0,a.jsx)(ct.Z,{selectedKeys:[b.key],onClick:function(A){w(A.key)},items:r.map(function(M,A){return{key:M.key||A,disabled:M.disabled,label:M.label}})}),children:(0,a.jsxs)(Wn.Z,{className:"".concat(T,"-dropdownmenu-label"),children:[b.label,(0,a.jsx)(We.Z,{})]})})})},Xt=Gt;function fn(o){if(p.isValidElement(o))return o;if(o){var t=o,i=t.icon,r=t.tooltip,s=t.onClick,g=t.key;return i&&r?(0,a.jsx)($t.Z,{title:r,children:(0,a.jsx)("span",{onClick:function(){s&&s(g)},children:i},g)}):i}return null}var tn=function(t){var i=t.prefixCls,r=t.tabs,s=r===void 0?{}:r,g=t.multipleLine,T=t.filtersNode;return g?(0,a.jsx)("div",{className:"".concat(i,"-extra-line"),children:s.items&&s.items.length?(0,a.jsx)(nt.Z,{activeKey:s.activeKey,onChange:s.onChange,tabBarExtraContent:T,children:s.items.map(function(v,Z){return(0,a.jsx)(nt.Z.TabPane,(0,u.Z)({},v),v.key||Z)})}):T}):null},sn=function(t){var i=t.prefixCls,r=t.title,s=t.subTitle,g=t.tooltip,T=t.className,v=t.style,Z=t.search,O=t.onSearch,W=t.multipleLine,w=W===void 0?!1:W,b=t.filter,M=t.actions,A=M===void 0?[]:M,_=t.settings,z=_===void 0?[]:_,be=t.tabs,Ve=be===void 0?{}:be,Oe=t.menu,ae=(0,$.YB)(),vt=(0,ke.ZP)(),Re=vt==="sm"||vt==="xs",Je=ae.getMessage("tableForm.inputPlaceholder","\u8BF7\u8F93\u5165"),ye=(0,p.useMemo)(function(){return Z?p.isValidElement(Z)?Z:(0,a.jsx)(q.Z.Search,(0,u.Z)((0,u.Z)({style:{width:200},placeholder:Je},Z),{},{onSearch:function(){for(var Yt,bn=arguments.length,En=new Array(bn),xt=0;xtqt||cn!==void 0&&z&&z.length<=qt&&Pn.run(!1)},[I==null?void 0:I.current]),(0,p.useEffect)(function(){!Fn||Pn.run(!1)},[I==null?void 0:I.pageSize]),(0,ot.ZP)(function(){return Pn.run(!1),v||(b.current=!1),function(){Pn.cancel()}},[].concat((0,Pe.Z)(bn),[v])),{dataSource:z,setDataSource:be,loading:ae,reload:function(){var dn=(0,f.Z)((0,c.Z)().mark(function qt(){return(0,c.Z)().wrap(function(gn){for(;;)switch(gn.prev=gn.next){case 0:return gn.next=2,Pn.run(!1);case 2:case"end":return gn.stop()}},qt)}));function cn(){return dn.apply(this,arguments)}return cn}(),pageInfo:I,pollingLoading:ce,reset:function(){var dn=(0,f.Z)((0,c.Z)().mark(function qt(){var hn,gn,_n,Kn,ar,vr,jr,br;return(0,c.Z)().wrap(function(mr){for(;;)switch(mr.prev=mr.next){case 0:hn=r||{},gn=hn.pageInfo,_n=gn||{},Kn=_n.defaultCurrent,ar=Kn===void 0?1:Kn,vr=_n.defaultPageSize,jr=vr===void 0?20:vr,br={current:ar,total:0,pageSize:jr},j(br);case 4:case"end":return mr.stop()}},qt)}));function cn(){return dn.apply(this,arguments)}return cn}(),setPageInfo:function(){var dn=(0,f.Z)((0,c.Z)().mark(function qt(hn){return(0,c.Z)().wrap(function(_n){for(;;)switch(_n.prev=_n.next){case 0:j((0,u.Z)((0,u.Z)({},I),hn));case 1:case"end":return _n.stop()}},qt)}));function cn(qt){return dn.apply(this,arguments)}return cn}()}},m=d,Y=function(t){return function(i,r){var s,g,T=i.fixed,v=i.index,Z=r.fixed,O=r.index;if(T==="left"&&Z!=="left"||Z==="right"&&T!=="right")return-2;if(Z==="left"&&T!=="left"||T==="right"&&Z!=="right")return 2;var W=i.key||"".concat(v),w=r.key||"".concat(O);if(((s=t[W])===null||s===void 0?void 0:s.order)||((g=t[w])===null||g===void 0?void 0:g.order)){var b,M;return(((b=t[W])===null||b===void 0?void 0:b.order)||0)-(((M=t[w])===null||M===void 0?void 0:M.order)||0)}return(i.index||0)-(r.index||0)}},bt=e(53227),kt=e(28700),un=function(t){var i={};return Object.keys(t||{}).forEach(function(r){var s;Array.isArray(t[r])&&((s=t[r])===null||s===void 0?void 0:s.length)===0||t[r]!==void 0&&(i[r]=t[r])}),i},Mt=un,ee=e(77398),Se=e(74763),Jt=e(88306),Xn=e(66758),xr=e(5894),Sr=e(31649),Hr=e(97462),Gn=e(94984),Nt=e(2026),Ee=["children"],Ut=["",null,void 0],Yn=function(){for(var t=arguments.length,i=new Array(t),r=0;rhn.length?(hn.push(Pn),hn):(hn.splice((T==null?void 0:T.current)*(T==null?void 0:T.pageSize)-1,0,Pn),hn)}return[].concat((0,Pe.Z)(r.dataSource),[Pn])},ce=function(){return(0,u.Z)((0,u.Z)({},I),{},{size:Z,rowSelection:v===!1?void 0:v,className:i,style:W,columns:j.map(function(bn){return bn.isExtraColumns?bn.extraColumn:bn}),loading:r.loading,dataSource:Je.newLineRecord?Te(r.dataSource):r.dataSource,pagination:T,onChange:function(En,xt,Pn,dn){var cn;if((cn=I.onChange)===null||cn===void 0||cn.call(I,En,xt,Pn,dn),Le||Ve((0,ge.Z)(xt)),Array.isArray(Pn)){var qt=Pn.reduce(function(Kn,ar){return(0,u.Z)((0,u.Z)({},Kn),{},(0,Q.Z)({},"".concat(ar.field),ar.order))},{});be((0,ge.Z)(qt))}else{var hn,gn=(hn=Pn.column)===null||hn===void 0?void 0:hn.sorter,_n=(gn==null?void 0:gn.toString())===gn;be((0,ge.Z)((0,Q.Z)({},"".concat(_n?gn:Pn.field),Pn.order))||{})}}})},Zt=(0,a.jsx)(ve.Z,(0,u.Z)((0,u.Z)({},ce()),{},{rowKey:t})),Et=o.tableViewRender?o.tableViewRender((0,u.Z)((0,u.Z)({},ce()),{},{rowSelection:v!==!1?v:void 0}),Zt):Zt,On=(0,p.useMemo)(function(){if(o.editable&&!o.name){var Yt,bn,En,xt;return(0,a.jsxs)(a.Fragment,{children:[w,_,(0,p.createElement)(oe.ZP,(0,u.Z)((0,u.Z)({},(Yt=o.editable)===null||Yt===void 0?void 0:Yt.formProps),{},{formRef:(bn=o.editable)===null||bn===void 0||(En=bn.formProps)===null||En===void 0?void 0:En.formRef,component:!1,form:(xt=o.editable)===null||xt===void 0?void 0:xt.form,onValuesChange:Je.onValuesChange,key:"table",submitter:!1,omitNil:!1,dateFormatter:o.dateFormatter}),Et)]})}return(0,a.jsxs)(a.Fragment,{children:[w,_,Et]})},[_,o.loading,!!o.editable,Et,w]),Fn=A===!1||!!o.name?On:(0,a.jsx)(U,(0,u.Z)((0,u.Z)({ghost:o.ghost,bordered:_e("table",Re),bodyStyle:w?{paddingTop:0}:{padding:0}},A),{},{children:On})),jn=function(){return o.tableRender?o.tableRender(o,Fn,{toolbar:w||void 0,alert:_||void 0,table:Et||void 0}):Fn},mn=(0,a.jsxs)("div",{className:Ue()(vt,(0,Q.Z)({},"".concat(vt,"-polling"),r.pollingLoading)),style:M,ref:B.rootDomRef,children:[ae?null:b,g!=="form"&&o.tableExtraRender&&(0,a.jsx)("div",{className:"".concat(vt,"-extra"),children:o.tableExtraRender(o,r.dataSource||[])}),g!=="form"&&jn()]});return!Oe||!(Oe==null?void 0:Oe.fullScreen)?mn:(0,a.jsx)(R.ZP,{getPopupContainer:function(){return B.rootDomRef.current||document.body},children:mn})}var ma={},ha=function(t){var i,r=t.cardBordered,s=t.request,g=t.className,T=t.params,v=T===void 0?ma:T,Z=t.defaultData,O=t.headerTitle,W=t.postData,w=t.ghost,b=t.pagination,M=t.actionRef,A=t.columns,_=A===void 0?[]:A,z=t.toolBarRender,be=t.onLoad,Ve=t.onRequestError,Oe=t.style,ae=t.cardProps,vt=t.tableStyle,Re=t.tableClassName,Je=t.columnsStateMap,ye=t.onColumnsStateChange,I=t.options,B=t.search,j=t.name,Le=t.onLoadingChange,Te=t.rowSelection,ce=Te===void 0?!1:Te,Zt=t.beforeSearchSubmit,Et=t.tableAlertRender,On=t.defaultClassName,Fn=t.formRef,jn=t.type,mn=jn===void 0?"table":jn,Yt=t.columnEmptyText,bn=Yt===void 0?"-":Yt,En=t.toolbar,xt=t.rowKey,Pn=t.manualRequest,dn=t.polling,cn=t.tooltip,qt=t.revalidateOnFocus,hn=qt===void 0?!1:qt,gn=(0,h.Z)(t,va),_n=Ue()(On,g),Kn=(0,p.useRef)(),ar=(0,p.useRef)(),vr=Fn||ar;(0,p.useImperativeHandle)(M,function(){return Kn.current});var jr=(0,me.Z)(ce?(ce==null?void 0:ce.defaultSelectedRowKeys)||[]:void 0,{value:ce?ce.selectedRowKeys:void 0}),br=(0,V.Z)(jr,2),fr=br[0],mr=br[1],Br=(0,p.useRef)([]),Kr=(0,p.useCallback)(function(ie,Ne){mr(ie),(!ce||!(ce==null?void 0:ce.selectedRowKeys))&&(Br.current=Ne)},[mr]),Wr=(0,me.Z)(function(){if(!(Pn||B!==!1))return{}}),rn=(0,V.Z)(Wr,2),Wt=rn[0],kr=rn[1],Xr=(0,me.Z)({}),$r=(0,V.Z)(Xr,2),Ar=$r[0],Gr=$r[1],Jr=(0,me.Z)({}),_r=(0,V.Z)(Jr,2),Yr=_r[0],Qr=_r[1];(0,p.useEffect)(function(){var ie=vn(_),Ne=ie.sort,Ht=ie.filter;Gr(Ht),Qr(Ne)},[]);var qr=(0,$.YB)(),ea=(0,De.Z)(b)==="object"?b:{defaultCurrent:1,defaultPageSize:20,pageSize:20,current:1},An=zt.useContainer(),qn=(0,p.useMemo)(function(){if(!!s)return function(){var ie=(0,f.Z)((0,c.Z)().mark(function Ne(Ht){var Rn,gr;return(0,c.Z)().wrap(function(Nr){for(;;)switch(Nr.prev=Nr.next){case 0:return Rn=(0,u.Z)((0,u.Z)((0,u.Z)({},Ht||{}),Wt),v),delete Rn._timestamp,Nr.next=4,s(Rn,Yr,Ar);case 4:return gr=Nr.sent,Nr.abrupt("return",gr);case 6:case"end":return Nr.stop()}},Ne)}));return function(Ne){return ie.apply(this,arguments)}}()},[Wt,v,Ar,Yr,s]),yt=m(qn,Z,{pageInfo:b===!1?!1:ea,loading:t.loading,dataSource:t.dataSource,onDataSourceChange:t.onDataSourceChange,onLoad:be,onLoadingChange:Le,onRequestError:Ve,postData:W,revalidateOnFocus:hn,manual:Wt===void 0,polling:dn,effects:[(0,en.P)(v),(0,en.P)(Wt),(0,en.P)(Ar),(0,en.P)(Yr)],debounceTime:t.debounceTime,onPageInfoChange:function(Ne){var Ht,Rn;mn==="list"||!b||!qn||(b==null||(Ht=b.onChange)===null||Ht===void 0||Ht.call(b,Ne.current,Ne.pageSize),b==null||(Rn=b.onShowSizeChange)===null||Rn===void 0||Rn.call(b,Ne.current,Ne.pageSize))}});(0,p.useEffect)(function(){var ie;if(!(t.manualRequest||!t.request||!hn||((ie=t.form)===null||ie===void 0?void 0:ie.ignoreRules))){var Ne=function(){document.visibilityState==="visible"&&yt.reload()};return document.addEventListener("visibilitychange",Ne),function(){return document.removeEventListener("visibilitychange",Ne)}}},[]);var zn=p.useRef(new Map),or=p.useMemo(function(){return typeof xt=="function"?xt:function(ie,Ne){var Ht;return Ne===-1?ie==null?void 0:ie[xt]:t.name?Ne==null?void 0:Ne.toString():(Ht=ie==null?void 0:ie[xt])!==null&&Ht!==void 0?Ht:Ne==null?void 0:Ne.toString()}},[t.name,xt]);(0,p.useMemo)(function(){var ie;if((ie=yt.dataSource)===null||ie===void 0?void 0:ie.length){var Ne=new Map,Ht=yt.dataSource.map(function(Rn){var gr=or(Rn,-1);return Ne.set(gr,Rn),gr});return zn.current=Ne,Ht}return[]},[yt.dataSource,or]),(0,p.useEffect)(function(){Br.current=fr==null?void 0:fr.map(function(ie){var Ne;return(Ne=zn.current)===null||Ne===void 0?void 0:Ne.get(ie)})},[fr]);var Er=(0,p.useMemo)(function(){var ie=b===!1?!1:(0,u.Z)({},b),Ne=(0,u.Z)((0,u.Z)({},yt.pageInfo),{},{setPageInfo:function(Rn){var gr=Rn.pageSize,Lr=Rn.current,Nr=yt.pageInfo;if(gr===Nr.pageSize||Nr.current===1){yt.setPageInfo({pageSize:gr,current:Lr});return}s&&yt.setDataSource([]),yt.setPageInfo({pageSize:gr,current:mn==="list"?Lr:1})}});return s&&ie&&(delete ie.onChange,delete ie.onShowSizeChange),Xe(ie,Ne,qr)},[b,yt,qr]);(0,ot.ZP)(function(){var ie;t.request&&v&&yt.dataSource&&(yt==null||(ie=yt.pageInfo)===null||ie===void 0?void 0:ie.current)!==1&&yt.setPageInfo({current:1})},[v]),An.setPrefixName(t.name);var Ir=(0,p.useCallback)(function(){ce&&ce.onChange&&ce.onChange([],[],{type:"none"}),Kr([],[])},[ce,Kr]);An.setAction(Kn.current),An.propsRef.current=t;var hr=(0,re.ZP)((0,u.Z)((0,u.Z)({},t.editable),{},{tableName:t.name,getRowKey:or,childrenColumnName:((i=t.expandable)===null||i===void 0?void 0:i.childrenColumnName)||"children",dataSource:yt.dataSource||[],setDataSource:function(Ne){var Ht,Rn;(Ht=t.editable)===null||Ht===void 0||(Rn=Ht.onValuesChange)===null||Rn===void 0||Rn.call(Ht,void 0,Ne),yt.setDataSource(Ne)}}));et(Kn,yt,{fullScreen:function(){var Ne;if(!(!((Ne=An.rootDomRef)===null||Ne===void 0?void 0:Ne.current)||!document.fullscreenEnabled))if(document.fullscreenElement)document.exitFullscreen();else{var Ht;(Ht=An.rootDomRef)===null||Ht===void 0||Ht.current.requestFullscreen()}},onCleanSelected:function(){Ir()},resetAll:function(){var Ne;Ir(),Gr({}),Qr({}),An.setKeyWords(void 0),yt.setPageInfo({current:1}),vr==null||(Ne=vr.current)===null||Ne===void 0||Ne.resetFields(),kr({})},editableUtils:hr}),M&&(M.current=Kn.current);var Or=(0,p.useMemo)(function(){var ie;return oa({columns:_,counter:An,columnEmptyText:bn,type:mn,editableUtils:hr,rowKey:xt,childrenColumnName:(ie=t.expandable)===null||ie===void 0?void 0:ie.childrenColumnName}).sort(Y(An.columnsMap))},[_,An==null?void 0:An.sortKeyColumns,An==null?void 0:An.columnsMap,bn,mn,hr.editableKeys&&hr.editableKeys.join(",")]);(0,ot.Au)(function(){if(Or&&Or.length>0){var ie=Or.map(function(Ne){return Ie(Ne.key,Ne.index)});An.setSortKeyColumns(ie)}},[Or],["render","renderFormItem"],100),(0,ot.ZP)(function(){var ie=yt.pageInfo,Ne=b||{},Ht=Ne.current,Rn=Ht===void 0?ie==null?void 0:ie.current:Ht,gr=Ne.pageSize,Lr=gr===void 0?ie==null?void 0:ie.pageSize:gr;b&&(Rn||Lr)&&(Lr!==(ie==null?void 0:ie.pageSize)||Rn!==(ie==null?void 0:ie.current))&&yt.setPageInfo({pageSize:Lr||ie.pageSize,current:Rn||ie.current})},[b&&b.pageSize,b&&b.current]);var ra=(0,u.Z)((0,u.Z)({selectedRowKeys:fr},ce),{},{onChange:function(Ne,Ht,Rn){ce&&ce.onChange&&ce.onChange(Ne,Ht,Rn),Kr(Ne,Ht)}}),aa=B!==!1&&(B==null?void 0:B.filterType)==="light",pa=function(Ne){if(I&&I.search){var Ht,Rn,gr=I.search===!0?{}:I.search,Lr=gr.name,Nr=Lr===void 0?"keyword":Lr,xa=(Ht=I.search)===null||Ht===void 0||(Rn=Ht.onSearch)===null||Rn===void 0?void 0:Rn.call(Ht,An.keyWords);if(xa!==!1){kr((0,u.Z)((0,u.Z)({},Ne),{},(0,Q.Z)({},Nr,An.keyWords)));return}}kr(Ne)},ya=(0,p.useMemo)(function(){if((0,De.Z)(yt.loading)==="object"){var ie;return((ie=yt.loading)===null||ie===void 0?void 0:ie.spinning)||!1}return yt.loading},[yt.loading]),ia=B===!1&&mn!=="form"?null:(0,a.jsx)(Jn,{pagination:Er,beforeSearchSubmit:Zt,action:Kn,columns:_,onFormSearchSubmit:function(Ne){pa(Ne)},ghost:w,onReset:t.onReset,onSubmit:t.onSubmit,loading:!!ya,manualRequest:Pn,search:B,form:t.form,formRef:vr,type:t.type||"table",cardBordered:t.cardBordered,dateFormatter:t.dateFormatter}),Ca=z===!1?null:(0,a.jsx)(wt,{headerTitle:O,hideToolbar:I===!1&&!O&&!z&&!En&&!aa,selectedRows:Br.current,selectedRowKeys:fr,tableColumn:Or,tooltip:cn,toolbar:En,onFormSearchSubmit:function(Ne){kr((0,u.Z)((0,u.Z)({},Wt),Ne))},searchNode:aa?ia:null,options:I,actionRef:Kn,toolBarRender:z}),Za=ce!==!1?(0,a.jsx)(N,{selectedRowKeys:fr,selectedRows:Br.current,onCleanSelected:Ir,alertOptionRender:gn.tableAlertOptionRender,alertInfoRender:Et,alwaysShowAlert:ce==null?void 0:ce.alwaysShowAlert}):null;return(0,a.jsx)(fa,(0,u.Z)((0,u.Z)({},t),{},{name:j,size:An.tableSize,onSizeChange:An.setTableSize,pagination:Er,searchNode:ia,rowSelection:ce!==!1?ra:void 0,className:_n,tableColumn:Or,isLightFilter:aa,action:yt,alertDom:Za,toolbarDom:Ca,onSortChange:Qr,onFilterChange:Gr,editableUtils:hr,getRowKey:or}))},la=function(t){var i=(0,p.useContext)(R.ZP.ConfigContext),r=i.getPrefixCls,s=t.ErrorBoundary===!1?p.Fragment:t.ErrorBoundary||Dt.Z;return(0,a.jsx)(zt.Provider,{initialState:t,children:(0,a.jsx)($.oK,{children:(0,a.jsx)(s,{children:(0,a.jsx)(ha,(0,u.Z)({defaultClassName:r("pro-table")},t))})})})};la.Summary=ve.Z.Summary;var ga=la},16894:function(pn,tt,e){"use strict";var c=e(78775),f=e(77153);tt.ZP=f.Z},94984:function(pn,tt,e){"use strict";var c=e(9715),f=e(55843),De=e(81253),V=e(28991),H=e(20136),R=e(55241),we=e(84305),ve=e(39559),Q=e(28481),Pe=e(85893),u=e(7085),h=e(67294),p=e(25394),a=e.n(p),ft=["label","rules","name","children","popoverProps"],nt=["errorType","rules","name","popoverProps","children"],Zn={marginTop:-5,marginBottom:-5,marginLeft:0,marginRight:0},Dn=function(Ft){var Ue=Ft.inputProps,te=Ft.input,ut=Ft.extra,rt=Ft.errorList,he=Ft.popoverProps,Lt=(0,h.useState)(!1),Fe=(0,Q.Z)(Lt,2),on=Fe[0],Be=Fe[1],at=(0,h.useState)([]),mt=(0,Q.Z)(at,2),$e=mt[0],fe=mt[1],k=(0,h.useContext)(ve.ZP.ConfigContext),se=k.getPrefixCls;(0,h.useEffect)(function(){Ue.validateStatus!=="validating"&&fe(Ue.errors)},[Ue.errors,Ue.validateStatus]);var He=se();return(0,Pe.jsx)(R.Z,(0,V.Z)((0,V.Z)({trigger:(he==null?void 0:he.trigger)||"focus",placement:(he==null?void 0:he.placement)||"topRight",visible:$e.length<1?!1:on,onVisibleChange:function(Vt){Vt!==on&&Be(Vt)},getPopupContainer:he==null?void 0:he.getPopupContainer,getTooltipContainer:he==null?void 0:he.getTooltipContainer,content:(0,Pe.jsxs)("div",{className:"".concat(He,"-form-item-with-help"),children:[Ue.validateStatus==="validating"?(0,Pe.jsx)(u.Z,{}):null,rt]})},he),{},{children:(0,Pe.jsxs)("div",{children:[te,ut]})}),"popover")},an=function(Ft){var Ue=Ft.label,te=Ft.rules,ut=Ft.name,rt=Ft.children,he=Ft.popoverProps,Lt=(0,De.Z)(Ft,ft);return(0,Pe.jsx)(f.Z.Item,(0,V.Z)((0,V.Z)({preserve:!1,name:ut,rules:te,hasFeedback:!0,_internalItemRender:{mark:"pro_table_render",render:function(on,Be){return(0,Pe.jsx)(Dn,(0,V.Z)({inputProps:on,popoverProps:he},Be))}}},Lt),{},{style:(0,V.Z)((0,V.Z)({},Zn),Lt==null?void 0:Lt.style),children:rt}))};tt.Z=function(Ct){var Ft=Ct.errorType,Ue=Ct.rules,te=Ct.name,ut=Ct.popoverProps,rt=Ct.children,he=(0,De.Z)(Ct,nt);return te&&(Ue==null?void 0:Ue.length)&&Ft==="popover"?(0,Pe.jsx)(an,(0,V.Z)((0,V.Z)({name:te,rules:Ue,popoverProps:ut},he),{},{children:rt})):(0,Pe.jsx)(f.Z.Item,(0,V.Z)((0,V.Z)({rules:Ue},he),{},{style:(0,V.Z)((0,V.Z)({},Zn),he.style),name:te,children:rt}))}},77398:function(pn,tt,e){"use strict";e.d(tt,{X:function(){return H}});var c=e(402),f=e(56256),De=e(85893),V=function(we){var ve;return!!((we==null||(ve=we.valueType)===null||ve===void 0?void 0:ve.toString().startsWith("date"))||(we==null?void 0:we.valueType)==="select"||(we==null?void 0:we.valueEnum))},H=function(we,ve,Q){if(ve.copyable||ve.ellipsis){var Pe=ve.copyable&&Q?{text:Q,tooltips:["",""]}:void 0,u=V(ve),h=ve.ellipsis&&Q?{tooltip:u?(0,De.jsx)("div",{className:"pro-table-tooltip-text",children:we}):Q}:!1;return(0,De.jsx)(f.Z.Text,{style:{width:"100%",margin:0,padding:0},title:"",copyable:Pe,ellipsis:h,children:we})}return we}},2026:function(pn,tt,e){"use strict";var c=e(22270),f=function(V,H,R){return H===void 0?V:(0,c.h)(V,H,R)};tt.Z=f},28700:function(pn,tt){"use strict";var e=function(f){if(f&&f!==!0)return f};tt.Z=e},86671:function(pn,tt,e){"use strict";e.d(tt,{sN:function(){return k},cx:function(){return se},aX:function(){return it}});var c=e(34792),f=e(48086),De=e(62350),V=e(24565),H=e(55507),R=e(99809),we=e(92137),ve=e(28481),Q=e(9715),Pe=e(55843),u=e(96156),h=e(85061),p=e(81253),a=e(28991),ft=e(90484),nt=e(85893),Zn=e(7085),Dn=e(78775),an=e(84164),Ct=e(21770),Ft=e(88306),Ue=e(8880),te=e(80334),ut=e(67294),rt=e(48171),he=e(10178),Lt=e(41036),Fe=e(27068),on=e(26369),Be=e(92210),at=e(56725),mt=["map_row_parentKey"],$e=["map_row_parentKey","map_row_key"],fe=["map_row_key"],k=function(J){return Array.isArray(J)?J.join(","):J};function se(C,J){var st,Ce=C.getRowKey,Ze=C.row,St=C.data,ht=C.childrenColumnName,Ot=(st=k(C.key))===null||st===void 0?void 0:st.toString(),dt=new Map;function ln(Qe,Ge,U){Qe.forEach(function(oe,$){var re=(U||0)*10+$,ge=Ce(oe,re).toString();oe&&(0,ft.Z)(oe)==="object"&&ht in oe&&ln(oe[ht]||[],ge,re);var me=(0,a.Z)((0,a.Z)({},oe),{},{map_row_key:ge,children:void 0,map_row_parentKey:Ge});delete me.children,Ge||delete me.map_row_parentKey,dt.set(ge,me)})}J==="top"&&dt.set(Ot,(0,a.Z)((0,a.Z)({},dt.get(Ot)),Ze)),ln(St),J==="update"&&dt.set(Ot,(0,a.Z)((0,a.Z)({},dt.get(Ot)),Ze)),J==="delete"&&dt.delete(Ot);var Bt=function(Ge){var U=new Map,oe=[],$=function(){Ge.forEach(function(ge){if(ge.map_row_parentKey&&!ge.map_row_key){var me=ge.map_row_parentKey,ot=(0,p.Z)(ge,mt);U.set(me,[].concat((0,h.Z)(U.get(me)||[]),[ot]))}})};return J==="top"&&$(),Ge.forEach(function(re){if(re.map_row_parentKey&&re.map_row_key){var ge=re.map_row_parentKey,me=re.map_row_key,ot=(0,p.Z)(re,$e);U.has(me)&&(ot[ht]=U.get(me)),U.set(ge,[].concat((0,h.Z)(U.get(ge)||[]),[ot]))}}),J==="update"&&$(),Ge.forEach(function(re){if(!re.map_row_parentKey){var ge=re.map_row_key,me=(0,p.Z)(re,fe);if(ge&&U.has(ge)){var ot=(0,a.Z)((0,a.Z)({},me),{},(0,u.Z)({},ht,U.get(ge)));oe.push(ot);return}oe.push(me)}}),oe};return Bt(dt)}function He(C){var J=C.recordKey,st=C.onSave,Ce=C.row,Ze=C.children,St=C.newLineConfig,ht=C.editorType,Ot=C.tableName,dt=(0,ut.useContext)(Lt.Z),ln=Pe.Z.useFormInstance(),Bt=(0,at.Z)(!1),Qe=(0,ve.Z)(Bt,2),Ge=Qe[0],U=Qe[1];return(0,nt.jsxs)("a",{onClick:function(){var oe=(0,we.Z)((0,H.Z)().mark(function re(ge){var me,ot,Dt,en,er,yn,Pr,Wn,kn;return(0,H.Z)().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return ge.stopPropagation(),ge.preventDefault(),S.prev=2,ot=ht==="Map",Dt=[Ot,Array.isArray(J)?J[0]:J].map(function(N){return N==null?void 0:N.toString()}).flat(1).filter(Boolean),U(!0),S.next=8,ln.validateFields(Dt,{recursive:!0});case 8:return en=((me=dt.getFieldFormatValue)===null||me===void 0?void 0:me.call(dt,Dt))||ln.getFieldValue(Dt),Array.isArray(J)&&J.length>1&&(er=(0,R.Z)(J),yn=er.slice(1),Pr=(0,Ft.Z)(en,yn),(0,Ue.Z)(en,yn,Pr)),Wn=ot?(0,Ue.Z)({},Dt,en,!0):en,S.next=13,st==null?void 0:st(J,(0,Be.T)({},Ce,Wn),Ce,St);case 13:return kn=S.sent,U(!1),S.abrupt("return",kn);case 18:return S.prev=18,S.t0=S.catch(2),console.log(S.t0),U(!1),S.abrupt("return",null);case 23:case"end":return S.stop()}},re,null,[[2,18]])}));function $(re){return oe.apply(this,arguments)}return $}(),children:[Ge?(0,nt.jsx)(Zn.Z,{style:{marginRight:8}}):null,Ze||"\u4FDD\u5B58"]},"save")}var ne=function(J){var st=J.recordKey,Ce=J.onDelete,Ze=J.row,St=J.children,ht=J.deletePopconfirmMessage,Ot=(0,at.Z)(function(){return!1}),dt=(0,ve.Z)(Ot,2),ln=dt[0],Bt=dt[1],Qe=(0,rt.J)((0,we.Z)((0,H.Z)().mark(function Ge(){var U;return(0,H.Z)().wrap(function($){for(;;)switch($.prev=$.next){case 0:return $.prev=0,Bt(!0),$.next=4,Ce==null?void 0:Ce(st,Ze);case 4:return U=$.sent,Bt(!1),$.abrupt("return",U);case 9:return $.prev=9,$.t0=$.catch(0),console.log($.t0),Bt(!1),$.abrupt("return",null);case 14:case"end":return $.stop()}},Ge,null,[[0,9]])})));return St!==!1?(0,nt.jsx)(V.Z,{title:ht,onConfirm:function(){return Qe()},children:(0,nt.jsxs)("a",{children:[ln?(0,nt.jsx)(Zn.Z,{style:{marginRight:8}}):null,St||"\u5220\u9664"]})},"delete"):null},Vt=function(J){var st=J.recordKey,Ce=J.tableName,Ze=J.newLineConfig,St=J.editorType,ht=J.onCancel,Ot=J.cancelEditable,dt=J.row,ln=J.cancelText,Bt=(0,ut.useContext)(Lt.Z),Qe=Pe.Z.useFormInstance();return(0,nt.jsx)("a",{onClick:function(){var Ge=(0,we.Z)((0,H.Z)().mark(function oe($){var re,ge,me,ot,Dt,en;return(0,H.Z)().wrap(function(yn){for(;;)switch(yn.prev=yn.next){case 0:return $.stopPropagation(),$.preventDefault(),ge=St==="Map",me=[Ce,st].flat(1).filter(Boolean),ot=((re=Bt.getFieldFormatValue)===null||re===void 0?void 0:re.call(Bt,me))||Qe.getFieldValue(me),Dt=ge?(0,Ue.Z)({},me,ot):ot,yn.next=8,ht==null?void 0:ht(st,Dt,dt,Ze);case 8:return en=yn.sent,Ot(st),Qe.setFieldsValue((0,u.Z)({},st,ge?(0,Ft.Z)(dt,me):dt)),yn.abrupt("return",en);case 12:case"end":return yn.stop()}},oe)}));function U(oe){return Ge.apply(this,arguments)}return U}(),children:ln||"\u53D6\u6D88"},"cancel")};function it(C,J){var st=J.recordKey,Ce=J.newLineConfig,Ze=J.saveText,St=J.deleteText;return[(0,nt.jsx)(He,(0,a.Z)((0,a.Z)({},J),{},{row:C,children:Ze}),"save"+st),(Ce==null?void 0:Ce.options.recordKey)!==st?(0,nt.jsx)(ne,(0,a.Z)((0,a.Z)({},J),{},{row:C,children:St}),"delete"+st):null,(0,nt.jsx)(Vt,(0,a.Z)((0,a.Z)({},J),{},{row:C}),"cancel"+st)]}function Tn(C){var J=(0,ut.useState)(void 0),st=(0,ve.Z)(J,2),Ce=st[0],Ze=st[1],St=(0,ut.useRef)(new Map),ht=(0,ut.useRef)(void 0);(0,Fe.Au)(function(){var y=new Map,x=function L(ue,xe){ue==null||ue.forEach(function(Xe,et){var de,_e=xe==null?et.toString():xe+"_"+et.toString();y.set(_e,k(C.getRowKey(Xe,-1))),y.set((de=k(C.getRowKey(Xe,-1)))===null||de===void 0?void 0:de.toString(),_e),C.childrenColumnName&&Xe[C.childrenColumnName]&&L(Xe[C.childrenColumnName],_e)})};x(C.dataSource),St.current=y},[C.dataSource]),ht.current=Ce;var Ot=C.type||"single",dt=(0,an.Z)(C.dataSource,"children",C.getRowKey),ln=(0,ve.Z)(dt,1),Bt=ln[0],Qe=(0,Ct.Z)([],{value:C.editableKeys,onChange:C.onChange?function(y){var x;C==null||(x=C.onChange)===null||x===void 0||x.call(C,y.filter(function(L){return L!==void 0}),y.map(function(L){return Bt(L)}).filter(function(L){return L!==void 0}))}:void 0}),Ge=(0,ve.Z)(Qe,2),U=Ge[0],oe=Ge[1],$=(0,ut.useMemo)(function(){var y=Ot==="single"?U==null?void 0:U.slice(0,1):U;return new Set(y)},[(U||[]).join(","),Ot]),re=(0,on.Z)(U),ge=(0,rt.J)(function(y){var x,L,ue,xe,Xe=(x=C.getRowKey(y,y.index))===null||x===void 0||(L=x.toString)===null||L===void 0?void 0:L.call(x),et=(ue=C.getRowKey(y,-1))===null||ue===void 0||(xe=ue.toString)===null||xe===void 0?void 0:xe.call(ue),de=U.map(function(Ie){return Ie==null?void 0:Ie.toString()}),_e=(re==null?void 0:re.map(function(Ie){return Ie==null?void 0:Ie.toString()}))||[],jt=C.tableName&&!!(_e==null?void 0:_e.includes(et))||!!(_e==null?void 0:_e.includes(Xe));return{recordKey:et,isEditable:C.tableName&&(de==null?void 0:de.includes(et))||(de==null?void 0:de.includes(Xe)),preIsEditable:jt}}),me=(0,rt.J)(function(y){return $.size>0&&Ot==="single"&&C.onlyOneLineEditorAlertMessage!==!1?(f.default.warn(C.onlyOneLineEditorAlertMessage||"\u53EA\u80FD\u540C\u65F6\u7F16\u8F91\u4E00\u884C"),!1):($.add(y),oe(Array.from($)),!0)}),ot=(0,rt.J)(function(){var y=(0,we.Z)((0,H.Z)().mark(function x(L,ue){var xe,Xe;return(0,H.Z)().wrap(function(de){for(;;)switch(de.prev=de.next){case 0:if(xe=k(L).toString(),Xe=St.current.get(xe),!(!$.has(xe)&&Xe&&(ue!=null?ue:!0)&&C.tableName)){de.next=5;break}return ot(Xe,!1),de.abrupt("return");case 5:return Ce&&Ce.options.recordKey===L&&Ze(void 0),$.delete(xe),$.delete(k(L)),oe(Array.from($)),de.abrupt("return",!0);case 10:case"end":return de.stop()}},x)}));return function(x,L){return y.apply(this,arguments)}}()),Dt=(0,he.Z)((0,we.Z)((0,H.Z)().mark(function y(){var x,L,ue,xe,Xe=arguments;return(0,H.Z)().wrap(function(de){for(;;)switch(de.prev=de.next){case 0:for(L=Xe.length,ue=new Array(L),xe=0;xe0&&Ot==="single"&&C.onlyOneLineEditorAlertMessage!==!1)return f.default.warn(C.onlyOneLineEditorAlertMessage||"\u53EA\u80FD\u540C\u65F6\u7F16\u8F91\u4E00\u884C"),!1;var L=C.getRowKey(y,-1);if(!L)throw(0,te.ET)(!!L,`\u8BF7\u8BBE\u7F6E recordCreatorProps.record \u5E76\u8FD4\u56DE\u4E00\u4E2A\u552F\u4E00\u7684key +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[4374],{64107:function(pn,tt,e){"use strict";e.d(tt,{Z:function(){return zr}});var c=e(28991),f=e(9715),De=e(55843),V=e(28481),H=e(81253),R=e(85893),we=e(51804),ve=e(22270),Q=e(53621),Pe=e(51812),u=e(97435),h=e(67294),p=e(57338),a=e(273),ft=e(55507),nt=e(92137),Zn=e(84305),Dn=e(39559),an=e(48171),Ct=e(72378),Ft=e.n(Ct),Ue=e(21770),te=e(80334),ut=e(73935),rt=e(88374),he=["children","trigger","onVisibleChange","drawerProps","onFinish","submitTimeout","title","width","visible"];function Lt(P){var l,D,F,X,le=P.children,K=P.trigger,ze=P.onVisibleChange,q=P.drawerProps,ke=P.onFinish,Ye=P.submitTimeout,ct=P.title,Kt=P.width,gt=P.visible,We=(0,H.Z)(P,he);(0,te.ET)(!We.footer||!(q==null?void 0:q.footer),"DrawerForm \u662F\u4E00\u4E2A ProForm \u7684\u7279\u6B8A\u5E03\u5C40\uFF0C\u5982\u679C\u60F3\u81EA\u5B9A\u4E49\u6309\u94AE\uFF0C\u8BF7\u4F7F\u7528 submit.render \u81EA\u5B9A\u4E49\u3002");var Pt=(0,h.useContext)(Dn.ZP.ConfigContext),Qt=(0,h.useState)([]),Gt=(0,V.Z)(Qt,2),Xt=Gt[1],fn=(0,h.useState)(!1),tn=(0,V.Z)(fn,2),sn=tn[0],pe=tn[1],pt=(0,Ue.Z)(!!gt,{value:gt,onChange:ze}),It=(0,V.Z)(pt,2),At=It[0],Rt=It[1],lt=(0,h.useRef)(null),je=(0,h.useCallback)(function(Ae){lt.current===null&&Ae&&Xt([]),lt.current=Ae},[]),Tt=(0,h.useRef)(),Ke=(0,h.useCallback)(function(){var Ae,qe,wt,Mn=(Ae=(qe=(wt=We.formRef)===null||wt===void 0?void 0:wt.current)!==null&&qe!==void 0?qe:We.form)!==null&&Ae!==void 0?Ae:Tt.current;Mn&&(q==null?void 0:q.destroyOnClose)&&Mn.resetFields()},[q==null?void 0:q.destroyOnClose,We.form,We.formRef]);(0,h.useEffect)(function(){At&>&&(ze==null||ze(!0))},[gt,At]);var E=(0,h.useMemo)(function(){return K?h.cloneElement(K,(0,c.Z)((0,c.Z)({key:"trigger"},K.props),{},{onClick:function(){var Ae=(0,nt.Z)((0,ft.Z)().mark(function wt(Mn){var _t,Nn;return(0,ft.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:Rt(!At),(_t=K.props)===null||_t===void 0||(Nn=_t.onClick)===null||Nn===void 0||Nn.call(_t,Mn);case 2:case"end":return n.stop()}},wt)}));function qe(wt){return Ae.apply(this,arguments)}return qe}()})):null},[Rt,K,At]),Me=(0,h.useMemo)(function(){var Ae,qe,wt,Mn,_t,Nn;return We.submitter===!1?!1:Ft()({searchConfig:{submitText:(Ae=(qe=Pt.locale)===null||qe===void 0||(wt=qe.Modal)===null||wt===void 0?void 0:wt.okText)!==null&&Ae!==void 0?Ae:"\u786E\u8BA4",resetText:(Mn=(_t=Pt.locale)===null||_t===void 0||(Nn=_t.Modal)===null||Nn===void 0?void 0:Nn.cancelText)!==null&&Mn!==void 0?Mn:"\u53D6\u6D88"},resetButtonProps:{preventDefault:!0,disabled:Ye?sn:void 0,onClick:function(n){var d;Rt(!1),Ke(),q==null||(d=q.onClose)===null||d===void 0||d.call(q,n)}}},We.submitter)},[We.submitter,(l=Pt.locale)===null||l===void 0||(D=l.Modal)===null||D===void 0?void 0:D.okText,(F=Pt.locale)===null||F===void 0||(X=F.Modal)===null||X===void 0?void 0:X.cancelText,Ye,sn,Rt,Ke,q]),nn=(0,h.useCallback)(function(Ae,qe){return(0,R.jsxs)(R.Fragment,{children:[Ae,lt.current&&qe?(0,ut.createPortal)(qe,lt.current):qe]})},[]),Sn=(0,an.J)(function(){var Ae=(0,nt.Z)((0,ft.Z)().mark(function qe(wt){var Mn,_t,Nn;return(0,ft.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return Mn=ke==null?void 0:ke(wt),Ye&&Mn instanceof Promise&&(pe(!0),_t=setTimeout(function(){return pe(!1)},Ye),Mn.finally(function(){clearTimeout(_t),pe(!1)})),n.next=4,Mn;case 4:return Nn=n.sent,Nn&&Rt(!1),n.abrupt("return",Nn);case 7:case"end":return n.stop()}},qe)}));return function(qe){return Ae.apply(this,arguments)}}());return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(a.Z,(0,c.Z)((0,c.Z)({title:ct,width:Kt||800},q),{},{visible:At,onClose:function(qe){var wt;Ye&&sn||(Ke(),Rt(!1),q==null||(wt=q.onClose)===null||wt===void 0||wt.call(q,qe))},afterVisibleChange:function(qe){var wt;qe||Ke(),q==null||(wt=q.afterVisibleChange)===null||wt===void 0||wt.call(q,qe)},footer:We.submitter!==!1&&(0,R.jsx)("div",{ref:je,style:{display:"flex",justifyContent:"flex-end"}}),children:(0,R.jsx)(R.Fragment,{children:(0,R.jsx)(rt.I,(0,c.Z)((0,c.Z)({formComponentType:"DrawerForm",layout:"vertical",formRef:Tt},We),{},{submitter:Me,onFinish:function(){var Ae=(0,nt.Z)((0,ft.Z)().mark(function wt(Mn){var _t;return(0,ft.Z)().wrap(function(Hn){for(;;)switch(Hn.prev=Hn.next){case 0:return Hn.next=2,Sn(Mn);case 2:return _t=Hn.sent,_t===!0&&Ke(),Hn.abrupt("return",_t);case 5:case"end":return Hn.stop()}},wt)}));function qe(wt){return Ae.apply(this,arguments)}return qe}(),contentRender:nn,children:le}))})})),E]})}var Fe=e(96156),on=e(17405),Be=e(78775),at=e(76422),mt=e(1643),$e=e(94184),fe=e.n($e),k=e(29504),se=["size","collapse","collapseLabel","initialValues","onValuesChange","form","placement","formRef","bordered","ignoreRules","footerRender"],He=function(l){var D=l.items,F=l.prefixCls,X=l.size,le=X===void 0?"middle":X,K=l.collapse,ze=l.collapseLabel,q=l.onValuesChange,ke=l.bordered,Ye=l.values,ct=l.footerRender,Kt=l.placement,gt=(0,Be.YB)(),We="".concat(F,"-light-filter"),Pt=(0,h.useState)(!1),Qt=(0,V.Z)(Pt,2),Gt=Qt[0],Xt=Qt[1],fn=(0,h.useState)(function(){return(0,c.Z)({},Ye)}),tn=(0,V.Z)(fn,2),sn=tn[0],pe=tn[1];(0,h.useEffect)(function(){pe((0,c.Z)({},Ye))},[Ye]);var pt=(0,h.useMemo)(function(){var lt=[],je=[];return D.forEach(function(Tt){var Ke=Tt.props||{},E=Ke.secondary;E||K?lt.push(Tt):je.push(Tt)}),{collapseItems:lt,outsideItems:je}},[l.items]),It=pt.collapseItems,At=pt.outsideItems,Rt=function(){return ze||(K?(0,R.jsx)(on.Z,{className:"".concat(We,"-collapse-icon")}):(0,R.jsx)(at.Z,{size:le,label:gt.getMessage("form.lightFilter.more","\u66F4\u591A\u7B5B\u9009"),expanded:Gt}))};return(0,R.jsx)("div",{className:fe()(We,"".concat(We,"-").concat(le),(0,Fe.Z)({},"".concat(We,"-effective"),Object.keys(Ye).some(function(lt){return Ye[lt]}))),children:(0,R.jsxs)("div",{className:"".concat(We,"-container"),children:[At.map(function(lt,je){var Tt=lt.key,Ke=lt.props.fieldProps,E=(Ke==null?void 0:Ke.placement)?Ke==null?void 0:Ke.placement:Kt;return(0,R.jsx)("div",{className:"".concat(We,"-item"),children:h.cloneElement(lt,{fieldProps:(0,c.Z)((0,c.Z)({},lt.props.fieldProps),{},{placement:E}),proFieldProps:{light:!0,label:lt.props.label,bordered:ke},bordered:ke})},Tt||je)}),It.length?(0,R.jsx)("div",{className:"".concat(We,"-item"),children:(0,R.jsx)(mt.Z,{padding:24,onVisibleChange:Xt,visible:Gt,placement:Kt,label:Rt(),footerRender:ct,footer:{onConfirm:function(){q((0,c.Z)({},sn)),Xt(!1)},onClear:function(){var je={};It.forEach(function(Tt){var Ke=Tt.props.name;je[Ke]=void 0}),q(je)}},children:It.map(function(lt){var je=lt.key,Tt=lt.props,Ke=Tt.name,E=Tt.fieldProps,Me=(0,c.Z)((0,c.Z)({},E),{},{onChange:function(Ae){return pe((0,c.Z)((0,c.Z)({},sn),{},(0,Fe.Z)({},Ke,(Ae==null?void 0:Ae.target)?Ae.target.value:Ae))),!1}});sn.hasOwnProperty(Ke)&&(Me[lt.props.valuePropName||"value"]=sn[Ke]);var nn=(E==null?void 0:E.placement)?E==null?void 0:E.placement:Kt;return(0,R.jsx)("div",{className:"".concat(We,"-line"),children:h.cloneElement(lt,{fieldProps:(0,c.Z)((0,c.Z)({},Me),{},{placement:nn})})},je)})})},"more"):null]})})};function ne(P){var l=P.size,D=P.collapse,F=P.collapseLabel,X=P.initialValues,le=P.onValuesChange,K=P.form,ze=P.placement,q=P.formRef,ke=P.bordered,Ye=P.ignoreRules,ct=P.footerRender,Kt=(0,H.Z)(P,se),gt=(0,h.useContext)(Dn.ZP.ConfigContext),We=gt.getPrefixCls,Pt=We("pro-form"),Qt=(0,h.useState)(function(){return(0,c.Z)({},X)}),Gt=(0,V.Z)(Qt,2),Xt=Gt[0],fn=Gt[1],tn=(0,h.useRef)();return(0,h.useImperativeHandle)(q,function(){return tn.current}),(0,R.jsx)(rt.I,(0,c.Z)((0,c.Z)({size:l,initialValues:X,form:K,contentRender:function(pe){return(0,R.jsx)(He,{prefixCls:Pt,items:pe.flatMap(function(pt){return(pt==null?void 0:pt.type.displayName)==="ProForm-Group"?pt.props.children:pt}),size:l,bordered:ke,collapse:D,collapseLabel:F,placement:ze,values:Xt||{},footerRender:ct,onValuesChange:function(It){var At,Rt,lt=(0,c.Z)((0,c.Z)({},Xt),It);fn(lt),(At=tn.current)===null||At===void 0||At.setFieldsValue(lt),(Rt=tn.current)===null||Rt===void 0||Rt.submit(),le&&le(It,lt)}})},formRef:tn,formItemProps:{colon:!1,labelAlign:"left"},fieldProps:{style:{width:void 0}}},(0,u.Z)(Kt,["labelWidth"])),{},{onValuesChange:function(pe,pt){var It;fn(pt),le==null||le(pe,pt),(It=tn.current)===null||It===void 0||It.submit()}}))}var Vt=e(37476),it=e(5894),Tn=e(13062),C=e(71230),J=e(48736),st=e(27049),Ce=e(89032),Ze=e(15746),St=e(12044),ht=e(56725),Ot=e(48717),dt=e(49111),ln=e(19650),Bt=e(57254),Qe=e(28700),Ge=function(l,D,F,X){return l?(0,R.jsxs)(R.Fragment,{children:[F.getMessage("tableForm.collapsed","\u5C55\u5F00"),X&&"(".concat(X,")"),(0,R.jsx)(Bt.Z,{style:{marginLeft:"0.5em",transition:"0.3s all",transform:"rotate(".concat(l?0:.5,"turn)")}})]}):(0,R.jsxs)(R.Fragment,{children:[F.getMessage("tableForm.expand","\u6536\u8D77"),(0,R.jsx)(Bt.Z,{style:{marginLeft:"0.5em",transition:"0.3s all",transform:"rotate(".concat(l?0:.5,"turn)")}})]})},U=function(l){var D=l.setCollapsed,F=l.collapsed,X=F===void 0?!1:F,le=l.submitter,K=l.style,ze=l.hiddenNum,q=(0,h.useContext)(Dn.ZP.ConfigContext),ke=q.getPrefixCls,Ye=(0,Be.YB)(),ct=(0,Qe.Z)(l.collapseRender)||Ge;return(0,R.jsxs)(ln.Z,{style:K,size:16,children:[le,l.collapseRender!==!1&&(0,R.jsx)("a",{className:ke("pro-form-collapse-button"),onClick:function(){return D(!X)},children:ct==null?void 0:ct(X,l,Ye,ze)})]})},oe=U,$=["collapsed","layout","defaultCollapsed","defaultColsNumber","span","searchGutter","searchText","resetText","optionRender","collapseRender","onReset","onCollapse","labelWidth","style","split","preserve","ignoreRules","showHiddenNum"],re,ge,me={xs:513,sm:513,md:785,lg:992,xl:1057,xxl:Infinity},ot={vertical:[[513,1,"vertical"],[785,2,"vertical"],[1057,3,"vertical"],[Infinity,4,"vertical"]],default:[[513,1,"vertical"],[701,2,"vertical"],[1062,3,"horizontal"],[1352,3,"horizontal"],[Infinity,4,"horizontal"]]},Dt=function(l,D,F){if(F&&typeof F=="number")return{span:F,layout:l};var X=F?["xs","sm","md","lg","xl","xxl"].map(function(K){return[me[K],24/F[K],"horizontal"]}):ot[l||"default"],le=(X||ot.default).find(function(K){return DWe-1)&&!!Tt&&Xt>=24;fn+=1;var Mn=h.isValidElement(je)&&(je.key||"".concat((nn=je.props)===null||nn===void 0?void 0:nn.name))||Tt;return h.isValidElement(je)&&wt?l.preserve?{itemDom:h.cloneElement(je,{hidden:!0,key:Mn||Tt}),hidden:!0,colSpan:Ae}:{itemDom:null,colSpan:0,hidden:!0}:{itemDom:je,colSpan:Ae,hidden:!1}}),It=pt.map(function(je,Tt){var Ke,E,Me=je.itemDom,nn=je.colSpan,Sn=Me==null||(Ke=Me.props)===null||Ke===void 0?void 0:Ke.hidden;if(Sn)return Me;var Ae=h.isValidElement(Me)&&(Me.key||"".concat((E=Me.props)===null||E===void 0?void 0:E.name))||Tt;24-pe%2417&&Ke(Ae.width)},children:(0,R.jsx)(rt.I,(0,c.Z)((0,c.Z)({isKeyPressSubmit:!0,preserve:tn},It),{},{className:fe()(Rt,It.className),onReset:gt,style:Gt,layout:E.layout,fieldProps:{style:{width:"100%"}},formItemProps:nn,groupProps:{titleStyle:{display:"inline-block",marginRight:16}},contentRender:function(Ae,qe,wt){return(0,R.jsx)(er,{spanSize:E,collapsed:l,form:wt,collapseRender:Kt,defaultCollapsed:X,onCollapse:We,optionRender:ct,submitter:qe,items:Ae,split:Xt,resetText:P.resetText,searchText:P.searchText,searchGutter:q,preserve:tn,ignoreRules:sn,showLength:Me,showHiddenNum:pt})}}))},"resize-observer")}var Wn=e(57663),kn=e(71577),wr=e(35556),S=e(75899),N=e(85061),G=e(92210),y=e(50344),x=e(161),L=["onFinish","step","formRef","title","stepProps"];function ue(P){var l=(0,h.useRef)(),D=(0,h.useContext)(et),F=P.onFinish,X=P.step,le=P.formRef,K=P.title,ze=P.stepProps,q=(0,H.Z)(P,L);return(0,te.ET)(!q.submitter,"StepForm \u4E0D\u5305\u542B\u63D0\u4EA4\u6309\u94AE\uFF0C\u8BF7\u5728 StepsForm \u4E0A"),(0,h.useImperativeHandle)(le,function(){return l.current}),(0,h.useEffect)(function(){if(!!(P.name||P.step)){var ke=(P.name||P.step).toString();return D==null||D.regForm(ke,P),function(){D==null||D.unRegForm(ke)}}},[]),D&&(D==null?void 0:D.formArrayRef)&&(D.formArrayRef.current[X||0]=l),(0,R.jsx)(rt.I,(0,c.Z)({formRef:l,onFinish:function(){var ke=(0,nt.Z)((0,ft.Z)().mark(function ct(Kt){var gt;return(0,ft.Z)().wrap(function(Pt){for(;;)switch(Pt.prev=Pt.next){case 0:if(q.name&&(D==null||D.onFormFinish(q.name,Kt)),!F){Pt.next=9;break}return D==null||D.setLoading(!0),Pt.next=5,F==null?void 0:F(Kt);case 5:return gt=Pt.sent,gt&&(D==null||D.next()),D==null||D.setLoading(!1),Pt.abrupt("return");case 9:(D==null?void 0:D.lastStep)||D==null||D.next();case 10:case"end":return Pt.stop()}},ct)}));function Ye(ct){return ke.apply(this,arguments)}return Ye}(),layout:"vertical"},q))}var xe=ue,Xe=["current","onCurrentChange","submitter","stepsFormRender","stepsRender","stepFormRender","stepsProps","onFinish","formProps","containerStyle","formRef","formMapRef"],et=h.createContext(void 0),de={horizontal:function(l){var D=l.stepsDom,F=l.formDom;return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(C.Z,{gutter:{xs:8,sm:16,md:24},children:(0,R.jsx)(Ze.Z,{span:24,children:D})}),(0,R.jsx)(C.Z,{gutter:{xs:8,sm:16,md:24},children:(0,R.jsx)(Ze.Z,{span:24,children:F})})]})},vertical:function(l){var D=l.stepsDom,F=l.formDom;return(0,R.jsxs)(C.Z,{align:"stretch",wrap:!0,gutter:{xs:8,sm:16,md:24},children:[(0,R.jsx)(Ze.Z,{xxl:4,xl:6,lg:7,md:8,sm:10,xs:12,children:h.cloneElement(D,{style:{height:"100%"}})}),(0,R.jsx)(Ze.Z,{children:(0,R.jsx)("div",{style:{display:"flex",alignItems:"center",width:"100%",height:"100%"},children:F})})]})}};function _e(P){var l=(0,h.useContext)(Dn.ZP.ConfigContext),D=l.getPrefixCls,F=D("pro-steps-form"),X=P.current,le=P.onCurrentChange,K=P.submitter,ze=P.stepsFormRender,q=P.stepsRender,ke=P.stepFormRender,Ye=P.stepsProps,ct=P.onFinish,Kt=P.formProps,gt=P.containerStyle,We=P.formRef,Pt=P.formMapRef,Qt=(0,H.Z)(P,Xe),Gt=(0,h.useRef)(new Map),Xt=(0,h.useRef)(new Map),fn=(0,h.useRef)([]),tn=(0,h.useState)([]),sn=(0,V.Z)(tn,2),pe=sn[0],pt=sn[1],It=(0,h.useState)(!1),At=(0,V.Z)(It,2),Rt=At[0],lt=At[1],je=(0,Be.YB)(),Tt=(0,Ue.Z)(0,{value:P.current,onChange:P.onCurrentChange}),Ke=(0,V.Z)(Tt,2),E=Ke[0],Me=Ke[1],nn=(0,h.useMemo)(function(){return de[(Ye==null?void 0:Ye.direction)||"horizontal"]},[Ye==null?void 0:Ye.direction]),Sn=(0,h.useMemo)(function(){return E===pe.length-1},[pe.length,E]),Ae=(0,h.useCallback)(function(ee,Se){Xt.current.has(ee)||pt(function(Jt){return[].concat((0,N.Z)(Jt),[ee])}),Xt.current.set(ee,Se)},[]),qe=(0,h.useCallback)(function(ee){pt(function(Se){return Se.filter(function(Jt){return Jt!==ee})}),Xt.current.delete(ee),Gt.current.delete(ee)},[]);(0,h.useImperativeHandle)(Pt,function(){return fn.current}),(0,h.useImperativeHandle)(We,function(){var ee;return(ee=fn.current[E||0])===null||ee===void 0?void 0:ee.current},[E]);var wt=(0,h.useCallback)(function(){var ee=(0,nt.Z)((0,ft.Z)().mark(function Se(Jt,Xn){var xr,Sr;return(0,ft.Z)().wrap(function(Gn){for(;;)switch(Gn.prev=Gn.next){case 0:if(Gt.current.set(Jt,Xn),!(!Sn||!ct)){Gn.next=3;break}return Gn.abrupt("return");case 3:return lt(!0),xr=G.T.apply(void 0,[{}].concat((0,N.Z)(Array.from(Gt.current.values())))),Gn.prev=5,Gn.next=8,ct(xr);case 8:Sr=Gn.sent,Sr&&(Me(0),fn.current.forEach(function(Nt){var Ee;return(Ee=Nt.current)===null||Ee===void 0?void 0:Ee.resetFields()})),Gn.next=15;break;case 12:Gn.prev=12,Gn.t0=Gn.catch(5),console.log(Gn.t0);case 15:return Gn.prev=15,lt(!1),Gn.finish(15);case 18:case"end":return Gn.stop()}},Se,null,[[5,12,15,18]])}));return function(Se,Jt){return ee.apply(this,arguments)}}(),[Sn,ct,lt,Me]),Mn=(0,h.useMemo)(function(){return(0,R.jsx)("div",{className:"".concat(F,"-steps-container"),style:{maxWidth:Math.min(pe.length*320,1160)},children:(0,R.jsx)(S.Z,(0,c.Z)((0,c.Z)({},Ye),{},{current:E,onChange:void 0,children:pe.map(function(ee){var Se=Xt.current.get(ee);return(0,R.jsx)(S.Z.Step,(0,c.Z)({title:Se==null?void 0:Se.title},Se==null?void 0:Se.stepProps),ee)})}))})},[pe,F,E,Ye]),_t=(0,an.J)(function(){var ee,Se=fn.current[E];(ee=Se.current)===null||ee===void 0||ee.submit()}),Nn=(0,an.J)(function(){E<1||Me(E-1)}),Hn=(0,h.useMemo)(function(){return K!==!1&&(0,R.jsx)(kn.Z,(0,c.Z)((0,c.Z)({type:"primary",loading:Rt},K==null?void 0:K.submitButtonProps),{},{onClick:function(){var Se;K==null||(Se=K.onSubmit)===null||Se===void 0||Se.call(K),_t()},children:je.getMessage("stepsForm.next","\u4E0B\u4E00\u6B65")}),"next")},[je,Rt,_t,K]),n=(0,h.useMemo)(function(){return K!==!1&&(0,R.jsx)(kn.Z,(0,c.Z)((0,c.Z)({},K==null?void 0:K.resetButtonProps),{},{onClick:function(){var Se;Nn(),K==null||(Se=K.onReset)===null||Se===void 0||Se.call(K)},children:je.getMessage("stepsForm.prev","\u4E0A\u4E00\u6B65")}),"pre")},[je,Nn,K]),d=(0,h.useMemo)(function(){return K!==!1&&(0,R.jsx)(kn.Z,(0,c.Z)((0,c.Z)({type:"primary",loading:Rt},K==null?void 0:K.submitButtonProps),{},{onClick:function(){var Se;K==null||(Se=K.onSubmit)===null||Se===void 0||Se.call(K),_t()},children:je.getMessage("stepsForm.submit","\u63D0\u4EA4")}),"submit")},[je,Rt,_t,K]),m=(0,an.J)(function(){E>pe.length-2||Me(E+1)}),Y=(0,h.useMemo)(function(){var ee=[],Se=E||0;if(Se<1?ee.push(Hn):Se+1===pe.length?ee.push(n,d):ee.push(n,Hn),ee=ee.filter(h.isValidElement),K&&K.render){var Jt,Xn={form:(Jt=fn.current[E])===null||Jt===void 0?void 0:Jt.current,onSubmit:_t,step:E,onPre:Nn};return K.render(Xn,ee)}return K&&(K==null?void 0:K.render)===!1?null:ee},[pe.length,Hn,_t,n,Nn,E,d,K]),bt=(0,h.useMemo)(function(){return(0,y.Z)(P.children).map(function(ee,Se){var Jt=ee.props,Xn=Jt.name||"".concat(Se),xr=E===Se,Sr=xr?{contentRender:ke,submitter:!1}:{};return(0,R.jsx)("div",{className:fe()("".concat(F,"-step"),(0,Fe.Z)({},"".concat(F,"-step-active"),xr)),children:h.cloneElement(ee,(0,c.Z)((0,c.Z)((0,c.Z)((0,c.Z)({},Sr),Kt),Jt),{},{name:Xn,step:Se,key:Xn}))},Xn)})},[Kt,F,P.children,E,ke]),kt=(0,h.useMemo)(function(){return q?q(pe.map(function(ee){var Se;return{key:ee,title:(Se=Xt.current.get(ee))===null||Se===void 0?void 0:Se.title}}),Mn):Mn},[pe,Mn,q]),un=(0,h.useMemo)(function(){return(0,R.jsxs)("div",{className:"".concat(F,"-container"),style:gt,children:[bt,ze?null:(0,R.jsx)(ln.Z,{children:Y})]})},[gt,bt,F,ze,Y]),Mt=(0,h.useMemo)(function(){var ee={stepsDom:kt,formDom:un};return ze?ze(nn(ee),Y):nn(ee)},[kt,un,nn,ze,Y]);return(0,R.jsx)("div",{className:F,children:(0,R.jsx)(De.Z.Provider,(0,c.Z)((0,c.Z)({},Qt),{},{children:(0,R.jsx)(et.Provider,{value:{loading:Rt,setLoading:lt,regForm:Ae,keyArray:pe,next:m,formArrayRef:fn,formMapRef:Xt,lastStep:Sn,unRegForm:qe,onFormFinish:wt},children:Mt})}))})}function jt(P){return(0,R.jsx)(Be.oK,{children:(0,R.jsx)(_e,(0,c.Z)({},P))})}jt.StepForm=xe,jt.useForm=De.Z.useForm;var Ie=["steps","columns","forceUpdate","grid"],Cn=function(l){var D=l.steps,F=l.columns,X=l.forceUpdate,le=l.grid,K=(0,H.Z)(l,Ie),ze=(0,we.Z)(K),q=(0,h.useCallback)(function(Ye){var ct,Kt;(ct=(Kt=ze.current).onCurrentChange)===null||ct===void 0||ct.call(Kt,Ye),X([])},[X,ze]),ke=(0,h.useMemo)(function(){return D==null?void 0:D.map(function(Ye,ct){return(0,h.createElement)(zr,(0,c.Z)((0,c.Z)({grid:le},Ye),{},{key:ct,layoutType:"StepForm",columns:F[ct]}))})},[F,le,D]);return(0,R.jsx)(jt,(0,c.Z)((0,c.Z)({},K),{},{onCurrentChange:q,children:ke}))},vn=Cn,ur=function(l){var D=l.children;return(0,R.jsx)(R.Fragment,{children:D})},In=ur,Ln=e(97462),tr=function(l,D){var F=D.genItems;if(l.valueType==="dependency"){var X,le,K,ze=(X=l.getFieldProps)===null||X===void 0?void 0:X.call(l);return(0,te.ET)(Array.isArray((le=l.name)!==null&&le!==void 0?le:ze==null?void 0:ze.name),'SchemaForm: fieldProps.name should be NamePath[] when valueType is "dependency"'),(0,te.ET)(typeof l.columns=="function",'SchemaForm: columns should be a function when valueType is "dependency"'),Array.isArray((K=l.name)!==null&&K!==void 0?K:ze==null?void 0:ze.name)?(0,h.createElement)(Ln.Z,(0,c.Z)((0,c.Z)({name:l.name},ze),{},{key:l.key}),function(q){return!l.columns||typeof l.columns!="function"?null:F(l.columns(q))}):null}return!0},Qn=function(l){if(l.valueType==="divider"){var D;return(0,h.createElement)(st.Z,(0,c.Z)((0,c.Z)({},(D=l.getFieldProps)===null||D===void 0?void 0:D.call(l)),{},{key:l.key}))}return!0},Un=e(31649),nr=function(l,D){var F=D.action,X=D.formRef,le=D.type,K=D.originItem,ze=(0,c.Z)((0,c.Z)({},(0,u.Z)(l,["dataIndex","width","render","renderFormItem","renderText","title"])),{},{name:l.dataIndex,width:l.width,render:(l==null?void 0:l.render)?function(ct,Kt,gt){var We,Pt,Qt;return l==null||(We=l.render)===null||We===void 0?void 0:We.call(l,ct,Kt,gt,F==null?void 0:F.current,(0,c.Z)((0,c.Z)({type:le},l),{},{formItemProps:(Pt=l.getFormItemProps)===null||Pt===void 0?void 0:Pt.call(l),fieldProps:(Qt=l.getFieldProps)===null||Qt===void 0?void 0:Qt.call(l)}))}:void 0}),q=function(){return(0,R.jsx)(Un.Z,(0,c.Z)((0,c.Z)({},ze),{},{ignoreFormItem:!0}))},ke=(l==null?void 0:l.renderFormItem)?function(ct,Kt){var gt,We,Pt,Qt=(0,Pe.Z)((0,c.Z)((0,c.Z)({},Kt),{},{onChange:void 0}));return l==null||(gt=l.renderFormItem)===null||gt===void 0?void 0:gt.call(l,(0,c.Z)((0,c.Z)({type:le},l),{},{formItemProps:(We=l.getFormItemProps)===null||We===void 0?void 0:We.call(l),fieldProps:(Pt=l.getFieldProps)===null||Pt===void 0?void 0:Pt.call(l),originProps:K}),(0,c.Z)((0,c.Z)({},Qt),{},{defaultRender:q,type:le}),X.current)}:void 0;if(l==null?void 0:l.renderFormItem){var Ye=ke==null?void 0:ke(null,{});if(!Ye||l.ignoreFormItem)return Ye}return(0,h.createElement)(Un.Z,(0,c.Z)((0,c.Z)({},ze),{},{key:"".concat(l.key,"-").concat(l.index),renderFormItem:ke}))},wn=e(59962),Rr=function(l,D){var F=D.genItems;if(l.valueType==="formList"&&l.dataIndex){var X,le,K,ze,q,ke,Ye,ct,Kt,gt,We;return!l.columns||!Array.isArray(l.columns)?null:(0,R.jsx)(wn.u,(0,c.Z)((0,c.Z)({name:l.dataIndex,label:l.label,initialValue:l.initialValue,colProps:l.colProps,rowProps:l.rowProps},(X=l.getFieldProps)===null||X===void 0?void 0:X.call(l)),{},{isValidateList:(le=((q=l.getFormItemProps)===null||q===void 0?void 0:q.call(l))||((ke=l.getFieldProps)===null||ke===void 0?void 0:ke.call(l)))===null||le===void 0||(K=le.rules)===null||K===void 0||(ze=K[0])===null||ze===void 0?void 0:ze.required,emptyListMessage:(Ye=((gt=l.getFormItemProps)===null||gt===void 0?void 0:gt.call(l))||((We=l.getFieldProps)===null||We===void 0?void 0:We.call(l)))===null||Ye===void 0||(ct=Ye.rules)===null||ct===void 0||(Kt=ct[0])===null||Kt===void 0?void 0:Kt.message,children:F(l.columns)}),l.key)}return!0},pr=e(47673),Jn=e(4107),Bn=e(64893),$t=e(2514),Tr=["children","value","valuePropName","onChange","fieldProps","space","type","transform","convertValue"],lr=["children","space","valuePropName"],yr={space:ln.Z,group:Jn.Z.Group};function Vn(P){var l=arguments.length<=1?void 0:arguments[1];return l&&l.target&&P in l.target?l.target[P]:l}var xn=function(l){var D=l.children,F=l.value,X=F===void 0?[]:F,le=l.valuePropName,K=l.onChange,ze=l.fieldProps,q=l.space,ke=l.type,Ye=ke===void 0?"space":ke,ct=l.transform,Kt=l.convertValue,gt=(0,H.Z)(l,Tr),We=(0,an.J)(function(pe,pt){var It,At=(0,N.Z)(X);At[pt]=Vn(le||"value",pe),K==null||K(At),ze==null||(It=ze.onChange)===null||It===void 0||It.call(ze,At)}),Pt=-1,Qt=(0,y.Z)(D).map(function(pe){if(h.isValidElement(pe)){var pt,It,At;Pt+=1;var Rt=Pt,lt=(pe==null||(pt=pe.type)===null||pt===void 0?void 0:pt.displayName)==="ProFormComponent"||(pe==null||(It=pe.props)===null||It===void 0?void 0:It.readonly),je=lt?(0,c.Z)((0,c.Z)({key:Rt,ignoreFormItem:!0},pe.props||{}),{},{fieldProps:(0,c.Z)((0,c.Z)({},pe==null||(At=pe.props)===null||At===void 0?void 0:At.fieldProps),{},{onChange:function(){We(arguments.length<=0?void 0:arguments[0],Rt)}}),value:X==null?void 0:X[Rt],onChange:void 0}):(0,c.Z)((0,c.Z)({key:Rt},pe.props||{}),{},{value:X==null?void 0:X[Rt],onChange:function(Ke){var E,Me;We(Ke,Rt),(E=(Me=pe.props).onChange)===null||E===void 0||E.call(Me,Ke)}});return h.cloneElement(pe,je)}return pe}),Gt=yr[Ye],Xt=(0,$t.zx)(gt),fn=Xt.RowWrapper,tn=(0,h.useMemo)(function(){return(0,c.Z)({},Ye==="group"?{compact:!0}:{})},[Ye]),sn=(0,h.useCallback)(function(pe){var pt=pe.children;return(0,R.jsx)(Gt,(0,c.Z)((0,c.Z)((0,c.Z)({},tn),q),{},{align:"start",children:pt}))},[Gt,q,tn]);return(0,R.jsx)(fn,{Wrapper:sn,children:Qt})},zt=h.forwardRef(function(P,l){var D=P.children,F=P.space,X=P.valuePropName,le=(0,H.Z)(P,lr);return(0,h.useImperativeHandle)(l,function(){return{}}),(0,R.jsx)(xn,(0,c.Z)((0,c.Z)((0,c.Z)({space:F,valuePropName:X},le.fieldProps),{},{onChange:void 0},le),{},{children:D}))}),$n=(0,Bn.G)(zt),ir=$n,Mr=function(l,D){var F=D.genItems;if(l.valueType==="formSet"&&l.dataIndex){var X,le;return!l.columns||!Array.isArray(l.columns)?null:(0,h.createElement)(ir,(0,c.Z)((0,c.Z)({},(X=l.getFormItemProps)===null||X===void 0?void 0:X.call(l)),{},{key:l.key,initialValue:l.initialValue,name:l.dataIndex,label:l.label,colProps:l.colProps,rowProps:l.rowProps},(le=l.getFieldProps)===null||le===void 0?void 0:le.call(l)),F(l.columns))}return!0},Cr=e(24739),rr=function(l,D){var F=D.genItems;if(l.valueType==="group"){var X;return!l.columns||!Array.isArray(l.columns)?null:(0,R.jsx)(Cr.UW,(0,c.Z)((0,c.Z)({label:l.label,colProps:l.colProps,rowProps:l.rowProps},(X=l.getFieldProps)===null||X===void 0?void 0:X.call(l)),{},{children:F(l.columns)}),l.key)}return!0},Dr=function(l){return l.valueType&&typeof l.valueType=="string"&&["index","indexBorder","option"].includes(l==null?void 0:l.valueType)?null:!0},Fr=[Dr,rr,Rr,Mr,Qn,tr],Zr=function(l,D){for(var F=0;F=0&&hr<=24),or));return(0,a.jsx)("div",{style:(0,u.Z)((0,u.Z)((0,u.Z)({},Or),Wr($r>0,{paddingRight:$r/2,paddingLeft:$r/2})),Wr(Ar>0,{paddingTop:Ar/2,paddingBottom:Ar/2})),className:ra,children:p.cloneElement(qn)},"pro-card-col-".concat((qn==null?void 0:qn.key)||yt))}return qn}),Yr=Ue()("".concat(Wt),g,(i={},(0,Q.Z)(i,"".concat(Wt,"-border"),B),(0,Q.Z)(i,"".concat(Wt,"-contain-card"),Gr),(0,Q.Z)(i,"".concat(Wt,"-loading"),Ve),(0,Q.Z)(i,"".concat(Wt,"-split"),Re==="vertical"||Re==="horizontal"),(0,Q.Z)(i,"".concat(Wt,"-ghost"),Zt),(0,Q.Z)(i,"".concat(Wt,"-hoverable"),On),(0,Q.Z)(i,"".concat(Wt,"-size-").concat(Le),Le),(0,Q.Z)(i,"".concat(Wt,"-type-").concat(hn),hn),(0,Q.Z)(i,"".concat(Wt,"-collapse"),br),(0,Q.Z)(i,"".concat(Wt,"-checked"),dn),i)),Qr=Ue()("".concat(Wt,"-body"),(r={},(0,Q.Z)(r,"".concat(Wt,"-body-center"),be==="center"),(0,Q.Z)(r,"".concat(Wt,"-body-direction-column"),Re==="horizontal"||Fn==="column"),(0,Q.Z)(r,"".concat(Wt,"-body-wrap"),z&&Gr),r)),qr=(0,u.Z)((0,u.Z)((0,u.Z)({},Wr($r>0,{marginRight:-$r/2,marginLeft:-$r/2})),Wr(Ar>0,{marginTop:-Ar/2,marginBottom:-Ar/2})),Z),ea=p.isValidElement(Ve)?Ve:(0,a.jsx)(J,{prefix:Wt,style:Z.padding===0||Z.padding==="0px"?{padding:24}:void 0}),An=Yt&&jn===void 0&&(bn?bn({collapsed:br}):(0,a.jsx)(an.Z,{rotate:br?void 0:90,className:"".concat(Wt,"-collapsible-icon")}));return(0,a.jsxs)("div",(0,u.Z)((0,u.Z)({className:Yr,style:T,ref:t,onClick:function(yt){var zn;cn==null||cn(yt),gn==null||(zn=gn.onClick)===null||zn===void 0||zn.call(gn,yt)}},(0,te.Z)(gn,["prefixCls","colSpan"])),{},{children:[(w||M||An)&&(0,a.jsxs)("div",{className:Ue()("".concat(Wt,"-header"),(s={},(0,Q.Z)(s,"".concat(Wt,"-header-border"),ye||hn==="inner"),(0,Q.Z)(s,"".concat(Wt,"-header-collapsible"),An),s)),style:W,onClick:function(){An&&fr(!br)},children:[(0,a.jsxs)("div",{className:"".concat(Wt,"-title"),children:[An,(0,a.jsx)(Ct.Z,{label:w,tooltip:vt||A,subTitle:b})]}),M&&(0,a.jsx)("div",{className:"".concat(Wt,"-extra"),children:M})]}),qt?(0,a.jsx)("div",{className:"".concat(Wt,"-tabs"),children:(0,a.jsx)(nt.Z,(0,u.Z)((0,u.Z)({onChange:qt.onChange},qt),{},{items:Br,children:Ve?ea:j}))}):(0,a.jsx)("div",{className:Qr,style:qr,children:Ve?ea:_r}),(0,a.jsx)(se,{actions:Te,prefixCls:Wt})]}))}),ht=St,Ot=e(99509),dt=function(t){var i=(0,p.useContext)(R.ZP.ConfigContext),r=i.getPrefixCls,s=r("pro-card-divider"),g=t.className,T=t.style,v=T===void 0?{}:T,Z=t.type,O=Ue()(s,g,(0,Q.Z)({},"".concat(s,"-").concat(Z),Z));return(0,a.jsx)("div",{className:O,style:v})},ln=dt,Bt=function(t){return(0,a.jsx)(ht,(0,u.Z)({bodyStyle:{padding:0}},t))},Qe=ht;Qe.isProCard=!0,Qe.Divider=ln,Qe.TabPane=mt,Qe.Group=Bt;var Ge=Qe,U=Ge,oe=e(952),$=e(78775),re=e(86671),ge=e(51812),me=e(56725),ot=e(27068),Dt=e(78164),en=e(30939),er=e(17462),yn=e(76772),Pr=e(49111),Wn=e(19650),kn=e(60870),wr=function(t){var i=t.intl,r=t.onCleanSelected;return[(0,a.jsx)("a",{onClick:r,children:i.getMessage("alert.clear","\u6E05\u7A7A")},"0")]};function S(o){var t=o.selectedRowKeys,i=t===void 0?[]:t,r=o.onCleanSelected,s=o.alwaysShowAlert,g=o.selectedRows,T=o.alertInfoRender,v=T===void 0?function(z){var be=z.intl;return(0,a.jsxs)(Wn.Z,{children:[be.getMessage("alert.selected","\u5DF2\u9009\u62E9"),i.length,be.getMessage("alert.item","\u9879"),"\xA0\xA0"]})}:T,Z=o.alertOptionRender,O=Z===void 0?wr:Z,W=(0,$.YB)(),w=O&&O({onCleanSelected:r,selectedRowKeys:i,selectedRows:g,intl:W}),b=(0,p.useContext)(R.ZP.ConfigContext),M=b.getPrefixCls,A=M("pro-table-alert");if(v===!1)return null;var _=v({intl:W,selectedRowKeys:i,selectedRows:g,onCleanSelected:r});return _===!1||i.length<1&&!s?null:(0,a.jsx)("div",{className:A,children:(0,a.jsx)(yn.Z,{message:(0,a.jsxs)("div",{className:"".concat(A,"-info"),children:[(0,a.jsx)("div",{className:"".concat(A,"-info-content"),children:_}),w?(0,a.jsx)("div",{className:"".concat(A,"-info-option"),children:w}):null]}),type:"info"})})}var N=S,G=e(5991),y=e(6610),x=e(10379),L=e(44144),ue=e(60249),xe=function(t){return t!=null};function Xe(o,t,i){var r,s;if(o===!1)return!1;var g=t.total,T=t.current,v=t.pageSize,Z=t.setPageInfo,O=(0,De.Z)(o)==="object"?o:{};return(0,u.Z)((0,u.Z)({showTotal:function(w,b){return"".concat(i.getMessage("pagination.total.range","\u7B2C")," ").concat(b[0],"-").concat(b[1]," ").concat(i.getMessage("pagination.total.total","\u6761/\u603B\u5171")," ").concat(w," ").concat(i.getMessage("pagination.total.item","\u6761"))},total:g},O),{},{current:o!==!0&&o&&(r=o.current)!==null&&r!==void 0?r:T,pageSize:o!==!0&&o&&(s=o.pageSize)!==null&&s!==void 0?s:v,onChange:function(w,b){var M=o.onChange;M==null||M(w,b||20),(b!==v||T!==w)&&Z({pageSize:b,current:w})}})}function et(o,t,i){var r=(0,u.Z)((0,u.Z)({},i.editableUtils),{},{pageInfo:t.pageInfo,reload:function(){var s=(0,f.Z)((0,c.Z)().mark(function T(v){return(0,c.Z)().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:if(!v){O.next=3;break}return O.next=3,t.setPageInfo({current:1});case 3:t==null||t.reload();case 4:case"end":return O.stop()}},T)}));function g(T){return s.apply(this,arguments)}return g}(),reloadAndRest:function(){var s=(0,f.Z)((0,c.Z)().mark(function T(){return(0,c.Z)().wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:return i.onCleanSelected(),Z.next=3,t.setPageInfo({current:1});case 3:return Z.next=5,t==null?void 0:t.reload();case 5:case"end":return Z.stop()}},T)}));function g(){return s.apply(this,arguments)}return g}(),reset:function(){var s=(0,f.Z)((0,c.Z)().mark(function T(){var v;return(0,c.Z)().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return O.next=2,i.resetAll();case 2:return O.next=4,t==null||(v=t.reset)===null||v===void 0?void 0:v.call(t);case 4:return O.next=6,t==null?void 0:t.reload();case 6:case"end":return O.stop()}},T)}));function g(){return s.apply(this,arguments)}return g}(),fullScreen:function(){return i.fullScreen()},clearSelected:function(){return i.onCleanSelected()},setPageInfo:function(g){return t.setPageInfo(g)}});o.current=r}function de(o,t){return t.filter(function(i){return i}).length<1?o:t.reduce(function(i,r){return r(i)},o)}var _e=function(t,i){return i===void 0?!1:typeof i=="boolean"?i:i[t]},jt=function(t){var i;return t&&(0,De.Z)(t)==="object"&&(t==null||(i=t.props)===null||i===void 0?void 0:i.colSpan)},Ie=function(t,i){return t?Array.isArray(t)?t.join("-"):t.toString():"".concat(i)};function Cn(o){return Array.isArray(o)?o.join(","):o==null?void 0:o.toString()}function vn(o){var t={},i={};return o.forEach(function(r){var s=Cn(r.dataIndex);if(!!s){if(r.filters){var g=r.defaultFilteredValue;g===void 0?t[s]=null:t[s]=r.defaultFilteredValue}r.sorter&&r.defaultSortOrder&&(i[s]=r.defaultSortOrder)}}),{sort:i,filter:t}}function ur(o,t){var i=o.oldIndex,r=o.newIndex;if(i!==r){var s=arrayMoveImmutable(_toConsumableArray(t||[]),i,r).filter(function(g){return!!g});return _toConsumableArray(s)}return null}var In=e(64107),Ln=e(85378);function tr(o){var t=o.replace(/[A-Z]/g,function(i){return"-".concat(i.toLowerCase())});return t.startsWith("-")&&(t=t.slice(1)),t}var Qn=function(t,i){return!t&&i!==!1?(i==null?void 0:i.filterType)==="light"?"LightFilter":"QueryFilter":"Form"},Un=function(t,i,r){return!t&&r==="LightFilter"?(0,te.Z)((0,u.Z)({},i),["labelWidth","defaultCollapsed","filterType"]):t?{}:(0,te.Z)((0,u.Z)({labelWidth:i?i==null?void 0:i.labelWidth:void 0,defaultCollapsed:!0},i),["filterType"])},nr=function(t,i){return t?(0,te.Z)(i,["ignoreRules"]):(0,u.Z)({ignoreRules:!0},i)},wn=function(t){var i,r=t.onSubmit,s=t.formRef,g=t.dateFormatter,T=g===void 0?"string":g,v=t.type,Z=t.columns,O=t.action,W=t.ghost,w=t.manualRequest,b=t.onReset,M=t.submitButtonLoading,A=t.search,_=t.form,z=t.bordered,be=v==="form",Ve=function(){var B=(0,f.Z)((0,c.Z)().mark(function j(Le,Te){return(0,c.Z)().wrap(function(Zt){for(;;)switch(Zt.prev=Zt.next){case 0:r&&r(Le,Te);case 1:case"end":return Zt.stop()}},j)}));return function(Le,Te){return B.apply(this,arguments)}}(),Oe=(0,p.useContext)(R.ZP.ConfigContext),ae=Oe.getPrefixCls,vt=(0,p.useMemo)(function(){return Z.filter(function(B){return!(B===ve.Z.EXPAND_COLUMN||B===ve.Z.SELECTION_COLUMN||(B.hideInSearch||B.search===!1)&&v!=="form"||v==="form"&&B.hideInForm)}).map(function(B){var j,Le=!B.valueType||["textarea","jsonCode","code"].includes(B==null?void 0:B.valueType)&&v==="table"?"text":B==null?void 0:B.valueType,Te=(B==null?void 0:B.key)||(B==null||(j=B.dataIndex)===null||j===void 0?void 0:j.toString());return(0,u.Z)((0,u.Z)((0,u.Z)({},B),{},{width:void 0},B.search?B.search:{}),{},{valueType:Le,proFieldProps:(0,u.Z)((0,u.Z)({},B.proFieldProps),{},{proFieldKey:Te?"table-field-".concat(Te):void 0})})})},[Z,v]),Re=ae("pro-table-search"),Je=ae("pro-table-form"),ye=(0,p.useMemo)(function(){return Qn(be,A)},[A,be]),I=(0,p.useMemo)(function(){return{submitter:{submitButtonProps:{loading:M}}}},[M]);return(0,a.jsx)("div",{className:Ue()((i={},(0,Q.Z)(i,ae("pro-card"),!0),(0,Q.Z)(i,"".concat(ae("pro-card"),"-border"),!!z),(0,Q.Z)(i,"".concat(ae("pro-card"),"-bordered"),!!z),(0,Q.Z)(i,"".concat(ae("pro-card"),"-ghost"),!!W),(0,Q.Z)(i,Re,!0),(0,Q.Z)(i,Je,be),(0,Q.Z)(i,ae("pro-table-search-".concat(tr(ye))),!0),(0,Q.Z)(i,"".concat(Re,"-ghost"),W),(0,Q.Z)(i,A==null?void 0:A.className,A!==!1&&(A==null?void 0:A.className)),i)),children:(0,a.jsx)(In.Z,(0,u.Z)((0,u.Z)((0,u.Z)((0,u.Z)({layoutType:ye,columns:vt,type:v},I),Un(be,A,ye)),nr(be,_||{})),{},{formRef:s,action:O,dateFormatter:T,onInit:function(j){if(v!=="form"){var Le,Te,ce,Zt=(Le=O.current)===null||Le===void 0?void 0:Le.pageInfo,Et=j.current,On=Et===void 0?Zt==null?void 0:Zt.current:Et,Fn=j.pageSize,jn=Fn===void 0?Zt==null?void 0:Zt.pageSize:Fn;if((Te=O.current)===null||Te===void 0||(ce=Te.setPageInfo)===null||ce===void 0||ce.call(Te,(0,u.Z)((0,u.Z)({},Zt),{},{current:parseInt(On,10),pageSize:parseInt(jn,10)})),w)return;Ve(j,!0)}},onReset:function(j){b==null||b(j)},onFinish:function(j){Ve(j,!1)},initialValues:_==null?void 0:_.initialValues}))})},Rr=wn,pr=function(o){(0,x.Z)(i,o);var t=(0,L.Z)(i);function i(){var r;(0,y.Z)(this,i);for(var s=arguments.length,g=new Array(s),T=0;T0&&arguments[0]!==void 0?arguments[0]:{},g=(0,p.useRef)(),T=(0,p.useRef)(null),v=(0,p.useRef)(),Z=(0,p.useRef)(),O=(0,p.useState)(""),W=(0,V.Z)(O,2),w=W[0],b=W[1],M=(0,p.useRef)([]),A=(0,$e.Z)(function(){return s.size||s.defaultSize||"middle"},{value:s.size,onChange:s.onSizeChange}),_=(0,V.Z)(A,2),z=_[0],be=_[1],Ve=(0,p.useMemo)(function(){var I,B={};return(I=s.columns)===null||I===void 0||I.forEach(function(j,Le){var Te=j.key,ce=j.dataIndex,Zt=j.fixed,Et=j.disable,On=Ie(Te!=null?Te:ce,Le);On&&(B[On]={show:!0,fixed:Zt,disable:Et})}),B},[s.columns]),Oe=(0,$e.Z)(function(){var I,B,j=s.columnsState||{},Le=j.persistenceType,Te=j.persistenceKey;if(Te&&Le&&typeof window!="undefined"){var ce=window[Le];try{var Zt=ce==null?void 0:ce.getItem(Te);if(Zt)return JSON.parse(Zt)}catch(Et){console.warn(Et)}}return s.columnsStateMap||((I=s.columnsState)===null||I===void 0?void 0:I.value)||((B=s.columnsState)===null||B===void 0?void 0:B.defaultValue)||Ve},{value:((o=s.columnsState)===null||o===void 0?void 0:o.value)||s.columnsStateMap,onChange:((t=s.columnsState)===null||t===void 0?void 0:t.onChange)||s.onColumnsStateChange}),ae=(0,V.Z)(Oe,2),vt=ae[0],Re=ae[1];(0,p.useLayoutEffect)(function(){var I=s.columnsState||{},B=I.persistenceType,j=I.persistenceKey;if(j&&B&&typeof window!="undefined"){var Le=window[B];try{var Te=Le==null?void 0:Le.getItem(j);Re(Te?JSON.parse(Te):Ve)}catch(ce){console.warn(ce)}}},[s.columnsState,Ve,Re]),(0,rt.ET)(!s.columnsStateMap,"columnsStateMap\u5DF2\u7ECF\u5E9F\u5F03\uFF0C\u8BF7\u4F7F\u7528 columnsState.value \u66FF\u6362"),(0,rt.ET)(!s.columnsStateMap,"columnsStateMap has been discarded, please use columnSstate.value replacement");var Je=(0,p.useCallback)(function(){var I=s.columnsState||{},B=I.persistenceType,j=I.persistenceKey;if(!(!j||!B||typeof window=="undefined")){var Le=window[B];try{Le==null||Le.removeItem(j)}catch(Te){console.error(Te)}}},[s.columnsState]);(0,p.useEffect)(function(){var I,B;if(!(!((I=s.columnsState)===null||I===void 0?void 0:I.persistenceKey)||!((B=s.columnsState)===null||B===void 0?void 0:B.persistenceType))&&typeof window!="undefined"){var j=s.columnsState,Le=j.persistenceType,Te=j.persistenceKey,ce=window[Le];try{ce==null||ce.setItem(Te,JSON.stringify(vt))}catch(Zt){console.error(Zt)}}},[(i=s.columnsState)===null||i===void 0?void 0:i.persistenceKey,vt,(r=s.columnsState)===null||r===void 0?void 0:r.persistenceType]);var ye={action:g.current,setAction:function(B){g.current=B},sortKeyColumns:M.current,setSortKeyColumns:function(B){M.current=B},propsRef:Z,columnsMap:vt,keyWords:w,setKeyWords:function(B){return b(B)},setTableSize:be,tableSize:z,prefixName:v.current,setPrefixName:function(B){v.current=B},setColumnsMap:Re,columns:s.columns,rootDomRef:T,clearPersistenceStorage:Je};return Object.defineProperty(ye,"prefixName",{get:function(){return v.current}}),Object.defineProperty(ye,"sortKeyColumns",{get:function(){return M.current}}),Object.defineProperty(ye,"action",{get:function(){return g.current}}),ye}var xn=(0,yr.f)(Vn),zt=xn,$n=e(63185),ir=e(9676),Mr=e(20136),Cr=e(55241),rr=e(32157),Dr=e(7573),Fr=e(55934),Zr=e(81162),Vr=e(81455),sr=e(48171),dr=e(22270),zr=e(16089),P=["key","dataIndex","children"],l=function(t){var i=t.title,r=t.show,s=t.children,g=t.columnKey,T=t.fixed,v=zt.useContainer(),Z=v.columnsMap,O=v.setColumnsMap;return r?(0,a.jsx)($t.Z,{title:i,children:(0,a.jsx)("span",{onClick:function(w){w.stopPropagation(),w.preventDefault();var b=Z[g]||{},M=typeof b.disable=="boolean"&&b.disable;if(!M){var A=(0,u.Z)((0,u.Z)({},Z),{},(0,Q.Z)({},g,(0,u.Z)((0,u.Z)({},b),{},{fixed:T})));O(A)}},children:s})}):null},D=function(t){var i=t.columnKey,r=t.isLeaf,s=t.title,g=t.className,T=t.fixed,v=(0,$.YB)(),Z=(0,a.jsxs)("span",{className:"".concat(g,"-list-item-option"),children:[(0,a.jsx)(l,{columnKey:i,fixed:"left",title:v.getMessage("tableToolBar.leftPin","\u56FA\u5B9A\u5728\u5217\u9996"),show:T!=="left",children:(0,a.jsx)(Fr.Z,{})}),(0,a.jsx)(l,{columnKey:i,fixed:void 0,title:v.getMessage("tableToolBar.noPin","\u4E0D\u56FA\u5B9A"),show:!!T,children:(0,a.jsx)(Zr.Z,{})}),(0,a.jsx)(l,{columnKey:i,fixed:"right",title:v.getMessage("tableToolBar.rightPin","\u56FA\u5B9A\u5728\u5217\u5C3E"),show:T!=="right",children:(0,a.jsx)(Vr.Z,{})})]});return(0,a.jsxs)("span",{className:"".concat(g,"-list-item"),children:[(0,a.jsx)("div",{className:"".concat(g,"-list-item-title"),children:s}),r?null:Z]},i)},F=function(t){var i,r,s=t.list,g=t.draggable,T=t.checkable,v=t.className,Z=t.showTitle,O=Z===void 0?!0:Z,W=t.title,w=t.listHeight,b=w===void 0?280:w,M=zt.useContainer(),A=M.columnsMap,_=M.setColumnsMap,z=M.sortKeyColumns,be=M.setSortKeyColumns,Ve=s&&s.length>0,Oe=(0,p.useMemo)(function(){if(!Ve)return{};var Je=[],ye=function I(B,j){return B.map(function(Le){var Te,ce=Le.key,Zt=Le.dataIndex,Et=Le.children,On=(0,h.Z)(Le,P),Fn=Ie(ce,On.index),jn=A[Fn||"null"]||{show:!0};jn.show!==!1&&(j==null?void 0:j.show)!==!1&&!Et&&Je.push(Fn);var mn=(0,u.Z)((0,u.Z)({key:Fn},(0,te.Z)(On,["className"])),{},{selectable:!1,disabled:jn.disable===!0,disableCheckbox:typeof jn.disable=="boolean"?jn.disable:(Te=jn.disable)===null||Te===void 0?void 0:Te.checkbox,isLeaf:j?!0:void 0});return Et&&(mn.children=I(Et,jn)),mn})};return{list:ye(s),keys:Je}},[A,s,Ve]),ae=(0,sr.J)(function(Je,ye,I){var B=(0,u.Z)({},A),j=(0,Pe.Z)(z),Le=j.findIndex(function(Et){return Et===Je}),Te=j.findIndex(function(Et){return Et===ye}),ce=I>Te;if(!(Le<0)){var Zt=j[Le];j.splice(Le,1),I===0?j.unshift(Zt):j.splice(ce?Te:Te+1,0,Zt),j.forEach(function(Et,On){B[Et]=(0,u.Z)((0,u.Z)({},B[Et]||{}),{},{order:On})}),_(B),be(j)}}),vt=(0,sr.J)(function(Je){var ye=Je.node.key,I=(0,u.Z)({},A[ye]);I.show=Je.checked,_((0,u.Z)((0,u.Z)({},A),{},(0,Q.Z)({},ye,I)))});if(!Ve)return null;var Re=(0,a.jsx)(Dr.Z,{itemHeight:24,draggable:g&&!!((i=Oe.list)===null||i===void 0?void 0:i.length)&&((r=Oe.list)===null||r===void 0?void 0:r.length)>1,checkable:T,onDrop:function(ye){var I=ye.node.key,B=ye.dragNode.key,j=ye.dropPosition,Le=ye.dropToGap,Te=j===-1||!Le?j+1:j;ae(B,I,Te)},blockNode:!0,onCheck:function(ye,I){return vt(I)},checkedKeys:Oe.keys,showLine:!1,titleRender:function(ye){var I=(0,u.Z)((0,u.Z)({},ye),{},{children:void 0});return(0,a.jsx)(D,(0,u.Z)((0,u.Z)({className:v},I),{},{title:(0,dr.h)(I.title,I),columnKey:I.key}))},height:b,treeData:Oe.list});return(0,a.jsxs)(a.Fragment,{children:[O&&(0,a.jsx)("span",{className:"".concat(v,"-list-title"),children:W}),Re]})},X=function(t){var i=t.localColumns,r=t.className,s=t.draggable,g=t.checkable,T=t.listsHeight,v=[],Z=[],O=[],W=(0,$.YB)();i.forEach(function(M){if(!M.hideInSetting){var A=M.fixed;if(A==="left"){Z.push(M);return}if(A==="right"){v.push(M);return}O.push(M)}});var w=v&&v.length>0,b=Z&&Z.length>0;return(0,a.jsxs)("div",{className:Ue()("".concat(r,"-list"),(0,Q.Z)({},"".concat(r,"-list-group"),w||b)),children:[(0,a.jsx)(F,{title:W.getMessage("tableToolBar.leftFixedTitle","\u56FA\u5B9A\u5728\u5DE6\u4FA7"),list:Z,draggable:s,checkable:g,className:r,listHeight:T}),(0,a.jsx)(F,{list:O,draggable:s,checkable:g,title:W.getMessage("tableToolBar.noFixedTitle","\u4E0D\u56FA\u5B9A"),showTitle:b||w,className:r,listHeight:T}),(0,a.jsx)(F,{title:W.getMessage("tableToolBar.rightFixedTitle","\u56FA\u5B9A\u5728\u53F3\u4FA7"),list:v,draggable:s,checkable:g,className:r,listHeight:T})]})};function le(o){var t,i,r=(0,p.useRef)({}),s=zt.useContainer(),g=o.columns,T=o.checkedReset,v=T===void 0?!0:T,Z=s.columnsMap,O=s.setColumnsMap,W=s.clearPersistenceStorage;(0,p.useEffect)(function(){var ae,vt;if((ae=s.propsRef.current)===null||ae===void 0||(vt=ae.columnsState)===null||vt===void 0?void 0:vt.value){var Re,Je;r.current=JSON.parse(JSON.stringify(((Re=s.propsRef.current)===null||Re===void 0||(Je=Re.columnsState)===null||Je===void 0?void 0:Je.value)||{}))}},[]);var w=(0,sr.J)(function(){var ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,vt={},Re=function Je(ye){ye.forEach(function(I){var B=I.key,j=I.fixed,Le=I.index,Te=I.children,ce=Ie(B,Le);ce&&(vt[ce]={show:ae,fixed:j}),Te&&Je(Te)})};Re(g),O(vt)}),b=(0,sr.J)(function(ae){ae.target.checked?w():w(!1)}),M=(0,sr.J)(function(){W==null||W(),O(r.current)}),A=Object.values(Z).filter(function(ae){return!ae||ae.show===!1}),_=A.length>0&&A.length!==g.length,z=(0,$.YB)(),be=(0,p.useContext)(R.ZP.ConfigContext),Ve=be.getPrefixCls,Oe=Ve("pro-table-column-setting");return(0,a.jsx)(Cr.Z,{arrowPointAtCenter:!0,title:(0,a.jsxs)("div",{className:"".concat(Oe,"-title"),children:[(0,a.jsx)(ir.Z,{indeterminate:_,checked:A.length===0&&A.length!==g.length,onChange:function(vt){return b(vt)},children:z.getMessage("tableToolBar.columnDisplay","\u5217\u5C55\u793A")}),v?(0,a.jsx)("a",{onClick:M,className:"".concat(Oe,"-action-rest-button"),children:z.getMessage("tableToolBar.reset","\u91CD\u7F6E")}):null,(o==null?void 0:o.extra)?(0,a.jsx)(Wn.Z,{size:12,align:"center",children:o.extra}):null]}),overlayClassName:"".concat(Oe,"-overlay"),trigger:"click",placement:"bottomRight",content:(0,a.jsx)(X,{checkable:(t=o.checkable)!==null&&t!==void 0?t:!0,draggable:(i=o.draggable)!==null&&i!==void 0?i:!0,className:Oe,localColumns:g,listsHeight:o.listsHeight}),children:o.children||(0,a.jsx)($t.Z,{title:z.getMessage("tableToolBar.columnSetting","\u5217\u8BBE\u7F6E"),children:(0,a.jsx)(lr.Z,{})})})}var K=le,ze=e(47673),q=e(4107),ke=e(38069),Ye=e(30887),ct=e(28682),Kt=e(59250),gt=e(13013),We=e(57254),Pt=e(36003),Qt=["label","key"],Gt=function(t){var i=t.items,r=i===void 0?[]:i,s=t.type,g=s===void 0?"inline":s,T=t.prefixCls,v=t.activeKey,Z=(0,$e.Z)(v,{value:v,onChange:t.onChange}),O=(0,V.Z)(Z,2),W=O[0],w=O[1];if(r.length<1)return null;var b=r.find(function(M){return M.key===W})||r[0];return g==="inline"?(0,a.jsx)("div",{className:Ue()("".concat(T,"-menu"),"".concat(T,"-inline-menu")),children:r.map(function(M,A){return(0,a.jsx)("div",{onClick:function(){w(M.key)},className:Ue()("".concat(T,"-inline-menu-item"),b.key===M.key?"".concat(T,"-inline-menu-item-active"):void 0),children:M.label},M.key||A)})}):g==="tab"?(0,a.jsx)(nt.Z,{activeKey:b.key,onTabClick:function(A){return w(A)},children:r.map(function(M,A){var _=M.label,z=M.key,be=(0,h.Z)(M,Qt);return(0,a.jsx)(nt.Z.TabPane,(0,u.Z)({tab:_},be),z||A)})}):(0,a.jsx)("div",{className:Ue()("".concat(T,"-menu"),"".concat(T,"-dropdownmenu")),children:(0,a.jsx)(gt.Z,{trigger:["click"],overlay:(0,a.jsx)(ct.Z,{selectedKeys:[b.key],onClick:function(A){w(A.key)},items:r.map(function(M,A){return{key:M.key||A,disabled:M.disabled,label:M.label}})}),children:(0,a.jsxs)(Wn.Z,{className:"".concat(T,"-dropdownmenu-label"),children:[b.label,(0,a.jsx)(We.Z,{})]})})})},Xt=Gt;function fn(o){if(p.isValidElement(o))return o;if(o){var t=o,i=t.icon,r=t.tooltip,s=t.onClick,g=t.key;return i&&r?(0,a.jsx)($t.Z,{title:r,children:(0,a.jsx)("span",{onClick:function(){s&&s(g)},children:i},g)}):i}return null}var tn=function(t){var i=t.prefixCls,r=t.tabs,s=r===void 0?{}:r,g=t.multipleLine,T=t.filtersNode;return g?(0,a.jsx)("div",{className:"".concat(i,"-extra-line"),children:s.items&&s.items.length?(0,a.jsx)(nt.Z,{activeKey:s.activeKey,onChange:s.onChange,tabBarExtraContent:T,children:s.items.map(function(v,Z){return(0,a.jsx)(nt.Z.TabPane,(0,u.Z)({},v),v.key||Z)})}):T}):null},sn=function(t){var i=t.prefixCls,r=t.title,s=t.subTitle,g=t.tooltip,T=t.className,v=t.style,Z=t.search,O=t.onSearch,W=t.multipleLine,w=W===void 0?!1:W,b=t.filter,M=t.actions,A=M===void 0?[]:M,_=t.settings,z=_===void 0?[]:_,be=t.tabs,Ve=be===void 0?{}:be,Oe=t.menu,ae=(0,$.YB)(),vt=(0,ke.ZP)(),Re=vt==="sm"||vt==="xs",Je=ae.getMessage("tableForm.inputPlaceholder","\u8BF7\u8F93\u5165"),ye=(0,p.useMemo)(function(){return Z?p.isValidElement(Z)?Z:(0,a.jsx)(q.Z.Search,(0,u.Z)((0,u.Z)({style:{width:200},placeholder:Je},Z),{},{onSearch:function(){for(var Yt,bn=arguments.length,En=new Array(bn),xt=0;xtqt||cn!==void 0&&z&&z.length<=qt&&Pn.run(!1)},[I==null?void 0:I.current]),(0,p.useEffect)(function(){!Fn||Pn.run(!1)},[I==null?void 0:I.pageSize]),(0,ot.ZP)(function(){return Pn.run(!1),v||(b.current=!1),function(){Pn.cancel()}},[].concat((0,Pe.Z)(bn),[v])),{dataSource:z,setDataSource:be,loading:ae,reload:function(){var dn=(0,f.Z)((0,c.Z)().mark(function qt(){return(0,c.Z)().wrap(function(gn){for(;;)switch(gn.prev=gn.next){case 0:return gn.next=2,Pn.run(!1);case 2:case"end":return gn.stop()}},qt)}));function cn(){return dn.apply(this,arguments)}return cn}(),pageInfo:I,pollingLoading:ce,reset:function(){var dn=(0,f.Z)((0,c.Z)().mark(function qt(){var hn,gn,_n,Kn,ar,vr,jr,br;return(0,c.Z)().wrap(function(mr){for(;;)switch(mr.prev=mr.next){case 0:hn=r||{},gn=hn.pageInfo,_n=gn||{},Kn=_n.defaultCurrent,ar=Kn===void 0?1:Kn,vr=_n.defaultPageSize,jr=vr===void 0?20:vr,br={current:ar,total:0,pageSize:jr},j(br);case 4:case"end":return mr.stop()}},qt)}));function cn(){return dn.apply(this,arguments)}return cn}(),setPageInfo:function(){var dn=(0,f.Z)((0,c.Z)().mark(function qt(hn){return(0,c.Z)().wrap(function(_n){for(;;)switch(_n.prev=_n.next){case 0:j((0,u.Z)((0,u.Z)({},I),hn));case 1:case"end":return _n.stop()}},qt)}));function cn(qt){return dn.apply(this,arguments)}return cn}()}},m=d,Y=function(t){return function(i,r){var s,g,T=i.fixed,v=i.index,Z=r.fixed,O=r.index;if(T==="left"&&Z!=="left"||Z==="right"&&T!=="right")return-2;if(Z==="left"&&T!=="left"||T==="right"&&Z!=="right")return 2;var W=i.key||"".concat(v),w=r.key||"".concat(O);if(((s=t[W])===null||s===void 0?void 0:s.order)||((g=t[w])===null||g===void 0?void 0:g.order)){var b,M;return(((b=t[W])===null||b===void 0?void 0:b.order)||0)-(((M=t[w])===null||M===void 0?void 0:M.order)||0)}return(i.index||0)-(r.index||0)}},bt=e(53227),kt=e(28700),un=function(t){var i={};return Object.keys(t||{}).forEach(function(r){var s;Array.isArray(t[r])&&((s=t[r])===null||s===void 0?void 0:s.length)===0||t[r]!==void 0&&(i[r]=t[r])}),i},Mt=un,ee=e(77398),Se=e(74763),Jt=e(88306),Xn=e(66758),xr=e(5894),Sr=e(31649),Hr=e(97462),Gn=e(94984),Nt=e(2026),Ee=["children"],Ut=["",null,void 0],Yn=function(){for(var t=arguments.length,i=new Array(t),r=0;rhn.length?(hn.push(Pn),hn):(hn.splice((T==null?void 0:T.current)*(T==null?void 0:T.pageSize)-1,0,Pn),hn)}return[].concat((0,Pe.Z)(r.dataSource),[Pn])},ce=function(){return(0,u.Z)((0,u.Z)({},I),{},{size:Z,rowSelection:v===!1?void 0:v,className:i,style:W,columns:j.map(function(bn){return bn.isExtraColumns?bn.extraColumn:bn}),loading:r.loading,dataSource:Je.newLineRecord?Te(r.dataSource):r.dataSource,pagination:T,onChange:function(En,xt,Pn,dn){var cn;if((cn=I.onChange)===null||cn===void 0||cn.call(I,En,xt,Pn,dn),Le||Ve((0,ge.Z)(xt)),Array.isArray(Pn)){var qt=Pn.reduce(function(Kn,ar){return(0,u.Z)((0,u.Z)({},Kn),{},(0,Q.Z)({},"".concat(ar.field),ar.order))},{});be((0,ge.Z)(qt))}else{var hn,gn=(hn=Pn.column)===null||hn===void 0?void 0:hn.sorter,_n=(gn==null?void 0:gn.toString())===gn;be((0,ge.Z)((0,Q.Z)({},"".concat(_n?gn:Pn.field),Pn.order))||{})}}})},Zt=(0,a.jsx)(ve.Z,(0,u.Z)((0,u.Z)({},ce()),{},{rowKey:t})),Et=o.tableViewRender?o.tableViewRender((0,u.Z)((0,u.Z)({},ce()),{},{rowSelection:v!==!1?v:void 0}),Zt):Zt,On=(0,p.useMemo)(function(){if(o.editable&&!o.name){var Yt,bn,En,xt;return(0,a.jsxs)(a.Fragment,{children:[w,_,(0,p.createElement)(oe.ZP,(0,u.Z)((0,u.Z)({},(Yt=o.editable)===null||Yt===void 0?void 0:Yt.formProps),{},{formRef:(bn=o.editable)===null||bn===void 0||(En=bn.formProps)===null||En===void 0?void 0:En.formRef,component:!1,form:(xt=o.editable)===null||xt===void 0?void 0:xt.form,onValuesChange:Je.onValuesChange,key:"table",submitter:!1,omitNil:!1,dateFormatter:o.dateFormatter}),Et)]})}return(0,a.jsxs)(a.Fragment,{children:[w,_,Et]})},[_,o.loading,!!o.editable,Et,w]),Fn=A===!1||!!o.name?On:(0,a.jsx)(U,(0,u.Z)((0,u.Z)({ghost:o.ghost,bordered:_e("table",Re),bodyStyle:w?{paddingTop:0}:{padding:0}},A),{},{children:On})),jn=function(){return o.tableRender?o.tableRender(o,Fn,{toolbar:w||void 0,alert:_||void 0,table:Et||void 0}):Fn},mn=(0,a.jsxs)("div",{className:Ue()(vt,(0,Q.Z)({},"".concat(vt,"-polling"),r.pollingLoading)),style:M,ref:B.rootDomRef,children:[ae?null:b,g!=="form"&&o.tableExtraRender&&(0,a.jsx)("div",{className:"".concat(vt,"-extra"),children:o.tableExtraRender(o,r.dataSource||[])}),g!=="form"&&jn()]});return!Oe||!(Oe==null?void 0:Oe.fullScreen)?mn:(0,a.jsx)(R.ZP,{getPopupContainer:function(){return B.rootDomRef.current||document.body},children:mn})}var ma={},ha=function(t){var i,r=t.cardBordered,s=t.request,g=t.className,T=t.params,v=T===void 0?ma:T,Z=t.defaultData,O=t.headerTitle,W=t.postData,w=t.ghost,b=t.pagination,M=t.actionRef,A=t.columns,_=A===void 0?[]:A,z=t.toolBarRender,be=t.onLoad,Ve=t.onRequestError,Oe=t.style,ae=t.cardProps,vt=t.tableStyle,Re=t.tableClassName,Je=t.columnsStateMap,ye=t.onColumnsStateChange,I=t.options,B=t.search,j=t.name,Le=t.onLoadingChange,Te=t.rowSelection,ce=Te===void 0?!1:Te,Zt=t.beforeSearchSubmit,Et=t.tableAlertRender,On=t.defaultClassName,Fn=t.formRef,jn=t.type,mn=jn===void 0?"table":jn,Yt=t.columnEmptyText,bn=Yt===void 0?"-":Yt,En=t.toolbar,xt=t.rowKey,Pn=t.manualRequest,dn=t.polling,cn=t.tooltip,qt=t.revalidateOnFocus,hn=qt===void 0?!1:qt,gn=(0,h.Z)(t,va),_n=Ue()(On,g),Kn=(0,p.useRef)(),ar=(0,p.useRef)(),vr=Fn||ar;(0,p.useImperativeHandle)(M,function(){return Kn.current});var jr=(0,me.Z)(ce?(ce==null?void 0:ce.defaultSelectedRowKeys)||[]:void 0,{value:ce?ce.selectedRowKeys:void 0}),br=(0,V.Z)(jr,2),fr=br[0],mr=br[1],Br=(0,p.useRef)([]),Kr=(0,p.useCallback)(function(ie,Ne){mr(ie),(!ce||!(ce==null?void 0:ce.selectedRowKeys))&&(Br.current=Ne)},[mr]),Wr=(0,me.Z)(function(){if(!(Pn||B!==!1))return{}}),rn=(0,V.Z)(Wr,2),Wt=rn[0],kr=rn[1],Xr=(0,me.Z)({}),$r=(0,V.Z)(Xr,2),Ar=$r[0],Gr=$r[1],Jr=(0,me.Z)({}),_r=(0,V.Z)(Jr,2),Yr=_r[0],Qr=_r[1];(0,p.useEffect)(function(){var ie=vn(_),Ne=ie.sort,Ht=ie.filter;Gr(Ht),Qr(Ne)},[]);var qr=(0,$.YB)(),ea=(0,De.Z)(b)==="object"?b:{defaultCurrent:1,defaultPageSize:20,pageSize:20,current:1},An=zt.useContainer(),qn=(0,p.useMemo)(function(){if(!!s)return function(){var ie=(0,f.Z)((0,c.Z)().mark(function Ne(Ht){var Rn,gr;return(0,c.Z)().wrap(function(Nr){for(;;)switch(Nr.prev=Nr.next){case 0:return Rn=(0,u.Z)((0,u.Z)((0,u.Z)({},Ht||{}),Wt),v),delete Rn._timestamp,Nr.next=4,s(Rn,Yr,Ar);case 4:return gr=Nr.sent,Nr.abrupt("return",gr);case 6:case"end":return Nr.stop()}},Ne)}));return function(Ne){return ie.apply(this,arguments)}}()},[Wt,v,Ar,Yr,s]),yt=m(qn,Z,{pageInfo:b===!1?!1:ea,loading:t.loading,dataSource:t.dataSource,onDataSourceChange:t.onDataSourceChange,onLoad:be,onLoadingChange:Le,onRequestError:Ve,postData:W,revalidateOnFocus:hn,manual:Wt===void 0,polling:dn,effects:[(0,en.P)(v),(0,en.P)(Wt),(0,en.P)(Ar),(0,en.P)(Yr)],debounceTime:t.debounceTime,onPageInfoChange:function(Ne){var Ht,Rn;mn==="list"||!b||!qn||(b==null||(Ht=b.onChange)===null||Ht===void 0||Ht.call(b,Ne.current,Ne.pageSize),b==null||(Rn=b.onShowSizeChange)===null||Rn===void 0||Rn.call(b,Ne.current,Ne.pageSize))}});(0,p.useEffect)(function(){var ie;if(!(t.manualRequest||!t.request||!hn||((ie=t.form)===null||ie===void 0?void 0:ie.ignoreRules))){var Ne=function(){document.visibilityState==="visible"&&yt.reload()};return document.addEventListener("visibilitychange",Ne),function(){return document.removeEventListener("visibilitychange",Ne)}}},[]);var zn=p.useRef(new Map),or=p.useMemo(function(){return typeof xt=="function"?xt:function(ie,Ne){var Ht;return Ne===-1?ie==null?void 0:ie[xt]:t.name?Ne==null?void 0:Ne.toString():(Ht=ie==null?void 0:ie[xt])!==null&&Ht!==void 0?Ht:Ne==null?void 0:Ne.toString()}},[t.name,xt]);(0,p.useMemo)(function(){var ie;if((ie=yt.dataSource)===null||ie===void 0?void 0:ie.length){var Ne=new Map,Ht=yt.dataSource.map(function(Rn){var gr=or(Rn,-1);return Ne.set(gr,Rn),gr});return zn.current=Ne,Ht}return[]},[yt.dataSource,or]),(0,p.useEffect)(function(){Br.current=fr==null?void 0:fr.map(function(ie){var Ne;return(Ne=zn.current)===null||Ne===void 0?void 0:Ne.get(ie)})},[fr]);var Er=(0,p.useMemo)(function(){var ie=b===!1?!1:(0,u.Z)({},b),Ne=(0,u.Z)((0,u.Z)({},yt.pageInfo),{},{setPageInfo:function(Rn){var gr=Rn.pageSize,Lr=Rn.current,Nr=yt.pageInfo;if(gr===Nr.pageSize||Nr.current===1){yt.setPageInfo({pageSize:gr,current:Lr});return}s&&yt.setDataSource([]),yt.setPageInfo({pageSize:gr,current:mn==="list"?Lr:1})}});return s&&ie&&(delete ie.onChange,delete ie.onShowSizeChange),Xe(ie,Ne,qr)},[b,yt,qr]);(0,ot.ZP)(function(){var ie;t.request&&v&&yt.dataSource&&(yt==null||(ie=yt.pageInfo)===null||ie===void 0?void 0:ie.current)!==1&&yt.setPageInfo({current:1})},[v]),An.setPrefixName(t.name);var Ir=(0,p.useCallback)(function(){ce&&ce.onChange&&ce.onChange([],[],{type:"none"}),Kr([],[])},[ce,Kr]);An.setAction(Kn.current),An.propsRef.current=t;var hr=(0,re.ZP)((0,u.Z)((0,u.Z)({},t.editable),{},{tableName:t.name,getRowKey:or,childrenColumnName:((i=t.expandable)===null||i===void 0?void 0:i.childrenColumnName)||"children",dataSource:yt.dataSource||[],setDataSource:function(Ne){var Ht,Rn;(Ht=t.editable)===null||Ht===void 0||(Rn=Ht.onValuesChange)===null||Rn===void 0||Rn.call(Ht,void 0,Ne),yt.setDataSource(Ne)}}));et(Kn,yt,{fullScreen:function(){var Ne;if(!(!((Ne=An.rootDomRef)===null||Ne===void 0?void 0:Ne.current)||!document.fullscreenEnabled))if(document.fullscreenElement)document.exitFullscreen();else{var Ht;(Ht=An.rootDomRef)===null||Ht===void 0||Ht.current.requestFullscreen()}},onCleanSelected:function(){Ir()},resetAll:function(){var Ne;Ir(),Gr({}),Qr({}),An.setKeyWords(void 0),yt.setPageInfo({current:1}),vr==null||(Ne=vr.current)===null||Ne===void 0||Ne.resetFields(),kr({})},editableUtils:hr}),M&&(M.current=Kn.current);var Or=(0,p.useMemo)(function(){var ie;return oa({columns:_,counter:An,columnEmptyText:bn,type:mn,editableUtils:hr,rowKey:xt,childrenColumnName:(ie=t.expandable)===null||ie===void 0?void 0:ie.childrenColumnName}).sort(Y(An.columnsMap))},[_,An==null?void 0:An.sortKeyColumns,An==null?void 0:An.columnsMap,bn,mn,hr.editableKeys&&hr.editableKeys.join(",")]);(0,ot.Au)(function(){if(Or&&Or.length>0){var ie=Or.map(function(Ne){return Ie(Ne.key,Ne.index)});An.setSortKeyColumns(ie)}},[Or],["render","renderFormItem"],100),(0,ot.ZP)(function(){var ie=yt.pageInfo,Ne=b||{},Ht=Ne.current,Rn=Ht===void 0?ie==null?void 0:ie.current:Ht,gr=Ne.pageSize,Lr=gr===void 0?ie==null?void 0:ie.pageSize:gr;b&&(Rn||Lr)&&(Lr!==(ie==null?void 0:ie.pageSize)||Rn!==(ie==null?void 0:ie.current))&&yt.setPageInfo({pageSize:Lr||ie.pageSize,current:Rn||ie.current})},[b&&b.pageSize,b&&b.current]);var ra=(0,u.Z)((0,u.Z)({selectedRowKeys:fr},ce),{},{onChange:function(Ne,Ht,Rn){ce&&ce.onChange&&ce.onChange(Ne,Ht,Rn),Kr(Ne,Ht)}}),aa=B!==!1&&(B==null?void 0:B.filterType)==="light",pa=function(Ne){if(I&&I.search){var Ht,Rn,gr=I.search===!0?{}:I.search,Lr=gr.name,Nr=Lr===void 0?"keyword":Lr,xa=(Ht=I.search)===null||Ht===void 0||(Rn=Ht.onSearch)===null||Rn===void 0?void 0:Rn.call(Ht,An.keyWords);if(xa!==!1){kr((0,u.Z)((0,u.Z)({},Ne),{},(0,Q.Z)({},Nr,An.keyWords)));return}}kr(Ne)},ya=(0,p.useMemo)(function(){if((0,De.Z)(yt.loading)==="object"){var ie;return((ie=yt.loading)===null||ie===void 0?void 0:ie.spinning)||!1}return yt.loading},[yt.loading]),ia=B===!1&&mn!=="form"?null:(0,a.jsx)(Jn,{pagination:Er,beforeSearchSubmit:Zt,action:Kn,columns:_,onFormSearchSubmit:function(Ne){pa(Ne)},ghost:w,onReset:t.onReset,onSubmit:t.onSubmit,loading:!!ya,manualRequest:Pn,search:B,form:t.form,formRef:vr,type:t.type||"table",cardBordered:t.cardBordered,dateFormatter:t.dateFormatter}),Ca=z===!1?null:(0,a.jsx)(wt,{headerTitle:O,hideToolbar:I===!1&&!O&&!z&&!En&&!aa,selectedRows:Br.current,selectedRowKeys:fr,tableColumn:Or,tooltip:cn,toolbar:En,onFormSearchSubmit:function(Ne){kr((0,u.Z)((0,u.Z)({},Wt),Ne))},searchNode:aa?ia:null,options:I,actionRef:Kn,toolBarRender:z}),Za=ce!==!1?(0,a.jsx)(N,{selectedRowKeys:fr,selectedRows:Br.current,onCleanSelected:Ir,alertOptionRender:gn.tableAlertOptionRender,alertInfoRender:Et,alwaysShowAlert:ce==null?void 0:ce.alwaysShowAlert}):null;return(0,a.jsx)(fa,(0,u.Z)((0,u.Z)({},t),{},{name:j,size:An.tableSize,onSizeChange:An.setTableSize,pagination:Er,searchNode:ia,rowSelection:ce!==!1?ra:void 0,className:_n,tableColumn:Or,isLightFilter:aa,action:yt,alertDom:Za,toolbarDom:Ca,onSortChange:Qr,onFilterChange:Gr,editableUtils:hr,getRowKey:or}))},la=function(t){var i=(0,p.useContext)(R.ZP.ConfigContext),r=i.getPrefixCls,s=t.ErrorBoundary===!1?p.Fragment:t.ErrorBoundary||Dt.Z;return(0,a.jsx)(zt.Provider,{initialState:t,children:(0,a.jsx)($.oK,{children:(0,a.jsx)(s,{children:(0,a.jsx)(ha,(0,u.Z)({defaultClassName:r("pro-table")},t))})})})};la.Summary=ve.Z.Summary;var ga=la},16894:function(pn,tt,e){"use strict";var c=e(78775),f=e(77153);tt.ZP=f.Z},94984:function(pn,tt,e){"use strict";var c=e(9715),f=e(55843),De=e(81253),V=e(28991),H=e(20136),R=e(55241),we=e(84305),ve=e(39559),Q=e(28481),Pe=e(85893),u=e(7085),h=e(67294),p=e(25394),a=e.n(p),ft=["label","rules","name","children","popoverProps"],nt=["errorType","rules","name","popoverProps","children"],Zn={marginTop:-5,marginBottom:-5,marginLeft:0,marginRight:0},Dn=function(Ft){var Ue=Ft.inputProps,te=Ft.input,ut=Ft.extra,rt=Ft.errorList,he=Ft.popoverProps,Lt=(0,h.useState)(!1),Fe=(0,Q.Z)(Lt,2),on=Fe[0],Be=Fe[1],at=(0,h.useState)([]),mt=(0,Q.Z)(at,2),$e=mt[0],fe=mt[1],k=(0,h.useContext)(ve.ZP.ConfigContext),se=k.getPrefixCls;(0,h.useEffect)(function(){Ue.validateStatus!=="validating"&&fe(Ue.errors)},[Ue.errors,Ue.validateStatus]);var He=se();return(0,Pe.jsx)(R.Z,(0,V.Z)((0,V.Z)({trigger:(he==null?void 0:he.trigger)||"focus",placement:(he==null?void 0:he.placement)||"topRight",visible:$e.length<1?!1:on,onVisibleChange:function(Vt){Vt!==on&&Be(Vt)},getPopupContainer:he==null?void 0:he.getPopupContainer,getTooltipContainer:he==null?void 0:he.getTooltipContainer,content:(0,Pe.jsxs)("div",{className:"".concat(He,"-form-item-with-help"),children:[Ue.validateStatus==="validating"?(0,Pe.jsx)(u.Z,{}):null,rt]})},he),{},{children:(0,Pe.jsxs)("div",{children:[te,ut]})}),"popover")},an=function(Ft){var Ue=Ft.label,te=Ft.rules,ut=Ft.name,rt=Ft.children,he=Ft.popoverProps,Lt=(0,De.Z)(Ft,ft);return(0,Pe.jsx)(f.Z.Item,(0,V.Z)((0,V.Z)({preserve:!1,name:ut,rules:te,hasFeedback:!0,_internalItemRender:{mark:"pro_table_render",render:function(on,Be){return(0,Pe.jsx)(Dn,(0,V.Z)({inputProps:on,popoverProps:he},Be))}}},Lt),{},{style:(0,V.Z)((0,V.Z)({},Zn),Lt==null?void 0:Lt.style),children:rt}))};tt.Z=function(Ct){var Ft=Ct.errorType,Ue=Ct.rules,te=Ct.name,ut=Ct.popoverProps,rt=Ct.children,he=(0,De.Z)(Ct,nt);return te&&(Ue==null?void 0:Ue.length)&&Ft==="popover"?(0,Pe.jsx)(an,(0,V.Z)((0,V.Z)({name:te,rules:Ue,popoverProps:ut},he),{},{children:rt})):(0,Pe.jsx)(f.Z.Item,(0,V.Z)((0,V.Z)({rules:Ue},he),{},{style:(0,V.Z)((0,V.Z)({},Zn),he.style),name:te,children:rt}))}},77398:function(pn,tt,e){"use strict";e.d(tt,{X:function(){return H}});var c=e(402),f=e(56256),De=e(85893),V=function(we){var ve;return!!((we==null||(ve=we.valueType)===null||ve===void 0?void 0:ve.toString().startsWith("date"))||(we==null?void 0:we.valueType)==="select"||(we==null?void 0:we.valueEnum))},H=function(we,ve,Q){if(ve.copyable||ve.ellipsis){var Pe=ve.copyable&&Q?{text:Q,tooltips:["",""]}:void 0,u=V(ve),h=ve.ellipsis&&Q?{tooltip:u?(0,De.jsx)("div",{className:"pro-table-tooltip-text",children:we}):Q}:!1;return(0,De.jsx)(f.Z.Text,{style:{width:"100%",margin:0,padding:0},title:"",copyable:Pe,ellipsis:h,children:we})}return we}},2026:function(pn,tt,e){"use strict";var c=e(22270),f=function(V,H,R){return H===void 0?V:(0,c.h)(V,H,R)};tt.Z=f},28700:function(pn,tt){"use strict";var e=function(f){if(f&&f!==!0)return f};tt.Z=e},86671:function(pn,tt,e){"use strict";e.d(tt,{sN:function(){return k},cx:function(){return se},aX:function(){return it}});var c=e(34792),f=e(48086),De=e(62350),V=e(24565),H=e(55507),R=e(99809),we=e(92137),ve=e(28481),Q=e(9715),Pe=e(55843),u=e(96156),h=e(85061),p=e(81253),a=e(28991),ft=e(90484),nt=e(85893),Zn=e(7085),Dn=e(78775),an=e(84164),Ct=e(21770),Ft=e(88306),Ue=e(8880),te=e(80334),ut=e(67294),rt=e(48171),he=e(10178),Lt=e(41036),Fe=e(27068),on=e(26369),Be=e(92210),at=e(56725),mt=["map_row_parentKey"],$e=["map_row_parentKey","map_row_key"],fe=["map_row_key"],k=function(J){return Array.isArray(J)?J.join(","):J};function se(C,J){var st,Ce=C.getRowKey,Ze=C.row,St=C.data,ht=C.childrenColumnName,Ot=(st=k(C.key))===null||st===void 0?void 0:st.toString(),dt=new Map;function ln(Qe,Ge,U){Qe.forEach(function(oe,$){var re=(U||0)*10+$,ge=Ce(oe,re).toString();oe&&(0,ft.Z)(oe)==="object"&&ht in oe&&ln(oe[ht]||[],ge,re);var me=(0,a.Z)((0,a.Z)({},oe),{},{map_row_key:ge,children:void 0,map_row_parentKey:Ge});delete me.children,Ge||delete me.map_row_parentKey,dt.set(ge,me)})}J==="top"&&dt.set(Ot,(0,a.Z)((0,a.Z)({},dt.get(Ot)),Ze)),ln(St),J==="update"&&dt.set(Ot,(0,a.Z)((0,a.Z)({},dt.get(Ot)),Ze)),J==="delete"&&dt.delete(Ot);var Bt=function(Ge){var U=new Map,oe=[],$=function(){Ge.forEach(function(ge){if(ge.map_row_parentKey&&!ge.map_row_key){var me=ge.map_row_parentKey,ot=(0,p.Z)(ge,mt);U.set(me,[].concat((0,h.Z)(U.get(me)||[]),[ot]))}})};return J==="top"&&$(),Ge.forEach(function(re){if(re.map_row_parentKey&&re.map_row_key){var ge=re.map_row_parentKey,me=re.map_row_key,ot=(0,p.Z)(re,$e);U.has(me)&&(ot[ht]=U.get(me)),U.set(ge,[].concat((0,h.Z)(U.get(ge)||[]),[ot]))}}),J==="update"&&$(),Ge.forEach(function(re){if(!re.map_row_parentKey){var ge=re.map_row_key,me=(0,p.Z)(re,fe);if(ge&&U.has(ge)){var ot=(0,a.Z)((0,a.Z)({},me),{},(0,u.Z)({},ht,U.get(ge)));oe.push(ot);return}oe.push(me)}}),oe};return Bt(dt)}function He(C){var J=C.recordKey,st=C.onSave,Ce=C.row,Ze=C.children,St=C.newLineConfig,ht=C.editorType,Ot=C.tableName,dt=(0,ut.useContext)(Lt.Z),ln=Pe.Z.useFormInstance(),Bt=(0,at.Z)(!1),Qe=(0,ve.Z)(Bt,2),Ge=Qe[0],U=Qe[1];return(0,nt.jsxs)("a",{onClick:function(){var oe=(0,we.Z)((0,H.Z)().mark(function re(ge){var me,ot,Dt,en,er,yn,Pr,Wn,kn;return(0,H.Z)().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return ge.stopPropagation(),ge.preventDefault(),S.prev=2,ot=ht==="Map",Dt=[Ot,Array.isArray(J)?J[0]:J].map(function(N){return N==null?void 0:N.toString()}).flat(1).filter(Boolean),U(!0),S.next=8,ln.validateFields(Dt,{recursive:!0});case 8:return en=((me=dt.getFieldFormatValue)===null||me===void 0?void 0:me.call(dt,Dt))||ln.getFieldValue(Dt),Array.isArray(J)&&J.length>1&&(er=(0,R.Z)(J),yn=er.slice(1),Pr=(0,Ft.Z)(en,yn),(0,Ue.Z)(en,yn,Pr)),Wn=ot?(0,Ue.Z)({},Dt,en,!0):en,S.next=13,st==null?void 0:st(J,(0,Be.T)({},Ce,Wn),Ce,St);case 13:return kn=S.sent,U(!1),S.abrupt("return",kn);case 18:return S.prev=18,S.t0=S.catch(2),console.log(S.t0),U(!1),S.abrupt("return",null);case 23:case"end":return S.stop()}},re,null,[[2,18]])}));function $(re){return oe.apply(this,arguments)}return $}(),children:[Ge?(0,nt.jsx)(Zn.Z,{style:{marginRight:8}}):null,Ze||"\u4FDD\u5B58"]},"save")}var ne=function(J){var st=J.recordKey,Ce=J.onDelete,Ze=J.row,St=J.children,ht=J.deletePopconfirmMessage,Ot=(0,at.Z)(function(){return!1}),dt=(0,ve.Z)(Ot,2),ln=dt[0],Bt=dt[1],Qe=(0,rt.J)((0,we.Z)((0,H.Z)().mark(function Ge(){var U;return(0,H.Z)().wrap(function($){for(;;)switch($.prev=$.next){case 0:return $.prev=0,Bt(!0),$.next=4,Ce==null?void 0:Ce(st,Ze);case 4:return U=$.sent,Bt(!1),$.abrupt("return",U);case 9:return $.prev=9,$.t0=$.catch(0),console.log($.t0),Bt(!1),$.abrupt("return",null);case 14:case"end":return $.stop()}},Ge,null,[[0,9]])})));return St!==!1?(0,nt.jsx)(V.Z,{title:ht,onConfirm:function(){return Qe()},children:(0,nt.jsxs)("a",{children:[ln?(0,nt.jsx)(Zn.Z,{style:{marginRight:8}}):null,St||"\u5220\u9664"]})},"delete"):null},Vt=function(J){var st=J.recordKey,Ce=J.tableName,Ze=J.newLineConfig,St=J.editorType,ht=J.onCancel,Ot=J.cancelEditable,dt=J.row,ln=J.cancelText,Bt=(0,ut.useContext)(Lt.Z),Qe=Pe.Z.useFormInstance();return(0,nt.jsx)("a",{onClick:function(){var Ge=(0,we.Z)((0,H.Z)().mark(function oe($){var re,ge,me,ot,Dt,en;return(0,H.Z)().wrap(function(yn){for(;;)switch(yn.prev=yn.next){case 0:return $.stopPropagation(),$.preventDefault(),ge=St==="Map",me=[Ce,st].flat(1).filter(Boolean),ot=((re=Bt.getFieldFormatValue)===null||re===void 0?void 0:re.call(Bt,me))||Qe.getFieldValue(me),Dt=ge?(0,Ue.Z)({},me,ot):ot,yn.next=8,ht==null?void 0:ht(st,Dt,dt,Ze);case 8:return en=yn.sent,Ot(st),Qe.setFieldsValue((0,u.Z)({},st,ge?(0,Ft.Z)(dt,me):dt)),yn.abrupt("return",en);case 12:case"end":return yn.stop()}},oe)}));function U(oe){return Ge.apply(this,arguments)}return U}(),children:ln||"\u53D6\u6D88"},"cancel")};function it(C,J){var st=J.recordKey,Ce=J.newLineConfig,Ze=J.saveText,St=J.deleteText;return[(0,nt.jsx)(He,(0,a.Z)((0,a.Z)({},J),{},{row:C,children:Ze}),"save"+st),(Ce==null?void 0:Ce.options.recordKey)!==st?(0,nt.jsx)(ne,(0,a.Z)((0,a.Z)({},J),{},{row:C,children:St}),"delete"+st):null,(0,nt.jsx)(Vt,(0,a.Z)((0,a.Z)({},J),{},{row:C}),"cancel"+st)]}function Tn(C){var J=(0,ut.useState)(void 0),st=(0,ve.Z)(J,2),Ce=st[0],Ze=st[1],St=(0,ut.useRef)(new Map),ht=(0,ut.useRef)(void 0);(0,Fe.Au)(function(){var y=new Map,x=function L(ue,xe){ue==null||ue.forEach(function(Xe,et){var de,_e=xe==null?et.toString():xe+"_"+et.toString();y.set(_e,k(C.getRowKey(Xe,-1))),y.set((de=k(C.getRowKey(Xe,-1)))===null||de===void 0?void 0:de.toString(),_e),C.childrenColumnName&&Xe[C.childrenColumnName]&&L(Xe[C.childrenColumnName],_e)})};x(C.dataSource),St.current=y},[C.dataSource]),ht.current=Ce;var Ot=C.type||"single",dt=(0,an.Z)(C.dataSource,"children",C.getRowKey),ln=(0,ve.Z)(dt,1),Bt=ln[0],Qe=(0,Ct.Z)([],{value:C.editableKeys,onChange:C.onChange?function(y){var x;C==null||(x=C.onChange)===null||x===void 0||x.call(C,y.filter(function(L){return L!==void 0}),y.map(function(L){return Bt(L)}).filter(function(L){return L!==void 0}))}:void 0}),Ge=(0,ve.Z)(Qe,2),U=Ge[0],oe=Ge[1],$=(0,ut.useMemo)(function(){var y=Ot==="single"?U==null?void 0:U.slice(0,1):U;return new Set(y)},[(U||[]).join(","),Ot]),re=(0,on.Z)(U),ge=(0,rt.J)(function(y){var x,L,ue,xe,Xe=(x=C.getRowKey(y,y.index))===null||x===void 0||(L=x.toString)===null||L===void 0?void 0:L.call(x),et=(ue=C.getRowKey(y,-1))===null||ue===void 0||(xe=ue.toString)===null||xe===void 0?void 0:xe.call(ue),de=U.map(function(Ie){return Ie==null?void 0:Ie.toString()}),_e=(re==null?void 0:re.map(function(Ie){return Ie==null?void 0:Ie.toString()}))||[],jt=C.tableName&&!!(_e==null?void 0:_e.includes(et))||!!(_e==null?void 0:_e.includes(Xe));return{recordKey:et,isEditable:C.tableName&&(de==null?void 0:de.includes(et))||(de==null?void 0:de.includes(Xe)),preIsEditable:jt}}),me=(0,rt.J)(function(y){return $.size>0&&Ot==="single"&&C.onlyOneLineEditorAlertMessage!==!1?(f.default.warn(C.onlyOneLineEditorAlertMessage||"\u53EA\u80FD\u540C\u65F6\u7F16\u8F91\u4E00\u884C"),!1):($.add(y),oe(Array.from($)),!0)}),ot=(0,rt.J)(function(){var y=(0,we.Z)((0,H.Z)().mark(function x(L,ue){var xe,Xe;return(0,H.Z)().wrap(function(de){for(;;)switch(de.prev=de.next){case 0:if(xe=k(L).toString(),Xe=St.current.get(xe),!(!$.has(xe)&&Xe&&(ue!=null?ue:!0)&&C.tableName)){de.next=5;break}return ot(Xe,!1),de.abrupt("return");case 5:return Ce&&Ce.options.recordKey===L&&Ze(void 0),$.delete(xe),$.delete(k(L)),oe(Array.from($)),de.abrupt("return",!0);case 10:case"end":return de.stop()}},x)}));return function(x,L){return y.apply(this,arguments)}}()),Dt=(0,he.Z)((0,we.Z)((0,H.Z)().mark(function y(){var x,L,ue,xe,Xe=arguments;return(0,H.Z)().wrap(function(de){for(;;)switch(de.prev=de.next){case 0:for(L=Xe.length,ue=new Array(L),xe=0;xe0&&Ot==="single"&&C.onlyOneLineEditorAlertMessage!==!1)return f.default.warn(C.onlyOneLineEditorAlertMessage||"\u53EA\u80FD\u540C\u65F6\u7F16\u8F91\u4E00\u884C"),!1;var L=C.getRowKey(y,-1);if(!L)throw(0,te.ET)(!!L,`\u8BF7\u8BBE\u7F6E recordCreatorProps.record \u5E76\u8FD4\u56DE\u4E00\u4E2A\u552F\u4E00\u7684key https://procomponents.ant.design/components/editable-table#editable-%E6%96%B0%E5%BB%BA%E8%A1%8C`),new Error("\u8BF7\u8BBE\u7F6E recordCreatorProps.record \u5E76\u8FD4\u56DE\u4E00\u4E2A\u552F\u4E00\u7684key");if($.add(L),oe(Array.from($)),(x==null?void 0:x.newRecordType)==="dataSource"||C.tableName){var ue,xe={data:C.dataSource,getRowKey:C.getRowKey,row:(0,a.Z)((0,a.Z)({},y),{},{map_row_parentKey:(x==null?void 0:x.parentKey)?(ue=k(x==null?void 0:x.parentKey))===null||ue===void 0?void 0:ue.toString():void 0}),key:L,childrenColumnName:C.childrenColumnName||"children"};C.setDataSource(se(xe,(x==null?void 0:x.position)==="top"?"top":"update"))}else Ze({defaultValue:y,options:(0,a.Z)((0,a.Z)({},x),{},{recordKey:L})});return!0}),yn=(0,Dn.YB)(),Pr=(C==null?void 0:C.saveText)||yn.getMessage("editableTable.action.save","\u4FDD\u5B58"),Wn=(C==null?void 0:C.deleteText)||yn.getMessage("editableTable.action.delete","\u5220\u9664"),kn=(C==null?void 0:C.cancelText)||yn.getMessage("editableTable.action.cancel","\u53D6\u6D88"),wr=(0,rt.J)(function(){var y=(0,we.Z)((0,H.Z)().mark(function x(L,ue,xe,Xe){var et,de,_e,jt,Ie,Cn,vn;return(0,H.Z)().wrap(function(In){for(;;)switch(In.prev=In.next){case 0:return jt=Xe||ht.current||{},Ie=jt.options,In.next=3,C==null||(et=C.onSave)===null||et===void 0?void 0:et.call(C,L,ue,xe,Xe);case 3:if(Cn=In.sent,ot(L),!(!(Ie==null?void 0:Ie.parentKey)&&(Ie==null?void 0:Ie.recordKey)===L)){In.next=8;break}return(Ie==null?void 0:Ie.position)==="top"?C.setDataSource([ue].concat((0,h.Z)(C.dataSource))):C.setDataSource([].concat((0,h.Z)(C.dataSource),[ue])),In.abrupt("return",Cn);case 8:return vn={data:C.dataSource,getRowKey:C.getRowKey,row:Ie?(0,a.Z)((0,a.Z)({},ue),{},{map_row_parentKey:(de=k((_e=Ie==null?void 0:Ie.parentKey)!==null&&_e!==void 0?_e:""))===null||de===void 0?void 0:de.toString()}):ue,key:L,childrenColumnName:C.childrenColumnName||"children"},C.setDataSource(se(vn,(Ie==null?void 0:Ie.position)==="top"?"top":"update")),In.abrupt("return",Cn);case 11:case"end":return In.stop()}},x)}));return function(x,L,ue,xe){return y.apply(this,arguments)}}()),S=(0,rt.J)(function(){var y=(0,we.Z)((0,H.Z)().mark(function x(L,ue){var xe,Xe,et;return(0,H.Z)().wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:return Xe={data:C.dataSource,getRowKey:C.getRowKey,row:ue,key:L,childrenColumnName:C.childrenColumnName||"children"},_e.next=3,C==null||(xe=C.onDelete)===null||xe===void 0?void 0:xe.call(C,L,ue);case 3:return et=_e.sent,_e.next=6,ot(L);case 6:return C.setDataSource(se(Xe,"delete")),_e.abrupt("return",et);case 8:case"end":return _e.stop()}},x)}));return function(x,L){return y.apply(this,arguments)}}()),N=(0,rt.J)(function(){var y=(0,we.Z)((0,H.Z)().mark(function x(L,ue,xe,Xe){var et,de;return(0,H.Z)().wrap(function(jt){for(;;)switch(jt.prev=jt.next){case 0:return jt.next=2,C==null||(et=C.onCancel)===null||et===void 0?void 0:et.call(C,L,ue,xe,Xe);case 2:return de=jt.sent,jt.abrupt("return",de);case 4:case"end":return jt.stop()}},x)}));return function(x,L,ue,xe){return y.apply(this,arguments)}}()),G=function(x){var L=C.getRowKey(x,x.index),ue={saveText:Pr,cancelText:kn,deleteText:Wn,addEditRecord:er,recordKey:L,cancelEditable:ot,index:x.index,tableName:C.tableName,newLineConfig:Ce,onCancel:N,onDelete:S,onSave:wr,editableKeys:U,setEditableRowKeys:oe,deletePopconfirmMessage:C.deletePopconfirmMessage||"".concat(yn.getMessage("deleteThisLine","\u5220\u9664\u6B64\u884C"),"?")},xe=it(x,ue);return C.actionRender?C.actionRender(x,ue,{save:xe[0],delete:xe[1],cancel:xe[2]}):xe};return{editableKeys:U,setEditableRowKeys:oe,isEditable:ge,actionRender:G,startEditable:me,cancelEditable:ot,addEditRecord:er,newLineRecord:Ce,preEditableKeys:re,onValuesChange:en}}tt.ZP=Tn},57084:function(){},98305:function(){},99509:function(){},16152:function(){},7391:function(){},29504:function(){},161:function(){},60870:function(){},16089:function(){},85378:function(){},36003:function(){},96106:function(){},45282:function(){},25394:function(){},68179:function(){},44887:function(){},48395:function(){},47828:function(){},27049:function(pn,tt,e){"use strict";var c=e(22122),f=e(96156),De=e(94184),V=e.n(De),H=e(67294),R=e(53124),we=function(Q,Pe){var u={};for(var h in Q)Object.prototype.hasOwnProperty.call(Q,h)&&Pe.indexOf(h)<0&&(u[h]=Q[h]);if(Q!=null&&typeof Object.getOwnPropertySymbols=="function")for(var p=0,h=Object.getOwnPropertySymbols(Q);p0?"-".concat(an):an,Fe=!!Ue,on=an==="left"&&Ct!=null,Be=an==="right"&&Ct!=null,at=V()(he,"".concat(he,"-").concat(Zn),(u={},(0,f.Z)(u,"".concat(he,"-with-text"),Fe),(0,f.Z)(u,"".concat(he,"-with-text").concat(Lt),Fe),(0,f.Z)(u,"".concat(he,"-dashed"),!!te),(0,f.Z)(u,"".concat(he,"-plain"),!!ut),(0,f.Z)(u,"".concat(he,"-rtl"),a==="rtl"),(0,f.Z)(u,"".concat(he,"-no-default-orientation-margin-left"),on),(0,f.Z)(u,"".concat(he,"-no-default-orientation-margin-right"),Be),u),Ft),mt=(0,c.Z)((0,c.Z)({},on&&{marginLeft:Ct}),Be&&{marginRight:Ct});return H.createElement("div",(0,c.Z)({className:at},rt,{role:"separator"}),Ue&&Zn!=="vertical"&&H.createElement("span",{className:"".concat(he,"-inner-text"),style:mt},Ue))};tt.Z=ve},48736:function(pn,tt,e){"use strict";var c=e(38663),f=e.n(c),De=e(68179),V=e.n(De)},75302:function(pn,tt,e){"use strict";var c=e(25378);function f(){return(0,c.Z)()}tt.ZP={useBreakpoint:f}},24565:function(pn,tt,e){"use strict";e.d(tt,{Z:function(){return Ue}});var c=e(22122),f=e(28481),De=e(68855),V=e(94184),H=e.n(V),R=e(21770),we=e(15105),ve=e(67294),Q=e(53124),Pe=e(55241),u=e(96159),h=e(71577),p=e(73839),a=e(86743),ft=e(42051),nt=e(85636),Zn=e(81643),Dn=function(ut){var rt=ut.prefixCls,he=ut.okButtonProps,Lt=ut.cancelButtonProps,Fe=ut.title,on=ut.cancelText,Be=ut.okText,at=ut.okType,mt=ut.icon,$e=ut.showCancel,fe=$e===void 0?!0:$e,k=ut.close,se=ut.onConfirm,He=ut.onCancel,ne=ve.useContext(Q.E_),Vt=ne.getPrefixCls;return ve.createElement(ft.Z,{componentName:"Popconfirm",defaultLocale:nt.Z.Popconfirm},function(it){return ve.createElement("div",{className:"".concat(rt,"-inner-content")},ve.createElement("div",{className:"".concat(rt,"-message")},mt&&ve.createElement("span",{className:"".concat(rt,"-message-icon")},mt),ve.createElement("div",{className:"".concat(rt,"-message-title")},(0,Zn.Z)(Fe))),ve.createElement("div",{className:"".concat(rt,"-buttons")},fe&&ve.createElement(h.Z,(0,c.Z)({onClick:He,size:"small"},Lt),on!=null?on:it.cancelText),ve.createElement(a.Z,{buttonProps:(0,c.Z)((0,c.Z)({size:"small"},(0,p.n)(at)),he),actionFn:se,close:k,prefixCls:Vt("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},Be!=null?Be:it.okText)))})},an=void 0,Ct=function(te,ut){var rt={};for(var he in te)Object.prototype.hasOwnProperty.call(te,he)&&ut.indexOf(he)<0&&(rt[he]=te[he]);if(te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Lt=0,he=Object.getOwnPropertySymbols(te);LtN){var et=N-G;return y.push(String(L).slice(0,et)),y}y.push(L),G=Xe}return S}var Vt=0,it=1,Tn=2,C=3,J=4,st=function(N){var G=N.enabledMeasure,y=N.children,x=N.text,L=N.width,ue=N.fontSize,xe=N.rows,Xe=N.onEllipsis,et=f.useState([0,0,0]),de=(0,H.Z)(et,2),_e=(0,H.Z)(de[0],3),jt=_e[0],Ie=_e[1],Cn=_e[2],vn=de[1],ur=f.useState(Vt),In=(0,H.Z)(ur,2),Ln=In[0],tr=In[1],Qn=f.useState(0),Un=(0,H.Z)(Qn,2),nr=Un[0],wn=Un[1],Rr=f.useRef(null),pr=f.useRef(null),Jn=f.useMemo(function(){return(0,a.Z)(x)},[x]),Bn=f.useMemo(function(){return He(Jn)},[Jn]),$t=f.useMemo(function(){return!G||Ln!==C?y(Jn,!1):y(ne(Jn,Ie),Ie1&&qe,Nn=function(Ee){var Ut;Pt(!0),(Ut=E.onExpand)===null||Ut===void 0||Ut.call(E,Ee)},Hn=f.useState(0),n=(0,H.Z)(Hn,2),d=n[0],m=n[1],Y=f.useState(0),bt=(0,H.Z)(Y,2),kt=bt[0],un=bt[1],Mt=function(Ee,Ut){var Yn=Ee.offsetWidth,cr;m(Yn),un(parseInt((cr=window.getComputedStyle)===null||cr===void 0?void 0:cr.call(window,Ut).fontSize,10)||0)},ee=function(Ee){var Ut;fn(Ee),Xt!==Ee&&((Ut=E.onEllipsis)===null||Ut===void 0||Ut.call(E,Ee))};f.useEffect(function(){var Nt=Un.current;if(Ke&&qe&&Nt){var Ee=_t?Nt.offsetHeight-1}function Qn(n,d){var m=this.__data__,Y=ir(m,n);return Y<0?(++this.size,m.push([n,d])):m[Y][1]=d,this}vn.prototype.clear=ur,vn.prototype.delete=In,vn.prototype.get=Ln,vn.prototype.has=tr,vn.prototype.set=Qn;function Un(n){var d=-1,m=n==null?0:n.length;for(this.clear();++d1?m[bt-1]:void 0,un=bt>2?m[2]:void 0;for(kt=n.length>3&&typeof kt=="function"?(bt--,kt):void 0,un&>(m[0],m[1],un)&&(kt=bt<3?void 0:kt,bt=1),d=Object(d);++Y-1&&n%1==0&&n0){if(++d>=De)return arguments[0]}else d=0;return n.apply(void 0,arguments)}}function pt(n){if(n!=null){try{return $.call(n)}catch(d){}try{return n+""}catch(d){}}return""}function It(n,d){return n===d||n!==n&&d!==d}var At=Dr(function(){return arguments}())?Dr:function(n){return nn(n)&&re.call(n,"callee")&&!wr.call(n,"callee")},Rt=Array.isArray;function lt(n){return n!=null&&E(n.length)&&!Ke(n)}function je(n){return nn(n)&<(n)}var Tt=y||Hn;function Ke(n){if(!Me(n))return!1;var d=rr(n);return d==h||d==p||d==ve||d==Dn}function E(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=H}function Me(n){var d=typeof n;return n!=null&&(d=="object"||d=="function")}function nn(n){return n!=null&&typeof n=="object"}function Sn(n){if(!nn(n)||rr(n)!=Zn)return!1;var d=Wn(n);if(d===null)return!0;var m=re.call(d,"constructor")&&d.constructor;return typeof m=="function"&&m instanceof m&&$.call(m)==ot}var Ae=St?dt(St):Zr;function qe(n){return le(n,wt(n))}function wt(n){return lt(n)?xn(n,!0):Vr(n)}var Mn=K(function(n,d,m){sr(n,d,m)});function _t(n){return function(){return n}}function Nn(n){return n}function Hn(){return!1}pn.exports=Mn},11742:function(pn){pn.exports=function(){var tt=document.getSelection();if(!tt.rangeCount)return function(){};for(var e=document.activeElement,c=[],f=0;f0&&p[p.length-1])||W[0]!==6&&W[0]!==2)){O=0;continue}if(W[0]===3&&(!p||W[1]>p[0]&&W[1]60*this.strategy.requestInterval*1e3},d.prototype.getUploadUrl=function(){return this.strategy.httpsUploadUrl+"?appkey="+this.appkey},d.prototype.isBlackEvent=function(i){return this.strategy.blacklist.indexOf(i)!=-1},d.prototype.isEventUpOnOff=function(){return this.strategy.isEventUpOnOff},d.prototype.isSampleEvent=function(i){return!!Object.prototype.hasOwnProperty.call(this.realSample,i)&&this.realSample[i]this.duration)return this.createSession();a=p.sessionId,s=p.sessionStart,this.getSessionStackDepth=0}catch(O){}return{sessionId:a,sessionStart:s}},d.prototype.createSession=function(){var i=Date.now(),a={sessionId:this.appkey+"_"+i.toString(),sessionStart:i};this.storage.setItem(D,JSON.stringify(a)),this.storage.setItem(L,i.toString());var s="is_new_user",p=this.storage.getItem(s);return this.getSessionStackDepth<=1&&this.beacon.onDirectUserAction("rqd_applaunched",{A21:p?"N":"Y"}),this.storage.setItem(s,JSON.stringify(!1)),a},d}();function F(){var d=navigator.userAgent,i=d.indexOf("compatible")>-1&&d.indexOf("MSIE")>-1,a=d.indexOf("Edge")>-1&&!i,s=d.indexOf("Trident")>-1&&d.indexOf("rv:11.0")>-1;if(i){new RegExp("MSIE (\\d+\\.\\d+);").test(d);var p=parseFloat(RegExp.$1);return p==7?7:p==8?8:p==9?9:p==10?10:6}return a?-2:s?11:-1}function $(d,i){var a,s;return(a="https://tun-cos-1258344701.file.myqcloud.com/fp.js",s===void 0&&(s=Date.now()+"-"+Math.random()),new Promise(function(p,R){if(document.getElementById(s))p(void 0);else{var O=document.getElementsByTagName("head")[0],G=document.createElement("script");G.onload=function(){return function(){G.onload=null,p(void 0)}},G.onerror=function(ae){G.onerror=null,O.removeChild(G),R(ae)},G.src=a,G.id=s,O.appendChild(G)}})).then(function(){new Fingerprint().getQimei36(d,i)}).catch(function(p){}),""}var w=function(){return(w=Object.assign||function(i){for(var a,s=1,p=arguments.length;s0||!window.indexedDB||/X5Lite/.test(navigator.userAgent)?(this.store=new se(a),this.dbEventCount=this.store.getCount()):(this.store=new ce(i),this.getCount().then(function(p){s.dbEventCount=p}).catch(function(p){}))}return d.prototype.getCount=function(){return ee(this,void 0,void 0,function(){return B(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,this.store.getCount()];case 1:return[2,i.sent()];case 2:return i.sent(),[2,Promise.reject()];case 3:return[2]}})})},d.prototype.insertEvent=function(i,a){return ee(this,void 0,void 0,function(){var s,p;return B(this,function(R){switch(R.label){case 0:if(this.dbEventCount>=1e4)return[2,Promise.reject()];s=A(i.mapValue),R.label=1;case 1:return R.trys.push([1,3,,4]),this.dbEventCount++,[4,this.store.setItem(s,i)];case 2:return[2,R.sent()];case 3:return p=R.sent(),a&&a(p,i),this.dbEventCount--,[2,Promise.reject()];case 4:return[2]}})})},d.prototype.getEvents=function(){return ee(this,void 0,void 0,function(){var i;return B(this,function(a){switch(a.label){case 0:i=[],a.label=1;case 1:return a.trys.push([1,3,,4]),[4,this.store.iterate(function(s){i.push(s)})];case 2:return a.sent(),[2,Promise.all(i)];case 3:return a.sent(),[2,Promise.all(i)];case 4:return[2]}})})},d.prototype.removeEvent=function(i){return ee(this,void 0,void 0,function(){var a;return B(this,function(s){switch(s.label){case 0:a=A(i.mapValue),s.label=1;case 1:return s.trys.push([1,3,,4]),this.dbEventCount--,[4,this.store.removeItem(a)];case 2:return[2,s.sent()];case 3:return s.sent(),this.dbEventCount++,[2,Promise.reject()];case 4:return[2]}})})},d}(),Z=function(){return(Z=Object.assign||function(i){for(var a,s=1,p=arguments.length;s0&&p[p.length-1])||W[0]!==6&&W[0]!==2)){O=0;continue}if(W[0]===3&&(!p||W[1]>p[0]&&W[1]0&&O<8,s.isUnderIE8||(s.isUnderIE=O>0,a.needInitQimei&&$(a.appkey,function(G){s.qimei36=G.q36}),s.network=new Ae(a),s.storage=new V(a.appkey),s.initCommonInfo(a),s.store=new re(a.appkey,s.storage),s.errorReport=new K(s.config,s.commonInfo,"web",s.network),s.strategy=new g(a.needQueryConfig==null||a.needQueryConfig,s.config,s.commonInfo,s.storage,s.network),s.logidStartTime=s.storage.getItem(x),s.logidStartTime||(s.logidStartTime=Date.now().toString(),s.storage.setItem(x,s.logidStartTime)),p=s.logidStartTime,R=Date.now()-Number.parseFloat(p),Math.floor(R/864e5)>=365&&s.storage.clear(),s.initSession(a),s.onDirectUserAction("rqd_js_init",{}),setTimeout(function(){return s.lifeCycle.emit("init")},0),s.initDelayTime=a.delay?a.delay:1e3,s.cycleTask(s.initDelayTime)),s}return function(a,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");function p(){this.constructor=a}k(a,s),a.prototype=s===null?Object.create(s):(p.prototype=s.prototype,new p)}(i,d),i.prototype.initSession=function(a){var s=18e5;a.sessionDuration&&a.sessionDuration>3e4&&(s=a.sessionDuration),this.beaconSession=new U(this.storage,s,this)},i.prototype.initCommonInfo=function(a){var s=Number(this.storage.getItem(L));try{var p=JSON.parse(this.storage.getItem(z));(Date.now()-s>3e4||!p)&&this.storage.setItem(z,JSON.stringify([]))}catch(O){}a.uploadUrl&&(this.uploadUrl=a.uploadUrl+"?appkey="+a.appkey);var R=[window.screen.width,window.screen.height];window.devicePixelRatio&&R.push(window.devicePixelRatio),this.commonInfo={deviceId:this.storage.createDeviceId(),language:navigator&&navigator.language||"zh_CN",query:window.location.search,userAgent:navigator.userAgent,pixel:R.join("*"),channelID:a.channelID?String(a.channelID):"",openid:a.openid?String(a.openid):"",unid:a.unionid?String(a.unionid):"",sdkVersion:I},this.config.appVersion=a.versionCode?String(a.versionCode):"",this.config.strictMode=a.strictMode},i.prototype.cycleTask=function(a){var s=this;this.intervalID=window.setInterval(function(){s.pauseSearching||s.store.getEvents().then(function(p){p.length==0&&(s.pauseSearching=!0);var R=[],O=JSON.parse(s.storage.getItem(z));O||(O=[]),p&&p.forEach(function(G){var ae=A(G.mapValue);O.indexOf(ae)==-1&&(R.push(G),O.push(ae))}),R.length!=0&&(s.storage.setItem(z,JSON.stringify(O)),s._normalLogPipeline(s.assembleData(R)))}).catch(function(p){})},a)},i.prototype.onReport=function(a,s,p){var R=this;if(this.isUnderIE8)this.errorReport.reportError("601","UnderIE8");else{this.pauseSearching=!1;var O=this.generateData(a,s,p);if(p&&this.delayTime==0&&!this.underWeakNet)this._normalLogPipeline(this.assembleData(O));else{var G=O.shift();G&&this.store.insertEvent(G,function(ae){ae&&R.errorReport.reportError("604","insertEvent fail!")}).catch(function(ae){R._normalLogPipeline(R.assembleData(O))})}}},i.prototype.onSendBeacon=function(a,s){if(this.isUnderIE)this.errorReport.reportError("605","UnderIE");else{this.pauseSearching=!1;var p=this.assembleData(this.generateData(a,s,!0));typeof navigator.sendBeacon=="function"&&navigator.sendBeacon(this.uploadUrl||this.strategy.getUploadUrl(),JSON.stringify(p))}},i.prototype.generateData=function(a,s,p){var R=[],O="4.5.14-web_"+(p?"direct_log_id":"normal_log_id"),G=Number(this.storage.getItem(O));return G=G||1,s=P(P({},s),{A99:p?"Y":"N",A100:G.toString(),A72:I,A88:this.logidStartTime}),G++,this.storage.setItem(O,G.toString()),R.push({eventCode:a,eventTime:Date.now().toString(),mapValue:M(s,this.config.strictMode)}),R},i.prototype.assembleData=function(a){var s=this.beaconSession.getSession();return{appVersion:this.config.appVersion?ge(this.config.appVersion):"",sdkId:"js",sdkVersion:I,mainAppKey:this.config.appkey,platformId:3,common:M(P(P({},this.additionalParams),{A2:this.commonInfo.deviceId,A8:this.commonInfo.openid,A12:this.commonInfo.language,A17:this.commonInfo.pixel,A23:this.commonInfo.channelID,A50:this.commonInfo.unid,A76:s.sessionId,A101:this.commonInfo.userAgent,A102:window.location.href,A104:document.referrer,A119:this.commonInfo.query,A153:this.qimei36}),!1),events:a}},i.prototype.monitorUploadFailed=function(){this.uselessCycleTaskNum++,this.uselessCycleTaskNum>=5&&(window.clearInterval(this.intervalID),this.cycleTask(6e4),this.underWeakNet=!0)},i.prototype.doCustomCycleTask=function(){this.uselessCycleTaskNum>=5&&(window.clearInterval(this.intervalID),this.cycleTask(this.initDelayTime)),this.uselessCycleTaskNum=0,this.underWeakNet=!1},i}(m)})},"./lib/crypto.js":function(y,C,u){(function(v){var T=u("./node_modules/@babel/runtime/helpers/typeof.js"),l=l||function(k,P){var ee={},B=ee.lib={},b=function(){},q=B.Base={extend:function(S){b.prototype=this;var m=new b;return S&&m.mixIn(S),m.hasOwnProperty("init")||(m.init=function(){m.$super.init.apply(this,arguments)}),m.init.prototype=m,m.$super=this,m},create:function(){var S=this.extend();return S.init.apply(S,arguments),S},init:function(){},mixIn:function(S){for(var m in S)S.hasOwnProperty(m)&&(this[m]=S[m]);S.hasOwnProperty("toString")&&(this.toString=S.toString)},clone:function(){return this.init.prototype.extend(this)}},L=B.WordArray=q.extend({init:function(S,m){S=this.words=S||[],this.sigBytes=m!=P?m:4*S.length},toString:function(S){return(S||_).stringify(this)},concat:function(S){var m=this.words,K=S.words,g=this.sigBytes;if(S=S.sigBytes,this.clamp(),g%4)for(var D=0;D>>2]|=(K[D>>>2]>>>24-8*(D%4)&255)<<24-8*((g+D)%4);else if(65535>>2]=K[D>>>2];else m.push.apply(m,K);return this.sigBytes+=S,this},clamp:function(){var S=this.words,m=this.sigBytes;S[m>>>2]&=4294967295<<32-8*(m%4),S.length=k.ceil(m/4)},clone:function(){var S=q.clone.call(this);return S.words=this.words.slice(0),S},random:function(S){for(var m=[],K=0;K>>2]>>>24-8*(g%4)&255;K.push((D>>>4).toString(16)),K.push((D&15).toString(16))}return K.join("")},parse:function(S){for(var m=S.length,K=[],g=0;g>>3]|=parseInt(S.substr(g,2),16)<<24-4*(g%8);return new L.init(K,m/2)}},j=z.Latin1={stringify:function(S){var m=S.words;S=S.sigBytes;for(var K=[],g=0;g>>2]>>>24-8*(g%4)&255));return K.join("")},parse:function(S){for(var m=S.length,K=[],g=0;g>>2]|=(S.charCodeAt(g)&255)<<24-8*(g%4);return new L.init(K,m)}},Q=z.Utf8={stringify:function(S){try{return decodeURIComponent(escape(j.stringify(S)))}catch(m){throw Error("Malformed UTF-8 data")}},parse:function(S){return j.parse(unescape(encodeURIComponent(S)))}},M=B.BufferedBlockAlgorithm=q.extend({reset:function(){this._data=new L.init,this._nDataBytes=0},_append:function(S){typeof S=="string"&&(S=Q.parse(S)),this._data.concat(S),this._nDataBytes+=S.sigBytes},_process:function(S){var m=this._data,K=m.words,g=m.sigBytes,D=this.blockSize,U=g/(4*D),U=S?k.ceil(U):k.max((U|0)-this._minBufferSize,0);if(S=U*D,g=k.min(4*S,g),S){for(var F=0;FS;S++){if(16>S)b[S]=L[z+S]|0;else{var m=b[S-3]^b[S-8]^b[S-14]^b[S-16];b[S]=m<<1|m>>>31}m=(j<<5|j>>>27)+A+b[S],m=20>S?m+((Q&M|~Q&ge)+1518500249):40>S?m+((Q^M^ge)+1859775393):60>S?m+((Q&M|Q&ge|M&ge)-1894007588):m+((Q^M^ge)-899497514),A=ge,ge=M,M=Q<<30|Q>>>2,Q=j,j=m}_[0]=_[0]+j|0,_[1]=_[1]+Q|0,_[2]=_[2]+M|0,_[3]=_[3]+ge|0,_[4]=_[4]+A|0},_doFinalize:function(){var L=this._data,z=L.words,_=8*this._nDataBytes,j=8*L.sigBytes;return z[j>>>5]|=128<<24-j%32,z[(j+64>>>9<<4)+14]=Math.floor(_/4294967296),z[(j+64>>>9<<4)+15]=_,L.sigBytes=4*z.length,this._process(),this._hash},clone:function(){var L=B.clone.call(this);return L._hash=this._hash.clone(),L}});k.SHA1=B._createHelper(P),k.HmacSHA1=B._createHmacHelper(P)})(),function(){var k=l,P=k.enc.Utf8;k.algo.HMAC=k.lib.Base.extend({init:function(B,b){B=this._hasher=new B.init,typeof b=="string"&&(b=P.parse(b));var q=B.blockSize,L=4*q;b.sigBytes>L&&(b=B.finalize(b)),b.clamp();for(var z=this._oKey=b.clone(),_=this._iKey=b.clone(),j=z.words,Q=_.words,M=0;M>>2]>>>24-M%4*8&255,A=z[M+1>>>2]>>>24-(M+1)%4*8&255,S=z[M+2>>>2]>>>24-(M+2)%4*8&255,m=ge<<16|A<<8|S,K=0;K<4&&M+K*.75<_;K++)Q.push(j.charAt(m>>>6*(3-K)&63));var g=j.charAt(64);if(g)for(;Q.length%4;)Q.push(g);return Q.join("")},parse:function(L){var z=L.length,_=this._map,j=_.charAt(64);if(j){var Q=L.indexOf(j);Q!=-1&&(z=Q)}for(var M=[],ge=0,A=0;A>>6-A%4*2;M[ge>>>2]|=(S|m)<<24-ge%4*8,ge++}return ee.create(M,ge)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),T(v)==="object"?v.exports=l:window.CryptoJS=l}).call(this,u("./node_modules/webpack/buildin/module.js")(y))},"./lib/json2xml.js":function(y,C,u){var v=u("./node_modules/@babel/runtime/helpers/typeof.js"),T="a-zA-Z_\xC0-\xD6\xD8-\xF6\xF8-\xFF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FFF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD",l="-.0-9\xB7\u0300-\u036F\u203F\u2040",k=new RegExp("^([^"+T+"])|^((x|X)(m|M)(l|L))|([^"+T+l+"])","g"),P=/[^\x09\x0A\x0D\x20-\xFF\x85\xA0-\uD7FF\uE000-\uFDCF\uFDE0-\uFFFD]/gm,ee=function(z){var _=[];if(z instanceof Object)for(var j in z)z.hasOwnProperty(j)&&_.push(j);return _},B=function(z,_){var j=function(M,ge,A,S,m){var K=_.indent!==void 0?_.indent:" ",g=_.prettyPrint?` +`+new Array(S).join(K):"";_.removeIllegalNameCharacters&&(M=M.replace(k,"_"));var D=[g,"<",M,A||""];return ge&&ge.length>0?(D.push(">"),D.push(ge),m&&D.push(g),D.push("")):D.push("/>"),D.join("")};return function Q(M,ge,A){var S=v(M);switch((Array.isArray?Array.isArray(M):M instanceof Array)?S="array":M instanceof Date&&(S="date"),S){case"array":var m=[];return M.map(function(U){m.push(Q(U,1,A+1))}),_.prettyPrint&&m.push(` +`),m.join("");break;case"date":return M.toJSON?M.toJSON():M+"";case"object":var K=[];for(var g in M)if(M.hasOwnProperty(g))if(M[g]instanceof Array)for(var D=0;D0&&K.push(` +`),K.join("");break;case"function":return M();default:return _.escape?q(M):""+M}}(z,0,0)},b=function(z){var _=['"),_.join("")};function q(L){return(""+L).replace(/&/g,"&").replace(//g,">").replace(/'/g,"'").replace(/"/g,""").replace(P,"")}y.exports=function(L,z){if(z||(z={xmlHeader:{standalone:!0},prettyPrint:!0,indent:" ",escape:!0}),typeof L=="string")try{L=JSON.parse(L.toString())}catch(M){return!1}var _="",j="";z&&(v(z)=="object"?(z.xmlHeader&&(_=b(!!z.xmlHeader.standalone)),typeof z.docType!="undefined"&&(j="")):_=b()),z=z||{};var Q=[_,z.prettyPrint&&j?` +`:"",j,B(L,z)];return Q.join("").replace(/\n{2,}/g,` +`).replace(/\s+$/g,"")}},"./lib/md5.js":function(module,exports,__nested_webpack_require_69768__){(function(process,global,module){var __WEBPACK_AMD_DEFINE_RESULT__,_typeof=__nested_webpack_require_69768__("./node_modules/@babel/runtime/helpers/typeof.js");(function(){"use strict";var ERROR="input is invalid type",WINDOW=(typeof window=="undefined"?"undefined":_typeof(window))==="object",root=WINDOW?window:{};root.JS_MD5_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&(typeof self=="undefined"?"undefined":_typeof(self))==="object",NODE_JS=!root.JS_MD5_NO_NODE_JS&&(typeof process=="undefined"?"undefined":_typeof(process))==="object"&&process.versions&&process.versions.node;NODE_JS?root=global:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_MD5_NO_COMMON_JS&&_typeof(module)==="object"&&module.exports,AMD=__nested_webpack_require_69768__("./node_modules/webpack/buildin/amd-options.js"),ARRAY_BUFFER=!root.JS_MD5_NO_ARRAY_BUFFER&&typeof ArrayBuffer!="undefined",HEX_CHARS="0123456789abcdef".split(""),EXTRA=[128,32768,8388608,-2147483648],SHIFT=[0,8,16,24],OUTPUT_TYPES=["hex","array","digest","buffer","arrayBuffer","base64"],BASE64_ENCODE_CHAR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),blocks=[],buffer8;if(ARRAY_BUFFER){var buffer=new ArrayBuffer(68);buffer8=new Uint8Array(buffer),blocks=new Uint32Array(buffer)}(root.JS_MD5_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(y){return Object.prototype.toString.call(y)==="[object Array]"}),ARRAY_BUFFER&&(root.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(y){return _typeof(y)==="object"&&y.buffer&&y.buffer.constructor===ArrayBuffer});var createOutputMethod=function(C){return function(u,v){return new Md5(!0).update(u,v)[C]()}},createMethod=function(){var C=createOutputMethod("hex");NODE_JS&&(C=nodeWrap(C)),C.getCtx=C.create=function(){return new Md5},C.update=function(T){return C.create().update(T)};for(var u=0;u>6,P[T++]=128|u&63):u<55296||u>=57344?(P[T++]=224|u>>12,P[T++]=128|u>>6&63,P[T++]=128|u&63):(u=65536+((u&1023)<<10|y.charCodeAt(++v)&1023),P[T++]=240|u>>18,P[T++]=128|u>>12&63,P[T++]=128|u>>6&63,P[T++]=128|u&63);else for(T=this.start;v>2]|=u<>2]|=(192|u>>6)<>2]|=(128|u&63)<=57344?(k[T>>2]|=(224|u>>12)<>2]|=(128|u>>6&63)<>2]|=(128|u&63)<>2]|=(240|u>>18)<>2]|=(128|u>>12&63)<>2]|=(128|u>>6&63)<>2]|=(128|u&63)<=64?(this.start=T-64,this.hash(),this.hashed=!0):this.start=T}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Md5.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var y=this.blocks,C=this.lastByteIndex;y[C>>2]|=EXTRA[C&3],C>=56&&(this.hashed||this.hash(),y[0]=y[16],y[16]=y[1]=y[2]=y[3]=y[4]=y[5]=y[6]=y[7]=y[8]=y[9]=y[10]=y[11]=y[12]=y[13]=y[14]=y[15]=0),y[14]=this.bytes<<3,y[15]=this.hBytes<<3|this.bytes>>>29,this.hash()}},Md5.prototype.hash=function(){var y,C,u,v,T,l,k=this.blocks;this.first?(y=k[0]-680876937,y=(y<<7|y>>>25)-271733879<<0,v=(-1732584194^y&2004318071)+k[1]-117830708,v=(v<<12|v>>>20)+y<<0,u=(-271733879^v&(y^-271733879))+k[2]-1126478375,u=(u<<17|u>>>15)+v<<0,C=(y^u&(v^y))+k[3]-1316259209,C=(C<<22|C>>>10)+u<<0):(y=this.h0,C=this.h1,u=this.h2,v=this.h3,y+=(v^C&(u^v))+k[0]-680876936,y=(y<<7|y>>>25)+C<<0,v+=(u^y&(C^u))+k[1]-389564586,v=(v<<12|v>>>20)+y<<0,u+=(C^v&(y^C))+k[2]+606105819,u=(u<<17|u>>>15)+v<<0,C+=(y^u&(v^y))+k[3]-1044525330,C=(C<<22|C>>>10)+u<<0),y+=(v^C&(u^v))+k[4]-176418897,y=(y<<7|y>>>25)+C<<0,v+=(u^y&(C^u))+k[5]+1200080426,v=(v<<12|v>>>20)+y<<0,u+=(C^v&(y^C))+k[6]-1473231341,u=(u<<17|u>>>15)+v<<0,C+=(y^u&(v^y))+k[7]-45705983,C=(C<<22|C>>>10)+u<<0,y+=(v^C&(u^v))+k[8]+1770035416,y=(y<<7|y>>>25)+C<<0,v+=(u^y&(C^u))+k[9]-1958414417,v=(v<<12|v>>>20)+y<<0,u+=(C^v&(y^C))+k[10]-42063,u=(u<<17|u>>>15)+v<<0,C+=(y^u&(v^y))+k[11]-1990404162,C=(C<<22|C>>>10)+u<<0,y+=(v^C&(u^v))+k[12]+1804603682,y=(y<<7|y>>>25)+C<<0,v+=(u^y&(C^u))+k[13]-40341101,v=(v<<12|v>>>20)+y<<0,u+=(C^v&(y^C))+k[14]-1502002290,u=(u<<17|u>>>15)+v<<0,C+=(y^u&(v^y))+k[15]+1236535329,C=(C<<22|C>>>10)+u<<0,y+=(u^v&(C^u))+k[1]-165796510,y=(y<<5|y>>>27)+C<<0,v+=(C^u&(y^C))+k[6]-1069501632,v=(v<<9|v>>>23)+y<<0,u+=(y^C&(v^y))+k[11]+643717713,u=(u<<14|u>>>18)+v<<0,C+=(v^y&(u^v))+k[0]-373897302,C=(C<<20|C>>>12)+u<<0,y+=(u^v&(C^u))+k[5]-701558691,y=(y<<5|y>>>27)+C<<0,v+=(C^u&(y^C))+k[10]+38016083,v=(v<<9|v>>>23)+y<<0,u+=(y^C&(v^y))+k[15]-660478335,u=(u<<14|u>>>18)+v<<0,C+=(v^y&(u^v))+k[4]-405537848,C=(C<<20|C>>>12)+u<<0,y+=(u^v&(C^u))+k[9]+568446438,y=(y<<5|y>>>27)+C<<0,v+=(C^u&(y^C))+k[14]-1019803690,v=(v<<9|v>>>23)+y<<0,u+=(y^C&(v^y))+k[3]-187363961,u=(u<<14|u>>>18)+v<<0,C+=(v^y&(u^v))+k[8]+1163531501,C=(C<<20|C>>>12)+u<<0,y+=(u^v&(C^u))+k[13]-1444681467,y=(y<<5|y>>>27)+C<<0,v+=(C^u&(y^C))+k[2]-51403784,v=(v<<9|v>>>23)+y<<0,u+=(y^C&(v^y))+k[7]+1735328473,u=(u<<14|u>>>18)+v<<0,C+=(v^y&(u^v))+k[12]-1926607734,C=(C<<20|C>>>12)+u<<0,T=C^u,y+=(T^v)+k[5]-378558,y=(y<<4|y>>>28)+C<<0,v+=(T^y)+k[8]-2022574463,v=(v<<11|v>>>21)+y<<0,l=v^y,u+=(l^C)+k[11]+1839030562,u=(u<<16|u>>>16)+v<<0,C+=(l^u)+k[14]-35309556,C=(C<<23|C>>>9)+u<<0,T=C^u,y+=(T^v)+k[1]-1530992060,y=(y<<4|y>>>28)+C<<0,v+=(T^y)+k[4]+1272893353,v=(v<<11|v>>>21)+y<<0,l=v^y,u+=(l^C)+k[7]-155497632,u=(u<<16|u>>>16)+v<<0,C+=(l^u)+k[10]-1094730640,C=(C<<23|C>>>9)+u<<0,T=C^u,y+=(T^v)+k[13]+681279174,y=(y<<4|y>>>28)+C<<0,v+=(T^y)+k[0]-358537222,v=(v<<11|v>>>21)+y<<0,l=v^y,u+=(l^C)+k[3]-722521979,u=(u<<16|u>>>16)+v<<0,C+=(l^u)+k[6]+76029189,C=(C<<23|C>>>9)+u<<0,T=C^u,y+=(T^v)+k[9]-640364487,y=(y<<4|y>>>28)+C<<0,v+=(T^y)+k[12]-421815835,v=(v<<11|v>>>21)+y<<0,l=v^y,u+=(l^C)+k[15]+530742520,u=(u<<16|u>>>16)+v<<0,C+=(l^u)+k[2]-995338651,C=(C<<23|C>>>9)+u<<0,y+=(u^(C|~v))+k[0]-198630844,y=(y<<6|y>>>26)+C<<0,v+=(C^(y|~u))+k[7]+1126891415,v=(v<<10|v>>>22)+y<<0,u+=(y^(v|~C))+k[14]-1416354905,u=(u<<15|u>>>17)+v<<0,C+=(v^(u|~y))+k[5]-57434055,C=(C<<21|C>>>11)+u<<0,y+=(u^(C|~v))+k[12]+1700485571,y=(y<<6|y>>>26)+C<<0,v+=(C^(y|~u))+k[3]-1894986606,v=(v<<10|v>>>22)+y<<0,u+=(y^(v|~C))+k[10]-1051523,u=(u<<15|u>>>17)+v<<0,C+=(v^(u|~y))+k[1]-2054922799,C=(C<<21|C>>>11)+u<<0,y+=(u^(C|~v))+k[8]+1873313359,y=(y<<6|y>>>26)+C<<0,v+=(C^(y|~u))+k[15]-30611744,v=(v<<10|v>>>22)+y<<0,u+=(y^(v|~C))+k[6]-1560198380,u=(u<<15|u>>>17)+v<<0,C+=(v^(u|~y))+k[13]+1309151649,C=(C<<21|C>>>11)+u<<0,y+=(u^(C|~v))+k[4]-145523070,y=(y<<6|y>>>26)+C<<0,v+=(C^(y|~u))+k[11]-1120210379,v=(v<<10|v>>>22)+y<<0,u+=(y^(v|~C))+k[2]+718787259,u=(u<<15|u>>>17)+v<<0,C+=(v^(u|~y))+k[9]-343485551,C=(C<<21|C>>>11)+u<<0,this.first?(this.h0=y+1732584193<<0,this.h1=C-271733879<<0,this.h2=u-1732584194<<0,this.h3=v+271733878<<0,this.first=!1):(this.h0=this.h0+y<<0,this.h1=this.h1+C<<0,this.h2=this.h2+u<<0,this.h3=this.h3+v<<0)},Md5.prototype.hex=function(){this.finalize();var y=this.h0,C=this.h1,u=this.h2,v=this.h3;return HEX_CHARS[y>>4&15]+HEX_CHARS[y&15]+HEX_CHARS[y>>12&15]+HEX_CHARS[y>>8&15]+HEX_CHARS[y>>20&15]+HEX_CHARS[y>>16&15]+HEX_CHARS[y>>28&15]+HEX_CHARS[y>>24&15]+HEX_CHARS[C>>4&15]+HEX_CHARS[C&15]+HEX_CHARS[C>>12&15]+HEX_CHARS[C>>8&15]+HEX_CHARS[C>>20&15]+HEX_CHARS[C>>16&15]+HEX_CHARS[C>>28&15]+HEX_CHARS[C>>24&15]+HEX_CHARS[u>>4&15]+HEX_CHARS[u&15]+HEX_CHARS[u>>12&15]+HEX_CHARS[u>>8&15]+HEX_CHARS[u>>20&15]+HEX_CHARS[u>>16&15]+HEX_CHARS[u>>28&15]+HEX_CHARS[u>>24&15]+HEX_CHARS[v>>4&15]+HEX_CHARS[v&15]+HEX_CHARS[v>>12&15]+HEX_CHARS[v>>8&15]+HEX_CHARS[v>>20&15]+HEX_CHARS[v>>16&15]+HEX_CHARS[v>>28&15]+HEX_CHARS[v>>24&15]},Md5.prototype.toString=Md5.prototype.hex,Md5.prototype.digest=function(y){if(y==="hex")return this.hex();this.finalize();var C=this.h0,u=this.h1,v=this.h2,T=this.h3,l=[C&255,C>>8&255,C>>16&255,C>>24&255,u&255,u>>8&255,u>>16&255,u>>24&255,v&255,v>>8&255,v>>16&255,v>>24&255,T&255,T>>8&255,T>>16&255,T>>24&255];return l},Md5.prototype.array=Md5.prototype.digest,Md5.prototype.arrayBuffer=function(){this.finalize();var y=new ArrayBuffer(16),C=new Uint32Array(y);return C[0]=this.h0,C[1]=this.h1,C[2]=this.h2,C[3]=this.h3,y},Md5.prototype.buffer=Md5.prototype.arrayBuffer,Md5.prototype.base64=function(){for(var y,C,u,v="",T=this.array(),l=0;l<15;)y=T[l++],C=T[l++],u=T[l++],v+=BASE64_ENCODE_CHAR[y>>>2]+BASE64_ENCODE_CHAR[(y<<4|C>>>4)&63]+BASE64_ENCODE_CHAR[(C<<2|u>>>6)&63]+BASE64_ENCODE_CHAR[u&63];return y=T[l],v+=BASE64_ENCODE_CHAR[y>>>2]+BASE64_ENCODE_CHAR[y<<4&63]+"==",v};var exports=createMethod();COMMON_JS?module.exports=exports:(root.md5=exports,AMD&&(__WEBPACK_AMD_DEFINE_RESULT__=function(){return exports}.call(exports,__nested_webpack_require_69768__,exports,module),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)))})()}).call(this,__nested_webpack_require_69768__("./node_modules/process/browser.js"),__nested_webpack_require_69768__("./node_modules/webpack/buildin/global.js"),__nested_webpack_require_69768__("./node_modules/webpack/buildin/module.js")(module))},"./lib/request.js":function(y,C,u){var v=u("./node_modules/@babel/runtime/helpers/typeof.js"),T=function(b){switch(v(b)){case"string":return b;case"boolean":return b?"true":"false";case"number":return isFinite(b)?b:"";default:return""}},l=function(b,q,L,z){return q=q||"&",L=L||"=",b===null&&(b=void 0),v(b)==="object"?Object.keys(b).map(function(_){var j=encodeURIComponent(T(_))+L;return Array.isArray(b[_])?b[_].map(function(Q){return j+encodeURIComponent(T(Q))}).join(q):j+encodeURIComponent(T(b[_]))}).filter(Boolean).join(q):z?encodeURIComponent(T(z))+L+encodeURIComponent(T(b)):""},k=function(b,q,L){var z={};return q.getAllResponseHeaders().trim().split(` +`).forEach(function(_){if(_){var j=_.indexOf(":"),Q=_.substr(0,j).trim().toLowerCase(),M=_.substr(j+1).trim();z[Q]=M}}),{error:b,statusCode:q.status,statusMessage:q.statusText,headers:z,body:L}},P=function(b,q){return!q&&q==="text"?b.responseText:b.response},ee=function(b,q){var L=(b.method||"GET").toUpperCase(),z=b.url;if(b.qs){var _=l(b.qs);_&&(z+=(z.indexOf("?")===-1?"?":"&")+_)}var j=new XMLHttpRequest;if(j.open(L,z,!0),j.responseType=b.dataType||"text",b.xhrFields)for(var Q in b.xhrFields)j[Q]=b.xhrFields[Q];var M=b.headers;if(M)for(var ge in M)M.hasOwnProperty(ge)&&ge.toLowerCase()!=="content-length"&&ge.toLowerCase()!=="user-agent"&&ge.toLowerCase()!=="origin"&&ge.toLowerCase()!=="host"&&j.setRequestHeader(ge,M[ge]);return b.onProgress&&j.upload&&(j.upload.onprogress=b.onProgress),b.onDownloadProgress&&(j.onprogress=b.onDownloadProgress),b.timeout&&(j.timeout=b.timeout),j.ontimeout=function(A){var S=new Error("timeout");q(k(S,j))},j.onload=function(){q(k(null,j,P(j,b.dataType)))},j.onerror=function(A){var S=P(j,b.dataType);if(S)q(k(null,j,S));else{var m=j.statusText;!m&&j.status===0&&(m=new Error("CORS blocked or network error")),q(k(m,j,S))}},j.send(b.body||""),j};y.exports=ee},"./lib/xml2json.js":function(y,C,u){var v=u("./node_modules/@xmldom/xmldom/lib/index.js").DOMParser,T=function(){this.version="1.3.5";var k={mergeCDATA:!0,normalize:!0,stripElemPrefix:!0},P=new RegExp(/(?!xmlns)^.*:/),ee=new RegExp(/^\s+|\s+$/g);return this.grokType=function(B){return/^\s*$/.test(B)?null:/^(?:true|false)$/i.test(B)?B.toLowerCase()==="true":isFinite(B)?parseFloat(B):B},this.parseString=function(B,b){if(B){var q=this.stringToXML(B);return q.getElementsByTagName("parsererror").length?null:this.parseXML(q,b)}else return null},this.parseXML=function(B,b){for(var q in b)k[q]=b[q];var L={},z=0,_="",j=B.childNodes.length;if(j)for(var Q,M,ge,A=0;A=S+m||S?new java.lang.String(A,S,m)+"":A}"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(A){_.prototype[A]=function(){return null}});function ge(A,S){A.currentElement?A.currentElement.appendChild(S):A.doc.appendChild(S)}C.__DOMHandler=_,C.normalizeLineEndings=q,C.DOMParser=L},"./node_modules/@xmldom/xmldom/lib/dom.js":function(y,C,u){var v=u("./node_modules/@xmldom/xmldom/lib/conventions.js"),T=v.find,l=v.NAMESPACE;function k(t){return t!==""}function P(t){return t?t.split(/[\t\n\f\r ]+/).filter(k):[]}function ee(t,n){return t.hasOwnProperty(n)||(t[n]=!0),t}function B(t){if(!t)return[];var n=P(t);return Object.keys(n.reduce(ee,{}))}function b(t){return function(n){return t&&t.indexOf(n)!==-1}}function q(t,n){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}function L(t,n){var r=t.prototype;if(!(r instanceof n)){let E=function(){};var h=E;E.prototype=n.prototype,E=new E,q(r,E),t.prototype=r=E}r.constructor!=t&&(typeof t!="function"&&console.error("unknown Class:"+t),r.constructor=t)}var z={},_=z.ELEMENT_NODE=1,j=z.ATTRIBUTE_NODE=2,Q=z.TEXT_NODE=3,M=z.CDATA_SECTION_NODE=4,ge=z.ENTITY_REFERENCE_NODE=5,A=z.ENTITY_NODE=6,S=z.PROCESSING_INSTRUCTION_NODE=7,m=z.COMMENT_NODE=8,K=z.DOCUMENT_NODE=9,g=z.DOCUMENT_TYPE_NODE=10,D=z.DOCUMENT_FRAGMENT_NODE=11,U=z.NOTATION_NODE=12,F={},$={},w=F.INDEX_SIZE_ERR=($[1]="Index size error",1),H=F.DOMSTRING_SIZE_ERR=($[2]="DOMString size error",2),N=F.HIERARCHY_REQUEST_ERR=($[3]="Hierarchy request error",3),X=F.WRONG_DOCUMENT_ERR=($[4]="Wrong document",4),J=F.INVALID_CHARACTER_ERR=($[5]="Invalid character",5),ce=F.NO_DATA_ALLOWED_ERR=($[6]="No data allowed",6),se=F.NO_MODIFICATION_ALLOWED_ERR=($[7]="No modification allowed",7),re=F.NOT_FOUND_ERR=($[8]="Not found",8),Z=F.NOT_SUPPORTED_ERR=($[9]="Not supported",9),te=F.INUSE_ATTRIBUTE_ERR=($[10]="Attribute in use",10),ie=F.INVALID_STATE_ERR=($[11]="Invalid state",11),we=F.SYNTAX_ERR=($[12]="Syntax error",12),de=F.INVALID_MODIFICATION_ERR=($[13]="Invalid modification",13),Y=F.NAMESPACE_ERR=($[14]="Invalid namespace",14),pe=F.INVALID_ACCESS_ERR=($[15]="Invalid access",15);function oe(t,n){if(n instanceof Error)var r=n;else r=this,Error.call(this,$[t]),this.message=$[t],Error.captureStackTrace&&Error.captureStackTrace(this,oe);return r.code=t,n&&(this.message=this.message+": "+n),r}oe.prototype=Error.prototype,q(F,oe);function le(){}le.prototype={length:0,item:function(t){return this[t]||null},toString:function(t,n){for(var r=[],h=0;h=0){for(var E=n.length-1;h0},lookupPrefix:function(t){for(var n=this;n;){var r=n._nsMap;if(r){for(var h in r)if(Object.prototype.hasOwnProperty.call(r,h)&&r[h]===t)return h}n=n.nodeType==j?n.ownerDocument:n.parentNode}return null},lookupNamespaceURI:function(t){for(var n=this;n;){var r=n._nsMap;if(r&&Object.prototype.hasOwnProperty.call(r,t))return r[t];n=n.nodeType==j?n.ownerDocument:n.parentNode}return null},isDefaultNamespace:function(t){var n=this.lookupPrefix(t);return n==null}};function x(t){return t=="<"&&"<"||t==">"&&">"||t=="&"&&"&"||t=='"'&&"""||"&#"+t.charCodeAt()+";"}q(z,V),q(z,V.prototype);function I(t,n){if(n(t))return!0;if(t=t.firstChild)do if(I(t,n))return!0;while(t=t.nextSibling)}function d(){this.ownerDocument=this}function i(t,n,r){t&&t._inc++;var h=r.namespaceURI;h===l.XMLNS&&(n._nsMap[r.prefix?r.localName:""]=r.value)}function a(t,n,r,h){t&&t._inc++;var E=r.namespaceURI;E===l.XMLNS&&delete n._nsMap[r.prefix?r.localName:""]}function s(t,n,r){if(t&&t._inc){t._inc++;var h=n.childNodes;if(r)h[h.length++]=r;else{for(var E=n.firstChild,ne=0;E;)h[ne++]=E,E=E.nextSibling;h.length=ne,delete h[h.length]}}}function p(t,n){var r=n.previousSibling,h=n.nextSibling;return r?r.nextSibling=h:t.firstChild=h,h?h.previousSibling=r:t.lastChild=r,n.parentNode=null,n.previousSibling=null,n.nextSibling=null,s(t.ownerDocument,t),n}function R(t){return t&&(t.nodeType===V.DOCUMENT_NODE||t.nodeType===V.DOCUMENT_FRAGMENT_NODE||t.nodeType===V.ELEMENT_NODE)}function O(t){return t&&(ae(t)||Ce(t)||G(t)||t.nodeType===V.DOCUMENT_FRAGMENT_NODE||t.nodeType===V.COMMENT_NODE||t.nodeType===V.PROCESSING_INSTRUCTION_NODE)}function G(t){return t&&t.nodeType===V.DOCUMENT_TYPE_NODE}function ae(t){return t&&t.nodeType===V.ELEMENT_NODE}function Ce(t){return t&&t.nodeType===V.TEXT_NODE}function W(t,n){var r=t.childNodes||[];if(T(r,ae)||G(n))return!1;var h=T(r,G);return!(n&&h&&r.indexOf(h)>r.indexOf(n))}function Oe(t,n){var r=t.childNodes||[];function h(ne){return ae(ne)&&ne!==n}if(T(r,h))return!1;var E=T(r,G);return!(n&&E&&r.indexOf(E)>r.indexOf(n))}function ke(t,n,r){if(!R(t))throw new oe(N,"Unexpected parent node type "+t.nodeType);if(r&&r.parentNode!==t)throw new oe(re,"child not in parent");if(!O(n)||G(n)&&t.nodeType!==V.DOCUMENT_NODE)throw new oe(N,"Unexpected node type "+n.nodeType+" for parent node type "+t.nodeType)}function Ie(t,n,r){var h=t.childNodes||[],E=n.childNodes||[];if(n.nodeType===V.DOCUMENT_FRAGMENT_NODE){var ne=E.filter(ae);if(ne.length>1||T(E,Ce))throw new oe(N,"More than one element or text in fragment");if(ne.length===1&&!W(t,r))throw new oe(N,"Element in fragment can not be inserted before doctype")}if(ae(n)&&!W(t,r))throw new oe(N,"Only one element can be added and only after doctype");if(G(n)){if(T(h,G))throw new oe(N,"Only one doctype is allowed");var fe=T(h,ae);if(r&&h.indexOf(fe)1||T(E,Ce))throw new oe(N,"More than one element or text in fragment");if(ne.length===1&&!Oe(t,r))throw new oe(N,"Element in fragment can not be inserted before doctype")}if(ae(n)&&!Oe(t,r))throw new oe(N,"Only one element can be added and only after doctype");if(G(n)){let Te=function(Be){return G(Be)&&Be!==r};var ue=Te;if(T(h,Te))throw new oe(N,"Only one doctype is allowed");var fe=T(h,ae);if(r&&h.indexOf(fe)0&&I(r.documentElement,function(E){if(E!==r&&E.nodeType===_){var ne=E.getAttribute("class");if(ne){var fe=t===ne;if(!fe){var ue=B(ne);fe=n.every(b(ue))}fe&&h.push(E)}}}),h})},createElement:function(t){var n=new Fe;n.ownerDocument=this,n.nodeName=t,n.tagName=t,n.localName=t,n.childNodes=new le;var r=n.attributes=new me;return r._ownerElement=n,n},createDocumentFragment:function(){var t=new Je;return t.ownerDocument=this,t.childNodes=new le,t},createTextNode:function(t){var n=new ze;return n.ownerDocument=this,n.appendData(t),n},createComment:function(t){var n=new Xe;return n.ownerDocument=this,n.appendData(t),n},createCDATASection:function(t){var n=new nt;return n.ownerDocument=this,n.appendData(t),n},createProcessingInstruction:function(t,n){var r=new $e;return r.ownerDocument=this,r.tagName=r.target=t,r.nodeValue=r.data=n,r},createAttribute:function(t){var n=new je;return n.ownerDocument=this,n.name=t,n.nodeName=t,n.localName=t,n.specified=!0,n},createEntityReference:function(t){var n=new Ve;return n.ownerDocument=this,n.nodeName=t,n},createElementNS:function(t,n){var r=new Fe,h=n.split(":"),E=r.attributes=new me;return r.childNodes=new le,r.ownerDocument=this,r.nodeName=n,r.tagName=n,r.namespaceURI=t,h.length==2?(r.prefix=h[0],r.localName=h[1]):r.localName=n,E._ownerElement=r,r},createAttributeNS:function(t,n){var r=new je,h=n.split(":");return r.ownerDocument=this,r.nodeName=n,r.name=n,r.namespaceURI=t,r.specified=!0,h.length==2?(r.prefix=h[0],r.localName=h[1]):r.localName=n,r}},L(d,V);function Fe(){this._nsMap={}}Fe.prototype={nodeType:_,hasAttribute:function(t){return this.getAttributeNode(t)!=null},getAttribute:function(t){var n=this.getAttributeNode(t);return n&&n.value||""},getAttributeNode:function(t){return this.attributes.getNamedItem(t)},setAttribute:function(t,n){var r=this.ownerDocument.createAttribute(t);r.value=r.nodeValue=""+n,this.setAttributeNode(r)},removeAttribute:function(t){var n=this.getAttributeNode(t);n&&this.removeAttributeNode(n)},appendChild:function(t){return t.nodeType===D?this.insertBefore(t,null):Ge(this,t)},setAttributeNode:function(t){return this.attributes.setNamedItem(t)},setAttributeNodeNS:function(t){return this.attributes.setNamedItemNS(t)},removeAttributeNode:function(t){return this.attributes.removeNamedItem(t.nodeName)},removeAttributeNS:function(t,n){var r=this.getAttributeNodeNS(t,n);r&&this.removeAttributeNode(r)},hasAttributeNS:function(t,n){return this.getAttributeNodeNS(t,n)!=null},getAttributeNS:function(t,n){var r=this.getAttributeNodeNS(t,n);return r&&r.value||""},setAttributeNS:function(t,n,r){var h=this.ownerDocument.createAttributeNS(t,n);h.value=h.nodeValue=""+r,this.setAttributeNode(h)},getAttributeNodeNS:function(t,n){return this.attributes.getNamedItemNS(t,n)},getElementsByTagName:function(t){return new ye(this,function(n){var r=[];return I(n,function(h){h!==n&&h.nodeType==_&&(t==="*"||h.tagName==t)&&r.push(h)}),r})},getElementsByTagNameNS:function(t,n){return new ye(this,function(r){var h=[];return I(r,function(E){E!==r&&E.nodeType===_&&(t==="*"||E.namespaceURI===t)&&(n==="*"||E.localName==n)&&h.push(E)}),h})}},d.prototype.getElementsByTagName=Fe.prototype.getElementsByTagName,d.prototype.getElementsByTagNameNS=Fe.prototype.getElementsByTagNameNS,L(Fe,V);function je(){}je.prototype.nodeType=j,L(je,V);function Ne(){}Ne.prototype={data:"",substringData:function(t,n){return this.data.substring(t,t+n)},appendData:function(t){t=this.data+t,this.nodeValue=this.data=t,this.length=t.length},insertData:function(t,n){this.replaceData(t,0,n)},appendChild:function(t){throw new Error($[N])},deleteData:function(t,n){this.replaceData(t,n,"")},replaceData:function(t,n,r){var h=this.data.substring(0,t),E=this.data.substring(t+n);r=h+r+E,this.nodeValue=this.data=r,this.length=r.length}},L(Ne,V);function ze(){}ze.prototype={nodeName:"#text",nodeType:Q,splitText:function(t){var n=this.data,r=n.substring(t);n=n.substring(0,t),this.data=this.nodeValue=n,this.length=n.length;var h=this.ownerDocument.createTextNode(r);return this.parentNode&&this.parentNode.insertBefore(h,this.nextSibling),h}},L(ze,Ne);function Xe(){}Xe.prototype={nodeName:"#comment",nodeType:m},L(Xe,Ne);function nt(){}nt.prototype={nodeName:"#cdata-section",nodeType:M},L(nt,Ne);function Ye(){}Ye.prototype.nodeType=g,L(Ye,V);function Qe(){}Qe.prototype.nodeType=U,L(Qe,V);function Ze(){}Ze.prototype.nodeType=A,L(Ze,V);function Ve(){}Ve.prototype.nodeType=ge,L(Ve,V);function Je(){}Je.prototype.nodeName="#document-fragment",Je.prototype.nodeType=D,L(Je,V);function $e(){}$e.prototype.nodeType=S,L($e,V);function rt(){}rt.prototype.serializeToString=function(t,n,r){return he.call(t,n,r)},V.prototype.toString=he;function he(t,n){var r=[],h=this.nodeType==9&&this.documentElement||this,E=h.prefix,ne=h.namespaceURI;if(ne&&E==null){var E=h.lookupPrefix(ne);if(E==null)var fe=[{namespace:ne,prefix:null}]}return tt(this,r,t,n,fe),r.join("")}function et(t,n,r){var h=t.prefix||"",E=t.namespaceURI;if(!E||h==="xml"&&E===l.XML||E===l.XMLNS)return!1;for(var ne=r.length;ne--;){var fe=r[ne];if(fe.prefix===h)return fe.namespace!==E}return!0}function ot(t,n,r){t.push(" ",n,'="',r.replace(/[<>&"\t\n\r]/g,x),'"')}function tt(t,n,r,h,E){if(E||(E=[]),h)if(t=h(t),t){if(typeof t=="string"){n.push(t);return}}else return;switch(t.nodeType){case _:var ne=t.attributes,fe=ne.length,ue=t.firstChild,Te=t.tagName;r=l.isHTML(t.namespaceURI)||r;var Be=Te;if(!r&&!t.prefix&&t.namespaceURI){for(var Ue,We=0;We=0;He--){var Le=E[He];if(Le.prefix===""&&Le.namespace===t.namespaceURI){Ue=Le.namespace;break}}if(Ue!==t.namespaceURI)for(var He=E.length-1;He>=0;He--){var Le=E[He];if(Le.namespace===t.namespaceURI){Le.prefix&&(Be=Le.prefix+":"+Te);break}}}n.push("<",Be);for(var qe=0;qe"),r&&/^script$/i.test(Te))for(;ue;)ue.data?n.push(ue.data):tt(ue,n,r,h,E.slice()),ue=ue.nextSibling;else for(;ue;)tt(ue,n,r,h,E.slice()),ue=ue.nextSibling;n.push("")}else n.push("/>");return;case K:case D:for(var ue=t.firstChild;ue;)tt(ue,n,r,h,E.slice()),ue=ue.nextSibling;return;case j:return ot(n,t.name,t.value);case Q:return n.push(t.data.replace(/[<&>]/g,x));case M:return n.push("");case m:return n.push("");case g:var De=t.publicId,Ke=t.systemId;if(n.push("");else if(Ke&&Ke!=".")n.push(" SYSTEM ",Ke,">");else{var st=t.internalSubset;st&&n.push(" [",st,"]"),n.push(">")}return;case S:return n.push("");case ge:return n.push("&",t.nodeName,";");default:n.push("??",t.nodeName)}}function e(t,n,r){var h;switch(n.nodeType){case _:h=n.cloneNode(!1),h.ownerDocument=t;case D:break;case j:r=!0;break}if(h||(h=n.cloneNode(!1)),h.ownerDocument=t,h.parentNode=null,r)for(var E=n.firstChild;E;)h.appendChild(e(t,E,r)),E=E.nextSibling;return h}function f(t,n,r){var h=new n.constructor;for(var E in n)if(Object.prototype.hasOwnProperty.call(n,E)){var ne=n[E];typeof ne!="object"&&ne!=h[E]&&(h[E]=ne)}switch(n.childNodes&&(h.childNodes=new le),h.ownerDocument=t,h.nodeType){case _:var fe=n.attributes,ue=h.attributes=new me,Te=fe.length;ue._ownerElement=h;for(var Be=0;Be",lt:"<",quot:'"'}),C.HTML_ENTITIES=v({lt:"<",gt:">",amp:"&",quot:'"',apos:"'",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",times:"\xD7",divide:"\xF7",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02C6",tilde:"\u02DC",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203A",oline:"\u203E",euro:"\u20AC",trade:"\u2122",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666"}),C.entityMap=C.HTML_ENTITIES},"./node_modules/@xmldom/xmldom/lib/index.js":function(y,C,u){var v=u("./node_modules/@xmldom/xmldom/lib/dom.js");C.DOMImplementation=v.DOMImplementation,C.XMLSerializer=v.XMLSerializer,C.DOMParser=u("./node_modules/@xmldom/xmldom/lib/dom-parser.js").DOMParser},"./node_modules/@xmldom/xmldom/lib/sax.js":function(y,C,u){var v=u("./node_modules/@xmldom/xmldom/lib/conventions.js").NAMESPACE,T=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,l=new RegExp("[\\-\\.0-9"+T.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),k=new RegExp("^"+T.source+l.source+"*(?::"+T.source+l.source+"*)?$"),P=0,ee=1,B=2,b=3,q=4,L=5,z=6,_=7;function j(w,H){this.message=w,this.locator=H,Error.captureStackTrace&&Error.captureStackTrace(this,j)}j.prototype=new Error,j.prototype.name=j.name;function Q(){}Q.prototype={parse:function(w,H,N){var X=this.domBuilder;X.startDocument(),g(H,H={}),M(w,H,N,X,this.errorHandler),X.endDocument()}};function M(w,H,N,X,J){function ce(R){if(R>65535){R-=65536;var O=55296+(R>>10),G=56320+(R&1023);return String.fromCharCode(O,G)}else return String.fromCharCode(R)}function se(R){var O=R.slice(1,-1);return Object.hasOwnProperty.call(N,O)?N[O]:O.charAt(0)==="#"?ce(parseInt(O.substr(1).replace("x","0x"))):(J.error("entity not found:"+R),R)}function re(R){if(R>oe){var O=w.substring(oe,R).replace(/&#?\w+;/g,se);de&&Z(oe),X.characters(O,0,R-oe),oe=R}}function Z(R,O){for(;R>=ie&&(O=we.exec(w));)te=O.index,ie=te+O[0].length,de.lineNumber++;de.columnNumber=R-te+1}for(var te=0,ie=0,we=/.*(?:\r\n?|\n)|.*$/g,de=X.locator,Y=[{currentNSMap:H}],pe={},oe=0;;){try{var le=w.indexOf("<",oe);if(le<0){if(!w.substr(oe).match(/^\s*$/)){var ye=X.doc,ve=ye.createTextNode(w.substr(oe));ye.appendChild(ve),X.currentElement=ve}return}switch(le>oe&&re(le),w.charAt(le+1)){case"/":var me=w.indexOf(">",le+3),Ee=w.substring(le+2,me).replace(/[ \t\n\r]+$/g,""),Se=Y.pop();me<0?(Ee=w.substring(le+2).replace(/[\s<].*/,""),J.error("end tag name: "+Ee+" is not complete:"+Se.tagName),me=le+1+Ee.length):Ee.match(/\soe?oe=me:re(Math.max(le,oe)+1)}}function ge(w,H){return H.lineNumber=w.lineNumber,H.columnNumber=w.columnNumber,H}function A(w,H,N,X,J,ce){function se(Y,pe,oe){N.attributeNames.hasOwnProperty(Y)&&ce.fatalError("Attribute "+Y+" redefined"),N.addValue(Y,pe.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,J),oe)}for(var re,Z,te=++H,ie=P;;){var we=w.charAt(te);switch(we){case"=":if(ie===ee)re=w.slice(H,te),ie=b;else if(ie===B)ie=b;else throw new Error("attribute equal must after attrName");break;case"'":case'"':if(ie===b||ie===ee)if(ie===ee&&(ce.warning('attribute value must after "="'),re=w.slice(H,te)),H=te+1,te=w.indexOf(we,H),te>0)Z=w.slice(H,te),se(re,Z,H-1),ie=L;else throw new Error("attribute value no end '"+we+"' match");else if(ie==q)Z=w.slice(H,te),se(re,Z,H),ce.warning('attribute "'+re+'" missed start quot('+we+")!!"),H=te+1,ie=L;else throw new Error('attribute value must after "="');break;case"/":switch(ie){case P:N.setTagName(w.slice(H,te));case L:case z:case _:ie=_,N.closed=!0;case q:case ee:case B:break;default:throw new Error("attribute invalid close char('/')")}break;case"":return ce.error("unexpected end of input"),ie==P&&N.setTagName(w.slice(H,te)),te;case">":switch(ie){case P:N.setTagName(w.slice(H,te));case L:case z:case _:break;case q:case ee:Z=w.slice(H,te),Z.slice(-1)==="/"&&(N.closed=!0,Z=Z.slice(0,-1));case B:ie===B&&(Z=re),ie==q?(ce.warning('attribute "'+Z+'" missed quot(")!'),se(re,Z,H)):((!v.isHTML(X[""])||!Z.match(/^(?:disabled|checked|selected)$/i))&&ce.warning('attribute "'+Z+'" missed value!! "'+Z+'" instead!!'),se(Z,Z,H));break;case b:throw new Error("attribute value missed!!")}return te;case"\x80":we=" ";default:if(we<=" ")switch(ie){case P:N.setTagName(w.slice(H,te)),ie=z;break;case ee:re=w.slice(H,te),ie=B;break;case q:var Z=w.slice(H,te);ce.warning('attribute "'+Z+'" missed quot(")!!'),se(re,Z,H);case L:ie=z;break}else switch(ie){case B:var de=N.tagName;(!v.isHTML(X[""])||!re.match(/^(?:disabled|checked|selected)$/i))&&ce.warning('attribute "'+re+'" missed value!! "'+re+'" instead2!!'),se(re,re,H),H=te,ie=ee;break;case L:ce.warning('attribute space is required"'+re+'"!!');case z:ie=ee,H=te;break;case b:ie=q,H=te;break;case _:throw new Error("elements closed character '/' and '>' must be connected to")}}te++}}function S(w,H,N){for(var X=w.tagName,J=null,ce=w.length;ce--;){var se=w[ce],re=se.qName,Z=se.value,de=re.indexOf(":");if(de>0)var te=se.prefix=re.slice(0,de),ie=re.slice(de+1),we=te==="xmlns"&&ie;else ie=re,te=null,we=re==="xmlns"&&"";se.localName=ie,we!==!1&&(J==null&&(J={},g(N,N={})),N[we]=J[we]=Z,se.uri=v.XMLNS,H.startPrefixMapping(we,Z))}for(var ce=w.length;ce--;){se=w[ce];var te=se.prefix;te&&(te==="xml"&&(se.uri=v.XML),te!=="xmlns"&&(se.uri=N[te||""]))}var de=X.indexOf(":");de>0?(te=w.prefix=X.slice(0,de),ie=w.localName=X.slice(de+1)):(te=null,ie=w.localName=X);var Y=w.uri=N[te||""];if(H.startElement(Y,ie,X,w),w.closed){if(H.endElement(Y,ie,X),J)for(te in J)Object.prototype.hasOwnProperty.call(J,te)&&H.endPrefixMapping(te)}else return w.currentNSMap=N,w.localNSMap=J,!0}function m(w,H,N,X,J){if(/^(?:script|textarea)$/i.test(N)){var ce=w.indexOf("",H),se=w.substring(H+1,ce);if(/[&<]/.test(se))return/^script$/i.test(N)?(J.characters(se,0,se.length),ce):(se=se.replace(/&#?\w+;/g,X),J.characters(se,0,se.length),ce)}return H+1}function K(w,H,N,X){var J=X[N];return J==null&&(J=w.lastIndexOf(""),J",H+4);return ce>H?(N.comment(w,H+4,ce-H-4),ce+3):(X.error("Unclosed comment"),-1)}else return-1;default:if(w.substr(H+3,6)=="CDATA["){var ce=w.indexOf("]]>",H+9);return N.startCDATA(),N.characters(w,H+9,ce-H-9),N.endCDATA(),ce+3}var se=$(w,H),re=se.length;if(re>1&&/!doctype/i.test(se[0][0])){var Z=se[1][0],te=!1,ie=!1;re>3&&(/^public$/i.test(se[2][0])?(te=se[3][0],ie=re>4&&se[4][0]):/^system$/i.test(se[2][0])&&(ie=se[3][0]));var we=se[re-1];return N.startDTD(Z,te,ie),N.endDTD(),we.index+we[0].length}}return-1}function U(w,H,N){var X=w.indexOf("?>",H);if(X){var J=w.substring(H,X).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(J){var ce=J[0].length;return N.processingInstruction(J[1],J[2]),X+2}else return-1}return-1}function F(){this.attributeNames={}}F.prototype={setTagName:function(w){if(!k.test(w))throw new Error("invalid tagName:"+w);this.tagName=w},addValue:function(w,H,N){if(!k.test(w))throw new Error("invalid attribute:"+w);this.attributeNames[w]=this.length,this[this.length++]={qName:w,value:H,offset:N}},length:0,getLocalName:function(w){return this[w].localName},getLocator:function(w){return this[w].locator},getQName:function(w){return this[w].qName},getURI:function(w){return this[w].uri},getValue:function(w){return this[w].value}};function $(w,H){var N,X=[],J=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(J.lastIndex=H,J.exec(w);N=J.exec(w);)if(X.push(N),N[1])return X}C.XMLReader=Q,C.ParseError=j},"./node_modules/process/browser.js":function(y,C){var u=y.exports={},v,T;function l(){throw new Error("setTimeout has not been defined")}function k(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?v=setTimeout:v=l}catch(M){v=l}try{typeof clearTimeout=="function"?T=clearTimeout:T=k}catch(M){T=k}})();function P(M){if(v===setTimeout)return setTimeout(M,0);if((v===l||!v)&&setTimeout)return v=setTimeout,setTimeout(M,0);try{return v(M,0)}catch(ge){try{return v.call(null,M,0)}catch(A){return v.call(this,M,0)}}}function ee(M){if(T===clearTimeout)return clearTimeout(M);if((T===k||!T)&&clearTimeout)return T=clearTimeout,clearTimeout(M);try{return T(M)}catch(ge){try{return T.call(null,M)}catch(A){return T.call(this,M)}}}var B=[],b=!1,q,L=-1;function z(){!b||!q||(b=!1,q.length?B=q.concat(B):L=-1,B.length&&_())}function _(){if(!b){var M=P(z);b=!0;for(var ge=B.length;ge;){for(q=B,B=[];++L1)for(var A=1;Ase)return oe(null,!1);if(le>1){var ye=Math.max(pe[0].Size,pe[1].Size);if(ye!==ce)return oe(null,!1)}var ve=function me(Ee){if(Ee=oe.length){de.emit("has_and_check_upload_id",Y);return}var me=oe[ve];if(!P.isInArray(Y,me)){T.removeUploadId.call(N,me),ye(ve+1);return}if(T.using[me]){ye(ve+1);return}L.call(N,{Bucket:F,Region:$,Key:w,UploadId:me,tracker:g.tracker},function(Ee,Se){!N._isRunningTask(U)||(Ee?(T.removeUploadId.call(N,me),ye(ve+1)):de.emit("upload_id_available",{UploadId:me,PartList:Se.PartList}))})};le(0)}),de.on("get_remote_upload_id_list",function(){q.call(N,{Bucket:F,Region:$,Key:w,tracker:g.tracker},function(Y,pe){if(!!N._isRunningTask(U)){if(Y)return de.emit("error",Y);var oe=P.filter(pe.UploadList,function(ve){return ve.Key===w&&(!H||ve.StorageClass.toUpperCase()===H.toUpperCase())}).reverse().map(function(ve){return ve.UploadId||ve.UploadID});if(oe.length)de.emit("seek_local_avail_upload_id",oe);else{var le=T.getFileId(g.Body,g.ChunkSize,F,w),ye;le&&(ye=T.getUploadIdList.call(N,le))&&P.each(ye,function(ve){T.removeUploadId.call(N,ve)}),de.emit("no_available_upload_id")}}})}),de.emit("get_remote_upload_id_list")}function q(g,D){var U=this,F=[],$={Bucket:g.Bucket,Region:g.Region,Prefix:g.Key,calledBySdk:g.calledBySdk||"sliceUploadFile",tracker:g.tracker},w=function H(){U.multipartList($,function(N,X){if(N)return D(N);F.push.apply(F,X.Upload||[]),X.IsTruncated==="true"?($.KeyMarker=X.NextKeyMarker,$.UploadIdMarker=X.NextUploadIdMarker,H()):D(null,{UploadList:F})})};w()}function L(g,D){var U=this,F=[],$={Bucket:g.Bucket,Region:g.Region,Key:g.Key,UploadId:g.UploadId,calledBySdk:"sliceUploadFile",tracker:g.tracker},w=function H(){U.multipartListPart($,function(N,X){if(N)return D(N);F.push.apply(F,X.Part||[]),X.IsTruncated==="true"?($.PartNumberMarker=X.NextPartNumberMarker,H()):D(null,{PartList:F})})};w()}function z(g,D){var U=this,F=g.TaskId,$=g.Bucket,w=g.Region,H=g.Key,N=g.UploadData,X=g.FileSize,J=g.SliceSize,ce=Math.min(g.AsyncLimit||U.options.ChunkParallelLimit||1,256),se=g.Body,re=Math.ceil(X/J),Z=0,te=g.ServerSideEncryption,ie=g.Headers,we=P.filter(N.PartList,function(Y){return Y.Uploaded&&(Z+=Y.PartNumber>=re&&X%J||J),!Y.Uploaded}),de=g.onProgress;l.eachLimit(we,ce,function(Y,pe){if(!!U._isRunningTask(F)){var oe=Y.PartNumber,le=Math.min(X,Y.PartNumber*J)-(Y.PartNumber-1)*J,ye=0;_.call(U,{TaskId:F,Bucket:$,Region:w,Key:H,SliceSize:J,FileSize:X,PartNumber:oe,ServerSideEncryption:te,Body:se,UploadData:N,Headers:ie,onProgress:function(me){Z+=me.loaded-ye,ye=me.loaded,de({loaded:Z,total:X})},tracker:g.tracker},function(ve,me){!U._isRunningTask(F)||(!ve&&!me.ETag&&(ve='get ETag error, please add "ETag" to CORS ExposeHeader setting.( \u83B7\u53D6ETag\u5931\u8D25\uFF0C\u8BF7\u5728CORS ExposeHeader\u8BBE\u7F6E\u4E2D\u6DFB\u52A0ETag\uFF0C\u8BF7\u53C2\u8003\u6587\u6863\uFF1Ahttps://cloud.tencent.com/document/product/436/13318 )'),ve?Z-=ye:(Z+=le-ye,Y.ETag=me.ETag),de({loaded:Z,total:X}),pe(ve||null,me))})}},function(Y){if(!!U._isRunningTask(F)){if(Y)return D(Y);D(null,{UploadId:N.UploadId,SliceList:N.PartList})}})}function _(g,D){var U=this,F=g.TaskId,$=g.Bucket,w=g.Region,H=g.Key,N=g.FileSize,X=g.Body,J=g.PartNumber*1,ce=g.SliceSize,se=g.ServerSideEncryption,re=g.UploadData,Z=g.Headers||{},te=U.options.ChunkRetryTimes+1,ie=ce*(J-1),we=ce,de=ie+ce;de>N&&(de=N,we=de-ie);var Y=["x-cos-traffic-limit","x-cos-mime-limit"],pe={};P.each(Z,function(le,ye){Y.indexOf(ye)>-1&&(pe[ye]=le)});var oe=re.PartList[J-1];l.retry(te,function(le){!U._isRunningTask(F)||P.fileSlice(X,ie,de,!0,function(ye){U.multipartUpload({TaskId:F,Bucket:$,Region:w,Key:H,ContentLength:we,PartNumber:J,UploadId:re.UploadId,ServerSideEncryption:se,Body:ye,Headers:pe,onProgress:g.onProgress,calledBySdk:"sliceUploadFile",tracker:g.tracker},function(ve,me){if(!!U._isRunningTask(F))return ve?le(ve):(oe.Uploaded=!0,le(null,me))})})},function(le,ye){if(!!U._isRunningTask(F))return D(le,ye)})}function j(g,D){var U=g.Bucket,F=g.Region,$=g.Key,w=g.UploadId,H=g.SliceList,N=this,X=this.options.ChunkRetryTimes+1,J=g.Headers,ce=H.map(function(se){return{PartNumber:se.PartNumber,ETag:se.ETag}});l.retry(X,function(se){N.multipartComplete({Bucket:U,Region:F,Key:$,UploadId:w,Parts:ce,Headers:J,calledBySdk:"sliceUploadFile",tracker:g.tracker},se)},function(se,re){D(se,re)})}function Q(g,D){var U=g.Bucket,F=g.Region,$=g.Key,w=g.UploadId,H=g.Level||"task",N=g.AsyncLimit,X=this,J=new k;if(J.on("error",function(ce){return D(ce)}),J.on("get_abort_array",function(ce){M.call(X,{Bucket:U,Region:F,Key:$,Headers:g.Headers,AsyncLimit:N,AbortArray:ce},D)}),H==="bucket")q.call(X,{Bucket:U,Region:F,calledBySdk:"abortUploadTask"},function(ce,se){if(ce)return D(ce);J.emit("get_abort_array",se.UploadList||[])});else if(H==="file"){if(!$)return D(P.error(new Error("abort_upload_task_no_key")));q.call(X,{Bucket:U,Region:F,Key:$,calledBySdk:"abortUploadTask"},function(ce,se){if(ce)return D(ce);J.emit("get_abort_array",se.UploadList||[])})}else if(H==="task"){if(!w)return D(P.error(new Error("abort_upload_task_no_id")));if(!$)return D(P.error(new Error("abort_upload_task_no_key")));J.emit("get_abort_array",[{Key:$,UploadId:w}])}else return D(P.error(new Error("abort_unknown_level")))}function M(g,D){var U=g.Bucket,F=g.Region,$=g.Key,w=g.AbortArray,H=g.AsyncLimit||1,N=this,X=0,J=new Array(w.length);l.eachLimit(w,H,function(ce,se){var re=X;if($&&$!==ce.Key){J[re]={error:{KeyNotMatch:!0}},se(null);return}var Z=ce.UploadId||ce.UploadID;N.multipartAbort({Bucket:U,Region:F,Key:ce.Key,Headers:g.Headers,UploadId:Z},function(te){var ie={Bucket:U,Region:F,Key:ce.Key,UploadId:Z};J[re]={error:te,task:ie},se(null)}),X++},function(ce){if(ce)return D(ce);for(var se=[],re=[],Z=0,te=J.length;ZF?"sliceUploadFile":"putObject",re=g.onFileFinish,Z=function(ie,we){g.tracker&&g.tracker.formatResult(ie,we),re&&re(ie,we,N),D&&D(ie,we)};$.push({api:se,params:g,callback:Z}),U._addTasks($)}function A(g,D){var U=this,F=g.SliceSize===void 0?U.options.SliceSize:g.SliceSize,$=0,w=0,H=P.throttleOnProgress.call(U,w,g.onProgress),N=g.files.length,X=g.onFileFinish,J=Array(N),ce=function(Z,te,ie){H(null,!0),X&&X(Z,te,ie),J[ie.Index]={options:ie,error:Z,data:te},--N<=0&&D&&D(null,{files:J})},se=[];P.each(g.files,function(re,Z){(function(){var te=re.Body,ie=te.size||te.length||0,we={Index:Z,TaskId:""};if($+=ie,U.options.EnableTracker){var de=U.options.UseAccelerate||typeof U.options.Domain=="string"&&U.options.Domain.includes("accelerate.");re.tracker=new ee({bucket:re.Bucket,region:re.Region,apiName:"uploadFiles",fileKey:re.Key,fileSize:ie,accelerate:de,deepTracker:U.options.DeepTracker,customId:U.options.CustomId,delay:U.options.TrackerDelay})}P.each(re,function(Se,be){v(Se)!=="object"&&typeof Se!="function"&&(we[be]=Se)});var Y=re.onTaskReady,pe=function(be){we.TaskId=be,Y&&Y(be)};re.onTaskReady=pe;var oe=0,le=re.onProgress,ye=function(be){w=w-oe+be.loaded,oe=be.loaded,le&&le(be),H({loaded:w,total:$})};re.onProgress=ye;var ve=ie>F?"sliceUploadFile":"putObject",me=re.onFileFinish,Ee=function(be,Ae){re.tracker&&re.tracker.formatResult(be,Ae),me&&me(be,Ae),ce&&ce(be,Ae,we)};se.push({api:ve,params:re,callback:Ee})})()}),U._addTasks(se)}function S(g,D){var U=new k,F=this,$=g.Bucket,w=g.Region,H=g.Key,N=g.CopySource,X=P.getSourceParams.call(this,N);if(!X){D(P.error(new Error("CopySource format error")));return}var J=X.Bucket,ce=X.Region,se=decodeURIComponent(X.Key),re=g.CopySliceSize===void 0?F.options.CopySliceSize:g.CopySliceSize;re=Math.max(0,re);var Z=g.CopyChunkSize||this.options.CopyChunkSize,te=this.options.CopyChunkParallelLimit,ie=this.options.ChunkRetryTimes+1,we=0,de=0,Y,pe,oe={},le={},ye={};U.on("copy_slice_complete",function(ve){var me={};P.each(g.Headers,function(Se,be){be.toLowerCase().indexOf("x-cos-meta-")===0&&(me[be]=Se)});var Ee=P.map(ve.PartList,function(Se){return{PartNumber:Se.PartNumber,ETag:Se.ETag}});l.retry(ie,function(Se){F.multipartComplete({Bucket:$,Region:w,Key:H,UploadId:ve.UploadId,Parts:Ee,calledBySdk:"sliceCopyFile"},Se)},function(Se,be){if(T.removeUsing(ve.UploadId),Se)return pe(null,!0),D(Se);T.removeUploadId(ve.UploadId),pe({loaded:Y,total:Y},!0),D(null,be)})}),U.on("get_copy_data_finish",function(ve){var me=T.getCopyFileId(N,oe,Z,$,H);me&&T.saveUploadId(me,ve.UploadId,F.options.UploadIdCacheLimit),T.setUsing(ve.UploadId);var Ee=P.filter(ve.PartList,function(Se){return Se.Uploaded&&(de+=Se.PartNumber>=we&&Y%Z||Z),!Se.Uploaded});l.eachLimit(Ee,te,function(Se,be){var Ae=Se.PartNumber,V=Se.CopySourceRange,x=Se.end-Se.start;l.retry(ie,function(I){m.call(F,{Bucket:$,Region:w,Key:H,CopySource:N,UploadId:ve.UploadId,PartNumber:Ae,CopySourceRange:V},I)},function(I,d){if(I)return be(I);de+=x,pe({loaded:de,total:Y}),Se.ETag=d.ETag,be(I||null,d)})},function(Se){if(Se)return T.removeUsing(ve.UploadId),pe(null,!0),D(Se);U.emit("copy_slice_complete",ve)})}),U.on("get_chunk_size_finish",function(){var ve=function(){F.multipartInit({Bucket:$,Region:w,Key:H,Headers:ye},function(Ae,V){if(Ae)return D(Ae);g.UploadId=V.UploadId,U.emit("get_copy_data_finish",{UploadId:g.UploadId,PartList:g.PartList})})},me=T.getCopyFileId(N,oe,Z,$,H),Ee=T.getUploadIdList(me);if(!me||!Ee)return ve();var Se=function be(Ae){if(Ae>=Ee.length)return ve();var V=Ee[Ae];if(T.using[V])return be(Ae+1);L.call(F,{Bucket:$,Region:w,Key:H,UploadId:V},function(x,I){if(x)T.removeUploadId(V),be(Ae+1);else{if(T.using[V])return be(Ae+1);var d={},i=0;P.each(I.PartList,function(a){var s=parseInt(a.Size),p=i+s-1;d[a.PartNumber+"|"+i+"|"+p]=a.ETag,i+=s}),P.each(g.PartList,function(a){var s=d[a.PartNumber+"|"+a.start+"|"+a.end];s&&(a.ETag=s,a.Uploaded=!0)}),U.emit("get_copy_data_finish",{UploadId:V,PartList:g.PartList})}})};Se(0)}),U.on("get_file_size_finish",function(){if(function(){for(var me=[1,2,4,8,16,32,64,128,256,512,1024,1024*2,1024*4,1024*5],Ee=1024*1024,Se=0;SeAe.length&&(le[be]=Se)}),U.emit("get_file_size_finish")}})}function m(g,D){var U=g.TaskId,F=g.Bucket,$=g.Region,w=g.Key,H=g.CopySource,N=g.UploadId,X=g.PartNumber*1,J=g.CopySourceRange,ce=this.options.ChunkRetryTimes+1,se=this;l.retry(ce,function(re){se.uploadPartCopy({TaskId:U,Bucket:F,Region:$,Key:w,CopySource:H,UploadId:N,PartNumber:X,CopySourceRange:J},function(Z,te){re(Z||null,te)})},function(re,Z){return D(re,Z)})}var K={sliceUploadFile:B,abortUploadTask:Q,uploadFile:ge,uploadFiles:A,sliceCopyFile:S};y.exports.init=function(g,D){D.transferToTaskMethod(K,"sliceUploadFile"),P.each(K,function(U,F){g.prototype[F]=P.apiWrapper(F,U)})}},"./src/async.js":function(y,C){var u=function(k,P,ee,B){if(B=B||function(){},!k.length||P<=0)return B();var b=0,q=0,L=0;(function z(){if(b>=k.length)return B();for(;L=k.length?B():z())})})()},v=function(k,P,ee){var B=function b(q){P(function(L,z){L&&q/ig,"<$1Rule>"),c=c.replace(/<(\/?)Tags>/ig,"<$1Tag>");var t=e.Headers;t["Content-Type"]="application/xml",t["Content-MD5"]=l.binaryBase64(l.md5(c)),he.call(this,{Action:"name/cos:PutBucketReplication",method:"PUT",Bucket:e.Bucket,Region:e.Region,body:c,action:"replication",headers:t},function(n,r){if(n&&n.statusCode===204)return f(null,{statusCode:n.statusCode});if(n)return f(n);f(null,{statusCode:r.statusCode,headers:r.headers})})}function H(e,f){he.call(this,{Action:"name/cos:GetBucketReplication",method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"replication"},function(o,c){if(o){if(o.statusCode===404&&o.error&&(o.error==="Not Found"||o.error.Code==="ReplicationConfigurationnotFoundError")){var t={ReplicationConfiguration:{Rules:[]},statusCode:o.statusCode};o.headers&&(t.headers=o.headers),f(null,t)}else f(o);return}!c.ReplicationConfiguration&&(c.ReplicationConfiguration={}),c.ReplicationConfiguration.Rule&&(c.ReplicationConfiguration.Rules=l.makeArray(c.ReplicationConfiguration.Rule),delete c.ReplicationConfiguration.Rule),f(o,c)})}function N(e,f){he.call(this,{Action:"name/cos:DeleteBucketReplication",method:"DELETE",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"replication"},function(o,c){if(o&&o.statusCode===204)return f(null,{statusCode:o.statusCode});if(o)return f(o);f(null,{statusCode:c.statusCode,headers:c.headers})})}function X(e,f){if(!e.WebsiteConfiguration){f(l.error(new Error("missing param WebsiteConfiguration")));return}var o=l.clone(e.WebsiteConfiguration||{}),c=o.RoutingRules||o.RoutingRule||[];c=l.isArray(c)?c:[c],delete o.RoutingRule,delete o.RoutingRules,c.length&&(o.RoutingRules={RoutingRule:c});var t=l.json2xml({WebsiteConfiguration:o}),n=e.Headers;n["Content-Type"]="application/xml",n["Content-MD5"]=l.binaryBase64(l.md5(t)),he.call(this,{Action:"name/cos:PutBucketWebsite",method:"PUT",Bucket:e.Bucket,Region:e.Region,body:t,action:"website",headers:n},function(r,h){if(r&&r.statusCode===204)return f(null,{statusCode:r.statusCode});if(r)return f(r);f(null,{statusCode:h.statusCode,headers:h.headers})})}function J(e,f){he.call(this,{Action:"name/cos:GetBucketWebsite",method:"GET",Bucket:e.Bucket,Region:e.Region,Key:e.Key,headers:e.Headers,action:"website"},function(o,c){if(o){if(o.statusCode===404&&o.error.Code==="NoSuchWebsiteConfiguration"){var t={WebsiteConfiguration:{},statusCode:o.statusCode};o.headers&&(t.headers=o.headers),f(null,t)}else f(o);return}var n=c.WebsiteConfiguration||{};if(n.RoutingRules){var r=l.clone(n.RoutingRules.RoutingRule||[]);r=l.makeArray(r),n.RoutingRules=r}f(null,{WebsiteConfiguration:n,statusCode:c.statusCode,headers:c.headers})})}function ce(e,f){he.call(this,{Action:"name/cos:DeleteBucketWebsite",method:"DELETE",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"website"},function(o,c){if(o&&o.statusCode===204)return f(null,{statusCode:o.statusCode});if(o)return f(o);f(null,{statusCode:c.statusCode,headers:c.headers})})}function se(e,f){if(!e.RefererConfiguration){f(l.error(new Error("missing param RefererConfiguration")));return}var o=l.clone(e.RefererConfiguration||{}),c=o.DomainList||{},t=c.Domains||c.Domain||[];t=l.isArray(t)?t:[t],t.length&&(o.DomainList={Domain:t});var n=l.json2xml({RefererConfiguration:o}),r=e.Headers;r["Content-Type"]="application/xml",r["Content-MD5"]=l.binaryBase64(l.md5(n)),he.call(this,{Action:"name/cos:PutBucketReferer",method:"PUT",Bucket:e.Bucket,Region:e.Region,body:n,action:"referer",headers:r},function(h,E){if(h&&h.statusCode===204)return f(null,{statusCode:h.statusCode});if(h)return f(h);f(null,{statusCode:E.statusCode,headers:E.headers})})}function re(e,f){he.call(this,{Action:"name/cos:GetBucketReferer",method:"GET",Bucket:e.Bucket,Region:e.Region,Key:e.Key,headers:e.Headers,action:"referer"},function(o,c){if(o){if(o.statusCode===404&&o.error.Code==="NoSuchRefererConfiguration"){var t={WebsiteConfiguration:{},statusCode:o.statusCode};o.headers&&(t.headers=o.headers),f(null,t)}else f(o);return}var n=c.RefererConfiguration||{};if(n.DomainList){var r=l.makeArray(n.DomainList.Domain||[]);n.DomainList={Domains:r}}f(null,{RefererConfiguration:n,statusCode:c.statusCode,headers:c.headers})})}function Z(e,f){var o=e.DomainConfiguration||{},c=o.DomainRule||e.DomainRule||[];c=l.clone(c);var t=l.json2xml({DomainConfiguration:{DomainRule:c}}),n=e.Headers;n["Content-Type"]="application/xml",n["Content-MD5"]=l.binaryBase64(l.md5(t)),he.call(this,{Action:"name/cos:PutBucketDomain",method:"PUT",Bucket:e.Bucket,Region:e.Region,body:t,action:"domain",headers:n},function(r,h){if(r&&r.statusCode===204)return f(null,{statusCode:r.statusCode});if(r)return f(r);f(null,{statusCode:h.statusCode,headers:h.headers})})}function te(e,f){he.call(this,{Action:"name/cos:GetBucketDomain",method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"domain"},function(o,c){if(o)return f(o);var t=[];try{t=c.DomainConfiguration.DomainRule||[]}catch(n){}t=l.clone(l.isArray(t)?t:[t]),f(null,{DomainRule:t,statusCode:c.statusCode,headers:c.headers})})}function ie(e,f){he.call(this,{Action:"name/cos:DeleteBucketDomain",method:"DELETE",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"domain"},function(o,c){if(o&&o.statusCode===204)return f(null,{statusCode:o.statusCode});if(o)return f(o);f(null,{statusCode:c.statusCode,headers:c.headers})})}function we(e,f){var o=e.OriginConfiguration||{},c=o.OriginRule||e.OriginRule||[];c=l.clone(c);var t=l.json2xml({OriginConfiguration:{OriginRule:c}}),n=e.Headers;n["Content-Type"]="application/xml",n["Content-MD5"]=l.binaryBase64(l.md5(t)),he.call(this,{Action:"name/cos:PutBucketOrigin",method:"PUT",Bucket:e.Bucket,Region:e.Region,body:t,action:"origin",headers:n},function(r,h){if(r&&r.statusCode===204)return f(null,{statusCode:r.statusCode});if(r)return f(r);f(null,{statusCode:h.statusCode,headers:h.headers})})}function de(e,f){he.call(this,{Action:"name/cos:GetBucketOrigin",method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"origin"},function(o,c){if(o)return f(o);var t=[];try{t=c.OriginConfiguration.OriginRule||[]}catch(n){}t=l.clone(l.isArray(t)?t:[t]),f(null,{OriginRule:t,statusCode:c.statusCode,headers:c.headers})})}function Y(e,f){he.call(this,{Action:"name/cos:DeleteBucketOrigin",method:"DELETE",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"origin"},function(o,c){if(o&&o.statusCode===204)return f(null,{statusCode:o.statusCode});if(o)return f(o);f(null,{statusCode:c.statusCode,headers:c.headers})})}function pe(e,f){var o=l.json2xml({BucketLoggingStatus:e.BucketLoggingStatus||""}),c=e.Headers;c["Content-Type"]="application/xml",c["Content-MD5"]=l.binaryBase64(l.md5(o)),he.call(this,{Action:"name/cos:PutBucketLogging",method:"PUT",Bucket:e.Bucket,Region:e.Region,body:o,action:"logging",headers:c},function(t,n){if(t&&t.statusCode===204)return f(null,{statusCode:t.statusCode});if(t)return f(t);f(null,{statusCode:n.statusCode,headers:n.headers})})}function oe(e,f){he.call(this,{Action:"name/cos:GetBucketLogging",method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"logging"},function(o,c){if(o)return f(o);f(null,{BucketLoggingStatus:c.BucketLoggingStatus,statusCode:c.statusCode,headers:c.headers})})}function le(e,f){var o=l.clone(e.InventoryConfiguration);if(o.OptionalFields){var c=o.OptionalFields||[];o.OptionalFields={Field:c}}if(o.Destination&&o.Destination.COSBucketDestination&&o.Destination.COSBucketDestination.Encryption){var t=o.Destination.COSBucketDestination.Encryption;Object.keys(t).indexOf("SSECOS")>-1&&(t["SSE-COS"]=t.SSECOS,delete t.SSECOS)}var n=l.json2xml({InventoryConfiguration:o}),r=e.Headers;r["Content-Type"]="application/xml",r["Content-MD5"]=l.binaryBase64(l.md5(n)),he.call(this,{Action:"name/cos:PutBucketInventory",method:"PUT",Bucket:e.Bucket,Region:e.Region,body:n,action:"inventory",qs:{id:e.Id},headers:r},function(h,E){if(h&&h.statusCode===204)return f(null,{statusCode:h.statusCode});if(h)return f(h);f(null,{statusCode:E.statusCode,headers:E.headers})})}function ye(e,f){he.call(this,{Action:"name/cos:GetBucketInventory",method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"inventory",qs:{id:e.Id}},function(o,c){if(o)return f(o);var t=c.InventoryConfiguration;if(t&&t.OptionalFields&&t.OptionalFields.Field){var n=t.OptionalFields.Field;l.isArray(n)||(n=[n]),t.OptionalFields=n}if(t.Destination&&t.Destination.COSBucketDestination&&t.Destination.COSBucketDestination.Encryption){var r=t.Destination.COSBucketDestination.Encryption;Object.keys(r).indexOf("SSE-COS")>-1&&(r.SSECOS=r["SSE-COS"],delete r["SSE-COS"])}f(null,{InventoryConfiguration:t,statusCode:c.statusCode,headers:c.headers})})}function ve(e,f){he.call(this,{Action:"name/cos:ListBucketInventory",method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"inventory",qs:{"continuation-token":e.ContinuationToken}},function(o,c){if(o)return f(o);var t=c.ListInventoryConfigurationResult,n=t.InventoryConfiguration||[];n=l.isArray(n)?n:[n],delete t.InventoryConfiguration,l.each(n,function(r){if(r&&r.OptionalFields&&r.OptionalFields.Field){var h=r.OptionalFields.Field;l.isArray(h)||(h=[h]),r.OptionalFields=h}if(r.Destination&&r.Destination.COSBucketDestination&&r.Destination.COSBucketDestination.Encryption){var E=r.Destination.COSBucketDestination.Encryption;Object.keys(E).indexOf("SSE-COS")>-1&&(E.SSECOS=E["SSE-COS"],delete E["SSE-COS"])}}),t.InventoryConfigurations=n,l.extend(t,{statusCode:c.statusCode,headers:c.headers}),f(null,t)})}function me(e,f){he.call(this,{Action:"name/cos:DeleteBucketInventory",method:"DELETE",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"inventory",qs:{id:e.Id}},function(o,c){if(o&&o.statusCode===204)return f(null,{statusCode:o.statusCode});if(o)return f(o);f(null,{statusCode:c.statusCode,headers:c.headers})})}function Ee(e,f){if(!e.AccelerateConfiguration){f(l.error(new Error("missing param AccelerateConfiguration")));return}var o={AccelerateConfiguration:e.AccelerateConfiguration||{}},c=l.json2xml(o),t={};t["Content-Type"]="application/xml",t["Content-MD5"]=l.binaryBase64(l.md5(c)),he.call(this,{Action:"name/cos:PutBucketAccelerate",method:"PUT",Bucket:e.Bucket,Region:e.Region,body:c,action:"accelerate",headers:t},function(n,r){if(n)return f(n);f(null,{statusCode:r.statusCode,headers:r.headers})})}function Se(e,f){he.call(this,{Action:"name/cos:GetBucketAccelerate",method:"GET",Bucket:e.Bucket,Region:e.Region,action:"accelerate"},function(o,c){o||!c.AccelerateConfiguration&&(c.AccelerateConfiguration={}),f(o,c)})}function be(e,f){var o=e.ServerSideEncryptionConfiguration||{},c=o.Rule||o.Rules||[],t=l.json2xml({ServerSideEncryptionConfiguration:{Rule:c}}),n=e.Headers;n["Content-Type"]="application/xml",n["Content-MD5"]=l.binaryBase64(l.md5(t)),he.call(this,{Action:"name/cos:PutBucketEncryption",method:"PUT",Bucket:e.Bucket,Region:e.Region,body:t,action:"encryption",headers:n},function(r,h){if(r&&r.statusCode===204)return f(null,{statusCode:r.statusCode});if(r)return f(r);f(null,{statusCode:h.statusCode,headers:h.headers})})}function Ae(e,f){he.call(this,{Action:"name/cos:GetBucketEncryption",method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"encryption"},function(o,c){if(o){if(o.statusCode===404&&o.code==="NoSuchEncryptionConfiguration"){var t={EncryptionConfiguration:{Rules:[]},statusCode:o.statusCode};o.headers&&(t.headers=o.headers),f(null,t)}else f(o);return}var n=l.makeArray(c.EncryptionConfiguration&&c.EncryptionConfiguration.Rule||[]);c.EncryptionConfiguration={Rules:n},f(o,c)})}function V(e,f){he.call(this,{Action:"name/cos:DeleteBucketReplication",method:"DELETE",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"encryption"},function(o,c){if(o&&o.statusCode===204)return f(null,{statusCode:o.statusCode});if(o)return f(o);f(null,{statusCode:c.statusCode,headers:c.headers})})}function x(e,f){he.call(this,{Action:"name/cos:HeadObject",method:"HEAD",Bucket:e.Bucket,Region:e.Region,Key:e.Key,VersionId:e.VersionId,headers:e.Headers},function(o,c){if(o){var t=o.statusCode;return e.Headers["If-Modified-Since"]&&t&&t===304?f(null,{NotModified:!0,statusCode:t}):f(o)}c.ETag=l.attr(c.headers,"etag",""),f(null,c)})}function I(e,f){var o={};o.prefix=e.Prefix||"",o.delimiter=e.Delimiter,o["key-marker"]=e.KeyMarker,o["version-id-marker"]=e.VersionIdMarker,o["max-keys"]=e.MaxKeys,o["encoding-type"]=e.EncodingType,he.call(this,{Action:"name/cos:GetBucketObjectVersions",ResourceKey:o.prefix,method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,qs:o,action:"versions"},function(c,t){if(c)return f(c);var n=t.ListVersionsResult||{},r=n.DeleteMarker||[];r=l.isArray(r)?r:[r];var h=n.Version||[];h=l.isArray(h)?h:[h];var E=l.clone(n);delete E.DeleteMarker,delete E.Version,l.extend(E,{DeleteMarkers:r,Versions:h,statusCode:t.statusCode,headers:t.headers}),f(null,E)})}function d(e,f){var o=e.Query||{},c=e.QueryString||"",t=l.throttleOnProgress.call(this,0,e.onProgress),n=e.tracker;n&&n.setParams({signStartTime:new Date().getTime()}),o["response-content-type"]=e.ResponseContentType,o["response-content-language"]=e.ResponseContentLanguage,o["response-expires"]=e.ResponseExpires,o["response-cache-control"]=e.ResponseCacheControl,o["response-content-disposition"]=e.ResponseContentDisposition,o["response-content-encoding"]=e.ResponseContentEncoding,he.call(this,{Action:"name/cos:GetObject",method:"GET",Bucket:e.Bucket,Region:e.Region,Key:e.Key,VersionId:e.VersionId,DataType:e.DataType,headers:e.Headers,qs:o,qsStr:c,rawBody:!0,onDownloadProgress:t,tracker:n},function(r,h){if(t(null,!0),r){var E=r.statusCode;return e.Headers["If-Modified-Since"]&&E&&E===304?f(null,{NotModified:!0}):f(r)}f(null,{Body:h.body,ETag:l.attr(h.headers,"etag",""),statusCode:h.statusCode,headers:h.headers})})}function i(e,f){var o=this,c=e.ContentLength,t=l.throttleOnProgress.call(o,c,e.onProgress),n=e.Headers;!n["Cache-Control"]&&!n["cache-control"]&&(n["Cache-Control"]=""),!n["Content-Type"]&&!n["content-type"]&&(n["Content-Type"]=e.Body&&e.Body.type||"");var r=e.UploadAddMetaMd5||o.options.UploadAddMetaMd5||o.options.UploadCheckContentMd5,h=e.tracker;r&&h&&h.setParams({md5StartTime:new Date().getTime()}),l.getBodyMd5(r,e.Body,function(E){E&&(h&&h.setParams({md5EndTime:new Date().getTime()}),o.options.UploadCheckContentMd5&&(n["Content-MD5"]=l.binaryBase64(E)),(e.UploadAddMetaMd5||o.options.UploadAddMetaMd5)&&(n["x-cos-meta-md5"]=E)),e.ContentLength!==void 0&&(n["Content-Length"]=e.ContentLength),t(null,!0),he.call(o,{Action:"name/cos:PutObject",TaskId:e.TaskId,method:"PUT",Bucket:e.Bucket,Region:e.Region,Key:e.Key,headers:e.Headers,qs:e.Query,body:e.Body,onProgress:t,tracker:h},function(ne,fe){if(ne)return t(null,!0),f(ne);t({loaded:c,total:c},!0);var ue=Ve({ForcePathStyle:o.options.ForcePathStyle,protocol:o.options.Protocol,domain:o.options.Domain,bucket:e.Bucket,region:o.options.UseAccelerate?"accelerate":e.Region,object:e.Key});ue=ue.substr(ue.indexOf("://")+3),fe.Location=ue,fe.ETag=l.attr(fe.headers,"etag",""),f(null,fe)})},e.onHashProgress)}function a(e,f){he.call(this,{Action:"name/cos:DeleteObject",method:"DELETE",Bucket:e.Bucket,Region:e.Region,Key:e.Key,headers:e.Headers,VersionId:e.VersionId,action:e.Recursive?"recursive":""},function(o,c){if(o){var t=o.statusCode;return t&&t===404?f(null,{BucketNotFound:!0,statusCode:t}):f(o)}f(null,{statusCode:c.statusCode,headers:c.headers})})}function s(e,f){var o={};e.VersionId&&(o.versionId=e.VersionId),he.call(this,{Action:"name/cos:GetObjectACL",method:"GET",Bucket:e.Bucket,Region:e.Region,Key:e.Key,headers:e.Headers,qs:o,action:"acl"},function(c,t){if(c)return f(c);var n=t.AccessControlPolicy||{},r=n.Owner||{},h=n.AccessControlList&&n.AccessControlList.Grant||[];h=l.isArray(h)?h:[h];var E=Qe(n);delete E.GrantWrite,t.headers&&t.headers["x-cos-acl"]&&(E.ACL=t.headers["x-cos-acl"]),E=l.extend(E,{Owner:r,Grants:h,statusCode:t.statusCode,headers:t.headers}),f(null,E)})}function p(e,f){var o=e.Headers,c="";if(e.AccessControlPolicy){var t=l.clone(e.AccessControlPolicy||{}),n=t.Grants||t.Grant;n=l.isArray(n)?n:[n],delete t.Grant,delete t.Grants,t.AccessControlList={Grant:n},c=l.json2xml({AccessControlPolicy:t}),o["Content-Type"]="application/xml",o["Content-MD5"]=l.binaryBase64(l.md5(c))}l.each(o,function(r,h){h.indexOf("x-cos-grant-")===0&&(o[h]=Ze(o[h]))}),he.call(this,{Action:"name/cos:PutObjectACL",method:"PUT",Bucket:e.Bucket,Region:e.Region,Key:e.Key,action:"acl",headers:o,body:c},function(r,h){if(r)return f(r);f(null,{statusCode:h.statusCode,headers:h.headers})})}function R(e,f){var o=e.Headers;o.Origin=e.Origin,o["Access-Control-Request-Method"]=e.AccessControlRequestMethod,o["Access-Control-Request-Headers"]=e.AccessControlRequestHeaders,he.call(this,{Action:"name/cos:OptionsObject",method:"OPTIONS",Bucket:e.Bucket,Region:e.Region,Key:e.Key,headers:o},function(c,t){if(c)return c.statusCode&&c.statusCode===403?f(null,{OptionsForbidden:!0,statusCode:c.statusCode}):f(c);var n=t.headers||{};f(null,{AccessControlAllowOrigin:n["access-control-allow-origin"],AccessControlAllowMethods:n["access-control-allow-methods"],AccessControlAllowHeaders:n["access-control-allow-headers"],AccessControlExposeHeaders:n["access-control-expose-headers"],AccessControlMaxAge:n["access-control-max-age"],statusCode:t.statusCode,headers:t.headers})})}function O(e,f){var o=this,c=e.Headers;!c["Cache-Control"]&&!c["cache-control"]&&(c["Cache-Control"]="");var t=e.CopySource||"",n=l.getSourceParams.call(this,t);if(!n){f(l.error(new Error("CopySource format error")));return}var r=n.Bucket,h=n.Region,E=decodeURIComponent(n.Key);he.call(this,{Scope:[{action:"name/cos:GetObject",bucket:r,region:h,prefix:E},{action:"name/cos:PutObject",bucket:e.Bucket,region:e.Region,prefix:e.Key}],method:"PUT",Bucket:e.Bucket,Region:e.Region,Key:e.Key,VersionId:e.VersionId,headers:e.Headers},function(ne,fe){if(ne)return f(ne);var ue=l.clone(fe.CopyObjectResult||{}),Te=Ve({ForcePathStyle:o.options.ForcePathStyle,protocol:o.options.Protocol,domain:o.options.Domain,bucket:e.Bucket,region:e.Region,object:e.Key,isLocation:!0});l.extend(ue,{Location:Te,statusCode:fe.statusCode,headers:fe.headers}),f(null,ue)})}function G(e,f){var o=e.CopySource||"",c=l.getSourceParams.call(this,o);if(!c){f(l.error(new Error("CopySource format error")));return}var t=c.Bucket,n=c.Region,r=decodeURIComponent(c.Key);he.call(this,{Scope:[{action:"name/cos:GetObject",bucket:t,region:n,prefix:r},{action:"name/cos:PutObject",bucket:e.Bucket,region:e.Region,prefix:e.Key}],method:"PUT",Bucket:e.Bucket,Region:e.Region,Key:e.Key,VersionId:e.VersionId,qs:{partNumber:e.PartNumber,uploadId:e.UploadId},headers:e.Headers},function(h,E){if(h)return f(h);var ne=l.clone(E.CopyPartResult||{});l.extend(ne,{statusCode:E.statusCode,headers:E.headers}),f(null,ne)})}function ae(e,f){var o=e.Objects||[],c=e.Quiet;o=l.isArray(o)?o:[o];var t=l.json2xml({Delete:{Object:o,Quiet:c||!1}}),n=e.Headers;n["Content-Type"]="application/xml",n["Content-MD5"]=l.binaryBase64(l.md5(t));var r=l.map(o,function(h){return{action:"name/cos:DeleteObject",bucket:e.Bucket,region:e.Region,prefix:h.Key}});he.call(this,{Scope:r,method:"POST",Bucket:e.Bucket,Region:e.Region,body:t,action:"delete",headers:n},function(h,E){if(h)return f(h);var ne=E.DeleteResult||{},fe=ne.Deleted||[],ue=ne.Error||[];fe=l.isArray(fe)?fe:[fe],ue=l.isArray(ue)?ue:[ue];var Te=l.clone(ne);l.extend(Te,{Error:ue,Deleted:fe,statusCode:E.statusCode,headers:E.headers}),f(null,Te)})}function Ce(e,f){var o=e.Headers;if(!e.RestoreRequest){f(l.error(new Error("missing param RestoreRequest")));return}var c=e.RestoreRequest||{},t=l.json2xml({RestoreRequest:c});o["Content-Type"]="application/xml",o["Content-MD5"]=l.binaryBase64(l.md5(t)),he.call(this,{Action:"name/cos:RestoreObject",method:"POST",Bucket:e.Bucket,Region:e.Region,Key:e.Key,VersionId:e.VersionId,body:t,action:"restore",headers:o},f)}function W(e,f){var o=e.Tagging||{},c=o.TagSet||o.Tags||e.Tags||[];c=l.clone(l.isArray(c)?c:[c]);var t=l.json2xml({Tagging:{TagSet:{Tag:c}}}),n=e.Headers;n["Content-Type"]="application/xml",n["Content-MD5"]=l.binaryBase64(l.md5(t)),he.call(this,{Action:"name/cos:PutObjectTagging",method:"PUT",Bucket:e.Bucket,Key:e.Key,Region:e.Region,body:t,action:"tagging",headers:n,VersionId:e.VersionId},function(r,h){if(r&&r.statusCode===204)return f(null,{statusCode:r.statusCode});if(r)return f(r);f(null,{statusCode:h.statusCode,headers:h.headers})})}function Oe(e,f){he.call(this,{Action:"name/cos:GetObjectTagging",method:"GET",Key:e.Key,Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"tagging",VersionId:e.VersionId},function(o,c){if(o){if(o.statusCode===404&&o.error&&(o.error==="Not Found"||o.error.Code==="NoSuchTagSet")){var t={Tags:[],statusCode:o.statusCode};o.headers&&(t.headers=o.headers),f(null,t)}else f(o);return}var n=[];try{n=c.Tagging.TagSet.Tag||[]}catch(r){}n=l.clone(l.isArray(n)?n:[n]),f(null,{Tags:n,statusCode:c.statusCode,headers:c.headers})})}function ke(e,f){he.call(this,{Action:"name/cos:DeleteObjectTagging",method:"DELETE",Bucket:e.Bucket,Region:e.Region,Key:e.Key,headers:e.Headers,action:"tagging",VersionId:e.VersionId},function(o,c){if(o&&o.statusCode===204)return f(null,{statusCode:o.statusCode});if(o)return f(o);f(null,{statusCode:c.statusCode,headers:c.headers})})}function Ie(e,f){var o=e.SelectType;if(!o)return f(l.error(new Error("missing param SelectType")));var c=e.SelectRequest||{},t=l.json2xml({SelectRequest:c}),n=e.Headers;n["Content-Type"]="application/xml",n["Content-MD5"]=l.binaryBase64(l.md5(t)),he.call(this,{Action:"name/cos:GetObject",method:"POST",Bucket:e.Bucket,Region:e.Region,Key:e.Key,headers:e.Headers,action:"select",qs:{"select-type":e.SelectType},VersionId:e.VersionId,body:t,DataType:"arraybuffer",rawBody:!0},function(r,h){if(r&&r.statusCode===204)return f(null,{statusCode:r.statusCode});if(r)return f(r);var E=l.parseSelectPayload(h.body);f(null,{statusCode:h.statusCode,headers:h.headers,Body:E.body,Payload:E.payload})})}function Pe(e,f){var o=this,c=e.Headers,t=e.tracker;!c["Cache-Control"]&&!c["cache-control"]&&(c["Cache-Control"]=""),!c["Content-Type"]&&!c["content-type"]&&(c["Content-Type"]=e.Body&&e.Body.type||"");var n=e.Body&&(e.UploadAddMetaMd5||o.options.UploadAddMetaMd5);n&&t&&t.setParams({md5StartTime:new Date().getTime()}),l.getBodyMd5(n,e.Body,function(r){r&&(e.Headers["x-cos-meta-md5"]=r),n&&t&&t.setParams({md5EndTime:new Date().getTime()}),he.call(o,{Action:"name/cos:InitiateMultipartUpload",method:"POST",Bucket:e.Bucket,Region:e.Region,Key:e.Key,action:"uploads",headers:e.Headers,qs:e.Query,tracker:t},function(h,E){if(h)return t&&t.parent&&t.parent.setParams({errorNode:"multipartInit"}),f(h);if(E=l.clone(E||{}),E&&E.InitiateMultipartUploadResult)return f(null,l.extend(E.InitiateMultipartUploadResult,{statusCode:E.statusCode,headers:E.headers}));f(null,E)})},e.onHashProgress)}function Me(e,f){var o=this;l.getFileSize("multipartUpload",e,function(){var c=e.tracker,t=o.options.UploadCheckContentMd5;t&&c&&c.setParams({md5StartTime:new Date().getTime()}),l.getBodyMd5(t,e.Body,function(n){n&&(e.Headers["Content-MD5"]=l.binaryBase64(n)),t&&c&&c.setParams({md5EndTime:new Date().getTime()}),c&&c.setParams({partNumber:e.PartNumber}),he.call(o,{Action:"name/cos:UploadPart",TaskId:e.TaskId,method:"PUT",Bucket:e.Bucket,Region:e.Region,Key:e.Key,qs:{partNumber:e.PartNumber,uploadId:e.UploadId},headers:e.Headers,onProgress:e.onProgress,body:e.Body||null,tracker:c},function(r,h){if(r)return c&&c.parent&&c.parent.setParams({errorNode:"multipartUpload"}),f(r);f(null,{ETag:l.attr(h.headers,"etag",""),statusCode:h.statusCode,headers:h.headers})})})})}function Ge(e,f){for(var o=this,c=e.UploadId,t=e.Parts,n=e.tracker,r=0,h=t.length;r-1?ue(fe.Authorization):"sign="+encodeURIComponent(fe.Authorization)),fe.SecurityToken&&(Te+="&x-cos-security-token="+fe.SecurityToken),fe.ClientIP&&(Te+="&clientIP="+fe.ClientIP),fe.ClientUA&&(Te+="&clientUA="+fe.ClientUA),fe.Token&&(Te+="&token="+fe.Token),n&&(Te+="&"+n),setTimeout(function(){f(null,{Url:Te})})}});return E?(r+="?"+E.Authorization+(E.SecurityToken?"&x-cos-security-token="+E.SecurityToken:""),n&&(r+="&"+n)):n&&(r+="?"+n),r}function Qe(e){var f={GrantFullControl:[],GrantWrite:[],GrantRead:[],GrantReadAcp:[],GrantWriteAcp:[],ACL:""},o={FULL_CONTROL:"GrantFullControl",WRITE:"GrantWrite",READ:"GrantRead",READ_ACP:"GrantReadAcp",WRITE_ACP:"GrantWriteAcp"},c=e&&e.AccessControlList||{},t=c.Grant;t&&(t=l.isArray(t)?t:[t]);var n={READ:0,WRITE:0,FULL_CONTROL:0};return t&&t.length&&l.each(t,function(r){r.Grantee.ID==="qcs::cam::anyone:anyone"||r.Grantee.URI==="http://cam.qcloud.com/groups/global/AllUsers"?n[r.Permission]=1:r.Grantee.ID!==e.Owner.ID&&f[o[r.Permission]].push('id="'+r.Grantee.ID+'"')}),n.FULL_CONTROL||n.WRITE&&n.READ?f.ACL="public-read-write":n.READ?f.ACL="public-read":f.ACL="private",l.each(o,function(r){f[r]=Ze(f[r].join(","))}),f}function Ze(e){var f=e.split(","),o={},c,t;for(c=0;c-1?n="{Region}.myqcloud.com":n="cos.{Region}.myqcloud.com",e.ForcePathStyle||(n="{Bucket}."+n)),n=n.replace(/\{\{AppId\}\}/ig,t).replace(/\{\{Bucket\}\}/ig,c).replace(/\{\{Region\}\}/ig,f).replace(/\{\{.*?\}\}/ig,""),n=n.replace(/\{AppId\}/ig,t).replace(/\{BucketName\}/ig,c).replace(/\{Bucket\}/ig,o).replace(/\{Region\}/ig,f).replace(/\{.*?\}/ig,""),/^[a-zA-Z]+:\/\//.test(n)||(n=h+"//"+n),n.slice(-1)==="/"&&(n=n.slice(0,-1));var E=n;return e.ForcePathStyle&&(E+="/"+o),E+="/",r&&(E+=l.camSafeUrlEncode(r).replace(/%2F/g,"/")),e.isLocation&&(E=E.replace(/^https?:\/\//,"")),E}var Je=function(f){if(!f.Bucket||!f.Region)return"";var o=f.UseAccelerate===void 0?this.options.UseAccelerate:f.UseAccelerate,c=f.Url||Ve({ForcePathStyle:this.options.ForcePathStyle,protocol:this.options.Protocol,domain:this.options.Domain,bucket:f.Bucket,region:o?"accelerate":f.Region}),t=c.replace(/^https?:\/\/([^/]+)(\/.*)?$/,"$1"),n=new RegExp("^([a-z\\d-]+-\\d+\\.)?(cos|cosv6|ci|pic)\\.([a-z\\d-]+)\\.myqcloud\\.com$");return n.test(t)?t:""};function $e(e,f){var o=l.clone(e.Headers),c="";l.each(o,function(xe,Re){(xe===""||["content-type","cache-control","expires"].indexOf(Re.toLowerCase())>-1)&&delete o[Re],Re.toLowerCase()==="host"&&(c=xe)});var t=e.ForceSignHost!==!1;!c&&e.SignHost&&t&&(o.Host=e.SignHost);var n=!1,r=function(Re,_e){n||(n=!0,_e&&_e.XCosSecurityToken&&!_e.SecurityToken&&(_e=l.clone(_e),_e.SecurityToken=_e.XCosSecurityToken,delete _e.XCosSecurityToken),f&&f(Re,_e))},h=this,E=e.Bucket||"",ne=e.Region||"",fe=e.Key||"";h.options.ForcePathStyle&&E&&(fe=E+"/"+fe);var ue="/"+fe,Te={},Be=e.Scope;if(!Be){var Ue=e.Action||"",We=e.ResourceKey||e.Key||"";Be=e.Scope||[{action:Ue,bucket:E,region:ne,prefix:We}]}var He=l.md5(JSON.stringify(Be));h._StsCache=h._StsCache||[],function(){var xe,Re;for(xe=h._StsCache.length-1;xe>=0;xe--){Re=h._StsCache[xe];var _e=Math.round(l.getSkewTime(h.options.SystemClockOffset)/1e3)+30;if(Re.StartTime&&_e=Re.ExpiredTime){h._StsCache.splice(xe,1);continue}if(!Re.ScopeLimit||Re.ScopeLimit&&Re.ScopeKey===He){Te=Re;break}}}();var Le=function(){var Re="";Te.StartTime&&e.Expires?Re=Te.StartTime+";"+(Te.StartTime+e.Expires*1):Te.StartTime&&Te.ExpiredTime&&(Re=Te.StartTime+";"+Te.ExpiredTime);var _e=l.getAuth({SecretId:Te.TmpSecretId,SecretKey:Te.TmpSecretKey,Method:e.Method,Pathname:ue,Query:e.Query,Headers:o,Expires:e.Expires,UseRawKey:h.options.UseRawKey,SystemClockOffset:h.options.SystemClockOffset,KeyTime:Re,ForceSignHost:t}),De={Authorization:_e,SecurityToken:Te.SecurityToken||Te.XCosSecurityToken||"",Token:Te.Token||"",ClientIP:Te.ClientIP||"",ClientUA:Te.ClientUA||""};r(null,De)},qe=function(Re){if(Re.Authorization){var _e=!1,De=Re.Authorization;if(De)if(De.indexOf(" ")>-1)_e=!1;else if(De.indexOf("q-sign-algorithm=")>-1&&De.indexOf("q-ak=")>-1&&De.indexOf("q-sign-time=")>-1&&De.indexOf("q-key-time=")>-1&&De.indexOf("q-url-param-list=")>-1)_e=!0;else try{De=atob(De),De.indexOf("a=")>-1&&De.indexOf("k=")>-1&&De.indexOf("t=")>-1&&De.indexOf("r=")>-1&&De.indexOf("b=")>-1&&(_e=!0)}catch(Ke){}if(!_e)return l.error(new Error("getAuthorization callback params format error"))}else{if(!Re.TmpSecretId)return l.error(new Error('getAuthorization callback params missing "TmpSecretId"'));if(!Re.TmpSecretKey)return l.error(new Error('getAuthorization callback params missing "TmpSecretKey"'));if(!Re.SecurityToken&&!Re.XCosSecurityToken)return l.error(new Error('getAuthorization callback params missing "SecurityToken"'));if(!Re.ExpiredTime)return l.error(new Error('getAuthorization callback params missing "ExpiredTime"'));if(Re.ExpiredTime&&Re.ExpiredTime.toString().length!==10)return l.error(new Error('getAuthorization callback params "ExpiredTime" should be 10 digits'));if(Re.StartTime&&Re.StartTime.toString().length!==10)return l.error(new Error('getAuthorization callback params "StartTime" should be 10 StartTime'))}return!1};if(Te.ExpiredTime&&Te.ExpiredTime-l.getSkewTime(h.options.SystemClockOffset)/1e3>60)Le();else if(h.options.getAuthorization)h.options.getAuthorization.call(h,{Bucket:E,Region:ne,Method:e.Method,Key:fe,Pathname:ue,Query:e.Query,Headers:o,Scope:Be,SystemClockOffset:h.options.SystemClockOffset,ForceSignHost:t},function(xe){typeof xe=="string"&&(xe={Authorization:xe});var Re=qe(xe);if(Re)return r(Re);xe.Authorization?r(null,xe):(Te=xe||{},Te.Scope=Be,Te.ScopeKey=He,h._StsCache.push(Te),Le())});else if(h.options.getSTS)h.options.getSTS.call(h,{Bucket:E,Region:ne},function(xe){Te=xe||{},Te.Scope=Be,Te.ScopeKey=He,Te.TmpSecretId||(Te.TmpSecretId=Te.SecretId),Te.TmpSecretKey||(Te.TmpSecretKey=Te.SecretKey);var Re=qe(Te);if(Re)return r(Re);h._StsCache.push(Te),Le()});else return function(){var xe=l.getAuth({SecretId:e.SecretId||h.options.SecretId,SecretKey:e.SecretKey||h.options.SecretKey,Method:e.Method,Pathname:ue,Query:e.Query,Headers:o,Expires:e.Expires,UseRawKey:h.options.UseRawKey,SystemClockOffset:h.options.SystemClockOffset,ForceSignHost:t}),Re={Authorization:xe,SecurityToken:h.options.SecurityToken||h.options.XCosSecurityToken};return r(null,Re),Re}();return""}function rt(e){var f=!1,o=!1,c=e.headers&&(e.headers.date||e.headers.Date)||e.error&&e.error.ServerTime;try{var t=e.error.Code,n=e.error.Message;(t==="RequestTimeTooSkewed"||t==="AccessDenied"&&n==="Request has expired")&&(o=!0)}catch(h){}if(e)if(o&&c){var r=Date.parse(c);this.options.CorrectClockSkew&&Math.abs(l.getSkewTime(this.options.SystemClockOffset)-r)>=3e4&&(console.error("error: Local time is too skewed."),this.options.SystemClockOffset=r-Date.now(),f=!0)}else Math.floor(e.statusCode/100)===5&&(f=!0);return f}function he(e,f){var o=this;!e.headers&&(e.headers={}),!e.qs&&(e.qs={}),e.VersionId&&(e.qs.versionId=e.VersionId),e.qs=l.clearKey(e.qs),e.headers&&(e.headers=l.clearKey(e.headers)),e.qs&&(e.qs=l.clearKey(e.qs));var c=l.clone(e.qs);e.action&&(c[e.action]="");var t=e.url||e.Url,n=e.SignHost||Je.call(this,{Bucket:e.Bucket,Region:e.Region,Url:t}),r=e.tracker,h=function E(ne){var fe=o.options.SystemClockOffset;r&&r.setParams({signStartTime:new Date().getTime(),retryTimes:ne-1}),$e.call(o,{Bucket:e.Bucket||"",Region:e.Region||"",Method:e.method,Key:e.Key,Query:c,Headers:e.headers,SignHost:n,Action:e.Action,ResourceKey:e.ResourceKey,Scope:e.Scope,ForceSignHost:o.options.ForceSignHost},function(ue,Te){if(ue){f(ue);return}r&&r.setParams({signEndTime:new Date().getTime(),httpStartTime:new Date().getTime()}),e.AuthData=Te,et.call(o,e,function(Be,Ue){r&&r.setParams({httpEndTime:new Date().getTime()}),Be&&ne<2&&(fe!==o.options.SystemClockOffset||rt.call(o,Be))?(e.headers&&(delete e.headers.Authorization,delete e.headers.token,delete e.headers.clientIP,delete e.headers.clientUA,e.headers["x-cos-security-token"]&&delete e.headers["x-cos-security-token"],e.headers["x-ci-security-token"]&&delete e.headers["x-ci-security-token"]),E(ne+1)):f(Be,Ue)})})};h(1)}function et(e,f){var o=this,c=e.TaskId;if(!(c&&!o._isRunningTask(c))){var t=e.Bucket,n=e.Region,r=e.Key,h=e.method||"GET",E=e.Url||e.url,ne=e.body,fe=e.rawBody;o.options.UseAccelerate&&(n="accelerate"),E=E||Ve({ForcePathStyle:o.options.ForcePathStyle,protocol:o.options.Protocol,domain:o.options.Domain,bucket:t,region:n,object:r}),e.action&&(E=E+"?"+(l.isIOS_QQ?"".concat(e.action,"="):e.action)),e.qsStr&&(E.indexOf("?")>-1?E=E+"&"+e.qsStr:E=E+"?"+e.qsStr);var ue={method:h,url:E,headers:e.headers,qs:e.qs,body:ne},Te="x-cos-security-token";if(l.isCIHost(E)&&(Te="x-ci-security-token"),ue.headers.Authorization=e.AuthData.Authorization,e.AuthData.Token&&(ue.headers.token=e.AuthData.Token),e.AuthData.ClientIP&&(ue.headers.clientIP=e.AuthData.ClientIP),e.AuthData.ClientUA&&(ue.headers.clientUA=e.AuthData.ClientUA),e.AuthData.SecurityToken&&(ue.headers[Te]=e.AuthData.SecurityToken),ue.headers&&(ue.headers=l.clearKey(ue.headers)),ue=l.clearKey(ue),e.onProgress&&typeof e.onProgress=="function"){var Be=ne&&(ne.size||ne.length)||0;ue.onProgress=function(xe){if(!(c&&!o._isRunningTask(c))){var Re=xe?xe.loaded:0;e.onProgress({loaded:Re,total:Be})}}}e.onDownloadProgress&&(ue.onDownloadProgress=e.onDownloadProgress),e.DataType&&(ue.dataType=e.DataType),this.options.Timeout&&(ue.timeout=this.options.Timeout),o.options.ForcePathStyle&&(ue.pathStyle=o.options.ForcePathStyle),o.emit("before-send",ue);var Ue=ue.url.includes("accelerate."),We=ue.qs?Object.keys(ue.qs).map(function(xe){return"".concat(xe,"=").concat(ue.qs[xe])}).join("&"):"",He=We?ue.url+"?"+We:ue.url;e.tracker&&e.tracker.setParams({reqUrl:He,accelerate:Ue?"Y":"N"}),e.tracker&&e.tracker.parent&&e.tracker.parent.setParams({reqUrl:He,accelerate:Ue?"Y":"N"});var Le=(o.options.Request||T)(ue,function(xe){if(!(xe&&xe.error==="abort")){var Re={options:ue,error:xe&&xe.error,statusCode:xe&&xe.statusCode||0,statusMessage:xe&&xe.statusMessage||"",headers:xe&&xe.headers||{},body:xe&&xe.body};o.emit("after-receive",Re);var _e=Re.error,De=Re.body,Ke={statusCode:Re.statusCode,statusMessage:Re.statusMessage,headers:Re.headers},st,it=function(lt,ft){if(c&&o.off("inner-kill-task",qe),!st){st=!0;var dt={};Ke&&Ke.statusCode&&(dt.statusCode=Ke.statusCode),Ke&&Ke.headers&&(dt.headers=Ke.headers),lt?(lt=l.extend(lt||{},dt),f(lt,null)):(ft=l.extend(ft||{},dt),f(null,ft)),Le=null}};if(_e)return it(l.error(_e));var ut=Ke.statusCode,ht=Math.floor(ut/100)===2;if(fe&&ht)return it(null,{body:De});var at;try{at=De&&De.indexOf("<")>-1&&De.indexOf(">")>-1&&l.xml2json(De)||{}}catch(gt){at={}}var ct=at&&at.Error;ht?it(null,at):ct?it(l.error(new Error(ct.Message),{code:ct.Code,error:ct})):ut?it(l.error(new Error(Ke.statusMessage),{code:""+ut})):ut&&it(l.error(new Error("statusCode error")))}}),qe=function xe(Re){Re.TaskId===c&&(Le&&Le.abort&&Le.abort(),o.off("inner-kill-task",xe))};c&&o.on("inner-kill-task",qe)}}var ot={getService:k,putBucket:P,headBucket:ee,getBucket:B,deleteBucket:b,putBucketAcl:q,getBucketAcl:L,putBucketCors:z,getBucketCors:_,deleteBucketCors:j,getBucketLocation:Q,getBucketPolicy:ge,putBucketPolicy:M,deleteBucketPolicy:A,putBucketTagging:S,getBucketTagging:m,deleteBucketTagging:K,putBucketLifecycle:g,getBucketLifecycle:D,deleteBucketLifecycle:U,putBucketVersioning:F,getBucketVersioning:$,putBucketReplication:w,getBucketReplication:H,deleteBucketReplication:N,putBucketWebsite:X,getBucketWebsite:J,deleteBucketWebsite:ce,putBucketReferer:se,getBucketReferer:re,putBucketDomain:Z,getBucketDomain:te,deleteBucketDomain:ie,putBucketOrigin:we,getBucketOrigin:de,deleteBucketOrigin:Y,putBucketLogging:pe,getBucketLogging:oe,putBucketInventory:le,getBucketInventory:ye,listBucketInventory:ve,deleteBucketInventory:me,putBucketAccelerate:Ee,getBucketAccelerate:Se,putBucketEncryption:be,getBucketEncryption:Ae,deleteBucketEncryption:V,getObject:d,headObject:x,listObjectVersions:I,putObject:i,deleteObject:a,getObjectAcl:s,putObjectAcl:p,optionsObject:R,putObjectCopy:O,deleteMultipleObject:ae,restoreObject:Ce,putObjectTagging:W,getObjectTagging:Oe,deleteObjectTagging:ke,selectObjectContent:Ie,appendObject:Xe,uploadPartCopy:G,multipartInit:Pe,multipartUpload:Me,multipartComplete:Ge,multipartList:Fe,multipartListPart:je,multipartAbort:Ne,request:ze,getObjectUrl:Ye,getAuth:nt};function tt(e,f,o){l.each(["Cors","Acl"],function(c){if(e.slice(-c.length)===c){var t=e.slice(0,-c.length)+c.toUpperCase(),n=l.apiWrapper(e,f),r=!1;o[t]=function(){!r&&console.warn("warning: cos."+t+" has been deprecated. Please Use cos."+e+" instead."),r=!0,n.apply(this,arguments)}}})}y.exports.init=function(e,f){f.transferToTaskMethod(ot,"putObject"),l.each(ot,function(o,c){e.prototype[c]=l.apiWrapper(c,o),tt(c,o,e.prototype)})}},"./src/cos.js":function(y,C,u){"use strict";var v=u("./src/util.js"),T=u("./src/event.js"),l=u("./src/task.js"),k=u("./src/base.js"),P=u("./src/advance.js"),ee=u("./package.json"),B={AppId:"",SecretId:"",SecretKey:"",SecurityToken:"",ChunkRetryTimes:2,FileParallelLimit:3,ChunkParallelLimit:3,ChunkSize:1024*1024,SliceSize:1024*1024,CopyChunkParallelLimit:20,CopyChunkSize:1024*1024*10,CopySliceSize:1024*1024*10,MaxPartNumber:1e4,ProgressInterval:1e3,Domain:"",ServiceDomain:"",Protocol:"",CompatibilityMode:!1,ForcePathStyle:!1,UseRawKey:!1,Timeout:0,CorrectClockSkew:!0,SystemClockOffset:0,UploadCheckContentMd5:!1,UploadQueueSize:1e4,UploadAddMetaMd5:!1,UploadIdCacheLimit:50,UseAccelerate:!1,ForceSignHost:!0,EnableTracker:!1,DeepTracker:!1,TrackerDelay:5e3,CustomId:""},b=function(L){this.options=v.extend(v.clone(B),L||{}),this.options.FileParallelLimit=Math.max(1,this.options.FileParallelLimit),this.options.ChunkParallelLimit=Math.max(1,this.options.ChunkParallelLimit),this.options.ChunkRetryTimes=Math.max(0,this.options.ChunkRetryTimes),this.options.ChunkSize=Math.max(1024*1024,this.options.ChunkSize),this.options.CopyChunkParallelLimit=Math.max(1,this.options.CopyChunkParallelLimit),this.options.CopyChunkSize=Math.max(1024*1024,this.options.CopyChunkSize),this.options.CopySliceSize=Math.max(0,this.options.CopySliceSize),this.options.MaxPartNumber=Math.max(1024,Math.min(1e4,this.options.MaxPartNumber)),this.options.Timeout=Math.max(0,this.options.Timeout),this.options.AppId&&console.warn('warning: AppId has been deprecated, Please put it at the end of parameter Bucket(E.g: "test-1250000000").'),this.options.SecretId&&this.options.SecretId.indexOf(" ")>-1&&(console.error("error: SecretId\u683C\u5F0F\u9519\u8BEF\uFF0C\u8BF7\u68C0\u67E5"),console.error("error: SecretId format is incorrect. Please check")),this.options.SecretKey&&this.options.SecretKey.indexOf(" ")>-1&&(console.error("error: SecretKey\u683C\u5F0F\u9519\u8BEF\uFF0C\u8BF7\u68C0\u67E5"),console.error("error: SecretKey format is incorrect. Please check")),v.isNode()&&(console.warn("warning: cos-js-sdk-v5 \u4E0D\u652F\u6301 nodejs \u73AF\u5883\u4F7F\u7528\uFF0C\u8BF7\u6539\u7528 cos-nodejs-sdk-v5\uFF0C\u53C2\u8003\u6587\u6863\uFF1A https://cloud.tencent.com/document/product/436/8629"),console.warn("warning: cos-js-sdk-v5 does not support nodejs environment. Please use cos-nodejs-sdk-v5 instead. See: https://cloud.tencent.com/document/product/436/8629")),T.init(this),l.init(this)};k.init(b,l),P.init(b,l),b.util={md5:v.md5,xml2json:v.xml2json,json2xml:v.json2xml},b.getAuthorization=v.getAuth,b.version=ee.version,y.exports=b},"./src/event.js":function(y,C){var u=function(l){var k={},P=function(B){return!k[B]&&(k[B]=[]),k[B]};l.on=function(ee,B){ee==="task-list-update"&&console.warn('warning: Event "'+ee+'" has been deprecated. Please use "list-update" instead.'),P(ee).push(B)},l.off=function(ee,B){for(var b=P(ee),q=b.length-1;q>=0;q--)B===b[q]&&b.splice(q,1)},l.emit=function(ee,B){for(var b=P(ee).map(function(L){return L}),q=0;q=0;Q--){var M=k[Q][2];(!M||M+l=0;M--){var ge=k[M];ge[0]===_&&ge[1]===j&&k.splice(M,1)}k.unshift([_,j,Math.round(Date.now()/1e3)]),k.length>Q&&k.splice(Q),q()}},removeUploadId:function(_){b.call(this),delete L.using[_];for(var j=k.length-1;j>=0;j--)k[j][1]===_&&k.splice(j,1);q()}};y.exports=L},"./src/task.js":function(y,C,u){var v=u("./src/session.js"),T=u("./src/util.js"),l={},k=function(B,b){l[b]=B[b],B[b]=function(q,L){q.SkipTask?l[b].call(this,q,L):this._addTask(b,q,L)}},P=function(B){var b=[],q={},L=0,z=0,_=function(m){var K={id:m.id,Bucket:m.Bucket,Region:m.Region,Key:m.Key,FilePath:m.FilePath,state:m.state,loaded:m.loaded,size:m.size,speed:m.speed,percent:m.percent,hashPercent:m.hashPercent,error:m.error};return m.FilePath&&(K.FilePath=m.FilePath),m._custom&&(K._custom=m._custom),K},j=function(){var S,m=function(){S=0,B.emit("task-list-update",{list:T.map(b,_)}),B.emit("list-update",{list:T.map(b,_)})};return function(){S||(S=setTimeout(m))}}(),Q=function(){if(!(b.length<=B.options.UploadQueueSize)){for(var m=0;mB.options.UploadQueueSize;){var K=b[m].state==="waiting"||b[m].state==="checking"||b[m].state==="uploading";!b[m]||!K?(q[b[m].id]&&delete q[b[m].id],b.splice(m,1),z--):m++}j()}},M=function S(){if(!(L>=B.options.FileParallelLimit)){for(;b[z]&&b[z].state!=="waiting";)z++;if(!(z>=b.length)){var m=b[z];z++,L++,m.state="checking",m.params.onTaskStart&&m.params.onTaskStart(_(m)),!m.params.UploadData&&(m.params.UploadData={});var K=T.formatParams(m.api,m.params);l[m.api].call(B,K,function(g,D){!B._isRunningTask(m.id)||((m.state==="checking"||m.state==="uploading")&&(m.state=g?"error":"success",g&&(m.error=g),L--,j(),S(),m.callback&&m.callback(g,D),m.state==="success"&&(m.params&&(delete m.params.UploadData,delete m.params.Body,delete m.params),delete m.callback)),Q())}),j(),setTimeout(S)}}},ge=function(m,K){var g=q[m];if(!!g){var D=g&&g.state==="waiting",U=g&&(g.state==="checking"||g.state==="uploading");if(K==="canceled"&&g.state!=="canceled"||K==="paused"&&D||K==="paused"&&U){if(K==="paused"&&g.params.Body&&typeof g.params.Body.pipe=="function"){console.error("stream not support pause");return}g.state=K,B.emit("inner-kill-task",{TaskId:m,toState:K});try{var F=g&&g.params&&g.params.UploadData.UploadId}catch($){}K==="canceled"&&F&&v.removeUsing(F),j(),U&&(L--,M()),K==="canceled"&&(g.params&&(delete g.params.UploadData,delete g.params.Body,delete g.params),delete g.callback)}Q()}};B._addTasks=function(S){T.each(S,function(m){B._addTask(m.api,m.params,m.callback,!0)}),j()};var A=!0;B._addTask=function(S,m,K,g){m=T.formatParams(S,m);var D=T.uuid();m.TaskId=D,m.onTaskReady&&m.onTaskReady(D),m.TaskReady&&(m.TaskReady(D),A&&console.warn('warning: Param "TaskReady" has been deprecated. Please use "onTaskReady" instead.'),A=!1);var U={params:m,callback:K,api:S,index:b.length,id:D,Bucket:m.Bucket,Region:m.Region,Key:m.Key,FilePath:m.FilePath||"",state:"waiting",loaded:0,size:0,speed:0,percent:0,hashPercent:0,error:null,_custom:m._custom},F=m.onHashProgress;m.onHashProgress=function(w){!B._isRunningTask(U.id)||(U.hashPercent=w.percent,F&&F(w),j())};var $=m.onProgress;return m.onProgress=function(w){!B._isRunningTask(U.id)||(U.state==="checking"&&(U.state="uploading"),U.loaded=w.loaded,U.speed=w.speed,U.percent=w.percent,$&&$(w),j())},T.getFileSize(S,m,function(w,H){if(w)return K(T.error(w));q[D]=U,b.push(U),U.size=H,!g&&j(),M(),Q()}),D},B._isRunningTask=function(S){var m=q[S];return!!(m&&(m.state==="checking"||m.state==="uploading"))},B.getTaskList=function(){return T.map(b,_)},B.cancelTask=function(S){ge(S,"canceled")},B.pauseTask=function(S){ge(S,"paused")},B.restartTask=function(S){var m=q[S];m&&(m.state==="paused"||m.state==="error")&&(m.state="waiting",j(),z=Math.min(z,m.index),M())},B.isUploadRunning=function(){return L||z=0||S.indexOf("wow32")>=0?"win32":S.indexOf("win64")>=0||S.indexOf("wow64")>=0?"win64":m?"mac":"unknown os"},isMobile:function(){var S=/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i;return!!((typeof navigator=="undefined"?"undefined":l(navigator))==="object"&&navigator.userAgent.match(S))},isAndroid:function(){var S=/(Android|Adr|Linux)/i;return!!((typeof navigator=="undefined"?"undefined":l(navigator))==="object"&&navigator.userAgent.match(S))},isIOS:function(){var S=/(iPhone|iPod|iPad|iOS)/i;return!!((typeof navigator=="undefined"?"undefined":l(navigator))==="object"&&navigator.userAgent.match(S))},isOtherMobile:function(){return isMobile&&!isAndroid&&!isIOS},getDeviceName:function(){if((typeof navigator=="undefined"?"undefined":l(navigator))!=="object")return"unknown device";var S=navigator.userAgent.toLowerCase();if(S.includes("app/tencent_wemeet"))return"tencent_wemeet";if(S.indexOf("maxthon")>=0){var m=S.match(/maxthon\/([\d.]+)/),K=m&&m[1]||"";return"\u50B2\u6E38\u6D4F\u89C8\u5668 ".concat(K).trim()}if(S.indexOf("qqbrowser")>=0){var g=S.match(/qqbrowser\/([\d.]+)/),D=g&&g[1]||"";return"QQ\u6D4F\u89C8\u5668 ".concat(D).trim()}if(S.indexOf("se 2.x")>=0)return"\u641C\u72D7\u6D4F\u89C8\u5668";if(S.indexOf("wxwork")>=0)return"\u5FAE\u4FE1\u5185\u7F6E\u6D4F\u89C8\u5668";if(S.indexOf("msie")>=0){var U=S.match(/msie ([\d.]+)/),F=U&&U[1]||"";return"IE ".concat(F).trim()}if(S.indexOf("firefox")>=0){var $=S.match(/firefox\/([\d.]+)/),w=$&&$[1]||"";return"Firefox ".concat(w).trim()}if(S.indexOf("chrome")>=0){var H=S.match(/chrome\/([\d.]+)/),N=H&&H[1]||"";return"Chrome ".concat(N).trim()}if(S.indexOf("opera")>=0){var X=S.match(/opera.([\d.]+)/),J=X&&X[1]||"";return"Opera ".concat(J).trim()}if(S.indexOf("safari")>=0){var ce=S.match(/version\/([\d.]+)/),se=ce&&ce[1]||"";return"Safari ".concat(se).trim()}if(S.indexOf("edge")>=0){var re=S.match(/edge\/([\d.]+)/),Z=re&&re[1]||"";return"edge ".concat(Z).trim()}return S.substr(0,200)}},b={isMobile:B.isMobile(),isBrowser:!B.isMobile(),mobileOsType:B.isAndroid()?"android":B.isIOS?"ios":"other_mobile",pcOsType:B.getOsType()},q={deviceType:b.isMobile?"mobile":b.isBrowser?"browser":"unknown",devicePlatform:b.isMobile?b.mobileOsType:b.pcOsType,deviceName:B.getDeviceName()},L=["multipartInit","multipartUpload","multipartComplete","multipartList","multipartListPart","multipartAbort"],z=["putObject","postObject","appendObject","sliceUploadFile","uploadFile","uploadFiles"].concat(L),_=["getObject"];function j(A){return z.includes(A)?"cos_upload":_.includes(A)?"cos_download":"base_service"}function Q(A){return A.replace(/([A-Z])/g,"_$1").toLowerCase()}function M(A){var S={},m=["tracePlatform","cossdkVersion","region","networkType","host","accelerate","requestPath","size","httpMd5","httpSign","httpFull","name","result","tookTime","errorNode","errorCode","errorMessage","errorRequestId","errorStatusCode","errorServiceName","errorType","traceId","bucket","appid","partNumber","retryTimes","reqUrl","customId","fullError","deviceType","devicePlatform","deviceName"],K=["tracePlatform","cossdkVersion","region","bucket","appid","networkType","host","accelerate","requestPath","partNumber","size","name","result","tookTime","errorRequestId","retryTimes","reqUrl","customId","deviceType","devicePlatform","deviceName"],g=A.result==="Success"?K:m;for(var D in A)if(!!g.includes(D)){var U=Q(D);S[U]=A[D]}return S}var ge=function(){"use strict";function A(S){v(this,A);var m=S.parent,K=S.traceId,g=S.bucket,D=S.region,U=S.apiName,F=S.fileKey,$=S.fileSize,w=S.accelerate,H=S.customId,N=S.delay,X=S.deepTracker,J=g&&g.substr(g.lastIndexOf("-")+1)||"";this.parent=m,this.deepTracker=X,this.delay=N,this.params={cossdkVersion:k.version,region:D,networkType:"",host:"",accelerate:w?"Y":"N",requestPath:F||"",size:$||-1,httpMd5:0,httpSign:0,httpFull:0,name:U||"",result:"",tookTime:0,errorNode:"",errorCode:"",errorMessage:"",errorRequestId:"",errorStatusCode:0,errorServiceName:"",tracePlatform:"cos-js-sdk-v5",traceId:K||B.getUid(),bucket:g,appid:J,partNumber:0,retryTimes:0,reqUrl:"",customId:H||"",deviceType:q.deviceType,devicePlatform:q.devicePlatform,deviceName:q.deviceName,md5StartTime:0,md5EndTime:0,signStartTime:0,signEndTime:0,httpStartTime:0,httpEndTime:0,startTime:new Date().getTime(),endTime:0},this.beacon=ee(N)}return T(A,[{key:"formatResult",value:function(m,K){var g,D,U,F,$,w,H=new Date().getTime(),N=H-this.params.startTime,X=B.getNetType(),J=m?(m==null?void 0:m.code)||(m==null||(g=m.error)===null||g===void 0?void 0:g.code)||(m==null||(D=m.error)===null||D===void 0?void 0:D.Code):"",ce=m?(m==null?void 0:m.message)||(m==null||(U=m.error)===null||U===void 0?void 0:U.message)||(m==null||(F=m.error)===null||F===void 0?void 0:F.Message):"",se=m?(m==null?void 0:m.resource)||(m==null||($=m.error)===null||$===void 0?void 0:$.resource)||(m==null||(w=m.error)===null||w===void 0?void 0:w.Resource):"",re=m?m==null?void 0:m.statusCode:K.statusCode,Z=m?(m==null?void 0:m.headers)&&(m==null?void 0:m.headers["x-cos-request-id"]):(K==null?void 0:K.headers)&&(K==null?void 0:K.headers["x-cos-request-id"]),te=m?Z?"Server":"Client":"";if(Object.assign(this.params,{tookTime:N,networkType:X,httpMd5:this.params.md5EndTime-this.params.md5StartTime,httpSign:this.params.signEndTime-this.params.signStartTime,httpFull:this.params.httpEndTime-this.params.httpStartTime,result:m?"Fail":"Success",errorType:te,errorCode:J,errorStatusCode:re,errorMessage:ce,errorServiceName:se,errorRequestId:Z}),m&&(!J||!ce)&&(this.params.fullError=m?JSON.stringify(m):""),this.params.name==="getObject"&&(this.params.size=K?K.headers&&K.headers["content-length"]:-1),this.params.reqUrl)try{var ie=/^http(s)?:\/\/(.*?)\//.exec(this.params.reqUrl);this.params.host=ie[2]}catch(we){this.params.host=this.params.reqUrl}this.sendEvents()}},{key:"setParams",value:function(m){Object.assign(this.params,m)}},{key:"sendEvents",value:function(){if(!(L.includes(this.params.name)&&!this.deepTracker)){var m=j(this.params.name),K=M(this.params);this.beacon||(this.beacon=ee(this.delay||5e3)),this.delay===0?this.beacon&&this.beacon.onDirectUserAction(m,K):this.beacon&&this.beacon.onUserAction(m,K)}}},{key:"generateSubTracker",value:function(m){return Object.assign(m,{parent:this,deepTracker:this.deepTracker,traceId:this.params.traceId,bucket:this.params.bucket,region:this.params.region,fileKey:this.params.requestPath,customId:this.params.customId,delay:this.delay}),new A(m)}}]),A}();y.exports=ge},"./src/util.js":function(y,C,u){"use strict";(function(v){var T=u("./node_modules/@babel/runtime/helpers/typeof.js"),l=u("./lib/md5.js"),k=u("./lib/crypto.js"),P=u("./lib/xml2json.js"),ee=u("./lib/json2xml.js"),B=u("./src/tracker.js");function b(V){return encodeURIComponent(V).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")}function q(V,x){var I=[];for(var d in V)V.hasOwnProperty(d)&&I.push(x?b(d).toLowerCase():d);return I.sort(function(i,a){return i=i.toLowerCase(),a=a.toLowerCase(),i===a?0:i>a?1:-1})}var L=function(x,I){var d,i,a,s=[],p=q(x);for(d=0;d-1||z.indexOf(i)>-1)&&(I[d]=x[d])}return I},j=function(x){x=x||{};var I=x.SecretId,d=x.SecretKey,i=x.KeyTime,a=(x.method||x.Method||"get").toLowerCase(),s=w(x.Query||x.params||{}),p=_(w(x.Headers||x.headers||{})),R=x.Key||"",O;x.UseRawKey?O=x.Pathname||x.pathname||"/"+R:(O=x.Pathname||x.pathname||R,O.indexOf("/")!==0&&(O="/"+O));var G=x.ForceSignHost!==!1;if(!p.Host&&!p.host&&x.Bucket&&x.Region&&G&&(p.Host=x.Bucket+".cos."+x.Region+".myqcloud.com"),!I)throw new Error("missing param SecretId");if(!d)throw new Error("missing param SecretKey");var ae=Math.round(le(x.SystemClockOffset)/1e3)-1,Ce=ae,W=x.Expires||x.expires;W===void 0?Ce+=900:Ce+=W*1||0;var Oe="sha1",ke=I,Ie=i||ae+";"+Ce,Pe=i||ae+";"+Ce,Me=q(p,!0).join(";").toLowerCase(),Ge=q(s,!0).join(";").toLowerCase(),Fe=k.HmacSHA1(Pe,d).toString(),je=[a,O,Ae.obj2str(s,!0),Ae.obj2str(p,!0),""].join(` +`),Ne=["sha1",Ie,k.SHA1(je).toString(),""].join(` +`),ze=k.HmacSHA1(Ne,Fe).toString(),Xe=["q-sign-algorithm="+Oe,"q-ak="+ke,"q-sign-time="+Ie,"q-key-time="+Pe,"q-header-list="+Me,"q-url-param-list="+Ge,"q-signature="+ze].join("&");return Xe},Q=function(x,I,d){var i=I/8,a=x.slice(d,d+i);return new Uint8Array(a).reverse(),new{8:Uint8Array,16:Uint16Array,32:Uint32Array}[I](a)[0]},M=function(x,I,d,i){var a=x.slice(I,d),s="";return new Uint8Array(a).forEach(function(p){s+=String.fromCharCode(p)}),i&&(s=decodeURIComponent(escape(s))),s},ge=function(x){for(var I={},d=M(x),i={records:[]};x.byteLength;){var a=Q(x,32,0),s=Q(x,32,4),p=a-s-16,R=0,O;for(x=x.slice(12);RparseInt(i[a])?1:-1;return 0},x=function(d){if(!d)return!1;var i=(d.match(/Chrome\/([.\d]+)/)||[])[1],a=(d.match(/QBCore\/([.\d]+)/)||[])[1],s=(d.match(/QQBrowser\/([.\d]+)/)||[])[1],p=i&&V(i,"53.0.2785.116")<0&&a&&V(a,"3.53.991.400")<0&&s&&V(s,"9.0.2524.400")<=0||!1;return p};return x(typeof navigator!="undefined"&&navigator.userAgent)}(),D=function(x,I,d,i,a){var s;if(x.slice?s=x.slice(I,d):x.mozSlice?s=x.mozSlice(I,d):x.webkitSlice&&(s=x.webkitSlice(I,d)),i&&g){var p=new FileReader;p.onload=function(R){s=null,a(new Blob([p.result]))},p.readAsArrayBuffer(s)}else a(s)},U=function(x,I,d,i){d=d||S,x?typeof I=="string"?d(Ae.md5(I,!0)):Blob&&I instanceof Blob?Ae.getFileMd5(I,function(a,s){d(s)},i):d():d()},F=1024*1024,$=function(x,I,d){var i=x.size,a=0,s=l.getCtx(),p=function R(O){if(O>=i){var G=s.digest("hex");I(null,G);return}var ae=Math.min(i,O+F);Ae.fileSlice(x,O,ae,!1,function(Ce){K(Ce,function(W){Ce=null,s=s.update(W,!0),a+=W.length,W=null,d&&d({loaded:a,total:i,percent:Math.round(a/i*1e4)/1e4}),R(O+F)})})};p(0)};function w(V){return re(V,function(x){return T(x)==="object"&&x!==null?w(x):x})}function H(V,x,I){return V&&x in V?V[x]:I}function N(V,x){return se(x,function(I,d){V[d]=x[d]}),V}function X(V){return V instanceof Array}function J(V,x){for(var I=!1,d=0;d-1,R=!s||typeof s=="string"&&s.indexOf("{Region}")>-1;if(x.indexOf("Bucket")>-1||x==="deleteMultipleObject"||x==="multipartList"||x==="listObjectVersions"){if(p&&!d)return"Bucket";if(R&&!i)return"Region"}else if(x.indexOf("Object")>-1||x.indexOf("multipart")>-1||x==="sliceUploadFile"||x==="abortUploadTask"){if(p&&!d)return"Bucket";if(R&&!i)return"Region";if(!a)return"Key"}return!1},de=function(x,I){if(I=N({},I),x!=="getAuth"&&x!=="getV4Auth"&&x!=="getObjectUrl"){var d=I.Headers||{};if(I&&T(I)==="object"){(function(){for(var a in I)I.hasOwnProperty(a)&&a.indexOf("x-cos-")>-1&&(d[a]=I[a])})();var i={"x-cos-mfa":"MFA","Content-MD5":"ContentMD5","Content-Length":"ContentLength","Content-Type":"ContentType",Expect:"Expect",Expires:"Expires","Cache-Control":"CacheControl","Content-Disposition":"ContentDisposition","Content-Encoding":"ContentEncoding",Range:"Range","If-Modified-Since":"IfModifiedSince","If-Unmodified-Since":"IfUnmodifiedSince","If-Match":"IfMatch","If-None-Match":"IfNoneMatch","x-cos-copy-source":"CopySource","x-cos-copy-source-Range":"CopySourceRange","x-cos-metadata-directive":"MetadataDirective","x-cos-copy-source-If-Modified-Since":"CopySourceIfModifiedSince","x-cos-copy-source-If-Unmodified-Since":"CopySourceIfUnmodifiedSince","x-cos-copy-source-If-Match":"CopySourceIfMatch","x-cos-copy-source-If-None-Match":"CopySourceIfNoneMatch","x-cos-acl":"ACL","x-cos-grant-read":"GrantRead","x-cos-grant-write":"GrantWrite","x-cos-grant-full-control":"GrantFullControl","x-cos-grant-read-acp":"GrantReadAcp","x-cos-grant-write-acp":"GrantWriteAcp","x-cos-storage-class":"StorageClass","x-cos-traffic-limit":"TrafficLimit","x-cos-mime-limit":"MimeLimit","x-cos-server-side-encryption-customer-algorithm":"SSECustomerAlgorithm","x-cos-server-side-encryption-customer-key":"SSECustomerKey","x-cos-server-side-encryption-customer-key-MD5":"SSECustomerKeyMD5","x-cos-server-side-encryption":"ServerSideEncryption","x-cos-server-side-encryption-cos-kms-key-id":"SSEKMSKeyId","x-cos-server-side-encryption-context":"SSEContext","Pic-Operations":"PicOperations"};Ae.each(i,function(a,s){I[a]!==void 0&&(d[s]=I[a])}),I.Headers=m(d)}}return I},Y=function(x,I){return function(d,i){var a=this;typeof d=="function"&&(i=d,d={}),d=de(x,d);var s;if(a.options.EnableTracker)if(d.calledBySdk==="sliceUploadFile")s=d.tracker&&d.tracker.generateSubTracker({apiName:x});else if(["uploadFile","uploadFiles"].includes(x))s=null;else{var p=-1;d.Body&&(p=typeof d.Body=="string"?d.Body.length:d.Body.size||d.Body.byteLength||-1),s=new B({bucket:d.Bucket,region:d.Region,apiName:x,fileKey:d.Key,fileSize:p,deepTracker:a.options.DeepTracker,customId:a.options.CustomId,delay:a.options.TrackerDelay})}d.tracker=s;var R=function(ke){return ke&&ke.headers&&(ke.headers["x-cos-request-id"]&&(ke.RequestId=ke.headers["x-cos-request-id"]),ke.headers["x-ci-request-id"]&&(ke.RequestId=ke.headers["x-ci-request-id"]),ke.headers["x-cos-version-id"]&&(ke.VersionId=ke.headers["x-cos-version-id"]),ke.headers["x-cos-delete-marker"]&&(ke.DeleteMarker=ke.headers["x-cos-delete-marker"])),ke},O=function(ke,Ie){s&&s.formatResult(ke,Ie),i&&i(R(ke),R(Ie))},G=function(){if(x!=="getService"&&x!=="abortUploadTask"){var ke=we.call(a,x,d);if(ke)return"missing param "+ke;if(d.Region){if(a.options.CompatibilityMode){if(!/^([a-z\d-.]+)$/.test(d.Region))return"Region format error."}else{if(d.Region.indexOf("cos.")>-1)return'param Region should not be start with "cos."';if(!/^([a-z\d-]+)$/.test(d.Region))return"Region format error."}!a.options.CompatibilityMode&&d.Region.indexOf("-")===-1&&d.Region!=="yfb"&&d.Region!=="default"&&d.Region!=="accelerate"&&console.warn("warning: param Region format error, find help here: https://cloud.tencent.com/document/product/436/6224")}if(d.Bucket){if(!/^([a-z\d-]+)-(\d+)$/.test(d.Bucket))if(d.AppId)d.Bucket=d.Bucket+"-"+d.AppId;else if(a.options.AppId)d.Bucket=d.Bucket+"-"+a.options.AppId;else return'Bucket should format as "test-1250000000".';d.AppId&&(console.warn('warning: AppId has been deprecated, Please put it at the end of parameter Bucket(E.g Bucket:"test-1250000000" ).'),delete d.AppId)}!a.options.UseRawKey&&d.Key&&d.Key.substr(0,1)==="/"&&(d.Key=d.Key.substr(1))}},ae=G(),Ce=["getAuth","getObjectUrl"].includes(x);if(typeof Promise=="function"&&!Ce&&!i)return new Promise(function(Oe,ke){if(i=function(Pe,Me){Pe?ke(Pe):Oe(Me)},ae)return O(Ae.error(new Error(ae)));I.call(a,d,O)});if(ae)return O(Ae.error(new Error(ae)));var W=I.call(a,d,O);if(Ce)return W}},pe=function(x,I){var d=this,i=0,a=0,s=Date.now(),p,R;function O(){if(R=0,I&&typeof I=="function"){p=Date.now();var G=Math.max(0,Math.round((a-i)/((p-s)/1e3)*100)/100)||0,ae;a===0&&x===0?ae=1:ae=Math.floor(a/x*100)/100||0,s=p,i=a;try{I({loaded:a,total:x,speed:G,percent:ae})}catch(Ce){}}}return function(G,ae){if(G&&(a=G.loaded,x=G.total),ae)clearTimeout(R),O();else{if(R)return;R=setTimeout(O,d.options.ProgressInterval)}}},oe=function(x,I,d){var i;if(typeof I.Body=="string"?I.Body=new Blob([I.Body],{type:"text/plain"}):I.Body instanceof ArrayBuffer&&(I.Body=new Blob([I.Body])),I.Body&&(I.Body instanceof Blob||I.Body.toString()==="[object File]"||I.Body.toString()==="[object Blob]"))i=I.Body.size;else{d(Ae.error(new Error("params body format error, Only allow File|Blob|String.")));return}I.ContentLength=i,d(null,i)},le=function(x){return Date.now()+(x||0)},ye=function(x,I){var d=x;return x.message=x.message||null,typeof I=="string"?(x.error=I,x.message=I):T(I)==="object"&&I!==null&&(N(x,I),(I.code||I.name)&&(x.code=I.code||I.name),I.message&&(x.message=I.message),I.stack&&(x.stack=I.stack)),typeof Object.defineProperty=="function"&&(Object.defineProperty(x,"name",{writable:!0,enumerable:!1}),Object.defineProperty(x,"message",{enumerable:!0})),x.name=I&&I.name||x.name||x.code||"Error",x.code||(x.code=x.name),x.error||(x.error=w(d)),x},ve=function(){return(typeof globalThis=="undefined"?"undefined":T(globalThis))==="object"&&(globalThis.constructor.name==="DedicatedWorkerGlobalScope"||globalThis.FileReaderSync)},me=function(){return(typeof window=="undefined"?"undefined":T(window))!=="object"&&(typeof v=="undefined"?"undefined":T(v))==="object"&&!0&&!ve()},Ee=function(x){return/^https?:\/\/([^/]+\.)?ci\.[^/]+/.test(x)},Se=function(){if((typeof navigator=="undefined"?"undefined":T(navigator))!=="object")return!1;var V=navigator.userAgent,x=!!V.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);return x}(),be=function(){return(typeof navigator=="undefined"?"undefined":T(navigator))!=="object"?!1:/\sQQ/i.test(navigator.userAgent)}(),Ae={noop:S,formatParams:de,apiWrapper:Y,xml2json:P,json2xml:ee,md5:l,clearKey:m,fileSlice:D,getBodyMd5:U,getFileMd5:$,binaryBase64:te,extend:N,isArray:X,isInArray:J,makeArray:ce,each:se,map:re,filter:Z,clone:w,attr:H,uuid:ie,camSafeUrlEncode:b,throttleOnProgress:pe,getFileSize:oe,getSkewTime:le,error:ye,obj2str:L,getAuth:j,parseSelectPayload:ge,getSourceParams:A,isBrowser:!0,isNode:me,isCIHost:Ee,isIOS_QQ:Se&&be};y.exports=Ae}).call(this,u("./node_modules/process/browser.js"))}})})}}]); diff --git a/dist/5754.b510b5a8.async.js b/dist/5754.b510b5a8.async.js deleted file mode 100644 index b4b72a0..0000000 --- a/dist/5754.b510b5a8.async.js +++ /dev/null @@ -1,12 +0,0 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[5754],{65754:function(module){(function(m,c){module.exports=c()})(self,function(){return function(p){var m={};function c(g){if(m[g])return m[g].exports;var o=m[g]={i:g,l:!1,exports:{}};return p[g].call(o.exports,o,o.exports,c),o.l=!0,o.exports}return c.m=p,c.c=m,c.d=function(g,o,X){c.o(g,o)||Object.defineProperty(g,o,{enumerable:!0,get:X})},c.r=function(g){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(g,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(g,"__esModule",{value:!0})},c.t=function(g,o){if(o&1&&(g=c(g)),o&8||o&4&&typeof g=="object"&&g&&g.__esModule)return g;var X=Object.create(null);if(c.r(X),Object.defineProperty(X,"default",{enumerable:!0,value:g}),o&2&&typeof g!="string")for(var k in g)c.d(X,k,function(_){return g[_]}.bind(null,k));return X},c.n=function(g){var o=g&&g.__esModule?function(){return g.default}:function(){return g};return c.d(o,"a",o),o},c.o=function(g,o){return Object.prototype.hasOwnProperty.call(g,o)},c.p="/dist/",c(c.s="./index.js")}({"./index.js":function(p,m,c){var g=c("./src/cos.js");p.exports=g},"./lib/beacon.min.js":function(p,m,c){var g,o,X=c("./node_modules/@babel/runtime/helpers/typeof.js");(function(k,_){X(m)=="object"&&typeof p!="undefined"?p.exports=_():(g=_,o=typeof g=="function"?g.call(m,c,m,p):g,o!==void 0&&(p.exports=o))})(this,function(){"use strict";var k=function(s,u){return k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,v){a.__proto__=v}||function(a,v){for(var R in v)Object.prototype.hasOwnProperty.call(v,R)&&(a[R]=v[R])},k(s,u)},_=function(){return _=Object.assign||function(s){for(var u,a=1,v=arguments.length;a0&&v[v.length-1])||W[0]!==6&&W[0]!==2)){A=0;continue}if(W[0]===3&&(!v||W[1]>v[0]&&W[1]60*this.strategy.requestInterval*1e3},d.prototype.getUploadUrl=function(){return this.strategy.httpsUploadUrl+"?appkey="+this.appkey},d.prototype.isBlackEvent=function(s){return this.strategy.blacklist.indexOf(s)!=-1},d.prototype.isEventUpOnOff=function(){return this.strategy.isEventUpOnOff},d.prototype.isSampleEvent=function(s){return!!Object.prototype.hasOwnProperty.call(this.realSample,s)&&this.realSample[s]this.duration)return this.createSession();u=v.sessionId,a=v.sessionStart,this.getSessionStackDepth=0}catch(A){}return{sessionId:u,sessionStart:a}},d.prototype.createSession=function(){var s=Date.now(),u={sessionId:this.appkey+"_"+s.toString(),sessionStart:s};this.storage.setItem(P,JSON.stringify(u)),this.storage.setItem(F,s.toString());var a="is_new_user",v=this.storage.getItem(a);return this.getSessionStackDepth<=1&&this.beacon.onDirectUserAction("rqd_applaunched",{A21:v?"N":"Y"}),this.storage.setItem(a,JSON.stringify(!1)),u},d}();function M(){var d=navigator.userAgent,s=d.indexOf("compatible")>-1&&d.indexOf("MSIE")>-1,u=d.indexOf("Edge")>-1&&!s,a=d.indexOf("Trident")>-1&&d.indexOf("rv:11.0")>-1;if(s){new RegExp("MSIE (\\d+\\.\\d+);").test(d);var v=parseFloat(RegExp.$1);return v==7?7:v==8?8:v==9?9:v==10?10:6}return u?-2:a?11:-1}function Z(d,s){var u,a;return(u="https://tun-cos-1258344701.file.myqcloud.com/fp.js",a===void 0&&(a=Date.now()+"-"+Math.random()),new Promise(function(v,R){if(document.getElementById(a))v(void 0);else{var A=document.getElementsByTagName("head")[0],G=document.createElement("script");G.onload=function(){return function(){G.onload=null,v(void 0)}},G.onerror=function(ce){G.onerror=null,A.removeChild(G),R(ce)},G.src=u,G.id=a,A.appendChild(G)}})).then(function(){new Fingerprint().getQimei36(d,s)}).catch(function(v){}),""}var b=function(){return(b=Object.assign||function(s){for(var u,a=1,v=arguments.length;a0||!window.indexedDB||/X5Lite/.test(navigator.userAgent)?(this.store=new ue(u),this.dbEventCount=this.store.getCount()):(this.store=new le(s),this.getCount().then(function(v){a.dbEventCount=v}).catch(function(v){}))}return d.prototype.getCount=function(){return ne(this,void 0,void 0,function(){return O(this,function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),[4,this.store.getCount()];case 1:return[2,s.sent()];case 2:return s.sent(),[2,Promise.reject()];case 3:return[2]}})})},d.prototype.insertEvent=function(s,u){return ne(this,void 0,void 0,function(){var a,v;return O(this,function(R){switch(R.label){case 0:if(this.dbEventCount>=1e4)return[2,Promise.reject()];a=w(s.mapValue),R.label=1;case 1:return R.trys.push([1,3,,4]),this.dbEventCount++,[4,this.store.setItem(a,s)];case 2:return[2,R.sent()];case 3:return v=R.sent(),u&&u(v,s),this.dbEventCount--,[2,Promise.reject()];case 4:return[2]}})})},d.prototype.getEvents=function(){return ne(this,void 0,void 0,function(){var s;return O(this,function(u){switch(u.label){case 0:s=[],u.label=1;case 1:return u.trys.push([1,3,,4]),[4,this.store.iterate(function(a){s.push(a)})];case 2:return u.sent(),[2,Promise.all(s)];case 3:return u.sent(),[2,Promise.all(s)];case 4:return[2]}})})},d.prototype.removeEvent=function(s){return ne(this,void 0,void 0,function(){var u;return O(this,function(a){switch(a.label){case 0:u=w(s.mapValue),a.label=1;case 1:return a.trys.push([1,3,,4]),this.dbEventCount--,[4,this.store.removeItem(u)];case 2:return[2,a.sent()];case 3:return a.sent(),this.dbEventCount++,[2,Promise.reject()];case 4:return[2]}})})},d}(),te=function(){return(te=Object.assign||function(s){for(var u,a=1,v=arguments.length;a0&&v[v.length-1])||W[0]!==6&&W[0]!==2)){A=0;continue}if(W[0]===3&&(!v||W[1]>v[0]&&W[1]0&&A<8,a.isUnderIE8||(a.isUnderIE=A>0,u.needInitQimei&&Z(u.appkey,function(G){a.qimei36=G.q36}),a.network=new Ae(u),a.storage=new V(u.appkey),a.initCommonInfo(u),a.store=new oe(u.appkey,a.storage),a.errorReport=new K(a.config,a.commonInfo,"web",a.network),a.strategy=new h(u.needQueryConfig==null||u.needQueryConfig,a.config,a.commonInfo,a.storage,a.network),a.logidStartTime=a.storage.getItem(E),a.logidStartTime||(a.logidStartTime=Date.now().toString(),a.storage.setItem(E,a.logidStartTime)),v=a.logidStartTime,R=Date.now()-Number.parseFloat(v),Math.floor(R/864e5)>=365&&a.storage.clear(),a.initSession(u),a.onDirectUserAction("rqd_js_init",{}),setTimeout(function(){return a.lifeCycle.emit("init")},0),a.initDelayTime=u.delay?u.delay:1e3,a.cycleTask(a.initDelayTime)),a}return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function v(){this.constructor=u}k(u,a),u.prototype=a===null?Object.create(a):(v.prototype=a.prototype,new v)}(s,d),s.prototype.initSession=function(u){var a=18e5;u.sessionDuration&&u.sessionDuration>3e4&&(a=u.sessionDuration),this.beaconSession=new N(this.storage,a,this)},s.prototype.initCommonInfo=function(u){var a=Number(this.storage.getItem(F));try{var v=JSON.parse(this.storage.getItem(z));(Date.now()-a>3e4||!v)&&this.storage.setItem(z,JSON.stringify([]))}catch(A){}u.uploadUrl&&(this.uploadUrl=u.uploadUrl+"?appkey="+u.appkey);var R=[window.screen.width,window.screen.height];window.devicePixelRatio&&R.push(window.devicePixelRatio),this.commonInfo={deviceId:this.storage.createDeviceId(),language:navigator&&navigator.language||"zh_CN",query:window.location.search,userAgent:navigator.userAgent,pixel:R.join("*"),channelID:u.channelID?String(u.channelID):"",openid:u.openid?String(u.openid):"",unid:u.unionid?String(u.unionid):"",sdkVersion:B},this.config.appVersion=u.versionCode?String(u.versionCode):"",this.config.strictMode=u.strictMode},s.prototype.cycleTask=function(u){var a=this;this.intervalID=window.setInterval(function(){a.pauseSearching||a.store.getEvents().then(function(v){v.length==0&&(a.pauseSearching=!0);var R=[],A=JSON.parse(a.storage.getItem(z));A||(A=[]),v&&v.forEach(function(G){var ce=w(G.mapValue);A.indexOf(ce)==-1&&(R.push(G),A.push(ce))}),R.length!=0&&(a.storage.setItem(z,JSON.stringify(A)),a._normalLogPipeline(a.assembleData(R)))}).catch(function(v){})},u)},s.prototype.onReport=function(u,a,v){var R=this;if(this.isUnderIE8)this.errorReport.reportError("601","UnderIE8");else{this.pauseSearching=!1;var A=this.generateData(u,a,v);if(v&&this.delayTime==0&&!this.underWeakNet)this._normalLogPipeline(this.assembleData(A));else{var G=A.shift();G&&this.store.insertEvent(G,function(ce){ce&&R.errorReport.reportError("604","insertEvent fail!")}).catch(function(ce){R._normalLogPipeline(R.assembleData(A))})}}},s.prototype.onSendBeacon=function(u,a){if(this.isUnderIE)this.errorReport.reportError("605","UnderIE");else{this.pauseSearching=!1;var v=this.assembleData(this.generateData(u,a,!0));typeof navigator.sendBeacon=="function"&&navigator.sendBeacon(this.uploadUrl||this.strategy.getUploadUrl(),JSON.stringify(v))}},s.prototype.generateData=function(u,a,v){var R=[],A="4.5.14-web_"+(v?"direct_log_id":"normal_log_id"),G=Number(this.storage.getItem(A));return G=G||1,a=_(_({},a),{A99:v?"Y":"N",A100:G.toString(),A72:B,A88:this.logidStartTime}),G++,this.storage.setItem(A,G.toString()),R.push({eventCode:u,eventTime:Date.now().toString(),mapValue:U(a,this.config.strictMode)}),R},s.prototype.assembleData=function(u){var a=this.beaconSession.getSession();return{appVersion:this.config.appVersion?ge(this.config.appVersion):"",sdkId:"js",sdkVersion:B,mainAppKey:this.config.appkey,platformId:3,common:U(_(_({},this.additionalParams),{A2:this.commonInfo.deviceId,A8:this.commonInfo.openid,A12:this.commonInfo.language,A17:this.commonInfo.pixel,A23:this.commonInfo.channelID,A50:this.commonInfo.unid,A76:a.sessionId,A101:this.commonInfo.userAgent,A102:window.location.href,A104:document.referrer,A119:this.commonInfo.query,A153:this.qimei36}),!1),events:u}},s.prototype.monitorUploadFailed=function(){this.uselessCycleTaskNum++,this.uselessCycleTaskNum>=5&&(window.clearInterval(this.intervalID),this.cycleTask(6e4),this.underWeakNet=!0)},s.prototype.doCustomCycleTask=function(){this.uselessCycleTaskNum>=5&&(window.clearInterval(this.intervalID),this.cycleTask(this.initDelayTime)),this.uselessCycleTaskNum=0,this.underWeakNet=!1},s}(y)})},"./lib/crypto.js":function(p,m,c){(function(g){var o=c("./node_modules/@babel/runtime/helpers/typeof.js"),X=X||function(k,_){var ne={},O=ne.lib={},x=function(){},q=O.Base={extend:function(S){x.prototype=this;var y=new x;return S&&y.mixIn(S),y.hasOwnProperty("init")||(y.init=function(){y.$super.init.apply(this,arguments)}),y.init.prototype=y,y.$super=this,y},create:function(){var S=this.extend();return S.init.apply(S,arguments),S},init:function(){},mixIn:function(S){for(var y in S)S.hasOwnProperty(y)&&(this[y]=S[y]);S.hasOwnProperty("toString")&&(this.toString=S.toString)},clone:function(){return this.init.prototype.extend(this)}},F=O.WordArray=q.extend({init:function(S,y){S=this.words=S||[],this.sigBytes=y!=_?y:4*S.length},toString:function(S){return(S||I).stringify(this)},concat:function(S){var y=this.words,K=S.words,h=this.sigBytes;if(S=S.sigBytes,this.clamp(),h%4)for(var P=0;P>>2]|=(K[P>>>2]>>>24-8*(P%4)&255)<<24-8*((h+P)%4);else if(65535>>2]=K[P>>>2];else y.push.apply(y,K);return this.sigBytes+=S,this},clamp:function(){var S=this.words,y=this.sigBytes;S[y>>>2]&=4294967295<<32-8*(y%4),S.length=k.ceil(y/4)},clone:function(){var S=q.clone.call(this);return S.words=this.words.slice(0),S},random:function(S){for(var y=[],K=0;K>>2]>>>24-8*(h%4)&255;K.push((P>>>4).toString(16)),K.push((P&15).toString(16))}return K.join("")},parse:function(S){for(var y=S.length,K=[],h=0;h>>3]|=parseInt(S.substr(h,2),16)<<24-4*(h%8);return new F.init(K,y/2)}},L=z.Latin1={stringify:function(S){var y=S.words;S=S.sigBytes;for(var K=[],h=0;h>>2]>>>24-8*(h%4)&255));return K.join("")},parse:function(S){for(var y=S.length,K=[],h=0;h>>2]|=(S.charCodeAt(h)&255)<<24-8*(h%4);return new F.init(K,y)}},J=z.Utf8={stringify:function(S){try{return decodeURIComponent(escape(L.stringify(S)))}catch(y){throw Error("Malformed UTF-8 data")}},parse:function(S){return L.parse(unescape(encodeURIComponent(S)))}},U=O.BufferedBlockAlgorithm=q.extend({reset:function(){this._data=new F.init,this._nDataBytes=0},_append:function(S){typeof S=="string"&&(S=J.parse(S)),this._data.concat(S),this._nDataBytes+=S.sigBytes},_process:function(S){var y=this._data,K=y.words,h=y.sigBytes,P=this.blockSize,N=h/(4*P),N=S?k.ceil(N):k.max((N|0)-this._minBufferSize,0);if(S=N*P,h=k.min(4*S,h),S){for(var M=0;MS;S++){if(16>S)x[S]=F[z+S]|0;else{var y=x[S-3]^x[S-8]^x[S-14]^x[S-16];x[S]=y<<1|y>>>31}y=(L<<5|L>>>27)+w+x[S],y=20>S?y+((J&U|~J&ge)+1518500249):40>S?y+((J^U^ge)+1859775393):60>S?y+((J&U|J&ge|U&ge)-1894007588):y+((J^U^ge)-899497514),w=ge,ge=U,U=J<<30|J>>>2,J=L,L=y}I[0]=I[0]+L|0,I[1]=I[1]+J|0,I[2]=I[2]+U|0,I[3]=I[3]+ge|0,I[4]=I[4]+w|0},_doFinalize:function(){var F=this._data,z=F.words,I=8*this._nDataBytes,L=8*F.sigBytes;return z[L>>>5]|=128<<24-L%32,z[(L+64>>>9<<4)+14]=Math.floor(I/4294967296),z[(L+64>>>9<<4)+15]=I,F.sigBytes=4*z.length,this._process(),this._hash},clone:function(){var F=O.clone.call(this);return F._hash=this._hash.clone(),F}});k.SHA1=O._createHelper(_),k.HmacSHA1=O._createHmacHelper(_)})(),function(){var k=X,_=k.enc.Utf8;k.algo.HMAC=k.lib.Base.extend({init:function(O,x){O=this._hasher=new O.init,typeof x=="string"&&(x=_.parse(x));var q=O.blockSize,F=4*q;x.sigBytes>F&&(x=O.finalize(x)),x.clamp();for(var z=this._oKey=x.clone(),I=this._iKey=x.clone(),L=z.words,J=I.words,U=0;U>>2]>>>24-U%4*8&255,w=z[U+1>>>2]>>>24-(U+1)%4*8&255,S=z[U+2>>>2]>>>24-(U+2)%4*8&255,y=ge<<16|w<<8|S,K=0;K<4&&U+K*.75>>6*(3-K)&63));var h=L.charAt(64);if(h)for(;J.length%4;)J.push(h);return J.join("")},parse:function(F){var z=F.length,I=this._map,L=I.charAt(64);if(L){var J=F.indexOf(L);J!=-1&&(z=J)}for(var U=[],ge=0,w=0;w>>6-w%4*2;U[ge>>>2]|=(S|y)<<24-ge%4*8,ge++}return ne.create(U,ge)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),o(g)==="object"?g.exports=X:window.CryptoJS=X}).call(this,c("./node_modules/webpack/buildin/module.js")(p))},"./lib/json2xml.js":function(p,m,c){var g=c("./node_modules/@babel/runtime/helpers/typeof.js"),o="a-zA-Z_\xC0-\xD6\xD8-\xF6\xF8-\xFF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FFF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD",X="-.0-9\xB7\u0300-\u036F\u203F\u2040",k=new RegExp("^([^"+o+"])|^((x|X)(m|M)(l|L))|([^"+o+X+"])","g"),_=/[^\x09\x0A\x0D\x20-\xFF\x85\xA0-\uD7FF\uE000-\uFDCF\uFDE0-\uFFFD]/gm,ne=function(z){var I=[];if(z instanceof Object)for(var L in z)z.hasOwnProperty(L)&&I.push(L);return I},O=function(z,I){var L=function(U,ge,w,S,y){var K=I.indent!==void 0?I.indent:" ",h=I.prettyPrint?` -`+new Array(S).join(K):"";I.removeIllegalNameCharacters&&(U=U.replace(k,"_"));var P=[h,"<",U,w||""];return ge&&ge.length>0?(P.push(">"),P.push(ge),y&&P.push(h),P.push("")):P.push("/>"),P.join("")};return function J(U,ge,w){var S=g(U);switch((Array.isArray?Array.isArray(U):U instanceof Array)?S="array":U instanceof Date&&(S="date"),S){case"array":var y=[];return U.map(function(N){y.push(J(N,1,w+1))}),I.prettyPrint&&y.push(` -`),y.join("");break;case"date":return U.toJSON?U.toJSON():U+"";case"object":var K=[];for(var h in U)if(U.hasOwnProperty(h))if(U[h]instanceof Array)for(var P=0;P0&&K.push(` -`),K.join("");break;case"function":return U();default:return I.escape?q(U):""+U}}(z,0,0)},x=function(z){var I=['"),I.join("")};function q(F){return(""+F).replace(/&/g,"&").replace(//g,">").replace(/'/g,"'").replace(/"/g,""").replace(_,"")}p.exports=function(F,z){if(z||(z={xmlHeader:{standalone:!0},prettyPrint:!0,indent:" ",escape:!0}),typeof F=="string")try{F=JSON.parse(F.toString())}catch(U){return!1}var I="",L="";z&&(g(z)=="object"?(z.xmlHeader&&(I=x(!!z.xmlHeader.standalone)),typeof z.docType!="undefined"&&(L="")):I=x()),z=z||{};var J=[I,z.prettyPrint&&L?` -`:"",L,O(F,z)];return J.join("").replace(/\n{2,}/g,` -`).replace(/\s+$/g,"")}},"./lib/md5.js":function(module,exports,__nested_webpack_require_69768__){(function(process,global,module){var __WEBPACK_AMD_DEFINE_RESULT__,_typeof=__nested_webpack_require_69768__("./node_modules/@babel/runtime/helpers/typeof.js");(function(){"use strict";var ERROR="input is invalid type",WINDOW=(typeof window=="undefined"?"undefined":_typeof(window))==="object",root=WINDOW?window:{};root.JS_MD5_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&(typeof self=="undefined"?"undefined":_typeof(self))==="object",NODE_JS=!root.JS_MD5_NO_NODE_JS&&(typeof process=="undefined"?"undefined":_typeof(process))==="object"&&process.versions&&process.versions.node;NODE_JS?root=global:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_MD5_NO_COMMON_JS&&_typeof(module)==="object"&&module.exports,AMD=__nested_webpack_require_69768__("./node_modules/webpack/buildin/amd-options.js"),ARRAY_BUFFER=!root.JS_MD5_NO_ARRAY_BUFFER&&typeof ArrayBuffer!="undefined",HEX_CHARS="0123456789abcdef".split(""),EXTRA=[128,32768,8388608,-2147483648],SHIFT=[0,8,16,24],OUTPUT_TYPES=["hex","array","digest","buffer","arrayBuffer","base64"],BASE64_ENCODE_CHAR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),blocks=[],buffer8;if(ARRAY_BUFFER){var buffer=new ArrayBuffer(68);buffer8=new Uint8Array(buffer),blocks=new Uint32Array(buffer)}(root.JS_MD5_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(p){return Object.prototype.toString.call(p)==="[object Array]"}),ARRAY_BUFFER&&(root.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(p){return _typeof(p)==="object"&&p.buffer&&p.buffer.constructor===ArrayBuffer});var createOutputMethod=function(m){return function(c,g){return new Md5(!0).update(c,g)[m]()}},createMethod=function(){var m=createOutputMethod("hex");NODE_JS&&(m=nodeWrap(m)),m.getCtx=m.create=function(){return new Md5},m.update=function(o){return m.create().update(o)};for(var c=0;c>6,_[o++]=128|c&63):c<55296||c>=57344?(_[o++]=224|c>>12,_[o++]=128|c>>6&63,_[o++]=128|c&63):(c=65536+((c&1023)<<10|p.charCodeAt(++g)&1023),_[o++]=240|c>>18,_[o++]=128|c>>12&63,_[o++]=128|c>>6&63,_[o++]=128|c&63);else for(o=this.start;g>2]|=c<>2]|=(192|c>>6)<>2]|=(128|c&63)<=57344?(k[o>>2]|=(224|c>>12)<>2]|=(128|c>>6&63)<>2]|=(128|c&63)<>2]|=(240|c>>18)<>2]|=(128|c>>12&63)<>2]|=(128|c>>6&63)<>2]|=(128|c&63)<=64?(this.start=o-64,this.hash(),this.hashed=!0):this.start=o}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Md5.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var p=this.blocks,m=this.lastByteIndex;p[m>>2]|=EXTRA[m&3],m>=56&&(this.hashed||this.hash(),p[0]=p[16],p[16]=p[1]=p[2]=p[3]=p[4]=p[5]=p[6]=p[7]=p[8]=p[9]=p[10]=p[11]=p[12]=p[13]=p[14]=p[15]=0),p[14]=this.bytes<<3,p[15]=this.hBytes<<3|this.bytes>>>29,this.hash()}},Md5.prototype.hash=function(){var p,m,c,g,o,X,k=this.blocks;this.first?(p=k[0]-680876937,p=(p<<7|p>>>25)-271733879<<0,g=(-1732584194^p&2004318071)+k[1]-117830708,g=(g<<12|g>>>20)+p<<0,c=(-271733879^g&(p^-271733879))+k[2]-1126478375,c=(c<<17|c>>>15)+g<<0,m=(p^c&(g^p))+k[3]-1316259209,m=(m<<22|m>>>10)+c<<0):(p=this.h0,m=this.h1,c=this.h2,g=this.h3,p+=(g^m&(c^g))+k[0]-680876936,p=(p<<7|p>>>25)+m<<0,g+=(c^p&(m^c))+k[1]-389564586,g=(g<<12|g>>>20)+p<<0,c+=(m^g&(p^m))+k[2]+606105819,c=(c<<17|c>>>15)+g<<0,m+=(p^c&(g^p))+k[3]-1044525330,m=(m<<22|m>>>10)+c<<0),p+=(g^m&(c^g))+k[4]-176418897,p=(p<<7|p>>>25)+m<<0,g+=(c^p&(m^c))+k[5]+1200080426,g=(g<<12|g>>>20)+p<<0,c+=(m^g&(p^m))+k[6]-1473231341,c=(c<<17|c>>>15)+g<<0,m+=(p^c&(g^p))+k[7]-45705983,m=(m<<22|m>>>10)+c<<0,p+=(g^m&(c^g))+k[8]+1770035416,p=(p<<7|p>>>25)+m<<0,g+=(c^p&(m^c))+k[9]-1958414417,g=(g<<12|g>>>20)+p<<0,c+=(m^g&(p^m))+k[10]-42063,c=(c<<17|c>>>15)+g<<0,m+=(p^c&(g^p))+k[11]-1990404162,m=(m<<22|m>>>10)+c<<0,p+=(g^m&(c^g))+k[12]+1804603682,p=(p<<7|p>>>25)+m<<0,g+=(c^p&(m^c))+k[13]-40341101,g=(g<<12|g>>>20)+p<<0,c+=(m^g&(p^m))+k[14]-1502002290,c=(c<<17|c>>>15)+g<<0,m+=(p^c&(g^p))+k[15]+1236535329,m=(m<<22|m>>>10)+c<<0,p+=(c^g&(m^c))+k[1]-165796510,p=(p<<5|p>>>27)+m<<0,g+=(m^c&(p^m))+k[6]-1069501632,g=(g<<9|g>>>23)+p<<0,c+=(p^m&(g^p))+k[11]+643717713,c=(c<<14|c>>>18)+g<<0,m+=(g^p&(c^g))+k[0]-373897302,m=(m<<20|m>>>12)+c<<0,p+=(c^g&(m^c))+k[5]-701558691,p=(p<<5|p>>>27)+m<<0,g+=(m^c&(p^m))+k[10]+38016083,g=(g<<9|g>>>23)+p<<0,c+=(p^m&(g^p))+k[15]-660478335,c=(c<<14|c>>>18)+g<<0,m+=(g^p&(c^g))+k[4]-405537848,m=(m<<20|m>>>12)+c<<0,p+=(c^g&(m^c))+k[9]+568446438,p=(p<<5|p>>>27)+m<<0,g+=(m^c&(p^m))+k[14]-1019803690,g=(g<<9|g>>>23)+p<<0,c+=(p^m&(g^p))+k[3]-187363961,c=(c<<14|c>>>18)+g<<0,m+=(g^p&(c^g))+k[8]+1163531501,m=(m<<20|m>>>12)+c<<0,p+=(c^g&(m^c))+k[13]-1444681467,p=(p<<5|p>>>27)+m<<0,g+=(m^c&(p^m))+k[2]-51403784,g=(g<<9|g>>>23)+p<<0,c+=(p^m&(g^p))+k[7]+1735328473,c=(c<<14|c>>>18)+g<<0,m+=(g^p&(c^g))+k[12]-1926607734,m=(m<<20|m>>>12)+c<<0,o=m^c,p+=(o^g)+k[5]-378558,p=(p<<4|p>>>28)+m<<0,g+=(o^p)+k[8]-2022574463,g=(g<<11|g>>>21)+p<<0,X=g^p,c+=(X^m)+k[11]+1839030562,c=(c<<16|c>>>16)+g<<0,m+=(X^c)+k[14]-35309556,m=(m<<23|m>>>9)+c<<0,o=m^c,p+=(o^g)+k[1]-1530992060,p=(p<<4|p>>>28)+m<<0,g+=(o^p)+k[4]+1272893353,g=(g<<11|g>>>21)+p<<0,X=g^p,c+=(X^m)+k[7]-155497632,c=(c<<16|c>>>16)+g<<0,m+=(X^c)+k[10]-1094730640,m=(m<<23|m>>>9)+c<<0,o=m^c,p+=(o^g)+k[13]+681279174,p=(p<<4|p>>>28)+m<<0,g+=(o^p)+k[0]-358537222,g=(g<<11|g>>>21)+p<<0,X=g^p,c+=(X^m)+k[3]-722521979,c=(c<<16|c>>>16)+g<<0,m+=(X^c)+k[6]+76029189,m=(m<<23|m>>>9)+c<<0,o=m^c,p+=(o^g)+k[9]-640364487,p=(p<<4|p>>>28)+m<<0,g+=(o^p)+k[12]-421815835,g=(g<<11|g>>>21)+p<<0,X=g^p,c+=(X^m)+k[15]+530742520,c=(c<<16|c>>>16)+g<<0,m+=(X^c)+k[2]-995338651,m=(m<<23|m>>>9)+c<<0,p+=(c^(m|~g))+k[0]-198630844,p=(p<<6|p>>>26)+m<<0,g+=(m^(p|~c))+k[7]+1126891415,g=(g<<10|g>>>22)+p<<0,c+=(p^(g|~m))+k[14]-1416354905,c=(c<<15|c>>>17)+g<<0,m+=(g^(c|~p))+k[5]-57434055,m=(m<<21|m>>>11)+c<<0,p+=(c^(m|~g))+k[12]+1700485571,p=(p<<6|p>>>26)+m<<0,g+=(m^(p|~c))+k[3]-1894986606,g=(g<<10|g>>>22)+p<<0,c+=(p^(g|~m))+k[10]-1051523,c=(c<<15|c>>>17)+g<<0,m+=(g^(c|~p))+k[1]-2054922799,m=(m<<21|m>>>11)+c<<0,p+=(c^(m|~g))+k[8]+1873313359,p=(p<<6|p>>>26)+m<<0,g+=(m^(p|~c))+k[15]-30611744,g=(g<<10|g>>>22)+p<<0,c+=(p^(g|~m))+k[6]-1560198380,c=(c<<15|c>>>17)+g<<0,m+=(g^(c|~p))+k[13]+1309151649,m=(m<<21|m>>>11)+c<<0,p+=(c^(m|~g))+k[4]-145523070,p=(p<<6|p>>>26)+m<<0,g+=(m^(p|~c))+k[11]-1120210379,g=(g<<10|g>>>22)+p<<0,c+=(p^(g|~m))+k[2]+718787259,c=(c<<15|c>>>17)+g<<0,m+=(g^(c|~p))+k[9]-343485551,m=(m<<21|m>>>11)+c<<0,this.first?(this.h0=p+1732584193<<0,this.h1=m-271733879<<0,this.h2=c-1732584194<<0,this.h3=g+271733878<<0,this.first=!1):(this.h0=this.h0+p<<0,this.h1=this.h1+m<<0,this.h2=this.h2+c<<0,this.h3=this.h3+g<<0)},Md5.prototype.hex=function(){this.finalize();var p=this.h0,m=this.h1,c=this.h2,g=this.h3;return HEX_CHARS[p>>4&15]+HEX_CHARS[p&15]+HEX_CHARS[p>>12&15]+HEX_CHARS[p>>8&15]+HEX_CHARS[p>>20&15]+HEX_CHARS[p>>16&15]+HEX_CHARS[p>>28&15]+HEX_CHARS[p>>24&15]+HEX_CHARS[m>>4&15]+HEX_CHARS[m&15]+HEX_CHARS[m>>12&15]+HEX_CHARS[m>>8&15]+HEX_CHARS[m>>20&15]+HEX_CHARS[m>>16&15]+HEX_CHARS[m>>28&15]+HEX_CHARS[m>>24&15]+HEX_CHARS[c>>4&15]+HEX_CHARS[c&15]+HEX_CHARS[c>>12&15]+HEX_CHARS[c>>8&15]+HEX_CHARS[c>>20&15]+HEX_CHARS[c>>16&15]+HEX_CHARS[c>>28&15]+HEX_CHARS[c>>24&15]+HEX_CHARS[g>>4&15]+HEX_CHARS[g&15]+HEX_CHARS[g>>12&15]+HEX_CHARS[g>>8&15]+HEX_CHARS[g>>20&15]+HEX_CHARS[g>>16&15]+HEX_CHARS[g>>28&15]+HEX_CHARS[g>>24&15]},Md5.prototype.toString=Md5.prototype.hex,Md5.prototype.digest=function(p){if(p==="hex")return this.hex();this.finalize();var m=this.h0,c=this.h1,g=this.h2,o=this.h3,X=[m&255,m>>8&255,m>>16&255,m>>24&255,c&255,c>>8&255,c>>16&255,c>>24&255,g&255,g>>8&255,g>>16&255,g>>24&255,o&255,o>>8&255,o>>16&255,o>>24&255];return X},Md5.prototype.array=Md5.prototype.digest,Md5.prototype.arrayBuffer=function(){this.finalize();var p=new ArrayBuffer(16),m=new Uint32Array(p);return m[0]=this.h0,m[1]=this.h1,m[2]=this.h2,m[3]=this.h3,p},Md5.prototype.buffer=Md5.prototype.arrayBuffer,Md5.prototype.base64=function(){for(var p,m,c,g="",o=this.array(),X=0;X<15;)p=o[X++],m=o[X++],c=o[X++],g+=BASE64_ENCODE_CHAR[p>>>2]+BASE64_ENCODE_CHAR[(p<<4|m>>>4)&63]+BASE64_ENCODE_CHAR[(m<<2|c>>>6)&63]+BASE64_ENCODE_CHAR[c&63];return p=o[X],g+=BASE64_ENCODE_CHAR[p>>>2]+BASE64_ENCODE_CHAR[p<<4&63]+"==",g};var exports=createMethod();COMMON_JS?module.exports=exports:(root.md5=exports,AMD&&(__WEBPACK_AMD_DEFINE_RESULT__=function(){return exports}.call(exports,__nested_webpack_require_69768__,exports,module),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)))})()}).call(this,__nested_webpack_require_69768__("./node_modules/process/browser.js"),__nested_webpack_require_69768__("./node_modules/webpack/buildin/global.js"),__nested_webpack_require_69768__("./node_modules/webpack/buildin/module.js")(module))},"./lib/request.js":function(p,m,c){var g=c("./node_modules/@babel/runtime/helpers/typeof.js"),o=function(x){switch(g(x)){case"string":return x;case"boolean":return x?"true":"false";case"number":return isFinite(x)?x:"";default:return""}},X=function(x,q,F,z){return q=q||"&",F=F||"=",x===null&&(x=void 0),g(x)==="object"?Object.keys(x).map(function(I){var L=encodeURIComponent(o(I))+F;return Array.isArray(x[I])?x[I].map(function(J){return L+encodeURIComponent(o(J))}).join(q):L+encodeURIComponent(o(x[I]))}).filter(Boolean).join(q):z?encodeURIComponent(o(z))+F+encodeURIComponent(o(x)):""},k=function(x,q,F){var z={};return q.getAllResponseHeaders().trim().split(` -`).forEach(function(I){if(I){var L=I.indexOf(":"),J=I.substr(0,L).trim().toLowerCase(),U=I.substr(L+1).trim();z[J]=U}}),{error:x,statusCode:q.status,statusMessage:q.statusText,headers:z,body:F}},_=function(x,q){return!q&&q==="text"?x.responseText:x.response},ne=function(x,q){var F=(x.method||"GET").toUpperCase(),z=x.url;if(x.qs){var I=X(x.qs);I&&(z+=(z.indexOf("?")===-1?"?":"&")+I)}var L=new XMLHttpRequest;if(L.open(F,z,!0),L.responseType=x.dataType||"text",x.xhrFields)for(var J in x.xhrFields)L[J]=x.xhrFields[J];var U=x.headers;if(U)for(var ge in U)U.hasOwnProperty(ge)&&ge.toLowerCase()!=="content-length"&&ge.toLowerCase()!=="user-agent"&&ge.toLowerCase()!=="origin"&&ge.toLowerCase()!=="host"&&L.setRequestHeader(ge,U[ge]);return x.onProgress&&L.upload&&(L.upload.onprogress=x.onProgress),x.onDownloadProgress&&(L.onprogress=x.onDownloadProgress),x.timeout&&(L.timeout=x.timeout),L.ontimeout=function(w){var S=new Error("timeout");q(k(S,L))},L.onload=function(){q(k(null,L,_(L,x.dataType)))},L.onerror=function(w){var S=_(L,x.dataType);if(S)q(k(null,L,S));else{var y=L.statusText;!y&&L.status===0&&(y=new Error("CORS blocked or network error")),q(k(y,L,S))}},L.send(x.body||""),L};p.exports=ne},"./lib/xml2json.js":function(p,m,c){var g=c("./node_modules/@xmldom/xmldom/lib/index.js").DOMParser,o=function(){this.version="1.3.5";var k={mergeCDATA:!0,normalize:!0,stripElemPrefix:!0},_=new RegExp(/(?!xmlns)^.*:/),ne=new RegExp(/^\s+|\s+$/g);return this.grokType=function(O){return/^\s*$/.test(O)?null:/^(?:true|false)$/i.test(O)?O.toLowerCase()==="true":isFinite(O)?parseFloat(O):O},this.parseString=function(O,x){if(O){var q=this.stringToXML(O);return q.getElementsByTagName("parsererror").length?null:this.parseXML(q,x)}else return null},this.parseXML=function(O,x){for(var q in x)k[q]=x[q];var F={},z=0,I="",L=O.childNodes.length;if(L)for(var J,U,ge,w=0;w=S+y||S?new java.lang.String(w,S,y)+"":w}"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(w){I.prototype[w]=function(){return null}});function ge(w,S){w.currentElement?w.currentElement.appendChild(S):w.doc.appendChild(S)}m.__DOMHandler=I,m.normalizeLineEndings=q,m.DOMParser=F},"./node_modules/@xmldom/xmldom/lib/dom.js":function(p,m,c){var g=c("./node_modules/@xmldom/xmldom/lib/conventions.js"),o=g.find,X=g.NAMESPACE;function k(t){return t!==""}function _(t){return t?t.split(/[\t\n\f\r ]+/).filter(k):[]}function ne(t,n){return t.hasOwnProperty(n)||(t[n]=!0),t}function O(t){if(!t)return[];var n=_(t);return Object.keys(n.reduce(ne,{}))}function x(t){return function(n){return t&&t.indexOf(n)!==-1}}function q(t,n){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])}function F(t,n){var i=t.prototype;if(!(i instanceof n)){let j=function(){};var T=j;j.prototype=n.prototype,j=new j,q(i,j),t.prototype=i=j}i.constructor!=t&&(typeof t!="function"&&console.error("unknown Class:"+t),i.constructor=t)}var z={},I=z.ELEMENT_NODE=1,L=z.ATTRIBUTE_NODE=2,J=z.TEXT_NODE=3,U=z.CDATA_SECTION_NODE=4,ge=z.ENTITY_REFERENCE_NODE=5,w=z.ENTITY_NODE=6,S=z.PROCESSING_INSTRUCTION_NODE=7,y=z.COMMENT_NODE=8,K=z.DOCUMENT_NODE=9,h=z.DOCUMENT_TYPE_NODE=10,P=z.DOCUMENT_FRAGMENT_NODE=11,N=z.NOTATION_NODE=12,M={},Z={},b=M.INDEX_SIZE_ERR=(Z[1]="Index size error",1),H=M.DOMSTRING_SIZE_ERR=(Z[2]="DOMString size error",2),D=M.HIERARCHY_REQUEST_ERR=(Z[3]="Hierarchy request error",3),Q=M.WRONG_DOCUMENT_ERR=(Z[4]="Wrong document",4),$=M.INVALID_CHARACTER_ERR=(Z[5]="Invalid character",5),le=M.NO_DATA_ALLOWED_ERR=(Z[6]="No data allowed",6),ue=M.NO_MODIFICATION_ALLOWED_ERR=(Z[7]="No modification allowed",7),oe=M.NOT_FOUND_ERR=(Z[8]="Not found",8),te=M.NOT_SUPPORTED_ERR=(Z[9]="Not supported",9),re=M.INUSE_ATTRIBUTE_ERR=(Z[10]="Attribute in use",10),se=M.INVALID_STATE_ERR=(Z[11]="Invalid state",11),we=M.SYNTAX_ERR=(Z[12]="Syntax error",12),fe=M.INVALID_MODIFICATION_ERR=(Z[13]="Invalid modification",13),ee=M.NAMESPACE_ERR=(Z[14]="Invalid namespace",14),ye=M.INVALID_ACCESS_ERR=(Z[15]="Invalid access",15);function ie(t,n){if(n instanceof Error)var i=n;else i=this,Error.call(this,Z[t]),this.message=Z[t],Error.captureStackTrace&&Error.captureStackTrace(this,ie);return i.code=t,n&&(this.message=this.message+": "+n),i}ie.prototype=Error.prototype,q(M,ie);function de(){}de.prototype={length:0,item:function(t){return this[t]||null},toString:function(t,n){for(var i=[],T=0;T=0){for(var j=n.length-1;T0},lookupPrefix:function(t){for(var n=this;n;){var i=n._nsMap;if(i){for(var T in i)if(Object.prototype.hasOwnProperty.call(i,T)&&i[T]===t)return T}n=n.nodeType==L?n.ownerDocument:n.parentNode}return null},lookupNamespaceURI:function(t){for(var n=this;n;){var i=n._nsMap;if(i&&Object.prototype.hasOwnProperty.call(i,t))return i[t];n=n.nodeType==L?n.ownerDocument:n.parentNode}return null},isDefaultNamespace:function(t){var n=this.lookupPrefix(t);return n==null}};function E(t){return t=="<"&&"<"||t==">"&&">"||t=="&"&&"&"||t=='"'&&"""||"&#"+t.charCodeAt()+";"}q(z,V),q(z,V.prototype);function B(t,n){if(n(t))return!0;if(t=t.firstChild)do if(B(t,n))return!0;while(t=t.nextSibling)}function d(){this.ownerDocument=this}function s(t,n,i){t&&t._inc++;var T=i.namespaceURI;T===X.XMLNS&&(n._nsMap[i.prefix?i.localName:""]=i.value)}function u(t,n,i,T){t&&t._inc++;var j=i.namespaceURI;j===X.XMLNS&&delete n._nsMap[i.prefix?i.localName:""]}function a(t,n,i){if(t&&t._inc){t._inc++;var T=n.childNodes;if(i)T[T.length++]=i;else{for(var j=n.firstChild,Y=0;j;)T[Y++]=j,j=j.nextSibling;T.length=Y,delete T[T.length]}}}function v(t,n){var i=n.previousSibling,T=n.nextSibling;return i?i.nextSibling=T:t.firstChild=T,T?T.previousSibling=i:t.lastChild=i,n.parentNode=null,n.previousSibling=null,n.nextSibling=null,a(t.ownerDocument,t),n}function R(t){return t&&(t.nodeType===V.DOCUMENT_NODE||t.nodeType===V.DOCUMENT_FRAGMENT_NODE||t.nodeType===V.ELEMENT_NODE)}function A(t){return t&&(ce(t)||Se(t)||G(t)||t.nodeType===V.DOCUMENT_FRAGMENT_NODE||t.nodeType===V.COMMENT_NODE||t.nodeType===V.PROCESSING_INSTRUCTION_NODE)}function G(t){return t&&t.nodeType===V.DOCUMENT_TYPE_NODE}function ce(t){return t&&t.nodeType===V.ELEMENT_NODE}function Se(t){return t&&t.nodeType===V.TEXT_NODE}function W(t,n){var i=t.childNodes||[];if(o(i,ce)||G(n))return!1;var T=o(i,G);return!(n&&T&&i.indexOf(T)>i.indexOf(n))}function Oe(t,n){var i=t.childNodes||[];function T(Y){return ce(Y)&&Y!==n}if(o(i,T))return!1;var j=o(i,G);return!(n&&j&&i.indexOf(j)>i.indexOf(n))}function Re(t,n,i){if(!R(t))throw new ie(D,"Unexpected parent node type "+t.nodeType);if(i&&i.parentNode!==t)throw new ie(oe,"child not in parent");if(!A(n)||G(n)&&t.nodeType!==V.DOCUMENT_NODE)throw new ie(D,"Unexpected node type "+n.nodeType+" for parent node type "+t.nodeType)}function Ie(t,n,i){var T=t.childNodes||[],j=n.childNodes||[];if(n.nodeType===V.DOCUMENT_FRAGMENT_NODE){var Y=j.filter(ce);if(Y.length>1||o(j,Se))throw new ie(D,"More than one element or text in fragment");if(Y.length===1&&!W(t,i))throw new ie(D,"Element in fragment can not be inserted before doctype")}if(ce(n)&&!W(t,i))throw new ie(D,"Only one element can be added and only after doctype");if(G(n)){if(o(T,G))throw new ie(D,"Only one doctype is allowed");var ae=o(T,ce);if(i&&T.indexOf(ae)1||o(j,Se))throw new ie(D,"More than one element or text in fragment");if(Y.length===1&&!Oe(t,i))throw new ie(D,"Element in fragment can not be inserted before doctype")}if(ce(n)&&!Oe(t,i))throw new ie(D,"Only one element can be added and only after doctype");if(G(n)){let Be=function(Ue){return G(Ue)&&Ue!==i};var he=Be;if(o(T,Be))throw new ie(D,"Only one doctype is allowed");var ae=o(T,ce);if(i&&T.indexOf(ae)0&&B(i.documentElement,function(j){if(j!==i&&j.nodeType===I){var Y=j.getAttribute("class");if(Y){var ae=t===Y;if(!ae){var he=O(Y);ae=n.every(x(he))}ae&&T.push(j)}}}),T})},createElement:function(t){var n=new Fe;n.ownerDocument=this,n.nodeName=t,n.tagName=t,n.localName=t,n.childNodes=new de;var i=n.attributes=new Ce;return i._ownerElement=n,n},createDocumentFragment:function(){var t=new Ye;return t.ownerDocument=this,t.childNodes=new de,t},createTextNode:function(t){var n=new Ke;return n.ownerDocument=this,n.appendData(t),n},createComment:function(t){var n=new Xe;return n.ownerDocument=this,n.appendData(t),n},createCDATASection:function(t){var n=new ot;return n.ownerDocument=this,n.appendData(t),n},createProcessingInstruction:function(t,n){var i=new rt;return i.ownerDocument=this,i.tagName=i.target=t,i.nodeValue=i.data=n,i},createAttribute:function(t){var n=new He;return n.ownerDocument=this,n.name=t,n.nodeName=t,n.localName=t,n.specified=!0,n},createEntityReference:function(t){var n=new $e;return n.ownerDocument=this,n.nodeName=t,n},createElementNS:function(t,n){var i=new Fe,T=n.split(":"),j=i.attributes=new Ce;return i.childNodes=new de,i.ownerDocument=this,i.nodeName=n,i.tagName=n,i.namespaceURI=t,T.length==2?(i.prefix=T[0],i.localName=T[1]):i.localName=n,j._ownerElement=i,i},createAttributeNS:function(t,n){var i=new He,T=n.split(":");return i.ownerDocument=this,i.nodeName=n,i.name=n,i.namespaceURI=t,i.specified=!0,T.length==2?(i.prefix=T[0],i.localName=T[1]):i.localName=n,i}},F(d,V);function Fe(){this._nsMap={}}Fe.prototype={nodeType:I,hasAttribute:function(t){return this.getAttributeNode(t)!=null},getAttribute:function(t){var n=this.getAttributeNode(t);return n&&n.value||""},getAttributeNode:function(t){return this.attributes.getNamedItem(t)},setAttribute:function(t,n){var i=this.ownerDocument.createAttribute(t);i.value=i.nodeValue=""+n,this.setAttributeNode(i)},removeAttribute:function(t){var n=this.getAttributeNode(t);n&&this.removeAttributeNode(n)},appendChild:function(t){return t.nodeType===P?this.insertBefore(t,null):qe(this,t)},setAttributeNode:function(t){return this.attributes.setNamedItem(t)},setAttributeNodeNS:function(t){return this.attributes.setNamedItemNS(t)},removeAttributeNode:function(t){return this.attributes.removeNamedItem(t.nodeName)},removeAttributeNS:function(t,n){var i=this.getAttributeNodeNS(t,n);i&&this.removeAttributeNode(i)},hasAttributeNS:function(t,n){return this.getAttributeNodeNS(t,n)!=null},getAttributeNS:function(t,n){var i=this.getAttributeNodeNS(t,n);return i&&i.value||""},setAttributeNS:function(t,n,i){var T=this.ownerDocument.createAttributeNS(t,n);T.value=T.nodeValue=""+i,this.setAttributeNode(T)},getAttributeNodeNS:function(t,n){return this.attributes.getNamedItemNS(t,n)},getElementsByTagName:function(t){return new me(this,function(n){var i=[];return B(n,function(T){T!==n&&T.nodeType==I&&(t==="*"||T.tagName==t)&&i.push(T)}),i})},getElementsByTagNameNS:function(t,n){return new me(this,function(i){var T=[];return B(i,function(j){j!==i&&j.nodeType===I&&(t==="*"||j.namespaceURI===t)&&(n==="*"||j.localName==n)&&T.push(j)}),T})}},d.prototype.getElementsByTagName=Fe.prototype.getElementsByTagName,d.prototype.getElementsByTagNameNS=Fe.prototype.getElementsByTagNameNS,F(Fe,V);function He(){}He.prototype.nodeType=L,F(He,V);function Ne(){}Ne.prototype={data:"",substringData:function(t,n){return this.data.substring(t,t+n)},appendData:function(t){t=this.data+t,this.nodeValue=this.data=t,this.length=t.length},insertData:function(t,n){this.replaceData(t,0,n)},appendChild:function(t){throw new Error(Z[D])},deleteData:function(t,n){this.replaceData(t,n,"")},replaceData:function(t,n,i){var T=this.data.substring(0,t),j=this.data.substring(t+n);i=T+i+j,this.nodeValue=this.data=i,this.length=i.length}},F(Ne,V);function Ke(){}Ke.prototype={nodeName:"#text",nodeType:J,splitText:function(t){var n=this.data,i=n.substring(t);n=n.substring(0,t),this.data=this.nodeValue=n,this.length=n.length;var T=this.ownerDocument.createTextNode(i);return this.parentNode&&this.parentNode.insertBefore(T,this.nextSibling),T}},F(Ke,Ne);function Xe(){}Xe.prototype={nodeName:"#comment",nodeType:y},F(Xe,Ne);function ot(){}ot.prototype={nodeName:"#cdata-section",nodeType:U},F(ot,Ne);function Je(){}Je.prototype.nodeType=h,F(Je,V);function Qe(){}Qe.prototype.nodeType=N,F(Qe,V);function Ge(){}Ge.prototype.nodeType=w,F(Ge,V);function $e(){}$e.prototype.nodeType=ge,F($e,V);function Ye(){}Ye.prototype.nodeName="#document-fragment",Ye.prototype.nodeType=P,F(Ye,V);function rt(){}rt.prototype.nodeType=S,F(rt,V);function ve(){}ve.prototype.serializeToString=function(t,n,i){return Ze.call(t,n,i)},V.prototype.toString=Ze;function Ze(t,n){var i=[],T=this.nodeType==9&&this.documentElement||this,j=T.prefix,Y=T.namespaceURI;if(Y&&j==null){var j=T.lookupPrefix(Y);if(j==null)var ae=[{namespace:Y,prefix:null}]}return e(this,i,t,n,ae),i.join("")}function et(t,n,i){var T=t.prefix||"",j=t.namespaceURI;if(!j||T==="xml"&&j===X.XML||j===X.XMLNS)return!1;for(var Y=i.length;Y--;){var ae=i[Y];if(ae.prefix===T)return ae.namespace!==j}return!0}function it(t,n,i){t.push(" ",n,'="',i.replace(/[<>&"\t\n\r]/g,E),'"')}function e(t,n,i,T,j){if(j||(j=[]),T)if(t=T(t),t){if(typeof t=="string"){n.push(t);return}}else return;switch(t.nodeType){case I:var Y=t.attributes,ae=Y.length,he=t.firstChild,Be=t.tagName;i=X.isHTML(t.namespaceURI)||i;var Ue=Be;if(!i&&!t.prefix&&t.namespaceURI){for(var je,Ve=0;Ve=0;Le--){var ze=j[Le];if(ze.prefix===""&&ze.namespace===t.namespaceURI){je=ze.namespace;break}}if(je!==t.namespaceURI)for(var Le=j.length-1;Le>=0;Le--){var ze=j[Le];if(ze.namespace===t.namespaceURI){ze.prefix&&(Ue=ze.prefix+":"+Be);break}}}n.push("<",Ue);for(var be=0;be"),i&&/^script$/i.test(Be))for(;he;)he.data?n.push(he.data):e(he,n,i,T,j.slice()),he=he.nextSibling;else for(;he;)e(he,n,i,T,j.slice()),he=he.nextSibling;n.push("")}else n.push("/>");return;case K:case P:for(var he=t.firstChild;he;)e(he,n,i,T,j.slice()),he=he.nextSibling;return;case L:return it(n,t.name,t.value);case J:return n.push(t.data.replace(/[<&>]/g,E));case U:return n.push("");case y:return n.push("");case h:var We=t.publicId,tt=t.systemId;if(n.push("");else if(tt&&tt!=".")n.push(" SYSTEM ",tt,">");else{var nt=t.internalSubset;nt&&n.push(" [",nt,"]"),n.push(">")}return;case S:return n.push("");case ge:return n.push("&",t.nodeName,";");default:n.push("??",t.nodeName)}}function f(t,n,i){var T;switch(n.nodeType){case I:T=n.cloneNode(!1),T.ownerDocument=t;case P:break;case L:i=!0;break}if(T||(T=n.cloneNode(!1)),T.ownerDocument=t,T.parentNode=null,i)for(var j=n.firstChild;j;)T.appendChild(f(t,j,i)),j=j.nextSibling;return T}function r(t,n,i){var T=new n.constructor;for(var j in n)if(Object.prototype.hasOwnProperty.call(n,j)){var Y=n[j];typeof Y!="object"&&Y!=T[j]&&(T[j]=Y)}switch(n.childNodes&&(T.childNodes=new de),T.ownerDocument=t,T.nodeType){case I:var ae=n.attributes,he=T.attributes=new Ce,Be=ae.length;he._ownerElement=T;for(var Ue=0;Ue",lt:"<",quot:'"'}),m.HTML_ENTITIES=g({lt:"<",gt:">",amp:"&",quot:'"',apos:"'",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",times:"\xD7",divide:"\xF7",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02C6",tilde:"\u02DC",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203A",oline:"\u203E",euro:"\u20AC",trade:"\u2122",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666"}),m.entityMap=m.HTML_ENTITIES},"./node_modules/@xmldom/xmldom/lib/index.js":function(p,m,c){var g=c("./node_modules/@xmldom/xmldom/lib/dom.js");m.DOMImplementation=g.DOMImplementation,m.XMLSerializer=g.XMLSerializer,m.DOMParser=c("./node_modules/@xmldom/xmldom/lib/dom-parser.js").DOMParser},"./node_modules/@xmldom/xmldom/lib/sax.js":function(p,m,c){var g=c("./node_modules/@xmldom/xmldom/lib/conventions.js").NAMESPACE,o=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,X=new RegExp("[\\-\\.0-9"+o.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),k=new RegExp("^"+o.source+X.source+"*(?::"+o.source+X.source+"*)?$"),_=0,ne=1,O=2,x=3,q=4,F=5,z=6,I=7;function L(b,H){this.message=b,this.locator=H,Error.captureStackTrace&&Error.captureStackTrace(this,L)}L.prototype=new Error,L.prototype.name=L.name;function J(){}J.prototype={parse:function(b,H,D){var Q=this.domBuilder;Q.startDocument(),h(H,H={}),U(b,H,D,Q,this.errorHandler),Q.endDocument()}};function U(b,H,D,Q,$){function le(R){if(R>65535){R-=65536;var A=55296+(R>>10),G=56320+(R&1023);return String.fromCharCode(A,G)}else return String.fromCharCode(R)}function ue(R){var A=R.slice(1,-1);return Object.hasOwnProperty.call(D,A)?D[A]:A.charAt(0)==="#"?le(parseInt(A.substr(1).replace("x","0x"))):($.error("entity not found:"+R),R)}function oe(R){if(R>ie){var A=b.substring(ie,R).replace(/&#?\w+;/g,ue);fe&&te(ie),Q.characters(A,0,R-ie),ie=R}}function te(R,A){for(;R>=se&&(A=we.exec(b));)re=A.index,se=re+A[0].length,fe.lineNumber++;fe.columnNumber=R-re+1}for(var re=0,se=0,we=/.*(?:\r\n?|\n)|.*$/g,fe=Q.locator,ee=[{currentNSMap:H}],ye={},ie=0;;){try{var de=b.indexOf("<",ie);if(de<0){if(!b.substr(ie).match(/^\s*$/)){var me=Q.doc,pe=me.createTextNode(b.substr(ie));me.appendChild(pe),Q.currentElement=pe}return}switch(de>ie&&oe(de),b.charAt(de+1)){case"/":var Ce=b.indexOf(">",de+3),Ee=b.substring(de+2,Ce).replace(/[ \t\n\r]+$/g,""),Te=ee.pop();Ce<0?(Ee=b.substring(de+2).replace(/[\s<].*/,""),$.error("end tag name: "+Ee+" is not complete:"+Te.tagName),Ce=de+1+Ee.length):Ee.match(/\sie?ie=Ce:oe(Math.max(de,ie)+1)}}function ge(b,H){return H.lineNumber=b.lineNumber,H.columnNumber=b.columnNumber,H}function w(b,H,D,Q,$,le){function ue(ee,ye,ie){D.attributeNames.hasOwnProperty(ee)&&le.fatalError("Attribute "+ee+" redefined"),D.addValue(ee,ye.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,$),ie)}for(var oe,te,re=++H,se=_;;){var we=b.charAt(re);switch(we){case"=":if(se===ne)oe=b.slice(H,re),se=x;else if(se===O)se=x;else throw new Error("attribute equal must after attrName");break;case"'":case'"':if(se===x||se===ne)if(se===ne&&(le.warning('attribute value must after "="'),oe=b.slice(H,re)),H=re+1,re=b.indexOf(we,H),re>0)te=b.slice(H,re),ue(oe,te,H-1),se=F;else throw new Error("attribute value no end '"+we+"' match");else if(se==q)te=b.slice(H,re),ue(oe,te,H),le.warning('attribute "'+oe+'" missed start quot('+we+")!!"),H=re+1,se=F;else throw new Error('attribute value must after "="');break;case"/":switch(se){case _:D.setTagName(b.slice(H,re));case F:case z:case I:se=I,D.closed=!0;case q:case ne:case O:break;default:throw new Error("attribute invalid close char('/')")}break;case"":return le.error("unexpected end of input"),se==_&&D.setTagName(b.slice(H,re)),re;case">":switch(se){case _:D.setTagName(b.slice(H,re));case F:case z:case I:break;case q:case ne:te=b.slice(H,re),te.slice(-1)==="/"&&(D.closed=!0,te=te.slice(0,-1));case O:se===O&&(te=oe),se==q?(le.warning('attribute "'+te+'" missed quot(")!'),ue(oe,te,H)):((!g.isHTML(Q[""])||!te.match(/^(?:disabled|checked|selected)$/i))&&le.warning('attribute "'+te+'" missed value!! "'+te+'" instead!!'),ue(te,te,H));break;case x:throw new Error("attribute value missed!!")}return re;case"\x80":we=" ";default:if(we<=" ")switch(se){case _:D.setTagName(b.slice(H,re)),se=z;break;case ne:oe=b.slice(H,re),se=O;break;case q:var te=b.slice(H,re);le.warning('attribute "'+te+'" missed quot(")!!'),ue(oe,te,H);case F:se=z;break}else switch(se){case O:var fe=D.tagName;(!g.isHTML(Q[""])||!oe.match(/^(?:disabled|checked|selected)$/i))&&le.warning('attribute "'+oe+'" missed value!! "'+oe+'" instead2!!'),ue(oe,oe,H),H=re,se=ne;break;case F:le.warning('attribute space is required"'+oe+'"!!');case z:se=ne,H=re;break;case x:se=q,H=re;break;case I:throw new Error("elements closed character '/' and '>' must be connected to")}}re++}}function S(b,H,D){for(var Q=b.tagName,$=null,le=b.length;le--;){var ue=b[le],oe=ue.qName,te=ue.value,fe=oe.indexOf(":");if(fe>0)var re=ue.prefix=oe.slice(0,fe),se=oe.slice(fe+1),we=re==="xmlns"&&se;else se=oe,re=null,we=oe==="xmlns"&&"";ue.localName=se,we!==!1&&($==null&&($={},h(D,D={})),D[we]=$[we]=te,ue.uri=g.XMLNS,H.startPrefixMapping(we,te))}for(var le=b.length;le--;){ue=b[le];var re=ue.prefix;re&&(re==="xml"&&(ue.uri=g.XML),re!=="xmlns"&&(ue.uri=D[re||""]))}var fe=Q.indexOf(":");fe>0?(re=b.prefix=Q.slice(0,fe),se=b.localName=Q.slice(fe+1)):(re=null,se=b.localName=Q);var ee=b.uri=D[re||""];if(H.startElement(ee,se,Q,b),b.closed){if(H.endElement(ee,se,Q),$)for(re in $)Object.prototype.hasOwnProperty.call($,re)&&H.endPrefixMapping(re)}else return b.currentNSMap=D,b.localNSMap=$,!0}function y(b,H,D,Q,$){if(/^(?:script|textarea)$/i.test(D)){var le=b.indexOf("",H),ue=b.substring(H+1,le);if(/[&<]/.test(ue))return/^script$/i.test(D)?($.characters(ue,0,ue.length),le):(ue=ue.replace(/&#?\w+;/g,Q),$.characters(ue,0,ue.length),le)}return H+1}function K(b,H,D,Q){var $=Q[D];return $==null&&($=b.lastIndexOf(""),$",H+4);return le>H?(D.comment(b,H+4,le-H-4),le+3):(Q.error("Unclosed comment"),-1)}else return-1;default:if(b.substr(H+3,6)=="CDATA["){var le=b.indexOf("]]>",H+9);return D.startCDATA(),D.characters(b,H+9,le-H-9),D.endCDATA(),le+3}var ue=Z(b,H),oe=ue.length;if(oe>1&&/!doctype/i.test(ue[0][0])){var te=ue[1][0],re=!1,se=!1;oe>3&&(/^public$/i.test(ue[2][0])?(re=ue[3][0],se=oe>4&&ue[4][0]):/^system$/i.test(ue[2][0])&&(se=ue[3][0]));var we=ue[oe-1];return D.startDTD(te,re,se),D.endDTD(),we.index+we[0].length}}return-1}function N(b,H,D){var Q=b.indexOf("?>",H);if(Q){var $=b.substring(H,Q).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if($){var le=$[0].length;return D.processingInstruction($[1],$[2]),Q+2}else return-1}return-1}function M(){this.attributeNames={}}M.prototype={setTagName:function(b){if(!k.test(b))throw new Error("invalid tagName:"+b);this.tagName=b},addValue:function(b,H,D){if(!k.test(b))throw new Error("invalid attribute:"+b);this.attributeNames[b]=this.length,this[this.length++]={qName:b,value:H,offset:D}},length:0,getLocalName:function(b){return this[b].localName},getLocator:function(b){return this[b].locator},getQName:function(b){return this[b].qName},getURI:function(b){return this[b].uri},getValue:function(b){return this[b].value}};function Z(b,H){var D,Q=[],$=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for($.lastIndex=H,$.exec(b);D=$.exec(b);)if(Q.push(D),D[1])return Q}m.XMLReader=J,m.ParseError=L},"./node_modules/process/browser.js":function(p,m){var c=p.exports={},g,o;function X(){throw new Error("setTimeout has not been defined")}function k(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?g=setTimeout:g=X}catch(U){g=X}try{typeof clearTimeout=="function"?o=clearTimeout:o=k}catch(U){o=k}})();function _(U){if(g===setTimeout)return setTimeout(U,0);if((g===X||!g)&&setTimeout)return g=setTimeout,setTimeout(U,0);try{return g(U,0)}catch(ge){try{return g.call(null,U,0)}catch(w){return g.call(this,U,0)}}}function ne(U){if(o===clearTimeout)return clearTimeout(U);if((o===k||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(U);try{return o(U)}catch(ge){try{return o.call(null,U)}catch(w){return o.call(this,U)}}}var O=[],x=!1,q,F=-1;function z(){!x||!q||(x=!1,q.length?O=q.concat(O):F=-1,O.length&&I())}function I(){if(!x){var U=_(z);x=!0;for(var ge=O.length;ge;){for(q=O,O=[];++F1)for(var w=1;wue)return ie(null,!1);if(de>1){var me=Math.max(ye[0].Size,ye[1].Size);if(me!==le)return ie(null,!1)}var pe=function Ce(Ee){if(Ee=ie.length){fe.emit("has_and_check_upload_id",ee);return}var Ce=ie[pe];if(!_.isInArray(ee,Ce)){o.removeUploadId.call(D,Ce),me(pe+1);return}if(o.using[Ce]){me(pe+1);return}F.call(D,{Bucket:M,Region:Z,Key:b,UploadId:Ce,tracker:h.tracker},function(Ee,Te){!D._isRunningTask(N)||(Ee?(o.removeUploadId.call(D,Ce),me(pe+1)):fe.emit("upload_id_available",{UploadId:Ce,PartList:Te.PartList}))})};de(0)}),fe.on("get_remote_upload_id_list",function(){q.call(D,{Bucket:M,Region:Z,Key:b,tracker:h.tracker},function(ee,ye){if(!!D._isRunningTask(N)){if(ee)return fe.emit("error",ee);var ie=_.filter(ye.UploadList,function(pe){return pe.Key===b&&(!H||pe.StorageClass.toUpperCase()===H.toUpperCase())}).reverse().map(function(pe){return pe.UploadId||pe.UploadID});if(ie.length)fe.emit("seek_local_avail_upload_id",ie);else{var de=o.getFileId(h.Body,h.ChunkSize,M,b),me;de&&(me=o.getUploadIdList.call(D,de))&&_.each(me,function(pe){o.removeUploadId.call(D,pe)}),fe.emit("no_available_upload_id")}}})}),fe.emit("get_remote_upload_id_list")}function q(h,P){var N=this,M=[],Z={Bucket:h.Bucket,Region:h.Region,Prefix:h.Key,calledBySdk:h.calledBySdk||"sliceUploadFile",tracker:h.tracker},b=function H(){N.multipartList(Z,function(D,Q){if(D)return P(D);M.push.apply(M,Q.Upload||[]),Q.IsTruncated==="true"?(Z.KeyMarker=Q.NextKeyMarker,Z.UploadIdMarker=Q.NextUploadIdMarker,H()):P(null,{UploadList:M})})};b()}function F(h,P){var N=this,M=[],Z={Bucket:h.Bucket,Region:h.Region,Key:h.Key,UploadId:h.UploadId,calledBySdk:"sliceUploadFile",tracker:h.tracker},b=function H(){N.multipartListPart(Z,function(D,Q){if(D)return P(D);M.push.apply(M,Q.Part||[]),Q.IsTruncated==="true"?(Z.PartNumberMarker=Q.NextPartNumberMarker,H()):P(null,{PartList:M})})};b()}function z(h,P){var N=this,M=h.TaskId,Z=h.Bucket,b=h.Region,H=h.Key,D=h.UploadData,Q=h.FileSize,$=h.SliceSize,le=Math.min(h.AsyncLimit||N.options.ChunkParallelLimit||1,256),ue=h.Body,oe=Math.ceil(Q/$),te=0,re=h.ServerSideEncryption,se=h.Headers,we=_.filter(D.PartList,function(ee){return ee.Uploaded&&(te+=ee.PartNumber>=oe&&Q%$||$),!ee.Uploaded}),fe=h.onProgress;X.eachLimit(we,le,function(ee,ye){if(!!N._isRunningTask(M)){var ie=ee.PartNumber,de=Math.min(Q,ee.PartNumber*$)-(ee.PartNumber-1)*$,me=0;I.call(N,{TaskId:M,Bucket:Z,Region:b,Key:H,SliceSize:$,FileSize:Q,PartNumber:ie,ServerSideEncryption:re,Body:ue,UploadData:D,Headers:se,onProgress:function(Ce){te+=Ce.loaded-me,me=Ce.loaded,fe({loaded:te,total:Q})},tracker:h.tracker},function(pe,Ce){!N._isRunningTask(M)||(!pe&&!Ce.ETag&&(pe='get ETag error, please add "ETag" to CORS ExposeHeader setting.( \u83B7\u53D6ETag\u5931\u8D25\uFF0C\u8BF7\u5728CORS ExposeHeader\u8BBE\u7F6E\u4E2D\u6DFB\u52A0ETag\uFF0C\u8BF7\u53C2\u8003\u6587\u6863\uFF1Ahttps://cloud.tencent.com/document/product/436/13318 )'),pe?te-=me:(te+=de-me,ee.ETag=Ce.ETag),fe({loaded:te,total:Q}),ye(pe||null,Ce))})}},function(ee){if(!!N._isRunningTask(M)){if(ee)return P(ee);P(null,{UploadId:D.UploadId,SliceList:D.PartList})}})}function I(h,P){var N=this,M=h.TaskId,Z=h.Bucket,b=h.Region,H=h.Key,D=h.FileSize,Q=h.Body,$=h.PartNumber*1,le=h.SliceSize,ue=h.ServerSideEncryption,oe=h.UploadData,te=h.Headers||{},re=N.options.ChunkRetryTimes+1,se=le*($-1),we=le,fe=se+le;fe>D&&(fe=D,we=fe-se);var ee=["x-cos-traffic-limit","x-cos-mime-limit"],ye={};_.each(te,function(de,me){ee.indexOf(me)>-1&&(ye[me]=de)});var ie=oe.PartList[$-1];X.retry(re,function(de){!N._isRunningTask(M)||_.fileSlice(Q,se,fe,!0,function(me){N.multipartUpload({TaskId:M,Bucket:Z,Region:b,Key:H,ContentLength:we,PartNumber:$,UploadId:oe.UploadId,ServerSideEncryption:ue,Body:me,Headers:ye,onProgress:h.onProgress,calledBySdk:"sliceUploadFile",tracker:h.tracker},function(pe,Ce){if(!!N._isRunningTask(M))return pe?de(pe):(ie.Uploaded=!0,de(null,Ce))})})},function(de,me){if(!!N._isRunningTask(M))return P(de,me)})}function L(h,P){var N=h.Bucket,M=h.Region,Z=h.Key,b=h.UploadId,H=h.SliceList,D=this,Q=this.options.ChunkRetryTimes+1,$=h.Headers,le=H.map(function(ue){return{PartNumber:ue.PartNumber,ETag:ue.ETag}});X.retry(Q,function(ue){D.multipartComplete({Bucket:N,Region:M,Key:Z,UploadId:b,Parts:le,Headers:$,calledBySdk:"sliceUploadFile",tracker:h.tracker},ue)},function(ue,oe){P(ue,oe)})}function J(h,P){var N=h.Bucket,M=h.Region,Z=h.Key,b=h.UploadId,H=h.Level||"task",D=h.AsyncLimit,Q=this,$=new k;if($.on("error",function(le){return P(le)}),$.on("get_abort_array",function(le){U.call(Q,{Bucket:N,Region:M,Key:Z,Headers:h.Headers,AsyncLimit:D,AbortArray:le},P)}),H==="bucket")q.call(Q,{Bucket:N,Region:M,calledBySdk:"abortUploadTask"},function(le,ue){if(le)return P(le);$.emit("get_abort_array",ue.UploadList||[])});else if(H==="file"){if(!Z)return P(_.error(new Error("abort_upload_task_no_key")));q.call(Q,{Bucket:N,Region:M,Key:Z,calledBySdk:"abortUploadTask"},function(le,ue){if(le)return P(le);$.emit("get_abort_array",ue.UploadList||[])})}else if(H==="task"){if(!b)return P(_.error(new Error("abort_upload_task_no_id")));if(!Z)return P(_.error(new Error("abort_upload_task_no_key")));$.emit("get_abort_array",[{Key:Z,UploadId:b}])}else return P(_.error(new Error("abort_unknown_level")))}function U(h,P){var N=h.Bucket,M=h.Region,Z=h.Key,b=h.AbortArray,H=h.AsyncLimit||1,D=this,Q=0,$=new Array(b.length);X.eachLimit(b,H,function(le,ue){var oe=Q;if(Z&&Z!==le.Key){$[oe]={error:{KeyNotMatch:!0}},ue(null);return}var te=le.UploadId||le.UploadID;D.multipartAbort({Bucket:N,Region:M,Key:le.Key,Headers:h.Headers,UploadId:te},function(re){var se={Bucket:N,Region:M,Key:le.Key,UploadId:te};$[oe]={error:re,task:se},ue(null)}),Q++},function(le){if(le)return P(le);for(var ue=[],oe=[],te=0,re=$.length;teM?"sliceUploadFile":"putObject",oe=h.onFileFinish,te=function(se,we){h.tracker&&h.tracker.formatResult(se,we),oe&&oe(se,we,D),P&&P(se,we)};Z.push({api:ue,params:h,callback:te}),N._addTasks(Z)}function w(h,P){var N=this,M=h.SliceSize===void 0?N.options.SliceSize:h.SliceSize,Z=0,b=0,H=_.throttleOnProgress.call(N,b,h.onProgress),D=h.files.length,Q=h.onFileFinish,$=Array(D),le=function(te,re,se){H(null,!0),Q&&Q(te,re,se),$[se.Index]={options:se,error:te,data:re},--D<=0&&P&&P(null,{files:$})},ue=[];_.each(h.files,function(oe,te){(function(){var re=oe.Body,se=re.size||re.length||0,we={Index:te,TaskId:""};if(Z+=se,N.options.EnableTracker){var fe=N.options.UseAccelerate||typeof N.options.Domain=="string"&&N.options.Domain.includes("accelerate.");oe.tracker=new ne({bucket:oe.Bucket,region:oe.Region,apiName:"uploadFiles",fileKey:oe.Key,fileSize:se,accelerate:fe,deepTracker:N.options.DeepTracker,customId:N.options.CustomId,delay:N.options.TrackerDelay})}_.each(oe,function(Te,xe){g(Te)!=="object"&&typeof Te!="function"&&(we[xe]=Te)});var ee=oe.onTaskReady,ye=function(xe){we.TaskId=xe,ee&&ee(xe)};oe.onTaskReady=ye;var ie=0,de=oe.onProgress,me=function(xe){b=b-ie+xe.loaded,ie=xe.loaded,de&&de(xe),H({loaded:b,total:Z})};oe.onProgress=me;var pe=se>M?"sliceUploadFile":"putObject",Ce=oe.onFileFinish,Ee=function(xe,Ae){oe.tracker&&oe.tracker.formatResult(xe,Ae),Ce&&Ce(xe,Ae),le&&le(xe,Ae,we)};ue.push({api:pe,params:oe,callback:Ee})})()}),N._addTasks(ue)}function S(h,P){var N=new k,M=this,Z=h.Bucket,b=h.Region,H=h.Key,D=h.CopySource,Q=_.getSourceParams.call(this,D);if(!Q){P(_.error(new Error("CopySource format error")));return}var $=Q.Bucket,le=Q.Region,ue=decodeURIComponent(Q.Key),oe=h.CopySliceSize===void 0?M.options.CopySliceSize:h.CopySliceSize;oe=Math.max(0,oe);var te=h.CopyChunkSize||this.options.CopyChunkSize,re=this.options.CopyChunkParallelLimit,se=this.options.ChunkRetryTimes+1,we=0,fe=0,ee,ye,ie={},de={},me={};N.on("copy_slice_complete",function(pe){var Ce={};_.each(h.Headers,function(Te,xe){xe.toLowerCase().indexOf("x-cos-meta-")===0&&(Ce[xe]=Te)});var Ee=_.map(pe.PartList,function(Te){return{PartNumber:Te.PartNumber,ETag:Te.ETag}});X.retry(se,function(Te){M.multipartComplete({Bucket:Z,Region:b,Key:H,UploadId:pe.UploadId,Parts:Ee,calledBySdk:"sliceCopyFile"},Te)},function(Te,xe){if(o.removeUsing(pe.UploadId),Te)return ye(null,!0),P(Te);o.removeUploadId(pe.UploadId),ye({loaded:ee,total:ee},!0),P(null,xe)})}),N.on("get_copy_data_finish",function(pe){var Ce=o.getCopyFileId(D,ie,te,Z,H);Ce&&o.saveUploadId(Ce,pe.UploadId,M.options.UploadIdCacheLimit),o.setUsing(pe.UploadId);var Ee=_.filter(pe.PartList,function(Te){return Te.Uploaded&&(fe+=Te.PartNumber>=we&&ee%te||te),!Te.Uploaded});X.eachLimit(Ee,re,function(Te,xe){var Ae=Te.PartNumber,V=Te.CopySourceRange,E=Te.end-Te.start;X.retry(se,function(B){y.call(M,{Bucket:Z,Region:b,Key:H,CopySource:D,UploadId:pe.UploadId,PartNumber:Ae,CopySourceRange:V},B)},function(B,d){if(B)return xe(B);fe+=E,ye({loaded:fe,total:ee}),Te.ETag=d.ETag,xe(B||null,d)})},function(Te){if(Te)return o.removeUsing(pe.UploadId),ye(null,!0),P(Te);N.emit("copy_slice_complete",pe)})}),N.on("get_chunk_size_finish",function(){var pe=function(){M.multipartInit({Bucket:Z,Region:b,Key:H,Headers:me},function(Ae,V){if(Ae)return P(Ae);h.UploadId=V.UploadId,N.emit("get_copy_data_finish",{UploadId:h.UploadId,PartList:h.PartList})})},Ce=o.getCopyFileId(D,ie,te,Z,H),Ee=o.getUploadIdList(Ce);if(!Ce||!Ee)return pe();var Te=function xe(Ae){if(Ae>=Ee.length)return pe();var V=Ee[Ae];if(o.using[V])return xe(Ae+1);F.call(M,{Bucket:Z,Region:b,Key:H,UploadId:V},function(E,B){if(E)o.removeUploadId(V),xe(Ae+1);else{if(o.using[V])return xe(Ae+1);var d={},s=0;_.each(B.PartList,function(u){var a=parseInt(u.Size),v=s+a-1;d[u.PartNumber+"|"+s+"|"+v]=u.ETag,s+=a}),_.each(h.PartList,function(u){var a=d[u.PartNumber+"|"+u.start+"|"+u.end];a&&(u.ETag=a,u.Uploaded=!0)}),N.emit("get_copy_data_finish",{UploadId:V,PartList:h.PartList})}})};Te(0)}),N.on("get_file_size_finish",function(){if(function(){for(var Ce=[1,2,4,8,16,32,64,128,256,512,1024,1024*2,1024*4,1024*5],Ee=1024*1024,Te=0;TeAe.length&&(de[xe]=Te)}),N.emit("get_file_size_finish")}})}function y(h,P){var N=h.TaskId,M=h.Bucket,Z=h.Region,b=h.Key,H=h.CopySource,D=h.UploadId,Q=h.PartNumber*1,$=h.CopySourceRange,le=this.options.ChunkRetryTimes+1,ue=this;X.retry(le,function(oe){ue.uploadPartCopy({TaskId:N,Bucket:M,Region:Z,Key:b,CopySource:H,UploadId:D,PartNumber:Q,CopySourceRange:$},function(te,re){oe(te||null,re)})},function(oe,te){return P(oe,te)})}var K={sliceUploadFile:O,abortUploadTask:J,uploadFile:ge,uploadFiles:w,sliceCopyFile:S};p.exports.init=function(h,P){P.transferToTaskMethod(K,"sliceUploadFile"),_.each(K,function(N,M){h.prototype[M]=_.apiWrapper(M,N)})}},"./src/async.js":function(p,m){var c=function(k,_,ne,O){if(O=O||function(){},!k.length||_<=0)return O();var x=0,q=0,F=0;(function z(){if(x>=k.length)return O();for(;F<_&&q=k.length?O():z())})})()},g=function(k,_,ne){var O=function x(q){_(function(F,z){F&&q/ig,"<$1Rule>"),l=l.replace(/<(\/?)Tags>/ig,"<$1Tag>");var C=e.Headers;C["Content-Type"]="application/xml",C["Content-MD5"]=o.binaryBase64(o.md5(l)),ve.call(this,{Action:"name/cos:PutBucketReplication",method:"PUT",Bucket:e.Bucket,Region:e.Region,body:l,action:"replication",headers:C},function(t,n){if(t&&t.statusCode===204)return f(null,{statusCode:t.statusCode});if(t)return f(t);f(null,{statusCode:n.statusCode,headers:n.headers})})}function b(e,f){ve.call(this,{Action:"name/cos:GetBucketReplication",method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"replication"},function(r,l){if(r){if(r.statusCode===404&&r.error&&(r.error==="Not Found"||r.error.Code==="ReplicationConfigurationnotFoundError")){var C={ReplicationConfiguration:{Rules:[]},statusCode:r.statusCode};r.headers&&(C.headers=r.headers),f(null,C)}else f(r);return}!l.ReplicationConfiguration&&(l.ReplicationConfiguration={}),l.ReplicationConfiguration.Rule&&(l.ReplicationConfiguration.Rules=o.makeArray(l.ReplicationConfiguration.Rule),delete l.ReplicationConfiguration.Rule),f(r,l)})}function H(e,f){ve.call(this,{Action:"name/cos:DeleteBucketReplication",method:"DELETE",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"replication"},function(r,l){if(r&&r.statusCode===204)return f(null,{statusCode:r.statusCode});if(r)return f(r);f(null,{statusCode:l.statusCode,headers:l.headers})})}function D(e,f){if(!e.WebsiteConfiguration){f(o.error(new Error("missing param WebsiteConfiguration")));return}var r=o.clone(e.WebsiteConfiguration||{}),l=r.RoutingRules||r.RoutingRule||[];l=o.isArray(l)?l:[l],delete r.RoutingRule,delete r.RoutingRules,l.length&&(r.RoutingRules={RoutingRule:l});var C=o.json2xml({WebsiteConfiguration:r}),t=e.Headers;t["Content-Type"]="application/xml",t["Content-MD5"]=o.binaryBase64(o.md5(C)),ve.call(this,{Action:"name/cos:PutBucketWebsite",method:"PUT",Bucket:e.Bucket,Region:e.Region,body:C,action:"website",headers:t},function(n,i){if(n&&n.statusCode===204)return f(null,{statusCode:n.statusCode});if(n)return f(n);f(null,{statusCode:i.statusCode,headers:i.headers})})}function Q(e,f){ve.call(this,{Action:"name/cos:GetBucketWebsite",method:"GET",Bucket:e.Bucket,Region:e.Region,Key:e.Key,headers:e.Headers,action:"website"},function(r,l){if(r){if(r.statusCode===404&&r.error.Code==="NoSuchWebsiteConfiguration"){var C={WebsiteConfiguration:{},statusCode:r.statusCode};r.headers&&(C.headers=r.headers),f(null,C)}else f(r);return}var t=l.WebsiteConfiguration||{};if(t.RoutingRules){var n=o.clone(t.RoutingRules.RoutingRule||[]);n=o.makeArray(n),t.RoutingRules=n}f(null,{WebsiteConfiguration:t,statusCode:l.statusCode,headers:l.headers})})}function $(e,f){ve.call(this,{Action:"name/cos:DeleteBucketWebsite",method:"DELETE",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"website"},function(r,l){if(r&&r.statusCode===204)return f(null,{statusCode:r.statusCode});if(r)return f(r);f(null,{statusCode:l.statusCode,headers:l.headers})})}function le(e,f){if(!e.RefererConfiguration){f(o.error(new Error("missing param RefererConfiguration")));return}var r=o.clone(e.RefererConfiguration||{}),l=r.DomainList||{},C=l.Domains||l.Domain||[];C=o.isArray(C)?C:[C],C.length&&(r.DomainList={Domain:C});var t=o.json2xml({RefererConfiguration:r}),n=e.Headers;n["Content-Type"]="application/xml",n["Content-MD5"]=o.binaryBase64(o.md5(t)),ve.call(this,{Action:"name/cos:PutBucketReferer",method:"PUT",Bucket:e.Bucket,Region:e.Region,body:t,action:"referer",headers:n},function(i,T){if(i&&i.statusCode===204)return f(null,{statusCode:i.statusCode});if(i)return f(i);f(null,{statusCode:T.statusCode,headers:T.headers})})}function ue(e,f){ve.call(this,{Action:"name/cos:GetBucketReferer",method:"GET",Bucket:e.Bucket,Region:e.Region,Key:e.Key,headers:e.Headers,action:"referer"},function(r,l){if(r){if(r.statusCode===404&&r.error.Code==="NoSuchRefererConfiguration"){var C={WebsiteConfiguration:{},statusCode:r.statusCode};r.headers&&(C.headers=r.headers),f(null,C)}else f(r);return}var t=l.RefererConfiguration||{};if(t.DomainList){var n=o.makeArray(t.DomainList.Domain||[]);t.DomainList={Domains:n}}f(null,{RefererConfiguration:t,statusCode:l.statusCode,headers:l.headers})})}function oe(e,f){var r=e.DomainConfiguration||{},l=r.DomainRule||e.DomainRule||[];l=o.clone(l);var C=o.json2xml({DomainConfiguration:{DomainRule:l}}),t=e.Headers;t["Content-Type"]="application/xml",t["Content-MD5"]=o.binaryBase64(o.md5(C)),ve.call(this,{Action:"name/cos:PutBucketDomain",method:"PUT",Bucket:e.Bucket,Region:e.Region,body:C,action:"domain",headers:t},function(n,i){if(n&&n.statusCode===204)return f(null,{statusCode:n.statusCode});if(n)return f(n);f(null,{statusCode:i.statusCode,headers:i.headers})})}function te(e,f){ve.call(this,{Action:"name/cos:GetBucketDomain",method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"domain"},function(r,l){if(r)return f(r);var C=[];try{C=l.DomainConfiguration.DomainRule||[]}catch(t){}C=o.clone(o.isArray(C)?C:[C]),f(null,{DomainRule:C,statusCode:l.statusCode,headers:l.headers})})}function re(e,f){ve.call(this,{Action:"name/cos:DeleteBucketDomain",method:"DELETE",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"domain"},function(r,l){if(r&&r.statusCode===204)return f(null,{statusCode:r.statusCode});if(r)return f(r);f(null,{statusCode:l.statusCode,headers:l.headers})})}function se(e,f){var r=e.OriginConfiguration||{},l=r.OriginRule||e.OriginRule||[];l=o.clone(l);var C=o.json2xml({OriginConfiguration:{OriginRule:l}}),t=e.Headers;t["Content-Type"]="application/xml",t["Content-MD5"]=o.binaryBase64(o.md5(C)),ve.call(this,{Action:"name/cos:PutBucketOrigin",method:"PUT",Bucket:e.Bucket,Region:e.Region,body:C,action:"origin",headers:t},function(n,i){if(n&&n.statusCode===204)return f(null,{statusCode:n.statusCode});if(n)return f(n);f(null,{statusCode:i.statusCode,headers:i.headers})})}function we(e,f){ve.call(this,{Action:"name/cos:GetBucketOrigin",method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"origin"},function(r,l){if(r)return f(r);var C=[];try{C=l.OriginConfiguration.OriginRule||[]}catch(t){}C=o.clone(o.isArray(C)?C:[C]),f(null,{OriginRule:C,statusCode:l.statusCode,headers:l.headers})})}function fe(e,f){ve.call(this,{Action:"name/cos:DeleteBucketOrigin",method:"DELETE",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"origin"},function(r,l){if(r&&r.statusCode===204)return f(null,{statusCode:r.statusCode});if(r)return f(r);f(null,{statusCode:l.statusCode,headers:l.headers})})}function ee(e,f){var r=o.json2xml({BucketLoggingStatus:e.BucketLoggingStatus||""}),l=e.Headers;l["Content-Type"]="application/xml",l["Content-MD5"]=o.binaryBase64(o.md5(r)),ve.call(this,{Action:"name/cos:PutBucketLogging",method:"PUT",Bucket:e.Bucket,Region:e.Region,body:r,action:"logging",headers:l},function(C,t){if(C&&C.statusCode===204)return f(null,{statusCode:C.statusCode});if(C)return f(C);f(null,{statusCode:t.statusCode,headers:t.headers})})}function ye(e,f){ve.call(this,{Action:"name/cos:GetBucketLogging",method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"logging"},function(r,l){if(r)return f(r);f(null,{BucketLoggingStatus:l.BucketLoggingStatus,statusCode:l.statusCode,headers:l.headers})})}function ie(e,f){var r=o.clone(e.InventoryConfiguration);if(r.OptionalFields){var l=r.OptionalFields||[];r.OptionalFields={Field:l}}if(r.Destination&&r.Destination.COSBucketDestination&&r.Destination.COSBucketDestination.Encryption){var C=r.Destination.COSBucketDestination.Encryption;Object.keys(C).indexOf("SSECOS")>-1&&(C["SSE-COS"]=C.SSECOS,delete C.SSECOS)}var t=o.json2xml({InventoryConfiguration:r}),n=e.Headers;n["Content-Type"]="application/xml",n["Content-MD5"]=o.binaryBase64(o.md5(t)),ve.call(this,{Action:"name/cos:PutBucketInventory",method:"PUT",Bucket:e.Bucket,Region:e.Region,body:t,action:"inventory",qs:{id:e.Id},headers:n},function(i,T){if(i&&i.statusCode===204)return f(null,{statusCode:i.statusCode});if(i)return f(i);f(null,{statusCode:T.statusCode,headers:T.headers})})}function de(e,f){ve.call(this,{Action:"name/cos:GetBucketInventory",method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"inventory",qs:{id:e.Id}},function(r,l){if(r)return f(r);var C=l.InventoryConfiguration;if(C&&C.OptionalFields&&C.OptionalFields.Field){var t=C.OptionalFields.Field;o.isArray(t)||(t=[t]),C.OptionalFields=t}if(C.Destination&&C.Destination.COSBucketDestination&&C.Destination.COSBucketDestination.Encryption){var n=C.Destination.COSBucketDestination.Encryption;Object.keys(n).indexOf("SSE-COS")>-1&&(n.SSECOS=n["SSE-COS"],delete n["SSE-COS"])}f(null,{InventoryConfiguration:C,statusCode:l.statusCode,headers:l.headers})})}function me(e,f){ve.call(this,{Action:"name/cos:ListBucketInventory",method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"inventory",qs:{"continuation-token":e.ContinuationToken}},function(r,l){if(r)return f(r);var C=l.ListInventoryConfigurationResult,t=C.InventoryConfiguration||[];t=o.isArray(t)?t:[t],delete C.InventoryConfiguration,o.each(t,function(n){if(n&&n.OptionalFields&&n.OptionalFields.Field){var i=n.OptionalFields.Field;o.isArray(i)||(i=[i]),n.OptionalFields=i}if(n.Destination&&n.Destination.COSBucketDestination&&n.Destination.COSBucketDestination.Encryption){var T=n.Destination.COSBucketDestination.Encryption;Object.keys(T).indexOf("SSE-COS")>-1&&(T.SSECOS=T["SSE-COS"],delete T["SSE-COS"])}}),C.InventoryConfigurations=t,o.extend(C,{statusCode:l.statusCode,headers:l.headers}),f(null,C)})}function pe(e,f){ve.call(this,{Action:"name/cos:DeleteBucketInventory",method:"DELETE",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"inventory",qs:{id:e.Id}},function(r,l){if(r&&r.statusCode===204)return f(null,{statusCode:r.statusCode});if(r)return f(r);f(null,{statusCode:l.statusCode,headers:l.headers})})}function Ce(e,f){if(!e.AccelerateConfiguration){f(o.error(new Error("missing param AccelerateConfiguration")));return}var r={AccelerateConfiguration:e.AccelerateConfiguration||{}},l=o.json2xml(r),C={};C["Content-Type"]="application/xml",C["Content-MD5"]=o.binaryBase64(o.md5(l)),ve.call(this,{Action:"name/cos:PutBucketAccelerate",method:"PUT",Bucket:e.Bucket,Region:e.Region,body:l,action:"accelerate",headers:C},function(t,n){if(t)return f(t);f(null,{statusCode:n.statusCode,headers:n.headers})})}function Ee(e,f){ve.call(this,{Action:"name/cos:GetBucketAccelerate",method:"GET",Bucket:e.Bucket,Region:e.Region,action:"accelerate"},function(r,l){r||!l.AccelerateConfiguration&&(l.AccelerateConfiguration={}),f(r,l)})}function Te(e,f){var r=e.ServerSideEncryptionConfiguration||{},l=r.Rule||r.Rules||[],C=o.json2xml({ServerSideEncryptionConfiguration:{Rule:l}}),t=e.Headers;t["Content-Type"]="application/xml",t["Content-MD5"]=o.binaryBase64(o.md5(C)),ve.call(this,{Action:"name/cos:PutBucketEncryption",method:"PUT",Bucket:e.Bucket,Region:e.Region,body:C,action:"encryption",headers:t},function(n,i){if(n&&n.statusCode===204)return f(null,{statusCode:n.statusCode});if(n)return f(n);f(null,{statusCode:i.statusCode,headers:i.headers})})}function xe(e,f){ve.call(this,{Action:"name/cos:GetBucketEncryption",method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"encryption"},function(r,l){if(r){if(r.statusCode===404&&r.code==="NoSuchEncryptionConfiguration"){var C={EncryptionConfiguration:{Rules:[]},statusCode:r.statusCode};r.headers&&(C.headers=r.headers),f(null,C)}else f(r);return}var t=o.makeArray(l.EncryptionConfiguration&&l.EncryptionConfiguration.Rule||[]);l.EncryptionConfiguration={Rules:t},f(r,l)})}function Ae(e,f){ve.call(this,{Action:"name/cos:DeleteBucketReplication",method:"DELETE",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"encryption"},function(r,l){if(r&&r.statusCode===204)return f(null,{statusCode:r.statusCode});if(r)return f(r);f(null,{statusCode:l.statusCode,headers:l.headers})})}function V(e,f){ve.call(this,{Action:"name/cos:HeadObject",method:"HEAD",Bucket:e.Bucket,Region:e.Region,Key:e.Key,VersionId:e.VersionId,headers:e.Headers},function(r,l){if(r){var C=r.statusCode;return e.Headers["If-Modified-Since"]&&C&&C===304?f(null,{NotModified:!0,statusCode:C}):f(r)}l.ETag=o.attr(l.headers,"etag",""),f(null,l)})}function E(e,f){var r={};r.prefix=e.Prefix||"",r.delimiter=e.Delimiter,r["key-marker"]=e.KeyMarker,r["version-id-marker"]=e.VersionIdMarker,r["max-keys"]=e.MaxKeys,r["encoding-type"]=e.EncodingType,ve.call(this,{Action:"name/cos:GetBucketObjectVersions",ResourceKey:r.prefix,method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,qs:r,action:"versions"},function(l,C){if(l)return f(l);var t=C.ListVersionsResult||{},n=t.DeleteMarker||[];n=o.isArray(n)?n:[n];var i=t.Version||[];i=o.isArray(i)?i:[i];var T=o.clone(t);delete T.DeleteMarker,delete T.Version,o.extend(T,{DeleteMarkers:n,Versions:i,statusCode:C.statusCode,headers:C.headers}),f(null,T)})}function B(e,f){var r=e.Query||{},l=e.QueryString||"",C=o.throttleOnProgress.call(this,0,e.onProgress),t=e.tracker;t&&t.setParams({signStartTime:new Date().getTime()}),r["response-content-type"]=e.ResponseContentType,r["response-content-language"]=e.ResponseContentLanguage,r["response-expires"]=e.ResponseExpires,r["response-cache-control"]=e.ResponseCacheControl,r["response-content-disposition"]=e.ResponseContentDisposition,r["response-content-encoding"]=e.ResponseContentEncoding,ve.call(this,{Action:"name/cos:GetObject",method:"GET",Bucket:e.Bucket,Region:e.Region,Key:e.Key,VersionId:e.VersionId,DataType:e.DataType,headers:e.Headers,qs:r,qsStr:l,rawBody:!0,onDownloadProgress:C,tracker:t},function(n,i){if(C(null,!0),n){var T=n.statusCode;return e.Headers["If-Modified-Since"]&&T&&T===304?f(null,{NotModified:!0}):f(n)}f(null,{Body:i.body,ETag:o.attr(i.headers,"etag",""),statusCode:i.statusCode,headers:i.headers})})}function d(e,f){var r=this,l=e.ContentLength,C=o.throttleOnProgress.call(r,l,e.onProgress),t=e.Headers;!t["Cache-Control"]&&!t["cache-control"]&&(t["Cache-Control"]=""),!t["Content-Type"]&&!t["content-type"]&&(t["Content-Type"]=e.Body&&e.Body.type||"");var n=e.UploadAddMetaMd5||r.options.UploadAddMetaMd5||r.options.UploadCheckContentMd5,i=e.tracker;n&&i&&i.setParams({md5StartTime:new Date().getTime()}),o.getBodyMd5(n,e.Body,function(T){T&&(i&&i.setParams({md5EndTime:new Date().getTime()}),r.options.UploadCheckContentMd5&&(t["Content-MD5"]=o.binaryBase64(T)),(e.UploadAddMetaMd5||r.options.UploadAddMetaMd5)&&(t["x-cos-meta-md5"]=T)),e.ContentLength!==void 0&&(t["Content-Length"]=e.ContentLength),C(null,!0),ve.call(r,{Action:"name/cos:PutObject",TaskId:e.TaskId,method:"PUT",Bucket:e.Bucket,Region:e.Region,Key:e.Key,headers:e.Headers,qs:e.Query,body:e.Body,onProgress:C,tracker:i},function(j,Y){if(j)return C(null,!0),f(j);C({loaded:l,total:l},!0);var ae=Ge({ForcePathStyle:r.options.ForcePathStyle,protocol:r.options.Protocol,domain:r.options.Domain,bucket:e.Bucket,region:r.options.UseAccelerate?"accelerate":e.Region,object:e.Key});ae=ae.substr(ae.indexOf("://")+3),Y.Location=ae,Y.ETag=o.attr(Y.headers,"etag",""),f(null,Y)})},e.onHashProgress)}function s(e,f){ve.call(this,{Action:"name/cos:DeleteObject",method:"DELETE",Bucket:e.Bucket,Region:e.Region,Key:e.Key,headers:e.Headers,VersionId:e.VersionId,action:e.Recursive?"recursive":""},function(r,l){if(r){var C=r.statusCode;return C&&C===404?f(null,{BucketNotFound:!0,statusCode:C}):f(r)}f(null,{statusCode:l.statusCode,headers:l.headers})})}function u(e,f){var r={};e.VersionId&&(r.versionId=e.VersionId),ve.call(this,{Action:"name/cos:GetObjectACL",method:"GET",Bucket:e.Bucket,Region:e.Region,Key:e.Key,headers:e.Headers,qs:r,action:"acl"},function(l,C){if(l)return f(l);var t=C.AccessControlPolicy||{},n=t.Owner||{},i=t.AccessControlList&&t.AccessControlList.Grant||[];i=o.isArray(i)?i:[i];var T=Je(t);delete T.GrantWrite,C.headers&&C.headers["x-cos-acl"]&&(T.ACL=C.headers["x-cos-acl"]),T=o.extend(T,{Owner:n,Grants:i,statusCode:C.statusCode,headers:C.headers}),f(null,T)})}function a(e,f){var r=e.Headers,l="";if(e.AccessControlPolicy){var C=o.clone(e.AccessControlPolicy||{}),t=C.Grants||C.Grant;t=o.isArray(t)?t:[t],delete C.Grant,delete C.Grants,C.AccessControlList={Grant:t},l=o.json2xml({AccessControlPolicy:C}),r["Content-Type"]="application/xml",r["Content-MD5"]=o.binaryBase64(o.md5(l))}o.each(r,function(n,i){i.indexOf("x-cos-grant-")===0&&(r[i]=Qe(r[i]))}),ve.call(this,{Action:"name/cos:PutObjectACL",method:"PUT",Bucket:e.Bucket,Region:e.Region,Key:e.Key,action:"acl",headers:r,body:l},function(n,i){if(n)return f(n);f(null,{statusCode:i.statusCode,headers:i.headers})})}function v(e,f){var r=e.Headers;r.Origin=e.Origin,r["Access-Control-Request-Method"]=e.AccessControlRequestMethod,r["Access-Control-Request-Headers"]=e.AccessControlRequestHeaders,ve.call(this,{Action:"name/cos:OptionsObject",method:"OPTIONS",Bucket:e.Bucket,Region:e.Region,Key:e.Key,headers:r},function(l,C){if(l)return l.statusCode&&l.statusCode===403?f(null,{OptionsForbidden:!0,statusCode:l.statusCode}):f(l);var t=C.headers||{};f(null,{AccessControlAllowOrigin:t["access-control-allow-origin"],AccessControlAllowMethods:t["access-control-allow-methods"],AccessControlAllowHeaders:t["access-control-allow-headers"],AccessControlExposeHeaders:t["access-control-expose-headers"],AccessControlMaxAge:t["access-control-max-age"],statusCode:C.statusCode,headers:C.headers})})}function R(e,f){var r=this,l=e.Headers;!l["Cache-Control"]&&!l["cache-control"]&&(l["Cache-Control"]="");var C=e.CopySource||"",t=o.getSourceParams.call(this,C);if(!t){f(o.error(new Error("CopySource format error")));return}var n=t.Bucket,i=t.Region,T=decodeURIComponent(t.Key);ve.call(this,{Scope:[{action:"name/cos:GetObject",bucket:n,region:i,prefix:T},{action:"name/cos:PutObject",bucket:e.Bucket,region:e.Region,prefix:e.Key}],method:"PUT",Bucket:e.Bucket,Region:e.Region,Key:e.Key,VersionId:e.VersionId,headers:e.Headers},function(j,Y){if(j)return f(j);var ae=o.clone(Y.CopyObjectResult||{}),he=Ge({ForcePathStyle:r.options.ForcePathStyle,protocol:r.options.Protocol,domain:r.options.Domain,bucket:e.Bucket,region:e.Region,object:e.Key,isLocation:!0});o.extend(ae,{Location:he,statusCode:Y.statusCode,headers:Y.headers}),f(null,ae)})}function A(e,f){var r=e.CopySource||"",l=o.getSourceParams.call(this,r);if(!l){f(o.error(new Error("CopySource format error")));return}var C=l.Bucket,t=l.Region,n=decodeURIComponent(l.Key);ve.call(this,{Scope:[{action:"name/cos:GetObject",bucket:C,region:t,prefix:n},{action:"name/cos:PutObject",bucket:e.Bucket,region:e.Region,prefix:e.Key}],method:"PUT",Bucket:e.Bucket,Region:e.Region,Key:e.Key,VersionId:e.VersionId,qs:{partNumber:e.PartNumber,uploadId:e.UploadId},headers:e.Headers},function(i,T){if(i)return f(i);var j=o.clone(T.CopyPartResult||{});o.extend(j,{statusCode:T.statusCode,headers:T.headers}),f(null,j)})}function G(e,f){var r=e.Objects||[],l=e.Quiet;r=o.isArray(r)?r:[r];var C=o.json2xml({Delete:{Object:r,Quiet:l||!1}}),t=e.Headers;t["Content-Type"]="application/xml",t["Content-MD5"]=o.binaryBase64(o.md5(C));var n=o.map(r,function(i){return{action:"name/cos:DeleteObject",bucket:e.Bucket,region:e.Region,prefix:i.Key}});ve.call(this,{Scope:n,method:"POST",Bucket:e.Bucket,Region:e.Region,body:C,action:"delete",headers:t},function(i,T){if(i)return f(i);var j=T.DeleteResult||{},Y=j.Deleted||[],ae=j.Error||[];Y=o.isArray(Y)?Y:[Y],ae=o.isArray(ae)?ae:[ae];var he=o.clone(j);o.extend(he,{Error:ae,Deleted:Y,statusCode:T.statusCode,headers:T.headers}),f(null,he)})}function ce(e,f){var r=e.Headers;if(!e.RestoreRequest){f(o.error(new Error("missing param RestoreRequest")));return}var l=e.RestoreRequest||{},C=o.json2xml({RestoreRequest:l});r["Content-Type"]="application/xml",r["Content-MD5"]=o.binaryBase64(o.md5(C)),ve.call(this,{Action:"name/cos:RestoreObject",method:"POST",Bucket:e.Bucket,Region:e.Region,Key:e.Key,VersionId:e.VersionId,body:C,action:"restore",headers:r},f)}function Se(e,f){var r=e.Tagging||{},l=r.TagSet||r.Tags||e.Tags||[];l=o.clone(o.isArray(l)?l:[l]);var C=o.json2xml({Tagging:{TagSet:{Tag:l}}}),t=e.Headers;t["Content-Type"]="application/xml",t["Content-MD5"]=o.binaryBase64(o.md5(C)),ve.call(this,{Action:"name/cos:PutObjectTagging",method:"PUT",Bucket:e.Bucket,Key:e.Key,Region:e.Region,body:C,action:"tagging",headers:t,VersionId:e.VersionId},function(n,i){if(n&&n.statusCode===204)return f(null,{statusCode:n.statusCode});if(n)return f(n);f(null,{statusCode:i.statusCode,headers:i.headers})})}function W(e,f){ve.call(this,{Action:"name/cos:GetObjectTagging",method:"GET",Key:e.Key,Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"tagging",VersionId:e.VersionId},function(r,l){if(r){if(r.statusCode===404&&r.error&&(r.error==="Not Found"||r.error.Code==="NoSuchTagSet")){var C={Tags:[],statusCode:r.statusCode};r.headers&&(C.headers=r.headers),f(null,C)}else f(r);return}var t=[];try{t=l.Tagging.TagSet.Tag||[]}catch(n){}t=o.clone(o.isArray(t)?t:[t]),f(null,{Tags:t,statusCode:l.statusCode,headers:l.headers})})}function Oe(e,f){ve.call(this,{Action:"name/cos:DeleteObjectTagging",method:"DELETE",Bucket:e.Bucket,Region:e.Region,Key:e.Key,headers:e.Headers,action:"tagging",VersionId:e.VersionId},function(r,l){if(r&&r.statusCode===204)return f(null,{statusCode:r.statusCode});if(r)return f(r);f(null,{statusCode:l.statusCode,headers:l.headers})})}function Re(e,f){var r=e.SelectType;if(!r)return f(o.error(new Error("missing param SelectType")));var l=e.SelectRequest||{},C=o.json2xml({SelectRequest:l}),t=e.Headers;t["Content-Type"]="application/xml",t["Content-MD5"]=o.binaryBase64(o.md5(C)),ve.call(this,{Action:"name/cos:GetObject",method:"POST",Bucket:e.Bucket,Region:e.Region,Key:e.Key,headers:e.Headers,action:"select",qs:{"select-type":e.SelectType},VersionId:e.VersionId,body:C,DataType:"arraybuffer",rawBody:!0},function(n,i){if(n&&n.statusCode===204)return f(null,{statusCode:n.statusCode});if(n)return f(n);var T=o.parseSelectPayload(i.body);f(null,{statusCode:i.statusCode,headers:i.headers,Body:T.body,Payload:T.payload})})}function Ie(e,f){var r=this,l=e.Headers,C=e.tracker;!l["Cache-Control"]&&!l["cache-control"]&&(l["Cache-Control"]=""),!l["Content-Type"]&&!l["content-type"]&&(l["Content-Type"]=e.Body&&e.Body.type||"");var t=e.Body&&(e.UploadAddMetaMd5||r.options.UploadAddMetaMd5);t&&C&&C.setParams({md5StartTime:new Date().getTime()}),o.getBodyMd5(t,e.Body,function(n){n&&(e.Headers["x-cos-meta-md5"]=n),t&&C&&C.setParams({md5EndTime:new Date().getTime()}),ve.call(r,{Action:"name/cos:InitiateMultipartUpload",method:"POST",Bucket:e.Bucket,Region:e.Region,Key:e.Key,action:"uploads",headers:e.Headers,qs:e.Query,tracker:C},function(i,T){if(i)return C&&C.parent&&C.parent.setParams({errorNode:"multipartInit"}),f(i);if(T=o.clone(T||{}),T&&T.InitiateMultipartUploadResult)return f(null,o.extend(T.InitiateMultipartUploadResult,{statusCode:T.statusCode,headers:T.headers}));f(null,T)})},e.onHashProgress)}function De(e,f){var r=this;o.getFileSize("multipartUpload",e,function(){var l=e.tracker,C=r.options.UploadCheckContentMd5;C&&l&&l.setParams({md5StartTime:new Date().getTime()}),o.getBodyMd5(C,e.Body,function(t){t&&(e.Headers["Content-MD5"]=o.binaryBase64(t)),C&&l&&l.setParams({md5EndTime:new Date().getTime()}),l&&l.setParams({partNumber:e.PartNumber}),ve.call(r,{Action:"name/cos:UploadPart",TaskId:e.TaskId,method:"PUT",Bucket:e.Bucket,Region:e.Region,Key:e.Key,qs:{partNumber:e.PartNumber,uploadId:e.UploadId},headers:e.Headers,onProgress:e.onProgress,body:e.Body||null,tracker:l},function(n,i){if(n)return l&&l.parent&&l.parent.setParams({errorNode:"multipartUpload"}),f(n);f(null,{ETag:o.attr(i.headers,"etag",""),statusCode:i.statusCode,headers:i.headers})})})})}function Me(e,f){for(var r=this,l=e.UploadId,C=e.Parts,t=e.tracker,n=0,i=C.length;n-1?ae(Y.Authorization):"sign="+encodeURIComponent(Y.Authorization)),Y.SecurityToken&&(he+="&x-cos-security-token="+Y.SecurityToken),Y.ClientIP&&(he+="&clientIP="+Y.ClientIP),Y.ClientUA&&(he+="&clientUA="+Y.ClientUA),Y.Token&&(he+="&token="+Y.Token),t&&(he+="&"+t),setTimeout(function(){f(null,{Url:he})})}});return T?(n+="?"+T.Authorization+(T.SecurityToken?"&x-cos-security-token="+T.SecurityToken:""),t&&(n+="&"+t)):t&&(n+="?"+t),n}function Je(e){var f={GrantFullControl:[],GrantWrite:[],GrantRead:[],GrantReadAcp:[],GrantWriteAcp:[],ACL:""},r={FULL_CONTROL:"GrantFullControl",WRITE:"GrantWrite",READ:"GrantRead",READ_ACP:"GrantReadAcp",WRITE_ACP:"GrantWriteAcp"},l=e&&e.AccessControlList||{},C=l.Grant;C&&(C=o.isArray(C)?C:[C]);var t={READ:0,WRITE:0,FULL_CONTROL:0};return C&&C.length&&o.each(C,function(n){n.Grantee.ID==="qcs::cam::anyone:anyone"||n.Grantee.URI==="http://cam.qcloud.com/groups/global/AllUsers"?t[n.Permission]=1:n.Grantee.ID!==e.Owner.ID&&f[r[n.Permission]].push('id="'+n.Grantee.ID+'"')}),t.FULL_CONTROL||t.WRITE&&t.READ?f.ACL="public-read-write":t.READ?f.ACL="public-read":f.ACL="private",o.each(r,function(n){f[n]=Qe(f[n].join(","))}),f}function Qe(e){var f=e.split(","),r={},l,C;for(l=0;l-1?t="{Region}.myqcloud.com":t="cos.{Region}.myqcloud.com",e.ForcePathStyle||(t="{Bucket}."+t)),t=t.replace(/\{\{AppId\}\}/ig,C).replace(/\{\{Bucket\}\}/ig,l).replace(/\{\{Region\}\}/ig,f).replace(/\{\{.*?\}\}/ig,""),t=t.replace(/\{AppId\}/ig,C).replace(/\{BucketName\}/ig,l).replace(/\{Bucket\}/ig,r).replace(/\{Region\}/ig,f).replace(/\{.*?\}/ig,""),/^[a-zA-Z]+:\/\//.test(t)||(t=i+"//"+t),t.slice(-1)==="/"&&(t=t.slice(0,-1));var T=t;return e.ForcePathStyle&&(T+="/"+r),T+="/",n&&(T+=o.camSafeUrlEncode(n).replace(/%2F/g,"/")),e.isLocation&&(T=T.replace(/^https?:\/\//,"")),T}var $e=function(f){if(!f.Bucket||!f.Region)return"";var r=f.UseAccelerate===void 0?this.options.UseAccelerate:f.UseAccelerate,l=f.Url||Ge({ForcePathStyle:this.options.ForcePathStyle,protocol:this.options.Protocol,domain:this.options.Domain,bucket:f.Bucket,region:r?"accelerate":f.Region}),C=l.replace(/^https?:\/\/([^/]+)(\/.*)?$/,"$1"),t=new RegExp("^([a-z\\d-]+-\\d+\\.)?(cos|cosv6|ci|pic)\\.([a-z\\d-]+)\\.myqcloud\\.com$");return t.test(C)?C:""};function Ye(e,f){var r=o.clone(e.Headers),l="";o.each(r,function(be,ke){(be===""||["content-type","cache-control","expires"].indexOf(ke.toLowerCase())>-1)&&delete r[ke],ke.toLowerCase()==="host"&&(l=be)});var C=e.ForceSignHost!==!1;!l&&e.SignHost&&C&&(r.Host=e.SignHost);var t=!1,n=function(ke,_e){t||(t=!0,_e&&_e.XCosSecurityToken&&!_e.SecurityToken&&(_e=o.clone(_e),_e.SecurityToken=_e.XCosSecurityToken,delete _e.XCosSecurityToken),f&&f(ke,_e))},i=this,T=e.Bucket||"",j=e.Region||"",Y=e.Key||"";i.options.ForcePathStyle&&T&&(Y=T+"/"+Y);var ae="/"+Y,he={},Be=e.Scope;if(!Be){var Ue=e.Action||"",je=e.ResourceKey||e.Key||"";Be=e.Scope||[{action:Ue,bucket:T,region:j,prefix:je}]}var Ve=o.md5(JSON.stringify(Be));i._StsCache=i._StsCache||[],function(){var be,ke;for(be=i._StsCache.length-1;be>=0;be--){ke=i._StsCache[be];var _e=Math.round(o.getSkewTime(i.options.SystemClockOffset)/1e3)+30;if(ke.StartTime&&_e=ke.ExpiredTime){i._StsCache.splice(be,1);continue}if(!ke.ScopeLimit||ke.ScopeLimit&&ke.ScopeKey===Ve){he=ke;break}}}();var Le=function(){var ke="";he.StartTime&&e.Expires?ke=he.StartTime+";"+(he.StartTime+e.Expires*1):he.StartTime&&he.ExpiredTime&&(ke=he.StartTime+";"+he.ExpiredTime);var _e=o.getAuth({SecretId:he.TmpSecretId,SecretKey:he.TmpSecretKey,Method:e.Method,Pathname:ae,Query:e.Query,Headers:r,Expires:e.Expires,UseRawKey:i.options.UseRawKey,SystemClockOffset:i.options.SystemClockOffset,KeyTime:ke,ForceSignHost:C}),Pe={Authorization:_e,SecurityToken:he.SecurityToken||he.XCosSecurityToken||"",Token:he.Token||"",ClientIP:he.ClientIP||"",ClientUA:he.ClientUA||""};n(null,Pe)},ze=function(ke){if(ke.Authorization){var _e=!1,Pe=ke.Authorization;if(Pe)if(Pe.indexOf(" ")>-1)_e=!1;else if(Pe.indexOf("q-sign-algorithm=")>-1&&Pe.indexOf("q-ak=")>-1&&Pe.indexOf("q-sign-time=")>-1&&Pe.indexOf("q-key-time=")>-1&&Pe.indexOf("q-url-param-list=")>-1)_e=!0;else try{Pe=atob(Pe),Pe.indexOf("a=")>-1&&Pe.indexOf("k=")>-1&&Pe.indexOf("t=")>-1&&Pe.indexOf("r=")>-1&&Pe.indexOf("b=")>-1&&(_e=!0)}catch(We){}if(!_e)return o.error(new Error("getAuthorization callback params format error"))}else{if(!ke.TmpSecretId)return o.error(new Error('getAuthorization callback params missing "TmpSecretId"'));if(!ke.TmpSecretKey)return o.error(new Error('getAuthorization callback params missing "TmpSecretKey"'));if(!ke.SecurityToken&&!ke.XCosSecurityToken)return o.error(new Error('getAuthorization callback params missing "SecurityToken"'));if(!ke.ExpiredTime)return o.error(new Error('getAuthorization callback params missing "ExpiredTime"'));if(ke.ExpiredTime&&ke.ExpiredTime.toString().length!==10)return o.error(new Error('getAuthorization callback params "ExpiredTime" should be 10 digits'));if(ke.StartTime&&ke.StartTime.toString().length!==10)return o.error(new Error('getAuthorization callback params "StartTime" should be 10 StartTime'))}return!1};if(he.ExpiredTime&&he.ExpiredTime-o.getSkewTime(i.options.SystemClockOffset)/1e3>60)Le();else if(i.options.getAuthorization)i.options.getAuthorization.call(i,{Bucket:T,Region:j,Method:e.Method,Key:Y,Pathname:ae,Query:e.Query,Headers:r,Scope:Be,SystemClockOffset:i.options.SystemClockOffset,ForceSignHost:C},function(be){typeof be=="string"&&(be={Authorization:be});var ke=ze(be);if(ke)return n(ke);be.Authorization?n(null,be):(he=be||{},he.Scope=Be,he.ScopeKey=Ve,i._StsCache.push(he),Le())});else if(i.options.getSTS)i.options.getSTS.call(i,{Bucket:T,Region:j},function(be){he=be||{},he.Scope=Be,he.ScopeKey=Ve,he.TmpSecretId||(he.TmpSecretId=he.SecretId),he.TmpSecretKey||(he.TmpSecretKey=he.SecretKey);var ke=ze(he);if(ke)return n(ke);i._StsCache.push(he),Le()});else return function(){var be=o.getAuth({SecretId:e.SecretId||i.options.SecretId,SecretKey:e.SecretKey||i.options.SecretKey,Method:e.Method,Pathname:ae,Query:e.Query,Headers:r,Expires:e.Expires,UseRawKey:i.options.UseRawKey,SystemClockOffset:i.options.SystemClockOffset,ForceSignHost:C}),ke={Authorization:be,SecurityToken:i.options.SecurityToken||i.options.XCosSecurityToken};return n(null,ke),ke}();return""}function rt(e){var f=!1,r=!1,l=e.headers&&(e.headers.date||e.headers.Date)||e.error&&e.error.ServerTime;try{var C=e.error.Code,t=e.error.Message;(C==="RequestTimeTooSkewed"||C==="AccessDenied"&&t==="Request has expired")&&(r=!0)}catch(i){}if(e)if(r&&l){var n=Date.parse(l);this.options.CorrectClockSkew&&Math.abs(o.getSkewTime(this.options.SystemClockOffset)-n)>=3e4&&(console.error("error: Local time is too skewed."),this.options.SystemClockOffset=n-Date.now(),f=!0)}else Math.floor(e.statusCode/100)===5&&(f=!0);return f}function ve(e,f){var r=this;!e.headers&&(e.headers={}),!e.qs&&(e.qs={}),e.VersionId&&(e.qs.versionId=e.VersionId),e.qs=o.clearKey(e.qs),e.headers&&(e.headers=o.clearKey(e.headers)),e.qs&&(e.qs=o.clearKey(e.qs));var l=o.clone(e.qs);e.action&&(l[e.action]="");var C=e.url||e.Url,t=e.SignHost||$e.call(this,{Bucket:e.Bucket,Region:e.Region,Url:C}),n=e.tracker,i=function T(j){var Y=r.options.SystemClockOffset;n&&n.setParams({signStartTime:new Date().getTime(),retryTimes:j-1}),Ye.call(r,{Bucket:e.Bucket||"",Region:e.Region||"",Method:e.method,Key:e.Key,Query:l,Headers:e.headers,SignHost:t,Action:e.Action,ResourceKey:e.ResourceKey,Scope:e.Scope,ForceSignHost:r.options.ForceSignHost},function(ae,he){if(ae){f(ae);return}n&&n.setParams({signEndTime:new Date().getTime(),httpStartTime:new Date().getTime()}),e.AuthData=he,Ze.call(r,e,function(Be,Ue){n&&n.setParams({httpEndTime:new Date().getTime()}),Be&&j<2&&(Y!==r.options.SystemClockOffset||rt.call(r,Be))?(e.headers&&(delete e.headers.Authorization,delete e.headers.token,delete e.headers.clientIP,delete e.headers.clientUA,e.headers["x-cos-security-token"]&&delete e.headers["x-cos-security-token"],e.headers["x-ci-security-token"]&&delete e.headers["x-ci-security-token"]),T(j+1)):f(Be,Ue)})})};i(1)}function Ze(e,f){var r=this,l=e.TaskId;if(!(l&&!r._isRunningTask(l))){var C=e.Bucket,t=e.Region,n=e.Key,i=e.method||"GET",T=e.Url||e.url,j=e.body,Y=e.rawBody;r.options.UseAccelerate&&(t="accelerate"),T=T||Ge({ForcePathStyle:r.options.ForcePathStyle,protocol:r.options.Protocol,domain:r.options.Domain,bucket:C,region:t,object:n}),e.action&&(T=T+"?"+(o.isIOS_QQ?"".concat(e.action,"="):e.action)),e.qsStr&&(T.indexOf("?")>-1?T=T+"&"+e.qsStr:T=T+"?"+e.qsStr);var ae={method:i,url:T,headers:e.headers,qs:e.qs,body:j},he="x-cos-security-token";if(o.isCIHost(T)&&(he="x-ci-security-token"),ae.headers.Authorization=e.AuthData.Authorization,e.AuthData.Token&&(ae.headers.token=e.AuthData.Token),e.AuthData.ClientIP&&(ae.headers.clientIP=e.AuthData.ClientIP),e.AuthData.ClientUA&&(ae.headers.clientUA=e.AuthData.ClientUA),e.AuthData.SecurityToken&&(ae.headers[he]=e.AuthData.SecurityToken),ae.headers&&(ae.headers=o.clearKey(ae.headers)),ae=o.clearKey(ae),e.onProgress&&typeof e.onProgress=="function"){var Be=j&&(j.size||j.length)||0;ae.onProgress=function(be){if(!(l&&!r._isRunningTask(l))){var ke=be?be.loaded:0;e.onProgress({loaded:ke,total:Be})}}}e.onDownloadProgress&&(ae.onDownloadProgress=e.onDownloadProgress),e.DataType&&(ae.dataType=e.DataType),this.options.Timeout&&(ae.timeout=this.options.Timeout),r.options.ForcePathStyle&&(ae.pathStyle=r.options.ForcePathStyle),r.emit("before-send",ae);var Ue=ae.url.includes("accelerate."),je=ae.qs?Object.keys(ae.qs).map(function(be){return"".concat(be,"=").concat(ae.qs[be])}).join("&"):"",Ve=je?ae.url+"?"+je:ae.url;e.tracker&&e.tracker.setParams({reqUrl:Ve,accelerate:Ue?"Y":"N"}),e.tracker&&e.tracker.parent&&e.tracker.parent.setParams({reqUrl:Ve,accelerate:Ue?"Y":"N"});var Le=(r.options.Request||g)(ae,function(be){if(!(be&&be.error==="abort")){var ke={options:ae,error:be&&be.error,statusCode:be&&be.statusCode||0,statusMessage:be&&be.statusMessage||"",headers:be&&be.headers||{},body:be&&be.body};r.emit("after-receive",ke);var _e=ke.error,Pe=ke.body,We={statusCode:ke.statusCode,statusMessage:ke.statusMessage,headers:ke.headers},tt,nt=function(ct,dt){if(l&&r.off("inner-kill-task",ze),!tt){tt=!0;var lt={};We&&We.statusCode&&(lt.statusCode=We.statusCode),We&&We.headers&&(lt.headers=We.headers),ct?(ct=o.extend(ct||{},lt),f(ct,null)):(dt=o.extend(dt||{},lt),f(null,dt)),Le=null}};if(_e)return nt(o.error(_e));var at=We.statusCode,ft=Math.floor(at/100)===2;if(Y&&ft)return nt(null,{body:Pe});var st;try{st=Pe&&Pe.indexOf("<")>-1&&Pe.indexOf(">")>-1&&o.xml2json(Pe)||{}}catch(ht){st={}}var ut=st&&st.Error;ft?nt(null,st):ut?nt(o.error(new Error(ut.Message),{code:ut.Code,error:ut})):at?nt(o.error(new Error(We.statusMessage),{code:""+at})):at&&nt(o.error(new Error("statusCode error")))}}),ze=function be(ke){ke.TaskId===l&&(Le&&Le.abort&&Le.abort(),r.off("inner-kill-task",be))};l&&r.on("inner-kill-task",ze)}}var et={getService:X,putBucket:k,headBucket:_,getBucket:ne,deleteBucket:O,putBucketAcl:x,getBucketAcl:q,putBucketCors:F,getBucketCors:z,deleteBucketCors:I,getBucketLocation:L,getBucketPolicy:U,putBucketPolicy:J,deleteBucketPolicy:ge,putBucketTagging:w,getBucketTagging:S,deleteBucketTagging:y,putBucketLifecycle:K,getBucketLifecycle:h,deleteBucketLifecycle:P,putBucketVersioning:N,getBucketVersioning:M,putBucketReplication:Z,getBucketReplication:b,deleteBucketReplication:H,putBucketWebsite:D,getBucketWebsite:Q,deleteBucketWebsite:$,putBucketReferer:le,getBucketReferer:ue,putBucketDomain:oe,getBucketDomain:te,deleteBucketDomain:re,putBucketOrigin:se,getBucketOrigin:we,deleteBucketOrigin:fe,putBucketLogging:ee,getBucketLogging:ye,putBucketInventory:ie,getBucketInventory:de,listBucketInventory:me,deleteBucketInventory:pe,putBucketAccelerate:Ce,getBucketAccelerate:Ee,putBucketEncryption:Te,getBucketEncryption:xe,deleteBucketEncryption:Ae,getObject:B,headObject:V,listObjectVersions:E,putObject:d,deleteObject:s,getObjectAcl:u,putObjectAcl:a,optionsObject:v,putObjectCopy:R,deleteMultipleObject:G,restoreObject:ce,putObjectTagging:Se,getObjectTagging:W,deleteObjectTagging:Oe,selectObjectContent:Re,appendObject:Ke,uploadPartCopy:A,multipartInit:Ie,multipartUpload:De,multipartComplete:Me,multipartList:qe,multipartListPart:Fe,multipartAbort:He,request:Ne,getObjectUrl:ot,getAuth:Xe};function it(e,f,r){o.each(["Cors","Acl"],function(l){if(e.slice(-l.length)===l){var C=e.slice(0,-l.length)+l.toUpperCase(),t=o.apiWrapper(e,f),n=!1;r[C]=function(){!n&&console.warn("warning: cos."+C+" has been deprecated. Please Use cos."+e+" instead."),n=!0,t.apply(this,arguments)}}})}p.exports.init=function(e,f){f.transferToTaskMethod(et,"putObject"),o.each(et,function(r,l){e.prototype[l]=o.apiWrapper(l,r),it(l,r,e.prototype)})}},"./src/cos.js":function(p,m,c){"use strict";var g=c("./src/util.js"),o=c("./src/event.js"),X=c("./src/task.js"),k=c("./src/base.js"),_=c("./src/advance.js"),ne=c("./package.json"),O={AppId:"",SecretId:"",SecretKey:"",SecurityToken:"",ChunkRetryTimes:2,FileParallelLimit:3,ChunkParallelLimit:3,ChunkSize:1024*1024,SliceSize:1024*1024,CopyChunkParallelLimit:20,CopyChunkSize:1024*1024*10,CopySliceSize:1024*1024*10,MaxPartNumber:1e4,ProgressInterval:1e3,Domain:"",ServiceDomain:"",Protocol:"",CompatibilityMode:!1,ForcePathStyle:!1,UseRawKey:!1,Timeout:0,CorrectClockSkew:!0,SystemClockOffset:0,UploadCheckContentMd5:!1,UploadQueueSize:1e4,UploadAddMetaMd5:!1,UploadIdCacheLimit:50,UseAccelerate:!1,ForceSignHost:!0,EnableTracker:!1,DeepTracker:!1,TrackerDelay:5e3,CustomId:""},x=function(F){this.options=g.extend(g.clone(O),F||{}),this.options.FileParallelLimit=Math.max(1,this.options.FileParallelLimit),this.options.ChunkParallelLimit=Math.max(1,this.options.ChunkParallelLimit),this.options.ChunkRetryTimes=Math.max(0,this.options.ChunkRetryTimes),this.options.ChunkSize=Math.max(1024*1024,this.options.ChunkSize),this.options.CopyChunkParallelLimit=Math.max(1,this.options.CopyChunkParallelLimit),this.options.CopyChunkSize=Math.max(1024*1024,this.options.CopyChunkSize),this.options.CopySliceSize=Math.max(0,this.options.CopySliceSize),this.options.MaxPartNumber=Math.max(1024,Math.min(1e4,this.options.MaxPartNumber)),this.options.Timeout=Math.max(0,this.options.Timeout),this.options.AppId&&console.warn('warning: AppId has been deprecated, Please put it at the end of parameter Bucket(E.g: "test-1250000000").'),this.options.SecretId&&this.options.SecretId.indexOf(" ")>-1&&(console.error("error: SecretId\u683C\u5F0F\u9519\u8BEF\uFF0C\u8BF7\u68C0\u67E5"),console.error("error: SecretId format is incorrect. Please check")),this.options.SecretKey&&this.options.SecretKey.indexOf(" ")>-1&&(console.error("error: SecretKey\u683C\u5F0F\u9519\u8BEF\uFF0C\u8BF7\u68C0\u67E5"),console.error("error: SecretKey format is incorrect. Please check")),g.isNode()&&(console.warn("warning: cos-js-sdk-v5 \u4E0D\u652F\u6301 nodejs \u73AF\u5883\u4F7F\u7528\uFF0C\u8BF7\u6539\u7528 cos-nodejs-sdk-v5\uFF0C\u53C2\u8003\u6587\u6863\uFF1A https://cloud.tencent.com/document/product/436/8629"),console.warn("warning: cos-js-sdk-v5 does not support nodejs environment. Please use cos-nodejs-sdk-v5 instead. See: https://cloud.tencent.com/document/product/436/8629")),o.init(this),X.init(this)};k.init(x,X),_.init(x,X),x.util={md5:g.md5,xml2json:g.xml2json,json2xml:g.json2xml},x.getAuthorization=g.getAuth,x.version=ne.version,p.exports=x},"./src/event.js":function(p,m){var c=function(X){var k={},_=function(O){return!k[O]&&(k[O]=[]),k[O]};X.on=function(ne,O){ne==="task-list-update"&&console.warn('warning: Event "'+ne+'" has been deprecated. Please use "list-update" instead.'),_(ne).push(O)},X.off=function(ne,O){for(var x=_(ne),q=x.length-1;q>=0;q--)O===x[q]&&x.splice(q,1)},X.emit=function(ne,O){for(var x=_(ne).map(function(F){return F}),q=0;q=0;J--){var U=k[J][2];(!U||U+X=0;U--){var ge=k[U];ge[0]===I&&ge[1]===L&&k.splice(U,1)}k.unshift([I,L,Math.round(Date.now()/1e3)]),k.length>J&&k.splice(J),q()}},removeUploadId:function(I){x.call(this),delete F.using[I];for(var L=k.length-1;L>=0;L--)k[L][1]===I&&k.splice(L,1);q()}};p.exports=F},"./src/task.js":function(p,m,c){var g=c("./src/session.js"),o=c("./src/util.js"),X={},k=function(O,x){X[x]=O[x],O[x]=function(q,F){q.SkipTask?X[x].call(this,q,F):this._addTask(x,q,F)}},_=function(O){var x=[],q={},F=0,z=0,I=function(y){var K={id:y.id,Bucket:y.Bucket,Region:y.Region,Key:y.Key,FilePath:y.FilePath,state:y.state,loaded:y.loaded,size:y.size,speed:y.speed,percent:y.percent,hashPercent:y.hashPercent,error:y.error};return y.FilePath&&(K.FilePath=y.FilePath),y._custom&&(K._custom=y._custom),K},L=function(){var S,y=function(){S=0,O.emit("task-list-update",{list:o.map(x,I)}),O.emit("list-update",{list:o.map(x,I)})};return function(){S||(S=setTimeout(y))}}(),J=function(){if(!(x.length<=O.options.UploadQueueSize)){for(var y=0;yO.options.UploadQueueSize;){var K=x[y].state==="waiting"||x[y].state==="checking"||x[y].state==="uploading";!x[y]||!K?(q[x[y].id]&&delete q[x[y].id],x.splice(y,1),z--):y++}L()}},U=function S(){if(!(F>=O.options.FileParallelLimit)){for(;x[z]&&x[z].state!=="waiting";)z++;if(!(z>=x.length)){var y=x[z];z++,F++,y.state="checking",y.params.onTaskStart&&y.params.onTaskStart(I(y)),!y.params.UploadData&&(y.params.UploadData={});var K=o.formatParams(y.api,y.params);X[y.api].call(O,K,function(h,P){!O._isRunningTask(y.id)||((y.state==="checking"||y.state==="uploading")&&(y.state=h?"error":"success",h&&(y.error=h),F--,L(),S(),y.callback&&y.callback(h,P),y.state==="success"&&(y.params&&(delete y.params.UploadData,delete y.params.Body,delete y.params),delete y.callback)),J())}),L(),setTimeout(S)}}},ge=function(y,K){var h=q[y];if(!!h){var P=h&&h.state==="waiting",N=h&&(h.state==="checking"||h.state==="uploading");if(K==="canceled"&&h.state!=="canceled"||K==="paused"&&P||K==="paused"&&N){if(K==="paused"&&h.params.Body&&typeof h.params.Body.pipe=="function"){console.error("stream not support pause");return}h.state=K,O.emit("inner-kill-task",{TaskId:y,toState:K});try{var M=h&&h.params&&h.params.UploadData.UploadId}catch(Z){}K==="canceled"&&M&&g.removeUsing(M),L(),N&&(F--,U()),K==="canceled"&&(h.params&&(delete h.params.UploadData,delete h.params.Body,delete h.params),delete h.callback)}J()}};O._addTasks=function(S){o.each(S,function(y){O._addTask(y.api,y.params,y.callback,!0)}),L()};var w=!0;O._addTask=function(S,y,K,h){y=o.formatParams(S,y);var P=o.uuid();y.TaskId=P,y.onTaskReady&&y.onTaskReady(P),y.TaskReady&&(y.TaskReady(P),w&&console.warn('warning: Param "TaskReady" has been deprecated. Please use "onTaskReady" instead.'),w=!1);var N={params:y,callback:K,api:S,index:x.length,id:P,Bucket:y.Bucket,Region:y.Region,Key:y.Key,FilePath:y.FilePath||"",state:"waiting",loaded:0,size:0,speed:0,percent:0,hashPercent:0,error:null,_custom:y._custom},M=y.onHashProgress;y.onHashProgress=function(b){!O._isRunningTask(N.id)||(N.hashPercent=b.percent,M&&M(b),L())};var Z=y.onProgress;return y.onProgress=function(b){!O._isRunningTask(N.id)||(N.state==="checking"&&(N.state="uploading"),N.loaded=b.loaded,N.speed=b.speed,N.percent=b.percent,Z&&Z(b),L())},o.getFileSize(S,y,function(b,H){if(b)return K(o.error(b));q[P]=N,x.push(N),N.size=H,!h&&L(),U(),J()}),P},O._isRunningTask=function(S){var y=q[S];return!!(y&&(y.state==="checking"||y.state==="uploading"))},O.getTaskList=function(){return o.map(x,I)},O.cancelTask=function(S){ge(S,"canceled")},O.pauseTask=function(S){ge(S,"paused")},O.restartTask=function(S){var y=q[S];y&&(y.state==="paused"||y.state==="error")&&(y.state="waiting",L(),z=Math.min(z,y.index),U())},O.isUploadRunning=function(){return F||z=0||S.indexOf("wow32")>=0?"win32":S.indexOf("win64")>=0||S.indexOf("wow64")>=0?"win64":y?"mac":"unknown os"},isMobile:function(){var S=/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i;return!!((typeof navigator=="undefined"?"undefined":X(navigator))==="object"&&navigator.userAgent.match(S))},isAndroid:function(){var S=/(Android|Adr|Linux)/i;return!!((typeof navigator=="undefined"?"undefined":X(navigator))==="object"&&navigator.userAgent.match(S))},isIOS:function(){var S=/(iPhone|iPod|iPad|iOS)/i;return!!((typeof navigator=="undefined"?"undefined":X(navigator))==="object"&&navigator.userAgent.match(S))},isOtherMobile:function(){return isMobile&&!isAndroid&&!isIOS},getDeviceName:function(){if((typeof navigator=="undefined"?"undefined":X(navigator))!=="object")return"unknown device";var S=navigator.userAgent.toLowerCase();if(S.includes("app/tencent_wemeet"))return"tencent_wemeet";if(S.indexOf("maxthon")>=0){var y=S.match(/maxthon\/([\d.]+)/),K=y&&y[1]||"";return"\u50B2\u6E38\u6D4F\u89C8\u5668 ".concat(K).trim()}if(S.indexOf("qqbrowser")>=0){var h=S.match(/qqbrowser\/([\d.]+)/),P=h&&h[1]||"";return"QQ\u6D4F\u89C8\u5668 ".concat(P).trim()}if(S.indexOf("se 2.x")>=0)return"\u641C\u72D7\u6D4F\u89C8\u5668";if(S.indexOf("wxwork")>=0)return"\u5FAE\u4FE1\u5185\u7F6E\u6D4F\u89C8\u5668";if(S.indexOf("msie")>=0){var N=S.match(/msie ([\d.]+)/),M=N&&N[1]||"";return"IE ".concat(M).trim()}if(S.indexOf("firefox")>=0){var Z=S.match(/firefox\/([\d.]+)/),b=Z&&Z[1]||"";return"Firefox ".concat(b).trim()}if(S.indexOf("chrome")>=0){var H=S.match(/chrome\/([\d.]+)/),D=H&&H[1]||"";return"Chrome ".concat(D).trim()}if(S.indexOf("opera")>=0){var Q=S.match(/opera.([\d.]+)/),$=Q&&Q[1]||"";return"Opera ".concat($).trim()}if(S.indexOf("safari")>=0){var le=S.match(/version\/([\d.]+)/),ue=le&&le[1]||"";return"Safari ".concat(ue).trim()}if(S.indexOf("edge")>=0){var oe=S.match(/edge\/([\d.]+)/),te=oe&&oe[1]||"";return"edge ".concat(te).trim()}return S.substr(0,200)}},x={isMobile:O.isMobile(),isBrowser:!O.isMobile(),mobileOsType:O.isAndroid()?"android":O.isIOS?"ios":"other_mobile",pcOsType:O.getOsType()},q={deviceType:x.isMobile?"mobile":x.isBrowser?"browser":"unknown",devicePlatform:x.isMobile?x.mobileOsType:x.pcOsType,deviceName:O.getDeviceName()},F=["multipartInit","multipartUpload","multipartComplete","multipartList","multipartListPart","multipartAbort"],z=["putObject","postObject","appendObject","sliceUploadFile","uploadFile","uploadFiles"].concat(F),I=["getObject"];function L(w){return z.includes(w)?"cos_upload":I.includes(w)?"cos_download":"base_service"}function J(w){return w.replace(/([A-Z])/g,"_$1").toLowerCase()}function U(w){var S={},y=["tracePlatform","cossdkVersion","region","networkType","host","accelerate","requestPath","size","httpMd5","httpSign","httpFull","name","result","tookTime","errorNode","errorCode","errorMessage","errorRequestId","errorStatusCode","errorServiceName","errorType","traceId","bucket","appid","partNumber","retryTimes","reqUrl","customId","fullError","deviceType","devicePlatform","deviceName"],K=["tracePlatform","cossdkVersion","region","bucket","appid","networkType","host","accelerate","requestPath","partNumber","size","name","result","tookTime","errorRequestId","retryTimes","reqUrl","customId","deviceType","devicePlatform","deviceName"],h=w.result==="Success"?K:y;for(var P in w)if(!!h.includes(P)){var N=J(P);S[N]=w[P]}return S}var ge=function(){"use strict";function w(S){g(this,w);var y=S.parent,K=S.traceId,h=S.bucket,P=S.region,N=S.apiName,M=S.fileKey,Z=S.fileSize,b=S.accelerate,H=S.customId,D=S.delay,Q=S.deepTracker,$=h&&h.substr(h.lastIndexOf("-")+1)||"";this.parent=y,this.deepTracker=Q,this.delay=D,this.params={cossdkVersion:k.version,region:P,networkType:"",host:"",accelerate:b?"Y":"N",requestPath:M||"",size:Z||-1,httpMd5:0,httpSign:0,httpFull:0,name:N||"",result:"",tookTime:0,errorNode:"",errorCode:"",errorMessage:"",errorRequestId:"",errorStatusCode:0,errorServiceName:"",tracePlatform:"cos-js-sdk-v5",traceId:K||O.getUid(),bucket:h,appid:$,partNumber:0,retryTimes:0,reqUrl:"",customId:H||"",deviceType:q.deviceType,devicePlatform:q.devicePlatform,deviceName:q.deviceName,md5StartTime:0,md5EndTime:0,signStartTime:0,signEndTime:0,httpStartTime:0,httpEndTime:0,startTime:new Date().getTime(),endTime:0},this.beacon=ne(D)}return o(w,[{key:"formatResult",value:function(y,K){var h,P,N,M,Z,b,H=new Date().getTime(),D=H-this.params.startTime,Q=O.getNetType(),$=y?(y==null?void 0:y.code)||(y==null||(h=y.error)===null||h===void 0?void 0:h.code)||(y==null||(P=y.error)===null||P===void 0?void 0:P.Code):"",le=y?(y==null?void 0:y.message)||(y==null||(N=y.error)===null||N===void 0?void 0:N.message)||(y==null||(M=y.error)===null||M===void 0?void 0:M.Message):"",ue=y?(y==null?void 0:y.resource)||(y==null||(Z=y.error)===null||Z===void 0?void 0:Z.resource)||(y==null||(b=y.error)===null||b===void 0?void 0:b.Resource):"",oe=y?y==null?void 0:y.statusCode:K.statusCode,te=y?(y==null?void 0:y.headers)&&(y==null?void 0:y.headers["x-cos-request-id"]):(K==null?void 0:K.headers)&&(K==null?void 0:K.headers["x-cos-request-id"]),re=y?te?"Server":"Client":"";if(Object.assign(this.params,{tookTime:D,networkType:Q,httpMd5:this.params.md5EndTime-this.params.md5StartTime,httpSign:this.params.signEndTime-this.params.signStartTime,httpFull:this.params.httpEndTime-this.params.httpStartTime,result:y?"Fail":"Success",errorType:re,errorCode:$,errorStatusCode:oe,errorMessage:le,errorServiceName:ue,errorRequestId:te}),y&&(!$||!le)&&(this.params.fullError=y?JSON.stringify(y):""),this.params.name==="getObject"&&(this.params.size=K?K.headers&&K.headers["content-length"]:-1),this.params.reqUrl)try{var se=/^http(s)?:\/\/(.*?)\//.exec(this.params.reqUrl);this.params.host=se[2]}catch(we){this.params.host=this.params.reqUrl}this.sendEvents()}},{key:"setParams",value:function(y){Object.assign(this.params,y)}},{key:"sendEvents",value:function(){if(!(F.includes(this.params.name)&&!this.deepTracker)){var y=L(this.params.name),K=U(this.params);this.beacon||(this.beacon=ne(this.delay||5e3)),this.delay===0?this.beacon&&this.beacon.onDirectUserAction(y,K):this.beacon&&this.beacon.onUserAction(y,K)}}},{key:"generateSubTracker",value:function(y){return Object.assign(y,{parent:this,deepTracker:this.deepTracker,traceId:this.params.traceId,bucket:this.params.bucket,region:this.params.region,fileKey:this.params.requestPath,customId:this.params.customId,delay:this.delay}),new w(y)}}]),w}();p.exports=ge},"./src/util.js":function(p,m,c){"use strict";(function(g){var o=c("./node_modules/@babel/runtime/helpers/typeof.js"),X=c("./lib/md5.js"),k=c("./lib/crypto.js"),_=c("./lib/xml2json.js"),ne=c("./lib/json2xml.js"),O=c("./src/tracker.js");function x(V){return encodeURIComponent(V).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")}function q(V,E){var B=[];for(var d in V)V.hasOwnProperty(d)&&B.push(E?x(d).toLowerCase():d);return B.sort(function(s,u){return s=s.toLowerCase(),u=u.toLowerCase(),s===u?0:s>u?1:-1})}var F=function(E,B){var d,s,u,a=[],v=q(E);for(d=0;d-1||z.indexOf(s)>-1)&&(B[d]=E[d])}return B},L=function(E){E=E||{};var B=E.SecretId,d=E.SecretKey,s=E.KeyTime,u=(E.method||E.Method||"get").toLowerCase(),a=b(E.Query||E.params||{}),v=I(b(E.Headers||E.headers||{})),R=E.Key||"",A;E.UseRawKey?A=E.Pathname||E.pathname||"/"+R:(A=E.Pathname||E.pathname||R,A.indexOf("/")!==0&&(A="/"+A));var G=E.ForceSignHost!==!1;if(!v.Host&&!v.host&&E.Bucket&&E.Region&&G&&(v.Host=E.Bucket+".cos."+E.Region+".myqcloud.com"),!B)throw new Error("missing param SecretId");if(!d)throw new Error("missing param SecretKey");var ce=Math.round(de(E.SystemClockOffset)/1e3)-1,Se=ce,W=E.Expires||E.expires;W===void 0?Se+=900:Se+=W*1||0;var Oe="sha1",Re=B,Ie=s||ce+";"+Se,De=s||ce+";"+Se,Me=q(v,!0).join(";").toLowerCase(),qe=q(a,!0).join(";").toLowerCase(),Fe=k.HmacSHA1(De,d).toString(),He=[u,A,Ae.obj2str(a,!0),Ae.obj2str(v,!0),""].join(` -`),Ne=["sha1",Ie,k.SHA1(He).toString(),""].join(` -`),Ke=k.HmacSHA1(Ne,Fe).toString(),Xe=["q-sign-algorithm="+Oe,"q-ak="+Re,"q-sign-time="+Ie,"q-key-time="+De,"q-header-list="+Me,"q-url-param-list="+qe,"q-signature="+Ke].join("&");return Xe},J=function(E,B,d){var s=B/8,u=E.slice(d,d+s);return new Uint8Array(u).reverse(),new{8:Uint8Array,16:Uint16Array,32:Uint32Array}[B](u)[0]},U=function(E,B,d,s){var u=E.slice(B,d),a="";return new Uint8Array(u).forEach(function(v){a+=String.fromCharCode(v)}),s&&(a=decodeURIComponent(escape(a))),a},ge=function(E){for(var B={},d=U(E),s={records:[]};E.byteLength;){var u=J(E,32,0),a=J(E,32,4),v=u-a-16,R=0,A;for(E=E.slice(12);RparseInt(s[u])?1:-1;return 0},E=function(d){if(!d)return!1;var s=(d.match(/Chrome\/([.\d]+)/)||[])[1],u=(d.match(/QBCore\/([.\d]+)/)||[])[1],a=(d.match(/QQBrowser\/([.\d]+)/)||[])[1],v=s&&V(s,"53.0.2785.116")<0&&u&&V(u,"3.53.991.400")<0&&a&&V(a,"9.0.2524.400")<=0||!1;return v};return E(typeof navigator!="undefined"&&navigator.userAgent)}(),P=function(E,B,d,s,u){var a;if(E.slice?a=E.slice(B,d):E.mozSlice?a=E.mozSlice(B,d):E.webkitSlice&&(a=E.webkitSlice(B,d)),s&&h){var v=new FileReader;v.onload=function(R){a=null,u(new Blob([v.result]))},v.readAsArrayBuffer(a)}else u(a)},N=function(E,B,d,s){d=d||S,E?typeof B=="string"?d(Ae.md5(B,!0)):Blob&&B instanceof Blob?Ae.getFileMd5(B,function(u,a){d(a)},s):d():d()},M=1024*1024,Z=function(E,B,d){var s=E.size,u=0,a=X.getCtx(),v=function R(A){if(A>=s){var G=a.digest("hex");B(null,G);return}var ce=Math.min(s,A+M);Ae.fileSlice(E,A,ce,!1,function(Se){K(Se,function(W){Se=null,a=a.update(W,!0),u+=W.length,W=null,d&&d({loaded:u,total:s,percent:Math.round(u/s*1e4)/1e4}),R(A+M)})})};v(0)};function b(V){return oe(V,function(E){return o(E)==="object"&&E!==null?b(E):E})}function H(V,E,B){return V&&E in V?V[E]:B}function D(V,E){return ue(E,function(B,d){V[d]=E[d]}),V}function Q(V){return V instanceof Array}function $(V,E){for(var B=!1,d=0;d-1,R=!a||typeof a=="string"&&a.indexOf("{Region}")>-1;if(E.indexOf("Bucket")>-1||E==="deleteMultipleObject"||E==="multipartList"||E==="listObjectVersions"){if(v&&!d)return"Bucket";if(R&&!s)return"Region"}else if(E.indexOf("Object")>-1||E.indexOf("multipart")>-1||E==="sliceUploadFile"||E==="abortUploadTask"){if(v&&!d)return"Bucket";if(R&&!s)return"Region";if(!u)return"Key"}return!1},fe=function(E,B){if(B=D({},B),E!=="getAuth"&&E!=="getV4Auth"&&E!=="getObjectUrl"){var d=B.Headers||{};if(B&&o(B)==="object"){(function(){for(var u in B)B.hasOwnProperty(u)&&u.indexOf("x-cos-")>-1&&(d[u]=B[u])})();var s={"x-cos-mfa":"MFA","Content-MD5":"ContentMD5","Content-Length":"ContentLength","Content-Type":"ContentType",Expect:"Expect",Expires:"Expires","Cache-Control":"CacheControl","Content-Disposition":"ContentDisposition","Content-Encoding":"ContentEncoding",Range:"Range","If-Modified-Since":"IfModifiedSince","If-Unmodified-Since":"IfUnmodifiedSince","If-Match":"IfMatch","If-None-Match":"IfNoneMatch","x-cos-copy-source":"CopySource","x-cos-copy-source-Range":"CopySourceRange","x-cos-metadata-directive":"MetadataDirective","x-cos-copy-source-If-Modified-Since":"CopySourceIfModifiedSince","x-cos-copy-source-If-Unmodified-Since":"CopySourceIfUnmodifiedSince","x-cos-copy-source-If-Match":"CopySourceIfMatch","x-cos-copy-source-If-None-Match":"CopySourceIfNoneMatch","x-cos-acl":"ACL","x-cos-grant-read":"GrantRead","x-cos-grant-write":"GrantWrite","x-cos-grant-full-control":"GrantFullControl","x-cos-grant-read-acp":"GrantReadAcp","x-cos-grant-write-acp":"GrantWriteAcp","x-cos-storage-class":"StorageClass","x-cos-traffic-limit":"TrafficLimit","x-cos-mime-limit":"MimeLimit","x-cos-server-side-encryption-customer-algorithm":"SSECustomerAlgorithm","x-cos-server-side-encryption-customer-key":"SSECustomerKey","x-cos-server-side-encryption-customer-key-MD5":"SSECustomerKeyMD5","x-cos-server-side-encryption":"ServerSideEncryption","x-cos-server-side-encryption-cos-kms-key-id":"SSEKMSKeyId","x-cos-server-side-encryption-context":"SSEContext","Pic-Operations":"PicOperations"};Ae.each(s,function(u,a){B[u]!==void 0&&(d[a]=B[u])}),B.Headers=y(d)}}return B},ee=function(E,B){return function(d,s){var u=this;typeof d=="function"&&(s=d,d={}),d=fe(E,d);var a;if(u.options.EnableTracker)if(d.calledBySdk==="sliceUploadFile")a=d.tracker&&d.tracker.generateSubTracker({apiName:E});else if(["uploadFile","uploadFiles"].includes(E))a=null;else{var v=-1;d.Body&&(v=typeof d.Body=="string"?d.Body.length:d.Body.size||d.Body.byteLength||-1),a=new O({bucket:d.Bucket,region:d.Region,apiName:E,fileKey:d.Key,fileSize:v,deepTracker:u.options.DeepTracker,customId:u.options.CustomId,delay:u.options.TrackerDelay})}d.tracker=a;var R=function(Re){return Re&&Re.headers&&(Re.headers["x-cos-request-id"]&&(Re.RequestId=Re.headers["x-cos-request-id"]),Re.headers["x-ci-request-id"]&&(Re.RequestId=Re.headers["x-ci-request-id"]),Re.headers["x-cos-version-id"]&&(Re.VersionId=Re.headers["x-cos-version-id"]),Re.headers["x-cos-delete-marker"]&&(Re.DeleteMarker=Re.headers["x-cos-delete-marker"])),Re},A=function(Re,Ie){a&&a.formatResult(Re,Ie),s&&s(R(Re),R(Ie))},G=function(){if(E!=="getService"&&E!=="abortUploadTask"){var Re=we.call(u,E,d);if(Re)return"missing param "+Re;if(d.Region){if(u.options.CompatibilityMode){if(!/^([a-z\d-.]+)$/.test(d.Region))return"Region format error."}else{if(d.Region.indexOf("cos.")>-1)return'param Region should not be start with "cos."';if(!/^([a-z\d-]+)$/.test(d.Region))return"Region format error."}!u.options.CompatibilityMode&&d.Region.indexOf("-")===-1&&d.Region!=="yfb"&&d.Region!=="default"&&d.Region!=="accelerate"&&console.warn("warning: param Region format error, find help here: https://cloud.tencent.com/document/product/436/6224")}if(d.Bucket){if(!/^([a-z\d-]+)-(\d+)$/.test(d.Bucket))if(d.AppId)d.Bucket=d.Bucket+"-"+d.AppId;else if(u.options.AppId)d.Bucket=d.Bucket+"-"+u.options.AppId;else return'Bucket should format as "test-1250000000".';d.AppId&&(console.warn('warning: AppId has been deprecated, Please put it at the end of parameter Bucket(E.g Bucket:"test-1250000000" ).'),delete d.AppId)}!u.options.UseRawKey&&d.Key&&d.Key.substr(0,1)==="/"&&(d.Key=d.Key.substr(1))}},ce=G(),Se=["getAuth","getObjectUrl"].includes(E);if(typeof Promise=="function"&&!Se&&!s)return new Promise(function(Oe,Re){if(s=function(De,Me){De?Re(De):Oe(Me)},ce)return A(Ae.error(new Error(ce)));B.call(u,d,A)});if(ce)return A(Ae.error(new Error(ce)));var W=B.call(u,d,A);if(Se)return W}},ye=function(E,B){var d=this,s=0,u=0,a=Date.now(),v,R;function A(){if(R=0,B&&typeof B=="function"){v=Date.now();var G=Math.max(0,Math.round((u-s)/((v-a)/1e3)*100)/100)||0,ce;u===0&&E===0?ce=1:ce=Math.floor(u/E*100)/100||0,a=v,s=u;try{B({loaded:u,total:E,speed:G,percent:ce})}catch(Se){}}}return function(G,ce){if(G&&(u=G.loaded,E=G.total),ce)clearTimeout(R),A();else{if(R)return;R=setTimeout(A,d.options.ProgressInterval)}}},ie=function(E,B,d){var s;if(typeof B.Body=="string"?B.Body=new Blob([B.Body],{type:"text/plain"}):B.Body instanceof ArrayBuffer&&(B.Body=new Blob([B.Body])),B.Body&&(B.Body instanceof Blob||B.Body.toString()==="[object File]"||B.Body.toString()==="[object Blob]"))s=B.Body.size;else{d(Ae.error(new Error("params body format error, Only allow File|Blob|String.")));return}B.ContentLength=s,d(null,s)},de=function(E){return Date.now()+(E||0)},me=function(E,B){var d=E;return E.message=E.message||null,typeof B=="string"?(E.error=B,E.message=B):o(B)==="object"&&B!==null&&(D(E,B),(B.code||B.name)&&(E.code=B.code||B.name),B.message&&(E.message=B.message),B.stack&&(E.stack=B.stack)),typeof Object.defineProperty=="function"&&(Object.defineProperty(E,"name",{writable:!0,enumerable:!1}),Object.defineProperty(E,"message",{enumerable:!0})),E.name=B&&B.name||E.name||E.code||"Error",E.code||(E.code=E.name),E.error||(E.error=b(d)),E},pe=function(){return(typeof globalThis=="undefined"?"undefined":o(globalThis))==="object"&&(globalThis.constructor.name==="DedicatedWorkerGlobalScope"||globalThis.FileReaderSync)},Ce=function(){return(typeof window=="undefined"?"undefined":o(window))!=="object"&&(typeof g=="undefined"?"undefined":o(g))==="object"&&!0&&!pe()},Ee=function(E){return/^https?:\/\/([^/]+\.)?ci\.[^/]+/.test(E)},Te=function(){if((typeof navigator=="undefined"?"undefined":o(navigator))!=="object")return!1;var V=navigator.userAgent,E=!!V.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);return E}(),xe=function(){return(typeof navigator=="undefined"?"undefined":o(navigator))!=="object"?!1:/\sQQ/i.test(navigator.userAgent)}(),Ae={noop:S,formatParams:fe,apiWrapper:ee,xml2json:_,json2xml:ne,md5:X,clearKey:y,fileSlice:P,getBodyMd5:N,getFileMd5:Z,binaryBase64:re,extend:D,isArray:Q,isInArray:$,makeArray:le,each:ue,map:oe,filter:te,clone:b,attr:H,uuid:se,camSafeUrlEncode:x,throttleOnProgress:ye,getFileSize:ie,getSkewTime:de,error:me,obj2str:F,getAuth:L,parseSelectPayload:ge,getSourceParams:w,isBrowser:!0,isNode:Ce,isCIHost:Ee,isIOS_QQ:Te&&xe};p.exports=Ae}).call(this,c("./node_modules/process/browser.js"))}})})}}]); diff --git a/dist/6358.93252bf8.async.js b/dist/6358.93252bf8.async.js new file mode 100644 index 0000000..49014ce --- /dev/null +++ b/dist/6358.93252bf8.async.js @@ -0,0 +1,5 @@ +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[6358],{38475:function(xt,_e,r){"use strict";r.d(_e,{Z:function(){return Ve}});var y=r(28481),N=r(67294),i=r(73935),V=r(98924),ae=r(80334),E=r(42550),ze=N.createContext(null),n=ze,et=r(85061),q=r(8410),De=[];function mt(O,M){var _=N.useState(function(){if(!(0,V.Z)())return null;var b=document.createElement("div");return b}),Ne=(0,y.Z)(_,1),j=Ne[0],Se=N.useRef(!1),t=N.useContext(n),f=N.useState(De),o=(0,y.Z)(f,2),C=o[0],R=o[1],P=t||(Se.current?void 0:function(b){R(function(U){var $=[b].concat((0,et.Z)(U));return $})});function L(){j.parentElement||document.body.appendChild(j),Se.current=!0}function T(){var b;(b=j.parentElement)===null||b===void 0||b.removeChild(j),Se.current=!1}return(0,q.Z)(function(){return O?t?t(L):L():T(),T},[O]),(0,q.Z)(function(){C.length&&(C.forEach(function(b){return b()}),R(De))},[C]),[j,P]}var Xe=r(44958),xe=r(74204);function tt(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var nt="rc-util-locker-".concat(Date.now()),rt=0;function We(O){var M=!!O,_=N.useState(function(){return rt+=1,"".concat(nt,"_").concat(rt)}),Ne=(0,y.Z)(_,1),j=Ne[0];(0,q.Z)(function(){if(M){var Se=(0,xe.Z)(),t=tt();(0,Xe.hq)(` +html body { + overflow-y: hidden; + `.concat(t?"width: calc(100% - ".concat(Se,"px);"):"",` +}`),j)}else(0,Xe.jL)(j);return function(){(0,Xe.jL)(j)}},[M,j])}var He=!1;function gt(O){return typeof O=="boolean"&&(He=O),He}var at=function(M){return M===!1?!1:!(0,V.Z)()||!M?null:typeof M=="string"?document.querySelector(M):typeof M=="function"?M():M},ot=N.forwardRef(function(O,M){var _=O.open,Ne=O.autoLock,j=O.getContainer,Se=O.debug,t=O.autoDestroy,f=t===void 0?!0:t,o=O.children,C=N.useState(_),R=(0,y.Z)(C,2),P=R[0],L=R[1],T=P||_;N.useEffect(function(){(f||_)&&L(_)},[_,f]);var b=N.useState(function(){return at(j)}),U=(0,y.Z)(b,2),$=U[0],fe=U[1];N.useEffect(function(){var ne=at(j);fe(ne!=null?ne:null)});var oe=mt(T&&!$,Se),ee=(0,y.Z)(oe,2),te=ee[0],ie=ee[1],se=$!=null?$:te;We(Ne&&_&&(0,V.Z)()&&(se===te||se===document.body));var Ze=null;if(o&&(0,E.Yr)(o)&&M){var be=o;Ze=be.ref}var Ee=(0,E.x1)(Ze,M);if(!T||!(0,V.Z)()||$===void 0)return null;var B=se===!1||gt(),ve=o;return M&&(ve=N.cloneElement(o,{ref:Ee})),N.createElement(n.Provider,{value:ie},B?ve:(0,i.createPortal)(ve,se))}),Ct=ot,Ve=Ct},53469:function(){},6122:function(xt,_e,r){"use strict";r.d(_e,{Z:function(){return Ge}});var y=r(22122),N=r(90484),i=r(95357),V=r(28991),ae=r(96156),E=r(28481),ze=r(81253),n=r(67294),et=r(94184),q=r.n(et),De=r(27678),mt=r(21770),Xe=r(57315),xe=r(64019),tt=r(15105),nt=r(80334),rt=["visible","onVisibleChange","getContainer","current","countRender"],We=n.createContext({previewUrls:new Map,setPreviewUrls:function(){return null},current:null,setCurrent:function(){return null},setShowPreview:function(){return null},setMousePosition:function(){return null},registerImage:function(){return function(){return null}},rootClassName:""}),He=We.Provider,gt=function(e){var l=e.previewPrefixCls,a=l===void 0?"rc-image-preview":l,c=e.children,u=e.icons,m=u===void 0?{}:u,v=e.preview,h=(0,N.Z)(v)==="object"?v:{},D=h.visible,S=D===void 0?void 0:D,p=h.onVisibleChange,I=p===void 0?void 0:p,x=h.getContainer,Z=x===void 0?void 0:x,X=h.current,w=X===void 0?0:X,F=h.countRender,de=F===void 0?void 0:F,Me=(0,ze.Z)(h,rt),le=(0,n.useState)(new Map),Q=(0,E.Z)(le,2),z=Q[0],me=Q[1],ge=(0,n.useState)(),re=(0,E.Z)(ge,2),ce=re[0],ue=re[1],Le=(0,mt.Z)(!!S,{value:S,onChange:I}),Ce=(0,E.Z)(Le,2),G=Ce[0],H=Ce[1],J=(0,n.useState)(null),d=(0,E.Z)(J,2),Y=d[0],K=d[1],he=S!==void 0,we=Array.from(z.keys()),k=we[w],Fe=new Map(Array.from(z).filter(function(ye){var W=(0,E.Z)(ye,2),Ue=W[1].canPreview;return!!Ue}).map(function(ye){var W=(0,E.Z)(ye,2),Ue=W[0],Qe=W[1].url;return[Ue,Qe]})),ke=function(W,Ue){var Qe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,Ye=function(){me(function(lt){var qe=new Map(lt),ct=qe.delete(W);return ct?qe:lt})};return me(function(Je){return new Map(Je).set(W,{url:Ue,canPreview:Qe})}),Ye},Ae=function(W){W.stopPropagation(),H(!1),K(null)};return n.useEffect(function(){ue(k)},[k]),n.useEffect(function(){!G&&he&&ue(k)},[k,he,G]),n.createElement(He,{value:{isPreviewGroup:!0,previewUrls:Fe,setPreviewUrls:me,current:ce,setCurrent:ue,setShowPreview:H,setMousePosition:K,registerImage:ke}},c,n.createElement(L,(0,y.Z)({"aria-hidden":!G,visible:G,prefixCls:a,onClose:Ae,mousePosition:Y,src:Fe.get(ce),icons:m,getContainer:Z,countRender:de},Me)))},at=gt,ot=r(63441),Ct=r(38475),Ve=1,O=50,M=1,_=.2,Ne=function(e){var l,a=e.visible,c=e.maskTransitionName,u=e.getContainer,m=e.prefixCls,v=e.rootClassName,h=e.icons,D=e.countRender,S=e.showSwitch,p=e.showProgress,I=e.current,x=e.count,Z=e.scale,X=e.onSwitchLeft,w=e.onSwitchRight,F=e.onClose,de=e.onZoomIn,Me=e.onZoomOut,le=e.onRotateRight,Q=e.onRotateLeft,z=h.rotateLeft,me=h.rotateRight,ge=h.zoomIn,re=h.zoomOut,ce=h.close,ue=h.left,Le=h.right,Ce="".concat(m,"-operations-operation"),G="".concat(m,"-operations-icon"),H=[{icon:ce,onClick:F,type:"close"},{icon:ge,onClick:de,type:"zoomIn",disabled:Z===O},{icon:re,onClick:Me,type:"zoomOut",disabled:Z===Ve},{icon:me,onClick:le,type:"rotateRight"},{icon:z,onClick:Q,type:"rotateLeft"}],J=n.createElement(n.Fragment,null,S&&n.createElement(n.Fragment,null,n.createElement("div",{className:q()("".concat(m,"-switch-left"),(0,ae.Z)({},"".concat(m,"-switch-left-disabled"),I===0)),onClick:X},ue),n.createElement("div",{className:q()("".concat(m,"-switch-right"),(0,ae.Z)({},"".concat(m,"-switch-right-disabled"),I===x-1)),onClick:w},Le)),n.createElement("ul",{className:"".concat(m,"-operations")},p&&n.createElement("li",{className:"".concat(m,"-operations-progress")},(l=D==null?void 0:D(I+1,x))!==null&&l!==void 0?l:"".concat(I+1," / ").concat(x)),H.map(function(d){var Y,K=d.icon,he=d.onClick,we=d.type,k=d.disabled;return n.createElement("li",{className:q()(Ce,(Y={},(0,ae.Z)(Y,"".concat(m,"-operations-operation-").concat(we),!0),(0,ae.Z)(Y,"".concat(m,"-operations-operation-disabled"),!!k),Y)),onClick:he,key:we},n.isValidElement(K)?n.cloneElement(K,{className:G}):K)})));return n.createElement(ot.Z,{visible:a,motionName:c},function(d){var Y=d.className,K=d.style;return n.createElement(Ct.Z,{open:!0,getContainer:u!=null?u:document.body},n.createElement("div",{className:q()("".concat(m,"-operations-wrapper"),Y,v),style:K},J))})},j=Ne,Se=r(75164),t={x:0,y:0,rotate:0,scale:1};function f(s){var e=(0,n.useRef)(null),l=(0,n.useRef)([]),a=(0,n.useState)(t),c=(0,E.Z)(a,2),u=c[0],m=c[1],v=function(){m(t)},h=function(p){e.current===null&&(l.current=[],e.current=(0,Se.Z)(function(){m(function(I){var x=I;return l.current.forEach(function(Z){x=(0,V.Z)((0,V.Z)({},x),Z)}),e.current=null,x})})),l.current.push((0,V.Z)((0,V.Z)({},u),p))},D=function(p,I,x){var Z=s.current,X=Z.width,w=Z.height,F=Z.offsetWidth,de=Z.offsetHeight,Me=Z.offsetLeft,le=Z.offsetTop,Q=p,z=u.scale*p;z>O?(Q=O/u.scale,z=O):za){if(e>0)return(0,ae.Z)({},s,u);if(e<0&&ca)return(0,ae.Z)({},s,e<0?u:-u);return{}}function C(s,e,l,a){var c=(0,De.g1)(),u=c.width,m=c.height,v=null;return s<=u&&e<=m?v={x:0,y:0}:(s>u||e>m)&&(v=(0,V.Z)((0,V.Z)({},o("x",l,s,u)),o("y",a,e,m))),v}var R=["prefixCls","src","alt","onClose","afterClose","visible","icons","rootClassName","getContainer","countRender","scaleStep","transitionName","maskTransitionName"],P=function(e){var l=e.prefixCls,a=e.src,c=e.alt,u=e.onClose,m=e.afterClose,v=e.visible,h=e.icons,D=h===void 0?{}:h,S=e.rootClassName,p=e.getContainer,I=e.countRender,x=e.scaleStep,Z=x===void 0?.5:x,X=e.transitionName,w=X===void 0?"zoom":X,F=e.maskTransitionName,de=F===void 0?"fade":F,Me=(0,ze.Z)(e,R),le=(0,n.useRef)(),Q=(0,n.useRef)({deltaX:0,deltaY:0,transformX:0,transformY:0}),z=(0,n.useState)(!1),me=(0,E.Z)(z,2),ge=me[0],re=me[1],ce=(0,n.useContext)(We),ue=ce.previewUrls,Le=ce.current,Ce=ce.isPreviewGroup,G=ce.setCurrent,H=ue.size,J=Array.from(ue.keys()),d=J.indexOf(Le),Y=Ce?ue.get(Le):a,K=Ce&&H>1,he=Ce&&H>=1,we=f(le),k=we.transform,Fe=we.resetTransform,ke=we.updateTransform,Ae=we.dispatchZoonChange,ye=k.rotate,W=k.scale,Ue=q()((0,ae.Z)({},"".concat(l,"-moving"),ge)),Qe=function(){Fe()},Ye=function(){Ae(M+Z)},Je=function(){Ae(M-Z)},lt=function(){ke({rotate:ye+90})},qe=function(){ke({rotate:ye-90})},ct=function(g){g.preventDefault(),g.stopPropagation(),d>0&&G(J[d-1])},wt=function(g){g.preventDefault(),g.stopPropagation(),d0&&(pe=M/pe),Ae(pe,g.clientX,g.clientY)}},St=(0,n.useCallback)(function(A){!v||!K||(A.keyCode===tt.Z.LEFT?d>0&&G(J[d-1]):A.keyCode===tt.Z.RIGHT&&d(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var tt="rc-util-locker-".concat(Date.now()),Be=0;function mt(L){var M=!!L,A=b.useState(function(){return Be+=1,"".concat(tt,"_").concat(Be)}),Ae=(0,P.Z)(A,1),U=Ae[0];(0,Ve.Z)(function(){if(M){var Pe=(0,dt.Z)(),ce=pe();(0,He.hq)(` -html body { - overflow-y: hidden; - `.concat(ce?"width: calc(100% - ".concat(Pe,"px);"):"",` -}`),U)}else(0,He.jL)(U);return function(){(0,He.jL)(U)}},[M,U])}var ke=!1;function nt(L){return typeof L=="boolean"&&(ke=L),ke}var rt=function(M){return M===!1?!1:!(0,V.Z)()||!M?null:typeof M=="string"?document.querySelector(M):typeof M=="function"?M():M},gt=b.forwardRef(function(L,M){var A=L.open,Ae=L.autoLock,U=L.getContainer,Pe=L.debug,ce=L.autoDestroy,t=ce===void 0?!0:ce,c=L.children,o=b.useState(A),C=(0,P.Z)(o,2),p=C[0],y=C[1],I=p||A;b.useEffect(function(){(t||A)&&y(A)},[A,t]);var S=b.useState(function(){return rt(U)}),j=(0,P.Z)(S,2),T=j[0],J=j[1];b.useEffect(function(){var fe=rt(U);J(fe!=null?fe:null)});var ue=je(I&&!T,Pe),te=(0,P.Z)(ue,2),ne=te[0],oe=te[1],H=T!=null?T:ne;mt(Ae&&A&&(0,V.Z)()&&(H===ne||H===document.body));var Se=null;if(c&&(0,Q.Yr)(c)&&M){var xe=c;Se=xe.ref}var Ne=(0,Q.x1)(Se,M);if(!I||!(0,V.Z)()||T===void 0)return null;var Ze=H===!1||nt(),G=c;return M&&(G=b.cloneElement(c,{ref:Ne})),b.createElement(De.Provider,{value:oe},Ze?G:(0,i.createPortal)(G,H))}),at=gt,Ct=at},53469:function(){},6122:function(xt,et,r){"use strict";r.d(et,{Z:function(){return Ye}});var P=r(22122),b=r(90484),i=r(95357),V=r(28991),Q=r(96156),R=r(28481),De=r(81253),n=r(67294),Ve=r(94184),ae=r.n(Ve),je=r(27678),He=r(21770),dt=r(57315),pe=r(64019),tt=r(15105),Be=r(80334),mt=["visible","onVisibleChange","getContainer","current","countRender"],ke=n.createContext({previewUrls:new Map,setPreviewUrls:function(){return null},current:null,setCurrent:function(){return null},setShowPreview:function(){return null},setMousePosition:function(){return null},registerImage:function(){return function(){return null}},rootClassName:""}),nt=ke.Provider,rt=function(e){var l=e.previewPrefixCls,a=l===void 0?"rc-image-preview":l,u=e.children,f=e.icons,m=f===void 0?{}:f,v=e.preview,h=(0,b.Z)(v)==="object"?v:{},$=h.visible,Z=$===void 0?void 0:$,x=h.onVisibleChange,O=x===void 0?void 0:x,N=h.getContainer,E=N===void 0?void 0:N,B=h.current,w=B===void 0?0:B,q=h.countRender,ve=q===void 0?void 0:q,Me=(0,De.Z)(h,mt),ie=(0,n.useState)(new Map),_=(0,R.Z)(ie,2),z=_[0],de=_[1],me=(0,n.useState)(),re=(0,R.Z)(me,2),se=re[0],le=re[1],Le=(0,He.Z)(!!Z,{value:Z,onChange:O}),ge=(0,R.Z)(Le,2),Y=ge[0],F=ge[1],ee=(0,n.useState)(null),d=(0,R.Z)(ee,2),K=d[0],X=d[1],Ce=Z!==void 0,he=Array.from(z.keys()),D=he[w],Qe=new Map(Array.from(z).filter(function(we){var W=(0,R.Z)(we,2),We=W[1].canPreview;return!!We}).map(function(we){var W=(0,R.Z)(we,2),We=W[0],Je=W[1].url;return[We,Je]})),Ue=function(W,We){var Je=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,Ke=function(){de(function(st){var _e=new Map(st),lt=_e.delete(W);return lt?_e:st})};return de(function(qe){return new Map(qe).set(W,{url:We,canPreview:Je})}),Ke},ze=function(W){W.stopPropagation(),F(!1),X(null)};return n.useEffect(function(){le(D)},[D]),n.useEffect(function(){!Y&&Ce&&le(D)},[D,Ce,Y]),n.createElement(nt,{value:{isPreviewGroup:!0,previewUrls:Qe,setPreviewUrls:de,current:se,setCurrent:le,setShowPreview:F,setMousePosition:X,registerImage:Ue}},u,n.createElement(I,(0,P.Z)({"aria-hidden":!Y,visible:Y,prefixCls:a,onClose:ze,mousePosition:K,src:Qe.get(se),icons:m,getContainer:E,countRender:ve},Me)))},gt=rt,at=r(63441),Ct=r(38475),L=1,M=50,A=1,Ae=.2,U=function(e){var l,a=e.visible,u=e.maskTransitionName,f=e.getContainer,m=e.prefixCls,v=e.rootClassName,h=e.icons,$=e.countRender,Z=e.showSwitch,x=e.showProgress,O=e.current,N=e.count,E=e.scale,B=e.onSwitchLeft,w=e.onSwitchRight,q=e.onClose,ve=e.onZoomIn,Me=e.onZoomOut,ie=e.onRotateRight,_=e.onRotateLeft,z=h.rotateLeft,de=h.rotateRight,me=h.zoomIn,re=h.zoomOut,se=h.close,le=h.left,Le=h.right,ge="".concat(m,"-operations-operation"),Y="".concat(m,"-operations-icon"),F=[{icon:se,onClick:q,type:"close"},{icon:me,onClick:ve,type:"zoomIn",disabled:E===M},{icon:re,onClick:Me,type:"zoomOut",disabled:E===L},{icon:de,onClick:ie,type:"rotateRight"},{icon:z,onClick:_,type:"rotateLeft"}],ee=n.createElement(n.Fragment,null,Z&&n.createElement(n.Fragment,null,n.createElement("div",{className:ae()("".concat(m,"-switch-left"),(0,Q.Z)({},"".concat(m,"-switch-left-disabled"),O===0)),onClick:B},le),n.createElement("div",{className:ae()("".concat(m,"-switch-right"),(0,Q.Z)({},"".concat(m,"-switch-right-disabled"),O===N-1)),onClick:w},Le)),n.createElement("ul",{className:"".concat(m,"-operations")},x&&n.createElement("li",{className:"".concat(m,"-operations-progress")},(l=$==null?void 0:$(O+1,N))!==null&&l!==void 0?l:"".concat(O+1," / ").concat(N)),F.map(function(d){var K,X=d.icon,Ce=d.onClick,he=d.type,D=d.disabled;return n.createElement("li",{className:ae()(ge,(K={},(0,Q.Z)(K,"".concat(m,"-operations-operation-").concat(he),!0),(0,Q.Z)(K,"".concat(m,"-operations-operation-disabled"),!!D),K)),onClick:Ce,key:he},n.isValidElement(X)?n.cloneElement(X,{className:Y}):X)})));return n.createElement(at.Z,{visible:a,motionName:u},function(d){var K=d.className,X=d.style;return n.createElement(Ct.Z,{open:!0,getContainer:f!=null?f:document.body},n.createElement("div",{className:ae()("".concat(m,"-operations-wrapper"),K,v),style:X},ee))})},Pe=U,ce=r(75164),t={x:0,y:0,rotate:0,scale:1};function c(s){var e=(0,n.useRef)(null),l=(0,n.useRef)([]),a=(0,n.useState)(t),u=(0,R.Z)(a,2),f=u[0],m=u[1],v=function(){m(t)},h=function(x){e.current===null&&(l.current=[],e.current=(0,ce.Z)(function(){m(function(O){var N=O;return l.current.forEach(function(E){N=(0,V.Z)((0,V.Z)({},N),E)}),e.current=null,N})})),l.current.push((0,V.Z)((0,V.Z)({},f),x))},$=function(x,O,N){var E=s.current,B=E.width,w=E.height,q=E.offsetWidth,ve=E.offsetHeight,Me=E.offsetLeft,ie=E.offsetTop,_=x,z=f.scale*x;z>M?(_=M/f.scale,z=M):za){if(e>0)return(0,Q.Z)({},s,f);if(e<0&&ua)return(0,Q.Z)({},s,e<0?f:-f);return{}}function C(s,e,l,a){var u=(0,je.g1)(),f=u.width,m=u.height,v=null;return s<=f&&e<=m?v={x:0,y:0}:(s>f||e>m)&&(v=(0,V.Z)((0,V.Z)({},o("x",l,s,f)),o("y",a,e,m))),v}var p=["prefixCls","src","alt","onClose","afterClose","visible","icons","rootClassName","getContainer","countRender","scaleStep","transitionName","maskTransitionName"],y=function(e){var l=e.prefixCls,a=e.src,u=e.alt,f=e.onClose,m=e.afterClose,v=e.visible,h=e.icons,$=h===void 0?{}:h,Z=e.rootClassName,x=e.getContainer,O=e.countRender,N=e.scaleStep,E=N===void 0?.5:N,B=e.transitionName,w=B===void 0?"zoom":B,q=e.maskTransitionName,ve=q===void 0?"fade":q,Me=(0,De.Z)(e,p),ie=(0,n.useRef)(),_=(0,n.useRef)({deltaX:0,deltaY:0,transformX:0,transformY:0}),z=(0,n.useState)(!1),de=(0,R.Z)(z,2),me=de[0],re=de[1],se=(0,n.useContext)(ke),le=se.previewUrls,Le=se.current,ge=se.isPreviewGroup,Y=se.setCurrent,F=le.size,ee=Array.from(le.keys()),d=ee.indexOf(Le),K=ge?le.get(Le):a,X=ge&&F>1,Ce=ge&&F>=1,he=c(ie),D=he.transform,Qe=he.resetTransform,Ue=he.updateTransform,ze=he.dispatchZoonChange,we=D.rotate,W=D.scale,We=ae()((0,Q.Z)({},"".concat(l,"-moving"),me)),Je=function(){Qe()},Ke=function(){ze(A+E)},qe=function(){ze(A-E)},st=function(){Ue({rotate:we+90})},_e=function(){Ue({rotate:we-90})},lt=function(g){g.preventDefault(),g.stopPropagation(),d>0&&Y(ee[d-1])},wt=function(g){g.preventDefault(),g.stopPropagation(),d0&&(Re=A/Re),ze(Re,g.clientX,g.clientY)}},St=(0,n.useCallback)(function(k){!v||!X||(k.keyCode===tt.Z.LEFT?d>0&&Y(ee[d-1]):k.keyCode===tt.Z.RIGHT&&d3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof e=="string"?e:"".concat(u,"-").concat(n),error:e,errorStatus:t}}function pe(e){var t=e.help,u=e.helpStatus,n=e.errors,s=n===void 0?F:n,f=e.warnings,p=f===void 0?F:f,m=e.className,v=e.fieldId,S=e.onVisibleChanged,Z=l.useContext(h.Rk),T=Z.prefixCls,A=l.useContext(tt.E_),L=A.getPrefixCls,W="".concat(T,"-item-explain"),j=L(),ae=We(s),M=We(p),Y=l.useMemo(function(){return t!=null?[Ve(t,u,"help")]:[].concat((0,k.Z)(ae.map(function(P,_){return Ve(P,"error","error",_)})),(0,k.Z)(M.map(function(P,_){return Ve(P,"warning","warning",_)})))},[t,u,ae,M]),K={};return v&&(K.id="".concat(v,"_help")),l.createElement(be.Z,{motionDeadline:c.ZP.motionDeadline,motionName:"".concat(j,"-show-help"),visible:!!Y.length,onVisibleChanged:S},function(P){var _=P.className,oe=P.style;return l.createElement("div",(0,x.Z)({},K,{className:Ce()(W,_,m),style:oe,role:"alert"}),l.createElement(be.V,(0,x.Z)({keys:Y},c.ZP,{motionName:"".concat(j,"-show-help-item"),component:!1}),function(q){var ee=q.key,te=q.error,V=q.errorStatus,se=q.className,Ee=q.style;return l.createElement("div",{key:ee,className:Ce()(se,(0,d.Z)({},"".concat(W,"-").concat(V),V)),style:Ee},te)}))})}var re=a(90484),J=a(48526),w=a(98866),de=a(97647);function Q(e){return typeof e=="object"&&e!=null&&e.nodeType===1}function le(e,t){return(!t||e!=="hidden")&&e!=="visible"&&e!=="clip"}function ge(e,t){if(e.clientHeightt||f>e&&p=t&&m>=u?f-e-n:p>t&&mu?p-t+s:0}var He=function(e,t){var u=window,n=t.scrollMode,s=t.block,f=t.inline,p=t.boundary,m=t.skipOverflowHiddenElements,v=typeof p=="function"?p:function(xt){return xt!==p};if(!Q(e))throw new TypeError("Invalid target");for(var S,Z,T=document.scrollingElement||document.documentElement,A=[],L=e;Q(L)&&v(L);){if((L=(Z=(S=L).parentElement)==null?S.getRootNode().host||null:Z)===T){A.push(L);break}L!=null&&L===document.body&&ge(L)&&!ge(document.documentElement)||L!=null&&ge(L,m)&&A.push(L)}for(var W=u.visualViewport?u.visualViewport.width:innerWidth,j=u.visualViewport?u.visualViewport.height:innerHeight,ae=window.scrollX||pageXOffset,M=window.scrollY||pageYOffset,Y=e.getBoundingClientRect(),K=Y.height,P=Y.width,_=Y.top,oe=Y.right,q=Y.bottom,ee=Y.left,te=s==="start"||s==="nearest"?_:s==="end"?q:_+K/2,V=f==="center"?ee+P/2:f==="end"?oe:ee,se=[],Ee=0;Ee=0&&ee>=0&&q<=j&&oe<=W&&_>=ue&&q<=gt&&ee>=Qe&&oe<=me)return se;var Ne=getComputedStyle(I),Je=parseInt(Ne.borderLeftWidth,10),qe=parseInt(Ne.borderTopWidth,10),Le=parseInt(Ne.borderRightWidth,10),it=parseInt(Ne.borderBottomWidth,10),E=0,g=0,N="offsetWidth"in I?I.offsetWidth-I.clientWidth-Je-Le:0,C="offsetHeight"in I?I.offsetHeight-I.clientHeight-qe-it:0,U="offsetWidth"in I?I.offsetWidth===0?0:Ze/I.offsetWidth:0,ce="offsetHeight"in I?I.offsetHeight===0?0:Ie/I.offsetHeight:0;if(T===I)E=s==="start"?te:s==="end"?te-j:s==="nearest"?Ae(M,M+j,j,qe,it,M+te,M+te+K,K):te-j/2,g=f==="start"?V:f==="center"?V-W/2:f==="end"?V-W:Ae(ae,ae+W,W,Je,Le,ae+V,ae+V+P,P),E=Math.max(0,E+M),g=Math.max(0,g+ae);else{E=s==="start"?te-ue-qe:s==="end"?te-gt+it+C:s==="nearest"?Ae(ue,gt,Ie,qe,it+C,te,te+K,K):te-(ue+Ie/2)+C/2,g=f==="start"?V-Qe-Je:f==="center"?V-(Qe+Ze/2)+N/2:f==="end"?V-me+Le+N:Ae(Qe,me,Ze,Je,Le+N,V,V+P,P);var Se=I.scrollLeft,Te=I.scrollTop;te+=Te-(E=Math.max(0,Math.min(Te+E/ce,I.scrollHeight-Ie/ce+C))),V+=Se-(g=Math.max(0,Math.min(Se+g/U,I.scrollWidth-Ze/U+N)))}se.push({el:I,top:E,left:g})}return se};function ve(e){return e===Object(e)&&Object.keys(e).length!==0}function Oe(e,t){t===void 0&&(t="auto");var u="scrollBehavior"in document.body.style;e.forEach(function(n){var s=n.el,f=n.top,p=n.left;s.scroll&&u?s.scroll({top:f,left:p,behavior:t}):(s.scrollTop=f,s.scrollLeft=p)})}function Be(e){return e===!1?{block:"end",inline:"nearest"}:ve(e)?e:{block:"start",inline:"nearest"}}function De(e,t){var u=e.isConnected||e.ownerDocument.documentElement.contains(e);if(ve(t)&&typeof t.behavior=="function")return t.behavior(u?He(e,t):[]);if(!!u){var n=Be(t);return Oe(He(e,n),n.behavior)}}var ut=De,St=["parentNode"],st="form_item";function ze(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function rt(e,t){if(!!e.length){var u=e.join("_");if(t)return"".concat(t,"_").concat(u);var n=St.includes(u);return n?"".concat(st,"_").concat(u):u}}function he(e){var t=ze(e);return t.join("_")}function ke(e){var t=(0,J.cI)(),u=(0,fe.Z)(t,1),n=u[0],s=l.useRef({}),f=l.useMemo(function(){return e!=null?e:(0,x.Z)((0,x.Z)({},n),{__INTERNAL__:{itemRef:function(m){return function(v){var S=he(m);v?s.current[S]=v:delete s.current[S]}}},scrollToField:function(m){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},S=ze(m),Z=rt(S,f.__INTERNAL__.name),T=Z?document.getElementById(Z):null;T&&ut(T,(0,x.Z)({scrollMode:"if-needed",block:"nearest"},v))},getFieldInstance:function(m){var v=he(m);return s.current[v]}})},[e,n]);return[f]}var yt=function(e,t){var u={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(u[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(e);s0||it.length>0||e.extra){var Tt=[];(e.help||Le.length>0)&&Tt.push("".concat(Te,"_help")),e.extra&&Tt.push("".concat(Te,"_extra")),et["aria-describedby"]=Tt.join(" ")}Le.length>0&&(et["aria-invalid"]="true"),xt&&(et["aria-required"]="true"),(0,Me.Yr)(m)&&(et.ref=E(Se,m));var Kt=new Set([].concat((0,k.Z)(ze(A)),(0,k.Z)(ze(q))));Kt.forEach(function(ot){et[ot]=function(){for(var Pt,Vt,At,Bt,Lt,Ut=arguments.length,Wt=new Array(Ut),wt=0;wt0){var ct=Q[0]/2;Re.paddingLeft=ct,Re.paddingRight=ct}if(Q&&Q[1]>0&&!ge){var ft=Q[1]/2;Re.paddingTop=ft,Re.paddingBottom=ft}return st&&(Re.flex=c(st),le===!1&&!Re.minWidth&&(Re.minWidth=0)),Ce.createElement("div",(0,d.Z)({},rt,{style:(0,d.Z)((0,d.Z)({},Re),ze),className:yt,ref:Ve}),St)});ye.Z=We},92820:function(je,ye,a){"use strict";var h=a(22122),d=a(96156),x=a(90484),k=a(28481),Et=a(94184),Ce=a.n(Et),be=a(67294),l=a(53124),tt=a(98082),c=a(24308),fe=a(93355),We=a(99134),F=function(w,de){var Q={};for(var le in w)Object.prototype.hasOwnProperty.call(w,le)&&de.indexOf(le)<0&&(Q[le]=w[le]);if(w!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ge=0,le=Object.getOwnPropertySymbols(w);ge0?Ke[0]/-2:void 0,o=Ke[1]!=null&&Ke[1]>0?Ke[1]/-2:void 0;if(r&&(at.marginLeft=r,at.marginRight=r),nt){var i=(0,k.Z)(Ke,2);at.rowGap=i[1]}else o&&(at.marginTop=o,at.marginBottom=o);var y=(0,k.Z)(Ke,2),b=y[0],O=y[1],G=be.useMemo(function(){return{gutter:[b,O],wrap:ut,supportFlexGap:nt}},[b,O,ut,nt]);return be.createElement(We.Z.Provider,{value:G},be.createElement("div",(0,h.Z)({},St,{className:Dt,style:(0,h.Z)((0,h.Z)({},at),ve),ref:de}),Oe))});ye.Z=J},6999:function(je,ye,a){"use strict";var h=a(38663),d=a.n(h),x=a(80638),k=a.n(x)},85986:function(je,ye,a){"use strict";a.d(ye,{Z:function(){return at}});var h=a(22122),d=a(96156),x=a(90484),k=a(28481),Et=a(57254),Ce=a(58491),be=a(94184),l=a.n(be),tt=a(81253),c=a(67294),fe=a(15105),We=a(8410),F=a(42550),Ve=a(6610),pe=a(5991);function re(){return typeof BigInt=="function"}function J(r){var o=r.trim(),i=o.startsWith("-");i&&(o=o.slice(1)),o=o.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),o.startsWith(".")&&(o="0".concat(o));var y=o||"0",b=y.split("."),O=b[0]||"0",G=b[1]||"0";O==="0"&&G==="0"&&(i=!1);var $=i?"-":"";return{negative:i,negativeStr:$,trimStr:y,integerStr:O,decimalStr:G,fullStr:"".concat($).concat(y)}}function w(r){var o=String(r);return!Number.isNaN(Number(o))&&o.includes("e")}function de(r){var o=String(r);if(w(r)){var i=Number(o.slice(o.indexOf("e-")+2)),y=o.match(/\.(\d+)/);return(y==null?void 0:y[1])&&(i+=y[1].length),i}return o.includes(".")&&le(o)?o.length-o.indexOf(".")-1:0}function Q(r){var o=String(r);if(w(r)){if(r>Number.MAX_SAFE_INTEGER)return String(re()?BigInt(r).toString():Number.MAX_SAFE_INTEGER);if(rNumber.MAX_SAFE_INTEGER)return new r(Number.MAX_SAFE_INTEGER);if(b0&&arguments[0]!==void 0?arguments[0]:!0;return i?this.isInvalidate()?"":Q(this.number):this.origin}}]),r}(),He=function(){function r(o){if((0,Ve.Z)(this,r),this.origin="",this.negative=void 0,this.integer=void 0,this.decimal=void 0,this.decimalLen=void 0,this.empty=void 0,this.nan=void 0,!o&&o!==0||!String(o).trim()){this.empty=!0;return}if(this.origin=String(o),o==="-"){this.nan=!0;return}var i=o;if(w(i)&&(i=Number(i)),i=typeof i=="string"?i:Q(i),le(i)){var y=J(i);this.negative=y.negative;var b=y.trimStr.split(".");this.integer=BigInt(b[0]);var O=b[1]||"0";this.decimal=BigInt(O),this.decimalLen=O.length}else this.nan=!0}return(0,pe.Z)(r,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(i){var y="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(i,"0"));return BigInt(y)}},{key:"negate",value:function(){var i=new r(this.toString());return i.negative=!i.negative,i}},{key:"add",value:function(i){if(this.isInvalidate())return new r(i);var y=new r(i);if(y.isInvalidate())return this;var b=Math.max(this.getDecimalStr().length,y.getDecimalStr().length),O=this.alignDecimal(b),G=y.alignDecimal(b),$=(O+G).toString(),H=J($),z=H.negativeStr,B=H.trimStr,X="".concat(z).concat(B.padStart(b+1,"0"));return new r("".concat(X.slice(0,-b),".").concat(X.slice(-b)))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(i){return this.toString()===(i==null?void 0:i.toString())}},{key:"lessEquals",value:function(i){return this.add(i.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return i?this.isInvalidate()?"":J("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),r}();function ve(r){return re()?new He(r):new Ae(r)}function Oe(r,o,i){var y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(r==="")return"";var b=J(r),O=b.negativeStr,G=b.integerStr,$=b.decimalStr,H="".concat(o).concat($),z="".concat(O).concat(G);if(i>=0){var B=Number($[i]);if(B>=5&&!y){var X=ve(r).add("".concat(O,"0.").concat("0".repeat(i)).concat(10-B));return Oe(X.toString(),o,i,y)}return i===0?z:"".concat(z).concat(o).concat($.padEnd(i,"0").slice(0,i))}return H===".0"?z:"".concat(z).concat(H)}var Be=a(31131),De=200,ut=600;function St(r){var o=r.prefixCls,i=r.upNode,y=r.downNode,b=r.upDisabled,O=r.downDisabled,G=r.onStep,$=c.useRef(),H=c.useRef();H.current=G;var z=function(we,Xe){we.preventDefault(),H.current(Xe);function Ye(){H.current(Xe),$.current=setTimeout(Ye,De)}$.current=setTimeout(Ye,ut)},B=function(){clearTimeout($.current)};if(c.useEffect(function(){return B},[]),(0,Be.Z)())return null;var X="".concat(o,"-handler"),ne=l()(X,"".concat(X,"-up"),(0,d.Z)({},"".concat(X,"-up-disabled"),b)),Pe=l()(X,"".concat(X,"-down"),(0,d.Z)({},"".concat(X,"-down-disabled"),O)),$e={unselectable:"on",role:"button",onMouseUp:B,onMouseLeave:B};return c.createElement("div",{className:"".concat(X,"-wrap")},c.createElement("span",(0,h.Z)({},$e,{onMouseDown:function(we){z(we,!0)},"aria-label":"Increase Value","aria-disabled":b,className:ne}),i||c.createElement("span",{unselectable:"on",className:"".concat(o,"-handler-up-inner")})),c.createElement("span",(0,h.Z)({},$e,{onMouseDown:function(we){z(we,!1)},"aria-label":"Decrease Value","aria-disabled":O,className:Pe}),y||c.createElement("span",{unselectable:"on",className:"".concat(o,"-handler-down-inner")})))}var st=a(80334);function ze(r,o){var i=(0,c.useRef)(null);function y(){try{var O=r.selectionStart,G=r.selectionEnd,$=r.value,H=$.substring(0,O),z=$.substring(G);i.current={start:O,end:G,value:$,beforeTxt:H,afterTxt:z}}catch(B){}}function b(){if(r&&i.current&&o)try{var O=r.value,G=i.current,$=G.beforeTxt,H=G.afterTxt,z=G.start,B=O.length;if(O.endsWith(H))B=O.length-i.current.afterTxt.length;else if(O.startsWith($))B=$.length;else{var X=$[z-1],ne=O.indexOf(X,z-1);ne!==-1&&(B=ne+1)}r.setSelectionRange(B,B)}catch(Pe){(0,st.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(Pe.message))}}return[y,b]}var rt=a(75164),he=function(){var r=(0,c.useRef)(0),o=function(){rt.Z.cancel(r.current)};return(0,c.useEffect)(function(){return o},[]),function(i){o(),r.current=(0,rt.Z)(function(){i()})}},ke=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],yt=function(o,i){return o||i.isEmpty()?i.toString():i.toNumber()},Re=function(o){var i=ve(o);return i.isInvalidate()?null:i},ct=c.forwardRef(function(r,o){var i,y=r.prefixCls,b=y===void 0?"rc-input-number":y,O=r.className,G=r.style,$=r.min,H=r.max,z=r.step,B=z===void 0?1:z,X=r.defaultValue,ne=r.value,Pe=r.disabled,$e=r.readOnly,dt=r.upHandler,we=r.downHandler,Xe=r.keyboard,Ye=r.controls,Rt=Ye===void 0?!0:Ye,Mt=r.stringMode,vt=r.parser,mt=r.formatter,xe=r.precision,lt=r.decimalSeparator,R=r.onChange,Ct=r.onInput,Zt=r.onPressEnter,Nt=r.onStep,Ot=(0,tt.Z)(r,ke),bt="".concat(b,"-input"),_e=c.useRef(null),pt=c.useState(!1),e=(0,k.Z)(pt,2),t=e[0],u=e[1],n=c.useRef(!1),s=c.useRef(!1),f=c.useRef(!1),p=c.useState(function(){return ve(ne!=null?ne:X)}),m=(0,k.Z)(p,2),v=m[0],S=m[1];function Z(E){ne===void 0&&S(E)}var T=c.useCallback(function(E,g){if(!g)return xe>=0?xe:Math.max(de(E),de(B))},[xe,B]),A=c.useCallback(function(E){var g=String(E);if(vt)return vt(g);var N=g;return lt&&(N=N.replace(lt,".")),N.replace(/[^\w.-]+/g,"")},[vt,lt]),L=c.useRef(""),W=c.useCallback(function(E,g){if(mt)return mt(E,{userTyping:g,input:String(L.current)});var N=typeof E=="number"?Q(E):E;if(!g){var C=T(N,g);if(le(N)&&(lt||C>=0)){var U=lt||".";N=Oe(N,U,C)}}return N},[mt,T,lt]),j=c.useState(function(){var E=X!=null?X:ne;return v.isInvalidate()&&["string","number"].includes((0,x.Z)(E))?Number.isNaN(E)?"":E:W(v.toString(),!1)}),ae=(0,k.Z)(j,2),M=ae[0],Y=ae[1];L.current=M;function K(E,g){Y(W(E.isInvalidate()?E.toString(!1):E.toString(!g),g))}var P=c.useMemo(function(){return Re(H)},[H,xe]),_=c.useMemo(function(){return Re($)},[$,xe]),oe=c.useMemo(function(){return!P||!v||v.isInvalidate()?!1:P.lessEquals(v)},[P,v]),q=c.useMemo(function(){return!_||!v||v.isInvalidate()?!1:v.lessEquals(_)},[_,v]),ee=ze(_e.current,t),te=(0,k.Z)(ee,2),V=te[0],se=te[1],Ee=function(g){return P&&!g.lessEquals(P)?P:_&&!_.lessEquals(g)?_:null},I=function(g){return!Ee(g)},D=function(g,N){var C=g,U=I(C)||C.isEmpty();if(!C.isEmpty()&&!N&&(C=Ee(C)||C,U=!0),!$e&&!Pe&&U){var ce=C.toString(),Se=T(ce,N);return Se>=0&&(C=ve(Oe(ce,".",Se)),I(C)||(C=ve(Oe(ce,".",Se,!0)))),C.equals(v)||(Z(C),R==null||R(C.isEmpty()?null:yt(Mt,C)),ne===void 0&&K(C,N)),C}return v},Ie=he(),Ze=function E(g){if(V(),Y(g),!s.current){var N=A(g),C=ve(N);C.isNaN()||D(C,!0)}Ct==null||Ct(g),Ie(function(){var U=g;vt||(U=g.replace(/。/g,".")),U!==g&&E(U)})},ue=function(){s.current=!0},me=function(){s.current=!1,Ze(_e.current.value)},gt=function(g){Ze(g.target.value)},Qe=function(g){var N;if(!(g&&oe||!g&&q)){n.current=!1;var C=ve(f.current?ge(B):B);g||(C=C.negate());var U=(v||ve(0)).add(C.toString()),ce=D(U,!1);Nt==null||Nt(yt(Mt,ce),{offset:f.current?ge(B):B,type:g?"up":"down"}),(N=_e.current)===null||N===void 0||N.focus()}},Ne=function(g){var N=ve(A(M)),C=N;N.isNaN()?C=v:C=D(N,g),ne!==void 0?K(v,!1):C.isNaN()||K(C,!1)},Je=function(){n.current=!0},qe=function(g){var N=g.which,C=g.shiftKey;n.current=!0,C?f.current=!0:f.current=!1,N===fe.Z.ENTER&&(s.current||(n.current=!1),Ne(!1),Zt==null||Zt(g)),Xe!==!1&&!s.current&&[fe.Z.UP,fe.Z.DOWN].includes(N)&&(Qe(fe.Z.UP===N),g.preventDefault())},Le=function(){n.current=!1,f.current=!1},it=function(){Ne(!1),u(!1),n.current=!1};return(0,We.o)(function(){v.isInvalidate()||K(v,!1)},[xe]),(0,We.o)(function(){var E=ve(ne);S(E);var g=ve(A(M));(!E.equals(g)||!n.current||mt)&&K(E,n.current)},[ne]),(0,We.o)(function(){mt&&se()},[M]),c.createElement("div",{className:l()(b,O,(i={},(0,d.Z)(i,"".concat(b,"-focused"),t),(0,d.Z)(i,"".concat(b,"-disabled"),Pe),(0,d.Z)(i,"".concat(b,"-readonly"),$e),(0,d.Z)(i,"".concat(b,"-not-a-number"),v.isNaN()),(0,d.Z)(i,"".concat(b,"-out-of-range"),!v.isInvalidate()&&!I(v)),i)),style:G,onFocus:function(){u(!0)},onBlur:it,onKeyDown:qe,onKeyUp:Le,onCompositionStart:ue,onCompositionEnd:me,onBeforeInput:Je},Rt&&c.createElement(St,{prefixCls:b,upNode:dt,downNode:we,upDisabled:oe,downDisabled:q,onStep:Qe}),c.createElement("div",{className:"".concat(bt,"-wrap")},c.createElement("input",(0,h.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":$,"aria-valuemax":H,"aria-valuenow":v.isInvalidate()?null:v.toString(),step:B},Ot,{ref:(0,F.sQ)(_e,o),className:bt,value:M,onChange:gt,disabled:Pe,readOnly:$e}))))});ct.displayName="InputNumber";var ft=ct,Fe=ft,Me=a(53124),ie=a(98866),Ge=a(97647),nt=a(65223),_t=a(4173),It=a(96159),Ue=a(9708),Ke=function(r,o){var i={};for(var y in r)Object.prototype.hasOwnProperty.call(r,y)&&o.indexOf(y)<0&&(i[y]=r[y]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var b=0,y=Object.getOwnPropertySymbols(r);b3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof e=="string"?e:"".concat(u,"-").concat(n),error:e,errorStatus:t}}function pe(e){var t=e.help,u=e.helpStatus,n=e.errors,s=n===void 0?F:n,f=e.warnings,p=f===void 0?F:f,m=e.className,v=e.fieldId,S=e.onVisibleChanged,Z=l.useContext(h.Rk),T=Z.prefixCls,A=l.useContext(tt.E_),L=A.getPrefixCls,W="".concat(T,"-item-explain"),j=L(),ae=We(s),M=We(p),Y=l.useMemo(function(){return t!=null?[Ve(t,u,"help")]:[].concat((0,k.Z)(ae.map(function(P,_){return Ve(P,"error","error",_)})),(0,k.Z)(M.map(function(P,_){return Ve(P,"warning","warning",_)})))},[t,u,ae,M]),K={};return v&&(K.id="".concat(v,"_help")),l.createElement(be.Z,{motionDeadline:c.ZP.motionDeadline,motionName:"".concat(j,"-show-help"),visible:!!Y.length,onVisibleChanged:S},function(P){var _=P.className,oe=P.style;return l.createElement("div",(0,x.Z)({},K,{className:Ce()(W,_,m),style:oe,role:"alert"}),l.createElement(be.V,(0,x.Z)({keys:Y},c.ZP,{motionName:"".concat(j,"-show-help-item"),component:!1}),function(q){var ee=q.key,te=q.error,V=q.errorStatus,se=q.className,Ee=q.style;return l.createElement("div",{key:ee,className:Ce()(se,(0,d.Z)({},"".concat(W,"-").concat(V),V)),style:Ee},te)}))})}var re=a(90484),J=a(48526),w=a(98866),de=a(97647);function Q(e){return typeof e=="object"&&e!=null&&e.nodeType===1}function le(e,t){return(!t||e!=="hidden")&&e!=="visible"&&e!=="clip"}function ge(e,t){if(e.clientHeightt||f>e&&p=t&&m>=u?f-e-n:p>t&&mu?p-t+s:0}var He=function(e,t){var u=window,n=t.scrollMode,s=t.block,f=t.inline,p=t.boundary,m=t.skipOverflowHiddenElements,v=typeof p=="function"?p:function(xt){return xt!==p};if(!Q(e))throw new TypeError("Invalid target");for(var S,Z,T=document.scrollingElement||document.documentElement,A=[],L=e;Q(L)&&v(L);){if((L=(Z=(S=L).parentElement)==null?S.getRootNode().host||null:Z)===T){A.push(L);break}L!=null&&L===document.body&&ge(L)&&!ge(document.documentElement)||L!=null&&ge(L,m)&&A.push(L)}for(var W=u.visualViewport?u.visualViewport.width:innerWidth,j=u.visualViewport?u.visualViewport.height:innerHeight,ae=window.scrollX||pageXOffset,M=window.scrollY||pageYOffset,Y=e.getBoundingClientRect(),K=Y.height,P=Y.width,_=Y.top,oe=Y.right,q=Y.bottom,ee=Y.left,te=s==="start"||s==="nearest"?_:s==="end"?q:_+K/2,V=f==="center"?ee+P/2:f==="end"?oe:ee,se=[],Ee=0;Ee=0&&ee>=0&&q<=j&&oe<=W&&_>=ue&&q<=gt&&ee>=Qe&&oe<=me)return se;var Ne=getComputedStyle(I),Je=parseInt(Ne.borderLeftWidth,10),qe=parseInt(Ne.borderTopWidth,10),Le=parseInt(Ne.borderRightWidth,10),it=parseInt(Ne.borderBottomWidth,10),E=0,g=0,N="offsetWidth"in I?I.offsetWidth-I.clientWidth-Je-Le:0,C="offsetHeight"in I?I.offsetHeight-I.clientHeight-qe-it:0,U="offsetWidth"in I?I.offsetWidth===0?0:Ze/I.offsetWidth:0,ce="offsetHeight"in I?I.offsetHeight===0?0:Ie/I.offsetHeight:0;if(T===I)E=s==="start"?te:s==="end"?te-j:s==="nearest"?Ae(M,M+j,j,qe,it,M+te,M+te+K,K):te-j/2,g=f==="start"?V:f==="center"?V-W/2:f==="end"?V-W:Ae(ae,ae+W,W,Je,Le,ae+V,ae+V+P,P),E=Math.max(0,E+M),g=Math.max(0,g+ae);else{E=s==="start"?te-ue-qe:s==="end"?te-gt+it+C:s==="nearest"?Ae(ue,gt,Ie,qe,it+C,te,te+K,K):te-(ue+Ie/2)+C/2,g=f==="start"?V-Qe-Je:f==="center"?V-(Qe+Ze/2)+N/2:f==="end"?V-me+Le+N:Ae(Qe,me,Ze,Je,Le+N,V,V+P,P);var Se=I.scrollLeft,Te=I.scrollTop;te+=Te-(E=Math.max(0,Math.min(Te+E/ce,I.scrollHeight-Ie/ce+C))),V+=Se-(g=Math.max(0,Math.min(Se+g/U,I.scrollWidth-Ze/U+N)))}se.push({el:I,top:E,left:g})}return se};function ve(e){return e===Object(e)&&Object.keys(e).length!==0}function Oe(e,t){t===void 0&&(t="auto");var u="scrollBehavior"in document.body.style;e.forEach(function(n){var s=n.el,f=n.top,p=n.left;s.scroll&&u?s.scroll({top:f,left:p,behavior:t}):(s.scrollTop=f,s.scrollLeft=p)})}function Be(e){return e===!1?{block:"end",inline:"nearest"}:ve(e)?e:{block:"start",inline:"nearest"}}function De(e,t){var u=e.isConnected||e.ownerDocument.documentElement.contains(e);if(ve(t)&&typeof t.behavior=="function")return t.behavior(u?He(e,t):[]);if(!!u){var n=Be(t);return Oe(He(e,n),n.behavior)}}var ut=De,St=["parentNode"],st="form_item";function ze(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function rt(e,t){if(!!e.length){var u=e.join("_");if(t)return"".concat(t,"_").concat(u);var n=St.includes(u);return n?"".concat(st,"_").concat(u):u}}function he(e){var t=ze(e);return t.join("_")}function ke(e){var t=(0,J.cI)(),u=(0,fe.Z)(t,1),n=u[0],s=l.useRef({}),f=l.useMemo(function(){return e!=null?e:(0,x.Z)((0,x.Z)({},n),{__INTERNAL__:{itemRef:function(m){return function(v){var S=he(m);v?s.current[S]=v:delete s.current[S]}}},scrollToField:function(m){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},S=ze(m),Z=rt(S,f.__INTERNAL__.name),T=Z?document.getElementById(Z):null;T&&ut(T,(0,x.Z)({scrollMode:"if-needed",block:"nearest"},v))},getFieldInstance:function(m){var v=he(m);return s.current[v]}})},[e,n]);return[f]}var yt=function(e,t){var u={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(u[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(e);s0||it.length>0||e.extra){var Tt=[];(e.help||Le.length>0)&&Tt.push("".concat(Te,"_help")),e.extra&&Tt.push("".concat(Te,"_extra")),et["aria-describedby"]=Tt.join(" ")}Le.length>0&&(et["aria-invalid"]="true"),xt&&(et["aria-required"]="true"),(0,Me.Yr)(m)&&(et.ref=E(Se,m));var Kt=new Set([].concat((0,k.Z)(ze(A)),(0,k.Z)(ze(q))));Kt.forEach(function(ot){et[ot]=function(){for(var Pt,Vt,At,Bt,Lt,Ut=arguments.length,Wt=new Array(Ut),wt=0;wt0){var ct=Q[0]/2;Re.paddingLeft=ct,Re.paddingRight=ct}if(Q&&Q[1]>0&&!ge){var ft=Q[1]/2;Re.paddingTop=ft,Re.paddingBottom=ft}return st&&(Re.flex=c(st),le===!1&&!Re.minWidth&&(Re.minWidth=0)),Ce.createElement("div",(0,d.Z)({},rt,{style:(0,d.Z)((0,d.Z)({},Re),ze),className:yt,ref:Ve}),St)});ye.Z=We},92820:function(je,ye,a){"use strict";var h=a(22122),d=a(96156),x=a(90484),k=a(28481),Et=a(94184),Ce=a.n(Et),be=a(67294),l=a(53124),tt=a(98082),c=a(24308),fe=a(93355),We=a(99134),F=function(w,de){var Q={};for(var le in w)Object.prototype.hasOwnProperty.call(w,le)&&de.indexOf(le)<0&&(Q[le]=w[le]);if(w!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ge=0,le=Object.getOwnPropertySymbols(w);ge0?Ke[0]/-2:void 0,o=Ke[1]!=null&&Ke[1]>0?Ke[1]/-2:void 0;if(r&&(at.marginLeft=r,at.marginRight=r),nt){var i=(0,k.Z)(Ke,2);at.rowGap=i[1]}else o&&(at.marginTop=o,at.marginBottom=o);var y=(0,k.Z)(Ke,2),b=y[0],O=y[1],G=be.useMemo(function(){return{gutter:[b,O],wrap:ut,supportFlexGap:nt}},[b,O,ut,nt]);return be.createElement(We.Z.Provider,{value:G},be.createElement("div",(0,h.Z)({},St,{className:Dt,style:(0,h.Z)((0,h.Z)({},at),ve),ref:de}),Oe))});ye.Z=J},6999:function(je,ye,a){"use strict";var h=a(38663),d=a.n(h),x=a(80638),k=a.n(x)},85986:function(je,ye,a){"use strict";a.d(ye,{Z:function(){return at}});var h=a(22122),d=a(96156),x=a(90484),k=a(28481),Et=a(57254),Ce=a(58491),be=a(94184),l=a.n(be),tt=a(81253),c=a(67294),fe=a(15105),We=a(8410),F=a(42550),Ve=a(6610),pe=a(5991);function re(){return typeof BigInt=="function"}function J(r){var o=r.trim(),i=o.startsWith("-");i&&(o=o.slice(1)),o=o.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),o.startsWith(".")&&(o="0".concat(o));var y=o||"0",b=y.split("."),O=b[0]||"0",G=b[1]||"0";O==="0"&&G==="0"&&(i=!1);var $=i?"-":"";return{negative:i,negativeStr:$,trimStr:y,integerStr:O,decimalStr:G,fullStr:"".concat($).concat(y)}}function w(r){var o=String(r);return!Number.isNaN(Number(o))&&o.includes("e")}function de(r){var o=String(r);if(w(r)){var i=Number(o.slice(o.indexOf("e-")+2)),y=o.match(/\.(\d+)/);return(y==null?void 0:y[1])&&(i+=y[1].length),i}return o.includes(".")&&le(o)?o.length-o.indexOf(".")-1:0}function Q(r){var o=String(r);if(w(r)){if(r>Number.MAX_SAFE_INTEGER)return String(re()?BigInt(r).toString():Number.MAX_SAFE_INTEGER);if(rNumber.MAX_SAFE_INTEGER)return new r(Number.MAX_SAFE_INTEGER);if(b0&&arguments[0]!==void 0?arguments[0]:!0;return i?this.isInvalidate()?"":Q(this.number):this.origin}}]),r}(),He=function(){function r(o){if((0,Ve.Z)(this,r),this.origin="",this.negative=void 0,this.integer=void 0,this.decimal=void 0,this.decimalLen=void 0,this.empty=void 0,this.nan=void 0,!o&&o!==0||!String(o).trim()){this.empty=!0;return}if(this.origin=String(o),o==="-"){this.nan=!0;return}var i=o;if(w(i)&&(i=Number(i)),i=typeof i=="string"?i:Q(i),le(i)){var y=J(i);this.negative=y.negative;var b=y.trimStr.split(".");this.integer=BigInt(b[0]);var O=b[1]||"0";this.decimal=BigInt(O),this.decimalLen=O.length}else this.nan=!0}return(0,pe.Z)(r,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(i){var y="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(i,"0"));return BigInt(y)}},{key:"negate",value:function(){var i=new r(this.toString());return i.negative=!i.negative,i}},{key:"add",value:function(i){if(this.isInvalidate())return new r(i);var y=new r(i);if(y.isInvalidate())return this;var b=Math.max(this.getDecimalStr().length,y.getDecimalStr().length),O=this.alignDecimal(b),G=y.alignDecimal(b),$=(O+G).toString(),H=J($),z=H.negativeStr,B=H.trimStr,X="".concat(z).concat(B.padStart(b+1,"0"));return new r("".concat(X.slice(0,-b),".").concat(X.slice(-b)))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(i){return this.toString()===(i==null?void 0:i.toString())}},{key:"lessEquals",value:function(i){return this.add(i.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return i?this.isInvalidate()?"":J("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),r}();function ve(r){return re()?new He(r):new Ae(r)}function Oe(r,o,i){var y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(r==="")return"";var b=J(r),O=b.negativeStr,G=b.integerStr,$=b.decimalStr,H="".concat(o).concat($),z="".concat(O).concat(G);if(i>=0){var B=Number($[i]);if(B>=5&&!y){var X=ve(r).add("".concat(O,"0.").concat("0".repeat(i)).concat(10-B));return Oe(X.toString(),o,i,y)}return i===0?z:"".concat(z).concat(o).concat($.padEnd(i,"0").slice(0,i))}return H===".0"?z:"".concat(z).concat(H)}var Be=a(31131),De=200,ut=600;function St(r){var o=r.prefixCls,i=r.upNode,y=r.downNode,b=r.upDisabled,O=r.downDisabled,G=r.onStep,$=c.useRef(),H=c.useRef();H.current=G;var z=function(we,Xe){we.preventDefault(),H.current(Xe);function Ye(){H.current(Xe),$.current=setTimeout(Ye,De)}$.current=setTimeout(Ye,ut)},B=function(){clearTimeout($.current)};if(c.useEffect(function(){return B},[]),(0,Be.Z)())return null;var X="".concat(o,"-handler"),ne=l()(X,"".concat(X,"-up"),(0,d.Z)({},"".concat(X,"-up-disabled"),b)),Pe=l()(X,"".concat(X,"-down"),(0,d.Z)({},"".concat(X,"-down-disabled"),O)),$e={unselectable:"on",role:"button",onMouseUp:B,onMouseLeave:B};return c.createElement("div",{className:"".concat(X,"-wrap")},c.createElement("span",(0,h.Z)({},$e,{onMouseDown:function(we){z(we,!0)},"aria-label":"Increase Value","aria-disabled":b,className:ne}),i||c.createElement("span",{unselectable:"on",className:"".concat(o,"-handler-up-inner")})),c.createElement("span",(0,h.Z)({},$e,{onMouseDown:function(we){z(we,!1)},"aria-label":"Decrease Value","aria-disabled":O,className:Pe}),y||c.createElement("span",{unselectable:"on",className:"".concat(o,"-handler-down-inner")})))}var st=a(80334);function ze(r,o){var i=(0,c.useRef)(null);function y(){try{var O=r.selectionStart,G=r.selectionEnd,$=r.value,H=$.substring(0,O),z=$.substring(G);i.current={start:O,end:G,value:$,beforeTxt:H,afterTxt:z}}catch(B){}}function b(){if(r&&i.current&&o)try{var O=r.value,G=i.current,$=G.beforeTxt,H=G.afterTxt,z=G.start,B=O.length;if(O.endsWith(H))B=O.length-i.current.afterTxt.length;else if(O.startsWith($))B=$.length;else{var X=$[z-1],ne=O.indexOf(X,z-1);ne!==-1&&(B=ne+1)}r.setSelectionRange(B,B)}catch(Pe){(0,st.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(Pe.message))}}return[y,b]}var rt=a(75164),he=function(){var r=(0,c.useRef)(0),o=function(){rt.Z.cancel(r.current)};return(0,c.useEffect)(function(){return o},[]),function(i){o(),r.current=(0,rt.Z)(function(){i()})}},ke=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],yt=function(o,i){return o||i.isEmpty()?i.toString():i.toNumber()},Re=function(o){var i=ve(o);return i.isInvalidate()?null:i},ct=c.forwardRef(function(r,o){var i,y=r.prefixCls,b=y===void 0?"rc-input-number":y,O=r.className,G=r.style,$=r.min,H=r.max,z=r.step,B=z===void 0?1:z,X=r.defaultValue,ne=r.value,Pe=r.disabled,$e=r.readOnly,dt=r.upHandler,we=r.downHandler,Xe=r.keyboard,Ye=r.controls,Rt=Ye===void 0?!0:Ye,Mt=r.stringMode,vt=r.parser,mt=r.formatter,xe=r.precision,lt=r.decimalSeparator,R=r.onChange,Ct=r.onInput,Zt=r.onPressEnter,Nt=r.onStep,Ot=(0,tt.Z)(r,ke),bt="".concat(b,"-input"),_e=c.useRef(null),pt=c.useState(!1),e=(0,k.Z)(pt,2),t=e[0],u=e[1],n=c.useRef(!1),s=c.useRef(!1),f=c.useRef(!1),p=c.useState(function(){return ve(ne!=null?ne:X)}),m=(0,k.Z)(p,2),v=m[0],S=m[1];function Z(E){ne===void 0&&S(E)}var T=c.useCallback(function(E,g){if(!g)return xe>=0?xe:Math.max(de(E),de(B))},[xe,B]),A=c.useCallback(function(E){var g=String(E);if(vt)return vt(g);var N=g;return lt&&(N=N.replace(lt,".")),N.replace(/[^\w.-]+/g,"")},[vt,lt]),L=c.useRef(""),W=c.useCallback(function(E,g){if(mt)return mt(E,{userTyping:g,input:String(L.current)});var N=typeof E=="number"?Q(E):E;if(!g){var C=T(N,g);if(le(N)&&(lt||C>=0)){var U=lt||".";N=Oe(N,U,C)}}return N},[mt,T,lt]),j=c.useState(function(){var E=X!=null?X:ne;return v.isInvalidate()&&["string","number"].includes((0,x.Z)(E))?Number.isNaN(E)?"":E:W(v.toString(),!1)}),ae=(0,k.Z)(j,2),M=ae[0],Y=ae[1];L.current=M;function K(E,g){Y(W(E.isInvalidate()?E.toString(!1):E.toString(!g),g))}var P=c.useMemo(function(){return Re(H)},[H,xe]),_=c.useMemo(function(){return Re($)},[$,xe]),oe=c.useMemo(function(){return!P||!v||v.isInvalidate()?!1:P.lessEquals(v)},[P,v]),q=c.useMemo(function(){return!_||!v||v.isInvalidate()?!1:v.lessEquals(_)},[_,v]),ee=ze(_e.current,t),te=(0,k.Z)(ee,2),V=te[0],se=te[1],Ee=function(g){return P&&!g.lessEquals(P)?P:_&&!_.lessEquals(g)?_:null},I=function(g){return!Ee(g)},D=function(g,N){var C=g,U=I(C)||C.isEmpty();if(!C.isEmpty()&&!N&&(C=Ee(C)||C,U=!0),!$e&&!Pe&&U){var ce=C.toString(),Se=T(ce,N);return Se>=0&&(C=ve(Oe(ce,".",Se)),I(C)||(C=ve(Oe(ce,".",Se,!0)))),C.equals(v)||(Z(C),R==null||R(C.isEmpty()?null:yt(Mt,C)),ne===void 0&&K(C,N)),C}return v},Ie=he(),Ze=function E(g){if(V(),Y(g),!s.current){var N=A(g),C=ve(N);C.isNaN()||D(C,!0)}Ct==null||Ct(g),Ie(function(){var U=g;vt||(U=g.replace(/。/g,".")),U!==g&&E(U)})},ue=function(){s.current=!0},me=function(){s.current=!1,Ze(_e.current.value)},gt=function(g){Ze(g.target.value)},Qe=function(g){var N;if(!(g&&oe||!g&&q)){n.current=!1;var C=ve(f.current?ge(B):B);g||(C=C.negate());var U=(v||ve(0)).add(C.toString()),ce=D(U,!1);Nt==null||Nt(yt(Mt,ce),{offset:f.current?ge(B):B,type:g?"up":"down"}),(N=_e.current)===null||N===void 0||N.focus()}},Ne=function(g){var N=ve(A(M)),C=N;N.isNaN()?C=v:C=D(N,g),ne!==void 0?K(v,!1):C.isNaN()||K(C,!1)},Je=function(){n.current=!0},qe=function(g){var N=g.which,C=g.shiftKey;n.current=!0,C?f.current=!0:f.current=!1,N===fe.Z.ENTER&&(s.current||(n.current=!1),Ne(!1),Zt==null||Zt(g)),Xe!==!1&&!s.current&&[fe.Z.UP,fe.Z.DOWN].includes(N)&&(Qe(fe.Z.UP===N),g.preventDefault())},Le=function(){n.current=!1,f.current=!1},it=function(){Ne(!1),u(!1),n.current=!1};return(0,We.o)(function(){v.isInvalidate()||K(v,!1)},[xe]),(0,We.o)(function(){var E=ve(ne);S(E);var g=ve(A(M));(!E.equals(g)||!n.current||mt)&&K(E,n.current)},[ne]),(0,We.o)(function(){mt&&se()},[M]),c.createElement("div",{className:l()(b,O,(i={},(0,d.Z)(i,"".concat(b,"-focused"),t),(0,d.Z)(i,"".concat(b,"-disabled"),Pe),(0,d.Z)(i,"".concat(b,"-readonly"),$e),(0,d.Z)(i,"".concat(b,"-not-a-number"),v.isNaN()),(0,d.Z)(i,"".concat(b,"-out-of-range"),!v.isInvalidate()&&!I(v)),i)),style:G,onFocus:function(){u(!0)},onBlur:it,onKeyDown:qe,onKeyUp:Le,onCompositionStart:ue,onCompositionEnd:me,onBeforeInput:Je},Rt&&c.createElement(St,{prefixCls:b,upNode:dt,downNode:we,upDisabled:oe,downDisabled:q,onStep:Qe}),c.createElement("div",{className:"".concat(bt,"-wrap")},c.createElement("input",(0,h.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":$,"aria-valuemax":H,"aria-valuenow":v.isInvalidate()?null:v.toString(),step:B},Ot,{ref:(0,F.sQ)(_e,o),className:bt,value:M,onChange:gt,disabled:Pe,readOnly:$e}))))});ct.displayName="InputNumber";var ft=ct,Fe=ft,Me=a(53124),ie=a(98866),Ge=a(97647),nt=a(65223),_t=a(4173),It=a(96159),Ue=a(9708),Ke=function(r,o){var i={};for(var y in r)Object.prototype.hasOwnProperty.call(r,y)&&o.indexOf(y)<0&&(i[y]=r[y]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var b=0,y=Object.getOwnPropertySymbols(r);b0){var no=ae[0]/2;sr.paddingLeft=no,sr.paddingRight=no}if(ae&&ae[1]>0&&!Qe){var Fn=ae[1]/2;sr.paddingTop=Fn,sr.paddingBottom=Fn}return Gn&&(sr.flex=_a(Gn),ve===!1&&!sr.minWidth&&(sr.minWidth=0)),On.createElement("div",(0,se.Z)({},Ka,{style:(0,se.Z)((0,se.Z)({},sr),_t),className:ms,ref:Bn}),Pr)});Ve.Z=Tu},92820:function(Za,Ve,mt){"use strict";var It=mt(22122),se=mt(96156),k=mt(90484),Lr=mt(28481),xu=mt(94184),On=mt.n(xu),ze=mt(67294),bu=mt(53124),wu=mt(98082),_a=mt(24308),Nn=mt(93355),Tu=mt(99134),Et=function(kt,ir){var ae={};for(var ve in kt)Object.prototype.hasOwnProperty.call(kt,ve)&&ir.indexOf(ve)<0&&(ae[ve]=kt[ve]);if(kt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qe=0,ve=Object.getOwnPropertySymbols(kt);Qe0?Xr[0]/-2:void 0,$a=Xr[1]!=null&&Xr[1]>0?Xr[1]/-2:void 0;if(so&&(ja.marginLeft=so,ja.marginRight=so),io){var Ss=(0,Lr.Z)(Xr,2);ja.rowGap=Ss[1]}else $a&&(ja.marginTop=$a,ja.marginBottom=$a);var Cu=(0,Lr.Z)(Xr,2),xs=Cu[0],lo=Cu[1],tt=ze.useMemo(function(){return{gutter:[xs,lo],wrap:zn,supportFlexGap:io}},[xs,lo,zn,io]);return ze.createElement(Tu.Z.Provider,{value:tt},ze.createElement("div",(0,It.Z)({},Pr,{className:_s,style:(0,It.Z)((0,It.Z)({},ja),ao),ref:ir}),Sa))});Ve.Z=Ir},6999:function(Za,Ve,mt){"use strict";var It=mt(38663),se=mt.n(It),k=mt(80638),Lr=mt.n(k)},71230:function(Za,Ve,mt){"use strict";var It=mt(92820);Ve.Z=It.Z},13062:function(Za,Ve,mt){"use strict";var It=mt(38663),se=mt.n(It),k=mt(6999)},15916:function(Za,Ve,mt){"use strict";mt.d(Ve,{S1:function(){return dB}});var It={};mt.r(It),mt.d(It,{Arc:function(){return ed},BezierCurve:function(){return Wf},BoundingRect:function(){return ht},Circle:function(){return ua},CompoundPath:function(){return rd},Ellipse:function(){return Jp},Group:function(){return rt},Image:function(){return _e},IncrementalDisplayable:function(){return HO},Line:function(){return de},LinearGradient:function(){return gl},OrientedBoundingRect:function(){return Zf},Path:function(){return pt},Point:function(){return lt},Polygon:function(){return Ye},Polyline:function(){return Ze},RadialGradient:function(){return Rx},Rect:function(){return bt},Ring:function(){return Hf},Sector:function(){return Ue},Text:function(){return Ct},applyTransform:function(){return Gr},clipPointsByRect:function(){return Bx},clipRectByRect:function(){return KO},createIcon:function(){return ml},extendPath:function(){return YO},extendShape:function(){return WO},getShapeClass:function(){return nd},getTransform:function(){return Di},groupTransition:function(){return yl},initProps:function(){return Ht},isElementRemoved:function(){return Co},lineLineIntersect:function(){return Vx},linePolygonIntersect:function(){return _l},makeImage:function(){return Ex},makePath:function(){return qf},mergePath:function(){return xr},registerShape:function(){return zr},removeElement:function(){return vn},removeElementWithFadeOut:function(){return tl},resizePath:function(){return Ox},setTooltipConfig:function(){return Fo},subPixelOptimize:function(){return jf},subPixelOptimizeLine:function(){return Go},subPixelOptimizeRect:function(){return ZO},transformDirection:function(){return $f},traverseElements:function(){return yn},updateProps:function(){return At}});/*! ***************************************************************************** +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[7118,1322,9464,1981,2869,7013,9719,2383],{80638:function(){},15746:function(Xa,Ve,mt){"use strict";var It=mt(21584);Ve.Z=It.Z},89032:function(Xa,Ve,mt){"use strict";var It=mt(38663),se=mt.n(It),k=mt(6999)},99134:function(Xa,Ve,mt){"use strict";var It=mt(67294),se=(0,It.createContext)({});Ve.Z=se},21584:function(Xa,Ve,mt){"use strict";var It=mt(96156),se=mt(22122),k=mt(90484),Lr=mt(94184),xu=mt.n(Lr),On=mt(67294),ze=mt(53124),bu=mt(99134),wu=function(Et,Bn){var $e={};for(var ge in Et)Object.prototype.hasOwnProperty.call(Et,ge)&&Bn.indexOf(ge)<0&&($e[ge]=Et[ge]);if(Et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ir=0,ge=Object.getOwnPropertySymbols(Et);Ir0){var io=ae[0]/2;sr.paddingLeft=io,sr.paddingRight=io}if(ae&&ae[1]>0&&!Qe){var Fn=ae[1]/2;sr.paddingTop=Fn,sr.paddingBottom=Fn}return Gn&&(sr.flex=_a(Gn),ve===!1&&!sr.minWidth&&(sr.minWidth=0)),On.createElement("div",(0,se.Z)({},qa,{style:(0,se.Z)((0,se.Z)({},sr),St),className:ms,ref:Bn}),Pr)});Ve.Z=Tu},92820:function(Xa,Ve,mt){"use strict";var It=mt(22122),se=mt(96156),k=mt(90484),Lr=mt(28481),xu=mt(94184),On=mt.n(xu),ze=mt(67294),bu=mt(53124),wu=mt(98082),_a=mt(24308),Nn=mt(93355),Tu=mt(99134),Et=function(kt,ir){var ae={};for(var ve in kt)Object.prototype.hasOwnProperty.call(kt,ve)&&ir.indexOf(ve)<0&&(ae[ve]=kt[ve]);if(kt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qe=0,ve=Object.getOwnPropertySymbols(kt);Qe0?Xr[0]/-2:void 0,Qa=Xr[1]!=null&&Xr[1]>0?Xr[1]/-2:void 0;if(lo&&($a.marginLeft=lo,$a.marginRight=lo),oo){var Ss=(0,Lr.Z)(Xr,2);$a.rowGap=Ss[1]}else Qa&&($a.marginTop=Qa,$a.marginBottom=Qa);var Cu=(0,Lr.Z)(Xr,2),xs=Cu[0],uo=Cu[1],tt=ze.useMemo(function(){return{gutter:[xs,uo],wrap:zn,supportFlexGap:oo}},[xs,uo,zn,oo]);return ze.createElement(Tu.Z.Provider,{value:tt},ze.createElement("div",(0,It.Z)({},Pr,{className:_s,style:(0,It.Z)((0,It.Z)({},$a),no),ref:ir}),Sa))});Ve.Z=Ir},6999:function(Xa,Ve,mt){"use strict";var It=mt(38663),se=mt.n(It),k=mt(80638),Lr=mt.n(k)},71230:function(Xa,Ve,mt){"use strict";var It=mt(92820);Ve.Z=It.Z},13062:function(Xa,Ve,mt){"use strict";var It=mt(38663),se=mt.n(It),k=mt(6999)},72866:function(Xa,Ve,mt){"use strict";mt.d(Ve,{S1:function(){return dB}});var It={};mt.r(It),mt.d(It,{Arc:function(){return ed},BezierCurve:function(){return Wf},BoundingRect:function(){return ht},Circle:function(){return ua},CompoundPath:function(){return rd},Ellipse:function(){return Jp},Group:function(){return rt},Image:function(){return _e},IncrementalDisplayable:function(){return HO},Line:function(){return de},LinearGradient:function(){return gl},OrientedBoundingRect:function(){return Zf},Path:function(){return pt},Point:function(){return lt},Polygon:function(){return Ye},Polyline:function(){return Ze},RadialGradient:function(){return Rx},Rect:function(){return bt},Ring:function(){return Hf},Sector:function(){return Ue},Text:function(){return Ct},applyTransform:function(){return Gr},clipPointsByRect:function(){return Bx},clipRectByRect:function(){return KO},createIcon:function(){return ml},extendPath:function(){return YO},extendShape:function(){return WO},getShapeClass:function(){return nd},getTransform:function(){return Di},groupTransition:function(){return yl},initProps:function(){return Ht},isElementRemoved:function(){return Ao},lineLineIntersect:function(){return Vx},linePolygonIntersect:function(){return _l},makeImage:function(){return Ex},makePath:function(){return qf},mergePath:function(){return xr},registerShape:function(){return zr},removeElement:function(){return vn},removeElementWithFadeOut:function(){return tl},resizePath:function(){return Ox},setTooltipConfig:function(){return Ho},subPixelOptimize:function(){return jf},subPixelOptimizeLine:function(){return Fo},subPixelOptimizeRect:function(){return ZO},transformDirection:function(){return $f},traverseElements:function(){return yn},updateProps:function(){return Mt}});/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any @@ -11,7 +11,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var se=function(r,e){return se=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,a){t.__proto__=a}||function(t,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(t[n]=a[n])},se(r,e)};function k(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");se(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var Lr=function(){return Lr=Object.assign||function(e){for(var t,a=1,n=arguments.length;a=0;s--)(o=r[s])&&(i=(n<3?o(i):n>3?o(e,t,i):o(e,t))||i);return n>3&&i&&Object.defineProperty(e,t,i),i}function ze(r,e){return function(t,a){e(t,a,r)}}function bu(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}function wu(r,e,t,a){function n(i){return i instanceof t?i:new t(function(o){o(i)})}return new(t||(t=Promise))(function(i,o){function s(f){try{u(a.next(f))}catch(h){o(h)}}function l(f){try{u(a.throw(f))}catch(h){o(h)}}function u(f){f.done?i(f.value):n(f.value).then(s,l)}u((a=a.apply(r,e||[])).next())})}function _a(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},a,n,i,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(u){return function(f){return l([u,f])}}function l(u){if(a)throw new TypeError("Generator is already executing.");for(;t;)try{if(a=1,n&&(i=u[0]&2?n.return:u[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,u[1])).done)return i;switch(n=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,n=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]=r.length&&(r=void 0),{value:r&&r[a++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Bn(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var a=t.call(r),n,i=[],o;try{for(;(e===void 0||e-- >0)&&!(n=a.next()).done;)i.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(t=a.return)&&t.call(a)}finally{if(o)throw o.error}}return i}function $e(){for(var r=[],e=0;e1||s(v,c)})})}function s(v,c){try{l(a[v](c))}catch(p){h(i[0][3],p)}}function l(v){v.value instanceof kt?Promise.resolve(v.value.v).then(u,f):h(i[0][2],v)}function u(v){s("next",v)}function f(v){s("throw",v)}function h(v,c){v(c),i.shift(),i.length&&s(i[0][0],i[0][1])}}function ae(r){var e,t;return e={},a("next"),a("throw",function(n){throw n}),a("return"),e[Symbol.iterator]=function(){return this},e;function a(n,i){e[n]=r[n]?function(o){return(t=!t)?{value:kt(r[n](o)),done:n==="return"}:i?i(o):o}:i}}function ve(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=r[Symbol.asyncIterator],t;return e?e.call(r):(r=typeof Et=="function"?Et(r):r[Symbol.iterator](),t={},a("next"),a("throw"),a("return"),t[Symbol.asyncIterator]=function(){return this},t);function a(i){t[i]=r[i]&&function(o){return new Promise(function(s,l){o=r[i](o),n(s,l,o.done,o.value)})}}function n(i,o,s,l){Promise.resolve(l).then(function(u){i({value:u,done:s})},o)}}function Qe(r,e){return Object.defineProperty?Object.defineProperty(r,"raw",{value:e}):r.raw=e,r}var Xa=Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e};function Vn(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&Nn(e,r,t);return Xa(e,r),e}function ao(r){return r&&r.__esModule?r:{default:r}}function Sa(r,e,t,a){if(t==="a"&&!a)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?r!==e||!a:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?a:t==="a"?a.call(r):a?a.value:e.get(r)}function xa(r,e,t,a,n){if(a==="m")throw new TypeError("Private method is not writable");if(a==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?r!==e||!n:!e.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return a==="a"?n.call(r,t):n?n.value=t:e.set(r,t),t}var or=function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r}(),zn=function(){function r(){this.browser=new or,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window!="undefined"}return r}(),Pr=new zn;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Pr.wxa=!0,Pr.touchEventsSupported=!0):typeof document=="undefined"&&typeof self!="undefined"?Pr.worker=!0:typeof navigator=="undefined"?(Pr.node=!0,Pr.svgSupported=!0):Gn(navigator.userAgent,Pr);function Gn(r,e){var t=e.browser,a=r.match(/Firefox\/([\d.]+)/),n=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),i=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);a&&(t.firefox=!0,t.version=a[1]),n&&(t.ie=!0,t.version=n[1]),i&&(t.edge=!0,t.version=i[1],t.newEdge=+i[1].split(".")[0]>18),o&&(t.weChat=!0),e.svgSupported=typeof SVGRect!="undefined",e.touchEventsSupported="ontouchstart"in window&&!t.ie&&!t.edge,e.pointerEventsSupported="onpointerdown"in window&&(t.edge||t.ie&&+t.version>=11),e.domSupported=typeof document!="undefined";var s=document.documentElement.style;e.transform3dSupported=(t.ie&&"transition"in s||t.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}var _t=Pr,Ka=12,ye="sans-serif",Ie=Ka+"px "+ye,ms=20,sr=100,no="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function Fn(r){var e={};if(typeof JSON=="undefined")return e;for(var t=0;t=0)s=o*t.length;else for(var l=0;l=0;s--)(o=r[s])&&(i=(n<3?o(i):n>3?o(e,t,i):o(e,t))||i);return n>3&&i&&Object.defineProperty(e,t,i),i}function ze(r,e){return function(t,a){e(t,a,r)}}function bu(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}function wu(r,e,t,a){function n(i){return i instanceof t?i:new t(function(o){o(i)})}return new(t||(t=Promise))(function(i,o){function s(f){try{u(a.next(f))}catch(h){o(h)}}function l(f){try{u(a.throw(f))}catch(h){o(h)}}function u(f){f.done?i(f.value):n(f.value).then(s,l)}u((a=a.apply(r,e||[])).next())})}function _a(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},a,n,i,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(u){return function(f){return l([u,f])}}function l(u){if(a)throw new TypeError("Generator is already executing.");for(;t;)try{if(a=1,n&&(i=u[0]&2?n.return:u[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,u[1])).done)return i;switch(n=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,n=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]=r.length&&(r=void 0),{value:r&&r[a++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Bn(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var a=t.call(r),n,i=[],o;try{for(;(e===void 0||e-- >0)&&!(n=a.next()).done;)i.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(t=a.return)&&t.call(a)}finally{if(o)throw o.error}}return i}function $e(){for(var r=[],e=0;e1||s(v,c)})})}function s(v,c){try{l(a[v](c))}catch(p){h(i[0][3],p)}}function l(v){v.value instanceof kt?Promise.resolve(v.value.v).then(u,f):h(i[0][2],v)}function u(v){s("next",v)}function f(v){s("throw",v)}function h(v,c){v(c),i.shift(),i.length&&s(i[0][0],i[0][1])}}function ae(r){var e,t;return e={},a("next"),a("throw",function(n){throw n}),a("return"),e[Symbol.iterator]=function(){return this},e;function a(n,i){e[n]=r[n]?function(o){return(t=!t)?{value:kt(r[n](o)),done:n==="return"}:i?i(o):o}:i}}function ve(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=r[Symbol.asyncIterator],t;return e?e.call(r):(r=typeof Et=="function"?Et(r):r[Symbol.iterator](),t={},a("next"),a("throw"),a("return"),t[Symbol.asyncIterator]=function(){return this},t);function a(i){t[i]=r[i]&&function(o){return new Promise(function(s,l){o=r[i](o),n(s,l,o.done,o.value)})}}function n(i,o,s,l){Promise.resolve(l).then(function(u){i({value:u,done:s})},o)}}function Qe(r,e){return Object.defineProperty?Object.defineProperty(r,"raw",{value:e}):r.raw=e,r}var Ka=Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e};function Vn(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&Nn(e,r,t);return Ka(e,r),e}function no(r){return r&&r.__esModule?r:{default:r}}function Sa(r,e,t,a){if(t==="a"&&!a)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?r!==e||!a:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?a:t==="a"?a.call(r):a?a.value:e.get(r)}function xa(r,e,t,a,n){if(a==="m")throw new TypeError("Private method is not writable");if(a==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?r!==e||!n:!e.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return a==="a"?n.call(r,t):n?n.value=t:e.set(r,t),t}var or=function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r}(),zn=function(){function r(){this.browser=new or,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window!="undefined"}return r}(),Pr=new zn;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Pr.wxa=!0,Pr.touchEventsSupported=!0):typeof document=="undefined"&&typeof self!="undefined"?Pr.worker=!0:typeof navigator=="undefined"?(Pr.node=!0,Pr.svgSupported=!0):Gn(navigator.userAgent,Pr);function Gn(r,e){var t=e.browser,a=r.match(/Firefox\/([\d.]+)/),n=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),i=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);a&&(t.firefox=!0,t.version=a[1]),n&&(t.ie=!0,t.version=n[1]),i&&(t.edge=!0,t.version=i[1],t.newEdge=+i[1].split(".")[0]>18),o&&(t.weChat=!0),e.svgSupported=typeof SVGRect!="undefined",e.touchEventsSupported="ontouchstart"in window&&!t.ie&&!t.edge,e.pointerEventsSupported="onpointerdown"in window&&(t.edge||t.ie&&+t.version>=11),e.domSupported=typeof document!="undefined";var s=document.documentElement.style;e.transform3dSupported=(t.ie&&"transition"in s||t.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}var St=Pr,qa=12,ye="sans-serif",Ie=qa+"px "+ye,ms=20,sr=100,io="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function Fn(r){var e={};if(typeof JSON=="undefined")return e;for(var t=0;t=0)s=o*t.length;else for(var l=0;l=0;s--)(o=r[s])&&(i=(n<3?o(i):n>3?o(e,t,i):o(e,t))||i);return n>3&&i&&Object.defineProperty(e,t,i),i}function LK(r,e){return function(t,a){e(t,a,r)}}function IK(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}function PK(r,e,t,a){function n(i){return i instanceof t?i:new t(function(o){o(i)})}return new(t||(t=Promise))(function(i,o){function s(f){try{u(a.next(f))}catch(h){o(h)}}function l(f){try{u(a.throw(f))}catch(h){o(h)}}function u(f){f.done?i(f.value):n(f.value).then(s,l)}u((a=a.apply(r,e||[])).next())})}function RK(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},a,n,i,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(u){return function(f){return l([u,f])}}function l(u){if(a)throw new TypeError("Generator is already executing.");for(;t;)try{if(a=1,n&&(i=u[0]&2?n.return:u[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,u[1])).done)return i;switch(n=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,n=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]=r.length&&(r=void 0),{value:r&&r[a++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function dP(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var a=t.call(r),n,i=[],o;try{for(;(e===void 0||e-- >0)&&!(n=a.next()).done;)i.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(t=a.return)&&t.call(a)}finally{if(o)throw o.error}}return i}function kK(){for(var r=[],e=0;e1||s(v,c)})})}function s(v,c){try{l(a[v](c))}catch(p){h(i[0][3],p)}}function l(v){v.value instanceof Pu?Promise.resolve(v.value.v).then(u,f):h(i[0][2],v)}function u(v){s("next",v)}function f(v){s("throw",v)}function h(v,c){v(c),i.shift(),i.length&&s(i[0][0],i[0][1])}}function VK(r){var e,t;return e={},a("next"),a("throw",function(n){throw n}),a("return"),e[Symbol.iterator]=function(){return this},e;function a(n,i){e[n]=r[n]?function(o){return(t=!t)?{value:Pu(r[n](o)),done:n==="return"}:i?i(o):o}:i}}function zK(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=r[Symbol.asyncIterator],t;return e?e.call(r):(r=typeof r0=="function"?r0(r):r[Symbol.iterator](),t={},a("next"),a("throw"),a("return"),t[Symbol.asyncIterator]=function(){return this},t);function a(i){t[i]=r[i]&&function(o){return new Promise(function(s,l){o=r[i](o),n(s,l,o.done,o.value)})}}function n(i,o,s,l){Promise.resolve(l).then(function(u){i({value:u,done:s})},o)}}function GK(r,e){return Object.defineProperty?Object.defineProperty(r,"raw",{value:e}):r.raw=e,r}var gP=Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e};function FK(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&e0(e,r,t);return gP(e,r),e}function HK(r){return r&&r.__esModule?r:{default:r}}function WK(r,e,t,a){if(t==="a"&&!a)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?r!==e||!a:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?a:t==="a"?a.call(r):a?a.value:e.get(r)}function UK(r,e,t,a,n){if(a==="m")throw new TypeError("Private method is not writable");if(a==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?r!==e||!n:!e.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return a==="a"?n.call(r,t):n?n.value=t:e.set(r,t),t}function Wn(r,e){return r==null&&(r=0),e==null&&(e=0),[r,e]}function Re(r,e){return r[0]=e[0],r[1]=e[1],r}function wa(r){return[r[0],r[1]]}function yP(r,e,t){return r[0]=e,r[1]=t,r}function a0(r,e,t){return r[0]=e[0]+t[0],r[1]=e[1]+t[1],r}function zv(r,e,t,a){return r[0]=e[0]+t[0]*a,r[1]=e[1]+t[1]*a,r}function Un(r,e,t){return r[0]=e[0]-t[0],r[1]=e[1]-t[1],r}function Gv(r){return Math.sqrt(mP(r))}var YK=null;function mP(r){return r[0]*r[0]+r[1]*r[1]}var ZK=null;function XK(r,e,t){return r[0]=e[0]*t[0],r[1]=e[1]*t[1],r}function KK(r,e,t){return r[0]=e[0]/t[0],r[1]=e[1]/t[1],r}function qK(r,e){return r[0]*e[0]+r[1]*e[1]}function Ru(r,e,t){return r[0]=e[0]*t,r[1]=e[1]*t,r}function uo(r,e){var t=Gv(e);return t===0?(r[0]=0,r[1]=0):(r[0]=e[0]/t,r[1]=e[1]/t),r}function Fv(r,e){return Math.sqrt((r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1]))}var Qa=Fv;function _P(r,e){return(r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1])}var Yn=_P;function jK(r,e){return r[0]=-e[0],r[1]=-e[1],r}function Eu(r,e,t,a){return r[0]=e[0]+a*(t[0]-e[0]),r[1]=e[1]+a*(t[1]-e[1]),r}function me(r,e,t){var a=e[0],n=e[1];return r[0]=t[0]*a+t[2]*n+t[4],r[1]=t[1]*a+t[3]*n+t[5],r}function Ja(r,e,t){return r[0]=Math.min(e[0],t[0]),r[1]=Math.min(e[1],t[1]),r}function tn(r,e,t){return r[0]=Math.max(e[0],t[0]),r[1]=Math.max(e[1],t[1]),r}var fo=function(){function r(e,t){this.target=e,this.topTarget=t&&t.topTarget}return r}(),SP=function(){function r(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return r.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new fo(t,e),"dragstart",e.event))},r.prototype._drag=function(e){var t=this._draggingTarget;if(t){var a=e.offsetX,n=e.offsetY,i=a-this._x,o=n-this._y;this._x=a,this._y=n,t.drift(i,o,e),this.handler.dispatchToElement(new fo(t,e),"drag",e.event);var s=this.handler.findHover(a,n,t).target,l=this._dropTarget;this._dropTarget=s,t!==s&&(l&&s!==l&&this.handler.dispatchToElement(new fo(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new fo(s,e),"dragenter",e.event))}},r.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new fo(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new fo(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},r}(),xP=SP,bP=function(){function r(e){e&&(this._$eventProcessor=e)}return r.prototype.on=function(e,t,a,n){this._$handlers||(this._$handlers={});var i=this._$handlers;if(typeof t=="function"&&(n=a,a=t,t=null),!a||!e)return this;var o=this._$eventProcessor;t!=null&&o&&o.normalizeQuery&&(t=o.normalizeQuery(t)),i[e]||(i[e]=[]);for(var s=0;s>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",a[l]+":0",n[u]+":0",a[1-l]+":auto",n[1-u]+":auto",""].join("!important;"),r.appendChild(o),t.push(o)}return t}function AP(r,e,t){for(var a=t?"invTrans":"trans",n=e[a],i=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=r[u].getBoundingClientRect(),h=2*u,v=f.left,c=f.top;o.push(v,c),l=l&&i&&v===i[h]&&c===i[h+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&n?n:(e.srcCoords=o,e[a]=t?n0(s,o):n0(o,s))}function o0(r){return r.nodeName.toUpperCase()==="CANVAS"}var MP=/([&<>"'])/g,DP={"&":"&","<":"<",">":">",'"':""","'":"'"};function Ge(r){return r==null?"":(r+"").replace(MP,function(e,t){return DP[t]})}var LP=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Yv=[],IP=_t.browser.firefox&&+_t.browser.version.split(".")[0]<39;function Zv(r,e,t,a){return t=t||{},a?s0(r,e,t):IP&&e.layerX!=null&&e.layerX!==e.offsetX?(t.zrX=e.layerX,t.zrY=e.layerY):e.offsetX!=null?(t.zrX=e.offsetX,t.zrY=e.offsetY):s0(r,e,t),t}function s0(r,e,t){if(_t.domSupported&&r.getBoundingClientRect){var a=e.clientX,n=e.clientY;if(o0(r)){var i=r.getBoundingClientRect();t.zrX=a-i.left,t.zrY=n-i.top;return}else if(Uv(Yv,r,a,n)){t.zrX=Yv[0],t.zrY=Yv[1];return}}t.zrX=t.zrY=0}function Xv(r){return r||window.event}function fr(r,e,t){if(e=Xv(e),e.zrX!=null)return e;var a=e.type,n=a&&a.indexOf("touch")>=0;if(n){var o=a!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&Zv(r,o,e,t)}else{Zv(r,e,e,t);var i=PP(e);e.zrDelta=i?i/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&LP.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function PP(r){var e=r.wheelDelta;if(e)return e;var t=r.deltaX,a=r.deltaY;if(t==null||a==null)return e;var n=Math.abs(a!==0?a:t),i=a>0?-1:a<0?1:t>0?-1:1;return 3*n*i}function Kv(r,e,t,a){r.addEventListener(e,t,a)}function RP(r,e,t,a){r.removeEventListener(e,t,a)}var Ta=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function l0(r){return r.which===2||r.which===3}var EP=function(){function r(){this._track=[]}return r.prototype.recognize=function(e,t,a){return this._doTrack(e,t,a),this._recognize(e)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(e,t,a){var n=e.touches;if(!!n){for(var i={points:[],touches:[],target:t,event:e},o=0,s=n.length;o1&&a&&a.length>1){var i=u0(a)/u0(n);!isFinite(i)&&(i=1),e.pinchScale=i;var o=kP(a);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:r[0].target,event:e}}}}};function hr(){return[1,0,0,1,0,0]}function ku(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function jv(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r}function Ca(r,e,t){var a=e[0]*t[0]+e[2]*t[1],n=e[1]*t[0]+e[3]*t[1],i=e[0]*t[2]+e[2]*t[3],o=e[1]*t[2]+e[3]*t[3],s=e[0]*t[4]+e[2]*t[5]+e[4],l=e[1]*t[4]+e[3]*t[5]+e[5];return r[0]=a,r[1]=n,r[2]=i,r[3]=o,r[4]=s,r[5]=l,r}function jr(r,e,t){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4]+t[0],r[5]=e[5]+t[1],r}function Zn(r,e,t){var a=e[0],n=e[2],i=e[4],o=e[1],s=e[3],l=e[5],u=Math.sin(t),f=Math.cos(t);return r[0]=a*f+o*u,r[1]=-a*u+o*f,r[2]=n*f+s*u,r[3]=-n*u+f*s,r[4]=f*i+u*l,r[5]=f*l-u*i,r}function $v(r,e,t){var a=t[0],n=t[1];return r[0]=e[0]*a,r[1]=e[1]*n,r[2]=e[2]*a,r[3]=e[3]*n,r[4]=e[4]*a,r[5]=e[5]*n,r}function ho(r,e){var t=e[0],a=e[2],n=e[4],i=e[1],o=e[3],s=e[5],l=t*o-i*a;return l?(l=1/l,r[0]=o*l,r[1]=-i*l,r[2]=-a*l,r[3]=t*l,r[4]=(a*s-o*n)*l,r[5]=(i*n-t*s)*l,r):null}function OP(r){var e=hr();return jv(e,r),e}var NP=function(){function r(e,t){this.x=e||0,this.y=t||0}return r.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(e,t){return this.x=e,this.y=t,this},r.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},r.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},r.prototype.scale=function(e){this.x*=e,this.y*=e},r.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},r.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},r.prototype.dot=function(e){return this.x*e.x+this.y*e.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},r.prototype.distance=function(e){var t=this.x-e.x,a=this.y-e.y;return Math.sqrt(t*t+a*a)},r.prototype.distanceSquare=function(e){var t=this.x-e.x,a=this.y-e.y;return t*t+a*a},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(e){if(!!e){var t=this.x,a=this.y;return this.x=e[0]*t+e[2]*a+e[4],this.y=e[1]*t+e[3]*a+e[5],this}},r.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},r.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},r.set=function(e,t,a){e.x=t,e.y=a},r.copy=function(e,t){e.x=t.x,e.y=t.y},r.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},r.lenSquare=function(e){return e.x*e.x+e.y*e.y},r.dot=function(e,t){return e.x*t.x+e.y*t.y},r.add=function(e,t,a){e.x=t.x+a.x,e.y=t.y+a.y},r.sub=function(e,t,a){e.x=t.x-a.x,e.y=t.y-a.y},r.scale=function(e,t,a){e.x=t.x*a,e.y=t.y*a},r.scaleAndAdd=function(e,t,a,n){e.x=t.x+a.x*n,e.y=t.y+a.y*n},r.lerp=function(e,t,a,n){var i=1-n;e.x=i*t.x+n*a.x,e.y=i*t.y+n*a.y},r}(),lt=NP,Ou=Math.min,Nu=Math.max,Xn=new lt,Kn=new lt,qn=new lt,jn=new lt,As=new lt,Ms=new lt,BP=function(){function r(e,t,a,n){a<0&&(e=e+a,a=-a),n<0&&(t=t+n,n=-n),this.x=e,this.y=t,this.width=a,this.height=n}return r.prototype.union=function(e){var t=Ou(e.x,this.x),a=Ou(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Nu(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Nu(e.y+e.height,this.y+this.height)-a:this.height=e.height,this.x=t,this.y=a},r.prototype.applyTransform=function(e){r.applyTransform(this,this,e)},r.prototype.calculateTransform=function(e){var t=this,a=e.width/t.width,n=e.height/t.height,i=hr();return jr(i,i,[-t.x,-t.y]),$v(i,i,[a,n]),jr(i,i,[e.x,e.y]),i},r.prototype.intersect=function(e,t){if(!e)return!1;e instanceof r||(e=r.create(e));var a=this,n=a.x,i=a.x+a.width,o=a.y,s=a.y+a.height,l=e.x,u=e.x+e.width,f=e.y,h=e.y+e.height,v=!(ip&&(p=_,dp&&(p=S,y=a.x&&e<=a.x+a.width&&t>=a.y&&t<=a.y+a.height},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(e){r.copy(this,e)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(e){return new r(e.x,e.y,e.width,e.height)},r.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},r.applyTransform=function(e,t,a){if(!a){e!==t&&r.copy(e,t);return}if(a[1]<1e-5&&a[1]>-1e-5&&a[2]<1e-5&&a[2]>-1e-5){var n=a[0],i=a[3],o=a[4],s=a[5];e.x=t.x*n+o,e.y=t.y*i+s,e.width=t.width*n,e.height=t.height*i,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}Xn.x=qn.x=t.x,Xn.y=jn.y=t.y,Kn.x=jn.x=t.x+t.width,Kn.y=qn.y=t.y+t.height,Xn.transform(a),jn.transform(a),Kn.transform(a),qn.transform(a),e.x=Ou(Xn.x,Kn.x,qn.x,jn.x),e.y=Ou(Xn.y,Kn.y,qn.y,jn.y);var l=Nu(Xn.x,Kn.x,qn.x,jn.x),u=Nu(Xn.y,Kn.y,qn.y,jn.y);e.width=l-e.x,e.height=u-e.y},r}(),ht=BP,f0="silent";function VP(r,e,t){return{type:r,event:t,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:t.zrX,offsetY:t.zrY,gestureEvent:t.gestureEvent,pinchX:t.pinchX,pinchY:t.pinchY,pinchScale:t.pinchScale,wheelDelta:t.zrDelta,zrByTouch:t.zrByTouch,which:t.which,stop:zP}}function zP(){Ta(this.event)}var GP=function(r){Ft(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.handler=null,t}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(ur),Ds=function(){function r(e,t){this.x=e,this.y=t}return r}(),FP=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Qv=new ht(0,0,0,0),h0=function(r){Ft(e,r);function e(t,a,n,i,o){var s=r.call(this)||this;return s._hovered=new Ds(0,0),s.storage=t,s.painter=a,s.painterRoot=i,s._pointerSize=o,n=n||new GP,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new xP(s),s}return e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(A(FP,function(a){t.on&&t.on(a,this[a],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var a=t.zrX,n=t.zrY,i=c0(this,a,n),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=i?new Ds(a,n):this.findHover(a,n),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",t),this.dispatchToElement(l,"mousemove",t),u&&u!==s&&this.dispatchToElement(l,"mouseover",t)},e.prototype.mouseout=function(t){var a=t.zrEventControl;a!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",t),a!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new Ds(0,0)},e.prototype.dispatch=function(t,a){var n=this[t];n&&n.call(this,a)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var a=this.proxy;a.setCursor&&a.setCursor(t)},e.prototype.dispatchToElement=function(t,a,n){t=t||{};var i=t.target;if(!(i&&i.silent)){for(var o="on"+a,s=VP(a,t,n);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(a,s),i=i.__hostTarget?i.__hostTarget:i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(a,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(a,s)}))}},e.prototype.findHover=function(t,a,n){var i=this.storage.getDisplayList(),o=new Ds(t,a);if(v0(i,o,t,a,n),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new ht(t-u,a-u,l,l),h=i.length-1;h>=0;h--){var v=i[h];v!==n&&!v.ignore&&!v.ignoreCoarsePointer&&(!v.parent||!v.parent.ignoreCoarsePointer)&&(Qv.copy(v.getBoundingRect()),v.transform&&Qv.applyTransform(v.transform),Qv.intersect(f)&&s.push(v))}if(s.length)for(var c=4,p=Math.PI/12,d=Math.PI*2,g=0;g4)return;this._downPoint=null}this.dispatchToElement(i,r,e)}});function HP(r,e,t){if(r[r.rectHover?"rectContain":"contain"](e,t)){for(var a=r,n=void 0,i=!1;a;){if(a.ignoreClip&&(i=!0),!i){var o=a.getClipPath();if(o&&!o.contain(e,t))return!1;a.silent&&(n=!0)}var s=a.__hostTarget;a=s||a.parent}return n?f0:!0}return!1}function v0(r,e,t,a,n){for(var i=r.length-1;i>=0;i--){var o=r[i],s=void 0;if(o!==n&&!o.ignore&&(s=HP(o,t,a))&&(!e.topTarget&&(e.topTarget=o),s!==f0)){e.target=o;break}}}function c0(r,e,t){var a=r.painter;return e<0||e>a.getWidth()||t<0||t>a.getHeight()}var WP=h0,p0=32,Ls=7,d0=256;function UP(r){for(var e=0;r>=p0;)e|=r&1,r>>=1;return r+e}function g0(r,e,t,a){var n=e+1;if(n===t)return 1;if(a(r[n++],r[e])<0){for(;n=0;)n++;return n-e}function YP(r,e,t){for(t--;e>>1,n(i,r[l])<0?s=l:o=l+1;var u=a-o;switch(u){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;u>0;)r[o+u]=r[o+u-1],u--}r[o]=i}}function Jv(r,e,t,a,n,i){var o=0,s=0,l=1;if(i(r,e[t+n])>0){for(s=a-n;l0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}else{for(s=n+1;ls&&(l=s);var u=o;o=n-l,l=n-u}for(o++;o>>1);i(r,e[t+f])>0?o=f+1:l=f}return l}function tc(r,e,t,a,n,i){var o=0,s=0,l=1;if(i(r,e[t+n])<0){for(s=n+1;ls&&(l=s);var u=o;o=n-l,l=n-u}else{for(s=a-n;l=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}for(o++;o>>1);i(r,e[t+f])<0?l=f:o=f+1}return l}function ZP(r,e){var t=Ls,a=0,n=d0,i=0,o,s,l=0;a=r.length,a<2*d0&&(n=a>>>1);var u=[];i=a<120?5:a<1542?10:a<119151?19:40,o=[],s=[];function f(g,y){o[l]=g,s[l]=y,l+=1}function h(){for(;l>1;){var g=l-2;if(g>=1&&s[g-1]<=s[g]+s[g+1]||g>=2&&s[g-2]<=s[g]+s[g-1])s[g-1]s[g+1])break;c(g)}}function v(){for(;l>1;){var g=l-2;g>0&&s[g-1]=Ls||M>=Ls);if(D)break;T<0&&(T=0),T+=2}if(t=T,t<1&&(t=1),y===1){for(S=0;S<_;S++)r[w+S]=r[x+S];r[w+_]=u[b]}else{if(y===0)throw new Error;for(S=0;S=0;S--)r[C+S]=r[T+S];r[w]=u[x];return}for(var M=t;;){var D=0,L=0,I=!1;do if(e(u[x],r[b])<0){if(r[w--]=r[b--],D++,L=0,--y==0){I=!0;break}}else if(r[w--]=u[x--],L++,D=0,--_==1){I=!0;break}while((D|L)=0;S--)r[C+S]=r[T+S];if(y===0){I=!0;break}}if(r[w--]=u[x--],--_==1){I=!0;break}if(L=_-Jv(r[b],u,0,_,_-1,e),L!==0){for(w-=L,x-=L,_-=L,C=w+1,T=x+1,S=0;S=Ls||L>=Ls);if(I)break;M<0&&(M=0),M+=2}if(t=M,t<1&&(t=1),_===1){for(w-=y,b-=y,C=w+1,T=b+1,S=y-1;S>=0;S--)r[C+S]=r[T+S];r[w]=u[x]}else{if(_===0)throw new Error;for(T=w-(_-1),S=0;S<_;S++)r[T+S]=u[S]}}return{mergeRuns:h,forceMergeRuns:v,pushRun:f}}function Bu(r,e,t,a){t||(t=0),a||(a=r.length);var n=a-t;if(!(n<2)){var i=0;if(ns&&(l=s),y0(r,t,t+l,t+i,e),i=l}o.pushRun(t,i),o.mergeRuns(),n-=i,t+=i}while(n!==0);o.forceMergeRuns()}}var tr=1,Is=2,vo=4,m0=!1;function ec(){m0||(m0=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function _0(r,e){return r.zlevel===e.zlevel?r.z===e.z?r.z2-e.z2:r.z-e.z:r.zlevel-e.zlevel}var XP=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=_0}return r.prototype.traverse=function(e,t){for(var a=0;a0&&(f.__clipPaths=[]),isNaN(f.z)&&(ec(),f.z=0),isNaN(f.z2)&&(ec(),f.z2=0),isNaN(f.zlevel)&&(ec(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var h=e.getDecalElement&&e.getDecalElement();h&&this._updateAndAddDisplayable(h,t,a);var v=e.getTextGuideLine();v&&this._updateAndAddDisplayable(v,t,a);var c=e.getTextContent();c&&this._updateAndAddDisplayable(c,t,a)}},r.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},r.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,a=e.length;t=0&&this._roots.splice(n,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r}(),KP=XP,S0;S0=_t.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var rc=S0,Vu={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var e,t=.1,a=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=a/4):e=a*Math.asin(1/t)/(2*Math.PI),-(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/a)))},elasticOut:function(r){var e,t=.1,a=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=a/4):e=a*Math.asin(1/t)/(2*Math.PI),t*Math.pow(2,-10*r)*Math.sin((r-e)*(2*Math.PI)/a)+1)},elasticInOut:function(r){var e,t=.1,a=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=a/4):e=a*Math.asin(1/t)/(2*Math.PI),(r*=2)<1?-.5*(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/a)):t*Math.pow(2,-10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/a)*.5+1)},backIn:function(r){var e=1.70158;return r*r*((e+1)*r-e)},backOut:function(r){var e=1.70158;return--r*r*((e+1)*r+e)+1},backInOut:function(r){var e=1.70158*1.525;return(r*=2)<1?.5*(r*r*((e+1)*r-e)):.5*((r-=2)*r*((e+1)*r+e)+2)},bounceIn:function(r){return 1-Vu.bounceOut(1-r)},bounceOut:function(r){return r<1/2.75?7.5625*r*r:r<2/2.75?7.5625*(r-=1.5/2.75)*r+.75:r<2.5/2.75?7.5625*(r-=2.25/2.75)*r+.9375:7.5625*(r-=2.625/2.75)*r+.984375},bounceInOut:function(r){return r<.5?Vu.bounceIn(r*2)*.5:Vu.bounceOut(r*2-1)*.5+.5}},x0=Vu,zu=Math.pow,en=Math.sqrt,Gu=1e-8,b0=1e-4,w0=en(3),Fu=1/3,$r=Wn(),vr=Wn(),co=Wn();function rn(r){return r>-Gu&&rGu||r<-Gu}function le(r,e,t,a,n){var i=1-n;return i*i*(i*r+3*n*e)+n*n*(n*a+3*i*t)}function C0(r,e,t,a,n){var i=1-n;return 3*(((e-r)*i+2*(t-e)*n)*i+(a-t)*n*n)}function Hu(r,e,t,a,n,i){var o=a+3*(e-t)-r,s=3*(t-e*2+r),l=3*(e-r),u=r-n,f=s*s-3*o*l,h=s*l-9*o*u,v=l*l-3*s*u,c=0;if(rn(f)&&rn(h))if(rn(s))i[0]=0;else{var p=-l/s;p>=0&&p<=1&&(i[c++]=p)}else{var d=h*h-4*f*v;if(rn(d)){var g=h/f,p=-s/o+g,y=-g/2;p>=0&&p<=1&&(i[c++]=p),y>=0&&y<=1&&(i[c++]=y)}else if(d>0){var m=en(d),_=f*s+1.5*o*(-h+m),S=f*s+1.5*o*(-h-m);_<0?_=-zu(-_,Fu):_=zu(_,Fu),S<0?S=-zu(-S,Fu):S=zu(S,Fu);var p=(-s-(_+S))/(3*o);p>=0&&p<=1&&(i[c++]=p)}else{var b=(2*f*s-3*o*h)/(2*en(f*f*f)),x=Math.acos(b)/3,w=en(f),T=Math.cos(x),p=(-s-2*w*T)/(3*o),y=(-s+w*(T+w0*Math.sin(x)))/(3*o),C=(-s+w*(T-w0*Math.sin(x)))/(3*o);p>=0&&p<=1&&(i[c++]=p),y>=0&&y<=1&&(i[c++]=y),C>=0&&C<=1&&(i[c++]=C)}}return c}function A0(r,e,t,a,n){var i=6*t-12*e+6*r,o=9*e+3*a-3*r-9*t,s=3*e-3*r,l=0;if(rn(o)){if(T0(i)){var u=-s/i;u>=0&&u<=1&&(n[l++]=u)}}else{var f=i*i-4*o*s;if(rn(f))n[0]=-i/(2*o);else if(f>0){var h=en(f),u=(-i+h)/(2*o),v=(-i-h)/(2*o);u>=0&&u<=1&&(n[l++]=u),v>=0&&v<=1&&(n[l++]=v)}}return l}function an(r,e,t,a,n,i){var o=(e-r)*n+r,s=(t-e)*n+e,l=(a-t)*n+t,u=(s-o)*n+o,f=(l-s)*n+s,h=(f-u)*n+u;i[0]=r,i[1]=o,i[2]=u,i[3]=h,i[4]=h,i[5]=f,i[6]=l,i[7]=a}function M0(r,e,t,a,n,i,o,s,l,u,f){var h,v=.005,c=Infinity,p,d,g,y;$r[0]=l,$r[1]=u;for(var m=0;m<1;m+=.05)vr[0]=le(r,t,n,o,m),vr[1]=le(e,a,i,s,m),g=Yn($r,vr),g=0&&g=0&&u<=1&&(n[l++]=u)}}else{var f=o*o-4*i*s;if(rn(f)){var u=-o/(2*i);u>=0&&u<=1&&(n[l++]=u)}else if(f>0){var h=en(f),u=(-o+h)/(2*i),v=(-o-h)/(2*i);u>=0&&u<=1&&(n[l++]=u),v>=0&&v<=1&&(n[l++]=v)}}return l}function D0(r,e,t){var a=r+t-2*e;return a===0?.5:(r-e)/a}function Ps(r,e,t,a,n){var i=(e-r)*a+r,o=(t-e)*a+e,s=(o-i)*a+i;n[0]=r,n[1]=i,n[2]=s,n[3]=s,n[4]=o,n[5]=t}function L0(r,e,t,a,n,i,o,s,l){var u,f=.005,h=Infinity;$r[0]=o,$r[1]=s;for(var v=0;v<1;v+=.05){vr[0]=pe(r,t,n,v),vr[1]=pe(e,a,i,v);var c=Yn($r,vr);c=0&&c=1?1:Hu(0,a,i,1,l,s)&&le(0,n,o,1,s[0])}}}var JP=function(){function r(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||$t,this.ondestroy=e.ondestroy||$t,this.onrestart=e.onrestart||$t,e.easing&&this.setEasing(e.easing)}return r.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=t;return}var a=this._life,n=e-this._startTime-this._pausedTime,i=n/a;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,s=o?o(i):i;if(this.onframe(s),i===1)if(this.loop){var l=n%a;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(e){this.easing=e,this.easingFunc=$(e)?e:x0[e]||nc(e)},r}(),t2=JP,I0=function(){function r(e){this.value=e}return r}(),e2=function(){function r(){this._len=0}return r.prototype.insert=function(e){var t=new I0(e);return this.insertEntry(t),t},r.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},r.prototype.remove=function(e){var t=e.prev,a=e.next;t?t.next=a:this.head=a,a?a.prev=t:this.tail=t,e.next=e.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r}(),r2=function(){function r(e){this._list=new e2,this._maxSize=10,this._map={},this._maxSize=e}return r.prototype.put=function(e,t){var a=this._list,n=this._map,i=null;if(n[e]==null){var o=a.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=a.head;a.remove(l),delete n[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new I0(t),s.key=e,a.insertEntry(s),n[e]=s}return i},r.prototype.get=function(e){var t=this._map[e],a=this._list;if(t!=null)return t!==a.tail&&(a.remove(t),a.insertEntry(t)),t.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r}(),Rs=r2,P0={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 Er(r){return r=Math.round(r),r<0?0:r>255?255:r}function a2(r){return r=Math.round(r),r<0?0:r>360?360:r}function Es(r){return r<0?0:r>1?1:r}function ic(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?Er(parseFloat(e)/100*255):Er(parseInt(e,10))}function $n(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?Es(parseFloat(e)/100):Es(parseFloat(e))}function oc(r,e,t){return t<0?t+=1:t>1&&(t-=1),t*6<1?r+(e-r)*t*6:t*2<1?e:t*3<2?r+(e-r)*(2/3-t)*6:r}function nn(r,e,t){return r+(e-r)*t}function cr(r,e,t,a,n){return r[0]=e,r[1]=t,r[2]=a,r[3]=n,r}function sc(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r}var R0=new Rs(20),Wu=null;function po(r,e){Wu&&sc(Wu,e),Wu=R0.put(r,Wu||e.slice())}function Fe(r,e){if(!!r){e=e||[];var t=R0.get(r);if(t)return sc(e,t);r=r+"";var a=r.replace(/ /g,"").toLowerCase();if(a in P0)return sc(e,P0[a]),po(r,e),e;var n=a.length;if(a.charAt(0)==="#"){if(n===4||n===5){var i=parseInt(a.slice(1,4),16);if(!(i>=0&&i<=4095)){cr(e,0,0,0,1);return}return cr(e,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,n===5?parseInt(a.slice(4),16)/15:1),po(r,e),e}else if(n===7||n===9){var i=parseInt(a.slice(1,7),16);if(!(i>=0&&i<=16777215)){cr(e,0,0,0,1);return}return cr(e,(i&16711680)>>16,(i&65280)>>8,i&255,n===9?parseInt(a.slice(7),16)/255:1),po(r,e),e}return}var o=a.indexOf("("),s=a.indexOf(")");if(o!==-1&&s+1===n){var l=a.substr(0,o),u=a.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?cr(e,+u[0],+u[1],+u[2],1):cr(e,0,0,0,1);f=$n(u.pop());case"rgb":if(u.length>=3)return cr(e,ic(u[0]),ic(u[1]),ic(u[2]),u.length===3?f:$n(u[3])),po(r,e),e;cr(e,0,0,0,1);return;case"hsla":if(u.length!==4){cr(e,0,0,0,1);return}return u[3]=$n(u[3]),lc(u,e),po(r,e),e;case"hsl":if(u.length!==3){cr(e,0,0,0,1);return}return lc(u,e),po(r,e),e;default:return}}cr(e,0,0,0,1)}}function lc(r,e){var t=(parseFloat(r[0])%360+360)%360/360,a=$n(r[1]),n=$n(r[2]),i=n<=.5?n*(a+1):n+a-n*a,o=n*2-i;return e=e||[],cr(e,Er(oc(o,i,t+1/3)*255),Er(oc(o,i,t)*255),Er(oc(o,i,t-1/3)*255),1),r.length===4&&(e[3]=r[3]),e}function n2(r){if(!!r){var e=r[0]/255,t=r[1]/255,a=r[2]/255,n=Math.min(e,t,a),i=Math.max(e,t,a),o=i-n,s=(i+n)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(i+n):u=o/(2-i-n);var f=((i-e)/6+o/2)/o,h=((i-t)/6+o/2)/o,v=((i-a)/6+o/2)/o;e===i?l=v-h:t===i?l=1/3+f-v:a===i&&(l=2/3+h-f),l<0&&(l+=1),l>1&&(l-=1)}var c=[l*360,u,s];return r[3]!=null&&c.push(r[3]),c}}function uc(r,e){var t=Fe(r);if(t){for(var a=0;a<3;a++)e<0?t[a]=t[a]*(1-e)|0:t[a]=(255-t[a])*e+t[a]|0,t[a]>255?t[a]=255:t[a]<0&&(t[a]=0);return Qr(t,t.length===4?"rgba":"rgb")}}function $K(r){var e=Fe(r);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function fc(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){t=t||[];var a=r*(e.length-1),n=Math.floor(a),i=Math.ceil(a),o=e[n],s=e[i],l=a-n;return t[0]=Er(nn(o[0],s[0],l)),t[1]=Er(nn(o[1],s[1],l)),t[2]=Er(nn(o[2],s[2],l)),t[3]=Es(nn(o[3],s[3],l)),t}}var QK=null;function i2(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){var a=r*(e.length-1),n=Math.floor(a),i=Math.ceil(a),o=Fe(e[n]),s=Fe(e[i]),l=a-n,u=Qr([Er(nn(o[0],s[0],l)),Er(nn(o[1],s[1],l)),Er(nn(o[2],s[2],l)),Es(nn(o[3],s[3],l))],"rgba");return t?{color:u,leftIndex:n,rightIndex:i,value:a}:u}}var JK=null;function ks(r,e,t,a){var n=Fe(r);if(r)return n=n2(n),e!=null&&(n[0]=a2(e)),t!=null&&(n[1]=$n(t)),a!=null&&(n[2]=$n(a)),Qr(lc(n),"rgba")}function Uu(r,e){var t=Fe(r);if(t&&e!=null)return t[3]=Es(e),Qr(t,"rgba")}function Qr(r,e){if(!(!r||!r.length)){var t=r[0]+","+r[1]+","+r[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(t+=","+r[3]),e+"("+t+")"}}function Yu(r,e){var t=Fe(r);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}function tq(){return Qr([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}var E0=mt(48764).Buffer,Os=Math.round;function Ns(r){var e;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var t=Fe(r);t&&(r="rgb("+t[0]+","+t[1]+","+t[2]+")",e=t[3])}return{color:r,opacity:e==null?1:e}}var k0=1e-4;function on(r){return r-k0}function Zu(r){return Os(r*1e3)/1e3}function hc(r){return Os(r*1e4)/1e4}function eq(r){return Os(r*10)/10}function o2(r){return"matrix("+Zu(r[0])+","+Zu(r[1])+","+Zu(r[2])+","+Zu(r[3])+","+hc(r[4])+","+hc(r[5])+")"}var s2={left:"start",right:"end",center:"middle",middle:"middle"};function l2(r,e,t){return t==="top"?r+=e/2:t==="bottom"&&(r-=e/2),r}function u2(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function f2(r){var e=r.style,t=r.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),t[0],t[1]].join(",")}function rq(r){var e=[];if(r)for(var t=0;ta?e:r,i=Math.min(t,a),o=n[i-1]||{color:[0,0,0,0],offset:0},s=i;so;if(s)a.length=o;else for(var l=i;l=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(e,t,a){this._needsSort=!0;var n=this.keyframes,i=n.length,o=!1,s=W0,l=t;if(Te(t)){var u=g2(t);s=u,(u===1&&!Tt(t[0])||u===2&&!Tt(t[0][0]))&&(o=!0)}else if(Tt(t)&&!Ts(t))s=ju;else if(U(t))if(!isNaN(+t))s=ju;else{var f=Fe(t);f&&(l=f,s=Vs)}else if(Au(t)){var h=B({},l);h.colorStops=G(t.colorStops,function(c){return{offset:c.offset,color:Fe(c.color)}}),N0(t)?s=dc:B0(t)&&(s=gc),l=h}i===0?this.valType=s:(s!==this.valType||s===W0)&&(o=!0),this.discrete=this.discrete||o;var v={time:e,value:l,rawValue:t,percent:0};return a&&(v.easing=a,v.easingFunc=$(a)?a:x0[a]||nc(a)),n.push(v),v},r.prototype.prepare=function(e,t){var a=this.keyframes;this._needsSort&&a.sort(function(d,g){return d.time-g.time});for(var n=this.valType,i=a.length,o=a[i-1],s=this.discrete,l=Qu(n),u=U0(n),f=0;f=0&&!(o[f].percent<=t);f--);f=v(f,s-2)}else{for(f=h;ft);f++);f=v(f-1,s-2)}p=o[f+1],c=o[f]}if(!!(c&&p)){this._lastFr=f,this._lastFrP=t;var g=p.percent-c.percent,y=g===0?1:v((t-c.percent)/g,1);p.easingFunc&&(y=p.easingFunc(y));var m=a?this._additiveValue:u?zs:e[l];if((Qu(i)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)e[l]=y<1?c.rawValue:p.rawValue;else if(Qu(i))i===$u?pc(m,c[n],p[n],y):c2(m,c[n],p[n],y);else if(U0(i)){var _=c[n],S=p[n],b=i===dc;e[l]={type:b?"linear":"radial",x:Aa(_.x,S.x,y),y:Aa(_.y,S.y,y),colorStops:G(_.colorStops,function(w,T){var C=S.colorStops[T];return{offset:Aa(w.offset,C.offset,y),color:qu(pc([],w.color,C.color,y))}}),global:S.global},b?(e[l].x2=Aa(_.x2,S.x2,y),e[l].y2=Aa(_.y2,S.y2,y)):e[l].r=Aa(_.r,S.r,y)}else if(u)pc(m,c[n],p[n],y),a||(e[l]=qu(m));else{var x=Aa(c[n],p[n],y);a?this._additiveValue=x:e[l]=x}a&&this._addToTarget(e)}}},r.prototype._addToTarget=function(e){var t=this.valType,a=this.propName,n=this._additiveValue;t===ju?e[a]=e[a]+n:t===Vs?(Fe(e[a],zs),Ku(zs,zs,n,1),e[a]=qu(zs)):t===$u?Ku(e[a],e[a],n,1):t===H0&&F0(e[a],e[a],n,1)},r}(),m2=function(){function r(e,t,a,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&n){lo("Can' use additive animation on looped animation.");return}this._additiveAnimators=n,this._allowDiscrete=a}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(e){this._target=e},r.prototype.when=function(e,t,a){return this.whenWithKeys(e,t,St(t),a)},r.prototype.whenWithKeys=function(e,t,a,n){for(var i=this._tracks,o=0;o0&&l.addKeyframe(0,Bs(u),n),this._trackKeys.push(s)}l.addKeyframe(e,Bs(t[s]),n)}return this._maxTime=Math.max(this._maxTime,e),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,a=0;a0)){this._started=1;for(var t=this,a=[],n=this._maxTime||0,i=0;i1){var s=o.pop();i.addKeyframe(s.time,e[n]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},r}(),yc=m2;function go(){return new Date().getTime()}var _2=function(r){Ft(e,r);function e(t){var a=r.call(this)||this;return a._running=!1,a._time=0,a._pausedTime=0,a._pauseStart=0,a._paused=!1,t=t||{},a.stage=t.stage||{},a}return e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var a=t.getClip();a&&this.addClip(a)},e.prototype.removeClip=function(t){if(!!t.animation){var a=t.prev,n=t.next;a?a.next=n:this._head=n,n?n.prev=a:this._tail=a,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var a=t.getClip();a&&this.removeClip(a),t.animation=null},e.prototype.update=function(t){for(var a=go()-this._pausedTime,n=a-this._time,i=this._head;i;){var o=i.next,s=i.step(a,n);s&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=a,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0;function a(){t._running&&(rc(a),!t._paused&&t.update())}rc(a)},e.prototype.start=function(){this._running||(this._time=go(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=go(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=go()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var a=t.next;t.prev=t.next=t.animation=null,t=a}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(t,a){a=a||{},this.start();var n=new yc(t,a.loop);return this.addAnimator(n),n},e}(ur),S2=_2,x2=300,mc=_t.domSupported,_c=function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],t={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},a=G(r,function(n){var i=n.replace("mouse","pointer");return t.hasOwnProperty(i)?i:n});return{mouse:r,touch:e,pointer:a}}(),Y0={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Z0=!1;function Sc(r){var e=r.pointerType;return e==="pen"||e==="touch"}function b2(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function xc(r){r&&(r.zrByTouch=!0)}function w2(r,e){return fr(r.dom,new T2(r,e),!0)}function X0(r,e){for(var t=e,a=!1;t&&t.nodeType!==9&&!(a=t.domBelongToZr||t!==e&&t===r.painterRoot);)t=t.parentNode;return a}var T2=function(){function r(e,t){this.stopPropagation=$t,this.stopImmediatePropagation=$t,this.preventDefault=$t,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return r}(),kr={mousedown:function(r){r=fr(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=fr(this.dom,r);var e=this.__mayPointerCapture;e&&(r.zrX!==e[0]||r.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=fr(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=fr(this.dom,r);var e=r.toElement||r.relatedTarget;X0(this,e)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){Z0=!0,r=fr(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){Z0||(r=fr(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=fr(this.dom,r),xc(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),kr.mousemove.call(this,r),kr.mousedown.call(this,r)},touchmove:function(r){r=fr(this.dom,r),xc(r),this.handler.processGesture(r,"change"),kr.mousemove.call(this,r)},touchend:function(r){r=fr(this.dom,r),xc(r),this.handler.processGesture(r,"end"),kr.mouseup.call(this,r),+new Date-+this.__lastTouchMoment$0||r<-$0}var Jn=[],yo=[],Mc=hr(),Dc=Math.abs,I2=function(){function r(){}return r.prototype.getLocalTransform=function(e){return r.getLocalTransform(this,e)},r.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},r.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},r.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},r.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},r.prototype.needLocalTransform=function(){return Qn(this.rotation)||Qn(this.x)||Qn(this.y)||Qn(this.scaleX-1)||Qn(this.scaleY-1)||Qn(this.skewX)||Qn(this.skewY)},r.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),a=this.transform;if(!(t||e)){a&&j0(a);return}a=a||hr(),t?this.getLocalTransform(a):j0(a),e&&(t?Ca(a,e,a):jv(a,e)),this.transform=a,this._resolveGlobalScaleRatio(a)},r.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(Jn);var a=Jn[0]<0?-1:1,n=Jn[1]<0?-1:1,i=((Jn[0]-a)*t+a)/Jn[0]||0,o=((Jn[1]-n)*t+n)/Jn[1]||0;e[0]*=i,e[1]*=i,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||hr(),ho(this.invTransform,e)},r.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},r.prototype.setLocalTransform=function(e){if(!!e){var t=e[0]*e[0]+e[1]*e[1],a=e[2]*e[2]+e[3]*e[3],n=Math.atan2(e[1],e[0]),i=Math.PI/2+n-Math.atan2(e[3],e[2]);a=Math.sqrt(a)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-n,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=a,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(!!this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(Ca(yo,e.invTransform,t),t=yo);var a=this.originX,n=this.originY;(a||n)&&(Mc[4]=a,Mc[5]=n,Ca(yo,t,Mc),yo[4]-=a,yo[5]-=n,t=yo),this.setLocalTransform(t)}},r.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},r.prototype.transformCoordToLocal=function(e,t){var a=[e,t],n=this.invTransform;return n&&me(a,a,n),a},r.prototype.transformCoordToGlobal=function(e,t){var a=[e,t],n=this.transform;return n&&me(a,a,n),a},r.prototype.getLineScale=function(){var e=this.transform;return e&&Dc(e[0]-1)>1e-10&&Dc(e[3]-1)>1e-10?Math.sqrt(Dc(e[0]*e[3]-e[2]*e[1])):1},r.prototype.copyTransform=function(e){Q0(this,e)},r.getLocalTransform=function(e,t){t=t||[];var a=e.originX||0,n=e.originY||0,i=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,f=e.x,h=e.y,v=e.skewX?Math.tan(e.skewX):0,c=e.skewY?Math.tan(-e.skewY):0;if(a||n||s||l){var p=a+s,d=n+l;t[4]=-p*i-v*d*o,t[5]=-d*o-c*p*i}else t[4]=t[5]=0;return t[0]=i,t[3]=o,t[1]=c*i,t[2]=v*o,u&&Zn(t,t,u),t[4]+=a+f,t[5]+=n+h,t},r.initDefaultProps=function(){var e=r.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),r}(),Jr=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Q0(r,e){for(var t=0;t=0?parseFloat(r)/100*e:parseFloat(r):r}function rf(r,e,t){var a=e.position||"inside",n=e.distance!=null?e.distance:5,i=t.height,o=t.width,s=i/2,l=t.x,u=t.y,f="left",h="top";if(a instanceof Array)l+=Or(a[0],t.width),u+=Or(a[1],t.height),f=null,h=null;else switch(a){case"left":l-=n,u+=s,f="right",h="middle";break;case"right":l+=n+o,u+=s,h="middle";break;case"top":l+=o/2,u-=n,f="center",h="bottom";break;case"bottom":l+=o/2,u+=i+n,f="center";break;case"inside":l+=o/2,u+=s,f="center",h="middle";break;case"insideLeft":l+=n,u+=s,h="middle";break;case"insideRight":l+=o-n,u+=s,f="right",h="middle";break;case"insideTop":l+=o/2,u+=n,f="center";break;case"insideBottom":l+=o/2,u+=i-n,f="center",h="bottom";break;case"insideTopLeft":l+=n,u+=n;break;case"insideTopRight":l+=o-n,u+=n,f="right";break;case"insideBottomLeft":l+=n,u+=i-n,h="bottom";break;case"insideBottomRight":l+=o-n,u+=i-n,f="right",h="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=f,r.verticalAlign=h,r}var Lc="__zr_normal__",Ic=Jr.concat(["ignore"]),P2=qr(Jr,function(r,e){return r[e]=!0,r},{ignore:!1}),_o={},R2=new ht(0,0,0,0),Pc=function(){function r(e){this.id=xs(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return r.prototype._init=function(e){this.attr(e)},r.prototype.drift=function(e,t,a){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.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var a=this.textConfig,n=a.local,i=t.innerTransformable,o=void 0,s=void 0,l=!1;i.parent=n?this:null;var u=!1;if(i.copyTransform(t),a.position!=null){var f=R2;a.layoutRect?f.copy(a.layoutRect):f.copy(this.getBoundingRect()),n||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(_o,a,f):rf(_o,a,f),i.x=_o.x,i.y=_o.y,o=_o.align,s=_o.verticalAlign;var h=a.origin;if(h&&a.rotation!=null){var v=void 0,c=void 0;h==="center"?(v=f.width*.5,c=f.height*.5):(v=Or(h[0],f.width),c=Or(h[1],f.height)),u=!0,i.originX=-i.x+v+(n?0:f.x),i.originY=-i.y+c+(n?0:f.y)}}a.rotation!=null&&(i.rotation=a.rotation);var p=a.offset;p&&(i.x+=p[0],i.y+=p[1],u||(i.originX=-p[0],i.originY=-p[1]));var d=a.inside==null?typeof a.position=="string"&&a.position.indexOf("inside")>=0:a.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,m=void 0,_=void 0;d&&this.canBeInsideText()?(y=a.insideFill,m=a.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(m==null||m==="auto")&&(m=this.getInsideTextStroke(y),_=!0)):(y=a.outsideFill,m=a.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(m==null||m==="auto")&&(m=this.getOutsideStroke(y),_=!0)),y=y||"#000",(y!==g.fill||m!==g.stroke||_!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=y,g.stroke=m,g.autoStroke=_,g.align=o,g.verticalAlign=s,t.setDefaultTextStyle(g)),t.__dirty|=tr,l&&t.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(e){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Ac:Cc},r.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),a=typeof t=="string"&&Fe(t);a||(a=[255,255,255,1]);for(var n=a[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)a[o]=a[o]*n+(i?0:255)*(1-n);return a[3]=1,Qr(a,"rgba")},r.prototype.traverse=function(e,t){},r.prototype.attrKV=function(e,t){e==="textConfig"?this.setTextConfig(t):e==="textContent"?this.setTextContent(t):e==="clipPath"?this.setClipPath(t):e==="extra"?(this.extra=this.extra||{},B(this.extra,t)):this[e]=t},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(e,t){if(typeof e=="string")this.attrKV(e,t);else if(et(e))for(var a=e,n=St(a),i=0;i0},r.prototype.getState=function(e){return this.states[e]},r.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},r.prototype.clearStates=function(e){this.useState(Lc,!1,e)},r.prototype.useState=function(e,t,a,n){var i=e===Lc,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,l=this.stateTransition;if(!(st(s,e)>=0&&(t||s.length===1))){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!i){lo("State "+e+" not exists.");return}i||this.saveCurrentToNormalState(u);var f=!!(u&&u.hoverLayer||n);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,u,this._normalState,t,!a&&!this.__inHover&&l&&l.duration>0,l);var h=this._textContent,v=this._textGuide;return h&&h.useState(e,t,a,f),v&&v.useState(e,t,a,f),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~tr),u}}},r.prototype.useStates=function(e,t,a){if(!e.length)this.clearStates();else{var n=[],i=this.currentStates,o=e.length,s=o===i.length;if(s){for(var l=0;l0,p);var d=this._textContent,g=this._textGuide;d&&d.useStates(e,t,v),g&&g.useStates(e,t,v),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!v&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~tr)}},r.prototype._updateAnimationTargets=function(){for(var e=0;e=0){var a=this.currentStates.slice();a.splice(t,1),this.useStates(a)}},r.prototype.replaceState=function(e,t,a){var n=this.currentStates.slice(),i=st(n,e),o=st(n,t)>=0;i>=0?o?n.splice(i,1):n[i]=t:a&&!o&&n.push(t),this.useStates(n)},r.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},r.prototype._mergeStates=function(e){for(var t={},a,n=0;n=0&&i.splice(o,1)}),this.animators.push(e),a&&a.animation.addAnimator(e),a&&a.wakeUp()},r.prototype.updateDuringAnimation=function(e){this.markRedraw()},r.prototype.stopAnimation=function(e,t){for(var a=this.animators,n=a.length,i=[],o=0;o0&&t.during&&i[0].during(function(p,d){t.during(d)});for(var v=0;v0||n.force&&!o.length){var T=void 0,C=void 0,M=void 0;if(s){C={},v&&(T={});for(var S=0;S<_;S++){var y=d[S];C[y]=t[y],v?T[y]=a[y]:t[y]=a[y]}}else if(v){M={};for(var S=0;S<_;S++){var y=d[S];M[y]=Bs(t[y]),k2(t,a,y)}}var b=new yc(t,!1,!1,h?Rt(p,function(L){return L.targetName===e}):null);b.targetName=e,n.scope&&(b.scope=n.scope),v&&T&&b.whenWithKeys(0,T,d),M&&b.whenWithKeys(0,M,d),b.whenWithKeys(u==null?500:u,s?C:a,d).delay(f||0),r.addAnimator(b,e),o.push(b)}}var r_=Pc,a_=function(r){Ft(e,r);function e(t){var a=r.call(this)||this;return a.isGroup=!0,a._children=[],a.attr(t),a}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var a=this._children,n=0;n=0&&(n.splice(i,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,a){var n=st(this._children,t);return n>=0&&this.replaceAt(a,n),this},e.prototype.replaceAt=function(t,a){var n=this._children,i=n[a];if(t&&t!==this&&t.parent!==this&&t!==i){n[a]=t,i.parent=null;var o=this.__zr;o&&i.removeSelfFromZr(o),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var a=this.__zr;a&&a!==t.__zr&&t.addSelfToZr(a),a&&a.refresh()},e.prototype.remove=function(t){var a=this.__zr,n=this._children,i=st(n,t);return i<0?this:(n.splice(i,1),t.parent=null,a&&t.removeSelfFromZr(a),a&&a.refresh(),this)},e.prototype.removeAll=function(){for(var t=this._children,a=this.__zr,n=0;n=0;s--)(o=r[s])&&(i=(n<3?o(i):n>3?o(e,t,i):o(e,t))||i);return n>3&&i&&Object.defineProperty(e,t,i),i}function LK(r,e){return function(t,a){e(t,a,r)}}function IK(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}function PK(r,e,t,a){function n(i){return i instanceof t?i:new t(function(o){o(i)})}return new(t||(t=Promise))(function(i,o){function s(f){try{u(a.next(f))}catch(h){o(h)}}function l(f){try{u(a.throw(f))}catch(h){o(h)}}function u(f){f.done?i(f.value):n(f.value).then(s,l)}u((a=a.apply(r,e||[])).next())})}function RK(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},a,n,i,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(u){return function(f){return l([u,f])}}function l(u){if(a)throw new TypeError("Generator is already executing.");for(;t;)try{if(a=1,n&&(i=u[0]&2?n.return:u[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,u[1])).done)return i;switch(n=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,n=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]=r.length&&(r=void 0),{value:r&&r[a++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function dP(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var a=t.call(r),n,i=[],o;try{for(;(e===void 0||e-- >0)&&!(n=a.next()).done;)i.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(t=a.return)&&t.call(a)}finally{if(o)throw o.error}}return i}function kK(){for(var r=[],e=0;e1||s(v,c)})})}function s(v,c){try{l(a[v](c))}catch(p){h(i[0][3],p)}}function l(v){v.value instanceof Pu?Promise.resolve(v.value.v).then(u,f):h(i[0][2],v)}function u(v){s("next",v)}function f(v){s("throw",v)}function h(v,c){v(c),i.shift(),i.length&&s(i[0][0],i[0][1])}}function VK(r){var e,t;return e={},a("next"),a("throw",function(n){throw n}),a("return"),e[Symbol.iterator]=function(){return this},e;function a(n,i){e[n]=r[n]?function(o){return(t=!t)?{value:Pu(r[n](o)),done:n==="return"}:i?i(o):o}:i}}function zK(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=r[Symbol.asyncIterator],t;return e?e.call(r):(r=typeof r0=="function"?r0(r):r[Symbol.iterator](),t={},a("next"),a("throw"),a("return"),t[Symbol.asyncIterator]=function(){return this},t);function a(i){t[i]=r[i]&&function(o){return new Promise(function(s,l){o=r[i](o),n(s,l,o.done,o.value)})}}function n(i,o,s,l){Promise.resolve(l).then(function(u){i({value:u,done:s})},o)}}function GK(r,e){return Object.defineProperty?Object.defineProperty(r,"raw",{value:e}):r.raw=e,r}var gP=Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e};function FK(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&e0(e,r,t);return gP(e,r),e}function HK(r){return r&&r.__esModule?r:{default:r}}function WK(r,e,t,a){if(t==="a"&&!a)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?r!==e||!a:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?a:t==="a"?a.call(r):a?a.value:e.get(r)}function UK(r,e,t,a,n){if(a==="m")throw new TypeError("Private method is not writable");if(a==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?r!==e||!n:!e.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return a==="a"?n.call(r,t):n?n.value=t:e.set(r,t),t}function Wn(r,e){return r==null&&(r=0),e==null&&(e=0),[r,e]}function Re(r,e){return r[0]=e[0],r[1]=e[1],r}function wa(r){return[r[0],r[1]]}function yP(r,e,t){return r[0]=e,r[1]=t,r}function a0(r,e,t){return r[0]=e[0]+t[0],r[1]=e[1]+t[1],r}function zv(r,e,t,a){return r[0]=e[0]+t[0]*a,r[1]=e[1]+t[1]*a,r}function Un(r,e,t){return r[0]=e[0]-t[0],r[1]=e[1]-t[1],r}function Gv(r){return Math.sqrt(mP(r))}var YK=null;function mP(r){return r[0]*r[0]+r[1]*r[1]}var ZK=null;function XK(r,e,t){return r[0]=e[0]*t[0],r[1]=e[1]*t[1],r}function KK(r,e,t){return r[0]=e[0]/t[0],r[1]=e[1]/t[1],r}function qK(r,e){return r[0]*e[0]+r[1]*e[1]}function Ru(r,e,t){return r[0]=e[0]*t,r[1]=e[1]*t,r}function fo(r,e){var t=Gv(e);return t===0?(r[0]=0,r[1]=0):(r[0]=e[0]/t,r[1]=e[1]/t),r}function Fv(r,e){return Math.sqrt((r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1]))}var Ja=Fv;function _P(r,e){return(r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1])}var Yn=_P;function jK(r,e){return r[0]=-e[0],r[1]=-e[1],r}function Eu(r,e,t,a){return r[0]=e[0]+a*(t[0]-e[0]),r[1]=e[1]+a*(t[1]-e[1]),r}function me(r,e,t){var a=e[0],n=e[1];return r[0]=t[0]*a+t[2]*n+t[4],r[1]=t[1]*a+t[3]*n+t[5],r}function tn(r,e,t){return r[0]=Math.min(e[0],t[0]),r[1]=Math.min(e[1],t[1]),r}function en(r,e,t){return r[0]=Math.max(e[0],t[0]),r[1]=Math.max(e[1],t[1]),r}var ho=function(){function r(e,t){this.target=e,this.topTarget=t&&t.topTarget}return r}(),SP=function(){function r(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return r.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new ho(t,e),"dragstart",e.event))},r.prototype._drag=function(e){var t=this._draggingTarget;if(t){var a=e.offsetX,n=e.offsetY,i=a-this._x,o=n-this._y;this._x=a,this._y=n,t.drift(i,o,e),this.handler.dispatchToElement(new ho(t,e),"drag",e.event);var s=this.handler.findHover(a,n,t).target,l=this._dropTarget;this._dropTarget=s,t!==s&&(l&&s!==l&&this.handler.dispatchToElement(new ho(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new ho(s,e),"dragenter",e.event))}},r.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new ho(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new ho(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},r}(),xP=SP,bP=function(){function r(e){e&&(this._$eventProcessor=e)}return r.prototype.on=function(e,t,a,n){this._$handlers||(this._$handlers={});var i=this._$handlers;if(typeof t=="function"&&(n=a,a=t,t=null),!a||!e)return this;var o=this._$eventProcessor;t!=null&&o&&o.normalizeQuery&&(t=o.normalizeQuery(t)),i[e]||(i[e]=[]);for(var s=0;s>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",a[l]+":0",n[u]+":0",a[1-l]+":auto",n[1-u]+":auto",""].join("!important;"),r.appendChild(o),t.push(o)}return t}function AP(r,e,t){for(var a=t?"invTrans":"trans",n=e[a],i=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=r[u].getBoundingClientRect(),h=2*u,v=f.left,c=f.top;o.push(v,c),l=l&&i&&v===i[h]&&c===i[h+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&n?n:(e.srcCoords=o,e[a]=t?n0(s,o):n0(o,s))}function o0(r){return r.nodeName.toUpperCase()==="CANVAS"}var MP=/([&<>"'])/g,DP={"&":"&","<":"<",">":">",'"':""","'":"'"};function Ge(r){return r==null?"":(r+"").replace(MP,function(e,t){return DP[t]})}var LP=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Yv=[],IP=St.browser.firefox&&+St.browser.version.split(".")[0]<39;function Zv(r,e,t,a){return t=t||{},a?s0(r,e,t):IP&&e.layerX!=null&&e.layerX!==e.offsetX?(t.zrX=e.layerX,t.zrY=e.layerY):e.offsetX!=null?(t.zrX=e.offsetX,t.zrY=e.offsetY):s0(r,e,t),t}function s0(r,e,t){if(St.domSupported&&r.getBoundingClientRect){var a=e.clientX,n=e.clientY;if(o0(r)){var i=r.getBoundingClientRect();t.zrX=a-i.left,t.zrY=n-i.top;return}else if(Uv(Yv,r,a,n)){t.zrX=Yv[0],t.zrY=Yv[1];return}}t.zrX=t.zrY=0}function Xv(r){return r||window.event}function fr(r,e,t){if(e=Xv(e),e.zrX!=null)return e;var a=e.type,n=a&&a.indexOf("touch")>=0;if(n){var o=a!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&Zv(r,o,e,t)}else{Zv(r,e,e,t);var i=PP(e);e.zrDelta=i?i/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&LP.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function PP(r){var e=r.wheelDelta;if(e)return e;var t=r.deltaX,a=r.deltaY;if(t==null||a==null)return e;var n=Math.abs(a!==0?a:t),i=a>0?-1:a<0?1:t>0?-1:1;return 3*n*i}function Kv(r,e,t,a){r.addEventListener(e,t,a)}function RP(r,e,t,a){r.removeEventListener(e,t,a)}var Ta=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function l0(r){return r.which===2||r.which===3}var EP=function(){function r(){this._track=[]}return r.prototype.recognize=function(e,t,a){return this._doTrack(e,t,a),this._recognize(e)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(e,t,a){var n=e.touches;if(!!n){for(var i={points:[],touches:[],target:t,event:e},o=0,s=n.length;o1&&a&&a.length>1){var i=u0(a)/u0(n);!isFinite(i)&&(i=1),e.pinchScale=i;var o=kP(a);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:r[0].target,event:e}}}}};function hr(){return[1,0,0,1,0,0]}function ku(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function jv(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r}function Ca(r,e,t){var a=e[0]*t[0]+e[2]*t[1],n=e[1]*t[0]+e[3]*t[1],i=e[0]*t[2]+e[2]*t[3],o=e[1]*t[2]+e[3]*t[3],s=e[0]*t[4]+e[2]*t[5]+e[4],l=e[1]*t[4]+e[3]*t[5]+e[5];return r[0]=a,r[1]=n,r[2]=i,r[3]=o,r[4]=s,r[5]=l,r}function jr(r,e,t){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4]+t[0],r[5]=e[5]+t[1],r}function Zn(r,e,t){var a=e[0],n=e[2],i=e[4],o=e[1],s=e[3],l=e[5],u=Math.sin(t),f=Math.cos(t);return r[0]=a*f+o*u,r[1]=-a*u+o*f,r[2]=n*f+s*u,r[3]=-n*u+f*s,r[4]=f*i+u*l,r[5]=f*l-u*i,r}function $v(r,e,t){var a=t[0],n=t[1];return r[0]=e[0]*a,r[1]=e[1]*n,r[2]=e[2]*a,r[3]=e[3]*n,r[4]=e[4]*a,r[5]=e[5]*n,r}function vo(r,e){var t=e[0],a=e[2],n=e[4],i=e[1],o=e[3],s=e[5],l=t*o-i*a;return l?(l=1/l,r[0]=o*l,r[1]=-i*l,r[2]=-a*l,r[3]=t*l,r[4]=(a*s-o*n)*l,r[5]=(i*n-t*s)*l,r):null}function OP(r){var e=hr();return jv(e,r),e}var NP=function(){function r(e,t){this.x=e||0,this.y=t||0}return r.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(e,t){return this.x=e,this.y=t,this},r.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},r.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},r.prototype.scale=function(e){this.x*=e,this.y*=e},r.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},r.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},r.prototype.dot=function(e){return this.x*e.x+this.y*e.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},r.prototype.distance=function(e){var t=this.x-e.x,a=this.y-e.y;return Math.sqrt(t*t+a*a)},r.prototype.distanceSquare=function(e){var t=this.x-e.x,a=this.y-e.y;return t*t+a*a},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(e){if(!!e){var t=this.x,a=this.y;return this.x=e[0]*t+e[2]*a+e[4],this.y=e[1]*t+e[3]*a+e[5],this}},r.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},r.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},r.set=function(e,t,a){e.x=t,e.y=a},r.copy=function(e,t){e.x=t.x,e.y=t.y},r.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},r.lenSquare=function(e){return e.x*e.x+e.y*e.y},r.dot=function(e,t){return e.x*t.x+e.y*t.y},r.add=function(e,t,a){e.x=t.x+a.x,e.y=t.y+a.y},r.sub=function(e,t,a){e.x=t.x-a.x,e.y=t.y-a.y},r.scale=function(e,t,a){e.x=t.x*a,e.y=t.y*a},r.scaleAndAdd=function(e,t,a,n){e.x=t.x+a.x*n,e.y=t.y+a.y*n},r.lerp=function(e,t,a,n){var i=1-n;e.x=i*t.x+n*a.x,e.y=i*t.y+n*a.y},r}(),lt=NP,Ou=Math.min,Nu=Math.max,Xn=new lt,Kn=new lt,qn=new lt,jn=new lt,As=new lt,Ms=new lt,BP=function(){function r(e,t,a,n){a<0&&(e=e+a,a=-a),n<0&&(t=t+n,n=-n),this.x=e,this.y=t,this.width=a,this.height=n}return r.prototype.union=function(e){var t=Ou(e.x,this.x),a=Ou(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Nu(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Nu(e.y+e.height,this.y+this.height)-a:this.height=e.height,this.x=t,this.y=a},r.prototype.applyTransform=function(e){r.applyTransform(this,this,e)},r.prototype.calculateTransform=function(e){var t=this,a=e.width/t.width,n=e.height/t.height,i=hr();return jr(i,i,[-t.x,-t.y]),$v(i,i,[a,n]),jr(i,i,[e.x,e.y]),i},r.prototype.intersect=function(e,t){if(!e)return!1;e instanceof r||(e=r.create(e));var a=this,n=a.x,i=a.x+a.width,o=a.y,s=a.y+a.height,l=e.x,u=e.x+e.width,f=e.y,h=e.y+e.height,v=!(ip&&(p=_,dp&&(p=S,y=a.x&&e<=a.x+a.width&&t>=a.y&&t<=a.y+a.height},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(e){r.copy(this,e)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(e){return new r(e.x,e.y,e.width,e.height)},r.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},r.applyTransform=function(e,t,a){if(!a){e!==t&&r.copy(e,t);return}if(a[1]<1e-5&&a[1]>-1e-5&&a[2]<1e-5&&a[2]>-1e-5){var n=a[0],i=a[3],o=a[4],s=a[5];e.x=t.x*n+o,e.y=t.y*i+s,e.width=t.width*n,e.height=t.height*i,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}Xn.x=qn.x=t.x,Xn.y=jn.y=t.y,Kn.x=jn.x=t.x+t.width,Kn.y=qn.y=t.y+t.height,Xn.transform(a),jn.transform(a),Kn.transform(a),qn.transform(a),e.x=Ou(Xn.x,Kn.x,qn.x,jn.x),e.y=Ou(Xn.y,Kn.y,qn.y,jn.y);var l=Nu(Xn.x,Kn.x,qn.x,jn.x),u=Nu(Xn.y,Kn.y,qn.y,jn.y);e.width=l-e.x,e.height=u-e.y},r}(),ht=BP,f0="silent";function VP(r,e,t){return{type:r,event:t,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:t.zrX,offsetY:t.zrY,gestureEvent:t.gestureEvent,pinchX:t.pinchX,pinchY:t.pinchY,pinchScale:t.pinchScale,wheelDelta:t.zrDelta,zrByTouch:t.zrByTouch,which:t.which,stop:zP}}function zP(){Ta(this.event)}var GP=function(r){Ft(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.handler=null,t}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(ur),Ds=function(){function r(e,t){this.x=e,this.y=t}return r}(),FP=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Qv=new ht(0,0,0,0),h0=function(r){Ft(e,r);function e(t,a,n,i,o){var s=r.call(this)||this;return s._hovered=new Ds(0,0),s.storage=t,s.painter=a,s.painterRoot=i,s._pointerSize=o,n=n||new GP,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new xP(s),s}return e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(A(FP,function(a){t.on&&t.on(a,this[a],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var a=t.zrX,n=t.zrY,i=c0(this,a,n),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=i?new Ds(a,n):this.findHover(a,n),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",t),this.dispatchToElement(l,"mousemove",t),u&&u!==s&&this.dispatchToElement(l,"mouseover",t)},e.prototype.mouseout=function(t){var a=t.zrEventControl;a!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",t),a!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new Ds(0,0)},e.prototype.dispatch=function(t,a){var n=this[t];n&&n.call(this,a)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var a=this.proxy;a.setCursor&&a.setCursor(t)},e.prototype.dispatchToElement=function(t,a,n){t=t||{};var i=t.target;if(!(i&&i.silent)){for(var o="on"+a,s=VP(a,t,n);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(a,s),i=i.__hostTarget?i.__hostTarget:i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(a,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(a,s)}))}},e.prototype.findHover=function(t,a,n){var i=this.storage.getDisplayList(),o=new Ds(t,a);if(v0(i,o,t,a,n),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new ht(t-u,a-u,l,l),h=i.length-1;h>=0;h--){var v=i[h];v!==n&&!v.ignore&&!v.ignoreCoarsePointer&&(!v.parent||!v.parent.ignoreCoarsePointer)&&(Qv.copy(v.getBoundingRect()),v.transform&&Qv.applyTransform(v.transform),Qv.intersect(f)&&s.push(v))}if(s.length)for(var c=4,p=Math.PI/12,d=Math.PI*2,g=0;g4)return;this._downPoint=null}this.dispatchToElement(i,r,e)}});function HP(r,e,t){if(r[r.rectHover?"rectContain":"contain"](e,t)){for(var a=r,n=void 0,i=!1;a;){if(a.ignoreClip&&(i=!0),!i){var o=a.getClipPath();if(o&&!o.contain(e,t))return!1;a.silent&&(n=!0)}var s=a.__hostTarget;a=s||a.parent}return n?f0:!0}return!1}function v0(r,e,t,a,n){for(var i=r.length-1;i>=0;i--){var o=r[i],s=void 0;if(o!==n&&!o.ignore&&(s=HP(o,t,a))&&(!e.topTarget&&(e.topTarget=o),s!==f0)){e.target=o;break}}}function c0(r,e,t){var a=r.painter;return e<0||e>a.getWidth()||t<0||t>a.getHeight()}var WP=h0,p0=32,Ls=7,d0=256;function UP(r){for(var e=0;r>=p0;)e|=r&1,r>>=1;return r+e}function g0(r,e,t,a){var n=e+1;if(n===t)return 1;if(a(r[n++],r[e])<0){for(;n=0;)n++;return n-e}function YP(r,e,t){for(t--;e>>1,n(i,r[l])<0?s=l:o=l+1;var u=a-o;switch(u){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;u>0;)r[o+u]=r[o+u-1],u--}r[o]=i}}function Jv(r,e,t,a,n,i){var o=0,s=0,l=1;if(i(r,e[t+n])>0){for(s=a-n;l0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}else{for(s=n+1;ls&&(l=s);var u=o;o=n-l,l=n-u}for(o++;o>>1);i(r,e[t+f])>0?o=f+1:l=f}return l}function tc(r,e,t,a,n,i){var o=0,s=0,l=1;if(i(r,e[t+n])<0){for(s=n+1;ls&&(l=s);var u=o;o=n-l,l=n-u}else{for(s=a-n;l=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}for(o++;o>>1);i(r,e[t+f])<0?l=f:o=f+1}return l}function ZP(r,e){var t=Ls,a=0,n=d0,i=0,o,s,l=0;a=r.length,a<2*d0&&(n=a>>>1);var u=[];i=a<120?5:a<1542?10:a<119151?19:40,o=[],s=[];function f(g,y){o[l]=g,s[l]=y,l+=1}function h(){for(;l>1;){var g=l-2;if(g>=1&&s[g-1]<=s[g]+s[g+1]||g>=2&&s[g-2]<=s[g]+s[g-1])s[g-1]s[g+1])break;c(g)}}function v(){for(;l>1;){var g=l-2;g>0&&s[g-1]=Ls||M>=Ls);if(D)break;T<0&&(T=0),T+=2}if(t=T,t<1&&(t=1),y===1){for(S=0;S<_;S++)r[w+S]=r[x+S];r[w+_]=u[b]}else{if(y===0)throw new Error;for(S=0;S=0;S--)r[C+S]=r[T+S];r[w]=u[x];return}for(var M=t;;){var D=0,L=0,I=!1;do if(e(u[x],r[b])<0){if(r[w--]=r[b--],D++,L=0,--y==0){I=!0;break}}else if(r[w--]=u[x--],L++,D=0,--_==1){I=!0;break}while((D|L)=0;S--)r[C+S]=r[T+S];if(y===0){I=!0;break}}if(r[w--]=u[x--],--_==1){I=!0;break}if(L=_-Jv(r[b],u,0,_,_-1,e),L!==0){for(w-=L,x-=L,_-=L,C=w+1,T=x+1,S=0;S=Ls||L>=Ls);if(I)break;M<0&&(M=0),M+=2}if(t=M,t<1&&(t=1),_===1){for(w-=y,b-=y,C=w+1,T=b+1,S=y-1;S>=0;S--)r[C+S]=r[T+S];r[w]=u[x]}else{if(_===0)throw new Error;for(T=w-(_-1),S=0;S<_;S++)r[T+S]=u[S]}}return{mergeRuns:h,forceMergeRuns:v,pushRun:f}}function Bu(r,e,t,a){t||(t=0),a||(a=r.length);var n=a-t;if(!(n<2)){var i=0;if(ns&&(l=s),y0(r,t,t+l,t+i,e),i=l}o.pushRun(t,i),o.mergeRuns(),n-=i,t+=i}while(n!==0);o.forceMergeRuns()}}var tr=1,Is=2,co=4,m0=!1;function ec(){m0||(m0=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function _0(r,e){return r.zlevel===e.zlevel?r.z===e.z?r.z2-e.z2:r.z-e.z:r.zlevel-e.zlevel}var XP=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=_0}return r.prototype.traverse=function(e,t){for(var a=0;a0&&(f.__clipPaths=[]),isNaN(f.z)&&(ec(),f.z=0),isNaN(f.z2)&&(ec(),f.z2=0),isNaN(f.zlevel)&&(ec(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var h=e.getDecalElement&&e.getDecalElement();h&&this._updateAndAddDisplayable(h,t,a);var v=e.getTextGuideLine();v&&this._updateAndAddDisplayable(v,t,a);var c=e.getTextContent();c&&this._updateAndAddDisplayable(c,t,a)}},r.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},r.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,a=e.length;t=0&&this._roots.splice(n,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r}(),KP=XP,S0;S0=St.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var rc=S0,Vu={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var e,t=.1,a=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=a/4):e=a*Math.asin(1/t)/(2*Math.PI),-(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/a)))},elasticOut:function(r){var e,t=.1,a=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=a/4):e=a*Math.asin(1/t)/(2*Math.PI),t*Math.pow(2,-10*r)*Math.sin((r-e)*(2*Math.PI)/a)+1)},elasticInOut:function(r){var e,t=.1,a=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=a/4):e=a*Math.asin(1/t)/(2*Math.PI),(r*=2)<1?-.5*(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/a)):t*Math.pow(2,-10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/a)*.5+1)},backIn:function(r){var e=1.70158;return r*r*((e+1)*r-e)},backOut:function(r){var e=1.70158;return--r*r*((e+1)*r+e)+1},backInOut:function(r){var e=1.70158*1.525;return(r*=2)<1?.5*(r*r*((e+1)*r-e)):.5*((r-=2)*r*((e+1)*r+e)+2)},bounceIn:function(r){return 1-Vu.bounceOut(1-r)},bounceOut:function(r){return r<1/2.75?7.5625*r*r:r<2/2.75?7.5625*(r-=1.5/2.75)*r+.75:r<2.5/2.75?7.5625*(r-=2.25/2.75)*r+.9375:7.5625*(r-=2.625/2.75)*r+.984375},bounceInOut:function(r){return r<.5?Vu.bounceIn(r*2)*.5:Vu.bounceOut(r*2-1)*.5+.5}},x0=Vu,zu=Math.pow,rn=Math.sqrt,Gu=1e-8,b0=1e-4,w0=rn(3),Fu=1/3,$r=Wn(),vr=Wn(),po=Wn();function an(r){return r>-Gu&&rGu||r<-Gu}function le(r,e,t,a,n){var i=1-n;return i*i*(i*r+3*n*e)+n*n*(n*a+3*i*t)}function C0(r,e,t,a,n){var i=1-n;return 3*(((e-r)*i+2*(t-e)*n)*i+(a-t)*n*n)}function Hu(r,e,t,a,n,i){var o=a+3*(e-t)-r,s=3*(t-e*2+r),l=3*(e-r),u=r-n,f=s*s-3*o*l,h=s*l-9*o*u,v=l*l-3*s*u,c=0;if(an(f)&&an(h))if(an(s))i[0]=0;else{var p=-l/s;p>=0&&p<=1&&(i[c++]=p)}else{var d=h*h-4*f*v;if(an(d)){var g=h/f,p=-s/o+g,y=-g/2;p>=0&&p<=1&&(i[c++]=p),y>=0&&y<=1&&(i[c++]=y)}else if(d>0){var m=rn(d),_=f*s+1.5*o*(-h+m),S=f*s+1.5*o*(-h-m);_<0?_=-zu(-_,Fu):_=zu(_,Fu),S<0?S=-zu(-S,Fu):S=zu(S,Fu);var p=(-s-(_+S))/(3*o);p>=0&&p<=1&&(i[c++]=p)}else{var b=(2*f*s-3*o*h)/(2*rn(f*f*f)),x=Math.acos(b)/3,w=rn(f),T=Math.cos(x),p=(-s-2*w*T)/(3*o),y=(-s+w*(T+w0*Math.sin(x)))/(3*o),C=(-s+w*(T-w0*Math.sin(x)))/(3*o);p>=0&&p<=1&&(i[c++]=p),y>=0&&y<=1&&(i[c++]=y),C>=0&&C<=1&&(i[c++]=C)}}return c}function A0(r,e,t,a,n){var i=6*t-12*e+6*r,o=9*e+3*a-3*r-9*t,s=3*e-3*r,l=0;if(an(o)){if(T0(i)){var u=-s/i;u>=0&&u<=1&&(n[l++]=u)}}else{var f=i*i-4*o*s;if(an(f))n[0]=-i/(2*o);else if(f>0){var h=rn(f),u=(-i+h)/(2*o),v=(-i-h)/(2*o);u>=0&&u<=1&&(n[l++]=u),v>=0&&v<=1&&(n[l++]=v)}}return l}function nn(r,e,t,a,n,i){var o=(e-r)*n+r,s=(t-e)*n+e,l=(a-t)*n+t,u=(s-o)*n+o,f=(l-s)*n+s,h=(f-u)*n+u;i[0]=r,i[1]=o,i[2]=u,i[3]=h,i[4]=h,i[5]=f,i[6]=l,i[7]=a}function M0(r,e,t,a,n,i,o,s,l,u,f){var h,v=.005,c=Infinity,p,d,g,y;$r[0]=l,$r[1]=u;for(var m=0;m<1;m+=.05)vr[0]=le(r,t,n,o,m),vr[1]=le(e,a,i,s,m),g=Yn($r,vr),g=0&&g=0&&u<=1&&(n[l++]=u)}}else{var f=o*o-4*i*s;if(an(f)){var u=-o/(2*i);u>=0&&u<=1&&(n[l++]=u)}else if(f>0){var h=rn(f),u=(-o+h)/(2*i),v=(-o-h)/(2*i);u>=0&&u<=1&&(n[l++]=u),v>=0&&v<=1&&(n[l++]=v)}}return l}function D0(r,e,t){var a=r+t-2*e;return a===0?.5:(r-e)/a}function Ps(r,e,t,a,n){var i=(e-r)*a+r,o=(t-e)*a+e,s=(o-i)*a+i;n[0]=r,n[1]=i,n[2]=s,n[3]=s,n[4]=o,n[5]=t}function L0(r,e,t,a,n,i,o,s,l){var u,f=.005,h=Infinity;$r[0]=o,$r[1]=s;for(var v=0;v<1;v+=.05){vr[0]=pe(r,t,n,v),vr[1]=pe(e,a,i,v);var c=Yn($r,vr);c=0&&c=1?1:Hu(0,a,i,1,l,s)&&le(0,n,o,1,s[0])}}}var JP=function(){function r(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||$t,this.ondestroy=e.ondestroy||$t,this.onrestart=e.onrestart||$t,e.easing&&this.setEasing(e.easing)}return r.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=t;return}var a=this._life,n=e-this._startTime-this._pausedTime,i=n/a;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,s=o?o(i):i;if(this.onframe(s),i===1)if(this.loop){var l=n%a;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(e){this.easing=e,this.easingFunc=$(e)?e:x0[e]||nc(e)},r}(),t2=JP,I0=function(){function r(e){this.value=e}return r}(),e2=function(){function r(){this._len=0}return r.prototype.insert=function(e){var t=new I0(e);return this.insertEntry(t),t},r.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},r.prototype.remove=function(e){var t=e.prev,a=e.next;t?t.next=a:this.head=a,a?a.prev=t:this.tail=t,e.next=e.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r}(),r2=function(){function r(e){this._list=new e2,this._maxSize=10,this._map={},this._maxSize=e}return r.prototype.put=function(e,t){var a=this._list,n=this._map,i=null;if(n[e]==null){var o=a.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=a.head;a.remove(l),delete n[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new I0(t),s.key=e,a.insertEntry(s),n[e]=s}return i},r.prototype.get=function(e){var t=this._map[e],a=this._list;if(t!=null)return t!==a.tail&&(a.remove(t),a.insertEntry(t)),t.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r}(),Rs=r2,P0={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 Er(r){return r=Math.round(r),r<0?0:r>255?255:r}function a2(r){return r=Math.round(r),r<0?0:r>360?360:r}function Es(r){return r<0?0:r>1?1:r}function ic(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?Er(parseFloat(e)/100*255):Er(parseInt(e,10))}function $n(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?Es(parseFloat(e)/100):Es(parseFloat(e))}function oc(r,e,t){return t<0?t+=1:t>1&&(t-=1),t*6<1?r+(e-r)*t*6:t*2<1?e:t*3<2?r+(e-r)*(2/3-t)*6:r}function on(r,e,t){return r+(e-r)*t}function cr(r,e,t,a,n){return r[0]=e,r[1]=t,r[2]=a,r[3]=n,r}function sc(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r}var R0=new Rs(20),Wu=null;function go(r,e){Wu&&sc(Wu,e),Wu=R0.put(r,Wu||e.slice())}function Fe(r,e){if(!!r){e=e||[];var t=R0.get(r);if(t)return sc(e,t);r=r+"";var a=r.replace(/ /g,"").toLowerCase();if(a in P0)return sc(e,P0[a]),go(r,e),e;var n=a.length;if(a.charAt(0)==="#"){if(n===4||n===5){var i=parseInt(a.slice(1,4),16);if(!(i>=0&&i<=4095)){cr(e,0,0,0,1);return}return cr(e,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,n===5?parseInt(a.slice(4),16)/15:1),go(r,e),e}else if(n===7||n===9){var i=parseInt(a.slice(1,7),16);if(!(i>=0&&i<=16777215)){cr(e,0,0,0,1);return}return cr(e,(i&16711680)>>16,(i&65280)>>8,i&255,n===9?parseInt(a.slice(7),16)/255:1),go(r,e),e}return}var o=a.indexOf("("),s=a.indexOf(")");if(o!==-1&&s+1===n){var l=a.substr(0,o),u=a.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?cr(e,+u[0],+u[1],+u[2],1):cr(e,0,0,0,1);f=$n(u.pop());case"rgb":if(u.length>=3)return cr(e,ic(u[0]),ic(u[1]),ic(u[2]),u.length===3?f:$n(u[3])),go(r,e),e;cr(e,0,0,0,1);return;case"hsla":if(u.length!==4){cr(e,0,0,0,1);return}return u[3]=$n(u[3]),lc(u,e),go(r,e),e;case"hsl":if(u.length!==3){cr(e,0,0,0,1);return}return lc(u,e),go(r,e),e;default:return}}cr(e,0,0,0,1)}}function lc(r,e){var t=(parseFloat(r[0])%360+360)%360/360,a=$n(r[1]),n=$n(r[2]),i=n<=.5?n*(a+1):n+a-n*a,o=n*2-i;return e=e||[],cr(e,Er(oc(o,i,t+1/3)*255),Er(oc(o,i,t)*255),Er(oc(o,i,t-1/3)*255),1),r.length===4&&(e[3]=r[3]),e}function n2(r){if(!!r){var e=r[0]/255,t=r[1]/255,a=r[2]/255,n=Math.min(e,t,a),i=Math.max(e,t,a),o=i-n,s=(i+n)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(i+n):u=o/(2-i-n);var f=((i-e)/6+o/2)/o,h=((i-t)/6+o/2)/o,v=((i-a)/6+o/2)/o;e===i?l=v-h:t===i?l=1/3+f-v:a===i&&(l=2/3+h-f),l<0&&(l+=1),l>1&&(l-=1)}var c=[l*360,u,s];return r[3]!=null&&c.push(r[3]),c}}function uc(r,e){var t=Fe(r);if(t){for(var a=0;a<3;a++)e<0?t[a]=t[a]*(1-e)|0:t[a]=(255-t[a])*e+t[a]|0,t[a]>255?t[a]=255:t[a]<0&&(t[a]=0);return Qr(t,t.length===4?"rgba":"rgb")}}function $K(r){var e=Fe(r);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function fc(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){t=t||[];var a=r*(e.length-1),n=Math.floor(a),i=Math.ceil(a),o=e[n],s=e[i],l=a-n;return t[0]=Er(on(o[0],s[0],l)),t[1]=Er(on(o[1],s[1],l)),t[2]=Er(on(o[2],s[2],l)),t[3]=Es(on(o[3],s[3],l)),t}}var QK=null;function i2(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){var a=r*(e.length-1),n=Math.floor(a),i=Math.ceil(a),o=Fe(e[n]),s=Fe(e[i]),l=a-n,u=Qr([Er(on(o[0],s[0],l)),Er(on(o[1],s[1],l)),Er(on(o[2],s[2],l)),Es(on(o[3],s[3],l))],"rgba");return t?{color:u,leftIndex:n,rightIndex:i,value:a}:u}}var JK=null;function ks(r,e,t,a){var n=Fe(r);if(r)return n=n2(n),e!=null&&(n[0]=a2(e)),t!=null&&(n[1]=$n(t)),a!=null&&(n[2]=$n(a)),Qr(lc(n),"rgba")}function Uu(r,e){var t=Fe(r);if(t&&e!=null)return t[3]=Es(e),Qr(t,"rgba")}function Qr(r,e){if(!(!r||!r.length)){var t=r[0]+","+r[1]+","+r[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(t+=","+r[3]),e+"("+t+")"}}function Yu(r,e){var t=Fe(r);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}function tq(){return Qr([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}var E0=mt(48764).Buffer,Os=Math.round;function Ns(r){var e;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var t=Fe(r);t&&(r="rgb("+t[0]+","+t[1]+","+t[2]+")",e=t[3])}return{color:r,opacity:e==null?1:e}}var k0=1e-4;function sn(r){return r-k0}function Zu(r){return Os(r*1e3)/1e3}function hc(r){return Os(r*1e4)/1e4}function eq(r){return Os(r*10)/10}function o2(r){return"matrix("+Zu(r[0])+","+Zu(r[1])+","+Zu(r[2])+","+Zu(r[3])+","+hc(r[4])+","+hc(r[5])+")"}var s2={left:"start",right:"end",center:"middle",middle:"middle"};function l2(r,e,t){return t==="top"?r+=e/2:t==="bottom"&&(r-=e/2),r}function u2(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function f2(r){var e=r.style,t=r.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),t[0],t[1]].join(",")}function rq(r){var e=[];if(r)for(var t=0;ta?e:r,i=Math.min(t,a),o=n[i-1]||{color:[0,0,0,0],offset:0},s=i;so;if(s)a.length=o;else for(var l=i;l=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(e,t,a){this._needsSort=!0;var n=this.keyframes,i=n.length,o=!1,s=W0,l=t;if(Te(t)){var u=g2(t);s=u,(u===1&&!Tt(t[0])||u===2&&!Tt(t[0][0]))&&(o=!0)}else if(Tt(t)&&!Ts(t))s=ju;else if(U(t))if(!isNaN(+t))s=ju;else{var f=Fe(t);f&&(l=f,s=Vs)}else if(Au(t)){var h=B({},l);h.colorStops=G(t.colorStops,function(c){return{offset:c.offset,color:Fe(c.color)}}),N0(t)?s=dc:B0(t)&&(s=gc),l=h}i===0?this.valType=s:(s!==this.valType||s===W0)&&(o=!0),this.discrete=this.discrete||o;var v={time:e,value:l,rawValue:t,percent:0};return a&&(v.easing=a,v.easingFunc=$(a)?a:x0[a]||nc(a)),n.push(v),v},r.prototype.prepare=function(e,t){var a=this.keyframes;this._needsSort&&a.sort(function(d,g){return d.time-g.time});for(var n=this.valType,i=a.length,o=a[i-1],s=this.discrete,l=Qu(n),u=U0(n),f=0;f=0&&!(o[f].percent<=t);f--);f=v(f,s-2)}else{for(f=h;ft);f++);f=v(f-1,s-2)}p=o[f+1],c=o[f]}if(!!(c&&p)){this._lastFr=f,this._lastFrP=t;var g=p.percent-c.percent,y=g===0?1:v((t-c.percent)/g,1);p.easingFunc&&(y=p.easingFunc(y));var m=a?this._additiveValue:u?zs:e[l];if((Qu(i)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)e[l]=y<1?c.rawValue:p.rawValue;else if(Qu(i))i===$u?pc(m,c[n],p[n],y):c2(m,c[n],p[n],y);else if(U0(i)){var _=c[n],S=p[n],b=i===dc;e[l]={type:b?"linear":"radial",x:Aa(_.x,S.x,y),y:Aa(_.y,S.y,y),colorStops:G(_.colorStops,function(w,T){var C=S.colorStops[T];return{offset:Aa(w.offset,C.offset,y),color:qu(pc([],w.color,C.color,y))}}),global:S.global},b?(e[l].x2=Aa(_.x2,S.x2,y),e[l].y2=Aa(_.y2,S.y2,y)):e[l].r=Aa(_.r,S.r,y)}else if(u)pc(m,c[n],p[n],y),a||(e[l]=qu(m));else{var x=Aa(c[n],p[n],y);a?this._additiveValue=x:e[l]=x}a&&this._addToTarget(e)}}},r.prototype._addToTarget=function(e){var t=this.valType,a=this.propName,n=this._additiveValue;t===ju?e[a]=e[a]+n:t===Vs?(Fe(e[a],zs),Ku(zs,zs,n,1),e[a]=qu(zs)):t===$u?Ku(e[a],e[a],n,1):t===H0&&F0(e[a],e[a],n,1)},r}(),m2=function(){function r(e,t,a,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&n){uo("Can' use additive animation on looped animation.");return}this._additiveAnimators=n,this._allowDiscrete=a}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(e){this._target=e},r.prototype.when=function(e,t,a){return this.whenWithKeys(e,t,_t(t),a)},r.prototype.whenWithKeys=function(e,t,a,n){for(var i=this._tracks,o=0;o0&&l.addKeyframe(0,Bs(u),n),this._trackKeys.push(s)}l.addKeyframe(e,Bs(t[s]),n)}return this._maxTime=Math.max(this._maxTime,e),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,a=0;a0)){this._started=1;for(var t=this,a=[],n=this._maxTime||0,i=0;i1){var s=o.pop();i.addKeyframe(s.time,e[n]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},r}(),yc=m2;function yo(){return new Date().getTime()}var _2=function(r){Ft(e,r);function e(t){var a=r.call(this)||this;return a._running=!1,a._time=0,a._pausedTime=0,a._pauseStart=0,a._paused=!1,t=t||{},a.stage=t.stage||{},a}return e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var a=t.getClip();a&&this.addClip(a)},e.prototype.removeClip=function(t){if(!!t.animation){var a=t.prev,n=t.next;a?a.next=n:this._head=n,n?n.prev=a:this._tail=a,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var a=t.getClip();a&&this.removeClip(a),t.animation=null},e.prototype.update=function(t){for(var a=yo()-this._pausedTime,n=a-this._time,i=this._head;i;){var o=i.next,s=i.step(a,n);s&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=a,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0;function a(){t._running&&(rc(a),!t._paused&&t.update())}rc(a)},e.prototype.start=function(){this._running||(this._time=yo(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=yo(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=yo()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var a=t.next;t.prev=t.next=t.animation=null,t=a}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(t,a){a=a||{},this.start();var n=new yc(t,a.loop);return this.addAnimator(n),n},e}(ur),S2=_2,x2=300,mc=St.domSupported,_c=function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],t={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},a=G(r,function(n){var i=n.replace("mouse","pointer");return t.hasOwnProperty(i)?i:n});return{mouse:r,touch:e,pointer:a}}(),Y0={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Z0=!1;function Sc(r){var e=r.pointerType;return e==="pen"||e==="touch"}function b2(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function xc(r){r&&(r.zrByTouch=!0)}function w2(r,e){return fr(r.dom,new T2(r,e),!0)}function X0(r,e){for(var t=e,a=!1;t&&t.nodeType!==9&&!(a=t.domBelongToZr||t!==e&&t===r.painterRoot);)t=t.parentNode;return a}var T2=function(){function r(e,t){this.stopPropagation=$t,this.stopImmediatePropagation=$t,this.preventDefault=$t,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return r}(),kr={mousedown:function(r){r=fr(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=fr(this.dom,r);var e=this.__mayPointerCapture;e&&(r.zrX!==e[0]||r.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=fr(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=fr(this.dom,r);var e=r.toElement||r.relatedTarget;X0(this,e)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){Z0=!0,r=fr(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){Z0||(r=fr(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=fr(this.dom,r),xc(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),kr.mousemove.call(this,r),kr.mousedown.call(this,r)},touchmove:function(r){r=fr(this.dom,r),xc(r),this.handler.processGesture(r,"change"),kr.mousemove.call(this,r)},touchend:function(r){r=fr(this.dom,r),xc(r),this.handler.processGesture(r,"end"),kr.mouseup.call(this,r),+new Date-+this.__lastTouchMoment$0||r<-$0}var Jn=[],mo=[],Mc=hr(),Dc=Math.abs,I2=function(){function r(){}return r.prototype.getLocalTransform=function(e){return r.getLocalTransform(this,e)},r.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},r.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},r.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},r.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},r.prototype.needLocalTransform=function(){return Qn(this.rotation)||Qn(this.x)||Qn(this.y)||Qn(this.scaleX-1)||Qn(this.scaleY-1)||Qn(this.skewX)||Qn(this.skewY)},r.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),a=this.transform;if(!(t||e)){a&&j0(a);return}a=a||hr(),t?this.getLocalTransform(a):j0(a),e&&(t?Ca(a,e,a):jv(a,e)),this.transform=a,this._resolveGlobalScaleRatio(a)},r.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(Jn);var a=Jn[0]<0?-1:1,n=Jn[1]<0?-1:1,i=((Jn[0]-a)*t+a)/Jn[0]||0,o=((Jn[1]-n)*t+n)/Jn[1]||0;e[0]*=i,e[1]*=i,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||hr(),vo(this.invTransform,e)},r.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},r.prototype.setLocalTransform=function(e){if(!!e){var t=e[0]*e[0]+e[1]*e[1],a=e[2]*e[2]+e[3]*e[3],n=Math.atan2(e[1],e[0]),i=Math.PI/2+n-Math.atan2(e[3],e[2]);a=Math.sqrt(a)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-n,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=a,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(!!this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(Ca(mo,e.invTransform,t),t=mo);var a=this.originX,n=this.originY;(a||n)&&(Mc[4]=a,Mc[5]=n,Ca(mo,t,Mc),mo[4]-=a,mo[5]-=n,t=mo),this.setLocalTransform(t)}},r.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},r.prototype.transformCoordToLocal=function(e,t){var a=[e,t],n=this.invTransform;return n&&me(a,a,n),a},r.prototype.transformCoordToGlobal=function(e,t){var a=[e,t],n=this.transform;return n&&me(a,a,n),a},r.prototype.getLineScale=function(){var e=this.transform;return e&&Dc(e[0]-1)>1e-10&&Dc(e[3]-1)>1e-10?Math.sqrt(Dc(e[0]*e[3]-e[2]*e[1])):1},r.prototype.copyTransform=function(e){Q0(this,e)},r.getLocalTransform=function(e,t){t=t||[];var a=e.originX||0,n=e.originY||0,i=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,f=e.x,h=e.y,v=e.skewX?Math.tan(e.skewX):0,c=e.skewY?Math.tan(-e.skewY):0;if(a||n||s||l){var p=a+s,d=n+l;t[4]=-p*i-v*d*o,t[5]=-d*o-c*p*i}else t[4]=t[5]=0;return t[0]=i,t[3]=o,t[1]=c*i,t[2]=v*o,u&&Zn(t,t,u),t[4]+=a+f,t[5]+=n+h,t},r.initDefaultProps=function(){var e=r.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),r}(),Jr=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Q0(r,e){for(var t=0;t=0?parseFloat(r)/100*e:parseFloat(r):r}function rf(r,e,t){var a=e.position||"inside",n=e.distance!=null?e.distance:5,i=t.height,o=t.width,s=i/2,l=t.x,u=t.y,f="left",h="top";if(a instanceof Array)l+=Or(a[0],t.width),u+=Or(a[1],t.height),f=null,h=null;else switch(a){case"left":l-=n,u+=s,f="right",h="middle";break;case"right":l+=n+o,u+=s,h="middle";break;case"top":l+=o/2,u-=n,f="center",h="bottom";break;case"bottom":l+=o/2,u+=i+n,f="center";break;case"inside":l+=o/2,u+=s,f="center",h="middle";break;case"insideLeft":l+=n,u+=s,h="middle";break;case"insideRight":l+=o-n,u+=s,f="right",h="middle";break;case"insideTop":l+=o/2,u+=n,f="center";break;case"insideBottom":l+=o/2,u+=i-n,f="center",h="bottom";break;case"insideTopLeft":l+=n,u+=n;break;case"insideTopRight":l+=o-n,u+=n,f="right";break;case"insideBottomLeft":l+=n,u+=i-n,h="bottom";break;case"insideBottomRight":l+=o-n,u+=i-n,f="right",h="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=f,r.verticalAlign=h,r}var Lc="__zr_normal__",Ic=Jr.concat(["ignore"]),P2=qr(Jr,function(r,e){return r[e]=!0,r},{ignore:!1}),So={},R2=new ht(0,0,0,0),Pc=function(){function r(e){this.id=xs(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return r.prototype._init=function(e){this.attr(e)},r.prototype.drift=function(e,t,a){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.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var a=this.textConfig,n=a.local,i=t.innerTransformable,o=void 0,s=void 0,l=!1;i.parent=n?this:null;var u=!1;if(i.copyTransform(t),a.position!=null){var f=R2;a.layoutRect?f.copy(a.layoutRect):f.copy(this.getBoundingRect()),n||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(So,a,f):rf(So,a,f),i.x=So.x,i.y=So.y,o=So.align,s=So.verticalAlign;var h=a.origin;if(h&&a.rotation!=null){var v=void 0,c=void 0;h==="center"?(v=f.width*.5,c=f.height*.5):(v=Or(h[0],f.width),c=Or(h[1],f.height)),u=!0,i.originX=-i.x+v+(n?0:f.x),i.originY=-i.y+c+(n?0:f.y)}}a.rotation!=null&&(i.rotation=a.rotation);var p=a.offset;p&&(i.x+=p[0],i.y+=p[1],u||(i.originX=-p[0],i.originY=-p[1]));var d=a.inside==null?typeof a.position=="string"&&a.position.indexOf("inside")>=0:a.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,m=void 0,_=void 0;d&&this.canBeInsideText()?(y=a.insideFill,m=a.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(m==null||m==="auto")&&(m=this.getInsideTextStroke(y),_=!0)):(y=a.outsideFill,m=a.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(m==null||m==="auto")&&(m=this.getOutsideStroke(y),_=!0)),y=y||"#000",(y!==g.fill||m!==g.stroke||_!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=y,g.stroke=m,g.autoStroke=_,g.align=o,g.verticalAlign=s,t.setDefaultTextStyle(g)),t.__dirty|=tr,l&&t.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(e){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Ac:Cc},r.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),a=typeof t=="string"&&Fe(t);a||(a=[255,255,255,1]);for(var n=a[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)a[o]=a[o]*n+(i?0:255)*(1-n);return a[3]=1,Qr(a,"rgba")},r.prototype.traverse=function(e,t){},r.prototype.attrKV=function(e,t){e==="textConfig"?this.setTextConfig(t):e==="textContent"?this.setTextContent(t):e==="clipPath"?this.setClipPath(t):e==="extra"?(this.extra=this.extra||{},B(this.extra,t)):this[e]=t},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(e,t){if(typeof e=="string")this.attrKV(e,t);else if(et(e))for(var a=e,n=_t(a),i=0;i0},r.prototype.getState=function(e){return this.states[e]},r.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},r.prototype.clearStates=function(e){this.useState(Lc,!1,e)},r.prototype.useState=function(e,t,a,n){var i=e===Lc,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,l=this.stateTransition;if(!(st(s,e)>=0&&(t||s.length===1))){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!i){uo("State "+e+" not exists.");return}i||this.saveCurrentToNormalState(u);var f=!!(u&&u.hoverLayer||n);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,u,this._normalState,t,!a&&!this.__inHover&&l&&l.duration>0,l);var h=this._textContent,v=this._textGuide;return h&&h.useState(e,t,a,f),v&&v.useState(e,t,a,f),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~tr),u}}},r.prototype.useStates=function(e,t,a){if(!e.length)this.clearStates();else{var n=[],i=this.currentStates,o=e.length,s=o===i.length;if(s){for(var l=0;l0,p);var d=this._textContent,g=this._textGuide;d&&d.useStates(e,t,v),g&&g.useStates(e,t,v),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!v&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~tr)}},r.prototype._updateAnimationTargets=function(){for(var e=0;e=0){var a=this.currentStates.slice();a.splice(t,1),this.useStates(a)}},r.prototype.replaceState=function(e,t,a){var n=this.currentStates.slice(),i=st(n,e),o=st(n,t)>=0;i>=0?o?n.splice(i,1):n[i]=t:a&&!o&&n.push(t),this.useStates(n)},r.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},r.prototype._mergeStates=function(e){for(var t={},a,n=0;n=0&&i.splice(o,1)}),this.animators.push(e),a&&a.animation.addAnimator(e),a&&a.wakeUp()},r.prototype.updateDuringAnimation=function(e){this.markRedraw()},r.prototype.stopAnimation=function(e,t){for(var a=this.animators,n=a.length,i=[],o=0;o0&&t.during&&i[0].during(function(p,d){t.during(d)});for(var v=0;v0||n.force&&!o.length){var T=void 0,C=void 0,M=void 0;if(s){C={},v&&(T={});for(var S=0;S<_;S++){var y=d[S];C[y]=t[y],v?T[y]=a[y]:t[y]=a[y]}}else if(v){M={};for(var S=0;S<_;S++){var y=d[S];M[y]=Bs(t[y]),k2(t,a,y)}}var b=new yc(t,!1,!1,h?Rt(p,function(L){return L.targetName===e}):null);b.targetName=e,n.scope&&(b.scope=n.scope),v&&T&&b.whenWithKeys(0,T,d),M&&b.whenWithKeys(0,M,d),b.whenWithKeys(u==null?500:u,s?C:a,d).delay(f||0),r.addAnimator(b,e),o.push(b)}}var r_=Pc,a_=function(r){Ft(e,r);function e(t){var a=r.call(this)||this;return a.isGroup=!0,a._children=[],a.attr(t),a}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var a=this._children,n=0;n=0&&(n.splice(i,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,a){var n=st(this._children,t);return n>=0&&this.replaceAt(a,n),this},e.prototype.replaceAt=function(t,a){var n=this._children,i=n[a];if(t&&t!==this&&t.parent!==this&&t!==i){n[a]=t,i.parent=null;var o=this.__zr;o&&i.removeSelfFromZr(o),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var a=this.__zr;a&&a!==t.__zr&&t.addSelfToZr(a),a&&a.refresh()},e.prototype.remove=function(t){var a=this.__zr,n=this._children,i=st(n,t);return i<0?this:(n.splice(i,1),t.parent=null,a&&t.removeSelfFromZr(a),a&&a.refresh(),this)},e.prototype.removeAll=function(){for(var t=this._children,a=this.__zr,n=0;n0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},r.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},r.prototype.resize=function(e){e=e||{},this.painter.resize(e.width,e.height),this.handler.resize()},r.prototype.clearAnimation=function(){this.animation.clear()},r.prototype.getWidth=function(){return this.painter.getWidth()},r.prototype.getHeight=function(){return this.painter.getHeight()},r.prototype.setCursorStyle=function(e){this.handler.setCursorStyle(e)},r.prototype.findHover=function(e,t){return this.handler.findHover(e,t)},r.prototype.on=function(e,t,a){return this.handler.on(e,t,a),this},r.prototype.off=function(e,t){this.handler.off(e,t)},r.prototype.trigger=function(e,t){this.handler.trigger(e,t)},r.prototype.clear=function(){for(var e=this.storage.getRoots(),t=0;t0){if(r<=n)return o;if(r>=i)return s}else{if(r>=n)return o;if(r<=i)return s}else{if(r===n)return o;if(r===i)return s}return(r-n)/l*u+o}function H(r,e){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return U(r)?F2(r).match(/%$/)?parseFloat(r)/100*e:parseFloat(r):r==null?NaN:+r}function Kt(r,e,t){return e==null&&(e=10),e=Math.min(Math.max(0,e),o_),r=(+r).toFixed(e),t?r:+r}function pr(r){return r.sort(function(e,t){return e-t}),r}function ta(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var e=1,t=0;t<15;t++,e*=10)if(Math.round(r*e)/e===r)return t}return H2(r)}function H2(r){var e=r.toString().toLowerCase(),t=e.indexOf("e"),a=t>0?+e.slice(t+1):0,n=t>0?t:e.length,i=e.indexOf("."),o=i<0?0:n-1-i;return Math.max(0,o-a)}function s_(r,e){var t=Math.log,a=Math.LN10,n=Math.floor(t(r[1]-r[0])/a),i=Math.round(t(Math.abs(e[1]-e[0]))/a),o=Math.min(Math.max(-n+i,0),20);return isFinite(o)?o:20}function uq(r,e,t){if(!r[e])return 0;var a=l_(r,t);return a[e]||0}function l_(r,e){var t=qr(r,function(c,p){return c+(isNaN(p)?0:p)},0);if(t===0)return[];for(var a=Math.pow(10,e),n=G(r,function(c){return(isNaN(c)?0:c)/t*a*100}),i=a*100,o=G(n,function(c){return Math.floor(c)}),s=qr(o,function(c,p){return c+p},0),l=G(n,function(c,p){return c-o[p]});su&&(u=l[h],f=h);++o[f],l[f]=0,++s}return G(o,function(c){return c/a})}function W2(r,e){var t=Math.max(ta(r),ta(e)),a=r+e;return t>o_?a:Kt(a,t)}var u_=9007199254740991;function f_(r){var e=Math.PI*2;return(r%e+e)%e}function nf(r){return r>-i_&&r=10&&e++,e}function h_(r,e){var t=kc(r),a=Math.pow(10,t),n=r/a,i;return e?n<1.5?i=1:n<2.5?i=2:n<4?i=3:n<7?i=5:i=10:n<1?i=1:n<2?i=2:n<3?i=3:n<5?i=5:i=10,r=i*a,t>=-20?+r.toFixed(t<0?-t:0):r}function Oc(r,e){var t=(r.length-1)*e+1,a=Math.floor(t),n=+r[a-1],i=t-a;return i?n+i*(r[a]-n):n}function v_(r){r.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-Infinity,t=1,a=0;a=0||i&&st(i,l)<0)){var u=a.getShallow(l,e);u!=null&&(o[r[s][0]]=u)}}return o}}var dR=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],gR=ni(dR),yR=function(){function r(){}return r.prototype.getAreaStyle=function(e,t){return gR(this,e,t)},r}(),Gc=new Rs(50);function mR(r){if(typeof r=="string"){var e=Gc.get(r);return e&&e.image}else return r}function Fc(r,e,t,a,n){if(r)if(typeof r=="string"){if(e&&e.__zrImageSrc===r||!t)return e;var i=Gc.get(r),o={hostEl:t,cb:a,cbPayload:n};return i?(e=i.image,!sf(e)&&i.pending.push(o)):(e=jt.loadImage(r,M_,M_),e.__zrImageSrc=r,Gc.put(r,e.__cachedImgObj={image:e,pending:[o]})),e}else return r;else return e}function M_(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},r.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},r.prototype.resize=function(e){e=e||{},this.painter.resize(e.width,e.height),this.handler.resize()},r.prototype.clearAnimation=function(){this.animation.clear()},r.prototype.getWidth=function(){return this.painter.getWidth()},r.prototype.getHeight=function(){return this.painter.getHeight()},r.prototype.setCursorStyle=function(e){this.handler.setCursorStyle(e)},r.prototype.findHover=function(e,t){return this.handler.findHover(e,t)},r.prototype.on=function(e,t,a){return this.handler.on(e,t,a),this},r.prototype.off=function(e,t){this.handler.off(e,t)},r.prototype.trigger=function(e,t){this.handler.trigger(e,t)},r.prototype.clear=function(){for(var e=this.storage.getRoots(),t=0;t0){if(r<=n)return o;if(r>=i)return s}else{if(r>=n)return o;if(r<=i)return s}else{if(r===n)return o;if(r===i)return s}return(r-n)/l*u+o}function H(r,e){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return U(r)?F2(r).match(/%$/)?parseFloat(r)/100*e:parseFloat(r):r==null?NaN:+r}function Kt(r,e,t){return e==null&&(e=10),e=Math.min(Math.max(0,e),o_),r=(+r).toFixed(e),t?r:+r}function pr(r){return r.sort(function(e,t){return e-t}),r}function ta(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var e=1,t=0;t<15;t++,e*=10)if(Math.round(r*e)/e===r)return t}return H2(r)}function H2(r){var e=r.toString().toLowerCase(),t=e.indexOf("e"),a=t>0?+e.slice(t+1):0,n=t>0?t:e.length,i=e.indexOf("."),o=i<0?0:n-1-i;return Math.max(0,o-a)}function s_(r,e){var t=Math.log,a=Math.LN10,n=Math.floor(t(r[1]-r[0])/a),i=Math.round(t(Math.abs(e[1]-e[0]))/a),o=Math.min(Math.max(-n+i,0),20);return isFinite(o)?o:20}function uq(r,e,t){if(!r[e])return 0;var a=l_(r,t);return a[e]||0}function l_(r,e){var t=qr(r,function(c,p){return c+(isNaN(p)?0:p)},0);if(t===0)return[];for(var a=Math.pow(10,e),n=G(r,function(c){return(isNaN(c)?0:c)/t*a*100}),i=a*100,o=G(n,function(c){return Math.floor(c)}),s=qr(o,function(c,p){return c+p},0),l=G(n,function(c,p){return c-o[p]});su&&(u=l[h],f=h);++o[f],l[f]=0,++s}return G(o,function(c){return c/a})}function W2(r,e){var t=Math.max(ta(r),ta(e)),a=r+e;return t>o_?a:Kt(a,t)}var u_=9007199254740991;function f_(r){var e=Math.PI*2;return(r%e+e)%e}function nf(r){return r>-i_&&r=10&&e++,e}function h_(r,e){var t=kc(r),a=Math.pow(10,t),n=r/a,i;return e?n<1.5?i=1:n<2.5?i=2:n<4?i=3:n<7?i=5:i=10:n<1?i=1:n<2?i=2:n<3?i=3:n<5?i=5:i=10,r=i*a,t>=-20?+r.toFixed(t<0?-t:0):r}function Oc(r,e){var t=(r.length-1)*e+1,a=Math.floor(t),n=+r[a-1],i=t-a;return i?n+i*(r[a]-n):n}function v_(r){r.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-Infinity,t=1,a=0;a=0||i&&st(i,l)<0)){var u=a.getShallow(l,e);u!=null&&(o[r[s][0]]=u)}}return o}}var dR=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],gR=ni(dR),yR=function(){function r(){}return r.prototype.getAreaStyle=function(e,t){return gR(this,e,t)},r}(),Gc=new Rs(50);function mR(r){if(typeof r=="string"){var e=Gc.get(r);return e&&e.image}else return r}function Fc(r,e,t,a,n){if(r)if(typeof r=="string"){if(e&&e.__zrImageSrc===r||!t)return e;var i=Gc.get(r),o={hostEl:t,cb:a,cbPayload:n};return i?(e=i.image,!sf(e)&&i.pending.push(o)):(e=jt.loadImage(r,M_,M_),e.__zrImageSrc=r,Gc.put(r,e.__cachedImgObj={image:e,pending:[o]})),e}else return r;else return e}function M_(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e=o;l++)s-=o;var u=er(t,e);return u>s&&(t="",u=0),s=r-u,n.ellipsis=t,n.ellipsisWidth=u,n.contentWidth=s,n.containerWidth=r,n}function L_(r,e){var t=e.containerWidth,a=e.font,n=e.contentWidth;if(!t)return"";var i=er(r,a);if(i<=t)return r;for(var o=0;;o++){if(i<=n||o>=e.maxIterations){r+=e.ellipsis;break}var s=o===0?SR(r,n,e.ascCharWidth,e.cnCharWidth):i>0?Math.floor(r.length*n/i):0;r=r.substr(0,s),i=er(r,a)}return r===""&&(r=e.placeholder),r}function SR(r,e,t,a){for(var n=0,i=0,o=r.length;ic&&u){var p=Math.floor(c/s);h=h.slice(0,p)}if(r&&i&&f!=null)for(var d=D_(f,n,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),g=0;gs&&Wc(t,r.substring(s,u),e,o),Wc(t,l[2],e,o,l[1]),s=Hc.lastIndex}sn){b>0?(m.tokens=m.tokens.slice(0,b),g(m,S,_),t.lines=t.lines.slice(0,y+1)):t.lines=t.lines.slice(0,y);break t}var L=w.width,I=L==null||L==="auto";if(typeof L=="string"&&L.charAt(L.length-1)==="%")x.percentWidth=L,f.push(x),x.contentWidth=er(x.text,M);else{if(I){var P=w.backgroundColor,R=P&&P.image;R&&(R=mR(R),sf(R)&&(x.width=Math.max(x.width,R.width*D/R.height)))}var E=p&&a!=null?a-S:null;E!=null&&E0&&p+a.accumWidth>a.width&&(f=e.split(` `),u=!0),a.accumWidth=p}else{var d=P_(e,l,a.width,a.breakAll,a.accumWidth);a.accumWidth=d.accumWidth+c,h=d.linesWidths,f=d.lines}}else f=e.split(` -`);for(var g=0;g=33&&e<=383}var AR=qr(",&?/;] ".split(""),function(r,e){return r[e]=!0,r},{});function MR(r){return CR(r)?!!AR[r]:!0}function P_(r,e,t,a,n){for(var i=[],o=[],s="",l="",u=0,f=0,h=0;ht:n+f+c>t){f?(s||l)&&(p?(s||(s=l,l="",u=0,f=u),i.push(s),o.push(f-u),l+=v,u+=c,s="",f=u):(l&&(s+=l,l="",u=0),i.push(s),o.push(f),s=v,f=c)):p?(i.push(l),o.push(u),l=v,u=c):(i.push(v),o.push(c));continue}f+=c,p?(l+=v,u+=c):(l&&(s+=l,l="",u=0),s+=v)}return!i.length&&!s&&(s=r,l="",u=0),l&&(s+=l),s&&(i.push(s),o.push(f)),i.length===1&&(f+=n),{accumWidth:f,lines:i,linesWidths:o}}var Uc="__zr_style_"+Math.round(Math.random()*10),ii={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},lf={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};ii[Uc]=!0;var R_=["z","z2","invisible"],DR=["invisible"],LR=function(r){Ft(e,r);function e(t){return r.call(this,t)||this}return e.prototype._init=function(t){for(var a=St(t),n=0;n1e-4){s[0]=r-t,s[1]=e-a,l[0]=r+t,l[1]=e+a;return}if(uf[0]=Kc(n)*t+r,uf[1]=Xc(n)*a+e,ff[0]=Kc(i)*t+r,ff[1]=Xc(i)*a+e,u(s,uf,ff),f(l,uf,ff),n=n%oi,n<0&&(n=n+oi),i=i%oi,i<0&&(i=i+oi),n>i&&!o?i+=oi:nn&&(hf[0]=Kc(c)*t+r,hf[1]=Xc(c)*a+e,u(s,hf,s),f(l,hf,l))}var Nt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},si=[],li=[],aa=[],sn=[],na=[],ia=[],qc=Math.min,jc=Math.max,ui=Math.cos,fi=Math.sin,La=Math.abs,$c=Math.PI,ln=$c*2,Qc=typeof Float32Array!="undefined",Zs=[];function Jc(r){var e=Math.round(r/$c*1e8)/1e8;return e%2*$c}function N_(r,e){var t=Jc(r[0]);t<0&&(t+=ln);var a=t-r[0],n=r[1];n+=a,!e&&n-t>=ln?n=t+ln:e&&t-n>=ln?n=t-ln:!e&&t>n?n=t+(ln-Jc(t-n)):e&&t0&&(this._ux=La(a/tf/e)||0,this._uy=La(a/tf/t)||0)},r.prototype.setDPR=function(e){this.dpr=e},r.prototype.setContext=function(e){this._ctx=e},r.prototype.getContext=function(){return this._ctx},r.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},r.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(Nt.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},r.prototype.lineTo=function(e,t){var a=La(e-this._xi),n=La(t-this._yi),i=a>this._ux||n>this._uy;if(this.addData(Nt.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var o=a*a+n*n;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(e,t,a,n,i,o){return this._drawPendingPt(),this.addData(Nt.C,e,t,a,n,i,o),this._ctx&&this._ctx.bezierCurveTo(e,t,a,n,i,o),this._xi=i,this._yi=o,this},r.prototype.quadraticCurveTo=function(e,t,a,n){return this._drawPendingPt(),this.addData(Nt.Q,e,t,a,n),this._ctx&&this._ctx.quadraticCurveTo(e,t,a,n),this._xi=a,this._yi=n,this},r.prototype.arc=function(e,t,a,n,i,o){this._drawPendingPt(),Zs[0]=n,Zs[1]=i,N_(Zs,o),n=Zs[0],i=Zs[1];var s=i-n;return this.addData(Nt.A,e,t,a,a,n,s,0,o?0:1),this._ctx&&this._ctx.arc(e,t,a,n,i,o),this._xi=ui(i)*a+e,this._yi=fi(i)*a+t,this},r.prototype.arcTo=function(e,t,a,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,a,n,i),this},r.prototype.rect=function(e,t,a,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,a,n),this.addData(Nt.R,e,t,a,n),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(Nt.Z);var e=this._ctx,t=this._x0,a=this._y0;return e&&e.closePath(),this._xi=t,this._yi=a,this},r.prototype.fill=function(e){e&&e.fill(),this.toStatic()},r.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(e){var t=e.length;!(this.data&&this.data.length===t)&&Qc&&(this.data=new Float32Array(t));for(var a=0;af.length&&(this._expandData(),f=this.data);for(var h=0;h0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t11&&(this.data=new Float32Array(e)))}},r.prototype.getBoundingRect=function(){aa[0]=aa[1]=na[0]=na[1]=Number.MAX_VALUE,sn[0]=sn[1]=ia[0]=ia[1]=-Number.MAX_VALUE;var e=this.data,t=0,a=0,n=0,i=0,o;for(o=0;oa||La(_)>n||v===t-1)&&(d=Math.sqrt(m*m+_*_),i=g,o=y);break}case Nt.C:{var S=e[v++],b=e[v++],g=e[v++],y=e[v++],x=e[v++],w=e[v++];d=qP(i,o,S,b,g,y,x,w,10),i=x,o=w;break}case Nt.Q:{var S=e[v++],b=e[v++],g=e[v++],y=e[v++];d=$P(i,o,S,b,g,y,10),i=g,o=y;break}case Nt.A:var T=e[v++],C=e[v++],M=e[v++],D=e[v++],L=e[v++],I=e[v++],P=I+L;v+=1;var R=!e[v++];p&&(s=ui(L)*M+T,l=fi(L)*D+C),d=jc(M,D)*qc(ln,Math.abs(I)),i=ui(P)*M+T,o=fi(P)*D+C;break;case Nt.R:{s=i=e[v++],l=o=e[v++];var E=e[v++],N=e[v++];d=E*2+N*2;break}case Nt.Z:{var m=s-i,_=l-o;d=Math.sqrt(m*m+_*_),i=s,o=l;break}}d>=0&&(u[h++]=d,f+=d)}return this._pathLen=f,f},r.prototype.rebuildPath=function(e,t){var a=this.data,n=this._ux,i=this._uy,o=this._len,s,l,u,f,h,v,c=t<1,p,d,g=0,y=0,m,_=0,S,b;if(c&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,d=this._pathLen,m=t*d,!m))return;t:for(var x=0;x0&&(e.lineTo(S,b),_=0),w){case Nt.M:s=u=a[x++],l=f=a[x++],e.moveTo(u,f);break;case Nt.L:{h=a[x++],v=a[x++];var C=La(h-u),M=La(v-f);if(C>n||M>i){if(c){var D=p[y++];if(g+D>m){var L=(m-g)/D;e.lineTo(u*(1-L)+h*L,f*(1-L)+v*L);break t}g+=D}e.lineTo(h,v),u=h,f=v,_=0}else{var I=C*C+M*M;I>_&&(S=h,b=v,_=I)}break}case Nt.C:{var P=a[x++],R=a[x++],E=a[x++],N=a[x++],O=a[x++],V=a[x++];if(c){var D=p[y++];if(g+D>m){var L=(m-g)/D;an(u,P,E,O,L,si),an(f,R,N,V,L,li),e.bezierCurveTo(si[1],li[1],si[2],li[2],si[3],li[3]);break t}g+=D}e.bezierCurveTo(P,R,E,N,O,V),u=O,f=V;break}case Nt.Q:{var P=a[x++],R=a[x++],E=a[x++],N=a[x++];if(c){var D=p[y++];if(g+D>m){var L=(m-g)/D;Ps(u,P,E,L,si),Ps(f,R,N,L,li),e.quadraticCurveTo(si[1],li[1],si[2],li[2]);break t}g+=D}e.quadraticCurveTo(P,R,E,N),u=E,f=N;break}case Nt.A:var F=a[x++],W=a[x++],X=a[x++],Q=a[x++],J=a[x++],dt=a[x++],Dt=a[x++],gt=!a[x++],at=X>Q?X:Q,yt=La(X-Q)>.001,vt=J+dt,j=!1;if(c){var D=p[y++];g+D>m&&(vt=J+dt*(m-g)/D,j=!0),g+=D}if(yt&&e.ellipse?e.ellipse(F,W,X,Q,Dt,J,vt,gt):e.arc(F,W,at,J,vt,gt),j)break t;T&&(s=ui(J)*X+F,l=fi(J)*Q+W),u=ui(vt)*X+F,f=fi(vt)*Q+W;break;case Nt.R:s=u=a[x],l=f=a[x+1],h=a[x++],v=a[x++];var ut=a[x++],Ut=a[x++];if(c){var D=p[y++];if(g+D>m){var wt=m-g;e.moveTo(h,v),e.lineTo(h+qc(wt,ut),v),wt-=ut,wt>0&&e.lineTo(h+ut,v+qc(wt,Ut)),wt-=Ut,wt>0&&e.lineTo(h+jc(ut-wt,0),v+Ut),wt-=ut,wt>0&&e.lineTo(h,v+jc(Ut-wt,0));break t}g+=D}e.rect(h,v,ut,Ut);break;case Nt.Z:if(c){var D=p[y++];if(g+D>m){var L=(m-g)/D;e.lineTo(u*(1-L)+s*L,f*(1-L)+l*L);break t}g+=D}e.closePath(),u=s,f=l}}},r.prototype.clone=function(){var e=new r,t=this.data;return e.data=t.slice?t.slice():Array.prototype.slice.call(t),e._len=this._len,e},r.CMD=Nt,r.initDefaultProps=function(){var e=r.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),r}(),oa=kR;function un(r,e,t,a,n,i,o){if(n===0)return!1;var s=n,l=0,u=r;if(o>e+s&&o>a+s||or+s&&i>t+s||ie+h&&f>a+h&&f>i+h&&f>s+h||fr+h&&u>t+h&&u>n+h&&u>o+h||ue+u&&l>a+u&&l>i+u||lr+u&&s>t+u&&s>n+u||st||f+un&&(n+=Xs);var v=Math.atan2(l,s);return v<0&&(v+=Xs),v>=a&&v<=n||v+Xs>=a&&v+Xs<=n}function Ia(r,e,t,a,n,i){if(i>e&&i>a||in?s:0}var hn=oa.CMD,hi=Math.PI*2,BR=1e-4;function VR(r,e){return Math.abs(r-e)e&&u>a&&u>i&&u>s||u1&&zR(),c=le(e,a,i,s,gr[0]),v>1&&(p=le(e,a,i,s,gr[1]))),v===2?ge&&s>a&&s>i||s=0&&u<=1){for(var f=0,h=pe(e,a,i,u),v=0;vt||s<-t)return 0;var l=Math.sqrt(t*t-s*s);Ee[0]=-l,Ee[1]=l;var u=Math.abs(a-n);if(u<1e-4)return 0;if(u>=hi-1e-4){a=0,n=hi;var f=i?1:-1;return o>=Ee[0]+r&&o<=Ee[1]+r?f:0}if(a>n){var h=a;a=n,n=h}a<0&&(a+=hi,n+=hi);for(var v=0,c=0;c<2;c++){var p=Ee[c];if(p+r>o){var d=Math.atan2(s,p),f=i?1:-1;d<0&&(d=hi+d),(d>=a&&d<=n||d+hi>=a&&d+hi<=n)&&(d>Math.PI/2&&d1&&(t||(s+=Ia(l,u,f,h,a,n))),g&&(l=i[p],u=i[p+1],f=l,h=u),d){case hn.M:f=i[p++],h=i[p++],l=f,u=h;break;case hn.L:if(t){if(un(l,u,i[p],i[p+1],e,a,n))return!0}else s+=Ia(l,u,i[p],i[p+1],a,n)||0;l=i[p++],u=i[p++];break;case hn.C:if(t){if(OR(l,u,i[p++],i[p++],i[p++],i[p++],i[p],i[p+1],e,a,n))return!0}else s+=GR(l,u,i[p++],i[p++],i[p++],i[p++],i[p],i[p+1],a,n)||0;l=i[p++],u=i[p++];break;case hn.Q:if(t){if(B_(l,u,i[p++],i[p++],i[p],i[p+1],e,a,n))return!0}else s+=FR(l,u,i[p++],i[p++],i[p],i[p+1],a,n)||0;l=i[p++],u=i[p++];break;case hn.A:var y=i[p++],m=i[p++],_=i[p++],S=i[p++],b=i[p++],x=i[p++];p+=1;var w=!!(1-i[p++]);v=Math.cos(b)*_+y,c=Math.sin(b)*S+m,g?(f=v,h=c):s+=Ia(l,u,v,c,a,n);var T=(a-y)*S/_+y;if(t){if(NR(y,m,S,b,b+x,w,e,T,n))return!0}else s+=HR(y,m,S,b,b+x,w,T,n);l=Math.cos(b+x)*_+y,u=Math.sin(b+x)*S+m;break;case hn.R:f=l=i[p++],h=u=i[p++];var C=i[p++],M=i[p++];if(v=f+C,c=h+M,t){if(un(f,h,v,h,e,a,n)||un(v,h,v,c,e,a,n)||un(v,c,f,c,e,a,n)||un(f,c,f,h,e,a,n))return!0}else s+=Ia(v,h,v,c,a,n),s+=Ia(f,c,f,h,a,n);break;case hn.Z:if(t){if(un(l,u,f,h,e,a,n))return!0}else s+=Ia(l,u,f,h,a,n);l=f,u=h;break}}return!t&&!VR(u,h)&&(s+=Ia(l,u,f,h,a,n)||0),s!==0}function WR(r,e,t){return z_(r,0,!1,e,t)}function UR(r,e,t,a){return z_(r,e,!0,t,a)}var cf=K({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},ii),YR={style:K({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},lf.style)},tp=Jr.concat(["invisible","culling","z","z2","zlevel","parent"]),ZR=function(r){Ft(e,r);function e(t){return r.call(this,t)||this}return e.prototype.update=function(){var t=this;r.prototype.update.call(this);var a=this.style;if(a.decal){var n=this._decalEl=this._decalEl||new e;n.buildPath===e.prototype.buildPath&&(n.buildPath=function(l){t.buildPath(l,t.shape)}),n.silent=!0;var i=n.style;for(var o in a)i[o]!==a[o]&&(i[o]=a[o]);i.fill=a.fill?a.decal:null,i.decal=null,i.shadowColor=null,a.strokeFirst&&(i.stroke=null);for(var s=0;s.5?Cc:a>.2?L2:Ac}else if(t)return Ac}return Cc},e.prototype.getInsideTextStroke=function(t){var a=this.style.fill;if(U(a)){var n=this.__zr,i=!!(n&&n.isDarkMode()),o=Yu(t,0)0))},e.prototype.hasFill=function(){var t=this.style,a=t.fill;return a!=null&&a!=="none"},e.prototype.getBoundingRect=function(){var t=this._rect,a=this.style,n=!t;if(n){var i=!1;this.path||(i=!0,this.createPathProxy());var o=this.path;(i||this.__dirty&vo)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),t=o.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||n){s.copy(t);var l=a.strokeNoScale?this.getLineScale():1,u=a.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;u=Math.max(u,f==null?4:f)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return t},e.prototype.contain=function(t,a){var n=this.transformCoordToLocal(t,a),i=this.getBoundingRect(),o=this.style;if(t=n[0],a=n[1],i.contain(t,a)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),UR(s,l/u,t,a)))return!0}if(this.hasFill())return WR(s,t,a)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=vo,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){t==="style"?this.dirtyStyle():t==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(t,a){t==="shape"?this.setShape(a):r.prototype.attrKV.call(this,t,a)},e.prototype.setShape=function(t,a){var n=this.shape;return n||(n=this.shape={}),typeof t=="string"?n[t]=a:B(n,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&vo)},e.prototype.createStyle=function(t){return Lu(cf,t)},e.prototype._innerSaveToNormal=function(t){r.prototype._innerSaveToNormal.call(this,t);var a=this._normalState;t.shape&&!a.shape&&(a.shape=B({},this.shape))},e.prototype._applyStateObj=function(t,a,n,i,o,s){r.prototype._applyStateObj.call(this,t,a,n,i,o,s);var l=!(a&&i),u;if(a&&a.shape?o?i?u=a.shape:(u=B({},n.shape),B(u,a.shape)):(u=B({},i?this.shape:n.shape),B(u,a.shape)):l&&(u=n.shape),u)if(o){this.shape=B({},this.shape);for(var f={},h=St(u),v=0;v0},e.prototype.hasFill=function(){var t=this.style,a=t.fill;return a!=null&&a!=="none"},e.prototype.createStyle=function(t){return Lu(XR,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var a=t.text;a!=null?a+="":a="";var n=Gs(a,t.font,t.textAlign,t.textBaseline);if(n.x+=t.x||0,n.y+=t.y||0,this.hasStroke()){var i=t.lineWidth;n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i}this._rect=n}return this._rect},e.initDefaultProps=function(){var t=e.prototype;t.dirtyRectTolerance=10}(),e}(dr);G_.prototype.type="tspan";var Ks=G_,KR=K({x:0,y:0},ii),qR={style:K({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},lf.style)};function jR(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var F_=function(r){Ft(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.createStyle=function(t){return Lu(KR,t)},e.prototype._getSize=function(t){var a=this.style,n=a[t];if(n!=null)return n;var i=jR(a.image)?a.image:this.__image;if(!i)return 0;var o=t==="width"?"height":"width",s=a[o];return s==null?i[t]:i[t]/i[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return qR},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new ht(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(dr);F_.prototype.type="image";var _e=F_;function $R(r,e){var t=e.x,a=e.y,n=e.width,i=e.height,o=e.r,s,l,u,f;n<0&&(t=t+n,n=-n),i<0&&(a=a+i,i=-i),typeof o=="number"?s=l=u=f=o:o instanceof Array?o.length===1?s=l=u=f=o[0]:o.length===2?(s=u=o[0],l=f=o[1]):o.length===3?(s=o[0],l=f=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],f=o[3]):s=l=u=f=0;var h;s+l>n&&(h=s+l,s*=n/h,l*=n/h),u+f>n&&(h=u+f,u*=n/h,f*=n/h),l+u>i&&(h=l+u,l*=i/h,u*=i/h),s+f>i&&(h=s+f,s*=i/h,f*=i/h),r.moveTo(t+s,a),r.lineTo(t+n-l,a),l!==0&&r.arc(t+n-l,a+l,l,-Math.PI/2,0),r.lineTo(t+n,a+i-u),u!==0&&r.arc(t+n-u,a+i-u,u,0,Math.PI/2),r.lineTo(t+f,a+i),f!==0&&r.arc(t+f,a+i-f,f,Math.PI/2,Math.PI),r.lineTo(t,a+s),s!==0&&r.arc(t+s,a+s,s,Math.PI,Math.PI*1.5)}var xo=Math.round;function H_(r,e,t){if(!!e){var a=e.x1,n=e.x2,i=e.y1,o=e.y2;r.x1=a,r.x2=n,r.y1=i,r.y2=o;var s=t&&t.lineWidth;return s&&(xo(a*2)===xo(n*2)&&(r.x1=r.x2=vi(a,s,!0)),xo(i*2)===xo(o*2)&&(r.y1=r.y2=vi(i,s,!0))),r}}function W_(r,e,t){if(!!e){var a=e.x,n=e.y,i=e.width,o=e.height;r.x=a,r.y=n,r.width=i,r.height=o;var s=t&&t.lineWidth;return s&&(r.x=vi(a,s,!0),r.y=vi(n,s,!0),r.width=Math.max(vi(a+i,s,!1)-r.x,i===0?0:1),r.height=Math.max(vi(n+o,s,!1)-r.y,o===0?0:1)),r}}function vi(r,e,t){if(!e)return r;var a=xo(r*2);return(a+xo(e))%2==0?a/2:(a+(t?1:-1))/2}var QR=function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r}(),JR={},U_=function(r){Ft(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new QR},e.prototype.buildPath=function(t,a){var n,i,o,s;if(this.subPixelOptimize){var l=W_(JR,a,this.style);n=l.x,i=l.y,o=l.width,s=l.height,l.r=a.r,a=l}else n=a.x,i=a.y,o=a.width,s=a.height;a.r?$R(t,a):t.rect(n,i,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(pt);U_.prototype.type="rect";var bt=U_,Y_={fill:"#000"},Z_=2,tE={style:K({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},lf.style)},X_=function(r){Ft(e,r);function e(t){var a=r.call(this)||this;return a.type="text",a._children=[],a._defaultStyle=Y_,a.attr(t),a}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t0,L=t.width!=null&&(t.overflow==="truncate"||t.overflow==="break"||t.overflow==="breakAll"),I=o.calculatedLineHeight,P=0;P=0&&(P=x[I],P.align==="right");)this._placeToken(P,t,T,y,L,"right",_),C-=P.width,L-=P.width,I--;for(D+=(i-(D-g)-(m-L)-C)/2;M<=I;)P=x[M],this._placeToken(P,t,T,y,D+P.width/2,"center",_),D+=P.width,M++;y+=T}},e.prototype._placeToken=function(t,a,n,i,o,s,l){var u=a.rich[t.styleName]||{};u.text=t.text;var f=t.verticalAlign,h=i+n/2;f==="top"?h=i+t.height/2:f==="bottom"&&(h=i+n-t.height/2);var v=!t.isLineHolder&&ep(u);v&&this._renderBackground(u,a,s==="right"?o-t.width:s==="center"?o-t.width/2:o,h-t.height/2,t.width,t.height);var c=!!u.backgroundColor,p=t.textPadding;p&&(o=e1(o,s,p),h-=t.height/2-p[0]-t.innerHeight/2);var d=this._getOrCreateChild(Ks),g=d.createStyle();d.useStyle(g);var y=this._defaultStyle,m=!1,_=0,S=t1("fill"in u?u.fill:"fill"in a?a.fill:(m=!0,y.fill)),b=J_("stroke"in u?u.stroke:"stroke"in a?a.stroke:!c&&!l&&(!y.autoStroke||m)?(_=Z_,y.stroke):null),x=u.textShadowBlur>0||a.textShadowBlur>0;g.text=t.text,g.x=o,g.y=h,x&&(g.shadowBlur=u.textShadowBlur||a.textShadowBlur||0,g.shadowColor=u.textShadowColor||a.textShadowColor||"transparent",g.shadowOffsetX=u.textShadowOffsetX||a.textShadowOffsetX||0,g.shadowOffsetY=u.textShadowOffsetY||a.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=t.font||Ie,g.opacity=ba(u.opacity,a.opacity,1),j_(g,u),b&&(g.lineWidth=ba(u.lineWidth,a.lineWidth,_),g.lineDash=ft(u.lineDash,a.lineDash),g.lineDashOffset=a.lineDashOffset||0,g.stroke=b),S&&(g.fill=S);var w=t.contentWidth,T=t.contentHeight;d.setBoundingRect(new ht(Fs(g.x,w,g.textAlign),mo(g.y,T,g.textBaseline),w,T))},e.prototype._renderBackground=function(t,a,n,i,o,s){var l=t.backgroundColor,u=t.borderWidth,f=t.borderColor,h=l&&l.image,v=l&&!h,c=t.borderRadius,p=this,d,g;if(v||t.lineHeight||u&&f){d=this._getOrCreateChild(bt),d.useStyle(d.createStyle()),d.style.fill=null;var y=d.shape;y.x=n,y.y=i,y.width=o,y.height=s,y.r=c,d.dirtyShape()}if(v){var m=d.style;m.fill=l||null,m.fillOpacity=ft(t.fillOpacity,1)}else if(h){g=this._getOrCreateChild(_e),g.onload=function(){p.dirtyStyle()};var _=g.style;_.image=l.image,_.x=n,_.y=i,_.width=o,_.height=s}if(u&&f){var m=d.style;m.lineWidth=u,m.stroke=f,m.strokeOpacity=ft(t.strokeOpacity,1),m.lineDash=t.borderDash,m.lineDashOffset=t.borderDashOffset||0,d.strokeContainThreshold=0,d.hasFill()&&d.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2)}var S=(d||g).style;S.shadowBlur=t.shadowBlur||0,S.shadowColor=t.shadowColor||"transparent",S.shadowOffsetX=t.shadowOffsetX||0,S.shadowOffsetY=t.shadowOffsetY||0,S.opacity=ba(t.opacity,a.opacity,1)},e.makeFont=function(t){var a="";return $_(t)&&(a=[t.fontStyle,t.fontWeight,q_(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),a&&Rr(a)||t.textFont||t.font},e}(dr),eE={left:!0,right:1,center:1},rE={top:1,bottom:1,middle:1},K_=["fontStyle","fontWeight","fontSize","fontFamily"];function q_(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?Ka+"px":r+"px"}function j_(r,e){for(var t=0;t=0,i=!1;if(r instanceof pt){var o=i1(r),s=n&&o.selectFill||o.normalFill,l=n&&o.selectStroke||o.normalStroke;if(wo(s)||wo(l)){a=a||{};var u=a.style||{};u.fill==="inherit"?(i=!0,a=B({},a),u=B({},u),u.fill=s):!wo(u.fill)&&wo(s)?(i=!0,a=B({},a),u=B({},u),u.fill=s1(s)):!wo(u.stroke)&&wo(l)&&(i||(a=B({},a),u=B({},u)),u.stroke=s1(l)),a.style=u}}if(a&&a.z2==null){i||(a=B({},a));var f=r.z2EmphasisLift;a.z2=r.z2+(f!=null?f:bo)}return a}function uE(r,e,t){if(t&&t.z2==null){t=B({},t);var a=r.z2SelectLift;t.z2=r.z2+(a!=null?a:nE)}return t}function fE(r,e,t){var a=st(r.currentStates,e)>=0,n=r.style.opacity,i=a?null:sE(r,["opacity"],e,{opacity:1});t=t||{};var o=t.style||{};return o.opacity==null&&(t=B({},t),o=B({opacity:a?n:i.opacity*.1},o),t.style=o),t}function op(r,e){var t=this.states[r];if(this.style){if(r==="emphasis")return lE(this,r,e,t);if(r==="blur")return fE(this,r,t);if(r==="select")return uE(this,r,t)}return t}function pi(r){r.stateProxy=op;var e=r.getTextContent(),t=r.getTextGuideLine();e&&(e.stateProxy=op),t&&(t.stateProxy=op)}function v1(r,e){!y1(r,e)&&!r.__highByOuter&&Pa(r,l1)}function c1(r,e){!y1(r,e)&&!r.__highByOuter&&Pa(r,u1)}function Ra(r,e){r.__highByOuter|=1<<(e||0),Pa(r,l1)}function Ea(r,e){!(r.__highByOuter&=~(1<<(e||0)))&&Pa(r,u1)}function p1(r){Pa(r,ip)}function sp(r){Pa(r,f1)}function d1(r){Pa(r,iE)}function g1(r){Pa(r,oE)}function y1(r,e){return r.__highDownSilentOnTouch&&e.zrByTouch}function m1(r){var e=r.getModel(),t=[],a=[];e.eachComponent(function(n,i){var o=ap(i),s=n==="series",l=s?r.getViewOfSeriesModel(i):r.getViewOfComponentModel(i);!s&&a.push(l),o.isBlured&&(l.group.traverse(function(u){f1(u)}),s&&t.push(i)),o.isBlured=!1}),A(a,function(n){n&&n.toggleBlurSeries&&n.toggleBlurSeries(t,!1,e)})}function lp(r,e,t,a){var n=a.getModel();t=t||"coordinateSystem";function i(u,f){for(var h=0;h0){var l={dataIndex:s,seriesIndex:t.seriesIndex};o!=null&&(l.dataType=o),e.push(l)}})}),e}function di(r,e,t){gi(r,!0),Pa(r,pi),hp(r,e,t)}function gE(r){gi(r,!1)}function Yt(r,e,t,a){a?gE(r):di(r,e,t)}function hp(r,e,t){var a=nt(r);e!=null?(a.focus=e,a.blurScope=t):a.focus&&(a.focus=null)}var S1=["emphasis","blur","select"],yE={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Se(r,e,t,a){t=t||"itemStyle";for(var n=0;n0){var h=f.duration,v=f.delay,c=f.easing,p={duration:h,delay:v||0,easing:c,done:i,force:!!i||!!o,setToFinal:!u,scope:r,during:o};s?e.animateFrom(t,p):e.animateTo(t,p)}else e.stopAnimation(),!s&&e.attr(t),o&&o(1),i&&i()}function At(r,e,t,a,n,i){cp("update",r,e,t,a,n,i)}function Ht(r,e,t,a,n,i){cp("enter",r,e,t,a,n,i)}function Co(r){if(!r.__zr)return!0;for(var e=0;e=0&&s.push(l)}),s}}function cn(r,e){return ot(ot({},r,!0),e,!0)}var kE={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},OE={time:{month:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"],monthAbbr:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],dayOfWeek:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"],dayOfWeekAbbr:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"]},legend:{selector:{all:"\u5168\u9009",inverse:"\u53CD\u9009"}},toolbox:{brush:{title:{rect:"\u77E9\u5F62\u9009\u62E9",polygon:"\u5708\u9009",lineX:"\u6A2A\u5411\u9009\u62E9",lineY:"\u7EB5\u5411\u9009\u62E9",keep:"\u4FDD\u6301\u9009\u62E9",clear:"\u6E05\u9664\u9009\u62E9"}},dataView:{title:"\u6570\u636E\u89C6\u56FE",lang:["\u6570\u636E\u89C6\u56FE","\u5173\u95ED","\u5237\u65B0"]},dataZoom:{title:{zoom:"\u533A\u57DF\u7F29\u653E",back:"\u533A\u57DF\u7F29\u653E\u8FD8\u539F"}},magicType:{title:{line:"\u5207\u6362\u4E3A\u6298\u7EBF\u56FE",bar:"\u5207\u6362\u4E3A\u67F1\u72B6\u56FE",stack:"\u5207\u6362\u4E3A\u5806\u53E0",tiled:"\u5207\u6362\u4E3A\u5E73\u94FA"}},restore:{title:"\u8FD8\u539F"},saveAsImage:{title:"\u4FDD\u5B58\u4E3A\u56FE\u7247",lang:["\u53F3\u952E\u53E6\u5B58\u4E3A\u56FE\u7247"]}},series:{typeNames:{pie:"\u997C\u56FE",bar:"\u67F1\u72B6\u56FE",line:"\u6298\u7EBF\u56FE",scatter:"\u6563\u70B9\u56FE",effectScatter:"\u6D9F\u6F2A\u6563\u70B9\u56FE",radar:"\u96F7\u8FBE\u56FE",tree:"\u6811\u56FE",treemap:"\u77E9\u5F62\u6811\u56FE",boxplot:"\u7BB1\u578B\u56FE",candlestick:"K\u7EBF\u56FE",k:"K\u7EBF\u56FE",heatmap:"\u70ED\u529B\u56FE",map:"\u5730\u56FE",parallel:"\u5E73\u884C\u5750\u6807\u56FE",lines:"\u7EBF\u56FE",graph:"\u5173\u7CFB\u56FE",sankey:"\u6851\u57FA\u56FE",funnel:"\u6F0F\u6597\u56FE",gauge:"\u4EEA\u8868\u76D8\u56FE",pictorialBar:"\u8C61\u5F62\u67F1\u56FE",themeRiver:"\u4E3B\u9898\u6CB3\u6D41\u56FE",sunburst:"\u65ED\u65E5\u56FE"}},aria:{general:{withTitle:"\u8FD9\u662F\u4E00\u4E2A\u5173\u4E8E\u201C{title}\u201D\u7684\u56FE\u8868\u3002",withoutTitle:"\u8FD9\u662F\u4E00\u4E2A\u56FE\u8868\uFF0C"},series:{single:{prefix:"",withName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\uFF0C\u8868\u793A{seriesName}\u3002",withoutName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\u3002"},multiple:{prefix:"\u5B83\u7531{seriesCount}\u4E2A\u56FE\u8868\u7CFB\u5217\u7EC4\u6210\u3002",withName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A\u8868\u793A{seriesName}\u7684{seriesType}\uFF0C",withoutName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A{seriesType}\uFF0C",separator:{middle:"\uFF1B",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636E\u662F\u2014\u2014",partialData:"\u5176\u4E2D\uFF0C\u524D{displayCnt}\u9879\u662F\u2014\u2014",withName:"{name}\u7684\u6570\u636E\u662F{value}",withoutName:"{value}",separator:{middle:"\uFF0C",end:""}}}},xf="ZH",yp="EN",el=yp,bf={},mp={},k1=_t.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return r.indexOf(xf)>-1?xf:el}():el;function O1(r,e){r=r.toUpperCase(),mp[r]=new Vt(e),bf[r]=e}function NE(r){if(U(r)){var e=bf[r.toUpperCase()]||{};return r===xf||r===yp?tt(e):ot(tt(e),tt(bf[el]),!1)}else return ot(tt(r),tt(bf[el]),!1)}function _p(r){return mp[r]}function BE(){return mp[el]}O1(yp,kE),O1(xf,OE);var Sp=1e3,xp=Sp*60,rl=xp*60,yr=rl*24,N1=yr*365,al={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},wf="{yyyy}-{MM}-{dd}",B1={year:"{yyyy}",month:"{yyyy}-{MM}",day:wf,hour:wf+" "+al.hour,minute:wf+" "+al.minute,second:wf+" "+al.second,millisecond:al.none},bp=["year","month","day","hour","minute","second","millisecond"],V1=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function mi(r,e){return r+="","0000".substr(0,e-r.length)+r}function Do(r){switch(r){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return r}}function VE(r){return r===Do(r)}function zE(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Tf(r,e,t,a){var n=ea(r),i=n[wp(t)](),o=n[Lo(t)]()+1,s=Math.floor((o-1)/3)+1,l=n[Cf(t)](),u=n["get"+(t?"UTC":"")+"Day"](),f=n[nl(t)](),h=(f-1)%12+1,v=n[Af(t)](),c=n[Mf(t)](),p=n[Df(t)](),d=a instanceof Vt?a:_p(a||k1)||BE(),g=d.getModel("time"),y=g.get("month"),m=g.get("monthAbbr"),_=g.get("dayOfWeek"),S=g.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,i%100+"").replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[o-1]).replace(/{MMM}/g,m[o-1]).replace(/{MM}/g,mi(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,mi(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,mi(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,mi(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,mi(v,2)).replace(/{m}/g,v+"").replace(/{ss}/g,mi(c,2)).replace(/{s}/g,c+"").replace(/{SSS}/g,mi(p,3)).replace(/{S}/g,p+"")}function GE(r,e,t,a,n){var i=null;if(U(t))i=t;else if($(t))i=t(r.value,e,{level:r.level});else{var o=B({},al);if(r.level>0)for(var s=0;s=0;--s)if(l[u]){i=l[u];break}i=i||o.none}if(z(i)){var h=r.level==null?0:r.level>=0?r.level:i.length+r.level;h=Math.min(h,i.length-1),i=i[h]}}return Tf(new Date(r.value),i,n,a)}function z1(r,e){var t=ea(r),a=t[Lo(e)]()+1,n=t[Cf(e)](),i=t[nl(e)](),o=t[Af(e)](),s=t[Mf(e)](),l=t[Df(e)](),u=l===0,f=u&&s===0,h=f&&o===0,v=h&&i===0,c=v&&n===1,p=c&&a===1;return p?"year":c?"month":v?"day":h?"hour":f?"minute":u?"second":"millisecond"}function G1(r,e,t){var a=Tt(r)?ea(r):r;switch(e=e||z1(r,t),e){case"year":return a[wp(t)]();case"half-year":return a[Lo(t)]()>=6?1:0;case"quarter":return Math.floor((a[Lo(t)]()+1)/4);case"month":return a[Lo(t)]();case"day":return a[Cf(t)]();case"half-day":return a[nl(t)]()/24;case"hour":return a[nl(t)]();case"minute":return a[Af(t)]();case"second":return a[Mf(t)]();case"millisecond":return a[Df(t)]()}}function wp(r){return r?"getUTCFullYear":"getFullYear"}function Lo(r){return r?"getUTCMonth":"getMonth"}function Cf(r){return r?"getUTCDate":"getDate"}function nl(r){return r?"getUTCHours":"getHours"}function Af(r){return r?"getUTCMinutes":"getMinutes"}function Mf(r){return r?"getUTCSeconds":"getSeconds"}function Df(r){return r?"getUTCMilliseconds":"getMilliseconds"}function FE(r){return r?"setUTCFullYear":"setFullYear"}function F1(r){return r?"setUTCMonth":"setMonth"}function H1(r){return r?"setUTCDate":"setDate"}function W1(r){return r?"setUTCHours":"setHours"}function U1(r){return r?"setUTCMinutes":"setMinutes"}function Y1(r){return r?"setUTCSeconds":"setSeconds"}function Z1(r){return r?"setUTCMilliseconds":"setMilliseconds"}function X1(r){if(!c_(r))return U(r)?r:"-";var e=(r+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function K1(r,e){return r=(r||"").toLowerCase().replace(/-(.)/g,function(t,a){return a.toUpperCase()}),e&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var Io=Bv;function Tp(r,e,t){var a="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function n(f){return f&&Rr(f)?f:"-"}function i(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=e==="time",s=r instanceof Date;if(o||s){var l=o?ea(r):r;if(isNaN(+l)){if(s)return"-"}else return Tf(l,a,t)}if(e==="ordinal")return Ov(r)?n(r):Tt(r)&&i(r)?r+"":"-";var u=Da(r);return i(u)?X1(u):Ov(r)?n(r):typeof r=="boolean"?r+"":"-"}var q1=["a","b","c","d","e","f","g"],Cp=function(r,e){return"{"+r+(e==null?"":e)+"}"};function j1(r,e,t){z(e)||(e=[e]);var a=e.length;if(!a)return"";for(var n=e[0].$vars||[],i=0;i':'';var o=t.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:n==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:a}:{width:10,height:10,borderRadius:5,backgroundColor:a}}}function cq(r,e,t){(r==="week"||r==="month"||r==="quarter"||r==="half-year"||r==="year")&&(r=`MM-dd -yyyy`);var a=parseDate(e),n=t?"getUTC":"get",i=a[n+"FullYear"](),o=a[n+"Month"]()+1,s=a[n+"Date"](),l=a[n+"Hours"](),u=a[n+"Minutes"](),f=a[n+"Seconds"](),h=a[n+"Milliseconds"]();return r=r.replace("MM",pad(o,2)).replace("M",o).replace("yyyy",i).replace("yy",pad(i%100+"",2)).replace("dd",pad(s,2)).replace("d",s).replace("hh",pad(l,2)).replace("h",l).replace("mm",pad(u,2)).replace("m",u).replace("ss",pad(f,2)).replace("s",f).replace("SSS",pad(h,3)),r}function pq(r){return r&&r.charAt(0).toUpperCase()+r.substr(1)}function _i(r,e){return e=e||"transparent",U(r)?r:et(r)&&r.colorStops&&(r.colorStops[0]||{}).color||e}function Lf(r,e){if(e==="_blank"||e==="blank"){var t=window.open();t.opener=null,t.location.href=r}else window.open(r,e)}var If=A,$1=["left","right","top","bottom","width","height"],Si=[["width","left","right"],["height","top","bottom"]];function Ap(r,e,t,a,n){var i=0,o=0;a==null&&(a=Infinity),n==null&&(n=Infinity);var s=0;e.eachChild(function(l,u){var f=l.getBoundingRect(),h=e.childAt(u+1),v=h&&h.getBoundingRect(),c,p;if(r==="horizontal"){var d=f.width+(v?-v.x+f.x:0);c=i+d,c>a||l.newline?(i=0,c=d,o+=s+t,s=f.height):s=Math.max(s,f.height)}else{var g=f.height+(v?-v.y+f.y:0);p=o+g,p>n||l.newline?(i+=s+t,o=0,p=g,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),r==="horizontal"?i=c+t:o=p+t)})}var xi=Ap,dq=it(Ap,"vertical"),gq=it(Ap,"horizontal");function UE(r,e,t){var a=e.width,n=e.height,i=H(r.left,a),o=H(r.top,n),s=H(r.right,a),l=H(r.bottom,n);return(isNaN(i)||isNaN(parseFloat(r.left)))&&(i=0),(isNaN(s)||isNaN(parseFloat(r.right)))&&(s=a),(isNaN(o)||isNaN(parseFloat(r.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(r.bottom)))&&(l=n),t=Io(t||0),{width:Math.max(s-i-t[1]-t[3],0),height:Math.max(l-o-t[0]-t[2],0)}}function oe(r,e,t){t=Io(t||0);var a=e.width,n=e.height,i=H(r.left,a),o=H(r.top,n),s=H(r.right,a),l=H(r.bottom,n),u=H(r.width,a),f=H(r.height,n),h=t[2]+t[0],v=t[1]+t[3],c=r.aspect;switch(isNaN(u)&&(u=a-s-v-i),isNaN(f)&&(f=n-l-h-o),c!=null&&(isNaN(u)&&isNaN(f)&&(c>a/n?u=a*.8:f=n*.8),isNaN(u)&&(u=c*f),isNaN(f)&&(f=u/c)),isNaN(i)&&(i=a-s-u-v),isNaN(o)&&(o=n-l-f-h),r.left||r.right){case"center":i=a/2-u/2-t[3];break;case"right":i=a-u-v;break}switch(r.top||r.bottom){case"middle":case"center":o=n/2-f/2-t[0];break;case"bottom":o=n-f-h;break}i=i||0,o=o||0,isNaN(u)&&(u=a-v-i-(s||0)),isNaN(f)&&(f=n-h-o-(l||0));var p=new ht(i+t[3],o+t[0],u,f);return p.margin=t,p}function Pf(r,e,t,a,n,i){var o=!n||!n.hv||n.hv[0],s=!n||!n.hv||n.hv[1],l=n&&n.boundingMode||"all";if(i=i||r,i.x=r.x,i.y=r.y,!o&&!s)return!1;var u;if(l==="raw")u=r.type==="group"?new ht(0,0,+e.width||0,+e.height||0):r.getBoundingRect();else if(u=r.getBoundingRect(),r.needLocalTransform()){var f=r.getLocalTransform();u=u.clone(),u.applyTransform(f)}var h=oe(K({width:u.width,height:u.height},e),t,a),v=o?h.x-u.x:0,c=s?h.y-u.y:0;return l==="raw"?(i.x=v,i.y=c):(i.x+=v,i.y+=c),i===r&&r.markRedraw(),!0}function YE(r,e){return r[Si[e][0]]!=null||r[Si[e][1]]!=null&&r[Si[e][2]]!=null}function il(r){var e=r.layoutMode||r.constructor.layoutMode;return et(e)?e:e?{type:e}:null}function pn(r,e,t){var a=t&&t.ignoreSize;!z(a)&&(a=[a,a]);var n=o(Si[0],0),i=o(Si[1],1);u(Si[0],r,n),u(Si[1],r,i);function o(f,h){var v={},c=0,p={},d=0,g=2;if(If(f,function(_){p[_]=r[_]}),If(f,function(_){s(e,_)&&(v[_]=p[_]=e[_]),l(v,_)&&c++,l(p,_)&&d++}),a[h])return l(e,f[1])?p[f[2]]=null:l(e,f[2])&&(p[f[1]]=null),p;if(d===g||!c)return p;if(c>=g)return v;for(var y=0;y=0;l--)s=ot(s,n[l],!0);a.defaultOption=s}return a.defaultOption},e.prototype.getReferringComponents=function(t,a){var n=t+"Index",i=t+"Id";return Ys(this.ecModel,t,{index:this.get(n,!0),id:this.get(i,!0)},a)},e.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),e}(Vt);A_(Ro,Vt),of(Ro),RE(Ro),EE(Ro,XE);function XE(r){var e=[];return A(Ro.getClassesByMainType(r),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=G(e,function(t){return ra(t).main}),r!=="dataset"&&st(e,"dataset")<=0&&e.unshift("dataset"),e}var Mt=Ro,J1="";typeof navigator!="undefined"&&(J1=navigator.platform||"");var Eo="rgba(0, 0, 0, 0.2)",KE={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Eo,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Eo,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Eo,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Eo,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Eo,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Eo,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:J1.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},tS=q(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),mr="original",Ce="arrayRows",_r="objectRows",sa="keyedColumns",ka="typedArray",eS="unknown",la="column",ko="row",be={Must:1,Might:2,Not:3},rS=xt();function qE(r){rS(r).datasetMap=q()}function aS(r,e,t){var a={},n=Dp(e);if(!n||!r)return a;var i=[],o=[],s=e.ecModel,l=rS(s).datasetMap,u=n.uid+"_"+t.seriesLayoutBy,f,h;r=r.slice(),A(r,function(d,g){var y=et(d)?d:r[g]={name:d};y.type==="ordinal"&&f==null&&(f=g,h=p(y)),a[y.name]=[]});var v=l.get(u)||l.set(u,{categoryWayDim:h,valueWayDim:0});A(r,function(d,g){var y=d.name,m=p(d);if(f==null){var _=v.valueWayDim;c(a[y],_,m),c(o,_,m),v.valueWayDim+=m}else if(f===g)c(a[y],0,m),c(i,0,m);else{var _=v.categoryWayDim;c(a[y],_,m),c(o,_,m),v.categoryWayDim+=m}});function c(d,g,y){for(var m=0;me)return r[a];return r[t-1]}function sS(r,e,t,a,n,i,o){i=i||r;var s=e(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(n))return u[n];var f=o==null||!a?t:tk(a,o);if(f=f||t,!(!f||!f.length)){var h=f[l];return n&&(u[n]=h),s.paletteIdx=(l+1)%f.length,h}}function ek(r,e){e(r).paletteIdx=0,e(r).paletteNameMap={}}var Rf,ol,lS,uS="\0_ec_inner",rk=1,ak={grid:"GridComponent",polar:"PolarComponent",geo:"GeoComponent",singleAxis:"SingleAxisComponent",parallel:"ParallelComponent",calendar:"CalendarComponent",graphic:"GraphicComponent",toolbox:"ToolboxComponent",tooltip:"TooltipComponent",axisPointer:"AxisPointerComponent",brush:"BrushComponent",title:"TitleComponent",timeline:"TimelineComponent",markPoint:"MarkPointComponent",markLine:"MarkLineComponent",markArea:"MarkAreaComponent",legend:"LegendComponent",dataZoom:"DataZoomComponent",visualMap:"VisualMapComponent",xAxis:"GridComponent",yAxis:"GridComponent",angleAxis:"PolarComponent",radiusAxis:"PolarComponent"},yq={line:"LineChart",bar:"BarChart",pie:"PieChart",scatter:"ScatterChart",radar:"RadarChart",map:"MapChart",tree:"TreeChart",treemap:"TreemapChart",graph:"GraphChart",gauge:"GaugeChart",funnel:"FunnelChart",parallel:"ParallelChart",sankey:"SankeyChart",boxplot:"BoxplotChart",candlestick:"CandlestickChart",effectScatter:"EffectScatterChart",lines:"LinesChart",heatmap:"HeatmapChart",pictorialBar:"PictorialBarChart",themeRiver:"ThemeRiverChart",sunburst:"SunburstChart",custom:"CustomChart"},fS={};function mq(r){each(r,function(e,t){if(!ComponentModel.hasClass(t)){var a=ak[t];a&&!fS[a]&&(error("Component "+t+` is used but not imported. +`);for(var g=0;g=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var AR=qr(",&?/;] ".split(""),function(r,e){return r[e]=!0,r},{});function MR(r){return CR(r)?!!AR[r]:!0}function P_(r,e,t,a,n){for(var i=[],o=[],s="",l="",u=0,f=0,h=0;ht:n+f+c>t){f?(s||l)&&(p?(s||(s=l,l="",u=0,f=u),i.push(s),o.push(f-u),l+=v,u+=c,s="",f=u):(l&&(s+=l,l="",u=0),i.push(s),o.push(f),s=v,f=c)):p?(i.push(l),o.push(u),l=v,u=c):(i.push(v),o.push(c));continue}f+=c,p?(l+=v,u+=c):(l&&(s+=l,l="",u=0),s+=v)}return!i.length&&!s&&(s=r,l="",u=0),l&&(s+=l),s&&(i.push(s),o.push(f)),i.length===1&&(f+=n),{accumWidth:f,lines:i,linesWidths:o}}var Uc="__zr_style_"+Math.round(Math.random()*10),ii={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},lf={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};ii[Uc]=!0;var R_=["z","z2","invisible"],DR=["invisible"],LR=function(r){Ft(e,r);function e(t){return r.call(this,t)||this}return e.prototype._init=function(t){for(var a=_t(t),n=0;n1e-4){s[0]=r-t,s[1]=e-a,l[0]=r+t,l[1]=e+a;return}if(uf[0]=Kc(n)*t+r,uf[1]=Xc(n)*a+e,ff[0]=Kc(i)*t+r,ff[1]=Xc(i)*a+e,u(s,uf,ff),f(l,uf,ff),n=n%oi,n<0&&(n=n+oi),i=i%oi,i<0&&(i=i+oi),n>i&&!o?i+=oi:nn&&(hf[0]=Kc(c)*t+r,hf[1]=Xc(c)*a+e,u(s,hf,s),f(l,hf,l))}var Nt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},si=[],li=[],aa=[],ln=[],na=[],ia=[],qc=Math.min,jc=Math.max,ui=Math.cos,fi=Math.sin,La=Math.abs,$c=Math.PI,un=$c*2,Qc=typeof Float32Array!="undefined",Zs=[];function Jc(r){var e=Math.round(r/$c*1e8)/1e8;return e%2*$c}function N_(r,e){var t=Jc(r[0]);t<0&&(t+=un);var a=t-r[0],n=r[1];n+=a,!e&&n-t>=un?n=t+un:e&&t-n>=un?n=t-un:!e&&t>n?n=t+(un-Jc(t-n)):e&&t0&&(this._ux=La(a/tf/e)||0,this._uy=La(a/tf/t)||0)},r.prototype.setDPR=function(e){this.dpr=e},r.prototype.setContext=function(e){this._ctx=e},r.prototype.getContext=function(){return this._ctx},r.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},r.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(Nt.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},r.prototype.lineTo=function(e,t){var a=La(e-this._xi),n=La(t-this._yi),i=a>this._ux||n>this._uy;if(this.addData(Nt.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var o=a*a+n*n;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(e,t,a,n,i,o){return this._drawPendingPt(),this.addData(Nt.C,e,t,a,n,i,o),this._ctx&&this._ctx.bezierCurveTo(e,t,a,n,i,o),this._xi=i,this._yi=o,this},r.prototype.quadraticCurveTo=function(e,t,a,n){return this._drawPendingPt(),this.addData(Nt.Q,e,t,a,n),this._ctx&&this._ctx.quadraticCurveTo(e,t,a,n),this._xi=a,this._yi=n,this},r.prototype.arc=function(e,t,a,n,i,o){this._drawPendingPt(),Zs[0]=n,Zs[1]=i,N_(Zs,o),n=Zs[0],i=Zs[1];var s=i-n;return this.addData(Nt.A,e,t,a,a,n,s,0,o?0:1),this._ctx&&this._ctx.arc(e,t,a,n,i,o),this._xi=ui(i)*a+e,this._yi=fi(i)*a+t,this},r.prototype.arcTo=function(e,t,a,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,a,n,i),this},r.prototype.rect=function(e,t,a,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,a,n),this.addData(Nt.R,e,t,a,n),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(Nt.Z);var e=this._ctx,t=this._x0,a=this._y0;return e&&e.closePath(),this._xi=t,this._yi=a,this},r.prototype.fill=function(e){e&&e.fill(),this.toStatic()},r.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(e){var t=e.length;!(this.data&&this.data.length===t)&&Qc&&(this.data=new Float32Array(t));for(var a=0;af.length&&(this._expandData(),f=this.data);for(var h=0;h0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t11&&(this.data=new Float32Array(e)))}},r.prototype.getBoundingRect=function(){aa[0]=aa[1]=na[0]=na[1]=Number.MAX_VALUE,ln[0]=ln[1]=ia[0]=ia[1]=-Number.MAX_VALUE;var e=this.data,t=0,a=0,n=0,i=0,o;for(o=0;oa||La(_)>n||v===t-1)&&(d=Math.sqrt(m*m+_*_),i=g,o=y);break}case Nt.C:{var S=e[v++],b=e[v++],g=e[v++],y=e[v++],x=e[v++],w=e[v++];d=qP(i,o,S,b,g,y,x,w,10),i=x,o=w;break}case Nt.Q:{var S=e[v++],b=e[v++],g=e[v++],y=e[v++];d=$P(i,o,S,b,g,y,10),i=g,o=y;break}case Nt.A:var T=e[v++],C=e[v++],M=e[v++],D=e[v++],L=e[v++],I=e[v++],P=I+L;v+=1;var R=!e[v++];p&&(s=ui(L)*M+T,l=fi(L)*D+C),d=jc(M,D)*qc(un,Math.abs(I)),i=ui(P)*M+T,o=fi(P)*D+C;break;case Nt.R:{s=i=e[v++],l=o=e[v++];var E=e[v++],N=e[v++];d=E*2+N*2;break}case Nt.Z:{var m=s-i,_=l-o;d=Math.sqrt(m*m+_*_),i=s,o=l;break}}d>=0&&(u[h++]=d,f+=d)}return this._pathLen=f,f},r.prototype.rebuildPath=function(e,t){var a=this.data,n=this._ux,i=this._uy,o=this._len,s,l,u,f,h,v,c=t<1,p,d,g=0,y=0,m,_=0,S,b;if(c&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,d=this._pathLen,m=t*d,!m))return;t:for(var x=0;x0&&(e.lineTo(S,b),_=0),w){case Nt.M:s=u=a[x++],l=f=a[x++],e.moveTo(u,f);break;case Nt.L:{h=a[x++],v=a[x++];var C=La(h-u),M=La(v-f);if(C>n||M>i){if(c){var D=p[y++];if(g+D>m){var L=(m-g)/D;e.lineTo(u*(1-L)+h*L,f*(1-L)+v*L);break t}g+=D}e.lineTo(h,v),u=h,f=v,_=0}else{var I=C*C+M*M;I>_&&(S=h,b=v,_=I)}break}case Nt.C:{var P=a[x++],R=a[x++],E=a[x++],N=a[x++],O=a[x++],V=a[x++];if(c){var D=p[y++];if(g+D>m){var L=(m-g)/D;nn(u,P,E,O,L,si),nn(f,R,N,V,L,li),e.bezierCurveTo(si[1],li[1],si[2],li[2],si[3],li[3]);break t}g+=D}e.bezierCurveTo(P,R,E,N,O,V),u=O,f=V;break}case Nt.Q:{var P=a[x++],R=a[x++],E=a[x++],N=a[x++];if(c){var D=p[y++];if(g+D>m){var L=(m-g)/D;Ps(u,P,E,L,si),Ps(f,R,N,L,li),e.quadraticCurveTo(si[1],li[1],si[2],li[2]);break t}g+=D}e.quadraticCurveTo(P,R,E,N),u=E,f=N;break}case Nt.A:var F=a[x++],W=a[x++],X=a[x++],Q=a[x++],J=a[x++],dt=a[x++],Dt=a[x++],gt=!a[x++],at=X>Q?X:Q,yt=La(X-Q)>.001,vt=J+dt,j=!1;if(c){var D=p[y++];g+D>m&&(vt=J+dt*(m-g)/D,j=!0),g+=D}if(yt&&e.ellipse?e.ellipse(F,W,X,Q,Dt,J,vt,gt):e.arc(F,W,at,J,vt,gt),j)break t;T&&(s=ui(J)*X+F,l=fi(J)*Q+W),u=ui(vt)*X+F,f=fi(vt)*Q+W;break;case Nt.R:s=u=a[x],l=f=a[x+1],h=a[x++],v=a[x++];var ut=a[x++],Ut=a[x++];if(c){var D=p[y++];if(g+D>m){var wt=m-g;e.moveTo(h,v),e.lineTo(h+qc(wt,ut),v),wt-=ut,wt>0&&e.lineTo(h+ut,v+qc(wt,Ut)),wt-=Ut,wt>0&&e.lineTo(h+jc(ut-wt,0),v+Ut),wt-=ut,wt>0&&e.lineTo(h,v+jc(Ut-wt,0));break t}g+=D}e.rect(h,v,ut,Ut);break;case Nt.Z:if(c){var D=p[y++];if(g+D>m){var L=(m-g)/D;e.lineTo(u*(1-L)+s*L,f*(1-L)+l*L);break t}g+=D}e.closePath(),u=s,f=l}}},r.prototype.clone=function(){var e=new r,t=this.data;return e.data=t.slice?t.slice():Array.prototype.slice.call(t),e._len=this._len,e},r.CMD=Nt,r.initDefaultProps=function(){var e=r.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),r}(),oa=kR;function fn(r,e,t,a,n,i,o){if(n===0)return!1;var s=n,l=0,u=r;if(o>e+s&&o>a+s||or+s&&i>t+s||ie+h&&f>a+h&&f>i+h&&f>s+h||fr+h&&u>t+h&&u>n+h&&u>o+h||ue+u&&l>a+u&&l>i+u||lr+u&&s>t+u&&s>n+u||st||f+un&&(n+=Xs);var v=Math.atan2(l,s);return v<0&&(v+=Xs),v>=a&&v<=n||v+Xs>=a&&v+Xs<=n}function Pa(r,e,t,a,n,i){if(i>e&&i>a||in?s:0}var hn=oa.CMD,hi=Math.PI*2,BR=1e-4;function VR(r,e){return Math.abs(r-e)e&&u>a&&u>i&&u>s||u1&&zR(),c=le(e,a,i,s,gr[0]),v>1&&(p=le(e,a,i,s,gr[1]))),v===2?ge&&s>a&&s>i||s=0&&u<=1){for(var f=0,h=pe(e,a,i,u),v=0;vt||s<-t)return 0;var l=Math.sqrt(t*t-s*s);Ee[0]=-l,Ee[1]=l;var u=Math.abs(a-n);if(u<1e-4)return 0;if(u>=hi-1e-4){a=0,n=hi;var f=i?1:-1;return o>=Ee[0]+r&&o<=Ee[1]+r?f:0}if(a>n){var h=a;a=n,n=h}a<0&&(a+=hi,n+=hi);for(var v=0,c=0;c<2;c++){var p=Ee[c];if(p+r>o){var d=Math.atan2(s,p),f=i?1:-1;d<0&&(d=hi+d),(d>=a&&d<=n||d+hi>=a&&d+hi<=n)&&(d>Math.PI/2&&d1&&(t||(s+=Pa(l,u,f,h,a,n))),g&&(l=i[p],u=i[p+1],f=l,h=u),d){case hn.M:f=i[p++],h=i[p++],l=f,u=h;break;case hn.L:if(t){if(fn(l,u,i[p],i[p+1],e,a,n))return!0}else s+=Pa(l,u,i[p],i[p+1],a,n)||0;l=i[p++],u=i[p++];break;case hn.C:if(t){if(OR(l,u,i[p++],i[p++],i[p++],i[p++],i[p],i[p+1],e,a,n))return!0}else s+=GR(l,u,i[p++],i[p++],i[p++],i[p++],i[p],i[p+1],a,n)||0;l=i[p++],u=i[p++];break;case hn.Q:if(t){if(B_(l,u,i[p++],i[p++],i[p],i[p+1],e,a,n))return!0}else s+=FR(l,u,i[p++],i[p++],i[p],i[p+1],a,n)||0;l=i[p++],u=i[p++];break;case hn.A:var y=i[p++],m=i[p++],_=i[p++],S=i[p++],b=i[p++],x=i[p++];p+=1;var w=!!(1-i[p++]);v=Math.cos(b)*_+y,c=Math.sin(b)*S+m,g?(f=v,h=c):s+=Pa(l,u,v,c,a,n);var T=(a-y)*S/_+y;if(t){if(NR(y,m,S,b,b+x,w,e,T,n))return!0}else s+=HR(y,m,S,b,b+x,w,T,n);l=Math.cos(b+x)*_+y,u=Math.sin(b+x)*S+m;break;case hn.R:f=l=i[p++],h=u=i[p++];var C=i[p++],M=i[p++];if(v=f+C,c=h+M,t){if(fn(f,h,v,h,e,a,n)||fn(v,h,v,c,e,a,n)||fn(v,c,f,c,e,a,n)||fn(f,c,f,h,e,a,n))return!0}else s+=Pa(v,h,v,c,a,n),s+=Pa(f,c,f,h,a,n);break;case hn.Z:if(t){if(fn(l,u,f,h,e,a,n))return!0}else s+=Pa(l,u,f,h,a,n);l=f,u=h;break}}return!t&&!VR(u,h)&&(s+=Pa(l,u,f,h,a,n)||0),s!==0}function WR(r,e,t){return z_(r,0,!1,e,t)}function UR(r,e,t,a){return z_(r,e,!0,t,a)}var cf=K({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},ii),YR={style:K({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},lf.style)},tp=Jr.concat(["invisible","culling","z","z2","zlevel","parent"]),ZR=function(r){Ft(e,r);function e(t){return r.call(this,t)||this}return e.prototype.update=function(){var t=this;r.prototype.update.call(this);var a=this.style;if(a.decal){var n=this._decalEl=this._decalEl||new e;n.buildPath===e.prototype.buildPath&&(n.buildPath=function(l){t.buildPath(l,t.shape)}),n.silent=!0;var i=n.style;for(var o in a)i[o]!==a[o]&&(i[o]=a[o]);i.fill=a.fill?a.decal:null,i.decal=null,i.shadowColor=null,a.strokeFirst&&(i.stroke=null);for(var s=0;s.5?Cc:a>.2?L2:Ac}else if(t)return Ac}return Cc},e.prototype.getInsideTextStroke=function(t){var a=this.style.fill;if(U(a)){var n=this.__zr,i=!!(n&&n.isDarkMode()),o=Yu(t,0)0))},e.prototype.hasFill=function(){var t=this.style,a=t.fill;return a!=null&&a!=="none"},e.prototype.getBoundingRect=function(){var t=this._rect,a=this.style,n=!t;if(n){var i=!1;this.path||(i=!0,this.createPathProxy());var o=this.path;(i||this.__dirty&co)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),t=o.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||n){s.copy(t);var l=a.strokeNoScale?this.getLineScale():1,u=a.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;u=Math.max(u,f==null?4:f)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return t},e.prototype.contain=function(t,a){var n=this.transformCoordToLocal(t,a),i=this.getBoundingRect(),o=this.style;if(t=n[0],a=n[1],i.contain(t,a)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),UR(s,l/u,t,a)))return!0}if(this.hasFill())return WR(s,t,a)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=co,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){t==="style"?this.dirtyStyle():t==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(t,a){t==="shape"?this.setShape(a):r.prototype.attrKV.call(this,t,a)},e.prototype.setShape=function(t,a){var n=this.shape;return n||(n=this.shape={}),typeof t=="string"?n[t]=a:B(n,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&co)},e.prototype.createStyle=function(t){return Lu(cf,t)},e.prototype._innerSaveToNormal=function(t){r.prototype._innerSaveToNormal.call(this,t);var a=this._normalState;t.shape&&!a.shape&&(a.shape=B({},this.shape))},e.prototype._applyStateObj=function(t,a,n,i,o,s){r.prototype._applyStateObj.call(this,t,a,n,i,o,s);var l=!(a&&i),u;if(a&&a.shape?o?i?u=a.shape:(u=B({},n.shape),B(u,a.shape)):(u=B({},i?this.shape:n.shape),B(u,a.shape)):l&&(u=n.shape),u)if(o){this.shape=B({},this.shape);for(var f={},h=_t(u),v=0;v0},e.prototype.hasFill=function(){var t=this.style,a=t.fill;return a!=null&&a!=="none"},e.prototype.createStyle=function(t){return Lu(XR,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var a=t.text;a!=null?a+="":a="";var n=Gs(a,t.font,t.textAlign,t.textBaseline);if(n.x+=t.x||0,n.y+=t.y||0,this.hasStroke()){var i=t.lineWidth;n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i}this._rect=n}return this._rect},e.initDefaultProps=function(){var t=e.prototype;t.dirtyRectTolerance=10}(),e}(dr);G_.prototype.type="tspan";var Ks=G_,KR=K({x:0,y:0},ii),qR={style:K({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},lf.style)};function jR(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var F_=function(r){Ft(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.createStyle=function(t){return Lu(KR,t)},e.prototype._getSize=function(t){var a=this.style,n=a[t];if(n!=null)return n;var i=jR(a.image)?a.image:this.__image;if(!i)return 0;var o=t==="width"?"height":"width",s=a[o];return s==null?i[t]:i[t]/i[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return qR},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new ht(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(dr);F_.prototype.type="image";var _e=F_;function $R(r,e){var t=e.x,a=e.y,n=e.width,i=e.height,o=e.r,s,l,u,f;n<0&&(t=t+n,n=-n),i<0&&(a=a+i,i=-i),typeof o=="number"?s=l=u=f=o:o instanceof Array?o.length===1?s=l=u=f=o[0]:o.length===2?(s=u=o[0],l=f=o[1]):o.length===3?(s=o[0],l=f=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],f=o[3]):s=l=u=f=0;var h;s+l>n&&(h=s+l,s*=n/h,l*=n/h),u+f>n&&(h=u+f,u*=n/h,f*=n/h),l+u>i&&(h=l+u,l*=i/h,u*=i/h),s+f>i&&(h=s+f,s*=i/h,f*=i/h),r.moveTo(t+s,a),r.lineTo(t+n-l,a),l!==0&&r.arc(t+n-l,a+l,l,-Math.PI/2,0),r.lineTo(t+n,a+i-u),u!==0&&r.arc(t+n-u,a+i-u,u,0,Math.PI/2),r.lineTo(t+f,a+i),f!==0&&r.arc(t+f,a+i-f,f,Math.PI/2,Math.PI),r.lineTo(t,a+s),s!==0&&r.arc(t+s,a+s,s,Math.PI,Math.PI*1.5)}var bo=Math.round;function H_(r,e,t){if(!!e){var a=e.x1,n=e.x2,i=e.y1,o=e.y2;r.x1=a,r.x2=n,r.y1=i,r.y2=o;var s=t&&t.lineWidth;return s&&(bo(a*2)===bo(n*2)&&(r.x1=r.x2=vi(a,s,!0)),bo(i*2)===bo(o*2)&&(r.y1=r.y2=vi(i,s,!0))),r}}function W_(r,e,t){if(!!e){var a=e.x,n=e.y,i=e.width,o=e.height;r.x=a,r.y=n,r.width=i,r.height=o;var s=t&&t.lineWidth;return s&&(r.x=vi(a,s,!0),r.y=vi(n,s,!0),r.width=Math.max(vi(a+i,s,!1)-r.x,i===0?0:1),r.height=Math.max(vi(n+o,s,!1)-r.y,o===0?0:1)),r}}function vi(r,e,t){if(!e)return r;var a=bo(r*2);return(a+bo(e))%2==0?a/2:(a+(t?1:-1))/2}var QR=function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r}(),JR={},U_=function(r){Ft(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new QR},e.prototype.buildPath=function(t,a){var n,i,o,s;if(this.subPixelOptimize){var l=W_(JR,a,this.style);n=l.x,i=l.y,o=l.width,s=l.height,l.r=a.r,a=l}else n=a.x,i=a.y,o=a.width,s=a.height;a.r?$R(t,a):t.rect(n,i,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(pt);U_.prototype.type="rect";var bt=U_,Y_={fill:"#000"},Z_=2,tE={style:K({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},lf.style)},X_=function(r){Ft(e,r);function e(t){var a=r.call(this)||this;return a.type="text",a._children=[],a._defaultStyle=Y_,a.attr(t),a}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t0,L=t.width!=null&&(t.overflow==="truncate"||t.overflow==="break"||t.overflow==="breakAll"),I=o.calculatedLineHeight,P=0;P=0&&(P=x[I],P.align==="right");)this._placeToken(P,t,T,y,L,"right",_),C-=P.width,L-=P.width,I--;for(D+=(i-(D-g)-(m-L)-C)/2;M<=I;)P=x[M],this._placeToken(P,t,T,y,D+P.width/2,"center",_),D+=P.width,M++;y+=T}},e.prototype._placeToken=function(t,a,n,i,o,s,l){var u=a.rich[t.styleName]||{};u.text=t.text;var f=t.verticalAlign,h=i+n/2;f==="top"?h=i+t.height/2:f==="bottom"&&(h=i+n-t.height/2);var v=!t.isLineHolder&&ep(u);v&&this._renderBackground(u,a,s==="right"?o-t.width:s==="center"?o-t.width/2:o,h-t.height/2,t.width,t.height);var c=!!u.backgroundColor,p=t.textPadding;p&&(o=e1(o,s,p),h-=t.height/2-p[0]-t.innerHeight/2);var d=this._getOrCreateChild(Ks),g=d.createStyle();d.useStyle(g);var y=this._defaultStyle,m=!1,_=0,S=t1("fill"in u?u.fill:"fill"in a?a.fill:(m=!0,y.fill)),b=J_("stroke"in u?u.stroke:"stroke"in a?a.stroke:!c&&!l&&(!y.autoStroke||m)?(_=Z_,y.stroke):null),x=u.textShadowBlur>0||a.textShadowBlur>0;g.text=t.text,g.x=o,g.y=h,x&&(g.shadowBlur=u.textShadowBlur||a.textShadowBlur||0,g.shadowColor=u.textShadowColor||a.textShadowColor||"transparent",g.shadowOffsetX=u.textShadowOffsetX||a.textShadowOffsetX||0,g.shadowOffsetY=u.textShadowOffsetY||a.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=t.font||Ie,g.opacity=ba(u.opacity,a.opacity,1),j_(g,u),b&&(g.lineWidth=ba(u.lineWidth,a.lineWidth,_),g.lineDash=ft(u.lineDash,a.lineDash),g.lineDashOffset=a.lineDashOffset||0,g.stroke=b),S&&(g.fill=S);var w=t.contentWidth,T=t.contentHeight;d.setBoundingRect(new ht(Fs(g.x,w,g.textAlign),_o(g.y,T,g.textBaseline),w,T))},e.prototype._renderBackground=function(t,a,n,i,o,s){var l=t.backgroundColor,u=t.borderWidth,f=t.borderColor,h=l&&l.image,v=l&&!h,c=t.borderRadius,p=this,d,g;if(v||t.lineHeight||u&&f){d=this._getOrCreateChild(bt),d.useStyle(d.createStyle()),d.style.fill=null;var y=d.shape;y.x=n,y.y=i,y.width=o,y.height=s,y.r=c,d.dirtyShape()}if(v){var m=d.style;m.fill=l||null,m.fillOpacity=ft(t.fillOpacity,1)}else if(h){g=this._getOrCreateChild(_e),g.onload=function(){p.dirtyStyle()};var _=g.style;_.image=l.image,_.x=n,_.y=i,_.width=o,_.height=s}if(u&&f){var m=d.style;m.lineWidth=u,m.stroke=f,m.strokeOpacity=ft(t.strokeOpacity,1),m.lineDash=t.borderDash,m.lineDashOffset=t.borderDashOffset||0,d.strokeContainThreshold=0,d.hasFill()&&d.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2)}var S=(d||g).style;S.shadowBlur=t.shadowBlur||0,S.shadowColor=t.shadowColor||"transparent",S.shadowOffsetX=t.shadowOffsetX||0,S.shadowOffsetY=t.shadowOffsetY||0,S.opacity=ba(t.opacity,a.opacity,1)},e.makeFont=function(t){var a="";return $_(t)&&(a=[t.fontStyle,t.fontWeight,q_(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),a&&Rr(a)||t.textFont||t.font},e}(dr),eE={left:!0,right:1,center:1},rE={top:1,bottom:1,middle:1},K_=["fontStyle","fontWeight","fontSize","fontFamily"];function q_(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?qa+"px":r+"px"}function j_(r,e){for(var t=0;t=0,i=!1;if(r instanceof pt){var o=i1(r),s=n&&o.selectFill||o.normalFill,l=n&&o.selectStroke||o.normalStroke;if(To(s)||To(l)){a=a||{};var u=a.style||{};u.fill==="inherit"?(i=!0,a=B({},a),u=B({},u),u.fill=s):!To(u.fill)&&To(s)?(i=!0,a=B({},a),u=B({},u),u.fill=s1(s)):!To(u.stroke)&&To(l)&&(i||(a=B({},a),u=B({},u)),u.stroke=s1(l)),a.style=u}}if(a&&a.z2==null){i||(a=B({},a));var f=r.z2EmphasisLift;a.z2=r.z2+(f!=null?f:wo)}return a}function uE(r,e,t){if(t&&t.z2==null){t=B({},t);var a=r.z2SelectLift;t.z2=r.z2+(a!=null?a:nE)}return t}function fE(r,e,t){var a=st(r.currentStates,e)>=0,n=r.style.opacity,i=a?null:sE(r,["opacity"],e,{opacity:1});t=t||{};var o=t.style||{};return o.opacity==null&&(t=B({},t),o=B({opacity:a?n:i.opacity*.1},o),t.style=o),t}function op(r,e){var t=this.states[r];if(this.style){if(r==="emphasis")return lE(this,r,e,t);if(r==="blur")return fE(this,r,t);if(r==="select")return uE(this,r,t)}return t}function pi(r){r.stateProxy=op;var e=r.getTextContent(),t=r.getTextGuideLine();e&&(e.stateProxy=op),t&&(t.stateProxy=op)}function v1(r,e){!y1(r,e)&&!r.__highByOuter&&Ra(r,l1)}function c1(r,e){!y1(r,e)&&!r.__highByOuter&&Ra(r,u1)}function Ea(r,e){r.__highByOuter|=1<<(e||0),Ra(r,l1)}function ka(r,e){!(r.__highByOuter&=~(1<<(e||0)))&&Ra(r,u1)}function p1(r){Ra(r,ip)}function sp(r){Ra(r,f1)}function d1(r){Ra(r,iE)}function g1(r){Ra(r,oE)}function y1(r,e){return r.__highDownSilentOnTouch&&e.zrByTouch}function m1(r){var e=r.getModel(),t=[],a=[];e.eachComponent(function(n,i){var o=ap(i),s=n==="series",l=s?r.getViewOfSeriesModel(i):r.getViewOfComponentModel(i);!s&&a.push(l),o.isBlured&&(l.group.traverse(function(u){f1(u)}),s&&t.push(i)),o.isBlured=!1}),A(a,function(n){n&&n.toggleBlurSeries&&n.toggleBlurSeries(t,!1,e)})}function lp(r,e,t,a){var n=a.getModel();t=t||"coordinateSystem";function i(u,f){for(var h=0;h0){var l={dataIndex:s,seriesIndex:t.seriesIndex};o!=null&&(l.dataType=o),e.push(l)}})}),e}function di(r,e,t){gi(r,!0),Ra(r,pi),hp(r,e,t)}function gE(r){gi(r,!1)}function Yt(r,e,t,a){a?gE(r):di(r,e,t)}function hp(r,e,t){var a=nt(r);e!=null?(a.focus=e,a.blurScope=t):a.focus&&(a.focus=null)}var S1=["emphasis","blur","select"],yE={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Se(r,e,t,a){t=t||"itemStyle";for(var n=0;n0){var h=f.duration,v=f.delay,c=f.easing,p={duration:h,delay:v||0,easing:c,done:i,force:!!i||!!o,setToFinal:!u,scope:r,during:o};s?e.animateFrom(t,p):e.animateTo(t,p)}else e.stopAnimation(),!s&&e.attr(t),o&&o(1),i&&i()}function Mt(r,e,t,a,n,i){cp("update",r,e,t,a,n,i)}function Ht(r,e,t,a,n,i){cp("enter",r,e,t,a,n,i)}function Ao(r){if(!r.__zr)return!0;for(var e=0;e=0&&s.push(l)}),s}}function cn(r,e){return ot(ot({},r,!0),e,!0)}var kE={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},OE={time:{month:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"],monthAbbr:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],dayOfWeek:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"],dayOfWeekAbbr:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"]},legend:{selector:{all:"\u5168\u9009",inverse:"\u53CD\u9009"}},toolbox:{brush:{title:{rect:"\u77E9\u5F62\u9009\u62E9",polygon:"\u5708\u9009",lineX:"\u6A2A\u5411\u9009\u62E9",lineY:"\u7EB5\u5411\u9009\u62E9",keep:"\u4FDD\u6301\u9009\u62E9",clear:"\u6E05\u9664\u9009\u62E9"}},dataView:{title:"\u6570\u636E\u89C6\u56FE",lang:["\u6570\u636E\u89C6\u56FE","\u5173\u95ED","\u5237\u65B0"]},dataZoom:{title:{zoom:"\u533A\u57DF\u7F29\u653E",back:"\u533A\u57DF\u7F29\u653E\u8FD8\u539F"}},magicType:{title:{line:"\u5207\u6362\u4E3A\u6298\u7EBF\u56FE",bar:"\u5207\u6362\u4E3A\u67F1\u72B6\u56FE",stack:"\u5207\u6362\u4E3A\u5806\u53E0",tiled:"\u5207\u6362\u4E3A\u5E73\u94FA"}},restore:{title:"\u8FD8\u539F"},saveAsImage:{title:"\u4FDD\u5B58\u4E3A\u56FE\u7247",lang:["\u53F3\u952E\u53E6\u5B58\u4E3A\u56FE\u7247"]}},series:{typeNames:{pie:"\u997C\u56FE",bar:"\u67F1\u72B6\u56FE",line:"\u6298\u7EBF\u56FE",scatter:"\u6563\u70B9\u56FE",effectScatter:"\u6D9F\u6F2A\u6563\u70B9\u56FE",radar:"\u96F7\u8FBE\u56FE",tree:"\u6811\u56FE",treemap:"\u77E9\u5F62\u6811\u56FE",boxplot:"\u7BB1\u578B\u56FE",candlestick:"K\u7EBF\u56FE",k:"K\u7EBF\u56FE",heatmap:"\u70ED\u529B\u56FE",map:"\u5730\u56FE",parallel:"\u5E73\u884C\u5750\u6807\u56FE",lines:"\u7EBF\u56FE",graph:"\u5173\u7CFB\u56FE",sankey:"\u6851\u57FA\u56FE",funnel:"\u6F0F\u6597\u56FE",gauge:"\u4EEA\u8868\u76D8\u56FE",pictorialBar:"\u8C61\u5F62\u67F1\u56FE",themeRiver:"\u4E3B\u9898\u6CB3\u6D41\u56FE",sunburst:"\u65ED\u65E5\u56FE"}},aria:{general:{withTitle:"\u8FD9\u662F\u4E00\u4E2A\u5173\u4E8E\u201C{title}\u201D\u7684\u56FE\u8868\u3002",withoutTitle:"\u8FD9\u662F\u4E00\u4E2A\u56FE\u8868\uFF0C"},series:{single:{prefix:"",withName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\uFF0C\u8868\u793A{seriesName}\u3002",withoutName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\u3002"},multiple:{prefix:"\u5B83\u7531{seriesCount}\u4E2A\u56FE\u8868\u7CFB\u5217\u7EC4\u6210\u3002",withName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A\u8868\u793A{seriesName}\u7684{seriesType}\uFF0C",withoutName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A{seriesType}\uFF0C",separator:{middle:"\uFF1B",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636E\u662F\u2014\u2014",partialData:"\u5176\u4E2D\uFF0C\u524D{displayCnt}\u9879\u662F\u2014\u2014",withName:"{name}\u7684\u6570\u636E\u662F{value}",withoutName:"{value}",separator:{middle:"\uFF0C",end:""}}}},xf="ZH",yp="EN",el=yp,bf={},mp={},k1=St.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return r.indexOf(xf)>-1?xf:el}():el;function O1(r,e){r=r.toUpperCase(),mp[r]=new Vt(e),bf[r]=e}function NE(r){if(U(r)){var e=bf[r.toUpperCase()]||{};return r===xf||r===yp?tt(e):ot(tt(e),tt(bf[el]),!1)}else return ot(tt(r),tt(bf[el]),!1)}function _p(r){return mp[r]}function BE(){return mp[el]}O1(yp,kE),O1(xf,OE);var Sp=1e3,xp=Sp*60,rl=xp*60,yr=rl*24,N1=yr*365,al={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},wf="{yyyy}-{MM}-{dd}",B1={year:"{yyyy}",month:"{yyyy}-{MM}",day:wf,hour:wf+" "+al.hour,minute:wf+" "+al.minute,second:wf+" "+al.second,millisecond:al.none},bp=["year","month","day","hour","minute","second","millisecond"],V1=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function mi(r,e){return r+="","0000".substr(0,e-r.length)+r}function Lo(r){switch(r){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return r}}function VE(r){return r===Lo(r)}function zE(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Tf(r,e,t,a){var n=ea(r),i=n[wp(t)](),o=n[Io(t)]()+1,s=Math.floor((o-1)/3)+1,l=n[Cf(t)](),u=n["get"+(t?"UTC":"")+"Day"](),f=n[nl(t)](),h=(f-1)%12+1,v=n[Af(t)](),c=n[Mf(t)](),p=n[Df(t)](),d=a instanceof Vt?a:_p(a||k1)||BE(),g=d.getModel("time"),y=g.get("month"),m=g.get("monthAbbr"),_=g.get("dayOfWeek"),S=g.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,i%100+"").replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[o-1]).replace(/{MMM}/g,m[o-1]).replace(/{MM}/g,mi(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,mi(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,mi(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,mi(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,mi(v,2)).replace(/{m}/g,v+"").replace(/{ss}/g,mi(c,2)).replace(/{s}/g,c+"").replace(/{SSS}/g,mi(p,3)).replace(/{S}/g,p+"")}function GE(r,e,t,a,n){var i=null;if(U(t))i=t;else if($(t))i=t(r.value,e,{level:r.level});else{var o=B({},al);if(r.level>0)for(var s=0;s=0;--s)if(l[u]){i=l[u];break}i=i||o.none}if(z(i)){var h=r.level==null?0:r.level>=0?r.level:i.length+r.level;h=Math.min(h,i.length-1),i=i[h]}}return Tf(new Date(r.value),i,n,a)}function z1(r,e){var t=ea(r),a=t[Io(e)]()+1,n=t[Cf(e)](),i=t[nl(e)](),o=t[Af(e)](),s=t[Mf(e)](),l=t[Df(e)](),u=l===0,f=u&&s===0,h=f&&o===0,v=h&&i===0,c=v&&n===1,p=c&&a===1;return p?"year":c?"month":v?"day":h?"hour":f?"minute":u?"second":"millisecond"}function G1(r,e,t){var a=Tt(r)?ea(r):r;switch(e=e||z1(r,t),e){case"year":return a[wp(t)]();case"half-year":return a[Io(t)]()>=6?1:0;case"quarter":return Math.floor((a[Io(t)]()+1)/4);case"month":return a[Io(t)]();case"day":return a[Cf(t)]();case"half-day":return a[nl(t)]()/24;case"hour":return a[nl(t)]();case"minute":return a[Af(t)]();case"second":return a[Mf(t)]();case"millisecond":return a[Df(t)]()}}function wp(r){return r?"getUTCFullYear":"getFullYear"}function Io(r){return r?"getUTCMonth":"getMonth"}function Cf(r){return r?"getUTCDate":"getDate"}function nl(r){return r?"getUTCHours":"getHours"}function Af(r){return r?"getUTCMinutes":"getMinutes"}function Mf(r){return r?"getUTCSeconds":"getSeconds"}function Df(r){return r?"getUTCMilliseconds":"getMilliseconds"}function FE(r){return r?"setUTCFullYear":"setFullYear"}function F1(r){return r?"setUTCMonth":"setMonth"}function H1(r){return r?"setUTCDate":"setDate"}function W1(r){return r?"setUTCHours":"setHours"}function U1(r){return r?"setUTCMinutes":"setMinutes"}function Y1(r){return r?"setUTCSeconds":"setSeconds"}function Z1(r){return r?"setUTCMilliseconds":"setMilliseconds"}function X1(r){if(!c_(r))return U(r)?r:"-";var e=(r+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function K1(r,e){return r=(r||"").toLowerCase().replace(/-(.)/g,function(t,a){return a.toUpperCase()}),e&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var Po=Bv;function Tp(r,e,t){var a="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function n(f){return f&&Rr(f)?f:"-"}function i(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=e==="time",s=r instanceof Date;if(o||s){var l=o?ea(r):r;if(isNaN(+l)){if(s)return"-"}else return Tf(l,a,t)}if(e==="ordinal")return Ov(r)?n(r):Tt(r)&&i(r)?r+"":"-";var u=Da(r);return i(u)?X1(u):Ov(r)?n(r):typeof r=="boolean"?r+"":"-"}var q1=["a","b","c","d","e","f","g"],Cp=function(r,e){return"{"+r+(e==null?"":e)+"}"};function j1(r,e,t){z(e)||(e=[e]);var a=e.length;if(!a)return"";for(var n=e[0].$vars||[],i=0;i':'';var o=t.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:n==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:a}:{width:10,height:10,borderRadius:5,backgroundColor:a}}}function cq(r,e,t){(r==="week"||r==="month"||r==="quarter"||r==="half-year"||r==="year")&&(r=`MM-dd +yyyy`);var a=parseDate(e),n=t?"getUTC":"get",i=a[n+"FullYear"](),o=a[n+"Month"]()+1,s=a[n+"Date"](),l=a[n+"Hours"](),u=a[n+"Minutes"](),f=a[n+"Seconds"](),h=a[n+"Milliseconds"]();return r=r.replace("MM",pad(o,2)).replace("M",o).replace("yyyy",i).replace("yy",pad(i%100+"",2)).replace("dd",pad(s,2)).replace("d",s).replace("hh",pad(l,2)).replace("h",l).replace("mm",pad(u,2)).replace("m",u).replace("ss",pad(f,2)).replace("s",f).replace("SSS",pad(h,3)),r}function pq(r){return r&&r.charAt(0).toUpperCase()+r.substr(1)}function _i(r,e){return e=e||"transparent",U(r)?r:et(r)&&r.colorStops&&(r.colorStops[0]||{}).color||e}function Lf(r,e){if(e==="_blank"||e==="blank"){var t=window.open();t.opener=null,t.location.href=r}else window.open(r,e)}var If=A,$1=["left","right","top","bottom","width","height"],Si=[["width","left","right"],["height","top","bottom"]];function Ap(r,e,t,a,n){var i=0,o=0;a==null&&(a=Infinity),n==null&&(n=Infinity);var s=0;e.eachChild(function(l,u){var f=l.getBoundingRect(),h=e.childAt(u+1),v=h&&h.getBoundingRect(),c,p;if(r==="horizontal"){var d=f.width+(v?-v.x+f.x:0);c=i+d,c>a||l.newline?(i=0,c=d,o+=s+t,s=f.height):s=Math.max(s,f.height)}else{var g=f.height+(v?-v.y+f.y:0);p=o+g,p>n||l.newline?(i+=s+t,o=0,p=g,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),r==="horizontal"?i=c+t:o=p+t)})}var xi=Ap,dq=it(Ap,"vertical"),gq=it(Ap,"horizontal");function UE(r,e,t){var a=e.width,n=e.height,i=H(r.left,a),o=H(r.top,n),s=H(r.right,a),l=H(r.bottom,n);return(isNaN(i)||isNaN(parseFloat(r.left)))&&(i=0),(isNaN(s)||isNaN(parseFloat(r.right)))&&(s=a),(isNaN(o)||isNaN(parseFloat(r.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(r.bottom)))&&(l=n),t=Po(t||0),{width:Math.max(s-i-t[1]-t[3],0),height:Math.max(l-o-t[0]-t[2],0)}}function oe(r,e,t){t=Po(t||0);var a=e.width,n=e.height,i=H(r.left,a),o=H(r.top,n),s=H(r.right,a),l=H(r.bottom,n),u=H(r.width,a),f=H(r.height,n),h=t[2]+t[0],v=t[1]+t[3],c=r.aspect;switch(isNaN(u)&&(u=a-s-v-i),isNaN(f)&&(f=n-l-h-o),c!=null&&(isNaN(u)&&isNaN(f)&&(c>a/n?u=a*.8:f=n*.8),isNaN(u)&&(u=c*f),isNaN(f)&&(f=u/c)),isNaN(i)&&(i=a-s-u-v),isNaN(o)&&(o=n-l-f-h),r.left||r.right){case"center":i=a/2-u/2-t[3];break;case"right":i=a-u-v;break}switch(r.top||r.bottom){case"middle":case"center":o=n/2-f/2-t[0];break;case"bottom":o=n-f-h;break}i=i||0,o=o||0,isNaN(u)&&(u=a-v-i-(s||0)),isNaN(f)&&(f=n-h-o-(l||0));var p=new ht(i+t[3],o+t[0],u,f);return p.margin=t,p}function Pf(r,e,t,a,n,i){var o=!n||!n.hv||n.hv[0],s=!n||!n.hv||n.hv[1],l=n&&n.boundingMode||"all";if(i=i||r,i.x=r.x,i.y=r.y,!o&&!s)return!1;var u;if(l==="raw")u=r.type==="group"?new ht(0,0,+e.width||0,+e.height||0):r.getBoundingRect();else if(u=r.getBoundingRect(),r.needLocalTransform()){var f=r.getLocalTransform();u=u.clone(),u.applyTransform(f)}var h=oe(K({width:u.width,height:u.height},e),t,a),v=o?h.x-u.x:0,c=s?h.y-u.y:0;return l==="raw"?(i.x=v,i.y=c):(i.x+=v,i.y+=c),i===r&&r.markRedraw(),!0}function YE(r,e){return r[Si[e][0]]!=null||r[Si[e][1]]!=null&&r[Si[e][2]]!=null}function il(r){var e=r.layoutMode||r.constructor.layoutMode;return et(e)?e:e?{type:e}:null}function pn(r,e,t){var a=t&&t.ignoreSize;!z(a)&&(a=[a,a]);var n=o(Si[0],0),i=o(Si[1],1);u(Si[0],r,n),u(Si[1],r,i);function o(f,h){var v={},c=0,p={},d=0,g=2;if(If(f,function(_){p[_]=r[_]}),If(f,function(_){s(e,_)&&(v[_]=p[_]=e[_]),l(v,_)&&c++,l(p,_)&&d++}),a[h])return l(e,f[1])?p[f[2]]=null:l(e,f[2])&&(p[f[1]]=null),p;if(d===g||!c)return p;if(c>=g)return v;for(var y=0;y=0;l--)s=ot(s,n[l],!0);a.defaultOption=s}return a.defaultOption},e.prototype.getReferringComponents=function(t,a){var n=t+"Index",i=t+"Id";return Ys(this.ecModel,t,{index:this.get(n,!0),id:this.get(i,!0)},a)},e.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),e}(Vt);A_(Eo,Vt),of(Eo),RE(Eo),EE(Eo,XE);function XE(r){var e=[];return A(Eo.getClassesByMainType(r),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=G(e,function(t){return ra(t).main}),r!=="dataset"&&st(e,"dataset")<=0&&e.unshift("dataset"),e}var At=Eo,J1="";typeof navigator!="undefined"&&(J1=navigator.platform||"");var ko="rgba(0, 0, 0, 0.2)",KE={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:ko,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:ko,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:ko,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:ko,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:ko,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:ko,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:J1.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},tS=q(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),mr="original",Ce="arrayRows",_r="objectRows",sa="keyedColumns",Oa="typedArray",eS="unknown",la="column",Oo="row",be={Must:1,Might:2,Not:3},rS=xt();function qE(r){rS(r).datasetMap=q()}function aS(r,e,t){var a={},n=Dp(e);if(!n||!r)return a;var i=[],o=[],s=e.ecModel,l=rS(s).datasetMap,u=n.uid+"_"+t.seriesLayoutBy,f,h;r=r.slice(),A(r,function(d,g){var y=et(d)?d:r[g]={name:d};y.type==="ordinal"&&f==null&&(f=g,h=p(y)),a[y.name]=[]});var v=l.get(u)||l.set(u,{categoryWayDim:h,valueWayDim:0});A(r,function(d,g){var y=d.name,m=p(d);if(f==null){var _=v.valueWayDim;c(a[y],_,m),c(o,_,m),v.valueWayDim+=m}else if(f===g)c(a[y],0,m),c(i,0,m);else{var _=v.categoryWayDim;c(a[y],_,m),c(o,_,m),v.categoryWayDim+=m}});function c(d,g,y){for(var m=0;me)return r[a];return r[t-1]}function sS(r,e,t,a,n,i,o){i=i||r;var s=e(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(n))return u[n];var f=o==null||!a?t:tk(a,o);if(f=f||t,!(!f||!f.length)){var h=f[l];return n&&(u[n]=h),s.paletteIdx=(l+1)%f.length,h}}function ek(r,e){e(r).paletteIdx=0,e(r).paletteNameMap={}}var Rf,ol,lS,uS="\0_ec_inner",rk=1,ak={grid:"GridComponent",polar:"PolarComponent",geo:"GeoComponent",singleAxis:"SingleAxisComponent",parallel:"ParallelComponent",calendar:"CalendarComponent",graphic:"GraphicComponent",toolbox:"ToolboxComponent",tooltip:"TooltipComponent",axisPointer:"AxisPointerComponent",brush:"BrushComponent",title:"TitleComponent",timeline:"TimelineComponent",markPoint:"MarkPointComponent",markLine:"MarkLineComponent",markArea:"MarkAreaComponent",legend:"LegendComponent",dataZoom:"DataZoomComponent",visualMap:"VisualMapComponent",xAxis:"GridComponent",yAxis:"GridComponent",angleAxis:"PolarComponent",radiusAxis:"PolarComponent"},yq={line:"LineChart",bar:"BarChart",pie:"PieChart",scatter:"ScatterChart",radar:"RadarChart",map:"MapChart",tree:"TreeChart",treemap:"TreemapChart",graph:"GraphChart",gauge:"GaugeChart",funnel:"FunnelChart",parallel:"ParallelChart",sankey:"SankeyChart",boxplot:"BoxplotChart",candlestick:"CandlestickChart",effectScatter:"EffectScatterChart",lines:"LinesChart",heatmap:"HeatmapChart",pictorialBar:"PictorialBarChart",themeRiver:"ThemeRiverChart",sunburst:"SunburstChart",custom:"CustomChart"},fS={};function mq(r){each(r,function(e,t){if(!ComponentModel.hasClass(t)){var a=ak[t];a&&!fS[a]&&(error("Component "+t+` is used but not imported. import { `+a+` } from 'echarts/components'; -echarts.use([`+a+"]);"),fS[a]=!0)}})}var hS=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(t,a,n,i,o,s){i=i||{},this.option=null,this._theme=new Vt(i),this._locale=new Vt(o),this._optionManager=s},e.prototype.setOption=function(t,a,n){var i=pS(a);this._optionManager.setOption(t,n,i),this._resetOption(null,i)},e.prototype.resetOption=function(t,a){return this._resetOption(t,pS(a))},e.prototype._resetOption=function(t,a){var n=!1,i=this._optionManager;if(!t||t==="recreate"){var o=i.mountOption(t==="recreate");!this.option||t==="recreate"?lS(this,o):(this.restoreData(),this._mergeOption(o,a)),n=!0}if((t==="timeline"||t==="media")&&this.restoreData(),!t||t==="recreate"||t==="timeline"){var s=i.getTimelineOption(this);s&&(n=!0,this._mergeOption(s,a))}if(!t||t==="recreate"||t==="media"){var l=i.getMediaOption(this);l.length&&A(l,function(u){n=!0,this._mergeOption(u,a)},this)}return n},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,a){var n=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=q(),u=a&&a.replaceMergeMainTypeMap;qE(this),A(t,function(h,v){h!=null&&(Mt.hasClass(v)?v&&(s.push(v),l.set(v,!0)):n[v]=n[v]==null?tt(h):ot(n[v],h,!0))}),u&&u.each(function(h,v){Mt.hasClass(v)&&!l.get(v)&&(s.push(v),l.set(v,!0))}),Mt.topologicalTravel(s,Mt.getAllClassMainTypes(),f,this);function f(h){var v=QE(this,h,Ot(t[h])),c=i.get(h),p=c?u&&u.get(h)?"replaceMerge":"normalMerge":"replaceAll",d=x_(c,v,p);tR(d,h,Mt),n[h]=null,i.set(h,null),o.set(h,0);var g=[],y=[],m=0,_,S;A(d,function(b,x){var w=b.existing,T=b.newOption;if(!T)w&&(w.mergeOption({},this),w.optionUpdated({},!1));else{var C=h==="series",M=Mt.getClass(h,b.keyInfo.subType,!C);if(!M){if(!1)var D,L;return}if(h==="tooltip"){if(_)return;_=!0}if(w&&w.constructor===M)w.name=b.keyInfo.name,w.mergeOption(T,this),w.optionUpdated(T,!1);else{var I=B({componentIndex:x},b.keyInfo);w=new M(T,this,this,I),B(w,I),b.brandNew&&(w.__requireNewView=!0),w.init(T,this,this),w.optionUpdated(null,!0)}}w?(g.push(w.option),y.push(w),m++):(g.push(void 0),y.push(void 0))},this),n[h]=g,i.set(h,y),o.set(h,m),h==="series"&&Rf(this)}this._seriesIndices||Rf(this)},e.prototype.getOption=function(){var t=tt(this.option);return A(t,function(a,n){if(Mt.hasClass(n)){for(var i=Ot(a),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!Ws(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,t[n]=i}}),delete t[uS],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,a){var n=this._componentsMap.get(t);if(n){var i=n[a||0];if(i)return i;if(a==null){for(var o=0;o=e:t==="max"?r<=e:r===e}function pk(r,e){return r.join(",")===e.join(",")}var dk=fk,Br=A,ll=et,yS=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Ep(r){var e=r&&r.itemStyle;if(!!e)for(var t=0,a=yS.length;t=0;g--){var y=r[g];if(s||(p=y.data.rawIndexOf(y.stackedByDimension,c)),p>=0){var m=y.data.getByRawIndex(y.stackResultDimension,p);if(l==="all"||l==="positive"&&m>0||l==="negative"&&m<0||l==="samesign"&&v>=0&&m>0||l==="samesign"&&v<=0&&m<0){v=W2(v,m),d=m;break}}}return a[0]=v,a[1]=d,a})})}var Ef=function(){function r(e){this.data=e.data||(e.sourceFormat===sa?{}:[]),this.sourceFormat=e.sourceFormat||eS,this.seriesLayoutBy=e.seriesLayoutBy||la,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var a=0;ad&&(d=_)}c[0]=p,c[1]=d}},n=function(){return this._data?this._data.length/this._dimSize:0};DS=(e={},e[Ce+"_"+la]={pure:!0,appendData:i},e[Ce+"_"+ko]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[_r]={pure:!0,appendData:i},e[sa]={pure:!0,appendData:function(o){var s=this._data;A(o,function(l,u){for(var f=s[u]||(s[u]=[]),h=0;h<(l||[]).length;h++)f.push(l[h])})}},e[mr]={appendData:i},e[ka]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function i(o){for(var s=0;s=0&&(d=o.interpolatedValue[g])}return d!=null?d+"":""})}},r.prototype.getRawValue=function(e,t){return Oo(this.getData(t),e)},r.prototype.formatTooltip=function(e,t,a){},r}();function NS(r){var e,t;return et(r)?r.type&&(t=r):e=r,{text:e,frag:t}}function hl(r){return new Rk(r)}var Rk=function(){function r(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return r.prototype.perform=function(e){var t=this._upstream,a=e&&e.skip;if(this._dirty&&t){var n=this.context;n.data=n.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!a&&(i=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(i="reset");function f(m){return!(m>=1)&&(m=1),m}var h;(this._dirty||i==="reset")&&(this._dirty=!1,h=this._doReset(a)),this._modBy=l,this._modDataCount=u;var v=e&&e.step;if(t?this._dueEnd=t._outputDueEnd:this._dueEnd=this._count?this._count(this.context):Infinity,this._progress){var c=this._dueIndex,p=Math.min(v!=null?this._dueIndex+v:Infinity,this._dueEnd);if(!a&&(h||c1&&a>0?s:o}};return i;function o(){return e=r?null:le},gte:function(r,e){return r>=e}},Bk=function(){function r(e,t){if(!Tt(t)){var a="";Lt(a)}this._opFn=FS[e],this._rvalFloat=Da(t)}return r.prototype.evaluate=function(e){return Tt(e)?this._opFn(e,this._rvalFloat):this._opFn(Da(e),this._rvalFloat)},r}(),HS=function(){function r(e,t){var a=e==="desc";this._resultLT=a?1:-1,t==null&&(t=a?"min":"max"),this._incomparable=t==="min"?-Infinity:Infinity}return r.prototype.evaluate=function(e,t){var a=Tt(e)?e:Da(e),n=Tt(t)?t:Da(t),i=isNaN(a),o=isNaN(n);if(i&&(a=this._incomparable),o&&(n=this._incomparable),i&&o){var s=U(e),l=U(t);s&&(a=l?e:0),l&&(n=s?t:0)}return an?-this._resultLT:0},r}(),Vk=function(){function r(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=Da(t)}return r.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var a=typeof e;a!==this._rvalTypeof&&(a==="number"||this._rvalTypeof==="number")&&(t=Da(e)===this._rvalFloat)}return this._isEQ?t:!t},r}();function zk(r,e){return r==="eq"||r==="ne"?new Vk(r==="eq",e):Z(FS,r)?new Bk(r,e):null}var Gk=function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(e){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(e){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(e,t){},r.prototype.retrieveValueFromItem=function(e,t){},r.prototype.convertValue=function(e,t){return dn(e,t)},r}();function Fk(r,e){var t=new Gk,a=r.data,n=t.sourceFormat=r.sourceFormat,i=r.startIndex,o="";r.seriesLayoutBy!==la&&Lt(o);var s=[],l={},u=r.dimensionsDefine;if(u)A(u,function(d,g){var y=d.name,m={index:g,name:y,displayName:d.displayName};if(s.push(m),y!=null){var _="";Z(l,y)&&Lt(_),l[y]=m}});else for(var f=0;f65535?qk:jk}function No(){return[Infinity,-Infinity]}function $k(r){var e=r.constructor;return e===Array?r.slice():new e(r)}function XS(r,e,t,a,n){var i=ZS[t||"float"];if(n){var o=r[e],s=o&&o.length;if(s!==a){for(var l=new i(a),u=0;ug[1]&&(g[1]=d)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(e,t,a){for(var n=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=G(o,function(m){return m.property}),f=0;fy[1]&&(y[1]=g)}}!n.persistent&&n.clean&&n.clean(),this._rawCount=this._count=t,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(e,t){if(!(t>=0&&t=0&&t=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,a=t[e];if(a!=null&&ae)i=o-1;else return o}return-1},r.prototype.indicesOfNearest=function(e,t,a){var n=this._chunks,i=n[e],o=[];if(!i)return o;a==null&&(a=Infinity);for(var s=Infinity,l=-1,u=0,f=0,h=this.count();f=0&&l<0)&&(s=p,l=c,u=0),c===l&&(o[u++]=f))}return o.length=u,o},r.prototype.getIndices=function(){var e,t=this._indices;if(t){var a=t.constructor,n=this._count;if(a===Array){e=new a(n);for(var i=0;i=h&&m<=v||isNaN(m))&&(l[u++]=d),d++}p=!0}else if(i===2){for(var g=c[n[0]],_=c[n[1]],S=e[n[1]][0],b=e[n[1]][1],y=0;y=h&&m<=v||isNaN(m))&&(x>=S&&x<=b||isNaN(x))&&(l[u++]=d),d++}p=!0}}if(!p)if(i===1)for(var y=0;y=h&&m<=v||isNaN(m))&&(l[u++]=w)}else for(var y=0;ye[M][1])&&(T=!1)}T&&(l[u++]=t.getRawIndex(y))}return uy[1]&&(y[1]=g)}}}},r.prototype.lttbDownSample=function(e,t){var a=this.clone([e],!0),n=a._chunks,i=n[e],o=this.count(),s=0,l=Math.floor(1/t),u=this.getRawIndex(0),f,h,v,c=new(vl(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));c[s++]=u;for(var p=1;pf&&(f=h,v=S)}D>0&&Df-p&&(l=f-p,s.length=l);for(var d=0;dh[1]&&(h[1]=y),v[c++]=m}return i._count=c,i._indices=v,i._updateGetRawIdx(),i},r.prototype.each=function(e,t){if(!!this._count)for(var a=e.length,n=this._chunks,i=0,o=this.count();il&&(l=h)}return o=[s,l],this._extent[e]=o,o},r.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var a=[],n=this._chunks,i=0;i=0?this._indices[e]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=function(){function e(t,a,n,i){return dn(t[i],this._dimensions[i])}Wp={arrayRows:e,objectRows:function(t,a,n,i){return dn(t[a],this._dimensions[i])},keyedColumns:e,original:function(t,a,n,i){var o=t&&(t.value==null?t:t.value);return dn(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(t,a,n,i){return t[i]}}}(),r}(),Up=Qk,KS=function(){function r(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,t=this._getUpstreamSourceManagers(),a=!!t.length,n,i;if(Of(e)){var o=e,s=void 0,l=void 0,u=void 0;if(a){var f=t[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,i=[f._getVersionSign()]}else s=o.get("data",!0),l=Je(s)?ka:mr,i=[];var h=this._getSourceMetaRawOption()||{},v=u&&u.metaRawOption||{},c=ft(h.seriesLayoutBy,v.seriesLayoutBy)||null,p=ft(h.sourceHeader,v.sourceHeader),d=ft(h.dimensions,v.dimensions),g=c!==v.seriesLayoutBy||!!p!=!!v.sourceHeader||d;n=g?[Np(s,{seriesLayoutBy:c,sourceHeader:p,dimensions:d},l)]:[]}else{var y=e;if(a){var m=this._applyTransform(t);n=m.sourceList,i=m.upstreamSignList}else{var _=y.get("source",!0);n=[Np(_,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(n,i)},r.prototype._applyTransform=function(e){var t=this._sourceHost,a=t.get("transform",!0),n=t.get("fromTransformResult",!0);if(n!=null){var i="";e.length!==1&&jS(i)}var o,s=[],l=[];return A(e,function(u){u.prepareSource();var f=u.getSource(n||0),h="";n!=null&&!f&&jS(h),s.push(f),l.push(u._getVersionSign())}),a?o=Xk(a,s,{datasetIndex:t.componentIndex}):n!=null&&(o=[Ck(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t=0;l--)i[l]&&!Ws(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,t[n]=i}}),delete t[uS],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,a){var n=this._componentsMap.get(t);if(n){var i=n[a||0];if(i)return i;if(a==null){for(var o=0;o=e:t==="max"?r<=e:r===e}function pk(r,e){return r.join(",")===e.join(",")}var dk=fk,Br=A,ll=et,yS=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Ep(r){var e=r&&r.itemStyle;if(!!e)for(var t=0,a=yS.length;t=0;g--){var y=r[g];if(s||(p=y.data.rawIndexOf(y.stackedByDimension,c)),p>=0){var m=y.data.getByRawIndex(y.stackResultDimension,p);if(l==="all"||l==="positive"&&m>0||l==="negative"&&m<0||l==="samesign"&&v>=0&&m>0||l==="samesign"&&v<=0&&m<0){v=W2(v,m),d=m;break}}}return a[0]=v,a[1]=d,a})})}var Ef=function(){function r(e){this.data=e.data||(e.sourceFormat===sa?{}:[]),this.sourceFormat=e.sourceFormat||eS,this.seriesLayoutBy=e.seriesLayoutBy||la,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var a=0;ad&&(d=_)}c[0]=p,c[1]=d}},n=function(){return this._data?this._data.length/this._dimSize:0};DS=(e={},e[Ce+"_"+la]={pure:!0,appendData:i},e[Ce+"_"+Oo]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[_r]={pure:!0,appendData:i},e[sa]={pure:!0,appendData:function(o){var s=this._data;A(o,function(l,u){for(var f=s[u]||(s[u]=[]),h=0;h<(l||[]).length;h++)f.push(l[h])})}},e[mr]={appendData:i},e[Oa]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function i(o){for(var s=0;s=0&&(d=o.interpolatedValue[g])}return d!=null?d+"":""})}},r.prototype.getRawValue=function(e,t){return No(this.getData(t),e)},r.prototype.formatTooltip=function(e,t,a){},r}();function NS(r){var e,t;return et(r)?r.type&&(t=r):e=r,{text:e,frag:t}}function hl(r){return new Rk(r)}var Rk=function(){function r(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return r.prototype.perform=function(e){var t=this._upstream,a=e&&e.skip;if(this._dirty&&t){var n=this.context;n.data=n.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!a&&(i=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(i="reset");function f(m){return!(m>=1)&&(m=1),m}var h;(this._dirty||i==="reset")&&(this._dirty=!1,h=this._doReset(a)),this._modBy=l,this._modDataCount=u;var v=e&&e.step;if(t?this._dueEnd=t._outputDueEnd:this._dueEnd=this._count?this._count(this.context):Infinity,this._progress){var c=this._dueIndex,p=Math.min(v!=null?this._dueIndex+v:Infinity,this._dueEnd);if(!a&&(h||c1&&a>0?s:o}};return i;function o(){return e=r?null:le},gte:function(r,e){return r>=e}},Bk=function(){function r(e,t){if(!Tt(t)){var a="";Lt(a)}this._opFn=FS[e],this._rvalFloat=Da(t)}return r.prototype.evaluate=function(e){return Tt(e)?this._opFn(e,this._rvalFloat):this._opFn(Da(e),this._rvalFloat)},r}(),HS=function(){function r(e,t){var a=e==="desc";this._resultLT=a?1:-1,t==null&&(t=a?"min":"max"),this._incomparable=t==="min"?-Infinity:Infinity}return r.prototype.evaluate=function(e,t){var a=Tt(e)?e:Da(e),n=Tt(t)?t:Da(t),i=isNaN(a),o=isNaN(n);if(i&&(a=this._incomparable),o&&(n=this._incomparable),i&&o){var s=U(e),l=U(t);s&&(a=l?e:0),l&&(n=s?t:0)}return an?-this._resultLT:0},r}(),Vk=function(){function r(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=Da(t)}return r.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var a=typeof e;a!==this._rvalTypeof&&(a==="number"||this._rvalTypeof==="number")&&(t=Da(e)===this._rvalFloat)}return this._isEQ?t:!t},r}();function zk(r,e){return r==="eq"||r==="ne"?new Vk(r==="eq",e):Z(FS,r)?new Bk(r,e):null}var Gk=function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(e){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(e){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(e,t){},r.prototype.retrieveValueFromItem=function(e,t){},r.prototype.convertValue=function(e,t){return dn(e,t)},r}();function Fk(r,e){var t=new Gk,a=r.data,n=t.sourceFormat=r.sourceFormat,i=r.startIndex,o="";r.seriesLayoutBy!==la&&Lt(o);var s=[],l={},u=r.dimensionsDefine;if(u)A(u,function(d,g){var y=d.name,m={index:g,name:y,displayName:d.displayName};if(s.push(m),y!=null){var _="";Z(l,y)&&Lt(_),l[y]=m}});else for(var f=0;f65535?qk:jk}function Bo(){return[Infinity,-Infinity]}function $k(r){var e=r.constructor;return e===Array?r.slice():new e(r)}function XS(r,e,t,a,n){var i=ZS[t||"float"];if(n){var o=r[e],s=o&&o.length;if(s!==a){for(var l=new i(a),u=0;ug[1]&&(g[1]=d)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(e,t,a){for(var n=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=G(o,function(m){return m.property}),f=0;fy[1]&&(y[1]=g)}}!n.persistent&&n.clean&&n.clean(),this._rawCount=this._count=t,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(e,t){if(!(t>=0&&t=0&&t=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,a=t[e];if(a!=null&&ae)i=o-1;else return o}return-1},r.prototype.indicesOfNearest=function(e,t,a){var n=this._chunks,i=n[e],o=[];if(!i)return o;a==null&&(a=Infinity);for(var s=Infinity,l=-1,u=0,f=0,h=this.count();f=0&&l<0)&&(s=p,l=c,u=0),c===l&&(o[u++]=f))}return o.length=u,o},r.prototype.getIndices=function(){var e,t=this._indices;if(t){var a=t.constructor,n=this._count;if(a===Array){e=new a(n);for(var i=0;i=h&&m<=v||isNaN(m))&&(l[u++]=d),d++}p=!0}else if(i===2){for(var g=c[n[0]],_=c[n[1]],S=e[n[1]][0],b=e[n[1]][1],y=0;y=h&&m<=v||isNaN(m))&&(x>=S&&x<=b||isNaN(x))&&(l[u++]=d),d++}p=!0}}if(!p)if(i===1)for(var y=0;y=h&&m<=v||isNaN(m))&&(l[u++]=w)}else for(var y=0;ye[M][1])&&(T=!1)}T&&(l[u++]=t.getRawIndex(y))}return uy[1]&&(y[1]=g)}}}},r.prototype.lttbDownSample=function(e,t){var a=this.clone([e],!0),n=a._chunks,i=n[e],o=this.count(),s=0,l=Math.floor(1/t),u=this.getRawIndex(0),f,h,v,c=new(vl(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));c[s++]=u;for(var p=1;pf&&(f=h,v=S)}D>0&&Df-p&&(l=f-p,s.length=l);for(var d=0;dh[1]&&(h[1]=y),v[c++]=m}return i._count=c,i._indices=v,i._updateGetRawIdx(),i},r.prototype.each=function(e,t){if(!!this._count)for(var a=e.length,n=this._chunks,i=0,o=this.count();il&&(l=h)}return o=[s,l],this._extent[e]=o,o},r.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var a=[],n=this._chunks,i=0;i=0?this._indices[e]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=function(){function e(t,a,n,i){return dn(t[i],this._dimensions[i])}Wp={arrayRows:e,objectRows:function(t,a,n,i){return dn(t[a],this._dimensions[i])},keyedColumns:e,original:function(t,a,n,i){var o=t&&(t.value==null?t:t.value);return dn(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(t,a,n,i){return t[i]}}}(),r}(),Up=Qk,KS=function(){function r(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,t=this._getUpstreamSourceManagers(),a=!!t.length,n,i;if(Of(e)){var o=e,s=void 0,l=void 0,u=void 0;if(a){var f=t[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,i=[f._getVersionSign()]}else s=o.get("data",!0),l=Je(s)?Oa:mr,i=[];var h=this._getSourceMetaRawOption()||{},v=u&&u.metaRawOption||{},c=ft(h.seriesLayoutBy,v.seriesLayoutBy)||null,p=ft(h.sourceHeader,v.sourceHeader),d=ft(h.dimensions,v.dimensions),g=c!==v.seriesLayoutBy||!!p!=!!v.sourceHeader||d;n=g?[Np(s,{seriesLayoutBy:c,sourceHeader:p,dimensions:d},l)]:[]}else{var y=e;if(a){var m=this._applyTransform(t);n=m.sourceList,i=m.upstreamSignList}else{var _=y.get("source",!0);n=[Np(_,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(n,i)},r.prototype._applyTransform=function(e){var t=this._sourceHost,a=t.get("transform",!0),n=t.get("fromTransformResult",!0);if(n!=null){var i="";e.length!==1&&jS(i)}var o,s=[],l=[];return A(e,function(u){u.prepareSource();var f=u.getSource(n||0),h="";n!=null&&!f&&jS(h),s.push(f),l.push(u._getVersionSign())}),a?o=Xk(a,s,{datasetIndex:t.componentIndex}):n!=null&&(o=[Ck(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t1||t>0&&!r.noHeader;return A(r.blocks,function(n){var i=tx(n);i>=e&&(e=i+ +(a&&(!i||Yp(n)&&!n.noHeader)))}),e}return 0}function eO(r,e,t,a){var n=e.noHeader,i=aO(tx(e)),o=[],s=e.blocks||[];Pe(!s||z(s)),s=s||[];var l=r.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Z(u,l)){var f=new HS(u[l],null);s.sort(function(p,d){return f.evaluate(p.sortParam,d.sortParam)})}else l==="seriesDesc"&&s.reverse()}A(s,function(p,d){var g=e.valueFormatter,y=JS(p)(g?B(B({},r),{valueFormatter:g}):r,p,d>0?i.html:0,a);y!=null&&o.push(y)});var h=r.renderMode==="richText"?o.join(i.richText):Zp(o.join(""),n?t:i.html);if(n)return h;var v=Tp(e.header,"ordinal",r.useUTC),c=QS(a,r.renderMode).nameStyle;return r.renderMode==="richText"?rx(r,v,c)+i.richText+h:Zp('
'+Ge(v)+"
"+h,t)}function rO(r,e,t,a){var n=r.renderMode,i=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=r.useUTC,f=e.valueFormatter||r.valueFormatter||function(S){return S=z(S)?S:[S],G(S,function(b,x){return Tp(b,z(c)?c[x]:c,u)})};if(!(i&&o)){var h=s?"":r.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",n),v=i?"":Tp(l,"ordinal",u),c=e.valueType,p=o?[]:f(e.value),d=!s||!i,g=!s&&i,y=QS(a,n),m=y.nameStyle,_=y.valueStyle;return n==="richText"?(s?"":h)+(i?"":rx(r,v,m))+(o?"":oO(r,p,d,g,_)):Zp((s?"":h)+(i?"":nO(v,!s,m))+(o?"":iO(p,d,g,_)),t)}}function ex(r,e,t,a,n,i){if(!!r){var o=JS(r),s={useUTC:n,renderMode:t,orderMode:a,markupStyleCreator:e,valueFormatter:r.valueFormatter};return o(s,r,0,i)}}function aO(r){return{html:Jk[r],richText:tO[r]}}function Zp(r,e){var t='
',a="margin: "+e+"px 0 0";return'
'+r+t+"
"}function nO(r,e,t){var a=e?"margin-left:2px":"";return''+Ge(r)+""}function iO(r,e,t,a){var n=t?"10px":"20px",i=e?"float:right;margin-left:"+n:"";return r=z(r)?r:[r],''+G(r,function(o){return Ge(o)}).join("  ")+""}function rx(r,e,t){return r.markupStyleCreator.wrapRichTextStyle(e,t)}function oO(r,e,t,a,n){var i=[n],o=a?10:20;return t&&i.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(z(e)?e.join(" "):e,i)}function ax(r,e){var t=r.getData().getItemVisual(e,"style"),a=t[r.visualDrawType];return _i(a)}function nx(r,e){var t=r.get("padding");return t!=null?t:e==="richText"?[8,10]:10}var Xp=function(){function r(){this.richTextStyles={},this._nextStyleNameId=p_()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(e,t,a){var n=a==="richText"?this._generateStyleName():null,i=WE({color:t,type:e,renderMode:a,markerId:n});return U(i)?i:(this.richTextStyles[n]=i.style,i.content)},r.prototype.wrapRichTextStyle=function(e,t){var a={};z(t)?A(t,function(i){return B(a,i)}):B(a,t);var n=this._generateStyleName();return this.richTextStyles[n]=a,"{"+n+"|"+e+"}"},r}();function ix(r){var e=r.series,t=r.dataIndex,a=r.multipleSeries,n=e.getData(),i=n.mapDimensionsAll("defaultedTooltip"),o=i.length,s=e.getRawValue(t),l=z(s),u=ax(e,t),f,h,v,c;if(o>1||l&&!o){var p=sO(s,e,t,i,u);f=p.inlineValues,h=p.inlineValueTypes,v=p.blocks,c=p.inlineValues[0]}else if(o){var d=n.getDimensionInfo(i[0]);c=f=Oo(n,t,i[0]),h=d.type}else c=f=l?s[0]:s;var g=Nc(e),y=g&&e.name||"",m=n.getName(t),_=a?y:m;return fe("section",{header:y,noHeader:a||!g,sortParam:c,blocks:[fe("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Rr(_),value:f,valueType:h})].concat(v||[])})}function sO(r,e,t,a,n){var i=e.getData(),o=qr(r,function(h,v,c){var p=i.getDimensionInfo(c);return h=h||p&&p.tooltip!==!1&&p.displayName!=null},!1),s=[],l=[],u=[];a.length?A(a,function(h){f(Oo(i,t,h),h)}):A(r,f);function f(h,v){var c=i.getDimensionInfo(v);!c||c.otherDims.tooltip===!1||(o?u.push(fe("nameValue",{markerType:"subItem",markerColor:n,name:c.displayName,value:h,valueType:c.type})):(s.push(h),l.push(c.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var gn=xt();function Nf(r,e){return r.getName(e)||r.getId(e)}var Bf="__universalTransitionEnabled",Vf=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return e.prototype.init=function(t,a,n){this.seriesIndex=this.componentIndex,this.dataTask=hl({count:uO,reset:fO}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n);var i=gn(this).sourceManager=new KS(this);i.prepareSource();var o=this.getInitialData(t,n);sx(o,this),this.dataTask.context.data=o,gn(this).dataBeforeProcessed=o,ox(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(t,a){var n=il(this),i=n?Po(t):{},o=this.subType;Mt.hasClass(o)&&(o+="Series"),ot(t,a.getTheme().get(this.subType)),ot(t,this.getDefaultOption()),ei(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&pn(t,i,n)},e.prototype.mergeOption=function(t,a){t=ot(this.option,t,!0),this.fillDataTextStyle(t.data);var n=il(this);n&&pn(this.option,t,n);var i=gn(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(t,a);sx(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,gn(this).dataBeforeProcessed=o,ox(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(t){if(t&&!Je(t))for(var a=["show"],n=0;nthis.getShallow("animationThreshold")&&(a=!1),!!a},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,a,n){var i=this.ecModel,o=Ip.prototype.getColorFromPalette.call(this,t,a,n);return o||(o=i.getColorFromPalette(t,a,n)),o},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,a){this._innerSelect(this.getData(a),t)},e.prototype.unselect=function(t,a){var n=this.option.selectedMap;if(!!n){var i=this.option.selectedMode,o=this.getData(a);if(i==="series"||n==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&n.push(o)}return n},e.prototype.isSelected=function(t,a){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(a);return(n==="all"||n[Nf(i,t)])&&!i.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[Bf])return!0;var t=this.option.universalTransition;return t?t===!0?!0:t&&t.enabled:!1},e.prototype._innerSelect=function(t,a){var n,i,o=this.option,s=o.selectedMode,l=a.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){et(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f0&&this._innerSelect(t,a)}},e.registerClass=function(t){return Mt.registerClass(t)},e.protoInitialize=function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),e}(Mt);Jt(Vf,Gp),Jt(Vf,Ip),A_(Vf,Mt);function ox(r){var e=r.name;Nc(r)||(r.name=lO(r)||e)}function lO(r){var e=r.getRawData(),t=e.mapDimensionsAll("seriesName"),a=[];return A(t,function(n){var i=e.getDimensionInfo(n);i.displayName&&a.push(i.displayName)}),a.join(" ")}function uO(r){return r.model.getRawData().count()}function fO(r){var e=r.model;return e.setData(e.getRawData().cloneShallow()),hO}function hO(r,e){e.outputData&&r.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function sx(r,e){A(Du(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(t){r.wrapMethod(t,it(vO,e))})}function vO(r,e){var t=Kp(r);return t&&t.setOutputEnd((e||this).count()),e}function Kp(r){var e=(r.ecModel||{}).scheduler,t=e&&e.getPipeline(r.uid);if(t){var a=t.currentTask;if(a){var n=a.agentStubMap;n&&(a=n.get(r.uid))}return a}}var Wt=Vf,qp=function(){function r(){this.group=new rt,this.uid=Mo("viewComponent")}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,a,n){},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,a,n){},r.prototype.updateLayout=function(e,t,a,n){},r.prototype.updateVisual=function(e,t,a,n){},r.prototype.toggleBlurSeries=function(e,t,a){},r.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},r}();zc(qp),of(qp);var Zt=qp;function Bo(){var r=xt();return function(e){var t=r(e),a=e.pipelineContext,n=!!t.large,i=!!t.progressiveRender,o=t.large=!!(a&&a.large),s=t.progressiveRender=!!(a&&a.progressiveRender);return(n!==o||i!==s)&&"reset"}}var Vo=oa.CMD,cO=[[],[],[]],lx=Math.sqrt,pO=Math.atan2;function ux(r,e){if(!!e){var t=r.data,a=r.len(),n,i,o,s,l,u,f=Vo.M,h=Vo.C,v=Vo.L,c=Vo.R,p=Vo.A,d=Vo.Q;for(o=0,s=0;o1&&(o*=jp(p),s*=jp(p));var d=(n===i?-1:1)*jp((o*o*(s*s)-o*o*(c*c)-s*s*(v*v))/(o*o*(c*c)+s*s*(v*v)))||0,g=d*o*c/s,y=d*-s*v/o,m=(r+t)/2+Gf(h)*g-zf(h)*y,_=(e+a)/2+zf(h)*g+Gf(h)*y,S=hx([1,0],[(v-g)/o,(c-y)/s]),b=[(v-g)/o,(c-y)/s],x=[(-1*v-g)/o,(-1*c-y)/s],w=hx(b,x);if($p(b,x)<=-1&&(w=cl),$p(b,x)>=1&&(w=0),w<0){var T=Math.round(w/cl*1e6)/1e6;w=cl*2+T%2*cl}f.addData(u,m,_,o,s,S,w,h,i)}var dO=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,gO=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function yO(r){var e=new oa;if(!r)return e;var t=0,a=0,n=t,i=a,o,s=oa.CMD,l=r.match(dO);if(!l)return e;for(var u=0;uP*P+R*R&&(T=M,C=D),{cx:T,cy:C,x0:-f,y0:-h,x1:T*(n/b-1),y1:C*(n/b-1)}}function TO(r){var e;if(z(r)){var t=r.length;if(!t)return r;t===1?e=[r[0],r[0],0,0]:t===2?e=[r[0],r[0],r[1],r[1]]:t===3?e=r.concat(r[2]):e=r}else e=[r,r,r,r];return e}function CO(r,e){var t,a=dl(e.r,0),n=dl(e.r0||0,0),i=a>0,o=n>0;if(!(!i&&!o)){if(i||(a=n,n=0),n>a){var s=a;a=n,n=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var f=e.cx,h=e.cy,v=!!e.clockwise,c=Sx(u-l),p=c>td&&c%td;if(p>Vr&&(c=p),!(a>Vr))r.moveTo(f,h);else if(c>td-Vr)r.moveTo(f+a*zo(l),h+a*Ci(l)),r.arc(f,h,a,l,u,!v),n>Vr&&(r.moveTo(f+n*zo(u),h+n*Ci(u)),r.arc(f,h,n,u,l,v));else{var d=void 0,g=void 0,y=void 0,m=void 0,_=void 0,S=void 0,b=void 0,x=void 0,w=void 0,T=void 0,C=void 0,M=void 0,D=void 0,L=void 0,I=void 0,P=void 0,R=a*zo(l),E=a*Ci(l),N=n*zo(u),O=n*Ci(u),V=c>Vr;if(V){var F=e.cornerRadius;F&&(t=TO(F),d=t[0],g=t[1],y=t[2],m=t[3]);var W=Sx(a-n)/2;if(_=fa(W,y),S=fa(W,m),b=fa(W,d),x=fa(W,g),C=w=dl(_,S),M=T=dl(b,x),(w>Vr||T>Vr)&&(D=a*zo(u),L=a*Ci(u),I=n*zo(l),P=n*Ci(l),c<_x)){var X=wO(R,E,I,P,D,L,N,O);if(X){var Q=R-X[0],J=E-X[1],dt=D-X[0],Dt=L-X[1],gt=1/Ci(bO((Q*dt+J*Dt)/(pl(Q*Q+J*J)*pl(dt*dt+Dt*Dt)))/2),at=pl(X[0]*X[0]+X[1]*X[1]);C=fa(w,(a-at)/(gt+1)),M=fa(T,(n-at)/(gt-1))}}}if(!V)r.moveTo(f+R,h+E);else if(C>Vr){var yt=fa(y,C),vt=fa(m,C),j=Ff(I,P,R,E,a,yt,v),ut=Ff(D,L,N,O,a,vt,v);r.moveTo(f+j.cx+j.x0,h+j.cy+j.y0),C0&&r.arc(f+j.cx,h+j.cy,yt,Me(j.y0,j.x0),Me(j.y1,j.x1),!v),r.arc(f,h,a,Me(j.cy+j.y1,j.cx+j.x1),Me(ut.cy+ut.y1,ut.cx+ut.x1),!v),vt>0&&r.arc(f+ut.cx,h+ut.cy,vt,Me(ut.y1,ut.x1),Me(ut.y0,ut.x0),!v))}else r.moveTo(f+R,h+E),r.arc(f,h,a,l,u,!v);if(!(n>Vr)||!V)r.lineTo(f+N,h+O);else if(M>Vr){var yt=fa(d,M),vt=fa(g,M),j=Ff(N,O,D,L,n,-vt,v),ut=Ff(R,E,I,P,n,-yt,v);r.lineTo(f+j.cx+j.x0,h+j.cy+j.y0),M0&&r.arc(f+j.cx,h+j.cy,vt,Me(j.y0,j.x0),Me(j.y1,j.x1),!v),r.arc(f,h,n,Me(j.cy+j.y1,j.cx+j.x1),Me(ut.cy+ut.y1,ut.cx+ut.x1),v),yt>0&&r.arc(f+ut.cx,h+ut.cy,yt,Me(ut.y1,ut.x1),Me(ut.y0,ut.x0),!v))}else r.lineTo(f+N,h+O),r.arc(f,h,n,u,l,v)}r.closePath()}}}var AO=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return r}(),xx=function(r){Ft(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new AO},e.prototype.buildPath=function(t,a){CO(t,a)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(pt);xx.prototype.type="sector";var Ue=xx,MO=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r}(),bx=function(r){Ft(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new MO},e.prototype.buildPath=function(t,a){var n=a.cx,i=a.cy,o=Math.PI*2;t.moveTo(n+a.r,i),t.arc(n,i,a.r,0,o,!1),t.moveTo(n+a.r0,i),t.arc(n,i,a.r0,0,o,!0)},e}(pt);bx.prototype.type="ring";var Hf=bx;function DO(r,e,t,a){var n=[],i=[],o=[],s=[],l,u,f,h;if(a){f=[Infinity,Infinity],h=[-Infinity,-Infinity];for(var v=0,c=r.length;v=2){if(a){var i=DO(n,a,t,e.smoothConstraint);r.moveTo(n[0][0],n[0][1]);for(var o=n.length,s=0;s<(t?o:o-1);s++){var l=i[s*2],u=i[s*2+1],f=n[(s+1)%o];r.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{r.moveTo(n[0][0],n[0][1]);for(var s=1,h=n.length;sMi[1]){if(s=!1,i)return s;var f=Math.abs(Mi[0]-Ai[1]),h=Math.abs(Ai[0]-Mi[1]);Math.min(f,h)>n.len()&&(fMath.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function Nx(r){return!r.isGroup}function XO(r){return r.shape!=null}function yl(r,e,t){if(!r||!e)return;function a(o){var s={};return o.traverse(function(l){Nx(l)&&l.anid&&(s[l.anid]=l)}),s}function n(o){var s={x:o.x,y:o.y,rotation:o.rotation};return XO(o)&&(s.shape=B({},o.shape)),s}var i=a(r);e.traverse(function(o){if(Nx(o)&&o.anid){var s=i[o.anid];if(s){var l=n(o);o.attr(n(s)),At(o,l,t,nt(o).dataIndex)}}})}function Bx(r,e){return G(r,function(t){var a=t[0];a=Xf(a,e.x),a=Kf(a,e.x+e.width);var n=t[1];return n=Xf(n,e.y),n=Kf(n,e.y+e.height),[a,n]})}function KO(r,e){var t=Xf(r.x,e.x),a=Kf(r.x+r.width,e.x+e.width),n=Xf(r.y,e.y),i=Kf(r.y+r.height,e.y+e.height);if(a>=t&&i>=n)return{x:t,y:n,width:a-t,height:i-n}}function ml(r,e,t){var a=B({rectHover:!0},e),n=a.style={strokeNoScale:!0};if(t=t||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(n.image=r.slice(8),K(n,t),new _e(a)):qf(r.replace("path://",""),a,t,"center")}function _l(r,e,t,a,n){for(var i=0,o=n[n.length-1];i1)return!1;var g=id(c,p,f,h)/v;return!(g<0||g>1)}function id(r,e,t,a){return r*a-t*e}function qO(r){return r<=1e-6&&r>=-1e-6}function Fo(r){var e=r.itemTooltipOption,t=r.componentModel,a=r.itemName,n=U(e)?{formatter:e}:e,i=t.mainType,o=t.componentIndex,s={componentType:i,name:a,$vars:["name"]};s[i+"Index"]=o;var l=r.formatterParamsExtra;l&&A(St(l),function(f){Z(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=nt(r.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:a,option:K({content:a,formatterParams:s},n)}}function zx(r,e){var t;r.isGroup&&(t=e(r)),t||r.traverse(e)}function yn(r,e){if(r)if(z(r))for(var t=0;t=0?h():o=setTimeout(h,-s),n=a};return v.clear=function(){o&&(clearTimeout(o),o=null)},v.debounceNextCall=function(c){f=c},v}function Ho(r,e,t,a){var n=r[e];if(!!n){var i=n[Qf]||n,o=n[Ux],s=n[Wx];if(s!==t||o!==a){if(t==null||!a)return r[e]=i;n=r[e]=sd(i,t,a==="debounce"),n[Qf]=i,n[Ux]=a,n[Wx]=t}return n}}function Sl(r,e){var t=r[e];t&&t[Qf]&&(t.clear&&t.clear(),r[e]=t[Qf])}var Yx=xt(),Zx={itemStyle:ni(E1,!0),lineStyle:ni(R1,!0)},tN={lineStyle:"stroke",itemStyle:"fill"};function Xx(r,e){var t=r.visualStyleMapper||Zx[e];return t||(console.warn("Unknown style type '"+e+"'."),Zx.itemStyle)}function Kx(r,e){var t=r.visualDrawType||tN[e];return t||(console.warn("Unknown style type '"+e+"'."),"fill")}var eN={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=r.getModel(a),i=Xx(r,a),o=i(n),s=n.getShallow("decal");s&&(t.setVisual("decal",s),s.dirty=!0);var l=Kx(r,a),u=o[l],f=$(u)?u:null,h=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||h){var v=r.getColorFromPalette(r.name,null,e.getSeriesCount());o[l]||(o[l]=v,t.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||$(o.fill)?v:o.fill,o.stroke=o.stroke==="auto"||$(o.stroke)?v:o.stroke}if(t.setVisual("style",o),t.setVisual("drawType",l),!e.isSeriesFiltered(r)&&f)return t.setVisual("colorFromPalette",!1),{dataEach:function(c,p){var d=r.getDataParams(p),g=B({},o);g[l]=f(d),c.setItemVisual(p,"style",g)}}}},xl=new Vt,rN={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){if(!(r.ignoreStyleOnData||e.isSeriesFiltered(r))){var t=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=Xx(r,a),i=t.getVisual("drawType");return{dataEach:t.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[a]){xl.option=l[a];var u=n(xl),f=o.ensureUniqueItemVisual(s,"style");B(f,u),xl.option.decal&&(o.setItemVisual(s,"decal",xl.option.decal),xl.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},aN={performRawSeries:!0,overallReset:function(r){var e=q();r.eachSeries(function(t){var a=t.getColorBy();if(!t.isColorBySeries()){var n=t.type+"-"+a,i=e.get(n);i||(i={},e.set(n,i)),Yx(t).scope=i}}),r.eachSeries(function(t){if(!(t.isColorBySeries()||r.isSeriesFiltered(t))){var a=t.getRawData(),n={},i=t.getData(),o=Yx(t).scope,s=t.visualStyleAccessPath||"itemStyle",l=Kx(t,s);i.each(function(u){var f=i.getRawIndex(u);n[f]=u}),a.each(function(u){var f=n[u],h=i.getItemVisual(f,"colorFromPalette");if(h){var v=i.ensureUniqueItemVisual(f,"style"),c=a.getName(u)||u+"",p=a.count();v[l]=t.getColorFromPalette(c,o,p)}})}})}},Jf=Math.PI;function nN(r,e){e=e||{},K(e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var t=new rt,a=new bt({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});t.add(a);var n=new Ct({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),i=new bt({style:{fill:"none"},textContent:n,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});t.add(i);var o;return e.showSpinner&&(o=new ed({shape:{startAngle:-Jf/2,endAngle:-Jf/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Jf*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Jf*3/2}).delay(300).start("circularInOut"),t.add(o)),t.resize=function(){var s=n.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(r.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),f=r.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:f}),i.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),a.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},t.resize(),t}var iN=function(){function r(e,t,a,n){this._stageTaskMap=q(),this.ecInstance=e,this.api=t,a=this._dataProcessorHandlers=a.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=a.concat(n)}return r.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(a){var n=a.overallTask;n&&n.dirty()})},r.prototype.getPerformArgs=function(e,t){if(!!e.__pipeline){var a=this._pipelineMap.get(e.__pipeline.id),n=a.context,i=!t&&a.progressiveEnabled&&(!n||n.progressiveRender)&&e.__idxInPipeline>a.blockIndex,o=i?a.step:null,s=n&&n.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},r.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},r.prototype.updateStreamModes=function(e,t){var a=this._pipelineMap.get(e.uid),n=e.getData(),i=n.count(),o=a.progressiveEnabled&&t.incrementalPrepareRender&&i>=a.threshold,s=e.get("large")&&i>=e.get("largeThreshold"),l=e.get("progressiveChunkMode")==="mod"?i:null;e.pipelineContext=a.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(e){var t=this,a=t._pipelineMap=q();e.eachSeries(function(n){var i=n.getProgressive(),o=n.uid;a.set(o,{id:o,head:null,tail:null,threshold:n.getProgressiveThreshold(),progressiveEnabled:i&&!(n.preventIncremental&&n.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),t._pipe(n,n.dataTask)})},r.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),a=this.api;A(this._allHandlers,function(n){var i=e.get(n.uid)||e.set(n.uid,{}),o="";Pe(!(n.reset&&n.overallReset),o),n.reset&&this._createSeriesStageTask(n,i,t,a),n.overallReset&&this._createOverallStageTask(n,i,t,a)},this)},r.prototype.prepareView=function(e,t,a,n){var i=e.renderTask,o=i.context;o.model=t,o.ecModel=a,o.api=n,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},r.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},r.prototype.performVisualTasks=function(e,t,a){this._performStageTasks(this._visualHandlers,e,t,a)},r.prototype._performStageTasks=function(e,t,a,n){n=n||{};var i=!1,o=this;A(e,function(l,u){if(!(n.visualType&&n.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),h=f.seriesTaskMap,v=f.overallTask;if(v){var c,p=v.agentStubMap;p.each(function(g){s(n,g)&&(g.dirty(),c=!0)}),c&&v.dirty(),o.updatePayload(v,a);var d=o.getPerformArgs(v,n.block);p.each(function(g){g.perform(d)}),v.perform(d)&&(i=!0)}else h&&h.each(function(g,y){s(n,g)&&g.dirty();var m=o.getPerformArgs(g,n.block);m.skip=!l.performRawSeries&&t.isSeriesFiltered(g.context.model),o.updatePayload(g,a),g.perform(m)&&(i=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},r.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(a){t=a.dataTask.perform()||t}),this.unfinished=t||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},r.prototype.updatePayload=function(e,t){t!=="remain"&&(e.context.payload=t)},r.prototype._createSeriesStageTask=function(e,t,a,n){var i=this,o=t.seriesTaskMap,s=t.seriesTaskMap=q(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?a.eachRawSeries(f):l?a.eachRawSeriesByType(l,f):u&&u(a,n).each(f);function f(h){var v=h.uid,c=s.set(v,o&&o.get(v)||hl({plan:fN,reset:hN,count:cN}));c.context={model:h,ecModel:a,api:n,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(h,c)}},r.prototype._createOverallStageTask=function(e,t,a,n){var i=this,o=t.overallTask=t.overallTask||hl({reset:oN});o.context={ecModel:a,api:n,overallReset:e.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=q(),u=e.seriesType,f=e.getTargetSeries,h=!0,v=!1,c="";Pe(!e.createOnAllSeries,c),u?a.eachRawSeriesByType(u,p):f?f(a,n).each(p):(h=!1,A(a.getSeries(),p));function p(d){var g=d.uid,y=l.set(g,s&&s.get(g)||(v=!0,hl({reset:sN,onDirty:uN})));y.context={model:d,overallProgress:h},y.agent=o,y.__block=h,i._pipe(d,y)}v&&o.dirty()},r.prototype._pipe=function(e,t){var a=e.uid,n=this._pipelineMap.get(a);!n.head&&(n.head=t),n.tail&&n.tail.pipe(t),n.tail=t,t.__idxInPipeline=n.count++,t.__pipeline=n},r.wrapStageHandler=function(e,t){return $(e)&&(e={overallReset:e,seriesType:pN(e)}),e.uid=Mo("stageHandler"),t&&(e.visualType=t),e},r}();function oN(r){r.overallReset(r.ecModel,r.api,r.payload)}function sN(r){return r.overallProgress&&lN}function lN(){this.agent.dirty(),this.getDownstream().dirty()}function uN(){this.agent&&this.agent.dirty()}function fN(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function hN(r){r.useClearVisual&&r.data.clearAllVisual();var e=r.resetDefines=Ot(r.reset(r.model,r.ecModel,r.api,r.payload));return e.length>1?G(e,function(t,a){return qx(a)}):vN}var vN=qx(0);function qx(r){return function(e,t){var a=t.data,n=t.resetDefines[r];if(n&&n.dataEach)for(var i=e.start;i0&&c===u.length-v.length){var p=u.slice(0,c);p!=="data"&&(t.mainType=p,t[v.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(a[u]=l,f=!0),f||(n[u]=l)})}return{cptQuery:t,dataQuery:a,otherQuery:n}},r.prototype.filter=function(e,t){var a=this.eventInfo;if(!a)return!0;var n=a.targetEl,i=a.packedEvent,o=a.model,s=a.view;if(!o||!s)return!0;var l=t.cptQuery,u=t.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,i,"name")&&f(u,i,"dataIndex")&&f(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,t.otherQuery,n,i));function f(h,v,c,p){return h[c]==null||v[p||c]===h[c]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),ld=["symbol","symbolSize","symbolRotate","symbolOffset"],ab=ld.concat(["symbolKeepAspect"]),mN={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData();if(r.legendIcon&&t.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var a={},n={},i=!1,o=0;o=0&&Ii(l)?l:.5;var u=r.createRadialGradient(o,s,0,o,s,l);return u}function fd(r,e,t){for(var a=e.type==="radial"?kN(r,e,t):EN(r,e,t),n=e.colorStops,i=0;i0)?null:r==="dashed"?[4*e,2*e]:r==="dotted"?[e]:Tt(r)?[r]:z(r)?r:null}function hd(r){var e=r.style,t=e.lineDash&&e.lineWidth>0&&NN(e.lineDash,e.lineWidth),a=e.lineDashOffset;if(t){var n=e.strokeNoScale&&r.getLineScale?r.getLineScale():1;n&&n!==1&&(t=G(t,function(i){return i/n}),a/=n)}return[t,a]}var BN=new oa(!0);function nh(r){var e=r.stroke;return!(e==null||e==="none"||!(r.lineWidth>0))}function ob(r){return typeof r=="string"&&r!=="none"}function ih(r){var e=r.fill;return e!=null&&e!=="none"}function sb(r,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var t=r.globalAlpha;r.globalAlpha=e.fillOpacity*e.opacity,r.fill(),r.globalAlpha=t}else r.fill()}function lb(r,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var t=r.globalAlpha;r.globalAlpha=e.strokeOpacity*e.opacity,r.stroke(),r.globalAlpha=t}else r.stroke()}function vd(r,e,t){var a=Fc(e.image,e.__image,t);if(sf(a)){var n=r.createPattern(a,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&n&&n.setTransform){var i=new DOMMatrix;i.translateSelf(e.x||0,e.y||0),i.rotateSelf(0,0,(e.rotation||0)*Iu),i.scaleSelf(e.scaleX||1,e.scaleY||1),n.setTransform(i)}return n}}function VN(r,e,t,a){var n,i=nh(t),o=ih(t),s=t.strokePercent,l=s<1,u=!e.path;(!e.silent||l)&&u&&e.createPathProxy();var f=e.path||BN,h=e.__dirty;if(!a){var v=t.fill,c=t.stroke,p=o&&!!v.colorStops,d=i&&!!c.colorStops,g=o&&!!v.image,y=i&&!!c.image,m=void 0,_=void 0,S=void 0,b=void 0,x=void 0;(p||d)&&(x=e.getBoundingRect()),p&&(m=h?fd(r,v,x):e.__canvasFillGradient,e.__canvasFillGradient=m),d&&(_=h?fd(r,c,x):e.__canvasStrokeGradient,e.__canvasStrokeGradient=_),g&&(S=h||!e.__canvasFillPattern?vd(r,v,e):e.__canvasFillPattern,e.__canvasFillPattern=S),y&&(b=h||!e.__canvasStrokePattern?vd(r,c,e):e.__canvasStrokePattern,e.__canvasStrokePattern=S),p?r.fillStyle=m:g&&(S?r.fillStyle=S:o=!1),d?r.strokeStyle=_:y&&(b?r.strokeStyle=b:i=!1)}var w=e.getGlobalScale();f.setScale(w[0],w[1],e.segmentIgnoreThreshold);var T,C;r.setLineDash&&t.lineDash&&(n=hd(e),T=n[0],C=n[1]);var M=!0;(u||h&vo)&&(f.setDPR(r.dpr),l?f.setContext(null):(f.setContext(r),M=!1),f.reset(),e.buildPath(f,e.shape,a),f.toStatic(),e.pathUpdated()),M&&f.rebuildPath(r,l?s:1),T&&(r.setLineDash(T),r.lineDashOffset=C),a||(t.strokeFirst?(i&&lb(r,t),o&&sb(r,t)):(o&&sb(r,t),i&&lb(r,t))),T&&r.setLineDash([])}function zN(r,e,t){var a=e.__image=Fc(t.image,e.__image,e,e.onload);if(!(!a||!sf(a))){var n=t.x||0,i=t.y||0,o=e.getWidth(),s=e.getHeight(),l=a.width/a.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=a.width,s=a.height),t.sWidth&&t.sHeight){var u=t.sx||0,f=t.sy||0;r.drawImage(a,u,f,t.sWidth,t.sHeight,n,i,o,s)}else if(t.sx&&t.sy){var u=t.sx,f=t.sy,h=o-u,v=s-f;r.drawImage(a,u,f,h,v,n,i,o,s)}else r.drawImage(a,n,i,o,s)}}function GN(r,e,t){var a,n=t.text;if(n!=null&&(n+=""),n){r.font=t.font||Ie,r.textAlign=t.textAlign,r.textBaseline=t.textBaseline;var i=void 0,o=void 0;r.setLineDash&&t.lineDash&&(a=hd(e),i=a[0],o=a[1]),i&&(r.setLineDash(i),r.lineDashOffset=o),t.strokeFirst?(nh(t)&&r.strokeText(n,t.x,t.y),ih(t)&&r.fillText(n,t.x,t.y)):(ih(t)&&r.fillText(n,t.x,t.y),nh(t)&&r.strokeText(n,t.x,t.y)),i&&r.setLineDash([])}}var ub=["shadowBlur","shadowOffsetX","shadowOffsetY"],fb=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function hb(r,e,t,a,n){var i=!1;if(!a&&(t=t||{},e===t))return!1;if(a||e.opacity!==t.opacity){Ke(r,n),i=!0;var o=Math.max(Math.min(e.opacity,1),0);r.globalAlpha=isNaN(o)?ii.opacity:o}(a||e.blend!==t.blend)&&(i||(Ke(r,n),i=!0),r.globalCompositeOperation=e.blend||ii.blend);for(var s=0;s0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,a,n){if(!this[De]){if(this._disposed){rr(this.id);return}var i,o,s;if(et(a)&&(n=a.lazyUpdate,i=a.silent,o=a.replaceMerge,s=a.transition,a=a.notMerge),this[De]=!0,!this._model||a){var l=new dk(this._api),u=this._theme,f=this._model=new dS;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(t,{replaceMerge:o},Td);var h={seriesTransition:s,optionChanged:!0};if(n)this[qe]={silent:i,updateParams:h},this[De]=!1,this.getZr().wakeUp();else{try{Xo(this),mn.update.call(this,null,h)}catch(v){throw this[qe]=null,this[De]=!1,v}this._ssr||this._zr.flush(),this[qe]=null,this[De]=!1,Al.call(this,i),Ml.call(this,i)}}},e.prototype.setTheme=function(){zS("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||_t.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var a=this._zr.painter;return a.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var a=this._zr.painter;return a.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(!!_t.svgSupported){var t=this._zr,a=t.storage.getDisplayList();return A(a,function(n){n.stopAnimation(null,!0)}),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(this._disposed){rr(this.id);return}t=t||{};var a=t.excludeComponents,n=this._model,i=[],o=this;A(a,function(l){n.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(i.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return A(i,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(t){if(this._disposed){rr(this.id);return}var a=t.type==="svg",n=this.group,i=Math.min,o=Math.max,s=Infinity;if(vh[n]){var l=s,u=s,f=-s,h=-s,v=[],c=t&&t.pixelRatio||this.getDevicePixelRatio();A(Ri,function(_,S){if(_.group===n){var b=a?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(tt(t)),x=_.getDom().getBoundingClientRect();l=i(x.left,l),u=i(x.top,u),f=o(x.right,f),h=o(x.bottom,h),v.push({dom:b,left:x.left,top:x.top})}}),l*=c,u*=c,f*=c,h*=c;var p=f-l,d=h-u,g=jt.createCanvas(),y=n_(g,{renderer:a?"svg":"canvas"});if(y.resize({width:p,height:d}),a){var m="";return A(v,function(_){var S=_.left-l,b=_.top-u;m+=''+_.dom+""}),y.painter.getSvgRoot().innerHTML=m,t.connectedBackgroundColor&&y.painter.setBackgroundColor(t.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return t.connectedBackgroundColor&&y.add(new bt({shape:{x:0,y:0,width:p,height:d},style:{fill:t.connectedBackgroundColor}})),A(v,function(_){var S=new _e({style:{x:_.left*c-l,y:_.top*c-u,image:_.dom}});y.add(S)}),y.refreshImmediately(),g.toDataURL("image/"+(t&&t.type||"png"))}else return this.getDataURL(t)},e.prototype.convertToPixel=function(t,a){return md(this,"convertToPixel",t,a)},e.prototype.convertFromPixel=function(t,a){return md(this,"convertFromPixel",t,a)},e.prototype.containPixel=function(t,a){if(this._disposed){rr(this.id);return}var n=this._model,i,o=Us(n,t);return A(o,function(s,l){l.indexOf("Models")>=0&&A(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)i=i||!!f.containPoint(a);else if(l==="seriesModels"){var h=this._chartsMap[u.__viewId];h&&h.containPoint&&(i=i||h.containPoint(a,u))}},this)},this),!!i},e.prototype.getVisual=function(t,a){var n=this._model,i=Us(n,t,{defaultMainType:"series"}),o=i.seriesModel,s=o.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return l!=null?ud(s,l,a):wl(s,a)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;A(vB,function(a){var n=function(i){var o=t.getModel(),s=i.target,l,u=a==="globalout";if(u?l={}:s&&Li(s,function(p){var d=nt(p);if(d&&d.dataIndex!=null){var g=d.dataModel||o.getSeriesByIndex(d.seriesIndex);return l=g&&g.getDataParams(d.dataIndex,d.dataType)||{},!0}else if(d.eventData)return l=B({},d.eventData),!0},!0),l){var f=l.componentType,h=l.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",h=l.seriesIndex);var v=f&&h!=null&&o.getComponent(f,h),c=v&&t[v.mainType==="series"?"_chartsMap":"_componentsMap"][v.__viewId];l.event=i,l.type=a,t._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:v,view:c},t.trigger(a,l)}};n.zrEventfulCallAtLast=!0,t._zr.on(a,n,t)}),A(Dl,function(a,n){t._messageCenter.on(n,function(i){this.trigger(n,i)},t)}),A(["selectchanged"],function(a){t._messageCenter.on(a,function(n){this.trigger(a,n)},t)}),SN(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){rr(this.id);return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){rr(this.id);return}this._disposed=!0;var t=this.getDom();t&&w_(this.getDom(),Ad,"");var a=this,n=a._api,i=a._model;A(a._componentsViews,function(o){o.dispose(i,n)}),A(a._chartsViews,function(o){o.dispose(i,n)}),a._zr.dispose(),a._dom=a._model=a._chartsMap=a._componentsMap=a._chartsViews=a._componentsViews=a._scheduler=a._api=a._zr=a._throttledZrFlush=a._theme=a._coordSysMgr=a._messageCenter=null,delete Ri[a.id]},e.prototype.resize=function(t){if(!this[De]){if(this._disposed){rr(this.id);return}this._zr.resize(t);var a=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!a){var n=a.resetOption("media"),i=t&&t.silent;this[qe]&&(i==null&&(i=this[qe].silent),n=!0,this[qe]=null),this[De]=!0;try{n&&Xo(this),mn.update.call(this,{type:"resize",animation:B({duration:0},t&&t.animation)})}catch(o){throw this[De]=!1,o}this[De]=!1,Al.call(this,i),Ml.call(this,i)}}},e.prototype.showLoading=function(t,a){if(this._disposed){rr(this.id);return}if(et(t)&&(a=t,t=""),t=t||"default",this.hideLoading(),!!Cd[t]){var n=Cd[t](this._api,a),i=this._zr;this._loadingFX=n,i.add(n)}},e.prototype.hideLoading=function(){if(this._disposed){rr(this.id);return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(t){var a=B({},t);return a.type=Dl[t.type],a},e.prototype.dispatchAction=function(t,a){if(this._disposed){rr(this.id);return}if(et(a)||(a={silent:!!a}),!!fh[t.type]&&!!this._model){if(this[De]){this._pendingActions.push(t);return}var n=a.silent;Sd.call(this,t,n);var i=a.flush;i?this._zr.flush():i!==!1&&_t.browser.weChat&&this._throttledZrFlush(),Al.call(this,n),Ml.call(this,n)}},e.prototype.updateLabelLayout=function(){Fr.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed){rr(this.id);return}var a=t.seriesIndex,n=this.getModel(),i=n.getSeriesByIndex(a);i.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=function(){Xo=function(h){var v=h._scheduler;v.restorePipelines(h._model),v.prepareStageTasks(),yd(h,!0),yd(h,!1),v.plan()},yd=function(h,v){for(var c=h._model,p=h._scheduler,d=v?h._componentsViews:h._chartsViews,g=v?h._componentsMap:h._chartsMap,y=h._zr,m=h._api,_=0;_v.get("hoverLayerThreshold")&&!_t.node&&!_t.worker&&v.eachSeries(function(g){if(!g.preventUsingHoverLayer){var y=h._chartsMap[g.__viewId];y.__alive&&y.eachRendered(function(m){m.states.emphasis&&(m.states.emphasis.hoverLayer=!0)})}})}function o(h,v){var c=h.get("blendMode")||null;v.eachRendered(function(p){p.isGroup||(p.style.blend=c)})}function s(h,v){if(!h.preventAutoZ){var c=h.get("z")||0,p=h.get("zlevel")||0;v.eachRendered(function(d){return l(d,c,p,-Infinity),!0})}}function l(h,v,c,p){var d=h.getTextContent(),g=h.getTextGuideLine(),y=h.isGroup;if(y)for(var m=h.childrenRef(),_=0;_0?{duration:d,delay:c.get("delay"),easing:c.get("easing")}:null;v.eachRendered(function(y){if(y.states&&y.states.emphasis){if(Co(y))return;if(y instanceof pt&&SE(y),y.__dirty){var m=y.prevStates;m&&y.useStates(m)}if(p){y.stateTransition=g;var _=y.getTextContent(),S=y.getTextGuideLine();_&&(_.stateTransition=g),S&&(S.stateTransition=g)}y.__dirty&&n(y)}})}Vb=function(h){return new(function(v){k(c,v);function c(){return v!==null&&v.apply(this,arguments)||this}return c.prototype.getCoordinateSystems=function(){return h._coordSysMgr.getCoordinateSystems()},c.prototype.getComponentByElement=function(p){for(;p;){var d=p.__ecComponentInfo;if(d!=null)return h._model.getComponent(d.mainType,d.index);p=p.parent}},c.prototype.enterEmphasis=function(p,d){Ra(p,d),br(h)},c.prototype.leaveEmphasis=function(p,d){Ea(p,d),br(h)},c.prototype.enterBlur=function(p){p1(p),br(h)},c.prototype.leaveBlur=function(p){sp(p),br(h)},c.prototype.enterSelect=function(p){d1(p),br(h)},c.prototype.leaveSelect=function(p){g1(p),br(h)},c.prototype.getModel=function(){return h.getModel()},c.prototype.getViewOfComponentModel=function(p){return h.getViewOfComponentModel(p)},c.prototype.getViewOfSeriesModel=function(p){return h.getViewOfSeriesModel(p)},c}(gS))(h)},zb=function(h){function v(c,p){for(var d=0;d=0)){Zb.push(t);var i=Qx.wrapStageHandler(t,n);i.__prio=e,i.__raw=t,r.push(i)}}function Xb(r,e){Cd[r]=e}function Rq(r){setPlatformAPI({createCanvas:r})}function SB(r,e,t){var a=$N("registerMap");a&&a(r,e,t)}function Eq(r){var e=getImpl("getMap");return e&&e(r)}var xB=Zk;Ei(pd,eN),Ei(oh,rN),Ei(oh,aN),Ei(pd,mN),Ei(oh,_N),Ei(Mb,KN),Ub(wS),Yb(tB,wk),Xb("default",nN),ha({type:ci,event:ci,update:ci},$t),ha({type:df,event:df,update:df},$t),ha({type:$s,event:$s,update:$s},$t),ha({type:gf,event:gf,update:gf},$t),ha({type:Qs,event:Qs,update:Qs},$t),Wb("light",dN),Wb("dark",gN);var kq={},Kb=[],bB={registerPreprocessor:Ub,registerProcessor:Yb,registerPostInit:gB,registerPostUpdate:yB,registerUpdateLifecycle:Md,registerAction:ha,registerCoordinateSystem:mB,registerLayout:_B,registerVisual:Ei,registerTransform:xB,registerLoading:Xb,registerMap:SB,registerImpl:jN,PRIORITY:uB,ComponentModel:Mt,ComponentView:Zt,SeriesModel:Wt,ChartView:zt,registerComponentModel:function(r){Mt.registerClass(r)},registerComponentView:function(r){Zt.registerClass(r)},registerSeriesModel:function(r){Wt.registerClass(r)},registerChartView:function(r){zt.registerClass(r)},registerSubTypeDefaulter:function(r,e){Mt.registerSubTypeDefaulter(r,e)},registerPainter:function(r,e){G2(r,e)}};function ct(r){if(z(r)){A(r,function(e){ct(e)});return}st(Kb,r)>=0||(Kb.push(r),$(r)&&(r={install:r}),r.install(bB))}var Ll=Math.PI*2,ki=oa.CMD,wB=["top","right","bottom","left"];function TB(r,e,t,a,n){var i=t.width,o=t.height;switch(r){case"top":a.set(t.x+i/2,t.y-e),n.set(0,-1);break;case"bottom":a.set(t.x+i/2,t.y+o+e),n.set(0,1);break;case"left":a.set(t.x-e,t.y+o/2),n.set(-1,0);break;case"right":a.set(t.x+i+e,t.y+o/2),n.set(1,0);break}}function CB(r,e,t,a,n,i,o,s,l){o-=r,s-=e;var u=Math.sqrt(o*o+s*s);o/=u,s/=u;var f=o*t+r,h=s*t+e;if(Math.abs(a-n)%Ll<1e-4)return l[0]=f,l[1]=h,u-t;if(i){var v=a;a=fn(n),n=fn(v)}else a=fn(a),n=fn(n);a>n&&(n+=Ll);var c=Math.atan2(s,o);if(c<0&&(c+=Ll),c>=a&&c<=n||c+Ll>=a&&c+Ll<=n)return l[0]=f,l[1]=h,u-t;var p=t*Math.cos(a)+r,d=t*Math.sin(a)+e,g=t*Math.cos(n)+r,y=t*Math.sin(n)+e,m=(p-o)*(p-o)+(d-s)*(d-s),_=(g-o)*(g-o)+(y-s)*(y-s);return m<_?(l[0]=p,l[1]=d,Math.sqrt(m)):(l[0]=g,l[1]=y,Math.sqrt(_))}function ch(r,e,t,a,n,i,o,s){var l=n-r,u=i-e,f=t-r,h=a-e,v=Math.sqrt(f*f+h*h);f/=v,h/=v;var c=l*f+u*h,p=c/v;s&&(p=Math.min(Math.max(p,0),1)),p*=v;var d=o[0]=r+p*f,g=o[1]=e+p*h;return Math.sqrt((d-n)*(d-n)+(g-i)*(g-i))}function qb(r,e,t,a,n,i,o){t<0&&(r=r+t,t=-t),a<0&&(e=e+a,a=-a);var s=r+t,l=e+a,u=o[0]=Math.min(Math.max(n,r),s),f=o[1]=Math.min(Math.max(i,e),l);return Math.sqrt((u-n)*(u-n)+(f-i)*(f-i))}var Hr=[];function AB(r,e,t){var a=qb(e.x,e.y,e.width,e.height,r.x,r.y,Hr);return t.set(Hr[0],Hr[1]),a}function MB(r,e,t){for(var a=0,n=0,i=0,o=0,s,l,u=Infinity,f=e.data,h=r.x,v=r.y,c=0;c0){e=e/180*Math.PI,Wr.fromArray(r[0]),Gt.fromArray(r[1]),Qt.fromArray(r[2]),lt.sub(va,Wr,Gt),lt.sub(ca,Qt,Gt);var t=va.len(),a=ca.len();if(!(t<.001||a<.001)){va.scale(1/t),ca.scale(1/a);var n=va.dot(ca),i=Math.cos(e);if(i1&<.copy(Ne,Qt),Ne.toArray(r[1])}}}}function DB(r,e,t){if(t<=180&&t>0){t=t/180*Math.PI,Wr.fromArray(r[0]),Gt.fromArray(r[1]),Qt.fromArray(r[2]),lt.sub(va,Gt,Wr),lt.sub(ca,Qt,Gt);var a=va.len(),n=ca.len();if(!(a<.001||n<.001)){va.scale(1/a),ca.scale(1/n);var i=va.dot(e),o=Math.cos(t);if(i=l)lt.copy(Ne,Qt);else{Ne.scaleAndAdd(ca,s/Math.tan(Math.PI/2-f));var h=Qt.x!==Gt.x?(Ne.x-Gt.x)/(Qt.x-Gt.x):(Ne.y-Gt.y)/(Qt.y-Gt.y);if(isNaN(h))return;h<0?lt.copy(Ne,Gt):h>1&<.copy(Ne,Qt)}Ne.toArray(r[1])}}}}function Qb(r,e,t,a){var n=t==="normal",i=n?r:r.ensureState(t);i.ignore=e;var o=a.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=a.getModel("lineStyle").getLineStyle();n?r.useStyle(s):i.style=s}function LB(r,e){var t=e.smooth,a=e.points;if(!!a)if(r.moveTo(a[0][0],a[0][1]),t>0&&a.length>=3){var n=Qa(a[0],a[1]),i=Qa(a[1],a[2]);if(!n||!i){r.lineTo(a[1][0],a[1][1]),r.lineTo(a[2][0],a[2][1]);return}var o=Math.min(n,i)*t,s=Eu([],a[1],a[0],o/n),l=Eu([],a[1],a[2],o/i),u=Eu([],s,l,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),r.bezierCurveTo(l[0],l[1],l[0],l[1],a[2][0],a[2][1])}else for(var f=1;f0&&i&&x(-h/o,0,o);var g=r[0],y=r[o-1],m,_;S(),m<0&&w(-m,.8),_<0&&w(_,.8),S(),b(m,_,1),b(_,m,-1),S(),m<0&&T(-m),_<0&&T(_);function S(){m=g.rect[e]-a,_=n-y.rect[e]-y.rect[t]}function b(C,M,D){if(C<0){var L=Math.min(M,-C);if(L>0){x(L*D,0,o);var I=L+C;I<0&&w(-I*D,1)}else w(-C*D,1)}}function x(C,M,D){C!==0&&(u=!0);for(var L=M;L0)for(var I=0;I0;I--){var N=D[I-1]*E;x(-N,I,o)}}}function T(C){var M=C<0?-1:1;C=Math.abs(C);for(var D=Math.ceil(C/(o-1)),L=0;L0?x(D,0,L+1):x(-D,o-L-1,o),C-=D,C<=0)return}return u}function IB(r,e,t,a){return tw(r,"x","width",e,t,a)}function ew(r,e,t,a){return tw(r,"y","height",e,t,a)}function rw(r){var e=[];r.sort(function(d,g){return g.priority-d.priority});var t=new ht(0,0,0,0);function a(d){if(!d.ignore){var g=d.ensureState("emphasis");g.ignore==null&&(g.ignore=!1)}d.ignore=!0}for(var n=0;n=0&&a.attr(i.oldLayoutSelect),st(v,"emphasis")>=0&&a.attr(i.oldLayoutEmphasis)),At(a,u,t,l)}else if(a.attr(u),!Ao(a).valueAnimation){var h=ft(a.style.opacity,1);a.style.opacity=0,Ht(a,{style:{opacity:h}},t,l)}if(i.oldLayout=u,a.states.select){var c=i.oldLayoutSelect={};dh(c,u,gh),dh(c,a.states.select,gh)}if(a.states.emphasis){var p=i.oldLayoutEmphasis={};dh(p,u,gh),dh(p,a.states.emphasis,gh)}P1(a,l,f,t,t)}if(n&&!n.ignore&&!n.invisible){var i=EB(n),o=i.oldLayout,d={points:n.shape.points};o?(n.attr({shape:o}),At(n,{shape:d},t)):(n.setShape(d),n.style.strokePercent=0,Ht(n,{style:{strokePercent:1}},t)),i.oldLayout=d}},r}(),OB=kB,Rd=xt();function nw(r){r.registerUpdateLifecycle("series:beforeupdate",function(e,t,a){var n=Rd(t).labelManager;n||(n=Rd(t).labelManager=new OB),n.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(e,t,a){var n=Rd(t).labelManager;a.updatedSeries.forEach(function(i){n.addLabelsOfSeries(t.getViewOfSeriesModel(i))}),n.updateLayoutConfig(t),n.layout(t),n.processLabelsOverall()})}ct(nw);function iw(r,e,t){var a=jt.createCanvas(),n=e.getWidth(),i=e.getHeight(),o=a.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=n+"px",o.height=i+"px",a.setAttribute("data-zr-dom-id",r)),a.width=n*t,a.height=i*t,a}var NB=function(r){Ft(e,r);function e(t,a,n){var i=r.call(this)||this;i.motionBlur=!1,i.lastFrameAlpha=.7,i.dpr=1,i.virtual=!1,i.config={},i.incremental=!1,i.zlevel=0,i.maxRepaintRectCount=5,i.__dirty=!0,i.__firstTimePaint=!0,i.__used=!1,i.__drawIndex=0,i.__startIndex=0,i.__endIndex=0,i.__prevStartIndex=null,i.__prevEndIndex=null;var o;n=n||tf,typeof t=="string"?o=iw(t,a,n):et(t)&&(o=t,t=o.id),i.id=t,i.dom=o;var s=o.style;return s&&(Jm(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),i.painter=a,i.dpr=n,i}return e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=iw("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),t!==1&&this.ctxBack.scale(t,t)},e.prototype.createRepaintRects=function(t,a,n,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new ht(0,0,0,0);function f(m){if(!(!m.isFinite()||m.isZero()))if(o.length===0){var _=new ht(0,0,0,0);_.copy(m),o.push(_)}else{for(var S=!1,b=Infinity,x=0,w=0;w=s)}}for(var h=this.__startIndex;h15)break}}P.prevElClipPaths&&y.restore()};if(m)if(m.length===0)T=g.__endIndex;else for(var M=c.dpr,D=0;D0&&e>n[0]){for(l=0;le);l++);s=a[n[l]]}if(n.splice(l+1,0,e),a[e]=t,!t.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(t.dom,u.nextSibling):o.appendChild(t.dom)}else o.firstChild?o.insertBefore(t.dom,o.firstChild):o.appendChild(t.dom);t.__painter=this}},r.prototype.eachLayer=function(e,t){for(var a=this._zlevelList,n=0;n0?yh:0),this._needsManuallyCompositing),f.__builtin__||lo("ZLevel "+u+" has been used by unkown layer "+f.id),f!==i&&(f.__used=!0,f.__startIndex!==l&&(f.__dirty=!0),f.__startIndex=l,f.incremental?f.__drawIndex=-1:f.__drawIndex=l,t(l),i=f),n.__dirty&tr&&!n.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=l))}t(l),this.eachBuiltinLayer(function(h,v){!h.__used&&h.getElementCount()>0&&(h.__dirty=!0,h.__startIndex=h.__endIndex=h.__drawIndex=0),h.__dirty&&h.__drawIndex<0&&(h.__drawIndex=h.__startIndex)})},r.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},r.prototype._clearLayer=function(e){e.clear()},r.prototype.setBackgroundColor=function(e){this._backgroundColor=e,A(this._layers,function(t){t.setUnpainted()})},r.prototype.configLayer=function(e,t){if(t){var a=this._layerConfig;a[e]?ot(a[e],t,!0):a[e]=t;for(var n=0;n=Ni:-u>=Ni),c=u>0?u%Ni:u%Ni+Ni,p=!1;v?p=!0:on(h)?p=!1:p=c>=sw==!!f;var d=e+a*Od(o),g=t+n*kd(o);this._start&&this._add("M",d,g);var y=Math.round(i*WB);if(v){var m=1/this._p,_=(f?1:-1)*(Ni-m);this._add("A",a,n,y,1,+f,e+a*Od(o+_),t+n*kd(o+_)),m>.01&&this._add("A",a,n,y,0,+f,d,g)}else{var S=e+a*Od(s),b=t+n*kd(s);this._add("A",a,n,y,+p,+f,S,b)}},r.prototype.rect=function(e,t,a,n){this._add("M",e,t),this._add("l",a,0),this._add("l",0,n),this._add("l",-a,0),this._add("Z")},r.prototype.closePath=function(){this._d.length>0&&this._add("Z")},r.prototype._add=function(e,t,a,n,i,o,s,l,u){for(var f=[],h=this._p,v=1;v"}function JB(r){return""}function Bd(r,e){e=e||{};var t=e.newline?` -`:"";function a(n){var i=n.children,o=n.tag,s=n.attrs;return QB(o,s)+Ge(n.text)+(i?""+t+G(i,function(l){return a(l)}).join(t)+t:"")+JB(o)}return a(r)}function tV(r,e,t){t=t||{};var a=t.newline?` -`:"",n=" {"+a,i=a+"}",o=G(St(r),function(l){return l+n+G(St(r[l]),function(u){return u+":"+r[l][u]+";"}).join(a)+i}).join(a),s=G(St(e),function(l){return"@keyframes "+l+n+G(St(e[l]),function(u){return u+n+G(St(e[l][u]),function(f){var h=e[l][u][f];return f==="d"&&(h='path("'+h+'")'),f+":"+h+";"}).join(a)+i}).join(a)+i}).join(a);return!o&&!s?"":[""].join(a)}function Vd(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function vw(r,e,t,a){return he("svg","root",{width:r,height:e,xmlns:uw,"xmlns:xlink":fw,version:"1.1",baseProfile:"full",viewBox:a?"0 0 "+r+" "+e:!1},t)}var cw={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},Bi="transform-origin";function eV(r,e,t){var a=B({},r.shape);B(a,e),r.buildPath(t,a);var n=new lw;return n.reset(z0(r)),t.rebuildPath(n,1),n.generateStr(),n.getStr()}function rV(r,e){var t=e.originX,a=e.originY;(t||a)&&(r[Bi]=t+"px "+a+"px")}var aV={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function pw(r,e){var t=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[t]=r,t}function nV(r,e,t){var a=r.shape.paths,n={},i,o;if(A(a,function(l){var u=Vd(t.zrId);u.animation=!0,mh(l,{},u,!0);var f=u.cssAnims,h=u.cssNodes,v=St(f),c=v.length;if(!!c){o=v[c-1];var p=f[o];for(var d in p){var g=p[d];n[d]=n[d]||{d:""},n[d].d+=g.d||""}for(var y in h){var m=h[y].animation;m.indexOf(o)>=0&&(i=m)}}}),!!i){e.d=!1;var s=pw(n,t);return i.replace(o,s)}}function dw(r){return U(r)?cw[r]?"cubic-bezier("+cw[r]+")":nc(r)?r:"":""}function mh(r,e,t,a){var n=r.animators,i=n.length,o=[];if(r instanceof rd){var s=nV(r,e,t);if(s)o.push(s);else if(!i)return}else if(!i)return;for(var l={},u=0;u0}).length){var gt=pw(w,t);return gt+" "+m[0]+" both"}}for(var g in l){var s=d(l[g]);s&&o.push(s)}if(o.length){var y=t.zrId+"-cls-"+t.cssClassIdx++;t.cssNodes["."+y]={animation:o.join(",")},e.class=y}}var Pl=Math.round;function gw(r){return r&&U(r.src)}function yw(r){return r&&$(r.toDataURL)}function zd(r,e,t,a){qB(function(n,i){var o=n==="fill"||n==="stroke";o&&V0(i)?ww(e,r,n,a):o&&vc(i)?Tw(t,r,n,a):r[n]=i},e,t,!1),hV(t,r,a)}function mw(r){return on(r[0]-1)&&on(r[1])&&on(r[2])&&on(r[3]-1)}function iV(r){return on(r[4])&&on(r[5])}function Gd(r,e,t){if(e&&!(iV(e)&&mw(e))){var a=t?10:1e4;r.transform=mw(e)?"translate("+Pl(e[4]*a)/a+" "+Pl(e[5]*a)/a+")":o2(e)}}function _w(r,e,t){for(var a=r.points,n=[],i=0;ii?(p=t[l+1]==null?null:t[l+1].elm,Pw(r,p,t,n,l)):_h(r,e,a,i))}function Ko(r,e){var t=e.elm=r.elm,a=r.children,n=e.children;r!==e&&(Wd(r,e),Hd(e.text)?pa(a)&&pa(n)?a!==n&&gV(t,a,n):pa(n)?(pa(r.text)&&Fd(t,""),Pw(t,null,n,0,n.length-1)):pa(a)?_h(t,a,0,a.length-1):pa(r.text)&&Fd(t,""):r.text!==e.text&&(pa(a)&&_h(t,a,0,a.length-1),Fd(t,e.text)))}function yV(r,e){if(Rl(r,e))Ko(r,e);else{var t=r.elm,a=Dw(t);El(e),a!==null&&(Vi(a,e.elm,Lw(t)),_h(a,[r],0,0))}return e}var mV=0,_V=function(){function r(e,t,a){if(this.type="svg",this.refreshHover=Rw("refreshHover"),this.configLayer=Rw("configLayer"),this.storage=t,this._opts=a=B({},a),this.root=e,this._id="zr"+mV++,this._oldVNode=vw(a.width,a.height),e&&!a.ssr){var n=this._viewport=document.createElement("div");n.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=hw("svg");Wd(null,this._oldVNode),n.appendChild(i),e.appendChild(n)}this.resize(a.width,a.height)}return r.prototype.getType=function(){return this.type},r.prototype.getViewportRoot=function(){return this._viewport},r.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},r.prototype.getSvgDom=function(){return this._svgDom},r.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",yV(this._oldVNode,e),this._oldVNode=e}},r.prototype.renderOneToVNode=function(e){return bw(e,Vd(this._id))},r.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),a=this._width,n=this._height,i=Vd(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress;var o=[],s=this._bgVNode=SV(a,n,this._backgroundColor,i);s&&o.push(s);var l=e.compress?null:this._mainVNode=he("g","main",{},[]);this._paintList(t,i,l?l.children:o),l&&o.push(l);var u=G(St(i.defs),function(v){return i.defs[v]});if(u.length&&o.push(he("defs","defs",{},u)),e.animation){var f=tV(i.cssNodes,i.cssAnims,{newline:!0});if(f){var h=he("style","stl",{},[],f);o.push(h)}}return vw(a,n,o,e.useViewBox)},r.prototype.renderToString=function(e){return e=e||{},Bd(this.renderToVNode({animation:ft(e.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:ft(e.useViewBox,!0)}),{newline:!0})},r.prototype.setBackgroundColor=function(e){this._backgroundColor=e},r.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},r.prototype._paintList=function(e,t,a){for(var n=e.length,i=[],o=0,s,l,u=0,f=0;f=0&&!(v&&l&&v[d]===l[d]);d--);for(var g=p-1;g>d;g--)o--,s=i[o-1];for(var y=d+1;y1){var f=l.shift();l.length===1&&(a[s]=l[0]),this._update&&this._update(f,o)}else u===1?(a[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,a)},r.prototype._executeMultiple=function(){var e=this._old,t=this._new,a={},n={},i=[],o=[];this._initIndexMap(e,a,i,"_oldKeyGetter"),this._initIndexMap(t,n,o,"_newKeyGetter");for(var s=0;s1&&v===1)this._updateManyToOne&&this._updateManyToOne(f,u),n[l]=null;else if(h===1&&v>1)this._updateOneToMany&&this._updateOneToMany(f,u),n[l]=null;else if(h===1&&v===1)this._update&&this._update(f,u),n[l]=null;else if(h>1&&v>1)this._updateManyToMany&&this._updateManyToMany(f,u),n[l]=null;else if(h>1)for(var c=0;c1)for(var s=0;s30}var Ol=et,_n=G,IV=typeof Int32Array=="undefined"?Array:Int32Array,PV="e\0\0",zw=-1,RV=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],EV=["_approximateExtent"],Gw,bh,Nl,Bl,Yd,wh,Zd,kV=function(){function r(e,t){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var a,n=!1;Ow(e)?(a=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(n=!0,a=e),a=a||["x","y"];for(var i={},o=[],s={},l=!1,u={},f=0;f=t)){var a=this._store,n=a.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=n.getSource().sourceFormat,l=s===mr;if(l&&!n.pure)for(var u=[],f=e;f0},r.prototype.ensureUniqueItemVisual=function(e,t){var a=this._itemVisuals,n=a[e];n||(n=a[e]={});var i=n[t];return i==null&&(i=this.getVisual(t),z(i)?i=i.slice():Ol(i)&&(i=B({},i)),n[t]=i),i},r.prototype.setItemVisual=function(e,t,a){var n=this._itemVisuals[e]||{};this._itemVisuals[e]=n,Ol(t)?B(n,t):n[t]=a},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(e,t){Ol(e)?B(this._layout,e):this._layout[e]=t},r.prototype.getLayout=function(e){return this._layout[e]},r.prototype.getItemLayout=function(e){return this._itemLayouts[e]},r.prototype.setItemLayout=function(e,t,a){this._itemLayouts[e]=a?B(this._itemLayouts[e]||{},t):t},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(e,t){var a=this.hostModel&&this.hostModel.seriesIndex;rp(a,this.dataType,e,t),this._graphicEls[e]=t},r.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},r.prototype.eachItemGraphicEl=function(e,t){A(this._graphicEls,function(a,n){a&&e&&e.call(t,a,n)})},r.prototype.cloneShallow=function(e){return e||(e=new r(this._schema?this._schema:_n(this.dimensions,this._getDimInfo,this),this.hostModel)),Yd(e,this),e._store=this._store,e},r.prototype.wrapMethod=function(e,t){var a=this[e];!$(a)||(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var n=a.apply(this,arguments);return t.apply(this,[n].concat(Nv(arguments)))})},r.internalField=function(){Gw=function(e){var t=e._invertedIndicesMap;A(t,function(a,n){var i=e._dimInfos[n],o=i.ordinalMeta,s=e._store;if(o){a=t[n]=new IV(o.categories.length);for(var l=0;l1&&(l+="__ec__"+f),n[t]=l}}}(),r}(),Be=kV;function Fq(r,e){return qo(r,e).dimensions}function qo(r,e){Op(r)||(r=Bp(r)),e=e||{};var t=e.coordDimensions||[],a=e.dimensionsDefine||r.dimensionsDefine||[],n=q(),i=[],o=NV(r,t,a,e.dimensionsCount),s=e.canOmitUnusedDimensions&&Vw(o),l=a===r.dimensionsDefine,u=l?Bw(r):Nw(a),f=e.encodeDefine;!f&&e.encodeDefaulter&&(f=e.encodeDefaulter(r,o));for(var h=q(f),v=new US(o),c=0;c0&&(a.name=n+(i-1)),i++,e.set(n,i)}}function NV(r,e,t,a){var n=Math.max(r.dimensionsDetectedCount||1,e.length,t.length,a||0);return A(e,function(i){var o;et(i)&&(o=i.dimsDef)&&(n=Math.max(n,o.length))}),n}function BV(r,e,t){if(t||e.hasKey(r)){for(var a=0;e.hasKey(r+a);)a++;r+=a}return e.set(r,!0),r}var VV=function(){function r(e){this.coordSysDims=[],this.axisMap=q(),this.categoryAxisMap=q(),this.coordSysName=e}return r}();function zV(r){var e=r.get("coordinateSystem"),t=new VV(e),a=GV[e];if(a)return a(r,t,t.axisMap,t.categoryAxisMap),t}var GV={cartesian2d:function(r,e,t,a){var n=r.getReferringComponents("xAxis",te).models[0],i=r.getReferringComponents("yAxis",te).models[0];e.coordSysDims=["x","y"],t.set("x",n),t.set("y",i),jo(n)&&(a.set("x",n),e.firstCategoryDimIndex=0),jo(i)&&(a.set("y",i),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(r,e,t,a){var n=r.getReferringComponents("singleAxis",te).models[0];e.coordSysDims=["single"],t.set("single",n),jo(n)&&(a.set("single",n),e.firstCategoryDimIndex=0)},polar:function(r,e,t,a){var n=r.getReferringComponents("polar",te).models[0],i=n.findAxisModel("radiusAxis"),o=n.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],t.set("radius",i),t.set("angle",o),jo(i)&&(a.set("radius",i),e.firstCategoryDimIndex=0),jo(o)&&(a.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(r,e,t,a){e.coordSysDims=["lng","lat"]},parallel:function(r,e,t,a){var n=r.ecModel,i=n.getComponent("parallel",r.get("parallelIndex")),o=e.coordSysDims=i.dimensions.slice();A(i.parallelAxisIndex,function(s,l){var u=n.getComponent("parallelAxis",s),f=o[l];t.set(f,u),jo(u)&&(a.set(f,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})}};function jo(r){return r.get("type")==="category"}function FV(r,e,t){t=t||{};var a=t.byIndex,n=t.stackedCoordDimension,i,o,s;HV(e)?i=e:(o=e.schema,i=o.dimensions,s=e.store);var l=!!(r&&r.get("stack")),u,f,h,v;if(A(i,function(m,_){U(m)&&(i[_]=m={name:m}),l&&!m.isExtraCoord&&(!a&&!u&&m.ordinalMeta&&(u=m),!f&&m.type!=="ordinal"&&m.type!=="time"&&(!n||n===m.coordDim)&&(f=m))}),f&&!a&&!u&&(a=!0),f){h="__\0ecstackresult_"+r.id,v="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var c=f.coordDim,p=f.type,d=0;A(i,function(m){m.coordDim===c&&d++});var g={name:h,coordDim:c,coordDimIndex:d,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},y={name:v,coordDim:v,coordDimIndex:d+1,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(v,p),y.storeDimIndex=s.ensureCalculationDimension(h,p)),o.appendCalculationDimension(g),o.appendCalculationDimension(y)):(i.push(g),i.push(y))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:a,stackedOverDimension:v,stackResultDimension:h}}function HV(r){return!Ow(r.schema)}function Sn(r,e){return!!e&&e===r.getCalculationInfo("stackedDimension")}function Fw(r,e){return Sn(r,e)?r.getCalculationInfo("stackResultDimension"):e}function WV(r,e){var t=r.get("coordinateSystem"),a=sl.get(t),n;return e&&e.coordSysDims&&(n=G(e.coordSysDims,function(i){var o={name:i},s=e.axisMap.get(i);if(s){var l=s.get("type");o.type=Sh(l)}return o})),n||(n=a&&(a.getDimensionsInfo?a.getDimensionsInfo():a.dimensions.slice())||["x","y"]),n}function UV(r,e,t){var a,n;return t&&A(r,function(i,o){var s=i.coordDim,l=t.categoryAxisMap.get(s);l&&(a==null&&(a=o),i.ordinalMeta=l.getOrdinalMeta(),e&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(n=!0)}),!n&&a!=null&&(r[a].otherDims.itemName=0),a}function YV(r,e,t){t=t||{};var a=e.getSourceManager(),n,i=!1;r?(i=!0,n=Bp(r)):(n=a.getSource(),i=n.sourceFormat===mr);var o=zV(e),s=WV(e,o),l=t.useEncodeDefaulter,u=$(l)?l:l?it(aS,s,e):null,f={coordDimensions:s,generateCoord:t.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},h=qo(n,f),v=UV(h.dimensions,t.createInvertedIndices,o),c=i?null:a.getSharedDataStore(h),p=FV(e,{schema:h,store:c}),d=new Be(h,e);d.setCalculationInfo(p);var g=v!=null&&ZV(n)?function(y,m,_,S){return S===v?_:this.defaultDimValueGetter(y,m,_,S)}:null;return d.hasItemOption=!1,d.initData(i?n:c,null,g),d}function ZV(r){if(r.sourceFormat===mr){var e=XV(r.data||[]);return!z(So(e))}}function XV(r){for(var e=0;e-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),a},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:Infinity,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(Wt),qV=KV;function $o(r,e){var t=r.mapDimensionsAll("defaultedLabel"),a=t.length;if(a===1){var n=Oo(r,e,t[0]);return n!=null?n+"":null}else if(a){for(var i=[],o=0;o=0&&a.push(e[i])}return a.join(" ")}var jV=function(r){k(e,r);function e(t,a,n,i){var o=r.call(this)||this;return o.updateData(t,a,n,i),o}return e.prototype._createSymbol=function(t,a,n,i,o){this.removeAll();var s=re(t,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),s.drift=$V,this._symbolType=t,this.add(s)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){Ra(this.childAt(0))},e.prototype.downplay=function(){Ea(this.childAt(0))},e.prototype.setZ=function(t,a){var n=this.childAt(0);n.zlevel=t,n.z=a},e.prototype.setDraggable=function(t,a){var n=this.childAt(0);n.draggable=t,n.cursor=!a&&t?"move":n.cursor},e.prototype.updateData=function(t,a,n,i){this.silent=!1;var o=t.getItemVisual(a,"symbol")||"circle",s=t.hostModel,l=e.getSymbolSize(t,a),u=o!==this._symbolType,f=i&&i.disableAnimation;if(u){var h=t.getItemVisual(a,"symbolKeepAspect");this._createSymbol(o,t,a,l,h)}else{var v=this.childAt(0);v.silent=!1;var c={scaleX:l[0]/2,scaleY:l[1]/2};f?v.attr(c):At(v,c,s,a),Nr(v)}if(this._updateCommon(t,a,l,n,i),u){var v=this.childAt(0);if(!f){var c={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:v.style.opacity}};v.scaleX=v.scaleY=0,v.style.opacity=0,Ht(v,c,s,a)}}f&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,a,n,i,o){var s=this.childAt(0),l=t.hostModel,u,f,h,v,c,p,d,g,y;if(i&&(u=i.emphasisItemStyle,f=i.blurItemStyle,h=i.selectItemStyle,v=i.focus,c=i.blurScope,d=i.labelStatesModels,g=i.hoverScale,y=i.cursorStyle,p=i.emphasisDisabled),!i||t.hasItemOption){var m=i&&i.itemModel?i.itemModel:t.getItemModel(a),_=m.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),h=m.getModel(["select","itemStyle"]).getItemStyle(),f=m.getModel(["blur","itemStyle"]).getItemStyle(),v=_.get("focus"),c=_.get("blurScope"),p=_.get("disabled"),d=ue(m),g=_.getShallow("scale"),y=m.getShallow("cursor")}var S=t.getItemVisual(a,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var b=Uo(t.getItemVisual(a,"symbolOffset"),n);b&&(s.x=b[0],s.y=b[1]),y&&s.attr("cursor",y);var x=t.getItemVisual(a,"style"),w=x.fill;if(s instanceof _e){var T=s.style;s.useStyle(B({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},x))}else s.__isEmptyBrush?s.useStyle(B({},x)):s.useStyle(x),s.style.decal=null,s.setColor(w,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var C=t.getItemVisual(a,"liftZ"),M=this._z2;C!=null?M==null&&(this._z2=s.z2,s.z2+=C):M!=null&&(s.z2=M,this._z2=null);var D=o&&o.useNameLabel;xe(s,d,{labelFetcher:l,labelDataIndex:a,defaultText:L,inheritColor:w,defaultOpacity:x.opacity});function L(R){return D?t.getName(R):$o(t,R)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var I=s.ensureState("emphasis");I.style=u,s.ensureState("select").style=h,s.ensureState("blur").style=f;var P=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;I.scaleX=this._sizeX*P,I.scaleY=this._sizeY*P,this.setSymbolScale(1),Yt(this,v,c,p)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,a,n){var i=this.childAt(0),o=nt(this).dataIndex,s=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var l=i.getTextContent();l&&vn(l,{style:{opacity:0}},a,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();vn(i,{style:{opacity:0},scaleX:0,scaleY:0},a,{dataIndex:o,cb:t,removeOpt:s})},e.getSymbolSize=function(t,a){return Tl(t.getItemVisual(a,"symbolSize"))},e}(rt);function $V(r,e){this.parent.drift(r,e)}var Vl=jV;function Xd(r,e,t,a){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(a.isIgnore&&a.isIgnore(t))&&!(a.clipShape&&!a.clipShape.contain(e[0],e[1]))&&r.getItemVisual(t,"symbol")!=="none"}function Ww(r){return r!=null&&!et(r)&&(r={isIgnore:r}),r||{}}function Uw(r){var e=r.hostModel,t=e.getModel("emphasis");return{emphasisItemStyle:t.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:t.get("focus"),blurScope:t.get("blurScope"),emphasisDisabled:t.get("disabled"),hoverScale:t.get("scale"),labelStatesModels:ue(e),cursorStyle:e.get("cursor")}}var QV=function(){function r(e){this.group=new rt,this._SymbolCtor=e||Vl}return r.prototype.updateData=function(e,t){this._progressiveEls=null,t=Ww(t);var a=this.group,n=e.hostModel,i=this._data,o=this._SymbolCtor,s=t.disableAnimation,l=Uw(e),u={disableAnimation:s},f=t.getSymbolPoint||function(h){return e.getItemLayout(h)};i||a.removeAll(),e.diff(i).add(function(h){var v=f(h);if(Xd(e,v,h,t)){var c=new o(e,h,l,u);c.setPosition(v),e.setItemGraphicEl(h,c),a.add(c)}}).update(function(h,v){var c=i.getItemGraphicEl(v),p=f(h);if(!Xd(e,p,h,t)){a.remove(c);return}var d=e.getItemVisual(h,"symbol")||"circle",g=c&&c.getSymbolType&&c.getSymbolType();if(!c||g&&g!==d)a.remove(c),c=new o(e,h,l,u),c.setPosition(p);else{c.updateData(e,h,l,u);var y={x:p[0],y:p[1]};s?c.attr(y):At(c,y,n)}a.add(c),e.setItemGraphicEl(h,c)}).remove(function(h){var v=i.getItemGraphicEl(h);v&&v.fadeOut(function(){a.remove(v)},n)}).execute(),this._getSymbolPoint=f,this._data=e},r.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl(function(a,n){var i=e._getSymbolPoint(n);a.setPosition(i),a.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=Uw(e),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t,a){this._progressiveEls=[],a=Ww(a);function n(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=e.start;i0?t=a[0]:a[1]<0&&(t=a[1]),t}function Zw(r,e,t,a){var n=NaN;r.stacked&&(n=t.get(t.getCalculationInfo("stackedOverDimension"),a)),isNaN(n)&&(n=r.valueStart);var i=r.baseDataOffset,o=[];return o[i]=t.get(r.baseDim,a),o[1-i]=n,e.dataToPoint(o)}var Xw=typeof Float32Array!="undefined",tz=Xw?Float32Array:Array;function da(r){return z(r)?Xw?new Float32Array(r):r:new tz(r)}function ez(r,e){var t=[];return e.diff(r).add(function(a){t.push({cmd:"+",idx:a})}).update(function(a,n){t.push({cmd:"=",idx:n,idx1:a})}).remove(function(a){t.push({cmd:"-",idx:a})}).execute(),t}function rz(r,e,t,a,n,i,o,s){for(var l=ez(r,e),u=[],f=[],h=[],v=[],c=[],p=[],d=[],g=Yw(n,e,o),y=r.getLayout("points")||[],m=e.getLayout("points")||[],_=0;_=n||d<0)break;if(zi(y,m)){if(l){d+=i;continue}break}if(d===t)r[i>0?"moveTo":"lineTo"](y,m),h=y,v=m;else{var _=y-u,S=m-f;if(_*_+S*S<.5){d+=i;continue}if(o>0){for(var b=d+i,x=e[b*2],w=e[b*2+1];x===y&&w===m&&g=a||zi(x,w))c=y,p=m;else{M=x-u,D=w-f;var P=y-u,R=x-y,E=m-f,N=w-m,O=void 0,V=void 0;if(s==="x"){O=Math.abs(P),V=Math.abs(R);var F=M>0?1:-1;c=y-F*O*o,p=m,L=y+F*V*o,I=m}else if(s==="y"){O=Math.abs(E),V=Math.abs(N);var W=D>0?1:-1;c=y,p=m-W*O*o,L=y,I=m+W*V*o}else O=Math.sqrt(P*P+E*E),V=Math.sqrt(R*R+N*N),C=V/(V+O),c=y-M*o*(1-C),p=m-D*o*(1-C),L=y+M*o*C,I=m+D*o*C,L=xn(L,bn(x,y)),I=xn(I,bn(w,m)),L=bn(L,xn(x,y)),I=bn(I,xn(w,m)),M=L-y,D=I-m,c=y-M*O/V,p=m-D*O/V,c=xn(c,bn(u,y)),p=xn(p,bn(f,m)),c=bn(c,xn(u,y)),p=bn(p,xn(f,m)),M=y-c,D=m-p,L=y+M*V/O,I=m+D*V/O}r.bezierCurveTo(h,v,c,p,y,m),h=L,v=I}else r.lineTo(y,m)}u=y,f=m,d+=i}return g}var Kw=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),az=function(r){k(e,r);function e(t){var a=r.call(this,t)||this;return a.type="ec-polyline",a}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Kw},e.prototype.buildPath=function(t,a){var n=a.points,i=0,o=n.length/2;if(a.connectNulls){for(;o>0&&zi(n[o*2-2],n[o*2-1]);o--);for(;i=0){var S=u?(p-l)*_+l:(c-s)*_+s;return u?[t,S]:[S,t]}s=c,l=p;break;case o.C:c=i[h++],p=i[h++],d=i[h++],g=i[h++],y=i[h++],m=i[h++];var b=u?Hu(s,c,d,y,t,f):Hu(l,p,g,m,t,f);if(b>0)for(var x=0;x=0){var S=u?le(l,p,g,m,w):le(s,c,d,y,w);return u?[t,S]:[S,t]}}s=y,l=m;break}}},e}(pt),nz=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e}(Kw),qw=function(r){k(e,r);function e(t){var a=r.call(this,t)||this;return a.type="ec-polygon",a}return e.prototype.getDefaultShape=function(){return new nz},e.prototype.buildPath=function(t,a){var n=a.points,i=a.stackedOnPoints,o=0,s=n.length/2,l=a.smoothMonotone;if(a.connectNulls){for(;s>0&&zi(n[s*2-2],n[s*2-1]);s--);for(;oe){i?t.push(o(i,l,e)):n&&t.push(o(n,l,0),o(n,l,e));break}else n&&(t.push(o(n,l,0)),n=null),t.push(l),i=l}return t}function sz(r,e,t){var a=r.getVisual("visualMeta");if(!(!a||!a.length||!r.count())&&e.type==="cartesian2d"){for(var n,i,o=a.length-1;o>=0;o--){var s=r.getDimensionInfo(a[o].dimension);if(n=s&&s.coordDim,n==="x"||n==="y"){i=a[o];break}}if(!!i){var l=e.getAxis(n),u=G(i.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,h=i.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),h.reverse());var v=oz(u,n==="x"?t.getWidth():t.getHeight()),c=v.length;if(!c&&f)return u[0].coord<0?h[1]?h[1]:u[f-1].color:h[0]?h[0]:u[0].color;var p=10,d=v[0].coord-p,g=v[c-1].coord+p,y=g-d;if(y<.001)return"transparent";A(v,function(_){_.offset=(_.coord-d)/y}),v.push({offset:c?v[c-1].offset:.5,color:h[1]||"transparent"}),v.unshift({offset:c?v[0].offset:.5,color:h[0]||"transparent"});var m=new gl(0,0,0,0,v,!0);return m[n]=d,m[n+"2"]=g,m}}}function lz(r,e,t){var a=r.get("showAllSymbol"),n=a==="auto";if(!(a&&!n)){var i=t.getAxesByScale("ordinal")[0];if(!!i&&!(n&&uz(i,e))){var o=e.mapDimension(i.dim),s={};return A(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function uz(r,e){var t=r.getExtent(),a=Math.abs(t[1]-t[0])/r.scale.count();isNaN(a)&&(a=0);for(var n=e.count(),i=Math.max(1,Math.round(n/5)),o=0;oa)return!1;return!0}function fz(r,e){return isNaN(r)||isNaN(e)}function hz(r){for(var e=r.length/2;e>0&&fz(r[e*2-2],r[e*2-1]);e--);return e-1}function rT(r,e){return[r[e*2],r[e*2+1]]}function vz(r,e,t){for(var a=r.length/2,n=t==="x"?0:1,i,o,s=0,l=-1,u=0;u=e||i>=e&&o<=e){l=u;break}s=u,i=o}return{range:[s,l],t:(e-i)/(o-i)}}function aT(r){if(r.get(["endLabel","show"]))return!0;for(var e=0;e0&&t.get(["emphasis","lineStyle","width"])==="bolder"){var F=d.getState("emphasis").style;F.lineWidth=+d.style.lineWidth+1}nt(d).seriesIndex=t.seriesIndex,Yt(d,N,O,V);var W=eT(t.get("smooth")),X=t.get("smoothMonotone");if(d.setShape({smooth:W,smoothMonotone:X,connectNulls:T}),g){var Q=l.getCalculationInfo("stackedOnSeries"),J=0;g.useStyle(K(f.getAreaStyle(),{fill:I,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),Q&&(J=eT(Q.get("smooth"))),g.setShape({smooth:W,stackedOnSmooth:J,smoothMonotone:X,connectNulls:T}),Se(g,t,"areaStyle"),nt(g).seriesIndex=t.seriesIndex,Yt(g,N,O,V)}var dt=function(Dt){i._changePolyState(Dt)};l.eachItemGraphicEl(function(Dt){Dt&&(Dt.onHoverStateChange=dt)}),this._polyline.onHoverStateChange=dt,this._data=l,this._coordSys=o,this._stackedOnPoints=x,this._points=h,this._step=D,this._valueOrigin=S,t.get("triggerLineEvent")&&(this.packEventData(t,d),g&&this.packEventData(t,g))},e.prototype.packEventData=function(t,a){nt(a).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,a,n,i){var o=t.getData(),s=ri(o,i);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var f=l[s*2],h=l[s*2+1];if(isNaN(f)||isNaN(h)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,h))return;var v=t.get("zlevel")||0,c=t.get("z")||0;u=new Vl(o,s),u.x=f,u.y=h,u.setZ(v,c);var p=u.getSymbolPath().getTextContent();p&&(p.zlevel=v,p.z=c,p.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else zt.prototype.highlight.call(this,t,a,n,i)},e.prototype.downplay=function(t,a,n,i){var o=t.getData(),s=ri(o,i);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else zt.prototype.downplay.call(this,t,a,n,i)},e.prototype._changePolyState=function(t){var a=this._polygon;mf(this._polyline,t),a&&mf(a,t)},e.prototype._newPolyline=function(t){var a=this._polyline;return a&&this._lineGroup.remove(a),a=new az({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(a),this._polyline=a,a},e.prototype._newPolygon=function(t,a){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new qw({shape:{points:t,stackedOnPoints:a},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},e.prototype._initSymbolLabelAnimation=function(t,a,n){var i,o,s=a.getBaseAxis(),l=s.inverse;a.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):a.type==="polar"&&(i=s.dim==="angle",o=!0);var u=t.hostModel,f=u.get("animationDuration");$(f)&&(f=f(null));var h=u.get("animationDelay")||0,v=$(h)?h(null):h;t.eachItemGraphicEl(function(c,p){var d=c;if(d){var g=[c.x,c.y],y=void 0,m=void 0,_=void 0;if(n)if(o){var S=n,b=a.pointToCoord(g);i?(y=S.startAngle,m=S.endAngle,_=-b[1]/180*Math.PI):(y=S.r0,m=S.r,_=b[0])}else{var x=n;i?(y=x.x,m=x.x+x.width,_=c.x):(y=x.y+x.height,m=x.y,_=c.y)}var w=m===y?0:(_-y)/(m-y);l&&(w=1-w);var T=$(h)?h(p):f*w+v,C=d.getSymbolPath(),M=C.getTextContent();d.attr({scaleX:0,scaleY:0}),d.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),M&&M.animateFrom({style:{opacity:0}},{duration:300,delay:T}),C.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,a,n){var i=t.getModel("endLabel");if(aT(t)){var o=t.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new Ct({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=hz(l);f>=0&&(xe(s,ue(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:f,defaultText:function(h,v,c){return c!=null?Hw(o,c):$o(o,h)},enableTextSetter:!0},cz(i,a)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,a,n,i,o,s,l){var u=this._endLabel,f=this._polyline;if(u){t<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var h=n.getLayout("points"),v=n.hostModel,c=v.get("connectNulls"),p=s.get("precision"),d=s.get("distance")||0,g=l.getBaseAxis(),y=g.isHorizontal(),m=g.inverse,_=a.shape,S=m?y?_.x:_.y+_.height:y?_.x+_.width:_.y,b=(y?d:0)*(m?-1:1),x=(y?0:-d)*(m?-1:1),w=y?"x":"y",T=vz(h,S,w),C=T.range,M=C[1]-C[0],D=void 0;if(M>=1){if(M>1&&!c){var L=rT(h,C[0]);u.attr({x:L[0]+b,y:L[1]+x}),o&&(D=v.getRawValue(C[0]))}else{var L=f.getPointOn(S,w);L&&u.attr({x:L[0]+b,y:L[1]+x});var I=v.getRawValue(C[0]),P=v.getRawValue(C[1]);o&&(D=T_(n,p,I,P,T.t))}i.lastFrameIndex=C[0]}else{var R=t===1||i.lastFrameIndex>0?C[0]:0,L=rT(h,R);o&&(D=v.getRawValue(R)),u.attr({x:L[0]+b,y:L[1]+x})}o&&Ao(u).setLabelText(D)}},e.prototype._doUpdateAnimation=function(t,a,n,i,o,s,l){var u=this._polyline,f=this._polygon,h=t.hostModel,v=rz(this._data,t,this._stackedOnPoints,a,this._coordSys,n,this._valueOrigin,s),c=v.current,p=v.stackedOnCurrent,d=v.next,g=v.stackedOnNext;if(o&&(c=wn(v.current,n,o,l),p=wn(v.stackedOnCurrent,n,o,l),d=wn(v.next,n,o,l),g=wn(v.stackedOnNext,n,o,l)),tT(c,d)>3e3||f&&tT(p,g)>3e3){u.stopAnimation(),u.setShape({points:d}),f&&(f.stopAnimation(),f.setShape({points:d,stackedOnPoints:g}));return}u.shape.__points=v.current,u.shape.points=c;var y={shape:{points:d}};v.current!==c&&(y.shape.__points=v.next),u.stopAnimation(),At(u,y,h),f&&(f.setShape({points:c,stackedOnPoints:p}),f.stopAnimation(),At(f,{shape:{stackedOnPoints:g}},h),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var m=[],_=v.status,S=0;S<_.length;S++){var b=_[S].cmd;if(b==="="){var x=t.getItemGraphicEl(_[S].idx1);x&&m.push({el:x,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var w=u.shape.__points,T=0;Te&&(e=r[t]);return isFinite(e)?e:NaN},min:function(r){for(var e=Infinity,t=0;t10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),h=a.getDevicePixelRatio(),v=Math.abs(f[1]-f[0])*(h||1),c=Math.round(s/v);if(isFinite(c)&&c>1){i==="lttb"&&e.setData(n.lttbDownSample(n.mapDimension(u.dim),1/c));var p=void 0;U(i)?p=gz[i]:$(i)&&(p=i),p&&e.setData(n.downSample(n.mapDimension(u.dim),1/c,p,yz))}}}}}function mz(r){r.registerChartView(dz),r.registerSeriesModel(qV),r.registerLayout(Gl("line",!0)),r.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),a=e.getModel("lineStyle").getLineStyle();a&&!a.stroke&&(a.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",a)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,nT("line"))}var jd="__ec_stack_";function $d(r){return r.get("stack")||jd+r.seriesIndex}function Qd(r){return r.dim+r.index}function _z(r){var e=[],t=r.axis,a="axis0";if(t.type==="category"){for(var n=t.getBandWidth(),i=0;i0&&(i=i===null?s:Math.min(i,s))}t[a]=i}}return t}function oT(r){var e=Sz(r),t=[];return A(r,function(a){var n=a.coordinateSystem,i=n.getBaseAxis(),o=i.getExtent(),s;if(i.type==="category")s=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var l=i.dim+"_"+i.index,u=e[l],f=Math.abs(o[1]-o[0]),h=i.scale.getExtent(),v=Math.abs(h[1]-h[0]);s=u?f/v*u:f}else{var c=a.getData();s=Math.abs(o[1]-o[0])/c.count()}var p=H(a.get("barWidth"),s),d=H(a.get("barMaxWidth"),s),g=H(a.get("barMinWidth")||(hT(a)?.5:1),s),y=a.get("barGap"),m=a.get("barCategoryGap");t.push({bandWidth:s,barWidth:p,barMaxWidth:d,barMinWidth:g,barGap:y,barCategoryGap:m,axisKey:Qd(i),stackId:$d(a)})}),sT(t)}function sT(r){var e={};A(r,function(a,n){var i=a.axisKey,o=a.bandWidth,s=e[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;e[i]=s;var u=a.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var f=a.barWidth;f&&!l[u].width&&(l[u].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var h=a.barMaxWidth;h&&(l[u].maxWidth=h);var v=a.barMinWidth;v&&(l[u].minWidth=v);var c=a.barGap;c!=null&&(s.gap=c);var p=a.barCategoryGap;p!=null&&(s.categoryGap=p)});var t={};return A(e,function(a,n){t[n]={};var i=a.stacks,o=a.bandWidth,s=a.categoryGap;if(s==null){var l=St(i).length;s=Math.max(35-l*4,15)+"%"}var u=H(s,o),f=H(a.gap,1),h=a.remainedWidth,v=a.autoWidthCount,c=(h-u)/(v+(v-1)*f);c=Math.max(c,0),A(i,function(y){var m=y.maxWidth,_=y.minWidth;if(y.width){var S=y.width;m&&(S=Math.min(S,m)),_&&(S=Math.max(S,_)),y.width=S,h-=S+f*S,v--}else{var S=c;m&&mS&&(S=_),S!==c&&(y.width=S,h-=S+f*S,v--)}}),c=(h-u)/(v+(v-1)*f),c=Math.max(c,0);var p=0,d;A(i,function(y,m){y.width||(y.width=c),d=y,p+=y.width*(1+f)}),d&&(p-=d.width*f);var g=-p/2;A(i,function(y,m){t[n][m]=t[n][m]||{bandWidth:o,offset:g,width:y.width},g+=y.width*(1+f)})}),t}function xz(r,e,t){if(r&&e){var a=r[Qd(e)];return a!=null&&t!=null?a[$d(t)]:a}}function lT(r,e){var t=iT(r,e),a=oT(t);A(t,function(n){var i=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=$d(n),u=a[Qd(s)][l],f=u.offset,h=u.width;i.setLayout({bandWidth:u.bandWidth,offset:f,size:h})})}function uT(r){return{seriesType:r,plan:Bo(),reset:function(e){if(!!fT(e)){var t=e.getData(),a=e.coordinateSystem,n=a.getBaseAxis(),i=a.getOtherAxis(n),o=t.getDimensionIndex(t.mapDimension(i.dim)),s=t.getDimensionIndex(t.mapDimension(n.dim)),l=e.get("showBackground",!0),u=t.mapDimension(i.dim),f=t.getCalculationInfo("stackResultDimension"),h=Sn(t,u)&&!!t.getCalculationInfo("stackedOnSeries"),v=i.isHorizontal(),c=bz(n,i),p=hT(e),d=e.get("barMinHeight")||0,g=f&&t.getDimensionIndex(f),y=t.getLayout("size"),m=t.getLayout("offset");return{progress:function(_,S){for(var b=_.count,x=p&&da(b*3),w=p&&l&&da(b*3),T=p&&da(b),C=a.master.getRect(),M=v?C.width:C.height,D,L=S.getStore(),I=0;(D=_.next())!=null;){var P=L.get(h?g:o,D),R=L.get(s,D),E=c,N=void 0;h&&(N=+P-L.get(o,D));var O=void 0,V=void 0,F=void 0,W=void 0;if(v){var X=a.dataToPoint([P,R]);if(h){var Q=a.dataToPoint([N,R]);E=Q[0]}O=E,V=X[1]+m,F=X[0]-E,W=y,Math.abs(F)c.length-1&&(p=c.length-1),p<0&&(p=0),c[p]&&(o[v]=h.toGlobalCoord(c[p].coord))}});else{var s=this.getData(),l=s.getLayout("offset"),u=s.getLayout("size"),f=i.getBaseAxis().isHorizontal()?0:1;o[f]+=l+u/2}return o}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(Wt);Wt.registerClass(vT);var Ch=vT,wz=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(){return Ba(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),a=this.get("largeThreshold");return a>t&&(t=a),t},e.prototype.brushSelector=function(t,a,n){return n.rect(a.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=cn(Ch.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),e}(Ch),Tz=wz,Cz=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r}(),Az=function(r){k(e,r);function e(t){var a=r.call(this,t)||this;return a.type="sausage",a}return e.prototype.getDefaultShape=function(){return new Cz},e.prototype.buildPath=function(t,a){var n=a.cx,i=a.cy,o=Math.max(a.r0||0,0),s=Math.max(a.r,0),l=(s-o)*.5,u=o+l,f=a.startAngle,h=a.endAngle,v=a.clockwise,c=Math.PI*2,p=v?h-fMath.PI/2&&fs)return!0;s=h}return!1},e.prototype._isOrderDifferentInView=function(t,a){for(var n=a.scale,i=n.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],n.getOrdinalMeta().categories.length-1);o<=s;++o)if(t.ordinalNumbers[o]!==n.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(t,a,n,i){if(!!this._isOrderChangedWithinSameData(t,a,n)){var o=this._dataSort(t,n,a);this._isOrderDifferentInView(o,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(t,a,n){var i=a.baseAxis,o=this._dataSort(t,i,function(s){return t.get(t.mapDimension(a.otherAxis.dim),s)});n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},e.prototype.remove=function(t,a){this._clear(this._model),this._removeOnRenderedListener(a)},e.prototype.dispose=function(t,a){this._removeOnRenderedListener(a)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var a=this.group,n=this._data;t&&t.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(i){tl(i,t,nt(i).dataIndex)})):a.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(zt),cT={cartesian2d:function(r,e){var t=e.width<0?-1:1,a=e.height<0?-1:1;t<0&&(e.x+=e.width,e.width=-e.width),a<0&&(e.y+=e.height,e.height=-e.height);var n=r.x+r.width,i=r.y+r.height,o=Jd(e.x,r.x),s=tg(e.x+e.width,n),l=Jd(e.y,r.y),u=tg(e.y+e.height,i),f=sn?s:o,e.y=h&&l>i?u:l,e.width=f?0:s-o,e.height=h?0:u-l,t<0&&(e.x+=e.width,e.width=-e.width),a<0&&(e.y+=e.height,e.height=-e.height),f||h},polar:function(r,e){var t=e.r0<=e.r?1:-1;if(t<0){var a=e.r;e.r=e.r0,e.r0=a}var n=tg(e.r,r.r),i=Jd(e.r0,r.r0);e.r=n,e.r0=i;var o=n-i<0;if(t<0){var a=e.r;e.r=e.r0,e.r0=a}return o}},pT={cartesian2d:function(r,e,t,a,n,i,o,s,l){var u=new bt({shape:B({},a),z2:1});if(u.__dataIndex=t,u.name="item",i){var f=u.shape,h=n?"height":"width";f[h]=0}return u},polar:function(r,e,t,a,n,i,o,s,l){var u=!n&&l?Ah:Ue,f=new u({shape:a,z2:1});f.name="item";var h=mT(n);if(f.calculateTextPosition=Mz(h,{isRoundCap:u===Ah}),i){var v=f.shape,c=n?"r":"endAngle",p={};v[c]=n?0:a.startAngle,p[c]=a[c],(s?At:Ht)(f,{shape:p},i)}return f}};function Pz(r,e){var t=r.get("realtimeSort",!0),a=e.getBaseAxis();if(t&&a.type==="category"&&e.type==="cartesian2d")return{baseAxis:a,otherAxis:e.getOtherAxis(a)}}function dT(r,e,t,a,n,i,o,s){var l,u;i?(u={x:a.x,width:a.width},l={y:a.y,height:a.height}):(u={y:a.y,height:a.height},l={x:a.x,width:a.width}),s||(o?At:Ht)(t,{shape:l},e,n,null);var f=e?r.baseAxis.model:null;(o?At:Ht)(t,{shape:u},f,n)}function gT(r,e){for(var t=0;t0?1:-1,o=a.height>0?1:-1;return{x:a.x+i*n/2,y:a.y+o*n/2,width:a.width-i*n,height:a.height-o*n}},polar:function(r,e,t){var a=r.getItemLayout(e);return{cx:a.cx,cy:a.cy,r0:a.r0,r:a.r,startAngle:a.startAngle,endAngle:a.endAngle,clockwise:a.clockwise}}};function kz(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function mT(r){return function(e){var t=e?"Arc":"Angle";return function(a){switch(a){case"start":case"insideStart":case"end":case"insideEnd":return a+t;default:return a}}}(r)}function _T(r,e,t,a,n,i,o,s){var l=e.getItemVisual(t,"style");s||r.setShape("r",a.get(["itemStyle","borderRadius"])||0),r.useStyle(l);var u=a.getShallow("cursor");u&&r.attr("cursor",u);var f=s?o?n.r>=n.r0?"endArc":"startArc":n.endAngle>=n.startAngle?"endAngle":"startAngle":o?n.height>=0?"bottom":"top":n.width>=0?"right":"left",h=ue(a);xe(r,h,{labelFetcher:i,labelDataIndex:t,defaultText:$o(i.getData(),t),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:f});var v=r.getTextContent();if(s&&v){var c=a.get(["label","position"]);r.textConfig.inside=c==="middle"?!0:null,Dz(r,c==="outside"?f:c,mT(o),a.get(["label","rotate"]))}I1(v,h,i.getRawValue(t),function(d){return Hw(e,d)});var p=a.getModel(["emphasis"]);Yt(r,p.get("focus"),p.get("blurScope"),p.get("disabled")),Se(r,a),kz(n)&&(r.style.fill="none",r.style.stroke="none",A(r.states,function(d){d.style&&(d.style.fill=d.style.stroke="none")}))}function Oz(r,e){var t=r.get(["itemStyle","borderColor"]);if(!t||t==="none")return 0;var a=r.get(["itemStyle","borderWidth"])||0,n=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),i=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(a,n,i)}var Nz=function(){function r(){}return r}(),ST=function(r){k(e,r);function e(t){var a=r.call(this,t)||this;return a.type="largeBar",a}return e.prototype.getDefaultShape=function(){return new Nz},e.prototype.buildPath=function(t,a){for(var n=a.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f=0?t:null},30,!1);function Bz(r,e,t){for(var a=r.baseDimIdx,n=1-a,i=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,f=0,h=i.length/3;f=s[0]&&e<=s[0]+l[0]&&t>=s[1]&&t<=s[1]+l[1])return o[f]}return-1}function wT(r,e,t){if(Gi(t,"cartesian2d")){var a=e,n=t.getArea();return{x:r?a.x:n.x,y:r?n.y:a.y,width:r?a.width:n.width,height:r?n.height:a.height}}else{var n=t.getArea(),i=e;return{cx:n.cx,cy:n.cy,r0:r?n.r0:i.r0,r:r?n.r:i.r,startAngle:r?i.startAngle:0,endAngle:r?i.endAngle:Math.PI*2}}}function Vz(r,e,t){var a=r.type==="polar"?Ue:bt;return new a({shape:wT(e,t,r),silent:!0,z2:0})}var zz=Iz;function Gz(r){r.registerChartView(zz),r.registerSeriesModel(Tz),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,it(lT,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,uT("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,nT("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,t){var a=e.componentType||"series";t.eachComponent({mainType:a,query:e},function(n){e.sortInfo&&n.axis.setCategorySortInfo(e.sortInfo)})})}var Ih=Math.PI*2,TT=Math.PI/180;function CT(r,e){return oe(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function AT(r,e){var t=CT(r,e),a=r.get("center"),n=r.get("radius");z(n)||(n=[0,n]);var i=H(t.width,e.getWidth()),o=H(t.height,e.getHeight()),s=Math.min(i,o),l=H(n[0],s/2),u=H(n[1],s/2),f,h,v=r.coordinateSystem;if(v){var c=v.dataToPoint(a);f=c[0]||0,h=c[1]||0}else z(a)||(a=[a,a]),f=H(a[0],i)+t.x,h=H(a[1],o)+t.y;return{cx:f,cy:h,r0:l,r:u}}function Fz(r,e,t){e.eachSeriesByType(r,function(a){var n=a.getData(),i=n.mapDimension("value"),o=CT(a,t),s=AT(a,t),l=s.cx,u=s.cy,f=s.r,h=s.r0,v=-a.get("startAngle")*TT,c=a.get("minAngle")*TT,p=0;n.each(i,function(M){!isNaN(M)&&p++});var d=n.getSum(i),g=Math.PI/(d||p)*2,y=a.get("clockwise"),m=a.get("roseType"),_=a.get("stillShowZeroSum"),S=n.getDataExtent(i);S[0]=0;var b=Ih,x=0,w=v,T=y?1:-1;if(n.setLayout({viewRect:o,r:f}),n.each(i,function(M,D){var L;if(isNaN(M)){n.setItemLayout(D,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:y,cx:l,cy:u,r0:h,r:m?NaN:f});return}m!=="area"?L=d===0&&_?g:M*g:L=Ih/p,Lt?y:g,b=Math.abs(_.label.y-t);if(b>=S.maxY){var x=_.label.x-e-_.len2*n,w=a+_.len,T=Math.abs(x)r.unconstrainedWidth?null:c:null;a.setStyle("width",p)}var d=a.getBoundingRect();i.width=d.width;var g=(a.style.margin||0)+2.1;i.height=d.height+g,i.y-=(i.height-h)/2}}}function eg(r){return r.position==="center"}function Uz(r){var e=r.getData(),t=[],a,n,i=!1,o=(r.get("minShowLabelAngle")||0)*Hz,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,f=s.x,h=s.y,v=s.height;function c(x){x.ignore=!0}function p(x){if(!x.ignore)return!0;for(var w in x.states)if(x.states[w].ignore===!1)return!0;return!1}e.each(function(x){var w=e.getItemGraphicEl(x),T=w.shape,C=w.getTextContent(),M=w.getTextGuideLine(),D=e.getItemModel(x),L=D.getModel("label"),I=L.get("position")||D.get(["emphasis","label","position"]),P=L.get("distanceToLabelLine"),R=L.get("alignTo"),E=H(L.get("edgeDistance"),u),N=L.get("bleedMargin"),O=D.getModel("labelLine"),V=O.get("length");V=H(V,u);var F=O.get("length2");if(F=H(F,u),Math.abs(T.endAngle-T.startAngle)0?"right":"left":X>0?"left":"right"}var qt=Math.PI,Xt=0,Le=L.get("rotate");if(Tt(Le))Xt=Le*(qt/180);else if(I==="center")Xt=0;else if(Le==="radial"||Le===!0){var Ya=X<0?-W+qt:-W;Xt=Ya}else if(Le==="tangential"&&I!=="outside"&&I!=="outer"){var je=Math.atan2(X,Q);je<0&&(je=qt*2+je);var Ev=Q>0;Ev&&(je=qt+je),Xt=je-qt}if(i=!!Xt,C.x=J,C.y=dt,C.rotation=Xt,C.setStyle({verticalAlign:"middle"}),at){C.setStyle({align:gt});var qm=C.states.select;qm&&(qm.x+=C.x,qm.y+=C.y)}else{var kn=C.getBoundingRect().clone();kn.applyTransform(C.getComputedTransform());var sP=(C.style.margin||0)+2.1;kn.y-=sP/2,kn.height+=sP,t.push({label:C,labelLine:M,position:I,len:V,len2:F,minTurnAngle:O.get("minTurnAngle"),maxSurfaceAngle:O.get("maxSurfaceAngle"),surfaceNormal:new lt(X,Q),linePoints:Dt,textAlign:gt,labelDistance:P,labelAlignTo:R,edgeDistance:E,bleedMargin:N,rect:kn,unconstrainedWidth:kn.width,labelStyleWidth:C.style.width})}w.setTextConfig({inside:at})}}),!i&&r.get("avoidLabelOverlap")&&Wz(t,a,n,l,u,v,f,h);for(var d=0;d0){for(var f=o.getItemLayout(0),h=1;isNaN(f&&f.startAngle)&&h=i.r0}},e.type="pie",e}(zt),Xz=Zz;function Jo(r,e,t){e=z(e)&&{coordDimensions:e}||B({encodeDefine:r.getEncode()},e);var a=r.getSource(),n=qo(a,e).dimensions,i=new Be(n,r);return i.initData(a,t),i}var Kz=function(){function r(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return r.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},r.prototype.containName=function(e){var t=this._getRawData();return t.indexOfName(e)>=0},r.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},r.prototype.getItemVisual=function(e,t){var a=this._getDataWithEncodedVisual();return a.getItemVisual(e,t)},r}(),Hl=Kz,qz=xt(),jz=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Hl(Y(this.getData,this),Y(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return Jo(this,{coordDimensions:["value"],encodeDefaulter:it(Mp,this)})},e.prototype.getDataParams=function(t){var a=this.getData(),n=qz(a),i=n.seats;if(!i){var o=[];a.each(a.mapDimension("value"),function(l){o.push(l)}),i=n.seats=l_(o,a.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,t);return s.percent=i[t]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(t){ei(t,"labelLine",["show"]);var a=t.labelLine,n=t.emphasis.labelLine;a.show=a.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(Wt),$z=jz;function Qz(r){return{seriesType:r,reset:function(e,t){var a=e.getData();a.filterSelf(function(n){var i=a.mapDimension("value"),o=a.get(i,n);return!(Tt(o)&&!isNaN(o)&&o<0)})}}}function Jz(r){r.registerChartView(Xz),r.registerSeriesModel($z),ib("pie",r.registerAction),r.registerLayout(it(Fz,"pie")),r.registerProcessor(Fl("pie")),r.registerProcessor(Qz("pie"))}var t5=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,a){return Ba(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return t==null?this.option.large?5e3:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t==null?this.option.large?1e4:this.get("progressiveThreshold"):t},e.prototype.brushSelector=function(t,a,n){return n.point(a.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},e}(Wt),e5=t5,LT=4,r5=function(){function r(){}return r}(),a5=function(r){k(e,r);function e(t){var a=r.call(this,t)||this;return a._off=0,a.hoverDataIdx=-1,a}return e.prototype.getDefaultShape=function(){return new r5},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,a){var n=a.points,i=a.size,o=this.symbolProxy,s=o.shape,l=t.getContext?t.getContext():t,u=l&&i[0]=0;u--){var f=u*2,h=i[f]-s/2,v=i[f+1]-l/2;if(t>=h&&a>=v&&t<=h+s&&a<=v+l)return u}return-1},e.prototype.contain=function(t,a){var n=this.transformCoordToLocal(t,a),i=this.getBoundingRect();if(t=n[0],a=n[1],i.contain(t,a)){var o=this.hoverDataIdx=this.findDataIndex(t,a);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var a=this.shape,n=a.points,i=a.size,o=i[0],s=i[1],l=Infinity,u=Infinity,f=-Infinity,h=-Infinity,v=0;v=0&&(u.dataIndex=h+(e.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}(),i5=n5,o5=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i=t.getData(),o=this._updateSymbolDraw(i,t);o.updateData(i,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,a,n){var i=t.getData(),o=this._updateSymbolDraw(i,t);o.incrementalPrepareUpdate(i),this._finished=!1},e.prototype.incrementalRender=function(t,a,n){this._symbolDraw.incrementalUpdate(t,a.getData(),{clipShape:this._getClipShape(a)}),this._finished=t.end===a.getData().count()},e.prototype.updateTransform=function(t,a,n){var i=t.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=Gl("").reset(t,a,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){var a=t.coordinateSystem,n=a&&a.getArea&&a.getArea();return t.get("clip",!0)?n:null},e.prototype._updateSymbolDraw=function(t,a){var n=this._symbolDraw,i=a.pipelineContext,o=i.large;return(!n||o!==this._isLargeDraw)&&(n&&n.remove(),n=this._symbolDraw=o?new i5:new zl,this._isLargeDraw=o,this.group.removeAll()),this.group.add(n.group),n},e.prototype.remove=function(t,a){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(zt),s5=o5,l5=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(Mt),u5=l5,Wl=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},r.prototype.getCoordSysModel=function(){},r}(),rg=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",te).models[0]},e.type="cartesian2dAxis",e}(Mt);Jt(rg,Wl);var Hq=null,IT={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},f5=ot({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},IT),ag=ot({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},IT),h5=ot({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},ag),v5=K({logBase:10},ag),PT={category:f5,value:ag,time:h5,log:v5},c5=0,p5=function(){function r(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++c5}return r.createByAxisModel=function(e){var t=e.option,a=t.data,n=a&&G(a,d5);return new r({categories:n,needCollect:!n,deduplication:t.dedplication!==!1})},r.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},r.prototype.parseAndCollect=function(e){var t,a=this._needCollect;if(!U(e)&&!a)return e;if(a&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var n=this._getOrCreateMap();return t=n.get(e),t==null&&(a?(t=this.categories.length,this.categories[t]=e,n.set(e,t)):t=NaN),t},r.prototype._getOrCreateMap=function(){return this._map||(this._map=q(this.categories))},r}();function d5(r){return et(r)&&r.value!=null?r.value:r+""}var ng=p5,g5={value:1,category:1,time:1,log:1};function ts(r,e,t,a){A(g5,function(n,i){var o=ot(ot({},PT[i],!0),a,!0),s=function(l){k(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=e+"Axis."+i,f}return u.prototype.mergeDefaultAndTheme=function(f,h){var v=il(this),c=v?Po(f):{},p=h.getTheme();ot(f,p.get(i+"Axis")),ot(f,this.getDefaultOption()),f.type=RT(f),v&&pn(f,c,v)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=ng.createByAxisModel(this))},u.prototype.getCategories=function(f){var h=this.option;if(h.type==="category")return f?h.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=e+"Axis."+i,u.defaultOption=o,u}(t);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(e+"Axis",RT)}function RT(r){return r.type||(r.data?"category":"value")}var ET=function(){function r(e){this._setting=e||{},this._extent=[Infinity,-Infinity]}return r.prototype.getSetting=function(e){return this._setting[e]},r.prototype.unionExtent=function(e){var t=this._extent;e[0]t[1]&&(t[1]=e[1])},r.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(e,t){var a=this._extent;isNaN(e)||(a[0]=e),isNaN(t)||(a[1]=t)},r.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(e){this._isBlank=e},r}();of(ET);var Va=ET;function Wq(r){var e=Math.pow(10,quantityExponent(Math.abs(r))),t=Math.abs(r/e);return t===0||t===1||t===2||t===3||t===5}function ig(r){return r.type==="interval"||r.type==="log"}function y5(r,e,t,a){var n={},i=r[1]-r[0],o=n.interval=h_(i/e,!0);t!=null&&oa&&(o=n.interval=a);var s=n.intervalPrecision=kT(o),l=n.niceTickExtent=[Kt(Math.ceil(r[0]/o)*o,s),Kt(Math.floor(r[1]/o)*o,s)];return m5(l,r),n}function og(r){var e=Math.pow(10,kc(r)),t=r/e;return t?t===2?t=3:t===3?t=5:t*=2:t=1,Kt(t*e)}function kT(r){return ta(r)+2}function OT(r,e,t){r[e]=Math.max(Math.min(r[e],t[1]),t[0])}function m5(r,e){!isFinite(r[0])&&(r[0]=e[0]),!isFinite(r[1])&&(r[1]=e[1]),OT(r,0,e),OT(r,1,e),r[0]>r[1]&&(r[0]=r[1])}function Ph(r,e){return r>=e[0]&&r<=e[1]}function Rh(r,e){return e[1]===e[0]?.5:(r-e[0])/(e[1]-e[0])}function Eh(r,e){return r*(e[1]-e[0])+e[0]}var NT=function(r){k(e,r);function e(t){var a=r.call(this,t)||this;a.type="ordinal";var n=a.getSetting("ordinalMeta");return n||(n=new ng({})),z(n)&&(n=new ng({categories:G(n,function(i){return et(i)?i.value:i})})),a._ordinalMeta=n,a._extent=a.getSetting("extent")||[0,n.categories.length-1],a}return e.prototype.parse=function(t){return t==null?NaN:U(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return t=this.parse(t),Ph(t,this._extent)&&this._ordinalMeta.categories[t]!=null},e.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),Rh(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(Eh(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],a=this._extent,n=a[0];n<=a[1];)t.push({value:n}),n++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(t==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var a=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,a.length);o=0&&t=0&&t=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(Va);Va.registerClass(NT);var sg=NT,Fi=Kt,BT=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return Ph(t,this._extent)},e.prototype.normalize=function(t){return Rh(t,this._extent)},e.prototype.scale=function(t){return Eh(t,this._extent)},e.prototype.setExtent=function(t,a){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(a)||(n[1]=parseFloat(a))},e.prototype.unionExtent=function(t){var a=this._extent;t[0]a[1]&&(a[1]=t[1]),this.setExtent(a[0],a[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=kT(t)},e.prototype.getTicks=function(t){var a=this._interval,n=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=[];if(!a)return s;var l=1e4;n[0]l)return[];var f=s.length?s[s.length-1].value:i[1];return n[1]>f&&(t?s.push({value:Fi(f+a,o)}):s.push({value:n[1]})),s},e.prototype.getMinorTicks=function(t){for(var a=this.getTicks(!0),n=[],i=this.getExtent(),o=1;oi[0]&&c>>1;r[n][1]n&&(this._approxInterval=n);var s=kh.length,l=Math.min(_5(kh,this._approxInterval,0,s),s-1);this._interval=kh[l][1],this._minLevelUnit=kh[Math.max(l-1,0)][0]},e.prototype.parse=function(t){return Tt(t)?t:+ea(t)},e.prototype.contain=function(t){return Ph(this.parse(t),this._extent)},e.prototype.normalize=function(t){return Rh(this.parse(t),this._extent)},e.prototype.scale=function(t){return Eh(t,this._extent)},e.type="time",e}(Tn),kh=[["second",Sp],["minute",xp],["hour",rl],["quarter-day",rl*6],["half-day",rl*12],["day",yr*1.2],["half-week",yr*3.5],["week",yr*7],["month",yr*31],["quarter",yr*95],["half-year",N1/2],["year",N1]];function S5(r,e,t,a){var n=ea(e),i=ea(t),o=function(p){return G1(n,p,a)===G1(i,p,a)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},f=function(){return u()&&o("hour")},h=function(){return f()&&o("minute")},v=function(){return h()&&o("second")},c=function(){return v()&&o("millisecond")};switch(r){case"year":return s();case"month":return l();case"day":return u();case"hour":return f();case"minute":return h();case"second":return v();case"millisecond":return c()}}function x5(r,e){return r/=yr,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function b5(r){var e=30*yr;return r/=e,r>6?6:r>3?3:r>2?2:1}function w5(r){return r/=rl,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function zT(r,e){return r/=e?xp:Sp,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function T5(r){return h_(r,!0)}function C5(r,e,t){var a=new Date(r);switch(Do(e)){case"year":case"month":a[F1(t)](0);case"day":a[H1(t)](1);case"hour":a[W1(t)](0);case"minute":a[U1(t)](0);case"second":a[Y1(t)](0),a[Z1(t)](0)}return a.getTime()}function A5(r,e,t,a){var n=1e4,i=V1,o=0;function s(M,D,L,I,P,R,E){for(var N=new Date(D),O=D,V=N[I]();O1&&R===0&&L.unshift({value:L[0].value-O})}}for(var R=0;R=a[0]&&m<=a[1]&&h++)}var _=(a[1]-a[0])/e;if(h>_*1.5&&v>_/1.5||(u.push(g),h>_||r===i[c]))break}f=[]}}}for(var S=Rt(G(u,function(M){return Rt(M,function(D){return D.value>=a[0]&&D.value<=a[1]&&!D.notAdd})}),function(M){return M.length>0}),b=[],x=S.length-1,c=0;c0;)i*=10;var s=[Kt(L5(a[0]/i)*i),Kt(D5(a[1]/i)*i)];this._interval=i,this._niceExtent=s}},e.prototype.calcNiceExtent=function(t){Ul.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return t=Ur(t)/Ur(this.base),Ph(t,this._extent)},e.prototype.normalize=function(t){return t=Ur(t)/Ur(this.base),Rh(t,this._extent)},e.prototype.scale=function(t){return t=Eh(t,this._extent),Oh(this.base,t)},e.type="log",e}(Va),HT=lg.prototype;HT.getMinorTicks=Ul.getMinorTicks,HT.getLabel=Ul.getLabel;function Nh(r,e){return M5(r,ta(e))}Va.registerClass(lg);var I5=lg,P5=function(){function r(e,t,a){this._prepareParams(e,t,a)}return r.prototype._prepareParams=function(e,t,a){a[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!f&&(l=0));var v=this._determinedMin,c=this._determinedMax;return v!=null&&(s=v,u=!0),c!=null&&(l=c,f=!0),{min:s,max:l,minFixed:u,maxFixed:f,isBlank:h}},r.prototype.modifyDataMinMax=function(e,t){this[E5[e]]=t},r.prototype.setDeterminedMinMax=function(e,t){var a=R5[e];this[a]=t},r.prototype.freeze=function(){this.frozen=!0},r}(),R5={min:"_determinedMin",max:"_determinedMax"},E5={min:"_dataMin",max:"_dataMax"};function WT(r,e,t){var a=r.rawExtentInfo;return a||(a=new P5(r,e,t),r.rawExtentInfo=a,a)}function Bh(r,e){return e==null?null:Ts(e)?NaN:r.parse(e)}function UT(r,e){var t=r.type,a=WT(r,e,r.getExtent()).calculate();r.setBlank(a.isBlank);var n=a.min,i=a.max,o=e.ecModel;if(o&&t==="time"){var s=iT("bar",o),l=!1;if(A(s,function(h){l=l||h.getBaseAxis()===e.axis}),l){var u=oT(s),f=k5(n,i,e,u);n=f.min,i=f.max}}return{extent:[n,i],fixMin:a.minFixed,fixMax:a.maxFixed}}function k5(r,e,t,a){var n=t.axis.getExtent(),i=n[1]-n[0],o=xz(a,t.axis);if(o===void 0)return{min:r,max:e};var s=Infinity;A(o,function(c){s=Math.min(c.offset,s)});var l=-Infinity;A(o,function(c){l=Math.max(c.offset+c.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,f=e-r,h=1-(s+l)/i,v=f/h-f;return e+=v*(l/u),r-=v*(s/u),{min:r,max:e}}function es(r,e){var t=e,a=UT(r,t),n=a.extent,i=t.get("splitNumber");r instanceof I5&&(r.base=t.get("logBase"));var o=r.type,s=t.get("interval"),l=o==="interval"||o==="time";r.setExtent(n[0],n[1]),r.calcNiceExtent({splitNumber:i,fixMin:a.fixMin,fixMax:a.fixMax,minInterval:l?t.get("minInterval"):null,maxInterval:l?t.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function Vh(r,e){if(e=e||r.get("type"),e)switch(e){case"category":return new sg({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[Infinity,-Infinity]});case"time":return new GT({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(Va.getClass(e)||Tn)}}function O5(r){var e=r.scale.getExtent(),t=e[0],a=e[1];return!(t>0&&a>0||t<0&&a<0)}function Yl(r){var e=r.getLabelModel().get("formatter"),t=r.type==="category"?r.scale.getExtent()[0]:null;return r.scale.type==="time"?function(a){return function(n,i){return r.scale.getFormattedLabel(n,i,a)}}(e):U(e)?function(a){return function(n){var i=r.scale.getLabel(n),o=a.replace("{value}",i!=null?i:"");return o}}(e):$(e)?function(a){return function(n,i){return t!=null&&(i=n.value-t),a(ug(r,n),i,n.level!=null?{level:n.level}:null)}}(e):function(a){return r.scale.getLabel(a)}}function ug(r,e){return r.type==="category"?r.scale.getLabel(e):e.value}function N5(r){var e=r.model,t=r.scale;if(!(!e.get(["axisLabel","show"])||t.isBlank())){var a,n,i=t.getExtent();t instanceof sg?n=t.count():(a=t.getTicks(),n=a.length);var o=r.getLabelModel(),s=Yl(r),l,u=1;n>40&&(u=Math.ceil(n/40));for(var f=0;fr[1]&&(r[1]=n[1])})}var z5=function(){function r(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return r.prototype.getAxis=function(e){return this._axes[e]},r.prototype.getAxes=function(){return G(this._dimList,function(e){return this._axes[e]},this)},r.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),Rt(this.getAxes(),function(t){return t.scale.type===e})},r.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},r}(),G5=z5,hg=["x","y"];function ZT(r){return r.type==="interval"||r.type==="time"}var F5=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=hg,t}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,a=this.getAxis("y").scale;if(!(!ZT(t)||!ZT(a))){var n=t.getExtent(),i=a.getExtent(),o=this.dataToPoint([n[0],i[0]]),s=this.dataToPoint([n[1],i[1]]),l=n[1]-n[0],u=i[1]-i[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,h=(s[1]-o[1])/u,v=o[0]-n[0]*f,c=o[1]-i[0]*h,p=this._transform=[f,0,0,h,v,c];this._invTransform=ho([],p)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var a=this.getAxis("x"),n=this.getAxis("y");return a.contain(a.toLocalCoord(t[0]))&&n.contain(n.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,a){var n=this.dataToPoint(t),i=this.dataToPoint(a),o=this.getArea(),s=new ht(n[0],n[1],i[0]-n[0],i[1]-n[1]);return o.intersect(s)},e.prototype.dataToPoint=function(t,a,n){n=n||[];var i=t[0],o=t[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return me(n,t,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return n[0]=s.toGlobalCoord(s.dataToCoord(i,a)),n[1]=l.toGlobalCoord(l.dataToCoord(o,a)),n},e.prototype.clampData=function(t,a){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,o=n.getExtent(),s=i.getExtent(),l=n.parse(t[0]),u=i.parse(t[1]);return a=a||[],a[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),a[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),a},e.prototype.pointToData=function(t,a){var n=[];if(this._invTransform)return me(n,t,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(t[0]),a),n[1]=o.coordToData(o.toLocalCoord(t[1]),a),n},e.prototype.getOtherAxis=function(t){return this.getAxis(t.dim==="x"?"y":"x")},e.prototype.getArea=function(){var t=this.getAxis("x").getGlobalExtent(),a=this.getAxis("y").getGlobalExtent(),n=Math.min(t[0],t[1]),i=Math.min(a[0],a[1]),o=Math.max(t[0],t[1])-n,s=Math.max(a[0],a[1])-i;return new ht(n,i,o,s)},e}(G5),H5=F5,Zl=xt();function W5(r){return r.type==="category"?Y5(r):X5(r)}function U5(r,e){return r.type==="category"?Z5(r,e):{ticks:G(r.scale.getTicks(),function(t){return t.value})}}function Y5(r){var e=r.getLabelModel(),t=XT(r,e);return!e.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:t.labelCategoryInterval}:t}function XT(r,e){var t=KT(r,"labels"),a=fg(e),n=qT(t,a);if(n)return n;var i,o;return $(a)?i=QT(r,a):(o=a==="auto"?K5(r):a,i=$T(r,o)),jT(t,a,{labels:i,labelCategoryInterval:o})}function Z5(r,e){var t=KT(r,"ticks"),a=fg(e),n=qT(t,a);if(n)return n;var i,o;if((!e.get("show")||r.scale.isBlank())&&(i=[]),$(a))i=QT(r,a,!0);else if(a==="auto"){var s=XT(r,r.getLabelModel());o=s.labelCategoryInterval,i=G(s.labels,function(l){return l.tickValue})}else o=a,i=$T(r,o,!0);return jT(t,a,{ticks:i,tickCategoryInterval:o})}function X5(r){var e=r.scale.getTicks(),t=Yl(r);return{labels:G(e,function(a,n){return{level:a.level,formattedLabel:t(a,n),rawLabel:r.scale.getLabel(a),tickValue:a.value}})}}function KT(r,e){return Zl(r)[e]||(Zl(r)[e]=[])}function qT(r,e){for(var t=0;t40&&(s=Math.max(1,Math.floor(o/40)));for(var l=i[0],u=r.dataToCoord(l+1)-r.dataToCoord(l),f=Math.abs(u*Math.cos(a)),h=Math.abs(u*Math.sin(a)),v=0,c=0;l<=i[1];l+=s){var p=0,d=0,g=Gs(t({value:l}),e.font,"center","top");p=g.width*1.3,d=g.height*1.3,v=Math.max(v,p,7),c=Math.max(c,d,7)}var y=v/f,m=c/h;isNaN(y)&&(y=Infinity),isNaN(m)&&(m=Infinity);var _=Math.max(0,Math.floor(Math.min(y,m))),S=Zl(r.model),b=r.getExtent(),x=S.lastAutoInterval,w=S.lastTickCount;return x!=null&&w!=null&&Math.abs(x-_)<=1&&Math.abs(w-o)<=1&&x>_&&S.axisExtent0===b[0]&&S.axisExtent1===b[1]?_=x:(S.lastTickCount=o,S.lastAutoInterval=_,S.axisExtent0=b[0],S.axisExtent1=b[1]),_}function j5(r){var e=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function $T(r,e,t){var a=Yl(r),n=r.scale,i=n.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=i[0],f=n.count();u!==0&&l>1&&f/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=YT(r),v=o.get("showMinLabel")||h,c=o.get("showMaxLabel")||h;v&&u!==i[0]&&d(i[0]);for(var p=u;p<=i[1];p+=l)d(p);c&&p-l!==i[1]&&d(i[1]);function d(g){var y={value:g};s.push(t?g:{formattedLabel:a(y),rawLabel:n.getLabel(y),tickValue:g})}return s}function QT(r,e,t){var a=r.scale,n=Yl(r),i=[];return A(a.getTicks(),function(o){var s=a.getLabel(o),l=o.value;e(o.value,s)&&i.push(t?l:{formattedLabel:n(o),rawLabel:s,tickValue:l})}),i}var JT=[0,1],$5=function(){function r(e,t,a){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=a||[0,0]}return r.prototype.contain=function(e){var t=this._extent,a=Math.min(t[0],t[1]),n=Math.max(t[0],t[1]);return e>=a&&e<=n},r.prototype.containData=function(e){return this.scale.contain(e)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(e){return s_(e||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(e,t){var a=this._extent;a[0]=e,a[1]=t},r.prototype.dataToCoord=function(e,t){var a=this._extent,n=this.scale;return e=n.normalize(e),this.onBand&&n.type==="ordinal"&&(a=a.slice(),tC(a,n.count())),Pt(e,JT,a,t)},r.prototype.coordToData=function(e,t){var a=this._extent,n=this.scale;this.onBand&&n.type==="ordinal"&&(a=a.slice(),tC(a,n.count()));var i=Pt(e,a,JT,t);return this.scale.scale(i)},r.prototype.pointToData=function(e,t){},r.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),a=U5(this,t),n=a.ticks,i=G(n,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=t.get("alignWithLabel");return Q5(this,i,o,e.clamp),i},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var a=this.scale.getMinorTicks(t),n=G(a,function(i){return G(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return n},r.prototype.getViewLabels=function(){return W5(this).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),a=t[1]-t[0]+(this.onBand?1:0);a===0&&(a=1);var n=Math.abs(e[1]-e[0]);return Math.abs(n)/a},r.prototype.calculateCategoryInterval=function(){return q5(this)},r}();function tC(r,e){var t=r[1]-r[0],a=e,n=t/a/2;r[0]+=n,r[1]-=n}function Q5(r,e,t,a){var n=e.length;if(!r.onBand||t||!n)return;var i=r.getExtent(),o,s;if(n===1)e[0].coord=i[0],o=e[1]={coord:i[0]};else{var l=e[n-1].tickValue-e[0].tickValue,u=(e[n-1].coord-e[0].coord)/l;A(e,function(c){c.coord-=u/2});var f=r.scale.getExtent();s=1+f[1]-e[n-1].tickValue,o={coord:e[n-1].coord+u*s},e.push(o)}var h=i[0]>i[1];v(e[0].coord,i[0])&&(a?e[0].coord=i[0]:e.shift()),a&&v(i[0],e[0].coord)&&e.unshift({coord:i[0]}),v(i[1],o.coord)&&(a?o.coord=i[1]:e.pop()),a&&v(o.coord,i[1])&&e.push({coord:i[1]});function v(c,p){return c=Kt(c),p=Kt(p),h?c>p:ca[1]&&a.reverse(),a},e.prototype.pointToData=function(t,a){return this.coordToData(this.toLocalCoord(t[this.dim==="x"?0:1]),a)},e.prototype.setCategorySortInfo=function(t){if(this.type!=="category")return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(Yr),tG=J5;function vg(r,e,t){t=t||{};var a=r.coordinateSystem,n=e.axis,i={},o=n.getAxesOnZeroOf()[0],s=n.position,l=o?"onZero":s,u=n.dim,f=a.getRect(),h=[f.x,f.x+f.width,f.y,f.y+f.height],v={left:0,right:1,top:0,bottom:1,onZero:2},c=e.get("offset")||0,p=u==="x"?[h[2]-c,h[3]+c]:[h[0]-c,h[1]+c];if(o){var d=o.toGlobalCoord(o.dataToCoord(0));p[v.onZero]=Math.max(Math.min(d,p[1]),p[0])}i.position=[u==="y"?p[v[l]]:h[0],u==="x"?p[v[l]]:h[3]],i.rotation=Math.PI/2*(u==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=g[s],i.labelOffset=o?p[v[s]]-p[v.onZero]:0,e.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),ce(t.labelInside,e.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var y=e.get(["axisLabel","rotate"]);return i.labelRotate=l==="top"?-y:y,i.z2=1,i}function eC(r){return r.get("coordinateSystem")==="cartesian2d"}function rC(r){var e={xAxisModel:null,yAxisModel:null};return A(e,function(t,a){var n=a.replace(/Model$/,""),i=r.getReferringComponents(n,te).models[0];e[a]=i}),e}var cg=Math.log;function aC(r,e,t){var a=Tn.prototype,n=a.getTicks.call(t),i=a.getTicks.call(t,!0),o=n.length-1,s=a.getInterval.call(t),l=UT(r,e),u=l.extent,f=l.fixMin,h=l.fixMax;if(r.type==="log"){var v=cg(r.base);u=[cg(u[0])/v,cg(u[1])/v]}r.setExtent(u[0],u[1]),r.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:h});var c=a.getExtent.call(r);f&&(u[0]=c[0]),h&&(u[1]=c[1]);var p=a.getInterval.call(r),d=u[0],g=u[1];if(f&&h)p=(g-d)/o;else if(f)for(g=u[0]+p*o;gu[0]&&isFinite(d)&&isFinite(u[0]);)p=og(p),d=u[1]-p*o;else{var y=r.getTicks().length-1;y>o&&(p=og(p));var m=p*o;g=Math.ceil(u[1]/p)*p,d=Kt(g-m),d<0&&u[0]>=0?(d=0,g=Kt(m)):g>0&&u[1]<=0&&(g=0,d=-Kt(m))}var _=(n[0].value-i[0].value)/s,S=(n[o].value-i[o].value)/s;if(a.setExtent.call(r,d+p*_,g+p*S),a.setInterval.call(r,p),(_||S)&&a.setNiceExtent.call(r,d+p,g-p),!1)var b}var eG=function(){function r(e,t,a){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=hg,this._initCartesian(e,t,a),this.model=e}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(e,t){var a=this._axesMap;this._updateScale(e,this.model);function n(o){var s,l=St(o),u=l.length;if(!!u){for(var f=[],h=u-1;h>=0;h--){var v=+l[h],c=o[v],p=c.model,d=c.scale;ig(d)&&p.get("alignTicks")&&p.get("interval")==null?f.push(c):(es(d,p),ig(d)&&(s=c))}f.length&&(s||(s=f.pop(),es(s.scale,s.model)),A(f,function(g){aC(g.scale,g.model,s.scale)}))}}n(a.x),n(a.y);var i={};A(a.x,function(o){nC(a,"y",o,i)}),A(a.y,function(o){nC(a,"x",o,i)}),this.resize(this.model,t)},r.prototype.resize=function(e,t,a){var n=e.getBoxLayoutParams(),i=!a&&e.get("containLabel"),o=oe(n,{width:t.getWidth(),height:t.getHeight()});this._rect=o;var s=this._axesList;l(),i&&(A(s,function(u){if(!u.model.get(["axisLabel","inside"])){var f=N5(u);if(f){var h=u.isHorizontal()?"height":"width",v=u.model.get(["axisLabel","margin"]);o[h]-=f[h]+v,u.position==="top"?o.y+=f.height+v:u.position==="left"&&(o.x+=f.width+v)}}}),l()),A(this._coordsList,function(u){u.calcAffineTransform()});function l(){A(s,function(u){var f=u.isHorizontal(),h=f?[0,o.width]:[0,o.height],v=u.inverse?1:0;u.setExtent(h[v],h[1-v]),rG(u,f?o.x:o.y)})}},r.prototype.getAxis=function(e,t){var a=this._axesMap[e];if(a!=null)return a[t||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var a="x"+e+"y"+t;return this._coordsMap[a]}et(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var n=0,i=this._coordsList;n0?"top":"bottom",i="center"):nf(n-Cn)?(o=a>0?"bottom":"top",i="center"):(o="middle",n>0&&n0?"right":"left":i=a>0?"left":"right"),{rotation:n,textAlign:i,textVerticalAlign:o}},r.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},r.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},r}(),oC={axisLine:function(r,e,t,a){var n=e.get(["axisLine","show"]);if(n==="auto"&&r.handleAutoShown&&(n=r.handleAutoShown("axisLine")),!!n){var i=e.axis.getExtent(),o=a.transform,s=[i[0],0],l=[i[1],0],u=s[0]>l[0];o&&(me(s,s,o),me(l,l,o));var f=B({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new de({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:f,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});Go(h.shape,h.style.lineWidth),h.anid="line",t.add(h);var v=e.get(["axisLine","symbol"]);if(v!=null){var c=e.get(["axisLine","symbolSize"]);U(v)&&(v=[v,v]),(U(c)||Tt(c))&&(c=[c,c]);var p=Uo(e.get(["axisLine","symbolOffset"])||0,c),d=c[0],g=c[1];A([{rotate:r.rotation+Math.PI/2,offset:p[0],r:0},{rotate:r.rotation-Math.PI/2,offset:p[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(y,m){if(v[m]!=="none"&&v[m]!=null){var _=re(v[m],-d/2,-g/2,d,g,f.stroke,!0),S=y.r+y.offset,b=u?l:s;_.attr({rotation:y.rotate,x:b[0]+S*Math.cos(r.rotation),y:b[1]-S*Math.sin(r.rotation),silent:!0,z2:11}),t.add(_)}})}}},axisTickLabel:function(r,e,t,a){var n=oG(t,a,e,r),i=lG(t,a,e,r);if(iG(e,i,n),sG(t,a,e,r.tickDirection),e.get(["axisLabel","hideOverlap"])){var o=Jb(G(i,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));rw(o)}},axisName:function(r,e,t,a){var n=ce(r.axisName,e.get("name"));if(!!n){var i=e.get("nameLocation"),o=r.nameDirection,s=e.getModel("nameTextStyle"),l=e.get("nameGap")||0,u=e.axis.getExtent(),f=u[0]>u[1]?-1:1,h=[i==="start"?u[0]-f*l:i==="end"?u[1]+f*l:(u[0]+u[1])/2,lC(i)?r.labelOffset+o*l:0],v,c=e.get("nameRotate");c!=null&&(c=c*Cn/180);var p;lC(i)?v=Hi.innerTextLayout(r.rotation,c!=null?c:r.rotation,o):(v=nG(r.rotation,i,c||0,u),p=r.axisNameAvailableWidth,p!=null&&(p=Math.abs(p/Math.sin(v.rotation)),!isFinite(p)&&(p=null)));var d=s.getFont(),g=e.get("nameTruncate",!0)||{},y=g.ellipsis,m=ce(r.nameTruncateMaxWidth,g.maxWidth,p),_=new Ct({x:h[0],y:h[1],rotation:v.rotation,silent:Hi.isLabelSilent(e),style:Bt(s,{text:n,font:d,overflow:"truncate",width:m,ellipsis:y,fill:s.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:s.get("align")||v.textAlign,verticalAlign:s.get("verticalAlign")||v.textVerticalAlign}),z2:1});if(Fo({el:_,componentModel:e,itemName:n}),_.__fullText=n,_.anid="name",e.get("triggerEvent")){var S=Hi.makeAxisEventDataBase(e);S.targetType="axisName",S.name=n,nt(_).eventData=S}a.add(_),_.updateTransform(),t.add(_),_.decomposeTransform()}}};function nG(r,e,t,a){var n=f_(t-r),i,o,s=a[0]>a[1],l=e==="start"&&!s||e!=="start"&&s;return nf(n-Cn/2)?(o=l?"bottom":"top",i="center"):nf(n-Cn*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",nCn/2?i=l?"left":"right":i=l?"right":"left"),{rotation:n,textAlign:i,textVerticalAlign:o}}function iG(r,e,t){if(!YT(r.axis)){var a=r.get(["axisLabel","showMinLabel"]),n=r.get(["axisLabel","showMaxLabel"]);e=e||[],t=t||[];var i=e[0],o=e[1],s=e[e.length-1],l=e[e.length-2],u=t[0],f=t[1],h=t[t.length-1],v=t[t.length-2];a===!1?(wr(i),wr(u)):sC(i,o)&&(a?(wr(o),wr(f)):(wr(i),wr(u))),n===!1?(wr(s),wr(h)):sC(l,s)&&(n?(wr(l),wr(v)):(wr(s),wr(h)))}}function wr(r){r&&(r.ignore=!0)}function sC(r,e){var t=r&&r.getBoundingRect().clone(),a=e&&e.getBoundingRect().clone();if(!(!t||!a)){var n=ku([]);return Zn(n,n,-r.rotation),t.applyTransform(Ca([],n,r.getLocalTransform())),a.applyTransform(Ca([],n,e.getLocalTransform())),t.intersect(a)}}function lC(r){return r==="middle"||r==="center"}function uC(r,e,t,a,n){for(var i=[],o=[],s=[],l=0;l=0||r===e}function pG(r){var e=gg(r);if(!!e){var t=e.axisPointerModel,a=e.axis.scale,n=t.option,i=t.get("status"),o=t.get("value");o!=null&&(o=a.parse(o));var s=yg(t);i==null&&(n.status=s?"show":"hide");var l=a.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o0&&!p.min?p.min=0:p.min!=null&&p.min<0&&!p.max&&(p.max=0);var d=l;p.color!=null&&(d=K({color:p.color},l));var g=ot(tt(p),{boundaryGap:t,splitNumber:a,scale:n,axisLine:i,axisTick:o,axisLabel:s,name:p.text,showName:u,nameLocation:"end",nameGap:h,nameTextStyle:d,triggerEvent:v},!1);if(U(f)){var y=g.name;g.name=f.replace("{value}",y!=null?y:"")}else $(f)&&(g.name=f(g.name,g));var m=new Vt(g,null,this.ecModel);return Jt(m,Wl.prototype),m.mainType="radar",m.componentIndex=this.componentIndex,m},this);this._indicatorModels=c},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:ot({lineStyle:{color:"#bbb"}},Kl.axisLine),axisLabel:Gh(Kl.axisLabel,!1),axisTick:Gh(Kl.axisTick,!1),splitLine:Gh(Kl.splitLine,!0),splitArea:Gh(Kl.splitArea,!0),indicator:[]},e}(Mt),IG=LG,PG=["axisLine","axisTickLabel","axisName"],RG=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i=this.group;i.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var a=t.coordinateSystem,n=a.getIndicatorAxes(),i=G(n,function(o){var s=o.model.get("showName")?o.name:"",l=new za(o.model,{axisName:s,position:[a.cx,a.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});A(i,function(o){A(PG,o.add,o),this.group.add(o.getGroup())},this)},e.prototype._buildSplitLineAndArea=function(t){var a=t.coordinateSystem,n=a.getIndicatorAxes();if(!n.length)return;var i=t.get("shape"),o=t.getModel("splitLine"),s=t.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),f=o.get("show"),h=s.get("show"),v=l.get("color"),c=u.get("color"),p=z(v)?v:[v],d=z(c)?c:[c],g=[],y=[];function m(R,E,N){var O=N%E.length;return R[O]=R[O]||[],O}if(i==="circle")for(var _=n[0].getTicksCoords(),S=a.cx,b=a.cy,x=0;x<_.length;x++){if(f){var w=m(g,p,x);g[w].push(new ua({shape:{cx:S,cy:b,r:_[x].coord}}))}if(h&&x<_.length-1){var w=m(y,d,x);y[w].push(new Hf({shape:{cx:S,cy:b,r0:_[x].coord,r:_[x+1].coord}}))}}else for(var T,C=G(n,function(R,E){var N=R.getTicksCoords();return T=T==null?N.length-1:Math.min(N.length-1,T),G(N,function(O){return a.coordToPoint(O.coord,E)})}),M=[],x=0;x<=T;x++){for(var D=[],L=0;L3?1.4:o>1?1.2:1.1,f=i>0?u:1/u;Sg(this,"zoom","zoomOnMouseWheel",t,{scale:f,originX:s,originY:l,isAvailableBehavior:null})}if(n){var h=Math.abs(i),v=(i>0?1:-1)*(h>3?.4:h>1?.15:.05);Sg(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:v,originX:s,originY:l,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){if(!SC(this._zr,"globalPan")){var a=t.pinchScale>1?1.1:1/1.1;Sg(this,"zoom",null,t,{scale:a,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e}(ur);function Sg(r,e,t,a,n){r.pointerChecker&&r.pointerChecker(a,n.originX,n.originY)&&(Ta(a.event),xC(r,e,t,a,n))}function xC(r,e,t,a,n){n.isAvailableBehavior=Y(Fh,null,t,a),r.trigger(e,n)}function Fh(r,e,t){var a=t[r];return!r||a&&(!U(a)||e.event[a+"Key"])}var ql=HG;function xg(r,e,t){var a=r.target;a.x+=e,a.y+=t,a.dirty()}function bg(r,e,t,a){var n=r.target,i=r.zoomLimit,o=r.zoom=r.zoom||1;if(o*=e,i){var s=i.min||0,l=i.max||Infinity;o=Math.max(Math.min(l,o),s)}var u=o/r.zoom;r.zoom=o,n.x-=(t-n.x)*(u-1),n.y-=(a-n.y)*(u-1),n.scaleX*=u,n.scaleY*=u,n.dirty()}var WG={axisPointer:1,tooltip:1,brush:1};function Hh(r,e,t){var a=e.getComponentByElement(r.topTarget),n=a&&a.coordinateSystem;return a&&a!==t&&!WG.hasOwnProperty(a.mainType)&&n&&n.model!==t}function bC(r){if(U(r)){var e=new DOMParser;r=e.parseFromString(r,"text/xml")}var t=r;for(t.nodeType===9&&(t=t.firstChild);t.nodeName.toLowerCase()!=="svg"||t.nodeType!==1;)t=t.nextSibling;return t}var wg,Wh={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},wC=St(Wh),Uh={"alignment-baseline":"textBaseline","stop-color":"stopColor"},TC=St(Uh),UG=function(){function r(){this._defs={},this._root=null}return r.prototype.parse=function(e,t){t=t||{};var a=bC(e);this._defsUsePending=[];var n=new rt;this._root=n;var i=[],o=a.getAttribute("viewBox")||"",s=parseFloat(a.getAttribute("width")||t.width),l=parseFloat(a.getAttribute("height")||t.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),nr(a,n,null,!0,!1);for(var u=a.firstChild;u;)this._parseNode(u,n,i,null,!1,!1),u=u.nextSibling;XG(this._defs,this._defsUsePending),this._defsUsePending=[];var f,h;if(o){var v=Yh(o);v.length>=4&&(f={x:parseFloat(v[0]||0),y:parseFloat(v[1]||0),width:parseFloat(v[2]),height:parseFloat(v[3])})}if(f&&s!=null&&l!=null&&(h=RC(f,{x:0,y:0,width:s,height:l}),!t.ignoreViewBox)){var c=n;n=new rt,n.add(c),c.scaleX=c.scaleY=h.scale,c.x=h.x,c.y=h.y}return!t.ignoreRootClip&&s!=null&&l!=null&&n.setClipPath(new bt({shape:{x:0,y:0,width:s,height:l}})),{root:n,width:s,height:l,viewBoxRect:f,viewBoxTransform:h,named:i}},r.prototype._parseNode=function(e,t,a,n,i,o){var s=e.nodeName.toLowerCase(),l,u=n;if(s==="defs"&&(i=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=t;else{if(!i){var f=wg[s];if(f&&Z(wg,s)){l=f.call(this,e,t);var h=e.getAttribute("name");if(h){var v={name:h,namedFrom:null,svgNodeTagLower:s,el:l};a.push(v),s==="g"&&(u=v)}else n&&a.push({name:n.name,namedFrom:n,svgNodeTagLower:s,el:l});t.add(l)}}var c=CC[s];if(c&&Z(CC,s)){var p=c.call(this,e),d=e.getAttribute("id");d&&(this._defs[d]=p)}}if(l&&l.isGroup)for(var g=e.firstChild;g;)g.nodeType===1?this._parseNode(g,l,a,u,i,o):g.nodeType===3&&o&&this._parseText(g,l),g=g.nextSibling},r.prototype._parseText=function(e,t){var a=new Ks({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Tr(t,a),nr(e,a,this._defsUsePending,!1,!1),YG(a,t);var n=a.style,i=n.fontSize;i&&i<9&&(n.fontSize=9,a.scaleX*=i/9,a.scaleY*=i/9);var o=(n.fontSize||n.fontFamily)&&[n.fontStyle,n.fontWeight,(n.fontSize||12)+"px",n.fontFamily||"sans-serif"].join(" ");n.font=o;var s=a.getBoundingRect();return this._textX+=s.width,t.add(a),a},r.internalField=function(){wg={g:function(e,t){var a=new rt;return Tr(t,a),nr(e,a,this._defsUsePending,!1,!1),a},rect:function(e,t){var a=new bt;return Tr(t,a),nr(e,a,this._defsUsePending,!1,!1),a.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")}),a.silent=!0,a},circle:function(e,t){var a=new ua;return Tr(t,a),nr(e,a,this._defsUsePending,!1,!1),a.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),a.silent=!0,a},line:function(e,t){var a=new de;return Tr(t,a),nr(e,a,this._defsUsePending,!1,!1),a.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")}),a.silent=!0,a},ellipse:function(e,t){var a=new Jp;return Tr(t,a),nr(e,a,this._defsUsePending,!1,!1),a.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")}),a.silent=!0,a},polygon:function(e,t){var a=e.getAttribute("points"),n;a&&(n=DC(a));var i=new Ye({shape:{points:n||[]},silent:!0});return Tr(t,i),nr(e,i,this._defsUsePending,!1,!1),i},polyline:function(e,t){var a=e.getAttribute("points"),n;a&&(n=DC(a));var i=new Ze({shape:{points:n||[]},silent:!0});return Tr(t,i),nr(e,i,this._defsUsePending,!1,!1),i},image:function(e,t){var a=new _e;return Tr(t,a),nr(e,a,this._defsUsePending,!1,!1),a.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),a.silent=!0,a},text:function(e,t){var a=e.getAttribute("x")||"0",n=e.getAttribute("y")||"0",i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(a)+parseFloat(i),this._textY=parseFloat(n)+parseFloat(o);var s=new rt;return Tr(t,s),nr(e,s,this._defsUsePending,!1,!0),s},tspan:function(e,t){var a=e.getAttribute("x"),n=e.getAttribute("y");a!=null&&(this._textX=parseFloat(a)),n!=null&&(this._textY=parseFloat(n));var i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",s=new rt;return Tr(t,s),nr(e,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),s},path:function(e,t){var a=e.getAttribute("d")||"",n=gx(a);return Tr(t,n),nr(e,n,this._defsUsePending,!1,!1),n.silent=!0,n}}}(),r}(),CC={lineargradient:function(r){var e=parseInt(r.getAttribute("x1")||"0",10),t=parseInt(r.getAttribute("y1")||"0",10),a=parseInt(r.getAttribute("x2")||"10",10),n=parseInt(r.getAttribute("y2")||"0",10),i=new gl(e,t,a,n);return AC(r,i),MC(r,i),i},radialgradient:function(r){var e=parseInt(r.getAttribute("cx")||"0",10),t=parseInt(r.getAttribute("cy")||"0",10),a=parseInt(r.getAttribute("r")||"0",10),n=new Rx(e,t,a);return AC(r,n),MC(r,n),n}};function AC(r,e){var t=r.getAttribute("gradientUnits");t==="userSpaceOnUse"&&(e.global=!0)}function MC(r,e){for(var t=r.firstChild;t;){if(t.nodeType===1&&t.nodeName.toLocaleLowerCase()==="stop"){var a=t.getAttribute("offset"),n=void 0;a&&a.indexOf("%")>0?n=parseInt(a,10)/100:a?n=parseFloat(a):n=0;var i={};PC(t,i,i);var o=i.stopColor||t.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:n,color:o})}t=t.nextSibling}}function Tr(r,e){r&&r.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),K(e.__inheritedStyle,r.__inheritedStyle))}function DC(r){for(var e=Yh(r),t=[],a=0;a0;i-=2){var o=a[i],s=a[i-1],l=Yh(o);switch(n=n||hr(),s){case"translate":jr(n,n,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":$v(n,n,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Zn(n,n,-parseFloat(l[0])*Tg);break;case"skewX":var u=Math.tan(parseFloat(l[0])*Tg);Ca(n,[1,0,u,1,0,0],n);break;case"skewY":var f=Math.tan(parseFloat(l[0])*Tg);Ca(n,[1,f,0,1,0,0],n);break;case"matrix":n[0]=parseFloat(l[0]),n[1]=parseFloat(l[1]),n[2]=parseFloat(l[2]),n[3]=parseFloat(l[3]),n[4]=parseFloat(l[4]),n[5]=parseFloat(l[5]);break}}e.setLocalTransform(n)}}var IC=/([^\s:;]+)\s*:\s*([^:;]+)/g;function PC(r,e,t){var a=r.getAttribute("style");if(!!a){IC.lastIndex=0;for(var n;(n=IC.exec(a))!=null;){var i=n[1],o=Z(Wh,i)?Wh[i]:null;o&&(e[o]=n[2]);var s=Z(Uh,i)?Uh[i]:null;s&&(t[s]=n[2])}}}function $G(r,e,t){for(var a=0;an&&(a=o,n=l)}if(a)return eF(a.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},e.prototype.getBoundingRect=function(t){var a=this._rect;if(a&&!t)return a;var n=[Infinity,Infinity],i=[-Infinity,-Infinity],o=this.geometries;return A(o,function(s){s.type==="polygon"?kC(s.exterior,n,i,t):A(s.points,function(l){kC(l,n,i,t)})}),isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])||(n[0]=n[1]=i[0]=i[1]=0),a=new ht(n[0],n[1],i[0]-n[0],i[1]-n[1]),t||(this._rect=a),a},e.prototype.contain=function(t){var a=this.getBoundingRect(),n=this.geometries;if(!a.contain(t[0],t[1]))return!1;t:for(var i=0,o=n.length;i>1^-(s&1),l=l>>1^-(l&1),s+=n,l+=i,n=s,i=l,a.push([s/t,l/t])}return a}function lF(r,e){return r=sF(r),G(Rt(r.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var a=t.properties,n=t.geometry,i=[];switch(n.type){case"Polygon":var o=n.coordinates;i.push(new NC(o[0],o.slice(1)));break;case"MultiPolygon":A(n.coordinates,function(l){l[0]&&i.push(new NC(l[0],l.slice(1)))});break;case"LineString":i.push(new BC([n.coordinates]));break;case"MultiLineString":i.push(new BC(n.coordinates))}var s=new VC(a[e||"name"],i,a.cp);return s.properties=a,s})}for(var Mg=[126,25],GC="\u5357\u6D77\u8BF8\u5C9B",Yi=[[[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]]],Zi=0;Zi0,g={api:a,geo:l,mapOrGeoModel:e,data:s,isVisualEncodedByVisualMap:d,isGeo:o,transformInfoRaw:v};l.resourceType==="geoJSON"?this._buildGeoJSON(g):l.resourceType==="geoSVG"&&this._buildSVG(g),this._updateController(e,t,a),this._updateMapSelectHandler(e,u,a,n)},r.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=q(),a=q(),n=this._regionsGroup,i=e.transformInfoRaw,o=e.mapOrGeoModel,s=e.data,l=e.geo.projection,u=l&&l.stream;function f(c,p){return p&&(c=p(c)),c&&[c[0]*i.scaleX+i.x,c[1]*i.scaleY+i.y]}function h(c){for(var p=[],d=!u&&l&&l.project,g=0;g=0)&&(v=n);var c=o?{normal:{align:"center",verticalAlign:"middle"}}:null;xe(e,ue(a),{labelFetcher:v,labelDataIndex:h,defaultText:t},c);var p=e.getTextContent();if(p&&(FC(p).ignore=p.ignore,e.textConfig&&o)){var d=e.getBoundingRect().clone();e.textConfig.layoutRect=d,e.textConfig.position=[(o[0]-d.x)/d.width*100+"%",(o[1]-d.y)/d.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function YC(r,e,t,a,n,i){r.data?r.data.setItemGraphicEl(i,e):nt(e).eventData={componentType:"geo",componentIndex:n.componentIndex,geoIndex:n.componentIndex,name:t,region:a&&a.option||{}}}function ZC(r,e,t,a,n){r.data||Fo({el:e,componentModel:n,itemName:t,itemTooltipOption:a.get("tooltip")})}function XC(r,e,t,a,n){e.highDownSilentOnTouch=!!n.get("selectedMode");var i=a.getModel("emphasis"),o=i.get("focus");return Yt(e,o,i.get("blurScope"),i.get("disabled")),r.isGeo&&mE(e,n,t),o}function KC(r,e,t){var a=[],n;function i(){n=[]}function o(){n.length&&(a.push(n),n=[])}var s=e({polygonStart:i,polygonEnd:o,lineStart:i,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&n.push([l,u])},sphere:function(){}});return!t&&s.polygonStart(),A(r,function(l){s.lineStart();for(var u=0;u-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},e}(Wt),CF=TF;function AF(r,e){var t={};return A(r,function(a){a.each(a.mapDimension("value"),function(n,i){var o="ec-"+a.getName(i);t[o]=t[o]||[],isNaN(n)||t[o].push(n)})}),r[0].map(r[0].mapDimension("value"),function(a,n){for(var i="ec-"+r[0].getName(n),o=0,s=Infinity,l=-Infinity,u=t[i].length,f=0;f1?(S.width=_,S.height=_/g):(S.height=_,S.width=_*g),S.y=m[1]-S.height/2,S.x=m[0]-S.width/2;else{var b=r.getBoxLayoutParams();b.aspect=g,S=oe(b,{width:p,height:d})}this.setViewRect(S.x,S.y,S.width,S.height),this.setCenter(r.get("center"),e),this.setZoom(r.get("zoom"))}function PF(r,e){A(e.get("geoCoord"),function(t,a){r.addGeoCoord(a,t)})}var RF=function(){function r(){this.dimensions=QC}return r.prototype.create=function(e,t){var a=[];function n(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}e.eachComponent("geo",function(o,s){var l=o.get("map"),u=new eA(l+s,l,B({nameMap:o.get("nameMap")},n(o)));u.zoomLimit=o.get("scaleLimit"),a.push(u),o.coordinateSystem=u,u.model=o,u.resize=rA,u.resize(o,t)}),e.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=a[l]}});var i={};return e.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();i[s]=i[s]||[],i[s].push(o)}}),A(i,function(o,s){var l=G(o,function(f){return f.get("nameMap")}),u=new eA(s,s,B({nameMap:Kr(l)},n(o[0])));u.zoomLimit=ce.apply(null,G(o,function(f){return f.get("scaleLimit")})),a.push(u),u.resize=rA,u.resize(o[0],t),A(o,function(f){f.coordinateSystem=u,PF(u,f)})}),a},r.prototype.getFilledRegions=function(e,t,a,n){for(var i=(e||[]).slice(),o=q(),s=0;s=0;o--){var s=n[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},t.push(s)}}function FF(r,e){var t=r.isExpand?r.children:[],a=r.parentNode.children,n=r.hierNode.i?a[r.hierNode.i-1]:null;if(t.length){UF(r);var i=(t[0].hierNode.prelim+t[t.length-1].hierNode.prelim)/2;n?(r.hierNode.prelim=n.hierNode.prelim+e(r,n),r.hierNode.modifier=r.hierNode.prelim-i):r.hierNode.prelim=i}else n&&(r.hierNode.prelim=n.hierNode.prelim+e(r,n));r.parentNode.hierNode.defaultAncestor=YF(r,n,r.parentNode.hierNode.defaultAncestor||a[0],e)}function HF(r){var e=r.hierNode.prelim+r.parentNode.hierNode.modifier;r.setLayout({x:e},!0),r.hierNode.modifier+=r.parentNode.hierNode.modifier}function oA(r){return arguments.length?r:KF}function Ql(r,e){return r-=Math.PI/2,{x:e*Math.cos(r),y:e*Math.sin(r)}}function WF(r,e){return oe(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function UF(r){for(var e=r.children,t=e.length,a=0,n=0;--t>=0;){var i=e[t];i.hierNode.prelim+=a,i.hierNode.modifier+=a,n+=i.hierNode.change,a+=i.hierNode.shift+n}}function YF(r,e,t,a){if(e){for(var n=r,i=r,o=i.parentNode.children[0],s=e,l=n.hierNode.modifier,u=i.hierNode.modifier,f=o.hierNode.modifier,h=s.hierNode.modifier;s=Ig(s),i=Pg(i),s&&i;){n=Ig(n),o=Pg(o),n.hierNode.ancestor=r;var v=s.hierNode.prelim+h-i.hierNode.prelim-u+a(s,i);v>0&&(XF(ZF(s,r,t),r,v),u+=v,l+=v),h+=s.hierNode.modifier,u+=i.hierNode.modifier,l+=n.hierNode.modifier,f+=o.hierNode.modifier}s&&!Ig(n)&&(n.hierNode.thread=s,n.hierNode.modifier+=h-l),i&&!Pg(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=u-f,t=r)}return t}function Ig(r){var e=r.children;return e.length&&r.isExpand?e[e.length-1]:r.hierNode.thread}function Pg(r){var e=r.children;return e.length&&r.isExpand?e[0]:r.hierNode.thread}function ZF(r,e,t){return r.hierNode.ancestor.parentNode===e.parentNode?r.hierNode.ancestor:t}function XF(r,e,t){var a=t/(e.hierNode.i-r.hierNode.i);e.hierNode.change-=a,e.hierNode.shift+=t,e.hierNode.modifier+=t,e.hierNode.prelim+=t,r.hierNode.change+=a}function KF(r,e){return r.parentNode===e.parentNode?1:2}var qF=function(){function r(){this.parentPoint=[],this.childPoints=[]}return r}(),jF=function(r){k(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new qF},e.prototype.buildPath=function(t,a){var n=a.childPoints,i=n.length,o=a.parentPoint,s=n[0],l=n[i-1];if(i===1){t.moveTo(o[0],o[1]),t.lineTo(s[0],s[1]);return}var u=a.orient,f=u==="TB"||u==="BT"?0:1,h=1-f,v=H(a.forkPosition,1),c=[];c[f]=o[f],c[h]=o[h]+(l[h]-o[h])*v,t.moveTo(o[0],o[1]),t.lineTo(c[0],c[1]),t.moveTo(s[0],s[1]),c[f]=s[f],t.lineTo(c[0],c[1]),c[f]=l[f],t.lineTo(c[0],c[1]),t.lineTo(l[0],l[1]);for(var p=1;pm.x,b||(S=S-Math.PI));var w=b?"left":"right",T=s.getModel("label"),C=T.get("rotate"),M=C*(Math.PI/180),D=g.getTextContent();D&&(g.setTextConfig({position:T.get("position")||w,rotation:C==null?-S:M,origin:"center"}),D.setStyle("verticalAlign","middle"))}var L=s.get(["emphasis","focus"]),I=L==="relative"?Du(o.getAncestorsIndices(),o.getDescendantIndices()):L==="ancestor"?o.getAncestorsIndices():L==="descendant"?o.getDescendantIndices():null;I&&(nt(t).focus=I),QF(n,o,f,t,p,c,d,a),t.__edge&&(t.onHoverStateChange=function(P){if(P!=="blur"){var R=o.parentNode&&r.getItemGraphicEl(o.parentNode.dataIndex);R&&R.hoverState===qs||mf(t.__edge,P)}})}function QF(r,e,t,a,n,i,o,s){var l=e.getModel(),u=r.get("edgeShape"),f=r.get("layout"),h=r.getOrient(),v=r.get(["lineStyle","curveness"]),c=r.get("edgeForkPosition"),p=l.getModel("lineStyle").getLineStyle(),d=a.__edge;if(u==="curve")e.parentNode&&e.parentNode!==t&&(d||(d=a.__edge=new Wf({shape:Rg(f,h,v,n,n)})),At(d,{shape:Rg(f,h,v,i,o)},r));else if(u==="polyline"&&f==="orthogonal"&&e!==t&&e.children&&e.children.length!==0&&e.isExpand===!0){for(var g=e.children,y=[],m=0;mt&&(t=n.height)}this.height=t+1},r.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,a=this.children,n=a.length;t=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},r.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},r.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostTree,a=t.data.getItemModel(this.dataIndex);return a.getModel(e)}},r.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},r.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},r.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},r.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},r.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},r.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t=0){var a=t.getData().tree.root,n=r.targetNode;if(U(n)&&(n=a.getNodeById(n)),n&&a.contains(n))return{node:n};var i=r.targetNodeId;if(i!=null&&(n=a.getNodeById(i)))return{node:n}}}function pA(r){for(var e=[];r;)r=r.parentNode,r&&e.push(r);return e.reverse()}function Og(r,e){var t=pA(r);return st(t,e)>=0}function Xh(r,e){for(var t=[];r;){var a=r.dataIndex;t.push({name:r.name,dataIndex:a,value:e.getRawValue(a)}),r=r.parentNode}return t.reverse(),t}var f3=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t){var a={name:t.name,children:t.data},n=t.leaves||{},i=new Vt(n,this,this.ecModel),o=kg.createTree(a,this,s);function s(h){h.wrapMethod("getItemModel",function(v,c){var p=o.getNodeByDataIndex(c);return p&&p.children.length&&p.isExpand||(v.parentModel=i),v})}var l=0;o.eachNode("preorder",function(h){h.depth>l&&(l=h.depth)});var u=t.expandAndCollapse,f=u&&t.initialTreeDepth>=0?t.initialTreeDepth:l;return o.root.eachNode("preorder",function(h){var v=h.hostTree.data.getRawDataItem(h.dataIndex);h.isExpand=v&&v.collapsed!=null?!v.collapsed:h.depth<=f}),o.data},e.prototype.getOrient=function(){var t=this.get("orient");return t==="horizontal"?t="LR":t==="vertical"&&(t="TB"),t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.formatTooltip=function(t,a,n){for(var i=this.getData().tree,o=i.root.children[0],s=i.getNodeByDataIndex(t),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return fe("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},e.prototype.getDataParams=function(t){var a=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(t);return a.treeAncestors=Xh(n,this),a.collapsed=!n.isExpand,a},e.type="series.tree",e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e}(Wt),h3=f3;function v3(r,e,t){for(var a=[r],n=[],i;i=a.pop();)if(n.push(i),i.isExpand){var o=i.children;if(o.length)for(var s=0;s=0;i--)t.push(n[i])}}function c3(r,e){r.eachSeriesByType("tree",function(t){p3(t,e)})}function p3(r,e){var t=WF(r,e);r.layoutInfo=t;var a=r.get("layout"),n=0,i=0,o=null;a==="radial"?(n=2*Math.PI,i=Math.min(t.height,t.width)/2,o=oA(function(_,S){return(_.parentNode===S.parentNode?1:2)/_.depth})):(n=t.width,i=t.height,o=oA());var s=r.getData().tree.root,l=s.children[0];if(l){GF(s),v3(l,FF,o),s.hierNode.modifier=-l.hierNode.prelim,tu(l,HF);var u=l,f=l,h=l;tu(l,function(_){var S=_.getLayout().x;Sf.getLayout().x&&(f=_),_.depth>h.depth&&(h=_)});var v=u===f?1:o(u,f)/2,c=v-u.getLayout().x,p=0,d=0,g=0,y=0;if(a==="radial")p=n/(f.getLayout().x+v+c),d=i/(h.depth-1||1),tu(l,function(_){g=(_.getLayout().x+c)*p,y=(_.depth-1)*d;var S=Ql(g,y);_.setLayout({x:S.x,y:S.y,rawX:g,rawY:y},!0)});else{var m=r.getOrient();m==="RL"||m==="LR"?(d=i/(f.getLayout().x+v+c),p=n/(h.depth-1||1),tu(l,function(_){y=(_.getLayout().x+c)*d,g=m==="LR"?(_.depth-1)*p:n-(_.depth-1)*p,_.setLayout({x:g,y},!0)})):(m==="TB"||m==="BT")&&(p=n/(f.getLayout().x+v+c),d=i/(h.depth-1||1),tu(l,function(_){g=(_.getLayout().x+c)*p,y=m==="TB"?(_.depth-1)*d:i-(_.depth-1)*d,_.setLayout({x:g,y},!0)}))}}}function d3(r){r.eachSeriesByType("tree",function(e){var t=e.getData(),a=t.tree;a.eachNode(function(n){var i=n.getModel(),o=i.getModel("itemStyle").getItemStyle(),s=t.ensureUniqueItemVisual(n.dataIndex,"style");B(s,o)})})}function g3(r){r.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},function(a){var n=e.dataIndex,i=a.getData().tree,o=i.getNodeByDataIndex(n);o.isExpand=!o.isExpand})}),r.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(e,t,a){t.eachComponent({mainType:"series",subType:"tree",query:e},function(n){var i=n.coordinateSystem,o=Lg(i,e,void 0,a);n.setCenter&&n.setCenter(o.center),n.setZoom&&n.setZoom(o.zoom)})})}function y3(r){r.registerChartView(JF),r.registerSeriesModel(h3),r.registerLayout(c3),r.registerVisual(d3),g3(r)}var dA=["treemapZoomToNode","treemapRender","treemapMove"];function m3(r){for(var e=0;e1;)i=i.parentNode;var o=Pp(r.ecModel,i.name||i.dataIndex+"",a);n.setVisual("decal",o)})}var _3=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.preventUsingHoverLayer=!0,t}return e.prototype.getInitialData=function(t,a){var n={name:t.name,children:t.data};yA(n);var i=t.levels||[],o=this.designatedVisualItemStyle={},s=new Vt({itemStyle:o},this,a);i=t.levels=S3(i,a);var l=G(i||[],function(h){return new Vt(h,s,a)},this),u=kg.createTree(n,this,f);function f(h){h.wrapMethod("getItemModel",function(v,c){var p=u.getNodeByDataIndex(c),d=p?l[p.depth]:null;return v.parentModel=d||s,v})}return u.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,a,n){var i=this.getData(),o=this.getRawValue(t),s=i.getName(t);return fe("nameValue",{name:s,value:o})},e.prototype.getDataParams=function(t){var a=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(t);return a.treeAncestors=Xh(n,this),a.treePathInfo=a.treeAncestors,a},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},B(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var a=this._idIndexMap;a||(a=this._idIndexMap=q(),this._idIndexMapCount=0);var n=a.get(t);return n==null&&a.set(t,n=this._idIndexMapCount++),n},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var a=this.getRawData().tree.root;(!t||t!==a&&!a.contains(t))&&(this._viewRoot=a)},e.prototype.enableAriaDecal=function(){gA(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"\u25B6",zoomToNodeRatio:.32*.32,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e}(Wt);function yA(r){var e=0;A(r.children,function(a){yA(a);var n=a.value;z(n)&&(n=n[0]),e+=n});var t=r.value;z(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),z(r.value)?r.value[0]=t:r.value=t}function S3(r,e){var t=Ot(e.get("color")),a=Ot(e.get(["aria","decal","decals"]));if(!!t){r=r||[];var n,i;A(r,function(s){var l=new Vt(s),u=l.get("color"),f=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(n=!0),(l.get(["itemStyle","decal"])||f&&f!=="none")&&(i=!0)});var o=r[0]||(r[0]={});return n||(o.color=t.slice()),!i&&a&&(o.decal=a.slice()),r}}var x3=_3,b3=8,mA=8,Ng=5,w3=function(){function r(e){this.group=new rt,e.add(this.group)}return r.prototype.render=function(e,t,a,n){var i=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!i.get("show")||!a)){var s=i.getModel("itemStyle"),l=i.getModel("emphasis"),u=s.getModel("textStyle"),f=l.getModel(["itemStyle","textStyle"]),h={pos:{left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(a,h,u),this._renderContent(e,h,s,l,u,f,n),Pf(o,h.pos,h.box)}},r.prototype._prepare=function(e,t,a){for(var n=e;n;n=n.parentNode){var i=ie(n.getModel().get("name"),""),o=a.getTextRect(i),s=Math.max(o.width+b3*2,t.emptyItemWidth);t.totalWidth+=s+mA,t.renderList.push({node:n,text:i,width:s})}},r.prototype._renderContent=function(e,t,a,n,i,o,s){for(var l=0,u=t.emptyItemWidth,f=e.get(["breadcrumb","height"]),h=UE(t.pos,t.box),v=t.totalWidth,c=t.renderList,p=n.getModel("itemStyle").getItemStyle(),d=c.length-1;d>=0;d--){var g=c[d],y=g.node,m=g.width,_=g.text;v>h.width&&(v-=m-u,m=u,_=null);var S=new Ye({shape:{points:T3(l,0,m,f,d===c.length-1,d===0)},style:K(a.getItemStyle(),{lineJoin:"bevel"}),textContent:new Ct({style:Bt(i,{text:_})}),textConfig:{position:"inside"},z2:bo*1e4,onclick:it(s,y)});S.disableLabelAnimation=!0,S.getTextContent().ensureState("emphasis").style=Bt(o,{text:_}),S.ensureState("emphasis").style=p,Yt(S,n.get("focus"),n.get("blurScope"),n.get("disabled")),this.group.add(S),C3(S,e,y),l+=m+mA}},r.prototype.remove=function(){this.group.removeAll()},r}();function T3(r,e,t,a,n,i){var o=[[n?r:r-Ng,e],[r+t,e],[r+t,e+a],[n?r:r-Ng,e+a]];return!i&&o.splice(2,0,[r+t+Ng,e+a/2]),!n&&o.push([r,e+a/2]),o}function C3(r,e,t){nt(r).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:t&&t.dataIndex,name:t&&t.name},treePathInfo:t&&Xh(t,e)}}var A3=w3,M3=function(){function r(){this._storage=[],this._elExistsMap={}}return r.prototype.add=function(e,t,a,n,i){return this._elExistsMap[e.id]?!1:(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:a,delay:n,easing:i}),!0)},r.prototype.finished=function(e){return this._finishedCallback=e,this},r.prototype.start=function(){for(var e=this,t=this._storage.length,a=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},n=0,i=this._storage.length;nSA||Math.abs(t.dy)>SA)){var a=this.seriesModel.getData().tree.root;if(!a)return;var n=a.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+t.dx,y:n.y+t.dy,width:n.width,height:n.height}})}},e.prototype._onZoom=function(t){var a=t.originX,n=t.originY;if(this._state!=="animating"){var i=this.seriesModel.getData().tree.root;if(!i)return;var o=i.getLayout();if(!o)return;var s=new ht(o.x,o.y,o.width,o.height),l=this.seriesModel.layoutInfo;a-=l.x,n-=l.y;var u=hr();jr(u,u,[-a,-n]),$v(u,u,[t.scale,t.scale]),jr(u,u,[a,n]),s.applyTransform(u),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:s.x,y:s.y,width:s.width,height:s.height}})}},e.prototype._initEvents=function(t){var a=this;t.on("click",function(n){if(a._state==="ready"){var i=a.seriesModel.get("nodeClick",!0);if(!!i){var o=a.findTarget(n.offsetX,n.offsetY);if(!!o){var s=o.node;if(s.getLayout().isLeafRoot)a._rootToNode(o);else if(i==="zoomToNode")a._zoomToNode(o);else if(i==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),f=l.get("target",!0)||"blank";u&&Lf(u,f)}}}}},this)},e.prototype._renderBreadcrumb=function(t,a,n){var i=this;n||(n=t.get("leafDepth",!0)!=null?{node:t.getViewRoot()}:this.findTarget(a.getWidth()/2,a.getHeight()/2),n||(n={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new A3(this.group))).render(t,a,n.node,function(o){i._state!=="animating"&&(Og(t.getViewRoot(),o)?i._rootToNode({node:o}):i._zoomToNode({node:o}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=eu(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,a){var n,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(t,a),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)n={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),n},e.type="treemap",e}(zt);function eu(){return{nodeGroup:[],background:[],content:[]}}function E3(r,e,t,a,n,i,o,s,l,u){if(!o)return;var f=o.getLayout(),h=r.getData(),v=o.getModel();if(h.setItemGraphicEl(o.dataIndex,null),!f||!f.isInView)return;var c=f.width,p=f.height,d=f.borderWidth,g=f.invisible,y=o.getRawIndex(),m=s&&s.getRawIndex(),_=o.viewChildren,S=f.upperHeight,b=_&&_.length,x=v.getModel("itemStyle"),w=v.getModel(["emphasis","itemStyle"]),T=v.getModel(["blur","itemStyle"]),C=v.getModel(["select","itemStyle"]),M=x.get("borderRadius")||0,D=J("nodeGroup",Bg);if(!D)return;if(l.add(D),D.x=f.x||0,D.y=f.y||0,D.markRedraw(),Kh(D).nodeWidth=c,Kh(D).nodeHeight=p,f.isAboveViewRoot)return D;var L=J("background",_A,u,I3);L&&V(D,L,b&&f.upperLabelHeight);var I=v.getModel("emphasis"),P=I.get("focus"),R=I.get("blurScope"),E=I.get("disabled"),N=P==="ancestor"?o.getAncestorsIndices():P==="descendant"?o.getDescendantIndices():P;if(b)Js(D)&&gi(D,!1),L&&(gi(L,!E),h.setItemGraphicEl(o.dataIndex,L),hp(L,N,R));else{var O=J("content",_A,u,P3);O&&F(D,O),L.disableMorphing=!0,L&&Js(L)&&gi(L,!1),gi(D,!E),h.setItemGraphicEl(o.dataIndex,D),hp(D,N,R)}return D;function V(gt,at,yt){var vt=nt(at);if(vt.dataIndex=o.dataIndex,vt.seriesIndex=r.seriesIndex,at.setShape({x:0,y:0,width:c,height:p,r:M}),g)W(at);else{at.invisible=!1;var j=o.getVisual("style"),ut=j.stroke,Ut=wA(x);Ut.fill=ut;var wt=Xi(w);wt.fill=w.get("borderColor");var qt=Xi(T);qt.fill=T.get("borderColor");var Xt=Xi(C);if(Xt.fill=C.get("borderColor"),yt){var Le=c-2*d;X(at,ut,j.opacity,{x:d,y:0,width:Le,height:S})}else at.removeTextContent();at.setStyle(Ut),at.ensureState("emphasis").style=wt,at.ensureState("blur").style=qt,at.ensureState("select").style=Xt,pi(at)}gt.add(at)}function F(gt,at){var yt=nt(at);yt.dataIndex=o.dataIndex,yt.seriesIndex=r.seriesIndex;var vt=Math.max(c-2*d,0),j=Math.max(p-2*d,0);if(at.culling=!0,at.setShape({x:d,y:d,width:vt,height:j,r:M}),g)W(at);else{at.invisible=!1;var ut=o.getVisual("style"),Ut=ut.fill,wt=wA(x);wt.fill=Ut,wt.decal=ut.decal;var qt=Xi(w),Xt=Xi(T),Le=Xi(C);X(at,Ut,ut.opacity,null),at.setStyle(wt),at.ensureState("emphasis").style=qt,at.ensureState("blur").style=Xt,at.ensureState("select").style=Le,pi(at)}gt.add(at)}function W(gt){!gt.invisible&&i.push(gt)}function X(gt,at,yt,vt){var j=v.getModel(vt?bA:xA),ut=ie(v.get("name"),null),Ut=j.getShallow("show");xe(gt,ue(v,vt?bA:xA),{defaultText:Ut?ut:null,inheritColor:at,defaultOpacity:yt,labelFetcher:r,labelDataIndex:o.dataIndex});var wt=gt.getTextContent();if(!!wt){var qt=wt.style,Xt=Bv(qt.padding||0);vt&&(gt.setTextConfig({layoutRect:vt}),wt.disableLabelLayout=!0),wt.beforeUpdate=function(){var Ya=Math.max((vt?vt.width:gt.shape.width)-Xt[1]-Xt[3],0),je=Math.max((vt?vt.height:gt.shape.height)-Xt[0]-Xt[2],0);(qt.width!==Ya||qt.height!==je)&&wt.setStyle({width:Ya,height:je})},qt.truncateMinChar=2,qt.lineOverflow="truncate",Q(qt,vt,f);var Le=wt.getState("emphasis");Q(Le?Le.style:null,vt,f)}}function Q(gt,at,yt){var vt=gt?gt.text:null;if(!at&&yt.isLeafRoot&&vt!=null){var j=r.get("drillDownIcon",!0);gt.text=j?j+" "+vt:vt}}function J(gt,at,yt,vt){var j=m!=null&&t[gt][m],ut=n[gt];return j?(t[gt][m]=null,dt(ut,j)):g||(j=new at,j instanceof dr&&(j.z2=k3(yt,vt)),Dt(ut,j)),e[gt][y]=j}function dt(gt,at){var yt=gt[y]={};at instanceof Bg?(yt.oldX=at.x,yt.oldY=at.y):yt.oldShape=B({},at.shape)}function Dt(gt,at){var yt=gt[y]={},vt=o.parentNode,j=at instanceof rt;if(vt&&(!a||a.direction==="drillDown")){var ut=0,Ut=0,wt=n.background[vt.getRawIndex()];!a&&wt&&wt.oldShape&&(ut=wt.oldShape.width,Ut=wt.oldShape.height),j?(yt.oldX=0,yt.oldY=Ut):yt.oldShape={x:ut,y:Ut,width:0,height:0}}yt.fadein=!j}}function k3(r,e){return r*L3+e}var O3=R3,ru=A,N3=et,qh=-1,Vg=function(){function r(e){var t=e.mappingMethod,a=e.type,n=this.option=tt(e);this.type=a,this.mappingMethod=t,this._normalizeData=z3[t];var i=r.visualHandlers[a];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[t],t==="piecewise"?(zg(n),B3(n)):t==="category"?n.categories?V3(n):zg(n,!0):(Pe(t!=="linear"||n.dataExtent),zg(n))}return r.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},r.prototype.getNormalizer=function(){return Y(this._normalizeData,this)},r.listVisualTypes=function(){return St(r.visualHandlers)},r.isValidType=function(e){return r.visualHandlers.hasOwnProperty(e)},r.eachVisual=function(e,t,a){et(e)?A(e,t,a):t.call(a,e)},r.mapVisual=function(e,t,a){var n,i=z(e)?[]:et(e)?{}:(n=!0,null);return r.eachVisual(e,function(o,s){var l=t.call(a,o,s);n?i=l:i[s]=l}),i},r.retrieveVisuals=function(e){var t={},a;return e&&ru(r.visualHandlers,function(n,i){e.hasOwnProperty(i)&&(t[i]=e[i],a=!0)}),a?t:null},r.prepareVisualTypes=function(e){if(z(e))e=e.slice();else if(N3(e)){var t=[];ru(e,function(a,n){t.push(n)}),e=t}else return[];return e.sort(function(a,n){return n==="color"&&a!=="color"&&a.indexOf("color")===0?1:-1}),e},r.dependsOn=function(e,t){return t==="color"?!!(e&&e.indexOf(t)===0):e===t},r.findPieceIndex=function(e,t,a){for(var n,i=Infinity,o=0,s=t.length;o=0;i--)a[i]==null&&(delete t[e[i]],e.pop())}function zg(r,e){var t=r.visual,a=[];et(t)?ru(t,function(i){a.push(i)}):t!=null&&a.push(t);var n={color:1,symbol:1};!e&&a.length===1&&!n.hasOwnProperty(r.type)&&(a[1]=a[0]),CA(r,a)}function jh(r){return{applyVisual:function(e,t,a){var n=this.mapValueToVisual(e);a("color",r(t("color"),n))},_normalizedToVisual:Gg([0,1])}}function TA(r){var e=this.option.visual;return e[Math.round(Pt(r,[0,1],[0,e.length-1],!0))]||{}}function au(r){return function(e,t,a){a(r,this.mapValueToVisual(e))}}function nu(r){var e=this.option.visual;return e[this.option.loop&&r!==qh?r%e.length:r]}function Ki(){return this.option.visual[0]}function Gg(r){return{linear:function(e){return Pt(e,r,this.option.visual,!0)},category:nu,piecewise:function(e,t){var a=Fg.call(this,t);return a==null&&(a=Pt(e,r,this.option.visual,!0)),a},fixed:Ki}}function Fg(r){var e=this.option,t=e.pieceList;if(e.hasSpecialVisual){var a=Vg.findPieceIndex(r,t),n=t[a];if(n&&n.visual)return n.visual[this.type]}}function CA(r,e){return r.visual=e,r.type==="color"&&(r.parsedVisual=G(e,function(t){var a=Fe(t);return a||[0,0,0,1]})),e}var z3={linear:function(r){return Pt(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var e=this.option.pieceList,t=Vg.findPieceIndex(r,e,!0);if(t!=null)return Pt(t,[0,e.length-1],[0,1],!0)},category:function(r){var e=this.option.categories?this.option.categoryMap[r]:r;return e==null?qh:e},fixed:$t};function $h(r,e,t){return r?e<=t:e=t.length||d===t[d.depth]){var y=Y3(n,l,d,g,p,a);MA(d,y,t,a)}})}}}function H3(r,e,t){var a=B({},e),n=t.designatedVisualItemStyle;return A(["color","colorAlpha","colorSaturation"],function(i){n[i]=e[i];var o=r.get(i);n[i]=null,o!=null&&(a[i]=o)}),a}function DA(r){var e=Hg(r,"color");if(e){var t=Hg(r,"colorAlpha"),a=Hg(r,"colorSaturation");return a&&(e=ks(e,null,null,a)),t&&(e=Uu(e,t)),e}}function W3(r,e){return e!=null?ks(e,null,null,r):null}function Hg(r,e){var t=r[e];if(t!=null&&t!=="none")return t}function U3(r,e,t,a,n,i){if(!(!i||!i.length)){var o=Wg(e,"color")||n.color!=null&&n.color!=="none"&&(Wg(e,"colorAlpha")||Wg(e,"colorSaturation"));if(!!o){var s=e.get("visualMin"),l=e.get("visualMax"),u=t.dataExtent.slice();s!=null&&su[1]&&(u[1]=l);var f=e.get("colorMappingBy"),h={type:o.name,dataExtent:u,visual:o.range};h.type==="color"&&(f==="index"||f==="id")?(h.mappingMethod="category",h.loop=!0):h.mappingMethod="linear";var v=new we(h);return AA(v).drColorMappingBy=f,v}}}function Wg(r,e){var t=r.get(e);return z(t)&&t.length?{name:e,range:t}:null}function Y3(r,e,t,a,n,i){var o=B({},e);if(n){var s=n.type,l=s==="color"&&AA(n).drColorMappingBy,u=l==="index"?a:l==="id"?i.mapIdToIndex(t.getId()):t.getValue(r.get("visualDimension"));o[s]=n.mapValueToVisual(u)}return o}var iu=Math.max,Qh=Math.min,LA=ce,Ug=A,IA=["itemStyle","borderWidth"],Z3=["itemStyle","gapWidth"],X3=["upperLabel","show"],K3=["upperLabel","height"],q3={seriesType:"treemap",reset:function(r,e,t,a){var n=t.getWidth(),i=t.getHeight(),o=r.option,s=oe(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),l=o.size||[],u=H(LA(s.width,l[0]),n),f=H(LA(s.height,l[1]),i),h=a&&a.type,v=["treemapZoomToNode","treemapRootToNode"],c=Jl(a,v,r),p=h==="treemapRender"||h==="treemapMove"?a.rootRect:null,d=r.getViewRoot(),g=pA(d);if(h!=="treemapMove"){var y=h==="treemapZoomToNode"?eH(r,c,d,u,f):p?[p.width,p.height]:[u,f],m=o.sort;m&&m!=="asc"&&m!=="desc"&&(m="desc");var _={squareRatio:o.squareRatio,sort:m,leafDepth:o.leafDepth};d.hostTree.clearLayouts();var S={x:0,y:0,width:y[0],height:y[1],area:y[0]*y[1]};d.setLayout(S),PA(d,_,!1,0),S=d.getLayout(),Ug(g,function(x,w){var T=(g[w+1]||d).getValue();x.setLayout(B({dataExtent:[T,T],borderWidth:0,upperHeight:0},S))})}var b=r.getData().tree.root;b.setLayout(rH(s,p,c),!0),r.setLayoutInfo(s),EA(b,new ht(-s.x,-s.y,n,i),g,d,0)}};function PA(r,e,t,a){var n,i;if(!r.isRemoved()){var o=r.getLayout();n=o.width,i=o.height;var s=r.getModel(),l=s.get(IA),u=s.get(Z3)/2,f=kA(s),h=Math.max(l,f),v=l-u,c=h-u;r.setLayout({borderWidth:l,upperHeight:h,upperLabelHeight:f},!0),n=iu(n-2*v,0),i=iu(i-v-c,0);var p=n*i,d=j3(r,s,p,e,t,a);if(!!d.length){var g={x:v,y:c,width:n,height:i},y=Qh(n,i),m=Infinity,_=[];_.area=0;for(var S=0,b=d.length;S=0;l--){var u=n[a==="asc"?o-l-1:l].getValue();u/t*es[1]&&(s[1]=u)})),{sum:a,dataExtent:s}}function tH(r,e,t){for(var a=0,n=Infinity,i=0,o=void 0,s=r.length;ia&&(a=o));var l=r.area*r.area,u=e*e*t;return l?iu(u*a/l,l/(u*n)):Infinity}function RA(r,e,t,a,n){var i=e===t.width?0:1,o=1-i,s=["x","y"],l=["width","height"],u=t[s[i]],f=e?r.area/e:0;(n||f>t[l[o]])&&(f=t[l[o]]);for(var h=0,v=r.length;hu_&&(u=u_),i=s}ua&&(a=e);var i=a%2?a+2:a+3;n=[];for(var o=0;o0&&(b[0]=-b[0],b[1]=-b[1]);var w=S[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var T=-Math.atan2(S[1],S[0]);h[0].8?"left":v[0]<-.8?"right":"center",d=v[1]>.8?"top":v[1]<-.8?"bottom":"middle";break;case"start":i.x=-v[0]*y+f[0],i.y=-v[1]*m+f[1],p=v[0]>.8?"right":v[0]<-.8?"left":"center",d=v[1]>.8?"bottom":v[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=y*w+f[0],i.y=f[1]+C,p=S[0]<0?"right":"left",i.originX=-y*w,i.originY=-C;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=x[0],i.y=x[1]+C,p="center",i.originY=-C;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-y*w+h[0],i.y=h[1]+C,p=S[0]>=0?"right":"left",i.originX=y*w,i.originY=-C;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||d,align:i.__align||p})}},e}(rt),ey=xH,bH=function(){function r(e){this.group=new rt,this._LineCtor=e||ey}return r.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var a=this,n=a.group,i=a._lineData;a._lineData=e,i||n.removeAll();var o=UA(e);e.diff(i).add(function(s){t._doAdd(e,s,o)}).update(function(s,l){t._doUpdate(i,e,l,s,o)}).remove(function(s){n.remove(i.getItemGraphicEl(s))}).execute()},r.prototype.updateLayout=function(){var e=this._lineData;!e||e.eachItemGraphicEl(function(t,a){t.updateLayout(e,a)},this)},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=UA(e),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t){this._progressiveEls=[];function a(s){!s.isGroup&&!wH(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var n=e.start;n0}function UA(r){var e=r.hostModel,t=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:t.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:t.get("disabled"),blurScope:t.get("blurScope"),focus:t.get("focus"),labelStatesModels:ue(e)}}function YA(r){return isNaN(r[0])||isNaN(r[1])}function ry(r){return r&&!YA(r[0])&&!YA(r[1])}var ay=bH,ny=[],iy=[],oy=[],ns=pe,sy=Yn,ZA=Math.abs;function XA(r,e,t){for(var a=r[0],n=r[1],i=r[2],o=Infinity,s,l=t*t,u=.1,f=.1;f<=.9;f+=.1){ny[0]=ns(a[0],n[0],i[0],f),ny[1]=ns(a[1],n[1],i[1],f);var h=ZA(sy(ny,e)-l);h=0?s=s+u:s=s-u:p>=0?s=s-u:s=s+u}return s}function ly(r,e){var t=[],a=Ps,n=[[],[],[]],i=[[],[]],o=[];e/=2,r.eachEdge(function(s,l){var u=s.getLayout(),f=s.getVisual("fromSymbol"),h=s.getVisual("toSymbol");u.__original||(u.__original=[wa(u[0]),wa(u[1])],u[2]&&u.__original.push(wa(u[2])));var v=u.__original;if(u[2]!=null){if(Re(n[0],v[0]),Re(n[1],v[2]),Re(n[2],v[1]),f&&f!=="none"){var c=lu(s.node1),p=XA(n,v[0],c*e);a(n[0][0],n[1][0],n[2][0],p,t),n[0][0]=t[3],n[1][0]=t[4],a(n[0][1],n[1][1],n[2][1],p,t),n[0][1]=t[3],n[1][1]=t[4]}if(h&&h!=="none"){var c=lu(s.node2),p=XA(n,v[1],c*e);a(n[0][0],n[1][0],n[2][0],p,t),n[1][0]=t[1],n[2][0]=t[2],a(n[0][1],n[1][1],n[2][1],p,t),n[1][1]=t[1],n[2][1]=t[2]}Re(u[0],n[0]),Re(u[1],n[2]),Re(u[2],n[1])}else{if(Re(i[0],v[0]),Re(i[1],v[1]),Un(o,i[1],i[0]),uo(o,o),f&&f!=="none"){var c=lu(s.node1);zv(i[0],i[0],o,c*e)}if(h&&h!=="none"){var c=lu(s.node2);zv(i[1],i[1],o,-c*e)}Re(u[0],i[0]),Re(u[1],i[1])}})}function KA(r){return r.type==="view"}var TH=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a){var n=new zl,i=new ay,o=this.group;this._controller=new ql(a.getZr()),this._controllerHost={target:o},o.add(n.group),o.add(i.group),this._symbolDraw=n,this._lineDraw=i,this._firstRender=!0},e.prototype.render=function(t,a,n){var i=this,o=t.coordinateSystem;this._model=t;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(KA(o)){var f={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(f):At(u,f,t)}ly(t.getGraph(),su(t));var h=t.getData();s.updateData(h);var v=t.getEdgeData();l.updateData(v),this._updateNodeAndLinkScale(),this._updateController(t,a,n),clearTimeout(this._layoutTimeout);var c=t.forceLayout,p=t.get(["force","layoutAnimation"]);c&&this._startForceLayoutIteration(c,p);var d=t.get("layout");h.graph.eachNode(function(_){var S=_.dataIndex,b=_.getGraphicEl(),x=_.getModel();if(!!b){b.off("drag").off("dragend");var w=x.get("draggable");w&&b.on("drag",function(C){switch(d){case"force":c.warmUp(),!i._layouting&&i._startForceLayoutIteration(c,p),c.setFixed(S),h.setItemLayout(S,[b.x,b.y]);break;case"circular":h.setItemLayout(S,[b.x,b.y]),_.setLayout({fixed:!0},!0),jg(t,"symbolSize",_,[C.offsetX,C.offsetY]),i.updateLayout(t);break;case"none":default:h.setItemLayout(S,[b.x,b.y]),Kg(t.getGraph(),t),i.updateLayout(t);break}}).on("dragend",function(){c&&c.setUnfixed(S)}),b.setDraggable(w,!!x.get("cursor"));var T=x.get(["emphasis","focus"]);T==="adjacency"&&(nt(b).focus=_.getAdjacentDataIndices())}}),h.graph.eachEdge(function(_){var S=_.getGraphicEl(),b=_.getModel().get(["emphasis","focus"]);!S||b==="adjacency"&&(nt(S).focus={edge:[_.dataIndex],node:[_.node1.dataIndex,_.node2.dataIndex]})});var g=t.get("layout")==="circular"&&t.get(["circular","rotateLabel"]),y=h.getLayout("cx"),m=h.getLayout("cy");h.graph.eachNode(function(_){zA(_,g,y,m)}),this._firstRender=!1},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(t,a){var n=this;(function i(){t.step(function(o){n.updateLayout(n._model),(n._layouting=!o)&&(a?n._layoutTimeout=setTimeout(i,16):i())})})()},e.prototype._updateController=function(t,a,n){var i=this,o=this._controller,s=this._controllerHost,l=this.group;if(o.setPointerChecker(function(u,f,h){var v=l.getBoundingRect();return v.applyTransform(l.transform),v.contain(f,h)&&!Hh(u,n,t)}),!KA(t.coordinateSystem)){o.disable();return}o.enable(t.get("roam")),s.zoomLimit=t.get("scaleLimit"),s.zoom=t.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){xg(s,u.dx,u.dy),n.dispatchAction({seriesId:t.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){bg(s,u.scale,u.originX,u.originY),n.dispatchAction({seriesId:t.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),i._updateNodeAndLinkScale(),ly(t.getGraph(),su(t)),i._lineDraw.updateLayout(),n.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,a=t.getData(),n=su(t);a.eachItemGraphicEl(function(i,o){i&&i.setSymbolScale(n)})},e.prototype.updateLayout=function(t){ly(t.getGraph(),su(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(t,a){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},e.type="graph",e}(zt),CH=TH;function is(r){return"_EC_"+r}var AH=function(){function r(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return r.prototype.isDirected=function(){return this._directed},r.prototype.addNode=function(e,t){e=e==null?""+t:""+e;var a=this._nodesMap;if(!a[is(e)]){var n=new qi(e,t);return n.hostGraph=this,this.nodes.push(n),a[is(e)]=n,n}},r.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},r.prototype.getNodeById=function(e){return this._nodesMap[is(e)]},r.prototype.addEdge=function(e,t,a){var n=this._nodesMap,i=this._edgesMap;if(Tt(e)&&(e=this.nodes[e]),Tt(t)&&(t=this.nodes[t]),e instanceof qi||(e=n[is(e)]),t instanceof qi||(t=n[is(t)]),!(!e||!t)){var o=e.id+"-"+t.id,s=new qA(e,t,a);return s.hostGraph=this,this._directed&&(e.outEdges.push(s),t.inEdges.push(s)),e.edges.push(s),e!==t&&t.edges.push(s),this.edges.push(s),i[o]=s,s}},r.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},r.prototype.getEdge=function(e,t){e instanceof qi&&(e=e.id),t instanceof qi&&(t=t.id);var a=this._edgesMap;return this._directed?a[e+"-"+t]:a[e+"-"+t]||a[t+"-"+e]},r.prototype.eachNode=function(e,t){for(var a=this.nodes,n=a.length,i=0;i=0&&e.call(t,a[i],i)},r.prototype.eachEdge=function(e,t){for(var a=this.edges,n=a.length,i=0;i=0&&a[i].node1.dataIndex>=0&&a[i].node2.dataIndex>=0&&e.call(t,a[i],i)},r.prototype.breadthFirstTraverse=function(e,t,a,n){if(t instanceof qi||(t=this._nodesMap[is(t)]),!!t){for(var i=a==="out"?"outEdges":a==="in"?"inEdges":"edges",o=0;o=0&&l.node2.dataIndex>=0});for(var i=0,o=n.length;i=0&&this[r][e].setItemVisual(this.dataIndex,t,a)},getVisual:function(t){return this[r][e].getItemVisual(this.dataIndex,t)},setLayout:function(t,a){this.dataIndex>=0&&this[r][e].setItemLayout(this.dataIndex,t,a)},getLayout:function(){return this[r][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[r][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[r][e].getRawIndex(this.dataIndex)}}}Jt(qi,jA("hostGraph","data")),Jt(qA,jA("hostGraph","edgeData"));var MH=AH;function $A(r,e,t,a,n){for(var i=new MH(a),o=0;o "+v)),u++)}var c=t.get("coordinateSystem"),p;if(c==="cartesian2d"||c==="polar")p=Ba(r,t);else{var d=sl.get(c),g=d?d.dimensions||[]:[];st(g,"value")<0&&g.concat(["value"]);var y=qo(r,{coordDimensions:g,encodeDefine:t.getEncode()}).dimensions;p=new Be(y,t),p.initData(r)}var m=new Be(["value"],t);return m.initData(l,s),n&&n(p,m),cA({mainData:p,struct:i,structAttr:"graph",datas:{node:p,edge:m},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var DH=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments);var a=this;function n(){return a._categoriesData}this.legendVisualProvider=new Hl(n,n),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(t){r.prototype.mergeDefaultAndTheme.apply(this,arguments),ei(t,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,a){var n=t.edges||t.links||[],i=t.data||t.nodes||[],o=this;if(i&&n){uH(this);var s=$A(i,n,this,!0,l);return A(s.edges,function(u){fH(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,f){u.wrapMethod("getItemModel",function(p){var d=o._categoriesModels,g=p.getShallow("category"),y=d[g];return y&&(y.parentModel=p.parentModel,p.parentModel=y),p});var h=Vt.prototype.getModel;function v(p,d){var g=h.call(this,p,d);return g.resolveParentPath=c,g}f.wrapMethod("getItemModel",function(p){return p.resolveParentPath=c,p.getModel=v,p});function c(p){if(p&&(p[0]==="label"||p[1]==="label")){var d=p.slice();return p[0]==="label"?d[0]="edgeLabel":p[1]==="label"&&(d[1]="edgeLabel"),d}return p}}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,a,n){if(n==="edge"){var i=this.getData(),o=this.getDataParams(t,n),s=i.graph.getEdgeByIndex(t),l=i.getName(s.node1.dataIndex),u=i.getName(s.node2.dataIndex),f=[];return l!=null&&f.push(l),u!=null&&f.push(u),fe("nameValue",{name:f.join(" > "),value:o.value,noValue:o.value==null})}var h=ix({series:this,dataIndex:t,multipleSeries:a});return h},e.prototype._updateCategoriesData=function(){var t=G(this.option.categories||[],function(n){return n.value!=null?n:B({value:0},n)}),a=new Be(["value"],this);a.initData(t),this._categoriesData=a,this._categoriesModels=a.mapArray(function(n){return a.getItemModel(n)})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return r.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(Wt),LH=DH,IH={type:"graphRoam",event:"graphRoam",update:"none"};function PH(r){r.registerChartView(CH),r.registerSeriesModel(LH),r.registerProcessor(nH),r.registerVisual(iH),r.registerVisual(oH),r.registerLayout(hH),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,cH),r.registerLayout(dH),r.registerCoordinateSystem("graphView",{dimensions:$l.dimensions,create:yH}),r.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},$t),r.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},$t),r.registerAction(IH,function(e,t,a){t.eachComponent({mainType:"series",query:e},function(n){var i=n.coordinateSystem,o=Lg(i,e,void 0,a);n.setCenter&&n.setCenter(o.center),n.setZoom&&n.setZoom(o.zoom)})})}var RH=function(){function r(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return r}(),EH=function(r){k(e,r);function e(t){var a=r.call(this,t)||this;return a.type="pointer",a}return e.prototype.getDefaultShape=function(){return new RH},e.prototype.buildPath=function(t,a){var n=Math.cos,i=Math.sin,o=a.r,s=a.width,l=a.angle,u=a.x-n(l)*s*(s>=o/3?1:2),f=a.y-i(l)*s*(s>=o/3?1:2);l=a.angle-Math.PI/2,t.moveTo(u,f),t.lineTo(a.x+n(l)*s,a.y+i(l)*s),t.lineTo(a.x+n(a.angle)*o,a.y+i(a.angle)*o),t.lineTo(a.x-n(l)*s,a.y-i(l)*s),t.lineTo(u,f)},e}(pt),kH=EH;function OH(r,e){var t=r.get("center"),a=e.getWidth(),n=e.getHeight(),i=Math.min(a,n),o=H(t[0],e.getWidth()),s=H(t[1],e.getHeight()),l=H(r.get("radius"),i/2);return{cx:o,cy:s,r:l}}function ev(r,e){var t=r==null?"":r+"";return e&&(U(e)?t=e.replace("{value}",t):$(e)&&(t=e(r))),t}var NH=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){this.group.removeAll();var i=t.get(["axisLine","lineStyle","color"]),o=OH(t,n);this._renderMain(t,a,n,i,o),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,a,n,i,o){var s=this.group,l=t.get("clockwise"),u=-t.get("startAngle")/180*Math.PI,f=-t.get("endAngle")/180*Math.PI,h=t.getModel("axisLine"),v=h.get("roundCap"),c=v?Ah:Ue,p=h.get("show"),d=h.getModel("lineStyle"),g=d.get("width"),y=[u,f];N_(y,!l),u=y[0],f=y[1];for(var m=f-u,_=u,S=[],b=0;p&&b=C&&(M===0?0:i[M-1][0])Math.PI/2&&(J+=Math.PI)):Q==="tangential"?J=-T-Math.PI/2:Tt(Q)&&(J=Q*Math.PI/180),J===0?h.add(new Ct({style:Bt(_,{text:V,x:W,y:X,verticalAlign:R<-.8?"top":R>.8?"bottom":"middle",align:P<-.4?"left":P>.4?"right":"center"},{inheritColor:F}),silent:!0})):h.add(new Ct({style:Bt(_,{text:V,x:W,y:X,verticalAlign:"middle",align:"center"},{inheritColor:F}),silent:!0,originX:W,originY:X,rotation:J}))}if(m.get("show")&&E!==S){var N=m.get("distance");N=N?N+f:f;for(var dt=0;dt<=b;dt++){P=Math.cos(T),R=Math.sin(T);var Dt=new de({shape:{x1:P*(p-N)+v,y1:R*(p-N)+c,x2:P*(p-w-N)+v,y2:R*(p-w-N)+c},silent:!0,style:L});L.stroke==="auto"&&Dt.setStyle({stroke:i((E+dt/b)/S)}),h.add(Dt),T+=M}T-=M}else T+=C}},e.prototype._renderPointer=function(t,a,n,i,o,s,l,u,f){var h=this.group,v=this._data,c=this._progressEls,p=[],d=t.get(["pointer","show"]),g=t.getModel("progress"),y=g.get("show"),m=t.getData(),_=m.mapDimension("value"),S=+t.get("min"),b=+t.get("max"),x=[S,b],w=[s,l];function T(M,D){var L=m.getItemModel(M),I=L.getModel("pointer"),P=H(I.get("width"),o.r),R=H(I.get("length"),o.r),E=t.get(["pointer","icon"]),N=I.get("offsetCenter"),O=H(N[0],o.r),V=H(N[1],o.r),F=I.get("keepAspect"),W;return E?W=re(E,O-P/2,V-R,P,R,null,F):W=new kH({shape:{angle:-Math.PI/2,width:P,r:R,x:O,y:V}}),W.rotation=-(D+Math.PI/2),W.x=o.cx,W.y=o.cy,W}function C(M,D){var L=g.get("roundCap"),I=L?Ah:Ue,P=g.get("overlap"),R=P?g.get("width"):f/m.count(),E=P?o.r-R:o.r-(M+1)*R,N=P?o.r:o.r-M*R,O=new I({shape:{startAngle:s,endAngle:D,cx:o.cx,cy:o.cy,clockwise:u,r0:E,r:N}});return P&&(O.z2=b-m.get(_,M)%b),O}(y||d)&&(m.diff(v).add(function(M){var D=m.get(_,M);if(d){var L=T(M,s);Ht(L,{rotation:-((isNaN(+D)?w[0]:Pt(D,x,w,!0))+Math.PI/2)},t),h.add(L),m.setItemGraphicEl(M,L)}if(y){var I=C(M,s),P=g.get("clip");Ht(I,{shape:{endAngle:Pt(D,x,w,P)}},t),h.add(I),rp(t.seriesIndex,m.dataType,M,I),p[M]=I}}).update(function(M,D){var L=m.get(_,M);if(d){var I=v.getItemGraphicEl(D),P=I?I.rotation:s,R=T(M,P);R.rotation=P,At(R,{rotation:-((isNaN(+L)?w[0]:Pt(L,x,w,!0))+Math.PI/2)},t),h.add(R),m.setItemGraphicEl(M,R)}if(y){var E=c[D],N=E?E.shape.endAngle:s,O=C(M,N),V=g.get("clip");At(O,{shape:{endAngle:Pt(L,x,w,V)}},t),h.add(O),rp(t.seriesIndex,m.dataType,M,O),p[M]=O}}).execute(),m.each(function(M){var D=m.getItemModel(M),L=D.getModel("emphasis"),I=L.get("focus"),P=L.get("blurScope"),R=L.get("disabled");if(d){var E=m.getItemGraphicEl(M),N=m.getItemVisual(M,"style"),O=N.fill;if(E instanceof _e){var V=E.style;E.useStyle(B({image:V.image,x:V.x,y:V.y,width:V.width,height:V.height},N))}else E.useStyle(N),E.type!=="pointer"&&E.setColor(O);E.setStyle(D.getModel(["pointer","itemStyle"]).getItemStyle()),E.style.fill==="auto"&&E.setStyle("fill",i(Pt(m.get(_,M),x,[0,1],!0))),E.z2EmphasisLift=0,Se(E,D),Yt(E,I,P,R)}if(y){var F=p[M];F.useStyle(m.getItemVisual(M,"style")),F.setStyle(D.getModel(["progress","itemStyle"]).getItemStyle()),F.z2EmphasisLift=0,Se(F,D),Yt(F,I,P,R)}}),this._progressEls=p)},e.prototype._renderAnchor=function(t,a){var n=t.getModel("anchor"),i=n.get("show");if(i){var o=n.get("size"),s=n.get("icon"),l=n.get("offsetCenter"),u=n.get("keepAspect"),f=re(s,a.cx-o/2+H(l[0],a.r),a.cy-o/2+H(l[1],a.r),o,o,null,u);f.z2=n.get("showAbove")?1:0,f.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(f)}},e.prototype._renderTitleAndDetail=function(t,a,n,i,o){var s=this,l=t.getData(),u=l.mapDimension("value"),f=+t.get("min"),h=+t.get("max"),v=new rt,c=[],p=[],d=t.isAnimationEnabled(),g=t.get(["pointer","showAbove"]);l.diff(this._data).add(function(y){c[y]=new Ct({silent:!0}),p[y]=new Ct({silent:!0})}).update(function(y,m){c[y]=s._titleEls[m],p[y]=s._detailEls[m]}).execute(),l.each(function(y){var m=l.getItemModel(y),_=l.get(u,y),S=new rt,b=i(Pt(_,[f,h],[0,1],!0)),x=m.getModel("title");if(x.get("show")){var w=x.get("offsetCenter"),T=o.cx+H(w[0],o.r),C=o.cy+H(w[1],o.r),M=c[y];M.attr({z2:g?0:2,style:Bt(x,{x:T,y:C,text:l.getName(y),align:"center",verticalAlign:"middle"},{inheritColor:b})}),S.add(M)}var D=m.getModel("detail");if(D.get("show")){var L=D.get("offsetCenter"),I=o.cx+H(L[0],o.r),P=o.cy+H(L[1],o.r),R=H(D.get("width"),o.r),E=H(D.get("height"),o.r),N=t.get(["progress","show"])?l.getItemVisual(y,"style").fill:b,M=p[y],O=D.get("formatter");M.attr({z2:g?0:2,style:Bt(D,{x:I,y:P,text:ev(_,O),width:isNaN(R)?null:R,height:isNaN(E)?null:E,align:"center",verticalAlign:"middle"},{inheritColor:N})}),I1(M,{normal:D},_,function(F){return ev(F,O)}),d&&P1(M,y,l,t,{getFormattedLabel:function(F,W,X,Q,J,dt){return ev(dt?dt.interpolatedValue:_,O)}}),S.add(M)}v.add(S)}),this.group.add(v),this._titleEls=c,this._detailEls=p},e.type="gauge",e}(zt),BH=NH,VH=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="itemStyle",t}return e.prototype.getInitialData=function(t,a){return Jo(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e}(Wt),zH=VH;function GH(r){r.registerChartView(BH),r.registerSeriesModel(zH)}var FH=["itemStyle","opacity"],HH=function(r){k(e,r);function e(t,a){var n=r.call(this)||this,i=n,o=new Ze,s=new Ct;return i.setTextContent(s),n.setTextGuideLine(o),n.updateData(t,a,!0),n}return e.prototype.updateData=function(t,a,n){var i=this,o=t.hostModel,s=t.getItemModel(a),l=t.getItemLayout(a),u=s.getModel("emphasis"),f=s.get(FH);f=f==null?1:f,n||Nr(i),i.useStyle(t.getItemVisual(a,"style")),i.style.lineJoin="round",n?(i.setShape({points:l.points}),i.style.opacity=0,Ht(i,{style:{opacity:f}},o,a)):At(i,{style:{opacity:f},shape:{points:l.points}},o,a),Se(i,s),this._updateLabel(t,a),Yt(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,a){var n=this,i=this.getTextGuideLine(),o=n.getTextContent(),s=t.hostModel,l=t.getItemModel(a),u=t.getItemLayout(a),f=u.label,h=t.getItemVisual(a,"style"),v=h.fill;xe(o,ue(l),{labelFetcher:t.hostModel,labelDataIndex:a,defaultOpacity:h.opacity,defaultText:t.getName(a)},{normal:{align:f.textAlign,verticalAlign:f.verticalAlign}}),n.setTextConfig({local:!0,inside:!!f.inside,insideStroke:v,outsideFill:v});var c=f.linePoints;i.setShape({points:c}),n.textGuideLineConfig={anchor:c?new lt(c[0][0],c[0][1]):null},At(o,{style:{x:f.x,y:f.y}},s,a),o.attr({rotation:f.rotation,originX:f.x,originY:f.y,z2:10}),Ld(n,Id(l),{stroke:v})},e}(Ye),WH=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,a,n){var i=t.getData(),o=this._data,s=this.group;i.diff(o).add(function(l){var u=new HH(i,l);i.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var f=o.getItemGraphicEl(u);f.updateData(i,l),s.add(f),i.setItemGraphicEl(l,f)}).remove(function(l){var u=o.getItemGraphicEl(l);tl(u,t,l)}).execute(),this._data=i},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(zt),UH=WH,YH=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Hl(Y(this.getData,this),Y(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.getInitialData=function(t,a){return Jo(this,{coordDimensions:["value"],encodeDefaulter:it(Mp,this)})},e.prototype._defaultLabelLine=function(t){ei(t,"labelLine",["show"]);var a=t.labelLine,n=t.emphasis.labelLine;a.show=a.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.prototype.getDataParams=function(t){var a=this.getData(),n=r.prototype.getDataParams.call(this,t),i=a.mapDimension("value"),o=a.getSum(i);return n.percent=o?+(a.get(i,t)/o*100).toFixed(2):0,n.$vars.push("percent"),n},e.type="series.funnel",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(Wt),ZH=YH;function XH(r,e){return oe(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function KH(r,e){for(var t=r.mapDimension("value"),a=r.mapArray(t,function(l){return l}),n=[],i=e==="ascending",o=0,s=r.count();oc4)return;var n=this._model.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]);n.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:n.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(r){if(!(this._mouseDownPoint||!fy(this,"mousemove"))){var e=this._model,t=e.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]),a=t.behavior;a==="jump"&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand(a==="none"?null:{axisExpandWindow:t.axisExpandWindow,animation:a==="jump"?null:{duration:0}})}}};function fy(r,e){var t=r._model;return t.get("axisExpandable")&&t.get("axisExpandTriggerOn")===e}var g4=p4,y4=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){r.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var a=this.option;t&&ot(a,t,!0),this._initDimensions()},e.prototype.contains=function(t,a){var n=t.get("parallelIndex");return n!=null&&a.getComponent("parallel",n)===this},e.prototype.setAxisExpand=function(t){A(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(a){t.hasOwnProperty(a)&&(this.option[a]=t[a])},this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],a=this.parallelAxisIndex=[],n=Rt(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(i){return(i.get("parallelIndex")||0)===this.componentIndex},this);A(n,function(i){t.push("dim"+i.get("dim")),a.push(i.componentIndex)})},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e}(Mt),m4=y4,_4=function(r){k(e,r);function e(t,a,n,i,o){var s=r.call(this,t,a,n)||this;return s.type=i||"value",s.axisIndex=o,s}return e.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},e}(Yr),S4=_4;function ji(r,e,t,a,n,i){r=r||0;var o=t[1]-t[0];if(n!=null&&(n=os(n,[0,o])),i!=null&&(i=Math.max(i,n!=null?n:0)),a==="all"){var s=Math.abs(e[1]-e[0]);s=os(s,[0,o]),n=i=os(s,[n,i]),a=0}e[0]=os(e[0],t),e[1]=os(e[1],t);var l=hy(e,a);e[a]+=r;var u=n||0,f=t.slice();l.sign<0?f[0]+=u:f[1]-=u,e[a]=os(e[a],f);var h;return h=hy(e,a),n!=null&&(h.sign!==l.sign||h.spani&&(e[1-a]=e[a]+h.sign*i),e}function hy(r,e){var t=r[e]-r[1-e];return{span:Math.abs(t),sign:t>0?-1:t<0?1:e?-1:1}}function os(r,e){return Math.min(e[1]!=null?e[1]:Infinity,Math.max(e[0]!=null?e[0]:-Infinity,r))}var vy=A,eM=Math.min,rM=Math.max,aM=Math.floor,x4=Math.ceil,nM=Kt,b4=Math.PI,w4=function(){function r(e,t,a){this.type="parallel",this._axesMap=q(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,a)}return r.prototype._init=function(e,t,a){var n=e.dimensions,i=e.parallelAxisIndex;vy(n,function(o,s){var l=i[s],u=t.getComponent("parallelAxis",l),f=this._axesMap.set(o,new S4(o,Vh(u),[0,0],u.get("type"),l)),h=f.type==="category";f.onBand=h&&u.get("boundaryGap"),f.inverse=u.get("inverse"),u.axis=f,f.model=u,f.coordinateSystem=u.coordinateSystem=this},this)},r.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},r.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),a=t.axisBase,n=t.layoutBase,i=t.pixelDimIndex,o=e[1-i],s=e[i];return o>=a&&o<=a+t.axisLength&&s>=n&&s<=n+t.layoutLength},r.prototype.getModel=function(){return this._model},r.prototype._updateAxesFromSeries=function(e,t){t.eachSeries(function(a){if(!!e.contains(a,t)){var n=a.getData();vy(this.dimensions,function(i){var o=this._axesMap.get(i);o.scale.unionExtentFromData(n,n.mapDimension(i)),es(o.scale,o.model)},this)}},this)},r.prototype.resize=function(e,t){this._rect=oe(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},r.prototype.getRect=function(){return this._rect},r.prototype._makeLayoutInfo=function(){var e=this._model,t=this._rect,a=["x","y"],n=["width","height"],i=e.get("layout"),o=i==="horizontal"?0:1,s=t[n[o]],l=[0,s],u=this.dimensions.length,f=rv(e.get("axisExpandWidth"),l),h=rv(e.get("axisExpandCount")||0,[0,u]),v=e.get("axisExpandable")&&u>3&&u>h&&h>1&&f>0&&s>0,c=e.get("axisExpandWindow"),p;if(c)p=rv(c[1]-c[0],l),c[1]=c[0]+p;else{p=rv(f*(h-1),l);var d=e.get("axisExpandCenter")||aM(u/2);c=[f*d-p/2],c[1]=c[0]+p}var g=(s-p)/(u-h);g<3&&(g=0);var y=[aM(nM(c[0]/f,1))+1,x4(nM(c[1]/f,1))-1],m=g/f*c[0];return{layout:i,pixelDimIndex:o,layoutBase:t[a[o]],layoutLength:s,axisBase:t[a[1-o]],axisLength:t[n[1-o]],axisExpandable:v,axisExpandWidth:f,axisCollapseWidth:g,axisExpandWindow:c,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:m}},r.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,a=this.dimensions,n=this._makeLayoutInfo(),i=n.layout;t.each(function(o){var s=[0,n.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),vy(a,function(o,s){var l=(n.axisExpandable?C4:T4)(s,n),u={horizontal:{x:l.position,y:n.axisLength},vertical:{x:0,y:l.position}},f={horizontal:b4/2,vertical:0},h=[u[i].x+e.x,u[i].y+e.y],v=f[i],c=hr();Zn(c,c,v),jr(c,c,h),this._axesLayout[o]={position:h,rotation:v,transform:c,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},r.prototype.getAxis=function(e){return this._axesMap.get(e)},r.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},r.prototype.eachActiveState=function(e,t,a,n){a==null&&(a=0),n==null&&(n=e.count());var i=this._axesMap,o=this.dimensions,s=[],l=[];A(o,function(g){s.push(e.mapDimension(g)),l.push(i.get(g).model)});for(var u=this.hasAxisBrushed(),f=a;fi*(1-h[0])?(u="jump",l=s-i*(1-h[2])):(l=s-i*h[1])>=0&&(l=s-i*(1-h[1]))<=0&&(l=0),l*=t.axisExpandWidth/f,l?ji(l,n,o,"all"):u="none";else{var c=n[1]-n[0],p=o[1]*s/c;n=[rM(0,p-c/2)],n[1]=eM(o[1],n[0]+c),n[0]=n[1]-c}return{axisExpandWindow:n,behavior:u}},r}();function rv(r,e){return eM(rM(r,e[0]),e[1])}function T4(r,e){var t=e.layoutLength/(e.axisCount-1);return{position:t*r,axisNameAvailableWidth:t,axisLabelShow:!0}}function C4(r,e){var t=e.layoutLength,a=e.axisExpandWidth,n=e.axisCount,i=e.axisCollapseWidth,o=e.winInnerIndices,s,l=i,u=!1,f;return r=0;n--)pr(a[n])},e.prototype.getActiveState=function(t){var a=this.activeIntervals;if(!a.length)return"normal";if(t==null||isNaN(+t))return"inactive";if(a.length===1){var n=a[0];if(n[0]<=t&&t<=n[1])return"active"}else for(var i=0,o=a.length;iR4}function pM(r){var e=r.length-1;return e<0&&(e=0),[r[0],r[e]]}function dM(r,e,t,a){var n=new rt;return n.add(new bt({name:"main",style:my(t),silent:!0,draggable:!0,cursor:"move",drift:it(mM,r,e,n,["n","s","w","e"]),ondragend:it(Qi,e,{isEnd:!0})})),A(a,function(i){n.add(new bt({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:it(mM,r,e,n,i),ondragend:it(Qi,e,{isEnd:!0})}))}),n}function gM(r,e,t,a){var n=a.brushStyle.lineWidth||0,i=ss(n,E4),o=t[0][0],s=t[1][0],l=o-n/2,u=s-n/2,f=t[0][1],h=t[1][1],v=f-i+n/2,c=h-i+n/2,p=f-o,d=h-s,g=p+n,y=d+n;Fa(r,e,"main",o,s,p,d),a.transformable&&(Fa(r,e,"w",l,u,i,y),Fa(r,e,"e",v,u,i,y),Fa(r,e,"n",l,u,g,i),Fa(r,e,"s",l,c,g,i),Fa(r,e,"nw",l,u,i,i),Fa(r,e,"ne",v,u,i,i),Fa(r,e,"sw",l,c,i,i),Fa(r,e,"se",v,c,i,i))}function yy(r,e){var t=e.__brushOption,a=t.transformable,n=e.childAt(0);n.useStyle(my(t)),n.attr({silent:!a,cursor:a?"move":"default"}),A([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=e.childOfName(i.join("")),s=i.length===1?_y(r,i[0]):G4(r,i);o&&o.attr({silent:!a,invisible:!a,cursor:a?O4[s]+"-resize":null})})}function Fa(r,e,t,a,n,i,o){var s=e.childOfName(t);s&&s.setShape(H4(Sy(r,e,[[a,n],[a+i,n+o]])))}function my(r){return K({strokeNoScale:!0},r.brushStyle)}function yM(r,e,t,a){var n=[uu(r,t),uu(e,a)],i=[ss(r,t),ss(e,a)];return[[n[0],i[0]],[n[1],i[1]]]}function z4(r){return Di(r.group)}function _y(r,e){var t={w:"left",e:"right",n:"top",s:"bottom"},a={left:"w",right:"e",top:"n",bottom:"s"},n=$f(t[e],z4(r));return a[n]}function G4(r,e){var t=[_y(r,e[0]),_y(r,e[1])];return(t[0]==="e"||t[0]==="w")&&t.reverse(),t.join("")}function mM(r,e,t,a,n,i){var o=t.__brushOption,s=r.toRectRange(o.range),l=_M(e,n,i);A(a,function(u){var f=k4[u];s[f[0]][f[1]]+=l[f[0]]}),o.range=r.fromRectRange(yM(s[0][0],s[1][0],s[0][1],s[1][1])),cy(e,t),Qi(e,{isEnd:!1})}function F4(r,e,t,a){var n=e.__brushOption.range,i=_M(r,t,a);A(n,function(o){o[0]+=i[0],o[1]+=i[1]}),cy(r,e),Qi(r,{isEnd:!1})}function _M(r,e,t){var a=r.group,n=a.transformCoordToLocal(e,t),i=a.transformCoordToLocal(0,0);return[n[0]-i[0],n[1]-i[1]]}function Sy(r,e,t){var a=cM(r,e);return a&&a!==$i?a.clipPath(t,r._transform):tt(t)}function H4(r){var e=uu(r[0][0],r[1][0]),t=uu(r[0][1],r[1][1]),a=ss(r[0][0],r[1][0]),n=ss(r[0][1],r[1][1]);return{x:e,y:t,width:a-e,height:n-t}}function W4(r,e,t){if(!(!r._brushType||Y4(r,e.offsetX,e.offsetY))){var a=r._zr,n=r._covers,i=dy(r,e,t);if(!r._dragging)for(var o=0;oa.getWidth()||t<0||t>a.getHeight()}var av={lineX:wM(0),lineY:wM(1),rect:{createCover:function(r,e){function t(a){return a}return dM({toRectRange:t,fromRectRange:t},r,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var e=pM(r);return yM(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(r,e,t,a){gM(r,e,t,a)},updateCommon:yy,contain:by},polygon:{createCover:function(r,e){var t=new rt;return t.add(new Ze({name:"main",style:my(e),silent:!0})),t},getCreatingRange:function(r){return r},endCreating:function(r,e){e.remove(e.childAt(0)),e.add(new Ye({name:"main",draggable:!0,drift:it(F4,r,e),ondragend:it(Qi,r,{isEnd:!0})}))},updateCoverShape:function(r,e,t,a){e.childAt(0).setShape({points:Sy(r,e,t)})},updateCommon:yy,contain:by}};function wM(r){return{createCover:function(e,t){return dM({toRectRange:function(a){var n=[a,[0,100]];return r&&n.reverse(),n},fromRectRange:function(a){return a[r]}},e,t,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(e){var t=pM(e),a=uu(t[0][r],t[1][r]),n=ss(t[0][r],t[1][r]);return[a,n]},updateCoverShape:function(e,t,a,n){var i,o=cM(e,t);if(o!==$i&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(r);else{var s=e._zr;i=[0,[s.getWidth(),s.getHeight()][1-r]]}var l=[a,i];r&&l.reverse(),gM(e,t,l,n)},updateCommon:yy,contain:by}}var wy=B4;function TM(r){return r=Ty(r),function(e){return Bx(e,r)}}function CM(r,e){return r=Ty(r),function(t){var a=e!=null?e:t,n=a?r.width:r.height,i=a?r.x:r.y;return[i,i+(n||0)]}}function AM(r,e,t){var a=Ty(r);return function(n,i){return a.contain(i[0],i[1])&&!Hh(n,e,t)}}function Ty(r){return ht.create(r)}var Z4=["axisLine","axisTickLabel","axisName"],X4=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a){r.prototype.init.apply(this,arguments),(this._brushController=new wy(a.getZr())).on("brush",Y(this._onBrush,this))},e.prototype.render=function(t,a,n,i){if(!K4(t,a,i)){this.axisModel=t,this.api=n,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new rt,this.group.add(this._axisGroup),!!t.get("show")){var s=j4(t,a),l=s.coordinateSystem,u=t.getAreaSelectStyle(),f=u.width,h=t.axis.dim,v=l.getAxisLayout(h),c=B({strokeContainThreshold:f},v),p=new za(t,c);A(Z4,p.add,p),this._axisGroup.add(p.getGroup()),this._refreshBrushController(c,u,t,s,f,n),yl(o,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,a,n,i,o,s){var l=n.axis.getExtent(),u=l[1]-l[0],f=Math.min(30,Math.abs(u)*.1),h=ht.create({x:l[0],y:-o/2,width:u,height:o});h.x-=f,h.width+=2*f,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:TM(h),isTargetByCursor:AM(h,s,i),getLinearBrushOtherExtent:CM(h,0)}]).enableBrush({brushType:"lineX",brushStyle:a,removeOnClick:!0}).updateCovers(q4(n))},e.prototype._onBrush=function(t){var a=t.areas,n=this.axisModel,i=n.axis,o=G(a,function(s){return[i.coordToData(s.range[0],!0),i.coordToData(s.range[1],!0)]});(!n.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:o})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(Zt);function K4(r,e,t){return t&&t.type==="axisAreaSelect"&&e.findComponents({mainType:"parallelAxis",query:t})[0]===r}function q4(r){var e=r.axis;return G(r.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}})}function j4(r,e){return e.getComponent("parallel",r.get("parallelIndex"))}var $4=X4,Q4={type:"axisAreaSelect",event:"axisAreaSelected"};function J4(r){r.registerAction(Q4,function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},function(a){a.axis.model.setActiveIntervals(e.intervals)})}),r.registerAction("parallelAxisExpand",function(e,t){t.eachComponent({mainType:"parallel",query:e},function(a){a.setAxisExpand(e)})})}var tW={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function MM(r){r.registerComponentView(g4),r.registerComponentModel(m4),r.registerCoordinateSystem("parallel",L4),r.registerPreprocessor(f4),r.registerComponentModel(oM),r.registerComponentView($4),ts(r,"parallel",oM,tW),J4(r)}function eW(r){ct(MM),r.registerChartView(r4),r.registerSeriesModel(o4),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,u4)}var rW=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return r}(),aW=function(r){k(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new rW},e.prototype.buildPath=function(t,a){var n=a.extent;t.moveTo(a.x1,a.y1),t.bezierCurveTo(a.cpx1,a.cpy1,a.cpx2,a.cpy2,a.x2,a.y2),a.orient==="vertical"?(t.lineTo(a.x2+n,a.y2),t.bezierCurveTo(a.cpx2+n,a.cpy2,a.cpx1+n,a.cpy1,a.x1+n,a.y1)):(t.lineTo(a.x2,a.y2+n),t.bezierCurveTo(a.cpx2,a.cpy2+n,a.cpx1,a.cpy1+n,a.x1,a.y1+n)),t.closePath()},e.prototype.highlight=function(){Ra(this)},e.prototype.downplay=function(){Ea(this)},e}(pt),nW=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._focusAdjacencyDisabled=!1,t}return e.prototype.render=function(t,a,n){var i=this,o=t.getGraph(),s=this.group,l=t.layoutInfo,u=l.width,f=l.height,h=t.getData(),v=t.getData("edge"),c=t.get("orient");this._model=t,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(p){var d=new aW,g=nt(d);g.dataIndex=p.dataIndex,g.seriesIndex=t.seriesIndex,g.dataType="edge";var y=p.getModel(),m=y.getModel("lineStyle"),_=m.get("curveness"),S=p.node1.getLayout(),b=p.node1.getModel(),x=b.get("localX"),w=b.get("localY"),T=p.node2.getLayout(),C=p.node2.getModel(),M=C.get("localX"),D=C.get("localY"),L=p.getLayout(),I,P,R,E,N,O,V,F;switch(d.shape.extent=Math.max(1,L.dy),d.shape.orient=c,c==="vertical"?(I=(x!=null?x*u:S.x)+L.sy,P=(w!=null?w*f:S.y)+S.dy,R=(M!=null?M*u:T.x)+L.ty,E=D!=null?D*f:T.y,N=I,O=P*(1-_)+E*_,V=R,F=P*_+E*(1-_)):(I=(x!=null?x*u:S.x)+S.dx,P=(w!=null?w*f:S.y)+L.sy,R=M!=null?M*u:T.x,E=(D!=null?D*f:T.y)+L.ty,N=I*(1-_)+R*_,O=P,V=I*_+R*(1-_),F=E),d.setShape({x1:I,y1:P,x2:R,y2:E,cpx1:N,cpy1:O,cpx2:V,cpy2:F}),d.useStyle(m.getItemStyle()),d.style.fill){case"source":d.style.fill=p.node1.getVisual("color"),d.style.decal=p.node1.getVisual("style").decal;break;case"target":d.style.fill=p.node2.getVisual("color"),d.style.decal=p.node2.getVisual("style").decal;break;case"gradient":var W=p.node1.getVisual("color"),X=p.node2.getVisual("color");U(W)&&U(X)&&(d.style.fill=new gl(0,0,+(c==="horizontal"),+(c==="vertical"),[{color:W,offset:0},{color:X,offset:1}]))}xe(d,ue(y,"edgeLabel"),{labelFetcher:t,labelDataIndex:p.dataIndex,defaultText:""+y.get("value")}),d.setTextConfig({position:"inside"});var Q=y.getModel("emphasis");Se(d,y,"lineStyle",function(dt){return dt.getItemStyle()}),s.add(d),v.setItemGraphicEl(p.dataIndex,d);var J=Q.get("focus");Yt(d,J==="adjacency"?p.getAdjacentDataIndices():J,Q.get("blurScope"),Q.get("disabled")),nt(d).dataType="edge"}),o.eachNode(function(p){var d=p.getLayout(),g=p.getModel(),y=g.get("localX"),m=g.get("localY"),_=g.getModel("emphasis"),S=new bt({shape:{x:y!=null?y*u:d.x,y:m!=null?m*f:d.y,width:d.dx,height:d.dy},style:g.getModel("itemStyle").getItemStyle(),z2:10});xe(S,ue(g),{labelFetcher:t,labelDataIndex:p.dataIndex,defaultText:p.id}),S.disableLabelAnimation=!0,S.setStyle("fill",p.getVisual("color")),S.setStyle("decal",p.getVisual("style").decal),Se(S,g),s.add(S),h.setItemGraphicEl(p.dataIndex,S),nt(S).dataType="node";var b=_.get("focus");Yt(S,b==="adjacency"?p.getAdjacentDataIndices():b,_.get("blurScope"),_.get("disabled"))}),h.eachItemGraphicEl(function(p,d){var g=h.getItemModel(d);g.get("draggable")&&(p.drift=function(y,m){i._focusAdjacencyDisabled=!0,this.shape.x+=y,this.shape.y+=m,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:h.getRawIndex(d),localX:this.shape.x/u,localY:this.shape.y/f})},p.ondragend=function(){i._focusAdjacencyDisabled=!1},p.draggable=!0,p.cursor="move")}),!this._data&&t.isAnimationEnabled()&&s.setClipPath(iW(s.getBoundingRect(),t,function(){s.removeClipPath()})),this._data=t.getData()},e.prototype.dispose=function(){},e.type="sankey",e}(zt);function iW(r,e,t){var a=new bt({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return Ht(a,{shape:{width:r.width+20}},e,t),a}var oW=nW,sW=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,a){var n=t.edges||t.links,i=t.data||t.nodes,o=t.levels;this.levelModels=[];for(var s=this.levelModels,l=0;l=0&&(s[o[l].depth]=new Vt(o[l],this,a));if(i&&n){var u=$A(i,n,this,!0,f);return u.data}function f(h,v){h.wrapMethod("getItemModel",function(c,p){var d=c.parentModel,g=d.getData().getItemLayout(p);if(g){var y=g.depth,m=d.levelModels[y];m&&(c.parentModel=m)}return c}),v.wrapMethod("getItemModel",function(c,p){var d=c.parentModel,g=d.getGraph().getEdgeByIndex(p),y=g.node1.getLayout();if(y){var m=y.depth,_=d.levelModels[m];_&&(c.parentModel=_)}return c})}},e.prototype.setNodePosition=function(t,a){var n=this.option.data||this.option.nodes,i=n[t];i.localX=a[0],i.localY=a[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,a,n){function i(c){return isNaN(c)||c==null}if(n==="edge"){var o=this.getDataParams(t,n),s=o.data,l=o.value,u=s.source+" -- "+s.target;return fe("nameValue",{name:u,value:l,noValue:i(l)})}else{var f=this.getGraph().getNodeByIndex(t),h=f.getLayout().value,v=this.getDataParams(t,n).data.name;return fe("nameValue",{name:v!=null?v+"":null,value:h,noValue:i(h)})}},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(t,a){var n=r.prototype.getDataParams.call(this,t,a);if(n.value==null&&a==="node"){var i=this.getGraph().getNodeByIndex(t),o=i.getLayout().value;n.value=o}return n},e.type="series.sankey",e.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},e}(Wt),lW=sW;function uW(r,e){r.eachSeriesByType("sankey",function(t){var a=t.get("nodeWidth"),n=t.get("nodeGap"),i=fW(t,e);t.layoutInfo=i;var o=i.width,s=i.height,l=t.getGraph(),u=l.nodes,f=l.edges;vW(u);var h=Rt(u,function(d){return d.getLayout().value===0}),v=h.length!==0?0:t.get("layoutIterations"),c=t.get("orient"),p=t.get("nodeAlign");hW(u,f,a,n,o,s,v,c,p)})}function fW(r,e){return oe(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function hW(r,e,t,a,n,i,o,s,l){cW(r,e,t,n,i,s,l),yW(r,e,i,n,a,o,s),AW(r,s)}function vW(r){A(r,function(e){var t=Mn(e.outEdges,nv),a=Mn(e.inEdges,nv),n=e.getValue()||0,i=Math.max(t,a,n);e.setLayout({value:i},!0)})}function cW(r,e,t,a,n,i,o){for(var s=[],l=[],u=[],f=[],h=0,v=0;v=0;y&&g.depth>c&&(c=g.depth),d.setLayout({depth:y?g.depth:h},!0),i==="vertical"?d.setLayout({dy:t},!0):d.setLayout({dx:t},!0);for(var m=0;mh-1?c:h-1;o&&o!=="left"&&pW(r,o,i,w);var T=i==="vertical"?(n-t)/w:(a-t)/w;gW(r,T,i)}function DM(r){var e=r.hostGraph.data.getRawDataItem(r.dataIndex);return e.depth!=null&&e.depth>=0}function pW(r,e,t,a){if(e==="right"){for(var n=[],i=r,o=0;i.length;){for(var s=0;s0;i--)l*=.99,SW(s,l,o),Cy(s,n,t,a,o),CW(s,l,o),Cy(s,n,t,a,o)}function mW(r,e){var t=[],a=e==="vertical"?"y":"x",n=Vc(r,function(i){return i.getLayout()[a]});return n.keys.sort(function(i,o){return i-o}),A(n.keys,function(i){t.push(n.buckets.get(i))}),t}function _W(r,e,t,a,n,i){var o=Infinity;A(r,function(s){var l=s.length,u=0;A(s,function(h){u+=h.getLayout().value});var f=i==="vertical"?(a-(l-1)*n)/u:(t-(l-1)*n)/u;f0&&(s=l.getLayout()[i]+u,n==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),f=l.getLayout()[i]+l.getLayout()[v]+e;var p=n==="vertical"?a:t;if(u=f-e-p,u>0){s=l.getLayout()[i]-u,n==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),f=s;for(var c=h-2;c>=0;--c)l=o[c],u=l.getLayout()[i]+l.getLayout()[v]+e-f,u>0&&(s=l.getLayout()[i]-u,n==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),f=l.getLayout()[i]}})}function SW(r,e,t){A(r.slice().reverse(),function(a){A(a,function(n){if(n.outEdges.length){var i=Mn(n.outEdges,xW,t)/Mn(n.outEdges,nv);if(isNaN(i)){var o=n.outEdges.length;i=o?Mn(n.outEdges,bW,t)/o:0}if(t==="vertical"){var s=n.getLayout().x+(i-An(n,t))*e;n.setLayout({x:s},!0)}else{var l=n.getLayout().y+(i-An(n,t))*e;n.setLayout({y:l},!0)}}})})}function xW(r,e){return An(r.node2,e)*r.getValue()}function bW(r,e){return An(r.node2,e)}function wW(r,e){return An(r.node1,e)*r.getValue()}function TW(r,e){return An(r.node1,e)}function An(r,e){return e==="vertical"?r.getLayout().x+r.getLayout().dx/2:r.getLayout().y+r.getLayout().dy/2}function nv(r){return r.getValue()}function Mn(r,e,t){for(var a=0,n=r.length,i=-1;++io&&(o=l)}),A(a,function(s){var l=new we({type:"color",mappingMethod:"linear",dataExtent:[i,o],visual:e.get("color")}),u=l.mapValueToVisual(s.getLayout().value),f=s.getModel().get(["itemStyle","color"]);f!=null?(s.setVisual("color",f),s.setVisual("style",{fill:f})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}n.length&&A(n,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function DW(r){r.registerChartView(oW),r.registerSeriesModel(lW),r.registerLayout(uW),r.registerVisual(MW),r.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},function(a){a.setNodePosition(e.dataIndex,[e.localX,e.localY])})})}var LM=function(){function r(){}return r.prototype.getInitialData=function(e,t){var a,n=t.getComponent("xAxis",this.get("xAxisIndex")),i=t.getComponent("yAxis",this.get("yAxisIndex")),o=n.get("type"),s=i.get("type"),l;o==="category"?(e.layout="horizontal",a=n.getOrdinalMeta(),l=!0):s==="category"?(e.layout="vertical",a=i.getOrdinalMeta(),l=!0):e.layout=e.layout||"horizontal";var u=["x","y"],f=e.layout==="horizontal"?0:1,h=this._baseAxisDim=u[f],v=u[1-f],c=[n,i],p=c[f].get("type"),d=c[1-f].get("type"),g=e.data;if(g&&l){var y=[];A(g,function(S,b){var x;z(S)?(x=S.slice(),S.unshift(b)):z(S.value)?(x=B({},S),x.value=x.value.slice(),S.value.unshift(b)):x=S,y.push(x)}),e.data=y}var m=this.defaultValueDimensions,_=[{name:h,type:Sh(p),ordinalMeta:a,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:v,type:Sh(d),dimsDef:m.slice()}];return Jo(this,{coordDimensions:_,dimensionsCount:m.length+1,encodeDefaulter:it(aS,_,this)})},r.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},r}(),IM=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],t.visualDrawType="stroke",t}return e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},e}(Wt);Jt(IM,LM,!0);var LW=IM,IW=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i=t.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=t.get("layout")==="horizontal"?1:0;i.diff(s).add(function(u){if(i.hasValue(u)){var f=i.getItemLayout(u),h=PM(f,i,u,l,!0);i.setItemGraphicEl(u,h),o.add(h)}}).update(function(u,f){var h=s.getItemGraphicEl(f);if(!i.hasValue(u)){o.remove(h);return}var v=i.getItemLayout(u);h?(Nr(h),RM(v,h,i,u)):h=PM(v,i,u,l),o.add(h),i.setItemGraphicEl(u,h)}).remove(function(u){var f=s.getItemGraphicEl(u);f&&o.remove(f)}).execute(),this._data=i},e.prototype.remove=function(t){var a=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl(function(i){i&&a.remove(i)})},e.type="boxplot",e}(zt),PW=function(){function r(){}return r}(),RW=function(r){k(e,r);function e(t){var a=r.call(this,t)||this;return a.type="boxplotBoxPath",a}return e.prototype.getDefaultShape=function(){return new PW},e.prototype.buildPath=function(t,a){var n=a.points,i=0;for(t.moveTo(n[i][0],n[i][1]),i++;i<4;i++)t.lineTo(n[i][0],n[i][1]);for(t.closePath();id){var S=[y,_];a.push(S)}}}return{boxData:t,outliers:a}}var GW={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==Ce){var a="";Lt(a)}var n=zW(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:n.boxData},{data:n.outliers}]}};function FW(r){r.registerSeriesModel(LW),r.registerChartView(kW),r.registerLayout(OW),r.registerTransform(GW)}var HW=["color","borderColor"],WW=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,a,n){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,a,n,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,a):this._incrementalRenderNormal(t,a)},e.prototype.eachRendered=function(t){yn(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var a=t.pipelineContext.large;(this._isLargeDraw==null||a!==this._isLargeDraw)&&(this._isLargeDraw=a,this._clear())},e.prototype._renderNormal=function(t){var a=t.getData(),n=this._data,i=this.group,o=a.getLayout("isSimpleBox"),s=t.get("clip",!0),l=t.coordinateSystem,u=l.getArea&&l.getArea();this._data||i.removeAll(),a.diff(n).add(function(f){if(a.hasValue(f)){var h=a.getItemLayout(f);if(s&&EM(u,h))return;var v=Ay(h,f,!0);Ht(v,{shape:{points:h.ends}},t,f),My(v,a,f,o),i.add(v),a.setItemGraphicEl(f,v)}}).update(function(f,h){var v=n.getItemGraphicEl(h);if(!a.hasValue(f)){i.remove(v);return}var c=a.getItemLayout(f);if(s&&EM(u,c)){i.remove(v);return}v?(At(v,{shape:{points:c.ends}},t,f),Nr(v)):v=Ay(c,f),My(v,a,f,o),i.add(v),a.setItemGraphicEl(f,v)}).remove(function(f){var h=n.getItemGraphicEl(f);h&&i.remove(h)}).execute(),this._data=a},e.prototype._renderLarge=function(t){this._clear(),kM(t,this.group);var a=t.get("clip",!0)?Th(t.coordinateSystem,!1,t):null;a?this.group.setClipPath(a):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,a){for(var n=a.getData(),i=n.getLayout("isSimpleBox"),o;(o=t.next())!=null;){var s=n.getItemLayout(o),l=Ay(s,o);My(l,n,o,i),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},e.prototype._incrementalRenderLarge=function(t,a){kM(a,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(zt),UW=function(){function r(){}return r}(),YW=function(r){k(e,r);function e(t){var a=r.call(this,t)||this;return a.type="normalCandlestickBox",a}return e.prototype.getDefaultShape=function(){return new UW},e.prototype.buildPath=function(t,a){var n=a.points;this.__simpleBox?(t.moveTo(n[4][0],n[4][1]),t.lineTo(n[6][0],n[6][1])):(t.moveTo(n[0][0],n[0][1]),t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]),t.lineTo(n[3][0],n[3][1]),t.closePath(),t.moveTo(n[4][0],n[4][1]),t.lineTo(n[5][0],n[5][1]),t.moveTo(n[6][0],n[6][1]),t.lineTo(n[7][0],n[7][1]))},e}(pt);function Ay(r,e,t){var a=r.ends;return new YW({shape:{points:t?ZW(a,r):a},z2:100})}function EM(r,e){for(var t=!0,a=0;a0?"borderColor":"borderColor0"])||t.get(["itemStyle",r>0?"color":"color0"]);r===0&&(n=t.get(["itemStyle","borderColorDoji"]));var i=t.getModel("itemStyle").getItemStyle(HW);e.useStyle(i),e.style.fill=null,e.style.stroke=n}var KW=WW,OM=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],t}return e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,a,n){var i=a.getItemLayout(t);return i&&n.rect(i.brushRect)},e.type="series.candlestick",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e}(Wt);Jt(OM,LM,!0);var qW=OM;function jW(r){!r||!z(r.series)||A(r.series,function(e){et(e)&&e.type==="k"&&(e.type="candlestick")})}var $W=["itemStyle","borderColor"],QW=["itemStyle","borderColor0"],JW=["itemStyle","borderColorDoji"],t6=["itemStyle","color"],e6=["itemStyle","color0"],r6={seriesType:"candlestick",plan:Bo(),performRawSeries:!0,reset:function(r,e){function t(i,o){return o.get(i>0?t6:e6)}function a(i,o){return o.get(i===0?JW:i>0?$W:QW)}if(!e.isSeriesFiltered(r)){var n=r.pipelineContext.large;return!n&&{progress:function(i,o){for(var s;(s=i.next())!=null;){var l=o.getItemModel(s),u=o.getItemLayout(s).sign,f=l.getItemStyle();f.fill=t(u,l),f.stroke=a(u,l)||f.fill;var h=o.ensureUniqueItemVisual(s,"style");B(h,f)}}}}}},a6=r6,n6={seriesType:"candlestick",plan:Bo(),reset:function(r){var e=r.coordinateSystem,t=r.getData(),a=i6(r,t),n=0,i=1,o=["x","y"],s=t.getDimensionIndex(t.mapDimension(o[n])),l=G(t.mapDimensionsAll(o[i]),t.getDimensionIndex,t),u=l[0],f=l[1],h=l[2],v=l[3];if(t.setLayout({candleWidth:a,isSimpleBox:a<=1.3}),s<0||l.length<4)return;return{progress:r.pipelineContext.large?p:c};function c(d,g){for(var y,m=g.getStore();(y=d.next())!=null;){var _=m.get(s,y),S=m.get(u,y),b=m.get(f,y),x=m.get(h,y),w=m.get(v,y),T=Math.min(S,b),C=Math.max(S,b),M=N(T,_),D=N(C,_),L=N(x,_),I=N(w,_),P=[];O(P,D,0),O(P,M,1),P.push(F(I),F(D),F(L),F(M));var R=g.getItemModel(y),E=!!R.get(["itemStyle","borderColorDoji"]);g.setItemLayout(y,{sign:NM(m,y,S,b,f,E),initBaseline:S>b?D[i]:M[i],ends:P,brushRect:V(x,w,_)})}function N(W,X){var Q=[];return Q[n]=X,Q[i]=W,isNaN(X)||isNaN(W)?[NaN,NaN]:e.dataToPoint(Q)}function O(W,X,Q){var J=X.slice(),dt=X.slice();J[n]=jf(J[n]+a/2,1,!1),dt[n]=jf(dt[n]-a/2,1,!0),Q?W.push(J,dt):W.push(dt,J)}function V(W,X,Q){var J=N(W,Q),dt=N(X,Q);return J[n]-=a/2,dt[n]-=a/2,{x:J[0],y:J[1],width:i?a:dt[0]-J[0],height:i?dt[1]-J[1]:a}}function F(W){return W[n]=jf(W[n],1),W}}function p(d,g){for(var y=da(d.count*4),m=0,_,S=[],b=[],x,w=g.getStore(),T=!!r.get(["itemStyle","borderColorDoji"]);(x=d.next())!=null;){var C=w.get(s,x),M=w.get(u,x),D=w.get(f,x),L=w.get(h,x),I=w.get(v,x);if(isNaN(C)||isNaN(L)||isNaN(I)){y[m++]=NaN,m+=3;continue}y[m++]=NM(w,x,M,D,f,T),S[n]=C,S[i]=L,_=e.dataToPoint(S,null,b),y[m++]=_?_[0]:NaN,y[m++]=_?_[1]:NaN,S[i]=I,_=e.dataToPoint(S,null,b),y[m++]=_?_[1]:NaN}g.setLayout("largePoints",y)}}};function NM(r,e,t,a,n,i){var o;return t>a?o=-1:t0?r.get(n,e-1)<=a?1:-1:1,o}function i6(r,e){var t=r.getBaseAxis(),a,n=t.type==="category"?t.getBandWidth():(a=t.getExtent(),Math.abs(a[1]-a[0])/e.count()),i=H(ft(r.get("barMaxWidth"),n),n),o=H(ft(r.get("barMinWidth"),1),n),s=r.get("barWidth");return s!=null?H(s,n):Math.max(Math.min(n/2,i),o)}var o6=n6;function s6(r){r.registerChartView(KW),r.registerSeriesModel(qW),r.registerPreprocessor(jW),r.registerVisual(a6),r.registerLayout(o6)}function BM(r,e){var t=e.rippleEffectColor||e.color;r.eachChild(function(a){a.attr({z:e.z,zlevel:e.zlevel,style:{stroke:e.brushType==="stroke"?t:null,fill:e.brushType==="fill"?t:null}})})}var l6=function(r){k(e,r);function e(t,a){var n=r.call(this)||this,i=new Vl(t,a),o=new rt;return n.add(i),n.add(o),n.updateData(t,a),n}return e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var a=t.symbolType,n=t.color,i=t.rippleNumber,o=this.childAt(1),s=0;s0&&(s=this._getLineLength(i)/f*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){i.stopAnimation();var v=void 0;$(h)?v=h(n):v=h,i.__t>0&&(v=-s*i.__t),this._animateSymbol(i,s,v,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},e.prototype._animateSymbol=function(t,a,n,i,o){if(a>0){t.__t=0;var s=this,l=t.animate("",i).when(o?a*2:a,{__t:o?2:1}).delay(n).during(function(){s._updateSymbolPosition(t)});i||l.done(function(){s.remove(t)}),l.start()}},e.prototype._getLineLength=function(t){return Qa(t.__p1,t.__cp1)+Qa(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,a){t.__p1=a[0],t.__p2=a[1],t.__cp1=a[2]||[(a[0][0]+a[1][0])/2,(a[0][1]+a[1][1])/2]},e.prototype.updateData=function(t,a,n){this.childAt(0).updateData(t,a,n),this._updateEffectSymbol(t,a)},e.prototype._updateSymbolPosition=function(t){var a=t.__p1,n=t.__p2,i=t.__cp1,o=t.__t<1?t.__t:2-t.__t,s=[t.x,t.y],l=s.slice(),u=pe,f=ac;s[0]=u(a[0],i[0],n[0],o),s[1]=u(a[1],i[1],n[1],o);var h=t.__t<1?f(a[0],i[0],n[0],o):f(n[0],i[0],a[0],1-o),v=t.__t<1?f(a[1],i[1],n[1],o):f(n[1],i[1],a[1],1-o);t.rotation=-Math.atan2(v,h)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(t.__lastT!==void 0&&t.__lastT=0&&!(i[l]<=a);l--);l=Math.min(l,o-2)}else{for(l=s;la);l++);l=Math.min(l-1,o-2)}var f=(a-i[l])/(i[l+1]-i[l]),h=n[l],v=n[l+1];t.x=h[0]*(1-f)+f*v[0],t.y=h[1]*(1-f)+f*v[1];var c=t.__t<1?v[0]-h[0]:h[0]-v[0],p=t.__t<1?v[1]-h[1]:h[1]-v[1];t.rotation=-Math.atan2(p,c)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=a,t.ignore=!1}},e}(VM),m6=y6,_6=function(){function r(){this.polyline=!1,this.curveness=0,this.segs=[]}return r}(),S6=function(r){k(e,r);function e(t){var a=r.call(this,t)||this;return a._off=0,a.hoverDataIdx=-1,a}return e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new _6},e.prototype.buildPath=function(t,a){var n=a.segs,i=a.curveness,o;if(a.polyline)for(o=this._off;o0){t.moveTo(n[o++],n[o++]);for(var l=1;l0){var c=(u+h)/2-(f-v)*i,p=(f+v)/2-(h-u)*i;t.quadraticCurveTo(c,p,h,v)}else t.lineTo(h,v)}this.incremental&&(this._off=o,this.notClear=!0)},e.prototype.findDataIndex=function(t,a){var n=this.shape,i=n.segs,o=n.curveness,s=this.style.lineWidth;if(n.polyline)for(var l=0,u=0;u0)for(var h=i[u++],v=i[u++],c=1;c0){var g=(h+p)/2-(v-d)*o,y=(v+d)/2-(p-h)*o;if(B_(h,v,g,y,p,d,s,t,a))return l}else if(un(h,v,p,d,s,t,a))return l;l++}return-1},e.prototype.contain=function(t,a){var n=this.transformCoordToLocal(t,a),i=this.getBoundingRect();if(t=n[0],a=n[1],i.contain(t,a)){var o=this.hoverDataIdx=this.findDataIndex(t,a);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var a=this.shape,n=a.segs,i=Infinity,o=Infinity,s=-Infinity,l=-Infinity,u=0;u0&&(o.dataIndex=l+e.__startIndex)})},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}(),b6=x6,w6={seriesType:"lines",plan:Bo(),reset:function(r){var e=r.coordinateSystem;if(!!e){var t=r.get("polyline"),a=r.pipelineContext.large;return{progress:function(n,i){var o=[];if(a){var s=void 0,l=n.end-n.start;if(t){for(var u=0,f=n.start;f0&&(f||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(i);var h=t.get("clip",!0)&&Th(t.coordinateSystem,!1,t);h?this.group.setClipPath(h):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,a,n){var i=t.getData(),o=this._updateLineDraw(i,t);o.incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},e.prototype.incrementalRender=function(t,a,n){this._lineDraw.incrementalUpdate(t,a.getData()),this._finished=t.end===a.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,a,n){var i=t.getData(),o=t.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=GM.reset(t,a,n);s.progress&&s.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(n)},e.prototype._updateLineDraw=function(t,a){var n=this._lineDraw,i=this._showEffect(a),o=!!a.get("polyline"),s=a.pipelineContext,l=s.large;return(!n||i!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(n&&n.remove(),n=this._lineDraw=l?new b6:new ay(o?i?m6:zM:i?VM:ey),this._hasEffet=i,this._isPolyline=o,this._isLargeDraw=l),this.group.add(n.group),n},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var a=t.getZr(),n=a.painter.getType()==="svg";!n&&this._lastZlevel!=null&&a.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,a){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(a)},e.prototype.dispose=function(t,a){this.remove(t,a)},e.type="lines",e}(zt),C6=T6,A6=typeof Uint32Array=="undefined"?Array:Uint32Array,M6=typeof Float64Array=="undefined"?Array:Float64Array;function FM(r){var e=r.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(r.data=G(e,function(t){var a=[t[0].coord,t[1].coord],n={coords:a};return t[0].name&&(n.fromName=t[0].name),t[1].name&&(n.toName=t[1].name),Kr([n,t[0],t[1]])}))}var D6=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}return e.prototype.init=function(t){t.data=t.data||[],FM(t);var a=this._processFlatCoordsArray(t.data);this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset,a.flatCoords&&(t.data=new Float32Array(a.count)),r.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(t){if(FM(t),t.data){var a=this._processFlatCoordsArray(t.data);this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset,a.flatCoords&&(t.data=new Float32Array(a.count))}r.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var a=this._processFlatCoordsArray(t.data);a.flatCoords&&(this._flatCoords?(this._flatCoords=Du(this._flatCoords,a.flatCoords),this._flatCoordsOffset=Du(this._flatCoordsOffset,a.flatCoordsOffset)):(this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset),t.data=new Float32Array(a.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var a=this.getData().getItemModel(t),n=a.option instanceof Array?a.option:a.getShallow("coords");return n},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[t*2+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,a){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[t*2],i=this._flatCoordsOffset[t*2+1],o=0;on}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,l),flatCoords:o,count:u}}return{flatCoordsOffset:null,flatCoords:null,count:t.length}},e.prototype.getInitialData=function(t,a){if(!1)var n;var i=new Be(["value"],this);return i.hasItemOption=!1,i.initData(t.data,[],function(o,s,l,u){if(o instanceof Array)return NaN;i.hasItemOption=!0;var f=o.value;if(f!=null)return f instanceof Array?f[u]:f}),i},e.prototype.formatTooltip=function(t,a,n){var i=this.getData(),o=i.getItemModel(t),s=o.get("name");if(s)return s;var l=o.get("fromName"),u=o.get("toName"),f=[];return l!=null&&f.push(l),u!=null&&f.push(u),fe("nameValue",{name:f.join(" > ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return t==null?this.option.large?1e4:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t==null?this.option.large?2e4:this.get("progressiveThreshold"):t},e.prototype.getZLevelKey=function(){var t=this.getModel("effect"),a=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&a>0?a+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},e}(Wt),L6=D6;function iv(r){return r instanceof Array||(r=[r,r]),r}var I6={seriesType:"lines",reset:function(r){var e=iv(r.get("symbol")),t=iv(r.get("symbolSize")),a=r.getData();a.setVisual("fromSymbol",e&&e[0]),a.setVisual("toSymbol",e&&e[1]),a.setVisual("fromSymbolSize",t&&t[0]),a.setVisual("toSymbolSize",t&&t[1]);function n(i,o){var s=i.getItemModel(o),l=iv(s.getShallow("symbol",!0)),u=iv(s.getShallow("symbolSize",!0));l[0]&&i.setItemVisual(o,"fromSymbol",l[0]),l[1]&&i.setItemVisual(o,"toSymbol",l[1]),u[0]&&i.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&i.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:a.hasItemOption?n:null}}},P6=I6;function R6(r){r.registerChartView(C6),r.registerSeriesModel(L6),r.registerLayout(GM),r.registerVisual(P6)}var E6=256,k6=function(){function r(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=jt.createCanvas();this.canvas=e}return r.prototype.update=function(e,t,a,n,i,o){var s=this._getBrush(),l=this._getGradient(i,"inRange"),u=this._getGradient(i,"outOfRange"),f=this.pointSize+this.blurSize,h=this.canvas,v=h.getContext("2d"),c=e.length;h.width=t,h.height=a;for(var p=0;p0){var L=o(_)?l:u;_>0&&(_=_*M+T),b[x++]=L[D],b[x++]=L[D+1],b[x++]=L[D+2],b[x++]=L[D+3]*_*256}else x+=4}return v.putImageData(S,0,0),h},r.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=jt.createCanvas()),t=this.pointSize+this.blurSize,a=t*2;e.width=a,e.height=a;var n=e.getContext("2d");return n.clearRect(0,0,a,a),n.shadowOffsetX=a,n.shadowBlur=this.blurSize,n.shadowColor="#000",n.beginPath(),n.arc(-t,t,this.pointSize,0,Math.PI*2,!0),n.closePath(),n.fill(),e},r.prototype._getGradient=function(e,t){for(var a=this._gradientPixels,n=a[t]||(a[t]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],o=0,s=0;s<256;s++)e[t](s/255,!0,i),n[o++]=i[0],n[o++]=i[1],n[o++]=i[2],n[o++]=i[3];return n},r}(),O6=k6;function N6(r,e,t){var a=r[1]-r[0];e=G(e,function(o){return{interval:[(o.interval[0]-r[0])/a,(o.interval[1]-r[0])/a]}});var n=e.length,i=0;return function(o){var s;for(s=i;s=0;s--){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}return s>=0&&s=e[0]&&a<=e[1]}}function HM(r){var e=r.dimensions;return e[0]==="lng"&&e[1]==="lat"}var V6=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i;a.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===t&&(i=s)})}),this._progressiveEls=null,this.group.removeAll();var o=t.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(t,n,0,t.getData().count()):HM(o)&&this._renderOnGeo(o,t,i,n)},e.prototype.incrementalPrepareRender=function(t,a,n){this.group.removeAll()},e.prototype.incrementalRender=function(t,a,n,i){var o=a.coordinateSystem;o&&(HM(o)?this.render(a,n,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(a,i,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){yn(this._progressiveEls||this.group,t)},e.prototype._renderOnCartesianAndCalendar=function(t,a,n,i,o){var s=t.coordinateSystem,l=Gi(s,"cartesian2d"),u,f,h,v;if(l){var c=s.getAxis("x"),p=s.getAxis("y");u=c.getBandWidth()+.5,f=p.getBandWidth()+.5,h=c.scale.getExtent(),v=p.scale.getExtent()}for(var d=this.group,g=t.getData(),y=t.getModel(["emphasis","itemStyle"]).getItemStyle(),m=t.getModel(["blur","itemStyle"]).getItemStyle(),_=t.getModel(["select","itemStyle"]).getItemStyle(),S=t.get(["itemStyle","borderRadius"]),b=ue(t),x=t.getModel("emphasis"),w=x.get("focus"),T=x.get("blurScope"),C=x.get("disabled"),M=l?[g.mapDimension("x"),g.mapDimension("y"),g.mapDimension("value")]:[g.mapDimension("time"),g.mapDimension("value")],D=n;Dh[1]||Rv[1])continue;var E=s.dataToPoint([P,R]);L=new bt({shape:{x:E[0]-u/2,y:E[1]-f/2,width:u,height:f},style:I})}else{if(isNaN(g.get(M[1],D)))continue;L=new bt({z2:1,shape:s.dataToRect([g.get(M[0],D)]).contentShape,style:I})}if(g.hasItemOption){var N=g.getItemModel(D),O=N.getModel("emphasis");y=O.getModel("itemStyle").getItemStyle(),m=N.getModel(["blur","itemStyle"]).getItemStyle(),_=N.getModel(["select","itemStyle"]).getItemStyle(),S=N.get(["itemStyle","borderRadius"]),w=O.get("focus"),T=O.get("blurScope"),C=O.get("disabled"),b=ue(N)}L.shape.r=S;var V=t.getRawValue(D),F="-";V&&V[2]!=null&&(F=V[2]+""),xe(L,b,{labelFetcher:t,labelDataIndex:D,defaultOpacity:I.opacity,defaultText:F}),L.ensureState("emphasis").style=y,L.ensureState("blur").style=m,L.ensureState("select").style=_,Yt(L,w,T,C),L.incremental=o,o&&(L.states.emphasis.hoverLayer=!0),d.add(L),g.setItemGraphicEl(D,L),this._progressiveEls&&this._progressiveEls.push(L)}},e.prototype._renderOnGeo=function(t,a,n,i){var o=n.targetVisuals.inRange,s=n.targetVisuals.outOfRange,l=a.getData(),u=this._hmLayer||this._hmLayer||new O6;u.blurSize=a.get("blurSize"),u.pointSize=a.get("pointSize"),u.minOpacity=a.get("minOpacity"),u.maxOpacity=a.get("maxOpacity");var f=t.getViewRect().clone(),h=t.getRoamTransform();f.applyTransform(h);var v=Math.max(f.x,0),c=Math.max(f.y,0),p=Math.min(f.width+f.x,i.getWidth()),d=Math.min(f.height+f.y,i.getHeight()),g=p-v,y=d-c,m=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],_=l.mapArray(m,function(w,T,C){var M=t.dataToPoint([w,T]);return M[0]-=v,M[1]-=c,M.push(C),M}),S=n.getExtent(),b=n.type==="visualMap.continuous"?B6(S,n.option.range):N6(S,n.getPieceList(),n.option.selected);u.update(_,g,y,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},b);var x=new _e({style:{width:g,height:y,x:v,y:c,image:u.canvas},silent:!0});this.group.add(x)},e.type="heatmap",e}(zt),z6=V6,G6=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,a){return Ba(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=sl.get(this.get("coordinateSystem"));if(t&&t.dimensions)return t.dimensions[0]==="lng"&&t.dimensions[1]==="lat"},e.type="series.heatmap",e.dependencies=["grid","geo","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},e}(Wt),F6=G6;function H6(r){r.registerChartView(z6),r.registerSeriesModel(F6)}var W6=["itemStyle","borderWidth"],WM=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],Iy=new ua,U6=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i=this.group,o=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis(),f=u.isHorizontal(),h=l.master.getRect(),v={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:t,coordSys:l,coordSysExtent:[[h.x,h.x+h.width],[h.y,h.y+h.height]],isHorizontal:f,valueDim:WM[+f],categoryDim:WM[1-+f]};return o.diff(s).add(function(c){if(!!o.hasValue(c)){var p=jM(o,c),d=UM(o,c,p,v),g=$M(o,v,d);o.setItemGraphicEl(c,g),i.add(g),tD(g,v,d)}}).update(function(c,p){var d=s.getItemGraphicEl(p);if(!o.hasValue(c)){i.remove(d);return}var g=jM(o,c),y=UM(o,c,g,v),m=JM(o,y);d&&m!==d.__pictorialShapeStr&&(i.remove(d),o.setItemGraphicEl(c,null),d=null),d?$6(d,v,y):d=$M(o,v,y,!0),o.setItemGraphicEl(c,d),d.__pictorialSymbolMeta=y,i.add(d),tD(d,v,y)}).remove(function(c){var p=s.getItemGraphicEl(c);p&&QM(s,c,p.__pictorialSymbolMeta.animationModel,p)}).execute(),this._data=o,this.group},e.prototype.remove=function(t,a){var n=this.group,i=this._data;t.get("animation")?i&&i.eachItemGraphicEl(function(o){QM(i,nt(o).dataIndex,t,o)}):n.removeAll()},e.type="pictorialBar",e}(zt);function UM(r,e,t,a){var n=r.getItemLayout(e),i=t.get("symbolRepeat"),o=t.get("symbolClip"),s=t.get("symbolPosition")||"start",l=t.get("symbolRotate"),u=(l||0)*Math.PI/180||0,f=t.get("symbolPatternSize")||2,h=t.isAnimationEnabled(),v={dataIndex:e,layout:n,itemModel:t,symbolType:r.getItemVisual(e,"symbol")||"circle",style:r.getItemVisual(e,"style"),symbolClip:o,symbolRepeat:i,symbolRepeatDirection:t.get("symbolRepeatDirection"),symbolPatternSize:f,rotation:u,animationModel:h?t:null,hoverScale:h&&t.get(["emphasis","scale"]),z2:t.getShallow("z",!0)||0};Y6(t,i,n,a,v),Z6(r,e,n,i,o,v.boundingLength,v.pxSign,f,a,v),X6(t,v.symbolScale,u,a,v);var c=v.symbolSize,p=Uo(t.get("symbolOffset"),c);return K6(t,c,n,i,o,p,s,v.valueLineWidth,v.boundingLength,v.repeatCutLength,a,v),v}function Y6(r,e,t,a,n){var i=a.valueDim,o=r.get("symbolBoundingData"),s=a.coordSys.getOtherAxis(a.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(t[i.wh]<=0),f;if(z(o)){var h=[Py(s,o[0])-l,Py(s,o[1])-l];h[1]0?1:-1}function Py(r,e){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(e)))}function Z6(r,e,t,a,n,i,o,s,l,u){var f=l.valueDim,h=l.categoryDim,v=Math.abs(t[h.wh]),c=r.getItemVisual(e,"symbolSize"),p;z(c)?p=c.slice():c==null?p=["100%","100%"]:p=[c,c],p[h.index]=H(p[h.index],v),p[f.index]=H(p[f.index],a?v:Math.abs(i)),u.symbolSize=p;var d=u.symbolScale=[p[0]/s,p[1]/s];d[f.index]*=(l.isHorizontal?-1:1)*o}function X6(r,e,t,a,n){var i=r.get(W6)||0;i&&(Iy.attr({scaleX:e[0],scaleY:e[1],rotation:t}),Iy.updateTransform(),i/=Iy.getLineScale(),i*=e[a.valueDim.index]),n.valueLineWidth=i||0}function K6(r,e,t,a,n,i,o,s,l,u,f,h){var v=f.categoryDim,c=f.valueDim,p=h.pxSign,d=Math.max(e[c.index]+s,0),g=d;if(a){var y=Math.abs(l),m=ce(r.get("symbolMargin"),"15%")+"",_=!1;m.lastIndexOf("!")===m.length-1&&(_=!0,m=m.slice(0,m.length-1));var S=H(m,e[c.index]),b=Math.max(d+S*2,0),x=_?0:S*2,w=c_(a),T=w?a:eD((y+x)/b),C=y-T*d;S=C/2/(_?T:Math.max(T-1,1)),b=d+S*2,x=_?0:S*2,!w&&a!=="fixed"&&(T=u?eD((Math.abs(u)+x)/b):0),g=T*b-x,h.repeatTimes=T,h.symbolMargin=S}var M=p*(g/2),D=h.pathPosition=[];D[v.index]=t[v.wh]/2,D[c.index]=o==="start"?M:o==="end"?l-M:l/2,i&&(D[0]+=i[0],D[1]+=i[1]);var L=h.bundlePosition=[];L[v.index]=t[v.xy],L[c.index]=t[c.xy];var I=h.barRectShape=B({},t);I[c.wh]=p*Math.max(Math.abs(t[c.wh]),Math.abs(D[c.index]+M)),I[v.wh]=t[v.wh];var P=h.clipShape={};P[v.xy]=-t[v.xy],P[v.wh]=f.ecSize[v.wh],P[c.xy]=0,P[c.wh]=t[c.wh]}function YM(r){var e=r.symbolPatternSize,t=re(r.symbolType,-e/2,-e/2,e,e);return t.attr({culling:!0}),t.type!=="image"&&t.setStyle({strokeNoScale:!0}),t}function ZM(r,e,t,a){var n=r.__pictorialBundle,i=t.symbolSize,o=t.valueLineWidth,s=t.pathPosition,l=e.valueDim,u=t.repeatTimes||0,f=0,h=i[e.valueDim.index]+o+t.symbolMargin*2;for(Ry(r,function(d){d.__pictorialAnimationIndex=f,d.__pictorialRepeatTimes=u,f0:y<0)&&(m=u-1-d),g[l.index]=h*(m-u/2+.5)+s[l.index],{x:g[0],y:g[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation}}}function XM(r,e,t,a){var n=r.__pictorialBundle,i=r.__pictorialMainPath;i?ls(i,null,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation},t,a):(i=r.__pictorialMainPath=YM(t),n.add(i),ls(i,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:0,scaleY:0,rotation:t.rotation},{scaleX:t.symbolScale[0],scaleY:t.symbolScale[1]},t,a))}function KM(r,e,t){var a=B({},e.barRectShape),n=r.__pictorialBarRect;n?ls(n,null,{shape:a},e,t):(n=r.__pictorialBarRect=new bt({z2:2,shape:a,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),n.disableMorphing=!0,r.add(n))}function qM(r,e,t,a){if(t.symbolClip){var n=r.__pictorialClipPath,i=B({},t.clipShape),o=e.valueDim,s=t.animationModel,l=t.dataIndex;if(n)At(n,{shape:i},s,l);else{i[o.wh]=0,n=new bt({shape:i}),r.__pictorialBundle.setClipPath(n),r.__pictorialClipPath=n;var u={};u[o.wh]=t.clipShape[o.wh],It[a?"updateProps":"initProps"](n,{shape:u},s,l)}}}function jM(r,e){var t=r.getItemModel(e);return t.getAnimationDelayParams=q6,t.isAnimationEnabled=j6,t}function q6(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function j6(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function $M(r,e,t,a){var n=new rt,i=new rt;return n.add(i),n.__pictorialBundle=i,i.x=t.bundlePosition[0],i.y=t.bundlePosition[1],t.symbolRepeat?ZM(n,e,t):XM(n,e,t),KM(n,t,a),qM(n,e,t,a),n.__pictorialShapeStr=JM(r,t),n.__pictorialSymbolMeta=t,n}function $6(r,e,t){var a=t.animationModel,n=t.dataIndex,i=r.__pictorialBundle;At(i,{x:t.bundlePosition[0],y:t.bundlePosition[1]},a,n),t.symbolRepeat?ZM(r,e,t,!0):XM(r,e,t,!0),KM(r,t,!0),qM(r,e,t,!0)}function QM(r,e,t,a){var n=a.__pictorialBarRect;n&&n.removeTextContent();var i=[];Ry(a,function(o){i.push(o)}),a.__pictorialMainPath&&i.push(a.__pictorialMainPath),a.__pictorialClipPath&&(t=null),A(i,function(o){vn(o,{scaleX:0,scaleY:0},t,e,function(){a.parent&&a.parent.remove(a)})}),r.setItemGraphicEl(e,null)}function JM(r,e){return[r.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function Ry(r,e,t){A(r.__pictorialBundle.children(),function(a){a!==r.__pictorialBarRect&&e.call(t,a)})}function ls(r,e,t,a,n,i){e&&r.attr(e),a.symbolClip&&!n?t&&r.attr(t):t&&It[n?"updateProps":"initProps"](r,t,a.animationModel,a.dataIndex,i)}function tD(r,e,t){var a=t.dataIndex,n=t.itemModel,i=n.getModel("emphasis"),o=i.getModel("itemStyle").getItemStyle(),s=n.getModel(["blur","itemStyle"]).getItemStyle(),l=n.getModel(["select","itemStyle"]).getItemStyle(),u=n.getShallow("cursor"),f=i.get("focus"),h=i.get("blurScope"),v=i.get("scale");Ry(r,function(d){if(d instanceof _e){var g=d.style;d.useStyle(B({image:g.image,x:g.x,y:g.y,width:g.width,height:g.height},t.style))}else d.useStyle(t.style);var y=d.ensureState("emphasis");y.style=o,v&&(y.scaleX=d.scaleX*1.1,y.scaleY=d.scaleY*1.1),d.ensureState("blur").style=s,d.ensureState("select").style=l,u&&(d.cursor=u),d.z2=t.z2});var c=e.valueDim.posDesc[+(t.boundingLength>0)],p=r.__pictorialBarRect;xe(p,ue(n),{labelFetcher:e.seriesModel,labelDataIndex:a,defaultText:$o(e.seriesModel.getData(),a),inheritColor:t.style.fill,defaultOpacity:t.style.opacity,defaultOutsidePosition:c}),Yt(r,f,h,i.get("disabled"))}function eD(r){var e=Math.round(r);return Math.abs(r-e)<1e-4?e:Math.ceil(r)}var Q6=U6,J6=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t.defaultSymbol="roundRect",t}return e.prototype.getInitialData=function(t){return t.stack=null,r.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=cn(Ch.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),e}(Ch),tU=J6;function eU(r){r.registerChartView(Q6),r.registerSeriesModel(tU),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,it(lT,"pictorialBar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,uT("pictorialBar"))}var rU=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._layers=[],t}return e.prototype.render=function(t,a,n){var i=t.getData(),o=this,s=this.group,l=t.getLayerSeries(),u=i.getLayout("layoutInfo"),f=u.rect,h=u.boundaryGap;s.x=0,s.y=f.y+h[0];function v(g){return g.name}var c=new Na(this._layersSeries||[],l,v,v),p=[];c.add(Y(d,this,"add")).update(Y(d,this,"update")).remove(Y(d,this,"remove")).execute();function d(g,y,m){var _=o._layers;if(g==="remove"){s.remove(_[y]);return}for(var S=[],b=[],x,w=l[y].indices,T=0;Ti&&(i=s),a.push(s)}for(var u=0;ui&&(i=h)}return{y0:n,max:i}}function uU(r){r.registerChartView(nU),r.registerSeriesModel(oU),r.registerLayout(sU),r.registerProcessor(Fl("themeRiver"))}var fU=2,hU=4,vU=function(r){k(e,r);function e(t,a,n,i){var o=r.call(this)||this;o.z2=fU,o.textConfig={inside:!0},nt(o).seriesIndex=a.seriesIndex;var s=new Ct({z2:hU,silent:t.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,t,a,n,i),o}return e.prototype.updateData=function(t,a,n,i,o){this.node=a,a.piece=this,n=n||this._seriesModel,i=i||this._ecModel;var s=this;nt(s).dataIndex=a.dataIndex;var l=a.getModel(),u=l.getModel("emphasis"),f=a.getLayout(),h=B({},f);h.label=null;var v=a.getVisual("style");v.lineJoin="bevel";var c=a.getVisual("decal");c&&(v.decal=Zo(c,o));var p=Qo(l.getModel("itemStyle"),h,!0);B(h,p),A(ke,function(m){var _=s.ensureState(m),S=l.getModel([m,"itemStyle"]);_.style=S.getItemStyle();var b=Qo(S,h);b&&(_.shape=b)}),t?(s.setShape(h),s.shape.r=f.r0,At(s,{shape:{r:f.r}},n,a.dataIndex)):(At(s,{shape:h},n),Nr(s)),s.useStyle(v),this._updateLabel(n);var d=l.getShallow("cursor");d&&s.attr("cursor",d),this._seriesModel=n||this._seriesModel,this._ecModel=i||this._ecModel;var g=u.get("focus"),y=g==="ancestor"?a.getAncestorsIndices():g==="descendant"?a.getDescendantIndices():g;Yt(this,y,u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t){var a=this,n=this.node.getModel(),i=n.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),f=Math.sin(l),h=this,v=h.getTextContent(),c=this.node.dataIndex,p=i.get("minAngle")/180*Math.PI,d=i.get("show")&&!(p!=null&&Math.abs(s)Math.PI/2?"right":"left"):!L||L==="center"?(s===2*Math.PI&&o.r0===0?M=0:M=(o.r+o.r0)/2,L="center"):L==="left"?(M=o.r0+D,l>Math.PI/2&&(L="right")):L==="right"&&(M=o.r-D,l>Math.PI/2&&(L="left")),S.style.align=L,S.style.verticalAlign=g(m,"verticalAlign")||"middle",S.x=M*u+o.cx,S.y=M*f+o.cy;var I=g(m,"rotate"),P=0;I==="radial"?(P=-l,P<-Math.PI/2&&(P+=Math.PI)):I==="tangential"?(P=Math.PI/2-l,P>Math.PI/2?P-=Math.PI:P<-Math.PI/2&&(P+=Math.PI)):Tt(I)&&(P=I*Math.PI/180),S.rotation=P});function g(y,m){var _=y.get(m);return _==null?i.get(m):_}v.dirtyStyle()},e}(Ue),aD=vU,ky="sunburstRootToNode",nD="sunburstHighlight",cU="sunburstUnhighlight";function pU(r){r.registerAction({type:ky,update:"updateView"},function(e,t){t.eachComponent({mainType:"series",subType:"sunburst",query:e},a);function a(n,i){var o=Jl(e,[ky],n);if(o){var s=n.getViewRoot();s&&(e.direction=Og(s,o.node)?"rollUp":"drillDown"),n.resetViewRoot(o.node)}}}),r.registerAction({type:nD,update:"none"},function(e,t,a){e=B({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},n);function n(i){var o=Jl(e,[nD],i);o&&(e.dataIndex=o.node.dataIndex)}a.dispatchAction(B(e,{type:"highlight"}))}),r.registerAction({type:cU,update:"updateView"},function(e,t,a){e=B({},e),a.dispatchAction(B(e,{type:"downplay"}))})}var dU=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n,i){var o=this;this.seriesModel=t,this.api=n,this.ecModel=a;var s=t.getData(),l=s.tree.root,u=t.getViewRoot(),f=this.group,h=t.get("renderLabelForZeroData"),v=[];u.eachNode(function(m){v.push(m)});var c=this._oldChildren||[];p(v,c),y(l,u),this._initEvents(),this._oldChildren=v;function p(m,_){if(m.length===0&&_.length===0)return;new Na(_,m,S,S).add(b).update(b).remove(it(b,null)).execute();function S(x){return x.getId()}function b(x,w){var T=x==null?null:m[x],C=w==null?null:_[w];d(T,C)}}function d(m,_){if(!h&&m&&!m.getValue()&&(m=null),m!==l&&_!==l){if(_&&_.piece)m?(_.piece.updateData(!1,m,t,a,n),s.setItemGraphicEl(m.dataIndex,_.piece)):g(_);else if(m){var S=new aD(m,t,a,n);f.add(S),s.setItemGraphicEl(m.dataIndex,S)}}}function g(m){!m||m.piece&&(f.remove(m.piece),m.piece=null)}function y(m,_){_.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,m,t,a,n):(o.virtualPiece=new aD(m,t,a,n),f.add(o.virtualPiece)),_.piece.off("click"),o.virtualPiece.on("click",function(S){o._rootToNode(_.parentNode)})):o.virtualPiece&&(f.remove(o.virtualPiece),o.virtualPiece=null)}},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",function(a){var n=!1,i=t.seriesModel.getViewRoot();i.eachNode(function(o){if(!n&&o.piece&&o.piece===a.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")t._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var f=l.get("target",!0)||"_blank";Lf(u,f)}}n=!0}})})},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:ky,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,a){var n=a.getData(),i=n.getItemLayout(0);if(i){var o=t[0]-i.cx,s=t[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},e.type="sunburst",e}(zt),gU=dU,yU=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t,a){var n={name:t.name,children:t.data};iD(n);var i=this._levelModels=G(t.levels||[],function(l){return new Vt(l,this,a)},this),o=kg.createTree(n,this,s);function s(l){l.wrapMethod("getItemModel",function(u,f){var h=o.getNodeByDataIndex(f),v=i[h.depth];return v&&(u.parentModel=v),u})}return o.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(t){var a=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(t);return a.treePathInfo=Xh(n,this),a},e.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var a=this.getRawData().tree.root;(!t||t!==a&&!a.contains(t))&&(this._viewRoot=a)},e.prototype.enableAriaDecal=function(){gA(this)},e.type="series.sunburst",e.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},e}(Wt);function iD(r){var e=0;A(r.children,function(a){iD(a);var n=a.value;z(n)&&(n=n[0]),e+=n});var t=r.value;z(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),z(r.value)?r.value[0]=t:r.value=t}var mU=yU,oD=Math.PI/180;function _U(r,e,t){e.eachSeriesByType(r,function(a){var n=a.get("center"),i=a.get("radius");z(i)||(i=[0,i]),z(n)||(n=[n,n]);var o=t.getWidth(),s=t.getHeight(),l=Math.min(o,s),u=H(n[0],o),f=H(n[1],s),h=H(i[0],l/2),v=H(i[1],l/2),c=-a.get("startAngle")*oD,p=a.get("minAngle")*oD,d=a.getData().tree.root,g=a.getViewRoot(),y=g.depth,m=a.get("sort");m!=null&&sD(g,m);var _=0;A(g.children,function(E){!isNaN(E.getValue())&&_++});var S=g.getValue(),b=Math.PI/(S||_)*2,x=g.depth>0,w=g.height-(x?-1:1),T=(v-h)/(w||1),C=a.get("clockwise"),M=a.get("stillShowZeroSum"),D=C?1:-1,L=function(E,N){if(!!E){var O=N;if(E!==d){var V=E.getValue(),F=S===0&&M?b:V*b;F1;)o=o.parentNode;var s=n.getColorFromPalette(o.name||o.dataIndex+"",e);return a.depth>1&&U(s)&&(s=uc(s,(a.depth-1)/(i-1)*.5)),s}r.eachSeriesByType("sunburst",function(a){var n=a.getData(),i=n.tree;i.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=t(o,a,i.root.height));var u=n.ensureUniqueItemVisual(o.dataIndex,"style");B(u,l)})})}function bU(r){r.registerChartView(gU),r.registerSeriesModel(mU),r.registerLayout(it(_U,"sunburst")),r.registerProcessor(it(Fl,"sunburst")),r.registerVisual(xU),pU(r)}var lD={color:"fill",borderColor:"stroke"},wU={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Ha=xt(),TU=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,a){return Ba(null,this)},e.prototype.getDataParams=function(t,a,n){var i=r.prototype.getDataParams.call(this,t,a);return n&&(i.info=Ha(n).info),i},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(Wt),CU=TU;function AU(r,e){return e=e||[0,0],G(["x","y"],function(t,a){var n=this.getAxis(t),i=e[a],o=r[a]/2;return n.type==="category"?n.getBandWidth():Math.abs(n.dataToCoord(i-o)-n.dataToCoord(i+o))},this)}function MU(r){var e=r.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return r.dataToPoint(t)},size:Y(AU,r)}}}function DU(r,e){return e=e||[0,0],G([0,1],function(t){var a=e[t],n=r[t]/2,i=[],o=[];return i[t]=a-n,o[t]=a+n,i[1-t]=o[1-t]=e[1-t],Math.abs(this.dataToPoint(i)[t]-this.dataToPoint(o)[t])},this)}function LU(r){var e=r.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:r.getZoom()},api:{coord:function(t){return r.dataToPoint(t)},size:Y(DU,r)}}}function IU(r,e){var t=this.getAxis(),a=e instanceof Array?e[0]:e,n=(r instanceof Array?r[0]:r)/2;return t.type==="category"?t.getBandWidth():Math.abs(t.dataToCoord(a-n)-t.dataToCoord(a+n))}function PU(r){var e=r.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return r.dataToPoint(t)},size:Y(IU,r)}}}function RU(r,e){return e=e||[0,0],G(["Radius","Angle"],function(t,a){var n="get"+t+"Axis",i=this[n](),o=e[a],s=r[a]/2,l=i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(o-s)-i.dataToCoord(o+s));return t==="Angle"&&(l=l*Math.PI/180),l},this)}function EU(r){var e=r.getRadiusAxis(),t=r.getAngleAxis(),a=e.getExtent();return a[0]>a[1]&&a.reverse(),{coordSys:{type:"polar",cx:r.cx,cy:r.cy,r:a[1],r0:a[0]},api:{coord:function(n){var i=e.dataToRadius(n[0]),o=t.dataToAngle(n[1]),s=r.coordToPoint([i,o]);return s.push(i,o*Math.PI/180),s},size:Y(RU,r)}}}function kU(r){var e=r.getRect(),t=r.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:r.getCellWidth(),cellHeight:r.getCellHeight(),rangeInfo:{start:t.start,end:t.end,weeks:t.weeks,dayCount:t.allDay}},api:{coord:function(a,n){return r.dataToPoint(a,n)}}}}var Zq={};function uD(r,e,t,a){return r&&(r.legacy||r.legacy!==!1&&!t&&!a&&e!=="tspan"&&(e==="text"||Z(r,"text")))}function fD(r,e,t){var a=r,n,i,o;if(e==="text")o=a;else{o={},Z(a,"text")&&(o.text=a.text),Z(a,"rich")&&(o.rich=a.rich),Z(a,"textFill")&&(o.fill=a.textFill),Z(a,"textStroke")&&(o.stroke=a.textStroke),Z(a,"fontFamily")&&(o.fontFamily=a.fontFamily),Z(a,"fontSize")&&(o.fontSize=a.fontSize),Z(a,"fontStyle")&&(o.fontStyle=a.fontStyle),Z(a,"fontWeight")&&(o.fontWeight=a.fontWeight),i={type:"text",style:o,silent:!0},n={};var s=Z(a,"textPosition");t?n.position=s?a.textPosition:"inside":s&&(n.position=a.textPosition),Z(a,"textPosition")&&(n.position=a.textPosition),Z(a,"textOffset")&&(n.offset=a.textOffset),Z(a,"textRotation")&&(n.rotation=a.textRotation),Z(a,"textDistance")&&(n.distance=a.textDistance)}return hD(o,r),A(o.rich,function(l){hD(l,l)}),{textConfig:n,textContent:i}}function hD(r,e){!e||(e.font=e.textFont||e.font,Z(e,"textStrokeWidth")&&(r.lineWidth=e.textStrokeWidth),Z(e,"textAlign")&&(r.align=e.textAlign),Z(e,"textVerticalAlign")&&(r.verticalAlign=e.textVerticalAlign),Z(e,"textLineHeight")&&(r.lineHeight=e.textLineHeight),Z(e,"textWidth")&&(r.width=e.textWidth),Z(e,"textHeight")&&(r.height=e.textHeight),Z(e,"textBackgroundColor")&&(r.backgroundColor=e.textBackgroundColor),Z(e,"textPadding")&&(r.padding=e.textPadding),Z(e,"textBorderColor")&&(r.borderColor=e.textBorderColor),Z(e,"textBorderWidth")&&(r.borderWidth=e.textBorderWidth),Z(e,"textBorderRadius")&&(r.borderRadius=e.textBorderRadius),Z(e,"textBoxShadowColor")&&(r.shadowColor=e.textBoxShadowColor),Z(e,"textBoxShadowBlur")&&(r.shadowBlur=e.textBoxShadowBlur),Z(e,"textBoxShadowOffsetX")&&(r.shadowOffsetX=e.textBoxShadowOffsetX),Z(e,"textBoxShadowOffsetY")&&(r.shadowOffsetY=e.textBoxShadowOffsetY))}function vD(r,e,t){var a=r;a.textPosition=a.textPosition||t.position||"inside",t.offset!=null&&(a.textOffset=t.offset),t.rotation!=null&&(a.textRotation=t.rotation),t.distance!=null&&(a.textDistance=t.distance);var n=a.textPosition.indexOf("inside")>=0,i=r.fill||"#000";cD(a,e);var o=a.textFill==null;return n?o&&(a.textFill=t.insideFill||"#fff",!a.textStroke&&t.insideStroke&&(a.textStroke=t.insideStroke),!a.textStroke&&(a.textStroke=i),a.textStrokeWidth==null&&(a.textStrokeWidth=2)):(o&&(a.textFill=r.fill||t.outsideFill||"#000"),!a.textStroke&&t.outsideStroke&&(a.textStroke=t.outsideStroke)),a.text=e.text,a.rich=e.rich,A(e.rich,function(s){cD(s,s)}),a}function cD(r,e){!e||(Z(e,"fill")&&(r.textFill=e.fill),Z(e,"stroke")&&(r.textStroke=e.fill),Z(e,"lineWidth")&&(r.textStrokeWidth=e.lineWidth),Z(e,"font")&&(r.font=e.font),Z(e,"fontStyle")&&(r.fontStyle=e.fontStyle),Z(e,"fontWeight")&&(r.fontWeight=e.fontWeight),Z(e,"fontSize")&&(r.fontSize=e.fontSize),Z(e,"fontFamily")&&(r.fontFamily=e.fontFamily),Z(e,"align")&&(r.textAlign=e.align),Z(e,"verticalAlign")&&(r.textVerticalAlign=e.verticalAlign),Z(e,"lineHeight")&&(r.textLineHeight=e.lineHeight),Z(e,"width")&&(r.textWidth=e.width),Z(e,"height")&&(r.textHeight=e.height),Z(e,"backgroundColor")&&(r.textBackgroundColor=e.backgroundColor),Z(e,"padding")&&(r.textPadding=e.padding),Z(e,"borderColor")&&(r.textBorderColor=e.borderColor),Z(e,"borderWidth")&&(r.textBorderWidth=e.borderWidth),Z(e,"borderRadius")&&(r.textBorderRadius=e.borderRadius),Z(e,"shadowColor")&&(r.textBoxShadowColor=e.shadowColor),Z(e,"shadowBlur")&&(r.textBoxShadowBlur=e.shadowBlur),Z(e,"shadowOffsetX")&&(r.textBoxShadowOffsetX=e.shadowOffsetX),Z(e,"shadowOffsetY")&&(r.textBoxShadowOffsetY=e.shadowOffsetY),Z(e,"textShadowColor")&&(r.textShadowColor=e.textShadowColor),Z(e,"textShadowBlur")&&(r.textShadowBlur=e.textShadowBlur),Z(e,"textShadowOffsetX")&&(r.textShadowOffsetX=e.textShadowOffsetX),Z(e,"textShadowOffsetY")&&(r.textShadowOffsetY=e.textShadowOffsetY))}function Xq(r,e){if(!1)var t}var pD={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},dD=St(pD),Kq=qr(Jr,function(r,e){return r[e]=1,r},{}),qq=Jr.join(", "),ov=["","style","shape","extra"],us=xt();function Oy(r,e,t,a,n){var i=r+"Animation",o=To(r,a,n)||{},s=us(e).userDuring;return o.duration>0&&(o.during=s?Y(zU,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=r),B(o,t[i]),o}function sv(r,e,t,a){a=a||{};var n=a.dataIndex,i=a.isInit,o=a.clearStyle,s=t.isAnimationEnabled(),l=us(r),u=e.style;l.userDuring=e.during;var f={},h={};if(FU(r,e,h),mD("shape",e,h),mD("extra",e,h),!i&&s&&(GU(r,e,f),yD("shape",r,e,f),yD("extra",r,e,f),HU(r,e,u,f)),h.style=u,OU(r,h,o),BU(r,e),s)if(i){var v={};A(ov,function(p){var d=p?e[p]:e;d&&d.enterFrom&&(p&&(v[p]=v[p]||{}),B(p?v[p]:v,d.enterFrom))});var c=Oy("enter",r,e,t,n);c.duration>0&&r.animateFrom(v,c)}else NU(r,e,n||0,t,f);gD(r,e),u?r.dirty():r.markRedraw()}function gD(r,e){for(var t=us(r).leaveToProps,a=0;a0&&r.animateFrom(n,i)}}function BU(r,e){Z(e,"silent")&&(r.silent=e.silent),Z(e,"ignore")&&(r.ignore=e.ignore),r instanceof dr&&Z(e,"invisible")&&(r.invisible=e.invisible),r instanceof pt&&Z(e,"autoBatch")&&(r.autoBatch=e.autoBatch)}var ga={},VU={setTransform:function(r,e){return ga.el[r]=e,this},getTransform:function(r){return ga.el[r]},setShape:function(r,e){var t=ga.el,a=t.shape||(t.shape={});return a[r]=e,t.dirtyShape&&t.dirtyShape(),this},getShape:function(r){var e=ga.el.shape;if(e)return e[r]},setStyle:function(r,e){var t=ga.el,a=t.style;return a&&(a[r]=e,t.dirtyStyle&&t.dirtyStyle()),this},getStyle:function(r){var e=ga.el.style;if(e)return e[r]},setExtra:function(r,e){var t=ga.el.extra||(ga.el.extra={});return t[r]=e,this},getExtra:function(r){var e=ga.el.extra;if(e)return e[r]}};function jq(r){}function zU(){var r=this,e=r.el;if(!!e){var t=us(e).userDuring,a=r.userDuring;if(t!==a){r.el=r.userDuring=null;return}ga.el=e,a(VU)}}function yD(r,e,t,a){var n=t[r];if(!!n){var i=e[r],o;if(i){var s=t.transition,l=n.transition;if(l)if(!o&&(o=a[r]={}),Ji(l))B(o,i);else for(var u=Ot(l),f=0;f=0){!o&&(o=a[r]={});for(var c=St(i),f=0;f=0)){var v=r.getAnimationStyleProps(),c=v?v.style:null;if(c){!i&&(i=a.style={});for(var p=St(t),u=0;u=0?e.getStore().get(N,R):void 0}var O=e.get(E.name,R),V=E&&E.ordinalMeta;return V?V.categories[O]:O}function x(P,R){R==null&&(R=u);var E=e.getItemVisual(R,"style"),N=E&&E.fill,O=E&&E.opacity,V=m(R,Dn).getItemStyle();N!=null&&(V.fill=N),O!=null&&(V.opacity=O);var F={inheritColor:U(N)?N:"#000"},W=_(R,Dn),X=Bt(W,null,F,!1,!0);X.text=W.getShallow("show")?ft(r.getFormattedLabel(R,Dn),$o(e,R)):null;var Q=Sf(W,F,!1);return C(P,V),V=vD(V,X,Q),P&&T(V,P),V.legacy=!0,V}function w(P,R){R==null&&(R=u);var E=m(R,Wa).getItemStyle(),N=_(R,Wa),O=Bt(N,null,null,!0,!0);O.text=N.getShallow("show")?ba(r.getFormattedLabel(R,Wa),r.getFormattedLabel(R,Dn),$o(e,R)):null;var V=Sf(N,null,!0);return C(P,E),E=vD(E,O,V),P&&T(E,P),E.legacy=!0,E}function T(P,R){for(var E in R)Z(R,E)&&(P[E]=R[E])}function C(P,R){P&&(P.textFill&&(R.textFill=P.textFill),P.textPosition&&(R.textPosition=P.textPosition))}function M(P,R){if(R==null&&(R=u),Z(lD,P)){var E=e.getItemVisual(R,"style");return E?E[lD[P]]:null}if(Z(wU,P))return e.getItemVisual(R,P)}function D(P){if(i.type==="cartesian2d"){var R=i.getBaseAxis();return _z(K({axis:R},P))}}function L(){return t.getCurrentSeriesIndices()}function I(P){return L1(P,t)}}function JU(r){var e={};return A(r.dimensions,function(t){var a=r.getDimensionInfo(t);if(!a.isExtraCoord){var n=a.coordDim,i=e[n]=e[n]||[];i[a.coordDimIndex]=r.getDimensionIndex(t)}}),e}function Uy(r,e,t,a,n,i,o){if(!a){i.remove(e);return}var s=Yy(r,e,t,a,n,i);return s&&o.setItemGraphicEl(t,s),s&&Yt(s,a.focus,a.blurScope,a.emphasisDisabled),s}function Yy(r,e,t,a,n,i){var o=-1,s=e;e&&wD(e,a,n)&&(o=st(i.childrenRef(),e),e=null);var l=!e,u=e;u?u.clearStates():(u=Hy(a),s&&KU(s,u)),a.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),Ar.normal.cfg=Ar.normal.conOpt=Ar.emphasis.cfg=Ar.emphasis.conOpt=Ar.blur.cfg=Ar.blur.conOpt=Ar.select.cfg=Ar.select.conOpt=null,Ar.isLegacy=!1,e8(u,t,a,n,l,Ar),t8(u,t,a,n,l),Wy(r,u,t,a,Ar,n,l),Z(a,"info")&&(Ha(u).info=a.info);for(var f=0;f=0?i.replaceAt(u,o):i.add(u),u}function wD(r,e,t){var a=Ha(r),n=e.type,i=e.shape,o=e.style;return t.isUniversalTransitionEnabled()||n!=null&&n!==a.customGraphicType||n==="path"&&o8(i)&&MD(i)!==a.customPathData||n==="image"&&Z(o,"image")&&o.image!==a.customImagePath}function t8(r,e,t,a,n){var i=t.clipPath;if(i===!1)r&&r.getClipPath()&&r.removeClipPath();else if(i){var o=r.getClipPath();o&&wD(o,i,a)&&(o=null),o||(o=Hy(i),r.setClipPath(o)),Wy(null,o,e,i,null,a,n)}}function e8(r,e,t,a,n,i){if(!r.isGroup){TD(t,null,i),TD(t,Wa,i);var o=i.normal.conOpt,s=i.emphasis.conOpt,l=i.blur.conOpt,u=i.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var f=r.getTextContent();if(o===!1)f&&r.removeTextContent();else{o=i.normal.conOpt=o||{type:"text"},f?f.clearStates():(f=Hy(o),r.setTextContent(f)),Wy(null,f,e,o,null,a,n);for(var h=o&&o.style,v=0;v=f;c--){var p=e.childAt(c);a8(e,p,n)}}}function a8(r,e,t){e&&lv(e,Ha(r).option,t)}function n8(r){new Na(r.oldChildren,r.newChildren,CD,CD,r).add(AD).update(AD).remove(i8).execute()}function CD(r,e){var t=r&&r.name;return t!=null?t:ZU+e}function AD(r,e){var t=this.context,a=r!=null?t.newChildren[r]:null,n=e!=null?t.oldChildren[e]:null;Yy(t.api,n,t.dataIndex,a,t.seriesModel,t.group)}function i8(r){var e=this.context,t=e.oldChildren[r];t&&lv(t,Ha(t).option,e.seriesModel)}function MD(r){return r&&(r.pathData||r.d)}function o8(r){return r&&(Z(r,"pathData")||Z(r,"d"))}function s8(r){r.registerChartView(jU),r.registerSeriesModel(CU)}var to=xt(),DD=tt,Xy=Y,l8=function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(e,t,a,n){var i=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=a,!(!n&&this._lastValue===i&&this._lastStatus===o)){this._lastValue=i,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,i,e,t,a);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(a),this._lastGraphicKey=f;var h=this._moveAnimation=this.determineAnimation(e,t);if(!s)s=this._group=new rt,this.createPointerEl(s,u,e,t),this.createLabelEl(s,u,e,t),a.getZr().add(s);else{var v=it(LD,t,h);this.updatePointerEl(s,u,v),this.updateLabelEl(s,u,v,t)}RD(s,t,!0),this._renderHandle(i)}},r.prototype.remove=function(e){this.clear(e)},r.prototype.dispose=function(e){this.clear(e)},r.prototype.determineAnimation=function(e,t){var a=t.get("animation"),n=e.axis,i=n.type==="category",o=t.get("snap");if(!o&&!i)return!1;if(a==="auto"||a==null){var s=this.animationThreshold;if(i&&n.getBandWidth()>s)return!0;if(o){var l=gg(e).seriesDataCount,u=n.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return a===!0},r.prototype.makeElOption=function(e,t,a,n,i){},r.prototype.createPointerEl=function(e,t,a,n){var i=t.pointer;if(i){var o=to(e).pointerEl=new It[i.type](DD(t.pointer));e.add(o)}},r.prototype.createLabelEl=function(e,t,a,n){if(t.label){var i=to(e).labelEl=new Ct(DD(t.label));e.add(i),PD(i,n)}},r.prototype.updatePointerEl=function(e,t,a){var n=to(e).pointerEl;n&&t.pointer&&(n.setStyle(t.pointer.style),a(n,{shape:t.pointer.shape}))},r.prototype.updateLabelEl=function(e,t,a,n){var i=to(e).labelEl;i&&(i.setStyle(t.label.style),a(i,{x:t.label.x,y:t.label.y}),PD(i,n))},r.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,a=this._api.getZr(),n=this._handle,i=t.getModel("handle"),o=t.get("status");if(!i.get("show")||!o||o==="hide"){n&&a.remove(n),this._handle=null;return}var s;this._handle||(s=!0,n=this._handle=ml(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Ta(u.event)},onmousedown:Xy(this._onHandleDragMove,this,0,0),drift:Xy(this._onHandleDragMove,this),ondragend:Xy(this._onHandleDragEnd,this)}),a.add(n)),RD(n,t,!1),n.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");z(l)||(l=[l,l]),n.scaleX=l[0]/2,n.scaleY=l[1]/2,Ho(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},r.prototype._moveHandleToValue=function(e,t){LD(this._axisPointerModel,!t&&this._moveAnimation,this._handle,Ky(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(e,t){var a=this._handle;if(!!a){this._dragging=!0;var n=this.updateHandleTransform(Ky(a),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=n,a.stopAnimation(),a.attr(Ky(n)),to(a).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(!!e){var t=this._payloadInfo,a=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:a.axis.dim,axisIndex:a.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(!!e){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),a=this._group,n=this._handle;t&&a&&(this._lastGraphicKey=null,a&&t.remove(a),n&&t.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),Sl(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(e,t,a){return a=a||0,{x:e[a],y:e[1-a],width:t[a],height:t[1-a]}},r}();function LD(r,e,t,a){ID(to(t).lastProp,a)||(to(t).lastProp=a,e?At(t,a,r):(t.stopAnimation(),t.attr(a)))}function ID(r,e){if(et(r)&&et(e)){var t=!0;return A(e,function(a,n){t=t&&ID(r[n],a)}),!!t}else return r===e}function PD(r,e){r[e.get(["label","show"])?"show":"hide"]()}function Ky(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function RD(r,e,t){var a=e.get("z"),n=e.get("zlevel");r&&r.traverse(function(i){i.type!=="group"&&(a!=null&&(i.z=a),n!=null&&(i.zlevel=n),i.silent=t)})}var qy=l8;function jy(r){var e=r.get("type"),t=r.getModel(e+"Style"),a;return e==="line"?(a=t.getLineStyle(),a.fill=null):e==="shadow"&&(a=t.getAreaStyle(),a.stroke=null),a}function ED(r,e,t,a,n){var i=t.get("value"),o=kD(i,e.axis,e.ecModel,t.get("seriesDataIndices"),{precision:t.get(["label","precision"]),formatter:t.get(["label","formatter"])}),s=t.getModel("label"),l=Io(s.get("padding")||0),u=s.getFont(),f=Gs(o,u),h=n.position,v=f.width+l[1]+l[3],c=f.height+l[0]+l[2],p=n.align;p==="right"&&(h[0]-=v),p==="center"&&(h[0]-=v/2);var d=n.verticalAlign;d==="bottom"&&(h[1]-=c),d==="middle"&&(h[1]-=c/2),u8(h,v,c,a);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=e.get(["axisLine","lineStyle","color"])),r.label={x:h[0],y:h[1],style:Bt(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function u8(r,e,t,a){var n=a.getWidth(),i=a.getHeight();r[0]=Math.min(r[0]+e,n)-e,r[1]=Math.min(r[1]+t,i)-t,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function kD(r,e,t,a,n){r=e.scale.parse(r);var i=e.scale.getLabel({value:r},{precision:n.precision}),o=n.formatter;if(o){var s={value:ug(e,{value:r}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};A(a,function(l){var u=t.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,h=u&&u.getDataParams(f);h&&s.seriesData.push(h)}),U(o)?i=o.replace("{value}",i):$(o)&&(i=o(s))}return i}function $y(r,e,t){var a=hr();return Zn(a,a,t.rotation),jr(a,a,t.position),Gr([r.dataToCoord(e),(t.labelOffset||0)+(t.labelDirection||1)*(t.labelMargin||0)],a)}function OD(r,e,t,a,n,i){var o=za.innerTextLayout(t.rotation,0,t.labelDirection);t.labelMargin=n.get(["label","margin"]),ED(e,a,n,i,{position:$y(a.axis,r,t),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function Qy(r,e,t){return t=t||0,{x1:r[t],y1:r[1-t],x2:e[t],y2:e[1-t]}}function ND(r,e,t){return t=t||0,{x:r[t],y:r[1-t],width:e[t],height:e[1-t]}}function BD(r,e,t,a,n,i){return{cx:r,cy:e,r0:t,r:a,startAngle:n,endAngle:i,clockwise:!0}}var f8=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,a,n,i,o){var s=n.axis,l=s.grid,u=i.get("type"),f=VD(l,s).getOtherAxis(s).getGlobalExtent(),h=s.toGlobalCoord(s.dataToCoord(a,!0));if(u&&u!=="none"){var v=jy(i),c=h8[u](s,h,f);c.style=v,t.graphicKey=c.type,t.pointer=c}var p=vg(l.model,n);OD(a,t,p,n,i,o)},e.prototype.getHandleTransform=function(t,a,n){var i=vg(a.axis.grid.model,a,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=$y(a.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,a,n,i){var o=n.axis,s=o.grid,l=o.getGlobalExtent(!0),u=VD(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,h=[t.x,t.y];h[f]+=a[f],h[f]=Math.min(l[1],h[f]),h[f]=Math.max(l[0],h[f]);var v=(u[1]+u[0])/2,c=[v,v];c[f]=h[f];var p=[{verticalAlign:"middle"},{align:"center"}];return{x:h[0],y:h[1],rotation:t.rotation,cursorPoint:c,tooltipOption:p[f]}},e}(qy);function VD(r,e){var t={};return t[e.dim+"AxisIndex"]=e.index,r.getCartesian(t)}var h8={line:function(r,e,t){var a=Qy([e,t[0]],[e,t[1]],zD(r));return{type:"Line",subPixelOptimize:!0,shape:a}},shadow:function(r,e,t){var a=Math.max(1,r.getBandWidth()),n=t[1]-t[0];return{type:"Rect",shape:ND([e-a/2,t[0]],[a,n],zD(r))}}};function zD(r){return r.dim==="x"?0:1}var v8=f8,c8=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e}(Mt),p8=c8,Ua=xt(),d8=A;function GD(r,e,t){if(!_t.node){var a=e.getZr();Ua(a).records||(Ua(a).records={}),g8(a,e);var n=Ua(a).records[r]||(Ua(a).records[r]={});n.handler=t}}function g8(r,e){if(Ua(r).initialized)return;Ua(r).initialized=!0,t("click",it(FD,"click")),t("mousemove",it(FD,"mousemove")),t("globalout",m8);function t(a,n){r.on(a,function(i){var o=_8(e);d8(Ua(r).records,function(s){s&&n(s,i,o.dispatchAction)}),y8(o.pendings,e)})}}function y8(r,e){var t=r.showTip.length,a=r.hideTip.length,n;t?n=r.showTip[t-1]:a&&(n=r.hideTip[a-1]),n&&(n.dispatchAction=null,e.dispatchAction(n))}function m8(r,e,t){r.handler("leave",null,t)}function FD(r,e,t,a){e.handler(r,t,a)}function _8(r){var e={showTip:[],hideTip:[]},t=function(a){var n=e[a.type];n?n.push(a):(a.dispatchAction=t,r.dispatchAction(a))};return{dispatchAction:t,pendings:e}}function Jy(r,e){if(!_t.node){var t=e.getZr(),a=(Ua(t).records||{})[r];a&&(Ua(t).records[r]=null)}}var S8=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i=a.getComponent("tooltip"),o=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";GD("axisPointer",n,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(t,a){Jy("axisPointer",a)},e.prototype.dispose=function(t,a){Jy("axisPointer",a)},e.type="axisPointer",e}(Zt),x8=S8;function HD(r,e){var t=[],a=r.seriesIndex,n;if(a==null||!(n=e.getSeriesByIndex(a)))return{point:[]};var i=n.getData(),o=ri(i,r);if(o==null||o<0||z(o))return{point:[]};var s=i.getItemGraphicEl(o),l=n.coordinateSystem;if(n.getTooltipPosition)t=n.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),h=f.dim,v=u.dim,c=h==="x"||h==="radius"?1:0,p=i.mapDimension(v),d=[];d[c]=i.get(p,o),d[1-c]=i.get(i.getCalculationInfo("stackResultDimension"),o),t=l.dataToPoint(d)||[]}else t=l.dataToPoint(i.getValues(G(l.dimensions,function(y){return i.mapDimension(y)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),t=[g.x+g.width/2,g.y+g.height/2]}return{point:t,el:s}}var WD=xt();function b8(r,e,t){var a=r.currTrigger,n=[r.x,r.y],i=r,o=r.dispatchAction||Y(t.dispatchAction,t),s=e.getComponent("axisPointer").coordSysAxesInfo;if(!!s){hv(n)&&(n=HD({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},e).point);var l=hv(n),u=i.axesInfo,f=s.axesInfo,h=a==="leave"||hv(n),v={},c={},p={list:[],map:{}},d={showPointer:it(T8,c),showTooltip:it(C8,p)};A(s.coordSysMap,function(y,m){var _=l||y.containPoint(n);A(s.coordSysAxesInfo[m],function(S,b){var x=S.axis,w=L8(u,S);if(!h&&_&&(!u||w)){var T=w&&w.value;T==null&&!l&&(T=x.pointToData(n)),T!=null&&UD(S,T,d,!1,v)}})});var g={};return A(f,function(y,m){var _=y.linkGroup;_&&!c[m]&&A(_.axesInfo,function(S,b){var x=c[b];if(S!==y&&x){var w=x.value;_.mapper&&(w=y.axis.scale.parse(_.mapper(w,YD(S),YD(y)))),g[y.key]=w}})}),A(g,function(y,m){UD(f[m],y,d,!0,v)}),A8(c,f,v),M8(p,n,r,o),D8(f,o,t),v}}function UD(r,e,t,a,n){var i=r.axis;if(!(i.scale.isBlank()||!i.containData(e))){if(!r.involveSeries){t.showPointer(r,e);return}var o=w8(e,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&n.seriesIndex==null&&B(n,s[0]),!a&&r.snap&&i.containData(l)&&l!=null&&(e=l),t.showPointer(r,e,s),t.showTooltip(r,o,l)}}function w8(r,e){var t=e.axis,a=t.dim,n=r,i=[],o=Number.MAX_VALUE,s=-1;return A(e.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(a),h,v;if(l.getAxisTooltipData){var c=l.getAxisTooltipData(f,r,t);v=c.dataIndices,h=c.nestestValue}else{if(v=l.getData().indicesOfNearest(f[0],r,t.type==="category"?.5:null),!v.length)return;h=l.getData().get(f[0],v[0])}if(!(h==null||!isFinite(h))){var p=r-h,d=Math.abs(p);d<=o&&((d=0&&s<0)&&(o=d,s=p,n=h,i.length=0),A(v,function(g){i.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:i,snapToValue:n}}function T8(r,e,t,a){r[e.key]={value:t,payloadBatch:a}}function C8(r,e,t,a){var n=t.payloadBatch,i=e.axis,o=i.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!n.length)){var l=e.coordSys.model,u=Xl(l),f=r.map[u];f||(f=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(f)),f.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:a,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:n.slice()})}}function A8(r,e,t){var a=t.axesInfo=[];A(e,function(n,i){var o=n.axisPointerModel.option,s=r[i];s?(!n.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!n.useHandle&&(o.status="hide"),o.status==="show"&&a.push({axisDim:n.axis.dim,axisIndex:n.axis.model.componentIndex,value:o.value})})}function M8(r,e,t,a){if(hv(e)||!r.list.length){a({type:"hideTip"});return}var n=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};a({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:t.tooltipOption,position:t.position,dataIndexInside:n.dataIndexInside,dataIndex:n.dataIndex,seriesIndex:n.seriesIndex,dataByCoordSys:r.list})}function D8(r,e,t){var a=t.getZr(),n="axisPointerLastHighlights",i=WD(a)[n]||{},o=WD(a)[n]={};A(r,function(u,f){var h=u.axisPointerModel.option;h.status==="show"&&A(h.seriesDataIndices,function(v){var c=v.seriesIndex+" | "+v.dataIndex;o[c]=v})});var s=[],l=[];A(i,function(u,f){!o[f]&&l.push(u)}),A(o,function(u,f){!i[f]&&s.push(u)}),l.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function L8(r,e){for(var t=0;t<(r||[]).length;t++){var a=r[t];if(e.axis.dim===a.axisDim&&e.axis.model.componentIndex===a.axisIndex)return a}}function YD(r){var e=r.axis.model,t={},a=t.axisDim=r.axis.dim;return t.axisIndex=t[a+"AxisIndex"]=e.componentIndex,t.axisName=t[a+"AxisName"]=e.name,t.axisId=t[a+"AxisId"]=e.id,t}function hv(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function hu(r){Wi.registerAxisPointerClass("CartesianAxisPointer",v8),r.registerComponentModel(p8),r.registerComponentView(x8),r.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!z(t)&&(e.axisPointer.link=[t])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=uG(e,t)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},b8)}function I8(r){ct(gC),ct(hu)}var P8=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,a,n,i,o){var s=n.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),f=u.getExtent(),h=s.dataToCoord(a),v=i.get("type");if(v&&v!=="none"){var c=jy(i),p=E8[v](s,l,h,f);p.style=c,t.graphicKey=p.type,t.pointer=p}var d=i.get(["label","margin"]),g=R8(a,n,i,l,d);ED(t,n,i,o,g)},e}(qy);function R8(r,e,t,a,n){var i=e.axis,o=i.dataToCoord(r),s=a.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=a.getRadiusAxis().getExtent(),u,f,h;if(i.dim==="radius"){var v=hr();Zn(v,v,s),jr(v,v,[a.cx,a.cy]),u=Gr([o,-n],v);var c=e.getModel("axisLabel").get("rotate")||0,p=za.innerTextLayout(s,c*Math.PI/180,-1);f=p.textAlign,h=p.textVerticalAlign}else{var d=l[1];u=a.coordToPoint([d+n,o]);var g=a.cx,y=a.cy;f=Math.abs(u[0]-g)/d<.3?"center":u[0]>g?"left":"right",h=Math.abs(u[1]-y)/d<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:f,verticalAlign:h}}var E8={line:function(r,e,t,a){return r.dim==="angle"?{type:"Line",shape:Qy(e.coordToPoint([a[0],t]),e.coordToPoint([a[1],t]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:t}}},shadow:function(r,e,t,a){var n=Math.max(1,r.getBandWidth()),i=Math.PI/180;return r.dim==="angle"?{type:"Sector",shape:BD(e.cx,e.cy,a[0],a[1],(-t-n/2)*i,(-t+n/2)*i)}:{type:"Sector",shape:BD(e.cx,e.cy,t-n/2,t+n/2,0,Math.PI*2)}}},k8=P8,O8=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.findAxisModel=function(t){var a,n=this.ecModel;return n.eachComponent(t,function(i){i.getCoordSysModel()===this&&(a=i)},this),a},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(Mt),N8=O8,tm=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",te).models[0]},e.type="polarAxis",e}(Mt);Jt(tm,Wl);var B8=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="angleAxis",e}(tm),V8=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="radiusAxis",e}(tm),em=function(r){k(e,r);function e(t,a){return r.call(this,"radius",t,a)||this}return e.prototype.pointToData=function(t,a){return this.polar.pointToData(t,a)[this.dim==="radius"?0:1]},e}(Yr);em.prototype.dataToRadius=Yr.prototype.dataToCoord,em.prototype.radiusToData=Yr.prototype.coordToData;var z8=em,G8=xt(),rm=function(r){k(e,r);function e(t,a){return r.call(this,"angle",t,a||[0,360])||this}return e.prototype.pointToData=function(t,a){return this.polar.pointToData(t,a)[this.dim==="radius"?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,a=t.getLabelModel(),n=t.scale,i=n.getExtent(),o=n.count();if(i[1]-i[0]<1)return 0;var s=i[0],l=t.dataToCoord(s+1)-t.dataToCoord(s),u=Math.abs(l),f=Gs(s==null?"":s+"",a.getFont(),"center","top"),h=Math.max(f.height,7),v=h/u;isNaN(v)&&(v=Infinity);var c=Math.max(0,Math.floor(v)),p=G8(t.model),d=p.lastAutoInterval,g=p.lastTickCount;return d!=null&&g!=null&&Math.abs(d-c)<=1&&Math.abs(g-o)<=1&&d>c?c=d:(p.lastTickCount=o,p.lastAutoInterval=c),c},e}(Yr);rm.prototype.dataToAngle=Yr.prototype.dataToCoord,rm.prototype.angleToData=Yr.prototype.coordToData;var F8=rm,ZD=["radius","angle"],H8=function(){function r(e){this.dimensions=ZD,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new z8,this._angleAxis=new F8,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return r.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},r.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},r.prototype.getAxis=function(e){var t="_"+e+"Axis";return this[t]},r.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},r.prototype.getAxesByScale=function(e){var t=[],a=this._angleAxis,n=this._radiusAxis;return a.scale.type===e&&t.push(a),n.scale.type===e&&t.push(n),t},r.prototype.getAngleAxis=function(){return this._angleAxis},r.prototype.getRadiusAxis=function(){return this._radiusAxis},r.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},r.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},r.prototype.getTooltipAxes=function(e){var t=e!=null&&e!=="auto"?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},r.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},r.prototype.pointToData=function(e,t){var a=this.pointToCoord(e);return[this._radiusAxis.radiusToData(a[0],t),this._angleAxis.angleToData(a[1],t)]},r.prototype.pointToCoord=function(e){var t=e[0]-this.cx,a=e[1]-this.cy,n=this.getAngleAxis(),i=n.getExtent(),o=Math.min(i[0],i[1]),s=Math.max(i[0],i[1]);n.inverse?o=s-360:s=o+360;var l=Math.sqrt(t*t+a*a);t/=l,a/=l;for(var u=Math.atan2(-a,t)/Math.PI*180,f=us;)u+=f*360;return[l,u]},r.prototype.coordToPoint=function(e){var t=e[0],a=e[1]/180*Math.PI,n=Math.cos(a)*t+this.cx,i=-Math.sin(a)*t+this.cy;return[n,i]},r.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),a=t.getExtent().slice();a[0]>a[1]&&a.reverse();var n=e.getExtent(),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:a[0],r:a[1],startAngle:-n[0]*i,endAngle:-n[1]*i,clockwise:e.inverse,contain:function(o,s){var l=o-this.cx,u=s-this.cy,f=l*l+u*u-1e-4,h=this.r,v=this.r0;return f<=h*h&&f>=v*v}}},r.prototype.convertToPixel=function(e,t,a){var n=XD(t);return n===this?this.dataToPoint(a):null},r.prototype.convertFromPixel=function(e,t,a){var n=XD(t);return n===this?this.pointToData(a):null},r}();function XD(r){var e=r.seriesModel,t=r.polarModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}var W8=H8;function U8(r,e,t){var a=e.get("center"),n=t.getWidth(),i=t.getHeight();r.cx=H(a[0],n),r.cy=H(a[1],i);var o=r.getRadiusAxis(),s=Math.min(n,i)/2,l=e.get("radius");l==null?l=[0,"100%"]:z(l)||(l=[0,l]);var u=[H(l[0],s),H(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function Y8(r,e){var t=this,a=t.getAngleAxis(),n=t.getRadiusAxis();if(a.scale.setExtent(Infinity,-Infinity),n.scale.setExtent(Infinity,-Infinity),r.eachSeries(function(s){if(s.coordinateSystem===t){var l=s.getData();A(zh(l,"radius"),function(u){n.scale.unionExtentFromData(l,u)}),A(zh(l,"angle"),function(u){a.scale.unionExtentFromData(l,u)})}}),es(a.scale,a.model),es(n.scale,n.model),a.type==="category"&&!a.onBand){var i=a.getExtent(),o=360/a.scale.count();a.inverse?i[1]+=o:i[1]-=o,a.setExtent(i[0],i[1])}}function Z8(r){return r.mainType==="angleAxis"}function KD(r,e){if(r.type=e.get("type"),r.scale=Vh(e),r.onBand=e.get("boundaryGap")&&r.type==="category",r.inverse=e.get("inverse"),Z8(e)){r.inverse=r.inverse!==e.get("clockwise");var t=e.get("startAngle");r.setExtent(t,t+(r.inverse?-360:360))}e.axis=r,r.model=e}var X8={dimensions:ZD,create:function(r,e){var t=[];return r.eachComponent("polar",function(a,n){var i=new W8(n+"");i.update=Y8;var o=i.getRadiusAxis(),s=i.getAngleAxis(),l=a.findAxisModel("radiusAxis"),u=a.findAxisModel("angleAxis");KD(o,l),KD(s,u),U8(i,a,e),t.push(i),a.coordinateSystem=i,i.model=a}),r.eachSeries(function(a){if(a.get("coordinateSystem")==="polar"){var n=a.getReferringComponents("polar",te).models[0];a.coordinateSystem=n.coordinateSystem}}),t}},K8=X8,q8=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function vv(r,e,t){e[1]>e[0]&&(e=e.slice().reverse());var a=r.coordToPoint([e[0],t]),n=r.coordToPoint([e[1],t]);return{x1:a[0],y1:a[1],x2:n[0],y2:n[1]}}function cv(r){var e=r.getRadiusAxis();return e.inverse?0:1}function qD(r){var e=r[0],t=r[r.length-1];e&&t&&Math.abs(Math.abs(e.coord-t.coord)-360)<1e-4&&r.pop()}var j8=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,a){if(this.group.removeAll(),!!t.get("show")){var n=t.axis,i=n.polar,o=i.getRadiusAxis().getExtent(),s=n.getTicksCoords(),l=n.getMinorTicksCoords(),u=G(n.getViewLabels(),function(f){f=tt(f);var h=n.scale,v=h.type==="ordinal"?h.getRawOrdinalNumber(f.tickValue):f.tickValue;return f.coord=n.dataToCoord(v),f});qD(u),qD(s),A(q8,function(f){t.get([f,"show"])&&(!n.scale.isBlank()||f==="axisLine")&&$8[f](this.group,t,i,s,l,o,u)},this)}},e.type="angleAxis",e}(Wi),$8={axisLine:function(r,e,t,a,n,i){var o=e.getModel(["axisLine","lineStyle"]),s=cv(t),l=s?0:1,u;i[l]===0?u=new ua({shape:{cx:t.cx,cy:t.cy,r:i[s]},style:o.getLineStyle(),z2:1,silent:!0}):u=new Hf({shape:{cx:t.cx,cy:t.cy,r:i[s],r0:i[l]},style:o.getLineStyle(),z2:1,silent:!0}),u.style.fill=null,r.add(u)},axisTick:function(r,e,t,a,n,i){var o=e.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=i[cv(t)],u=G(a,function(f){return new de({shape:vv(t,[l,l+s],f.coord)})});r.add(xr(u,{style:K(o.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(r,e,t,a,n,i){if(!!n.length){for(var o=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=i[cv(t)],f=[],h=0;hy?"left":"right",S=Math.abs(g[1]-m)/d<.3?"middle":g[1]>m?"top":"bottom";if(s&&s[p]){var b=s[p];et(b)&&b.textStyle&&(c=new Vt(b.textStyle,l,l.ecModel))}var x=new Ct({silent:za.isLabelSilent(e),style:Bt(c,{x:g[0],y:g[1],fill:c.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:h.formattedLabel,align:_,verticalAlign:S})});if(r.add(x),f){var w=za.makeAxisEventDataBase(e);w.targetType="axisLabel",w.value=h.rawLabel,nt(x).eventData=w}},this)},splitLine:function(r,e,t,a,n,i){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],h=0;h=0?"p":"n",I=w;b&&(a[f][D]||(a[f][D]={p:w,n:w}),I=a[f][D][L]);var P=void 0,R=void 0,E=void 0,N=void 0;if(p.dim==="radius"){var O=p.dataToCoord(M)-w,V=l.dataToCoord(D);Math.abs(O)=N})}}})}function oY(r){var e={};A(r,function(a,n){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=$D(o,s),u=s.getExtent(),f=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/i.count(),h=e[l]||{bandWidth:f,remainedWidth:f,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},v=h.stacks;e[l]=h;var c=jD(a);v[c]||h.autoWidthCount++,v[c]=v[c]||{width:0,maxWidth:0};var p=H(a.get("barWidth"),f),d=H(a.get("barMaxWidth"),f),g=a.get("barGap"),y=a.get("barCategoryGap");p&&!v[c].width&&(p=Math.min(h.remainedWidth,p),v[c].width=p,h.remainedWidth-=p),d&&(v[c].maxWidth=d),g!=null&&(h.gap=g),y!=null&&(h.categoryGap=y)});var t={};return A(e,function(a,n){t[n]={};var i=a.stacks,o=a.bandWidth,s=H(a.categoryGap,o),l=H(a.gap,1),u=a.remainedWidth,f=a.autoWidthCount,h=(u-s)/(f+(f-1)*l);h=Math.max(h,0),A(i,function(d,g){var y=d.maxWidth;y&&y=t.y&&e[1]<=t.y+t.height:a.contain(a.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},r.prototype.pointToData=function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e[t.orient==="horizontal"?0:1]))]},r.prototype.dataToPoint=function(e){var t=this.getAxis(),a=this.getRect(),n=[],i=t.orient==="horizontal"?0:1;return e instanceof Array&&(e=e[0]),n[i]=t.toGlobalCoord(t.dataToCoord(+e)),n[1-i]=i===0?a.y+a.height/2:a.x+a.width/2,n},r.prototype.convertToPixel=function(e,t,a){var n=tL(t);return n===this?this.dataToPoint(a):null},r.prototype.convertFromPixel=function(e,t,a){var n=tL(t);return n===this?this.pointToData(a):null},r}();function tL(r){var e=r.seriesModel,t=r.singleAxisModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}var SY=_Y;function xY(r,e){var t=[];return r.eachComponent("singleAxis",function(a,n){var i=new SY(a,r,e);i.name="single_"+n,i.resize(a,e),a.coordinateSystem=i,t.push(i)}),r.eachSeries(function(a){if(a.get("coordinateSystem")==="singleAxis"){var n=a.getReferringComponents("singleAxis",te).models[0];a.coordinateSystem=n&&n.coordinateSystem}}),t}var bY={create:xY,dimensions:JD},wY=bY,eL=["x","y"],TY=["width","height"],CY=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,a,n,i,o){var s=n.axis,l=s.coordinateSystem,u=im(l,1-pv(s)),f=l.dataToPoint(a)[0],h=i.get("type");if(h&&h!=="none"){var v=jy(i),c=AY[h](s,f,u);c.style=v,t.graphicKey=c.type,t.pointer=c}var p=am(n);OD(a,t,p,n,i,o)},e.prototype.getHandleTransform=function(t,a,n){var i=am(a,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=$y(a.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,a,n,i){var o=n.axis,s=o.coordinateSystem,l=pv(o),u=im(s,l),f=[t.x,t.y];f[l]+=a[l],f[l]=Math.min(u[1],f[l]),f[l]=Math.max(u[0],f[l]);var h=im(s,1-l),v=(h[1]+h[0])/2,c=[v,v];return c[l]=f[l],{x:f[0],y:f[1],rotation:t.rotation,cursorPoint:c,tooltipOption:{verticalAlign:"middle"}}},e}(qy),AY={line:function(r,e,t){var a=Qy([e,t[0]],[e,t[1]],pv(r));return{type:"Line",subPixelOptimize:!0,shape:a}},shadow:function(r,e,t){var a=r.getBandWidth(),n=t[1]-t[0];return{type:"Rect",shape:ND([e-a/2,t[0]],[a,n],pv(r))}}};function pv(r){return r.isHorizontal()?0:1}function im(r,e){var t=r.getRect();return[t[eL[e]],t[eL[e]]+t[TY[e]]]}var MY=CY,DY=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="single",e}(Zt);function LY(r){ct(hu),Wi.registerAxisPointerClass("SingleAxisPointer",MY),r.registerComponentView(DY),r.registerComponentView(gY),r.registerComponentModel(nm),ts(r,"single",nm,nm.defaultOption),r.registerCoordinateSystem("single",wY)}var IY=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a,n){var i=Po(t);r.prototype.init.apply(this,arguments),rL(t,i)},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),rL(this.option,t)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e}(Mt);function rL(r,e){var t=r.cellSize,a;z(t)?a=t:a=r.cellSize=[t,t],a.length===1&&(a[1]=a[0]);var n=G([0,1],function(i){return YE(e,i)&&(a[i]="auto"),a[i]!=null&&a[i]!=="auto"});pn(r,e,{type:"box",ignoreSize:n})}var PY=IY,RY=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i=this.group;i.removeAll();var o=t.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=a.getLocaleModel();this._renderDayRect(t,s,i),this._renderLines(t,s,l,i),this._renderYearText(t,s,l,i),this._renderMonthText(t,u,l,i),this._renderWeekText(t,u,s,l,i)},e.prototype._renderDayRect=function(t,a,n){for(var i=t.coordinateSystem,o=t.getModel("itemStyle").getItemStyle(),s=i.getCellWidth(),l=i.getCellHeight(),u=a.start.time;u<=a.end.time;u=i.getNextNDay(u,1).time){var f=i.dataToRect([u],!1).tl,h=new bt({shape:{x:f[0],y:f[1],width:s,height:l},cursor:"default",style:o});n.add(h)}},e.prototype._renderLines=function(t,a,n,i){var o=this,s=t.coordinateSystem,l=t.getModel(["splitLine","lineStyle"]).getLineStyle(),u=t.get(["splitLine","show"]),f=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var h=a.start,v=0;h.time<=a.end.time;v++){p(h.formatedDate),v===0&&(h=s.getDateInfo(a.start.y+"-"+a.start.m));var c=h.date;c.setMonth(c.getMonth()+1),h=s.getDateInfo(c)}p(s.getNextNDay(a.end.time,1).formatedDate);function p(d){o._firstDayOfMonth.push(s.getDateInfo(d)),o._firstDayPoints.push(s.dataToRect([d],!1).tl);var g=o._getLinePointsOfOneWeek(t,d,n);o._tlpoints.push(g[0]),o._blpoints.push(g[g.length-1]),u&&o._drawSplitline(g,l,i)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,f,n),l,i),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,f,n),l,i)},e.prototype._getEdgesPoints=function(t,a,n){var i=[t[0].slice(),t[t.length-1].slice()],o=n==="horizontal"?0:1;return i[0][o]=i[0][o]-a/2,i[1][o]=i[1][o]+a/2,i},e.prototype._drawSplitline=function(t,a,n){var i=new Ze({z2:20,shape:{points:t},style:a});n.add(i)},e.prototype._getLinePointsOfOneWeek=function(t,a,n){for(var i=t.coordinateSystem,o=i.getDateInfo(a),s=[],l=0;l<7;l++){var u=i.getNextNDay(o.time,l),f=i.dataToRect([u.time],!1);s[2*u.day]=f.tl,s[2*u.day+1]=f[n==="horizontal"?"bl":"tr"]}return s},e.prototype._formatterLabel=function(t,a){return U(t)&&t?HE(t,a):$(t)?t(a):a.nameMap},e.prototype._yearTextPositionControl=function(t,a,n,i,o){var s=a[0],l=a[1],u=["center","bottom"];i==="bottom"?(l+=o,u=["center","top"]):i==="left"?s-=o:i==="right"?(s+=o,u=["center","top"]):l-=o;var f=0;return(i==="left"||i==="right")&&(f=Math.PI/2),{rotation:f,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},e.prototype._renderYearText=function(t,a,n,i){var o=t.getModel("yearLabel");if(!!o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=n!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],f=(u[0][0]+u[1][0])/2,h=(u[0][1]+u[1][1])/2,v=n==="horizontal"?0:1,c={top:[f,u[v][1]],bottom:[f,u[1-v][1]],left:[u[1-v][0],h],right:[u[v][0],h]},p=a.start.y;+a.end.y>+a.start.y&&(p=p+"-"+a.end.y);var d=o.get("formatter"),g={start:a.start.y,end:a.end.y,nameMap:p},y=this._formatterLabel(d,g),m=new Ct({z2:30,style:Bt(o,{text:y})});m.attr(this._yearTextPositionControl(m,c[l],n,l,s)),i.add(m)}},e.prototype._monthTextPositionControl=function(t,a,n,i,o){var s="left",l="top",u=t[0],f=t[1];return n==="horizontal"?(f=f+o,a&&(s="center"),i==="start"&&(l="bottom")):(u=u+o,a&&(l="middle"),i==="start"&&(s="right")),{x:u,y:f,align:s,verticalAlign:l}},e.prototype._renderMonthText=function(t,a,n,i){var o=t.getModel("monthLabel");if(!!o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),f=o.get("align"),h=[this._tlpoints,this._blpoints];(!s||U(s))&&(s&&(a=_p(s)||a),s=a.get(["time","monthAbbr"])||[]);var v=u==="start"?0:1,c=n==="horizontal"?0:1;l=u==="start"?-l:l;for(var p=f==="center",d=0;d=n.start.time&&a.times.end.time&&t.reverse(),t},r.prototype._getRangeInfo=function(e){var t=[this.getDateInfo(e[0]),this.getDateInfo(e[1])],a;t[0].time>t[1].time&&(a=!0,t.reverse());var n=Math.floor(t[1].time/om)-Math.floor(t[0].time/om)+1,i=new Date(t[0].time),o=i.getDate(),s=t[1].date.getDate();i.setDate(o+n-1);var l=i.getDate();if(l!==s)for(var u=i.getTime()-t[1].time>0?1:-1;(l=i.getDate())!==s&&(i.getTime()-t[1].time)*u>0;)n-=u,i.setDate(l-u);var f=Math.floor((n+t[0].day+6)/7),h=a?-f+1:f-1;return a&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:n,weeks:f,nthWeek:h,fweek:t[0].day,lweek:t[1].day}},r.prototype._getDateByWeeksAndDay=function(e,t,a){var n=this._getRangeInfo(a);if(e>n.weeks||e===0&&tn.lweek)return null;var i=(e-1)*7-n.fweek+t,o=new Date(n.start.time);return o.setDate(+n.start.d+i),this.getDateInfo(o)},r.create=function(e,t){var a=[];return e.eachComponent("calendar",function(n){var i=new r(n,e,t);a.push(i),n.coordinateSystem=i}),e.eachSeries(function(n){n.get("coordinateSystem")==="calendar"&&(n.coordinateSystem=a[n.get("calendarIndex")||0])}),a},r.dimensions=["time","value"],r}();function aL(r){var e=r.calendarModel,t=r.seriesModel,a=e?e.coordinateSystem:t?t.coordinateSystem:null;return a}var OY=kY;function NY(r){r.registerComponentModel(PY),r.registerComponentView(EY),r.registerCoordinateSystem("calendar",OY)}function BY(r,e){var t=r.existing;if(e.id=r.keyInfo.id,!e.type&&t&&(e.type=t.type),e.parentId==null){var a=e.parentOption;a?e.parentId=a.id:t&&(e.parentId=t.parentId)}e.parentOption=null}function nL(r,e){var t;return A(e,function(a){r[a]!=null&&r[a]!=="auto"&&(t=!0)}),t}function VY(r,e,t){var a=B({},t),n=r[e],i=t.$action||"merge";if(i==="merge")if(n){if(!1)var o;ot(n,a,!0),pn(n,a,{ignoreSize:!0}),Q1(t,n),dv(t,n),dv(t,n,"shape"),dv(t,n,"style"),dv(t,n,"extra"),t.clipPath=n.clipPath}else r[e]=a;else i==="replace"?r[e]=a:i==="remove"&&n&&(r[e]=null)}var iL=["transition","enterFrom","leaveTo"],zY=iL.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function dv(r,e,t){if(t&&(!r[t]&&e[t]&&(r[t]={}),r=r[t],e=e[t]),!(!r||!e))for(var a=t?iL:zY,n=0;n=0;f--){var h=n[f],v=ie(h.id,null),c=v!=null?o.get(v):null;if(!!c){var p=c.parent,y=Mr(p),m=p===i?{width:s,height:l}:{width:y.width,height:y.height},_={},S=Pf(c,h,m,null,{hv:h.hv,boundingMode:h.bounding},_);if(!Mr(c).isNew&&S){for(var b=h.transition,x={},w=0;w=0)?x[T]=C:c[T]=C}At(c,x,t,0)}else c.attr(_)}}},e.prototype._clear=function(){var t=this,a=this._elMap;a.each(function(n){gv(n,Mr(n).option,a,t._lastGraphicModel)}),this._elMap=q()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(Zt);function sm(r){var e=Z(oL,r)?oL[r]:nd(r),t=new e({});return Mr(t).type=r,t}function sL(r,e,t,a){var n=sm(t);return e.add(n),a.set(r,n),Mr(n).id=r,Mr(n).isNew=!0,n}function gv(r,e,t,a){var n=r&&r.parent;n&&(r.type==="group"&&r.traverse(function(i){gv(i,e,t,a)}),lv(r,e,a),t.removeKey(Mr(r).id))}function lL(r,e,t,a){r.isGroup||A([["cursor",dr.prototype.cursor],["zlevel",a||0],["z",t||0],["z2",0]],function(n){var i=n[0];Z(e,i)?r[i]=ft(e[i],n[1]):r[i]==null&&(r[i]=n[1])}),A(St(e),function(n){if(n.indexOf("on")===0){var i=e[n];r[n]=$(i)?i:null}}),Z(e,"draggable")&&(r.draggable=e.draggable),e.name!=null&&(r.name=e.name),e.id!=null&&(r.id=e.id)}function WY(r){return r=B({},r),A(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat($1),function(e){delete r[e]}),r}function UY(r,e,t){var a=nt(r).eventData;!r.silent&&!r.ignore&&!a&&(a=nt(r).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:r.name}),a&&(a.info=t.info)}function YY(r){r.registerComponentModel(FY),r.registerComponentView(HY),r.registerPreprocessor(function(e){var t=e.graphic;z(t)?!t[0]||!t[0].elements?e.graphic=[{elements:t}]:e.graphic=[e.graphic[0]]:t&&!t.elements&&(e.graphic=[{elements:[t]}])})}var uL=["x","y","radius","angle","single"],ZY=["cartesian2d","polar","singleAxis"];function XY(r){var e=r.get("coordinateSystem");return st(ZY,e)>=0}function In(r){return r+"Axis"}function Qq(r){return r+"AxisIndex"}function Jq(r){return r+"AxisId"}function KY(r,e){var t=q(),a=[],n=q();r.eachComponent({mainType:"dataZoom",query:e},function(f){n.get(f.uid)||s(f)});var i;do i=!1,r.eachComponent("dataZoom",o);while(i);function o(f){!n.get(f.uid)&&l(f)&&(s(f),i=!0)}function s(f){n.set(f.uid,!0),a.push(f),u(f)}function l(f){var h=!1;return f.eachTargetAxis(function(v,c){var p=t.get(v);p&&p[c]&&(h=!0)}),h}function u(f){f.eachTargetAxis(function(h,v){(t.get(h)||t.set(h,[]))[v]=!0})}return a}function fL(r){var e=r.ecModel,t={infoList:[],infoMap:q()};return r.eachTargetAxis(function(a,n){var i=e.getComponent(In(a),n);if(!!i){var o=i.getCoordSysModel();if(!!o){var s=o.uid,l=t.infoMap.get(s);l||(l={model:o,axisModels:[]},t.infoList.push(l),t.infoMap.set(s,l)),l.axisModels.push(i)}}}),t}var lm=function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},r}(),qY=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._autoThrottle=!0,t._noTarget=!0,t._rangePropMode=["percent","percent"],t}return e.prototype.init=function(t,a,n){var i=hL(t);this.settledOption=i,this.mergeDefaultAndTheme(t,n),this._doInit(i)},e.prototype.mergeOption=function(t){var a=hL(t);ot(this.option,t,!0),ot(this.settledOption,a,!0),this._doInit(a)},e.prototype._doInit=function(t){var a=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var n=this.settledOption;A([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(a[i[0]]=n[i[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),a=this._targetAxisInfoMap=q(),n=this._fillSpecifiedTargetAxis(a);n?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(a,this._orient)),this._noTarget=!0,a.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(t){var a=!1;return A(uL,function(n){var i=this.getReferringComponents(In(n),nR);if(!!i.specified){a=!0;var o=new lm;A(i.models,function(s){o.add(s.componentIndex)}),t.set(n,o)}},this),a},e.prototype._fillAutoTargetAxisByOrient=function(t,a){var n=this.ecModel,i=!0;if(i){var o=a==="vertical"?"y":"x",s=n.findComponents({mainType:o+"Axis"});l(s,o)}if(i){var s=n.findComponents({mainType:"singleAxis",filter:function(f){return f.get("orient",!0)===a}});l(s,"single")}function l(u,f){var h=u[0];if(!!h){var v=new lm;if(v.add(h.componentIndex),t.set(f,v),i=!1,f==="x"||f==="y"){var c=h.getReferringComponents("grid",te).models[0];c&&A(u,function(p){h.componentIndex!==p.componentIndex&&c===p.getReferringComponents("grid",te).models[0]&&v.add(p.componentIndex)})}}}i&&A(uL,function(u){if(!!i){var f=n.findComponents({mainType:In(u),filter:function(v){return v.get("type",!0)==="category"}});if(f[0]){var h=new lm;h.add(f[0].componentIndex),t.set(u,h),i=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis(function(a){!t&&(t=a)},this),t==="y"?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var a=this.ecModel.option;this.option.throttle=a.animation&&a.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var a=this._rangePropMode,n=this.get("rangeMode");A([["start","startValue"],["end","endValue"]],function(i,o){var s=t[i[0]]!=null,l=t[i[1]]!=null;s&&!l?a[o]="percent":!s&&l?a[o]="value":n?a[o]=n[o]:s&&(a[o]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis(function(a,n){t==null&&(t=this.ecModel.getComponent(In(a),n))},this),t},e.prototype.eachTargetAxis=function(t,a){this._targetAxisInfoMap.each(function(n,i){A(n.indexList,function(o){t.call(a,i,o)})})},e.prototype.getAxisProxy=function(t,a){var n=this.getAxisModel(t,a);if(n)return n.__dzAxisProxy},e.prototype.getAxisModel=function(t,a){var n=this._targetAxisInfoMap.get(t);if(n&&n.indexMap[a])return this.ecModel.getComponent(In(t),a)},e.prototype.setRawRange=function(t){var a=this.option,n=this.settledOption;A([["start","startValue"],["end","endValue"]],function(i){(t[i[0]]!=null||t[i[1]]!=null)&&(a[i[0]]=n[i[0]]=t[i[0]],a[i[1]]=n[i[1]]=t[i[1]])},this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var a=this.option;A(["start","startValue","end","endValue"],function(n){a[n]=t[n]})},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,a){if(t==null&&a==null){var n=this.findRepresentativeAxisProxy();if(n)return n.getDataValueWindow()}else return this.getAxisProxy(t,a).getDataValueWindow()},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var a,n=this._targetAxisInfoMap.keys(),i=0;io[1];if(_&&!S&&!b)return!0;_&&(g=!0),S&&(p=!0),b&&(d=!0)}return g&&p&&d})}else fs(f,function(c){if(i==="empty")l.setData(u=u.map(c,function(d){return s(d)?d:NaN}));else{var p={};p[c]=o,u.selectRange(p)}});fs(f,function(c){u.setApproximateExtent(o,c)})}});function s(l){return l>=o[0]&&l<=o[1]}},r.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,a=this._dataExtent;fs(["min","max"],function(n){var i=t.get(n+"Span"),o=t.get(n+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=Pt(a[0]+o,a,[0,100],!0):i!=null&&(o=Pt(i,[0,100],a,!0)-a[0]),e[n+"Span"]=i,e[n+"ValueSpan"]=o},this)},r.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,a=this._valueWindow;if(!!t){var n=s_(a,[0,500]);n=Math.min(n,20);var i=e.axis.scale.rawExtentInfo;t[0]!==0&&i.setDeterminedMinMax("min",+a[0].toFixed(n)),t[1]!==100&&i.setDeterminedMinMax("max",+a[1].toFixed(n)),i.freeze()}},r}();function rZ(r,e,t){var a=[Infinity,-Infinity];fs(t,function(o){V5(a,o.getData(),e)});var n=r.getAxisModel(),i=WT(n.axis.scale,n,a).calculate();return[i.min,i.max]}var aZ=eZ,nZ={getTargetSeries:function(r){function e(n){r.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=r.getComponent(In(o),s);n(o,s,l,i)})})}e(function(n,i,o,s){o.__dzAxisProxy=null});var t=[];e(function(n,i,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new aZ(n,i,s,r),t.push(o.__dzAxisProxy))});var a=q();return A(t,function(n){A(n.getTargetSeriesModels(),function(i){a.set(i.uid,i)})}),a},overallReset:function(r,e){r.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(a,n){t.getAxisProxy(a,n).reset(t)}),t.eachTargetAxis(function(a,n){t.getAxisProxy(a,n).filterData(t,e)})}),r.eachComponent("dataZoom",function(t){var a=t.findRepresentativeAxisProxy();if(a){var n=a.getDataPercentWindow(),i=a.getDataValueWindow();t.setCalculatedRange({start:n[0],end:n[1],startValue:i[0],endValue:i[1]})}})}},iZ=nZ;function oZ(r){r.registerAction("dataZoom",function(e,t){var a=KY(t,e);A(a,function(n){n.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var cL=!1;function fm(r){cL||(cL=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,iZ),oZ(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function sZ(r){r.registerComponentModel($Y),r.registerComponentView(tZ),fm(r)}var Dr=function(){function r(){}return r}(),pL={};function hs(r,e){pL[r]=e}function dL(r){return pL[r]}var lZ=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){r.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;A(this.option.feature,function(a,n){var i=dL(n);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(t)),ot(a,i.defaultOption))})},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},e}(Mt),uZ=lZ;function fZ(r,e,t){var a=e.getBoxLayoutParams(),n=e.get("padding"),i={width:t.getWidth(),height:t.getHeight()},o=oe(a,i,n);xi(e.get("orient"),r,e.get("itemGap"),o.width,o.height),Pf(r,a,i,n)}function gL(r,e){var t=Io(e.get("padding")),a=e.getItemStyle(["color","opacity"]);return a.fill=e.get("backgroundColor"),r=new bt({shape:{x:r.x-t[3],y:r.y-t[0],width:r.width+t[1]+t[3],height:r.height+t[0]+t[2],r:e.get("borderRadius")},style:a,silent:!0,z2:-1}),r}var hZ=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,a,n,i){var o=this.group;if(o.removeAll(),!t.get("show"))return;var s=+t.get("itemSize"),l=t.get("orient")==="vertical",u=t.get("feature")||{},f=this._features||(this._features={}),h=[];A(u,function(p,d){h.push(d)}),new Na(this._featureNames||[],h).add(v).update(v).remove(it(v,null)).execute(),this._featureNames=h;function v(p,d){var g=h[p],y=h[d],m=u[g],_=new Vt(m,t,t.ecModel),S;if(i&&i.newTitle!=null&&i.featureName===g&&(m.title=i.newTitle),g&&!y){if(vZ(g))S={onclick:_.option.onclick,featureName:g};else{var b=dL(g);if(!b)return;S=new b}f[g]=S}else if(S=f[y],!S)return;S.uid=Mo("toolbox-feature"),S.model=_,S.ecModel=a,S.api=n;var x=S instanceof Dr;if(!g&&y){x&&S.dispose&&S.dispose(a,n);return}if(!_.get("show")||x&&S.unusable){x&&S.remove&&S.remove(a,n);return}c(_,S,g),_.setIconStatus=function(w,T){var C=this.option,M=this.iconPaths;C.iconStatus=C.iconStatus||{},C.iconStatus[w]=T,M[w]&&(T==="emphasis"?Ra:Ea)(M[w])},S instanceof Dr&&S.render&&S.render(_,a,n,i)}function c(p,d,g){var y=p.getModel("iconStyle"),m=p.getModel(["emphasis","iconStyle"]),_=d instanceof Dr&&d.getIcons?d.getIcons():p.get("icon"),S=p.get("title")||{},b,x;U(_)?(b={},b[g]=_):b=_,U(S)?(x={},x[g]=S):x=S;var w=p.iconPaths={};A(b,function(T,C){var M=ml(T,{},{x:-s/2,y:-s/2,width:s,height:s});M.setStyle(y.getItemStyle());var D=M.ensureState("emphasis");D.style=m.getItemStyle();var L=new Ct({style:{text:x[C],align:m.get("textAlign"),borderRadius:m.get("textBorderRadius"),padding:m.get("textPadding"),fill:null},ignore:!0});M.setTextContent(L),Fo({el:M,componentModel:t,itemName:C,formatterParamsExtra:{title:x[C]}}),M.__title=x[C],M.on("mouseover",function(){var I=m.getItemStyle(),P=l?t.get("right")==null&&t.get("left")!=="right"?"right":"left":t.get("bottom")==null&&t.get("top")!=="bottom"?"bottom":"top";L.setStyle({fill:m.get("textFill")||I.fill||I.stroke||"#000",backgroundColor:m.get("textBackgroundColor")}),M.setTextConfig({position:m.get("textPosition")||P}),L.ignore=!t.get("showTitle"),n.enterEmphasis(this)}).on("mouseout",function(){p.get(["iconStatus",C])!=="emphasis"&&n.leaveEmphasis(this),L.hide()}),(p.get(["iconStatus",C])==="emphasis"?Ra:Ea)(M),o.add(M),M.on("click",Y(d.onclick,d,a,n,C)),w[C]=M})}fZ(o,t,n),o.add(gL(o.getBoundingRect(),t)),l||o.eachChild(function(p){var d=p.__title,g=p.ensureState("emphasis"),y=g.textConfig||(g.textConfig={}),m=p.getTextContent(),_=m&&m.ensureState("emphasis");if(_&&!$(_)&&d){var S=_.style||(_.style={}),b=Gs(d,Ct.makeFont(S)),x=p.x+o.x,w=p.y+o.y+s,T=!1;w+b.height>n.getHeight()&&(y.position="top",T=!0);var C=T?-5-b.height:s+10;x+b.width/2>n.getWidth()?(y.position=["100%",C],S.align="right"):x-b.width/2<0&&(y.position=[0,C],S.align="left")}})},e.prototype.updateView=function(t,a,n,i){A(this._features,function(o){o instanceof Dr&&o.updateView&&o.updateView(o.model,a,n,i)})},e.prototype.remove=function(t,a){A(this._features,function(n){n instanceof Dr&&n.remove&&n.remove(t,a)}),this.group.removeAll()},e.prototype.dispose=function(t,a){A(this._features,function(n){n instanceof Dr&&n.dispose&&n.dispose(t,a)})},e.type="toolbox",e}(Zt);function vZ(r){return r.indexOf("my")===0}var cZ=hZ,pZ=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,a){var n=this.model,i=n.get("name")||t.get("title.0.text")||"echarts",o=a.getZr().painter.getType()==="svg",s=o?"svg":n.get("type",!0)||"png",l=a.getConnectedDataURL({type:s,backgroundColor:n.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),u=_t.browser;if($(MouseEvent)&&(u.newEdge||!u.ie&&!u.edge)){var f=document.createElement("a");f.download=i+"."+s,f.target="_blank",f.href=l;var h=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});f.dispatchEvent(h)}else if(window.navigator.msSaveOrOpenBlob||o){var v=l.split(","),c=v[0].indexOf("base64")>-1,p=o?decodeURIComponent(v[1]):v[1];c&&(p=window.atob(p));var d=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var g=p.length,y=new Uint8Array(g);g--;)y[g]=p.charCodeAt(g);var m=new Blob([y]);window.navigator.msSaveOrOpenBlob(m,d)}else{var _=document.createElement("iframe");document.body.appendChild(_);var S=_.contentWindow,b=S.document;b.open("image/svg+xml","replace"),b.write(p),b.close(),S.focus(),b.execCommand("SaveAs",!0,d),document.body.removeChild(_)}}else{var x=n.get("lang"),w='',T=window.open();T.document.write(w),T.document.title=i}},e.getDefaultOption=function(t){var a={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:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return a},e}(Dr),dZ=pZ,yL="__ec_magicType_stack__",tj=null,ej=null,gZ=[["line","bar"],["stack"]],yZ=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getIcons=function(){var t=this.model,a=t.get("icon"),n={};return A(t.get("type"),function(i){a[i]&&(n[i]=a[i])}),n},e.getDefaultOption=function(t){var a={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return a},e.prototype.onclick=function(t,a,n){var i=this.model,o=i.get(["seriesIndex",n]);if(!!mL[n]){var s={series:[]},l=function(h){var v=h.subType,c=h.id,p=mL[n](v,c,h,i);p&&(K(p,h.option),s.series.push(p));var d=h.coordinateSystem;if(d&&d.type==="cartesian2d"&&(n==="line"||n==="bar")){var g=d.getAxesByScale("ordinal")[0];if(g){var y=g.dim,m=y+"Axis",_=h.getReferringComponents(m,te).models[0],S=_.componentIndex;s[m]=s[m]||[];for(var b=0;b<=S;b++)s[m][S]=s[m][S]||{};s[m][S].boundaryGap=n==="bar"}}};A(gZ,function(h){st(h,n)>=0&&A(h,function(v){i.setIconStatus(v,"normal")})}),i.setIconStatus(n,"emphasis"),t.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,f=n;n==="stack"&&(u=ot({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",n])!=="emphasis"&&(f="tiled")),a.dispatchAction({type:"changeMagicType",currentType:f,newOption:s,newTitle:u,featureName:"magicType"})}},e}(Dr),mL={line:function(r,e,t,a){if(r==="bar")return ot({id:e,type:"line",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},a.get(["option","line"])||{},!0)},bar:function(r,e,t,a){if(r==="line")return ot({id:e,type:"bar",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},a.get(["option","bar"])||{},!0)},stack:function(r,e,t,a){var n=t.get("stack")===yL;if(r==="line"||r==="bar")return a.setIconStatus("stack",n?"normal":"emphasis"),ot({id:e,stack:n?"":yL},a.get(["option","stack"])||{},!0)}};ha({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,e){e.mergeOption(r.newOption)});var mZ=yZ,yv=new Array(60).join("-"),vs=" ";function _Z(r){var e={},t=[],a=[];return r.eachRawSeries(function(n){var i=n.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var o=i.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;e[s]||(e[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},a.push({axisDim:o.dim,axisIndex:o.index})),e[s].series.push(n)}else t.push(n)}else t.push(n)}),{seriesGroupByCategoryAxis:e,other:t,meta:a}}function SZ(r){var e=[];return A(r,function(t,a){var n=t.categoryAxis,i=t.valueAxis,o=i.dim,s=[" "].concat(G(t.series,function(c){return c.name})),l=[n.model.getCategories()];A(t.series,function(c){var p=c.getRawData();l.push(c.getRawData().mapArray(p.mapDimension(o),function(d){return d}))});for(var u=[s.join(vs)],f=0;f1||t>0&&!r.noHeader;return A(r.blocks,function(n){var i=tx(n);i>=e&&(e=i+ +(a&&(!i||Yp(n)&&!n.noHeader)))}),e}return 0}function eO(r,e,t,a){var n=e.noHeader,i=aO(tx(e)),o=[],s=e.blocks||[];Pe(!s||z(s)),s=s||[];var l=r.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Z(u,l)){var f=new HS(u[l],null);s.sort(function(p,d){return f.evaluate(p.sortParam,d.sortParam)})}else l==="seriesDesc"&&s.reverse()}A(s,function(p,d){var g=e.valueFormatter,y=JS(p)(g?B(B({},r),{valueFormatter:g}):r,p,d>0?i.html:0,a);y!=null&&o.push(y)});var h=r.renderMode==="richText"?o.join(i.richText):Zp(o.join(""),n?t:i.html);if(n)return h;var v=Tp(e.header,"ordinal",r.useUTC),c=QS(a,r.renderMode).nameStyle;return r.renderMode==="richText"?rx(r,v,c)+i.richText+h:Zp('
'+Ge(v)+"
"+h,t)}function rO(r,e,t,a){var n=r.renderMode,i=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=r.useUTC,f=e.valueFormatter||r.valueFormatter||function(S){return S=z(S)?S:[S],G(S,function(b,x){return Tp(b,z(c)?c[x]:c,u)})};if(!(i&&o)){var h=s?"":r.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",n),v=i?"":Tp(l,"ordinal",u),c=e.valueType,p=o?[]:f(e.value),d=!s||!i,g=!s&&i,y=QS(a,n),m=y.nameStyle,_=y.valueStyle;return n==="richText"?(s?"":h)+(i?"":rx(r,v,m))+(o?"":oO(r,p,d,g,_)):Zp((s?"":h)+(i?"":nO(v,!s,m))+(o?"":iO(p,d,g,_)),t)}}function ex(r,e,t,a,n,i){if(!!r){var o=JS(r),s={useUTC:n,renderMode:t,orderMode:a,markupStyleCreator:e,valueFormatter:r.valueFormatter};return o(s,r,0,i)}}function aO(r){return{html:Jk[r],richText:tO[r]}}function Zp(r,e){var t='
',a="margin: "+e+"px 0 0";return'
'+r+t+"
"}function nO(r,e,t){var a=e?"margin-left:2px":"";return''+Ge(r)+""}function iO(r,e,t,a){var n=t?"10px":"20px",i=e?"float:right;margin-left:"+n:"";return r=z(r)?r:[r],''+G(r,function(o){return Ge(o)}).join("  ")+""}function rx(r,e,t){return r.markupStyleCreator.wrapRichTextStyle(e,t)}function oO(r,e,t,a,n){var i=[n],o=a?10:20;return t&&i.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(z(e)?e.join(" "):e,i)}function ax(r,e){var t=r.getData().getItemVisual(e,"style"),a=t[r.visualDrawType];return _i(a)}function nx(r,e){var t=r.get("padding");return t!=null?t:e==="richText"?[8,10]:10}var Xp=function(){function r(){this.richTextStyles={},this._nextStyleNameId=p_()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(e,t,a){var n=a==="richText"?this._generateStyleName():null,i=WE({color:t,type:e,renderMode:a,markerId:n});return U(i)?i:(this.richTextStyles[n]=i.style,i.content)},r.prototype.wrapRichTextStyle=function(e,t){var a={};z(t)?A(t,function(i){return B(a,i)}):B(a,t);var n=this._generateStyleName();return this.richTextStyles[n]=a,"{"+n+"|"+e+"}"},r}();function ix(r){var e=r.series,t=r.dataIndex,a=r.multipleSeries,n=e.getData(),i=n.mapDimensionsAll("defaultedTooltip"),o=i.length,s=e.getRawValue(t),l=z(s),u=ax(e,t),f,h,v,c;if(o>1||l&&!o){var p=sO(s,e,t,i,u);f=p.inlineValues,h=p.inlineValueTypes,v=p.blocks,c=p.inlineValues[0]}else if(o){var d=n.getDimensionInfo(i[0]);c=f=No(n,t,i[0]),h=d.type}else c=f=l?s[0]:s;var g=Nc(e),y=g&&e.name||"",m=n.getName(t),_=a?y:m;return fe("section",{header:y,noHeader:a||!g,sortParam:c,blocks:[fe("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Rr(_),value:f,valueType:h})].concat(v||[])})}function sO(r,e,t,a,n){var i=e.getData(),o=qr(r,function(h,v,c){var p=i.getDimensionInfo(c);return h=h||p&&p.tooltip!==!1&&p.displayName!=null},!1),s=[],l=[],u=[];a.length?A(a,function(h){f(No(i,t,h),h)}):A(r,f);function f(h,v){var c=i.getDimensionInfo(v);!c||c.otherDims.tooltip===!1||(o?u.push(fe("nameValue",{markerType:"subItem",markerColor:n,name:c.displayName,value:h,valueType:c.type})):(s.push(h),l.push(c.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var gn=xt();function Nf(r,e){return r.getName(e)||r.getId(e)}var Bf="__universalTransitionEnabled",Vf=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return e.prototype.init=function(t,a,n){this.seriesIndex=this.componentIndex,this.dataTask=hl({count:uO,reset:fO}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n);var i=gn(this).sourceManager=new KS(this);i.prepareSource();var o=this.getInitialData(t,n);sx(o,this),this.dataTask.context.data=o,gn(this).dataBeforeProcessed=o,ox(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(t,a){var n=il(this),i=n?Ro(t):{},o=this.subType;At.hasClass(o)&&(o+="Series"),ot(t,a.getTheme().get(this.subType)),ot(t,this.getDefaultOption()),ei(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&pn(t,i,n)},e.prototype.mergeOption=function(t,a){t=ot(this.option,t,!0),this.fillDataTextStyle(t.data);var n=il(this);n&&pn(this.option,t,n);var i=gn(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(t,a);sx(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,gn(this).dataBeforeProcessed=o,ox(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(t){if(t&&!Je(t))for(var a=["show"],n=0;nthis.getShallow("animationThreshold")&&(a=!1),!!a},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,a,n){var i=this.ecModel,o=Ip.prototype.getColorFromPalette.call(this,t,a,n);return o||(o=i.getColorFromPalette(t,a,n)),o},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,a){this._innerSelect(this.getData(a),t)},e.prototype.unselect=function(t,a){var n=this.option.selectedMap;if(!!n){var i=this.option.selectedMode,o=this.getData(a);if(i==="series"||n==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&n.push(o)}return n},e.prototype.isSelected=function(t,a){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(a);return(n==="all"||n[Nf(i,t)])&&!i.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[Bf])return!0;var t=this.option.universalTransition;return t?t===!0?!0:t&&t.enabled:!1},e.prototype._innerSelect=function(t,a){var n,i,o=this.option,s=o.selectedMode,l=a.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){et(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f0&&this._innerSelect(t,a)}},e.registerClass=function(t){return At.registerClass(t)},e.protoInitialize=function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),e}(At);Jt(Vf,Gp),Jt(Vf,Ip),A_(Vf,At);function ox(r){var e=r.name;Nc(r)||(r.name=lO(r)||e)}function lO(r){var e=r.getRawData(),t=e.mapDimensionsAll("seriesName"),a=[];return A(t,function(n){var i=e.getDimensionInfo(n);i.displayName&&a.push(i.displayName)}),a.join(" ")}function uO(r){return r.model.getRawData().count()}function fO(r){var e=r.model;return e.setData(e.getRawData().cloneShallow()),hO}function hO(r,e){e.outputData&&r.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function sx(r,e){A(Du(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(t){r.wrapMethod(t,it(vO,e))})}function vO(r,e){var t=Kp(r);return t&&t.setOutputEnd((e||this).count()),e}function Kp(r){var e=(r.ecModel||{}).scheduler,t=e&&e.getPipeline(r.uid);if(t){var a=t.currentTask;if(a){var n=a.agentStubMap;n&&(a=n.get(r.uid))}return a}}var Wt=Vf,qp=function(){function r(){this.group=new rt,this.uid=Do("viewComponent")}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,a,n){},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,a,n){},r.prototype.updateLayout=function(e,t,a,n){},r.prototype.updateVisual=function(e,t,a,n){},r.prototype.toggleBlurSeries=function(e,t,a){},r.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},r}();zc(qp),of(qp);var Zt=qp;function Vo(){var r=xt();return function(e){var t=r(e),a=e.pipelineContext,n=!!t.large,i=!!t.progressiveRender,o=t.large=!!(a&&a.large),s=t.progressiveRender=!!(a&&a.progressiveRender);return(n!==o||i!==s)&&"reset"}}var zo=oa.CMD,cO=[[],[],[]],lx=Math.sqrt,pO=Math.atan2;function ux(r,e){if(!!e){var t=r.data,a=r.len(),n,i,o,s,l,u,f=zo.M,h=zo.C,v=zo.L,c=zo.R,p=zo.A,d=zo.Q;for(o=0,s=0;o1&&(o*=jp(p),s*=jp(p));var d=(n===i?-1:1)*jp((o*o*(s*s)-o*o*(c*c)-s*s*(v*v))/(o*o*(c*c)+s*s*(v*v)))||0,g=d*o*c/s,y=d*-s*v/o,m=(r+t)/2+Gf(h)*g-zf(h)*y,_=(e+a)/2+zf(h)*g+Gf(h)*y,S=hx([1,0],[(v-g)/o,(c-y)/s]),b=[(v-g)/o,(c-y)/s],x=[(-1*v-g)/o,(-1*c-y)/s],w=hx(b,x);if($p(b,x)<=-1&&(w=cl),$p(b,x)>=1&&(w=0),w<0){var T=Math.round(w/cl*1e6)/1e6;w=cl*2+T%2*cl}f.addData(u,m,_,o,s,S,w,h,i)}var dO=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,gO=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function yO(r){var e=new oa;if(!r)return e;var t=0,a=0,n=t,i=a,o,s=oa.CMD,l=r.match(dO);if(!l)return e;for(var u=0;uP*P+R*R&&(T=M,C=D),{cx:T,cy:C,x0:-f,y0:-h,x1:T*(n/b-1),y1:C*(n/b-1)}}function TO(r){var e;if(z(r)){var t=r.length;if(!t)return r;t===1?e=[r[0],r[0],0,0]:t===2?e=[r[0],r[0],r[1],r[1]]:t===3?e=r.concat(r[2]):e=r}else e=[r,r,r,r];return e}function CO(r,e){var t,a=dl(e.r,0),n=dl(e.r0||0,0),i=a>0,o=n>0;if(!(!i&&!o)){if(i||(a=n,n=0),n>a){var s=a;a=n,n=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var f=e.cx,h=e.cy,v=!!e.clockwise,c=Sx(u-l),p=c>td&&c%td;if(p>Vr&&(c=p),!(a>Vr))r.moveTo(f,h);else if(c>td-Vr)r.moveTo(f+a*Go(l),h+a*Ci(l)),r.arc(f,h,a,l,u,!v),n>Vr&&(r.moveTo(f+n*Go(u),h+n*Ci(u)),r.arc(f,h,n,u,l,v));else{var d=void 0,g=void 0,y=void 0,m=void 0,_=void 0,S=void 0,b=void 0,x=void 0,w=void 0,T=void 0,C=void 0,M=void 0,D=void 0,L=void 0,I=void 0,P=void 0,R=a*Go(l),E=a*Ci(l),N=n*Go(u),O=n*Ci(u),V=c>Vr;if(V){var F=e.cornerRadius;F&&(t=TO(F),d=t[0],g=t[1],y=t[2],m=t[3]);var W=Sx(a-n)/2;if(_=fa(W,y),S=fa(W,m),b=fa(W,d),x=fa(W,g),C=w=dl(_,S),M=T=dl(b,x),(w>Vr||T>Vr)&&(D=a*Go(u),L=a*Ci(u),I=n*Go(l),P=n*Ci(l),c<_x)){var X=wO(R,E,I,P,D,L,N,O);if(X){var Q=R-X[0],J=E-X[1],dt=D-X[0],Dt=L-X[1],gt=1/Ci(bO((Q*dt+J*Dt)/(pl(Q*Q+J*J)*pl(dt*dt+Dt*Dt)))/2),at=pl(X[0]*X[0]+X[1]*X[1]);C=fa(w,(a-at)/(gt+1)),M=fa(T,(n-at)/(gt-1))}}}if(!V)r.moveTo(f+R,h+E);else if(C>Vr){var yt=fa(y,C),vt=fa(m,C),j=Ff(I,P,R,E,a,yt,v),ut=Ff(D,L,N,O,a,vt,v);r.moveTo(f+j.cx+j.x0,h+j.cy+j.y0),C0&&r.arc(f+j.cx,h+j.cy,yt,Me(j.y0,j.x0),Me(j.y1,j.x1),!v),r.arc(f,h,a,Me(j.cy+j.y1,j.cx+j.x1),Me(ut.cy+ut.y1,ut.cx+ut.x1),!v),vt>0&&r.arc(f+ut.cx,h+ut.cy,vt,Me(ut.y1,ut.x1),Me(ut.y0,ut.x0),!v))}else r.moveTo(f+R,h+E),r.arc(f,h,a,l,u,!v);if(!(n>Vr)||!V)r.lineTo(f+N,h+O);else if(M>Vr){var yt=fa(d,M),vt=fa(g,M),j=Ff(N,O,D,L,n,-vt,v),ut=Ff(R,E,I,P,n,-yt,v);r.lineTo(f+j.cx+j.x0,h+j.cy+j.y0),M0&&r.arc(f+j.cx,h+j.cy,vt,Me(j.y0,j.x0),Me(j.y1,j.x1),!v),r.arc(f,h,n,Me(j.cy+j.y1,j.cx+j.x1),Me(ut.cy+ut.y1,ut.cx+ut.x1),v),yt>0&&r.arc(f+ut.cx,h+ut.cy,yt,Me(ut.y1,ut.x1),Me(ut.y0,ut.x0),!v))}else r.lineTo(f+N,h+O),r.arc(f,h,n,u,l,v)}r.closePath()}}}var AO=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return r}(),xx=function(r){Ft(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new AO},e.prototype.buildPath=function(t,a){CO(t,a)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(pt);xx.prototype.type="sector";var Ue=xx,MO=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r}(),bx=function(r){Ft(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new MO},e.prototype.buildPath=function(t,a){var n=a.cx,i=a.cy,o=Math.PI*2;t.moveTo(n+a.r,i),t.arc(n,i,a.r,0,o,!1),t.moveTo(n+a.r0,i),t.arc(n,i,a.r0,0,o,!0)},e}(pt);bx.prototype.type="ring";var Hf=bx;function DO(r,e,t,a){var n=[],i=[],o=[],s=[],l,u,f,h;if(a){f=[Infinity,Infinity],h=[-Infinity,-Infinity];for(var v=0,c=r.length;v=2){if(a){var i=DO(n,a,t,e.smoothConstraint);r.moveTo(n[0][0],n[0][1]);for(var o=n.length,s=0;s<(t?o:o-1);s++){var l=i[s*2],u=i[s*2+1],f=n[(s+1)%o];r.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{r.moveTo(n[0][0],n[0][1]);for(var s=1,h=n.length;sMi[1]){if(s=!1,i)return s;var f=Math.abs(Mi[0]-Ai[1]),h=Math.abs(Ai[0]-Mi[1]);Math.min(f,h)>n.len()&&(fMath.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function Nx(r){return!r.isGroup}function XO(r){return r.shape!=null}function yl(r,e,t){if(!r||!e)return;function a(o){var s={};return o.traverse(function(l){Nx(l)&&l.anid&&(s[l.anid]=l)}),s}function n(o){var s={x:o.x,y:o.y,rotation:o.rotation};return XO(o)&&(s.shape=B({},o.shape)),s}var i=a(r);e.traverse(function(o){if(Nx(o)&&o.anid){var s=i[o.anid];if(s){var l=n(o);o.attr(n(s)),Mt(o,l,t,nt(o).dataIndex)}}})}function Bx(r,e){return G(r,function(t){var a=t[0];a=Xf(a,e.x),a=Kf(a,e.x+e.width);var n=t[1];return n=Xf(n,e.y),n=Kf(n,e.y+e.height),[a,n]})}function KO(r,e){var t=Xf(r.x,e.x),a=Kf(r.x+r.width,e.x+e.width),n=Xf(r.y,e.y),i=Kf(r.y+r.height,e.y+e.height);if(a>=t&&i>=n)return{x:t,y:n,width:a-t,height:i-n}}function ml(r,e,t){var a=B({rectHover:!0},e),n=a.style={strokeNoScale:!0};if(t=t||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(n.image=r.slice(8),K(n,t),new _e(a)):qf(r.replace("path://",""),a,t,"center")}function _l(r,e,t,a,n){for(var i=0,o=n[n.length-1];i1)return!1;var g=id(c,p,f,h)/v;return!(g<0||g>1)}function id(r,e,t,a){return r*a-t*e}function qO(r){return r<=1e-6&&r>=-1e-6}function Ho(r){var e=r.itemTooltipOption,t=r.componentModel,a=r.itemName,n=U(e)?{formatter:e}:e,i=t.mainType,o=t.componentIndex,s={componentType:i,name:a,$vars:["name"]};s[i+"Index"]=o;var l=r.formatterParamsExtra;l&&A(_t(l),function(f){Z(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=nt(r.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:a,option:K({content:a,formatterParams:s},n)}}function zx(r,e){var t;r.isGroup&&(t=e(r)),t||r.traverse(e)}function yn(r,e){if(r)if(z(r))for(var t=0;t=0?h():o=setTimeout(h,-s),n=a};return v.clear=function(){o&&(clearTimeout(o),o=null)},v.debounceNextCall=function(c){f=c},v}function Wo(r,e,t,a){var n=r[e];if(!!n){var i=n[Qf]||n,o=n[Ux],s=n[Wx];if(s!==t||o!==a){if(t==null||!a)return r[e]=i;n=r[e]=sd(i,t,a==="debounce"),n[Qf]=i,n[Ux]=a,n[Wx]=t}return n}}function Sl(r,e){var t=r[e];t&&t[Qf]&&(t.clear&&t.clear(),r[e]=t[Qf])}var Yx=xt(),Zx={itemStyle:ni(E1,!0),lineStyle:ni(R1,!0)},tN={lineStyle:"stroke",itemStyle:"fill"};function Xx(r,e){var t=r.visualStyleMapper||Zx[e];return t||(console.warn("Unknown style type '"+e+"'."),Zx.itemStyle)}function Kx(r,e){var t=r.visualDrawType||tN[e];return t||(console.warn("Unknown style type '"+e+"'."),"fill")}var eN={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=r.getModel(a),i=Xx(r,a),o=i(n),s=n.getShallow("decal");s&&(t.setVisual("decal",s),s.dirty=!0);var l=Kx(r,a),u=o[l],f=$(u)?u:null,h=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||h){var v=r.getColorFromPalette(r.name,null,e.getSeriesCount());o[l]||(o[l]=v,t.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||$(o.fill)?v:o.fill,o.stroke=o.stroke==="auto"||$(o.stroke)?v:o.stroke}if(t.setVisual("style",o),t.setVisual("drawType",l),!e.isSeriesFiltered(r)&&f)return t.setVisual("colorFromPalette",!1),{dataEach:function(c,p){var d=r.getDataParams(p),g=B({},o);g[l]=f(d),c.setItemVisual(p,"style",g)}}}},xl=new Vt,rN={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){if(!(r.ignoreStyleOnData||e.isSeriesFiltered(r))){var t=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=Xx(r,a),i=t.getVisual("drawType");return{dataEach:t.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[a]){xl.option=l[a];var u=n(xl),f=o.ensureUniqueItemVisual(s,"style");B(f,u),xl.option.decal&&(o.setItemVisual(s,"decal",xl.option.decal),xl.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},aN={performRawSeries:!0,overallReset:function(r){var e=q();r.eachSeries(function(t){var a=t.getColorBy();if(!t.isColorBySeries()){var n=t.type+"-"+a,i=e.get(n);i||(i={},e.set(n,i)),Yx(t).scope=i}}),r.eachSeries(function(t){if(!(t.isColorBySeries()||r.isSeriesFiltered(t))){var a=t.getRawData(),n={},i=t.getData(),o=Yx(t).scope,s=t.visualStyleAccessPath||"itemStyle",l=Kx(t,s);i.each(function(u){var f=i.getRawIndex(u);n[f]=u}),a.each(function(u){var f=n[u],h=i.getItemVisual(f,"colorFromPalette");if(h){var v=i.ensureUniqueItemVisual(f,"style"),c=a.getName(u)||u+"",p=a.count();v[l]=t.getColorFromPalette(c,o,p)}})}})}},Jf=Math.PI;function nN(r,e){e=e||{},K(e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var t=new rt,a=new bt({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});t.add(a);var n=new Ct({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),i=new bt({style:{fill:"none"},textContent:n,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});t.add(i);var o;return e.showSpinner&&(o=new ed({shape:{startAngle:-Jf/2,endAngle:-Jf/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Jf*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Jf*3/2}).delay(300).start("circularInOut"),t.add(o)),t.resize=function(){var s=n.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(r.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),f=r.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:f}),i.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),a.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},t.resize(),t}var iN=function(){function r(e,t,a,n){this._stageTaskMap=q(),this.ecInstance=e,this.api=t,a=this._dataProcessorHandlers=a.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=a.concat(n)}return r.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(a){var n=a.overallTask;n&&n.dirty()})},r.prototype.getPerformArgs=function(e,t){if(!!e.__pipeline){var a=this._pipelineMap.get(e.__pipeline.id),n=a.context,i=!t&&a.progressiveEnabled&&(!n||n.progressiveRender)&&e.__idxInPipeline>a.blockIndex,o=i?a.step:null,s=n&&n.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},r.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},r.prototype.updateStreamModes=function(e,t){var a=this._pipelineMap.get(e.uid),n=e.getData(),i=n.count(),o=a.progressiveEnabled&&t.incrementalPrepareRender&&i>=a.threshold,s=e.get("large")&&i>=e.get("largeThreshold"),l=e.get("progressiveChunkMode")==="mod"?i:null;e.pipelineContext=a.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(e){var t=this,a=t._pipelineMap=q();e.eachSeries(function(n){var i=n.getProgressive(),o=n.uid;a.set(o,{id:o,head:null,tail:null,threshold:n.getProgressiveThreshold(),progressiveEnabled:i&&!(n.preventIncremental&&n.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),t._pipe(n,n.dataTask)})},r.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),a=this.api;A(this._allHandlers,function(n){var i=e.get(n.uid)||e.set(n.uid,{}),o="";Pe(!(n.reset&&n.overallReset),o),n.reset&&this._createSeriesStageTask(n,i,t,a),n.overallReset&&this._createOverallStageTask(n,i,t,a)},this)},r.prototype.prepareView=function(e,t,a,n){var i=e.renderTask,o=i.context;o.model=t,o.ecModel=a,o.api=n,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},r.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},r.prototype.performVisualTasks=function(e,t,a){this._performStageTasks(this._visualHandlers,e,t,a)},r.prototype._performStageTasks=function(e,t,a,n){n=n||{};var i=!1,o=this;A(e,function(l,u){if(!(n.visualType&&n.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),h=f.seriesTaskMap,v=f.overallTask;if(v){var c,p=v.agentStubMap;p.each(function(g){s(n,g)&&(g.dirty(),c=!0)}),c&&v.dirty(),o.updatePayload(v,a);var d=o.getPerformArgs(v,n.block);p.each(function(g){g.perform(d)}),v.perform(d)&&(i=!0)}else h&&h.each(function(g,y){s(n,g)&&g.dirty();var m=o.getPerformArgs(g,n.block);m.skip=!l.performRawSeries&&t.isSeriesFiltered(g.context.model),o.updatePayload(g,a),g.perform(m)&&(i=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},r.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(a){t=a.dataTask.perform()||t}),this.unfinished=t||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},r.prototype.updatePayload=function(e,t){t!=="remain"&&(e.context.payload=t)},r.prototype._createSeriesStageTask=function(e,t,a,n){var i=this,o=t.seriesTaskMap,s=t.seriesTaskMap=q(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?a.eachRawSeries(f):l?a.eachRawSeriesByType(l,f):u&&u(a,n).each(f);function f(h){var v=h.uid,c=s.set(v,o&&o.get(v)||hl({plan:fN,reset:hN,count:cN}));c.context={model:h,ecModel:a,api:n,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(h,c)}},r.prototype._createOverallStageTask=function(e,t,a,n){var i=this,o=t.overallTask=t.overallTask||hl({reset:oN});o.context={ecModel:a,api:n,overallReset:e.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=q(),u=e.seriesType,f=e.getTargetSeries,h=!0,v=!1,c="";Pe(!e.createOnAllSeries,c),u?a.eachRawSeriesByType(u,p):f?f(a,n).each(p):(h=!1,A(a.getSeries(),p));function p(d){var g=d.uid,y=l.set(g,s&&s.get(g)||(v=!0,hl({reset:sN,onDirty:uN})));y.context={model:d,overallProgress:h},y.agent=o,y.__block=h,i._pipe(d,y)}v&&o.dirty()},r.prototype._pipe=function(e,t){var a=e.uid,n=this._pipelineMap.get(a);!n.head&&(n.head=t),n.tail&&n.tail.pipe(t),n.tail=t,t.__idxInPipeline=n.count++,t.__pipeline=n},r.wrapStageHandler=function(e,t){return $(e)&&(e={overallReset:e,seriesType:pN(e)}),e.uid=Do("stageHandler"),t&&(e.visualType=t),e},r}();function oN(r){r.overallReset(r.ecModel,r.api,r.payload)}function sN(r){return r.overallProgress&&lN}function lN(){this.agent.dirty(),this.getDownstream().dirty()}function uN(){this.agent&&this.agent.dirty()}function fN(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function hN(r){r.useClearVisual&&r.data.clearAllVisual();var e=r.resetDefines=Ot(r.reset(r.model,r.ecModel,r.api,r.payload));return e.length>1?G(e,function(t,a){return qx(a)}):vN}var vN=qx(0);function qx(r){return function(e,t){var a=t.data,n=t.resetDefines[r];if(n&&n.dataEach)for(var i=e.start;i0&&c===u.length-v.length){var p=u.slice(0,c);p!=="data"&&(t.mainType=p,t[v.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(a[u]=l,f=!0),f||(n[u]=l)})}return{cptQuery:t,dataQuery:a,otherQuery:n}},r.prototype.filter=function(e,t){var a=this.eventInfo;if(!a)return!0;var n=a.targetEl,i=a.packedEvent,o=a.model,s=a.view;if(!o||!s)return!0;var l=t.cptQuery,u=t.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,i,"name")&&f(u,i,"dataIndex")&&f(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,t.otherQuery,n,i));function f(h,v,c,p){return h[c]==null||v[p||c]===h[c]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),ld=["symbol","symbolSize","symbolRotate","symbolOffset"],ab=ld.concat(["symbolKeepAspect"]),mN={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData();if(r.legendIcon&&t.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var a={},n={},i=!1,o=0;o=0&&Ii(l)?l:.5;var u=r.createRadialGradient(o,s,0,o,s,l);return u}function fd(r,e,t){for(var a=e.type==="radial"?kN(r,e,t):EN(r,e,t),n=e.colorStops,i=0;i0)?null:r==="dashed"?[4*e,2*e]:r==="dotted"?[e]:Tt(r)?[r]:z(r)?r:null}function hd(r){var e=r.style,t=e.lineDash&&e.lineWidth>0&&NN(e.lineDash,e.lineWidth),a=e.lineDashOffset;if(t){var n=e.strokeNoScale&&r.getLineScale?r.getLineScale():1;n&&n!==1&&(t=G(t,function(i){return i/n}),a/=n)}return[t,a]}var BN=new oa(!0);function nh(r){var e=r.stroke;return!(e==null||e==="none"||!(r.lineWidth>0))}function ob(r){return typeof r=="string"&&r!=="none"}function ih(r){var e=r.fill;return e!=null&&e!=="none"}function sb(r,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var t=r.globalAlpha;r.globalAlpha=e.fillOpacity*e.opacity,r.fill(),r.globalAlpha=t}else r.fill()}function lb(r,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var t=r.globalAlpha;r.globalAlpha=e.strokeOpacity*e.opacity,r.stroke(),r.globalAlpha=t}else r.stroke()}function vd(r,e,t){var a=Fc(e.image,e.__image,t);if(sf(a)){var n=r.createPattern(a,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&n&&n.setTransform){var i=new DOMMatrix;i.translateSelf(e.x||0,e.y||0),i.rotateSelf(0,0,(e.rotation||0)*Iu),i.scaleSelf(e.scaleX||1,e.scaleY||1),n.setTransform(i)}return n}}function VN(r,e,t,a){var n,i=nh(t),o=ih(t),s=t.strokePercent,l=s<1,u=!e.path;(!e.silent||l)&&u&&e.createPathProxy();var f=e.path||BN,h=e.__dirty;if(!a){var v=t.fill,c=t.stroke,p=o&&!!v.colorStops,d=i&&!!c.colorStops,g=o&&!!v.image,y=i&&!!c.image,m=void 0,_=void 0,S=void 0,b=void 0,x=void 0;(p||d)&&(x=e.getBoundingRect()),p&&(m=h?fd(r,v,x):e.__canvasFillGradient,e.__canvasFillGradient=m),d&&(_=h?fd(r,c,x):e.__canvasStrokeGradient,e.__canvasStrokeGradient=_),g&&(S=h||!e.__canvasFillPattern?vd(r,v,e):e.__canvasFillPattern,e.__canvasFillPattern=S),y&&(b=h||!e.__canvasStrokePattern?vd(r,c,e):e.__canvasStrokePattern,e.__canvasStrokePattern=S),p?r.fillStyle=m:g&&(S?r.fillStyle=S:o=!1),d?r.strokeStyle=_:y&&(b?r.strokeStyle=b:i=!1)}var w=e.getGlobalScale();f.setScale(w[0],w[1],e.segmentIgnoreThreshold);var T,C;r.setLineDash&&t.lineDash&&(n=hd(e),T=n[0],C=n[1]);var M=!0;(u||h&co)&&(f.setDPR(r.dpr),l?f.setContext(null):(f.setContext(r),M=!1),f.reset(),e.buildPath(f,e.shape,a),f.toStatic(),e.pathUpdated()),M&&f.rebuildPath(r,l?s:1),T&&(r.setLineDash(T),r.lineDashOffset=C),a||(t.strokeFirst?(i&&lb(r,t),o&&sb(r,t)):(o&&sb(r,t),i&&lb(r,t))),T&&r.setLineDash([])}function zN(r,e,t){var a=e.__image=Fc(t.image,e.__image,e,e.onload);if(!(!a||!sf(a))){var n=t.x||0,i=t.y||0,o=e.getWidth(),s=e.getHeight(),l=a.width/a.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=a.width,s=a.height),t.sWidth&&t.sHeight){var u=t.sx||0,f=t.sy||0;r.drawImage(a,u,f,t.sWidth,t.sHeight,n,i,o,s)}else if(t.sx&&t.sy){var u=t.sx,f=t.sy,h=o-u,v=s-f;r.drawImage(a,u,f,h,v,n,i,o,s)}else r.drawImage(a,n,i,o,s)}}function GN(r,e,t){var a,n=t.text;if(n!=null&&(n+=""),n){r.font=t.font||Ie,r.textAlign=t.textAlign,r.textBaseline=t.textBaseline;var i=void 0,o=void 0;r.setLineDash&&t.lineDash&&(a=hd(e),i=a[0],o=a[1]),i&&(r.setLineDash(i),r.lineDashOffset=o),t.strokeFirst?(nh(t)&&r.strokeText(n,t.x,t.y),ih(t)&&r.fillText(n,t.x,t.y)):(ih(t)&&r.fillText(n,t.x,t.y),nh(t)&&r.strokeText(n,t.x,t.y)),i&&r.setLineDash([])}}var ub=["shadowBlur","shadowOffsetX","shadowOffsetY"],fb=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function hb(r,e,t,a,n){var i=!1;if(!a&&(t=t||{},e===t))return!1;if(a||e.opacity!==t.opacity){Ke(r,n),i=!0;var o=Math.max(Math.min(e.opacity,1),0);r.globalAlpha=isNaN(o)?ii.opacity:o}(a||e.blend!==t.blend)&&(i||(Ke(r,n),i=!0),r.globalCompositeOperation=e.blend||ii.blend);for(var s=0;s0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,a,n){if(!this[De]){if(this._disposed){rr(this.id);return}var i,o,s;if(et(a)&&(n=a.lazyUpdate,i=a.silent,o=a.replaceMerge,s=a.transition,a=a.notMerge),this[De]=!0,!this._model||a){var l=new dk(this._api),u=this._theme,f=this._model=new dS;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(t,{replaceMerge:o},Td);var h={seriesTransition:s,optionChanged:!0};if(n)this[qe]={silent:i,updateParams:h},this[De]=!1,this.getZr().wakeUp();else{try{Ko(this),mn.update.call(this,null,h)}catch(v){throw this[qe]=null,this[De]=!1,v}this._ssr||this._zr.flush(),this[qe]=null,this[De]=!1,Al.call(this,i),Ml.call(this,i)}}},e.prototype.setTheme=function(){zS("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||St.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var a=this._zr.painter;return a.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var a=this._zr.painter;return a.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(!!St.svgSupported){var t=this._zr,a=t.storage.getDisplayList();return A(a,function(n){n.stopAnimation(null,!0)}),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(this._disposed){rr(this.id);return}t=t||{};var a=t.excludeComponents,n=this._model,i=[],o=this;A(a,function(l){n.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(i.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return A(i,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(t){if(this._disposed){rr(this.id);return}var a=t.type==="svg",n=this.group,i=Math.min,o=Math.max,s=Infinity;if(vh[n]){var l=s,u=s,f=-s,h=-s,v=[],c=t&&t.pixelRatio||this.getDevicePixelRatio();A(Ri,function(_,S){if(_.group===n){var b=a?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(tt(t)),x=_.getDom().getBoundingClientRect();l=i(x.left,l),u=i(x.top,u),f=o(x.right,f),h=o(x.bottom,h),v.push({dom:b,left:x.left,top:x.top})}}),l*=c,u*=c,f*=c,h*=c;var p=f-l,d=h-u,g=jt.createCanvas(),y=n_(g,{renderer:a?"svg":"canvas"});if(y.resize({width:p,height:d}),a){var m="";return A(v,function(_){var S=_.left-l,b=_.top-u;m+=''+_.dom+""}),y.painter.getSvgRoot().innerHTML=m,t.connectedBackgroundColor&&y.painter.setBackgroundColor(t.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return t.connectedBackgroundColor&&y.add(new bt({shape:{x:0,y:0,width:p,height:d},style:{fill:t.connectedBackgroundColor}})),A(v,function(_){var S=new _e({style:{x:_.left*c-l,y:_.top*c-u,image:_.dom}});y.add(S)}),y.refreshImmediately(),g.toDataURL("image/"+(t&&t.type||"png"))}else return this.getDataURL(t)},e.prototype.convertToPixel=function(t,a){return md(this,"convertToPixel",t,a)},e.prototype.convertFromPixel=function(t,a){return md(this,"convertFromPixel",t,a)},e.prototype.containPixel=function(t,a){if(this._disposed){rr(this.id);return}var n=this._model,i,o=Us(n,t);return A(o,function(s,l){l.indexOf("Models")>=0&&A(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)i=i||!!f.containPoint(a);else if(l==="seriesModels"){var h=this._chartsMap[u.__viewId];h&&h.containPoint&&(i=i||h.containPoint(a,u))}},this)},this),!!i},e.prototype.getVisual=function(t,a){var n=this._model,i=Us(n,t,{defaultMainType:"series"}),o=i.seriesModel,s=o.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return l!=null?ud(s,l,a):wl(s,a)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;A(vB,function(a){var n=function(i){var o=t.getModel(),s=i.target,l,u=a==="globalout";if(u?l={}:s&&Li(s,function(p){var d=nt(p);if(d&&d.dataIndex!=null){var g=d.dataModel||o.getSeriesByIndex(d.seriesIndex);return l=g&&g.getDataParams(d.dataIndex,d.dataType)||{},!0}else if(d.eventData)return l=B({},d.eventData),!0},!0),l){var f=l.componentType,h=l.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",h=l.seriesIndex);var v=f&&h!=null&&o.getComponent(f,h),c=v&&t[v.mainType==="series"?"_chartsMap":"_componentsMap"][v.__viewId];l.event=i,l.type=a,t._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:v,view:c},t.trigger(a,l)}};n.zrEventfulCallAtLast=!0,t._zr.on(a,n,t)}),A(Dl,function(a,n){t._messageCenter.on(n,function(i){this.trigger(n,i)},t)}),A(["selectchanged"],function(a){t._messageCenter.on(a,function(n){this.trigger(a,n)},t)}),SN(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){rr(this.id);return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){rr(this.id);return}this._disposed=!0;var t=this.getDom();t&&w_(this.getDom(),Ad,"");var a=this,n=a._api,i=a._model;A(a._componentsViews,function(o){o.dispose(i,n)}),A(a._chartsViews,function(o){o.dispose(i,n)}),a._zr.dispose(),a._dom=a._model=a._chartsMap=a._componentsMap=a._chartsViews=a._componentsViews=a._scheduler=a._api=a._zr=a._throttledZrFlush=a._theme=a._coordSysMgr=a._messageCenter=null,delete Ri[a.id]},e.prototype.resize=function(t){if(!this[De]){if(this._disposed){rr(this.id);return}this._zr.resize(t);var a=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!a){var n=a.resetOption("media"),i=t&&t.silent;this[qe]&&(i==null&&(i=this[qe].silent),n=!0,this[qe]=null),this[De]=!0;try{n&&Ko(this),mn.update.call(this,{type:"resize",animation:B({duration:0},t&&t.animation)})}catch(o){throw this[De]=!1,o}this[De]=!1,Al.call(this,i),Ml.call(this,i)}}},e.prototype.showLoading=function(t,a){if(this._disposed){rr(this.id);return}if(et(t)&&(a=t,t=""),t=t||"default",this.hideLoading(),!!Cd[t]){var n=Cd[t](this._api,a),i=this._zr;this._loadingFX=n,i.add(n)}},e.prototype.hideLoading=function(){if(this._disposed){rr(this.id);return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(t){var a=B({},t);return a.type=Dl[t.type],a},e.prototype.dispatchAction=function(t,a){if(this._disposed){rr(this.id);return}if(et(a)||(a={silent:!!a}),!!fh[t.type]&&!!this._model){if(this[De]){this._pendingActions.push(t);return}var n=a.silent;Sd.call(this,t,n);var i=a.flush;i?this._zr.flush():i!==!1&&St.browser.weChat&&this._throttledZrFlush(),Al.call(this,n),Ml.call(this,n)}},e.prototype.updateLabelLayout=function(){Fr.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed){rr(this.id);return}var a=t.seriesIndex,n=this.getModel(),i=n.getSeriesByIndex(a);i.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=function(){Ko=function(h){var v=h._scheduler;v.restorePipelines(h._model),v.prepareStageTasks(),yd(h,!0),yd(h,!1),v.plan()},yd=function(h,v){for(var c=h._model,p=h._scheduler,d=v?h._componentsViews:h._chartsViews,g=v?h._componentsMap:h._chartsMap,y=h._zr,m=h._api,_=0;_v.get("hoverLayerThreshold")&&!St.node&&!St.worker&&v.eachSeries(function(g){if(!g.preventUsingHoverLayer){var y=h._chartsMap[g.__viewId];y.__alive&&y.eachRendered(function(m){m.states.emphasis&&(m.states.emphasis.hoverLayer=!0)})}})}function o(h,v){var c=h.get("blendMode")||null;v.eachRendered(function(p){p.isGroup||(p.style.blend=c)})}function s(h,v){if(!h.preventAutoZ){var c=h.get("z")||0,p=h.get("zlevel")||0;v.eachRendered(function(d){return l(d,c,p,-Infinity),!0})}}function l(h,v,c,p){var d=h.getTextContent(),g=h.getTextGuideLine(),y=h.isGroup;if(y)for(var m=h.childrenRef(),_=0;_0?{duration:d,delay:c.get("delay"),easing:c.get("easing")}:null;v.eachRendered(function(y){if(y.states&&y.states.emphasis){if(Ao(y))return;if(y instanceof pt&&SE(y),y.__dirty){var m=y.prevStates;m&&y.useStates(m)}if(p){y.stateTransition=g;var _=y.getTextContent(),S=y.getTextGuideLine();_&&(_.stateTransition=g),S&&(S.stateTransition=g)}y.__dirty&&n(y)}})}Vb=function(h){return new(function(v){k(c,v);function c(){return v!==null&&v.apply(this,arguments)||this}return c.prototype.getCoordinateSystems=function(){return h._coordSysMgr.getCoordinateSystems()},c.prototype.getComponentByElement=function(p){for(;p;){var d=p.__ecComponentInfo;if(d!=null)return h._model.getComponent(d.mainType,d.index);p=p.parent}},c.prototype.enterEmphasis=function(p,d){Ea(p,d),br(h)},c.prototype.leaveEmphasis=function(p,d){ka(p,d),br(h)},c.prototype.enterBlur=function(p){p1(p),br(h)},c.prototype.leaveBlur=function(p){sp(p),br(h)},c.prototype.enterSelect=function(p){d1(p),br(h)},c.prototype.leaveSelect=function(p){g1(p),br(h)},c.prototype.getModel=function(){return h.getModel()},c.prototype.getViewOfComponentModel=function(p){return h.getViewOfComponentModel(p)},c.prototype.getViewOfSeriesModel=function(p){return h.getViewOfSeriesModel(p)},c}(gS))(h)},zb=function(h){function v(c,p){for(var d=0;d=0)){Zb.push(t);var i=Qx.wrapStageHandler(t,n);i.__prio=e,i.__raw=t,r.push(i)}}function Xb(r,e){Cd[r]=e}function Rq(r){setPlatformAPI({createCanvas:r})}function SB(r,e,t){var a=$N("registerMap");a&&a(r,e,t)}function Eq(r){var e=getImpl("getMap");return e&&e(r)}var xB=Zk;Ei(pd,eN),Ei(oh,rN),Ei(oh,aN),Ei(pd,mN),Ei(oh,_N),Ei(Mb,KN),Ub(wS),Yb(tB,wk),Xb("default",nN),ha({type:ci,event:ci,update:ci},$t),ha({type:df,event:df,update:df},$t),ha({type:$s,event:$s,update:$s},$t),ha({type:gf,event:gf,update:gf},$t),ha({type:Qs,event:Qs,update:Qs},$t),Wb("light",dN),Wb("dark",gN);var kq={},Kb=[],bB={registerPreprocessor:Ub,registerProcessor:Yb,registerPostInit:gB,registerPostUpdate:yB,registerUpdateLifecycle:Md,registerAction:ha,registerCoordinateSystem:mB,registerLayout:_B,registerVisual:Ei,registerTransform:xB,registerLoading:Xb,registerMap:SB,registerImpl:jN,PRIORITY:uB,ComponentModel:At,ComponentView:Zt,SeriesModel:Wt,ChartView:zt,registerComponentModel:function(r){At.registerClass(r)},registerComponentView:function(r){Zt.registerClass(r)},registerSeriesModel:function(r){Wt.registerClass(r)},registerChartView:function(r){zt.registerClass(r)},registerSubTypeDefaulter:function(r,e){At.registerSubTypeDefaulter(r,e)},registerPainter:function(r,e){G2(r,e)}};function ct(r){if(z(r)){A(r,function(e){ct(e)});return}st(Kb,r)>=0||(Kb.push(r),$(r)&&(r={install:r}),r.install(bB))}var Ll=Math.PI*2,ki=oa.CMD,wB=["top","right","bottom","left"];function TB(r,e,t,a,n){var i=t.width,o=t.height;switch(r){case"top":a.set(t.x+i/2,t.y-e),n.set(0,-1);break;case"bottom":a.set(t.x+i/2,t.y+o+e),n.set(0,1);break;case"left":a.set(t.x-e,t.y+o/2),n.set(-1,0);break;case"right":a.set(t.x+i+e,t.y+o/2),n.set(1,0);break}}function CB(r,e,t,a,n,i,o,s,l){o-=r,s-=e;var u=Math.sqrt(o*o+s*s);o/=u,s/=u;var f=o*t+r,h=s*t+e;if(Math.abs(a-n)%Ll<1e-4)return l[0]=f,l[1]=h,u-t;if(i){var v=a;a=Ia(n),n=Ia(v)}else a=Ia(a),n=Ia(n);a>n&&(n+=Ll);var c=Math.atan2(s,o);if(c<0&&(c+=Ll),c>=a&&c<=n||c+Ll>=a&&c+Ll<=n)return l[0]=f,l[1]=h,u-t;var p=t*Math.cos(a)+r,d=t*Math.sin(a)+e,g=t*Math.cos(n)+r,y=t*Math.sin(n)+e,m=(p-o)*(p-o)+(d-s)*(d-s),_=(g-o)*(g-o)+(y-s)*(y-s);return m<_?(l[0]=p,l[1]=d,Math.sqrt(m)):(l[0]=g,l[1]=y,Math.sqrt(_))}function ch(r,e,t,a,n,i,o,s){var l=n-r,u=i-e,f=t-r,h=a-e,v=Math.sqrt(f*f+h*h);f/=v,h/=v;var c=l*f+u*h,p=c/v;s&&(p=Math.min(Math.max(p,0),1)),p*=v;var d=o[0]=r+p*f,g=o[1]=e+p*h;return Math.sqrt((d-n)*(d-n)+(g-i)*(g-i))}function qb(r,e,t,a,n,i,o){t<0&&(r=r+t,t=-t),a<0&&(e=e+a,a=-a);var s=r+t,l=e+a,u=o[0]=Math.min(Math.max(n,r),s),f=o[1]=Math.min(Math.max(i,e),l);return Math.sqrt((u-n)*(u-n)+(f-i)*(f-i))}var Hr=[];function AB(r,e,t){var a=qb(e.x,e.y,e.width,e.height,r.x,r.y,Hr);return t.set(Hr[0],Hr[1]),a}function MB(r,e,t){for(var a=0,n=0,i=0,o=0,s,l,u=Infinity,f=e.data,h=r.x,v=r.y,c=0;c0){e=e/180*Math.PI,Wr.fromArray(r[0]),Gt.fromArray(r[1]),Qt.fromArray(r[2]),lt.sub(va,Wr,Gt),lt.sub(ca,Qt,Gt);var t=va.len(),a=ca.len();if(!(t<.001||a<.001)){va.scale(1/t),ca.scale(1/a);var n=va.dot(ca),i=Math.cos(e);if(i1&<.copy(Ne,Qt),Ne.toArray(r[1])}}}}function DB(r,e,t){if(t<=180&&t>0){t=t/180*Math.PI,Wr.fromArray(r[0]),Gt.fromArray(r[1]),Qt.fromArray(r[2]),lt.sub(va,Gt,Wr),lt.sub(ca,Qt,Gt);var a=va.len(),n=ca.len();if(!(a<.001||n<.001)){va.scale(1/a),ca.scale(1/n);var i=va.dot(e),o=Math.cos(t);if(i=l)lt.copy(Ne,Qt);else{Ne.scaleAndAdd(ca,s/Math.tan(Math.PI/2-f));var h=Qt.x!==Gt.x?(Ne.x-Gt.x)/(Qt.x-Gt.x):(Ne.y-Gt.y)/(Qt.y-Gt.y);if(isNaN(h))return;h<0?lt.copy(Ne,Gt):h>1&<.copy(Ne,Qt)}Ne.toArray(r[1])}}}}function Qb(r,e,t,a){var n=t==="normal",i=n?r:r.ensureState(t);i.ignore=e;var o=a.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=a.getModel("lineStyle").getLineStyle();n?r.useStyle(s):i.style=s}function LB(r,e){var t=e.smooth,a=e.points;if(!!a)if(r.moveTo(a[0][0],a[0][1]),t>0&&a.length>=3){var n=Ja(a[0],a[1]),i=Ja(a[1],a[2]);if(!n||!i){r.lineTo(a[1][0],a[1][1]),r.lineTo(a[2][0],a[2][1]);return}var o=Math.min(n,i)*t,s=Eu([],a[1],a[0],o/n),l=Eu([],a[1],a[2],o/i),u=Eu([],s,l,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),r.bezierCurveTo(l[0],l[1],l[0],l[1],a[2][0],a[2][1])}else for(var f=1;f0&&i&&x(-h/o,0,o);var g=r[0],y=r[o-1],m,_;S(),m<0&&w(-m,.8),_<0&&w(_,.8),S(),b(m,_,1),b(_,m,-1),S(),m<0&&T(-m),_<0&&T(_);function S(){m=g.rect[e]-a,_=n-y.rect[e]-y.rect[t]}function b(C,M,D){if(C<0){var L=Math.min(M,-C);if(L>0){x(L*D,0,o);var I=L+C;I<0&&w(-I*D,1)}else w(-C*D,1)}}function x(C,M,D){C!==0&&(u=!0);for(var L=M;L0)for(var I=0;I0;I--){var N=D[I-1]*E;x(-N,I,o)}}}function T(C){var M=C<0?-1:1;C=Math.abs(C);for(var D=Math.ceil(C/(o-1)),L=0;L0?x(D,0,L+1):x(-D,o-L-1,o),C-=D,C<=0)return}return u}function IB(r,e,t,a){return tw(r,"x","width",e,t,a)}function ew(r,e,t,a){return tw(r,"y","height",e,t,a)}function rw(r){var e=[];r.sort(function(d,g){return g.priority-d.priority});var t=new ht(0,0,0,0);function a(d){if(!d.ignore){var g=d.ensureState("emphasis");g.ignore==null&&(g.ignore=!1)}d.ignore=!0}for(var n=0;n=0&&a.attr(i.oldLayoutSelect),st(v,"emphasis")>=0&&a.attr(i.oldLayoutEmphasis)),Mt(a,u,t,l)}else if(a.attr(u),!Mo(a).valueAnimation){var h=ft(a.style.opacity,1);a.style.opacity=0,Ht(a,{style:{opacity:h}},t,l)}if(i.oldLayout=u,a.states.select){var c=i.oldLayoutSelect={};dh(c,u,gh),dh(c,a.states.select,gh)}if(a.states.emphasis){var p=i.oldLayoutEmphasis={};dh(p,u,gh),dh(p,a.states.emphasis,gh)}P1(a,l,f,t,t)}if(n&&!n.ignore&&!n.invisible){var i=EB(n),o=i.oldLayout,d={points:n.shape.points};o?(n.attr({shape:o}),Mt(n,{shape:d},t)):(n.setShape(d),n.style.strokePercent=0,Ht(n,{style:{strokePercent:1}},t)),i.oldLayout=d}},r}(),OB=kB,Rd=xt();function nw(r){r.registerUpdateLifecycle("series:beforeupdate",function(e,t,a){var n=Rd(t).labelManager;n||(n=Rd(t).labelManager=new OB),n.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(e,t,a){var n=Rd(t).labelManager;a.updatedSeries.forEach(function(i){n.addLabelsOfSeries(t.getViewOfSeriesModel(i))}),n.updateLayoutConfig(t),n.layout(t),n.processLabelsOverall()})}ct(nw);function iw(r,e,t){var a=jt.createCanvas(),n=e.getWidth(),i=e.getHeight(),o=a.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=n+"px",o.height=i+"px",a.setAttribute("data-zr-dom-id",r)),a.width=n*t,a.height=i*t,a}var NB=function(r){Ft(e,r);function e(t,a,n){var i=r.call(this)||this;i.motionBlur=!1,i.lastFrameAlpha=.7,i.dpr=1,i.virtual=!1,i.config={},i.incremental=!1,i.zlevel=0,i.maxRepaintRectCount=5,i.__dirty=!0,i.__firstTimePaint=!0,i.__used=!1,i.__drawIndex=0,i.__startIndex=0,i.__endIndex=0,i.__prevStartIndex=null,i.__prevEndIndex=null;var o;n=n||tf,typeof t=="string"?o=iw(t,a,n):et(t)&&(o=t,t=o.id),i.id=t,i.dom=o;var s=o.style;return s&&(Jm(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),i.painter=a,i.dpr=n,i}return e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=iw("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),t!==1&&this.ctxBack.scale(t,t)},e.prototype.createRepaintRects=function(t,a,n,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new ht(0,0,0,0);function f(m){if(!(!m.isFinite()||m.isZero()))if(o.length===0){var _=new ht(0,0,0,0);_.copy(m),o.push(_)}else{for(var S=!1,b=Infinity,x=0,w=0;w=s)}}for(var h=this.__startIndex;h15)break}}P.prevElClipPaths&&y.restore()};if(m)if(m.length===0)T=g.__endIndex;else for(var M=c.dpr,D=0;D0&&e>n[0]){for(l=0;le);l++);s=a[n[l]]}if(n.splice(l+1,0,e),a[e]=t,!t.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(t.dom,u.nextSibling):o.appendChild(t.dom)}else o.firstChild?o.insertBefore(t.dom,o.firstChild):o.appendChild(t.dom);t.__painter=this}},r.prototype.eachLayer=function(e,t){for(var a=this._zlevelList,n=0;n0?yh:0),this._needsManuallyCompositing),f.__builtin__||uo("ZLevel "+u+" has been used by unkown layer "+f.id),f!==i&&(f.__used=!0,f.__startIndex!==l&&(f.__dirty=!0),f.__startIndex=l,f.incremental?f.__drawIndex=-1:f.__drawIndex=l,t(l),i=f),n.__dirty&tr&&!n.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=l))}t(l),this.eachBuiltinLayer(function(h,v){!h.__used&&h.getElementCount()>0&&(h.__dirty=!0,h.__startIndex=h.__endIndex=h.__drawIndex=0),h.__dirty&&h.__drawIndex<0&&(h.__drawIndex=h.__startIndex)})},r.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},r.prototype._clearLayer=function(e){e.clear()},r.prototype.setBackgroundColor=function(e){this._backgroundColor=e,A(this._layers,function(t){t.setUnpainted()})},r.prototype.configLayer=function(e,t){if(t){var a=this._layerConfig;a[e]?ot(a[e],t,!0):a[e]=t;for(var n=0;n=Ni:-u>=Ni),c=u>0?u%Ni:u%Ni+Ni,p=!1;v?p=!0:sn(h)?p=!1:p=c>=sw==!!f;var d=e+a*Od(o),g=t+n*kd(o);this._start&&this._add("M",d,g);var y=Math.round(i*WB);if(v){var m=1/this._p,_=(f?1:-1)*(Ni-m);this._add("A",a,n,y,1,+f,e+a*Od(o+_),t+n*kd(o+_)),m>.01&&this._add("A",a,n,y,0,+f,d,g)}else{var S=e+a*Od(s),b=t+n*kd(s);this._add("A",a,n,y,+p,+f,S,b)}},r.prototype.rect=function(e,t,a,n){this._add("M",e,t),this._add("l",a,0),this._add("l",0,n),this._add("l",-a,0),this._add("Z")},r.prototype.closePath=function(){this._d.length>0&&this._add("Z")},r.prototype._add=function(e,t,a,n,i,o,s,l,u){for(var f=[],h=this._p,v=1;v"}function JB(r){return""}function Bd(r,e){e=e||{};var t=e.newline?` +`:"";function a(n){var i=n.children,o=n.tag,s=n.attrs,l=n.text;return QB(o,s)+(o!=="style"?Ge(l):l||"")+(i?""+t+G(i,function(u){return a(u)}).join(t)+t:"")+JB(o)}return a(r)}function tV(r,e,t){t=t||{};var a=t.newline?` +`:"",n=" {"+a,i=a+"}",o=G(_t(r),function(l){return l+n+G(_t(r[l]),function(u){return u+":"+r[l][u]+";"}).join(a)+i}).join(a),s=G(_t(e),function(l){return"@keyframes "+l+n+G(_t(e[l]),function(u){return u+n+G(_t(e[l][u]),function(f){var h=e[l][u][f];return f==="d"&&(h='path("'+h+'")'),f+":"+h+";"}).join(a)+i}).join(a)+i}).join(a);return!o&&!s?"":[""].join(a)}function Vd(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function vw(r,e,t,a){return he("svg","root",{width:r,height:e,xmlns:uw,"xmlns:xlink":fw,version:"1.1",baseProfile:"full",viewBox:a?"0 0 "+r+" "+e:!1},t)}var cw={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},Bi="transform-origin";function eV(r,e,t){var a=B({},r.shape);B(a,e),r.buildPath(t,a);var n=new lw;return n.reset(z0(r)),t.rebuildPath(n,1),n.generateStr(),n.getStr()}function rV(r,e){var t=e.originX,a=e.originY;(t||a)&&(r[Bi]=t+"px "+a+"px")}var aV={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function pw(r,e){var t=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[t]=r,t}function nV(r,e,t){var a=r.shape.paths,n={},i,o;if(A(a,function(l){var u=Vd(t.zrId);u.animation=!0,mh(l,{},u,!0);var f=u.cssAnims,h=u.cssNodes,v=_t(f),c=v.length;if(!!c){o=v[c-1];var p=f[o];for(var d in p){var g=p[d];n[d]=n[d]||{d:""},n[d].d+=g.d||""}for(var y in h){var m=h[y].animation;m.indexOf(o)>=0&&(i=m)}}}),!!i){e.d=!1;var s=pw(n,t);return i.replace(o,s)}}function dw(r){return U(r)?cw[r]?"cubic-bezier("+cw[r]+")":nc(r)?r:"":""}function mh(r,e,t,a){var n=r.animators,i=n.length,o=[];if(r instanceof rd){var s=nV(r,e,t);if(s)o.push(s);else if(!i)return}else if(!i)return;for(var l={},u=0;u0}).length){var gt=pw(w,t);return gt+" "+m[0]+" both"}}for(var g in l){var s=d(l[g]);s&&o.push(s)}if(o.length){var y=t.zrId+"-cls-"+t.cssClassIdx++;t.cssNodes["."+y]={animation:o.join(",")},e.class=y}}var Pl=Math.round;function gw(r){return r&&U(r.src)}function yw(r){return r&&$(r.toDataURL)}function zd(r,e,t,a){qB(function(n,i){var o=n==="fill"||n==="stroke";o&&V0(i)?ww(e,r,n,a):o&&vc(i)?Tw(t,r,n,a):r[n]=i},e,t,!1),hV(t,r,a)}function mw(r){return sn(r[0]-1)&&sn(r[1])&&sn(r[2])&&sn(r[3]-1)}function iV(r){return sn(r[4])&&sn(r[5])}function Gd(r,e,t){if(e&&!(iV(e)&&mw(e))){var a=t?10:1e4;r.transform=mw(e)?"translate("+Pl(e[4]*a)/a+" "+Pl(e[5]*a)/a+")":o2(e)}}function _w(r,e,t){for(var a=r.points,n=[],i=0;ii?(p=t[l+1]==null?null:t[l+1].elm,Pw(r,p,t,n,l)):_h(r,e,a,i))}function qo(r,e){var t=e.elm=r.elm,a=r.children,n=e.children;r!==e&&(Wd(r,e),Hd(e.text)?pa(a)&&pa(n)?a!==n&&gV(t,a,n):pa(n)?(pa(r.text)&&Fd(t,""),Pw(t,null,n,0,n.length-1)):pa(a)?_h(t,a,0,a.length-1):pa(r.text)&&Fd(t,""):r.text!==e.text&&(pa(a)&&_h(t,a,0,a.length-1),Fd(t,e.text)))}function yV(r,e){if(Rl(r,e))qo(r,e);else{var t=r.elm,a=Dw(t);El(e),a!==null&&(Vi(a,e.elm,Lw(t)),_h(a,[r],0,0))}return e}var mV=0,_V=function(){function r(e,t,a){if(this.type="svg",this.refreshHover=Rw("refreshHover"),this.configLayer=Rw("configLayer"),this.storage=t,this._opts=a=B({},a),this.root=e,this._id="zr"+mV++,this._oldVNode=vw(a.width,a.height),e&&!a.ssr){var n=this._viewport=document.createElement("div");n.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=hw("svg");Wd(null,this._oldVNode),n.appendChild(i),e.appendChild(n)}this.resize(a.width,a.height)}return r.prototype.getType=function(){return this.type},r.prototype.getViewportRoot=function(){return this._viewport},r.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},r.prototype.getSvgDom=function(){return this._svgDom},r.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",yV(this._oldVNode,e),this._oldVNode=e}},r.prototype.renderOneToVNode=function(e){return bw(e,Vd(this._id))},r.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),a=this._width,n=this._height,i=Vd(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress;var o=[],s=this._bgVNode=SV(a,n,this._backgroundColor,i);s&&o.push(s);var l=e.compress?null:this._mainVNode=he("g","main",{},[]);this._paintList(t,i,l?l.children:o),l&&o.push(l);var u=G(_t(i.defs),function(v){return i.defs[v]});if(u.length&&o.push(he("defs","defs",{},u)),e.animation){var f=tV(i.cssNodes,i.cssAnims,{newline:!0});if(f){var h=he("style","stl",{},[],f);o.push(h)}}return vw(a,n,o,e.useViewBox)},r.prototype.renderToString=function(e){return e=e||{},Bd(this.renderToVNode({animation:ft(e.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:ft(e.useViewBox,!0)}),{newline:!0})},r.prototype.setBackgroundColor=function(e){this._backgroundColor=e},r.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},r.prototype._paintList=function(e,t,a){for(var n=e.length,i=[],o=0,s,l,u=0,f=0;f=0&&!(v&&l&&v[d]===l[d]);d--);for(var g=p-1;g>d;g--)o--,s=i[o-1];for(var y=d+1;y1){var f=l.shift();l.length===1&&(a[s]=l[0]),this._update&&this._update(f,o)}else u===1?(a[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,a)},r.prototype._executeMultiple=function(){var e=this._old,t=this._new,a={},n={},i=[],o=[];this._initIndexMap(e,a,i,"_oldKeyGetter"),this._initIndexMap(t,n,o,"_newKeyGetter");for(var s=0;s1&&v===1)this._updateManyToOne&&this._updateManyToOne(f,u),n[l]=null;else if(h===1&&v>1)this._updateOneToMany&&this._updateOneToMany(f,u),n[l]=null;else if(h===1&&v===1)this._update&&this._update(f,u),n[l]=null;else if(h>1&&v>1)this._updateManyToMany&&this._updateManyToMany(f,u),n[l]=null;else if(h>1)for(var c=0;c1)for(var s=0;s30}var Ol=et,_n=G,IV=typeof Int32Array=="undefined"?Array:Int32Array,PV="e\0\0",zw=-1,RV=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],EV=["_approximateExtent"],Gw,bh,Nl,Bl,Yd,wh,Zd,kV=function(){function r(e,t){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var a,n=!1;Ow(e)?(a=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(n=!0,a=e),a=a||["x","y"];for(var i={},o=[],s={},l=!1,u={},f=0;f=t)){var a=this._store,n=a.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=n.getSource().sourceFormat,l=s===mr;if(l&&!n.pure)for(var u=[],f=e;f0},r.prototype.ensureUniqueItemVisual=function(e,t){var a=this._itemVisuals,n=a[e];n||(n=a[e]={});var i=n[t];return i==null&&(i=this.getVisual(t),z(i)?i=i.slice():Ol(i)&&(i=B({},i)),n[t]=i),i},r.prototype.setItemVisual=function(e,t,a){var n=this._itemVisuals[e]||{};this._itemVisuals[e]=n,Ol(t)?B(n,t):n[t]=a},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(e,t){Ol(e)?B(this._layout,e):this._layout[e]=t},r.prototype.getLayout=function(e){return this._layout[e]},r.prototype.getItemLayout=function(e){return this._itemLayouts[e]},r.prototype.setItemLayout=function(e,t,a){this._itemLayouts[e]=a?B(this._itemLayouts[e]||{},t):t},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(e,t){var a=this.hostModel&&this.hostModel.seriesIndex;rp(a,this.dataType,e,t),this._graphicEls[e]=t},r.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},r.prototype.eachItemGraphicEl=function(e,t){A(this._graphicEls,function(a,n){a&&e&&e.call(t,a,n)})},r.prototype.cloneShallow=function(e){return e||(e=new r(this._schema?this._schema:_n(this.dimensions,this._getDimInfo,this),this.hostModel)),Yd(e,this),e._store=this._store,e},r.prototype.wrapMethod=function(e,t){var a=this[e];!$(a)||(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var n=a.apply(this,arguments);return t.apply(this,[n].concat(Nv(arguments)))})},r.internalField=function(){Gw=function(e){var t=e._invertedIndicesMap;A(t,function(a,n){var i=e._dimInfos[n],o=i.ordinalMeta,s=e._store;if(o){a=t[n]=new IV(o.categories.length);for(var l=0;l1&&(l+="__ec__"+f),n[t]=l}}}(),r}(),Be=kV;function Fq(r,e){return jo(r,e).dimensions}function jo(r,e){Op(r)||(r=Bp(r)),e=e||{};var t=e.coordDimensions||[],a=e.dimensionsDefine||r.dimensionsDefine||[],n=q(),i=[],o=NV(r,t,a,e.dimensionsCount),s=e.canOmitUnusedDimensions&&Vw(o),l=a===r.dimensionsDefine,u=l?Bw(r):Nw(a),f=e.encodeDefine;!f&&e.encodeDefaulter&&(f=e.encodeDefaulter(r,o));for(var h=q(f),v=new US(o),c=0;c0&&(a.name=n+(i-1)),i++,e.set(n,i)}}function NV(r,e,t,a){var n=Math.max(r.dimensionsDetectedCount||1,e.length,t.length,a||0);return A(e,function(i){var o;et(i)&&(o=i.dimsDef)&&(n=Math.max(n,o.length))}),n}function BV(r,e,t){if(t||e.hasKey(r)){for(var a=0;e.hasKey(r+a);)a++;r+=a}return e.set(r,!0),r}var VV=function(){function r(e){this.coordSysDims=[],this.axisMap=q(),this.categoryAxisMap=q(),this.coordSysName=e}return r}();function zV(r){var e=r.get("coordinateSystem"),t=new VV(e),a=GV[e];if(a)return a(r,t,t.axisMap,t.categoryAxisMap),t}var GV={cartesian2d:function(r,e,t,a){var n=r.getReferringComponents("xAxis",te).models[0],i=r.getReferringComponents("yAxis",te).models[0];e.coordSysDims=["x","y"],t.set("x",n),t.set("y",i),$o(n)&&(a.set("x",n),e.firstCategoryDimIndex=0),$o(i)&&(a.set("y",i),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(r,e,t,a){var n=r.getReferringComponents("singleAxis",te).models[0];e.coordSysDims=["single"],t.set("single",n),$o(n)&&(a.set("single",n),e.firstCategoryDimIndex=0)},polar:function(r,e,t,a){var n=r.getReferringComponents("polar",te).models[0],i=n.findAxisModel("radiusAxis"),o=n.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],t.set("radius",i),t.set("angle",o),$o(i)&&(a.set("radius",i),e.firstCategoryDimIndex=0),$o(o)&&(a.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(r,e,t,a){e.coordSysDims=["lng","lat"]},parallel:function(r,e,t,a){var n=r.ecModel,i=n.getComponent("parallel",r.get("parallelIndex")),o=e.coordSysDims=i.dimensions.slice();A(i.parallelAxisIndex,function(s,l){var u=n.getComponent("parallelAxis",s),f=o[l];t.set(f,u),$o(u)&&(a.set(f,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})}};function $o(r){return r.get("type")==="category"}function FV(r,e,t){t=t||{};var a=t.byIndex,n=t.stackedCoordDimension,i,o,s;HV(e)?i=e:(o=e.schema,i=o.dimensions,s=e.store);var l=!!(r&&r.get("stack")),u,f,h,v;if(A(i,function(m,_){U(m)&&(i[_]=m={name:m}),l&&!m.isExtraCoord&&(!a&&!u&&m.ordinalMeta&&(u=m),!f&&m.type!=="ordinal"&&m.type!=="time"&&(!n||n===m.coordDim)&&(f=m))}),f&&!a&&!u&&(a=!0),f){h="__\0ecstackresult_"+r.id,v="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var c=f.coordDim,p=f.type,d=0;A(i,function(m){m.coordDim===c&&d++});var g={name:h,coordDim:c,coordDimIndex:d,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},y={name:v,coordDim:v,coordDimIndex:d+1,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(v,p),y.storeDimIndex=s.ensureCalculationDimension(h,p)),o.appendCalculationDimension(g),o.appendCalculationDimension(y)):(i.push(g),i.push(y))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:a,stackedOverDimension:v,stackResultDimension:h}}function HV(r){return!Ow(r.schema)}function Sn(r,e){return!!e&&e===r.getCalculationInfo("stackedDimension")}function Fw(r,e){return Sn(r,e)?r.getCalculationInfo("stackResultDimension"):e}function WV(r,e){var t=r.get("coordinateSystem"),a=sl.get(t),n;return e&&e.coordSysDims&&(n=G(e.coordSysDims,function(i){var o={name:i},s=e.axisMap.get(i);if(s){var l=s.get("type");o.type=Sh(l)}return o})),n||(n=a&&(a.getDimensionsInfo?a.getDimensionsInfo():a.dimensions.slice())||["x","y"]),n}function UV(r,e,t){var a,n;return t&&A(r,function(i,o){var s=i.coordDim,l=t.categoryAxisMap.get(s);l&&(a==null&&(a=o),i.ordinalMeta=l.getOrdinalMeta(),e&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(n=!0)}),!n&&a!=null&&(r[a].otherDims.itemName=0),a}function YV(r,e,t){t=t||{};var a=e.getSourceManager(),n,i=!1;r?(i=!0,n=Bp(r)):(n=a.getSource(),i=n.sourceFormat===mr);var o=zV(e),s=WV(e,o),l=t.useEncodeDefaulter,u=$(l)?l:l?it(aS,s,e):null,f={coordDimensions:s,generateCoord:t.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},h=jo(n,f),v=UV(h.dimensions,t.createInvertedIndices,o),c=i?null:a.getSharedDataStore(h),p=FV(e,{schema:h,store:c}),d=new Be(h,e);d.setCalculationInfo(p);var g=v!=null&&ZV(n)?function(y,m,_,S){return S===v?_:this.defaultDimValueGetter(y,m,_,S)}:null;return d.hasItemOption=!1,d.initData(i?n:c,null,g),d}function ZV(r){if(r.sourceFormat===mr){var e=XV(r.data||[]);return!z(xo(e))}}function XV(r){for(var e=0;e-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),a},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:Infinity,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(Wt),qV=KV;function Qo(r,e){var t=r.mapDimensionsAll("defaultedLabel"),a=t.length;if(a===1){var n=No(r,e,t[0]);return n!=null?n+"":null}else if(a){for(var i=[],o=0;o=0&&a.push(e[i])}return a.join(" ")}var jV=function(r){k(e,r);function e(t,a,n,i){var o=r.call(this)||this;return o.updateData(t,a,n,i),o}return e.prototype._createSymbol=function(t,a,n,i,o){this.removeAll();var s=re(t,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),s.drift=$V,this._symbolType=t,this.add(s)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){Ea(this.childAt(0))},e.prototype.downplay=function(){ka(this.childAt(0))},e.prototype.setZ=function(t,a){var n=this.childAt(0);n.zlevel=t,n.z=a},e.prototype.setDraggable=function(t,a){var n=this.childAt(0);n.draggable=t,n.cursor=!a&&t?"move":n.cursor},e.prototype.updateData=function(t,a,n,i){this.silent=!1;var o=t.getItemVisual(a,"symbol")||"circle",s=t.hostModel,l=e.getSymbolSize(t,a),u=o!==this._symbolType,f=i&&i.disableAnimation;if(u){var h=t.getItemVisual(a,"symbolKeepAspect");this._createSymbol(o,t,a,l,h)}else{var v=this.childAt(0);v.silent=!1;var c={scaleX:l[0]/2,scaleY:l[1]/2};f?v.attr(c):Mt(v,c,s,a),Nr(v)}if(this._updateCommon(t,a,l,n,i),u){var v=this.childAt(0);if(!f){var c={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:v.style.opacity}};v.scaleX=v.scaleY=0,v.style.opacity=0,Ht(v,c,s,a)}}f&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,a,n,i,o){var s=this.childAt(0),l=t.hostModel,u,f,h,v,c,p,d,g,y;if(i&&(u=i.emphasisItemStyle,f=i.blurItemStyle,h=i.selectItemStyle,v=i.focus,c=i.blurScope,d=i.labelStatesModels,g=i.hoverScale,y=i.cursorStyle,p=i.emphasisDisabled),!i||t.hasItemOption){var m=i&&i.itemModel?i.itemModel:t.getItemModel(a),_=m.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),h=m.getModel(["select","itemStyle"]).getItemStyle(),f=m.getModel(["blur","itemStyle"]).getItemStyle(),v=_.get("focus"),c=_.get("blurScope"),p=_.get("disabled"),d=ue(m),g=_.getShallow("scale"),y=m.getShallow("cursor")}var S=t.getItemVisual(a,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var b=Yo(t.getItemVisual(a,"symbolOffset"),n);b&&(s.x=b[0],s.y=b[1]),y&&s.attr("cursor",y);var x=t.getItemVisual(a,"style"),w=x.fill;if(s instanceof _e){var T=s.style;s.useStyle(B({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},x))}else s.__isEmptyBrush?s.useStyle(B({},x)):s.useStyle(x),s.style.decal=null,s.setColor(w,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var C=t.getItemVisual(a,"liftZ"),M=this._z2;C!=null?M==null&&(this._z2=s.z2,s.z2+=C):M!=null&&(s.z2=M,this._z2=null);var D=o&&o.useNameLabel;xe(s,d,{labelFetcher:l,labelDataIndex:a,defaultText:L,inheritColor:w,defaultOpacity:x.opacity});function L(R){return D?t.getName(R):Qo(t,R)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var I=s.ensureState("emphasis");I.style=u,s.ensureState("select").style=h,s.ensureState("blur").style=f;var P=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;I.scaleX=this._sizeX*P,I.scaleY=this._sizeY*P,this.setSymbolScale(1),Yt(this,v,c,p)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,a,n){var i=this.childAt(0),o=nt(this).dataIndex,s=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var l=i.getTextContent();l&&vn(l,{style:{opacity:0}},a,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();vn(i,{style:{opacity:0},scaleX:0,scaleY:0},a,{dataIndex:o,cb:t,removeOpt:s})},e.getSymbolSize=function(t,a){return Tl(t.getItemVisual(a,"symbolSize"))},e}(rt);function $V(r,e){this.parent.drift(r,e)}var Vl=jV;function Xd(r,e,t,a){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(a.isIgnore&&a.isIgnore(t))&&!(a.clipShape&&!a.clipShape.contain(e[0],e[1]))&&r.getItemVisual(t,"symbol")!=="none"}function Ww(r){return r!=null&&!et(r)&&(r={isIgnore:r}),r||{}}function Uw(r){var e=r.hostModel,t=e.getModel("emphasis");return{emphasisItemStyle:t.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:t.get("focus"),blurScope:t.get("blurScope"),emphasisDisabled:t.get("disabled"),hoverScale:t.get("scale"),labelStatesModels:ue(e),cursorStyle:e.get("cursor")}}var QV=function(){function r(e){this.group=new rt,this._SymbolCtor=e||Vl}return r.prototype.updateData=function(e,t){this._progressiveEls=null,t=Ww(t);var a=this.group,n=e.hostModel,i=this._data,o=this._SymbolCtor,s=t.disableAnimation,l=Uw(e),u={disableAnimation:s},f=t.getSymbolPoint||function(h){return e.getItemLayout(h)};i||a.removeAll(),e.diff(i).add(function(h){var v=f(h);if(Xd(e,v,h,t)){var c=new o(e,h,l,u);c.setPosition(v),e.setItemGraphicEl(h,c),a.add(c)}}).update(function(h,v){var c=i.getItemGraphicEl(v),p=f(h);if(!Xd(e,p,h,t)){a.remove(c);return}var d=e.getItemVisual(h,"symbol")||"circle",g=c&&c.getSymbolType&&c.getSymbolType();if(!c||g&&g!==d)a.remove(c),c=new o(e,h,l,u),c.setPosition(p);else{c.updateData(e,h,l,u);var y={x:p[0],y:p[1]};s?c.attr(y):Mt(c,y,n)}a.add(c),e.setItemGraphicEl(h,c)}).remove(function(h){var v=i.getItemGraphicEl(h);v&&v.fadeOut(function(){a.remove(v)},n)}).execute(),this._getSymbolPoint=f,this._data=e},r.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl(function(a,n){var i=e._getSymbolPoint(n);a.setPosition(i),a.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=Uw(e),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t,a){this._progressiveEls=[],a=Ww(a);function n(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=e.start;i0?t=a[0]:a[1]<0&&(t=a[1]),t}function Zw(r,e,t,a){var n=NaN;r.stacked&&(n=t.get(t.getCalculationInfo("stackedOverDimension"),a)),isNaN(n)&&(n=r.valueStart);var i=r.baseDataOffset,o=[];return o[i]=t.get(r.baseDim,a),o[1-i]=n,e.dataToPoint(o)}var Xw=typeof Float32Array!="undefined",tz=Xw?Float32Array:Array;function da(r){return z(r)?Xw?new Float32Array(r):r:new tz(r)}function ez(r,e){var t=[];return e.diff(r).add(function(a){t.push({cmd:"+",idx:a})}).update(function(a,n){t.push({cmd:"=",idx:n,idx1:a})}).remove(function(a){t.push({cmd:"-",idx:a})}).execute(),t}function rz(r,e,t,a,n,i,o,s){for(var l=ez(r,e),u=[],f=[],h=[],v=[],c=[],p=[],d=[],g=Yw(n,e,o),y=r.getLayout("points")||[],m=e.getLayout("points")||[],_=0;_=n||d<0)break;if(zi(y,m)){if(l){d+=i;continue}break}if(d===t)r[i>0?"moveTo":"lineTo"](y,m),h=y,v=m;else{var _=y-u,S=m-f;if(_*_+S*S<.5){d+=i;continue}if(o>0){for(var b=d+i,x=e[b*2],w=e[b*2+1];x===y&&w===m&&g=a||zi(x,w))c=y,p=m;else{M=x-u,D=w-f;var P=y-u,R=x-y,E=m-f,N=w-m,O=void 0,V=void 0;if(s==="x"){O=Math.abs(P),V=Math.abs(R);var F=M>0?1:-1;c=y-F*O*o,p=m,L=y+F*V*o,I=m}else if(s==="y"){O=Math.abs(E),V=Math.abs(N);var W=D>0?1:-1;c=y,p=m-W*O*o,L=y,I=m+W*V*o}else O=Math.sqrt(P*P+E*E),V=Math.sqrt(R*R+N*N),C=V/(V+O),c=y-M*o*(1-C),p=m-D*o*(1-C),L=y+M*o*C,I=m+D*o*C,L=xn(L,bn(x,y)),I=xn(I,bn(w,m)),L=bn(L,xn(x,y)),I=bn(I,xn(w,m)),M=L-y,D=I-m,c=y-M*O/V,p=m-D*O/V,c=xn(c,bn(u,y)),p=xn(p,bn(f,m)),c=bn(c,xn(u,y)),p=bn(p,xn(f,m)),M=y-c,D=m-p,L=y+M*V/O,I=m+D*V/O}r.bezierCurveTo(h,v,c,p,y,m),h=L,v=I}else r.lineTo(y,m)}u=y,f=m,d+=i}return g}var Kw=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),az=function(r){k(e,r);function e(t){var a=r.call(this,t)||this;return a.type="ec-polyline",a}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Kw},e.prototype.buildPath=function(t,a){var n=a.points,i=0,o=n.length/2;if(a.connectNulls){for(;o>0&&zi(n[o*2-2],n[o*2-1]);o--);for(;i=0){var S=u?(p-l)*_+l:(c-s)*_+s;return u?[t,S]:[S,t]}s=c,l=p;break;case o.C:c=i[h++],p=i[h++],d=i[h++],g=i[h++],y=i[h++],m=i[h++];var b=u?Hu(s,c,d,y,t,f):Hu(l,p,g,m,t,f);if(b>0)for(var x=0;x=0){var S=u?le(l,p,g,m,w):le(s,c,d,y,w);return u?[t,S]:[S,t]}}s=y,l=m;break}}},e}(pt),nz=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e}(Kw),qw=function(r){k(e,r);function e(t){var a=r.call(this,t)||this;return a.type="ec-polygon",a}return e.prototype.getDefaultShape=function(){return new nz},e.prototype.buildPath=function(t,a){var n=a.points,i=a.stackedOnPoints,o=0,s=n.length/2,l=a.smoothMonotone;if(a.connectNulls){for(;s>0&&zi(n[s*2-2],n[s*2-1]);s--);for(;oe){i?t.push(o(i,l,e)):n&&t.push(o(n,l,0),o(n,l,e));break}else n&&(t.push(o(n,l,0)),n=null),t.push(l),i=l}return t}function sz(r,e,t){var a=r.getVisual("visualMeta");if(!(!a||!a.length||!r.count())&&e.type==="cartesian2d"){for(var n,i,o=a.length-1;o>=0;o--){var s=r.getDimensionInfo(a[o].dimension);if(n=s&&s.coordDim,n==="x"||n==="y"){i=a[o];break}}if(!!i){var l=e.getAxis(n),u=G(i.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,h=i.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),h.reverse());var v=oz(u,n==="x"?t.getWidth():t.getHeight()),c=v.length;if(!c&&f)return u[0].coord<0?h[1]?h[1]:u[f-1].color:h[0]?h[0]:u[0].color;var p=10,d=v[0].coord-p,g=v[c-1].coord+p,y=g-d;if(y<.001)return"transparent";A(v,function(_){_.offset=(_.coord-d)/y}),v.push({offset:c?v[c-1].offset:.5,color:h[1]||"transparent"}),v.unshift({offset:c?v[0].offset:.5,color:h[0]||"transparent"});var m=new gl(0,0,0,0,v,!0);return m[n]=d,m[n+"2"]=g,m}}}function lz(r,e,t){var a=r.get("showAllSymbol"),n=a==="auto";if(!(a&&!n)){var i=t.getAxesByScale("ordinal")[0];if(!!i&&!(n&&uz(i,e))){var o=e.mapDimension(i.dim),s={};return A(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function uz(r,e){var t=r.getExtent(),a=Math.abs(t[1]-t[0])/r.scale.count();isNaN(a)&&(a=0);for(var n=e.count(),i=Math.max(1,Math.round(n/5)),o=0;oa)return!1;return!0}function fz(r,e){return isNaN(r)||isNaN(e)}function hz(r){for(var e=r.length/2;e>0&&fz(r[e*2-2],r[e*2-1]);e--);return e-1}function rT(r,e){return[r[e*2],r[e*2+1]]}function vz(r,e,t){for(var a=r.length/2,n=t==="x"?0:1,i,o,s=0,l=-1,u=0;u=e||i>=e&&o<=e){l=u;break}s=u,i=o}return{range:[s,l],t:(e-i)/(o-i)}}function aT(r){if(r.get(["endLabel","show"]))return!0;for(var e=0;e0&&t.get(["emphasis","lineStyle","width"])==="bolder"){var F=d.getState("emphasis").style;F.lineWidth=+d.style.lineWidth+1}nt(d).seriesIndex=t.seriesIndex,Yt(d,N,O,V);var W=eT(t.get("smooth")),X=t.get("smoothMonotone");if(d.setShape({smooth:W,smoothMonotone:X,connectNulls:T}),g){var Q=l.getCalculationInfo("stackedOnSeries"),J=0;g.useStyle(K(f.getAreaStyle(),{fill:I,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),Q&&(J=eT(Q.get("smooth"))),g.setShape({smooth:W,stackedOnSmooth:J,smoothMonotone:X,connectNulls:T}),Se(g,t,"areaStyle"),nt(g).seriesIndex=t.seriesIndex,Yt(g,N,O,V)}var dt=function(Dt){i._changePolyState(Dt)};l.eachItemGraphicEl(function(Dt){Dt&&(Dt.onHoverStateChange=dt)}),this._polyline.onHoverStateChange=dt,this._data=l,this._coordSys=o,this._stackedOnPoints=x,this._points=h,this._step=D,this._valueOrigin=S,t.get("triggerLineEvent")&&(this.packEventData(t,d),g&&this.packEventData(t,g))},e.prototype.packEventData=function(t,a){nt(a).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,a,n,i){var o=t.getData(),s=ri(o,i);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var f=l[s*2],h=l[s*2+1];if(isNaN(f)||isNaN(h)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,h))return;var v=t.get("zlevel")||0,c=t.get("z")||0;u=new Vl(o,s),u.x=f,u.y=h,u.setZ(v,c);var p=u.getSymbolPath().getTextContent();p&&(p.zlevel=v,p.z=c,p.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else zt.prototype.highlight.call(this,t,a,n,i)},e.prototype.downplay=function(t,a,n,i){var o=t.getData(),s=ri(o,i);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else zt.prototype.downplay.call(this,t,a,n,i)},e.prototype._changePolyState=function(t){var a=this._polygon;mf(this._polyline,t),a&&mf(a,t)},e.prototype._newPolyline=function(t){var a=this._polyline;return a&&this._lineGroup.remove(a),a=new az({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(a),this._polyline=a,a},e.prototype._newPolygon=function(t,a){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new qw({shape:{points:t,stackedOnPoints:a},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},e.prototype._initSymbolLabelAnimation=function(t,a,n){var i,o,s=a.getBaseAxis(),l=s.inverse;a.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):a.type==="polar"&&(i=s.dim==="angle",o=!0);var u=t.hostModel,f=u.get("animationDuration");$(f)&&(f=f(null));var h=u.get("animationDelay")||0,v=$(h)?h(null):h;t.eachItemGraphicEl(function(c,p){var d=c;if(d){var g=[c.x,c.y],y=void 0,m=void 0,_=void 0;if(n)if(o){var S=n,b=a.pointToCoord(g);i?(y=S.startAngle,m=S.endAngle,_=-b[1]/180*Math.PI):(y=S.r0,m=S.r,_=b[0])}else{var x=n;i?(y=x.x,m=x.x+x.width,_=c.x):(y=x.y+x.height,m=x.y,_=c.y)}var w=m===y?0:(_-y)/(m-y);l&&(w=1-w);var T=$(h)?h(p):f*w+v,C=d.getSymbolPath(),M=C.getTextContent();d.attr({scaleX:0,scaleY:0}),d.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),M&&M.animateFrom({style:{opacity:0}},{duration:300,delay:T}),C.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,a,n){var i=t.getModel("endLabel");if(aT(t)){var o=t.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new Ct({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=hz(l);f>=0&&(xe(s,ue(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:f,defaultText:function(h,v,c){return c!=null?Hw(o,c):Qo(o,h)},enableTextSetter:!0},cz(i,a)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,a,n,i,o,s,l){var u=this._endLabel,f=this._polyline;if(u){t<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var h=n.getLayout("points"),v=n.hostModel,c=v.get("connectNulls"),p=s.get("precision"),d=s.get("distance")||0,g=l.getBaseAxis(),y=g.isHorizontal(),m=g.inverse,_=a.shape,S=m?y?_.x:_.y+_.height:y?_.x+_.width:_.y,b=(y?d:0)*(m?-1:1),x=(y?0:-d)*(m?-1:1),w=y?"x":"y",T=vz(h,S,w),C=T.range,M=C[1]-C[0],D=void 0;if(M>=1){if(M>1&&!c){var L=rT(h,C[0]);u.attr({x:L[0]+b,y:L[1]+x}),o&&(D=v.getRawValue(C[0]))}else{var L=f.getPointOn(S,w);L&&u.attr({x:L[0]+b,y:L[1]+x});var I=v.getRawValue(C[0]),P=v.getRawValue(C[1]);o&&(D=T_(n,p,I,P,T.t))}i.lastFrameIndex=C[0]}else{var R=t===1||i.lastFrameIndex>0?C[0]:0,L=rT(h,R);o&&(D=v.getRawValue(R)),u.attr({x:L[0]+b,y:L[1]+x})}o&&Mo(u).setLabelText(D)}},e.prototype._doUpdateAnimation=function(t,a,n,i,o,s,l){var u=this._polyline,f=this._polygon,h=t.hostModel,v=rz(this._data,t,this._stackedOnPoints,a,this._coordSys,n,this._valueOrigin,s),c=v.current,p=v.stackedOnCurrent,d=v.next,g=v.stackedOnNext;if(o&&(c=wn(v.current,n,o,l),p=wn(v.stackedOnCurrent,n,o,l),d=wn(v.next,n,o,l),g=wn(v.stackedOnNext,n,o,l)),tT(c,d)>3e3||f&&tT(p,g)>3e3){u.stopAnimation(),u.setShape({points:d}),f&&(f.stopAnimation(),f.setShape({points:d,stackedOnPoints:g}));return}u.shape.__points=v.current,u.shape.points=c;var y={shape:{points:d}};v.current!==c&&(y.shape.__points=v.next),u.stopAnimation(),Mt(u,y,h),f&&(f.setShape({points:c,stackedOnPoints:p}),f.stopAnimation(),Mt(f,{shape:{stackedOnPoints:g}},h),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var m=[],_=v.status,S=0;S<_.length;S++){var b=_[S].cmd;if(b==="="){var x=t.getItemGraphicEl(_[S].idx1);x&&m.push({el:x,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var w=u.shape.__points,T=0;Te&&(e=r[t]);return isFinite(e)?e:NaN},min:function(r){for(var e=Infinity,t=0;t10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),h=a.getDevicePixelRatio(),v=Math.abs(f[1]-f[0])*(h||1),c=Math.round(s/v);if(isFinite(c)&&c>1){i==="lttb"&&e.setData(n.lttbDownSample(n.mapDimension(u.dim),1/c));var p=void 0;U(i)?p=gz[i]:$(i)&&(p=i),p&&e.setData(n.downSample(n.mapDimension(u.dim),1/c,p,yz))}}}}}function mz(r){r.registerChartView(dz),r.registerSeriesModel(qV),r.registerLayout(Gl("line",!0)),r.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),a=e.getModel("lineStyle").getLineStyle();a&&!a.stroke&&(a.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",a)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,nT("line"))}var jd="__ec_stack_";function $d(r){return r.get("stack")||jd+r.seriesIndex}function Qd(r){return r.dim+r.index}function _z(r){var e=[],t=r.axis,a="axis0";if(t.type==="category"){for(var n=t.getBandWidth(),i=0;i0&&(i=i===null?s:Math.min(i,s))}t[a]=i}}return t}function oT(r){var e=Sz(r),t=[];return A(r,function(a){var n=a.coordinateSystem,i=n.getBaseAxis(),o=i.getExtent(),s;if(i.type==="category")s=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var l=i.dim+"_"+i.index,u=e[l],f=Math.abs(o[1]-o[0]),h=i.scale.getExtent(),v=Math.abs(h[1]-h[0]);s=u?f/v*u:f}else{var c=a.getData();s=Math.abs(o[1]-o[0])/c.count()}var p=H(a.get("barWidth"),s),d=H(a.get("barMaxWidth"),s),g=H(a.get("barMinWidth")||(hT(a)?.5:1),s),y=a.get("barGap"),m=a.get("barCategoryGap");t.push({bandWidth:s,barWidth:p,barMaxWidth:d,barMinWidth:g,barGap:y,barCategoryGap:m,axisKey:Qd(i),stackId:$d(a)})}),sT(t)}function sT(r){var e={};A(r,function(a,n){var i=a.axisKey,o=a.bandWidth,s=e[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;e[i]=s;var u=a.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var f=a.barWidth;f&&!l[u].width&&(l[u].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var h=a.barMaxWidth;h&&(l[u].maxWidth=h);var v=a.barMinWidth;v&&(l[u].minWidth=v);var c=a.barGap;c!=null&&(s.gap=c);var p=a.barCategoryGap;p!=null&&(s.categoryGap=p)});var t={};return A(e,function(a,n){t[n]={};var i=a.stacks,o=a.bandWidth,s=a.categoryGap;if(s==null){var l=_t(i).length;s=Math.max(35-l*4,15)+"%"}var u=H(s,o),f=H(a.gap,1),h=a.remainedWidth,v=a.autoWidthCount,c=(h-u)/(v+(v-1)*f);c=Math.max(c,0),A(i,function(y){var m=y.maxWidth,_=y.minWidth;if(y.width){var S=y.width;m&&(S=Math.min(S,m)),_&&(S=Math.max(S,_)),y.width=S,h-=S+f*S,v--}else{var S=c;m&&mS&&(S=_),S!==c&&(y.width=S,h-=S+f*S,v--)}}),c=(h-u)/(v+(v-1)*f),c=Math.max(c,0);var p=0,d;A(i,function(y,m){y.width||(y.width=c),d=y,p+=y.width*(1+f)}),d&&(p-=d.width*f);var g=-p/2;A(i,function(y,m){t[n][m]=t[n][m]||{bandWidth:o,offset:g,width:y.width},g+=y.width*(1+f)})}),t}function xz(r,e,t){if(r&&e){var a=r[Qd(e)];return a!=null&&t!=null?a[$d(t)]:a}}function lT(r,e){var t=iT(r,e),a=oT(t);A(t,function(n){var i=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=$d(n),u=a[Qd(s)][l],f=u.offset,h=u.width;i.setLayout({bandWidth:u.bandWidth,offset:f,size:h})})}function uT(r){return{seriesType:r,plan:Vo(),reset:function(e){if(!!fT(e)){var t=e.getData(),a=e.coordinateSystem,n=a.getBaseAxis(),i=a.getOtherAxis(n),o=t.getDimensionIndex(t.mapDimension(i.dim)),s=t.getDimensionIndex(t.mapDimension(n.dim)),l=e.get("showBackground",!0),u=t.mapDimension(i.dim),f=t.getCalculationInfo("stackResultDimension"),h=Sn(t,u)&&!!t.getCalculationInfo("stackedOnSeries"),v=i.isHorizontal(),c=bz(n,i),p=hT(e),d=e.get("barMinHeight")||0,g=f&&t.getDimensionIndex(f),y=t.getLayout("size"),m=t.getLayout("offset");return{progress:function(_,S){for(var b=_.count,x=p&&da(b*3),w=p&&l&&da(b*3),T=p&&da(b),C=a.master.getRect(),M=v?C.width:C.height,D,L=S.getStore(),I=0;(D=_.next())!=null;){var P=L.get(h?g:o,D),R=L.get(s,D),E=c,N=void 0;h&&(N=+P-L.get(o,D));var O=void 0,V=void 0,F=void 0,W=void 0;if(v){var X=a.dataToPoint([P,R]);if(h){var Q=a.dataToPoint([N,R]);E=Q[0]}O=E,V=X[1]+m,F=X[0]-E,W=y,Math.abs(F)d){m=(b+y)/2;break}S===1&&(_=x-p[0].tickValue)}m==null&&(y?y&&(m=p[p.length-1].coord):m=p[0].coord),s[c]=v.toGlobalCoord(m)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),h=i.getBaseAxis().isHorizontal()?0:1;s[h]+=u+f/2}return s}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(Wt);Wt.registerClass(vT);var Ch=vT,wz=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(){return Va(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),a=this.get("largeThreshold");return a>t&&(t=a),t},e.prototype.brushSelector=function(t,a,n){return n.rect(a.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=cn(Ch.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),e}(Ch),Tz=wz,Cz=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r}(),Az=function(r){k(e,r);function e(t){var a=r.call(this,t)||this;return a.type="sausage",a}return e.prototype.getDefaultShape=function(){return new Cz},e.prototype.buildPath=function(t,a){var n=a.cx,i=a.cy,o=Math.max(a.r0||0,0),s=Math.max(a.r,0),l=(s-o)*.5,u=o+l,f=a.startAngle,h=a.endAngle,v=a.clockwise,c=Math.PI*2,p=v?h-fMath.PI/2&&fs)return!0;s=h}return!1},e.prototype._isOrderDifferentInView=function(t,a){for(var n=a.scale,i=n.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],n.getOrdinalMeta().categories.length-1);o<=s;++o)if(t.ordinalNumbers[o]!==n.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(t,a,n,i){if(!!this._isOrderChangedWithinSameData(t,a,n)){var o=this._dataSort(t,n,a);this._isOrderDifferentInView(o,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(t,a,n){var i=a.baseAxis,o=this._dataSort(t,i,function(s){return t.get(t.mapDimension(a.otherAxis.dim),s)});n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},e.prototype.remove=function(t,a){this._clear(this._model),this._removeOnRenderedListener(a)},e.prototype.dispose=function(t,a){this._removeOnRenderedListener(a)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var a=this.group,n=this._data;t&&t.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(i){tl(i,t,nt(i).dataIndex)})):a.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(zt),cT={cartesian2d:function(r,e){var t=e.width<0?-1:1,a=e.height<0?-1:1;t<0&&(e.x+=e.width,e.width=-e.width),a<0&&(e.y+=e.height,e.height=-e.height);var n=r.x+r.width,i=r.y+r.height,o=Jd(e.x,r.x),s=tg(e.x+e.width,n),l=Jd(e.y,r.y),u=tg(e.y+e.height,i),f=sn?s:o,e.y=h&&l>i?u:l,e.width=f?0:s-o,e.height=h?0:u-l,t<0&&(e.x+=e.width,e.width=-e.width),a<0&&(e.y+=e.height,e.height=-e.height),f||h},polar:function(r,e){var t=e.r0<=e.r?1:-1;if(t<0){var a=e.r;e.r=e.r0,e.r0=a}var n=tg(e.r,r.r),i=Jd(e.r0,r.r0);e.r=n,e.r0=i;var o=n-i<0;if(t<0){var a=e.r;e.r=e.r0,e.r0=a}return o}},pT={cartesian2d:function(r,e,t,a,n,i,o,s,l){var u=new bt({shape:B({},a),z2:1});if(u.__dataIndex=t,u.name="item",i){var f=u.shape,h=n?"height":"width";f[h]=0}return u},polar:function(r,e,t,a,n,i,o,s,l){var u=!n&&l?Ah:Ue,f=new u({shape:a,z2:1});f.name="item";var h=mT(n);if(f.calculateTextPosition=Mz(h,{isRoundCap:u===Ah}),i){var v=f.shape,c=n?"r":"endAngle",p={};v[c]=n?a.r0:a.startAngle,p[c]=a[c],(s?Mt:Ht)(f,{shape:p},i)}return f}};function Pz(r,e){var t=r.get("realtimeSort",!0),a=e.getBaseAxis();if(t&&a.type==="category"&&e.type==="cartesian2d")return{baseAxis:a,otherAxis:e.getOtherAxis(a)}}function dT(r,e,t,a,n,i,o,s){var l,u;i?(u={x:a.x,width:a.width},l={y:a.y,height:a.height}):(u={y:a.y,height:a.height},l={x:a.x,width:a.width}),s||(o?Mt:Ht)(t,{shape:l},e,n,null);var f=e?r.baseAxis.model:null;(o?Mt:Ht)(t,{shape:u},f,n)}function gT(r,e){for(var t=0;t0?1:-1,o=a.height>0?1:-1;return{x:a.x+i*n/2,y:a.y+o*n/2,width:a.width-i*n,height:a.height-o*n}},polar:function(r,e,t){var a=r.getItemLayout(e);return{cx:a.cx,cy:a.cy,r0:a.r0,r:a.r,startAngle:a.startAngle,endAngle:a.endAngle,clockwise:a.clockwise}}};function kz(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function mT(r){return function(e){var t=e?"Arc":"Angle";return function(a){switch(a){case"start":case"insideStart":case"end":case"insideEnd":return a+t;default:return a}}}(r)}function _T(r,e,t,a,n,i,o,s){var l=e.getItemVisual(t,"style");if(s){if(!i.get("roundCap")){var f=r.shape,h=Fi(a.getModel("itemStyle"),f,!0);B(f,h),r.setShape(f)}}else{var u=a.get(["itemStyle","borderRadius"])||0;r.setShape("r",u)}r.useStyle(l);var v=a.getShallow("cursor");v&&r.attr("cursor",v);var c=s?o?n.r>=n.r0?"endArc":"startArc":n.endAngle>=n.startAngle?"endAngle":"startAngle":o?n.height>=0?"bottom":"top":n.width>=0?"right":"left",p=ue(a);xe(r,p,{labelFetcher:i,labelDataIndex:t,defaultText:Qo(i.getData(),t),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:c});var d=r.getTextContent();if(s&&d){var g=a.get(["label","position"]);r.textConfig.inside=g==="middle"?!0:null,Dz(r,g==="outside"?c:g,mT(o),a.get(["label","rotate"]))}I1(d,p,i.getRawValue(t),function(m){return Hw(e,m)});var y=a.getModel(["emphasis"]);Yt(r,y.get("focus"),y.get("blurScope"),y.get("disabled")),Se(r,a),kz(n)&&(r.style.fill="none",r.style.stroke="none",A(r.states,function(m){m.style&&(m.style.fill=m.style.stroke="none")}))}function Oz(r,e){var t=r.get(["itemStyle","borderColor"]);if(!t||t==="none")return 0;var a=r.get(["itemStyle","borderWidth"])||0,n=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),i=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(a,n,i)}var Nz=function(){function r(){}return r}(),ST=function(r){k(e,r);function e(t){var a=r.call(this,t)||this;return a.type="largeBar",a}return e.prototype.getDefaultShape=function(){return new Nz},e.prototype.buildPath=function(t,a){for(var n=a.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f=0?t:null},30,!1);function Bz(r,e,t){for(var a=r.baseDimIdx,n=1-a,i=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,f=0,h=i.length/3;f=s[0]&&e<=s[0]+l[0]&&t>=s[1]&&t<=s[1]+l[1])return o[f]}return-1}function wT(r,e,t){if(Gi(t,"cartesian2d")){var a=e,n=t.getArea();return{x:r?a.x:n.x,y:r?n.y:a.y,width:r?a.width:n.width,height:r?n.height:a.height}}else{var n=t.getArea(),i=e;return{cx:n.cx,cy:n.cy,r0:r?n.r0:i.r0,r:r?n.r:i.r,startAngle:r?i.startAngle:0,endAngle:r?i.endAngle:Math.PI*2}}}function Vz(r,e,t){var a=r.type==="polar"?Ue:bt;return new a({shape:wT(e,t,r),silent:!0,z2:0})}var zz=Iz;function Gz(r){r.registerChartView(zz),r.registerSeriesModel(Tz),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,it(lT,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,uT("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,nT("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,t){var a=e.componentType||"series";t.eachComponent({mainType:a,query:e},function(n){e.sortInfo&&n.axis.setCategorySortInfo(e.sortInfo)})})}var Ih=Math.PI*2,TT=Math.PI/180;function CT(r,e){return oe(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function AT(r,e){var t=CT(r,e),a=r.get("center"),n=r.get("radius");z(n)||(n=[0,n]);var i=H(t.width,e.getWidth()),o=H(t.height,e.getHeight()),s=Math.min(i,o),l=H(n[0],s/2),u=H(n[1],s/2),f,h,v=r.coordinateSystem;if(v){var c=v.dataToPoint(a);f=c[0]||0,h=c[1]||0}else z(a)||(a=[a,a]),f=H(a[0],i)+t.x,h=H(a[1],o)+t.y;return{cx:f,cy:h,r0:l,r:u}}function Fz(r,e,t){e.eachSeriesByType(r,function(a){var n=a.getData(),i=n.mapDimension("value"),o=CT(a,t),s=AT(a,t),l=s.cx,u=s.cy,f=s.r,h=s.r0,v=-a.get("startAngle")*TT,c=a.get("minAngle")*TT,p=0;n.each(i,function(M){!isNaN(M)&&p++});var d=n.getSum(i),g=Math.PI/(d||p)*2,y=a.get("clockwise"),m=a.get("roseType"),_=a.get("stillShowZeroSum"),S=n.getDataExtent(i);S[0]=0;var b=Ih,x=0,w=v,T=y?1:-1;if(n.setLayout({viewRect:o,r:f}),n.each(i,function(M,D){var L;if(isNaN(M)){n.setItemLayout(D,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:y,cx:l,cy:u,r0:h,r:m?NaN:f});return}m!=="area"?L=d===0&&_?g:M*g:L=Ih/p,Lt?y:g,b=Math.abs(_.label.y-t);if(b>=S.maxY){var x=_.label.x-e-_.len2*n,w=a+_.len,T=Math.abs(x)r.unconstrainedWidth?null:c:null;a.setStyle("width",p)}var d=a.getBoundingRect();i.width=d.width;var g=(a.style.margin||0)+2.1;i.height=d.height+g,i.y-=(i.height-h)/2}}}function eg(r){return r.position==="center"}function Uz(r){var e=r.getData(),t=[],a,n,i=!1,o=(r.get("minShowLabelAngle")||0)*Hz,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,f=s.x,h=s.y,v=s.height;function c(x){x.ignore=!0}function p(x){if(!x.ignore)return!0;for(var w in x.states)if(x.states[w].ignore===!1)return!0;return!1}e.each(function(x){var w=e.getItemGraphicEl(x),T=w.shape,C=w.getTextContent(),M=w.getTextGuideLine(),D=e.getItemModel(x),L=D.getModel("label"),I=L.get("position")||D.get(["emphasis","label","position"]),P=L.get("distanceToLabelLine"),R=L.get("alignTo"),E=H(L.get("edgeDistance"),u),N=L.get("bleedMargin"),O=D.getModel("labelLine"),V=O.get("length");V=H(V,u);var F=O.get("length2");if(F=H(F,u),Math.abs(T.endAngle-T.startAngle)0?"right":"left":X>0?"left":"right"}var qt=Math.PI,Xt=0,Le=L.get("rotate");if(Tt(Le))Xt=Le*(qt/180);else if(I==="center")Xt=0;else if(Le==="radial"||Le===!0){var Za=X<0?-W+qt:-W;Xt=Za}else if(Le==="tangential"&&I!=="outside"&&I!=="outer"){var je=Math.atan2(X,Q);je<0&&(je=qt*2+je);var Ev=Q>0;Ev&&(je=qt+je),Xt=je-qt}if(i=!!Xt,C.x=J,C.y=dt,C.rotation=Xt,C.setStyle({verticalAlign:"middle"}),at){C.setStyle({align:gt});var qm=C.states.select;qm&&(qm.x+=C.x,qm.y+=C.y)}else{var kn=C.getBoundingRect().clone();kn.applyTransform(C.getComputedTransform());var sP=(C.style.margin||0)+2.1;kn.y-=sP/2,kn.height+=sP,t.push({label:C,labelLine:M,position:I,len:V,len2:F,minTurnAngle:O.get("minTurnAngle"),maxSurfaceAngle:O.get("maxSurfaceAngle"),surfaceNormal:new lt(X,Q),linePoints:Dt,textAlign:gt,labelDistance:P,labelAlignTo:R,edgeDistance:E,bleedMargin:N,rect:kn,unconstrainedWidth:kn.width,labelStyleWidth:C.style.width})}w.setTextConfig({inside:at})}}),!i&&r.get("avoidLabelOverlap")&&Wz(t,a,n,l,u,v,f,h);for(var d=0;d0){for(var f=o.getItemLayout(0),h=1;isNaN(f&&f.startAngle)&&h=i.r0}},e.type="pie",e}(zt),Xz=Zz;function Jo(r,e,t){e=z(e)&&{coordDimensions:e}||B({encodeDefine:r.getEncode()},e);var a=r.getSource(),n=jo(a,e).dimensions,i=new Be(n,r);return i.initData(a,t),i}var Kz=function(){function r(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return r.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},r.prototype.containName=function(e){var t=this._getRawData();return t.indexOfName(e)>=0},r.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},r.prototype.getItemVisual=function(e,t){var a=this._getDataWithEncodedVisual();return a.getItemVisual(e,t)},r}(),Hl=Kz,qz=xt(),jz=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Hl(Y(this.getData,this),Y(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return Jo(this,{coordDimensions:["value"],encodeDefaulter:it(Mp,this)})},e.prototype.getDataParams=function(t){var a=this.getData(),n=qz(a),i=n.seats;if(!i){var o=[];a.each(a.mapDimension("value"),function(l){o.push(l)}),i=n.seats=l_(o,a.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,t);return s.percent=i[t]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(t){ei(t,"labelLine",["show"]);var a=t.labelLine,n=t.emphasis.labelLine;a.show=a.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(Wt),$z=jz;function Qz(r){return{seriesType:r,reset:function(e,t){var a=e.getData();a.filterSelf(function(n){var i=a.mapDimension("value"),o=a.get(i,n);return!(Tt(o)&&!isNaN(o)&&o<0)})}}}function Jz(r){r.registerChartView(Xz),r.registerSeriesModel($z),ib("pie",r.registerAction),r.registerLayout(it(Fz,"pie")),r.registerProcessor(Fl("pie")),r.registerProcessor(Qz("pie"))}var t5=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,a){return Va(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return t==null?this.option.large?5e3:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t==null?this.option.large?1e4:this.get("progressiveThreshold"):t},e.prototype.brushSelector=function(t,a,n){return n.point(a.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},e}(Wt),e5=t5,LT=4,r5=function(){function r(){}return r}(),a5=function(r){k(e,r);function e(t){var a=r.call(this,t)||this;return a._off=0,a.hoverDataIdx=-1,a}return e.prototype.getDefaultShape=function(){return new r5},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,a){var n=a.points,i=a.size,o=this.symbolProxy,s=o.shape,l=t.getContext?t.getContext():t,u=l&&i[0]=0;u--){var f=u*2,h=i[f]-s/2,v=i[f+1]-l/2;if(t>=h&&a>=v&&t<=h+s&&a<=v+l)return u}return-1},e.prototype.contain=function(t,a){var n=this.transformCoordToLocal(t,a),i=this.getBoundingRect();if(t=n[0],a=n[1],i.contain(t,a)){var o=this.hoverDataIdx=this.findDataIndex(t,a);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var a=this.shape,n=a.points,i=a.size,o=i[0],s=i[1],l=Infinity,u=Infinity,f=-Infinity,h=-Infinity,v=0;v=0&&(u.dataIndex=h+(e.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}(),i5=n5,o5=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i=t.getData(),o=this._updateSymbolDraw(i,t);o.updateData(i,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,a,n){var i=t.getData(),o=this._updateSymbolDraw(i,t);o.incrementalPrepareUpdate(i),this._finished=!1},e.prototype.incrementalRender=function(t,a,n){this._symbolDraw.incrementalUpdate(t,a.getData(),{clipShape:this._getClipShape(a)}),this._finished=t.end===a.getData().count()},e.prototype.updateTransform=function(t,a,n){var i=t.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=Gl("").reset(t,a,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){var a=t.coordinateSystem,n=a&&a.getArea&&a.getArea();return t.get("clip",!0)?n:null},e.prototype._updateSymbolDraw=function(t,a){var n=this._symbolDraw,i=a.pipelineContext,o=i.large;return(!n||o!==this._isLargeDraw)&&(n&&n.remove(),n=this._symbolDraw=o?new i5:new zl,this._isLargeDraw=o,this.group.removeAll()),this.group.add(n.group),n},e.prototype.remove=function(t,a){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(zt),s5=o5,l5=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(At),u5=l5,Wl=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},r.prototype.getCoordSysModel=function(){},r}(),rg=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",te).models[0]},e.type="cartesian2dAxis",e}(At);Jt(rg,Wl);var Hq=null,IT={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},f5=ot({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},IT),ag=ot({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},IT),h5=ot({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},ag),v5=K({logBase:10},ag),PT={category:f5,value:ag,time:h5,log:v5},c5=0,p5=function(){function r(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++c5}return r.createByAxisModel=function(e){var t=e.option,a=t.data,n=a&&G(a,d5);return new r({categories:n,needCollect:!n,deduplication:t.dedplication!==!1})},r.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},r.prototype.parseAndCollect=function(e){var t,a=this._needCollect;if(!U(e)&&!a)return e;if(a&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var n=this._getOrCreateMap();return t=n.get(e),t==null&&(a?(t=this.categories.length,this.categories[t]=e,n.set(e,t)):t=NaN),t},r.prototype._getOrCreateMap=function(){return this._map||(this._map=q(this.categories))},r}();function d5(r){return et(r)&&r.value!=null?r.value:r+""}var ng=p5,g5={value:1,category:1,time:1,log:1};function ts(r,e,t,a){A(g5,function(n,i){var o=ot(ot({},PT[i],!0),a,!0),s=function(l){k(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=e+"Axis."+i,f}return u.prototype.mergeDefaultAndTheme=function(f,h){var v=il(this),c=v?Ro(f):{},p=h.getTheme();ot(f,p.get(i+"Axis")),ot(f,this.getDefaultOption()),f.type=RT(f),v&&pn(f,c,v)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=ng.createByAxisModel(this))},u.prototype.getCategories=function(f){var h=this.option;if(h.type==="category")return f?h.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=e+"Axis."+i,u.defaultOption=o,u}(t);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(e+"Axis",RT)}function RT(r){return r.type||(r.data?"category":"value")}var ET=function(){function r(e){this._setting=e||{},this._extent=[Infinity,-Infinity]}return r.prototype.getSetting=function(e){return this._setting[e]},r.prototype.unionExtent=function(e){var t=this._extent;e[0]t[1]&&(t[1]=e[1])},r.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(e,t){var a=this._extent;isNaN(e)||(a[0]=e),isNaN(t)||(a[1]=t)},r.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(e){this._isBlank=e},r}();of(ET);var za=ET;function Wq(r){var e=Math.pow(10,quantityExponent(Math.abs(r))),t=Math.abs(r/e);return t===0||t===1||t===2||t===3||t===5}function ig(r){return r.type==="interval"||r.type==="log"}function y5(r,e,t,a){var n={},i=r[1]-r[0],o=n.interval=h_(i/e,!0);t!=null&&oa&&(o=n.interval=a);var s=n.intervalPrecision=kT(o),l=n.niceTickExtent=[Kt(Math.ceil(r[0]/o)*o,s),Kt(Math.floor(r[1]/o)*o,s)];return m5(l,r),n}function og(r){var e=Math.pow(10,kc(r)),t=r/e;return t?t===2?t=3:t===3?t=5:t*=2:t=1,Kt(t*e)}function kT(r){return ta(r)+2}function OT(r,e,t){r[e]=Math.max(Math.min(r[e],t[1]),t[0])}function m5(r,e){!isFinite(r[0])&&(r[0]=e[0]),!isFinite(r[1])&&(r[1]=e[1]),OT(r,0,e),OT(r,1,e),r[0]>r[1]&&(r[0]=r[1])}function Ph(r,e){return r>=e[0]&&r<=e[1]}function Rh(r,e){return e[1]===e[0]?.5:(r-e[0])/(e[1]-e[0])}function Eh(r,e){return r*(e[1]-e[0])+e[0]}var NT=function(r){k(e,r);function e(t){var a=r.call(this,t)||this;a.type="ordinal";var n=a.getSetting("ordinalMeta");return n||(n=new ng({})),z(n)&&(n=new ng({categories:G(n,function(i){return et(i)?i.value:i})})),a._ordinalMeta=n,a._extent=a.getSetting("extent")||[0,n.categories.length-1],a}return e.prototype.parse=function(t){return t==null?NaN:U(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return t=this.parse(t),Ph(t,this._extent)&&this._ordinalMeta.categories[t]!=null},e.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),Rh(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(Eh(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],a=this._extent,n=a[0];n<=a[1];)t.push({value:n}),n++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(t==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var a=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,a.length);o=0&&t=0&&t=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(za);za.registerClass(NT);var sg=NT,Hi=Kt,BT=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return Ph(t,this._extent)},e.prototype.normalize=function(t){return Rh(t,this._extent)},e.prototype.scale=function(t){return Eh(t,this._extent)},e.prototype.setExtent=function(t,a){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(a)||(n[1]=parseFloat(a))},e.prototype.unionExtent=function(t){var a=this._extent;t[0]a[1]&&(a[1]=t[1]),this.setExtent(a[0],a[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=kT(t)},e.prototype.getTicks=function(t){var a=this._interval,n=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=[];if(!a)return s;var l=1e4;n[0]l)return[];var f=s.length?s[s.length-1].value:i[1];return n[1]>f&&(t?s.push({value:Hi(f+a,o)}):s.push({value:n[1]})),s},e.prototype.getMinorTicks=function(t){for(var a=this.getTicks(!0),n=[],i=this.getExtent(),o=1;oi[0]&&c>>1;r[n][1]n&&(this._approxInterval=n);var s=kh.length,l=Math.min(_5(kh,this._approxInterval,0,s),s-1);this._interval=kh[l][1],this._minLevelUnit=kh[Math.max(l-1,0)][0]},e.prototype.parse=function(t){return Tt(t)?t:+ea(t)},e.prototype.contain=function(t){return Ph(this.parse(t),this._extent)},e.prototype.normalize=function(t){return Rh(this.parse(t),this._extent)},e.prototype.scale=function(t){return Eh(t,this._extent)},e.type="time",e}(Tn),kh=[["second",Sp],["minute",xp],["hour",rl],["quarter-day",rl*6],["half-day",rl*12],["day",yr*1.2],["half-week",yr*3.5],["week",yr*7],["month",yr*31],["quarter",yr*95],["half-year",N1/2],["year",N1]];function S5(r,e,t,a){var n=ea(e),i=ea(t),o=function(p){return G1(n,p,a)===G1(i,p,a)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},f=function(){return u()&&o("hour")},h=function(){return f()&&o("minute")},v=function(){return h()&&o("second")},c=function(){return v()&&o("millisecond")};switch(r){case"year":return s();case"month":return l();case"day":return u();case"hour":return f();case"minute":return h();case"second":return v();case"millisecond":return c()}}function x5(r,e){return r/=yr,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function b5(r){var e=30*yr;return r/=e,r>6?6:r>3?3:r>2?2:1}function w5(r){return r/=rl,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function zT(r,e){return r/=e?xp:Sp,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function T5(r){return h_(r,!0)}function C5(r,e,t){var a=new Date(r);switch(Lo(e)){case"year":case"month":a[F1(t)](0);case"day":a[H1(t)](1);case"hour":a[W1(t)](0);case"minute":a[U1(t)](0);case"second":a[Y1(t)](0),a[Z1(t)](0)}return a.getTime()}function A5(r,e,t,a){var n=1e4,i=V1,o=0;function s(M,D,L,I,P,R,E){for(var N=new Date(D),O=D,V=N[I]();O1&&R===0&&L.unshift({value:L[0].value-O})}}for(var R=0;R=a[0]&&m<=a[1]&&h++)}var _=(a[1]-a[0])/e;if(h>_*1.5&&v>_/1.5||(u.push(g),h>_||r===i[c]))break}f=[]}}}for(var S=Rt(G(u,function(M){return Rt(M,function(D){return D.value>=a[0]&&D.value<=a[1]&&!D.notAdd})}),function(M){return M.length>0}),b=[],x=S.length-1,c=0;c0;)i*=10;var s=[Kt(L5(a[0]/i)*i),Kt(D5(a[1]/i)*i)];this._interval=i,this._niceExtent=s}},e.prototype.calcNiceExtent=function(t){Ul.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return t=Ur(t)/Ur(this.base),Ph(t,this._extent)},e.prototype.normalize=function(t){return t=Ur(t)/Ur(this.base),Rh(t,this._extent)},e.prototype.scale=function(t){return t=Eh(t,this._extent),Oh(this.base,t)},e.type="log",e}(za),HT=lg.prototype;HT.getMinorTicks=Ul.getMinorTicks,HT.getLabel=Ul.getLabel;function Nh(r,e){return M5(r,ta(e))}za.registerClass(lg);var I5=lg,P5=function(){function r(e,t,a){this._prepareParams(e,t,a)}return r.prototype._prepareParams=function(e,t,a){a[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!f&&(l=0));var v=this._determinedMin,c=this._determinedMax;return v!=null&&(s=v,u=!0),c!=null&&(l=c,f=!0),{min:s,max:l,minFixed:u,maxFixed:f,isBlank:h}},r.prototype.modifyDataMinMax=function(e,t){this[E5[e]]=t},r.prototype.setDeterminedMinMax=function(e,t){var a=R5[e];this[a]=t},r.prototype.freeze=function(){this.frozen=!0},r}(),R5={min:"_determinedMin",max:"_determinedMax"},E5={min:"_dataMin",max:"_dataMax"};function WT(r,e,t){var a=r.rawExtentInfo;return a||(a=new P5(r,e,t),r.rawExtentInfo=a,a)}function Bh(r,e){return e==null?null:Ts(e)?NaN:r.parse(e)}function UT(r,e){var t=r.type,a=WT(r,e,r.getExtent()).calculate();r.setBlank(a.isBlank);var n=a.min,i=a.max,o=e.ecModel;if(o&&t==="time"){var s=iT("bar",o),l=!1;if(A(s,function(h){l=l||h.getBaseAxis()===e.axis}),l){var u=oT(s),f=k5(n,i,e,u);n=f.min,i=f.max}}return{extent:[n,i],fixMin:a.minFixed,fixMax:a.maxFixed}}function k5(r,e,t,a){var n=t.axis.getExtent(),i=n[1]-n[0],o=xz(a,t.axis);if(o===void 0)return{min:r,max:e};var s=Infinity;A(o,function(c){s=Math.min(c.offset,s)});var l=-Infinity;A(o,function(c){l=Math.max(c.offset+c.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,f=e-r,h=1-(s+l)/i,v=f/h-f;return e+=v*(l/u),r-=v*(s/u),{min:r,max:e}}function es(r,e){var t=e,a=UT(r,t),n=a.extent,i=t.get("splitNumber");r instanceof I5&&(r.base=t.get("logBase"));var o=r.type,s=t.get("interval"),l=o==="interval"||o==="time";r.setExtent(n[0],n[1]),r.calcNiceExtent({splitNumber:i,fixMin:a.fixMin,fixMax:a.fixMax,minInterval:l?t.get("minInterval"):null,maxInterval:l?t.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function Vh(r,e){if(e=e||r.get("type"),e)switch(e){case"category":return new sg({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[Infinity,-Infinity]});case"time":return new GT({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(za.getClass(e)||Tn)}}function O5(r){var e=r.scale.getExtent(),t=e[0],a=e[1];return!(t>0&&a>0||t<0&&a<0)}function Yl(r){var e=r.getLabelModel().get("formatter"),t=r.type==="category"?r.scale.getExtent()[0]:null;return r.scale.type==="time"?function(a){return function(n,i){return r.scale.getFormattedLabel(n,i,a)}}(e):U(e)?function(a){return function(n){var i=r.scale.getLabel(n),o=a.replace("{value}",i!=null?i:"");return o}}(e):$(e)?function(a){return function(n,i){return t!=null&&(i=n.value-t),a(ug(r,n),i,n.level!=null?{level:n.level}:null)}}(e):function(a){return r.scale.getLabel(a)}}function ug(r,e){return r.type==="category"?r.scale.getLabel(e):e.value}function N5(r){var e=r.model,t=r.scale;if(!(!e.get(["axisLabel","show"])||t.isBlank())){var a,n,i=t.getExtent();t instanceof sg?n=t.count():(a=t.getTicks(),n=a.length);var o=r.getLabelModel(),s=Yl(r),l,u=1;n>40&&(u=Math.ceil(n/40));for(var f=0;fr[1]&&(r[1]=n[1])})}var z5=function(){function r(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return r.prototype.getAxis=function(e){return this._axes[e]},r.prototype.getAxes=function(){return G(this._dimList,function(e){return this._axes[e]},this)},r.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),Rt(this.getAxes(),function(t){return t.scale.type===e})},r.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},r}(),G5=z5,hg=["x","y"];function ZT(r){return r.type==="interval"||r.type==="time"}var F5=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=hg,t}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,a=this.getAxis("y").scale;if(!(!ZT(t)||!ZT(a))){var n=t.getExtent(),i=a.getExtent(),o=this.dataToPoint([n[0],i[0]]),s=this.dataToPoint([n[1],i[1]]),l=n[1]-n[0],u=i[1]-i[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,h=(s[1]-o[1])/u,v=o[0]-n[0]*f,c=o[1]-i[0]*h,p=this._transform=[f,0,0,h,v,c];this._invTransform=vo([],p)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var a=this.getAxis("x"),n=this.getAxis("y");return a.contain(a.toLocalCoord(t[0]))&&n.contain(n.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,a){var n=this.dataToPoint(t),i=this.dataToPoint(a),o=this.getArea(),s=new ht(n[0],n[1],i[0]-n[0],i[1]-n[1]);return o.intersect(s)},e.prototype.dataToPoint=function(t,a,n){n=n||[];var i=t[0],o=t[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return me(n,t,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return n[0]=s.toGlobalCoord(s.dataToCoord(i,a)),n[1]=l.toGlobalCoord(l.dataToCoord(o,a)),n},e.prototype.clampData=function(t,a){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,o=n.getExtent(),s=i.getExtent(),l=n.parse(t[0]),u=i.parse(t[1]);return a=a||[],a[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),a[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),a},e.prototype.pointToData=function(t,a){var n=[];if(this._invTransform)return me(n,t,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(t[0]),a),n[1]=o.coordToData(o.toLocalCoord(t[1]),a),n},e.prototype.getOtherAxis=function(t){return this.getAxis(t.dim==="x"?"y":"x")},e.prototype.getArea=function(){var t=this.getAxis("x").getGlobalExtent(),a=this.getAxis("y").getGlobalExtent(),n=Math.min(t[0],t[1]),i=Math.min(a[0],a[1]),o=Math.max(t[0],t[1])-n,s=Math.max(a[0],a[1])-i;return new ht(n,i,o,s)},e}(G5),H5=F5,Zl=xt();function W5(r){return r.type==="category"?Y5(r):X5(r)}function U5(r,e){return r.type==="category"?Z5(r,e):{ticks:G(r.scale.getTicks(),function(t){return t.value})}}function Y5(r){var e=r.getLabelModel(),t=XT(r,e);return!e.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:t.labelCategoryInterval}:t}function XT(r,e){var t=KT(r,"labels"),a=fg(e),n=qT(t,a);if(n)return n;var i,o;return $(a)?i=QT(r,a):(o=a==="auto"?K5(r):a,i=$T(r,o)),jT(t,a,{labels:i,labelCategoryInterval:o})}function Z5(r,e){var t=KT(r,"ticks"),a=fg(e),n=qT(t,a);if(n)return n;var i,o;if((!e.get("show")||r.scale.isBlank())&&(i=[]),$(a))i=QT(r,a,!0);else if(a==="auto"){var s=XT(r,r.getLabelModel());o=s.labelCategoryInterval,i=G(s.labels,function(l){return l.tickValue})}else o=a,i=$T(r,o,!0);return jT(t,a,{ticks:i,tickCategoryInterval:o})}function X5(r){var e=r.scale.getTicks(),t=Yl(r);return{labels:G(e,function(a,n){return{level:a.level,formattedLabel:t(a,n),rawLabel:r.scale.getLabel(a),tickValue:a.value}})}}function KT(r,e){return Zl(r)[e]||(Zl(r)[e]=[])}function qT(r,e){for(var t=0;t40&&(s=Math.max(1,Math.floor(o/40)));for(var l=i[0],u=r.dataToCoord(l+1)-r.dataToCoord(l),f=Math.abs(u*Math.cos(a)),h=Math.abs(u*Math.sin(a)),v=0,c=0;l<=i[1];l+=s){var p=0,d=0,g=Gs(t({value:l}),e.font,"center","top");p=g.width*1.3,d=g.height*1.3,v=Math.max(v,p,7),c=Math.max(c,d,7)}var y=v/f,m=c/h;isNaN(y)&&(y=Infinity),isNaN(m)&&(m=Infinity);var _=Math.max(0,Math.floor(Math.min(y,m))),S=Zl(r.model),b=r.getExtent(),x=S.lastAutoInterval,w=S.lastTickCount;return x!=null&&w!=null&&Math.abs(x-_)<=1&&Math.abs(w-o)<=1&&x>_&&S.axisExtent0===b[0]&&S.axisExtent1===b[1]?_=x:(S.lastTickCount=o,S.lastAutoInterval=_,S.axisExtent0=b[0],S.axisExtent1=b[1]),_}function j5(r){var e=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function $T(r,e,t){var a=Yl(r),n=r.scale,i=n.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=i[0],f=n.count();u!==0&&l>1&&f/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=YT(r),v=o.get("showMinLabel")||h,c=o.get("showMaxLabel")||h;v&&u!==i[0]&&d(i[0]);for(var p=u;p<=i[1];p+=l)d(p);c&&p-l!==i[1]&&d(i[1]);function d(g){var y={value:g};s.push(t?g:{formattedLabel:a(y),rawLabel:n.getLabel(y),tickValue:g})}return s}function QT(r,e,t){var a=r.scale,n=Yl(r),i=[];return A(a.getTicks(),function(o){var s=a.getLabel(o),l=o.value;e(o.value,s)&&i.push(t?l:{formattedLabel:n(o),rawLabel:s,tickValue:l})}),i}var JT=[0,1],$5=function(){function r(e,t,a){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=a||[0,0]}return r.prototype.contain=function(e){var t=this._extent,a=Math.min(t[0],t[1]),n=Math.max(t[0],t[1]);return e>=a&&e<=n},r.prototype.containData=function(e){return this.scale.contain(e)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(e){return s_(e||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(e,t){var a=this._extent;a[0]=e,a[1]=t},r.prototype.dataToCoord=function(e,t){var a=this._extent,n=this.scale;return e=n.normalize(e),this.onBand&&n.type==="ordinal"&&(a=a.slice(),tC(a,n.count())),Pt(e,JT,a,t)},r.prototype.coordToData=function(e,t){var a=this._extent,n=this.scale;this.onBand&&n.type==="ordinal"&&(a=a.slice(),tC(a,n.count()));var i=Pt(e,a,JT,t);return this.scale.scale(i)},r.prototype.pointToData=function(e,t){},r.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),a=U5(this,t),n=a.ticks,i=G(n,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=t.get("alignWithLabel");return Q5(this,i,o,e.clamp),i},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var a=this.scale.getMinorTicks(t),n=G(a,function(i){return G(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return n},r.prototype.getViewLabels=function(){return W5(this).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),a=t[1]-t[0]+(this.onBand?1:0);a===0&&(a=1);var n=Math.abs(e[1]-e[0]);return Math.abs(n)/a},r.prototype.calculateCategoryInterval=function(){return q5(this)},r}();function tC(r,e){var t=r[1]-r[0],a=e,n=t/a/2;r[0]+=n,r[1]-=n}function Q5(r,e,t,a){var n=e.length;if(!r.onBand||t||!n)return;var i=r.getExtent(),o,s;if(n===1)e[0].coord=i[0],o=e[1]={coord:i[0]};else{var l=e[n-1].tickValue-e[0].tickValue,u=(e[n-1].coord-e[0].coord)/l;A(e,function(c){c.coord-=u/2});var f=r.scale.getExtent();s=1+f[1]-e[n-1].tickValue,o={coord:e[n-1].coord+u*s},e.push(o)}var h=i[0]>i[1];v(e[0].coord,i[0])&&(a?e[0].coord=i[0]:e.shift()),a&&v(i[0],e[0].coord)&&e.unshift({coord:i[0]}),v(i[1],o.coord)&&(a?o.coord=i[1]:e.pop()),a&&v(o.coord,i[1])&&e.push({coord:i[1]});function v(c,p){return c=Kt(c),p=Kt(p),h?c>p:ca[1]&&a.reverse(),a},e.prototype.pointToData=function(t,a){return this.coordToData(this.toLocalCoord(t[this.dim==="x"?0:1]),a)},e.prototype.setCategorySortInfo=function(t){if(this.type!=="category")return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(Yr),tG=J5;function vg(r,e,t){t=t||{};var a=r.coordinateSystem,n=e.axis,i={},o=n.getAxesOnZeroOf()[0],s=n.position,l=o?"onZero":s,u=n.dim,f=a.getRect(),h=[f.x,f.x+f.width,f.y,f.y+f.height],v={left:0,right:1,top:0,bottom:1,onZero:2},c=e.get("offset")||0,p=u==="x"?[h[2]-c,h[3]+c]:[h[0]-c,h[1]+c];if(o){var d=o.toGlobalCoord(o.dataToCoord(0));p[v.onZero]=Math.max(Math.min(d,p[1]),p[0])}i.position=[u==="y"?p[v[l]]:h[0],u==="x"?p[v[l]]:h[3]],i.rotation=Math.PI/2*(u==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=g[s],i.labelOffset=o?p[v[s]]-p[v.onZero]:0,e.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),ce(t.labelInside,e.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var y=e.get(["axisLabel","rotate"]);return i.labelRotate=l==="top"?-y:y,i.z2=1,i}function eC(r){return r.get("coordinateSystem")==="cartesian2d"}function rC(r){var e={xAxisModel:null,yAxisModel:null};return A(e,function(t,a){var n=a.replace(/Model$/,""),i=r.getReferringComponents(n,te).models[0];e[a]=i}),e}var cg=Math.log;function aC(r,e,t){var a=Tn.prototype,n=a.getTicks.call(t),i=a.getTicks.call(t,!0),o=n.length-1,s=a.getInterval.call(t),l=UT(r,e),u=l.extent,f=l.fixMin,h=l.fixMax;if(r.type==="log"){var v=cg(r.base);u=[cg(u[0])/v,cg(u[1])/v]}r.setExtent(u[0],u[1]),r.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:h});var c=a.getExtent.call(r);f&&(u[0]=c[0]),h&&(u[1]=c[1]);var p=a.getInterval.call(r),d=u[0],g=u[1];if(f&&h)p=(g-d)/o;else if(f)for(g=u[0]+p*o;gu[0]&&isFinite(d)&&isFinite(u[0]);)p=og(p),d=u[1]-p*o;else{var y=r.getTicks().length-1;y>o&&(p=og(p));var m=p*o;g=Math.ceil(u[1]/p)*p,d=Kt(g-m),d<0&&u[0]>=0?(d=0,g=Kt(m)):g>0&&u[1]<=0&&(g=0,d=-Kt(m))}var _=(n[0].value-i[0].value)/s,S=(n[o].value-i[o].value)/s;if(a.setExtent.call(r,d+p*_,g+p*S),a.setInterval.call(r,p),(_||S)&&a.setNiceExtent.call(r,d+p,g-p),!1)var b}var eG=function(){function r(e,t,a){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=hg,this._initCartesian(e,t,a),this.model=e}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(e,t){var a=this._axesMap;this._updateScale(e,this.model);function n(o){var s,l=_t(o),u=l.length;if(!!u){for(var f=[],h=u-1;h>=0;h--){var v=+l[h],c=o[v],p=c.model,d=c.scale;ig(d)&&p.get("alignTicks")&&p.get("interval")==null?f.push(c):(es(d,p),ig(d)&&(s=c))}f.length&&(s||(s=f.pop(),es(s.scale,s.model)),A(f,function(g){aC(g.scale,g.model,s.scale)}))}}n(a.x),n(a.y);var i={};A(a.x,function(o){nC(a,"y",o,i)}),A(a.y,function(o){nC(a,"x",o,i)}),this.resize(this.model,t)},r.prototype.resize=function(e,t,a){var n=e.getBoxLayoutParams(),i=!a&&e.get("containLabel"),o=oe(n,{width:t.getWidth(),height:t.getHeight()});this._rect=o;var s=this._axesList;l(),i&&(A(s,function(u){if(!u.model.get(["axisLabel","inside"])){var f=N5(u);if(f){var h=u.isHorizontal()?"height":"width",v=u.model.get(["axisLabel","margin"]);o[h]-=f[h]+v,u.position==="top"?o.y+=f.height+v:u.position==="left"&&(o.x+=f.width+v)}}}),l()),A(this._coordsList,function(u){u.calcAffineTransform()});function l(){A(s,function(u){var f=u.isHorizontal(),h=f?[0,o.width]:[0,o.height],v=u.inverse?1:0;u.setExtent(h[v],h[1-v]),rG(u,f?o.x:o.y)})}},r.prototype.getAxis=function(e,t){var a=this._axesMap[e];if(a!=null)return a[t||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var a="x"+e+"y"+t;return this._coordsMap[a]}et(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var n=0,i=this._coordsList;n0?"top":"bottom",i="center"):nf(n-Cn)?(o=a>0?"bottom":"top",i="center"):(o="middle",n>0&&n0?"right":"left":i=a>0?"left":"right"),{rotation:n,textAlign:i,textVerticalAlign:o}},r.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},r.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},r}(),oC={axisLine:function(r,e,t,a){var n=e.get(["axisLine","show"]);if(n==="auto"&&r.handleAutoShown&&(n=r.handleAutoShown("axisLine")),!!n){var i=e.axis.getExtent(),o=a.transform,s=[i[0],0],l=[i[1],0],u=s[0]>l[0];o&&(me(s,s,o),me(l,l,o));var f=B({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new de({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:f,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});Fo(h.shape,h.style.lineWidth),h.anid="line",t.add(h);var v=e.get(["axisLine","symbol"]);if(v!=null){var c=e.get(["axisLine","symbolSize"]);U(v)&&(v=[v,v]),(U(c)||Tt(c))&&(c=[c,c]);var p=Yo(e.get(["axisLine","symbolOffset"])||0,c),d=c[0],g=c[1];A([{rotate:r.rotation+Math.PI/2,offset:p[0],r:0},{rotate:r.rotation-Math.PI/2,offset:p[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(y,m){if(v[m]!=="none"&&v[m]!=null){var _=re(v[m],-d/2,-g/2,d,g,f.stroke,!0),S=y.r+y.offset,b=u?l:s;_.attr({rotation:y.rotate,x:b[0]+S*Math.cos(r.rotation),y:b[1]-S*Math.sin(r.rotation),silent:!0,z2:11}),t.add(_)}})}}},axisTickLabel:function(r,e,t,a){var n=oG(t,a,e,r),i=lG(t,a,e,r);if(iG(e,i,n),sG(t,a,e,r.tickDirection),e.get(["axisLabel","hideOverlap"])){var o=Jb(G(i,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));rw(o)}},axisName:function(r,e,t,a){var n=ce(r.axisName,e.get("name"));if(!!n){var i=e.get("nameLocation"),o=r.nameDirection,s=e.getModel("nameTextStyle"),l=e.get("nameGap")||0,u=e.axis.getExtent(),f=u[0]>u[1]?-1:1,h=[i==="start"?u[0]-f*l:i==="end"?u[1]+f*l:(u[0]+u[1])/2,lC(i)?r.labelOffset+o*l:0],v,c=e.get("nameRotate");c!=null&&(c=c*Cn/180);var p;lC(i)?v=Wi.innerTextLayout(r.rotation,c!=null?c:r.rotation,o):(v=nG(r.rotation,i,c||0,u),p=r.axisNameAvailableWidth,p!=null&&(p=Math.abs(p/Math.sin(v.rotation)),!isFinite(p)&&(p=null)));var d=s.getFont(),g=e.get("nameTruncate",!0)||{},y=g.ellipsis,m=ce(r.nameTruncateMaxWidth,g.maxWidth,p),_=new Ct({x:h[0],y:h[1],rotation:v.rotation,silent:Wi.isLabelSilent(e),style:Bt(s,{text:n,font:d,overflow:"truncate",width:m,ellipsis:y,fill:s.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:s.get("align")||v.textAlign,verticalAlign:s.get("verticalAlign")||v.textVerticalAlign}),z2:1});if(Ho({el:_,componentModel:e,itemName:n}),_.__fullText=n,_.anid="name",e.get("triggerEvent")){var S=Wi.makeAxisEventDataBase(e);S.targetType="axisName",S.name=n,nt(_).eventData=S}a.add(_),_.updateTransform(),t.add(_),_.decomposeTransform()}}};function nG(r,e,t,a){var n=f_(t-r),i,o,s=a[0]>a[1],l=e==="start"&&!s||e!=="start"&&s;return nf(n-Cn/2)?(o=l?"bottom":"top",i="center"):nf(n-Cn*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",nCn/2?i=l?"left":"right":i=l?"right":"left"),{rotation:n,textAlign:i,textVerticalAlign:o}}function iG(r,e,t){if(!YT(r.axis)){var a=r.get(["axisLabel","showMinLabel"]),n=r.get(["axisLabel","showMaxLabel"]);e=e||[],t=t||[];var i=e[0],o=e[1],s=e[e.length-1],l=e[e.length-2],u=t[0],f=t[1],h=t[t.length-1],v=t[t.length-2];a===!1?(wr(i),wr(u)):sC(i,o)&&(a?(wr(o),wr(f)):(wr(i),wr(u))),n===!1?(wr(s),wr(h)):sC(l,s)&&(n?(wr(l),wr(v)):(wr(s),wr(h)))}}function wr(r){r&&(r.ignore=!0)}function sC(r,e){var t=r&&r.getBoundingRect().clone(),a=e&&e.getBoundingRect().clone();if(!(!t||!a)){var n=ku([]);return Zn(n,n,-r.rotation),t.applyTransform(Ca([],n,r.getLocalTransform())),a.applyTransform(Ca([],n,e.getLocalTransform())),t.intersect(a)}}function lC(r){return r==="middle"||r==="center"}function uC(r,e,t,a,n){for(var i=[],o=[],s=[],l=0;l=0||r===e}function pG(r){var e=gg(r);if(!!e){var t=e.axisPointerModel,a=e.axis.scale,n=t.option,i=t.get("status"),o=t.get("value");o!=null&&(o=a.parse(o));var s=yg(t);i==null&&(n.status=s?"show":"hide");var l=a.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o0&&!p.min?p.min=0:p.min!=null&&p.min<0&&!p.max&&(p.max=0);var d=l;p.color!=null&&(d=K({color:p.color},l));var g=ot(tt(p),{boundaryGap:t,splitNumber:a,scale:n,axisLine:i,axisTick:o,axisLabel:s,name:p.text,showName:u,nameLocation:"end",nameGap:h,nameTextStyle:d,triggerEvent:v},!1);if(U(f)){var y=g.name;g.name=f.replace("{value}",y!=null?y:"")}else $(f)&&(g.name=f(g.name,g));var m=new Vt(g,null,this.ecModel);return Jt(m,Wl.prototype),m.mainType="radar",m.componentIndex=this.componentIndex,m},this);this._indicatorModels=c},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:ot({lineStyle:{color:"#bbb"}},Kl.axisLine),axisLabel:Gh(Kl.axisLabel,!1),axisTick:Gh(Kl.axisTick,!1),splitLine:Gh(Kl.splitLine,!0),splitArea:Gh(Kl.splitArea,!0),indicator:[]},e}(At),IG=LG,PG=["axisLine","axisTickLabel","axisName"],RG=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i=this.group;i.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var a=t.coordinateSystem,n=a.getIndicatorAxes(),i=G(n,function(o){var s=o.model.get("showName")?o.name:"",l=new Ga(o.model,{axisName:s,position:[a.cx,a.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});A(i,function(o){A(PG,o.add,o),this.group.add(o.getGroup())},this)},e.prototype._buildSplitLineAndArea=function(t){var a=t.coordinateSystem,n=a.getIndicatorAxes();if(!n.length)return;var i=t.get("shape"),o=t.getModel("splitLine"),s=t.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),f=o.get("show"),h=s.get("show"),v=l.get("color"),c=u.get("color"),p=z(v)?v:[v],d=z(c)?c:[c],g=[],y=[];function m(R,E,N){var O=N%E.length;return R[O]=R[O]||[],O}if(i==="circle")for(var _=n[0].getTicksCoords(),S=a.cx,b=a.cy,x=0;x<_.length;x++){if(f){var w=m(g,p,x);g[w].push(new ua({shape:{cx:S,cy:b,r:_[x].coord}}))}if(h&&x<_.length-1){var w=m(y,d,x);y[w].push(new Hf({shape:{cx:S,cy:b,r0:_[x].coord,r:_[x+1].coord}}))}}else for(var T,C=G(n,function(R,E){var N=R.getTicksCoords();return T=T==null?N.length-1:Math.min(N.length-1,T),G(N,function(O){return a.coordToPoint(O.coord,E)})}),M=[],x=0;x<=T;x++){for(var D=[],L=0;L3?1.4:o>1?1.2:1.1,f=i>0?u:1/u;Sg(this,"zoom","zoomOnMouseWheel",t,{scale:f,originX:s,originY:l,isAvailableBehavior:null})}if(n){var h=Math.abs(i),v=(i>0?1:-1)*(h>3?.4:h>1?.15:.05);Sg(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:v,originX:s,originY:l,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){if(!SC(this._zr,"globalPan")){var a=t.pinchScale>1?1.1:1/1.1;Sg(this,"zoom",null,t,{scale:a,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e}(ur);function Sg(r,e,t,a,n){r.pointerChecker&&r.pointerChecker(a,n.originX,n.originY)&&(Ta(a.event),xC(r,e,t,a,n))}function xC(r,e,t,a,n){n.isAvailableBehavior=Y(Fh,null,t,a),r.trigger(e,n)}function Fh(r,e,t){var a=t[r];return!r||a&&(!U(a)||e.event[a+"Key"])}var ql=HG;function xg(r,e,t){var a=r.target;a.x+=e,a.y+=t,a.dirty()}function bg(r,e,t,a){var n=r.target,i=r.zoomLimit,o=r.zoom=r.zoom||1;if(o*=e,i){var s=i.min||0,l=i.max||Infinity;o=Math.max(Math.min(l,o),s)}var u=o/r.zoom;r.zoom=o,n.x-=(t-n.x)*(u-1),n.y-=(a-n.y)*(u-1),n.scaleX*=u,n.scaleY*=u,n.dirty()}var WG={axisPointer:1,tooltip:1,brush:1};function Hh(r,e,t){var a=e.getComponentByElement(r.topTarget),n=a&&a.coordinateSystem;return a&&a!==t&&!WG.hasOwnProperty(a.mainType)&&n&&n.model!==t}function bC(r){if(U(r)){var e=new DOMParser;r=e.parseFromString(r,"text/xml")}var t=r;for(t.nodeType===9&&(t=t.firstChild);t.nodeName.toLowerCase()!=="svg"||t.nodeType!==1;)t=t.nextSibling;return t}var wg,Wh={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},wC=_t(Wh),Uh={"alignment-baseline":"textBaseline","stop-color":"stopColor"},TC=_t(Uh),UG=function(){function r(){this._defs={},this._root=null}return r.prototype.parse=function(e,t){t=t||{};var a=bC(e);this._defsUsePending=[];var n=new rt;this._root=n;var i=[],o=a.getAttribute("viewBox")||"",s=parseFloat(a.getAttribute("width")||t.width),l=parseFloat(a.getAttribute("height")||t.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),nr(a,n,null,!0,!1);for(var u=a.firstChild;u;)this._parseNode(u,n,i,null,!1,!1),u=u.nextSibling;XG(this._defs,this._defsUsePending),this._defsUsePending=[];var f,h;if(o){var v=Yh(o);v.length>=4&&(f={x:parseFloat(v[0]||0),y:parseFloat(v[1]||0),width:parseFloat(v[2]),height:parseFloat(v[3])})}if(f&&s!=null&&l!=null&&(h=RC(f,{x:0,y:0,width:s,height:l}),!t.ignoreViewBox)){var c=n;n=new rt,n.add(c),c.scaleX=c.scaleY=h.scale,c.x=h.x,c.y=h.y}return!t.ignoreRootClip&&s!=null&&l!=null&&n.setClipPath(new bt({shape:{x:0,y:0,width:s,height:l}})),{root:n,width:s,height:l,viewBoxRect:f,viewBoxTransform:h,named:i}},r.prototype._parseNode=function(e,t,a,n,i,o){var s=e.nodeName.toLowerCase(),l,u=n;if(s==="defs"&&(i=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=t;else{if(!i){var f=wg[s];if(f&&Z(wg,s)){l=f.call(this,e,t);var h=e.getAttribute("name");if(h){var v={name:h,namedFrom:null,svgNodeTagLower:s,el:l};a.push(v),s==="g"&&(u=v)}else n&&a.push({name:n.name,namedFrom:n,svgNodeTagLower:s,el:l});t.add(l)}}var c=CC[s];if(c&&Z(CC,s)){var p=c.call(this,e),d=e.getAttribute("id");d&&(this._defs[d]=p)}}if(l&&l.isGroup)for(var g=e.firstChild;g;)g.nodeType===1?this._parseNode(g,l,a,u,i,o):g.nodeType===3&&o&&this._parseText(g,l),g=g.nextSibling},r.prototype._parseText=function(e,t){var a=new Ks({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Tr(t,a),nr(e,a,this._defsUsePending,!1,!1),YG(a,t);var n=a.style,i=n.fontSize;i&&i<9&&(n.fontSize=9,a.scaleX*=i/9,a.scaleY*=i/9);var o=(n.fontSize||n.fontFamily)&&[n.fontStyle,n.fontWeight,(n.fontSize||12)+"px",n.fontFamily||"sans-serif"].join(" ");n.font=o;var s=a.getBoundingRect();return this._textX+=s.width,t.add(a),a},r.internalField=function(){wg={g:function(e,t){var a=new rt;return Tr(t,a),nr(e,a,this._defsUsePending,!1,!1),a},rect:function(e,t){var a=new bt;return Tr(t,a),nr(e,a,this._defsUsePending,!1,!1),a.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")}),a.silent=!0,a},circle:function(e,t){var a=new ua;return Tr(t,a),nr(e,a,this._defsUsePending,!1,!1),a.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),a.silent=!0,a},line:function(e,t){var a=new de;return Tr(t,a),nr(e,a,this._defsUsePending,!1,!1),a.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")}),a.silent=!0,a},ellipse:function(e,t){var a=new Jp;return Tr(t,a),nr(e,a,this._defsUsePending,!1,!1),a.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")}),a.silent=!0,a},polygon:function(e,t){var a=e.getAttribute("points"),n;a&&(n=DC(a));var i=new Ye({shape:{points:n||[]},silent:!0});return Tr(t,i),nr(e,i,this._defsUsePending,!1,!1),i},polyline:function(e,t){var a=e.getAttribute("points"),n;a&&(n=DC(a));var i=new Ze({shape:{points:n||[]},silent:!0});return Tr(t,i),nr(e,i,this._defsUsePending,!1,!1),i},image:function(e,t){var a=new _e;return Tr(t,a),nr(e,a,this._defsUsePending,!1,!1),a.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),a.silent=!0,a},text:function(e,t){var a=e.getAttribute("x")||"0",n=e.getAttribute("y")||"0",i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(a)+parseFloat(i),this._textY=parseFloat(n)+parseFloat(o);var s=new rt;return Tr(t,s),nr(e,s,this._defsUsePending,!1,!0),s},tspan:function(e,t){var a=e.getAttribute("x"),n=e.getAttribute("y");a!=null&&(this._textX=parseFloat(a)),n!=null&&(this._textY=parseFloat(n));var i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",s=new rt;return Tr(t,s),nr(e,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),s},path:function(e,t){var a=e.getAttribute("d")||"",n=gx(a);return Tr(t,n),nr(e,n,this._defsUsePending,!1,!1),n.silent=!0,n}}}(),r}(),CC={lineargradient:function(r){var e=parseInt(r.getAttribute("x1")||"0",10),t=parseInt(r.getAttribute("y1")||"0",10),a=parseInt(r.getAttribute("x2")||"10",10),n=parseInt(r.getAttribute("y2")||"0",10),i=new gl(e,t,a,n);return AC(r,i),MC(r,i),i},radialgradient:function(r){var e=parseInt(r.getAttribute("cx")||"0",10),t=parseInt(r.getAttribute("cy")||"0",10),a=parseInt(r.getAttribute("r")||"0",10),n=new Rx(e,t,a);return AC(r,n),MC(r,n),n}};function AC(r,e){var t=r.getAttribute("gradientUnits");t==="userSpaceOnUse"&&(e.global=!0)}function MC(r,e){for(var t=r.firstChild;t;){if(t.nodeType===1&&t.nodeName.toLocaleLowerCase()==="stop"){var a=t.getAttribute("offset"),n=void 0;a&&a.indexOf("%")>0?n=parseInt(a,10)/100:a?n=parseFloat(a):n=0;var i={};PC(t,i,i);var o=i.stopColor||t.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:n,color:o})}t=t.nextSibling}}function Tr(r,e){r&&r.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),K(e.__inheritedStyle,r.__inheritedStyle))}function DC(r){for(var e=Yh(r),t=[],a=0;a0;i-=2){var o=a[i],s=a[i-1],l=Yh(o);switch(n=n||hr(),s){case"translate":jr(n,n,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":$v(n,n,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Zn(n,n,-parseFloat(l[0])*Tg);break;case"skewX":var u=Math.tan(parseFloat(l[0])*Tg);Ca(n,[1,0,u,1,0,0],n);break;case"skewY":var f=Math.tan(parseFloat(l[0])*Tg);Ca(n,[1,f,0,1,0,0],n);break;case"matrix":n[0]=parseFloat(l[0]),n[1]=parseFloat(l[1]),n[2]=parseFloat(l[2]),n[3]=parseFloat(l[3]),n[4]=parseFloat(l[4]),n[5]=parseFloat(l[5]);break}}e.setLocalTransform(n)}}var IC=/([^\s:;]+)\s*:\s*([^:;]+)/g;function PC(r,e,t){var a=r.getAttribute("style");if(!!a){IC.lastIndex=0;for(var n;(n=IC.exec(a))!=null;){var i=n[1],o=Z(Wh,i)?Wh[i]:null;o&&(e[o]=n[2]);var s=Z(Uh,i)?Uh[i]:null;s&&(t[s]=n[2])}}}function $G(r,e,t){for(var a=0;an&&(a=o,n=l)}if(a)return eF(a.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},e.prototype.getBoundingRect=function(t){var a=this._rect;if(a&&!t)return a;var n=[Infinity,Infinity],i=[-Infinity,-Infinity],o=this.geometries;return A(o,function(s){s.type==="polygon"?kC(s.exterior,n,i,t):A(s.points,function(l){kC(l,n,i,t)})}),isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])||(n[0]=n[1]=i[0]=i[1]=0),a=new ht(n[0],n[1],i[0]-n[0],i[1]-n[1]),t||(this._rect=a),a},e.prototype.contain=function(t){var a=this.getBoundingRect(),n=this.geometries;if(!a.contain(t[0],t[1]))return!1;t:for(var i=0,o=n.length;i>1^-(s&1),l=l>>1^-(l&1),s+=n,l+=i,n=s,i=l,a.push([s/t,l/t])}return a}function lF(r,e){return r=sF(r),G(Rt(r.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var a=t.properties,n=t.geometry,i=[];switch(n.type){case"Polygon":var o=n.coordinates;i.push(new NC(o[0],o.slice(1)));break;case"MultiPolygon":A(n.coordinates,function(l){l[0]&&i.push(new NC(l[0],l.slice(1)))});break;case"LineString":i.push(new BC([n.coordinates]));break;case"MultiLineString":i.push(new BC(n.coordinates))}var s=new VC(a[e||"name"],i,a.cp);return s.properties=a,s})}for(var Mg=[126,25],GC="\u5357\u6D77\u8BF8\u5C9B",Zi=[[[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]]],Xi=0;Xi0,g={api:a,geo:l,mapOrGeoModel:e,data:s,isVisualEncodedByVisualMap:d,isGeo:o,transformInfoRaw:v};l.resourceType==="geoJSON"?this._buildGeoJSON(g):l.resourceType==="geoSVG"&&this._buildSVG(g),this._updateController(e,t,a),this._updateMapSelectHandler(e,u,a,n)},r.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=q(),a=q(),n=this._regionsGroup,i=e.transformInfoRaw,o=e.mapOrGeoModel,s=e.data,l=e.geo.projection,u=l&&l.stream;function f(c,p){return p&&(c=p(c)),c&&[c[0]*i.scaleX+i.x,c[1]*i.scaleY+i.y]}function h(c){for(var p=[],d=!u&&l&&l.project,g=0;g=0)&&(v=n);var c=o?{normal:{align:"center",verticalAlign:"middle"}}:null;xe(e,ue(a),{labelFetcher:v,labelDataIndex:h,defaultText:t},c);var p=e.getTextContent();if(p&&(FC(p).ignore=p.ignore,e.textConfig&&o)){var d=e.getBoundingRect().clone();e.textConfig.layoutRect=d,e.textConfig.position=[(o[0]-d.x)/d.width*100+"%",(o[1]-d.y)/d.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function YC(r,e,t,a,n,i){r.data?r.data.setItemGraphicEl(i,e):nt(e).eventData={componentType:"geo",componentIndex:n.componentIndex,geoIndex:n.componentIndex,name:t,region:a&&a.option||{}}}function ZC(r,e,t,a,n){r.data||Ho({el:e,componentModel:n,itemName:t,itemTooltipOption:a.get("tooltip")})}function XC(r,e,t,a,n){e.highDownSilentOnTouch=!!n.get("selectedMode");var i=a.getModel("emphasis"),o=i.get("focus");return Yt(e,o,i.get("blurScope"),i.get("disabled")),r.isGeo&&mE(e,n,t),o}function KC(r,e,t){var a=[],n;function i(){n=[]}function o(){n.length&&(a.push(n),n=[])}var s=e({polygonStart:i,polygonEnd:o,lineStart:i,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&n.push([l,u])},sphere:function(){}});return!t&&s.polygonStart(),A(r,function(l){s.lineStart();for(var u=0;u-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},e}(Wt),CF=TF;function AF(r,e){var t={};return A(r,function(a){a.each(a.mapDimension("value"),function(n,i){var o="ec-"+a.getName(i);t[o]=t[o]||[],isNaN(n)||t[o].push(n)})}),r[0].map(r[0].mapDimension("value"),function(a,n){for(var i="ec-"+r[0].getName(n),o=0,s=Infinity,l=-Infinity,u=t[i].length,f=0;f1?(S.width=_,S.height=_/g):(S.height=_,S.width=_*g),S.y=m[1]-S.height/2,S.x=m[0]-S.width/2;else{var b=r.getBoxLayoutParams();b.aspect=g,S=oe(b,{width:p,height:d})}this.setViewRect(S.x,S.y,S.width,S.height),this.setCenter(r.get("center"),e),this.setZoom(r.get("zoom"))}function PF(r,e){A(e.get("geoCoord"),function(t,a){r.addGeoCoord(a,t)})}var RF=function(){function r(){this.dimensions=QC}return r.prototype.create=function(e,t){var a=[];function n(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}e.eachComponent("geo",function(o,s){var l=o.get("map"),u=new eA(l+s,l,B({nameMap:o.get("nameMap")},n(o)));u.zoomLimit=o.get("scaleLimit"),a.push(u),o.coordinateSystem=u,u.model=o,u.resize=rA,u.resize(o,t)}),e.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=a[l]}});var i={};return e.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();i[s]=i[s]||[],i[s].push(o)}}),A(i,function(o,s){var l=G(o,function(f){return f.get("nameMap")}),u=new eA(s,s,B({nameMap:Kr(l)},n(o[0])));u.zoomLimit=ce.apply(null,G(o,function(f){return f.get("scaleLimit")})),a.push(u),u.resize=rA,u.resize(o[0],t),A(o,function(f){f.coordinateSystem=u,PF(u,f)})}),a},r.prototype.getFilledRegions=function(e,t,a,n){for(var i=(e||[]).slice(),o=q(),s=0;s=0;o--){var s=n[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},t.push(s)}}function FF(r,e){var t=r.isExpand?r.children:[],a=r.parentNode.children,n=r.hierNode.i?a[r.hierNode.i-1]:null;if(t.length){UF(r);var i=(t[0].hierNode.prelim+t[t.length-1].hierNode.prelim)/2;n?(r.hierNode.prelim=n.hierNode.prelim+e(r,n),r.hierNode.modifier=r.hierNode.prelim-i):r.hierNode.prelim=i}else n&&(r.hierNode.prelim=n.hierNode.prelim+e(r,n));r.parentNode.hierNode.defaultAncestor=YF(r,n,r.parentNode.hierNode.defaultAncestor||a[0],e)}function HF(r){var e=r.hierNode.prelim+r.parentNode.hierNode.modifier;r.setLayout({x:e},!0),r.hierNode.modifier+=r.parentNode.hierNode.modifier}function oA(r){return arguments.length?r:KF}function Ql(r,e){return r-=Math.PI/2,{x:e*Math.cos(r),y:e*Math.sin(r)}}function WF(r,e){return oe(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function UF(r){for(var e=r.children,t=e.length,a=0,n=0;--t>=0;){var i=e[t];i.hierNode.prelim+=a,i.hierNode.modifier+=a,n+=i.hierNode.change,a+=i.hierNode.shift+n}}function YF(r,e,t,a){if(e){for(var n=r,i=r,o=i.parentNode.children[0],s=e,l=n.hierNode.modifier,u=i.hierNode.modifier,f=o.hierNode.modifier,h=s.hierNode.modifier;s=Ig(s),i=Pg(i),s&&i;){n=Ig(n),o=Pg(o),n.hierNode.ancestor=r;var v=s.hierNode.prelim+h-i.hierNode.prelim-u+a(s,i);v>0&&(XF(ZF(s,r,t),r,v),u+=v,l+=v),h+=s.hierNode.modifier,u+=i.hierNode.modifier,l+=n.hierNode.modifier,f+=o.hierNode.modifier}s&&!Ig(n)&&(n.hierNode.thread=s,n.hierNode.modifier+=h-l),i&&!Pg(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=u-f,t=r)}return t}function Ig(r){var e=r.children;return e.length&&r.isExpand?e[e.length-1]:r.hierNode.thread}function Pg(r){var e=r.children;return e.length&&r.isExpand?e[0]:r.hierNode.thread}function ZF(r,e,t){return r.hierNode.ancestor.parentNode===e.parentNode?r.hierNode.ancestor:t}function XF(r,e,t){var a=t/(e.hierNode.i-r.hierNode.i);e.hierNode.change-=a,e.hierNode.shift+=t,e.hierNode.modifier+=t,e.hierNode.prelim+=t,r.hierNode.change+=a}function KF(r,e){return r.parentNode===e.parentNode?1:2}var qF=function(){function r(){this.parentPoint=[],this.childPoints=[]}return r}(),jF=function(r){k(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new qF},e.prototype.buildPath=function(t,a){var n=a.childPoints,i=n.length,o=a.parentPoint,s=n[0],l=n[i-1];if(i===1){t.moveTo(o[0],o[1]),t.lineTo(s[0],s[1]);return}var u=a.orient,f=u==="TB"||u==="BT"?0:1,h=1-f,v=H(a.forkPosition,1),c=[];c[f]=o[f],c[h]=o[h]+(l[h]-o[h])*v,t.moveTo(o[0],o[1]),t.lineTo(c[0],c[1]),t.moveTo(s[0],s[1]),c[f]=s[f],t.lineTo(c[0],c[1]),c[f]=l[f],t.lineTo(c[0],c[1]),t.lineTo(l[0],l[1]);for(var p=1;pm.x,b||(S=S-Math.PI));var w=b?"left":"right",T=s.getModel("label"),C=T.get("rotate"),M=C*(Math.PI/180),D=g.getTextContent();D&&(g.setTextConfig({position:T.get("position")||w,rotation:C==null?-S:M,origin:"center"}),D.setStyle("verticalAlign","middle"))}var L=s.get(["emphasis","focus"]),I=L==="relative"?Du(o.getAncestorsIndices(),o.getDescendantIndices()):L==="ancestor"?o.getAncestorsIndices():L==="descendant"?o.getDescendantIndices():null;I&&(nt(t).focus=I),QF(n,o,f,t,p,c,d,a),t.__edge&&(t.onHoverStateChange=function(P){if(P!=="blur"){var R=o.parentNode&&r.getItemGraphicEl(o.parentNode.dataIndex);R&&R.hoverState===qs||mf(t.__edge,P)}})}function QF(r,e,t,a,n,i,o,s){var l=e.getModel(),u=r.get("edgeShape"),f=r.get("layout"),h=r.getOrient(),v=r.get(["lineStyle","curveness"]),c=r.get("edgeForkPosition"),p=l.getModel("lineStyle").getLineStyle(),d=a.__edge;if(u==="curve")e.parentNode&&e.parentNode!==t&&(d||(d=a.__edge=new Wf({shape:Rg(f,h,v,n,n)})),Mt(d,{shape:Rg(f,h,v,i,o)},r));else if(u==="polyline"&&f==="orthogonal"&&e!==t&&e.children&&e.children.length!==0&&e.isExpand===!0){for(var g=e.children,y=[],m=0;mt&&(t=n.height)}this.height=t+1},r.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,a=this.children,n=a.length;t=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},r.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},r.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostTree,a=t.data.getItemModel(this.dataIndex);return a.getModel(e)}},r.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},r.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},r.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},r.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},r.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},r.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t=0){var a=t.getData().tree.root,n=r.targetNode;if(U(n)&&(n=a.getNodeById(n)),n&&a.contains(n))return{node:n};var i=r.targetNodeId;if(i!=null&&(n=a.getNodeById(i)))return{node:n}}}function pA(r){for(var e=[];r;)r=r.parentNode,r&&e.push(r);return e.reverse()}function Og(r,e){var t=pA(r);return st(t,e)>=0}function Xh(r,e){for(var t=[];r;){var a=r.dataIndex;t.push({name:r.name,dataIndex:a,value:e.getRawValue(a)}),r=r.parentNode}return t.reverse(),t}var f3=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t){var a={name:t.name,children:t.data},n=t.leaves||{},i=new Vt(n,this,this.ecModel),o=kg.createTree(a,this,s);function s(h){h.wrapMethod("getItemModel",function(v,c){var p=o.getNodeByDataIndex(c);return p&&p.children.length&&p.isExpand||(v.parentModel=i),v})}var l=0;o.eachNode("preorder",function(h){h.depth>l&&(l=h.depth)});var u=t.expandAndCollapse,f=u&&t.initialTreeDepth>=0?t.initialTreeDepth:l;return o.root.eachNode("preorder",function(h){var v=h.hostTree.data.getRawDataItem(h.dataIndex);h.isExpand=v&&v.collapsed!=null?!v.collapsed:h.depth<=f}),o.data},e.prototype.getOrient=function(){var t=this.get("orient");return t==="horizontal"?t="LR":t==="vertical"&&(t="TB"),t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.formatTooltip=function(t,a,n){for(var i=this.getData().tree,o=i.root.children[0],s=i.getNodeByDataIndex(t),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return fe("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},e.prototype.getDataParams=function(t){var a=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(t);return a.treeAncestors=Xh(n,this),a.collapsed=!n.isExpand,a},e.type="series.tree",e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e}(Wt),h3=f3;function v3(r,e,t){for(var a=[r],n=[],i;i=a.pop();)if(n.push(i),i.isExpand){var o=i.children;if(o.length)for(var s=0;s=0;i--)t.push(n[i])}}function c3(r,e){r.eachSeriesByType("tree",function(t){p3(t,e)})}function p3(r,e){var t=WF(r,e);r.layoutInfo=t;var a=r.get("layout"),n=0,i=0,o=null;a==="radial"?(n=2*Math.PI,i=Math.min(t.height,t.width)/2,o=oA(function(_,S){return(_.parentNode===S.parentNode?1:2)/_.depth})):(n=t.width,i=t.height,o=oA());var s=r.getData().tree.root,l=s.children[0];if(l){GF(s),v3(l,FF,o),s.hierNode.modifier=-l.hierNode.prelim,tu(l,HF);var u=l,f=l,h=l;tu(l,function(_){var S=_.getLayout().x;Sf.getLayout().x&&(f=_),_.depth>h.depth&&(h=_)});var v=u===f?1:o(u,f)/2,c=v-u.getLayout().x,p=0,d=0,g=0,y=0;if(a==="radial")p=n/(f.getLayout().x+v+c),d=i/(h.depth-1||1),tu(l,function(_){g=(_.getLayout().x+c)*p,y=(_.depth-1)*d;var S=Ql(g,y);_.setLayout({x:S.x,y:S.y,rawX:g,rawY:y},!0)});else{var m=r.getOrient();m==="RL"||m==="LR"?(d=i/(f.getLayout().x+v+c),p=n/(h.depth-1||1),tu(l,function(_){y=(_.getLayout().x+c)*d,g=m==="LR"?(_.depth-1)*p:n-(_.depth-1)*p,_.setLayout({x:g,y},!0)})):(m==="TB"||m==="BT")&&(p=n/(f.getLayout().x+v+c),d=i/(h.depth-1||1),tu(l,function(_){g=(_.getLayout().x+c)*p,y=m==="TB"?(_.depth-1)*d:i-(_.depth-1)*d,_.setLayout({x:g,y},!0)}))}}}function d3(r){r.eachSeriesByType("tree",function(e){var t=e.getData(),a=t.tree;a.eachNode(function(n){var i=n.getModel(),o=i.getModel("itemStyle").getItemStyle(),s=t.ensureUniqueItemVisual(n.dataIndex,"style");B(s,o)})})}function g3(r){r.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},function(a){var n=e.dataIndex,i=a.getData().tree,o=i.getNodeByDataIndex(n);o.isExpand=!o.isExpand})}),r.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(e,t,a){t.eachComponent({mainType:"series",subType:"tree",query:e},function(n){var i=n.coordinateSystem,o=Lg(i,e,void 0,a);n.setCenter&&n.setCenter(o.center),n.setZoom&&n.setZoom(o.zoom)})})}function y3(r){r.registerChartView(JF),r.registerSeriesModel(h3),r.registerLayout(c3),r.registerVisual(d3),g3(r)}var dA=["treemapZoomToNode","treemapRender","treemapMove"];function m3(r){for(var e=0;e1;)i=i.parentNode;var o=Pp(r.ecModel,i.name||i.dataIndex+"",a);n.setVisual("decal",o)})}var _3=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.preventUsingHoverLayer=!0,t}return e.prototype.getInitialData=function(t,a){var n={name:t.name,children:t.data};yA(n);var i=t.levels||[],o=this.designatedVisualItemStyle={},s=new Vt({itemStyle:o},this,a);i=t.levels=S3(i,a);var l=G(i||[],function(h){return new Vt(h,s,a)},this),u=kg.createTree(n,this,f);function f(h){h.wrapMethod("getItemModel",function(v,c){var p=u.getNodeByDataIndex(c),d=p?l[p.depth]:null;return v.parentModel=d||s,v})}return u.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,a,n){var i=this.getData(),o=this.getRawValue(t),s=i.getName(t);return fe("nameValue",{name:s,value:o})},e.prototype.getDataParams=function(t){var a=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(t);return a.treeAncestors=Xh(n,this),a.treePathInfo=a.treeAncestors,a},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},B(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var a=this._idIndexMap;a||(a=this._idIndexMap=q(),this._idIndexMapCount=0);var n=a.get(t);return n==null&&a.set(t,n=this._idIndexMapCount++),n},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var a=this.getRawData().tree.root;(!t||t!==a&&!a.contains(t))&&(this._viewRoot=a)},e.prototype.enableAriaDecal=function(){gA(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"\u25B6",zoomToNodeRatio:.32*.32,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e}(Wt);function yA(r){var e=0;A(r.children,function(a){yA(a);var n=a.value;z(n)&&(n=n[0]),e+=n});var t=r.value;z(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),z(r.value)?r.value[0]=t:r.value=t}function S3(r,e){var t=Ot(e.get("color")),a=Ot(e.get(["aria","decal","decals"]));if(!!t){r=r||[];var n,i;A(r,function(s){var l=new Vt(s),u=l.get("color"),f=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(n=!0),(l.get(["itemStyle","decal"])||f&&f!=="none")&&(i=!0)});var o=r[0]||(r[0]={});return n||(o.color=t.slice()),!i&&a&&(o.decal=a.slice()),r}}var x3=_3,b3=8,mA=8,Ng=5,w3=function(){function r(e){this.group=new rt,e.add(this.group)}return r.prototype.render=function(e,t,a,n){var i=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!i.get("show")||!a)){var s=i.getModel("itemStyle"),l=i.getModel("emphasis"),u=s.getModel("textStyle"),f=l.getModel(["itemStyle","textStyle"]),h={pos:{left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(a,h,u),this._renderContent(e,h,s,l,u,f,n),Pf(o,h.pos,h.box)}},r.prototype._prepare=function(e,t,a){for(var n=e;n;n=n.parentNode){var i=ie(n.getModel().get("name"),""),o=a.getTextRect(i),s=Math.max(o.width+b3*2,t.emptyItemWidth);t.totalWidth+=s+mA,t.renderList.push({node:n,text:i,width:s})}},r.prototype._renderContent=function(e,t,a,n,i,o,s){for(var l=0,u=t.emptyItemWidth,f=e.get(["breadcrumb","height"]),h=UE(t.pos,t.box),v=t.totalWidth,c=t.renderList,p=n.getModel("itemStyle").getItemStyle(),d=c.length-1;d>=0;d--){var g=c[d],y=g.node,m=g.width,_=g.text;v>h.width&&(v-=m-u,m=u,_=null);var S=new Ye({shape:{points:T3(l,0,m,f,d===c.length-1,d===0)},style:K(a.getItemStyle(),{lineJoin:"bevel"}),textContent:new Ct({style:Bt(i,{text:_})}),textConfig:{position:"inside"},z2:wo*1e4,onclick:it(s,y)});S.disableLabelAnimation=!0,S.getTextContent().ensureState("emphasis").style=Bt(o,{text:_}),S.ensureState("emphasis").style=p,Yt(S,n.get("focus"),n.get("blurScope"),n.get("disabled")),this.group.add(S),C3(S,e,y),l+=m+mA}},r.prototype.remove=function(){this.group.removeAll()},r}();function T3(r,e,t,a,n,i){var o=[[n?r:r-Ng,e],[r+t,e],[r+t,e+a],[n?r:r-Ng,e+a]];return!i&&o.splice(2,0,[r+t+Ng,e+a/2]),!n&&o.push([r,e+a/2]),o}function C3(r,e,t){nt(r).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:t&&t.dataIndex,name:t&&t.name},treePathInfo:t&&Xh(t,e)}}var A3=w3,M3=function(){function r(){this._storage=[],this._elExistsMap={}}return r.prototype.add=function(e,t,a,n,i){return this._elExistsMap[e.id]?!1:(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:a,delay:n,easing:i}),!0)},r.prototype.finished=function(e){return this._finishedCallback=e,this},r.prototype.start=function(){for(var e=this,t=this._storage.length,a=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},n=0,i=this._storage.length;nSA||Math.abs(t.dy)>SA)){var a=this.seriesModel.getData().tree.root;if(!a)return;var n=a.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+t.dx,y:n.y+t.dy,width:n.width,height:n.height}})}},e.prototype._onZoom=function(t){var a=t.originX,n=t.originY;if(this._state!=="animating"){var i=this.seriesModel.getData().tree.root;if(!i)return;var o=i.getLayout();if(!o)return;var s=new ht(o.x,o.y,o.width,o.height),l=this.seriesModel.layoutInfo;a-=l.x,n-=l.y;var u=hr();jr(u,u,[-a,-n]),$v(u,u,[t.scale,t.scale]),jr(u,u,[a,n]),s.applyTransform(u),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:s.x,y:s.y,width:s.width,height:s.height}})}},e.prototype._initEvents=function(t){var a=this;t.on("click",function(n){if(a._state==="ready"){var i=a.seriesModel.get("nodeClick",!0);if(!!i){var o=a.findTarget(n.offsetX,n.offsetY);if(!!o){var s=o.node;if(s.getLayout().isLeafRoot)a._rootToNode(o);else if(i==="zoomToNode")a._zoomToNode(o);else if(i==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),f=l.get("target",!0)||"blank";u&&Lf(u,f)}}}}},this)},e.prototype._renderBreadcrumb=function(t,a,n){var i=this;n||(n=t.get("leafDepth",!0)!=null?{node:t.getViewRoot()}:this.findTarget(a.getWidth()/2,a.getHeight()/2),n||(n={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new A3(this.group))).render(t,a,n.node,function(o){i._state!=="animating"&&(Og(t.getViewRoot(),o)?i._rootToNode({node:o}):i._zoomToNode({node:o}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=eu(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,a){var n,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(t,a),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)n={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),n},e.type="treemap",e}(zt);function eu(){return{nodeGroup:[],background:[],content:[]}}function E3(r,e,t,a,n,i,o,s,l,u){if(!o)return;var f=o.getLayout(),h=r.getData(),v=o.getModel();if(h.setItemGraphicEl(o.dataIndex,null),!f||!f.isInView)return;var c=f.width,p=f.height,d=f.borderWidth,g=f.invisible,y=o.getRawIndex(),m=s&&s.getRawIndex(),_=o.viewChildren,S=f.upperHeight,b=_&&_.length,x=v.getModel("itemStyle"),w=v.getModel(["emphasis","itemStyle"]),T=v.getModel(["blur","itemStyle"]),C=v.getModel(["select","itemStyle"]),M=x.get("borderRadius")||0,D=J("nodeGroup",Bg);if(!D)return;if(l.add(D),D.x=f.x||0,D.y=f.y||0,D.markRedraw(),Kh(D).nodeWidth=c,Kh(D).nodeHeight=p,f.isAboveViewRoot)return D;var L=J("background",_A,u,I3);L&&V(D,L,b&&f.upperLabelHeight);var I=v.getModel("emphasis"),P=I.get("focus"),R=I.get("blurScope"),E=I.get("disabled"),N=P==="ancestor"?o.getAncestorsIndices():P==="descendant"?o.getDescendantIndices():P;if(b)Js(D)&&gi(D,!1),L&&(gi(L,!E),h.setItemGraphicEl(o.dataIndex,L),hp(L,N,R));else{var O=J("content",_A,u,P3);O&&F(D,O),L.disableMorphing=!0,L&&Js(L)&&gi(L,!1),gi(D,!E),h.setItemGraphicEl(o.dataIndex,D),hp(D,N,R)}return D;function V(gt,at,yt){var vt=nt(at);if(vt.dataIndex=o.dataIndex,vt.seriesIndex=r.seriesIndex,at.setShape({x:0,y:0,width:c,height:p,r:M}),g)W(at);else{at.invisible=!1;var j=o.getVisual("style"),ut=j.stroke,Ut=wA(x);Ut.fill=ut;var wt=Ki(w);wt.fill=w.get("borderColor");var qt=Ki(T);qt.fill=T.get("borderColor");var Xt=Ki(C);if(Xt.fill=C.get("borderColor"),yt){var Le=c-2*d;X(at,ut,j.opacity,{x:d,y:0,width:Le,height:S})}else at.removeTextContent();at.setStyle(Ut),at.ensureState("emphasis").style=wt,at.ensureState("blur").style=qt,at.ensureState("select").style=Xt,pi(at)}gt.add(at)}function F(gt,at){var yt=nt(at);yt.dataIndex=o.dataIndex,yt.seriesIndex=r.seriesIndex;var vt=Math.max(c-2*d,0),j=Math.max(p-2*d,0);if(at.culling=!0,at.setShape({x:d,y:d,width:vt,height:j,r:M}),g)W(at);else{at.invisible=!1;var ut=o.getVisual("style"),Ut=ut.fill,wt=wA(x);wt.fill=Ut,wt.decal=ut.decal;var qt=Ki(w),Xt=Ki(T),Le=Ki(C);X(at,Ut,ut.opacity,null),at.setStyle(wt),at.ensureState("emphasis").style=qt,at.ensureState("blur").style=Xt,at.ensureState("select").style=Le,pi(at)}gt.add(at)}function W(gt){!gt.invisible&&i.push(gt)}function X(gt,at,yt,vt){var j=v.getModel(vt?bA:xA),ut=ie(v.get("name"),null),Ut=j.getShallow("show");xe(gt,ue(v,vt?bA:xA),{defaultText:Ut?ut:null,inheritColor:at,defaultOpacity:yt,labelFetcher:r,labelDataIndex:o.dataIndex});var wt=gt.getTextContent();if(!!wt){var qt=wt.style,Xt=Bv(qt.padding||0);vt&&(gt.setTextConfig({layoutRect:vt}),wt.disableLabelLayout=!0),wt.beforeUpdate=function(){var Za=Math.max((vt?vt.width:gt.shape.width)-Xt[1]-Xt[3],0),je=Math.max((vt?vt.height:gt.shape.height)-Xt[0]-Xt[2],0);(qt.width!==Za||qt.height!==je)&&wt.setStyle({width:Za,height:je})},qt.truncateMinChar=2,qt.lineOverflow="truncate",Q(qt,vt,f);var Le=wt.getState("emphasis");Q(Le?Le.style:null,vt,f)}}function Q(gt,at,yt){var vt=gt?gt.text:null;if(!at&&yt.isLeafRoot&&vt!=null){var j=r.get("drillDownIcon",!0);gt.text=j?j+" "+vt:vt}}function J(gt,at,yt,vt){var j=m!=null&&t[gt][m],ut=n[gt];return j?(t[gt][m]=null,dt(ut,j)):g||(j=new at,j instanceof dr&&(j.z2=k3(yt,vt)),Dt(ut,j)),e[gt][y]=j}function dt(gt,at){var yt=gt[y]={};at instanceof Bg?(yt.oldX=at.x,yt.oldY=at.y):yt.oldShape=B({},at.shape)}function Dt(gt,at){var yt=gt[y]={},vt=o.parentNode,j=at instanceof rt;if(vt&&(!a||a.direction==="drillDown")){var ut=0,Ut=0,wt=n.background[vt.getRawIndex()];!a&&wt&&wt.oldShape&&(ut=wt.oldShape.width,Ut=wt.oldShape.height),j?(yt.oldX=0,yt.oldY=Ut):yt.oldShape={x:ut,y:Ut,width:0,height:0}}yt.fadein=!j}}function k3(r,e){return r*L3+e}var O3=R3,ru=A,N3=et,qh=-1,Vg=function(){function r(e){var t=e.mappingMethod,a=e.type,n=this.option=tt(e);this.type=a,this.mappingMethod=t,this._normalizeData=z3[t];var i=r.visualHandlers[a];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[t],t==="piecewise"?(zg(n),B3(n)):t==="category"?n.categories?V3(n):zg(n,!0):(Pe(t!=="linear"||n.dataExtent),zg(n))}return r.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},r.prototype.getNormalizer=function(){return Y(this._normalizeData,this)},r.listVisualTypes=function(){return _t(r.visualHandlers)},r.isValidType=function(e){return r.visualHandlers.hasOwnProperty(e)},r.eachVisual=function(e,t,a){et(e)?A(e,t,a):t.call(a,e)},r.mapVisual=function(e,t,a){var n,i=z(e)?[]:et(e)?{}:(n=!0,null);return r.eachVisual(e,function(o,s){var l=t.call(a,o,s);n?i=l:i[s]=l}),i},r.retrieveVisuals=function(e){var t={},a;return e&&ru(r.visualHandlers,function(n,i){e.hasOwnProperty(i)&&(t[i]=e[i],a=!0)}),a?t:null},r.prepareVisualTypes=function(e){if(z(e))e=e.slice();else if(N3(e)){var t=[];ru(e,function(a,n){t.push(n)}),e=t}else return[];return e.sort(function(a,n){return n==="color"&&a!=="color"&&a.indexOf("color")===0?1:-1}),e},r.dependsOn=function(e,t){return t==="color"?!!(e&&e.indexOf(t)===0):e===t},r.findPieceIndex=function(e,t,a){for(var n,i=Infinity,o=0,s=t.length;o=0;i--)a[i]==null&&(delete t[e[i]],e.pop())}function zg(r,e){var t=r.visual,a=[];et(t)?ru(t,function(i){a.push(i)}):t!=null&&a.push(t);var n={color:1,symbol:1};!e&&a.length===1&&!n.hasOwnProperty(r.type)&&(a[1]=a[0]),CA(r,a)}function jh(r){return{applyVisual:function(e,t,a){var n=this.mapValueToVisual(e);a("color",r(t("color"),n))},_normalizedToVisual:Gg([0,1])}}function TA(r){var e=this.option.visual;return e[Math.round(Pt(r,[0,1],[0,e.length-1],!0))]||{}}function au(r){return function(e,t,a){a(r,this.mapValueToVisual(e))}}function nu(r){var e=this.option.visual;return e[this.option.loop&&r!==qh?r%e.length:r]}function qi(){return this.option.visual[0]}function Gg(r){return{linear:function(e){return Pt(e,r,this.option.visual,!0)},category:nu,piecewise:function(e,t){var a=Fg.call(this,t);return a==null&&(a=Pt(e,r,this.option.visual,!0)),a},fixed:qi}}function Fg(r){var e=this.option,t=e.pieceList;if(e.hasSpecialVisual){var a=Vg.findPieceIndex(r,t),n=t[a];if(n&&n.visual)return n.visual[this.type]}}function CA(r,e){return r.visual=e,r.type==="color"&&(r.parsedVisual=G(e,function(t){var a=Fe(t);return a||[0,0,0,1]})),e}var z3={linear:function(r){return Pt(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var e=this.option.pieceList,t=Vg.findPieceIndex(r,e,!0);if(t!=null)return Pt(t,[0,e.length-1],[0,1],!0)},category:function(r){var e=this.option.categories?this.option.categoryMap[r]:r;return e==null?qh:e},fixed:$t};function $h(r,e,t){return r?e<=t:e=t.length||d===t[d.depth]){var y=Y3(n,l,d,g,p,a);MA(d,y,t,a)}})}}}function H3(r,e,t){var a=B({},e),n=t.designatedVisualItemStyle;return A(["color","colorAlpha","colorSaturation"],function(i){n[i]=e[i];var o=r.get(i);n[i]=null,o!=null&&(a[i]=o)}),a}function DA(r){var e=Hg(r,"color");if(e){var t=Hg(r,"colorAlpha"),a=Hg(r,"colorSaturation");return a&&(e=ks(e,null,null,a)),t&&(e=Uu(e,t)),e}}function W3(r,e){return e!=null?ks(e,null,null,r):null}function Hg(r,e){var t=r[e];if(t!=null&&t!=="none")return t}function U3(r,e,t,a,n,i){if(!(!i||!i.length)){var o=Wg(e,"color")||n.color!=null&&n.color!=="none"&&(Wg(e,"colorAlpha")||Wg(e,"colorSaturation"));if(!!o){var s=e.get("visualMin"),l=e.get("visualMax"),u=t.dataExtent.slice();s!=null&&su[1]&&(u[1]=l);var f=e.get("colorMappingBy"),h={type:o.name,dataExtent:u,visual:o.range};h.type==="color"&&(f==="index"||f==="id")?(h.mappingMethod="category",h.loop=!0):h.mappingMethod="linear";var v=new we(h);return AA(v).drColorMappingBy=f,v}}}function Wg(r,e){var t=r.get(e);return z(t)&&t.length?{name:e,range:t}:null}function Y3(r,e,t,a,n,i){var o=B({},e);if(n){var s=n.type,l=s==="color"&&AA(n).drColorMappingBy,u=l==="index"?a:l==="id"?i.mapIdToIndex(t.getId()):t.getValue(r.get("visualDimension"));o[s]=n.mapValueToVisual(u)}return o}var iu=Math.max,Qh=Math.min,LA=ce,Ug=A,IA=["itemStyle","borderWidth"],Z3=["itemStyle","gapWidth"],X3=["upperLabel","show"],K3=["upperLabel","height"],q3={seriesType:"treemap",reset:function(r,e,t,a){var n=t.getWidth(),i=t.getHeight(),o=r.option,s=oe(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),l=o.size||[],u=H(LA(s.width,l[0]),n),f=H(LA(s.height,l[1]),i),h=a&&a.type,v=["treemapZoomToNode","treemapRootToNode"],c=Jl(a,v,r),p=h==="treemapRender"||h==="treemapMove"?a.rootRect:null,d=r.getViewRoot(),g=pA(d);if(h!=="treemapMove"){var y=h==="treemapZoomToNode"?eH(r,c,d,u,f):p?[p.width,p.height]:[u,f],m=o.sort;m&&m!=="asc"&&m!=="desc"&&(m="desc");var _={squareRatio:o.squareRatio,sort:m,leafDepth:o.leafDepth};d.hostTree.clearLayouts();var S={x:0,y:0,width:y[0],height:y[1],area:y[0]*y[1]};d.setLayout(S),PA(d,_,!1,0),S=d.getLayout(),Ug(g,function(x,w){var T=(g[w+1]||d).getValue();x.setLayout(B({dataExtent:[T,T],borderWidth:0,upperHeight:0},S))})}var b=r.getData().tree.root;b.setLayout(rH(s,p,c),!0),r.setLayoutInfo(s),EA(b,new ht(-s.x,-s.y,n,i),g,d,0)}};function PA(r,e,t,a){var n,i;if(!r.isRemoved()){var o=r.getLayout();n=o.width,i=o.height;var s=r.getModel(),l=s.get(IA),u=s.get(Z3)/2,f=kA(s),h=Math.max(l,f),v=l-u,c=h-u;r.setLayout({borderWidth:l,upperHeight:h,upperLabelHeight:f},!0),n=iu(n-2*v,0),i=iu(i-v-c,0);var p=n*i,d=j3(r,s,p,e,t,a);if(!!d.length){var g={x:v,y:c,width:n,height:i},y=Qh(n,i),m=Infinity,_=[];_.area=0;for(var S=0,b=d.length;S=0;l--){var u=n[a==="asc"?o-l-1:l].getValue();u/t*es[1]&&(s[1]=u)})),{sum:a,dataExtent:s}}function tH(r,e,t){for(var a=0,n=Infinity,i=0,o=void 0,s=r.length;ia&&(a=o));var l=r.area*r.area,u=e*e*t;return l?iu(u*a/l,l/(u*n)):Infinity}function RA(r,e,t,a,n){var i=e===t.width?0:1,o=1-i,s=["x","y"],l=["width","height"],u=t[s[i]],f=e?r.area/e:0;(n||f>t[l[o]])&&(f=t[l[o]]);for(var h=0,v=r.length;hu_&&(u=u_),i=s}ua&&(a=e);var i=a%2?a+2:a+3;n=[];for(var o=0;o0&&(b[0]=-b[0],b[1]=-b[1]);var w=S[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var T=-Math.atan2(S[1],S[0]);h[0].8?"left":v[0]<-.8?"right":"center",d=v[1]>.8?"top":v[1]<-.8?"bottom":"middle";break;case"start":i.x=-v[0]*y+f[0],i.y=-v[1]*m+f[1],p=v[0]>.8?"right":v[0]<-.8?"left":"center",d=v[1]>.8?"bottom":v[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=y*w+f[0],i.y=f[1]+C,p=S[0]<0?"right":"left",i.originX=-y*w,i.originY=-C;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=x[0],i.y=x[1]+C,p="center",i.originY=-C;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-y*w+h[0],i.y=h[1]+C,p=S[0]>=0?"right":"left",i.originX=y*w,i.originY=-C;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||d,align:i.__align||p})}},e}(rt),ey=xH,bH=function(){function r(e){this.group=new rt,this._LineCtor=e||ey}return r.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var a=this,n=a.group,i=a._lineData;a._lineData=e,i||n.removeAll();var o=UA(e);e.diff(i).add(function(s){t._doAdd(e,s,o)}).update(function(s,l){t._doUpdate(i,e,l,s,o)}).remove(function(s){n.remove(i.getItemGraphicEl(s))}).execute()},r.prototype.updateLayout=function(){var e=this._lineData;!e||e.eachItemGraphicEl(function(t,a){t.updateLayout(e,a)},this)},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=UA(e),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t){this._progressiveEls=[];function a(s){!s.isGroup&&!wH(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var n=e.start;n0}function UA(r){var e=r.hostModel,t=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:t.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:t.get("disabled"),blurScope:t.get("blurScope"),focus:t.get("focus"),labelStatesModels:ue(e)}}function YA(r){return isNaN(r[0])||isNaN(r[1])}function ry(r){return r&&!YA(r[0])&&!YA(r[1])}var ay=bH,ny=[],iy=[],oy=[],ns=pe,sy=Yn,ZA=Math.abs;function XA(r,e,t){for(var a=r[0],n=r[1],i=r[2],o=Infinity,s,l=t*t,u=.1,f=.1;f<=.9;f+=.1){ny[0]=ns(a[0],n[0],i[0],f),ny[1]=ns(a[1],n[1],i[1],f);var h=ZA(sy(ny,e)-l);h=0?s=s+u:s=s-u:p>=0?s=s-u:s=s+u}return s}function ly(r,e){var t=[],a=Ps,n=[[],[],[]],i=[[],[]],o=[];e/=2,r.eachEdge(function(s,l){var u=s.getLayout(),f=s.getVisual("fromSymbol"),h=s.getVisual("toSymbol");u.__original||(u.__original=[wa(u[0]),wa(u[1])],u[2]&&u.__original.push(wa(u[2])));var v=u.__original;if(u[2]!=null){if(Re(n[0],v[0]),Re(n[1],v[2]),Re(n[2],v[1]),f&&f!=="none"){var c=lu(s.node1),p=XA(n,v[0],c*e);a(n[0][0],n[1][0],n[2][0],p,t),n[0][0]=t[3],n[1][0]=t[4],a(n[0][1],n[1][1],n[2][1],p,t),n[0][1]=t[3],n[1][1]=t[4]}if(h&&h!=="none"){var c=lu(s.node2),p=XA(n,v[1],c*e);a(n[0][0],n[1][0],n[2][0],p,t),n[1][0]=t[1],n[2][0]=t[2],a(n[0][1],n[1][1],n[2][1],p,t),n[1][1]=t[1],n[2][1]=t[2]}Re(u[0],n[0]),Re(u[1],n[2]),Re(u[2],n[1])}else{if(Re(i[0],v[0]),Re(i[1],v[1]),Un(o,i[1],i[0]),fo(o,o),f&&f!=="none"){var c=lu(s.node1);zv(i[0],i[0],o,c*e)}if(h&&h!=="none"){var c=lu(s.node2);zv(i[1],i[1],o,-c*e)}Re(u[0],i[0]),Re(u[1],i[1])}})}function KA(r){return r.type==="view"}var TH=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a){var n=new zl,i=new ay,o=this.group;this._controller=new ql(a.getZr()),this._controllerHost={target:o},o.add(n.group),o.add(i.group),this._symbolDraw=n,this._lineDraw=i,this._firstRender=!0},e.prototype.render=function(t,a,n){var i=this,o=t.coordinateSystem;this._model=t;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(KA(o)){var f={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(f):Mt(u,f,t)}ly(t.getGraph(),su(t));var h=t.getData();s.updateData(h);var v=t.getEdgeData();l.updateData(v),this._updateNodeAndLinkScale(),this._updateController(t,a,n),clearTimeout(this._layoutTimeout);var c=t.forceLayout,p=t.get(["force","layoutAnimation"]);c&&this._startForceLayoutIteration(c,p);var d=t.get("layout");h.graph.eachNode(function(_){var S=_.dataIndex,b=_.getGraphicEl(),x=_.getModel();if(!!b){b.off("drag").off("dragend");var w=x.get("draggable");w&&b.on("drag",function(C){switch(d){case"force":c.warmUp(),!i._layouting&&i._startForceLayoutIteration(c,p),c.setFixed(S),h.setItemLayout(S,[b.x,b.y]);break;case"circular":h.setItemLayout(S,[b.x,b.y]),_.setLayout({fixed:!0},!0),jg(t,"symbolSize",_,[C.offsetX,C.offsetY]),i.updateLayout(t);break;case"none":default:h.setItemLayout(S,[b.x,b.y]),Kg(t.getGraph(),t),i.updateLayout(t);break}}).on("dragend",function(){c&&c.setUnfixed(S)}),b.setDraggable(w,!!x.get("cursor"));var T=x.get(["emphasis","focus"]);T==="adjacency"&&(nt(b).focus=_.getAdjacentDataIndices())}}),h.graph.eachEdge(function(_){var S=_.getGraphicEl(),b=_.getModel().get(["emphasis","focus"]);!S||b==="adjacency"&&(nt(S).focus={edge:[_.dataIndex],node:[_.node1.dataIndex,_.node2.dataIndex]})});var g=t.get("layout")==="circular"&&t.get(["circular","rotateLabel"]),y=h.getLayout("cx"),m=h.getLayout("cy");h.graph.eachNode(function(_){zA(_,g,y,m)}),this._firstRender=!1},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(t,a){var n=this;(function i(){t.step(function(o){n.updateLayout(n._model),(n._layouting=!o)&&(a?n._layoutTimeout=setTimeout(i,16):i())})})()},e.prototype._updateController=function(t,a,n){var i=this,o=this._controller,s=this._controllerHost,l=this.group;if(o.setPointerChecker(function(u,f,h){var v=l.getBoundingRect();return v.applyTransform(l.transform),v.contain(f,h)&&!Hh(u,n,t)}),!KA(t.coordinateSystem)){o.disable();return}o.enable(t.get("roam")),s.zoomLimit=t.get("scaleLimit"),s.zoom=t.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){xg(s,u.dx,u.dy),n.dispatchAction({seriesId:t.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){bg(s,u.scale,u.originX,u.originY),n.dispatchAction({seriesId:t.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),i._updateNodeAndLinkScale(),ly(t.getGraph(),su(t)),i._lineDraw.updateLayout(),n.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,a=t.getData(),n=su(t);a.eachItemGraphicEl(function(i,o){i&&i.setSymbolScale(n)})},e.prototype.updateLayout=function(t){ly(t.getGraph(),su(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(t,a){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},e.type="graph",e}(zt),CH=TH;function is(r){return"_EC_"+r}var AH=function(){function r(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return r.prototype.isDirected=function(){return this._directed},r.prototype.addNode=function(e,t){e=e==null?""+t:""+e;var a=this._nodesMap;if(!a[is(e)]){var n=new ji(e,t);return n.hostGraph=this,this.nodes.push(n),a[is(e)]=n,n}},r.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},r.prototype.getNodeById=function(e){return this._nodesMap[is(e)]},r.prototype.addEdge=function(e,t,a){var n=this._nodesMap,i=this._edgesMap;if(Tt(e)&&(e=this.nodes[e]),Tt(t)&&(t=this.nodes[t]),e instanceof ji||(e=n[is(e)]),t instanceof ji||(t=n[is(t)]),!(!e||!t)){var o=e.id+"-"+t.id,s=new qA(e,t,a);return s.hostGraph=this,this._directed&&(e.outEdges.push(s),t.inEdges.push(s)),e.edges.push(s),e!==t&&t.edges.push(s),this.edges.push(s),i[o]=s,s}},r.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},r.prototype.getEdge=function(e,t){e instanceof ji&&(e=e.id),t instanceof ji&&(t=t.id);var a=this._edgesMap;return this._directed?a[e+"-"+t]:a[e+"-"+t]||a[t+"-"+e]},r.prototype.eachNode=function(e,t){for(var a=this.nodes,n=a.length,i=0;i=0&&e.call(t,a[i],i)},r.prototype.eachEdge=function(e,t){for(var a=this.edges,n=a.length,i=0;i=0&&a[i].node1.dataIndex>=0&&a[i].node2.dataIndex>=0&&e.call(t,a[i],i)},r.prototype.breadthFirstTraverse=function(e,t,a,n){if(t instanceof ji||(t=this._nodesMap[is(t)]),!!t){for(var i=a==="out"?"outEdges":a==="in"?"inEdges":"edges",o=0;o=0&&l.node2.dataIndex>=0});for(var i=0,o=n.length;i=0&&this[r][e].setItemVisual(this.dataIndex,t,a)},getVisual:function(t){return this[r][e].getItemVisual(this.dataIndex,t)},setLayout:function(t,a){this.dataIndex>=0&&this[r][e].setItemLayout(this.dataIndex,t,a)},getLayout:function(){return this[r][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[r][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[r][e].getRawIndex(this.dataIndex)}}}Jt(ji,jA("hostGraph","data")),Jt(qA,jA("hostGraph","edgeData"));var MH=AH;function $A(r,e,t,a,n){for(var i=new MH(a),o=0;o "+v)),u++)}var c=t.get("coordinateSystem"),p;if(c==="cartesian2d"||c==="polar")p=Va(r,t);else{var d=sl.get(c),g=d?d.dimensions||[]:[];st(g,"value")<0&&g.concat(["value"]);var y=jo(r,{coordDimensions:g,encodeDefine:t.getEncode()}).dimensions;p=new Be(y,t),p.initData(r)}var m=new Be(["value"],t);return m.initData(l,s),n&&n(p,m),cA({mainData:p,struct:i,structAttr:"graph",datas:{node:p,edge:m},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var DH=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments);var a=this;function n(){return a._categoriesData}this.legendVisualProvider=new Hl(n,n),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(t){r.prototype.mergeDefaultAndTheme.apply(this,arguments),ei(t,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,a){var n=t.edges||t.links||[],i=t.data||t.nodes||[],o=this;if(i&&n){uH(this);var s=$A(i,n,this,!0,l);return A(s.edges,function(u){fH(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,f){u.wrapMethod("getItemModel",function(p){var d=o._categoriesModels,g=p.getShallow("category"),y=d[g];return y&&(y.parentModel=p.parentModel,p.parentModel=y),p});var h=Vt.prototype.getModel;function v(p,d){var g=h.call(this,p,d);return g.resolveParentPath=c,g}f.wrapMethod("getItemModel",function(p){return p.resolveParentPath=c,p.getModel=v,p});function c(p){if(p&&(p[0]==="label"||p[1]==="label")){var d=p.slice();return p[0]==="label"?d[0]="edgeLabel":p[1]==="label"&&(d[1]="edgeLabel"),d}return p}}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,a,n){if(n==="edge"){var i=this.getData(),o=this.getDataParams(t,n),s=i.graph.getEdgeByIndex(t),l=i.getName(s.node1.dataIndex),u=i.getName(s.node2.dataIndex),f=[];return l!=null&&f.push(l),u!=null&&f.push(u),fe("nameValue",{name:f.join(" > "),value:o.value,noValue:o.value==null})}var h=ix({series:this,dataIndex:t,multipleSeries:a});return h},e.prototype._updateCategoriesData=function(){var t=G(this.option.categories||[],function(n){return n.value!=null?n:B({value:0},n)}),a=new Be(["value"],this);a.initData(t),this._categoriesData=a,this._categoriesModels=a.mapArray(function(n){return a.getItemModel(n)})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return r.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(Wt),LH=DH,IH={type:"graphRoam",event:"graphRoam",update:"none"};function PH(r){r.registerChartView(CH),r.registerSeriesModel(LH),r.registerProcessor(nH),r.registerVisual(iH),r.registerVisual(oH),r.registerLayout(hH),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,cH),r.registerLayout(dH),r.registerCoordinateSystem("graphView",{dimensions:$l.dimensions,create:yH}),r.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},$t),r.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},$t),r.registerAction(IH,function(e,t,a){t.eachComponent({mainType:"series",query:e},function(n){var i=n.coordinateSystem,o=Lg(i,e,void 0,a);n.setCenter&&n.setCenter(o.center),n.setZoom&&n.setZoom(o.zoom)})})}var RH=function(){function r(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return r}(),EH=function(r){k(e,r);function e(t){var a=r.call(this,t)||this;return a.type="pointer",a}return e.prototype.getDefaultShape=function(){return new RH},e.prototype.buildPath=function(t,a){var n=Math.cos,i=Math.sin,o=a.r,s=a.width,l=a.angle,u=a.x-n(l)*s*(s>=o/3?1:2),f=a.y-i(l)*s*(s>=o/3?1:2);l=a.angle-Math.PI/2,t.moveTo(u,f),t.lineTo(a.x+n(l)*s,a.y+i(l)*s),t.lineTo(a.x+n(a.angle)*o,a.y+i(a.angle)*o),t.lineTo(a.x-n(l)*s,a.y-i(l)*s),t.lineTo(u,f)},e}(pt),kH=EH;function OH(r,e){var t=r.get("center"),a=e.getWidth(),n=e.getHeight(),i=Math.min(a,n),o=H(t[0],e.getWidth()),s=H(t[1],e.getHeight()),l=H(r.get("radius"),i/2);return{cx:o,cy:s,r:l}}function ev(r,e){var t=r==null?"":r+"";return e&&(U(e)?t=e.replace("{value}",t):$(e)&&(t=e(r))),t}var NH=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){this.group.removeAll();var i=t.get(["axisLine","lineStyle","color"]),o=OH(t,n);this._renderMain(t,a,n,i,o),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,a,n,i,o){var s=this.group,l=t.get("clockwise"),u=-t.get("startAngle")/180*Math.PI,f=-t.get("endAngle")/180*Math.PI,h=t.getModel("axisLine"),v=h.get("roundCap"),c=v?Ah:Ue,p=h.get("show"),d=h.getModel("lineStyle"),g=d.get("width"),y=[u,f];N_(y,!l),u=y[0],f=y[1];for(var m=f-u,_=u,S=[],b=0;p&&b=C&&(M===0?0:i[M-1][0])Math.PI/2&&(J+=Math.PI)):Q==="tangential"?J=-T-Math.PI/2:Tt(Q)&&(J=Q*Math.PI/180),J===0?h.add(new Ct({style:Bt(_,{text:V,x:W,y:X,verticalAlign:R<-.8?"top":R>.8?"bottom":"middle",align:P<-.4?"left":P>.4?"right":"center"},{inheritColor:F}),silent:!0})):h.add(new Ct({style:Bt(_,{text:V,x:W,y:X,verticalAlign:"middle",align:"center"},{inheritColor:F}),silent:!0,originX:W,originY:X,rotation:J}))}if(m.get("show")&&E!==S){var N=m.get("distance");N=N?N+f:f;for(var dt=0;dt<=b;dt++){P=Math.cos(T),R=Math.sin(T);var Dt=new de({shape:{x1:P*(p-N)+v,y1:R*(p-N)+c,x2:P*(p-w-N)+v,y2:R*(p-w-N)+c},silent:!0,style:L});L.stroke==="auto"&&Dt.setStyle({stroke:i((E+dt/b)/S)}),h.add(Dt),T+=M}T-=M}else T+=C}},e.prototype._renderPointer=function(t,a,n,i,o,s,l,u,f){var h=this.group,v=this._data,c=this._progressEls,p=[],d=t.get(["pointer","show"]),g=t.getModel("progress"),y=g.get("show"),m=t.getData(),_=m.mapDimension("value"),S=+t.get("min"),b=+t.get("max"),x=[S,b],w=[s,l];function T(M,D){var L=m.getItemModel(M),I=L.getModel("pointer"),P=H(I.get("width"),o.r),R=H(I.get("length"),o.r),E=t.get(["pointer","icon"]),N=I.get("offsetCenter"),O=H(N[0],o.r),V=H(N[1],o.r),F=I.get("keepAspect"),W;return E?W=re(E,O-P/2,V-R,P,R,null,F):W=new kH({shape:{angle:-Math.PI/2,width:P,r:R,x:O,y:V}}),W.rotation=-(D+Math.PI/2),W.x=o.cx,W.y=o.cy,W}function C(M,D){var L=g.get("roundCap"),I=L?Ah:Ue,P=g.get("overlap"),R=P?g.get("width"):f/m.count(),E=P?o.r-R:o.r-(M+1)*R,N=P?o.r:o.r-M*R,O=new I({shape:{startAngle:s,endAngle:D,cx:o.cx,cy:o.cy,clockwise:u,r0:E,r:N}});return P&&(O.z2=b-m.get(_,M)%b),O}(y||d)&&(m.diff(v).add(function(M){var D=m.get(_,M);if(d){var L=T(M,s);Ht(L,{rotation:-((isNaN(+D)?w[0]:Pt(D,x,w,!0))+Math.PI/2)},t),h.add(L),m.setItemGraphicEl(M,L)}if(y){var I=C(M,s),P=g.get("clip");Ht(I,{shape:{endAngle:Pt(D,x,w,P)}},t),h.add(I),rp(t.seriesIndex,m.dataType,M,I),p[M]=I}}).update(function(M,D){var L=m.get(_,M);if(d){var I=v.getItemGraphicEl(D),P=I?I.rotation:s,R=T(M,P);R.rotation=P,Mt(R,{rotation:-((isNaN(+L)?w[0]:Pt(L,x,w,!0))+Math.PI/2)},t),h.add(R),m.setItemGraphicEl(M,R)}if(y){var E=c[D],N=E?E.shape.endAngle:s,O=C(M,N),V=g.get("clip");Mt(O,{shape:{endAngle:Pt(L,x,w,V)}},t),h.add(O),rp(t.seriesIndex,m.dataType,M,O),p[M]=O}}).execute(),m.each(function(M){var D=m.getItemModel(M),L=D.getModel("emphasis"),I=L.get("focus"),P=L.get("blurScope"),R=L.get("disabled");if(d){var E=m.getItemGraphicEl(M),N=m.getItemVisual(M,"style"),O=N.fill;if(E instanceof _e){var V=E.style;E.useStyle(B({image:V.image,x:V.x,y:V.y,width:V.width,height:V.height},N))}else E.useStyle(N),E.type!=="pointer"&&E.setColor(O);E.setStyle(D.getModel(["pointer","itemStyle"]).getItemStyle()),E.style.fill==="auto"&&E.setStyle("fill",i(Pt(m.get(_,M),x,[0,1],!0))),E.z2EmphasisLift=0,Se(E,D),Yt(E,I,P,R)}if(y){var F=p[M];F.useStyle(m.getItemVisual(M,"style")),F.setStyle(D.getModel(["progress","itemStyle"]).getItemStyle()),F.z2EmphasisLift=0,Se(F,D),Yt(F,I,P,R)}}),this._progressEls=p)},e.prototype._renderAnchor=function(t,a){var n=t.getModel("anchor"),i=n.get("show");if(i){var o=n.get("size"),s=n.get("icon"),l=n.get("offsetCenter"),u=n.get("keepAspect"),f=re(s,a.cx-o/2+H(l[0],a.r),a.cy-o/2+H(l[1],a.r),o,o,null,u);f.z2=n.get("showAbove")?1:0,f.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(f)}},e.prototype._renderTitleAndDetail=function(t,a,n,i,o){var s=this,l=t.getData(),u=l.mapDimension("value"),f=+t.get("min"),h=+t.get("max"),v=new rt,c=[],p=[],d=t.isAnimationEnabled(),g=t.get(["pointer","showAbove"]);l.diff(this._data).add(function(y){c[y]=new Ct({silent:!0}),p[y]=new Ct({silent:!0})}).update(function(y,m){c[y]=s._titleEls[m],p[y]=s._detailEls[m]}).execute(),l.each(function(y){var m=l.getItemModel(y),_=l.get(u,y),S=new rt,b=i(Pt(_,[f,h],[0,1],!0)),x=m.getModel("title");if(x.get("show")){var w=x.get("offsetCenter"),T=o.cx+H(w[0],o.r),C=o.cy+H(w[1],o.r),M=c[y];M.attr({z2:g?0:2,style:Bt(x,{x:T,y:C,text:l.getName(y),align:"center",verticalAlign:"middle"},{inheritColor:b})}),S.add(M)}var D=m.getModel("detail");if(D.get("show")){var L=D.get("offsetCenter"),I=o.cx+H(L[0],o.r),P=o.cy+H(L[1],o.r),R=H(D.get("width"),o.r),E=H(D.get("height"),o.r),N=t.get(["progress","show"])?l.getItemVisual(y,"style").fill:b,M=p[y],O=D.get("formatter");M.attr({z2:g?0:2,style:Bt(D,{x:I,y:P,text:ev(_,O),width:isNaN(R)?null:R,height:isNaN(E)?null:E,align:"center",verticalAlign:"middle"},{inheritColor:N})}),I1(M,{normal:D},_,function(F){return ev(F,O)}),d&&P1(M,y,l,t,{getFormattedLabel:function(F,W,X,Q,J,dt){return ev(dt?dt.interpolatedValue:_,O)}}),S.add(M)}v.add(S)}),this.group.add(v),this._titleEls=c,this._detailEls=p},e.type="gauge",e}(zt),BH=NH,VH=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="itemStyle",t}return e.prototype.getInitialData=function(t,a){return Jo(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e}(Wt),zH=VH;function GH(r){r.registerChartView(BH),r.registerSeriesModel(zH)}var FH=["itemStyle","opacity"],HH=function(r){k(e,r);function e(t,a){var n=r.call(this)||this,i=n,o=new Ze,s=new Ct;return i.setTextContent(s),n.setTextGuideLine(o),n.updateData(t,a,!0),n}return e.prototype.updateData=function(t,a,n){var i=this,o=t.hostModel,s=t.getItemModel(a),l=t.getItemLayout(a),u=s.getModel("emphasis"),f=s.get(FH);f=f==null?1:f,n||Nr(i),i.useStyle(t.getItemVisual(a,"style")),i.style.lineJoin="round",n?(i.setShape({points:l.points}),i.style.opacity=0,Ht(i,{style:{opacity:f}},o,a)):Mt(i,{style:{opacity:f},shape:{points:l.points}},o,a),Se(i,s),this._updateLabel(t,a),Yt(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,a){var n=this,i=this.getTextGuideLine(),o=n.getTextContent(),s=t.hostModel,l=t.getItemModel(a),u=t.getItemLayout(a),f=u.label,h=t.getItemVisual(a,"style"),v=h.fill;xe(o,ue(l),{labelFetcher:t.hostModel,labelDataIndex:a,defaultOpacity:h.opacity,defaultText:t.getName(a)},{normal:{align:f.textAlign,verticalAlign:f.verticalAlign}}),n.setTextConfig({local:!0,inside:!!f.inside,insideStroke:v,outsideFill:v});var c=f.linePoints;i.setShape({points:c}),n.textGuideLineConfig={anchor:c?new lt(c[0][0],c[0][1]):null},Mt(o,{style:{x:f.x,y:f.y}},s,a),o.attr({rotation:f.rotation,originX:f.x,originY:f.y,z2:10}),Ld(n,Id(l),{stroke:v})},e}(Ye),WH=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,a,n){var i=t.getData(),o=this._data,s=this.group;i.diff(o).add(function(l){var u=new HH(i,l);i.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var f=o.getItemGraphicEl(u);f.updateData(i,l),s.add(f),i.setItemGraphicEl(l,f)}).remove(function(l){var u=o.getItemGraphicEl(l);tl(u,t,l)}).execute(),this._data=i},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(zt),UH=WH,YH=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Hl(Y(this.getData,this),Y(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.getInitialData=function(t,a){return Jo(this,{coordDimensions:["value"],encodeDefaulter:it(Mp,this)})},e.prototype._defaultLabelLine=function(t){ei(t,"labelLine",["show"]);var a=t.labelLine,n=t.emphasis.labelLine;a.show=a.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.prototype.getDataParams=function(t){var a=this.getData(),n=r.prototype.getDataParams.call(this,t),i=a.mapDimension("value"),o=a.getSum(i);return n.percent=o?+(a.get(i,t)/o*100).toFixed(2):0,n.$vars.push("percent"),n},e.type="series.funnel",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(Wt),ZH=YH;function XH(r,e){return oe(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function KH(r,e){for(var t=r.mapDimension("value"),a=r.mapArray(t,function(l){return l}),n=[],i=e==="ascending",o=0,s=r.count();oc4)return;var n=this._model.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]);n.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:n.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(r){if(!(this._mouseDownPoint||!fy(this,"mousemove"))){var e=this._model,t=e.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]),a=t.behavior;a==="jump"&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand(a==="none"?null:{axisExpandWindow:t.axisExpandWindow,animation:a==="jump"?null:{duration:0}})}}};function fy(r,e){var t=r._model;return t.get("axisExpandable")&&t.get("axisExpandTriggerOn")===e}var g4=p4,y4=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){r.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var a=this.option;t&&ot(a,t,!0),this._initDimensions()},e.prototype.contains=function(t,a){var n=t.get("parallelIndex");return n!=null&&a.getComponent("parallel",n)===this},e.prototype.setAxisExpand=function(t){A(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(a){t.hasOwnProperty(a)&&(this.option[a]=t[a])},this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],a=this.parallelAxisIndex=[],n=Rt(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(i){return(i.get("parallelIndex")||0)===this.componentIndex},this);A(n,function(i){t.push("dim"+i.get("dim")),a.push(i.componentIndex)})},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e}(At),m4=y4,_4=function(r){k(e,r);function e(t,a,n,i,o){var s=r.call(this,t,a,n)||this;return s.type=i||"value",s.axisIndex=o,s}return e.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},e}(Yr),S4=_4;function $i(r,e,t,a,n,i){r=r||0;var o=t[1]-t[0];if(n!=null&&(n=os(n,[0,o])),i!=null&&(i=Math.max(i,n!=null?n:0)),a==="all"){var s=Math.abs(e[1]-e[0]);s=os(s,[0,o]),n=i=os(s,[n,i]),a=0}e[0]=os(e[0],t),e[1]=os(e[1],t);var l=hy(e,a);e[a]+=r;var u=n||0,f=t.slice();l.sign<0?f[0]+=u:f[1]-=u,e[a]=os(e[a],f);var h;return h=hy(e,a),n!=null&&(h.sign!==l.sign||h.spani&&(e[1-a]=e[a]+h.sign*i),e}function hy(r,e){var t=r[e]-r[1-e];return{span:Math.abs(t),sign:t>0?-1:t<0?1:e?-1:1}}function os(r,e){return Math.min(e[1]!=null?e[1]:Infinity,Math.max(e[0]!=null?e[0]:-Infinity,r))}var vy=A,eM=Math.min,rM=Math.max,aM=Math.floor,x4=Math.ceil,nM=Kt,b4=Math.PI,w4=function(){function r(e,t,a){this.type="parallel",this._axesMap=q(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,a)}return r.prototype._init=function(e,t,a){var n=e.dimensions,i=e.parallelAxisIndex;vy(n,function(o,s){var l=i[s],u=t.getComponent("parallelAxis",l),f=this._axesMap.set(o,new S4(o,Vh(u),[0,0],u.get("type"),l)),h=f.type==="category";f.onBand=h&&u.get("boundaryGap"),f.inverse=u.get("inverse"),u.axis=f,f.model=u,f.coordinateSystem=u.coordinateSystem=this},this)},r.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},r.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),a=t.axisBase,n=t.layoutBase,i=t.pixelDimIndex,o=e[1-i],s=e[i];return o>=a&&o<=a+t.axisLength&&s>=n&&s<=n+t.layoutLength},r.prototype.getModel=function(){return this._model},r.prototype._updateAxesFromSeries=function(e,t){t.eachSeries(function(a){if(!!e.contains(a,t)){var n=a.getData();vy(this.dimensions,function(i){var o=this._axesMap.get(i);o.scale.unionExtentFromData(n,n.mapDimension(i)),es(o.scale,o.model)},this)}},this)},r.prototype.resize=function(e,t){this._rect=oe(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},r.prototype.getRect=function(){return this._rect},r.prototype._makeLayoutInfo=function(){var e=this._model,t=this._rect,a=["x","y"],n=["width","height"],i=e.get("layout"),o=i==="horizontal"?0:1,s=t[n[o]],l=[0,s],u=this.dimensions.length,f=rv(e.get("axisExpandWidth"),l),h=rv(e.get("axisExpandCount")||0,[0,u]),v=e.get("axisExpandable")&&u>3&&u>h&&h>1&&f>0&&s>0,c=e.get("axisExpandWindow"),p;if(c)p=rv(c[1]-c[0],l),c[1]=c[0]+p;else{p=rv(f*(h-1),l);var d=e.get("axisExpandCenter")||aM(u/2);c=[f*d-p/2],c[1]=c[0]+p}var g=(s-p)/(u-h);g<3&&(g=0);var y=[aM(nM(c[0]/f,1))+1,x4(nM(c[1]/f,1))-1],m=g/f*c[0];return{layout:i,pixelDimIndex:o,layoutBase:t[a[o]],layoutLength:s,axisBase:t[a[1-o]],axisLength:t[n[1-o]],axisExpandable:v,axisExpandWidth:f,axisCollapseWidth:g,axisExpandWindow:c,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:m}},r.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,a=this.dimensions,n=this._makeLayoutInfo(),i=n.layout;t.each(function(o){var s=[0,n.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),vy(a,function(o,s){var l=(n.axisExpandable?C4:T4)(s,n),u={horizontal:{x:l.position,y:n.axisLength},vertical:{x:0,y:l.position}},f={horizontal:b4/2,vertical:0},h=[u[i].x+e.x,u[i].y+e.y],v=f[i],c=hr();Zn(c,c,v),jr(c,c,h),this._axesLayout[o]={position:h,rotation:v,transform:c,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},r.prototype.getAxis=function(e){return this._axesMap.get(e)},r.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},r.prototype.eachActiveState=function(e,t,a,n){a==null&&(a=0),n==null&&(n=e.count());var i=this._axesMap,o=this.dimensions,s=[],l=[];A(o,function(g){s.push(e.mapDimension(g)),l.push(i.get(g).model)});for(var u=this.hasAxisBrushed(),f=a;fi*(1-h[0])?(u="jump",l=s-i*(1-h[2])):(l=s-i*h[1])>=0&&(l=s-i*(1-h[1]))<=0&&(l=0),l*=t.axisExpandWidth/f,l?$i(l,n,o,"all"):u="none";else{var c=n[1]-n[0],p=o[1]*s/c;n=[rM(0,p-c/2)],n[1]=eM(o[1],n[0]+c),n[0]=n[1]-c}return{axisExpandWindow:n,behavior:u}},r}();function rv(r,e){return eM(rM(r,e[0]),e[1])}function T4(r,e){var t=e.layoutLength/(e.axisCount-1);return{position:t*r,axisNameAvailableWidth:t,axisLabelShow:!0}}function C4(r,e){var t=e.layoutLength,a=e.axisExpandWidth,n=e.axisCount,i=e.axisCollapseWidth,o=e.winInnerIndices,s,l=i,u=!1,f;return r=0;n--)pr(a[n])},e.prototype.getActiveState=function(t){var a=this.activeIntervals;if(!a.length)return"normal";if(t==null||isNaN(+t))return"inactive";if(a.length===1){var n=a[0];if(n[0]<=t&&t<=n[1])return"active"}else for(var i=0,o=a.length;iR4}function pM(r){var e=r.length-1;return e<0&&(e=0),[r[0],r[e]]}function dM(r,e,t,a){var n=new rt;return n.add(new bt({name:"main",style:my(t),silent:!0,draggable:!0,cursor:"move",drift:it(mM,r,e,n,["n","s","w","e"]),ondragend:it(Ji,e,{isEnd:!0})})),A(a,function(i){n.add(new bt({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:it(mM,r,e,n,i),ondragend:it(Ji,e,{isEnd:!0})}))}),n}function gM(r,e,t,a){var n=a.brushStyle.lineWidth||0,i=ss(n,E4),o=t[0][0],s=t[1][0],l=o-n/2,u=s-n/2,f=t[0][1],h=t[1][1],v=f-i+n/2,c=h-i+n/2,p=f-o,d=h-s,g=p+n,y=d+n;Ha(r,e,"main",o,s,p,d),a.transformable&&(Ha(r,e,"w",l,u,i,y),Ha(r,e,"e",v,u,i,y),Ha(r,e,"n",l,u,g,i),Ha(r,e,"s",l,c,g,i),Ha(r,e,"nw",l,u,i,i),Ha(r,e,"ne",v,u,i,i),Ha(r,e,"sw",l,c,i,i),Ha(r,e,"se",v,c,i,i))}function yy(r,e){var t=e.__brushOption,a=t.transformable,n=e.childAt(0);n.useStyle(my(t)),n.attr({silent:!a,cursor:a?"move":"default"}),A([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=e.childOfName(i.join("")),s=i.length===1?_y(r,i[0]):G4(r,i);o&&o.attr({silent:!a,invisible:!a,cursor:a?O4[s]+"-resize":null})})}function Ha(r,e,t,a,n,i,o){var s=e.childOfName(t);s&&s.setShape(H4(Sy(r,e,[[a,n],[a+i,n+o]])))}function my(r){return K({strokeNoScale:!0},r.brushStyle)}function yM(r,e,t,a){var n=[uu(r,t),uu(e,a)],i=[ss(r,t),ss(e,a)];return[[n[0],i[0]],[n[1],i[1]]]}function z4(r){return Di(r.group)}function _y(r,e){var t={w:"left",e:"right",n:"top",s:"bottom"},a={left:"w",right:"e",top:"n",bottom:"s"},n=$f(t[e],z4(r));return a[n]}function G4(r,e){var t=[_y(r,e[0]),_y(r,e[1])];return(t[0]==="e"||t[0]==="w")&&t.reverse(),t.join("")}function mM(r,e,t,a,n,i){var o=t.__brushOption,s=r.toRectRange(o.range),l=_M(e,n,i);A(a,function(u){var f=k4[u];s[f[0]][f[1]]+=l[f[0]]}),o.range=r.fromRectRange(yM(s[0][0],s[1][0],s[0][1],s[1][1])),cy(e,t),Ji(e,{isEnd:!1})}function F4(r,e,t,a){var n=e.__brushOption.range,i=_M(r,t,a);A(n,function(o){o[0]+=i[0],o[1]+=i[1]}),cy(r,e),Ji(r,{isEnd:!1})}function _M(r,e,t){var a=r.group,n=a.transformCoordToLocal(e,t),i=a.transformCoordToLocal(0,0);return[n[0]-i[0],n[1]-i[1]]}function Sy(r,e,t){var a=cM(r,e);return a&&a!==Qi?a.clipPath(t,r._transform):tt(t)}function H4(r){var e=uu(r[0][0],r[1][0]),t=uu(r[0][1],r[1][1]),a=ss(r[0][0],r[1][0]),n=ss(r[0][1],r[1][1]);return{x:e,y:t,width:a-e,height:n-t}}function W4(r,e,t){if(!(!r._brushType||Y4(r,e.offsetX,e.offsetY))){var a=r._zr,n=r._covers,i=dy(r,e,t);if(!r._dragging)for(var o=0;oa.getWidth()||t<0||t>a.getHeight()}var av={lineX:wM(0),lineY:wM(1),rect:{createCover:function(r,e){function t(a){return a}return dM({toRectRange:t,fromRectRange:t},r,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var e=pM(r);return yM(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(r,e,t,a){gM(r,e,t,a)},updateCommon:yy,contain:by},polygon:{createCover:function(r,e){var t=new rt;return t.add(new Ze({name:"main",style:my(e),silent:!0})),t},getCreatingRange:function(r){return r},endCreating:function(r,e){e.remove(e.childAt(0)),e.add(new Ye({name:"main",draggable:!0,drift:it(F4,r,e),ondragend:it(Ji,r,{isEnd:!0})}))},updateCoverShape:function(r,e,t,a){e.childAt(0).setShape({points:Sy(r,e,t)})},updateCommon:yy,contain:by}};function wM(r){return{createCover:function(e,t){return dM({toRectRange:function(a){var n=[a,[0,100]];return r&&n.reverse(),n},fromRectRange:function(a){return a[r]}},e,t,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(e){var t=pM(e),a=uu(t[0][r],t[1][r]),n=ss(t[0][r],t[1][r]);return[a,n]},updateCoverShape:function(e,t,a,n){var i,o=cM(e,t);if(o!==Qi&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(r);else{var s=e._zr;i=[0,[s.getWidth(),s.getHeight()][1-r]]}var l=[a,i];r&&l.reverse(),gM(e,t,l,n)},updateCommon:yy,contain:by}}var wy=B4;function TM(r){return r=Ty(r),function(e){return Bx(e,r)}}function CM(r,e){return r=Ty(r),function(t){var a=e!=null?e:t,n=a?r.width:r.height,i=a?r.x:r.y;return[i,i+(n||0)]}}function AM(r,e,t){var a=Ty(r);return function(n,i){return a.contain(i[0],i[1])&&!Hh(n,e,t)}}function Ty(r){return ht.create(r)}var Z4=["axisLine","axisTickLabel","axisName"],X4=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a){r.prototype.init.apply(this,arguments),(this._brushController=new wy(a.getZr())).on("brush",Y(this._onBrush,this))},e.prototype.render=function(t,a,n,i){if(!K4(t,a,i)){this.axisModel=t,this.api=n,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new rt,this.group.add(this._axisGroup),!!t.get("show")){var s=j4(t,a),l=s.coordinateSystem,u=t.getAreaSelectStyle(),f=u.width,h=t.axis.dim,v=l.getAxisLayout(h),c=B({strokeContainThreshold:f},v),p=new Ga(t,c);A(Z4,p.add,p),this._axisGroup.add(p.getGroup()),this._refreshBrushController(c,u,t,s,f,n),yl(o,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,a,n,i,o,s){var l=n.axis.getExtent(),u=l[1]-l[0],f=Math.min(30,Math.abs(u)*.1),h=ht.create({x:l[0],y:-o/2,width:u,height:o});h.x-=f,h.width+=2*f,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:TM(h),isTargetByCursor:AM(h,s,i),getLinearBrushOtherExtent:CM(h,0)}]).enableBrush({brushType:"lineX",brushStyle:a,removeOnClick:!0}).updateCovers(q4(n))},e.prototype._onBrush=function(t){var a=t.areas,n=this.axisModel,i=n.axis,o=G(a,function(s){return[i.coordToData(s.range[0],!0),i.coordToData(s.range[1],!0)]});(!n.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:o})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(Zt);function K4(r,e,t){return t&&t.type==="axisAreaSelect"&&e.findComponents({mainType:"parallelAxis",query:t})[0]===r}function q4(r){var e=r.axis;return G(r.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}})}function j4(r,e){return e.getComponent("parallel",r.get("parallelIndex"))}var $4=X4,Q4={type:"axisAreaSelect",event:"axisAreaSelected"};function J4(r){r.registerAction(Q4,function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},function(a){a.axis.model.setActiveIntervals(e.intervals)})}),r.registerAction("parallelAxisExpand",function(e,t){t.eachComponent({mainType:"parallel",query:e},function(a){a.setAxisExpand(e)})})}var tW={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function MM(r){r.registerComponentView(g4),r.registerComponentModel(m4),r.registerCoordinateSystem("parallel",L4),r.registerPreprocessor(f4),r.registerComponentModel(oM),r.registerComponentView($4),ts(r,"parallel",oM,tW),J4(r)}function eW(r){ct(MM),r.registerChartView(r4),r.registerSeriesModel(o4),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,u4)}var rW=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return r}(),aW=function(r){k(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new rW},e.prototype.buildPath=function(t,a){var n=a.extent;t.moveTo(a.x1,a.y1),t.bezierCurveTo(a.cpx1,a.cpy1,a.cpx2,a.cpy2,a.x2,a.y2),a.orient==="vertical"?(t.lineTo(a.x2+n,a.y2),t.bezierCurveTo(a.cpx2+n,a.cpy2,a.cpx1+n,a.cpy1,a.x1+n,a.y1)):(t.lineTo(a.x2,a.y2+n),t.bezierCurveTo(a.cpx2,a.cpy2+n,a.cpx1,a.cpy1+n,a.x1,a.y1+n)),t.closePath()},e.prototype.highlight=function(){Ea(this)},e.prototype.downplay=function(){ka(this)},e}(pt),nW=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._focusAdjacencyDisabled=!1,t}return e.prototype.render=function(t,a,n){var i=this,o=t.getGraph(),s=this.group,l=t.layoutInfo,u=l.width,f=l.height,h=t.getData(),v=t.getData("edge"),c=t.get("orient");this._model=t,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(p){var d=new aW,g=nt(d);g.dataIndex=p.dataIndex,g.seriesIndex=t.seriesIndex,g.dataType="edge";var y=p.getModel(),m=y.getModel("lineStyle"),_=m.get("curveness"),S=p.node1.getLayout(),b=p.node1.getModel(),x=b.get("localX"),w=b.get("localY"),T=p.node2.getLayout(),C=p.node2.getModel(),M=C.get("localX"),D=C.get("localY"),L=p.getLayout(),I,P,R,E,N,O,V,F;switch(d.shape.extent=Math.max(1,L.dy),d.shape.orient=c,c==="vertical"?(I=(x!=null?x*u:S.x)+L.sy,P=(w!=null?w*f:S.y)+S.dy,R=(M!=null?M*u:T.x)+L.ty,E=D!=null?D*f:T.y,N=I,O=P*(1-_)+E*_,V=R,F=P*_+E*(1-_)):(I=(x!=null?x*u:S.x)+S.dx,P=(w!=null?w*f:S.y)+L.sy,R=M!=null?M*u:T.x,E=(D!=null?D*f:T.y)+L.ty,N=I*(1-_)+R*_,O=P,V=I*_+R*(1-_),F=E),d.setShape({x1:I,y1:P,x2:R,y2:E,cpx1:N,cpy1:O,cpx2:V,cpy2:F}),d.useStyle(m.getItemStyle()),d.style.fill){case"source":d.style.fill=p.node1.getVisual("color"),d.style.decal=p.node1.getVisual("style").decal;break;case"target":d.style.fill=p.node2.getVisual("color"),d.style.decal=p.node2.getVisual("style").decal;break;case"gradient":var W=p.node1.getVisual("color"),X=p.node2.getVisual("color");U(W)&&U(X)&&(d.style.fill=new gl(0,0,+(c==="horizontal"),+(c==="vertical"),[{color:W,offset:0},{color:X,offset:1}]))}xe(d,ue(y,"edgeLabel"),{labelFetcher:t,labelDataIndex:p.dataIndex,defaultText:""+y.get("value")}),d.setTextConfig({position:"inside"});var Q=y.getModel("emphasis");Se(d,y,"lineStyle",function(dt){return dt.getItemStyle()}),s.add(d),v.setItemGraphicEl(p.dataIndex,d);var J=Q.get("focus");Yt(d,J==="adjacency"?p.getAdjacentDataIndices():J,Q.get("blurScope"),Q.get("disabled")),nt(d).dataType="edge"}),o.eachNode(function(p){var d=p.getLayout(),g=p.getModel(),y=g.get("localX"),m=g.get("localY"),_=g.getModel("emphasis"),S=new bt({shape:{x:y!=null?y*u:d.x,y:m!=null?m*f:d.y,width:d.dx,height:d.dy},style:g.getModel("itemStyle").getItemStyle(),z2:10});xe(S,ue(g),{labelFetcher:t,labelDataIndex:p.dataIndex,defaultText:p.id}),S.disableLabelAnimation=!0,S.setStyle("fill",p.getVisual("color")),S.setStyle("decal",p.getVisual("style").decal),Se(S,g),s.add(S),h.setItemGraphicEl(p.dataIndex,S),nt(S).dataType="node";var b=_.get("focus");Yt(S,b==="adjacency"?p.getAdjacentDataIndices():b,_.get("blurScope"),_.get("disabled"))}),h.eachItemGraphicEl(function(p,d){var g=h.getItemModel(d);g.get("draggable")&&(p.drift=function(y,m){i._focusAdjacencyDisabled=!0,this.shape.x+=y,this.shape.y+=m,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:h.getRawIndex(d),localX:this.shape.x/u,localY:this.shape.y/f})},p.ondragend=function(){i._focusAdjacencyDisabled=!1},p.draggable=!0,p.cursor="move")}),!this._data&&t.isAnimationEnabled()&&s.setClipPath(iW(s.getBoundingRect(),t,function(){s.removeClipPath()})),this._data=t.getData()},e.prototype.dispose=function(){},e.type="sankey",e}(zt);function iW(r,e,t){var a=new bt({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return Ht(a,{shape:{width:r.width+20}},e,t),a}var oW=nW,sW=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,a){var n=t.edges||t.links,i=t.data||t.nodes,o=t.levels;this.levelModels=[];for(var s=this.levelModels,l=0;l=0&&(s[o[l].depth]=new Vt(o[l],this,a));if(i&&n){var u=$A(i,n,this,!0,f);return u.data}function f(h,v){h.wrapMethod("getItemModel",function(c,p){var d=c.parentModel,g=d.getData().getItemLayout(p);if(g){var y=g.depth,m=d.levelModels[y];m&&(c.parentModel=m)}return c}),v.wrapMethod("getItemModel",function(c,p){var d=c.parentModel,g=d.getGraph().getEdgeByIndex(p),y=g.node1.getLayout();if(y){var m=y.depth,_=d.levelModels[m];_&&(c.parentModel=_)}return c})}},e.prototype.setNodePosition=function(t,a){var n=this.option.data||this.option.nodes,i=n[t];i.localX=a[0],i.localY=a[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,a,n){function i(c){return isNaN(c)||c==null}if(n==="edge"){var o=this.getDataParams(t,n),s=o.data,l=o.value,u=s.source+" -- "+s.target;return fe("nameValue",{name:u,value:l,noValue:i(l)})}else{var f=this.getGraph().getNodeByIndex(t),h=f.getLayout().value,v=this.getDataParams(t,n).data.name;return fe("nameValue",{name:v!=null?v+"":null,value:h,noValue:i(h)})}},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(t,a){var n=r.prototype.getDataParams.call(this,t,a);if(n.value==null&&a==="node"){var i=this.getGraph().getNodeByIndex(t),o=i.getLayout().value;n.value=o}return n},e.type="series.sankey",e.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},e}(Wt),lW=sW;function uW(r,e){r.eachSeriesByType("sankey",function(t){var a=t.get("nodeWidth"),n=t.get("nodeGap"),i=fW(t,e);t.layoutInfo=i;var o=i.width,s=i.height,l=t.getGraph(),u=l.nodes,f=l.edges;vW(u);var h=Rt(u,function(d){return d.getLayout().value===0}),v=h.length!==0?0:t.get("layoutIterations"),c=t.get("orient"),p=t.get("nodeAlign");hW(u,f,a,n,o,s,v,c,p)})}function fW(r,e){return oe(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function hW(r,e,t,a,n,i,o,s,l){cW(r,e,t,n,i,s,l),yW(r,e,i,n,a,o,s),AW(r,s)}function vW(r){A(r,function(e){var t=Mn(e.outEdges,nv),a=Mn(e.inEdges,nv),n=e.getValue()||0,i=Math.max(t,a,n);e.setLayout({value:i},!0)})}function cW(r,e,t,a,n,i,o){for(var s=[],l=[],u=[],f=[],h=0,v=0;v=0;y&&g.depth>c&&(c=g.depth),d.setLayout({depth:y?g.depth:h},!0),i==="vertical"?d.setLayout({dy:t},!0):d.setLayout({dx:t},!0);for(var m=0;mh-1?c:h-1;o&&o!=="left"&&pW(r,o,i,w);var T=i==="vertical"?(n-t)/w:(a-t)/w;gW(r,T,i)}function DM(r){var e=r.hostGraph.data.getRawDataItem(r.dataIndex);return e.depth!=null&&e.depth>=0}function pW(r,e,t,a){if(e==="right"){for(var n=[],i=r,o=0;i.length;){for(var s=0;s0;i--)l*=.99,SW(s,l,o),Cy(s,n,t,a,o),CW(s,l,o),Cy(s,n,t,a,o)}function mW(r,e){var t=[],a=e==="vertical"?"y":"x",n=Vc(r,function(i){return i.getLayout()[a]});return n.keys.sort(function(i,o){return i-o}),A(n.keys,function(i){t.push(n.buckets.get(i))}),t}function _W(r,e,t,a,n,i){var o=Infinity;A(r,function(s){var l=s.length,u=0;A(s,function(h){u+=h.getLayout().value});var f=i==="vertical"?(a-(l-1)*n)/u:(t-(l-1)*n)/u;f0&&(s=l.getLayout()[i]+u,n==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),f=l.getLayout()[i]+l.getLayout()[v]+e;var p=n==="vertical"?a:t;if(u=f-e-p,u>0){s=l.getLayout()[i]-u,n==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),f=s;for(var c=h-2;c>=0;--c)l=o[c],u=l.getLayout()[i]+l.getLayout()[v]+e-f,u>0&&(s=l.getLayout()[i]-u,n==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),f=l.getLayout()[i]}})}function SW(r,e,t){A(r.slice().reverse(),function(a){A(a,function(n){if(n.outEdges.length){var i=Mn(n.outEdges,xW,t)/Mn(n.outEdges,nv);if(isNaN(i)){var o=n.outEdges.length;i=o?Mn(n.outEdges,bW,t)/o:0}if(t==="vertical"){var s=n.getLayout().x+(i-An(n,t))*e;n.setLayout({x:s},!0)}else{var l=n.getLayout().y+(i-An(n,t))*e;n.setLayout({y:l},!0)}}})})}function xW(r,e){return An(r.node2,e)*r.getValue()}function bW(r,e){return An(r.node2,e)}function wW(r,e){return An(r.node1,e)*r.getValue()}function TW(r,e){return An(r.node1,e)}function An(r,e){return e==="vertical"?r.getLayout().x+r.getLayout().dx/2:r.getLayout().y+r.getLayout().dy/2}function nv(r){return r.getValue()}function Mn(r,e,t){for(var a=0,n=r.length,i=-1;++io&&(o=l)}),A(a,function(s){var l=new we({type:"color",mappingMethod:"linear",dataExtent:[i,o],visual:e.get("color")}),u=l.mapValueToVisual(s.getLayout().value),f=s.getModel().get(["itemStyle","color"]);f!=null?(s.setVisual("color",f),s.setVisual("style",{fill:f})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}n.length&&A(n,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function DW(r){r.registerChartView(oW),r.registerSeriesModel(lW),r.registerLayout(uW),r.registerVisual(MW),r.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},function(a){a.setNodePosition(e.dataIndex,[e.localX,e.localY])})})}var LM=function(){function r(){}return r.prototype.getInitialData=function(e,t){var a,n=t.getComponent("xAxis",this.get("xAxisIndex")),i=t.getComponent("yAxis",this.get("yAxisIndex")),o=n.get("type"),s=i.get("type"),l;o==="category"?(e.layout="horizontal",a=n.getOrdinalMeta(),l=!0):s==="category"?(e.layout="vertical",a=i.getOrdinalMeta(),l=!0):e.layout=e.layout||"horizontal";var u=["x","y"],f=e.layout==="horizontal"?0:1,h=this._baseAxisDim=u[f],v=u[1-f],c=[n,i],p=c[f].get("type"),d=c[1-f].get("type"),g=e.data;if(g&&l){var y=[];A(g,function(S,b){var x;z(S)?(x=S.slice(),S.unshift(b)):z(S.value)?(x=B({},S),x.value=x.value.slice(),S.value.unshift(b)):x=S,y.push(x)}),e.data=y}var m=this.defaultValueDimensions,_=[{name:h,type:Sh(p),ordinalMeta:a,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:v,type:Sh(d),dimsDef:m.slice()}];return Jo(this,{coordDimensions:_,dimensionsCount:m.length+1,encodeDefaulter:it(aS,_,this)})},r.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},r}(),IM=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],t.visualDrawType="stroke",t}return e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},e}(Wt);Jt(IM,LM,!0);var LW=IM,IW=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i=t.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=t.get("layout")==="horizontal"?1:0;i.diff(s).add(function(u){if(i.hasValue(u)){var f=i.getItemLayout(u),h=PM(f,i,u,l,!0);i.setItemGraphicEl(u,h),o.add(h)}}).update(function(u,f){var h=s.getItemGraphicEl(f);if(!i.hasValue(u)){o.remove(h);return}var v=i.getItemLayout(u);h?(Nr(h),RM(v,h,i,u)):h=PM(v,i,u,l),o.add(h),i.setItemGraphicEl(u,h)}).remove(function(u){var f=s.getItemGraphicEl(u);f&&o.remove(f)}).execute(),this._data=i},e.prototype.remove=function(t){var a=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl(function(i){i&&a.remove(i)})},e.type="boxplot",e}(zt),PW=function(){function r(){}return r}(),RW=function(r){k(e,r);function e(t){var a=r.call(this,t)||this;return a.type="boxplotBoxPath",a}return e.prototype.getDefaultShape=function(){return new PW},e.prototype.buildPath=function(t,a){var n=a.points,i=0;for(t.moveTo(n[i][0],n[i][1]),i++;i<4;i++)t.lineTo(n[i][0],n[i][1]);for(t.closePath();id){var S=[y,_];a.push(S)}}}return{boxData:t,outliers:a}}var GW={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==Ce){var a="";Lt(a)}var n=zW(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:n.boxData},{data:n.outliers}]}};function FW(r){r.registerSeriesModel(LW),r.registerChartView(kW),r.registerLayout(OW),r.registerTransform(GW)}var HW=["color","borderColor"],WW=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,a,n){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,a,n,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,a):this._incrementalRenderNormal(t,a)},e.prototype.eachRendered=function(t){yn(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var a=t.pipelineContext.large;(this._isLargeDraw==null||a!==this._isLargeDraw)&&(this._isLargeDraw=a,this._clear())},e.prototype._renderNormal=function(t){var a=t.getData(),n=this._data,i=this.group,o=a.getLayout("isSimpleBox"),s=t.get("clip",!0),l=t.coordinateSystem,u=l.getArea&&l.getArea();this._data||i.removeAll(),a.diff(n).add(function(f){if(a.hasValue(f)){var h=a.getItemLayout(f);if(s&&EM(u,h))return;var v=Ay(h,f,!0);Ht(v,{shape:{points:h.ends}},t,f),My(v,a,f,o),i.add(v),a.setItemGraphicEl(f,v)}}).update(function(f,h){var v=n.getItemGraphicEl(h);if(!a.hasValue(f)){i.remove(v);return}var c=a.getItemLayout(f);if(s&&EM(u,c)){i.remove(v);return}v?(Mt(v,{shape:{points:c.ends}},t,f),Nr(v)):v=Ay(c,f),My(v,a,f,o),i.add(v),a.setItemGraphicEl(f,v)}).remove(function(f){var h=n.getItemGraphicEl(f);h&&i.remove(h)}).execute(),this._data=a},e.prototype._renderLarge=function(t){this._clear(),kM(t,this.group);var a=t.get("clip",!0)?Th(t.coordinateSystem,!1,t):null;a?this.group.setClipPath(a):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,a){for(var n=a.getData(),i=n.getLayout("isSimpleBox"),o;(o=t.next())!=null;){var s=n.getItemLayout(o),l=Ay(s,o);My(l,n,o,i),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},e.prototype._incrementalRenderLarge=function(t,a){kM(a,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(zt),UW=function(){function r(){}return r}(),YW=function(r){k(e,r);function e(t){var a=r.call(this,t)||this;return a.type="normalCandlestickBox",a}return e.prototype.getDefaultShape=function(){return new UW},e.prototype.buildPath=function(t,a){var n=a.points;this.__simpleBox?(t.moveTo(n[4][0],n[4][1]),t.lineTo(n[6][0],n[6][1])):(t.moveTo(n[0][0],n[0][1]),t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]),t.lineTo(n[3][0],n[3][1]),t.closePath(),t.moveTo(n[4][0],n[4][1]),t.lineTo(n[5][0],n[5][1]),t.moveTo(n[6][0],n[6][1]),t.lineTo(n[7][0],n[7][1]))},e}(pt);function Ay(r,e,t){var a=r.ends;return new YW({shape:{points:t?ZW(a,r):a},z2:100})}function EM(r,e){for(var t=!0,a=0;a0?"borderColor":"borderColor0"])||t.get(["itemStyle",r>0?"color":"color0"]);r===0&&(n=t.get(["itemStyle","borderColorDoji"]));var i=t.getModel("itemStyle").getItemStyle(HW);e.useStyle(i),e.style.fill=null,e.style.stroke=n}var KW=WW,OM=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],t}return e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,a,n){var i=a.getItemLayout(t);return i&&n.rect(i.brushRect)},e.type="series.candlestick",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e}(Wt);Jt(OM,LM,!0);var qW=OM;function jW(r){!r||!z(r.series)||A(r.series,function(e){et(e)&&e.type==="k"&&(e.type="candlestick")})}var $W=["itemStyle","borderColor"],QW=["itemStyle","borderColor0"],JW=["itemStyle","borderColorDoji"],t6=["itemStyle","color"],e6=["itemStyle","color0"],r6={seriesType:"candlestick",plan:Vo(),performRawSeries:!0,reset:function(r,e){function t(i,o){return o.get(i>0?t6:e6)}function a(i,o){return o.get(i===0?JW:i>0?$W:QW)}if(!e.isSeriesFiltered(r)){var n=r.pipelineContext.large;return!n&&{progress:function(i,o){for(var s;(s=i.next())!=null;){var l=o.getItemModel(s),u=o.getItemLayout(s).sign,f=l.getItemStyle();f.fill=t(u,l),f.stroke=a(u,l)||f.fill;var h=o.ensureUniqueItemVisual(s,"style");B(h,f)}}}}}},a6=r6,n6={seriesType:"candlestick",plan:Vo(),reset:function(r){var e=r.coordinateSystem,t=r.getData(),a=i6(r,t),n=0,i=1,o=["x","y"],s=t.getDimensionIndex(t.mapDimension(o[n])),l=G(t.mapDimensionsAll(o[i]),t.getDimensionIndex,t),u=l[0],f=l[1],h=l[2],v=l[3];if(t.setLayout({candleWidth:a,isSimpleBox:a<=1.3}),s<0||l.length<4)return;return{progress:r.pipelineContext.large?p:c};function c(d,g){for(var y,m=g.getStore();(y=d.next())!=null;){var _=m.get(s,y),S=m.get(u,y),b=m.get(f,y),x=m.get(h,y),w=m.get(v,y),T=Math.min(S,b),C=Math.max(S,b),M=N(T,_),D=N(C,_),L=N(x,_),I=N(w,_),P=[];O(P,D,0),O(P,M,1),P.push(F(I),F(D),F(L),F(M));var R=g.getItemModel(y),E=!!R.get(["itemStyle","borderColorDoji"]);g.setItemLayout(y,{sign:NM(m,y,S,b,f,E),initBaseline:S>b?D[i]:M[i],ends:P,brushRect:V(x,w,_)})}function N(W,X){var Q=[];return Q[n]=X,Q[i]=W,isNaN(X)||isNaN(W)?[NaN,NaN]:e.dataToPoint(Q)}function O(W,X,Q){var J=X.slice(),dt=X.slice();J[n]=jf(J[n]+a/2,1,!1),dt[n]=jf(dt[n]-a/2,1,!0),Q?W.push(J,dt):W.push(dt,J)}function V(W,X,Q){var J=N(W,Q),dt=N(X,Q);return J[n]-=a/2,dt[n]-=a/2,{x:J[0],y:J[1],width:i?a:dt[0]-J[0],height:i?dt[1]-J[1]:a}}function F(W){return W[n]=jf(W[n],1),W}}function p(d,g){for(var y=da(d.count*4),m=0,_,S=[],b=[],x,w=g.getStore(),T=!!r.get(["itemStyle","borderColorDoji"]);(x=d.next())!=null;){var C=w.get(s,x),M=w.get(u,x),D=w.get(f,x),L=w.get(h,x),I=w.get(v,x);if(isNaN(C)||isNaN(L)||isNaN(I)){y[m++]=NaN,m+=3;continue}y[m++]=NM(w,x,M,D,f,T),S[n]=C,S[i]=L,_=e.dataToPoint(S,null,b),y[m++]=_?_[0]:NaN,y[m++]=_?_[1]:NaN,S[i]=I,_=e.dataToPoint(S,null,b),y[m++]=_?_[1]:NaN}g.setLayout("largePoints",y)}}};function NM(r,e,t,a,n,i){var o;return t>a?o=-1:t0?r.get(n,e-1)<=a?1:-1:1,o}function i6(r,e){var t=r.getBaseAxis(),a,n=t.type==="category"?t.getBandWidth():(a=t.getExtent(),Math.abs(a[1]-a[0])/e.count()),i=H(ft(r.get("barMaxWidth"),n),n),o=H(ft(r.get("barMinWidth"),1),n),s=r.get("barWidth");return s!=null?H(s,n):Math.max(Math.min(n/2,i),o)}var o6=n6;function s6(r){r.registerChartView(KW),r.registerSeriesModel(qW),r.registerPreprocessor(jW),r.registerVisual(a6),r.registerLayout(o6)}function BM(r,e){var t=e.rippleEffectColor||e.color;r.eachChild(function(a){a.attr({z:e.z,zlevel:e.zlevel,style:{stroke:e.brushType==="stroke"?t:null,fill:e.brushType==="fill"?t:null}})})}var l6=function(r){k(e,r);function e(t,a){var n=r.call(this)||this,i=new Vl(t,a),o=new rt;return n.add(i),n.add(o),n.updateData(t,a),n}return e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var a=t.symbolType,n=t.color,i=t.rippleNumber,o=this.childAt(1),s=0;s0&&(s=this._getLineLength(i)/f*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){i.stopAnimation();var v=void 0;$(h)?v=h(n):v=h,i.__t>0&&(v=-s*i.__t),this._animateSymbol(i,s,v,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},e.prototype._animateSymbol=function(t,a,n,i,o){if(a>0){t.__t=0;var s=this,l=t.animate("",i).when(o?a*2:a,{__t:o?2:1}).delay(n).during(function(){s._updateSymbolPosition(t)});i||l.done(function(){s.remove(t)}),l.start()}},e.prototype._getLineLength=function(t){return Ja(t.__p1,t.__cp1)+Ja(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,a){t.__p1=a[0],t.__p2=a[1],t.__cp1=a[2]||[(a[0][0]+a[1][0])/2,(a[0][1]+a[1][1])/2]},e.prototype.updateData=function(t,a,n){this.childAt(0).updateData(t,a,n),this._updateEffectSymbol(t,a)},e.prototype._updateSymbolPosition=function(t){var a=t.__p1,n=t.__p2,i=t.__cp1,o=t.__t<1?t.__t:2-t.__t,s=[t.x,t.y],l=s.slice(),u=pe,f=ac;s[0]=u(a[0],i[0],n[0],o),s[1]=u(a[1],i[1],n[1],o);var h=t.__t<1?f(a[0],i[0],n[0],o):f(n[0],i[0],a[0],1-o),v=t.__t<1?f(a[1],i[1],n[1],o):f(n[1],i[1],a[1],1-o);t.rotation=-Math.atan2(v,h)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(t.__lastT!==void 0&&t.__lastT=0&&!(i[l]<=a);l--);l=Math.min(l,o-2)}else{for(l=s;la);l++);l=Math.min(l-1,o-2)}var f=(a-i[l])/(i[l+1]-i[l]),h=n[l],v=n[l+1];t.x=h[0]*(1-f)+f*v[0],t.y=h[1]*(1-f)+f*v[1];var c=t.__t<1?v[0]-h[0]:h[0]-v[0],p=t.__t<1?v[1]-h[1]:h[1]-v[1];t.rotation=-Math.atan2(p,c)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=a,t.ignore=!1}},e}(VM),m6=y6,_6=function(){function r(){this.polyline=!1,this.curveness=0,this.segs=[]}return r}(),S6=function(r){k(e,r);function e(t){var a=r.call(this,t)||this;return a._off=0,a.hoverDataIdx=-1,a}return e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new _6},e.prototype.buildPath=function(t,a){var n=a.segs,i=a.curveness,o;if(a.polyline)for(o=this._off;o0){t.moveTo(n[o++],n[o++]);for(var l=1;l0){var c=(u+h)/2-(f-v)*i,p=(f+v)/2-(h-u)*i;t.quadraticCurveTo(c,p,h,v)}else t.lineTo(h,v)}this.incremental&&(this._off=o,this.notClear=!0)},e.prototype.findDataIndex=function(t,a){var n=this.shape,i=n.segs,o=n.curveness,s=this.style.lineWidth;if(n.polyline)for(var l=0,u=0;u0)for(var h=i[u++],v=i[u++],c=1;c0){var g=(h+p)/2-(v-d)*o,y=(v+d)/2-(p-h)*o;if(B_(h,v,g,y,p,d,s,t,a))return l}else if(fn(h,v,p,d,s,t,a))return l;l++}return-1},e.prototype.contain=function(t,a){var n=this.transformCoordToLocal(t,a),i=this.getBoundingRect();if(t=n[0],a=n[1],i.contain(t,a)){var o=this.hoverDataIdx=this.findDataIndex(t,a);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var a=this.shape,n=a.segs,i=Infinity,o=Infinity,s=-Infinity,l=-Infinity,u=0;u0&&(o.dataIndex=l+e.__startIndex)})},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}(),b6=x6,w6={seriesType:"lines",plan:Vo(),reset:function(r){var e=r.coordinateSystem;if(!!e){var t=r.get("polyline"),a=r.pipelineContext.large;return{progress:function(n,i){var o=[];if(a){var s=void 0,l=n.end-n.start;if(t){for(var u=0,f=n.start;f0&&(f||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(i);var h=t.get("clip",!0)&&Th(t.coordinateSystem,!1,t);h?this.group.setClipPath(h):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,a,n){var i=t.getData(),o=this._updateLineDraw(i,t);o.incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},e.prototype.incrementalRender=function(t,a,n){this._lineDraw.incrementalUpdate(t,a.getData()),this._finished=t.end===a.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,a,n){var i=t.getData(),o=t.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=GM.reset(t,a,n);s.progress&&s.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(n)},e.prototype._updateLineDraw=function(t,a){var n=this._lineDraw,i=this._showEffect(a),o=!!a.get("polyline"),s=a.pipelineContext,l=s.large;return(!n||i!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(n&&n.remove(),n=this._lineDraw=l?new b6:new ay(o?i?m6:zM:i?VM:ey),this._hasEffet=i,this._isPolyline=o,this._isLargeDraw=l),this.group.add(n.group),n},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var a=t.getZr(),n=a.painter.getType()==="svg";!n&&this._lastZlevel!=null&&a.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,a){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(a)},e.prototype.dispose=function(t,a){this.remove(t,a)},e.type="lines",e}(zt),C6=T6,A6=typeof Uint32Array=="undefined"?Array:Uint32Array,M6=typeof Float64Array=="undefined"?Array:Float64Array;function FM(r){var e=r.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(r.data=G(e,function(t){var a=[t[0].coord,t[1].coord],n={coords:a};return t[0].name&&(n.fromName=t[0].name),t[1].name&&(n.toName=t[1].name),Kr([n,t[0],t[1]])}))}var D6=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}return e.prototype.init=function(t){t.data=t.data||[],FM(t);var a=this._processFlatCoordsArray(t.data);this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset,a.flatCoords&&(t.data=new Float32Array(a.count)),r.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(t){if(FM(t),t.data){var a=this._processFlatCoordsArray(t.data);this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset,a.flatCoords&&(t.data=new Float32Array(a.count))}r.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var a=this._processFlatCoordsArray(t.data);a.flatCoords&&(this._flatCoords?(this._flatCoords=Du(this._flatCoords,a.flatCoords),this._flatCoordsOffset=Du(this._flatCoordsOffset,a.flatCoordsOffset)):(this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset),t.data=new Float32Array(a.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var a=this.getData().getItemModel(t),n=a.option instanceof Array?a.option:a.getShallow("coords");return n},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[t*2+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,a){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[t*2],i=this._flatCoordsOffset[t*2+1],o=0;on}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,l),flatCoords:o,count:u}}return{flatCoordsOffset:null,flatCoords:null,count:t.length}},e.prototype.getInitialData=function(t,a){if(!1)var n;var i=new Be(["value"],this);return i.hasItemOption=!1,i.initData(t.data,[],function(o,s,l,u){if(o instanceof Array)return NaN;i.hasItemOption=!0;var f=o.value;if(f!=null)return f instanceof Array?f[u]:f}),i},e.prototype.formatTooltip=function(t,a,n){var i=this.getData(),o=i.getItemModel(t),s=o.get("name");if(s)return s;var l=o.get("fromName"),u=o.get("toName"),f=[];return l!=null&&f.push(l),u!=null&&f.push(u),fe("nameValue",{name:f.join(" > ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return t==null?this.option.large?1e4:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t==null?this.option.large?2e4:this.get("progressiveThreshold"):t},e.prototype.getZLevelKey=function(){var t=this.getModel("effect"),a=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&a>0?a+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},e}(Wt),L6=D6;function iv(r){return r instanceof Array||(r=[r,r]),r}var I6={seriesType:"lines",reset:function(r){var e=iv(r.get("symbol")),t=iv(r.get("symbolSize")),a=r.getData();a.setVisual("fromSymbol",e&&e[0]),a.setVisual("toSymbol",e&&e[1]),a.setVisual("fromSymbolSize",t&&t[0]),a.setVisual("toSymbolSize",t&&t[1]);function n(i,o){var s=i.getItemModel(o),l=iv(s.getShallow("symbol",!0)),u=iv(s.getShallow("symbolSize",!0));l[0]&&i.setItemVisual(o,"fromSymbol",l[0]),l[1]&&i.setItemVisual(o,"toSymbol",l[1]),u[0]&&i.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&i.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:a.hasItemOption?n:null}}},P6=I6;function R6(r){r.registerChartView(C6),r.registerSeriesModel(L6),r.registerLayout(GM),r.registerVisual(P6)}var E6=256,k6=function(){function r(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=jt.createCanvas();this.canvas=e}return r.prototype.update=function(e,t,a,n,i,o){var s=this._getBrush(),l=this._getGradient(i,"inRange"),u=this._getGradient(i,"outOfRange"),f=this.pointSize+this.blurSize,h=this.canvas,v=h.getContext("2d"),c=e.length;h.width=t,h.height=a;for(var p=0;p0){var L=o(_)?l:u;_>0&&(_=_*M+T),b[x++]=L[D],b[x++]=L[D+1],b[x++]=L[D+2],b[x++]=L[D+3]*_*256}else x+=4}return v.putImageData(S,0,0),h},r.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=jt.createCanvas()),t=this.pointSize+this.blurSize,a=t*2;e.width=a,e.height=a;var n=e.getContext("2d");return n.clearRect(0,0,a,a),n.shadowOffsetX=a,n.shadowBlur=this.blurSize,n.shadowColor="#000",n.beginPath(),n.arc(-t,t,this.pointSize,0,Math.PI*2,!0),n.closePath(),n.fill(),e},r.prototype._getGradient=function(e,t){for(var a=this._gradientPixels,n=a[t]||(a[t]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],o=0,s=0;s<256;s++)e[t](s/255,!0,i),n[o++]=i[0],n[o++]=i[1],n[o++]=i[2],n[o++]=i[3];return n},r}(),O6=k6;function N6(r,e,t){var a=r[1]-r[0];e=G(e,function(o){return{interval:[(o.interval[0]-r[0])/a,(o.interval[1]-r[0])/a]}});var n=e.length,i=0;return function(o){var s;for(s=i;s=0;s--){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}return s>=0&&s=e[0]&&a<=e[1]}}function HM(r){var e=r.dimensions;return e[0]==="lng"&&e[1]==="lat"}var V6=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i;a.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===t&&(i=s)})}),this._progressiveEls=null,this.group.removeAll();var o=t.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(t,n,0,t.getData().count()):HM(o)&&this._renderOnGeo(o,t,i,n)},e.prototype.incrementalPrepareRender=function(t,a,n){this.group.removeAll()},e.prototype.incrementalRender=function(t,a,n,i){var o=a.coordinateSystem;o&&(HM(o)?this.render(a,n,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(a,i,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){yn(this._progressiveEls||this.group,t)},e.prototype._renderOnCartesianAndCalendar=function(t,a,n,i,o){var s=t.coordinateSystem,l=Gi(s,"cartesian2d"),u,f,h,v;if(l){var c=s.getAxis("x"),p=s.getAxis("y");u=c.getBandWidth()+.5,f=p.getBandWidth()+.5,h=c.scale.getExtent(),v=p.scale.getExtent()}for(var d=this.group,g=t.getData(),y=t.getModel(["emphasis","itemStyle"]).getItemStyle(),m=t.getModel(["blur","itemStyle"]).getItemStyle(),_=t.getModel(["select","itemStyle"]).getItemStyle(),S=t.get(["itemStyle","borderRadius"]),b=ue(t),x=t.getModel("emphasis"),w=x.get("focus"),T=x.get("blurScope"),C=x.get("disabled"),M=l?[g.mapDimension("x"),g.mapDimension("y"),g.mapDimension("value")]:[g.mapDimension("time"),g.mapDimension("value")],D=n;Dh[1]||Rv[1])continue;var E=s.dataToPoint([P,R]);L=new bt({shape:{x:E[0]-u/2,y:E[1]-f/2,width:u,height:f},style:I})}else{if(isNaN(g.get(M[1],D)))continue;L=new bt({z2:1,shape:s.dataToRect([g.get(M[0],D)]).contentShape,style:I})}if(g.hasItemOption){var N=g.getItemModel(D),O=N.getModel("emphasis");y=O.getModel("itemStyle").getItemStyle(),m=N.getModel(["blur","itemStyle"]).getItemStyle(),_=N.getModel(["select","itemStyle"]).getItemStyle(),S=N.get(["itemStyle","borderRadius"]),w=O.get("focus"),T=O.get("blurScope"),C=O.get("disabled"),b=ue(N)}L.shape.r=S;var V=t.getRawValue(D),F="-";V&&V[2]!=null&&(F=V[2]+""),xe(L,b,{labelFetcher:t,labelDataIndex:D,defaultOpacity:I.opacity,defaultText:F}),L.ensureState("emphasis").style=y,L.ensureState("blur").style=m,L.ensureState("select").style=_,Yt(L,w,T,C),L.incremental=o,o&&(L.states.emphasis.hoverLayer=!0),d.add(L),g.setItemGraphicEl(D,L),this._progressiveEls&&this._progressiveEls.push(L)}},e.prototype._renderOnGeo=function(t,a,n,i){var o=n.targetVisuals.inRange,s=n.targetVisuals.outOfRange,l=a.getData(),u=this._hmLayer||this._hmLayer||new O6;u.blurSize=a.get("blurSize"),u.pointSize=a.get("pointSize"),u.minOpacity=a.get("minOpacity"),u.maxOpacity=a.get("maxOpacity");var f=t.getViewRect().clone(),h=t.getRoamTransform();f.applyTransform(h);var v=Math.max(f.x,0),c=Math.max(f.y,0),p=Math.min(f.width+f.x,i.getWidth()),d=Math.min(f.height+f.y,i.getHeight()),g=p-v,y=d-c,m=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],_=l.mapArray(m,function(w,T,C){var M=t.dataToPoint([w,T]);return M[0]-=v,M[1]-=c,M.push(C),M}),S=n.getExtent(),b=n.type==="visualMap.continuous"?B6(S,n.option.range):N6(S,n.getPieceList(),n.option.selected);u.update(_,g,y,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},b);var x=new _e({style:{width:g,height:y,x:v,y:c,image:u.canvas},silent:!0});this.group.add(x)},e.type="heatmap",e}(zt),z6=V6,G6=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,a){return Va(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=sl.get(this.get("coordinateSystem"));if(t&&t.dimensions)return t.dimensions[0]==="lng"&&t.dimensions[1]==="lat"},e.type="series.heatmap",e.dependencies=["grid","geo","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},e}(Wt),F6=G6;function H6(r){r.registerChartView(z6),r.registerSeriesModel(F6)}var W6=["itemStyle","borderWidth"],WM=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],Iy=new ua,U6=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i=this.group,o=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis(),f=u.isHorizontal(),h=l.master.getRect(),v={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:t,coordSys:l,coordSysExtent:[[h.x,h.x+h.width],[h.y,h.y+h.height]],isHorizontal:f,valueDim:WM[+f],categoryDim:WM[1-+f]};return o.diff(s).add(function(c){if(!!o.hasValue(c)){var p=jM(o,c),d=UM(o,c,p,v),g=$M(o,v,d);o.setItemGraphicEl(c,g),i.add(g),tD(g,v,d)}}).update(function(c,p){var d=s.getItemGraphicEl(p);if(!o.hasValue(c)){i.remove(d);return}var g=jM(o,c),y=UM(o,c,g,v),m=JM(o,y);d&&m!==d.__pictorialShapeStr&&(i.remove(d),o.setItemGraphicEl(c,null),d=null),d?$6(d,v,y):d=$M(o,v,y,!0),o.setItemGraphicEl(c,d),d.__pictorialSymbolMeta=y,i.add(d),tD(d,v,y)}).remove(function(c){var p=s.getItemGraphicEl(c);p&&QM(s,c,p.__pictorialSymbolMeta.animationModel,p)}).execute(),this._data=o,this.group},e.prototype.remove=function(t,a){var n=this.group,i=this._data;t.get("animation")?i&&i.eachItemGraphicEl(function(o){QM(i,nt(o).dataIndex,t,o)}):n.removeAll()},e.type="pictorialBar",e}(zt);function UM(r,e,t,a){var n=r.getItemLayout(e),i=t.get("symbolRepeat"),o=t.get("symbolClip"),s=t.get("symbolPosition")||"start",l=t.get("symbolRotate"),u=(l||0)*Math.PI/180||0,f=t.get("symbolPatternSize")||2,h=t.isAnimationEnabled(),v={dataIndex:e,layout:n,itemModel:t,symbolType:r.getItemVisual(e,"symbol")||"circle",style:r.getItemVisual(e,"style"),symbolClip:o,symbolRepeat:i,symbolRepeatDirection:t.get("symbolRepeatDirection"),symbolPatternSize:f,rotation:u,animationModel:h?t:null,hoverScale:h&&t.get(["emphasis","scale"]),z2:t.getShallow("z",!0)||0};Y6(t,i,n,a,v),Z6(r,e,n,i,o,v.boundingLength,v.pxSign,f,a,v),X6(t,v.symbolScale,u,a,v);var c=v.symbolSize,p=Yo(t.get("symbolOffset"),c);return K6(t,c,n,i,o,p,s,v.valueLineWidth,v.boundingLength,v.repeatCutLength,a,v),v}function Y6(r,e,t,a,n){var i=a.valueDim,o=r.get("symbolBoundingData"),s=a.coordSys.getOtherAxis(a.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(t[i.wh]<=0),f;if(z(o)){var h=[Py(s,o[0])-l,Py(s,o[1])-l];h[1]0?1:-1}function Py(r,e){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(e)))}function Z6(r,e,t,a,n,i,o,s,l,u){var f=l.valueDim,h=l.categoryDim,v=Math.abs(t[h.wh]),c=r.getItemVisual(e,"symbolSize"),p;z(c)?p=c.slice():c==null?p=["100%","100%"]:p=[c,c],p[h.index]=H(p[h.index],v),p[f.index]=H(p[f.index],a?v:Math.abs(i)),u.symbolSize=p;var d=u.symbolScale=[p[0]/s,p[1]/s];d[f.index]*=(l.isHorizontal?-1:1)*o}function X6(r,e,t,a,n){var i=r.get(W6)||0;i&&(Iy.attr({scaleX:e[0],scaleY:e[1],rotation:t}),Iy.updateTransform(),i/=Iy.getLineScale(),i*=e[a.valueDim.index]),n.valueLineWidth=i||0}function K6(r,e,t,a,n,i,o,s,l,u,f,h){var v=f.categoryDim,c=f.valueDim,p=h.pxSign,d=Math.max(e[c.index]+s,0),g=d;if(a){var y=Math.abs(l),m=ce(r.get("symbolMargin"),"15%")+"",_=!1;m.lastIndexOf("!")===m.length-1&&(_=!0,m=m.slice(0,m.length-1));var S=H(m,e[c.index]),b=Math.max(d+S*2,0),x=_?0:S*2,w=c_(a),T=w?a:eD((y+x)/b),C=y-T*d;S=C/2/(_?T:Math.max(T-1,1)),b=d+S*2,x=_?0:S*2,!w&&a!=="fixed"&&(T=u?eD((Math.abs(u)+x)/b):0),g=T*b-x,h.repeatTimes=T,h.symbolMargin=S}var M=p*(g/2),D=h.pathPosition=[];D[v.index]=t[v.wh]/2,D[c.index]=o==="start"?M:o==="end"?l-M:l/2,i&&(D[0]+=i[0],D[1]+=i[1]);var L=h.bundlePosition=[];L[v.index]=t[v.xy],L[c.index]=t[c.xy];var I=h.barRectShape=B({},t);I[c.wh]=p*Math.max(Math.abs(t[c.wh]),Math.abs(D[c.index]+M)),I[v.wh]=t[v.wh];var P=h.clipShape={};P[v.xy]=-t[v.xy],P[v.wh]=f.ecSize[v.wh],P[c.xy]=0,P[c.wh]=t[c.wh]}function YM(r){var e=r.symbolPatternSize,t=re(r.symbolType,-e/2,-e/2,e,e);return t.attr({culling:!0}),t.type!=="image"&&t.setStyle({strokeNoScale:!0}),t}function ZM(r,e,t,a){var n=r.__pictorialBundle,i=t.symbolSize,o=t.valueLineWidth,s=t.pathPosition,l=e.valueDim,u=t.repeatTimes||0,f=0,h=i[e.valueDim.index]+o+t.symbolMargin*2;for(Ry(r,function(d){d.__pictorialAnimationIndex=f,d.__pictorialRepeatTimes=u,f0:y<0)&&(m=u-1-d),g[l.index]=h*(m-u/2+.5)+s[l.index],{x:g[0],y:g[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation}}}function XM(r,e,t,a){var n=r.__pictorialBundle,i=r.__pictorialMainPath;i?ls(i,null,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation},t,a):(i=r.__pictorialMainPath=YM(t),n.add(i),ls(i,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:0,scaleY:0,rotation:t.rotation},{scaleX:t.symbolScale[0],scaleY:t.symbolScale[1]},t,a))}function KM(r,e,t){var a=B({},e.barRectShape),n=r.__pictorialBarRect;n?ls(n,null,{shape:a},e,t):(n=r.__pictorialBarRect=new bt({z2:2,shape:a,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),n.disableMorphing=!0,r.add(n))}function qM(r,e,t,a){if(t.symbolClip){var n=r.__pictorialClipPath,i=B({},t.clipShape),o=e.valueDim,s=t.animationModel,l=t.dataIndex;if(n)Mt(n,{shape:i},s,l);else{i[o.wh]=0,n=new bt({shape:i}),r.__pictorialBundle.setClipPath(n),r.__pictorialClipPath=n;var u={};u[o.wh]=t.clipShape[o.wh],It[a?"updateProps":"initProps"](n,{shape:u},s,l)}}}function jM(r,e){var t=r.getItemModel(e);return t.getAnimationDelayParams=q6,t.isAnimationEnabled=j6,t}function q6(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function j6(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function $M(r,e,t,a){var n=new rt,i=new rt;return n.add(i),n.__pictorialBundle=i,i.x=t.bundlePosition[0],i.y=t.bundlePosition[1],t.symbolRepeat?ZM(n,e,t):XM(n,e,t),KM(n,t,a),qM(n,e,t,a),n.__pictorialShapeStr=JM(r,t),n.__pictorialSymbolMeta=t,n}function $6(r,e,t){var a=t.animationModel,n=t.dataIndex,i=r.__pictorialBundle;Mt(i,{x:t.bundlePosition[0],y:t.bundlePosition[1]},a,n),t.symbolRepeat?ZM(r,e,t,!0):XM(r,e,t,!0),KM(r,t,!0),qM(r,e,t,!0)}function QM(r,e,t,a){var n=a.__pictorialBarRect;n&&n.removeTextContent();var i=[];Ry(a,function(o){i.push(o)}),a.__pictorialMainPath&&i.push(a.__pictorialMainPath),a.__pictorialClipPath&&(t=null),A(i,function(o){vn(o,{scaleX:0,scaleY:0},t,e,function(){a.parent&&a.parent.remove(a)})}),r.setItemGraphicEl(e,null)}function JM(r,e){return[r.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function Ry(r,e,t){A(r.__pictorialBundle.children(),function(a){a!==r.__pictorialBarRect&&e.call(t,a)})}function ls(r,e,t,a,n,i){e&&r.attr(e),a.symbolClip&&!n?t&&r.attr(t):t&&It[n?"updateProps":"initProps"](r,t,a.animationModel,a.dataIndex,i)}function tD(r,e,t){var a=t.dataIndex,n=t.itemModel,i=n.getModel("emphasis"),o=i.getModel("itemStyle").getItemStyle(),s=n.getModel(["blur","itemStyle"]).getItemStyle(),l=n.getModel(["select","itemStyle"]).getItemStyle(),u=n.getShallow("cursor"),f=i.get("focus"),h=i.get("blurScope"),v=i.get("scale");Ry(r,function(d){if(d instanceof _e){var g=d.style;d.useStyle(B({image:g.image,x:g.x,y:g.y,width:g.width,height:g.height},t.style))}else d.useStyle(t.style);var y=d.ensureState("emphasis");y.style=o,v&&(y.scaleX=d.scaleX*1.1,y.scaleY=d.scaleY*1.1),d.ensureState("blur").style=s,d.ensureState("select").style=l,u&&(d.cursor=u),d.z2=t.z2});var c=e.valueDim.posDesc[+(t.boundingLength>0)],p=r.__pictorialBarRect;xe(p,ue(n),{labelFetcher:e.seriesModel,labelDataIndex:a,defaultText:Qo(e.seriesModel.getData(),a),inheritColor:t.style.fill,defaultOpacity:t.style.opacity,defaultOutsidePosition:c}),Yt(r,f,h,i.get("disabled"))}function eD(r){var e=Math.round(r);return Math.abs(r-e)<1e-4?e:Math.ceil(r)}var Q6=U6,J6=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t.defaultSymbol="roundRect",t}return e.prototype.getInitialData=function(t){return t.stack=null,r.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=cn(Ch.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),e}(Ch),tU=J6;function eU(r){r.registerChartView(Q6),r.registerSeriesModel(tU),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,it(lT,"pictorialBar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,uT("pictorialBar"))}var rU=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._layers=[],t}return e.prototype.render=function(t,a,n){var i=t.getData(),o=this,s=this.group,l=t.getLayerSeries(),u=i.getLayout("layoutInfo"),f=u.rect,h=u.boundaryGap;s.x=0,s.y=f.y+h[0];function v(g){return g.name}var c=new Ba(this._layersSeries||[],l,v,v),p=[];c.add(Y(d,this,"add")).update(Y(d,this,"update")).remove(Y(d,this,"remove")).execute();function d(g,y,m){var _=o._layers;if(g==="remove"){s.remove(_[y]);return}for(var S=[],b=[],x,w=l[y].indices,T=0;Ti&&(i=s),a.push(s)}for(var u=0;ui&&(i=h)}return{y0:n,max:i}}function uU(r){r.registerChartView(nU),r.registerSeriesModel(oU),r.registerLayout(sU),r.registerProcessor(Fl("themeRiver"))}var fU=2,hU=4,vU=function(r){k(e,r);function e(t,a,n,i){var o=r.call(this)||this;o.z2=fU,o.textConfig={inside:!0},nt(o).seriesIndex=a.seriesIndex;var s=new Ct({z2:hU,silent:t.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,t,a,n,i),o}return e.prototype.updateData=function(t,a,n,i,o){this.node=a,a.piece=this,n=n||this._seriesModel,i=i||this._ecModel;var s=this;nt(s).dataIndex=a.dataIndex;var l=a.getModel(),u=l.getModel("emphasis"),f=a.getLayout(),h=B({},f);h.label=null;var v=a.getVisual("style");v.lineJoin="bevel";var c=a.getVisual("decal");c&&(v.decal=Xo(c,o));var p=Fi(l.getModel("itemStyle"),h,!0);B(h,p),A(ke,function(m){var _=s.ensureState(m),S=l.getModel([m,"itemStyle"]);_.style=S.getItemStyle();var b=Fi(S,h);b&&(_.shape=b)}),t?(s.setShape(h),s.shape.r=f.r0,Ht(s,{shape:{r:f.r}},n,a.dataIndex)):(Mt(s,{shape:h},n),Nr(s)),s.useStyle(v),this._updateLabel(n);var d=l.getShallow("cursor");d&&s.attr("cursor",d),this._seriesModel=n||this._seriesModel,this._ecModel=i||this._ecModel;var g=u.get("focus"),y=g==="ancestor"?a.getAncestorsIndices():g==="descendant"?a.getDescendantIndices():g;Yt(this,y,u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t){var a=this,n=this.node.getModel(),i=n.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),f=Math.sin(l),h=this,v=h.getTextContent(),c=this.node.dataIndex,p=i.get("minAngle")/180*Math.PI,d=i.get("show")&&!(p!=null&&Math.abs(s)Math.PI/2?"right":"left"):!L||L==="center"?(s===2*Math.PI&&o.r0===0?M=0:M=(o.r+o.r0)/2,L="center"):L==="left"?(M=o.r0+D,l>Math.PI/2&&(L="right")):L==="right"&&(M=o.r-D,l>Math.PI/2&&(L="left")),S.style.align=L,S.style.verticalAlign=g(m,"verticalAlign")||"middle",S.x=M*u+o.cx,S.y=M*f+o.cy;var I=g(m,"rotate"),P=0;I==="radial"?(P=Ia(-l),P>Math.PI/2&&PMath.PI/2?P-=Math.PI:P<-Math.PI/2&&(P+=Math.PI)):Tt(I)&&(P=I*Math.PI/180),S.rotation=P});function g(y,m){var _=y.get(m);return _==null?i.get(m):_}v.dirtyStyle()},e}(Ue),aD=vU,ky="sunburstRootToNode",nD="sunburstHighlight",cU="sunburstUnhighlight";function pU(r){r.registerAction({type:ky,update:"updateView"},function(e,t){t.eachComponent({mainType:"series",subType:"sunburst",query:e},a);function a(n,i){var o=Jl(e,[ky],n);if(o){var s=n.getViewRoot();s&&(e.direction=Og(s,o.node)?"rollUp":"drillDown"),n.resetViewRoot(o.node)}}}),r.registerAction({type:nD,update:"none"},function(e,t,a){e=B({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},n);function n(i){var o=Jl(e,[nD],i);o&&(e.dataIndex=o.node.dataIndex)}a.dispatchAction(B(e,{type:"highlight"}))}),r.registerAction({type:cU,update:"updateView"},function(e,t,a){e=B({},e),a.dispatchAction(B(e,{type:"downplay"}))})}var dU=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n,i){var o=this;this.seriesModel=t,this.api=n,this.ecModel=a;var s=t.getData(),l=s.tree.root,u=t.getViewRoot(),f=this.group,h=t.get("renderLabelForZeroData"),v=[];u.eachNode(function(m){v.push(m)});var c=this._oldChildren||[];p(v,c),y(l,u),this._initEvents(),this._oldChildren=v;function p(m,_){if(m.length===0&&_.length===0)return;new Ba(_,m,S,S).add(b).update(b).remove(it(b,null)).execute();function S(x){return x.getId()}function b(x,w){var T=x==null?null:m[x],C=w==null?null:_[w];d(T,C)}}function d(m,_){if(!h&&m&&!m.getValue()&&(m=null),m!==l&&_!==l){if(_&&_.piece)m?(_.piece.updateData(!1,m,t,a,n),s.setItemGraphicEl(m.dataIndex,_.piece)):g(_);else if(m){var S=new aD(m,t,a,n);f.add(S),s.setItemGraphicEl(m.dataIndex,S)}}}function g(m){!m||m.piece&&(f.remove(m.piece),m.piece=null)}function y(m,_){_.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,m,t,a,n):(o.virtualPiece=new aD(m,t,a,n),f.add(o.virtualPiece)),_.piece.off("click"),o.virtualPiece.on("click",function(S){o._rootToNode(_.parentNode)})):o.virtualPiece&&(f.remove(o.virtualPiece),o.virtualPiece=null)}},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",function(a){var n=!1,i=t.seriesModel.getViewRoot();i.eachNode(function(o){if(!n&&o.piece&&o.piece===a.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")t._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var f=l.get("target",!0)||"_blank";Lf(u,f)}}n=!0}})})},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:ky,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,a){var n=a.getData(),i=n.getItemLayout(0);if(i){var o=t[0]-i.cx,s=t[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},e.type="sunburst",e}(zt),gU=dU,yU=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t,a){var n={name:t.name,children:t.data};iD(n);var i=this._levelModels=G(t.levels||[],function(l){return new Vt(l,this,a)},this),o=kg.createTree(n,this,s);function s(l){l.wrapMethod("getItemModel",function(u,f){var h=o.getNodeByDataIndex(f),v=i[h.depth];return v&&(u.parentModel=v),u})}return o.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(t){var a=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(t);return a.treePathInfo=Xh(n,this),a},e.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var a=this.getRawData().tree.root;(!t||t!==a&&!a.contains(t))&&(this._viewRoot=a)},e.prototype.enableAriaDecal=function(){gA(this)},e.type="series.sunburst",e.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},e}(Wt);function iD(r){var e=0;A(r.children,function(a){iD(a);var n=a.value;z(n)&&(n=n[0]),e+=n});var t=r.value;z(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),z(r.value)?r.value[0]=t:r.value=t}var mU=yU,oD=Math.PI/180;function _U(r,e,t){e.eachSeriesByType(r,function(a){var n=a.get("center"),i=a.get("radius");z(i)||(i=[0,i]),z(n)||(n=[n,n]);var o=t.getWidth(),s=t.getHeight(),l=Math.min(o,s),u=H(n[0],o),f=H(n[1],s),h=H(i[0],l/2),v=H(i[1],l/2),c=-a.get("startAngle")*oD,p=a.get("minAngle")*oD,d=a.getData().tree.root,g=a.getViewRoot(),y=g.depth,m=a.get("sort");m!=null&&sD(g,m);var _=0;A(g.children,function(E){!isNaN(E.getValue())&&_++});var S=g.getValue(),b=Math.PI/(S||_)*2,x=g.depth>0,w=g.height-(x?-1:1),T=(v-h)/(w||1),C=a.get("clockwise"),M=a.get("stillShowZeroSum"),D=C?1:-1,L=function(E,N){if(!!E){var O=N;if(E!==d){var V=E.getValue(),F=S===0&&M?b:V*b;F1;)o=o.parentNode;var s=n.getColorFromPalette(o.name||o.dataIndex+"",e);return a.depth>1&&U(s)&&(s=uc(s,(a.depth-1)/(i-1)*.5)),s}r.eachSeriesByType("sunburst",function(a){var n=a.getData(),i=n.tree;i.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=t(o,a,i.root.height));var u=n.ensureUniqueItemVisual(o.dataIndex,"style");B(u,l)})})}function bU(r){r.registerChartView(gU),r.registerSeriesModel(mU),r.registerLayout(it(_U,"sunburst")),r.registerProcessor(it(Fl,"sunburst")),r.registerVisual(xU),pU(r)}var lD={color:"fill",borderColor:"stroke"},wU={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Wa=xt(),TU=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,a){return Va(null,this)},e.prototype.getDataParams=function(t,a,n){var i=r.prototype.getDataParams.call(this,t,a);return n&&(i.info=Wa(n).info),i},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(Wt),CU=TU;function AU(r,e){return e=e||[0,0],G(["x","y"],function(t,a){var n=this.getAxis(t),i=e[a],o=r[a]/2;return n.type==="category"?n.getBandWidth():Math.abs(n.dataToCoord(i-o)-n.dataToCoord(i+o))},this)}function MU(r){var e=r.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return r.dataToPoint(t)},size:Y(AU,r)}}}function DU(r,e){return e=e||[0,0],G([0,1],function(t){var a=e[t],n=r[t]/2,i=[],o=[];return i[t]=a-n,o[t]=a+n,i[1-t]=o[1-t]=e[1-t],Math.abs(this.dataToPoint(i)[t]-this.dataToPoint(o)[t])},this)}function LU(r){var e=r.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:r.getZoom()},api:{coord:function(t){return r.dataToPoint(t)},size:Y(DU,r)}}}function IU(r,e){var t=this.getAxis(),a=e instanceof Array?e[0]:e,n=(r instanceof Array?r[0]:r)/2;return t.type==="category"?t.getBandWidth():Math.abs(t.dataToCoord(a-n)-t.dataToCoord(a+n))}function PU(r){var e=r.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return r.dataToPoint(t)},size:Y(IU,r)}}}function RU(r,e){return e=e||[0,0],G(["Radius","Angle"],function(t,a){var n="get"+t+"Axis",i=this[n](),o=e[a],s=r[a]/2,l=i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(o-s)-i.dataToCoord(o+s));return t==="Angle"&&(l=l*Math.PI/180),l},this)}function EU(r){var e=r.getRadiusAxis(),t=r.getAngleAxis(),a=e.getExtent();return a[0]>a[1]&&a.reverse(),{coordSys:{type:"polar",cx:r.cx,cy:r.cy,r:a[1],r0:a[0]},api:{coord:function(n){var i=e.dataToRadius(n[0]),o=t.dataToAngle(n[1]),s=r.coordToPoint([i,o]);return s.push(i,o*Math.PI/180),s},size:Y(RU,r)}}}function kU(r){var e=r.getRect(),t=r.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:r.getCellWidth(),cellHeight:r.getCellHeight(),rangeInfo:{start:t.start,end:t.end,weeks:t.weeks,dayCount:t.allDay}},api:{coord:function(a,n){return r.dataToPoint(a,n)}}}}var Zq={};function uD(r,e,t,a){return r&&(r.legacy||r.legacy!==!1&&!t&&!a&&e!=="tspan"&&(e==="text"||Z(r,"text")))}function fD(r,e,t){var a=r,n,i,o;if(e==="text")o=a;else{o={},Z(a,"text")&&(o.text=a.text),Z(a,"rich")&&(o.rich=a.rich),Z(a,"textFill")&&(o.fill=a.textFill),Z(a,"textStroke")&&(o.stroke=a.textStroke),Z(a,"fontFamily")&&(o.fontFamily=a.fontFamily),Z(a,"fontSize")&&(o.fontSize=a.fontSize),Z(a,"fontStyle")&&(o.fontStyle=a.fontStyle),Z(a,"fontWeight")&&(o.fontWeight=a.fontWeight),i={type:"text",style:o,silent:!0},n={};var s=Z(a,"textPosition");t?n.position=s?a.textPosition:"inside":s&&(n.position=a.textPosition),Z(a,"textPosition")&&(n.position=a.textPosition),Z(a,"textOffset")&&(n.offset=a.textOffset),Z(a,"textRotation")&&(n.rotation=a.textRotation),Z(a,"textDistance")&&(n.distance=a.textDistance)}return hD(o,r),A(o.rich,function(l){hD(l,l)}),{textConfig:n,textContent:i}}function hD(r,e){!e||(e.font=e.textFont||e.font,Z(e,"textStrokeWidth")&&(r.lineWidth=e.textStrokeWidth),Z(e,"textAlign")&&(r.align=e.textAlign),Z(e,"textVerticalAlign")&&(r.verticalAlign=e.textVerticalAlign),Z(e,"textLineHeight")&&(r.lineHeight=e.textLineHeight),Z(e,"textWidth")&&(r.width=e.textWidth),Z(e,"textHeight")&&(r.height=e.textHeight),Z(e,"textBackgroundColor")&&(r.backgroundColor=e.textBackgroundColor),Z(e,"textPadding")&&(r.padding=e.textPadding),Z(e,"textBorderColor")&&(r.borderColor=e.textBorderColor),Z(e,"textBorderWidth")&&(r.borderWidth=e.textBorderWidth),Z(e,"textBorderRadius")&&(r.borderRadius=e.textBorderRadius),Z(e,"textBoxShadowColor")&&(r.shadowColor=e.textBoxShadowColor),Z(e,"textBoxShadowBlur")&&(r.shadowBlur=e.textBoxShadowBlur),Z(e,"textBoxShadowOffsetX")&&(r.shadowOffsetX=e.textBoxShadowOffsetX),Z(e,"textBoxShadowOffsetY")&&(r.shadowOffsetY=e.textBoxShadowOffsetY))}function vD(r,e,t){var a=r;a.textPosition=a.textPosition||t.position||"inside",t.offset!=null&&(a.textOffset=t.offset),t.rotation!=null&&(a.textRotation=t.rotation),t.distance!=null&&(a.textDistance=t.distance);var n=a.textPosition.indexOf("inside")>=0,i=r.fill||"#000";cD(a,e);var o=a.textFill==null;return n?o&&(a.textFill=t.insideFill||"#fff",!a.textStroke&&t.insideStroke&&(a.textStroke=t.insideStroke),!a.textStroke&&(a.textStroke=i),a.textStrokeWidth==null&&(a.textStrokeWidth=2)):(o&&(a.textFill=r.fill||t.outsideFill||"#000"),!a.textStroke&&t.outsideStroke&&(a.textStroke=t.outsideStroke)),a.text=e.text,a.rich=e.rich,A(e.rich,function(s){cD(s,s)}),a}function cD(r,e){!e||(Z(e,"fill")&&(r.textFill=e.fill),Z(e,"stroke")&&(r.textStroke=e.fill),Z(e,"lineWidth")&&(r.textStrokeWidth=e.lineWidth),Z(e,"font")&&(r.font=e.font),Z(e,"fontStyle")&&(r.fontStyle=e.fontStyle),Z(e,"fontWeight")&&(r.fontWeight=e.fontWeight),Z(e,"fontSize")&&(r.fontSize=e.fontSize),Z(e,"fontFamily")&&(r.fontFamily=e.fontFamily),Z(e,"align")&&(r.textAlign=e.align),Z(e,"verticalAlign")&&(r.textVerticalAlign=e.verticalAlign),Z(e,"lineHeight")&&(r.textLineHeight=e.lineHeight),Z(e,"width")&&(r.textWidth=e.width),Z(e,"height")&&(r.textHeight=e.height),Z(e,"backgroundColor")&&(r.textBackgroundColor=e.backgroundColor),Z(e,"padding")&&(r.textPadding=e.padding),Z(e,"borderColor")&&(r.textBorderColor=e.borderColor),Z(e,"borderWidth")&&(r.textBorderWidth=e.borderWidth),Z(e,"borderRadius")&&(r.textBorderRadius=e.borderRadius),Z(e,"shadowColor")&&(r.textBoxShadowColor=e.shadowColor),Z(e,"shadowBlur")&&(r.textBoxShadowBlur=e.shadowBlur),Z(e,"shadowOffsetX")&&(r.textBoxShadowOffsetX=e.shadowOffsetX),Z(e,"shadowOffsetY")&&(r.textBoxShadowOffsetY=e.shadowOffsetY),Z(e,"textShadowColor")&&(r.textShadowColor=e.textShadowColor),Z(e,"textShadowBlur")&&(r.textShadowBlur=e.textShadowBlur),Z(e,"textShadowOffsetX")&&(r.textShadowOffsetX=e.textShadowOffsetX),Z(e,"textShadowOffsetY")&&(r.textShadowOffsetY=e.textShadowOffsetY))}function Xq(r,e){if(!1)var t}var pD={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},dD=_t(pD),Kq=qr(Jr,function(r,e){return r[e]=1,r},{}),qq=Jr.join(", "),ov=["","style","shape","extra"],us=xt();function Oy(r,e,t,a,n){var i=r+"Animation",o=Co(r,a,n)||{},s=us(e).userDuring;return o.duration>0&&(o.during=s?Y(zU,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=r),B(o,t[i]),o}function sv(r,e,t,a){a=a||{};var n=a.dataIndex,i=a.isInit,o=a.clearStyle,s=t.isAnimationEnabled(),l=us(r),u=e.style;l.userDuring=e.during;var f={},h={};if(FU(r,e,h),mD("shape",e,h),mD("extra",e,h),!i&&s&&(GU(r,e,f),yD("shape",r,e,f),yD("extra",r,e,f),HU(r,e,u,f)),h.style=u,OU(r,h,o),BU(r,e),s)if(i){var v={};A(ov,function(p){var d=p?e[p]:e;d&&d.enterFrom&&(p&&(v[p]=v[p]||{}),B(p?v[p]:v,d.enterFrom))});var c=Oy("enter",r,e,t,n);c.duration>0&&r.animateFrom(v,c)}else NU(r,e,n||0,t,f);gD(r,e),u?r.dirty():r.markRedraw()}function gD(r,e){for(var t=us(r).leaveToProps,a=0;a0&&r.animateFrom(n,i)}}function BU(r,e){Z(e,"silent")&&(r.silent=e.silent),Z(e,"ignore")&&(r.ignore=e.ignore),r instanceof dr&&Z(e,"invisible")&&(r.invisible=e.invisible),r instanceof pt&&Z(e,"autoBatch")&&(r.autoBatch=e.autoBatch)}var ga={},VU={setTransform:function(r,e){return ga.el[r]=e,this},getTransform:function(r){return ga.el[r]},setShape:function(r,e){var t=ga.el,a=t.shape||(t.shape={});return a[r]=e,t.dirtyShape&&t.dirtyShape(),this},getShape:function(r){var e=ga.el.shape;if(e)return e[r]},setStyle:function(r,e){var t=ga.el,a=t.style;return a&&(a[r]=e,t.dirtyStyle&&t.dirtyStyle()),this},getStyle:function(r){var e=ga.el.style;if(e)return e[r]},setExtra:function(r,e){var t=ga.el.extra||(ga.el.extra={});return t[r]=e,this},getExtra:function(r){var e=ga.el.extra;if(e)return e[r]}};function jq(r){}function zU(){var r=this,e=r.el;if(!!e){var t=us(e).userDuring,a=r.userDuring;if(t!==a){r.el=r.userDuring=null;return}ga.el=e,a(VU)}}function yD(r,e,t,a){var n=t[r];if(!!n){var i=e[r],o;if(i){var s=t.transition,l=n.transition;if(l)if(!o&&(o=a[r]={}),to(l))B(o,i);else for(var u=Ot(l),f=0;f=0){!o&&(o=a[r]={});for(var c=_t(i),f=0;f=0)){var v=r.getAnimationStyleProps(),c=v?v.style:null;if(c){!i&&(i=a.style={});for(var p=_t(t),u=0;u=0?e.getStore().get(N,R):void 0}var O=e.get(E.name,R),V=E&&E.ordinalMeta;return V?V.categories[O]:O}function x(P,R){R==null&&(R=u);var E=e.getItemVisual(R,"style"),N=E&&E.fill,O=E&&E.opacity,V=m(R,Dn).getItemStyle();N!=null&&(V.fill=N),O!=null&&(V.opacity=O);var F={inheritColor:U(N)?N:"#000"},W=_(R,Dn),X=Bt(W,null,F,!1,!0);X.text=W.getShallow("show")?ft(r.getFormattedLabel(R,Dn),Qo(e,R)):null;var Q=Sf(W,F,!1);return C(P,V),V=vD(V,X,Q),P&&T(V,P),V.legacy=!0,V}function w(P,R){R==null&&(R=u);var E=m(R,Ua).getItemStyle(),N=_(R,Ua),O=Bt(N,null,null,!0,!0);O.text=N.getShallow("show")?ba(r.getFormattedLabel(R,Ua),r.getFormattedLabel(R,Dn),Qo(e,R)):null;var V=Sf(N,null,!0);return C(P,E),E=vD(E,O,V),P&&T(E,P),E.legacy=!0,E}function T(P,R){for(var E in R)Z(R,E)&&(P[E]=R[E])}function C(P,R){P&&(P.textFill&&(R.textFill=P.textFill),P.textPosition&&(R.textPosition=P.textPosition))}function M(P,R){if(R==null&&(R=u),Z(lD,P)){var E=e.getItemVisual(R,"style");return E?E[lD[P]]:null}if(Z(wU,P))return e.getItemVisual(R,P)}function D(P){if(i.type==="cartesian2d"){var R=i.getBaseAxis();return _z(K({axis:R},P))}}function L(){return t.getCurrentSeriesIndices()}function I(P){return L1(P,t)}}function JU(r){var e={};return A(r.dimensions,function(t){var a=r.getDimensionInfo(t);if(!a.isExtraCoord){var n=a.coordDim,i=e[n]=e[n]||[];i[a.coordDimIndex]=r.getDimensionIndex(t)}}),e}function Uy(r,e,t,a,n,i,o){if(!a){i.remove(e);return}var s=Yy(r,e,t,a,n,i);return s&&o.setItemGraphicEl(t,s),s&&Yt(s,a.focus,a.blurScope,a.emphasisDisabled),s}function Yy(r,e,t,a,n,i){var o=-1,s=e;e&&wD(e,a,n)&&(o=st(i.childrenRef(),e),e=null);var l=!e,u=e;u?u.clearStates():(u=Hy(a),s&&KU(s,u)),a.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),Ar.normal.cfg=Ar.normal.conOpt=Ar.emphasis.cfg=Ar.emphasis.conOpt=Ar.blur.cfg=Ar.blur.conOpt=Ar.select.cfg=Ar.select.conOpt=null,Ar.isLegacy=!1,e8(u,t,a,n,l,Ar),t8(u,t,a,n,l),Wy(r,u,t,a,Ar,n,l),Z(a,"info")&&(Wa(u).info=a.info);for(var f=0;f=0?i.replaceAt(u,o):i.add(u),u}function wD(r,e,t){var a=Wa(r),n=e.type,i=e.shape,o=e.style;return t.isUniversalTransitionEnabled()||n!=null&&n!==a.customGraphicType||n==="path"&&o8(i)&&MD(i)!==a.customPathData||n==="image"&&Z(o,"image")&&o.image!==a.customImagePath}function t8(r,e,t,a,n){var i=t.clipPath;if(i===!1)r&&r.getClipPath()&&r.removeClipPath();else if(i){var o=r.getClipPath();o&&wD(o,i,a)&&(o=null),o||(o=Hy(i),r.setClipPath(o)),Wy(null,o,e,i,null,a,n)}}function e8(r,e,t,a,n,i){if(!r.isGroup){TD(t,null,i),TD(t,Ua,i);var o=i.normal.conOpt,s=i.emphasis.conOpt,l=i.blur.conOpt,u=i.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var f=r.getTextContent();if(o===!1)f&&r.removeTextContent();else{o=i.normal.conOpt=o||{type:"text"},f?f.clearStates():(f=Hy(o),r.setTextContent(f)),Wy(null,f,e,o,null,a,n);for(var h=o&&o.style,v=0;v=f;c--){var p=e.childAt(c);a8(e,p,n)}}}function a8(r,e,t){e&&lv(e,Wa(r).option,t)}function n8(r){new Ba(r.oldChildren,r.newChildren,CD,CD,r).add(AD).update(AD).remove(i8).execute()}function CD(r,e){var t=r&&r.name;return t!=null?t:ZU+e}function AD(r,e){var t=this.context,a=r!=null?t.newChildren[r]:null,n=e!=null?t.oldChildren[e]:null;Yy(t.api,n,t.dataIndex,a,t.seriesModel,t.group)}function i8(r){var e=this.context,t=e.oldChildren[r];t&&lv(t,Wa(t).option,e.seriesModel)}function MD(r){return r&&(r.pathData||r.d)}function o8(r){return r&&(Z(r,"pathData")||Z(r,"d"))}function s8(r){r.registerChartView(jU),r.registerSeriesModel(CU)}var eo=xt(),DD=tt,Xy=Y,l8=function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(e,t,a,n){var i=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=a,!(!n&&this._lastValue===i&&this._lastStatus===o)){this._lastValue=i,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,i,e,t,a);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(a),this._lastGraphicKey=f;var h=this._moveAnimation=this.determineAnimation(e,t);if(!s)s=this._group=new rt,this.createPointerEl(s,u,e,t),this.createLabelEl(s,u,e,t),a.getZr().add(s);else{var v=it(LD,t,h);this.updatePointerEl(s,u,v),this.updateLabelEl(s,u,v,t)}RD(s,t,!0),this._renderHandle(i)}},r.prototype.remove=function(e){this.clear(e)},r.prototype.dispose=function(e){this.clear(e)},r.prototype.determineAnimation=function(e,t){var a=t.get("animation"),n=e.axis,i=n.type==="category",o=t.get("snap");if(!o&&!i)return!1;if(a==="auto"||a==null){var s=this.animationThreshold;if(i&&n.getBandWidth()>s)return!0;if(o){var l=gg(e).seriesDataCount,u=n.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return a===!0},r.prototype.makeElOption=function(e,t,a,n,i){},r.prototype.createPointerEl=function(e,t,a,n){var i=t.pointer;if(i){var o=eo(e).pointerEl=new It[i.type](DD(t.pointer));e.add(o)}},r.prototype.createLabelEl=function(e,t,a,n){if(t.label){var i=eo(e).labelEl=new Ct(DD(t.label));e.add(i),PD(i,n)}},r.prototype.updatePointerEl=function(e,t,a){var n=eo(e).pointerEl;n&&t.pointer&&(n.setStyle(t.pointer.style),a(n,{shape:t.pointer.shape}))},r.prototype.updateLabelEl=function(e,t,a,n){var i=eo(e).labelEl;i&&(i.setStyle(t.label.style),a(i,{x:t.label.x,y:t.label.y}),PD(i,n))},r.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,a=this._api.getZr(),n=this._handle,i=t.getModel("handle"),o=t.get("status");if(!i.get("show")||!o||o==="hide"){n&&a.remove(n),this._handle=null;return}var s;this._handle||(s=!0,n=this._handle=ml(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Ta(u.event)},onmousedown:Xy(this._onHandleDragMove,this,0,0),drift:Xy(this._onHandleDragMove,this),ondragend:Xy(this._onHandleDragEnd,this)}),a.add(n)),RD(n,t,!1),n.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");z(l)||(l=[l,l]),n.scaleX=l[0]/2,n.scaleY=l[1]/2,Wo(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},r.prototype._moveHandleToValue=function(e,t){LD(this._axisPointerModel,!t&&this._moveAnimation,this._handle,Ky(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(e,t){var a=this._handle;if(!!a){this._dragging=!0;var n=this.updateHandleTransform(Ky(a),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=n,a.stopAnimation(),a.attr(Ky(n)),eo(a).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(!!e){var t=this._payloadInfo,a=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:a.axis.dim,axisIndex:a.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(!!e){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),a=this._group,n=this._handle;t&&a&&(this._lastGraphicKey=null,a&&t.remove(a),n&&t.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),Sl(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(e,t,a){return a=a||0,{x:e[a],y:e[1-a],width:t[a],height:t[1-a]}},r}();function LD(r,e,t,a){ID(eo(t).lastProp,a)||(eo(t).lastProp=a,e?Mt(t,a,r):(t.stopAnimation(),t.attr(a)))}function ID(r,e){if(et(r)&&et(e)){var t=!0;return A(e,function(a,n){t=t&&ID(r[n],a)}),!!t}else return r===e}function PD(r,e){r[e.get(["label","show"])?"show":"hide"]()}function Ky(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function RD(r,e,t){var a=e.get("z"),n=e.get("zlevel");r&&r.traverse(function(i){i.type!=="group"&&(a!=null&&(i.z=a),n!=null&&(i.zlevel=n),i.silent=t)})}var qy=l8;function jy(r){var e=r.get("type"),t=r.getModel(e+"Style"),a;return e==="line"?(a=t.getLineStyle(),a.fill=null):e==="shadow"&&(a=t.getAreaStyle(),a.stroke=null),a}function ED(r,e,t,a,n){var i=t.get("value"),o=kD(i,e.axis,e.ecModel,t.get("seriesDataIndices"),{precision:t.get(["label","precision"]),formatter:t.get(["label","formatter"])}),s=t.getModel("label"),l=Po(s.get("padding")||0),u=s.getFont(),f=Gs(o,u),h=n.position,v=f.width+l[1]+l[3],c=f.height+l[0]+l[2],p=n.align;p==="right"&&(h[0]-=v),p==="center"&&(h[0]-=v/2);var d=n.verticalAlign;d==="bottom"&&(h[1]-=c),d==="middle"&&(h[1]-=c/2),u8(h,v,c,a);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=e.get(["axisLine","lineStyle","color"])),r.label={x:h[0],y:h[1],style:Bt(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function u8(r,e,t,a){var n=a.getWidth(),i=a.getHeight();r[0]=Math.min(r[0]+e,n)-e,r[1]=Math.min(r[1]+t,i)-t,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function kD(r,e,t,a,n){r=e.scale.parse(r);var i=e.scale.getLabel({value:r},{precision:n.precision}),o=n.formatter;if(o){var s={value:ug(e,{value:r}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};A(a,function(l){var u=t.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,h=u&&u.getDataParams(f);h&&s.seriesData.push(h)}),U(o)?i=o.replace("{value}",i):$(o)&&(i=o(s))}return i}function $y(r,e,t){var a=hr();return Zn(a,a,t.rotation),jr(a,a,t.position),Gr([r.dataToCoord(e),(t.labelOffset||0)+(t.labelDirection||1)*(t.labelMargin||0)],a)}function OD(r,e,t,a,n,i){var o=Ga.innerTextLayout(t.rotation,0,t.labelDirection);t.labelMargin=n.get(["label","margin"]),ED(e,a,n,i,{position:$y(a.axis,r,t),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function Qy(r,e,t){return t=t||0,{x1:r[t],y1:r[1-t],x2:e[t],y2:e[1-t]}}function ND(r,e,t){return t=t||0,{x:r[t],y:r[1-t],width:e[t],height:e[1-t]}}function BD(r,e,t,a,n,i){return{cx:r,cy:e,r0:t,r:a,startAngle:n,endAngle:i,clockwise:!0}}var f8=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,a,n,i,o){var s=n.axis,l=s.grid,u=i.get("type"),f=VD(l,s).getOtherAxis(s).getGlobalExtent(),h=s.toGlobalCoord(s.dataToCoord(a,!0));if(u&&u!=="none"){var v=jy(i),c=h8[u](s,h,f);c.style=v,t.graphicKey=c.type,t.pointer=c}var p=vg(l.model,n);OD(a,t,p,n,i,o)},e.prototype.getHandleTransform=function(t,a,n){var i=vg(a.axis.grid.model,a,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=$y(a.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,a,n,i){var o=n.axis,s=o.grid,l=o.getGlobalExtent(!0),u=VD(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,h=[t.x,t.y];h[f]+=a[f],h[f]=Math.min(l[1],h[f]),h[f]=Math.max(l[0],h[f]);var v=(u[1]+u[0])/2,c=[v,v];c[f]=h[f];var p=[{verticalAlign:"middle"},{align:"center"}];return{x:h[0],y:h[1],rotation:t.rotation,cursorPoint:c,tooltipOption:p[f]}},e}(qy);function VD(r,e){var t={};return t[e.dim+"AxisIndex"]=e.index,r.getCartesian(t)}var h8={line:function(r,e,t){var a=Qy([e,t[0]],[e,t[1]],zD(r));return{type:"Line",subPixelOptimize:!0,shape:a}},shadow:function(r,e,t){var a=Math.max(1,r.getBandWidth()),n=t[1]-t[0];return{type:"Rect",shape:ND([e-a/2,t[0]],[a,n],zD(r))}}};function zD(r){return r.dim==="x"?0:1}var v8=f8,c8=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e}(At),p8=c8,Ya=xt(),d8=A;function GD(r,e,t){if(!St.node){var a=e.getZr();Ya(a).records||(Ya(a).records={}),g8(a,e);var n=Ya(a).records[r]||(Ya(a).records[r]={});n.handler=t}}function g8(r,e){if(Ya(r).initialized)return;Ya(r).initialized=!0,t("click",it(FD,"click")),t("mousemove",it(FD,"mousemove")),t("globalout",m8);function t(a,n){r.on(a,function(i){var o=_8(e);d8(Ya(r).records,function(s){s&&n(s,i,o.dispatchAction)}),y8(o.pendings,e)})}}function y8(r,e){var t=r.showTip.length,a=r.hideTip.length,n;t?n=r.showTip[t-1]:a&&(n=r.hideTip[a-1]),n&&(n.dispatchAction=null,e.dispatchAction(n))}function m8(r,e,t){r.handler("leave",null,t)}function FD(r,e,t,a){e.handler(r,t,a)}function _8(r){var e={showTip:[],hideTip:[]},t=function(a){var n=e[a.type];n?n.push(a):(a.dispatchAction=t,r.dispatchAction(a))};return{dispatchAction:t,pendings:e}}function Jy(r,e){if(!St.node){var t=e.getZr(),a=(Ya(t).records||{})[r];a&&(Ya(t).records[r]=null)}}var S8=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i=a.getComponent("tooltip"),o=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";GD("axisPointer",n,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(t,a){Jy("axisPointer",a)},e.prototype.dispose=function(t,a){Jy("axisPointer",a)},e.type="axisPointer",e}(Zt),x8=S8;function HD(r,e){var t=[],a=r.seriesIndex,n;if(a==null||!(n=e.getSeriesByIndex(a)))return{point:[]};var i=n.getData(),o=ri(i,r);if(o==null||o<0||z(o))return{point:[]};var s=i.getItemGraphicEl(o),l=n.coordinateSystem;if(n.getTooltipPosition)t=n.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),h=f.dim,v=u.dim,c=h==="x"||h==="radius"?1:0,p=i.mapDimension(v),d=[];d[c]=i.get(p,o),d[1-c]=i.get(i.getCalculationInfo("stackResultDimension"),o),t=l.dataToPoint(d)||[]}else t=l.dataToPoint(i.getValues(G(l.dimensions,function(y){return i.mapDimension(y)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),t=[g.x+g.width/2,g.y+g.height/2]}return{point:t,el:s}}var WD=xt();function b8(r,e,t){var a=r.currTrigger,n=[r.x,r.y],i=r,o=r.dispatchAction||Y(t.dispatchAction,t),s=e.getComponent("axisPointer").coordSysAxesInfo;if(!!s){hv(n)&&(n=HD({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},e).point);var l=hv(n),u=i.axesInfo,f=s.axesInfo,h=a==="leave"||hv(n),v={},c={},p={list:[],map:{}},d={showPointer:it(T8,c),showTooltip:it(C8,p)};A(s.coordSysMap,function(y,m){var _=l||y.containPoint(n);A(s.coordSysAxesInfo[m],function(S,b){var x=S.axis,w=L8(u,S);if(!h&&_&&(!u||w)){var T=w&&w.value;T==null&&!l&&(T=x.pointToData(n)),T!=null&&UD(S,T,d,!1,v)}})});var g={};return A(f,function(y,m){var _=y.linkGroup;_&&!c[m]&&A(_.axesInfo,function(S,b){var x=c[b];if(S!==y&&x){var w=x.value;_.mapper&&(w=y.axis.scale.parse(_.mapper(w,YD(S),YD(y)))),g[y.key]=w}})}),A(g,function(y,m){UD(f[m],y,d,!0,v)}),A8(c,f,v),M8(p,n,r,o),D8(f,o,t),v}}function UD(r,e,t,a,n){var i=r.axis;if(!(i.scale.isBlank()||!i.containData(e))){if(!r.involveSeries){t.showPointer(r,e);return}var o=w8(e,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&n.seriesIndex==null&&B(n,s[0]),!a&&r.snap&&i.containData(l)&&l!=null&&(e=l),t.showPointer(r,e,s),t.showTooltip(r,o,l)}}function w8(r,e){var t=e.axis,a=t.dim,n=r,i=[],o=Number.MAX_VALUE,s=-1;return A(e.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(a),h,v;if(l.getAxisTooltipData){var c=l.getAxisTooltipData(f,r,t);v=c.dataIndices,h=c.nestestValue}else{if(v=l.getData().indicesOfNearest(f[0],r,t.type==="category"?.5:null),!v.length)return;h=l.getData().get(f[0],v[0])}if(!(h==null||!isFinite(h))){var p=r-h,d=Math.abs(p);d<=o&&((d=0&&s<0)&&(o=d,s=p,n=h,i.length=0),A(v,function(g){i.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:i,snapToValue:n}}function T8(r,e,t,a){r[e.key]={value:t,payloadBatch:a}}function C8(r,e,t,a){var n=t.payloadBatch,i=e.axis,o=i.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!n.length)){var l=e.coordSys.model,u=Xl(l),f=r.map[u];f||(f=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(f)),f.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:a,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:n.slice()})}}function A8(r,e,t){var a=t.axesInfo=[];A(e,function(n,i){var o=n.axisPointerModel.option,s=r[i];s?(!n.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!n.useHandle&&(o.status="hide"),o.status==="show"&&a.push({axisDim:n.axis.dim,axisIndex:n.axis.model.componentIndex,value:o.value})})}function M8(r,e,t,a){if(hv(e)||!r.list.length){a({type:"hideTip"});return}var n=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};a({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:t.tooltipOption,position:t.position,dataIndexInside:n.dataIndexInside,dataIndex:n.dataIndex,seriesIndex:n.seriesIndex,dataByCoordSys:r.list})}function D8(r,e,t){var a=t.getZr(),n="axisPointerLastHighlights",i=WD(a)[n]||{},o=WD(a)[n]={};A(r,function(u,f){var h=u.axisPointerModel.option;h.status==="show"&&A(h.seriesDataIndices,function(v){var c=v.seriesIndex+" | "+v.dataIndex;o[c]=v})});var s=[],l=[];A(i,function(u,f){!o[f]&&l.push(u)}),A(o,function(u,f){!i[f]&&s.push(u)}),l.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function L8(r,e){for(var t=0;t<(r||[]).length;t++){var a=r[t];if(e.axis.dim===a.axisDim&&e.axis.model.componentIndex===a.axisIndex)return a}}function YD(r){var e=r.axis.model,t={},a=t.axisDim=r.axis.dim;return t.axisIndex=t[a+"AxisIndex"]=e.componentIndex,t.axisName=t[a+"AxisName"]=e.name,t.axisId=t[a+"AxisId"]=e.id,t}function hv(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function hu(r){Ui.registerAxisPointerClass("CartesianAxisPointer",v8),r.registerComponentModel(p8),r.registerComponentView(x8),r.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!z(t)&&(e.axisPointer.link=[t])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=uG(e,t)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},b8)}function I8(r){ct(gC),ct(hu)}var P8=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,a,n,i,o){var s=n.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),f=u.getExtent(),h=s.dataToCoord(a),v=i.get("type");if(v&&v!=="none"){var c=jy(i),p=E8[v](s,l,h,f);p.style=c,t.graphicKey=p.type,t.pointer=p}var d=i.get(["label","margin"]),g=R8(a,n,i,l,d);ED(t,n,i,o,g)},e}(qy);function R8(r,e,t,a,n){var i=e.axis,o=i.dataToCoord(r),s=a.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=a.getRadiusAxis().getExtent(),u,f,h;if(i.dim==="radius"){var v=hr();Zn(v,v,s),jr(v,v,[a.cx,a.cy]),u=Gr([o,-n],v);var c=e.getModel("axisLabel").get("rotate")||0,p=Ga.innerTextLayout(s,c*Math.PI/180,-1);f=p.textAlign,h=p.textVerticalAlign}else{var d=l[1];u=a.coordToPoint([d+n,o]);var g=a.cx,y=a.cy;f=Math.abs(u[0]-g)/d<.3?"center":u[0]>g?"left":"right",h=Math.abs(u[1]-y)/d<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:f,verticalAlign:h}}var E8={line:function(r,e,t,a){return r.dim==="angle"?{type:"Line",shape:Qy(e.coordToPoint([a[0],t]),e.coordToPoint([a[1],t]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:t}}},shadow:function(r,e,t,a){var n=Math.max(1,r.getBandWidth()),i=Math.PI/180;return r.dim==="angle"?{type:"Sector",shape:BD(e.cx,e.cy,a[0],a[1],(-t-n/2)*i,(-t+n/2)*i)}:{type:"Sector",shape:BD(e.cx,e.cy,t-n/2,t+n/2,0,Math.PI*2)}}},k8=P8,O8=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.findAxisModel=function(t){var a,n=this.ecModel;return n.eachComponent(t,function(i){i.getCoordSysModel()===this&&(a=i)},this),a},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(At),N8=O8,tm=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",te).models[0]},e.type="polarAxis",e}(At);Jt(tm,Wl);var B8=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="angleAxis",e}(tm),V8=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="radiusAxis",e}(tm),em=function(r){k(e,r);function e(t,a){return r.call(this,"radius",t,a)||this}return e.prototype.pointToData=function(t,a){return this.polar.pointToData(t,a)[this.dim==="radius"?0:1]},e}(Yr);em.prototype.dataToRadius=Yr.prototype.dataToCoord,em.prototype.radiusToData=Yr.prototype.coordToData;var z8=em,G8=xt(),rm=function(r){k(e,r);function e(t,a){return r.call(this,"angle",t,a||[0,360])||this}return e.prototype.pointToData=function(t,a){return this.polar.pointToData(t,a)[this.dim==="radius"?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,a=t.getLabelModel(),n=t.scale,i=n.getExtent(),o=n.count();if(i[1]-i[0]<1)return 0;var s=i[0],l=t.dataToCoord(s+1)-t.dataToCoord(s),u=Math.abs(l),f=Gs(s==null?"":s+"",a.getFont(),"center","top"),h=Math.max(f.height,7),v=h/u;isNaN(v)&&(v=Infinity);var c=Math.max(0,Math.floor(v)),p=G8(t.model),d=p.lastAutoInterval,g=p.lastTickCount;return d!=null&&g!=null&&Math.abs(d-c)<=1&&Math.abs(g-o)<=1&&d>c?c=d:(p.lastTickCount=o,p.lastAutoInterval=c),c},e}(Yr);rm.prototype.dataToAngle=Yr.prototype.dataToCoord,rm.prototype.angleToData=Yr.prototype.coordToData;var F8=rm,ZD=["radius","angle"],H8=function(){function r(e){this.dimensions=ZD,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new z8,this._angleAxis=new F8,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return r.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},r.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},r.prototype.getAxis=function(e){var t="_"+e+"Axis";return this[t]},r.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},r.prototype.getAxesByScale=function(e){var t=[],a=this._angleAxis,n=this._radiusAxis;return a.scale.type===e&&t.push(a),n.scale.type===e&&t.push(n),t},r.prototype.getAngleAxis=function(){return this._angleAxis},r.prototype.getRadiusAxis=function(){return this._radiusAxis},r.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},r.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},r.prototype.getTooltipAxes=function(e){var t=e!=null&&e!=="auto"?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},r.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},r.prototype.pointToData=function(e,t){var a=this.pointToCoord(e);return[this._radiusAxis.radiusToData(a[0],t),this._angleAxis.angleToData(a[1],t)]},r.prototype.pointToCoord=function(e){var t=e[0]-this.cx,a=e[1]-this.cy,n=this.getAngleAxis(),i=n.getExtent(),o=Math.min(i[0],i[1]),s=Math.max(i[0],i[1]);n.inverse?o=s-360:s=o+360;var l=Math.sqrt(t*t+a*a);t/=l,a/=l;for(var u=Math.atan2(-a,t)/Math.PI*180,f=us;)u+=f*360;return[l,u]},r.prototype.coordToPoint=function(e){var t=e[0],a=e[1]/180*Math.PI,n=Math.cos(a)*t+this.cx,i=-Math.sin(a)*t+this.cy;return[n,i]},r.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),a=t.getExtent().slice();a[0]>a[1]&&a.reverse();var n=e.getExtent(),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:a[0],r:a[1],startAngle:-n[0]*i,endAngle:-n[1]*i,clockwise:e.inverse,contain:function(o,s){var l=o-this.cx,u=s-this.cy,f=l*l+u*u-1e-4,h=this.r,v=this.r0;return f<=h*h&&f>=v*v}}},r.prototype.convertToPixel=function(e,t,a){var n=XD(t);return n===this?this.dataToPoint(a):null},r.prototype.convertFromPixel=function(e,t,a){var n=XD(t);return n===this?this.pointToData(a):null},r}();function XD(r){var e=r.seriesModel,t=r.polarModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}var W8=H8;function U8(r,e,t){var a=e.get("center"),n=t.getWidth(),i=t.getHeight();r.cx=H(a[0],n),r.cy=H(a[1],i);var o=r.getRadiusAxis(),s=Math.min(n,i)/2,l=e.get("radius");l==null?l=[0,"100%"]:z(l)||(l=[0,l]);var u=[H(l[0],s),H(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function Y8(r,e){var t=this,a=t.getAngleAxis(),n=t.getRadiusAxis();if(a.scale.setExtent(Infinity,-Infinity),n.scale.setExtent(Infinity,-Infinity),r.eachSeries(function(s){if(s.coordinateSystem===t){var l=s.getData();A(zh(l,"radius"),function(u){n.scale.unionExtentFromData(l,u)}),A(zh(l,"angle"),function(u){a.scale.unionExtentFromData(l,u)})}}),es(a.scale,a.model),es(n.scale,n.model),a.type==="category"&&!a.onBand){var i=a.getExtent(),o=360/a.scale.count();a.inverse?i[1]+=o:i[1]-=o,a.setExtent(i[0],i[1])}}function Z8(r){return r.mainType==="angleAxis"}function KD(r,e){if(r.type=e.get("type"),r.scale=Vh(e),r.onBand=e.get("boundaryGap")&&r.type==="category",r.inverse=e.get("inverse"),Z8(e)){r.inverse=r.inverse!==e.get("clockwise");var t=e.get("startAngle");r.setExtent(t,t+(r.inverse?-360:360))}e.axis=r,r.model=e}var X8={dimensions:ZD,create:function(r,e){var t=[];return r.eachComponent("polar",function(a,n){var i=new W8(n+"");i.update=Y8;var o=i.getRadiusAxis(),s=i.getAngleAxis(),l=a.findAxisModel("radiusAxis"),u=a.findAxisModel("angleAxis");KD(o,l),KD(s,u),U8(i,a,e),t.push(i),a.coordinateSystem=i,i.model=a}),r.eachSeries(function(a){if(a.get("coordinateSystem")==="polar"){var n=a.getReferringComponents("polar",te).models[0];a.coordinateSystem=n.coordinateSystem}}),t}},K8=X8,q8=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function vv(r,e,t){e[1]>e[0]&&(e=e.slice().reverse());var a=r.coordToPoint([e[0],t]),n=r.coordToPoint([e[1],t]);return{x1:a[0],y1:a[1],x2:n[0],y2:n[1]}}function cv(r){var e=r.getRadiusAxis();return e.inverse?0:1}function qD(r){var e=r[0],t=r[r.length-1];e&&t&&Math.abs(Math.abs(e.coord-t.coord)-360)<1e-4&&r.pop()}var j8=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,a){if(this.group.removeAll(),!!t.get("show")){var n=t.axis,i=n.polar,o=i.getRadiusAxis().getExtent(),s=n.getTicksCoords(),l=n.getMinorTicksCoords(),u=G(n.getViewLabels(),function(f){f=tt(f);var h=n.scale,v=h.type==="ordinal"?h.getRawOrdinalNumber(f.tickValue):f.tickValue;return f.coord=n.dataToCoord(v),f});qD(u),qD(s),A(q8,function(f){t.get([f,"show"])&&(!n.scale.isBlank()||f==="axisLine")&&$8[f](this.group,t,i,s,l,o,u)},this)}},e.type="angleAxis",e}(Ui),$8={axisLine:function(r,e,t,a,n,i){var o=e.getModel(["axisLine","lineStyle"]),s=cv(t),l=s?0:1,u;i[l]===0?u=new ua({shape:{cx:t.cx,cy:t.cy,r:i[s]},style:o.getLineStyle(),z2:1,silent:!0}):u=new Hf({shape:{cx:t.cx,cy:t.cy,r:i[s],r0:i[l]},style:o.getLineStyle(),z2:1,silent:!0}),u.style.fill=null,r.add(u)},axisTick:function(r,e,t,a,n,i){var o=e.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=i[cv(t)],u=G(a,function(f){return new de({shape:vv(t,[l,l+s],f.coord)})});r.add(xr(u,{style:K(o.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(r,e,t,a,n,i){if(!!n.length){for(var o=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=i[cv(t)],f=[],h=0;hy?"left":"right",S=Math.abs(g[1]-m)/d<.3?"middle":g[1]>m?"top":"bottom";if(s&&s[p]){var b=s[p];et(b)&&b.textStyle&&(c=new Vt(b.textStyle,l,l.ecModel))}var x=new Ct({silent:Ga.isLabelSilent(e),style:Bt(c,{x:g[0],y:g[1],fill:c.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:h.formattedLabel,align:_,verticalAlign:S})});if(r.add(x),f){var w=Ga.makeAxisEventDataBase(e);w.targetType="axisLabel",w.value=h.rawLabel,nt(x).eventData=w}},this)},splitLine:function(r,e,t,a,n,i){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],h=0;h=0?"p":"n",I=w;b&&(a[f][D]||(a[f][D]={p:w,n:w}),I=a[f][D][L]);var P=void 0,R=void 0,E=void 0,N=void 0;if(p.dim==="radius"){var O=p.dataToCoord(M)-w,V=l.dataToCoord(D);Math.abs(O)=N})}}})}function oY(r){var e={};A(r,function(a,n){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=$D(o,s),u=s.getExtent(),f=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/i.count(),h=e[l]||{bandWidth:f,remainedWidth:f,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},v=h.stacks;e[l]=h;var c=jD(a);v[c]||h.autoWidthCount++,v[c]=v[c]||{width:0,maxWidth:0};var p=H(a.get("barWidth"),f),d=H(a.get("barMaxWidth"),f),g=a.get("barGap"),y=a.get("barCategoryGap");p&&!v[c].width&&(p=Math.min(h.remainedWidth,p),v[c].width=p,h.remainedWidth-=p),d&&(v[c].maxWidth=d),g!=null&&(h.gap=g),y!=null&&(h.categoryGap=y)});var t={};return A(e,function(a,n){t[n]={};var i=a.stacks,o=a.bandWidth,s=H(a.categoryGap,o),l=H(a.gap,1),u=a.remainedWidth,f=a.autoWidthCount,h=(u-s)/(f+(f-1)*l);h=Math.max(h,0),A(i,function(d,g){var y=d.maxWidth;y&&y=t.y&&e[1]<=t.y+t.height:a.contain(a.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},r.prototype.pointToData=function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e[t.orient==="horizontal"?0:1]))]},r.prototype.dataToPoint=function(e){var t=this.getAxis(),a=this.getRect(),n=[],i=t.orient==="horizontal"?0:1;return e instanceof Array&&(e=e[0]),n[i]=t.toGlobalCoord(t.dataToCoord(+e)),n[1-i]=i===0?a.y+a.height/2:a.x+a.width/2,n},r.prototype.convertToPixel=function(e,t,a){var n=tL(t);return n===this?this.dataToPoint(a):null},r.prototype.convertFromPixel=function(e,t,a){var n=tL(t);return n===this?this.pointToData(a):null},r}();function tL(r){var e=r.seriesModel,t=r.singleAxisModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}var SY=_Y;function xY(r,e){var t=[];return r.eachComponent("singleAxis",function(a,n){var i=new SY(a,r,e);i.name="single_"+n,i.resize(a,e),a.coordinateSystem=i,t.push(i)}),r.eachSeries(function(a){if(a.get("coordinateSystem")==="singleAxis"){var n=a.getReferringComponents("singleAxis",te).models[0];a.coordinateSystem=n&&n.coordinateSystem}}),t}var bY={create:xY,dimensions:JD},wY=bY,eL=["x","y"],TY=["width","height"],CY=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,a,n,i,o){var s=n.axis,l=s.coordinateSystem,u=im(l,1-pv(s)),f=l.dataToPoint(a)[0],h=i.get("type");if(h&&h!=="none"){var v=jy(i),c=AY[h](s,f,u);c.style=v,t.graphicKey=c.type,t.pointer=c}var p=am(n);OD(a,t,p,n,i,o)},e.prototype.getHandleTransform=function(t,a,n){var i=am(a,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=$y(a.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,a,n,i){var o=n.axis,s=o.coordinateSystem,l=pv(o),u=im(s,l),f=[t.x,t.y];f[l]+=a[l],f[l]=Math.min(u[1],f[l]),f[l]=Math.max(u[0],f[l]);var h=im(s,1-l),v=(h[1]+h[0])/2,c=[v,v];return c[l]=f[l],{x:f[0],y:f[1],rotation:t.rotation,cursorPoint:c,tooltipOption:{verticalAlign:"middle"}}},e}(qy),AY={line:function(r,e,t){var a=Qy([e,t[0]],[e,t[1]],pv(r));return{type:"Line",subPixelOptimize:!0,shape:a}},shadow:function(r,e,t){var a=r.getBandWidth(),n=t[1]-t[0];return{type:"Rect",shape:ND([e-a/2,t[0]],[a,n],pv(r))}}};function pv(r){return r.isHorizontal()?0:1}function im(r,e){var t=r.getRect();return[t[eL[e]],t[eL[e]]+t[TY[e]]]}var MY=CY,DY=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="single",e}(Zt);function LY(r){ct(hu),Ui.registerAxisPointerClass("SingleAxisPointer",MY),r.registerComponentView(DY),r.registerComponentView(gY),r.registerComponentModel(nm),ts(r,"single",nm,nm.defaultOption),r.registerCoordinateSystem("single",wY)}var IY=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a,n){var i=Ro(t);r.prototype.init.apply(this,arguments),rL(t,i)},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),rL(this.option,t)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e}(At);function rL(r,e){var t=r.cellSize,a;z(t)?a=t:a=r.cellSize=[t,t],a.length===1&&(a[1]=a[0]);var n=G([0,1],function(i){return YE(e,i)&&(a[i]="auto"),a[i]!=null&&a[i]!=="auto"});pn(r,e,{type:"box",ignoreSize:n})}var PY=IY,RY=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i=this.group;i.removeAll();var o=t.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=a.getLocaleModel();this._renderDayRect(t,s,i),this._renderLines(t,s,l,i),this._renderYearText(t,s,l,i),this._renderMonthText(t,u,l,i),this._renderWeekText(t,u,s,l,i)},e.prototype._renderDayRect=function(t,a,n){for(var i=t.coordinateSystem,o=t.getModel("itemStyle").getItemStyle(),s=i.getCellWidth(),l=i.getCellHeight(),u=a.start.time;u<=a.end.time;u=i.getNextNDay(u,1).time){var f=i.dataToRect([u],!1).tl,h=new bt({shape:{x:f[0],y:f[1],width:s,height:l},cursor:"default",style:o});n.add(h)}},e.prototype._renderLines=function(t,a,n,i){var o=this,s=t.coordinateSystem,l=t.getModel(["splitLine","lineStyle"]).getLineStyle(),u=t.get(["splitLine","show"]),f=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var h=a.start,v=0;h.time<=a.end.time;v++){p(h.formatedDate),v===0&&(h=s.getDateInfo(a.start.y+"-"+a.start.m));var c=h.date;c.setMonth(c.getMonth()+1),h=s.getDateInfo(c)}p(s.getNextNDay(a.end.time,1).formatedDate);function p(d){o._firstDayOfMonth.push(s.getDateInfo(d)),o._firstDayPoints.push(s.dataToRect([d],!1).tl);var g=o._getLinePointsOfOneWeek(t,d,n);o._tlpoints.push(g[0]),o._blpoints.push(g[g.length-1]),u&&o._drawSplitline(g,l,i)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,f,n),l,i),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,f,n),l,i)},e.prototype._getEdgesPoints=function(t,a,n){var i=[t[0].slice(),t[t.length-1].slice()],o=n==="horizontal"?0:1;return i[0][o]=i[0][o]-a/2,i[1][o]=i[1][o]+a/2,i},e.prototype._drawSplitline=function(t,a,n){var i=new Ze({z2:20,shape:{points:t},style:a});n.add(i)},e.prototype._getLinePointsOfOneWeek=function(t,a,n){for(var i=t.coordinateSystem,o=i.getDateInfo(a),s=[],l=0;l<7;l++){var u=i.getNextNDay(o.time,l),f=i.dataToRect([u.time],!1);s[2*u.day]=f.tl,s[2*u.day+1]=f[n==="horizontal"?"bl":"tr"]}return s},e.prototype._formatterLabel=function(t,a){return U(t)&&t?HE(t,a):$(t)?t(a):a.nameMap},e.prototype._yearTextPositionControl=function(t,a,n,i,o){var s=a[0],l=a[1],u=["center","bottom"];i==="bottom"?(l+=o,u=["center","top"]):i==="left"?s-=o:i==="right"?(s+=o,u=["center","top"]):l-=o;var f=0;return(i==="left"||i==="right")&&(f=Math.PI/2),{rotation:f,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},e.prototype._renderYearText=function(t,a,n,i){var o=t.getModel("yearLabel");if(!!o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=n!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],f=(u[0][0]+u[1][0])/2,h=(u[0][1]+u[1][1])/2,v=n==="horizontal"?0:1,c={top:[f,u[v][1]],bottom:[f,u[1-v][1]],left:[u[1-v][0],h],right:[u[v][0],h]},p=a.start.y;+a.end.y>+a.start.y&&(p=p+"-"+a.end.y);var d=o.get("formatter"),g={start:a.start.y,end:a.end.y,nameMap:p},y=this._formatterLabel(d,g),m=new Ct({z2:30,style:Bt(o,{text:y})});m.attr(this._yearTextPositionControl(m,c[l],n,l,s)),i.add(m)}},e.prototype._monthTextPositionControl=function(t,a,n,i,o){var s="left",l="top",u=t[0],f=t[1];return n==="horizontal"?(f=f+o,a&&(s="center"),i==="start"&&(l="bottom")):(u=u+o,a&&(l="middle"),i==="start"&&(s="right")),{x:u,y:f,align:s,verticalAlign:l}},e.prototype._renderMonthText=function(t,a,n,i){var o=t.getModel("monthLabel");if(!!o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),f=o.get("align"),h=[this._tlpoints,this._blpoints];(!s||U(s))&&(s&&(a=_p(s)||a),s=a.get(["time","monthAbbr"])||[]);var v=u==="start"?0:1,c=n==="horizontal"?0:1;l=u==="start"?-l:l;for(var p=f==="center",d=0;d=n.start.time&&a.times.end.time&&t.reverse(),t},r.prototype._getRangeInfo=function(e){var t=[this.getDateInfo(e[0]),this.getDateInfo(e[1])],a;t[0].time>t[1].time&&(a=!0,t.reverse());var n=Math.floor(t[1].time/om)-Math.floor(t[0].time/om)+1,i=new Date(t[0].time),o=i.getDate(),s=t[1].date.getDate();i.setDate(o+n-1);var l=i.getDate();if(l!==s)for(var u=i.getTime()-t[1].time>0?1:-1;(l=i.getDate())!==s&&(i.getTime()-t[1].time)*u>0;)n-=u,i.setDate(l-u);var f=Math.floor((n+t[0].day+6)/7),h=a?-f+1:f-1;return a&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:n,weeks:f,nthWeek:h,fweek:t[0].day,lweek:t[1].day}},r.prototype._getDateByWeeksAndDay=function(e,t,a){var n=this._getRangeInfo(a);if(e>n.weeks||e===0&&tn.lweek)return null;var i=(e-1)*7-n.fweek+t,o=new Date(n.start.time);return o.setDate(+n.start.d+i),this.getDateInfo(o)},r.create=function(e,t){var a=[];return e.eachComponent("calendar",function(n){var i=new r(n,e,t);a.push(i),n.coordinateSystem=i}),e.eachSeries(function(n){n.get("coordinateSystem")==="calendar"&&(n.coordinateSystem=a[n.get("calendarIndex")||0])}),a},r.dimensions=["time","value"],r}();function aL(r){var e=r.calendarModel,t=r.seriesModel,a=e?e.coordinateSystem:t?t.coordinateSystem:null;return a}var OY=kY;function NY(r){r.registerComponentModel(PY),r.registerComponentView(EY),r.registerCoordinateSystem("calendar",OY)}function BY(r,e){var t=r.existing;if(e.id=r.keyInfo.id,!e.type&&t&&(e.type=t.type),e.parentId==null){var a=e.parentOption;a?e.parentId=a.id:t&&(e.parentId=t.parentId)}e.parentOption=null}function nL(r,e){var t;return A(e,function(a){r[a]!=null&&r[a]!=="auto"&&(t=!0)}),t}function VY(r,e,t){var a=B({},t),n=r[e],i=t.$action||"merge";if(i==="merge")if(n){if(!1)var o;ot(n,a,!0),pn(n,a,{ignoreSize:!0}),Q1(t,n),dv(t,n),dv(t,n,"shape"),dv(t,n,"style"),dv(t,n,"extra"),t.clipPath=n.clipPath}else r[e]=a;else i==="replace"?r[e]=a:i==="remove"&&n&&(r[e]=null)}var iL=["transition","enterFrom","leaveTo"],zY=iL.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function dv(r,e,t){if(t&&(!r[t]&&e[t]&&(r[t]={}),r=r[t],e=e[t]),!(!r||!e))for(var a=t?iL:zY,n=0;n=0;f--){var h=n[f],v=ie(h.id,null),c=v!=null?o.get(v):null;if(!!c){var p=c.parent,y=Mr(p),m=p===i?{width:s,height:l}:{width:y.width,height:y.height},_={},S=Pf(c,h,m,null,{hv:h.hv,boundingMode:h.bounding},_);if(!Mr(c).isNew&&S){for(var b=h.transition,x={},w=0;w=0)?x[T]=C:c[T]=C}Mt(c,x,t,0)}else c.attr(_)}}},e.prototype._clear=function(){var t=this,a=this._elMap;a.each(function(n){gv(n,Mr(n).option,a,t._lastGraphicModel)}),this._elMap=q()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(Zt);function sm(r){var e=Z(oL,r)?oL[r]:nd(r),t=new e({});return Mr(t).type=r,t}function sL(r,e,t,a){var n=sm(t);return e.add(n),a.set(r,n),Mr(n).id=r,Mr(n).isNew=!0,n}function gv(r,e,t,a){var n=r&&r.parent;n&&(r.type==="group"&&r.traverse(function(i){gv(i,e,t,a)}),lv(r,e,a),t.removeKey(Mr(r).id))}function lL(r,e,t,a){r.isGroup||A([["cursor",dr.prototype.cursor],["zlevel",a||0],["z",t||0],["z2",0]],function(n){var i=n[0];Z(e,i)?r[i]=ft(e[i],n[1]):r[i]==null&&(r[i]=n[1])}),A(_t(e),function(n){if(n.indexOf("on")===0){var i=e[n];r[n]=$(i)?i:null}}),Z(e,"draggable")&&(r.draggable=e.draggable),e.name!=null&&(r.name=e.name),e.id!=null&&(r.id=e.id)}function WY(r){return r=B({},r),A(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat($1),function(e){delete r[e]}),r}function UY(r,e,t){var a=nt(r).eventData;!r.silent&&!r.ignore&&!a&&(a=nt(r).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:r.name}),a&&(a.info=t.info)}function YY(r){r.registerComponentModel(FY),r.registerComponentView(HY),r.registerPreprocessor(function(e){var t=e.graphic;z(t)?!t[0]||!t[0].elements?e.graphic=[{elements:t}]:e.graphic=[e.graphic[0]]:t&&!t.elements&&(e.graphic=[{elements:[t]}])})}var uL=["x","y","radius","angle","single"],ZY=["cartesian2d","polar","singleAxis"];function XY(r){var e=r.get("coordinateSystem");return st(ZY,e)>=0}function In(r){return r+"Axis"}function Qq(r){return r+"AxisIndex"}function Jq(r){return r+"AxisId"}function KY(r,e){var t=q(),a=[],n=q();r.eachComponent({mainType:"dataZoom",query:e},function(f){n.get(f.uid)||s(f)});var i;do i=!1,r.eachComponent("dataZoom",o);while(i);function o(f){!n.get(f.uid)&&l(f)&&(s(f),i=!0)}function s(f){n.set(f.uid,!0),a.push(f),u(f)}function l(f){var h=!1;return f.eachTargetAxis(function(v,c){var p=t.get(v);p&&p[c]&&(h=!0)}),h}function u(f){f.eachTargetAxis(function(h,v){(t.get(h)||t.set(h,[]))[v]=!0})}return a}function fL(r){var e=r.ecModel,t={infoList:[],infoMap:q()};return r.eachTargetAxis(function(a,n){var i=e.getComponent(In(a),n);if(!!i){var o=i.getCoordSysModel();if(!!o){var s=o.uid,l=t.infoMap.get(s);l||(l={model:o,axisModels:[]},t.infoList.push(l),t.infoMap.set(s,l)),l.axisModels.push(i)}}}),t}var lm=function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},r}(),qY=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._autoThrottle=!0,t._noTarget=!0,t._rangePropMode=["percent","percent"],t}return e.prototype.init=function(t,a,n){var i=hL(t);this.settledOption=i,this.mergeDefaultAndTheme(t,n),this._doInit(i)},e.prototype.mergeOption=function(t){var a=hL(t);ot(this.option,t,!0),ot(this.settledOption,a,!0),this._doInit(a)},e.prototype._doInit=function(t){var a=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var n=this.settledOption;A([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(a[i[0]]=n[i[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),a=this._targetAxisInfoMap=q(),n=this._fillSpecifiedTargetAxis(a);n?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(a,this._orient)),this._noTarget=!0,a.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(t){var a=!1;return A(uL,function(n){var i=this.getReferringComponents(In(n),nR);if(!!i.specified){a=!0;var o=new lm;A(i.models,function(s){o.add(s.componentIndex)}),t.set(n,o)}},this),a},e.prototype._fillAutoTargetAxisByOrient=function(t,a){var n=this.ecModel,i=!0;if(i){var o=a==="vertical"?"y":"x",s=n.findComponents({mainType:o+"Axis"});l(s,o)}if(i){var s=n.findComponents({mainType:"singleAxis",filter:function(f){return f.get("orient",!0)===a}});l(s,"single")}function l(u,f){var h=u[0];if(!!h){var v=new lm;if(v.add(h.componentIndex),t.set(f,v),i=!1,f==="x"||f==="y"){var c=h.getReferringComponents("grid",te).models[0];c&&A(u,function(p){h.componentIndex!==p.componentIndex&&c===p.getReferringComponents("grid",te).models[0]&&v.add(p.componentIndex)})}}}i&&A(uL,function(u){if(!!i){var f=n.findComponents({mainType:In(u),filter:function(v){return v.get("type",!0)==="category"}});if(f[0]){var h=new lm;h.add(f[0].componentIndex),t.set(u,h),i=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis(function(a){!t&&(t=a)},this),t==="y"?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var a=this.ecModel.option;this.option.throttle=a.animation&&a.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var a=this._rangePropMode,n=this.get("rangeMode");A([["start","startValue"],["end","endValue"]],function(i,o){var s=t[i[0]]!=null,l=t[i[1]]!=null;s&&!l?a[o]="percent":!s&&l?a[o]="value":n?a[o]=n[o]:s&&(a[o]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis(function(a,n){t==null&&(t=this.ecModel.getComponent(In(a),n))},this),t},e.prototype.eachTargetAxis=function(t,a){this._targetAxisInfoMap.each(function(n,i){A(n.indexList,function(o){t.call(a,i,o)})})},e.prototype.getAxisProxy=function(t,a){var n=this.getAxisModel(t,a);if(n)return n.__dzAxisProxy},e.prototype.getAxisModel=function(t,a){var n=this._targetAxisInfoMap.get(t);if(n&&n.indexMap[a])return this.ecModel.getComponent(In(t),a)},e.prototype.setRawRange=function(t){var a=this.option,n=this.settledOption;A([["start","startValue"],["end","endValue"]],function(i){(t[i[0]]!=null||t[i[1]]!=null)&&(a[i[0]]=n[i[0]]=t[i[0]],a[i[1]]=n[i[1]]=t[i[1]])},this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var a=this.option;A(["start","startValue","end","endValue"],function(n){a[n]=t[n]})},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,a){if(t==null&&a==null){var n=this.findRepresentativeAxisProxy();if(n)return n.getDataValueWindow()}else return this.getAxisProxy(t,a).getDataValueWindow()},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var a,n=this._targetAxisInfoMap.keys(),i=0;io[1];if(_&&!S&&!b)return!0;_&&(g=!0),S&&(p=!0),b&&(d=!0)}return g&&p&&d})}else fs(f,function(c){if(i==="empty")l.setData(u=u.map(c,function(d){return s(d)?d:NaN}));else{var p={};p[c]=o,u.selectRange(p)}});fs(f,function(c){u.setApproximateExtent(o,c)})}});function s(l){return l>=o[0]&&l<=o[1]}},r.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,a=this._dataExtent;fs(["min","max"],function(n){var i=t.get(n+"Span"),o=t.get(n+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=Pt(a[0]+o,a,[0,100],!0):i!=null&&(o=Pt(i,[0,100],a,!0)-a[0]),e[n+"Span"]=i,e[n+"ValueSpan"]=o},this)},r.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,a=this._valueWindow;if(!!t){var n=s_(a,[0,500]);n=Math.min(n,20);var i=e.axis.scale.rawExtentInfo;t[0]!==0&&i.setDeterminedMinMax("min",+a[0].toFixed(n)),t[1]!==100&&i.setDeterminedMinMax("max",+a[1].toFixed(n)),i.freeze()}},r}();function rZ(r,e,t){var a=[Infinity,-Infinity];fs(t,function(o){V5(a,o.getData(),e)});var n=r.getAxisModel(),i=WT(n.axis.scale,n,a).calculate();return[i.min,i.max]}var aZ=eZ,nZ={getTargetSeries:function(r){function e(n){r.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=r.getComponent(In(o),s);n(o,s,l,i)})})}e(function(n,i,o,s){o.__dzAxisProxy=null});var t=[];e(function(n,i,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new aZ(n,i,s,r),t.push(o.__dzAxisProxy))});var a=q();return A(t,function(n){A(n.getTargetSeriesModels(),function(i){a.set(i.uid,i)})}),a},overallReset:function(r,e){r.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(a,n){t.getAxisProxy(a,n).reset(t)}),t.eachTargetAxis(function(a,n){t.getAxisProxy(a,n).filterData(t,e)})}),r.eachComponent("dataZoom",function(t){var a=t.findRepresentativeAxisProxy();if(a){var n=a.getDataPercentWindow(),i=a.getDataValueWindow();t.setCalculatedRange({start:n[0],end:n[1],startValue:i[0],endValue:i[1]})}})}},iZ=nZ;function oZ(r){r.registerAction("dataZoom",function(e,t){var a=KY(t,e);A(a,function(n){n.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var cL=!1;function fm(r){cL||(cL=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,iZ),oZ(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function sZ(r){r.registerComponentModel($Y),r.registerComponentView(tZ),fm(r)}var Dr=function(){function r(){}return r}(),pL={};function hs(r,e){pL[r]=e}function dL(r){return pL[r]}var lZ=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){r.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;A(this.option.feature,function(a,n){var i=dL(n);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(t)),ot(a,i.defaultOption))})},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},e}(At),uZ=lZ;function fZ(r,e,t){var a=e.getBoxLayoutParams(),n=e.get("padding"),i={width:t.getWidth(),height:t.getHeight()},o=oe(a,i,n);xi(e.get("orient"),r,e.get("itemGap"),o.width,o.height),Pf(r,a,i,n)}function gL(r,e){var t=Po(e.get("padding")),a=e.getItemStyle(["color","opacity"]);return a.fill=e.get("backgroundColor"),r=new bt({shape:{x:r.x-t[3],y:r.y-t[0],width:r.width+t[1]+t[3],height:r.height+t[0]+t[2],r:e.get("borderRadius")},style:a,silent:!0,z2:-1}),r}var hZ=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,a,n,i){var o=this.group;if(o.removeAll(),!t.get("show"))return;var s=+t.get("itemSize"),l=t.get("orient")==="vertical",u=t.get("feature")||{},f=this._features||(this._features={}),h=[];A(u,function(p,d){h.push(d)}),new Ba(this._featureNames||[],h).add(v).update(v).remove(it(v,null)).execute(),this._featureNames=h;function v(p,d){var g=h[p],y=h[d],m=u[g],_=new Vt(m,t,t.ecModel),S;if(i&&i.newTitle!=null&&i.featureName===g&&(m.title=i.newTitle),g&&!y){if(vZ(g))S={onclick:_.option.onclick,featureName:g};else{var b=dL(g);if(!b)return;S=new b}f[g]=S}else if(S=f[y],!S)return;S.uid=Do("toolbox-feature"),S.model=_,S.ecModel=a,S.api=n;var x=S instanceof Dr;if(!g&&y){x&&S.dispose&&S.dispose(a,n);return}if(!_.get("show")||x&&S.unusable){x&&S.remove&&S.remove(a,n);return}c(_,S,g),_.setIconStatus=function(w,T){var C=this.option,M=this.iconPaths;C.iconStatus=C.iconStatus||{},C.iconStatus[w]=T,M[w]&&(T==="emphasis"?Ea:ka)(M[w])},S instanceof Dr&&S.render&&S.render(_,a,n,i)}function c(p,d,g){var y=p.getModel("iconStyle"),m=p.getModel(["emphasis","iconStyle"]),_=d instanceof Dr&&d.getIcons?d.getIcons():p.get("icon"),S=p.get("title")||{},b,x;U(_)?(b={},b[g]=_):b=_,U(S)?(x={},x[g]=S):x=S;var w=p.iconPaths={};A(b,function(T,C){var M=ml(T,{},{x:-s/2,y:-s/2,width:s,height:s});M.setStyle(y.getItemStyle());var D=M.ensureState("emphasis");D.style=m.getItemStyle();var L=new Ct({style:{text:x[C],align:m.get("textAlign"),borderRadius:m.get("textBorderRadius"),padding:m.get("textPadding"),fill:null},ignore:!0});M.setTextContent(L),Ho({el:M,componentModel:t,itemName:C,formatterParamsExtra:{title:x[C]}}),M.__title=x[C],M.on("mouseover",function(){var I=m.getItemStyle(),P=l?t.get("right")==null&&t.get("left")!=="right"?"right":"left":t.get("bottom")==null&&t.get("top")!=="bottom"?"bottom":"top";L.setStyle({fill:m.get("textFill")||I.fill||I.stroke||"#000",backgroundColor:m.get("textBackgroundColor")}),M.setTextConfig({position:m.get("textPosition")||P}),L.ignore=!t.get("showTitle"),n.enterEmphasis(this)}).on("mouseout",function(){p.get(["iconStatus",C])!=="emphasis"&&n.leaveEmphasis(this),L.hide()}),(p.get(["iconStatus",C])==="emphasis"?Ea:ka)(M),o.add(M),M.on("click",Y(d.onclick,d,a,n,C)),w[C]=M})}fZ(o,t,n),o.add(gL(o.getBoundingRect(),t)),l||o.eachChild(function(p){var d=p.__title,g=p.ensureState("emphasis"),y=g.textConfig||(g.textConfig={}),m=p.getTextContent(),_=m&&m.ensureState("emphasis");if(_&&!$(_)&&d){var S=_.style||(_.style={}),b=Gs(d,Ct.makeFont(S)),x=p.x+o.x,w=p.y+o.y+s,T=!1;w+b.height>n.getHeight()&&(y.position="top",T=!0);var C=T?-5-b.height:s+10;x+b.width/2>n.getWidth()?(y.position=["100%",C],S.align="right"):x-b.width/2<0&&(y.position=[0,C],S.align="left")}})},e.prototype.updateView=function(t,a,n,i){A(this._features,function(o){o instanceof Dr&&o.updateView&&o.updateView(o.model,a,n,i)})},e.prototype.remove=function(t,a){A(this._features,function(n){n instanceof Dr&&n.remove&&n.remove(t,a)}),this.group.removeAll()},e.prototype.dispose=function(t,a){A(this._features,function(n){n instanceof Dr&&n.dispose&&n.dispose(t,a)})},e.type="toolbox",e}(Zt);function vZ(r){return r.indexOf("my")===0}var cZ=hZ,pZ=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,a){var n=this.model,i=n.get("name")||t.get("title.0.text")||"echarts",o=a.getZr().painter.getType()==="svg",s=o?"svg":n.get("type",!0)||"png",l=a.getConnectedDataURL({type:s,backgroundColor:n.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),u=St.browser;if($(MouseEvent)&&(u.newEdge||!u.ie&&!u.edge)){var f=document.createElement("a");f.download=i+"."+s,f.target="_blank",f.href=l;var h=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});f.dispatchEvent(h)}else if(window.navigator.msSaveOrOpenBlob||o){var v=l.split(","),c=v[0].indexOf("base64")>-1,p=o?decodeURIComponent(v[1]):v[1];c&&(p=window.atob(p));var d=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var g=p.length,y=new Uint8Array(g);g--;)y[g]=p.charCodeAt(g);var m=new Blob([y]);window.navigator.msSaveOrOpenBlob(m,d)}else{var _=document.createElement("iframe");document.body.appendChild(_);var S=_.contentWindow,b=S.document;b.open("image/svg+xml","replace"),b.write(p),b.close(),S.focus(),b.execCommand("SaveAs",!0,d),document.body.removeChild(_)}}else{var x=n.get("lang"),w='',T=window.open();T.document.write(w),T.document.title=i}},e.getDefaultOption=function(t){var a={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:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return a},e}(Dr),dZ=pZ,yL="__ec_magicType_stack__",tj=null,ej=null,gZ=[["line","bar"],["stack"]],yZ=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getIcons=function(){var t=this.model,a=t.get("icon"),n={};return A(t.get("type"),function(i){a[i]&&(n[i]=a[i])}),n},e.getDefaultOption=function(t){var a={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return a},e.prototype.onclick=function(t,a,n){var i=this.model,o=i.get(["seriesIndex",n]);if(!!mL[n]){var s={series:[]},l=function(h){var v=h.subType,c=h.id,p=mL[n](v,c,h,i);p&&(K(p,h.option),s.series.push(p));var d=h.coordinateSystem;if(d&&d.type==="cartesian2d"&&(n==="line"||n==="bar")){var g=d.getAxesByScale("ordinal")[0];if(g){var y=g.dim,m=y+"Axis",_=h.getReferringComponents(m,te).models[0],S=_.componentIndex;s[m]=s[m]||[];for(var b=0;b<=S;b++)s[m][S]=s[m][S]||{};s[m][S].boundaryGap=n==="bar"}}};A(gZ,function(h){st(h,n)>=0&&A(h,function(v){i.setIconStatus(v,"normal")})}),i.setIconStatus(n,"emphasis"),t.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,f=n;n==="stack"&&(u=ot({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",n])!=="emphasis"&&(f="tiled")),a.dispatchAction({type:"changeMagicType",currentType:f,newOption:s,newTitle:u,featureName:"magicType"})}},e}(Dr),mL={line:function(r,e,t,a){if(r==="bar")return ot({id:e,type:"line",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},a.get(["option","line"])||{},!0)},bar:function(r,e,t,a){if(r==="line")return ot({id:e,type:"bar",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},a.get(["option","bar"])||{},!0)},stack:function(r,e,t,a){var n=t.get("stack")===yL;if(r==="line"||r==="bar")return a.setIconStatus("stack",n?"normal":"emphasis"),ot({id:e,stack:n?"":yL},a.get(["option","stack"])||{},!0)}};ha({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,e){e.mergeOption(r.newOption)});var mZ=yZ,yv=new Array(60).join("-"),vs=" ";function _Z(r){var e={},t=[],a=[];return r.eachRawSeries(function(n){var i=n.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var o=i.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;e[s]||(e[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},a.push({axisDim:o.dim,axisIndex:o.index})),e[s].series.push(n)}else t.push(n)}else t.push(n)}),{seriesGroupByCategoryAxis:e,other:t,meta:a}}function SZ(r){var e=[];return A(r,function(t,a){var n=t.categoryAxis,i=t.valueAxis,o=i.dim,s=[" "].concat(G(t.series,function(c){return c.name})),l=[n.model.getCategories()];A(t.series,function(c){var p=c.getRawData();l.push(c.getRawData().mapArray(p.mapDimension(o),function(d){return d}))});for(var u=[s.join(vs)],f=0;f=0)return!0}var hm=new RegExp("["+vs+"]+","g");function TZ(r){for(var e=r.split(/\n+/g),t=mv(e.shift()).split(hm),a=[],n=G(t,function(l){return{name:l,data:[]}}),i=0;i=0;i--){var o=t[i];if(o[n])break}if(i<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:n})[0];if(s){var l=s.getPercentRange();t[0][n]={dataZoomId:n,start:l[0],end:l[1]}}}}),t.push(e)}function PZ(r){var e=vm(r),t=e[e.length-1];e.length>1&&e.pop();var a={};return _L(t,function(n,i){for(var o=e.length-1;o>=0;o--)if(n=e[o][i],n){a[i]=n;break}}),a}function RZ(r){SL(r).snapshots=null}function EZ(r){return vm(r).length}function vm(r){var e=SL(r);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var kZ=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,a){RZ(t),a.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){var a={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:t.getLocaleModel().get(["toolbox","restore","title"])};return a},e}(Dr);ha({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,e){e.resetOption("recreate")});var OZ=kZ,NZ=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],BZ=function(){function r(e,t,a){var n=this;this._targetInfoList=[];var i=xL(t,e);A(VZ,function(o,s){(!a||!a.include||st(a.include,s)>=0)&&o(i,n._targetInfoList)})}return r.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(a,n,i){if((a.coordRanges||(a.coordRanges=[])).push(n),!a.coordRange){a.coordRange=n;var o=pm[a.brushType](0,i,n);a.__rangeOffset={offset:CL[a.brushType](o.values,a.range,[1,1]),xyMinMax:o.xyMinMax}}}),e},r.prototype.matchOutputRanges=function(e,t,a){A(e,function(n){var i=this.findTargetInfo(n,t);i&&i!==!0&&A(i.coordSyses,function(o){var s=pm[n.brushType](1,o,n.range,!0);a(n,s.values,o,t)})},this)},r.prototype.setInputRanges=function(e,t){A(e,function(a){var n=this.findTargetInfo(a,t);if(a.range=a.range||[],n&&n!==!0){a.panelId=n.panelId;var i=pm[a.brushType](0,n.coordSys,a.coordRange),o=a.__rangeOffset;a.range=o?CL[a.brushType](i.values,o.offset,zZ(i.xyMinMax,o.xyMinMax)):i.values}},this)},r.prototype.makePanelOpts=function(e,t){return G(this._targetInfoList,function(a){var n=a.getPanelRect();return{panelId:a.panelId,defaultBrushType:t?t(a):null,clipPath:TM(n),isTargetByCursor:AM(n,e,a.coordSysModel),getLinearBrushOtherExtent:CM(n)}})},r.prototype.controlSeries=function(e,t,a){var n=this.findTargetInfo(e,a);return n===!0||n&&st(n.coordSyses,t.coordinateSystem)>=0},r.prototype.findTargetInfo=function(e,t){for(var a=this._targetInfoList,n=xL(t,e),i=0;ir[1]&&r.reverse(),r}function xL(r,e){return Us(r,e,{includeMainTypes:NZ})}var VZ={grid:function(r,e){var t=r.xAxisModels,a=r.yAxisModels,n=r.gridModels,i=q(),o={},s={};!t&&!a&&!n||(A(t,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),A(a,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),A(n,function(l){i.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),i.each(function(l){var u=l.coordinateSystem,f=[];A(u.getCartesians(),function(h,v){(st(t,h.getAxis("x").model)>=0||st(a,h.getAxis("y").model)>=0)&&f.push(h)}),e.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:f[0],coordSyses:f,getPanelRect:wL.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(r,e){A(r.geoModels,function(t){var a=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:a,coordSyses:[a],getPanelRect:wL.geo})})}},bL=[function(r,e){var t=r.xAxisModel,a=r.yAxisModel,n=r.gridModel;return!n&&t&&(n=t.axis.grid.model),!n&&a&&(n=a.axis.grid.model),n&&n===e.gridModel},function(r,e){var t=r.geoModel;return t&&t===e.geoModel}],wL={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,e=r.getBoundingRect().clone();return e.applyTransform(Di(r)),e}},pm={lineX:it(TL,0),lineY:it(TL,1),rect:function(r,e,t,a){var n=r?e.pointToData([t[0][0],t[1][0]],a):e.dataToPoint([t[0][0],t[1][0]],a),i=r?e.pointToData([t[0][1],t[1][1]],a):e.dataToPoint([t[0][1],t[1][1]],a),o=[cm([n[0],i[0]]),cm([n[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(r,e,t,a){var n=[[Infinity,-Infinity],[Infinity,-Infinity]],i=G(t,function(o){var s=r?e.pointToData(o,a):e.dataToPoint(o,a);return n[0][0]=Math.min(n[0][0],s[0]),n[1][0]=Math.min(n[1][0],s[1]),n[0][1]=Math.max(n[0][1],s[0]),n[1][1]=Math.max(n[1][1],s[1]),s});return{values:i,xyMinMax:n}}};function TL(r,e,t,a){var n=t.getAxis(["x","y"][r]),i=cm(G([0,1],function(s){return e?n.coordToData(n.toLocalCoord(a[s]),!0):n.toGlobalCoord(n.dataToCoord(a[s]))})),o=[];return o[r]=i,o[1-r]=[NaN,NaN],{values:i,xyMinMax:o}}var CL={lineX:it(AL,0),lineY:it(AL,1),rect:function(r,e,t){return[[r[0][0]-t[0]*e[0][0],r[0][1]-t[0]*e[0][1]],[r[1][0]-t[1]*e[1][0],r[1][1]-t[1]*e[1][1]]]},polygon:function(r,e,t){return G(r,function(a,n){return[a[0]-t[0]*e[n][0],a[1]-t[1]*e[n][1]]})}};function AL(r,e,t,a){return[e[0]-a[r]*t[0],e[1]-a[r]*t[1]]}function zZ(r,e){var t=ML(r),a=ML(e),n=[t[0]/a[0],t[1]/a[1]];return isNaN(n[0])&&(n[0]=1),isNaN(n[1])&&(n[1]=1),n}function ML(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}var dm=BZ,gm=A,GZ=J2("toolbox-dataZoom_"),rj=null,FZ=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,a,n,i){this._brushController||(this._brushController=new wy(n.getZr()),this._brushController.on("brush",Y(this._onBrush,this)).mount()),UZ(t,a,this,i,n),WZ(t,a)},e.prototype.onclick=function(t,a,n){HZ[n].call(this)},e.prototype.remove=function(t,a){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,a){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var a=t.areas;if(!t.isEnd||!a.length)return;var n={},i=this.ecModel;this._brushController.updateCovers([]);var o=new dm(ym(this.model),i,{include:["grid"]});o.matchOutputRanges(a,i,function(u,f,h){if(h.type==="cartesian2d"){var v=u.brushType;v==="rect"?(s("x",h,f[0]),s("y",h,f[1])):s({lineX:"x",lineY:"y"}[v],h,f)}}),IZ(i,n),this._dispatchZoomAction(n);function s(u,f,h){var v=f.getAxis(u),c=v.model,p=l(u,c,i),d=p.findRepresentativeAxisProxy(c).getMinMaxSpan();(d.minValueSpan!=null||d.maxValueSpan!=null)&&(h=ji(0,h.slice(),v.scale.getExtent(),0,d.minValueSpan,d.maxValueSpan)),p&&(n[p.id]={dataZoomId:p.id,startValue:h[0],endValue:h[1]})}function l(u,f,h){var v;return h.eachComponent({mainType:"dataZoom",subType:"select"},function(c){var p=c.getAxisModel(u,f.componentIndex);p&&(v=c)}),v}},e.prototype._dispatchZoomAction=function(t){var a=[];gm(t,function(n,i){a.push(tt(n))}),a.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:a})},e.getDefaultOption=function(t){var a={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return a},e}(Dr),HZ={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(PZ(this.ecModel))}};function ym(r){var e={xAxisIndex:r.get("xAxisIndex",!0),yAxisIndex:r.get("yAxisIndex",!0),xAxisId:r.get("xAxisId",!0),yAxisId:r.get("yAxisId",!0)};return e.xAxisIndex==null&&e.xAxisId==null&&(e.xAxisIndex="all"),e.yAxisIndex==null&&e.yAxisId==null&&(e.yAxisIndex="all"),e}function WZ(r,e){r.setIconStatus("back",EZ(e)>1?"emphasis":"normal")}function UZ(r,e,t,a,n){var i=t._isZoomActive;a&&a.type==="takeGlobalCursor"&&(i=a.key==="dataZoomSelect"?a.dataZoomSelectActive:!1),t._isZoomActive=i,r.setIconStatus("zoom",i?"emphasis":"normal");var o=new dm(ym(r),e,{include:["grid"]}),s=o.makePanelOpts(n,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});t._brushController.setPanels(s).enableBrush(i&&s.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}$E("dataZoom",function(r){var e=r.getComponent("toolbox",0),t=["feature","dataZoom"];if(!e||e.get(t)==null)return;var a=e.getModel(t),n=[],i=ym(a),o=Us(r,i);gm(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),gm(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,f){var h=l.componentIndex,v={type:"select",$fromToolbox:!0,filterMode:a.get("filterMode",!0)||"filter",id:GZ+u+h};v[f]=h,n.push(v)}return n});var YZ=FZ;function ZZ(r){r.registerComponentModel(uZ),r.registerComponentView(cZ),hs("saveAsImage",dZ),hs("magicType",mZ),hs("dataView",LZ),hs("dataZoom",YZ),hs("restore",OZ),ct(sZ)}var XZ=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(Mt),KZ=XZ;function DL(r){var e=r.get("confine");return e!=null?!!e:r.get("renderMode")==="richText"}function LL(r){if(!!_t.domSupported){for(var e=document.documentElement.style,t=0,a=r.length;t-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=i==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=i==="top"?225:45)+"deg)");var f=u*Math.PI/180,h=o+n,v=h*Math.abs(Math.cos(f))+h*Math.abs(Math.sin(f)),c=Math.round(((v-Math.SQRT2*n)/2+Math.SQRT2*n-(v-h)/2)*100)/100;s+=";"+i+":-"+c+"px";var p=e+" solid "+n+"px;",d=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+p,"border-right:"+p,"background-color:"+a+";"];return'
'}function e7(r,e){var t="cubic-bezier(0.23,1,0.32,1)",a=" "+r/2+"s "+t,n="opacity"+a+",visibility"+a;return e||(a=" "+r+"s "+t,n+=_t.transformSupported?","+mm+a:",left"+a+",top"+a),$Z+":"+n}function RL(r,e,t){var a=r.toFixed(0)+"px",n=e.toFixed(0)+"px";if(!_t.transformSupported)return t?"top:"+n+";left:"+a+";":[["top",n],["left",a]];var i=_t.transform3dSupported,o="translate"+(i?"3d":"")+"("+a+","+n+(i?",0":"")+")";return t?"top:0;left:0;"+mm+":"+o+";":[["top",0],["left",0],[IL,o]]}function r7(r){var e=[],t=r.get("fontSize"),a=r.getTextColor();a&&e.push("color:"+a),e.push("font:"+r.getFont()),t&&e.push("line-height:"+Math.round(t*3/2)+"px");var n=r.get("textShadowColor"),i=r.get("textShadowBlur")||0,o=r.get("textShadowOffsetX")||0,s=r.get("textShadowOffsetY")||0;return n&&i&&e.push("text-shadow:"+o+"px "+s+"px "+i+"px "+n),A(["decoration","align"],function(l){var u=r.get(l);u&&e.push("text-"+l+":"+u)}),e.join(";")}function a7(r,e,t){var a=[],n=r.get("transitionDuration"),i=r.get("backgroundColor"),o=r.get("shadowBlur"),s=r.get("shadowColor"),l=r.get("shadowOffsetX"),u=r.get("shadowOffsetY"),f=r.getModel("textStyle"),h=nx(r,"html"),v=l+"px "+u+"px "+o+"px "+s;return a.push("box-shadow:"+v),e&&n&&a.push(e7(n,t)),i&&a.push("background-color:"+i),A(["width","color","radius"],function(c){var p="border-"+c,d=K1(p),g=r.get(d);g!=null&&a.push(p+":"+g+(c==="color"?"":"px"))}),a.push(r7(f)),h!=null&&a.push("padding:"+Io(h).join("px ")+"px"),a.join(";")+";"}function EL(r,e,t,a,n){var i=e&&e.painter;if(t){var o=i&&i.getViewportRoot();o&&TP(r,o,document.body,a,n)}else{r[0]=a,r[1]=n;var s=i&&i.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/e.getWidth(),r[3]=r[1]/e.getHeight()}var n7=function(){function r(e,t,a){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._firstShow=!0,this._longHide=!0,_t.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=t.getZr(),o=this._appendToBody=a&&a.appendToBody;EL(this._styleCoord,i,o,t.getWidth()/2,t.getHeight()/2),o?document.body.appendChild(n):e.appendChild(n),this._container=e;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=i.handler,f=i.painter.getViewportRoot();fr(f,l,!0),u.dispatch("mousemove",l)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(e){var t=this._container,a=jZ(t,"position"),n=t.style;n.position!=="absolute"&&a!=="absolute"&&(n.position="relative");var i=e.get("alwaysShowContent");i&&this._moveIfResized(),this.el.className=e.get("className")||""},r.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var a=this.el,n=a.style,i=this._styleCoord;a.innerHTML?n.cssText=QZ+a7(e,!this._firstShow,this._longHide)+RL(i[0],i[1],!0)+("border-color:"+_i(t)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):n.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(e,t,a,n,i){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(U(i)&&a.get("trigger")==="item"&&!DL(a)&&(s=t7(a,n,i)),U(e))o.innerHTML=e+s;else if(e){o.innerHTML="",z(e)||(e=[e]);for(var l=0;l=0?this._tryShow(i,o):n==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,a=this._ecModel,n=this._api,i=t.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&o.manuallyShowTip(t,a,n,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,a,n,i){if(!(i.from===this.uid||_t.node||!n.getDom())){var o=NL(i,n);this._ticket="";var s=i.dataByCoordSys,l=c7(i,a,n);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var f=l7;f.x=i.x,f.y=i.y,f.update(),nt(f).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:f},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(t,a,n,i))return;var h=HD(i,a),v=h.point[0],c=h.point[1];v!=null&&c!=null&&this._tryShow({offsetX:v,offsetY:c,target:h.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},o))}},e.prototype.manuallyHideTip=function(t,a,n,i){var o=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(NL(i,n))},e.prototype._manuallyAxisShowTip=function(t,a,n,i){var o=i.seriesIndex,s=i.dataIndex,l=a.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=a.getSeriesByIndex(o);if(!!u){var f=u.getData(),h=cu([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(h.get("trigger")==="axis")return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},e.prototype._tryShow=function(t,a){var n=t.target,i=this._tooltipModel;if(!!i){this._lastX=t.offsetX,this._lastY=t.offsetY;var o=t.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,t);else if(n){this._lastDataByCoordSys=null;var s,l;Li(n,function(u){if(nt(u).dataIndex!=null)return s=u,!0;if(nt(u).tooltipConfig!=null)return l=u,!0},!0),s?this._showSeriesItemTooltip(t,s,a):l?this._showComponentItemTooltip(t,l,a):this._hide(a)}else this._lastDataByCoordSys=null,this._hide(a)}},e.prototype._showOrMove=function(t,a){var n=t.get("showDelay");a=Y(a,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(a,n):a()},e.prototype._showAxisTooltip=function(t,a){var n=this._ecModel,i=this._tooltipModel,o=[a.offsetX,a.offsetY],s=cu([a.tooltipOption],i),l=this._renderMode,u=[],f=fe("section",{blocks:[],noHeader:!0}),h=[],v=new Xp;A(t,function(m){A(m.dataByAxis,function(_){var S=n.getComponent(_.axisDim+"Axis",_.axisIndex),b=_.value;if(!(!S||b==null)){var x=kD(b,S.axis,n,_.seriesDataIndices,_.valueLabelOpt),w=fe("section",{header:x,noHeader:!Rr(x),sortBlocks:!0,blocks:[]});f.blocks.push(w),A(_.seriesDataIndices,function(T){var C=n.getSeriesByIndex(T.seriesIndex),M=T.dataIndexInside,D=C.getDataParams(M);if(!(D.dataIndex<0)){D.axisDim=_.axisDim,D.axisIndex=_.axisIndex,D.axisType=_.axisType,D.axisId=_.axisId,D.axisValue=ug(S.axis,{value:b}),D.axisValueLabel=x,D.marker=v.makeTooltipMarker("item",_i(D.color),l);var L=NS(C.formatTooltip(M,!0,null)),I=L.frag;if(I){var P=cu([C],i).get("valueFormatter");w.blocks.push(P?B({valueFormatter:P},I):I)}L.text&&h.push(L.text),u.push(D)}})}})}),f.blocks.reverse(),h.reverse();var c=a.position,p=s.get("order"),d=ex(f,v,l,p,n.get("useUTC"),s.get("textStyle"));d&&h.unshift(d);var g=l==="richText"?` +*`,"g")),a={series:[]};return A(t,function(n,i){if(wZ(n)){var o=TZ(n),s=e[i],l=s.axisDim+"Axis";s&&(a[l]=a[l]||[],a[l][s.axisIndex]={data:o.categories},a.series=a.series.concat(o.series))}else{var o=CZ(n);a.series.push(o)}}),a}var MZ=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,a){setTimeout(function(){a.dispatchAction({type:"hideTip"})});var n=a.getDom(),i=this.model;this._dom&&n.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",o.style.backgroundColor=i.get("backgroundColor")||"#fff";var s=document.createElement("h4"),l=i.get("lang")||[];s.innerHTML=l[0]||i.get("title"),s.style.cssText="margin:10px 20px",s.style.color=i.get("textColor");var u=document.createElement("div"),f=document.createElement("textarea");u.style.cssText="overflow:auto";var h=i.get("optionToContent"),v=i.get("contentToOption"),c=bZ(t);if($(h)){var p=h(a.getOption());U(p)?u.innerHTML=p:ws(p)&&u.appendChild(p)}else{f.readOnly=i.get("readOnly");var d=f.style;d.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",d.color=i.get("textColor"),d.borderColor=i.get("textareaBorderColor"),d.backgroundColor=i.get("textareaColor"),f.value=c.value,u.appendChild(f)}var g=c.meta,y=document.createElement("div");y.style.cssText="position:absolute;bottom:5px;left:0;right:0";var m="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",_=document.createElement("div"),S=document.createElement("div");m+=";background-color:"+i.get("buttonColor"),m+=";color:"+i.get("buttonTextColor");var b=this;function x(){n.removeChild(o),b._dom=null}Kv(_,"click",x),Kv(S,"click",function(){if(v==null&&h!=null||v!=null&&h==null){x();return}var w;try{$(v)?w=v(u,a.getOption()):w=AZ(f.value,g)}catch(T){throw x(),new Error("Data view format error "+T)}w&&a.dispatchAction({type:"changeDataView",newOption:w}),x()}),_.innerHTML=l[1],S.innerHTML=l[2],S.style.cssText=_.style.cssText=m,!i.get("readOnly")&&y.appendChild(S),y.appendChild(_),o.appendChild(s),o.appendChild(u),o.appendChild(y),u.style.height=n.clientHeight-80+"px",n.appendChild(o),this._dom=o},e.prototype.remove=function(t,a){this._dom&&a.getDom().removeChild(this._dom)},e.prototype.dispose=function(t,a){this.remove(t,a)},e.getDefaultOption=function(t){var a={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:t.getLocaleModel().get(["toolbox","dataView","title"]),lang:t.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return a},e}(Dr);function DZ(r,e){return G(r,function(t,a){var n=e&&e[a];if(et(n)&&!z(n)){var i=et(t)&&!z(t);i||(t={value:t});var o=n.name!=null&&t.name==null;return t=K(t,n),o&&delete t.name,t}else return t})}ha({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(r,e){var t=[];A(r.newOption.series,function(a){var n=e.getSeriesByName(a.name)[0];if(!n)t.push(B({type:"scatter"},a));else{var i=n.get("data");t.push({name:a.name,data:DZ(a.data,i)})}}),e.mergeOption(K({series:t},r.newOption))});var LZ=MZ,_L=A,SL=xt();function IZ(r,e){var t=vm(r);_L(e,function(a,n){for(var i=t.length-1;i>=0;i--){var o=t[i];if(o[n])break}if(i<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:n})[0];if(s){var l=s.getPercentRange();t[0][n]={dataZoomId:n,start:l[0],end:l[1]}}}}),t.push(e)}function PZ(r){var e=vm(r),t=e[e.length-1];e.length>1&&e.pop();var a={};return _L(t,function(n,i){for(var o=e.length-1;o>=0;o--)if(n=e[o][i],n){a[i]=n;break}}),a}function RZ(r){SL(r).snapshots=null}function EZ(r){return vm(r).length}function vm(r){var e=SL(r);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var kZ=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,a){RZ(t),a.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){var a={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:t.getLocaleModel().get(["toolbox","restore","title"])};return a},e}(Dr);ha({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,e){e.resetOption("recreate")});var OZ=kZ,NZ=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],BZ=function(){function r(e,t,a){var n=this;this._targetInfoList=[];var i=xL(t,e);A(VZ,function(o,s){(!a||!a.include||st(a.include,s)>=0)&&o(i,n._targetInfoList)})}return r.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(a,n,i){if((a.coordRanges||(a.coordRanges=[])).push(n),!a.coordRange){a.coordRange=n;var o=pm[a.brushType](0,i,n);a.__rangeOffset={offset:CL[a.brushType](o.values,a.range,[1,1]),xyMinMax:o.xyMinMax}}}),e},r.prototype.matchOutputRanges=function(e,t,a){A(e,function(n){var i=this.findTargetInfo(n,t);i&&i!==!0&&A(i.coordSyses,function(o){var s=pm[n.brushType](1,o,n.range,!0);a(n,s.values,o,t)})},this)},r.prototype.setInputRanges=function(e,t){A(e,function(a){var n=this.findTargetInfo(a,t);if(a.range=a.range||[],n&&n!==!0){a.panelId=n.panelId;var i=pm[a.brushType](0,n.coordSys,a.coordRange),o=a.__rangeOffset;a.range=o?CL[a.brushType](i.values,o.offset,zZ(i.xyMinMax,o.xyMinMax)):i.values}},this)},r.prototype.makePanelOpts=function(e,t){return G(this._targetInfoList,function(a){var n=a.getPanelRect();return{panelId:a.panelId,defaultBrushType:t?t(a):null,clipPath:TM(n),isTargetByCursor:AM(n,e,a.coordSysModel),getLinearBrushOtherExtent:CM(n)}})},r.prototype.controlSeries=function(e,t,a){var n=this.findTargetInfo(e,a);return n===!0||n&&st(n.coordSyses,t.coordinateSystem)>=0},r.prototype.findTargetInfo=function(e,t){for(var a=this._targetInfoList,n=xL(t,e),i=0;ir[1]&&r.reverse(),r}function xL(r,e){return Us(r,e,{includeMainTypes:NZ})}var VZ={grid:function(r,e){var t=r.xAxisModels,a=r.yAxisModels,n=r.gridModels,i=q(),o={},s={};!t&&!a&&!n||(A(t,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),A(a,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),A(n,function(l){i.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),i.each(function(l){var u=l.coordinateSystem,f=[];A(u.getCartesians(),function(h,v){(st(t,h.getAxis("x").model)>=0||st(a,h.getAxis("y").model)>=0)&&f.push(h)}),e.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:f[0],coordSyses:f,getPanelRect:wL.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(r,e){A(r.geoModels,function(t){var a=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:a,coordSyses:[a],getPanelRect:wL.geo})})}},bL=[function(r,e){var t=r.xAxisModel,a=r.yAxisModel,n=r.gridModel;return!n&&t&&(n=t.axis.grid.model),!n&&a&&(n=a.axis.grid.model),n&&n===e.gridModel},function(r,e){var t=r.geoModel;return t&&t===e.geoModel}],wL={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,e=r.getBoundingRect().clone();return e.applyTransform(Di(r)),e}},pm={lineX:it(TL,0),lineY:it(TL,1),rect:function(r,e,t,a){var n=r?e.pointToData([t[0][0],t[1][0]],a):e.dataToPoint([t[0][0],t[1][0]],a),i=r?e.pointToData([t[0][1],t[1][1]],a):e.dataToPoint([t[0][1],t[1][1]],a),o=[cm([n[0],i[0]]),cm([n[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(r,e,t,a){var n=[[Infinity,-Infinity],[Infinity,-Infinity]],i=G(t,function(o){var s=r?e.pointToData(o,a):e.dataToPoint(o,a);return n[0][0]=Math.min(n[0][0],s[0]),n[1][0]=Math.min(n[1][0],s[1]),n[0][1]=Math.max(n[0][1],s[0]),n[1][1]=Math.max(n[1][1],s[1]),s});return{values:i,xyMinMax:n}}};function TL(r,e,t,a){var n=t.getAxis(["x","y"][r]),i=cm(G([0,1],function(s){return e?n.coordToData(n.toLocalCoord(a[s]),!0):n.toGlobalCoord(n.dataToCoord(a[s]))})),o=[];return o[r]=i,o[1-r]=[NaN,NaN],{values:i,xyMinMax:o}}var CL={lineX:it(AL,0),lineY:it(AL,1),rect:function(r,e,t){return[[r[0][0]-t[0]*e[0][0],r[0][1]-t[0]*e[0][1]],[r[1][0]-t[1]*e[1][0],r[1][1]-t[1]*e[1][1]]]},polygon:function(r,e,t){return G(r,function(a,n){return[a[0]-t[0]*e[n][0],a[1]-t[1]*e[n][1]]})}};function AL(r,e,t,a){return[e[0]-a[r]*t[0],e[1]-a[r]*t[1]]}function zZ(r,e){var t=ML(r),a=ML(e),n=[t[0]/a[0],t[1]/a[1]];return isNaN(n[0])&&(n[0]=1),isNaN(n[1])&&(n[1]=1),n}function ML(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}var dm=BZ,gm=A,GZ=J2("toolbox-dataZoom_"),rj=null,FZ=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,a,n,i){this._brushController||(this._brushController=new wy(n.getZr()),this._brushController.on("brush",Y(this._onBrush,this)).mount()),UZ(t,a,this,i,n),WZ(t,a)},e.prototype.onclick=function(t,a,n){HZ[n].call(this)},e.prototype.remove=function(t,a){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,a){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var a=t.areas;if(!t.isEnd||!a.length)return;var n={},i=this.ecModel;this._brushController.updateCovers([]);var o=new dm(ym(this.model),i,{include:["grid"]});o.matchOutputRanges(a,i,function(u,f,h){if(h.type==="cartesian2d"){var v=u.brushType;v==="rect"?(s("x",h,f[0]),s("y",h,f[1])):s({lineX:"x",lineY:"y"}[v],h,f)}}),IZ(i,n),this._dispatchZoomAction(n);function s(u,f,h){var v=f.getAxis(u),c=v.model,p=l(u,c,i),d=p.findRepresentativeAxisProxy(c).getMinMaxSpan();(d.minValueSpan!=null||d.maxValueSpan!=null)&&(h=$i(0,h.slice(),v.scale.getExtent(),0,d.minValueSpan,d.maxValueSpan)),p&&(n[p.id]={dataZoomId:p.id,startValue:h[0],endValue:h[1]})}function l(u,f,h){var v;return h.eachComponent({mainType:"dataZoom",subType:"select"},function(c){var p=c.getAxisModel(u,f.componentIndex);p&&(v=c)}),v}},e.prototype._dispatchZoomAction=function(t){var a=[];gm(t,function(n,i){a.push(tt(n))}),a.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:a})},e.getDefaultOption=function(t){var a={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return a},e}(Dr),HZ={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(PZ(this.ecModel))}};function ym(r){var e={xAxisIndex:r.get("xAxisIndex",!0),yAxisIndex:r.get("yAxisIndex",!0),xAxisId:r.get("xAxisId",!0),yAxisId:r.get("yAxisId",!0)};return e.xAxisIndex==null&&e.xAxisId==null&&(e.xAxisIndex="all"),e.yAxisIndex==null&&e.yAxisId==null&&(e.yAxisIndex="all"),e}function WZ(r,e){r.setIconStatus("back",EZ(e)>1?"emphasis":"normal")}function UZ(r,e,t,a,n){var i=t._isZoomActive;a&&a.type==="takeGlobalCursor"&&(i=a.key==="dataZoomSelect"?a.dataZoomSelectActive:!1),t._isZoomActive=i,r.setIconStatus("zoom",i?"emphasis":"normal");var o=new dm(ym(r),e,{include:["grid"]}),s=o.makePanelOpts(n,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});t._brushController.setPanels(s).enableBrush(i&&s.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}$E("dataZoom",function(r){var e=r.getComponent("toolbox",0),t=["feature","dataZoom"];if(!e||e.get(t)==null)return;var a=e.getModel(t),n=[],i=ym(a),o=Us(r,i);gm(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),gm(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,f){var h=l.componentIndex,v={type:"select",$fromToolbox:!0,filterMode:a.get("filterMode",!0)||"filter",id:GZ+u+h};v[f]=h,n.push(v)}return n});var YZ=FZ;function ZZ(r){r.registerComponentModel(uZ),r.registerComponentView(cZ),hs("saveAsImage",dZ),hs("magicType",mZ),hs("dataView",LZ),hs("dataZoom",YZ),hs("restore",OZ),ct(sZ)}var XZ=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(At),KZ=XZ;function DL(r){var e=r.get("confine");return e!=null?!!e:r.get("renderMode")==="richText"}function LL(r){if(!!St.domSupported){for(var e=document.documentElement.style,t=0,a=r.length;t-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=i==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=i==="top"?225:45)+"deg)");var f=u*Math.PI/180,h=o+n,v=h*Math.abs(Math.cos(f))+h*Math.abs(Math.sin(f)),c=Math.round(((v-Math.SQRT2*n)/2+Math.SQRT2*n-(v-h)/2)*100)/100;s+=";"+i+":-"+c+"px";var p=e+" solid "+n+"px;",d=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+p,"border-right:"+p,"background-color:"+a+";"];return'
'}function e7(r,e){var t="cubic-bezier(0.23,1,0.32,1)",a=" "+r/2+"s "+t,n="opacity"+a+",visibility"+a;return e||(a=" "+r+"s "+t,n+=St.transformSupported?","+mm+a:",left"+a+",top"+a),$Z+":"+n}function RL(r,e,t){var a=r.toFixed(0)+"px",n=e.toFixed(0)+"px";if(!St.transformSupported)return t?"top:"+n+";left:"+a+";":[["top",n],["left",a]];var i=St.transform3dSupported,o="translate"+(i?"3d":"")+"("+a+","+n+(i?",0":"")+")";return t?"top:0;left:0;"+mm+":"+o+";":[["top",0],["left",0],[IL,o]]}function r7(r){var e=[],t=r.get("fontSize"),a=r.getTextColor();a&&e.push("color:"+a),e.push("font:"+r.getFont()),t&&e.push("line-height:"+Math.round(t*3/2)+"px");var n=r.get("textShadowColor"),i=r.get("textShadowBlur")||0,o=r.get("textShadowOffsetX")||0,s=r.get("textShadowOffsetY")||0;return n&&i&&e.push("text-shadow:"+o+"px "+s+"px "+i+"px "+n),A(["decoration","align"],function(l){var u=r.get(l);u&&e.push("text-"+l+":"+u)}),e.join(";")}function a7(r,e,t){var a=[],n=r.get("transitionDuration"),i=r.get("backgroundColor"),o=r.get("shadowBlur"),s=r.get("shadowColor"),l=r.get("shadowOffsetX"),u=r.get("shadowOffsetY"),f=r.getModel("textStyle"),h=nx(r,"html"),v=l+"px "+u+"px "+o+"px "+s;return a.push("box-shadow:"+v),e&&n&&a.push(e7(n,t)),i&&a.push("background-color:"+i),A(["width","color","radius"],function(c){var p="border-"+c,d=K1(p),g=r.get(d);g!=null&&a.push(p+":"+g+(c==="color"?"":"px"))}),a.push(r7(f)),h!=null&&a.push("padding:"+Po(h).join("px ")+"px"),a.join(";")+";"}function EL(r,e,t,a,n){var i=e&&e.painter;if(t){var o=i&&i.getViewportRoot();o&&TP(r,o,document.body,a,n)}else{r[0]=a,r[1]=n;var s=i&&i.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/e.getWidth(),r[3]=r[1]/e.getHeight()}var n7=function(){function r(e,t,a){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,St.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=t.getZr(),o=this._appendToBody=a&&a.appendToBody;EL(this._styleCoord,i,o,t.getWidth()/2,t.getHeight()/2),o?document.body.appendChild(n):e.appendChild(n),this._container=e;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=i.handler,f=i.painter.getViewportRoot();fr(f,l,!0),u.dispatch("mousemove",l)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(e){var t=this._container,a=jZ(t,"position"),n=t.style;n.position!=="absolute"&&a!=="absolute"&&(n.position="relative");var i=e.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this.el.className=e.get("className")||""},r.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var a=this.el,n=a.style,i=this._styleCoord;a.innerHTML?n.cssText=QZ+a7(e,!this._firstShow,this._longHide)+RL(i[0],i[1],!0)+("border-color:"+_i(t)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):n.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(e,t,a,n,i){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(U(i)&&a.get("trigger")==="item"&&!DL(a)&&(s=t7(a,n,i)),U(e))o.innerHTML=e+s;else if(e){o.innerHTML="",z(e)||(e=[e]);for(var l=0;l=0?this._tryShow(i,o):n==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,a=this._ecModel,n=this._api,i=t.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&o.manuallyShowTip(t,a,n,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,a,n,i){if(!(i.from===this.uid||St.node||!n.getDom())){var o=NL(i,n);this._ticket="";var s=i.dataByCoordSys,l=c7(i,a,n);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var f=l7;f.x=i.x,f.y=i.y,f.update(),nt(f).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:f},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(t,a,n,i))return;var h=HD(i,a),v=h.point[0],c=h.point[1];v!=null&&c!=null&&this._tryShow({offsetX:v,offsetY:c,target:h.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},o))}},e.prototype.manuallyHideTip=function(t,a,n,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(NL(i,n))},e.prototype._manuallyAxisShowTip=function(t,a,n,i){var o=i.seriesIndex,s=i.dataIndex,l=a.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=a.getSeriesByIndex(o);if(!!u){var f=u.getData(),h=cu([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(h.get("trigger")==="axis")return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},e.prototype._tryShow=function(t,a){var n=t.target,i=this._tooltipModel;if(!!i){this._lastX=t.offsetX,this._lastY=t.offsetY;var o=t.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,t);else if(n){this._lastDataByCoordSys=null;var s,l;Li(n,function(u){if(nt(u).dataIndex!=null)return s=u,!0;if(nt(u).tooltipConfig!=null)return l=u,!0},!0),s?this._showSeriesItemTooltip(t,s,a):l?this._showComponentItemTooltip(t,l,a):this._hide(a)}else this._lastDataByCoordSys=null,this._hide(a)}},e.prototype._showOrMove=function(t,a){var n=t.get("showDelay");a=Y(a,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(a,n):a()},e.prototype._showAxisTooltip=function(t,a){var n=this._ecModel,i=this._tooltipModel,o=[a.offsetX,a.offsetY],s=cu([a.tooltipOption],i),l=this._renderMode,u=[],f=fe("section",{blocks:[],noHeader:!0}),h=[],v=new Xp;A(t,function(m){A(m.dataByAxis,function(_){var S=n.getComponent(_.axisDim+"Axis",_.axisIndex),b=_.value;if(!(!S||b==null)){var x=kD(b,S.axis,n,_.seriesDataIndices,_.valueLabelOpt),w=fe("section",{header:x,noHeader:!Rr(x),sortBlocks:!0,blocks:[]});f.blocks.push(w),A(_.seriesDataIndices,function(T){var C=n.getSeriesByIndex(T.seriesIndex),M=T.dataIndexInside,D=C.getDataParams(M);if(!(D.dataIndex<0)){D.axisDim=_.axisDim,D.axisIndex=_.axisIndex,D.axisType=_.axisType,D.axisId=_.axisId,D.axisValue=ug(S.axis,{value:b}),D.axisValueLabel=x,D.marker=v.makeTooltipMarker("item",_i(D.color),l);var L=NS(C.formatTooltip(M,!0,null)),I=L.frag;if(I){var P=cu([C],i).get("valueFormatter");w.blocks.push(P?B({valueFormatter:P},I):I)}L.text&&h.push(L.text),u.push(D)}})}})}),f.blocks.reverse(),h.reverse();var c=a.position,p=s.get("order"),d=ex(f,v,l,p,n.get("useUTC"),s.get("textStyle"));d&&h.unshift(d);var g=l==="richText"?` -`:"
",y=h.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t,u)?this._updatePosition(s,c,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],c,null,v)})},e.prototype._showSeriesItemTooltip=function(t,a,n){var i=this._ecModel,o=nt(a),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,h=o.dataType,v=u.getData(h),c=this._renderMode,p=t.positionDefault,d=cu([v.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),g=d.get("trigger");if(!(g!=null&&g!=="item")){var y=u.getDataParams(f,h),m=new Xp;y.marker=m.makeTooltipMarker("item",_i(y.color),c);var _=NS(u.formatTooltip(f,!1,h)),S=d.get("order"),b=d.get("valueFormatter"),x=_.frag,w=x?ex(b?B({valueFormatter:b},x):x,m,c,S,i.get("useUTC"),d.get("textStyle")):_.text,T="item_"+u.name+"_"+f;this._showOrMove(d,function(){this._showTooltipContent(d,w,y,T,t.offsetX,t.offsetY,t.position,t.target,m)}),n({type:"showTip",dataIndexInside:f,dataIndex:v.getRawIndex(f),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,a,n){var i=nt(a),o=i.tooltipConfig,s=o.option||{};if(U(s)){var l=s;s={content:l,formatter:l}}var u=[s],f=this._ecModel.getComponent(i.componentMainType,i.componentIndex);f&&u.push(f),u.push({formatter:s.content});var h=t.positionDefault,v=cu(u,this._tooltipModel,h?{position:h}:null),c=v.get("content"),p=Math.random()+"",d=new Xp;this._showOrMove(v,function(){var g=tt(v.get("formatterParams")||{});this._showTooltipContent(v,c,g,p,t.offsetX,t.offsetY,t.position,a,d)}),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,a,n,i,o,s,l,u,f){if(this._ticket="",!(!t.get("showContent")||!t.get("show"))){var h=this._tooltipContent;h.setEnterable(t.get("enterable"));var v=t.get("formatter");l=l||t.get("position");var c=a,p=this._getNearestPoint([o,s],n,t.get("trigger"),t.get("borderColor")),d=p.color;if(v)if(U(v)){var g=t.ecModel.get("useUTC"),y=z(n)?n[0]:n,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;c=v,m&&(c=Tf(y.axisValue,c,g)),c=j1(c,n,!0)}else if($(v)){var _=Y(function(S,b){S===this._ticket&&(h.setContent(b,f,t,d,l),this._updatePosition(t,l,o,s,h,n,u))},this);this._ticket=i,c=v(n,i,_)}else c=v;h.setContent(c,f,t,d,l),h.show(t,d),this._updatePosition(t,l,o,s,h,n,u)}},e.prototype._getNearestPoint=function(t,a,n,i){if(n==="axis"||z(a))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!z(a))return{color:i||a.color||a.borderColor}},e.prototype._updatePosition=function(t,a,n,i,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();a=a||t.get("position");var h=o.getSize(),v=t.get("align"),c=t.get("verticalAlign"),p=l&&l.getBoundingRect().clone();if(l&&p.applyTransform(l.transform),$(a)&&(a=a([n,i],s,o.el,p,{viewSize:[u,f],contentSize:h.slice()})),z(a))n=H(a[0],u),i=H(a[1],f);else if(et(a)){var d=a;d.width=h[0],d.height=h[1];var g=oe(d,{width:u,height:f});n=g.x,i=g.y,v=null,c=null}else if(U(a)&&l){var y=v7(a,p,h,t.get("borderWidth"));n=y[0],i=y[1]}else{var y=f7(n,i,o,u,f,v?null:20,c?null:20);n=y[0],i=y[1]}if(v&&(n-=BL(v)?h[0]/2:v==="right"?h[0]:0),c&&(i-=BL(c)?h[1]/2:c==="bottom"?h[1]:0),DL(t)){var y=h7(n,i,o,u,f);n=y[0],i=y[1]}o.moveTo(n,i)},e.prototype._updateContentNotChangedOnAxis=function(t,a){var n=this._lastDataByCoordSys,i=this._cbParamsList,o=!!n&&n.length===t.length;return o&&A(n,function(s,l){var u=s.dataByAxis||[],f=t[l]||{},h=f.dataByAxis||[];o=o&&u.length===h.length,o&&A(u,function(v,c){var p=h[c]||{},d=v.seriesDataIndices||[],g=p.seriesDataIndices||[];o=o&&v.value===p.value&&v.axisType===p.axisType&&v.axisId===p.axisId&&d.length===g.length,o&&A(d,function(y,m){var _=g[m];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),i&&A(v.seriesDataIndices,function(y){var m=y.seriesIndex,_=a[m],S=i[m];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=a,!!o},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,a){_t.node||!a.getDom()||(Sl(this,"_updatePosition"),this._tooltipContent.dispose(),Jy("itemTooltip",a))},e.type="tooltip",e}(Zt);function cu(r,e,t){var a=e.ecModel,n;t?(n=new Vt(t,a,a),n=new Vt(e.option,n,a)):n=e;for(var i=r.length-1;i>=0;i--){var o=r[i];o&&(o instanceof Vt&&(o=o.get("tooltip",!0)),U(o)&&(o={formatter:o}),o&&(n=new Vt(o,n,a)))}return n}function NL(r,e){return r.dispatchAction||Y(e.dispatchAction,e)}function f7(r,e,t,a,n,i,o){var s=t.getSize(),l=s[0],u=s[1];return i!=null&&(r+l+i+2>a?r-=l+i:r+=i),o!=null&&(e+u+o>n?e-=u+o:e+=o),[r,e]}function h7(r,e,t,a,n){var i=t.getSize(),o=i[0],s=i[1];return r=Math.min(r+o,a)-o,e=Math.min(e+s,n)-s,r=Math.max(r,0),e=Math.max(e,0),[r,e]}function v7(r,e,t,a){var n=t[0],i=t[1],o=Math.ceil(Math.SQRT2*a)+8,s=0,l=0,u=e.width,f=e.height;switch(r){case"inside":s=e.x+u/2-n/2,l=e.y+f/2-i/2;break;case"top":s=e.x+u/2-n/2,l=e.y-i-o;break;case"bottom":s=e.x+u/2-n/2,l=e.y+f+o;break;case"left":s=e.x-n-o,l=e.y+f/2-i/2;break;case"right":s=e.x+u+o,l=e.y+f/2-i/2}return[s,l]}function BL(r){return r==="center"||r==="middle"}function c7(r,e,t){var a=Bc(r).queryOptionMap,n=a.keys()[0];if(!(!n||n==="series")){var i=Ys(e,n,a.get(n),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(!!o){var s=t.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=nt(u).tooltipConfig;if(f&&f.name===r.name)return l=u,!0}),l)return{componentMainType:n,componentIndex:o.componentIndex,el:l}}}}var p7=u7;function d7(r){ct(hu),r.registerComponentModel(KZ),r.registerComponentView(p7),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},$t),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},$t)}var g7=["rect","polygon","keep","clear"];function y7(r,e){var t=Ot(r?r.brush:[]);if(!!t.length){var a=[];A(t,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(a=a.concat(u))});var n=r&&r.toolbox;z(n)&&(n=n[0]),n||(n={feature:{}},r.toolbox=[n]);var i=n.feature||(n.feature={}),o=i.brush||(i.brush={}),s=o.type||(o.type=[]);s.push.apply(s,a),m7(s),e&&!s.length&&s.push.apply(s,g7)}}function m7(r){var e={};A(r,function(t){e[t]=1}),r.length=0,A(e,function(t,a){r.push(a)})}var VL=A;function zL(r){if(r){for(var e in r)if(r.hasOwnProperty(e))return!0}}function _m(r,e,t){var a={};return VL(e,function(i){var o=a[i]=n();VL(r[i],function(s,l){if(!!we.isValidType(l)){var u={type:l,visual:s};t&&t(u,i),o[l]=new we(u),l==="opacity"&&(u=tt(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new we(u))}})}),a;function n(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function GL(r,e,t){var a;A(t,function(n){e.hasOwnProperty(n)&&zL(e[n])&&(a=!0)}),a&&A(t,function(n){e.hasOwnProperty(n)&&zL(e[n])?r[n]=tt(e[n]):delete r[n]})}function _7(r,e,t,a,n,i){var o={};A(r,function(h){var v=we.prepareVisualTypes(e[h]);o[h]=v});var s;function l(h){return ud(t,s,h)}function u(h,v){nb(t,s,h,v)}i==null?t.each(f):t.each([i],f);function f(h,v){s=i==null?h:v;var c=t.getRawDataItem(s);if(!(c&&c.visualMap===!1))for(var p=a.call(n,h),d=e[p],g=o[p],y=0,m=g.length;ye[0][1]&&(e[0][1]=i[0]),i[1]e[1][1]&&(e[1][1]=i[1])}return e&&ZL(e)}};function ZL(r){return new ht(r[0][0],r[1][0],r[0][1]-r[0][0],r[1][1]-r[1][0])}var M7=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a){this.ecModel=t,this.api=a,this.model,(this._brushController=new wy(a.getZr())).on("brush",Y(this._onBrush,this)).mount()},e.prototype.render=function(t,a,n,i){this.model=t,this._updateController(t,a,n,i)},e.prototype.updateTransform=function(t,a,n,i){UL(a),this._updateController(t,a,n,i)},e.prototype.updateVisual=function(t,a,n,i){this.updateTransform(t,a,n,i)},e.prototype.updateView=function(t,a,n,i){this._updateController(t,a,n,i)},e.prototype._updateController=function(t,a,n,i){(!i||i.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(n)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var a=this.model.id,n=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:a,areas:tt(n),$from:a}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:a,areas:tt(n),$from:a})},e.type="brush",e}(Zt),D7=M7,L7="#ddd",I7=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.areas=[],t.brushOption={},t}return e.prototype.optionUpdated=function(t,a){var n=this.option;!a&&GL(n,t,["inBrush","outOfBrush"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:L7},i.hasOwnProperty("liftZ")||(i.liftZ=5)},e.prototype.setAreas=function(t){!t||(this.areas=G(t,function(a){return XL(this.option,a)},this))},e.prototype.setBrushOption=function(t){this.brushOption=XL(this.option,t),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},e}(Mt);function XL(r,e){return ot({brushType:r.brushType,brushMode:r.brushMode,transformable:r.transformable,brushStyle:new Vt(r.brushStyle).getItemStyle(),removeOnClick:r.removeOnClick,z:r.z},e,!0)}var P7=I7,R7=["rect","polygon","lineX","lineY","keep","clear"],E7=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,a,n){var i,o,s;a.eachComponent({mainType:"brush"},function(l){i=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=i,this._brushMode=o,A(t.get("type",!0),function(l){t.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===i)?"emphasis":"normal")})},e.prototype.updateView=function(t,a,n){this.render(t,a,n)},e.prototype.getIcons=function(){var t=this.model,a=t.get("icon",!0),n={};return A(t.get("type",!0),function(i){a[i]&&(n[i]=a[i])}),n},e.prototype.onclick=function(t,a,n){var i=this._brushType,o=this._brushMode;n==="clear"?(a.dispatchAction({type:"axisAreaSelect",intervals:[]}),a.dispatchAction({type:"brush",command:"clear",areas:[]})):a.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:n==="keep"?i:i===n?!1:n,brushMode:n==="keep"?o==="multiple"?"single":"multiple":o}})},e.getDefaultOption=function(t){var a={show:!0,type:R7.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.getLocaleModel().get(["toolbox","brush","title"])};return a},e}(Dr),k7=E7;function O7(r){r.registerComponentView(D7),r.registerComponentModel(P7),r.registerPreprocessor(y7),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,b7),r.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(e,t){t.eachComponent({mainType:"brush",query:e},function(a){a.setAreas(e.areas)})}),r.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},$t),r.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},$t),hs("brush",k7)}var N7=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(Mt),B7=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){if(this.group.removeAll(),!!t.get("show")){var i=this.group,o=t.getModel("textStyle"),s=t.getModel("subtextStyle"),l=t.get("textAlign"),u=ft(t.get("textBaseline"),t.get("textVerticalAlign")),f=new Ct({style:Bt(o,{text:t.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),h=f.getBoundingRect(),v=t.get("subtext"),c=new Ct({style:Bt(s,{text:v,fill:s.getTextColor(),y:h.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=t.get("link"),d=t.get("sublink"),g=t.get("triggerEvent",!0);f.silent=!p&&!g,c.silent=!d&&!g,p&&f.on("click",function(){Lf(p,"_"+t.get("target"))}),d&&c.on("click",function(){Lf(d,"_"+t.get("subtarget"))}),nt(f).eventData=nt(c).eventData=g?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(f),v&&i.add(c);var y=i.getBoundingRect(),m=t.getBoxLayoutParams();m.width=y.width,m.height=y.height;var _=oe(m,{width:n.getWidth(),height:n.getHeight()},t.get("padding"));l||(l=t.get("left")||t.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=t.get("top")||t.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),i.x=_.x,i.y=_.y,i.markRedraw();var S={align:l,verticalAlign:u};f.setStyle(S),c.setStyle(S),y=i.getBoundingRect();var b=_.margin,x=t.getItemStyle(["color","opacity"]);x.fill=t.get("backgroundColor");var w=new bt({shape:{x:y.x-b[3],y:y.y-b[0],width:y.width+b[1]+b[3],height:y.height+b[0]+b[2],r:t.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});i.add(w)}},e.type="title",e}(Zt);function V7(r){r.registerComponentModel(N7),r.registerComponentView(B7)}var z7=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode="box",t}return e.prototype.init=function(t,a,n){this.mergeDefaultAndTheme(t,n),this._initData()},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){t==null&&(t=this.option.currentIndex);var a=this._data.count();this.option.loop?t=(t%a+a)%a:(t>=a&&(t=a-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t=this.option,a=t.data||[],n=t.axisType,i=this._names=[],o;n==="category"?(o=[],A(a,function(u,f){var h=ie(So(u),""),v;et(u)?(v=tt(u),v.value=f):v=f,o.push(v),i.push(h)})):o=a;var s={category:"ordinal",time:"time",value:"number"}[n]||"number",l=this._data=new Be([{name:"value",type:s}],this);l.initData(o,i)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},e}(Mt),KL=z7,qL=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline.slider",e.defaultOption=cn(KL.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),e}(KL);Jt(qL,Gp.prototype);var G7=qL,F7=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline",e}(Zt),H7=F7,W7=function(r){k(e,r);function e(t,a,n,i){var o=r.call(this,t,a,n)||this;return o.type=i||"value",o}return e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},e}(Yr),U7=W7,bm=Math.PI,jL=xt(),Y7=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a){this.api=a},e.prototype.render=function(t,a,n){if(this.model=t,this.api=n,this.ecModel=a,this.group.removeAll(),t.get("show",!0)){var i=this._layout(t,n),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(i,t);t.formatTooltip=function(u){var f=l.scale.getLabel({value:u});return fe("nameValue",{noName:!0,value:f})},A(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](i,o,l,t)},this),this._renderAxisLabel(i,s,l,t),this._position(i,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,a){var n=t.get(["label","position"]),i=t.get("orient"),o=X7(t,a),s;n==null||n==="auto"?s=i==="horizontal"?o.y+o.height/2=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},f={horizontal:0,vertical:bm/2},h=i==="vertical"?o.height:o.width,v=t.getModel("controlStyle"),c=v.get("show",!0),p=c?v.get("itemSize"):0,d=c?v.get("itemGap"):0,g=p+d,y=t.get(["label","rotate"])||0;y=y*bm/180;var m,_,S,b=v.get("position",!0),x=c&&v.get("showPlayBtn",!0),w=c&&v.get("showPrevBtn",!0),T=c&&v.get("showNextBtn",!0),C=0,M=h;b==="left"||b==="bottom"?(x&&(m=[0,0],C+=g),w&&(_=[C,0],C+=g),T&&(S=[M-p,0],M-=g)):(x&&(m=[M-p,0],M-=g),w&&(_=[0,0],C+=g),T&&(S=[M-p,0],M-=g));var D=[C,M];return t.get("inverse")&&D.reverse(),{viewRect:o,mainLength:h,orient:i,rotation:f[i],labelRotation:y,labelPosOpt:s,labelAlign:t.get(["label","align"])||l[i],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||u[i],playPosition:m,prevBtnPosition:_,nextBtnPosition:S,axisExtent:D,controlSize:p,controlGap:d}},e.prototype._position=function(t,a){var n=this._mainGroup,i=this._labelGroup,o=t.viewRect;if(t.orient==="vertical"){var s=hr(),l=o.x,u=o.y+o.height;jr(s,s,[-l,-u]),Zn(s,s,-bm/2),jr(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var f=m(o),h=m(n.getBoundingRect()),v=m(i.getBoundingRect()),c=[n.x,n.y],p=[i.x,i.y];p[0]=c[0]=f[0][0];var d=t.labelPosOpt;if(d==null||U(d)){var g=d==="+"?0:1;_(c,h,f,1,g),_(p,v,f,1,1-g)}else{var g=d>=0?0:1;_(c,h,f,1,g),p[1]=c[1]+d}n.setPosition(c),i.setPosition(p),n.rotation=i.rotation=t.rotation,y(n),y(i);function y(S){S.originX=f[0][0]-S.x,S.originY=f[1][0]-S.y}function m(S){return[[S.x,S.x+S.width],[S.y,S.y+S.height]]}function _(S,b,x,w,T){S[w]+=x[w][T]-b[w][T]}},e.prototype._createAxis=function(t,a){var n=a.getData(),i=a.get("axisType"),o=Z7(a,i);o.getTicks=function(){return n.mapArray(["value"],function(u){return{value:u}})};var s=n.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new U7("value",o,t.axisExtent,i);return l.model=a,l},e.prototype._createGroup=function(t){var a=this[t]=new rt;return this.group.add(a),a},e.prototype._renderAxisLine=function(t,a,n,i){var o=n.getExtent();if(!!i.get(["lineStyle","show"])){var s=new de({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:B({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});a.add(s);var l=this._progressLine=new de({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:K({lineCap:"round",lineWidth:s.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});a.add(l)}},e.prototype._renderAxisTick=function(t,a,n,i){var o=this,s=i.getData(),l=n.scale.getTicks();this._tickSymbols=[],A(l,function(u){var f=n.dataToCoord(u.value),h=s.getItemModel(u.value),v=h.getModel("itemStyle"),c=h.getModel(["emphasis","itemStyle"]),p=h.getModel(["progress","itemStyle"]),d={x:f,y:0,onclick:Y(o._changeTimeline,o,u.value)},g=$L(h,v,a,d);g.ensureState("emphasis").style=c.getItemStyle(),g.ensureState("progress").style=p.getItemStyle(),di(g);var y=nt(g);h.get("tooltip")?(y.dataIndex=u.value,y.dataModel=i):y.dataIndex=y.dataModel=null,o._tickSymbols.push(g)})},e.prototype._renderAxisLabel=function(t,a,n,i){var o=this,s=n.getLabelModel();if(!!s.get("show")){var l=i.getData(),u=n.getViewLabels();this._tickLabels=[],A(u,function(f){var h=f.tickValue,v=l.getItemModel(h),c=v.getModel("label"),p=v.getModel(["emphasis","label"]),d=v.getModel(["progress","label"]),g=n.dataToCoord(f.tickValue),y=new Ct({x:g,y:0,rotation:t.labelRotation-t.rotation,onclick:Y(o._changeTimeline,o,h),silent:!1,style:Bt(c,{text:f.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});y.ensureState("emphasis").style=Bt(p),y.ensureState("progress").style=Bt(d),a.add(y),di(y),jL(y).dataIndex=h,o._tickLabels.push(y)})}},e.prototype._renderControl=function(t,a,n,i){var o=t.controlSize,s=t.rotation,l=i.getModel("controlStyle").getItemStyle(),u=i.getModel(["emphasis","controlStyle"]).getItemStyle(),f=i.getPlayState(),h=i.get("inverse",!0);v(t.nextBtnPosition,"next",Y(this._changeTimeline,this,h?"-":"+")),v(t.prevBtnPosition,"prev",Y(this._changeTimeline,this,h?"+":"-")),v(t.playPosition,f?"stop":"play",Y(this._handlePlayClick,this,!f),!0);function v(c,p,d,g){if(!!c){var y=Or(ft(i.get(["controlStyle",p+"BtnSize"]),o),o),m=[0,-y/2,y,y],_=K7(i,p+"Icon",m,{x:c[0],y:c[1],originX:o/2,originY:0,rotation:g?-s:0,rectHover:!0,style:l,onclick:d});_.ensureState("emphasis").style=u,a.add(_),di(_)}}},e.prototype._renderCurrentPointer=function(t,a,n,i){var o=i.getData(),s=i.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,f={onCreate:function(h){h.draggable=!0,h.drift=Y(u._handlePointerDrag,u),h.ondragend=Y(u._handlePointerDragend,u),QL(h,u._progressLine,s,n,i,!0)},onUpdate:function(h){QL(h,u._progressLine,s,n,i)}};this._currentPointer=$L(l,l,this._mainGroup,{},this._currentPointer,f)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,a,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,a){var n=this._toAxisCoord(t)[0],i=this._axis,o=pr(i.getExtent().slice());n>o[1]&&(n=o[1]),n=0&&(o[i]=+o[i].toFixed(v)),[o,h]}var Cm={min:it(xv,"min"),max:it(xv,"max"),average:it(xv,"average"),median:it(xv,"median")};function du(r,e){if(!!e){var t=r.getData(),a=r.coordinateSystem,n=a.dimensions;if(!r9(e)&&!z(e.coord)&&a){var i=eI(e,t,a,r);if(e=tt(e),e.type&&Cm[e.type]&&i.baseAxis&&i.valueAxis){var o=st(n,i.baseAxis.dim),s=st(n,i.valueAxis.dim),l=Cm[e.type](t,i.baseDataDim,i.valueDataDim,o,s);e.coord=l[0],e.value=l[1]}else e.coord=[e.xAxis!=null?e.xAxis:e.radiusAxis,e.yAxis!=null?e.yAxis:e.angleAxis]}if(e.coord==null)e.coord=[];else for(var u=e.coord,f=0;f<2;f++)Cm[u[f]]&&(u[f]=Am(t,t.mapDimension(n[f]),u[f]));return e}}function eI(r,e,t,a){var n={};return r.valueIndex!=null||r.valueDim!=null?(n.valueDataDim=r.valueIndex!=null?e.getDimension(r.valueIndex):r.valueDim,n.valueAxis=t.getAxis(a9(a,n.valueDataDim)),n.baseAxis=t.getOtherAxis(n.valueAxis),n.baseDataDim=e.mapDimension(n.baseAxis.dim)):(n.baseAxis=a.getBaseAxis(),n.valueAxis=t.getOtherAxis(n.baseAxis),n.baseDataDim=e.mapDimension(n.baseAxis.dim),n.valueDataDim=e.mapDimension(n.valueAxis.dim)),n}function a9(r,e){var t=r.getData().getDimensionInfo(e);return t&&t.coordDim}function gu(r,e){return r&&r.containData&&e.coord&&!Tm(e)?r.containData(e.coord):!0}function n9(r,e,t){return r&&r.containZone&&e.coord&&t.coord&&!Tm(e)&&!Tm(t)?r.containZone(e.coord,t.coord):!0}function rI(r,e){return r?function(t,a,n,i){var o=i<2?t.coord&&t.coord[i]:t.value;return dn(o,e[i])}:function(t,a,n,i){return dn(t.value,e[i])}}function Am(r,e,t){if(t==="average"){var a=0,n=0;return r.each(e,function(i,o){isNaN(i)||(a+=i,n++)}),a/n}else return t==="median"?r.getMedian(e):r.getDataExtent(e)[t==="max"?1:0]}var Mm=xt(),i9=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this.markerGroupMap=q()},e.prototype.render=function(t,a,n){var i=this,o=this.markerGroupMap;o.each(function(s){Mm(s).keep=!1}),a.eachSeries(function(s){var l=Rn.getMarkerModelFromSeries(s,i.type);l&&i.renderSeries(s,l,a,n)}),o.each(function(s){!Mm(s).keep&&i.group.remove(s.group)})},e.prototype.markKeep=function(t){Mm(t).keep=!0},e.prototype.toggleBlurSeries=function(t,a){var n=this;A(t,function(i){var o=Rn.getMarkerModelFromSeries(i,n.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(a?p1(l):sp(l))})}})},e.type="marker",e}(Zt),Dm=i9;function aI(r,e,t){var a=e.coordinateSystem;r.each(function(n){var i=r.getItemModel(n),o,s=H(i.get("x"),t.getWidth()),l=H(i.get("y"),t.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(e.getMarkerPosition)o=e.getMarkerPosition(r.getValues(r.dimensions,n));else if(a){var u=r.get(a.dimensions[0],n),f=r.get(a.dimensions[1],n);o=a.dataToPoint([u,f])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),r.setItemLayout(n,o)})}var o9=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,a,n){a.eachSeries(function(i){var o=Rn.getMarkerModelFromSeries(i,"markPoint");o&&(aI(o.getData(),i,n),this.markerGroupMap.get(i.id).updateLayout())},this)},e.prototype.renderSeries=function(t,a,n,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new zl),h=s9(o,t,a);a.setData(h),aI(a.getData(),t,i),h.each(function(v){var c=h.getItemModel(v),p=c.getShallow("symbol"),d=c.getShallow("symbolSize"),g=c.getShallow("symbolRotate"),y=c.getShallow("symbolOffset"),m=c.getShallow("symbolKeepAspect");if($(p)||$(d)||$(g)||$(y)){var _=a.getRawValue(v),S=a.getDataParams(v);$(p)&&(p=p(_,S)),$(d)&&(d=d(_,S)),$(g)&&(g=g(_,S)),$(y)&&(y=y(_,S))}var b=c.getModel("itemStyle").getItemStyle(),x=wl(l,"color");b.fill||(b.fill=x),h.setItemVisual(v,{symbol:p,symbolSize:d,symbolRotate:g,symbolOffset:y,symbolKeepAspect:m,style:b})}),f.updateData(h),this.group.add(f.group),h.eachItemGraphicEl(function(v){v.traverse(function(c){nt(c).dataModel=a})}),this.markKeep(f),f.group.silent=a.get("silent")||t.get("silent")},e.type="markPoint",e}(Dm);function s9(r,e,t){var a;r?a=G(r&&r.dimensions,function(s){var l=e.getData().getDimensionInfo(e.getData().mapDimension(s))||{};return B(B({},l),{name:s,ordinalMeta:null})}):a=[{name:"value",type:"float"}];var n=new Be(a,t),i=G(t.get("data"),it(du,e));r&&(i=Rt(i,it(gu,r)));var o=rI(!!r,a);return n.initData(i,null,o),n}var l9=o9;function u9(r){r.registerComponentModel(e9),r.registerComponentView(l9),r.registerPreprocessor(function(e){wm(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})})}var f9=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,a,n){return new e(t,a,n)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e}(Rn),h9=f9,bv=xt(),v9=function(r,e,t,a){var n=r.getData(),i;if(z(a))i=a;else{var o=a.type;if(o==="min"||o==="max"||o==="average"||o==="median"||a.xAxis!=null||a.yAxis!=null){var s=void 0,l=void 0;if(a.yAxis!=null||a.xAxis!=null)s=e.getAxis(a.yAxis!=null?"y":"x"),l=ce(a.yAxis,a.xAxis);else{var u=eI(a,n,e,r);s=u.valueAxis;var f=Fw(n,u.valueDataDim);l=Am(n,f,o)}var h=s.dim==="x"?0:1,v=1-h,c=tt(a),p={coord:[]};c.type=null,c.coord=[],c.coord[v]=-Infinity,p.coord[v]=Infinity;var d=t.get("precision");d>=0&&Tt(l)&&(l=+l.toFixed(Math.min(d,20))),c.coord[h]=p.coord[h]=l,i=[c,p,{type:o,valueIndex:a.valueIndex,value:l}]}else i=[]}var g=[du(r,i[0]),du(r,i[1]),B({},i[2])];return g[2].type=g[2].type||null,ot(g[2],g[0]),ot(g[2],g[1]),g};function wv(r){return!isNaN(r)&&!isFinite(r)}function nI(r,e,t,a){var n=1-r,i=a.dimensions[r];return wv(e[n])&&wv(t[n])&&e[r]===t[r]&&a.getAxis(i).containData(e[r])}function c9(r,e){if(r.type==="cartesian2d"){var t=e[0].coord,a=e[1].coord;if(t&&a&&(nI(1,t,a,r)||nI(0,t,a,r)))return!0}return gu(r,e[0])&&gu(r,e[1])}function Lm(r,e,t,a,n){var i=a.coordinateSystem,o=r.getItemModel(e),s,l=H(o.get("x"),n.getWidth()),u=H(o.get("y"),n.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(a.getMarkerPosition)s=a.getMarkerPosition(r.getValues(r.dimensions,e));else{var f=i.dimensions,h=r.get(f[0],e),v=r.get(f[1],e);s=i.dataToPoint([h,v])}if(Gi(i,"cartesian2d")){var c=i.getAxis("x"),p=i.getAxis("y"),f=i.dimensions;wv(r.get(f[0],e))?s[0]=c.toGlobalCoord(c.getExtent()[t?0:1]):wv(r.get(f[1],e))&&(s[1]=p.toGlobalCoord(p.getExtent()[t?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}r.setItemLayout(e,s)}var p9=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,a,n){a.eachSeries(function(i){var o=Rn.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),l=bv(o).from,u=bv(o).to;l.each(function(f){Lm(l,f,!0,i,n),Lm(u,f,!1,i,n)}),s.each(function(f){s.setItemLayout(f,[l.getItemLayout(f),u.getItemLayout(f)])}),this.markerGroupMap.get(i.id).updateLayout()}},this)},e.prototype.renderSeries=function(t,a,n,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new ay);this.group.add(f.group);var h=d9(o,t,a),v=h.from,c=h.to,p=h.line;bv(a).from=v,bv(a).to=c,a.setData(p);var d=a.get("symbol"),g=a.get("symbolSize"),y=a.get("symbolRotate"),m=a.get("symbolOffset");z(d)||(d=[d,d]),z(g)||(g=[g,g]),z(y)||(y=[y,y]),z(m)||(m=[m,m]),h.from.each(function(S){_(v,S,!0),_(c,S,!1)}),p.each(function(S){var b=p.getItemModel(S).getModel("lineStyle").getLineStyle();p.setItemLayout(S,[v.getItemLayout(S),c.getItemLayout(S)]),b.stroke==null&&(b.stroke=v.getItemVisual(S,"style").fill),p.setItemVisual(S,{fromSymbolKeepAspect:v.getItemVisual(S,"symbolKeepAspect"),fromSymbolOffset:v.getItemVisual(S,"symbolOffset"),fromSymbolRotate:v.getItemVisual(S,"symbolRotate"),fromSymbolSize:v.getItemVisual(S,"symbolSize"),fromSymbol:v.getItemVisual(S,"symbol"),toSymbolKeepAspect:c.getItemVisual(S,"symbolKeepAspect"),toSymbolOffset:c.getItemVisual(S,"symbolOffset"),toSymbolRotate:c.getItemVisual(S,"symbolRotate"),toSymbolSize:c.getItemVisual(S,"symbolSize"),toSymbol:c.getItemVisual(S,"symbol"),style:b})}),f.updateData(p),h.line.eachItemGraphicEl(function(S){nt(S).dataModel=a,S.traverse(function(b){nt(b).dataModel=a})});function _(S,b,x){var w=S.getItemModel(b);Lm(S,b,x,t,i);var T=w.getModel("itemStyle").getItemStyle();T.fill==null&&(T.fill=wl(l,"color")),S.setItemVisual(b,{symbolKeepAspect:w.get("symbolKeepAspect"),symbolOffset:ft(w.get("symbolOffset",!0),m[x?0:1]),symbolRotate:ft(w.get("symbolRotate",!0),y[x?0:1]),symbolSize:ft(w.get("symbolSize"),g[x?0:1]),symbol:ft(w.get("symbol",!0),d[x?0:1]),style:T})}this.markKeep(f),f.group.silent=a.get("silent")||t.get("silent")},e.type="markLine",e}(Dm);function d9(r,e,t){var a;r?a=G(r&&r.dimensions,function(u){var f=e.getData().getDimensionInfo(e.getData().mapDimension(u))||{};return B(B({},f),{name:u,ordinalMeta:null})}):a=[{name:"value",type:"float"}];var n=new Be(a,t),i=new Be(a,t),o=new Be([],t),s=G(t.get("data"),it(v9,e,r,t));r&&(s=Rt(s,it(c9,r)));var l=rI(!!r,a);return n.initData(G(s,function(u){return u[0]}),null,l),i.initData(G(s,function(u){return u[1]}),null,l),o.initData(G(s,function(u){return u[2]})),o.hasItemOption=!0,{from:n,to:i,line:o}}var g9=p9;function y9(r){r.registerComponentModel(h9),r.registerComponentView(g9),r.registerPreprocessor(function(e){wm(e.series,"markLine")&&(e.markLine=e.markLine||{})})}var m9=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,a,n){return new e(t,a,n)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(Rn),_9=m9,Tv=xt(),S9=function(r,e,t,a){var n=a[0],i=a[1];if(!(!n||!i)){var o=du(r,n),s=du(r,i),l=o.coord,u=s.coord;l[0]=ce(l[0],-Infinity),l[1]=ce(l[1],-Infinity),u[0]=ce(u[0],Infinity),u[1]=ce(u[1],Infinity);var f=Kr([{},o,s]);return f.coord=[o.coord,s.coord],f.x0=o.x,f.y0=o.y,f.x1=s.x,f.y1=s.y,f}};function Cv(r){return!isNaN(r)&&!isFinite(r)}function iI(r,e,t,a){var n=1-r;return Cv(e[n])&&Cv(t[n])}function x9(r,e){var t=e.coord[0],a=e.coord[1],n={coord:t,x:e.x0,y:e.y0},i={coord:a,x:e.x1,y:e.y1};return Gi(r,"cartesian2d")?t&&a&&(iI(1,t,a,r)||iI(0,t,a,r))?!0:n9(r,n,i):gu(r,n)||gu(r,i)}function oI(r,e,t,a,n){var i=a.coordinateSystem,o=r.getItemModel(e),s,l=H(o.get(t[0]),n.getWidth()),u=H(o.get(t[1]),n.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(a.getMarkerPosition){var f=r.getValues(["x0","y0"],e),h=r.getValues(["x1","y1"],e),v=i.clampData(f),c=i.clampData(h),p=[];t[0]==="x0"?p[0]=v[0]>c[0]?h[0]:f[0]:p[0]=v[0]>c[0]?f[0]:h[0],t[1]==="y0"?p[1]=v[1]>c[1]?h[1]:f[1]:p[1]=v[1]>c[1]?f[1]:h[1],s=a.getMarkerPosition(p,t,!0)}else{var d=r.get(t[0],e),g=r.get(t[1],e),y=[d,g];i.clampData&&i.clampData(y,y),s=i.dataToPoint(y,!0)}if(Gi(i,"cartesian2d")){var m=i.getAxis("x"),_=i.getAxis("y"),d=r.get(t[0],e),g=r.get(t[1],e);Cv(d)?s[0]=m.toGlobalCoord(m.getExtent()[t[0]==="x0"?0:1]):Cv(g)&&(s[1]=_.toGlobalCoord(_.getExtent()[t[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var sI=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],b9=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,a,n){a.eachSeries(function(i){var o=Rn.getMarkerModelFromSeries(i,"markArea");if(o){var s=o.getData();s.each(function(l){var u=G(sI,function(h){return oI(s,l,h,i,n)});s.setItemLayout(l,u);var f=s.getItemGraphicEl(l);f.setShape("points",u)})}},this)},e.prototype.renderSeries=function(t,a,n,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,{group:new rt});this.group.add(f.group),this.markKeep(f);var h=w9(o,t,a);a.setData(h),h.each(function(v){var c=G(sI,function(T){return oI(h,v,T,t,i)}),p=o.getAxis("x").scale,d=o.getAxis("y").scale,g=p.getExtent(),y=d.getExtent(),m=[p.parse(h.get("x0",v)),p.parse(h.get("x1",v))],_=[d.parse(h.get("y0",v)),d.parse(h.get("y1",v))];pr(m),pr(_);var S=!(g[0]>m[1]||g[1]_[1]||y[1]<_[0]),b=!S;h.setItemLayout(v,{points:c,allClipped:b});var x=h.getItemModel(v).getModel("itemStyle").getItemStyle(),w=wl(l,"color");x.fill||(x.fill=w,U(x.fill)&&(x.fill=Uu(x.fill,.4))),x.stroke||(x.stroke=w),h.setItemVisual(v,"style",x)}),h.diff(Tv(f).data).add(function(v){var c=h.getItemLayout(v);if(!c.allClipped){var p=new Ye({shape:{points:c.points}});h.setItemGraphicEl(v,p),f.group.add(p)}}).update(function(v,c){var p=Tv(f).data.getItemGraphicEl(c),d=h.getItemLayout(v);d.allClipped?p&&f.group.remove(p):(p?At(p,{shape:{points:d.points}},a,v):p=new Ye({shape:{points:d.points}}),h.setItemGraphicEl(v,p),f.group.add(p))}).remove(function(v){var c=Tv(f).data.getItemGraphicEl(v);f.group.remove(c)}).execute(),h.eachItemGraphicEl(function(v,c){var p=h.getItemModel(c),d=h.getItemVisual(c,"style");v.useStyle(h.getItemVisual(c,"style")),xe(v,ue(p),{labelFetcher:a,labelDataIndex:c,defaultText:h.getName(c)||"",inheritColor:U(d.fill)?Uu(d.fill,1):"#000"}),Se(v,p),Yt(v,null,null,p.get(["emphasis","disabled"])),nt(v).dataModel=a}),Tv(f).data=h,f.group.silent=a.get("silent")||t.get("silent")},e.type="markArea",e}(Dm);function w9(r,e,t){var a,n,i=["x0","y0","x1","y1"];if(r){var o=G(r&&r.dimensions,function(u){var f=e.getData(),h=f.getDimensionInfo(f.mapDimension(u))||{};return B(B({},h),{name:u,ordinalMeta:null})});n=G(i,function(u,f){return{name:u,type:o[f%2].type}}),a=new Be(n,t)}else n=[{name:"value",type:"float"}],a=new Be(n,t);var s=G(t.get("data"),it(S9,e,r,t));r&&(s=Rt(s,it(x9,r)));var l=r?function(u,f,h,v){var c=u.coord[Math.floor(v/2)][v%2];return dn(c,n[v])}:function(u,f,h,v){return dn(u.value,n[v])};return a.initData(s,null,l),a.hasItemOption=!0,a}var T9=b9;function C9(r){r.registerComponentModel(_9),r.registerComponentView(T9),r.registerPreprocessor(function(e){wm(e.series,"markArea")&&(e.markArea=e.markArea||{})})}var A9=function(r,e){if(e==="all")return{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}},M9=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.prototype.init=function(t,a,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(t,a){r.prototype.mergeOption.call(this,t,a),this._updateSelector(t)},e.prototype._updateSelector=function(t){var a=t.selector,n=this.ecModel;a===!0&&(a=t.selector=["all","inverse"]),z(a)&&A(a,function(i,o){U(i)&&(i={type:i}),a[o]=ot(i,A9(n,i.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&this.get("selectedMode")==="single"){for(var a=!1,n=0;n=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(Mt),Im=M9,cs=it,Pm=A,Av=rt,D9=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!1,t}return e.prototype.init=function(){this.group.add(this._contentGroup=new Av),this.group.add(this._selectorGroup=new Av),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,a,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!t.get("show",!0)){var o=t.get("align"),s=t.get("orient");(!o||o==="auto")&&(o=t.get("left")==="right"&&s==="vertical"?"right":"left");var l=t.get("selector",!0),u=t.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,t,a,n,l,s,u);var f=t.getBoxLayoutParams(),h={width:n.getWidth(),height:n.getHeight()},v=t.get("padding"),c=oe(f,h,v),p=this.layoutInner(t,o,c,i,l,u),d=oe(K({width:p.width,height:p.height},f),h,v);this.group.x=d.x-p.x,this.group.y=d.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=gL(p,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,a,n,i,o,s,l){var u=this.getContentGroup(),f=q(),h=a.get("selectedMode"),v=[];n.eachRawSeries(function(c){!c.get("legendHoverLink")&&v.push(c.id)}),Pm(a.getData(),function(c,p){var d=c.get("name");if(!this.newlineDisabled&&(d===""||d===` -`)){var g=new Av;g.newline=!0,u.add(g);return}var y=n.getSeriesByName(d)[0];if(!f.get(d))if(y){var m=y.getData(),_=m.getVisual("legendLineStyle")||{},S=m.getVisual("legendIcon"),b=m.getVisual("style"),x=this._createItem(y,d,p,c,a,t,_,b,S,h,i);x.on("click",cs(lI,d,null,i,v)).on("mouseover",cs(Rm,y.name,null,i,v)).on("mouseout",cs(Em,y.name,null,i,v)),f.set(d,!0)}else n.eachRawSeries(function(w){if(!f.get(d)&&w.legendVisualProvider){var T=w.legendVisualProvider;if(!T.containName(d))return;var C=T.indexOfName(d),M=T.getItemVisual(C,"style"),D=T.getItemVisual(C,"legendIcon"),L=Fe(M.fill);L&&L[3]===0&&(L[3]=.2,M=B(B({},M),{fill:Qr(L,"rgba")}));var I=this._createItem(w,d,p,c,a,t,{},M,D,h,i);I.on("click",cs(lI,null,d,i,v)).on("mouseover",cs(Rm,null,d,i,v)).on("mouseout",cs(Em,null,d,i,v)),f.set(d,!0)}},this)},this),o&&this._createSelector(o,a,i,s,l)},e.prototype._createSelector=function(t,a,n,i,o){var s=this.getSelectorGroup();Pm(t,function(u){var f=u.type,h=new Ct({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(h);var v=a.getModel("selectorLabel"),c=a.getModel(["emphasis","selectorLabel"]);xe(h,{normal:v,emphasis:c},{defaultText:u.title}),di(h)})},e.prototype._createItem=function(t,a,n,i,o,s,l,u,f,h,v){var c=t.visualDrawType,p=o.get("itemWidth"),d=o.get("itemHeight"),g=o.isSelected(a),y=i.get("symbolRotate"),m=i.get("symbolKeepAspect"),_=i.get("icon");f=_||f||"roundRect";var S=L9(f,i,l,u,c,g,v),b=new Av,x=i.getModel("textStyle");if($(t.getLegendIcon)&&(!_||_==="inherit"))b.add(t.getLegendIcon({itemWidth:p,itemHeight:d,icon:f,iconRotate:y,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}));else{var w=_==="inherit"&&t.getData().getVisual("symbol")?y==="inherit"?t.getData().getVisual("symbolRotate"):y:0;b.add(I9({itemWidth:p,itemHeight:d,icon:f,iconRotate:w,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}))}var T=s==="left"?p+5:-5,C=s,M=o.get("formatter"),D=a;U(M)&&M?D=M.replace("{name}",a!=null?a:""):$(M)&&(D=M(a));var L=i.get("inactiveColor");b.add(new Ct({style:Bt(x,{text:D,x:T,y:d/2,fill:g?x.getTextColor():L,align:C,verticalAlign:"middle"})}));var I=new bt({shape:b.getBoundingRect(),invisible:!0}),P=i.getModel("tooltip");return P.get("show")&&Fo({el:I,componentModel:o,itemName:a,itemTooltipOption:P.option}),b.add(I),b.eachChild(function(R){R.silent=!0}),I.silent=!h,this.getContentGroup().add(b),di(b),b.__legendDataIndex=n,b},e.prototype.layoutInner=function(t,a,n,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();xi(t.get("orient"),l,t.get("itemGap"),n.width,n.height);var f=l.getBoundingRect(),h=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){xi("horizontal",u,t.get("selectorItemGap",!0));var v=u.getBoundingRect(),c=[-v.x,-v.y],p=t.get("selectorButtonGap",!0),d=t.getOrient().index,g=d===0?"width":"height",y=d===0?"height":"width",m=d===0?"y":"x";s==="end"?c[d]+=f[g]+p:h[d]+=v[g]+p,c[1-d]+=f[y]/2-v[y]/2,u.x=c[0],u.y=c[1],l.x=h[0],l.y=h[1];var _={x:0,y:0};return _[g]=f[g]+p+v[g],_[y]=Math.max(f[y],v[y]),_[m]=Math.min(0,v[m]+c[1-d]),_}else return l.x=h[0],l.y=h[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(Zt);function L9(r,e,t,a,n,i,o){function s(g,y){g.lineWidth==="auto"&&(g.lineWidth=y.lineWidth>0?2:0),Pm(g,function(m,_){g[_]==="inherit"&&(g[_]=y[_])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),f=r.lastIndexOf("empty",0)===0?"fill":"stroke",h=l.getShallow("decal");u.decal=!h||h==="inherit"?a.decal:Zo(h,o),u.fill==="inherit"&&(u.fill=a[n]),u.stroke==="inherit"&&(u.stroke=a[f]),u.opacity==="inherit"&&(u.opacity=(n==="fill"?a:t).opacity),s(u,a);var v=e.getModel("lineStyle"),c=v.getLineStyle();if(s(c,t),u.fill==="auto"&&(u.fill=a.fill),u.stroke==="auto"&&(u.stroke=a.fill),c.stroke==="auto"&&(c.stroke=a.fill),!i){var p=e.get("inactiveBorderWidth"),d=u[f];u.lineWidth=p==="auto"?a.lineWidth>0&&d?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),c.stroke=v.get("inactiveColor"),c.lineWidth=v.get("inactiveWidth")}return{itemStyle:u,lineStyle:c}}function I9(r){var e=r.icon||"roundRect",t=re(e,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return t.setStyle(r.itemStyle),t.rotation=(r.iconRotate||0)*Math.PI/180,t.setOrigin([r.itemWidth/2,r.itemHeight/2]),e.indexOf("empty")>-1&&(t.style.stroke=t.style.fill,t.style.fill="#fff",t.style.lineWidth=2),t}function lI(r,e,t,a){Em(r,e,t,a),t.dispatchAction({type:"legendToggleSelect",name:r!=null?r:e}),Rm(r,e,t,a)}function uI(r){for(var e=r.getZr().storage.getDisplayList(),t,a=0,n=e.length;an[o],g=[-c.x,-c.y];a||(g[i]=f[u]);var y=[0,0],m=[-p.x,-p.y],_=ft(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(d){var S=t.get("pageButtonPosition",!0);S==="end"?m[i]+=n[o]-p[o]:y[i]+=p[o]+_}m[1-i]+=c[s]/2-p[s]/2,f.setPosition(g),h.setPosition(y),v.setPosition(m);var b={x:0,y:0};if(b[o]=d?n[o]:c[o],b[s]=Math.max(c[s],p[s]),b[l]=Math.min(0,p[l]+m[1-i]),h.__rectSize=n[o],d){var x={x:0,y:0};x[o]=Math.max(n[o]-p[o]-_,0),x[s]=b[s],h.setClipPath(new bt({shape:x})),h.__rectSize=x[o]}else v.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(t);return w.pageIndex!=null&&At(f,{x:w.contentPosition[0],y:w.contentPosition[1]},d?t:null),this._updatePageInfoView(t,w),b},e.prototype._pageGo=function(t,a,n){var i=this._getPageInfo(a)[t];i!=null&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:a.id})},e.prototype._updatePageInfoView=function(t,a){var n=this._controllerGroup;A(["pagePrev","pageNext"],function(f){var h=f+"DataIndex",v=a[h]!=null,c=n.childOfName(f);c&&(c.setStyle("fill",v?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),c.cursor=v?"pointer":"default")});var i=n.childOfName("pageText"),o=t.get("pageFormatter"),s=a.pageIndex,l=s!=null?s+1:0,u=a.pageCount;i&&o&&i.setStyle("text",U(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(t){var a=t.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,o=t.getOrient().index,s=km[o],l=Om[o],u=this._findTargetItemIndex(a),f=n.children(),h=f[u],v=f.length,c=v?1:0,p={contentPosition:[n.x,n.y],pageCount:c,pageIndex:c-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return p;var d=S(h);p.contentPosition[o]=-d.s;for(var g=u+1,y=d,m=d,_=null;g<=v;++g)_=S(f[g]),(!_&&m.e>y.s+i||_&&!b(_,y.s))&&(m.i>y.i?y=m:y=_,y&&(p.pageNextDataIndex==null&&(p.pageNextDataIndex=y.i),++p.pageCount)),m=_;for(var g=u-1,y=d,m=d,_=null;g>=-1;--g)_=S(f[g]),(!_||!b(m,_.s))&&y.i=w&&x.s<=w+i}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var a,n=this.getContentGroup(),i;return n.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===t&&(a=s)}),a!=null?a:i},e.type="legend.scroll",e}(fI),N9=O9;function B9(r){r.registerAction("legendScroll","legendscroll",function(e,t){var a=e.scrollDataIndex;a!=null&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},function(n){n.setScrollDataIndex(a)})})}function V9(r){ct(hI),r.registerComponentModel(k9),r.registerComponentView(N9),B9(r)}function z9(r){ct(hI),ct(V9)}var G9=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.inside",e.defaultOption=cn(vu.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(vu),F9=G9,Nm=xt();function H9(r,e,t){Nm(r).coordSysRecordMap.each(function(a){var n=a.dataZoomInfoMap.get(e.uid);n&&(n.getRange=t)})}function W9(r,e){for(var t=Nm(r).coordSysRecordMap,a=t.keys(),n=0;na[t+e]&&(e=s),n=n&&o.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!n}}}function K9(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(e,t){var a=Nm(t),n=a.coordSysRecordMap||(a.coordSysRecordMap=q());n.each(function(i){i.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=fL(i);A(o.infoList,function(s){var l=s.model.uid,u=n.get(l)||n.set(l,U9(t,s.model)),f=u.dataZoomInfoMap||(u.dataZoomInfoMap=q());f.set(i.uid,{dzReferCoordSysInfo:s,model:i,getRange:null})})}),n.each(function(i){var o=i.controller,s,l=i.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){pI(n,i);return}var f=X9(l);o.enable(f.controlType,f.opt),o.setPointerChecker(i.containsPoint),Ho(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var q9=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return e.prototype.render=function(t,a,n){if(r.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),H9(n,t,{pan:Y(Bm.pan,this),zoom:Y(Bm.zoom,this),scrollMove:Y(Bm.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){W9(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(um),Bm={zoom:function(r,e,t,a){var n=this.range,i=n.slice(),o=r.axisModels[0];if(!!o){var s=Vm[e](null,[a.originX,a.originY],o,t,r),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(i[1]-i[0])+i[0],u=Math.max(1/a.scale,0);i[0]=(i[0]-l)*u+l,i[1]=(i[1]-l)*u+l;var f=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(ji(0,i,[0,100],0,f.minSpan,f.maxSpan),this.range=i,n[0]!==i[0]||n[1]!==i[1])return i}},pan:dI(function(r,e,t,a,n,i){var o=Vm[a]([i.oldX,i.oldY],[i.newX,i.newY],e,n,t);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:dI(function(r,e,t,a,n,i){var o=Vm[a]([0,0],[i.scrollDelta,i.scrollDelta],e,n,t);return o.signal*(r[1]-r[0])*i.scrollDelta})};function dI(r){return function(e,t,a,n){var i=this.range,o=i.slice(),s=e.axisModels[0];if(!!s){var l=r(o,s,e,t,a,n);if(ji(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var Vm={grid:function(r,e,t,a,n){var i=t.axis,o={},s=n.model.coordinateSystem.getRect();return r=r||[0,0],i.dim==="x"?(o.pixel=e[0]-r[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(r,e,t,a,n){var i=t.axis,o={},s=n.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return r=r?s.pointToCoord(r):[0,0],e=s.pointToCoord(e),t.mainType==="radiusAxis"?(o.pixel=e[0]-r[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=i.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=i.inverse?-1:1),o},singleAxis:function(r,e,t,a,n){var i=t.axis,o=n.model.coordinateSystem.getRect(),s={};return r=r||[0,0],i.orient==="horizontal"?(s.pixel=e[0]-r[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=e[1]-r[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}},j9=q9;function gI(r){fm(r),r.registerComponentModel(F9),r.registerComponentView(j9),K9(r)}var $9=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=cn(vu.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}(vu),Q9=$9,mu=bt,yI=7,J9=1,zm=30,tX=7,_u="horizontal",mI="vertical",eX=5,rX=["line","bar","candlestick","scatter"],aX={easing:"cubicOut",duration:100,delay:0},nX=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._displayables={},t}return e.prototype.init=function(t,a){this.api=a,this._onBrush=Y(this._onBrush,this),this._onBrushEnd=Y(this._onBrushEnd,this)},e.prototype.render=function(t,a,n,i){if(r.prototype.render.apply(this,arguments),Ho(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),t.get("show")===!1){this.group.removeAll();return}if(t.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!=="dataZoom"||i.from!==this.uid)&&this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){Sl(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var a=this._displayables.sliderGroup=new rt;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(a),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,a=this.api,n=t.get("brushSelect"),i=n?tX:0,o=this._findCoordRect(),s={width:a.getWidth(),height:a.getHeight()},l=this._orient===_u?{right:s.width-o.x-o.width,top:s.height-zm-yI-i,width:o.width,height:zm}:{right:yI,top:o.y,width:zm,height:o.height},u=Po(t.option);A(["right","top","width","height"],function(h){u[h]==="ph"&&(u[h]=l[h])});var f=oe(u,s);this._location={x:f.x,y:f.y},this._size=[f.width,f.height],this._orient===mI&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,a=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(n===_u&&!o?{scaleY:l?1:-1,scaleX:1}:n===_u&&o?{scaleY:l?1:-1,scaleX:-1}:n===mI&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=t.getBoundingRect([s]);t.x=a.x-u.x,t.y=a.y-u.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,a=this._size,n=this._displayables.sliderGroup,i=t.get("brushSelect");n.add(new mu({silent:!0,shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var o=new mu({shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:"transparent"},z2:0,onclick:Y(this._onClickPanel,this)}),s=this.api.getZr();i?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),n.add(o)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!t)return;var a=this._size,n=this._shadowSize||[],i=t.series,o=i.getRawData(),s=i.getShadowDim&&i.getShadowDim(),l=s&&o.getDimensionInfo(s)?i.getShadowDim():t.otherDim;if(l==null)return;var u=this._shadowPolygonPts,f=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||a[0]!==n[0]||a[1]!==n[1]){var h=o.getDataExtent(l),v=(h[1]-h[0])*.3;h=[h[0]-v,h[1]+v];var c=[0,a[1]],p=[0,a[0]],d=[[a[0],0],[0,0]],g=[],y=p[1]/(o.count()-1),m=0,_=Math.round(o.count()/a[0]),S;o.each([l],function(C,M){if(_>0&&M%_){m+=y;return}var D=C==null||isNaN(C)||C==="",L=D?0:Pt(C,h,c,!0);D&&!S&&M?(d.push([d[d.length-1][0],0]),g.push([g[g.length-1][0],0])):!D&&S&&(d.push([m,0]),g.push([m,0])),d.push([m,L]),g.push([m,L]),m+=y,S=D}),u=this._shadowPolygonPts=d,f=this._shadowPolylinePts=g}this._shadowData=o,this._shadowDim=l,this._shadowSize=[a[0],a[1]];var b=this.dataZoomModel;function x(C){var M=b.getModel(C?"selectedDataBackground":"dataBackground"),D=new rt,L=new Ye({shape:{points:u},segmentIgnoreThreshold:1,style:M.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),I=new Ze({shape:{points:f},segmentIgnoreThreshold:1,style:M.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return D.add(L),D.add(I),D}for(var w=0;w<3;w++){var T=x(w===1);this._displayables.sliderGroup.add(T),this._displayables.dataShadowSegs.push(T)}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,a=t.get("showDataShadow");if(a!==!1){var n,i=this.ecModel;return t.eachTargetAxis(function(o,s){var l=t.getAxisProxy(o,s).getTargetSeriesModels();A(l,function(u){if(!n&&!(a!==!0&&st(rX,u.get("type"))<0)){var f=i.getComponent(In(o),s).axis,h=iX(o),v,c=u.coordinateSystem;h!=null&&c.getOtherAxis&&(v=c.getOtherAxis(f).inverse),h=u.getData().mapDimension(h),n={thisAxis:f,series:u,thisDim:o,otherDim:h,otherAxisInverse:v}}},this)},this),n}},e.prototype._renderHandle=function(){var t=this.group,a=this._displayables,n=a.handles=[null,null],i=a.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,f=l.get("borderRadius")||0,h=l.get("brushSelect"),v=a.filler=new mu({silent:h,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(v),o.add(new mu({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:f},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:J9,fill:"rgba(0,0,0,0)"}})),A([0,1],function(_){var S=l.get("handleIcon");!rh[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var b=re(S,-1,0,2,2,null,!0);b.attr({cursor:_I(this._orient),draggable:!0,drift:Y(this._onDragMove,this,_),ondragend:Y(this._onDragEnd,this),onmouseover:Y(this._showDataInfo,this,!0),onmouseout:Y(this._showDataInfo,this,!1),z2:5});var x=b.getBoundingRect(),w=l.get("handleSize");this._handleHeight=H(w,this._size[1]),this._handleWidth=x.width/x.height*this._handleHeight,b.setStyle(l.getModel("handleStyle").getItemStyle()),b.style.strokeNoScale=!0,b.rectHover=!0,b.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),di(b);var T=l.get("handleColor");T!=null&&(b.style.fill=T),o.add(n[_]=b);var C=l.getModel("textStyle");t.add(i[_]=new Ct({silent:!0,invisible:!0,style:Bt(C,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:C.getTextColor(),font:C.getFont()}),z2:10}))},this);var c=v;if(h){var p=H(l.get("moveHandleSize"),s[1]),d=a.moveHandle=new bt({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:p}}),g=p*.8,y=a.moveHandleIcon=re(l.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);y.silent=!0,y.y=s[1]+p/2-.5,d.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(s[1]/2,Math.max(p,10));c=a.moveZone=new bt({invisible:!0,shape:{y:s[1]-m,height:p+m}}),c.on("mouseover",function(){u.enterEmphasis(d)}).on("mouseout",function(){u.leaveEmphasis(d)}),o.add(d),o.add(y),o.add(c)}c.attr({draggable:!0,cursor:_I(this._orient),drift:Y(this._onDragMove,this,"all"),ondragstart:Y(this._showDataInfo,this,!0),ondragend:Y(this._onDragEnd,this),onmouseover:Y(this._showDataInfo,this,!0),onmouseout:Y(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),a=this._getViewExtent();this._handleEnds=[Pt(t[0],[0,100],a,!0),Pt(t[1],[0,100],a,!0)]},e.prototype._updateInterval=function(t,a){var n=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),s=n.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];ji(a,i,o,n.get("zoomLock")?"all":t,s.minSpan!=null?Pt(s.minSpan,l,o,!0):null,s.maxSpan!=null?Pt(s.maxSpan,l,o,!0):null);var u=this._range,f=this._range=pr([Pt(i[0],o,l,!0),Pt(i[1],o,l,!0)]);return!u||u[0]!==f[0]||u[1]!==f[1]},e.prototype._updateView=function(t){var a=this._displayables,n=this._handleEnds,i=pr(n.slice()),o=this._size;A([0,1],function(c){var p=a.handles[c],d=this._handleHeight;p.attr({scaleX:d/2,scaleY:d/2,x:n[c]+(c?-1:1),y:o[1]/2-d/2})},this),a.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var s={x:i[0],width:i[1]-i[0]};a.moveHandle&&(a.moveHandle.setShape(s),a.moveZone.setShape(s),a.moveZone.getBoundingRect(),a.moveHandleIcon&&a.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=a.dataShadowSegs,u=[0,i[0],i[1],o[0]],f=0;fa[0]||n[1]<0||n[1]>a[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,s=this._updateInterval("all",n[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var a=t.offsetX,n=t.offsetY;this._brushStart=new lt(a,n),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(!!this._brushing){var a=this._displayables.brushRect;if(this._brushing=!1,!!a){a.attr("ignore",!0);var n=a.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(n.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=pr([Pt(n.x,o,s,!0),Pt(n.x+n.width,o,s,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(Ta(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,a){var n=this._displayables,i=this.dataZoomModel,o=n.brushRect;o||(o=n.brushRect=new mu({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(t,a),f=l.transformCoordToLocal(s.x,s.y),h=this._size;u[0]=Math.max(Math.min(h[0],u[0]),0),o.setShape({x:f[0],y:0,width:u[0]-f[0],height:h[1]})},e.prototype._dispatchZoomAction=function(t){var a=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?aX:null,start:a[0],end:a[1]})},e.prototype._findCoordRect=function(){var t,a=fL(this.dataZoomModel).infoList;if(!t&&a.length){var n=a[0].model.coordinateSystem;t=n.getRect&&n.getRect()}if(!t){var i=this.api.getWidth(),o=this.api.getHeight();t={x:i*.2,y:o*.2,width:i*.6,height:o*.6}}return t},e.type="dataZoom.slider",e}(um);function iX(r){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[r]}function _I(r){return r==="vertical"?"ns-resize":"ew-resize"}var oX=nX;function SI(r){r.registerComponentModel(Q9),r.registerComponentView(oX),fm(r)}function sX(r){ct(gI),ct(SI)}var lX={get:function(r,e,t){var a=tt((uX[r]||{})[e]);return t&&z(a)?a[a.length-1]:a}},uX={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},xI=lX,bI=we.mapVisual,fX=we.eachVisual,hX=z,wI=A,vX=pr,cX=Pt,pX=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.stateList=["inRange","outOfRange"],t.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],t.layoutMode={type:"box",ignoreSize:!0},t.dataBound=[-Infinity,Infinity],t.targetVisuals={},t.controllerVisuals={},t}return e.prototype.init=function(t,a,n){this.mergeDefaultAndTheme(t,n)},e.prototype.optionUpdated=function(t,a){var n=this.option;!a&&GL(n,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var a=this.stateList;t=Y(t,this),this.controllerVisuals=_m(this.option.controller,a,t),this.targetVisuals=_m(this.option.target,a,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,a=[];return t==null||t==="all"?this.ecModel.eachSeries(function(n,i){a.push(i)}):a=Ot(t),a},e.prototype.eachTargetSeries=function(t,a){A(this.getTargetSeriesIndices(),function(n){var i=this.ecModel.getSeriesByIndex(n);i&&t.call(a,i)},this)},e.prototype.isTargetSeries=function(t){var a=!1;return this.eachTargetSeries(function(n){n===t&&(a=!0)}),a},e.prototype.formatValueText=function(t,a,n){var i=this.option,o=i.precision,s=this.dataBound,l=i.formatter,u;n=n||["<",">"],z(t)&&(t=t.slice(),u=!0);var f=a?t:u?[h(t[0]),h(t[1])]:h(t);if(U(l))return l.replace("{value}",u?f[0]:f).replace("{value2}",u?f[1]:f);if($(l))return u?l(t[0],t[1]):l(t);if(u)return t[0]===s[0]?n[0]+" "+f[1]:t[1]===s[1]?n[1]+" "+f[0]:f[0]+" - "+f[1];return f;function h(v){return v===s[0]?"min":v===s[1]?"max":(+v).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,a=vX([t.min,t.max]);this._dataExtent=a},e.prototype.getDataDimensionIndex=function(t){var a=this.option.dimension;if(a!=null)return t.getDimensionIndex(a);for(var n=t.dimensions,i=n.length-1;i>=0;i--){var o=n[i],s=t.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,a=this.option,n={inRange:a.inRange,outOfRange:a.outOfRange},i=a.target||(a.target={}),o=a.controller||(a.controller={});ot(i,n),ot(o,n);var s=this.isCategory();l.call(this,i),l.call(this,o),u.call(this,i,"inRange","outOfRange"),f.call(this,o);function l(h){hX(a.color)&&!h.inRange&&(h.inRange={color:a.color.slice().reverse()}),h.inRange=h.inRange||{color:t.get("gradientColor")}}function u(h,v,c){var p=h[v],d=h[c];p&&!d&&(d=h[c]={},wI(p,function(g,y){if(!!we.isValidType(y)){var m=xI.get(y,"inactive",s);m!=null&&(d[y]=m,y==="color"&&!d.hasOwnProperty("opacity")&&!d.hasOwnProperty("colorAlpha")&&(d.opacity=[0,0]))}}))}function f(h){var v=(h.inRange||{}).symbol||(h.outOfRange||{}).symbol,c=(h.inRange||{}).symbolSize||(h.outOfRange||{}).symbolSize,p=this.get("inactiveColor"),d=this.getItemSymbol(),g=d||"roundRect";wI(this.stateList,function(y){var m=this.itemSize,_=h[y];_||(_=h[y]={color:s?p:[p]}),_.symbol==null&&(_.symbol=v&&tt(v)||(s?g:[g])),_.symbolSize==null&&(_.symbolSize=c&&tt(c)||(s?m[0]:[m[0],m[0]])),_.symbol=bI(_.symbol,function(x){return x==="none"?g:x});var S=_.symbolSize;if(S!=null){var b=-Infinity;fX(S,function(x){x>b&&(b=x)}),_.symbolSize=bI(S,function(x){return cX(x,[0,b],[0,m[0]],!0)})}},this)}},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},e}(Mt),Mv=pX,TI=[20,140],dX=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(t,a){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(n){n.mappingMethod="linear",n.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){r.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=TI[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=TI[1])},e.prototype._resetRange=function(){var t=this.getExtent(),a=this.option.range;!a||a.auto?(t.auto=1,this.option.range=t):z(a)&&(a[0]>a[1]&&a.reverse(),a[0]=Math.max(a[0],t[0]),a[1]=Math.min(a[1],t[1]))},e.prototype.completeVisualOption=function(){r.prototype.completeVisualOption.apply(this,arguments),A(this.stateList,function(t){var a=this.option.controller[t].symbolSize;a&&a[0]!==a[1]&&(a[0]=a[1]/3)},this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),a=pr((this.get("range")||[]).slice());return a[0]>t[1]&&(a[0]=t[1]),a[1]>t[1]&&(a[1]=t[1]),a[0]=n[1]||t<=a[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var a=[];return this.eachTargetSeries(function(n){var i=[],o=n.getData();o.each(this.getDataDimensionIndex(o),function(s,l){t[0]<=s&&s<=t[1]&&i.push(l)},this),a.push({seriesId:n.id,dataIndex:i})},this),a},e.prototype.getVisualMeta=function(t){var a=CI(this,"outOfRange",this.getExtent()),n=CI(this,"inRange",this.option.range.slice()),i=[];function o(c,p){i.push({value:c,color:t(c,p)})}for(var s=0,l=0,u=n.length,f=a.length;lt[1])break;i.push({color:this.getControllerVisual(l,"color",a),offset:s/n})}return i.push({color:this.getControllerVisual(t[1],"color",a),offset:1}),i},e.prototype._createBarPoints=function(t,a){var n=this.visualMapModel.itemSize;return[[n[0]-a[0],t[0]],[n[0],t[0]],[n[0],t[1]],[n[0]-a[1],t[1]]]},e.prototype._createBarGroup=function(t){var a=this._orient,n=this.visualMapModel.get("inverse");return new rt(a==="horizontal"&&!n?{scaleX:t==="bottom"?1:-1,rotation:Math.PI/2}:a==="horizontal"&&n?{scaleX:t==="bottom"?-1:1,rotation:-Math.PI/2}:a==="vertical"&&!n?{scaleX:t==="left"?1:-1,scaleY:-1}:{scaleX:t==="left"?1:-1})},e.prototype._updateHandle=function(t,a){if(!!this._useHandle){var n=this._shapes,i=this.visualMapModel,o=n.handleThumbs,s=n.handleLabels,l=i.itemSize,u=i.getExtent();mX([0,1],function(f){var h=o[f];h.setStyle("fill",a.handlesColor[f]),h.y=t[f];var v=ya(t[f],[0,l[1]],u,!0),c=this.getControllerVisual(v,"symbolSize");h.scaleX=h.scaleY=c/l[0],h.x=l[0]-c/2;var p=Gr(n.handleLabelPoints[f],Di(h,this.group));s[f].setStyle({x:p[0],y:p[1],text:i.formatValueText(this._dataInterval[f]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",n.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(t,a,n,i){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],f=this._shapes,h=f.indicator;if(!!h){h.attr("invisible",!1);var v={convertOpacityToAlpha:!0},c=this.getControllerVisual(t,"color",v),p=this.getControllerVisual(t,"symbolSize"),d=ya(t,s,u,!0),g=l[0]-p/2,y={x:h.x,y:h.y};h.y=d,h.x=g;var m=Gr(f.indicatorLabelPoint,Di(h,this.group)),_=f.indicatorLabel;_.attr("invisible",!1);var S=this._applyTransform("left",f.mainGroup),b=this._orient,x=b==="horizontal";_.setStyle({text:(n||"")+o.formatValueText(a),verticalAlign:x?S:"middle",align:x?"center":S});var w={x:g,y:d,style:{fill:c}},T={style:{x:m[0],y:m[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var C={duration:100,easing:"cubicInOut",additive:!0};h.x=y.x,h.y=y.y,h.animateTo(w,C),_.animateTo(T,C)}else h.attr(w),_.attr(T);this._firstShowIndicator=!1;var M=this._shapes.handleLabels;if(M)for(var D=0;Do[1]&&(h[1]=Infinity),a&&(h[0]===-Infinity?this._showIndicator(f,h[1],"< ",l):h[1]===Infinity?this._showIndicator(f,h[0],"> ",l):this._showIndicator(f,f,"\u2248 ",l));var v=this._hoverLinkDataIndices,c=[];(a||PI(n))&&(c=this._hoverLinkDataIndices=n.findTargetDataIndices(h));var p=rR(v,c);this._dispatchHighDown("downplay",Dv(p[0],n)),this._dispatchHighDown("highlight",Dv(p[1],n))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var a;if(Li(t.target,function(l){var u=nt(l);if(u.dataIndex!=null)return a=u,!0},!0),!!a){var n=this.ecModel.getSeriesByIndex(a.seriesIndex),i=this.visualMapModel;if(!!i.isTargetSeries(n)){var o=n.getData(a.dataType),s=o.getStore().get(i.getDataDimensionIndex(o),a.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var a=this._shapes.handleLabels;if(a)for(var n=0;n=0&&(i.dimension=o,a.push(i))}}),r.getData().setVisual("visualMeta",a)}}];function MX(r,e,t,a){for(var n=e.targetVisuals[a],i=we.prepareVisualTypes(n),o={color:wl(r.getData(),"color")},s=0,l=i.length;s0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),r.registerAction(TX,CX),A(AX,function(e){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,e)}),r.registerPreprocessor(DX))}function NI(r){r.registerComponentModel(gX),r.registerComponentView(wX),OI(r)}var LX=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._pieceList=[],t}return e.prototype.optionUpdated=function(t,a){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var n=this._mode=this._determineMode();this._pieceList=[],IX[this._mode].call(this,this._pieceList),this._resetSelected(t,a);var i=this.option.categories;this.resetVisual(function(o,s){n==="categories"?(o.mappingMethod="category",o.categories=tt(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=G(this._pieceList,function(l){return l=tt(l),s!=="inRange"&&(l.visual=null),l}))})},e.prototype.completeVisualOption=function(){var t=this.option,a={},n=we.listVisualTypes(),i=this.isCategory();A(t.pieces,function(s){A(n,function(l){s.hasOwnProperty(l)&&(a[l]=1)})}),A(a,function(s,l){var u=!1;A(this.stateList,function(f){u=u||o(t,f,l)||o(t.target,f,l)},this),!u&&A(this.stateList,function(f){(t[f]||(t[f]={}))[l]=xI.get(l,f==="inRange"?"active":"inactive",i)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}r.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,a){var n=this.option,i=this._pieceList,o=(a?n:t).selected||{};if(n.selected=o,A(i,function(l,u){var f=this.getSelectedMapKey(l);o.hasOwnProperty(f)||(o[f]=!0)},this),n.selectedMode==="single"){var s=!1;A(i,function(l,u){var f=this.getSelectedMapKey(l);o[f]&&(s?o[f]=!1:s=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return this._mode==="categories"?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=tt(t)},e.prototype.getValueState=function(t){var a=we.findPieceIndex(t,this._pieceList);return a!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[a])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var a=[],n=this._pieceList;return this.eachTargetSeries(function(i){var o=[],s=i.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var f=we.findPieceIndex(l,n);f===t&&o.push(u)},this),a.push({seriesId:i.id,dataIndex:o})},this),a},e.prototype.getRepresentValue=function(t){var a;if(this.isCategory())a=t.value;else if(t.value!=null)a=t.value;else{var n=t.interval||[];a=n[0]===-Infinity&&n[1]===Infinity?0:(n[0]+n[1])/2}return a},e.prototype.getVisualMeta=function(t){if(this.isCategory())return;var a=[],n=["",""],i=this;function o(f,h){var v=i.getRepresentValue({interval:f});h||(h=i.getValueState(v));var c=t(v,h);f[0]===-Infinity?n[0]=c:f[1]===Infinity?n[1]=c:a.push({value:f[0],color:c},{value:f[1],color:c})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-Infinity,Infinity]});else{var l=s[0].interval[0];l!==-Infinity&&s.unshift({interval:[-Infinity,l]}),l=s[s.length-1].interval[1],l!==Infinity&&s.push({interval:[l,Infinity]})}var u=-Infinity;return A(s,function(f){var h=f.interval;h&&(h[0]>u&&o([u,h[0]],"outOfRange"),o(h.slice()),u=h[1])},this),{stops:a,outerColors:n}},e.type="visualMap.piecewise",e.defaultOption=cn(Mv.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e}(Mv),IX={splitNumber:function(r){var e=this.option,t=Math.min(e.precision,20),a=this.getExtent(),n=e.splitNumber;n=Math.max(parseInt(n,10),1),e.splitNumber=n;for(var i=(a[1]-a[0])/n;+i.toFixed(t)!==i&&t<5;)t++;e.precision=t,i=+i.toFixed(t),e.minOpen&&r.push({interval:[-Infinity,a[0]],close:[0,0]});for(var o=0,s=a[0];o","\u2265"][a[0]]];t.text=t.text||this.formatValueText(t.value!=null?t.value:t.interval,!1,n)},this)}};function BI(r,e){var t=r.inverse;(r.orient==="vertical"?!t:t)&&e.reverse()}var PX=LX,RX=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.doRender=function(){var t=this.group;t.removeAll();var a=this.visualMapModel,n=a.get("textGap"),i=a.textStyleModel,o=i.getFont(),s=i.getTextColor(),l=this._getItemAlign(),u=a.itemSize,f=this._getViewData(),h=f.endsText,v=ce(a.get("showLabel",!0),!h);h&&this._renderEndsText(t,h[0],u,v,l),A(f.viewPieceList,function(c){var p=c.piece,d=new rt;d.onclick=Y(this._onItemClick,this,p),this._enableHoverLink(d,c.indexInModelPieceList);var g=a.getRepresentValue(p);if(this._createItemSymbol(d,g,[0,0,u[0],u[1]]),v){var y=this.visualMapModel.getValueState(g);d.add(new Ct({style:{x:l==="right"?-n:u[0]+n,y:u[1]/2,text:p.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:y==="outOfRange"?.5:1}}))}t.add(d)},this),h&&this._renderEndsText(t,h[1],u,v,l),xi(a.get("orient"),t,a.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,a){var n=this;t.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(o){var s=n.visualMapModel;s.option.hoverLink&&n.api.dispatchAction({type:o,batch:Dv(s.findTargetDataIndices(a),s)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,a=t.option;if(a.orient==="vertical")return DI(t,this.api,t.itemSize);var n=a.align;return(!n||n==="auto")&&(n="left"),n},e.prototype._renderEndsText=function(t,a,n,i,o){if(!!a){var s=new rt,l=this.visualMapModel.textStyleModel;s.add(new Ct({style:Bt(l,{x:i?o==="right"?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?o:"center",text:a})})),t.add(s)}},e.prototype._getViewData=function(){var t=this.visualMapModel,a=G(t.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),n=t.get("text"),i=t.get("orient"),o=t.get("inverse");return(i==="horizontal"?o:!o)?a.reverse():n&&(n=n.slice().reverse()),{viewPieceList:a,endsText:n}},e.prototype._createItemSymbol=function(t,a,n){t.add(re(this.getControllerVisual(a,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(a,"color")))},e.prototype._onItemClick=function(t){var a=this.visualMapModel,n=a.option,i=n.selectedMode;if(!!i){var o=tt(n.selected),s=a.getSelectedMapKey(t);i==="single"||i===!0?(o[s]=!0,A(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},e.type="visualMap.piecewise",e}(AI),EX=RX;function VI(r){r.registerComponentModel(PX),r.registerComponentView(EX),OI(r)}function kX(r){ct(NI),ct(VI)}var OX={label:{enabled:!0},decal:{show:!1}},zI=xt(),NX={};function BX(r,e){var t=r.getModel("aria");if(!t.get("enabled"))return;var a=tt(OX);ot(a.label,r.getLocaleModel().get("aria"),!1),ot(t.option,a,!1),n(),i();function n(){var u=t.getModel("decal"),f=u.get("show");if(f){var h=q();r.eachSeries(function(v){if(!v.isColorBySeries()){var c=h.get(v.type);c||(c={},h.set(v.type,c)),zI(v).scope=c}}),r.eachRawSeries(function(v){if(r.isSeriesFiltered(v))return;if($(v.enableAriaDecal)){v.enableAriaDecal();return}var c=v.getData();if(v.isColorBySeries()){var m=Pp(v.ecModel,v.name,NX,r.getSeriesCount()),_=c.getVisual("decal");c.setVisual("decal",S(_,m))}else{var p=v.getRawData(),d={},g=zI(v).scope;c.each(function(b){var x=c.getRawIndex(b);d[x]=b});var y=p.count();p.each(function(b){var x=d[b],w=p.getName(b)||b+"",T=Pp(v.ecModel,w,g,y),C=c.getItemVisual(x,"decal");c.setItemVisual(x,"decal",S(C,T))})}function S(b,x){var w=b?B(B({},x),b):x;return w.dirty=!0,w}})}}function i(){var u=r.getLocaleModel().get("aria"),f=t.getModel("label");if(f.option=K(f.option,u),!!f.get("enabled")){var h=e.getZr().dom;if(f.get("description")){h.setAttribute("aria-label",f.get("description"));return}var v=r.getSeriesCount(),c=f.get(["data","maxCount"])||10,p=f.get(["series","maxCount"])||10,d=Math.min(v,p),g;if(!(v<1)){var y=s();if(y){var m=f.get(["general","withTitle"]);g=o(m,{title:y})}else g=f.get(["general","withoutTitle"]);var _=[],S=v>1?f.get(["series","multiple","prefix"]):f.get(["series","single","prefix"]);g+=o(S,{seriesCount:v}),r.eachSeries(function(T,C){if(C1?f.get(["series","multiple",L]):f.get(["series","single",L]),M=o(M,{seriesId:T.seriesIndex,seriesName:T.get("name"),seriesType:l(T.subType)});var I=T.getData();if(I.count()>c){var P=f.get(["data","partialData"]);M+=o(P,{displayCnt:c})}else M+=f.get(["data","allData"]);for(var R=f.get(["data","separator","middle"]),E=f.get(["data","separator","end"]),N=[],O=0;O":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},GX=function(){function r(e){var t=this._condVal=U(e)?new RegExp(e):hP(e)?e:null;if(t==null){var a="";Lt(a)}}return r.prototype.evaluate=function(e){var t=typeof e;return U(t)?this._condVal.test(e):Tt(t)?this._condVal.test(e+""):!1},r}(),FX=function(){function r(){}return r.prototype.evaluate=function(){return this.value},r}(),HX=function(){function r(){}return r.prototype.evaluate=function(){for(var e=this.children,t=0;t2&&a.push(n),n=[I,P]}function f(I,P,R,E){ds(I,R)&&ds(P,E)||n.push(I,P,R,E,R,E)}function h(I,P,R,E,N,O){var V=Math.abs(P-I),F=Math.tan(V/4)*4/3,W=PT:D2&&a.push(n),a}function Wm(r,e,t,a,n,i,o,s,l,u){if(ds(r,t)&&ds(e,a)&&ds(n,o)&&ds(i,s)){l.push(o,s);return}var f=2/u,h=f*f,v=o-r,c=s-e,p=Math.sqrt(v*v+c*c);v/=p,c/=p;var d=t-r,g=a-e,y=n-o,m=i-s,_=d*d+g*g,S=y*y+m*m;if(_=0&&T=0){l.push(o,s);return}var C=[],M=[];an(r,t,n,o,.5,C),an(e,a,i,s,.5,M),Wm(C[0],M[0],C[1],M[1],C[2],M[2],C[3],M[3],l,u),Wm(C[4],M[4],C[5],M[5],C[6],M[6],C[7],M[7],l,u)}function rK(r,e){var t=Hm(r),a=[];e=e||1;for(var n=0;n0)for(var u=0;uMath.abs(u),h=WI([l,u],f?0:1,e),v=(f?s:u)/h.length,c=0;cn,o=WI([a,n],i?0:1,e),s=i?"width":"height",l=i?"height":"width",u=i?"x":"y",f=i?"y":"x",h=r[s]/o.length,v=0;v1?null:new lt(d*l+r,d*u+e)}function iK(r,e,t){var a=new lt;lt.sub(a,t,e),a.normalize();var n=new lt;lt.sub(n,r,e);var i=n.dot(a);return i}function gs(r,e){var t=r[r.length-1];t&&t[0]===e[0]&&t[1]===e[1]||r.push(e)}function oK(r,e,t){for(var a=r.length,n=[],i=0;io?(u.x=f.x=s+i/2,u.y=l,f.y=l+o):(u.y=f.y=l+o/2,u.x=s,f.x=s+i),oK(e,u,f)}function Lv(r,e,t,a){if(t===1)a.push(e);else{var n=Math.floor(t/2),i=r(e);Lv(r,i[0],n,a),Lv(r,i[1],t-n,a)}return a}function sK(r,e){for(var t=[],a=0;a0)for(var b=a/t,x=-a/2;x<=a/2;x+=b){for(var w=Math.sin(x),T=Math.cos(x),C=0,_=0;_=0}var qI="__mOriginal_";function Pv(r,e,t){var a=qI+e,n=r[a]||r[e];r[a]||(r[a]=r[e]);var i=t.replace,o=t.after,s=t.before;r[e]=function(){var l=arguments,u;return s&&s.apply(this,l),i?u=i.apply(this,l):u=n.apply(this,l),o&&o.apply(this,l),u}}function Su(r,e){var t=qI+e;r[t]&&(r[e]=r[t],r[t]=null)}function jI(r,e){for(var t=0;t0;u/=2){var f=0,h=0;(r&u)>0&&(f=1),(e&u)>0&&(h=1),s+=u*u*(3*f^h),h===0&&(f===1&&(r=u-1-r,e=u-1-e),l=r,r=e,e=l)}return s}function Rv(r){var e=Infinity,t=Infinity,a=-Infinity,n=-Infinity,i=G(r,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),f=l.x+l.width/2+(u?u[4]:0),h=l.y+l.height/2+(u?u[5]:0);return e=Math.min(f,e),t=Math.min(h,t),a=Math.max(f,a),n=Math.max(h,n),[f,h]}),o=G(i,function(s,l){return{cp:s,z:gK(s[0],s[1],e,t,a,n),path:r[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function QI(r){return fK(r.path,r.count)}function Ym(){return{fromIndividuals:[],toIndividuals:[],count:0}}function yK(r,e,t){var a=[];function n(b){for(var x=0;x=0;n--)if(!t[n].many.length){var l=t[s].many;if(l.length<=1)if(s)s=0;else return t;var i=l.length,u=Math.ceil(i/2);t[n].many=l.slice(u,i),t[s].many=l.slice(0,u),s++}return t}var _K={clone:function(r){for(var e=[],t=1-Math.pow(1-r.path.style.opacity,1/r.count),a=0;a0))return;var s=a.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,f;JI(r)&&(u=r,f=e),JI(e)&&(u=e,f=r);function h(y,m,_,S,b){var x=y.many,w=y.one;if(x.length===1&&!b){var T=m?x[0]:w,C=m?w:x[0];if(Iv(T))h({many:[T],one:C},!0,_,S,!0);else{var M=s?K({delay:s(_,S)},l):l;Um(T,C,M),i(T,C,T,C,M)}}else for(var D=K({dividePath:_K[t],individualDelay:s&&function(N,O,V,F){return s(N+_,S)}},l),L=m?yK(x,w,D):mK(w,x,D),I=L.fromIndividuals,P=L.toIndividuals,R=I.length,E=0;Ee.length,c=u?tP(f,u):tP(v?e:r,[v?r:e]),p=0,d=0;deP))for(var n=a.getIndices(),i=xK(a),o=0;o0&&S.group.traverse(function(x){x instanceof pt&&!x.animators.length&&x.animateFrom({style:{opacity:0}},b)})})}function nP(r){var e=r.getModel("universalTransition").get("seriesKey");return e||r.id}function iP(r){return z(r)?r.sort().join(","):r}function En(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function TK(r,e){var t=q(),a=q(),n=q();A(r.oldSeries,function(o,s){var l=r.oldDataGroupIds[s],u=r.oldData[s],f=nP(o),h=iP(f);a.set(h,{dataGroupId:l,data:u}),z(f)&&A(f,function(v){n.set(v,{key:h,dataGroupId:l,data:u})})});function i(o){t.get(o)&&Ok("Duplicated seriesKey in universalTransition "+o)}return A(e.updatedSeries,function(o){if(o.isUniversalTransitionEnabled()&&o.isAnimationEnabled()){var s=o.get("dataGroupId"),l=o.getData(),u=nP(o),f=iP(u),h=a.get(f);if(h)t.set(f,{oldSeries:[{dataGroupId:h.dataGroupId,divide:En(h.data),data:h.data}],newSeries:[{dataGroupId:s,divide:En(l),data:l}]});else if(z(u)){var v=[];A(u,function(d){var g=a.get(d);g.data&&v.push({dataGroupId:g.dataGroupId,divide:En(g.data),data:g.data})}),v.length&&t.set(f,{oldSeries:v,newSeries:[{dataGroupId:s,data:l,divide:En(l)}]})}else{var c=n.get(u);if(c){var p=t.get(c.key);p||(p={oldSeries:[{dataGroupId:c.dataGroupId,data:c.data,divide:En(c.data)}],newSeries:[]},t.set(c.key,p)),p.newSeries.push({dataGroupId:s,data:l,divide:En(l)})}}}}),t}function oP(r,e){for(var t=0;t=0&&n.push({dataGroupId:e.oldDataGroupIds[s],data:e.oldData[s],divide:En(e.oldData[s]),dim:o.dimension})}),A(Ot(r.to),function(o){var s=oP(t.updatedSeries,o);if(s>=0){var l=t.updatedSeries[s].getData();i.push({dataGroupId:e.oldDataGroupIds[s],data:l,divide:En(l),dim:o.dimension})}}),n.length>0&&i.length>0&&aP(n,i,a)}function AK(r){r.registerUpdateLifecycle("series:beforeupdate",function(e,t,a){A(Ot(a.seriesTransition),function(n){A(Ot(n.to),function(i){for(var o=a.updatedSeries,s=0;s",y=h.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t,u)?this._updatePosition(s,c,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],c,null,v)})},e.prototype._showSeriesItemTooltip=function(t,a,n){var i=this._ecModel,o=nt(a),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,h=o.dataType,v=u.getData(h),c=this._renderMode,p=t.positionDefault,d=cu([v.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),g=d.get("trigger");if(!(g!=null&&g!=="item")){var y=u.getDataParams(f,h),m=new Xp;y.marker=m.makeTooltipMarker("item",_i(y.color),c);var _=NS(u.formatTooltip(f,!1,h)),S=d.get("order"),b=d.get("valueFormatter"),x=_.frag,w=x?ex(b?B({valueFormatter:b},x):x,m,c,S,i.get("useUTC"),d.get("textStyle")):_.text,T="item_"+u.name+"_"+f;this._showOrMove(d,function(){this._showTooltipContent(d,w,y,T,t.offsetX,t.offsetY,t.position,t.target,m)}),n({type:"showTip",dataIndexInside:f,dataIndex:v.getRawIndex(f),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,a,n){var i=nt(a),o=i.tooltipConfig,s=o.option||{};if(U(s)){var l=s;s={content:l,formatter:l}}var u=[s],f=this._ecModel.getComponent(i.componentMainType,i.componentIndex);f&&u.push(f),u.push({formatter:s.content});var h=t.positionDefault,v=cu(u,this._tooltipModel,h?{position:h}:null),c=v.get("content"),p=Math.random()+"",d=new Xp;this._showOrMove(v,function(){var g=tt(v.get("formatterParams")||{});this._showTooltipContent(v,c,g,p,t.offsetX,t.offsetY,t.position,a,d)}),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,a,n,i,o,s,l,u,f){if(this._ticket="",!(!t.get("showContent")||!t.get("show"))){var h=this._tooltipContent;h.setEnterable(t.get("enterable"));var v=t.get("formatter");l=l||t.get("position");var c=a,p=this._getNearestPoint([o,s],n,t.get("trigger"),t.get("borderColor")),d=p.color;if(v)if(U(v)){var g=t.ecModel.get("useUTC"),y=z(n)?n[0]:n,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;c=v,m&&(c=Tf(y.axisValue,c,g)),c=j1(c,n,!0)}else if($(v)){var _=Y(function(S,b){S===this._ticket&&(h.setContent(b,f,t,d,l),this._updatePosition(t,l,o,s,h,n,u))},this);this._ticket=i,c=v(n,i,_)}else c=v;h.setContent(c,f,t,d,l),h.show(t,d),this._updatePosition(t,l,o,s,h,n,u)}},e.prototype._getNearestPoint=function(t,a,n,i){if(n==="axis"||z(a))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!z(a))return{color:i||a.color||a.borderColor}},e.prototype._updatePosition=function(t,a,n,i,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();a=a||t.get("position");var h=o.getSize(),v=t.get("align"),c=t.get("verticalAlign"),p=l&&l.getBoundingRect().clone();if(l&&p.applyTransform(l.transform),$(a)&&(a=a([n,i],s,o.el,p,{viewSize:[u,f],contentSize:h.slice()})),z(a))n=H(a[0],u),i=H(a[1],f);else if(et(a)){var d=a;d.width=h[0],d.height=h[1];var g=oe(d,{width:u,height:f});n=g.x,i=g.y,v=null,c=null}else if(U(a)&&l){var y=v7(a,p,h,t.get("borderWidth"));n=y[0],i=y[1]}else{var y=f7(n,i,o,u,f,v?null:20,c?null:20);n=y[0],i=y[1]}if(v&&(n-=BL(v)?h[0]/2:v==="right"?h[0]:0),c&&(i-=BL(c)?h[1]/2:c==="bottom"?h[1]:0),DL(t)){var y=h7(n,i,o,u,f);n=y[0],i=y[1]}o.moveTo(n,i)},e.prototype._updateContentNotChangedOnAxis=function(t,a){var n=this._lastDataByCoordSys,i=this._cbParamsList,o=!!n&&n.length===t.length;return o&&A(n,function(s,l){var u=s.dataByAxis||[],f=t[l]||{},h=f.dataByAxis||[];o=o&&u.length===h.length,o&&A(u,function(v,c){var p=h[c]||{},d=v.seriesDataIndices||[],g=p.seriesDataIndices||[];o=o&&v.value===p.value&&v.axisType===p.axisType&&v.axisId===p.axisId&&d.length===g.length,o&&A(d,function(y,m){var _=g[m];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),i&&A(v.seriesDataIndices,function(y){var m=y.seriesIndex,_=a[m],S=i[m];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=a,!!o},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,a){St.node||!a.getDom()||(Sl(this,"_updatePosition"),this._tooltipContent.dispose(),Jy("itemTooltip",a))},e.type="tooltip",e}(Zt);function cu(r,e,t){var a=e.ecModel,n;t?(n=new Vt(t,a,a),n=new Vt(e.option,n,a)):n=e;for(var i=r.length-1;i>=0;i--){var o=r[i];o&&(o instanceof Vt&&(o=o.get("tooltip",!0)),U(o)&&(o={formatter:o}),o&&(n=new Vt(o,n,a)))}return n}function NL(r,e){return r.dispatchAction||Y(e.dispatchAction,e)}function f7(r,e,t,a,n,i,o){var s=t.getSize(),l=s[0],u=s[1];return i!=null&&(r+l+i+2>a?r-=l+i:r+=i),o!=null&&(e+u+o>n?e-=u+o:e+=o),[r,e]}function h7(r,e,t,a,n){var i=t.getSize(),o=i[0],s=i[1];return r=Math.min(r+o,a)-o,e=Math.min(e+s,n)-s,r=Math.max(r,0),e=Math.max(e,0),[r,e]}function v7(r,e,t,a){var n=t[0],i=t[1],o=Math.ceil(Math.SQRT2*a)+8,s=0,l=0,u=e.width,f=e.height;switch(r){case"inside":s=e.x+u/2-n/2,l=e.y+f/2-i/2;break;case"top":s=e.x+u/2-n/2,l=e.y-i-o;break;case"bottom":s=e.x+u/2-n/2,l=e.y+f+o;break;case"left":s=e.x-n-o,l=e.y+f/2-i/2;break;case"right":s=e.x+u+o,l=e.y+f/2-i/2}return[s,l]}function BL(r){return r==="center"||r==="middle"}function c7(r,e,t){var a=Bc(r).queryOptionMap,n=a.keys()[0];if(!(!n||n==="series")){var i=Ys(e,n,a.get(n),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(!!o){var s=t.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=nt(u).tooltipConfig;if(f&&f.name===r.name)return l=u,!0}),l)return{componentMainType:n,componentIndex:o.componentIndex,el:l}}}}var p7=u7;function d7(r){ct(hu),r.registerComponentModel(KZ),r.registerComponentView(p7),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},$t),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},$t)}var g7=["rect","polygon","keep","clear"];function y7(r,e){var t=Ot(r?r.brush:[]);if(!!t.length){var a=[];A(t,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(a=a.concat(u))});var n=r&&r.toolbox;z(n)&&(n=n[0]),n||(n={feature:{}},r.toolbox=[n]);var i=n.feature||(n.feature={}),o=i.brush||(i.brush={}),s=o.type||(o.type=[]);s.push.apply(s,a),m7(s),e&&!s.length&&s.push.apply(s,g7)}}function m7(r){var e={};A(r,function(t){e[t]=1}),r.length=0,A(e,function(t,a){r.push(a)})}var VL=A;function zL(r){if(r){for(var e in r)if(r.hasOwnProperty(e))return!0}}function _m(r,e,t){var a={};return VL(e,function(i){var o=a[i]=n();VL(r[i],function(s,l){if(!!we.isValidType(l)){var u={type:l,visual:s};t&&t(u,i),o[l]=new we(u),l==="opacity"&&(u=tt(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new we(u))}})}),a;function n(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function GL(r,e,t){var a;A(t,function(n){e.hasOwnProperty(n)&&zL(e[n])&&(a=!0)}),a&&A(t,function(n){e.hasOwnProperty(n)&&zL(e[n])?r[n]=tt(e[n]):delete r[n]})}function _7(r,e,t,a,n,i){var o={};A(r,function(h){var v=we.prepareVisualTypes(e[h]);o[h]=v});var s;function l(h){return ud(t,s,h)}function u(h,v){nb(t,s,h,v)}i==null?t.each(f):t.each([i],f);function f(h,v){s=i==null?h:v;var c=t.getRawDataItem(s);if(!(c&&c.visualMap===!1))for(var p=a.call(n,h),d=e[p],g=o[p],y=0,m=g.length;ye[0][1]&&(e[0][1]=i[0]),i[1]e[1][1]&&(e[1][1]=i[1])}return e&&ZL(e)}};function ZL(r){return new ht(r[0][0],r[1][0],r[0][1]-r[0][0],r[1][1]-r[1][0])}var M7=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a){this.ecModel=t,this.api=a,this.model,(this._brushController=new wy(a.getZr())).on("brush",Y(this._onBrush,this)).mount()},e.prototype.render=function(t,a,n,i){this.model=t,this._updateController(t,a,n,i)},e.prototype.updateTransform=function(t,a,n,i){UL(a),this._updateController(t,a,n,i)},e.prototype.updateVisual=function(t,a,n,i){this.updateTransform(t,a,n,i)},e.prototype.updateView=function(t,a,n,i){this._updateController(t,a,n,i)},e.prototype._updateController=function(t,a,n,i){(!i||i.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(n)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var a=this.model.id,n=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:a,areas:tt(n),$from:a}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:a,areas:tt(n),$from:a})},e.type="brush",e}(Zt),D7=M7,L7="#ddd",I7=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.areas=[],t.brushOption={},t}return e.prototype.optionUpdated=function(t,a){var n=this.option;!a&&GL(n,t,["inBrush","outOfBrush"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:L7},i.hasOwnProperty("liftZ")||(i.liftZ=5)},e.prototype.setAreas=function(t){!t||(this.areas=G(t,function(a){return XL(this.option,a)},this))},e.prototype.setBrushOption=function(t){this.brushOption=XL(this.option,t),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},e}(At);function XL(r,e){return ot({brushType:r.brushType,brushMode:r.brushMode,transformable:r.transformable,brushStyle:new Vt(r.brushStyle).getItemStyle(),removeOnClick:r.removeOnClick,z:r.z},e,!0)}var P7=I7,R7=["rect","polygon","lineX","lineY","keep","clear"],E7=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,a,n){var i,o,s;a.eachComponent({mainType:"brush"},function(l){i=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=i,this._brushMode=o,A(t.get("type",!0),function(l){t.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===i)?"emphasis":"normal")})},e.prototype.updateView=function(t,a,n){this.render(t,a,n)},e.prototype.getIcons=function(){var t=this.model,a=t.get("icon",!0),n={};return A(t.get("type",!0),function(i){a[i]&&(n[i]=a[i])}),n},e.prototype.onclick=function(t,a,n){var i=this._brushType,o=this._brushMode;n==="clear"?(a.dispatchAction({type:"axisAreaSelect",intervals:[]}),a.dispatchAction({type:"brush",command:"clear",areas:[]})):a.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:n==="keep"?i:i===n?!1:n,brushMode:n==="keep"?o==="multiple"?"single":"multiple":o}})},e.getDefaultOption=function(t){var a={show:!0,type:R7.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.getLocaleModel().get(["toolbox","brush","title"])};return a},e}(Dr),k7=E7;function O7(r){r.registerComponentView(D7),r.registerComponentModel(P7),r.registerPreprocessor(y7),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,b7),r.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(e,t){t.eachComponent({mainType:"brush",query:e},function(a){a.setAreas(e.areas)})}),r.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},$t),r.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},$t),hs("brush",k7)}var N7=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(At),B7=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){if(this.group.removeAll(),!!t.get("show")){var i=this.group,o=t.getModel("textStyle"),s=t.getModel("subtextStyle"),l=t.get("textAlign"),u=ft(t.get("textBaseline"),t.get("textVerticalAlign")),f=new Ct({style:Bt(o,{text:t.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),h=f.getBoundingRect(),v=t.get("subtext"),c=new Ct({style:Bt(s,{text:v,fill:s.getTextColor(),y:h.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=t.get("link"),d=t.get("sublink"),g=t.get("triggerEvent",!0);f.silent=!p&&!g,c.silent=!d&&!g,p&&f.on("click",function(){Lf(p,"_"+t.get("target"))}),d&&c.on("click",function(){Lf(d,"_"+t.get("subtarget"))}),nt(f).eventData=nt(c).eventData=g?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(f),v&&i.add(c);var y=i.getBoundingRect(),m=t.getBoxLayoutParams();m.width=y.width,m.height=y.height;var _=oe(m,{width:n.getWidth(),height:n.getHeight()},t.get("padding"));l||(l=t.get("left")||t.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=t.get("top")||t.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),i.x=_.x,i.y=_.y,i.markRedraw();var S={align:l,verticalAlign:u};f.setStyle(S),c.setStyle(S),y=i.getBoundingRect();var b=_.margin,x=t.getItemStyle(["color","opacity"]);x.fill=t.get("backgroundColor");var w=new bt({shape:{x:y.x-b[3],y:y.y-b[0],width:y.width+b[1]+b[3],height:y.height+b[0]+b[2],r:t.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});i.add(w)}},e.type="title",e}(Zt);function V7(r){r.registerComponentModel(N7),r.registerComponentView(B7)}var z7=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode="box",t}return e.prototype.init=function(t,a,n){this.mergeDefaultAndTheme(t,n),this._initData()},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){t==null&&(t=this.option.currentIndex);var a=this._data.count();this.option.loop?t=(t%a+a)%a:(t>=a&&(t=a-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t=this.option,a=t.data||[],n=t.axisType,i=this._names=[],o;n==="category"?(o=[],A(a,function(u,f){var h=ie(xo(u),""),v;et(u)?(v=tt(u),v.value=f):v=f,o.push(v),i.push(h)})):o=a;var s={category:"ordinal",time:"time",value:"number"}[n]||"number",l=this._data=new Be([{name:"value",type:s}],this);l.initData(o,i)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},e}(At),KL=z7,qL=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline.slider",e.defaultOption=cn(KL.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),e}(KL);Jt(qL,Gp.prototype);var G7=qL,F7=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline",e}(Zt),H7=F7,W7=function(r){k(e,r);function e(t,a,n,i){var o=r.call(this,t,a,n)||this;return o.type=i||"value",o}return e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},e}(Yr),U7=W7,bm=Math.PI,jL=xt(),Y7=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a){this.api=a},e.prototype.render=function(t,a,n){if(this.model=t,this.api=n,this.ecModel=a,this.group.removeAll(),t.get("show",!0)){var i=this._layout(t,n),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(i,t);t.formatTooltip=function(u){var f=l.scale.getLabel({value:u});return fe("nameValue",{noName:!0,value:f})},A(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](i,o,l,t)},this),this._renderAxisLabel(i,s,l,t),this._position(i,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,a){var n=t.get(["label","position"]),i=t.get("orient"),o=X7(t,a),s;n==null||n==="auto"?s=i==="horizontal"?o.y+o.height/2=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},f={horizontal:0,vertical:bm/2},h=i==="vertical"?o.height:o.width,v=t.getModel("controlStyle"),c=v.get("show",!0),p=c?v.get("itemSize"):0,d=c?v.get("itemGap"):0,g=p+d,y=t.get(["label","rotate"])||0;y=y*bm/180;var m,_,S,b=v.get("position",!0),x=c&&v.get("showPlayBtn",!0),w=c&&v.get("showPrevBtn",!0),T=c&&v.get("showNextBtn",!0),C=0,M=h;b==="left"||b==="bottom"?(x&&(m=[0,0],C+=g),w&&(_=[C,0],C+=g),T&&(S=[M-p,0],M-=g)):(x&&(m=[M-p,0],M-=g),w&&(_=[0,0],C+=g),T&&(S=[M-p,0],M-=g));var D=[C,M];return t.get("inverse")&&D.reverse(),{viewRect:o,mainLength:h,orient:i,rotation:f[i],labelRotation:y,labelPosOpt:s,labelAlign:t.get(["label","align"])||l[i],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||u[i],playPosition:m,prevBtnPosition:_,nextBtnPosition:S,axisExtent:D,controlSize:p,controlGap:d}},e.prototype._position=function(t,a){var n=this._mainGroup,i=this._labelGroup,o=t.viewRect;if(t.orient==="vertical"){var s=hr(),l=o.x,u=o.y+o.height;jr(s,s,[-l,-u]),Zn(s,s,-bm/2),jr(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var f=m(o),h=m(n.getBoundingRect()),v=m(i.getBoundingRect()),c=[n.x,n.y],p=[i.x,i.y];p[0]=c[0]=f[0][0];var d=t.labelPosOpt;if(d==null||U(d)){var g=d==="+"?0:1;_(c,h,f,1,g),_(p,v,f,1,1-g)}else{var g=d>=0?0:1;_(c,h,f,1,g),p[1]=c[1]+d}n.setPosition(c),i.setPosition(p),n.rotation=i.rotation=t.rotation,y(n),y(i);function y(S){S.originX=f[0][0]-S.x,S.originY=f[1][0]-S.y}function m(S){return[[S.x,S.x+S.width],[S.y,S.y+S.height]]}function _(S,b,x,w,T){S[w]+=x[w][T]-b[w][T]}},e.prototype._createAxis=function(t,a){var n=a.getData(),i=a.get("axisType"),o=Z7(a,i);o.getTicks=function(){return n.mapArray(["value"],function(u){return{value:u}})};var s=n.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new U7("value",o,t.axisExtent,i);return l.model=a,l},e.prototype._createGroup=function(t){var a=this[t]=new rt;return this.group.add(a),a},e.prototype._renderAxisLine=function(t,a,n,i){var o=n.getExtent();if(!!i.get(["lineStyle","show"])){var s=new de({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:B({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});a.add(s);var l=this._progressLine=new de({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:K({lineCap:"round",lineWidth:s.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});a.add(l)}},e.prototype._renderAxisTick=function(t,a,n,i){var o=this,s=i.getData(),l=n.scale.getTicks();this._tickSymbols=[],A(l,function(u){var f=n.dataToCoord(u.value),h=s.getItemModel(u.value),v=h.getModel("itemStyle"),c=h.getModel(["emphasis","itemStyle"]),p=h.getModel(["progress","itemStyle"]),d={x:f,y:0,onclick:Y(o._changeTimeline,o,u.value)},g=$L(h,v,a,d);g.ensureState("emphasis").style=c.getItemStyle(),g.ensureState("progress").style=p.getItemStyle(),di(g);var y=nt(g);h.get("tooltip")?(y.dataIndex=u.value,y.dataModel=i):y.dataIndex=y.dataModel=null,o._tickSymbols.push(g)})},e.prototype._renderAxisLabel=function(t,a,n,i){var o=this,s=n.getLabelModel();if(!!s.get("show")){var l=i.getData(),u=n.getViewLabels();this._tickLabels=[],A(u,function(f){var h=f.tickValue,v=l.getItemModel(h),c=v.getModel("label"),p=v.getModel(["emphasis","label"]),d=v.getModel(["progress","label"]),g=n.dataToCoord(f.tickValue),y=new Ct({x:g,y:0,rotation:t.labelRotation-t.rotation,onclick:Y(o._changeTimeline,o,h),silent:!1,style:Bt(c,{text:f.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});y.ensureState("emphasis").style=Bt(p),y.ensureState("progress").style=Bt(d),a.add(y),di(y),jL(y).dataIndex=h,o._tickLabels.push(y)})}},e.prototype._renderControl=function(t,a,n,i){var o=t.controlSize,s=t.rotation,l=i.getModel("controlStyle").getItemStyle(),u=i.getModel(["emphasis","controlStyle"]).getItemStyle(),f=i.getPlayState(),h=i.get("inverse",!0);v(t.nextBtnPosition,"next",Y(this._changeTimeline,this,h?"-":"+")),v(t.prevBtnPosition,"prev",Y(this._changeTimeline,this,h?"+":"-")),v(t.playPosition,f?"stop":"play",Y(this._handlePlayClick,this,!f),!0);function v(c,p,d,g){if(!!c){var y=Or(ft(i.get(["controlStyle",p+"BtnSize"]),o),o),m=[0,-y/2,y,y],_=K7(i,p+"Icon",m,{x:c[0],y:c[1],originX:o/2,originY:0,rotation:g?-s:0,rectHover:!0,style:l,onclick:d});_.ensureState("emphasis").style=u,a.add(_),di(_)}}},e.prototype._renderCurrentPointer=function(t,a,n,i){var o=i.getData(),s=i.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,f={onCreate:function(h){h.draggable=!0,h.drift=Y(u._handlePointerDrag,u),h.ondragend=Y(u._handlePointerDragend,u),QL(h,u._progressLine,s,n,i,!0)},onUpdate:function(h){QL(h,u._progressLine,s,n,i)}};this._currentPointer=$L(l,l,this._mainGroup,{},this._currentPointer,f)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,a,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,a){var n=this._toAxisCoord(t)[0],i=this._axis,o=pr(i.getExtent().slice());n>o[1]&&(n=o[1]),n=0&&(o[i]=+o[i].toFixed(v)),[o,h]}var Cm={min:it(xv,"min"),max:it(xv,"max"),average:it(xv,"average"),median:it(xv,"median")};function du(r,e){if(!!e){var t=r.getData(),a=r.coordinateSystem,n=a&&a.dimensions;if(!r9(e)&&!z(e.coord)&&z(n)){var i=eI(e,t,a,r);if(e=tt(e),e.type&&Cm[e.type]&&i.baseAxis&&i.valueAxis){var o=st(n,i.baseAxis.dim),s=st(n,i.valueAxis.dim),l=Cm[e.type](t,i.baseDataDim,i.valueDataDim,o,s);e.coord=l[0],e.value=l[1]}else e.coord=[e.xAxis!=null?e.xAxis:e.radiusAxis,e.yAxis!=null?e.yAxis:e.angleAxis]}if(e.coord==null||!z(n))e.coord=[];else for(var u=e.coord,f=0;f<2;f++)Cm[u[f]]&&(u[f]=Am(t,t.mapDimension(n[f]),u[f]));return e}}function eI(r,e,t,a){var n={};return r.valueIndex!=null||r.valueDim!=null?(n.valueDataDim=r.valueIndex!=null?e.getDimension(r.valueIndex):r.valueDim,n.valueAxis=t.getAxis(a9(a,n.valueDataDim)),n.baseAxis=t.getOtherAxis(n.valueAxis),n.baseDataDim=e.mapDimension(n.baseAxis.dim)):(n.baseAxis=a.getBaseAxis(),n.valueAxis=t.getOtherAxis(n.baseAxis),n.baseDataDim=e.mapDimension(n.baseAxis.dim),n.valueDataDim=e.mapDimension(n.valueAxis.dim)),n}function a9(r,e){var t=r.getData().getDimensionInfo(e);return t&&t.coordDim}function gu(r,e){return r&&r.containData&&e.coord&&!Tm(e)?r.containData(e.coord):!0}function n9(r,e,t){return r&&r.containZone&&e.coord&&t.coord&&!Tm(e)&&!Tm(t)?r.containZone(e.coord,t.coord):!0}function rI(r,e){return r?function(t,a,n,i){var o=i<2?t.coord&&t.coord[i]:t.value;return dn(o,e[i])}:function(t,a,n,i){return dn(t.value,e[i])}}function Am(r,e,t){if(t==="average"){var a=0,n=0;return r.each(e,function(i,o){isNaN(i)||(a+=i,n++)}),a/n}else return t==="median"?r.getMedian(e):r.getDataExtent(e)[t==="max"?1:0]}var Mm=xt(),i9=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this.markerGroupMap=q()},e.prototype.render=function(t,a,n){var i=this,o=this.markerGroupMap;o.each(function(s){Mm(s).keep=!1}),a.eachSeries(function(s){var l=Rn.getMarkerModelFromSeries(s,i.type);l&&i.renderSeries(s,l,a,n)}),o.each(function(s){!Mm(s).keep&&i.group.remove(s.group)})},e.prototype.markKeep=function(t){Mm(t).keep=!0},e.prototype.toggleBlurSeries=function(t,a){var n=this;A(t,function(i){var o=Rn.getMarkerModelFromSeries(i,n.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(a?p1(l):sp(l))})}})},e.type="marker",e}(Zt),Dm=i9;function aI(r,e,t){var a=e.coordinateSystem;r.each(function(n){var i=r.getItemModel(n),o,s=H(i.get("x"),t.getWidth()),l=H(i.get("y"),t.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(e.getMarkerPosition)o=e.getMarkerPosition(r.getValues(r.dimensions,n));else if(a){var u=r.get(a.dimensions[0],n),f=r.get(a.dimensions[1],n);o=a.dataToPoint([u,f])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),r.setItemLayout(n,o)})}var o9=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,a,n){a.eachSeries(function(i){var o=Rn.getMarkerModelFromSeries(i,"markPoint");o&&(aI(o.getData(),i,n),this.markerGroupMap.get(i.id).updateLayout())},this)},e.prototype.renderSeries=function(t,a,n,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new zl),h=s9(o,t,a);a.setData(h),aI(a.getData(),t,i),h.each(function(v){var c=h.getItemModel(v),p=c.getShallow("symbol"),d=c.getShallow("symbolSize"),g=c.getShallow("symbolRotate"),y=c.getShallow("symbolOffset"),m=c.getShallow("symbolKeepAspect");if($(p)||$(d)||$(g)||$(y)){var _=a.getRawValue(v),S=a.getDataParams(v);$(p)&&(p=p(_,S)),$(d)&&(d=d(_,S)),$(g)&&(g=g(_,S)),$(y)&&(y=y(_,S))}var b=c.getModel("itemStyle").getItemStyle(),x=wl(l,"color");b.fill||(b.fill=x),h.setItemVisual(v,{symbol:p,symbolSize:d,symbolRotate:g,symbolOffset:y,symbolKeepAspect:m,style:b})}),f.updateData(h),this.group.add(f.group),h.eachItemGraphicEl(function(v){v.traverse(function(c){nt(c).dataModel=a})}),this.markKeep(f),f.group.silent=a.get("silent")||t.get("silent")},e.type="markPoint",e}(Dm);function s9(r,e,t){var a;r?a=G(r&&r.dimensions,function(s){var l=e.getData().getDimensionInfo(e.getData().mapDimension(s))||{};return B(B({},l),{name:s,ordinalMeta:null})}):a=[{name:"value",type:"float"}];var n=new Be(a,t),i=G(t.get("data"),it(du,e));r&&(i=Rt(i,it(gu,r)));var o=rI(!!r,a);return n.initData(i,null,o),n}var l9=o9;function u9(r){r.registerComponentModel(e9),r.registerComponentView(l9),r.registerPreprocessor(function(e){wm(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})})}var f9=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,a,n){return new e(t,a,n)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e}(Rn),h9=f9,bv=xt(),v9=function(r,e,t,a){var n=r.getData(),i;if(z(a))i=a;else{var o=a.type;if(o==="min"||o==="max"||o==="average"||o==="median"||a.xAxis!=null||a.yAxis!=null){var s=void 0,l=void 0;if(a.yAxis!=null||a.xAxis!=null)s=e.getAxis(a.yAxis!=null?"y":"x"),l=ce(a.yAxis,a.xAxis);else{var u=eI(a,n,e,r);s=u.valueAxis;var f=Fw(n,u.valueDataDim);l=Am(n,f,o)}var h=s.dim==="x"?0:1,v=1-h,c=tt(a),p={coord:[]};c.type=null,c.coord=[],c.coord[v]=-Infinity,p.coord[v]=Infinity;var d=t.get("precision");d>=0&&Tt(l)&&(l=+l.toFixed(Math.min(d,20))),c.coord[h]=p.coord[h]=l,i=[c,p,{type:o,valueIndex:a.valueIndex,value:l}]}else i=[]}var g=[du(r,i[0]),du(r,i[1]),B({},i[2])];return g[2].type=g[2].type||null,ot(g[2],g[0]),ot(g[2],g[1]),g};function wv(r){return!isNaN(r)&&!isFinite(r)}function nI(r,e,t,a){var n=1-r,i=a.dimensions[r];return wv(e[n])&&wv(t[n])&&e[r]===t[r]&&a.getAxis(i).containData(e[r])}function c9(r,e){if(r.type==="cartesian2d"){var t=e[0].coord,a=e[1].coord;if(t&&a&&(nI(1,t,a,r)||nI(0,t,a,r)))return!0}return gu(r,e[0])&&gu(r,e[1])}function Lm(r,e,t,a,n){var i=a.coordinateSystem,o=r.getItemModel(e),s,l=H(o.get("x"),n.getWidth()),u=H(o.get("y"),n.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(a.getMarkerPosition)s=a.getMarkerPosition(r.getValues(r.dimensions,e));else{var f=i.dimensions,h=r.get(f[0],e),v=r.get(f[1],e);s=i.dataToPoint([h,v])}if(Gi(i,"cartesian2d")){var c=i.getAxis("x"),p=i.getAxis("y"),f=i.dimensions;wv(r.get(f[0],e))?s[0]=c.toGlobalCoord(c.getExtent()[t?0:1]):wv(r.get(f[1],e))&&(s[1]=p.toGlobalCoord(p.getExtent()[t?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}r.setItemLayout(e,s)}var p9=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,a,n){a.eachSeries(function(i){var o=Rn.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),l=bv(o).from,u=bv(o).to;l.each(function(f){Lm(l,f,!0,i,n),Lm(u,f,!1,i,n)}),s.each(function(f){s.setItemLayout(f,[l.getItemLayout(f),u.getItemLayout(f)])}),this.markerGroupMap.get(i.id).updateLayout()}},this)},e.prototype.renderSeries=function(t,a,n,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new ay);this.group.add(f.group);var h=d9(o,t,a),v=h.from,c=h.to,p=h.line;bv(a).from=v,bv(a).to=c,a.setData(p);var d=a.get("symbol"),g=a.get("symbolSize"),y=a.get("symbolRotate"),m=a.get("symbolOffset");z(d)||(d=[d,d]),z(g)||(g=[g,g]),z(y)||(y=[y,y]),z(m)||(m=[m,m]),h.from.each(function(S){_(v,S,!0),_(c,S,!1)}),p.each(function(S){var b=p.getItemModel(S).getModel("lineStyle").getLineStyle();p.setItemLayout(S,[v.getItemLayout(S),c.getItemLayout(S)]),b.stroke==null&&(b.stroke=v.getItemVisual(S,"style").fill),p.setItemVisual(S,{fromSymbolKeepAspect:v.getItemVisual(S,"symbolKeepAspect"),fromSymbolOffset:v.getItemVisual(S,"symbolOffset"),fromSymbolRotate:v.getItemVisual(S,"symbolRotate"),fromSymbolSize:v.getItemVisual(S,"symbolSize"),fromSymbol:v.getItemVisual(S,"symbol"),toSymbolKeepAspect:c.getItemVisual(S,"symbolKeepAspect"),toSymbolOffset:c.getItemVisual(S,"symbolOffset"),toSymbolRotate:c.getItemVisual(S,"symbolRotate"),toSymbolSize:c.getItemVisual(S,"symbolSize"),toSymbol:c.getItemVisual(S,"symbol"),style:b})}),f.updateData(p),h.line.eachItemGraphicEl(function(S){nt(S).dataModel=a,S.traverse(function(b){nt(b).dataModel=a})});function _(S,b,x){var w=S.getItemModel(b);Lm(S,b,x,t,i);var T=w.getModel("itemStyle").getItemStyle();T.fill==null&&(T.fill=wl(l,"color")),S.setItemVisual(b,{symbolKeepAspect:w.get("symbolKeepAspect"),symbolOffset:ft(w.get("symbolOffset",!0),m[x?0:1]),symbolRotate:ft(w.get("symbolRotate",!0),y[x?0:1]),symbolSize:ft(w.get("symbolSize"),g[x?0:1]),symbol:ft(w.get("symbol",!0),d[x?0:1]),style:T})}this.markKeep(f),f.group.silent=a.get("silent")||t.get("silent")},e.type="markLine",e}(Dm);function d9(r,e,t){var a;r?a=G(r&&r.dimensions,function(u){var f=e.getData().getDimensionInfo(e.getData().mapDimension(u))||{};return B(B({},f),{name:u,ordinalMeta:null})}):a=[{name:"value",type:"float"}];var n=new Be(a,t),i=new Be(a,t),o=new Be([],t),s=G(t.get("data"),it(v9,e,r,t));r&&(s=Rt(s,it(c9,r)));var l=rI(!!r,a);return n.initData(G(s,function(u){return u[0]}),null,l),i.initData(G(s,function(u){return u[1]}),null,l),o.initData(G(s,function(u){return u[2]})),o.hasItemOption=!0,{from:n,to:i,line:o}}var g9=p9;function y9(r){r.registerComponentModel(h9),r.registerComponentView(g9),r.registerPreprocessor(function(e){wm(e.series,"markLine")&&(e.markLine=e.markLine||{})})}var m9=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,a,n){return new e(t,a,n)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(Rn),_9=m9,Tv=xt(),S9=function(r,e,t,a){var n=a[0],i=a[1];if(!(!n||!i)){var o=du(r,n),s=du(r,i),l=o.coord,u=s.coord;l[0]=ce(l[0],-Infinity),l[1]=ce(l[1],-Infinity),u[0]=ce(u[0],Infinity),u[1]=ce(u[1],Infinity);var f=Kr([{},o,s]);return f.coord=[o.coord,s.coord],f.x0=o.x,f.y0=o.y,f.x1=s.x,f.y1=s.y,f}};function Cv(r){return!isNaN(r)&&!isFinite(r)}function iI(r,e,t,a){var n=1-r;return Cv(e[n])&&Cv(t[n])}function x9(r,e){var t=e.coord[0],a=e.coord[1],n={coord:t,x:e.x0,y:e.y0},i={coord:a,x:e.x1,y:e.y1};return Gi(r,"cartesian2d")?t&&a&&(iI(1,t,a,r)||iI(0,t,a,r))?!0:n9(r,n,i):gu(r,n)||gu(r,i)}function oI(r,e,t,a,n){var i=a.coordinateSystem,o=r.getItemModel(e),s,l=H(o.get(t[0]),n.getWidth()),u=H(o.get(t[1]),n.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(a.getMarkerPosition){var f=r.getValues(["x0","y0"],e),h=r.getValues(["x1","y1"],e),v=i.clampData(f),c=i.clampData(h),p=[];t[0]==="x0"?p[0]=v[0]>c[0]?h[0]:f[0]:p[0]=v[0]>c[0]?f[0]:h[0],t[1]==="y0"?p[1]=v[1]>c[1]?h[1]:f[1]:p[1]=v[1]>c[1]?f[1]:h[1],s=a.getMarkerPosition(p,t,!0)}else{var d=r.get(t[0],e),g=r.get(t[1],e),y=[d,g];i.clampData&&i.clampData(y,y),s=i.dataToPoint(y,!0)}if(Gi(i,"cartesian2d")){var m=i.getAxis("x"),_=i.getAxis("y"),d=r.get(t[0],e),g=r.get(t[1],e);Cv(d)?s[0]=m.toGlobalCoord(m.getExtent()[t[0]==="x0"?0:1]):Cv(g)&&(s[1]=_.toGlobalCoord(_.getExtent()[t[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var sI=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],b9=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,a,n){a.eachSeries(function(i){var o=Rn.getMarkerModelFromSeries(i,"markArea");if(o){var s=o.getData();s.each(function(l){var u=G(sI,function(h){return oI(s,l,h,i,n)});s.setItemLayout(l,u);var f=s.getItemGraphicEl(l);f.setShape("points",u)})}},this)},e.prototype.renderSeries=function(t,a,n,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,{group:new rt});this.group.add(f.group),this.markKeep(f);var h=w9(o,t,a);a.setData(h),h.each(function(v){var c=G(sI,function(T){return oI(h,v,T,t,i)}),p=o.getAxis("x").scale,d=o.getAxis("y").scale,g=p.getExtent(),y=d.getExtent(),m=[p.parse(h.get("x0",v)),p.parse(h.get("x1",v))],_=[d.parse(h.get("y0",v)),d.parse(h.get("y1",v))];pr(m),pr(_);var S=!(g[0]>m[1]||g[1]_[1]||y[1]<_[0]),b=!S;h.setItemLayout(v,{points:c,allClipped:b});var x=h.getItemModel(v).getModel("itemStyle").getItemStyle(),w=wl(l,"color");x.fill||(x.fill=w,U(x.fill)&&(x.fill=Uu(x.fill,.4))),x.stroke||(x.stroke=w),h.setItemVisual(v,"style",x)}),h.diff(Tv(f).data).add(function(v){var c=h.getItemLayout(v);if(!c.allClipped){var p=new Ye({shape:{points:c.points}});h.setItemGraphicEl(v,p),f.group.add(p)}}).update(function(v,c){var p=Tv(f).data.getItemGraphicEl(c),d=h.getItemLayout(v);d.allClipped?p&&f.group.remove(p):(p?Mt(p,{shape:{points:d.points}},a,v):p=new Ye({shape:{points:d.points}}),h.setItemGraphicEl(v,p),f.group.add(p))}).remove(function(v){var c=Tv(f).data.getItemGraphicEl(v);f.group.remove(c)}).execute(),h.eachItemGraphicEl(function(v,c){var p=h.getItemModel(c),d=h.getItemVisual(c,"style");v.useStyle(h.getItemVisual(c,"style")),xe(v,ue(p),{labelFetcher:a,labelDataIndex:c,defaultText:h.getName(c)||"",inheritColor:U(d.fill)?Uu(d.fill,1):"#000"}),Se(v,p),Yt(v,null,null,p.get(["emphasis","disabled"])),nt(v).dataModel=a}),Tv(f).data=h,f.group.silent=a.get("silent")||t.get("silent")},e.type="markArea",e}(Dm);function w9(r,e,t){var a,n,i=["x0","y0","x1","y1"];if(r){var o=G(r&&r.dimensions,function(u){var f=e.getData(),h=f.getDimensionInfo(f.mapDimension(u))||{};return B(B({},h),{name:u,ordinalMeta:null})});n=G(i,function(u,f){return{name:u,type:o[f%2].type}}),a=new Be(n,t)}else n=[{name:"value",type:"float"}],a=new Be(n,t);var s=G(t.get("data"),it(S9,e,r,t));r&&(s=Rt(s,it(x9,r)));var l=r?function(u,f,h,v){var c=u.coord[Math.floor(v/2)][v%2];return dn(c,n[v])}:function(u,f,h,v){return dn(u.value,n[v])};return a.initData(s,null,l),a.hasItemOption=!0,a}var T9=b9;function C9(r){r.registerComponentModel(_9),r.registerComponentView(T9),r.registerPreprocessor(function(e){wm(e.series,"markArea")&&(e.markArea=e.markArea||{})})}var A9=function(r,e){if(e==="all")return{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}},M9=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.prototype.init=function(t,a,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(t,a){r.prototype.mergeOption.call(this,t,a),this._updateSelector(t)},e.prototype._updateSelector=function(t){var a=t.selector,n=this.ecModel;a===!0&&(a=t.selector=["all","inverse"]),z(a)&&A(a,function(i,o){U(i)&&(i={type:i}),a[o]=ot(i,A9(n,i.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&this.get("selectedMode")==="single"){for(var a=!1,n=0;n=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(At),Im=M9,cs=it,Pm=A,Av=rt,D9=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!1,t}return e.prototype.init=function(){this.group.add(this._contentGroup=new Av),this.group.add(this._selectorGroup=new Av),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,a,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!t.get("show",!0)){var o=t.get("align"),s=t.get("orient");(!o||o==="auto")&&(o=t.get("left")==="right"&&s==="vertical"?"right":"left");var l=t.get("selector",!0),u=t.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,t,a,n,l,s,u);var f=t.getBoxLayoutParams(),h={width:n.getWidth(),height:n.getHeight()},v=t.get("padding"),c=oe(f,h,v),p=this.layoutInner(t,o,c,i,l,u),d=oe(K({width:p.width,height:p.height},f),h,v);this.group.x=d.x-p.x,this.group.y=d.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=gL(p,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,a,n,i,o,s,l){var u=this.getContentGroup(),f=q(),h=a.get("selectedMode"),v=[];n.eachRawSeries(function(c){!c.get("legendHoverLink")&&v.push(c.id)}),Pm(a.getData(),function(c,p){var d=c.get("name");if(!this.newlineDisabled&&(d===""||d===` +`)){var g=new Av;g.newline=!0,u.add(g);return}var y=n.getSeriesByName(d)[0];if(!f.get(d))if(y){var m=y.getData(),_=m.getVisual("legendLineStyle")||{},S=m.getVisual("legendIcon"),b=m.getVisual("style"),x=this._createItem(y,d,p,c,a,t,_,b,S,h,i);x.on("click",cs(lI,d,null,i,v)).on("mouseover",cs(Rm,y.name,null,i,v)).on("mouseout",cs(Em,y.name,null,i,v)),f.set(d,!0)}else n.eachRawSeries(function(w){if(!f.get(d)&&w.legendVisualProvider){var T=w.legendVisualProvider;if(!T.containName(d))return;var C=T.indexOfName(d),M=T.getItemVisual(C,"style"),D=T.getItemVisual(C,"legendIcon"),L=Fe(M.fill);L&&L[3]===0&&(L[3]=.2,M=B(B({},M),{fill:Qr(L,"rgba")}));var I=this._createItem(w,d,p,c,a,t,{},M,D,h,i);I.on("click",cs(lI,null,d,i,v)).on("mouseover",cs(Rm,null,d,i,v)).on("mouseout",cs(Em,null,d,i,v)),f.set(d,!0)}},this)},this),o&&this._createSelector(o,a,i,s,l)},e.prototype._createSelector=function(t,a,n,i,o){var s=this.getSelectorGroup();Pm(t,function(u){var f=u.type,h=new Ct({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(h);var v=a.getModel("selectorLabel"),c=a.getModel(["emphasis","selectorLabel"]);xe(h,{normal:v,emphasis:c},{defaultText:u.title}),di(h)})},e.prototype._createItem=function(t,a,n,i,o,s,l,u,f,h,v){var c=t.visualDrawType,p=o.get("itemWidth"),d=o.get("itemHeight"),g=o.isSelected(a),y=i.get("symbolRotate"),m=i.get("symbolKeepAspect"),_=i.get("icon");f=_||f||"roundRect";var S=L9(f,i,l,u,c,g,v),b=new Av,x=i.getModel("textStyle");if($(t.getLegendIcon)&&(!_||_==="inherit"))b.add(t.getLegendIcon({itemWidth:p,itemHeight:d,icon:f,iconRotate:y,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}));else{var w=_==="inherit"&&t.getData().getVisual("symbol")?y==="inherit"?t.getData().getVisual("symbolRotate"):y:0;b.add(I9({itemWidth:p,itemHeight:d,icon:f,iconRotate:w,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}))}var T=s==="left"?p+5:-5,C=s,M=o.get("formatter"),D=a;U(M)&&M?D=M.replace("{name}",a!=null?a:""):$(M)&&(D=M(a));var L=i.get("inactiveColor");b.add(new Ct({style:Bt(x,{text:D,x:T,y:d/2,fill:g?x.getTextColor():L,align:C,verticalAlign:"middle"})}));var I=new bt({shape:b.getBoundingRect(),invisible:!0}),P=i.getModel("tooltip");return P.get("show")&&Ho({el:I,componentModel:o,itemName:a,itemTooltipOption:P.option}),b.add(I),b.eachChild(function(R){R.silent=!0}),I.silent=!h,this.getContentGroup().add(b),di(b),b.__legendDataIndex=n,b},e.prototype.layoutInner=function(t,a,n,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();xi(t.get("orient"),l,t.get("itemGap"),n.width,n.height);var f=l.getBoundingRect(),h=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){xi("horizontal",u,t.get("selectorItemGap",!0));var v=u.getBoundingRect(),c=[-v.x,-v.y],p=t.get("selectorButtonGap",!0),d=t.getOrient().index,g=d===0?"width":"height",y=d===0?"height":"width",m=d===0?"y":"x";s==="end"?c[d]+=f[g]+p:h[d]+=v[g]+p,c[1-d]+=f[y]/2-v[y]/2,u.x=c[0],u.y=c[1],l.x=h[0],l.y=h[1];var _={x:0,y:0};return _[g]=f[g]+p+v[g],_[y]=Math.max(f[y],v[y]),_[m]=Math.min(0,v[m]+c[1-d]),_}else return l.x=h[0],l.y=h[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(Zt);function L9(r,e,t,a,n,i,o){function s(g,y){g.lineWidth==="auto"&&(g.lineWidth=y.lineWidth>0?2:0),Pm(g,function(m,_){g[_]==="inherit"&&(g[_]=y[_])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),f=r.lastIndexOf("empty",0)===0?"fill":"stroke",h=l.getShallow("decal");u.decal=!h||h==="inherit"?a.decal:Xo(h,o),u.fill==="inherit"&&(u.fill=a[n]),u.stroke==="inherit"&&(u.stroke=a[f]),u.opacity==="inherit"&&(u.opacity=(n==="fill"?a:t).opacity),s(u,a);var v=e.getModel("lineStyle"),c=v.getLineStyle();if(s(c,t),u.fill==="auto"&&(u.fill=a.fill),u.stroke==="auto"&&(u.stroke=a.fill),c.stroke==="auto"&&(c.stroke=a.fill),!i){var p=e.get("inactiveBorderWidth"),d=u[f];u.lineWidth=p==="auto"?a.lineWidth>0&&d?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),c.stroke=v.get("inactiveColor"),c.lineWidth=v.get("inactiveWidth")}return{itemStyle:u,lineStyle:c}}function I9(r){var e=r.icon||"roundRect",t=re(e,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return t.setStyle(r.itemStyle),t.rotation=(r.iconRotate||0)*Math.PI/180,t.setOrigin([r.itemWidth/2,r.itemHeight/2]),e.indexOf("empty")>-1&&(t.style.stroke=t.style.fill,t.style.fill="#fff",t.style.lineWidth=2),t}function lI(r,e,t,a){Em(r,e,t,a),t.dispatchAction({type:"legendToggleSelect",name:r!=null?r:e}),Rm(r,e,t,a)}function uI(r){for(var e=r.getZr().storage.getDisplayList(),t,a=0,n=e.length;an[o],g=[-c.x,-c.y];a||(g[i]=f[u]);var y=[0,0],m=[-p.x,-p.y],_=ft(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(d){var S=t.get("pageButtonPosition",!0);S==="end"?m[i]+=n[o]-p[o]:y[i]+=p[o]+_}m[1-i]+=c[s]/2-p[s]/2,f.setPosition(g),h.setPosition(y),v.setPosition(m);var b={x:0,y:0};if(b[o]=d?n[o]:c[o],b[s]=Math.max(c[s],p[s]),b[l]=Math.min(0,p[l]+m[1-i]),h.__rectSize=n[o],d){var x={x:0,y:0};x[o]=Math.max(n[o]-p[o]-_,0),x[s]=b[s],h.setClipPath(new bt({shape:x})),h.__rectSize=x[o]}else v.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(t);return w.pageIndex!=null&&Mt(f,{x:w.contentPosition[0],y:w.contentPosition[1]},d?t:null),this._updatePageInfoView(t,w),b},e.prototype._pageGo=function(t,a,n){var i=this._getPageInfo(a)[t];i!=null&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:a.id})},e.prototype._updatePageInfoView=function(t,a){var n=this._controllerGroup;A(["pagePrev","pageNext"],function(f){var h=f+"DataIndex",v=a[h]!=null,c=n.childOfName(f);c&&(c.setStyle("fill",v?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),c.cursor=v?"pointer":"default")});var i=n.childOfName("pageText"),o=t.get("pageFormatter"),s=a.pageIndex,l=s!=null?s+1:0,u=a.pageCount;i&&o&&i.setStyle("text",U(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(t){var a=t.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,o=t.getOrient().index,s=km[o],l=Om[o],u=this._findTargetItemIndex(a),f=n.children(),h=f[u],v=f.length,c=v?1:0,p={contentPosition:[n.x,n.y],pageCount:c,pageIndex:c-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return p;var d=S(h);p.contentPosition[o]=-d.s;for(var g=u+1,y=d,m=d,_=null;g<=v;++g)_=S(f[g]),(!_&&m.e>y.s+i||_&&!b(_,y.s))&&(m.i>y.i?y=m:y=_,y&&(p.pageNextDataIndex==null&&(p.pageNextDataIndex=y.i),++p.pageCount)),m=_;for(var g=u-1,y=d,m=d,_=null;g>=-1;--g)_=S(f[g]),(!_||!b(m,_.s))&&y.i=w&&x.s<=w+i}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var a,n=this.getContentGroup(),i;return n.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===t&&(a=s)}),a!=null?a:i},e.type="legend.scroll",e}(fI),N9=O9;function B9(r){r.registerAction("legendScroll","legendscroll",function(e,t){var a=e.scrollDataIndex;a!=null&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},function(n){n.setScrollDataIndex(a)})})}function V9(r){ct(hI),r.registerComponentModel(k9),r.registerComponentView(N9),B9(r)}function z9(r){ct(hI),ct(V9)}var G9=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.inside",e.defaultOption=cn(vu.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(vu),F9=G9,Nm=xt();function H9(r,e,t){Nm(r).coordSysRecordMap.each(function(a){var n=a.dataZoomInfoMap.get(e.uid);n&&(n.getRange=t)})}function W9(r,e){for(var t=Nm(r).coordSysRecordMap,a=t.keys(),n=0;na[t+e]&&(e=s),n=n&&o.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!n}}}function K9(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(e,t){var a=Nm(t),n=a.coordSysRecordMap||(a.coordSysRecordMap=q());n.each(function(i){i.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=fL(i);A(o.infoList,function(s){var l=s.model.uid,u=n.get(l)||n.set(l,U9(t,s.model)),f=u.dataZoomInfoMap||(u.dataZoomInfoMap=q());f.set(i.uid,{dzReferCoordSysInfo:s,model:i,getRange:null})})}),n.each(function(i){var o=i.controller,s,l=i.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){pI(n,i);return}var f=X9(l);o.enable(f.controlType,f.opt),o.setPointerChecker(i.containsPoint),Wo(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var q9=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return e.prototype.render=function(t,a,n){if(r.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),H9(n,t,{pan:Y(Bm.pan,this),zoom:Y(Bm.zoom,this),scrollMove:Y(Bm.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){W9(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(um),Bm={zoom:function(r,e,t,a){var n=this.range,i=n.slice(),o=r.axisModels[0];if(!!o){var s=Vm[e](null,[a.originX,a.originY],o,t,r),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(i[1]-i[0])+i[0],u=Math.max(1/a.scale,0);i[0]=(i[0]-l)*u+l,i[1]=(i[1]-l)*u+l;var f=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if($i(0,i,[0,100],0,f.minSpan,f.maxSpan),this.range=i,n[0]!==i[0]||n[1]!==i[1])return i}},pan:dI(function(r,e,t,a,n,i){var o=Vm[a]([i.oldX,i.oldY],[i.newX,i.newY],e,n,t);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:dI(function(r,e,t,a,n,i){var o=Vm[a]([0,0],[i.scrollDelta,i.scrollDelta],e,n,t);return o.signal*(r[1]-r[0])*i.scrollDelta})};function dI(r){return function(e,t,a,n){var i=this.range,o=i.slice(),s=e.axisModels[0];if(!!s){var l=r(o,s,e,t,a,n);if($i(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var Vm={grid:function(r,e,t,a,n){var i=t.axis,o={},s=n.model.coordinateSystem.getRect();return r=r||[0,0],i.dim==="x"?(o.pixel=e[0]-r[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(r,e,t,a,n){var i=t.axis,o={},s=n.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return r=r?s.pointToCoord(r):[0,0],e=s.pointToCoord(e),t.mainType==="radiusAxis"?(o.pixel=e[0]-r[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=i.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=i.inverse?-1:1),o},singleAxis:function(r,e,t,a,n){var i=t.axis,o=n.model.coordinateSystem.getRect(),s={};return r=r||[0,0],i.orient==="horizontal"?(s.pixel=e[0]-r[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=e[1]-r[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}},j9=q9;function gI(r){fm(r),r.registerComponentModel(F9),r.registerComponentView(j9),K9(r)}var $9=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=cn(vu.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}(vu),Q9=$9,mu=bt,yI=7,J9=1,zm=30,tX=7,_u="horizontal",mI="vertical",eX=5,rX=["line","bar","candlestick","scatter"],aX={easing:"cubicOut",duration:100,delay:0},nX=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._displayables={},t}return e.prototype.init=function(t,a){this.api=a,this._onBrush=Y(this._onBrush,this),this._onBrushEnd=Y(this._onBrushEnd,this)},e.prototype.render=function(t,a,n,i){if(r.prototype.render.apply(this,arguments),Wo(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),t.get("show")===!1){this.group.removeAll();return}if(t.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!=="dataZoom"||i.from!==this.uid)&&this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){Sl(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var a=this._displayables.sliderGroup=new rt;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(a),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,a=this.api,n=t.get("brushSelect"),i=n?tX:0,o=this._findCoordRect(),s={width:a.getWidth(),height:a.getHeight()},l=this._orient===_u?{right:s.width-o.x-o.width,top:s.height-zm-yI-i,width:o.width,height:zm}:{right:yI,top:o.y,width:zm,height:o.height},u=Ro(t.option);A(["right","top","width","height"],function(h){u[h]==="ph"&&(u[h]=l[h])});var f=oe(u,s);this._location={x:f.x,y:f.y},this._size=[f.width,f.height],this._orient===mI&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,a=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(n===_u&&!o?{scaleY:l?1:-1,scaleX:1}:n===_u&&o?{scaleY:l?1:-1,scaleX:-1}:n===mI&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=t.getBoundingRect([s]);t.x=a.x-u.x,t.y=a.y-u.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,a=this._size,n=this._displayables.sliderGroup,i=t.get("brushSelect");n.add(new mu({silent:!0,shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var o=new mu({shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:"transparent"},z2:0,onclick:Y(this._onClickPanel,this)}),s=this.api.getZr();i?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),n.add(o)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!t)return;var a=this._size,n=this._shadowSize||[],i=t.series,o=i.getRawData(),s=i.getShadowDim&&i.getShadowDim(),l=s&&o.getDimensionInfo(s)?i.getShadowDim():t.otherDim;if(l==null)return;var u=this._shadowPolygonPts,f=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||a[0]!==n[0]||a[1]!==n[1]){var h=o.getDataExtent(l),v=(h[1]-h[0])*.3;h=[h[0]-v,h[1]+v];var c=[0,a[1]],p=[0,a[0]],d=[[a[0],0],[0,0]],g=[],y=p[1]/(o.count()-1),m=0,_=Math.round(o.count()/a[0]),S;o.each([l],function(C,M){if(_>0&&M%_){m+=y;return}var D=C==null||isNaN(C)||C==="",L=D?0:Pt(C,h,c,!0);D&&!S&&M?(d.push([d[d.length-1][0],0]),g.push([g[g.length-1][0],0])):!D&&S&&(d.push([m,0]),g.push([m,0])),d.push([m,L]),g.push([m,L]),m+=y,S=D}),u=this._shadowPolygonPts=d,f=this._shadowPolylinePts=g}this._shadowData=o,this._shadowDim=l,this._shadowSize=[a[0],a[1]];var b=this.dataZoomModel;function x(C){var M=b.getModel(C?"selectedDataBackground":"dataBackground"),D=new rt,L=new Ye({shape:{points:u},segmentIgnoreThreshold:1,style:M.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),I=new Ze({shape:{points:f},segmentIgnoreThreshold:1,style:M.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return D.add(L),D.add(I),D}for(var w=0;w<3;w++){var T=x(w===1);this._displayables.sliderGroup.add(T),this._displayables.dataShadowSegs.push(T)}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,a=t.get("showDataShadow");if(a!==!1){var n,i=this.ecModel;return t.eachTargetAxis(function(o,s){var l=t.getAxisProxy(o,s).getTargetSeriesModels();A(l,function(u){if(!n&&!(a!==!0&&st(rX,u.get("type"))<0)){var f=i.getComponent(In(o),s).axis,h=iX(o),v,c=u.coordinateSystem;h!=null&&c.getOtherAxis&&(v=c.getOtherAxis(f).inverse),h=u.getData().mapDimension(h),n={thisAxis:f,series:u,thisDim:o,otherDim:h,otherAxisInverse:v}}},this)},this),n}},e.prototype._renderHandle=function(){var t=this.group,a=this._displayables,n=a.handles=[null,null],i=a.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,f=l.get("borderRadius")||0,h=l.get("brushSelect"),v=a.filler=new mu({silent:h,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(v),o.add(new mu({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:f},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:J9,fill:"rgba(0,0,0,0)"}})),A([0,1],function(_){var S=l.get("handleIcon");!rh[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var b=re(S,-1,0,2,2,null,!0);b.attr({cursor:_I(this._orient),draggable:!0,drift:Y(this._onDragMove,this,_),ondragend:Y(this._onDragEnd,this),onmouseover:Y(this._showDataInfo,this,!0),onmouseout:Y(this._showDataInfo,this,!1),z2:5});var x=b.getBoundingRect(),w=l.get("handleSize");this._handleHeight=H(w,this._size[1]),this._handleWidth=x.width/x.height*this._handleHeight,b.setStyle(l.getModel("handleStyle").getItemStyle()),b.style.strokeNoScale=!0,b.rectHover=!0,b.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),di(b);var T=l.get("handleColor");T!=null&&(b.style.fill=T),o.add(n[_]=b);var C=l.getModel("textStyle");t.add(i[_]=new Ct({silent:!0,invisible:!0,style:Bt(C,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:C.getTextColor(),font:C.getFont()}),z2:10}))},this);var c=v;if(h){var p=H(l.get("moveHandleSize"),s[1]),d=a.moveHandle=new bt({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:p}}),g=p*.8,y=a.moveHandleIcon=re(l.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);y.silent=!0,y.y=s[1]+p/2-.5,d.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(s[1]/2,Math.max(p,10));c=a.moveZone=new bt({invisible:!0,shape:{y:s[1]-m,height:p+m}}),c.on("mouseover",function(){u.enterEmphasis(d)}).on("mouseout",function(){u.leaveEmphasis(d)}),o.add(d),o.add(y),o.add(c)}c.attr({draggable:!0,cursor:_I(this._orient),drift:Y(this._onDragMove,this,"all"),ondragstart:Y(this._showDataInfo,this,!0),ondragend:Y(this._onDragEnd,this),onmouseover:Y(this._showDataInfo,this,!0),onmouseout:Y(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),a=this._getViewExtent();this._handleEnds=[Pt(t[0],[0,100],a,!0),Pt(t[1],[0,100],a,!0)]},e.prototype._updateInterval=function(t,a){var n=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),s=n.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];$i(a,i,o,n.get("zoomLock")?"all":t,s.minSpan!=null?Pt(s.minSpan,l,o,!0):null,s.maxSpan!=null?Pt(s.maxSpan,l,o,!0):null);var u=this._range,f=this._range=pr([Pt(i[0],o,l,!0),Pt(i[1],o,l,!0)]);return!u||u[0]!==f[0]||u[1]!==f[1]},e.prototype._updateView=function(t){var a=this._displayables,n=this._handleEnds,i=pr(n.slice()),o=this._size;A([0,1],function(c){var p=a.handles[c],d=this._handleHeight;p.attr({scaleX:d/2,scaleY:d/2,x:n[c]+(c?-1:1),y:o[1]/2-d/2})},this),a.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var s={x:i[0],width:i[1]-i[0]};a.moveHandle&&(a.moveHandle.setShape(s),a.moveZone.setShape(s),a.moveZone.getBoundingRect(),a.moveHandleIcon&&a.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=a.dataShadowSegs,u=[0,i[0],i[1],o[0]],f=0;fa[0]||n[1]<0||n[1]>a[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,s=this._updateInterval("all",n[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var a=t.offsetX,n=t.offsetY;this._brushStart=new lt(a,n),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(!!this._brushing){var a=this._displayables.brushRect;if(this._brushing=!1,!!a){a.attr("ignore",!0);var n=a.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(n.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=pr([Pt(n.x,o,s,!0),Pt(n.x+n.width,o,s,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(Ta(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,a){var n=this._displayables,i=this.dataZoomModel,o=n.brushRect;o||(o=n.brushRect=new mu({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(t,a),f=l.transformCoordToLocal(s.x,s.y),h=this._size;u[0]=Math.max(Math.min(h[0],u[0]),0),o.setShape({x:f[0],y:0,width:u[0]-f[0],height:h[1]})},e.prototype._dispatchZoomAction=function(t){var a=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?aX:null,start:a[0],end:a[1]})},e.prototype._findCoordRect=function(){var t,a=fL(this.dataZoomModel).infoList;if(!t&&a.length){var n=a[0].model.coordinateSystem;t=n.getRect&&n.getRect()}if(!t){var i=this.api.getWidth(),o=this.api.getHeight();t={x:i*.2,y:o*.2,width:i*.6,height:o*.6}}return t},e.type="dataZoom.slider",e}(um);function iX(r){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[r]}function _I(r){return r==="vertical"?"ns-resize":"ew-resize"}var oX=nX;function SI(r){r.registerComponentModel(Q9),r.registerComponentView(oX),fm(r)}function sX(r){ct(gI),ct(SI)}var lX={get:function(r,e,t){var a=tt((uX[r]||{})[e]);return t&&z(a)?a[a.length-1]:a}},uX={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},xI=lX,bI=we.mapVisual,fX=we.eachVisual,hX=z,wI=A,vX=pr,cX=Pt,pX=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.stateList=["inRange","outOfRange"],t.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],t.layoutMode={type:"box",ignoreSize:!0},t.dataBound=[-Infinity,Infinity],t.targetVisuals={},t.controllerVisuals={},t}return e.prototype.init=function(t,a,n){this.mergeDefaultAndTheme(t,n)},e.prototype.optionUpdated=function(t,a){var n=this.option;!a&&GL(n,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var a=this.stateList;t=Y(t,this),this.controllerVisuals=_m(this.option.controller,a,t),this.targetVisuals=_m(this.option.target,a,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,a=[];return t==null||t==="all"?this.ecModel.eachSeries(function(n,i){a.push(i)}):a=Ot(t),a},e.prototype.eachTargetSeries=function(t,a){A(this.getTargetSeriesIndices(),function(n){var i=this.ecModel.getSeriesByIndex(n);i&&t.call(a,i)},this)},e.prototype.isTargetSeries=function(t){var a=!1;return this.eachTargetSeries(function(n){n===t&&(a=!0)}),a},e.prototype.formatValueText=function(t,a,n){var i=this.option,o=i.precision,s=this.dataBound,l=i.formatter,u;n=n||["<",">"],z(t)&&(t=t.slice(),u=!0);var f=a?t:u?[h(t[0]),h(t[1])]:h(t);if(U(l))return l.replace("{value}",u?f[0]:f).replace("{value2}",u?f[1]:f);if($(l))return u?l(t[0],t[1]):l(t);if(u)return t[0]===s[0]?n[0]+" "+f[1]:t[1]===s[1]?n[1]+" "+f[0]:f[0]+" - "+f[1];return f;function h(v){return v===s[0]?"min":v===s[1]?"max":(+v).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,a=vX([t.min,t.max]);this._dataExtent=a},e.prototype.getDataDimensionIndex=function(t){var a=this.option.dimension;if(a!=null)return t.getDimensionIndex(a);for(var n=t.dimensions,i=n.length-1;i>=0;i--){var o=n[i],s=t.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,a=this.option,n={inRange:a.inRange,outOfRange:a.outOfRange},i=a.target||(a.target={}),o=a.controller||(a.controller={});ot(i,n),ot(o,n);var s=this.isCategory();l.call(this,i),l.call(this,o),u.call(this,i,"inRange","outOfRange"),f.call(this,o);function l(h){hX(a.color)&&!h.inRange&&(h.inRange={color:a.color.slice().reverse()}),h.inRange=h.inRange||{color:t.get("gradientColor")}}function u(h,v,c){var p=h[v],d=h[c];p&&!d&&(d=h[c]={},wI(p,function(g,y){if(!!we.isValidType(y)){var m=xI.get(y,"inactive",s);m!=null&&(d[y]=m,y==="color"&&!d.hasOwnProperty("opacity")&&!d.hasOwnProperty("colorAlpha")&&(d.opacity=[0,0]))}}))}function f(h){var v=(h.inRange||{}).symbol||(h.outOfRange||{}).symbol,c=(h.inRange||{}).symbolSize||(h.outOfRange||{}).symbolSize,p=this.get("inactiveColor"),d=this.getItemSymbol(),g=d||"roundRect";wI(this.stateList,function(y){var m=this.itemSize,_=h[y];_||(_=h[y]={color:s?p:[p]}),_.symbol==null&&(_.symbol=v&&tt(v)||(s?g:[g])),_.symbolSize==null&&(_.symbolSize=c&&tt(c)||(s?m[0]:[m[0],m[0]])),_.symbol=bI(_.symbol,function(x){return x==="none"?g:x});var S=_.symbolSize;if(S!=null){var b=-Infinity;fX(S,function(x){x>b&&(b=x)}),_.symbolSize=bI(S,function(x){return cX(x,[0,b],[0,m[0]],!0)})}},this)}},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},e}(At),Mv=pX,TI=[20,140],dX=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(t,a){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(n){n.mappingMethod="linear",n.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){r.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=TI[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=TI[1])},e.prototype._resetRange=function(){var t=this.getExtent(),a=this.option.range;!a||a.auto?(t.auto=1,this.option.range=t):z(a)&&(a[0]>a[1]&&a.reverse(),a[0]=Math.max(a[0],t[0]),a[1]=Math.min(a[1],t[1]))},e.prototype.completeVisualOption=function(){r.prototype.completeVisualOption.apply(this,arguments),A(this.stateList,function(t){var a=this.option.controller[t].symbolSize;a&&a[0]!==a[1]&&(a[0]=a[1]/3)},this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),a=pr((this.get("range")||[]).slice());return a[0]>t[1]&&(a[0]=t[1]),a[1]>t[1]&&(a[1]=t[1]),a[0]=n[1]||t<=a[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var a=[];return this.eachTargetSeries(function(n){var i=[],o=n.getData();o.each(this.getDataDimensionIndex(o),function(s,l){t[0]<=s&&s<=t[1]&&i.push(l)},this),a.push({seriesId:n.id,dataIndex:i})},this),a},e.prototype.getVisualMeta=function(t){var a=CI(this,"outOfRange",this.getExtent()),n=CI(this,"inRange",this.option.range.slice()),i=[];function o(c,p){i.push({value:c,color:t(c,p)})}for(var s=0,l=0,u=n.length,f=a.length;lt[1])break;i.push({color:this.getControllerVisual(l,"color",a),offset:s/n})}return i.push({color:this.getControllerVisual(t[1],"color",a),offset:1}),i},e.prototype._createBarPoints=function(t,a){var n=this.visualMapModel.itemSize;return[[n[0]-a[0],t[0]],[n[0],t[0]],[n[0],t[1]],[n[0]-a[1],t[1]]]},e.prototype._createBarGroup=function(t){var a=this._orient,n=this.visualMapModel.get("inverse");return new rt(a==="horizontal"&&!n?{scaleX:t==="bottom"?1:-1,rotation:Math.PI/2}:a==="horizontal"&&n?{scaleX:t==="bottom"?-1:1,rotation:-Math.PI/2}:a==="vertical"&&!n?{scaleX:t==="left"?1:-1,scaleY:-1}:{scaleX:t==="left"?1:-1})},e.prototype._updateHandle=function(t,a){if(!!this._useHandle){var n=this._shapes,i=this.visualMapModel,o=n.handleThumbs,s=n.handleLabels,l=i.itemSize,u=i.getExtent();mX([0,1],function(f){var h=o[f];h.setStyle("fill",a.handlesColor[f]),h.y=t[f];var v=ya(t[f],[0,l[1]],u,!0),c=this.getControllerVisual(v,"symbolSize");h.scaleX=h.scaleY=c/l[0],h.x=l[0]-c/2;var p=Gr(n.handleLabelPoints[f],Di(h,this.group));s[f].setStyle({x:p[0],y:p[1],text:i.formatValueText(this._dataInterval[f]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",n.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(t,a,n,i){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],f=this._shapes,h=f.indicator;if(!!h){h.attr("invisible",!1);var v={convertOpacityToAlpha:!0},c=this.getControllerVisual(t,"color",v),p=this.getControllerVisual(t,"symbolSize"),d=ya(t,s,u,!0),g=l[0]-p/2,y={x:h.x,y:h.y};h.y=d,h.x=g;var m=Gr(f.indicatorLabelPoint,Di(h,this.group)),_=f.indicatorLabel;_.attr("invisible",!1);var S=this._applyTransform("left",f.mainGroup),b=this._orient,x=b==="horizontal";_.setStyle({text:(n||"")+o.formatValueText(a),verticalAlign:x?S:"middle",align:x?"center":S});var w={x:g,y:d,style:{fill:c}},T={style:{x:m[0],y:m[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var C={duration:100,easing:"cubicInOut",additive:!0};h.x=y.x,h.y=y.y,h.animateTo(w,C),_.animateTo(T,C)}else h.attr(w),_.attr(T);this._firstShowIndicator=!1;var M=this._shapes.handleLabels;if(M)for(var D=0;Do[1]&&(h[1]=Infinity),a&&(h[0]===-Infinity?this._showIndicator(f,h[1],"< ",l):h[1]===Infinity?this._showIndicator(f,h[0],"> ",l):this._showIndicator(f,f,"\u2248 ",l));var v=this._hoverLinkDataIndices,c=[];(a||PI(n))&&(c=this._hoverLinkDataIndices=n.findTargetDataIndices(h));var p=rR(v,c);this._dispatchHighDown("downplay",Dv(p[0],n)),this._dispatchHighDown("highlight",Dv(p[1],n))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var a;if(Li(t.target,function(l){var u=nt(l);if(u.dataIndex!=null)return a=u,!0},!0),!!a){var n=this.ecModel.getSeriesByIndex(a.seriesIndex),i=this.visualMapModel;if(!!i.isTargetSeries(n)){var o=n.getData(a.dataType),s=o.getStore().get(i.getDataDimensionIndex(o),a.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var a=this._shapes.handleLabels;if(a)for(var n=0;n=0&&(i.dimension=o,a.push(i))}}),r.getData().setVisual("visualMeta",a)}}];function MX(r,e,t,a){for(var n=e.targetVisuals[a],i=we.prepareVisualTypes(n),o={color:wl(r.getData(),"color")},s=0,l=i.length;s0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),r.registerAction(TX,CX),A(AX,function(e){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,e)}),r.registerPreprocessor(DX))}function NI(r){r.registerComponentModel(gX),r.registerComponentView(wX),OI(r)}var LX=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._pieceList=[],t}return e.prototype.optionUpdated=function(t,a){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var n=this._mode=this._determineMode();this._pieceList=[],IX[this._mode].call(this,this._pieceList),this._resetSelected(t,a);var i=this.option.categories;this.resetVisual(function(o,s){n==="categories"?(o.mappingMethod="category",o.categories=tt(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=G(this._pieceList,function(l){return l=tt(l),s!=="inRange"&&(l.visual=null),l}))})},e.prototype.completeVisualOption=function(){var t=this.option,a={},n=we.listVisualTypes(),i=this.isCategory();A(t.pieces,function(s){A(n,function(l){s.hasOwnProperty(l)&&(a[l]=1)})}),A(a,function(s,l){var u=!1;A(this.stateList,function(f){u=u||o(t,f,l)||o(t.target,f,l)},this),!u&&A(this.stateList,function(f){(t[f]||(t[f]={}))[l]=xI.get(l,f==="inRange"?"active":"inactive",i)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}r.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,a){var n=this.option,i=this._pieceList,o=(a?n:t).selected||{};if(n.selected=o,A(i,function(l,u){var f=this.getSelectedMapKey(l);o.hasOwnProperty(f)||(o[f]=!0)},this),n.selectedMode==="single"){var s=!1;A(i,function(l,u){var f=this.getSelectedMapKey(l);o[f]&&(s?o[f]=!1:s=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return this._mode==="categories"?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=tt(t)},e.prototype.getValueState=function(t){var a=we.findPieceIndex(t,this._pieceList);return a!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[a])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var a=[],n=this._pieceList;return this.eachTargetSeries(function(i){var o=[],s=i.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var f=we.findPieceIndex(l,n);f===t&&o.push(u)},this),a.push({seriesId:i.id,dataIndex:o})},this),a},e.prototype.getRepresentValue=function(t){var a;if(this.isCategory())a=t.value;else if(t.value!=null)a=t.value;else{var n=t.interval||[];a=n[0]===-Infinity&&n[1]===Infinity?0:(n[0]+n[1])/2}return a},e.prototype.getVisualMeta=function(t){if(this.isCategory())return;var a=[],n=["",""],i=this;function o(f,h){var v=i.getRepresentValue({interval:f});h||(h=i.getValueState(v));var c=t(v,h);f[0]===-Infinity?n[0]=c:f[1]===Infinity?n[1]=c:a.push({value:f[0],color:c},{value:f[1],color:c})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-Infinity,Infinity]});else{var l=s[0].interval[0];l!==-Infinity&&s.unshift({interval:[-Infinity,l]}),l=s[s.length-1].interval[1],l!==Infinity&&s.push({interval:[l,Infinity]})}var u=-Infinity;return A(s,function(f){var h=f.interval;h&&(h[0]>u&&o([u,h[0]],"outOfRange"),o(h.slice()),u=h[1])},this),{stops:a,outerColors:n}},e.type="visualMap.piecewise",e.defaultOption=cn(Mv.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e}(Mv),IX={splitNumber:function(r){var e=this.option,t=Math.min(e.precision,20),a=this.getExtent(),n=e.splitNumber;n=Math.max(parseInt(n,10),1),e.splitNumber=n;for(var i=(a[1]-a[0])/n;+i.toFixed(t)!==i&&t<5;)t++;e.precision=t,i=+i.toFixed(t),e.minOpen&&r.push({interval:[-Infinity,a[0]],close:[0,0]});for(var o=0,s=a[0];o","\u2265"][a[0]]];t.text=t.text||this.formatValueText(t.value!=null?t.value:t.interval,!1,n)},this)}};function BI(r,e){var t=r.inverse;(r.orient==="vertical"?!t:t)&&e.reverse()}var PX=LX,RX=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.doRender=function(){var t=this.group;t.removeAll();var a=this.visualMapModel,n=a.get("textGap"),i=a.textStyleModel,o=i.getFont(),s=i.getTextColor(),l=this._getItemAlign(),u=a.itemSize,f=this._getViewData(),h=f.endsText,v=ce(a.get("showLabel",!0),!h);h&&this._renderEndsText(t,h[0],u,v,l),A(f.viewPieceList,function(c){var p=c.piece,d=new rt;d.onclick=Y(this._onItemClick,this,p),this._enableHoverLink(d,c.indexInModelPieceList);var g=a.getRepresentValue(p);if(this._createItemSymbol(d,g,[0,0,u[0],u[1]]),v){var y=this.visualMapModel.getValueState(g);d.add(new Ct({style:{x:l==="right"?-n:u[0]+n,y:u[1]/2,text:p.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:y==="outOfRange"?.5:1}}))}t.add(d)},this),h&&this._renderEndsText(t,h[1],u,v,l),xi(a.get("orient"),t,a.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,a){var n=this;t.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(o){var s=n.visualMapModel;s.option.hoverLink&&n.api.dispatchAction({type:o,batch:Dv(s.findTargetDataIndices(a),s)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,a=t.option;if(a.orient==="vertical")return DI(t,this.api,t.itemSize);var n=a.align;return(!n||n==="auto")&&(n="left"),n},e.prototype._renderEndsText=function(t,a,n,i,o){if(!!a){var s=new rt,l=this.visualMapModel.textStyleModel;s.add(new Ct({style:Bt(l,{x:i?o==="right"?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?o:"center",text:a})})),t.add(s)}},e.prototype._getViewData=function(){var t=this.visualMapModel,a=G(t.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),n=t.get("text"),i=t.get("orient"),o=t.get("inverse");return(i==="horizontal"?o:!o)?a.reverse():n&&(n=n.slice().reverse()),{viewPieceList:a,endsText:n}},e.prototype._createItemSymbol=function(t,a,n){t.add(re(this.getControllerVisual(a,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(a,"color")))},e.prototype._onItemClick=function(t){var a=this.visualMapModel,n=a.option,i=n.selectedMode;if(!!i){var o=tt(n.selected),s=a.getSelectedMapKey(t);i==="single"||i===!0?(o[s]=!0,A(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},e.type="visualMap.piecewise",e}(AI),EX=RX;function VI(r){r.registerComponentModel(PX),r.registerComponentView(EX),OI(r)}function kX(r){ct(NI),ct(VI)}var OX={label:{enabled:!0},decal:{show:!1}},zI=xt(),NX={};function BX(r,e){var t=r.getModel("aria");if(!t.get("enabled"))return;var a=tt(OX);ot(a.label,r.getLocaleModel().get("aria"),!1),ot(t.option,a,!1),n(),i();function n(){var u=t.getModel("decal"),f=u.get("show");if(f){var h=q();r.eachSeries(function(v){if(!v.isColorBySeries()){var c=h.get(v.type);c||(c={},h.set(v.type,c)),zI(v).scope=c}}),r.eachRawSeries(function(v){if(r.isSeriesFiltered(v))return;if($(v.enableAriaDecal)){v.enableAriaDecal();return}var c=v.getData();if(v.isColorBySeries()){var m=Pp(v.ecModel,v.name,NX,r.getSeriesCount()),_=c.getVisual("decal");c.setVisual("decal",S(_,m))}else{var p=v.getRawData(),d={},g=zI(v).scope;c.each(function(b){var x=c.getRawIndex(b);d[x]=b});var y=p.count();p.each(function(b){var x=d[b],w=p.getName(b)||b+"",T=Pp(v.ecModel,w,g,y),C=c.getItemVisual(x,"decal");c.setItemVisual(x,"decal",S(C,T))})}function S(b,x){var w=b?B(B({},x),b):x;return w.dirty=!0,w}})}}function i(){var u=r.getLocaleModel().get("aria"),f=t.getModel("label");if(f.option=K(f.option,u),!!f.get("enabled")){var h=e.getZr().dom;if(f.get("description")){h.setAttribute("aria-label",f.get("description"));return}var v=r.getSeriesCount(),c=f.get(["data","maxCount"])||10,p=f.get(["series","maxCount"])||10,d=Math.min(v,p),g;if(!(v<1)){var y=s();if(y){var m=f.get(["general","withTitle"]);g=o(m,{title:y})}else g=f.get(["general","withoutTitle"]);var _=[],S=v>1?f.get(["series","multiple","prefix"]):f.get(["series","single","prefix"]);g+=o(S,{seriesCount:v}),r.eachSeries(function(T,C){if(C1?f.get(["series","multiple",L]):f.get(["series","single",L]),M=o(M,{seriesId:T.seriesIndex,seriesName:T.get("name"),seriesType:l(T.subType)});var I=T.getData();if(I.count()>c){var P=f.get(["data","partialData"]);M+=o(P,{displayCnt:c})}else M+=f.get(["data","allData"]);for(var R=f.get(["data","separator","middle"]),E=f.get(["data","separator","end"]),N=[],O=0;O":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},GX=function(){function r(e){var t=this._condVal=U(e)?new RegExp(e):hP(e)?e:null;if(t==null){var a="";Lt(a)}}return r.prototype.evaluate=function(e){var t=typeof e;return U(t)?this._condVal.test(e):Tt(t)?this._condVal.test(e+""):!1},r}(),FX=function(){function r(){}return r.prototype.evaluate=function(){return this.value},r}(),HX=function(){function r(){}return r.prototype.evaluate=function(){for(var e=this.children,t=0;t2&&a.push(n),n=[I,P]}function f(I,P,R,E){ds(I,R)&&ds(P,E)||n.push(I,P,R,E,R,E)}function h(I,P,R,E,N,O){var V=Math.abs(P-I),F=Math.tan(V/4)*4/3,W=PT:D2&&a.push(n),a}function Wm(r,e,t,a,n,i,o,s,l,u){if(ds(r,t)&&ds(e,a)&&ds(n,o)&&ds(i,s)){l.push(o,s);return}var f=2/u,h=f*f,v=o-r,c=s-e,p=Math.sqrt(v*v+c*c);v/=p,c/=p;var d=t-r,g=a-e,y=n-o,m=i-s,_=d*d+g*g,S=y*y+m*m;if(_=0&&T=0){l.push(o,s);return}var C=[],M=[];nn(r,t,n,o,.5,C),nn(e,a,i,s,.5,M),Wm(C[0],M[0],C[1],M[1],C[2],M[2],C[3],M[3],l,u),Wm(C[4],M[4],C[5],M[5],C[6],M[6],C[7],M[7],l,u)}function rK(r,e){var t=Hm(r),a=[];e=e||1;for(var n=0;n0)for(var u=0;uMath.abs(u),h=WI([l,u],f?0:1,e),v=(f?s:u)/h.length,c=0;cn,o=WI([a,n],i?0:1,e),s=i?"width":"height",l=i?"height":"width",u=i?"x":"y",f=i?"y":"x",h=r[s]/o.length,v=0;v1?null:new lt(d*l+r,d*u+e)}function iK(r,e,t){var a=new lt;lt.sub(a,t,e),a.normalize();var n=new lt;lt.sub(n,r,e);var i=n.dot(a);return i}function gs(r,e){var t=r[r.length-1];t&&t[0]===e[0]&&t[1]===e[1]||r.push(e)}function oK(r,e,t){for(var a=r.length,n=[],i=0;io?(u.x=f.x=s+i/2,u.y=l,f.y=l+o):(u.y=f.y=l+o/2,u.x=s,f.x=s+i),oK(e,u,f)}function Lv(r,e,t,a){if(t===1)a.push(e);else{var n=Math.floor(t/2),i=r(e);Lv(r,i[0],n,a),Lv(r,i[1],t-n,a)}return a}function sK(r,e){for(var t=[],a=0;a0)for(var b=a/t,x=-a/2;x<=a/2;x+=b){for(var w=Math.sin(x),T=Math.cos(x),C=0,_=0;_=0}var qI="__mOriginal_";function Pv(r,e,t){var a=qI+e,n=r[a]||r[e];r[a]||(r[a]=r[e]);var i=t.replace,o=t.after,s=t.before;r[e]=function(){var l=arguments,u;return s&&s.apply(this,l),i?u=i.apply(this,l):u=n.apply(this,l),o&&o.apply(this,l),u}}function Su(r,e){var t=qI+e;r[t]&&(r[e]=r[t],r[t]=null)}function jI(r,e){for(var t=0;t0;u/=2){var f=0,h=0;(r&u)>0&&(f=1),(e&u)>0&&(h=1),s+=u*u*(3*f^h),h===0&&(f===1&&(r=u-1-r,e=u-1-e),l=r,r=e,e=l)}return s}function Rv(r){var e=Infinity,t=Infinity,a=-Infinity,n=-Infinity,i=G(r,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),f=l.x+l.width/2+(u?u[4]:0),h=l.y+l.height/2+(u?u[5]:0);return e=Math.min(f,e),t=Math.min(h,t),a=Math.max(f,a),n=Math.max(h,n),[f,h]}),o=G(i,function(s,l){return{cp:s,z:gK(s[0],s[1],e,t,a,n),path:r[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function QI(r){return fK(r.path,r.count)}function Ym(){return{fromIndividuals:[],toIndividuals:[],count:0}}function yK(r,e,t){var a=[];function n(b){for(var x=0;x=0;n--)if(!t[n].many.length){var l=t[s].many;if(l.length<=1)if(s)s=0;else return t;var i=l.length,u=Math.ceil(i/2);t[n].many=l.slice(u,i),t[s].many=l.slice(0,u),s++}return t}var _K={clone:function(r){for(var e=[],t=1-Math.pow(1-r.path.style.opacity,1/r.count),a=0;a0))return;var s=a.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,f;JI(r)&&(u=r,f=e),JI(e)&&(u=e,f=r);function h(y,m,_,S,b){var x=y.many,w=y.one;if(x.length===1&&!b){var T=m?x[0]:w,C=m?w:x[0];if(Iv(T))h({many:[T],one:C},!0,_,S,!0);else{var M=s?K({delay:s(_,S)},l):l;Um(T,C,M),i(T,C,T,C,M)}}else for(var D=K({dividePath:_K[t],individualDelay:s&&function(N,O,V,F){return s(N+_,S)}},l),L=m?yK(x,w,D):mK(w,x,D),I=L.fromIndividuals,P=L.toIndividuals,R=I.length,E=0;Ee.length,c=u?tP(f,u):tP(v?e:r,[v?r:e]),p=0,d=0;deP))for(var n=a.getIndices(),i=xK(a),o=0;o0&&S.group.traverse(function(x){x instanceof pt&&!x.animators.length&&x.animateFrom({style:{opacity:0}},b)})})}function nP(r){var e=r.getModel("universalTransition").get("seriesKey");return e||r.id}function iP(r){return z(r)?r.sort().join(","):r}function En(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function TK(r,e){var t=q(),a=q(),n=q();A(r.oldSeries,function(o,s){var l=r.oldDataGroupIds[s],u=r.oldData[s],f=nP(o),h=iP(f);a.set(h,{dataGroupId:l,data:u}),z(f)&&A(f,function(v){n.set(v,{key:h,dataGroupId:l,data:u})})});function i(o){t.get(o)&&Ok("Duplicated seriesKey in universalTransition "+o)}return A(e.updatedSeries,function(o){if(o.isUniversalTransitionEnabled()&&o.isAnimationEnabled()){var s=o.get("dataGroupId"),l=o.getData(),u=nP(o),f=iP(u),h=a.get(f);if(h)t.set(f,{oldSeries:[{dataGroupId:h.dataGroupId,divide:En(h.data),data:h.data}],newSeries:[{dataGroupId:s,divide:En(l),data:l}]});else if(z(u)){var v=[];A(u,function(d){var g=a.get(d);g.data&&v.push({dataGroupId:g.dataGroupId,divide:En(g.data),data:g.data})}),v.length&&t.set(f,{oldSeries:v,newSeries:[{dataGroupId:s,data:l,divide:En(l)}]})}else{var c=n.get(u);if(c){var p=t.get(c.key);p||(p={oldSeries:[{dataGroupId:c.dataGroupId,data:c.data,divide:En(c.data)}],newSeries:[]},t.set(c.key,p)),p.newSeries.push({dataGroupId:s,data:l,divide:En(l)})}}}}),t}function oP(r,e){for(var t=0;t=0&&n.push({dataGroupId:e.oldDataGroupIds[s],data:e.oldData[s],divide:En(e.oldData[s]),dim:o.dimension})}),A(Ot(r.to),function(o){var s=oP(t.updatedSeries,o);if(s>=0){var l=t.updatedSeries[s].getData();i.push({dataGroupId:e.oldDataGroupIds[s],data:l,divide:En(l),dim:o.dimension})}}),n.length>0&&i.length>0&&aP(n,i,a)}function AK(r){r.registerUpdateLifecycle("series:beforeupdate",function(e,t,a){A(Ot(a.seriesTransition),function(n){A(Ot(n.to),function(i){for(var o=a.updatedSeries,s=0;s=0||b.relatedTarget.className.indexOf("".concat(de,"-item"))>=0))&&_(v.getValidValue()))},v.go=function(b){var Q=v.state.goInputText;Q!==""&&(b.keyCode===gt.ENTER||b.type==="click")&&(v.setState({goInputText:""}),v.props.quickGo(v.getValidValue()))},v}return(0,Wt.Z)(Y,[{key:"getValidValue",value:function(){var u=this.state.goInputText;return!u||isNaN(u)?void 0:Number(u)}},{key:"getPageSizeOptions",value:function(){var u=this.props,x=u.pageSize,S=u.pageSizeOptions;return S.some(function(b){return b.toString()===x.toString()})?S:S.concat([x.toString()]).sort(function(b,Q){var E=isNaN(Number(b))?0:Number(b),_=isNaN(Number(Q))?0:Number(Q);return E-_})}},{key:"render",value:function(){var u=this,x=this.props,S=x.pageSize,b=x.locale,Q=x.rootPrefixCls,E=x.changeSize,_=x.quickGo,de=x.goButton,se=x.selectComponentClass,Oe=x.buildOptionText,at=x.selectPrefixCls,fe=x.disabled,ot=this.state.goInputText,Ve="".concat(Q,"-options"),ce=se,Dt=null,lt=null,yt=null;if(!E&&!_)return null;var it=this.getPageSizeOptions();if(E&&ce){var Ge=it.map(function(st,ft){return O.createElement(ce.Option,{key:ft,value:st.toString()},(Oe||u.buildOptionText)(st))});Dt=O.createElement(ce,{disabled:fe,prefixCls:at,showSearch:!1,className:"".concat(Ve,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(S||it[0]).toString(),onChange:this.changeSize,getPopupContainer:function(ft){return ft.parentNode},"aria-label":b.page_size,defaultOpen:!1},Ge)}return _&&(de&&(yt=typeof de=="boolean"?O.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:fe,className:"".concat(Ve,"-quick-jumper-button")},b.jump_to_confirm):O.createElement("span",{onClick:this.go,onKeyUp:this.go},de)),lt=O.createElement("div",{className:"".concat(Ve,"-quick-jumper")},b.jump_to,O.createElement("input",{disabled:fe,type:"text",value:ot,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":b.page}),b.page,yt)),O.createElement("li",{className:"".concat(Ve)},Dt,lt)}}]),Y}(O.Component);bn.defaultProps={pageSizeOptions:["10","20","50","100"]};var $n=bn,Wn=f(81626);function pn(){}function Ot(z){var P=Number(z);return typeof P=="number"&&!isNaN(P)&&isFinite(P)&&Math.floor(P)===P}function xt(z,P,Y){return Y}function Zt(z,P,Y){var v=typeof z=="undefined"?P.pageSize:z;return Math.floor((Y.total-1)/v)+1}var hn=function(z){(0,Qt.Z)(Y,z);var P=(0,Pt.Z)(Y);function Y(v){var u;(0,jt.Z)(this,Y),u=P.call(this,v),u.getJumpPrevPage=function(){return Math.max(1,u.state.current-(u.props.showLessItems?3:5))},u.getJumpNextPage=function(){return Math.min(Zt(void 0,u.state,u.props),u.state.current+(u.props.showLessItems?3:5))},u.getItemIcon=function(E,_){var de=u.props.prefixCls,se=E||O.createElement("button",{type:"button","aria-label":_,className:"".concat(de,"-item-link")});return typeof E=="function"&&(se=O.createElement(E,(0,t.Z)({},u.props))),se},u.savePaginationNode=function(E){u.paginationNode=E},u.isValid=function(E){var _=u.props.total;return Ot(E)&&E!==u.state.current&&Ot(_)&&_>0},u.shouldDisplayQuickJumper=function(){var E=u.props,_=E.showQuickJumper,de=E.total,se=u.state.pageSize;return de<=se?!1:_},u.handleKeyDown=function(E){(E.keyCode===gt.ARROW_UP||E.keyCode===gt.ARROW_DOWN)&&E.preventDefault()},u.handleKeyUp=function(E){var _=u.getValidValue(E),de=u.state.currentInputValue;_!==de&&u.setState({currentInputValue:_}),E.keyCode===gt.ENTER?u.handleChange(_):E.keyCode===gt.ARROW_UP?u.handleChange(_-1):E.keyCode===gt.ARROW_DOWN&&u.handleChange(_+1)},u.handleBlur=function(E){var _=u.getValidValue(E);u.handleChange(_)},u.changePageSize=function(E){var _=u.state.current,de=Zt(E,u.state,u.props);_=_>de?de:_,de===0&&(_=u.state.current),typeof E=="number"&&("pageSize"in u.props||u.setState({pageSize:E}),"current"in u.props||u.setState({current:_,currentInputValue:_})),u.props.onShowSizeChange(_,E),"onChange"in u.props&&u.props.onChange&&u.props.onChange(_,E)},u.handleChange=function(E){var _=u.props,de=_.disabled,se=_.onChange,Oe=u.state,at=Oe.pageSize,fe=Oe.current,ot=Oe.currentInputValue;if(u.isValid(E)&&!de){var Ve=Zt(void 0,u.state,u.props),ce=E;return E>Ve?ce=Ve:E<1&&(ce=1),"current"in u.props||u.setState({current:ce}),ce!==ot&&u.setState({currentInputValue:ce}),se(ce,at),ce}return fe},u.prev=function(){u.hasPrev()&&u.handleChange(u.state.current-1)},u.next=function(){u.hasNext()&&u.handleChange(u.state.current+1)},u.jumpPrev=function(){u.handleChange(u.getJumpPrevPage())},u.jumpNext=function(){u.handleChange(u.getJumpNextPage())},u.hasPrev=function(){return u.state.current>1},u.hasNext=function(){return u.state.current2?de-2:0),Oe=2;Oe=S?Q=S:Q=Number(x),Q}},{key:"getShowSizeChanger",value:function(){var u=this.props,x=u.showSizeChanger,S=u.total,b=u.totalBoundaryShowSizeChanger;return typeof x!="undefined"?x:S>b}},{key:"renderPrev",value:function(u){var x=this.props,S=x.prevIcon,b=x.itemRender,Q=b(u,"prev",this.getItemIcon(S,"prev page")),E=!this.hasPrev();return(0,O.isValidElement)(Q)?(0,O.cloneElement)(Q,{disabled:E}):Q}},{key:"renderNext",value:function(u){var x=this.props,S=x.nextIcon,b=x.itemRender,Q=b(u,"next",this.getItemIcon(S,"next page")),E=!this.hasNext();return(0,O.isValidElement)(Q)?(0,O.cloneElement)(Q,{disabled:E}):Q}},{key:"render",value:function(){var u=this,x=this.props,S=x.prefixCls,b=x.className,Q=x.style,E=x.disabled,_=x.hideOnSinglePage,de=x.total,se=x.locale,Oe=x.showQuickJumper,at=x.showLessItems,fe=x.showTitle,ot=x.showTotal,Ve=x.simple,ce=x.itemRender,Dt=x.showPrevNextJumpers,lt=x.jumpPrevIcon,yt=x.jumpNextIcon,it=x.selectComponentClass,Ge=x.selectPrefixCls,st=x.pageSizeOptions,ft=this.state,Ze=ft.current,St=ft.pageSize,en=ft.currentInputValue;if(_===!0&&de<=St)return null;var He=Zt(void 0,this.state,this.props),$e=[],Tt=null,mt=null,gn=null,kn=null,vt=null,tn=Oe&&Oe.goButton,ht=at?1:2,nn=Ze-1>0?Ze-1:0,kt=Ze+1de?de:Ze*St]));if(Ve)return tn&&(typeof tn=="boolean"?vt=O.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},se.jump_to_confirm):vt=O.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},tn),vt=O.createElement("li",{title:fe?"".concat(se.jump_to).concat(Ze,"/").concat(He):null,className:"".concat(S,"-simple-pager")},vt)),O.createElement("ul",(0,N.Z)({className:I()(S,"".concat(S,"-simple"),(0,oe.Z)({},"".concat(S,"-disabled"),E),b),style:Q,ref:this.savePaginationNode},Kn),zt,O.createElement("li",{title:fe?se.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:I()("".concat(S,"-prev"),(0,oe.Z)({},"".concat(S,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},this.renderPrev(nn)),O.createElement("li",{title:fe?"".concat(Ze,"/").concat(He):null,className:"".concat(S,"-simple-pager")},O.createElement("input",{type:"text",value:en,disabled:E,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:"3"}),O.createElement("span",{className:"".concat(S,"-slash")},"/"),He),O.createElement("li",{title:fe?se.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:I()("".concat(S,"-next"),(0,oe.Z)({},"".concat(S,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(kt)),vt);if(He<=3+ht*2){var Et={locale:se,rootPrefixCls:S,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:fe,itemRender:ce};He||$e.push(O.createElement(It,(0,N.Z)({},Et,{key:"noPager",page:1,className:"".concat(S,"-item-disabled")})));for(var xn=1;xn<=He;xn+=1){var Hn=Ze===xn;$e.push(O.createElement(It,(0,N.Z)({},Et,{key:xn,page:xn,active:Hn})))}}else{var Un=at?se.prev_3:se.prev_5,wr=at?se.next_3:se.next_5;Dt&&(Tt=O.createElement("li",{title:fe?Un:null,key:"prev",onClick:this.jumpPrev,tabIndex:"0",onKeyPress:this.runIfEnterJumpPrev,className:I()("".concat(S,"-jump-prev"),(0,oe.Z)({},"".concat(S,"-jump-prev-custom-icon"),!!lt))},ce(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(lt,"prev page"))),mt=O.createElement("li",{title:fe?wr:null,key:"next",tabIndex:"0",onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:I()("".concat(S,"-jump-next"),(0,oe.Z)({},"".concat(S,"-jump-next-custom-icon"),!!yt))},ce(this.getJumpNextPage(),"jump-next",this.getItemIcon(yt,"next page")))),kn=O.createElement(It,{locale:se,last:!0,rootPrefixCls:S,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:He,page:He,active:!1,showTitle:fe,itemRender:ce}),gn=O.createElement(It,{locale:se,rootPrefixCls:S,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:fe,itemRender:ce});var jn=Math.max(1,Ze-ht),Gn=Math.min(Ze+ht,He);Ze-1<=ht&&(Gn=1+ht*2),He-Ze<=ht&&(jn=He-ht*2);for(var yn=jn;yn<=Gn;yn+=1){var Qn=Ze===yn;$e.push(O.createElement(It,{locale:se,rootPrefixCls:S,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:yn,page:yn,active:Qn,showTitle:fe,itemRender:ce}))}Ze-1>=ht*2&&Ze!==1+2&&($e[0]=(0,O.cloneElement)($e[0],{className:"".concat(S,"-item-after-jump-prev")}),$e.unshift(Tt)),He-Ze>=ht*2&&Ze!==He-2&&($e[$e.length-1]=(0,O.cloneElement)($e[$e.length-1],{className:"".concat(S,"-item-before-jump-next")}),$e.push(mt)),jn!==1&&$e.unshift(gn),Gn!==He&&$e.push(kn)}var Jn=!this.hasPrev()||!He,Xn=!this.hasNext()||!He;return O.createElement("ul",(0,N.Z)({className:I()(S,b,(0,oe.Z)({},"".concat(S,"-disabled"),E)),style:Q,ref:this.savePaginationNode},Kn),zt,O.createElement("li",{title:fe?se.prev_page:null,onClick:this.prev,tabIndex:Jn?null:0,onKeyPress:this.runIfEnterPrev,className:I()("".concat(S,"-prev"),(0,oe.Z)({},"".concat(S,"-disabled"),Jn)),"aria-disabled":Jn},this.renderPrev(nn)),$e,O.createElement("li",{title:fe?se.next_page:null,onClick:this.next,tabIndex:Xn?null:0,onKeyPress:this.runIfEnterNext,className:I()("".concat(S,"-next"),(0,oe.Z)({},"".concat(S,"-disabled"),Xn)),"aria-disabled":Xn},this.renderNext(kt)),O.createElement($n,{disabled:E,locale:se,rootPrefixCls:S,selectComponentClass:it,selectPrefixCls:Ge,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:Ze,pageSize:St,pageSizeOptions:st,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:tn}))}}],[{key:"getDerivedStateFromProps",value:function(u,x){var S={};if("current"in u&&(S.current=u.current,u.current!==x.current&&(S.currentInputValue=S.current)),"pageSize"in u&&u.pageSize!==x.pageSize){var b=x.current,Q=Zt(u.pageSize,x,u);b=b>Q?Q:b,"current"in u||(S.current=b,S.currentInputValue=b),S.pageSize=u.pageSize}return S}}]),Y}(O.Component);hn.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:pn,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:pn,locale:Wn.Z,style:{},itemRender:xt,totalBoundaryShowSizeChanger:50};var cn=hn,_t=f(62906),Cn=f(53124),In=f(25378),On=f(42051),qt=f(34041),Tn=function(P){return O.createElement(qt.Z,(0,N.Z)({},P,{size:"small"}))},un=function(P){return O.createElement(qt.Z,(0,N.Z)({},P,{size:"middle"}))};Tn.Option=qt.Z.Option,un.Option=qt.Z.Option;var Vn=function(z,P){var Y={};for(var v in z)Object.prototype.hasOwnProperty.call(z,v)&&P.indexOf(v)<0&&(Y[v]=z[v]);if(z!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,v=Object.getOwnPropertySymbols(z);u=r}function x(e){return e&&(0,oe.Z)(e)==="object"&&!Array.isArray(e)&&!t.isValidElement(e)}function S(e){return typeof e=="string"?!0:(0,xt.Yr)(e)}var b=function(n){var r=n.ellipsis,o=n.rowType,a=n.children,l,c=r===!0?{showTitle:!0}:r;return c&&(c.showTitle||o==="header")&&(typeof a=="string"||typeof a=="number"?l=a.toString():t.isValidElement(a)&&typeof a.props.children=="string"&&(l=a.props.children)),l};function Q(e,n){var r,o,a,l=e.prefixCls,c=e.className,s=e.record,i=e.index,m=e.renderIndex,p=e.dataIndex,d=e.render,h=e.children,C=e.component,y=C===void 0?"td":C,w=e.colSpan,g=e.rowSpan,R=e.fixLeft,T=e.fixRight,V=e.firstFixLeft,ne=e.lastFixLeft,W=e.firstFixRight,ee=e.lastFixRight,Ce=e.appendNode,X=e.additionalProps,j=X===void 0?{}:X,ge=e.ellipsis,ve=e.align,k=e.rowType,re=e.isSticky,H=e.hovering,ae=e.onHover,U="".concat(l,"-cell"),A=t.useContext(Y),B=t.useContext(On),Ie=t.useContext(z),ct=Ie.allColumnsFixedLeft,_e=t.useMemo(function(){if(Cn(h))return[h];var K=cn(s,p),Z=K,he=void 0;if(d){var Ue=d(K,s,m);x(Ue)?(Z=Ue.children,he=Ue.props,A.renderWithProps=!0):Z=Ue}return[Z,he]},[A.renderWithProps?Math.random():0,h,p,A,s,d,m]),ke=(0,D.Z)(_e,2),We=ke[0],De=ke[1],ut=We;(0,oe.Z)(ut)==="object"&&!Array.isArray(ut)&&!t.isValidElement(ut)&&(ut=null),ge&&(ne||W)&&(ut=t.createElement("span",{className:"".concat(U,"-content")},ut));var Je=De||{},Xe=Je.colSpan,Me=Je.rowSpan,qe=Je.style,wt=Je.className,Le=(0,Ot.Z)(Je,v),ze=(r=Xe!==void 0?Xe:w)!==null&&r!==void 0?r:1,xe=(o=Me!==void 0?Me:g)!==null&&o!==void 0?o:1;if(ze===0||xe===0)return null;var Ee={},we=typeof R=="number"&&B,nt=typeof T=="number"&&B;we&&(Ee.position="sticky",Ee.left=R),nt&&(Ee.position="sticky",Ee.right=T);var Ye={};ve&&(Ye.textAlign=ve);var Ct=function(Z){var he;s&&ae(i,i+xe-1),j==null||(he=j.onMouseEnter)===null||he===void 0||he.call(j,Z)},pe=function(Z){var he;s&&ae(-1,-1),j==null||(he=j.onMouseLeave)===null||he===void 0||he.call(j,Z)},te=b({rowType:k,ellipsis:ge,children:We}),G=(0,L.Z)((0,L.Z)((0,L.Z)({title:te},Le),j),{},{colSpan:ze!==1?ze:null,rowSpan:xe!==1?xe:null,className:q()(U,c,(a={},(0,N.Z)(a,"".concat(U,"-fix-left"),we&&B),(0,N.Z)(a,"".concat(U,"-fix-left-first"),V&&B),(0,N.Z)(a,"".concat(U,"-fix-left-last"),ne&&B),(0,N.Z)(a,"".concat(U,"-fix-left-all"),ne&&ct&&B),(0,N.Z)(a,"".concat(U,"-fix-right"),nt&&B),(0,N.Z)(a,"".concat(U,"-fix-right-first"),W&&B),(0,N.Z)(a,"".concat(U,"-fix-right-last"),ee&&B),(0,N.Z)(a,"".concat(U,"-ellipsis"),ge),(0,N.Z)(a,"".concat(U,"-with-append"),Ce),(0,N.Z)(a,"".concat(U,"-fix-sticky"),(we||nt)&&re&&B),(0,N.Z)(a,"".concat(U,"-row-hover"),!De&&H),a),j.className,wt),style:(0,L.Z)((0,L.Z)((0,L.Z)((0,L.Z)({},j.style),Ye),Ee),qe),onMouseEnter:Ct,onMouseLeave:pe,ref:S(y)?n:null});return t.createElement(y,G,Ce,ut)}var E=t.forwardRef(Q);E.displayName="Cell";var _=["expanded","className","hovering"],de=t.memo(E,function(e,n){return n.shouldCellUpdate?_.every(function(r){return e[r]===n[r]})&&!n.shouldCellUpdate(n.record,e.record):O()(e,n)}),se=t.forwardRef(function(e,n){var r=e.index,o=e.additionalProps,a=o===void 0?{}:o,l=e.colSpan,c=e.rowSpan,s=a.colSpan,i=a.rowSpan,m=l!=null?l:s,p=c!=null?c:i,d=Vn(Ne,function(y){var w=u(r,p||1,y==null?void 0:y.startRow,y==null?void 0:y.endRow);return{onHover:y==null?void 0:y.onHover,hovering:w}}),h=d.onHover,C=d.hovering;return t.createElement(de,(0,M.Z)({},e,{colSpan:m,rowSpan:p,hovering:C,ref:n,onHover:h}))});se.displayName="WrappedCell";var Oe=se,at=t.createContext(null),fe=at;function ot(e,n,r,o,a){var l=r[e]||{},c=r[n]||{},s,i;l.fixed==="left"?s=o.left[e]:c.fixed==="right"&&(i=o.right[n]);var m=!1,p=!1,d=!1,h=!1,C=r[n+1],y=r[e-1];if(a==="rtl"){if(s!==void 0){var w=y&&y.fixed==="left";h=!w}else if(i!==void 0){var g=C&&C.fixed==="right";d=!g}}else if(s!==void 0){var R=C&&C.fixed==="left";m=!R}else if(i!==void 0){var T=y&&y.fixed==="right";p=!T}return{fixLeft:s,fixRight:i,lastFixLeft:m,firstFixRight:p,lastFixRight:d,firstFixLeft:h,isSticky:o.isSticky}}function Ve(e){var n=e.cells,r=e.stickyOffsets,o=e.flattenColumns,a=e.rowComponent,l=e.cellComponent,c=e.onHeaderRow,s=e.index,i=t.useContext(fe),m=i.prefixCls,p=i.direction,d;c&&(d=c(n.map(function(C){return C.column}),s));var h=_t(n.map(function(C){return C.column}));return t.createElement(a,d,n.map(function(C,y){var w=C.column,g=ot(C.colStart,C.colEnd,o,r,p),R;return w&&w.onHeaderCell&&(R=C.column.onHeaderCell(w)),t.createElement(Oe,(0,M.Z)({},C,{ellipsis:w.ellipsis,align:w.align,component:l,prefixCls:m,key:h[y]},g,{additionalProps:R,rowType:"header"}))}))}Ve.displayName="HeaderRow";var ce=Ve;function Dt(e){var n=[];function r(c,s){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;n[i]=n[i]||[];var m=s,p=c.filter(Boolean).map(function(d){var h={key:d.key,className:d.className||"",children:d.title,column:d,colStart:m},C=1,y=d.children;return y&&y.length>0&&(C=r(y,m,i+1).reduce(function(w,g){return w+g},0),h.hasSubColumns=!0),"colSpan"in d&&(C=d.colSpan),"rowSpan"in d&&(h.rowSpan=d.rowSpan),h.colSpan=C,h.colEnd=h.colStart+C-1,n[i].push(h),m+=C,C});return p}r(e,0);for(var o=n.length,a=function(s){n[s].forEach(function(i){!("rowSpan"in i)&&!i.hasSubColumns&&(i.rowSpan=o-s)})},l=0;l1?we-1:0),Ye=1;Ye0?[].concat((0,I.Z)(n),(0,I.Z)(Un(l).map(function(c){return(0,L.Z)({fixed:a},c)}))):[].concat((0,I.Z)(n),[(0,L.Z)((0,L.Z)({},r),{},{fixed:a})])},[])}function wr(e){for(var n=!0,r=0;r=0;l-=1){var c=e[l];if(a&&c.fixed!=="right")a=!1;else if(!a&&c.fixed==="right"){warning(!1,"Index ".concat(l+1," of `columns` missing `fixed='right'` prop."));break}}}function jn(e){return e.map(function(n){var r=n.fixed,o=(0,Ot.Z)(n,xn),a=r;return r==="left"?a="right":r==="right"&&(a="left"),(0,L.Z)({fixed:a},o)})}function Gn(e,n){var r=e.prefixCls,o=e.columns,a=e.children,l=e.expandable,c=e.expandedKeys,s=e.columnTitle,i=e.getRowKey,m=e.onTriggerExpand,p=e.expandIcon,d=e.rowExpandable,h=e.expandIconColumnIndex,C=e.direction,y=e.expandRowByClick,w=e.columnWidth,g=e.fixed,R=t.useMemo(function(){return o||Hn(a)},[o,a]),T=t.useMemo(function(){if(l){var W,ee=R.slice();if(!ee.includes(zt)){var Ce=h||0;Ce>=0&&ee.splice(Ce,0,zt)}var X=ee.indexOf(zt);ee=ee.filter(function(k,re){return k!==zt||re===X});var j=R[X],ge;(g==="left"||g)&&!h?ge="left":(g==="right"||g)&&h===R.length?ge="right":ge=j?j.fixed:null;var ve=(W={},(0,N.Z)(W,kt,{className:"".concat(r,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,N.Z)(W,"title",s),(0,N.Z)(W,"fixed",ge),(0,N.Z)(W,"className","".concat(r,"-row-expand-icon-cell")),(0,N.Z)(W,"width",w),(0,N.Z)(W,"render",function(re,H,ae){var U=i(H,ae),A=c.has(U),B=d?d(H):!0,Ie=p({prefixCls:r,expanded:A,expandable:B,record:H,onExpand:m});return y?t.createElement("span",{onClick:function(_e){return _e.stopPropagation()}},Ie):Ie}),W);return ee.map(function(k){return k===zt?ve:k})}return R.filter(function(k){return k!==zt})},[l,R,i,c,p,C]),V=t.useMemo(function(){var W=T;return n&&(W=n(W)),W.length||(W=[{render:function(){return null}}]),W},[n,T,C]),ne=t.useMemo(function(){return C==="rtl"?jn(Un(V)):Un(V)},[V,C]);return[V,ne]}var yn=Gn;function Qn(e){var n=(0,t.useRef)(e),r=(0,t.useState)({}),o=(0,D.Z)(r,2),a=o[1],l=(0,t.useRef)(null),c=(0,t.useRef)([]);function s(i){c.current.push(i);var m=Promise.resolve();l.current=m,m.then(function(){if(l.current===m){var p=c.current,d=n.current;c.current=[],p.forEach(function(h){n.current=h(n.current)}),l.current=null,d!==n.current&&a({})}})}return(0,t.useEffect)(function(){return function(){l.current=null}},[]),[n.current,s]}function Jn(e){var n=(0,t.useRef)(e||null),r=(0,t.useRef)();function o(){window.clearTimeout(r.current)}function a(c){n.current=c,o(),r.current=window.setTimeout(function(){n.current=null,r.current=void 0},100)}function l(){return n.current}return(0,t.useEffect)(function(){return o},[]),[a,l]}function Xn(e,n,r){var o=(0,t.useMemo)(function(){for(var a=[],l=[],c=0,s=0,i=0;i=0;s-=1){var i=n[s],m=r&&r[s],p=m&&m[kt];if(i||p||c){var d=p||{},h=d.columnType,C=(0,Ot.Z)(d,Sn);a.unshift(t.createElement("col",(0,M.Z)({key:s,style:{width:i}},C))),c=!0}}return t.createElement("colgroup",null,a)}var br=ma;function pa(e){var n=e.className,r=e.children;return t.createElement("div",{className:n},r)}var Ir=pa,ha=t.createContext({}),Or=ha;function Ca(e){var n=e.className,r=e.index,o=e.children,a=e.colSpan,l=a===void 0?1:a,c=e.rowSpan,s=e.align,i=t.useContext(fe),m=i.prefixCls,p=i.direction,d=t.useContext(Or),h=d.scrollColumnIndex,C=d.stickyOffsets,y=d.flattenColumns,w=r+l-1,g=w+1===h?l+1:l,R=ot(r,r+g-1,y,C,p);return t.createElement(Oe,(0,M.Z)({className:n,index:r,component:"td",prefixCls:m,record:null,dataIndex:null,align:s,colSpan:g,rowSpan:c,render:function(){return o}},R))}var ga=["children"];function xa(e){var n=e.children,r=(0,Ot.Z)(e,ga);return t.createElement("tr",r,n)}function cr(e){var n=e.children;return n}cr.Row=xa,cr.Cell=Ca;var Tr=cr;function ya(e){var n=e.children,r=e.stickyOffsets,o=e.flattenColumns,a=t.useContext(fe),l=a.prefixCls,c=o.length-1,s=o[c],i=t.useMemo(function(){return{stickyOffsets:r,flattenColumns:o,scrollColumnIndex:(s==null?void 0:s.scrollbar)?c:null}},[s,o,c,r]);return t.createElement(Or.Provider,{value:i},t.createElement("tfoot",{className:"".concat(l,"-summary")},n))}var qn=ya,kr=Tr;function Sa(e){var n,r=e.prefixCls,o=e.record,a=e.onExpand,l=e.expanded,c=e.expandable,s="".concat(r,"-row-expand-icon");if(!c)return t.createElement("span",{className:q()(s,"".concat(r,"-row-spaced"))});var i=function(p){a(o,p),p.stopPropagation()};return t.createElement("span",{className:q()(s,(n={},(0,N.Z)(n,"".concat(r,"-row-expanded"),l),(0,N.Z)(n,"".concat(r,"-row-collapsed"),!l),n)),onClick:i})}function Ea(e,n,r){var o=[];function a(l){(l||[]).forEach(function(c,s){o.push(n(c,s)),a(c[r])})}return a(e),o}var er=f(64019),Kr=f(27678),Ra=function(n,r){var o,a,l=n.scrollBodyRef,c=n.onScroll,s=n.offsetScroll,i=n.container,m=t.useContext(fe),p=m.prefixCls,d=((o=l.current)===null||o===void 0?void 0:o.scrollWidth)||0,h=((a=l.current)===null||a===void 0?void 0:a.clientWidth)||0,C=d&&h*(h/d),y=t.useRef(),w=Qn({scrollLeft:0,isHiddenScrollBar:!1}),g=(0,D.Z)(w,2),R=g[0],T=g[1],V=t.useRef({delta:0,x:0}),ne=t.useState(!1),W=(0,D.Z)(ne,2),ee=W[0],Ce=W[1],X=function(){Ce(!1)},j=function(H){H.persist(),V.current.delta=H.pageX-R.scrollLeft,V.current.x=0,Ce(!0),H.preventDefault()},ge=function(H){var ae,U=H||((ae=window)===null||ae===void 0?void 0:ae.event),A=U.buttons;if(!ee||A===0){ee&&Ce(!1);return}var B=V.current.x+H.pageX-V.current.x-V.current.delta;B<=0&&(B=0),B+C>=h&&(B=h-C),c({scrollLeft:B/h*(d+2)}),V.current.x=H.pageX},ve=function(){if(!!l.current){var H=(0,Kr.os)(l.current).top,ae=H+l.current.offsetHeight,U=i===window?document.documentElement.scrollTop+window.innerHeight:(0,Kr.os)(i).top+i.clientHeight;ae-(0,gt.Z)()<=U||H>=U-s?T(function(A){return(0,L.Z)((0,L.Z)({},A),{},{isHiddenScrollBar:!0})}):T(function(A){return(0,L.Z)((0,L.Z)({},A),{},{isHiddenScrollBar:!1})})}},k=function(H){T(function(ae){return(0,L.Z)((0,L.Z)({},ae),{},{scrollLeft:H/d*h||0})})};return t.useImperativeHandle(r,function(){return{setScrollLeft:k}}),t.useEffect(function(){var re=(0,er.Z)(document.body,"mouseup",X,!1),H=(0,er.Z)(document.body,"mousemove",ge,!1);return ve(),function(){re.remove(),H.remove()}},[C,ee]),t.useEffect(function(){var re=(0,er.Z)(i,"scroll",ve,!1),H=(0,er.Z)(window,"resize",ve,!1);return function(){re.remove(),H.remove()}},[i]),t.useEffect(function(){R.isHiddenScrollBar||T(function(re){var H=l.current;return H?(0,L.Z)((0,L.Z)({},re),{},{scrollLeft:H.scrollLeft/H.scrollWidth*H.clientWidth}):re})},[R.isHiddenScrollBar]),d<=h||!C||R.isHiddenScrollBar?null:t.createElement("div",{style:{height:(0,gt.Z)(),width:h,bottom:s},className:"".concat(p,"-sticky-scroll")},t.createElement("div",{onMouseDown:j,ref:y,className:q()("".concat(p,"-sticky-scroll-bar"),(0,N.Z)({},"".concat(p,"-sticky-scroll-bar-active"),ee)),style:{width:"".concat(C,"px"),transform:"translate3d(".concat(R.scrollLeft,"px, 0, 0)")}}))},Na=t.forwardRef(Ra),Pa=f(98924),Mr=(0,Pa.Z)()?window:null;function Za(e,n){var r=(0,oe.Z)(e)==="object"?e:{},o=r.offsetHeader,a=o===void 0?0:o,l=r.offsetSummary,c=l===void 0?0:l,s=r.offsetScroll,i=s===void 0?0:s,m=r.getContainer,p=m===void 0?function(){return Mr}:m,d=p()||Mr;return t.useMemo(function(){var h=!!e;return{isSticky:h,stickyClassName:h?"".concat(n,"-sticky-holder"):"",offsetHeader:a,offsetSummary:c,offsetScroll:i,container:d}},[i,a,c,n,d])}var wa=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function ba(e,n){return(0,t.useMemo)(function(){for(var r=[],o=0;o=0})},[l]),ge=l[l.length-1],ve={fixed:ge?ge.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(V,"-cell-scrollbar")}}},k=(0,t.useMemo)(function(){return ee?[].concat((0,I.Z)(a),[ve]):a},[ee,a]),re=(0,t.useMemo)(function(){return ee?[].concat((0,I.Z)(l),[ve]):l},[ee,l]),H=(0,t.useMemo)(function(){var U=i.right,A=i.left;return(0,L.Z)((0,L.Z)({},i),{},{left:m==="rtl"?[].concat((0,I.Z)(A.map(function(B){return B+ee})),[0]):A,right:m==="rtl"?U:[].concat((0,I.Z)(U.map(function(B){return B+ee})),[0]),isSticky:W})},[ee,i,W]),ae=ba(c,s);return t.createElement("div",{style:(0,L.Z)({overflow:"hidden"},W?{top:d,bottom:h}:{}),ref:X,className:q()(r,(0,N.Z)({},C,!!C))},t.createElement("table",{style:{tableLayout:"fixed",visibility:o||ae?null:"hidden"}},(!o||!w||j)&&t.createElement(br,{colWidths:ae?[].concat((0,I.Z)(ae),[ee]):[],columCount:s+1,columns:re}),g((0,L.Z)((0,L.Z)({},R),{},{stickyOffsets:H,columns:k,flattenColumns:re}))))});Lr.displayName="FixedHolder";var Dr=Lr,Ia=[],Oa={},tr="rc-table-internal-hook",Ta=t.memo(function(e){var n=e.children;return n},function(e,n){return O()(e.props,n.props)?e.pingLeft!==n.pingLeft||e.pingRight!==n.pingRight:!1});function Mn(e){var n,r=e.prefixCls,o=e.className,a=e.rowClassName,l=e.style,c=e.data,s=e.rowKey,i=e.scroll,m=e.tableLayout,p=e.direction,d=e.title,h=e.footer,C=e.summary,y=e.id,w=e.showHeader,g=e.components,R=e.emptyText,T=e.onRow,V=e.onHeaderRow,ne=e.internalHooks,W=e.transformColumns,ee=e.internalRefs,Ce=e.sticky,X=c||Ia,j=!!X.length,ge=t.useCallback(function(ie,Se){return cn(g||{},ie)||Se},[g]),ve=t.useMemo(function(){return typeof s=="function"?s:function(ie){var Se=ie&&ie[s];return Se}},[s]),k=Kn(e),re=k.expandIcon,H=k.expandedRowKeys,ae=k.defaultExpandedRowKeys,U=k.defaultExpandAllRows,A=k.expandedRowRender,B=k.columnTitle,Ie=k.onExpand,ct=k.onExpandedRowsChange,_e=k.expandRowByClick,ke=k.rowExpandable,We=k.expandIconColumnIndex,De=k.expandedRowClassName,ut=k.childrenColumnName,Je=k.indentSize,Xe=re||Sa,Me=ut||"children",qe=t.useMemo(function(){return A?"row":e.expandable&&ne===tr&&e.expandable.__PARENT_RENDER_ICON__||X.some(function(ie){return ie&&(0,oe.Z)(ie)==="object"&&ie[Me]})?"nest":!1},[!!A,X]),wt=t.useState(function(){return ae||(U?Ea(X,ve,Me):[])}),Le=(0,D.Z)(wt,2),ze=Le[0],xe=Le[1],Ee=t.useMemo(function(){return new Set(H||ze||[])},[H,ze]),we=t.useCallback(function(ie){var Se=ve(ie,X.indexOf(ie)),rt,$t=Ee.has(Se);$t?(Ee.delete(Se),rt=(0,I.Z)(Ee)):rt=[].concat((0,I.Z)(Ee),[Se]),xe(rt),Ie&&Ie(!$t,ie),ct&&ct(rt)},[ve,Ee,X,Ie,ct]),nt=t.useState(0),Ye=(0,D.Z)(nt,2),Ct=Ye[0],pe=Ye[1],te=yn((0,L.Z)((0,L.Z)((0,L.Z)({},e),k),{},{expandable:!!A,columnTitle:B,expandedKeys:Ee,getRowKey:ve,onTriggerExpand:we,expandIcon:Xe,expandIconColumnIndex:We,direction:p}),ne===tr?W:null),G=(0,D.Z)(te,2),K=G[0],Z=G[1],he=t.useMemo(function(){return{columns:K,flattenColumns:Z}},[K,Z]),Ue=t.useRef(),et=t.useRef(),Qe=t.useRef(),ye=t.useRef(),J=t.useRef(),Re=t.useState(!1),Fe=(0,D.Z)(Re,2),Kt=Fe[0],Gt=Fe[1],Ft=t.useState(!1),En=(0,D.Z)(Ft,2),Rn=En[0],Mt=En[1],Lt=Qn(new Map),zn=(0,D.Z)(Lt,2),Nn=zn[0],At=zn[1],fn=_t(Z),Vt=fn.map(function(ie){return Nn.get(ie)}),Fn=t.useMemo(function(){return Vt},[Vt.join("_")]),le=_n(Fn,Z.length,p),F=i&&Cn(i.y),Ke=i&&Cn(i.x)||Boolean(k.fixed),be=Ke&&Z.some(function(ie){var Se=ie.fixed;return Se}),tt=t.useRef(),Te=Za(Ce,r),Ae=Te.isSticky,Jt=Te.offsetHeader,vn=Te.offsetSummary,Pn=Te.offsetScroll,An=Te.stickyClassName,Xt=Te.container,pt=C==null?void 0:C(X),Ht=(F||Ae)&&t.isValidElement(pt)&&pt.type===Tr&&pt.props.fixed,Ut,Rt,an;F&&(Rt={overflowY:"scroll",maxHeight:i.y}),Ke&&(Ut={overflowX:"auto"},F||(Rt={overflowY:"hidden"}),an={width:(i==null?void 0:i.x)===!0?"auto":i==null?void 0:i.x,minWidth:"100%"});var on=t.useCallback(function(ie,Se){(0,jt.Z)(Ue.current)&&At(function(rt){if(rt.get(ie)!==Se){var $t=new Map(rt);return $t.set(ie,Se),$t}return rt})},[]),Zn=Jn(null),ln=(0,D.Z)(Zn,2),wn=ln[0],ue=ln[1];function me(ie,Se){!Se||(typeof Se=="function"?Se(ie):Se.scrollLeft!==ie&&(Se.scrollLeft=ie))}var Be=function(Se){var rt=Se.currentTarget,$t=Se.scrollLeft,Uo=p==="rtl",mn=typeof $t=="number"?$t:rt.scrollLeft,va=rt||Oa;if(!ue()||ue()===va){var Nr;wn(va),me(mn,et.current),me(mn,Qe.current),me(mn,J.current),me(mn,(Nr=tt.current)===null||Nr===void 0?void 0:Nr.setScrollLeft)}if(rt){var Pr=rt.scrollWidth,Zr=rt.clientWidth;if(Pr===Zr){Gt(!1),Mt(!1);return}Uo?(Gt(-mn0)):(Gt(mn>0),Mt(mn1&&arguments[1]!==void 0?arguments[1]:{},r=n.getContainer,o=r===void 0?function(){return window}:r,a=n.callback,l=n.duration,c=l===void 0?450:l,s=o(),i=$a(s,!0),m=Date.now(),p=function d(){var h=Date.now(),C=h-m,y=Ba(C>c?c:C,i,e,c);dr(s)?s.scrollTo(window.pageXOffset,y):s instanceof Document||s.constructor.name==="HTMLDocument"?s.documentElement.scrollTop=y:s.scrollTop=y,C0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1},Re=J.confirm,Fe=J.closeDropdown;Re&&Le([]),Fe&&k(!1),qe(""),B(W?(ee||[]).map(function(Kt){return String(Kt)}):[])},Ee=function(){var J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0},Re=J.closeDropdown;Re&&k(!1),Le(A())},we=function(J){J&&H!==void 0&&B(H||[]),k(J),!J&&!a.filterDropdown&&ze()},nt=q()((0,N.Z)({},"".concat(l,"-menu-without-submenu"),!co(a.filters||[]))),Ye=function(J){if(J.target.checked){var Re=Dn(a==null?void 0:a.filters).map(function(Fe){return String(Fe)});B(Re)}else B([])},Ct=function ye(J){var Re=J.filters;return(Re||[]).map(function(Fe,Kt){var Gt=String(Fe.value),Ft={title:Fe.text,key:Fe.value!==void 0?Gt:Kt};return Fe.children&&(Ft.children=ye({filters:Fe.children})),Ft})},pe=function ye(J){var Re;return(0,M.Z)((0,M.Z)({},J),{text:J.title,value:J.key,children:((Re=J.children)===null||Re===void 0?void 0:Re.map(function(Fe){return ye(Fe)}))||[]})},te;if(typeof a.filterDropdown=="function")te=a.filterDropdown({prefixCls:"".concat(l,"-custom"),setSelectedKeys:function(J){return Ie({selectedKeys:J})},selectedKeys:A(),confirm:Ee,clearFilters:xe,filters:a.filters,visible:re,close:function(){k(!1)}});else if(a.filterDropdown)te=a.filterDropdown;else{var G=A()||[],K=function(){return(a.filters||[]).length===0?t.createElement(Wr.Z,{image:Wr.Z.PRESENTED_IMAGE_SIMPLE,description:y.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):m==="tree"?t.createElement(t.Fragment,null,t.createElement(Hr,{filterSearch:d,value:Me,onChange:wt,tablePrefixCls:r,locale:y}),t.createElement("div",{className:"".concat(r,"-filter-dropdown-tree")},s?t.createElement(ar.Z,{checked:G.length===Dn(a.filters).length,indeterminate:G.length>0&&G.length0?l:e}),h=Math.ceil((l||e)/d.pageSize);d.current>h&&(d.current=h||1);var C=function(g,R){p({current:g!=null?g:1,pageSize:R||d.pageSize})},y=function(g,R){var T;n&&((T=n.onChange)===null||T===void 0||T.call(n,g,R)),C(g,R),r(g,R||(d==null?void 0:d.pageSize))};return n===!1?[{},function(){}]:[(0,M.Z)((0,M.Z)({},d),{onChange:y}),C]}var yo=f(99809),So=f(57254),_r=f(10225),vr=f(17341),Eo=f(1089),Ro=f(21770),dn={},mr="SELECT_ALL",pr="SELECT_INVERT",hr="SELECT_NONE",qr=[];function ea(e,n){var r=[];return(e||[]).forEach(function(o){r.push(o),o&&(0,oe.Z)(o)==="object"&&n in o&&(r=[].concat((0,I.Z)(r),(0,I.Z)(ea(o[n],n))))}),r}function No(e,n){var r=e||{},o=r.preserveSelectedRowKeys,a=r.selectedRowKeys,l=r.defaultSelectedRowKeys,c=r.getCheckboxProps,s=r.onChange,i=r.onSelect,m=r.onSelectAll,p=r.onSelectInvert,d=r.onSelectNone,h=r.onSelectMultiple,C=r.columnWidth,y=r.type,w=r.selections,g=r.fixed,R=r.renderCell,T=r.hideSelectAll,V=r.checkStrictly,ne=V===void 0?!0:V,W=n.prefixCls,ee=n.data,Ce=n.pageData,X=n.getRecordByKey,j=n.getRowKey,ge=n.expandType,ve=n.childrenColumnName,k=n.locale,re=n.getPopupContainer,H=(0,Ro.Z)(a||l||qr,{value:a}),ae=(0,D.Z)(H,2),U=ae[0],A=ae[1],B=t.useRef(new Map),Ie=(0,t.useCallback)(function(pe){if(o){var te=new Map;pe.forEach(function(G){var K=X(G);!K&&B.current.has(G)&&(K=B.current.get(G)),te.set(G,K)}),B.current=te}},[X,o]);t.useEffect(function(){Ie(U)},[U]);var ct=(0,t.useMemo)(function(){return ne?{keyEntities:null}:(0,Eo.I8)(ee,{externalGetKey:j,childrenPropName:ve})},[ee,j,ne,ve]),_e=ct.keyEntities,ke=(0,t.useMemo)(function(){return ea(Ce,ve)},[Ce,ve]),We=(0,t.useMemo)(function(){var pe=new Map;return ke.forEach(function(te,G){var K=j(te,G),Z=(c?c(te):null)||{};pe.set(K,Z)}),pe},[ke,j,c]),De=(0,t.useCallback)(function(pe){var te;return!!((te=We.get(j(pe)))===null||te===void 0?void 0:te.disabled)},[We,j]),ut=(0,t.useMemo)(function(){if(ne)return[U||[],[]];var pe=(0,vr.S)(U,!0,_e,De),te=pe.checkedKeys,G=pe.halfCheckedKeys;return[te||[],G]},[U,ne,_e,De]),Je=(0,D.Z)(ut,2),Xe=Je[0],Me=Je[1],qe=(0,t.useMemo)(function(){var pe=y==="radio"?Xe.slice(0,1):Xe;return new Set(pe)},[Xe,y]),wt=(0,t.useMemo)(function(){return y==="radio"?new Set:new Set(Me)},[Me,y]),Le=(0,t.useState)(null),ze=(0,D.Z)(Le,2),xe=ze[0],Ee=ze[1];t.useEffect(function(){e||A(qr)},[!!e]);var we=(0,t.useCallback)(function(pe,te){var G,K;Ie(pe),o?(G=pe,K=pe.map(function(Z){return B.current.get(Z)})):(G=[],K=[],pe.forEach(function(Z){var he=X(Z);he!==void 0&&(G.push(Z),K.push(he))})),A(G),s==null||s(G,K,{type:te})},[A,X,s,o]),nt=(0,t.useCallback)(function(pe,te,G,K){if(i){var Z=G.map(function(he){return X(he)});i(X(pe),te,Z,K)}we(G,"single")},[i,X,we]),Ye=(0,t.useMemo)(function(){if(!w||T)return null;var pe=w===!0?[mr,pr,hr]:w;return pe.map(function(te){return te===mr?{key:"all",text:k.selectionAll,onSelect:function(){we(ee.map(function(K,Z){return j(K,Z)}).filter(function(K){var Z=We.get(K);return!(Z==null?void 0:Z.disabled)||qe.has(K)}),"all")}}:te===pr?{key:"invert",text:k.selectInvert,onSelect:function(){var K=new Set(qe);Ce.forEach(function(he,Ue){var et=j(he,Ue),Qe=We.get(et);(Qe==null?void 0:Qe.disabled)||(K.has(et)?K.delete(et):K.add(et))});var Z=Array.from(K);p&&p(Z),we(Z,"invert")}}:te===hr?{key:"none",text:k.selectNone,onSelect:function(){d==null||d(),we(Array.from(qe).filter(function(K){var Z=We.get(K);return Z==null?void 0:Z.disabled}),"none")}}:te}).map(function(te){return(0,M.Z)((0,M.Z)({},te),{onSelect:function(){for(var K,Z,he=arguments.length,Ue=new Array(he),et=0;et2&&arguments[2]!==void 0?arguments[2]:!1,je=(0,M.Z)((0,M.Z)({},K),me);Bt&&(K.resetPagination(),je.pagination.current&&(je.pagination.current=1),p&&p.onChange&&p.onChange(1,je.pagination.pageSize)),ge&&ge.scrollToFirstRowOnChange!==!1&&Ye.body.current&&Wa(0,{getContainer:function(){return Ye.body.current}}),T==null||T(je.pagination,je.filters,je.sorter,{currentDataSource:Yr(xr(Me,je.sorterStates,we),je.filterStates),action:Be})},he=function(me,Be){Z({sorter:me,sorterStates:Be},"sort",!1)},Ue=Io({prefixCls:Le,mergedColumns:B,onSorterChange:he,sortDirections:ve||["ascend","descend"],tableLocale:Xe,showSorterTooltip:H}),et=(0,D.Z)(Ue,4),Qe=et[0],ye=et[1],J=et[2],Re=et[3],Fe=t.useMemo(function(){return xr(Me,ye,we)},[Me,ye]);K.sorter=Re(),K.sorterStates=ye;var Kt=function(me,Be){Z({filters:me,filterStates:Be},"filter",!0)},Gt=mo({prefixCls:Le,locale:Xe,dropdownPrefixCls:ze,mergedColumns:B,onFilterChange:Kt,getPopupContainer:V}),Ft=(0,D.Z)(Gt,3),En=Ft[0],Rn=Ft[1],Mt=Ft[2],Lt=Yr(Fe,Rn);K.filters=Mt,K.filterStates=Rn;var zn=t.useMemo(function(){var ue={};return Object.keys(Mt).forEach(function(me){Mt[me]!==null&&(ue[me]=Mt[me])}),(0,M.Z)((0,M.Z)({},J),{filters:ue})},[J,Mt]),Nn=Oo(zn),At=(0,D.Z)(Nn,1),fn=At[0],Vt=function(me,Be){Z({pagination:(0,M.Z)((0,M.Z)({},K.pagination),{current:me,pageSize:Be})},"paginate")},Fn=xo(Lt.length,p,Vt),le=(0,D.Z)(Fn,2),F=le[0],Ke=le[1];K.pagination=p===!1?{}:Co(p,F),K.resetPagination=Ke;var be=t.useMemo(function(){if(p===!1||!F.pageSize)return Lt;var ue=F.current,me=ue===void 0?1:ue,Be=F.total,Bt=F.pageSize,je=Bt===void 0?Qr:Bt;return Lt.lengthje?Lt.slice((me-1)*je,me*je):Lt:Lt.slice((me-1)*je,me*je)},[!!p,Lt,F&&F.current,F&&F.pageSize,F&&F.total]),tt=No(d,{prefixCls:Le,data:Lt,pageData:be,getRowKey:Ct,getRecordByKey:G,expandType:nt,childrenColumnName:we,locale:Xe,getPopupContainer:V}),Te=(0,D.Z)(tt,2),Ae=Te[0],Jt=Te[1],vn=function(me,Be,Bt){var je;return typeof y=="function"?je=q()(y(me,Be,Bt)):je=q()(y),q()((0,N.Z)({},"".concat(Le,"-row-selected"),Jt.has(Ct(me,Be))),je)};xe.__PARENT_RENDER_ICON__=xe.expandIcon,xe.expandIcon=xe.expandIcon||W||Ja(Xe),nt==="nest"&&xe.expandIconColumnIndex===void 0?xe.expandIconColumnIndex=d?1:0:xe.expandIconColumnIndex>0&&d&&(xe.expandIconColumnIndex-=1),typeof xe.indentSize!="number"&&(xe.indentSize=typeof j=="number"?j:15);var Pn=t.useCallback(function(ue){return fn(Ae(En(Qe(ue))))},[Qe,En,Ae]),An,Xt;if(p!==!1&&(F==null?void 0:F.total)){var pt;F.size?pt=F.size:pt=Je==="small"||Je==="middle"?"small":void 0;var Ht=function(me){return t.createElement(Fa.Z,(0,M.Z)({},F,{className:q()("".concat(Le,"-pagination ").concat(Le,"-pagination-").concat(me),F.className),size:pt}))},Ut=ut==="rtl"?"left":"right",Rt=F.position;if(Rt!==null&&Array.isArray(Rt)){var an=Rt.find(function(ue){return ue.includes("top")}),on=Rt.find(function(ue){return ue.includes("bottom")}),Zn=Rt.every(function(ue){return"".concat(ue)==="none"});!an&&!on&&!Zn&&(Xt=Ht(Ut)),an&&(An=Ht(an.toLowerCase().replace("top",""))),on&&(Xt=Ht(on.toLowerCase().replace("bottom","")))}else Xt=Ht(Ut)}var ln;typeof ne=="boolean"?ln={spinning:ne}:(0,oe.Z)(ne)==="object"&&(ln=(0,M.Z)({spinning:!0},ne));var wn=q()("".concat(Le,"-wrapper"),(0,N.Z)({},"".concat(Le,"-wrapper-rtl"),ut==="rtl"),a);return t.createElement("div",{ref:n,className:wn,style:l},t.createElement(Aa.Z,(0,M.Z)({spinning:!1},ln),An,t.createElement(zr,(0,M.Z)({},Ie,{columns:B,direction:ut,expandable:xe,prefixCls:Le,className:q()((r={},(0,N.Z)(r,"".concat(Le,"-middle"),Je==="middle"),(0,N.Z)(r,"".concat(Le,"-small"),Je==="small"),(0,N.Z)(r,"".concat(Le,"-bordered"),s),(0,N.Z)(r,"".concat(Le,"-empty"),Me.length===0),r)),data:be,rowKey:Ct,rowClassName:vn,emptyText:k&&k.emptyText||(De||Ma.Z)("Table"),internalHooks:tr,internalRefs:Ye,transformColumns:Pn})),Xt))}var Ko=t.forwardRef(ko),rn=Ko;rn.SELECTION_COLUMN=dn,rn.EXPAND_COLUMN=zr.EXPAND_COLUMN,rn.SELECTION_ALL=mr,rn.SELECTION_INVERT=pr,rn.SELECTION_NONE=hr,rn.Column=Ha,rn.ColumnGroup=ja,rn.Summary=kr;var Mo=rn,Lo=Mo},66456:function(Yt,bt,f){"use strict";var oe=f(38663),N=f.n(oe),M=f(31242),D=f.n(M),dt=f(57663),q=f(63185),L=f(59250),I=f(13254),t=f(47673),jt=f(14781),Wt=f(88983),Qt=f(20228),Pt=f(22385),O=f(32157)},7573:function(Yt,bt,f){"use strict";f.d(bt,{Z:function(){return Vn}});var oe=f(93549),N=f(96156),M=f(90484),D=f(22122),dt=f(80766),q=f(94184),L=f.n(q),I=f(67294),t=f(53124),jt=f(33603),Wt=4;function Qt($){var Ne,Pe=$.dropPosition,z=$.dropLevelOffset,P=$.prefixCls,Y=$.indent,v=$.direction,u=v===void 0?"ltr":v,x=u==="ltr"?"left":"right",S=u==="ltr"?"right":"left",b=(Ne={},(0,N.Z)(Ne,x,-z*Y+Wt),(0,N.Z)(Ne,S,0),Ne);switch(Pe){case-1:b.top=-3;break;case 1:b.bottom=-3;break;default:b.bottom=-3,b[x]=Y+Wt;break}return I.createElement("div",{style:b,className:"".concat(P,"-drop-indicator")})}var Pt=f(61639),O=I.forwardRef(function($,Ne){var Pe,z=I.useContext(t.E_),P=z.getPrefixCls,Y=z.direction,v=z.virtual,u=$.prefixCls,x=$.className,S=$.showIcon,b=S===void 0?!1:S,Q=$.showLine,E=$.switcherIcon,_=$.blockNode,de=_===void 0?!1:_,se=$.children,Oe=$.checkable,at=Oe===void 0?!1:Oe,fe=$.selectable,ot=fe===void 0?!0:fe,Ve=$.draggable,ce=$.motion,Dt=ce===void 0?(0,D.Z)((0,D.Z)({},jt.ZP),{motionAppear:!1}):ce,lt=P("tree",u),yt=(0,D.Z)((0,D.Z)({},$),{checkable:at,selectable:ot,showIcon:b,motion:Dt,blockNode:de,showLine:Boolean(Q),dropIndicatorRender:Qt}),it=I.useMemo(function(){if(!Ve)return!1;var Ge={};switch((0,M.Z)(Ve)){case"function":Ge.nodeDraggable=Ve;break;case"object":Ge=(0,D.Z)({},Ve);break;default:break}return Ge.icon!==!1&&(Ge.icon=Ge.icon||I.createElement(dt.Z,null)),Ge},[Ve]);return I.createElement(oe.Z,(0,D.Z)({itemHeight:20,ref:Ne,virtual:v},yt,{prefixCls:lt,className:L()((Pe={},(0,N.Z)(Pe,"".concat(lt,"-icon-hide"),!b),(0,N.Z)(Pe,"".concat(lt,"-block-node"),de),(0,N.Z)(Pe,"".concat(lt,"-unselectable"),!ot),(0,N.Z)(Pe,"".concat(lt,"-rtl"),Y==="rtl"),Pe),x),direction:Y,checkable:at&&I.createElement("span",{className:"".concat(lt,"-checkbox-inner")}),selectable:ot,switcherIcon:function(st){return(0,Pt.Z)(lt,E,Q,st)},draggable:it}),se)}),sn=O,It=f(85061),gt=f(28481),bn=f(86504),$n=f(91816),Wn=f(63258),pn=f(10225),Ot=f(1089),xt;(function($){$[$.None=0]="None",$[$.Start=1]="Start",$[$.End=2]="End"})(xt||(xt={}));function Zt($,Ne){function Pe(z){var P=z.key,Y=z.children;Ne(P,z)!==!1&&Zt(Y||[],Ne)}$.forEach(Pe)}function hn($){var Ne=$.treeData,Pe=$.expandedKeys,z=$.startKey,P=$.endKey,Y=[],v=xt.None;if(z&&z===P)return[z];if(!z||!P)return[];function u(x){return x===z||x===P}return Zt(Ne,function(x){if(v===xt.End)return!1;if(u(x)){if(Y.push(x),v===xt.None)v=xt.Start;else if(v===xt.Start)return v=xt.End,!1}else v===xt.Start&&Y.push(x);return Pe.includes(x)}),Y}function cn($,Ne){var Pe=(0,It.Z)(Ne),z=[];return Zt($,function(P,Y){var v=Pe.indexOf(P);return v!==-1&&(z.push(Y),Pe.splice(v,1)),!!Pe.length}),z}var _t=function($,Ne){var Pe={};for(var z in $)Object.prototype.hasOwnProperty.call($,z)&&Ne.indexOf(z)<0&&(Pe[z]=$[z]);if($!=null&&typeof Object.getOwnPropertySymbols=="function")for(var P=0,z=Object.getOwnPropertySymbols($);P=0||b.relatedTarget.className.indexOf("".concat(de,"-item"))>=0))&&_(v.getValidValue()))},v.go=function(b){var Q=v.state.goInputText;Q!==""&&(b.keyCode===gt.ENTER||b.type==="click")&&(v.setState({goInputText:""}),v.props.quickGo(v.getValidValue()))},v}return(0,Wt.Z)(Y,[{key:"getValidValue",value:function(){var u=this.state.goInputText;return!u||isNaN(u)?void 0:Number(u)}},{key:"getPageSizeOptions",value:function(){var u=this.props,x=u.pageSize,S=u.pageSizeOptions;return S.some(function(b){return b.toString()===x.toString()})?S:S.concat([x.toString()]).sort(function(b,Q){var E=isNaN(Number(b))?0:Number(b),_=isNaN(Number(Q))?0:Number(Q);return E-_})}},{key:"render",value:function(){var u=this,x=this.props,S=x.pageSize,b=x.locale,Q=x.rootPrefixCls,E=x.changeSize,_=x.quickGo,de=x.goButton,se=x.selectComponentClass,Oe=x.buildOptionText,at=x.selectPrefixCls,fe=x.disabled,ot=this.state.goInputText,Ve="".concat(Q,"-options"),ce=se,Dt=null,lt=null,yt=null;if(!E&&!_)return null;var it=this.getPageSizeOptions();if(E&&ce){var Ge=it.map(function(st,ft){return O.createElement(ce.Option,{key:ft,value:st.toString()},(Oe||u.buildOptionText)(st))});Dt=O.createElement(ce,{disabled:fe,prefixCls:at,showSearch:!1,className:"".concat(Ve,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(S||it[0]).toString(),onChange:this.changeSize,getPopupContainer:function(ft){return ft.parentNode},"aria-label":b.page_size,defaultOpen:!1},Ge)}return _&&(de&&(yt=typeof de=="boolean"?O.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:fe,className:"".concat(Ve,"-quick-jumper-button")},b.jump_to_confirm):O.createElement("span",{onClick:this.go,onKeyUp:this.go},de)),lt=O.createElement("div",{className:"".concat(Ve,"-quick-jumper")},b.jump_to,O.createElement("input",{disabled:fe,type:"text",value:ot,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":b.page}),b.page,yt)),O.createElement("li",{className:"".concat(Ve)},Dt,lt)}}]),Y}(O.Component);bn.defaultProps={pageSizeOptions:["10","20","50","100"]};var $n=bn,Wn=f(81626);function pn(){}function Ot(z){var P=Number(z);return typeof P=="number"&&!isNaN(P)&&isFinite(P)&&Math.floor(P)===P}function xt(z,P,Y){return Y}function Zt(z,P,Y){var v=typeof z=="undefined"?P.pageSize:z;return Math.floor((Y.total-1)/v)+1}var hn=function(z){(0,Qt.Z)(Y,z);var P=(0,Pt.Z)(Y);function Y(v){var u;(0,jt.Z)(this,Y),u=P.call(this,v),u.getJumpPrevPage=function(){return Math.max(1,u.state.current-(u.props.showLessItems?3:5))},u.getJumpNextPage=function(){return Math.min(Zt(void 0,u.state,u.props),u.state.current+(u.props.showLessItems?3:5))},u.getItemIcon=function(E,_){var de=u.props.prefixCls,se=E||O.createElement("button",{type:"button","aria-label":_,className:"".concat(de,"-item-link")});return typeof E=="function"&&(se=O.createElement(E,(0,t.Z)({},u.props))),se},u.savePaginationNode=function(E){u.paginationNode=E},u.isValid=function(E){var _=u.props.total;return Ot(E)&&E!==u.state.current&&Ot(_)&&_>0},u.shouldDisplayQuickJumper=function(){var E=u.props,_=E.showQuickJumper,de=E.total,se=u.state.pageSize;return de<=se?!1:_},u.handleKeyDown=function(E){(E.keyCode===gt.ARROW_UP||E.keyCode===gt.ARROW_DOWN)&&E.preventDefault()},u.handleKeyUp=function(E){var _=u.getValidValue(E),de=u.state.currentInputValue;_!==de&&u.setState({currentInputValue:_}),E.keyCode===gt.ENTER?u.handleChange(_):E.keyCode===gt.ARROW_UP?u.handleChange(_-1):E.keyCode===gt.ARROW_DOWN&&u.handleChange(_+1)},u.handleBlur=function(E){var _=u.getValidValue(E);u.handleChange(_)},u.changePageSize=function(E){var _=u.state.current,de=Zt(E,u.state,u.props);_=_>de?de:_,de===0&&(_=u.state.current),typeof E=="number"&&("pageSize"in u.props||u.setState({pageSize:E}),"current"in u.props||u.setState({current:_,currentInputValue:_})),u.props.onShowSizeChange(_,E),"onChange"in u.props&&u.props.onChange&&u.props.onChange(_,E)},u.handleChange=function(E){var _=u.props,de=_.disabled,se=_.onChange,Oe=u.state,at=Oe.pageSize,fe=Oe.current,ot=Oe.currentInputValue;if(u.isValid(E)&&!de){var Ve=Zt(void 0,u.state,u.props),ce=E;return E>Ve?ce=Ve:E<1&&(ce=1),"current"in u.props||u.setState({current:ce}),ce!==ot&&u.setState({currentInputValue:ce}),se(ce,at),ce}return fe},u.prev=function(){u.hasPrev()&&u.handleChange(u.state.current-1)},u.next=function(){u.hasNext()&&u.handleChange(u.state.current+1)},u.jumpPrev=function(){u.handleChange(u.getJumpPrevPage())},u.jumpNext=function(){u.handleChange(u.getJumpNextPage())},u.hasPrev=function(){return u.state.current>1},u.hasNext=function(){return u.state.current2?de-2:0),Oe=2;Oe=S?Q=S:Q=Number(x),Q}},{key:"getShowSizeChanger",value:function(){var u=this.props,x=u.showSizeChanger,S=u.total,b=u.totalBoundaryShowSizeChanger;return typeof x!="undefined"?x:S>b}},{key:"renderPrev",value:function(u){var x=this.props,S=x.prevIcon,b=x.itemRender,Q=b(u,"prev",this.getItemIcon(S,"prev page")),E=!this.hasPrev();return(0,O.isValidElement)(Q)?(0,O.cloneElement)(Q,{disabled:E}):Q}},{key:"renderNext",value:function(u){var x=this.props,S=x.nextIcon,b=x.itemRender,Q=b(u,"next",this.getItemIcon(S,"next page")),E=!this.hasNext();return(0,O.isValidElement)(Q)?(0,O.cloneElement)(Q,{disabled:E}):Q}},{key:"render",value:function(){var u=this,x=this.props,S=x.prefixCls,b=x.className,Q=x.style,E=x.disabled,_=x.hideOnSinglePage,de=x.total,se=x.locale,Oe=x.showQuickJumper,at=x.showLessItems,fe=x.showTitle,ot=x.showTotal,Ve=x.simple,ce=x.itemRender,Dt=x.showPrevNextJumpers,lt=x.jumpPrevIcon,yt=x.jumpNextIcon,it=x.selectComponentClass,Ge=x.selectPrefixCls,st=x.pageSizeOptions,ft=this.state,Ze=ft.current,St=ft.pageSize,en=ft.currentInputValue;if(_===!0&&de<=St)return null;var He=Zt(void 0,this.state,this.props),$e=[],Tt=null,mt=null,gn=null,kn=null,vt=null,tn=Oe&&Oe.goButton,ht=at?1:2,nn=Ze-1>0?Ze-1:0,kt=Ze+1de?de:Ze*St]));if(Ve)return tn&&(typeof tn=="boolean"?vt=O.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},se.jump_to_confirm):vt=O.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},tn),vt=O.createElement("li",{title:fe?"".concat(se.jump_to).concat(Ze,"/").concat(He):null,className:"".concat(S,"-simple-pager")},vt)),O.createElement("ul",(0,N.Z)({className:I()(S,"".concat(S,"-simple"),(0,oe.Z)({},"".concat(S,"-disabled"),E),b),style:Q,ref:this.savePaginationNode},Kn),zt,O.createElement("li",{title:fe?se.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:I()("".concat(S,"-prev"),(0,oe.Z)({},"".concat(S,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},this.renderPrev(nn)),O.createElement("li",{title:fe?"".concat(Ze,"/").concat(He):null,className:"".concat(S,"-simple-pager")},O.createElement("input",{type:"text",value:en,disabled:E,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:"3"}),O.createElement("span",{className:"".concat(S,"-slash")},"/"),He),O.createElement("li",{title:fe?se.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:I()("".concat(S,"-next"),(0,oe.Z)({},"".concat(S,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(kt)),vt);if(He<=3+ht*2){var Et={locale:se,rootPrefixCls:S,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:fe,itemRender:ce};He||$e.push(O.createElement(It,(0,N.Z)({},Et,{key:"noPager",page:1,className:"".concat(S,"-item-disabled")})));for(var xn=1;xn<=He;xn+=1){var Hn=Ze===xn;$e.push(O.createElement(It,(0,N.Z)({},Et,{key:xn,page:xn,active:Hn})))}}else{var Un=at?se.prev_3:se.prev_5,wr=at?se.next_3:se.next_5;Dt&&(Tt=O.createElement("li",{title:fe?Un:null,key:"prev",onClick:this.jumpPrev,tabIndex:"0",onKeyPress:this.runIfEnterJumpPrev,className:I()("".concat(S,"-jump-prev"),(0,oe.Z)({},"".concat(S,"-jump-prev-custom-icon"),!!lt))},ce(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(lt,"prev page"))),mt=O.createElement("li",{title:fe?wr:null,key:"next",tabIndex:"0",onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:I()("".concat(S,"-jump-next"),(0,oe.Z)({},"".concat(S,"-jump-next-custom-icon"),!!yt))},ce(this.getJumpNextPage(),"jump-next",this.getItemIcon(yt,"next page")))),kn=O.createElement(It,{locale:se,last:!0,rootPrefixCls:S,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:He,page:He,active:!1,showTitle:fe,itemRender:ce}),gn=O.createElement(It,{locale:se,rootPrefixCls:S,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:fe,itemRender:ce});var jn=Math.max(1,Ze-ht),Gn=Math.min(Ze+ht,He);Ze-1<=ht&&(Gn=1+ht*2),He-Ze<=ht&&(jn=He-ht*2);for(var yn=jn;yn<=Gn;yn+=1){var Qn=Ze===yn;$e.push(O.createElement(It,{locale:se,rootPrefixCls:S,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:yn,page:yn,active:Qn,showTitle:fe,itemRender:ce}))}Ze-1>=ht*2&&Ze!==1+2&&($e[0]=(0,O.cloneElement)($e[0],{className:"".concat(S,"-item-after-jump-prev")}),$e.unshift(Tt)),He-Ze>=ht*2&&Ze!==He-2&&($e[$e.length-1]=(0,O.cloneElement)($e[$e.length-1],{className:"".concat(S,"-item-before-jump-next")}),$e.push(mt)),jn!==1&&$e.unshift(gn),Gn!==He&&$e.push(kn)}var Jn=!this.hasPrev()||!He,Xn=!this.hasNext()||!He;return O.createElement("ul",(0,N.Z)({className:I()(S,b,(0,oe.Z)({},"".concat(S,"-disabled"),E)),style:Q,ref:this.savePaginationNode},Kn),zt,O.createElement("li",{title:fe?se.prev_page:null,onClick:this.prev,tabIndex:Jn?null:0,onKeyPress:this.runIfEnterPrev,className:I()("".concat(S,"-prev"),(0,oe.Z)({},"".concat(S,"-disabled"),Jn)),"aria-disabled":Jn},this.renderPrev(nn)),$e,O.createElement("li",{title:fe?se.next_page:null,onClick:this.next,tabIndex:Xn?null:0,onKeyPress:this.runIfEnterNext,className:I()("".concat(S,"-next"),(0,oe.Z)({},"".concat(S,"-disabled"),Xn)),"aria-disabled":Xn},this.renderNext(kt)),O.createElement($n,{disabled:E,locale:se,rootPrefixCls:S,selectComponentClass:it,selectPrefixCls:Ge,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:Ze,pageSize:St,pageSizeOptions:st,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:tn}))}}],[{key:"getDerivedStateFromProps",value:function(u,x){var S={};if("current"in u&&(S.current=u.current,u.current!==x.current&&(S.currentInputValue=S.current)),"pageSize"in u&&u.pageSize!==x.pageSize){var b=x.current,Q=Zt(u.pageSize,x,u);b=b>Q?Q:b,"current"in u||(S.current=b,S.currentInputValue=b),S.pageSize=u.pageSize}return S}}]),Y}(O.Component);hn.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:pn,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:pn,locale:Wn.Z,style:{},itemRender:xt,totalBoundaryShowSizeChanger:50};var cn=hn,_t=f(62906),Cn=f(53124),In=f(25378),On=f(42051),qt=f(34041),Tn=function(P){return O.createElement(qt.Z,(0,N.Z)({},P,{size:"small"}))},un=function(P){return O.createElement(qt.Z,(0,N.Z)({},P,{size:"middle"}))};Tn.Option=qt.Z.Option,un.Option=qt.Z.Option;var Vn=function(z,P){var Y={};for(var v in z)Object.prototype.hasOwnProperty.call(z,v)&&P.indexOf(v)<0&&(Y[v]=z[v]);if(z!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,v=Object.getOwnPropertySymbols(z);u=r}function x(e){return e&&(0,oe.Z)(e)==="object"&&!Array.isArray(e)&&!t.isValidElement(e)}function S(e){return typeof e=="string"?!0:(0,xt.Yr)(e)}var b=function(n){var r=n.ellipsis,o=n.rowType,a=n.children,l,c=r===!0?{showTitle:!0}:r;return c&&(c.showTitle||o==="header")&&(typeof a=="string"||typeof a=="number"?l=a.toString():t.isValidElement(a)&&typeof a.props.children=="string"&&(l=a.props.children)),l};function Q(e,n){var r,o,a,l=e.prefixCls,c=e.className,s=e.record,i=e.index,m=e.renderIndex,p=e.dataIndex,d=e.render,h=e.children,C=e.component,y=C===void 0?"td":C,w=e.colSpan,g=e.rowSpan,R=e.fixLeft,T=e.fixRight,V=e.firstFixLeft,ne=e.lastFixLeft,W=e.firstFixRight,ee=e.lastFixRight,Ce=e.appendNode,X=e.additionalProps,j=X===void 0?{}:X,ge=e.ellipsis,ve=e.align,k=e.rowType,re=e.isSticky,H=e.hovering,ae=e.onHover,U="".concat(l,"-cell"),A=t.useContext(Y),B=t.useContext(On),Ie=t.useContext(z),ct=Ie.allColumnsFixedLeft,_e=t.useMemo(function(){if(Cn(h))return[h];var K=cn(s,p),Z=K,he=void 0;if(d){var Ue=d(K,s,m);x(Ue)?(Z=Ue.children,he=Ue.props,A.renderWithProps=!0):Z=Ue}return[Z,he]},[A.renderWithProps?Math.random():0,h,p,A,s,d,m]),ke=(0,D.Z)(_e,2),We=ke[0],De=ke[1],ut=We;(0,oe.Z)(ut)==="object"&&!Array.isArray(ut)&&!t.isValidElement(ut)&&(ut=null),ge&&(ne||W)&&(ut=t.createElement("span",{className:"".concat(U,"-content")},ut));var Je=De||{},Xe=Je.colSpan,Me=Je.rowSpan,qe=Je.style,wt=Je.className,Le=(0,Ot.Z)(Je,v),ze=(r=Xe!==void 0?Xe:w)!==null&&r!==void 0?r:1,xe=(o=Me!==void 0?Me:g)!==null&&o!==void 0?o:1;if(ze===0||xe===0)return null;var Ee={},we=typeof R=="number"&&B,nt=typeof T=="number"&&B;we&&(Ee.position="sticky",Ee.left=R),nt&&(Ee.position="sticky",Ee.right=T);var Ye={};ve&&(Ye.textAlign=ve);var Ct=function(Z){var he;s&&ae(i,i+xe-1),j==null||(he=j.onMouseEnter)===null||he===void 0||he.call(j,Z)},pe=function(Z){var he;s&&ae(-1,-1),j==null||(he=j.onMouseLeave)===null||he===void 0||he.call(j,Z)},te=b({rowType:k,ellipsis:ge,children:We}),G=(0,L.Z)((0,L.Z)((0,L.Z)({title:te},Le),j),{},{colSpan:ze!==1?ze:null,rowSpan:xe!==1?xe:null,className:q()(U,c,(a={},(0,N.Z)(a,"".concat(U,"-fix-left"),we&&B),(0,N.Z)(a,"".concat(U,"-fix-left-first"),V&&B),(0,N.Z)(a,"".concat(U,"-fix-left-last"),ne&&B),(0,N.Z)(a,"".concat(U,"-fix-left-all"),ne&&ct&&B),(0,N.Z)(a,"".concat(U,"-fix-right"),nt&&B),(0,N.Z)(a,"".concat(U,"-fix-right-first"),W&&B),(0,N.Z)(a,"".concat(U,"-fix-right-last"),ee&&B),(0,N.Z)(a,"".concat(U,"-ellipsis"),ge),(0,N.Z)(a,"".concat(U,"-with-append"),Ce),(0,N.Z)(a,"".concat(U,"-fix-sticky"),(we||nt)&&re&&B),(0,N.Z)(a,"".concat(U,"-row-hover"),!De&&H),a),j.className,wt),style:(0,L.Z)((0,L.Z)((0,L.Z)((0,L.Z)({},j.style),Ye),Ee),qe),onMouseEnter:Ct,onMouseLeave:pe,ref:S(y)?n:null});return t.createElement(y,G,Ce,ut)}var E=t.forwardRef(Q);E.displayName="Cell";var _=["expanded","className","hovering"],de=t.memo(E,function(e,n){return n.shouldCellUpdate?_.every(function(r){return e[r]===n[r]})&&!n.shouldCellUpdate(n.record,e.record):O()(e,n)}),se=t.forwardRef(function(e,n){var r=e.index,o=e.additionalProps,a=o===void 0?{}:o,l=e.colSpan,c=e.rowSpan,s=a.colSpan,i=a.rowSpan,m=l!=null?l:s,p=c!=null?c:i,d=Vn(Ne,function(y){var w=u(r,p||1,y==null?void 0:y.startRow,y==null?void 0:y.endRow);return{onHover:y==null?void 0:y.onHover,hovering:w}}),h=d.onHover,C=d.hovering;return t.createElement(de,(0,M.Z)({},e,{colSpan:m,rowSpan:p,hovering:C,ref:n,onHover:h}))});se.displayName="WrappedCell";var Oe=se,at=t.createContext(null),fe=at;function ot(e,n,r,o,a){var l=r[e]||{},c=r[n]||{},s,i;l.fixed==="left"?s=o.left[e]:c.fixed==="right"&&(i=o.right[n]);var m=!1,p=!1,d=!1,h=!1,C=r[n+1],y=r[e-1];if(a==="rtl"){if(s!==void 0){var w=y&&y.fixed==="left";h=!w}else if(i!==void 0){var g=C&&C.fixed==="right";d=!g}}else if(s!==void 0){var R=C&&C.fixed==="left";m=!R}else if(i!==void 0){var T=y&&y.fixed==="right";p=!T}return{fixLeft:s,fixRight:i,lastFixLeft:m,firstFixRight:p,lastFixRight:d,firstFixLeft:h,isSticky:o.isSticky}}function Ve(e){var n=e.cells,r=e.stickyOffsets,o=e.flattenColumns,a=e.rowComponent,l=e.cellComponent,c=e.onHeaderRow,s=e.index,i=t.useContext(fe),m=i.prefixCls,p=i.direction,d;c&&(d=c(n.map(function(C){return C.column}),s));var h=_t(n.map(function(C){return C.column}));return t.createElement(a,d,n.map(function(C,y){var w=C.column,g=ot(C.colStart,C.colEnd,o,r,p),R;return w&&w.onHeaderCell&&(R=C.column.onHeaderCell(w)),t.createElement(Oe,(0,M.Z)({},C,{ellipsis:w.ellipsis,align:w.align,component:l,prefixCls:m,key:h[y]},g,{additionalProps:R,rowType:"header"}))}))}Ve.displayName="HeaderRow";var ce=Ve;function Dt(e){var n=[];function r(c,s){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;n[i]=n[i]||[];var m=s,p=c.filter(Boolean).map(function(d){var h={key:d.key,className:d.className||"",children:d.title,column:d,colStart:m},C=1,y=d.children;return y&&y.length>0&&(C=r(y,m,i+1).reduce(function(w,g){return w+g},0),h.hasSubColumns=!0),"colSpan"in d&&(C=d.colSpan),"rowSpan"in d&&(h.rowSpan=d.rowSpan),h.colSpan=C,h.colEnd=h.colStart+C-1,n[i].push(h),m+=C,C});return p}r(e,0);for(var o=n.length,a=function(s){n[s].forEach(function(i){!("rowSpan"in i)&&!i.hasSubColumns&&(i.rowSpan=o-s)})},l=0;l1?we-1:0),Ye=1;Ye0?[].concat((0,I.Z)(n),(0,I.Z)(Un(l).map(function(c){return(0,L.Z)({fixed:a},c)}))):[].concat((0,I.Z)(n),[(0,L.Z)((0,L.Z)({},r),{},{fixed:a})])},[])}function wr(e){for(var n=!0,r=0;r=0;l-=1){var c=e[l];if(a&&c.fixed!=="right")a=!1;else if(!a&&c.fixed==="right"){warning(!1,"Index ".concat(l+1," of `columns` missing `fixed='right'` prop."));break}}}function jn(e){return e.map(function(n){var r=n.fixed,o=(0,Ot.Z)(n,xn),a=r;return r==="left"?a="right":r==="right"&&(a="left"),(0,L.Z)({fixed:a},o)})}function Gn(e,n){var r=e.prefixCls,o=e.columns,a=e.children,l=e.expandable,c=e.expandedKeys,s=e.columnTitle,i=e.getRowKey,m=e.onTriggerExpand,p=e.expandIcon,d=e.rowExpandable,h=e.expandIconColumnIndex,C=e.direction,y=e.expandRowByClick,w=e.columnWidth,g=e.fixed,R=t.useMemo(function(){return o||Hn(a)},[o,a]),T=t.useMemo(function(){if(l){var W,ee=R.slice();if(!ee.includes(zt)){var Ce=h||0;Ce>=0&&ee.splice(Ce,0,zt)}var X=ee.indexOf(zt);ee=ee.filter(function(k,re){return k!==zt||re===X});var j=R[X],ge;(g==="left"||g)&&!h?ge="left":(g==="right"||g)&&h===R.length?ge="right":ge=j?j.fixed:null;var ve=(W={},(0,N.Z)(W,kt,{className:"".concat(r,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,N.Z)(W,"title",s),(0,N.Z)(W,"fixed",ge),(0,N.Z)(W,"className","".concat(r,"-row-expand-icon-cell")),(0,N.Z)(W,"width",w),(0,N.Z)(W,"render",function(re,H,ae){var U=i(H,ae),A=c.has(U),B=d?d(H):!0,Ie=p({prefixCls:r,expanded:A,expandable:B,record:H,onExpand:m});return y?t.createElement("span",{onClick:function(_e){return _e.stopPropagation()}},Ie):Ie}),W);return ee.map(function(k){return k===zt?ve:k})}return R.filter(function(k){return k!==zt})},[l,R,i,c,p,C]),V=t.useMemo(function(){var W=T;return n&&(W=n(W)),W.length||(W=[{render:function(){return null}}]),W},[n,T,C]),ne=t.useMemo(function(){return C==="rtl"?jn(Un(V)):Un(V)},[V,C]);return[V,ne]}var yn=Gn;function Qn(e){var n=(0,t.useRef)(e),r=(0,t.useState)({}),o=(0,D.Z)(r,2),a=o[1],l=(0,t.useRef)(null),c=(0,t.useRef)([]);function s(i){c.current.push(i);var m=Promise.resolve();l.current=m,m.then(function(){if(l.current===m){var p=c.current,d=n.current;c.current=[],p.forEach(function(h){n.current=h(n.current)}),l.current=null,d!==n.current&&a({})}})}return(0,t.useEffect)(function(){return function(){l.current=null}},[]),[n.current,s]}function Jn(e){var n=(0,t.useRef)(e||null),r=(0,t.useRef)();function o(){window.clearTimeout(r.current)}function a(c){n.current=c,o(),r.current=window.setTimeout(function(){n.current=null,r.current=void 0},100)}function l(){return n.current}return(0,t.useEffect)(function(){return o},[]),[a,l]}function Xn(e,n,r){var o=(0,t.useMemo)(function(){for(var a=[],l=[],c=0,s=0,i=0;i=0;s-=1){var i=n[s],m=r&&r[s],p=m&&m[kt];if(i||p||c){var d=p||{},h=d.columnType,C=(0,Ot.Z)(d,Sn);a.unshift(t.createElement("col",(0,M.Z)({key:s,style:{width:i}},C))),c=!0}}return t.createElement("colgroup",null,a)}var br=ma;function pa(e){var n=e.className,r=e.children;return t.createElement("div",{className:n},r)}var Ir=pa,ha=t.createContext({}),Or=ha;function Ca(e){var n=e.className,r=e.index,o=e.children,a=e.colSpan,l=a===void 0?1:a,c=e.rowSpan,s=e.align,i=t.useContext(fe),m=i.prefixCls,p=i.direction,d=t.useContext(Or),h=d.scrollColumnIndex,C=d.stickyOffsets,y=d.flattenColumns,w=r+l-1,g=w+1===h?l+1:l,R=ot(r,r+g-1,y,C,p);return t.createElement(Oe,(0,M.Z)({className:n,index:r,component:"td",prefixCls:m,record:null,dataIndex:null,align:s,colSpan:g,rowSpan:c,render:function(){return o}},R))}var ga=["children"];function xa(e){var n=e.children,r=(0,Ot.Z)(e,ga);return t.createElement("tr",r,n)}function cr(e){var n=e.children;return n}cr.Row=xa,cr.Cell=Ca;var Tr=cr;function ya(e){var n=e.children,r=e.stickyOffsets,o=e.flattenColumns,a=t.useContext(fe),l=a.prefixCls,c=o.length-1,s=o[c],i=t.useMemo(function(){return{stickyOffsets:r,flattenColumns:o,scrollColumnIndex:(s==null?void 0:s.scrollbar)?c:null}},[s,o,c,r]);return t.createElement(Or.Provider,{value:i},t.createElement("tfoot",{className:"".concat(l,"-summary")},n))}var qn=ya,kr=Tr;function Sa(e){var n,r=e.prefixCls,o=e.record,a=e.onExpand,l=e.expanded,c=e.expandable,s="".concat(r,"-row-expand-icon");if(!c)return t.createElement("span",{className:q()(s,"".concat(r,"-row-spaced"))});var i=function(p){a(o,p),p.stopPropagation()};return t.createElement("span",{className:q()(s,(n={},(0,N.Z)(n,"".concat(r,"-row-expanded"),l),(0,N.Z)(n,"".concat(r,"-row-collapsed"),!l),n)),onClick:i})}function Ea(e,n,r){var o=[];function a(l){(l||[]).forEach(function(c,s){o.push(n(c,s)),a(c[r])})}return a(e),o}var er=f(64019),Kr=f(27678),Ra=function(n,r){var o,a,l=n.scrollBodyRef,c=n.onScroll,s=n.offsetScroll,i=n.container,m=t.useContext(fe),p=m.prefixCls,d=((o=l.current)===null||o===void 0?void 0:o.scrollWidth)||0,h=((a=l.current)===null||a===void 0?void 0:a.clientWidth)||0,C=d&&h*(h/d),y=t.useRef(),w=Qn({scrollLeft:0,isHiddenScrollBar:!1}),g=(0,D.Z)(w,2),R=g[0],T=g[1],V=t.useRef({delta:0,x:0}),ne=t.useState(!1),W=(0,D.Z)(ne,2),ee=W[0],Ce=W[1],X=function(){Ce(!1)},j=function(H){H.persist(),V.current.delta=H.pageX-R.scrollLeft,V.current.x=0,Ce(!0),H.preventDefault()},ge=function(H){var ae,U=H||((ae=window)===null||ae===void 0?void 0:ae.event),A=U.buttons;if(!ee||A===0){ee&&Ce(!1);return}var B=V.current.x+H.pageX-V.current.x-V.current.delta;B<=0&&(B=0),B+C>=h&&(B=h-C),c({scrollLeft:B/h*(d+2)}),V.current.x=H.pageX},ve=function(){if(!!l.current){var H=(0,Kr.os)(l.current).top,ae=H+l.current.offsetHeight,U=i===window?document.documentElement.scrollTop+window.innerHeight:(0,Kr.os)(i).top+i.clientHeight;ae-(0,gt.Z)()<=U||H>=U-s?T(function(A){return(0,L.Z)((0,L.Z)({},A),{},{isHiddenScrollBar:!0})}):T(function(A){return(0,L.Z)((0,L.Z)({},A),{},{isHiddenScrollBar:!1})})}},k=function(H){T(function(ae){return(0,L.Z)((0,L.Z)({},ae),{},{scrollLeft:H/d*h||0})})};return t.useImperativeHandle(r,function(){return{setScrollLeft:k}}),t.useEffect(function(){var re=(0,er.Z)(document.body,"mouseup",X,!1),H=(0,er.Z)(document.body,"mousemove",ge,!1);return ve(),function(){re.remove(),H.remove()}},[C,ee]),t.useEffect(function(){var re=(0,er.Z)(i,"scroll",ve,!1),H=(0,er.Z)(window,"resize",ve,!1);return function(){re.remove(),H.remove()}},[i]),t.useEffect(function(){R.isHiddenScrollBar||T(function(re){var H=l.current;return H?(0,L.Z)((0,L.Z)({},re),{},{scrollLeft:H.scrollLeft/H.scrollWidth*H.clientWidth}):re})},[R.isHiddenScrollBar]),d<=h||!C||R.isHiddenScrollBar?null:t.createElement("div",{style:{height:(0,gt.Z)(),width:h,bottom:s},className:"".concat(p,"-sticky-scroll")},t.createElement("div",{onMouseDown:j,ref:y,className:q()("".concat(p,"-sticky-scroll-bar"),(0,N.Z)({},"".concat(p,"-sticky-scroll-bar-active"),ee)),style:{width:"".concat(C,"px"),transform:"translate3d(".concat(R.scrollLeft,"px, 0, 0)")}}))},Na=t.forwardRef(Ra),Pa=f(98924),Mr=(0,Pa.Z)()?window:null;function Za(e,n){var r=(0,oe.Z)(e)==="object"?e:{},o=r.offsetHeader,a=o===void 0?0:o,l=r.offsetSummary,c=l===void 0?0:l,s=r.offsetScroll,i=s===void 0?0:s,m=r.getContainer,p=m===void 0?function(){return Mr}:m,d=p()||Mr;return t.useMemo(function(){var h=!!e;return{isSticky:h,stickyClassName:h?"".concat(n,"-sticky-holder"):"",offsetHeader:a,offsetSummary:c,offsetScroll:i,container:d}},[i,a,c,n,d])}var wa=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function ba(e,n){return(0,t.useMemo)(function(){for(var r=[],o=0;o=0})},[l]),ge=l[l.length-1],ve={fixed:ge?ge.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(V,"-cell-scrollbar")}}},k=(0,t.useMemo)(function(){return ee?[].concat((0,I.Z)(a),[ve]):a},[ee,a]),re=(0,t.useMemo)(function(){return ee?[].concat((0,I.Z)(l),[ve]):l},[ee,l]),H=(0,t.useMemo)(function(){var U=i.right,A=i.left;return(0,L.Z)((0,L.Z)({},i),{},{left:m==="rtl"?[].concat((0,I.Z)(A.map(function(B){return B+ee})),[0]):A,right:m==="rtl"?U:[].concat((0,I.Z)(U.map(function(B){return B+ee})),[0]),isSticky:W})},[ee,i,W]),ae=ba(c,s);return t.createElement("div",{style:(0,L.Z)({overflow:"hidden"},W?{top:d,bottom:h}:{}),ref:X,className:q()(r,(0,N.Z)({},C,!!C))},t.createElement("table",{style:{tableLayout:"fixed",visibility:o||ae?null:"hidden"}},(!o||!w||j)&&t.createElement(br,{colWidths:ae?[].concat((0,I.Z)(ae),[ee]):[],columCount:s+1,columns:re}),g((0,L.Z)((0,L.Z)({},R),{},{stickyOffsets:H,columns:k,flattenColumns:re}))))});Lr.displayName="FixedHolder";var Dr=Lr,Ia=[],Oa={},tr="rc-table-internal-hook",Ta=t.memo(function(e){var n=e.children;return n},function(e,n){return O()(e.props,n.props)?e.pingLeft!==n.pingLeft||e.pingRight!==n.pingRight:!1});function Mn(e){var n,r=e.prefixCls,o=e.className,a=e.rowClassName,l=e.style,c=e.data,s=e.rowKey,i=e.scroll,m=e.tableLayout,p=e.direction,d=e.title,h=e.footer,C=e.summary,y=e.id,w=e.showHeader,g=e.components,R=e.emptyText,T=e.onRow,V=e.onHeaderRow,ne=e.internalHooks,W=e.transformColumns,ee=e.internalRefs,Ce=e.sticky,X=c||Ia,j=!!X.length,ge=t.useCallback(function(ie,Se){return cn(g||{},ie)||Se},[g]),ve=t.useMemo(function(){return typeof s=="function"?s:function(ie){var Se=ie&&ie[s];return Se}},[s]),k=Kn(e),re=k.expandIcon,H=k.expandedRowKeys,ae=k.defaultExpandedRowKeys,U=k.defaultExpandAllRows,A=k.expandedRowRender,B=k.columnTitle,Ie=k.onExpand,ct=k.onExpandedRowsChange,_e=k.expandRowByClick,ke=k.rowExpandable,We=k.expandIconColumnIndex,De=k.expandedRowClassName,ut=k.childrenColumnName,Je=k.indentSize,Xe=re||Sa,Me=ut||"children",qe=t.useMemo(function(){return A?"row":e.expandable&&ne===tr&&e.expandable.__PARENT_RENDER_ICON__||X.some(function(ie){return ie&&(0,oe.Z)(ie)==="object"&&ie[Me]})?"nest":!1},[!!A,X]),wt=t.useState(function(){return ae||(U?Ea(X,ve,Me):[])}),Le=(0,D.Z)(wt,2),ze=Le[0],xe=Le[1],Ee=t.useMemo(function(){return new Set(H||ze||[])},[H,ze]),we=t.useCallback(function(ie){var Se=ve(ie,X.indexOf(ie)),rt,$t=Ee.has(Se);$t?(Ee.delete(Se),rt=(0,I.Z)(Ee)):rt=[].concat((0,I.Z)(Ee),[Se]),xe(rt),Ie&&Ie(!$t,ie),ct&&ct(rt)},[ve,Ee,X,Ie,ct]),nt=t.useState(0),Ye=(0,D.Z)(nt,2),Ct=Ye[0],pe=Ye[1],te=yn((0,L.Z)((0,L.Z)((0,L.Z)({},e),k),{},{expandable:!!A,columnTitle:B,expandedKeys:Ee,getRowKey:ve,onTriggerExpand:we,expandIcon:Xe,expandIconColumnIndex:We,direction:p}),ne===tr?W:null),G=(0,D.Z)(te,2),K=G[0],Z=G[1],he=t.useMemo(function(){return{columns:K,flattenColumns:Z}},[K,Z]),Ue=t.useRef(),et=t.useRef(),Qe=t.useRef(),ye=t.useRef(),J=t.useRef(),Re=t.useState(!1),Fe=(0,D.Z)(Re,2),Kt=Fe[0],Gt=Fe[1],Ft=t.useState(!1),En=(0,D.Z)(Ft,2),Rn=En[0],Mt=En[1],Lt=Qn(new Map),zn=(0,D.Z)(Lt,2),Nn=zn[0],At=zn[1],fn=_t(Z),Vt=fn.map(function(ie){return Nn.get(ie)}),Fn=t.useMemo(function(){return Vt},[Vt.join("_")]),le=_n(Fn,Z.length,p),F=i&&Cn(i.y),Ke=i&&Cn(i.x)||Boolean(k.fixed),be=Ke&&Z.some(function(ie){var Se=ie.fixed;return Se}),tt=t.useRef(),Te=Za(Ce,r),Ae=Te.isSticky,Jt=Te.offsetHeader,vn=Te.offsetSummary,Pn=Te.offsetScroll,An=Te.stickyClassName,Xt=Te.container,pt=C==null?void 0:C(X),Ht=(F||Ae)&&t.isValidElement(pt)&&pt.type===Tr&&pt.props.fixed,Ut,Rt,an;F&&(Rt={overflowY:"scroll",maxHeight:i.y}),Ke&&(Ut={overflowX:"auto"},F||(Rt={overflowY:"hidden"}),an={width:(i==null?void 0:i.x)===!0?"auto":i==null?void 0:i.x,minWidth:"100%"});var on=t.useCallback(function(ie,Se){(0,jt.Z)(Ue.current)&&At(function(rt){if(rt.get(ie)!==Se){var $t=new Map(rt);return $t.set(ie,Se),$t}return rt})},[]),Zn=Jn(null),ln=(0,D.Z)(Zn,2),wn=ln[0],ue=ln[1];function me(ie,Se){!Se||(typeof Se=="function"?Se(ie):Se.scrollLeft!==ie&&(Se.scrollLeft=ie))}var Be=function(Se){var rt=Se.currentTarget,$t=Se.scrollLeft,Uo=p==="rtl",mn=typeof $t=="number"?$t:rt.scrollLeft,va=rt||Oa;if(!ue()||ue()===va){var Nr;wn(va),me(mn,et.current),me(mn,Qe.current),me(mn,J.current),me(mn,(Nr=tt.current)===null||Nr===void 0?void 0:Nr.setScrollLeft)}if(rt){var Pr=rt.scrollWidth,Zr=rt.clientWidth;if(Pr===Zr){Gt(!1),Mt(!1);return}Uo?(Gt(-mn0)):(Gt(mn>0),Mt(mn1&&arguments[1]!==void 0?arguments[1]:{},r=n.getContainer,o=r===void 0?function(){return window}:r,a=n.callback,l=n.duration,c=l===void 0?450:l,s=o(),i=$a(s,!0),m=Date.now(),p=function d(){var h=Date.now(),C=h-m,y=Ba(C>c?c:C,i,e,c);dr(s)?s.scrollTo(window.pageXOffset,y):s instanceof Document||s.constructor.name==="HTMLDocument"?s.documentElement.scrollTop=y:s.scrollTop=y,C0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1},Re=J.confirm,Fe=J.closeDropdown;Re&&Le([]),Fe&&k(!1),qe(""),B(W?(ee||[]).map(function(Kt){return String(Kt)}):[])},Ee=function(){var J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0},Re=J.closeDropdown;Re&&k(!1),Le(A())},we=function(J){J&&H!==void 0&&B(H||[]),k(J),!J&&!a.filterDropdown&&ze()},nt=q()((0,N.Z)({},"".concat(l,"-menu-without-submenu"),!co(a.filters||[]))),Ye=function(J){if(J.target.checked){var Re=Dn(a==null?void 0:a.filters).map(function(Fe){return String(Fe)});B(Re)}else B([])},Ct=function ye(J){var Re=J.filters;return(Re||[]).map(function(Fe,Kt){var Gt=String(Fe.value),Ft={title:Fe.text,key:Fe.value!==void 0?Gt:Kt};return Fe.children&&(Ft.children=ye({filters:Fe.children})),Ft})},pe=function ye(J){var Re;return(0,M.Z)((0,M.Z)({},J),{text:J.title,value:J.key,children:((Re=J.children)===null||Re===void 0?void 0:Re.map(function(Fe){return ye(Fe)}))||[]})},te;if(typeof a.filterDropdown=="function")te=a.filterDropdown({prefixCls:"".concat(l,"-custom"),setSelectedKeys:function(J){return Ie({selectedKeys:J})},selectedKeys:A(),confirm:Ee,clearFilters:xe,filters:a.filters,visible:re,close:function(){k(!1)}});else if(a.filterDropdown)te=a.filterDropdown;else{var G=A()||[],K=function(){return(a.filters||[]).length===0?t.createElement(Wr.Z,{image:Wr.Z.PRESENTED_IMAGE_SIMPLE,description:y.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):m==="tree"?t.createElement(t.Fragment,null,t.createElement(Hr,{filterSearch:d,value:Me,onChange:wt,tablePrefixCls:r,locale:y}),t.createElement("div",{className:"".concat(r,"-filter-dropdown-tree")},s?t.createElement(ar.Z,{checked:G.length===Dn(a.filters).length,indeterminate:G.length>0&&G.length0?l:e}),h=Math.ceil((l||e)/d.pageSize);d.current>h&&(d.current=h||1);var C=function(g,R){p({current:g!=null?g:1,pageSize:R||d.pageSize})},y=function(g,R){var T;n&&((T=n.onChange)===null||T===void 0||T.call(n,g,R)),C(g,R),r(g,R||(d==null?void 0:d.pageSize))};return n===!1?[{},function(){}]:[(0,M.Z)((0,M.Z)({},d),{onChange:y}),C]}var yo=f(99809),So=f(57254),_r=f(10225),vr=f(17341),Eo=f(1089),Ro=f(21770),dn={},mr="SELECT_ALL",pr="SELECT_INVERT",hr="SELECT_NONE",qr=[];function ea(e,n){var r=[];return(e||[]).forEach(function(o){r.push(o),o&&(0,oe.Z)(o)==="object"&&n in o&&(r=[].concat((0,I.Z)(r),(0,I.Z)(ea(o[n],n))))}),r}function No(e,n){var r=e||{},o=r.preserveSelectedRowKeys,a=r.selectedRowKeys,l=r.defaultSelectedRowKeys,c=r.getCheckboxProps,s=r.onChange,i=r.onSelect,m=r.onSelectAll,p=r.onSelectInvert,d=r.onSelectNone,h=r.onSelectMultiple,C=r.columnWidth,y=r.type,w=r.selections,g=r.fixed,R=r.renderCell,T=r.hideSelectAll,V=r.checkStrictly,ne=V===void 0?!0:V,W=n.prefixCls,ee=n.data,Ce=n.pageData,X=n.getRecordByKey,j=n.getRowKey,ge=n.expandType,ve=n.childrenColumnName,k=n.locale,re=n.getPopupContainer,H=(0,Ro.Z)(a||l||qr,{value:a}),ae=(0,D.Z)(H,2),U=ae[0],A=ae[1],B=t.useRef(new Map),Ie=(0,t.useCallback)(function(pe){if(o){var te=new Map;pe.forEach(function(G){var K=X(G);!K&&B.current.has(G)&&(K=B.current.get(G)),te.set(G,K)}),B.current=te}},[X,o]);t.useEffect(function(){Ie(U)},[U]);var ct=(0,t.useMemo)(function(){return ne?{keyEntities:null}:(0,Eo.I8)(ee,{externalGetKey:j,childrenPropName:ve})},[ee,j,ne,ve]),_e=ct.keyEntities,ke=(0,t.useMemo)(function(){return ea(Ce,ve)},[Ce,ve]),We=(0,t.useMemo)(function(){var pe=new Map;return ke.forEach(function(te,G){var K=j(te,G),Z=(c?c(te):null)||{};pe.set(K,Z)}),pe},[ke,j,c]),De=(0,t.useCallback)(function(pe){var te;return!!((te=We.get(j(pe)))===null||te===void 0?void 0:te.disabled)},[We,j]),ut=(0,t.useMemo)(function(){if(ne)return[U||[],[]];var pe=(0,vr.S)(U,!0,_e,De),te=pe.checkedKeys,G=pe.halfCheckedKeys;return[te||[],G]},[U,ne,_e,De]),Je=(0,D.Z)(ut,2),Xe=Je[0],Me=Je[1],qe=(0,t.useMemo)(function(){var pe=y==="radio"?Xe.slice(0,1):Xe;return new Set(pe)},[Xe,y]),wt=(0,t.useMemo)(function(){return y==="radio"?new Set:new Set(Me)},[Me,y]),Le=(0,t.useState)(null),ze=(0,D.Z)(Le,2),xe=ze[0],Ee=ze[1];t.useEffect(function(){e||A(qr)},[!!e]);var we=(0,t.useCallback)(function(pe,te){var G,K;Ie(pe),o?(G=pe,K=pe.map(function(Z){return B.current.get(Z)})):(G=[],K=[],pe.forEach(function(Z){var he=X(Z);he!==void 0&&(G.push(Z),K.push(he))})),A(G),s==null||s(G,K,{type:te})},[A,X,s,o]),nt=(0,t.useCallback)(function(pe,te,G,K){if(i){var Z=G.map(function(he){return X(he)});i(X(pe),te,Z,K)}we(G,"single")},[i,X,we]),Ye=(0,t.useMemo)(function(){if(!w||T)return null;var pe=w===!0?[mr,pr,hr]:w;return pe.map(function(te){return te===mr?{key:"all",text:k.selectionAll,onSelect:function(){we(ee.map(function(K,Z){return j(K,Z)}).filter(function(K){var Z=We.get(K);return!(Z==null?void 0:Z.disabled)||qe.has(K)}),"all")}}:te===pr?{key:"invert",text:k.selectInvert,onSelect:function(){var K=new Set(qe);Ce.forEach(function(he,Ue){var et=j(he,Ue),Qe=We.get(et);(Qe==null?void 0:Qe.disabled)||(K.has(et)?K.delete(et):K.add(et))});var Z=Array.from(K);p&&p(Z),we(Z,"invert")}}:te===hr?{key:"none",text:k.selectNone,onSelect:function(){d==null||d(),we(Array.from(qe).filter(function(K){var Z=We.get(K);return Z==null?void 0:Z.disabled}),"none")}}:te}).map(function(te){return(0,M.Z)((0,M.Z)({},te),{onSelect:function(){for(var K,Z,he=arguments.length,Ue=new Array(he),et=0;et2&&arguments[2]!==void 0?arguments[2]:!1,je=(0,M.Z)((0,M.Z)({},K),me);Bt&&(K.resetPagination(),je.pagination.current&&(je.pagination.current=1),p&&p.onChange&&p.onChange(1,je.pagination.pageSize)),ge&&ge.scrollToFirstRowOnChange!==!1&&Ye.body.current&&Wa(0,{getContainer:function(){return Ye.body.current}}),T==null||T(je.pagination,je.filters,je.sorter,{currentDataSource:Yr(xr(Me,je.sorterStates,we),je.filterStates),action:Be})},he=function(me,Be){Z({sorter:me,sorterStates:Be},"sort",!1)},Ue=Io({prefixCls:Le,mergedColumns:B,onSorterChange:he,sortDirections:ve||["ascend","descend"],tableLocale:Xe,showSorterTooltip:H}),et=(0,D.Z)(Ue,4),Qe=et[0],ye=et[1],J=et[2],Re=et[3],Fe=t.useMemo(function(){return xr(Me,ye,we)},[Me,ye]);K.sorter=Re(),K.sorterStates=ye;var Kt=function(me,Be){Z({filters:me,filterStates:Be},"filter",!0)},Gt=mo({prefixCls:Le,locale:Xe,dropdownPrefixCls:ze,mergedColumns:B,onFilterChange:Kt,getPopupContainer:V}),Ft=(0,D.Z)(Gt,3),En=Ft[0],Rn=Ft[1],Mt=Ft[2],Lt=Yr(Fe,Rn);K.filters=Mt,K.filterStates=Rn;var zn=t.useMemo(function(){var ue={};return Object.keys(Mt).forEach(function(me){Mt[me]!==null&&(ue[me]=Mt[me])}),(0,M.Z)((0,M.Z)({},J),{filters:ue})},[J,Mt]),Nn=Oo(zn),At=(0,D.Z)(Nn,1),fn=At[0],Vt=function(me,Be){Z({pagination:(0,M.Z)((0,M.Z)({},K.pagination),{current:me,pageSize:Be})},"paginate")},Fn=xo(Lt.length,p,Vt),le=(0,D.Z)(Fn,2),F=le[0],Ke=le[1];K.pagination=p===!1?{}:Co(p,F),K.resetPagination=Ke;var be=t.useMemo(function(){if(p===!1||!F.pageSize)return Lt;var ue=F.current,me=ue===void 0?1:ue,Be=F.total,Bt=F.pageSize,je=Bt===void 0?Qr:Bt;return Lt.lengthje?Lt.slice((me-1)*je,me*je):Lt:Lt.slice((me-1)*je,me*je)},[!!p,Lt,F&&F.current,F&&F.pageSize,F&&F.total]),tt=No(d,{prefixCls:Le,data:Lt,pageData:be,getRowKey:Ct,getRecordByKey:G,expandType:nt,childrenColumnName:we,locale:Xe,getPopupContainer:V}),Te=(0,D.Z)(tt,2),Ae=Te[0],Jt=Te[1],vn=function(me,Be,Bt){var je;return typeof y=="function"?je=q()(y(me,Be,Bt)):je=q()(y),q()((0,N.Z)({},"".concat(Le,"-row-selected"),Jt.has(Ct(me,Be))),je)};xe.__PARENT_RENDER_ICON__=xe.expandIcon,xe.expandIcon=xe.expandIcon||W||Ja(Xe),nt==="nest"&&xe.expandIconColumnIndex===void 0?xe.expandIconColumnIndex=d?1:0:xe.expandIconColumnIndex>0&&d&&(xe.expandIconColumnIndex-=1),typeof xe.indentSize!="number"&&(xe.indentSize=typeof j=="number"?j:15);var Pn=t.useCallback(function(ue){return fn(Ae(En(Qe(ue))))},[Qe,En,Ae]),An,Xt;if(p!==!1&&(F==null?void 0:F.total)){var pt;F.size?pt=F.size:pt=Je==="small"||Je==="middle"?"small":void 0;var Ht=function(me){return t.createElement(Fa.Z,(0,M.Z)({},F,{className:q()("".concat(Le,"-pagination ").concat(Le,"-pagination-").concat(me),F.className),size:pt}))},Ut=ut==="rtl"?"left":"right",Rt=F.position;if(Rt!==null&&Array.isArray(Rt)){var an=Rt.find(function(ue){return ue.includes("top")}),on=Rt.find(function(ue){return ue.includes("bottom")}),Zn=Rt.every(function(ue){return"".concat(ue)==="none"});!an&&!on&&!Zn&&(Xt=Ht(Ut)),an&&(An=Ht(an.toLowerCase().replace("top",""))),on&&(Xt=Ht(on.toLowerCase().replace("bottom","")))}else Xt=Ht(Ut)}var ln;typeof ne=="boolean"?ln={spinning:ne}:(0,oe.Z)(ne)==="object"&&(ln=(0,M.Z)({spinning:!0},ne));var wn=q()("".concat(Le,"-wrapper"),(0,N.Z)({},"".concat(Le,"-wrapper-rtl"),ut==="rtl"),a);return t.createElement("div",{ref:n,className:wn,style:l},t.createElement(Aa.Z,(0,M.Z)({spinning:!1},ln),An,t.createElement(zr,(0,M.Z)({},Ie,{columns:B,direction:ut,expandable:xe,prefixCls:Le,className:q()((r={},(0,N.Z)(r,"".concat(Le,"-middle"),Je==="middle"),(0,N.Z)(r,"".concat(Le,"-small"),Je==="small"),(0,N.Z)(r,"".concat(Le,"-bordered"),s),(0,N.Z)(r,"".concat(Le,"-empty"),Me.length===0),r)),data:be,rowKey:Ct,rowClassName:vn,emptyText:k&&k.emptyText||(De||Ma.Z)("Table"),internalHooks:tr,internalRefs:Ye,transformColumns:Pn})),Xt))}var Ko=t.forwardRef(ko),rn=Ko;rn.SELECTION_COLUMN=dn,rn.EXPAND_COLUMN=zr.EXPAND_COLUMN,rn.SELECTION_ALL=mr,rn.SELECTION_INVERT=pr,rn.SELECTION_NONE=hr,rn.Column=Ha,rn.ColumnGroup=ja,rn.Summary=kr;var Mo=rn,Lo=Mo},66456:function(Yt,bt,f){"use strict";var oe=f(38663),N=f.n(oe),M=f(31242),D=f.n(M),dt=f(57663),q=f(63185),L=f(59250),I=f(13254),t=f(47673),jt=f(14781),Wt=f(88983),Qt=f(20228),Pt=f(22385),O=f(32157)},7573:function(Yt,bt,f){"use strict";f.d(bt,{Z:function(){return Vn}});var oe=f(93549),N=f(96156),M=f(90484),D=f(22122),dt=f(80766),q=f(94184),L=f.n(q),I=f(67294),t=f(53124),jt=f(33603),Wt=4;function Qt($){var Ne,Pe=$.dropPosition,z=$.dropLevelOffset,P=$.prefixCls,Y=$.indent,v=$.direction,u=v===void 0?"ltr":v,x=u==="ltr"?"left":"right",S=u==="ltr"?"right":"left",b=(Ne={},(0,N.Z)(Ne,x,-z*Y+Wt),(0,N.Z)(Ne,S,0),Ne);switch(Pe){case-1:b.top=-3;break;case 1:b.bottom=-3;break;default:b.bottom=-3,b[x]=Y+Wt;break}return I.createElement("div",{style:b,className:"".concat(P,"-drop-indicator")})}var Pt=f(61639),O=I.forwardRef(function($,Ne){var Pe,z=I.useContext(t.E_),P=z.getPrefixCls,Y=z.direction,v=z.virtual,u=$.prefixCls,x=$.className,S=$.showIcon,b=S===void 0?!1:S,Q=$.showLine,E=$.switcherIcon,_=$.blockNode,de=_===void 0?!1:_,se=$.children,Oe=$.checkable,at=Oe===void 0?!1:Oe,fe=$.selectable,ot=fe===void 0?!0:fe,Ve=$.draggable,ce=$.motion,Dt=ce===void 0?(0,D.Z)((0,D.Z)({},jt.ZP),{motionAppear:!1}):ce,lt=P("tree",u),yt=(0,D.Z)((0,D.Z)({},$),{checkable:at,selectable:ot,showIcon:b,motion:Dt,blockNode:de,showLine:Boolean(Q),dropIndicatorRender:Qt}),it=I.useMemo(function(){if(!Ve)return!1;var Ge={};switch((0,M.Z)(Ve)){case"function":Ge.nodeDraggable=Ve;break;case"object":Ge=(0,D.Z)({},Ve);break;default:break}return Ge.icon!==!1&&(Ge.icon=Ge.icon||I.createElement(dt.Z,null)),Ge},[Ve]);return I.createElement(oe.Z,(0,D.Z)({itemHeight:20,ref:Ne,virtual:v},yt,{prefixCls:lt,className:L()((Pe={},(0,N.Z)(Pe,"".concat(lt,"-icon-hide"),!b),(0,N.Z)(Pe,"".concat(lt,"-block-node"),de),(0,N.Z)(Pe,"".concat(lt,"-unselectable"),!ot),(0,N.Z)(Pe,"".concat(lt,"-rtl"),Y==="rtl"),Pe),x),direction:Y,checkable:at&&I.createElement("span",{className:"".concat(lt,"-checkbox-inner")}),selectable:ot,switcherIcon:function(st){return(0,Pt.Z)(lt,E,Q,st)},draggable:it}),se)}),sn=O,It=f(85061),gt=f(28481),bn=f(86504),$n=f(91816),Wn=f(63258),pn=f(10225),Ot=f(1089),xt;(function($){$[$.None=0]="None",$[$.Start=1]="Start",$[$.End=2]="End"})(xt||(xt={}));function Zt($,Ne){function Pe(z){var P=z.key,Y=z.children;Ne(P,z)!==!1&&Zt(Y||[],Ne)}$.forEach(Pe)}function hn($){var Ne=$.treeData,Pe=$.expandedKeys,z=$.startKey,P=$.endKey,Y=[],v=xt.None;if(z&&z===P)return[z];if(!z||!P)return[];function u(x){return x===z||x===P}return Zt(Ne,function(x){if(v===xt.End)return!1;if(u(x)){if(Y.push(x),v===xt.None)v=xt.Start;else if(v===xt.Start)return v=xt.End,!1}else v===xt.Start&&Y.push(x);return Pe.includes(x)}),Y}function cn($,Ne){var Pe=(0,It.Z)(Ne),z=[];return Zt($,function(P,Y){var v=Pe.indexOf(P);return v!==-1&&(z.push(Y),Pe.splice(v,1)),!!Pe.length}),z}var _t=function($,Ne){var Pe={};for(var z in $)Object.prototype.hasOwnProperty.call($,z)&&Ne.indexOf(z)<0&&(Pe[z]=$[z]);if($!=null&&typeof Object.getOwnPropertySymbols=="function")for(var P=0,z=Object.getOwnPropertySymbols($);P2?42:16};return(0,e.jsx)(O.Z,{bordered:!1,style:{marginBottom:16},children:(0,e.jsx)("div",{style:{width:"100%",justifyContent:"space-between",display:"flex"},children:new Array(s).fill(null).map(function(Z,o){return(0,e.jsxs)("div",{style:{borderLeft:s>2&&o===1?"1px solid rgba(0,0,0,0.06)":void 0,paddingLeft:x(o),flex:1,marginRight:o===0?16:0},children:[(0,e.jsx)(h.Z,{active:r,paragraph:!1,title:{width:100,style:{marginTop:0}}}),(0,e.jsx)(h.Z.Button,{active:r,style:{height:48}})]},o)})})})},m=function(t){var a=t.active;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(O.Z,{bordered:!1,style:{borderRadius:0},bodyStyle:{padding:24},children:(0,e.jsxs)("div",{style:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[(0,e.jsx)("div",{style:{maxWidth:"100%",flex:1},children:(0,e.jsx)(h.Z,{active:a,title:{width:100,style:{marginTop:0}},paragraph:{rows:1,style:{margin:0}}})}),(0,e.jsx)(h.Z.Button,{active:a,size:"small",style:{width:165,marginTop:12}})]})}),(0,e.jsx)(je,{})]})},j=function(t){var a=t.size,r=t.active,i=r===void 0?!0:r,s=t.actionButton;return(0,e.jsxs)(O.Z,{bordered:!1,bodyStyle:{padding:0},children:[new Array(a).fill(null).map(function(x,Z){return(0,e.jsx)(m,{active:!!i},Z)}),s!==!1&&(0,e.jsx)(O.Z,{bordered:!1,style:{borderTopRightRadius:0,borderTopLeftRadius:0},bodyStyle:{display:"flex",alignItems:"center",justifyContent:"center"},children:(0,e.jsx)(h.Z.Button,{style:{width:102},active:i,size:"small"})})]})},D=function(t){var a=t.active;return(0,e.jsxs)("div",{style:{marginBottom:16},children:[(0,e.jsx)(h.Z,{paragraph:!1,title:{width:185}}),(0,e.jsx)(h.Z.Button,{active:a,size:"small"})]})},I=function(t){var a=t.active;return(0,e.jsx)(O.Z,{bordered:!1,style:{borderBottomRightRadius:0,borderBottomLeftRadius:0},bodyStyle:{paddingBottom:8},children:(0,e.jsxs)(Y.Z,{style:{width:"100%",justifyContent:"space-between"},children:[(0,e.jsx)(h.Z.Button,{active:a,style:{width:200},size:"small"}),(0,e.jsxs)(Y.Z,{children:[(0,e.jsx)(h.Z.Button,{active:a,size:"small",style:{width:120}}),(0,e.jsx)(h.Z.Button,{active:a,size:"small",style:{width:80}})]})]})})},E=function(t){var a=t.active,r=a===void 0?!0:a,i=t.statistic,s=t.actionButton,x=t.toolbar,Z=t.pageHeader,o=t.list,P=o===void 0?5:o;return(0,e.jsxs)("div",{style:{width:"100%"},children:[Z!==!1&&(0,e.jsx)(D,{active:r}),i!==!1&&(0,e.jsx)(u,{size:i,active:r}),(x!==!1||P!==!1)&&(0,e.jsxs)(O.Z,{bordered:!1,bodyStyle:{padding:0},children:[x!==!1&&(0,e.jsx)(I,{active:r}),P!==!1&&(0,e.jsx)(j,{size:P,active:r,actionButton:s})]})]})},k=E,W={xs:1,sm:2,md:3,lg:3,xl:3,xxl:4},J=function(t){var a=t.active;return(0,e.jsxs)("div",{style:{marginTop:32},children:[(0,e.jsx)(h.Z.Button,{active:a,size:"small",style:{width:100,marginBottom:16}}),(0,e.jsxs)("div",{style:{width:"100%",justifyContent:"space-between",display:"flex"},children:[(0,e.jsxs)("div",{style:{flex:1,marginRight:24,maxWidth:300},children:[(0,e.jsx)(h.Z,{active:a,paragraph:!1,title:{style:{marginTop:0}}}),(0,e.jsx)(h.Z,{active:a,paragraph:!1,title:{style:{marginTop:8}}}),(0,e.jsx)(h.Z,{active:a,paragraph:!1,title:{style:{marginTop:8}}})]}),(0,e.jsx)("div",{style:{flex:1,alignItems:"center",justifyContent:"center"},children:(0,e.jsxs)("div",{style:{maxWidth:300,margin:"auto"},children:[(0,e.jsx)(h.Z,{active:a,paragraph:!1,title:{style:{marginTop:0}}}),(0,e.jsx)(h.Z,{active:a,paragraph:!1,title:{style:{marginTop:8}}})]})})]})]})},z=function(t){var a=t.size,r=t.active,i=(0,me.ZP)(),s=a===void 0?W[i]||3:a;return(0,e.jsx)("div",{style:{width:"100%",justifyContent:"space-between",display:"flex"},children:new Array(s).fill(null).map(function(x,Z){return(0,e.jsxs)("div",{style:{flex:1,paddingLeft:Z===0?0:24,paddingRight:Z===s-1?0:24},children:[(0,e.jsx)(h.Z,{active:r,paragraph:!1,title:{style:{marginTop:0}}}),(0,e.jsx)(h.Z,{active:r,paragraph:!1,title:{style:{marginTop:8}}}),(0,e.jsx)(h.Z,{active:r,paragraph:!1,title:{style:{marginTop:8}}})]},Z)})})},A=function(t){var a=t.active,r=t.header,i=r===void 0?!1:r,s=(0,me.ZP)(),x=W[s]||3;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)("div",{style:{display:"flex",background:i?"rgba(0,0,0,0.02)":"none",padding:"24px 8px"},children:[new Array(x).fill(null).map(function(Z,o){return(0,e.jsx)("div",{style:{flex:1,paddingLeft:i&&o===0?0:20,paddingRight:32},children:(0,e.jsx)(h.Z,{active:a,paragraph:!1,title:{style:{margin:0,height:24,width:i?"75px":"100%"}}})},o)}),(0,e.jsx)("div",{style:{flex:3,paddingLeft:32},children:(0,e.jsx)(h.Z,{active:a,paragraph:!1,title:{style:{margin:0,height:24,width:i?"75px":"100%"}}})})]}),(0,e.jsx)(je,{padding:"0px 0px"})]})},ae=function(t){var a=t.active,r=t.size,i=r===void 0?4:r;return(0,e.jsxs)(O.Z,{bordered:!1,children:[(0,e.jsx)(h.Z.Button,{active:a,size:"small",style:{width:100,marginBottom:16}}),(0,e.jsx)(A,{header:!0,active:a}),new Array(i).fill(null).map(function(s,x){return(0,e.jsx)(A,{active:a},x)}),(0,e.jsx)("div",{style:{display:"flex",justifyContent:"flex-end",paddingTop:16},children:(0,e.jsx)(h.Z,{active:a,paragraph:!1,title:{style:{margin:0,height:32,float:"right",maxWidth:"630px"}}})})]})},q=function(t){var a=t.active;return(0,e.jsxs)(O.Z,{bordered:!1,style:{borderTopRightRadius:0,borderTopLeftRadius:0},children:[(0,e.jsx)(h.Z.Button,{active:a,size:"small",style:{width:100,marginBottom:16}}),(0,e.jsx)(z,{active:a}),(0,e.jsx)(J,{active:a})]})},R=function(t){var a=t.active,r=a===void 0?!0:a,i=t.pageHeader,s=t.list;return(0,e.jsxs)("div",{style:{width:"100%"},children:[i!==!1&&(0,e.jsx)(D,{active:r}),(0,e.jsx)(q,{active:r}),s!==!1&&(0,e.jsx)(je,{}),s!==!1&&(0,e.jsx)(ae,{active:r,size:s})]})},ie=R,se=function(t){var a=t.active,r=a===void 0?!0:a,i=t.pageHeader;return(0,e.jsxs)("div",{style:{width:"100%"},children:[i!==!1&&(0,e.jsx)(D,{active:r}),(0,e.jsx)(O.Z,{children:(0,e.jsxs)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",padding:128},children:[(0,e.jsx)(h.Z.Avatar,{size:64,style:{marginBottom:32}}),(0,e.jsx)(h.Z.Button,{active:r,style:{width:214,marginBottom:8}}),(0,e.jsx)(h.Z.Button,{active:r,style:{width:328},size:"small"}),(0,e.jsxs)(Y.Z,{style:{marginTop:24},children:[(0,e.jsx)(h.Z.Button,{active:r,style:{width:116}}),(0,e.jsx)(h.Z.Button,{active:r,style:{width:116}})]})]})})]})},oe=se,de=["type"],ce=function(t){var a=t.type,r=a===void 0?"list":a,i=(0,xe.Z)(t,de);return r==="result"?(0,e.jsx)(oe,(0,d.Z)({},i)):r==="descriptions"?(0,e.jsx)(ie,(0,d.Z)({},i)):(0,e.jsx)(k,(0,d.Z)({},i))},N=ce,Se=n(34792),ue=n(48086),ne=n(28481),ye=n(78775),ee=n(21770),ge=n(86671);function Re(l){var t=l.data,a=l.row;return(0,d.Z)((0,d.Z)({},t),a)}function be(l){var t=l.type||"single",a=(0,ye.YB)(),r=(0,ee.Z)([],{value:l.editableKeys,onChange:l.onChange?function(y){var S;l==null||(S=l.onChange)===null||S===void 0||S.call(l,y,l.dataSource)}:void 0}),i=(0,ne.Z)(r,2),s=i[0],x=i[1],Z=(0,U.useMemo)(function(){var y=t==="single"?s==null?void 0:s.slice(0,1):s;return new Set(y)},[(s||[]).join(","),t]),o=(0,U.useCallback)(function(y){return!!(s==null?void 0:s.includes((0,ge.sN)(y)))},[(s||[]).join(",")]),P=function(S){return Z.size>0&&t==="single"?(ue.default.warn(l.onlyOneLineEditorAlertMessage||a.getMessage("editableTable.onlyOneLineEditor","\u53EA\u80FD\u540C\u65F6\u7F16\u8F91\u4E00\u884C")),!1):(Z.add((0,ge.sN)(S)),x(Array.from(Z)),!0)},$=function(S){return Z.delete((0,ge.sN)(S)),x(Array.from(Z)),!0},Q=function(){var y=(0,_.Z)((0,G.Z)().mark(function S(w,b,g,T){var L,M;return(0,G.Z)().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,l==null||(L=l.onCancel)===null||L===void 0?void 0:L.call(l,w,b,g,T);case 2:if(M=c.sent,M!==!1){c.next=5;break}return c.abrupt("return",!1);case 5:return c.abrupt("return",!0);case 6:case"end":return c.stop()}},S)}));return function(w,b,g,T){return y.apply(this,arguments)}}(),F=function(){var y=(0,_.Z)((0,G.Z)().mark(function S(w,b,g){var T,L,M;return(0,G.Z)().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,l==null||(T=l.onSave)===null||T===void 0?void 0:T.call(l,w,b,g);case 2:if(L=c.sent,L!==!1){c.next=5;break}return c.abrupt("return",!1);case 5:return $(w),M={data:l.dataSource,row:b,key:w,childrenColumnName:l.childrenColumnName||"children"},l.setDataSource(Re(M)),c.abrupt("return",!0);case 9:case"end":return c.stop()}},S)}));return function(w,b,g){return y.apply(this,arguments)}}(),K=a.getMessage("editableTable.action.save","\u4FDD\u5B58"),H=a.getMessage("editableTable.action.delete","\u5220\u9664"),B=a.getMessage("editableTable.action.cancel","\u53D6\u6D88"),X=(0,U.useCallback)(function(y,S){var w=(0,d.Z)({recordKey:y,cancelEditable:$,onCancel:Q,onSave:F,editableKeys:s,setEditableRowKeys:x,saveText:K,cancelText:B,deleteText:H,deletePopconfirmMessage:"".concat(a.getMessage("deleteThisLine","\u5220\u9664\u6B64\u884C"),"?"),editorType:"Map"},S),b=(0,ge.aX)(l.dataSource,w);return l.actionRender?l.actionRender(l.dataSource,w,{save:b[0],delete:b[1],cancel:b[2]}):b},[s&&s.join(","),l.dataSource]);return{editableKeys:s,setEditableRowKeys:x,isEditable:o,actionRender:X,startEditable:P,cancelEditable:$}}var he=be,Le=n(2026),Oe=n(94984),ke=n(77398),Fe=n(53621),We=n(78164),He=n(50344),Ve=n(88306),Ue=n(30939),it=n(65515),Qe=function(t,a){var r=a||{},i=r.onRequestError,s=r.effects,x=r.manual,Z=r.dataSource,o=r.defaultDataSource,P=r.onDataSourceChange,$=(0,ee.Z)(o,{value:Z,onChange:P}),Q=(0,ne.Z)($,2),F=Q[0],K=Q[1],H=(0,ee.Z)(a==null?void 0:a.loading,{value:a==null?void 0:a.loading,onChange:a==null?void 0:a.onLoadingChange}),B=(0,ne.Z)(H,2),X=B[0],y=B[1],S=function(g){K(g),y(!1)},w=function(){var b=(0,_.Z)((0,G.Z)().mark(function g(){var T,L,M;return(0,G.Z)().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:if(!X){c.next=2;break}return c.abrupt("return");case 2:return y(!0),c.prev=3,c.next=6,t();case 6:if(c.t0=c.sent,c.t0){c.next=9;break}c.t0={};case 9:T=c.t0,L=T.data,M=T.success,M!==!1&&S(L),c.next=23;break;case 15:if(c.prev=15,c.t1=c.catch(3),i!==void 0){c.next=21;break}throw new Error(c.t1);case 21:i(c.t1);case 22:y(!1);case 23:case"end":return c.stop()}},g,null,[[3,15]])}));return function(){return b.apply(this,arguments)}}();return(0,U.useEffect)(function(){x||w()},[].concat((0,V.Z)(s||[]),[x])),{dataSource:F,setDataSource:K,loading:X,reload:function(){return w()}}},Xe=Qe,Ge=["valueEnum","render","renderText","mode","plain","dataIndex","request","params","editable"],Ye=["request","columns","params","dataSource","onDataSourceChange","formProps","editable","loading","onLoadingChange","actionRef","onRequestError"],Je=function(t,a){var r=t.dataIndex;if(r){var i=Array.isArray(r)?(0,Ve.Z)(a,r):a[r];if(i!==void 0||i!==null)return i}return t.children},qe=function(t){var a=t.valueEnum,r=t.action,i=t.index,s=t.text,x=t.entity,Z=t.mode,o=t.render,P=t.editableUtils,$=t.valueType,Q=t.plain,F=t.dataIndex,K=t.request,H=t.renderFormItem,B=t.params,X=fe.ZP.useFormInstance(),y={text:s,valueEnum:a,mode:Z||"read",proFieldProps:{render:o?function(){return o==null?void 0:o(s,x,i,r,(0,d.Z)((0,d.Z)({},t),{},{type:"descriptions"}))}:void 0},ignoreFormItem:!0,valueType:$,request:K,params:B,plain:Q};if(Z==="read"||!Z||$==="option"){var S=(0,Le.Z)(t.fieldProps,void 0,(0,d.Z)((0,d.Z)({},t),{},{rowKey:F,isEditable:!1}));return(0,e.jsx)(Ze.Z,(0,d.Z)((0,d.Z)({name:F},y),{},{fieldProps:S}))}var w=function(){var g,T=(0,Le.Z)(t.formItemProps,X,(0,d.Z)((0,d.Z)({},t),{},{rowKey:F,isEditable:!0})),L=(0,Le.Z)(t.fieldProps,X,(0,d.Z)((0,d.Z)({},t),{},{rowKey:F,isEditable:!0})),M=H?H==null?void 0:H((0,d.Z)((0,d.Z)({},t),{},{type:"descriptions"}),{isEditable:!0,recordKey:F,record:X.getFieldValue([F].flat(1)),defaultRender:function(){return(0,e.jsx)(Ze.Z,(0,d.Z)((0,d.Z)({},y),{},{fieldProps:L}))},type:"descriptions"},X):void 0;return(0,e.jsxs)(Y.Z,{children:[(0,e.jsx)(Oe.Z,(0,d.Z)((0,d.Z)({name:F},T),{},{style:(0,d.Z)({margin:0},(T==null?void 0:T.style)||{}),initialValue:s||(T==null?void 0:T.initialValue),children:M||(0,e.jsx)(Ze.Z,(0,d.Z)((0,d.Z)({},y),{},{proFieldProps:(0,d.Z)({},y.proFieldProps),fieldProps:L}))})),P==null||(g=P.actionRender)===null||g===void 0?void 0:g.call(P,F||i,{cancelText:(0,e.jsx)(ve.Z,{}),saveText:(0,e.jsx)(De.Z,{}),deleteText:!1})]})};return(0,e.jsx)("div",{style:{marginTop:-5,marginBottom:-5,marginLeft:0,marginRight:0},children:w()})},_e=function(t,a,r,i){var s,x=[],Z=t==null||(s=t.map)===null||s===void 0?void 0:s.call(t,function(o,P){var $,Q;if(U.isValidElement(o))return o;var F=o.valueEnum,K=o.render,H=o.renderText,B=o.mode,X=o.plain,y=o.dataIndex,S=o.request,w=o.params,b=o.editable,g=(0,xe.Z)(o,Ge),T=($=Je(o,a))!==null&&$!==void 0?$:g.children,L=H?H(T,a,P,r):T,M=typeof g.title=="function"?g.title(o,"descriptions",null):g.title,te=typeof g.valueType=="function"?g.valueType(a||{},"descriptions"):g.valueType,c=i==null?void 0:i.isEditable(y||P),re=B||c?"edit":"read",p=i&&re==="read"&&b!==!1&&(b==null?void 0:b(L,a,P))!==!1,C=p?Y.Z:U.Fragment,Be=re==="edit"?L:(0,ke.X)(L,o,L),Te=(0,U.createElement)(v.Z.Item,(0,d.Z)((0,d.Z)({},g),{},{key:g.key||((Q=g.label)===null||Q===void 0?void 0:Q.toString())||P,label:(M||g.label||g.tooltip||g.tip)&&(0,e.jsx)(Fe.Z,{label:M||g.label,tooltip:g.tooltip||g.tip,ellipsis:o.ellipsis})}),(0,e.jsxs)(C,{children:[(0,e.jsx)(qe,(0,d.Z)((0,d.Z)({},o),{},{dataIndex:o.dataIndex||P,mode:re,text:Be,valueType:te,entity:a,index:P,action:r,editableUtils:i})),p&&te!=="option"&&(0,e.jsx)(pe.Z,{onClick:function(){i==null||i.startEditable(y||P)}})]}));return te==="option"?(x.push(Te),null):Te}).filter(function(o){return o});return{options:(x==null?void 0:x.length)?x:null,children:Z}},et=function(t){return(0,e.jsx)(v.Z.Item,(0,d.Z)((0,d.Z)({},t),{},{children:t.children}))},tt=function(t){return t.children},Ae=function(t){var a,r=t.request,i=t.columns,s=t.params,x=s===void 0?{}:s,Z=t.dataSource,o=t.onDataSourceChange,P=t.formProps,$=t.editable,Q=t.loading,F=t.onLoadingChange,K=t.actionRef,H=t.onRequestError,B=(0,xe.Z)(t,Ye),X=(0,U.useContext)(le.ZP.ConfigContext),y=Xe((0,_.Z)((0,G.Z)().mark(function c(){var re;return(0,G.Z)().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:if(!r){C.next=6;break}return C.next=3,r(x);case 3:C.t0=C.sent,C.next=7;break;case 6:C.t0={data:{}};case 7:return re=C.t0,C.abrupt("return",re);case 9:case"end":return C.stop()}},c)})),{onRequestError:H,effects:[(0,Ue.P)(x)],manual:!r,dataSource:Z,loading:Q,onLoadingChange:F,onDataSourceChange:o}),S=he((0,d.Z)((0,d.Z)({},t.editable),{},{childrenColumnName:void 0,dataSource:y.dataSource,setDataSource:y.setDataSource}));if((0,U.useEffect)(function(){K&&(K.current=(0,d.Z)({reload:y.reload},S))},[y,K,S]),y.loading||y.loading===void 0&&r)return(0,e.jsx)(N,{type:"descriptions",list:!1,pageHeader:!1});var w=function(){var re=(0,He.Z)(t.children).filter(Boolean).map(function(p){if(!U.isValidElement(p))return p;var C=p==null?void 0:p.props,Be=C.valueEnum,Te=C.valueType,Ke=C.dataIndex,nt=C.ellipsis,rt=C.copyable,lt=C.request;return!Te&&!Be&&!Ke&&!lt&&!nt&&!rt?p:(0,d.Z)((0,d.Z)({},p==null?void 0:p.props),{},{entity:Z})});return[].concat((0,V.Z)(i||[]),(0,V.Z)(re)).filter(function(p){return!p||(p==null?void 0:p.valueType)&&["index","indexBorder"].includes(p==null?void 0:p.valueType)?!1:!(p==null?void 0:p.hideInDescriptions)}).sort(function(p,C){return C.order||p.order?(C.order||0)-(p.order||0):(C.index||0)-(p.index||0)})},b=_e(w(),y.dataSource||{},(K==null?void 0:K.current)||y,$?S:void 0),g=b.options,T=b.children,L=$?fe.ZP:tt,M=null;(B.title||B.tooltip||B.tip)&&(M=(0,e.jsx)(Fe.Z,{label:B.title,tooltip:B.tooltip||B.tip}));var te=X.getPrefixCls("pro-descriptions");return(0,e.jsx)(We.Z,{children:(0,e.jsx)(L,(0,d.Z)((0,d.Z)({form:(a=t.editable)===null||a===void 0?void 0:a.form,component:!1,submitter:!1},P),{},{onFinish:void 0,children:(0,e.jsx)(v.Z,(0,d.Z)((0,d.Z)({className:te},B),{},{extra:B.extra?(0,e.jsxs)(Y.Z,{children:[g,B.extra]}):g,title:M,children:T}))}),"form")})};Ae.Item=et;var at=Ae},65515:function(){},52953:function(){},4914:function(we,Ce,n){"use strict";n.d(Ce,{K:function(){return O},Z:function(){return je}});var V=n(96156),G=n(28481),_=n(90484),Pe=n(94184),le=n.n(Pe),ze=n(50344),v=n(67294),xe=n(53124),Me=n(96159),Y=n(24308),d=function(u){var m=u.children;return m},U=d,e=n(22122);function ve(f){return f!=null}var De=function(u){var m=u.itemPrefixCls,j=u.component,D=u.span,I=u.className,E=u.style,k=u.labelStyle,W=u.contentStyle,J=u.bordered,z=u.label,A=u.content,ae=u.colon,q=j;if(J){var R;return v.createElement(q,{className:le()((R={},(0,V.Z)(R,"".concat(m,"-item-label"),ve(z)),(0,V.Z)(R,"".concat(m,"-item-content"),ve(A)),R),I),style:E,colSpan:D},ve(z)&&v.createElement("span",{style:k},z),ve(A)&&v.createElement("span",{style:W},A))}return v.createElement(q,{className:le()("".concat(m,"-item"),I),style:E,colSpan:D},v.createElement("div",{className:"".concat(m,"-item-container")},(z||z===0)&&v.createElement("span",{className:le()("".concat(m,"-item-label"),(0,V.Z)({},"".concat(m,"-item-no-colon"),!ae)),style:k},z),(A||A===0)&&v.createElement("span",{className:le()("".concat(m,"-item-content")),style:W},A)))},pe=De;function fe(f,u,m){var j=u.colon,D=u.prefixCls,I=u.bordered,E=m.component,k=m.type,W=m.showLabel,J=m.showContent,z=m.labelStyle,A=m.contentStyle;return f.map(function(ae,q){var R=ae.props,ie=R.label,se=R.children,oe=R.prefixCls,de=oe===void 0?D:oe,ce=R.className,N=R.style,Se=R.labelStyle,ue=R.contentStyle,ne=R.span,ye=ne===void 0?1:ne,ee=ae.key;return typeof E=="string"?v.createElement(pe,{key:"".concat(k,"-").concat(ee||q),className:ce,style:N,labelStyle:(0,e.Z)((0,e.Z)({},z),Se),contentStyle:(0,e.Z)((0,e.Z)({},A),ue),span:ye,colon:j,component:E,itemPrefixCls:de,bordered:I,label:W?ie:null,content:J?se:null}):[v.createElement(pe,{key:"label-".concat(ee||q),className:ce,style:(0,e.Z)((0,e.Z)((0,e.Z)({},z),N),Se),span:1,colon:j,component:E[0],itemPrefixCls:de,bordered:I,label:ie}),v.createElement(pe,{key:"content-".concat(ee||q),className:ce,style:(0,e.Z)((0,e.Z)((0,e.Z)({},A),N),ue),span:ye*2-1,component:E[1],itemPrefixCls:de,bordered:I,content:se})]})}var Ze=function(u){var m=v.useContext(O),j=u.prefixCls,D=u.vertical,I=u.row,E=u.index,k=u.bordered;return D?v.createElement(v.Fragment,null,v.createElement("tr",{key:"label-".concat(E),className:"".concat(j,"-row")},fe(I,u,(0,e.Z)({component:"th",type:"label",showLabel:!0},m))),v.createElement("tr",{key:"content-".concat(E),className:"".concat(j,"-row")},fe(I,u,(0,e.Z)({component:"td",type:"content",showContent:!0},m)))):v.createElement("tr",{key:E,className:"".concat(j,"-row")},fe(I,u,(0,e.Z)({component:k?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0},m)))},Ne=Ze,O=v.createContext({}),Ie={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1};function h(f,u){if(typeof f=="number")return f;if((0,_.Z)(f)==="object")for(var m=0;mm)&&(j=(0,Me.Tm)(f,{span:m})),j}function $e(f,u){var m=(0,ze.Z)(f).filter(function(E){return E}),j=[],D=[],I=u;return m.forEach(function(E,k){var W,J=(W=E.props)===null||W===void 0?void 0:W.span,z=J||1;if(k===m.length-1){D.push(me(E,J,I)),j.push(D);return}z0&&U[U.length-1])&&(lt[0]===6||lt[0]===2)){V=0;continue}if(lt[0]===3&&(!U||lt[1]>U[0]&<[1]=18&&(E=K.createRoot)}catch(G){}function q(G){var W=K.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;W&&typeof W=="object"&&(W.usingClientEntryPoint=G)}var O="__rc_react_root__";function X(G,W){q(!0);var V=W[O]||E(W);q(!1),V.render(G),W[O]=V}function ot(G,W){h(G,W)}function ht(G,W){}function bt(G,W){if(E){X(G,W);return}ot(G,W)}function rt(G){return ct(this,void 0,void 0,function(){return et(this,function(W){return[2,Promise.resolve().then(function(){var V;(V=G[O])===null||V===void 0||V.unmount(),delete G[O]})]})})}function Mt(G){J(G)}function zt(G){}function Kt(G){return ct(this,void 0,void 0,function(){return et(this,function(W){return E!==void 0?[2,rt(G)]:(Mt(G),[2])})})}var Yt=new Map,se=function(G,W,V){var $=document.createElement("div");return W==="tooltip"&&($.setAttribute("data-uuid",V),Yt.has(V)?$=Yt.get(V):Yt.set(V,$),$.className="g2-tooltip"),bt(G,$),$},jt=se,T=function(G,W){var V={}.toString;return V.call(G)==="[object ".concat(W,"]")},k=function(G){if(!G)return G;var W={};for(var V in G)W[V]=G[V];return W},tt=function(G){return Object.prototype.toString.call(G).slice(8,-1)},Y=function(G){if(!G||typeof G!="object")return G;var W;return Array.isArray(G)?W=G.map(function(V){return Y(V)}):(W={},Object.keys(G).forEach(function(V){return W[V]=Y(G[V])})),W},R=function(G,W){for(var V=G,$=0;$=0},e.prototype.getAdjustRange=function(r,t,i){var n=this.yField,a=i.indexOf(t),o=i.length,s,l;return!n&&this.isAdjust("y")?(s=0,l=1):o>1?(s=i[a===0?0:a-1],l=i[a===o-1?o-1:a+1],a!==0?s+=(t-s)/2:s-=(l-t)/2,a!==o-1?l-=(l-t)/2:l+=(t-i[o-2])/2):(s=t===0?0:t-.5,l=t===0?1:t+.5),{pre:s,next:l}},e.prototype.adjustData=function(r,t){var i=this,n=this.getDimValues(t);h.each(r,function(a,o){h.each(n,function(s,l){i.adjustDim(l,s,a,o)})})},e.prototype.groupData=function(r,t){return h.each(r,function(i){i[t]===void 0&&(i[t]=G)}),h.groupBy(r,t)},e.prototype.adjustDim=function(r,t,i,n){},e.prototype.getDimValues=function(r){var t=this,i=t.xField,n=t.yField,a=h.assign({},this.dimValuesMap),o=[];if(i&&this.isAdjust("x")&&o.push(i),n&&this.isAdjust("y")&&o.push(n),o.forEach(function(l){a&&a[l]||(a[l]=h.valuesOfKey(r,l).sort(function(u,c){return u-c}))}),!n&&this.isAdjust("y")){var s="y";a[s]=[G,1]}return a},e}(),U=nt,Ot={},Tt=function(e){return Ot[e.toLowerCase()]},Ft=function(e,r){if(Tt(e))throw new Error("Adjust type '"+e+"' existed.");Ot[e.toLowerCase()]=r};/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var lt=function(r,t){return lt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var a in n)n.hasOwnProperty(a)&&(i[a]=n[a])},lt(r,t)};function Ct(e,r){lt(e,r);function t(){this.constructor=e}e.prototype=r===null?Object.create(r):(t.prototype=r.prototype,new t)}var dt=function(){return dt=Object.assign||function(t){for(var i,n=1,a=arguments.length;n=0;s--)(o=e[s])&&(a=(n<3?o(a):n>3?o(r,t,a):o(r,t))||a);return n>3&&a&&Object.defineProperty(r,t,a),a}function te(e,r){return function(t,i){r(t,i,e)}}function ae(e,r){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,r)}function we(e,r,t,i){function n(a){return a instanceof t?a:new t(function(o){o(a)})}return new(t||(t=Promise))(function(a,o){function s(c){try{u(i.next(c))}catch(f){o(f)}}function l(c){try{u(i.throw(c))}catch(f){o(f)}}function u(c){c.done?a(c.value):n(c.value).then(s,l)}u((i=i.apply(e,r||[])).next())})}function re(e,r){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,n,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(u){return function(c){return l([u,c])}}function l(u){if(i)throw new TypeError("Generator is already executing.");for(;t;)try{if(i=1,n&&(a=u[0]&2?n.return:u[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,u[1])).done)return a;switch(n=0,a&&(u=[u[0]&2,a.value]),u[0]){case 0:case 1:a=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,n=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(a=t.trys,!(a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}function ce(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var i=t.call(e),n,a=[],o;try{for(;(r===void 0||r-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(t=i.return)&&t.call(i)}finally{if(o)throw o.error}}return a}function ve(){for(var e=[],r=0;r1||s(v,d)})})}function s(v,d){try{l(i[v](d))}catch(p){f(a[0][3],p)}}function l(v){v.value instanceof Te?Promise.resolve(v.value.v).then(u,c):f(a[0][2],v)}function u(v){s("next",v)}function c(v){s("throw",v)}function f(v,d){v(d),a.shift(),a.length&&s(a[0][0],a[0][1])}}function ni(e){var r,t;return r={},i("next"),i("throw",function(n){throw n}),i("return"),r[Symbol.iterator]=function(){return this},r;function i(n,a){r[n]=e[n]?function(o){return(t=!t)?{value:Te(e[n](o)),done:n==="return"}:a?a(o):o}:a}}function ai(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=e[Symbol.asyncIterator],t;return r?r.call(e):(e=typeof _e=="function"?_e(e):e[Symbol.iterator](),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(a){t[a]=e[a]&&function(o){return new Promise(function(s,l){o=e[a](o),n(s,l,o.done,o.value)})}}function n(a,o,s,l){Promise.resolve(l).then(function(u){a({value:u,done:s})},o)}}function Za(e,r){return Object.defineProperty?Object.defineProperty(e,"raw",{value:r}):e.raw=r,e}function Ii(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var t in e)Object.hasOwnProperty.call(e,t)&&(r[t]=e[t]);return r.default=e,r}function Pi(e){return e&&e.__esModule?e:{default:e}}function Ka(e,r){if(!r.has(e))throw new TypeError("attempted to get private field on non-instance");return r.get(e)}function IL(e,r,t){if(!r.has(e))throw new TypeError("attempted to set private field on non-instance");return r.set(e,t),t}var dd=function(e){Ct(r,e);function r(t){var i=e.call(this,t)||this;i.cacheMap={},i.adjustDataArray=[],i.mergeData=[];var n=t.marginRatio,a=n===void 0?W:n,o=t.dodgeRatio,s=o===void 0?V:o,l=t.dodgeBy,u=t.intervalPadding,c=t.dodgePadding,f=t.xDimensionLength,v=t.groupNum,d=t.defaultSize,p=t.maxColumnWidth,y=t.minColumnWidth,m=t.columnWidthRatio,x=t.customOffset;return i.marginRatio=a,i.dodgeRatio=s,i.dodgeBy=l,i.intervalPadding=u,i.dodgePadding=c,i.xDimensionLegenth=f,i.groupNum=v,i.defaultSize=d,i.maxColumnWidth=p,i.minColumnWidth=y,i.columnWidthRatio=m,i.customOffset=x,i}return r.prototype.process=function(t){var i=h.clone(t),n=h.flatten(i),a=this.dodgeBy,o=a?h.group(n,a):i;return this.cacheMap={},this.adjustDataArray=o,this.mergeData=n,this.adjustData(o,n),this.adjustDataArray=[],this.mergeData=[],i},r.prototype.adjustDim=function(t,i,n,a){var o=this,s=this.customOffset,l=this.getDistribution(t),u=this.groupData(n,t);return h.each(u,function(c,f){var v;i.length===1?v={pre:i[0]-1,next:i[0]+1}:v=o.getAdjustRange(t,parseFloat(f),i),h.each(c,function(d){var p=d[t],y=l[p],m=y.indexOf(a);if(h.isNil(s))d[t]=o.getDodgeOffset(v,m,y.length);else{var x=v.pre,_=v.next;d[t]=h.isFunction(s)?s(d,v):(x+_)/2+s}})}),[]},r.prototype.getDodgeOffset=function(t,i,n){var a=this,o=a.dodgeRatio,s=a.marginRatio,l=a.intervalPadding,u=a.dodgePadding,c=t.pre,f=t.next,v=f-c,d;if(!h.isNil(l)&&h.isNil(u)&&l>=0){var p=this.getIntervalOnlyOffset(n,i);d=c+p}else if(!h.isNil(u)&&h.isNil(l)&&u>=0){var p=this.getDodgeOnlyOffset(n,i);d=c+p}else if(!h.isNil(l)&&!h.isNil(u)&&l>=0&&u>=0){var p=this.getIntervalAndDodgeOffset(n,i);d=c+p}else{var y=v*o/n,m=s*y,p=1/2*(v-n*y-(n-1)*m)+((i+1)*y+i*m)-1/2*y-1/2*v;d=(c+f)/2+p}return d},r.prototype.getIntervalOnlyOffset=function(t,i){var n=this,a=n.defaultSize,o=n.intervalPadding,s=n.xDimensionLegenth,l=n.groupNum,u=n.dodgeRatio,c=n.maxColumnWidth,f=n.minColumnWidth,v=n.columnWidthRatio,d=o/s,p=(1-(l-1)*d)/l*u/(t-1),y=((1-d*(l-1))/l-p*(t-1))/t;if(y=h.isNil(v)?y:1/l/t*v,!h.isNil(c)){var m=c/s;y=Math.min(y,m)}if(!h.isNil(f)){var x=f/s;y=Math.max(y,x)}y=a?a/s:y,p=((1-(l-1)*d)/l-t*y)/(t-1);var _=((1/2+i)*y+i*p+1/2*d)*l-d/2;return _},r.prototype.getDodgeOnlyOffset=function(t,i){var n=this,a=n.defaultSize,o=n.dodgePadding,s=n.xDimensionLegenth,l=n.groupNum,u=n.marginRatio,c=n.maxColumnWidth,f=n.minColumnWidth,v=n.columnWidthRatio,d=o/s,p=1*u/(l-1),y=((1-p*(l-1))/l-d*(t-1))/t;if(y=v?1/l/t*v:y,!h.isNil(c)){var m=c/s;y=Math.min(y,m)}if(!h.isNil(f)){var x=f/s;y=Math.max(y,x)}y=a?a/s:y,p=(1-(y*t+d*(t-1))*l)/(l-1);var _=((1/2+i)*y+i*d+1/2*p)*l-p/2;return _},r.prototype.getIntervalAndDodgeOffset=function(t,i){var n=this,a=n.intervalPadding,o=n.dodgePadding,s=n.xDimensionLegenth,l=n.groupNum,u=a/s,c=o/s,f=((1-u*(l-1))/l-c*(t-1))/t,v=((1/2+i)*f+i*c+1/2*u)*l-u/2;return v},r.prototype.getDistribution=function(t){var i=this.adjustDataArray,n=this.cacheMap,a=n[t];return a||(a={},h.each(i,function(o,s){var l=h.valuesOfKey(o,t);l.length||l.push(0),h.each(l,function(u){a[u]||(a[u]=[]),a[u].push(s)})}),n[t]=a),a},r}(U),gd=dd;function pd(e,r){return(r-e)*Math.random()+e}var yd=function(e){Ct(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.process=function(t){var i=h.clone(t),n=h.flatten(i);return this.adjustData(i,n),i},r.prototype.adjustDim=function(t,i,n){var a=this,o=this.groupData(n,t);return h.each(o,function(s,l){return a.adjustGroup(s,t,parseFloat(l),i)})},r.prototype.getAdjustOffset=function(t){var i=t.pre,n=t.next,a=(n-i)*$;return pd(i+a,n-a)},r.prototype.adjustGroup=function(t,i,n,a){var o=this,s=this.getAdjustRange(i,n,a);return h.each(t,function(l){l[i]=o.getAdjustOffset(s)}),t},r}(U),md=yd,qa=h.Cache,xd=function(e){Ct(r,e);function r(t){var i=e.call(this,t)||this,n=t.adjustNames,a=n===void 0?["y"]:n,o=t.height,s=o===void 0?NaN:o,l=t.size,u=l===void 0?10:l,c=t.reverseOrder,f=c===void 0?!1:c;return i.adjustNames=a,i.height=s,i.size=u,i.reverseOrder=f,i}return r.prototype.process=function(t){var i=this,n=i.yField,a=i.reverseOrder,o=n?this.processStack(t):this.processOneDimStack(t);return a?this.reverse(o):o},r.prototype.reverse=function(t){return t.slice(0).reverse()},r.prototype.processStack=function(t){var i=this,n=i.xField,a=i.yField,o=i.reverseOrder,s=o?this.reverse(t):t,l=new qa,u=new qa;return s.map(function(c){return c.map(function(f){var v,d=h.get(f,n,0),p=h.get(f,[a]),y=d.toString();if(p=h.isArray(p)?p[1]:p,!h.isNil(p)){var m=p>=0?l:u;m.has(y)||m.set(y,0);var x=m.get(y),_=p+x;return m.set(y,_),dt(dt({},f),(v={},v[a]=[x,_],v))}return f})})},r.prototype.processOneDimStack=function(t){var i=this,n=this,a=n.xField,o=n.height,s=n.reverseOrder,l="y",u=s?this.reverse(t):t,c=new qa;return u.map(function(f){return f.map(function(v){var d,p=i.size,y=v[a],m=p*2/o;c.has(y)||c.set(y,m/2);var x=c.get(y);return c.set(y,x+m),dt(dt({},v),(d={},d[l]=x,d))})})},r}(U),_d=xd,wd=function(e){Ct(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.process=function(t){var i=h.flatten(t),n=this,a=n.xField,o=n.yField,s=this.getXValuesMaxMap(i),l=Math.max.apply(Math,Object.keys(s).map(function(u){return s[u]}));return h.map(t,function(u){return h.map(u,function(c){var f,v,d=c[o],p=c[a];if(h.isArray(d)){var y=(l-s[p])/2;return dt(dt({},c),(f={},f[o]=h.map(d,function(x){return y+x}),f))}var m=(l-d)/2;return dt(dt({},c),(v={},v[o]=[m,d+m],v))})})},r.prototype.getXValuesMaxMap=function(t){var i=this,n=this,a=n.xField,o=n.yField,s=h.groupBy(t,function(l){return l[a]});return h.mapValues(s,function(l){return i.getDimMaxValue(l,o)})},r.prototype.getDimMaxValue=function(t,i){var n=h.map(t,function(o){return h.get(o,i,[])}),a=h.flatten(n);return Math.max.apply(Math,a)},r}(U),bd=wd;Ft("Dodge",gd),Ft("Jitter",md),Ft("Stack",_d),Ft("Symmetric",bd);var vl=function(e,r){return(0,h.isString)(r)?r:e.invert(e.scale(r))},Sd=function(){function e(r){this.names=[],this.scales=[],this.linear=!1,this.values=[],this.callback=function(){return[]},this._parseCfg(r)}return e.prototype.mapping=function(){for(var r=this,t=[],i=0;i=0;s--)(o=e[s])&&(a=(n<3?o(a):n>3?o(r,t,a):o(r,t))||a);return n>3&&a&&Object.defineProperty(r,t,a),a}function DL(e,r){return function(t,i){r(t,i,e)}}function BL(e,r){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,r)}function RL(e,r,t,i){function n(a){return a instanceof t?a:new t(function(o){o(a)})}return new(t||(t=Promise))(function(a,o){function s(c){try{u(i.next(c))}catch(f){o(f)}}function l(c){try{u(i.throw(c))}catch(f){o(f)}}function u(c){c.done?a(c.value):n(c.value).then(s,l)}u((i=i.apply(e,r||[])).next())})}function NL(e,r){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,n,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(u){return function(c){return l([u,c])}}function l(u){if(i)throw new TypeError("Generator is already executing.");for(;t;)try{if(i=1,n&&(a=u[0]&2?n.return:u[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,u[1])).done)return a;switch(n=0,a&&(u=[u[0]&2,a.value]),u[0]){case 0:case 1:a=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,n=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(a=t.trys,!(a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}function Cd(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var i=t.call(e),n,a=[],o;try{for(;(r===void 0||r-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(t=i.return)&&t.call(i)}finally{if(o)throw o.error}}return a}function GL(){for(var e=[],r=0;r1||s(v,d)})})}function s(v,d){try{l(i[v](d))}catch(p){f(a[0][3],p)}}function l(v){v.value instanceof En?Promise.resolve(v.value.v).then(u,c):f(a[0][2],v)}function u(v){s("next",v)}function c(v){s("throw",v)}function f(v,d){v(d),a.shift(),a.length&&s(a[0][0],a[0][1])}}function YL(e){var r,t;return r={},i("next"),i("throw",function(n){throw n}),i("return"),r[Symbol.iterator]=function(){return this},r;function i(n,a){r[n]=e[n]?function(o){return(t=!t)?{value:En(e[n](o)),done:n==="return"}:a?a(o):o}:a}}function XL(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=e[Symbol.asyncIterator],t;return r?r.call(e):(e=typeof gl=="function"?gl(e):e[Symbol.iterator](),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(a){t[a]=e[a]&&function(o){return new Promise(function(s,l){o=e[a](o),n(s,l,o.done,o.value)})}}function n(a,o,s,l){Promise.resolve(l).then(function(u){a({value:u,done:s})},o)}}function UL(e,r){return Object.defineProperty?Object.defineProperty(e,"raw",{value:r}):e.raw=r,e}function jL(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var t in e)Object.hasOwnProperty.call(e,t)&&(r[t]=e[t]);return r.default=e,r}function ZL(e){return e&&e.__esModule?e:{default:e}}function KL(e,r){if(!r.has(e))throw new TypeError("attempted to get private field on non-instance");return r.get(e)}function qL(e,r,t){if(!r.has(e))throw new TypeError("attempted to set private field on non-instance");return r.set(e,t),t}var Ad=/rgba?\(([\s.,0-9]+)\)/,Md=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,Fd=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,Ed=/[\d.]+:(#[^\s]+|[^\)]+\))/gi,Td=function(e){return/^[r,R,L,l]{1}[\s]*\(/.test(e)},Ld=function(){var e=document.createElement("i");return e.title="Web Colour Picker",e.style.display="none",document.body.appendChild(e),e},Qa=function(e,r,t,i){return e[i]+(r[i]-e[i])*t};function pl(e){return"#"+Ja(e[0])+Ja(e[1])+Ja(e[2])}var yl=function(e){return[parseInt(e.substr(1,2),16),parseInt(e.substr(3,2),16),parseInt(e.substr(5,2),16)]},Ja=function(e){var r=Math.round(e).toString(16);return r.length===1?"0"+r:r},Od=function(e,r){var t=isNaN(Number(r))||r<0?0:r>1?1:Number(r),i=e.length-1,n=Math.floor(i*t),a=i*t-n,o=e[n],s=n===i?o:e[n+1];return pl([Qa(o,s,a,0),Qa(o,s,a,1),Qa(o,s,a,2)])},Tn,ml=function(e){if(e[0]==="#"&&e.length===7)return e;Tn||(Tn=Ld()),Tn.style.color=e;var r=document.defaultView.getComputedStyle(Tn,"").getPropertyValue("color"),t=Ad.exec(r),i=t[1].split(/\s*,\s*/).map(function(n){return Number(n)});return r=pl(i),r},Id=function(e){var r=(0,h.isString)(e)?e.split("-"):e,t=(0,h.map)(r,function(i){return yl(i.indexOf("#")===-1?ml(i):i)});return function(i){return Od(t,i)}},Pd=function(e){if(Td(e)){var r,t=void 0;if(e[0]==="l"){var i=Md.exec(e),n=+i[1]+90;t=i[2],r="linear-gradient("+n+"deg, "}else if(e[0]==="r"){r="radial-gradient(";var i=Fd.exec(e);t=i[4]}var a=t.match(Ed);return(0,h.each)(a,function(o,s){var l=o.split(":");r+=l[1]+" "+l[0]*100+"%",s!==a.length-1&&(r+=", ")}),r+=")",r}return e},xr={rgb2arr:yl,gradient:Id,toRGB:(0,h.memoize)(ml),toCSSGradient:Pd},kd=function(e){Di(r,e);function r(t){var i=e.call(this,t)||this;return i.type="color",i.names=["color"],(0,h.isString)(i.values)&&(i.linear=!0),i.gradient=xr.gradient(i.values),i}return r.prototype.getLinearValue=function(t){return this.gradient(t)},r}(ki),Dd=kd,Bd=function(e){Di(r,e);function r(t){var i=e.call(this,t)||this;return i.type="opacity",i.names=["opacity"],i}return r}(ki),Rd=Bd,Nd=function(e){Di(r,e);function r(t){var i=e.call(this,t)||this;return i.names=["x","y"],i.type="position",i}return r.prototype.mapping=function(t,i){var n=this.scales,a=n[0],o=n[1];return(0,h.isNil)(t)||(0,h.isNil)(i)?[]:[(0,h.isArray)(t)?t.map(function(s){return a.scale(s)}):a.scale(t),(0,h.isArray)(i)?i.map(function(s){return o.scale(s)}):o.scale(i)]},r}(ki),zd=Nd,Vd=function(e){Di(r,e);function r(t){var i=e.call(this,t)||this;return i.type="shape",i.names=["shape"],i}return r.prototype.getLinearValue=function(t){var i=Math.round((this.values.length-1)*t);return this.values[i]},r}(ki),Gd=Vd,Wd=function(e){Di(r,e);function r(t){var i=e.call(this,t)||this;return i.type="size",i.names=["size"],i}return r}(ki),Hd=Wd,Bi=M(86429),xl={},_l=function(e){return xl[e.toLowerCase()]},Ri=function(e,r){if(_l(e))throw new Error("Attribute type '"+e+"' existed.");xl[e.toLowerCase()]=r};Ri("Color",Dd),Ri("Opacity",Rd),Ri("Position",zd),Ri("Shape",Gd),Ri("Size",Hd);var Ln=M(77160),Yd=M(35600),ie=M(31506),Xd=function(){function e(r){this.type="coordinate",this.isRect=!1,this.isHelix=!1,this.isPolar=!1,this.isReflectX=!1,this.isReflectY=!1;var t=r.start,i=r.end,n=r.matrix,a=n===void 0?[1,0,0,0,1,0,0,0,1]:n,o=r.isTransposed,s=o===void 0?!1:o;this.start=t,this.end=i,this.matrix=a,this.originalMatrix=(0,g.__spreadArray)([],a),this.isTransposed=s}return e.prototype.initial=function(){this.center={x:(this.start.x+this.end.x)/2,y:(this.start.y+this.end.y)/2},this.width=Math.abs(this.end.x-this.start.x),this.height=Math.abs(this.end.y-this.start.y)},e.prototype.update=function(r){(0,h.assign)(this,r),this.initial()},e.prototype.convertDim=function(r,t){var i,n=this[t],a=n.start,o=n.end;return this.isReflect(t)&&(i=[o,a],a=i[0],o=i[1]),a+r*(o-a)},e.prototype.invertDim=function(r,t){var i,n=this[t],a=n.start,o=n.end;return this.isReflect(t)&&(i=[o,a],a=i[0],o=i[1]),(r-a)/(o-a)},e.prototype.applyMatrix=function(r,t,i){i===void 0&&(i=0);var n=this.matrix,a=[r,t,i];return Ln.transformMat3(a,a,n),a},e.prototype.invertMatrix=function(r,t,i){i===void 0&&(i=0);var n=this.matrix,a=Yd.invert([0,0,0,0,0,0,0,0,0],n),o=[r,t,i];return a&&Ln.transformMat3(o,o,a),o},e.prototype.convert=function(r){var t=this.convertPoint(r),i=t.x,n=t.y,a=this.applyMatrix(i,n,1);return{x:a[0],y:a[1]}},e.prototype.invert=function(r){var t=this.invertMatrix(r.x,r.y,1);return this.invertPoint({x:t[0],y:t[1]})},e.prototype.rotate=function(r){var t=this.matrix,i=this.center;return ie.m$(t,t,[-i.x,-i.y]),ie.zu(t,t,r),ie.m$(t,t,[i.x,i.y]),this},e.prototype.reflect=function(r){return r==="x"?this.isReflectX=!this.isReflectX:this.isReflectY=!this.isReflectY,this},e.prototype.scale=function(r,t){var i=this.matrix,n=this.center;return ie.m$(i,i,[-n.x,-n.y]),ie.lh(i,i,[r,t]),ie.m$(i,i,[n.x,n.y]),this},e.prototype.translate=function(r,t){var i=this.matrix;return ie.m$(i,i,[r,t]),this},e.prototype.transpose=function(){return this.isTransposed=!this.isTransposed,this},e.prototype.getCenter=function(){return this.center},e.prototype.getWidth=function(){return this.width},e.prototype.getHeight=function(){return this.height},e.prototype.getRadius=function(){return this.radius},e.prototype.isReflect=function(r){return r==="x"?this.isReflectX:this.isReflectY},e.prototype.resetMatrix=function(r){this.matrix=r||(0,g.__spreadArray)([],this.originalMatrix)},e}(),to=Xd,Ud=function(e){(0,g.__extends)(r,e);function r(t){var i=e.call(this,t)||this;return i.isRect=!0,i.type="cartesian",i.initial(),i}return r.prototype.initial=function(){e.prototype.initial.call(this);var t=this.start,i=this.end;this.x={start:t.x,end:i.x},this.y={start:t.y,end:i.y}},r.prototype.convertPoint=function(t){var i,n=t.x,a=t.y;return this.isTransposed&&(i=[a,n],n=i[0],a=i[1]),{x:this.convertDim(n,"x"),y:this.convertDim(a,"y")}},r.prototype.invertPoint=function(t){var i,n=this.invertDim(t.x,"x"),a=this.invertDim(t.y,"y");return this.isTransposed&&(i=[a,n],n=i[0],a=i[1]),{x:n,y:a}},r}(to),wl=Ud,Lt=M(31437),jd=function(e){(0,g.__extends)(r,e);function r(t){var i=e.call(this,t)||this;i.isHelix=!0,i.type="helix";var n=t.startAngle,a=n===void 0?1.25*Math.PI:n,o=t.endAngle,s=o===void 0?7.25*Math.PI:o,l=t.innerRadius,u=l===void 0?0:l,c=t.radius;return i.startAngle=a,i.endAngle=s,i.innerRadius=u,i.radius=c,i.initial(),i}return r.prototype.initial=function(){e.prototype.initial.call(this);var t=(this.endAngle-this.startAngle)/(2*Math.PI)+1,i=Math.min(this.width,this.height)/2;this.radius&&this.radius>=0&&this.radius<=1&&(i=i*this.radius),this.d=Math.floor(i*(1-this.innerRadius)/t),this.a=this.d/(Math.PI*2),this.x={start:this.startAngle,end:this.endAngle},this.y={start:this.innerRadius*i,end:this.innerRadius*i+this.d*.99}},r.prototype.convertPoint=function(t){var i,n=t.x,a=t.y;this.isTransposed&&(i=[a,n],n=i[0],a=i[1]);var o=this.convertDim(n,"x"),s=this.a*o,l=this.convertDim(a,"y");return{x:this.center.x+Math.cos(o)*(s+l),y:this.center.y+Math.sin(o)*(s+l)}},r.prototype.invertPoint=function(t){var i,n=this.d+this.y.start,a=Lt.subtract([0,0],[t.x,t.y],[this.center.x,this.center.y]),o=ie.Dg(a,[1,0],!0),s=o*this.a;Lt.length(a)this.width/i?(s=this.width/i,this.circleCenter={x:this.center.x-(.5-a)*this.width,y:this.center.y-(.5-o)*s*n}):(s=this.height/n,this.circleCenter={x:this.center.x-(.5-a)*s*i,y:this.center.y-(.5-o)*this.height}),this.polarRadius=this.radius,this.radius?this.radius>0&&this.radius<=1?this.polarRadius=s*this.radius:(this.radius<=0||this.radius>s)&&(this.polarRadius=s):this.polarRadius=s,this.x={start:this.startAngle,end:this.endAngle},this.y={start:this.innerRadius*this.polarRadius,end:this.polarRadius}},r.prototype.getRadius=function(){return this.polarRadius},r.prototype.convertPoint=function(t){var i,n=this.getCenter(),a=t.x,o=t.y;return this.isTransposed&&(i=[o,a],a=i[0],o=i[1]),a=this.convertDim(a,"x"),o=this.convertDim(o,"y"),{x:n.x+Math.cos(a)*o,y:n.y+Math.sin(a)*o}},r.prototype.invertPoint=function(t){var i,n=this.getCenter(),a=[t.x-n.x,t.y-n.y],o=this,s=o.startAngle,l=o.endAngle;this.isReflect("x")&&(i=[l,s],s=i[0],l=i[1]);var u=[1,0,0,0,1,0,0,0,1];ie.zu(u,u,s);var c=[1,0,0];Ln.transformMat3(c,c,u);var f=[c[0],c[1]],v=ie.Dg(f,a,l0?p:-p;var y=this.invertDim(d,"y"),m={x:0,y:0};return m.x=this.isTransposed?y:p,m.y=this.isTransposed?p:y,m},r.prototype.getCenter=function(){return this.circleCenter},r.prototype.getOneBox=function(){var t=this.startAngle,i=this.endAngle;if(Math.abs(i-t)>=Math.PI*2)return{minX:-1,maxX:1,minY:-1,maxY:1};for(var n=[0,Math.cos(t),Math.cos(i)],a=[0,Math.sin(t),Math.sin(i)],o=Math.min(t,i);o=0;i--)e.removeChild(r[i])}function tg(e,r){return!!e.className.match(new RegExp("(\\s|^)"+r+"(\\s|$)"))}function zi(e){var r=e.start,t=e.end,i=Math.min(r.x,t.x),n=Math.min(r.y,t.y),a=Math.max(r.x,t.x),o=Math.max(r.y,t.y);return{x:i,y:n,minX:i,minY:n,maxX:a,maxY:o,width:a-i,height:o-n}}function eg(e){var r=e.map(function(s){return s.x}),t=e.map(function(s){return s.y}),i=Math.min.apply(Math,r),n=Math.min.apply(Math,t),a=Math.max.apply(Math,r),o=Math.max.apply(Math,t);return{x:i,y:n,minX:i,minY:n,maxX:a,maxY:o,width:a-i,height:o-n}}function Vi(e,r,t,i){var n=e+t,a=r+i;return{x:e,y:r,width:t,height:i,minX:e,minY:r,maxX:isNaN(n)?0:n,maxY:isNaN(a)?0:a}}function Br(e,r,t){return(1-t)*e+r*t}function oi(e,r,t){return{x:e.x+Math.cos(t)*r,y:e.y+Math.sin(t)*r}}function rg(e,r){var t=r.x-e.x,i=r.y-e.y;return Math.sqrt(t*t+i*i)}var $L=function(e){return new Promise(function(r){setTimeout(r,e)})},kn=function(e,r,t){return t===void 0&&(t=Math.pow(Number.EPSILON,.5)),[e,r].includes(Infinity)?Math.abs(e)===Math.abs(r):Math.abs(e-r)0?(0,h.each)(l,function(u){if(u.get("visible")){if(u.isGroup()&&u.get("children").length===0)return!0;var c=Ml(u),f=u.applyToMatrix([c.minX,c.minY,1]),v=u.applyToMatrix([c.minX,c.maxY,1]),d=u.applyToMatrix([c.maxX,c.minY,1]),p=u.applyToMatrix([c.maxX,c.maxY,1]),y=Math.min(f[0],v[0],d[0],p[0]),m=Math.max(f[0],v[0],d[0],p[0]),x=Math.min(f[1],v[1],d[1],p[1]),_=Math.max(f[1],v[1],d[1],p[1]);ya&&(a=m),xs&&(s=_)}}):(n=0,a=0,o=0,s=0),i=Vi(n,o,a-n,s-o)}return t?ig(i,t):i}function ng(e,r){if(!(!e.getClip()&&!r.getClip())){var t=r.getClip();if(!t){e.setClip(null);return}var i={type:t.get("type"),attrs:t.attr()};e.setClip(i)}}function Le(e){return e+"px"}function Fl(e,r,t,i){var n=rg(e,r),a=i/n,o=0;return t==="start"?o=0-a:t==="end"&&(o=1+a),{x:Br(e.x,r.x,o),y:Br(e.y,r.y,o)}}var ag={none:[],point:["x","y"],region:["start","end"],points:["points"],circle:["center","radius","startAngle","endAngle"]},og=function(e){(0,g.__extends)(r,e);function r(t){var i=e.call(this,t)||this;return i.initCfg(),i}return r.prototype.getDefaultCfg=function(){return{id:"",name:"",type:"",locationType:"none",offsetX:0,offsetY:0,animate:!1,capture:!0,updateAutoRender:!1,animateOption:{appear:null,update:{duration:400,easing:"easeQuadInOut"},enter:{duration:400,easing:"easeQuadInOut"},leave:{duration:350,easing:"easeQuadIn"}},events:null,defaultCfg:{},visible:!0}},r.prototype.clear=function(){},r.prototype.update=function(t){var i=this,n=this.get("defaultCfg")||{};(0,h.each)(t,function(a,o){var s=i.get(o),l=a;s!==a&&((0,h.isObject)(a)&&n[o]&&(l=(0,h.deepMix)({},n[o],a)),i.set(o,l))}),this.updateInner(t),this.afterUpdate(t)},r.prototype.updateInner=function(t){},r.prototype.afterUpdate=function(t){(0,h.hasKey)(t,"visible")&&(t.visible?this.show():this.hide()),(0,h.hasKey)(t,"capture")&&this.setCapture(t.capture)},r.prototype.getLayoutBBox=function(){return this.getBBox()},r.prototype.getLocationType=function(){return this.get("locationType")},r.prototype.getOffset=function(){return{offsetX:this.get("offsetX"),offsetY:this.get("offsetY")}},r.prototype.setOffset=function(t,i){this.update({offsetX:t,offsetY:i})},r.prototype.setLocation=function(t){var i=(0,g.__assign)({},t);this.update(i)},r.prototype.getLocation=function(){var t=this,i={},n=this.get("locationType"),a=ag[n];return(0,h.each)(a,function(o){i[o]=t.get(o)}),i},r.prototype.isList=function(){return!1},r.prototype.isSlider=function(){return!1},r.prototype.init=function(){},r.prototype.initCfg=function(){var t=this,i=this.get("defaultCfg");(0,h.each)(i,function(n,a){var o=t.get(a);if((0,h.isObject)(o)){var s=(0,h.deepMix)({},n,o);t.set(a,s)}})},r}(St.Base),El=og,Rr="update_status",sg=["visible","tip","delegateObject"],lg=["container","group","shapesMap","isRegister","isUpdating","destroyed"],ug=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{container:null,shapesMap:{},group:null,capture:!0,isRegister:!1,isUpdating:!1,isInit:!0})},r.prototype.remove=function(){this.clear();var t=this.get("group");t.remove()},r.prototype.clear=function(){var t=this.get("group");t.clear(),this.set("shapesMap",{}),this.clearOffScreenCache(),this.set("isInit",!0)},r.prototype.getChildComponentById=function(t){var i=this.getElementById(t),n=i&&i.get("component");return n},r.prototype.getElementById=function(t){return this.get("shapesMap")[t]},r.prototype.getElementByLocalId=function(t){var i=this.getElementId(t);return this.getElementById(i)},r.prototype.getElementsByName=function(t){var i=[];return(0,h.each)(this.get("shapesMap"),function(n){n.get("name")===t&&i.push(n)}),i},r.prototype.getContainer=function(){return this.get("container")},r.prototype.updateInner=function(t){this.offScreenRender(),this.get("updateAutoRender")&&this.render()},r.prototype.render=function(){var t=this.get("offScreenGroup");t||(t=this.offScreenRender());var i=this.get("group");this.updateElements(t,i),this.deleteElements(),this.applyOffset(),this.get("eventInitted")||(this.initEvent(),this.set("eventInitted",!0)),this.set("isInit",!1)},r.prototype.show=function(){var t=this.get("group");t.show(),this.set("visible",!0)},r.prototype.hide=function(){var t=this.get("group");t.hide(),this.set("visible",!1)},r.prototype.setCapture=function(t){var i=this.get("group");i.set("capture",t),this.set("capture",t)},r.prototype.destroy=function(){this.removeEvent(),this.remove(),e.prototype.destroy.call(this)},r.prototype.getBBox=function(){return this.get("group").getCanvasBBox()},r.prototype.getLayoutBBox=function(){var t=this.get("group"),i=this.getInnerLayoutBBox(),n=t.getTotalMatrix();return n&&(i=Jd(n,i)),i},r.prototype.on=function(t,i,n){var a=this.get("group");return a.on(t,i,n),this},r.prototype.off=function(t,i){var n=this.get("group");return n&&n.off(t,i),this},r.prototype.emit=function(t,i){var n=this.get("group");n.emit(t,i)},r.prototype.init=function(){e.prototype.init.call(this),this.get("group")||this.initGroup(),this.offScreenRender()},r.prototype.getInnerLayoutBBox=function(){return this.get("offScreenBBox")||this.get("group").getBBox()},r.prototype.delegateEmit=function(t,i){var n=this.get("group");i.target=n,n.emit(t,i),Sl(n,t,i)},r.prototype.createOffScreenGroup=function(){var t=this.get("group"),i=t.getGroupBase(),n=new i({delegateObject:this.getDelegateObject()});return n},r.prototype.applyOffset=function(){var t=this.get("offsetX"),i=this.get("offsetY");this.moveElementTo(this.get("group"),{x:t,y:i})},r.prototype.initGroup=function(){var t=this.get("container");this.set("group",t.addGroup({id:this.get("id"),name:this.get("name"),capture:this.get("capture"),visible:this.get("visible"),isComponent:!0,component:this,delegateObject:this.getDelegateObject()}))},r.prototype.offScreenRender=function(){this.clearOffScreenCache();var t=this.createOffScreenGroup();return this.renderInner(t),this.set("offScreenGroup",t),this.set("offScreenBBox",Ml(t)),t},r.prototype.addGroup=function(t,i){this.appendDelegateObject(t,i);var n=t.addGroup(i);return this.get("isRegister")&&this.registerElement(n),n},r.prototype.addShape=function(t,i){this.appendDelegateObject(t,i);var n=t.addShape(i);return this.get("isRegister")&&this.registerElement(n),n},r.prototype.addComponent=function(t,i){var n=i.id,a=i.component,o=(0,g.__rest)(i,["id","component"]),s=new a((0,g.__assign)((0,g.__assign)({},o),{id:n,container:t,updateAutoRender:this.get("updateAutoRender")}));return s.init(),s.render(),this.get("isRegister")&&this.registerElement(s.get("group")),s},r.prototype.initEvent=function(){},r.prototype.removeEvent=function(){var t=this.get("group");t.off()},r.prototype.getElementId=function(t){var i=this.get("id"),n=this.get("name");return i+"-"+n+"-"+t},r.prototype.registerElement=function(t){var i=t.get("id");this.get("shapesMap")[i]=t},r.prototype.unregisterElement=function(t){var i=t.get("id");delete this.get("shapesMap")[i]},r.prototype.moveElementTo=function(t,i){var n=eo(i);t.attr("matrix",n)},r.prototype.addAnimation=function(t,i,n){var a=i.attr("opacity");(0,h.isNil)(a)&&(a=1),i.attr("opacity",0),i.animate({opacity:a},n)},r.prototype.removeAnimation=function(t,i,n){i.animate({opacity:0},n)},r.prototype.updateAnimation=function(t,i,n,a){i.animate(n,a)},r.prototype.updateElements=function(t,i){var n=this,a=this.get("animate"),o=this.get("animateOption"),s=t.getChildren().slice(0),l;(0,h.each)(s,function(u){var c=u.get("id"),f=n.getElementById(c),v=u.get("name");if(f)if(u.get("isComponent")){var d=u.get("component"),p=f.get("component"),y=(0,h.pick)(d.cfg,(0,h.difference)((0,h.keys)(d.cfg),lg));p.update(y),f.set(Rr,"update")}else{var m=n.getReplaceAttrs(f,u);a&&o.update?n.updateAnimation(v,f,m,o.update):f.attr(m),u.isGroup()&&n.updateElements(u,f),(0,h.each)(sg,function(b){f.set(b,u.get(b))}),ng(f,u),l=f,f.set(Rr,"update")}else{i.add(u);var x=i.getChildren();if(x.splice(x.length-1,1),l){var _=x.indexOf(l);x.splice(_+1,0,u)}else x.unshift(u);if(n.registerElement(u),u.set(Rr,"add"),u.get("isComponent")){var d=u.get("component");d.set("container",i)}else u.isGroup()&&n.registerNewGroup(u);if(l=u,a){var w=n.get("isInit")?o.appear:o.enter;w&&n.addAnimation(v,u,w)}}})},r.prototype.clearUpdateStatus=function(t){var i=t.getChildren();(0,h.each)(i,function(n){n.set(Rr,null)})},r.prototype.clearOffScreenCache=function(){var t=this.get("offScreenGroup");t&&t.destroy(),this.set("offScreenGroup",null),this.set("offScreenBBox",null)},r.prototype.getDelegateObject=function(){var t,i=this.get("name"),n=(t={},t[i]=this,t.component=this,t);return n},r.prototype.appendDelegateObject=function(t,i){var n=t.get("delegateObject");i.delegateObject||(i.delegateObject={}),(0,h.mix)(i.delegateObject,n)},r.prototype.getReplaceAttrs=function(t,i){var n=t.attr(),a=i.attr();return(0,h.each)(n,function(o,s){a[s]===void 0&&(a[s]=void 0)}),a},r.prototype.registerNewGroup=function(t){var i=this,n=t.getChildren();(0,h.each)(n,function(a){i.registerElement(a),a.set(Rr,"add"),a.isGroup()&&i.registerNewGroup(a)})},r.prototype.deleteElements=function(){var t=this,i=this.get("shapesMap"),n=[];(0,h.each)(i,function(s,l){!s.get(Rr)||s.destroyed?n.push([l,s]):s.set(Rr,null)});var a=this.get("animate"),o=this.get("animateOption");(0,h.each)(n,function(s){var l=s[0],u=s[1];if(!u.destroyed){var c=u.get("name");if(a&&o.leave){var f=(0,h.mix)({callback:function(){t.removeElement(u)}},o.leave);t.removeAnimation(c,u,f)}else t.removeElement(u)}delete i[l]})},r.prototype.removeElement=function(t){if(t.get("isGroup")){var i=t.get("component");i&&i.destroy()}t.remove()},r}(El),Ae=ug,io="\u2026";function cg(e){for(var r=0,t=0;t0&&e.charCodeAt(r)<128?1:2}function hg(e,r,t){t===void 0&&(t="tail");var i=e.length,n="";if(t==="tail"){for(var a=0,o=0;a=19968&&s<=40869?a+=2:a+=1}a>t&&(t=a,i=n)}return e[i].getBBox().width}function no(e){if(e.length>dg)return gg(e);var r=0;return(0,h.each)(e,function(t){var i=t.getBBox(),n=i.width;r=0?v=hg(a,f,i):v=fg,v&&(r.attr("text",v),c=!0)}return c?r.set("tip",a):r.set("tip",null),c}function Dn(e,r){var t=r.x,i=r.y,n=r.content,a=r.style,o=r.id,s=r.name,l=r.rotate,u=r.maxLength,c=r.autoEllipsis,f=r.isVertical,v=r.ellipsisPosition,d=r.background,p=e.addGroup({id:o+"-group",name:s+"-group",attrs:{x:t,y:i}}),y=p.addShape({type:"text",id:o,name:s,attrs:(0,g.__assign)({x:0,y:0,text:n},a)}),m=Pn((0,h.get)(d,"padding",0));if(u&&c){var x=u-(m[1]+m[3]);Gi(!f,y,x,v)}if(d){var _=(0,h.get)(d,"style",{}),w=y.getCanvasBBox(),b=w.minX,S=w.minY,C=w.width,A=w.height,F=p.addShape("rect",{id:o+"-bg",name:o+"-bg",attrs:(0,g.__assign)({x:b-m[3],y:S-m[0],width:C+m[1]+m[3],height:A+m[0]+m[2]},_)});F.toBack()}Ni(p,t,i),Al(p,l,t,i)}var Vt={fontFamily:` - BlinkMacSystemFont, "Segoe UI", Roboto,"Helvetica Neue", - Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", - SimSun, "sans-serif"`,textColor:"#2C3542",activeTextColor:"#333333",uncheckedColor:"#D8D8D8",lineColor:"#416180",regionColor:"#CCD7EB",verticalAxisRotate:-Math.PI/4,horizontalAxisRotate:Math.PI/4,descriptionIconStroke:"#fff",descriptionIconFill:"rgba(58, 73, 101, .25)"},yg=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{name:"annotation",type:"line",locationType:"region",start:null,end:null,style:{},text:null,defaultCfg:{style:{fill:Vt.textColor,fontSize:12,textAlign:"center",textBaseline:"bottom",fontFamily:Vt.fontFamily},text:{position:"center",autoRotate:!0,content:null,offsetX:0,offsetY:0,style:{stroke:Vt.lineColor,lineWidth:1}}}})},r.prototype.renderInner=function(t){this.renderLine(t),this.get("text")&&this.renderLabel(t)},r.prototype.renderLine=function(t){var i=this.get("start"),n=this.get("end"),a=this.get("style");this.addShape(t,{type:"line",id:this.getElementId("line"),name:"annotation-line",attrs:(0,g.__assign)({x1:i.x,y1:i.y,x2:n.x,y2:n.y},a)})},r.prototype.getLabelPoint=function(t,i,n){var a;return n==="start"?a=0:n==="center"?a=.5:(0,h.isString)(n)&&n.indexOf("%")!==-1?a=parseInt(n,10)/100:(0,h.isNumber)(n)?a=n:a=1,(a>1||a<0)&&(a=1),{x:Br(t.x,i.x,a),y:Br(t.y,i.y,a)}},r.prototype.renderLabel=function(t){var i=this.get("text"),n=this.get("start"),a=this.get("end"),o=i.position,s=i.content,l=i.style,u=i.offsetX,c=i.offsetY,f=i.autoRotate,v=i.maxLength,d=i.autoEllipsis,p=i.ellipsisPosition,y=i.background,m=i.isVertical,x=m===void 0?!1:m,_=this.getLabelPoint(n,a,o),w=_.x+u,b=_.y+c,S={id:this.getElementId("line-text"),name:"annotation-line-text",x:w,y:b,content:s,style:l,maxLength:v,autoEllipsis:d,ellipsisPosition:p,background:y,isVertical:x};if(f){var C=[a.x-n.x,a.y-n.y];S.rotate=Math.atan2(C[1],C[0])}Dn(t,S)},r}(Ae),mg=yg,xg=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{name:"annotation",type:"text",locationType:"point",x:0,y:0,content:"",rotate:null,style:{},background:null,maxLength:null,autoEllipsis:!0,isVertical:!1,ellipsisPosition:"tail",defaultCfg:{style:{fill:Vt.textColor,fontSize:12,textAlign:"center",textBaseline:"middle",fontFamily:Vt.fontFamily}}})},r.prototype.setLocation=function(t){this.set("x",t.x),this.set("y",t.y),this.resetLocation()},r.prototype.renderInner=function(t){var i=this.getLocation(),n=i.x,a=i.y,o=this.get("content"),s=this.get("style"),l=this.getElementId("text"),u=this.get("name")+"-text",c=this.get("maxLength"),f=this.get("autoEllipsis"),v=this.get("isVertical"),d=this.get("ellipsisPosition"),p=this.get("background"),y=this.get("rotate"),m={id:l,name:u,x:n,y:a,content:o,style:s,maxLength:c,autoEllipsis:f,isVertical:v,ellipsisPosition:d,background:p,rotate:y};Dn(t,m)},r.prototype.resetLocation=function(){var t=this.getElementByLocalId("text-group");if(t){var i=this.getLocation(),n=i.x,a=i.y,o=this.get("rotate");Ni(t,n,a),Al(t,o,n,a)}},r}(Ae),_g=xg,wg=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{name:"annotation",type:"arc",locationType:"circle",center:null,radius:100,startAngle:-Math.PI/2,endAngle:Math.PI*3/2,style:{stroke:"#999",lineWidth:1}})},r.prototype.renderInner=function(t){this.renderArc(t)},r.prototype.getArcPath=function(){var t=this.getLocation(),i=t.center,n=t.radius,a=t.startAngle,o=t.endAngle,s=oi(i,n,a),l=oi(i,n,o),u=o-a>Math.PI?1:0,c=[["M",s.x,s.y]];if(o-a==Math.PI*2){var f=oi(i,n,a+Math.PI);c.push(["A",n,n,0,u,1,f.x,f.y]),c.push(["A",n,n,0,u,1,l.x,l.y])}else c.push(["A",n,n,0,u,1,l.x,l.y]);return c},r.prototype.renderArc=function(t){var i=this.getArcPath(),n=this.get("style");this.addShape(t,{type:"path",id:this.getElementId("arc"),name:"annotation-arc",attrs:(0,g.__assign)({path:i},n)})},r}(Ae),bg=wg,Sg=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{name:"annotation",type:"region",locationType:"region",start:null,end:null,style:{},defaultCfg:{style:{lineWidth:0,fill:Vt.regionColor,opacity:.4}}})},r.prototype.renderInner=function(t){this.renderRegion(t)},r.prototype.renderRegion=function(t){var i=this.get("start"),n=this.get("end"),a=this.get("style"),o=zi({start:i,end:n});this.addShape(t,{type:"rect",id:this.getElementId("region"),name:"annotation-region",attrs:(0,g.__assign)({x:o.x,y:o.y,width:o.width,height:o.height},a)})},r}(Ae),Cg=Sg,Ag=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{name:"annotation",type:"image",locationType:"region",start:null,end:null,src:null,style:{}})},r.prototype.renderInner=function(t){this.renderImage(t)},r.prototype.getImageAttrs=function(){var t=this.get("start"),i=this.get("end"),n=this.get("style"),a=zi({start:t,end:i}),o=this.get("src");return(0,g.__assign)({x:a.x,y:a.y,img:o,width:a.width,height:a.height},n)},r.prototype.renderImage=function(t){this.addShape(t,{type:"image",id:this.getElementId("image"),name:"annotation-image",attrs:this.getImageAttrs()})},r}(Ae),Mg=Ag,Fg=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{name:"annotation",type:"dataMarker",locationType:"point",x:0,y:0,point:{},line:{},text:{},direction:"upward",autoAdjust:!0,coordinateBBox:null,defaultCfg:{point:{display:!0,style:{r:3,fill:"#FFFFFF",stroke:"#1890FF",lineWidth:2}},line:{display:!0,length:20,style:{stroke:Vt.lineColor,lineWidth:1}},text:{content:"",display:!0,style:{fill:Vt.textColor,opacity:.65,fontSize:12,textAlign:"start",fontFamily:Vt.fontFamily}}}})},r.prototype.renderInner=function(t){(0,h.get)(this.get("line"),"display")&&this.renderLine(t),(0,h.get)(this.get("text"),"display")&&this.renderText(t),(0,h.get)(this.get("point"),"display")&&this.renderPoint(t),this.get("autoAdjust")&&this.autoAdjust(t)},r.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x")+this.get("offsetX"),y:this.get("y")+this.get("offsetY")})},r.prototype.renderPoint=function(t){var i=this.getShapeAttrs().point;this.addShape(t,{type:"circle",id:this.getElementId("point"),name:"annotation-point",attrs:i})},r.prototype.renderLine=function(t){var i=this.getShapeAttrs().line;this.addShape(t,{type:"path",id:this.getElementId("line"),name:"annotation-line",attrs:i})},r.prototype.renderText=function(t){var i=this.getShapeAttrs().text,n=i.x,a=i.y,o=i.text,s=(0,g.__rest)(i,["x","y","text"]),l=this.get("text"),u=l.background,c=l.maxLength,f=l.autoEllipsis,v=l.isVertival,d=l.ellipsisPosition,p={x:n,y:a,id:this.getElementId("text"),name:"annotation-text",content:o,style:s,background:u,maxLength:c,autoEllipsis:f,isVertival:v,ellipsisPosition:d};Dn(t,p)},r.prototype.autoAdjust=function(t){var i=this.get("direction"),n=this.get("x"),a=this.get("y"),o=(0,h.get)(this.get("line"),"length",0),s=this.get("coordinateBBox"),l=t.getBBox(),u=l.minX,c=l.maxX,f=l.minY,v=l.maxY,d=t.findById(this.getElementId("text-group")),p=t.findById(this.getElementId("text")),y=t.findById(this.getElementId("line"));if(!!s){if(d){if(n+u<=s.minX){var m=s.minX-(n+u);Ni(d,d.attr("x")+m,d.attr("y"))}if(n+c>=s.maxX){var m=n+c-s.maxX;Ni(d,d.attr("x")-m,d.attr("y"))}}if(i==="upward"&&a+f<=s.minY||i!=="upward"&&a+v>=s.maxY){var x=void 0,_=void 0;i==="upward"&&a+f<=s.minY?(x="top",_=1):(x="bottom",_=-1),p.attr("textBaseline",x),y&&y.attr("path",[["M",0,0],["L",0,o*_]]),Ni(d,d.attr("x"),(o+2)*_)}}},r.prototype.getShapeAttrs=function(){var t=(0,h.get)(this.get("line"),"display"),i=(0,h.get)(this.get("point"),"style",{}),n=(0,h.get)(this.get("line"),"style",{}),a=(0,h.get)(this.get("text"),"style",{}),o=this.get("direction"),s=t?(0,h.get)(this.get("line"),"length",0):0,l=o==="upward"?-1:1;return{point:(0,g.__assign)({x:0,y:0},i),line:(0,g.__assign)({path:[["M",0,0],["L",0,s*l]]},n),text:(0,g.__assign)({x:0,y:(s+2)*l,text:(0,h.get)(this.get("text"),"content",""),textBaseline:o==="upward"?"bottom":"top"},a)}},r}(Ae),Eg=Fg,Tg=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{name:"annotation",type:"dataRegion",locationType:"points",points:[],lineLength:0,region:{},text:{},defaultCfg:{region:{style:{lineWidth:0,fill:Vt.regionColor,opacity:.4}},text:{content:"",style:{textAlign:"center",textBaseline:"bottom",fontSize:12,fill:Vt.textColor,fontFamily:Vt.fontFamily}}}})},r.prototype.renderInner=function(t){var i=(0,h.get)(this.get("region"),"style",{}),n=(0,h.get)(this.get("text"),"style",{}),a=this.get("lineLength")||0,o=this.get("points");if(!!o.length){var s=eg(o),l=[];l.push(["M",o[0].x,s.minY-a]),o.forEach(function(c){l.push(["L",c.x,c.y])}),l.push(["L",o[o.length-1].x,o[o.length-1].y-a]),this.addShape(t,{type:"path",id:this.getElementId("region"),name:"annotation-region",attrs:(0,g.__assign)({path:l},i)});var u=(0,g.__assign)({id:this.getElementId("text"),name:"annotation-text",x:(s.minX+s.maxX)/2,y:s.minY-a},this.get("text"));Dn(t,u)}},r}(Ae),Lg=Tg,Og=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{name:"annotation",type:"regionFilter",locationType:"region",start:null,end:null,color:null,shape:[]})},r.prototype.renderInner=function(t){var i=this,n=this.get("start"),a=this.get("end"),o=this.addGroup(t,{id:this.getElementId("region-filter"),capture:!1});(0,h.each)(this.get("shapes"),function(l,u){var c=l.get("type"),f=(0,h.clone)(l.attr());i.adjustShapeAttrs(f),i.addShape(o,{id:i.getElementId("shape-"+c+"-"+u),capture:!1,type:c,attrs:f})});var s=zi({start:n,end:a});o.setClip({type:"rect",attrs:{x:s.minX,y:s.minY,width:s.width,height:s.height}})},r.prototype.adjustShapeAttrs=function(t){var i=this.get("color");t.fill&&(t.fill=t.fillStyle=i),t.stroke=t.strokeStyle=i},r}(Ae),Ig=Og,Pg=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{name:"annotation",type:"shape",draw:h.noop})},r.prototype.renderInner=function(t){var i=this.get("render");(0,h.isFunction)(i)&&i(t)},r}(Ae),kg=Pg;function Oe(e,r,t){var i;try{i=window.getComputedStyle?window.getComputedStyle(e,null)[r]:e.style[r]}catch(n){}finally{i=i===void 0?t:i}return i}function Dg(e,r){var t=Oe(e,"width",r);return t==="auto"&&(t=e.offsetWidth),parseFloat(t)}function Bg(e,r){var t=Dg(e,r),i=parseFloat(Oe(e,"borderLeftWidth"))||0,n=parseFloat(Oe(e,"paddingLeft"))||0,a=parseFloat(Oe(e,"paddingRight"))||0,o=parseFloat(Oe(e,"borderRightWidth"))||0,s=parseFloat(Oe(e,"marginRight"))||0,l=parseFloat(Oe(e,"marginLeft"))||0;return t+i+o+n+a+l+s}function Rg(e,r){var t=Oe(e,"height",r);return t==="auto"&&(t=e.offsetHeight),parseFloat(t)}function Ng(e,r){var t=Rg(e,r),i=parseFloat(Oe(e,"borderTopWidth"))||0,n=parseFloat(Oe(e,"paddingTop"))||0,a=parseFloat(Oe(e,"paddingBottom"))||0,o=parseFloat(Oe(e,"borderBottomWidth"))||0,s=parseFloat(Oe(e,"marginTop"))||0,l=parseFloat(Oe(e,"marginBottom"))||0;return t+i+o+n+a+s+l}var zg=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{container:null,containerTpl:"
",updateAutoRender:!0,containerClassName:"",parent:null})},r.prototype.getContainer=function(){return this.get("container")},r.prototype.show=function(){var t=this.get("container");t.style.display="",this.set("visible",!0)},r.prototype.hide=function(){var t=this.get("container");t.style.display="none",this.set("visible",!1)},r.prototype.setCapture=function(t){var i=this.getContainer(),n=t?"auto":"none";i.style.pointerEvents=n,this.set("capture",t)},r.prototype.getBBox=function(){var t=this.getContainer(),i=parseFloat(t.style.left)||0,n=parseFloat(t.style.top)||0;return Vi(i,n,t.clientWidth,t.clientHeight)},r.prototype.clear=function(){var t=this.get("container");ro(t)},r.prototype.destroy=function(){this.removeEvent(),this.removeDom(),e.prototype.destroy.call(this)},r.prototype.init=function(){e.prototype.init.call(this),this.initContainer(),this.initDom(),this.resetStyles(),this.applyStyles(),this.initEvent(),this.initCapture(),this.initVisible()},r.prototype.initCapture=function(){this.setCapture(this.get("capture"))},r.prototype.initVisible=function(){this.get("visible")?this.show():this.hide()},r.prototype.initDom=function(){},r.prototype.initContainer=function(){var t=this.get("container");if((0,h.isNil)(t)){t=this.createDom();var i=this.get("parent");(0,h.isString)(i)&&(i=document.getElementById(i),this.set("parent",i)),i.appendChild(t),this.get("containerId")&&t.setAttribute("id",this.get("containerId")),this.set("container",t)}else(0,h.isString)(t)&&(t=document.getElementById(t),this.set("container",t));this.get("parent")||this.set("parent",t.parentNode)},r.prototype.resetStyles=function(){var t=this.get("domStyles"),i=this.get("defaultStyles");t?t=(0,h.deepMix)({},i,t):t=i,this.set("domStyles",t)},r.prototype.applyStyles=function(){var t=this.get("domStyles");if(!!t){var i=this.getContainer();this.applyChildrenStyles(i,t);var n=this.get("containerClassName");if(n&&tg(i,n)){var a=t[n];(0,k.Z)(i,a)}}},r.prototype.applyChildrenStyles=function(t,i){(0,h.each)(i,function(n,a){var o=t.getElementsByClassName(a);(0,h.each)(o,function(s){(0,k.Z)(s,n)})})},r.prototype.applyStyle=function(t,i){var n=this.get("domStyles");(0,k.Z)(i,n[t])},r.prototype.createDom=function(){var t=this.get("containerTpl");return(0,T.Z)(t)},r.prototype.initEvent=function(){},r.prototype.removeDom=function(){var t=this.get("container");t&&t.parentNode&&t.parentNode.removeChild(t)},r.prototype.removeEvent=function(){},r.prototype.updateInner=function(t){(0,h.hasKey)(t,"domStyles")&&(this.resetStyles(),this.applyStyles()),this.resetPosition()},r.prototype.resetPosition=function(){},r}(El),ao=zg,Vg=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{name:"annotation",type:"html",locationType:"point",x:0,y:0,containerTpl:'
',alignX:"left",alignY:"top",html:"",zIndex:7})},r.prototype.render=function(){var t=this.getContainer(),i=this.get("html");ro(t);var n=(0,h.isFunction)(i)?i(t):i;if((0,h.isElement)(n))t.appendChild(n);else if((0,h.isString)(n)||(0,h.isNumber)(n)){var a=(0,T.Z)(""+n);a&&t.appendChild(a)}this.resetPosition()},r.prototype.resetPosition=function(){var t=this.getContainer(),i=this.getLocation(),n=i.x,a=i.y,o=this.get("alignX"),s=this.get("alignY"),l=this.get("offsetX"),u=this.get("offsetY"),c=Bg(t),f=Ng(t),v={x:n,y:a};o==="middle"?v.x-=Math.round(c/2):o==="right"&&(v.x-=Math.round(c)),s==="middle"?v.y-=Math.round(f/2):s==="bottom"&&(v.y-=Math.round(f)),l&&(v.x+=l),u&&(v.y+=u),(0,k.Z)(t,{position:"absolute",left:v.x+"px",top:v.y+"px",zIndex:this.get("zIndex")})},r}(ao),Gg=Vg;function Wi(e,r,t){var i=r+"Style",n=null;return(0,h.each)(t,function(a,o){e[o]&&a[i]&&(n||(n={}),(0,h.mix)(n,a[i]))}),n}var Wg=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{name:"axis",ticks:[],line:{},tickLine:{},subTickLine:null,title:null,label:{},verticalFactor:1,verticalLimitLength:null,overlapOrder:["autoRotate","autoEllipsis","autoHide"],tickStates:{},optimize:{},defaultCfg:{line:{style:{lineWidth:1,stroke:Vt.lineColor}},tickLine:{style:{lineWidth:1,stroke:Vt.lineColor},alignTick:!0,length:5,displayWithLabel:!0},subTickLine:{style:{lineWidth:1,stroke:Vt.lineColor},count:4,length:2},label:{autoRotate:!0,autoHide:!1,autoEllipsis:!1,style:{fontSize:12,fill:Vt.textColor,fontFamily:Vt.fontFamily,fontWeight:"normal"},offset:10,offsetX:0,offsetY:0},title:{autoRotate:!0,spacing:5,position:"center",style:{fontSize:12,fill:Vt.textColor,textBaseline:"middle",fontFamily:Vt.fontFamily,textAlign:"center"},iconStyle:{fill:Vt.descriptionIconFill,stroke:Vt.descriptionIconStroke},description:""},tickStates:{active:{labelStyle:{fontWeight:500},tickLineStyle:{lineWidth:2}},inactive:{labelStyle:{fill:Vt.uncheckedColor}}},optimize:{enable:!0,threshold:400}},theme:{}})},r.prototype.renderInner=function(t){this.get("line")&&this.drawLine(t),this.drawTicks(t),this.get("title")&&this.drawTitle(t)},r.prototype.isList=function(){return!0},r.prototype.getItems=function(){return this.get("ticks")},r.prototype.setItems=function(t){this.update({ticks:t})},r.prototype.updateItem=function(t,i){(0,h.mix)(t,i),this.clear(),this.render()},r.prototype.clearItems=function(){var t=this.getElementByLocalId("label-group");t&&t.clear()},r.prototype.setItemState=function(t,i,n){t[i]=n,this.updateTickStates(t)},r.prototype.hasState=function(t,i){return!!t[i]},r.prototype.getItemStates=function(t){var i=this.get("tickStates"),n=[];return(0,h.each)(i,function(a,o){t[o]&&n.push(o)}),n},r.prototype.clearItemsState=function(t){var i=this,n=this.getItemsByState(t);(0,h.each)(n,function(a){i.setItemState(a,t,!1)})},r.prototype.getItemsByState=function(t){var i=this,n=this.getItems();return(0,h.filter)(n,function(a){return i.hasState(a,t)})},r.prototype.getSidePoint=function(t,i){var n=this,a=n.getSideVector(i,t);return{x:t.x+a[0],y:t.y+a[1]}},r.prototype.getTextAnchor=function(t){var i;return(0,h.isNumberEqual)(t[0],0)?i="center":t[0]>0?i="start":t[0]<0&&(i="end"),i},r.prototype.getTextBaseline=function(t){var i;return(0,h.isNumberEqual)(t[1],0)?i="middle":t[1]>0?i="top":t[1]<0&&(i="bottom"),i},r.prototype.processOverlap=function(t){},r.prototype.drawLine=function(t){var i=this.getLinePath(),n=this.get("line");this.addShape(t,{type:"path",id:this.getElementId("line"),name:"axis-line",attrs:(0,h.mix)({path:i},n.style)})},r.prototype.getTickLineItems=function(t){var i=this,n=[],a=this.get("tickLine"),o=a.alignTick,s=a.length,l=1,u=t.length;return u>=2&&(l=t[1].value-t[0].value),(0,h.each)(t,function(c){var f=c.point;o||(f=i.getTickPoint(c.value-l/2));var v=i.getSidePoint(f,s);n.push({startPoint:f,tickValue:c.value,endPoint:v,tickId:c.id,id:"tickline-"+c.id})}),n},r.prototype.getSubTickLineItems=function(t){var i=[],n=this.get("subTickLine"),a=n.count,o=t.length;if(o>=2)for(var s=0;s0){var n=(0,h.size)(i);if(n>t.threshold){var a=Math.ceil(n/t.threshold),o=i.filter(function(s,l){return l%a==0});this.set("ticks",o),this.set("originalTicks",i)}}},r.prototype.getLabelAttrs=function(t,i,n){var a=this.get("label"),o=a.offset,s=a.offsetX,l=a.offsetY,u=a.rotate,c=a.formatter,f=this.getSidePoint(t.point,o),v=this.getSideVector(o,f),d=c?c(t.name,t,i):t.name,p=a.style;p=(0,h.isFunction)(p)?(0,h.get)(this.get("theme"),["label","style"],{}):p;var y=(0,h.mix)({x:f.x+s,y:f.y+l,text:d,textAlign:this.getTextAnchor(v),textBaseline:this.getTextBaseline(v)},p);return u&&(y.matrix=Dr(f,u)),y},r.prototype.drawLabels=function(t){var i=this,n=this.get("ticks"),a=this.addGroup(t,{name:"axis-label-group",id:this.getElementId("label-group")});(0,h.each)(n,function(v,d){i.addShape(a,{type:"text",name:"axis-label",id:i.getElementId("label-"+v.id),attrs:i.getLabelAttrs(v,d,n),delegateObject:{tick:v,item:v,index:d}})}),this.processOverlap(a);var o=a.getChildren(),s=(0,h.get)(this.get("theme"),["label","style"],{}),l=this.get("label"),u=l.style,c=l.formatter;if((0,h.isFunction)(u)){var f=o.map(function(v){return(0,h.get)(v.get("delegateObject"),"tick")});(0,h.each)(o,function(v,d){var p=v.get("delegateObject").tick,y=c?c(p.name,p,d):p.name,m=(0,h.mix)({},s,u(y,d,f));v.attr(m)})}},r.prototype.getTitleAttrs=function(){var t=this.get("title"),i=t.style,n=t.position,a=t.offset,o=t.spacing,s=o===void 0?0:o,l=t.autoRotate,u=i.fontSize,c=.5;n==="start"?c=0:n==="end"&&(c=1);var f=this.getTickPoint(c),v=this.getSidePoint(f,a||s+u/2),d=(0,h.mix)({x:v.x,y:v.y,text:t.text},i),p=t.rotate,y=p;if((0,h.isNil)(p)&&l){var m=this.getAxisVector(f),x=[1,0];y=ie.Dg(m,x,!0)}if(y){var _=Dr(v,y);d.matrix=_}return d},r.prototype.drawTitle=function(t){var i,n=this.getTitleAttrs(),a=this.addShape(t,{type:"text",id:this.getElementId("title"),name:"axis-title",attrs:n});((i=this.get("title"))===null||i===void 0?void 0:i.description)&&this.drawDescriptionIcon(t,a,n.matrix)},r.prototype.drawDescriptionIcon=function(t,i,n){var a=this.addGroup(t,{name:"axis-description",id:this.getElementById("description")}),o=i.getBBox(),s=o.maxX,l=o.maxY,u=o.height,c=this.get("title").iconStyle,f=4,v=u/2,d=v/6,p=s+f,y=l-u/2,m=[p+v,y-v],x=m[0],_=m[1],w=[x+v,_+v],b=w[0],S=w[1],C=[x,S+v],A=C[0],F=C[1],P=[p,_+v],L=P[0],z=P[1],Q=[p+v,y-u/4],xt=Q[0],_t=Q[1],Rt=[xt,_t+d],H=Rt[0],at=Rt[1],pt=[H,at+d],ut=pt[0],gt=pt[1],At=[ut,gt+v*3/4],Gt=At[0],Wt=At[1];this.addShape(a,{type:"path",id:this.getElementId("title-description-icon"),name:"axis-title-description-icon",attrs:(0,g.__assign)({path:[["M",x,_],["A",v,v,0,0,1,b,S],["A",v,v,0,0,1,A,F],["A",v,v,0,0,1,L,z],["A",v,v,0,0,1,x,_],["M",xt,_t],["L",H,at],["M",ut,gt],["L",Gt,Wt]],lineWidth:d,matrix:n},c)}),this.addShape(a,{type:"rect",id:this.getElementId("title-description-rect"),name:"axis-title-description-rect",attrs:{x:p,y:y-u/2,width:u,height:u,stroke:"#000",fill:"#000",opacity:0,matrix:n,cursor:"pointer"}})},r.prototype.applyTickStates=function(t,i){var n=this.getItemStates(t);if(n.length){var a=this.get("tickStates"),o=this.getElementId("label-"+t.id),s=i.findById(o);if(s){var l=Wi(t,"label",a);l&&s.attr(l)}var u=this.getElementId("tickline-"+t.id),c=i.findById(u);if(c){var f=Wi(t,"tickLine",a);f&&c.attr(f)}}},r.prototype.updateTickStates=function(t){var i=this.getItemStates(t),n=this.get("tickStates"),a=this.get("label"),o=this.getElementByLocalId("label-"+t.id),s=this.get("tickLine"),l=this.getElementByLocalId("tickline-"+t.id);if(i.length){if(o){var u=Wi(t,"label",n);u&&o.attr(u)}if(l){var c=Wi(t,"tickLine",n);c&&l.attr(c)}}else o&&o.attr(a.style),l&&l.attr(s.style)},r}(Ae),Tl=Wg;function oo(e,r,t,i){var n=r.getChildren(),a=!1;return(0,h.each)(n,function(o){var s=Gi(e,o,t,i);a=a||s}),a}function Hg(){return Ll}function Yg(e,r,t){return oo(e,r,t,"head")}function Ll(e,r,t){return oo(e,r,t,"tail")}function Xg(e,r,t){return oo(e,r,t,"middle")}function Ug(e){var r=e.attr("matrix");return r&&r[0]!==1}function Ol(e){var r=Ug(e)?Qd(e.attr("matrix")):0;return r%360}function so(e,r,t,i){var n=!1,a=Ol(r),o=Math.abs(e?t.attr("y")-r.attr("y"):t.attr("x")-r.attr("x")),s=(e?t.attr("y")>r.attr("y"):t.attr("x")>r.attr("x"))?r.getBBox():t.getBBox();if(e){var l=Math.abs(Math.cos(a));kn(l,0,Math.PI/180)?n=s.width+i>o:n=s.height/l+i>o}else{var l=Math.abs(Math.sin(a));kn(l,0,Math.PI/180)?n=s.width+i>o:n=s.height/l+i>o}return n}function Hi(e,r,t,i){var n=(i==null?void 0:i.minGap)||0,a=r.getChildren().slice().filter(function(p){return p.get("visible")});if(!a.length)return!1;var o=!1;t&&a.reverse();for(var s=a.length,l=a[0],u=l,c=1;c1){v=Math.ceil(v);for(var y=0;y2){var o=n[0],s=n[n.length-1];o.get("visible")||(o.show(),Hi(e,r,!1,i)&&(a=!0)),s.get("visible")||(s.show(),Hi(e,r,!0,i)&&(a=!0))}return a}function Qg(e,r){(0,h.each)(e,function(t){var i=t.attr("x"),n=t.attr("y"),a=Dr({x:i,y:n},r);t.attr("matrix",a)})}function kl(e,r,t,i){var n=r.getChildren();if(!n.length||!e&&n.length<2)return!1;var a=no(n),o=!1;if(e)o=!!t&&a>t;else{var s=Math.abs(n[1].attr("x")-n[0].attr("x"));o=a>s}if(o){var l=i(t,a);Qg(n,l)}return o}function Jg(){return Dl}function Dl(e,r,t,i){return kl(e,r,t,function(){return(0,h.isNumber)(i)?i:e?Vt.verticalAxisRotate:Vt.horizontalAxisRotate})}function tp(e,r,t){return kl(e,r,t,function(i,n){if(!i)return e?Vt.verticalAxisRotate:Vt.horizontalAxisRotate;if(e)return-Math.acos(i/n);var a=0;return i>n?a=Math.PI/4:(a=Math.asin(i/n),a>Math.PI/4&&(a=Math.PI/4)),a})}var ep=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{type:"line",locationType:"region",start:null,end:null})},r.prototype.getLinePath=function(){var t=this.get("start"),i=this.get("end"),n=[];return n.push(["M",t.x,t.y]),n.push(["L",i.x,i.y]),n},r.prototype.getInnerLayoutBBox=function(){var t=this.get("start"),i=this.get("end"),n=e.prototype.getInnerLayoutBBox.call(this),a=Math.min(t.x,i.x,n.x),o=Math.min(t.y,i.y,n.y),s=Math.max(t.x,i.x,n.maxX),l=Math.max(t.y,i.y,n.maxY);return{x:a,y:o,minX:a,minY:o,maxX:s,maxY:l,width:s-a,height:l-o}},r.prototype.isVertical=function(){var t=this.get("start"),i=this.get("end");return(0,h.isNumberEqual)(t.x,i.x)},r.prototype.isHorizontal=function(){var t=this.get("start"),i=this.get("end");return(0,h.isNumberEqual)(t.y,i.y)},r.prototype.getTickPoint=function(t){var i=this,n=i.get("start"),a=i.get("end"),o=a.x-n.x,s=a.y-n.y;return{x:n.x+o*t,y:n.y+s*t}},r.prototype.getSideVector=function(t){var i=this.getAxisVector(),n=Lt.normalize([0,0],i),a=this.get("verticalFactor"),o=[n[1],n[0]*-1];return Lt.scale([0,0],o,t*a)},r.prototype.getAxisVector=function(){var t=this.get("start"),i=this.get("end");return[i.x-t.x,i.y-t.y]},r.prototype.processOverlap=function(t){var i=this,n=this.isVertical(),a=this.isHorizontal();if(!(!n&&!a)){var o=this.get("label"),s=this.get("title"),l=this.get("verticalLimitLength"),u=o.offset,c=l,f=0,v=0;s&&(f=s.style.fontSize,v=s.spacing),c&&(c=c-u-v-f);var d=this.get("overlapOrder");if((0,h.each)(d,function(m){o[m]&&i.canProcessOverlap(m)&&i.autoProcessOverlap(m,o[m],t,c)}),s&&(0,h.isNil)(s.offset)){var p=t.getCanvasBBox(),y=n?p.width:p.height;s.offset=u+y+v+f/2}}},r.prototype.canProcessOverlap=function(t){var i=this.get("label");return t==="autoRotate"?(0,h.isNil)(i.rotate):!0},r.prototype.autoProcessOverlap=function(t,i,n,a){var o=this,s=this.isVertical(),l=!1,u=ft[t];if(i===!0){var c=this.get("label");l=u.getDefault()(s,n,a)}else if((0,h.isFunction)(i))l=i(s,n,a);else if((0,h.isObject)(i)){var f=i;u[f.type]&&(l=u[f.type](s,n,a,f.cfg))}else u[i]&&(l=u[i](s,n,a));if(t==="autoRotate"){if(l){var v=n.getChildren(),d=this.get("verticalFactor");(0,h.each)(v,function(y){var m=y.attr("textAlign");if(m==="center"){var x=d>0?"end":"start";y.attr("textAlign",x)}})}}else if(t==="autoHide"){var p=n.getChildren().slice(0);(0,h.each)(p,function(y){y.get("visible")||(o.get("isRegister")&&o.unregisterElement(y),y.remove())})}},r}(Tl),rp=ep,ip=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{type:"circle",locationType:"circle",center:null,radius:null,startAngle:-Math.PI/2,endAngle:Math.PI*3/2})},r.prototype.getLinePath=function(){var t=this.get("center"),i=t.x,n=t.y,a=this.get("radius"),o=a,s=this.get("startAngle"),l=this.get("endAngle"),u=[];if(Math.abs(l-s)===Math.PI*2)u=[["M",i,n-o],["A",a,o,0,1,1,i,n+o],["A",a,o,0,1,1,i,n-o],["Z"]];else{var c=this.getCirclePoint(s),f=this.getCirclePoint(l),v=Math.abs(l-s)>Math.PI?1:0,d=s>l?0:1;u=[["M",i,n],["L",c.x,c.y],["A",a,o,0,v,d,f.x,f.y],["L",i,n]]}return u},r.prototype.getTickPoint=function(t){var i=this.get("startAngle"),n=this.get("endAngle"),a=i+(n-i)*t;return this.getCirclePoint(a)},r.prototype.getSideVector=function(t,i){var n=this.get("center"),a=[i.x-n.x,i.y-n.y],o=this.get("verticalFactor"),s=Lt.length(a);return Lt.scale(a,a,o*t/s),a},r.prototype.getAxisVector=function(t){var i=this.get("center"),n=[t.x-i.x,t.y-i.y];return[n[1],-1*n[0]]},r.prototype.getCirclePoint=function(t,i){var n=this.get("center");return i=i||this.get("radius"),{x:n.x+Math.cos(t)*i,y:n.y+Math.sin(t)*i}},r.prototype.canProcessOverlap=function(t){var i=this.get("label");return t==="autoRotate"?(0,h.isNil)(i.rotate):!0},r.prototype.processOverlap=function(t){var i=this,n=this.get("label"),a=this.get("title"),o=this.get("verticalLimitLength"),s=n.offset,l=o,u=0,c=0;a&&(u=a.style.fontSize,c=a.spacing),l&&(l=l-s-c-u);var f=this.get("overlapOrder");if((0,h.each)(f,function(d){n[d]&&i.canProcessOverlap(d)&&i.autoProcessOverlap(d,n[d],t,l)}),a&&(0,h.isNil)(a.offset)){var v=t.getCanvasBBox().height;a.offset=s+v+c+u/2}},r.prototype.autoProcessOverlap=function(t,i,n,a){var o=this,s=!1,l=ft[t];if(a>0)if(i===!0)s=l.getDefault()(!1,n,a);else if((0,h.isFunction)(i))s=i(!1,n,a);else if((0,h.isObject)(i)){var u=i;l[u.type]&&(s=l[u.type](!1,n,a,u.cfg))}else l[i]&&(s=l[i](!1,n,a));if(t==="autoRotate"){if(s){var c=n.getChildren(),f=this.get("verticalFactor");(0,h.each)(c,function(d){var p=d.attr("textAlign");if(p==="center"){var y=f>0?"end":"start";d.attr("textAlign",y)}})}}else if(t==="autoHide"){var v=n.getChildren().slice(0);(0,h.each)(v,function(d){d.get("visible")||(o.get("isRegister")&&o.unregisterElement(d),d.remove())})}},r}(Tl),np=ip,ap=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{name:"crosshair",type:"base",line:{},text:null,textBackground:{},capture:!1,defaultCfg:{line:{style:{lineWidth:1,stroke:Vt.lineColor}},text:{position:"start",offset:10,autoRotate:!1,content:null,style:{fill:Vt.textColor,textAlign:"center",textBaseline:"middle",fontFamily:Vt.fontFamily}},textBackground:{padding:5,style:{stroke:Vt.lineColor}}}})},r.prototype.renderInner=function(t){this.get("line")&&this.renderLine(t),this.get("text")&&(this.renderText(t),this.renderBackground(t))},r.prototype.renderText=function(t){var i=this.get("text"),n=i.style,a=i.autoRotate,o=i.content;if(!(0,h.isNil)(o)){var s=this.getTextPoint(),l=null;if(a){var u=this.getRotateAngle();l=Dr(s,u)}this.addShape(t,{type:"text",name:"crosshair-text",id:this.getElementId("text"),attrs:(0,g.__assign)((0,g.__assign)((0,g.__assign)({},s),{text:o,matrix:l}),n)})}},r.prototype.renderLine=function(t){var i=this.getLinePath(),n=this.get("line"),a=n.style;this.addShape(t,{type:"path",name:"crosshair-line",id:this.getElementId("line"),attrs:(0,g.__assign)({path:i},a)})},r.prototype.renderBackground=function(t){var i=this.getElementId("text"),n=t.findById(i),a=this.get("textBackground");if(a&&n){var o=n.getBBox(),s=Pn(a.padding),l=a.style,u=this.addShape(t,{type:"rect",name:"crosshair-text-background",id:this.getElementId("text-background"),attrs:(0,g.__assign)({x:o.x-s[3],y:o.y-s[0],width:o.width+s[1]+s[3],height:o.height+s[0]+s[2],matrix:n.attr("matrix")},l)});u.toBack()}},r}(Ae),lo=ap,op=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{type:"line",locationType:"region",start:null,end:null})},r.prototype.getRotateAngle=function(){var t=this.getLocation(),i=t.start,n=t.end,a=this.get("text").position,o=Math.atan2(n.y-i.y,n.x-i.x),s=a==="start"?o-Math.PI/2:o+Math.PI/2;return s},r.prototype.getTextPoint=function(){var t=this.getLocation(),i=t.start,n=t.end,a=this.get("text"),o=a.position,s=a.offset;return Fl(i,n,o,s)},r.prototype.getLinePath=function(){var t=this.getLocation(),i=t.start,n=t.end;return[["M",i.x,i.y],["L",n.x,n.y]]},r}(lo),Bl=op,sp=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{type:"circle",locationType:"circle",center:null,radius:100,startAngle:-Math.PI/2,endAngle:Math.PI*3/2})},r.prototype.getRotateAngle=function(){var t=this.getLocation(),i=t.startAngle,n=t.endAngle,a=this.get("text").position,o=a==="start"?i+Math.PI/2:n-Math.PI/2;return o},r.prototype.getTextPoint=function(){var t=this.get("text"),i=t.position,n=t.offset,a=this.getLocation(),o=a.center,s=a.radius,l=a.startAngle,u=a.endAngle,c=i==="start"?l:u,f=this.getRotateAngle()-Math.PI,v=oi(o,s,c),d=Math.cos(f)*n,p=Math.sin(f)*n;return{x:v.x+d,y:v.y+p}},r.prototype.getLinePath=function(){var t=this.getLocation(),i=t.center,n=t.radius,a=t.startAngle,o=t.endAngle,s=null;if(o-a==Math.PI*2){var l=i.x,u=i.y;s=[["M",l,u-n],["A",n,n,0,1,1,l,u+n],["A",n,n,0,1,1,l,u-n],["Z"]]}else{var c=oi(i,n,a),f=oi(i,n,o),v=Math.abs(o-a)>Math.PI?1:0,d=a>o?0:1;s=[["M",c.x,c.y],["A",n,n,0,v,d,f.x,f.y]]}return s},r}(lo),lp=sp,Yi="g2-crosshair",uo=Yi+"-line",co=Yi+"-text",Xi,up=(Xi={},Xi[""+Yi]={position:"relative"},Xi[""+uo]={position:"absolute",backgroundColor:"rgba(0, 0, 0, 0.25)"},Xi[""+co]={position:"absolute",color:Vt.textColor,fontFamily:Vt.fontFamily},Xi),cp=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{name:"crosshair",type:"html",locationType:"region",start:{x:0,y:0},end:{x:0,y:0},capture:!1,text:null,containerTpl:'
',crosshairTpl:'
',textTpl:'{content}',domStyles:null,containerClassName:Yi,defaultStyles:up,defaultCfg:{text:{position:"start",content:null,align:"center",offset:10}}})},r.prototype.render=function(){this.resetText(),this.resetPosition()},r.prototype.initCrossHair=function(){var t=this.getContainer(),i=this.get("crosshairTpl"),n=(0,T.Z)(i);t.appendChild(n),this.applyStyle(uo,n),this.set("crosshairEl",n)},r.prototype.getTextPoint=function(){var t=this.getLocation(),i=t.start,n=t.end,a=this.get("text"),o=a.position,s=a.offset;return Fl(i,n,o,s)},r.prototype.resetText=function(){var t=this.get("text"),i=this.get("textEl");if(t){var n=t.content;if(!i){var a=this.getContainer(),o=(0,h.substitute)(this.get("textTpl"),t);i=(0,T.Z)(o),a.appendChild(i),this.applyStyle(co,i),this.set("textEl",i)}i.innerHTML=n}else i&&i.remove()},r.prototype.isVertical=function(t,i){return t.x===i.x},r.prototype.resetPosition=function(){var t=this.get("crosshairEl");t||(this.initCrossHair(),t=this.get("crosshairEl"));var i=this.get("start"),n=this.get("end"),a=Math.min(i.x,n.x),o=Math.min(i.y,n.y);this.isVertical(i,n)?(0,k.Z)(t,{width:"1px",height:Le(Math.abs(n.y-i.y))}):(0,k.Z)(t,{height:"1px",width:Le(Math.abs(n.x-i.x))}),(0,k.Z)(t,{top:Le(o),left:Le(a)}),this.alignText()},r.prototype.alignText=function(){var t=this.get("textEl");if(t){var i=this.get("text").align,n=t.clientWidth,a=this.getTextPoint();switch(i){case"center":a.x=a.x-n/2;break;case"right":a.x=a.x-n;case"left":break}(0,k.Z)(t,{top:Le(a.y),left:Le(a.x)})}},r.prototype.updateInner=function(t){(0,h.hasKey)(t,"text")&&this.resetText(),e.prototype.updateInner.call(this,t)},r}(ao),hp=cp,fp=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{name:"grid",line:{},alternateColor:null,capture:!1,items:[],closed:!1,defaultCfg:{line:{type:"line",style:{lineWidth:1,stroke:Vt.lineColor}}}})},r.prototype.getLineType=function(){var t=this.get("line")||this.get("defaultCfg").line;return t.type},r.prototype.renderInner=function(t){this.drawGrid(t)},r.prototype.getAlternatePath=function(t,i){var n=this.getGridPath(t),a=i.slice(0).reverse(),o=this.getGridPath(a,!0),s=this.get("closed");return s?n=n.concat(o):(o[0][0]="L",n=n.concat(o),n.push(["Z"])),n},r.prototype.getPathStyle=function(){return this.get("line").style},r.prototype.drawGrid=function(t){var i=this,n=this.get("line"),a=this.get("items"),o=this.get("alternateColor"),s=null;(0,h.each)(a,function(l,u){var c=l.id||u;if(n){var f=i.getPathStyle();f=(0,h.isFunction)(f)?f(l,u,a):f;var v=i.getElementId("line-"+c),d=i.getGridPath(l.points);i.addShape(t,{type:"path",name:"grid-line",id:v,attrs:(0,h.mix)({path:d},f)})}if(o&&u>0){var p=i.getElementId("region-"+c),y=u%2==0;if((0,h.isString)(o))y&&i.drawAlternateRegion(p,t,s.points,l.points,o);else{var m=y?o[1]:o[0];i.drawAlternateRegion(p,t,s.points,l.points,m)}}s=l})},r.prototype.drawAlternateRegion=function(t,i,n,a,o){var s=this.getAlternatePath(n,a);this.addShape(i,{type:"path",id:t,name:"grid-region",attrs:{path:s,fill:o}})},r}(Ae),Rl=fp;function vp(e,r,t,i){var n=t-e,a=i-r;return Math.sqrt(n*n+a*a)}var dp=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{type:"circle",center:null,closed:!0})},r.prototype.getGridPath=function(t,i){var n=this.getLineType(),a=this.get("closed"),o=[];if(t.length)if(n==="circle"){var s=this.get("center"),l=t[0],u=vp(s.x,s.y,l.x,l.y),c=i?0:1;a?(o.push(["M",s.x,s.y-u]),o.push(["A",u,u,0,0,c,s.x,s.y+u]),o.push(["A",u,u,0,0,c,s.x,s.y-u]),o.push(["Z"])):(0,h.each)(t,function(f,v){v===0?o.push(["M",f.x,f.y]):o.push(["A",u,u,0,0,c,f.x,f.y])})}else(0,h.each)(t,function(f,v){v===0?o.push(["M",f.x,f.y]):o.push(["L",f.x,f.y])}),a&&o.push(["Z"]);return o},r}(Rl),gp=dp,pp=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{type:"line"})},r.prototype.getGridPath=function(t){var i=[];return(0,h.each)(t,function(n,a){a===0?i.push(["M",n.x,n.y]):i.push(["L",n.x,n.y])}),i},r}(Rl),yp=pp,mp=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{name:"legend",layout:"horizontal",locationType:"point",x:0,y:0,offsetX:0,offsetY:0,title:null,background:null})},r.prototype.getLayoutBBox=function(){var t=e.prototype.getLayoutBBox.call(this),i=this.get("maxWidth"),n=this.get("maxHeight"),a=t.width,o=t.height;return i&&(a=Math.min(a,i)),n&&(o=Math.min(o,n)),Vi(t.minX,t.minY,a,o)},r.prototype.setLocation=function(t){this.set("x",t.x),this.set("y",t.y),this.resetLocation()},r.prototype.resetLocation=function(){var t=this.get("x"),i=this.get("y"),n=this.get("offsetX"),a=this.get("offsetY");this.moveElementTo(this.get("group"),{x:t+n,y:i+a})},r.prototype.applyOffset=function(){this.resetLocation()},r.prototype.getDrawPoint=function(){return this.get("currentPoint")},r.prototype.setDrawPoint=function(t){return this.set("currentPoint",t)},r.prototype.renderInner=function(t){this.resetDraw(),this.get("title")&&this.drawTitle(t),this.drawLegendContent(t),this.get("background")&&this.drawBackground(t)},r.prototype.drawBackground=function(t){var i=this.get("background"),n=t.getBBox(),a=Pn(i.padding),o=(0,g.__assign)({x:0,y:0,width:n.width+a[1]+a[3],height:n.height+a[0]+a[2]},i.style),s=this.addShape(t,{type:"rect",id:this.getElementId("background"),name:"legend-background",attrs:o});s.toBack()},r.prototype.drawTitle=function(t){var i=this.get("currentPoint"),n=this.get("title"),a=n.spacing,o=n.style,s=n.text,l=this.addShape(t,{type:"text",id:this.getElementId("title"),name:"legend-title",attrs:(0,g.__assign)({text:s,x:i.x,y:i.y},o)}),u=l.getBBox();this.set("currentPoint",{x:i.x,y:u.maxY+a})},r.prototype.resetDraw=function(){var t=this.get("background"),i={x:0,y:0};if(t){var n=Pn(t.padding);i.x=n[3],i.y=n[0]}this.set("currentPoint",i)},r}(Ae),Nl=mp,ho={marker:{style:{inactiveFill:"#000",inactiveOpacity:.45,fill:"#000",opacity:1,size:12}},text:{style:{fill:"#ccc",fontSize:12}}},Bn={fill:Vt.textColor,fontSize:12,textAlign:"start",textBaseline:"middle",fontFamily:Vt.fontFamily,fontWeight:"normal",lineHeight:12},fo="navigation-arrow-right",vo="navigation-arrow-left",zl={right:90*Math.PI/180,left:(360-90)*Math.PI/180,up:0,down:180*Math.PI/180},xp=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.currentPageIndex=1,t.totalPagesCnt=1,t.pageWidth=0,t.pageHeight=0,t.startX=0,t.startY=0,t.onNavigationBack=function(){var i=t.getElementByLocalId("item-group");if(t.currentPageIndex>1){t.currentPageIndex-=1,t.updateNavigation();var n=t.getCurrentNavigationMatrix();t.get("animate")?i.animate({matrix:n},100):i.attr({matrix:n})}},t.onNavigationAfter=function(){var i=t.getElementByLocalId("item-group");if(t.currentPageIndexm&&(m=A),d==="horizontal"?(x&&xb&&(b=z.width)}),S=b,b+=v,u&&(b=Math.min(u,b),S=Math.min(u,S)),this.pageWidth=b,this.pageHeight=c-Math.max(m.height,d+C);var P=Math.floor(this.pageHeight/(d+C));(0,h.each)(l,function(L,z){z!==0&&z%P==0&&(_+=1,x.x+=b,x.y=o),n.moveElementTo(L,x),L.getParent().setClip({type:"rect",attrs:{x:x.x,y:x.y,width:b,height:d}}),x.y+=d+C}),this.totalPagesCnt=_,this.moveElementTo(y,{x:a+S/2-m.width/2-m.minX,y:c-m.height-m.minY})}this.pageHeight&&this.pageWidth&&i.getParent().setClip({type:"rect",attrs:{x:this.startX,y:this.startY,width:this.pageWidth,height:this.pageHeight}}),s==="horizontal"&&this.get("maxRow")?this.totalPagesCnt=Math.ceil(_/this.get("maxRow")):this.totalPagesCnt=_,this.currentPageIndex>this.totalPagesCnt&&(this.currentPageIndex=1),this.updateNavigation(y),i.attr("matrix",this.getCurrentNavigationMatrix())},r.prototype.drawNavigation=function(t,i,n,a){var o={x:0,y:0},s=this.addGroup(t,{id:this.getElementId("navigation-group"),name:"legend-navigation"}),l=(0,h.get)(a.marker,"style",{}),u=l.size,c=u===void 0?12:u,f=(0,g.__rest)(l,["size"]),v=this.drawArrow(s,o,vo,i==="horizontal"?"up":"left",c,f);v.on("click",this.onNavigationBack);var d=v.getBBox();o.x+=d.width+2;var p=this.addShape(s,{type:"text",id:this.getElementId("navigation-text"),name:"navigation-text",attrs:(0,g.__assign)({x:o.x,y:o.y+c/2,text:n,textBaseline:"middle"},(0,h.get)(a.text,"style"))}),y=p.getBBox();o.x+=y.width+2;var m=this.drawArrow(s,o,fo,i==="horizontal"?"down":"right",c,f);return m.on("click",this.onNavigationAfter),s},r.prototype.updateNavigation=function(t){var i=(0,h.deepMix)({},ho,this.get("pageNavigator")),n=i.marker.style,a=n.fill,o=n.opacity,s=n.inactiveFill,l=n.inactiveOpacity,u=this.currentPageIndex+"/"+this.totalPagesCnt,c=t?t.getChildren()[1]:this.getElementByLocalId("navigation-text"),f=t?t.findById(this.getElementId(vo)):this.getElementByLocalId(vo),v=t?t.findById(this.getElementId(fo)):this.getElementByLocalId(fo);c.attr("text",u),f.attr("opacity",this.currentPageIndex===1?l:o),f.attr("fill",this.currentPageIndex===1?s:a),f.attr("cursor",this.currentPageIndex===1?"not-allowed":"pointer"),v.attr("opacity",this.currentPageIndex===this.totalPagesCnt?l:o),v.attr("fill",this.currentPageIndex===this.totalPagesCnt?s:a),v.attr("cursor",this.currentPageIndex===this.totalPagesCnt?"not-allowed":"pointer");var d=f.getBBox().maxX+2;c.attr("x",d),d+=c.getBBox().width+2,this.updateArrowPath(v,{x:d,y:0})},r.prototype.drawArrow=function(t,i,n,a,o,s){var l=i.x,u=i.y,c=this.addShape(t,{type:"path",id:this.getElementId(n),name:n,attrs:(0,g.__assign)({size:o,direction:a,path:[["M",l+o/2,u],["L",l,u+o],["L",l+o,u+o],["Z"]],cursor:"pointer"},s)});return c.attr("matrix",Dr({x:l+o/2,y:u+o/2},zl[a])),c},r.prototype.updateArrowPath=function(t,i){var n=i.x,a=i.y,o=t.attr(),s=o.size,l=o.direction,u=Dr({x:n+s/2,y:a+s/2},zl[l]);t.attr("path",[["M",n+s/2,a],["L",n,a+s],["L",n+s,a+s],["Z"]]),t.attr("matrix",u)},r.prototype.getCurrentNavigationMatrix=function(){var t=this,i=t.currentPageIndex,n=t.pageWidth,a=t.pageHeight,o=this.get("layout"),s=o==="horizontal"?{x:0,y:a*(1-i)}:{x:n*(1-i),y:0};return eo(s)},r.prototype.applyItemStates=function(t,i){var n=this.getItemStates(t),a=n.length>0;if(a){var o=i.getChildren(),s=this.get("itemStates");(0,h.each)(o,function(l){var u=l.get("name"),c=u.split("-")[2],f=Wi(t,c,s);f&&(l.attr(f),c==="marker"&&!(l.get("isStroke")&&l.get("isFill"))&&(l.get("isStroke")&&l.attr("fill",null),l.get("isFill")&&l.attr("stroke",null)))})}},r.prototype.getLimitItemWidth=function(){var t=this.get("itemWidth"),i=this.get("maxItemWidth");return i?t&&(i=t<=i?t:i):t&&(i=t),i},r}(Nl),_p=xp,wp=1.4,Vl=.4,bp=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{type:"continue",min:0,max:100,value:null,colors:[],track:{},rail:{},label:{},handler:{},slidable:!0,tip:null,step:null,maxWidth:null,maxHeight:null,defaultCfg:{label:{align:"rail",spacing:5,formatter:null,style:{fontSize:12,fill:Vt.textColor,textBaseline:"middle",fontFamily:Vt.fontFamily}},handler:{size:10,style:{fill:"#fff",stroke:"#333"}},track:{},rail:{type:"color",size:20,defaultLength:100,style:{fill:"#DCDEE2"}},title:{spacing:5,style:{fill:Vt.textColor,fontSize:12,textAlign:"start",textBaseline:"top"}}}})},r.prototype.isSlider=function(){return!0},r.prototype.getValue=function(){return this.getCurrentValue()},r.prototype.getRange=function(){return{min:this.get("min"),max:this.get("max")}},r.prototype.setRange=function(t,i){this.update({min:t,max:i})},r.prototype.setValue=function(t){var i=this.getValue();this.set("value",t);var n=this.get("group");this.resetTrackClip(),this.get("slidable")&&this.resetHandlers(n),this.delegateEmit("valuechanged",{originValue:i,value:t})},r.prototype.initEvent=function(){var t=this.get("group");this.bindSliderEvent(t),this.bindRailEvent(t),this.bindTrackEvent(t)},r.prototype.drawLegendContent=function(t){this.drawRail(t),this.drawLabels(t),this.fixedElements(t),this.resetTrack(t),this.resetTrackClip(t),this.get("slidable")&&this.resetHandlers(t)},r.prototype.bindSliderEvent=function(t){this.bindHandlersEvent(t)},r.prototype.bindHandlersEvent=function(t){var i=this;t.on("legend-handler-min:drag",function(n){var a=i.getValueByCanvasPoint(n.x,n.y),o=i.getCurrentValue(),s=o[1];sa&&(s=a),i.setValue([s,a])})},r.prototype.bindRailEvent=function(t){},r.prototype.bindTrackEvent=function(t){var i=this,n=null;t.on("legend-track:dragstart",function(a){n={x:a.x,y:a.y}}),t.on("legend-track:drag",function(a){if(!!n){var o=i.getValueByCanvasPoint(n.x,n.y),s=i.getValueByCanvasPoint(a.x,a.y),l=i.getCurrentValue(),u=l[1]-l[0],c=i.getRange(),f=s-o;f<0?l[0]+f>c.min?i.setValue([l[0]+f,l[1]+f]):i.setValue([c.min,c.min+u]):f>0&&(f>0&&l[1]+fo&&(f=o),f0&&this.changeRailLength(a,s,n[s]-d)}},r.prototype.changeRailLength=function(t,i,n){var a=t.getBBox(),o;i==="height"?o=this.getRailPath(a.x,a.y,a.width,n):o=this.getRailPath(a.x,a.y,n,a.height),t.attr("path",o)},r.prototype.changeRailPosition=function(t,i,n){var a=t.getBBox(),o=this.getRailPath(i,n,a.width,a.height);t.attr("path",o)},r.prototype.fixedHorizontal=function(t,i,n,a){var o=this.get("label"),s=o.align,l=o.spacing,u=n.getBBox(),c=t.getBBox(),f=i.getBBox(),v=u.height;this.fitRailLength(c,f,u,n),u=n.getBBox(),s==="rail"?(t.attr({x:a.x,y:a.y+v/2}),this.changeRailPosition(n,a.x+c.width+l,a.y),i.attr({x:a.x+c.width+u.width+l*2,y:a.y+v/2})):s==="top"?(t.attr({x:a.x,y:a.y}),i.attr({x:a.x+u.width,y:a.y}),this.changeRailPosition(n,a.x,a.y+c.height+l)):(this.changeRailPosition(n,a.x,a.y),t.attr({x:a.x,y:a.y+u.height+l}),i.attr({x:a.x+u.width,y:a.y+u.height+l}))},r.prototype.fixedVertail=function(t,i,n,a){var o=this.get("label"),s=o.align,l=o.spacing,u=n.getBBox(),c=t.getBBox(),f=i.getBBox();if(this.fitRailLength(c,f,u,n),u=n.getBBox(),s==="rail")t.attr({x:a.x,y:a.y}),this.changeRailPosition(n,a.x,a.y+c.height+l),i.attr({x:a.x,y:a.y+c.height+u.height+l*2});else if(s==="right")t.attr({x:a.x+u.width+l,y:a.y}),this.changeRailPosition(n,a.x,a.y),i.attr({x:a.x+u.width+l,y:a.y+u.height});else{var v=Math.max(c.width,f.width);t.attr({x:a.x,y:a.y}),this.changeRailPosition(n,a.x+v+l,a.y),i.attr({x:a.x,y:a.y+u.height})}},r}(Nl),Sp=bp,sr="g2-tooltip",lr="g2-tooltip-title",Ui="g2-tooltip-list",Rn="g2-tooltip-list-item",Nn="g2-tooltip-marker",zn="g2-tooltip-value",Gl="g2-tooltip-name",go="g2-tooltip-crosshair-x",po="g2-tooltip-crosshair-y",$e,Cp=($e={},$e[""+sr]={position:"absolute",visibility:"visible",zIndex:8,transition:"visibility 0.2s cubic-bezier(0.23, 1, 0.32, 1), left 0.4s cubic-bezier(0.23, 1, 0.32, 1), top 0.4s cubic-bezier(0.23, 1, 0.32, 1)",backgroundColor:"rgba(255, 255, 255, 0.9)",boxShadow:"0px 0px 10px #aeaeae",borderRadius:"3px",color:"rgb(87, 87, 87)",fontSize:"12px",fontFamily:Vt.fontFamily,lineHeight:"20px",padding:"10px 10px 6px 10px"},$e[""+lr]={marginBottom:"4px"},$e[""+Ui]={margin:"0px",listStyleType:"none",padding:"0px"},$e[""+Rn]={listStyleType:"none",marginBottom:"4px"},$e[""+Nn]={width:"8px",height:"8px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},$e[""+zn]={display:"inline-block",float:"right",marginLeft:"30px"},$e[""+go]={position:"absolute",width:"1px",backgroundColor:"rgba(0, 0, 0, 0.25)"},$e[""+po]={position:"absolute",height:"1px",backgroundColor:"rgba(0, 0, 0, 0.25)"},$e);function Ap(e,r,t,i,n){var a={left:en.x+n.width,top:rn.y+n.height};return a}function Mp(e,r,t,i,n,a){var o=e,s=r;switch(a){case"left":o=e-i-t,s=r-n/2;break;case"right":o=e+t,s=r-n/2;break;case"top":o=e-i/2,s=r-n-t;break;case"bottom":o=e-i/2,s=r+t;break;default:o=e+t,s=r-n-t;break}return{x:o,y:s}}function Fp(e,r,t,i,n,a,o){var s=Mp(e,r,t,i,n,a);if(o){var l=Ap(s.x,s.y,i,n,o);a==="auto"?(l.right&&(s.x=Math.max(0,e-i-t)),l.top&&(s.y=Math.max(0,r-n-t))):a==="top"||a==="bottom"?(l.left&&(s.x=o.x),l.right&&(s.x=o.x+o.width-i),a==="top"&&l.top&&(s.y=r+t),a==="bottom"&&l.bottom&&(s.y=r-n-t)):(l.top&&(s.y=o.y),l.bottom&&(s.y=o.y+o.height-n),a==="left"&&l.left&&(s.x=e+t),a==="right"&&l.right&&(s.x=e-i-t))}return s}function Ep(e,r){var t=!1;return(0,h.each)(r,function(i){if((0,h.hasKey)(e,i))return t=!0,!1}),t}var Tp=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{name:"tooltip",type:"html",x:0,y:0,items:[],customContent:null,containerTpl:'
    ',itemTpl:'
  • - - {name}: - {value} -
  • `,xCrosshairTpl:'
    ',yCrosshairTpl:'
    ',title:null,showTitle:!0,region:null,crosshairsRegion:null,containerClassName:sr,crosshairs:null,offset:10,position:"right",domStyles:null,defaultStyles:Cp})},r.prototype.render=function(){this.get("customContent")?this.renderCustomContent():(this.resetTitle(),this.renderItems()),this.resetPosition()},r.prototype.clear=function(){this.clearCrosshairs(),this.setTitle(""),this.clearItemDoms()},r.prototype.show=function(){var t=this.getContainer();!t||this.destroyed||(this.set("visible",!0),(0,k.Z)(t,{visibility:"visible"}),this.setCrossHairsVisible(!0))},r.prototype.hide=function(){var t=this.getContainer();!t||this.destroyed||(this.set("visible",!1),(0,k.Z)(t,{visibility:"hidden"}),this.setCrossHairsVisible(!1))},r.prototype.getLocation=function(){return{x:this.get("x"),y:this.get("y")}},r.prototype.setLocation=function(t){this.set("x",t.x),this.set("y",t.y),this.resetPosition()},r.prototype.setCrossHairsVisible=function(t){var i=t?"":"none",n=this.get("xCrosshairDom"),a=this.get("yCrosshairDom");n&&(0,k.Z)(n,{display:i}),a&&(0,k.Z)(a,{display:i})},r.prototype.initContainer=function(){if(e.prototype.initContainer.call(this),this.get("customContent")){this.get("container")&&this.get("container").remove();var t=this.getHtmlContentNode();this.get("parent").appendChild(t),this.set("container",t),this.resetStyles(),this.applyStyles()}},r.prototype.updateInner=function(t){this.get("customContent")?this.renderCustomContent():(Ep(t,["title","showTitle"])&&this.resetTitle(),(0,h.hasKey)(t,"items")&&this.renderItems()),e.prototype.updateInner.call(this,t)},r.prototype.initDom=function(){this.cacheDoms()},r.prototype.removeDom=function(){e.prototype.removeDom.call(this),this.clearCrosshairs()},r.prototype.resetPosition=function(){var t=this.get("x"),i=this.get("y"),n=this.get("offset"),a=this.getOffset(),o=a.offsetX,s=a.offsetY,l=this.get("position"),u=this.get("region"),c=this.getContainer(),f=this.getBBox(),v=f.width,d=f.height,p;u&&(p=zi(u));var y=Fp(t,i,n,v,d,l,p);(0,k.Z)(c,{left:Le(y.x+o),top:Le(y.y+s)}),this.resetCrosshairs()},r.prototype.renderCustomContent=function(){var t=this.getHtmlContentNode(),i=this.get("parent"),n=this.get("container");n&&n.parentNode===i?i.replaceChild(t,n):i.appendChild(t),this.set("container",t),this.resetStyles(),this.applyStyles()},r.prototype.getHtmlContentNode=function(){var t,i=this.get("customContent");if(i){var n=i(this.get("title"),this.get("items"));(0,h.isElement)(n)?t=n:t=(0,T.Z)(n)}return t},r.prototype.cacheDoms=function(){var t=this.getContainer(),i=t.getElementsByClassName(lr)[0],n=t.getElementsByClassName(Ui)[0];this.set("titleDom",i),this.set("listDom",n)},r.prototype.resetTitle=function(){var t=this.get("title"),i=this.get("showTitle");i&&t?this.setTitle(t):this.setTitle("")},r.prototype.setTitle=function(t){var i=this.get("titleDom");i&&(i.innerText=t)},r.prototype.resetCrosshairs=function(){var t=this.get("crosshairsRegion"),i=this.get("crosshairs");if(!t||!i)this.clearCrosshairs();else{var n=zi(t),a=this.get("xCrosshairDom"),o=this.get("yCrosshairDom");i==="x"?(this.resetCrosshair("x",n),o&&(o.remove(),this.set("yCrosshairDom",null))):i==="y"?(this.resetCrosshair("y",n),a&&(a.remove(),this.set("xCrosshairDom",null))):(this.resetCrosshair("x",n),this.resetCrosshair("y",n)),this.setCrossHairsVisible(this.get("visible"))}},r.prototype.resetCrosshair=function(t,i){var n=this.checkCrosshair(t),a=this.get(t);t==="x"?(0,k.Z)(n,{left:Le(a),top:Le(i.y),height:Le(i.height)}):(0,k.Z)(n,{top:Le(a),left:Le(i.x),width:Le(i.width)})},r.prototype.checkCrosshair=function(t){var i=t+"CrosshairDom",n=t+"CrosshairTpl",a="CROSSHAIR_"+t.toUpperCase(),o=et[a],s=this.get(i),l=this.get("parent");return s||(s=(0,T.Z)(this.get(n)),this.applyStyle(o,s),l.appendChild(s),this.set(i,s)),s},r.prototype.renderItems=function(){this.clearItemDoms();var t=this.get("items"),i=this.get("itemTpl"),n=this.get("listDom");n&&((0,h.each)(t,function(a){var o=xr.toCSSGradient(a.color),s=(0,g.__assign)((0,g.__assign)({},a),{color:o}),l=(0,h.substitute)(i,s),u=(0,T.Z)(l);n.appendChild(u)}),this.applyChildrenStyles(n,this.get("domStyles")))},r.prototype.clearItemDoms=function(){this.get("listDom")&&ro(this.get("listDom"))},r.prototype.clearCrosshairs=function(){var t=this.get("xCrosshairDom"),i=this.get("yCrosshairDom");t&&t.remove(),i&&i.remove(),this.set("xCrosshairDom",null),this.set("yCrosshairDom",null)},r}(ao),Lp=Tp,Op={opacity:0},Ip={stroke:"#C5C5C5",strokeOpacity:.85},Pp={fill:"#CACED4",opacity:.85},yo=M(80389);function kp(e){return(0,h.map)(e,function(r,t){var i=t===0?"M":"L",n=r[0],a=r[1];return[i,n,a]})}function Wl(e){return kp(e)}function Dp(e){if(e.length<=2)return Wl(e);var r=[];(0,h.each)(e,function(o){(0,h.isEqual)(o,r.slice(r.length-2))||r.push(o[0],o[1])});var t=(0,yo.e9)(r,!1),i=(0,h.head)(e),n=i[0],a=i[1];return t.unshift(["M",n,a]),t}function Bp(e,r,t,i){i===void 0&&(i=!0);var n=new Bi.bJ({values:e}),a=new Bi.WD({values:(0,h.map)(e,function(s,l){return l})}),o=(0,h.map)(e,function(s,l){return[a.scale(l)*r,t-n.scale(s)*t]});return i?Dp(o):Wl(o)}function Rp(e,r){var t=new Bi.bJ({values:e}),i=t.max<0?t.max:Math.max(0,t.min);return r-t.scale(i)*r}function Np(e,r,t,i){var n=(0,g.__spreadArrays)(e),a=Rp(i,t);return n.push(["L",r,a]),n.push(["L",0,a]),n.push(["Z"]),n}var zp=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{name:"trend",x:0,y:0,width:200,height:16,smooth:!0,isArea:!1,data:[],backgroundStyle:Op,lineStyle:Ip,areaStyle:Pp})},r.prototype.renderInner=function(t){var i=this.cfg,n=i.width,a=i.height,o=i.data,s=i.smooth,l=i.isArea,u=i.backgroundStyle,c=i.lineStyle,f=i.areaStyle;this.addShape(t,{id:this.getElementId("background"),type:"rect",attrs:(0,g.__assign)({x:0,y:0,width:n,height:a},u)});var v=Bp(o,n,a,s);if(this.addShape(t,{id:this.getElementId("line"),type:"path",attrs:(0,g.__assign)({path:v},c)}),l){var d=Np(v,n,a,o);this.addShape(t,{id:this.getElementId("area"),type:"path",attrs:(0,g.__assign)({path:d},f)})}},r.prototype.applyOffset=function(){var t=this.cfg,i=t.x,n=t.y;this.moveElementTo(this.get("group"),{x:i,y:n})},r}(Ae),tO=null,Hl={fill:"#F7F7F7",stroke:"#BFBFBF",radius:2,opacity:1,cursor:"ew-resize",highLightFill:"#FFF"},Yl=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{name:"handler",x:0,y:0,width:10,height:24,style:Hl})},r.prototype.renderInner=function(t){var i=this.cfg,n=i.width,a=i.height,o=i.style,s=o.fill,l=o.stroke,u=o.radius,c=o.opacity,f=o.cursor;this.addShape(t,{type:"rect",id:this.getElementId("background"),attrs:{x:0,y:0,width:n,height:a,fill:s,stroke:l,radius:u,opacity:c,cursor:f}});var v=1/3*n,d=2/3*n,p=1/4*a,y=3/4*a;this.addShape(t,{id:this.getElementId("line-left"),type:"line",attrs:{x1:v,y1:p,x2:v,y2:y,stroke:l,cursor:f}}),this.addShape(t,{id:this.getElementId("line-right"),type:"line",attrs:{x1:d,y1:p,x2:d,y2:y,stroke:l,cursor:f}})},r.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},r.prototype.initEvent=function(){this.bindEvents()},r.prototype.bindEvents=function(){var t=this;this.get("group").on("mouseenter",function(){var i=t.get("style").highLightFill;t.getElementByLocalId("background").attr("fill",i),t.draw()}),this.get("group").on("mouseleave",function(){var i=t.get("style").fill;t.getElementByLocalId("background").attr("fill",i),t.draw()})},r.prototype.draw=function(){var t=this.get("container").get("canvas");t&&t.draw()},r}(Ae),eO=null,Vp={fill:"#416180",opacity:.05},Gp={fill:"#5B8FF9",opacity:.15,cursor:"move"},Vn=10,Wp={width:Vn,height:24},Hp={textBaseline:"middle",fill:"#000",opacity:.45},Yp="sliderchange",Xp=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.onMouseDown=function(i){return function(n){t.currentTarget=i;var a=n.originalEvent;a.stopPropagation(),a.preventDefault(),t.prevX=(0,h.get)(a,"touches.0.pageX",a.pageX),t.prevY=(0,h.get)(a,"touches.0.pageY",a.pageY);var o=t.getContainerDOM();o.addEventListener("mousemove",t.onMouseMove),o.addEventListener("mouseup",t.onMouseUp),o.addEventListener("mouseleave",t.onMouseUp),o.addEventListener("touchmove",t.onMouseMove),o.addEventListener("touchend",t.onMouseUp),o.addEventListener("touchcancel",t.onMouseUp)}},t.onMouseMove=function(i){var n=t.cfg.width,a=[t.get("start"),t.get("end")];i.stopPropagation(),i.preventDefault();var o=(0,h.get)(i,"touches.0.pageX",i.pageX),s=(0,h.get)(i,"touches.0.pageY",i.pageY),l=o-t.prevX,u=t.adjustOffsetRange(l/n);t.updateStartEnd(u),t.updateUI(t.getElementByLocalId("foreground"),t.getElementByLocalId("minText"),t.getElementByLocalId("maxText")),t.prevX=o,t.prevY=s,t.draw(),t.emit(Yp,[t.get("start"),t.get("end")].sort()),t.delegateEmit("valuechanged",{originValue:a,value:[t.get("start"),t.get("end")]})},t.onMouseUp=function(){t.currentTarget&&(t.currentTarget=void 0);var i=t.getContainerDOM();i&&(i.removeEventListener("mousemove",t.onMouseMove),i.removeEventListener("mouseup",t.onMouseUp),i.removeEventListener("mouseleave",t.onMouseUp),i.removeEventListener("touchmove",t.onMouseMove),i.removeEventListener("touchend",t.onMouseUp),i.removeEventListener("touchcancel",t.onMouseUp))},t}return r.prototype.setRange=function(t,i){this.set("minLimit",t),this.set("maxLimit",i);var n=this.get("start"),a=this.get("end"),o=(0,h.clamp)(n,t,i),s=(0,h.clamp)(a,t,i);!this.get("isInit")&&(n!==o||a!==s)&&this.setValue([o,s])},r.prototype.getRange=function(){return{min:this.get("minLimit")||0,max:this.get("maxLimit")||1}},r.prototype.setValue=function(t){var i=this.getRange();if((0,h.isArray)(t)&&t.length===2){var n=[this.get("start"),this.get("end")];this.update({start:(0,h.clamp)(t[0],i.min,i.max),end:(0,h.clamp)(t[1],i.min,i.max)}),this.get("updateAutoRender")||this.render(),this.delegateEmit("valuechanged",{originValue:n,value:t})}},r.prototype.getValue=function(){return[this.get("start"),this.get("end")]},r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{name:"slider",x:0,y:0,width:100,height:16,backgroundStyle:{},foregroundStyle:{},handlerStyle:{},textStyle:{},defaultCfg:{backgroundStyle:Vp,foregroundStyle:Gp,handlerStyle:Wp,textStyle:Hp}})},r.prototype.update=function(t){var i=t.start,n=t.end,a=(0,g.__assign)({},t);(0,h.isNil)(i)||(a.start=(0,h.clamp)(i,0,1)),(0,h.isNil)(n)||(a.end=(0,h.clamp)(n,0,1)),e.prototype.update.call(this,a),this.minHandler=this.getChildComponentById(this.getElementId("minHandler")),this.maxHandler=this.getChildComponentById(this.getElementId("maxHandler")),this.trend=this.getChildComponentById(this.getElementId("trend"))},r.prototype.init=function(){this.set("start",(0,h.clamp)(this.get("start"),0,1)),this.set("end",(0,h.clamp)(this.get("end"),0,1)),e.prototype.init.call(this)},r.prototype.render=function(){e.prototype.render.call(this),this.updateUI(this.getElementByLocalId("foreground"),this.getElementByLocalId("minText"),this.getElementByLocalId("maxText"))},r.prototype.renderInner=function(t){var i=this.cfg,n=i.start,a=i.end,o=i.width,s=i.height,l=i.trendCfg,u=l===void 0?{}:l,c=i.minText,f=i.maxText,v=i.backgroundStyle,d=v===void 0?{}:v,p=i.foregroundStyle,y=p===void 0?{}:p,m=i.textStyle,x=m===void 0?{}:m,_=(0,h.deepMix)({},Hl,this.cfg.handlerStyle),w=n*o,b=a*o;(0,h.size)((0,h.get)(u,"data"))&&(this.trend=this.addComponent(t,(0,g.__assign)({component:zp,id:this.getElementId("trend"),x:0,y:0,width:o,height:s},u))),this.addShape(t,{id:this.getElementId("background"),type:"rect",attrs:(0,g.__assign)({x:0,y:0,width:o,height:s},d)});var S=this.addShape(t,{id:this.getElementId("minText"),type:"text",attrs:(0,g.__assign)({y:s/2,textAlign:"right",text:c,silent:!1},x)}),C=this.addShape(t,{id:this.getElementId("maxText"),type:"text",attrs:(0,g.__assign)({y:s/2,textAlign:"left",text:f,silent:!1},x)}),A=this.addShape(t,{id:this.getElementId("foreground"),name:"foreground",type:"rect",attrs:(0,g.__assign)({y:0,height:s},y)}),F=(0,h.get)(_,"width",Vn),P=(0,h.get)(_,"height",24);this.minHandler=this.addComponent(t,{component:Yl,id:this.getElementId("minHandler"),name:"handler-min",x:0,y:(s-P)/2,width:F,height:P,cursor:"ew-resize",style:_}),this.maxHandler=this.addComponent(t,{component:Yl,id:this.getElementId("maxHandler"),name:"handler-max",x:0,y:(s-P)/2,width:F,height:P,cursor:"ew-resize",style:_})},r.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},r.prototype.initEvent=function(){this.bindEvents()},r.prototype.updateUI=function(t,i,n){var a=this.cfg,o=a.start,s=a.end,l=a.width,u=a.minText,c=a.maxText,f=a.handlerStyle,v=a.height,d=o*l,p=s*l;this.trend&&(this.trend.update({width:l,height:v}),this.get("updateAutoRender")||this.trend.render()),t.attr("x",d),t.attr("width",p-d);var y=(0,h.get)(f,"width",Vn);i.attr("text",u),n.attr("text",c);var m=this._dodgeText([d,p],i,n),x=m[0],_=m[1];this.minHandler&&(this.minHandler.update({x:d-y/2}),this.get("updateAutoRender")||this.minHandler.render()),(0,h.each)(x,function(w,b){return i.attr(b,w)}),this.maxHandler&&(this.maxHandler.update({x:p-y/2}),this.get("updateAutoRender")||this.maxHandler.render()),(0,h.each)(_,function(w,b){return n.attr(b,w)})},r.prototype.bindEvents=function(){var t=this.get("group");t.on("handler-min:mousedown",this.onMouseDown("minHandler")),t.on("handler-min:touchstart",this.onMouseDown("minHandler")),t.on("handler-max:mousedown",this.onMouseDown("maxHandler")),t.on("handler-max:touchstart",this.onMouseDown("maxHandler"));var i=t.findById(this.getElementId("foreground"));i.on("mousedown",this.onMouseDown("foreground")),i.on("touchstart",this.onMouseDown("foreground"))},r.prototype.adjustOffsetRange=function(t){var i=this.cfg,n=i.start,a=i.end;switch(this.currentTarget){case"minHandler":{var o=0-n,s=1-n;return Math.min(s,Math.max(o,t))}case"maxHandler":{var o=0-a,s=1-a;return Math.min(s,Math.max(o,t))}case"foreground":{var o=0-n,s=1-a;return Math.min(s,Math.max(o,t))}}},r.prototype.updateStartEnd=function(t){var i=this.cfg,n=i.start,a=i.end;switch(this.currentTarget){case"minHandler":n+=t;break;case"maxHandler":a+=t;break;case"foreground":n+=t,a+=t;break}this.set("start",n),this.set("end",a)},r.prototype._dodgeText=function(t,i,n){var a,o,s=this.cfg,l=s.handlerStyle,u=s.width,c=2,f=(0,h.get)(l,"width",Vn),v=t[0],d=t[1],p=!1;v>d&&(a=[d,v],v=a[0],d=a[1],o=[n,i],i=o[0],n=o[1],p=!0);var y=i.getBBox(),m=n.getBBox(),x=y.width>v-c?{x:v+f/2+c,textAlign:"left"}:{x:v-f/2-c,textAlign:"right"},_=m.width>u-d-c?{x:d-f/2-c,textAlign:"right"}:{x:d+f/2+c,textAlign:"left"};return p?[_,x]:[x,_]},r.prototype.draw=function(){var t=this.get("container"),i=t&&t.get("canvas");i&&i.draw()},r.prototype.getContainerDOM=function(){var t=this.get("container"),i=t&&t.get("canvas");return i&&i.get("container")},r}(Ae),rO=null,si=M(57817),Up={trackColor:"rgba(0,0,0,0)",thumbColor:"rgba(0,0,0,0.15)",size:8,lineCap:"round"},mo={default:Up,hover:{thumbColor:"rgba(0,0,0,0.2)"}},jp=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.clearEvents=h.noop,t.onStartEvent=function(i){return function(n){t.isMobile=i,n.originalEvent.preventDefault();var a=i?(0,h.get)(n.originalEvent,"touches.0.clientX"):n.clientX,o=i?(0,h.get)(n.originalEvent,"touches.0.clientY"):n.clientY;t.startPos=t.cfg.isHorizontal?a:o,t.bindLaterEvent()}},t.bindLaterEvent=function(){var i=t.getContainerDOM(),n=[];t.isMobile?n=[(0,si.Z)(i,"touchmove",t.onMouseMove),(0,si.Z)(i,"touchend",t.onMouseUp),(0,si.Z)(i,"touchcancel",t.onMouseUp)]:n=[(0,si.Z)(i,"mousemove",t.onMouseMove),(0,si.Z)(i,"mouseup",t.onMouseUp),(0,si.Z)(i,"mouseleave",t.onMouseUp)],t.clearEvents=function(){n.forEach(function(a){a.remove()})}},t.onMouseMove=function(i){var n=t.cfg,a=n.isHorizontal,o=n.thumbOffset;i.preventDefault();var s=t.isMobile?(0,h.get)(i,"touches.0.clientX"):i.clientX,l=t.isMobile?(0,h.get)(i,"touches.0.clientY"):i.clientY,u=a?s:l,c=u-t.startPos;t.startPos=u,t.updateThumbOffset(o+c)},t.onMouseUp=function(i){i.preventDefault(),t.clearEvents()},t.onTrackClick=function(i){var n=t.cfg,a=n.isHorizontal,o=n.x,s=n.y,l=n.thumbLen,u=t.getContainerDOM(),c=u.getBoundingClientRect(),f=i.clientX,v=i.clientY,d=a?f-c.left-o-l/2:v-c.top-s-l/2,p=t.validateRange(d);t.updateThumbOffset(p)},t.onThumbMouseOver=function(){var i=t.cfg.theme.hover.thumbColor;t.getElementByLocalId("thumb").attr("stroke",i),t.draw()},t.onThumbMouseOut=function(){var i=t.cfg.theme.default.thumbColor;t.getElementByLocalId("thumb").attr("stroke",i),t.draw()},t}return r.prototype.setRange=function(t,i){this.set("minLimit",t),this.set("maxLimit",i);var n=this.getValue(),a=(0,h.clamp)(n,t,i);n!==a&&!this.get("isInit")&&this.setValue(a)},r.prototype.getRange=function(){var t=this.get("minLimit")||0,i=this.get("maxLimit")||1;return{min:t,max:i}},r.prototype.setValue=function(t){var i=this.getRange(),n=this.getValue();this.update({thumbOffset:(this.get("trackLen")-this.get("thumbLen"))*(0,h.clamp)(t,i.min,i.max)}),this.delegateEmit("valuechange",{originalValue:n,value:this.getValue()})},r.prototype.getValue=function(){return(0,h.clamp)(this.get("thumbOffset")/(this.get("trackLen")-this.get("thumbLen")),0,1)},r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{name:"scrollbar",isHorizontal:!0,minThumbLen:20,thumbOffset:0,theme:mo})},r.prototype.renderInner=function(t){this.renderTrackShape(t),this.renderThumbShape(t)},r.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},r.prototype.initEvent=function(){this.bindEvents()},r.prototype.renderTrackShape=function(t){var i=this.cfg,n=i.trackLen,a=i.theme,o=a===void 0?{default:{}}:a,s=(0,h.deepMix)({},mo,o).default,l=s.lineCap,u=s.trackColor,c=s.size,f=(0,h.get)(this.cfg,"size",c),v=this.get("isHorizontal")?{x1:0+f/2,y1:f/2,x2:n-f/2,y2:f/2,lineWidth:f,stroke:u,lineCap:l}:{x1:f/2,y1:0+f/2,x2:f/2,y2:n-f/2,lineWidth:f,stroke:u,lineCap:l};return this.addShape(t,{id:this.getElementId("track"),name:"track",type:"line",attrs:v})},r.prototype.renderThumbShape=function(t){var i=this.cfg,n=i.thumbOffset,a=i.thumbLen,o=i.theme,s=(0,h.deepMix)({},mo,o).default,l=s.size,u=s.lineCap,c=s.thumbColor,f=(0,h.get)(this.cfg,"size",l),v=this.get("isHorizontal")?{x1:n+f/2,y1:f/2,x2:n+a-f/2,y2:f/2,lineWidth:f,stroke:c,lineCap:u,cursor:"default"}:{x1:f/2,y1:n+f/2,x2:f/2,y2:n+a-f/2,lineWidth:f,stroke:c,lineCap:u,cursor:"default"};return this.addShape(t,{id:this.getElementId("thumb"),name:"thumb",type:"line",attrs:v})},r.prototype.bindEvents=function(){var t=this.get("group");t.on("mousedown",this.onStartEvent(!1)),t.on("mouseup",this.onMouseUp),t.on("touchstart",this.onStartEvent(!0)),t.on("touchend",this.onMouseUp);var i=t.findById(this.getElementId("track"));i.on("click",this.onTrackClick);var n=t.findById(this.getElementId("thumb"));n.on("mouseover",this.onThumbMouseOver),n.on("mouseout",this.onThumbMouseOut)},r.prototype.getContainerDOM=function(){var t=this.get("container"),i=t&&t.get("canvas");return i&&i.get("container")},r.prototype.validateRange=function(t){var i=this.cfg,n=i.thumbLen,a=i.trackLen,o=t;return t+n>a?o=a-n:t+na.x?a.x:r,t=ta.y?a.y:i,n=n=i&&e<=n}function ey(e,r,t){if((0,h.isString)(e))return e.padEnd(r,t);if((0,h.isArray)(e)){var i=e.length;if(i=this.minX&&r.maxX<=this.maxX&&r.minY>=this.minY&&r.maxY<=this.maxY},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.add=function(){for(var r=[],t=0;tr.minX&&this.minYr.minY},e.prototype.size=function(){return this.width*this.height},e.prototype.isPointIn=function(r){return r.x>=this.minX&&r.x<=this.maxX&&r.y>=this.minY&&r.y<=this.maxY},e}(),iO=function(e,r){var t=r.start,i=r.end;return new Ee(e.x+e.width*t.x,e.y+e.height*t.y,e.width*Math.abs(i.x-t.x),e.height*Math.abs(i.y-t.y))};function ry(e){return[[e.minX,e.minY],[e.maxX,e.minY],[e.maxX,e.maxY],[e.minX,e.maxY]]}function Zi(e){if(e.isPolar&&!e.isTransposed)return(e.endAngle-e.startAngle)*e.getRadius();var r=e.convert({x:0,y:0}),t=e.convert({x:1,y:0});return Math.sqrt(Math.pow(t.x-r.x,2)+Math.pow(t.y-r.y,2))}function iy(e){if(e.isPolar){var r=e.startAngle,t=e.endAngle;return t-r==Math.PI*2}return!1}function Wn(e,r){var t=e.getCenter();return Math.sqrt(Math.pow(r.x-t.x,2)+Math.pow(r.y-t.y,2))}function ny(e,r){var t=!1;if(e)if(e.type==="theta"){var i=e.start,n=e.end;t=li(r.x,i.x,n.x)&&li(r.y,i.y,n.y)}else{var a=e.invert(r);t=li(a.x,0,1)&&li(a.y,0,1)}return t}function ui(e,r){var t=e.getCenter();return Math.atan2(r.y-t.y,r.x-t.x)}function xo(e,r){r===void 0&&(r=0);var t=e.start,i=e.end,n=e.getWidth(),a=e.getHeight();if(e.isPolar){var o=e.startAngle,s=e.endAngle,l=e.getCenter(),u=e.getRadius();return{type:"path",startState:{path:_r(l.x,l.y,u+r,o,o)},endState:function(f){var v=(s-o)*f+o,d=_r(l.x,l.y,u+r,o,v);return{path:d}},attrs:{path:_r(l.x,l.y,u+r,o,s)}}}var c;return e.isTransposed?c={height:a+r*2}:c={width:n+r*2},{type:"rect",startState:{x:t.x-r,y:i.y-r,width:e.isTransposed?n+r*2:0,height:e.isTransposed?0:a+r*2},endState:c,attrs:{x:t.x-r,y:i.y-r,width:n+r*2,height:a+r*2}}}function ay(e,r){r===void 0&&(r=0);var t=e.start,i=e.end,n=e.getWidth(),a=e.getHeight(),o=Math.min(t.x,i.x),s=Math.min(t.y,i.y);return Ee.fromRange(o-r,s-r,o+n+r,s+a+r)}var oy=/^(?:(?!0000)[0-9]{4}([-/.]+)(?:(?:0?[1-9]|1[0-2])\1(?:0?[1-9]|1[0-9]|2[0-8])|(?:0?[13-9]|1[0-2])\1(?:29|30)|(?:0?[13578]|1[02])\1(?:31))|(?:[0-9]{2}(?:0[48]|[2468][048]|[13579][26])|(?:0[48]|[2468][048]|[13579][26])00)([-/.]+)0?2\2(?:29))(\s+([01]|([01][0-9]|2[0-3])):([0-9]|[0-5][0-9]):([0-9]|[0-5][0-9]))?$/;function sy(e){var r="linear";return oy.test(e)?r="timeCat":(0,h.isString)(e)&&(r="cat"),r}function ql(e,r,t,i){return r===void 0&&(r={}),r.type?r.type:e.type!=="identity"&&bt.includes(t)&&["interval"].includes(i)||e.isCategory?"cat":e.type}function ly(e,r,t){var i=r||[];if((0,h.isNumber)(e)||(0,h.isNil)((0,h.firstValue)(i,e))&&(0,h.isEmpty)(t)){var n=(0,Bi.yZ)("identity");return new n({field:e.toString(),values:[e]})}var a=(0,h.valuesOfKey)(i,e),o=(0,h.get)(t,"type",sy(a[0])),s=(0,Bi.yZ)(o);return new s((0,g.__assign)({field:e,values:a},t))}function uy(e,r){if(e.type!=="identity"&&r.type!=="identity"){var t={};for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i]);e.change(t)}}function Ki(e){return e.alias||e.field}function $l(e,r,t){var i=e.values,n=i.length,a;if(n===1)a=[.5,1];else{var o=1,s=0;iy(r)?r.isTransposed?(o=(0,h.get)(t,"widthRatio.multiplePie",1/1.3),s=1/n*o,a=[s/2,1-s/2]):a=[0,1-1/n]:(s=1/n/2,a=[s,1-s])}return a}function cy(e){var r=e.values.filter(function(t){return!(0,h.isNil)(t)&&!isNaN(t)});return Math.max.apply(Math,(0,g.__spreadArray)((0,g.__spreadArray)([],(0,g.__read)(r),!1),[(0,h.isNil)(e.max)?-Infinity:e.max],!1))}function hy(e){var r,t;switch(e){case E.TOP:r={x:0,y:1},t={x:1,y:1};break;case E.RIGHT:r={x:1,y:0},t={x:1,y:1};break;case E.BOTTOM:r={x:0,y:0},t={x:1,y:0};break;case E.LEFT:r={x:0,y:0},t={x:0,y:1};break;default:r=t={x:0,y:0}}return{start:r,end:t}}function fy(e){var r,t;return e.isTransposed?(r={x:0,y:0},t={x:1,y:0}):(r={x:0,y:0},t={x:0,y:1}),{start:r,end:t}}function Hn(e,r){var t={start:{x:0,y:0},end:{x:0,y:0}};e.isRect?t=hy(r):e.isPolar&&(t=fy(e));var i=t.start,n=t.end;return{start:e.convert(i),end:e.convert(n)}}function nO(e,r){if(e.isRect)return e.isTransposed?[DIRECTION.RIGHT,DIRECTION.BOTTOM].includes(r)?1:-1:[DIRECTION.BOTTOM,DIRECTION.RIGHT].includes(r)?-1:1;if(e.isPolar){var t=e.x.start;return t<0?-1:1}return 1}function Ql(e){var r=e.start,t=e.end;return r.x===t.x}function Jl(e,r){var t=e.start,i=e.end,n=Ql(e);return n?(t.y-i.y)*(r.x-t.x)>0?1:-1:(i.x-t.x)*(t.y-r.y)>0?-1:1}function Yn(e,r){var t=(0,h.get)(e,["components","axis"],{});return(0,h.deepMix)({},(0,h.get)(t,["common"],{}),(0,h.deepMix)({},(0,h.get)(t,[r],{})))}function tu(e,r,t){var i=(0,h.get)(e,["components","axis"],{});return(0,h.deepMix)({},(0,h.get)(i,["common","title"],{}),(0,h.deepMix)({},(0,h.get)(i,[r,"title"],{})),t)}function _o(e){var r=e.x,t=e.y,i=e.circleCenter,n=t.start>t.end,a=e.isTransposed?e.convert({x:n?0:1,y:0}):e.convert({x:0,y:n?0:1}),o=[a.x-i.x,a.y-i.y],s=[1,0],l=a.y>i.y?Lt.angle(o,s):Lt.angle(o,s)*-1,u=l+(r.end-r.start),c=Math.sqrt(Math.pow(a.x-i.x,2)+Math.pow(a.y-i.y,2));return{center:i,radius:c,startAngle:l,endAngle:u}}function Xn(e,r){return(0,h.isBoolean)(e)?e===!1?!1:{}:(0,h.get)(e,[r])}function eu(e,r){return(0,h.get)(e,"position",r)}function ru(e,r){return(0,h.get)(r,["title","text"],Ki(e))}var ci=function(){function e(r,t){this.destroyed=!1,this.facets=[],this.view=r,this.cfg=(0,h.deepMix)({},this.getDefaultCfg(),t)}return e.prototype.init=function(){this.container||(this.container=this.createContainer());var r=this.view.getData();this.facets=this.generateFacets(r)},e.prototype.render=function(){this.renderViews()},e.prototype.update=function(){},e.prototype.clear=function(){this.clearFacetViews()},e.prototype.destroy=function(){this.clear(),this.container&&(this.container.remove(!0),this.container=void 0),this.destroyed=!0,this.view=void 0,this.facets=[]},e.prototype.facetToView=function(r){var t=r.region,i=r.data,n=r.padding,a=n===void 0?this.cfg.padding:n,o=this.view.createView({region:t,padding:a});o.data(i||[]),r.view=o,this.beforeEachView(o,r);var s=this.cfg.eachView;return s&&s(o,r),this.afterEachView(o,r),o},e.prototype.createContainer=function(){var r=this.view.getLayer(J.FORE);return r.addGroup()},e.prototype.renderViews=function(){this.createFacetViews()},e.prototype.createFacetViews=function(){var r=this;return this.facets.map(function(t){return r.facetToView(t)})},e.prototype.clearFacetViews=function(){var r=this;(0,h.each)(this.facets,function(t){t.view&&(r.view.removeView(t.view),t.view=void 0)})},e.prototype.parseSpacing=function(){var r=this.view.viewBBox,t=r.width,i=r.height,n=this.cfg.spacing;return n.map(function(a,o){return(0,h.isNumber)(a)?a/(o===0?t:i):parseFloat(a)/100})},e.prototype.getFieldValues=function(r,t){var i=[],n={};return(0,h.each)(r,function(a){var o=a[t];!(0,h.isNil)(o)&&!n[o]&&(i.push(o),n[o]=!0)}),i},e.prototype.getRegion=function(r,t,i,n){var a=(0,g.__read)(this.parseSpacing(),2),o=a[0],s=a[1],l=(1+o)/(t===0?1:t)-o,u=(1+s)/(r===0?1:r)-s,c={x:(l+o)*i,y:(u+s)*n},f={x:c.x+l,y:c.y+u};return{start:c,end:f}},e.prototype.getDefaultCfg=function(){return{eachView:void 0,showTitle:!0,spacing:[0,0],padding:10,fields:[]}},e.prototype.getDefaultTitleCfg=function(){var r=this.view.getTheme().fontFamily;return{style:{fontSize:14,fill:"#666",fontFamily:r}}},e.prototype.processAxis=function(r,t){var i=r.getOptions(),n=i.coordinate,a=r.geometries,o=(0,h.get)(n,"type","rect");if(o==="rect"&&a.length){(0,h.isNil)(i.axes)&&(i.axes={});var s=i.axes,l=(0,g.__read)(a[0].getXYFields(),2),u=l[0],c=l[1],f=Xn(s,u),v=Xn(s,c);f!==!1&&(i.axes[u]=this.getXAxisOption(u,s,f,t)),v!==!1&&(i.axes[c]=this.getYAxisOption(c,s,v,t))}},e.prototype.getFacetDataFilter=function(r){return function(t){return(0,h.every)(r,function(i){var n=i.field,a=i.value;return!(0,h.isNil)(a)&&n?t[n]===a:!0})}},e}(),iu={},vy=function(e){return iu[(0,h.lowerCase)(e)]},hi=function(e,r){iu[(0,h.lowerCase)(e)]=r},dy=function(){function e(r,t){this.context=r,this.cfg=t,r.addAction(this)}return e.prototype.applyCfg=function(r){(0,h.assign)(this,r)},e.prototype.init=function(){this.applyCfg(this.cfg)},e.prototype.destroy=function(){this.context.removeAction(this),this.context=null},e}(),ne=dy,gy=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.execute=function(){this.callback&&this.callback(this.context)},r.prototype.destroy=function(){e.prototype.destroy.call(this),this.callback=null},r}(ne),py=gy,Un={};function yy(e,r){var t=Un[e],i=null;if(t){var n=t.ActionClass,a=t.cfg;i=new n(r,a),i.name=e,i.init()}return i}function jn(e){var r=Un[e];return(0,h.get)(r,"ActionClass")}function yt(e,r,t){Un[e]={ActionClass:r,cfg:t}}function aO(e){delete Un[e]}function my(e,r){var t=new py(r);return t.callback=e,t.name="callback",t}function xy(e,r){var t=[];if(e.length){t.push(["M",e[0].x,e[0].y]);for(var i=1,n=e.length;i=o[u]?1:0,v=c>Math.PI?1:0,d=t.convert(s),p=Wn(t,d);if(p>=.5)if(c===Math.PI*2){var y={x:(s.x+o.x)/2,y:(s.y+o.y)/2},m=t.convert(y);l.push(["A",p,p,0,v,f,m.x,m.y]),l.push(["A",p,p,0,v,f,d.x,d.y])}else l.push(["A",p,p,0,v,f,d.x,d.y]);return l}function wy(e){(0,h.each)(e,function(r,t){var i=r;if(i[0].toLowerCase()==="a"){var n=e[t-1],a=e[t+1];a&&a[0].toLowerCase()==="a"?n&&n[0].toLowerCase()==="l"&&(n[0]="M"):n&&n[0].toLowerCase()==="a"&&a&&a[0].toLowerCase()==="l"&&(a[0]="M")}})}var by=function(e,r,t,i){var n,a=[],o=!!i,s,l,u,c,f,v,d;if(o){n=(0,g.__read)(i,2),u=n[0],c=n[1];for(var p=0,y=e.length;p0&&n>0&&(i>=r||n>=r)}function lu(e,r){var t=e.getCanvasBBox();return su(e,r)?t:null}function uu(e,r){var t=e.event.maskShapes;return t.map(function(i){return lu(i,r)}).filter(function(i){return!!i})}function Ay(e,r){var t=e.event,i=t.target;return cu(i,r)}function cu(e,r){return su(e,r)?e.attr("path"):null}function My(e,r){var t=e.event.maskShapes;return t.map(function(i){return cu(i,r)})}function br(e){var r=e.event,t,i=r.target;return i&&(t=i.get("element")),t}function zr(e){var r=e.event,t=r.target,i;return t&&(i=t.get("delegateObject")),i}function hu(e){var r=e.event.gEvent;return!(r&&r.fromShape&&r.toShape&&r.fromShape.get("element")===r.toShape.get("element"))}function $i(e){return e&&e.component&&e.component.isList()}function fu(e){return e&&e.component&&e.component.isSlider()}function Qi(e){var r=e.event,t=r.target;return t&&(t==null?void 0:t.get("name"))==="mask"||Kn(e)}function Kn(e){var r;return((r=e.event.target)===null||r===void 0?void 0:r.get("name"))==="multi-mask"}function bo(e,r){var t=e.event.target;if(Kn(e))return Fy(e,r);if(t.get("type")==="path"){var i=Ay(e,r);return i?yu(e.view,i):void 0}var n=ou(e,r);return n?qn(e.view,n):null}function Fy(e,r){var t=e.event.target;if(t.get("type")==="path"){var i=My(e,r);return i.length>0?i.flatMap(function(a){return yu(e.view,a)}):null}var n=uu(e,r);return n.length>0?n.flatMap(function(a){return qn(e.view,a)}):null}function vu(e,r,t){if(Kn(e))return Ey(e,r,t);var i=ou(e,t);return i?du(i,e,r):null}function du(e,r,t){var i=r.view,n=Co(i,t,{x:e.x,y:e.y}),a=Co(i,t,{x:e.maxX,y:e.maxY}),o={minX:n.x,minY:n.y,maxX:a.x,maxY:a.y};return qn(t,o)}function Ey(e,r,t){var i=uu(e,t);return i.length>0?i.flatMap(function(n){return du(n,e,r)}):null}function Ce(e){var r=e.geometries,t=[];return(0,h.each)(r,function(i){var n=i.elements;t=t.concat(n)}),e.views&&e.views.length&&(0,h.each)(e.views,function(i){t=t.concat(Ce(i))}),t}function Ty(e,r,t){var i=Ce(e);return i.filter(function(n){return je(n,r)===t})}function gu(e,r){var t=e.geometries,i=[];return(0,h.each)(t,function(n){var a=n.getElementsBy(function(o){return o.hasState(r)});i=i.concat(a)}),i}function je(e,r){var t=e.getModel(),i=t.data,n;return(0,h.isArray)(i)?n=i[0][r]:n=i[r],n}function Ly(e,r){return!(r.minX>e.maxX||r.maxXe.maxY||r.maxY=r.x&&e.y<=r.y&&e.maxY>r.y}function Qe(e){var r=e.parent,t=null;return r&&(t=r.views.filter(function(i){return i!==e})),t}function Iy(e,r){var t=e.getCoordinate();return t.invert(r)}function Co(e,r,t){var i=Iy(e,t);return r.getCoordinate().convert(i)}function _u(e,r,t,i){var n=!1;return(0,h.each)(e,function(a){if(a[t]===r[t]&&a[i]===r[i])return n=!0,!1}),n}function fi(e,r){var t=e.getScaleByField(r);return!t&&e.views&&(0,h.each)(e.views,function(i){if(t=fi(i,r),t)return!1}),t}var Py=function(){function e(r){this.actions=[],this.event=null,this.cacheMap={},this.view=r}return e.prototype.cache=function(){for(var r=[],t=0;t=0&&t.splice(i,1)},e.prototype.getCurrentPoint=function(){var r=this.event;if(r)if(r.target instanceof HTMLElement){var t=this.view.getCanvas(),i=t.getPointByClient(r.clientX,r.clientY);return i}else return{x:r.x,y:r.y};return null},e.prototype.getCurrentShape=function(){return(0,h.get)(this.event,["gEvent","shape"])},e.prototype.isInPlot=function(){var r=this.getCurrentPoint();return r?this.view.isPointInPlot(r):!1},e.prototype.isInShape=function(r){var t=this.getCurrentShape();return t?t.get("name")===r:!1},e.prototype.isInComponent=function(r){var t=mu(this.view),i=this.getCurrentPoint();return i?!!t.find(function(n){var a=n.getBBox();return r?n.get("name")===r&&xu(a,i):xu(a,i)}):!1},e.prototype.destroy=function(){(0,h.each)(this.actions.slice(),function(r){r.destroy()}),this.view=null,this.event=null,this.actions=null,this.cacheMap=null},e}(),ky=Py,Dy=function(){function e(r,t){this.view=r,this.cfg=t}return e.prototype.init=function(){this.initEvents()},e.prototype.initEvents=function(){},e.prototype.clearEvents=function(){},e.prototype.destroy=function(){this.clearEvents()},e}(),By=Dy;function wu(e,r,t){var i=e.split(":"),n=i[0],a=r.getAction(n)||yy(n,r);if(!a)throw new Error("There is no action named ".concat(n));var o=i[1];return{action:a,methodName:o,arg:t}}function bu(e){var r=e.action,t=e.methodName,i=e.arg;if(r[t])r[t](i);else throw new Error("Action(".concat(r.name,") doesn't have a method called ").concat(t))}var Ne={START:"start",SHOW_ENABLE:"showEnable",END:"end",ROLLBACK:"rollback",PROCESSING:"processing"},Ry=function(e){(0,g.__extends)(r,e);function r(t,i){var n=e.call(this,t,i)||this;return n.callbackCaches={},n.emitCaches={},n.steps=i,n}return r.prototype.init=function(){this.initContext(),e.prototype.init.call(this)},r.prototype.destroy=function(){e.prototype.destroy.call(this),this.steps=null,this.context&&(this.context.destroy(),this.context=null),this.callbackCaches=null,this.view=null},r.prototype.initEvents=function(){var t=this;(0,h.each)(this.steps,function(i,n){(0,h.each)(i,function(a){var o=t.getActionCallback(n,a);o&&t.bindEvent(a.trigger,o)})})},r.prototype.clearEvents=function(){var t=this;(0,h.each)(this.steps,function(i,n){(0,h.each)(i,function(a){var o=t.getActionCallback(n,a);o&&t.offEvent(a.trigger,o)})})},r.prototype.initContext=function(){var t=this.view,i=new ky(t);this.context=i;var n=this.steps;(0,h.each)(n,function(a){(0,h.each)(a,function(o){if((0,h.isFunction)(o.action))o.actionObject={action:my(o.action,i),methodName:"execute"};else if((0,h.isString)(o.action))o.actionObject=wu(o.action,i,o.arg);else if((0,h.isArray)(o.action)){var s=o.action,l=(0,h.isArray)(o.arg)?o.arg:[o.arg];o.actionObject=[],(0,h.each)(s,function(u,c){o.actionObject.push(wu(u,i,l[c]))})}})})},r.prototype.isAllowStep=function(t){var i=this.currentStepName,n=this.steps;if(i===t||t===Ne.SHOW_ENABLE)return!0;if(t===Ne.PROCESSING)return i===Ne.START;if(t===Ne.START)return i!==Ne.PROCESSING;if(t===Ne.END)return i===Ne.PROCESSING||i===Ne.START;if(t===Ne.ROLLBACK){if(n[Ne.END])return i===Ne.END;if(i===Ne.START)return!0}return!1},r.prototype.isAllowExecute=function(t,i){if(this.isAllowStep(t)){var n=this.getKey(t,i);return i.once&&this.emitCaches[n]?!1:i.isEnable?i.isEnable(this.context):!0}return!1},r.prototype.enterStep=function(t){this.currentStepName=t,this.emitCaches={}},r.prototype.afterExecute=function(t,i){t!==Ne.SHOW_ENABLE&&this.currentStepName!==t&&this.enterStep(t);var n=this.getKey(t,i);this.emitCaches[n]=!0},r.prototype.getKey=function(t,i){return t+i.trigger+i.action},r.prototype.getActionCallback=function(t,i){var n=this,a=this.context,o=this.callbackCaches,s=i.actionObject;if(i.action&&s){var l=this.getKey(t,i);if(!o[l]){var u=function(c){a.event=c,n.isAllowExecute(t,i)?((0,h.isArray)(s)?(0,h.each)(s,function(f){a.event=c,bu(f)}):(a.event=c,bu(s)),n.afterExecute(t,i),i.callback&&(a.event=c,i.callback(a))):a.event=null};i.debounce?o[l]=(0,h.debounce)(u,i.debounce.wait,i.debounce.immediate):i.throttle?o[l]=(0,h.throttle)(u,i.throttle.wait,{leading:i.throttle.leading,trailing:i.throttle.trailing}):o[l]=u}return o[l]}return null},r.prototype.bindEvent=function(t,i){var n=t.split(":");n[0]==="window"?window.addEventListener(n[1],i):n[0]==="document"?document.addEventListener(n[1],i):this.view.on(t,i)},r.prototype.offEvent=function(t,i){var n=t.split(":");n[0]==="window"?window.removeEventListener(n[1],i):n[0]==="document"?document.removeEventListener(n[1],i):this.view.off(t,i)},r}(By),Ny=Ry,Su={};function zy(e){return Su[(0,h.lowerCase)(e)]}function It(e,r){Su[(0,h.lowerCase)(e)]=r}function Vy(e,r,t){var i=zy(e);if(!i)return null;if((0,h.isPlainObject)(i)){var n=(0,h.mix)((0,h.clone)(i),t);return new Ny(r,n)}else{var a=i;return new a(r,t)}}function Gy(e){return{title:{autoRotate:!0,position:"center",spacing:e.axisTitleSpacing,style:{fill:e.axisTitleTextFillColor,fontSize:e.axisTitleTextFontSize,lineHeight:e.axisTitleTextLineHeight,textBaseline:"middle",fontFamily:e.fontFamily},iconStyle:{fill:e.axisDescriptionIconFillColor}},label:{autoRotate:!1,autoEllipsis:!1,autoHide:{type:"equidistance",cfg:{minGap:6}},offset:e.axisLabelOffset,style:{fill:e.axisLabelFillColor,fontSize:e.axisLabelFontSize,lineHeight:e.axisLabelLineHeight,fontFamily:e.fontFamily}},line:{style:{lineWidth:e.axisLineBorder,stroke:e.axisLineBorderColor}},grid:{line:{type:"line",style:{stroke:e.axisGridBorderColor,lineWidth:e.axisGridBorder,lineDash:e.axisGridLineDash}},alignTick:!0,animate:!0},tickLine:{style:{lineWidth:e.axisTickLineBorder,stroke:e.axisTickLineBorderColor},alignTick:!0,length:e.axisTickLineLength},subTickLine:null,animate:!0}}function Wy(e){return{title:null,marker:{symbol:"circle",spacing:e.legendMarkerSpacing,style:{r:e.legendCircleMarkerSize,fill:e.legendMarkerColor}},itemName:{spacing:5,style:{fill:e.legendItemNameFillColor,fontFamily:e.fontFamily,fontSize:e.legendItemNameFontSize,lineHeight:e.legendItemNameLineHeight,fontWeight:e.legendItemNameFontWeight,textAlign:"start",textBaseline:"middle"}},itemStates:{active:{nameStyle:{opacity:.8}},unchecked:{nameStyle:{fill:"#D8D8D8"},markerStyle:{fill:"#D8D8D8",stroke:"#D8D8D8"}},inactive:{nameStyle:{fill:"#D8D8D8"},markerStyle:{opacity:.2}}},flipPage:!0,pageNavigator:{marker:{style:{size:e.legendPageNavigatorMarkerSize,inactiveFill:e.legendPageNavigatorMarkerInactiveFillColor,inactiveOpacity:e.legendPageNavigatorMarkerInactiveFillOpacity,fill:e.legendPageNavigatorMarkerFillColor,opacity:e.legendPageNavigatorMarkerFillOpacity}},text:{style:{fill:e.legendPageNavigatorTextFillColor,fontSize:e.legendPageNavigatorTextFontSize}}},animate:!1,maxItemWidth:200,itemSpacing:e.legendItemSpacing,itemMarginBottom:e.legendItemMarginBottom,padding:e.legendPadding}}function Cu(e){var r,t={point:{default:{fill:e.pointFillColor,r:e.pointSize,stroke:e.pointBorderColor,lineWidth:e.pointBorder,fillOpacity:e.pointFillOpacity},active:{stroke:e.pointActiveBorderColor,lineWidth:e.pointActiveBorder},selected:{stroke:e.pointSelectedBorderColor,lineWidth:e.pointSelectedBorder},inactive:{fillOpacity:e.pointInactiveFillOpacity,strokeOpacity:e.pointInactiveBorderOpacity}},hollowPoint:{default:{fill:e.hollowPointFillColor,lineWidth:e.hollowPointBorder,stroke:e.hollowPointBorderColor,strokeOpacity:e.hollowPointBorderOpacity,r:e.hollowPointSize},active:{stroke:e.hollowPointActiveBorderColor,strokeOpacity:e.hollowPointActiveBorderOpacity},selected:{lineWidth:e.hollowPointSelectedBorder,stroke:e.hollowPointSelectedBorderColor,strokeOpacity:e.hollowPointSelectedBorderOpacity},inactive:{strokeOpacity:e.hollowPointInactiveBorderOpacity}},area:{default:{fill:e.areaFillColor,fillOpacity:e.areaFillOpacity,stroke:null},active:{fillOpacity:e.areaActiveFillOpacity},selected:{fillOpacity:e.areaSelectedFillOpacity},inactive:{fillOpacity:e.areaInactiveFillOpacity}},hollowArea:{default:{fill:null,stroke:e.hollowAreaBorderColor,lineWidth:e.hollowAreaBorder,strokeOpacity:e.hollowAreaBorderOpacity},active:{fill:null,lineWidth:e.hollowAreaActiveBorder},selected:{fill:null,lineWidth:e.hollowAreaSelectedBorder},inactive:{strokeOpacity:e.hollowAreaInactiveBorderOpacity}},interval:{default:{fill:e.intervalFillColor,fillOpacity:e.intervalFillOpacity},active:{stroke:e.intervalActiveBorderColor,lineWidth:e.intervalActiveBorder},selected:{stroke:e.intervalSelectedBorderColor,lineWidth:e.intervalSelectedBorder},inactive:{fillOpacity:e.intervalInactiveFillOpacity,strokeOpacity:e.intervalInactiveBorderOpacity}},hollowInterval:{default:{fill:e.hollowIntervalFillColor,stroke:e.hollowIntervalBorderColor,lineWidth:e.hollowIntervalBorder,strokeOpacity:e.hollowIntervalBorderOpacity},active:{stroke:e.hollowIntervalActiveBorderColor,lineWidth:e.hollowIntervalActiveBorder,strokeOpacity:e.hollowIntervalActiveBorderOpacity},selected:{stroke:e.hollowIntervalSelectedBorderColor,lineWidth:e.hollowIntervalSelectedBorder,strokeOpacity:e.hollowIntervalSelectedBorderOpacity},inactive:{stroke:e.hollowIntervalInactiveBorderColor,lineWidth:e.hollowIntervalInactiveBorder,strokeOpacity:e.hollowIntervalInactiveBorderOpacity}},line:{default:{stroke:e.lineBorderColor,lineWidth:e.lineBorder,strokeOpacity:e.lineBorderOpacity,fill:null,lineAppendWidth:10,lineCap:"round",lineJoin:"round"},active:{lineWidth:e.lineActiveBorder},selected:{lineWidth:e.lineSelectedBorder},inactive:{strokeOpacity:e.lineInactiveBorderOpacity}}},i=Gy(e),n=Wy(e);return{background:e.backgroundColor,defaultColor:e.brandColor,subColor:e.subColor,semanticRed:e.paletteSemanticRed,semanticGreen:e.paletteSemanticGreen,padding:"auto",fontFamily:e.fontFamily,columnWidthRatio:1/2,maxColumnWidth:null,minColumnWidth:null,roseWidthRatio:.9999999,multiplePieWidthRatio:1/1.3,colors10:e.paletteQualitative10,colors20:e.paletteQualitative20,sequenceColors:e.paletteSequence,shapes:{point:["hollow-circle","hollow-square","hollow-bowtie","hollow-diamond","hollow-hexagon","hollow-triangle","hollow-triangle-down","circle","square","bowtie","diamond","hexagon","triangle","triangle-down","cross","tick","plus","hyphen","line"],line:["line","dash","dot","smooth"],area:["area","smooth","line","smooth-line"],interval:["rect","hollow-rect","line","tick"]},sizes:[1,10],geometries:{interval:{rect:{default:{style:t.interval.default},active:{style:t.interval.active},inactive:{style:t.interval.inactive},selected:{style:function(a){var o=a.geometry.coordinate;if(o.isPolar&&o.isTransposed){var s=ji(a.getModel(),o),l=s.startAngle,u=s.endAngle,c=(l+u)/2,f=7.5,v=f*Math.cos(c),d=f*Math.sin(c);return{matrix:ie.vs(null,[["t",v,d]])}}return t.interval.selected}}},"hollow-rect":{default:{style:t.hollowInterval.default},active:{style:t.hollowInterval.active},inactive:{style:t.hollowInterval.inactive},selected:{style:t.hollowInterval.selected}},line:{default:{style:t.hollowInterval.default},active:{style:t.hollowInterval.active},inactive:{style:t.hollowInterval.inactive},selected:{style:t.hollowInterval.selected}},tick:{default:{style:t.hollowInterval.default},active:{style:t.hollowInterval.active},inactive:{style:t.hollowInterval.inactive},selected:{style:t.hollowInterval.selected}},funnel:{default:{style:t.interval.default},active:{style:t.interval.active},inactive:{style:t.interval.inactive},selected:{style:t.interval.selected}},pyramid:{default:{style:t.interval.default},active:{style:t.interval.active},inactive:{style:t.interval.inactive},selected:{style:t.interval.selected}}},line:{line:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},dot:{default:{style:(0,g.__assign)((0,g.__assign)({},t.line.default),{lineCap:null,lineDash:[1,1]})},active:{style:(0,g.__assign)((0,g.__assign)({},t.line.active),{lineCap:null,lineDash:[1,1]})},inactive:{style:(0,g.__assign)((0,g.__assign)({},t.line.inactive),{lineCap:null,lineDash:[1,1]})},selected:{style:(0,g.__assign)((0,g.__assign)({},t.line.selected),{lineCap:null,lineDash:[1,1]})}},dash:{default:{style:(0,g.__assign)((0,g.__assign)({},t.line.default),{lineCap:null,lineDash:[5.5,1]})},active:{style:(0,g.__assign)((0,g.__assign)({},t.line.active),{lineCap:null,lineDash:[5.5,1]})},inactive:{style:(0,g.__assign)((0,g.__assign)({},t.line.inactive),{lineCap:null,lineDash:[5.5,1]})},selected:{style:(0,g.__assign)((0,g.__assign)({},t.line.selected),{lineCap:null,lineDash:[5.5,1]})}},smooth:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},hv:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},vh:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},hvh:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},vhv:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}}},polygon:{polygon:{default:{style:t.interval.default},active:{style:t.interval.active},inactive:{style:t.interval.inactive},selected:{style:t.interval.selected}}},point:{circle:{default:{style:t.point.default},active:{style:t.point.active},inactive:{style:t.point.inactive},selected:{style:t.point.selected}},square:{default:{style:t.point.default},active:{style:t.point.active},inactive:{style:t.point.inactive},selected:{style:t.point.selected}},bowtie:{default:{style:t.point.default},active:{style:t.point.active},inactive:{style:t.point.inactive},selected:{style:t.point.selected}},diamond:{default:{style:t.point.default},active:{style:t.point.active},inactive:{style:t.point.inactive},selected:{style:t.point.selected}},hexagon:{default:{style:t.point.default},active:{style:t.point.active},inactive:{style:t.point.inactive},selected:{style:t.point.selected}},triangle:{default:{style:t.point.default},active:{style:t.point.active},inactive:{style:t.point.inactive},selected:{style:t.point.selected}},"triangle-down":{default:{style:t.point.default},active:{style:t.point.active},inactive:{style:t.point.inactive},selected:{style:t.point.selected}},"hollow-circle":{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},"hollow-square":{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},"hollow-bowtie":{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},"hollow-diamond":{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},"hollow-hexagon":{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},"hollow-triangle":{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},"hollow-triangle-down":{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},cross:{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},tick:{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},plus:{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},hyphen:{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},line:{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}}},area:{area:{default:{style:t.area.default},active:{style:t.area.active},inactive:{style:t.area.inactive},selected:{style:t.area.selected}},smooth:{default:{style:t.area.default},active:{style:t.area.active},inactive:{style:t.area.inactive},selected:{style:t.area.selected}},line:{default:{style:t.hollowArea.default},active:{style:t.hollowArea.active},inactive:{style:t.hollowArea.inactive},selected:{style:t.hollowArea.selected}},"smooth-line":{default:{style:t.hollowArea.default},active:{style:t.hollowArea.active},inactive:{style:t.hollowArea.inactive},selected:{style:t.hollowArea.selected}}},schema:{candle:{default:{style:t.hollowInterval.default},active:{style:t.hollowInterval.active},inactive:{style:t.hollowInterval.inactive},selected:{style:t.hollowInterval.selected}},box:{default:{style:t.hollowInterval.default},active:{style:t.hollowInterval.active},inactive:{style:t.hollowInterval.inactive},selected:{style:t.hollowInterval.selected}}},edge:{line:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},vhv:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},smooth:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},arc:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}}},violin:{violin:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},smooth:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},hollow:{default:{style:t.hollowArea.default},active:{style:t.hollowArea.active},inactive:{style:t.hollowArea.inactive},selected:{style:t.hollowArea.selected}},"hollow-smooth":{default:{style:t.hollowArea.default},active:{style:t.hollowArea.active},inactive:{style:t.hollowArea.inactive},selected:{style:t.hollowArea.selected}}}},components:{axis:{common:i,top:{position:"top",grid:null,title:null,verticalLimitLength:1/2},bottom:{position:"bottom",grid:null,title:null,verticalLimitLength:1/2},left:{position:"left",title:null,line:null,tickLine:null,verticalLimitLength:1/3},right:{position:"right",title:null,line:null,tickLine:null,verticalLimitLength:1/3},circle:{title:null,grid:(0,h.deepMix)({},i.grid,{line:{type:"line"}})},radius:{title:null,grid:(0,h.deepMix)({},i.grid,{line:{type:"circle"}})}},legend:{common:n,right:{layout:"vertical",padding:e.legendVerticalPadding},left:{layout:"vertical",padding:e.legendVerticalPadding},top:{layout:"horizontal",padding:e.legendHorizontalPadding},bottom:{layout:"horizontal",padding:e.legendHorizontalPadding},continuous:{title:null,background:null,track:{},rail:{type:"color",size:e.sliderRailHeight,defaultLength:e.sliderRailWidth,style:{fill:e.sliderRailFillColor,stroke:e.sliderRailBorderColor,lineWidth:e.sliderRailBorder}},label:{align:"rail",spacing:4,formatter:null,style:{fill:e.sliderLabelTextFillColor,fontSize:e.sliderLabelTextFontSize,lineHeight:e.sliderLabelTextLineHeight,textBaseline:"middle",fontFamily:e.fontFamily}},handler:{size:e.sliderHandlerWidth,style:{fill:e.sliderHandlerFillColor,stroke:e.sliderHandlerBorderColor}},slidable:!0,padding:n.padding}},tooltip:{showContent:!0,follow:!0,showCrosshairs:!1,showMarkers:!0,shared:!1,enterable:!1,position:"auto",marker:{symbol:"circle",stroke:"#fff",shadowBlur:10,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"rgba(0,0,0,0.09)",lineWidth:2,r:4},crosshairs:{line:{style:{stroke:e.tooltipCrosshairsBorderColor,lineWidth:e.tooltipCrosshairsBorder}},text:null,textBackground:{padding:2,style:{fill:"rgba(0, 0, 0, 0.25)",lineWidth:0,stroke:null}},follow:!1},domStyles:(r={},r["".concat(sr)]={position:"absolute",visibility:"hidden",zIndex:8,transition:"left 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s, top 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s",backgroundColor:e.tooltipContainerFillColor,opacity:e.tooltipContainerFillOpacity,boxShadow:e.tooltipContainerShadow,borderRadius:"".concat(e.tooltipContainerBorderRadius,"px"),color:e.tooltipTextFillColor,fontSize:"".concat(e.tooltipTextFontSize,"px"),fontFamily:e.fontFamily,lineHeight:"".concat(e.tooltipTextLineHeight,"px"),padding:"0 12px 0 12px"},r["".concat(lr)]={marginBottom:"12px",marginTop:"12px"},r["".concat(Ui)]={margin:0,listStyleType:"none",padding:0},r["".concat(Rn)]={listStyleType:"none",padding:0,marginBottom:"12px",marginTop:"12px",marginLeft:0,marginRight:0},r["".concat(Nn)]={width:"8px",height:"8px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},r["".concat(zn)]={display:"inline-block",float:"right",marginLeft:"30px"},r)},annotation:{arc:{style:{stroke:e.annotationArcBorderColor,lineWidth:e.annotationArcBorder},animate:!0},line:{style:{stroke:e.annotationLineBorderColor,lineDash:e.annotationLineDash,lineWidth:e.annotationLineBorder},text:{position:"start",autoRotate:!0,style:{fill:e.annotationTextFillColor,stroke:e.annotationTextBorderColor,lineWidth:e.annotationTextBorder,fontSize:e.annotationTextFontSize,textAlign:"start",fontFamily:e.fontFamily,textBaseline:"bottom"}},animate:!0},text:{style:{fill:e.annotationTextFillColor,stroke:e.annotationTextBorderColor,lineWidth:e.annotationTextBorder,fontSize:e.annotationTextFontSize,textBaseline:"middle",textAlign:"start",fontFamily:e.fontFamily},animate:!0},region:{top:!1,style:{lineWidth:e.annotationRegionBorder,stroke:e.annotationRegionBorderColor,fill:e.annotationRegionFillColor,fillOpacity:e.annotationRegionFillOpacity},animate:!0},image:{top:!1,animate:!0},dataMarker:{top:!0,point:{style:{r:3,stroke:e.brandColor,lineWidth:2}},line:{style:{stroke:e.annotationLineBorderColor,lineWidth:e.annotationLineBorder},length:e.annotationDataMarkerLineLength},text:{style:{textAlign:"start",fill:e.annotationTextFillColor,stroke:e.annotationTextBorderColor,lineWidth:e.annotationTextBorder,fontSize:e.annotationTextFontSize,fontFamily:e.fontFamily}},direction:"upward",autoAdjust:!0,animate:!0},dataRegion:{style:{region:{fill:e.annotationRegionFillColor,fillOpacity:e.annotationRegionFillOpacity},text:{textAlign:"center",textBaseline:"bottom",fill:e.annotationTextFillColor,stroke:e.annotationTextBorderColor,lineWidth:e.annotationTextBorder,fontSize:e.annotationTextFontSize,fontFamily:e.fontFamily}},animate:!0}},slider:{common:{padding:[8,8,8,8],backgroundStyle:{fill:e.cSliderBackgroundFillColor,opacity:e.cSliderBackgroundFillOpacity},foregroundStyle:{fill:e.cSliderForegroundFillColor,opacity:e.cSliderForegroundFillOpacity},handlerStyle:{width:e.cSliderHandlerWidth,height:e.cSliderHandlerHeight,fill:e.cSliderHandlerFillColor,opacity:e.cSliderHandlerFillOpacity,stroke:e.cSliderHandlerBorderColor,lineWidth:e.cSliderHandlerBorder,radius:e.cSliderHandlerBorderRadius,highLightFill:e.cSliderHandlerHighlightFillColor},textStyle:{fill:e.cSliderTextFillColor,opacity:e.cSliderTextFillOpacity,fontSize:e.cSliderTextFontSize,lineHeight:e.cSliderTextLineHeight,fontWeight:e.cSliderTextFontWeight,stroke:e.cSliderTextBorderColor,lineWidth:e.cSliderTextBorder}}},scrollbar:{common:{padding:[8,8,8,8]},default:{style:{trackColor:e.scrollbarTrackFillColor,thumbColor:e.scrollbarThumbFillColor}},hover:{style:{thumbColor:e.scrollbarThumbHighlightFillColor}}}},labels:{offset:12,style:{fill:e.labelFillColor,fontSize:e.labelFontSize,fontFamily:e.fontFamily,stroke:e.labelBorderColor,lineWidth:e.labelBorder},fillColorDark:e.labelFillColorDark,fillColorLight:e.labelFillColorLight,autoRotate:!0},innerLabels:{style:{fill:e.innerLabelFillColor,fontSize:e.innerLabelFontSize,fontFamily:e.fontFamily,stroke:e.innerLabelBorderColor,lineWidth:e.innerLabelBorder},autoRotate:!0},overflowLabels:{style:{fill:e.overflowLabelFillColor,fontSize:e.overflowLabelFontSize,fontFamily:e.fontFamily,stroke:e.overflowLabelBorderColor,lineWidth:e.overflowLabelBorder}},pieLabels:{labelHeight:14,offset:10,labelLine:{style:{lineWidth:e.labelLineBorder}},autoRotate:!0}}}var qt={100:"#000",95:"#0D0D0D",85:"#262626",65:"#595959",45:"#8C8C8C",25:"#BFBFBF",15:"#D9D9D9",6:"#F0F0F0"},vi={100:"#FFFFFF",95:"#F2F2F2",85:"#D9D9D9",65:"#A6A6A6",45:"#737373",25:"#404040",15:"#262626",6:"#0F0F0F"},Hy=["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#6F5EF9","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"],Yy=["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#6F5EF9","#D3CEFD","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"],Xy=["#B8E1FF","#9AC5FF","#7DAAFF","#5B8FF9","#3D76DD","#085EC0","#0047A5","#00318A","#001D70"],Au=function(e){e===void 0&&(e={});var r=e.paletteQualitative10,t=r===void 0?Hy:r,i=e.paletteQualitative20,n=i===void 0?Yy:i,a=e.brandColor,o=a===void 0?t[0]:a,s={backgroundColor:"transparent",brandColor:o,subColor:"rgba(0,0,0,0.05)",paletteQualitative10:t,paletteQualitative20:n,paletteSemanticRed:"#F4664A",paletteSemanticGreen:"#30BF78",paletteSemanticYellow:"#FAAD14",paletteSequence:Xy,fontFamily:`"Segoe UI", Roboto, "Helvetica Neue", Arial, - "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", - "Noto Color Emoji"`,axisLineBorderColor:qt[25],axisLineBorder:1,axisLineDash:null,axisTitleTextFillColor:qt[65],axisTitleTextFontSize:12,axisTitleTextLineHeight:12,axisTitleTextFontWeight:"normal",axisTitleSpacing:12,axisDescriptionIconFillColor:vi[85],axisTickLineBorderColor:qt[25],axisTickLineLength:4,axisTickLineBorder:1,axisSubTickLineBorderColor:qt[15],axisSubTickLineLength:2,axisSubTickLineBorder:1,axisLabelFillColor:qt[45],axisLabelFontSize:12,axisLabelLineHeight:12,axisLabelFontWeight:"normal",axisLabelOffset:8,axisGridBorderColor:qt[15],axisGridBorder:1,axisGridLineDash:null,legendTitleTextFillColor:qt[45],legendTitleTextFontSize:12,legendTitleTextLineHeight:21,legendTitleTextFontWeight:"normal",legendMarkerColor:o,legendMarkerSpacing:8,legendMarkerSize:4,legendCircleMarkerSize:4,legendSquareMarkerSize:4,legendLineMarkerSize:5,legendItemNameFillColor:qt[65],legendItemNameFontSize:12,legendItemNameLineHeight:12,legendItemNameFontWeight:"normal",legendItemSpacing:24,legendItemMarginBottom:12,legendPadding:[8,8,8,8],legendHorizontalPadding:[8,0,8,0],legendVerticalPadding:[0,8,0,8],legendPageNavigatorMarkerSize:12,legendPageNavigatorMarkerInactiveFillColor:qt[100],legendPageNavigatorMarkerInactiveFillOpacity:.45,legendPageNavigatorMarkerFillColor:qt[100],legendPageNavigatorMarkerFillOpacity:1,legendPageNavigatorTextFillColor:qt[45],legendPageNavigatorTextFontSize:12,sliderRailFillColor:qt[15],sliderRailBorder:0,sliderRailBorderColor:null,sliderRailWidth:100,sliderRailHeight:12,sliderLabelTextFillColor:qt[45],sliderLabelTextFontSize:12,sliderLabelTextLineHeight:12,sliderLabelTextFontWeight:"normal",sliderHandlerFillColor:qt[6],sliderHandlerWidth:10,sliderHandlerHeight:14,sliderHandlerBorder:1,sliderHandlerBorderColor:qt[25],annotationArcBorderColor:qt[15],annotationArcBorder:1,annotationLineBorderColor:qt[25],annotationLineBorder:1,annotationLineDash:null,annotationTextFillColor:qt[65],annotationTextFontSize:12,annotationTextLineHeight:12,annotationTextFontWeight:"normal",annotationTextBorderColor:null,annotationTextBorder:0,annotationRegionFillColor:qt[100],annotationRegionFillOpacity:.06,annotationRegionBorder:0,annotationRegionBorderColor:null,annotationDataMarkerLineLength:16,tooltipCrosshairsBorderColor:qt[25],tooltipCrosshairsBorder:1,tooltipCrosshairsLineDash:null,tooltipContainerFillColor:"rgb(255, 255, 255)",tooltipContainerFillOpacity:.95,tooltipContainerShadow:"0px 0px 10px #aeaeae",tooltipContainerBorderRadius:3,tooltipTextFillColor:qt[65],tooltipTextFontSize:12,tooltipTextLineHeight:12,tooltipTextFontWeight:"bold",labelFillColor:qt[65],labelFillColorDark:"#2c3542",labelFillColorLight:"#ffffff",labelFontSize:12,labelLineHeight:12,labelFontWeight:"normal",labelBorderColor:null,labelBorder:0,innerLabelFillColor:vi[100],innerLabelFontSize:12,innerLabelLineHeight:12,innerLabelFontWeight:"normal",innerLabelBorderColor:null,innerLabelBorder:0,overflowLabelFillColor:qt[65],overflowLabelFontSize:12,overflowLabelLineHeight:12,overflowLabelFontWeight:"normal",overflowLabelBorderColor:vi[100],overflowLabelBorder:1,labelLineBorder:1,labelLineBorderColor:qt[25],cSliderRailHieght:16,cSliderBackgroundFillColor:"#416180",cSliderBackgroundFillOpacity:.05,cSliderForegroundFillColor:"#5B8FF9",cSliderForegroundFillOpacity:.15,cSliderHandlerHeight:24,cSliderHandlerWidth:10,cSliderHandlerFillColor:"#F7F7F7",cSliderHandlerFillOpacity:1,cSliderHandlerHighlightFillColor:"#FFF",cSliderHandlerBorderColor:"#BFBFBF",cSliderHandlerBorder:1,cSliderHandlerBorderRadius:2,cSliderTextFillColor:"#000",cSliderTextFillOpacity:.45,cSliderTextFontSize:12,cSliderTextLineHeight:12,cSliderTextFontWeight:"normal",cSliderTextBorderColor:null,cSliderTextBorder:0,scrollbarTrackFillColor:"rgba(0,0,0,0)",scrollbarThumbFillColor:"rgba(0,0,0,0.15)",scrollbarThumbHighlightFillColor:"rgba(0,0,0,0.2)",pointFillColor:o,pointFillOpacity:.95,pointSize:4,pointBorder:1,pointBorderColor:vi[100],pointBorderOpacity:1,pointActiveBorderColor:qt[100],pointSelectedBorder:2,pointSelectedBorderColor:qt[100],pointInactiveFillOpacity:.3,pointInactiveBorderOpacity:.3,hollowPointSize:4,hollowPointBorder:1,hollowPointBorderColor:o,hollowPointBorderOpacity:.95,hollowPointFillColor:vi[100],hollowPointActiveBorder:1,hollowPointActiveBorderColor:qt[100],hollowPointActiveBorderOpacity:1,hollowPointSelectedBorder:2,hollowPointSelectedBorderColor:qt[100],hollowPointSelectedBorderOpacity:1,hollowPointInactiveBorderOpacity:.3,lineBorder:2,lineBorderColor:o,lineBorderOpacity:1,lineActiveBorder:3,lineSelectedBorder:3,lineInactiveBorderOpacity:.3,areaFillColor:o,areaFillOpacity:.25,areaActiveFillColor:o,areaActiveFillOpacity:.5,areaSelectedFillColor:o,areaSelectedFillOpacity:.5,areaInactiveFillOpacity:.3,hollowAreaBorderColor:o,hollowAreaBorder:2,hollowAreaBorderOpacity:1,hollowAreaActiveBorder:3,hollowAreaActiveBorderColor:qt[100],hollowAreaSelectedBorder:3,hollowAreaSelectedBorderColor:qt[100],hollowAreaInactiveBorderOpacity:.3,intervalFillColor:o,intervalFillOpacity:.95,intervalActiveBorder:1,intervalActiveBorderColor:qt[100],intervalActiveBorderOpacity:1,intervalSelectedBorder:2,intervalSelectedBorderColor:qt[100],intervalSelectedBorderOpacity:1,intervalInactiveBorderOpacity:.3,intervalInactiveFillOpacity:.3,hollowIntervalBorder:2,hollowIntervalBorderColor:o,hollowIntervalBorderOpacity:1,hollowIntervalFillColor:vi[100],hollowIntervalActiveBorder:2,hollowIntervalActiveBorderColor:qt[100],hollowIntervalSelectedBorder:3,hollowIntervalSelectedBorderColor:qt[100],hollowIntervalSelectedBorderOpacity:1,hollowIntervalInactiveBorderOpacity:.3};return(0,g.__assign)((0,g.__assign)({},s),e)},oO=Au();function $n(e){var r=e.styleSheet,t=r===void 0?{}:r,i=(0,g.__rest)(e,["styleSheet"]),n=Au(t);return(0,h.deepMix)({},Cu(n),i)}var Uy=$n({}),Ao={default:Uy};function Ji(e){return(0,h.get)(Ao,(0,h.lowerCase)(e),Ao.default)}function jy(e,r){Ao[(0,h.lowerCase)(e)]=$n(r)}function Mu(e,r,t){var i=t.translate(e),n=t.translate(r);return(0,h.isNumberEqual)(i,n)}function Zy(e,r){var t=r.coordinate,i=r.getXScale(),n=i.range,a=n[n.length-1],o=n[0],s=t.invert(e),l=s.x;return t.isPolar&&l>(1+a)/2&&(l=o),i.translate(i.invert(l))}function Fu(e,r,t){var i=t.coordinate,n=t.getYScale(),a=n.field,o=i.invert(r),s=n.invert(o.y),l=(0,h.find)(e,function(u){var c=u[rt];return c[a][0]<=s&&c[a][1]>=s});return l||e[e.length-1]}var Ky=(0,h.memoize)(function(e){if(e.isCategory)return 1;for(var r=e.values,t=r.length,i=e.translate(r[0]),n=i,a=0;an&&(n=s)}return(n-i)/(t-1)});function qy(e,r,t){var i=r.getAttribute("position"),n=i.getFields(),a=r.scales,o=(0,h.isFunction)(t)||!t?n[0]:t,s=a[o],l=s?s.getText(e[o]):e[o]||o;return(0,h.isFunction)(t)?t(l,e):l}function $y(e){var r=(0,h.values)(e.attributes);return(0,h.filter)(r,function(t){return(0,h.contains)(bt,t.type)})}function Eu(e){var r,t,i=$y(e),n;try{for(var a=(0,g.__values)(i),o=a.next();!o.done;o=a.next()){var s=o.value,l=s.getScale(s.type);if(l&&l.isLinear){var u=(0,h.get)(e.scaleDefs,l.field),c=ql(l,u,s.type,e.type);if(c!=="cat"){n=l;break}}}}catch(d){r={error:d}}finally{try{o&&!o.done&&(t=a.return)&&t.call(a)}finally{if(r)throw r.error}}var f=e.getXScale(),v=e.getYScale();return n||v||f}function Qy(e,r){var t=r.field,i=e[t];if((0,h.isArray)(i)){var n=i.map(function(a){return r.getText(a)});return n.join("-")}return r.getText(i)}function Jy(e,r){var t,i=r.getGroupScales();if(i.length&&(t=i[0]),t){var n=t.field;return t.getText(e[n])}var a=Eu(r);return Ki(a)}function Tu(e,r,t){if(r.length===0)return null;var i=t.type,n=t.getXScale(),a=t.getYScale(),o=n.field,s=a.field,l=null;if(i==="heatmap"||i==="point"){for(var u=t.coordinate,c=u.invert(e),f=n.invert(c.x),v=a.invert(c.y),d=Infinity,p=0;p=b)if(F)(0,h.isArray)(l)||(l=[]),l.push(P);else{l=P;break}}(0,h.isArray)(l)&&(l=Fu(l,e,t))}else{var L=void 0;if(!n.isLinear&&n.type!=="timeCat"){for(var p=0;pn.translate(A)||bn.max||bMath.abs(n.translate(L[rt][o])-b)&&(w=L)}var Rt=Ky(t.getXScale());return!l&&Math.abs(n.translate(w[rt][o])-b)<=Rt/2&&(l=w),l}function Mo(e,r,t,i){var n,a;t===void 0&&(t=""),i===void 0&&(i=!1);var o=e[rt],s=qy(o,r,t),l=r.tooltipOption,u=r.theme.defaultColor,c=[],f,v;function d(P,L){if(i||!(0,h.isNil)(L)&&L!==""){var z={title:s,data:o,mappingData:e,name:P,value:L,color:e.color||u,marker:!0};c.push(z)}}if((0,h.isObject)(l)){var p=l.fields,y=l.callback;if(y){var m=p.map(function(P){return e[rt][P]}),x=y.apply(void 0,(0,g.__spreadArray)([],(0,g.__read)(m),!1)),_=(0,g.__assign)({data:e[rt],mappingData:e,title:s,color:e.color||u,marker:!0},x);c.push(_)}else{var w=r.scales;try{for(var b=(0,g.__values)(p),S=b.next();!S.done;S=b.next()){var C=S.value;if(!(0,h.isNil)(o[C])){var A=w[C];f=Ki(A),v=A.getText(o[C]),d(f,v)}}}catch(P){n={error:P}}finally{try{S&&!S.done&&(a=b.return)&&a.call(b)}finally{if(n)throw n.error}}}}else{var F=Eu(r);v=Qy(o,F),f=Jy(o,r),d(f,v)}return c}function Lu(e,r,t,i){var n,a,o=i.showNil,s=[],l=e.dataArray;if(!(0,h.isEmpty)(l)){e.sort(l);try{for(var u=(0,g.__values)(l),c=u.next();!c.done;c=u.next()){var f=c.value,v=Tu(r,f,e);if(v){var d=e.getElementId(v),p=e.elementsMap[d];if(e.type==="heatmap"||p.visible){var y=Mo(v,e,t,o);y.length&&s.push(y)}}}}catch(m){n={error:m}}finally{try{c&&!c.done&&(a=u.return)&&a.call(u)}finally{if(n)throw n.error}}}return s}function Ou(e,r,t,i){var n=i.showNil,a=[],o=e.container,s=o.getShape(r.x,r.y);if(s&&s.get("visible")&&s.get("origin")){var l=s.get("origin").mappingData,u=Mo(l,e,t,n);u.length&&a.push(u)}return a}function Fo(e,r,t){var i,n,a=[],o=e.geometries,s=t.shared,l=t.title,u=t.reversed;try{for(var c=(0,g.__values)(o),f=c.next();!f.done;f=c.next()){var v=f.value;if(v.visible&&v.tooltipOption!==!1){var d=v.type,p=void 0;["point","edge","polygon"].includes(d)?p=Ou(v,r,l,t):["area","line","path","heatmap"].includes(d)||s!==!1?p=Lu(v,r,l,t):p=Ou(v,r,l,t),p.length&&(u&&p.reverse(),a.push(p))}}}catch(y){i={error:y}}finally{try{f&&!f.done&&(n=c.return)&&n.call(c)}finally{if(i)throw i.error}}return a}function t0(e,r,t){var i,n,a=Fo(e,r,t);try{for(var o=(0,g.__values)(e.views),s=o.next();!s.done;s=o.next()){var l=s.value;a=a.concat(Fo(l,r,t))}}catch(u){i={error:u}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function e0(e){return!(0,h.isNumber)(e)&&!(0,h.isArray)(e)}function Eo(e){e===void 0&&(e=0);var r=(0,h.isArray)(e)?e:[e];switch(r.length){case 0:r=[0,0,0,0];break;case 1:r=new Array(4).fill(r[0]);break;case 2:r=(0,g.__spreadArray)((0,g.__spreadArray)([],(0,g.__read)(r),!1),(0,g.__read)(r),!1);break;case 3:r=(0,g.__spreadArray)((0,g.__spreadArray)([],(0,g.__read)(r),!1),[r[1]],!1);break;default:r=r.slice(0,4);break}return r}var Qn={};function Vr(e,r){Qn[e]=r}function sO(e){delete Qn[e]}function r0(){return Object.keys(Qn)}function i0(e){return Qn[e]}var n0=function(){function e(r){this.option=this.wrapperOption(r)}return e.prototype.update=function(r){return this.option=this.wrapperOption(r),this},e.prototype.hasAction=function(r){var t=this.option.actions;return(0,h.some)(t,function(i){return i[0]===r})},e.prototype.create=function(r,t){var i=this.option,n=i.type,a=i.cfg,o=n==="theta",s=(0,g.__assign)({start:r,end:t},a),l=$d(o?"polar":n);return this.coordinate=new l(s),this.coordinate.type=n,o&&(this.hasAction("transpose")||this.transpose()),this.execActions(),this.coordinate},e.prototype.adjust=function(r,t){return this.coordinate.update({start:r,end:t}),this.coordinate.resetMatrix(),this.execActions(["scale","rotate","translate"]),this.coordinate},e.prototype.rotate=function(r){return this.option.actions.push(["rotate",r]),this},e.prototype.reflect=function(r){return this.option.actions.push(["reflect",r]),this},e.prototype.scale=function(r,t){return this.option.actions.push(["scale",r,t]),this},e.prototype.transpose=function(){return this.option.actions.push(["transpose"]),this},e.prototype.getOption=function(){return this.option},e.prototype.getCoordinate=function(){return this.coordinate},e.prototype.wrapperOption=function(r){return(0,g.__assign)({type:"rect",actions:[],cfg:{}},r)},e.prototype.execActions=function(r){var t=this,i=this.option.actions;(0,h.each)(i,function(n){var a,o=(0,g.__read)(n),s=o[0],l=o.slice(1),u=(0,h.isNil)(r)?!0:r.includes(s);u&&(a=t.coordinate)[s].apply(a,(0,g.__spreadArray)([],(0,g.__read)(l),!1))})},e}(),a0=n0,o0=function(){function e(r,t,i){this.view=r,this.gEvent=t,this.data=i,this.type=t.type}return e.fromData=function(r,t,i){return new e(r,new St.Event(t,{}),i)},Object.defineProperty(e.prototype,"target",{get:function(){return this.gEvent.target},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"event",{get:function(){return this.gEvent.originalEvent},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"x",{get:function(){return this.gEvent.x},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"y",{get:function(){return this.gEvent.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"clientX",{get:function(){return this.gEvent.clientX},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"clientY",{get:function(){return this.gEvent.clientY},enumerable:!1,configurable:!0}),e.prototype.toString=function(){return"[Event (type=".concat(this.type,")]")},e.prototype.clone=function(){return new e(this.view,this.gEvent,this.data)},e}(),ue=o0;function s0(e){var r=e.getController("axis"),t=e.getController("legend"),i=e.getController("annotation"),n=e.getController("slider"),a=e.getController("scrollbar");[r,n,a,t,i].forEach(function(o){o&&o.layout()})}var l0=function(){function e(){this.scales=new Map,this.syncScales=new Map}return e.prototype.createScale=function(r,t,i,n){var a=i,o=this.getScaleMeta(n);if(t.length===0&&o){var s=o.scale,l={type:s.type};s.isCategory&&(l.values=s.values),a=(0,h.deepMix)(l,o.scaleDef,i)}var u=ly(r,t,a);return this.cacheScale(u,i,n),u},e.prototype.sync=function(r,t){var i=this;this.syncScales.forEach(function(n,a){var o=Number.MAX_SAFE_INTEGER,s=Number.MIN_SAFE_INTEGER,l=[];(0,h.each)(n,function(u){var c=i.getScale(u);s=(0,h.isNumber)(c.max)?Math.max(s,c.max):s,o=(0,h.isNumber)(c.min)?Math.min(o,c.min):o,(0,h.each)(c.values,function(f){l.includes(f)||l.push(f)})}),(0,h.each)(n,function(u){var c=i.getScale(u);if(c.isContinuous)c.change({min:o,max:s,values:l});else if(c.isCategory){var f=c.range,v=i.getScaleMeta(u);l&&!(0,h.get)(v,["scaleDef","range"])&&(f=$l((0,h.deepMix)({},c,{values:l}),r,t)),c.change({values:l,range:f})}})})},e.prototype.cacheScale=function(r,t,i){var n=this.getScaleMeta(i);n&&n.scale.type===r.type?(uy(n.scale,r),n.scaleDef=t):(n={key:i,scale:r,scaleDef:t},this.scales.set(i,n));var a=this.getSyncKey(n);if(n.syncKey=a,this.removeFromSyncScales(i),a){var o=this.syncScales.get(a);o||(o=[],this.syncScales.set(a,o)),o.push(i)}},e.prototype.getScale=function(r){var t=this.getScaleMeta(r);if(!t){var i=(0,h.last)(r.split("-")),n=this.syncScales.get(i);n&&n.length&&(t=this.getScaleMeta(n[0]))}return t&&t.scale},e.prototype.deleteScale=function(r){var t=this.getScaleMeta(r);if(t){var i=t.syncKey,n=this.syncScales.get(i);if(n&&n.length){var a=n.indexOf(r);a!==-1&&n.splice(a,1)}}this.scales.delete(r)},e.prototype.clear=function(){this.scales.clear(),this.syncScales.clear()},e.prototype.removeFromSyncScales=function(r){var t=this;this.syncScales.forEach(function(i,n){var a=i.indexOf(r);if(a!==-1)return i.splice(a,1),i.length===0&&t.syncScales.delete(n),!1})},e.prototype.getSyncKey=function(r){var t=r.scale,i=r.scaleDef,n=t.field,a=(0,h.get)(i,["sync"]);return a===!0?n:a===!1?void 0:a},e.prototype.getScaleMeta=function(r){return this.scales.get(r)},e}(),Jn=function(){function e(r,t,i,n){r===void 0&&(r=0),t===void 0&&(t=0),i===void 0&&(i=0),n===void 0&&(n=0),this.top=r,this.right=t,this.bottom=i,this.left=n}return e.instance=function(r,t,i,n){return r===void 0&&(r=0),t===void 0&&(t=0),i===void 0&&(i=0),n===void 0&&(n=0),new e(r,t,i,n)},e.prototype.max=function(r){var t=(0,g.__read)(r,4),i=t[0],n=t[1],a=t[2],o=t[3];return this.top=Math.max(this.top,i),this.right=Math.max(this.right,n),this.bottom=Math.max(this.bottom,a),this.left=Math.max(this.left,o),this},e.prototype.shrink=function(r){var t=(0,g.__read)(r,4),i=t[0],n=t[1],a=t[2],o=t[3];return this.top+=i,this.right+=n,this.bottom+=a,this.left+=o,this},e.prototype.inc=function(r,t){var i=r.width,n=r.height;switch(t){case E.TOP:case E.TOP_LEFT:case E.TOP_RIGHT:this.top+=n;break;case E.RIGHT:case E.RIGHT_TOP:case E.RIGHT_BOTTOM:this.right+=i;break;case E.BOTTOM:case E.BOTTOM_LEFT:case E.BOTTOM_RIGHT:this.bottom+=n;break;case E.LEFT:case E.LEFT_TOP:case E.LEFT_BOTTOM:this.left+=i;break;default:break}return this},e.prototype.getPadding=function(){return[this.top,this.right,this.bottom,this.left]},e.prototype.clone=function(){return new(e.bind.apply(e,(0,g.__spreadArray)([void 0],(0,g.__read)(this.getPadding()),!1)))},e}();function u0(e){var r=e.padding;if(!e0(r))return new(Jn.bind.apply(Jn,(0,g.__spreadArray)([void 0],(0,g.__read)(Eo(r)),!1)));var t=e.viewBBox,i=new Jn,n=[],a=[],o=[];return(0,h.each)(e.getComponents(),function(s){var l=s.type;l===N.AXIS?n.push(s):[N.LEGEND,N.SLIDER,N.SCROLLBAR].includes(l)?a.push(s):l!==N.GRID&&l!==N.TOOLTIP&&o.push(s)}),(0,h.each)(n,function(s){var l=s.component,u=l.getLayoutBBox(),c=new Ee(u.x,u.y,u.width,u.height),f=c.exceed(t);i.max(f)}),(0,h.each)(a,function(s){var l=s.component,u=s.direction,c=l.getLayoutBBox(),f=l.get("padding"),v=new Ee(c.x,c.y,c.width,c.height).expand(f);i.inc(v,u)}),(0,h.each)(o,function(s){var l=s.component,u=s.direction,c=l.getLayoutBBox(),f=new Ee(c.x,c.y,c.width,c.height);i.inc(f,u)}),i}function c0(e,r,t){var i=t.instance();r.forEach(function(n){n.autoPadding=i.max(n.autoPadding.getPadding())})}var Iu=function(e){(0,g.__extends)(r,e);function r(t){var i=e.call(this,{visible:t.visible})||this;i.views=[],i.geometries=[],i.controllers=[],i.interactions={},i.limitInPlot=!1,i.options={data:[],animate:!0},i.usedControllers=r0(),i.scalePool=new l0,i.layoutFunc=s0,i.isPreMouseInPlot=!1,i.isDataChanged=!1,i.isCoordinateChanged=!1,i.createdScaleKeys=new Map,i.onCanvasEvent=function(w){var b=w.name;if(!b.includes(":")){var S=i.createViewEvent(w);i.doPlotEvent(S),i.emit(b,S)}},i.onDelegateEvents=function(w){var b=w.name;if(!!b.includes(":")){var S=i.createViewEvent(w);i.emit(b,S)}};var n=t.id,a=n===void 0?(0,h.uniqueId)("view"):n,o=t.parent,s=t.canvas,l=t.backgroundGroup,u=t.middleGroup,c=t.foregroundGroup,f=t.region,v=f===void 0?{start:{x:0,y:0},end:{x:1,y:1}}:f,d=t.padding,p=t.appendPadding,y=t.theme,m=t.options,x=t.limitInPlot,_=t.syncViewPadding;return i.parent=o,i.canvas=s,i.backgroundGroup=l,i.middleGroup=u,i.foregroundGroup=c,i.region=v,i.padding=d,i.appendPadding=p,i.options=(0,g.__assign)((0,g.__assign)({},i.options),m),i.limitInPlot=x,i.id=a,i.syncViewPadding=_,i.themeObject=(0,h.isObject)(y)?(0,h.deepMix)({},Ji("default"),$n(y)):Ji(y),i.init(),i}return r.prototype.setLayout=function(t){this.layoutFunc=t},r.prototype.init=function(){this.calculateViewBBox(),this.initEvents(),this.initComponentController(),this.initOptions()},r.prototype.render=function(t,i){t===void 0&&(t=!1),this.emit(O.BEFORE_RENDER,ue.fromData(this,O.BEFORE_RENDER,i)),this.paint(t),this.emit(O.AFTER_RENDER,ue.fromData(this,O.AFTER_RENDER,i)),this.visible===!1&&this.changeVisible(!1)},r.prototype.clear=function(){var t=this;this.emit(O.BEFORE_CLEAR),this.filteredData=[],this.coordinateInstance=void 0,this.isDataChanged=!1,this.isCoordinateChanged=!1;for(var i=this.geometries,n=0;n');L.appendChild(z);var Q=R(L,l,a,o),xt=se(v),_t=new xt.Canvas((0,g.__assign)({container:z,pixelRatio:d,localRefresh:y,supportCSSTransform:w},Q));return i=e.call(this,{parent:null,canvas:_t,backgroundGroup:_t.addGroup({zIndex:q.BG}),middleGroup:_t.addGroup({zIndex:q.MID}),foregroundGroup:_t.addGroup({zIndex:q.FORE}),padding:u,appendPadding:c,visible:x,options:C,limitInPlot:A,theme:F,syncViewPadding:P})||this,i.onResize=(0,h.debounce)(function(){i.forceFit()},300),i.ele=L,i.canvas=_t,i.width=Q.width,i.height=Q.height,i.autoFit=l,i.localRefresh=y,i.renderer=v,i.wrapperElement=z,i.updateCanvasStyle(),i.bindAutoFit(),i.initDefaultInteractions(S),i}return r.prototype.initDefaultInteractions=function(t){var i=this;(0,h.each)(t,function(n){i.interaction(n)})},r.prototype.aria=function(t){var i="aria-label";t===!1?this.ele.removeAttribute(i):this.ele.setAttribute(i,t.label)},r.prototype.changeSize=function(t,i){return this.width===t&&this.height===i?this:(this.emit(O.BEFORE_CHANGE_SIZE),this.width=t,this.height=i,this.canvas.changeSize(t,i),this.render(!0),this.emit(O.AFTER_CHANGE_SIZE),this)},r.prototype.clear=function(){e.prototype.clear.call(this),this.aria(!1)},r.prototype.destroy=function(){e.prototype.destroy.call(this),this.unbindAutoFit(),this.canvas.destroy(),D(this.wrapperElement),this.wrapperElement=null},r.prototype.changeVisible=function(t){return e.prototype.changeVisible.call(this,t),this.wrapperElement.style.display=t?"":"none",this},r.prototype.forceFit=function(){if(!this.destroyed){var t=R(this.ele,!0,this.width,this.height),i=t.width,n=t.height;this.changeSize(i,n)}},r.prototype.updateCanvasStyle=function(){(0,k.Z)(this.canvas.get("el"),{display:"inline-block",verticalAlign:"middle"})},r.prototype.bindAutoFit=function(){this.autoFit&&window.addEventListener("resize",this.onResize)},r.prototype.unbindAutoFit=function(){this.autoFit&&window.removeEventListener("resize",this.onResize)},r}(h0),v0=f0,di=function(){function e(r){this.visible=!0,this.components=[],this.view=r}return e.prototype.clear=function(r){(0,h.each)(this.components,function(t){t.component.destroy()}),this.components=[]},e.prototype.destroy=function(){this.clear()},e.prototype.getComponents=function(){return this.components},e.prototype.changeVisible=function(r){this.visible!==r&&(this.components.forEach(function(t){r?t.component.show():t.component.hide()}),this.visible=r)},e}();function d0(e){for(var r=[],t=function(n){var a=e[n],o=(0,h.find)(r,function(s){return s.color===a.color&&s.name===a.name&&s.value===a.value&&s.title===a.title});o||r.push(a)},i=0;i1){var b=u[0],S=Math.abs(t.y-b[0].y);try{for(var C=(0,g.__values)(u),A=C.next();!A.done;A=C.next()){var F=A.value,P=Math.abs(t.y-F[0].y);P<=S&&(b=F,S=P)}}catch(L){s={error:L}}finally{try{A&&!A.done&&(l=C.return)&&l.call(C)}finally{if(s)throw s.error}}u=[b]}return d0((0,h.flatten)(u))}return[]},r.prototype.layout=function(){},r.prototype.update=function(){if(this.point&&this.showTooltip(this.point),this.tooltip){var t=this.view.getCanvas();this.tooltip.set("region",{start:{x:0,y:0},end:{x:t.get("width"),y:t.get("height")}})}},r.prototype.isCursorEntered=function(t){if(this.tooltip){var i=this.tooltip.getContainer(),n=this.tooltip.get("capture");if(i&&n){var a=i.getBoundingClientRect(),o=a.x,s=a.y,l=a.width,u=a.height;return new Ee(o,s,l,u).isPointIn(t)}}return!1},r.prototype.getTooltipCfg=function(){var t=this.view,i=t.getOptions().tooltip,n=this.processCustomContent(i),a=t.getTheme(),o=(0,h.get)(a,["components","tooltip"],{}),s=(0,h.get)(n,"enterable",o.enterable);return(0,h.deepMix)({},o,n,{capture:!!(s||this.isLocked)})},r.prototype.processCustomContent=function(t){if((0,h.isBoolean)(t)||!(0,h.get)(t,"customContent"))return t;var i=t.customContent,n=function(a,o){var s=i(a,o)||"";return(0,h.isString)(s)?'
    '+s+"
    ":s};return(0,g.__assign)((0,g.__assign)({},t),{customContent:n})},r.prototype.getTitle=function(t){var i=t[0].title||t[0].name;return this.title=i,i},r.prototype.renderTooltip=function(){var t=this.view.getCanvas(),i={start:{x:0,y:0},end:{x:t.get("width"),y:t.get("height")}},n=this.getTooltipCfg(),a=new Gn((0,g.__assign)((0,g.__assign)({parent:t.get("el").parentNode,region:i},n),{visible:!1,crosshairs:null}));a.init(),this.tooltip=a},r.prototype.renderTooltipMarkers=function(t,i){var n,a,o=this.getTooltipMarkersGroup(),s=this.view.getRootView(),l=s.limitInPlot;try{for(var u=(0,g.__values)(t),c=u.next();!c.done;c=u.next()){var f=c.value,v=f.x,d=f.y;if(l||(o==null?void 0:o.getClip())){var p=xo(s.getCoordinate()),y=p.type,m=p.attrs;o==null||o.setClip({type:y,attrs:m})}else o==null||o.setClip(void 0);var x=this.view.getTheme(),_=(0,h.get)(x,["components","tooltip","marker"],{}),w=(0,g.__assign)((0,g.__assign)({fill:f.color,symbol:"circle",shadowColor:f.color},(0,h.isFunction)(i)?(0,g.__assign)((0,g.__assign)({},_),i(f)):i),{x:v,y:d});o.addShape("marker",{attrs:w})}}catch(b){n={error:b}}finally{try{c&&!c.done&&(a=u.return)&&a.call(u)}finally{if(n)throw n.error}}},r.prototype.renderCrosshairs=function(t,i){var n=(0,h.get)(i,["crosshairs","type"],"x");n==="x"?(this.yCrosshair&&this.yCrosshair.hide(),this.renderXCrosshairs(t,i)):n==="y"?(this.xCrosshair&&this.xCrosshair.hide(),this.renderYCrosshairs(t,i)):n==="xy"&&(this.renderXCrosshairs(t,i),this.renderYCrosshairs(t,i))},r.prototype.renderXCrosshairs=function(t,i){var n=this.getViewWithGeometry(this.view).getCoordinate(),a,o;if(n.isRect)n.isTransposed?(a={x:n.start.x,y:t.y},o={x:n.end.x,y:t.y}):(a={x:t.x,y:n.end.y},o={x:t.x,y:n.start.y});else{var s=ui(n,t),l=n.getCenter(),u=n.getRadius();o=ge(l.x,l.y,u,s),a=l}var c=(0,h.deepMix)({start:a,end:o,container:this.getTooltipCrosshairsGroup()},(0,h.get)(i,"crosshairs",{}),this.getCrosshairsText("x",t,i));delete c.type;var f=this.xCrosshair;f?f.update(c):(f=new Bl(c),f.init()),f.render(),f.show(),this.xCrosshair=f},r.prototype.renderYCrosshairs=function(t,i){var n=this.getViewWithGeometry(this.view).getCoordinate(),a,o;if(n.isRect){var s=void 0,l=void 0;n.isTransposed?(s={x:t.x,y:n.end.y},l={x:t.x,y:n.start.y}):(s={x:n.start.x,y:t.y},l={x:n.end.x,y:t.y}),a={start:s,end:l},o="Line"}else a={center:n.getCenter(),radius:Wn(n,t),startAngle:n.startAngle,endAngle:n.endAngle},o="Circle";a=(0,h.deepMix)({container:this.getTooltipCrosshairsGroup()},a,(0,h.get)(i,"crosshairs",{}),this.getCrosshairsText("y",t,i)),delete a.type;var u=this.yCrosshair;u?n.isRect&&u.get("type")==="circle"||!n.isRect&&u.get("type")==="line"?(u=new ct[o](a),u.init()):u.update(a):(u=new ct[o](a),u.init()),u.render(),u.show(),this.yCrosshair=u},r.prototype.getCrosshairsText=function(t,i,n){var a=(0,h.get)(n,["crosshairs","text"]),o=(0,h.get)(n,["crosshairs","follow"]),s=this.items;if(a){var l=this.getViewWithGeometry(this.view),u=s[0],c=l.getXScale(),f=l.getYScales()[0],v=void 0,d=void 0;if(o){var p=this.view.getCoordinate().invert(i);v=c.invert(p.x),d=f.invert(p.y)}else v=u.data[c.field],d=u.data[f.field];var y=t==="x"?v:d;return(0,h.isFunction)(a)?a=a(t,y,s,i):a.content=y,{text:a}}},r.prototype.getGuideGroup=function(){if(!this.guideGroup){var t=this.view.foregroundGroup;this.guideGroup=t.addGroup({name:"tooltipGuide",capture:!1})}return this.guideGroup},r.prototype.getTooltipMarkersGroup=function(){var t=this.tooltipMarkersGroup;return t&&!t.destroyed?(t.clear(),t.show()):(t=this.getGuideGroup().addGroup({name:"tooltipMarkersGroup"}),t.toFront(),this.tooltipMarkersGroup=t),t},r.prototype.getTooltipCrosshairsGroup=function(){var t=this.tooltipCrosshairsGroup;return t||(t=this.getGuideGroup().addGroup({name:"tooltipCrosshairsGroup",capture:!1}),t.toBack(),this.tooltipCrosshairsGroup=t),t},r.prototype.findItemsFromView=function(t,i){var n,a;if(t.getOptions().tooltip===!1)return[];var o=this.getTooltipCfg(),s=Fo(t,i,o);try{for(var l=(0,g.__values)(t.views),u=l.next();!u.done;u=l.next()){var c=u.value;s=s.concat(this.findItemsFromView(c,i))}}catch(f){n={error:f}}finally{try{u&&!u.done&&(a=l.return)&&a.call(l)}finally{if(n)throw n.error}}return s},r.prototype.getViewWithGeometry=function(t){var i=this;return t.geometries.length?t:(0,h.find)(t.views,function(n){return i.getViewWithGeometry(n)})},r.prototype.getItemsAfterProcess=function(t){var i=this.getTooltipCfg().customItems,n=i||function(a){return a};return n(t)},r}(di),Pu=g0,ku={};function Du(e){return ku[e.toLowerCase()]}function ze(e,r){ku[e.toLowerCase()]=r}var gi={appear:{duration:450,easing:"easeQuadOut"},update:{duration:400,easing:"easeQuadInOut"},enter:{duration:400,easing:"easeQuadInOut"},leave:{duration:350,easing:"easeQuadIn"}},p0={interval:function(e){return{enter:{animation:e.isRect?e.isTransposed?"scale-in-x":"scale-in-y":"fade-in"},update:{animation:e.isPolar&&e.isTransposed?"sector-path-update":null},leave:{animation:"fade-out"}}},line:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},path:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},point:{appear:{animation:"zoom-in"},enter:{animation:"zoom-in"},leave:{animation:"zoom-out"}},area:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},polygon:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},schema:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},edge:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},label:{appear:{animation:"fade-in",delay:450},enter:{animation:"fade-in"},update:{animation:"position-update"},leave:{animation:"fade-out"}}},Bu={line:function(){return{animation:"wave-in"}},area:function(){return{animation:"wave-in"}},path:function(){return{animation:"fade-in"}},interval:function(e){var r;return e.isRect?r=e.isTransposed?"grow-in-x":"grow-in-y":(r="grow-in-xy",e.isPolar&&e.isTransposed&&(r="wave-in")),{animation:r}},schema:function(e){var r;return e.isRect?r=e.isTransposed?"grow-in-x":"grow-in-y":r="grow-in-xy",{animation:r}},polygon:function(){return{animation:"fade-in",duration:500}},edge:function(){return{animation:"fade-in"}}};function y0(e,r){return{delay:(0,h.isFunction)(e.delay)?e.delay(r):e.delay,easing:(0,h.isFunction)(e.easing)?e.easing(r):e.easing,duration:(0,h.isFunction)(e.duration)?e.duration(r):e.duration,callback:e.callback,repeat:e.repeat}}function Ru(e,r,t){var i=p0[e];return i&&((0,h.isFunction)(i)&&(i=i(r)),i=(0,h.deepMix)({},gi,i),t)?i[t]:i}function pi(e,r,t){var i=(0,h.get)(e.get("origin"),"data",rt),n=r.animation,a=y0(r,i);if(n){var o=Du(n);o&&o(e,a,t)}else e.animate(t.toAttrs,a)}function m0(e,r,t,i,n){if(Bu[t]){var a=Bu[t](i),o=Du((0,h.get)(a,"animation",""));if(o){var s=(0,g.__assign)((0,g.__assign)((0,g.__assign)({},gi.appear),a),r);e.stopAnimate(),o(e,s,{coordinate:i,minYPoint:n,toAttrs:null})}}}var To="element-background",x0=function(e){(0,g.__extends)(r,e);function r(t){var i=e.call(this,t)||this;i.labelShape=[],i.states=[];var n=t.shapeFactory,a=t.container,o=t.offscreenGroup,s=t.elementIndex,l=t.visible,u=l===void 0?!0:l;return i.shapeFactory=n,i.container=a,i.offscreenGroup=o,i.visible=u,i.elementIndex=s,i}return r.prototype.draw=function(t,i){i===void 0&&(i=!1),this.model=t,this.data=t.data,this.shapeType=this.getShapeType(t),this.drawShape(t,i),this.visible===!1&&this.changeVisible(!1)},r.prototype.update=function(t){var i=this,n=i.shapeFactory,a=i.shape;if(!!a){this.model=t,this.data=t.data,this.shapeType=this.getShapeType(t),this.setShapeInfo(a,t);var o=this.getOffscreenGroup(),s=n.drawShape(this.shapeType,t,o);s.cfg.data=this.data,s.cfg.origin=t,s.cfg.element=this,this.syncShapeStyle(a,s,this.getStates(),this.getAnimateCfg("update"))}},r.prototype.destroy=function(){var t=this,i=t.shapeFactory,n=t.shape;if(n){var a=this.getAnimateCfg("leave");a?pi(n,a,{coordinate:i.coordinate,toAttrs:(0,g.__assign)({},n.attr())}):n.remove(!0)}this.states=[],this.shapeFactory=void 0,this.container=void 0,this.shape=void 0,this.animate=void 0,this.geometry=void 0,this.labelShape=[],this.model=void 0,this.data=void 0,this.offscreenGroup=void 0,this.statesStyle=void 0,e.prototype.destroy.call(this)},r.prototype.changeVisible=function(t){e.prototype.changeVisible.call(this,t),t?(this.shape&&this.shape.show(),this.labelShape&&this.labelShape.forEach(function(i){i.show()})):(this.shape&&this.shape.hide(),this.labelShape&&this.labelShape.forEach(function(i){i.hide()}))},r.prototype.setState=function(t,i){var n=this,a=n.states,o=n.shapeFactory,s=n.model,l=n.shape,u=n.shapeType,c=a.indexOf(t);if(i){if(c>-1)return;a.push(t),(t==="active"||t==="selected")&&(l==null||l.toFront())}else{if(c===-1)return;if(a.splice(c,1),t==="active"||t==="selected"){var f=this.geometry,v=f.sortZIndex,d=f.zIndexReversed,p=d?this.geometry.elements.length-this.elementIndex:this.elementIndex;v?l.setZIndex(p):l.set("zIndex",p)}}var y=o.drawShape(u,s,this.getOffscreenGroup());a.length?this.syncShapeStyle(l,y,a,null):this.syncShapeStyle(l,y,["reset"],null),y.remove(!0);var m={state:t,stateStatus:i,element:this,target:this.container};this.container.emit("statechange",m),Sl(this.shape,"statechange",m)},r.prototype.clearStates=function(){var t=this,i=this.states;(0,h.each)(i,function(n){t.setState(n,!1)}),this.states=[]},r.prototype.hasState=function(t){return this.states.includes(t)},r.prototype.getStates=function(){return this.states},r.prototype.getData=function(){return this.data},r.prototype.getModel=function(){return this.model},r.prototype.getBBox=function(){var t=this,i=t.shape,n=t.labelShape,a={x:0,y:0,minX:0,minY:0,maxX:0,maxY:0,width:0,height:0};return i&&(a=i.getCanvasBBox()),n&&n.forEach(function(o){var s=o.getCanvasBBox();a.x=Math.min(s.x,a.x),a.y=Math.min(s.y,a.y),a.minX=Math.min(s.minX,a.minX),a.minY=Math.min(s.minY,a.minY),a.maxX=Math.max(s.maxX,a.maxX),a.maxY=Math.max(s.maxY,a.maxY)}),a.width=a.maxX-a.minX,a.height=a.maxY-a.minY,a},r.prototype.getStatesStyle=function(){if(!this.statesStyle){var t=this,i=t.shapeType,n=t.geometry,a=t.shapeFactory,o=n.stateOption,s=a.defaultShapeType,l=a.theme[i]||a.theme[s];this.statesStyle=(0,h.deepMix)({},l,o)}return this.statesStyle},r.prototype.getStateStyle=function(t,i){var n=this.getStatesStyle(),a=(0,h.get)(n,[t,"style"],{}),o=a[i]||a;return(0,h.isFunction)(o)?o(this):o},r.prototype.getAnimateCfg=function(t){var i=this,n=this.animate;if(n){var a=n[t];return a&&(0,g.__assign)((0,g.__assign)({},a),{callback:function(){var o;(0,h.isFunction)(a.callback)&&a.callback(),(o=i.geometry)===null||o===void 0||o.emit(X.AFTER_DRAW_ANIMATE)}})}return null},r.prototype.drawShape=function(t,i){var n;i===void 0&&(i=!1);var a=this,o=a.shapeFactory,s=a.container,l=a.shapeType;if(this.shape=o.drawShape(l,t,s),this.shape){this.setShapeInfo(this.shape,t);var u=this.shape.cfg.name;u?(0,h.isString)(u)&&(this.shape.cfg.name=["element",u]):this.shape.cfg.name=["element",this.shapeFactory.geometryType];var c=i?"enter":"appear",f=this.getAnimateCfg(c);f&&((n=this.geometry)===null||n===void 0||n.emit(X.BEFORE_DRAW_ANIMATE),pi(this.shape,f,{coordinate:o.coordinate,toAttrs:(0,g.__assign)({},this.shape.attr())}))}},r.prototype.getOffscreenGroup=function(){if(!this.offscreenGroup){var t=this.container.getGroupBase();this.offscreenGroup=new t({})}return this.offscreenGroup},r.prototype.setShapeInfo=function(t,i){var n=this;if(t.cfg.origin=i,t.cfg.element=this,t.isGroup()){var a=t.get("children");a.forEach(function(o){n.setShapeInfo(o,i)})}},r.prototype.syncShapeStyle=function(t,i,n,a,o){var s=this,l;if(n===void 0&&(n=[]),o===void 0&&(o=0),!(!t||!i)){var u=t.get("clipShape"),c=i.get("clipShape");if(this.syncShapeStyle(u,c,n,a),t.isGroup())for(var f=t.get("children"),v=i.get("children"),d=0;d=0?a=i:n<=0?a=n:a=0,a},r.prototype.createAttrOption=function(t,i,n){if((0,h.isNil)(i)||(0,h.isObject)(i))(0,h.isObject)(i)&&(0,h.isEqual)(Object.keys(i),["values"])?(0,h.set)(this.attributeOption,t,{fields:i.values}):(0,h.set)(this.attributeOption,t,i);else{var a={};(0,h.isNumber)(i)?a.values=[i]:a.fields=en(i),n&&((0,h.isFunction)(n)?a.callback=n:a.values=n),(0,h.set)(this.attributeOption,t,a)}},r.prototype.initAttributes=function(){var t=this,i=this,n=i.attributes,a=i.attributeOption,o=i.theme,s=i.shapeType;this.groupScales=[];var l={},u=function(v){if(a.hasOwnProperty(v)){var d=a[v];if(!d)return{value:void 0};var p=(0,g.__assign)({},d),y=p.callback,m=p.values,x=p.fields,_=x===void 0?[]:x,w=_.map(function(S){var C=t.scales[S];if(!l[S]&&bt.includes(v)){var A=ql(C,(0,h.get)(t.scaleDefs,S),v,t.type);A==="cat"&&(t.groupScales.push(C),l[S]=!0)}return C});p.scales=w,v!=="position"&&w.length===1&&w[0].type==="identity"?p.values=w[0].values:!y&&!m&&(v==="size"?p.values=o.sizes:v==="shape"?p.values=o.shapes[s]||[]:v==="color"&&(w.length?p.values=w[0].values.length<=10?o.colors10:o.colors20:p.values=o.colors10));var b=_l(v);n[v]=new b(p)}};for(var c in a){var f=u(c);if(typeof f=="object")return f.value}},r.prototype.processData=function(t){var i,n;this.hasSorted=!1;for(var a=this.getAttribute("position").scales,o=a.filter(function(A){return A.isCategory}),s=this.groupData(t),l=[],u=0,c=s.length;us&&(s=f)}var v=this.scaleDefs,d={};ot.max&&!(0,h.get)(v,[a,"max"])&&(d.max=s),t.change(d)},r.prototype.beforeMapping=function(t){var i=t;if(this.sortable&&this.sort(i),this.generatePoints)for(var n=0,a=i.length;n1)for(var v=0;v0})}function Xu(e,r,t){var i=t.data,n=t.origin,a=t.animateCfg,o=t.coordinate,s=(0,h.get)(a,"update");e.set("data",i),e.set("origin",n),e.set("animateCfg",a),e.set("coordinate",o),e.set("visible",r.get("visible")),(e.getChildren()||[]).forEach(function(l,u){var c=r.getChildByIndex(u);if(!c)e.removeChild(l),l.remove(!0);else{l.set("data",i),l.set("origin",n),l.set("animateCfg",a),l.set("coordinate",o);var f=Kl(l,c);s?pi(l,s,{toAttrs:f,coordinate:o}):l.attr(f),c.isGroup()&&Xu(l,c,t)}}),(0,h.each)(r.getChildren(),function(l,u){u>=e.getCount()&&(l.destroyed||e.add(l))})}var L0=function(){function e(r){this.shapesMap={};var t=r.layout,i=r.container;this.layout=t,this.container=i}return e.prototype.render=function(r,t,i){return i===void 0&&(i=!1),(0,g.__awaiter)(this,void 0,void 0,function(){var n,a,o,s,l,u,c,f,v=this;return(0,g.__generator)(this,function(d){switch(d.label){case 0:if(n={},a=this.createOffscreenGroup(),!r.length)return[3,2];try{for(o=(0,g.__values)(r),s=o.next();!s.done;s=o.next())l=s.value,l&&(n[l.id]=this.renderLabel(l,a))}catch(p){c={error:p}}finally{try{s&&!s.done&&(f=o.return)&&f.call(o)}finally{if(c)throw c.error}}return[4,this.doLayout(r,t,n)];case 1:d.sent(),this.renderLabelLine(r,n),this.renderLabelBackground(r,n),this.adjustLabel(r,n),d.label=2;case 2:return u=this.shapesMap,(0,h.each)(n,function(p,y){if(p.destroyed)delete n[y];else{if(u[y]){var m=p.get("data"),x=p.get("origin"),_=p.get("coordinate"),w=p.get("animateCfg"),b=u[y];Xu(b,n[y],{data:m,origin:x,animateCfg:w,coordinate:_}),n[y]=b}else{if(v.container.destroyed)return;v.container.add(p);var S=(0,h.get)(p.get("animateCfg"),i?"enter":"appear");S&&pi(p,S,{toAttrs:(0,g.__assign)({},p.attr()),coordinate:p.get("coordinate")})}delete u[y]}}),(0,h.each)(u,function(p){var y=(0,h.get)(p.get("animateCfg"),"leave");y?pi(p,y,{toAttrs:null,coordinate:p.get("coordinate")}):p.remove(!0)}),this.shapesMap=n,a.destroy(),[2]}})})},e.prototype.clear=function(){this.container.clear(),this.shapesMap={}},e.prototype.destroy=function(){this.container.destroy(),this.shapesMap=null},e.prototype.renderLabel=function(r,t){var i=r.id,n=r.elementId,a=r.data,o=r.mappingData,s=r.coordinate,l=r.animate,u=r.content,c=r.capture,f={id:i,elementId:n,capture:c,data:a,origin:(0,g.__assign)((0,g.__assign)({},o),{data:o[rt]}),coordinate:s},v=t.addGroup((0,g.__assign)({name:"label",animateCfg:this.animate===!1||l===null||l===!1?!1:(0,h.deepMix)({},this.animate,l)},f)),d;if(u.isGroup&&u.isGroup()||u.isShape&&u.isShape()){var p=u.getCanvasBBox(),y=p.width,m=p.height,x=(0,h.get)(r,"textAlign","left"),_=r.x,w=r.y-m/2;x==="center"?_=_-y/2:(x==="right"||x==="end")&&(_=_-y),rn(u,_,w),d=u,v.add(u)}else{var b=(0,h.get)(r,["style","fill"]);d=v.addShape("text",(0,g.__assign)({attrs:(0,g.__assign)((0,g.__assign)({x:r.x,y:r.y,textAlign:r.textAlign,textBaseline:(0,h.get)(r,"textBaseline","middle"),text:r.content},r.style),{fill:(0,h.isNull)(b)?r.color:b})},f))}return r.rotate&&Oo(d,r.rotate),v},e.prototype.doLayout=function(r,t,i){return(0,g.__awaiter)(this,void 0,void 0,function(){var n,a=this;return(0,g.__generator)(this,function(o){switch(o.label){case 0:return this.layout?(n=(0,h.isArray)(this.layout)?this.layout:[this.layout],[4,Promise.all(n.map(function(s){var l=w0((0,h.get)(s,"type",""));if(!!l){var u=[],c=[];return(0,h.each)(i,function(f,v){u.push(f),c.push(t[f.get("elementId")])}),l(r,u,c,a.region,s.cfg)}}))]):[3,2];case 1:o.sent(),o.label=2;case 2:return[2]}})})},e.prototype.renderLabelLine=function(r,t){(0,h.each)(r,function(i){var n=(0,h.get)(i,"coordinate");if(!(!i||!n)){var a=n.getCenter(),o=n.getRadius();if(!!i.labelLine){var s=(0,h.get)(i,"labelLine",{}),l=i.id,u=s.path;if(!u){var c=ge(a.x,a.y,o,i.angle);u=[["M",c.x,c.y],["L",i.x,i.y]]}var f=t[l];f.destroyed||f.addShape("path",{capture:!1,attrs:(0,g.__assign)({path:u,stroke:i.color?i.color:(0,h.get)(i,["style","fill"],"#000"),fill:null},s.style),id:l,origin:i.mappingData,data:i.data,coordinate:i.coordinate})}}})},e.prototype.renderLabelBackground=function(r,t){(0,h.each)(r,function(i){var n=(0,h.get)(i,"coordinate"),a=(0,h.get)(i,"background");if(!(!a||!n)){var o=i.id,s=t[o];if(!s.destroyed){var l=s.getChildren()[0];if(l){var u=Yu(s,i,a.padding),c=u.rotation,f=(0,g.__rest)(u,["rotation"]),v=s.addShape("rect",{attrs:(0,g.__assign)((0,g.__assign)({},f),a.style||{}),id:o,origin:i.mappingData,data:i.data,coordinate:i.coordinate});if(v.setZIndex(-1),c){var d=l.getMatrix();v.setMatrix(d)}}}}})},e.prototype.createOffscreenGroup=function(){var r=this.container,t=r.getGroupBase(),i=new t({});return i},e.prototype.adjustLabel=function(r,t){(0,h.each)(r,function(i){if(i){var n=i.id,a=t[n];if(!a.destroyed){var o=a.findAll(function(s){return s.get("type")!=="path"});(0,h.each)(o,function(s){s&&(i.offsetX&&s.attr("x",s.attr("x")+i.offsetX),i.offsetY&&s.attr("y",s.attr("y")+i.offsetY))})}}})},e}(),O0=L0;function Uu(e){var r=0;return(0,h.each)(e,function(t){r+=t}),r/e.length}var I0=function(){function e(r){this.geometry=r}return e.prototype.getLabelItems=function(r){var t=this,i=[],n=this.getLabelCfgs(r);return(0,h.each)(r,function(a,o){var s=n[o];if(!s||(0,h.isNil)(a.x)||(0,h.isNil)(a.y)){i.push(null);return}var l=(0,h.isArray)(s.content)?s.content:[s.content];s.content=l;var u=l.length;(0,h.each)(l,function(c,f){if((0,h.isNil)(c)||c===""){i.push(null);return}var v=(0,g.__assign)((0,g.__assign)({},s),t.getLabelPoint(s,a,f));v.textAlign||(v.textAlign=t.getLabelAlign(v,f,u)),v.offset<=0&&(v.labelLine=null),i.push(v)})}),i},e.prototype.render=function(r,t){return t===void 0&&(t=!1),(0,g.__awaiter)(this,void 0,void 0,function(){var i,n,a;return(0,g.__generator)(this,function(o){switch(o.label){case 0:return i=this.getLabelItems(r),n=this.getLabelsRenderer(),a=this.getGeometryShapes(),[4,n.render(i,a,t)];case 1:return o.sent(),[2]}})})},e.prototype.clear=function(){var r=this.labelsRenderer;r&&r.clear()},e.prototype.destroy=function(){var r=this.labelsRenderer;r&&r.destroy(),this.labelsRenderer=null},e.prototype.getCoordinate=function(){return this.geometry.coordinate},e.prototype.getDefaultLabelCfg=function(r,t){var i=this.geometry,n=i.type,a=i.theme;return n==="polygon"||n==="interval"&&t==="middle"||r<0&&!["line","point","path"].includes(n)?(0,h.get)(a,"innerLabels",{}):(0,h.get)(a,"labels",{})},e.prototype.getThemedLabelCfg=function(r){var t=this.geometry,i=this.getDefaultLabelCfg(),n=t.type,a=t.theme,o;return n==="polygon"||r.offset<0&&!["line","point","path"].includes(n)?o=(0,h.deepMix)({},i,a.innerLabels,r):o=(0,h.deepMix)({},i,a.labels,r),o},e.prototype.setLabelPosition=function(r,t,i,n){},e.prototype.getLabelOffset=function(r){var t=this.getCoordinate(),i=this.getOffsetVector(r);return t.isTransposed?i[0]:i[1]},e.prototype.getLabelOffsetPoint=function(r,t,i){var n=r.offset,a=this.getCoordinate(),o=a.isTransposed,s=o?"x":"y",l=o?1:-1,u={x:0,y:0};return t>0||i===1?u[s]=n*l:u[s]=n*l*-1,u},e.prototype.getLabelPoint=function(r,t,i){var n=this.getCoordinate(),a=r.content.length;function o(m,x,_){_===void 0&&(_=!1);var w=m;return(0,h.isArray)(w)&&(r.content.length===1?_?w=Uu(w):w.length<=2?w=w[m.length-1]:w=Uu(w):w=w[x]),w}var s={content:r.content[i],x:0,y:0,start:{x:0,y:0},color:"#fff"},l=(0,h.isArray)(t.shape)?t.shape[0]:t.shape,u=l==="funnel"||l==="pyramid";if(this.geometry.type==="polygon"){var c=ty(t.x,t.y);s.x=c[0],s.y=c[1]}else this.geometry.type==="interval"&&!u?(s.x=o(t.x,i,!0),s.y=o(t.y,i)):(s.x=o(t.x,i),s.y=o(t.y,i));if(u){var f=(0,h.get)(t,"nextPoints"),v=(0,h.get)(t,"points");if(f){var d=n.convert(v[1]),p=n.convert(f[1]);s.x=(d.x+p.x)/2,s.y=(d.y+p.y)/2}else if(l==="pyramid"){var d=n.convert(v[1]),p=n.convert(v[2]);s.x=(d.x+p.x)/2,s.y=(d.y+p.y)/2}}r.position&&this.setLabelPosition(s,t,i,r.position);var y=this.getLabelOffsetPoint(r,i,a);return s.start={x:s.x,y:s.y},s.x+=y.x,s.y+=y.y,s.color=t.color,s},e.prototype.getLabelAlign=function(r,t,i){var n="center",a=this.getCoordinate();if(a.isTransposed){var o=r.offset;o<0?n="right":o===0?n="center":n="left",i>1&&t===0&&(n==="right"?n="left":n==="left"&&(n="right"))}return n},e.prototype.getLabelId=function(r){var t=this.geometry,i=t.type,n=t.getXScale(),a=t.getYScale(),o=r[rt],s=t.getElementId(r);return i==="line"||i==="area"?s+=" ".concat(o[n.field]):i==="path"&&(s+=" ".concat(o[n.field],"-").concat(o[a.field])),s},e.prototype.getLabelsRenderer=function(){var r=this.geometry,t=r.labelsContainer,i=r.labelOption,n=r.canvasRegion,a=r.animateOption,o=this.geometry.coordinate,s=this.labelsRenderer;return s||(s=new O0({container:t,layout:(0,h.get)(i,["cfg","layout"],{type:this.defaultLayout})}),this.labelsRenderer=s),s.region=n,s.animate=a?Ru("label",o):!1,s},e.prototype.getLabelCfgs=function(r){var t=this,i=this.geometry,n=i.labelOption,a=i.scales,o=i.coordinate,s=n,l=s.fields,u=s.callback,c=s.cfg,f=l.map(function(d){return a[d]}),v=[];return(0,h.each)(r,function(d,p){var y=d[rt],m=t.getLabelText(y,f),x;if(u){var _=l.map(function(A){return y[A]});if(x=u.apply(void 0,(0,g.__spreadArray)([],(0,g.__read)(_),!1)),(0,h.isNil)(x)){v.push(null);return}}var w=(0,g.__assign)((0,g.__assign)({id:t.getLabelId(d),elementId:t.geometry.getElementId(d),data:y,mappingData:d,coordinate:o},c),x);(0,h.isFunction)(w.position)&&(w.position=w.position(y,d,p));var b=t.getLabelOffset(w.offset||0),S=t.getDefaultLabelCfg(b,w.position);w=(0,h.deepMix)({},S,w),w.offset=t.getLabelOffset(w.offset||0);var C=w.content;(0,h.isFunction)(C)?w.content=C(y,d,p):(0,h.isUndefined)(C)&&(w.content=m[0]),v.push(w)}),v},e.prototype.getLabelText=function(r,t){var i=[];return(0,h.each)(t,function(n){var a=r[n.field];(0,h.isArray)(a)?a=a.map(function(o){return n.getText(o)}):a=n.getText(a),(0,h.isNil)(a)||a===""?i.push(null):i.push(a)}),i},e.prototype.getOffsetVector=function(r){r===void 0&&(r=0);var t=this.getCoordinate(),i=0;return(0,h.isNumber)(r)&&(i=r),t.isTransposed?t.applyMatrix(i,0):t.applyMatrix(0,i)},e.prototype.getGeometryShapes=function(){var r=this.geometry,t={};return(0,h.each)(r.elementsMap,function(i,n){t[n]=i.shape}),(0,h.each)(r.getOffscreenGroup().getChildren(),function(i){var n=r.getElementId(i.get("origin").mappingData);t[n]=i}),t},e}(),ea=I0;function Io(e,r,t){if(!e)return t;var i;if(e.callback&&e.callback.length>1){var n=Array(e.callback.length-1).fill("");i=e.mapping.apply(e,(0,g.__spreadArray)([r],(0,g.__read)(n),!1)).join("")}else i=e.mapping(r).join("");return i||t}var Gr={hexagon:function(e,r,t){var i=t/2*Math.sqrt(3);return[["M",e,r-t],["L",e+i,r-t/2],["L",e+i,r+t/2],["L",e,r+t],["L",e-i,r+t/2],["L",e-i,r-t/2],["Z"]]},bowtie:function(e,r,t){var i=t-1.5;return[["M",e-t,r-i],["L",e+t,r+i],["L",e+t,r-i],["L",e-t,r+i],["Z"]]},cross:function(e,r,t){return[["M",e-t,r-t],["L",e+t,r+t],["M",e+t,r-t],["L",e-t,r+t]]},tick:function(e,r,t){return[["M",e-t/2,r-t],["L",e+t/2,r-t],["M",e,r-t],["L",e,r+t],["M",e-t/2,r+t],["L",e+t/2,r+t]]},plus:function(e,r,t){return[["M",e-t,r],["L",e+t,r],["M",e,r-t],["L",e,r+t]]},hyphen:function(e,r,t){return[["M",e-t,r],["L",e+t,r]]},line:function(e,r,t){return[["M",e,r-t],["L",e,r+t]]}},P0=["line","cross","tick","plus","hyphen"];function k0(e,r){return(0,h.isFunction)(r)?r(e):(0,h.deepMix)({},e,r)}function D0(e,r){var t=e.symbol;if((0,h.isString)(t)&&P0.indexOf(t)!==-1){var i=(0,h.get)(e,"style",{}),n=(0,h.get)(i,"lineWidth",1),a=i.stroke||i.fill||r;e.style=(0,h.deepMix)({},e.style,{lineWidth:n,stroke:a,fill:null})}}function ju(e){var r=e.symbol;(0,h.isString)(r)&&Gr[r]&&(e.symbol=Gr[r])}function Po(e){return e.startsWith(E.LEFT)||e.startsWith(E.RIGHT)?"vertical":"horizontal"}function Zu(e,r,t,i,n){var a=t.getScale(t.type);if(a.isCategory){var o=a.field,s=r.getAttribute("color"),l=r.getAttribute("shape"),u=e.getTheme().defaultColor,c=r.coordinate.isPolar;return a.getTicks().map(function(f,v){var d,p=f.text,y=f.value,m=p,x=a.invert(y),_=e.filterFieldData(o,[(d={},d[o]=x,d)]).length===0;(0,h.each)(e.views,function(A){var F;A.filterFieldData(o,[(F={},F[o]=x,F)]).length||(_=!0)});var w=Io(s,x,u),b=Io(l,x,"point"),S=r.getShapeMarker(b,{color:w,isInPolar:c}),C=n;return(0,h.isFunction)(C)&&(C=C(m,v,(0,g.__assign)({name:m,value:x},(0,h.deepMix)({},i,S)))),S=(0,h.deepMix)({},i,S,Ie((0,g.__assign)({},C),["style"])),D0(S,w),C&&C.style&&(S.style=k0(S.style,C.style)),ju(S),{id:x,name:m,value:x,marker:S,unchecked:_}})}return[]}function B0(e,r,t){return t.map(function(i,n){var a=r;(0,h.isFunction)(a)&&(a=a(i.name,n,(0,h.deepMix)({},e,i)));var o=(0,h.isFunction)(i.marker)?i.marker(i.name,n,(0,h.deepMix)({},e,i)):i.marker,s=(0,h.deepMix)({},e,a,o);return ju(s),i.marker=s,i})}function Ku(e,r){var t=(0,h.get)(e,["components","legend"],{});return(0,h.deepMix)({},(0,h.get)(t,["common"],{}),(0,h.deepMix)({},(0,h.get)(t,[r],{})))}function ko(e){return e?!1:e==null||isNaN(e)}function qu(e){if((0,h.isArray)(e))return ko(e[1].y);var r=e.y;return(0,h.isArray)(r)?ko(r[0]):ko(r)}function ra(e,r,t){if(r===void 0&&(r=!1),t===void 0&&(t=!0),!e.length||e.length===1&&!t)return[];if(r){for(var i=[],n=0,a=e.length;n0&&(d[0][0]="L")),a=a.concat(d)}),a.push(["Z"])}return a}function ia(e,r,t,i,n){for(var a=fe(e,r,!r,"lineWidth"),o=e.connectNulls,s=e.isInCircle,l=e.points,u=e.showSinglePoint,c=ra(l,o,u),f=[],v=0,d=c.length;vo&&(o=l),l=i[0]}));var m=this.scales[p];try{for(var x=(0,g.__values)(t),_=x.next();!_.done;_=x.next()){var w=_.value,b=this.getDrawCfg(w),S=b.x,C=b.y,A=m.scale(w[rt][p]);this.drawGrayScaleBlurredCircle(S-u.x,C-c.y,n+a,A,y)}}catch(L){o={error:L}}finally{try{_&&!_.done&&(s=x.return)&&s.call(x)}finally{if(o)throw o.error}}var F=y.getImageData(0,0,f,v);this.clearShadowCanvasCtx(),this.colorize(F),y.putImageData(F,0,0);var P=this.getImageShape();P.attr("x",u.x),P.attr("y",c.y),P.attr("width",f),P.attr("height",v),P.attr("img",y.canvas),P.set("origin",this.getShapeInfo(t))},r.prototype.getDefaultSize=function(){var t=this.getAttribute("position"),i=this.coordinate;return Math.min(i.getWidth()/(t.scales[0].ticks.length*4),i.getHeight()/(t.scales[1].ticks.length*4))},r.prototype.clearShadowCanvasCtx=function(){var t=this.getShadowCanvasCtx();t.clearRect(0,0,t.canvas.width,t.canvas.height)},r.prototype.getShadowCanvasCtx=function(){var t=this.shadowCanvas;return t||(t=document.createElement("canvas"),this.shadowCanvas=t),t.width=this.coordinate.getWidth(),t.height=this.coordinate.getHeight(),t.getContext("2d")},r.prototype.getGrayScaleBlurredCanvas=function(){return this.grayScaleBlurredCanvas||(this.grayScaleBlurredCanvas=document.createElement("canvas")),this.grayScaleBlurredCanvas},r.prototype.drawGrayScaleBlurredCircle=function(t,i,n,a,o){var s=this.getGrayScaleBlurredCanvas();o.globalAlpha=a,o.drawImage(s,t-n,i-n)},r.prototype.colorize=function(t){for(var i=this.getAttribute("color"),n=t.data,a=this.paletteCache,o=3;or&&(t=t?r/(1+i/t):0,i=r-t),n+a>r&&(n=n?r/(1+a/n):0,a=r-n),[t||0,i||0,n||0,a||0]}function ac(e,r,t){var i=[];if(t.isRect){var n=t.isTransposed?{x:t.start.x,y:r[0].y}:{x:r[0].x,y:t.start.y},a=t.isTransposed?{x:t.end.x,y:r[2].y}:{x:r[3].x,y:t.end.y},o=(0,h.get)(e,["background","style","radius"]);if(o){var s=t.isTransposed?Math.abs(r[0].y-r[2].y):r[2].x-r[1].x,l=t.isTransposed?t.getWidth():t.getHeight(),u=(0,g.__read)(nc(o,Math.min(s,l)),4),c=u[0],f=u[1],v=u[2],d=u[3],p=t.isTransposed&&t.isReflect("y"),y=p?0:1,m=function(C){return p?-C:C};i.push(["M",n.x,a.y+m(c)]),c!==0&&i.push(["A",c,c,0,0,y,n.x+c,a.y]),i.push(["L",a.x-f,a.y]),f!==0&&i.push(["A",f,f,0,0,y,a.x,a.y+m(f)]),i.push(["L",a.x,n.y-m(v)]),v!==0&&i.push(["A",v,v,0,0,y,a.x-v,n.y]),i.push(["L",n.x+d,n.y]),d!==0&&i.push(["A",d,d,0,0,y,n.x,n.y-m(d)])}else i.push(["M",n.x,n.y]),i.push(["L",a.x,n.y]),i.push(["L",a.x,a.y]),i.push(["L",n.x,a.y]),i.push(["L",n.x,n.y]);i.push(["z"])}if(t.isPolar){var x=t.getCenter(),_=ji(e,t),w=_.startAngle,b=_.endAngle;if(t.type!=="theta"&&!t.isTransposed)i=_r(x.x,x.y,t.getRadius(),w,b);else{var S=function(F){return Math.pow(F,2)},c=Math.sqrt(S(x.x-r[0].x)+S(x.y-r[0].y)),f=Math.sqrt(S(x.x-r[2].x)+S(x.y-r[2].y));i=_r(x.x,x.y,c,t.startAngle,t.endAngle,f)}}return i}function J0(e,r,t){var i=t.getWidth(),n=t.getHeight(),a=t.type==="rect",o=[],s=(e[2].x-e[1].x)/2,l=t.isTransposed?s*n/i:s*i/n;return r==="round"?(a?(o.push(["M",e[0].x,e[0].y+l]),o.push(["L",e[1].x,e[1].y-l]),o.push(["A",s,s,0,0,1,e[2].x,e[2].y-l]),o.push(["L",e[3].x,e[3].y+l]),o.push(["A",s,s,0,0,1,e[0].x,e[0].y+l])):(o.push(["M",e[0].x,e[0].y]),o.push(["L",e[1].x,e[1].y]),o.push(["A",s,s,0,0,1,e[2].x,e[2].y]),o.push(["L",e[3].x,e[3].y]),o.push(["A",s,s,0,0,1,e[0].x,e[0].y])),o.push(["z"])):o=zo(e),o}function oc(e,r,t){var i=[];return(0,h.isNil)(r)?t?i.push(["M",e[0].x,e[0].y],["L",e[1].x,e[1].y],["L",(e[2].x+e[3].x)/2,(e[2].y+e[3].y)/2],["Z"]):i.push(["M",e[0].x,e[0].y],["L",e[1].x,e[1].y],["L",e[2].x,e[2].y],["L",e[3].x,e[3].y],["Z"]):i.push(["M",e[0].x,e[0].y],["L",e[1].x,e[1].y],["L",r[1].x,r[1].y],["L",r[0].x,r[0].y],["Z"]),i}function nn(e,r){return[r,e]}function tm(e,r,t){var i,n,a,o,s,l,u,c=(0,g.__read)((0,g.__spreadArray)([],(0,g.__read)(e),!1),4),f=c[0],v=c[1],d=c[2],p=c[3],y=(0,g.__read)(typeof t=="number"?Array(4).fill(t):t,4),m=y[0],x=y[1],_=y[2],w=y[3];r.isTransposed&&(i=(0,g.__read)(nn(v,p),2),v=i[0],p=i[1]),r.isReflect("y")&&(n=(0,g.__read)(nn(f,v),2),f=n[0],v=n[1],a=(0,g.__read)(nn(d,p),2),d=a[0],p=a[1]),r.isReflect("x")&&(o=(0,g.__read)(nn(f,p),2),f=o[0],p=o[1],s=(0,g.__read)(nn(v,d),2),v=s[0],d=s[1]);var b=[],S=function(C){return Math.abs(C)};return l=(0,g.__read)(nc([m,x,_,w],Math.min(S(p.x-f.x),S(v.y-f.y))).map(function(C){return S(C)}),4),m=l[0],x=l[1],_=l[2],w=l[3],r.isTransposed&&(u=(0,g.__read)([w,m,x,_],4),m=u[0],x=u[1],_=u[2],w=u[3]),f.yo&&(n=o)}return n}function rm(e,r){if(r){var t=(0,h.flatten)(e),i=(0,h.valuesOfKey)(t,r);return i.length}return e.length}function Vo(e){var r=e.theme,t=e.coordinate,i=e.getXScale(),n=i.values,a=e.beforeMappingData,o=n.length,s=Zi(e.coordinate),l=e.intervalPadding,u=e.dodgePadding,c=e.maxColumnWidth||r.maxColumnWidth,f=e.minColumnWidth||r.minColumnWidth,v=e.columnWidthRatio||r.columnWidthRatio,d=e.multiplePieWidthRatio||r.multiplePieWidthRatio,p=e.roseWidthRatio||r.roseWidthRatio;if(i.isLinear&&n.length>1){n.sort();var y=em(n,i);o=(i.max-i.min)/y,n.length>o&&(o=n.length)}var m=i.range,x=1/o,_=1;if(t.isPolar?t.isTransposed&&o>1?_=d:_=p:(i.isLinear&&(x*=m[1]-m[0]),_=v),!(0,h.isNil)(l)&&l>=0){var w=l/s;x=(1-(o-1)*w)/o}else x*=_;if(e.getAdjust("dodge")){var b=e.getAdjust("dodge"),S=b.dodgeBy,C=rm(a,S);if(!(0,h.isNil)(u)&&u>=0){var A=u/s;x=(x-A*(C-1))/C}else!(0,h.isNil)(l)&&l>=0&&(x*=_),x=x/C;x=x>=0?x:0}if(!(0,h.isNil)(c)&&c>=0){var F=c/s;x>F&&(x=F)}if(!(0,h.isNil)(f)&&f>=0){var P=f/s;x0&&!(0,h.get)(i,[n,"min"])&&t.change({min:0}),o<=0&&!(0,h.get)(i,[n,"max"])&&t.change({max:0}))}},r.prototype.getDrawCfg=function(t){var i=e.prototype.getDrawCfg.call(this,t);return i.background=this.background,i},r}(Cr),nm=im,am=function(e){(0,g.__extends)(r,e);function r(t){var i=e.call(this,t)||this;i.type="line";var n=t.sortable,a=n===void 0?!1:n;return i.sortable=a,i}return r}(Ro),om=am,sc=["circle","square","bowtie","diamond","hexagon","triangle","triangle-down"],sm=["cross","tick","plus","hyphen","line"];function Go(e,r,t,i,n){var a,o,s=fe(r,n,!n,"r"),l=e.parsePoints(r.points),u=l[0];if(r.isStack)u=l[1];else if(l.length>1){var c=t.addGroup();try{for(var f=(0,g.__values)(l),v=f.next();!v.done;v=f.next()){var d=v.value;c.addShape({type:"marker",attrs:(0,g.__assign)((0,g.__assign)((0,g.__assign)({},s),{symbol:Gr[i]||i}),d)})}}catch(p){a={error:p}}finally{try{v&&!v.done&&(o=f.return)&&o.call(f)}finally{if(a)throw a.error}}return c}return t.addShape({type:"marker",attrs:(0,g.__assign)((0,g.__assign)((0,g.__assign)({},s),{symbol:Gr[i]||i}),u)})}var mO=Sr("point",{defaultShapeType:"hollow-circle",getDefaultPoints:function(e){return Do(e)}});(0,h.each)(sc,function(e){Zt("point","hollow-".concat(e),{draw:function(r,t){return Go(this,r,t,e,!0)},getMarker:function(r){var t=r.color;return{symbol:Gr[e]||e,style:{r:4.5,stroke:t,fill:null}}}})});var xO=null,lm=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="point",t.shapeType="point",t.generatePoints=!0,t}return r.prototype.getDrawCfg=function(t){var i=e.prototype.getDrawCfg.call(this,t);return(0,g.__assign)((0,g.__assign)({},i),{isStack:!!this.getAdjust("stack")})},r}(Cr),um=lm;function cm(e){for(var r=e[0],t=1,i=[["M",r.x,r.y]];t2?"weight":"normal",a;if(e.isInCircle){var o={x:0,y:1};return n==="normal"?a=mm(i[0],i[1],o):(t.fill=t.stroke,a=xm(i,o)),a=this.parsePath(a),r.addShape("path",{attrs:(0,g.__assign)((0,g.__assign)({},t),{path:a})})}else{if(n==="normal")return i=this.parsePoints(i),a=Zl((i[1].x+i[0].x)/2,i[0].y,Math.abs(i[1].x-i[0].x)/2,Math.PI,Math.PI*2),r.addShape("path",{attrs:(0,g.__assign)((0,g.__assign)({},t),{path:a})});var s=Wo(i[1],i[3]),l=Wo(i[2],i[0]);return a=[["M",i[0].x,i[0].y],["L",i[1].x,i[1].y],s,["L",i[3].x,i[3].y],["L",i[2].x,i[2].y],l,["Z"]],a=this.parsePath(a),t.fill=t.stroke,r.addShape("path",{attrs:(0,g.__assign)((0,g.__assign)({},t),{path:a})})}},getMarker:function(e){return{symbol:"circle",style:{r:4.5,fill:e.color}}}});function _m(e,r){var t=Wo(e,r),i=[["M",e.x,e.y]];return i.push(t),i}Zt("edge","smooth",{draw:function(e,r){var t=fe(e,!0,!1,"lineWidth"),i=e.points,n=this.parsePath(_m(i[0],i[1]));return r.addShape("path",{attrs:(0,g.__assign)((0,g.__assign)({},t),{path:n})})},getMarker:function(e){return{symbol:"circle",style:{r:4.5,fill:e.color}}}});var na=1/3;function wm(e,r){var t=[];t.push({x:e.x,y:e.y*(1-na)+r.y*na}),t.push({x:r.x,y:e.y*(1-na)+r.y*na}),t.push(r);var i=[["M",e.x,e.y]];return(0,h.each)(t,function(n){i.push(["L",n.x,n.y])}),i}Zt("edge","vhv",{draw:function(e,r){var t=fe(e,!0,!1,"lineWidth"),i=e.points,n=this.parsePath(wm(i[0],i[1]));return r.addShape("path",{attrs:(0,g.__assign)((0,g.__assign)({},t),{path:n})})},getMarker:function(e){return{symbol:"circle",style:{r:4.5,fill:e.color}}}}),Zt("interval","funnel",{getPoints:function(e){return e.size=e.size*2,No(e)},draw:function(e,r){var t=fe(e,!1,!0),i=this.parsePath(oc(e.points,e.nextPoints,!1)),n=r.addShape("path",{attrs:(0,g.__assign)((0,g.__assign)({},t),{path:i}),name:"interval"});return n},getMarker:function(e){var r=e.color;return{symbol:"square",style:{r:4,fill:r}}}}),Zt("interval","hollow-rect",{draw:function(e,r){var t=fe(e,!0,!1),i=r,n=e==null?void 0:e.background;if(n){i=r.addGroup();var a=Ju(e),o=ac(e,this.parsePoints(e.points),this.coordinate);i.addShape("path",{attrs:(0,g.__assign)((0,g.__assign)({},a),{path:o}),zIndex:-1,name:To})}var s=this.parsePath(zo(e.points)),l=i.addShape("path",{attrs:(0,g.__assign)((0,g.__assign)({},t),{path:s}),name:"interval"});return n?i:l},getMarker:function(e){var r=e.color,t=e.isInPolar;return t?{symbol:"circle",style:{r:4.5,stroke:r,fill:null}}:{symbol:"square",style:{r:4,stroke:r,fill:null}}}});function bm(e){var r=e.x,t=e.y,i=e.y0;return(0,h.isArray)(t)?t.map(function(n,a){return{x:(0,h.isArray)(r)?r[a]:r,y:n}}):[{x:r,y:i},{x:r,y:t}]}Zt("interval","line",{getPoints:function(e){return bm(e)},draw:function(e,r){var t=fe(e,!0,!1,"lineWidth"),i=Ie((0,g.__assign)({},t),["fill"]),n=this.parsePath(zo(e.points,!1)),a=r.addShape("path",{attrs:(0,g.__assign)((0,g.__assign)({},i),{path:n}),name:"interval"});return a},getMarker:function(e){var r=e.color;return{symbol:function(t,i,n){return[["M",t,i-n],["L",t,i+n]]},style:{r:5,stroke:r}}}}),Zt("interval","pyramid",{getPoints:function(e){return e.size=e.size*2,No(e)},draw:function(e,r){var t=fe(e,!1,!0),i=this.parsePath(oc(e.points,e.nextPoints,!0)),n=r.addShape("path",{attrs:(0,g.__assign)((0,g.__assign)({},t),{path:i}),name:"interval"});return n},getMarker:function(e){var r=e.color;return{symbol:"square",style:{r:4,fill:r}}}});function Sm(e){var r,t=e.x,i=e.y,n=e.y0,a=e.size,o,s;(0,h.isArray)(i)?(r=(0,g.__read)(i,2),o=r[0],s=r[1]):(o=n,s=i);var l=t+a/2,u=t-a/2;return[{x:t,y:o},{x:t,y:s},{x:u,y:o},{x:l,y:o},{x:u,y:s},{x:l,y:s}]}function Cm(e){return[["M",e[0].x,e[0].y],["L",e[1].x,e[1].y],["M",e[2].x,e[2].y],["L",e[3].x,e[3].y],["M",e[4].x,e[4].y],["L",e[5].x,e[5].y]]}Zt("interval","tick",{getPoints:function(e){return Sm(e)},draw:function(e,r){var t=fe(e,!0,!1),i=this.parsePath(Cm(e.points)),n=r.addShape("path",{attrs:(0,g.__assign)((0,g.__assign)({},t),{path:i}),name:"interval"});return n},getMarker:function(e){var r=e.color;return{symbol:function(t,i,n){return[["M",t-n/2,i-n],["L",t+n/2,i-n],["M",t,i-n],["L",t,i+n],["M",t-n/2,i+n],["L",t+n/2,i+n]]},style:{r:5,stroke:r}}}});var Am=function(e,r,t){var i=e.x,n=e.y,a=r.x,o=r.y,s;switch(t){case"hv":s=[{x:a,y:n}];break;case"vh":s=[{x:i,y:o}];break;case"hvh":var l=(a+i)/2;s=[{x:l,y:n},{x:l,y:o}];break;case"vhv":var u=(n+o)/2;s=[{x:i,y:u},{x:a,y:u}];break;default:break}return s};function Mm(e,r){var t=[];return(0,h.each)(e,function(i,n){var a=e[n+1];if(t.push(i),a){var o=Am(i,a,r);t=t.concat(o)}}),t}function Fm(e){return e.map(function(r,t){return t===0?["M",r.x,r.y]:["L",r.x,r.y]})}function Em(e,r){var t=ra(e.points,e.connectNulls,e.showSinglePoint),i=[];return(0,h.each)(t,function(n){var a=Mm(n,r);i=i.concat(Fm(a))}),(0,g.__assign)((0,g.__assign)({},fe(e,!0,!1,"lineWidth")),{path:i})}(0,h.each)(["hv","vh","hvh","vhv"],function(e){Zt("line",e,{draw:function(r,t){var i=Em(r,e),n=t.addShape({type:"path",attrs:i,name:"line"});return n},getMarker:function(r){return tc(r,e)}})}),(0,h.each)(sm,function(e){Zt("point",e,{draw:function(r,t){return Go(this,r,t,e,!0)},getMarker:function(r){var t=r.color;return{symbol:Gr[e],style:{r:4.5,stroke:t,fill:null}}}})}),Zt("point","image",{draw:function(e,r){var t,i,n=fe(e,!1,!1,"r").r,a=this.parsePoints(e.points),o=a[0];if(e.isStack)o=a[1];else if(a.length>1){var s=r.addGroup();try{for(var l=(0,g.__values)(a),u=l.next();!u.done;u=l.next()){var c=u.value;s.addShape("image",{attrs:{x:c.x-n/2,y:c.y-n,width:n,height:n,img:e.shape[1]}})}}catch(f){t={error:f}}finally{try{u&&!u.done&&(i=l.return)&&i.call(l)}finally{if(t)throw t.error}}return s}return r.addShape("image",{attrs:{x:o.x-n/2,y:o.y-n,width:n,height:n,img:e.shape[1]}})},getMarker:function(e){var r=e.color;return{symbol:"circle",style:{r:4.5,fill:r}}}}),(0,h.each)(sc,function(e){Zt("point",e,{draw:function(r,t){return Go(this,r,t,e,!1)},getMarker:function(r){var t=r.color;return{symbol:Gr[e]||e,style:{r:4.5,fill:t}}}})});function lc(e){var r=(0,h.isArray)(e)?e:[e],t=r[0],i=r[r.length-1],n=r.length>1?r[1]:t,a=r.length>3?r[3]:i,o=r.length>2?r[2]:n;return{min:t,max:i,min1:n,max1:a,median:o}}function uc(e,r,t){var i=t/2,n;if((0,h.isArray)(r)){var a=lc(r),o=a.min,s=a.max,l=a.median,u=a.min1,c=a.max1,f=e-i,v=e+i;n=[[f,s],[v,s],[e,s],[e,c],[f,u],[f,c],[v,c],[v,u],[e,u],[e,o],[f,o],[v,o],[f,l],[v,l]]}else{r=(0,h.isNil)(r)?.5:r;var d=lc(e),o=d.min,s=d.max,l=d.median,u=d.min1,c=d.max1,p=r-i,y=r+i;n=[[o,p],[o,y],[o,r],[u,r],[u,p],[u,y],[c,y],[c,p],[c,r],[s,r],[s,p],[s,y],[l,p],[l,y]]}return n.map(function(m){return{x:m[0],y:m[1]}})}function Tm(e){return[["M",e[0].x,e[0].y],["L",e[1].x,e[1].y],["M",e[2].x,e[2].y],["L",e[3].x,e[3].y],["M",e[4].x,e[4].y],["L",e[5].x,e[5].y],["L",e[6].x,e[6].y],["L",e[7].x,e[7].y],["L",e[4].x,e[4].y],["Z"],["M",e[8].x,e[8].y],["L",e[9].x,e[9].y],["M",e[10].x,e[10].y],["L",e[11].x,e[11].y],["M",e[12].x,e[12].y],["L",e[13].x,e[13].y]]}Zt("schema","box",{getPoints:function(e){var r=e.x,t=e.y,i=e.size;return uc(r,t,i)},draw:function(e,r){var t=fe(e,!0,!1),i=this.parsePath(Tm(e.points)),n=r.addShape("path",{attrs:(0,g.__assign)((0,g.__assign)({},t),{path:i,name:"schema"})});return n},getMarker:function(e){var r=e.color;return{symbol:function(t,i,n){var a=[i-6,i-3,i,i+3,i+6],o=uc(t,a,n);return[["M",o[0].x+1,o[0].y],["L",o[1].x-1,o[1].y],["M",o[2].x,o[2].y],["L",o[3].x,o[3].y],["M",o[4].x,o[4].y],["L",o[5].x,o[5].y],["L",o[6].x,o[6].y],["L",o[7].x,o[7].y],["L",o[4].x,o[4].y],["Z"],["M",o[8].x,o[8].y],["L",o[9].x,o[9].y],["M",o[10].x+1,o[10].y],["L",o[11].x-1,o[11].y],["M",o[12].x,o[12].y],["L",o[13].x,o[13].y]]},style:{r:6,lineWidth:1,stroke:r}}}});function Lm(e){var r=(0,h.isArray)(e)?e:[e],t=r.sort(function(i,n){return n-i});return ey(t,4,t[t.length-1])}function cc(e,r,t){var i=Lm(r);return[{x:e,y:i[0]},{x:e,y:i[1]},{x:e-t/2,y:i[2]},{x:e-t/2,y:i[1]},{x:e+t/2,y:i[1]},{x:e+t/2,y:i[2]},{x:e,y:i[2]},{x:e,y:i[3]}]}function Om(e){return[["M",e[0].x,e[0].y],["L",e[1].x,e[1].y],["M",e[2].x,e[2].y],["L",e[3].x,e[3].y],["L",e[4].x,e[4].y],["L",e[5].x,e[5].y],["Z"],["M",e[6].x,e[6].y],["L",e[7].x,e[7].y]]}Zt("schema","candle",{getPoints:function(e){var r=e.x,t=e.y,i=e.size;return cc(r,t,i)},draw:function(e,r){var t=fe(e,!0,!0),i=this.parsePath(Om(e.points)),n=r.addShape("path",{attrs:(0,g.__assign)((0,g.__assign)({},t),{path:i,name:"schema"})});return n},getMarker:function(e){var r=e.color;return{symbol:function(t,i,n){var a=[i+7.5,i+3,i-3,i-7.5],o=cc(t,a,n);return[["M",o[0].x,o[0].y],["L",o[1].x,o[1].y],["M",o[2].x,o[2].y],["L",o[3].x,o[3].y],["L",o[4].x,o[4].y],["L",o[5].x,o[5].y],["Z"],["M",o[6].x,o[6].y],["L",o[7].x,o[7].y]]},style:{lineWidth:1,stroke:r,fill:r,r:6}}}});function Im(e,r){var t=Math.abs(e[0].x-e[2].x),i=Math.abs(e[0].y-e[2].y),n=Math.min(t,i);r&&(n=(0,h.clamp)(r,0,Math.min(t,i))),n=n/2;var a=(e[0].x+e[2].x)/2,o=(e[0].y+e[2].y)/2;return{x:a-n,y:o-n,width:n*2,height:n*2}}Zt("polygon","square",{draw:function(e,r){if(!(0,h.isEmpty)(e.points)){var t=fe(e,!0,!0),i=this.parsePoints(e.points);return r.addShape("rect",{attrs:(0,g.__assign)((0,g.__assign)({},t),Im(i,e.size)),name:"polygon"})}},getMarker:function(e){var r=e.color;return{symbol:"square",style:{r:4,fill:r}}}}),Zt("violin","smooth",{draw:function(e,r){var t=fe(e,!0,!0),i=this.parsePath(Qu(e.points));return r.addShape("path",{attrs:(0,g.__assign)((0,g.__assign)({},t),{path:i})})},getMarker:function(e){var r=e.color;return{symbol:"circle",style:{stroke:null,r:4,fill:r}}}}),Zt("violin","hollow",{draw:function(e,r){var t=fe(e,!0,!1),i=this.parsePath($u(e.points));return r.addShape("path",{attrs:(0,g.__assign)((0,g.__assign)({},t),{path:i})})},getMarker:function(e){var r=e.color;return{symbol:"circle",style:{r:4,fill:null,stroke:r}}}}),Zt("violin","hollow-smooth",{draw:function(e,r){var t=fe(e,!0,!1),i=this.parsePath(Qu(e.points));return r.addShape("path",{attrs:(0,g.__assign)((0,g.__assign)({},t),{path:i})})},getMarker:function(e){var r=e.color;return{symbol:"circle",style:{r:4,fill:null,stroke:r}}}});var Pm=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getLabelValueDir=function(t){var i="y",n=t.points;return n[0][i]<=n[2][i]?1:-1},r.prototype.getLabelOffsetPoint=function(t,i,n,a){var o,s=e.prototype.getLabelOffsetPoint.call(this,t,i,n),l=this.getCoordinate(),u=l.isTransposed,c=u?"x":"y",f=this.getLabelValueDir(t.mappingData);return s=(0,g.__assign)((0,g.__assign)({},s),(o={},o[c]=s[c]*f,o)),l.isReflect("x")&&(s=(0,g.__assign)((0,g.__assign)({},s),{x:s.x*-1})),l.isReflect("y")&&(s=(0,g.__assign)((0,g.__assign)({},s),{y:s.y*-1})),s},r.prototype.getThemedLabelCfg=function(t){var i=this.geometry,n=this.getDefaultLabelCfg(),a=i.theme;return(0,h.deepMix)({},n,a.labels,t.position==="middle"?{offset:0}:{},t)},r.prototype.setLabelPosition=function(t,i,n,a){var o=this.getCoordinate(),s=o.isTransposed,l=i.points,u=o.convert(l[0]),c=o.convert(l[2]),f=this.getLabelValueDir(i),v,d,p,y,m=(0,h.isArray)(i.shape)?i.shape[0]:i.shape;if(m==="funnel"||m==="pyramid"){var x=(0,h.get)(i,"nextPoints"),_=(0,h.get)(i,"points");if(x){var w=o.convert(_[0]),b=o.convert(_[1]),S=o.convert(x[0]),C=o.convert(x[1]);s?(v=Math.min(S.y,w.y),p=Math.max(S.y,w.y),d=(b.x+C.x)/2,y=(w.x+S.x)/2):(v=Math.min((b.y+C.y)/2,(w.y+S.y)/2),p=Math.max((b.y+C.y)/2,(w.y+S.y)/2),d=C.x,y=w.x)}else v=Math.min(c.y,u.y),p=Math.max(c.y,u.y),d=c.x,y=u.x}else v=Math.min(c.y,u.y),p=Math.max(c.y,u.y),d=c.x,y=u.x;switch(a){case"right":t.x=d,t.y=(v+p)/2,t.textAlign=(0,h.get)(t,"textAlign",f>0?"left":"right");break;case"left":t.x=y,t.y=(v+p)/2,t.textAlign=(0,h.get)(t,"textAlign",f>0?"left":"right");break;case"bottom":s&&(t.x=(d+y)/2),t.y=p,t.textAlign=(0,h.get)(t,"textAlign","center"),t.textBaseline=(0,h.get)(t,"textBaseline",f>0?"bottom":"top");break;case"middle":s&&(t.x=(d+y)/2),t.y=(v+p)/2,t.textAlign=(0,h.get)(t,"textAlign","center"),t.textBaseline=(0,h.get)(t,"textBaseline","middle");break;case"top":s&&(t.x=(d+y)/2),t.y=v,t.textAlign=(0,h.get)(t,"textAlign","center"),t.textBaseline=(0,h.get)(t,"textBaseline",f>0?"bottom":"top");break;default:break}},r}(ea),km=Pm,aa=Math.PI/2,Dm=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getLabelOffset=function(t){var i=this.getCoordinate(),n=0;if((0,h.isNumber)(t))n=t;else if((0,h.isString)(t)&&t.indexOf("%")!==-1){var a=i.getRadius();i.innerRadius>0&&(a=a*(1-i.innerRadius)),n=parseFloat(t)*.01*a}return n},r.prototype.getLabelItems=function(t){var i=e.prototype.getLabelItems.call(this,t),n=this.geometry.getYScale();return(0,h.map)(i,function(a){if(a&&n){var o=n.scale((0,h.get)(a.data,n.field));return(0,g.__assign)((0,g.__assign)({},a),{percent:o})}return a})},r.prototype.getLabelAlign=function(t){var i=this.getCoordinate(),n;if(t.labelEmit)n=t.angle<=Math.PI/2&&t.angle>=-Math.PI/2?"left":"right";else if(!i.isTransposed)n="center";else{var a=i.getCenter(),o=t.offset;Math.abs(t.x-a.x)<1?n="center":t.angle>Math.PI||t.angle<=0?n=o>0?"left":"right":n=o>0?"right":"left"}return n},r.prototype.getLabelPoint=function(t,i,n){var a=1,o,s=t.content[n];this.isToMiddle(i)?o=this.getMiddlePoint(i.points):(t.content.length===1&&n===0?n=1:n===0&&(a=-1),o=this.getArcPoint(i,n));var l=t.offset*a,u=this.getPointAngle(o),c=t.labelEmit,f=this.getCirclePoint(u,l,o,c);return f.r===0?f.content="":(f.content=s,f.angle=u,f.color=i.color),f.rotate=t.autoRotate?this.getLabelRotate(u,l,c):t.rotate,f.start={x:o.x,y:o.y},f},r.prototype.getArcPoint=function(t,i){return i===void 0&&(i=0),!(0,h.isArray)(t.x)&&!(0,h.isArray)(t.y)?{x:t.x,y:t.y}:{x:(0,h.isArray)(t.x)?t.x[i]:t.x,y:(0,h.isArray)(t.y)?t.y[i]:t.y}},r.prototype.getPointAngle=function(t){return ui(this.getCoordinate(),t)},r.prototype.getCirclePoint=function(t,i,n,a){var o=this.getCoordinate(),s=o.getCenter(),l=Wn(o,n);if(l===0)return(0,g.__assign)((0,g.__assign)({},s),{r:l});var u=t;if(o.isTransposed&&l>i&&!a){var c=Math.asin(i/(2*l));u=t+c*2}else l=l+i;return{x:s.x+l*Math.cos(u),y:s.y+l*Math.sin(u),r:l}},r.prototype.getLabelRotate=function(t,i,n){var a=t+aa;return n&&(a-=aa),a&&(a>aa?a=a-Math.PI:a<-aa&&(a=a+Math.PI)),a},r.prototype.getMiddlePoint=function(t){var i=this.getCoordinate(),n=t.length,a={x:0,y:0};return(0,h.each)(t,function(o){a.x+=o.x,a.y+=o.y}),a.x/=n,a.y/=n,a=i.convert(a),a},r.prototype.isToMiddle=function(t){return t.x.length>2},r}(ea),hc=Dm,Bm=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.defaultLayout="distribute",t}return r.prototype.getDefaultLabelCfg=function(t,i){var n=e.prototype.getDefaultLabelCfg.call(this,t,i);return(0,h.deepMix)({},n,(0,h.get)(this.geometry.theme,"pieLabels",{}))},r.prototype.getLabelOffset=function(t){return e.prototype.getLabelOffset.call(this,t)||0},r.prototype.getLabelRotate=function(t,i,n){var a;return i<0&&(a=t,a>Math.PI/2&&(a=a-Math.PI),a<-Math.PI/2&&(a=a+Math.PI)),a},r.prototype.getLabelAlign=function(t){var i=this.getCoordinate(),n=i.getCenter(),a;return t.angle<=Math.PI/2&&t.x>=n.x?a="left":a="right",t.offset<=0&&(a==="right"?a="left":a="right"),a},r.prototype.getArcPoint=function(t){return t},r.prototype.getPointAngle=function(t){var i=this.getCoordinate(),n={x:(0,h.isArray)(t.x)?t.x[0]:t.x,y:t.y[0]},a={x:(0,h.isArray)(t.x)?t.x[1]:t.x,y:t.y[1]},o,s=ui(i,n);if(t.points&&t.points[0].y===t.points[1].y)o=s;else{var l=ui(i,a);s>=l&&(l=l+Math.PI*2),o=s+(l-s)/2}return o},r.prototype.getCirclePoint=function(t,i){var n=this.getCoordinate(),a=n.getCenter(),o=n.getRadius()+i;return(0,g.__assign)((0,g.__assign)({},ge(a.x,a.y,o,t)),{angle:t,r:o})},r}(hc),Rm=Bm,fc=4;function Nm(e,r,t,i,n,a){var o,s,l=!0,u=i.start,c=i.end,f=Math.min(u.y,c.y),v=Math.abs(u.y-c.y),d,p=0,y=Number.MIN_VALUE,m=r.map(function(A){return A.y>p&&(p=A.y),A.yv&&(v=p-f);l;)for(m.forEach(function(A){var F=(Math.min.apply(y,A.targets)+Math.max.apply(y,A.targets))/2;A.pos=Math.min(Math.max(y,F-A.size/2),v-A.size)}),l=!1,d=m.length;d--;)if(d>0){var x=m[d-1],_=m[d];x.pos+x.size>_.pos&&(x.size+=_.size,x.targets=x.targets.concat(_.targets),x.pos+x.size>v&&(x.pos=v-x.size),m.splice(d,1),l=!0)}d=0,m.forEach(function(A){var F=f+t/2;A.targets.forEach(function(){r[d].y=A.pos+F,F+=t,d++})});var w={};try{for(var b=(0,g.__values)(e),S=b.next();!S.done;S=b.next()){var C=S.value;w[C.get("id")]=C}}catch(A){o={error:A}}finally{try{S&&!S.done&&(s=b.return)&&s.call(b)}finally{if(o)throw o.error}}r.forEach(function(A){var F=A.r*A.r,P=Math.pow(Math.abs(A.y-n.y),2);if(F0){var l=14,u=o+n,c=u*2+l*2,f={start:a.start,end:a.end},v=[[],[]];e.forEach(function(d){!d||(d.textAlign==="right"?v[0].push(d):v[1].push(d))}),v.forEach(function(d,p){var y=c/l;d.length>y&&(d.sort(function(m,x){return x["..percent"]-m["..percent"]}),d.splice(y,d.length-y)),d.sort(function(m,x){return m.y-x.y}),Nm(r,d,l,f,s,p)})}(0,h.each)(e,function(d){if(d&&d.labelLine){var p=d.offset,y=d.angle,m=ge(s.x,s.y,o,y),x=ge(s.x,s.y,o+p/2,y),_=d.x+(0,h.get)(d,"offsetX",0),w=d.y+(0,h.get)(d,"offsetY",0),b={x:_-Math.cos(y)*fc,y:w-Math.sin(y)*fc};(0,h.isObject)(d.labelLine)||(d.labelLine={}),d.labelLine.path=["M ".concat(m.x),"".concat(m.y," Q").concat(x.x),"".concat(x.y," ").concat(b.x),b.y].join(",")}})}}function vc(e,r,t){var i=e.filter(function(p){return!p.invisible});i.sort(function(p,y){return p.y-y.y});var n=!0,a=t.minY,o=t.maxY,s=Math.abs(a-o),l,u=0,c=Number.MIN_VALUE,f=i.map(function(p){return p.y>u&&(u=p.y),p.ys&&(s=u-a);n;)for(f.forEach(function(p){var y=(Math.min.apply(c,p.targets)+Math.max.apply(c,p.targets))/2;p.pos=Math.min(Math.max(c,y-p.size/2),s-p.size),p.pos=Math.max(0,p.pos)}),n=!1,l=f.length;l--;)if(l>0){var v=f[l-1],d=f[l];v.pos+v.size>d.pos&&(v.size+=d.size,v.targets=v.targets.concat(d.targets),v.pos+v.size>s&&(v.pos=s-v.size),f.splice(l,1),n=!0)}l=0,f.forEach(function(p){var y=a+r/2;p.targets.forEach(function(){i[l].y=p.pos+y,y+=r,l++})})}var dc=4;function Vm(e,r){var t=r.getCenter(),i=r.getRadius();if(e&&e.labelLine){var n=e.angle,a=e.offset,o=ge(t.x,t.y,i,n),s=e.x+(0,h.get)(e,"offsetX",0)*(Math.cos(n)>0?1:-1),l=e.y+(0,h.get)(e,"offsetY",0)*(Math.sin(n)>0?1:-1),u={x:s-Math.cos(n)*dc,y:l-Math.sin(n)*dc},c=e.labelLine.smooth,f=[],v=u.x-t.x,d=u.y-t.y,p=Math.atan(d/v);if(v<0&&(p+=Math.PI),c===!1){(0,h.isObject)(e.labelLine)||(e.labelLine={});var y=0;(n<0&&n>-Math.PI/2||n>Math.PI*1.5)&&u.y>o.y&&(y=1),n>=0&&no.y&&(y=1),n>=Math.PI/2&&nu.y&&(y=1),(n<-Math.PI/2||n>=Math.PI&&nu.y&&(y=1);var m=a/2>4?4:Math.max(a/2-1,0),x=ge(t.x,t.y,i+m,n),_=ge(t.x,t.y,i+a/2,p),w=0;f.push("M ".concat(o.x," ").concat(o.y)),f.push("L ".concat(x.x," ").concat(x.y)),f.push("A ".concat(t.x," ").concat(t.y," 0 ").concat(w," ").concat(y," ").concat(_.x," ").concat(_.y)),f.push("L ".concat(u.x," ").concat(u.y))}else{var x=ge(t.x,t.y,i+(a/2>4?4:Math.max(a/2-1,0)),n),b=o.xMath.pow(Math.E,-16)&&f.push.apply(f,["C",u.x+b*4,u.y,2*x.x-o.x,2*x.y-o.y,o.x,o.y]),f.push("L ".concat(o.x," ").concat(o.y))}e.labelLine.path=f.join(" ")}}function Gm(e,r,t,i){var n,a,o=(0,h.filter)(e,function(F){return!(0,h.isNil)(F)}),s=r[0]&&r[0].get("coordinate");if(!!s){var l=s.getCenter(),u=s.getRadius(),c={};try{for(var f=(0,g.__values)(r),v=f.next();!v.done;v=f.next()){var d=v.value;c[d.get("id")]=d}}catch(F){n={error:F}}finally{try{v&&!v.done&&(a=f.return)&&a.call(f)}finally{if(n)throw n.error}}var p=(0,h.get)(o[0],"labelHeight",14),y=(0,h.get)(o[0],"offset",0);if(!(y<=0)){var m="left",x="right",_=(0,h.groupBy)(o,function(F){return F.xL&&(F.sort(function(z,Q){return Q.percent-z.percent}),(0,h.each)(F,function(z,Q){Q+1>L&&(c[z.id].set("visible",!1),z.invisible=!0)})),vc(F,p,A)}),(0,h.each)(_,function(F,P){(0,h.each)(F,function(L){var z=P===x,Q=c[L.id],xt=Q.getChildByIndex(0);if(xt){var _t=u+y,Rt=L.y-l.y,H=Math.pow(_t,2),at=Math.pow(Rt,2),pt=H-at>0?H-at:0,ut=Math.sqrt(pt),gt=Math.abs(Math.cos(L.angle)*_t);z?L.x=l.x+Math.max(ut,gt):L.x=l.x-Math.max(ut,gt)}xt&&(xt.attr("y",L.y),xt.attr("x",L.x)),Vm(L,s)})})}}}var Yo=4,Wm=4,gc=4;function Hm(e,r,t){var i=r.getCenter(),n=r.getRadius(),a={x:e.x-(t?gc:-gc),y:e.y},o=ge(i.x,i.y,n+Yo,e.angle),s={x:a.x,y:a.y},l={x:o.x,y:o.y},u=ge(i.x,i.y,n,e.angle),c="";if(a.y!==o.y){var f=t?4:-4;s.y=a.y,e.angle<0&&e.angle>=-Math.PI/2&&(s.x=Math.max(o.x,a.x-f),a.y0&&e.angleo.y?l.y=s.y:(l.y=o.y,l.x=Math.max(l.x,s.x-f))),e.angle>Math.PI/2&&(s.x=Math.min(o.x,a.x-f),a.y>o.y?l.y=s.y:(l.y=o.y,l.x=Math.min(l.x,s.x-f))),e.angle<-Math.PI/2&&(s.x=Math.min(o.x,a.x-f),a.ys.x||F.x===s.x&&F.y>s.y,z=(0,h.isNil)(F.offsetX)?Wm:F.offsetX,Q=ge(s.x,s.y,l+Yo,F.angle),xt=p+z;F.x=s.x+(L?1:-1)*(l+xt),F.y=Q.y}}});var y=o.start,m=o.end,x="left",_="right",w=(0,h.groupBy)(e,function(F){return F.xb&&(b=Math.min(P,Math.abs(y.y-m.y)))});var S={minX:y.x,maxX:m.x,minY:s.y-b/2,maxY:s.y+b/2};(0,h.each)(w,function(F,P){var L=b/d;F.length>L&&(F.sort(function(z,Q){return Q.percent-z.percent}),(0,h.each)(F,function(z,Q){Q>L&&(u[z.id].set("visible",!1),z.invisible=!0)})),vc(F,d,S)});var C=S.minY,A=S.maxY;(0,h.each)(w,function(F,P){var L=P===_;(0,h.each)(F,function(z){var Q=(0,h.get)(u,z&&[z.id]);if(!!Q){if(z.yA){Q.set("visible",!1);return}var xt=Q.getChildByIndex(0),_t=xt.getCanvasBBox(),Rt={x:L?_t.x:_t.maxX,y:_t.y+_t.height/2};rn(xt,z.x-Rt.x,z.y-Rt.y),z.labelLine&&Hm(z,o,L)}})})}}function Xm(e,r,t,i){(0,h.each)(r,function(n){var a=i.minX,o=i.minY,s=i.maxX,l=i.maxY,u=n.getCanvasBBox(),c=u.minX,f=u.minY,v=u.maxX,d=u.maxY,p=u.x,y=u.y,m=u.width,x=u.height,_=p,w=y;(cs?_=s-m:v>s&&(_=_-(v-s)),f>l?w=l-x:d>l&&(w=w-(d-l)),(_!==p||w!==y)&&rn(n,_-p,w-y)})}function Um(e,r,t,i){(0,h.each)(r,function(n,a){var o=n.getCanvasBBox(),s=t[a].getBBox();(o.minXs.maxX||o.maxY>s.maxY)&&n.remove(!0)})}var jm=100,pc=function(){function e(r){r===void 0&&(r={}),this.bitmap={};var t=r.xGap,i=t===void 0?1:t,n=r.yGap,a=n===void 0?8:n;this.xGap=i,this.yGap=a}return e.prototype.hasGap=function(r){for(var t=!0,i=this.bitmap,n=Math.round(r.minX),a=Math.round(r.maxX),o=Math.round(r.minY),s=Math.round(r.maxY),l=n;l<=a;l+=1){if(!i[l]){i[l]={};continue}if(l===n||l===a){for(var u=o;u<=s;u++)if(i[l][u]){t=!1;break}}else if(i[l][o]||i[l][s]){t=!1;break}}return t},e.prototype.fillGap=function(r){for(var t=this.bitmap,i=Math.round(r.minX),n=Math.round(r.maxX),a=Math.round(r.minY),o=Math.round(r.maxY),s=i;s<=n;s+=1)t[s]||(t[s]={});for(var s=i;s<=n;s+=this.xGap){for(var l=a;l<=o;l+=this.yGap)t[s][l]=!0;t[s][o]=!0}if(this.yGap!==1)for(var s=a;s<=o;s+=1)t[i][s]=!0,t[n][s]=!0;if(this.xGap!==1)for(var s=i;s<=n;s+=1)t[s][a]=!0,t[s][o]=!0},e.prototype.destroy=function(){this.bitmap={}},e}();function Zm(e,r,t){t===void 0&&(t=jm);var i=-1,n=e.attr(),a=n.x,o=n.y,s=e.getCanvasBBox(),l=Math.sqrt(s.width*s.width+s.height*s.height),u,c=-i,f=0,v=0,d=function(x){var _=x*.1;return[_*Math.cos(_),_*Math.sin(_)]};if(r.hasGap(s))return r.fillGap(s),!0;for(var p=!1,y=0,m={};Math.min(Math.abs(f),Math.abs(v))4)return[];var r=function(n,a){return[a.x-n.x,a.y-n.y]},t=r(e[0],e[1]),i=r(e[1],e[2]);return[t,i]}function oa(e,r,t){r===void 0&&(r=0),t===void 0&&(t={x:0,y:0});var i=e.x,n=e.y;return{x:(i-t.x)*Math.cos(-r)+(n-t.y)*Math.sin(-r)+t.x,y:(t.x-i)*Math.sin(-r)+(n-t.y)*Math.cos(-r)+t.y}}function mc(e){var r=[{x:e.x,y:e.y},{x:e.x+e.width,y:e.y},{x:e.x+e.width,y:e.y+e.height},{x:e.x,y:e.y+e.height}],t=e.rotation;return t?[oa(r[0],t,r[0]),oa(r[1],t,r[0]),oa(r[2],t,r[0]),oa(r[3],t,r[0])]:r}function xc(e,r){if(e.length>4)return{min:0,max:0};var t=[];return e.forEach(function(i){t.push(Qm([i.x,i.y],r))}),{min:Math.min.apply(Math,(0,g.__spreadArray)([],(0,g.__read)(t),!1)),max:Math.max.apply(Math,(0,g.__spreadArray)([],(0,g.__read)(t),!1))}}function Jm(e,r){return e.max>r.min&&e.mine.x+e.width+t||r.x+r.widthe.y+e.height+t||r.y+r.height4)return[];var b=function(A,F){return[F.x-A.x,F.y-A.y]},S=b(w[0],w[1]),C=b(w[1],w[2]);return[S,C]}function f(w,b,S){b===void 0&&(b=0),S===void 0&&(S={x:0,y:0});var C=w.x,A=w.y;return{x:(C-S.x)*Math.cos(-b)+(A-S.y)*Math.sin(-b)+S.x,y:(S.x-C)*Math.sin(-b)+(A-S.y)*Math.cos(-b)+S.y}}function v(w){var b=[{x:w.x,y:w.y},{x:w.x+w.width,y:w.y},{x:w.x+w.width,y:w.y+w.height},{x:w.x,y:w.y+w.height}],S=w.rotation;return S?[f(b[0],S,b[0]),f(b[1],S,b[0]),f(b[2],S,b[0]),f(b[3],S,b[0])]:b}function d(w,b){if(w.length>4)return{min:0,max:0};var S=[];return w.forEach(function(C){S.push(u([C.x,C.y],b))}),{min:Math.min.apply(null,S),max:Math.max.apply(null,S)}}function p(w,b){return w.max>b.min&&w.minw.x+w.width+S||b.x+b.widthw.y+w.height+S||b.y+b.height=a.height:o.width>=a.width}function hx(e,r,t){var i=!!e.getAdjust("stack");return i||r.every(function(n,a){var o=t[a];return cx(e,n,o)})}function fx(e,r,t){var i=e.coordinate,n=Ee.fromObject(t.getBBox()),a=Ar(r);i.isTransposed?a.attr({x:n.minX+n.width/2,textAlign:"center"}):a.attr({y:n.minY+n.height/2,textBaseline:"middle"})}function vx(e,r,t){var i;if(t.length!==0){var n=(i=t[0])===null||i===void 0?void 0:i.get("element"),a=n==null?void 0:n.geometry;if(!(!a||a.type!=="interval")){var o=hx(a,r,t);o&&t.forEach(function(s,l){var u=r[l];fx(a,u,s)})}}}function dx(e){var r=500,t=[],i=Math.max(Math.floor(e.length/r),1);return(0,h.each)(e,function(n,a){a%i==0?t.push(n):n.set("visible",!1)}),t}function gx(e,r,t){var i;if(t.length!==0){var n=(i=t[0])===null||i===void 0?void 0:i.get("element"),a=n==null?void 0:n.geometry;if(!(!a||a.type!=="interval")){var o=dx(r),s=(0,g.__read)(a.getXYFields(),1),l=s[0],u=[],c=[],f=(0,h.groupBy)(o,function(m){return m.get("data")[l]}),v=(0,h.uniq)((0,h.map)(o,function(m){return m.get("data")[l]})),d;o.forEach(function(m){m.set("visible",!0)});var p=function(m){m&&(m.length&&c.push(m.pop()),c.push.apply(c,(0,g.__spreadArray)([],(0,g.__read)(m),!1)))};for((0,h.size)(v)>0&&(d=v.shift(),p(f[d])),(0,h.size)(v)>0&&(d=v.pop(),p(f[d])),(0,h.each)(v.reverse(),function(m){p(f[m])});c.length>0;){var y=c.shift();y.get("visible")&&(T0(y,u)?y.set("visible",!1):u.push(y))}}}}function px(e,r){var t=e.getXYFields()[1],i=[],n=r.sort(function(a,o){return a.get("data")[t]-a.get("data")[t]});return n.length>0&&i.push(n.shift()),n.length>0&&i.push(n.pop()),i.push.apply(i,(0,g.__spreadArray)([],(0,g.__read)(n),!1)),i}function Sc(e,r,t){return e.some(function(i){return t(i,r)})}function yx(e,r,t){t===void 0&&(t=0);var i=Math.max(0,Math.min(e.x+e.width+t,r.x+r.width+t)-Math.max(e.x-t,r.x-t)),n=Math.max(0,Math.min(e.y+e.height+t,r.y+r.height+t)-Math.max(e.y-t,r.y-t));return i*n}function Cc(e,r){return Sc(e,r,function(t,i){var n=Ar(t),a=Ar(i);return yx(n.getCanvasBBox(),a.getCanvasBBox(),2)>0})}function mx(e,r,t,i,n){var a,o;if(t.length!==0){var s=(a=t[0])===null||a===void 0?void 0:a.get("element"),l=s==null?void 0:s.geometry;if(!(!l||l.type!=="point")){var u=(0,g.__read)(l.getXYFields(),2),c=u[0],f=u[1],v=(0,h.groupBy)(r,function(y){return y.get("data")[c]}),d=[],p=n&&n.offset||((o=e[0])===null||o===void 0?void 0:o.offset)||12;(0,h.map)((0,h.keys)(v).reverse(),function(y){for(var m=px(l,v[y]);m.length;){var x=m.shift(),_=Ar(x);if(Sc(d,x,function(S,C){return S.get("data")[c]===C.get("data")[c]&&S.get("data")[f]===C.get("data")[f]})){_.set("visible",!1);continue}var w=Cc(d,x),b=!1;if(w&&(_.attr("y",_.attr("y")+2*p),b=Cc(d,x)),b){_.set("visible",!1);continue}d.push(x)}})}}}function xx(e,r){var t=e.getXYFields()[1],i=[],n=r.sort(function(a,o){return a.get("data")[t]-a.get("data")[t]});return n.length>0&&i.push(n.shift()),n.length>0&&i.push(n.pop()),i.push.apply(i,(0,g.__spreadArray)([],(0,g.__read)(n),!1)),i}function Ac(e,r,t){return e.some(function(i){return t(i,r)})}function _x(e,r,t){t===void 0&&(t=0);var i=Math.max(0,Math.min(e.x+e.width+t,r.x+r.width+t)-Math.max(e.x-t,r.x-t)),n=Math.max(0,Math.min(e.y+e.height+t,r.y+r.height+t)-Math.max(e.y-t,r.y-t));return i*n}function Mc(e,r){return Ac(e,r,function(t,i){var n=Ar(t),a=Ar(i);return _x(n.getCanvasBBox(),a.getCanvasBBox(),2)>0})}function wx(e,r,t,i,n){var a,o;if(t.length!==0){var s=(a=t[0])===null||a===void 0?void 0:a.get("element"),l=s==null?void 0:s.geometry;if(!(!l||["path","line","area"].indexOf(l.type)<0)){var u=(0,g.__read)(l.getXYFields(),2),c=u[0],f=u[1],v=(0,h.groupBy)(r,function(y){return y.get("data")[c]}),d=[],p=n&&n.offset||((o=e[0])===null||o===void 0?void 0:o.offset)||12;(0,h.map)((0,h.keys)(v).reverse(),function(y){for(var m=xx(l,v[y]);m.length;){var x=m.shift(),_=Ar(x);if(Ac(d,x,function(S,C){return S.get("data")[c]===C.get("data")[c]&&S.get("data")[f]===C.get("data")[f]})){_.set("visible",!1);continue}var w=Mc(d,x),b=!1;if(w&&(_.attr("y",_.attr("y")+2*p),b=Mc(d,x)),b){_.set("visible",!1);continue}d.push(x)}})}}}var jo;function bx(){return jo||(jo=document.createElement("canvas").getContext("2d")),jo}var sa=(0,h.memoize)(function(e,r){r===void 0&&(r={});var t=r.fontSize,i=r.fontFamily,n=r.fontWeight,a=r.fontStyle,o=r.fontVariant,s=bx();return s.font=[a,o,n,"".concat(t,"px"),i].join(" "),s.measureText((0,h.isString)(e)?e:"").width},function(e,r){return r===void 0&&(r={}),(0,g.__spreadArray)([e],(0,g.__read)((0,h.values)(r)),!1).join("")}),Sx=function(e,r,t){var i=16,n=sa("...",t),a;(0,h.isString)(e)?a=e:a=(0,h.toString)(e);var o=r,s=[],l,u;if(sa(e,t)<=r)return e;for(;l=a.substr(0,i),u=sa(l,t),!(u+n>o&&u>o);)if(s.push(l),o-=u,a=a.substr(i),!a)return s.join("");for(;l=a.substr(0,1),u=sa(l,t),!(u+n>o);)if(s.push(l),o-=u,a=a.substr(1),!a)return s.join("");return"".concat(s.join(""),"...")};function Cx(e,r,t,i,n){if(!(r.length<=0)){var a=(n==null?void 0:n.direction)||["top","right","bottom","left"],o=(n==null?void 0:n.action)||"translate",s=(n==null?void 0:n.margin)||0,l=r[0].get("coordinate");if(!!l){var u=ay(l,s),c=u.minX,f=u.minY,v=u.maxX,d=u.maxY;(0,h.each)(r,function(p){var y=p.getCanvasBBox(),m=y.minX,x=y.minY,_=y.maxX,w=y.maxY,b=y.x,S=y.y,C=y.width,A=y.height,F=b,P=S;if(a.indexOf("left")>=0&&(m=0&&(x=0&&(m>v?F=v-C:_>v&&(F=F-(_-v))),a.indexOf("bottom")>=0&&(x>d?P=d-A:w>d&&(P=P-(w-d))),F!==b||P!==S){var L=F-b;if(o==="translate")rn(p,L,P-S);else if(o==="ellipsis"){var z=p.findAll(function(Q){return Q.get("type")==="text"});z.forEach(function(Q){var xt=(0,h.pick)(Q.attr(),["fontSize","fontFamily","fontWeight","fontStyle","fontVariant"]),_t=Q.getCanvasBBox(),Rt=Sx(Q.attr("text"),_t.width-Math.abs(L),xt);Q.attr("text",Rt)})}else p.hide()}})}}}function Ax(e,r,t){var i={fillOpacity:(0,h.isNil)(e.attr("fillOpacity"))?1:e.attr("fillOpacity"),strokeOpacity:(0,h.isNil)(e.attr("strokeOpacity"))?1:e.attr("strokeOpacity"),opacity:(0,h.isNil)(e.attr("opacity"))?1:e.attr("opacity")};e.attr({fillOpacity:0,strokeOpacity:0,opacity:0}),e.animate(i,r)}function Mx(e,r,t){var i={fillOpacity:0,strokeOpacity:0,opacity:0},n=r.easing,a=r.duration,o=r.delay;e.animate(i,a,n,function(){e.remove(!0)},o)}function Fx(e,r,t){var i,n=(0,g.__read)(r,2),a=n[0],o=n[1];return e.applyToMatrix([a,o,1]),t==="x"?(e.setMatrix(ie.vs(e.getMatrix(),[["t",-a,-o],["s",.01,1],["t",a,o]])),i=ie.vs(e.getMatrix(),[["t",-a,-o],["s",100,1],["t",a,o]])):t==="y"?(e.setMatrix(ie.vs(e.getMatrix(),[["t",-a,-o],["s",1,.01],["t",a,o]])),i=ie.vs(e.getMatrix(),[["t",-a,-o],["s",1,100],["t",a,o]])):t==="xy"&&(e.setMatrix(ie.vs(e.getMatrix(),[["t",-a,-o],["s",.01,.01],["t",a,o]])),i=ie.vs(e.getMatrix(),[["t",-a,-o],["s",100,100],["t",a,o]])),i}function Zo(e,r,t,i,n){var a=t.start,o=t.end,s=t.getWidth(),l=t.getHeight(),u,c;n==="y"?(u=a.x+s/2,c=i.ya.x?i.x:a.x,c=a.y+l/2):n==="xy"&&(t.isPolar?(u=t.getCenter().x,c=t.getCenter().y):(u=(a.x+o.x)/2,c=(a.y+o.y)/2));var f=Fx(e,[u,c],n);e.animate({matrix:f},r)}function Ex(e,r,t){var i=t.coordinate,n=t.minYPoint;Zo(e,r,i,n,"x")}function Tx(e,r,t){var i=t.coordinate,n=t.minYPoint;Zo(e,r,i,n,"y")}function Lx(e,r,t){var i=t.coordinate,n=t.minYPoint;Zo(e,r,i,n,"xy")}function Ox(e,r,t){var i=e.getTotalLength();e.attr("lineDash",[i]),e.animate(function(n){return{lineDashOffset:(1-n)*i}},r)}function Ix(e,r,t){var i=t.toAttrs,n=i.x,a=i.y;delete i.x,delete i.y,e.attr(i),e.animate({x:n,y:a},r)}function Px(e,r,t){var i=e.getBBox(),n=e.get("origin").mappingData,a=n.points,o=a[0].y-a[1].y>0?i.maxX:i.minX,s=(i.minY+i.maxY)/2;e.applyToMatrix([o,s,1]);var l=ie.vs(e.getMatrix(),[["t",-o,-s],["s",.01,1],["t",o,s]]);e.setMatrix(l),e.animate({matrix:ie.vs(e.getMatrix(),[["t",-o,-s],["s",100,1],["t",o,s]])},r)}function kx(e,r,t){var i=e.getBBox(),n=e.get("origin").mappingData,a=(i.minX+i.maxX)/2,o=n.points,s=o[0].y-o[1].y<=0?i.maxY:i.minY;e.applyToMatrix([a,s,1]);var l=ie.vs(e.getMatrix(),[["t",-a,-s],["s",1,.01],["t",a,s]]);e.setMatrix(l),e.animate({matrix:ie.vs(e.getMatrix(),[["t",-a,-s],["s",1,100],["t",a,s]])},r)}function Fc(e,r){var t,i=(0,rc.getArcParams)(e,r),n=i.startAngle,a=i.endAngle;return!(0,h.isNumberEqual)(n,-Math.PI*.5)&&n<-Math.PI*.5&&(n+=Math.PI*2),!(0,h.isNumberEqual)(a,-Math.PI*.5)&&a<-Math.PI*.5&&(a+=Math.PI*2),r[5]===0&&(t=(0,g.__read)([a,n],2),n=t[0],a=t[1]),(0,h.isNumberEqual)(n,Math.PI*1.5)&&(n=Math.PI*-.5),(0,h.isNumberEqual)(a,Math.PI*-.5)&&!(0,h.isNumberEqual)(n,a)&&(a=Math.PI*1.5),{startAngle:n,endAngle:a}}function Ec(e){var r;return e[0]==="M"||e[0]==="L"?r=[e[1],e[2]]:(e[0]==="a"||e[0]==="A"||e[0]==="C")&&(r=[e[e.length-2],e[e.length-1]]),r}function Tc(e){var r,t,i,n=e.filter(function(w){return w[0]==="A"||w[0]==="a"});if(n.length===0)return{startAngle:0,endAngle:0,radius:0,innerRadius:0};var a=n[0],o=n.length>1?n[1]:n[0],s=e.indexOf(a),l=e.indexOf(o),u=Ec(e[s-1]),c=Ec(e[l-1]),f=Fc(u,a),v=f.startAngle,d=f.endAngle,p=Fc(c,o),y=p.startAngle,m=p.endAngle;(0,h.isNumberEqual)(v,y)&&(0,h.isNumberEqual)(d,m)?(t=v,i=d):(t=Math.min(v,y),i=Math.max(d,m));var x=a[1],_=n[n.length-1][1];return x<_?(r=(0,g.__read)([_,x],2),x=r[0],_=r[1]):x===_&&(_=0),{startAngle:t,endAngle:i,radius:x,innerRadius:_}}function Dx(e,r,t){var i=t.toAttrs,n=t.coordinate,a=i.path||[],o=a.map(function(_){return _[0]});if(!(a.length<1)){var s=Tc(a),l=s.startAngle,u=s.endAngle,c=s.radius,f=s.innerRadius,v=Tc(e.attr("path")),d=v.startAngle,p=v.endAngle,y=n.getCenter(),m=l-d,x=u-p;if(m===0&&x===0){e.attr("path",a);return}e.animate(function(_){var w=d+_*m,b=p+_*x;return(0,g.__assign)((0,g.__assign)({},i),{path:(0,h.isEqual)(o,["M","A","A","Z"])?Zl(y.x,y.y,c,w,b):_r(y.x,y.y,c,w,b,f)})},(0,g.__assign)((0,g.__assign)({},r),{callback:function(){e.attr("path",a)}}))}}function Bx(e,r,t){var i=xo(t.coordinate,20),n=i.type,a=i.startState,o=i.endState,s=e.setClip({type:n,attrs:a});t.toAttrs&&e.attr(t.toAttrs),s.animate(o,(0,g.__assign)((0,g.__assign)({},r),{callback:function(){e&&!e.get("destroyed")&&e.set("clipShape",null),s.remove(!0)}}))}function Ko(e,r,t){if(e.isGroup())(0,h.each)(e.getChildren(),function(s){Ko(s,r,t)});else{var i=e.getBBox(),n=(i.minX+i.maxX)/2,a=(i.minY+i.maxY)/2;if(e.applyToMatrix([n,a,1]),t==="zoomIn"){var o=ie.vs(e.getMatrix(),[["t",-n,-a],["s",.01,.01],["t",n,a]]);e.setMatrix(o),e.animate({matrix:ie.vs(e.getMatrix(),[["t",-n,-a],["s",100,100],["t",n,a]])},r)}else e.animate({matrix:ie.vs(e.getMatrix(),[["t",-n,-a],["s",.01,.01],["t",n,a]])},(0,g.__assign)((0,g.__assign)({},r),{callback:function(){e.remove(!0)}}))}}function Rx(e,r,t){Ko(e,r,"zoomIn")}function Nx(e,r,t){Ko(e,r,"zoomOut")}function ur(e){return[E.TOP,E.BOTTOM].includes(e)?{offsetX:0,offsetY:e===E.TOP?-8:8,style:{textAlign:"center",textBaseline:e===E.TOP?"bottom":"top"}}:[E.LEFT,E.RIGHT].includes(e)?{offsetX:e===E.LEFT?-8:8,offsetY:0,style:{textAlign:e===E.LEFT?"right":"left",textBaseline:"middle",rotate:Math.PI/2}}:{}}function qo(e,r,t){return{x:e.x+r*Math.cos(t),y:e.y+r*Math.sin(t)}}var zx=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){return(0,h.deepMix)({},e.prototype.getDefaultCfg.call(this),{type:"circle",showTitle:!0,title:e.prototype.getDefaultTitleCfg.call(this)})},r.prototype.render=function(){e.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},r.prototype.getRegion=function(t,i){var n=1/2,a={x:.5,y:.5},o=Math.PI*2/t,s=-1*Math.PI/2+o*i,l=n/(1+1/Math.sin(o/2)),u=qo(a,n-l,s),c=Math.PI*5/4,f=Math.PI*1/4;return{start:qo(u,l,c),end:qo(u,l,f)}},r.prototype.afterEachView=function(t,i){this.processAxis(t,i)},r.prototype.beforeEachView=function(t,i){},r.prototype.generateFacets=function(t){var i=this,n=this.cfg,a=n.fields,o=n.type,s=(0,g.__read)(a,1),l=s[0];if(!l)throw new Error("No `fields` specified!");var u=this.getFieldValues(t,l),c=u.length,f=[];return u.forEach(function(v,d){var p=[{field:l,value:v,values:u}],y=(0,h.filter)(t,i.getFacetDataFilter(p)),m={type:o,data:y,region:i.getRegion(c,d),columnValue:v,columnField:l,columnIndex:d,columnValuesLength:c,rowValue:null,rowField:null,rowIndex:0,rowValuesLength:1};f.push(m)}),f},r.prototype.getXAxisOption=function(t,i,n,a){return n},r.prototype.getYAxisOption=function(t,i,n,a){return n},r.prototype.renderTitle=function(){var t=this;(0,h.each)(this.facets,function(i){var n=i.columnValue,a=i.view,o=(0,h.get)(t.cfg.title,"formatter"),s=(0,h.deepMix)({position:["50%","0%"],content:o?o(n):n},ur(E.TOP),t.cfg.title);a.annotation().text(s)})},r}(ci),Vx=zx,Gx=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){return(0,h.deepMix)({},e.prototype.getDefaultCfg.call(this),{type:"list",cols:null,showTitle:!0,title:e.prototype.getDefaultTitleCfg.call(this)})},r.prototype.render=function(){e.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},r.prototype.afterEachView=function(t,i){this.processAxis(t,i)},r.prototype.beforeEachView=function(t,i){},r.prototype.generateFacets=function(t){var i=this,n=this.cfg.fields,a=this.cfg.cols,o=(0,g.__read)(n,1),s=o[0];if(!s)throw new Error("No `fields` specified!");var l=this.getFieldValues(t,s),u=l.length;a=a||u;var c=this.getPageCount(u,a),f=[];return l.forEach(function(v,d){var p=i.getRowCol(d,a),y=p.row,m=p.col,x=[{field:s,value:v,values:l}],_=(0,h.filter)(t,i.getFacetDataFilter(x)),w={type:i.cfg.type,data:_,region:i.getRegion(c,a,m,y),columnValue:v,rowValue:v,columnField:s,rowField:null,columnIndex:m,rowIndex:y,columnValuesLength:a,rowValuesLength:c,total:u};f.push(w)}),f},r.prototype.getXAxisOption=function(t,i,n,a){return a.rowIndex!==a.rowValuesLength-1&&a.columnValuesLength*a.rowIndex+a.columnIndex+1+a.columnValuesLength<=a.total?(0,g.__assign)((0,g.__assign)({},n),{label:null,title:null}):n},r.prototype.getYAxisOption=function(t,i,n,a){return a.columnIndex!==0?(0,g.__assign)((0,g.__assign)({},n),{title:null,label:null}):n},r.prototype.renderTitle=function(){var t=this;(0,h.each)(this.facets,function(i){var n=i.columnValue,a=i.view,o=(0,h.get)(t.cfg.title,"formatter"),s=(0,h.deepMix)({position:["50%","0%"],content:o?o(n):n},ur(E.TOP),t.cfg.title);a.annotation().text(s)})},r.prototype.getPageCount=function(t,i){return Math.floor((t+i-1)/i)},r.prototype.getRowCol=function(t,i){var n=Math.floor(t/i),a=t%i;return{row:n,col:a}},r}(ci),Wx=Gx,Hx=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){return(0,h.deepMix)({},e.prototype.getDefaultCfg.call(this),{type:"matrix",showTitle:!1,columnTitle:(0,g.__assign)({},e.prototype.getDefaultTitleCfg.call(this)),rowTitle:(0,g.__assign)({},e.prototype.getDefaultTitleCfg.call(this))})},r.prototype.render=function(){e.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},r.prototype.afterEachView=function(t,i){this.processAxis(t,i)},r.prototype.beforeEachView=function(t,i){},r.prototype.generateFacets=function(t){for(var i=this.cfg,n=i.fields,a=i.type,o=n.length,s=o,l=[],u=0;u=0;u--){var c=this.getFacetsByLevel(t,u);try{for(var f=(i=void 0,(0,g.__values)(c)),v=f.next();!v.done;v=f.next()){var d=v.value;this.isLeaf(d)||(d.originColIndex=d.columnIndex,d.columnIndex=this.getRegionIndex(d.children),d.columnValuesLength=o.length)}}catch(p){i={error:p}}finally{try{v&&!v.done&&(n=f.return)&&n.call(f)}finally{if(i)throw i.error}}}},r.prototype.getFacetsByLevel=function(t,i){var n=[];return t.forEach(function(a){a.rowIndex===i&&n.push(a)}),n},r.prototype.getRegionIndex=function(t){var i=t[0],n=t[t.length-1];return(n.columnIndex-i.columnIndex)/2+i.columnIndex},r.prototype.isLeaf=function(t){return!t.children||!t.children.length},r.prototype.getRows=function(){return this.cfg.fields.length+1},r.prototype.getChildFacets=function(t,i,n){var a=this,o=this.cfg.fields,s=o.length;if(!(s=d){var m=n.parsePosition([p[l],p[s.field]]);m&&v.push(m)}if(p[l]===f)return!1}),v},r.prototype.parsePercentPosition=function(t){var i=parseFloat(t[0])/100,n=parseFloat(t[1])/100,a=this.view.getCoordinate(),o=a.start,s=a.end,l={x:Math.min(o.x,s.x),y:Math.min(o.y,s.y)},u=a.getWidth()*i+l.x,c=a.getHeight()*n+l.y;return{x:u,y:c}},r.prototype.getCoordinateBBox=function(){var t=this.view.getCoordinate(),i=t.start,n=t.end,a=t.getWidth(),o=t.getHeight(),s={x:Math.min(i.x,n.x),y:Math.min(i.y,n.y)};return{x:s.x,y:s.y,minX:s.x,minY:s.y,maxX:s.x+a,maxY:s.y+o,width:a,height:o}},r.prototype.getAnnotationCfg=function(t,i,n){var a=this,o=this.view.getCoordinate(),s=this.view.getCanvas(),l={};if((0,h.isNil)(i))return null;var u=i.start,c=i.end,f=i.position,v=this.parsePosition(u),d=this.parsePosition(c),p=this.parsePosition(f);if(["arc","image","line","region","regionFilter"].includes(t)&&(!v||!d))return null;if(["text","dataMarker","html"].includes(t)&&!p)return null;if(t==="arc"){var y=i,m=y.start,x=y.end,_=(0,g.__rest)(y,["start","end"]),w=ui(o,v),b=ui(o,d);w>b&&(b=Math.PI*2+b),l=(0,g.__assign)((0,g.__assign)({},_),{center:o.getCenter(),radius:Wn(o,v),startAngle:w,endAngle:b})}else if(t==="image"){var S=i,C=S.start,A=S.end,_=(0,g.__rest)(S,["start","end"]);l=(0,g.__assign)((0,g.__assign)({},_),{start:v,end:d,src:i.src})}else if(t==="line"){var F=i,P=F.start,L=F.end,_=(0,g.__rest)(F,["start","end"]);l=(0,g.__assign)((0,g.__assign)({},_),{start:v,end:d,text:(0,h.get)(i,"text",null)})}else if(t==="region"){var z=i,Q=z.start,xt=z.end,_=(0,g.__rest)(z,["start","end"]);l=(0,g.__assign)((0,g.__assign)({},_),{start:v,end:d})}else if(t==="text"){var _t=this.view.getData(),Rt=i,H=Rt.position,at=Rt.content,_=(0,g.__rest)(Rt,["position","content"]),pt=at;(0,h.isFunction)(at)&&(pt=at(_t)),l=(0,g.__assign)((0,g.__assign)((0,g.__assign)({},p),_),{content:pt})}else if(t==="dataMarker"){var ut=i,gt=ut.position,At=ut.point,Gt=ut.line,Wt=ut.text,Dt=ut.autoAdjust,Ht=ut.direction,_=(0,g.__rest)(ut,["position","point","line","text","autoAdjust","direction"]);l=(0,g.__assign)((0,g.__assign)((0,g.__assign)({},_),p),{coordinateBBox:this.getCoordinateBBox(),point:At,line:Gt,text:Wt,autoAdjust:Dt,direction:Ht})}else if(t==="dataRegion"){var Jt=i,pe=Jt.start,ye=Jt.end,ar=Jt.region,Wt=Jt.text,ri=Jt.lineLength,_=(0,g.__rest)(Jt,["start","end","region","text","lineLength"]);l=(0,g.__assign)((0,g.__assign)({},_),{points:this.getRegionPoints(pe,ye),region:ar,text:Wt,lineLength:ri})}else if(t==="regionFilter"){var mr=i,Li=mr.start,Oi=mr.end,hd=mr.apply,ML=mr.color,_=(0,g.__rest)(mr,["start","end","apply","color"]),FL=this.view.geometries,fd=[],ul=function(or){!or||(or.isGroup()?or.getChildren().forEach(function(Fn){return ul(Fn)}):fd.push(or))};(0,h.each)(FL,function(or){hd?(0,h.contains)(hd,or.type)&&(0,h.each)(or.elements,function(Fn){ul(Fn.shape)}):(0,h.each)(or.elements,function(Fn){ul(Fn.shape)})}),l=(0,g.__assign)((0,g.__assign)({},_),{color:ML,shapes:fd,start:v,end:d})}else if(t==="shape"){var vd=i,EL=vd.render,cl=(0,g.__rest)(vd,["render"]),TL=function(OL){if((0,h.isFunction)(i.render))return EL(OL,a.view,{parsePosition:a.parsePosition.bind(a)})};l=(0,g.__assign)((0,g.__assign)({},cl),{render:TL})}else if(t==="html"){var hl=i,fl=hl.html,oI=hl.position,cl=(0,g.__rest)(hl,["html","position"]),LL=function(or){return(0,h.isFunction)(fl)?fl(or,a.view):fl};l=(0,g.__assign)((0,g.__assign)((0,g.__assign)({},cl),p),{parent:s.get("el").parentNode,html:LL})}var kr=(0,h.deepMix)({},n,(0,g.__assign)((0,g.__assign)({},l),{top:i.top,style:i.style,offsetX:i.offsetX,offsetY:i.offsetY}));return t!=="html"&&(kr.container=this.getComponentContainer(kr)),kr.animate=this.view.getOptions().animate&&kr.animate&&(0,h.get)(i,"animate",kr.animate),kr.animateOption=(0,h.deepMix)({},gi,kr.animateOption,i.animateOption),kr},r.prototype.isTop=function(t){return(0,h.get)(t,"top",!0)},r.prototype.getComponentContainer=function(t){return this.isTop(t)?this.foregroundContainer:this.backgroundContainer},r.prototype.getAnnotationTheme=function(t){return(0,h.get)(this.view.getTheme(),["components","annotation",t],{})},r.prototype.updateOrCreate=function(t){var i=this.cache.get(this.getCacheKey(t));if(i){var n=t.type,a=this.getAnnotationTheme(n),o=this.getAnnotationCfg(n,t,a);o&&Ie(o,["container"]),i.component.update((0,g.__assign)((0,g.__assign)({},o||{}),{visible:!!o})),(0,h.includes)(ua,t.type)&&i.component.render()}else i=this.createAnnotation(t),i&&(i.component.init(),(0,h.includes)(ua,t.type)&&i.component.render());return i},r.prototype.syncCache=function(t){var i=this,n=new Map(this.cache);return t.forEach(function(a,o){n.set(o,a)}),n.forEach(function(a,o){(0,h.find)(i.option,function(s){return o===i.getCacheKey(s)})||(a.component.destroy(),n.delete(o))}),n},r.prototype.getCacheKey=function(t){return t},r}(di),Jx=Qx;function Oc(e,r){var t=(0,h.deepMix)({},(0,h.get)(e,["components","axis","common"]),(0,h.get)(e,["components","axis",r]));return(0,h.get)(t,["grid"],{})}function ca(e,r,t,i){var n=[],a=r.getTicks();return e.isPolar&&a.push({value:1,text:"",tickValue:""}),a.reduce(function(o,s,l){var u=s.value;if(i)n.push({points:[e.convert(t==="y"?{x:0,y:u}:{x:u,y:0}),e.convert(t==="y"?{x:1,y:u}:{x:u,y:1})]});else if(l){var c=o.value,f=(c+u)/2;n.push({points:[e.convert(t==="y"?{x:0,y:f}:{x:f,y:0}),e.convert(t==="y"?{x:1,y:f}:{x:f,y:1})]})}return s},a[0]),n}function $o(e,r,t,i,n){var a=r.values.length,o=[],s=t.getTicks();return s.reduce(function(l,u){var c=l?l.value:u.value,f=u.value,v=(c+f)/2;return n==="x"?o.push({points:[e.convert({x:i?f:v,y:0}),e.convert({x:i?f:v,y:1})]}):o.push({points:(0,h.map)(Array(a+1),function(d,p){return e.convert({x:p/a,y:i?f:v})})}),u},s[0]),o}function Ic(e,r){var t=(0,h.get)(r,"grid");if(t===null)return!1;var i=(0,h.get)(e,"grid");return!(t===void 0&&i===null)}var Fr=["container"],Pc=(0,g.__assign)((0,g.__assign)({},gi),{appear:null}),t_=function(e){(0,g.__extends)(r,e);function r(t){var i=e.call(this,t)||this;return i.cache=new Map,i.gridContainer=i.view.getLayer(J.BG).addGroup(),i.gridForeContainer=i.view.getLayer(J.FORE).addGroup(),i.axisContainer=i.view.getLayer(J.BG).addGroup(),i.axisForeContainer=i.view.getLayer(J.FORE).addGroup(),i}return Object.defineProperty(r.prototype,"name",{get:function(){return"axis"},enumerable:!1,configurable:!0}),r.prototype.init=function(){},r.prototype.render=function(){this.update()},r.prototype.layout=function(){var t=this,i=this.view.getCoordinate();(0,h.each)(this.getComponents(),function(n){var a=n.component,o=n.direction,s=n.type,l=n.extra,u=l.dim,c=l.scale,f=l.alignTick,v;if(s===N.AXIS)i.isPolar?u==="x"?v=i.isTransposed?Hn(i,o):_o(i):u==="y"&&(v=i.isTransposed?_o(i):Hn(i,o)):v=Hn(i,o);else if(s===N.GRID)if(i.isPolar){var d=void 0;i.isTransposed?d=u==="x"?$o(i,t.view.getYScales()[0],c,f,u):ca(i,c,u,f):d=u==="x"?ca(i,c,u,f):$o(i,t.view.getXScale(),c,f,u),v={items:d,center:t.view.getCoordinate().getCenter()}}else v={items:ca(i,c,u,f)};a.update(v)})},r.prototype.update=function(){this.option=this.view.getOptions().axes;var t=new Map;this.updateXAxes(t),this.updateYAxes(t);var i=new Map;this.cache.forEach(function(n,a){t.has(a)?i.set(a,n):n.component.destroy()}),this.cache=i},r.prototype.clear=function(){e.prototype.clear.call(this),this.cache.clear(),this.gridContainer.clear(),this.gridForeContainer.clear(),this.axisContainer.clear(),this.axisForeContainer.clear()},r.prototype.destroy=function(){e.prototype.destroy.call(this),this.gridContainer.remove(!0),this.gridForeContainer.remove(!0),this.axisContainer.remove(!0),this.axisForeContainer.remove(!0)},r.prototype.getComponents=function(){var t=[];return this.cache.forEach(function(i){t.push(i)}),t},r.prototype.updateXAxes=function(t){var i=this.view.getXScale();if(!(!i||i.isIdentity)){var n=Xn(this.option,i.field);if(n!==!1){var a=eu(n,E.BOTTOM),o=J.BG,s="x",l=this.view.getCoordinate(),u=this.getId("axis",i.field),c=this.getId("grid",i.field);if(l.isRect){var f=this.cache.get(u);if(f){var v=this.getLineAxisCfg(i,n,a);Ie(v,Fr),f.component.update(v),t.set(u,f)}else f=this.createLineAxis(i,n,o,a,s),this.cache.set(u,f),t.set(u,f);var d=this.cache.get(c);if(d){var v=this.getLineGridCfg(i,n,a,s);Ie(v,Fr),d.component.update(v),t.set(c,d)}else d=this.createLineGrid(i,n,o,a,s),d&&(this.cache.set(c,d),t.set(c,d))}else if(l.isPolar){var f=this.cache.get(u);if(f){var v=l.isTransposed?this.getLineAxisCfg(i,n,E.RADIUS):this.getCircleAxisCfg(i,n,a);Ie(v,Fr),f.component.update(v),t.set(u,f)}else{if(l.isTransposed){if((0,h.isUndefined)(n))return;f=this.createLineAxis(i,n,o,E.RADIUS,s)}else f=this.createCircleAxis(i,n,o,a,s);this.cache.set(u,f),t.set(u,f)}var d=this.cache.get(c);if(d){var v=l.isTransposed?this.getCircleGridCfg(i,n,E.RADIUS,s):this.getLineGridCfg(i,n,E.CIRCLE,s);Ie(v,Fr),d.component.update(v),t.set(c,d)}else{if(l.isTransposed){if((0,h.isUndefined)(n))return;d=this.createCircleGrid(i,n,o,E.RADIUS,s)}else d=this.createLineGrid(i,n,o,E.CIRCLE,s);d&&(this.cache.set(c,d),t.set(c,d))}}}}},r.prototype.updateYAxes=function(t){var i=this,n=this.view.getYScales();(0,h.each)(n,function(a,o){if(!(!a||a.isIdentity)){var s=a.field,l=Xn(i.option,s);if(l!==!1){var u=J.BG,c="y",f=i.getId("axis",s),v=i.getId("grid",s),d=i.view.getCoordinate();if(d.isRect){var p=eu(l,o===0?E.LEFT:E.RIGHT),y=i.cache.get(f);if(y){var m=i.getLineAxisCfg(a,l,p);Ie(m,Fr),y.component.update(m),t.set(f,y)}else y=i.createLineAxis(a,l,u,p,c),i.cache.set(f,y),t.set(f,y);var x=i.cache.get(v);if(x){var m=i.getLineGridCfg(a,l,p,c);Ie(m,Fr),x.component.update(m),t.set(v,x)}else x=i.createLineGrid(a,l,u,p,c),x&&(i.cache.set(v,x),t.set(v,x))}else if(d.isPolar){var y=i.cache.get(f);if(y){var m=d.isTransposed?i.getCircleAxisCfg(a,l,E.CIRCLE):i.getLineAxisCfg(a,l,E.RADIUS);Ie(m,Fr),y.component.update(m),t.set(f,y)}else{if(d.isTransposed){if((0,h.isUndefined)(l))return;y=i.createCircleAxis(a,l,u,E.CIRCLE,c)}else y=i.createLineAxis(a,l,u,E.RADIUS,c);i.cache.set(f,y),t.set(f,y)}var x=i.cache.get(v);if(x){var m=d.isTransposed?i.getLineGridCfg(a,l,E.CIRCLE,c):i.getCircleGridCfg(a,l,E.RADIUS,c);Ie(m,Fr),x.component.update(m),t.set(v,x)}else{if(d.isTransposed){if((0,h.isUndefined)(l))return;x=i.createLineGrid(a,l,u,E.CIRCLE,c)}else x=i.createCircleGrid(a,l,u,E.RADIUS,c);x&&(i.cache.set(v,x),t.set(v,x))}}}}})},r.prototype.createLineAxis=function(t,i,n,a,o){var s={component:new Zp(this.getLineAxisCfg(t,i,a)),layer:n,direction:a===E.RADIUS?E.NONE:a,type:N.AXIS,extra:{dim:o,scale:t}};return s.component.set("field",t.field),s.component.init(),s},r.prototype.createLineGrid=function(t,i,n,a,o){var s=this.getLineGridCfg(t,i,a,o);if(s){var l={component:new qp(s),layer:n,direction:E.NONE,type:N.GRID,extra:{dim:o,scale:t,alignTick:(0,h.get)(s,"alignTick",!0)}};return l.component.init(),l}},r.prototype.createCircleAxis=function(t,i,n,a,o){var s={component:new Kp(this.getCircleAxisCfg(t,i,a)),layer:n,direction:a,type:N.AXIS,extra:{dim:o,scale:t}};return s.component.set("field",t.field),s.component.init(),s},r.prototype.createCircleGrid=function(t,i,n,a,o){var s=this.getCircleGridCfg(t,i,a,o);if(s){var l={component:new $p(s),layer:n,direction:E.NONE,type:N.GRID,extra:{dim:o,scale:t,alignTick:(0,h.get)(s,"alignTick",!0)}};return l.component.init(),l}},r.prototype.getLineAxisCfg=function(t,i,n){var a=(0,h.get)(i,["top"])?this.axisForeContainer:this.axisContainer,o=this.view.getCoordinate(),s=Hn(o,n),l=ru(t,i),u=Yn(this.view.getTheme(),n),c=(0,h.get)(i,["title"])?(0,h.deepMix)({title:{style:{text:l}}},{title:tu(this.view.getTheme(),n,i.title)},i):i,f=(0,h.deepMix)((0,g.__assign)((0,g.__assign)({container:a},s),{ticks:t.getTicks().map(function(w){return{id:"".concat(w.tickValue),name:w.text,value:w.value}}),verticalFactor:o.isPolar?Jl(s,o.getCenter())*-1:Jl(s,o.getCenter()),theme:u}),u,c),v=this.getAnimateCfg(f),d=v.animate,p=v.animateOption;f.animateOption=p,f.animate=d;var y=Ql(s),m=(0,h.get)(f,"verticalLimitLength",y?1/3:1/2);if(m<=1){var x=this.view.getCanvas().get("width"),_=this.view.getCanvas().get("height");f.verticalLimitLength=m*(y?x:_)}return f},r.prototype.getLineGridCfg=function(t,i,n,a){if(!!Ic(Yn(this.view.getTheme(),n),i)){var o=Oc(this.view.getTheme(),n),s=(0,h.deepMix)({container:(0,h.get)(i,["top"])?this.gridForeContainer:this.gridContainer},o,(0,h.get)(i,"grid"),this.getAnimateCfg(i));return s.items=ca(this.view.getCoordinate(),t,a,(0,h.get)(s,"alignTick",!0)),s}},r.prototype.getCircleAxisCfg=function(t,i,n){var a=(0,h.get)(i,["top"])?this.axisForeContainer:this.axisContainer,o=this.view.getCoordinate(),s=t.getTicks().map(function(y){return{id:"".concat(y.tickValue),name:y.text,value:y.value}});!t.isCategory&&Math.abs(o.endAngle-o.startAngle)===Math.PI*2&&s.length&&(s[s.length-1].name="");var l=ru(t,i),u=Yn(this.view.getTheme(),E.CIRCLE),c=(0,h.get)(i,["title"])?(0,h.deepMix)({title:{style:{text:l}}},{title:tu(this.view.getTheme(),n,i.title)},i):i,f=(0,h.deepMix)((0,g.__assign)((0,g.__assign)({container:a},_o(this.view.getCoordinate())),{ticks:s,verticalFactor:1,theme:u}),u,c),v=this.getAnimateCfg(f),d=v.animate,p=v.animateOption;return f.animate=d,f.animateOption=p,f},r.prototype.getCircleGridCfg=function(t,i,n,a){if(!!Ic(Yn(this.view.getTheme(),n),i)){var o=Oc(this.view.getTheme(),E.RADIUS),s=(0,h.deepMix)({container:(0,h.get)(i,["top"])?this.gridForeContainer:this.gridContainer,center:this.view.getCoordinate().getCenter()},o,(0,h.get)(i,"grid"),this.getAnimateCfg(i)),l=(0,h.get)(s,"alignTick",!0),u=a==="x"?this.view.getYScales()[0]:this.view.getXScale();return s.items=$o(this.view.getCoordinate(),u,t,l,a),s}},r.prototype.getId=function(t,i){var n=this.view.getCoordinate();return"".concat(t,"-").concat(i,"-").concat(n.type)},r.prototype.getAnimateCfg=function(t){return{animate:this.view.getOptions().animate&&(0,h.get)(t,"animate"),animateOption:t&&t.animateOption?(0,h.deepMix)({},Pc,t.animateOption):Pc}},r}(di),e_=t_;function Er(e,r,t){return t===E.TOP?[e.minX+e.width/2-r.width/2,e.minY]:t===E.BOTTOM?[e.minX+e.width/2-r.width/2,e.maxY-r.height]:t===E.LEFT?[e.minX,e.minY+e.height/2-r.height/2]:t===E.RIGHT?[e.maxX-r.width,e.minY+e.height/2-r.height/2]:t===E.TOP_LEFT||t===E.LEFT_TOP?[e.tl.x,e.tl.y]:t===E.TOP_RIGHT||t===E.RIGHT_TOP?[e.tr.x-r.width,e.tr.y]:t===E.BOTTOM_LEFT||t===E.LEFT_BOTTOM?[e.bl.x,e.bl.y-r.height]:t===E.BOTTOM_RIGHT||t===E.RIGHT_BOTTOM?[e.br.x-r.width,e.br.y-r.height]:[0,0]}function r_(e,r){if(r.isTransposed)switch(e){case DIRECTION.BOTTOM:return DIRECTION.LEFT;case DIRECTION.LEFT:return DIRECTION.BOTTOM;case DIRECTION.RIGHT:return DIRECTION.TOP;case DIRECTION.TOP:return DIRECTION.RIGHT}return e}function kc(e){return e===DIRECTION.LEFT?DIRECTION.RIGHT:e===DIRECTION.RIGHT?DIRECTION.LEFT:e}function Dc(e){return e===DIRECTION.TOP?DIRECTION.BOTTOM:e===DIRECTION.BOTTOM?DIRECTION.TOP:e}function i_(e,r){var t=r.matrix[0],i=r.matrix[4],n=e;return t<0&&(n=kc(n)),i<0&&(n=Dc(n)),n}function n_(e,r){var t=e;return r.isReflect("x")&&(t=kc(t)),r.isReflect("y")&&(t=Dc(t)),t}function MO(e,r){var t=e;return t=r_(t,r),t=i_(t,r),t=n_(t,r),t}function Bc(e,r){return(0,h.isBoolean)(e)?e===!1?!1:{}:(0,h.get)(e,[r],e)}function ha(e){return(0,h.get)(e,"position",E.BOTTOM)}var a_=function(e){(0,g.__extends)(r,e);function r(t){var i=e.call(this,t)||this;return i.container=i.view.getLayer(J.FORE).addGroup(),i}return Object.defineProperty(r.prototype,"name",{get:function(){return"legend"},enumerable:!1,configurable:!0}),r.prototype.init=function(){},r.prototype.render=function(){this.update()},r.prototype.layout=function(){var t=this;this.layoutBBox=this.view.viewBBox,(0,h.each)(this.components,function(i){var n=i.component,a=i.direction,o=Po(a),s=n.get("maxWidthRatio"),l=n.get("maxHeightRatio"),u=t.getCategoryLegendSizeCfg(o,s,l),c=n.get("maxWidth"),f=n.get("maxHeight");n.update({maxWidth:Math.min(u.maxWidth,c||0),maxHeight:Math.min(u.maxHeight,f||0)});var v=n.get("padding"),d=n.getLayoutBBox(),p=new Ee(d.x,d.y,d.width,d.height).expand(v),y=(0,g.__read)(Er(t.view.viewBBox,p,a),2),m=y[0],x=y[1],_=(0,g.__read)(Er(t.layoutBBox,p,a),2),w=_[0],b=_[1],S=0,C=0;a.startsWith("top")||a.startsWith("bottom")?(S=m,C=b):(S=w,C=x),n.setLocation({x:S+v[3],y:C+v[0]}),t.layoutBBox=t.layoutBBox.cut(p,a)})},r.prototype.update=function(){var t=this;this.option=this.view.getOptions().legends;var i={},n=function(v,d,p){var y=t.getId(p.field),m=t.getComponentById(y);if(m){var x=void 0,_=Bc(t.option,p.field);_!==!1&&((0,h.get)(_,"custom")?x=t.getCategoryCfg(v,d,p,_,!0):p.isLinear?x=t.getContinuousCfg(v,d,p,_):p.isCategory&&(x=t.getCategoryCfg(v,d,p,_))),x&&(Ie(x,["container"]),m.direction=ha(_),m.component.update(x),i[y]=!0)}else{var w=t.createFieldLegend(v,d,p);w&&(w.component.init(),t.components.push(w),i[y]=!0)}};if((0,h.get)(this.option,"custom")){var a="global-custom",o=this.getComponentById(a);if(o){var s=this.getCategoryCfg(void 0,void 0,void 0,this.option,!0);Ie(s,["container"]),o.component.update(s),i[a]=!0}else{var l=this.createCustomLegend(void 0,void 0,void 0,this.option);if(l){l.init();var u=J.FORE,c=ha(this.option);this.components.push({id:a,component:l,layer:u,direction:c,type:N.LEGEND,extra:void 0}),i[a]=!0}}}else this.loopLegends(n);var f=[];(0,h.each)(this.getComponents(),function(v){i[v.id]?f.push(v):v.component.destroy()}),this.components=f},r.prototype.clear=function(){e.prototype.clear.call(this),this.container.clear()},r.prototype.destroy=function(){e.prototype.destroy.call(this),this.container.remove(!0)},r.prototype.getGeometries=function(t){var i=this,n=t.geometries;return(0,h.each)(t.views,function(a){n=n.concat(i.getGeometries(a))}),n},r.prototype.loopLegends=function(t){var i=this.view.getRootView()===this.view;if(!!i){var n=this.getGeometries(this.view),a={};(0,h.each)(n,function(o){var s=o.getGroupAttributes();(0,h.each)(s,function(l){var u=l.getScale(l.type);!u||u.type==="identity"||a[u.field]||(t(o,l,u),a[u.field]=!0)})})}},r.prototype.createFieldLegend=function(t,i,n){var a,o=Bc(this.option,n.field),s=J.FORE,l=ha(o);if(o!==!1&&((0,h.get)(o,"custom")?a=this.createCustomLegend(t,i,n,o):n.isLinear?a=this.createContinuousLegend(t,i,n,o):n.isCategory&&(a=this.createCategoryLegend(t,i,n,o))),a)return a.set("field",n.field),{id:this.getId(n.field),component:a,layer:s,direction:l,type:N.LEGEND,extra:{scale:n}}},r.prototype.createCustomLegend=function(t,i,n,a){var o=this.getCategoryCfg(t,i,n,a,!0);return new Xl(o)},r.prototype.createContinuousLegend=function(t,i,n,a){var o=this.getContinuousCfg(t,i,n,Ie(a,["value"]));return new Qp(o)},r.prototype.createCategoryLegend=function(t,i,n,a){var o=this.getCategoryCfg(t,i,n,a);return new Xl(o)},r.prototype.getContinuousCfg=function(t,i,n,a){var o=n.getTicks(),s=(0,h.find)(o,function(y){return y.value===0}),l=(0,h.find)(o,function(y){return y.value===1}),u=o.map(function(y){var m=y.value,x=y.tickValue,_=i.mapping(n.invert(m)).join("");return{value:x,attrValue:_,color:_,scaleValue:m}});s||u.push({value:n.min,attrValue:i.mapping(n.invert(0)).join(""),color:i.mapping(n.invert(0)).join(""),scaleValue:0}),l||u.push({value:n.max,attrValue:i.mapping(n.invert(1)).join(""),color:i.mapping(n.invert(1)).join(""),scaleValue:1}),u.sort(function(y,m){return y.value-m.value});var c={min:(0,h.head)(u).value,max:(0,h.last)(u).value,colors:[],rail:{type:i.type},track:{}};i.type==="size"&&(c.track={style:{fill:i.type==="size"?this.view.getTheme().defaultColor:void 0}}),i.type==="color"&&(c.colors=u.map(function(y){return y.attrValue}));var f=this.container,v=ha(a),d=Po(v),p=(0,h.get)(a,"title");return p&&(p=(0,h.deepMix)({text:Ki(n)},p)),c.container=f,c.layout=d,c.title=p,c.animateOption=gi,this.mergeLegendCfg(c,a,"continuous")},r.prototype.getCategoryCfg=function(t,i,n,a,o){var s=this.container,l=(0,h.get)(a,"position",E.BOTTOM),u=Ku(this.view.getTheme(),l),c=(0,h.get)(u,["marker"]),f=(0,h.get)(a,"marker"),v=Po(l),d=(0,h.get)(u,["pageNavigator"]),p=(0,h.get)(a,"pageNavigator"),y=o?B0(c,f,a.items):Zu(this.view,t,i,c,f),m=(0,h.get)(a,"title");m&&(m=(0,h.deepMix)({text:n?Ki(n):""},m));var x=(0,h.get)(a,"maxWidthRatio"),_=(0,h.get)(a,"maxHeightRatio"),w=this.getCategoryLegendSizeCfg(v,x,_);w.container=s,w.layout=v,w.items=y,w.title=m,w.animateOption=gi,w.pageNavigator=(0,h.deepMix)({},d,p);var b=this.mergeLegendCfg(w,a,l);b.reversed&&b.items.reverse();var S=(0,h.get)(b,"maxItemWidth");return S&&S<=1&&(b.maxItemWidth=this.view.viewBBox.width*S),b},r.prototype.mergeLegendCfg=function(t,i,n){var a=n.split("-")[0],o=Ku(this.view.getTheme(),a);return(0,h.deepMix)({},o,t,i)},r.prototype.getId=function(t){return"".concat(this.name,"-").concat(t)},r.prototype.getComponentById=function(t){return(0,h.find)(this.components,function(i){return i.id===t})},r.prototype.getCategoryLegendSizeCfg=function(t,i,n){i===void 0&&(i=Kt),n===void 0&&(n=Kt);var a=this.view.viewBBox,o=a.width,s=a.height;return t==="vertical"?{maxWidth:o*i,maxHeight:s}:{maxWidth:o,maxHeight:s*n}},r}(di),o_=a_,s_=function(e){(0,g.__extends)(r,e);function r(t){var i=e.call(this,t)||this;return i.onChangeFn=h.noop,i.resetMeasure=function(){i.clear()},i.onValueChange=function(n){var a=(0,g.__read)(n,2),o=a[0],s=a[1];i.start=o,i.end=s,i.changeViewData(o,s)},i.container=i.view.getLayer(J.FORE).addGroup(),i.onChangeFn=(0,h.throttle)(i.onValueChange,20,{leading:!0}),i.width=0,i.view.on(O.BEFORE_CHANGE_DATA,i.resetMeasure),i.view.on(O.BEFORE_CHANGE_SIZE,i.resetMeasure),i}return Object.defineProperty(r.prototype,"name",{get:function(){return"slider"},enumerable:!1,configurable:!0}),r.prototype.destroy=function(){e.prototype.destroy.call(this),this.view.off(O.BEFORE_CHANGE_DATA,this.resetMeasure),this.view.off(O.BEFORE_CHANGE_SIZE,this.resetMeasure)},r.prototype.init=function(){},r.prototype.render=function(){this.option=this.view.getOptions().slider;var t=this.getSliderCfg(),i=t.start,n=t.end;(0,h.isNil)(this.start)&&(this.start=i,this.end=n);var a=this.view.getOptions().data;this.option&&!(0,h.isEmpty)(a)?this.slider?this.slider=this.updateSlider():(this.slider=this.createSlider(),this.slider.component.on("sliderchange",this.onChangeFn)):this.slider&&(this.slider.component.destroy(),this.slider=void 0)},r.prototype.layout=function(){var t=this;if(this.option&&!this.width&&(this.measureSlider(),setTimeout(function(){t.view.destroyed||t.changeViewData(t.start,t.end)},0)),this.slider){var i=this.view.coordinateBBox.width,n=this.slider.component.get("padding"),a=(0,g.__read)(n,4),o=a[0],s=a[1],l=a[2],u=a[3],c=this.slider.component.getLayoutBBox(),f=new Ee(c.x,c.y,Math.min(c.width,i),c.height).expand(n),v=this.getMinMaxText(this.start,this.end),d=v.minText,p=v.maxText,y=(0,g.__read)(Er(this.view.viewBBox,f,E.BOTTOM),2),m=y[0],x=y[1],_=(0,g.__read)(Er(this.view.coordinateBBox,f,E.BOTTOM),2),w=_[0],b=_[1];this.slider.component.update((0,g.__assign)((0,g.__assign)({},this.getSliderCfg()),{x:w+u,y:x+o,width:this.width,start:this.start,end:this.end,minText:d,maxText:p})),this.view.viewBBox=this.view.viewBBox.cut(f,E.BOTTOM)}},r.prototype.update=function(){this.render()},r.prototype.createSlider=function(){var t=this.getSliderCfg(),i=new Xp((0,g.__assign)({container:this.container},t));return i.init(),{component:i,layer:J.FORE,direction:E.BOTTOM,type:N.SLIDER}},r.prototype.updateSlider=function(){var t=this.getSliderCfg();if(this.width){var i=this.getMinMaxText(this.start,this.end),n=i.minText,a=i.maxText;t=(0,g.__assign)((0,g.__assign)({},t),{width:this.width,start:this.start,end:this.end,minText:n,maxText:a})}return this.slider.component.update(t),this.slider},r.prototype.measureSlider=function(){var t=this.getSliderCfg().width;this.width=t},r.prototype.getSliderCfg=function(){var t={height:16,start:0,end:1,minText:"",maxText:"",x:0,y:0,width:this.view.coordinateBBox.width};if((0,h.isObject)(this.option)){var i=(0,g.__assign)({data:this.getData()},(0,h.get)(this.option,"trendCfg",{}));t=(0,h.deepMix)({},t,this.getThemeOptions(),this.option),t=(0,g.__assign)((0,g.__assign)({},t),{trendCfg:i})}return t.start=(0,h.clamp)(Math.min((0,h.isNil)(t.start)?0:t.start,(0,h.isNil)(t.end)?1:t.end),0,1),t.end=(0,h.clamp)(Math.max((0,h.isNil)(t.start)?0:t.start,(0,h.isNil)(t.end)?1:t.end),0,1),t},r.prototype.getData=function(){var t=this.view.getOptions().data,i=(0,g.__read)(this.view.getYScales(),1),n=i[0],a=this.view.getGroupScales();if(a.length){var o=a[0],s=o.field,l=o.ticks;return t.reduce(function(u,c){return c[s]===l[0]&&u.push(c[n.field]),u},[])}return t.map(function(u){return u[n.field]||0})},r.prototype.getThemeOptions=function(){var t=this.view.getTheme();return(0,h.get)(t,["components","slider","common"],{})},r.prototype.getMinMaxText=function(t,i){var n=this.view.getOptions().data,a=this.view.getXScale(),o=!0,s=(0,h.valuesOfKey)(n,a.field);a.isLinear&&(s=s.sort());var l=o?s:s.reverse(),u=(0,h.size)(n);if(!a||!u)return{};var c=(0,h.size)(l),f=Math.round(t*(c-1)),v=Math.round(i*(c-1)),d=(0,h.get)(l,[f]),p=(0,h.get)(l,[v]),y=this.getSliderCfg().formatter;return y&&(d=y(d,n[f],f),p=y(p,n[v],v)),{minText:d,maxText:p}},r.prototype.changeViewData=function(t,i){var n=this.view.getOptions().data,a=this.view.getXScale(),o=(0,h.size)(n);if(!(!a||!o)){var s=!0,l=(0,h.valuesOfKey)(n,a.field),u=this.view.getXScale().isLinear?l.sort(function(p,y){return Number(p)-Number(y)}):l,c=s?u:u.reverse(),f=(0,h.size)(c),v=Math.round(t*(f-1)),d=Math.round(i*(f-1));this.view.filter(a.field,function(p,y){var m=c.indexOf(p);return m>-1?li(m,v,d):!0}),this.view.render(!0)}},r.prototype.getComponents=function(){return this.slider?[this.slider]:[]},r.prototype.clear=function(){this.slider&&(this.slider.component.destroy(),this.slider=void 0),this.width=0,this.start=void 0,this.end=void 0},r}(di),l_=s_,fa=0,Rc=8,u_=32,c_=20,h_=function(e){(0,g.__extends)(r,e);function r(t){var i=e.call(this,t)||this;return i.onChangeFn=h.noop,i.resetMeasure=function(){i.clear()},i.onValueChange=function(n){var a=n.ratio,o=i.getValidScrollbarCfg().animate;i.ratio=(0,h.clamp)(a,0,1);var s=i.view.getOptions().animate;o||i.view.animate(!1),i.changeViewData(i.getScrollRange(),!0),i.view.animate(s)},i.container=i.view.getLayer(J.FORE).addGroup(),i.onChangeFn=(0,h.throttle)(i.onValueChange,20,{leading:!0}),i.trackLen=0,i.thumbLen=0,i.ratio=0,i.view.on(O.BEFORE_CHANGE_DATA,i.resetMeasure),i.view.on(O.BEFORE_CHANGE_SIZE,i.resetMeasure),i}return Object.defineProperty(r.prototype,"name",{get:function(){return"scrollbar"},enumerable:!1,configurable:!0}),r.prototype.destroy=function(){e.prototype.destroy.call(this),this.view.off(O.BEFORE_CHANGE_DATA,this.resetMeasure),this.view.off(O.BEFORE_CHANGE_SIZE,this.resetMeasure)},r.prototype.init=function(){},r.prototype.render=function(){this.option=this.view.getOptions().scrollbar,this.option?this.scrollbar?this.scrollbar=this.updateScrollbar():(this.scrollbar=this.createScrollbar(),this.scrollbar.component.on("scrollchange",this.onChangeFn)):this.scrollbar&&(this.scrollbar.component.destroy(),this.scrollbar=void 0)},r.prototype.layout=function(){var t=this;if(this.option&&!this.trackLen&&(this.measureScrollbar(),setTimeout(function(){t.view.destroyed||t.changeViewData(t.getScrollRange(),!0)})),this.scrollbar){var i=this.view.coordinateBBox.width,n=this.scrollbar.component.get("padding"),a=this.scrollbar.component.getLayoutBBox(),o=new Ee(a.x,a.y,Math.min(a.width,i),a.height).expand(n),s=this.getScrollbarComponentCfg(),l=void 0,u=void 0;if(s.isHorizontal){var c=(0,g.__read)(Er(this.view.viewBBox,o,E.BOTTOM),2),f=c[0],v=c[1],d=(0,g.__read)(Er(this.view.coordinateBBox,o,E.BOTTOM),2),p=d[0],y=d[1];l=p,u=v}else{var m=(0,g.__read)(Er(this.view.viewBBox,o,E.RIGHT),2),f=m[0],v=m[1],x=(0,g.__read)(Er(this.view.viewBBox,o,E.RIGHT),2),p=x[0],y=x[1];l=p,u=v}l+=n[3],u+=n[0],this.trackLen?this.scrollbar.component.update((0,g.__assign)((0,g.__assign)({},s),{x:l,y:u,trackLen:this.trackLen,thumbLen:this.thumbLen,thumbOffset:(this.trackLen-this.thumbLen)*this.ratio})):this.scrollbar.component.update((0,g.__assign)((0,g.__assign)({},s),{x:l,y:u})),this.view.viewBBox=this.view.viewBBox.cut(o,s.isHorizontal?E.BOTTOM:E.RIGHT)}},r.prototype.update=function(){this.render()},r.prototype.getComponents=function(){return this.scrollbar?[this.scrollbar]:[]},r.prototype.clear=function(){this.scrollbar&&(this.scrollbar.component.destroy(),this.scrollbar=void 0),this.trackLen=0,this.thumbLen=0,this.ratio=0,this.cnt=0,this.step=0,this.data=void 0,this.xScaleCfg=void 0,this.yScalesCfg=[]},r.prototype.setValue=function(t){this.onValueChange({ratio:t})},r.prototype.getValue=function(){return this.ratio},r.prototype.getThemeOptions=function(){var t=this.view.getTheme();return(0,h.get)(t,["components","scrollbar","common"],{})},r.prototype.getScrollbarTheme=function(t){var i=(0,h.get)(this.view.getTheme(),["components","scrollbar"]),n=t||{},a=n.thumbHighlightColor,o=(0,g.__rest)(n,["thumbHighlightColor"]);return{default:(0,h.deepMix)({},(0,h.get)(i,["default","style"],{}),o),hover:(0,h.deepMix)({},(0,h.get)(i,["hover","style"],{}),{thumbColor:a})}},r.prototype.measureScrollbar=function(){var t=this.view.getXScale(),i=this.view.getYScales().slice();this.data=this.getScrollbarData(),this.step=this.getStep(),this.cnt=this.getCnt();var n=this.getScrollbarComponentCfg(),a=n.trackLen,o=n.thumbLen;this.trackLen=a,this.thumbLen=o,this.xScaleCfg={field:t.field,values:t.values||[]},this.yScalesCfg=i},r.prototype.getScrollRange=function(){var t=Math.floor((this.cnt-this.step)*(0,h.clamp)(this.ratio,0,1)),i=Math.min(t+this.step-1,this.cnt-1);return[t,i]},r.prototype.changeViewData=function(t,i){var n=this,a=(0,g.__read)(t,2),o=a[0],s=a[1],l=this.getValidScrollbarCfg().type,u=l!=="vertical",c=(0,h.valuesOfKey)(this.data,this.xScaleCfg.field),f=this.view.getXScale().isLinear?c.sort(function(d,p){return Number(d)-Number(p)}):c,v=u?f:f.reverse();this.yScalesCfg.forEach(function(d){n.view.scale(d.field,{formatter:d.formatter,type:d.type,min:d.min,max:d.max,tickMethod:d.tickMethod})}),this.view.filter(this.xScaleCfg.field,function(d){var p=v.indexOf(d);return p>-1?li(p,o,s):!0}),this.view.render(!0)},r.prototype.createScrollbar=function(){var t=this.getValidScrollbarCfg().type,i=t!=="vertical",n=new jp((0,g.__assign)((0,g.__assign)({container:this.container},this.getScrollbarComponentCfg()),{x:0,y:0}));return n.init(),{component:n,layer:J.FORE,direction:i?E.BOTTOM:E.RIGHT,type:N.SCROLLBAR}},r.prototype.updateScrollbar=function(){var t=this.getScrollbarComponentCfg(),i=this.trackLen?(0,g.__assign)((0,g.__assign)({},t),{trackLen:this.trackLen,thumbLen:this.thumbLen,thumbOffset:(this.trackLen-this.thumbLen)*this.ratio}):(0,g.__assign)({},t);return this.scrollbar.component.update(i),this.scrollbar},r.prototype.getStep=function(){if(this.step)return this.step;var t=this.view.coordinateBBox,i=this.getValidScrollbarCfg(),n=i.type,a=i.categorySize,o=n!=="vertical";return Math.floor((o?t.width:t.height)/a)},r.prototype.getCnt=function(){if(this.cnt)return this.cnt;var t=this.view.getXScale(),i=this.getScrollbarData(),n=(0,h.valuesOfKey)(i,t.field);return(0,h.size)(n)},r.prototype.getScrollbarComponentCfg=function(){var t=this.view,i=t.coordinateBBox,n=t.viewBBox,a=this.getValidScrollbarCfg(),o=a.type,s=a.padding,l=a.width,u=a.height,c=a.style,f=o!=="vertical",v=(0,g.__read)(s,4),d=v[0],p=v[1],y=v[2],m=v[3],x=f?{x:i.minX+m,y:n.maxY-u-y}:{x:n.maxX-l-p,y:i.minY+d},_=this.getStep(),w=this.getCnt(),b=f?i.width-m-p:i.height-d-y,S=Math.max(b*(0,h.clamp)(_/w,0,1),c_);return(0,g.__assign)((0,g.__assign)({},this.getThemeOptions()),{x:x.x,y:x.y,size:f?u:l,isHorizontal:f,trackLen:b,thumbLen:S,thumbOffset:0,theme:this.getScrollbarTheme(c)})},r.prototype.getValidScrollbarCfg=function(){var t={type:"horizontal",categorySize:u_,width:Rc,height:Rc,padding:[0,0,0,0],animate:!0,style:{}};return(0,h.isObject)(this.option)&&(t=(0,g.__assign)((0,g.__assign)({},t),this.option)),(!(0,h.isObject)(this.option)||!this.option.padding)&&(t.padding=t.type==="horizontal"?[fa,0,fa,0]:[0,fa,0,fa]),t},r.prototype.getScrollbarData=function(){var t=this.view.getCoordinate(),i=this.getValidScrollbarCfg(),n=this.view.getOptions().data||[];return t.isReflect("y")&&i.type==="vertical"&&(n=(0,g.__spreadArray)([],(0,g.__read)(n),!1).reverse()),n},r}(di),f_=h_,v_={fill:"#CCD6EC",opacity:.3};function d_(e,r,t){var i,n,a,o,s,l,u=t0(e,r,t);if(u.length){u=(0,h.flatten)(u);try{for(var c=(0,g.__values)(u),f=c.next();!f.done;f=c.next()){var v=f.value;try{for(var d=(a=void 0,(0,g.__values)(v)),p=d.next();!p.done;p=d.next()){var y=p.value,m=y.mappingData,x=m.x,_=m.y;y.x=(0,h.isArray)(x)?x[x.length-1]:x,y.y=(0,h.isArray)(_)?_[_.length-1]:_}}catch(L){a={error:L}}finally{try{p&&!p.done&&(o=d.return)&&o.call(d)}finally{if(a)throw a.error}}}}catch(L){i={error:L}}finally{try{f&&!f.done&&(n=c.return)&&n.call(c)}finally{if(i)throw i.error}}var w=t.shared;if(w===!1&&u.length>1){var b=u[0],S=Math.abs(r.y-b[0].y);try{for(var C=(0,g.__values)(u),A=C.next();!A.done;A=C.next()){var F=A.value,P=Math.abs(r.y-F[0].y);P<=S&&(b=F,S=P)}}catch(L){s={error:L}}finally{try{A&&!A.done&&(l=C.return)&&l.call(C)}finally{if(s)throw s.error}}u=[b]}return(0,h.uniq)((0,h.flatten)(u))}return[]}var g_=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.show=function(t){var i=this.context.view,n=this.context.event,a=i.getController("tooltip").getTooltipCfg(),o=d_(i,{x:n.x,y:n.y},a);if(!(0,h.isEqual)(o,this.items)&&(this.items=o,o.length)){var s=i.getXScale().field,l=o[0].data[s],u=[],c=i.geometries;if((0,h.each)(c,function(pt){if(pt.type==="interval"||pt.type==="schema"){var ut=pt.getElementsBy(function(gt){var At=gt.getData();return At[s]===l});u=u.concat(ut)}}),u.length){var f=i.getCoordinate(),v=u[0].shape.getCanvasBBox(),d=u[0].shape.getCanvasBBox(),p=v;(0,h.each)(u,function(pt){var ut=pt.shape.getCanvasBBox();f.isTransposed?(ut.minYd.maxY&&(d=ut)):(ut.minXd.maxX&&(d=ut)),p.x=Math.min(ut.minX,p.minX),p.y=Math.min(ut.minY,p.minY),p.width=Math.max(ut.maxX,p.maxX)-p.x,p.height=Math.max(ut.maxY,p.maxY)-p.y});var y=i.backgroundGroup,m=i.coordinateBBox,x=void 0;if(f.isRect){var _=i.getXScale(),w=t||{},b=w.appendRatio,S=w.appendWidth;(0,h.isNil)(S)&&(b=(0,h.isNil)(b)?_.isLinear?0:.25:b,S=f.isTransposed?b*d.height:b*v.width);var C=void 0,A=void 0,F=void 0,P=void 0;f.isTransposed?(C=m.minX,A=Math.min(d.minY,v.minY)-S,F=m.width,P=p.height+S*2):(C=Math.min(v.minX,d.minX)-S,A=m.minY,F=p.width+S*2,P=m.height),x=[["M",C,A],["L",C+F,A],["L",C+F,A+P],["L",C,A+P],["Z"]]}else{var L=(0,h.head)(u),z=(0,h.last)(u),Q=ji(L.getModel(),f).startAngle,xt=ji(z.getModel(),f).endAngle,_t=f.getCenter(),Rt=f.getRadius(),H=f.innerRadius*Rt;x=_r(_t.x,_t.y,Rt,Q,xt,H)}if(this.regionPath)this.regionPath.attr("path",x),this.regionPath.show();else{var at=(0,h.get)(t,"style",v_);this.regionPath=y.addShape({type:"path",name:"active-region",capture:!1,attrs:(0,g.__assign)((0,g.__assign)({},at),{path:x})})}}}},r.prototype.hide=function(){this.regionPath&&this.regionPath.hide(),this.items=null},r.prototype.destroy=function(){this.hide(),this.regionPath&&this.regionPath.remove(!0),e.prototype.destroy.call(this)},r}(ne),p_=g_,y_=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.timeStamp=0,t}return r.prototype.show=function(){var t=this.context,i=t.event,n=t.view,a=n.isTooltipLocked();if(!a){var o=this.timeStamp,s=+new Date,l=(0,h.get)(t.view.getOptions(),"tooltip.showDelay",16);if(s-o>l){var u=this.location,c={x:i.x,y:i.y};(!u||!(0,h.isEqual)(u,c))&&this.showTooltip(n,c),this.timeStamp=s,this.location=c}}},r.prototype.hide=function(){var t=this.context.view,i=t.getController("tooltip"),n=this.context.event,a=n.clientX,o=n.clientY;i.isCursorEntered({x:a,y:o})||t.isTooltipLocked()||(this.hideTooltip(t),this.location=null)},r.prototype.showTooltip=function(t,i){t.showTooltip(i)},r.prototype.hideTooltip=function(t){t.hideTooltip()},r}(ne),Nc=y_,m_=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.showTooltip=function(t,i){var n=Qe(t);(0,h.each)(n,function(a){var o=Co(t,a,i);a.showTooltip(o)})},r.prototype.hideTooltip=function(t){var i=Qe(t);(0,h.each)(i,function(n){n.hideTooltip()})},r}(Nc),x_=m_,__=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.timeStamp=0,t}return r.prototype.destroy=function(){e.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},r.prototype.show=function(){var t=this.context,i=t.event,n=this.timeStamp,a=+new Date;if(a-n>16){var o=this.location,s={x:i.x,y:i.y};(!o||!(0,h.isEqual)(o,s))&&this.showTooltip(s),this.timeStamp=a,this.location=s}},r.prototype.hide=function(){this.hideTooltip(),this.location=null},r.prototype.showTooltip=function(t){var i=this.context,n=i.event,a=n.target;if(a&&a.get("tip")){this.tooltip||this.renderTooltip();var o=a.get("tip");this.tooltip.update((0,g.__assign)({title:o},t)),this.tooltip.show()}},r.prototype.hideTooltip=function(){this.tooltip&&this.tooltip.hide()},r.prototype.renderTooltip=function(){var t,i=this.context.view,n=i.canvas,a={start:{x:0,y:0},end:{x:n.get("width"),y:n.get("height")}},o=i.getTheme(),s=(0,h.get)(o,["components","tooltip","domStyles"],{}),l=new Gn({parent:n.get("el").parentNode,region:a,visible:!1,crosshairs:null,domStyles:(0,g.__assign)({},(0,h.deepMix)({},s,(t={},t[sr]={"max-width":"50%"},t[lr]={"word-break":"break-all"},t)))});l.init(),l.setCapture(!1),this.tooltip=l},r}(ne),w_=__,b_=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.stateName="",t}return r.prototype.hasState=function(t){return t.hasState(this.stateName)},r.prototype.setElementState=function(t,i){t.setState(this.stateName,i)},r.prototype.setState=function(){this.setStateEnable(!0)},r.prototype.clear=function(){var t=this.context.view;this.clearViewState(t)},r.prototype.clearViewState=function(t){var i=this,n=gu(t,this.stateName);(0,h.each)(n,function(a){i.setElementState(a,!1)})},r}(ne),Qo=b_;function zc(e){return(0,h.get)(e.get("delegateObject"),"item")}var S_=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.ignoreListItemStates=["unchecked"],t}return r.prototype.isItemIgnore=function(t,i){var n=this.ignoreListItemStates,a=n.filter(function(o){return i.hasState(t,o)});return!!a.length},r.prototype.setStateByComponent=function(t,i,n){var a=this.context.view,o=t.get("field"),s=Ce(a);this.setElementsStateByItem(s,o,i,n)},r.prototype.setStateByElement=function(t,i){this.setElementState(t,i)},r.prototype.isMathItem=function(t,i,n){var a=this.context.view,o=fi(a,i),s=je(t,i);return!(0,h.isNil)(s)&&n.name===o.getText(s)},r.prototype.setElementsStateByItem=function(t,i,n,a){var o=this;(0,h.each)(t,function(s){o.isMathItem(s,i,n)&&s.setState(o.stateName,a)})},r.prototype.setStateEnable=function(t){var i=br(this.context);if(i)hu(this.context)&&this.setStateByElement(i,t);else{var n=zr(this.context);if($i(n)){var a=n.item,o=n.component;if(a&&o&&!this.isItemIgnore(a,o)){var s=this.context.event.gEvent;if(s&&s.fromShape&&s.toShape&&zc(s.fromShape)===zc(s.toShape))return;this.setStateByComponent(o,a,t)}}}},r.prototype.toggle=function(){var t=br(this.context);if(t){var i=t.hasState(this.stateName);this.setElementState(t,!i)}},r.prototype.reset=function(){this.setStateEnable(!1)},r}(Qo),Jo=S_,C_=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.stateName="active",t}return r.prototype.active=function(){this.setState()},r}(Jo),A_=C_,M_=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.cache={},t}return r.prototype.getColorScale=function(t,i){var n=i.geometry.getAttribute("color");if(!n)return null;var a=t.getScaleByField(n.getFields()[0]);return a},r.prototype.getLinkPath=function(t,i){var n=this.context.view,a=n.getCoordinate().isTransposed,o=t.shape.getCanvasBBox(),s=i.shape.getCanvasBBox(),l=a?[["M",o.minX,o.minY],["L",s.minX,s.maxY],["L",s.maxX,s.maxY],["L",o.maxX,o.minY],["Z"]]:[["M",o.maxX,o.minY],["L",s.minX,s.minY],["L",s.minX,s.maxY],["L",o.maxX,o.maxY],["Z"]];return l},r.prototype.addLinkShape=function(t,i,n,a){var o={opacity:.4,fill:i.shape.attr("fill")};t.addShape({type:"path",attrs:(0,g.__assign)((0,g.__assign)({},(0,h.deepMix)({},o,(0,h.isFunction)(a)?a(o,i):a)),{path:this.getLinkPath(i,n)})})},r.prototype.linkByElement=function(t,i){var n=this,a=this.context.view,o=this.getColorScale(a,t);if(!!o){var s=je(t,o.field);if(!this.cache[s]){var l=Ty(a,o.field,s),u=this.linkGroup,c=u.addGroup();this.cache[s]=c;var f=l.length;(0,h.each)(l,function(v,d){if(d=0},i)},r}(ts),Gc=z_,V_=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.stateName="active",t}return r.prototype.highlight=function(){this.setState()},r.prototype.setElementState=function(t,i){var n=this.context.view,a=Ce(n);Vc(a,function(o){return t===o},i)},r.prototype.clear=function(){var t=this.context.view;rs(t)},r}(es),G_=V_,W_=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.stateName="selected",t}return r.prototype.selected=function(){this.setState()},r}(ts),H_=W_,Y_=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.stateName="selected",t}return r.prototype.selected=function(){this.setState()},r}(Jo),X_=Y_,U_=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.stateName="selected",t}return r.prototype.selected=function(){this.setState()},r}(es),j_=U_,Z_=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.stateName="",t.ignoreItemStates=[],t}return r.prototype.getTriggerListInfo=function(){var t=zr(this.context),i=null;return $i(t)&&(i={item:t.item,list:t.component}),i},r.prototype.getAllowComponents=function(){var t=this,i=this.context.view,n=mu(i),a=[];return(0,h.each)(n,function(o){o.isList()&&t.allowSetStateByElement(o)&&a.push(o)}),a},r.prototype.hasState=function(t,i){return t.hasState(i,this.stateName)},r.prototype.clearAllComponentsState=function(){var t=this,i=this.getAllowComponents();(0,h.each)(i,function(n){n.clearItemsState(t.stateName)})},r.prototype.allowSetStateByElement=function(t){var i=t.get("field");if(!i)return!1;if(this.cfg&&this.cfg.componentNames){var n=t.get("name");if(this.cfg.componentNames.indexOf(n)===-1)return!1}var a=this.context.view,o=fi(a,i);return o&&o.isCategory},r.prototype.allowSetStateByItem=function(t,i){var n=this.ignoreItemStates;if(n.length){var a=n.filter(function(o){return i.hasState(t,o)});return a.length===0}return!0},r.prototype.setStateByElement=function(t,i,n){var a=t.get("field"),o=this.context.view,s=fi(o,a),l=je(i,a),u=s.getText(l);this.setItemsState(t,u,n)},r.prototype.setStateEnable=function(t){var i=this,n=br(this.context);if(n){var a=this.getAllowComponents();(0,h.each)(a,function(u){i.setStateByElement(u,n,t)})}else{var o=zr(this.context);if($i(o)){var s=o.item,l=o.component;this.allowSetStateByElement(l)&&this.allowSetStateByItem(s,l)&&this.setItemState(l,s,t)}}},r.prototype.setItemsState=function(t,i,n){var a=this,o=t.getItems();(0,h.each)(o,function(s){s.name===i&&a.setItemState(t,s,n)})},r.prototype.setItemState=function(t,i,n){t.setItemState(i,this.stateName,n)},r.prototype.setState=function(){this.setStateEnable(!0)},r.prototype.reset=function(){this.setStateEnable(!1)},r.prototype.toggle=function(){var t=this.getTriggerListInfo();if(t&&t.item){var i=t.list,n=t.item,a=this.hasState(i,n);this.setItemState(i,n,!a)}},r.prototype.clear=function(){var t=this.getTriggerListInfo();t?t.list.clearItemsState(this.stateName):this.clearAllComponentsState()},r}(ne),Hr=Z_,K_=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.stateName="active",t}return r.prototype.active=function(){this.setState()},r}(Hr),q_=K_,Wc="inactive",Hc="active";function $_(e){var r=e.getItems();(0,h.each)(r,function(t){e.hasState(t,Hc)&&e.setItemState(t,Hc,!1),e.hasState(t,Wc)&&e.setItemState(t,Wc,!1)})}var sn="inactive",Yr="active",Q_=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.stateName=Yr,t.ignoreItemStates=["unchecked"],t}return r.prototype.setItemsState=function(t,i,n){this.setHighlightBy(t,function(a){return a.name===i},n)},r.prototype.setItemState=function(t,i,n){var a=t.getItems();this.setHighlightBy(t,function(o){return o===i},n)},r.prototype.setHighlightBy=function(t,i,n){var a=t.getItems();if(n)(0,h.each)(a,function(l){i(l)?(t.hasState(l,sn)&&t.setItemState(l,sn,!1),t.setItemState(l,Yr,!0)):t.hasState(l,Yr)||t.setItemState(l,sn,!0)});else{var o=t.getItemsByState(Yr),s=!0;(0,h.each)(o,function(l){if(!i(l))return s=!1,!1}),s?this.clear():(0,h.each)(a,function(l){i(l)&&(t.hasState(l,Yr)&&t.setItemState(l,Yr,!1),t.setItemState(l,sn,!0))})}},r.prototype.highlight=function(){this.setState()},r.prototype.clear=function(){var t=this.getTriggerListInfo();if(t)$_(t.list);else{var i=this.getAllowComponents();(0,h.each)(i,function(n){n.clearItemsState(Yr),n.clearItemsState(sn)})}},r}(Hr),ns=Q_,J_=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.stateName="selected",t}return r.prototype.selected=function(){this.setState()},r}(Hr),tw=J_,ew=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.stateName="unchecked",t}return r.prototype.unchecked=function(){this.setState()},r}(Hr),rw=ew,yi="unchecked",va="checked",iw=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.stateName=va,t}return r.prototype.setItemState=function(t,i,n){this.setCheckedBy(t,function(a){return a===i},n)},r.prototype.setCheckedBy=function(t,i,n){var a=t.getItems();n&&(0,h.each)(a,function(o){i(o)?(t.hasState(o,yi)&&t.setItemState(o,yi,!1),t.setItemState(o,va,!0)):t.hasState(o,va)||t.setItemState(o,yi,!0)})},r.prototype.toggle=function(){var t=this.getTriggerListInfo();if(t&&t.item){var i=t.list,n=t.item,a=!(0,h.some)(i.getItems(),function(o){return i.hasState(o,yi)});a||i.hasState(n,yi)?this.setItemState(i,n,!0):this.reset()}},r.prototype.checked=function(){this.setState()},r.prototype.reset=function(){var t=this.getAllowComponents();(0,h.each)(t,function(i){i.clearItemsState(va),i.clearItemsState(yi)})},r}(Hr),nw=iw,mi="unchecked",aw=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.toggle=function(){var t,i,n,a,o,s,l,u,c=this.getTriggerListInfo();if(c==null?void 0:c.item){var f=c.list,v=c.item,d=f.getItems(),p=d.filter(function(L){return!f.hasState(L,mi)}),y=d.filter(function(L){return f.hasState(L,mi)}),m=p[0];if(d.length===p.length)try{for(var x=(0,g.__values)(d),_=x.next();!_.done;_=x.next()){var w=_.value;f.setItemState(w,mi,w.id!==v.id)}}catch(L){t={error:L}}finally{try{_&&!_.done&&(i=x.return)&&i.call(x)}finally{if(t)throw t.error}}else if(d.length-y.length==1)if(m.id===v.id)try{for(var b=(0,g.__values)(d),S=b.next();!S.done;S=b.next()){var w=S.value;f.setItemState(w,mi,!1)}}catch(L){n={error:L}}finally{try{S&&!S.done&&(a=b.return)&&a.call(b)}finally{if(n)throw n.error}}else try{for(var C=(0,g.__values)(d),A=C.next();!A.done;A=C.next()){var w=A.value;f.setItemState(w,mi,w.id!==v.id)}}catch(L){o={error:L}}finally{try{A&&!A.done&&(s=C.return)&&s.call(C)}finally{if(o)throw o.error}}else try{for(var F=(0,g.__values)(d),P=F.next();!P.done;P=F.next()){var w=P.value;f.setItemState(w,mi,w.id!==v.id)}}catch(L){l={error:L}}finally{try{P&&!P.done&&(u=F.return)&&u.call(F)}finally{if(l)throw l.error}}}},r}(Hr),ow=aw,Yc="showRadio",as="legend-radio-tip",sw=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.timeStamp=0,t}return r.prototype.show=function(){var t=this.getTriggerListInfo();if(t==null?void 0:t.item){var i=t.list,n=t.item;i.setItemState(n,Yc,!0)}},r.prototype.hide=function(){var t=this.getTriggerListInfo();if(t==null?void 0:t.item){var i=t.list,n=t.item;i.setItemState(n,Yc,!1)}},r.prototype.destroy=function(){e.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},r.prototype.showTip=function(){var t=this.context,i=t.event,n=this.timeStamp,a=+new Date,o=this.context.event.target;if(a-n>16&&o.get("name")==="legend-item-radio"){var s=this.location,l={x:i.x,y:i.y};this.timeStamp=a,this.location=l,(!s||!(0,h.isEqual)(s,l))&&this.showTooltip(l)}},r.prototype.hideTip=function(){this.hideTooltip(),this.location=null},r.prototype.showTooltip=function(t){var i=this.context,n=i.event,a=n.target;if(a&&a.get("tip")){this.tooltip||this.renderTooltip();var o=i.view.getCanvas().get("el").getBoundingClientRect(),s=o.x,l=o.y;this.tooltip.update((0,g.__assign)((0,g.__assign)({title:a.get("tip")},t),{x:t.x+s,y:t.y+l})),this.tooltip.show()}},r.prototype.hideTooltip=function(){this.tooltip&&this.tooltip.hide()},r.prototype.renderTooltip=function(){var t,i=(t={},t[sr]={padding:"6px 8px",transform:"translate(-50%, -80%)",background:"rgba(0,0,0,0.75)",color:"#fff","border-radius":"2px","z-index":100},t[lr]={"font-size":"12px","line-height":"14px","margin-bottom":0,"word-break":"break-all"},t);document.getElementById(as)&&document.body.removeChild(document.getElementById(as));var n=new Gn({parent:document.body,region:null,visible:!1,crosshairs:null,domStyles:i,containerId:as});n.init(),n.setCapture(!1),this.tooltip=n},r}(Hr),lw=sw,uw=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.maskShape=null,t.points=[],t.starting=!1,t.moving=!1,t.preMovePoint=null,t.shapeType="path",t}return r.prototype.getCurrentPoint=function(){var t=this.context.event;return{x:t.x,y:t.y}},r.prototype.emitEvent=function(t){var i="mask:".concat(t),n=this.context.view,a=this.context.event;n.emit(i,{target:this.maskShape,shape:this.maskShape,points:this.points,x:a.x,y:a.y})},r.prototype.createMask=function(){var t=this.context.view,i=this.getMaskAttrs(),n=t.foregroundGroup.addShape({type:this.shapeType,name:"mask",draggable:!0,attrs:(0,g.__assign)({fill:"#C5D4EB",opacity:.3},i)});return n},r.prototype.getMaskPath=function(){return[]},r.prototype.show=function(){this.maskShape&&(this.maskShape.show(),this.emitEvent("show"))},r.prototype.start=function(t){this.starting=!0,this.moving=!1,this.points=[this.getCurrentPoint()],this.maskShape||(this.maskShape=this.createMask(),this.maskShape.set("capture",!1)),this.updateMask(t==null?void 0:t.maskStyle),this.emitEvent("start")},r.prototype.moveStart=function(){this.moving=!0,this.preMovePoint=this.getCurrentPoint()},r.prototype.move=function(){if(!(!this.moving||!this.maskShape)){var t=this.getCurrentPoint(),i=this.preMovePoint,n=t.x-i.x,a=t.y-i.y,o=this.points;(0,h.each)(o,function(s){s.x+=n,s.y+=a}),this.updateMask(),this.emitEvent("change"),this.preMovePoint=t}},r.prototype.updateMask=function(t){var i=(0,h.deepMix)({},this.getMaskAttrs(),t);this.maskShape.attr(i)},r.prototype.moveEnd=function(){this.moving=!1,this.preMovePoint=null},r.prototype.end=function(){this.starting=!1,this.emitEvent("end"),this.maskShape&&this.maskShape.set("capture",!0)},r.prototype.hide=function(){this.maskShape&&(this.maskShape.hide(),this.emitEvent("hide"))},r.prototype.resize=function(){this.starting&&this.maskShape&&(this.points.push(this.getCurrentPoint()),this.updateMask(),this.emitEvent("change"))},r.prototype.destroy=function(){this.points=[],this.maskShape&&this.maskShape.remove(),this.maskShape=null,this.preMovePoint=null,e.prototype.destroy.call(this)},r}(ne),os=uw;function Xc(e){var r=(0,h.last)(e),t=0,i=0,n=0;if(e.length){var a=e[0];t=So(a,r)/2,i=(r.x+a.x)/2,n=(r.y+a.y)/2}return{x:i,y:n,r:t}}var cw=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.shapeType="circle",t}return r.prototype.getMaskAttrs=function(){return Xc(this.points)},r}(os),hw=cw;function Uc(e){return{start:(0,h.head)(e),end:(0,h.last)(e)}}function jc(e,r){var t=Math.min(e.x,r.x),i=Math.min(e.y,r.y),n=Math.abs(r.x-e.x),a=Math.abs(r.y-e.y);return{x:t,y:i,width:n,height:a}}var fw=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.shapeType="rect",t}return r.prototype.getRegion=function(){return Uc(this.points)},r.prototype.getMaskAttrs=function(){var t=this.getRegion(),i=t.start,n=t.end;return jc(i,n)},r}(os),Zc=fw;function Kc(e){e.x=(0,h.clamp)(e.x,0,1),e.y=(0,h.clamp)(e.y,0,1)}function qc(e,r,t,i){var n=null,a=null,o=i.invert((0,h.head)(e)),s=i.invert((0,h.last)(e));return t&&(Kc(o),Kc(s)),r==="x"?(n=i.convert({x:o.x,y:0}),a=i.convert({x:s.x,y:1})):(n=i.convert({x:0,y:o.y}),a=i.convert({x:1,y:s.y})),{start:n,end:a}}var vw=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.dim="x",t.inPlot=!0,t}return r.prototype.getRegion=function(){var t=this.context.view.getCoordinate();return qc(this.points,this.dim,this.inPlot,t)},r}(Zc),$c=vw;function ss(e){var r=[];return e.length&&((0,h.each)(e,function(t,i){i===0?r.push(["M",t.x,t.y]):r.push(["L",t.x,t.y])}),r.push(["L",e[0].x,e[0].y])),r}function Qc(e){return{path:ss(e)}}var dw=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getMaskPath=function(){return ss(this.points)},r.prototype.getMaskAttrs=function(){return Qc(this.points)},r.prototype.addPoint=function(){this.resize()},r}(os),Jc=dw;function ls(e){return Oy(e,!0)}function th(e){return{path:ls(e)}}var gw=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getMaskPath=function(){return ls(this.points)},r.prototype.getMaskAttrs=function(){return th(this.points)},r}(Jc),pw=gw,yw=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.maskShapes=[],t.starting=!1,t.moving=!1,t.recordPoints=null,t.preMovePoint=null,t.shapeType="path",t.maskType="multi-mask",t}return r.prototype.getCurrentPoint=function(){var t=this.context.event;return{x:t.x,y:t.y}},r.prototype.emitEvent=function(t){var i="".concat(this.maskType,":").concat(t),n=this.context.view,a=this.context.event,o={type:this.shapeType,name:this.maskType,get:function(s){return o.hasOwnProperty(s)?o[s]:void 0}};n.emit(i,{target:o,maskShapes:this.maskShapes,multiPoints:this.recordPoints,x:a.x,y:a.y})},r.prototype.createMask=function(t){var i=this.context.view,n=this.recordPoints[t],a=this.getMaskAttrs(n),o=i.foregroundGroup.addShape({type:this.shapeType,name:"mask",draggable:!0,attrs:(0,g.__assign)({fill:"#C5D4EB",opacity:.3},a)});this.maskShapes.push(o)},r.prototype.getMaskPath=function(t){return[]},r.prototype.show=function(){this.maskShapes.length>0&&(this.maskShapes.forEach(function(t){return t.show()}),this.emitEvent("show"))},r.prototype.start=function(t){this.recordPointStart(),this.starting=!0,this.moving=!1;var i=this.recordPoints.length-1;this.createMask(i),this.updateShapesCapture(!1),this.updateMask(t==null?void 0:t.maskStyle),this.emitEvent("start")},r.prototype.moveStart=function(){this.moving=!0,this.preMovePoint=this.getCurrentPoint(),this.updateShapesCapture(!1)},r.prototype.move=function(){if(!(!this.moving||this.maskShapes.length===0)){var t=this.getCurrentPoint(),i=this.preMovePoint,n=t.x-i.x,a=t.y-i.y,o=this.getCurMaskShapeIndex();o>-1&&(this.recordPoints[o].forEach(function(s){s.x+=n,s.y+=a}),this.updateMask(),this.emitEvent("change"),this.preMovePoint=t)}},r.prototype.updateMask=function(t){var i=this;this.recordPoints.forEach(function(n,a){var o=(0,h.deepMix)({},i.getMaskAttrs(n),t);i.maskShapes[a].attr(o)})},r.prototype.resize=function(){this.starting&&this.maskShapes.length>0&&(this.recordPointContinue(),this.updateMask(),this.emitEvent("change"))},r.prototype.moveEnd=function(){this.moving=!1,this.preMovePoint=null,this.updateShapesCapture(!0)},r.prototype.end=function(){this.starting=!1,this.emitEvent("end"),this.updateShapesCapture(!0)},r.prototype.hide=function(){this.maskShapes.length>0&&(this.maskShapes.forEach(function(t){return t.hide()}),this.emitEvent("hide"))},r.prototype.remove=function(){var t=this.getCurMaskShapeIndex();t>-1&&(this.recordPoints.splice(t,1),this.maskShapes[t].remove(),this.maskShapes.splice(t,1),this.preMovePoint=null,this.updateShapesCapture(!0),this.emitEvent("change"))},r.prototype.clearAll=function(){this.recordPointClear(),this.maskShapes.forEach(function(t){return t.remove()}),this.maskShapes=[],this.preMovePoint=null},r.prototype.clear=function(){var t=this.getCurMaskShapeIndex();t===-1?(this.recordPointClear(),this.maskShapes.forEach(function(i){return i.remove()}),this.maskShapes=[],this.emitEvent("clearAll")):(this.recordPoints.splice(t,1),this.maskShapes[t].remove(),this.maskShapes.splice(t,1),this.preMovePoint=null,this.emitEvent("clearSingle")),this.preMovePoint=null},r.prototype.destroy=function(){this.clear(),e.prototype.destroy.call(this)},r.prototype.getRecordPoints=function(){var t;return(0,g.__spreadArray)([],(0,g.__read)((t=this.recordPoints)!==null&&t!==void 0?t:[]),!1)},r.prototype.recordPointStart=function(){var t=this.getRecordPoints(),i=this.getCurrentPoint();this.recordPoints=(0,g.__spreadArray)((0,g.__spreadArray)([],(0,g.__read)(t),!1),[[i]],!1)},r.prototype.recordPointContinue=function(){var t=this.getRecordPoints(),i=this.getCurrentPoint(),n=t.splice(-1,1)[0]||[];n.push(i),this.recordPoints=(0,g.__spreadArray)((0,g.__spreadArray)([],(0,g.__read)(t),!1),[n],!1)},r.prototype.recordPointClear=function(){this.recordPoints=[]},r.prototype.updateShapesCapture=function(t){this.maskShapes.forEach(function(i){return i.set("capture",t)})},r.prototype.getCurMaskShapeIndex=function(){var t=this.getCurrentPoint();return this.maskShapes.findIndex(function(i){var n=i.attrs,a=n.width,o=n.height,s=n.r,l=a===0||o===0||s===0;return!l&&i.isHit(t.x,t.y)})},r}(ne),us=yw,mw=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.shapeType="rect",t}return r.prototype.getRegion=function(t){return Uc(t)},r.prototype.getMaskAttrs=function(t){var i=this.getRegion(t),n=i.start,a=i.end;return jc(n,a)},r}(us),eh=mw,xw=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.dim="x",t.inPlot=!0,t}return r.prototype.getRegion=function(t){var i=this.context.view.getCoordinate();return qc(t,this.dim,this.inPlot,i)},r}(eh),rh=xw,_w=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.shapeType="circle",t.getMaskAttrs=Xc,t}return r}(us),ww=_w,bw=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.getMaskPath=ss,t.getMaskAttrs=Qc,t}return r.prototype.addPoint=function(){this.resize()},r}(us),ih=bw,Sw=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.getMaskPath=ls,t.getMaskAttrs=th,t}return r}(ih),Cw=Sw,Aw=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.setCursor=function(t){var i=this.context.view;i.getCanvas().setCursor(t)},r.prototype.default=function(){this.setCursor("default")},r.prototype.pointer=function(){this.setCursor("pointer")},r.prototype.move=function(){this.setCursor("move")},r.prototype.crosshair=function(){this.setCursor("crosshair")},r.prototype.wait=function(){this.setCursor("wait")},r.prototype.help=function(){this.setCursor("help")},r.prototype.text=function(){this.setCursor("text")},r.prototype.eResize=function(){this.setCursor("e-resize")},r.prototype.wResize=function(){this.setCursor("w-resize")},r.prototype.nResize=function(){this.setCursor("n-resize")},r.prototype.sResize=function(){this.setCursor("s-resize")},r.prototype.neResize=function(){this.setCursor("ne-resize")},r.prototype.nwResize=function(){this.setCursor("nw-resize")},r.prototype.seResize=function(){this.setCursor("se-resize")},r.prototype.swResize=function(){this.setCursor("sw-resize")},r.prototype.nsResize=function(){this.setCursor("ns-resize")},r.prototype.ewResize=function(){this.setCursor("ew-resize")},r.prototype.zoomIn=function(){this.setCursor("zoom-in")},r.prototype.zoomOut=function(){this.setCursor("zoom-out")},r}(ne),Mw=Aw,Fw=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.filterView=function(t,i,n){var a=this;t.getScaleByField(i)&&t.filter(i,n),t.views&&t.views.length&&(0,h.each)(t.views,function(o){a.filterView(o,i,n)})},r.prototype.filter=function(){var t=zr(this.context);if(t){var i=this.context.view,n=t.component,a=n.get("field");if($i(t)){if(a){var o=n.getItemsByState("unchecked"),s=fi(i,a),l=o.map(function(d){return d.name});l.length?this.filterView(i,a,function(d){var p=s.getText(d);return!l.includes(p)}):this.filterView(i,a,null),i.render(!0)}}else if(fu(t)){var u=n.getValue(),c=(0,g.__read)(u,2),f=c[0],v=c[1];this.filterView(i,a,function(d){return d>=f&&d<=v}),i.render(!0)}}},r}(ne),Ew=Fw;function nh(e,r,t,i){var n=Math.min(t[r],i[r]),a=Math.max(t[r],i[r]),o=(0,g.__read)(e.range,2),s=o[0],l=o[1];if(nl&&(a=l),n===l&&a===l)return null;var u=e.invert(n),c=e.invert(a);if(e.isCategory){var f=e.values.indexOf(u),v=e.values.indexOf(c),d=e.values.slice(f,v+1);return function(p){return d.includes(p)}}else return function(p){return p>=u&&p<=c}}var De;(function(e){e.FILTER="brush-filter-processing",e.RESET="brush-filter-reset",e.BEFORE_FILTER="brush-filter:beforefilter",e.AFTER_FILTER="brush-filter:afterfilter",e.BEFORE_RESET="brush-filter:beforereset",e.AFTER_RESET="brush-filter:afterreset"})(De||(De={}));var Tw=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.dims=["x","y"],t.startPoint=null,t.isStarted=!1,t}return r.prototype.hasDim=function(t){return this.dims.includes(t)},r.prototype.start=function(){var t=this.context;this.isStarted=!0,this.startPoint=t.getCurrentPoint()},r.prototype.filter=function(){var t,i;if(Qi(this.context)){var n=this.context.event.target,a=n.getCanvasBBox();t={x:a.x,y:a.y},i={x:a.maxX,y:a.maxY}}else{if(!this.isStarted)return;t=this.startPoint,i=this.context.getCurrentPoint()}if(!(Math.abs(t.x-i.x)<5||Math.abs(t.x-i.y)<5)){var o=this.context,s=o.view,l=o.event,u={view:s,event:l,dims:this.dims};s.emit(De.BEFORE_FILTER,ue.fromData(s,De.BEFORE_FILTER,u));var c=s.getCoordinate(),f=c.invert(i),v=c.invert(t);if(this.hasDim("x")){var d=s.getXScale(),p=nh(d,"x",f,v);this.filterView(s,d.field,p)}if(this.hasDim("y")){var y=s.getYScales()[0],p=nh(y,"y",f,v);this.filterView(s,y.field,p)}this.reRender(s,{source:De.FILTER}),s.emit(De.AFTER_FILTER,ue.fromData(s,De.AFTER_FILTER,u))}},r.prototype.end=function(){this.isStarted=!1},r.prototype.reset=function(){var t=this.context.view;if(t.emit(De.BEFORE_RESET,ue.fromData(t,De.BEFORE_RESET,{})),this.isStarted=!1,this.hasDim("x")){var i=t.getXScale();this.filterView(t,i.field,null)}if(this.hasDim("y")){var n=t.getYScales()[0];this.filterView(t,n.field,null)}this.reRender(t,{source:De.RESET}),t.emit(De.AFTER_RESET,ue.fromData(t,De.AFTER_RESET,{}))},r.prototype.filterView=function(t,i,n){t.filter(i,n)},r.prototype.reRender=function(t,i){t.render(!0,i)},r}(ne),da=Tw,Lw=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.filterView=function(t,i,n){var a=Qe(t);(0,h.each)(a,function(o){o.filter(i,n)})},r.prototype.reRender=function(t){var i=Qe(t);(0,h.each)(i,function(n){n.render(!0)})},r}(da),cs=Lw,Ow=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.filter=function(){var t=zr(this.context),i=this.context.view,n=Ce(i);if(Qi(this.context)){var a=bo(this.context,10);a&&(0,h.each)(n,function(y){a.includes(y)?y.show():y.hide()})}else if(t){var o=t.component,s=o.get("field");if($i(t)){if(s){var l=o.getItemsByState("unchecked"),u=fi(i,s),c=l.map(function(y){return y.name});(0,h.each)(n,function(y){var m=je(y,s),x=u.getText(m);c.indexOf(x)>=0?y.hide():y.show()})}}else if(fu(t)){var f=o.getValue(),v=(0,g.__read)(f,2),d=v[0],p=v[1];(0,h.each)(n,function(y){var m=je(y,s);m>=d&&m<=p?y.show():y.hide()})}}},r.prototype.clear=function(){var t=Ce(this.context.view);(0,h.each)(t,function(i){i.show()})},r.prototype.reset=function(){this.clear()},r}(ne),Iw=Ow,Pw=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.byRecord=!1,t}return r.prototype.filter=function(){Qi(this.context)&&(this.byRecord?this.filterByRecord():this.filterByBBox())},r.prototype.filterByRecord=function(){var t=this.context.view,i=bo(this.context,10);if(!!i){var n=t.getXScale().field,a=t.getYScales()[0].field,o=i.map(function(l){return l.getModel().data}),s=Qe(t);(0,h.each)(s,function(l){var u=Ce(l);(0,h.each)(u,function(c){var f=c.getModel().data;_u(o,f,n,a)?c.show():c.hide()})})}},r.prototype.filterByBBox=function(){var t=this,i=this.context.view,n=Qe(i);(0,h.each)(n,function(a){var o=vu(t.context,a,10),s=Ce(a);o&&(0,h.each)(s,function(l){o.includes(l)?l.show():l.hide()})})},r.prototype.reset=function(){var t=Qe(this.context.view);(0,h.each)(t,function(i){var n=Ce(i);(0,h.each)(n,function(a){a.show()})})},r}(ne),ah=Pw,kw=10,Dw=5,Bw=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.buttonGroup=null,t.buttonCfg={name:"button",text:"button",textStyle:{x:0,y:0,fontSize:12,fill:"#333333",cursor:"pointer"},padding:[8,10],style:{fill:"#f7f7f7",stroke:"#cccccc",cursor:"pointer"},activeStyle:{fill:"#e6e6e6"}},t}return r.prototype.getButtonCfg=function(){return(0,h.deepMix)(this.buttonCfg,this.cfg)},r.prototype.drawButton=function(){var t=this.getButtonCfg(),i=this.context.view.foregroundGroup.addGroup({name:t.name}),n=i.addShape({type:"text",name:"button-text",attrs:(0,g.__assign)({text:t.text},t.textStyle)}),a=n.getBBox(),o=Eo(t.padding),s=i.addShape({type:"rect",name:"button-rect",attrs:(0,g.__assign)({x:a.x-o[3],y:a.y-o[0],width:a.width+o[1]+o[3],height:a.height+o[0]+o[2]},t.style)});s.toBack(),i.on("mouseenter",function(){s.attr(t.activeStyle)}),i.on("mouseleave",function(){s.attr(t.style)}),this.buttonGroup=i},r.prototype.resetPosition=function(){var t=this.context.view,i=t.getCoordinate(),n=i.convert({x:1,y:1}),a=this.buttonGroup,o=a.getBBox(),s=ie.vs(null,[["t",n.x-o.width-kw,n.y+o.height+Dw]]);a.setMatrix(s)},r.prototype.show=function(){this.buttonGroup||this.drawButton(),this.resetPosition(),this.buttonGroup.show()},r.prototype.hide=function(){this.buttonGroup&&this.buttonGroup.hide()},r.prototype.destroy=function(){var t=this.buttonGroup;t&&t.remove(),e.prototype.destroy.call(this)},r}(ne),Rw=Bw,Nw=4,zw=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.starting=!1,t.dragStart=!1,t}return r.prototype.start=function(){this.starting=!0,this.startPoint=this.context.getCurrentPoint()},r.prototype.drag=function(){if(!!this.startPoint){var t=this.context.getCurrentPoint(),i=this.context.view,n=this.context.event;this.dragStart?i.emit("drag",{target:n.target,x:n.x,y:n.y}):So(t,this.startPoint)>Nw&&(i.emit("dragstart",{target:n.target,x:n.x,y:n.y}),this.dragStart=!0)}},r.prototype.end=function(){if(this.dragStart){var t=this.context.view,i=this.context.event;t.emit("dragend",{target:i.target,x:i.x,y:i.y})}this.starting=!1,this.dragStart=!1},r}(ne),Vw=zw,Gw=5,Ww=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.starting=!1,t.isMoving=!1,t.startPoint=null,t.startMatrix=null,t}return r.prototype.start=function(){this.starting=!0,this.startPoint=this.context.getCurrentPoint(),this.startMatrix=this.context.view.middleGroup.getMatrix()},r.prototype.move=function(){if(!!this.starting){var t=this.startPoint,i=this.context.getCurrentPoint(),n=So(t,i);if(n>Gw&&!this.isMoving&&(this.isMoving=!0),this.isMoving){var a=this.context.view,o=ie.vs(this.startMatrix,[["t",i.x-t.x,i.y-t.y]]);a.backgroundGroup.setMatrix(o),a.foregroundGroup.setMatrix(o),a.middleGroup.setMatrix(o)}}},r.prototype.end=function(){this.isMoving&&(this.isMoving=!1),this.startMatrix=null,this.starting=!1,this.startPoint=null},r.prototype.reset=function(){this.starting=!1,this.startPoint=null,this.isMoving=!1;var t=this.context.view;t.backgroundGroup.resetMatrix(),t.foregroundGroup.resetMatrix(),t.middleGroup.resetMatrix(),this.isMoving=!1},r}(ne),Hw=Ww,oh="x",sh="y",Yw=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.dims=[oh,sh],t.cfgFields=["dims"],t.cacheScaleDefs={},t}return r.prototype.hasDim=function(t){return this.dims.includes(t)},r.prototype.getScale=function(t){var i=this.context.view;return t==="x"?i.getXScale():i.getYScales()[0]},r.prototype.resetDim=function(t){var i=this.context.view;if(this.hasDim(t)&&this.cacheScaleDefs[t]){var n=this.getScale(t);i.scale(n.field,this.cacheScaleDefs[t]),this.cacheScaleDefs[t]=null}},r.prototype.reset=function(){this.resetDim(oh),this.resetDim(sh);var t=this.context.view;t.render(!0)},r}(ne),lh=Yw,Xw=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.startPoint=null,t.starting=!1,t.startCache={},t}return r.prototype.start=function(){var t=this;this.startPoint=this.context.getCurrentPoint(),this.starting=!0;var i=this.dims;(0,h.each)(i,function(n){var a=t.getScale(n),o=a.min,s=a.max,l=a.values;t.startCache[n]={min:o,max:s,values:l}})},r.prototype.end=function(){this.startPoint=null,this.starting=!1,this.startCache={}},r.prototype.translate=function(){var t=this;if(!!this.starting){var i=this.startPoint,n=this.context.view.getCoordinate(),a=this.context.getCurrentPoint(),o=n.invert(i),s=n.invert(a),l=s.x-o.x,u=s.y-o.y,c=this.context.view,f=this.dims;(0,h.each)(f,function(v){t.translateDim(v,{x:l*-1,y:u*-1})}),c.render(!0)}},r.prototype.translateDim=function(t,i){if(this.hasDim(t)){var n=this.getScale(t);n.isLinear&&this.translateLinear(t,n,i)}},r.prototype.translateLinear=function(t,i,n){var a=this.context.view,o=this.startCache[t],s=o.min,l=o.max,u=l-s,c=n[t]*u;this.cacheScaleDefs[t]||(this.cacheScaleDefs[t]={nice:i.nice,min:s,max:l}),a.scale(i.field,{nice:!1,min:s+c,max:l+c})},r.prototype.reset=function(){e.prototype.reset.call(this),this.startPoint=null,this.starting=!1},r}(lh),Uw=Xw,jw=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.zoomRatio=.05,t}return r.prototype.zoomIn=function(){this.zoom(this.zoomRatio)},r.prototype.zoom=function(t){var i=this,n=this.dims;(0,h.each)(n,function(a){i.zoomDim(a,t)}),this.context.view.render(!0)},r.prototype.zoomOut=function(){this.zoom(-1*this.zoomRatio)},r.prototype.zoomDim=function(t,i){if(this.hasDim(t)){var n=this.getScale(t);n.isLinear&&this.zoomLinear(t,n,i)}},r.prototype.zoomLinear=function(t,i,n){var a=this.context.view;this.cacheScaleDefs[t]||(this.cacheScaleDefs[t]={nice:i.nice,min:i.min,max:i.max});var o=this.cacheScaleDefs[t],s=o.max-o.min,l=i.min,u=i.max,c=n*s,f=l-c,v=u+c,d=v-f,p=d/s;v>f&&p<100&&p>.01&&a.scale(i.field,{nice:!1,min:l-c,max:u+c})},r}(lh),Zw=jw;function Kw(e){var r=e.gEvent.originalEvent;return r.deltaY>0}var qw=1,$w=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.scroll=function(t){var i=this.context,n=i.view,a=i.event;if(!!n.getOptions().scrollbar){var o=(t==null?void 0:t.wheelDelta)||qw,s=n.getController("scrollbar"),l=n.getXScale(),u=n.getOptions().data,c=(0,h.size)((0,h.valuesOfKey)(u,l.field)),f=(0,h.size)(l.values),v=s.getValue(),d=Math.floor((c-f)*v),p=d+(Kw(a)?o:-o),y=o/(c-f)/1e4,m=(0,h.clamp)(p/(c-f)+y,0,1);s.setValue(m)}},r}(ne),Qw=$w,Jw="aixs-description-tooltip",tb=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.show=function(){var t=this.context,i=zr(t).axis,n=i.cfg.title,a=n.description,o=n.text,s=n.descriptionTooltipStyle,l=t.event,u=l.x,c=l.y;this.tooltip||this.renderTooltip(),this.tooltip.update({title:o||"",customContent:function(){return` -
    -
    - \u5B57\u6BB5\u8BF4\u660E\uFF1A`).concat(a,` -
    -
    - `)},x:u,y:c}),this.tooltip.show()},r.prototype.destroy=function(){e.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},r.prototype.hide=function(){this.tooltip&&this.tooltip.hide()},r.prototype.renderTooltip=function(){var t,i=this.context.view,n=i.canvas,a={start:{x:0,y:0},end:{x:n.get("width"),y:n.get("height")}},o=new Gn({parent:n.get("el").parentNode,region:a,visible:!1,containerId:Jw,domStyles:(0,g.__assign)({},(0,h.deepMix)({},(t={},t[sr]={"max-width":"50%",padding:"10px","line-height":"15px","font-size":"12px",color:"rgba(0, 0, 0, .65)"},t[lr]={"word-break":"break-all","margin-bottom":"3px"},t)))});o.init(),o.setCapture(!1),this.tooltip=o},r}(ne),eb=tb;jy("dark",Cu(H0)),jt("canvas",rc),jt("svg",Y0),Je("Polygon",fm),Je("Interval",nm),Je("Schema",dm),Je("Path",Ro),Je("Point",um),Je("Line",om),Je("Area",Z0),Je("Edge",q0),Je("Heatmap",Q0),Je("Violin",ym),tn("base",ea),tn("interval",km),tn("pie",Rm),tn("polar",hc),Pe("overlap",$m),Pe("distribute",zm),Pe("fixed-overlap",qm),Pe("hide-overlap",sx),Pe("limit-in-shape",Um),Pe("limit-in-canvas",Xm),Pe("limit-in-plot",Cx),Pe("pie-outer",Gm),Pe("adjust-color",ux),Pe("interval-adjust-position",vx),Pe("interval-hide-overlap",gx),Pe("point-adjust-position",mx),Pe("pie-spider",Ym),Pe("path-adjust-position",wx),ze("fade-in",Ax),ze("fade-out",Mx),ze("grow-in-x",Ex),ze("grow-in-xy",Lx),ze("grow-in-y",Tx),ze("scale-in-x",Px),ze("scale-in-y",kx),ze("wave-in",Bx),ze("zoom-in",Rx),ze("zoom-out",Nx),ze("position-update",Ix),ze("sector-path-update",Dx),ze("path-in",Ox),hi("rect",Zx),hi("mirror",Ux),hi("list",Wx),hi("matrix",Yx),hi("circle",Vx),hi("tree",qx),Vr("axis",e_),Vr("legend",o_),Vr("tooltip",Pu),Vr("annotation",Jx),Vr("slider",l_),Vr("scrollbar",f_),yt("tooltip",Nc),yt("sibling-tooltip",x_),yt("ellipsis-text",w_),yt("element-active",A_),yt("element-single-active",P_),yt("element-range-active",L_),yt("element-highlight",is),yt("element-highlight-by-x",N_),yt("element-highlight-by-color",B_),yt("element-single-highlight",G_),yt("element-range-highlight",Gc),yt("element-sibling-highlight",Gc,{effectSiblings:!0,effectByRecord:!0}),yt("element-selected",X_),yt("element-single-selected",j_),yt("element-range-selected",H_),yt("element-link-by-color",F_),yt("active-region",p_),yt("list-active",q_),yt("list-selected",tw),yt("list-highlight",ns),yt("list-unchecked",rw),yt("list-checked",nw),yt("list-focus",ow),yt("list-radio",lw),yt("legend-item-highlight",ns,{componentNames:["legend"]}),yt("axis-label-highlight",ns,{componentNames:["axis"]}),yt("axis-description",eb),yt("rect-mask",Zc),yt("x-rect-mask",$c,{dim:"x"}),yt("y-rect-mask",$c,{dim:"y"}),yt("circle-mask",hw),yt("path-mask",Jc),yt("smooth-path-mask",pw),yt("rect-multi-mask",eh),yt("x-rect-multi-mask",rh,{dim:"x"}),yt("y-rect-multi-mask",rh,{dim:"y"}),yt("circle-multi-mask",ww),yt("path-multi-mask",ih),yt("smooth-path-multi-mask",Cw),yt("cursor",Mw),yt("data-filter",Ew),yt("brush",da),yt("brush-x",da,{dims:["x"]}),yt("brush-y",da,{dims:["y"]}),yt("sibling-filter",cs),yt("sibling-x-filter",cs),yt("sibling-y-filter",cs),yt("element-filter",Iw),yt("element-sibling-filter",ah),yt("element-sibling-filter-record",ah,{byRecord:!0}),yt("view-drag",Vw),yt("view-move",Hw),yt("scale-translate",Uw),yt("scale-zoom",Zw),yt("reset-button",Rw,{name:"reset-button",text:"reset"}),yt("mousewheel-scroll",Qw);function hr(e){return e.isInPlot()}It("tooltip",{start:[{trigger:"plot:mousemove",action:"tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"plot:touchmove",action:"tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:"plot:mouseleave",action:"tooltip:hide"},{trigger:"plot:leave",action:"tooltip:hide"},{trigger:"plot:touchend",action:"tooltip:hide"}]}),It("ellipsis-text",{start:[{trigger:"legend-item-name:mousemove",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"legend-item-name:touchstart",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"axis-label:mousemove",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"axis-label:touchstart",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:"legend-item-name:mouseleave",action:"ellipsis-text:hide"},{trigger:"legend-item-name:touchend",action:"ellipsis-text:hide"},{trigger:"axis-label:mouseleave",action:"ellipsis-text:hide"},{trigger:"axis-label:mouseout",action:"ellipsis-text:hide"},{trigger:"axis-label:touchend",action:"ellipsis-text:hide"}]}),It("element-active",{start:[{trigger:"element:mouseenter",action:"element-active:active"}],end:[{trigger:"element:mouseleave",action:"element-active:reset"}]}),It("element-selected",{start:[{trigger:"element:click",action:"element-selected:toggle"}]}),It("element-highlight",{start:[{trigger:"element:mouseenter",action:"element-highlight:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight:reset"}]}),It("element-highlight-by-x",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-x:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-x:reset"}]}),It("element-highlight-by-color",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-color:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-color:reset"}]}),It("legend-active",{start:[{trigger:"legend-item:mouseenter",action:["list-active:active","element-active:active"]}],end:[{trigger:"legend-item:mouseleave",action:["list-active:reset","element-active:reset"]}]}),It("legend-highlight",{start:[{trigger:"legend-item:mouseenter",action:["legend-item-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"legend-item:mouseleave",action:["legend-item-highlight:reset","element-highlight:reset"]}]}),It("axis-label-highlight",{start:[{trigger:"axis-label:mouseenter",action:["axis-label-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"axis-label:mouseleave",action:["axis-label-highlight:reset","element-highlight:reset"]}]}),It("element-list-highlight",{start:[{trigger:"element:mouseenter",action:["list-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"element:mouseleave",action:["list-highlight:reset","element-highlight:reset"]}]}),It("element-range-highlight",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"mask:mouseenter",action:"cursor:move"},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"plot:mousedown",isEnable:function(e){return!e.isInShape("mask")},action:["rect-mask:start","rect-mask:show"]},{trigger:"mask:dragstart",action:["rect-mask:moveStart"]}],processing:[{trigger:"plot:mousemove",action:["rect-mask:resize"]},{trigger:"mask:drag",action:["rect-mask:move"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:["rect-mask:end"]},{trigger:"mask:dragend",action:["rect-mask:moveEnd"]},{trigger:"document:mouseup",isEnable:function(e){return!e.isInPlot()},action:["element-range-highlight:clear","rect-mask:end","rect-mask:hide"]}],rollback:[{trigger:"dblclick",action:["element-range-highlight:clear","rect-mask:hide"]}]}),It("brush",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:hr,action:["brush:start","rect-mask:start","rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:hr,action:["rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:hr,action:["brush:filter","brush:end","rect-mask:end","rect-mask:hide","reset-button:show"]}],rollback:[{trigger:"reset-button:click",action:["brush:reset","reset-button:hide","cursor:crosshair"]}]}),It("brush-visible",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"plot:mousedown",action:["rect-mask:start","rect-mask:show"]}],processing:[{trigger:"plot:mousemove",action:["rect-mask:resize"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:["rect-mask:end","rect-mask:hide","element-filter:filter","element-range-highlight:clear"]}],rollback:[{trigger:"dblclick",action:["element-filter:clear"]}]}),It("brush-x",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:hr,action:["brush-x:start","x-rect-mask:start","x-rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:hr,action:["x-rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:hr,action:["brush-x:filter","brush-x:end","x-rect-mask:end","x-rect-mask:hide"]}],rollback:[{trigger:"dblclick",action:["brush-x:reset"]}]}),It("element-path-highlight",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:hr,action:"path-mask:start"},{trigger:"mousedown",isEnable:hr,action:"path-mask:show"}],processing:[{trigger:"mousemove",action:"path-mask:addPoint"}],end:[{trigger:"mouseup",action:"path-mask:end"}],rollback:[{trigger:"dblclick",action:"path-mask:hide"}]}),It("brush-x-multi",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"mask:mouseenter",action:"cursor:move"},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"mousedown",isEnable:hr,action:["x-rect-multi-mask:start","x-rect-multi-mask:show"]},{trigger:"mask:dragstart",action:["x-rect-multi-mask:moveStart"]}],processing:[{trigger:"mousemove",isEnable:function(e){return!Kn(e)},action:["x-rect-multi-mask:resize"]},{trigger:"multi-mask:change",action:"element-range-highlight:highlight"},{trigger:"mask:drag",action:["x-rect-multi-mask:move"]}],end:[{trigger:"mouseup",action:["x-rect-multi-mask:end"]},{trigger:"mask:dragend",action:["x-rect-multi-mask:moveEnd"]}],rollback:[{trigger:"dblclick",action:["x-rect-multi-mask:clear","cursor:crosshair"]},{trigger:"multi-mask:clearAll",action:["element-range-highlight:clear"]},{trigger:"multi-mask:clearSingle",action:["element-range-highlight:highlight"]}]}),It("element-single-selected",{start:[{trigger:"element:click",action:"element-single-selected:toggle"}]}),It("legend-filter",{showEnable:[{trigger:"legend-item:mouseenter",action:["cursor:pointer","list-radio:show"]},{trigger:"legend-item:mouseleave",action:["cursor:default","list-radio:hide"]}],start:[{trigger:"legend-item:click",isEnable:function(e){return!e.isInShape("legend-item-radio")},action:["legend-item-highlight:reset","element-highlight:reset","list-unchecked:toggle","data-filter:filter","list-radio:show"]},{trigger:"legend-item-radio:mouseenter",action:["list-radio:showTip"]},{trigger:"legend-item-radio:mouseleave",action:["list-radio:hideTip"]},{trigger:"legend-item-radio:click",action:["list-focus:toggle","data-filter:filter","list-radio:show"]}]}),It("continuous-filter",{start:[{trigger:"legend:valuechanged",action:"data-filter:filter"}]}),It("continuous-visible-filter",{start:[{trigger:"legend:valuechanged",action:"element-filter:filter"}]}),It("legend-visible-filter",{showEnable:[{trigger:"legend-item:mouseenter",action:"cursor:pointer"},{trigger:"legend-item:mouseleave",action:"cursor:default"}],start:[{trigger:"legend-item:click",action:["legend-item-highlight:reset","element-highlight:reset","list-unchecked:toggle","element-filter:filter"]}]}),It("active-region",{start:[{trigger:"plot:mousemove",action:"active-region:show"}],end:[{trigger:"plot:mouseleave",action:"active-region:hide"}]}),It("axis-description",{start:[{trigger:"axis-description:mousemove",action:"axis-description:show"}],end:[{trigger:"axis-description:mouseleave",action:"axis-description:hide"}]});function uh(e){return e.gEvent.preventDefault(),e.gEvent.originalEvent.deltaY>0}It("view-zoom",{start:[{trigger:"plot:mousewheel",isEnable:function(e){return uh(e.event)},action:"scale-zoom:zoomOut",throttle:{wait:100,leading:!0,trailing:!1}},{trigger:"plot:mousewheel",isEnable:function(e){return!uh(e.event)},action:"scale-zoom:zoomIn",throttle:{wait:100,leading:!0,trailing:!1}}]}),It("sibling-tooltip",{start:[{trigger:"plot:mousemove",action:"sibling-tooltip:show"}],end:[{trigger:"plot:mouseleave",action:"sibling-tooltip:hide"}]}),It("plot-mousewheel-scroll",{start:[{trigger:"plot:mousewheel",action:"mousewheel-scroll:scroll"}]});var Be=["type","alias","tickCount","tickInterval","min","max","nice","minLimit","maxLimit","range","tickMethod","base","exponent","mask","sync"],Ke;(function(e){e.ERROR="error",e.WARN="warn",e.INFO="log"})(Ke||(Ke={}));var ch="AntV/G2Plot";function hh(e){for(var r=[],t=1;t=0}),n=t.every(function(a){return(0,h.get)(a,[r])<=0});return i?{min:0}:n?{max:0}:{}}function fh(e,r,t,i,n){if(n===void 0&&(n=[]),!Array.isArray(e))return{nodes:[],links:[]};var a=[],o={},s=-1;return e.forEach(function(l){var u=l[r],c=l[t],f=l[i],v=$t(l,n);o[u]||(o[u]=(0,g.__assign)({id:++s,name:u},v)),o[c]||(o[c]=(0,g.__assign)({id:++s,name:c},v)),a.push((0,g.__assign)({source:o[u].id,target:o[c].id,value:f},v))}),{nodes:Object.values(o).sort(function(l,u){return l.id-u.id}),links:a}}function xi(e,r){var t=(0,h.filter)(e,function(i){var n=i[r];return n===null||typeof n=="number"&&!isNaN(n)});return fr(Ke.WARN,t.length===e.length,"illegal data existed in chart data."),t}var rb=5,ib={}.toString,vh=function(e,r){return ib.call(e)==="[object "+r+"]"},nb=function(e){return vh(e,"Array")},ab=function(e){return typeof e=="object"&&e!==null},dh=function(e){if(!ab(e)||!vh(e,"Object"))return!1;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(e)===r},gh=function(e,r,t,i){t=t||0,i=i||rb;for(var n in r)if(Object.prototype.hasOwnProperty.call(r,n)){var a=r[n];a?dh(a)?(dh(e[n])||(e[n]={}),t=i&&e<=n}function Tr(e){if((0,h.isNumber)(e))return[e,e,e,e];if((0,h.isArray)(e)){var r=e.length;if(r===1)return[e[0],e[0],e[0],e[0]];if(r===2)return[e[0],e[1],e[0],e[1]];if(r===3)return[e[0],e[1],e[2],e[1]];if(r===4)return e}return[0,0,0,0]}function pa(e,r,t){r===void 0&&(r="bottom"),t===void 0&&(t=25);var i=Tr(e),n=[r.startsWith("top")?t:0,r.startsWith("right")?t:0,r.startsWith("bottom")?t:0,r.startsWith("left")?t:0];return[i[0]+n[0],i[1]+n[1],i[2]+n[2],i[3]+n[3]]}function ds(e){var r=e.map(function(i){return Tr(i)}),t=[0,0,0,0];return r.length>0&&(t=t.map(function(i,n){return r.forEach(function(a,o){i+=r[o][n]}),i})),t}function ub(e,r){var t=[];if(e.length){t.push(["M",e[0].x,e[0].y]);for(var i=1,n=e.length;i"},key:(l===0?"top":"bottom")+"-statistic"},$t(s,["offsetX","offsetY","rotate","style","formatter"])))}})},vb=function(e,r,t){var i=r.statistic,n=i.title,a=i.content;[n,a].forEach(function(o){if(!!o){var s=(0,h.isFunction)(o.style)?o.style(t):o.style;e.annotation().html((0,g.__assign)({position:["50%","100%"],html:function(l,u){var c=u.getCoordinate(),f=u.views[0].getCoordinate(),v=f.getCenter(),d=f.getRadius(),p=Math.max(Math.sin(f.startAngle),Math.sin(f.endAngle))*d,y=v.y+p-c.y.start-parseFloat((0,h.get)(s,"fontSize",0)),m=c.getRadius()*c.innerRadius*2;mh(l,(0,g.__assign)({width:m+"px",transform:"translate(-50%, "+y+"px)"},yh(s)));var x=u.getData();if(o.customHtml)return o.customHtml(l,u,t,x);var _=o.content;return o.formatter&&(_=o.formatter(t,x)),_?(0,h.isString)(_)?_:""+_:"
    "}},$t(o,["offsetX","offsetY","rotate","style","formatter"])))}})};function xh(e,r){return r?(0,h.reduce)(r,function(t,i,n){return t.replace(new RegExp("{\\s*"+n+"\\s*}","g"),i)},e):e}function Nt(e,r){return e.views.find(function(t){return t.id===r})}function un(e){var r=e.parent;return r?r.views:[]}function _h(e){return un(e).filter(function(r){return r!==e})}function cn(e,r,t){t===void 0&&(t=e.geometries),typeof r=="boolean"?e.animate(r):e.animate(!0),(0,h.each)(t,function(i){var n;(0,h.isFunction)(r)?n=r(i.type||i.shapeType,i)||!0:n=r,i.animate(n)})}function ma(){return typeof window=="object"?window==null?void 0:window.devicePixelRatio:2}function gs(e,r){r===void 0&&(r=e);var t=document.createElement("canvas"),i=ma();t.width=e*i,t.height=r*i,t.style.width=e+"px",t.style.height=r+"px";var n=t.getContext("2d");return n.scale(i,i),t}function ps(e,r,t,i){i===void 0&&(i=t);var n=r.backgroundColor,a=r.opacity;e.globalAlpha=a,e.fillStyle=n,e.beginPath(),e.fillRect(0,0,t,i),e.closePath()}function wh(e,r,t){var i=e+r;return t?i*2:i}function bh(e,r){var t=r?[[e*(1/4),e*(1/4)],[e*(3/4),e*(3/4)]]:[[e*(1/2),e*(1/2)]];return t}function ys(e,r){var t=r*Math.PI/180,i={a:Math.cos(t)*(1/e),b:Math.sin(t)*(1/e),c:-Math.sin(t)*(1/e),d:Math.cos(t)*(1/e),e:0,f:0};return i}var db={size:6,padding:2,backgroundColor:"transparent",opacity:1,rotation:0,fill:"#fff",fillOpacity:.5,stroke:"transparent",lineWidth:0,isStagger:!0};function gb(e,r,t,i){var n=r.size,a=r.fill,o=r.lineWidth,s=r.stroke,l=r.fillOpacity;e.beginPath(),e.globalAlpha=l,e.fillStyle=a,e.strokeStyle=s,e.lineWidth=o,e.arc(t,i,n/2,0,2*Math.PI,!1),e.fill(),o&&e.stroke(),e.closePath()}function pb(e){var r=I({},db,e),t=r.size,i=r.padding,n=r.isStagger,a=r.rotation,o=wh(t,i,n),s=bh(o,n),l=gs(o,o),u=l.getContext("2d");ps(u,r,o);for(var c=0,f=s;cw){var S=b/y.length,C=Math.max(1,Math.ceil(w/S)-1),A=y.slice(0,C)+"...";_.attr("text",A)}}}}function Ub(e,r,t){Yb(e,r,t),Xb(e,r,t)}function jb(e,r,t){return r===void 0&&(r=!0),t===void 0&&(t=!1),function(i){var n=i.options,a=i.chart,o=n.conversionTag,s=n.theme;return o&&!t&&(a.theme(I({},(0,h.isObject)(s)?s:Ji(s),{columnWidthRatio:1/3})),a.annotation().shape({render:function(l,u){var c=l.addGroup({id:a.id+"-conversion-tag-group",name:"conversion-tag-group"}),f=(0,h.find)(a.geometries,function(p){return p.type==="interval"}),v={view:u,geometry:f,group:c,field:e,horizontal:r,options:Hb(o,r)},d=f.elements;(0,h.each)(d,function(p,y){y>0&&Ub(v,d[y-1],p)})}})),i}}function Zb(e){var r=e.options,t=r.legend,i=r.seriesField,n=r.isStack;return i?t!==!1&&(t=(0,g.__assign)({position:n?"right-top":"top-left"},t)):t=!1,e.options.legend=t,e}function Kb(e){var r=e.chart,t=e.options,i=t.data,n=t.columnStyle,a=t.color,o=t.columnWidthRatio,s=t.isPercent,l=t.isGroup,u=t.isStack,c=t.xField,f=t.yField,v=t.seriesField,d=t.groupField,p=t.tooltip,y=t.shape,m=s&&l&&u?Tb(i,f,[c,d],f):fn(i,f,c,f,s),x=[];u&&v&&!l?m.forEach(function(b){var S=x.find(function(C){return C[c]===b[c]&&C[v]===b[v]});S?S[f]+=b[f]||0:x.push((0,g.__assign)({},b))}):x=m,r.data(x);var _=s?(0,g.__assign)({formatter:function(b){return{name:l&&u?b[v]+" - "+b[d]:b[v]||b[c],value:(Number(b[f])*100).toFixed(2)+"%"}}},p):p,w=I({},e,{options:{data:x,widthRatio:o,tooltip:_,interval:{shape:y,style:n,color:a}}});return Fe(w),w}function ws(e){var r,t,i=e.options,n=i.xAxis,a=i.yAxis,o=i.xField,s=i.yField,l=i.data,u=i.isPercent,c=u?{max:1,min:0,minLimit:0,maxLimit:1}:{};return Et(he((r={},r[o]=n,r[s]=a,r),(t={},t[o]={type:"cat"},t[s]=(0,g.__assign)((0,g.__assign)({},hs(l,s)),c),t)))(e)}function qb(e){var r=e.chart,t=e.options,i=t.xAxis,n=t.yAxis,a=t.xField,o=t.yField;return i===!1?r.axis(a,!1):r.axis(a,i),n===!1?r.axis(o,!1):r.axis(o,n),e}function $b(e){var r=e.chart,t=e.options,i=t.legend,n=t.seriesField;return i&&n?r.legend(n,i):i===!1&&r.legend(!1),e}function Qb(e){var r=e.chart,t=e.options,i=t.label,n=t.yField,a=t.isRange,o=Me(r,"interval");if(!i)o.label(!1);else{var s=i.callback,l=(0,g.__rest)(i,["callback"]);o.label({fields:[n],callback:s,cfg:(0,g.__assign)({layout:(l==null?void 0:l.position)?void 0:[{type:"interval-adjust-position"},{type:"interval-hide-overlap"},{type:"adjust-color"},{type:"limit-in-plot",cfg:{action:"hide"}}]},be(a?(0,g.__assign)({content:function(u){var c;return(c=u[n])===null||c===void 0?void 0:c.join("-")}},l):l))})}return e}function Jb(e){var r=e.chart,t=e.options,i=t.tooltip,n=t.isGroup,a=t.isStack,o=t.groupField,s=t.data,l=t.xField,u=t.yField,c=t.seriesField;if(i===!1)r.tooltip(!1);else{var f=i;if(n&&a){var v=f.customItems,d=(f==null?void 0:f.formatter)||function(p){return{name:p[c]+" - "+p[o],value:p[u]}};f=(0,g.__assign)((0,g.__assign)({},f),{customItems:function(p){var y=[];return(0,h.each)(p,function(m){var x=(0,h.filter)(s,function(_){return(0,h.isMatch)(_,$t(m.data,[l,c]))});x.forEach(function(_){y.push((0,g.__assign)((0,g.__assign)((0,g.__assign)({},m),{value:_[u],data:_,mappingData:{_origin:_}}),d(_)))})}),v?v(y):y}})}r.tooltip(f)}return e}function Ma(e,r){r===void 0&&(r=!1);var t=e.options,i=t.seriesField;return Et(Zb,Xt,Ve("columnStyle"),Lr,Sh("rect"),Kb,ws,qb,$b,Jb,hn,ms,Qb,Bh,oe,Qt,le(),jb(t.yField,!r,!!i),Wb(!t.isStack),jr)(e)}function tS(e){var r=e.options,t=r.xField,i=r.yField,n=r.xAxis,a=r.yAxis,o={left:"bottom",right:"top",top:"left",bottom:"right"},s=a!==!1?(0,g.__assign)({position:o[(a==null?void 0:a.position)||"left"]},a):!1,l=n!==!1?(0,g.__assign)({position:o[(n==null?void 0:n.position)||"bottom"]},n):!1;return(0,g.__assign)((0,g.__assign)({},e),{options:(0,g.__assign)((0,g.__assign)({},r),{xField:i,yField:t,xAxis:s,yAxis:l})})}function eS(e){var r=e.options,t=r.label;return t&&!t.position&&(t.position="left",t.layout||(t.layout=[{type:"interval-adjust-position"},{type:"interval-hide-overlap"},{type:"adjust-color"},{type:"limit-in-plot",cfg:{action:"hide"}}])),I({},e,{options:{label:t}})}function rS(e){var r=e.options,t=r.seriesField,i=r.isStack,n=r.legend;return t?n!==!1&&(n=(0,g.__assign)({position:i?"top-left":"right-top"},n||{})):n=!1,I({},e,{options:{legend:n}})}function iS(e){var r=e.options,t=[{type:"transpose"},{type:"reflectY"}].concat(r.coordinate||[]);return I({},e,{options:{coordinate:t}})}function nS(e){var r=e.chart,t=e.options,i=t.barStyle,n=t.barWidthRatio,a=t.minBarWidth,o=t.maxBarWidth,s=t.barBackground;return Ma({chart:r,options:(0,g.__assign)((0,g.__assign)({},t),{columnStyle:i,columnWidthRatio:n,minColumnWidth:a,maxColumnWidth:o,columnBackground:s})},!0)}function Nh(e){return Et(tS,eS,rS,me,iS,nS)(e)}var aS=I({},kt.getDefaultOptions(),{barWidthRatio:.6,marginRatio:1/32,tooltip:{shared:!0,showMarkers:!1,offset:20},legend:{radio:{}},interactions:[{type:"active-region"}]}),oS=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="bar",t}return r.getDefaultOptions=function(){return aS},r.prototype.changeData=function(t){var i,n;this.updateOption({data:t});var a=this,o=a.chart,s=a.options,l=s.isPercent,u=s.xField,c=s.yField,f=s.xAxis,v=s.yAxis;i=[c,u],u=i[0],c=i[1],n=[v,f],f=n[0],v=n[1];var d=(0,g.__assign)((0,g.__assign)({},s),{xField:u,yField:c,yAxis:v,xAxis:f});ws({chart:o,options:d}),o.changeData(fn(t,u,c,u,l))},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.getSchemaAdaptor=function(){return Nh},r}(kt),sS=I({},kt.getDefaultOptions(),{columnWidthRatio:.6,marginRatio:1/32,tooltip:{shared:!0,showMarkers:!1,offset:20},legend:{radio:{}},interactions:[{type:"active-region"}]}),zh=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="column",t}return r.getDefaultOptions=function(){return sS},r.prototype.changeData=function(t){this.updateOption({data:t});var i=this.options,n=i.yField,a=i.xField,o=i.isPercent,s=this,l=s.chart,u=s.options;ws({chart:l,options:u}),this.chart.changeData(fn(t,n,a,n,o))},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.getSchemaAdaptor=function(){return Ma},r}(kt),bs,Or="$$percentage$$",Ir="$$mappingValue$$",dr="$$conversion$$",Ss="$$totalPercentage$$",vn="$$x$$",dn="$$y$$",lS={appendPadding:[0,80],minSize:0,maxSize:1,meta:(bs={},bs[Ir]={min:0,max:1,nice:!1},bs),label:{style:{fill:"#fff",fontSize:12}},tooltip:{showTitle:!1,showMarkers:!1,shared:!1},conversionTag:{offsetX:10,offsetY:0,style:{fontSize:12,fill:"rgba(0,0,0,0.45)"}}},Vh="CONVERSION_TAG_NAME";function Cs(e,r,t){var i=[],n=t.yField,a=t.maxSize,o=t.minSize,s=(0,h.get)((0,h.maxBy)(r,n),[n]),l=(0,h.isNumber)(a)?a:1,u=(0,h.isNumber)(o)?o:0;return i=(0,h.map)(e,function(c,f){var v=(c[n]||0)/s;return c[Or]=v,c[Ir]=(l-u)*v+u,c[dr]=[(0,h.get)(e,[f-1,n]),c[n]],c}),i}function As(e){return function(r){var t=r.chart,i=r.options,n=i.conversionTag,a=i.filteredData,o=a||t.getOptions().data;if(n){var s=n.formatter;o.forEach(function(l,u){if(!(u<=0||Number.isNaN(l[Ir]))){var c=e(l,u,o,{top:!0,name:Vh,text:{content:(0,h.isFunction)(s)?s(l,o):s,offsetX:n.offsetX,offsetY:n.offsetY,position:"end",autoRotate:!1,style:(0,g.__assign)({textAlign:"start",textBaseline:"middle"},n.style)}});t.annotation().line(c)}})}return r}}function uS(e){var r=e.chart,t=e.options,i=t.data,n=i===void 0?[]:i,a=t.yField,o=t.maxSize,s=t.minSize,l=Cs(n,n,{yField:a,maxSize:o,minSize:s});return r.data(l),e}function cS(e){var r=e.chart,t=e.options,i=t.xField,n=t.yField,a=t.color,o=t.tooltip,s=t.label,l=t.shape,u=l===void 0?"funnel":l,c=t.funnelStyle,f=t.state,v=Ye(o,[i,n]),d=v.fields,p=v.formatter;Re({chart:r,options:{type:"interval",xField:i,yField:Ir,colorField:i,tooltipFields:(0,h.isArray)(d)&&d.concat([Or,dr]),mapping:{shape:u,tooltip:p,color:a,style:c},label:s,state:f}});var y=Me(e.chart,"interval");return y.adjust("symmetric"),e}function hS(e){var r=e.chart,t=e.options,i=t.isTransposed;return r.coordinate({type:"rect",actions:i?[]:[["transpose"],["scale",1,-1]]}),e}function Gh(e){var r=e.options,t=e.chart,i=r.maxSize,n=(0,h.get)(t,["geometries","0","dataArray"],[]),a=(0,h.get)(t,["options","data","length"]),o=(0,h.map)(n,function(l){return(0,h.get)(l,["0","nextPoints","0","x"])*a-.5}),s=function(l,u,c,f){var v=i-(i-l[Ir])/2;return(0,g.__assign)((0,g.__assign)({},f),{start:[o[u-1]||u-.5,v],end:[o[u-1]||u-.5,v+.05]})};return As(s)(e),e}function Wh(e){return Et(uS,cS,hS,Gh)(e)}function fS(e){var r,t=e.chart,i=e.options,n=i.data,a=n===void 0?[]:n,o=i.yField;return t.data(a),t.scale((r={},r[o]={sync:!0},r)),e}function vS(e){var r=e.chart,t=e.options,i=t.data,n=t.xField,a=t.yField,o=t.color,s=t.compareField,l=t.isTransposed,u=t.tooltip,c=t.maxSize,f=t.minSize,v=t.label,d=t.funnelStyle,p=t.state,y=t.showFacetTitle;return r.facet("mirror",{fields:[s],transpose:!l,padding:l?0:[32,0,0,0],showTitle:y,eachView:function(m,x){var _=l?x.rowIndex:x.columnIndex;l||m.coordinate({type:"rect",actions:[["transpose"],["scale",_===0?-1:1,-1]]});var w=Cs(x.data,i,{yField:a,maxSize:c,minSize:f});m.data(w);var b=Ye(u,[n,a,s]),S=b.fields,C=b.formatter,A=l?{offset:_===0?10:-23,position:_===0?"bottom":"top"}:{offset:10,position:"left",style:{textAlign:_===0?"end":"start"}};Re({chart:m,options:{type:"interval",xField:n,yField:Ir,colorField:n,tooltipFields:(0,h.isArray)(S)&&S.concat([Or,dr]),mapping:{shape:"funnel",tooltip:C,color:o,style:d},label:v===!1?!1:I({},A,v),state:p}})}}),e}function Hh(e){var r=e.chart,t=e.index,i=e.options,n=i.conversionTag,a=i.isTransposed;((0,h.isNumber)(t)?[r]:r.views).forEach(function(o,s){var l=(0,h.get)(o,["geometries","0","dataArray"],[]),u=(0,h.get)(o,["options","data","length"]),c=(0,h.map)(l,function(v){return(0,h.get)(v,["0","nextPoints","0","x"])*u-.5}),f=function(v,d,p,y){var m=(t||s)===0?-1:1;return I({},y,{start:[c[d-1]||d-.5,v[Ir]],end:[c[d-1]||d-.5,v[Ir]+.05],text:a?{style:{textAlign:"start"}}:{offsetX:n!==!1?m*n.offsetX:0,style:{textAlign:(t||s)===0?"end":"start"}}})};As(f)(I({},{chart:o,options:i}))})}function dS(e){var r=e.chart;return r.once("beforepaint",function(){return Hh(e)}),e}function gS(e){return Et(fS,vS,dS)(e)}function pS(e){var r=e.chart,t=e.options,i=t.data,n=i===void 0?[]:i,a=t.yField,o=(0,h.reduce)(n,function(u,c){return u+(c[a]||0)},0),s=(0,h.maxBy)(n,a)[a],l=(0,h.map)(n,function(u,c){var f=[],v=[];if(u[Ss]=(u[a]||0)/o,c){var d=n[c-1][vn],p=n[c-1][dn];f[0]=d[3],v[0]=p[3],f[1]=d[2],v[1]=p[2]}else f[0]=-.5,v[0]=1,f[1]=.5,v[1]=1;return v[2]=v[1]-u[Ss],f[2]=(v[2]+1)/4,v[3]=v[2],f[3]=-f[2],u[vn]=f,u[dn]=v,u[Or]=(u[a]||0)/s,u[dr]=[(0,h.get)(n,[c-1,a]),u[a]],u});return r.data(l),e}function yS(e){var r=e.chart,t=e.options,i=t.xField,n=t.yField,a=t.color,o=t.tooltip,s=t.label,l=t.funnelStyle,u=t.state,c=Ye(o,[i,n]),f=c.fields,v=c.formatter;return Re({chart:r,options:{type:"polygon",xField:vn,yField:dn,colorField:i,tooltipFields:(0,h.isArray)(f)&&f.concat([Or,dr]),label:s,state:u,mapping:{tooltip:v,color:a,style:l}}}),e}function mS(e){var r=e.chart,t=e.options,i=t.isTransposed;return r.coordinate({type:"rect",actions:i?[["transpose"],["reflect","x"]]:[]}),e}function xS(e){var r=function(t,i,n,a){return(0,g.__assign)((0,g.__assign)({},a),{start:[t[vn][1],t[dn][1]],end:[t[vn][1]+.05,t[dn][1]]})};return As(r)(e),e}function _S(e){return Et(pS,yS,mS,xS)(e)}function wS(e){var r,t=e.chart,i=e.options,n=i.data,a=n===void 0?[]:n,o=i.yField;return t.data(a),t.scale((r={},r[o]={sync:!0},r)),e}function bS(e){var r=e.chart,t=e.options,i=t.seriesField,n=t.isTransposed,a=t.showFacetTitle;return r.facet("rect",{fields:[i],padding:[n?0:32,10,0,10],showTitle:a,eachView:function(o,s){Wh(I({},e,{chart:o,options:{data:s.data}}))}}),e}function SS(e){return Et(wS,bS)(e)}var CS=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.rendering=!1,t}return r.prototype.change=function(t){var i=this;if(!this.rendering){var n=t.seriesField,a=t.compareField,o=a?Hh:Gh,s=this.context.view,l=n||a?s.views:[s];(0,h.map)(l,function(u,c){var f=u.getController("annotation"),v=(0,h.filter)((0,h.get)(f,["option"],[]),function(p){var y=p.name;return y!==Vh});f.clear(!0),(0,h.each)(v,function(p){typeof p=="object"&&u.annotation()[p.type](p)});var d=(0,h.get)(u,["filteredData"],u.getOptions().data);o({chart:u,index:c,options:(0,g.__assign)((0,g.__assign)({},t),{filteredData:Cs(d,d,t)})}),u.filterData(d),i.rendering=!0,u.render(!0)})}this.rendering=!1},r}(ne),Yh="funnel-conversion-tag",Ms="funnel-afterrender",Xh={trigger:"afterrender",action:Yh+":change"};yt(Yh,CS),It(Ms,{start:[Xh]});function AS(e){var r=e.options,t=r.compareField,i=r.xField,n=r.yField,a=r.locale,o=r.funnelStyle,s=r.data,l=_a(a),u={label:t?{fields:[i,n,t,Or,dr],formatter:function(f){return""+f[n]}}:{fields:[i,n,Or,dr],offset:0,position:"middle",formatter:function(f){return f[i]+" "+f[n]}},tooltip:{title:i,formatter:function(f){return{name:f[i],value:f[n]}}},conversionTag:{formatter:function(f){return l.get(["conversionTag","label"])+": "+Rh.apply(void 0,f[dr])}}},c;return(t||o)&&(c=function(f){return I({},t&&{lineWidth:1,stroke:"#fff"},(0,h.isFunction)(o)?o(f):o)}),I({options:u},e,{options:{funnelStyle:c,data:(0,h.clone)(s)}})}function MS(e){var r=e.options,t=r.compareField,i=r.dynamicHeight,n=r.seriesField;return n?SS(e):t?gS(e):i?_S(e):Wh(e)}function FS(e){var r,t=e.options,i=t.xAxis,n=t.yAxis,a=t.xField,o=t.yField;return Et(he((r={},r[a]=i,r[o]=n,r)))(e)}function ES(e){var r=e.chart;return r.axis(!1),e}function TS(e){var r=e.chart,t=e.options,i=t.legend;return i===!1?r.legend(!1):r.legend(i),e}function LS(e){var r=e.chart,t=e.options,i=t.interactions,n=t.dynamicHeight;return(0,h.each)(i,function(a){a.enable===!1?r.removeInteraction(a.type):r.interaction(a.type,a.cfg||{})}),n?r.removeInteraction(Ms):r.interaction(Ms,{start:[(0,g.__assign)((0,g.__assign)({},Xh),{arg:t})]}),e}function Uh(e){return Et(AS,MS,FS,ES,me,LS,TS,Qt,Xt,le())(e)}var OS=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="funnel",t}return r.getDefaultOptions=function(){return lS},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.getSchemaAdaptor=function(){return Uh},r.prototype.setState=function(t,i,n){n===void 0&&(n=!0);var a=ln(this.chart);(0,h.each)(a,function(o){i(o.getData())&&o.setState(t,n)})},r.prototype.getStates=function(){var t=ln(this.chart),i=[];return(0,h.each)(t,function(n){var a=n.getData(),o=n.getStates();(0,h.each)(o,function(s){i.push({data:a,state:s,geometry:n.geometry,element:n})})}),i},r.CONVERSATION_FIELD=dr,r.PERCENT_FIELD=Or,r.TOTAL_PERCENT_FIELD=Ss,r}(kt),Fa,Fs="range",jh="type",gr="percent",IS="#f0f0f0",Zh="indicator-view",Kh="range-view",PS={percent:0,range:{ticks:[]},innerRadius:.9,radius:.95,startAngle:-7/6*Math.PI,endAngle:1/6*Math.PI,syncViewPadding:!0,axis:{line:null,label:{offset:-24,style:{textAlign:"center",textBaseline:"middle"}},subTickLine:{length:-8},tickLine:{length:-12},grid:null},indicator:{pointer:{style:{lineWidth:5,lineCap:"round"}},pin:{style:{r:9.75,lineWidth:4.5,fill:"#fff"}}},statistic:{title:!1},meta:(Fa={},Fa[Fs]={sync:"v"},Fa[gr]={sync:"v",tickCount:5,tickInterval:.2},Fa),animation:!1};function kS(e,r){return e.map(function(t,i){var n;return n={},n[Fs]=t-(e[i-1]||0),n[jh]=""+i,n[gr]=r,n})}function qh(e){var r;return[(r={},r[gr]=(0,h.clamp)(e,0,1),r)]}function $h(e,r){var t=(0,h.get)(r,["ticks"],[]),i=(0,h.size)(t)?(0,h.uniq)(t):[0,(0,h.clamp)(e,0,1),1];return i[0]||i.shift(),kS(i,e)}function DS(e){var r=e.chart,t=e.options,i=t.percent,n=t.range,a=t.radius,o=t.innerRadius,s=t.startAngle,l=t.endAngle,u=t.axis,c=t.indicator,f=t.gaugeStyle,v=t.type,d=t.meter,p=n.color,y=n.width;if(c){var m=qh(i),x=r.createView({id:Zh});x.data(m),x.point().position(gr+"*1").shape(c.shape||"gauge-indicator").customInfo({defaultColor:r.getTheme().defaultColor,indicator:c}),x.coordinate("polar",{startAngle:s,endAngle:l,radius:o*a}),x.axis(gr,u),x.scale(gr,$t(u,Be))}var _=$h(i,t.range),w=r.createView({id:Kh});w.data(_);var b=(0,h.isString)(p)?[p,IS]:p,S=Fe({chart:w,options:{xField:"1",yField:Fs,seriesField:jh,rawFields:[gr],isStack:!0,interval:{color:b,style:f,shape:v==="meter"?"meter-gauge":null},args:{zIndexReversed:!0,sortZIndex:!0},minColumnWidth:y,maxColumnWidth:y}}).ext,C=S.geometry;return C.customInfo({meter:d}),w.coordinate("polar",{innerRadius:o,radius:a,startAngle:s,endAngle:l}).transpose(),e}function BS(e){var r;return Et(he((r={range:{min:0,max:1,maxLimit:1,minLimit:0}},r[gr]={},r)))(e)}function Qh(e,r){var t=e.chart,i=e.options,n=i.statistic,a=i.percent;if(t.getController("annotation").clear(!0),n){var o=n.content,s=void 0;o&&(s=I({},{content:(a*100).toFixed(2)+"%",style:{opacity:.75,fontSize:"30px",lineHeight:1,textAlign:"center",color:"rgba(44,53,66,0.85)"}},o)),vb(t,{statistic:(0,g.__assign)((0,g.__assign)({},n),{content:s})},{percent:a})}return r&&t.render(!0),e}function RS(e){var r=e.chart,t=e.options,i=t.tooltip;return i?r.tooltip(I({showTitle:!1,showMarkers:!1,containerTpl:'
    ',domStyles:{"g2-tooltip":{padding:"4px 8px",fontSize:"10px"}},customContent:function(n,a){var o=(0,h.get)(a,[0,"data",gr],0);return(o*100).toFixed(2)+"%"}},i)):r.tooltip(!1),e}function NS(e){var r=e.chart;return r.legend(!1),e}function Jh(e){return Et(Xt,Qt,DS,BS,RS,Qh,oe,le(),NS)(e)}Zt("point","gauge-indicator",{draw:function(e,r){var t=e.customInfo,i=t.indicator,n=t.defaultColor,a=i,o=a.pointer,s=a.pin,l=r.addGroup(),u=this.parsePoint({x:0,y:0});return o&&l.addShape("line",{name:"pointer",attrs:(0,g.__assign)({x1:u.x,y1:u.y,x2:e.x,y2:e.y,stroke:n},o.style)}),s&&l.addShape("circle",{name:"pin",attrs:(0,g.__assign)({x:u.x,y:u.y,stroke:n},s.style)}),l}}),Zt("interval","meter-gauge",{draw:function(e,r){var t=e.customInfo.meter,i=t===void 0?{}:t,n=i.steps,a=n===void 0?50:n,o=i.stepRatio,s=o===void 0?.5:o;a=a<1?1:a,s=(0,h.clamp)(s,0,1);var l=this.coordinate,u=l.startAngle,c=l.endAngle,f=0;if(s>0&&s<1){var v=c-u;f=v/a/(s/(1-s)+1-1/a)}for(var d=f/(1-s)*s,p=r.addGroup(),y=this.coordinate.getCenter(),m=this.coordinate.getRadius(),x=ke.getAngle(e,this.coordinate),_=x.startAngle,w=x.endAngle,b=_;b1?l/(i-1):s.max),!t&&!i){var c=VS(o);u=l/c}var f={},v=(0,h.groupBy)(a,n);(0,h.isEmpty)(v)?(0,h.each)(a,function(p){var y=p[r],m=tf(y,u,i),x=m[0]+"-"+m[1];(0,h.hasKey)(f,x)||(f[x]={range:m,count:0}),f[x].count+=1}):Object.keys(v).forEach(function(p){(0,h.each)(v[p],function(y){var m=y[r],x=tf(m,u,i),_=x[0]+"-"+x[1],w=_+"-"+p;(0,h.hasKey)(f,w)||(f[w]={range:x,count:0},f[w][n]=p),f[w].count+=1})});var d=[];return(0,h.each)(f,function(p){d.push(p)}),d}var Ea="range",gn="count",GS=I({},kt.getDefaultOptions(),{columnStyle:{stroke:"#FFFFFF"},tooltip:{shared:!0,showMarkers:!1},interactions:[{type:"active-region"}]});function WS(e){var r=e.chart,t=e.options,i=t.data,n=t.binField,a=t.binNumber,o=t.binWidth,s=t.color,l=t.stackField,u=t.legend,c=t.columnStyle,f=ef(i,n,o,a,l);r.data(f);var v=I({},e,{options:{xField:Ea,yField:gn,seriesField:l,isStack:!0,interval:{color:s,style:c}}});return Fe(v),u&&l?r.legend(l,u):r.legend(!1),e}function HS(e){var r,t=e.options,i=t.xAxis,n=t.yAxis;return Et(he((r={},r[Ea]=i,r[gn]=n,r)))(e)}function YS(e){var r=e.chart,t=e.options,i=t.xAxis,n=t.yAxis;return i===!1?r.axis(Ea,!1):r.axis(Ea,i),n===!1?r.axis(gn,!1):r.axis(gn,n),e}function XS(e){var r=e.chart,t=e.options,i=t.label,n=Me(r,"interval");if(!i)n.label(!1);else{var a=i.callback,o=(0,g.__rest)(i,["callback"]);n.label({fields:[gn],callback:a,cfg:be(o)})}return e}function rf(e){return Et(Xt,Ve("columnStyle"),WS,HS,YS,Lr,XS,me,oe,Qt)(e)}var US=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="histogram",t}return r.getDefaultOptions=function(){return GS},r.prototype.changeData=function(t){this.updateOption({data:t});var i=this.options,n=i.binField,a=i.binNumber,o=i.binWidth,s=i.stackField;this.chart.changeData(ef(t,n,o,a,s))},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.getSchemaAdaptor=function(){return rf},r}(kt),jS=I({},kt.getDefaultOptions(),{tooltip:{shared:!0,showMarkers:!0,showCrosshairs:!0,crosshairs:{type:"x"}},legend:{position:"top-left",radio:{}},isStack:!1}),ZS=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.active=function(){var t=this.getView(),i=this.context.event;if(i.data){var n=i.data.items,a=t.geometries.filter(function(o){return o.type==="point"});(0,h.each)(a,function(o){(0,h.each)(o.elements,function(s){var l=(0,h.findIndex)(n,function(u){return u.data===s.data})!==-1;s.setState("active",l)})})}},r.prototype.reset=function(){var t=this.getView(),i=t.geometries.filter(function(n){return n.type==="point"});(0,h.each)(i,function(n){(0,h.each)(n.elements,function(a){a.setState("active",!1)})})},r.prototype.getView=function(){return this.context.view},r}(ne);yt("marker-active",ZS),It("marker-active",{start:[{trigger:"tooltip:show",action:"marker-active:active"}],end:[{trigger:"tooltip:hide",action:"marker-active:reset"}]});var nf=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="line",t}return r.getDefaultOptions=function(){return jS},r.prototype.changeData=function(t){this.updateOption({data:t});var i=this,n=i.chart,a=i.options;Ca({chart:n,options:a}),this.chart.changeData(t)},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.getSchemaAdaptor=function(){return Ih},r}(kt),af=I({},kt.getDefaultOptions(),{legend:{position:"right",radio:{}},tooltip:{shared:!1,showTitle:!1,showMarkers:!1},label:{layout:{type:"limit-in-plot",cfg:{action:"ellipsis"}}},pieStyle:{stroke:"white",lineWidth:1},statistic:{title:{style:{fontWeight:300,color:"#4B535E",textAlign:"center",fontSize:"20px",lineHeight:1}},content:{style:{fontWeight:"bold",color:"rgba(44,53,66,0.85)",textAlign:"center",fontSize:"32px",lineHeight:1}}},theme:{components:{annotation:{text:{animate:!1}}}}}),KS=[1,0,0,0,1,0,0,0,1];function Es(e,r){var t=r?(0,g.__spreadArrays)(r):(0,g.__spreadArrays)(KS);return ke.transform(t,e)}var qS=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getActiveElements=function(){var t=ke.getDelegationObject(this.context);if(t){var i=this.context.view,n=t.component,a=t.item,o=n.get("field");if(o){var s=i.geometries[0].elements;return s.filter(function(l){return l.getModel().data[o]===a.value})}}return[]},r.prototype.getActiveElementLabels=function(){var t=this.context.view,i=this.getActiveElements(),n=t.geometries[0].labelsContainer.getChildren();return n.filter(function(a){return i.find(function(o){return(0,h.isEqual)(o.getData(),a.get("data"))})})},r.prototype.transfrom=function(t){t===void 0&&(t=7.5);var i=this.getActiveElements(),n=this.getActiveElementLabels();i.forEach(function(a,o){var s=n[o],l=a.geometry.coordinate;if(l.isPolar&&l.isTransposed){var u=ke.getAngle(a.getModel(),l),c=u.startAngle,f=u.endAngle,v=(c+f)/2,d=t,p=d*Math.cos(v),y=d*Math.sin(v);a.shape.setMatrix(Es([["t",p,y]])),s.setMatrix(Es([["t",p,y]]))}})},r.prototype.active=function(){this.transfrom()},r.prototype.reset=function(){this.transfrom(0)},r}(ne);function $S(e){var r=e.event,t,i=r.target;return i&&(t=i.get("element")),t}var QS=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getAnnotations=function(t){var i=t||this.context.view;return i.getController("annotation").option},r.prototype.getInitialAnnotation=function(){return this.initialAnnotation},r.prototype.init=function(){var t=this,i=this.context.view;i.removeInteraction("tooltip"),i.on("afterchangesize",function(){var n=t.getAnnotations(i);t.initialAnnotation=n})},r.prototype.change=function(t){var i=this.context,n=i.view,a=i.event;this.initialAnnotation||(this.initialAnnotation=this.getAnnotations());var o=(0,h.get)(a,["data","data"]);if(a.type.match("legend-item")){var s=ke.getDelegationObject(this.context),l=n.getGroupedFields()[0];if(s&&l){var u=s.item;o=n.getData().find(function(d){return d[l]===u.value})}}if(o){var c=(0,h.get)(t,"annotations",[]),f=(0,h.get)(t,"statistic",{});n.getController("annotation").clear(!0),(0,h.each)(c,function(d){typeof d=="object"&&n.annotation()[d.type](d)}),ya(n,{statistic:f,plotType:"pie"},o),n.render(!0)}var v=$S(this.context);v&&v.shape.toFront()},r.prototype.reset=function(){var t=this.context.view,i=t.getController("annotation");i.clear(!0);var n=this.getInitialAnnotation();(0,h.each)(n,function(a){t.annotation()[a.type](a)}),t.render(!0)},r}(ne),of="pie-statistic";yt(of,QS),It("pie-statistic-active",{start:[{trigger:"element:mouseenter",action:"pie-statistic:change"}],end:[{trigger:"element:mouseleave",action:"pie-statistic:reset"}]}),yt("pie-legend",qS),It("pie-legend-active",{start:[{trigger:"legend-item:mouseenter",action:"pie-legend:active"}],end:[{trigger:"legend-item:mouseleave",action:"pie-legend:reset"}]});function JS(e,r){var t=null;return(0,h.each)(e,function(i){typeof i[r]=="number"&&(t+=i[r])}),t}function tC(e,r){var t;switch(e){case"inner":return t="-30%",(0,h.isString)(r)&&r.endsWith("%")?parseFloat(r)*.01>0?t:r:r<0?r:t;case"outer":return t=12,(0,h.isString)(r)&&r.endsWith("%")?parseFloat(r)*.01<0?t:r:r>0?r:t;default:return r}}function Ta(e,r){return(0,h.every)(xi(e,r),function(t){return t[r]===0})}function eC(e){var r=e.chart,t=e.options,i=t.data,n=t.angleField,a=t.colorField,o=t.color,s=t.pieStyle,l=t.shape,u=xi(i,n);if(Ta(u,n)){var c="$$percentage$$";u=u.map(function(v){var d;return(0,g.__assign)((0,g.__assign)({},v),(d={},d[c]=1/u.length,d))}),r.data(u);var f=I({},e,{options:{xField:"1",yField:c,seriesField:a,isStack:!0,interval:{color:o,shape:l,style:s},args:{zIndexReversed:!0,sortZIndex:!0}}});Fe(f)}else{r.data(u);var f=I({},e,{options:{xField:"1",yField:n,seriesField:a,isStack:!0,interval:{color:o,shape:l,style:s},args:{zIndexReversed:!0,sortZIndex:!0}}});Fe(f)}return e}function rC(e){var r,t=e.chart,i=e.options,n=i.meta,a=i.colorField,o=I({},n);return t.scale(o,(r={},r[a]={type:"cat"},r)),e}function iC(e){var r=e.chart,t=e.options,i=t.radius,n=t.innerRadius,a=t.startAngle,o=t.endAngle;return r.coordinate({type:"theta",cfg:{radius:i,innerRadius:n,startAngle:a,endAngle:o}}),e}function nC(e){var r=e.chart,t=e.options,i=t.label,n=t.colorField,a=t.angleField,o=r.geometries[0];if(!i)o.label(!1);else{var s=i.callback,l=(0,g.__rest)(i,["callback"]),u=be(l);if(u.content){var c=u.content;u.content=function(p,y,m){var x=p[n],_=p[a],w=r.getScaleByField(a),b=w==null?void 0:w.scale(_);return(0,h.isFunction)(c)?c((0,g.__assign)((0,g.__assign)({},p),{percent:b}),y,m):(0,h.isString)(c)?xh(c,{value:_,name:x,percentage:(0,h.isNumber)(b)&&!(0,h.isNil)(_)?(b*100).toFixed(2)+"%":null}):c}}var f={inner:"",outer:"pie-outer",spider:"pie-spider"},v=u.type?f[u.type]:"pie-outer",d=u.layout?(0,h.isArray)(u.layout)?u.layout:[u.layout]:[];u.layout=(v?[{type:v}]:[]).concat(d),o.label({fields:n?[a,n]:[a],callback:s,cfg:(0,g.__assign)((0,g.__assign)({},u),{offset:tC(u.type,u.offset),type:"pie"})})}return e}function sf(e){var r=e.innerRadius,t=e.statistic,i=e.angleField,n=e.colorField,a=e.meta,o=e.locale,s=_a(o);if(r&&t){var l=I({},af.statistic,t),u=l.title,c=l.content;return u!==!1&&(u=I({},{formatter:function(f){var v=f?f[n]:(0,h.isNil)(u.content)?s.get(["statistic","total"]):u.content,d=(0,h.get)(a,[n,"formatter"])||function(p){return p};return d(v)}},u)),c!==!1&&(c=I({},{formatter:function(f,v){var d=f?f[i]:JS(v,i),p=(0,h.get)(a,[i,"formatter"])||function(y){return y};return f||(0,h.isNil)(c.content)?p(d):c.content}},c)),I({},{statistic:{title:u,content:c}},e)}return e}function lf(e){var r=e.chart,t=e.options,i=sf(t),n=i.innerRadius,a=i.statistic;return r.getController("annotation").clear(!0),Et(le())(e),n&&a&&ya(r,{statistic:a,plotType:"pie"}),e}function aC(e){var r=e.chart,t=e.options,i=t.tooltip,n=t.colorField,a=t.angleField,o=t.data;if(i===!1)r.tooltip(i);else if(r.tooltip(I({},i,{shared:!1})),Ta(o,a)){var s=(0,h.get)(i,"fields"),l=(0,h.get)(i,"formatter");(0,h.isEmpty)((0,h.get)(i,"fields"))&&(s=[n,a],l=l||function(u){return{name:u[n],value:(0,h.toString)(u[a])}}),r.geometries[0].tooltip(s.join("*"),_i(s,l))}return e}function oC(e){var r=e.chart,t=e.options,i=sf(t),n=i.interactions,a=i.statistic,o=i.annotations;return(0,h.each)(n,function(s){var l,u;if(s.enable===!1)r.removeInteraction(s.type);else if(s.type==="pie-statistic-active"){var c=[];((l=s.cfg)===null||l===void 0?void 0:l.start)||(c=[{trigger:"element:mouseenter",action:of+":change",arg:{statistic:a,annotations:o}}]),(0,h.each)((u=s.cfg)===null||u===void 0?void 0:u.start,function(f){c.push((0,g.__assign)((0,g.__assign)({},f),{arg:{statistic:a,annotations:o}}))}),r.interaction(s.type,I({},s.cfg,{start:c}))}else r.interaction(s.type,s.cfg||{})}),e}function uf(e){return Et(Ve("pieStyle"),eC,rC,Xt,iC,Ur,aC,nC,Lr,lf,oC,Qt)(e)}var cf=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="pie",t}return r.getDefaultOptions=function(){return af},r.prototype.changeData=function(t){this.chart.emit(O.BEFORE_CHANGE_DATA,ue.fromData(this.chart,O.BEFORE_CHANGE_DATA,null));var i=this.options,n=this.options.angleField,a=xi(i.data,n),o=xi(t,n);Ta(a,n)||Ta(o,n)?this.update({data:t}):(this.updateOption({data:t}),this.chart.data(o),lf({chart:this.chart,options:this.options}),this.chart.render(!0)),this.chart.emit(O.AFTER_CHANGE_DATA,ue.fromData(this.chart,O.AFTER_CHANGE_DATA,null))},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.getSchemaAdaptor=function(){return uf},r}(kt),hf=["#FAAD14","#E8EDF3"],sC={percent:.2,color:hf,animation:{}};function Ts(e){var r=(0,h.clamp)(Xr(e)?e:0,0,1);return[{current:""+r,type:"current",percent:r},{current:""+r,type:"target",percent:1}]}function ff(e){var r=e.chart,t=e.options,i=t.percent,n=t.progressStyle,a=t.color,o=t.barWidthRatio;r.data(Ts(i));var s=I({},e,{options:{xField:"current",yField:"percent",seriesField:"type",widthRatio:o,interval:{style:n,color:(0,h.isString)(a)?[a,hf[1]]:a},args:{zIndexReversed:!0,sortZIndex:!0}}});return Fe(s),r.tooltip(!1),r.axis(!1),r.legend(!1),e}function lC(e){var r=e.chart;return r.coordinate("rect").transpose(),e}function vf(e){return Et(ff,he({}),lC,Qt,Xt,le())(e)}var uC=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="process",t}return r.getDefaultOptions=function(){return sC},r.prototype.changeData=function(t){this.updateOption({percent:t}),this.chart.changeData(Ts(t))},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.getSchemaAdaptor=function(){return vf},r}(kt);function cC(e){var r=e.chart,t=e.options,i=t.innerRadius,n=t.radius;return r.coordinate("theta",{innerRadius:i,radius:n}),e}function df(e,r){var t=e.chart,i=e.options,n=i.innerRadius,a=i.statistic,o=i.percent,s=i.meta;if(t.getController("annotation").clear(!0),n&&a){var l=(0,h.get)(s,["percent","formatter"])||function(c){return(c*100).toFixed(2)+"%"},u=a.content;u&&(u=I({},u,{content:(0,h.isNil)(u.content)?l(o):u.content})),ya(t,{statistic:(0,g.__assign)((0,g.__assign)({},a),{content:u}),plotType:"ring-progress"},{percent:o})}return r&&t.render(!0),e}function gf(e){return Et(ff,he({}),cC,df,Qt,Xt,le())(e)}var hC={percent:.2,innerRadius:.8,radius:.98,color:["#FAAD14","#E8EDF3"],statistic:{title:!1,content:{style:{fontSize:"14px",fontWeight:300,fill:"#4D4D4D",textAlign:"center",textBaseline:"middle"}}},animation:{}},fC=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="ring-process",t}return r.getDefaultOptions=function(){return hC},r.prototype.changeData=function(t){this.chart.emit(O.BEFORE_CHANGE_DATA,ue.fromData(this.chart,O.BEFORE_CHANGE_DATA,null)),this.updateOption({percent:t}),this.chart.data(Ts(t)),df({chart:this.chart,options:this.options},!0),this.chart.emit(O.AFTER_CHANGE_DATA,ue.fromData(this.chart,O.AFTER_CHANGE_DATA,null))},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.getSchemaAdaptor=function(){return gf},r}(kt),qr=M(56645),vC={exp:qr.regressionExp,linear:qr.regressionLinear,loess:qr.regressionLoess,log:qr.regressionLog,poly:qr.regressionPoly,pow:qr.regressionPow,quad:qr.regressionQuad};function dC(e,r){var t=10,i={regionStyle:[{position:{start:[e,"max"],end:["max",r]},style:{fill:"#d8d0c0",opacity:.4}},{position:{start:["min","max"],end:[e,r]},style:{fill:"#a3dda1",opacity:.4}},{position:{start:["min",r],end:[e,"min"]},style:{fill:"#d8d0c0",opacity:.4}},{position:{start:[e,r],end:["max","min"]},style:{fill:"#a3dda1",opacity:.4}}],lineStyle:{stroke:"#9ba29a",lineWidth:1},labelStyle:[{position:["max",r],offsetX:-t,offsetY:-t,style:{textAlign:"right",textBaseline:"bottom",fontSize:14,fill:"#ccc"}},{position:["min",r],offsetX:t,offsetY:-t,style:{textAlign:"left",textBaseline:"bottom",fontSize:14,fill:"#ccc"}},{position:["min",r],offsetX:t,offsetY:t,style:{textAlign:"left",textBaseline:"top",fontSize:14,fill:"#ccc"}},{position:["max",r],offsetX:-t,offsetY:t,style:{textAlign:"right",textBaseline:"top",fontSize:14,fill:"#ccc"}}]};return i}var gC=function(e,r){var t=r.view,i=r.options,n=i.xField,a=i.yField,o=t.getScaleByField(n),s=t.getScaleByField(a),l=e.map(function(u){return t.getCoordinate().convert({x:o.scale(u[0]),y:s.scale(u[1])})});return fb(l,!1)},pC=function(e){var r=e.options,t=r.xField,i=r.yField,n=r.data,a=r.regressionLine,o=a.type,s=o===void 0?"linear":o,l=a.algorithm,u;if(l)u=(0,h.isArray)(l)?l:l(n);else{var c=vC[s]().x(function(f){return f[t]}).y(function(f){return f[i]});u=c(n)}return gC(u,e)},yC=function(e){var r,t=e.meta,i=t===void 0?{}:t,n=e.xField,a=e.yField,o=e.data,s=o[0][n],l=o[0][a],u=s>0,c=l>0;function f(v,d){var p=(0,h.get)(i,[v]);function y(x){return(0,h.get)(p,x)}var m={};return d==="x"?((0,h.isNumber)(s)&&((0,h.isNumber)(y("min"))||(m.min=u?0:s*2),(0,h.isNumber)(y("max"))||(m.max=u?s*2:0)),m):((0,h.isNumber)(l)&&((0,h.isNumber)(y("min"))||(m.min=c?0:l*2),(0,h.isNumber)(y("max"))||(m.max=c?l*2:0)),m)}return(0,g.__assign)((0,g.__assign)({},i),(r={},r[n]=(0,g.__assign)((0,g.__assign)({},i[n]),f(n,"x")),r[a]=(0,g.__assign)((0,g.__assign)({},i[a]),f(a,"y")),r))};function pf(e){var r=e.data,t=r===void 0?[]:r,i=e.xField,n=e.yField;if(t.length){for(var a=!0,o=!0,s=t[0],l=void 0,u=1;u
    ',itemTpl:"{value}",domStyles:{"g2-tooltip":{padding:"2px 4px",fontSize:"10px"}},showCrosshairs:!0,crosshairs:{type:"x"}},DC={appendPadding:2,tooltip:(0,g.__assign)({},bf),animation:{}};function BC(e){var r=e.chart,t=e.options,i=t.data,n=t.color,a=t.areaStyle,o=t.point,s=t.line,l=o==null?void 0:o.state,u=$r(i);r.data(u);var c=I({},e,{options:{xField:yn,yField:bi,area:{color:n,style:a},line:s,point:o}}),f=I({},c,{options:{tooltip:!1}}),v=I({},c,{options:{tooltip:!1,state:l}});return ba(c),wi(f),Ge(v),r.axis(!1),r.legend(!1),e}function Si(e){var r,t,i=e.options,n=i.xAxis,a=i.yAxis,o=i.data,s=$r(o);return Et(he((r={},r[yn]=n,r[bi]=a,r),(t={},t[yn]={type:"cat"},t[bi]=hs(s,bi),t)))(e)}function Sf(e){return Et(Ve("areaStyle"),BC,Si,me,Xt,Qt,le())(e)}var RC={appendPadding:2,tooltip:(0,g.__assign)({},bf),color:"l(90) 0:#E5EDFE 1:#ffffff",areaStyle:{fillOpacity:.6},line:{size:1,color:"#5B8FF9"},animation:{}},NC=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="tiny-area",t}return r.getDefaultOptions=function(){return RC},r.prototype.changeData=function(t){this.updateOption({data:t});var i=this,n=i.chart,a=i.options;Si({chart:n,options:a}),n.changeData($r(t))},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.getSchemaAdaptor=function(){return Sf},r}(kt);function zC(e){var r=e.chart,t=e.options,i=t.data,n=t.color,a=t.columnStyle,o=t.columnWidthRatio,s=$r(i);r.data(s);var l=I({},e,{options:{xField:yn,yField:bi,widthRatio:o,interval:{style:a,color:n}}});return Fe(l),r.axis(!1),r.legend(!1),r.interaction("element-active"),e}function Cf(e){return Et(Xt,Ve("columnStyle"),zC,Si,me,Qt,le())(e)}var VC={showTitle:!1,shared:!0,showMarkers:!1,customContent:function(e,r){return""+(0,h.get)(r,[0,"data","y"],0)},containerTpl:'
    ',itemTpl:"{value}",domStyles:{"g2-tooltip":{padding:"2px 4px",fontSize:"10px"}}},GC={appendPadding:2,tooltip:(0,g.__assign)({},VC),animation:{}},WC=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="tiny-column",t}return r.getDefaultOptions=function(){return GC},r.prototype.changeData=function(t){this.updateOption({data:t});var i=this,n=i.chart,a=i.options;Si({chart:n,options:a}),n.changeData($r(t))},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.getSchemaAdaptor=function(){return Cf},r}(kt);function HC(e){var r=e.chart,t=e.options,i=t.data,n=t.color,a=t.lineStyle,o=t.point,s=o==null?void 0:o.state,l=$r(i);r.data(l);var u=I({},e,{options:{xField:yn,yField:bi,line:{color:n,style:a},point:o}}),c=I({},u,{options:{tooltip:!1,state:s}});return wi(u),Ge(c),r.axis(!1),r.legend(!1),e}function Af(e){return Et(HC,Si,Xt,me,Qt,le())(e)}var YC=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="tiny-line",t}return r.getDefaultOptions=function(){return DC},r.prototype.changeData=function(t){this.updateOption({data:t});var i=this,n=i.chart,a=i.options;Si({chart:n,options:a}),n.changeData($r(t))},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.getSchemaAdaptor=function(){return Af},r}(kt),XC={line:Ih,pie:uf,column:Ma,bar:Nh,area:Ph,gauge:Jh,"tiny-line":Af,"tiny-column":Cf,"tiny-area":Sf,"ring-progress":gf,progress:vf,scatter:yf,histogram:rf,funnel:Uh,stock:wf},UC={line:nf,pie:cf,column:zh,bar:oS,area:kh,gauge:zS,"tiny-line":YC,"tiny-column":WC,"tiny-area":NC,"ring-progress":fC,progress:uC,scatter:MC,histogram:US,funnel:OS,stock:kC},jC={pie:{label:!1},column:{tooltip:{showMarkers:!1}},bar:{tooltip:{showMarkers:!1}}};function Ls(e,r,t){var i=UC[e];if(!i){console.error("could not find "+e+" plot");return}var n=XC[e];n({chart:r,options:I({},i.getDefaultOptions(),(0,h.get)(jC,e,{}),t)})}function ZC(e){var r=e.chart,t=e.options,i=t.views,n=t.legend;return(0,h.each)(i,function(a){var o=a.region,s=a.data,l=a.meta,u=a.axes,c=a.coordinate,f=a.interactions,v=a.annotations,d=a.tooltip,p=a.geometries,y=r.createView({region:o});y.data(s);var m={};u&&(0,h.each)(u,function(x,_){m[_]=$t(x,Be)}),m=I({},l,m),y.scale(m),u?(0,h.each)(u,function(x,_){y.axis(_,x)}):y.axis(!1),y.coordinate(c),(0,h.each)(p,function(x){var _=Re({chart:y,options:x}).ext,w=x.adjust;w&&_.geometry.adjust(w)}),(0,h.each)(f,function(x){x.enable===!1?y.removeInteraction(x.type):y.interaction(x.type,x.cfg)}),(0,h.each)(v,function(x){y.annotation()[x.type]((0,g.__assign)({},x))}),typeof a.animation=="boolean"?y.animate(!1):(y.animate(!0),(0,h.each)(y.geometries,function(x){x.animate(a.animation)})),d&&(y.interaction("tooltip"),y.tooltip(d))}),n?(0,h.each)(n,function(a,o){r.legend(o,a)}):r.legend(!1),r.tooltip(t.tooltip),e}function KC(e){var r=e.chart,t=e.options,i=t.plots,n=t.data,a=n===void 0?[]:n;return(0,h.each)(i,function(o){var s=o.type,l=o.region,u=o.options,c=u===void 0?{}:u,f=o.top,v=c.tooltip;if(f){Ls(s,r,(0,g.__assign)((0,g.__assign)({},c),{data:a}));return}var d=r.createView((0,g.__assign)({region:l},$t(c,Eh)));v&&d.interaction("tooltip"),Ls(s,d,(0,g.__assign)({data:a},c))}),e}function qC(e){var r=e.chart,t=e.options;return r.option("slider",t.slider),e}function $C(e){return Et(Qt,ZC,KC,oe,Qt,Xt,me,qC,le())(e)}function QC(e,r){var t=e.getModel(),i=t.data,n;return(0,h.isArray)(i)?n=i[0][r]:n=i[r],n}function JC(e){var r=ga(e);(0,h.each)(r,function(t){t.hasState("active")&&t.setState("active",!1),t.hasState("selected")&&t.setState("selected",!1),t.hasState("inactive")&&t.setState("inactive",!1)})}var tA=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getAssociationItems=function(t,i){var n,a=this.context.event,o=i||{},s=o.linkField,l=o.dim,u=[];if((n=a.data)===null||n===void 0?void 0:n.data){var c=a.data.data;(0,h.each)(t,function(f){var v,d,p=s;if(l==="x"?p=f.getXScale().field:l==="y"?p=(v=f.getYScales().find(function(m){return m.field===p}))===null||v===void 0?void 0:v.field:p||(p=(d=f.getGroupScales()[0])===null||d===void 0?void 0:d.field),!!p){var y=(0,h.map)(ga(f),function(m){var x=!1,_=!1,w=(0,h.isArray)(c)?(0,h.get)(c[0],p):(0,h.get)(c,p);return QC(m,p)===w?x=!0:_=!0,{element:m,view:f,active:x,inactive:_}});u.push.apply(u,y)}})}return u},r.prototype.showTooltip=function(t){var i=_h(this.context.view),n=this.getAssociationItems(i,t);(0,h.each)(n,function(a){if(a.active){var o=a.element.shape.getCanvasBBox();a.view.showTooltip({x:o.minX+o.width/2,y:o.minY+o.height/2})}})},r.prototype.hideTooltip=function(){var t=_h(this.context.view);(0,h.each)(t,function(i){i.hideTooltip()})},r.prototype.active=function(t){var i=un(this.context.view),n=this.getAssociationItems(i,t);(0,h.each)(n,function(a){var o=a.active,s=a.element;o&&s.setState("active",!0)})},r.prototype.selected=function(t){var i=un(this.context.view),n=this.getAssociationItems(i,t);(0,h.each)(n,function(a){var o=a.active,s=a.element;o&&s.setState("selected",!0)})},r.prototype.highlight=function(t){var i=un(this.context.view),n=this.getAssociationItems(i,t);(0,h.each)(n,function(a){var o=a.inactive,s=a.element;o&&s.setState("inactive",!0)})},r.prototype.reset=function(){var t=un(this.context.view);(0,h.each)(t,function(i){JC(i)})},r}(ne);yt("association",tA),It("association-active",{start:[{trigger:"element:mouseenter",action:"association:active"}],end:[{trigger:"element:mouseleave",action:"association:reset"}]}),It("association-selected",{start:[{trigger:"element:mouseenter",action:"association:selected"}],end:[{trigger:"element:mouseleave",action:"association:reset"}]}),It("association-highlight",{start:[{trigger:"element:mouseenter",action:"association:highlight"}],end:[{trigger:"element:mouseleave",action:"association:reset"}]}),It("association-tooltip",{start:[{trigger:"element:mousemove",action:"association:showTooltip"}],end:[{trigger:"element:mouseleave",action:"association:hideTooltip"}]});var eA=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="mix",t}return r.prototype.getSchemaAdaptor=function(){return $C},r}(kt),Ci;(function(e){e.DEV="DEV",e.BETA="BETA",e.STABLE="STABLE"})(Ci||(Ci={}));function rA(e,r){console.warn(e===Ci.DEV?"Plot '"+r+"' is in DEV stage, just give us issues.":e===Ci.BETA?"Plot '"+r+"' is in BETA stage, DO NOT use it in production env.":e===Ci.STABLE?"Plot '"+r+`' is in STABLE stage, import it by "import { `+r+` } from '@antv/g2plot'".`:"invalid Stage type.")}var LO=function(){function e(){}return Object.defineProperty(e,"MultiView",{get:function(){return rA(Ci.STABLE,"MultiView"),eA},enumerable:!1,configurable:!0}),e}(),er="first-axes-view",rr="second-axes-view",Qr="series-field-key";function Mf(e,r,t,i,n){var a=[];r.forEach(function(f){i.forEach(function(v){var d,p=(d={},d[e]=v[e],d[t]=f,d[f]=v[f],d);a.push(p)})});var o=Object.values((0,h.groupBy)(a,t)),s=o[0],l=s===void 0?[]:s,u=o[1],c=u===void 0?[]:u;return n?[l.reverse(),c.reverse()]:[l,c]}function pr(e){return e!=="vertical"}function iA(e,r,t){var i=r[0],n=r[1],a=i.autoPadding,o=n.autoPadding,s=e.__axisPosition,l=s.layout,u=s.position;if(pr(l)&&u==="top"&&(i.autoPadding=t.instance(a.top,0,a.bottom,a.left),n.autoPadding=t.instance(o.top,a.left,o.bottom,0)),pr(l)&&u==="bottom"&&(i.autoPadding=t.instance(a.top,a.right/2+5,a.bottom,a.left),n.autoPadding=t.instance(o.top,o.right,o.bottom,a.right/2+5)),!pr(l)&&u==="bottom"){var c=a.left>=o.left?a.left:o.left;i.autoPadding=t.instance(a.top,a.right,a.bottom/2+5,c),n.autoPadding=t.instance(a.bottom/2+5,o.right,o.bottom,c)}if(!pr(l)&&u==="top"){var c=a.left>=o.left?a.left:o.left;i.autoPadding=t.instance(a.top,a.right,0,c),n.autoPadding=t.instance(0,o.right,a.top,c)}}function nA(e){var r=e.chart,t=e.options,i=t.data,n=t.xField,a=t.yField,o=t.color,s=t.barStyle,l=t.widthRatio,u=t.legend,c=t.layout,f=Mf(n,a,Qr,i,pr(c));u?r.legend(Qr,u):u===!1&&r.legend(!1);var v,d,p=f[0],y=f[1];pr(c)?(v=r.createView({region:{start:{x:0,y:0},end:{x:.5,y:1}},id:er}),v.coordinate().transpose().reflect("x"),d=r.createView({region:{start:{x:.5,y:0},end:{x:1,y:1}},id:rr}),d.coordinate().transpose(),v.data(p),d.data(y)):(v=r.createView({region:{start:{x:0,y:0},end:{x:1,y:.5}},id:er}),d=r.createView({region:{start:{x:0,y:.5},end:{x:1,y:1}},id:rr}),d.coordinate().reflect("y"),v.data(p),d.data(y));var m=I({},e,{chart:v,options:{widthRatio:l,xField:n,yField:a[0],seriesField:Qr,interval:{color:o,style:s}}});Fe(m);var x=I({},e,{chart:d,options:{xField:n,yField:a[1],seriesField:Qr,widthRatio:l,interval:{color:o,style:s}}});return Fe(x),e}function aA(e){var r,t,i,n=e.options,a=e.chart,o=n.xAxis,s=n.yAxis,l=n.xField,u=n.yField,c=Nt(a,er),f=Nt(a,rr),v={};return(0,h.keys)((n==null?void 0:n.meta)||{}).map(function(d){(0,h.get)(n==null?void 0:n.meta,[d,"alias"])&&(v[d]=n.meta[d].alias)}),a.scale((r={},r[Qr]={sync:!0,formatter:function(d){return(0,h.get)(v,d,d)}},r)),he((t={},t[l]=o,t[u[0]]=s[u[0]],t))(I({},e,{chart:c})),he((i={},i[l]=o,i[u[1]]=s[u[1]],i))(I({},e,{chart:f})),e}function oA(e){var r=e.chart,t=e.options,i=t.xAxis,n=t.yAxis,a=t.xField,o=t.yField,s=t.layout,l=Nt(r,er),u=Nt(r,rr);return(i==null?void 0:i.position)==="bottom"?u.axis(a,(0,g.__assign)((0,g.__assign)({},i),{label:{formatter:function(){return""}}})):u.axis(a,!1),i===!1?l.axis(a,!1):l.axis(a,(0,g.__assign)({position:pr(s)?"top":"bottom"},i)),n===!1?(l.axis(o[0],!1),u.axis(o[1],!1)):(l.axis(o[0],n[o[0]]),u.axis(o[1],n[o[1]])),r.__axisPosition={position:l.getOptions().axes[a].position,layout:s},e}function sA(e){var r=e.chart;return oe(I({},e,{chart:Nt(r,er)})),oe(I({},e,{chart:Nt(r,rr)})),e}function lA(e){var r=e.chart,t=e.options,i=t.yField,n=t.yAxis;return jr(I({},e,{chart:Nt(r,er),options:{yAxis:n[i[0]]}})),jr(I({},e,{chart:Nt(r,rr),options:{yAxis:n[i[1]]}})),e}function uA(e){var r=e.chart;return Xt(I({},e,{chart:Nt(r,er)})),Xt(I({},e,{chart:Nt(r,rr)})),Xt(e),e}function cA(e){var r=e.chart;return Qt(I({},e,{chart:Nt(r,er)})),Qt(I({},e,{chart:Nt(r,rr)})),e}function hA(e){var r=this,t,i,n=e.chart,a=e.options,o=a.label,s=a.yField,l=a.layout,u=Nt(n,er),c=Nt(n,rr),f=Me(u,"interval"),v=Me(c,"interval");if(!o)f.label(!1),v.label(!1);else{var d=o.callback,p=(0,g.__rest)(o,["callback"]);p.position||(p.position="middle"),p.offset===void 0&&(p.offset=2);var y=(0,g.__assign)({},p);if(pr(l)){var m=((t=y.style)===null||t===void 0?void 0:t.textAlign)||(p.position==="middle"?"center":"left");p.style=I({},p.style,{textAlign:m});var x={left:"right",right:"left",center:"center"};y.style=I({},y.style,{textAlign:x[m]})}else{var _={top:"bottom",bottom:"top",middle:"middle"};typeof p.position=="string"?p.position=_[p.position]:typeof p.position=="function"&&(p.position=function(){for(var S=[],C=0;C1?r+"_"+t:""+r}function Lf(e){var r=e.data,t=e.xField,i=e.measureField,n=e.rangeField,a=e.targetField,o=e.layout,s=[],l=[];r.forEach(function(f,v){var d=[f[n]].flat();d.sort(function(m,x){return m-x}),d.forEach(function(m,x){var _,w=x===0?m:d[x]-d[x-1];s.push((_={rKey:n+"_"+x},_[t]=t?f[t]:String(v),_[n]=w,_))});var p=[f[i]].flat();p.forEach(function(m,x){var _;s.push((_={mKey:Tf(p,i,x)},_[t]=t?f[t]:String(v),_[i]=m,_))});var y=[f[a]].flat();y.forEach(function(m,x){var _;s.push((_={tKey:Tf(y,a,x)},_[t]=t?f[t]:String(v),_[a]=m,_))}),l.push(f[n],f[i],f[a])});var u=Math.min.apply(Math,l.flat(Infinity)),c=Math.max.apply(Math,l.flat(Infinity));return u=u>0?0:u,o==="vertical"&&s.reverse(),{min:u,max:c,ds:s}}function bA(e){var r=e.chart,t=e.options,i=t.bulletStyle,n=t.targetField,a=t.rangeField,o=t.measureField,s=t.xField,l=t.color,u=t.layout,c=t.size,f=t.label,v=Lf(t),d=v.min,p=v.max,y=v.ds;r.data(y);var m=I({},e,{options:{xField:s,yField:a,seriesField:"rKey",isStack:!0,label:(0,h.get)(f,"range"),interval:{color:(0,h.get)(l,"range"),style:(0,h.get)(i,"range"),size:(0,h.get)(c,"range")}}});Fe(m),r.geometries[0].tooltip(!1);var x=I({},e,{options:{xField:s,yField:o,seriesField:"mKey",isStack:!0,label:(0,h.get)(f,"measure"),interval:{color:(0,h.get)(l,"measure"),style:(0,h.get)(i,"measure"),size:(0,h.get)(c,"measure")}}});Fe(x);var _=I({},e,{options:{xField:s,yField:n,seriesField:"tKey",label:(0,h.get)(f,"target"),point:{color:(0,h.get)(l,"target"),style:(0,h.get)(i,"target"),size:(0,h.isFunction)((0,h.get)(c,"target"))?function(w){return(0,h.get)(c,"target")(w)/2}:(0,h.get)(c,"target")/2,shape:u==="horizontal"?"line":"hyphen"}}});return Ge(_),u==="horizontal"&&r.coordinate().transpose(),(0,g.__assign)((0,g.__assign)({},e),{ext:{data:{min:d,max:p}}})}function Of(e){var r,t,i=e.options,n=e.ext,a=i.xAxis,o=i.yAxis,s=i.targetField,l=i.rangeField,u=i.measureField,c=i.xField,f=n.data;return Et(he((r={},r[c]=a,r[u]=o,r),(t={},t[u]={min:f==null?void 0:f.min,max:f==null?void 0:f.max,sync:!0},t[s]={sync:""+u},t[l]={sync:""+u},t)))(e)}function SA(e){var r=e.chart,t=e.options,i=t.xAxis,n=t.yAxis,a=t.xField,o=t.measureField,s=t.rangeField,l=t.targetField;return r.axis(""+s,!1),r.axis(""+l,!1),i===!1?r.axis(""+a,!1):r.axis(""+a,i),n===!1?r.axis(""+o,!1):r.axis(""+o,n),e}function CA(e){var r=e.chart,t=e.options,i=t.legend;return r.removeInteraction("legend-filter"),r.legend(i),r.legend("rKey",!1),r.legend("mKey",!1),r.legend("tKey",!1),e}function AA(e){var r=e.chart,t=e.options,i=t.label,n=t.measureField,a=t.targetField,o=t.rangeField,s=r.geometries,l=s[0],u=s[1],c=s[2];return(0,h.get)(i,"range")?l.label(""+o,(0,g.__assign)({layout:[{type:"limit-in-plot"}]},be(i.range))):l.label(!1),(0,h.get)(i,"measure")?u.label(""+n,(0,g.__assign)({layout:[{type:"limit-in-plot"}]},be(i.measure))):u.label(!1),(0,h.get)(i,"target")?c.label(""+a,(0,g.__assign)({layout:[{type:"limit-in-plot"}]},be(i.target))):c.label(!1),e}function MA(e){Et(bA,Of,SA,CA,Xt,AA,me,oe,Qt)(e)}var FA=I({},kt.getDefaultOptions(),{layout:"horizontal",size:{range:30,measure:20,target:20},xAxis:{tickLine:!1,line:null},bulletStyle:{range:{fillOpacity:.5}},label:{measure:{position:"right"}},tooltip:{showMarkers:!1}}),PO=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="bullet",t}return r.getDefaultOptions=function(){return FA},r.prototype.changeData=function(t){this.updateOption({data:t});var i=Lf(this.options),n=i.min,a=i.max,o=i.ds;Of({options:this.options,ext:{data:{min:n,max:a}},chart:this.chart}),this.chart.changeData(o)},r.prototype.getSchemaAdaptor=function(){return MA},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r}(kt),EA={y:0,nodeWidthRatio:.05,weight:!1,nodePaddingRatio:.1,id:function(e){return e.id},source:function(e){return e.source},target:function(e){return e.target},sourceWeight:function(e){return e.value||1},targetWeight:function(e){return e.value||1},sortBy:null};function TA(e,r,t){(0,h.forIn)(e,function(i,n){i.inEdges=r.filter(function(a){return""+t.target(a)==""+n}),i.outEdges=r.filter(function(a){return""+t.source(a)==""+n}),i.edges=i.outEdges.concat(i.inEdges),i.frequency=i.edges.length,i.value=0,i.inEdges.forEach(function(a){i.value+=t.targetWeight(a)}),i.outEdges.forEach(function(a){i.value+=t.sourceWeight(a)})})}function LA(e,r){var t={weight:function(n,a){return a.value-n.value},frequency:function(n,a){return a.frequency-n.frequency},id:function(n,a){return(""+r.id(n)).localeCompare(""+r.id(a))}},i=t[r.sortBy];!i&&(0,h.isFunction)(r.sortBy)&&(i=r.sortBy),i&&e.sort(i)}function OA(e,r){var t=e.length;if(!t)throw new TypeError("Invalid nodes: it's empty!");if(r.weight){var i=r.nodePaddingRatio;if(i<0||i>=1)throw new TypeError("Invalid nodePaddingRatio: it must be in range [0, 1)!");var n=i/(2*t),a=r.nodeWidthRatio;if(a<=0||a>=1)throw new TypeError("Invalid nodeWidthRatio: it must be in range (0, 1)!");var o=0;e.forEach(function(l){o+=l.value}),e.forEach(function(l){l.weight=l.value/o,l.width=l.weight*(1-i),l.height=a}),e.forEach(function(l,u){for(var c=0,f=u-1;f>=0;f--)c+=e[f].width+2*n;var v=l.minX=n+c,d=l.maxX=l.minX+l.width,p=l.minY=r.y-a/2,y=l.maxY=p+a;l.x=[v,d,d,v],l.y=[p,p,y,y]})}else{var s=1/t;e.forEach(function(l,u){l.x=(u+.5)*s,l.y=r.y})}return e}function IA(e,r,t){if(t.weight){var i={};(0,h.forIn)(e,function(n,a){i[a]=n.value}),r.forEach(function(n){var a=t.source(n),o=t.target(n),s=e[a],l=e[o];if(s&&l){var u=i[a],c=t.sourceWeight(n),f=s.minX+(s.value-u)/s.value*s.width,v=f+c/s.value*s.width;i[a]-=c;var d=i[o],p=t.targetWeight(n),y=l.minX+(l.value-d)/l.value*l.width,m=y+p/l.value*l.width;i[o]-=p;var x=t.y;n.x=[f,v,y,m],n.y=[x,x,x,x],n.source=s,n.target=l}})}else r.forEach(function(n){var a=e[t.source(n)],o=e[t.target(n)];a&&o&&(n.x=[a.x,o.x],n.y=[a.y,o.y],n.source=a,n.target=o)});return r}function PA(e){return(0,h.assign)({},EA,e)}function kA(e,r){var t=PA(e),i={},n=r.nodes,a=r.links;n.forEach(function(l){var u=t.id(l);i[u]=l}),TA(i,a,t),LA(n,t);var o=OA(n,t),s=IA(i,a,t);return{nodes:o,links:s}}var If="x",Pf="y",kf="name",Df="source",DA={nodeStyle:{opacity:1,fillOpacity:1,lineWidth:1},edgeStyle:{opacity:.5,lineWidth:2},label:{fields:["x","name"],callback:function(e,r){var t=(e[0]+e[1])/2,i=t>.5?-4:4;return{offsetX:i,content:r}},labelEmit:!0,style:{fill:"#8c8c8c"}},tooltip:{showTitle:!1,showMarkers:!1,fields:["source","target","value","isNode"],showContent:function(e){return!(0,h.get)(e,[0,"data","isNode"])},formatter:function(e){var r=e.source,t=e.target,i=e.value;return{name:r+" -> "+t,value:i}}},interactions:[{type:"element-active"}],weight:!0,nodePaddingRatio:.1,nodeWidthRatio:.05};function BA(e){var r=e.options,t=r.data,i=r.sourceField,n=r.targetField,a=r.weightField,o=r.nodePaddingRatio,s=r.nodeWidthRatio,l=r.rawFields,u=l===void 0?[]:l,c=fh(t,i,n,a),f=kA({weight:!0,nodePaddingRatio:o,nodeWidthRatio:s},c),v=f.nodes,d=f.links,p=v.map(function(m){return(0,g.__assign)((0,g.__assign)({},$t(m,(0,g.__spreadArrays)(["id","x","y","name"],u))),{isNode:!0})}),y=d.map(function(m){return(0,g.__assign)((0,g.__assign)({source:m.source.name,target:m.target.name,name:m.source.name||m.target.name},$t(m,(0,g.__spreadArrays)(["x","y","value"],u))),{isNode:!1})});return(0,g.__assign)((0,g.__assign)({},e),{ext:(0,g.__assign)((0,g.__assign)({},e.ext),{chordData:{nodesData:p,edgesData:y}})})}function RA(e){var r,t=e.chart;return t.scale((r={x:{sync:!0,nice:!0},y:{sync:!0,nice:!0,max:1}},r[kf]={sync:"color"},r[Df]={sync:"color"},r)),e}function NA(e){var r=e.chart;return r.axis(!1),e}function zA(e){var r=e.chart;return r.legend(!1),e}function VA(e){var r=e.chart,t=e.options,i=t.tooltip;return r.tooltip(i),e}function GA(e){var r=e.chart;return r.coordinate("polar").reflect("y"),e}function WA(e){var r=e.chart,t=e.options,i=e.ext.chordData.nodesData,n=t.nodeStyle,a=t.label,o=t.tooltip,s=r.createView();return s.data(i),Sa({chart:s,options:{xField:If,yField:Pf,seriesField:kf,polygon:{style:n},label:a,tooltip:o}}),e}function HA(e){var r=e.chart,t=e.options,i=e.ext.chordData.edgesData,n=t.edgeStyle,a=t.tooltip,o=r.createView();o.data(i);var s={xField:If,yField:Pf,seriesField:Df,edge:{style:n,shape:"arc"},tooltip:a};return Mh({chart:o,options:s}),e}function YA(e){var r=e.chart,t=e.options,i=t.animation;return cn(r,i,ob(r)),e}function XA(e){return Et(Xt,BA,GA,RA,NA,zA,VA,HA,WA,oe,Lr,YA)(e)}var kO=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="chord",t}return r.getDefaultOptions=function(){return DA},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.getSchemaAdaptor=function(){return XA},r}(kt),UA=["x","y","r","name","value","path","depth"],jA={colorField:"name",autoFit:!0,pointStyle:{lineWidth:0,stroke:"#fff"},legend:!1,hierarchyConfig:{size:[1,1],padding:0},label:{fields:["name"],layout:{type:"limit-in-shape"}},tooltip:{showMarkers:!1,showTitle:!1},drilldown:{enabled:!1}},Bf=4,ZA=0,Rf=5,Nf="drilldown-bread-crumb",KA={position:"top-left",dividerText:"/",textStyle:{fontSize:12,fill:"rgba(0, 0, 0, 0.65)",cursor:"pointer"},activeTextStyle:{fill:"#87B5FF"}},mn="hierarchy-data-transform-params",qA=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.name="drill-down",t.historyCache=[],t.breadCrumbGroup=null,t.breadCrumbCfg=KA,t}return r.prototype.click=function(){var t=(0,h.get)(this.context,["event","data","data"]);if(!t)return!1;this.drill(t),this.drawBreadCrumb()},r.prototype.resetPosition=function(){if(!!this.breadCrumbGroup){var t=this.context.view.getCoordinate(),i=this.breadCrumbGroup,n=i.getBBox(),a=this.getButtonCfg().position,o={x:t.start.x,y:t.end.y-(n.height+Rf*2)};t.isPolar&&(o={x:0,y:0}),a==="bottom-left"&&(o={x:t.start.x,y:t.start.y});var s=ke.transform(null,[["t",o.x+ZA,o.y+n.height+Rf]]);i.setMatrix(s)}},r.prototype.back=function(){(0,h.size)(this.historyCache)&&this.backTo(this.historyCache.slice(0,-1))},r.prototype.reset=function(){this.historyCache[0]&&this.backTo(this.historyCache.slice(0,1)),this.historyCache=[],this.hideCrumbGroup()},r.prototype.drill=function(t){var i=this.context.view,n=(0,h.get)(i,["interactions","drill-down","cfg","transformData"],function(u){return u}),a=n((0,g.__assign)({data:t.data},t[mn]));i.changeData(a);for(var o=[],s=t;s;){var l=s.data;o.unshift({id:l.name+"_"+s.height+"_"+s.depth,name:l.name,children:n((0,g.__assign)({data:l},t[mn]))}),s=s.parent}this.historyCache=(this.historyCache||[]).slice(0,-1).concat(o)},r.prototype.backTo=function(t){if(!(!t||t.length<=0)){var i=this.context.view,n=(0,h.last)(t).children;i.changeData(n),t.length>1?(this.historyCache=t,this.drawBreadCrumb()):(this.historyCache=[],this.hideCrumbGroup())}},r.prototype.getButtonCfg=function(){var t=this.context.view,i=(0,h.get)(t,["interactions","drill-down","cfg","drillDownConfig"]);return I(this.breadCrumbCfg,i==null?void 0:i.breadCrumb,this.cfg)},r.prototype.drawBreadCrumb=function(){this.drawBreadCrumbGroup(),this.resetPosition(),this.breadCrumbGroup.show()},r.prototype.drawBreadCrumbGroup=function(){var t=this,i=this.getButtonCfg(),n=this.historyCache;this.breadCrumbGroup?this.breadCrumbGroup.clear():this.breadCrumbGroup=this.context.view.foregroundGroup.addGroup({name:Nf});var a=0;n.forEach(function(o,s){var l=t.breadCrumbGroup.addShape({type:"text",id:o.id,name:Nf+"_"+o.name+"_text",attrs:(0,g.__assign)((0,g.__assign)({text:s===0&&!(0,h.isNil)(i.rootText)?i.rootText:o.name},i.textStyle),{x:a,y:0})}),u=l.getBBox();if(a+=u.width+Bf,l.on("click",function(v){var d,p=v.target.get("id");if(p!==((d=(0,h.last)(n))===null||d===void 0?void 0:d.id)){var y=n.slice(0,n.findIndex(function(m){return m.id===p})+1);t.backTo(y)}}),l.on("mouseenter",function(v){var d,p=v.target.get("id");p!==((d=(0,h.last)(n))===null||d===void 0?void 0:d.id)?l.attr(i.activeTextStyle):l.attr({cursor:"default"})}),l.on("mouseleave",function(){l.attr(i.textStyle)}),s0&&t*t>i*i+n*n}function Is(e,r){for(var t=0;tl?(n=(u+l-a)/(2*u),s=Math.sqrt(Math.max(0,l/u-n*n)),t.x=e.x-n*i-s*o,t.y=e.y-n*o+s*i):(n=(u+a-l)/(2*u),s=Math.sqrt(Math.max(0,a/u-n*n)),t.x=r.x+n*i-s*o,t.y=r.y+n*o+s*i)):(t.x=r.x+t.r,t.y=r.y)}function Hf(e,r){var t=e.r+r.r-1e-6,i=r.x-e.x,n=r.y-e.y;return t>0&&t*t>i*i+n*n}function Yf(e){var r=e._,t=e.next._,i=r.r+t.r,n=(r.x*t.r+t.x*r.r)/i,a=(r.y*t.r+t.y*r.r)/i;return n*n+a*a}function Pa(e){this._=e,this.next=null,this.previous=null}function Xf(e){if(!(n=(e=$A(e)).length))return 0;var r,t,i,n,a,o,s,l,u,c,f;if(r=e[0],r.x=0,r.y=0,!(n>1))return r.r;if(t=e[1],r.x=-t.r,t.x=r.r,t.y=0,!(n>2))return r.r+t.r;Wf(t,r,i=e[2]),r=new Pa(r),t=new Pa(t),i=new Pa(i),r.next=i.previous=t,t.next=r.previous=i,i.next=t.previous=r;t:for(s=3;s=0;)r+=t[i].value;e.value=r}function sM(){return this.eachAfter(oM)}var lM=M(64254);function Kf(e,r){var t=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=(0,lM.Z)(e))||r&&e&&typeof e.length=="number"){t&&(e=t);var i=0,n=function(){};return{s:n,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(u){throw u},f:n}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,o=!1,s;return{s:function(){t=t.call(e)},n:function(){var u=t.next();return a=u.done,u},e:function(u){o=!0,s=u},f:function(){try{!a&&t.return!=null&&t.return()}finally{if(o)throw s}}}}function uM(e,r){var t=-1,i=Kf(this),n;try{for(i.s();!(n=i.n()).done;){var a=n.value;e.call(r,a,++t,this)}}catch(o){i.e(o)}finally{i.f()}return this}function cM(e,r){for(var t=this,i=[t],n,a,o=-1;t=i.pop();)if(e.call(r,t,++o,this),n=t.children)for(a=n.length-1;a>=0;--a)i.push(n[a]);return this}function hM(e,r){for(var t=this,i=[t],n=[],a,o,s,l=-1;t=i.pop();)if(n.push(t),a=t.children)for(o=0,s=a.length;o=0;)t+=i[n].value;r.value=t})}function dM(e){return this.eachBefore(function(r){r.children&&r.children.sort(e)})}function gM(e){for(var r=this,t=pM(r,e),i=[r];r!==t;)r=r.parent,i.push(r);for(var n=i.length;e!==t;)i.splice(n,0,e),e=e.parent;return i}function pM(e,r){if(e===r)return e;var t=e.ancestors(),i=r.ancestors(),n=null;for(e=t.pop(),r=i.pop();e===r;)n=e,e=t.pop(),r=i.pop();return n}function yM(){for(var e=this,r=[e];e=e.parent;)r.push(e);return r}function mM(){return Array.from(this)}function xM(){var e=[];return this.eachBefore(function(r){r.children||e.push(r)}),e}function _M(){var e=this,r=[];return e.each(function(t){t!==e&&r.push({source:t.parent,target:t})}),r}var qf=M(39428),wM=(0,qf.Z)().mark($f);function $f(){var e,r,t,i,n,a;return(0,qf.Z)().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:e=this,t=[e];case 1:r=t.reverse(),t=[];case 2:if(!(e=r.pop())){s.next=8;break}return s.next=5,e;case 5:if(i=e.children)for(n=0,a=i.length;n=0;--s)n.push(a=o[s]=new Ei(o[s])),a.parent=i,a.depth=i.depth+1;return t.eachBefore(Qf)}function bM(){return Fi(this).eachBefore(AM)}function SM(e){return e.children}function CM(e){return Array.isArray(e)?e[1]:null}function AM(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}function Qf(e){var r=0;do e.height=r;while((e=e.parent)&&e.height<++r)}function Ei(e){this.data=e,this.depth=this.height=0,this.parent=null}Ei.prototype=Fi.prototype=(0,aM.Z)({constructor:Ei,count:sM,each:uM,eachAfter:hM,eachBefore:cM,find:fM,sum:vM,sort:dM,path:gM,ancestors:yM,descendants:mM,leaves:xM,links:_M,copy:bM},Symbol.iterator,$f);var Jf="nodeIndex",tv="childNodeCount",ks="nodeAncestor",Ds="Invalid field: it must be a string!";function Bs(e,r){var t=e.field,i=e.fields;if((0,h.isString)(t))return t;if((0,h.isArray)(t))return console.warn(Ds),t[0];if(console.warn(Ds+" will try to get fields instead."),(0,h.isString)(i))return i;if((0,h.isArray)(i)&&i.length)return i[0];if(r)return r;throw new TypeError(Ds)}function Rs(e){var r=[];if(e&&e.each){var t,i;e.each(function(n){var a,o;n.parent!==t?(t=n.parent,i=0):i+=1;var s=(0,h.filter)((((a=n.ancestors)===null||a===void 0?void 0:a.call(n))||[]).map(function(l){return r.find(function(u){return u.name===l.name})||l}),function(l){var u=l.depth;return u>0&&u1;)c=((u=f.parent.data)===null||u===void 0?void 0:u.name)+" / "+c,f=f.parent;if(a&&l.depth>2)return null;var v=I({},l.data,(0,g.__assign)((0,g.__assign)((0,g.__assign)({},$t(l.data,n)),{path:c}),l));v.ext=t,v[mn]={hierarchyConfig:t,rawFields:n,enableDrillDown:a},s.push(v)}),s}function rv(e,r,t){var i=ds([e,r]),n=i[0],a=i[1],o=i[2],s=i[3],l=t.width,u=t.height,c=l-(s+a),f=u-(n+o),v=Math.min(c,f),d=(c-v)/2,p=(f-v)/2,y=n+p,m=a+d,x=o+p,_=s+d,w=[y,m,x,_],b=v<0?0:v;return{finalPadding:w,finalSize:b}}function EM(e){var r=e.chart,t=Math.min(r.viewBBox.width,r.viewBBox.height);return I({options:{size:function(i){var n=i.r;return n*t}}},e)}function TM(e){var r=e.options,t=e.chart,i=t.viewBBox,n=r.padding,a=r.appendPadding,o=r.drilldown,s=a;if(o==null?void 0:o.enabled){var l=pa(t.appendPadding,(0,h.get)(o,["breadCrumb","position"]));s=ds([l,a])}var u=rv(n,s,i).finalPadding;return t.padding=u,t.appendPadding=0,e}function LM(e){var r=e.chart,t=e.options,i=r.padding,n=r.appendPadding,a=t.color,o=t.colorField,s=t.pointStyle,l=t.hierarchyConfig,u=t.sizeField,c=t.rawFields,f=c===void 0?[]:c,v=t.drilldown,d=ev({data:t.data,hierarchyConfig:l,enableDrillDown:v==null?void 0:v.enabled,rawFields:f});r.data(d);var p=r.viewBBox,y=rv(i,n,p).finalSize,m=function(x){var _=x.r;return _*y};return u&&(m=function(x){return x[u]*y}),Ge(I({},e,{options:{xField:"x",yField:"y",seriesField:o,sizeField:u,rawFields:(0,g.__spreadArrays)(UA,f),point:{color:a,style:s,shape:"circle",size:m}}})),e}function OM(e){return Et(he({},{x:{min:0,max:1,minLimit:0,maxLimit:1,nice:!0},y:{min:0,max:1,minLimit:0,maxLimit:1,nice:!0}}))(e)}function IM(e){var r=e.chart,t=e.options,i=t.tooltip;if(i===!1)r.tooltip(!1);else{var n=i;(0,h.get)(i,"fields")||(n=I({},{customItems:function(a){return a.map(function(o){var s=(0,h.get)(r.getOptions(),"scales"),l=(0,h.get)(s,["name","formatter"],function(c){return c}),u=(0,h.get)(s,["value","formatter"],function(c){return c});return(0,g.__assign)((0,g.__assign)({},o),{name:l(o.data.name),value:u(o.data.value)})})}},n)),r.tooltip(n)}return e}function PM(e){var r=e.chart;return r.axis(!1),e}function kM(e){var r=e.drilldown,t=e.interactions,i=t===void 0?[]:t;return(r==null?void 0:r.enabled)?I({},e,{interactions:(0,g.__spreadArrays)(i,[{type:"drill-down",cfg:{drillDownConfig:r,transformData:ev,enableDrillDown:!0}}])}):e}function DM(e){var r=e.chart,t=e.options;return oe({chart:r,options:kM(t)}),e}function BM(e){return Et(Ve("pointStyle"),EM,TM,Xt,OM,LM,PM,Ur,IM,DM,Qt,le())(e)}function iv(e){var r=(0,h.get)(e,["event","data","data"],{});return(0,h.isArray)(r.children)&&r.children.length>0}function nv(e){var r=e.view.getCoordinate(),t=r.innerRadius;if(t){var i=e.event,n=i.x,a=i.y,o=r.center,s=o.x,l=o.y,u=r.getRadius()*t,c=Math.sqrt(Math.pow(s-n,2)+Math.pow(l-a,2));return c-1?lb(p,f,v):!0}),e.getRootView().render(!0)}};function VM(e){var r,t=e.options,i=t.geometryOptions,n=i===void 0?[]:i,a=t.xField,o=t.yField,s=(0,h.every)(n,function(l){var u=l.geometry;return u===ti.Line||u===void 0});return I({},{options:{geometryOptions:[],meta:(r={},r[a]={type:"cat",sync:!0,range:s?[0,1]:void 0},r),tooltip:{showMarkers:s,showCrosshairs:s,shared:!0,crosshairs:{type:"x"}},interactions:s?[{type:"legend-visible-filter"}]:[{type:"legend-visible-filter"},{type:"active-region"}],legend:{position:"top-left"}}},e,{options:{yAxis:sv(o,t.yAxis),geometryOptions:[ov(a,o[0],n[0]),ov(a,o[1],n[1])],annotations:sv(o,t.annotations)}})}function GM(e){var r,t,i=e.chart,n=e.options,a=n.geometryOptions,o={line:0,column:1},s=[{type:(r=a[0])===null||r===void 0?void 0:r.geometry,id:We},{type:(t=a[1])===null||t===void 0?void 0:t.geometry,id:He}];return s.sort(function(l,u){return-o[l.type]+o[u.type]}).forEach(function(l){return i.createView({id:l.id})}),e}function WM(e){var r=e.chart,t=e.options,i=t.xField,n=t.yField,a=t.geometryOptions,o=t.data,s=t.tooltip,l=[(0,g.__assign)((0,g.__assign)({},a[0]),{id:We,data:o[0],yField:n[0]}),(0,g.__assign)((0,g.__assign)({},a[1]),{id:He,data:o[1],yField:n[1]})];return l.forEach(function(u){var c=u.id,f=u.data,v=u.yField,d=zs(u)&&u.isPercent,p=d?Th(f,v,i,v):f,y=Nt(r,c).data(p),m=d?(0,g.__assign)({formatter:function(x){return{name:x[u.seriesField]||v,value:(Number(x[v])*100).toFixed(2)+"%"}}},s):s;zM({chart:y,options:{xField:i,yField:v,tooltip:m,geometryOption:u}})}),e}function HM(e){var r,t=e.chart,i=e.options,n=i.geometryOptions,a=((r=t.getTheme())===null||r===void 0?void 0:r.colors10)||[],o=0;return t.once("beforepaint",function(){(0,h.each)(n,function(s,l){var u=Nt(t,l===0?We:He);if(!s.color){var c=u.getGroupScales(),f=(0,h.get)(c,[0,"values","length"],1),v=a.slice(o,o+f).concat(l===0?[]:a);u.geometries.forEach(function(d){s.seriesField?d.color(s.seriesField,v):d.color(v[0])}),o+=f}}),t.render(!0)}),e}function YM(e){var r,t,i=e.chart,n=e.options,a=n.xAxis,o=n.yAxis,s=n.xField,l=n.yField;return he((r={},r[s]=a,r[l[0]]=o[0],r))(I({},e,{chart:Nt(i,We)})),he((t={},t[s]=a,t[l[1]]=o[1],t))(I({},e,{chart:Nt(i,He)})),e}function XM(e){var r=e.chart,t=e.options,i=Nt(r,We),n=Nt(r,He),a=t.xField,o=t.yField,s=t.xAxis,l=t.yAxis;return r.axis(a,!1),r.axis(o[0],!1),r.axis(o[1],!1),i.axis(a,s),i.axis(o[0],lv(l[0],Ti.Left)),n.axis(a,!1),n.axis(o[1],lv(l[1],Ti.Right)),e}function UM(e){var r=e.chart,t=e.options,i=t.tooltip,n=Nt(r,We),a=Nt(r,He);return r.tooltip(i),n.tooltip({shared:!0}),a.tooltip({shared:!0}),e}function jM(e){var r=e.chart;return oe(I({},e,{chart:Nt(r,We)})),oe(I({},e,{chart:Nt(r,He)})),e}function ZM(e){var r=e.chart,t=e.options,i=t.annotations,n=(0,h.get)(i,[0]),a=(0,h.get)(i,[1]);return le(n)(I({},e,{chart:Nt(r,We),options:{annotations:n}})),le(a)(I({},e,{chart:Nt(r,He),options:{annotations:a}})),e}function KM(e){var r=e.chart;return Xt(I({},e,{chart:Nt(r,We)})),Xt(I({},e,{chart:Nt(r,He)})),Xt(e),e}function qM(e){var r=e.chart;return Qt(I({},e,{chart:Nt(r,We)})),Qt(I({},e,{chart:Nt(r,He)})),e}function $M(e){var r=e.chart,t=e.options,i=t.yAxis;return jr(I({},e,{chart:Nt(r,We),options:{yAxis:i[0]}})),jr(I({},e,{chart:Nt(r,He),options:{yAxis:i[1]}})),e}function QM(e){var r=e.chart,t=e.options,i=t.legend,n=t.geometryOptions,a=t.yField,o=t.data,s=Nt(r,We),l=Nt(r,He);if(i===!1)r.legend(!1);else if((0,h.isObject)(i)&&i.custom===!0)r.legend(i);else{var u=(0,h.get)(n,[0,"legend"],i),c=(0,h.get)(n,[1,"legend"],i);r.once("beforepaint",function(){var f=o[0].length?uv({view:s,geometryOption:n[0],yField:a[0],legend:u}):[],v=o[1].length?uv({view:l,geometryOption:n[1],yField:a[1],legend:c}):[];r.legend(I({},i,{custom:!0,items:f.concat(v)}))}),n[0].seriesField&&s.legend(n[0].seriesField,u),n[1].seriesField&&l.legend(n[1].seriesField,c),r.on("legend-item:click",function(f){var v=(0,h.get)(f,"gEvent.delegateObject",{});if(v&&v.item){var d=v.item,p=d.value,y=d.isGeometry,m=d.viewId;if(y){var x=(0,h.findIndex)(a,function(b){return b===p});if(x>-1){var _=(0,h.get)(Nt(r,m),"geometries");(0,h.each)(_,function(b){b.changeVisible(!v.item.unchecked)})}}else{var w=(0,h.get)(r.getController("legend"),"option.items",[]);(0,h.each)(r.views,function(b){var S=b.getGroupScales();(0,h.each)(S,function(C){C.values&&C.values.indexOf(p)>-1&&b.filter(C.field,function(A){var F=(0,h.find)(w,function(P){return P.value===A});return!F.unchecked})}),r.render(!0)})}}})}return e}function JM(e){var r=e.chart,t=e.options,i=t.slider,n=Nt(r,We),a=Nt(r,He);return i&&(n.option("slider",i),n.on("slider:valuechanged",function(o){var s=o.event,l=s.value,u=s.originValue;(0,h.isEqual)(l,u)||cv(a,l)}),r.once("afterpaint",function(){if(!(0,h.isBoolean)(i)){var o=i.start,s=i.end;(o||s)&&cv(a,[o,s])}})),e}function tF(e){return Et(VM,GM,KM,WM,YM,XM,$M,UM,jM,ZM,qM,HM,QM,JM)(e)}var BO=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="dual-axes",t}return r.prototype.getDefaultOptions=function(){return I({},e.prototype.getDefaultOptions.call(this),{yAxis:[],syncViewPadding:!0})},r.prototype.getSchemaAdaptor=function(){return tF},r}(kt);function eF(e,r){var t=r.data,i=r.coordinate,n=r.interactions,a=r.annotations,o=r.animation,s=r.tooltip,l=r.axes,u=r.meta,c=r.geometries;t&&e.data(t);var f={};l&&(0,h.each)(l,function(v,d){f[d]=$t(v,Be)}),f=I({},u,f),e.scale(f),i&&e.coordinate(i),l===!1?e.axis(!1):(0,h.each)(l,function(v,d){e.axis(d,v)}),(0,h.each)(c,function(v){var d=Re({chart:e,options:v}).ext,p=v.adjust;p&&d.geometry.adjust(p)}),(0,h.each)(n,function(v){v.enable===!1?e.removeInteraction(v.type):e.interaction(v.type,v.cfg)}),(0,h.each)(a,function(v){e.annotation()[v.type]((0,g.__assign)({},v))}),cn(e,o),s?(e.interaction("tooltip"),e.tooltip(s)):s===!1&&e.removeInteraction("tooltip")}function rF(e){var r=e.chart,t=e.options,i=t.type,n=t.data,a=t.fields,o=t.eachView,s=(0,h.omit)(t,["type","data","fields","eachView","axes","meta","tooltip","coordinate","theme","legend","interactions","annotations"]);return r.data(n),r.facet(i,(0,g.__assign)((0,g.__assign)({},s),{fields:a,eachView:function(l,u){var c=o(l,u);if(c.geometries)eF(l,c);else{var f=c,v=f.options;v.tooltip&&l.interaction("tooltip"),Ls(f.type,l,v)}}})),e}function iF(e){var r=e.chart,t=e.options,i=t.axes,n=t.meta,a=t.tooltip,o=t.coordinate,s=t.theme,l=t.legend,u=t.interactions,c=t.annotations,f={};return i&&(0,h.each)(i,function(v,d){f[d]=$t(v,Be)}),f=I({},n,f),r.scale(f),r.coordinate(o),i?(0,h.each)(i,function(v,d){r.axis(d,v)}):r.axis(!1),a?(r.interaction("tooltip"),r.tooltip(a)):a===!1&&r.removeInteraction("tooltip"),r.legend(l),s&&r.theme(s),(0,h.each)(u,function(v){v.enable===!1?r.removeInteraction(v.type):r.interaction(v.type,v.cfg)}),(0,h.each)(c,function(v){r.annotation()[v.type]((0,g.__assign)({},v))}),e}function nF(e){return Et(Xt,rF,iF)(e)}var aF={title:{style:{fontSize:12,fill:"rgba(0,0,0,0.65)"}},rowTitle:{style:{fontSize:12,fill:"rgba(0,0,0,0.65)"}},columnTitle:{style:{fontSize:12,fill:"rgba(0,0,0,0.65)"}}},RO=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="area",t}return r.getDefaultOptions=function(){return aF},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.getSchemaAdaptor=function(){return nF},r}(kt);function oF(e){var r=e.chart,t=e.options,i=t.data,n=t.type,a=t.xField,o=t.yField,s=t.colorField,l=t.sizeField,u=t.sizeRatio,c=t.shape,f=t.color,v=t.tooltip,d=t.heatmapStyle,p=t.meta;r.data(i);var y="polygon";n==="density"&&(y="heatmap");var m=Ye(v,[a,o,s]),x=m.fields,_=m.formatter,w=1;return(u||u===0)&&(!c&&!l?console.warn("sizeRatio is not in effect: Must define shape or sizeField first"):u<0||u>1?console.warn("sizeRatio is not in effect: It must be a number in [0,1]"):w=u),Re(I({},e,{options:{type:y,colorField:s,tooltipFields:x,shapeField:l||"",label:void 0,mapping:{tooltip:_,shape:c&&(l?function(b){var S=i.map(function(P){return P[l]}),C=(p==null?void 0:p[l])||{},A=C.min,F=C.max;return A=(0,h.isNumber)(A)?A:Math.min.apply(Math,S),F=(0,h.isNumber)(F)?F:Math.max.apply(Math,S),[c,((0,h.get)(b,l)-A)/(F-A),w]}:function(){return[c,1,w]}),color:f||s&&r.getTheme().sequenceColors.join("-"),style:d}}})),e}function sF(e){var r,t=e.options,i=t.xAxis,n=t.yAxis,a=t.xField,o=t.yField;return Et(he((r={},r[a]=i,r[o]=n,r)))(e)}function lF(e){var r=e.chart,t=e.options,i=t.xAxis,n=t.yAxis,a=t.xField,o=t.yField;return i===!1?r.axis(a,!1):r.axis(a,i),n===!1?r.axis(o,!1):r.axis(o,n),e}function uF(e){var r=e.chart,t=e.options,i=t.legend,n=t.colorField,a=t.sizeField,o=t.sizeLegend,s=i!==!1;return n&&r.legend(n,s?i:!1),a&&r.legend(a,o===void 0?i:o),!s&&!o&&r.legend(!1),e}function cF(e){var r=e.chart,t=e.options,i=t.label,n=t.colorField,a=t.type,o=Me(r,a==="density"?"heatmap":"polygon");if(!i)o.label(!1);else if(n){var s=i.callback,l=(0,g.__rest)(i,["callback"]);o.label({fields:[n],callback:s,cfg:be(l)})}return e}function hF(e){var r,t,i=e.chart,n=e.options,a=n.coordinate,o=n.reflect,s=I({actions:[]},a!=null?a:{type:"rect"});return o&&((t=(r=s.actions)===null||r===void 0?void 0:r.push)===null||t===void 0||t.call(r,["reflect",o])),i.coordinate(s),e}function fF(e){return Et(Xt,Ve("heatmapStyle"),sF,hF,oF,lF,uF,me,cF,le(),oe,Qt,Lr)(e)}var vF=I({},kt.getDefaultOptions(),{type:"polygon",legend:!1,coordinate:{type:"rect"},xAxis:{tickLine:null,line:null,grid:{alignTick:!1,line:{style:{lineWidth:1,lineDash:null,stroke:"#f0f0f0"}}}},yAxis:{grid:{alignTick:!1,line:{style:{lineWidth:1,lineDash:null,stroke:"#f0f0f0"}}}}});Zt("polygon","circle",{draw:function(e,r){var t,i,n=e.x,a=e.y,o=this.parsePoints(e.points),s=Math.abs(o[2].x-o[1].x),l=Math.abs(o[1].y-o[0].y),u=Math.min(s,l)/2,c=Number(e.shape[1]),f=Number(e.shape[2]),v=Math.sqrt(f),d=u*v*Math.sqrt(c),p=((t=e.style)===null||t===void 0?void 0:t.fill)||e.color||((i=e.defaultStyle)===null||i===void 0?void 0:i.fill),y=r.addShape("circle",{attrs:(0,g.__assign)((0,g.__assign)((0,g.__assign)({x:n,y:a,r:d},e.defaultStyle),e.style),{fill:p})});return y}}),Zt("polygon","square",{draw:function(e,r){var t,i,n=e.x,a=e.y,o=this.parsePoints(e.points),s=Math.abs(o[2].x-o[1].x),l=Math.abs(o[1].y-o[0].y),u=Math.min(s,l),c=Number(e.shape[1]),f=Number(e.shape[2]),v=Math.sqrt(f),d=u*v*Math.sqrt(c),p=((t=e.style)===null||t===void 0?void 0:t.fill)||e.color||((i=e.defaultStyle)===null||i===void 0?void 0:i.fill),y=r.addShape("rect",{attrs:(0,g.__assign)((0,g.__assign)((0,g.__assign)({x:n-d/2,y:a-d/2,width:d,height:d},e.defaultStyle),e.style),{fill:p})});return y}});var NO=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="heatmap",t}return r.getDefaultOptions=function(){return vF},r.prototype.getSchemaAdaptor=function(){return fF},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r}(kt),dF="liquid";function hv(e){return[{percent:e,type:dF}]}function gF(e){var r=e.chart,t=e.options,i=t.percent,n=t.liquidStyle,a=t.radius,o=t.outline,s=t.wave,l=t.shape,u=t.shapeStyle,c=t.animation;r.scale({percent:{min:0,max:1}}),r.data(hv(i));var f=t.color||r.getTheme().defaultColor,v=I({},e,{options:{xField:"type",yField:"percent",widthRatio:a,interval:{color:f,style:n,shape:"liquid-fill-gauge"}}}),d=Fe(v).ext,p=d.geometry,y=r.getTheme().background,m={percent:i,radius:a,outline:o,wave:s,shape:l,shapeStyle:u,background:y,animation:c};return p.customInfo(m),r.legend(!1),r.axis(!1),r.tooltip(!1),e}function fv(e,r){var t=e.chart,i=e.options,n=i.statistic,a=i.percent,o=i.meta;t.getController("annotation").clear(!0);var s=(0,h.get)(o,["percent","formatter"])||function(u){return(u*100).toFixed(2)+"%"},l=n.content;return l&&(l=I({},l,{content:(0,h.isNil)(l.content)?s(a):l.content})),ya(t,{statistic:(0,g.__assign)((0,g.__assign)({},n),{content:l}),plotType:"liquid"},{percent:a}),r&&t.render(!0),e}function pF(e){return Et(Xt,Ve("liquidStyle"),gF,fv,he({}),Qt,oe)(e)}var yF={radius:.9,statistic:{title:!1,content:{style:{opacity:.75,fontSize:"30px",lineHeight:"30px",textAlign:"center"}}},outline:{border:2,distance:0},wave:{count:3,length:192},shape:"circle"},vv=5e3;function dv(e,r,t){return e+(r-e)*t}function mF(e){var r=(0,g.__assign)({opacity:1},e.style);return e.color&&!r.fill&&(r.fill=e.color),r}function xF(e){var r={fill:"#fff",fillOpacity:0,lineWidth:4},t=(0,h.mix)({},r,e.style);return e.color&&!t.stroke&&(t.stroke=e.color),(0,h.isNumber)(e.opacity)&&(t.opacity=t.strokeOpacity=e.opacity),t}function _F(e,r,t,i){return r===0?[[e+1/2*t/Math.PI/2,i/2],[e+1/2*t/Math.PI,i],[e+t/4,i]]:r===1?[[e+1/2*t/Math.PI/2*(Math.PI-2),i],[e+1/2*t/Math.PI/2*(Math.PI-1),i/2],[e+t/4,0]]:r===2?[[e+1/2*t/Math.PI/2,-i/2],[e+1/2*t/Math.PI,-i],[e+t/4,-i]]:[[e+1/2*t/Math.PI/2*(Math.PI-2),-i],[e+1/2*t/Math.PI/2*(Math.PI-1),-i/2],[e+t/4,0]]}function wF(e,r,t,i,n,a,o){for(var s=Math.ceil(2*e/t*4)*4,l=[],u=i;u<-Math.PI*2;)u+=Math.PI*2;for(;u>0;)u-=Math.PI*2;u=u/Math.PI/2*t;var c=a-e+u-e*2;l.push(["M",c,r]);for(var f=0,v=0;v0){var Q=r.addGroup({name:"waves"}),xt=Q.setClip({type:"path",attrs:{path:z}});bF(w.x,w.y,1-e.points[1].y,m,A,Q,xt,C*2,x,f)}return r.addShape("path",{name:"distance",attrs:{path:z,fill:"transparent",lineWidth:p+y*2,stroke:c==="transparent"?"#fff":c}}),r.addShape("path",{name:"wrap",attrs:(0,h.mix)(F,{path:z,fill:"transparent",lineWidth:p})}),r}});var zO=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="liquid",t}return r.getDefaultOptions=function(){return yF},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.changeData=function(t){this.chart.emit(O.BEFORE_CHANGE_DATA,ue.fromData(this.chart,O.BEFORE_CHANGE_DATA,null)),this.updateOption({percent:t}),this.chart.data(hv(t)),fv({chart:this.chart,options:this.options},!0),this.chart.emit(O.AFTER_CHANGE_DATA,ue.fromData(this.chart,O.AFTER_CHANGE_DATA,null))},r.prototype.getSchemaAdaptor=function(){return pF},r}(kt);function EF(e){var r=e.chart,t=e.options,i=t.data,n=t.lineStyle,a=t.color,o=t.point,s=t.area;r.data(i);var l=I({},e,{options:{line:{style:n,color:a},point:o&&(0,g.__assign)({color:a},o),area:s&&(0,g.__assign)({color:a},s),label:void 0}}),u=I({},l,{options:{tooltip:!1}}),c=(o==null?void 0:o.state)||t.state,f=I({},l,{options:{tooltip:!1,state:c}});return wi(l),Ge(f),ba(u),e}function TF(e){var r,t=e.options,i=t.xAxis,n=t.yAxis,a=t.xField,o=t.yField;return Et(he((r={},r[a]=i,r[o]=n,r)))(e)}function LF(e){var r=e.chart,t=e.options,i=t.radius,n=t.startAngle,a=t.endAngle;return r.coordinate("polar",{radius:i,startAngle:n,endAngle:a}),e}function OF(e){var r=e.chart,t=e.options,i=t.xField,n=t.xAxis,a=t.yField,o=t.yAxis;return r.axis(i,n),r.axis(a,o),e}function IF(e){var r=e.chart,t=e.options,i=t.label,n=t.yField,a=Me(r,"line");if(!i)a.label(!1);else{var o=i.callback,s=(0,g.__rest)(i,["callback"]);a.label({fields:[n],callback:o,cfg:be(s)})}return e}function PF(e){return Et(EF,TF,Xt,LF,OF,Ur,me,IF,oe,Qt,le())(e)}var kF=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(r.prototype,"name",{get:function(){return"radar-tooltip"},enumerable:!1,configurable:!0}),r.prototype.getTooltipItems=function(t){var i=this.getTooltipCfg(),n=i.shared,a=i.title,o=e.prototype.getTooltipItems.call(this,t);if(o.length>0){var s=this.view.geometries[0],l=s.dataArray,u=o[0].name,c=[];return l.forEach(function(f){f.forEach(function(v){var d=ke.getTooltipItems(v,s),p=d[0];if(!n&&p&&p.name===u){var y=(0,h.isNil)(a)?u:a;c.push((0,g.__assign)((0,g.__assign)({},p),{name:p.title,title:y}))}else if(n&&p){var y=(0,h.isNil)(a)?p.name||u:a;c.push((0,g.__assign)((0,g.__assign)({},p),{name:p.title,title:y}))}})}),c}return[]},r}(Pu);Vr("radar-tooltip",kF);var DF=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.init=function(){var t=this.context.view;t.removeInteraction("tooltip")},r.prototype.show=function(){var t=this.context.event,i=this.getTooltipController();i.showTooltip({x:t.x,y:t.y})},r.prototype.hide=function(){var t=this.getTooltipController();t.hideTooltip()},r.prototype.getTooltipController=function(){var t=this.context.view;return t.getController("radar-tooltip")},r}(ne);yt("radar-tooltip",DF),It("radar-tooltip",{start:[{trigger:"plot:mousemove",action:"radar-tooltip:show"}],end:[{trigger:"plot:mouseleave",action:"radar-tooltip:hide"}]});var VO=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="radar",t}return r.prototype.changeData=function(t){this.updateOption({data:t}),this.chart.changeData(t)},r.prototype.getDefaultOptions=function(){return I({},e.prototype.getDefaultOptions.call(this),{xAxis:{label:{offset:15},grid:{line:{type:"line"}}},yAxis:{grid:{line:{type:"circle"}}},legend:{position:"top"},tooltip:{shared:!0,showCrosshairs:!0,showMarkers:!0,crosshairs:{type:"xy",line:{style:{stroke:"#565656",lineDash:[4]}},follow:!0}}})},r.prototype.getSchemaAdaptor=function(){return PF},r}(kt);function BF(e,r,t){var i=t.map(function(o){return o[r]}).filter(function(o){return o!==void 0}),n=i.length>0?Math.max.apply(Math,i):0,a=Math.abs(e)%360;return a?n*360/a:n}function RF(e,r,t){var i=[];return e.forEach(function(n){var a=i.find(function(o){return o[r]===n[r]});a?a[t]+=n[t]||null:i.push((0,g.__assign)({},n))}),i}function NF(e){var r=e.chart,t=e.options,i=t.barStyle,n=t.color,a=t.tooltip,o=t.colorField,s=t.type,l=t.xField,u=t.yField,c=t.data,f=xi(c,u);r.data(f);var v=I({},e,{options:{tooltip:a,seriesField:o,interval:{style:i,color:n,shape:s==="line"?"line":"intervel"},minColumnWidth:t.minBarWidth,maxColumnWidth:t.maxBarWidth,columnBackground:t.barBackground}});return Fe(v),s==="line"&&Ge({chart:r,options:{xField:l,yField:u,seriesField:o,point:{shape:"circle",color:n}}}),e}function pv(e){var r,t=e.options,i=t.yField,n=t.xField,a=t.data,o=t.isStack,s=t.isGroup,l=t.colorField,u=t.maxAngle,c=o&&!s&&l?RF(a,n,i):a,f=xi(c,i);return Et(he((r={},r[i]={min:0,max:BF(u,i,f)},r)))(e)}function zF(e){var r=e.chart,t=e.options,i=t.radius,n=t.innerRadius,a=t.startAngle,o=t.endAngle;return r.coordinate({type:"polar",cfg:{radius:i,innerRadius:n,startAngle:a,endAngle:o}}).transpose(),e}function VF(e){var r=e.chart,t=e.options,i=t.xField,n=t.xAxis;return r.axis(i,n),e}function GF(e){var r=e.chart,t=e.options,i=t.label,n=t.yField,a=Me(r,"interval");if(!i)a.label(!1);else{var o=i.callback,s=(0,g.__rest)(i,["callback"]);a.label({fields:[n],callback:o,cfg:(0,g.__assign)((0,g.__assign)({},be(s)),{type:"polar"})})}return e}function WF(e){return Et(Ve("barStyle"),NF,pv,VF,zF,oe,Qt,Xt,me,Ur,le(),GF)(e)}var HF=I({},kt.getDefaultOptions(),{interactions:[{type:"element-active"}],legend:!1,tooltip:{showMarkers:!1},xAxis:{grid:null,tickLine:null,line:null},maxAngle:240}),GO=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="radial-bar",t}return r.getDefaultOptions=function(){return HF},r.prototype.changeData=function(t){this.updateOption({data:t}),pv({chart:this.chart,options:this.options}),this.chart.changeData(t)},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.getSchemaAdaptor=function(){return WF},r}(kt);function YF(e){var r=e.chart,t=e.options,i=t.data,n=t.sectorStyle,a=t.color;return r.data(i),Et(Fe)(I({},e,{options:{marginRatio:1,interval:{style:n,color:a}}})),e}function XF(e){var r=e.chart,t=e.options,i=t.label,n=t.xField,a=Me(r,"interval");if(i===!1)a.label(!1);else if((0,h.isObject)(i)){var o=i.callback,s=i.fields,l=(0,g.__rest)(i,["callback","fields"]),u=l.offset,c=l.layout;(u===void 0||u>=0)&&(c=c?(0,h.isArray)(c)?c:[c]:[],l.layout=(0,h.filter)(c,function(f){return f.type!=="limit-in-shape"}),l.layout.length||delete l.layout),a.label({fields:s||[n],callback:o,cfg:be(l)})}else fr(Ke.WARN,i===null,"the label option must be an Object."),a.label({fields:[n]});return e}function UF(e){var r=e.chart,t=e.options,i=t.legend,n=t.seriesField;return i===!1?r.legend(!1):n&&r.legend(n,i),e}function jF(e){var r=e.chart,t=e.options,i=t.radius,n=t.innerRadius,a=t.startAngle,o=t.endAngle;return r.coordinate({type:"polar",cfg:{radius:i,innerRadius:n,startAngle:a,endAngle:o}}),e}function ZF(e){var r,t=e.options,i=t.xAxis,n=t.yAxis,a=t.xField,o=t.yField;return Et(he((r={},r[a]=i,r[o]=n,r)))(e)}function KF(e){var r=e.chart,t=e.options,i=t.xAxis,n=t.yAxis,a=t.xField,o=t.yField;return i?r.axis(a,i):r.axis(a,!1),n?r.axis(o,n):r.axis(o,!1),e}function qF(e){Et(Ve("sectorStyle"),YF,ZF,XF,jF,KF,UF,me,oe,Qt,Xt,le(),Lr)(e)}var $F=I({},kt.getDefaultOptions(),{xAxis:!1,yAxis:!1,legend:{position:"right",radio:{}},sectorStyle:{stroke:"#fff",lineWidth:1},label:{layout:{type:"limit-in-shape"}},tooltip:{shared:!0,showMarkers:!1},interactions:[{type:"active-region"}]}),WO=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="rose",t}return r.getDefaultOptions=function(){return $F},r.prototype.changeData=function(t){this.updateOption({data:t}),this.chart.changeData(t)},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.getSchemaAdaptor=function(){return qF},r}(kt),yv="x",mv="y",xv="name",Da="nodes",Ba="edges";function QF(e,r,t){var i=[];return e.forEach(function(n){var a=n[r],o=n[t];i.includes(a)||i.push(a),i.includes(o)||i.push(o)}),i}function JF(e,r,t,i){var n={};return r.forEach(function(a){n[a]={},r.forEach(function(o){n[a][o]=0})}),e.forEach(function(a){n[a[t]][a[i]]=1}),n}function tE(e,r,t){if(!(0,h.isArray)(e))return[];var i=[],n=QF(e,r,t),a=JF(e,n,r,t),o={};n.forEach(function(l){o[l]=0});function s(l){o[l]=1,n.forEach(function(u){if(a[l][u]!=0)if(o[u]==1)i.push(l+"_"+u);else{if(o[u]==-1)return;s(u)}}),o[l]=-1}return n.forEach(function(l){o[l]!=-1&&s(l)}),i.length!==0&&console.warn("sankey data contains circle, "+i.length+" records removed.",i),e.filter(function(l){return i.findIndex(function(u){return u===l[r]+"_"+l[t]})<0})}function eE(e){return e.target.depth}function rE(e){return e.depth}function iE(e,r){return r-1-e.height}function Vs(e,r){return e.sourceLinks.length?e.depth:r-1}function nE(e){return e.targetLinks.length?e.depth:e.sourceLinks.length?(0,h.minBy)(e.sourceLinks,eE)-1:0}function Ra(e){return function(){return e}}function Gs(e,r){for(var t=0,i=0;ipt)throw new Error("circular link");ut=gt,gt=new Set}if(u)for(var Gt=Math.max(Ws(at,function(Ht){return Ht.depth})+1,0),Wt=void 0,Dt=0;Dtpt)throw new Error("circular link");ut=gt,gt=new Set}}function b(H){for(var at=H.nodes,pt=Math.max(Ws(at,function(ye){return ye.depth})+1,0),ut=(t-e-n)/(pt-1),gt=new Array(pt).fill(0).map(function(){return[]}),At=0,Gt=at;At0){var Oi=(Ht/Jt-Dt.y0)*at;Dt.y0+=Oi,Dt.y1+=Oi,Q(Dt)}}c===void 0&&At.sort(Na),At.length&&P(At,pt)}}function F(H,at,pt){for(var ut=H.length,gt=ut-2;gt>=0;--gt){for(var At=H[gt],Gt=0,Wt=At;Gt0){var Oi=(Ht/Jt-Dt.y0)*at;Dt.y0+=Oi,Dt.y1+=Oi,Q(Dt)}}c===void 0&&At.sort(Na),At.length&&P(At,pt)}}function P(H,at){var pt=H.length>>1,ut=H[pt];z(H,ut.y0-o,pt-1,at),L(H,ut.y1+o,pt+1,at),z(H,i,H.length-1,at),L(H,r,0,at)}function L(H,at,pt,ut){for(;pt1e-6&&(gt.y0+=At,gt.y1+=At),at=gt.y1+o}}function z(H,at,pt,ut){for(;pt>=0;--pt){var gt=H[pt],At=(gt.y1-at)*ut;At>1e-6&&(gt.y0-=At,gt.y1-=At),at=gt.y0-o}}function Q(H){var at=H.sourceLinks,pt=H.targetLinks;if(f===void 0){for(var ut=0,gt=pt;ut "+n,value:a}}},nodeWidthRatio:.008,nodePaddingRatio:.01,animation:{appear:{animation:"wave-in"},enter:{animation:"wave-in"}}}},r.prototype.changeData=function(t){this.updateOption({data:t});var i=Cv(this.options,this.chart.width,this.chart.height),n=i.nodes,a=i.edges,o=Nt(this.chart,Da),s=Nt(this.chart,Ba);o.changeData(n),s.changeData(a)},r.prototype.getSchemaAdaptor=function(){return SE},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r}(kt),Ys="ancestor-node",Av="value",_n="path",AE=[_n,Jf,ks,tv,"name","depth","height"],ME=I({},kt.getDefaultOptions(),{innerRadius:0,radius:.85,hierarchyConfig:{field:"value"},tooltip:{shared:!0,showMarkers:!1,offset:20,showTitle:!1},legend:!1,sunburstStyle:{lineWidth:.5,stroke:"#FFF"},drilldown:{enabled:!0}});function Mv(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function wn(e,r,t,i,n){for(var a=e.children,o,s=-1,l=a.length,u=e.value&&(i-r)/e.value;++s0)throw new Error("cycle");return l}return t.id=function(i){return arguments.length?(e=ka(i),t):e},t.parentId=function(i){return arguments.length?(r=ka(i),t):r},t}function GE(e,r){return e.parent===r.parent?1:2}function Xs(e){var r=e.children;return r?r[0]:e.t}function Us(e){var r=e.children;return r?r[r.length-1]:e.t}function WE(e,r,t){var i=t/(r.i-e.i);r.c-=i,r.s+=t,e.c+=i,r.z+=t,r.m+=t}function HE(e){for(var r=0,t=0,i=e.children,n=i.length,a;--n>=0;)a=i[n],a.z+=r,a.m+=r,r+=a.s+(t+=a.c)}function YE(e,r,t){return e.a.parent===r.parent?e.a:t}function za(e,r){this._=e,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=r}za.prototype=Object.create(Ei.prototype);function XE(e){for(var r=new za(e,0),t,i=[r],n,a,o,s;t=i.pop();)if(a=t._.children)for(t.children=new Array(s=a.length),o=s-1;o>=0;--o)i.push(n=t.children[o]=new za(a[o],o)),n.parent=t;return(r.parent=new za(null,0)).children=[r],r}function UE(){var e=GE,r=1,t=1,i=null;function n(u){var c=XE(u);if(c.eachAfter(a),c.parent.m=-c.z,c.eachBefore(o),i)u.eachBefore(l);else{var f=u,v=u,d=u;u.eachBefore(function(_){_.xv.x&&(v=_),_.depth>d.depth&&(d=_)});var p=f===v?1:e(f,v)/2,y=p-f.x,m=r/(v.x+p+y),x=t/(d.depth||1);u.eachBefore(function(_){_.x=(_.x+y)*m,_.y=_.depth*x})}return u}function a(u){var c=u.children,f=u.parent.children,v=u.i?f[u.i-1]:null;if(c){HE(u);var d=(c[0].z+c[c.length-1].z)/2;v?(u.z=v.z+e(u._,v._),u.m=u.z-d):u.z=d}else v&&(u.z=v.z+e(u._,v._));u.parent.A=s(u,v,u.parent.A||f[0])}function o(u){u._.x=u.z+u.parent.m,u.m+=u.parent.m}function s(u,c,f){if(c){for(var v=u,d=u,p=c,y=v.parent.children[0],m=v.m,x=d.m,_=p.m,w=y.m,b;p=Us(p),v=Xs(v),p&&v;)y=Xs(y),d=Us(d),d.a=u,b=p.z+_-v.z-m+e(p._,v._),b>0&&(WE(YE(p,u,f),u,b),m+=b,x+=b),_+=p.m,m+=v.m,w+=y.m,x+=d.m;p&&!Us(d)&&(d.t=p,d.m+=_-x),v&&!Xs(y)&&(y.t=v,y.m+=m-w,f=u)}return f}function l(u){u.x*=r,u.y=u.depth*t}return n.separation=function(u){return arguments.length?(e=u,n):e},n.size=function(u){return arguments.length?(i=!1,r=+u[0],t=+u[1],n):i?null:[r,t]},n.nodeSize=function(u){return arguments.length?(i=!0,r=+u[0],t=+u[1],n):i?[r,t]:null},n}function Va(e,r,t,i,n){for(var a=e.children,o,s=-1,l=a.length,u=e.value&&(n-t)/e.value;++s_&&(_=u),C=m*m*S,w=Math.max(_/C,C/x),w>b){m-=u;break}b=w}o.push(l={value:m,dice:d1?i:1)},t}(Tv);function Iv(){var e=Ov,r=!1,t=1,i=1,n=[0],a=Jr,o=Jr,s=Jr,l=Jr,u=Jr;function c(v){return v.x0=v.y0=0,v.x1=t,v.y1=i,v.eachBefore(f),n=[0],r&&v.eachBefore(Mv),v}function f(v){var d=n[v.depth],p=v.x0+d,y=v.y0+d,m=v.x1-d,x=v.y1-d;m=v-1){var _=a[f];_.x0=p,_.y0=y,_.x1=m,_.y1=x;return}for(var w=u[f],b=d/2+w,S=f+1,C=v-1;S>>1;u[A]x-y){var L=d?(p*P+m*F)/d:m;c(f,S,F,p,y,L,x),c(S,v,P,L,y,m,x)}else{var z=d?(y*P+x*F)/d:x;c(f,S,F,p,y,m,z),c(S,v,P,p,z,m,x)}}}function ZE(e,r,t,i,n){(e.depth&1?Va:wn)(e,r,t,i,n)}var KE=function e(r){function t(i,n,a,o,s){if((l=i._squarify)&&l.ratio===r)for(var l,u,c,f,v=-1,d,p=l.length,y=i.value;++v1?i:1)},t}(Tv),qE={field:"value",tile:"treemapSquarify",size:[1,1],round:!1,ignoreParentValue:!0,padding:0,paddingInner:0,paddingOuter:0,paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0,as:["x","y"],sort:function(e,r){return r.value-e.value},ratio:.5*(1+Math.sqrt(5))};function $E(e,r){return e==="treemapSquarify"?K[e].ratio(r):K[e]}function Pv(e,r){r=(0,h.assign)({},qE,r);var t=r.as;if(!(0,h.isArray)(t)||t.length!==2)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');var i;try{i=Bs(r)}catch(u){console.warn(u)}var n=$E(r.tile,r.ratio),a=function(u){return Iv().tile(n).size(r.size).round(r.round).padding(r.padding).paddingInner(r.paddingInner).paddingOuter(r.paddingOuter).paddingTop(r.paddingTop).paddingRight(r.paddingRight).paddingBottom(r.paddingBottom).paddingLeft(r.paddingLeft)(Fi(u).sum(function(c){return r.ignoreParentValue&&c.children?0:c[i]}).sort(r.sort))},o=a(e),s=t[0],l=t[1];return o.each(function(u){u[s]=[u.x0,u.x1,u.x1,u.x0],u[l]=[u.y1,u.y1,u.y0,u.y0],["x0","x1","y0","y1"].forEach(function(c){t.indexOf(c)===-1&&delete u[c]})}),Rs(o)}function kv(e){var r=e.data,t=e.colorField,i=e.rawFields,n=e.hierarchyConfig,a=n===void 0?{}:n,o=a.activeDepth,s={partition:EE,treemap:Pv},l=e.seriesField,u=e.type||"partition",c=s[u](r,(0,g.__assign)((0,g.__assign)({field:l||"value"},(0,h.omit)(a,["activeDepth"])),{type:"hierarchy."+u,as:["x","y"]})),f=[];return c.forEach(function(v){var d,p,y,m,x,_;if(v.depth===0||o>0&&v.depth>o)return null;for(var w=v.data.name,b=(0,g.__assign)({},v);b.depth>1;)w=((p=b.parent.data)===null||p===void 0?void 0:p.name)+" / "+w,b=b.parent;var S=(0,g.__assign)((0,g.__assign)((0,g.__assign)({},$t(v.data,(0,g.__spreadArrays)(i||[],[a.field]))),(d={},d[_n]=w,d[Ys]=b.data.name,d)),v);l&&(S[l]=v.data[l]||((m=(y=v.parent)===null||y===void 0?void 0:y.data)===null||m===void 0?void 0:m[l])),t&&(S[t]=v.data[t]||((_=(x=v.parent)===null||x===void 0?void 0:x.data)===null||_===void 0?void 0:_[t])),S.ext=a,S[mn]={hierarchyConfig:a,colorField:t,rawFields:i},f.push(S)}),f}function QE(e){var r=e.chart,t=e.options,i=t.color,n=t.colorField,a=n===void 0?Ys:n,o=t.sunburstStyle,s=t.rawFields,l=s===void 0?[]:s,u=kv(t);r.data(u);var c;return o&&(c=function(f){return I({},{fillOpacity:Math.pow(.85,f.depth)},(0,h.isFunction)(o)?o(f):o)}),Sa(I({},e,{options:{xField:"x",yField:"y",seriesField:a,rawFields:(0,h.uniq)((0,g.__spreadArrays)(AE,l)),polygon:{color:i,style:c}}})),e}function JE(e){var r=e.chart;return r.axis(!1),e}function t1(e){var r=e.chart,t=e.options,i=t.label,n=Me(r,"polygon");if(!i)n.label(!1);else{var a=i.fields,o=a===void 0?["name"]:a,s=i.callback,l=(0,g.__rest)(i,["fields","callback"]);n.label({fields:o,callback:s,cfg:be(l)})}return e}function e1(e){var r=e.chart,t=e.options,i=t.innerRadius,n=t.radius,a=t.reflect,o=r.coordinate({type:"polar",cfg:{innerRadius:i,radius:n}});return a&&o.reflect(a),e}function r1(e){var r,t=e.options,i=t.hierarchyConfig,n=t.meta;return Et(he({},(r={},r[Av]=(0,h.get)(n,(0,h.get)(i,["field"],"value")),r)))(e)}function i1(e){var r=e.chart,t=e.options,i=t.tooltip;if(i===!1)r.tooltip(!1);else{var n=i;(0,h.get)(i,"fields")||(n=I({},{customItems:function(a){return a.map(function(o){var s=(0,h.get)(r.getOptions(),"scales"),l=(0,h.get)(s,[_n,"formatter"],function(c){return c}),u=(0,h.get)(s,[Av,"formatter"],function(c){return c});return(0,g.__assign)((0,g.__assign)({},o),{name:l(o.data[_n]),value:u(o.data.value)})})}},n)),r.tooltip(n)}return e}function n1(e){var r=e.drilldown,t=e.interactions,i=t===void 0?[]:t;return(r==null?void 0:r.enabled)?I({},e,{interactions:(0,g.__spreadArrays)(i,[{type:"drill-down",cfg:{drillDownConfig:r,transformData:kv}}])}):e}function a1(e){var r=e.chart,t=e.options,i=t.drilldown;return oe({chart:r,options:n1(t)}),(i==null?void 0:i.enabled)&&(r.appendPadding=pa(r.appendPadding,(0,h.get)(i,["breadCrumb","position"]))),e}function o1(e){return Et(Xt,Ve("sunburstStyle"),QE,JE,r1,Ur,e1,i1,t1,a1,Qt,le())(e)}var YO=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="sunburst",t}return r.getDefaultOptions=function(){return ME},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.getSchemaAdaptor=function(){return o1},r.SUNBURST_ANCESTOR_FIELD=Ys,r.SUNBURST_PATH_FIELD=_n,r.NODE_ANCESTORS_FIELD=ks,r}(kt);function Dv(e,r){if(!!(0,h.isArray)(e))return e.find(function(t){return t.type===r})}function Bv(e,r){var t=Dv(e,r);return t&&t.enable!==!1}function js(e){var r=e.interactions,t=e.drilldown;return(0,h.get)(t,"enabled")||Bv(r,"treemap-drill-down")}function s1(e){var r=e.interactions["drill-down"];if(!!r){var t=r.context.actions.find(function(i){return i.name==="drill-down-action"});t.reset()}}function Zs(e){var r=e.data,t=e.colorField,i=e.enableDrillDown,n=e.hierarchyConfig,a=Pv(r,(0,g.__assign)((0,g.__assign)({},n),{type:"hierarchy.treemap",field:"value",as:["x","y"]})),o=[];return a.forEach(function(s){if(s.depth===0||i&&s.depth!==1||!i&&s.children)return null;var l=s.ancestors().map(function(v){return{data:v.data,height:v.height,value:v.value}}),u=i&&(0,h.isArray)(r.path)?l.concat(r.path.slice(1)):l,c=Object.assign({},s.data,(0,g.__assign)({x:s.x,y:s.y,depth:s.depth,value:s.value,path:u},s));if(!s.data[t]&&s.parent){var f=s.ancestors().find(function(v){return v.data[t]});c[t]=f==null?void 0:f.data[t]}else c[t]=s.data[t];c[mn]={hierarchyConfig:n,colorField:t,enableDrillDown:i},o.push(c)}),o}function l1(e){var r=e.options,t=r.colorField;return I({options:{rawFields:["value"],tooltip:{fields:["name","value",t,"path"],formatter:function(i){return{name:i.name,value:i.value}}}}},e)}function u1(e){var r=e.chart,t=e.options,i=t.color,n=t.colorField,a=t.rectStyle,o=t.hierarchyConfig,s=t.rawFields,l=Zs({data:t.data,colorField:t.colorField,enableDrillDown:js(t),hierarchyConfig:o});return r.data(l),Sa(I({},e,{options:{xField:"x",yField:"y",seriesField:n,rawFields:s,polygon:{color:i,style:a}}})),r.coordinate().reflect("y"),e}function c1(e){var r=e.chart;return r.axis(!1),e}function h1(e){var r=e.drilldown,t=e.interactions,i=t===void 0?[]:t,n=js(e);return n?I({},e,{interactions:(0,g.__spreadArrays)(i,[{type:"drill-down",cfg:{drillDownConfig:r,transformData:Zs}}])}):e}function f1(e){var r=e.chart,t=e.options,i=t.interactions,n=t.drilldown;oe({chart:r,options:h1(t)});var a=Dv(i,"view-zoom");a&&(a.enable!==!1?r.getCanvas().on("mousewheel",function(s){s.preventDefault()}):r.getCanvas().off("mousewheel"));var o=js(t);return o&&(r.appendPadding=pa(r.appendPadding,(0,h.get)(n,["breadCrumb","position"]))),e}function v1(e){return Et(l1,Xt,Ve("rectStyle"),u1,c1,Ur,me,f1,Qt,le())(e)}var d1={colorField:"name",rectStyle:{lineWidth:1,stroke:"#fff"},hierarchyConfig:{tile:"treemapSquarify"},label:{fields:["name"],layout:{type:"limit-in-shape"}},tooltip:{showMarkers:!1,showTitle:!1},drilldown:{enabled:!1,breadCrumb:{position:"bottom-left",rootText:"\u521D\u59CB",dividerText:"/",textStyle:{fontSize:12,fill:"rgba(0, 0, 0, 0.65)",cursor:"pointer"},activeTextStyle:{fill:"#87B5FF"}}}},XO=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="treemap",t}return r.getDefaultOptions=function(){return d1},r.prototype.changeData=function(t){var i=this.options,n=i.colorField,a=i.interactions,o=i.hierarchyConfig;this.updateOption({data:t});var s=Zs({data:t,colorField:n,enableDrillDown:Bv(a,"treemap-drill-down"),hierarchyConfig:o});this.chart.changeData(s),s1(this.chart)},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.getSchemaAdaptor=function(){return v1},r}(kt),yr="id",Ks="path",g1={appendPadding:[10,0,20,0],blendMode:"multiply",tooltip:{showTitle:!1,showMarkers:!1,fields:["id","size"],formatter:function(e){return{name:e.id,value:e.size}}},legend:{position:"top-left"},label:{style:{textAlign:"center",fill:"#fff"}},interactions:[{type:"legend-filter",enable:!1}],state:{active:{style:{stroke:"#000"}},selected:{style:{stroke:"#000",lineWidth:2}},inactive:{style:{fillOpacity:.3,strokeOpacity:.3}}},defaultInteractions:["tooltip","venn-legend-active"]};function Ga(e){if(!!e){var r=e.geometries[0].elements;r.forEach(function(t){t.shape.toFront()})}}var p1=jn("element-active"),y1=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.syncElementsPos=function(){Ga(this.context.view)},r.prototype.active=function(){e.prototype.active.call(this),this.syncElementsPos()},r.prototype.toggle=function(){e.prototype.toggle.call(this),this.syncElementsPos()},r.prototype.reset=function(){e.prototype.reset.call(this),this.syncElementsPos()},r}(p1),m1=jn("element-highlight"),x1=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.syncElementsPos=function(){Ga(this.context.view)},r.prototype.highlight=function(){e.prototype.highlight.call(this),this.syncElementsPos()},r.prototype.toggle=function(){e.prototype.toggle.call(this),this.syncElementsPos()},r.prototype.clear=function(){e.prototype.clear.call(this),this.syncElementsPos()},r.prototype.reset=function(){e.prototype.reset.call(this),this.syncElementsPos()},r}(m1),_1=jn("element-selected"),w1=jn("element-single-selected"),b1=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.syncElementsPos=function(){Ga(this.context.view)},r.prototype.selected=function(){e.prototype.selected.call(this),this.syncElementsPos()},r.prototype.toggle=function(){e.prototype.toggle.call(this),this.syncElementsPos()},r.prototype.reset=function(){e.prototype.reset.call(this),this.syncElementsPos()},r}(_1),S1=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.syncElementsPos=function(){Ga(this.context.view)},r.prototype.selected=function(){e.prototype.selected.call(this),this.syncElementsPos()},r.prototype.toggle=function(){e.prototype.toggle.call(this),this.syncElementsPos()},r.prototype.reset=function(){e.prototype.reset.call(this),this.syncElementsPos()},r}(w1);yt("venn-element-active",y1),yt("venn-element-highlight",x1),yt("venn-element-selected",b1),yt("venn-element-single-selected",S1),It("venn-element-active",{start:[{trigger:"element:mouseenter",action:"venn-element-active:active"}],end:[{trigger:"element:mouseleave",action:"venn-element-active:reset"}]}),It("venn-element-highlight",{start:[{trigger:"element:mouseenter",action:"venn-element-highlight:highlight"}],end:[{trigger:"element:mouseleave",action:"venn-element-highlight:reset"}]}),It("venn-element-selected",{start:[{trigger:"element:click",action:"venn-element-selected:toggle"}],rollback:[{trigger:"dblclick",action:["venn-element-selected:reset"]}]}),It("venn-element-single-selected",{start:[{trigger:"element:click",action:"venn-element-single-selected:toggle"}],rollback:[{trigger:"dblclick",action:["venn-element-single-selected:reset"]}]}),It("venn-legend-active",{start:[{trigger:"legend-item:mouseenter",action:["list-active:active","venn-element-active:active"]}],end:[{trigger:"legend-item:mouseleave",action:["list-active:reset","venn-element-active:reset"]}]}),It("venn-legend-highlight",{start:[{trigger:"legend-item:mouseenter",action:["legend-item-highlight:highlight","venn-element-highlight:highlight"]}],end:[{trigger:"legend-item:mouseleave",action:["legend-item-highlight:reset","venn-element-highlight:reset"]}]});var C1=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getLabelPoint=function(t,i,n){var a=t.data,o=a.x,s=a.y,l=t.customLabelInfo,u=l.offsetX,c=l.offsetY;return{content:t.content[n],x:o+u,y:s+c}},r}(ea);tn("venn",C1);var A1=Array.isArray,M1=A1,bn=` -\v\f\r \xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029`,F1=new RegExp("([a-z])["+bn+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+bn+"]*,?["+bn+"]*)+)","ig"),E1=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+bn+"]*,?["+bn+"]*","ig");function T1(e){if(!e)return null;if(M1(e))return e;var r={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},t=[];return String(e).replace(F1,function(i,n,a){var o=[],s=n.toLowerCase();if(a.replace(E1,function(l,u){u&&o.push(+u)}),s==="m"&&o.length>2&&(t.push([n].concat(o.splice(0,2))),s="l",n=n==="m"?"l":"L"),s==="o"&&o.length===1&&t.push([n,o[0]]),s==="r")t.push([n].concat(o));else for(;o.length>=r[s]&&(t.push([n].concat(o.splice(0,r[s]))),!!r[s]););return""}),t}var L1=/[a-z]/;function Rv(e,r){return[r[0]+(r[0]-e[0]),r[1]+(r[1]-e[1])]}function UO(e){var r=parsePathString(e);if(!r||!r.length)return[["M",0,0]];for(var t=!1,i=0;i=0){t=!0;break}}if(!t)return r;var a=[],o=0,s=0,l=0,u=0,c=0,f,v,d=r[0];(d[0]==="M"||d[0]==="m")&&(o=+d[1],s=+d[2],l=o,u=s,c++,a[0]=["M",o,s]);for(var i=c,p=r.length;i1&&(a=1),a<-1&&(a=-1),n*Math.acos(a)},I1=function(e,r,t,i,n,a,o,s,l,u,c,f){var v=Math.pow(n,2),d=Math.pow(a,2),p=Math.pow(c,2),y=Math.pow(f,2),m=v*d-v*y-d*p;m<0&&(m=0),m/=v*y+d*p,m=Math.sqrt(m)*(o===s?-1:1);var x=m*n/a*f,_=m*-a/n*c,w=u*x-l*_+(e+t)/2,b=l*x+u*_+(r+i)/2,S=(c-x)/n,C=(f-_)/a,A=(-c-x)/n,F=(-f-_)/a,P=Nv(1,0,S,C),L=Nv(S,C,A,F);return s===0&&L>0&&(L-=Sn),s===1&&L<0&&(L+=Sn),[w,b,P,L]},P1=function(e){var r=e.px,t=e.py,i=e.cx,n=e.cy,a=e.rx,o=e.ry,s=e.xAxisRotation,l=s===void 0?0:s,u=e.largeArcFlag,c=u===void 0?0:u,f=e.sweepFlag,v=f===void 0?0:f,d=[];if(a===0||o===0)return[{x1:0,y1:0,x2:0,y2:0,x:i,y:n}];var p=Math.sin(l*Sn/360),y=Math.cos(l*Sn/360),m=y*(r-i)/2+p*(t-n)/2,x=-p*(r-i)/2+y*(t-n)/2;if(m===0&&x===0)return[{x1:0,y1:0,x2:0,y2:0,x:i,y:n}];a=Math.abs(a),o=Math.abs(o);var _=Math.pow(m,2)/Math.pow(a,2)+Math.pow(x,2)/Math.pow(o,2);_>1&&(a*=Math.sqrt(_),o*=Math.sqrt(_));var w=I1(r,t,i,n,a,o,c,v,p,y,m,x),b=w[0],S=w[1],C=w[2],A=w[3],F=Math.abs(A)/(Sn/4);Math.abs(1-F)<1e-7&&(F=1);var P=Math.max(Math.ceil(F),1);A/=P;for(var L=0;L7){e[t].shift();for(var i=e[t],n=t;i.length;)r[t]="A",e.splice(n+=1,0,["C"].concat(i.splice(0,6)));e.splice(t,1)}}var zv=function(e,r,t,i,n){var a=-3*r+9*t-9*i+3*n,o=e*a+6*r-12*t+6*i;return e*o-3*r+3*t},Vv=function(e,r,t,i,n,a,o,s,l){l===null&&(l=1),l=l>1?1:l<0?0:l;for(var u=l/2,c=12,f=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],v=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],d=0,p=0;p0&&d<1&&l.push(d);continue}var y=f*f-4*v*c,m=Math.sqrt(y);if(!(y<0)){var x=(-f+m)/(2*c);x>0&&x<1&&l.push(x);var _=(-f-m)/(2*c);_>0&&_<1&&l.push(_)}}for(var w=l.length,b=w,S;w--;)d=l[w],S=1-d,u[0][w]=S*S*S*e+3*S*S*d*t+3*S*d*d*n+d*d*d*o,u[1][w]=S*S*S*r+3*S*S*d*i+3*S*d*d*a+d*d*d*s;return u[0][b]=e,u[1][b]=r,u[0][b+1]=o,u[1][b+1]=s,u[0].length=u[1].length=b+2,{min:{x:Math.min.apply(0,u[0]),y:Math.min.apply(0,u[1])},max:{x:Math.max.apply(0,u[0]),y:Math.max.apply(0,u[1])}}},B1=function(e,r,t,i,n,a,o,s){if(!(Math.max(e,t)Math.max(n,o)||Math.max(r,i)Math.max(a,s))){var l=(e*i-r*t)*(n-o)-(e-t)*(n*s-a*o),u=(e*i-r*t)*(a-s)-(r-i)*(n*s-a*o),c=(e-t)*(a-s)-(r-i)*(n-o);if(!!c){var f=l/c,v=u/c,d=+f.toFixed(2),p=+v.toFixed(2);if(!(d<+Math.min(e,t).toFixed(2)||d>+Math.max(e,t).toFixed(2)||d<+Math.min(n,o).toFixed(2)||d>+Math.max(n,o).toFixed(2)||p<+Math.min(r,i).toFixed(2)||p>+Math.max(r,i).toFixed(2)||p<+Math.min(a,s).toFixed(2)||p>+Math.max(a,s).toFixed(2)))return{x:f,y:v}}}},Pr=function(e,r,t){return r>=e.x&&r<=e.x+e.width&&t>=e.y&&t<=e.y+e.height},$s=function(e,r,t,i){return e===null&&(e=r=t=i=0),r===null&&(r=e.y,t=e.width,i=e.height,e=e.x),{x:e,y:r,width:t,w:t,height:i,h:i,x2:e+t,y2:r+i,cx:e+t/2,cy:r+i/2,r1:Math.min(t,i)/2,r2:Math.max(t,i)/2,r0:Math.sqrt(t*t+i*i)/2,path:rectPath(e,r,t,i),vb:[e,r,t,i].join(" ")}},R1=function(e,r){return e=$s(e),r=$s(r),Pr(r,e.x,e.y)||Pr(r,e.x2,e.y)||Pr(r,e.x,e.y2)||Pr(r,e.x2,e.y2)||Pr(e,r.x,r.y)||Pr(e,r.x2,r.y)||Pr(e,r.x,r.y2)||Pr(e,r.x2,r.y2)||(e.xr.x||r.xe.x)&&(e.yr.y||r.ye.y)},Gv=function(e,r,t,i,n,a,o,s){isArray(e)||(e=[e,r,t,i,n,a,o,s]);var l=D1.apply(null,e);return $s(l.min.x,l.min.y,l.max.x-l.min.x,l.max.y-l.min.y)},Wv=function(e,r,t,i,n,a,o,s,l){var u=1-l,c=Math.pow(u,3),f=Math.pow(u,2),v=l*l,d=v*l,p=c*e+f*3*l*t+u*3*l*l*n+d*o,y=c*r+f*3*l*i+u*3*l*l*a+d*s,m=e+2*l*(t-e)+v*(n-2*t+e),x=r+2*l*(i-r)+v*(a-2*i+r),_=t+2*l*(n-t)+v*(o-2*n+t),w=i+2*l*(a-i)+v*(s-2*a+i),b=u*e+l*t,S=u*r+l*i,C=u*n+l*o,A=u*a+l*s,F=90-Math.atan2(m-_,x-w)*180/Math.PI;return{x:p,y,m:{x:m,y:x},n:{x:_,y:w},start:{x:b,y:S},end:{x:C,y:A},alpha:F}},N1=function(e,r,t){var i=Gv(e),n=Gv(r);if(!R1(i,n))return t?0:[];for(var a=Vv.apply(0,e),o=Vv.apply(0,r),s=~~(a/8),l=~~(o/8),u=[],c=[],f={},v=t?0:[],d=0;d=0&&A<=1&&F>=0&&F<=1&&(t?v++:v.push({x:C.x,y:C.y,t1:A,t2:F}))}}return v},z1=function(e,r,t){e=path2Curve(e),r=path2Curve(r);for(var i,n,a,o,s,l,u,c,f,v,d=t?0:[],p=0,y=e.length;pr?r:e},lighten:function(e,r){return e>r?e:r},dodge:function(e,r){return e===255?255:(e=255*(r/255)/(1-e/255),e>255?255:e)},burn:function(e,r){return r===255?255:e===0?0:255*(1-Math.min(1,(1-r/255)/(e/255)))}},W1=function(e){if(!Hv[e])throw new Error("unknown blend mode "+e);return Hv[e]};function H1(e,r,t){t===void 0&&(t="normal");var i=G1(W1(t))(Wa(e),Wa(r)),n=Wa(e),a=n[0],o=n[1],s=n[2],l=n[3],u=Wa(r),c=u[0],f=u[1],v=u[2],d=u[3],p=Number((l+d*(1-l)).toFixed(2)),y=Math.round((l*(1-d)*(a/255)+l*d*(i[0]/255)+(1-l)*d*(c/255))/p*255),m=Math.round((l*(1-d)*(o/255)+l*d*(i[1]/255)+(1-l)*d*(f/255))/p*255),x=Math.round((l*(1-d)*(s/255)+l*d*(i[2]/255)+(1-l)*d*(v/255))/p*255);return"rgba("+y+", "+m+", "+x+", "+p+")"}function Wa(e){var r=e.replace("/s+/g",""),t;return typeof r=="string"&&!r.startsWith("rgba")&&!r.startsWith("#")?t=xr.rgb2arr(xr.toRGB(r)).concat([1]):(r.startsWith("rgba")&&(t=r.replace("rgba(","").replace(")","").split(",")),r.startsWith("#")&&(t=xr.rgb2arr(r).concat([1])),t.map(function(i,n){return n===3?Number(i):i|0}))}var ir=M(87026),Yv=1e-10;function Qs(e,r){var t=X1(e),i=t.filter(function(A){return Y1(A,e)}),n=0,a=0,o,s=[];if(i.length>1){var l=jv(i);for(o=0;o-1){var y=e[f.parentIndex[p]],m=Math.atan2(f.x-y.x,f.y-y.y),x=Math.atan2(c.x-y.x,c.y-y.y),_=x-m;_<0&&(_+=2*Math.PI);var w=x-_/2,b=qe(v,{x:y.x+y.radius*Math.sin(w),y:y.y+y.radius*Math.cos(w)});b>y.radius*2&&(b=y.radius*2),(d===null||d.width>b)&&(d={circle:y,width:b,p1:f,p2:c})}d!==null&&(s.push(d),n+=Js(d.circle.radius,d.width),c=f)}}else{var S=e[0];for(o=1;oMath.abs(S.radius-e[o].radius)){C=!0;break}C?n=a=0:(n=S.radius*S.radius*Math.PI,s.push({circle:S,p1:{x:S.x,y:S.y+S.radius},p2:{x:S.x-Yv,y:S.y+S.radius},width:S.radius*2}))}return a/=2,r&&(r.area=n+a,r.arcArea=n,r.polygonArea=a,r.arcs=s,r.innerPoints=i,r.intersectionPoints=t),n+a}function Y1(e,r){for(var t=0;tr[t].radius+Yv)return!1;return!0}function X1(e){for(var r=[],t=0;t=e+r)return 0;if(t<=Math.abs(e-r))return Math.PI*Math.min(e,r)*Math.min(e,r);var i=e-(t*t-r*r+e*e)/(2*t),n=r-(t*t-e*e+r*r)/(2*t);return Js(e,i)+Js(r,n)}function Uv(e,r){var t=qe(e,r),i=e.radius,n=r.radius;if(t>=i+n||t<=Math.abs(i-n))return[];var a=(i*i-n*n+t*t)/(2*t),o=Math.sqrt(i*i-a*a),s=e.x+a*(r.x-e.x)/t,l=e.y+a*(r.y-e.y)/t,u=-(r.y-e.y)*(o/t),c=-(r.x-e.x)*(o/t);return[{x:s+u,y:l-c},{x:s-u,y:l+c}]}function jv(e){for(var r={x:0,y:0},t=0;t=o&&(a=t[i],o=s)}var l=(0,ir.nelderMead)(function(v){return-1*tl({x:v[0],y:v[1]},e,r)},[a.x,a.y],{maxIterations:500,minErrorDelta:1e-10}).x,u={x:l[0],y:l[1]},c=!0;for(i=0;ie[i].radius){c=!1;break}for(i=0;i0&&console.log("WARNING: area "+a+" not represented on screen")}return t}function Z1(e,r,t){var i=[],n=e-t,a=r;return i.push("M",n,a),i.push("A",t,t,0,1,0,n+2*t,a),i.push("A",t,t,0,1,0,n,a),i.join(" ")}function $O(e){var r=e.split(" ");return{x:parseFloat(r[1]),y:parseFloat(r[2]),radius:-parseFloat(r[4])}}function K1(e){var r={};Qs(e,r);var t=r.arcs;if(t.length===0)return"M 0 0";if(t.length==1){var i=t[0].circle;return Z1(i.x,i.y,i.radius)}else{for(var n=[` -M`,t[0].p2.x,t[0].p2.y],a=0;as;n.push(` -A`,s,s,0,l?1:0,1,o.p1.x,o.p1.y)}return n.join(" ")}}function q1(e,r){r=r||{},r.maxIterations=r.maxIterations||500;var t=r.initialLayout||tT,i=r.lossFunction||rl;e=$1(e);var n=t(e,r),a=[],o=[],s;for(s in n)n.hasOwnProperty(s)&&(a.push(n[s].x),a.push(n[s].y),o.push(s));for(var l=(0,ir.nelderMead)(function(f){for(var v={},d=0;du?1:-1}),i=0;i=Math.min(r[o].size,r[s].size)?f=1:a.size<=1e-10&&(f=-1),n[o][s]=n[s][o]=f}),{distances:i,constraints:n}}function J1(e,r,t,i){var n=0,a;for(a=0;a0&&p<=f||v<0&&p>=f||(n+=2*y*y,r[2*a]+=4*y*(o-u),r[2*a+1]+=4*y*(s-c),r[2*l]+=4*y*(u-o),r[2*l+1]+=4*y*(c-s))}return n}function tT(e,r){var t=rT(e,r),i=r.lossFunction||rl;if(e.length>=8){var n=eT(e,r),a=i(n,e),o=i(t,e);a+1e-8=Math.min(i[c].size,i[f].size)&&(u=0),n[c].push({set:f,size:l.size,weight:u}),n[f].push({set:c,size:l.size,weight:u})}var v=[];for(a in n)if(n.hasOwnProperty(a)){for(var d=0,o=0;o0){var n=e[0].x,a=e[0].y;for(i=0;i1){var s=Math.atan2(e[1].x,e[1].y)-r,l=void 0,u=void 0,c=Math.cos(s),f=Math.sin(s);for(i=0;i2){for(var v=Math.atan2(e[2].x,e[2].y)-r;v<0;)v+=2*Math.PI;for(;v>2*Math.PI;)v-=2*Math.PI;if(v>Math.PI){var d=e[1].y/(1e-10+e[1].x);for(i=0;i1)throw new Error("quantiles must be between 0 and 1");return r===1?e[e.length-1]:r===0?e[0]:t%1!=0?e[Math.ceil(t)-1]:e.length%2==0?(e[t-1]+e[t])/2:e[t]}function Cn(e,r,t){var i=e[r];e[r]=e[t],e[t]=i}function Ha(e,r,t,i){for(t=t||0,i=i||e.length-1;i>t;){if(i-t>600){var n=i-t+1,a=r-t+1,o=Math.log(n),s=.5*Math.exp(2*o/3),l=.5*Math.sqrt(o*s*(n-s)/n);a-n/2<0&&(l*=-1);var u=Math.max(t,Math.floor(r-a*s/n+l)),c=Math.min(i,Math.floor(r+(n-a)*s/n+l));Ha(e,r,u,c)}var f=e[r],v=t,d=i;for(Cn(e,t,r),e[i]>f&&Cn(e,t,i);vf;)d--}e[t]===f?Cn(e,t,d):(d++,Cn(e,d,i)),d<=r&&(t=d+1),r<=d&&(i=d-1)}}function An(e,r){var t=e.slice();if(Array.isArray(r)){MT(t,r);for(var i=[],n=0;n0?c:f},p=I({},e,{options:{xField:n,yField:Ue,seriesField:n,rawFields:[a,Ua,ol,Ue],widthRatio:l,interval:{style:u,shape:"waterfall",color:d}}}),y=Fe(p).ext,m=y.geometry;return m.customInfo({leaderLine:s}),e}function HT(e){var r,t,i=e.options,n=i.xAxis,a=i.yAxis,o=i.xField,s=i.yField,l=i.meta,u=I({},{alias:s},(0,h.get)(l,s));return Et(he((r={},r[o]=n,r[s]=a,r[Ue]=a,r),I({},l,(t={},t[Ue]=u,t[Ua]=u,t[al]=u,t))))(e)}function YT(e){var r=e.chart,t=e.options,i=t.xAxis,n=t.yAxis,a=t.xField,o=t.yField;return i===!1?r.axis(a,!1):r.axis(a,i),n===!1?(r.axis(o,!1),r.axis(Ue,!1)):(r.axis(o,n),r.axis(Ue,n)),e}function XT(e){var r=e.chart,t=e.options,i=t.legend,n=t.total,a=t.risingFill,o=t.fallingFill,s=t.locale,l=_a(s);if(i===!1)r.legend(!1);else{var u=[{name:l.get(["general","increase"]),value:"increase",marker:{symbol:"square",style:{r:5,fill:a}}},{name:l.get(["general","decrease"]),value:"decrease",marker:{symbol:"square",style:{r:5,fill:o}}}];n&&u.push({name:n.label||"",value:"total",marker:{symbol:"square",style:I({},{r:5},(0,h.get)(n,"style"))}}),r.legend(I({},{custom:!0,position:"top",items:u},i)),r.removeInteraction("legend-filter")}return e}function UT(e){var r=e.chart,t=e.options,i=t.label,n=t.labelMode,a=t.xField,o=Me(r,"interval");if(!i)o.label(!1);else{var s=i.callback,l=(0,g.__rest)(i,["callback"]);o.label({fields:n==="absolute"?[al,a]:[Ua,a],callback:s,cfg:be(l)})}return e}function jT(e){var r=e.chart,t=e.options,i=t.tooltip,n=t.xField,a=t.yField;if(i!==!1){r.tooltip((0,g.__assign)({showCrosshairs:!1,showMarkers:!1,shared:!0,fields:[a]},i));var o=r.geometries[0];(i==null?void 0:i.formatter)?o.tooltip(n+"*"+a,i.formatter):o.tooltip(a)}else r.tooltip(!1);return e}function ZT(e){return Et(GT,Xt,WT,HT,YT,XT,jT,UT,Lr,oe,Qt,le())(e)}var eI=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="waterfall",t}return r.getDefaultOptions=function(){return RT},r.prototype.changeData=function(t){var i=this.options,n=i.xField,a=i.yField,o=i.total;this.updateOption({data:t}),this.chart.changeData(od(t,n,a,o))},r.prototype.getSchemaAdaptor=function(){return ZT},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r}(kt),sl="color",KT=I({},kt.getDefaultOptions(),{timeInterval:2e3,legend:!1,tooltip:{showTitle:!1,showMarkers:!1,showCrosshairs:!1,fields:["text","value",sl],formatter:function(e){return{name:e.text,value:e.value}}},wordStyle:{fontFamily:"Verdana",fontWeight:"normal",padding:1,fontSize:[12,60],rotation:[0,90],rotationSteps:2,rotateRatio:.5}}),qT={font:function(){return"serif"},padding:1,size:[500,500],spiral:"archimedean",timeInterval:3e3};function $T(e,r){return r=(0,h.assign)({},qT,r),QT(e,r)}function QT(e,r){var t=hL();["font","fontSize","fontWeight","padding","rotate","size","spiral","timeInterval","random"].forEach(function(l){(0,h.isNil)(r[l])||t[l](r[l])}),t.words(e),r.imageMask&&t.createMask(r.imageMask);var i=t.start(),n=i._tags;n.forEach(function(l){l.x+=r.size[0]/2,l.y+=r.size[1]/2});var a=r.size,o=a[0],s=a[1];return n.push({text:"",value:0,x:0,y:0,opacity:0}),n.push({text:"",value:0,x:o,y:s,opacity:0}),n}var ll=Math.PI/180,Mn=1<<11>>5,ja=1<<11;function JT(e){return e.text}function tL(){return"serif"}function sd(){return"normal"}function eL(e){return e.value}function rL(){return~~(Math.random()*2)*90}function iL(){return 1}function nL(e,r,t,i){if(!r.sprite){var n=e.context,a=e.ratio;n.clearRect(0,0,(Mn<<5)/a,ja/a);var o=0,s=0,l=0,u=t.length;for(--i;++i>5<<5,f=~~Math.max(Math.abs(y+m),Math.abs(y-m))}else c=c+31>>5<<5;if(f>l&&(l=f),o+c>=Mn<<5&&(o=0,s+=l,l=0),s+f>=ja)break;n.translate((o+(c>>1))/a,(s+(f>>1))/a),r.rotate&&n.rotate(r.rotate*ll),n.fillText(r.text,0,0),r.padding&&(n.lineWidth=2*r.padding,n.strokeText(r.text,0,0)),n.restore(),r.width=c,r.height=f,r.xoff=o,r.yoff=s,r.x1=c>>1,r.y1=f>>1,r.x0=-r.x1,r.y0=-r.y1,r.hasText=!0,o+=c}for(var _=n.getImageData(0,0,(Mn<<5)/a,ja/a).data,w=[];--i>=0;)if(r=t[i],!!r.hasText){for(var c=r.width,b=c>>5,f=r.y1-r.y0,S=0;S>5),L=_[(s+F)*(Mn<<5)+(o+S)<<2]?1<<31-S%32:0;w[P]|=L,C|=L}C?A=F:(r.y0++,f--,F--,s++)}r.y1=r.y0+A,r.sprite=w.slice(0,(r.y1-r.y0)*b)}}}function aL(e,r,t){t>>=5;for(var i=e.sprite,n=e.width>>5,a=e.x-(n<<4),o=a&127,s=32-o,l=e.y1-e.y0,u=(e.y+e.y0)*t+(a>>5),c,f=0;f>>o:0))&r[u+v])return!0;u+=t}return!1}function oL(e,r){var t=e[0],i=e[1];r.x+r.x0i.x&&(i.x=r.x+r.x1),r.y+r.y1>i.y&&(i.y=r.y+r.y1)}function sL(e,r){return e.x+e.x1>r[0].x&&e.x+e.x0r[0].y&&e.y+e.y0>5)*e[1]),b=l.length,S=[],C=l.map(function(L,z,Q){return L.text=c.call(this,L,z,Q),L.font=r.call(this,L,z,Q),L.style=f.call(this,L,z,Q),L.weight=i.call(this,L,z,Q),L.rotate=n.call(this,L,z,Q),L.size=~~t.call(this,L,z,Q),L.padding=a.call(this,L,z,Q),L}).sort(function(L,z){return z.size-L.size}),A=-1,F=d.board?[{x:0,y:0},{x:m,y:x}]:null;P();function P(){for(var L=Date.now();Date.now()-L>1,z.y=x*(s()+.5)>>1,nL(_,z,C,A),z.hasText&&y(w,z,F)&&(S.push(z),F?d.hasImage||oL(F,z):F=[{x:z.x+z.x0,y:z.y+z.y0},{x:z.x+z.x1,y:z.y+z.y1}],z.x-=e[0]>>1,z.y-=e[1]>>1)}d._tags=S,d._bounds=F}return d};function p(m){m.width=m.height=1;var x=Math.sqrt(m.getContext("2d",{willReadFrequently:!0}).getImageData(0,0,1,1).data.length>>2);m.width=(Mn<<5)/x,m.height=ja/x;var _=m.getContext("2d",{willReadFrequently:!0});return _.fillStyle=_.strokeStyle="red",_.textAlign="center",{context:_,ratio:x}}function y(m,x,_){for(var w=x.x,b=x.y,S=Math.sqrt(e[0]*e[0]+e[1]*e[1]),C=o(e),A=s()<.5?1:-1,F,P=-A,L,z;(F=C(P+=A))&&(L=~~F[0],z=~~F[1],!(Math.min(Math.abs(L),Math.abs(z))>=S));)if(x.x=w+L,x.y=b+z,!(x.x+x.x0<0||x.y+x.y0<0||x.x+x.x1>e[0]||x.y+x.y1>e[1])&&(!_||!aL(x,m,e[0]))&&(!_||sL(x,_))){for(var Q=x.sprite,xt=x.width>>5,_t=e[0]>>5,Rt=x.x-(xt<<4),H=Rt&127,at=32-H,pt=x.y1-x.y0,ut=void 0,gt=(x.y+x.y0)*_t+(Rt>>5),At=0;At>>H:0);gt+=_t}return delete x.sprite,!0}return!1}return d.createMask=function(m){var x=document.createElement("canvas"),_=e[0],w=e[1];if(!(!_||!w)){var b=_>>5,S=ud((_>>5)*w);x.width=_,x.height=w;var C=x.getContext("2d");C.drawImage(m,0,0,m.width,m.height,0,0,_,w);for(var A=C.getImageData(0,0,_,w).data,F=0;F>5),z=F*_+P<<2,Q=A[z]>=250&&A[z+1]>=250&&A[z+2]>=250,xt=Q?1<<31-P%32:0;S[L]|=xt}d.board=S,d.hasImage=!0}},d.timeInterval=function(m){u=m==null?Infinity:m},d.words=function(m){l=m},d.size=function(m){e=[+m[0],+m[1]]},d.font=function(m){r=nr(m)},d.fontWeight=function(m){i=nr(m)},d.rotate=function(m){n=nr(m)},d.spiral=function(m){o=cL[m]||m},d.fontSize=function(m){t=nr(m)},d.padding=function(m){a=nr(m)},d.random=function(m){s=nr(m)},d}function cd(e){var r=e.options,t=e.chart,i=t,n=i.width,a=i.height,o=i.padding,s=i.appendPadding,l=i.ele,u=r.data,c=r.imageMask,f=r.wordField,v=r.weightField,d=r.colorField,p=r.wordStyle,y=r.timeInterval,m=r.random,x=r.spiral,_=r.autoFit,w=_===void 0?!0:_,b=r.placementStrategy;if(!u||!u.length)return[];var S=p.fontFamily,C=p.fontWeight,A=p.padding,F=p.fontSize,P=pL(u,v),L=[xL(P),_L(P)],z=u.map(function(_t){return{text:_t[f],value:_t[v],color:_t[d],datum:_t}}),Q={imageMask:c,font:S,fontSize:gL(F,L),fontWeight:C,size:fL({width:n,height:a,padding:o,appendPadding:s,autoFit:w,container:l}),padding:A,timeInterval:y,random:m,spiral:x,rotate:yL(r)};if((0,h.isFunction)(b)){var xt=z.map(function(_t,Rt,H){return(0,g.__assign)((0,g.__assign)((0,g.__assign)({},_t),{hasText:!!_t.text,font:nr(Q.font)(_t,Rt,H),weight:nr(Q.fontWeight)(_t,Rt,H),rotate:nr(Q.rotate)(_t,Rt,H),size:nr(Q.fontSize)(_t,Rt,H),style:"normal"}),b.call(t,_t,Rt,H))});return xt.push({text:"",value:0,x:0,y:0,opacity:0}),xt.push({text:"",value:0,x:Q.size[0],y:Q.size[1],opacity:0}),xt}return $T(z,Q)}function fL(e){var r=e.width,t=e.height,i=e.container,n=e.autoFit,a=e.padding,o=e.appendPadding;if(n){var s=fs(i);r=s.width,t=s.height}r=r||400,t=t||400;var l=vL({padding:a,appendPadding:o}),u=l[0],c=l[1],f=l[2],v=l[3],d=[r-(v+c),t-(u+f)];return d}function vL(e){var r=Tr(e.padding),t=Tr(e.appendPadding),i=r[0]+t[0],n=r[1]+t[1],a=r[2]+t[2],o=r[3]+t[3];return[i,n,a,o]}function dL(e){return new Promise(function(r,t){if(e instanceof HTMLImageElement){r(e);return}if((0,h.isString)(e)){var i=new Image;i.crossOrigin="anonymous",i.src=e,i.onload=function(){r(i)},i.onerror=function(){fr(Ke.ERROR,!1,"image %s load failed !!!",e),t()};return}fr(Ke.WARN,e===void 0,"The type of imageMask option must be String or HTMLImageElement."),t()})}function gL(e,r){if((0,h.isFunction)(e))return e;if((0,h.isArray)(e)){var t=e[0],i=e[1];if(!r)return function(){return(i+t)/2};var n=r[0],a=r[1];return a===n?function(){return(i+t)/2}:function(s){var l=s.value;return(i-t)/(a-n)*(l-n)+t}}return function(){return e}}function pL(e,r){return e.map(function(t){return t[r]}).filter(function(t){return typeof t=="number"&&!isNaN(t)})}function yL(e){var r=mL(e),t=r.rotation,i=r.rotationSteps;if(!(0,h.isArray)(t))return t;var n=t[0],a=t[1],o=i===1?0:(a-n)/(i-1);return function(){return a===n?a:Math.floor(Math.random()*i)*o}}function mL(e){var r=e.wordStyle.rotationSteps;return r<1&&(fr(Ke.WARN,!1,"The rotationSteps option must be greater than or equal to 1."),r=1),{rotation:e.wordStyle.rotation,rotationSteps:r}}function xL(e){return Math.min.apply(Math,e)}function _L(e){return Math.max.apply(Math,e)}function wL(e){var r=e.chart,t=e.options,i=t.colorField,n=t.color,a=cd(e);r.data(a);var o=I({},e,{options:{xField:"x",yField:"y",seriesField:i&&sl,rawFields:(0,h.isFunction)(n)&&(0,g.__spreadArrays)((0,h.get)(t,"rawFields",[]),["datum"]),point:{color:n,shape:"word-cloud"}}}),s=Ge(o).ext;return s.geometry.label(!1),r.coordinate().reflect("y"),r.axis(!1),e}function bL(e){return Et(he({x:{nice:!1},y:{nice:!1}}))(e)}function SL(e){var r=e.chart,t=e.options,i=t.legend,n=t.colorField;return i===!1?r.legend(!1):n&&r.legend(sl,i),e}function CL(e){Et(wL,bL,me,SL,oe,Qt,Xt,Lr)(e)}Zt("point","word-cloud",{draw:function(e,r){var t=e.x,i=e.y,n=r.addShape("text",{attrs:(0,g.__assign)((0,g.__assign)({},AL(e)),{x:t,y:i})}),a=e.data.rotate;return typeof a=="number"&&ke.rotate(n,a*Math.PI/180),n}});function AL(e){return{fontSize:e.data.size,text:e.data.text,textAlign:"center",fontFamily:e.data.font,fontWeight:e.data.weight,fill:e.color||e.defaultStyle.stroke,textBaseline:"alphabetic"}}var rI=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="word-cloud",t}return r.getDefaultOptions=function(){return KT},r.prototype.changeData=function(t){this.updateOption({data:t}),this.options.imageMask?this.render():this.chart.changeData(cd({chart:this.chart,options:this.options}))},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.render=function(){var t=this;return new Promise(function(i){var n=t.options.imageMask;if(!n){e.prototype.render.call(t),i();return}var a=function(o){t.options=(0,g.__assign)((0,g.__assign)({},t.options),{imageMask:o||null}),e.prototype.render.call(t),i()};dL(n).then(a).catch(a)})},r.prototype.getSchemaAdaptor=function(){return CL},r.prototype.triggerResize=function(){var t=this;this.chart.destroyed||(this.execAdaptor(),window.setTimeout(function(){e.prototype.triggerResize.call(t)}))},r}(kt),iI=function(e){(0,g.__extends)(r,e);function r(t,i,n,a){var o=e.call(this,t,I({},a,i))||this;return o.type="g2-plot",o.defaultOptions=a,o.adaptor=n,o}return r.prototype.getDefaultOptions=function(){return this.defaultOptions},r.prototype.getSchemaAdaptor=function(){return this.adaptor},r}(kt),nI="2.4.25";Ah("en-US",Cb),Ah("zh-CN",Ab);var aI={scale:he,legend:Ur,tooltip:me,annotation:le,interaction:oe,theme:Xt,animation:Qt}},80638:function(){},15746:function(Pt,st,M){"use strict";var B=M(21584);st.Z=B.Z},89032:function(Pt,st,M){"use strict";var B=M(38663),it=M.n(B),wt=M(6999)},99134:function(Pt,st,M){"use strict";var B=M(67294),it=(0,B.createContext)({});st.Z=it},21584:function(Pt,st,M){"use strict";var B=M(96156),it=M(22122),wt=M(90484),mt=M(94184),ft=M.n(mt),ct=M(67294),et=M(53124),K=M(99134),g=function(N,q){var O={};for(var X in N)Object.prototype.hasOwnProperty.call(N,X)&&q.indexOf(X)<0&&(O[X]=N[X]);if(N!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ot=0,X=Object.getOwnPropertySymbols(N);ot0){var W=rt[0]/2;G.paddingLeft=W,G.paddingRight=W}if(rt&&rt[1]>0&&!zt){var V=rt[1]/2;G.paddingTop=V,G.paddingBottom=V}return R&&(G.flex=h(R),Mt===!1&&!G.minWidth&&(G.minWidth=0)),ct.createElement("div",(0,it.Z)({},j,{style:(0,it.Z)((0,it.Z)({},G),D),className:St,ref:q}),Y)});st.Z=E},92820:function(Pt,st,M){"use strict";var B=M(22122),it=M(96156),wt=M(90484),mt=M(28481),ft=M(94184),ct=M.n(ft),et=M(67294),K=M(53124),g=M(98082),h=M(24308),J=M(93355),E=M(99134),N=function(ht,bt){var rt={};for(var Mt in ht)Object.prototype.hasOwnProperty.call(ht,Mt)&&bt.indexOf(Mt)<0&&(rt[Mt]=ht[Mt]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var zt=0,Mt=Object.getOwnPropertySymbols(ht);zt0?dt[0]/-2:void 0,ae=dt[1]!=null&&dt[1]>0?dt[1]/-2:void 0;if(te&&(Ut.marginLeft=te,Ut.marginRight=te),Tt){var we=(0,mt.Z)(dt,2);Ut.rowGap=we[1]}else ae&&(Ut.marginTop=ae,Ut.marginBottom=ae);var re=(0,mt.Z)(dt,2),xe=re[0],Se=re[1],_e=et.useMemo(function(){return{gutter:[xe,Se],wrap:tt,supportFlexGap:Tt}},[xe,Se,tt,Tt]);return et.createElement(E.Z.Provider,{value:_e},et.createElement("div",(0,B.Z)({},Y,{className:Bt,style:(0,B.Z)((0,B.Z)({},Ut),se),ref:bt}),jt))});st.Z=ot},6999:function(Pt,st,M){"use strict";var B=M(38663),it=M.n(B),wt=M(80638),mt=M.n(wt)},71230:function(Pt,st,M){"use strict";var B=M(92820);st.Z=B.Z},13062:function(Pt,st,M){"use strict";var B=M(38663),it=M.n(B),wt=M(6999)},56645:function(Pt,st){(function(M,B){B(st)})(this,function(M){"use strict";function B(T,k){return it(T)||wt(T,k)||mt()}function it(T){if(Array.isArray(T))return T}function wt(T,k){var tt=[],Y=!0,R=!1,D=void 0;try{for(var j=T[Symbol.iterator](),Z;!(Y=(Z=j.next()).done)&&(tt.push(Z.value),!(k&&tt.length===k));Y=!0);}catch(vt){R=!0,D=vt}finally{try{!Y&&j.return!=null&&j.return()}finally{if(R)throw D}}return tt}function mt(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function ft(T,k,tt,Y){T=T.filter(function(nt,U){var Ot=k(nt,U),Tt=tt(nt,U);return Ot!=null&&isFinite(Ot)&&Tt!=null&&isFinite(Tt)}),Y&&T.sort(function(nt,U){return k(nt)-k(U)});for(var R=T.length,D=new Float64Array(R),j=new Float64Array(R),Z=0,vt=0,St,G,W,V=0;VR&&(G.splice($+1,0,Tt),V=!0)}return V}}function J(T,k,tt,Y){var R=Y-T*T,D=Math.abs(R)<1e-24?0:(tt-T*k)/R,j=k-D*T;return[j,D]}function E(){var T=function(D){return D[0]},k=function(D){return D[1]},tt;function Y(R){var D=0,j=0,Z=0,vt=0,St=0,G=0,W=tt?+tt[0]:Infinity,V=tt?+tt[1]:-Infinity;ct(R,T,k,function(lt,Ct){var dt=Math.log(Ct),Bt=lt*Ct;++D,j+=(Ct-j)/D,vt+=(Bt-vt)/D,G+=(lt*Bt-G)/D,Z+=(Ct*dt-Z)/D,St+=(Bt*dt-St)/D,tt||(ltV&&(V=lt))});var $=J(vt/j,Z/j,St/j,G/j),nt=B($,2),U=nt[0],Ot=nt[1];U=Math.exp(U);var Tt=function(Ct){return U*Math.exp(Ot*Ct)},Ft=h(W,V,Tt);return Ft.a=U,Ft.b=Ot,Ft.predict=Tt,Ft.rSquared=et(R,T,k,j,Tt),Ft}return Y.domain=function(R){return arguments.length?(tt=R,Y):tt},Y.x=function(R){return arguments.length?(T=R,Y):T},Y.y=function(R){return arguments.length?(k=R,Y):k},Y}function N(){var T=function(D){return D[0]},k=function(D){return D[1]},tt;function Y(R){var D=0,j=0,Z=0,vt=0,St=0,G=tt?+tt[0]:Infinity,W=tt?+tt[1]:-Infinity;ct(R,T,k,function(Ft,lt){++D,j+=(Ft-j)/D,Z+=(lt-Z)/D,vt+=(Ft*lt-vt)/D,St+=(Ft*Ft-St)/D,tt||(FtW&&(W=Ft))});var V=J(j,Z,vt,St),$=B(V,2),nt=$[0],U=$[1],Ot=function(lt){return U*lt+nt},Tt=[[G,Ot(G)],[W,Ot(W)]];return Tt.a=U,Tt.b=nt,Tt.predict=Ot,Tt.rSquared=et(R,T,k,Z,Ot),Tt}return Y.domain=function(R){return arguments.length?(tt=R,Y):tt},Y.x=function(R){return arguments.length?(T=R,Y):T},Y.y=function(R){return arguments.length?(k=R,Y):k},Y}function q(T){T.sort(function(tt,Y){return tt-Y});var k=T.length/2;return k%1==0?(T[k-1]+T[k])/2:T[Math.floor(k)]}var O=2,X=1e-12;function ot(){var T=function(D){return D[0]},k=function(D){return D[1]},tt=.3;function Y(R){for(var D=ft(R,T,k,!0),j=B(D,4),Z=j[0],vt=j[1],St=j[2],G=j[3],W=Z.length,V=Math.max(2,~~(tt*W)),$=new Float64Array(W),nt=new Float64Array(W),U=new Float64Array(W).fill(1),Ot=-1;++Ot<=O;){for(var Tt=[0,V-1],Ft=0;FtZ[dt]-lt?Ct:dt,Ut=0,te=0,ae=0,we=0,re=0,xe=1/Math.abs(Z[Bt]-lt||1),Se=Ct;Se<=dt;++Se){var _e=Z[Se],ce=vt[Se],ve=ht(Math.abs(lt-_e)*xe)*U[Se],de=_e*ve;Ut+=ve,te+=de,ae+=ce*ve,we+=ce*de,re+=_e*de}var Te=J(te/Ut,ae/Ut,we/Ut,re/Ut),ii=B(Te,2),ni=ii[0],ai=ii[1];$[Ft]=ni+ai*lt,nt[Ft]=Math.abs(vt[Ft]-$[Ft]),bt(Z,Ft+1,Tt)}if(Ot===O)break;var Za=q(nt);if(Math.abs(Za)=1?X:(Ka=1-Pi*Pi)*Ka}return rt(Z,$,St,G)}return Y.bandwidth=function(R){return arguments.length?(tt=R,Y):tt},Y.x=function(R){return arguments.length?(T=R,Y):T},Y.y=function(R){return arguments.length?(k=R,Y):k},Y}function ht(T){return(T=1-T*T*T)*T*T}function bt(T,k,tt){var Y=T[k],R=tt[0],D=tt[1]+1;if(!(D>=T.length))for(;k>R&&T[D]-Y<=Y-T[R];)tt[0]=++R,tt[1]=D,++D}function rt(T,k,tt,Y){for(var R=T.length,D=[],j=0,Z=0,vt=[],St;jV&&(V=Ct))});var nt=J(Z,vt,St,G),U=B(nt,2),Ot=U[0],Tt=U[1],Ft=function(dt){return Tt*Math.log(dt)/$+Ot},lt=h(W,V,Ft);return lt.a=Tt,lt.b=Ot,lt.predict=Ft,lt.rSquared=et(D,T,k,vt,Ft),lt}return R.domain=function(D){return arguments.length?(Y=D,R):Y},R.x=function(D){return arguments.length?(T=D,R):T},R.y=function(D){return arguments.length?(k=D,R):k},R.base=function(D){return arguments.length?(tt=D,R):tt},R}function zt(){var T=function(D){return D[0]},k=function(D){return D[1]},tt;function Y(R){var D=ft(R,T,k),j=B(D,4),Z=j[0],vt=j[1],St=j[2],G=j[3],W=Z.length,V=0,$=0,nt=0,U=0,Ot=0,Tt,Ft,lt,Ct;for(Tt=0;Ttte&&(te=ve))});var ae=nt-V*V,we=V*ae-$*$,re=(Ot*V-U*$)/we,xe=(U*ae-Ot*$)/we,Se=-re*V,_e=function(de){return de=de-St,re*de*de+xe*de+Se+G},ce=h(Ut,te,_e);return ce.a=re,ce.b=xe-2*re*St,ce.c=Se-xe*St+re*St*St+G,ce.predict=_e,ce.rSquared=et(R,T,k,dt,_e),ce}return Y.domain=function(R){return arguments.length?(tt=R,Y):tt},Y.x=function(R){return arguments.length?(T=R,Y):T},Y.y=function(R){return arguments.length?(k=R,Y):k},Y}function Kt(){var T=function(j){return j[0]},k=function(j){return j[1]},tt=3,Y;function R(D){if(tt===1){var j=N().x(T).y(k).domain(Y)(D);return j.coefficients=[j.b,j.a],delete j.a,delete j.b,j}if(tt===2){var Z=zt().x(T).y(k).domain(Y)(D);return Z.coefficients=[Z.c,Z.b,Z.a],delete Z.a,delete Z.b,delete Z.c,Z}var vt=ft(D,T,k),St=B(vt,4),G=St[0],W=St[1],V=St[2],$=St[3],nt=G.length,U=[],Ot=[],Tt=tt+1,Ft=0,lt=0,Ct=Y?+Y[0]:Infinity,dt=Y?+Y[1]:-Infinity;ct(D,T,k,function(_e,ce){++lt,Ft+=(ce-Ft)/lt,Y||(_edt&&(dt=_e))});var Bt,Ut,te,ae,we;for(Bt=0;Bt=0;--D)for(Z=k[D],vt=1,R[D]+=Z,j=1;j<=D;++j)vt*=(D+1-j)/j,R[D-j]+=Z*Math.pow(tt,j)*vt;return R[0]+=Y,R}function se(T){var k=T.length-1,tt=[],Y,R,D,j,Z;for(Y=0;YMath.abs(T[Y][j])&&(j=R);for(D=Y;D=Y;D--)T[D][R]-=T[D][Y]*T[Y][R]/T[Y][Y]}for(R=k-1;R>=0;--R){for(Z=0,D=R+1;DV&&(V=lt))});var $=J(j,Z,vt,St),nt=B($,2),U=nt[0],Ot=nt[1];U=Math.exp(U);var Tt=function(Ct){return U*Math.pow(Ct,Ot)},Ft=h(W,V,Tt);return Ft.a=U,Ft.b=Ot,Ft.predict=Tt,Ft.rSquared=et(R,T,k,G,Tt),Ft}return Y.domain=function(R){return arguments.length?(tt=R,Y):tt},Y.x=function(R){return arguments.length?(T=R,Y):T},Y.y=function(R){return arguments.length?(k=R,Y):k},Y}M.regressionExp=E,M.regressionLinear=N,M.regressionLoess=ot,M.regressionLog=Mt,M.regressionPoly=Kt,M.regressionPow=jt,M.regressionQuad=zt,Object.defineProperty(M,"__esModule",{value:!0})})},87026:function(Pt,st){(function(M,B){B(st)})(this,function(M){"use strict";function B(N,q,O,X){X=X||{};var ot=X.maxIterations||100,ht=X.tolerance||1e-10,bt=N(q),rt=N(O),Mt=O-q;if(bt*rt>0)throw"Initial bisect points must have opposite signs";if(bt===0)return q;if(rt===0)return O;for(var zt=0;zt=0&&(q=Kt),Math.abs(Mt)=T[jt-1].fx){var $=!1;if(j.fx>V.fx?(et(Z,1+Kt,D,-Kt,V),Z.fx=N(Z),Z.fx=1)break;for(k=1;krt+ht*ot*Mt||zt>=Y)tt=ot;else{if(Math.abs(Yt)<=-bt*Mt)return ot;Yt*(tt-k)>=0&&(tt=k),k=ot,Y=zt}return 0}for(var T=0;T<10;++T){if(et(X.x,1,O.x,ot,q),zt=X.fx=N(X.x,X.fxprime),Yt=mt(X.fxprime,q),zt>rt+ht*ot*Mt||T&&zt>=Kt)return jt(se,ot,Kt);if(Math.abs(Yt)<=-bt*Mt)return ot;if(Yt>=0)return jt(ot,se,zt);Kt=zt,se=ot,ot*=2}return ot}function h(N,q,O){var X={x:q.slice(),fx:0,fxprime:q.slice()},ot={x:q.slice(),fx:0,fxprime:q.slice()},ht=q.slice(),bt,rt,Mt=1,zt;O=O||{},zt=O.maxIterations||q.length*20,X.fx=N(X.x,X.fxprime),bt=X.fxprime.slice(),ct(bt,X.fxprime,-1);for(var Kt=0;Kt=ot.length)){var tt=Math.max(k-J,0),Y=k,R=Math.min(k+J,ot.length-1),D=tt-(k-J),j=k+J-R,Z=rt[-J-1+D]||0,vt=rt[-J-1+j]||0,St=Mt/(Mt-Z-vt);D>0&&(Kt+=St*(D-1)*zt);var G=Math.max(0,k-J+1);ft.inside(0,ot.length-1,G)&&(ot[G].y+=St*1*zt),ft.inside(0,ot.length-1,Y+1)&&(ot[Y+1].y-=St*2*zt),ft.inside(0,ot.length-1,R+1)&&(ot[R+1].y+=St*1*zt)}});var Yt=Kt,se=0,jt=0;return ot.forEach(function(T){se+=T.y,Yt+=se,T.y=Yt,jt+=Yt}),jt>0&&ot.forEach(function(T){T.y/=jt}),ot};function et(K,g){for(var h={},J=0,E=-g;E<=g;E++)J+=K(E/g),h[E]=J;return h}Pt.exports.getExpectedValueFromPdf=function(K){if(!(!K||K.length===0)){var g=0;return K.forEach(function(h){g+=h.x*h.y}),g}},Pt.exports.getXWithLeftTailArea=function(K,g){if(!(!K||K.length===0)){for(var h=0,J=0,E=0;E=g));E++);return K[J].x}},Pt.exports.getPerplexity=function(K){if(!(!K||K.length===0)){var g=0;return K.forEach(function(h){var J=Math.log(h.y);isFinite(J)&&(g+=h.y*J)}),g=-g/wt,Math.pow(2,g)}}},55168:function(Pt,st){"use strict";Object.defineProperty(st,"__esModule",{value:!0}),st.SensorTabIndex=st.SensorClassName=st.SizeSensorId=void 0;var M="size-sensor-id";st.SizeSensorId=M;var B="size-sensor-object";st.SensorClassName=B;var it="-1";st.SensorTabIndex=it},12177:function(Pt,st){"use strict";Object.defineProperty(st,"__esModule",{value:!0}),st.default=void 0;var M=function(it){var wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:60,mt=null;return function(){for(var ft=this,ct=arguments.length,et=new Array(ct),K=0;K0&&U[U.length-1])&&(lt[0]===6||lt[0]===2)){z=0;continue}if(lt[0]===3&&(!U||lt[1]>U[0]&<[1]=18&&(E=K.createRoot)}catch(W){}function $(W){var H=K.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;H&&typeof H=="object"&&(H.usingClientEntryPoint=W)}var L="__rc_react_root__";function X(W,H){$(!0);var z=H[L]||E(H);$(!1),z.render(W),H[L]=z}function ot(W,H){h(W,H)}function ht(W,H){}function bt(W,H){if(E){X(W,H);return}ot(W,H)}function rt(W){return ct(this,void 0,void 0,function(){return et(this,function(H){return[2,Promise.resolve().then(function(){var z;(z=W[L])===null||z===void 0||z.unmount(),delete W[L]})]})})}function Mt(W){J(W)}function zt(W){}function qt(W){return ct(this,void 0,void 0,function(){return et(this,function(H){return E!==void 0?[2,rt(W)]:(Mt(W),[2])})})}var Yt=new Map,se=function(W,H,z){var Q=document.createElement("div");return H==="tooltip"&&(Q.setAttribute("data-uuid",z),Yt.has(z)?Q=Yt.get(z):Yt.set(z,Q),Q.className="g2-tooltip"),bt(W,Q),Q},jt=se,T=function(W,H){var z={}.toString;return z.call(W)==="[object ".concat(H,"]")},k=function(W){if(!W)return W;var H={};for(var z in W)H[z]=W[z];return H},tt=function(W){return Object.prototype.toString.call(W).slice(8,-1)},Y=function(W){if(!W||typeof W!="object")return W;var H;return Array.isArray(W)?H=W.map(function(z){return Y(z)}):(H={},Object.keys(W).forEach(function(z){return H[z]=Y(W[z])})),H},R=function(W,H){for(var z=W,Q=0;Q=0},e.prototype.getAdjustRange=function(r,t,i){var n=this.yField,a=i.indexOf(t),o=i.length,s,l;return!n&&this.isAdjust("y")?(s=0,l=1):o>1?(s=i[a===0?0:a-1],l=i[a===o-1?o-1:a+1],a!==0?s+=(t-s)/2:s-=(l-t)/2,a!==o-1?l-=(l-t)/2:l+=(t-i[o-2])/2):(s=t===0?0:t-.5,l=t===0?1:t+.5),{pre:s,next:l}},e.prototype.adjustData=function(r,t){var i=this,n=this.getDimValues(t);h.each(r,function(a,o){h.each(n,function(s,l){i.adjustDim(l,s,a,o)})})},e.prototype.groupData=function(r,t){return h.each(r,function(i){i[t]===void 0&&(i[t]=W)}),h.groupBy(r,t)},e.prototype.adjustDim=function(r,t,i,n){},e.prototype.getDimValues=function(r){var t=this,i=t.xField,n=t.yField,a=h.assign({},this.dimValuesMap),o=[];if(i&&this.isAdjust("x")&&o.push(i),n&&this.isAdjust("y")&&o.push(n),o.forEach(function(l){a&&a[l]||(a[l]=h.valuesOfKey(r,l).sort(function(u,c){return u-c}))}),!n&&this.isAdjust("y")){var s="y";a[s]=[W,1]}return a},e}(),U=nt,It={},Tt=function(e){return It[e.toLowerCase()]},Ft=function(e,r){if(Tt(e))throw new Error("Adjust type '"+e+"' existed.");It[e.toLowerCase()]=r};/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */var lt=function(r,t){return lt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var a in n)n.hasOwnProperty(a)&&(i[a]=n[a])},lt(r,t)};function Ct(e,r){lt(e,r);function t(){this.constructor=e}e.prototype=r===null?Object.create(r):(t.prototype=r.prototype,new t)}var gt=function(){return gt=Object.assign||function(t){for(var i,n=1,a=arguments.length;n=0;s--)(o=e[s])&&(a=(n<3?o(a):n>3?o(r,t,a):o(r,t))||a);return n>3&&a&&Object.defineProperty(r,t,a),a}function te(e,r){return function(t,i){r(t,i,e)}}function ae(e,r){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,r)}function we(e,r,t,i){function n(a){return a instanceof t?a:new t(function(o){o(a)})}return new(t||(t=Promise))(function(a,o){function s(c){try{u(i.next(c))}catch(f){o(f)}}function l(c){try{u(i.throw(c))}catch(f){o(f)}}function u(c){c.done?a(c.value):n(c.value).then(s,l)}u((i=i.apply(e,r||[])).next())})}function re(e,r){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,n,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(u){return function(c){return l([u,c])}}function l(u){if(i)throw new TypeError("Generator is already executing.");for(;t;)try{if(i=1,n&&(a=u[0]&2?n.return:u[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,u[1])).done)return a;switch(n=0,a&&(u=[u[0]&2,a.value]),u[0]){case 0:case 1:a=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,n=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(a=t.trys,!(a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}function ce(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var i=t.call(e),n,a=[],o;try{for(;(r===void 0||r-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(t=i.return)&&t.call(i)}finally{if(o)throw o.error}}return a}function ve(){for(var e=[],r=0;r1||s(v,d)})})}function s(v,d){try{l(i[v](d))}catch(p){f(a[0][3],p)}}function l(v){v.value instanceof Te?Promise.resolve(v.value.v).then(u,c):f(a[0][2],v)}function u(v){s("next",v)}function c(v){s("throw",v)}function f(v,d){v(d),a.shift(),a.length&&s(a[0][0],a[0][1])}}function ni(e){var r,t;return r={},i("next"),i("throw",function(n){throw n}),i("return"),r[Symbol.iterator]=function(){return this},r;function i(n,a){r[n]=e[n]?function(o){return(t=!t)?{value:Te(e[n](o)),done:n==="return"}:a?a(o):o}:a}}function ai(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=e[Symbol.asyncIterator],t;return r?r.call(e):(e=typeof _e=="function"?_e(e):e[Symbol.iterator](),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(a){t[a]=e[a]&&function(o){return new Promise(function(s,l){o=e[a](o),n(s,l,o.done,o.value)})}}function n(a,o,s,l){Promise.resolve(l).then(function(u){a({value:u,done:s})},o)}}function Xa(e,r){return Object.defineProperty?Object.defineProperty(e,"raw",{value:r}):e.raw=r,e}function Oi(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var t in e)Object.hasOwnProperty.call(e,t)&&(r[t]=e[t]);return r.default=e,r}function Pi(e){return e&&e.__esModule?e:{default:e}}function Ua(e,r){if(!r.has(e))throw new TypeError("attempted to get private field on non-instance");return r.get(e)}function FL(e,r,t){if(!r.has(e))throw new TypeError("attempted to set private field on non-instance");return r.set(e,t),t}var ud=function(e){Ct(r,e);function r(t){var i=e.call(this,t)||this;i.cacheMap={},i.adjustDataArray=[],i.mergeData=[];var n=t.marginRatio,a=n===void 0?H:n,o=t.dodgeRatio,s=o===void 0?z:o,l=t.dodgeBy,u=t.intervalPadding,c=t.dodgePadding,f=t.xDimensionLength,v=t.groupNum,d=t.defaultSize,p=t.maxColumnWidth,y=t.minColumnWidth,m=t.columnWidthRatio,x=t.customOffset;return i.marginRatio=a,i.dodgeRatio=s,i.dodgeBy=l,i.intervalPadding=u,i.dodgePadding=c,i.xDimensionLegenth=f,i.groupNum=v,i.defaultSize=d,i.maxColumnWidth=p,i.minColumnWidth=y,i.columnWidthRatio=m,i.customOffset=x,i}return r.prototype.process=function(t){var i=h.clone(t),n=h.flatten(i),a=this.dodgeBy,o=a?h.group(n,a):i;return this.cacheMap={},this.adjustDataArray=o,this.mergeData=n,this.adjustData(o,n),this.adjustDataArray=[],this.mergeData=[],i},r.prototype.adjustDim=function(t,i,n,a){var o=this,s=this.customOffset,l=this.getDistribution(t),u=this.groupData(n,t);return h.each(u,function(c,f){var v;i.length===1?v={pre:i[0]-1,next:i[0]+1}:v=o.getAdjustRange(t,parseFloat(f),i),h.each(c,function(d){var p=d[t],y=l[p],m=y.indexOf(a);if(h.isNil(s))d[t]=o.getDodgeOffset(v,m,y.length);else{var x=v.pre,_=v.next;d[t]=h.isFunction(s)?s(d,v):(x+_)/2+s}})}),[]},r.prototype.getDodgeOffset=function(t,i,n){var a=this,o=a.dodgeRatio,s=a.marginRatio,l=a.intervalPadding,u=a.dodgePadding,c=t.pre,f=t.next,v=f-c,d;if(!h.isNil(l)&&h.isNil(u)&&l>=0){var p=this.getIntervalOnlyOffset(n,i);d=c+p}else if(!h.isNil(u)&&h.isNil(l)&&u>=0){var p=this.getDodgeOnlyOffset(n,i);d=c+p}else if(!h.isNil(l)&&!h.isNil(u)&&l>=0&&u>=0){var p=this.getIntervalAndDodgeOffset(n,i);d=c+p}else{var y=v*o/n,m=s*y,p=1/2*(v-n*y-(n-1)*m)+((i+1)*y+i*m)-1/2*y-1/2*v;d=(c+f)/2+p}return d},r.prototype.getIntervalOnlyOffset=function(t,i){var n=this,a=n.defaultSize,o=n.intervalPadding,s=n.xDimensionLegenth,l=n.groupNum,u=n.dodgeRatio,c=n.maxColumnWidth,f=n.minColumnWidth,v=n.columnWidthRatio,d=o/s,p=(1-(l-1)*d)/l*u/(t-1),y=((1-d*(l-1))/l-p*(t-1))/t;if(y=h.isNil(v)?y:1/l/t*v,!h.isNil(c)){var m=c/s;y=Math.min(y,m)}if(!h.isNil(f)){var x=f/s;y=Math.max(y,x)}y=a?a/s:y,p=((1-(l-1)*d)/l-t*y)/(t-1);var _=((1/2+i)*y+i*p+1/2*d)*l-d/2;return _},r.prototype.getDodgeOnlyOffset=function(t,i){var n=this,a=n.defaultSize,o=n.dodgePadding,s=n.xDimensionLegenth,l=n.groupNum,u=n.marginRatio,c=n.maxColumnWidth,f=n.minColumnWidth,v=n.columnWidthRatio,d=o/s,p=1*u/(l-1),y=((1-p*(l-1))/l-d*(t-1))/t;if(y=v?1/l/t*v:y,!h.isNil(c)){var m=c/s;y=Math.min(y,m)}if(!h.isNil(f)){var x=f/s;y=Math.max(y,x)}y=a?a/s:y,p=(1-(y*t+d*(t-1))*l)/(l-1);var _=((1/2+i)*y+i*d+1/2*p)*l-p/2;return _},r.prototype.getIntervalAndDodgeOffset=function(t,i){var n=this,a=n.intervalPadding,o=n.dodgePadding,s=n.xDimensionLegenth,l=n.groupNum,u=a/s,c=o/s,f=((1-u*(l-1))/l-c*(t-1))/t,v=((1/2+i)*f+i*c+1/2*u)*l-u/2;return v},r.prototype.getDistribution=function(t){var i=this.adjustDataArray,n=this.cacheMap,a=n[t];return a||(a={},h.each(i,function(o,s){var l=h.valuesOfKey(o,t);l.length||l.push(0),h.each(l,function(u){a[u]||(a[u]=[]),a[u].push(s)})}),n[t]=a),a},r}(U),cd=ud;function hd(e,r){return(r-e)*Math.random()+e}var fd=function(e){Ct(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.process=function(t){var i=h.clone(t),n=h.flatten(i);return this.adjustData(i,n),i},r.prototype.adjustDim=function(t,i,n){var a=this,o=this.groupData(n,t);return h.each(o,function(s,l){return a.adjustGroup(s,t,parseFloat(l),i)})},r.prototype.getAdjustOffset=function(t){var i=t.pre,n=t.next,a=(n-i)*Q;return hd(i+a,n-a)},r.prototype.adjustGroup=function(t,i,n,a){var o=this,s=this.getAdjustRange(i,n,a);return h.each(t,function(l){l[i]=o.getAdjustOffset(s)}),t},r}(U),vd=fd,ja=h.Cache,dd=function(e){Ct(r,e);function r(t){var i=e.call(this,t)||this,n=t.adjustNames,a=n===void 0?["y"]:n,o=t.height,s=o===void 0?NaN:o,l=t.size,u=l===void 0?10:l,c=t.reverseOrder,f=c===void 0?!1:c;return i.adjustNames=a,i.height=s,i.size=u,i.reverseOrder=f,i}return r.prototype.process=function(t){var i=this,n=i.yField,a=i.reverseOrder,o=n?this.processStack(t):this.processOneDimStack(t);return a?this.reverse(o):o},r.prototype.reverse=function(t){return t.slice(0).reverse()},r.prototype.processStack=function(t){var i=this,n=i.xField,a=i.yField,o=i.reverseOrder,s=o?this.reverse(t):t,l=new ja,u=new ja;return s.map(function(c){return c.map(function(f){var v,d=h.get(f,n,0),p=h.get(f,[a]),y=d.toString();if(p=h.isArray(p)?p[1]:p,!h.isNil(p)){var m=p>=0?l:u;m.has(y)||m.set(y,0);var x=m.get(y),_=p+x;return m.set(y,_),gt(gt({},f),(v={},v[a]=[x,_],v))}return f})})},r.prototype.processOneDimStack=function(t){var i=this,n=this,a=n.xField,o=n.height,s=n.reverseOrder,l="y",u=s?this.reverse(t):t,c=new ja;return u.map(function(f){return f.map(function(v){var d,p=i.size,y=v[a],m=p*2/o;c.has(y)||c.set(y,m/2);var x=c.get(y);return c.set(y,x+m),gt(gt({},v),(d={},d[l]=x,d))})})},r}(U),gd=dd,pd=function(e){Ct(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.process=function(t){var i=h.flatten(t),n=this,a=n.xField,o=n.yField,s=this.getXValuesMaxMap(i),l=Math.max.apply(Math,Object.keys(s).map(function(u){return s[u]}));return h.map(t,function(u){return h.map(u,function(c){var f,v,d=c[o],p=c[a];if(h.isArray(d)){var y=(l-s[p])/2;return gt(gt({},c),(f={},f[o]=h.map(d,function(x){return y+x}),f))}var m=(l-d)/2;return gt(gt({},c),(v={},v[o]=[m,d+m],v))})})},r.prototype.getXValuesMaxMap=function(t){var i=this,n=this,a=n.xField,o=n.yField,s=h.groupBy(t,function(l){return l[a]});return h.mapValues(s,function(l){return i.getDimMaxValue(l,o)})},r.prototype.getDimMaxValue=function(t,i){var n=h.map(t,function(o){return h.get(o,i,[])}),a=h.flatten(n);return Math.max.apply(Math,a)},r}(U),yd=pd;Ft("Dodge",cd),Ft("Jitter",vd),Ft("Stack",gd),Ft("Symmetric",yd);var cl=function(e,r){return(0,h.isString)(r)?r:e.invert(e.scale(r))},md=function(){function e(r){this.names=[],this.scales=[],this.linear=!1,this.values=[],this.callback=function(){return[]},this._parseCfg(r)}return e.prototype.mapping=function(){for(var r=this,t=[],i=0;i1?1:Number(r),i=e.length-1,n=Math.floor(i*t),a=i*t-n,o=e[n],s=n===i?o:e[n+1];return hl([Za(o,s,a,0),Za(o,s,a,1),Za(o,s,a,2)])},Mn,vl=function(e){if(e[0]==="#"&&e.length===7)return e;Mn||(Mn=Cd()),Mn.style.color=e;var r=document.defaultView.getComputedStyle(Mn,"").getPropertyValue("color"),t=xd.exec(r),i=t[1].split(/\s*,\s*/).map(function(n){return Number(n)});return r=hl(i),r},Md=function(e){var r=(0,h.isString)(e)?e.split("-"):e,t=(0,h.map)(r,function(i){return fl(i.indexOf("#")===-1?vl(i):i)});return function(i){return Ad(t,i)}},Fd=function(e){if(Sd(e)){var r,t=void 0;if(e[0]==="l"){var i=_d.exec(e),n=+i[1]+90;t=i[2],r="linear-gradient("+n+"deg, "}else if(e[0]==="r"){r="radial-gradient(";var i=wd.exec(e);t=i[4]}var a=t.match(bd);return(0,h.each)(a,function(o,s){var l=o.split(":");r+=l[1]+" "+l[0]*100+"%",s!==a.length-1&&(r+=", ")}),r+=")",r}return e},xr={rgb2arr:fl,gradient:Md,toRGB:(0,h.memoize)(vl),toCSSGradient:Fd},Ed=function(e){(0,g.__extends)(r,e);function r(t){var i=e.call(this,t)||this;return i.type="color",i.names=["color"],(0,h.isString)(i.values)&&(i.linear=!0),i.gradient=xr.gradient(i.values),i}return r.prototype.getLinearValue=function(t){return this.gradient(t)},r}(ki),Td=Ed,Ld=function(e){(0,g.__extends)(r,e);function r(t){var i=e.call(this,t)||this;return i.type="opacity",i.names=["opacity"],i}return r}(ki),Id=Ld,Od=function(e){(0,g.__extends)(r,e);function r(t){var i=e.call(this,t)||this;return i.names=["x","y"],i.type="position",i}return r.prototype.mapping=function(t,i){var n=this.scales,a=n[0],o=n[1];return(0,h.isNil)(t)||(0,h.isNil)(i)?[]:[(0,h.isArray)(t)?t.map(function(s){return a.scale(s)}):a.scale(t),(0,h.isArray)(i)?i.map(function(s){return o.scale(s)}):o.scale(i)]},r}(ki),Pd=Od,kd=function(e){(0,g.__extends)(r,e);function r(t){var i=e.call(this,t)||this;return i.type="shape",i.names=["shape"],i}return r.prototype.getLinearValue=function(t){var i=Math.round((this.values.length-1)*t);return this.values[i]},r}(ki),Dd=kd,Bd=function(e){(0,g.__extends)(r,e);function r(t){var i=e.call(this,t)||this;return i.type="size",i.names=["size"],i}return r}(ki),Rd=Bd,Di=M(86429),dl={},gl=function(e){return dl[e.toLowerCase()]},Bi=function(e,r){if(gl(e))throw new Error("Attribute type '".concat(e,"' existed."));dl[e.toLowerCase()]=r};Bi("Color",Td),Bi("Opacity",Id),Bi("Position",Pd),Bi("Shape",Dd),Bi("Size",Rd);var Fn=M(77160),Nd=M(35600),ie=M(31506),zd=function(){function e(r){this.type="coordinate",this.isRect=!1,this.isHelix=!1,this.isPolar=!1,this.isReflectX=!1,this.isReflectY=!1;var t=r.start,i=r.end,n=r.matrix,a=n===void 0?[1,0,0,0,1,0,0,0,1]:n,o=r.isTransposed,s=o===void 0?!1:o;this.start=t,this.end=i,this.matrix=a,this.originalMatrix=(0,g.__spreadArray)([],a),this.isTransposed=s}return e.prototype.initial=function(){this.center={x:(this.start.x+this.end.x)/2,y:(this.start.y+this.end.y)/2},this.width=Math.abs(this.end.x-this.start.x),this.height=Math.abs(this.end.y-this.start.y)},e.prototype.update=function(r){(0,h.assign)(this,r),this.initial()},e.prototype.convertDim=function(r,t){var i,n=this[t],a=n.start,o=n.end;return this.isReflect(t)&&(i=[o,a],a=i[0],o=i[1]),a+r*(o-a)},e.prototype.invertDim=function(r,t){var i,n=this[t],a=n.start,o=n.end;return this.isReflect(t)&&(i=[o,a],a=i[0],o=i[1]),(r-a)/(o-a)},e.prototype.applyMatrix=function(r,t,i){i===void 0&&(i=0);var n=this.matrix,a=[r,t,i];return Fn.transformMat3(a,a,n),a},e.prototype.invertMatrix=function(r,t,i){i===void 0&&(i=0);var n=this.matrix,a=Nd.invert([0,0,0,0,0,0,0,0,0],n),o=[r,t,i];return a&&Fn.transformMat3(o,o,a),o},e.prototype.convert=function(r){var t=this.convertPoint(r),i=t.x,n=t.y,a=this.applyMatrix(i,n,1);return{x:a[0],y:a[1]}},e.prototype.invert=function(r){var t=this.invertMatrix(r.x,r.y,1);return this.invertPoint({x:t[0],y:t[1]})},e.prototype.rotate=function(r){var t=this.matrix,i=this.center;return ie.m$(t,t,[-i.x,-i.y]),ie.zu(t,t,r),ie.m$(t,t,[i.x,i.y]),this},e.prototype.reflect=function(r){return r==="x"?this.isReflectX=!this.isReflectX:this.isReflectY=!this.isReflectY,this},e.prototype.scale=function(r,t){var i=this.matrix,n=this.center;return ie.m$(i,i,[-n.x,-n.y]),ie.lh(i,i,[r,t]),ie.m$(i,i,[n.x,n.y]),this},e.prototype.translate=function(r,t){var i=this.matrix;return ie.m$(i,i,[r,t]),this},e.prototype.transpose=function(){return this.isTransposed=!this.isTransposed,this},e.prototype.getCenter=function(){return this.center},e.prototype.getWidth=function(){return this.width},e.prototype.getHeight=function(){return this.height},e.prototype.getRadius=function(){return this.radius},e.prototype.isReflect=function(r){return r==="x"?this.isReflectX:this.isReflectY},e.prototype.resetMatrix=function(r){this.matrix=r||(0,g.__spreadArray)([],this.originalMatrix)},e}(),Ka=zd,Vd=function(e){(0,g.__extends)(r,e);function r(t){var i=e.call(this,t)||this;return i.isRect=!0,i.type="cartesian",i.initial(),i}return r.prototype.initial=function(){e.prototype.initial.call(this);var t=this.start,i=this.end;this.x={start:t.x,end:i.x},this.y={start:t.y,end:i.y}},r.prototype.convertPoint=function(t){var i,n=t.x,a=t.y;return this.isTransposed&&(i=[a,n],n=i[0],a=i[1]),{x:this.convertDim(n,"x"),y:this.convertDim(a,"y")}},r.prototype.invertPoint=function(t){var i,n=this.invertDim(t.x,"x"),a=this.invertDim(t.y,"y");return this.isTransposed&&(i=[a,n],n=i[0],a=i[1]),{x:n,y:a}},r}(Ka),pl=Vd,Lt=M(31437),Gd=function(e){(0,g.__extends)(r,e);function r(t){var i=e.call(this,t)||this;i.isHelix=!0,i.type="helix";var n=t.startAngle,a=n===void 0?1.25*Math.PI:n,o=t.endAngle,s=o===void 0?7.25*Math.PI:o,l=t.innerRadius,u=l===void 0?0:l,c=t.radius;return i.startAngle=a,i.endAngle=s,i.innerRadius=u,i.radius=c,i.initial(),i}return r.prototype.initial=function(){e.prototype.initial.call(this);var t=(this.endAngle-this.startAngle)/(2*Math.PI)+1,i=Math.min(this.width,this.height)/2;this.radius&&this.radius>=0&&this.radius<=1&&(i=i*this.radius),this.d=Math.floor(i*(1-this.innerRadius)/t),this.a=this.d/(Math.PI*2),this.x={start:this.startAngle,end:this.endAngle},this.y={start:this.innerRadius*i,end:this.innerRadius*i+this.d*.99}},r.prototype.convertPoint=function(t){var i,n=t.x,a=t.y;this.isTransposed&&(i=[a,n],n=i[0],a=i[1]);var o=this.convertDim(n,"x"),s=this.a*o,l=this.convertDim(a,"y");return{x:this.center.x+Math.cos(o)*(s+l),y:this.center.y+Math.sin(o)*(s+l)}},r.prototype.invertPoint=function(t){var i,n=this.d+this.y.start,a=Lt.subtract([0,0],[t.x,t.y],[this.center.x,this.center.y]),o=ie.Dg(a,[1,0],!0),s=o*this.a;Lt.length(a)this.width/i?(s=this.width/i,this.circleCenter={x:this.center.x-(.5-a)*this.width,y:this.center.y-(.5-o)*s*n}):(s=this.height/n,this.circleCenter={x:this.center.x-(.5-a)*s*i,y:this.center.y-(.5-o)*this.height}),this.polarRadius=this.radius,this.radius?this.radius>0&&this.radius<=1?this.polarRadius=s*this.radius:(this.radius<=0||this.radius>s)&&(this.polarRadius=s):this.polarRadius=s,this.x={start:this.startAngle,end:this.endAngle},this.y={start:this.innerRadius*this.polarRadius,end:this.polarRadius}},r.prototype.getRadius=function(){return this.polarRadius},r.prototype.convertPoint=function(t){var i,n=this.getCenter(),a=t.x,o=t.y;return this.isTransposed&&(i=[o,a],a=i[0],o=i[1]),a=this.convertDim(a,"x"),o=this.convertDim(o,"y"),{x:n.x+Math.cos(a)*o,y:n.y+Math.sin(a)*o}},r.prototype.invertPoint=function(t){var i,n=this.getCenter(),a=[t.x-n.x,t.y-n.y],o=this,s=o.startAngle,l=o.endAngle;this.isReflect("x")&&(i=[l,s],s=i[0],l=i[1]);var u=[1,0,0,0,1,0,0,0,1];ie.zu(u,u,s);var c=[1,0,0];Fn.transformMat3(c,c,u);var f=[c[0],c[1]],v=ie.Dg(f,a,l0?p:-p;var y=this.invertDim(d,"y"),m={x:0,y:0};return m.x=this.isTransposed?y:p,m.y=this.isTransposed?p:y,m},r.prototype.getCenter=function(){return this.circleCenter},r.prototype.getOneBox=function(){var t=this.startAngle,i=this.endAngle;if(Math.abs(i-t)>=Math.PI*2)return{minX:-1,maxX:1,minY:-1,maxY:1};for(var n=[0,Math.cos(t),Math.cos(i)],a=[0,Math.sin(t),Math.sin(i)],o=Math.min(t,i);o=0;i--)e.removeChild(r[i])}function Zd(e,r){return!!e.className.match(new RegExp("(\\s|^)"+r+"(\\s|$)"))}function Ri(e){var r=e.start,t=e.end,i=Math.min(r.x,t.x),n=Math.min(r.y,t.y),a=Math.max(r.x,t.x),o=Math.max(r.y,t.y);return{x:i,y:n,minX:i,minY:n,maxX:a,maxY:o,width:a-i,height:o-n}}function qd(e){var r=e.map(function(s){return s.x}),t=e.map(function(s){return s.y}),i=Math.min.apply(Math,r),n=Math.min.apply(Math,t),a=Math.max.apply(Math,r),o=Math.max.apply(Math,t);return{x:i,y:n,minX:i,minY:n,maxX:a,maxY:o,width:a-i,height:o-n}}function Ni(e,r,t,i){var n=e+t,a=r+i;return{x:e,y:r,width:t,height:i,minX:e,minY:r,maxX:isNaN(n)?0:n,maxY:isNaN(a)?0:a}}function Br(e,r,t){return(1-t)*e+r*t}function oi(e,r,t){return{x:e.x+Math.cos(t)*r,y:e.y+Math.sin(t)*r}}function Kd(e,r){var t=r.x-e.x,i=r.y-e.y;return Math.sqrt(t*t+i*i)}var EL=function(e){return new Promise(function(r){setTimeout(r,e)})},In=function(e,r,t){return t===void 0&&(t=Math.pow(Number.EPSILON,.5)),[e,r].includes(Infinity)?Math.abs(e)===Math.abs(r):Math.abs(e-r)0?(0,h.each)(l,function(u){if(u.get("visible")){if(u.isGroup()&&u.get("children").length===0)return!0;var c=wl(u),f=u.applyToMatrix([c.minX,c.minY,1]),v=u.applyToMatrix([c.minX,c.maxY,1]),d=u.applyToMatrix([c.maxX,c.minY,1]),p=u.applyToMatrix([c.maxX,c.maxY,1]),y=Math.min(f[0],v[0],d[0],p[0]),m=Math.max(f[0],v[0],d[0],p[0]),x=Math.min(f[1],v[1],d[1],p[1]),_=Math.max(f[1],v[1],d[1],p[1]);ya&&(a=m),xs&&(s=_)}}):(n=0,a=0,o=0,s=0),i=Ni(n,o,a-n,s-o)}return t?$d(i,t):i}function Qd(e,r){if(!(!e.getClip()&&!r.getClip())){var t=r.getClip();if(!t){e.setClip(null);return}var i={type:t.get("type"),attrs:t.attr()};e.setClip(i)}}function Le(e){return e+"px"}function bl(e,r,t,i){var n=Kd(e,r),a=i/n,o=0;return t==="start"?o=0-a:t==="end"&&(o=1+a),{x:Br(e.x,r.x,o),y:Br(e.y,r.y,o)}}var Jd={none:[],point:["x","y"],region:["start","end"],points:["points"],circle:["center","radius","startAngle","endAngle"]},tg=function(e){(0,g.__extends)(r,e);function r(t){var i=e.call(this,t)||this;return i.initCfg(),i}return r.prototype.getDefaultCfg=function(){return{id:"",name:"",type:"",locationType:"none",offsetX:0,offsetY:0,animate:!1,capture:!0,updateAutoRender:!1,animateOption:{appear:null,update:{duration:400,easing:"easeQuadInOut"},enter:{duration:400,easing:"easeQuadInOut"},leave:{duration:350,easing:"easeQuadIn"}},events:null,defaultCfg:{},visible:!0}},r.prototype.clear=function(){},r.prototype.update=function(t){var i=this,n=this.get("defaultCfg")||{};(0,h.each)(t,function(a,o){var s=i.get(o),l=a;s!==a&&((0,h.isObject)(a)&&n[o]&&(l=(0,h.deepMix)({},n[o],a)),i.set(o,l))}),this.updateInner(t),this.afterUpdate(t)},r.prototype.updateInner=function(t){},r.prototype.afterUpdate=function(t){(0,h.hasKey)(t,"visible")&&(t.visible?this.show():this.hide()),(0,h.hasKey)(t,"capture")&&this.setCapture(t.capture)},r.prototype.getLayoutBBox=function(){return this.getBBox()},r.prototype.getLocationType=function(){return this.get("locationType")},r.prototype.getOffset=function(){return{offsetX:this.get("offsetX"),offsetY:this.get("offsetY")}},r.prototype.setOffset=function(t,i){this.update({offsetX:t,offsetY:i})},r.prototype.setLocation=function(t){var i=(0,g.__assign)({},t);this.update(i)},r.prototype.getLocation=function(){var t=this,i={},n=this.get("locationType"),a=Jd[n];return(0,h.each)(a,function(o){i[o]=t.get(o)}),i},r.prototype.isList=function(){return!1},r.prototype.isSlider=function(){return!1},r.prototype.init=function(){},r.prototype.initCfg=function(){var t=this,i=this.get("defaultCfg");(0,h.each)(i,function(n,a){var o=t.get(a);if((0,h.isObject)(o)){var s=(0,h.deepMix)({},n,o);t.set(a,s)}})},r}(St.Base),Sl=tg,Rr="update_status",eg=["visible","tip","delegateObject"],rg=["container","group","shapesMap","isRegister","isUpdating","destroyed"],ig=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{container:null,shapesMap:{},group:null,capture:!0,isRegister:!1,isUpdating:!1,isInit:!0})},r.prototype.remove=function(){this.clear();var t=this.get("group");t.remove()},r.prototype.clear=function(){var t=this.get("group");t.clear(),this.set("shapesMap",{}),this.clearOffScreenCache(),this.set("isInit",!0)},r.prototype.getChildComponentById=function(t){var i=this.getElementById(t),n=i&&i.get("component");return n},r.prototype.getElementById=function(t){return this.get("shapesMap")[t]},r.prototype.getElementByLocalId=function(t){var i=this.getElementId(t);return this.getElementById(i)},r.prototype.getElementsByName=function(t){var i=[];return(0,h.each)(this.get("shapesMap"),function(n){n.get("name")===t&&i.push(n)}),i},r.prototype.getContainer=function(){return this.get("container")},r.prototype.updateInner=function(t){this.offScreenRender(),this.get("updateAutoRender")&&this.render()},r.prototype.render=function(){var t=this.get("offScreenGroup");t||(t=this.offScreenRender());var i=this.get("group");this.updateElements(t,i),this.deleteElements(),this.applyOffset(),this.get("eventInitted")||(this.initEvent(),this.set("eventInitted",!0)),this.set("isInit",!1)},r.prototype.show=function(){var t=this.get("group");t.show(),this.set("visible",!0)},r.prototype.hide=function(){var t=this.get("group");t.hide(),this.set("visible",!1)},r.prototype.setCapture=function(t){var i=this.get("group");i.set("capture",t),this.set("capture",t)},r.prototype.destroy=function(){this.removeEvent(),this.remove(),e.prototype.destroy.call(this)},r.prototype.getBBox=function(){return this.get("group").getCanvasBBox()},r.prototype.getLayoutBBox=function(){var t=this.get("group"),i=this.getInnerLayoutBBox(),n=t.getTotalMatrix();return n&&(i=jd(n,i)),i},r.prototype.on=function(t,i,n){var a=this.get("group");return a.on(t,i,n),this},r.prototype.off=function(t,i){var n=this.get("group");return n&&n.off(t,i),this},r.prototype.emit=function(t,i){var n=this.get("group");n.emit(t,i)},r.prototype.init=function(){e.prototype.init.call(this),this.get("group")||this.initGroup(),this.offScreenRender()},r.prototype.getInnerLayoutBBox=function(){return this.get("offScreenBBox")||this.get("group").getBBox()},r.prototype.delegateEmit=function(t,i){var n=this.get("group");i.target=n,n.emit(t,i),ml(n,t,i)},r.prototype.createOffScreenGroup=function(){var t=this.get("group"),i=t.getGroupBase(),n=new i({delegateObject:this.getDelegateObject()});return n},r.prototype.applyOffset=function(){var t=this.get("offsetX"),i=this.get("offsetY");this.moveElementTo(this.get("group"),{x:t,y:i})},r.prototype.initGroup=function(){var t=this.get("container");this.set("group",t.addGroup({id:this.get("id"),name:this.get("name"),capture:this.get("capture"),visible:this.get("visible"),isComponent:!0,component:this,delegateObject:this.getDelegateObject()}))},r.prototype.offScreenRender=function(){this.clearOffScreenCache();var t=this.createOffScreenGroup();return this.renderInner(t),this.set("offScreenGroup",t),this.set("offScreenBBox",wl(t)),t},r.prototype.addGroup=function(t,i){this.appendDelegateObject(t,i);var n=t.addGroup(i);return this.get("isRegister")&&this.registerElement(n),n},r.prototype.addShape=function(t,i){this.appendDelegateObject(t,i);var n=t.addShape(i);return this.get("isRegister")&&this.registerElement(n),n},r.prototype.addComponent=function(t,i){var n=i.id,a=i.component,o=(0,g.__rest)(i,["id","component"]),s=new a((0,g.__assign)((0,g.__assign)({},o),{id:n,container:t,updateAutoRender:this.get("updateAutoRender")}));return s.init(),s.render(),this.get("isRegister")&&this.registerElement(s.get("group")),s},r.prototype.initEvent=function(){},r.prototype.removeEvent=function(){var t=this.get("group");t.off()},r.prototype.getElementId=function(t){var i=this.get("id"),n=this.get("name");return i+"-"+n+"-"+t},r.prototype.registerElement=function(t){var i=t.get("id");this.get("shapesMap")[i]=t},r.prototype.unregisterElement=function(t){var i=t.get("id");delete this.get("shapesMap")[i]},r.prototype.moveElementTo=function(t,i){var n=$a(i);t.attr("matrix",n)},r.prototype.addAnimation=function(t,i,n){var a=i.attr("opacity");(0,h.isNil)(a)&&(a=1),i.attr("opacity",0),i.animate({opacity:a},n)},r.prototype.removeAnimation=function(t,i,n){i.animate({opacity:0},n)},r.prototype.updateAnimation=function(t,i,n,a){i.animate(n,a)},r.prototype.updateElements=function(t,i){var n=this,a=this.get("animate"),o=this.get("animateOption"),s=t.getChildren().slice(0),l;(0,h.each)(s,function(u){var c=u.get("id"),f=n.getElementById(c),v=u.get("name");if(f)if(u.get("isComponent")){var d=u.get("component"),p=f.get("component"),y=(0,h.pick)(d.cfg,(0,h.difference)((0,h.keys)(d.cfg),rg));p.update(y),f.set(Rr,"update")}else{var m=n.getReplaceAttrs(f,u);a&&o.update?n.updateAnimation(v,f,m,o.update):f.attr(m),u.isGroup()&&n.updateElements(u,f),(0,h.each)(eg,function(b){f.set(b,u.get(b))}),Qd(f,u),l=f,f.set(Rr,"update")}else{i.add(u);var x=i.getChildren();if(x.splice(x.length-1,1),l){var _=x.indexOf(l);x.splice(_+1,0,u)}else x.unshift(u);if(n.registerElement(u),u.set(Rr,"add"),u.get("isComponent")){var d=u.get("component");d.set("container",i)}else u.isGroup()&&n.registerNewGroup(u);if(l=u,a){var w=n.get("isInit")?o.appear:o.enter;w&&n.addAnimation(v,u,w)}}})},r.prototype.clearUpdateStatus=function(t){var i=t.getChildren();(0,h.each)(i,function(n){n.set(Rr,null)})},r.prototype.clearOffScreenCache=function(){var t=this.get("offScreenGroup");t&&t.destroy(),this.set("offScreenGroup",null),this.set("offScreenBBox",null)},r.prototype.getDelegateObject=function(){var t,i=this.get("name"),n=(t={},t[i]=this,t.component=this,t);return n},r.prototype.appendDelegateObject=function(t,i){var n=t.get("delegateObject");i.delegateObject||(i.delegateObject={}),(0,h.mix)(i.delegateObject,n)},r.prototype.getReplaceAttrs=function(t,i){var n=t.attr(),a=i.attr();return(0,h.each)(n,function(o,s){a[s]===void 0&&(a[s]=void 0)}),a},r.prototype.registerNewGroup=function(t){var i=this,n=t.getChildren();(0,h.each)(n,function(a){i.registerElement(a),a.set(Rr,"add"),a.isGroup()&&i.registerNewGroup(a)})},r.prototype.deleteElements=function(){var t=this,i=this.get("shapesMap"),n=[];(0,h.each)(i,function(s,l){!s.get(Rr)||s.destroyed?n.push([l,s]):s.set(Rr,null)});var a=this.get("animate"),o=this.get("animateOption");(0,h.each)(n,function(s){var l=s[0],u=s[1];if(!u.destroyed){var c=u.get("name");if(a&&o.leave){var f=(0,h.mix)({callback:function(){t.removeElement(u)}},o.leave);t.removeAnimation(c,u,f)}else t.removeElement(u)}delete i[l]})},r.prototype.removeElement=function(t){if(t.get("isGroup")){var i=t.get("component");i&&i.destroy()}t.remove()},r}(Sl),Ae=ig,to="\u2026";function ng(e){for(var r=0,t=0;t0&&e.charCodeAt(r)<128?1:2}function ag(e,r,t){t===void 0&&(t="tail");var i=e.length,n="";if(t==="tail"){for(var a=0,o=0;a=19968&&s<=40869?a+=2:a+=1}a>t&&(t=a,i=n)}return e[i].getBBox().width}function eo(e){if(e.length>lg)return ug(e);var r=0;return(0,h.each)(e,function(t){var i=t.getBBox(),n=i.width;r=0?v=ag(a,f,i):v=og,v&&(r.attr("text",v),c=!0)}return c?r.set("tip",a):r.set("tip",null),c}function On(e,r){var t=r.x,i=r.y,n=r.content,a=r.style,o=r.id,s=r.name,l=r.rotate,u=r.maxLength,c=r.autoEllipsis,f=r.isVertical,v=r.ellipsisPosition,d=r.background,p=e.addGroup({id:o+"-group",name:s+"-group",attrs:{x:t,y:i}}),y=p.addShape({type:"text",id:o,name:s,attrs:(0,g.__assign)({x:0,y:0,text:n},a)}),m=Ln((0,h.get)(d,"padding",0));if(u&&c){var x=u-(m[1]+m[3]);zi(!f,y,x,v)}if(d){var _=(0,h.get)(d,"style",{}),w=y.getCanvasBBox(),b=w.minX,S=w.minY,C=w.width,A=w.height,F=p.addShape("rect",{id:o+"-bg",name:o+"-bg",attrs:(0,g.__assign)({x:b-m[3],y:S-m[0],width:C+m[1]+m[3],height:A+m[0]+m[2]},_)});F.toBack()}Qa(p,t,i),_l(p,l,t,i)}var Vt={fontFamily:` + BlinkMacSystemFont, "Segoe UI", Roboto,"Helvetica Neue", + Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", + SimSun, "sans-serif"`,textColor:"#2C3542",activeTextColor:"#333333",uncheckedColor:"#D8D8D8",lineColor:"#416180",regionColor:"#CCD7EB",verticalAxisRotate:-Math.PI/4,horizontalAxisRotate:Math.PI/4,descriptionIconStroke:"#fff",descriptionIconFill:"rgba(58, 73, 101, .25)"},hg=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{name:"annotation",type:"line",locationType:"region",start:null,end:null,style:{},text:null,defaultCfg:{style:{fill:Vt.textColor,fontSize:12,textAlign:"center",textBaseline:"bottom",fontFamily:Vt.fontFamily},text:{position:"center",autoRotate:!0,content:null,offsetX:0,offsetY:0,style:{stroke:Vt.lineColor,lineWidth:1}}}})},r.prototype.renderInner=function(t){this.renderLine(t),this.get("text")&&this.renderLabel(t)},r.prototype.renderLine=function(t){var i=this.get("start"),n=this.get("end"),a=this.get("style");this.addShape(t,{type:"line",id:this.getElementId("line"),name:"annotation-line",attrs:(0,g.__assign)({x1:i.x,y1:i.y,x2:n.x,y2:n.y},a)})},r.prototype.getLabelPoint=function(t,i,n){var a;return n==="start"?a=0:n==="center"?a=.5:(0,h.isString)(n)&&n.indexOf("%")!==-1?a=parseInt(n,10)/100:(0,h.isNumber)(n)?a=n:a=1,(a>1||a<0)&&(a=1),{x:Br(t.x,i.x,a),y:Br(t.y,i.y,a)}},r.prototype.renderLabel=function(t){var i=this.get("text"),n=this.get("start"),a=this.get("end"),o=i.position,s=i.content,l=i.style,u=i.offsetX,c=i.offsetY,f=i.autoRotate,v=i.maxLength,d=i.autoEllipsis,p=i.ellipsisPosition,y=i.background,m=i.isVertical,x=m===void 0?!1:m,_=this.getLabelPoint(n,a,o),w=_.x+u,b=_.y+c,S={id:this.getElementId("line-text"),name:"annotation-line-text",x:w,y:b,content:s,style:l,maxLength:v,autoEllipsis:d,ellipsisPosition:p,background:y,isVertical:x};if(f){var C=[a.x-n.x,a.y-n.y];S.rotate=Math.atan2(C[1],C[0])}On(t,S)},r}(Ae),fg=hg,vg=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{name:"annotation",type:"text",locationType:"point",x:0,y:0,content:"",rotate:null,style:{},background:null,maxLength:null,autoEllipsis:!0,isVertical:!1,ellipsisPosition:"tail",defaultCfg:{style:{fill:Vt.textColor,fontSize:12,textAlign:"center",textBaseline:"middle",fontFamily:Vt.fontFamily}}})},r.prototype.setLocation=function(t){this.set("x",t.x),this.set("y",t.y),this.resetLocation()},r.prototype.renderInner=function(t){var i=this.getLocation(),n=i.x,a=i.y,o=this.get("content"),s=this.get("style"),l=this.getElementId("text"),u=this.get("name")+"-text",c=this.get("maxLength"),f=this.get("autoEllipsis"),v=this.get("isVertical"),d=this.get("ellipsisPosition"),p=this.get("background"),y=this.get("rotate"),m={id:l,name:u,x:n,y:a,content:o,style:s,maxLength:c,autoEllipsis:f,isVertical:v,ellipsisPosition:d,background:p,rotate:y};On(t,m)},r.prototype.resetLocation=function(){var t=this.getElementByLocalId("text-group");if(t){var i=this.getLocation(),n=i.x,a=i.y,o=this.get("rotate");Qa(t,n,a),_l(t,o,n,a)}},r}(Ae),dg=vg,gg=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{name:"annotation",type:"arc",locationType:"circle",center:null,radius:100,startAngle:-Math.PI/2,endAngle:Math.PI*3/2,style:{stroke:"#999",lineWidth:1}})},r.prototype.renderInner=function(t){this.renderArc(t)},r.prototype.getArcPath=function(){var t=this.getLocation(),i=t.center,n=t.radius,a=t.startAngle,o=t.endAngle,s=oi(i,n,a),l=oi(i,n,o),u=o-a>Math.PI?1:0,c=[["M",s.x,s.y]];if(o-a==Math.PI*2){var f=oi(i,n,a+Math.PI);c.push(["A",n,n,0,u,1,f.x,f.y]),c.push(["A",n,n,0,u,1,l.x,l.y])}else c.push(["A",n,n,0,u,1,l.x,l.y]);return c},r.prototype.renderArc=function(t){var i=this.getArcPath(),n=this.get("style");this.addShape(t,{type:"path",id:this.getElementId("arc"),name:"annotation-arc",attrs:(0,g.__assign)({path:i},n)})},r}(Ae),pg=gg,yg=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{name:"annotation",type:"region",locationType:"region",start:null,end:null,style:{},defaultCfg:{style:{lineWidth:0,fill:Vt.regionColor,opacity:.4}}})},r.prototype.renderInner=function(t){this.renderRegion(t)},r.prototype.renderRegion=function(t){var i=this.get("start"),n=this.get("end"),a=this.get("style"),o=Ri({start:i,end:n});this.addShape(t,{type:"rect",id:this.getElementId("region"),name:"annotation-region",attrs:(0,g.__assign)({x:o.x,y:o.y,width:o.width,height:o.height},a)})},r}(Ae),mg=yg,xg=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{name:"annotation",type:"image",locationType:"region",start:null,end:null,src:null,style:{}})},r.prototype.renderInner=function(t){this.renderImage(t)},r.prototype.getImageAttrs=function(){var t=this.get("start"),i=this.get("end"),n=this.get("style"),a=Ri({start:t,end:i}),o=this.get("src");return(0,g.__assign)({x:a.x,y:a.y,img:o,width:a.width,height:a.height},n)},r.prototype.renderImage=function(t){this.addShape(t,{type:"image",id:this.getElementId("image"),name:"annotation-image",attrs:this.getImageAttrs()})},r}(Ae),_g=xg,wg=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{name:"annotation",type:"dataMarker",locationType:"point",x:0,y:0,point:{},line:{},text:{},direction:"upward",autoAdjust:!0,coordinateBBox:null,defaultCfg:{point:{display:!0,style:{r:3,fill:"#FFFFFF",stroke:"#1890FF",lineWidth:2}},line:{display:!0,length:20,style:{stroke:Vt.lineColor,lineWidth:1}},text:{content:"",display:!0,style:{fill:Vt.textColor,opacity:.65,fontSize:12,textAlign:"start",fontFamily:Vt.fontFamily}}}})},r.prototype.renderInner=function(t){(0,h.get)(this.get("line"),"display")&&this.renderLine(t),(0,h.get)(this.get("text"),"display")&&this.renderText(t),(0,h.get)(this.get("point"),"display")&&this.renderPoint(t),this.get("autoAdjust")&&this.autoAdjust(t)},r.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x")+this.get("offsetX"),y:this.get("y")+this.get("offsetY")})},r.prototype.renderPoint=function(t){var i=this.getShapeAttrs().point;this.addShape(t,{type:"circle",id:this.getElementId("point"),name:"annotation-point",attrs:i})},r.prototype.renderLine=function(t){var i=this.getShapeAttrs().line;this.addShape(t,{type:"path",id:this.getElementId("line"),name:"annotation-line",attrs:i})},r.prototype.renderText=function(t){var i=this.getShapeAttrs().text,n=i.x,a=i.y,o=i.text,s=(0,g.__rest)(i,["x","y","text"]),l=this.get("text"),u=l.background,c=l.maxLength,f=l.autoEllipsis,v=l.isVertival,d=l.ellipsisPosition,p={x:n,y:a,id:this.getElementId("text"),name:"annotation-text",content:o,style:s,background:u,maxLength:c,autoEllipsis:f,isVertival:v,ellipsisPosition:d};On(t,p)},r.prototype.autoAdjust=function(t){var i=this.get("direction"),n=this.get("x"),a=this.get("y"),o=(0,h.get)(this.get("line"),"length",0),s=this.get("coordinateBBox"),l=t.getBBox(),u=l.minX,c=l.maxX,f=l.minY,v=l.maxY,d=t.findById(this.getElementId("text-group")),p=t.findById(this.getElementId("text")),y=t.findById(this.getElementId("line"));if(!!s&&d){var m=d.attr("x"),x=d.attr("y"),_=void 0,w=void 0,b=0,S=0;if(n+u<=s.minX)if(i==="leftward")w="start",b=1;else{var C=s.minX-(n+u);m=d.attr("x")+C}else if(n+c>=s.maxX)if(i==="rightward")w="end",b=-1;else{var C=n+c-s.maxX;m=d.attr("x")-C}if(!!b&&w&&(p.attr("textAlign",w),y&&y.attr("path",[["M",0,0],["L",o*b,0]]),m=(o+2)*b),a+f<=s.minY)if(i==="upward")_="top",S=1;else{var C=s.minY-(a+f);x=d.attr("y")+C}else if(a+v>=s.maxY)if(i==="downward")_="bottom",S=-1;else{var C=a+v-s.maxY;x=d.attr("y")-C}!!S&&_&&(p.attr("textBaseline",_),y&&y.attr("path",[["M",0,0],["L",0,o*S]]),x=(o+2)*S),(m!==d.attr("x")||x!==d.attr("y"))&&Qa(d,m,x)}},r.prototype.getShapeAttrs=function(){var t=(0,h.get)(this.get("line"),"display"),i=(0,h.get)(this.get("point"),"style",{}),n=(0,h.get)(this.get("line"),"style",{}),a=(0,h.get)(this.get("text"),"style",{}),o=this.get("direction"),s=t?(0,h.get)(this.get("line"),"length",0):0,l=0,u=0,c="top",f="start";switch(o){case"upward":u=-1,c="bottom";break;case"downward":u=1,c="top";break;case"leftward":l=-1,f="end";break;case"rightward":l=1,f="start";break}return{point:(0,g.__assign)({x:0,y:0},i),line:(0,g.__assign)({path:[["M",0,0],["L",0,s*l,s*u]]},n),text:(0,g.__assign)({x:(s+2)*l,y:(s+2)*u,text:(0,h.get)(this.get("text"),"content",""),textBaseline:c,textAlign:f},a)}},r}(Ae),bg=wg,Sg=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{name:"annotation",type:"dataRegion",locationType:"points",points:[],lineLength:0,region:{},text:{},defaultCfg:{region:{style:{lineWidth:0,fill:Vt.regionColor,opacity:.4}},text:{content:"",style:{textAlign:"center",textBaseline:"bottom",fontSize:12,fill:Vt.textColor,fontFamily:Vt.fontFamily}}}})},r.prototype.renderInner=function(t){var i=(0,h.get)(this.get("region"),"style",{}),n=(0,h.get)(this.get("text"),"style",{}),a=this.get("lineLength")||0,o=this.get("points");if(!!o.length){var s=qd(o),l=[];l.push(["M",o[0].x,s.minY-a]),o.forEach(function(c){l.push(["L",c.x,c.y])}),l.push(["L",o[o.length-1].x,o[o.length-1].y-a]),this.addShape(t,{type:"path",id:this.getElementId("region"),name:"annotation-region",attrs:(0,g.__assign)({path:l},i)});var u=(0,g.__assign)({id:this.getElementId("text"),name:"annotation-text",x:(s.minX+s.maxX)/2,y:s.minY-a},this.get("text"));On(t,u)}},r}(Ae),Cg=Sg,Ag=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{name:"annotation",type:"regionFilter",locationType:"region",start:null,end:null,color:null,shape:[]})},r.prototype.renderInner=function(t){var i=this,n=this.get("start"),a=this.get("end"),o=this.addGroup(t,{id:this.getElementId("region-filter"),capture:!1});(0,h.each)(this.get("shapes"),function(l,u){var c=l.get("type"),f=(0,h.clone)(l.attr());i.adjustShapeAttrs(f),i.addShape(o,{id:i.getElementId("shape-"+c+"-"+u),capture:!1,type:c,attrs:f})});var s=Ri({start:n,end:a});o.setClip({type:"rect",attrs:{x:s.minX,y:s.minY,width:s.width,height:s.height}})},r.prototype.adjustShapeAttrs=function(t){var i=this.get("color");t.fill&&(t.fill=t.fillStyle=i),t.stroke=t.strokeStyle=i},r}(Ae),Mg=Ag,Fg=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{name:"annotation",type:"shape",draw:h.noop})},r.prototype.renderInner=function(t){var i=this.get("render");(0,h.isFunction)(i)&&i(t)},r}(Ae),Eg=Fg;function Ie(e,r,t){var i;try{i=window.getComputedStyle?window.getComputedStyle(e,null)[r]:e.style[r]}catch(n){}finally{i=i===void 0?t:i}return i}function Tg(e,r){var t=Ie(e,"width",r);return t==="auto"&&(t=e.offsetWidth),parseFloat(t)}function Lg(e,r){var t=Tg(e,r),i=parseFloat(Ie(e,"borderLeftWidth"))||0,n=parseFloat(Ie(e,"paddingLeft"))||0,a=parseFloat(Ie(e,"paddingRight"))||0,o=parseFloat(Ie(e,"borderRightWidth"))||0,s=parseFloat(Ie(e,"marginRight"))||0,l=parseFloat(Ie(e,"marginLeft"))||0;return t+i+o+n+a+l+s}function Ig(e,r){var t=Ie(e,"height",r);return t==="auto"&&(t=e.offsetHeight),parseFloat(t)}function Og(e,r){var t=Ig(e,r),i=parseFloat(Ie(e,"borderTopWidth"))||0,n=parseFloat(Ie(e,"paddingTop"))||0,a=parseFloat(Ie(e,"paddingBottom"))||0,o=parseFloat(Ie(e,"borderBottomWidth"))||0,s=parseFloat(Ie(e,"marginTop"))||0,l=parseFloat(Ie(e,"marginBottom"))||0;return t+i+o+n+a+s+l}var Pg=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{container:null,containerTpl:"
    ",updateAutoRender:!0,containerClassName:"",parent:null})},r.prototype.getContainer=function(){return this.get("container")},r.prototype.show=function(){var t=this.get("container");t.style.display="",this.set("visible",!0)},r.prototype.hide=function(){var t=this.get("container");t.style.display="none",this.set("visible",!1)},r.prototype.setCapture=function(t){var i=this.getContainer(),n=t?"auto":"none";i.style.pointerEvents=n,this.set("capture",t)},r.prototype.getBBox=function(){var t=this.getContainer(),i=parseFloat(t.style.left)||0,n=parseFloat(t.style.top)||0;return Ni(i,n,t.clientWidth,t.clientHeight)},r.prototype.clear=function(){var t=this.get("container");Ja(t)},r.prototype.destroy=function(){this.removeEvent(),this.removeDom(),e.prototype.destroy.call(this)},r.prototype.init=function(){e.prototype.init.call(this),this.initContainer(),this.initDom(),this.resetStyles(),this.applyStyles(),this.initEvent(),this.initCapture(),this.initVisible()},r.prototype.initCapture=function(){this.setCapture(this.get("capture"))},r.prototype.initVisible=function(){this.get("visible")?this.show():this.hide()},r.prototype.initDom=function(){},r.prototype.initContainer=function(){var t=this.get("container");if((0,h.isNil)(t)){t=this.createDom();var i=this.get("parent");(0,h.isString)(i)&&(i=document.getElementById(i),this.set("parent",i)),i.appendChild(t),this.get("containerId")&&t.setAttribute("id",this.get("containerId")),this.set("container",t)}else(0,h.isString)(t)&&(t=document.getElementById(t),this.set("container",t));this.get("parent")||this.set("parent",t.parentNode)},r.prototype.resetStyles=function(){var t=this.get("domStyles"),i=this.get("defaultStyles");t?t=(0,h.deepMix)({},i,t):t=i,this.set("domStyles",t)},r.prototype.applyStyles=function(){var t=this.get("domStyles");if(!!t){var i=this.getContainer();this.applyChildrenStyles(i,t);var n=this.get("containerClassName");if(n&&Zd(i,n)){var a=t[n];(0,k.Z)(i,a)}}},r.prototype.applyChildrenStyles=function(t,i){(0,h.each)(i,function(n,a){var o=t.getElementsByClassName(a);(0,h.each)(o,function(s){(0,k.Z)(s,n)})})},r.prototype.applyStyle=function(t,i){var n=this.get("domStyles");(0,k.Z)(i,n[t])},r.prototype.createDom=function(){var t=this.get("containerTpl");return(0,T.Z)(t)},r.prototype.initEvent=function(){},r.prototype.removeDom=function(){var t=this.get("container");t&&t.parentNode&&t.parentNode.removeChild(t)},r.prototype.removeEvent=function(){},r.prototype.updateInner=function(t){(0,h.hasKey)(t,"domStyles")&&(this.resetStyles(),this.applyStyles()),this.resetPosition()},r.prototype.resetPosition=function(){},r}(Sl),ro=Pg,kg=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{name:"annotation",type:"html",locationType:"point",x:0,y:0,containerTpl:'
    ',alignX:"left",alignY:"top",html:"",zIndex:7})},r.prototype.render=function(){var t=this.getContainer(),i=this.get("html");Ja(t);var n=(0,h.isFunction)(i)?i(t):i;if((0,h.isElement)(n))t.appendChild(n);else if((0,h.isString)(n)||(0,h.isNumber)(n)){var a=(0,T.Z)(""+n);a&&t.appendChild(a)}this.resetPosition()},r.prototype.resetPosition=function(){var t=this.getContainer(),i=this.getLocation(),n=i.x,a=i.y,o=this.get("alignX"),s=this.get("alignY"),l=this.get("offsetX"),u=this.get("offsetY"),c=Lg(t),f=Og(t),v={x:n,y:a};o==="middle"?v.x-=Math.round(c/2):o==="right"&&(v.x-=Math.round(c)),s==="middle"?v.y-=Math.round(f/2):s==="bottom"&&(v.y-=Math.round(f)),l&&(v.x+=l),u&&(v.y+=u),(0,k.Z)(t,{position:"absolute",left:v.x+"px",top:v.y+"px",zIndex:this.get("zIndex")})},r}(ro),Dg=kg;function Vi(e,r,t){var i=r+"Style",n=null;return(0,h.each)(t,function(a,o){e[o]&&a[i]&&(n||(n={}),(0,h.mix)(n,a[i]))}),n}var Bg=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{name:"axis",ticks:[],line:{},tickLine:{},subTickLine:null,title:null,label:{},verticalFactor:1,verticalLimitLength:null,overlapOrder:["autoRotate","autoEllipsis","autoHide"],tickStates:{},optimize:{},defaultCfg:{line:{style:{lineWidth:1,stroke:Vt.lineColor}},tickLine:{style:{lineWidth:1,stroke:Vt.lineColor},alignTick:!0,length:5,displayWithLabel:!0},subTickLine:{style:{lineWidth:1,stroke:Vt.lineColor},count:4,length:2},label:{autoRotate:!0,autoHide:!1,autoEllipsis:!1,style:{fontSize:12,fill:Vt.textColor,fontFamily:Vt.fontFamily,fontWeight:"normal"},offset:10,offsetX:0,offsetY:0},title:{autoRotate:!0,spacing:5,position:"center",style:{fontSize:12,fill:Vt.textColor,textBaseline:"middle",fontFamily:Vt.fontFamily,textAlign:"center"},iconStyle:{fill:Vt.descriptionIconFill,stroke:Vt.descriptionIconStroke},description:""},tickStates:{active:{labelStyle:{fontWeight:500},tickLineStyle:{lineWidth:2}},inactive:{labelStyle:{fill:Vt.uncheckedColor}}},optimize:{enable:!0,threshold:400}},theme:{}})},r.prototype.renderInner=function(t){this.get("line")&&this.drawLine(t),this.drawTicks(t),this.get("title")&&this.drawTitle(t)},r.prototype.isList=function(){return!0},r.prototype.getItems=function(){return this.get("ticks")},r.prototype.setItems=function(t){this.update({ticks:t})},r.prototype.updateItem=function(t,i){(0,h.mix)(t,i),this.clear(),this.render()},r.prototype.clearItems=function(){var t=this.getElementByLocalId("label-group");t&&t.clear()},r.prototype.setItemState=function(t,i,n){t[i]=n,this.updateTickStates(t)},r.prototype.hasState=function(t,i){return!!t[i]},r.prototype.getItemStates=function(t){var i=this.get("tickStates"),n=[];return(0,h.each)(i,function(a,o){t[o]&&n.push(o)}),n},r.prototype.clearItemsState=function(t){var i=this,n=this.getItemsByState(t);(0,h.each)(n,function(a){i.setItemState(a,t,!1)})},r.prototype.getItemsByState=function(t){var i=this,n=this.getItems();return(0,h.filter)(n,function(a){return i.hasState(a,t)})},r.prototype.getSidePoint=function(t,i){var n=this,a=n.getSideVector(i,t);return{x:t.x+a[0],y:t.y+a[1]}},r.prototype.getTextAnchor=function(t){var i;return(0,h.isNumberEqual)(t[0],0)?i="center":t[0]>0?i="start":t[0]<0&&(i="end"),i},r.prototype.getTextBaseline=function(t){var i;return(0,h.isNumberEqual)(t[1],0)?i="middle":t[1]>0?i="top":t[1]<0&&(i="bottom"),i},r.prototype.processOverlap=function(t){},r.prototype.drawLine=function(t){var i=this.getLinePath(),n=this.get("line");this.addShape(t,{type:"path",id:this.getElementId("line"),name:"axis-line",attrs:(0,h.mix)({path:i},n.style)})},r.prototype.getTickLineItems=function(t){var i=this,n=[],a=this.get("tickLine"),o=a.alignTick,s=a.length,l=1,u=t.length;return u>=2&&(l=t[1].value-t[0].value),(0,h.each)(t,function(c){var f=c.point;o||(f=i.getTickPoint(c.value-l/2));var v=i.getSidePoint(f,s);n.push({startPoint:f,tickValue:c.value,endPoint:v,tickId:c.id,id:"tickline-"+c.id})}),n},r.prototype.getSubTickLineItems=function(t){var i=[],n=this.get("subTickLine"),a=n.count,o=t.length;if(o>=2)for(var s=0;s0){var n=(0,h.size)(i);if(n>t.threshold){var a=Math.ceil(n/t.threshold),o=i.filter(function(s,l){return l%a==0});this.set("ticks",o),this.set("originalTicks",i)}}},r.prototype.getLabelAttrs=function(t,i,n){var a=this.get("label"),o=a.offset,s=a.offsetX,l=a.offsetY,u=a.rotate,c=a.formatter,f=this.getSidePoint(t.point,o),v=this.getSideVector(o,f),d=c?c(t.name,t,i):t.name,p=a.style;p=(0,h.isFunction)(p)?(0,h.get)(this.get("theme"),["label","style"],{}):p;var y=(0,h.mix)({x:f.x+s,y:f.y+l,text:d,textAlign:this.getTextAnchor(v),textBaseline:this.getTextBaseline(v)},p);return u&&(y.matrix=Dr(f,u)),y},r.prototype.drawLabels=function(t){var i=this,n=this.get("ticks"),a=this.addGroup(t,{name:"axis-label-group",id:this.getElementId("label-group")});(0,h.each)(n,function(v,d){i.addShape(a,{type:"text",name:"axis-label",id:i.getElementId("label-"+v.id),attrs:i.getLabelAttrs(v,d,n),delegateObject:{tick:v,item:v,index:d}})}),this.processOverlap(a);var o=a.getChildren(),s=(0,h.get)(this.get("theme"),["label","style"],{}),l=this.get("label"),u=l.style,c=l.formatter;if((0,h.isFunction)(u)){var f=o.map(function(v){return(0,h.get)(v.get("delegateObject"),"tick")});(0,h.each)(o,function(v,d){var p=v.get("delegateObject").tick,y=c?c(p.name,p,d):p.name,m=(0,h.mix)({},s,u(y,d,f));v.attr(m)})}},r.prototype.getTitleAttrs=function(){var t=this.get("title"),i=t.style,n=t.position,a=t.offset,o=t.spacing,s=o===void 0?0:o,l=t.autoRotate,u=i.fontSize,c=.5;n==="start"?c=0:n==="end"&&(c=1);var f=this.getTickPoint(c),v=this.getSidePoint(f,a||s+u/2),d=(0,h.mix)({x:v.x,y:v.y,text:t.text},i),p=t.rotate,y=p;if((0,h.isNil)(p)&&l){var m=this.getAxisVector(f),x=[1,0];y=ie.Dg(m,x,!0)}if(y){var _=Dr(v,y);d.matrix=_}return d},r.prototype.drawTitle=function(t){var i,n=this.getTitleAttrs(),a=this.addShape(t,{type:"text",id:this.getElementId("title"),name:"axis-title",attrs:n});((i=this.get("title"))===null||i===void 0?void 0:i.description)&&this.drawDescriptionIcon(t,a,n.matrix)},r.prototype.drawDescriptionIcon=function(t,i,n){var a=this.addGroup(t,{name:"axis-description",id:this.getElementById("description")}),o=i.getBBox(),s=o.maxX,l=o.maxY,u=o.height,c=this.get("title").iconStyle,f=4,v=u/2,d=v/6,p=s+f,y=l-u/2,m=[p+v,y-v],x=m[0],_=m[1],w=[x+v,_+v],b=w[0],S=w[1],C=[x,S+v],A=C[0],F=C[1],P=[p,_+v],I=P[0],V=P[1],Z=[p+v,y-u/4],vt=Z[0],yt=Z[1],Bt=[vt,yt+d],G=Bt[0],at=Bt[1],mt=[G,at+d],ut=mt[0],pt=mt[1],At=[ut,pt+v*3/4],Gt=At[0],Wt=At[1];this.addShape(a,{type:"path",id:this.getElementId("title-description-icon"),name:"axis-title-description-icon",attrs:(0,g.__assign)({path:[["M",x,_],["A",v,v,0,0,1,b,S],["A",v,v,0,0,1,A,F],["A",v,v,0,0,1,I,V],["A",v,v,0,0,1,x,_],["M",vt,yt],["L",G,at],["M",ut,pt],["L",Gt,Wt]],lineWidth:d,matrix:n},c)}),this.addShape(a,{type:"rect",id:this.getElementId("title-description-rect"),name:"axis-title-description-rect",attrs:{x:p,y:y-u/2,width:u,height:u,stroke:"#000",fill:"#000",opacity:0,matrix:n,cursor:"pointer"}})},r.prototype.applyTickStates=function(t,i){var n=this.getItemStates(t);if(n.length){var a=this.get("tickStates"),o=this.getElementId("label-"+t.id),s=i.findById(o);if(s){var l=Vi(t,"label",a);l&&s.attr(l)}var u=this.getElementId("tickline-"+t.id),c=i.findById(u);if(c){var f=Vi(t,"tickLine",a);f&&c.attr(f)}}},r.prototype.updateTickStates=function(t){var i=this.getItemStates(t),n=this.get("tickStates"),a=this.get("label"),o=this.getElementByLocalId("label-"+t.id),s=this.get("tickLine"),l=this.getElementByLocalId("tickline-"+t.id);if(i.length){if(o){var u=Vi(t,"label",n);u&&o.attr(u)}if(l){var c=Vi(t,"tickLine",n);c&&l.attr(c)}}else o&&o.attr(a.style),l&&l.attr(s.style)},r}(Ae),Cl=Bg;function io(e,r,t,i){var n=r.getChildren(),a=!1;return(0,h.each)(n,function(o){var s=zi(e,o,t,i);a=a||s}),a}function Rg(){return Al}function Ng(e,r,t){return io(e,r,t,"head")}function Al(e,r,t){return io(e,r,t,"tail")}function zg(e,r,t){return io(e,r,t,"middle")}function Vg(e){var r=e.attr("matrix");return r&&r[0]!==1}function Ml(e){var r=Vg(e)?Ud(e.attr("matrix")):0;return r%360}function no(e,r,t,i){var n=!1,a=Ml(r),o=Math.abs(e?t.attr("y")-r.attr("y"):t.attr("x")-r.attr("x")),s=(e?t.attr("y")>r.attr("y"):t.attr("x")>r.attr("x"))?r.getBBox():t.getBBox();if(e){var l=Math.abs(Math.cos(a));In(l,0,Math.PI/180)?n=s.width+i>o:n=s.height/l+i>o}else{var l=Math.abs(Math.sin(a));In(l,0,Math.PI/180)?n=s.width+i>o:n=s.height/l+i>o}return n}function Gi(e,r,t,i){var n=(i==null?void 0:i.minGap)||0,a=r.getChildren().slice().filter(function(p){return p.get("visible")});if(!a.length)return!1;var o=!1;t&&a.reverse();for(var s=a.length,l=a[0],u=l,c=1;c1){v=Math.ceil(v);for(var y=0;y2){var o=n[0],s=n[n.length-1];o.get("visible")||(o.show(),Gi(e,r,!1,i)&&(a=!0)),s.get("visible")||(s.show(),Gi(e,r,!0,i)&&(a=!0))}return a}function Ug(e,r){(0,h.each)(e,function(t){var i=t.attr("x"),n=t.attr("y"),a=Dr({x:i,y:n},r);t.attr("matrix",a)})}function Tl(e,r,t,i){var n=r.getChildren();if(!n.length||!e&&n.length<2)return!1;var a=eo(n),o=!1;if(e)o=!!t&&a>t;else{var s=Math.abs(n[1].attr("x")-n[0].attr("x"));o=a>s}if(o){var l=i(t,a);Ug(n,l)}return o}function jg(){return Ll}function Ll(e,r,t,i){return Tl(e,r,t,function(){return(0,h.isNumber)(i)?i:e?Vt.verticalAxisRotate:Vt.horizontalAxisRotate})}function Zg(e,r,t){return Tl(e,r,t,function(i,n){if(!i)return e?Vt.verticalAxisRotate:Vt.horizontalAxisRotate;if(e)return-Math.acos(i/n);var a=0;return i>n?a=Math.PI/4:(a=Math.asin(i/n),a>Math.PI/4&&(a=Math.PI/4)),a})}var qg=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{type:"line",locationType:"region",start:null,end:null})},r.prototype.getLinePath=function(){var t=this.get("start"),i=this.get("end"),n=[];return n.push(["M",t.x,t.y]),n.push(["L",i.x,i.y]),n},r.prototype.getInnerLayoutBBox=function(){var t=this.get("start"),i=this.get("end"),n=e.prototype.getInnerLayoutBBox.call(this),a=Math.min(t.x,i.x,n.x),o=Math.min(t.y,i.y,n.y),s=Math.max(t.x,i.x,n.maxX),l=Math.max(t.y,i.y,n.maxY);return{x:a,y:o,minX:a,minY:o,maxX:s,maxY:l,width:s-a,height:l-o}},r.prototype.isVertical=function(){var t=this.get("start"),i=this.get("end");return(0,h.isNumberEqual)(t.x,i.x)},r.prototype.isHorizontal=function(){var t=this.get("start"),i=this.get("end");return(0,h.isNumberEqual)(t.y,i.y)},r.prototype.getTickPoint=function(t){var i=this,n=i.get("start"),a=i.get("end"),o=a.x-n.x,s=a.y-n.y;return{x:n.x+o*t,y:n.y+s*t}},r.prototype.getSideVector=function(t){var i=this.getAxisVector(),n=Lt.normalize([0,0],i),a=this.get("verticalFactor"),o=[n[1],n[0]*-1];return Lt.scale([0,0],o,t*a)},r.prototype.getAxisVector=function(){var t=this.get("start"),i=this.get("end");return[i.x-t.x,i.y-t.y]},r.prototype.processOverlap=function(t){var i=this,n=this.isVertical(),a=this.isHorizontal();if(!(!n&&!a)){var o=this.get("label"),s=this.get("title"),l=this.get("verticalLimitLength"),u=o.offset,c=l,f=0,v=0;s&&(f=s.style.fontSize,v=s.spacing),c&&(c=c-u-v-f);var d=this.get("overlapOrder");if((0,h.each)(d,function(m){o[m]&&i.canProcessOverlap(m)&&i.autoProcessOverlap(m,o[m],t,c)}),s&&(0,h.isNil)(s.offset)){var p=t.getCanvasBBox(),y=n?p.width:p.height;s.offset=u+y+v+f/2}}},r.prototype.canProcessOverlap=function(t){var i=this.get("label");return t==="autoRotate"?(0,h.isNil)(i.rotate):!0},r.prototype.autoProcessOverlap=function(t,i,n,a){var o=this,s=this.isVertical(),l=!1,u=ft[t];if(i===!0){var c=this.get("label");l=u.getDefault()(s,n,a)}else if((0,h.isFunction)(i))l=i(s,n,a);else if((0,h.isObject)(i)){var f=i;u[f.type]&&(l=u[f.type](s,n,a,f.cfg))}else u[i]&&(l=u[i](s,n,a));if(t==="autoRotate"){if(l){var v=n.getChildren(),d=this.get("verticalFactor");(0,h.each)(v,function(y){var m=y.attr("textAlign");if(m==="center"){var x=d>0?"end":"start";y.attr("textAlign",x)}})}}else if(t==="autoHide"){var p=n.getChildren().slice(0);(0,h.each)(p,function(y){y.get("visible")||(o.get("isRegister")&&o.unregisterElement(y),y.remove())})}},r}(Cl),Kg=qg,$g=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{type:"circle",locationType:"circle",center:null,radius:null,startAngle:-Math.PI/2,endAngle:Math.PI*3/2})},r.prototype.getLinePath=function(){var t=this.get("center"),i=t.x,n=t.y,a=this.get("radius"),o=a,s=this.get("startAngle"),l=this.get("endAngle"),u=[];if(Math.abs(l-s)===Math.PI*2)u=[["M",i,n-o],["A",a,o,0,1,1,i,n+o],["A",a,o,0,1,1,i,n-o],["Z"]];else{var c=this.getCirclePoint(s),f=this.getCirclePoint(l),v=Math.abs(l-s)>Math.PI?1:0,d=s>l?0:1;u=[["M",i,n],["L",c.x,c.y],["A",a,o,0,v,d,f.x,f.y],["L",i,n]]}return u},r.prototype.getTickPoint=function(t){var i=this.get("startAngle"),n=this.get("endAngle"),a=i+(n-i)*t;return this.getCirclePoint(a)},r.prototype.getSideVector=function(t,i){var n=this.get("center"),a=[i.x-n.x,i.y-n.y],o=this.get("verticalFactor"),s=Lt.length(a);return Lt.scale(a,a,o*t/s),a},r.prototype.getAxisVector=function(t){var i=this.get("center"),n=[t.x-i.x,t.y-i.y];return[n[1],-1*n[0]]},r.prototype.getCirclePoint=function(t,i){var n=this.get("center");return i=i||this.get("radius"),{x:n.x+Math.cos(t)*i,y:n.y+Math.sin(t)*i}},r.prototype.canProcessOverlap=function(t){var i=this.get("label");return t==="autoRotate"?(0,h.isNil)(i.rotate):!0},r.prototype.processOverlap=function(t){var i=this,n=this.get("label"),a=this.get("title"),o=this.get("verticalLimitLength"),s=n.offset,l=o,u=0,c=0;a&&(u=a.style.fontSize,c=a.spacing),l&&(l=l-s-c-u);var f=this.get("overlapOrder");if((0,h.each)(f,function(d){n[d]&&i.canProcessOverlap(d)&&i.autoProcessOverlap(d,n[d],t,l)}),a&&(0,h.isNil)(a.offset)){var v=t.getCanvasBBox().height;a.offset=s+v+c+u/2}},r.prototype.autoProcessOverlap=function(t,i,n,a){var o=this,s=!1,l=ft[t];if(a>0)if(i===!0)s=l.getDefault()(!1,n,a);else if((0,h.isFunction)(i))s=i(!1,n,a);else if((0,h.isObject)(i)){var u=i;l[u.type]&&(s=l[u.type](!1,n,a,u.cfg))}else l[i]&&(s=l[i](!1,n,a));if(t==="autoRotate"){if(s){var c=n.getChildren(),f=this.get("verticalFactor");(0,h.each)(c,function(d){var p=d.attr("textAlign");if(p==="center"){var y=f>0?"end":"start";d.attr("textAlign",y)}})}}else if(t==="autoHide"){var v=n.getChildren().slice(0);(0,h.each)(v,function(d){d.get("visible")||(o.get("isRegister")&&o.unregisterElement(d),d.remove())})}},r}(Cl),Qg=$g,Jg=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{name:"crosshair",type:"base",line:{},text:null,textBackground:{},capture:!1,defaultCfg:{line:{style:{lineWidth:1,stroke:Vt.lineColor}},text:{position:"start",offset:10,autoRotate:!1,content:null,style:{fill:Vt.textColor,textAlign:"center",textBaseline:"middle",fontFamily:Vt.fontFamily}},textBackground:{padding:5,style:{stroke:Vt.lineColor}}}})},r.prototype.renderInner=function(t){this.get("line")&&this.renderLine(t),this.get("text")&&(this.renderText(t),this.renderBackground(t))},r.prototype.renderText=function(t){var i=this.get("text"),n=i.style,a=i.autoRotate,o=i.content;if(!(0,h.isNil)(o)){var s=this.getTextPoint(),l=null;if(a){var u=this.getRotateAngle();l=Dr(s,u)}this.addShape(t,{type:"text",name:"crosshair-text",id:this.getElementId("text"),attrs:(0,g.__assign)((0,g.__assign)((0,g.__assign)({},s),{text:o,matrix:l}),n)})}},r.prototype.renderLine=function(t){var i=this.getLinePath(),n=this.get("line"),a=n.style;this.addShape(t,{type:"path",name:"crosshair-line",id:this.getElementId("line"),attrs:(0,g.__assign)({path:i},a)})},r.prototype.renderBackground=function(t){var i=this.getElementId("text"),n=t.findById(i),a=this.get("textBackground");if(a&&n){var o=n.getBBox(),s=Ln(a.padding),l=a.style,u=this.addShape(t,{type:"rect",name:"crosshair-text-background",id:this.getElementId("text-background"),attrs:(0,g.__assign)({x:o.x-s[3],y:o.y-s[0],width:o.width+s[1]+s[3],height:o.height+s[0]+s[2],matrix:n.attr("matrix")},l)});u.toBack()}},r}(Ae),ao=Jg,tp=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{type:"line",locationType:"region",start:null,end:null})},r.prototype.getRotateAngle=function(){var t=this.getLocation(),i=t.start,n=t.end,a=this.get("text").position,o=Math.atan2(n.y-i.y,n.x-i.x),s=a==="start"?o-Math.PI/2:o+Math.PI/2;return s},r.prototype.getTextPoint=function(){var t=this.getLocation(),i=t.start,n=t.end,a=this.get("text"),o=a.position,s=a.offset;return bl(i,n,o,s)},r.prototype.getLinePath=function(){var t=this.getLocation(),i=t.start,n=t.end;return[["M",i.x,i.y],["L",n.x,n.y]]},r}(ao),Il=tp,ep=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{type:"circle",locationType:"circle",center:null,radius:100,startAngle:-Math.PI/2,endAngle:Math.PI*3/2})},r.prototype.getRotateAngle=function(){var t=this.getLocation(),i=t.startAngle,n=t.endAngle,a=this.get("text").position,o=a==="start"?i+Math.PI/2:n-Math.PI/2;return o},r.prototype.getTextPoint=function(){var t=this.get("text"),i=t.position,n=t.offset,a=this.getLocation(),o=a.center,s=a.radius,l=a.startAngle,u=a.endAngle,c=i==="start"?l:u,f=this.getRotateAngle()-Math.PI,v=oi(o,s,c),d=Math.cos(f)*n,p=Math.sin(f)*n;return{x:v.x+d,y:v.y+p}},r.prototype.getLinePath=function(){var t=this.getLocation(),i=t.center,n=t.radius,a=t.startAngle,o=t.endAngle,s=null;if(o-a==Math.PI*2){var l=i.x,u=i.y;s=[["M",l,u-n],["A",n,n,0,1,1,l,u+n],["A",n,n,0,1,1,l,u-n],["Z"]]}else{var c=oi(i,n,a),f=oi(i,n,o),v=Math.abs(o-a)>Math.PI?1:0,d=a>o?0:1;s=[["M",c.x,c.y],["A",n,n,0,v,d,f.x,f.y]]}return s},r}(ao),rp=ep,Wi="g2-crosshair",oo=Wi+"-line",so=Wi+"-text",Hi,ip=(Hi={},Hi[""+Wi]={position:"relative"},Hi[""+oo]={position:"absolute",backgroundColor:"rgba(0, 0, 0, 0.25)"},Hi[""+so]={position:"absolute",color:Vt.textColor,fontFamily:Vt.fontFamily},Hi),np=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{name:"crosshair",type:"html",locationType:"region",start:{x:0,y:0},end:{x:0,y:0},capture:!1,text:null,containerTpl:'
    ',crosshairTpl:'
    ',textTpl:'{content}',domStyles:null,containerClassName:Wi,defaultStyles:ip,defaultCfg:{text:{position:"start",content:null,align:"center",offset:10}}})},r.prototype.render=function(){this.resetText(),this.resetPosition()},r.prototype.initCrossHair=function(){var t=this.getContainer(),i=this.get("crosshairTpl"),n=(0,T.Z)(i);t.appendChild(n),this.applyStyle(oo,n),this.set("crosshairEl",n)},r.prototype.getTextPoint=function(){var t=this.getLocation(),i=t.start,n=t.end,a=this.get("text"),o=a.position,s=a.offset;return bl(i,n,o,s)},r.prototype.resetText=function(){var t=this.get("text"),i=this.get("textEl");if(t){var n=t.content;if(!i){var a=this.getContainer(),o=(0,h.substitute)(this.get("textTpl"),t);i=(0,T.Z)(o),a.appendChild(i),this.applyStyle(so,i),this.set("textEl",i)}i.innerHTML=n}else i&&i.remove()},r.prototype.isVertical=function(t,i){return t.x===i.x},r.prototype.resetPosition=function(){var t=this.get("crosshairEl");t||(this.initCrossHair(),t=this.get("crosshairEl"));var i=this.get("start"),n=this.get("end"),a=Math.min(i.x,n.x),o=Math.min(i.y,n.y);this.isVertical(i,n)?(0,k.Z)(t,{width:"1px",height:Le(Math.abs(n.y-i.y))}):(0,k.Z)(t,{height:"1px",width:Le(Math.abs(n.x-i.x))}),(0,k.Z)(t,{top:Le(o),left:Le(a)}),this.alignText()},r.prototype.alignText=function(){var t=this.get("textEl");if(t){var i=this.get("text").align,n=t.clientWidth,a=this.getTextPoint();switch(i){case"center":a.x=a.x-n/2;break;case"right":a.x=a.x-n;case"left":break}(0,k.Z)(t,{top:Le(a.y),left:Le(a.x)})}},r.prototype.updateInner=function(t){(0,h.hasKey)(t,"text")&&this.resetText(),e.prototype.updateInner.call(this,t)},r}(ro),ap=np,op=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{name:"grid",line:{},alternateColor:null,capture:!1,items:[],closed:!1,defaultCfg:{line:{type:"line",style:{lineWidth:1,stroke:Vt.lineColor}}}})},r.prototype.getLineType=function(){var t=this.get("line")||this.get("defaultCfg").line;return t.type},r.prototype.renderInner=function(t){this.drawGrid(t)},r.prototype.getAlternatePath=function(t,i){var n=this.getGridPath(t),a=i.slice(0).reverse(),o=this.getGridPath(a,!0),s=this.get("closed");return s?n=n.concat(o):(o[0][0]="L",n=n.concat(o),n.push(["Z"])),n},r.prototype.getPathStyle=function(){return this.get("line").style},r.prototype.drawGrid=function(t){var i=this,n=this.get("line"),a=this.get("items"),o=this.get("alternateColor"),s=null;(0,h.each)(a,function(l,u){var c=l.id||u;if(n){var f=i.getPathStyle();f=(0,h.isFunction)(f)?f(l,u,a):f;var v=i.getElementId("line-"+c),d=i.getGridPath(l.points);i.addShape(t,{type:"path",name:"grid-line",id:v,attrs:(0,h.mix)({path:d},f)})}if(o&&u>0){var p=i.getElementId("region-"+c),y=u%2==0;if((0,h.isString)(o))y&&i.drawAlternateRegion(p,t,s.points,l.points,o);else{var m=y?o[1]:o[0];i.drawAlternateRegion(p,t,s.points,l.points,m)}}s=l})},r.prototype.drawAlternateRegion=function(t,i,n,a,o){var s=this.getAlternatePath(n,a);this.addShape(i,{type:"path",id:t,name:"grid-region",attrs:{path:s,fill:o}})},r}(Ae),Ol=op;function sp(e,r,t,i){var n=t-e,a=i-r;return Math.sqrt(n*n+a*a)}var lp=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{type:"circle",center:null,closed:!0})},r.prototype.getGridPath=function(t,i){var n=this.getLineType(),a=this.get("closed"),o=[];if(t.length)if(n==="circle"){var s=this.get("center"),l=t[0],u=sp(s.x,s.y,l.x,l.y),c=i?0:1;a?(o.push(["M",s.x,s.y-u]),o.push(["A",u,u,0,0,c,s.x,s.y+u]),o.push(["A",u,u,0,0,c,s.x,s.y-u]),o.push(["Z"])):(0,h.each)(t,function(f,v){v===0?o.push(["M",f.x,f.y]):o.push(["A",u,u,0,0,c,f.x,f.y])})}else(0,h.each)(t,function(f,v){v===0?o.push(["M",f.x,f.y]):o.push(["L",f.x,f.y])}),a&&o.push(["Z"]);return o},r}(Ol),up=lp,cp=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{type:"line"})},r.prototype.getGridPath=function(t){var i=[];return(0,h.each)(t,function(n,a){a===0?i.push(["M",n.x,n.y]):i.push(["L",n.x,n.y])}),i},r}(Ol),hp=cp,fp=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{name:"legend",layout:"horizontal",locationType:"point",x:0,y:0,offsetX:0,offsetY:0,title:null,background:null})},r.prototype.getLayoutBBox=function(){var t=e.prototype.getLayoutBBox.call(this),i=this.get("maxWidth"),n=this.get("maxHeight"),a=t.width,o=t.height;return i&&(a=Math.min(a,i)),n&&(o=Math.min(o,n)),Ni(t.minX,t.minY,a,o)},r.prototype.setLocation=function(t){this.set("x",t.x),this.set("y",t.y),this.resetLocation()},r.prototype.resetLocation=function(){var t=this.get("x"),i=this.get("y"),n=this.get("offsetX"),a=this.get("offsetY");this.moveElementTo(this.get("group"),{x:t+n,y:i+a})},r.prototype.applyOffset=function(){this.resetLocation()},r.prototype.getDrawPoint=function(){return this.get("currentPoint")},r.prototype.setDrawPoint=function(t){return this.set("currentPoint",t)},r.prototype.renderInner=function(t){this.resetDraw(),this.get("title")&&this.drawTitle(t),this.drawLegendContent(t),this.get("background")&&this.drawBackground(t)},r.prototype.drawBackground=function(t){var i=this.get("background"),n=t.getBBox(),a=Ln(i.padding),o=(0,g.__assign)({x:0,y:0,width:n.width+a[1]+a[3],height:n.height+a[0]+a[2]},i.style),s=this.addShape(t,{type:"rect",id:this.getElementId("background"),name:"legend-background",attrs:o});s.toBack()},r.prototype.drawTitle=function(t){var i=this.get("currentPoint"),n=this.get("title"),a=n.spacing,o=n.style,s=n.text,l=this.addShape(t,{type:"text",id:this.getElementId("title"),name:"legend-title",attrs:(0,g.__assign)({text:s,x:i.x,y:i.y},o)}),u=l.getBBox();this.set("currentPoint",{x:i.x,y:u.maxY+a})},r.prototype.resetDraw=function(){var t=this.get("background"),i={x:0,y:0};if(t){var n=Ln(t.padding);i.x=n[3],i.y=n[0]}this.set("currentPoint",i)},r}(Ae),Pl=fp,lo={marker:{style:{inactiveFill:"#000",inactiveOpacity:.45,fill:"#000",opacity:1,size:12}},text:{style:{fill:"#ccc",fontSize:12}}},Pn={fill:Vt.textColor,fontSize:12,textAlign:"start",textBaseline:"middle",fontFamily:Vt.fontFamily,fontWeight:"normal",lineHeight:12},uo="navigation-arrow-right",co="navigation-arrow-left",kl={right:90*Math.PI/180,left:(360-90)*Math.PI/180,up:0,down:180*Math.PI/180},vp=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.currentPageIndex=1,t.totalPagesCnt=1,t.pageWidth=0,t.pageHeight=0,t.startX=0,t.startY=0,t.onNavigationBack=function(){var i=t.getElementByLocalId("item-group");if(t.currentPageIndex>1){t.currentPageIndex-=1,t.updateNavigation();var n=t.getCurrentNavigationMatrix();t.get("animate")?i.animate({matrix:n},100):i.attr({matrix:n})}},t.onNavigationAfter=function(){var i=t.getElementByLocalId("item-group");if(t.currentPageIndexm&&(m=A),d==="horizontal"?(x&&xu}if(s==="horizontal"){var F=this.get("maxRow")||1,P=d+(F===1?0:C),I=u-v-m.width-m.minX;this.pageHeight=P*F,this.pageWidth=I,(0,h.each)(l,function(Z){var vt=Z.getBBox(),yt=f||vt.width;(w&&wb&&(b=vt.width)}),S=b,b+=v,u&&(b=Math.min(u,b),S=Math.min(u,S)),this.pageWidth=b,this.pageHeight=c-Math.max(m.height,d+C);var V=Math.floor(this.pageHeight/(d+C));(0,h.each)(l,function(Z,vt){vt!==0&&vt%V==0&&(_+=1,x.x+=b,x.y=o),n.moveElementTo(Z,x),Z.getParent().setClip({type:"rect",attrs:{x:x.x,y:x.y,width:b,height:d}}),x.y+=d+C}),this.totalPagesCnt=_,this.moveElementTo(y,{x:a+S/2-m.width/2-m.minX,y:c-m.height-m.minY})}this.pageHeight&&this.pageWidth&&i.getParent().setClip({type:"rect",attrs:{x:this.startX,y:this.startY,width:this.pageWidth,height:this.pageHeight}}),s==="horizontal"&&this.get("maxRow")?this.totalPagesCnt=Math.ceil(_/this.get("maxRow")):this.totalPagesCnt=_,this.currentPageIndex>this.totalPagesCnt&&(this.currentPageIndex=1),this.updateNavigation(y),i.attr("matrix",this.getCurrentNavigationMatrix())},r.prototype.drawNavigation=function(t,i,n,a){var o={x:0,y:0},s=this.addGroup(t,{id:this.getElementId("navigation-group"),name:"legend-navigation"}),l=(0,h.get)(a.marker,"style",{}),u=l.size,c=u===void 0?12:u,f=(0,g.__rest)(l,["size"]),v=this.drawArrow(s,o,co,i==="horizontal"?"up":"left",c,f);v.on("click",this.onNavigationBack);var d=v.getBBox();o.x+=d.width+2;var p=this.addShape(s,{type:"text",id:this.getElementId("navigation-text"),name:"navigation-text",attrs:(0,g.__assign)({x:o.x,y:o.y+c/2,text:n,textBaseline:"middle"},(0,h.get)(a.text,"style"))}),y=p.getBBox();o.x+=y.width+2;var m=this.drawArrow(s,o,uo,i==="horizontal"?"down":"right",c,f);return m.on("click",this.onNavigationAfter),s},r.prototype.updateNavigation=function(t){var i=(0,h.deepMix)({},lo,this.get("pageNavigator")),n=i.marker.style,a=n.fill,o=n.opacity,s=n.inactiveFill,l=n.inactiveOpacity,u=this.currentPageIndex+"/"+this.totalPagesCnt,c=t?t.getChildren()[1]:this.getElementByLocalId("navigation-text"),f=t?t.findById(this.getElementId(co)):this.getElementByLocalId(co),v=t?t.findById(this.getElementId(uo)):this.getElementByLocalId(uo);c.attr("text",u),f.attr("opacity",this.currentPageIndex===1?l:o),f.attr("fill",this.currentPageIndex===1?s:a),f.attr("cursor",this.currentPageIndex===1?"not-allowed":"pointer"),v.attr("opacity",this.currentPageIndex===this.totalPagesCnt?l:o),v.attr("fill",this.currentPageIndex===this.totalPagesCnt?s:a),v.attr("cursor",this.currentPageIndex===this.totalPagesCnt?"not-allowed":"pointer");var d=f.getBBox().maxX+2;c.attr("x",d),d+=c.getBBox().width+2,this.updateArrowPath(v,{x:d,y:0})},r.prototype.drawArrow=function(t,i,n,a,o,s){var l=i.x,u=i.y,c=this.addShape(t,{type:"path",id:this.getElementId(n),name:n,attrs:(0,g.__assign)({size:o,direction:a,path:[["M",l+o/2,u],["L",l,u+o],["L",l+o,u+o],["Z"]],cursor:"pointer"},s)});return c.attr("matrix",Dr({x:l+o/2,y:u+o/2},kl[a])),c},r.prototype.updateArrowPath=function(t,i){var n=i.x,a=i.y,o=t.attr(),s=o.size,l=o.direction,u=Dr({x:n+s/2,y:a+s/2},kl[l]);t.attr("path",[["M",n+s/2,a],["L",n,a+s],["L",n+s,a+s],["Z"]]),t.attr("matrix",u)},r.prototype.getCurrentNavigationMatrix=function(){var t=this,i=t.currentPageIndex,n=t.pageWidth,a=t.pageHeight,o=this.get("layout"),s=o==="horizontal"?{x:0,y:a*(1-i)}:{x:n*(1-i),y:0};return $a(s)},r.prototype.applyItemStates=function(t,i){var n=this.getItemStates(t),a=n.length>0;if(a){var o=i.getChildren(),s=this.get("itemStates");(0,h.each)(o,function(l){var u=l.get("name"),c=u.split("-")[2],f=Vi(t,c,s);f&&(l.attr(f),c==="marker"&&!(l.get("isStroke")&&l.get("isFill"))&&(l.get("isStroke")&&l.attr("fill",null),l.get("isFill")&&l.attr("stroke",null)))})}},r.prototype.getLimitItemWidth=function(){var t=this.get("itemWidth"),i=this.get("maxItemWidth");return i?t&&(i=t<=i?t:i):t&&(i=t),i},r}(Pl),dp=vp,gp=1.4,Dl=.4,pp=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{type:"continue",min:0,max:100,value:null,colors:[],track:{},rail:{},label:{},handler:{},slidable:!0,tip:null,step:null,maxWidth:null,maxHeight:null,defaultCfg:{label:{align:"rail",spacing:5,formatter:null,style:{fontSize:12,fill:Vt.textColor,textBaseline:"middle",fontFamily:Vt.fontFamily}},handler:{size:10,style:{fill:"#fff",stroke:"#333"}},track:{},rail:{type:"color",size:20,defaultLength:100,style:{fill:"#DCDEE2"}},title:{spacing:5,style:{fill:Vt.textColor,fontSize:12,textAlign:"start",textBaseline:"top"}}}})},r.prototype.isSlider=function(){return!0},r.prototype.getValue=function(){return this.getCurrentValue()},r.prototype.getRange=function(){return{min:this.get("min"),max:this.get("max")}},r.prototype.setRange=function(t,i){this.update({min:t,max:i})},r.prototype.setValue=function(t){var i=this.getValue();this.set("value",t);var n=this.get("group");this.resetTrackClip(),this.get("slidable")&&this.resetHandlers(n),this.delegateEmit("valuechanged",{originValue:i,value:t})},r.prototype.initEvent=function(){var t=this.get("group");this.bindSliderEvent(t),this.bindRailEvent(t),this.bindTrackEvent(t)},r.prototype.drawLegendContent=function(t){this.drawRail(t),this.drawLabels(t),this.fixedElements(t),this.resetTrack(t),this.resetTrackClip(t),this.get("slidable")&&this.resetHandlers(t)},r.prototype.bindSliderEvent=function(t){this.bindHandlersEvent(t)},r.prototype.bindHandlersEvent=function(t){var i=this;t.on("legend-handler-min:drag",function(n){var a=i.getValueByCanvasPoint(n.x,n.y),o=i.getCurrentValue(),s=o[1];sa&&(s=a),i.setValue([s,a])})},r.prototype.bindRailEvent=function(t){},r.prototype.bindTrackEvent=function(t){var i=this,n=null;t.on("legend-track:dragstart",function(a){n={x:a.x,y:a.y}}),t.on("legend-track:drag",function(a){if(!!n){var o=i.getValueByCanvasPoint(n.x,n.y),s=i.getValueByCanvasPoint(a.x,a.y),l=i.getCurrentValue(),u=l[1]-l[0],c=i.getRange(),f=s-o;f<0?l[0]+f>c.min?i.setValue([l[0]+f,l[1]+f]):i.setValue([c.min,c.min+u]):f>0&&(f>0&&l[1]+fo&&(f=o),f0&&this.changeRailLength(a,s,n[s]-d)}},r.prototype.changeRailLength=function(t,i,n){var a=t.getBBox(),o;i==="height"?o=this.getRailPath(a.x,a.y,a.width,n):o=this.getRailPath(a.x,a.y,n,a.height),t.attr("path",o)},r.prototype.changeRailPosition=function(t,i,n){var a=t.getBBox(),o=this.getRailPath(i,n,a.width,a.height);t.attr("path",o)},r.prototype.fixedHorizontal=function(t,i,n,a){var o=this.get("label"),s=o.align,l=o.spacing,u=n.getBBox(),c=t.getBBox(),f=i.getBBox(),v=u.height;this.fitRailLength(c,f,u,n),u=n.getBBox(),s==="rail"?(t.attr({x:a.x,y:a.y+v/2}),this.changeRailPosition(n,a.x+c.width+l,a.y),i.attr({x:a.x+c.width+u.width+l*2,y:a.y+v/2})):s==="top"?(t.attr({x:a.x,y:a.y}),i.attr({x:a.x+u.width,y:a.y}),this.changeRailPosition(n,a.x,a.y+c.height+l)):(this.changeRailPosition(n,a.x,a.y),t.attr({x:a.x,y:a.y+u.height+l}),i.attr({x:a.x+u.width,y:a.y+u.height+l}))},r.prototype.fixedVertail=function(t,i,n,a){var o=this.get("label"),s=o.align,l=o.spacing,u=n.getBBox(),c=t.getBBox(),f=i.getBBox();if(this.fitRailLength(c,f,u,n),u=n.getBBox(),s==="rail")t.attr({x:a.x,y:a.y}),this.changeRailPosition(n,a.x,a.y+c.height+l),i.attr({x:a.x,y:a.y+c.height+u.height+l*2});else if(s==="right")t.attr({x:a.x+u.width+l,y:a.y}),this.changeRailPosition(n,a.x,a.y),i.attr({x:a.x+u.width+l,y:a.y+u.height});else{var v=Math.max(c.width,f.width);t.attr({x:a.x,y:a.y}),this.changeRailPosition(n,a.x+v+l,a.y),i.attr({x:a.x,y:a.y+u.height})}},r}(Pl),yp=pp,sr="g2-tooltip",lr="g2-tooltip-title",Yi="g2-tooltip-list",kn="g2-tooltip-list-item",Dn="g2-tooltip-marker",Bn="g2-tooltip-value",Bl="g2-tooltip-name",ho="g2-tooltip-crosshair-x",fo="g2-tooltip-crosshair-y",$e,mp=($e={},$e[""+sr]={position:"absolute",visibility:"visible",zIndex:8,transition:"visibility 0.2s cubic-bezier(0.23, 1, 0.32, 1), left 0.4s cubic-bezier(0.23, 1, 0.32, 1), top 0.4s cubic-bezier(0.23, 1, 0.32, 1)",backgroundColor:"rgba(255, 255, 255, 0.9)",boxShadow:"0px 0px 10px #aeaeae",borderRadius:"3px",color:"rgb(87, 87, 87)",fontSize:"12px",fontFamily:Vt.fontFamily,lineHeight:"20px",padding:"10px 10px 6px 10px"},$e[""+lr]={marginBottom:"4px"},$e[""+Yi]={margin:"0px",listStyleType:"none",padding:"0px"},$e[""+kn]={listStyleType:"none",marginBottom:"4px"},$e[""+Dn]={width:"8px",height:"8px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},$e[""+Bn]={display:"inline-block",float:"right",marginLeft:"30px"},$e[""+ho]={position:"absolute",width:"1px",backgroundColor:"rgba(0, 0, 0, 0.25)"},$e[""+fo]={position:"absolute",height:"1px",backgroundColor:"rgba(0, 0, 0, 0.25)"},$e);function xp(e,r,t,i,n){var a={left:en.x+n.width,top:rn.y+n.height};return a}function _p(e,r,t,i,n,a){var o=e,s=r;switch(a){case"left":o=e-i-t,s=r-n/2;break;case"right":o=e+t,s=r-n/2;break;case"top":o=e-i/2,s=r-n-t;break;case"bottom":o=e-i/2,s=r+t;break;default:o=e+t,s=r-n-t;break}return{x:o,y:s}}function wp(e,r,t,i,n,a,o){var s=_p(e,r,t,i,n,a);if(o){var l=xp(s.x,s.y,i,n,o);a==="auto"?(l.right&&(s.x=Math.max(0,e-i-t)),l.top&&(s.y=Math.max(0,r-n-t))):a==="top"||a==="bottom"?(l.left&&(s.x=o.x),l.right&&(s.x=o.x+o.width-i),a==="top"&&l.top&&(s.y=r+t),a==="bottom"&&l.bottom&&(s.y=r-n-t)):(l.top&&(s.y=o.y),l.bottom&&(s.y=o.y+o.height-n),a==="left"&&l.left&&(s.x=e+t),a==="right"&&l.right&&(s.x=e-i-t))}return s}function bp(e,r){var t=!1;return(0,h.each)(r,function(i){if((0,h.hasKey)(e,i))return t=!0,!1}),t}var Sp=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{name:"tooltip",type:"html",x:0,y:0,items:[],customContent:null,containerTpl:'
      ',itemTpl:'
    • + + {name}: + {value} +
    • `,xCrosshairTpl:'
      ',yCrosshairTpl:'
      ',title:null,showTitle:!0,region:null,crosshairsRegion:null,containerClassName:sr,crosshairs:null,offset:10,position:"right",domStyles:null,defaultStyles:mp})},r.prototype.render=function(){this.get("customContent")?this.renderCustomContent():(this.resetTitle(),this.renderItems()),this.resetPosition()},r.prototype.clear=function(){this.clearCrosshairs(),this.setTitle(""),this.clearItemDoms()},r.prototype.show=function(){var t=this.getContainer();!t||this.destroyed||(this.set("visible",!0),(0,k.Z)(t,{visibility:"visible"}),this.setCrossHairsVisible(!0))},r.prototype.hide=function(){var t=this.getContainer();!t||this.destroyed||(this.set("visible",!1),(0,k.Z)(t,{visibility:"hidden"}),this.setCrossHairsVisible(!1))},r.prototype.getLocation=function(){return{x:this.get("x"),y:this.get("y")}},r.prototype.setLocation=function(t){this.set("x",t.x),this.set("y",t.y),this.resetPosition()},r.prototype.setCrossHairsVisible=function(t){var i=t?"":"none",n=this.get("xCrosshairDom"),a=this.get("yCrosshairDom");n&&(0,k.Z)(n,{display:i}),a&&(0,k.Z)(a,{display:i})},r.prototype.initContainer=function(){if(e.prototype.initContainer.call(this),this.get("customContent")){this.get("container")&&this.get("container").remove();var t=this.getHtmlContentNode();this.get("parent").appendChild(t),this.set("container",t),this.resetStyles(),this.applyStyles()}},r.prototype.updateInner=function(t){this.get("customContent")?this.renderCustomContent():(bp(t,["title","showTitle"])&&this.resetTitle(),(0,h.hasKey)(t,"items")&&this.renderItems()),e.prototype.updateInner.call(this,t)},r.prototype.initDom=function(){this.cacheDoms()},r.prototype.removeDom=function(){e.prototype.removeDom.call(this),this.clearCrosshairs()},r.prototype.resetPosition=function(){var t=this.get("x"),i=this.get("y"),n=this.get("offset"),a=this.getOffset(),o=a.offsetX,s=a.offsetY,l=this.get("position"),u=this.get("region"),c=this.getContainer(),f=this.getBBox(),v=f.width,d=f.height,p;u&&(p=Ri(u));var y=wp(t,i,n,v,d,l,p);(0,k.Z)(c,{left:Le(y.x+o),top:Le(y.y+s)}),this.resetCrosshairs()},r.prototype.renderCustomContent=function(){var t=this.getHtmlContentNode(),i=this.get("parent"),n=this.get("container");n&&n.parentNode===i?i.replaceChild(t,n):i.appendChild(t),this.set("container",t),this.resetStyles(),this.applyStyles()},r.prototype.getHtmlContentNode=function(){var t,i=this.get("customContent");if(i){var n=i(this.get("title"),this.get("items"));(0,h.isElement)(n)?t=n:t=(0,T.Z)(n)}return t},r.prototype.cacheDoms=function(){var t=this.getContainer(),i=t.getElementsByClassName(lr)[0],n=t.getElementsByClassName(Yi)[0];this.set("titleDom",i),this.set("listDom",n)},r.prototype.resetTitle=function(){var t=this.get("title"),i=this.get("showTitle");i&&t?this.setTitle(t):this.setTitle("")},r.prototype.setTitle=function(t){var i=this.get("titleDom");i&&(i.innerText=t)},r.prototype.resetCrosshairs=function(){var t=this.get("crosshairsRegion"),i=this.get("crosshairs");if(!t||!i)this.clearCrosshairs();else{var n=Ri(t),a=this.get("xCrosshairDom"),o=this.get("yCrosshairDom");i==="x"?(this.resetCrosshair("x",n),o&&(o.remove(),this.set("yCrosshairDom",null))):i==="y"?(this.resetCrosshair("y",n),a&&(a.remove(),this.set("xCrosshairDom",null))):(this.resetCrosshair("x",n),this.resetCrosshair("y",n)),this.setCrossHairsVisible(this.get("visible"))}},r.prototype.resetCrosshair=function(t,i){var n=this.checkCrosshair(t),a=this.get(t);t==="x"?(0,k.Z)(n,{left:Le(a),top:Le(i.y),height:Le(i.height)}):(0,k.Z)(n,{top:Le(a),left:Le(i.x),width:Le(i.width)})},r.prototype.checkCrosshair=function(t){var i=t+"CrosshairDom",n=t+"CrosshairTpl",a="CROSSHAIR_"+t.toUpperCase(),o=et[a],s=this.get(i),l=this.get("parent");return s||(s=(0,T.Z)(this.get(n)),this.applyStyle(o,s),l.appendChild(s),this.set(i,s)),s},r.prototype.renderItems=function(){this.clearItemDoms();var t=this.get("items"),i=this.get("itemTpl"),n=this.get("listDom");n&&((0,h.each)(t,function(a){var o=xr.toCSSGradient(a.color),s=(0,g.__assign)((0,g.__assign)({},a),{color:o}),l=(0,h.substitute)(i,s),u=(0,T.Z)(l);n.appendChild(u)}),this.applyChildrenStyles(n,this.get("domStyles")))},r.prototype.clearItemDoms=function(){this.get("listDom")&&Ja(this.get("listDom"))},r.prototype.clearCrosshairs=function(){var t=this.get("xCrosshairDom"),i=this.get("yCrosshairDom");t&&t.remove(),i&&i.remove(),this.set("xCrosshairDom",null),this.set("yCrosshairDom",null)},r}(ro),Cp=Sp,Ap={opacity:0},Mp={stroke:"#C5C5C5",strokeOpacity:.85},Fp={fill:"#CACED4",opacity:.85},vo=M(80389);function Ep(e){return(0,h.map)(e,function(r,t){var i=t===0?"M":"L",n=r[0],a=r[1];return[i,n,a]})}function Rl(e){return Ep(e)}function Tp(e){if(e.length<=2)return Rl(e);var r=[];(0,h.each)(e,function(o){(0,h.isEqual)(o,r.slice(r.length-2))||r.push(o[0],o[1])});var t=(0,vo.e9)(r,!1),i=(0,h.head)(e),n=i[0],a=i[1];return t.unshift(["M",n,a]),t}function Lp(e,r,t,i){i===void 0&&(i=!0);var n=new Di.bJ({values:e}),a=new Di.WD({values:(0,h.map)(e,function(s,l){return l})}),o=(0,h.map)(e,function(s,l){return[a.scale(l)*r,t-n.scale(s)*t]});return i?Tp(o):Rl(o)}function Ip(e,r){var t=new Di.bJ({values:e}),i=t.max<0?t.max:Math.max(0,t.min);return r-t.scale(i)*r}function Op(e,r,t,i){var n=(0,g.__spreadArrays)(e),a=Ip(i,t);return n.push(["L",r,a]),n.push(["L",0,a]),n.push(["Z"]),n}var Pp=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{name:"trend",x:0,y:0,width:200,height:16,smooth:!0,isArea:!1,data:[],backgroundStyle:Ap,lineStyle:Mp,areaStyle:Fp})},r.prototype.renderInner=function(t){var i=this.cfg,n=i.width,a=i.height,o=i.data,s=i.smooth,l=i.isArea,u=i.backgroundStyle,c=i.lineStyle,f=i.areaStyle;this.addShape(t,{id:this.getElementId("background"),type:"rect",attrs:(0,g.__assign)({x:0,y:0,width:n,height:a},u)});var v=Lp(o,n,a,s);if(this.addShape(t,{id:this.getElementId("line"),type:"path",attrs:(0,g.__assign)({path:v},c)}),l){var d=Op(v,n,a,o);this.addShape(t,{id:this.getElementId("area"),type:"path",attrs:(0,g.__assign)({path:d},f)})}},r.prototype.applyOffset=function(){var t=this.cfg,i=t.x,n=t.y;this.moveElementTo(this.get("group"),{x:i,y:n})},r}(Ae),IL=null,Nl={fill:"#F7F7F7",stroke:"#BFBFBF",radius:2,opacity:1,cursor:"ew-resize",highLightFill:"#FFF"},zl=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{name:"handler",x:0,y:0,width:10,height:24,style:Nl})},r.prototype.renderInner=function(t){var i=this.cfg,n=i.width,a=i.height,o=i.style,s=o.fill,l=o.stroke,u=o.radius,c=o.opacity,f=o.cursor;this.addShape(t,{type:"rect",id:this.getElementId("background"),attrs:{x:0,y:0,width:n,height:a,fill:s,stroke:l,radius:u,opacity:c,cursor:f}});var v=1/3*n,d=2/3*n,p=1/4*a,y=3/4*a;this.addShape(t,{id:this.getElementId("line-left"),type:"line",attrs:{x1:v,y1:p,x2:v,y2:y,stroke:l,cursor:f}}),this.addShape(t,{id:this.getElementId("line-right"),type:"line",attrs:{x1:d,y1:p,x2:d,y2:y,stroke:l,cursor:f}})},r.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},r.prototype.initEvent=function(){this.bindEvents()},r.prototype.bindEvents=function(){var t=this;this.get("group").on("mouseenter",function(){var i=t.get("style").highLightFill;t.getElementByLocalId("background").attr("fill",i),t.draw()}),this.get("group").on("mouseleave",function(){var i=t.get("style").fill;t.getElementByLocalId("background").attr("fill",i),t.draw()})},r.prototype.draw=function(){var t=this.get("container").get("canvas");t&&t.draw()},r}(Ae),OL=null,kp={fill:"#416180",opacity:.05},Dp={fill:"#5B8FF9",opacity:.15,cursor:"move"},Rn=10,Bp={width:Rn,height:24},Rp={textBaseline:"middle",fill:"#000",opacity:.45},Np="sliderchange",zp=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.onMouseDown=function(i){return function(n){t.currentTarget=i;var a=n.originalEvent;a.stopPropagation(),a.preventDefault(),t.prevX=(0,h.get)(a,"touches.0.pageX",a.pageX),t.prevY=(0,h.get)(a,"touches.0.pageY",a.pageY);var o=t.getContainerDOM();o.addEventListener("mousemove",t.onMouseMove),o.addEventListener("mouseup",t.onMouseUp),o.addEventListener("mouseleave",t.onMouseUp),o.addEventListener("touchmove",t.onMouseMove),o.addEventListener("touchend",t.onMouseUp),o.addEventListener("touchcancel",t.onMouseUp)}},t.onMouseMove=function(i){var n=t.cfg.width,a=[t.get("start"),t.get("end")];i.stopPropagation(),i.preventDefault();var o=(0,h.get)(i,"touches.0.pageX",i.pageX),s=(0,h.get)(i,"touches.0.pageY",i.pageY),l=o-t.prevX,u=t.adjustOffsetRange(l/n);t.updateStartEnd(u),t.updateUI(t.getElementByLocalId("foreground"),t.getElementByLocalId("minText"),t.getElementByLocalId("maxText")),t.prevX=o,t.prevY=s,t.draw(),t.emit(Np,[t.get("start"),t.get("end")].sort()),t.delegateEmit("valuechanged",{originValue:a,value:[t.get("start"),t.get("end")]})},t.onMouseUp=function(){t.currentTarget&&(t.currentTarget=void 0);var i=t.getContainerDOM();i&&(i.removeEventListener("mousemove",t.onMouseMove),i.removeEventListener("mouseup",t.onMouseUp),i.removeEventListener("mouseleave",t.onMouseUp),i.removeEventListener("touchmove",t.onMouseMove),i.removeEventListener("touchend",t.onMouseUp),i.removeEventListener("touchcancel",t.onMouseUp))},t}return r.prototype.setRange=function(t,i){this.set("minLimit",t),this.set("maxLimit",i);var n=this.get("start"),a=this.get("end"),o=(0,h.clamp)(n,t,i),s=(0,h.clamp)(a,t,i);!this.get("isInit")&&(n!==o||a!==s)&&this.setValue([o,s])},r.prototype.getRange=function(){return{min:this.get("minLimit")||0,max:this.get("maxLimit")||1}},r.prototype.setValue=function(t){var i=this.getRange();if((0,h.isArray)(t)&&t.length===2){var n=[this.get("start"),this.get("end")];this.update({start:(0,h.clamp)(t[0],i.min,i.max),end:(0,h.clamp)(t[1],i.min,i.max)}),this.get("updateAutoRender")||this.render(),this.delegateEmit("valuechanged",{originValue:n,value:t})}},r.prototype.getValue=function(){return[this.get("start"),this.get("end")]},r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{name:"slider",x:0,y:0,width:100,height:16,backgroundStyle:{},foregroundStyle:{},handlerStyle:{},textStyle:{},defaultCfg:{backgroundStyle:kp,foregroundStyle:Dp,handlerStyle:Bp,textStyle:Rp}})},r.prototype.update=function(t){var i=t.start,n=t.end,a=(0,g.__assign)({},t);(0,h.isNil)(i)||(a.start=(0,h.clamp)(i,0,1)),(0,h.isNil)(n)||(a.end=(0,h.clamp)(n,0,1)),e.prototype.update.call(this,a),this.minHandler=this.getChildComponentById(this.getElementId("minHandler")),this.maxHandler=this.getChildComponentById(this.getElementId("maxHandler")),this.trend=this.getChildComponentById(this.getElementId("trend"))},r.prototype.init=function(){this.set("start",(0,h.clamp)(this.get("start"),0,1)),this.set("end",(0,h.clamp)(this.get("end"),0,1)),e.prototype.init.call(this)},r.prototype.render=function(){e.prototype.render.call(this),this.updateUI(this.getElementByLocalId("foreground"),this.getElementByLocalId("minText"),this.getElementByLocalId("maxText"))},r.prototype.renderInner=function(t){var i=this.cfg,n=i.start,a=i.end,o=i.width,s=i.height,l=i.trendCfg,u=l===void 0?{}:l,c=i.minText,f=i.maxText,v=i.backgroundStyle,d=v===void 0?{}:v,p=i.foregroundStyle,y=p===void 0?{}:p,m=i.textStyle,x=m===void 0?{}:m,_=(0,h.deepMix)({},Nl,this.cfg.handlerStyle),w=n*o,b=a*o;(0,h.size)((0,h.get)(u,"data"))&&(this.trend=this.addComponent(t,(0,g.__assign)({component:Pp,id:this.getElementId("trend"),x:0,y:0,width:o,height:s},u))),this.addShape(t,{id:this.getElementId("background"),type:"rect",attrs:(0,g.__assign)({x:0,y:0,width:o,height:s},d)});var S=this.addShape(t,{id:this.getElementId("minText"),type:"text",attrs:(0,g.__assign)({y:s/2,textAlign:"right",text:c,silent:!1},x)}),C=this.addShape(t,{id:this.getElementId("maxText"),type:"text",attrs:(0,g.__assign)({y:s/2,textAlign:"left",text:f,silent:!1},x)}),A=this.addShape(t,{id:this.getElementId("foreground"),name:"foreground",type:"rect",attrs:(0,g.__assign)({y:0,height:s},y)}),F=(0,h.get)(_,"width",Rn),P=(0,h.get)(_,"height",24);this.minHandler=this.addComponent(t,{component:zl,id:this.getElementId("minHandler"),name:"handler-min",x:0,y:(s-P)/2,width:F,height:P,cursor:"ew-resize",style:_}),this.maxHandler=this.addComponent(t,{component:zl,id:this.getElementId("maxHandler"),name:"handler-max",x:0,y:(s-P)/2,width:F,height:P,cursor:"ew-resize",style:_})},r.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},r.prototype.initEvent=function(){this.bindEvents()},r.prototype.updateUI=function(t,i,n){var a=this.cfg,o=a.start,s=a.end,l=a.width,u=a.minText,c=a.maxText,f=a.handlerStyle,v=a.height,d=o*l,p=s*l;this.trend&&(this.trend.update({width:l,height:v}),this.get("updateAutoRender")||this.trend.render()),t.attr("x",d),t.attr("width",p-d);var y=(0,h.get)(f,"width",Rn);i.attr("text",u),n.attr("text",c);var m=this._dodgeText([d,p],i,n),x=m[0],_=m[1];this.minHandler&&(this.minHandler.update({x:d-y/2}),this.get("updateAutoRender")||this.minHandler.render()),(0,h.each)(x,function(w,b){return i.attr(b,w)}),this.maxHandler&&(this.maxHandler.update({x:p-y/2}),this.get("updateAutoRender")||this.maxHandler.render()),(0,h.each)(_,function(w,b){return n.attr(b,w)})},r.prototype.bindEvents=function(){var t=this.get("group");t.on("handler-min:mousedown",this.onMouseDown("minHandler")),t.on("handler-min:touchstart",this.onMouseDown("minHandler")),t.on("handler-max:mousedown",this.onMouseDown("maxHandler")),t.on("handler-max:touchstart",this.onMouseDown("maxHandler"));var i=t.findById(this.getElementId("foreground"));i.on("mousedown",this.onMouseDown("foreground")),i.on("touchstart",this.onMouseDown("foreground"))},r.prototype.adjustOffsetRange=function(t){var i=this.cfg,n=i.start,a=i.end;switch(this.currentTarget){case"minHandler":{var o=0-n,s=1-n;return Math.min(s,Math.max(o,t))}case"maxHandler":{var o=0-a,s=1-a;return Math.min(s,Math.max(o,t))}case"foreground":{var o=0-n,s=1-a;return Math.min(s,Math.max(o,t))}}},r.prototype.updateStartEnd=function(t){var i=this.cfg,n=i.start,a=i.end;switch(this.currentTarget){case"minHandler":n+=t;break;case"maxHandler":a+=t;break;case"foreground":n+=t,a+=t;break}this.set("start",n),this.set("end",a)},r.prototype._dodgeText=function(t,i,n){var a,o,s=this.cfg,l=s.handlerStyle,u=s.width,c=2,f=(0,h.get)(l,"width",Rn),v=t[0],d=t[1],p=!1;v>d&&(a=[d,v],v=a[0],d=a[1],o=[n,i],i=o[0],n=o[1],p=!0);var y=i.getBBox(),m=n.getBBox(),x=y.width>v-c?{x:v+f/2+c,textAlign:"left"}:{x:v-f/2-c,textAlign:"right"},_=m.width>u-d-c?{x:d-f/2-c,textAlign:"right"}:{x:d+f/2+c,textAlign:"left"};return p?[_,x]:[x,_]},r.prototype.draw=function(){var t=this.get("container"),i=t&&t.get("canvas");i&&i.draw()},r.prototype.getContainerDOM=function(){var t=this.get("container"),i=t&&t.get("canvas");return i&&i.get("container")},r}(Ae),PL=null,si=M(57817),Vp={trackColor:"rgba(0,0,0,0)",thumbColor:"rgba(0,0,0,0.15)",size:8,lineCap:"round"},go={default:Vp,hover:{thumbColor:"rgba(0,0,0,0.2)"}},Gp=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.clearEvents=h.noop,t.onStartEvent=function(i){return function(n){t.isMobile=i,n.originalEvent.preventDefault();var a=i?(0,h.get)(n.originalEvent,"touches.0.clientX"):n.clientX,o=i?(0,h.get)(n.originalEvent,"touches.0.clientY"):n.clientY;t.startPos=t.cfg.isHorizontal?a:o,t.bindLaterEvent()}},t.bindLaterEvent=function(){var i=t.getContainerDOM(),n=[];t.isMobile?n=[(0,si.Z)(i,"touchmove",t.onMouseMove),(0,si.Z)(i,"touchend",t.onMouseUp),(0,si.Z)(i,"touchcancel",t.onMouseUp)]:n=[(0,si.Z)(i,"mousemove",t.onMouseMove),(0,si.Z)(i,"mouseup",t.onMouseUp),(0,si.Z)(i,"mouseleave",t.onMouseUp)],t.clearEvents=function(){n.forEach(function(a){a.remove()})}},t.onMouseMove=function(i){var n=t.cfg,a=n.isHorizontal,o=n.thumbOffset;i.preventDefault();var s=t.isMobile?(0,h.get)(i,"touches.0.clientX"):i.clientX,l=t.isMobile?(0,h.get)(i,"touches.0.clientY"):i.clientY,u=a?s:l,c=u-t.startPos;t.startPos=u,t.updateThumbOffset(o+c)},t.onMouseUp=function(i){i.preventDefault(),t.clearEvents()},t.onTrackClick=function(i){var n=t.cfg,a=n.isHorizontal,o=n.x,s=n.y,l=n.thumbLen,u=t.getContainerDOM(),c=u.getBoundingClientRect(),f=i.clientX,v=i.clientY,d=a?f-c.left-o-l/2:v-c.top-s-l/2,p=t.validateRange(d);t.updateThumbOffset(p)},t.onThumbMouseOver=function(){var i=t.cfg.theme.hover.thumbColor;t.getElementByLocalId("thumb").attr("stroke",i),t.draw()},t.onThumbMouseOut=function(){var i=t.cfg.theme.default.thumbColor;t.getElementByLocalId("thumb").attr("stroke",i),t.draw()},t}return r.prototype.setRange=function(t,i){this.set("minLimit",t),this.set("maxLimit",i);var n=this.getValue(),a=(0,h.clamp)(n,t,i);n!==a&&!this.get("isInit")&&this.setValue(a)},r.prototype.getRange=function(){var t=this.get("minLimit")||0,i=this.get("maxLimit")||1;return{min:t,max:i}},r.prototype.setValue=function(t){var i=this.getRange(),n=this.getValue();this.update({thumbOffset:(this.get("trackLen")-this.get("thumbLen"))*(0,h.clamp)(t,i.min,i.max)}),this.delegateEmit("valuechange",{originalValue:n,value:this.getValue()})},r.prototype.getValue=function(){return(0,h.clamp)(this.get("thumbOffset")/(this.get("trackLen")-this.get("thumbLen")),0,1)},r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{name:"scrollbar",isHorizontal:!0,minThumbLen:20,thumbOffset:0,theme:go})},r.prototype.renderInner=function(t){this.renderTrackShape(t),this.renderThumbShape(t)},r.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},r.prototype.initEvent=function(){this.bindEvents()},r.prototype.renderTrackShape=function(t){var i=this.cfg,n=i.trackLen,a=i.theme,o=a===void 0?{default:{}}:a,s=(0,h.deepMix)({},go,o).default,l=s.lineCap,u=s.trackColor,c=s.size,f=(0,h.get)(this.cfg,"size",c),v=this.get("isHorizontal")?{x1:0+f/2,y1:f/2,x2:n-f/2,y2:f/2,lineWidth:f,stroke:u,lineCap:l}:{x1:f/2,y1:0+f/2,x2:f/2,y2:n-f/2,lineWidth:f,stroke:u,lineCap:l};return this.addShape(t,{id:this.getElementId("track"),name:"track",type:"line",attrs:v})},r.prototype.renderThumbShape=function(t){var i=this.cfg,n=i.thumbOffset,a=i.thumbLen,o=i.theme,s=(0,h.deepMix)({},go,o).default,l=s.size,u=s.lineCap,c=s.thumbColor,f=(0,h.get)(this.cfg,"size",l),v=this.get("isHorizontal")?{x1:n+f/2,y1:f/2,x2:n+a-f/2,y2:f/2,lineWidth:f,stroke:c,lineCap:u,cursor:"default"}:{x1:f/2,y1:n+f/2,x2:f/2,y2:n+a-f/2,lineWidth:f,stroke:c,lineCap:u,cursor:"default"};return this.addShape(t,{id:this.getElementId("thumb"),name:"thumb",type:"line",attrs:v})},r.prototype.bindEvents=function(){var t=this.get("group");t.on("mousedown",this.onStartEvent(!1)),t.on("mouseup",this.onMouseUp),t.on("touchstart",this.onStartEvent(!0)),t.on("touchend",this.onMouseUp);var i=t.findById(this.getElementId("track"));i.on("click",this.onTrackClick);var n=t.findById(this.getElementId("thumb"));n.on("mouseover",this.onThumbMouseOver),n.on("mouseout",this.onThumbMouseOut)},r.prototype.getContainerDOM=function(){var t=this.get("container"),i=t&&t.get("canvas");return i&&i.get("container")},r.prototype.validateRange=function(t){var i=this.cfg,n=i.thumbLen,a=i.trackLen,o=t;return t+n>a?o=a-n:t+na.x?a.x:r,t=ta.y?a.y:i,n=n=i&&e<=n}function qp(e,r,t){if((0,h.isString)(e))return e.padEnd(r,t);if((0,h.isArray)(e)){var i=e.length;if(i=this.minX&&r.maxX<=this.maxX&&r.minY>=this.minY&&r.maxY<=this.maxY},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.add=function(){for(var r=[],t=0;tr.minX&&this.minYr.minY},e.prototype.size=function(){return this.width*this.height},e.prototype.isPointIn=function(r){return r.x>=this.minX&&r.x<=this.maxX&&r.y>=this.minY&&r.y<=this.maxY},e}(),kL=function(e,r){var t=r.start,i=r.end;return new Ee(e.x+e.width*t.x,e.y+e.height*t.y,e.width*Math.abs(i.x-t.x),e.height*Math.abs(i.y-t.y))};function Kp(e){return[[e.minX,e.minY],[e.maxX,e.minY],[e.maxX,e.maxY],[e.minX,e.maxY]]}function Ui(e){if(e.isPolar&&!e.isTransposed)return(e.endAngle-e.startAngle)*e.getRadius();var r=e.convert({x:0,y:0}),t=e.convert({x:1,y:0});return Math.sqrt(Math.pow(t.x-r.x,2)+Math.pow(t.y-r.y,2))}function $p(e){if(e.isPolar){var r=e.startAngle,t=e.endAngle;return t-r==Math.PI*2}return!1}function zn(e,r){var t=e.getCenter();return Math.sqrt(Math.pow(r.x-t.x,2)+Math.pow(r.y-t.y,2))}function Qp(e,r){var t=!1;if(e)if(e.type==="theta"){var i=e.start,n=e.end;t=li(r.x,i.x,n.x)&&li(r.y,i.y,n.y)}else{var a=e.invert(r);t=li(a.x,0,1)&&li(a.y,0,1)}return t}function ui(e,r){var t=e.getCenter();return Math.atan2(r.y-t.y,r.x-t.x)}function po(e,r){r===void 0&&(r=0);var t=e.start,i=e.end,n=e.getWidth(),a=e.getHeight();if(e.isPolar){var o=e.startAngle,s=e.endAngle,l=e.getCenter(),u=e.getRadius();return{type:"path",startState:{path:_r(l.x,l.y,u+r,o,o)},endState:function(f){var v=(s-o)*f+o,d=_r(l.x,l.y,u+r,o,v);return{path:d}},attrs:{path:_r(l.x,l.y,u+r,o,s)}}}var c;return e.isTransposed?c={height:a+r*2}:c={width:n+r*2},{type:"rect",startState:{x:t.x-r,y:i.y-r,width:e.isTransposed?n+r*2:0,height:e.isTransposed?0:a+r*2},endState:c,attrs:{x:t.x-r,y:i.y-r,width:n+r*2,height:a+r*2}}}function Jp(e,r){r===void 0&&(r=0);var t=e.start,i=e.end,n=e.getWidth(),a=e.getHeight(),o=Math.min(t.x,i.x),s=Math.min(t.y,i.y);return Ee.fromRange(o-r,s-r,o+n+r,s+a+r)}var ty=/^(?:(?!0000)[0-9]{4}([-/.]+)(?:(?:0?[1-9]|1[0-2])\1(?:0?[1-9]|1[0-9]|2[0-8])|(?:0?[13-9]|1[0-2])\1(?:29|30)|(?:0?[13578]|1[02])\1(?:31))|(?:[0-9]{2}(?:0[48]|[2468][048]|[13579][26])|(?:0[48]|[2468][048]|[13579][26])00)([-/.]+)0?2\2(?:29))(\s+([01]|([01][0-9]|2[0-3])):([0-9]|[0-5][0-9]):([0-9]|[0-5][0-9]))?$/;function ey(e){var r="linear";return ty.test(e)?r="timeCat":(0,h.isString)(e)&&(r="cat"),r}function Xl(e,r,t,i){return r===void 0&&(r={}),r.type?r.type:e.type!=="identity"&&bt.includes(t)&&["interval"].includes(i)||e.isCategory?"cat":e.type}function ry(e,r,t){var i=r||[];if((0,h.isNumber)(e)||(0,h.isNil)((0,h.firstValue)(i,e))&&(0,h.isEmpty)(t)){var n=(0,Di.yZ)("identity");return new n({field:e.toString(),values:[e]})}var a=(0,h.valuesOfKey)(i,e),o=(0,h.get)(t,"type",ey(a[0])),s=(0,Di.yZ)(o);return new s((0,g.__assign)({field:e,values:a},t))}function iy(e,r){if(e.type!=="identity"&&r.type!=="identity"){var t={};for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i]);e.change(t)}}function ji(e){return e.alias||e.field}function Ul(e,r,t){var i=e.values,n=i.length,a;if(n===1)a=[.5,1];else{var o=1,s=0;$p(r)?r.isTransposed?(o=(0,h.get)(t,"widthRatio.multiplePie",1/1.3),s=1/n*o,a=[s/2,1-s/2]):a=[0,1-1/n]:(s=1/n/2,a=[s,1-s])}return a}function ny(e){var r=e.values.filter(function(t){return!(0,h.isNil)(t)&&!isNaN(t)});return Math.max.apply(Math,(0,g.__spreadArray)((0,g.__spreadArray)([],(0,g.__read)(r),!1),[(0,h.isNil)(e.max)?-Infinity:e.max],!1))}function ay(e){var r,t;switch(e){case E.TOP:r={x:0,y:1},t={x:1,y:1};break;case E.RIGHT:r={x:1,y:0},t={x:1,y:1};break;case E.BOTTOM:r={x:0,y:0},t={x:1,y:0};break;case E.LEFT:r={x:0,y:0},t={x:0,y:1};break;default:r=t={x:0,y:0}}return{start:r,end:t}}function oy(e){var r,t;return e.isTransposed?(r={x:0,y:0},t={x:1,y:0}):(r={x:0,y:0},t={x:0,y:1}),{start:r,end:t}}function Vn(e,r){var t={start:{x:0,y:0},end:{x:0,y:0}};e.isRect?t=ay(r):e.isPolar&&(t=oy(e));var i=t.start,n=t.end;return{start:e.convert(i),end:e.convert(n)}}function DL(e,r){if(e.isRect)return e.isTransposed?[DIRECTION.RIGHT,DIRECTION.BOTTOM].includes(r)?1:-1:[DIRECTION.BOTTOM,DIRECTION.RIGHT].includes(r)?-1:1;if(e.isPolar){var t=e.x.start;return t<0?-1:1}return 1}function jl(e){var r=e.start,t=e.end;return r.x===t.x}function Zl(e,r){var t=e.start,i=e.end,n=jl(e);return n?(t.y-i.y)*(r.x-t.x)>0?1:-1:(i.x-t.x)*(t.y-r.y)>0?-1:1}function Gn(e,r){var t=(0,h.get)(e,["components","axis"],{});return(0,h.deepMix)({},(0,h.get)(t,["common"],{}),(0,h.deepMix)({},(0,h.get)(t,[r],{})))}function ql(e,r,t){var i=(0,h.get)(e,["components","axis"],{});return(0,h.deepMix)({},(0,h.get)(i,["common","title"],{}),(0,h.deepMix)({},(0,h.get)(i,[r,"title"],{})),t)}function yo(e){var r=e.x,t=e.y,i=e.circleCenter,n=t.start>t.end,a=e.isTransposed?e.convert({x:n?0:1,y:0}):e.convert({x:0,y:n?0:1}),o=[a.x-i.x,a.y-i.y],s=[1,0],l=a.y>i.y?Lt.angle(o,s):Lt.angle(o,s)*-1,u=l+(r.end-r.start),c=Math.sqrt(Math.pow(a.x-i.x,2)+Math.pow(a.y-i.y,2));return{center:i,radius:c,startAngle:l,endAngle:u}}function Wn(e,r){return(0,h.isBoolean)(e)?e===!1?!1:{}:(0,h.get)(e,[r])}function Kl(e,r){return(0,h.get)(e,"position",r)}function $l(e,r){return(0,h.get)(r,["title","text"],ji(e))}var ci=function(){function e(r,t){this.destroyed=!1,this.facets=[],this.view=r,this.cfg=(0,h.deepMix)({},this.getDefaultCfg(),t)}return e.prototype.init=function(){this.container||(this.container=this.createContainer());var r=this.view.getData();this.facets=this.generateFacets(r)},e.prototype.render=function(){this.renderViews()},e.prototype.update=function(){},e.prototype.clear=function(){this.clearFacetViews()},e.prototype.destroy=function(){this.clear(),this.container&&(this.container.remove(!0),this.container=void 0),this.destroyed=!0,this.view=void 0,this.facets=[]},e.prototype.facetToView=function(r){var t=r.region,i=r.data,n=r.padding,a=n===void 0?this.cfg.padding:n,o=this.view.createView({region:t,padding:a});o.data(i||[]),r.view=o,this.beforeEachView(o,r);var s=this.cfg.eachView;return s&&s(o,r),this.afterEachView(o,r),o},e.prototype.createContainer=function(){var r=this.view.getLayer(J.FORE);return r.addGroup()},e.prototype.renderViews=function(){this.createFacetViews()},e.prototype.createFacetViews=function(){var r=this;return this.facets.map(function(t){return r.facetToView(t)})},e.prototype.clearFacetViews=function(){var r=this;(0,h.each)(this.facets,function(t){t.view&&(r.view.removeView(t.view),t.view=void 0)})},e.prototype.parseSpacing=function(){var r=this.view.viewBBox,t=r.width,i=r.height,n=this.cfg.spacing;return n.map(function(a,o){return(0,h.isNumber)(a)?a/(o===0?t:i):parseFloat(a)/100})},e.prototype.getFieldValues=function(r,t){var i=[],n={};return(0,h.each)(r,function(a){var o=a[t];!(0,h.isNil)(o)&&!n[o]&&(i.push(o),n[o]=!0)}),i},e.prototype.getRegion=function(r,t,i,n){var a=(0,g.__read)(this.parseSpacing(),2),o=a[0],s=a[1],l=(1+o)/(t===0?1:t)-o,u=(1+s)/(r===0?1:r)-s,c={x:(l+o)*i,y:(u+s)*n},f={x:c.x+l,y:c.y+u};return{start:c,end:f}},e.prototype.getDefaultCfg=function(){return{eachView:void 0,showTitle:!0,spacing:[0,0],padding:10,fields:[]}},e.prototype.getDefaultTitleCfg=function(){var r=this.view.getTheme().fontFamily;return{style:{fontSize:14,fill:"#666",fontFamily:r}}},e.prototype.processAxis=function(r,t){var i=r.getOptions(),n=i.coordinate,a=r.geometries,o=(0,h.get)(n,"type","rect");if(o==="rect"&&a.length){(0,h.isNil)(i.axes)&&(i.axes={});var s=i.axes,l=(0,g.__read)(a[0].getXYFields(),2),u=l[0],c=l[1],f=Wn(s,u),v=Wn(s,c);f!==!1&&(i.axes[u]=this.getXAxisOption(u,s,f,t)),v!==!1&&(i.axes[c]=this.getYAxisOption(c,s,v,t))}},e.prototype.getFacetDataFilter=function(r){return function(t){return(0,h.every)(r,function(i){var n=i.field,a=i.value;return!(0,h.isNil)(a)&&n?t[n]===a:!0})}},e}(),Ql={},sy=function(e){return Ql[(0,h.lowerCase)(e)]},hi=function(e,r){Ql[(0,h.lowerCase)(e)]=r},ly=function(){function e(r,t){this.context=r,this.cfg=t,r.addAction(this)}return e.prototype.applyCfg=function(r){(0,h.assign)(this,r)},e.prototype.init=function(){this.applyCfg(this.cfg)},e.prototype.destroy=function(){this.context.removeAction(this),this.context=null},e}(),ne=ly,uy=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.execute=function(){this.callback&&this.callback(this.context)},r.prototype.destroy=function(){e.prototype.destroy.call(this),this.callback=null},r}(ne),cy=uy,Hn={};function hy(e,r){var t=Hn[e],i=null;if(t){var n=t.ActionClass,a=t.cfg;i=new n(r,a),i.name=e,i.init()}return i}function Yn(e){var r=Hn[e];return(0,h.get)(r,"ActionClass")}function xt(e,r,t){Hn[e]={ActionClass:r,cfg:t}}function BL(e){delete Hn[e]}function fy(e,r){var t=new cy(r);return t.callback=e,t.name="callback",t}function vy(e,r){var t=[];if(e.length){t.push(["M",e[0].x,e[0].y]);for(var i=1,n=e.length;i=o[u]?1:0,v=c>Math.PI?1:0,d=t.convert(s),p=zn(t,d);if(p>=.5)if(c===Math.PI*2){var y={x:(s.x+o.x)/2,y:(s.y+o.y)/2},m=t.convert(y);l.push(["A",p,p,0,v,f,m.x,m.y]),l.push(["A",p,p,0,v,f,d.x,d.y])}else l.push(["A",p,p,0,v,f,d.x,d.y]);return l}function gy(e){(0,h.each)(e,function(r,t){var i=r;if(i[0].toLowerCase()==="a"){var n=e[t-1],a=e[t+1];a&&a[0].toLowerCase()==="a"?n&&n[0].toLowerCase()==="l"&&(n[0]="M"):n&&n[0].toLowerCase()==="a"&&a&&a[0].toLowerCase()==="l"&&(a[0]="M")}})}var py=function(e,r,t,i){var n,a=[],o=!!i,s,l,u,c,f,v,d;if(o){n=(0,g.__read)(i,2),u=n[0],c=n[1];for(var p=0,y=e.length;p0&&n>0&&(i>=r||n>=r)}function iu(e,r){var t=e.getCanvasBBox();return ru(e,r)?t:null}function nu(e,r){var t=e.event.maskShapes;return t.map(function(i){return iu(i,r)}).filter(function(i){return!!i})}function xy(e,r){var t=e.event,i=t.target;return au(i,r)}function au(e,r){return ru(e,r)?e.attr("path"):null}function _y(e,r){var t=e.event.maskShapes;return t.map(function(i){return au(i,r)})}function br(e){var r=e.event,t,i=r.target;return i&&(t=i.get("element")),t}function zr(e){var r=e.event,t=r.target,i;return t&&(i=t.get("delegateObject")),i}function ou(e){var r=e.event.gEvent;return!(r&&r.fromShape&&r.toShape&&r.fromShape.get("element")===r.toShape.get("element"))}function qi(e){return e&&e.component&&e.component.isList()}function su(e){return e&&e.component&&e.component.isSlider()}function Ki(e){var r=e.event,t=r.target;return t&&(t==null?void 0:t.get("name"))==="mask"||Un(e)}function Un(e){var r;return((r=e.event.target)===null||r===void 0?void 0:r.get("name"))==="multi-mask"}function xo(e,r){var t=e.event.target;if(Un(e))return wy(e,r);if(t.get("type")==="path"){var i=xy(e,r);return i?fu(e.view,i):void 0}var n=eu(e,r);return n?jn(e.view,n):null}function wy(e,r){var t=e.event.target;if(t.get("type")==="path"){var i=_y(e,r);return i.length>0?i.flatMap(function(a){return fu(e.view,a)}):null}var n=nu(e,r);return n.length>0?n.flatMap(function(a){return jn(e.view,a)}):null}function lu(e,r,t){if(Un(e))return by(e,r,t);var i=eu(e,t);return i?uu(i,e,r):null}function uu(e,r,t){var i=r.view,n=wo(i,t,{x:e.x,y:e.y}),a=wo(i,t,{x:e.maxX,y:e.maxY}),o={minX:n.x,minY:n.y,maxX:a.x,maxY:a.y};return jn(t,o)}function by(e,r,t){var i=nu(e,t);return i.length>0?i.flatMap(function(n){return uu(n,e,r)}):null}function Ce(e){var r=e.geometries,t=[];return(0,h.each)(r,function(i){var n=i.elements;t=t.concat(n)}),e.views&&e.views.length&&(0,h.each)(e.views,function(i){t=t.concat(Ce(i))}),t}function Sy(e,r,t){var i=Ce(e);return i.filter(function(n){return je(n,r)===t})}function cu(e,r){var t=e.geometries,i=[];return(0,h.each)(t,function(n){var a=n.getElementsBy(function(o){return o.hasState(r)});i=i.concat(a)}),i}function je(e,r){var t=e.getModel(),i=t.data,n;return(0,h.isArray)(i)?n=i[0][r]:n=i[r],n}function Cy(e,r){return!(r.minX>e.maxX||r.maxXe.maxY||r.maxY=r.x&&e.y<=r.y&&e.maxY>r.y}function Qe(e){var r=e.parent,t=null;return r&&(t=r.views.filter(function(i){return i!==e})),t}function My(e,r){var t=e.getCoordinate();return t.invert(r)}function wo(e,r,t){var i=My(e,t);return r.getCoordinate().convert(i)}function gu(e,r,t,i){var n=!1;return(0,h.each)(e,function(a){if(a[t]===r[t]&&a[i]===r[i])return n=!0,!1}),n}function fi(e,r){var t=e.getScaleByField(r);return!t&&e.views&&(0,h.each)(e.views,function(i){if(t=fi(i,r),t)return!1}),t}var Fy=function(){function e(r){this.actions=[],this.event=null,this.cacheMap={},this.view=r}return e.prototype.cache=function(){for(var r=[],t=0;t=0&&t.splice(i,1)},e.prototype.getCurrentPoint=function(){var r=this.event;if(r)if(r.target instanceof HTMLElement){var t=this.view.getCanvas(),i=t.getPointByClient(r.clientX,r.clientY);return i}else return{x:r.x,y:r.y};return null},e.prototype.getCurrentShape=function(){return(0,h.get)(this.event,["gEvent","shape"])},e.prototype.isInPlot=function(){var r=this.getCurrentPoint();return r?this.view.isPointInPlot(r):!1},e.prototype.isInShape=function(r){var t=this.getCurrentShape();return t?t.get("name")===r:!1},e.prototype.isInComponent=function(r){var t=vu(this.view),i=this.getCurrentPoint();return i?!!t.find(function(n){var a=n.getBBox();return r?n.get("name")===r&&du(a,i):du(a,i)}):!1},e.prototype.destroy=function(){(0,h.each)(this.actions.slice(),function(r){r.destroy()}),this.view=null,this.event=null,this.actions=null,this.cacheMap=null},e}(),Ey=Fy,Ty=function(){function e(r,t){this.view=r,this.cfg=t}return e.prototype.init=function(){this.initEvents()},e.prototype.initEvents=function(){},e.prototype.clearEvents=function(){},e.prototype.destroy=function(){this.clearEvents()},e}(),Ly=Ty;function pu(e,r,t){var i=e.split(":"),n=i[0],a=r.getAction(n)||hy(n,r);if(!a)throw new Error("There is no action named ".concat(n));var o=i[1];return{action:a,methodName:o,arg:t}}function yu(e){var r=e.action,t=e.methodName,i=e.arg;if(r[t])r[t](i);else throw new Error("Action(".concat(r.name,") doesn't have a method called ").concat(t))}var Ne={START:"start",SHOW_ENABLE:"showEnable",END:"end",ROLLBACK:"rollback",PROCESSING:"processing"},Iy=function(e){(0,g.__extends)(r,e);function r(t,i){var n=e.call(this,t,i)||this;return n.callbackCaches={},n.emitCaches={},n.steps=i,n}return r.prototype.init=function(){this.initContext(),e.prototype.init.call(this)},r.prototype.destroy=function(){e.prototype.destroy.call(this),this.steps=null,this.context&&(this.context.destroy(),this.context=null),this.callbackCaches=null,this.view=null},r.prototype.initEvents=function(){var t=this;(0,h.each)(this.steps,function(i,n){(0,h.each)(i,function(a){var o=t.getActionCallback(n,a);o&&t.bindEvent(a.trigger,o)})})},r.prototype.clearEvents=function(){var t=this;(0,h.each)(this.steps,function(i,n){(0,h.each)(i,function(a){var o=t.getActionCallback(n,a);o&&t.offEvent(a.trigger,o)})})},r.prototype.initContext=function(){var t=this.view,i=new Ey(t);this.context=i;var n=this.steps;(0,h.each)(n,function(a){(0,h.each)(a,function(o){if((0,h.isFunction)(o.action))o.actionObject={action:fy(o.action,i),methodName:"execute"};else if((0,h.isString)(o.action))o.actionObject=pu(o.action,i,o.arg);else if((0,h.isArray)(o.action)){var s=o.action,l=(0,h.isArray)(o.arg)?o.arg:[o.arg];o.actionObject=[],(0,h.each)(s,function(u,c){o.actionObject.push(pu(u,i,l[c]))})}})})},r.prototype.isAllowStep=function(t){var i=this.currentStepName,n=this.steps;if(i===t||t===Ne.SHOW_ENABLE)return!0;if(t===Ne.PROCESSING)return i===Ne.START;if(t===Ne.START)return i!==Ne.PROCESSING;if(t===Ne.END)return i===Ne.PROCESSING||i===Ne.START;if(t===Ne.ROLLBACK){if(n[Ne.END])return i===Ne.END;if(i===Ne.START)return!0}return!1},r.prototype.isAllowExecute=function(t,i){if(this.isAllowStep(t)){var n=this.getKey(t,i);return i.once&&this.emitCaches[n]?!1:i.isEnable?i.isEnable(this.context):!0}return!1},r.prototype.enterStep=function(t){this.currentStepName=t,this.emitCaches={}},r.prototype.afterExecute=function(t,i){t!==Ne.SHOW_ENABLE&&this.currentStepName!==t&&this.enterStep(t);var n=this.getKey(t,i);this.emitCaches[n]=!0},r.prototype.getKey=function(t,i){return t+i.trigger+i.action},r.prototype.getActionCallback=function(t,i){var n=this,a=this.context,o=this.callbackCaches,s=i.actionObject;if(i.action&&s){var l=this.getKey(t,i);if(!o[l]){var u=function(c){a.event=c,n.isAllowExecute(t,i)?((0,h.isArray)(s)?(0,h.each)(s,function(f){a.event=c,yu(f)}):(a.event=c,yu(s)),n.afterExecute(t,i),i.callback&&(a.event=c,i.callback(a))):a.event=null};i.debounce?o[l]=(0,h.debounce)(u,i.debounce.wait,i.debounce.immediate):i.throttle?o[l]=(0,h.throttle)(u,i.throttle.wait,{leading:i.throttle.leading,trailing:i.throttle.trailing}):o[l]=u}return o[l]}return null},r.prototype.bindEvent=function(t,i){var n=t.split(":");n[0]==="window"?window.addEventListener(n[1],i):n[0]==="document"?document.addEventListener(n[1],i):this.view.on(t,i)},r.prototype.offEvent=function(t,i){var n=t.split(":");n[0]==="window"?window.removeEventListener(n[1],i):n[0]==="document"?document.removeEventListener(n[1],i):this.view.off(t,i)},r}(Ly),Oy=Iy,mu={};function Py(e){return mu[(0,h.lowerCase)(e)]}function Ot(e,r){mu[(0,h.lowerCase)(e)]=r}function ky(e,r,t){var i=Py(e);if(!i)return null;if((0,h.isPlainObject)(i)){var n=(0,h.mix)((0,h.clone)(i),t);return new Oy(r,n)}else{var a=i;return new a(r,t)}}function Dy(e){return{title:{autoRotate:!0,position:"center",spacing:e.axisTitleSpacing,style:{fill:e.axisTitleTextFillColor,fontSize:e.axisTitleTextFontSize,lineHeight:e.axisTitleTextLineHeight,textBaseline:"middle",fontFamily:e.fontFamily},iconStyle:{fill:e.axisDescriptionIconFillColor}},label:{autoRotate:!1,autoEllipsis:!1,autoHide:{type:"equidistance",cfg:{minGap:6}},offset:e.axisLabelOffset,style:{fill:e.axisLabelFillColor,fontSize:e.axisLabelFontSize,lineHeight:e.axisLabelLineHeight,fontFamily:e.fontFamily}},line:{style:{lineWidth:e.axisLineBorder,stroke:e.axisLineBorderColor}},grid:{line:{type:"line",style:{stroke:e.axisGridBorderColor,lineWidth:e.axisGridBorder,lineDash:e.axisGridLineDash}},alignTick:!0,animate:!0},tickLine:{style:{lineWidth:e.axisTickLineBorder,stroke:e.axisTickLineBorderColor},alignTick:!0,length:e.axisTickLineLength},subTickLine:null,animate:!0}}function By(e){return{title:null,marker:{symbol:"circle",spacing:e.legendMarkerSpacing,style:{r:e.legendCircleMarkerSize,fill:e.legendMarkerColor}},itemName:{spacing:5,style:{fill:e.legendItemNameFillColor,fontFamily:e.fontFamily,fontSize:e.legendItemNameFontSize,lineHeight:e.legendItemNameLineHeight,fontWeight:e.legendItemNameFontWeight,textAlign:"start",textBaseline:"middle"}},itemStates:{active:{nameStyle:{opacity:.8}},unchecked:{nameStyle:{fill:"#D8D8D8"},markerStyle:{fill:"#D8D8D8",stroke:"#D8D8D8"}},inactive:{nameStyle:{fill:"#D8D8D8"},markerStyle:{opacity:.2}}},flipPage:!0,pageNavigator:{marker:{style:{size:e.legendPageNavigatorMarkerSize,inactiveFill:e.legendPageNavigatorMarkerInactiveFillColor,inactiveOpacity:e.legendPageNavigatorMarkerInactiveFillOpacity,fill:e.legendPageNavigatorMarkerFillColor,opacity:e.legendPageNavigatorMarkerFillOpacity}},text:{style:{fill:e.legendPageNavigatorTextFillColor,fontSize:e.legendPageNavigatorTextFontSize}}},animate:!1,maxItemWidth:200,itemSpacing:e.legendItemSpacing,itemMarginBottom:e.legendItemMarginBottom,padding:e.legendPadding}}function xu(e){var r,t={point:{default:{fill:e.pointFillColor,r:e.pointSize,stroke:e.pointBorderColor,lineWidth:e.pointBorder,fillOpacity:e.pointFillOpacity},active:{stroke:e.pointActiveBorderColor,lineWidth:e.pointActiveBorder},selected:{stroke:e.pointSelectedBorderColor,lineWidth:e.pointSelectedBorder},inactive:{fillOpacity:e.pointInactiveFillOpacity,strokeOpacity:e.pointInactiveBorderOpacity}},hollowPoint:{default:{fill:e.hollowPointFillColor,lineWidth:e.hollowPointBorder,stroke:e.hollowPointBorderColor,strokeOpacity:e.hollowPointBorderOpacity,r:e.hollowPointSize},active:{stroke:e.hollowPointActiveBorderColor,strokeOpacity:e.hollowPointActiveBorderOpacity},selected:{lineWidth:e.hollowPointSelectedBorder,stroke:e.hollowPointSelectedBorderColor,strokeOpacity:e.hollowPointSelectedBorderOpacity},inactive:{strokeOpacity:e.hollowPointInactiveBorderOpacity}},area:{default:{fill:e.areaFillColor,fillOpacity:e.areaFillOpacity,stroke:null},active:{fillOpacity:e.areaActiveFillOpacity},selected:{fillOpacity:e.areaSelectedFillOpacity},inactive:{fillOpacity:e.areaInactiveFillOpacity}},hollowArea:{default:{fill:null,stroke:e.hollowAreaBorderColor,lineWidth:e.hollowAreaBorder,strokeOpacity:e.hollowAreaBorderOpacity},active:{fill:null,lineWidth:e.hollowAreaActiveBorder},selected:{fill:null,lineWidth:e.hollowAreaSelectedBorder},inactive:{strokeOpacity:e.hollowAreaInactiveBorderOpacity}},interval:{default:{fill:e.intervalFillColor,fillOpacity:e.intervalFillOpacity},active:{stroke:e.intervalActiveBorderColor,lineWidth:e.intervalActiveBorder},selected:{stroke:e.intervalSelectedBorderColor,lineWidth:e.intervalSelectedBorder},inactive:{fillOpacity:e.intervalInactiveFillOpacity,strokeOpacity:e.intervalInactiveBorderOpacity}},hollowInterval:{default:{fill:e.hollowIntervalFillColor,stroke:e.hollowIntervalBorderColor,lineWidth:e.hollowIntervalBorder,strokeOpacity:e.hollowIntervalBorderOpacity},active:{stroke:e.hollowIntervalActiveBorderColor,lineWidth:e.hollowIntervalActiveBorder,strokeOpacity:e.hollowIntervalActiveBorderOpacity},selected:{stroke:e.hollowIntervalSelectedBorderColor,lineWidth:e.hollowIntervalSelectedBorder,strokeOpacity:e.hollowIntervalSelectedBorderOpacity},inactive:{stroke:e.hollowIntervalInactiveBorderColor,lineWidth:e.hollowIntervalInactiveBorder,strokeOpacity:e.hollowIntervalInactiveBorderOpacity}},line:{default:{stroke:e.lineBorderColor,lineWidth:e.lineBorder,strokeOpacity:e.lineBorderOpacity,fill:null,lineAppendWidth:10,lineCap:"round",lineJoin:"round"},active:{lineWidth:e.lineActiveBorder},selected:{lineWidth:e.lineSelectedBorder},inactive:{strokeOpacity:e.lineInactiveBorderOpacity}}},i=Dy(e),n=By(e);return{background:e.backgroundColor,defaultColor:e.brandColor,subColor:e.subColor,semanticRed:e.paletteSemanticRed,semanticGreen:e.paletteSemanticGreen,padding:"auto",fontFamily:e.fontFamily,columnWidthRatio:1/2,maxColumnWidth:null,minColumnWidth:null,roseWidthRatio:.9999999,multiplePieWidthRatio:1/1.3,colors10:e.paletteQualitative10,colors20:e.paletteQualitative20,sequenceColors:e.paletteSequence,shapes:{point:["hollow-circle","hollow-square","hollow-bowtie","hollow-diamond","hollow-hexagon","hollow-triangle","hollow-triangle-down","circle","square","bowtie","diamond","hexagon","triangle","triangle-down","cross","tick","plus","hyphen","line"],line:["line","dash","dot","smooth"],area:["area","smooth","line","smooth-line"],interval:["rect","hollow-rect","line","tick"]},sizes:[1,10],geometries:{interval:{rect:{default:{style:t.interval.default},active:{style:t.interval.active},inactive:{style:t.interval.inactive},selected:{style:function(a){var o=a.geometry.coordinate;if(o.isPolar&&o.isTransposed){var s=Xi(a.getModel(),o),l=s.startAngle,u=s.endAngle,c=(l+u)/2,f=7.5,v=f*Math.cos(c),d=f*Math.sin(c);return{matrix:ie.vs(null,[["t",v,d]])}}return t.interval.selected}}},"hollow-rect":{default:{style:t.hollowInterval.default},active:{style:t.hollowInterval.active},inactive:{style:t.hollowInterval.inactive},selected:{style:t.hollowInterval.selected}},line:{default:{style:t.hollowInterval.default},active:{style:t.hollowInterval.active},inactive:{style:t.hollowInterval.inactive},selected:{style:t.hollowInterval.selected}},tick:{default:{style:t.hollowInterval.default},active:{style:t.hollowInterval.active},inactive:{style:t.hollowInterval.inactive},selected:{style:t.hollowInterval.selected}},funnel:{default:{style:t.interval.default},active:{style:t.interval.active},inactive:{style:t.interval.inactive},selected:{style:t.interval.selected}},pyramid:{default:{style:t.interval.default},active:{style:t.interval.active},inactive:{style:t.interval.inactive},selected:{style:t.interval.selected}}},line:{line:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},dot:{default:{style:(0,g.__assign)((0,g.__assign)({},t.line.default),{lineCap:null,lineDash:[1,1]})},active:{style:(0,g.__assign)((0,g.__assign)({},t.line.active),{lineCap:null,lineDash:[1,1]})},inactive:{style:(0,g.__assign)((0,g.__assign)({},t.line.inactive),{lineCap:null,lineDash:[1,1]})},selected:{style:(0,g.__assign)((0,g.__assign)({},t.line.selected),{lineCap:null,lineDash:[1,1]})}},dash:{default:{style:(0,g.__assign)((0,g.__assign)({},t.line.default),{lineCap:null,lineDash:[5.5,1]})},active:{style:(0,g.__assign)((0,g.__assign)({},t.line.active),{lineCap:null,lineDash:[5.5,1]})},inactive:{style:(0,g.__assign)((0,g.__assign)({},t.line.inactive),{lineCap:null,lineDash:[5.5,1]})},selected:{style:(0,g.__assign)((0,g.__assign)({},t.line.selected),{lineCap:null,lineDash:[5.5,1]})}},smooth:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},hv:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},vh:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},hvh:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},vhv:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}}},polygon:{polygon:{default:{style:t.interval.default},active:{style:t.interval.active},inactive:{style:t.interval.inactive},selected:{style:t.interval.selected}}},point:{circle:{default:{style:t.point.default},active:{style:t.point.active},inactive:{style:t.point.inactive},selected:{style:t.point.selected}},square:{default:{style:t.point.default},active:{style:t.point.active},inactive:{style:t.point.inactive},selected:{style:t.point.selected}},bowtie:{default:{style:t.point.default},active:{style:t.point.active},inactive:{style:t.point.inactive},selected:{style:t.point.selected}},diamond:{default:{style:t.point.default},active:{style:t.point.active},inactive:{style:t.point.inactive},selected:{style:t.point.selected}},hexagon:{default:{style:t.point.default},active:{style:t.point.active},inactive:{style:t.point.inactive},selected:{style:t.point.selected}},triangle:{default:{style:t.point.default},active:{style:t.point.active},inactive:{style:t.point.inactive},selected:{style:t.point.selected}},"triangle-down":{default:{style:t.point.default},active:{style:t.point.active},inactive:{style:t.point.inactive},selected:{style:t.point.selected}},"hollow-circle":{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},"hollow-square":{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},"hollow-bowtie":{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},"hollow-diamond":{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},"hollow-hexagon":{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},"hollow-triangle":{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},"hollow-triangle-down":{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},cross:{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},tick:{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},plus:{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},hyphen:{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},line:{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}}},area:{area:{default:{style:t.area.default},active:{style:t.area.active},inactive:{style:t.area.inactive},selected:{style:t.area.selected}},smooth:{default:{style:t.area.default},active:{style:t.area.active},inactive:{style:t.area.inactive},selected:{style:t.area.selected}},line:{default:{style:t.hollowArea.default},active:{style:t.hollowArea.active},inactive:{style:t.hollowArea.inactive},selected:{style:t.hollowArea.selected}},"smooth-line":{default:{style:t.hollowArea.default},active:{style:t.hollowArea.active},inactive:{style:t.hollowArea.inactive},selected:{style:t.hollowArea.selected}}},schema:{candle:{default:{style:t.hollowInterval.default},active:{style:t.hollowInterval.active},inactive:{style:t.hollowInterval.inactive},selected:{style:t.hollowInterval.selected}},box:{default:{style:t.hollowInterval.default},active:{style:t.hollowInterval.active},inactive:{style:t.hollowInterval.inactive},selected:{style:t.hollowInterval.selected}}},edge:{line:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},vhv:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},smooth:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},arc:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}}},violin:{violin:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},smooth:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},hollow:{default:{style:t.hollowArea.default},active:{style:t.hollowArea.active},inactive:{style:t.hollowArea.inactive},selected:{style:t.hollowArea.selected}},"hollow-smooth":{default:{style:t.hollowArea.default},active:{style:t.hollowArea.active},inactive:{style:t.hollowArea.inactive},selected:{style:t.hollowArea.selected}}}},components:{axis:{common:i,top:{position:"top",grid:null,title:null,verticalLimitLength:1/2},bottom:{position:"bottom",grid:null,title:null,verticalLimitLength:1/2},left:{position:"left",title:null,line:null,tickLine:null,verticalLimitLength:1/3},right:{position:"right",title:null,line:null,tickLine:null,verticalLimitLength:1/3},circle:{title:null,grid:(0,h.deepMix)({},i.grid,{line:{type:"line"}})},radius:{title:null,grid:(0,h.deepMix)({},i.grid,{line:{type:"circle"}})}},legend:{common:n,right:{layout:"vertical",padding:e.legendVerticalPadding},left:{layout:"vertical",padding:e.legendVerticalPadding},top:{layout:"horizontal",padding:e.legendHorizontalPadding},bottom:{layout:"horizontal",padding:e.legendHorizontalPadding},continuous:{title:null,background:null,track:{},rail:{type:"color",size:e.sliderRailHeight,defaultLength:e.sliderRailWidth,style:{fill:e.sliderRailFillColor,stroke:e.sliderRailBorderColor,lineWidth:e.sliderRailBorder}},label:{align:"rail",spacing:4,formatter:null,style:{fill:e.sliderLabelTextFillColor,fontSize:e.sliderLabelTextFontSize,lineHeight:e.sliderLabelTextLineHeight,textBaseline:"middle",fontFamily:e.fontFamily}},handler:{size:e.sliderHandlerWidth,style:{fill:e.sliderHandlerFillColor,stroke:e.sliderHandlerBorderColor}},slidable:!0,padding:n.padding}},tooltip:{showContent:!0,follow:!0,showCrosshairs:!1,showMarkers:!0,shared:!1,enterable:!1,position:"auto",marker:{symbol:"circle",stroke:"#fff",shadowBlur:10,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"rgba(0,0,0,0.09)",lineWidth:2,r:4},crosshairs:{line:{style:{stroke:e.tooltipCrosshairsBorderColor,lineWidth:e.tooltipCrosshairsBorder}},text:null,textBackground:{padding:2,style:{fill:"rgba(0, 0, 0, 0.25)",lineWidth:0,stroke:null}},follow:!1},domStyles:(r={},r["".concat(sr)]={position:"absolute",visibility:"hidden",zIndex:8,transition:"left 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s, top 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s",backgroundColor:e.tooltipContainerFillColor,opacity:e.tooltipContainerFillOpacity,boxShadow:e.tooltipContainerShadow,borderRadius:"".concat(e.tooltipContainerBorderRadius,"px"),color:e.tooltipTextFillColor,fontSize:"".concat(e.tooltipTextFontSize,"px"),fontFamily:e.fontFamily,lineHeight:"".concat(e.tooltipTextLineHeight,"px"),padding:"0 12px 0 12px"},r["".concat(lr)]={marginBottom:"12px",marginTop:"12px"},r["".concat(Yi)]={margin:0,listStyleType:"none",padding:0},r["".concat(kn)]={listStyleType:"none",padding:0,marginBottom:"12px",marginTop:"12px",marginLeft:0,marginRight:0},r["".concat(Dn)]={width:"8px",height:"8px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},r["".concat(Bn)]={display:"inline-block",float:"right",marginLeft:"30px"},r)},annotation:{arc:{style:{stroke:e.annotationArcBorderColor,lineWidth:e.annotationArcBorder},animate:!0},line:{style:{stroke:e.annotationLineBorderColor,lineDash:e.annotationLineDash,lineWidth:e.annotationLineBorder},text:{position:"start",autoRotate:!0,style:{fill:e.annotationTextFillColor,stroke:e.annotationTextBorderColor,lineWidth:e.annotationTextBorder,fontSize:e.annotationTextFontSize,textAlign:"start",fontFamily:e.fontFamily,textBaseline:"bottom"}},animate:!0},text:{style:{fill:e.annotationTextFillColor,stroke:e.annotationTextBorderColor,lineWidth:e.annotationTextBorder,fontSize:e.annotationTextFontSize,textBaseline:"middle",textAlign:"start",fontFamily:e.fontFamily},animate:!0},region:{top:!1,style:{lineWidth:e.annotationRegionBorder,stroke:e.annotationRegionBorderColor,fill:e.annotationRegionFillColor,fillOpacity:e.annotationRegionFillOpacity},animate:!0},image:{top:!1,animate:!0},dataMarker:{top:!0,point:{style:{r:3,stroke:e.brandColor,lineWidth:2}},line:{style:{stroke:e.annotationLineBorderColor,lineWidth:e.annotationLineBorder},length:e.annotationDataMarkerLineLength},text:{style:{textAlign:"start",fill:e.annotationTextFillColor,stroke:e.annotationTextBorderColor,lineWidth:e.annotationTextBorder,fontSize:e.annotationTextFontSize,fontFamily:e.fontFamily}},direction:"upward",autoAdjust:!0,animate:!0},dataRegion:{style:{region:{fill:e.annotationRegionFillColor,fillOpacity:e.annotationRegionFillOpacity},text:{textAlign:"center",textBaseline:"bottom",fill:e.annotationTextFillColor,stroke:e.annotationTextBorderColor,lineWidth:e.annotationTextBorder,fontSize:e.annotationTextFontSize,fontFamily:e.fontFamily}},animate:!0}},slider:{common:{padding:[8,8,8,8],backgroundStyle:{fill:e.cSliderBackgroundFillColor,opacity:e.cSliderBackgroundFillOpacity},foregroundStyle:{fill:e.cSliderForegroundFillColor,opacity:e.cSliderForegroundFillOpacity},handlerStyle:{width:e.cSliderHandlerWidth,height:e.cSliderHandlerHeight,fill:e.cSliderHandlerFillColor,opacity:e.cSliderHandlerFillOpacity,stroke:e.cSliderHandlerBorderColor,lineWidth:e.cSliderHandlerBorder,radius:e.cSliderHandlerBorderRadius,highLightFill:e.cSliderHandlerHighlightFillColor},textStyle:{fill:e.cSliderTextFillColor,opacity:e.cSliderTextFillOpacity,fontSize:e.cSliderTextFontSize,lineHeight:e.cSliderTextLineHeight,fontWeight:e.cSliderTextFontWeight,stroke:e.cSliderTextBorderColor,lineWidth:e.cSliderTextBorder}}},scrollbar:{common:{padding:[8,8,8,8]},default:{style:{trackColor:e.scrollbarTrackFillColor,thumbColor:e.scrollbarThumbFillColor}},hover:{style:{thumbColor:e.scrollbarThumbHighlightFillColor}}}},labels:{offset:12,style:{fill:e.labelFillColor,fontSize:e.labelFontSize,fontFamily:e.fontFamily,stroke:e.labelBorderColor,lineWidth:e.labelBorder},fillColorDark:e.labelFillColorDark,fillColorLight:e.labelFillColorLight,autoRotate:!0},innerLabels:{style:{fill:e.innerLabelFillColor,fontSize:e.innerLabelFontSize,fontFamily:e.fontFamily,stroke:e.innerLabelBorderColor,lineWidth:e.innerLabelBorder},autoRotate:!0},overflowLabels:{style:{fill:e.overflowLabelFillColor,fontSize:e.overflowLabelFontSize,fontFamily:e.fontFamily,stroke:e.overflowLabelBorderColor,lineWidth:e.overflowLabelBorder}},pieLabels:{labelHeight:14,offset:10,labelLine:{style:{lineWidth:e.labelLineBorder}},autoRotate:!0}}}var Kt={100:"#000",95:"#0D0D0D",85:"#262626",65:"#595959",45:"#8C8C8C",25:"#BFBFBF",15:"#D9D9D9",6:"#F0F0F0"},vi={100:"#FFFFFF",95:"#F2F2F2",85:"#D9D9D9",65:"#A6A6A6",45:"#737373",25:"#404040",15:"#262626",6:"#0F0F0F"},Ry=["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#6F5EF9","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"],Ny=["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#6F5EF9","#D3CEFD","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"],zy=["#B8E1FF","#9AC5FF","#7DAAFF","#5B8FF9","#3D76DD","#085EC0","#0047A5","#00318A","#001D70"],_u=function(e){e===void 0&&(e={});var r=e.paletteQualitative10,t=r===void 0?Ry:r,i=e.paletteQualitative20,n=i===void 0?Ny:i,a=e.brandColor,o=a===void 0?t[0]:a,s={backgroundColor:"transparent",brandColor:o,subColor:"rgba(0,0,0,0.05)",paletteQualitative10:t,paletteQualitative20:n,paletteSemanticRed:"#F4664A",paletteSemanticGreen:"#30BF78",paletteSemanticYellow:"#FAAD14",paletteSequence:zy,fontFamily:`"Segoe UI", Roboto, "Helvetica Neue", Arial, + "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", + "Noto Color Emoji"`,axisLineBorderColor:Kt[25],axisLineBorder:1,axisLineDash:null,axisTitleTextFillColor:Kt[65],axisTitleTextFontSize:12,axisTitleTextLineHeight:12,axisTitleTextFontWeight:"normal",axisTitleSpacing:12,axisDescriptionIconFillColor:vi[85],axisTickLineBorderColor:Kt[25],axisTickLineLength:4,axisTickLineBorder:1,axisSubTickLineBorderColor:Kt[15],axisSubTickLineLength:2,axisSubTickLineBorder:1,axisLabelFillColor:Kt[45],axisLabelFontSize:12,axisLabelLineHeight:12,axisLabelFontWeight:"normal",axisLabelOffset:8,axisGridBorderColor:Kt[15],axisGridBorder:1,axisGridLineDash:null,legendTitleTextFillColor:Kt[45],legendTitleTextFontSize:12,legendTitleTextLineHeight:21,legendTitleTextFontWeight:"normal",legendMarkerColor:o,legendMarkerSpacing:8,legendMarkerSize:4,legendCircleMarkerSize:4,legendSquareMarkerSize:4,legendLineMarkerSize:5,legendItemNameFillColor:Kt[65],legendItemNameFontSize:12,legendItemNameLineHeight:12,legendItemNameFontWeight:"normal",legendItemSpacing:24,legendItemMarginBottom:12,legendPadding:[8,8,8,8],legendHorizontalPadding:[8,0,8,0],legendVerticalPadding:[0,8,0,8],legendPageNavigatorMarkerSize:12,legendPageNavigatorMarkerInactiveFillColor:Kt[100],legendPageNavigatorMarkerInactiveFillOpacity:.45,legendPageNavigatorMarkerFillColor:Kt[100],legendPageNavigatorMarkerFillOpacity:1,legendPageNavigatorTextFillColor:Kt[45],legendPageNavigatorTextFontSize:12,sliderRailFillColor:Kt[15],sliderRailBorder:0,sliderRailBorderColor:null,sliderRailWidth:100,sliderRailHeight:12,sliderLabelTextFillColor:Kt[45],sliderLabelTextFontSize:12,sliderLabelTextLineHeight:12,sliderLabelTextFontWeight:"normal",sliderHandlerFillColor:Kt[6],sliderHandlerWidth:10,sliderHandlerHeight:14,sliderHandlerBorder:1,sliderHandlerBorderColor:Kt[25],annotationArcBorderColor:Kt[15],annotationArcBorder:1,annotationLineBorderColor:Kt[25],annotationLineBorder:1,annotationLineDash:null,annotationTextFillColor:Kt[65],annotationTextFontSize:12,annotationTextLineHeight:12,annotationTextFontWeight:"normal",annotationTextBorderColor:null,annotationTextBorder:0,annotationRegionFillColor:Kt[100],annotationRegionFillOpacity:.06,annotationRegionBorder:0,annotationRegionBorderColor:null,annotationDataMarkerLineLength:16,tooltipCrosshairsBorderColor:Kt[25],tooltipCrosshairsBorder:1,tooltipCrosshairsLineDash:null,tooltipContainerFillColor:"rgb(255, 255, 255)",tooltipContainerFillOpacity:.95,tooltipContainerShadow:"0px 0px 10px #aeaeae",tooltipContainerBorderRadius:3,tooltipTextFillColor:Kt[65],tooltipTextFontSize:12,tooltipTextLineHeight:12,tooltipTextFontWeight:"bold",labelFillColor:Kt[65],labelFillColorDark:"#2c3542",labelFillColorLight:"#ffffff",labelFontSize:12,labelLineHeight:12,labelFontWeight:"normal",labelBorderColor:null,labelBorder:0,innerLabelFillColor:vi[100],innerLabelFontSize:12,innerLabelLineHeight:12,innerLabelFontWeight:"normal",innerLabelBorderColor:null,innerLabelBorder:0,overflowLabelFillColor:Kt[65],overflowLabelFontSize:12,overflowLabelLineHeight:12,overflowLabelFontWeight:"normal",overflowLabelBorderColor:vi[100],overflowLabelBorder:1,labelLineBorder:1,labelLineBorderColor:Kt[25],cSliderRailHieght:16,cSliderBackgroundFillColor:"#416180",cSliderBackgroundFillOpacity:.05,cSliderForegroundFillColor:"#5B8FF9",cSliderForegroundFillOpacity:.15,cSliderHandlerHeight:24,cSliderHandlerWidth:10,cSliderHandlerFillColor:"#F7F7F7",cSliderHandlerFillOpacity:1,cSliderHandlerHighlightFillColor:"#FFF",cSliderHandlerBorderColor:"#BFBFBF",cSliderHandlerBorder:1,cSliderHandlerBorderRadius:2,cSliderTextFillColor:"#000",cSliderTextFillOpacity:.45,cSliderTextFontSize:12,cSliderTextLineHeight:12,cSliderTextFontWeight:"normal",cSliderTextBorderColor:null,cSliderTextBorder:0,scrollbarTrackFillColor:"rgba(0,0,0,0)",scrollbarThumbFillColor:"rgba(0,0,0,0.15)",scrollbarThumbHighlightFillColor:"rgba(0,0,0,0.2)",pointFillColor:o,pointFillOpacity:.95,pointSize:4,pointBorder:1,pointBorderColor:vi[100],pointBorderOpacity:1,pointActiveBorderColor:Kt[100],pointSelectedBorder:2,pointSelectedBorderColor:Kt[100],pointInactiveFillOpacity:.3,pointInactiveBorderOpacity:.3,hollowPointSize:4,hollowPointBorder:1,hollowPointBorderColor:o,hollowPointBorderOpacity:.95,hollowPointFillColor:vi[100],hollowPointActiveBorder:1,hollowPointActiveBorderColor:Kt[100],hollowPointActiveBorderOpacity:1,hollowPointSelectedBorder:2,hollowPointSelectedBorderColor:Kt[100],hollowPointSelectedBorderOpacity:1,hollowPointInactiveBorderOpacity:.3,lineBorder:2,lineBorderColor:o,lineBorderOpacity:1,lineActiveBorder:3,lineSelectedBorder:3,lineInactiveBorderOpacity:.3,areaFillColor:o,areaFillOpacity:.25,areaActiveFillColor:o,areaActiveFillOpacity:.5,areaSelectedFillColor:o,areaSelectedFillOpacity:.5,areaInactiveFillOpacity:.3,hollowAreaBorderColor:o,hollowAreaBorder:2,hollowAreaBorderOpacity:1,hollowAreaActiveBorder:3,hollowAreaActiveBorderColor:Kt[100],hollowAreaSelectedBorder:3,hollowAreaSelectedBorderColor:Kt[100],hollowAreaInactiveBorderOpacity:.3,intervalFillColor:o,intervalFillOpacity:.95,intervalActiveBorder:1,intervalActiveBorderColor:Kt[100],intervalActiveBorderOpacity:1,intervalSelectedBorder:2,intervalSelectedBorderColor:Kt[100],intervalSelectedBorderOpacity:1,intervalInactiveBorderOpacity:.3,intervalInactiveFillOpacity:.3,hollowIntervalBorder:2,hollowIntervalBorderColor:o,hollowIntervalBorderOpacity:1,hollowIntervalFillColor:vi[100],hollowIntervalActiveBorder:2,hollowIntervalActiveBorderColor:Kt[100],hollowIntervalSelectedBorder:3,hollowIntervalSelectedBorderColor:Kt[100],hollowIntervalSelectedBorderOpacity:1,hollowIntervalInactiveBorderOpacity:.3};return(0,g.__assign)((0,g.__assign)({},s),e)},RL=_u();function Zn(e){var r=e.styleSheet,t=r===void 0?{}:r,i=(0,g.__rest)(e,["styleSheet"]),n=_u(t);return(0,h.deepMix)({},xu(n),i)}var Vy=Zn({}),bo={default:Vy};function $i(e){return(0,h.get)(bo,(0,h.lowerCase)(e),bo.default)}function Gy(e,r){bo[(0,h.lowerCase)(e)]=Zn(r)}function wu(e,r,t){var i=t.translate(e),n=t.translate(r);return(0,h.isNumberEqual)(i,n)}function Wy(e,r){var t=r.coordinate,i=r.getXScale(),n=i.range,a=n[n.length-1],o=n[0],s=t.invert(e),l=s.x;return t.isPolar&&l>(1+a)/2&&(l=o),i.translate(i.invert(l))}function bu(e,r,t){var i=t.coordinate,n=t.getYScale(),a=n.field,o=i.invert(r),s=n.invert(o.y),l=(0,h.find)(e,function(u){var c=u[rt];return c[a][0]<=s&&c[a][1]>=s});return l||e[e.length-1]}var Hy=(0,h.memoize)(function(e){if(e.isCategory)return 1;for(var r=e.values,t=r.length,i=e.translate(r[0]),n=i,a=0;an&&(n=s)}return(n-i)/(t-1)});function Yy(e,r,t){var i=r.getAttribute("position"),n=i.getFields(),a=r.scales,o=(0,h.isFunction)(t)||!t?n[0]:t,s=a[o],l=s?s.getText(e[o]):e[o]||o;return(0,h.isFunction)(t)?t(l,e):l}function Xy(e){var r=(0,h.values)(e.attributes);return(0,h.filter)(r,function(t){return(0,h.contains)(bt,t.type)})}function Su(e){var r,t,i=Xy(e),n;try{for(var a=(0,g.__values)(i),o=a.next();!o.done;o=a.next()){var s=o.value,l=s.getScale(s.type);if(l&&l.isLinear){var u=(0,h.get)(e.scaleDefs,l.field),c=Xl(l,u,s.type,e.type);if(c!=="cat"){n=l;break}}}}catch(d){r={error:d}}finally{try{o&&!o.done&&(t=a.return)&&t.call(a)}finally{if(r)throw r.error}}var f=e.getXScale(),v=e.getYScale();return n||v||f}function Uy(e,r){var t=r.field,i=e[t];if((0,h.isArray)(i)){var n=i.map(function(a){return r.getText(a)});return n.join("-")}return r.getText(i)}function jy(e,r){var t,i=r.getGroupScales();if(i.length&&(t=i[0]),t){var n=t.field;return t.getText(e[n])}var a=Su(r);return ji(a)}function Cu(e,r,t){if(r.length===0)return null;var i=t.type,n=t.getXScale(),a=t.getYScale(),o=n.field,s=a.field,l=null;if(i==="heatmap"||i==="point"){for(var u=t.coordinate,c=u.invert(e),f=n.invert(c.x),v=a.invert(c.y),d=Infinity,p=0;p=b)if(F)(0,h.isArray)(l)||(l=[]),l.push(P);else{l=P;break}}(0,h.isArray)(l)&&(l=bu(l,e,t))}else{var I=void 0;if(!n.isLinear&&n.type!=="timeCat"){for(var p=0;pn.translate(A)||bn.max||bMath.abs(n.translate(I[rt][o])-b)&&(w=I)}var Bt=Hy(t.getXScale());return!l&&Math.abs(n.translate(w[rt][o])-b)<=Bt/2&&(l=w),l}function So(e,r,t,i){var n,a;t===void 0&&(t=""),i===void 0&&(i=!1);var o=e[rt],s=Yy(o,r,t),l=r.tooltipOption,u=r.theme.defaultColor,c=[],f,v;function d(P,I){if(i||!(0,h.isNil)(I)&&I!==""){var V={title:s,data:o,mappingData:e,name:P,value:I,color:e.color||u,marker:!0};c.push(V)}}if((0,h.isObject)(l)){var p=l.fields,y=l.callback;if(y){var m=p.map(function(P){return e[rt][P]}),x=y.apply(void 0,(0,g.__spreadArray)([],(0,g.__read)(m),!1)),_=(0,g.__assign)({data:e[rt],mappingData:e,title:s,color:e.color||u,marker:!0},x);c.push(_)}else{var w=r.scales;try{for(var b=(0,g.__values)(p),S=b.next();!S.done;S=b.next()){var C=S.value;if(!(0,h.isNil)(o[C])){var A=w[C];f=ji(A),v=A.getText(o[C]),d(f,v)}}}catch(P){n={error:P}}finally{try{S&&!S.done&&(a=b.return)&&a.call(b)}finally{if(n)throw n.error}}}}else{var F=Su(r);v=Uy(o,F),f=jy(o,r),d(f,v)}return c}function Au(e,r,t,i){var n,a,o=i.showNil,s=[],l=e.dataArray;if(!(0,h.isEmpty)(l)){e.sort(l);try{for(var u=(0,g.__values)(l),c=u.next();!c.done;c=u.next()){var f=c.value,v=Cu(r,f,e);if(v){var d=e.getElementId(v),p=e.elementsMap[d];if(e.type==="heatmap"||p.visible){var y=So(v,e,t,o);y.length&&s.push(y)}}}}catch(m){n={error:m}}finally{try{c&&!c.done&&(a=u.return)&&a.call(u)}finally{if(n)throw n.error}}}return s}function Mu(e,r,t,i){var n=i.showNil,a=[],o=e.container,s=o.getShape(r.x,r.y);if(s&&s.get("visible")&&s.get("origin")){var l=s.get("origin").mappingData,u=So(l,e,t,n);u.length&&a.push(u)}return a}function Co(e,r,t){var i,n,a=[],o=e.geometries,s=t.shared,l=t.title,u=t.reversed;try{for(var c=(0,g.__values)(o),f=c.next();!f.done;f=c.next()){var v=f.value;if(v.visible&&v.tooltipOption!==!1){var d=v.type,p=void 0;["point","edge","polygon"].includes(d)?p=Mu(v,r,l,t):["area","line","path","heatmap"].includes(d)||s!==!1?p=Au(v,r,l,t):p=Mu(v,r,l,t),p.length&&(u&&p.reverse(),a.push(p))}}}catch(y){i={error:y}}finally{try{f&&!f.done&&(n=c.return)&&n.call(c)}finally{if(i)throw i.error}}return a}function Zy(e,r,t){var i,n,a=Co(e,r,t);try{for(var o=(0,g.__values)(e.views),s=o.next();!s.done;s=o.next()){var l=s.value;a=a.concat(Co(l,r,t))}}catch(u){i={error:u}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function qy(e){return!(0,h.isNumber)(e)&&!(0,h.isArray)(e)}function Ao(e){e===void 0&&(e=0);var r=(0,h.isArray)(e)?e:[e];switch(r.length){case 0:r=[0,0,0,0];break;case 1:r=new Array(4).fill(r[0]);break;case 2:r=(0,g.__spreadArray)((0,g.__spreadArray)([],(0,g.__read)(r),!1),(0,g.__read)(r),!1);break;case 3:r=(0,g.__spreadArray)((0,g.__spreadArray)([],(0,g.__read)(r),!1),[r[1]],!1);break;default:r=r.slice(0,4);break}return r}var qn={};function Vr(e,r){qn[e]=r}function NL(e){delete qn[e]}function Ky(){return Object.keys(qn)}function $y(e){return qn[e]}var Qy=function(){function e(r){this.option=this.wrapperOption(r)}return e.prototype.update=function(r){return this.option=this.wrapperOption(r),this},e.prototype.hasAction=function(r){var t=this.option.actions;return(0,h.some)(t,function(i){return i[0]===r})},e.prototype.create=function(r,t){var i=this.option,n=i.type,a=i.cfg,o=n==="theta",s=(0,g.__assign)({start:r,end:t},a),l=Xd(o?"polar":n);return this.coordinate=new l(s),this.coordinate.type=n,o&&(this.hasAction("transpose")||this.transpose()),this.execActions(),this.coordinate},e.prototype.adjust=function(r,t){return this.coordinate.update({start:r,end:t}),this.coordinate.resetMatrix(),this.execActions(["scale","rotate","translate"]),this.coordinate},e.prototype.rotate=function(r){return this.option.actions.push(["rotate",r]),this},e.prototype.reflect=function(r){return this.option.actions.push(["reflect",r]),this},e.prototype.scale=function(r,t){return this.option.actions.push(["scale",r,t]),this},e.prototype.transpose=function(){return this.option.actions.push(["transpose"]),this},e.prototype.getOption=function(){return this.option},e.prototype.getCoordinate=function(){return this.coordinate},e.prototype.wrapperOption=function(r){return(0,g.__assign)({type:"rect",actions:[],cfg:{}},r)},e.prototype.execActions=function(r){var t=this,i=this.option.actions;(0,h.each)(i,function(n){var a,o=(0,g.__read)(n),s=o[0],l=o.slice(1),u=(0,h.isNil)(r)?!0:r.includes(s);u&&(a=t.coordinate)[s].apply(a,(0,g.__spreadArray)([],(0,g.__read)(l),!1))})},e}(),Jy=Qy,t0=function(){function e(r,t,i){this.view=r,this.gEvent=t,this.data=i,this.type=t.type}return e.fromData=function(r,t,i){return new e(r,new St.Event(t,{}),i)},Object.defineProperty(e.prototype,"target",{get:function(){return this.gEvent.target},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"event",{get:function(){return this.gEvent.originalEvent},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"x",{get:function(){return this.gEvent.x},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"y",{get:function(){return this.gEvent.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"clientX",{get:function(){return this.gEvent.clientX},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"clientY",{get:function(){return this.gEvent.clientY},enumerable:!1,configurable:!0}),e.prototype.toString=function(){return"[Event (type=".concat(this.type,")]")},e.prototype.clone=function(){return new e(this.view,this.gEvent,this.data)},e}(),ue=t0;function e0(e){var r=e.getController("axis"),t=e.getController("legend"),i=e.getController("annotation"),n=e.getController("slider"),a=e.getController("scrollbar");[r,n,a,t,i].forEach(function(o){o&&o.layout()})}var r0=function(){function e(){this.scales=new Map,this.syncScales=new Map}return e.prototype.createScale=function(r,t,i,n){var a=i,o=this.getScaleMeta(n);if(t.length===0&&o){var s=o.scale,l={type:s.type};s.isCategory&&(l.values=s.values),a=(0,h.deepMix)(l,o.scaleDef,i)}var u=ry(r,t,a);return this.cacheScale(u,i,n),u},e.prototype.sync=function(r,t){var i=this;this.syncScales.forEach(function(n,a){var o=Number.MAX_SAFE_INTEGER,s=Number.MIN_SAFE_INTEGER,l=[];(0,h.each)(n,function(u){var c=i.getScale(u);s=(0,h.isNumber)(c.max)?Math.max(s,c.max):s,o=(0,h.isNumber)(c.min)?Math.min(o,c.min):o,(0,h.each)(c.values,function(f){l.includes(f)||l.push(f)})}),(0,h.each)(n,function(u){var c=i.getScale(u);if(c.isContinuous)c.change({min:o,max:s,values:l});else if(c.isCategory){var f=c.range,v=i.getScaleMeta(u);l&&!(0,h.get)(v,["scaleDef","range"])&&(f=Ul((0,h.deepMix)({},c,{values:l}),r,t)),c.change({values:l,range:f})}})})},e.prototype.cacheScale=function(r,t,i){var n=this.getScaleMeta(i);n&&n.scale.type===r.type?(iy(n.scale,r),n.scaleDef=t):(n={key:i,scale:r,scaleDef:t},this.scales.set(i,n));var a=this.getSyncKey(n);if(n.syncKey=a,this.removeFromSyncScales(i),a){var o=this.syncScales.get(a);o||(o=[],this.syncScales.set(a,o)),o.push(i)}},e.prototype.getScale=function(r){var t=this.getScaleMeta(r);if(!t){var i=(0,h.last)(r.split("-")),n=this.syncScales.get(i);n&&n.length&&(t=this.getScaleMeta(n[0]))}return t&&t.scale},e.prototype.deleteScale=function(r){var t=this.getScaleMeta(r);if(t){var i=t.syncKey,n=this.syncScales.get(i);if(n&&n.length){var a=n.indexOf(r);a!==-1&&n.splice(a,1)}}this.scales.delete(r)},e.prototype.clear=function(){this.scales.clear(),this.syncScales.clear()},e.prototype.removeFromSyncScales=function(r){var t=this;this.syncScales.forEach(function(i,n){var a=i.indexOf(r);if(a!==-1)return i.splice(a,1),i.length===0&&t.syncScales.delete(n),!1})},e.prototype.getSyncKey=function(r){var t=r.scale,i=r.scaleDef,n=t.field,a=(0,h.get)(i,["sync"]);return a===!0?n:a===!1?void 0:a},e.prototype.getScaleMeta=function(r){return this.scales.get(r)},e}(),Kn=function(){function e(r,t,i,n){r===void 0&&(r=0),t===void 0&&(t=0),i===void 0&&(i=0),n===void 0&&(n=0),this.top=r,this.right=t,this.bottom=i,this.left=n}return e.instance=function(r,t,i,n){return r===void 0&&(r=0),t===void 0&&(t=0),i===void 0&&(i=0),n===void 0&&(n=0),new e(r,t,i,n)},e.prototype.max=function(r){var t=(0,g.__read)(r,4),i=t[0],n=t[1],a=t[2],o=t[3];return this.top=Math.max(this.top,i),this.right=Math.max(this.right,n),this.bottom=Math.max(this.bottom,a),this.left=Math.max(this.left,o),this},e.prototype.shrink=function(r){var t=(0,g.__read)(r,4),i=t[0],n=t[1],a=t[2],o=t[3];return this.top+=i,this.right+=n,this.bottom+=a,this.left+=o,this},e.prototype.inc=function(r,t){var i=r.width,n=r.height;switch(t){case E.TOP:case E.TOP_LEFT:case E.TOP_RIGHT:this.top+=n;break;case E.RIGHT:case E.RIGHT_TOP:case E.RIGHT_BOTTOM:this.right+=i;break;case E.BOTTOM:case E.BOTTOM_LEFT:case E.BOTTOM_RIGHT:this.bottom+=n;break;case E.LEFT:case E.LEFT_TOP:case E.LEFT_BOTTOM:this.left+=i;break;default:break}return this},e.prototype.getPadding=function(){return[this.top,this.right,this.bottom,this.left]},e.prototype.clone=function(){return new(e.bind.apply(e,(0,g.__spreadArray)([void 0],(0,g.__read)(this.getPadding()),!1)))},e}();function i0(e){var r=e.padding;if(!qy(r))return new(Kn.bind.apply(Kn,(0,g.__spreadArray)([void 0],(0,g.__read)(Ao(r)),!1)));var t=e.viewBBox,i=new Kn,n=[],a=[],o=[];return(0,h.each)(e.getComponents(),function(s){var l=s.type;l===N.AXIS?n.push(s):[N.LEGEND,N.SLIDER,N.SCROLLBAR].includes(l)?a.push(s):l!==N.GRID&&l!==N.TOOLTIP&&o.push(s)}),(0,h.each)(n,function(s){var l=s.component,u=l.getLayoutBBox(),c=new Ee(u.x,u.y,u.width,u.height),f=c.exceed(t);i.max(f)}),(0,h.each)(a,function(s){var l=s.component,u=s.direction,c=l.getLayoutBBox(),f=l.get("padding"),v=new Ee(c.x,c.y,c.width,c.height).expand(f);i.inc(v,u)}),(0,h.each)(o,function(s){var l=s.component,u=s.direction,c=l.getLayoutBBox(),f=new Ee(c.x,c.y,c.width,c.height);i.inc(f,u)}),i}function n0(e,r,t){var i=t.instance();r.forEach(function(n){n.autoPadding=i.max(n.autoPadding.getPadding())})}var Fu=function(e){(0,g.__extends)(r,e);function r(t){var i=e.call(this,{visible:t.visible})||this;i.views=[],i.geometries=[],i.controllers=[],i.interactions={},i.limitInPlot=!1,i.options={data:[],animate:!0},i.usedControllers=Ky(),i.scalePool=new r0,i.layoutFunc=e0,i.isPreMouseInPlot=!1,i.isDataChanged=!1,i.isCoordinateChanged=!1,i.createdScaleKeys=new Map,i.onCanvasEvent=function(w){var b=w.name;if(!b.includes(":")){var S=i.createViewEvent(w);i.doPlotEvent(S),i.emit(b,S)}},i.onDelegateEvents=function(w){var b=w.name;if(!!b.includes(":")){var S=i.createViewEvent(w);i.emit(b,S)}};var n=t.id,a=n===void 0?(0,h.uniqueId)("view"):n,o=t.parent,s=t.canvas,l=t.backgroundGroup,u=t.middleGroup,c=t.foregroundGroup,f=t.region,v=f===void 0?{start:{x:0,y:0},end:{x:1,y:1}}:f,d=t.padding,p=t.appendPadding,y=t.theme,m=t.options,x=t.limitInPlot,_=t.syncViewPadding;return i.parent=o,i.canvas=s,i.backgroundGroup=l,i.middleGroup=u,i.foregroundGroup=c,i.region=v,i.padding=d,i.appendPadding=p,i.options=(0,g.__assign)((0,g.__assign)({},i.options),m),i.limitInPlot=x,i.id=a,i.syncViewPadding=_,i.themeObject=(0,h.isObject)(y)?(0,h.deepMix)({},$i("default"),Zn(y)):$i(y),i.init(),i}return r.prototype.setLayout=function(t){this.layoutFunc=t},r.prototype.init=function(){this.calculateViewBBox(),this.initEvents(),this.initComponentController(),this.initOptions()},r.prototype.render=function(t,i){t===void 0&&(t=!1),this.emit(L.BEFORE_RENDER,ue.fromData(this,L.BEFORE_RENDER,i)),this.paint(t),this.emit(L.AFTER_RENDER,ue.fromData(this,L.AFTER_RENDER,i)),this.visible===!1&&this.changeVisible(!1)},r.prototype.clear=function(){var t=this;this.emit(L.BEFORE_CLEAR),this.filteredData=[],this.coordinateInstance=void 0,this.isDataChanged=!1,this.isCoordinateChanged=!1;for(var i=this.geometries,n=0;n');I.appendChild(V);var Z=R(I,l,a,o),vt=se(v),yt=new vt.Canvas((0,g.__assign)({container:V,pixelRatio:d,localRefresh:y,supportCSSTransform:w},Z));return i=e.call(this,{parent:null,canvas:yt,backgroundGroup:yt.addGroup({zIndex:$.BG}),middleGroup:yt.addGroup({zIndex:$.MID}),foregroundGroup:yt.addGroup({zIndex:$.FORE}),padding:u,appendPadding:c,visible:x,options:C,limitInPlot:A,theme:F,syncViewPadding:P})||this,i.onResize=(0,h.debounce)(function(){i.forceFit()},300),i.ele=I,i.canvas=yt,i.width=Z.width,i.height=Z.height,i.autoFit=l,i.localRefresh=y,i.renderer=v,i.wrapperElement=V,i.updateCanvasStyle(),i.bindAutoFit(),i.initDefaultInteractions(S),i}return r.prototype.initDefaultInteractions=function(t){var i=this;(0,h.each)(t,function(n){i.interaction(n)})},r.prototype.aria=function(t){var i="aria-label";t===!1?this.ele.removeAttribute(i):this.ele.setAttribute(i,t.label)},r.prototype.changeSize=function(t,i){return this.width===t&&this.height===i?this:(this.emit(L.BEFORE_CHANGE_SIZE),this.width=t,this.height=i,this.canvas.changeSize(t,i),this.render(!0),this.emit(L.AFTER_CHANGE_SIZE),this)},r.prototype.clear=function(){e.prototype.clear.call(this),this.aria(!1)},r.prototype.destroy=function(){e.prototype.destroy.call(this),this.unbindAutoFit(),this.canvas.destroy(),D(this.wrapperElement),this.wrapperElement=null},r.prototype.changeVisible=function(t){return e.prototype.changeVisible.call(this,t),this.wrapperElement.style.display=t?"":"none",this},r.prototype.forceFit=function(){if(!this.destroyed){var t=R(this.ele,!0,this.width,this.height),i=t.width,n=t.height;this.changeSize(i,n)}},r.prototype.updateCanvasStyle=function(){(0,k.Z)(this.canvas.get("el"),{display:"inline-block",verticalAlign:"middle"})},r.prototype.bindAutoFit=function(){this.autoFit&&window.addEventListener("resize",this.onResize)},r.prototype.unbindAutoFit=function(){this.autoFit&&window.removeEventListener("resize",this.onResize)},r}(a0),s0=o0,di=function(){function e(r){this.visible=!0,this.components=[],this.view=r}return e.prototype.clear=function(r){(0,h.each)(this.components,function(t){t.component.destroy()}),this.components=[]},e.prototype.destroy=function(){this.clear()},e.prototype.getComponents=function(){return this.components},e.prototype.changeVisible=function(r){this.visible!==r&&(this.components.forEach(function(t){r?t.component.show():t.component.hide()}),this.visible=r)},e}();function l0(e){for(var r=[],t=function(n){var a=e[n],o=(0,h.find)(r,function(s){return s.color===a.color&&s.name===a.name&&s.value===a.value&&s.title===a.title});o||r.push(a)},i=0;i1){var b=u[0],S=Math.abs(t.y-b[0].y);try{for(var C=(0,g.__values)(u),A=C.next();!A.done;A=C.next()){var F=A.value,P=Math.abs(t.y-F[0].y);P<=S&&(b=F,S=P)}}catch(I){s={error:I}}finally{try{A&&!A.done&&(l=C.return)&&l.call(C)}finally{if(s)throw s.error}}u=[b]}return l0((0,h.flatten)(u))}return[]},r.prototype.layout=function(){},r.prototype.update=function(){if(this.point&&this.showTooltip(this.point),this.tooltip){var t=this.view.getCanvas();this.tooltip.set("region",{start:{x:0,y:0},end:{x:t.get("width"),y:t.get("height")}})}},r.prototype.isCursorEntered=function(t){if(this.tooltip){var i=this.tooltip.getContainer(),n=this.tooltip.get("capture");if(i&&n){var a=i.getBoundingClientRect(),o=a.x,s=a.y,l=a.width,u=a.height;return new Ee(o,s,l,u).isPointIn(t)}}return!1},r.prototype.getTooltipCfg=function(){var t=this.view,i=t.getOptions().tooltip,n=this.processCustomContent(i),a=t.getTheme(),o=(0,h.get)(a,["components","tooltip"],{}),s=(0,h.get)(n,"enterable",o.enterable);return(0,h.deepMix)({},o,n,{capture:!!(s||this.isLocked)})},r.prototype.processCustomContent=function(t){if((0,h.isBoolean)(t)||!(0,h.get)(t,"customContent"))return t;var i=t.customContent,n=function(a,o){var s=i(a,o)||"";return(0,h.isString)(s)?'
      '+s+"
      ":s};return(0,g.__assign)((0,g.__assign)({},t),{customContent:n})},r.prototype.getTitle=function(t){var i=t[0].title||t[0].name;return this.title=i,i},r.prototype.renderTooltip=function(){var t=this.view.getCanvas(),i={start:{x:0,y:0},end:{x:t.get("width"),y:t.get("height")}},n=this.getTooltipCfg(),a=new Nn((0,g.__assign)((0,g.__assign)({parent:t.get("el").parentNode,region:i},n),{visible:!1,crosshairs:null}));a.init(),this.tooltip=a},r.prototype.renderTooltipMarkers=function(t,i){var n,a,o=this.getTooltipMarkersGroup(),s=this.view.getRootView(),l=s.limitInPlot;try{for(var u=(0,g.__values)(t),c=u.next();!c.done;c=u.next()){var f=c.value,v=f.x,d=f.y;if(l||(o==null?void 0:o.getClip())){var p=po(s.getCoordinate()),y=p.type,m=p.attrs;o==null||o.setClip({type:y,attrs:m})}else o==null||o.setClip(void 0);var x=this.view.getTheme(),_=(0,h.get)(x,["components","tooltip","marker"],{}),w=(0,g.__assign)((0,g.__assign)({fill:f.color,symbol:"circle",shadowColor:f.color},(0,h.isFunction)(i)?(0,g.__assign)((0,g.__assign)({},_),i(f)):i),{x:v,y:d});o.addShape("marker",{attrs:w})}}catch(b){n={error:b}}finally{try{c&&!c.done&&(a=u.return)&&a.call(u)}finally{if(n)throw n.error}}},r.prototype.renderCrosshairs=function(t,i){var n=(0,h.get)(i,["crosshairs","type"],"x");n==="x"?(this.yCrosshair&&this.yCrosshair.hide(),this.renderXCrosshairs(t,i)):n==="y"?(this.xCrosshair&&this.xCrosshair.hide(),this.renderYCrosshairs(t,i)):n==="xy"&&(this.renderXCrosshairs(t,i),this.renderYCrosshairs(t,i))},r.prototype.renderXCrosshairs=function(t,i){var n=this.getViewWithGeometry(this.view).getCoordinate(),a,o;if(n.isRect)n.isTransposed?(a={x:n.start.x,y:t.y},o={x:n.end.x,y:t.y}):(a={x:t.x,y:n.end.y},o={x:t.x,y:n.start.y});else{var s=ui(n,t),l=n.getCenter(),u=n.getRadius();o=ge(l.x,l.y,u,s),a=l}var c=(0,h.deepMix)({start:a,end:o,container:this.getTooltipCrosshairsGroup()},(0,h.get)(i,"crosshairs",{}),this.getCrosshairsText("x",t,i));delete c.type;var f=this.xCrosshair;f?f.update(c):(f=new Il(c),f.init()),f.render(),f.show(),this.xCrosshair=f},r.prototype.renderYCrosshairs=function(t,i){var n=this.getViewWithGeometry(this.view).getCoordinate(),a,o;if(n.isRect){var s=void 0,l=void 0;n.isTransposed?(s={x:t.x,y:n.end.y},l={x:t.x,y:n.start.y}):(s={x:n.start.x,y:t.y},l={x:n.end.x,y:t.y}),a={start:s,end:l},o="Line"}else a={center:n.getCenter(),radius:zn(n,t),startAngle:n.startAngle,endAngle:n.endAngle},o="Circle";a=(0,h.deepMix)({container:this.getTooltipCrosshairsGroup()},a,(0,h.get)(i,"crosshairs",{}),this.getCrosshairsText("y",t,i)),delete a.type;var u=this.yCrosshair;u?n.isRect&&u.get("type")==="circle"||!n.isRect&&u.get("type")==="line"?(u=new ct[o](a),u.init()):u.update(a):(u=new ct[o](a),u.init()),u.render(),u.show(),this.yCrosshair=u},r.prototype.getCrosshairsText=function(t,i,n){var a=(0,h.get)(n,["crosshairs","text"]),o=(0,h.get)(n,["crosshairs","follow"]),s=this.items;if(a){var l=this.getViewWithGeometry(this.view),u=s[0],c=l.getXScale(),f=l.getYScales()[0],v=void 0,d=void 0;if(o){var p=this.view.getCoordinate().invert(i);v=c.invert(p.x),d=f.invert(p.y)}else v=u.data[c.field],d=u.data[f.field];var y=t==="x"?v:d;return(0,h.isFunction)(a)?a=a(t,y,s,i):a.content=y,{text:a}}},r.prototype.getGuideGroup=function(){if(!this.guideGroup){var t=this.view.foregroundGroup;this.guideGroup=t.addGroup({name:"tooltipGuide",capture:!1})}return this.guideGroup},r.prototype.getTooltipMarkersGroup=function(){var t=this.tooltipMarkersGroup;return t&&!t.destroyed?(t.clear(),t.show()):(t=this.getGuideGroup().addGroup({name:"tooltipMarkersGroup"}),t.toFront(),this.tooltipMarkersGroup=t),t},r.prototype.getTooltipCrosshairsGroup=function(){var t=this.tooltipCrosshairsGroup;return t||(t=this.getGuideGroup().addGroup({name:"tooltipCrosshairsGroup",capture:!1}),t.toBack(),this.tooltipCrosshairsGroup=t),t},r.prototype.findItemsFromView=function(t,i){var n,a;if(t.getOptions().tooltip===!1)return[];var o=this.getTooltipCfg(),s=Co(t,i,o);try{for(var l=(0,g.__values)(t.views),u=l.next();!u.done;u=l.next()){var c=u.value;s=s.concat(this.findItemsFromView(c,i))}}catch(f){n={error:f}}finally{try{u&&!u.done&&(a=l.return)&&a.call(l)}finally{if(n)throw n.error}}return s},r.prototype.getViewWithGeometry=function(t){var i=this;return t.geometries.length?t:(0,h.find)(t.views,function(n){return i.getViewWithGeometry(n)})},r.prototype.getItemsAfterProcess=function(t){var i=this.getTooltipCfg().customItems,n=i||function(a){return a};return n(t)},r}(di),Eu=u0,Tu={};function Lu(e){return Tu[e.toLowerCase()]}function ze(e,r){Tu[e.toLowerCase()]=r}var gi={appear:{duration:450,easing:"easeQuadOut"},update:{duration:400,easing:"easeQuadInOut"},enter:{duration:400,easing:"easeQuadInOut"},leave:{duration:350,easing:"easeQuadIn"}},c0={interval:function(e){return{enter:{animation:e.isRect?e.isTransposed?"scale-in-x":"scale-in-y":"fade-in"},update:{animation:e.isPolar&&e.isTransposed?"sector-path-update":null},leave:{animation:"fade-out"}}},line:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},path:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},point:{appear:{animation:"zoom-in"},enter:{animation:"zoom-in"},leave:{animation:"zoom-out"}},area:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},polygon:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},schema:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},edge:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},label:{appear:{animation:"fade-in",delay:450},enter:{animation:"fade-in"},update:{animation:"position-update"},leave:{animation:"fade-out"}}},Iu={line:function(){return{animation:"wave-in"}},area:function(){return{animation:"wave-in"}},path:function(){return{animation:"fade-in"}},interval:function(e){var r;return e.isRect?r=e.isTransposed?"grow-in-x":"grow-in-y":(r="grow-in-xy",e.isPolar&&e.isTransposed&&(r="wave-in")),{animation:r}},schema:function(e){var r;return e.isRect?r=e.isTransposed?"grow-in-x":"grow-in-y":r="grow-in-xy",{animation:r}},polygon:function(){return{animation:"fade-in",duration:500}},edge:function(){return{animation:"fade-in"}}};function h0(e,r){return{delay:(0,h.isFunction)(e.delay)?e.delay(r):e.delay,easing:(0,h.isFunction)(e.easing)?e.easing(r):e.easing,duration:(0,h.isFunction)(e.duration)?e.duration(r):e.duration,callback:e.callback,repeat:e.repeat}}function Ou(e,r,t){var i=c0[e];return i&&((0,h.isFunction)(i)&&(i=i(r)),i=(0,h.deepMix)({},gi,i),t)?i[t]:i}function pi(e,r,t){var i=(0,h.get)(e.get("origin"),"data",rt),n=r.animation,a=h0(r,i);if(n){var o=Lu(n);o&&o(e,a,t)}else e.animate(t.toAttrs,a)}function f0(e,r,t,i,n){if(Iu[t]){var a=Iu[t](i),o=Lu((0,h.get)(a,"animation",""));if(o){var s=(0,g.__assign)((0,g.__assign)((0,g.__assign)({},gi.appear),a),r);e.stopAnimate(),o(e,s,{coordinate:i,minYPoint:n,toAttrs:null})}}}var Mo="element-background",v0=function(e){(0,g.__extends)(r,e);function r(t){var i=e.call(this,t)||this;i.labelShape=[],i.states=[];var n=t.shapeFactory,a=t.container,o=t.offscreenGroup,s=t.elementIndex,l=t.visible,u=l===void 0?!0:l;return i.shapeFactory=n,i.container=a,i.offscreenGroup=o,i.visible=u,i.elementIndex=s,i}return r.prototype.draw=function(t,i){i===void 0&&(i=!1),this.model=t,this.data=t.data,this.shapeType=this.getShapeType(t),this.drawShape(t,i),this.visible===!1&&this.changeVisible(!1)},r.prototype.update=function(t){var i=this,n=i.shapeFactory,a=i.shape;if(!!a){this.model=t,this.data=t.data,this.shapeType=this.getShapeType(t),this.setShapeInfo(a,t);var o=this.getOffscreenGroup(),s=n.drawShape(this.shapeType,t,o);s.cfg.data=this.data,s.cfg.origin=t,s.cfg.element=this,this.syncShapeStyle(a,s,this.getStates(),this.getAnimateCfg("update"))}},r.prototype.destroy=function(){var t=this,i=t.shapeFactory,n=t.shape;if(n){var a=this.getAnimateCfg("leave");a?pi(n,a,{coordinate:i.coordinate,toAttrs:(0,g.__assign)({},n.attr())}):n.remove(!0)}this.states=[],this.shapeFactory=void 0,this.container=void 0,this.shape=void 0,this.animate=void 0,this.geometry=void 0,this.labelShape=[],this.model=void 0,this.data=void 0,this.offscreenGroup=void 0,this.statesStyle=void 0,e.prototype.destroy.call(this)},r.prototype.changeVisible=function(t){e.prototype.changeVisible.call(this,t),t?(this.shape&&this.shape.show(),this.labelShape&&this.labelShape.forEach(function(i){i.show()})):(this.shape&&this.shape.hide(),this.labelShape&&this.labelShape.forEach(function(i){i.hide()}))},r.prototype.setState=function(t,i){var n=this,a=n.states,o=n.shapeFactory,s=n.model,l=n.shape,u=n.shapeType,c=a.indexOf(t);if(i){if(c>-1)return;a.push(t),(t==="active"||t==="selected")&&(l==null||l.toFront())}else{if(c===-1)return;if(a.splice(c,1),t==="active"||t==="selected"){var f=this.geometry,v=f.sortZIndex,d=f.zIndexReversed,p=d?this.geometry.elements.length-this.elementIndex:this.elementIndex;v?l.setZIndex(p):l.set("zIndex",p)}}var y=o.drawShape(u,s,this.getOffscreenGroup());a.length?this.syncShapeStyle(l,y,a,null):this.syncShapeStyle(l,y,["reset"],null),y.remove(!0);var m={state:t,stateStatus:i,element:this,target:this.container};this.container.emit("statechange",m),ml(this.shape,"statechange",m)},r.prototype.clearStates=function(){var t=this,i=this.states;(0,h.each)(i,function(n){t.setState(n,!1)}),this.states=[]},r.prototype.hasState=function(t){return this.states.includes(t)},r.prototype.getStates=function(){return this.states},r.prototype.getData=function(){return this.data},r.prototype.getModel=function(){return this.model},r.prototype.getBBox=function(){var t=this,i=t.shape,n=t.labelShape,a={x:0,y:0,minX:0,minY:0,maxX:0,maxY:0,width:0,height:0};return i&&(a=i.getCanvasBBox()),n&&n.forEach(function(o){var s=o.getCanvasBBox();a.x=Math.min(s.x,a.x),a.y=Math.min(s.y,a.y),a.minX=Math.min(s.minX,a.minX),a.minY=Math.min(s.minY,a.minY),a.maxX=Math.max(s.maxX,a.maxX),a.maxY=Math.max(s.maxY,a.maxY)}),a.width=a.maxX-a.minX,a.height=a.maxY-a.minY,a},r.prototype.getStatesStyle=function(){if(!this.statesStyle){var t=this,i=t.shapeType,n=t.geometry,a=t.shapeFactory,o=n.stateOption,s=a.defaultShapeType,l=a.theme[i]||a.theme[s];this.statesStyle=(0,h.deepMix)({},l,o)}return this.statesStyle},r.prototype.getStateStyle=function(t,i){var n=this.getStatesStyle(),a=(0,h.get)(n,[t,"style"],{}),o=a[i]||a;return(0,h.isFunction)(o)?o(this):o},r.prototype.getAnimateCfg=function(t){var i=this,n=this.animate;if(n){var a=n[t];return a&&(0,g.__assign)((0,g.__assign)({},a),{callback:function(){var o;(0,h.isFunction)(a.callback)&&a.callback(),(o=i.geometry)===null||o===void 0||o.emit(X.AFTER_DRAW_ANIMATE)}})}return null},r.prototype.drawShape=function(t,i){var n;i===void 0&&(i=!1);var a=this,o=a.shapeFactory,s=a.container,l=a.shapeType;if(this.shape=o.drawShape(l,t,s),this.shape){this.setShapeInfo(this.shape,t);var u=this.shape.cfg.name;u?(0,h.isString)(u)&&(this.shape.cfg.name=["element",u]):this.shape.cfg.name=["element",this.shapeFactory.geometryType];var c=i?"enter":"appear",f=this.getAnimateCfg(c);f&&((n=this.geometry)===null||n===void 0||n.emit(X.BEFORE_DRAW_ANIMATE),pi(this.shape,f,{coordinate:o.coordinate,toAttrs:(0,g.__assign)({},this.shape.attr())}))}},r.prototype.getOffscreenGroup=function(){if(!this.offscreenGroup){var t=this.container.getGroupBase();this.offscreenGroup=new t({})}return this.offscreenGroup},r.prototype.setShapeInfo=function(t,i){var n=this;if(t.cfg.origin=i,t.cfg.element=this,t.isGroup()){var a=t.get("children");a.forEach(function(o){n.setShapeInfo(o,i)})}},r.prototype.syncShapeStyle=function(t,i,n,a,o){var s=this,l;if(n===void 0&&(n=[]),o===void 0&&(o=0),!(!t||!i)){var u=t.get("clipShape"),c=i.get("clipShape");if(this.syncShapeStyle(u,c,n,a),t.isGroup())for(var f=t.get("children"),v=i.get("children"),d=0;d=0?a=i:n<=0?a=n:a=0,a},r.prototype.createAttrOption=function(t,i,n){if((0,h.isNil)(i)||(0,h.isObject)(i))(0,h.isObject)(i)&&(0,h.isEqual)(Object.keys(i),["values"])?(0,h.set)(this.attributeOption,t,{fields:i.values}):(0,h.set)(this.attributeOption,t,i);else{var a={};(0,h.isNumber)(i)?a.values=[i]:a.fields=Ji(i),n&&((0,h.isFunction)(n)?a.callback=n:a.values=n),(0,h.set)(this.attributeOption,t,a)}},r.prototype.initAttributes=function(){var t=this,i=this,n=i.attributes,a=i.attributeOption,o=i.theme,s=i.shapeType;this.groupScales=[];var l={},u=function(v){if(a.hasOwnProperty(v)){var d=a[v];if(!d)return{value:void 0};var p=(0,g.__assign)({},d),y=p.callback,m=p.values,x=p.fields,_=x===void 0?[]:x,w=_.map(function(S){var C=t.scales[S];if(!l[S]&&bt.includes(v)){var A=Xl(C,(0,h.get)(t.scaleDefs,S),v,t.type);A==="cat"&&(t.groupScales.push(C),l[S]=!0)}return C});p.scales=w,v!=="position"&&w.length===1&&w[0].type==="identity"?p.values=w[0].values:!y&&!m&&(v==="size"?p.values=o.sizes:v==="shape"?p.values=o.shapes[s]||[]:v==="color"&&(w.length?p.values=w[0].values.length<=10?o.colors10:o.colors20:p.values=o.colors10));var b=gl(v);n[v]=new b(p)}};for(var c in a){var f=u(c);if(typeof f=="object")return f.value}},r.prototype.processData=function(t){var i,n;this.hasSorted=!1;for(var a=this.getAttribute("position").scales,o=a.filter(function(A){return A.isCategory}),s=this.groupData(t),l=[],u=0,c=s.length;us&&(s=f)}var v=this.scaleDefs,d={};ot.max&&!(0,h.get)(v,[a,"max"])&&(d.max=s),t.change(d)},r.prototype.beforeMapping=function(t){var i=t;if(this.sortable&&this.sort(i),this.generatePoints)for(var n=0,a=i.length;n1)for(var v=0;v0})}function Vu(e,r,t){var i=t.data,n=t.origin,a=t.animateCfg,o=t.coordinate,s=(0,h.get)(a,"update");e.set("data",i),e.set("origin",n),e.set("animateCfg",a),e.set("coordinate",o),e.set("visible",r.get("visible")),(e.getChildren()||[]).forEach(function(l,u){var c=r.getChildByIndex(u);if(!c)e.removeChild(l),l.remove(!0);else{l.set("data",i),l.set("origin",n),l.set("animateCfg",a),l.set("coordinate",o);var f=Yl(l,c);s?pi(l,s,{toAttrs:f,coordinate:o}):l.attr(f),c.isGroup()&&Vu(l,c,t)}}),(0,h.each)(r.getChildren(),function(l,u){u>=e.getCount()&&(l.destroyed||e.add(l))})}var C0=function(){function e(r){this.shapesMap={};var t=r.layout,i=r.container;this.layout=t,this.container=i}return e.prototype.render=function(r,t,i){return i===void 0&&(i=!1),(0,g.__awaiter)(this,void 0,void 0,function(){var n,a,o,s,l,u,c,f,v=this;return(0,g.__generator)(this,function(d){switch(d.label){case 0:if(n={},a=this.createOffscreenGroup(),!r.length)return[3,2];try{for(o=(0,g.__values)(r),s=o.next();!s.done;s=o.next())l=s.value,l&&(n[l.id]=this.renderLabel(l,a))}catch(p){c={error:p}}finally{try{s&&!s.done&&(f=o.return)&&f.call(o)}finally{if(c)throw c.error}}return[4,this.doLayout(r,t,n)];case 1:d.sent(),this.renderLabelLine(r,n),this.renderLabelBackground(r,n),this.adjustLabel(r,n),d.label=2;case 2:return u=this.shapesMap,(0,h.each)(n,function(p,y){if(p.destroyed)delete n[y];else{if(u[y]){var m=p.get("data"),x=p.get("origin"),_=p.get("coordinate"),w=p.get("animateCfg"),b=u[y];Vu(b,n[y],{data:m,origin:x,animateCfg:w,coordinate:_}),n[y]=b}else{if(v.container.destroyed)return;v.container.add(p);var S=(0,h.get)(p.get("animateCfg"),i?"enter":"appear");S&&pi(p,S,{toAttrs:(0,g.__assign)({},p.attr()),coordinate:p.get("coordinate")})}delete u[y]}}),(0,h.each)(u,function(p){var y=(0,h.get)(p.get("animateCfg"),"leave");y?pi(p,y,{toAttrs:null,coordinate:p.get("coordinate")}):p.remove(!0)}),this.shapesMap=n,a.destroy(),[2]}})})},e.prototype.clear=function(){this.container.clear(),this.shapesMap={}},e.prototype.destroy=function(){this.container.destroy(),this.shapesMap=null},e.prototype.renderLabel=function(r,t){var i=r.id,n=r.elementId,a=r.data,o=r.mappingData,s=r.coordinate,l=r.animate,u=r.content,c=r.capture,f={id:i,elementId:n,capture:c,data:a,origin:(0,g.__assign)((0,g.__assign)({},o),{data:o[rt]}),coordinate:s},v=t.addGroup((0,g.__assign)({name:"label",animateCfg:this.animate===!1||l===null||l===!1?!1:(0,h.deepMix)({},this.animate,l)},f)),d;if(u.isGroup&&u.isGroup()||u.isShape&&u.isShape()){var p=u.getCanvasBBox(),y=p.width,m=p.height,x=(0,h.get)(r,"textAlign","left"),_=r.x,w=r.y-m/2;x==="center"?_=_-y/2:(x==="right"||x==="end")&&(_=_-y),tn(u,_,w),d=u,v.add(u)}else{var b=(0,h.get)(r,["style","fill"]);d=v.addShape("text",(0,g.__assign)({attrs:(0,g.__assign)((0,g.__assign)({x:r.x,y:r.y,textAlign:r.textAlign,textBaseline:(0,h.get)(r,"textBaseline","middle"),text:r.content},r.style),{fill:(0,h.isNull)(b)?r.color:b})},f))}return r.rotate&&Eo(d,r.rotate),v},e.prototype.doLayout=function(r,t,i){return(0,g.__awaiter)(this,void 0,void 0,function(){var n,a=this;return(0,g.__generator)(this,function(o){switch(o.label){case 0:return this.layout?(n=(0,h.isArray)(this.layout)?this.layout:[this.layout],[4,Promise.all(n.map(function(s){var l=g0((0,h.get)(s,"type",""));if(!!l){var u=[],c=[];return(0,h.each)(i,function(f,v){u.push(f),c.push(t[f.get("elementId")])}),l(r,u,c,a.region,s.cfg)}}))]):[3,2];case 1:o.sent(),o.label=2;case 2:return[2]}})})},e.prototype.renderLabelLine=function(r,t){(0,h.each)(r,function(i){var n=(0,h.get)(i,"coordinate");if(!(!i||!n)){var a=n.getCenter(),o=n.getRadius();if(!!i.labelLine){var s=(0,h.get)(i,"labelLine",{}),l=i.id,u=s.path;if(!u){var c=ge(a.x,a.y,o,i.angle);u=[["M",c.x,c.y],["L",i.x,i.y]]}var f=t[l];f.destroyed||f.addShape("path",{capture:!1,attrs:(0,g.__assign)({path:u,stroke:i.color?i.color:(0,h.get)(i,["style","fill"],"#000"),fill:null},s.style),id:l,origin:i.mappingData,data:i.data,coordinate:i.coordinate})}}})},e.prototype.renderLabelBackground=function(r,t){(0,h.each)(r,function(i){var n=(0,h.get)(i,"coordinate"),a=(0,h.get)(i,"background");if(!(!a||!n)){var o=i.id,s=t[o];if(!s.destroyed){var l=s.getChildren()[0];if(l){var u=zu(s,i,a.padding),c=u.rotation,f=(0,g.__rest)(u,["rotation"]),v=s.addShape("rect",{attrs:(0,g.__assign)((0,g.__assign)({},f),a.style||{}),id:o,origin:i.mappingData,data:i.data,coordinate:i.coordinate});if(v.setZIndex(-1),c){var d=l.getMatrix();v.setMatrix(d)}}}}})},e.prototype.createOffscreenGroup=function(){var r=this.container,t=r.getGroupBase(),i=new t({});return i},e.prototype.adjustLabel=function(r,t){(0,h.each)(r,function(i){if(i){var n=i.id,a=t[n];if(!a.destroyed){var o=a.findAll(function(s){return s.get("type")!=="path"});(0,h.each)(o,function(s){s&&(i.offsetX&&s.attr("x",s.attr("x")+i.offsetX),i.offsetY&&s.attr("y",s.attr("y")+i.offsetY))})}}})},e}(),A0=C0;function Gu(e){var r=0;return(0,h.each)(e,function(t){r+=t}),r/e.length}var M0=function(){function e(r){this.geometry=r}return e.prototype.getLabelItems=function(r){var t=this,i=[],n=this.getLabelCfgs(r);return(0,h.each)(r,function(a,o){var s=n[o];if(!s||(0,h.isNil)(a.x)||(0,h.isNil)(a.y)){i.push(null);return}var l=(0,h.isArray)(s.content)?s.content:[s.content];s.content=l;var u=l.length;(0,h.each)(l,function(c,f){if((0,h.isNil)(c)||c===""){i.push(null);return}var v=(0,g.__assign)((0,g.__assign)({},s),t.getLabelPoint(s,a,f));v.textAlign||(v.textAlign=t.getLabelAlign(v,f,u)),v.offset<=0&&(v.labelLine=null),i.push(v)})}),i},e.prototype.render=function(r,t){return t===void 0&&(t=!1),(0,g.__awaiter)(this,void 0,void 0,function(){var i,n,a;return(0,g.__generator)(this,function(o){switch(o.label){case 0:return i=this.getLabelItems(r),n=this.getLabelsRenderer(),a=this.getGeometryShapes(),[4,n.render(i,a,t)];case 1:return o.sent(),[2]}})})},e.prototype.clear=function(){var r=this.labelsRenderer;r&&r.clear()},e.prototype.destroy=function(){var r=this.labelsRenderer;r&&r.destroy(),this.labelsRenderer=null},e.prototype.getCoordinate=function(){return this.geometry.coordinate},e.prototype.getDefaultLabelCfg=function(r,t){var i=this.geometry,n=i.type,a=i.theme;return n==="polygon"||n==="interval"&&t==="middle"||r<0&&!["line","point","path"].includes(n)?(0,h.get)(a,"innerLabels",{}):(0,h.get)(a,"labels",{})},e.prototype.getThemedLabelCfg=function(r){var t=this.geometry,i=this.getDefaultLabelCfg(),n=t.type,a=t.theme,o;return n==="polygon"||r.offset<0&&!["line","point","path"].includes(n)?o=(0,h.deepMix)({},i,a.innerLabels,r):o=(0,h.deepMix)({},i,a.labels,r),o},e.prototype.setLabelPosition=function(r,t,i,n){},e.prototype.getLabelOffset=function(r){var t=this.getCoordinate(),i=this.getOffsetVector(r);return t.isTransposed?i[0]:i[1]},e.prototype.getLabelOffsetPoint=function(r,t,i){var n=r.offset,a=this.getCoordinate(),o=a.isTransposed,s=o?"x":"y",l=o?1:-1,u={x:0,y:0};return t>0||i===1?u[s]=n*l:u[s]=n*l*-1,u},e.prototype.getLabelPoint=function(r,t,i){var n=this.getCoordinate(),a=r.content.length;function o(m,x,_){_===void 0&&(_=!1);var w=m;return(0,h.isArray)(w)&&(r.content.length===1?_?w=Gu(w):w.length<=2?w=w[m.length-1]:w=Gu(w):w=w[x]),w}var s={content:r.content[i],x:0,y:0,start:{x:0,y:0},color:"#fff"},l=(0,h.isArray)(t.shape)?t.shape[0]:t.shape,u=l==="funnel"||l==="pyramid";if(this.geometry.type==="polygon"){var c=Zp(t.x,t.y);s.x=c[0],s.y=c[1]}else this.geometry.type==="interval"&&!u?(s.x=o(t.x,i,!0),s.y=o(t.y,i)):(s.x=o(t.x,i),s.y=o(t.y,i));if(u){var f=(0,h.get)(t,"nextPoints"),v=(0,h.get)(t,"points");if(f){var d=n.convert(v[1]),p=n.convert(f[1]);s.x=(d.x+p.x)/2,s.y=(d.y+p.y)/2}else if(l==="pyramid"){var d=n.convert(v[1]),p=n.convert(v[2]);s.x=(d.x+p.x)/2,s.y=(d.y+p.y)/2}}r.position&&this.setLabelPosition(s,t,i,r.position);var y=this.getLabelOffsetPoint(r,i,a);return s.start={x:s.x,y:s.y},s.x+=y.x,s.y+=y.y,s.color=t.color,s},e.prototype.getLabelAlign=function(r,t,i){var n="center",a=this.getCoordinate();if(a.isTransposed){var o=r.offset;o<0?n="right":o===0?n="center":n="left",i>1&&t===0&&(n==="right"?n="left":n==="left"&&(n="right"))}return n},e.prototype.getLabelId=function(r){var t=this.geometry,i=t.type,n=t.getXScale(),a=t.getYScale(),o=r[rt],s=t.getElementId(r);return i==="line"||i==="area"?s+=" ".concat(o[n.field]):i==="path"&&(s+=" ".concat(o[n.field],"-").concat(o[a.field])),s},e.prototype.getLabelsRenderer=function(){var r=this.geometry,t=r.labelsContainer,i=r.labelOption,n=r.canvasRegion,a=r.animateOption,o=this.geometry.coordinate,s=this.labelsRenderer;return s||(s=new A0({container:t,layout:(0,h.get)(i,["cfg","layout"],{type:this.defaultLayout})}),this.labelsRenderer=s),s.region=n,s.animate=a?Ou("label",o):!1,s},e.prototype.getLabelCfgs=function(r){var t=this,i=this.geometry,n=i.labelOption,a=i.scales,o=i.coordinate,s=n,l=s.fields,u=s.callback,c=s.cfg,f=l.map(function(d){return a[d]}),v=[];return(0,h.each)(r,function(d,p){var y=d[rt],m=t.getLabelText(y,f),x;if(u){var _=l.map(function(A){return y[A]});if(x=u.apply(void 0,(0,g.__spreadArray)([],(0,g.__read)(_),!1)),(0,h.isNil)(x)){v.push(null);return}}var w=(0,g.__assign)((0,g.__assign)({id:t.getLabelId(d),elementId:t.geometry.getElementId(d),data:y,mappingData:d,coordinate:o},c),x);(0,h.isFunction)(w.position)&&(w.position=w.position(y,d,p));var b=t.getLabelOffset(w.offset||0),S=t.getDefaultLabelCfg(b,w.position);w=(0,h.deepMix)({},S,w),w.offset=t.getLabelOffset(w.offset||0);var C=w.content;(0,h.isFunction)(C)?w.content=C(y,d,p):(0,h.isUndefined)(C)&&(w.content=m[0]),v.push(w)}),v},e.prototype.getLabelText=function(r,t){var i=[];return(0,h.each)(t,function(n){var a=r[n.field];(0,h.isArray)(a)?a=a.map(function(o){return n.getText(o)}):a=n.getText(a),(0,h.isNil)(a)||a===""?i.push(null):i.push(a)}),i},e.prototype.getOffsetVector=function(r){r===void 0&&(r=0);var t=this.getCoordinate(),i=0;return(0,h.isNumber)(r)&&(i=r),t.isTransposed?t.applyMatrix(i,0):t.applyMatrix(0,i)},e.prototype.getGeometryShapes=function(){var r=this.geometry,t={};return(0,h.each)(r.elementsMap,function(i,n){t[n]=i.shape}),(0,h.each)(r.getOffscreenGroup().getChildren(),function(i){var n=r.getElementId(i.get("origin").mappingData);t[n]=i}),t},e}(),Qn=M0;function To(e,r,t){if(!e)return t;var i;if(e.callback&&e.callback.length>1){var n=Array(e.callback.length-1).fill("");i=e.mapping.apply(e,(0,g.__spreadArray)([r],(0,g.__read)(n),!1)).join("")}else i=e.mapping(r).join("");return i||t}var Gr={hexagon:function(e,r,t){var i=t/2*Math.sqrt(3);return[["M",e,r-t],["L",e+i,r-t/2],["L",e+i,r+t/2],["L",e,r+t],["L",e-i,r+t/2],["L",e-i,r-t/2],["Z"]]},bowtie:function(e,r,t){var i=t-1.5;return[["M",e-t,r-i],["L",e+t,r+i],["L",e+t,r-i],["L",e-t,r+i],["Z"]]},cross:function(e,r,t){return[["M",e-t,r-t],["L",e+t,r+t],["M",e+t,r-t],["L",e-t,r+t]]},tick:function(e,r,t){return[["M",e-t/2,r-t],["L",e+t/2,r-t],["M",e,r-t],["L",e,r+t],["M",e-t/2,r+t],["L",e+t/2,r+t]]},plus:function(e,r,t){return[["M",e-t,r],["L",e+t,r],["M",e,r-t],["L",e,r+t]]},hyphen:function(e,r,t){return[["M",e-t,r],["L",e+t,r]]},line:function(e,r,t){return[["M",e,r-t],["L",e,r+t]]}},F0=["line","cross","tick","plus","hyphen"];function E0(e,r){return(0,h.isFunction)(r)?r(e):(0,h.deepMix)({},e,r)}function T0(e,r){var t=e.symbol;if((0,h.isString)(t)&&F0.indexOf(t)!==-1){var i=(0,h.get)(e,"style",{}),n=(0,h.get)(i,"lineWidth",1),a=i.stroke||i.fill||r;e.style=(0,h.deepMix)({},e.style,{lineWidth:n,stroke:a,fill:null})}}function Wu(e){var r=e.symbol;(0,h.isString)(r)&&Gr[r]&&(e.symbol=Gr[r])}function Lo(e){return e.startsWith(E.LEFT)||e.startsWith(E.RIGHT)?"vertical":"horizontal"}function Hu(e,r,t,i,n){var a=t.getScale(t.type);if(a.isCategory){var o=a.field,s=r.getAttribute("color"),l=r.getAttribute("shape"),u=e.getTheme().defaultColor,c=r.coordinate.isPolar;return a.getTicks().map(function(f,v){var d,p=f.text,y=f.value,m=p,x=a.invert(y),_=e.filterFieldData(o,[(d={},d[o]=x,d)]).length===0;(0,h.each)(e.views,function(A){var F;A.filterFieldData(o,[(F={},F[o]=x,F)]).length||(_=!0)});var w=To(s,x,u),b=To(l,x,"point"),S=r.getShapeMarker(b,{color:w,isInPolar:c}),C=n;return(0,h.isFunction)(C)&&(C=C(m,v,(0,g.__assign)({name:m,value:x},(0,h.deepMix)({},i,S)))),S=(0,h.deepMix)({},i,S,Oe((0,g.__assign)({},C),["style"])),T0(S,w),C&&C.style&&(S.style=E0(S.style,C.style)),Wu(S),{id:x,name:m,value:x,marker:S,unchecked:_}})}return[]}function L0(e,r,t){return t.map(function(i,n){var a=r;(0,h.isFunction)(a)&&(a=a(i.name,n,(0,h.deepMix)({},e,i)));var o=(0,h.isFunction)(i.marker)?i.marker(i.name,n,(0,h.deepMix)({},e,i)):i.marker,s=(0,h.deepMix)({},e,a,o);return Wu(s),i.marker=s,i})}function Yu(e,r){var t=(0,h.get)(e,["components","legend"],{});return(0,h.deepMix)({},(0,h.get)(t,["common"],{}),(0,h.deepMix)({},(0,h.get)(t,[r],{})))}function Io(e){return e?!1:e==null||isNaN(e)}function Xu(e){if((0,h.isArray)(e))return Io(e[1].y);var r=e.y;return(0,h.isArray)(r)?Io(r[0]):Io(r)}function Jn(e,r,t){if(r===void 0&&(r=!1),t===void 0&&(t=!0),!e.length||e.length===1&&!t)return[];if(r){for(var i=[],n=0,a=e.length;n0&&(d[0][0]="L")),a=a.concat(d)}),a.push(["Z"])}return a}function ta(e,r,t,i,n){for(var a=fe(e,r,!r,"lineWidth"),o=e.connectNulls,s=e.isInCircle,l=e.points,u=e.showSinglePoint,c=Jn(l,o,u),f=[],v=0,d=c.length;vo&&(o=l),l=i[0]}));var m=this.scales[p];try{for(var x=(0,g.__values)(t),_=x.next();!_.done;_=x.next()){var w=_.value,b=this.getDrawCfg(w),S=b.x,C=b.y,A=m.scale(w[rt][p]);this.drawGrayScaleBlurredCircle(S-u.x,C-c.y,n+a,A,y)}}catch(I){o={error:I}}finally{try{_&&!_.done&&(s=x.return)&&s.call(x)}finally{if(o)throw o.error}}var F=y.getImageData(0,0,f,v);this.clearShadowCanvasCtx(),this.colorize(F),y.putImageData(F,0,0);var P=this.getImageShape();P.attr("x",u.x),P.attr("y",c.y),P.attr("width",f),P.attr("height",v),P.attr("img",y.canvas),P.set("origin",this.getShapeInfo(t))},r.prototype.getDefaultSize=function(){var t=this.getAttribute("position"),i=this.coordinate;return Math.min(i.getWidth()/(t.scales[0].ticks.length*4),i.getHeight()/(t.scales[1].ticks.length*4))},r.prototype.clearShadowCanvasCtx=function(){var t=this.getShadowCanvasCtx();t.clearRect(0,0,t.canvas.width,t.canvas.height)},r.prototype.getShadowCanvasCtx=function(){var t=this.shadowCanvas;return t||(t=document.createElement("canvas"),this.shadowCanvas=t),t.width=this.coordinate.getWidth(),t.height=this.coordinate.getHeight(),t.getContext("2d")},r.prototype.getGrayScaleBlurredCanvas=function(){return this.grayScaleBlurredCanvas||(this.grayScaleBlurredCanvas=document.createElement("canvas")),this.grayScaleBlurredCanvas},r.prototype.drawGrayScaleBlurredCircle=function(t,i,n,a,o){var s=this.getGrayScaleBlurredCanvas();o.globalAlpha=a,o.drawImage(s,t-n,i-n)},r.prototype.colorize=function(t){for(var i=this.getAttribute("color"),n=t.data,a=this.paletteCache,o=3;or&&(t=t?r/(1+i/t):0,i=r-t),n+a>r&&(n=n?r/(1+a/n):0,a=r-n),[t||0,i||0,n||0,a||0]}function tc(e,r,t){var i=[];if(t.isRect){var n=t.isTransposed?{x:t.start.x,y:r[0].y}:{x:r[0].x,y:t.start.y},a=t.isTransposed?{x:t.end.x,y:r[2].y}:{x:r[3].x,y:t.end.y},o=(0,h.get)(e,["background","style","radius"]);if(o){var s=t.isTransposed?Math.abs(r[0].y-r[2].y):r[2].x-r[1].x,l=t.isTransposed?t.getWidth():t.getHeight(),u=(0,g.__read)(Ju(o,Math.min(s,l)),4),c=u[0],f=u[1],v=u[2],d=u[3],p=t.isTransposed&&t.isReflect("y"),y=p?0:1,m=function(C){return p?-C:C};i.push(["M",n.x,a.y+m(c)]),c!==0&&i.push(["A",c,c,0,0,y,n.x+c,a.y]),i.push(["L",a.x-f,a.y]),f!==0&&i.push(["A",f,f,0,0,y,a.x,a.y+m(f)]),i.push(["L",a.x,n.y-m(v)]),v!==0&&i.push(["A",v,v,0,0,y,a.x-v,n.y]),i.push(["L",n.x+d,n.y]),d!==0&&i.push(["A",d,d,0,0,y,n.x,n.y-m(d)])}else i.push(["M",n.x,n.y]),i.push(["L",a.x,n.y]),i.push(["L",a.x,a.y]),i.push(["L",n.x,a.y]),i.push(["L",n.x,n.y]);i.push(["z"])}if(t.isPolar){var x=t.getCenter(),_=Xi(e,t),w=_.startAngle,b=_.endAngle;if(t.type!=="theta"&&!t.isTransposed)i=_r(x.x,x.y,t.getRadius(),w,b);else{var S=function(F){return Math.pow(F,2)},c=Math.sqrt(S(x.x-r[0].x)+S(x.y-r[0].y)),f=Math.sqrt(S(x.x-r[2].x)+S(x.y-r[2].y));i=_r(x.x,x.y,c,t.startAngle,t.endAngle,f)}}return i}function j0(e,r,t){var i=t.getWidth(),n=t.getHeight(),a=t.type==="rect",o=[],s=(e[2].x-e[1].x)/2,l=t.isTransposed?s*n/i:s*i/n;return r==="round"?(a?(o.push(["M",e[0].x,e[0].y+l]),o.push(["L",e[1].x,e[1].y-l]),o.push(["A",s,s,0,0,1,e[2].x,e[2].y-l]),o.push(["L",e[3].x,e[3].y+l]),o.push(["A",s,s,0,0,1,e[0].x,e[0].y+l])):(o.push(["M",e[0].x,e[0].y]),o.push(["L",e[1].x,e[1].y]),o.push(["A",s,s,0,0,1,e[2].x,e[2].y]),o.push(["L",e[3].x,e[3].y]),o.push(["A",s,s,0,0,1,e[0].x,e[0].y])),o.push(["z"])):o=Bo(e),o}function ec(e,r,t){var i=[];return(0,h.isNil)(r)?t?i.push(["M",e[0].x,e[0].y],["L",e[1].x,e[1].y],["L",(e[2].x+e[3].x)/2,(e[2].y+e[3].y)/2],["Z"]):i.push(["M",e[0].x,e[0].y],["L",e[1].x,e[1].y],["L",e[2].x,e[2].y],["L",e[3].x,e[3].y],["Z"]):i.push(["M",e[0].x,e[0].y],["L",e[1].x,e[1].y],["L",r[1].x,r[1].y],["L",r[0].x,r[0].y],["Z"]),i}function en(e,r){return[r,e]}function Z0(e,r,t){var i,n,a,o,s,l,u,c=(0,g.__read)((0,g.__spreadArray)([],(0,g.__read)(e),!1),4),f=c[0],v=c[1],d=c[2],p=c[3],y=(0,g.__read)(typeof t=="number"?Array(4).fill(t):t,4),m=y[0],x=y[1],_=y[2],w=y[3];r.isTransposed&&(i=(0,g.__read)(en(v,p),2),v=i[0],p=i[1]),r.isReflect("y")&&(n=(0,g.__read)(en(f,v),2),f=n[0],v=n[1],a=(0,g.__read)(en(d,p),2),d=a[0],p=a[1]),r.isReflect("x")&&(o=(0,g.__read)(en(f,p),2),f=o[0],p=o[1],s=(0,g.__read)(en(v,d),2),v=s[0],d=s[1]);var b=[],S=function(C){return Math.abs(C)};return l=(0,g.__read)(Ju([m,x,_,w],Math.min(S(p.x-f.x),S(v.y-f.y))).map(function(C){return S(C)}),4),m=l[0],x=l[1],_=l[2],w=l[3],r.isTransposed&&(u=(0,g.__read)([w,m,x,_],4),m=u[0],x=u[1],_=u[2],w=u[3]),f.yo&&(n=o)}return n}function K0(e,r){if(r){var t=(0,h.flatten)(e),i=(0,h.valuesOfKey)(t,r);return i.length}return e.length}function Ro(e){var r=e.theme,t=e.coordinate,i=e.getXScale(),n=i.values,a=e.beforeMappingData,o=n.length,s=Ui(e.coordinate),l=e.intervalPadding,u=e.dodgePadding,c=e.maxColumnWidth||r.maxColumnWidth,f=e.minColumnWidth||r.minColumnWidth,v=e.columnWidthRatio||r.columnWidthRatio,d=e.multiplePieWidthRatio||r.multiplePieWidthRatio,p=e.roseWidthRatio||r.roseWidthRatio;if(i.isLinear&&n.length>1){n.sort();var y=q0(n,i);o=(i.max-i.min)/y,n.length>o&&(o=n.length)}var m=i.range,x=1/o,_=1;if(t.isPolar?t.isTransposed&&o>1?_=d:_=p:(i.isLinear&&(x*=m[1]-m[0]),_=v),!(0,h.isNil)(l)&&l>=0){var w=l/s;x=(1-(o-1)*w)/o}else x*=_;if(e.getAdjust("dodge")){var b=e.getAdjust("dodge"),S=b.dodgeBy,C=K0(a,S);if(!(0,h.isNil)(u)&&u>=0){var A=u/s;x=(x-A*(C-1))/C}else!(0,h.isNil)(l)&&l>=0&&(x*=_),x=x/C;x=x>=0?x:0}if(!(0,h.isNil)(c)&&c>=0){var F=c/s;x>F&&(x=F)}if(!(0,h.isNil)(f)&&f>=0){var P=f/s;x0&&!(0,h.get)(i,[n,"min"])&&t.change({min:0}),o<=0&&!(0,h.get)(i,[n,"max"])&&t.change({max:0}))}},r.prototype.getDrawCfg=function(t){var i=e.prototype.getDrawCfg.call(this,t);return i.background=this.background,i},r}(Cr),Q0=$0,J0=function(e){(0,g.__extends)(r,e);function r(t){var i=e.call(this,t)||this;i.type="line";var n=t.sortable,a=n===void 0?!1:n;return i.sortable=a,i}return r}(ko),tm=J0,rc=["circle","square","bowtie","diamond","hexagon","triangle","triangle-down"],em=["cross","tick","plus","hyphen","line"];function No(e,r,t,i,n){var a,o,s=fe(r,n,!n,"r"),l=e.parsePoints(r.points),u=l[0];if(r.isStack)u=l[1];else if(l.length>1){var c=t.addGroup();try{for(var f=(0,g.__values)(l),v=f.next();!v.done;v=f.next()){var d=v.value;c.addShape({type:"marker",attrs:(0,g.__assign)((0,g.__assign)((0,g.__assign)({},s),{symbol:Gr[i]||i}),d)})}}catch(p){a={error:p}}finally{try{v&&!v.done&&(o=f.return)&&o.call(f)}finally{if(a)throw a.error}}return c}return t.addShape({type:"marker",attrs:(0,g.__assign)((0,g.__assign)((0,g.__assign)({},s),{symbol:Gr[i]||i}),u)})}var qL=Sr("point",{defaultShapeType:"hollow-circle",getDefaultPoints:function(e){return Oo(e)}});(0,h.each)(rc,function(e){Zt("point","hollow-".concat(e),{draw:function(r,t){return No(this,r,t,e,!0)},getMarker:function(r){var t=r.color;return{symbol:Gr[e]||e,style:{r:4.5,stroke:t,fill:null}}}})});var KL=null,rm=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="point",t.shapeType="point",t.generatePoints=!0,t}return r.prototype.getDrawCfg=function(t){var i=e.prototype.getDrawCfg.call(this,t);return(0,g.__assign)((0,g.__assign)({},i),{isStack:!!this.getAdjust("stack")})},r}(Cr),im=rm;function nm(e){for(var r=e[0],t=1,i=[["M",r.x,r.y]];t2?"weight":"normal",a;if(e.isInCircle){var o={x:0,y:1};return n==="normal"?a=fm(i[0],i[1],o):(t.fill=t.stroke,a=vm(i,o)),a=this.parsePath(a),r.addShape("path",{attrs:(0,g.__assign)((0,g.__assign)({},t),{path:a})})}else{if(n==="normal")return i=this.parsePoints(i),a=Hl((i[1].x+i[0].x)/2,i[0].y,Math.abs(i[1].x-i[0].x)/2,Math.PI,Math.PI*2),r.addShape("path",{attrs:(0,g.__assign)((0,g.__assign)({},t),{path:a})});var s=zo(i[1],i[3]),l=zo(i[2],i[0]);return a=[["M",i[0].x,i[0].y],["L",i[1].x,i[1].y],s,["L",i[3].x,i[3].y],["L",i[2].x,i[2].y],l,["Z"]],a=this.parsePath(a),t.fill=t.stroke,r.addShape("path",{attrs:(0,g.__assign)((0,g.__assign)({},t),{path:a})})}},getMarker:function(e){return{symbol:"circle",style:{r:4.5,fill:e.color}}}});function dm(e,r){var t=zo(e,r),i=[["M",e.x,e.y]];return i.push(t),i}Zt("edge","smooth",{draw:function(e,r){var t=fe(e,!0,!1,"lineWidth"),i=e.points,n=this.parsePath(dm(i[0],i[1]));return r.addShape("path",{attrs:(0,g.__assign)((0,g.__assign)({},t),{path:n})})},getMarker:function(e){return{symbol:"circle",style:{r:4.5,fill:e.color}}}});var ea=1/3;function gm(e,r){var t=[];t.push({x:e.x,y:e.y*(1-ea)+r.y*ea}),t.push({x:r.x,y:e.y*(1-ea)+r.y*ea}),t.push(r);var i=[["M",e.x,e.y]];return(0,h.each)(t,function(n){i.push(["L",n.x,n.y])}),i}Zt("edge","vhv",{draw:function(e,r){var t=fe(e,!0,!1,"lineWidth"),i=e.points,n=this.parsePath(gm(i[0],i[1]));return r.addShape("path",{attrs:(0,g.__assign)((0,g.__assign)({},t),{path:n})})},getMarker:function(e){return{symbol:"circle",style:{r:4.5,fill:e.color}}}}),Zt("interval","funnel",{getPoints:function(e){return e.size=e.size*2,Do(e)},draw:function(e,r){var t=fe(e,!1,!0),i=this.parsePath(ec(e.points,e.nextPoints,!1)),n=r.addShape("path",{attrs:(0,g.__assign)((0,g.__assign)({},t),{path:i}),name:"interval"});return n},getMarker:function(e){var r=e.color;return{symbol:"square",style:{r:4,fill:r}}}}),Zt("interval","hollow-rect",{draw:function(e,r){var t=fe(e,!0,!1),i=r,n=e==null?void 0:e.background;if(n){i=r.addGroup();var a=Zu(e),o=tc(e,this.parsePoints(e.points),this.coordinate);i.addShape("path",{attrs:(0,g.__assign)((0,g.__assign)({},a),{path:o}),capture:!1,zIndex:-1,name:Mo})}var s=this.parsePath(Bo(e.points)),l=i.addShape("path",{attrs:(0,g.__assign)((0,g.__assign)({},t),{path:s}),name:"interval"});return n?i:l},getMarker:function(e){var r=e.color,t=e.isInPolar;return t?{symbol:"circle",style:{r:4.5,stroke:r,fill:null}}:{symbol:"square",style:{r:4,stroke:r,fill:null}}}});function pm(e){var r=e.x,t=e.y,i=e.y0;return(0,h.isArray)(t)?t.map(function(n,a){return{x:(0,h.isArray)(r)?r[a]:r,y:n}}):[{x:r,y:i},{x:r,y:t}]}Zt("interval","line",{getPoints:function(e){return pm(e)},draw:function(e,r){var t=fe(e,!0,!1,"lineWidth"),i=Oe((0,g.__assign)({},t),["fill"]),n=this.parsePath(Bo(e.points,!1)),a=r.addShape("path",{attrs:(0,g.__assign)((0,g.__assign)({},i),{path:n}),name:"interval"});return a},getMarker:function(e){var r=e.color;return{symbol:function(t,i,n){return[["M",t,i-n],["L",t,i+n]]},style:{r:5,stroke:r}}}}),Zt("interval","pyramid",{getPoints:function(e){return e.size=e.size*2,Do(e)},draw:function(e,r){var t=fe(e,!1,!0),i=this.parsePath(ec(e.points,e.nextPoints,!0)),n=r.addShape("path",{attrs:(0,g.__assign)((0,g.__assign)({},t),{path:i}),name:"interval"});return n},getMarker:function(e){var r=e.color;return{symbol:"square",style:{r:4,fill:r}}}});function ym(e){var r,t=e.x,i=e.y,n=e.y0,a=e.size,o,s;(0,h.isArray)(i)?(r=(0,g.__read)(i,2),o=r[0],s=r[1]):(o=n,s=i);var l=t+a/2,u=t-a/2;return[{x:t,y:o},{x:t,y:s},{x:u,y:o},{x:l,y:o},{x:u,y:s},{x:l,y:s}]}function mm(e){return[["M",e[0].x,e[0].y],["L",e[1].x,e[1].y],["M",e[2].x,e[2].y],["L",e[3].x,e[3].y],["M",e[4].x,e[4].y],["L",e[5].x,e[5].y]]}Zt("interval","tick",{getPoints:function(e){return ym(e)},draw:function(e,r){var t=fe(e,!0,!1),i=this.parsePath(mm(e.points)),n=r.addShape("path",{attrs:(0,g.__assign)((0,g.__assign)({},t),{path:i}),name:"interval"});return n},getMarker:function(e){var r=e.color;return{symbol:function(t,i,n){return[["M",t-n/2,i-n],["L",t+n/2,i-n],["M",t,i-n],["L",t,i+n],["M",t-n/2,i+n],["L",t+n/2,i+n]]},style:{r:5,stroke:r}}}});var xm=function(e,r,t){var i=e.x,n=e.y,a=r.x,o=r.y,s;switch(t){case"hv":s=[{x:a,y:n}];break;case"vh":s=[{x:i,y:o}];break;case"hvh":var l=(a+i)/2;s=[{x:l,y:n},{x:l,y:o}];break;case"vhv":var u=(n+o)/2;s=[{x:i,y:u},{x:a,y:u}];break;default:break}return s};function _m(e,r){var t=[];return(0,h.each)(e,function(i,n){var a=e[n+1];if(t.push(i),a){var o=xm(i,a,r);t=t.concat(o)}}),t}function wm(e){return e.map(function(r,t){return t===0?["M",r.x,r.y]:["L",r.x,r.y]})}function bm(e,r){var t=Jn(e.points,e.connectNulls,e.showSinglePoint),i=[];return(0,h.each)(t,function(n){var a=_m(n,r);i=i.concat(wm(a))}),(0,g.__assign)((0,g.__assign)({},fe(e,!0,!1,"lineWidth")),{path:i})}(0,h.each)(["hv","vh","hvh","vhv"],function(e){Zt("line",e,{draw:function(r,t){var i=bm(r,e),n=t.addShape({type:"path",attrs:i,name:"line"});return n},getMarker:function(r){return qu(r,e)}})}),(0,h.each)(em,function(e){Zt("point",e,{draw:function(r,t){return No(this,r,t,e,!0)},getMarker:function(r){var t=r.color;return{symbol:Gr[e],style:{r:4.5,stroke:t,fill:null}}}})}),Zt("point","image",{draw:function(e,r){var t,i,n=fe(e,!1,!1,"r").r,a=this.parsePoints(e.points),o=a[0];if(e.isStack)o=a[1];else if(a.length>1){var s=r.addGroup();try{for(var l=(0,g.__values)(a),u=l.next();!u.done;u=l.next()){var c=u.value;s.addShape("image",{attrs:{x:c.x-n/2,y:c.y-n,width:n,height:n,img:e.shape[1]}})}}catch(f){t={error:f}}finally{try{u&&!u.done&&(i=l.return)&&i.call(l)}finally{if(t)throw t.error}}return s}return r.addShape("image",{attrs:{x:o.x-n/2,y:o.y-n,width:n,height:n,img:e.shape[1]}})},getMarker:function(e){var r=e.color;return{symbol:"circle",style:{r:4.5,fill:r}}}}),(0,h.each)(rc,function(e){Zt("point",e,{draw:function(r,t){return No(this,r,t,e,!1)},getMarker:function(r){var t=r.color;return{symbol:Gr[e]||e,style:{r:4.5,fill:t}}}})});function ic(e){var r=(0,h.isArray)(e)?e:[e],t=r[0],i=r[r.length-1],n=r.length>1?r[1]:t,a=r.length>3?r[3]:i,o=r.length>2?r[2]:n;return{min:t,max:i,min1:n,max1:a,median:o}}function nc(e,r,t){var i=t/2,n;if((0,h.isArray)(r)){var a=ic(r),o=a.min,s=a.max,l=a.median,u=a.min1,c=a.max1,f=e-i,v=e+i;n=[[f,s],[v,s],[e,s],[e,c],[f,u],[f,c],[v,c],[v,u],[e,u],[e,o],[f,o],[v,o],[f,l],[v,l]]}else{r=(0,h.isNil)(r)?.5:r;var d=ic(e),o=d.min,s=d.max,l=d.median,u=d.min1,c=d.max1,p=r-i,y=r+i;n=[[o,p],[o,y],[o,r],[u,r],[u,p],[u,y],[c,y],[c,p],[c,r],[s,r],[s,p],[s,y],[l,p],[l,y]]}return n.map(function(m){return{x:m[0],y:m[1]}})}function Sm(e){return[["M",e[0].x,e[0].y],["L",e[1].x,e[1].y],["M",e[2].x,e[2].y],["L",e[3].x,e[3].y],["M",e[4].x,e[4].y],["L",e[5].x,e[5].y],["L",e[6].x,e[6].y],["L",e[7].x,e[7].y],["L",e[4].x,e[4].y],["Z"],["M",e[8].x,e[8].y],["L",e[9].x,e[9].y],["M",e[10].x,e[10].y],["L",e[11].x,e[11].y],["M",e[12].x,e[12].y],["L",e[13].x,e[13].y]]}Zt("schema","box",{getPoints:function(e){var r=e.x,t=e.y,i=e.size;return nc(r,t,i)},draw:function(e,r){var t=fe(e,!0,!1),i=this.parsePath(Sm(e.points)),n=r.addShape("path",{attrs:(0,g.__assign)((0,g.__assign)({},t),{path:i,name:"schema"})});return n},getMarker:function(e){var r=e.color;return{symbol:function(t,i,n){var a=[i-6,i-3,i,i+3,i+6],o=nc(t,a,n);return[["M",o[0].x+1,o[0].y],["L",o[1].x-1,o[1].y],["M",o[2].x,o[2].y],["L",o[3].x,o[3].y],["M",o[4].x,o[4].y],["L",o[5].x,o[5].y],["L",o[6].x,o[6].y],["L",o[7].x,o[7].y],["L",o[4].x,o[4].y],["Z"],["M",o[8].x,o[8].y],["L",o[9].x,o[9].y],["M",o[10].x+1,o[10].y],["L",o[11].x-1,o[11].y],["M",o[12].x,o[12].y],["L",o[13].x,o[13].y]]},style:{r:6,lineWidth:1,stroke:r}}}});function Cm(e){var r=(0,h.isArray)(e)?e:[e],t=r.sort(function(i,n){return n-i});return qp(t,4,t[t.length-1])}function ac(e,r,t){var i=Cm(r);return[{x:e,y:i[0]},{x:e,y:i[1]},{x:e-t/2,y:i[2]},{x:e-t/2,y:i[1]},{x:e+t/2,y:i[1]},{x:e+t/2,y:i[2]},{x:e,y:i[2]},{x:e,y:i[3]}]}function Am(e){return[["M",e[0].x,e[0].y],["L",e[1].x,e[1].y],["M",e[2].x,e[2].y],["L",e[3].x,e[3].y],["L",e[4].x,e[4].y],["L",e[5].x,e[5].y],["Z"],["M",e[6].x,e[6].y],["L",e[7].x,e[7].y]]}Zt("schema","candle",{getPoints:function(e){var r=e.x,t=e.y,i=e.size;return ac(r,t,i)},draw:function(e,r){var t=fe(e,!0,!0),i=this.parsePath(Am(e.points)),n=r.addShape("path",{attrs:(0,g.__assign)((0,g.__assign)({},t),{path:i,name:"schema"})});return n},getMarker:function(e){var r=e.color;return{symbol:function(t,i,n){var a=[i+7.5,i+3,i-3,i-7.5],o=ac(t,a,n);return[["M",o[0].x,o[0].y],["L",o[1].x,o[1].y],["M",o[2].x,o[2].y],["L",o[3].x,o[3].y],["L",o[4].x,o[4].y],["L",o[5].x,o[5].y],["Z"],["M",o[6].x,o[6].y],["L",o[7].x,o[7].y]]},style:{lineWidth:1,stroke:r,fill:r,r:6}}}});function Mm(e,r){var t=Math.abs(e[0].x-e[2].x),i=Math.abs(e[0].y-e[2].y),n=Math.min(t,i);r&&(n=(0,h.clamp)(r,0,Math.min(t,i))),n=n/2;var a=(e[0].x+e[2].x)/2,o=(e[0].y+e[2].y)/2;return{x:a-n,y:o-n,width:n*2,height:n*2}}Zt("polygon","square",{draw:function(e,r){if(!(0,h.isEmpty)(e.points)){var t=fe(e,!0,!0),i=this.parsePoints(e.points);return r.addShape("rect",{attrs:(0,g.__assign)((0,g.__assign)({},t),Mm(i,e.size)),name:"polygon"})}},getMarker:function(e){var r=e.color;return{symbol:"square",style:{r:4,fill:r}}}}),Zt("violin","smooth",{draw:function(e,r){var t=fe(e,!0,!0),i=this.parsePath(ju(e.points));return r.addShape("path",{attrs:(0,g.__assign)((0,g.__assign)({},t),{path:i})})},getMarker:function(e){var r=e.color;return{symbol:"circle",style:{stroke:null,r:4,fill:r}}}}),Zt("violin","hollow",{draw:function(e,r){var t=fe(e,!0,!1),i=this.parsePath(Uu(e.points));return r.addShape("path",{attrs:(0,g.__assign)((0,g.__assign)({},t),{path:i})})},getMarker:function(e){var r=e.color;return{symbol:"circle",style:{r:4,fill:null,stroke:r}}}}),Zt("violin","hollow-smooth",{draw:function(e,r){var t=fe(e,!0,!1),i=this.parsePath(ju(e.points));return r.addShape("path",{attrs:(0,g.__assign)((0,g.__assign)({},t),{path:i})})},getMarker:function(e){var r=e.color;return{symbol:"circle",style:{r:4,fill:null,stroke:r}}}});var Fm=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getLabelValueDir=function(t){var i="y",n=t.points;return n[0][i]<=n[2][i]?1:-1},r.prototype.getLabelOffsetPoint=function(t,i,n,a){var o,s=e.prototype.getLabelOffsetPoint.call(this,t,i,n),l=this.getCoordinate(),u=l.isTransposed,c=u?"x":"y",f=this.getLabelValueDir(t.mappingData);return s=(0,g.__assign)((0,g.__assign)({},s),(o={},o[c]=s[c]*f,o)),l.isReflect("x")&&(s=(0,g.__assign)((0,g.__assign)({},s),{x:s.x*-1})),l.isReflect("y")&&(s=(0,g.__assign)((0,g.__assign)({},s),{y:s.y*-1})),s},r.prototype.getThemedLabelCfg=function(t){var i=this.geometry,n=this.getDefaultLabelCfg(),a=i.theme;return(0,h.deepMix)({},n,a.labels,t.position==="middle"?{offset:0}:{},t)},r.prototype.setLabelPosition=function(t,i,n,a){var o=this.getCoordinate(),s=o.isTransposed,l=i.points,u=o.convert(l[0]),c=o.convert(l[2]),f=this.getLabelValueDir(i),v,d,p,y,m=(0,h.isArray)(i.shape)?i.shape[0]:i.shape;if(m==="funnel"||m==="pyramid"){var x=(0,h.get)(i,"nextPoints"),_=(0,h.get)(i,"points");if(x){var w=o.convert(_[0]),b=o.convert(_[1]),S=o.convert(x[0]),C=o.convert(x[1]);s?(v=Math.min(S.y,w.y),p=Math.max(S.y,w.y),d=(b.x+C.x)/2,y=(w.x+S.x)/2):(v=Math.min((b.y+C.y)/2,(w.y+S.y)/2),p=Math.max((b.y+C.y)/2,(w.y+S.y)/2),d=C.x,y=w.x)}else v=Math.min(c.y,u.y),p=Math.max(c.y,u.y),d=c.x,y=u.x}else v=Math.min(c.y,u.y),p=Math.max(c.y,u.y),d=c.x,y=u.x;switch(a){case"right":t.x=d,t.y=(v+p)/2,t.textAlign=(0,h.get)(t,"textAlign",f>0?"left":"right");break;case"left":t.x=y,t.y=(v+p)/2,t.textAlign=(0,h.get)(t,"textAlign",f>0?"left":"right");break;case"bottom":s&&(t.x=(d+y)/2),t.y=p,t.textAlign=(0,h.get)(t,"textAlign","center"),t.textBaseline=(0,h.get)(t,"textBaseline",f>0?"bottom":"top");break;case"middle":s&&(t.x=(d+y)/2),t.y=(v+p)/2,t.textAlign=(0,h.get)(t,"textAlign","center"),t.textBaseline=(0,h.get)(t,"textBaseline","middle");break;case"top":s&&(t.x=(d+y)/2),t.y=v,t.textAlign=(0,h.get)(t,"textAlign","center"),t.textBaseline=(0,h.get)(t,"textBaseline",f>0?"bottom":"top");break;default:break}},r}(Qn),Em=Fm,ra=Math.PI/2,Tm=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getLabelOffset=function(t){var i=this.getCoordinate(),n=0;if((0,h.isNumber)(t))n=t;else if((0,h.isString)(t)&&t.indexOf("%")!==-1){var a=i.getRadius();i.innerRadius>0&&(a=a*(1-i.innerRadius)),n=parseFloat(t)*.01*a}return n},r.prototype.getLabelItems=function(t){var i=e.prototype.getLabelItems.call(this,t),n=this.geometry.getYScale();return(0,h.map)(i,function(a){if(a&&n){var o=n.scale((0,h.get)(a.data,n.field));return(0,g.__assign)((0,g.__assign)({},a),{percent:o})}return a})},r.prototype.getLabelAlign=function(t){var i=this.getCoordinate(),n;if(t.labelEmit)n=t.angle<=Math.PI/2&&t.angle>=-Math.PI/2?"left":"right";else if(!i.isTransposed)n="center";else{var a=i.getCenter(),o=t.offset;Math.abs(t.x-a.x)<1?n="center":t.angle>Math.PI||t.angle<=0?n=o>0?"left":"right":n=o>0?"right":"left"}return n},r.prototype.getLabelPoint=function(t,i,n){var a=1,o,s=t.content[n];this.isToMiddle(i)?o=this.getMiddlePoint(i.points):(t.content.length===1&&n===0?n=1:n===0&&(a=-1),o=this.getArcPoint(i,n));var l=t.offset*a,u=this.getPointAngle(o),c=t.labelEmit,f=this.getCirclePoint(u,l,o,c);return f.r===0?f.content="":(f.content=s,f.angle=u,f.color=i.color),f.rotate=t.autoRotate?this.getLabelRotate(u,l,c):t.rotate,f.start={x:o.x,y:o.y},f},r.prototype.getArcPoint=function(t,i){return i===void 0&&(i=0),!(0,h.isArray)(t.x)&&!(0,h.isArray)(t.y)?{x:t.x,y:t.y}:{x:(0,h.isArray)(t.x)?t.x[i]:t.x,y:(0,h.isArray)(t.y)?t.y[i]:t.y}},r.prototype.getPointAngle=function(t){return ui(this.getCoordinate(),t)},r.prototype.getCirclePoint=function(t,i,n,a){var o=this.getCoordinate(),s=o.getCenter(),l=zn(o,n);if(l===0)return(0,g.__assign)((0,g.__assign)({},s),{r:l});var u=t;if(o.isTransposed&&l>i&&!a){var c=Math.asin(i/(2*l));u=t+c*2}else l=l+i;return{x:s.x+l*Math.cos(u),y:s.y+l*Math.sin(u),r:l}},r.prototype.getLabelRotate=function(t,i,n){var a=t+ra;return n&&(a-=ra),a&&(a>ra?a=a-Math.PI:a<-ra&&(a=a+Math.PI)),a},r.prototype.getMiddlePoint=function(t){var i=this.getCoordinate(),n=t.length,a={x:0,y:0};return(0,h.each)(t,function(o){a.x+=o.x,a.y+=o.y}),a.x/=n,a.y/=n,a=i.convert(a),a},r.prototype.isToMiddle=function(t){return t.x.length>2},r}(Qn),oc=Tm,Lm=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.defaultLayout="distribute",t}return r.prototype.getDefaultLabelCfg=function(t,i){var n=e.prototype.getDefaultLabelCfg.call(this,t,i);return(0,h.deepMix)({},n,(0,h.get)(this.geometry.theme,"pieLabels",{}))},r.prototype.getLabelOffset=function(t){return e.prototype.getLabelOffset.call(this,t)||0},r.prototype.getLabelRotate=function(t,i,n){var a;return i<0&&(a=t,a>Math.PI/2&&(a=a-Math.PI),a<-Math.PI/2&&(a=a+Math.PI)),a},r.prototype.getLabelAlign=function(t){var i=this.getCoordinate(),n=i.getCenter(),a;return t.angle<=Math.PI/2&&t.x>=n.x?a="left":a="right",t.offset<=0&&(a==="right"?a="left":a="right"),a},r.prototype.getArcPoint=function(t){return t},r.prototype.getPointAngle=function(t){var i=this.getCoordinate(),n={x:(0,h.isArray)(t.x)?t.x[0]:t.x,y:t.y[0]},a={x:(0,h.isArray)(t.x)?t.x[1]:t.x,y:t.y[1]},o,s=ui(i,n);if(t.points&&t.points[0].y===t.points[1].y)o=s;else{var l=ui(i,a);s>=l&&(l=l+Math.PI*2),o=s+(l-s)/2}return o},r.prototype.getCirclePoint=function(t,i){var n=this.getCoordinate(),a=n.getCenter(),o=n.getRadius()+i;return(0,g.__assign)((0,g.__assign)({},ge(a.x,a.y,o,t)),{angle:t,r:o})},r}(oc),Im=Lm,sc=4;function Om(e,r,t,i,n,a){var o,s,l=!0,u=i.start,c=i.end,f=Math.min(u.y,c.y),v=Math.abs(u.y-c.y),d,p=0,y=Number.MIN_VALUE,m=r.map(function(A){return A.y>p&&(p=A.y),A.yv&&(v=p-f);l;)for(m.forEach(function(A){var F=(Math.min.apply(y,A.targets)+Math.max.apply(y,A.targets))/2;A.pos=Math.min(Math.max(y,F-A.size/2),v-A.size)}),l=!1,d=m.length;d--;)if(d>0){var x=m[d-1],_=m[d];x.pos+x.size>_.pos&&(x.size+=_.size,x.targets=x.targets.concat(_.targets),x.pos+x.size>v&&(x.pos=v-x.size),m.splice(d,1),l=!0)}d=0,m.forEach(function(A){var F=f+t/2;A.targets.forEach(function(){r[d].y=A.pos+F,F+=t,d++})});var w={};try{for(var b=(0,g.__values)(e),S=b.next();!S.done;S=b.next()){var C=S.value;w[C.get("id")]=C}}catch(A){o={error:A}}finally{try{S&&!S.done&&(s=b.return)&&s.call(b)}finally{if(o)throw o.error}}r.forEach(function(A){var F=A.r*A.r,P=Math.pow(Math.abs(A.y-n.y),2);if(F0){var l=14,u=o+n,c=u*2+l*2,f={start:a.start,end:a.end},v=[[],[]];e.forEach(function(d){!d||(d.textAlign==="right"?v[0].push(d):v[1].push(d))}),v.forEach(function(d,p){var y=c/l;d.length>y&&(d.sort(function(m,x){return x["..percent"]-m["..percent"]}),d.splice(y,d.length-y)),d.sort(function(m,x){return m.y-x.y}),Om(r,d,l,f,s,p)})}(0,h.each)(e,function(d){if(d&&d.labelLine){var p=d.offset,y=d.angle,m=ge(s.x,s.y,o,y),x=ge(s.x,s.y,o+p/2,y),_=d.x+(0,h.get)(d,"offsetX",0),w=d.y+(0,h.get)(d,"offsetY",0),b={x:_-Math.cos(y)*sc,y:w-Math.sin(y)*sc};(0,h.isObject)(d.labelLine)||(d.labelLine={}),d.labelLine.path=["M ".concat(m.x),"".concat(m.y," Q").concat(x.x),"".concat(x.y," ").concat(b.x),b.y].join(",")}})}}function lc(e,r,t){var i=e.filter(function(p){return!p.invisible});i.sort(function(p,y){return p.y-y.y});var n=!0,a=t.minY,o=t.maxY,s=Math.abs(a-o),l,u=0,c=Number.MIN_VALUE,f=i.map(function(p){return p.y>u&&(u=p.y),p.ys&&(s=u-a);n;)for(f.forEach(function(p){var y=(Math.min.apply(c,p.targets)+Math.max.apply(c,p.targets))/2;p.pos=Math.min(Math.max(c,y-p.size/2),s-p.size),p.pos=Math.max(0,p.pos)}),n=!1,l=f.length;l--;)if(l>0){var v=f[l-1],d=f[l];v.pos+v.size>d.pos&&(v.size+=d.size,v.targets=v.targets.concat(d.targets),v.pos+v.size>s&&(v.pos=s-v.size),f.splice(l,1),n=!0)}l=0,f.forEach(function(p){var y=a+r/2;p.targets.forEach(function(){i[l].y=p.pos+y,y+=r,l++})})}var uc=4;function km(e,r){var t=r.getCenter(),i=r.getRadius();if(e&&e.labelLine){var n=e.angle,a=e.offset,o=ge(t.x,t.y,i,n),s=e.x+(0,h.get)(e,"offsetX",0)*(Math.cos(n)>0?1:-1),l=e.y+(0,h.get)(e,"offsetY",0)*(Math.sin(n)>0?1:-1),u={x:s-Math.cos(n)*uc,y:l-Math.sin(n)*uc},c=e.labelLine.smooth,f=[],v=u.x-t.x,d=u.y-t.y,p=Math.atan(d/v);if(v<0&&(p+=Math.PI),c===!1){(0,h.isObject)(e.labelLine)||(e.labelLine={});var y=0;(n<0&&n>-Math.PI/2||n>Math.PI*1.5)&&u.y>o.y&&(y=1),n>=0&&no.y&&(y=1),n>=Math.PI/2&&nu.y&&(y=1),(n<-Math.PI/2||n>=Math.PI&&nu.y&&(y=1);var m=a/2>4?4:Math.max(a/2-1,0),x=ge(t.x,t.y,i+m,n),_=ge(t.x,t.y,i+a/2,p),w=0;f.push("M ".concat(o.x," ").concat(o.y)),f.push("L ".concat(x.x," ").concat(x.y)),f.push("A ".concat(t.x," ").concat(t.y," 0 ").concat(w," ").concat(y," ").concat(_.x," ").concat(_.y)),f.push("L ".concat(u.x," ").concat(u.y))}else{var x=ge(t.x,t.y,i+(a/2>4?4:Math.max(a/2-1,0)),n),b=o.xMath.pow(Math.E,-16)&&f.push.apply(f,["C",u.x+b*4,u.y,2*x.x-o.x,2*x.y-o.y,o.x,o.y]),f.push("L ".concat(o.x," ").concat(o.y))}e.labelLine.path=f.join(" ")}}function Dm(e,r,t,i){var n,a,o=(0,h.filter)(e,function(F){return!(0,h.isNil)(F)}),s=r[0]&&r[0].get("coordinate");if(!!s){var l=s.getCenter(),u=s.getRadius(),c={};try{for(var f=(0,g.__values)(r),v=f.next();!v.done;v=f.next()){var d=v.value;c[d.get("id")]=d}}catch(F){n={error:F}}finally{try{v&&!v.done&&(a=f.return)&&a.call(f)}finally{if(n)throw n.error}}var p=(0,h.get)(o[0],"labelHeight",14),y=(0,h.get)(o[0],"offset",0);if(!(y<=0)){var m="left",x="right",_=(0,h.groupBy)(o,function(F){return F.xI&&(F.sort(function(V,Z){return Z.percent-V.percent}),(0,h.each)(F,function(V,Z){Z+1>I&&(c[V.id].set("visible",!1),V.invisible=!0)})),lc(F,p,A)}),(0,h.each)(_,function(F,P){(0,h.each)(F,function(I){var V=P===x,Z=c[I.id],vt=Z.getChildByIndex(0);if(vt){var yt=u+y,Bt=I.y-l.y,G=Math.pow(yt,2),at=Math.pow(Bt,2),mt=G-at>0?G-at:0,ut=Math.sqrt(mt),pt=Math.abs(Math.cos(I.angle)*yt);V?I.x=l.x+Math.max(ut,pt):I.x=l.x-Math.max(ut,pt)}vt&&(vt.attr("y",I.y),vt.attr("x",I.x)),km(I,s)})})}}}var Go=4,Bm=4,cc=4;function Rm(e,r,t){var i=r.getCenter(),n=r.getRadius(),a={x:e.x-(t?cc:-cc),y:e.y},o=ge(i.x,i.y,n+Go,e.angle),s={x:a.x,y:a.y},l={x:o.x,y:o.y},u=ge(i.x,i.y,n,e.angle),c="";if(a.y!==o.y){var f=t?4:-4;s.y=a.y,e.angle<0&&e.angle>=-Math.PI/2&&(s.x=Math.max(o.x,a.x-f),a.y0&&e.angleo.y?l.y=s.y:(l.y=o.y,l.x=Math.max(l.x,s.x-f))),e.angle>Math.PI/2&&(s.x=Math.min(o.x,a.x-f),a.y>o.y?l.y=s.y:(l.y=o.y,l.x=Math.min(l.x,s.x-f))),e.angle<-Math.PI/2&&(s.x=Math.min(o.x,a.x-f),a.ys.x||F.x===s.x&&F.y>s.y,V=(0,h.isNil)(F.offsetX)?Bm:F.offsetX,Z=ge(s.x,s.y,l+Go,F.angle),vt=p+V;F.x=s.x+(I?1:-1)*(l+vt),F.y=Z.y}}});var y=o.start,m=o.end,x="left",_="right",w=(0,h.groupBy)(e,function(F){return F.xb&&(b=Math.min(P,Math.abs(y.y-m.y)))});var S={minX:y.x,maxX:m.x,minY:s.y-b/2,maxY:s.y+b/2};(0,h.each)(w,function(F,P){var I=b/d;F.length>I&&(F.sort(function(V,Z){return Z.percent-V.percent}),(0,h.each)(F,function(V,Z){Z>I&&(u[V.id].set("visible",!1),V.invisible=!0)})),lc(F,d,S)});var C=S.minY,A=S.maxY;(0,h.each)(w,function(F,P){var I=P===_;(0,h.each)(F,function(V){var Z=(0,h.get)(u,V&&[V.id]);if(!!Z){if(V.yA){Z.set("visible",!1);return}var vt=Z.getChildByIndex(0),yt=vt.getCanvasBBox(),Bt={x:I?yt.x:yt.maxX,y:yt.y+yt.height/2};tn(vt,V.x-Bt.x,V.y-Bt.y),V.labelLine&&Rm(V,o,I)}})})}}function zm(e,r,t,i){(0,h.each)(r,function(n){var a=i.minX,o=i.minY,s=i.maxX,l=i.maxY,u=n.getCanvasBBox(),c=u.minX,f=u.minY,v=u.maxX,d=u.maxY,p=u.x,y=u.y,m=u.width,x=u.height,_=p,w=y;(cs?_=s-m:v>s&&(_=_-(v-s)),f>l?w=l-x:d>l&&(w=w-(d-l)),(_!==p||w!==y)&&tn(n,_-p,w-y)})}function Vm(e,r,t,i){(0,h.each)(r,function(n,a){var o=n.getCanvasBBox(),s=t[a].getBBox();(o.minXs.maxX||o.maxY>s.maxY)&&n.remove(!0)})}var Gm=100,hc=function(){function e(r){r===void 0&&(r={}),this.bitmap={};var t=r.xGap,i=t===void 0?1:t,n=r.yGap,a=n===void 0?8:n;this.xGap=i,this.yGap=a}return e.prototype.hasGap=function(r){for(var t=!0,i=this.bitmap,n=Math.round(r.minX),a=Math.round(r.maxX),o=Math.round(r.minY),s=Math.round(r.maxY),l=n;l<=a;l+=1){if(!i[l]){i[l]={};continue}if(l===n||l===a){for(var u=o;u<=s;u++)if(i[l][u]){t=!1;break}}else if(i[l][o]||i[l][s]){t=!1;break}}return t},e.prototype.fillGap=function(r){for(var t=this.bitmap,i=Math.round(r.minX),n=Math.round(r.maxX),a=Math.round(r.minY),o=Math.round(r.maxY),s=i;s<=n;s+=1)t[s]||(t[s]={});for(var s=i;s<=n;s+=this.xGap){for(var l=a;l<=o;l+=this.yGap)t[s][l]=!0;t[s][o]=!0}if(this.yGap!==1)for(var s=a;s<=o;s+=1)t[i][s]=!0,t[n][s]=!0;if(this.xGap!==1)for(var s=i;s<=n;s+=1)t[s][a]=!0,t[s][o]=!0},e.prototype.destroy=function(){this.bitmap={}},e}();function Wm(e,r,t){t===void 0&&(t=Gm);var i=-1,n=e.attr(),a=n.x,o=n.y,s=e.getCanvasBBox(),l=Math.sqrt(s.width*s.width+s.height*s.height),u,c=-i,f=0,v=0,d=function(x){var _=x*.1;return[_*Math.cos(_),_*Math.sin(_)]};if(r.hasGap(s))return r.fillGap(s),!0;for(var p=!1,y=0,m={};Math.min(Math.abs(f),Math.abs(v))4)return[];var r=function(n,a){return[a.x-n.x,a.y-n.y]},t=r(e[0],e[1]),i=r(e[1],e[2]);return[t,i]}function ia(e,r,t){r===void 0&&(r=0),t===void 0&&(t={x:0,y:0});var i=e.x,n=e.y;return{x:(i-t.x)*Math.cos(-r)+(n-t.y)*Math.sin(-r)+t.x,y:(t.x-i)*Math.sin(-r)+(n-t.y)*Math.cos(-r)+t.y}}function vc(e){var r=[{x:e.x,y:e.y},{x:e.x+e.width,y:e.y},{x:e.x+e.width,y:e.y+e.height},{x:e.x,y:e.y+e.height}],t=e.rotation;return t?[ia(r[0],t,r[0]),ia(r[1],t,r[0]),ia(r[2],t,r[0]),ia(r[3],t,r[0])]:r}function dc(e,r){if(e.length>4)return{min:0,max:0};var t=[];return e.forEach(function(i){t.push(Um([i.x,i.y],r))}),{min:Math.min.apply(Math,(0,g.__spreadArray)([],(0,g.__read)(t),!1)),max:Math.max.apply(Math,(0,g.__spreadArray)([],(0,g.__read)(t),!1))}}function jm(e,r){return e.max>r.min&&e.mine.x+e.width+t||r.x+r.widthe.y+e.height+t||r.y+r.height4)return[];var b=function(A,F){return[F.x-A.x,F.y-A.y]},S=b(w[0],w[1]),C=b(w[1],w[2]);return[S,C]}function f(w,b,S){b===void 0&&(b=0),S===void 0&&(S={x:0,y:0});var C=w.x,A=w.y;return{x:(C-S.x)*Math.cos(-b)+(A-S.y)*Math.sin(-b)+S.x,y:(S.x-C)*Math.sin(-b)+(A-S.y)*Math.cos(-b)+S.y}}function v(w){var b=[{x:w.x,y:w.y},{x:w.x+w.width,y:w.y},{x:w.x+w.width,y:w.y+w.height},{x:w.x,y:w.y+w.height}],S=w.rotation;return S?[f(b[0],S,b[0]),f(b[1],S,b[0]),f(b[2],S,b[0]),f(b[3],S,b[0])]:b}function d(w,b){if(w.length>4)return{min:0,max:0};var S=[];return w.forEach(function(C){S.push(u([C.x,C.y],b))}),{min:Math.min.apply(null,S),max:Math.max.apply(null,S)}}function p(w,b){return w.max>b.min&&w.minw.x+w.width+S||b.x+b.widthw.y+w.height+S||b.y+b.height=a.height:o.width>=a.width}function ax(e,r,t){var i=!!e.getAdjust("stack");return i||r.every(function(n,a){var o=t[a];return nx(e,n,o)})}function ox(e,r,t){var i=e.coordinate,n=Ee.fromObject(t.getBBox()),a=Ar(r);i.isTransposed?a.attr({x:n.minX+n.width/2,textAlign:"center"}):a.attr({y:n.minY+n.height/2,textBaseline:"middle"})}function sx(e,r,t){var i;if(t.length!==0){var n=(i=t[0])===null||i===void 0?void 0:i.get("element"),a=n==null?void 0:n.geometry;if(!(!a||a.type!=="interval")){var o=ax(a,r,t);o&&t.forEach(function(s,l){var u=r[l];ox(a,u,s)})}}}function lx(e){var r=500,t=[],i=Math.max(Math.floor(e.length/r),1);return(0,h.each)(e,function(n,a){a%i==0?t.push(n):n.set("visible",!1)}),t}function ux(e,r,t){var i;if(t.length!==0){var n=(i=t[0])===null||i===void 0?void 0:i.get("element"),a=n==null?void 0:n.geometry;if(!(!a||a.type!=="interval")){var o=lx(r),s=(0,g.__read)(a.getXYFields(),1),l=s[0],u=[],c=[],f=(0,h.groupBy)(o,function(m){return m.get("data")[l]}),v=(0,h.uniq)((0,h.map)(o,function(m){return m.get("data")[l]})),d;o.forEach(function(m){m.set("visible",!0)});var p=function(m){m&&(m.length&&c.push(m.pop()),c.push.apply(c,(0,g.__spreadArray)([],(0,g.__read)(m),!1)))};for((0,h.size)(v)>0&&(d=v.shift(),p(f[d])),(0,h.size)(v)>0&&(d=v.pop(),p(f[d])),(0,h.each)(v.reverse(),function(m){p(f[m])});c.length>0;){var y=c.shift();y.get("visible")&&(S0(y,u)?y.set("visible",!1):u.push(y))}}}}function cx(e,r){var t=e.getXYFields()[1],i=[],n=r.sort(function(a,o){return a.get("data")[t]-a.get("data")[t]});return n.length>0&&i.push(n.shift()),n.length>0&&i.push(n.pop()),i.push.apply(i,(0,g.__spreadArray)([],(0,g.__read)(n),!1)),i}function mc(e,r,t){return e.some(function(i){return t(i,r)})}function hx(e,r,t){t===void 0&&(t=0);var i=Math.max(0,Math.min(e.x+e.width+t,r.x+r.width+t)-Math.max(e.x-t,r.x-t)),n=Math.max(0,Math.min(e.y+e.height+t,r.y+r.height+t)-Math.max(e.y-t,r.y-t));return i*n}function xc(e,r){return mc(e,r,function(t,i){var n=Ar(t),a=Ar(i);return hx(n.getCanvasBBox(),a.getCanvasBBox(),2)>0})}function fx(e,r,t,i,n){var a,o;if(t.length!==0){var s=(a=t[0])===null||a===void 0?void 0:a.get("element"),l=s==null?void 0:s.geometry;if(!(!l||l.type!=="point")){var u=(0,g.__read)(l.getXYFields(),2),c=u[0],f=u[1],v=(0,h.groupBy)(r,function(y){return y.get("data")[c]}),d=[],p=n&&n.offset||((o=e[0])===null||o===void 0?void 0:o.offset)||12;(0,h.map)((0,h.keys)(v).reverse(),function(y){for(var m=cx(l,v[y]);m.length;){var x=m.shift(),_=Ar(x);if(mc(d,x,function(S,C){return S.get("data")[c]===C.get("data")[c]&&S.get("data")[f]===C.get("data")[f]})){_.set("visible",!1);continue}var w=xc(d,x),b=!1;if(w&&(_.attr("y",_.attr("y")+2*p),b=xc(d,x)),b){_.set("visible",!1);continue}d.push(x)}})}}}function vx(e,r){var t=e.getXYFields()[1],i=[],n=r.sort(function(a,o){return a.get("data")[t]-a.get("data")[t]});return n.length>0&&i.push(n.shift()),n.length>0&&i.push(n.pop()),i.push.apply(i,(0,g.__spreadArray)([],(0,g.__read)(n),!1)),i}function _c(e,r,t){return e.some(function(i){return t(i,r)})}function dx(e,r,t){t===void 0&&(t=0);var i=Math.max(0,Math.min(e.x+e.width+t,r.x+r.width+t)-Math.max(e.x-t,r.x-t)),n=Math.max(0,Math.min(e.y+e.height+t,r.y+r.height+t)-Math.max(e.y-t,r.y-t));return i*n}function wc(e,r){return _c(e,r,function(t,i){var n=Ar(t),a=Ar(i);return dx(n.getCanvasBBox(),a.getCanvasBBox(),2)>0})}function gx(e,r,t,i,n){var a,o;if(t.length!==0){var s=(a=t[0])===null||a===void 0?void 0:a.get("element"),l=s==null?void 0:s.geometry;if(!(!l||["path","line","area"].indexOf(l.type)<0)){var u=(0,g.__read)(l.getXYFields(),2),c=u[0],f=u[1],v=(0,h.groupBy)(r,function(y){return y.get("data")[c]}),d=[],p=n&&n.offset||((o=e[0])===null||o===void 0?void 0:o.offset)||12;(0,h.map)((0,h.keys)(v).reverse(),function(y){for(var m=vx(l,v[y]);m.length;){var x=m.shift(),_=Ar(x);if(_c(d,x,function(S,C){return S.get("data")[c]===C.get("data")[c]&&S.get("data")[f]===C.get("data")[f]})){_.set("visible",!1);continue}var w=wc(d,x),b=!1;if(w&&(_.attr("y",_.attr("y")+2*p),b=wc(d,x)),b){_.set("visible",!1);continue}d.push(x)}})}}}var Yo;function px(){return Yo||(Yo=document.createElement("canvas").getContext("2d")),Yo}var na=(0,h.memoize)(function(e,r){r===void 0&&(r={});var t=r.fontSize,i=r.fontFamily,n=r.fontWeight,a=r.fontStyle,o=r.fontVariant,s=px();return s.font=[a,o,n,"".concat(t,"px"),i].join(" "),s.measureText((0,h.isString)(e)?e:"").width},function(e,r){return r===void 0&&(r={}),(0,g.__spreadArray)([e],(0,g.__read)((0,h.values)(r)),!1).join("")}),yx=function(e,r,t){var i=16,n=na("...",t),a;(0,h.isString)(e)?a=e:a=(0,h.toString)(e);var o=r,s=[],l,u;if(na(e,t)<=r)return e;for(;l=a.substr(0,i),u=na(l,t),!(u+n>o&&u>o);)if(s.push(l),o-=u,a=a.substr(i),!a)return s.join("");for(;l=a.substr(0,1),u=na(l,t),!(u+n>o);)if(s.push(l),o-=u,a=a.substr(1),!a)return s.join("");return"".concat(s.join(""),"...")};function mx(e,r,t,i,n){if(!(r.length<=0)){var a=(n==null?void 0:n.direction)||["top","right","bottom","left"],o=(n==null?void 0:n.action)||"translate",s=(n==null?void 0:n.margin)||0,l=r[0].get("coordinate");if(!!l){var u=Jp(l,s),c=u.minX,f=u.minY,v=u.maxX,d=u.maxY;(0,h.each)(r,function(p){var y=p.getCanvasBBox(),m=y.minX,x=y.minY,_=y.maxX,w=y.maxY,b=y.x,S=y.y,C=y.width,A=y.height,F=b,P=S;if(a.indexOf("left")>=0&&(m=0&&(x=0&&(m>v?F=v-C:_>v&&(F=F-(_-v))),a.indexOf("bottom")>=0&&(x>d?P=d-A:w>d&&(P=P-(w-d))),F!==b||P!==S){var I=F-b;if(o==="translate")tn(p,I,P-S);else if(o==="ellipsis"){var V=p.findAll(function(Z){return Z.get("type")==="text"});V.forEach(function(Z){var vt=(0,h.pick)(Z.attr(),["fontSize","fontFamily","fontWeight","fontStyle","fontVariant"]),yt=Z.getCanvasBBox(),Bt=yx(Z.attr("text"),yt.width-Math.abs(I),vt);Z.attr("text",Bt)})}else p.hide()}})}}}function xx(e,r,t){var i={fillOpacity:(0,h.isNil)(e.attr("fillOpacity"))?1:e.attr("fillOpacity"),strokeOpacity:(0,h.isNil)(e.attr("strokeOpacity"))?1:e.attr("strokeOpacity"),opacity:(0,h.isNil)(e.attr("opacity"))?1:e.attr("opacity")};e.attr({fillOpacity:0,strokeOpacity:0,opacity:0}),e.animate(i,r)}function _x(e,r,t){var i={fillOpacity:0,strokeOpacity:0,opacity:0},n=r.easing,a=r.duration,o=r.delay;e.animate(i,a,n,function(){e.remove(!0)},o)}function wx(e,r,t){var i,n=(0,g.__read)(r,2),a=n[0],o=n[1];return e.applyToMatrix([a,o,1]),t==="x"?(e.setMatrix(ie.vs(e.getMatrix(),[["t",-a,-o],["s",.01,1],["t",a,o]])),i=ie.vs(e.getMatrix(),[["t",-a,-o],["s",100,1],["t",a,o]])):t==="y"?(e.setMatrix(ie.vs(e.getMatrix(),[["t",-a,-o],["s",1,.01],["t",a,o]])),i=ie.vs(e.getMatrix(),[["t",-a,-o],["s",1,100],["t",a,o]])):t==="xy"&&(e.setMatrix(ie.vs(e.getMatrix(),[["t",-a,-o],["s",.01,.01],["t",a,o]])),i=ie.vs(e.getMatrix(),[["t",-a,-o],["s",100,100],["t",a,o]])),i}function Xo(e,r,t,i,n){var a=t.start,o=t.end,s=t.getWidth(),l=t.getHeight(),u,c;n==="y"?(u=a.x+s/2,c=i.ya.x?i.x:a.x,c=a.y+l/2):n==="xy"&&(t.isPolar?(u=t.getCenter().x,c=t.getCenter().y):(u=(a.x+o.x)/2,c=(a.y+o.y)/2));var f=wx(e,[u,c],n);e.animate({matrix:f},r)}function bx(e,r,t){var i=t.coordinate,n=t.minYPoint;Xo(e,r,i,n,"x")}function Sx(e,r,t){var i=t.coordinate,n=t.minYPoint;Xo(e,r,i,n,"y")}function Cx(e,r,t){var i=t.coordinate,n=t.minYPoint;Xo(e,r,i,n,"xy")}function Ax(e,r,t){var i=e.getTotalLength();e.attr("lineDash",[i]),e.animate(function(n){return{lineDashOffset:(1-n)*i}},r)}function Mx(e,r,t){var i=t.toAttrs,n=i.x,a=i.y;delete i.x,delete i.y,e.attr(i),e.animate({x:n,y:a},r)}function Fx(e,r,t){var i=e.getBBox(),n=e.get("origin").mappingData,a=n.points,o=a[0].y-a[1].y>0?i.maxX:i.minX,s=(i.minY+i.maxY)/2;e.applyToMatrix([o,s,1]);var l=ie.vs(e.getMatrix(),[["t",-o,-s],["s",.01,1],["t",o,s]]);e.setMatrix(l),e.animate({matrix:ie.vs(e.getMatrix(),[["t",-o,-s],["s",100,1],["t",o,s]])},r)}function Ex(e,r,t){var i=e.getBBox(),n=e.get("origin").mappingData,a=(i.minX+i.maxX)/2,o=n.points,s=o[0].y-o[1].y<=0?i.maxY:i.minY;e.applyToMatrix([a,s,1]);var l=ie.vs(e.getMatrix(),[["t",-a,-s],["s",1,.01],["t",a,s]]);e.setMatrix(l),e.animate({matrix:ie.vs(e.getMatrix(),[["t",-a,-s],["s",1,100],["t",a,s]])},r)}function bc(e,r){var t,i=(0,$u.getArcParams)(e,r),n=i.startAngle,a=i.endAngle;return!(0,h.isNumberEqual)(n,-Math.PI*.5)&&n<-Math.PI*.5&&(n+=Math.PI*2),!(0,h.isNumberEqual)(a,-Math.PI*.5)&&a<-Math.PI*.5&&(a+=Math.PI*2),r[5]===0&&(t=(0,g.__read)([a,n],2),n=t[0],a=t[1]),(0,h.isNumberEqual)(n,Math.PI*1.5)&&(n=Math.PI*-.5),(0,h.isNumberEqual)(a,Math.PI*-.5)&&!(0,h.isNumberEqual)(n,a)&&(a=Math.PI*1.5),{startAngle:n,endAngle:a}}function Sc(e){var r;return e[0]==="M"||e[0]==="L"?r=[e[1],e[2]]:(e[0]==="a"||e[0]==="A"||e[0]==="C")&&(r=[e[e.length-2],e[e.length-1]]),r}function Cc(e){var r,t,i,n=e.filter(function(w){return w[0]==="A"||w[0]==="a"});if(n.length===0)return{startAngle:0,endAngle:0,radius:0,innerRadius:0};var a=n[0],o=n.length>1?n[1]:n[0],s=e.indexOf(a),l=e.indexOf(o),u=Sc(e[s-1]),c=Sc(e[l-1]),f=bc(u,a),v=f.startAngle,d=f.endAngle,p=bc(c,o),y=p.startAngle,m=p.endAngle;(0,h.isNumberEqual)(v,y)&&(0,h.isNumberEqual)(d,m)?(t=v,i=d):(t=Math.min(v,y),i=Math.max(d,m));var x=a[1],_=n[n.length-1][1];return x<_?(r=(0,g.__read)([_,x],2),x=r[0],_=r[1]):x===_&&(_=0),{startAngle:t,endAngle:i,radius:x,innerRadius:_}}function Tx(e,r,t){var i=t.toAttrs,n=t.coordinate,a=i.path||[],o=a.map(function(_){return _[0]});if(!(a.length<1)){var s=Cc(a),l=s.startAngle,u=s.endAngle,c=s.radius,f=s.innerRadius,v=Cc(e.attr("path")),d=v.startAngle,p=v.endAngle,y=n.getCenter(),m=l-d,x=u-p;if(m===0&&x===0){e.attr("path",a);return}e.animate(function(_){var w=d+_*m,b=p+_*x;return(0,g.__assign)((0,g.__assign)({},i),{path:(0,h.isEqual)(o,["M","A","A","Z"])?Hl(y.x,y.y,c,w,b):_r(y.x,y.y,c,w,b,f)})},(0,g.__assign)((0,g.__assign)({},r),{callback:function(){e.attr("path",a),(0,h.isFunction)(r.callback)&&r.callback()}}))}}function Lx(e,r,t){var i=po(t.coordinate,20),n=i.type,a=i.startState,o=i.endState,s=e.setClip({type:n,attrs:a});t.toAttrs&&e.attr(t.toAttrs),s.animate(o,(0,g.__assign)((0,g.__assign)({},r),{callback:function(){e&&!e.get("destroyed")&&e.set("clipShape",null),s.remove(!0),(0,h.isFunction)(r.callback)&&r.callback()}}))}function Uo(e,r,t){if(e.isGroup())(0,h.each)(e.getChildren(),function(s){Uo(s,r,t)});else{var i=e.getBBox(),n=(i.minX+i.maxX)/2,a=(i.minY+i.maxY)/2;if(e.applyToMatrix([n,a,1]),t==="zoomIn"){var o=ie.vs(e.getMatrix(),[["t",-n,-a],["s",.01,.01],["t",n,a]]);e.setMatrix(o),e.animate({matrix:ie.vs(e.getMatrix(),[["t",-n,-a],["s",100,100],["t",n,a]])},r)}else e.animate({matrix:ie.vs(e.getMatrix(),[["t",-n,-a],["s",.01,.01],["t",n,a]])},(0,g.__assign)((0,g.__assign)({},r),{callback:function(){e.remove(!0),(0,h.isFunction)(r.callback)&&r.callback()}}))}}function Ix(e,r,t){Uo(e,r,"zoomIn")}function Ox(e,r,t){Uo(e,r,"zoomOut")}function ur(e){return[E.TOP,E.BOTTOM].includes(e)?{offsetX:0,offsetY:e===E.TOP?-8:8,style:{textAlign:"center",textBaseline:e===E.TOP?"bottom":"top"}}:[E.LEFT,E.RIGHT].includes(e)?{offsetX:e===E.LEFT?-8:8,offsetY:0,style:{textAlign:e===E.LEFT?"right":"left",textBaseline:"middle",rotate:Math.PI/2}}:{}}function jo(e,r,t){return{x:e.x+r*Math.cos(t),y:e.y+r*Math.sin(t)}}var Px=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){return(0,h.deepMix)({},e.prototype.getDefaultCfg.call(this),{type:"circle",showTitle:!0,title:e.prototype.getDefaultTitleCfg.call(this)})},r.prototype.render=function(){e.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},r.prototype.getRegion=function(t,i){var n=1/2,a={x:.5,y:.5},o=Math.PI*2/t,s=-1*Math.PI/2+o*i,l=n/(1+1/Math.sin(o/2)),u=jo(a,n-l,s),c=Math.PI*5/4,f=Math.PI*1/4;return{start:jo(u,l,c),end:jo(u,l,f)}},r.prototype.afterEachView=function(t,i){this.processAxis(t,i)},r.prototype.beforeEachView=function(t,i){},r.prototype.generateFacets=function(t){var i=this,n=this.cfg,a=n.fields,o=n.type,s=(0,g.__read)(a,1),l=s[0];if(!l)throw new Error("No `fields` specified!");var u=this.getFieldValues(t,l),c=u.length,f=[];return u.forEach(function(v,d){var p=[{field:l,value:v,values:u}],y=(0,h.filter)(t,i.getFacetDataFilter(p)),m={type:o,data:y,region:i.getRegion(c,d),columnValue:v,columnField:l,columnIndex:d,columnValuesLength:c,rowValue:null,rowField:null,rowIndex:0,rowValuesLength:1};f.push(m)}),f},r.prototype.getXAxisOption=function(t,i,n,a){return n},r.prototype.getYAxisOption=function(t,i,n,a){return n},r.prototype.renderTitle=function(){var t=this;(0,h.each)(this.facets,function(i){var n=i.columnValue,a=i.view,o=(0,h.get)(t.cfg.title,"formatter"),s=(0,h.deepMix)({position:["50%","0%"],content:o?o(n):n},ur(E.TOP),t.cfg.title);a.annotation().text(s)})},r}(ci),kx=Px,Dx=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){return(0,h.deepMix)({},e.prototype.getDefaultCfg.call(this),{type:"list",cols:null,showTitle:!0,title:e.prototype.getDefaultTitleCfg.call(this)})},r.prototype.render=function(){e.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},r.prototype.afterEachView=function(t,i){this.processAxis(t,i)},r.prototype.beforeEachView=function(t,i){},r.prototype.generateFacets=function(t){var i=this,n=this.cfg.fields,a=this.cfg.cols,o=(0,g.__read)(n,1),s=o[0];if(!s)throw new Error("No `fields` specified!");var l=this.getFieldValues(t,s),u=l.length;a=a||u;var c=this.getPageCount(u,a),f=[];return l.forEach(function(v,d){var p=i.getRowCol(d,a),y=p.row,m=p.col,x=[{field:s,value:v,values:l}],_=(0,h.filter)(t,i.getFacetDataFilter(x)),w={type:i.cfg.type,data:_,region:i.getRegion(c,a,m,y),columnValue:v,rowValue:v,columnField:s,rowField:null,columnIndex:m,rowIndex:y,columnValuesLength:a,rowValuesLength:c,total:u};f.push(w)}),f},r.prototype.getXAxisOption=function(t,i,n,a){return a.rowIndex!==a.rowValuesLength-1&&a.columnValuesLength*a.rowIndex+a.columnIndex+1+a.columnValuesLength<=a.total?(0,g.__assign)((0,g.__assign)({},n),{label:null,title:null}):n},r.prototype.getYAxisOption=function(t,i,n,a){return a.columnIndex!==0?(0,g.__assign)((0,g.__assign)({},n),{title:null,label:null}):n},r.prototype.renderTitle=function(){var t=this;(0,h.each)(this.facets,function(i){var n=i.columnValue,a=i.view,o=(0,h.get)(t.cfg.title,"formatter"),s=(0,h.deepMix)({position:["50%","0%"],content:o?o(n):n},ur(E.TOP),t.cfg.title);a.annotation().text(s)})},r.prototype.getPageCount=function(t,i){return Math.floor((t+i-1)/i)},r.prototype.getRowCol=function(t,i){var n=Math.floor(t/i),a=t%i;return{row:n,col:a}},r}(ci),Bx=Dx,Rx=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){return(0,h.deepMix)({},e.prototype.getDefaultCfg.call(this),{type:"matrix",showTitle:!1,columnTitle:(0,g.__assign)({},e.prototype.getDefaultTitleCfg.call(this)),rowTitle:(0,g.__assign)({},e.prototype.getDefaultTitleCfg.call(this))})},r.prototype.render=function(){e.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},r.prototype.afterEachView=function(t,i){this.processAxis(t,i)},r.prototype.beforeEachView=function(t,i){},r.prototype.generateFacets=function(t){for(var i=this.cfg,n=i.fields,a=i.type,o=n.length,s=o,l=[],u=0;u=0;u--){var c=this.getFacetsByLevel(t,u);try{for(var f=(i=void 0,(0,g.__values)(c)),v=f.next();!v.done;v=f.next()){var d=v.value;this.isLeaf(d)||(d.originColIndex=d.columnIndex,d.columnIndex=this.getRegionIndex(d.children),d.columnValuesLength=o.length)}}catch(p){i={error:p}}finally{try{v&&!v.done&&(n=f.return)&&n.call(f)}finally{if(i)throw i.error}}}},r.prototype.getFacetsByLevel=function(t,i){var n=[];return t.forEach(function(a){a.rowIndex===i&&n.push(a)}),n},r.prototype.getRegionIndex=function(t){var i=t[0],n=t[t.length-1];return(n.columnIndex-i.columnIndex)/2+i.columnIndex},r.prototype.isLeaf=function(t){return!t.children||!t.children.length},r.prototype.getRows=function(){return this.cfg.fields.length+1},r.prototype.getChildFacets=function(t,i,n){var a=this,o=this.cfg.fields,s=o.length;if(!(s=d){var m=n.parsePosition([p[l],p[s.field]]);m&&v.push(m)}if(p[l]===f)return!1}),v},r.prototype.parsePercentPosition=function(t){var i=parseFloat(t[0])/100,n=parseFloat(t[1])/100,a=this.view.getCoordinate(),o=a.start,s=a.end,l={x:Math.min(o.x,s.x),y:Math.min(o.y,s.y)},u=a.getWidth()*i+l.x,c=a.getHeight()*n+l.y;return{x:u,y:c}},r.prototype.getCoordinateBBox=function(){var t=this.view.getCoordinate(),i=t.start,n=t.end,a=t.getWidth(),o=t.getHeight(),s={x:Math.min(i.x,n.x),y:Math.min(i.y,n.y)};return{x:s.x,y:s.y,minX:s.x,minY:s.y,maxX:s.x+a,maxY:s.y+o,width:a,height:o}},r.prototype.getAnnotationCfg=function(t,i,n){var a=this,o=this.view.getCoordinate(),s=this.view.getCanvas(),l={};if((0,h.isNil)(i))return null;var u=i.start,c=i.end,f=i.position,v=this.parsePosition(u),d=this.parsePosition(c),p=this.parsePosition(f);if(["arc","image","line","region","regionFilter"].includes(t)&&(!v||!d))return null;if(["text","dataMarker","html"].includes(t)&&!p)return null;if(t==="arc"){var y=i,m=y.start,x=y.end,_=(0,g.__rest)(y,["start","end"]),w=ui(o,v),b=ui(o,d);w>b&&(b=Math.PI*2+b),l=(0,g.__assign)((0,g.__assign)({},_),{center:o.getCenter(),radius:zn(o,v),startAngle:w,endAngle:b})}else if(t==="image"){var S=i,C=S.start,A=S.end,_=(0,g.__rest)(S,["start","end"]);l=(0,g.__assign)((0,g.__assign)({},_),{start:v,end:d,src:i.src})}else if(t==="line"){var F=i,P=F.start,I=F.end,_=(0,g.__rest)(F,["start","end"]);l=(0,g.__assign)((0,g.__assign)({},_),{start:v,end:d,text:(0,h.get)(i,"text",null)})}else if(t==="region"){var V=i,Z=V.start,vt=V.end,_=(0,g.__rest)(V,["start","end"]);l=(0,g.__assign)((0,g.__assign)({},_),{start:v,end:d})}else if(t==="text"){var yt=this.view.getData(),Bt=i,G=Bt.position,at=Bt.content,_=(0,g.__rest)(Bt,["position","content"]),mt=at;(0,h.isFunction)(at)&&(mt=at(yt)),l=(0,g.__assign)((0,g.__assign)((0,g.__assign)({},p),_),{content:mt})}else if(t==="dataMarker"){var ut=i,pt=ut.position,At=ut.point,Gt=ut.line,Wt=ut.text,Dt=ut.autoAdjust,Ht=ut.direction,_=(0,g.__rest)(ut,["position","point","line","text","autoAdjust","direction"]);l=(0,g.__assign)((0,g.__assign)((0,g.__assign)({},_),p),{coordinateBBox:this.getCoordinateBBox(),point:At,line:Gt,text:Wt,autoAdjust:Dt,direction:Ht})}else if(t==="dataRegion"){var Jt=i,pe=Jt.start,ye=Jt.end,ar=Jt.region,Wt=Jt.text,ri=Jt.lineLength,_=(0,g.__rest)(Jt,["start","end","region","text","lineLength"]);l=(0,g.__assign)((0,g.__assign)({},_),{points:this.getRegionPoints(pe,ye),region:ar,text:Wt,lineLength:ri})}else if(t==="regionFilter"){var mr=i,Li=mr.start,Ii=mr.end,od=mr.apply,wL=mr.color,_=(0,g.__rest)(mr,["start","end","apply","color"]),bL=this.view.geometries,sd=[],ol=function(or){!or||(or.isGroup()?or.getChildren().forEach(function(An){return ol(An)}):sd.push(or))};(0,h.each)(bL,function(or){od?(0,h.contains)(od,or.type)&&(0,h.each)(or.elements,function(An){ol(An.shape)}):(0,h.each)(or.elements,function(An){ol(An.shape)})}),l=(0,g.__assign)((0,g.__assign)({},_),{color:wL,shapes:sd,start:v,end:d})}else if(t==="shape"){var ld=i,SL=ld.render,sl=(0,g.__rest)(ld,["render"]),CL=function(ML){if((0,h.isFunction)(i.render))return SL(ML,a.view,{parsePosition:a.parsePosition.bind(a)})};l=(0,g.__assign)((0,g.__assign)({},sl),{render:CL})}else if(t==="html"){var ll=i,ul=ll.html,RI=ll.position,sl=(0,g.__rest)(ll,["html","position"]),AL=function(or){return(0,h.isFunction)(ul)?ul(or,a.view):ul};l=(0,g.__assign)((0,g.__assign)((0,g.__assign)({},sl),p),{parent:s.get("el").parentNode,html:AL})}var kr=(0,h.deepMix)({},n,(0,g.__assign)((0,g.__assign)({},l),{top:i.top,style:i.style,offsetX:i.offsetX,offsetY:i.offsetY}));return t!=="html"&&(kr.container=this.getComponentContainer(kr)),kr.animate=this.view.getOptions().animate&&kr.animate&&(0,h.get)(i,"animate",kr.animate),kr.animateOption=(0,h.deepMix)({},gi,kr.animateOption,i.animateOption),kr},r.prototype.isTop=function(t){return(0,h.get)(t,"top",!0)},r.prototype.getComponentContainer=function(t){return this.isTop(t)?this.foregroundContainer:this.backgroundContainer},r.prototype.getAnnotationTheme=function(t){return(0,h.get)(this.view.getTheme(),["components","annotation",t],{})},r.prototype.updateOrCreate=function(t){var i=this.cache.get(this.getCacheKey(t));if(i){var n=t.type,a=this.getAnnotationTheme(n),o=this.getAnnotationCfg(n,t,a);o&&Oe(o,["container"]),i.component.update((0,g.__assign)((0,g.__assign)({},o||{}),{visible:!!o})),(0,h.includes)(oa,t.type)&&i.component.render()}else i=this.createAnnotation(t),i&&(i.component.init(),(0,h.includes)(oa,t.type)&&i.component.render());return i},r.prototype.syncCache=function(t){var i=this,n=new Map(this.cache);return t.forEach(function(a,o){n.set(o,a)}),n.forEach(function(a,o){(0,h.find)(i.option,function(s){return o===i.getCacheKey(s)})||(a.component.destroy(),n.delete(o))}),n},r.prototype.getCacheKey=function(t){return t},r}(di),jx=Ux;function Mc(e,r){var t=(0,h.deepMix)({},(0,h.get)(e,["components","axis","common"]),(0,h.get)(e,["components","axis",r]));return(0,h.get)(t,["grid"],{})}function sa(e,r,t,i){var n=[],a=r.getTicks();return e.isPolar&&a.push({value:1,text:"",tickValue:""}),a.reduce(function(o,s,l){var u=s.value;if(i)n.push({points:[e.convert(t==="y"?{x:0,y:u}:{x:u,y:0}),e.convert(t==="y"?{x:1,y:u}:{x:u,y:1})]});else if(l){var c=o.value,f=(c+u)/2;n.push({points:[e.convert(t==="y"?{x:0,y:f}:{x:f,y:0}),e.convert(t==="y"?{x:1,y:f}:{x:f,y:1})]})}return s},a[0]),n}function Zo(e,r,t,i,n){var a=r.values.length,o=[],s=t.getTicks();return s.reduce(function(l,u){var c=l?l.value:u.value,f=u.value,v=(c+f)/2;return n==="x"?o.push({points:[e.convert({x:i?f:v,y:0}),e.convert({x:i?f:v,y:1})]}):o.push({points:(0,h.map)(Array(a+1),function(d,p){return e.convert({x:p/a,y:i?f:v})})}),u},s[0]),o}function Fc(e,r){var t=(0,h.get)(r,"grid");if(t===null)return!1;var i=(0,h.get)(e,"grid");return!(t===void 0&&i===null)}var Fr=["container"],Ec=(0,g.__assign)((0,g.__assign)({},gi),{appear:null}),Zx=function(e){(0,g.__extends)(r,e);function r(t){var i=e.call(this,t)||this;return i.cache=new Map,i.gridContainer=i.view.getLayer(J.BG).addGroup(),i.gridForeContainer=i.view.getLayer(J.FORE).addGroup(),i.axisContainer=i.view.getLayer(J.BG).addGroup(),i.axisForeContainer=i.view.getLayer(J.FORE).addGroup(),i}return Object.defineProperty(r.prototype,"name",{get:function(){return"axis"},enumerable:!1,configurable:!0}),r.prototype.init=function(){},r.prototype.render=function(){this.update()},r.prototype.layout=function(){var t=this,i=this.view.getCoordinate();(0,h.each)(this.getComponents(),function(n){var a=n.component,o=n.direction,s=n.type,l=n.extra,u=l.dim,c=l.scale,f=l.alignTick,v;if(s===N.AXIS)i.isPolar?u==="x"?v=i.isTransposed?Vn(i,o):yo(i):u==="y"&&(v=i.isTransposed?yo(i):Vn(i,o)):v=Vn(i,o);else if(s===N.GRID)if(i.isPolar){var d=void 0;i.isTransposed?d=u==="x"?Zo(i,t.view.getYScales()[0],c,f,u):sa(i,c,u,f):d=u==="x"?sa(i,c,u,f):Zo(i,t.view.getXScale(),c,f,u),v={items:d,center:t.view.getCoordinate().getCenter()}}else v={items:sa(i,c,u,f)};a.update(v)})},r.prototype.update=function(){this.option=this.view.getOptions().axes;var t=new Map;this.updateXAxes(t),this.updateYAxes(t);var i=new Map;this.cache.forEach(function(n,a){t.has(a)?i.set(a,n):n.component.destroy()}),this.cache=i},r.prototype.clear=function(){e.prototype.clear.call(this),this.cache.clear(),this.gridContainer.clear(),this.gridForeContainer.clear(),this.axisContainer.clear(),this.axisForeContainer.clear()},r.prototype.destroy=function(){e.prototype.destroy.call(this),this.gridContainer.remove(!0),this.gridForeContainer.remove(!0),this.axisContainer.remove(!0),this.axisForeContainer.remove(!0)},r.prototype.getComponents=function(){var t=[];return this.cache.forEach(function(i){t.push(i)}),t},r.prototype.updateXAxes=function(t){var i=this.view.getXScale();if(!(!i||i.isIdentity)){var n=Wn(this.option,i.field);if(n!==!1){var a=Kl(n,E.BOTTOM),o=J.BG,s="x",l=this.view.getCoordinate(),u=this.getId("axis",i.field),c=this.getId("grid",i.field);if(l.isRect){var f=this.cache.get(u);if(f){var v=this.getLineAxisCfg(i,n,a);Oe(v,Fr),f.component.update(v),t.set(u,f)}else f=this.createLineAxis(i,n,o,a,s),this.cache.set(u,f),t.set(u,f);var d=this.cache.get(c);if(d){var v=this.getLineGridCfg(i,n,a,s);Oe(v,Fr),d.component.update(v),t.set(c,d)}else d=this.createLineGrid(i,n,o,a,s),d&&(this.cache.set(c,d),t.set(c,d))}else if(l.isPolar){var f=this.cache.get(u);if(f){var v=l.isTransposed?this.getLineAxisCfg(i,n,E.RADIUS):this.getCircleAxisCfg(i,n,a);Oe(v,Fr),f.component.update(v),t.set(u,f)}else{if(l.isTransposed){if((0,h.isUndefined)(n))return;f=this.createLineAxis(i,n,o,E.RADIUS,s)}else f=this.createCircleAxis(i,n,o,a,s);this.cache.set(u,f),t.set(u,f)}var d=this.cache.get(c);if(d){var v=l.isTransposed?this.getCircleGridCfg(i,n,E.RADIUS,s):this.getLineGridCfg(i,n,E.CIRCLE,s);Oe(v,Fr),d.component.update(v),t.set(c,d)}else{if(l.isTransposed){if((0,h.isUndefined)(n))return;d=this.createCircleGrid(i,n,o,E.RADIUS,s)}else d=this.createLineGrid(i,n,o,E.CIRCLE,s);d&&(this.cache.set(c,d),t.set(c,d))}}}}},r.prototype.updateYAxes=function(t){var i=this,n=this.view.getYScales();(0,h.each)(n,function(a,o){if(!(!a||a.isIdentity)){var s=a.field,l=Wn(i.option,s);if(l!==!1){var u=J.BG,c="y",f=i.getId("axis",s),v=i.getId("grid",s),d=i.view.getCoordinate();if(d.isRect){var p=Kl(l,o===0?E.LEFT:E.RIGHT),y=i.cache.get(f);if(y){var m=i.getLineAxisCfg(a,l,p);Oe(m,Fr),y.component.update(m),t.set(f,y)}else y=i.createLineAxis(a,l,u,p,c),i.cache.set(f,y),t.set(f,y);var x=i.cache.get(v);if(x){var m=i.getLineGridCfg(a,l,p,c);Oe(m,Fr),x.component.update(m),t.set(v,x)}else x=i.createLineGrid(a,l,u,p,c),x&&(i.cache.set(v,x),t.set(v,x))}else if(d.isPolar){var y=i.cache.get(f);if(y){var m=d.isTransposed?i.getCircleAxisCfg(a,l,E.CIRCLE):i.getLineAxisCfg(a,l,E.RADIUS);Oe(m,Fr),y.component.update(m),t.set(f,y)}else{if(d.isTransposed){if((0,h.isUndefined)(l))return;y=i.createCircleAxis(a,l,u,E.CIRCLE,c)}else y=i.createLineAxis(a,l,u,E.RADIUS,c);i.cache.set(f,y),t.set(f,y)}var x=i.cache.get(v);if(x){var m=d.isTransposed?i.getLineGridCfg(a,l,E.CIRCLE,c):i.getCircleGridCfg(a,l,E.RADIUS,c);Oe(m,Fr),x.component.update(m),t.set(v,x)}else{if(d.isTransposed){if((0,h.isUndefined)(l))return;x=i.createLineGrid(a,l,u,E.CIRCLE,c)}else x=i.createCircleGrid(a,l,u,E.RADIUS,c);x&&(i.cache.set(v,x),t.set(v,x))}}}}})},r.prototype.createLineAxis=function(t,i,n,a,o){var s={component:new Wp(this.getLineAxisCfg(t,i,a)),layer:n,direction:a===E.RADIUS?E.NONE:a,type:N.AXIS,extra:{dim:o,scale:t}};return s.component.set("field",t.field),s.component.init(),s},r.prototype.createLineGrid=function(t,i,n,a,o){var s=this.getLineGridCfg(t,i,a,o);if(s){var l={component:new Yp(s),layer:n,direction:E.NONE,type:N.GRID,extra:{dim:o,scale:t,alignTick:(0,h.get)(s,"alignTick",!0)}};return l.component.init(),l}},r.prototype.createCircleAxis=function(t,i,n,a,o){var s={component:new Hp(this.getCircleAxisCfg(t,i,a)),layer:n,direction:a,type:N.AXIS,extra:{dim:o,scale:t}};return s.component.set("field",t.field),s.component.init(),s},r.prototype.createCircleGrid=function(t,i,n,a,o){var s=this.getCircleGridCfg(t,i,a,o);if(s){var l={component:new Xp(s),layer:n,direction:E.NONE,type:N.GRID,extra:{dim:o,scale:t,alignTick:(0,h.get)(s,"alignTick",!0)}};return l.component.init(),l}},r.prototype.getLineAxisCfg=function(t,i,n){var a=(0,h.get)(i,["top"])?this.axisForeContainer:this.axisContainer,o=this.view.getCoordinate(),s=Vn(o,n),l=$l(t,i),u=Gn(this.view.getTheme(),n),c=(0,h.get)(i,["title"])?(0,h.deepMix)({title:{style:{text:l}}},{title:ql(this.view.getTheme(),n,i.title)},i):i,f=(0,h.deepMix)((0,g.__assign)((0,g.__assign)({container:a},s),{ticks:t.getTicks().map(function(w){return{id:"".concat(w.tickValue),name:w.text,value:w.value}}),verticalFactor:o.isPolar?Zl(s,o.getCenter())*-1:Zl(s,o.getCenter()),theme:u}),u,c),v=this.getAnimateCfg(f),d=v.animate,p=v.animateOption;f.animateOption=p,f.animate=d;var y=jl(s),m=(0,h.get)(f,"verticalLimitLength",y?1/3:1/2);if(m<=1){var x=this.view.getCanvas().get("width"),_=this.view.getCanvas().get("height");f.verticalLimitLength=m*(y?x:_)}return f},r.prototype.getLineGridCfg=function(t,i,n,a){if(!!Fc(Gn(this.view.getTheme(),n),i)){var o=Mc(this.view.getTheme(),n),s=(0,h.deepMix)({container:(0,h.get)(i,["top"])?this.gridForeContainer:this.gridContainer},o,(0,h.get)(i,"grid"),this.getAnimateCfg(i));return s.items=sa(this.view.getCoordinate(),t,a,(0,h.get)(s,"alignTick",!0)),s}},r.prototype.getCircleAxisCfg=function(t,i,n){var a=(0,h.get)(i,["top"])?this.axisForeContainer:this.axisContainer,o=this.view.getCoordinate(),s=t.getTicks().map(function(y){return{id:"".concat(y.tickValue),name:y.text,value:y.value}});!t.isCategory&&Math.abs(o.endAngle-o.startAngle)===Math.PI*2&&s.length&&(s[s.length-1].name="");var l=$l(t,i),u=Gn(this.view.getTheme(),E.CIRCLE),c=(0,h.get)(i,["title"])?(0,h.deepMix)({title:{style:{text:l}}},{title:ql(this.view.getTheme(),n,i.title)},i):i,f=(0,h.deepMix)((0,g.__assign)((0,g.__assign)({container:a},yo(this.view.getCoordinate())),{ticks:s,verticalFactor:1,theme:u}),u,c),v=this.getAnimateCfg(f),d=v.animate,p=v.animateOption;return f.animate=d,f.animateOption=p,f},r.prototype.getCircleGridCfg=function(t,i,n,a){if(!!Fc(Gn(this.view.getTheme(),n),i)){var o=Mc(this.view.getTheme(),E.RADIUS),s=(0,h.deepMix)({container:(0,h.get)(i,["top"])?this.gridForeContainer:this.gridContainer,center:this.view.getCoordinate().getCenter()},o,(0,h.get)(i,"grid"),this.getAnimateCfg(i)),l=(0,h.get)(s,"alignTick",!0),u=a==="x"?this.view.getYScales()[0]:this.view.getXScale();return s.items=Zo(this.view.getCoordinate(),u,t,l,a),s}},r.prototype.getId=function(t,i){var n=this.view.getCoordinate();return"".concat(t,"-").concat(i,"-").concat(n.type)},r.prototype.getAnimateCfg=function(t){return{animate:this.view.getOptions().animate&&(0,h.get)(t,"animate"),animateOption:t&&t.animateOption?(0,h.deepMix)({},Ec,t.animateOption):Ec}},r}(di),qx=Zx;function Er(e,r,t){return t===E.TOP?[e.minX+e.width/2-r.width/2,e.minY]:t===E.BOTTOM?[e.minX+e.width/2-r.width/2,e.maxY-r.height]:t===E.LEFT?[e.minX,e.minY+e.height/2-r.height/2]:t===E.RIGHT?[e.maxX-r.width,e.minY+e.height/2-r.height/2]:t===E.TOP_LEFT||t===E.LEFT_TOP?[e.tl.x,e.tl.y]:t===E.TOP_RIGHT||t===E.RIGHT_TOP?[e.tr.x-r.width,e.tr.y]:t===E.BOTTOM_LEFT||t===E.LEFT_BOTTOM?[e.bl.x,e.bl.y-r.height]:t===E.BOTTOM_RIGHT||t===E.RIGHT_BOTTOM?[e.br.x-r.width,e.br.y-r.height]:[0,0]}function Kx(e,r){if(r.isTransposed)switch(e){case DIRECTION.BOTTOM:return DIRECTION.LEFT;case DIRECTION.LEFT:return DIRECTION.BOTTOM;case DIRECTION.RIGHT:return DIRECTION.TOP;case DIRECTION.TOP:return DIRECTION.RIGHT}return e}function Tc(e){return e===DIRECTION.LEFT?DIRECTION.RIGHT:e===DIRECTION.RIGHT?DIRECTION.LEFT:e}function Lc(e){return e===DIRECTION.TOP?DIRECTION.BOTTOM:e===DIRECTION.BOTTOM?DIRECTION.TOP:e}function $x(e,r){var t=r.matrix[0],i=r.matrix[4],n=e;return t<0&&(n=Tc(n)),i<0&&(n=Lc(n)),n}function Qx(e,r){var t=e;return r.isReflect("x")&&(t=Tc(t)),r.isReflect("y")&&(t=Lc(t)),t}function iI(e,r){var t=e;return t=Kx(t,r),t=$x(t,r),t=Qx(t,r),t}function Ic(e,r){return(0,h.isBoolean)(e)?e===!1?!1:{}:(0,h.get)(e,[r],e)}function la(e){return(0,h.get)(e,"position",E.BOTTOM)}var Jx=function(e){(0,g.__extends)(r,e);function r(t){var i=e.call(this,t)||this;return i.container=i.view.getLayer(J.FORE).addGroup(),i}return Object.defineProperty(r.prototype,"name",{get:function(){return"legend"},enumerable:!1,configurable:!0}),r.prototype.init=function(){},r.prototype.render=function(){this.update()},r.prototype.layout=function(){var t=this;this.layoutBBox=this.view.viewBBox,(0,h.each)(this.components,function(i){var n=i.component,a=i.direction,o=Lo(a),s=n.get("maxWidthRatio"),l=n.get("maxHeightRatio"),u=t.getCategoryLegendSizeCfg(o,s,l),c=n.get("maxWidth"),f=n.get("maxHeight");n.update({maxWidth:Math.min(u.maxWidth,c||0),maxHeight:Math.min(u.maxHeight,f||0)});var v=n.get("padding"),d=n.getLayoutBBox(),p=new Ee(d.x,d.y,d.width,d.height).expand(v),y=(0,g.__read)(Er(t.view.viewBBox,p,a),2),m=y[0],x=y[1],_=(0,g.__read)(Er(t.layoutBBox,p,a),2),w=_[0],b=_[1],S=0,C=0;a.startsWith("top")||a.startsWith("bottom")?(S=m,C=b):(S=w,C=x),n.setLocation({x:S+v[3],y:C+v[0]}),t.layoutBBox=t.layoutBBox.cut(p,a)})},r.prototype.update=function(){var t=this;this.option=this.view.getOptions().legends;var i={},n=function(v,d,p){var y=t.getId(p.field),m=t.getComponentById(y);if(m){var x=void 0,_=Ic(t.option,p.field);_!==!1&&((0,h.get)(_,"custom")?x=t.getCategoryCfg(v,d,p,_,!0):p.isLinear?x=t.getContinuousCfg(v,d,p,_):p.isCategory&&(x=t.getCategoryCfg(v,d,p,_))),x&&(Oe(x,["container"]),m.direction=la(_),m.component.update(x),i[y]=!0)}else{var w=t.createFieldLegend(v,d,p);w&&(w.component.init(),t.components.push(w),i[y]=!0)}};if((0,h.get)(this.option,"custom")){var a="global-custom",o=this.getComponentById(a);if(o){var s=this.getCategoryCfg(void 0,void 0,void 0,this.option,!0);Oe(s,["container"]),o.component.update(s),i[a]=!0}else{var l=this.createCustomLegend(void 0,void 0,void 0,this.option);if(l){l.init();var u=J.FORE,c=la(this.option);this.components.push({id:a,component:l,layer:u,direction:c,type:N.LEGEND,extra:void 0}),i[a]=!0}}}else this.loopLegends(n);var f=[];(0,h.each)(this.getComponents(),function(v){i[v.id]?f.push(v):v.component.destroy()}),this.components=f},r.prototype.clear=function(){e.prototype.clear.call(this),this.container.clear()},r.prototype.destroy=function(){e.prototype.destroy.call(this),this.container.remove(!0)},r.prototype.getGeometries=function(t){var i=this,n=t.geometries;return(0,h.each)(t.views,function(a){n=n.concat(i.getGeometries(a))}),n},r.prototype.loopLegends=function(t){var i=this.view.getRootView()===this.view;if(!!i){var n=this.getGeometries(this.view),a={};(0,h.each)(n,function(o){var s=o.getGroupAttributes();(0,h.each)(s,function(l){var u=l.getScale(l.type);!u||u.type==="identity"||a[u.field]||(t(o,l,u),a[u.field]=!0)})})}},r.prototype.createFieldLegend=function(t,i,n){var a,o=Ic(this.option,n.field),s=J.FORE,l=la(o);if(o!==!1&&((0,h.get)(o,"custom")?a=this.createCustomLegend(t,i,n,o):n.isLinear?a=this.createContinuousLegend(t,i,n,o):n.isCategory&&(a=this.createCategoryLegend(t,i,n,o))),a)return a.set("field",n.field),{id:this.getId(n.field),component:a,layer:s,direction:l,type:N.LEGEND,extra:{scale:n}}},r.prototype.createCustomLegend=function(t,i,n,a){var o=this.getCategoryCfg(t,i,n,a,!0);return new Vl(o)},r.prototype.createContinuousLegend=function(t,i,n,a){var o=this.getContinuousCfg(t,i,n,Oe(a,["value"]));return new Up(o)},r.prototype.createCategoryLegend=function(t,i,n,a){var o=this.getCategoryCfg(t,i,n,a);return new Vl(o)},r.prototype.getContinuousCfg=function(t,i,n,a){var o=n.getTicks(),s=(0,h.find)(o,function(y){return y.value===0}),l=(0,h.find)(o,function(y){return y.value===1}),u=o.map(function(y){var m=y.value,x=y.tickValue,_=i.mapping(n.invert(m)).join("");return{value:x,attrValue:_,color:_,scaleValue:m}});s||u.push({value:n.min,attrValue:i.mapping(n.invert(0)).join(""),color:i.mapping(n.invert(0)).join(""),scaleValue:0}),l||u.push({value:n.max,attrValue:i.mapping(n.invert(1)).join(""),color:i.mapping(n.invert(1)).join(""),scaleValue:1}),u.sort(function(y,m){return y.value-m.value});var c={min:(0,h.head)(u).value,max:(0,h.last)(u).value,colors:[],rail:{type:i.type},track:{}};i.type==="size"&&(c.track={style:{fill:i.type==="size"?this.view.getTheme().defaultColor:void 0}}),i.type==="color"&&(c.colors=u.map(function(y){return y.attrValue}));var f=this.container,v=la(a),d=Lo(v),p=(0,h.get)(a,"title");return p&&(p=(0,h.deepMix)({text:ji(n)},p)),c.container=f,c.layout=d,c.title=p,c.animateOption=gi,this.mergeLegendCfg(c,a,"continuous")},r.prototype.getCategoryCfg=function(t,i,n,a,o){var s=this.container,l=(0,h.get)(a,"position",E.BOTTOM),u=Yu(this.view.getTheme(),l),c=(0,h.get)(u,["marker"]),f=(0,h.get)(a,"marker"),v=Lo(l),d=(0,h.get)(u,["pageNavigator"]),p=(0,h.get)(a,"pageNavigator"),y=o?L0(c,f,a.items):Hu(this.view,t,i,c,f),m=(0,h.get)(a,"title");m&&(m=(0,h.deepMix)({text:n?ji(n):""},m));var x=(0,h.get)(a,"maxWidthRatio"),_=(0,h.get)(a,"maxHeightRatio"),w=this.getCategoryLegendSizeCfg(v,x,_);w.container=s,w.layout=v,w.items=y,w.title=m,w.animateOption=gi,w.pageNavigator=(0,h.deepMix)({},d,p);var b=this.mergeLegendCfg(w,a,l);b.reversed&&b.items.reverse();var S=(0,h.get)(b,"maxItemWidth");return S&&S<=1&&(b.maxItemWidth=this.view.viewBBox.width*S),b},r.prototype.mergeLegendCfg=function(t,i,n){var a=n.split("-")[0],o=Yu(this.view.getTheme(),a);return(0,h.deepMix)({},o,t,i)},r.prototype.getId=function(t){return"".concat(this.name,"-").concat(t)},r.prototype.getComponentById=function(t){return(0,h.find)(this.components,function(i){return i.id===t})},r.prototype.getCategoryLegendSizeCfg=function(t,i,n){i===void 0&&(i=qt),n===void 0&&(n=qt);var a=this.view.viewBBox,o=a.width,s=a.height;return t==="vertical"?{maxWidth:o*i,maxHeight:s}:{maxWidth:o,maxHeight:s*n}},r}(di),t_=Jx,e_=function(e){(0,g.__extends)(r,e);function r(t){var i=e.call(this,t)||this;return i.onChangeFn=h.noop,i.resetMeasure=function(){i.clear()},i.onValueChange=function(n){var a=(0,g.__read)(n,2),o=a[0],s=a[1];i.start=o,i.end=s,i.changeViewData(o,s)},i.container=i.view.getLayer(J.FORE).addGroup(),i.onChangeFn=(0,h.throttle)(i.onValueChange,20,{leading:!0}),i.width=0,i.view.on(L.BEFORE_CHANGE_DATA,i.resetMeasure),i.view.on(L.BEFORE_CHANGE_SIZE,i.resetMeasure),i}return Object.defineProperty(r.prototype,"name",{get:function(){return"slider"},enumerable:!1,configurable:!0}),r.prototype.destroy=function(){e.prototype.destroy.call(this),this.view.off(L.BEFORE_CHANGE_DATA,this.resetMeasure),this.view.off(L.BEFORE_CHANGE_SIZE,this.resetMeasure)},r.prototype.init=function(){},r.prototype.render=function(){this.option=this.view.getOptions().slider;var t=this.getSliderCfg(),i=t.start,n=t.end;(0,h.isNil)(this.start)&&(this.start=i,this.end=n);var a=this.view.getOptions().data;this.option&&!(0,h.isEmpty)(a)?this.slider?this.slider=this.updateSlider():(this.slider=this.createSlider(),this.slider.component.on("sliderchange",this.onChangeFn)):this.slider&&(this.slider.component.destroy(),this.slider=void 0)},r.prototype.layout=function(){var t=this;if(this.option&&!this.width&&(this.measureSlider(),setTimeout(function(){t.view.destroyed||t.changeViewData(t.start,t.end)},0)),this.slider){var i=this.view.coordinateBBox.width,n=this.slider.component.get("padding"),a=(0,g.__read)(n,4),o=a[0],s=a[1],l=a[2],u=a[3],c=this.slider.component.getLayoutBBox(),f=new Ee(c.x,c.y,Math.min(c.width,i),c.height).expand(n),v=this.getMinMaxText(this.start,this.end),d=v.minText,p=v.maxText,y=(0,g.__read)(Er(this.view.viewBBox,f,E.BOTTOM),2),m=y[0],x=y[1],_=(0,g.__read)(Er(this.view.coordinateBBox,f,E.BOTTOM),2),w=_[0],b=_[1];this.slider.component.update((0,g.__assign)((0,g.__assign)({},this.getSliderCfg()),{x:w+u,y:x+o,width:this.width,start:this.start,end:this.end,minText:d,maxText:p})),this.view.viewBBox=this.view.viewBBox.cut(f,E.BOTTOM)}},r.prototype.update=function(){this.render()},r.prototype.createSlider=function(){var t=this.getSliderCfg(),i=new zp((0,g.__assign)({container:this.container},t));return i.init(),{component:i,layer:J.FORE,direction:E.BOTTOM,type:N.SLIDER}},r.prototype.updateSlider=function(){var t=this.getSliderCfg();if(this.width){var i=this.getMinMaxText(this.start,this.end),n=i.minText,a=i.maxText;t=(0,g.__assign)((0,g.__assign)({},t),{width:this.width,start:this.start,end:this.end,minText:n,maxText:a})}return this.slider.component.update(t),this.slider},r.prototype.measureSlider=function(){var t=this.getSliderCfg().width;this.width=t},r.prototype.getSliderCfg=function(){var t={height:16,start:0,end:1,minText:"",maxText:"",x:0,y:0,width:this.view.coordinateBBox.width};if((0,h.isObject)(this.option)){var i=(0,g.__assign)({data:this.getData()},(0,h.get)(this.option,"trendCfg",{}));t=(0,h.deepMix)({},t,this.getThemeOptions(),this.option),t=(0,g.__assign)((0,g.__assign)({},t),{trendCfg:i})}return t.start=(0,h.clamp)(Math.min((0,h.isNil)(t.start)?0:t.start,(0,h.isNil)(t.end)?1:t.end),0,1),t.end=(0,h.clamp)(Math.max((0,h.isNil)(t.start)?0:t.start,(0,h.isNil)(t.end)?1:t.end),0,1),t},r.prototype.getData=function(){var t=this.view.getOptions().data,i=(0,g.__read)(this.view.getYScales(),1),n=i[0],a=this.view.getGroupScales();if(a.length){var o=a[0],s=o.field,l=o.ticks;return t.reduce(function(u,c){return c[s]===l[0]&&u.push(c[n.field]),u},[])}return t.map(function(u){return u[n.field]||0})},r.prototype.getThemeOptions=function(){var t=this.view.getTheme();return(0,h.get)(t,["components","slider","common"],{})},r.prototype.getMinMaxText=function(t,i){var n=this.view.getOptions().data,a=this.view.getXScale(),o=!0,s=(0,h.valuesOfKey)(n,a.field);a.isLinear&&(s=s.sort());var l=o?s:s.reverse(),u=(0,h.size)(n);if(!a||!u)return{};var c=(0,h.size)(l),f=Math.round(t*(c-1)),v=Math.round(i*(c-1)),d=(0,h.get)(l,[f]),p=(0,h.get)(l,[v]),y=this.getSliderCfg().formatter;return y&&(d=y(d,n[f],f),p=y(p,n[v],v)),{minText:d,maxText:p}},r.prototype.changeViewData=function(t,i){var n=this.view.getOptions().data,a=this.view.getXScale(),o=(0,h.size)(n);if(!(!a||!o)){var s=!0,l=(0,h.valuesOfKey)(n,a.field),u=this.view.getXScale().isLinear?l.sort(function(p,y){return Number(p)-Number(y)}):l,c=s?u:u.reverse(),f=(0,h.size)(c),v=Math.round(t*(f-1)),d=Math.round(i*(f-1));this.view.filter(a.field,function(p,y){var m=c.indexOf(p);return m>-1?li(m,v,d):!0}),this.view.render(!0)}},r.prototype.getComponents=function(){return this.slider?[this.slider]:[]},r.prototype.clear=function(){this.slider&&(this.slider.component.destroy(),this.slider=void 0),this.width=0,this.start=void 0,this.end=void 0},r}(di),r_=e_,ua=0,Oc=8,i_=32,n_=20,a_=function(e){(0,g.__extends)(r,e);function r(t){var i=e.call(this,t)||this;return i.onChangeFn=h.noop,i.resetMeasure=function(){i.clear()},i.onValueChange=function(n){var a=n.ratio,o=i.getValidScrollbarCfg().animate;i.ratio=(0,h.clamp)(a,0,1);var s=i.view.getOptions().animate;o||i.view.animate(!1),i.changeViewData(i.getScrollRange(),!0),i.view.animate(s)},i.container=i.view.getLayer(J.FORE).addGroup(),i.onChangeFn=(0,h.throttle)(i.onValueChange,20,{leading:!0}),i.trackLen=0,i.thumbLen=0,i.ratio=0,i.view.on(L.BEFORE_CHANGE_DATA,i.resetMeasure),i.view.on(L.BEFORE_CHANGE_SIZE,i.resetMeasure),i}return Object.defineProperty(r.prototype,"name",{get:function(){return"scrollbar"},enumerable:!1,configurable:!0}),r.prototype.destroy=function(){e.prototype.destroy.call(this),this.view.off(L.BEFORE_CHANGE_DATA,this.resetMeasure),this.view.off(L.BEFORE_CHANGE_SIZE,this.resetMeasure)},r.prototype.init=function(){},r.prototype.render=function(){this.option=this.view.getOptions().scrollbar,this.option?this.scrollbar?this.scrollbar=this.updateScrollbar():(this.scrollbar=this.createScrollbar(),this.scrollbar.component.on("scrollchange",this.onChangeFn)):this.scrollbar&&(this.scrollbar.component.destroy(),this.scrollbar=void 0)},r.prototype.layout=function(){var t=this;if(this.option&&!this.trackLen&&(this.measureScrollbar(),setTimeout(function(){t.view.destroyed||t.changeViewData(t.getScrollRange(),!0)})),this.scrollbar){var i=this.view.coordinateBBox.width,n=this.scrollbar.component.get("padding"),a=this.scrollbar.component.getLayoutBBox(),o=new Ee(a.x,a.y,Math.min(a.width,i),a.height).expand(n),s=this.getScrollbarComponentCfg(),l=void 0,u=void 0;if(s.isHorizontal){var c=(0,g.__read)(Er(this.view.viewBBox,o,E.BOTTOM),2),f=c[0],v=c[1],d=(0,g.__read)(Er(this.view.coordinateBBox,o,E.BOTTOM),2),p=d[0],y=d[1];l=p,u=v}else{var m=(0,g.__read)(Er(this.view.viewBBox,o,E.RIGHT),2),f=m[0],v=m[1],x=(0,g.__read)(Er(this.view.viewBBox,o,E.RIGHT),2),p=x[0],y=x[1];l=p,u=v}l+=n[3],u+=n[0],this.trackLen?this.scrollbar.component.update((0,g.__assign)((0,g.__assign)({},s),{x:l,y:u,trackLen:this.trackLen,thumbLen:this.thumbLen,thumbOffset:(this.trackLen-this.thumbLen)*this.ratio})):this.scrollbar.component.update((0,g.__assign)((0,g.__assign)({},s),{x:l,y:u})),this.view.viewBBox=this.view.viewBBox.cut(o,s.isHorizontal?E.BOTTOM:E.RIGHT)}},r.prototype.update=function(){this.render()},r.prototype.getComponents=function(){return this.scrollbar?[this.scrollbar]:[]},r.prototype.clear=function(){this.scrollbar&&(this.scrollbar.component.destroy(),this.scrollbar=void 0),this.trackLen=0,this.thumbLen=0,this.ratio=0,this.cnt=0,this.step=0,this.data=void 0,this.xScaleCfg=void 0,this.yScalesCfg=[]},r.prototype.setValue=function(t){this.onValueChange({ratio:t})},r.prototype.getValue=function(){return this.ratio},r.prototype.getThemeOptions=function(){var t=this.view.getTheme();return(0,h.get)(t,["components","scrollbar","common"],{})},r.prototype.getScrollbarTheme=function(t){var i=(0,h.get)(this.view.getTheme(),["components","scrollbar"]),n=t||{},a=n.thumbHighlightColor,o=(0,g.__rest)(n,["thumbHighlightColor"]);return{default:(0,h.deepMix)({},(0,h.get)(i,["default","style"],{}),o),hover:(0,h.deepMix)({},(0,h.get)(i,["hover","style"],{}),{thumbColor:a})}},r.prototype.measureScrollbar=function(){var t=this.view.getXScale(),i=this.view.getYScales().slice();this.data=this.getScrollbarData(),this.step=this.getStep(),this.cnt=this.getCnt();var n=this.getScrollbarComponentCfg(),a=n.trackLen,o=n.thumbLen;this.trackLen=a,this.thumbLen=o,this.xScaleCfg={field:t.field,values:t.values||[]},this.yScalesCfg=i},r.prototype.getScrollRange=function(){var t=Math.floor((this.cnt-this.step)*(0,h.clamp)(this.ratio,0,1)),i=Math.min(t+this.step-1,this.cnt-1);return[t,i]},r.prototype.changeViewData=function(t,i){var n=this,a=(0,g.__read)(t,2),o=a[0],s=a[1],l=this.getValidScrollbarCfg().type,u=l!=="vertical",c=(0,h.valuesOfKey)(this.data,this.xScaleCfg.field),f=this.view.getXScale().isLinear?c.sort(function(d,p){return Number(d)-Number(p)}):c,v=u?f:f.reverse();this.yScalesCfg.forEach(function(d){n.view.scale(d.field,{formatter:d.formatter,type:d.type,min:d.min,max:d.max,tickMethod:d.tickMethod})}),this.view.filter(this.xScaleCfg.field,function(d){var p=v.indexOf(d);return p>-1?li(p,o,s):!0}),this.view.render(!0)},r.prototype.createScrollbar=function(){var t=this.getValidScrollbarCfg().type,i=t!=="vertical",n=new Gp((0,g.__assign)((0,g.__assign)({container:this.container},this.getScrollbarComponentCfg()),{x:0,y:0}));return n.init(),{component:n,layer:J.FORE,direction:i?E.BOTTOM:E.RIGHT,type:N.SCROLLBAR}},r.prototype.updateScrollbar=function(){var t=this.getScrollbarComponentCfg(),i=this.trackLen?(0,g.__assign)((0,g.__assign)({},t),{trackLen:this.trackLen,thumbLen:this.thumbLen,thumbOffset:(this.trackLen-this.thumbLen)*this.ratio}):(0,g.__assign)({},t);return this.scrollbar.component.update(i),this.scrollbar},r.prototype.getStep=function(){if(this.step)return this.step;var t=this.view.coordinateBBox,i=this.getValidScrollbarCfg(),n=i.type,a=i.categorySize,o=n!=="vertical";return Math.floor((o?t.width:t.height)/a)},r.prototype.getCnt=function(){if(this.cnt)return this.cnt;var t=this.view.getXScale(),i=this.getScrollbarData(),n=(0,h.valuesOfKey)(i,t.field);return(0,h.size)(n)},r.prototype.getScrollbarComponentCfg=function(){var t=this.view,i=t.coordinateBBox,n=t.viewBBox,a=this.getValidScrollbarCfg(),o=a.type,s=a.padding,l=a.width,u=a.height,c=a.style,f=o!=="vertical",v=(0,g.__read)(s,4),d=v[0],p=v[1],y=v[2],m=v[3],x=f?{x:i.minX+m,y:n.maxY-u-y}:{x:n.maxX-l-p,y:i.minY+d},_=this.getStep(),w=this.getCnt(),b=f?i.width-m-p:i.height-d-y,S=Math.max(b*(0,h.clamp)(_/w,0,1),n_);return(0,g.__assign)((0,g.__assign)({},this.getThemeOptions()),{x:x.x,y:x.y,size:f?u:l,isHorizontal:f,trackLen:b,thumbLen:S,thumbOffset:0,theme:this.getScrollbarTheme(c)})},r.prototype.getValidScrollbarCfg=function(){var t={type:"horizontal",categorySize:i_,width:Oc,height:Oc,padding:[0,0,0,0],animate:!0,style:{}};return(0,h.isObject)(this.option)&&(t=(0,g.__assign)((0,g.__assign)({},t),this.option)),(!(0,h.isObject)(this.option)||!this.option.padding)&&(t.padding=t.type==="horizontal"?[ua,0,ua,0]:[0,ua,0,ua]),t},r.prototype.getScrollbarData=function(){var t=this.view.getCoordinate(),i=this.getValidScrollbarCfg(),n=this.view.getOptions().data||[];return t.isReflect("y")&&i.type==="vertical"&&(n=(0,g.__spreadArray)([],(0,g.__read)(n),!1).reverse()),n},r}(di),o_=a_,s_={fill:"#CCD6EC",opacity:.3};function l_(e,r,t){var i,n,a,o,s,l,u=Zy(e,r,t);if(u.length){u=(0,h.flatten)(u);try{for(var c=(0,g.__values)(u),f=c.next();!f.done;f=c.next()){var v=f.value;try{for(var d=(a=void 0,(0,g.__values)(v)),p=d.next();!p.done;p=d.next()){var y=p.value,m=y.mappingData,x=m.x,_=m.y;y.x=(0,h.isArray)(x)?x[x.length-1]:x,y.y=(0,h.isArray)(_)?_[_.length-1]:_}}catch(I){a={error:I}}finally{try{p&&!p.done&&(o=d.return)&&o.call(d)}finally{if(a)throw a.error}}}}catch(I){i={error:I}}finally{try{f&&!f.done&&(n=c.return)&&n.call(c)}finally{if(i)throw i.error}}var w=t.shared;if(w===!1&&u.length>1){var b=u[0],S=Math.abs(r.y-b[0].y);try{for(var C=(0,g.__values)(u),A=C.next();!A.done;A=C.next()){var F=A.value,P=Math.abs(r.y-F[0].y);P<=S&&(b=F,S=P)}}catch(I){s={error:I}}finally{try{A&&!A.done&&(l=C.return)&&l.call(C)}finally{if(s)throw s.error}}u=[b]}return(0,h.uniq)((0,h.flatten)(u))}return[]}var u_=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.show=function(t){var i=this.context.view,n=this.context.event,a=i.getController("tooltip").getTooltipCfg(),o=l_(i,{x:n.x,y:n.y},a);if(!(0,h.isEqual)(o,this.items)&&(this.items=o,o.length)){var s=i.getXScale().field,l=o[0].data[s],u=[],c=i.geometries;if((0,h.each)(c,function(mt){if(mt.type==="interval"||mt.type==="schema"){var ut=mt.getElementsBy(function(pt){var At=pt.getData();return At[s]===l});u=u.concat(ut)}}),u.length){var f=i.getCoordinate(),v=u[0].shape.getCanvasBBox(),d=u[0].shape.getCanvasBBox(),p=v;(0,h.each)(u,function(mt){var ut=mt.shape.getCanvasBBox();f.isTransposed?(ut.minYd.maxY&&(d=ut)):(ut.minXd.maxX&&(d=ut)),p.x=Math.min(ut.minX,p.minX),p.y=Math.min(ut.minY,p.minY),p.width=Math.max(ut.maxX,p.maxX)-p.x,p.height=Math.max(ut.maxY,p.maxY)-p.y});var y=i.backgroundGroup,m=i.coordinateBBox,x=void 0;if(f.isRect){var _=i.getXScale(),w=t||{},b=w.appendRatio,S=w.appendWidth;(0,h.isNil)(S)&&(b=(0,h.isNil)(b)?_.isLinear?0:.25:b,S=f.isTransposed?b*d.height:b*v.width);var C=void 0,A=void 0,F=void 0,P=void 0;f.isTransposed?(C=m.minX,A=Math.min(d.minY,v.minY)-S,F=m.width,P=p.height+S*2):(C=Math.min(v.minX,d.minX)-S,A=m.minY,F=p.width+S*2,P=m.height),x=[["M",C,A],["L",C+F,A],["L",C+F,A+P],["L",C,A+P],["Z"]]}else{var I=(0,h.head)(u),V=(0,h.last)(u),Z=Xi(I.getModel(),f).startAngle,vt=Xi(V.getModel(),f).endAngle,yt=f.getCenter(),Bt=f.getRadius(),G=f.innerRadius*Bt;x=_r(yt.x,yt.y,Bt,Z,vt,G)}if(this.regionPath)this.regionPath.attr("path",x),this.regionPath.show();else{var at=(0,h.get)(t,"style",s_);this.regionPath=y.addShape({type:"path",name:"active-region",capture:!1,attrs:(0,g.__assign)((0,g.__assign)({},at),{path:x})})}}}},r.prototype.hide=function(){this.regionPath&&this.regionPath.hide(),this.items=null},r.prototype.destroy=function(){this.hide(),this.regionPath&&this.regionPath.remove(!0),e.prototype.destroy.call(this)},r}(ne),c_=u_,h_=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.timeStamp=0,t}return r.prototype.show=function(){var t=this.context,i=t.event,n=t.view,a=n.isTooltipLocked();if(!a){var o=this.timeStamp,s=+new Date,l=(0,h.get)(t.view.getOptions(),"tooltip.showDelay",16);if(s-o>l){var u=this.location,c={x:i.x,y:i.y};(!u||!(0,h.isEqual)(u,c))&&this.showTooltip(n,c),this.timeStamp=s,this.location=c}}},r.prototype.hide=function(){var t=this.context.view,i=t.getController("tooltip"),n=this.context.event,a=n.clientX,o=n.clientY;i.isCursorEntered({x:a,y:o})||t.isTooltipLocked()||(this.hideTooltip(t),this.location=null)},r.prototype.showTooltip=function(t,i){t.showTooltip(i)},r.prototype.hideTooltip=function(t){t.hideTooltip()},r}(ne),Pc=h_,f_=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.showTooltip=function(t,i){var n=Qe(t);(0,h.each)(n,function(a){var o=wo(t,a,i);a.showTooltip(o)})},r.prototype.hideTooltip=function(t){var i=Qe(t);(0,h.each)(i,function(n){n.hideTooltip()})},r}(Pc),v_=f_,d_=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.timeStamp=0,t}return r.prototype.destroy=function(){e.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},r.prototype.show=function(){var t=this.context,i=t.event,n=this.timeStamp,a=+new Date;if(a-n>16){var o=this.location,s={x:i.x,y:i.y};(!o||!(0,h.isEqual)(o,s))&&this.showTooltip(s),this.timeStamp=a,this.location=s}},r.prototype.hide=function(){this.hideTooltip(),this.location=null},r.prototype.showTooltip=function(t){var i=this.context,n=i.event,a=n.target;if(a&&a.get("tip")){this.tooltip||this.renderTooltip();var o=a.get("tip");this.tooltip.update((0,g.__assign)({title:o},t)),this.tooltip.show()}},r.prototype.hideTooltip=function(){this.tooltip&&this.tooltip.hide()},r.prototype.renderTooltip=function(){var t,i=this.context.view,n=i.canvas,a={start:{x:0,y:0},end:{x:n.get("width"),y:n.get("height")}},o=i.getTheme(),s=(0,h.get)(o,["components","tooltip","domStyles"],{}),l=new Nn({parent:n.get("el").parentNode,region:a,visible:!1,crosshairs:null,domStyles:(0,g.__assign)({},(0,h.deepMix)({},s,(t={},t[sr]={"max-width":"50%"},t[lr]={"word-break":"break-all"},t)))});l.init(),l.setCapture(!1),this.tooltip=l},r}(ne),g_=d_,p_=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.stateName="",t}return r.prototype.hasState=function(t){return t.hasState(this.stateName)},r.prototype.setElementState=function(t,i){t.setState(this.stateName,i)},r.prototype.setState=function(){this.setStateEnable(!0)},r.prototype.clear=function(){var t=this.context.view;this.clearViewState(t)},r.prototype.clearViewState=function(t){var i=this,n=cu(t,this.stateName);(0,h.each)(n,function(a){i.setElementState(a,!1)})},r}(ne),qo=p_;function kc(e){return(0,h.get)(e.get("delegateObject"),"item")}var y_=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.ignoreListItemStates=["unchecked"],t}return r.prototype.isItemIgnore=function(t,i){var n=this.ignoreListItemStates,a=n.filter(function(o){return i.hasState(t,o)});return!!a.length},r.prototype.setStateByComponent=function(t,i,n){var a=this.context.view,o=t.get("field"),s=Ce(a);this.setElementsStateByItem(s,o,i,n)},r.prototype.setStateByElement=function(t,i){this.setElementState(t,i)},r.prototype.isMathItem=function(t,i,n){var a=this.context.view,o=fi(a,i),s=je(t,i);return!(0,h.isNil)(s)&&n.name===o.getText(s)},r.prototype.setElementsStateByItem=function(t,i,n,a){var o=this;(0,h.each)(t,function(s){o.isMathItem(s,i,n)&&s.setState(o.stateName,a)})},r.prototype.setStateEnable=function(t){var i=br(this.context);if(i)ou(this.context)&&this.setStateByElement(i,t);else{var n=zr(this.context);if(qi(n)){var a=n.item,o=n.component;if(a&&o&&!this.isItemIgnore(a,o)){var s=this.context.event.gEvent;if(s&&s.fromShape&&s.toShape&&kc(s.fromShape)===kc(s.toShape))return;this.setStateByComponent(o,a,t)}}}},r.prototype.toggle=function(){var t=br(this.context);if(t){var i=t.hasState(this.stateName);this.setElementState(t,!i)}},r.prototype.reset=function(){this.setStateEnable(!1)},r}(qo),Ko=y_,m_=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.stateName="active",t}return r.prototype.active=function(){this.setState()},r}(Ko),x_=m_,__=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.cache={},t}return r.prototype.getColorScale=function(t,i){var n=i.geometry.getAttribute("color");if(!n)return null;var a=t.getScaleByField(n.getFields()[0]);return a},r.prototype.getLinkPath=function(t,i){var n=this.context.view,a=n.getCoordinate().isTransposed,o=t.shape.getCanvasBBox(),s=i.shape.getCanvasBBox(),l=a?[["M",o.minX,o.minY],["L",s.minX,s.maxY],["L",s.maxX,s.maxY],["L",o.maxX,o.minY],["Z"]]:[["M",o.maxX,o.minY],["L",s.minX,s.minY],["L",s.minX,s.maxY],["L",o.maxX,o.maxY],["Z"]];return l},r.prototype.addLinkShape=function(t,i,n,a){var o={opacity:.4,fill:i.shape.attr("fill")};t.addShape({type:"path",attrs:(0,g.__assign)((0,g.__assign)({},(0,h.deepMix)({},o,(0,h.isFunction)(a)?a(o,i):a)),{path:this.getLinkPath(i,n)})})},r.prototype.linkByElement=function(t,i){var n=this,a=this.context.view,o=this.getColorScale(a,t);if(!!o){var s=je(t,o.field);if(!this.cache[s]){var l=Sy(a,o.field,s),u=this.linkGroup,c=u.addGroup();this.cache[s]=c;var f=l.length;(0,h.each)(l,function(v,d){if(d=0},i)},r}($o),Bc=P_,k_=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.stateName="active",t}return r.prototype.highlight=function(){this.setState()},r.prototype.setElementState=function(t,i){var n=this.context.view,a=Ce(n);Dc(a,function(o){return t===o},i)},r.prototype.clear=function(){var t=this.context.view;Jo(t)},r}(Qo),D_=k_,B_=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.stateName="selected",t}return r.prototype.selected=function(){this.setState()},r}($o),R_=B_,N_=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.stateName="selected",t}return r.prototype.selected=function(){this.setState()},r}(Ko),z_=N_,V_=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.stateName="selected",t}return r.prototype.selected=function(){this.setState()},r}(Qo),G_=V_,W_=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.stateName="",t.ignoreItemStates=[],t}return r.prototype.getTriggerListInfo=function(){var t=zr(this.context),i=null;return qi(t)&&(i={item:t.item,list:t.component}),i},r.prototype.getAllowComponents=function(){var t=this,i=this.context.view,n=vu(i),a=[];return(0,h.each)(n,function(o){o.isList()&&t.allowSetStateByElement(o)&&a.push(o)}),a},r.prototype.hasState=function(t,i){return t.hasState(i,this.stateName)},r.prototype.clearAllComponentsState=function(){var t=this,i=this.getAllowComponents();(0,h.each)(i,function(n){n.clearItemsState(t.stateName)})},r.prototype.allowSetStateByElement=function(t){var i=t.get("field");if(!i)return!1;if(this.cfg&&this.cfg.componentNames){var n=t.get("name");if(this.cfg.componentNames.indexOf(n)===-1)return!1}var a=this.context.view,o=fi(a,i);return o&&o.isCategory},r.prototype.allowSetStateByItem=function(t,i){var n=this.ignoreItemStates;if(n.length){var a=n.filter(function(o){return i.hasState(t,o)});return a.length===0}return!0},r.prototype.setStateByElement=function(t,i,n){var a=t.get("field"),o=this.context.view,s=fi(o,a),l=je(i,a),u=s.getText(l);this.setItemsState(t,u,n)},r.prototype.setStateEnable=function(t){var i=this,n=br(this.context);if(n){var a=this.getAllowComponents();(0,h.each)(a,function(u){i.setStateByElement(u,n,t)})}else{var o=zr(this.context);if(qi(o)){var s=o.item,l=o.component;this.allowSetStateByElement(l)&&this.allowSetStateByItem(s,l)&&this.setItemState(l,s,t)}}},r.prototype.setItemsState=function(t,i,n){var a=this,o=t.getItems();(0,h.each)(o,function(s){s.name===i&&a.setItemState(t,s,n)})},r.prototype.setItemState=function(t,i,n){t.setItemState(i,this.stateName,n)},r.prototype.setState=function(){this.setStateEnable(!0)},r.prototype.reset=function(){this.setStateEnable(!1)},r.prototype.toggle=function(){var t=this.getTriggerListInfo();if(t&&t.item){var i=t.list,n=t.item,a=this.hasState(i,n);this.setItemState(i,n,!a)}},r.prototype.clear=function(){var t=this.getTriggerListInfo();t?t.list.clearItemsState(this.stateName):this.clearAllComponentsState()},r}(ne),Hr=W_,H_=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.stateName="active",t}return r.prototype.active=function(){this.setState()},r}(Hr),Y_=H_,Rc="inactive",Nc="active";function X_(e){var r=e.getItems();(0,h.each)(r,function(t){e.hasState(t,Nc)&&e.setItemState(t,Nc,!1),e.hasState(t,Rc)&&e.setItemState(t,Rc,!1)})}var an="inactive",Yr="active",U_=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.stateName=Yr,t.ignoreItemStates=["unchecked"],t}return r.prototype.setItemsState=function(t,i,n){this.setHighlightBy(t,function(a){return a.name===i},n)},r.prototype.setItemState=function(t,i,n){var a=t.getItems();this.setHighlightBy(t,function(o){return o===i},n)},r.prototype.setHighlightBy=function(t,i,n){var a=t.getItems();if(n)(0,h.each)(a,function(l){i(l)?(t.hasState(l,an)&&t.setItemState(l,an,!1),t.setItemState(l,Yr,!0)):t.hasState(l,Yr)||t.setItemState(l,an,!0)});else{var o=t.getItemsByState(Yr),s=!0;(0,h.each)(o,function(l){if(!i(l))return s=!1,!1}),s?this.clear():(0,h.each)(a,function(l){i(l)&&(t.hasState(l,Yr)&&t.setItemState(l,Yr,!1),t.setItemState(l,an,!0))})}},r.prototype.highlight=function(){this.setState()},r.prototype.clear=function(){var t=this.getTriggerListInfo();if(t)X_(t.list);else{var i=this.getAllowComponents();(0,h.each)(i,function(n){n.clearItemsState(Yr),n.clearItemsState(an)})}},r}(Hr),es=U_,j_=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.stateName="selected",t}return r.prototype.selected=function(){this.setState()},r}(Hr),Z_=j_,q_=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.stateName="unchecked",t}return r.prototype.unchecked=function(){this.setState()},r}(Hr),K_=q_,yi="unchecked",ca="checked",$_=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.stateName=ca,t}return r.prototype.setItemState=function(t,i,n){this.setCheckedBy(t,function(a){return a===i},n)},r.prototype.setCheckedBy=function(t,i,n){var a=t.getItems();n&&(0,h.each)(a,function(o){i(o)?(t.hasState(o,yi)&&t.setItemState(o,yi,!1),t.setItemState(o,ca,!0)):t.hasState(o,ca)||t.setItemState(o,yi,!0)})},r.prototype.toggle=function(){var t=this.getTriggerListInfo();if(t&&t.item){var i=t.list,n=t.item,a=!(0,h.some)(i.getItems(),function(o){return i.hasState(o,yi)});a||i.hasState(n,yi)?this.setItemState(i,n,!0):this.reset()}},r.prototype.checked=function(){this.setState()},r.prototype.reset=function(){var t=this.getAllowComponents();(0,h.each)(t,function(i){i.clearItemsState(ca),i.clearItemsState(yi)})},r}(Hr),Q_=$_,mi="unchecked",J_=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.toggle=function(){var t,i,n,a,o,s,l,u,c=this.getTriggerListInfo();if(c==null?void 0:c.item){var f=c.list,v=c.item,d=f.getItems(),p=d.filter(function(I){return!f.hasState(I,mi)}),y=d.filter(function(I){return f.hasState(I,mi)}),m=p[0];if(d.length===p.length)try{for(var x=(0,g.__values)(d),_=x.next();!_.done;_=x.next()){var w=_.value;f.setItemState(w,mi,w.id!==v.id)}}catch(I){t={error:I}}finally{try{_&&!_.done&&(i=x.return)&&i.call(x)}finally{if(t)throw t.error}}else if(d.length-y.length==1)if(m.id===v.id)try{for(var b=(0,g.__values)(d),S=b.next();!S.done;S=b.next()){var w=S.value;f.setItemState(w,mi,!1)}}catch(I){n={error:I}}finally{try{S&&!S.done&&(a=b.return)&&a.call(b)}finally{if(n)throw n.error}}else try{for(var C=(0,g.__values)(d),A=C.next();!A.done;A=C.next()){var w=A.value;f.setItemState(w,mi,w.id!==v.id)}}catch(I){o={error:I}}finally{try{A&&!A.done&&(s=C.return)&&s.call(C)}finally{if(o)throw o.error}}else try{for(var F=(0,g.__values)(d),P=F.next();!P.done;P=F.next()){var w=P.value;f.setItemState(w,mi,w.id!==v.id)}}catch(I){l={error:I}}finally{try{P&&!P.done&&(u=F.return)&&u.call(F)}finally{if(l)throw l.error}}}},r}(Hr),tw=J_,zc="showRadio",rs="legend-radio-tip",ew=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.timeStamp=0,t}return r.prototype.show=function(){var t=this.getTriggerListInfo();if(t==null?void 0:t.item){var i=t.list,n=t.item;i.setItemState(n,zc,!0)}},r.prototype.hide=function(){var t=this.getTriggerListInfo();if(t==null?void 0:t.item){var i=t.list,n=t.item;i.setItemState(n,zc,!1)}},r.prototype.destroy=function(){e.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},r.prototype.showTip=function(){var t=this.context,i=t.event,n=this.timeStamp,a=+new Date,o=this.context.event.target;if(a-n>16&&o.get("name")==="legend-item-radio"){var s=this.location,l={x:i.x,y:i.y};this.timeStamp=a,this.location=l,(!s||!(0,h.isEqual)(s,l))&&this.showTooltip(l)}},r.prototype.hideTip=function(){this.hideTooltip(),this.location=null},r.prototype.showTooltip=function(t){var i=this.context,n=i.event,a=n.target;if(a&&a.get("tip")){this.tooltip||this.renderTooltip();var o=i.view.getCanvas().get("el").getBoundingClientRect(),s=o.x,l=o.y;this.tooltip.update((0,g.__assign)((0,g.__assign)({title:a.get("tip")},t),{x:t.x+s,y:t.y+l})),this.tooltip.show()}},r.prototype.hideTooltip=function(){this.tooltip&&this.tooltip.hide()},r.prototype.renderTooltip=function(){var t,i=(t={},t[sr]={padding:"6px 8px",transform:"translate(-50%, -80%)",background:"rgba(0,0,0,0.75)",color:"#fff","border-radius":"2px","z-index":100},t[lr]={"font-size":"12px","line-height":"14px","margin-bottom":0,"word-break":"break-all"},t);document.getElementById(rs)&&document.body.removeChild(document.getElementById(rs));var n=new Nn({parent:document.body,region:null,visible:!1,crosshairs:null,domStyles:i,containerId:rs});n.init(),n.setCapture(!1),this.tooltip=n},r}(Hr),rw=ew,iw=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.maskShape=null,t.points=[],t.starting=!1,t.moving=!1,t.preMovePoint=null,t.shapeType="path",t}return r.prototype.getCurrentPoint=function(){var t=this.context.event;return{x:t.x,y:t.y}},r.prototype.emitEvent=function(t){var i="mask:".concat(t),n=this.context.view,a=this.context.event;n.emit(i,{target:this.maskShape,shape:this.maskShape,points:this.points,x:a.x,y:a.y})},r.prototype.createMask=function(){var t=this.context.view,i=this.getMaskAttrs(),n=t.foregroundGroup.addShape({type:this.shapeType,name:"mask",draggable:!0,attrs:(0,g.__assign)({fill:"#C5D4EB",opacity:.3},i)});return n},r.prototype.getMaskPath=function(){return[]},r.prototype.show=function(){this.maskShape&&(this.maskShape.show(),this.emitEvent("show"))},r.prototype.start=function(t){this.starting=!0,this.moving=!1,this.points=[this.getCurrentPoint()],this.maskShape||(this.maskShape=this.createMask(),this.maskShape.set("capture",!1)),this.updateMask(t==null?void 0:t.maskStyle),this.emitEvent("start")},r.prototype.moveStart=function(){this.moving=!0,this.preMovePoint=this.getCurrentPoint()},r.prototype.move=function(){if(!(!this.moving||!this.maskShape)){var t=this.getCurrentPoint(),i=this.preMovePoint,n=t.x-i.x,a=t.y-i.y,o=this.points;(0,h.each)(o,function(s){s.x+=n,s.y+=a}),this.updateMask(),this.emitEvent("change"),this.preMovePoint=t}},r.prototype.updateMask=function(t){var i=(0,h.deepMix)({},this.getMaskAttrs(),t);this.maskShape.attr(i)},r.prototype.moveEnd=function(){this.moving=!1,this.preMovePoint=null},r.prototype.end=function(){this.starting=!1,this.emitEvent("end"),this.maskShape&&this.maskShape.set("capture",!0)},r.prototype.hide=function(){this.maskShape&&(this.maskShape.hide(),this.emitEvent("hide"))},r.prototype.resize=function(){this.starting&&this.maskShape&&(this.points.push(this.getCurrentPoint()),this.updateMask(),this.emitEvent("change"))},r.prototype.destroy=function(){this.points=[],this.maskShape&&this.maskShape.remove(),this.maskShape=null,this.preMovePoint=null,e.prototype.destroy.call(this)},r}(ne),is=iw;function Vc(e){var r=(0,h.last)(e),t=0,i=0,n=0;if(e.length){var a=e[0];t=_o(a,r)/2,i=(r.x+a.x)/2,n=(r.y+a.y)/2}return{x:i,y:n,r:t}}var nw=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.shapeType="circle",t}return r.prototype.getMaskAttrs=function(){return Vc(this.points)},r}(is),aw=nw;function Gc(e){return{start:(0,h.head)(e),end:(0,h.last)(e)}}function Wc(e,r){var t=Math.min(e.x,r.x),i=Math.min(e.y,r.y),n=Math.abs(r.x-e.x),a=Math.abs(r.y-e.y);return{x:t,y:i,width:n,height:a}}var ow=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.shapeType="rect",t}return r.prototype.getRegion=function(){return Gc(this.points)},r.prototype.getMaskAttrs=function(){var t=this.getRegion(),i=t.start,n=t.end;return Wc(i,n)},r}(is),Hc=ow;function Yc(e){e.x=(0,h.clamp)(e.x,0,1),e.y=(0,h.clamp)(e.y,0,1)}function Xc(e,r,t,i){var n=null,a=null,o=i.invert((0,h.head)(e)),s=i.invert((0,h.last)(e));return t&&(Yc(o),Yc(s)),r==="x"?(n=i.convert({x:o.x,y:0}),a=i.convert({x:s.x,y:1})):(n=i.convert({x:0,y:o.y}),a=i.convert({x:1,y:s.y})),{start:n,end:a}}var sw=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.dim="x",t.inPlot=!0,t}return r.prototype.getRegion=function(){var t=this.context.view.getCoordinate();return Xc(this.points,this.dim,this.inPlot,t)},r}(Hc),Uc=sw;function ns(e){var r=[];return e.length&&((0,h.each)(e,function(t,i){i===0?r.push(["M",t.x,t.y]):r.push(["L",t.x,t.y])}),r.push(["L",e[0].x,e[0].y])),r}function jc(e){return{path:ns(e)}}var lw=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getMaskPath=function(){return ns(this.points)},r.prototype.getMaskAttrs=function(){return jc(this.points)},r.prototype.addPoint=function(){this.resize()},r}(is),Zc=lw;function as(e){return Ay(e,!0)}function qc(e){return{path:as(e)}}var uw=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getMaskPath=function(){return as(this.points)},r.prototype.getMaskAttrs=function(){return qc(this.points)},r}(Zc),cw=uw,hw=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.maskShapes=[],t.starting=!1,t.moving=!1,t.recordPoints=null,t.preMovePoint=null,t.shapeType="path",t.maskType="multi-mask",t}return r.prototype.getCurrentPoint=function(){var t=this.context.event;return{x:t.x,y:t.y}},r.prototype.emitEvent=function(t){var i="".concat(this.maskType,":").concat(t),n=this.context.view,a=this.context.event,o={type:this.shapeType,name:this.maskType,get:function(s){return o.hasOwnProperty(s)?o[s]:void 0}};n.emit(i,{target:o,maskShapes:this.maskShapes,multiPoints:this.recordPoints,x:a.x,y:a.y})},r.prototype.createMask=function(t){var i=this.context.view,n=this.recordPoints[t],a=this.getMaskAttrs(n),o=i.foregroundGroup.addShape({type:this.shapeType,name:"mask",draggable:!0,attrs:(0,g.__assign)({fill:"#C5D4EB",opacity:.3},a)});this.maskShapes.push(o)},r.prototype.getMaskPath=function(t){return[]},r.prototype.show=function(){this.maskShapes.length>0&&(this.maskShapes.forEach(function(t){return t.show()}),this.emitEvent("show"))},r.prototype.start=function(t){this.recordPointStart(),this.starting=!0,this.moving=!1;var i=this.recordPoints.length-1;this.createMask(i),this.updateShapesCapture(!1),this.updateMask(t==null?void 0:t.maskStyle),this.emitEvent("start")},r.prototype.moveStart=function(){this.moving=!0,this.preMovePoint=this.getCurrentPoint(),this.updateShapesCapture(!1)},r.prototype.move=function(){if(!(!this.moving||this.maskShapes.length===0)){var t=this.getCurrentPoint(),i=this.preMovePoint,n=t.x-i.x,a=t.y-i.y,o=this.getCurMaskShapeIndex();o>-1&&(this.recordPoints[o].forEach(function(s){s.x+=n,s.y+=a}),this.updateMask(),this.emitEvent("change"),this.preMovePoint=t)}},r.prototype.updateMask=function(t){var i=this;this.recordPoints.forEach(function(n,a){var o=(0,h.deepMix)({},i.getMaskAttrs(n),t);i.maskShapes[a].attr(o)})},r.prototype.resize=function(){this.starting&&this.maskShapes.length>0&&(this.recordPointContinue(),this.updateMask(),this.emitEvent("change"))},r.prototype.moveEnd=function(){this.moving=!1,this.preMovePoint=null,this.updateShapesCapture(!0)},r.prototype.end=function(){this.starting=!1,this.emitEvent("end"),this.updateShapesCapture(!0)},r.prototype.hide=function(){this.maskShapes.length>0&&(this.maskShapes.forEach(function(t){return t.hide()}),this.emitEvent("hide"))},r.prototype.remove=function(){var t=this.getCurMaskShapeIndex();t>-1&&(this.recordPoints.splice(t,1),this.maskShapes[t].remove(),this.maskShapes.splice(t,1),this.preMovePoint=null,this.updateShapesCapture(!0),this.emitEvent("change"))},r.prototype.clearAll=function(){this.recordPointClear(),this.maskShapes.forEach(function(t){return t.remove()}),this.maskShapes=[],this.preMovePoint=null},r.prototype.clear=function(){var t=this.getCurMaskShapeIndex();t===-1?(this.recordPointClear(),this.maskShapes.forEach(function(i){return i.remove()}),this.maskShapes=[],this.emitEvent("clearAll")):(this.recordPoints.splice(t,1),this.maskShapes[t].remove(),this.maskShapes.splice(t,1),this.preMovePoint=null,this.emitEvent("clearSingle")),this.preMovePoint=null},r.prototype.destroy=function(){this.clear(),e.prototype.destroy.call(this)},r.prototype.getRecordPoints=function(){var t;return(0,g.__spreadArray)([],(0,g.__read)((t=this.recordPoints)!==null&&t!==void 0?t:[]),!1)},r.prototype.recordPointStart=function(){var t=this.getRecordPoints(),i=this.getCurrentPoint();this.recordPoints=(0,g.__spreadArray)((0,g.__spreadArray)([],(0,g.__read)(t),!1),[[i]],!1)},r.prototype.recordPointContinue=function(){var t=this.getRecordPoints(),i=this.getCurrentPoint(),n=t.splice(-1,1)[0]||[];n.push(i),this.recordPoints=(0,g.__spreadArray)((0,g.__spreadArray)([],(0,g.__read)(t),!1),[n],!1)},r.prototype.recordPointClear=function(){this.recordPoints=[]},r.prototype.updateShapesCapture=function(t){this.maskShapes.forEach(function(i){return i.set("capture",t)})},r.prototype.getCurMaskShapeIndex=function(){var t=this.getCurrentPoint();return this.maskShapes.findIndex(function(i){var n=i.attrs,a=n.width,o=n.height,s=n.r,l=a===0||o===0||s===0;return!l&&i.isHit(t.x,t.y)})},r}(ne),os=hw,fw=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.shapeType="rect",t}return r.prototype.getRegion=function(t){return Gc(t)},r.prototype.getMaskAttrs=function(t){var i=this.getRegion(t),n=i.start,a=i.end;return Wc(n,a)},r}(os),Kc=fw,vw=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.dim="x",t.inPlot=!0,t}return r.prototype.getRegion=function(t){var i=this.context.view.getCoordinate();return Xc(t,this.dim,this.inPlot,i)},r}(Kc),$c=vw,dw=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.shapeType="circle",t.getMaskAttrs=Vc,t}return r}(os),gw=dw,pw=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.getMaskPath=ns,t.getMaskAttrs=jc,t}return r.prototype.addPoint=function(){this.resize()},r}(os),Qc=pw,yw=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.getMaskPath=as,t.getMaskAttrs=qc,t}return r}(Qc),mw=yw,xw=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.setCursor=function(t){var i=this.context.view;i.getCanvas().setCursor(t)},r.prototype.default=function(){this.setCursor("default")},r.prototype.pointer=function(){this.setCursor("pointer")},r.prototype.move=function(){this.setCursor("move")},r.prototype.crosshair=function(){this.setCursor("crosshair")},r.prototype.wait=function(){this.setCursor("wait")},r.prototype.help=function(){this.setCursor("help")},r.prototype.text=function(){this.setCursor("text")},r.prototype.eResize=function(){this.setCursor("e-resize")},r.prototype.wResize=function(){this.setCursor("w-resize")},r.prototype.nResize=function(){this.setCursor("n-resize")},r.prototype.sResize=function(){this.setCursor("s-resize")},r.prototype.neResize=function(){this.setCursor("ne-resize")},r.prototype.nwResize=function(){this.setCursor("nw-resize")},r.prototype.seResize=function(){this.setCursor("se-resize")},r.prototype.swResize=function(){this.setCursor("sw-resize")},r.prototype.nsResize=function(){this.setCursor("ns-resize")},r.prototype.ewResize=function(){this.setCursor("ew-resize")},r.prototype.zoomIn=function(){this.setCursor("zoom-in")},r.prototype.zoomOut=function(){this.setCursor("zoom-out")},r}(ne),_w=xw,ww=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.filterView=function(t,i,n){var a=this;t.getScaleByField(i)&&t.filter(i,n),t.views&&t.views.length&&(0,h.each)(t.views,function(o){a.filterView(o,i,n)})},r.prototype.filter=function(){var t=zr(this.context);if(t){var i=this.context.view,n=t.component,a=n.get("field");if(qi(t)){if(a){var o=n.getItemsByState("unchecked"),s=fi(i,a),l=o.map(function(d){return d.name});l.length?this.filterView(i,a,function(d){var p=s.getText(d);return!l.includes(p)}):this.filterView(i,a,null),i.render(!0)}}else if(su(t)){var u=n.getValue(),c=(0,g.__read)(u,2),f=c[0],v=c[1];this.filterView(i,a,function(d){return d>=f&&d<=v}),i.render(!0)}}},r}(ne),bw=ww;function Jc(e,r,t,i){var n=Math.min(t[r],i[r]),a=Math.max(t[r],i[r]),o=(0,g.__read)(e.range,2),s=o[0],l=o[1];if(nl&&(a=l),n===l&&a===l)return null;var u=e.invert(n),c=e.invert(a);if(e.isCategory){var f=e.values.indexOf(u),v=e.values.indexOf(c),d=e.values.slice(f,v+1);return function(p){return d.includes(p)}}else return function(p){return p>=u&&p<=c}}var De;(function(e){e.FILTER="brush-filter-processing",e.RESET="brush-filter-reset",e.BEFORE_FILTER="brush-filter:beforefilter",e.AFTER_FILTER="brush-filter:afterfilter",e.BEFORE_RESET="brush-filter:beforereset",e.AFTER_RESET="brush-filter:afterreset"})(De||(De={}));var Sw=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.dims=["x","y"],t.startPoint=null,t.isStarted=!1,t}return r.prototype.hasDim=function(t){return this.dims.includes(t)},r.prototype.start=function(){var t=this.context;this.isStarted=!0,this.startPoint=t.getCurrentPoint()},r.prototype.filter=function(){var t,i;if(Ki(this.context)){var n=this.context.event.target,a=n.getCanvasBBox();t={x:a.x,y:a.y},i={x:a.maxX,y:a.maxY}}else{if(!this.isStarted)return;t=this.startPoint,i=this.context.getCurrentPoint()}if(!(Math.abs(t.x-i.x)<5||Math.abs(t.x-i.y)<5)){var o=this.context,s=o.view,l=o.event,u={view:s,event:l,dims:this.dims};s.emit(De.BEFORE_FILTER,ue.fromData(s,De.BEFORE_FILTER,u));var c=s.getCoordinate(),f=c.invert(i),v=c.invert(t);if(this.hasDim("x")){var d=s.getXScale(),p=Jc(d,"x",f,v);this.filterView(s,d.field,p)}if(this.hasDim("y")){var y=s.getYScales()[0],p=Jc(y,"y",f,v);this.filterView(s,y.field,p)}this.reRender(s,{source:De.FILTER}),s.emit(De.AFTER_FILTER,ue.fromData(s,De.AFTER_FILTER,u))}},r.prototype.end=function(){this.isStarted=!1},r.prototype.reset=function(){var t=this.context.view;if(t.emit(De.BEFORE_RESET,ue.fromData(t,De.BEFORE_RESET,{})),this.isStarted=!1,this.hasDim("x")){var i=t.getXScale();this.filterView(t,i.field,null)}if(this.hasDim("y")){var n=t.getYScales()[0];this.filterView(t,n.field,null)}this.reRender(t,{source:De.RESET}),t.emit(De.AFTER_RESET,ue.fromData(t,De.AFTER_RESET,{}))},r.prototype.filterView=function(t,i,n){t.filter(i,n)},r.prototype.reRender=function(t,i){t.render(!0,i)},r}(ne),ha=Sw,Cw=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.filterView=function(t,i,n){var a=Qe(t);(0,h.each)(a,function(o){o.filter(i,n)})},r.prototype.reRender=function(t){var i=Qe(t);(0,h.each)(i,function(n){n.render(!0)})},r}(ha),ss=Cw,Aw=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.filter=function(){var t=zr(this.context),i=this.context.view,n=Ce(i);if(Ki(this.context)){var a=xo(this.context,10);a&&(0,h.each)(n,function(y){a.includes(y)?y.show():y.hide()})}else if(t){var o=t.component,s=o.get("field");if(qi(t)){if(s){var l=o.getItemsByState("unchecked"),u=fi(i,s),c=l.map(function(y){return y.name});(0,h.each)(n,function(y){var m=je(y,s),x=u.getText(m);c.indexOf(x)>=0?y.hide():y.show()})}}else if(su(t)){var f=o.getValue(),v=(0,g.__read)(f,2),d=v[0],p=v[1];(0,h.each)(n,function(y){var m=je(y,s);m>=d&&m<=p?y.show():y.hide()})}}},r.prototype.clear=function(){var t=Ce(this.context.view);(0,h.each)(t,function(i){i.show()})},r.prototype.reset=function(){this.clear()},r}(ne),Mw=Aw,Fw=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.byRecord=!1,t}return r.prototype.filter=function(){Ki(this.context)&&(this.byRecord?this.filterByRecord():this.filterByBBox())},r.prototype.filterByRecord=function(){var t=this.context.view,i=xo(this.context,10);if(!!i){var n=t.getXScale().field,a=t.getYScales()[0].field,o=i.map(function(l){return l.getModel().data}),s=Qe(t);(0,h.each)(s,function(l){var u=Ce(l);(0,h.each)(u,function(c){var f=c.getModel().data;gu(o,f,n,a)?c.show():c.hide()})})}},r.prototype.filterByBBox=function(){var t=this,i=this.context.view,n=Qe(i);(0,h.each)(n,function(a){var o=lu(t.context,a,10),s=Ce(a);o&&(0,h.each)(s,function(l){o.includes(l)?l.show():l.hide()})})},r.prototype.reset=function(){var t=Qe(this.context.view);(0,h.each)(t,function(i){var n=Ce(i);(0,h.each)(n,function(a){a.show()})})},r}(ne),th=Fw,Ew=10,Tw=5,Lw=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.buttonGroup=null,t.buttonCfg={name:"button",text:"button",textStyle:{x:0,y:0,fontSize:12,fill:"#333333",cursor:"pointer"},padding:[8,10],style:{fill:"#f7f7f7",stroke:"#cccccc",cursor:"pointer"},activeStyle:{fill:"#e6e6e6"}},t}return r.prototype.getButtonCfg=function(){return(0,h.deepMix)(this.buttonCfg,this.cfg)},r.prototype.drawButton=function(){var t=this.getButtonCfg(),i=this.context.view.foregroundGroup.addGroup({name:t.name}),n=i.addShape({type:"text",name:"button-text",attrs:(0,g.__assign)({text:t.text},t.textStyle)}),a=n.getBBox(),o=Ao(t.padding),s=i.addShape({type:"rect",name:"button-rect",attrs:(0,g.__assign)({x:a.x-o[3],y:a.y-o[0],width:a.width+o[1]+o[3],height:a.height+o[0]+o[2]},t.style)});s.toBack(),i.on("mouseenter",function(){s.attr(t.activeStyle)}),i.on("mouseleave",function(){s.attr(t.style)}),this.buttonGroup=i},r.prototype.resetPosition=function(){var t=this.context.view,i=t.getCoordinate(),n=i.convert({x:1,y:1}),a=this.buttonGroup,o=a.getBBox(),s=ie.vs(null,[["t",n.x-o.width-Ew,n.y+o.height+Tw]]);a.setMatrix(s)},r.prototype.show=function(){this.buttonGroup||this.drawButton(),this.resetPosition(),this.buttonGroup.show()},r.prototype.hide=function(){this.buttonGroup&&this.buttonGroup.hide()},r.prototype.destroy=function(){var t=this.buttonGroup;t&&t.remove(),e.prototype.destroy.call(this)},r}(ne),Iw=Lw,Ow=4,Pw=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.starting=!1,t.dragStart=!1,t}return r.prototype.start=function(){this.starting=!0,this.startPoint=this.context.getCurrentPoint()},r.prototype.drag=function(){if(!!this.startPoint){var t=this.context.getCurrentPoint(),i=this.context.view,n=this.context.event;this.dragStart?i.emit("drag",{target:n.target,x:n.x,y:n.y}):_o(t,this.startPoint)>Ow&&(i.emit("dragstart",{target:n.target,x:n.x,y:n.y}),this.dragStart=!0)}},r.prototype.end=function(){if(this.dragStart){var t=this.context.view,i=this.context.event;t.emit("dragend",{target:i.target,x:i.x,y:i.y})}this.starting=!1,this.dragStart=!1},r}(ne),kw=Pw,Dw=5,Bw=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.starting=!1,t.isMoving=!1,t.startPoint=null,t.startMatrix=null,t}return r.prototype.start=function(){this.starting=!0,this.startPoint=this.context.getCurrentPoint(),this.startMatrix=this.context.view.middleGroup.getMatrix()},r.prototype.move=function(){if(!!this.starting){var t=this.startPoint,i=this.context.getCurrentPoint(),n=_o(t,i);if(n>Dw&&!this.isMoving&&(this.isMoving=!0),this.isMoving){var a=this.context.view,o=ie.vs(this.startMatrix,[["t",i.x-t.x,i.y-t.y]]);a.backgroundGroup.setMatrix(o),a.foregroundGroup.setMatrix(o),a.middleGroup.setMatrix(o)}}},r.prototype.end=function(){this.isMoving&&(this.isMoving=!1),this.startMatrix=null,this.starting=!1,this.startPoint=null},r.prototype.reset=function(){this.starting=!1,this.startPoint=null,this.isMoving=!1;var t=this.context.view;t.backgroundGroup.resetMatrix(),t.foregroundGroup.resetMatrix(),t.middleGroup.resetMatrix(),this.isMoving=!1},r}(ne),Rw=Bw,eh="x",rh="y",Nw=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.dims=[eh,rh],t.cfgFields=["dims"],t.cacheScaleDefs={},t}return r.prototype.hasDim=function(t){return this.dims.includes(t)},r.prototype.getScale=function(t){var i=this.context.view;return t==="x"?i.getXScale():i.getYScales()[0]},r.prototype.resetDim=function(t){var i=this.context.view;if(this.hasDim(t)&&this.cacheScaleDefs[t]){var n=this.getScale(t);i.scale(n.field,this.cacheScaleDefs[t]),this.cacheScaleDefs[t]=null}},r.prototype.reset=function(){this.resetDim(eh),this.resetDim(rh);var t=this.context.view;t.render(!0)},r}(ne),ih=Nw,zw=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.startPoint=null,t.starting=!1,t.startCache={},t}return r.prototype.start=function(){var t=this;this.startPoint=this.context.getCurrentPoint(),this.starting=!0;var i=this.dims;(0,h.each)(i,function(n){var a=t.getScale(n),o=a.min,s=a.max,l=a.values;t.startCache[n]={min:o,max:s,values:l}})},r.prototype.end=function(){this.startPoint=null,this.starting=!1,this.startCache={}},r.prototype.translate=function(){var t=this;if(!!this.starting){var i=this.startPoint,n=this.context.view.getCoordinate(),a=this.context.getCurrentPoint(),o=n.invert(i),s=n.invert(a),l=s.x-o.x,u=s.y-o.y,c=this.context.view,f=this.dims;(0,h.each)(f,function(v){t.translateDim(v,{x:l*-1,y:u*-1})}),c.render(!0)}},r.prototype.translateDim=function(t,i){if(this.hasDim(t)){var n=this.getScale(t);n.isLinear&&this.translateLinear(t,n,i)}},r.prototype.translateLinear=function(t,i,n){var a=this.context.view,o=this.startCache[t],s=o.min,l=o.max,u=l-s,c=n[t]*u;this.cacheScaleDefs[t]||(this.cacheScaleDefs[t]={nice:i.nice,min:s,max:l}),a.scale(i.field,{nice:!1,min:s+c,max:l+c})},r.prototype.reset=function(){e.prototype.reset.call(this),this.startPoint=null,this.starting=!1},r}(ih),Vw=zw,Gw=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.zoomRatio=.05,t}return r.prototype.zoomIn=function(){this.zoom(this.zoomRatio)},r.prototype.zoom=function(t){var i=this,n=this.dims;(0,h.each)(n,function(a){i.zoomDim(a,t)}),this.context.view.render(!0)},r.prototype.zoomOut=function(){this.zoom(-1*this.zoomRatio)},r.prototype.zoomDim=function(t,i){if(this.hasDim(t)){var n=this.getScale(t);n.isLinear&&this.zoomLinear(t,n,i)}},r.prototype.zoomLinear=function(t,i,n){var a=this.context.view;this.cacheScaleDefs[t]||(this.cacheScaleDefs[t]={nice:i.nice,min:i.min,max:i.max});var o=this.cacheScaleDefs[t],s=o.max-o.min,l=i.min,u=i.max,c=n*s,f=l-c,v=u+c,d=v-f,p=d/s;v>f&&p<100&&p>.01&&a.scale(i.field,{nice:!1,min:l-c,max:u+c})},r}(ih),Ww=Gw;function Hw(e){var r=e.gEvent.originalEvent;return r.deltaY>0}var Yw=1,Xw=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.scroll=function(t){var i=this.context,n=i.view,a=i.event;if(!!n.getOptions().scrollbar){var o=(t==null?void 0:t.wheelDelta)||Yw,s=n.getController("scrollbar"),l=n.getXScale(),u=n.getOptions().data,c=(0,h.size)((0,h.valuesOfKey)(u,l.field)),f=(0,h.size)(l.values),v=s.getValue(),d=Math.floor((c-f)*v),p=d+(Hw(a)?o:-o),y=o/(c-f)/1e4,m=(0,h.clamp)(p/(c-f)+y,0,1);s.setValue(m)}},r}(ne),Uw=Xw,jw="aixs-description-tooltip",Zw=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.show=function(){var t=this.context,i=zr(t).axis,n=i.cfg.title,a=n.description,o=n.text,s=n.descriptionTooltipStyle,l=t.event,u=l.x,c=l.y;this.tooltip||this.renderTooltip(),this.tooltip.update({title:o||"",customContent:function(){return` +
      +
      + \u5B57\u6BB5\u8BF4\u660E\uFF1A`).concat(a,` +
      +
      + `)},x:u,y:c}),this.tooltip.show()},r.prototype.destroy=function(){e.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},r.prototype.hide=function(){this.tooltip&&this.tooltip.hide()},r.prototype.renderTooltip=function(){var t,i=this.context.view,n=i.canvas,a={start:{x:0,y:0},end:{x:n.get("width"),y:n.get("height")}},o=new Nn({parent:n.get("el").parentNode,region:a,visible:!1,containerId:jw,domStyles:(0,g.__assign)({},(0,h.deepMix)({},(t={},t[sr]={"max-width":"50%",padding:"10px","line-height":"15px","font-size":"12px",color:"rgba(0, 0, 0, .65)"},t[lr]={"word-break":"break-all","margin-bottom":"3px"},t)))});o.init(),o.setCapture(!1),this.tooltip=o},r}(ne),qw=Zw;Gy("dark",xu(R0)),jt("canvas",$u),jt("svg",N0),Je("Polygon",om),Je("Interval",Q0),Je("Schema",lm),Je("Path",ko),Je("Point",im),Je("Line",tm),Je("Area",W0),Je("Edge",Y0),Je("Heatmap",U0),Je("Violin",hm),Qi("base",Qn),Qi("interval",Em),Qi("pie",Im),Qi("polar",oc),Pe("overlap",Xm),Pe("distribute",Pm),Pe("fixed-overlap",Ym),Pe("hide-overlap",ex),Pe("limit-in-shape",Vm),Pe("limit-in-canvas",zm),Pe("limit-in-plot",mx),Pe("pie-outer",Dm),Pe("adjust-color",ix),Pe("interval-adjust-position",sx),Pe("interval-hide-overlap",ux),Pe("point-adjust-position",fx),Pe("pie-spider",Nm),Pe("path-adjust-position",gx),ze("fade-in",xx),ze("fade-out",_x),ze("grow-in-x",bx),ze("grow-in-xy",Cx),ze("grow-in-y",Sx),ze("scale-in-x",Fx),ze("scale-in-y",Ex),ze("wave-in",Lx),ze("zoom-in",Ix),ze("zoom-out",Ox),ze("position-update",Mx),ze("sector-path-update",Tx),ze("path-in",Ax),hi("rect",Wx),hi("mirror",Vx),hi("list",Bx),hi("matrix",Nx),hi("circle",kx),hi("tree",Yx),Vr("axis",qx),Vr("legend",t_),Vr("tooltip",Eu),Vr("annotation",jx),Vr("slider",r_),Vr("scrollbar",o_),xt("tooltip",Pc),xt("sibling-tooltip",v_),xt("ellipsis-text",g_),xt("element-active",x_),xt("element-single-active",F_),xt("element-range-active",C_),xt("element-highlight",ts),xt("element-highlight-by-x",O_),xt("element-highlight-by-color",L_),xt("element-single-highlight",D_),xt("element-range-highlight",Bc),xt("element-sibling-highlight",Bc,{effectSiblings:!0,effectByRecord:!0}),xt("element-selected",z_),xt("element-single-selected",G_),xt("element-range-selected",R_),xt("element-link-by-color",w_),xt("active-region",c_),xt("list-active",Y_),xt("list-selected",Z_),xt("list-highlight",es),xt("list-unchecked",K_),xt("list-checked",Q_),xt("list-focus",tw),xt("list-radio",rw),xt("legend-item-highlight",es,{componentNames:["legend"]}),xt("axis-label-highlight",es,{componentNames:["axis"]}),xt("axis-description",qw),xt("rect-mask",Hc),xt("x-rect-mask",Uc,{dim:"x"}),xt("y-rect-mask",Uc,{dim:"y"}),xt("circle-mask",aw),xt("path-mask",Zc),xt("smooth-path-mask",cw),xt("rect-multi-mask",Kc),xt("x-rect-multi-mask",$c,{dim:"x"}),xt("y-rect-multi-mask",$c,{dim:"y"}),xt("circle-multi-mask",gw),xt("path-multi-mask",Qc),xt("smooth-path-multi-mask",mw),xt("cursor",_w),xt("data-filter",bw),xt("brush",ha),xt("brush-x",ha,{dims:["x"]}),xt("brush-y",ha,{dims:["y"]}),xt("sibling-filter",ss),xt("sibling-x-filter",ss,{dims:"x"}),xt("sibling-y-filter",ss,{dims:"y"}),xt("element-filter",Mw),xt("element-sibling-filter",th),xt("element-sibling-filter-record",th,{byRecord:!0}),xt("view-drag",kw),xt("view-move",Rw),xt("scale-translate",Vw),xt("scale-zoom",Ww),xt("reset-button",Iw,{name:"reset-button",text:"reset"}),xt("mousewheel-scroll",Uw);function hr(e){return e.isInPlot()}Ot("tooltip",{start:[{trigger:"plot:mousemove",action:"tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"plot:touchmove",action:"tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:"plot:mouseleave",action:"tooltip:hide"},{trigger:"plot:leave",action:"tooltip:hide"},{trigger:"plot:touchend",action:"tooltip:hide"}]}),Ot("ellipsis-text",{start:[{trigger:"legend-item-name:mousemove",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"legend-item-name:touchstart",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"axis-label:mousemove",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"axis-label:touchstart",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:"legend-item-name:mouseleave",action:"ellipsis-text:hide"},{trigger:"legend-item-name:touchend",action:"ellipsis-text:hide"},{trigger:"axis-label:mouseleave",action:"ellipsis-text:hide"},{trigger:"axis-label:mouseout",action:"ellipsis-text:hide"},{trigger:"axis-label:touchend",action:"ellipsis-text:hide"}]}),Ot("element-active",{start:[{trigger:"element:mouseenter",action:"element-active:active"}],end:[{trigger:"element:mouseleave",action:"element-active:reset"}]}),Ot("element-selected",{start:[{trigger:"element:click",action:"element-selected:toggle"}]}),Ot("element-highlight",{start:[{trigger:"element:mouseenter",action:"element-highlight:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight:reset"}]}),Ot("element-highlight-by-x",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-x:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-x:reset"}]}),Ot("element-highlight-by-color",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-color:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-color:reset"}]}),Ot("legend-active",{start:[{trigger:"legend-item:mouseenter",action:["list-active:active","element-active:active"]}],end:[{trigger:"legend-item:mouseleave",action:["list-active:reset","element-active:reset"]}]}),Ot("legend-highlight",{start:[{trigger:"legend-item:mouseenter",action:["legend-item-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"legend-item:mouseleave",action:["legend-item-highlight:reset","element-highlight:reset"]}]}),Ot("axis-label-highlight",{start:[{trigger:"axis-label:mouseenter",action:["axis-label-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"axis-label:mouseleave",action:["axis-label-highlight:reset","element-highlight:reset"]}]}),Ot("element-list-highlight",{start:[{trigger:"element:mouseenter",action:["list-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"element:mouseleave",action:["list-highlight:reset","element-highlight:reset"]}]}),Ot("element-range-highlight",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"mask:mouseenter",action:"cursor:move"},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"plot:mousedown",isEnable:function(e){return!e.isInShape("mask")},action:["rect-mask:start","rect-mask:show"]},{trigger:"mask:dragstart",action:["rect-mask:moveStart"]}],processing:[{trigger:"plot:mousemove",action:["rect-mask:resize"]},{trigger:"mask:drag",action:["rect-mask:move"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:["rect-mask:end"]},{trigger:"mask:dragend",action:["rect-mask:moveEnd"]},{trigger:"document:mouseup",isEnable:function(e){return!e.isInPlot()},action:["element-range-highlight:clear","rect-mask:end","rect-mask:hide"]}],rollback:[{trigger:"dblclick",action:["element-range-highlight:clear","rect-mask:hide"]}]}),Ot("brush",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:hr,action:["brush:start","rect-mask:start","rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:hr,action:["rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:hr,action:["brush:filter","brush:end","rect-mask:end","rect-mask:hide","reset-button:show"]}],rollback:[{trigger:"reset-button:click",action:["brush:reset","reset-button:hide","cursor:crosshair"]}]}),Ot("brush-visible",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"plot:mousedown",action:["rect-mask:start","rect-mask:show"]}],processing:[{trigger:"plot:mousemove",action:["rect-mask:resize"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:["rect-mask:end","rect-mask:hide","element-filter:filter","element-range-highlight:clear"]}],rollback:[{trigger:"dblclick",action:["element-filter:clear"]}]}),Ot("brush-x",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:hr,action:["brush-x:start","x-rect-mask:start","x-rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:hr,action:["x-rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:hr,action:["brush-x:filter","brush-x:end","x-rect-mask:end","x-rect-mask:hide"]}],rollback:[{trigger:"dblclick",action:["brush-x:reset"]}]}),Ot("element-path-highlight",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:hr,action:"path-mask:start"},{trigger:"mousedown",isEnable:hr,action:"path-mask:show"}],processing:[{trigger:"mousemove",action:"path-mask:addPoint"}],end:[{trigger:"mouseup",action:"path-mask:end"}],rollback:[{trigger:"dblclick",action:"path-mask:hide"}]}),Ot("brush-x-multi",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"mask:mouseenter",action:"cursor:move"},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"mousedown",isEnable:hr,action:["x-rect-multi-mask:start","x-rect-multi-mask:show"]},{trigger:"mask:dragstart",action:["x-rect-multi-mask:moveStart"]}],processing:[{trigger:"mousemove",isEnable:function(e){return!Un(e)},action:["x-rect-multi-mask:resize"]},{trigger:"multi-mask:change",action:"element-range-highlight:highlight"},{trigger:"mask:drag",action:["x-rect-multi-mask:move"]}],end:[{trigger:"mouseup",action:["x-rect-multi-mask:end"]},{trigger:"mask:dragend",action:["x-rect-multi-mask:moveEnd"]}],rollback:[{trigger:"dblclick",action:["x-rect-multi-mask:clear","cursor:crosshair"]},{trigger:"multi-mask:clearAll",action:["element-range-highlight:clear"]},{trigger:"multi-mask:clearSingle",action:["element-range-highlight:highlight"]}]}),Ot("element-single-selected",{start:[{trigger:"element:click",action:"element-single-selected:toggle"}]}),Ot("legend-filter",{showEnable:[{trigger:"legend-item:mouseenter",action:["cursor:pointer","list-radio:show"]},{trigger:"legend-item:mouseleave",action:["cursor:default","list-radio:hide"]}],start:[{trigger:"legend-item:click",isEnable:function(e){return!e.isInShape("legend-item-radio")},action:["legend-item-highlight:reset","element-highlight:reset","list-unchecked:toggle","data-filter:filter","list-radio:show"]},{trigger:"legend-item-radio:mouseenter",action:["list-radio:showTip"]},{trigger:"legend-item-radio:mouseleave",action:["list-radio:hideTip"]},{trigger:"legend-item-radio:click",action:["list-focus:toggle","data-filter:filter","list-radio:show"]}]}),Ot("continuous-filter",{start:[{trigger:"legend:valuechanged",action:"data-filter:filter"}]}),Ot("continuous-visible-filter",{start:[{trigger:"legend:valuechanged",action:"element-filter:filter"}]}),Ot("legend-visible-filter",{showEnable:[{trigger:"legend-item:mouseenter",action:"cursor:pointer"},{trigger:"legend-item:mouseleave",action:"cursor:default"}],start:[{trigger:"legend-item:click",action:["legend-item-highlight:reset","element-highlight:reset","list-unchecked:toggle","element-filter:filter"]}]}),Ot("active-region",{start:[{trigger:"plot:mousemove",action:"active-region:show"}],end:[{trigger:"plot:mouseleave",action:"active-region:hide"}]}),Ot("axis-description",{start:[{trigger:"axis-description:mousemove",action:"axis-description:show"}],end:[{trigger:"axis-description:mouseleave",action:"axis-description:hide"}]});function nh(e){return e.gEvent.preventDefault(),e.gEvent.originalEvent.deltaY>0}Ot("view-zoom",{start:[{trigger:"plot:mousewheel",isEnable:function(e){return nh(e.event)},action:"scale-zoom:zoomOut",throttle:{wait:100,leading:!0,trailing:!1}},{trigger:"plot:mousewheel",isEnable:function(e){return!nh(e.event)},action:"scale-zoom:zoomIn",throttle:{wait:100,leading:!0,trailing:!1}}]}),Ot("sibling-tooltip",{start:[{trigger:"plot:mousemove",action:"sibling-tooltip:show"}],end:[{trigger:"plot:mouseleave",action:"sibling-tooltip:hide"}]}),Ot("plot-mousewheel-scroll",{start:[{trigger:"plot:mousewheel",action:"mousewheel-scroll:scroll"}]});var Be=["type","alias","tickCount","tickInterval","min","max","nice","minLimit","maxLimit","range","tickMethod","base","exponent","mask","sync"],qe;(function(e){e.ERROR="error",e.WARN="warn",e.INFO="log"})(qe||(qe={}));var ah="AntV/G2Plot";function oh(e){for(var r=[],t=1;t=0}),n=t.every(function(a){return(0,h.get)(a,[r])<=0});return i?{min:0}:n?{max:0}:{}}function sh(e,r,t,i,n){if(n===void 0&&(n=[]),!Array.isArray(e))return{nodes:[],links:[]};var a=[],o={},s=-1;return e.forEach(function(l){var u=l[r],c=l[t],f=l[i],v=$t(l,n);o[u]||(o[u]=(0,g.__assign)({id:++s,name:u},v)),o[c]||(o[c]=(0,g.__assign)({id:++s,name:c},v)),a.push((0,g.__assign)({source:o[u].id,target:o[c].id,value:f},v))}),{nodes:Object.values(o).sort(function(l,u){return l.id-u.id}),links:a}}function xi(e,r){var t=(0,h.filter)(e,function(i){var n=i[r];return n===null||typeof n=="number"&&!isNaN(n)});return fr(qe.WARN,t.length===e.length,"illegal data existed in chart data."),t}var Kw=5,$w={}.toString,lh=function(e,r){return $w.call(e)==="[object "+r+"]"},Qw=function(e){return lh(e,"Array")},Jw=function(e){return typeof e=="object"&&e!==null},uh=function(e){if(!Jw(e)||!lh(e,"Object"))return!1;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(e)===r},ch=function(e,r,t,i){t=t||0,i=i||Kw;for(var n in r)if(Object.prototype.hasOwnProperty.call(r,n)){var a=r[n];a?uh(a)?(uh(e[n])||(e[n]={}),t=i&&e<=n}function Tr(e){if((0,h.isNumber)(e))return[e,e,e,e];if((0,h.isArray)(e)){var r=e.length;if(r===1)return[e[0],e[0],e[0],e[0]];if(r===2)return[e[0],e[1],e[0],e[1]];if(r===3)return[e[0],e[1],e[2],e[1]];if(r===4)return e}return[0,0,0,0]}function va(e,r,t){r===void 0&&(r="bottom"),t===void 0&&(t=25);var i=Tr(e),n=[r.startsWith("top")?t:0,r.startsWith("right")?t:0,r.startsWith("bottom")?t:0,r.startsWith("left")?t:0];return[i[0]+n[0],i[1]+n[1],i[2]+n[2],i[3]+n[3]]}function hs(e){var r=e.map(function(i){return Tr(i)}),t=[0,0,0,0];return r.length>0&&(t=t.map(function(i,n){return r.forEach(function(a,o){i+=r[o][n]}),i})),t}function ib(e,r){var t=[];if(e.length){t.push(["M",e[0].x,e[0].y]);for(var i=1,n=e.length;i"},key:"".concat(l===0?"top":"bottom","-statistic")},$t(s,["offsetX","offsetY","rotate","style","formatter"])))}})},sb=function(e,r,t){var i=r.statistic,n=i.title,a=i.content;[n,a].forEach(function(o){if(!!o){var s=(0,h.isFunction)(o.style)?o.style(t):o.style;e.annotation().html((0,g.__assign)({position:["50%","100%"],html:function(l,u){var c=u.getCoordinate(),f=u.views[0].getCoordinate(),v=f.getCenter(),d=f.getRadius(),p=Math.max(Math.sin(f.startAngle),Math.sin(f.endAngle))*d,y=v.y+p-c.y.start-parseFloat((0,h.get)(s,"fontSize",0)),m=c.getRadius()*c.innerRadius*2;vh(l,(0,g.__assign)({width:"".concat(m,"px"),transform:"translate(-50%, ".concat(y,"px)")},fh(s)));var x=u.getData();if(o.customHtml)return o.customHtml(l,u,t,x);var _=o.content;return o.formatter&&(_=o.formatter(t,x)),_?(0,h.isString)(_)?_:"".concat(_):"
      "}},$t(o,["offsetX","offsetY","rotate","style","formatter"])))}})};function dh(e,r){return r?(0,h.reduce)(r,function(t,i,n){return t.replace(new RegExp("{\\s*".concat(n,"\\s*}"),"g"),i)},e):e}function Nt(e,r){return e.views.find(function(t){return t.id===r})}function sn(e){var r=e.parent;return r?r.views:[]}function gh(e){return sn(e).filter(function(r){return r!==e})}function ln(e,r,t){t===void 0&&(t=e.geometries),typeof r=="boolean"?e.animate(r):e.animate(!0),(0,h.each)(t,function(i){var n;(0,h.isFunction)(r)?n=r(i.type||i.shapeType,i)||!0:n=r,i.animate(n)})}function ga(){return typeof window=="object"?window==null?void 0:window.devicePixelRatio:2}function fs(e,r){r===void 0&&(r=e);var t=document.createElement("canvas"),i=ga();t.width=e*i,t.height=r*i,t.style.width="".concat(e,"px"),t.style.height="".concat(r,"px");var n=t.getContext("2d");return n.scale(i,i),t}function vs(e,r,t,i){i===void 0&&(i=t);var n=r.backgroundColor,a=r.opacity;e.globalAlpha=a,e.fillStyle=n,e.beginPath(),e.fillRect(0,0,t,i),e.closePath()}function ph(e,r,t){var i=e+r;return t?i*2:i}function yh(e,r){var t=r?[[e*(1/4),e*(1/4)],[e*(3/4),e*(3/4)]]:[[e*(1/2),e*(1/2)]];return t}function ds(e,r){var t=r*Math.PI/180,i={a:Math.cos(t)*(1/e),b:Math.sin(t)*(1/e),c:-Math.sin(t)*(1/e),d:Math.cos(t)*(1/e),e:0,f:0};return i}var lb={size:6,padding:2,backgroundColor:"transparent",opacity:1,rotation:0,fill:"#fff",fillOpacity:.5,stroke:"transparent",lineWidth:0,isStagger:!0};function ub(e,r,t,i){var n=r.size,a=r.fill,o=r.lineWidth,s=r.stroke,l=r.fillOpacity;e.beginPath(),e.globalAlpha=l,e.fillStyle=a,e.strokeStyle=s,e.lineWidth=o,e.arc(t,i,n/2,0,2*Math.PI,!1),e.fill(),o&&e.stroke(),e.closePath()}function cb(e){var r=O({},lb,e),t=r.size,i=r.padding,n=r.isStagger,a=r.rotation,o=ph(t,i,n),s=yh(o,n),l=fs(o,o),u=l.getContext("2d");vs(u,r,o);for(var c=0,f=s;cw){var S=b/y.length,C=Math.max(1,Math.ceil(w/S)-1),A="".concat(y.slice(0,C),"...");_.attr("text",A)}}}}function Vb(e,r,t){Nb(e,r,t),zb(e,r,t)}function Gb(e,r,t){return r===void 0&&(r=!0),t===void 0&&(t=!1),function(i){var n=i.options,a=i.chart,o=n.conversionTag,s=n.theme;return o&&!t&&(a.theme(O({},(0,h.isObject)(s)?s:$i(s),{columnWidthRatio:1/3})),a.annotation().shape({render:function(l,u){var c=l.addGroup({id:"".concat(a.id,"-conversion-tag-group"),name:"conversion-tag-group"}),f=(0,h.find)(a.geometries,function(p){return p.type==="interval"}),v={view:u,geometry:f,group:c,field:e,horizontal:r,options:Rb(o,r)},d=f.elements;(0,h.each)(d,function(p,y){y>0&&Vb(v,d[y-1],p)})}})),i}}function Wb(e){var r=e.options,t=r.legend,i=r.seriesField,n=r.isStack;return i?t!==!1&&(t=(0,g.__assign)({position:n?"right-top":"top-left"},t)):t=!1,e.options.legend=t,e}function Hb(e){var r=e.chart,t=e.options,i=t.data,n=t.columnStyle,a=t.color,o=t.columnWidthRatio,s=t.isPercent,l=t.isGroup,u=t.isStack,c=t.xField,f=t.yField,v=t.seriesField,d=t.groupField,p=t.tooltip,y=t.shape,m=s&&l&&u?Sb(i,f,[c,d],f):cn(i,f,c,f,s),x=[];u&&v&&!l?m.forEach(function(b){var S=x.find(function(C){return C[c]===b[c]&&C[v]===b[v]});S?S[f]+=b[f]||0:x.push((0,g.__assign)({},b))}):x=m,r.data(x);var _=s?(0,g.__assign)({formatter:function(b){var S;return{name:l&&u?"".concat(b[v]," - ").concat(b[d]):(S=b[v])!==null&&S!==void 0?S:b[c],value:(Number(b[f])*100).toFixed(2)+"%"}}},p):p,w=O({},e,{options:{data:x,widthRatio:o,tooltip:_,interval:{shape:y,style:n,color:a}}});return Fe(w),w}function ms(e){var r,t,i=e.options,n=i.xAxis,a=i.yAxis,o=i.xField,s=i.yField,l=i.data,u=i.isPercent,c=u?{max:1,min:0,minLimit:0,maxLimit:1}:{};return Et(he((r={},r[o]=n,r[s]=a,r),(t={},t[o]={type:"cat"},t[s]=(0,g.__assign)((0,g.__assign)({},ls(l,s)),c),t)))(e)}function Yb(e){var r=e.chart,t=e.options,i=t.xAxis,n=t.yAxis,a=t.xField,o=t.yField;return i===!1?r.axis(a,!1):r.axis(a,i),n===!1?r.axis(o,!1):r.axis(o,n),e}function Xb(e){var r=e.chart,t=e.options,i=t.legend,n=t.seriesField;return i&&n?r.legend(n,i):i===!1&&r.legend(!1),e}function Ub(e){var r=e.chart,t=e.options,i=t.label,n=t.yField,a=t.isRange,o=Me(r,"interval");if(!i)o.label(!1);else{var s=i.callback,l=(0,g.__rest)(i,["callback"]);o.label({fields:[n],callback:s,cfg:(0,g.__assign)({layout:(l==null?void 0:l.position)?void 0:[{type:"interval-adjust-position"},{type:"interval-hide-overlap"},{type:"adjust-color"},{type:"limit-in-plot",cfg:{action:"hide"}}]},be(a?(0,g.__assign)({content:function(u){var c;return(c=u[n])===null||c===void 0?void 0:c.join("-")}},l):l))})}return e}function jb(e){var r=e.chart,t=e.options,i=t.tooltip,n=t.isGroup,a=t.isStack,o=t.groupField,s=t.data,l=t.xField,u=t.yField,c=t.seriesField;if(i===!1)r.tooltip(!1);else{var f=i;if(n&&a){var v=f.customItems,d=(f==null?void 0:f.formatter)||function(p){return{name:"".concat(p[c]," - ").concat(p[o]),value:p[u]}};f=(0,g.__assign)((0,g.__assign)({},f),{customItems:function(p){var y=[];return(0,h.each)(p,function(m){var x=(0,h.filter)(s,function(_){return(0,h.isMatch)(_,$t(m.data,[l,c]))});x.forEach(function(_){y.push((0,g.__assign)((0,g.__assign)((0,g.__assign)({},m),{value:_[u],data:_,mappingData:{_origin:_}}),d(_)))})}),v?v(y):y}})}r.tooltip(f)}return e}function Sa(e,r){r===void 0&&(r=!1);var t=e.options,i=t.seriesField;return Et(Wb,Xt,Ve("columnStyle"),Lr,mh("rect"),Hb,ms,Yb,Xb,jb,un,gs,Ub,Ih,oe,Qt,le(),Gb(t.yField,!r,!!i),Bb(!t.isStack),jr)(e)}function Zb(e){var r=e.options,t=r.xField,i=r.yField,n=r.xAxis,a=r.yAxis,o={left:"bottom",right:"top",top:"left",bottom:"right"},s=a!==!1?(0,g.__assign)({position:o[(a==null?void 0:a.position)||"left"]},a):!1,l=n!==!1?(0,g.__assign)({position:o[(n==null?void 0:n.position)||"bottom"]},n):!1;return(0,g.__assign)((0,g.__assign)({},e),{options:(0,g.__assign)((0,g.__assign)({},r),{xField:i,yField:t,xAxis:s,yAxis:l})})}function qb(e){var r=e.options,t=r.label;return t&&!t.position&&(t.position="left",t.layout||(t.layout=[{type:"interval-adjust-position"},{type:"interval-hide-overlap"},{type:"adjust-color"},{type:"limit-in-plot",cfg:{action:"hide"}}])),O({},e,{options:{label:t}})}function Kb(e){var r=e.options,t=r.seriesField,i=r.isStack,n=r.legend;return t?n!==!1&&(n=(0,g.__assign)({position:i?"top-left":"right-top"},n||{})):n=!1,O({},e,{options:{legend:n}})}function $b(e){var r=e.options,t=[{type:"transpose"},{type:"reflectY"}].concat(r.coordinate||[]);return O({},e,{options:{coordinate:t}})}function Qb(e){var r=e.chart,t=e.options,i=t.barStyle,n=t.barWidthRatio,a=t.minBarWidth,o=t.maxBarWidth,s=t.barBackground;return Sa({chart:r,options:(0,g.__assign)((0,g.__assign)({},t),{columnStyle:i,columnWidthRatio:n,minColumnWidth:a,maxColumnWidth:o,columnBackground:s})},!0)}function Ph(e){return Et(Zb,qb,Kb,me,$b,Qb)(e)}var Jb=O({},kt.getDefaultOptions(),{barWidthRatio:.6,marginRatio:1/32,tooltip:{shared:!0,showMarkers:!1,offset:20},legend:{radio:{}},interactions:[{type:"active-region"}]}),tS=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="bar",t}return r.getDefaultOptions=function(){return Jb},r.prototype.changeData=function(t){var i,n;this.updateOption({data:t});var a=this,o=a.chart,s=a.options,l=s.isPercent,u=s.xField,c=s.yField,f=s.xAxis,v=s.yAxis;i=[c,u],u=i[0],c=i[1],n=[v,f],f=n[0],v=n[1];var d=(0,g.__assign)((0,g.__assign)({},s),{xField:u,yField:c,yAxis:v,xAxis:f});ms({chart:o,options:d}),o.changeData(cn(t,u,c,u,l))},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.getSchemaAdaptor=function(){return Ph},r}(kt),eS=O({},kt.getDefaultOptions(),{columnWidthRatio:.6,marginRatio:1/32,tooltip:{shared:!0,showMarkers:!1,offset:20},legend:{radio:{}},interactions:[{type:"active-region"}]}),kh=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="column",t}return r.getDefaultOptions=function(){return eS},r.prototype.changeData=function(t){this.updateOption({data:t});var i=this.options,n=i.yField,a=i.xField,o=i.isPercent,s=this,l=s.chart,u=s.options;ms({chart:l,options:u}),this.chart.changeData(cn(t,n,a,n,o))},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.getSchemaAdaptor=function(){return Sa},r}(kt),xs,Ir="$$percentage$$",Or="$$mappingValue$$",dr="$$conversion$$",_s="$$totalPercentage$$",hn="$$x$$",fn="$$y$$",rS={appendPadding:[0,80],minSize:0,maxSize:1,meta:(xs={},xs[Or]={min:0,max:1,nice:!1},xs),label:{style:{fill:"#fff",fontSize:12}},tooltip:{showTitle:!1,showMarkers:!1,shared:!1},conversionTag:{offsetX:10,offsetY:0,style:{fontSize:12,fill:"rgba(0,0,0,0.45)"}}},Dh="CONVERSION_TAG_NAME";function ws(e,r,t){var i=[],n=t.yField,a=t.maxSize,o=t.minSize,s=(0,h.get)((0,h.maxBy)(r,n),[n]),l=(0,h.isNumber)(a)?a:1,u=(0,h.isNumber)(o)?o:0;return i=(0,h.map)(e,function(c,f){var v=(c[n]||0)/s;return c[Ir]=v,c[Or]=(l-u)*v+u,c[dr]=[(0,h.get)(e,[f-1,n]),c[n]],c}),i}function bs(e){return function(r){var t=r.chart,i=r.options,n=i.conversionTag,a=i.filteredData,o=a||t.getOptions().data;if(n){var s=n.formatter;o.forEach(function(l,u){if(!(u<=0||Number.isNaN(l[Or]))){var c=e(l,u,o,{top:!0,name:Dh,text:{content:(0,h.isFunction)(s)?s(l,o):s,offsetX:n.offsetX,offsetY:n.offsetY,position:"end",autoRotate:!1,style:(0,g.__assign)({textAlign:"start",textBaseline:"middle"},n.style)}});t.annotation().line(c)}})}return r}}function iS(e){var r=e.chart,t=e.options,i=t.data,n=i===void 0?[]:i,a=t.yField,o=t.maxSize,s=t.minSize,l=ws(n,n,{yField:a,maxSize:o,minSize:s});return r.data(l),e}function nS(e){var r=e.chart,t=e.options,i=t.xField,n=t.yField,a=t.color,o=t.tooltip,s=t.label,l=t.shape,u=l===void 0?"funnel":l,c=t.funnelStyle,f=t.state,v=Ye(o,[i,n]),d=v.fields,p=v.formatter;Re({chart:r,options:{type:"interval",xField:i,yField:Or,colorField:i,tooltipFields:(0,h.isArray)(d)&&d.concat([Ir,dr]),mapping:{shape:u,tooltip:p,color:a,style:c},label:s,state:f}});var y=Me(e.chart,"interval");return y.adjust("symmetric"),e}function aS(e){var r=e.chart,t=e.options,i=t.isTransposed;return r.coordinate({type:"rect",actions:i?[]:[["transpose"],["scale",1,-1]]}),e}function Bh(e){var r=e.options,t=e.chart,i=r.maxSize,n=(0,h.get)(t,["geometries","0","dataArray"],[]),a=(0,h.get)(t,["options","data","length"]),o=(0,h.map)(n,function(l){return(0,h.get)(l,["0","nextPoints","0","x"])*a-.5}),s=function(l,u,c,f){var v=i-(i-l[Or])/2;return(0,g.__assign)((0,g.__assign)({},f),{start:[o[u-1]||u-.5,v],end:[o[u-1]||u-.5,v+.05]})};return bs(s)(e),e}function Rh(e){return Et(iS,nS,aS,Bh)(e)}function oS(e){var r,t=e.chart,i=e.options,n=i.data,a=n===void 0?[]:n,o=i.yField;return t.data(a),t.scale((r={},r[o]={sync:!0},r)),e}function sS(e){var r=e.chart,t=e.options,i=t.data,n=t.xField,a=t.yField,o=t.color,s=t.compareField,l=t.isTransposed,u=t.tooltip,c=t.maxSize,f=t.minSize,v=t.label,d=t.funnelStyle,p=t.state,y=t.showFacetTitle;return r.facet("mirror",{fields:[s],transpose:!l,padding:l?0:[32,0,0,0],showTitle:y,eachView:function(m,x){var _=l?x.rowIndex:x.columnIndex;l||m.coordinate({type:"rect",actions:[["transpose"],["scale",_===0?-1:1,-1]]});var w=ws(x.data,i,{yField:a,maxSize:c,minSize:f});m.data(w);var b=Ye(u,[n,a,s]),S=b.fields,C=b.formatter,A=l?{offset:_===0?10:-23,position:_===0?"bottom":"top"}:{offset:10,position:"left",style:{textAlign:_===0?"end":"start"}};Re({chart:m,options:{type:"interval",xField:n,yField:Or,colorField:n,tooltipFields:(0,h.isArray)(S)&&S.concat([Ir,dr]),mapping:{shape:"funnel",tooltip:C,color:o,style:d},label:v===!1?!1:O({},A,v),state:p}})}}),e}function Nh(e){var r=e.chart,t=e.index,i=e.options,n=i.conversionTag,a=i.isTransposed;((0,h.isNumber)(t)?[r]:r.views).forEach(function(o,s){var l=(0,h.get)(o,["geometries","0","dataArray"],[]),u=(0,h.get)(o,["options","data","length"]),c=(0,h.map)(l,function(v){return(0,h.get)(v,["0","nextPoints","0","x"])*u-.5}),f=function(v,d,p,y){var m=(t||s)===0?-1:1;return O({},y,{start:[c[d-1]||d-.5,v[Or]],end:[c[d-1]||d-.5,v[Or]+.05],text:a?{style:{textAlign:"start"}}:{offsetX:n!==!1?m*n.offsetX:0,style:{textAlign:(t||s)===0?"end":"start"}}})};bs(f)(O({},{chart:o,options:i}))})}function lS(e){var r=e.chart;return r.once("beforepaint",function(){return Nh(e)}),e}function uS(e){return Et(oS,sS,lS)(e)}function cS(e){var r=e.chart,t=e.options,i=t.data,n=i===void 0?[]:i,a=t.yField,o=(0,h.reduce)(n,function(u,c){return u+(c[a]||0)},0),s=(0,h.maxBy)(n,a)[a],l=(0,h.map)(n,function(u,c){var f=[],v=[];if(u[_s]=(u[a]||0)/o,c){var d=n[c-1][hn],p=n[c-1][fn];f[0]=d[3],v[0]=p[3],f[1]=d[2],v[1]=p[2]}else f[0]=-.5,v[0]=1,f[1]=.5,v[1]=1;return v[2]=v[1]-u[_s],f[2]=(v[2]+1)/4,v[3]=v[2],f[3]=-f[2],u[hn]=f,u[fn]=v,u[Ir]=(u[a]||0)/s,u[dr]=[(0,h.get)(n,[c-1,a]),u[a]],u});return r.data(l),e}function hS(e){var r=e.chart,t=e.options,i=t.xField,n=t.yField,a=t.color,o=t.tooltip,s=t.label,l=t.funnelStyle,u=t.state,c=Ye(o,[i,n]),f=c.fields,v=c.formatter;return Re({chart:r,options:{type:"polygon",xField:hn,yField:fn,colorField:i,tooltipFields:(0,h.isArray)(f)&&f.concat([Ir,dr]),label:s,state:u,mapping:{tooltip:v,color:a,style:l}}}),e}function fS(e){var r=e.chart,t=e.options,i=t.isTransposed;return r.coordinate({type:"rect",actions:i?[["transpose"],["reflect","x"]]:[]}),e}function vS(e){var r=function(t,i,n,a){return(0,g.__assign)((0,g.__assign)({},a),{start:[t[hn][1],t[fn][1]],end:[t[hn][1]+.05,t[fn][1]]})};return bs(r)(e),e}function dS(e){return Et(cS,hS,fS,vS)(e)}function gS(e){var r,t=e.chart,i=e.options,n=i.data,a=n===void 0?[]:n,o=i.yField;return t.data(a),t.scale((r={},r[o]={sync:!0},r)),e}function pS(e){var r=e.chart,t=e.options,i=t.seriesField,n=t.isTransposed,a=t.showFacetTitle;return r.facet("rect",{fields:[i],padding:[n?0:32,10,0,10],showTitle:a,eachView:function(o,s){Rh(O({},e,{chart:o,options:{data:s.data}}))}}),e}function yS(e){return Et(gS,pS)(e)}var mS=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.rendering=!1,t}return r.prototype.change=function(t){var i=this;if(!this.rendering){var n=t.seriesField,a=t.compareField,o=a?Nh:Bh,s=this.context.view,l=n||a?s.views:[s];(0,h.map)(l,function(u,c){var f=u.getController("annotation"),v=(0,h.filter)((0,h.get)(f,["option"],[]),function(p){var y=p.name;return y!==Dh});f.clear(!0),(0,h.each)(v,function(p){typeof p=="object"&&u.annotation()[p.type](p)});var d=(0,h.get)(u,["filteredData"],u.getOptions().data);o({chart:u,index:c,options:(0,g.__assign)((0,g.__assign)({},t),{filteredData:ws(d,d,t)})}),u.filterData(d),i.rendering=!0,u.render(!0)})}this.rendering=!1},r}(ne),zh="funnel-conversion-tag",Ss="funnel-afterrender",Vh={trigger:"afterrender",action:"".concat(zh,":change")};xt(zh,mS),Ot(Ss,{start:[Vh]});function xS(e){var r=e.options,t=r.compareField,i=r.xField,n=r.yField,a=r.locale,o=r.funnelStyle,s=r.data,l=ya(a),u={label:t?{fields:[i,n,t,Ir,dr],formatter:function(f){return"".concat(f[n])}}:{fields:[i,n,Ir,dr],offset:0,position:"middle",formatter:function(f){return"".concat(f[i]," ").concat(f[n])}},tooltip:{title:i,formatter:function(f){return{name:f[i],value:f[n]}}},conversionTag:{formatter:function(f){return"".concat(l.get(["conversionTag","label"]),": ").concat(Oh.apply(void 0,f[dr]))}}},c;return(t||o)&&(c=function(f){return O({},t&&{lineWidth:1,stroke:"#fff"},(0,h.isFunction)(o)?o(f):o)}),O({options:u},e,{options:{funnelStyle:c,data:(0,h.clone)(s)}})}function _S(e){var r=e.options,t=r.compareField,i=r.dynamicHeight,n=r.seriesField;return n?yS(e):t?uS(e):i?dS(e):Rh(e)}function wS(e){var r,t=e.options,i=t.xAxis,n=t.yAxis,a=t.xField,o=t.yField;return Et(he((r={},r[a]=i,r[o]=n,r)))(e)}function bS(e){var r=e.chart;return r.axis(!1),e}function SS(e){var r=e.chart,t=e.options,i=t.legend;return i===!1?r.legend(!1):r.legend(i),e}function CS(e){var r=e.chart,t=e.options,i=t.interactions,n=t.dynamicHeight;return(0,h.each)(i,function(a){a.enable===!1?r.removeInteraction(a.type):r.interaction(a.type,a.cfg||{})}),n?r.removeInteraction(Ss):r.interaction(Ss,{start:[(0,g.__assign)((0,g.__assign)({},Vh),{arg:t})]}),e}function Gh(e){return Et(xS,_S,wS,bS,me,CS,SS,Qt,Xt,le())(e)}var AS=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="funnel",t}return r.getDefaultOptions=function(){return rS},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.getSchemaAdaptor=function(){return Gh},r.prototype.setState=function(t,i,n){n===void 0&&(n=!0);var a=on(this.chart);(0,h.each)(a,function(o){i(o.getData())&&o.setState(t,n)})},r.prototype.getStates=function(){var t=on(this.chart),i=[];return(0,h.each)(t,function(n){var a=n.getData(),o=n.getStates();(0,h.each)(o,function(s){i.push({data:a,state:s,geometry:n.geometry,element:n})})}),i},r.CONVERSATION_FIELD=dr,r.PERCENT_FIELD=Ir,r.TOTAL_PERCENT_FIELD=_s,r}(kt),Ca,Cs="range",Wh="type",gr="percent",MS="#f0f0f0",Hh="indicator-view",Yh="range-view",FS={percent:0,range:{ticks:[]},innerRadius:.9,radius:.95,startAngle:-7/6*Math.PI,endAngle:1/6*Math.PI,syncViewPadding:!0,axis:{line:null,label:{offset:-24,style:{textAlign:"center",textBaseline:"middle"}},subTickLine:{length:-8},tickLine:{length:-12},grid:null},indicator:{pointer:{style:{lineWidth:5,lineCap:"round"}},pin:{style:{r:9.75,lineWidth:4.5,fill:"#fff"}}},statistic:{title:!1},meta:(Ca={},Ca[Cs]={sync:"v"},Ca[gr]={sync:"v",tickCount:5,tickInterval:.2},Ca),animation:!1};function ES(e,r){return e.map(function(t,i){var n;return n={},n[Cs]=t-(e[i-1]||0),n[Wh]="".concat(i),n[gr]=r,n})}function Xh(e){var r;return[(r={},r[gr]=(0,h.clamp)(e,0,1),r)]}function Uh(e,r){var t=(0,h.get)(r,["ticks"],[]),i=(0,h.size)(t)?(0,h.uniq)(t):[0,(0,h.clamp)(e,0,1),1];return i[0]||i.shift(),ES(i,e)}function TS(e){var r=e.chart,t=e.options,i=t.percent,n=t.range,a=t.radius,o=t.innerRadius,s=t.startAngle,l=t.endAngle,u=t.axis,c=t.indicator,f=t.gaugeStyle,v=t.type,d=t.meter,p=n.color,y=n.width;if(c){var m=Xh(i),x=r.createView({id:Hh});x.data(m),x.point().position("".concat(gr,"*1")).shape(c.shape||"gauge-indicator").customInfo({defaultColor:r.getTheme().defaultColor,indicator:c}),x.coordinate("polar",{startAngle:s,endAngle:l,radius:o*a}),x.axis(gr,u),x.scale(gr,$t(u,Be))}var _=Uh(i,t.range),w=r.createView({id:Yh});w.data(_);var b=(0,h.isString)(p)?[p,MS]:p,S=Fe({chart:w,options:{xField:"1",yField:Cs,seriesField:Wh,rawFields:[gr],isStack:!0,interval:{color:b,style:f,shape:v==="meter"?"meter-gauge":null},args:{zIndexReversed:!0,sortZIndex:!0},minColumnWidth:y,maxColumnWidth:y}}).ext,C=S.geometry;return C.customInfo({meter:d}),w.coordinate("polar",{innerRadius:o,radius:a,startAngle:s,endAngle:l}).transpose(),e}function LS(e){var r;return Et(he((r={range:{min:0,max:1,maxLimit:1,minLimit:0}},r[gr]={},r)))(e)}function jh(e,r){var t=e.chart,i=e.options,n=i.statistic,a=i.percent;if(t.getController("annotation").clear(!0),n){var o=n.content,s=void 0;o&&(s=O({},{content:"".concat((a*100).toFixed(2),"%"),style:{opacity:.75,fontSize:"30px",lineHeight:1,textAlign:"center",color:"rgba(44,53,66,0.85)"}},o)),sb(t,{statistic:(0,g.__assign)((0,g.__assign)({},n),{content:s})},{percent:a})}return r&&t.render(!0),e}function IS(e){var r=e.chart,t=e.options,i=t.tooltip;return i?r.tooltip(O({showTitle:!1,showMarkers:!1,containerTpl:'
      ',domStyles:{"g2-tooltip":{padding:"4px 8px",fontSize:"10px"}},customContent:function(n,a){var o=(0,h.get)(a,[0,"data",gr],0);return"".concat((o*100).toFixed(2),"%")}},i)):r.tooltip(!1),e}function OS(e){var r=e.chart;return r.legend(!1),e}function Zh(e){return Et(Xt,Qt,TS,LS,IS,jh,oe,le(),OS)(e)}Zt("point","gauge-indicator",{draw:function(e,r){var t=e.customInfo,i=t.indicator,n=t.defaultColor,a=i,o=a.pointer,s=a.pin,l=r.addGroup(),u=this.parsePoint({x:0,y:0});return o&&l.addShape("line",{name:"pointer",attrs:(0,g.__assign)({x1:u.x,y1:u.y,x2:e.x,y2:e.y,stroke:n},o.style)}),s&&l.addShape("circle",{name:"pin",attrs:(0,g.__assign)({x:u.x,y:u.y,stroke:n},s.style)}),l}}),Zt("interval","meter-gauge",{draw:function(e,r){var t=e.customInfo.meter,i=t===void 0?{}:t,n=i.steps,a=n===void 0?50:n,o=i.stepRatio,s=o===void 0?.5:o;a=a<1?1:a,s=(0,h.clamp)(s,0,1);var l=this.coordinate,u=l.startAngle,c=l.endAngle,f=0;if(s>0&&s<1){var v=c-u;f=v/a/(s/(1-s)+1-1/a)}for(var d=f/(1-s)*s,p=r.addGroup(),y=this.coordinate.getCenter(),m=this.coordinate.getRadius(),x=ke.getAngle(e,this.coordinate),_=x.startAngle,w=x.endAngle,b=_;b1?l/(i-1):s.max),!t&&!i){var c=kS(o);u=l/c}var f={},v=(0,h.groupBy)(a,n);(0,h.isEmpty)(v)?(0,h.each)(a,function(p){var y=p[r],m=qh(y,u,i),x="".concat(m[0],"-").concat(m[1]);(0,h.hasKey)(f,x)||(f[x]={range:m,count:0}),f[x].count+=1}):Object.keys(v).forEach(function(p){(0,h.each)(v[p],function(y){var m=y[r],x=qh(m,u,i),_="".concat(x[0],"-").concat(x[1]),w="".concat(_,"-").concat(p);(0,h.hasKey)(f,w)||(f[w]={range:x,count:0},f[w][n]=p),f[w].count+=1})});var d=[];return(0,h.each)(f,function(p){d.push(p)}),d}var Aa="range",vn="count",DS=O({},kt.getDefaultOptions(),{columnStyle:{stroke:"#FFFFFF"},tooltip:{shared:!0,showMarkers:!1},interactions:[{type:"active-region"}]});function BS(e){var r=e.chart,t=e.options,i=t.data,n=t.binField,a=t.binNumber,o=t.binWidth,s=t.color,l=t.stackField,u=t.legend,c=t.columnStyle,f=Kh(i,n,o,a,l);r.data(f);var v=O({},e,{options:{xField:Aa,yField:vn,seriesField:l,isStack:!0,interval:{color:s,style:c}}});return Fe(v),u&&l?r.legend(l,u):r.legend(!1),e}function RS(e){var r,t=e.options,i=t.xAxis,n=t.yAxis;return Et(he((r={},r[Aa]=i,r[vn]=n,r)))(e)}function NS(e){var r=e.chart,t=e.options,i=t.xAxis,n=t.yAxis;return i===!1?r.axis(Aa,!1):r.axis(Aa,i),n===!1?r.axis(vn,!1):r.axis(vn,n),e}function zS(e){var r=e.chart,t=e.options,i=t.label,n=Me(r,"interval");if(!i)n.label(!1);else{var a=i.callback,o=(0,g.__rest)(i,["callback"]);n.label({fields:[vn],callback:a,cfg:be(o)})}return e}function $h(e){return Et(Xt,Ve("columnStyle"),BS,RS,NS,Lr,zS,me,oe,Qt)(e)}var VS=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="histogram",t}return r.getDefaultOptions=function(){return DS},r.prototype.changeData=function(t){this.updateOption({data:t});var i=this.options,n=i.binField,a=i.binNumber,o=i.binWidth,s=i.stackField;this.chart.changeData(Kh(t,n,o,a,s))},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.getSchemaAdaptor=function(){return $h},r}(kt),GS=O({},kt.getDefaultOptions(),{tooltip:{shared:!0,showMarkers:!0,showCrosshairs:!0,crosshairs:{type:"x"}},legend:{position:"top-left",radio:{}},isStack:!1}),WS=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.active=function(){var t=this.getView(),i=this.context.event;if(i.data){var n=i.data.items,a=t.geometries.filter(function(o){return o.type==="point"});(0,h.each)(a,function(o){(0,h.each)(o.elements,function(s){var l=(0,h.findIndex)(n,function(u){return u.data===s.data})!==-1;s.setState("active",l)})})}},r.prototype.reset=function(){var t=this.getView(),i=t.geometries.filter(function(n){return n.type==="point"});(0,h.each)(i,function(n){(0,h.each)(n.elements,function(a){a.setState("active",!1)})})},r.prototype.getView=function(){return this.context.view},r}(ne);xt("marker-active",WS),Ot("marker-active",{start:[{trigger:"tooltip:show",action:"marker-active:active"}],end:[{trigger:"tooltip:hide",action:"marker-active:reset"}]});var Qh=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="line",t}return r.getDefaultOptions=function(){return GS},r.prototype.changeData=function(t){this.updateOption({data:t});var i=this,n=i.chart,a=i.options;wa({chart:n,options:a}),this.chart.changeData(t)},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.getSchemaAdaptor=function(){return Fh},r}(kt),Jh=O({},kt.getDefaultOptions(),{legend:{position:"right",radio:{}},tooltip:{shared:!1,showTitle:!1,showMarkers:!1},label:{layout:{type:"limit-in-plot",cfg:{action:"ellipsis"}}},pieStyle:{stroke:"white",lineWidth:1},statistic:{title:{style:{fontWeight:300,color:"#4B535E",textAlign:"center",fontSize:"20px",lineHeight:1}},content:{style:{fontWeight:"bold",color:"rgba(44,53,66,0.85)",textAlign:"center",fontSize:"32px",lineHeight:1}}},theme:{components:{annotation:{text:{animate:!1}}}}}),HS=[1,0,0,0,1,0,0,0,1];function As(e,r){var t=r?(0,g.__spreadArray)([],r,!0):(0,g.__spreadArray)([],HS,!0);return ke.transform(t,e)}var YS=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getActiveElements=function(){var t=ke.getDelegationObject(this.context);if(t){var i=this.context.view,n=t.component,a=t.item,o=n.get("field");if(o){var s=i.geometries[0].elements;return s.filter(function(l){return l.getModel().data[o]===a.value})}}return[]},r.prototype.getActiveElementLabels=function(){var t=this.context.view,i=this.getActiveElements(),n=t.geometries[0].labelsContainer.getChildren();return n.filter(function(a){return i.find(function(o){return(0,h.isEqual)(o.getData(),a.get("data"))})})},r.prototype.transfrom=function(t){t===void 0&&(t=7.5);var i=this.getActiveElements(),n=this.getActiveElementLabels();i.forEach(function(a,o){var s=n[o],l=a.geometry.coordinate;if(l.isPolar&&l.isTransposed){var u=ke.getAngle(a.getModel(),l),c=u.startAngle,f=u.endAngle,v=(c+f)/2,d=t,p=d*Math.cos(v),y=d*Math.sin(v);a.shape.setMatrix(As([["t",p,y]])),s.setMatrix(As([["t",p,y]]))}})},r.prototype.active=function(){this.transfrom()},r.prototype.reset=function(){this.transfrom(0)},r}(ne);function XS(e){var r=e.event,t,i=r.target;return i&&(t=i.get("element")),t}var US=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getAnnotations=function(t){var i=t||this.context.view;return i.getController("annotation").option},r.prototype.getInitialAnnotation=function(){return this.initialAnnotation},r.prototype.init=function(){var t=this,i=this.context.view;i.removeInteraction("tooltip"),i.on("afterchangesize",function(){var n=t.getAnnotations(i);t.initialAnnotation=n})},r.prototype.change=function(t){var i=this.context,n=i.view,a=i.event;this.initialAnnotation||(this.initialAnnotation=this.getAnnotations());var o=(0,h.get)(a,["data","data"]);if(a.type.match("legend-item")){var s=ke.getDelegationObject(this.context),l=n.getGroupedFields()[0];if(s&&l){var u=s.item;o=n.getData().find(function(d){return d[l]===u.value})}}if(o){var c=(0,h.get)(t,"annotations",[]),f=(0,h.get)(t,"statistic",{});n.getController("annotation").clear(!0),(0,h.each)(c,function(d){typeof d=="object"&&n.annotation()[d.type](d)}),da(n,{statistic:f,plotType:"pie"},o),n.render(!0)}var v=XS(this.context);v&&v.shape.toFront()},r.prototype.reset=function(){var t=this.context.view,i=t.getController("annotation");i.clear(!0);var n=this.getInitialAnnotation();(0,h.each)(n,function(a){t.annotation()[a.type](a)}),t.render(!0)},r}(ne),tf="pie-statistic";xt(tf,US),Ot("pie-statistic-active",{start:[{trigger:"element:mouseenter",action:"pie-statistic:change"}],end:[{trigger:"element:mouseleave",action:"pie-statistic:reset"}]}),xt("pie-legend",YS),Ot("pie-legend-active",{start:[{trigger:"legend-item:mouseenter",action:"pie-legend:active"}],end:[{trigger:"legend-item:mouseleave",action:"pie-legend:reset"}]});function jS(e,r){var t=null;return(0,h.each)(e,function(i){typeof i[r]=="number"&&(t+=i[r])}),t}function ZS(e,r){var t;switch(e){case"inner":return t="-30%",(0,h.isString)(r)&&r.endsWith("%")?parseFloat(r)*.01>0?t:r:r<0?r:t;case"outer":return t=12,(0,h.isString)(r)&&r.endsWith("%")?parseFloat(r)*.01<0?t:r:r>0?r:t;default:return r}}function Ma(e,r){return(0,h.every)(xi(e,r),function(t){return t[r]===0})}function qS(e){var r=e.chart,t=e.options,i=t.data,n=t.angleField,a=t.colorField,o=t.color,s=t.pieStyle,l=t.shape,u=xi(i,n);if(Ma(u,n)){var c="$$percentage$$";u=u.map(function(v){var d;return(0,g.__assign)((0,g.__assign)({},v),(d={},d[c]=1/u.length,d))}),r.data(u);var f=O({},e,{options:{xField:"1",yField:c,seriesField:a,isStack:!0,interval:{color:o,shape:l,style:s},args:{zIndexReversed:!0,sortZIndex:!0}}});Fe(f)}else{r.data(u);var f=O({},e,{options:{xField:"1",yField:n,seriesField:a,isStack:!0,interval:{color:o,shape:l,style:s},args:{zIndexReversed:!0,sortZIndex:!0}}});Fe(f)}return e}function KS(e){var r,t=e.chart,i=e.options,n=i.meta,a=i.colorField,o=O({},n);return t.scale(o,(r={},r[a]={type:"cat"},r)),e}function $S(e){var r=e.chart,t=e.options,i=t.radius,n=t.innerRadius,a=t.startAngle,o=t.endAngle;return r.coordinate({type:"theta",cfg:{radius:i,innerRadius:n,startAngle:a,endAngle:o}}),e}function QS(e){var r=e.chart,t=e.options,i=t.label,n=t.colorField,a=t.angleField,o=r.geometries[0];if(!i)o.label(!1);else{var s=i.callback,l=(0,g.__rest)(i,["callback"]),u=be(l);if(u.content){var c=u.content;u.content=function(p,y,m){var x=p[n],_=p[a],w=r.getScaleByField(a),b=w==null?void 0:w.scale(_);return(0,h.isFunction)(c)?c((0,g.__assign)((0,g.__assign)({},p),{percent:b}),y,m):(0,h.isString)(c)?dh(c,{value:_,name:x,percentage:(0,h.isNumber)(b)&&!(0,h.isNil)(_)?"".concat((b*100).toFixed(2),"%"):null}):c}}var f={inner:"",outer:"pie-outer",spider:"pie-spider"},v=u.type?f[u.type]:"pie-outer",d=u.layout?(0,h.isArray)(u.layout)?u.layout:[u.layout]:[];u.layout=(v?[{type:v}]:[]).concat(d),o.label({fields:n?[a,n]:[a],callback:s,cfg:(0,g.__assign)((0,g.__assign)({},u),{offset:ZS(u.type,u.offset),type:"pie"})})}return e}function ef(e){var r=e.innerRadius,t=e.statistic,i=e.angleField,n=e.colorField,a=e.meta,o=e.locale,s=ya(o);if(r&&t){var l=O({},Jh.statistic,t),u=l.title,c=l.content;return u!==!1&&(u=O({},{formatter:function(f){var v=f?f[n]:(0,h.isNil)(u.content)?s.get(["statistic","total"]):u.content,d=(0,h.get)(a,[n,"formatter"])||function(p){return p};return d(v)}},u)),c!==!1&&(c=O({},{formatter:function(f,v){var d=f?f[i]:jS(v,i),p=(0,h.get)(a,[i,"formatter"])||function(y){return y};return f||(0,h.isNil)(c.content)?p(d):c.content}},c)),O({},{statistic:{title:u,content:c}},e)}return e}function rf(e){var r=e.chart,t=e.options,i=ef(t),n=i.innerRadius,a=i.statistic;return r.getController("annotation").clear(!0),Et(le())(e),n&&a&&da(r,{statistic:a,plotType:"pie"}),e}function JS(e){var r=e.chart,t=e.options,i=t.tooltip,n=t.colorField,a=t.angleField,o=t.data;if(i===!1)r.tooltip(i);else if(r.tooltip(O({},i,{shared:!1})),Ma(o,a)){var s=(0,h.get)(i,"fields"),l=(0,h.get)(i,"formatter");(0,h.isEmpty)((0,h.get)(i,"fields"))&&(s=[n,a],l=l||function(u){return{name:u[n],value:(0,h.toString)(u[a])}}),r.geometries[0].tooltip(s.join("*"),_i(s,l))}return e}function tC(e){var r=e.chart,t=e.options,i=ef(t),n=i.interactions,a=i.statistic,o=i.annotations;return(0,h.each)(n,function(s){var l,u;if(s.enable===!1)r.removeInteraction(s.type);else if(s.type==="pie-statistic-active"){var c=[];((l=s.cfg)===null||l===void 0?void 0:l.start)||(c=[{trigger:"element:mouseenter",action:"".concat(tf,":change"),arg:{statistic:a,annotations:o}}]),(0,h.each)((u=s.cfg)===null||u===void 0?void 0:u.start,function(f){c.push((0,g.__assign)((0,g.__assign)({},f),{arg:{statistic:a,annotations:o}}))}),r.interaction(s.type,O({},s.cfg,{start:c}))}else r.interaction(s.type,s.cfg||{})}),e}function nf(e){return Et(Ve("pieStyle"),qS,KS,Xt,$S,Ur,JS,QS,Lr,rf,tC,Qt)(e)}var af=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="pie",t}return r.getDefaultOptions=function(){return Jh},r.prototype.changeData=function(t){this.chart.emit(L.BEFORE_CHANGE_DATA,ue.fromData(this.chart,L.BEFORE_CHANGE_DATA,null));var i=this.options,n=this.options.angleField,a=xi(i.data,n),o=xi(t,n);Ma(a,n)||Ma(o,n)?this.update({data:t}):(this.updateOption({data:t}),this.chart.data(o),rf({chart:this.chart,options:this.options}),this.chart.render(!0)),this.chart.emit(L.AFTER_CHANGE_DATA,ue.fromData(this.chart,L.AFTER_CHANGE_DATA,null))},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.getSchemaAdaptor=function(){return nf},r}(kt),of=["#FAAD14","#E8EDF3"],eC={percent:.2,color:of,animation:{}};function Ms(e){var r=(0,h.clamp)(Xr(e)?e:0,0,1);return[{current:"".concat(r),type:"current",percent:r},{current:"".concat(r),type:"target",percent:1}]}function sf(e){var r=e.chart,t=e.options,i=t.percent,n=t.progressStyle,a=t.color,o=t.barWidthRatio;r.data(Ms(i));var s=O({},e,{options:{xField:"current",yField:"percent",seriesField:"type",widthRatio:o,interval:{style:n,color:(0,h.isString)(a)?[a,of[1]]:a},args:{zIndexReversed:!0,sortZIndex:!0}}});return Fe(s),r.tooltip(!1),r.axis(!1),r.legend(!1),e}function rC(e){var r=e.chart;return r.coordinate("rect").transpose(),e}function lf(e){return Et(sf,he({}),rC,Qt,Xt,le())(e)}var iC=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="process",t}return r.getDefaultOptions=function(){return eC},r.prototype.changeData=function(t){this.updateOption({percent:t}),this.chart.changeData(Ms(t))},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.getSchemaAdaptor=function(){return lf},r}(kt);function nC(e){var r=e.chart,t=e.options,i=t.innerRadius,n=t.radius;return r.coordinate("theta",{innerRadius:i,radius:n}),e}function uf(e,r){var t=e.chart,i=e.options,n=i.innerRadius,a=i.statistic,o=i.percent,s=i.meta;if(t.getController("annotation").clear(!0),n&&a){var l=(0,h.get)(s,["percent","formatter"])||function(c){return"".concat((c*100).toFixed(2),"%")},u=a.content;u&&(u=O({},u,{content:(0,h.isNil)(u.content)?l(o):u.content})),da(t,{statistic:(0,g.__assign)((0,g.__assign)({},a),{content:u}),plotType:"ring-progress"},{percent:o})}return r&&t.render(!0),e}function cf(e){return Et(sf,he({}),nC,uf,Qt,Xt,le())(e)}var aC={percent:.2,innerRadius:.8,radius:.98,color:["#FAAD14","#E8EDF3"],statistic:{title:!1,content:{style:{fontSize:"14px",fontWeight:300,fill:"#4D4D4D",textAlign:"center",textBaseline:"middle"}}},animation:{}},oC=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="ring-process",t}return r.getDefaultOptions=function(){return aC},r.prototype.changeData=function(t){this.chart.emit(L.BEFORE_CHANGE_DATA,ue.fromData(this.chart,L.BEFORE_CHANGE_DATA,null)),this.updateOption({percent:t}),this.chart.data(Ms(t)),uf({chart:this.chart,options:this.options},!0),this.chart.emit(L.AFTER_CHANGE_DATA,ue.fromData(this.chart,L.AFTER_CHANGE_DATA,null))},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.getSchemaAdaptor=function(){return cf},r}(kt),Kr=M(56645),sC={exp:Kr.regressionExp,linear:Kr.regressionLinear,loess:Kr.regressionLoess,log:Kr.regressionLog,poly:Kr.regressionPoly,pow:Kr.regressionPow,quad:Kr.regressionQuad};function lC(e,r){var t=10,i={regionStyle:[{position:{start:[e,"max"],end:["max",r]},style:{fill:"#d8d0c0",opacity:.4}},{position:{start:["min","max"],end:[e,r]},style:{fill:"#a3dda1",opacity:.4}},{position:{start:["min",r],end:[e,"min"]},style:{fill:"#d8d0c0",opacity:.4}},{position:{start:[e,r],end:["max","min"]},style:{fill:"#a3dda1",opacity:.4}}],lineStyle:{stroke:"#9ba29a",lineWidth:1},labelStyle:[{position:["max",r],offsetX:-t,offsetY:-t,style:{textAlign:"right",textBaseline:"bottom",fontSize:14,fill:"#ccc"}},{position:["min",r],offsetX:t,offsetY:-t,style:{textAlign:"left",textBaseline:"bottom",fontSize:14,fill:"#ccc"}},{position:["min",r],offsetX:t,offsetY:t,style:{textAlign:"left",textBaseline:"top",fontSize:14,fill:"#ccc"}},{position:["max",r],offsetX:-t,offsetY:t,style:{textAlign:"right",textBaseline:"top",fontSize:14,fill:"#ccc"}}]};return i}var uC=function(e,r){var t=r.view,i=r.options,n=i.xField,a=i.yField,o=t.getScaleByField(n),s=t.getScaleByField(a),l=e.map(function(u){return t.getCoordinate().convert({x:o.scale(u[0]),y:s.scale(u[1])})});return ob(l,!1)},cC=function(e){var r=e.options,t=r.xField,i=r.yField,n=r.data,a=r.regressionLine,o=a.type,s=o===void 0?"linear":o,l=a.algorithm,u=a.equation,c,f=null;if(l)c=(0,h.isArray)(l)?l:l(n),f=u;else{var v=sC[s]().x(function(d){return d[t]}).y(function(d){return d[i]});c=v(n),f=fC(s,c)}return[uC(c,e),f]},hC=function(e){var r,t=e.meta,i=t===void 0?{}:t,n=e.xField,a=e.yField,o=e.data,s=o[0][n],l=o[0][a],u=s>0,c=l>0;function f(v,d){var p=(0,h.get)(i,[v]);function y(x){return(0,h.get)(p,x)}var m={};return d==="x"?((0,h.isNumber)(s)&&((0,h.isNumber)(y("min"))||(m.min=u?0:s*2),(0,h.isNumber)(y("max"))||(m.max=u?s*2:0)),m):((0,h.isNumber)(l)&&((0,h.isNumber)(y("min"))||(m.min=c?0:l*2),(0,h.isNumber)(y("max"))||(m.max=c?l*2:0)),m)}return(0,g.__assign)((0,g.__assign)({},i),(r={},r[n]=(0,g.__assign)((0,g.__assign)({},i[n]),f(n,"x")),r[a]=(0,g.__assign)((0,g.__assign)({},i[a]),f(a,"y")),r))};function fC(e,r){var t,i,n,a=function(u,c){return c===void 0&&(c=4),Math.round(u*Math.pow(10,c))/Math.pow(10,c)},o=function(u){return Number.isFinite(u)?a(u):"?"};switch(e){case"linear":return"y = ".concat(o(r.a),"x + ").concat(o(r.b),", R^2 = ").concat(o(r.rSquared));case"exp":return"y = ".concat(o(r.a),"e^(").concat(o(r.b),"x), R^2 = ").concat(o(r.rSquared));case"log":return"y = ".concat(o(r.a),"ln(x) + ").concat(o(r.b),", R^2 = ").concat(o(r.rSquared));case"quad":return"y = ".concat(o(r.a),"x^2 + ").concat(o(r.b),"x + ").concat(o(r.c),", R^2 = ").concat(o(r.rSquared));case"poly":for(var s="y = ".concat(o((t=r.coefficients)===null||t===void 0?void 0:t[0])," + ").concat(o((i=r.coefficients)===null||i===void 0?void 0:i[1]),"x + ").concat(o((n=r.coefficients)===null||n===void 0?void 0:n[2]),"x^2"),l=3;l
      ',itemTpl:"{value}",domStyles:{"g2-tooltip":{padding:"2px 4px",fontSize:"10px"}},showCrosshairs:!0,crosshairs:{type:"x"}},LC={appendPadding:2,tooltip:(0,g.__assign)({},yf),animation:{}};function IC(e){var r=e.chart,t=e.options,i=t.data,n=t.color,a=t.areaStyle,o=t.point,s=t.line,l=o==null?void 0:o.state,u=$r(i);r.data(u);var c=O({},e,{options:{xField:gn,yField:bi,area:{color:n,style:a},line:s,point:o}}),f=O({},c,{options:{tooltip:!1}}),v=O({},c,{options:{tooltip:!1,state:l}});return xa(c),wi(f),Ge(v),r.axis(!1),r.legend(!1),e}function Si(e){var r,t,i=e.options,n=i.xAxis,a=i.yAxis,o=i.data,s=$r(o);return Et(he((r={},r[gn]=n,r[bi]=a,r),(t={},t[gn]={type:"cat"},t[bi]=ls(s,bi),t)))(e)}function mf(e){return Et(Ve("areaStyle"),IC,Si,me,Xt,Qt,le())(e)}var OC={appendPadding:2,tooltip:(0,g.__assign)({},yf),color:"l(90) 0:#E5EDFE 1:#ffffff",areaStyle:{fillOpacity:.6},line:{size:1,color:"#5B8FF9"},animation:{}},PC=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="tiny-area",t}return r.getDefaultOptions=function(){return OC},r.prototype.changeData=function(t){this.updateOption({data:t});var i=this,n=i.chart,a=i.options;Si({chart:n,options:a}),n.changeData($r(t))},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.getSchemaAdaptor=function(){return mf},r}(kt);function kC(e){var r=e.chart,t=e.options,i=t.data,n=t.color,a=t.columnStyle,o=t.columnWidthRatio,s=$r(i);r.data(s);var l=O({},e,{options:{xField:gn,yField:bi,widthRatio:o,interval:{style:a,color:n}}});return Fe(l),r.axis(!1),r.legend(!1),r.interaction("element-active"),e}function xf(e){return Et(Xt,Ve("columnStyle"),kC,Si,me,Qt,le())(e)}var DC={showTitle:!1,shared:!0,showMarkers:!1,customContent:function(e,r){return"".concat((0,h.get)(r,[0,"data","y"],0))},containerTpl:'
      ',itemTpl:"{value}",domStyles:{"g2-tooltip":{padding:"2px 4px",fontSize:"10px"}}},BC={appendPadding:2,tooltip:(0,g.__assign)({},DC),animation:{}},RC=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="tiny-column",t}return r.getDefaultOptions=function(){return BC},r.prototype.changeData=function(t){this.updateOption({data:t});var i=this,n=i.chart,a=i.options;Si({chart:n,options:a}),n.changeData($r(t))},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.getSchemaAdaptor=function(){return xf},r}(kt);function NC(e){var r=e.chart,t=e.options,i=t.data,n=t.color,a=t.lineStyle,o=t.point,s=o==null?void 0:o.state,l=$r(i);r.data(l);var u=O({},e,{options:{xField:gn,yField:bi,line:{color:n,style:a},point:o}}),c=O({},u,{options:{tooltip:!1,state:s}});return wi(u),Ge(c),r.axis(!1),r.legend(!1),e}function _f(e){return Et(NC,Si,Xt,me,Qt,le())(e)}var zC=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="tiny-line",t}return r.getDefaultOptions=function(){return LC},r.prototype.changeData=function(t){this.updateOption({data:t});var i=this,n=i.chart,a=i.options;Si({chart:n,options:a}),n.changeData($r(t))},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.getSchemaAdaptor=function(){return _f},r}(kt),VC={line:Fh,pie:nf,column:Sa,bar:Ph,area:Eh,gauge:Zh,"tiny-line":_f,"tiny-column":xf,"tiny-area":mf,"ring-progress":cf,progress:lf,scatter:ff,histogram:$h,funnel:Gh,stock:pf},GC={line:Qh,pie:af,column:kh,bar:tS,area:Th,gauge:PS,"tiny-line":zC,"tiny-column":RC,"tiny-area":PC,"ring-progress":oC,progress:iC,scatter:wC,histogram:VS,funnel:AS,stock:TC},WC={pie:{label:!1},column:{tooltip:{showMarkers:!1}},bar:{tooltip:{showMarkers:!1}}};function Fs(e,r,t){var i=GC[e];if(!i){console.error("could not find ".concat(e," plot"));return}var n=VC[e];n({chart:r,options:O({},i.getDefaultOptions(),(0,h.get)(WC,e,{}),t)})}function HC(e){var r=e.chart,t=e.options,i=t.views,n=t.legend;return(0,h.each)(i,function(a){var o=a.region,s=a.data,l=a.meta,u=a.axes,c=a.coordinate,f=a.interactions,v=a.annotations,d=a.tooltip,p=a.geometries,y=r.createView({region:o});y.data(s);var m={};u&&(0,h.each)(u,function(x,_){m[_]=$t(x,Be)}),m=O({},l,m),y.scale(m),u?(0,h.each)(u,function(x,_){y.axis(_,x)}):y.axis(!1),y.coordinate(c),(0,h.each)(p,function(x){var _=Re({chart:y,options:x}).ext,w=x.adjust;w&&_.geometry.adjust(w)}),(0,h.each)(f,function(x){x.enable===!1?y.removeInteraction(x.type):y.interaction(x.type,x.cfg)}),(0,h.each)(v,function(x){y.annotation()[x.type]((0,g.__assign)({},x))}),typeof a.animation=="boolean"?y.animate(!1):(y.animate(!0),(0,h.each)(y.geometries,function(x){x.animate(a.animation)})),d&&(y.interaction("tooltip"),y.tooltip(d))}),n?(0,h.each)(n,function(a,o){r.legend(o,a)}):r.legend(!1),r.tooltip(t.tooltip),e}function YC(e){var r=e.chart,t=e.options,i=t.plots,n=t.data,a=n===void 0?[]:n;return(0,h.each)(i,function(o){var s=o.type,l=o.region,u=o.options,c=u===void 0?{}:u,f=o.top,v=c.tooltip;if(f){Fs(s,r,(0,g.__assign)((0,g.__assign)({},c),{data:a}));return}var d=r.createView((0,g.__assign)({region:l},$t(c,Sh)));v&&d.interaction("tooltip"),Fs(s,d,(0,g.__assign)({data:a},c))}),e}function XC(e){var r=e.chart,t=e.options;return r.option("slider",t.slider),e}function UC(e){return Et(Qt,HC,YC,oe,Qt,Xt,me,XC,le())(e)}function jC(e,r){var t=e.getModel(),i=t.data,n;return(0,h.isArray)(i)?n=i[0][r]:n=i[r],n}function ZC(e){var r=fa(e);(0,h.each)(r,function(t){t.hasState("active")&&t.setState("active",!1),t.hasState("selected")&&t.setState("selected",!1),t.hasState("inactive")&&t.setState("inactive",!1)})}var qC=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getAssociationItems=function(t,i){var n,a=this.context.event,o=i||{},s=o.linkField,l=o.dim,u=[];if((n=a.data)===null||n===void 0?void 0:n.data){var c=a.data.data;(0,h.each)(t,function(f){var v,d,p=s;if(l==="x"?p=f.getXScale().field:l==="y"?p=(v=f.getYScales().find(function(m){return m.field===p}))===null||v===void 0?void 0:v.field:p||(p=(d=f.getGroupScales()[0])===null||d===void 0?void 0:d.field),!!p){var y=(0,h.map)(fa(f),function(m){var x=!1,_=!1,w=(0,h.isArray)(c)?(0,h.get)(c[0],p):(0,h.get)(c,p);return jC(m,p)===w?x=!0:_=!0,{element:m,view:f,active:x,inactive:_}});u.push.apply(u,y)}})}return u},r.prototype.showTooltip=function(t){var i=gh(this.context.view),n=this.getAssociationItems(i,t);(0,h.each)(n,function(a){if(a.active){var o=a.element.shape.getCanvasBBox();a.view.showTooltip({x:o.minX+o.width/2,y:o.minY+o.height/2})}})},r.prototype.hideTooltip=function(){var t=gh(this.context.view);(0,h.each)(t,function(i){i.hideTooltip()})},r.prototype.active=function(t){var i=sn(this.context.view),n=this.getAssociationItems(i,t);(0,h.each)(n,function(a){var o=a.active,s=a.element;o&&s.setState("active",!0)})},r.prototype.selected=function(t){var i=sn(this.context.view),n=this.getAssociationItems(i,t);(0,h.each)(n,function(a){var o=a.active,s=a.element;o&&s.setState("selected",!0)})},r.prototype.highlight=function(t){var i=sn(this.context.view),n=this.getAssociationItems(i,t);(0,h.each)(n,function(a){var o=a.inactive,s=a.element;o&&s.setState("inactive",!0)})},r.prototype.reset=function(){var t=sn(this.context.view);(0,h.each)(t,function(i){ZC(i)})},r}(ne);xt("association",qC),Ot("association-active",{start:[{trigger:"element:mouseenter",action:"association:active"}],end:[{trigger:"element:mouseleave",action:"association:reset"}]}),Ot("association-selected",{start:[{trigger:"element:mouseenter",action:"association:selected"}],end:[{trigger:"element:mouseleave",action:"association:reset"}]}),Ot("association-highlight",{start:[{trigger:"element:mouseenter",action:"association:highlight"}],end:[{trigger:"element:mouseleave",action:"association:reset"}]}),Ot("association-tooltip",{start:[{trigger:"element:mousemove",action:"association:showTooltip"}],end:[{trigger:"element:mouseleave",action:"association:hideTooltip"}]});var KC=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="mix",t}return r.prototype.getSchemaAdaptor=function(){return UC},r}(kt),Ci;(function(e){e.DEV="DEV",e.BETA="BETA",e.STABLE="STABLE"})(Ci||(Ci={}));function $C(e,r){console.warn(e===Ci.DEV?"Plot '".concat(r,"' is in DEV stage, just give us issues."):e===Ci.BETA?"Plot '".concat(r,"' is in BETA stage, DO NOT use it in production env."):e===Ci.STABLE?"Plot '".concat(r,`' is in STABLE stage, import it by "import { `).concat(r,` } from '@antv/g2plot'".`):"invalid Stage type.")}var sI=function(){function e(){}return Object.defineProperty(e,"MultiView",{get:function(){return $C(Ci.STABLE,"MultiView"),KC},enumerable:!1,configurable:!0}),e}(),er="first-axes-view",rr="second-axes-view",Qr="series-field-key";function wf(e,r,t,i,n){var a=[];r.forEach(function(f){i.forEach(function(v){var d,p=(d={},d[e]=v[e],d[t]=f,d[f]=v[f],d);a.push(p)})});var o=Object.values((0,h.groupBy)(a,t)),s=o[0],l=s===void 0?[]:s,u=o[1],c=u===void 0?[]:u;return n?[l.reverse(),c.reverse()]:[l,c]}function pr(e){return e!=="vertical"}function QC(e,r,t){var i=r[0],n=r[1],a=i.autoPadding,o=n.autoPadding,s=e.__axisPosition,l=s.layout,u=s.position;if(pr(l)&&u==="top"&&(i.autoPadding=t.instance(a.top,0,a.bottom,a.left),n.autoPadding=t.instance(o.top,a.left,o.bottom,0)),pr(l)&&u==="bottom"&&(i.autoPadding=t.instance(a.top,a.right/2+5,a.bottom,a.left),n.autoPadding=t.instance(o.top,o.right,o.bottom,a.right/2+5)),!pr(l)&&u==="bottom"){var c=a.left>=o.left?a.left:o.left;i.autoPadding=t.instance(a.top,a.right,a.bottom/2+5,c),n.autoPadding=t.instance(a.bottom/2+5,o.right,o.bottom,c)}if(!pr(l)&&u==="top"){var c=a.left>=o.left?a.left:o.left;i.autoPadding=t.instance(a.top,a.right,0,c),n.autoPadding=t.instance(0,o.right,a.top,c)}}function JC(e){var r=e.chart,t=e.options,i=t.data,n=t.xField,a=t.yField,o=t.color,s=t.barStyle,l=t.widthRatio,u=t.legend,c=t.layout,f=wf(n,a,Qr,i,pr(c));u?r.legend(Qr,u):u===!1&&r.legend(!1);var v,d,p=f[0],y=f[1];pr(c)?(v=r.createView({region:{start:{x:0,y:0},end:{x:.5,y:1}},id:er}),v.coordinate().transpose().reflect("x"),d=r.createView({region:{start:{x:.5,y:0},end:{x:1,y:1}},id:rr}),d.coordinate().transpose(),v.data(p),d.data(y)):(v=r.createView({region:{start:{x:0,y:0},end:{x:1,y:.5}},id:er}),d=r.createView({region:{start:{x:0,y:.5},end:{x:1,y:1}},id:rr}),d.coordinate().reflect("y"),v.data(p),d.data(y));var m=O({},e,{chart:v,options:{widthRatio:l,xField:n,yField:a[0],seriesField:Qr,interval:{color:o,style:s}}});Fe(m);var x=O({},e,{chart:d,options:{xField:n,yField:a[1],seriesField:Qr,widthRatio:l,interval:{color:o,style:s}}});return Fe(x),e}function tA(e){var r,t,i,n=e.options,a=e.chart,o=n.xAxis,s=n.yAxis,l=n.xField,u=n.yField,c=Nt(a,er),f=Nt(a,rr),v={};return(0,h.keys)((n==null?void 0:n.meta)||{}).map(function(d){(0,h.get)(n==null?void 0:n.meta,[d,"alias"])&&(v[d]=n.meta[d].alias)}),a.scale((r={},r[Qr]={sync:!0,formatter:function(d){return(0,h.get)(v,d,d)}},r)),he((t={},t[l]=o,t[u[0]]=s[u[0]],t))(O({},e,{chart:c})),he((i={},i[l]=o,i[u[1]]=s[u[1]],i))(O({},e,{chart:f})),e}function eA(e){var r=e.chart,t=e.options,i=t.xAxis,n=t.yAxis,a=t.xField,o=t.yField,s=t.layout,l=Nt(r,er),u=Nt(r,rr);return(i==null?void 0:i.position)==="bottom"?u.axis(a,(0,g.__assign)((0,g.__assign)({},i),{label:{formatter:function(){return""}}})):u.axis(a,!1),i===!1?l.axis(a,!1):l.axis(a,(0,g.__assign)({position:pr(s)?"top":"bottom"},i)),n===!1?(l.axis(o[0],!1),u.axis(o[1],!1)):(l.axis(o[0],n[o[0]]),u.axis(o[1],n[o[1]])),r.__axisPosition={position:l.getOptions().axes[a].position,layout:s},e}function rA(e){var r=e.chart;return oe(O({},e,{chart:Nt(r,er)})),oe(O({},e,{chart:Nt(r,rr)})),e}function iA(e){var r=e.chart,t=e.options,i=t.yField,n=t.yAxis;return jr(O({},e,{chart:Nt(r,er),options:{yAxis:n[i[0]]}})),jr(O({},e,{chart:Nt(r,rr),options:{yAxis:n[i[1]]}})),e}function nA(e){var r=e.chart;return Xt(O({},e,{chart:Nt(r,er)})),Xt(O({},e,{chart:Nt(r,rr)})),Xt(e),e}function aA(e){var r=e.chart;return Qt(O({},e,{chart:Nt(r,er)})),Qt(O({},e,{chart:Nt(r,rr)})),e}function oA(e){var r=this,t,i,n=e.chart,a=e.options,o=a.label,s=a.yField,l=a.layout,u=Nt(n,er),c=Nt(n,rr),f=Me(u,"interval"),v=Me(c,"interval");if(!o)f.label(!1),v.label(!1);else{var d=o.callback,p=(0,g.__rest)(o,["callback"]);p.position||(p.position="middle"),p.offset===void 0&&(p.offset=2);var y=(0,g.__assign)({},p);if(pr(l)){var m=((t=y.style)===null||t===void 0?void 0:t.textAlign)||(p.position==="middle"?"center":"left");p.style=O({},p.style,{textAlign:m});var x={left:"right",right:"left",center:"center"};y.style=O({},y.style,{textAlign:x[m]})}else{var _={top:"bottom",bottom:"top",middle:"middle"};typeof p.position=="string"?p.position=_[p.position]:typeof p.position=="function"&&(p.position=function(){for(var S=[],C=0;C1?"".concat(r,"_").concat(t):"".concat(r)}function Af(e){var r=e.data,t=e.xField,i=e.measureField,n=e.rangeField,a=e.targetField,o=e.layout,s=[],l=[];r.forEach(function(f,v){var d=[f[n]].flat();d.sort(function(m,x){return m-x}),d.forEach(function(m,x){var _,w=x===0?m:d[x]-d[x-1];s.push((_={rKey:"".concat(n,"_").concat(x)},_[t]=t?f[t]:String(v),_[n]=w,_))});var p=[f[i]].flat();p.forEach(function(m,x){var _;s.push((_={mKey:Cf(p,i,x)},_[t]=t?f[t]:String(v),_[i]=m,_))});var y=[f[a]].flat();y.forEach(function(m,x){var _;s.push((_={tKey:Cf(y,a,x)},_[t]=t?f[t]:String(v),_[a]=m,_))}),l.push(f[n],f[i],f[a])});var u=Math.min.apply(Math,l.flat(Infinity)),c=Math.max.apply(Math,l.flat(Infinity));return u=u>0?0:u,o==="vertical"&&s.reverse(),{min:u,max:c,ds:s}}function yA(e){var r=e.chart,t=e.options,i=t.bulletStyle,n=t.targetField,a=t.rangeField,o=t.measureField,s=t.xField,l=t.color,u=t.layout,c=t.size,f=t.label,v=Af(t),d=v.min,p=v.max,y=v.ds;r.data(y);var m=O({},e,{options:{xField:s,yField:a,seriesField:"rKey",isStack:!0,label:(0,h.get)(f,"range"),interval:{color:(0,h.get)(l,"range"),style:(0,h.get)(i,"range"),size:(0,h.get)(c,"range")}}});Fe(m),r.geometries[0].tooltip(!1);var x=O({},e,{options:{xField:s,yField:o,seriesField:"mKey",isStack:!0,label:(0,h.get)(f,"measure"),interval:{color:(0,h.get)(l,"measure"),style:(0,h.get)(i,"measure"),size:(0,h.get)(c,"measure")}}});Fe(x);var _=O({},e,{options:{xField:s,yField:n,seriesField:"tKey",label:(0,h.get)(f,"target"),point:{color:(0,h.get)(l,"target"),style:(0,h.get)(i,"target"),size:(0,h.isFunction)((0,h.get)(c,"target"))?function(w){return(0,h.get)(c,"target")(w)/2}:(0,h.get)(c,"target")/2,shape:u==="horizontal"?"line":"hyphen"}}});return Ge(_),u==="horizontal"&&r.coordinate().transpose(),(0,g.__assign)((0,g.__assign)({},e),{ext:{data:{min:d,max:p}}})}function Mf(e){var r,t,i=e.options,n=e.ext,a=i.xAxis,o=i.yAxis,s=i.targetField,l=i.rangeField,u=i.measureField,c=i.xField,f=n.data;return Et(he((r={},r[c]=a,r[u]=o,r),(t={},t[u]={min:f==null?void 0:f.min,max:f==null?void 0:f.max,sync:!0},t[s]={sync:"".concat(u)},t[l]={sync:"".concat(u)},t)))(e)}function mA(e){var r=e.chart,t=e.options,i=t.xAxis,n=t.yAxis,a=t.xField,o=t.measureField,s=t.rangeField,l=t.targetField;return r.axis("".concat(s),!1),r.axis("".concat(l),!1),i===!1?r.axis("".concat(a),!1):r.axis("".concat(a),i),n===!1?r.axis("".concat(o),!1):r.axis("".concat(o),n),e}function xA(e){var r=e.chart,t=e.options,i=t.legend;return r.removeInteraction("legend-filter"),r.legend(i),r.legend("rKey",!1),r.legend("mKey",!1),r.legend("tKey",!1),e}function _A(e){var r=e.chart,t=e.options,i=t.label,n=t.measureField,a=t.targetField,o=t.rangeField,s=r.geometries,l=s[0],u=s[1],c=s[2];return(0,h.get)(i,"range")?l.label("".concat(o),(0,g.__assign)({layout:[{type:"limit-in-plot"}]},be(i.range))):l.label(!1),(0,h.get)(i,"measure")?u.label("".concat(n),(0,g.__assign)({layout:[{type:"limit-in-plot"}]},be(i.measure))):u.label(!1),(0,h.get)(i,"target")?c.label("".concat(a),(0,g.__assign)({layout:[{type:"limit-in-plot"}]},be(i.target))):c.label(!1),e}function wA(e){Et(yA,Mf,mA,xA,Xt,_A,me,oe,Qt)(e)}var bA=O({},kt.getDefaultOptions(),{layout:"horizontal",size:{range:30,measure:20,target:20},xAxis:{tickLine:!1,line:null},bulletStyle:{range:{fillOpacity:.5}},label:{measure:{position:"right"}},tooltip:{showMarkers:!1}}),cI=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="bullet",t}return r.getDefaultOptions=function(){return bA},r.prototype.changeData=function(t){this.updateOption({data:t});var i=Af(this.options),n=i.min,a=i.max,o=i.ds;Mf({options:this.options,ext:{data:{min:n,max:a}},chart:this.chart}),this.chart.changeData(o)},r.prototype.getSchemaAdaptor=function(){return wA},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r}(kt),SA={y:0,nodeWidthRatio:.05,weight:!1,nodePaddingRatio:.1,id:function(e){return e.id},source:function(e){return e.source},target:function(e){return e.target},sourceWeight:function(e){return e.value||1},targetWeight:function(e){return e.value||1},sortBy:null};function CA(e,r,t){(0,h.forIn)(e,function(i,n){i.inEdges=r.filter(function(a){return"".concat(t.target(a))==="".concat(n)}),i.outEdges=r.filter(function(a){return"".concat(t.source(a))==="".concat(n)}),i.edges=i.outEdges.concat(i.inEdges),i.frequency=i.edges.length,i.value=0,i.inEdges.forEach(function(a){i.value+=t.targetWeight(a)}),i.outEdges.forEach(function(a){i.value+=t.sourceWeight(a)})})}function AA(e,r){var t={weight:function(n,a){return a.value-n.value},frequency:function(n,a){return a.frequency-n.frequency},id:function(n,a){return"".concat(r.id(n)).localeCompare("".concat(r.id(a)))}},i=t[r.sortBy];!i&&(0,h.isFunction)(r.sortBy)&&(i=r.sortBy),i&&e.sort(i)}function MA(e,r){var t=e.length;if(!t)throw new TypeError("Invalid nodes: it's empty!");if(r.weight){var i=r.nodePaddingRatio;if(i<0||i>=1)throw new TypeError("Invalid nodePaddingRatio: it must be in range [0, 1)!");var n=i/(2*t),a=r.nodeWidthRatio;if(a<=0||a>=1)throw new TypeError("Invalid nodeWidthRatio: it must be in range (0, 1)!");var o=0;e.forEach(function(l){o+=l.value}),e.forEach(function(l){l.weight=l.value/o,l.width=l.weight*(1-i),l.height=a}),e.forEach(function(l,u){for(var c=0,f=u-1;f>=0;f--)c+=e[f].width+2*n;var v=l.minX=n+c,d=l.maxX=l.minX+l.width,p=l.minY=r.y-a/2,y=l.maxY=p+a;l.x=[v,d,d,v],l.y=[p,p,y,y]})}else{var s=1/t;e.forEach(function(l,u){l.x=(u+.5)*s,l.y=r.y})}return e}function FA(e,r,t){if(t.weight){var i={};(0,h.forIn)(e,function(n,a){i[a]=n.value}),r.forEach(function(n){var a=t.source(n),o=t.target(n),s=e[a],l=e[o];if(s&&l){var u=i[a],c=t.sourceWeight(n),f=s.minX+(s.value-u)/s.value*s.width,v=f+c/s.value*s.width;i[a]-=c;var d=i[o],p=t.targetWeight(n),y=l.minX+(l.value-d)/l.value*l.width,m=y+p/l.value*l.width;i[o]-=p;var x=t.y;n.x=[f,v,y,m],n.y=[x,x,x,x],n.source=s,n.target=l}})}else r.forEach(function(n){var a=e[t.source(n)],o=e[t.target(n)];a&&o&&(n.x=[a.x,o.x],n.y=[a.y,o.y],n.source=a,n.target=o)});return r}function EA(e){return(0,h.assign)({},SA,e)}function TA(e,r){var t=EA(e),i={},n=r.nodes,a=r.links;n.forEach(function(l){var u=t.id(l);i[u]=l}),CA(i,a,t),AA(n,t);var o=MA(n,t),s=FA(i,a,t);return{nodes:o,links:s}}var Ff="x",Ef="y",Tf="name",Lf="source",LA={nodeStyle:{opacity:1,fillOpacity:1,lineWidth:1},edgeStyle:{opacity:.5,lineWidth:2},label:{fields:["x","name"],callback:function(e,r){var t=(e[0]+e[1])/2,i=t>.5?-4:4;return{offsetX:i,content:r}},labelEmit:!0,style:{fill:"#8c8c8c"}},tooltip:{showTitle:!1,showMarkers:!1,fields:["source","target","value","isNode"],showContent:function(e){return!(0,h.get)(e,[0,"data","isNode"])},formatter:function(e){var r=e.source,t=e.target,i=e.value;return{name:"".concat(r," -> ").concat(t),value:i}}},interactions:[{type:"element-active"}],weight:!0,nodePaddingRatio:.1,nodeWidthRatio:.05};function IA(e){var r=e.options,t=r.data,i=r.sourceField,n=r.targetField,a=r.weightField,o=r.nodePaddingRatio,s=r.nodeWidthRatio,l=r.rawFields,u=l===void 0?[]:l,c=sh(t,i,n,a),f=TA({weight:!0,nodePaddingRatio:o,nodeWidthRatio:s},c),v=f.nodes,d=f.links,p=v.map(function(m){return(0,g.__assign)((0,g.__assign)({},$t(m,(0,g.__spreadArray)(["id","x","y","name"],u,!0))),{isNode:!0})}),y=d.map(function(m){return(0,g.__assign)((0,g.__assign)({source:m.source.name,target:m.target.name,name:m.source.name||m.target.name},$t(m,(0,g.__spreadArray)(["x","y","value"],u,!0))),{isNode:!1})});return(0,g.__assign)((0,g.__assign)({},e),{ext:(0,g.__assign)((0,g.__assign)({},e.ext),{chordData:{nodesData:p,edgesData:y}})})}function OA(e){var r,t=e.chart;return t.scale((r={x:{sync:!0,nice:!0},y:{sync:!0,nice:!0,max:1}},r[Tf]={sync:"color"},r[Lf]={sync:"color"},r)),e}function PA(e){var r=e.chart;return r.axis(!1),e}function kA(e){var r=e.chart;return r.legend(!1),e}function DA(e){var r=e.chart,t=e.options,i=t.tooltip;return r.tooltip(i),e}function BA(e){var r=e.chart;return r.coordinate("polar").reflect("y"),e}function RA(e){var r=e.chart,t=e.options,i=e.ext.chordData.nodesData,n=t.nodeStyle,a=t.label,o=t.tooltip,s=r.createView();return s.data(i),_a({chart:s,options:{xField:Ff,yField:Ef,seriesField:Tf,polygon:{style:n},label:a,tooltip:o}}),e}function NA(e){var r=e.chart,t=e.options,i=e.ext.chordData.edgesData,n=t.edgeStyle,a=t.tooltip,o=r.createView();o.data(i);var s={xField:Ff,yField:Ef,seriesField:Lf,edge:{style:n,shape:"arc"},tooltip:a};return wh({chart:o,options:s}),e}function zA(e){var r=e.chart,t=e.options,i=t.animation;return ln(r,i,tb(r)),e}function VA(e){return Et(Xt,IA,BA,OA,PA,kA,DA,NA,RA,oe,Lr,zA)(e)}var hI=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="chord",t}return r.getDefaultOptions=function(){return LA},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.getSchemaAdaptor=function(){return VA},r}(kt),GA=["x","y","r","name","value","path","depth"],WA={colorField:"name",autoFit:!0,pointStyle:{lineWidth:0,stroke:"#fff"},legend:!1,hierarchyConfig:{size:[1,1],padding:0},label:{fields:["name"],layout:{type:"limit-in-shape"}},tooltip:{showMarkers:!1,showTitle:!1},drilldown:{enabled:!1}},If=4,HA=0,Of=5,Pf="drilldown-bread-crumb",YA={position:"top-left",dividerText:"/",textStyle:{fontSize:12,fill:"rgba(0, 0, 0, 0.65)",cursor:"pointer"},activeTextStyle:{fill:"#87B5FF"}},pn="hierarchy-data-transform-params",XA=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.name="drill-down",t.historyCache=[],t.breadCrumbGroup=null,t.breadCrumbCfg=YA,t}return r.prototype.click=function(){var t=(0,h.get)(this.context,["event","data","data"]);if(!t)return!1;this.drill(t),this.drawBreadCrumb()},r.prototype.resetPosition=function(){if(!!this.breadCrumbGroup){var t=this.context.view.getCoordinate(),i=this.breadCrumbGroup,n=i.getBBox(),a=this.getButtonCfg().position,o={x:t.start.x,y:t.end.y-(n.height+Of*2)};t.isPolar&&(o={x:0,y:0}),a==="bottom-left"&&(o={x:t.start.x,y:t.start.y});var s=ke.transform(null,[["t",o.x+HA,o.y+n.height+Of]]);i.setMatrix(s)}},r.prototype.back=function(){(0,h.size)(this.historyCache)&&this.backTo(this.historyCache.slice(0,-1))},r.prototype.reset=function(){this.historyCache[0]&&this.backTo(this.historyCache.slice(0,1)),this.historyCache=[],this.hideCrumbGroup()},r.prototype.drill=function(t){var i=this.context.view,n=(0,h.get)(i,["interactions","drill-down","cfg","transformData"],function(u){return u}),a=n((0,g.__assign)({data:t.data},t[pn]));i.changeData(a);for(var o=[],s=t;s;){var l=s.data;o.unshift({id:"".concat(l.name,"_").concat(s.height,"_").concat(s.depth),name:l.name,children:n((0,g.__assign)({data:l},t[pn]))}),s=s.parent}this.historyCache=(this.historyCache||[]).slice(0,-1).concat(o)},r.prototype.backTo=function(t){if(!(!t||t.length<=0)){var i=this.context.view,n=(0,h.last)(t).children;i.changeData(n),t.length>1?(this.historyCache=t,this.drawBreadCrumb()):(this.historyCache=[],this.hideCrumbGroup())}},r.prototype.getButtonCfg=function(){var t=this.context.view,i=(0,h.get)(t,["interactions","drill-down","cfg","drillDownConfig"]);return O(this.breadCrumbCfg,i==null?void 0:i.breadCrumb,this.cfg)},r.prototype.drawBreadCrumb=function(){this.drawBreadCrumbGroup(),this.resetPosition(),this.breadCrumbGroup.show()},r.prototype.drawBreadCrumbGroup=function(){var t=this,i=this.getButtonCfg(),n=this.historyCache;this.breadCrumbGroup?this.breadCrumbGroup.clear():this.breadCrumbGroup=this.context.view.foregroundGroup.addGroup({name:Pf});var a=0;n.forEach(function(o,s){var l=t.breadCrumbGroup.addShape({type:"text",id:o.id,name:"".concat(Pf,"_").concat(o.name,"_text"),attrs:(0,g.__assign)((0,g.__assign)({text:s===0&&!(0,h.isNil)(i.rootText)?i.rootText:o.name},i.textStyle),{x:a,y:0})}),u=l.getBBox();if(a+=u.width+If,l.on("click",function(v){var d,p=v.target.get("id");if(p!==((d=(0,h.last)(n))===null||d===void 0?void 0:d.id)){var y=n.slice(0,n.findIndex(function(m){return m.id===p})+1);t.backTo(y)}}),l.on("mouseenter",function(v){var d,p=v.target.get("id");p!==((d=(0,h.last)(n))===null||d===void 0?void 0:d.id)?l.attr(i.activeTextStyle):l.attr({cursor:"default"})}),l.on("mouseleave",function(){l.attr(i.textStyle)}),s0&&t*t>i*i+n*n}function Ts(e,r){for(var t=0;tl?(n=(u+l-a)/(2*u),s=Math.sqrt(Math.max(0,l/u-n*n)),t.x=e.x-n*i-s*o,t.y=e.y-n*o+s*i):(n=(u+a-l)/(2*u),s=Math.sqrt(Math.max(0,a/u-n*n)),t.x=r.x+n*i-s*o,t.y=r.y+n*o+s*i)):(t.x=r.x+t.r,t.y=r.y)}function Nf(e,r){var t=e.r+r.r-1e-6,i=r.x-e.x,n=r.y-e.y;return t>0&&t*t>i*i+n*n}function zf(e){var r=e._,t=e.next._,i=r.r+t.r,n=(r.x*t.r+t.x*r.r)/i,a=(r.y*t.r+t.y*r.r)/i;return n*n+a*a}function La(e){this._=e,this.next=null,this.previous=null}function Vf(e){if(!(n=(e=UA(e)).length))return 0;var r,t,i,n,a,o,s,l,u,c,f;if(r=e[0],r.x=0,r.y=0,!(n>1))return r.r;if(t=e[1],r.x=-t.r,t.x=r.r,t.y=0,!(n>2))return r.r+t.r;Rf(t,r,i=e[2]),r=new La(r),t=new La(t),i=new La(i),r.next=i.previous=t,t.next=r.previous=i,i.next=t.previous=r;t:for(s=3;s=0;)r+=t[i].value;e.value=r}function rM(){return this.eachAfter(eM)}var iM=M(64254);function Yf(e,r){var t=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=(0,iM.Z)(e))||r&&e&&typeof e.length=="number"){t&&(e=t);var i=0,n=function(){};return{s:n,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(u){throw u},f:n}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,o=!1,s;return{s:function(){t=t.call(e)},n:function(){var u=t.next();return a=u.done,u},e:function(u){o=!0,s=u},f:function(){try{!a&&t.return!=null&&t.return()}finally{if(o)throw s}}}}function nM(e,r){var t=-1,i=Yf(this),n;try{for(i.s();!(n=i.n()).done;){var a=n.value;e.call(r,a,++t,this)}}catch(o){i.e(o)}finally{i.f()}return this}function aM(e,r){for(var t=this,i=[t],n,a,o=-1;t=i.pop();)if(e.call(r,t,++o,this),n=t.children)for(a=n.length-1;a>=0;--a)i.push(n[a]);return this}function oM(e,r){for(var t=this,i=[t],n=[],a,o,s,l=-1;t=i.pop();)if(n.push(t),a=t.children)for(o=0,s=a.length;o=0;)t+=i[n].value;r.value=t})}function uM(e){return this.eachBefore(function(r){r.children&&r.children.sort(e)})}function cM(e){for(var r=this,t=hM(r,e),i=[r];r!==t;)r=r.parent,i.push(r);for(var n=i.length;e!==t;)i.splice(n,0,e),e=e.parent;return i}function hM(e,r){if(e===r)return e;var t=e.ancestors(),i=r.ancestors(),n=null;for(e=t.pop(),r=i.pop();e===r;)n=e,e=t.pop(),r=i.pop();return n}function fM(){for(var e=this,r=[e];e=e.parent;)r.push(e);return r}function vM(){return Array.from(this)}function dM(){var e=[];return this.eachBefore(function(r){r.children||e.push(r)}),e}function gM(){var e=this,r=[];return e.each(function(t){t!==e&&r.push({source:t.parent,target:t})}),r}var Xf=M(39428),pM=(0,Xf.Z)().mark(Uf);function Uf(){var e,r,t,i,n,a;return(0,Xf.Z)().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:e=this,t=[e];case 1:r=t.reverse(),t=[];case 2:if(!(e=r.pop())){s.next=8;break}return s.next=5,e;case 5:if(i=e.children)for(n=0,a=i.length;n=0;--s)n.push(a=o[s]=new Ei(o[s])),a.parent=i,a.depth=i.depth+1;return t.eachBefore(jf)}function yM(){return Fi(this).eachBefore(_M)}function mM(e){return e.children}function xM(e){return Array.isArray(e)?e[1]:null}function _M(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}function jf(e){var r=0;do e.height=r;while((e=e.parent)&&e.height<++r)}function Ei(e){this.data=e,this.depth=this.height=0,this.parent=null}Ei.prototype=Fi.prototype=(0,tM.Z)({constructor:Ei,count:rM,each:nM,eachAfter:oM,eachBefore:aM,find:sM,sum:lM,sort:uM,path:cM,ancestors:fM,descendants:vM,leaves:dM,links:gM,copy:yM},Symbol.iterator,Uf);var Zf="nodeIndex",qf="childNodeCount",Is="nodeAncestor",Os="Invalid field: it must be a string!";function Ps(e,r){var t=e.field,i=e.fields;if((0,h.isString)(t))return t;if((0,h.isArray)(t))return console.warn(Os),t[0];if(console.warn("".concat(Os," will try to get fields instead.")),(0,h.isString)(i))return i;if((0,h.isArray)(i)&&i.length)return i[0];if(r)return r;throw new TypeError(Os)}function ks(e){var r=[];if(e&&e.each){var t,i;e.each(function(n){var a,o;n.parent!==t?(t=n.parent,i=0):i+=1;var s=(0,h.filter)((((a=n.ancestors)===null||a===void 0?void 0:a.call(n))||[]).map(function(l){return r.find(function(u){return u.name===l.name})||l}),function(l){var u=l.depth;return u>0&&u1;)c="".concat((u=f.parent.data)===null||u===void 0?void 0:u.name," / ").concat(c),f=f.parent;if(a&&l.depth>2)return null;var v=O({},l.data,(0,g.__assign)((0,g.__assign)((0,g.__assign)({},$t(l.data,n)),{path:c}),l));v.ext=t,v[pn]={hierarchyConfig:t,rawFields:n,enableDrillDown:a},s.push(v)}),s}function $f(e,r,t){var i=hs([e,r]),n=i[0],a=i[1],o=i[2],s=i[3],l=t.width,u=t.height,c=l-(s+a),f=u-(n+o),v=Math.min(c,f),d=(c-v)/2,p=(f-v)/2,y=n+p,m=a+d,x=o+p,_=s+d,w=[y,m,x,_],b=v<0?0:v;return{finalPadding:w,finalSize:b}}function SM(e){var r=e.chart,t=Math.min(r.viewBBox.width,r.viewBBox.height);return O({options:{size:function(i){var n=i.r;return n*t}}},e)}function CM(e){var r=e.options,t=e.chart,i=t.viewBBox,n=r.padding,a=r.appendPadding,o=r.drilldown,s=a;if(o==null?void 0:o.enabled){var l=va(t.appendPadding,(0,h.get)(o,["breadCrumb","position"]));s=hs([l,a])}var u=$f(n,s,i).finalPadding;return t.padding=u,t.appendPadding=0,e}function AM(e){var r=e.chart,t=e.options,i=r.padding,n=r.appendPadding,a=t.color,o=t.colorField,s=t.pointStyle,l=t.hierarchyConfig,u=t.sizeField,c=t.rawFields,f=c===void 0?[]:c,v=t.drilldown,d=Kf({data:t.data,hierarchyConfig:l,enableDrillDown:v==null?void 0:v.enabled,rawFields:f});r.data(d);var p=r.viewBBox,y=$f(i,n,p).finalSize,m=function(x){var _=x.r;return _*y};return u&&(m=function(x){return x[u]*y}),Ge(O({},e,{options:{xField:"x",yField:"y",seriesField:o,sizeField:u,rawFields:(0,g.__spreadArray)((0,g.__spreadArray)([],GA,!0),f,!0),point:{color:a,style:s,shape:"circle",size:m}}})),e}function MM(e){return Et(he({},{x:{min:0,max:1,minLimit:0,maxLimit:1,nice:!0},y:{min:0,max:1,minLimit:0,maxLimit:1,nice:!0}}))(e)}function FM(e){var r=e.chart,t=e.options,i=t.tooltip;if(i===!1)r.tooltip(!1);else{var n=i;(0,h.get)(i,"fields")||(n=O({},{customItems:function(a){return a.map(function(o){var s=(0,h.get)(r.getOptions(),"scales"),l=(0,h.get)(s,["name","formatter"],function(c){return c}),u=(0,h.get)(s,["value","formatter"],function(c){return c});return(0,g.__assign)((0,g.__assign)({},o),{name:l(o.data.name),value:u(o.data.value)})})}},n)),r.tooltip(n)}return e}function EM(e){var r=e.chart;return r.axis(!1),e}function TM(e){var r=e.drilldown,t=e.interactions,i=t===void 0?[]:t;return(r==null?void 0:r.enabled)?O({},e,{interactions:(0,g.__spreadArray)((0,g.__spreadArray)([],i,!0),[{type:"drill-down",cfg:{drillDownConfig:r,transformData:Kf,enableDrillDown:!0}}],!1)}):e}function LM(e){var r=e.chart,t=e.options;return oe({chart:r,options:TM(t)}),e}function IM(e){return Et(Ve("pointStyle"),SM,CM,Xt,MM,AM,EM,Ur,FM,LM,Qt,le())(e)}function Qf(e){var r=(0,h.get)(e,["event","data","data"],{});return(0,h.isArray)(r.children)&&r.children.length>0}function Jf(e){var r=e.view.getCoordinate(),t=r.innerRadius;if(t){var i=e.event,n=i.x,a=i.y,o=r.center,s=o.x,l=o.y,u=r.getRadius()*t,c=Math.sqrt(Math.pow(s-n,2)+Math.pow(l-a,2));return c-1?rb(p,f,v):!0}),e.getRootView().render(!0)}};function DM(e){var r,t=e.options,i=t.geometryOptions,n=i===void 0?[]:i,a=t.xField,o=t.yField,s=(0,h.every)(n,function(l){var u=l.geometry;return u===ti.Line||u===void 0});return O({},{options:{geometryOptions:[],meta:(r={},r[a]={type:"cat",sync:!0,range:s?[0,1]:void 0},r),tooltip:{showMarkers:s,showCrosshairs:s,shared:!0,crosshairs:{type:"x"}},interactions:s?[{type:"legend-visible-filter"}]:[{type:"legend-visible-filter"},{type:"active-region"}],legend:{position:"top-left"}}},e,{options:{yAxis:rv(o,t.yAxis),geometryOptions:[ev(a,o[0],n[0]),ev(a,o[1],n[1])],annotations:rv(o,t.annotations)}})}function BM(e){var r,t,i=e.chart,n=e.options,a=n.geometryOptions,o={line:0,column:1},s=[{type:(r=a[0])===null||r===void 0?void 0:r.geometry,id:We},{type:(t=a[1])===null||t===void 0?void 0:t.geometry,id:He}];return s.sort(function(l,u){return-o[l.type]+o[u.type]}).forEach(function(l){return i.createView({id:l.id})}),e}function RM(e){var r=e.chart,t=e.options,i=t.xField,n=t.yField,a=t.geometryOptions,o=t.data,s=t.tooltip,l=[(0,g.__assign)((0,g.__assign)({},a[0]),{id:We,data:o[0],yField:n[0]}),(0,g.__assign)((0,g.__assign)({},a[1]),{id:He,data:o[1],yField:n[1]})];return l.forEach(function(u){var c=u.id,f=u.data,v=u.yField,d=Bs(u)&&u.isPercent,p=d?Ch(f,v,i,v):f,y=Nt(r,c).data(p),m=d?(0,g.__assign)({formatter:function(x){return{name:x[u.seriesField]||v,value:(Number(x[v])*100).toFixed(2)+"%"}}},s):s;kM({chart:y,options:{xField:i,yField:v,tooltip:m,geometryOption:u}})}),e}function NM(e){var r,t=e.chart,i=e.options,n=i.geometryOptions,a=((r=t.getTheme())===null||r===void 0?void 0:r.colors10)||[],o=0;return t.once("beforepaint",function(){(0,h.each)(n,function(s,l){var u=Nt(t,l===0?We:He);if(!s.color){var c=u.getGroupScales(),f=(0,h.get)(c,[0,"values","length"],1),v=a.slice(o,o+f).concat(l===0?[]:a);u.geometries.forEach(function(d){s.seriesField?d.color(s.seriesField,v):d.color(v[0])}),o+=f}}),t.render(!0)}),e}function zM(e){var r,t,i=e.chart,n=e.options,a=n.xAxis,o=n.yAxis,s=n.xField,l=n.yField;return he((r={},r[s]=a,r[l[0]]=o[0],r))(O({},e,{chart:Nt(i,We)})),he((t={},t[s]=a,t[l[1]]=o[1],t))(O({},e,{chart:Nt(i,He)})),e}function VM(e){var r=e.chart,t=e.options,i=Nt(r,We),n=Nt(r,He),a=t.xField,o=t.yField,s=t.xAxis,l=t.yAxis;return r.axis(a,!1),r.axis(o[0],!1),r.axis(o[1],!1),i.axis(a,s),i.axis(o[0],iv(l[0],Ti.Left)),n.axis(a,!1),n.axis(o[1],iv(l[1],Ti.Right)),e}function GM(e){var r=e.chart,t=e.options,i=t.tooltip,n=Nt(r,We),a=Nt(r,He);return r.tooltip(i),n.tooltip({shared:!0}),a.tooltip({shared:!0}),e}function WM(e){var r=e.chart;return oe(O({},e,{chart:Nt(r,We)})),oe(O({},e,{chart:Nt(r,He)})),e}function HM(e){var r=e.chart,t=e.options,i=t.annotations,n=(0,h.get)(i,[0]),a=(0,h.get)(i,[1]);return le(n)(O({},e,{chart:Nt(r,We),options:{annotations:n}})),le(a)(O({},e,{chart:Nt(r,He),options:{annotations:a}})),e}function YM(e){var r=e.chart;return Xt(O({},e,{chart:Nt(r,We)})),Xt(O({},e,{chart:Nt(r,He)})),Xt(e),e}function XM(e){var r=e.chart;return Qt(O({},e,{chart:Nt(r,We)})),Qt(O({},e,{chart:Nt(r,He)})),e}function UM(e){var r=e.chart,t=e.options,i=t.yAxis;return jr(O({},e,{chart:Nt(r,We),options:{yAxis:i[0]}})),jr(O({},e,{chart:Nt(r,He),options:{yAxis:i[1]}})),e}function jM(e){var r=e.chart,t=e.options,i=t.legend,n=t.geometryOptions,a=t.yField,o=t.data,s=Nt(r,We),l=Nt(r,He);if(i===!1)r.legend(!1);else if((0,h.isObject)(i)&&i.custom===!0)r.legend(i);else{var u=(0,h.get)(n,[0,"legend"],i),c=(0,h.get)(n,[1,"legend"],i);r.once("beforepaint",function(){var f=o[0].length?nv({view:s,geometryOption:n[0],yField:a[0],legend:u}):[],v=o[1].length?nv({view:l,geometryOption:n[1],yField:a[1],legend:c}):[];r.legend(O({},i,{custom:!0,items:f.concat(v)}))}),n[0].seriesField&&s.legend(n[0].seriesField,u),n[1].seriesField&&l.legend(n[1].seriesField,c),r.on("legend-item:click",function(f){var v=(0,h.get)(f,"gEvent.delegateObject",{});if(v&&v.item){var d=v.item,p=d.value,y=d.isGeometry,m=d.viewId;if(y){var x=(0,h.findIndex)(a,function(b){return b===p});if(x>-1){var _=(0,h.get)(Nt(r,m),"geometries");(0,h.each)(_,function(b){b.changeVisible(!v.item.unchecked)})}}else{var w=(0,h.get)(r.getController("legend"),"option.items",[]);(0,h.each)(r.views,function(b){var S=b.getGroupScales();(0,h.each)(S,function(C){C.values&&C.values.indexOf(p)>-1&&b.filter(C.field,function(A){var F=(0,h.find)(w,function(P){return P.value===A});return!F.unchecked})}),r.render(!0)})}}})}return e}function ZM(e){var r=e.chart,t=e.options,i=t.slider,n=Nt(r,We),a=Nt(r,He);return i&&(n.option("slider",i),n.on("slider:valuechanged",function(o){var s=o.event,l=s.value,u=s.originValue;(0,h.isEqual)(l,u)||av(a,l)}),r.once("afterpaint",function(){if(!(0,h.isBoolean)(i)){var o=i.start,s=i.end;(o||s)&&av(a,[o,s])}})),e}function qM(e){return Et(DM,BM,YM,RM,zM,VM,UM,GM,WM,HM,XM,NM,jM,ZM)(e)}var vI=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="dual-axes",t}return r.prototype.getDefaultOptions=function(){return O({},e.prototype.getDefaultOptions.call(this),{yAxis:[],syncViewPadding:!0})},r.prototype.getSchemaAdaptor=function(){return qM},r}(kt);function KM(e,r){var t=r.data,i=r.coordinate,n=r.interactions,a=r.annotations,o=r.animation,s=r.tooltip,l=r.axes,u=r.meta,c=r.geometries;t&&e.data(t);var f={};l&&(0,h.each)(l,function(v,d){f[d]=$t(v,Be)}),f=O({},u,f),e.scale(f),i&&e.coordinate(i),l===!1?e.axis(!1):(0,h.each)(l,function(v,d){e.axis(d,v)}),(0,h.each)(c,function(v){var d=Re({chart:e,options:v}).ext,p=v.adjust;p&&d.geometry.adjust(p)}),(0,h.each)(n,function(v){v.enable===!1?e.removeInteraction(v.type):e.interaction(v.type,v.cfg)}),(0,h.each)(a,function(v){e.annotation()[v.type]((0,g.__assign)({},v))}),ln(e,o),s?(e.interaction("tooltip"),e.tooltip(s)):s===!1&&e.removeInteraction("tooltip")}function $M(e){var r=e.chart,t=e.options,i=t.type,n=t.data,a=t.fields,o=t.eachView,s=(0,h.omit)(t,["type","data","fields","eachView","axes","meta","tooltip","coordinate","theme","legend","interactions","annotations"]);return r.data(n),r.facet(i,(0,g.__assign)((0,g.__assign)({},s),{fields:a,eachView:function(l,u){var c=o(l,u);if(c.geometries)KM(l,c);else{var f=c,v=f.options;v.tooltip&&l.interaction("tooltip"),Fs(f.type,l,v)}}})),e}function QM(e){var r=e.chart,t=e.options,i=t.axes,n=t.meta,a=t.tooltip,o=t.coordinate,s=t.theme,l=t.legend,u=t.interactions,c=t.annotations,f={};return i&&(0,h.each)(i,function(v,d){f[d]=$t(v,Be)}),f=O({},n,f),r.scale(f),r.coordinate(o),i?(0,h.each)(i,function(v,d){r.axis(d,v)}):r.axis(!1),a?(r.interaction("tooltip"),r.tooltip(a)):a===!1&&r.removeInteraction("tooltip"),r.legend(l),s&&r.theme(s),(0,h.each)(u,function(v){v.enable===!1?r.removeInteraction(v.type):r.interaction(v.type,v.cfg)}),(0,h.each)(c,function(v){r.annotation()[v.type]((0,g.__assign)({},v))}),e}function JM(e){return Et(Xt,$M,QM)(e)}var tF={title:{style:{fontSize:12,fill:"rgba(0,0,0,0.65)"}},rowTitle:{style:{fontSize:12,fill:"rgba(0,0,0,0.65)"}},columnTitle:{style:{fontSize:12,fill:"rgba(0,0,0,0.65)"}}},dI=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="area",t}return r.getDefaultOptions=function(){return tF},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.getSchemaAdaptor=function(){return JM},r}(kt);function eF(e){var r=e.chart,t=e.options,i=t.data,n=t.type,a=t.xField,o=t.yField,s=t.colorField,l=t.sizeField,u=t.sizeRatio,c=t.shape,f=t.color,v=t.tooltip,d=t.heatmapStyle,p=t.meta;r.data(i);var y="polygon";n==="density"&&(y="heatmap");var m=Ye(v,[a,o,s]),x=m.fields,_=m.formatter,w=1;return(u||u===0)&&(!c&&!l?console.warn("sizeRatio is not in effect: Must define shape or sizeField first"):u<0||u>1?console.warn("sizeRatio is not in effect: It must be a number in [0,1]"):w=u),Re(O({},e,{options:{type:y,colorField:s,tooltipFields:x,shapeField:l||"",label:void 0,mapping:{tooltip:_,shape:c&&(l?function(b){var S=i.map(function(P){return P[l]}),C=(p==null?void 0:p[l])||{},A=C.min,F=C.max;return A=(0,h.isNumber)(A)?A:Math.min.apply(Math,S),F=(0,h.isNumber)(F)?F:Math.max.apply(Math,S),[c,((0,h.get)(b,l)-A)/(F-A),w]}:function(){return[c,1,w]}),color:f||s&&r.getTheme().sequenceColors.join("-"),style:d}}})),e}function rF(e){var r,t=e.options,i=t.xAxis,n=t.yAxis,a=t.xField,o=t.yField;return Et(he((r={},r[a]=i,r[o]=n,r)))(e)}function iF(e){var r=e.chart,t=e.options,i=t.xAxis,n=t.yAxis,a=t.xField,o=t.yField;return i===!1?r.axis(a,!1):r.axis(a,i),n===!1?r.axis(o,!1):r.axis(o,n),e}function nF(e){var r=e.chart,t=e.options,i=t.legend,n=t.colorField,a=t.sizeField,o=t.sizeLegend,s=i!==!1;return n&&r.legend(n,s?i:!1),a&&r.legend(a,o===void 0?i:o),!s&&!o&&r.legend(!1),e}function aF(e){var r=e.chart,t=e.options,i=t.label,n=t.colorField,a=t.type,o=Me(r,a==="density"?"heatmap":"polygon");if(!i)o.label(!1);else if(n){var s=i.callback,l=(0,g.__rest)(i,["callback"]);o.label({fields:[n],callback:s,cfg:be(l)})}return e}function oF(e){var r,t,i=e.chart,n=e.options,a=n.coordinate,o=n.reflect,s=O({actions:[]},a!=null?a:{type:"rect"});return o&&((t=(r=s.actions)===null||r===void 0?void 0:r.push)===null||t===void 0||t.call(r,["reflect",o])),i.coordinate(s),e}function sF(e){return Et(Xt,Ve("heatmapStyle"),rF,oF,eF,iF,nF,me,aF,le(),oe,Qt,Lr)(e)}var lF=O({},kt.getDefaultOptions(),{type:"polygon",legend:!1,coordinate:{type:"rect"},xAxis:{tickLine:null,line:null,grid:{alignTick:!1,line:{style:{lineWidth:1,lineDash:null,stroke:"#f0f0f0"}}}},yAxis:{grid:{alignTick:!1,line:{style:{lineWidth:1,lineDash:null,stroke:"#f0f0f0"}}}}});Zt("polygon","circle",{draw:function(e,r){var t,i,n=e.x,a=e.y,o=this.parsePoints(e.points),s=Math.abs(o[2].x-o[1].x),l=Math.abs(o[1].y-o[0].y),u=Math.min(s,l)/2,c=Number(e.shape[1]),f=Number(e.shape[2]),v=Math.sqrt(f),d=u*v*Math.sqrt(c),p=((t=e.style)===null||t===void 0?void 0:t.fill)||e.color||((i=e.defaultStyle)===null||i===void 0?void 0:i.fill),y=r.addShape("circle",{attrs:(0,g.__assign)((0,g.__assign)((0,g.__assign)({x:n,y:a,r:d},e.defaultStyle),e.style),{fill:p})});return y}}),Zt("polygon","square",{draw:function(e,r){var t,i,n=e.x,a=e.y,o=this.parsePoints(e.points),s=Math.abs(o[2].x-o[1].x),l=Math.abs(o[1].y-o[0].y),u=Math.min(s,l),c=Number(e.shape[1]),f=Number(e.shape[2]),v=Math.sqrt(f),d=u*v*Math.sqrt(c),p=((t=e.style)===null||t===void 0?void 0:t.fill)||e.color||((i=e.defaultStyle)===null||i===void 0?void 0:i.fill),y=r.addShape("rect",{attrs:(0,g.__assign)((0,g.__assign)((0,g.__assign)({x:n-d/2,y:a-d/2,width:d,height:d},e.defaultStyle),e.style),{fill:p})});return y}});var gI=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="heatmap",t}return r.getDefaultOptions=function(){return lF},r.prototype.getSchemaAdaptor=function(){return sF},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r}(kt),uF="liquid";function ov(e){return[{percent:e,type:uF}]}function cF(e){var r=e.chart,t=e.options,i=t.percent,n=t.liquidStyle,a=t.radius,o=t.outline,s=t.wave,l=t.shape,u=t.shapeStyle,c=t.animation;r.scale({percent:{min:0,max:1}}),r.data(ov(i));var f=t.color||r.getTheme().defaultColor,v=O({},e,{options:{xField:"type",yField:"percent",widthRatio:a,interval:{color:f,style:n,shape:"liquid-fill-gauge"}}}),d=Fe(v).ext,p=d.geometry,y=r.getTheme().background,m={percent:i,radius:a,outline:o,wave:s,shape:l,shapeStyle:u,background:y,animation:c};return p.customInfo(m),r.legend(!1),r.axis(!1),r.tooltip(!1),e}function sv(e,r){var t=e.chart,i=e.options,n=i.statistic,a=i.percent,o=i.meta;t.getController("annotation").clear(!0);var s=(0,h.get)(o,["percent","formatter"])||function(u){return"".concat((u*100).toFixed(2),"%")},l=n.content;return l&&(l=O({},l,{content:(0,h.isNil)(l.content)?s(a):l.content})),da(t,{statistic:(0,g.__assign)((0,g.__assign)({},n),{content:l}),plotType:"liquid"},{percent:a}),r&&t.render(!0),e}function hF(e){return Et(Xt,Ve("liquidStyle"),cF,sv,he({}),Qt,oe)(e)}var fF={radius:.9,statistic:{title:!1,content:{style:{opacity:.75,fontSize:"30px",lineHeight:"30px",textAlign:"center"}}},outline:{border:2,distance:0},wave:{count:3,length:192},shape:"circle"},lv=5e3;function uv(e,r,t){return e+(r-e)*t}function vF(e){var r=(0,g.__assign)({opacity:1},e.style);return e.color&&!r.fill&&(r.fill=e.color),r}function dF(e){var r={fill:"#fff",fillOpacity:0,lineWidth:4},t=(0,h.mix)({},r,e.style);return e.color&&!t.stroke&&(t.stroke=e.color),(0,h.isNumber)(e.opacity)&&(t.opacity=t.strokeOpacity=e.opacity),t}function gF(e,r,t,i){return r===0?[[e+1/2*t/Math.PI/2,i/2],[e+1/2*t/Math.PI,i],[e+t/4,i]]:r===1?[[e+1/2*t/Math.PI/2*(Math.PI-2),i],[e+1/2*t/Math.PI/2*(Math.PI-1),i/2],[e+t/4,0]]:r===2?[[e+1/2*t/Math.PI/2,-i/2],[e+1/2*t/Math.PI,-i],[e+t/4,-i]]:[[e+1/2*t/Math.PI/2*(Math.PI-2),-i],[e+1/2*t/Math.PI/2*(Math.PI-1),-i/2],[e+t/4,0]]}function pF(e,r,t,i,n,a,o){for(var s=Math.ceil(2*e/t*4)*4,l=[],u=i;u<-Math.PI*2;)u+=Math.PI*2;for(;u>0;)u-=Math.PI*2;u=u/Math.PI/2*t;var c=a-e+u-e*2;l.push(["M",c,r]);for(var f=0,v=0;v0){var Z=r.addGroup({name:"waves"}),vt=Z.setClip({type:"path",attrs:{path:V}});yF(w.x,w.y,1-e.points[1].y,m,A,Z,vt,C*2,x,f)}return r.addShape("path",{name:"distance",attrs:{path:V,fill:"transparent",lineWidth:p+y*2,stroke:c==="transparent"?"#fff":c}}),r.addShape("path",{name:"wrap",attrs:(0,h.mix)(F,{path:V,fill:"transparent",lineWidth:p})}),r}});var pI=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="liquid",t}return r.getDefaultOptions=function(){return fF},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.changeData=function(t){this.chart.emit(L.BEFORE_CHANGE_DATA,ue.fromData(this.chart,L.BEFORE_CHANGE_DATA,null)),this.updateOption({percent:t}),this.chart.data(ov(t)),sv({chart:this.chart,options:this.options},!0),this.chart.emit(L.AFTER_CHANGE_DATA,ue.fromData(this.chart,L.AFTER_CHANGE_DATA,null))},r.prototype.getSchemaAdaptor=function(){return hF},r}(kt);function SF(e){var r=e.chart,t=e.options,i=t.data,n=t.lineStyle,a=t.color,o=t.point,s=t.area;r.data(i);var l=O({},e,{options:{line:{style:n,color:a},point:o&&(0,g.__assign)({color:a},o),area:s&&(0,g.__assign)({color:a},s),label:void 0}}),u=O({},l,{options:{tooltip:!1}}),c=(o==null?void 0:o.state)||t.state,f=O({},l,{options:{tooltip:!1,state:c}});return wi(l),Ge(f),xa(u),e}function CF(e){var r,t=e.options,i=t.xAxis,n=t.yAxis,a=t.xField,o=t.yField;return Et(he((r={},r[a]=i,r[o]=n,r)))(e)}function AF(e){var r=e.chart,t=e.options,i=t.radius,n=t.startAngle,a=t.endAngle;return r.coordinate("polar",{radius:i,startAngle:n,endAngle:a}),e}function MF(e){var r=e.chart,t=e.options,i=t.xField,n=t.xAxis,a=t.yField,o=t.yAxis;return r.axis(i,n),r.axis(a,o),e}function FF(e){var r=e.chart,t=e.options,i=t.label,n=t.yField,a=Me(r,"line");if(!i)a.label(!1);else{var o=i.callback,s=(0,g.__rest)(i,["callback"]);a.label({fields:[n],callback:o,cfg:be(s)})}return e}function EF(e){return Et(SF,CF,Xt,AF,MF,Ur,me,FF,oe,Qt,le())(e)}var TF=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(r.prototype,"name",{get:function(){return"radar-tooltip"},enumerable:!1,configurable:!0}),r.prototype.getTooltipItems=function(t){var i=this.getTooltipCfg(),n=i.shared,a=i.title,o=e.prototype.getTooltipItems.call(this,t);if(o.length>0){var s=this.view.geometries[0],l=s.dataArray,u=o[0].name,c=[];return l.forEach(function(f){f.forEach(function(v){var d=ke.getTooltipItems(v,s),p=d[0];if(!n&&p&&p.name===u){var y=(0,h.isNil)(a)?u:a;c.push((0,g.__assign)((0,g.__assign)({},p),{name:p.title,title:y}))}else if(n&&p){var y=(0,h.isNil)(a)?p.name||u:a;c.push((0,g.__assign)((0,g.__assign)({},p),{name:p.title,title:y}))}})}),c}return[]},r}(Eu);Vr("radar-tooltip",TF);var LF=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.init=function(){var t=this.context.view;t.removeInteraction("tooltip")},r.prototype.show=function(){var t=this.context.event,i=this.getTooltipController();i.showTooltip({x:t.x,y:t.y})},r.prototype.hide=function(){var t=this.getTooltipController();t.hideTooltip()},r.prototype.getTooltipController=function(){var t=this.context.view;return t.getController("radar-tooltip")},r}(ne);xt("radar-tooltip",LF),Ot("radar-tooltip",{start:[{trigger:"plot:mousemove",action:"radar-tooltip:show"}],end:[{trigger:"plot:mouseleave",action:"radar-tooltip:hide"}]});var yI=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="radar",t}return r.prototype.changeData=function(t){this.updateOption({data:t}),this.chart.changeData(t)},r.prototype.getDefaultOptions=function(){return O({},e.prototype.getDefaultOptions.call(this),{xAxis:{label:{offset:15},grid:{line:{type:"line"}}},yAxis:{grid:{line:{type:"circle"}}},legend:{position:"top"},tooltip:{shared:!0,showCrosshairs:!0,showMarkers:!0,crosshairs:{type:"xy",line:{style:{stroke:"#565656",lineDash:[4]}},follow:!0}}})},r.prototype.getSchemaAdaptor=function(){return EF},r}(kt);function IF(e,r,t){var i=t.map(function(o){return o[r]}).filter(function(o){return o!==void 0}),n=i.length>0?Math.max.apply(Math,i):0,a=Math.abs(e)%360;return a?n*360/a:n}function OF(e,r,t){var i=[];return e.forEach(function(n){var a=i.find(function(o){return o[r]===n[r]});a?a[t]+=n[t]||null:i.push((0,g.__assign)({},n))}),i}function PF(e){var r=e.chart,t=e.options,i=t.barStyle,n=t.color,a=t.tooltip,o=t.colorField,s=t.type,l=t.xField,u=t.yField,c=t.data,f=t.shape,v=xi(c,u);r.data(v);var d=O({},e,{options:{tooltip:a,seriesField:o,interval:{style:i,color:n,shape:f||(s==="line"?"line":"intervel")},minColumnWidth:t.minBarWidth,maxColumnWidth:t.maxBarWidth,columnBackground:t.barBackground}});return Fe(d),s==="line"&&Ge({chart:r,options:{xField:l,yField:u,seriesField:o,point:{shape:"circle",color:n}}}),e}function hv(e){var r,t=e.options,i=t.yField,n=t.xField,a=t.data,o=t.isStack,s=t.isGroup,l=t.colorField,u=t.maxAngle,c=o&&!s&&l?OF(a,n,i):a,f=xi(c,i);return Et(he((r={},r[i]={min:0,max:IF(u,i,f)},r)))(e)}function kF(e){var r=e.chart,t=e.options,i=t.radius,n=t.innerRadius,a=t.startAngle,o=t.endAngle;return r.coordinate({type:"polar",cfg:{radius:i,innerRadius:n,startAngle:a,endAngle:o}}).transpose(),e}function DF(e){var r=e.chart,t=e.options,i=t.xField,n=t.xAxis;return r.axis(i,n),e}function BF(e){var r=e.chart,t=e.options,i=t.label,n=t.yField,a=Me(r,"interval");if(!i)a.label(!1);else{var o=i.callback,s=(0,g.__rest)(i,["callback"]);a.label({fields:[n],callback:o,cfg:(0,g.__assign)((0,g.__assign)({},be(s)),{type:"polar"})})}return e}function RF(e){return Et(Ve("barStyle"),PF,hv,DF,kF,oe,Qt,Xt,me,Ur,le(),BF)(e)}var NF=O({},kt.getDefaultOptions(),{interactions:[{type:"element-active"}],legend:!1,tooltip:{showMarkers:!1},xAxis:{grid:null,tickLine:null,line:null},maxAngle:240}),mI=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="radial-bar",t}return r.getDefaultOptions=function(){return NF},r.prototype.changeData=function(t){this.updateOption({data:t}),hv({chart:this.chart,options:this.options}),this.chart.changeData(t)},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.getSchemaAdaptor=function(){return RF},r}(kt);function zF(e){var r=e.chart,t=e.options,i=t.data,n=t.sectorStyle,a=t.shape,o=t.color;return r.data(i),Et(Fe)(O({},e,{options:{marginRatio:1,interval:{style:n,color:o,shape:a}}})),e}function VF(e){var r=e.chart,t=e.options,i=t.label,n=t.xField,a=Me(r,"interval");if(i===!1)a.label(!1);else if((0,h.isObject)(i)){var o=i.callback,s=i.fields,l=(0,g.__rest)(i,["callback","fields"]),u=l.offset,c=l.layout;(u===void 0||u>=0)&&(c=c?(0,h.isArray)(c)?c:[c]:[],l.layout=(0,h.filter)(c,function(f){return f.type!=="limit-in-shape"}),l.layout.length||delete l.layout),a.label({fields:s||[n],callback:o,cfg:be(l)})}else fr(qe.WARN,i===null,"the label option must be an Object."),a.label({fields:[n]});return e}function GF(e){var r=e.chart,t=e.options,i=t.legend,n=t.seriesField;return i===!1?r.legend(!1):n&&r.legend(n,i),e}function WF(e){var r=e.chart,t=e.options,i=t.radius,n=t.innerRadius,a=t.startAngle,o=t.endAngle;return r.coordinate({type:"polar",cfg:{radius:i,innerRadius:n,startAngle:a,endAngle:o}}),e}function HF(e){var r,t=e.options,i=t.xAxis,n=t.yAxis,a=t.xField,o=t.yField;return Et(he((r={},r[a]=i,r[o]=n,r)))(e)}function YF(e){var r=e.chart,t=e.options,i=t.xAxis,n=t.yAxis,a=t.xField,o=t.yField;return i?r.axis(a,i):r.axis(a,!1),n?r.axis(o,n):r.axis(o,!1),e}function XF(e){Et(Ve("sectorStyle"),zF,HF,VF,WF,YF,GF,me,oe,Qt,Xt,le(),Lr)(e)}var UF=O({},kt.getDefaultOptions(),{xAxis:!1,yAxis:!1,legend:{position:"right",radio:{}},sectorStyle:{stroke:"#fff",lineWidth:1},label:{layout:{type:"limit-in-shape"}},tooltip:{shared:!0,showMarkers:!1},interactions:[{type:"active-region"}]}),xI=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="rose",t}return r.getDefaultOptions=function(){return UF},r.prototype.changeData=function(t){this.updateOption({data:t}),this.chart.changeData(t)},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.getSchemaAdaptor=function(){return XF},r}(kt),fv="x",vv="y",dv="name",Oa="nodes",Pa="edges";function jF(e,r,t){var i=[];return e.forEach(function(n){var a=n[r],o=n[t];i.includes(a)||i.push(a),i.includes(o)||i.push(o)}),i}function ZF(e,r,t,i){var n={};return r.forEach(function(a){n[a]={},r.forEach(function(o){n[a][o]=0})}),e.forEach(function(a){n[a[t]][a[i]]=1}),n}function qF(e,r,t){if(!(0,h.isArray)(e))return[];var i=[],n=jF(e,r,t),a=ZF(e,n,r,t),o={};n.forEach(function(l){o[l]=0});function s(l){o[l]=1,n.forEach(function(u){if(a[l][u]!=0)if(o[u]==1)i.push("".concat(l,"_").concat(u));else{if(o[u]==-1)return;s(u)}}),o[l]=-1}return n.forEach(function(l){o[l]!=-1&&s(l)}),i.length!==0&&console.warn("sankey data contains circle, ".concat(i.length," records removed."),i),e.filter(function(l){return i.findIndex(function(u){return u==="".concat(l[r],"_").concat(l[t])})<0})}function KF(e){return e.target.depth}function $F(e){return e.depth}function QF(e,r){return r-1-e.height}function Rs(e,r){return e.sourceLinks.length?e.depth:r-1}function JF(e){return e.targetLinks.length?e.depth:e.sourceLinks.length?(0,h.minBy)(e.sourceLinks,KF)-1:0}function ka(e){return function(){return e}}function Ns(e,r){for(var t=0,i=0;imt)throw new Error("circular link");ut=pt,pt=new Set}if(u)for(var Gt=Math.max(zs(at,function(Ht){return Ht.depth})+1,0),Wt=void 0,Dt=0;Dtmt)throw new Error("circular link");ut=pt,pt=new Set}}function b(G){for(var at=G.nodes,mt=Math.max(zs(at,function(ye){return ye.depth})+1,0),ut=(t-e-n)/(mt-1),pt=new Array(mt).fill(0).map(function(){return[]}),At=0,Gt=at;At0){var Ii=(Ht/Jt-Dt.y0)*at;Dt.y0+=Ii,Dt.y1+=Ii,Z(Dt)}}c===void 0&&At.sort(Da),At.length&&P(At,mt)}}function F(G,at,mt){for(var ut=G.length,pt=ut-2;pt>=0;--pt){for(var At=G[pt],Gt=0,Wt=At;Gt0){var Ii=(Ht/Jt-Dt.y0)*at;Dt.y0+=Ii,Dt.y1+=Ii,Z(Dt)}}c===void 0&&At.sort(Da),At.length&&P(At,mt)}}function P(G,at){var mt=G.length>>1,ut=G[mt];V(G,ut.y0-o,mt-1,at),I(G,ut.y1+o,mt+1,at),V(G,i,G.length-1,at),I(G,r,0,at)}function I(G,at,mt,ut){for(;mt1e-6&&(pt.y0+=At,pt.y1+=At),at=pt.y1+o}}function V(G,at,mt,ut){for(;mt>=0;--mt){var pt=G[mt],At=(pt.y1-at)*ut;At>1e-6&&(pt.y0-=At,pt.y1-=At),at=pt.y0-o}}function Z(G){var at=G.sourceLinks,mt=G.targetLinks;if(f===void 0){for(var ut=0,pt=mt;ut "+n,value:a}}},nodeWidthRatio:.008,nodePaddingRatio:.01,animation:{appear:{animation:"wave-in"},enter:{animation:"wave-in"}}}},r.prototype.changeData=function(t){this.updateOption({data:t});var i=xv(this.options,this.chart.width,this.chart.height),n=i.nodes,a=i.edges,o=Nt(this.chart,Oa),s=Nt(this.chart,Pa);o.changeData(n),s.changeData(a)},r.prototype.getSchemaAdaptor=function(){return mE},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r}(kt),Gs="ancestor-node",_v="value",mn="path",_E=[mn,Zf,Is,qf,"name","depth","height"],wE=O({},kt.getDefaultOptions(),{innerRadius:0,radius:.85,hierarchyConfig:{field:"value"},tooltip:{shared:!0,showMarkers:!1,offset:20,showTitle:!1},legend:!1,sunburstStyle:{lineWidth:.5,stroke:"#FFF"},drilldown:{enabled:!0}});function wv(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function xn(e,r,t,i,n){for(var a=e.children,o,s=-1,l=a.length,u=e.value&&(i-r)/e.value;++s0)throw new Error("cycle");return l}return t.id=function(i){return arguments.length?(e=Ia(i),t):e},t.parentId=function(i){return arguments.length?(r=Ia(i),t):r},t}function BE(e,r){return e.parent===r.parent?1:2}function Ws(e){var r=e.children;return r?r[0]:e.t}function Hs(e){var r=e.children;return r?r[r.length-1]:e.t}function RE(e,r,t){var i=t/(r.i-e.i);r.c-=i,r.s+=t,e.c+=i,r.z+=t,r.m+=t}function NE(e){for(var r=0,t=0,i=e.children,n=i.length,a;--n>=0;)a=i[n],a.z+=r,a.m+=r,r+=a.s+(t+=a.c)}function zE(e,r,t){return e.a.parent===r.parent?e.a:t}function Ba(e,r){this._=e,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=r}Ba.prototype=Object.create(Ei.prototype);function VE(e){for(var r=new Ba(e,0),t,i=[r],n,a,o,s;t=i.pop();)if(a=t._.children)for(t.children=new Array(s=a.length),o=s-1;o>=0;--o)i.push(n=t.children[o]=new Ba(a[o],o)),n.parent=t;return(r.parent=new Ba(null,0)).children=[r],r}function GE(){var e=BE,r=1,t=1,i=null;function n(u){var c=VE(u);if(c.eachAfter(a),c.parent.m=-c.z,c.eachBefore(o),i)u.eachBefore(l);else{var f=u,v=u,d=u;u.eachBefore(function(_){_.xv.x&&(v=_),_.depth>d.depth&&(d=_)});var p=f===v?1:e(f,v)/2,y=p-f.x,m=r/(v.x+p+y),x=t/(d.depth||1);u.eachBefore(function(_){_.x=(_.x+y)*m,_.y=_.depth*x})}return u}function a(u){var c=u.children,f=u.parent.children,v=u.i?f[u.i-1]:null;if(c){NE(u);var d=(c[0].z+c[c.length-1].z)/2;v?(u.z=v.z+e(u._,v._),u.m=u.z-d):u.z=d}else v&&(u.z=v.z+e(u._,v._));u.parent.A=s(u,v,u.parent.A||f[0])}function o(u){u._.x=u.z+u.parent.m,u.m+=u.parent.m}function s(u,c,f){if(c){for(var v=u,d=u,p=c,y=v.parent.children[0],m=v.m,x=d.m,_=p.m,w=y.m,b;p=Hs(p),v=Ws(v),p&&v;)y=Ws(y),d=Hs(d),d.a=u,b=p.z+_-v.z-m+e(p._,v._),b>0&&(RE(zE(p,u,f),u,b),m+=b,x+=b),_+=p.m,m+=v.m,w+=y.m,x+=d.m;p&&!Hs(d)&&(d.t=p,d.m+=_-x),v&&!Ws(y)&&(y.t=v,y.m+=m-w,f=u)}return f}function l(u){u.x*=r,u.y=u.depth*t}return n.separation=function(u){return arguments.length?(e=u,n):e},n.size=function(u){return arguments.length?(i=!1,r=+u[0],t=+u[1],n):i?null:[r,t]},n.nodeSize=function(u){return arguments.length?(i=!0,r=+u[0],t=+u[1],n):i?[r,t]:null},n}function Ra(e,r,t,i,n){for(var a=e.children,o,s=-1,l=a.length,u=e.value&&(n-t)/e.value;++s_&&(_=u),C=m*m*S,w=Math.max(_/C,C/x),w>b){m-=u;break}b=w}o.push(l={value:m,dice:d1?i:1)},t}(Cv);function Fv(){var e=Mv,r=!1,t=1,i=1,n=[0],a=Jr,o=Jr,s=Jr,l=Jr,u=Jr;function c(v){return v.x0=v.y0=0,v.x1=t,v.y1=i,v.eachBefore(f),n=[0],r&&v.eachBefore(wv),v}function f(v){var d=n[v.depth],p=v.x0+d,y=v.y0+d,m=v.x1-d,x=v.y1-d;m=v-1){var _=a[f];_.x0=p,_.y0=y,_.x1=m,_.y1=x;return}for(var w=u[f],b=d/2+w,S=f+1,C=v-1;S>>1;u[A]x-y){var I=d?(p*P+m*F)/d:m;c(f,S,F,p,y,I,x),c(S,v,P,I,y,m,x)}else{var V=d?(y*P+x*F)/d:x;c(f,S,F,p,y,m,V),c(S,v,P,p,V,m,x)}}}function HE(e,r,t,i,n){(e.depth&1?Ra:xn)(e,r,t,i,n)}var YE=function e(r){function t(i,n,a,o,s){if((l=i._squarify)&&l.ratio===r)for(var l,u,c,f,v=-1,d,p=l.length,y=i.value;++v1?i:1)},t}(Cv),XE={field:"value",tile:"treemapSquarify",size:[1,1],round:!1,ignoreParentValue:!0,padding:0,paddingInner:0,paddingOuter:0,paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0,as:["x","y"],sort:function(e,r){return r.value-e.value},ratio:.5*(1+Math.sqrt(5))};function UE(e,r){return e==="treemapSquarify"?K[e].ratio(r):K[e]}function Ev(e,r){r=(0,h.assign)({},XE,r);var t=r.as;if(!(0,h.isArray)(t)||t.length!==2)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');var i;try{i=Ps(r)}catch(u){console.warn(u)}var n=UE(r.tile,r.ratio),a=function(u){return Fv().tile(n).size(r.size).round(r.round).padding(r.padding).paddingInner(r.paddingInner).paddingOuter(r.paddingOuter).paddingTop(r.paddingTop).paddingRight(r.paddingRight).paddingBottom(r.paddingBottom).paddingLeft(r.paddingLeft)(Fi(u).sum(function(c){return r.ignoreParentValue&&c.children?0:c[i]}).sort(r.sort))},o=a(e),s=t[0],l=t[1];return o.each(function(u){u[s]=[u.x0,u.x1,u.x1,u.x0],u[l]=[u.y1,u.y1,u.y0,u.y0],["x0","x1","y0","y1"].forEach(function(c){t.indexOf(c)===-1&&delete u[c]})}),ks(o)}function Tv(e){var r=e.data,t=e.colorField,i=e.rawFields,n=e.hierarchyConfig,a=n===void 0?{}:n,o=a.activeDepth,s={partition:SE,treemap:Ev},l=e.seriesField,u=e.type||"partition",c=s[u](r,(0,g.__assign)((0,g.__assign)({field:l||"value"},(0,h.omit)(a,["activeDepth"])),{type:"hierarchy.".concat(u),as:["x","y"]})),f=[];return c.forEach(function(v){var d,p,y,m,x,_;if(v.depth===0||o>0&&v.depth>o)return null;for(var w=v.data.name,b=(0,g.__assign)({},v);b.depth>1;)w="".concat((p=b.parent.data)===null||p===void 0?void 0:p.name," / ").concat(w),b=b.parent;var S=(0,g.__assign)((0,g.__assign)((0,g.__assign)({},$t(v.data,(0,g.__spreadArray)((0,g.__spreadArray)([],i||[],!0),[a.field],!1))),(d={},d[mn]=w,d[Gs]=b.data.name,d)),v);l&&(S[l]=v.data[l]||((m=(y=v.parent)===null||y===void 0?void 0:y.data)===null||m===void 0?void 0:m[l])),t&&(S[t]=v.data[t]||((_=(x=v.parent)===null||x===void 0?void 0:x.data)===null||_===void 0?void 0:_[t])),S.ext=a,S[pn]={hierarchyConfig:a,colorField:t,rawFields:i},f.push(S)}),f}function jE(e){var r=e.chart,t=e.options,i=t.color,n=t.colorField,a=n===void 0?Gs:n,o=t.sunburstStyle,s=t.rawFields,l=s===void 0?[]:s,u=t.shape,c=Tv(t);r.data(c);var f;return o&&(f=function(v){return O({},{fillOpacity:Math.pow(.85,v.depth)},(0,h.isFunction)(o)?o(v):o)}),_a(O({},e,{options:{xField:"x",yField:"y",seriesField:a,rawFields:(0,h.uniq)((0,g.__spreadArray)((0,g.__spreadArray)([],_E,!0),l,!0)),polygon:{color:i,style:f,shape:u}}})),e}function ZE(e){var r=e.chart;return r.axis(!1),e}function qE(e){var r=e.chart,t=e.options,i=t.label,n=Me(r,"polygon");if(!i)n.label(!1);else{var a=i.fields,o=a===void 0?["name"]:a,s=i.callback,l=(0,g.__rest)(i,["fields","callback"]);n.label({fields:o,callback:s,cfg:be(l)})}return e}function KE(e){var r=e.chart,t=e.options,i=t.innerRadius,n=t.radius,a=t.reflect,o=r.coordinate({type:"polar",cfg:{innerRadius:i,radius:n}});return a&&o.reflect(a),e}function $E(e){var r,t=e.options,i=t.hierarchyConfig,n=t.meta;return Et(he({},(r={},r[_v]=(0,h.get)(n,(0,h.get)(i,["field"],"value")),r)))(e)}function QE(e){var r=e.chart,t=e.options,i=t.tooltip;if(i===!1)r.tooltip(!1);else{var n=i;(0,h.get)(i,"fields")||(n=O({},{customItems:function(a){return a.map(function(o){var s=(0,h.get)(r.getOptions(),"scales"),l=(0,h.get)(s,[mn,"formatter"],function(c){return c}),u=(0,h.get)(s,[_v,"formatter"],function(c){return c});return(0,g.__assign)((0,g.__assign)({},o),{name:l(o.data[mn]),value:u(o.data.value)})})}},n)),r.tooltip(n)}return e}function JE(e){var r=e.drilldown,t=e.interactions,i=t===void 0?[]:t;return(r==null?void 0:r.enabled)?O({},e,{interactions:(0,g.__spreadArray)((0,g.__spreadArray)([],i,!0),[{type:"drill-down",cfg:{drillDownConfig:r,transformData:Tv}}],!1)}):e}function t1(e){var r=e.chart,t=e.options,i=t.drilldown;return oe({chart:r,options:JE(t)}),(i==null?void 0:i.enabled)&&(r.appendPadding=va(r.appendPadding,(0,h.get)(i,["breadCrumb","position"]))),e}function e1(e){return Et(Xt,Ve("sunburstStyle"),jE,ZE,$E,Ur,KE,QE,qE,t1,Qt,le())(e)}var wI=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="sunburst",t}return r.getDefaultOptions=function(){return wE},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.getSchemaAdaptor=function(){return e1},r.SUNBURST_ANCESTOR_FIELD=Gs,r.SUNBURST_PATH_FIELD=mn,r.NODE_ANCESTORS_FIELD=Is,r}(kt);function Lv(e,r){if(!!(0,h.isArray)(e))return e.find(function(t){return t.type===r})}function Iv(e,r){var t=Lv(e,r);return t&&t.enable!==!1}function Ys(e){var r=e.interactions,t=e.drilldown;return(0,h.get)(t,"enabled")||Iv(r,"treemap-drill-down")}function r1(e){var r=e.interactions["drill-down"];if(!!r){var t=r.context.actions.find(function(i){return i.name==="drill-down-action"});t.reset()}}function Xs(e){var r=e.data,t=e.colorField,i=e.enableDrillDown,n=e.hierarchyConfig,a=Ev(r,(0,g.__assign)((0,g.__assign)({},n),{type:"hierarchy.treemap",field:"value",as:["x","y"]})),o=[];return a.forEach(function(s){if(s.depth===0||i&&s.depth!==1||!i&&s.children)return null;var l=s.ancestors().map(function(v){return{data:v.data,height:v.height,value:v.value}}),u=i&&(0,h.isArray)(r.path)?l.concat(r.path.slice(1)):l,c=Object.assign({},s.data,(0,g.__assign)({x:s.x,y:s.y,depth:s.depth,value:s.value,path:u},s));if(!s.data[t]&&s.parent){var f=s.ancestors().find(function(v){return v.data[t]});c[t]=f==null?void 0:f.data[t]}else c[t]=s.data[t];c[pn]={hierarchyConfig:n,colorField:t,enableDrillDown:i},o.push(c)}),o}function i1(e){var r=e.options,t=r.colorField;return O({options:{rawFields:["value"],tooltip:{fields:["name","value",t,"path"],formatter:function(i){return{name:i.name,value:i.value}}}}},e)}function n1(e){var r=e.chart,t=e.options,i=t.color,n=t.colorField,a=t.rectStyle,o=t.hierarchyConfig,s=t.rawFields,l=Xs({data:t.data,colorField:t.colorField,enableDrillDown:Ys(t),hierarchyConfig:o});return r.data(l),_a(O({},e,{options:{xField:"x",yField:"y",seriesField:n,rawFields:s,polygon:{color:i,style:a}}})),r.coordinate().reflect("y"),e}function a1(e){var r=e.chart;return r.axis(!1),e}function o1(e){var r=e.drilldown,t=e.interactions,i=t===void 0?[]:t,n=Ys(e);return n?O({},e,{interactions:(0,g.__spreadArray)((0,g.__spreadArray)([],i,!0),[{type:"drill-down",cfg:{drillDownConfig:r,transformData:Xs}}],!1)}):e}function s1(e){var r=e.chart,t=e.options,i=t.interactions,n=t.drilldown;oe({chart:r,options:o1(t)});var a=Lv(i,"view-zoom");a&&(a.enable!==!1?r.getCanvas().on("mousewheel",function(s){s.preventDefault()}):r.getCanvas().off("mousewheel"));var o=Ys(t);return o&&(r.appendPadding=va(r.appendPadding,(0,h.get)(n,["breadCrumb","position"]))),e}function l1(e){return Et(i1,Xt,Ve("rectStyle"),n1,a1,Ur,me,s1,Qt,le())(e)}var u1={colorField:"name",rectStyle:{lineWidth:1,stroke:"#fff"},hierarchyConfig:{tile:"treemapSquarify"},label:{fields:["name"],layout:{type:"limit-in-shape"}},tooltip:{showMarkers:!1,showTitle:!1},drilldown:{enabled:!1,breadCrumb:{position:"bottom-left",rootText:"\u521D\u59CB",dividerText:"/",textStyle:{fontSize:12,fill:"rgba(0, 0, 0, 0.65)",cursor:"pointer"},activeTextStyle:{fill:"#87B5FF"}}}},bI=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="treemap",t}return r.getDefaultOptions=function(){return u1},r.prototype.changeData=function(t){var i=this.options,n=i.colorField,a=i.interactions,o=i.hierarchyConfig;this.updateOption({data:t});var s=Xs({data:t,colorField:n,enableDrillDown:Iv(a,"treemap-drill-down"),hierarchyConfig:o});this.chart.changeData(s),r1(this.chart)},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.getSchemaAdaptor=function(){return l1},r}(kt),yr="id",Us="path",c1={appendPadding:[10,0,20,0],blendMode:"multiply",tooltip:{showTitle:!1,showMarkers:!1,fields:["id","size"],formatter:function(e){return{name:e.id,value:e.size}}},legend:{position:"top-left"},label:{style:{textAlign:"center",fill:"#fff"}},interactions:[{type:"legend-filter",enable:!1}],state:{active:{style:{stroke:"#000"}},selected:{style:{stroke:"#000",lineWidth:2}},inactive:{style:{fillOpacity:.3,strokeOpacity:.3}}},defaultInteractions:["tooltip","venn-legend-active"]};function Na(e){if(!!e){var r=e.geometries[0].elements;r.forEach(function(t){t.shape.toFront()})}}var h1=Yn("element-active"),f1=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.syncElementsPos=function(){Na(this.context.view)},r.prototype.active=function(){e.prototype.active.call(this),this.syncElementsPos()},r.prototype.toggle=function(){e.prototype.toggle.call(this),this.syncElementsPos()},r.prototype.reset=function(){e.prototype.reset.call(this),this.syncElementsPos()},r}(h1),v1=Yn("element-highlight"),d1=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.syncElementsPos=function(){Na(this.context.view)},r.prototype.highlight=function(){e.prototype.highlight.call(this),this.syncElementsPos()},r.prototype.toggle=function(){e.prototype.toggle.call(this),this.syncElementsPos()},r.prototype.clear=function(){e.prototype.clear.call(this),this.syncElementsPos()},r.prototype.reset=function(){e.prototype.reset.call(this),this.syncElementsPos()},r}(v1),g1=Yn("element-selected"),p1=Yn("element-single-selected"),y1=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.syncElementsPos=function(){Na(this.context.view)},r.prototype.selected=function(){e.prototype.selected.call(this),this.syncElementsPos()},r.prototype.toggle=function(){e.prototype.toggle.call(this),this.syncElementsPos()},r.prototype.reset=function(){e.prototype.reset.call(this),this.syncElementsPos()},r}(g1),m1=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.syncElementsPos=function(){Na(this.context.view)},r.prototype.selected=function(){e.prototype.selected.call(this),this.syncElementsPos()},r.prototype.toggle=function(){e.prototype.toggle.call(this),this.syncElementsPos()},r.prototype.reset=function(){e.prototype.reset.call(this),this.syncElementsPos()},r}(p1);xt("venn-element-active",f1),xt("venn-element-highlight",d1),xt("venn-element-selected",y1),xt("venn-element-single-selected",m1),Ot("venn-element-active",{start:[{trigger:"element:mouseenter",action:"venn-element-active:active"}],end:[{trigger:"element:mouseleave",action:"venn-element-active:reset"}]}),Ot("venn-element-highlight",{start:[{trigger:"element:mouseenter",action:"venn-element-highlight:highlight"}],end:[{trigger:"element:mouseleave",action:"venn-element-highlight:reset"}]}),Ot("venn-element-selected",{start:[{trigger:"element:click",action:"venn-element-selected:toggle"}],rollback:[{trigger:"dblclick",action:["venn-element-selected:reset"]}]}),Ot("venn-element-single-selected",{start:[{trigger:"element:click",action:"venn-element-single-selected:toggle"}],rollback:[{trigger:"dblclick",action:["venn-element-single-selected:reset"]}]}),Ot("venn-legend-active",{start:[{trigger:"legend-item:mouseenter",action:["list-active:active","venn-element-active:active"]}],end:[{trigger:"legend-item:mouseleave",action:["list-active:reset","venn-element-active:reset"]}]}),Ot("venn-legend-highlight",{start:[{trigger:"legend-item:mouseenter",action:["legend-item-highlight:highlight","venn-element-highlight:highlight"]}],end:[{trigger:"legend-item:mouseleave",action:["legend-item-highlight:reset","venn-element-highlight:reset"]}]});var x1=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getLabelPoint=function(t,i,n){var a=t.data,o=a.x,s=a.y,l=t.customLabelInfo,u=l.offsetX,c=l.offsetY;return{content:t.content[n],x:o+u,y:s+c}},r}(Qn);Qi("venn",x1);var _1=Array.isArray,w1=_1,_n=` +\v\f\r \xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029`,b1=new RegExp("([a-z])["+_n+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+_n+"]*,?["+_n+"]*)+)","ig"),S1=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+_n+"]*,?["+_n+"]*","ig");function C1(e){if(!e)return null;if(w1(e))return e;var r={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},t=[];return String(e).replace(b1,function(i,n,a){var o=[],s=n.toLowerCase();if(a.replace(S1,function(l,u){u&&o.push(+u)}),s==="m"&&o.length>2&&(t.push([n].concat(o.splice(0,2))),s="l",n=n==="m"?"l":"L"),s==="o"&&o.length===1&&t.push([n,o[0]]),s==="r")t.push([n].concat(o));else for(;o.length>=r[s]&&(t.push([n].concat(o.splice(0,r[s]))),!!r[s]););return""}),t}var A1=/[a-z]/;function Ov(e,r){return[r[0]+(r[0]-e[0]),r[1]+(r[1]-e[1])]}function SI(e){var r=parsePathString(e);if(!r||!r.length)return[["M",0,0]];for(var t=!1,i=0;i=0){t=!0;break}}if(!t)return r;var a=[],o=0,s=0,l=0,u=0,c=0,f,v,d=r[0];(d[0]==="M"||d[0]==="m")&&(o=+d[1],s=+d[2],l=o,u=s,c++,a[0]=["M",o,s]);for(var i=c,p=r.length;i1&&(a=1),a<-1&&(a=-1),n*Math.acos(a)},F1=function(e,r,t,i,n,a,o,s,l,u,c,f){var v=Math.pow(n,2),d=Math.pow(a,2),p=Math.pow(c,2),y=Math.pow(f,2),m=v*d-v*y-d*p;m<0&&(m=0),m/=v*y+d*p,m=Math.sqrt(m)*(o===s?-1:1);var x=m*n/a*f,_=m*-a/n*c,w=u*x-l*_+(e+t)/2,b=l*x+u*_+(r+i)/2,S=(c-x)/n,C=(f-_)/a,A=(-c-x)/n,F=(-f-_)/a,P=Pv(1,0,S,C),I=Pv(S,C,A,F);return s===0&&I>0&&(I-=wn),s===1&&I<0&&(I+=wn),[w,b,P,I]},E1=function(e){var r=e.px,t=e.py,i=e.cx,n=e.cy,a=e.rx,o=e.ry,s=e.xAxisRotation,l=s===void 0?0:s,u=e.largeArcFlag,c=u===void 0?0:u,f=e.sweepFlag,v=f===void 0?0:f,d=[];if(a===0||o===0)return[{x1:0,y1:0,x2:0,y2:0,x:i,y:n}];var p=Math.sin(l*wn/360),y=Math.cos(l*wn/360),m=y*(r-i)/2+p*(t-n)/2,x=-p*(r-i)/2+y*(t-n)/2;if(m===0&&x===0)return[{x1:0,y1:0,x2:0,y2:0,x:i,y:n}];a=Math.abs(a),o=Math.abs(o);var _=Math.pow(m,2)/Math.pow(a,2)+Math.pow(x,2)/Math.pow(o,2);_>1&&(a*=Math.sqrt(_),o*=Math.sqrt(_));var w=F1(r,t,i,n,a,o,c,v,p,y,m,x),b=w[0],S=w[1],C=w[2],A=w[3],F=Math.abs(A)/(wn/4);Math.abs(1-F)<1e-7&&(F=1);var P=Math.max(Math.ceil(F),1);A/=P;for(var I=0;I7){e[t].shift();for(var i=e[t],n=t;i.length;)r[t]="A",e.splice(n+=1,0,["C"].concat(i.splice(0,6)));e.splice(t,1)}}var kv=function(e,r,t,i,n){var a=-3*r+9*t-9*i+3*n,o=e*a+6*r-12*t+6*i;return e*o-3*r+3*t},Dv=function(e,r,t,i,n,a,o,s,l){l===null&&(l=1),l=l>1?1:l<0?0:l;for(var u=l/2,c=12,f=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],v=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],d=0,p=0;p0&&d<1&&l.push(d);continue}var y=f*f-4*v*c,m=Math.sqrt(y);if(!(y<0)){var x=(-f+m)/(2*c);x>0&&x<1&&l.push(x);var _=(-f-m)/(2*c);_>0&&_<1&&l.push(_)}}for(var w=l.length,b=w,S;w--;)d=l[w],S=1-d,u[0][w]=S*S*S*e+3*S*S*d*t+3*S*d*d*n+d*d*d*o,u[1][w]=S*S*S*r+3*S*S*d*i+3*S*d*d*a+d*d*d*s;return u[0][b]=e,u[1][b]=r,u[0][b+1]=o,u[1][b+1]=s,u[0].length=u[1].length=b+2,{min:{x:Math.min.apply(0,u[0]),y:Math.min.apply(0,u[1])},max:{x:Math.max.apply(0,u[0]),y:Math.max.apply(0,u[1])}}},I1=function(e,r,t,i,n,a,o,s){if(!(Math.max(e,t)Math.max(n,o)||Math.max(r,i)Math.max(a,s))){var l=(e*i-r*t)*(n-o)-(e-t)*(n*s-a*o),u=(e*i-r*t)*(a-s)-(r-i)*(n*s-a*o),c=(e-t)*(a-s)-(r-i)*(n-o);if(!!c){var f=l/c,v=u/c,d=+f.toFixed(2),p=+v.toFixed(2);if(!(d<+Math.min(e,t).toFixed(2)||d>+Math.max(e,t).toFixed(2)||d<+Math.min(n,o).toFixed(2)||d>+Math.max(n,o).toFixed(2)||p<+Math.min(r,i).toFixed(2)||p>+Math.max(r,i).toFixed(2)||p<+Math.min(a,s).toFixed(2)||p>+Math.max(a,s).toFixed(2)))return{x:f,y:v}}}},Pr=function(e,r,t){return r>=e.x&&r<=e.x+e.width&&t>=e.y&&t<=e.y+e.height},Zs=function(e,r,t,i){return e===null&&(e=r=t=i=0),r===null&&(r=e.y,t=e.width,i=e.height,e=e.x),{x:e,y:r,width:t,w:t,height:i,h:i,x2:e+t,y2:r+i,cx:e+t/2,cy:r+i/2,r1:Math.min(t,i)/2,r2:Math.max(t,i)/2,r0:Math.sqrt(t*t+i*i)/2,path:rectPath(e,r,t,i),vb:[e,r,t,i].join(" ")}},O1=function(e,r){return e=Zs(e),r=Zs(r),Pr(r,e.x,e.y)||Pr(r,e.x2,e.y)||Pr(r,e.x,e.y2)||Pr(r,e.x2,e.y2)||Pr(e,r.x,r.y)||Pr(e,r.x2,r.y)||Pr(e,r.x,r.y2)||Pr(e,r.x2,r.y2)||(e.xr.x||r.xe.x)&&(e.yr.y||r.ye.y)},Bv=function(e,r,t,i,n,a,o,s){isArray(e)||(e=[e,r,t,i,n,a,o,s]);var l=L1.apply(null,e);return Zs(l.min.x,l.min.y,l.max.x-l.min.x,l.max.y-l.min.y)},Rv=function(e,r,t,i,n,a,o,s,l){var u=1-l,c=Math.pow(u,3),f=Math.pow(u,2),v=l*l,d=v*l,p=c*e+f*3*l*t+u*3*l*l*n+d*o,y=c*r+f*3*l*i+u*3*l*l*a+d*s,m=e+2*l*(t-e)+v*(n-2*t+e),x=r+2*l*(i-r)+v*(a-2*i+r),_=t+2*l*(n-t)+v*(o-2*n+t),w=i+2*l*(a-i)+v*(s-2*a+i),b=u*e+l*t,S=u*r+l*i,C=u*n+l*o,A=u*a+l*s,F=90-Math.atan2(m-_,x-w)*180/Math.PI;return{x:p,y,m:{x:m,y:x},n:{x:_,y:w},start:{x:b,y:S},end:{x:C,y:A},alpha:F}},P1=function(e,r,t){var i=Bv(e),n=Bv(r);if(!O1(i,n))return t?0:[];for(var a=Dv.apply(0,e),o=Dv.apply(0,r),s=~~(a/8),l=~~(o/8),u=[],c=[],f={},v=t?0:[],d=0;d=0&&A<=1&&F>=0&&F<=1&&(t?v++:v.push({x:C.x,y:C.y,t1:A,t2:F}))}}return v},k1=function(e,r,t){e=path2Curve(e),r=path2Curve(r);for(var i,n,a,o,s,l,u,c,f,v,d=t?0:[],p=0,y=e.length;pr?r:e},lighten:function(e,r){return e>r?e:r},dodge:function(e,r){return e===255?255:(e=255*(r/255)/(1-e/255),e>255?255:e)},burn:function(e,r){return r===255?255:e===0?0:255*(1-Math.min(1,(1-r/255)/(e/255)))}},R1=function(e){if(!Nv[e])throw new Error("unknown blend mode "+e);return Nv[e]};function N1(e,r,t){t===void 0&&(t="normal");var i=B1(R1(t))(za(e),za(r)),n=za(e),a=n[0],o=n[1],s=n[2],l=n[3],u=za(r),c=u[0],f=u[1],v=u[2],d=u[3],p=Number((l+d*(1-l)).toFixed(2)),y=Math.round((l*(1-d)*(a/255)+l*d*(i[0]/255)+(1-l)*d*(c/255))/p*255),m=Math.round((l*(1-d)*(o/255)+l*d*(i[1]/255)+(1-l)*d*(f/255))/p*255),x=Math.round((l*(1-d)*(s/255)+l*d*(i[2]/255)+(1-l)*d*(v/255))/p*255);return"rgba(".concat(y,", ").concat(m,", ").concat(x,", ").concat(p,")")}function za(e){var r=e.replace("/s+/g",""),t;return typeof r=="string"&&!r.startsWith("rgba")&&!r.startsWith("#")?t=xr.rgb2arr(xr.toRGB(r)).concat([1]):(r.startsWith("rgba")&&(t=r.replace("rgba(","").replace(")","").split(",")),r.startsWith("#")&&(t=xr.rgb2arr(r).concat([1])),t.map(function(i,n){return n===3?Number(i):i|0}))}var ir=M(87026),zv=1e-10;function qs(e,r){var t=V1(e),i=t.filter(function(A){return z1(A,e)}),n=0,a=0,o,s=[];if(i.length>1){var l=Wv(i);for(o=0;o-1){var y=e[f.parentIndex[p]],m=Math.atan2(f.x-y.x,f.y-y.y),x=Math.atan2(c.x-y.x,c.y-y.y),_=x-m;_<0&&(_+=2*Math.PI);var w=x-_/2,b=Ke(v,{x:y.x+y.radius*Math.sin(w),y:y.y+y.radius*Math.cos(w)});b>y.radius*2&&(b=y.radius*2),(d===null||d.width>b)&&(d={circle:y,width:b,p1:f,p2:c})}d!==null&&(s.push(d),n+=Ks(d.circle.radius,d.width),c=f)}}else{var S=e[0];for(o=1;oMath.abs(S.radius-e[o].radius)){C=!0;break}C?n=a=0:(n=S.radius*S.radius*Math.PI,s.push({circle:S,p1:{x:S.x,y:S.y+S.radius},p2:{x:S.x-zv,y:S.y+S.radius},width:S.radius*2}))}return a/=2,r&&(r.area=n+a,r.arcArea=n,r.polygonArea=a,r.arcs=s,r.innerPoints=i,r.intersectionPoints=t),n+a}function z1(e,r){for(var t=0;tr[t].radius+zv)return!1;return!0}function V1(e){for(var r=[],t=0;t=e+r)return 0;if(t<=Math.abs(e-r))return Math.PI*Math.min(e,r)*Math.min(e,r);var i=e-(t*t-r*r+e*e)/(2*t),n=r-(t*t-e*e+r*r)/(2*t);return Ks(e,i)+Ks(r,n)}function Gv(e,r){var t=Ke(e,r),i=e.radius,n=r.radius;if(t>=i+n||t<=Math.abs(i-n))return[];var a=(i*i-n*n+t*t)/(2*t),o=Math.sqrt(i*i-a*a),s=e.x+a*(r.x-e.x)/t,l=e.y+a*(r.y-e.y)/t,u=-(r.y-e.y)*(o/t),c=-(r.x-e.x)*(o/t);return[{x:s+u,y:l-c},{x:s-u,y:l+c}]}function Wv(e){for(var r={x:0,y:0},t=0;t=o&&(a=t[i],o=s)}var l=(0,ir.nelderMead)(function(v){return-1*$s({x:v[0],y:v[1]},e,r)},[a.x,a.y],{maxIterations:500,minErrorDelta:1e-10}).x,u={x:l[0],y:l[1]},c=!0;for(i=0;ie[i].radius){c=!1;break}for(i=0;i0&&console.log("WARNING: area "+a+" not represented on screen")}return t}function H1(e,r,t){var i=[],n=e-t,a=r;return i.push("M",n,a),i.push("A",t,t,0,1,0,n+2*t,a),i.push("A",t,t,0,1,0,n,a),i.join(" ")}function EI(e){var r=e.split(" ");return{x:parseFloat(r[1]),y:parseFloat(r[2]),radius:-parseFloat(r[4])}}function Y1(e){var r={};qs(e,r);var t=r.arcs;if(t.length===0)return"M 0 0";if(t.length==1){var i=t[0].circle;return H1(i.x,i.y,i.radius)}else{for(var n=[` +M`,t[0].p2.x,t[0].p2.y],a=0;as;n.push(` +A`,s,s,0,l?1:0,1,o.p1.x,o.p1.y)}return n.join(" ")}}function X1(e,r){r=r||{},r.maxIterations=r.maxIterations||500;var t=r.initialLayout||q1,i=r.lossFunction||Js;e=U1(e);var n=t(e,r),a=[],o=[],s;for(s in n)n.hasOwnProperty(s)&&(a.push(n[s].x),a.push(n[s].y),o.push(s));for(var l=(0,ir.nelderMead)(function(f){for(var v={},d=0;du?1:-1}),i=0;i=Math.min(r[o].size,r[s].size)?f=1:a.size<=1e-10&&(f=-1),n[o][s]=n[s][o]=f}),{distances:i,constraints:n}}function Z1(e,r,t,i){var n=0,a;for(a=0;a0&&p<=f||v<0&&p>=f||(n+=2*y*y,r[2*a]+=4*y*(o-u),r[2*a+1]+=4*y*(s-c),r[2*l]+=4*y*(u-o),r[2*l+1]+=4*y*(c-s))}return n}function q1(e,r){var t=$1(e,r),i=r.lossFunction||Js;if(e.length>=8){var n=K1(e,r),a=i(n,e),o=i(t,e);a+1e-8=Math.min(i[c].size,i[f].size)&&(u=0),n[c].push({set:f,size:l.size,weight:u}),n[f].push({set:c,size:l.size,weight:u})}var v=[];for(a in n)if(n.hasOwnProperty(a)){for(var d=0,o=0;o0){var n=e[0].x,a=e[0].y;for(i=0;i1){var s=Math.atan2(e[1].x,e[1].y)-r,l=void 0,u=void 0,c=Math.cos(s),f=Math.sin(s);for(i=0;i2){for(var v=Math.atan2(e[2].x,e[2].y)-r;v<0;)v+=2*Math.PI;for(;v>2*Math.PI;)v-=2*Math.PI;if(v>Math.PI){var d=e[1].y/(1e-10+e[1].x);for(i=0;i1)throw new Error("quantiles must be between 0 and 1");return r===1?e[e.length-1]:r===0?e[0]:t%1!=0?e[Math.ceil(t)-1]:e.length%2==0?(e[t-1]+e[t])/2:e[t]}function bn(e,r,t){var i=e[r];e[r]=e[t],e[t]=i}function Va(e,r,t,i){for(t=t||0,i=i||e.length-1;i>t;){if(i-t>600){var n=i-t+1,a=r-t+1,o=Math.log(n),s=.5*Math.exp(2*o/3),l=.5*Math.sqrt(o*s*(n-s)/n);a-n/2<0&&(l*=-1);var u=Math.max(t,Math.floor(r-a*s/n+l)),c=Math.min(i,Math.floor(r+(n-a)*s/n+l));Va(e,r,u,c)}var f=e[r],v=t,d=i;for(bn(e,t,r),e[i]>f&&bn(e,t,i);vf;)d--}e[t]===f?bn(e,t,d):(d++,bn(e,d,i)),d<=r&&(t=d+1),r<=d&&(i=d-1)}}function Sn(e,r){var t=e.slice();if(Array.isArray(r)){wT(t,r);for(var i=[],n=0;n0?c:f},m=O({},e,{options:{xField:n,yField:Ue,seriesField:n,rawFields:[a,Ha,il,Ue],widthRatio:l,interval:{style:u,shape:d||"waterfall",color:y}}}),x=Fe(m).ext,_=x.geometry;return _.customInfo((0,g.__assign)((0,g.__assign)({},p),{leaderLine:s})),e}function NT(e){var r,t,i=e.options,n=i.xAxis,a=i.yAxis,o=i.xField,s=i.yField,l=i.meta,u=O({},{alias:s},(0,h.get)(l,s));return Et(he((r={},r[o]=n,r[s]=a,r[Ue]=a,r),O({},l,(t={},t[Ue]=u,t[Ha]=u,t[rl]=u,t))))(e)}function zT(e){var r=e.chart,t=e.options,i=t.xAxis,n=t.yAxis,a=t.xField,o=t.yField;return i===!1?r.axis(a,!1):r.axis(a,i),n===!1?(r.axis(o,!1),r.axis(Ue,!1)):(r.axis(o,n),r.axis(Ue,n)),e}function VT(e){var r=e.chart,t=e.options,i=t.legend,n=t.total,a=t.risingFill,o=t.fallingFill,s=t.locale,l=ya(s);if(i===!1)r.legend(!1);else{var u=[{name:l.get(["general","increase"]),value:"increase",marker:{symbol:"square",style:{r:5,fill:a}}},{name:l.get(["general","decrease"]),value:"decrease",marker:{symbol:"square",style:{r:5,fill:o}}}];n&&u.push({name:n.label||"",value:"total",marker:{symbol:"square",style:O({},{r:5},(0,h.get)(n,"style"))}}),r.legend(O({},{custom:!0,position:"top",items:u},i)),r.removeInteraction("legend-filter")}return e}function GT(e){var r=e.chart,t=e.options,i=t.label,n=t.labelMode,a=t.xField,o=Me(r,"interval");if(!i)o.label(!1);else{var s=i.callback,l=(0,g.__rest)(i,["callback"]);o.label({fields:n==="absolute"?[rl,a]:[Ha,a],callback:s,cfg:be(l)})}return e}function WT(e){var r=e.chart,t=e.options,i=t.tooltip,n=t.xField,a=t.yField;if(i!==!1){r.tooltip((0,g.__assign)({showCrosshairs:!1,showMarkers:!1,shared:!0,fields:[a]},i));var o=r.geometries[0];(i==null?void 0:i.formatter)?o.tooltip("".concat(n,"*").concat(a),i.formatter):o.tooltip(a)}else r.tooltip(!1);return e}function HT(e){return Et(BT,Xt,RT,NT,zT,VT,WT,GT,Lr,oe,Qt,le())(e)}var OI=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="waterfall",t}return r.getDefaultOptions=function(){return OT},r.prototype.changeData=function(t){var i=this.options,n=i.xField,a=i.yField,o=i.total;this.updateOption({data:t}),this.chart.changeData(ed(t,n,a,o))},r.prototype.getSchemaAdaptor=function(){return HT},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r}(kt),nl="color",YT=O({},kt.getDefaultOptions(),{timeInterval:2e3,legend:!1,tooltip:{showTitle:!1,showMarkers:!1,showCrosshairs:!1,fields:["text","value",nl],formatter:function(e){return{name:e.text,value:e.value}}},wordStyle:{fontFamily:"Verdana",fontWeight:"normal",padding:1,fontSize:[12,60],rotation:[0,90],rotationSteps:2,rotateRatio:.5}}),XT={font:function(){return"serif"},padding:1,size:[500,500],spiral:"archimedean",timeInterval:3e3};function UT(e,r){return r=(0,h.assign)({},XT,r),jT(e,r)}function jT(e,r){var t=oL();["font","fontSize","fontWeight","padding","rotate","size","spiral","timeInterval","random"].forEach(function(l){(0,h.isNil)(r[l])||t[l](r[l])}),t.words(e),r.imageMask&&t.createMask(r.imageMask);var i=t.start(),n=i._tags;n.forEach(function(l){l.x+=r.size[0]/2,l.y+=r.size[1]/2});var a=r.size,o=a[0],s=a[1];return n.push({text:"",value:0,x:0,y:0,opacity:0}),n.push({text:"",value:0,x:o,y:s,opacity:0}),n}var al=Math.PI/180,Cn=1<<11>>5,Ya=1<<11;function ZT(e){return e.text}function qT(){return"serif"}function rd(){return"normal"}function KT(e){return e.value}function $T(){return~~(Math.random()*2)*90}function QT(){return 1}function JT(e,r,t,i){if(!r.sprite){var n=e.context,a=e.ratio;n.clearRect(0,0,(Cn<<5)/a,Ya/a);var o=0,s=0,l=0,u=t.length;for(--i;++i>5<<5,f=~~Math.max(Math.abs(y+m),Math.abs(y-m))}else c=c+31>>5<<5;if(f>l&&(l=f),o+c>=Cn<<5&&(o=0,s+=l,l=0),s+f>=Ya)break;n.translate((o+(c>>1))/a,(s+(f>>1))/a),r.rotate&&n.rotate(r.rotate*al),n.fillText(r.text,0,0),r.padding&&(n.lineWidth=2*r.padding,n.strokeText(r.text,0,0)),n.restore(),r.width=c,r.height=f,r.xoff=o,r.yoff=s,r.x1=c>>1,r.y1=f>>1,r.x0=-r.x1,r.y0=-r.y1,r.hasText=!0,o+=c}for(var _=n.getImageData(0,0,(Cn<<5)/a,Ya/a).data,w=[];--i>=0;)if(r=t[i],!!r.hasText){for(var c=r.width,b=c>>5,f=r.y1-r.y0,S=0;S>5),I=_[(s+F)*(Cn<<5)+(o+S)<<2]?1<<31-S%32:0;w[P]|=I,C|=I}C?A=F:(r.y0++,f--,F--,s++)}r.y1=r.y0+A,r.sprite=w.slice(0,(r.y1-r.y0)*b)}}}function tL(e,r,t){t>>=5;for(var i=e.sprite,n=e.width>>5,a=e.x-(n<<4),o=a&127,s=32-o,l=e.y1-e.y0,u=(e.y+e.y0)*t+(a>>5),c,f=0;f>>o:0))&r[u+v])return!0;u+=t}return!1}function eL(e,r){var t=e[0],i=e[1];r.x+r.x0i.x&&(i.x=r.x+r.x1),r.y+r.y1>i.y&&(i.y=r.y+r.y1)}function rL(e,r){return e.x+e.x1>r[0].x&&e.x+e.x0r[0].y&&e.y+e.y0>5)*e[1]),b=l.length,S=[],C=l.map(function(I,V,Z){return I.text=c.call(this,I,V,Z),I.font=r.call(this,I,V,Z),I.style=f.call(this,I,V,Z),I.weight=i.call(this,I,V,Z),I.rotate=n.call(this,I,V,Z),I.size=~~t.call(this,I,V,Z),I.padding=a.call(this,I,V,Z),I}).sort(function(I,V){return V.size-I.size}),A=-1,F=d.board?[{x:0,y:0},{x:m,y:x}]:null;P();function P(){for(var I=Date.now();Date.now()-I>1,V.y=x*(s()+.5)>>1,JT(_,V,C,A),V.hasText&&y(w,V,F)&&(S.push(V),F?d.hasImage||eL(F,V):F=[{x:V.x+V.x0,y:V.y+V.y0},{x:V.x+V.x1,y:V.y+V.y1}],V.x-=e[0]>>1,V.y-=e[1]>>1)}d._tags=S,d._bounds=F}return d};function p(m){m.width=m.height=1;var x=Math.sqrt(m.getContext("2d",{willReadFrequently:!0}).getImageData(0,0,1,1).data.length>>2);m.width=(Cn<<5)/x,m.height=Ya/x;var _=m.getContext("2d",{willReadFrequently:!0});return _.fillStyle=_.strokeStyle="red",_.textAlign="center",{context:_,ratio:x}}function y(m,x,_){for(var w=x.x,b=x.y,S=Math.sqrt(e[0]*e[0]+e[1]*e[1]),C=o(e),A=s()<.5?1:-1,F,P=-A,I,V;(F=C(P+=A))&&(I=~~F[0],V=~~F[1],!(Math.min(Math.abs(I),Math.abs(V))>=S));)if(x.x=w+I,x.y=b+V,!(x.x+x.x0<0||x.y+x.y0<0||x.x+x.x1>e[0]||x.y+x.y1>e[1])&&(!_||!tL(x,m,e[0]))&&(!_||rL(x,_))){for(var Z=x.sprite,vt=x.width>>5,yt=e[0]>>5,Bt=x.x-(vt<<4),G=Bt&127,at=32-G,mt=x.y1-x.y0,ut=void 0,pt=(x.y+x.y0)*yt+(Bt>>5),At=0;At>>G:0);pt+=yt}return delete x.sprite,!0}return!1}return d.createMask=function(m){var x=document.createElement("canvas"),_=e[0],w=e[1];if(!(!_||!w)){var b=_>>5,S=nd((_>>5)*w);x.width=_,x.height=w;var C=x.getContext("2d");C.drawImage(m,0,0,m.width,m.height,0,0,_,w);for(var A=C.getImageData(0,0,_,w).data,F=0;F>5),V=F*_+P<<2,Z=A[V]>=250&&A[V+1]>=250&&A[V+2]>=250,vt=Z?1<<31-P%32:0;S[I]|=vt}d.board=S,d.hasImage=!0}},d.timeInterval=function(m){u=m==null?Infinity:m},d.words=function(m){l=m},d.size=function(m){e=[+m[0],+m[1]]},d.font=function(m){r=nr(m)},d.fontWeight=function(m){i=nr(m)},d.rotate=function(m){n=nr(m)},d.spiral=function(m){o=aL[m]||m},d.fontSize=function(m){t=nr(m)},d.padding=function(m){a=nr(m)},d.random=function(m){s=nr(m)},d}function ad(e){var r=e.options,t=e.chart,i=t,n=i.width,a=i.height,o=i.padding,s=i.appendPadding,l=i.ele,u=r.data,c=r.imageMask,f=r.wordField,v=r.weightField,d=r.colorField,p=r.wordStyle,y=r.timeInterval,m=r.random,x=r.spiral,_=r.autoFit,w=_===void 0?!0:_,b=r.placementStrategy;if(!u||!u.length)return[];var S=p.fontFamily,C=p.fontWeight,A=p.padding,F=p.fontSize,P=hL(u,v),I=[dL(P),gL(P)],V=u.map(function(yt){return{text:yt[f],value:yt[v],color:yt[d],datum:yt}}),Z={imageMask:c,font:S,fontSize:cL(F,I),fontWeight:C,size:sL({width:n,height:a,padding:o,appendPadding:s,autoFit:w,container:l}),padding:A,timeInterval:y,random:m,spiral:x,rotate:fL(r)};if((0,h.isFunction)(b)){var vt=V.map(function(yt,Bt,G){return(0,g.__assign)((0,g.__assign)((0,g.__assign)({},yt),{hasText:!!yt.text,font:nr(Z.font)(yt,Bt,G),weight:nr(Z.fontWeight)(yt,Bt,G),rotate:nr(Z.rotate)(yt,Bt,G),size:nr(Z.fontSize)(yt,Bt,G),style:"normal"}),b.call(t,yt,Bt,G))});return vt.push({text:"",value:0,x:0,y:0,opacity:0}),vt.push({text:"",value:0,x:Z.size[0],y:Z.size[1],opacity:0}),vt}return UT(V,Z)}function sL(e){var r=e.width,t=e.height,i=e.container,n=e.autoFit,a=e.padding,o=e.appendPadding;if(n){var s=us(i);r=s.width,t=s.height}r=r||400,t=t||400;var l=lL({padding:a,appendPadding:o}),u=l[0],c=l[1],f=l[2],v=l[3],d=[r-(v+c),t-(u+f)];return d}function lL(e){var r=Tr(e.padding),t=Tr(e.appendPadding),i=r[0]+t[0],n=r[1]+t[1],a=r[2]+t[2],o=r[3]+t[3];return[i,n,a,o]}function uL(e){return new Promise(function(r,t){if(e instanceof HTMLImageElement){r(e);return}if((0,h.isString)(e)){var i=new Image;i.crossOrigin="anonymous",i.src=e,i.onload=function(){r(i)},i.onerror=function(){fr(qe.ERROR,!1,"image %s load failed !!!",e),t()};return}fr(qe.WARN,e===void 0,"The type of imageMask option must be String or HTMLImageElement."),t()})}function cL(e,r){if((0,h.isFunction)(e))return e;if((0,h.isArray)(e)){var t=e[0],i=e[1];if(!r)return function(){return(i+t)/2};var n=r[0],a=r[1];return a===n?function(){return(i+t)/2}:function(s){var l=s.value;return(i-t)/(a-n)*(l-n)+t}}return function(){return e}}function hL(e,r){return e.map(function(t){return t[r]}).filter(function(t){return typeof t=="number"&&!isNaN(t)})}function fL(e){var r=vL(e),t=r.rotation,i=r.rotationSteps;if(!(0,h.isArray)(t))return t;var n=t[0],a=t[1],o=i===1?0:(a-n)/(i-1);return function(){return a===n?a:Math.floor(Math.random()*i)*o}}function vL(e){var r=e.wordStyle.rotationSteps;return r<1&&(fr(qe.WARN,!1,"The rotationSteps option must be greater than or equal to 1."),r=1),{rotation:e.wordStyle.rotation,rotationSteps:r}}function dL(e){return Math.min.apply(Math,e)}function gL(e){return Math.max.apply(Math,e)}function pL(e){var r=e.chart,t=e.options,i=t.colorField,n=t.color,a=ad(e);r.data(a);var o=O({},e,{options:{xField:"x",yField:"y",seriesField:i&&nl,rawFields:(0,h.isFunction)(n)&&(0,g.__spreadArray)((0,g.__spreadArray)([],(0,h.get)(t,"rawFields",[]),!0),["datum"],!1),point:{color:n,shape:"word-cloud"}}}),s=Ge(o).ext;return s.geometry.label(!1),r.coordinate().reflect("y"),r.axis(!1),e}function yL(e){return Et(he({x:{nice:!1},y:{nice:!1}}))(e)}function mL(e){var r=e.chart,t=e.options,i=t.legend,n=t.colorField;return i===!1?r.legend(!1):n&&r.legend(nl,i),e}function xL(e){Et(pL,yL,me,mL,oe,Qt,Xt,Lr)(e)}Zt("point","word-cloud",{draw:function(e,r){var t=e.x,i=e.y,n=r.addShape("text",{attrs:(0,g.__assign)((0,g.__assign)({},_L(e)),{x:t,y:i})}),a=e.data.rotate;return typeof a=="number"&&ke.rotate(n,a*Math.PI/180),n}});function _L(e){return{fontSize:e.data.size,text:e.data.text,textAlign:"center",fontFamily:e.data.font,fontWeight:e.data.weight,fill:e.color||e.defaultStyle.stroke,textBaseline:"alphabetic"}}var PI=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="word-cloud",t}return r.getDefaultOptions=function(){return YT},r.prototype.changeData=function(t){this.updateOption({data:t}),this.options.imageMask?this.render():this.chart.changeData(ad({chart:this.chart,options:this.options}))},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.render=function(){var t=this;return new Promise(function(i){var n=t.options.imageMask;if(!n){e.prototype.render.call(t),i();return}var a=function(o){t.options=(0,g.__assign)((0,g.__assign)({},t.options),{imageMask:o||null}),e.prototype.render.call(t),i()};uL(n).then(a).catch(a)})},r.prototype.getSchemaAdaptor=function(){return xL},r.prototype.triggerResize=function(){var t=this;this.chart.destroyed||(this.execAdaptor(),window.setTimeout(function(){e.prototype.triggerResize.call(t)}))},r}(kt),kI=function(e){(0,g.__extends)(r,e);function r(t,i,n,a){var o=e.call(this,t,O({},a,i))||this;return o.type="g2-plot",o.defaultOptions=a,o.adaptor=n,o}return r.prototype.getDefaultOptions=function(){return this.defaultOptions},r.prototype.getSchemaAdaptor=function(){return this.adaptor},r}(kt),DI="2.4.29";_h("en-US",mb),_h("zh-CN",xb);var BI={scale:he,legend:Ur,tooltip:me,annotation:le,interaction:oe,theme:Xt,animation:Qt}},80638:function(){},15746:function(Pt,st,M){"use strict";var B=M(21584);st.Z=B.Z},89032:function(Pt,st,M){"use strict";var B=M(38663),it=M.n(B),wt=M(6999)},99134:function(Pt,st,M){"use strict";var B=M(67294),it=(0,B.createContext)({});st.Z=it},21584:function(Pt,st,M){"use strict";var B=M(96156),it=M(22122),wt=M(90484),_t=M(94184),ft=M.n(_t),ct=M(67294),et=M(53124),K=M(99134),g=function(N,$){var L={};for(var X in N)Object.prototype.hasOwnProperty.call(N,X)&&$.indexOf(X)<0&&(L[X]=N[X]);if(N!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ot=0,X=Object.getOwnPropertySymbols(N);ot0){var H=rt[0]/2;W.paddingLeft=H,W.paddingRight=H}if(rt&&rt[1]>0&&!zt){var z=rt[1]/2;W.paddingTop=z,W.paddingBottom=z}return R&&(W.flex=h(R),Mt===!1&&!W.minWidth&&(W.minWidth=0)),ct.createElement("div",(0,it.Z)({},j,{style:(0,it.Z)((0,it.Z)({},W),D),className:St,ref:$}),Y)});st.Z=E},92820:function(Pt,st,M){"use strict";var B=M(22122),it=M(96156),wt=M(90484),_t=M(28481),ft=M(94184),ct=M.n(ft),et=M(67294),K=M(53124),g=M(98082),h=M(24308),J=M(93355),E=M(99134),N=function(ht,bt){var rt={};for(var Mt in ht)Object.prototype.hasOwnProperty.call(ht,Mt)&&bt.indexOf(Mt)<0&&(rt[Mt]=ht[Mt]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var zt=0,Mt=Object.getOwnPropertySymbols(ht);zt0?gt[0]/-2:void 0,ae=gt[1]!=null&>[1]>0?gt[1]/-2:void 0;if(te&&(Ut.marginLeft=te,Ut.marginRight=te),Tt){var we=(0,_t.Z)(gt,2);Ut.rowGap=we[1]}else ae&&(Ut.marginTop=ae,Ut.marginBottom=ae);var re=(0,_t.Z)(gt,2),xe=re[0],Se=re[1],_e=et.useMemo(function(){return{gutter:[xe,Se],wrap:tt,supportFlexGap:Tt}},[xe,Se,tt,Tt]);return et.createElement(E.Z.Provider,{value:_e},et.createElement("div",(0,B.Z)({},Y,{className:Rt,style:(0,B.Z)((0,B.Z)({},Ut),se),ref:bt}),jt))});st.Z=ot},6999:function(Pt,st,M){"use strict";var B=M(38663),it=M.n(B),wt=M(80638),_t=M.n(wt)},71230:function(Pt,st,M){"use strict";var B=M(92820);st.Z=B.Z},13062:function(Pt,st,M){"use strict";var B=M(38663),it=M.n(B),wt=M(6999)},56645:function(Pt,st){(function(M,B){B(st)})(this,function(M){"use strict";function B(T,k){return it(T)||wt(T,k)||_t()}function it(T){if(Array.isArray(T))return T}function wt(T,k){var tt=[],Y=!0,R=!1,D=void 0;try{for(var j=T[Symbol.iterator](),q;!(Y=(q=j.next()).done)&&(tt.push(q.value),!(k&&tt.length===k));Y=!0);}catch(dt){R=!0,D=dt}finally{try{!Y&&j.return!=null&&j.return()}finally{if(R)throw D}}return tt}function _t(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function ft(T,k,tt,Y){T=T.filter(function(nt,U){var It=k(nt,U),Tt=tt(nt,U);return It!=null&&isFinite(It)&&Tt!=null&&isFinite(Tt)}),Y&&T.sort(function(nt,U){return k(nt)-k(U)});for(var R=T.length,D=new Float64Array(R),j=new Float64Array(R),q=0,dt=0,St,W,H,z=0;zR&&(W.splice(Q+1,0,Tt),z=!0)}return z}}function J(T,k,tt,Y){var R=Y-T*T,D=Math.abs(R)<1e-24?0:(tt-T*k)/R,j=k-D*T;return[j,D]}function E(){var T=function(D){return D[0]},k=function(D){return D[1]},tt;function Y(R){var D=0,j=0,q=0,dt=0,St=0,W=0,H=tt?+tt[0]:Infinity,z=tt?+tt[1]:-Infinity;ct(R,T,k,function(lt,Ct){var gt=Math.log(Ct),Rt=lt*Ct;++D,j+=(Ct-j)/D,dt+=(Rt-dt)/D,W+=(lt*Rt-W)/D,q+=(Ct*gt-q)/D,St+=(Rt*gt-St)/D,tt||(ltz&&(z=lt))});var Q=J(dt/j,q/j,St/j,W/j),nt=B(Q,2),U=nt[0],It=nt[1];U=Math.exp(U);var Tt=function(Ct){return U*Math.exp(It*Ct)},Ft=h(H,z,Tt);return Ft.a=U,Ft.b=It,Ft.predict=Tt,Ft.rSquared=et(R,T,k,j,Tt),Ft}return Y.domain=function(R){return arguments.length?(tt=R,Y):tt},Y.x=function(R){return arguments.length?(T=R,Y):T},Y.y=function(R){return arguments.length?(k=R,Y):k},Y}function N(){var T=function(D){return D[0]},k=function(D){return D[1]},tt;function Y(R){var D=0,j=0,q=0,dt=0,St=0,W=tt?+tt[0]:Infinity,H=tt?+tt[1]:-Infinity;ct(R,T,k,function(Ft,lt){++D,j+=(Ft-j)/D,q+=(lt-q)/D,dt+=(Ft*lt-dt)/D,St+=(Ft*Ft-St)/D,tt||(FtH&&(H=Ft))});var z=J(j,q,dt,St),Q=B(z,2),nt=Q[0],U=Q[1],It=function(lt){return U*lt+nt},Tt=[[W,It(W)],[H,It(H)]];return Tt.a=U,Tt.b=nt,Tt.predict=It,Tt.rSquared=et(R,T,k,q,It),Tt}return Y.domain=function(R){return arguments.length?(tt=R,Y):tt},Y.x=function(R){return arguments.length?(T=R,Y):T},Y.y=function(R){return arguments.length?(k=R,Y):k},Y}function $(T){T.sort(function(tt,Y){return tt-Y});var k=T.length/2;return k%1==0?(T[k-1]+T[k])/2:T[Math.floor(k)]}var L=2,X=1e-12;function ot(){var T=function(D){return D[0]},k=function(D){return D[1]},tt=.3;function Y(R){for(var D=ft(R,T,k,!0),j=B(D,4),q=j[0],dt=j[1],St=j[2],W=j[3],H=q.length,z=Math.max(2,~~(tt*H)),Q=new Float64Array(H),nt=new Float64Array(H),U=new Float64Array(H).fill(1),It=-1;++It<=L;){for(var Tt=[0,z-1],Ft=0;Ftq[gt]-lt?Ct:gt,Ut=0,te=0,ae=0,we=0,re=0,xe=1/Math.abs(q[Rt]-lt||1),Se=Ct;Se<=gt;++Se){var _e=q[Se],ce=dt[Se],ve=ht(Math.abs(lt-_e)*xe)*U[Se],de=_e*ve;Ut+=ve,te+=de,ae+=ce*ve,we+=ce*de,re+=_e*de}var Te=J(te/Ut,ae/Ut,we/Ut,re/Ut),ii=B(Te,2),ni=ii[0],ai=ii[1];Q[Ft]=ni+ai*lt,nt[Ft]=Math.abs(dt[Ft]-Q[Ft]),bt(q,Ft+1,Tt)}if(It===L)break;var Xa=$(nt);if(Math.abs(Xa)=1?X:(Ua=1-Pi*Pi)*Ua}return rt(q,Q,St,W)}return Y.bandwidth=function(R){return arguments.length?(tt=R,Y):tt},Y.x=function(R){return arguments.length?(T=R,Y):T},Y.y=function(R){return arguments.length?(k=R,Y):k},Y}function ht(T){return(T=1-T*T*T)*T*T}function bt(T,k,tt){var Y=T[k],R=tt[0],D=tt[1]+1;if(!(D>=T.length))for(;k>R&&T[D]-Y<=Y-T[R];)tt[0]=++R,tt[1]=D,++D}function rt(T,k,tt,Y){for(var R=T.length,D=[],j=0,q=0,dt=[],St;jz&&(z=Ct))});var nt=J(q,dt,St,W),U=B(nt,2),It=U[0],Tt=U[1],Ft=function(gt){return Tt*Math.log(gt)/Q+It},lt=h(H,z,Ft);return lt.a=Tt,lt.b=It,lt.predict=Ft,lt.rSquared=et(D,T,k,dt,Ft),lt}return R.domain=function(D){return arguments.length?(Y=D,R):Y},R.x=function(D){return arguments.length?(T=D,R):T},R.y=function(D){return arguments.length?(k=D,R):k},R.base=function(D){return arguments.length?(tt=D,R):tt},R}function zt(){var T=function(D){return D[0]},k=function(D){return D[1]},tt;function Y(R){var D=ft(R,T,k),j=B(D,4),q=j[0],dt=j[1],St=j[2],W=j[3],H=q.length,z=0,Q=0,nt=0,U=0,It=0,Tt,Ft,lt,Ct;for(Tt=0;Ttte&&(te=ve))});var ae=nt-z*z,we=z*ae-Q*Q,re=(It*z-U*Q)/we,xe=(U*ae-It*Q)/we,Se=-re*z,_e=function(de){return de=de-St,re*de*de+xe*de+Se+W},ce=h(Ut,te,_e);return ce.a=re,ce.b=xe-2*re*St,ce.c=Se-xe*St+re*St*St+W,ce.predict=_e,ce.rSquared=et(R,T,k,gt,_e),ce}return Y.domain=function(R){return arguments.length?(tt=R,Y):tt},Y.x=function(R){return arguments.length?(T=R,Y):T},Y.y=function(R){return arguments.length?(k=R,Y):k},Y}function qt(){var T=function(j){return j[0]},k=function(j){return j[1]},tt=3,Y;function R(D){if(tt===1){var j=N().x(T).y(k).domain(Y)(D);return j.coefficients=[j.b,j.a],delete j.a,delete j.b,j}if(tt===2){var q=zt().x(T).y(k).domain(Y)(D);return q.coefficients=[q.c,q.b,q.a],delete q.a,delete q.b,delete q.c,q}var dt=ft(D,T,k),St=B(dt,4),W=St[0],H=St[1],z=St[2],Q=St[3],nt=W.length,U=[],It=[],Tt=tt+1,Ft=0,lt=0,Ct=Y?+Y[0]:Infinity,gt=Y?+Y[1]:-Infinity;ct(D,T,k,function(_e,ce){++lt,Ft+=(ce-Ft)/lt,Y||(_egt&&(gt=_e))});var Rt,Ut,te,ae,we;for(Rt=0;Rt=0;--D)for(q=k[D],dt=1,R[D]+=q,j=1;j<=D;++j)dt*=(D+1-j)/j,R[D-j]+=q*Math.pow(tt,j)*dt;return R[0]+=Y,R}function se(T){var k=T.length-1,tt=[],Y,R,D,j,q;for(Y=0;YMath.abs(T[Y][j])&&(j=R);for(D=Y;D=Y;D--)T[D][R]-=T[D][Y]*T[Y][R]/T[Y][Y]}for(R=k-1;R>=0;--R){for(q=0,D=R+1;Dz&&(z=lt))});var Q=J(j,q,dt,St),nt=B(Q,2),U=nt[0],It=nt[1];U=Math.exp(U);var Tt=function(Ct){return U*Math.pow(Ct,It)},Ft=h(H,z,Tt);return Ft.a=U,Ft.b=It,Ft.predict=Tt,Ft.rSquared=et(R,T,k,W,Tt),Ft}return Y.domain=function(R){return arguments.length?(tt=R,Y):tt},Y.x=function(R){return arguments.length?(T=R,Y):T},Y.y=function(R){return arguments.length?(k=R,Y):k},Y}M.regressionExp=E,M.regressionLinear=N,M.regressionLoess=ot,M.regressionLog=Mt,M.regressionPoly=qt,M.regressionPow=jt,M.regressionQuad=zt,Object.defineProperty(M,"__esModule",{value:!0})})},87026:function(Pt,st){(function(M,B){B(st)})(this,function(M){"use strict";function B(N,$,L,X){X=X||{};var ot=X.maxIterations||100,ht=X.tolerance||1e-10,bt=N($),rt=N(L),Mt=L-$;if(bt*rt>0)throw"Initial bisect points must have opposite signs";if(bt===0)return $;if(rt===0)return L;for(var zt=0;zt=0&&($=qt),Math.abs(Mt)=T[jt-1].fx){var Q=!1;if(j.fx>z.fx?(et(q,1+qt,D,-qt,z),q.fx=N(q),q.fx=1)break;for(k=1;krt+ht*ot*Mt||zt>=Y)tt=ot;else{if(Math.abs(Yt)<=-bt*Mt)return ot;Yt*(tt-k)>=0&&(tt=k),k=ot,Y=zt}return 0}for(var T=0;T<10;++T){if(et(X.x,1,L.x,ot,$),zt=X.fx=N(X.x,X.fxprime),Yt=_t(X.fxprime,$),zt>rt+ht*ot*Mt||T&&zt>=qt)return jt(se,ot,qt);if(Math.abs(Yt)<=-bt*Mt)return ot;if(Yt>=0)return jt(ot,se,zt);qt=zt,se=ot,ot*=2}return ot}function h(N,$,L){var X={x:$.slice(),fx:0,fxprime:$.slice()},ot={x:$.slice(),fx:0,fxprime:$.slice()},ht=$.slice(),bt,rt,Mt=1,zt;L=L||{},zt=L.maxIterations||$.length*20,X.fx=N(X.x,X.fxprime),bt=X.fxprime.slice(),ct(bt,X.fxprime,-1);for(var qt=0;qt=ot.length)){var tt=Math.max(k-J,0),Y=k,R=Math.min(k+J,ot.length-1),D=tt-(k-J),j=k+J-R,q=rt[-J-1+D]||0,dt=rt[-J-1+j]||0,St=Mt/(Mt-q-dt);D>0&&(qt+=St*(D-1)*zt);var W=Math.max(0,k-J+1);ft.inside(0,ot.length-1,W)&&(ot[W].y+=St*1*zt),ft.inside(0,ot.length-1,Y+1)&&(ot[Y+1].y-=St*2*zt),ft.inside(0,ot.length-1,R+1)&&(ot[R+1].y+=St*1*zt)}});var Yt=qt,se=0,jt=0;return ot.forEach(function(T){se+=T.y,Yt+=se,T.y=Yt,jt+=Yt}),jt>0&&ot.forEach(function(T){T.y/=jt}),ot};function et(K,g){for(var h={},J=0,E=-g;E<=g;E++)J+=K(E/g),h[E]=J;return h}Pt.exports.getExpectedValueFromPdf=function(K){if(!(!K||K.length===0)){var g=0;return K.forEach(function(h){g+=h.x*h.y}),g}},Pt.exports.getXWithLeftTailArea=function(K,g){if(!(!K||K.length===0)){for(var h=0,J=0,E=0;E=g));E++);return K[J].x}},Pt.exports.getPerplexity=function(K){if(!(!K||K.length===0)){var g=0;return K.forEach(function(h){var J=Math.log(h.y);isFinite(J)&&(g+=h.y*J)}),g=-g/wt,Math.pow(2,g)}}},55168:function(Pt,st){"use strict";Object.defineProperty(st,"__esModule",{value:!0}),st.SensorTabIndex=st.SensorClassName=st.SizeSensorId=void 0;var M="size-sensor-id";st.SizeSensorId=M;var B="size-sensor-object";st.SensorClassName=B;var it="-1";st.SensorTabIndex=it},12177:function(Pt,st){"use strict";Object.defineProperty(st,"__esModule",{value:!0}),st.default=void 0;var M=function(it){var wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:60,_t=null;return function(){for(var ft=this,ct=arguments.length,et=new Array(ct),K=0;K");return t}return{Provider:S,useContainer:g}}function x(D){return D.useContainer()}},38069:function(ge,I,o){"use strict";o.d(I,{ZP:function(){return pe}});var c=o(67294);function w(n,r){return g(n)||S(n,r)||D(n,r)||x()}function x(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function D(n,r){if(!!n){if(typeof n=="string")return U(n,r);var a=Object.prototype.toString.call(n).slice(8,-1);if(a==="Object"&&n.constructor&&(a=n.constructor.name),a==="Map"||a==="Set")return Array.from(n);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return U(n,r)}}function U(n,r){(r==null||r>n.length)&&(r=n.length);for(var a=0,l=new Array(r);an.length)&&(r=n.length);for(var a=0,l=new Array(r);a");return n}return{Provider:p,useContainer:g}}function S(O){return O.useContainer()}},38069:function(ve,N,o){"use strict";o.d(N,{ZP:function(){return De}});var d=o(67294);function _(t,r){return g(t)||p(t,r)||O(t,r)||S()}function S(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function O(t,r){if(!!t){if(typeof t=="string")return W(t,r);var a=Object.prototype.toString.call(t).slice(8,-1);if(a==="Object"&&t.constructor&&(a=t.constructor.name),a==="Map"||a==="Set")return Array.from(t);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return W(t,r)}}function W(t,r){(r==null||r>t.length)&&(r=t.length);for(var a=0,s=new Array(r);at.length)&&(r=t.length);for(var a=0,s=new Array(r);ao.top-r)return r+e.top}function ue(o,e,r){if(r!==void 0&&e.bottom=0;d--)(s=o[d])&&(i=(a<3?s(i):a>3?s(e,r,i):s(e,r))||i);return a>3&&i&&Object.defineProperty(e,r,i),i};function te(){return typeof window!="undefined"?window:null}var q;(function(o){o[o.None=0]="None",o[o.Prepare=1]="Prepare"})(q||(q={}));var re=function(o){(0,O.Z)(r,o);var e=(0,$.Z)(r);function r(){var t;return(0,H.Z)(this,r),t=e.apply(this,arguments),t.state={status:q.None,lastAffix:!1,prevTarget:null},t.getOffsetTop=function(){var a=t.props,i=a.offsetBottom,s=a.offsetTop;return i===void 0&&s===void 0?0:s},t.getOffsetBottom=function(){return t.props.offsetBottom},t.savePlaceholderNode=function(a){t.placeholderNode=a},t.saveFixedNode=function(a){t.fixedNode=a},t.measure=function(){var a=t.state,i=a.status,s=a.lastAffix,d=t.props.onChange,u=t.getTargetFunc();if(!(i!==q.Prepare||!t.fixedNode||!t.placeholderNode||!u)){var v=t.getOffsetTop(),m=t.getOffsetBottom(),g=u();if(!!g){var c={status:q.None},y=V(g),f=V(t.placeholderNode),b=oe(f,y,v),p=ue(f,y,m);f.top===0&&f.left===0&&f.width===0&&f.height===0||(b!==void 0?(c.affixStyle={position:"fixed",top:b,width:f.width,height:f.height},c.placeholderStyle={width:f.width,height:f.height}):p!==void 0&&(c.affixStyle={position:"fixed",bottom:p,width:f.width,height:f.height},c.placeholderStyle={width:f.width,height:f.height}),c.lastAffix=!!c.affixStyle,d&&s!==c.lastAffix&&d(c.lastAffix),t.setState(c))}}},t.prepareMeasure=function(){if(t.setState({status:q.Prepare,affixStyle:void 0,placeholderStyle:void 0}),!1)var a},t}return(0,k.Z)(r,[{key:"getTargetFunc",value:function(){var a=this.context.getTargetContainer,i=this.props.target;return i!==void 0?i:a!=null?a:te}},{key:"componentDidMount",value:function(){var a=this,i=this.getTargetFunc();i&&(this.timeout=setTimeout(function(){E(i(),a),a.updatePosition()}))}},{key:"componentDidUpdate",value:function(a){var i=this.state.prevTarget,s=this.getTargetFunc(),d=(s==null?void 0:s())||null;i!==d&&(le(this),d&&(E(d,this),this.updatePosition()),this.setState({prevTarget:d})),(a.offsetTop!==this.props.offsetTop||a.offsetBottom!==this.props.offsetBottom)&&this.updatePosition(),this.measure()}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timeout),le(this),this.updatePosition.cancel(),this.lazyUpdatePosition.cancel()}},{key:"updatePosition",value:function(){this.prepareMeasure()}},{key:"lazyUpdatePosition",value:function(){var a=this.getTargetFunc(),i=this.state.affixStyle;if(a&&i){var s=this.getOffsetTop(),d=this.getOffsetBottom(),u=a();if(u&&this.placeholderNode){var v=V(u),m=V(this.placeholderNode),g=oe(m,v,s),c=ue(m,v,d);if(g!==void 0&&i.top===g||c!==void 0&&i.bottom===c)return}}this.prepareMeasure()}},{key:"render",value:function(){var a=this,i=this.state,s=i.affixStyle,d=i.placeholderStyle,u=this.props,v=u.affixPrefixCls,m=u.children,g=N()((0,L.Z)({},v,!!s)),c=(0,ee.Z)(this.props,["prefixCls","offsetTop","offsetBottom","target","onChange","affixPrefixCls"]);return l.createElement(W.Z,{onResize:function(){a.updatePosition()}},l.createElement("div",(0,Z.Z)({},c,{ref:this.savePlaceholderNode}),s&&l.createElement("div",{style:d,"aria-hidden":"true"}),l.createElement("div",{className:g,ref:this.saveFixedNode,style:s},l.createElement(W.Z,{onResize:function(){a.updatePosition()}},m))))}}]),r}(l.Component);re.contextType=D.E_,se([Y()],re.prototype,"updatePosition",null),se([Y()],re.prototype,"lazyUpdatePosition",null);var Ie=l.forwardRef(function(o,e){var r=o.prefixCls,t=l.useContext(D.E_),a=t.getPrefixCls,i=a("affix",r),s=(0,Z.Z)((0,Z.Z)({},o),{affixPrefixCls:i});return l.createElement(re,(0,Z.Z)({},s,{ref:e}))}),Le=Ie,Ft=n(84305),xe=n(39559),Kt=n(59903),Ht=n(94233),zt=n(81262),$t=n(59250),wt=n(30887),Gt=n(49111),Ce=n(28481),Ue=n(6700),We=n(93488),Fe=n(30470),Ke=n(51890),He=n(50344),ze=n(28682),$e=n(96159),we=n(57254),Ge=n(81555),Xe=function(o,e){var r={};for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&e.indexOf(t)<0&&(r[t]=o[t]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,t=Object.getOwnPropertySymbols(o);a0){var M=[];x=d.map(function(C){var F=Ee(C.path,c);F&&M.push(F);var U;C.children&&C.children.length&&(U=l.createElement(ze.Z,{items:C.children.map(function(K){return{key:K.path||K.breadcrumbName,label:m(K,c,d,ke(M,K.path,c))}})}));var w={separator:a};return U&&(w.overlay=U),l.createElement(ye,(0,Z.Z)({},w,{key:F||C.breadcrumbName}),m(C,c,d,M))})}else u&&(x=(0,He.Z)(u).map(function(C,F){return C&&(0,$e.Tm)(C,{separator:a,key:F})}));var j=N()(T,(0,L.Z)({},"".concat(T,"-rtl"),p==="rtl"),s);return l.createElement("nav",(0,Z.Z)({className:j,style:i},y),l.createElement("ol",null,x))};he.Item=ye,he.Separator=Ye;var _e=he,qe=_e,et=n(42051),tt=n(19650),rt=n(34952),at=function(e,r,t){return!r||!t?null:l.createElement(et.Z,{componentName:"PageHeader"},function(a){return l.createElement("div",{className:"".concat(e,"-back")},l.createElement(rt.Z,{onClick:function(s){t==null||t(s)},className:"".concat(e,"-back-button"),"aria-label":a.back},r))})},nt=function(e){return l.createElement(qe,(0,Z.Z)({},e))},ot=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"ltr";return e.backIcon!==void 0?e.backIcon:r==="rtl"?l.createElement(We.Z,null):l.createElement(Ue.Z,null)},it=function(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"ltr",a=r.title,i=r.avatar,s=r.subTitle,d=r.tags,u=r.extra,v=r.onBack,m="".concat(e,"-heading"),g=a||s||d||u;if(!g)return null;var c=ot(r,t),y=at(e,c,v),f=y||i||g;return l.createElement("div",{className:m},f&&l.createElement("div",{className:"".concat(m,"-left")},y,i&&l.createElement(Ke.C,(0,Z.Z)({},i)),a&&l.createElement("span",{className:"".concat(m,"-title"),title:typeof a=="string"?a:void 0},a),s&&l.createElement("span",{className:"".concat(m,"-sub-title"),title:typeof s=="string"?s:void 0},s),d&&l.createElement("span",{className:"".concat(m,"-tags")},d)),u&&l.createElement("span",{className:"".concat(m,"-extra")},l.createElement(tt.Z,null,u)))},lt=function(e,r){return r?l.createElement("div",{className:"".concat(e,"-footer")},r):null},st=function(e,r){return l.createElement("div",{className:"".concat(e,"-content")},r)},dt=function(e){var r=(0,Fe.Z)(!1),t=(0,Ce.Z)(r,2),a=t[0],i=t[1],s=function(u){var v=u.width;i(v<768,!0)};return l.createElement(D.C,null,function(d){var u,v=d.getPrefixCls,m=d.pageHeader,g=d.direction,c,y=e.prefixCls,f=e.style,b=e.footer,p=e.children,x=e.breadcrumb,T=e.breadcrumbRender,M=e.className,j=!0;"ghost"in e?j=e.ghost:m&&"ghost"in m&&(j=m.ghost);var C=v("page-header",y),F=function(){return(x==null?void 0:x.routes)?nt(x):null},U=F(),w=x&&"props"in x,K=(c=T==null?void 0:T(e,U))!==null&&c!==void 0?c:U,A=w?x:K,ie=N()(C,M,(u={"has-breadcrumb":!!A,"has-footer":!!b},(0,L.Z)(u,"".concat(C,"-ghost"),j),(0,L.Z)(u,"".concat(C,"-rtl"),g==="rtl"),(0,L.Z)(u,"".concat(C,"-compact"),a),u));return l.createElement(W.Z,{onResize:s},l.createElement("div",{className:ie,style:f},A,it(C,e,g),p&&st(C,p),lt(C,b)))})},ct=dt,pe=n(81253),h=n(28991),Xt=n(18106),Ze=n(86629),P=n(85893),Oe=n(64335),ft=n(85224),ut=n(21349),vt=n(83832),mt=function(e){if(!e)return 1;var r=e.backingStorePixelRatio||e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/r},ht=function(e){var r=e.children,t=e.style,a=e.className,i=e.markStyle,s=e.markClassName,d=e.zIndex,u=d===void 0?9:d,v=e.gapX,m=v===void 0?212:v,g=e.gapY,c=g===void 0?222:g,y=e.width,f=y===void 0?120:y,b=e.height,p=b===void 0?64:b,x=e.rotate,T=x===void 0?-22:x,M=e.image,j=e.content,C=e.offsetLeft,F=e.offsetTop,U=e.fontStyle,w=U===void 0?"normal":U,K=e.fontWeight,A=K===void 0?"normal":K,ie=e.fontColor,ge=ie===void 0?"rgba(0,0,0,.15)":ie,Re=e.fontSize,Ne=Re===void 0?16:Re,Te=e.fontFamily,Me=Te===void 0?"sans-serif":Te,Ot=e.prefixCls,Rt=(0,l.useContext)(xe.ZP.ConfigContext),Nt=Rt.getPrefixCls,Be=Nt("pro-layout-watermark",Ot),Tt=N()("".concat(Be,"-wrapper"),a),Mt=N()(Be,s),Bt=(0,l.useState)(""),De=(0,Ce.Z)(Bt,2),Se=De[0],je=De[1];return(0,l.useEffect)(function(){var de=document.createElement("canvas"),J=de.getContext("2d"),ae=mt(J),Dt="".concat((m+f)*ae,"px"),St="".concat((c+p)*ae,"px"),jt=C||m/2,At=F||c/2;if(de.setAttribute("width",Dt),de.setAttribute("height",St),J){J.translate(jt*ae,At*ae),J.rotate(Math.PI/180*Number(T));var It=f*ae,Ae=p*ae;if(M){var ce=new Image;ce.crossOrigin="anonymous",ce.referrerPolicy="no-referrer",ce.src=M,ce.onload=function(){J.drawImage(ce,0,0,It,Ae),je(de.toDataURL())}}else if(j){var Lt=Number(Ne)*ae;J.font="".concat(w," normal ").concat(A," ").concat(Lt,"px/").concat(Ae,"px ").concat(Me),J.fillStyle=ge,Array.isArray(j)?j==null||j.forEach(function(Ut,Wt){return J.fillText(Ut,0,Wt*50)}):J.fillText(j,0,0),je(de.toDataURL())}}else console.error("\u5F53\u524D\u73AF\u5883\u4E0D\u652F\u6301Canvas")},[m,c,C,F,T,w,A,f,p,Me,ge,M,j,Ne]),(0,P.jsxs)("div",{style:(0,h.Z)({position:"relative"},t),className:Tt,children:[r,(0,P.jsx)("div",{className:Mt,style:(0,h.Z)((0,h.Z)({zIndex:u,position:"absolute",left:0,top:0,width:"100%",height:"100%",backgroundSize:"".concat(m+f,"px"),pointerEvents:"none",backgroundRepeat:"repeat"},Se?{backgroundImage:"url('".concat(Se,"')")}:null),i)})]})},gt=ht,Yt=n(12395),xt=["title","content","pageHeaderRender","header","prefixedClassName","extraContent","style","prefixCls","breadcrumbRender"],Ct=["children","loading","className","style","footer","affixProps","ghost","fixedHeader","breadcrumbRender"];function Pt(o){return(0,I.Z)(o)==="object"?o:{spinning:o}}var yt=function(e){var r=e.tabList,t=e.tabActiveKey,a=e.onTabChange,i=e.tabBarExtraContent,s=e.tabProps,d=e.prefixedClassName;return Array.isArray(r)||i?(0,P.jsx)(Ze.Z,(0,h.Z)((0,h.Z)({className:"".concat(d,"-tabs"),activeKey:t,onChange:function(v){a&&a(v)},tabBarExtraContent:i},s),{},{children:r==null?void 0:r.map(function(u,v){return(0,l.createElement)(Ze.Z.TabPane,(0,h.Z)((0,h.Z)({},u),{},{tab:u.tab,key:u.key||v}))})})):null},bt=function(e,r,t){return!e&&!r?null:(0,P.jsx)("div",{className:"".concat(t,"-detail"),children:(0,P.jsx)("div",{className:"".concat(t,"-main"),children:(0,P.jsxs)("div",{className:"".concat(t,"-row"),children:[e&&(0,P.jsx)("div",{className:"".concat(t,"-content"),children:e}),r&&(0,P.jsx)("div",{className:"".concat(t,"-extraContent"),children:r})]})})})},Vt=function(e){var r=useContext(RouteContext);return _jsx("div",{style:{height:"100%",display:"flex",alignItems:"center"},children:_jsx(_Breadcrumb,_objectSpread(_objectSpread(_objectSpread({},r==null?void 0:r.breadcrumb),r==null?void 0:r.breadcrumbProps),e))})},Et=function(e){var r,t=(0,l.useContext)(Oe.Z),a=e.title,i=e.content,s=e.pageHeaderRender,d=e.header,u=e.prefixedClassName,v=e.extraContent,m=e.style,g=e.prefixCls,c=e.breadcrumbRender,y=(0,pe.Z)(e,xt),f=(0,l.useMemo)(function(){if(!!c)return c},[c]);if(s===!1)return null;if(s)return(0,P.jsxs)(P.Fragment,{children:[" ",s((0,h.Z)((0,h.Z)({},e),t))]});var b=a;!a&&a!==!1&&(b=t.title);var p=(0,h.Z)((0,h.Z)((0,h.Z)({},t),{},{title:b},y),{},{footer:yt((0,h.Z)((0,h.Z)({},y),{},{breadcrumbRender:c,prefixedClassName:u}))},d),x=p.breadcrumb,T=(!x||!(x==null?void 0:x.itemRender)&&!(x==null||(r=x.routes)===null||r===void 0?void 0:r.length))&&!c;return["title","subTitle","extra","tags","footer","avatar","backIcon"].every(function(M){return!p[M]})&&T&&!i&&!v?null:(0,P.jsx)("div",{className:"".concat(u,"-warp"),children:(0,P.jsx)(ct,(0,h.Z)((0,h.Z)({},p),{},{breadcrumb:c===!1?void 0:(0,h.Z)((0,h.Z)({},p.breadcrumb),t.breadcrumbProps),breadcrumbRender:f,prefixCls:g,children:(d==null?void 0:d.children)||bt(i,v,u)}))})},pt=function(e){var r,t,a=e.children,i=e.loading,s=i===void 0?!1:i,d=e.className,u=e.style,v=e.footer,m=e.affixProps,g=e.ghost,c=e.fixedHeader,y=e.breadcrumbRender,f=(0,pe.Z)(e,Ct),b=(0,l.useContext)(Oe.Z),p=(0,l.useContext)(xe.ZP.ConfigContext),x=p.getPrefixCls,T=e.prefixCls||x("pro"),M="".concat(T,"-page-container"),j=N()(M,d,(r={},(0,L.Z)(r,"".concat(T,"-page-container-ghost"),g),(0,L.Z)(r,"".concat(T,"-page-container-with-footer"),v),r)),C=(0,l.useMemo)(function(){return a?(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)("div",{className:"".concat(M,"-children-content"),children:a}),b.hasFooterToolbar&&(0,P.jsx)("div",{style:{height:48,marginTop:24}})]}):null},[a,M,b.hasFooterToolbar]),F=(0,l.useMemo)(function(){var A;return y==!1?!1:y||(f==null||(A=f.header)===null||A===void 0?void 0:A.breadcrumbRender)},[y,f==null||(t=f.header)===null||t===void 0?void 0:t.breadcrumbRender]),U=(0,P.jsx)(Et,(0,h.Z)((0,h.Z)({},f),{},{breadcrumbRender:F,ghost:g,prefixCls:void 0,prefixedClassName:M})),w=(0,l.useMemo)(function(){if(l.isValidElement(s))return s;if(typeof s=="boolean"&&!s)return null;var A=Pt(s);return A.spinning?(0,P.jsx)(vt.Z,(0,h.Z)({},A)):null},[s]),K=(0,l.useMemo)(function(){var A=w||C;if(e.waterMarkProps||b.waterMarkProps){var ie=(0,h.Z)((0,h.Z)({},b.waterMarkProps),e.waterMarkProps);return(0,P.jsx)(gt,(0,h.Z)((0,h.Z)({},ie),{},{children:A}))}return A},[e.waterMarkProps,b.waterMarkProps,w,C]);return(0,P.jsxs)("div",{style:u,className:j,children:[c&&U?(0,P.jsx)(Le,(0,h.Z)((0,h.Z)({offsetTop:b.hasHeader&&b.fixedHeader?b.headerHeight:0},m),{},{children:U})):U,K&&(0,P.jsx)(ut.Z,{children:K}),v&&(0,P.jsx)(ft.Z,{prefixCls:T,children:v})]})},Zt=pt},56264:function(){},53645:function(){},12395:function(){},70883:function(){},81262:function(){},59903:function(){},34952:function(fe,G,n){"use strict";var B=n(22122),Q=n(15105),Z=n(67294),L=function(O,$){var I={};for(var R in O)Object.prototype.hasOwnProperty.call(O,R)&&$.indexOf(R)<0&&(I[R]=O[R]);if(O!=null&&typeof Object.getOwnPropertySymbols=="function")for(var N=0,R=Object.getOwnPropertySymbols(O);No.top-r)return r+e.top}function ue(o,e,r){if(r!==void 0&&e.bottom=0;d--)(s=o[d])&&(i=(a<3?s(i):a>3?s(e,r,i):s(e,r))||i);return a>3&&i&&Object.defineProperty(e,r,i),i};function te(){return typeof window!="undefined"?window:null}var q;(function(o){o[o.None=0]="None",o[o.Prepare=1]="Prepare"})(q||(q={}));var re=function(o){(0,O.Z)(r,o);var e=(0,$.Z)(r);function r(){var t;return(0,H.Z)(this,r),t=e.apply(this,arguments),t.state={status:q.None,lastAffix:!1,prevTarget:null},t.getOffsetTop=function(){var a=t.props,i=a.offsetBottom,s=a.offsetTop;return i===void 0&&s===void 0?0:s},t.getOffsetBottom=function(){return t.props.offsetBottom},t.savePlaceholderNode=function(a){t.placeholderNode=a},t.saveFixedNode=function(a){t.fixedNode=a},t.measure=function(){var a=t.state,i=a.status,s=a.lastAffix,d=t.props.onChange,u=t.getTargetFunc();if(!(i!==q.Prepare||!t.fixedNode||!t.placeholderNode||!u)){var v=t.getOffsetTop(),m=t.getOffsetBottom(),g=u();if(!!g){var c={status:q.None},y=V(g),f=V(t.placeholderNode),b=oe(f,y,v),p=ue(f,y,m);f.top===0&&f.left===0&&f.width===0&&f.height===0||(b!==void 0?(c.affixStyle={position:"fixed",top:b,width:f.width,height:f.height},c.placeholderStyle={width:f.width,height:f.height}):p!==void 0&&(c.affixStyle={position:"fixed",bottom:p,width:f.width,height:f.height},c.placeholderStyle={width:f.width,height:f.height}),c.lastAffix=!!c.affixStyle,d&&s!==c.lastAffix&&d(c.lastAffix),t.setState(c))}}},t.prepareMeasure=function(){if(t.setState({status:q.Prepare,affixStyle:void 0,placeholderStyle:void 0}),!1)var a},t}return(0,k.Z)(r,[{key:"getTargetFunc",value:function(){var a=this.context.getTargetContainer,i=this.props.target;return i!==void 0?i:a!=null?a:te}},{key:"componentDidMount",value:function(){var a=this,i=this.getTargetFunc();i&&(this.timeout=setTimeout(function(){E(i(),a),a.updatePosition()}))}},{key:"componentDidUpdate",value:function(a){var i=this.state.prevTarget,s=this.getTargetFunc(),d=(s==null?void 0:s())||null;i!==d&&(le(this),d&&(E(d,this),this.updatePosition()),this.setState({prevTarget:d})),(a.offsetTop!==this.props.offsetTop||a.offsetBottom!==this.props.offsetBottom)&&this.updatePosition(),this.measure()}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timeout),le(this),this.updatePosition.cancel(),this.lazyUpdatePosition.cancel()}},{key:"updatePosition",value:function(){this.prepareMeasure()}},{key:"lazyUpdatePosition",value:function(){var a=this.getTargetFunc(),i=this.state.affixStyle;if(a&&i){var s=this.getOffsetTop(),d=this.getOffsetBottom(),u=a();if(u&&this.placeholderNode){var v=V(u),m=V(this.placeholderNode),g=oe(m,v,s),c=ue(m,v,d);if(g!==void 0&&i.top===g||c!==void 0&&i.bottom===c)return}}this.prepareMeasure()}},{key:"render",value:function(){var a=this,i=this.state,s=i.affixStyle,d=i.placeholderStyle,u=this.props,v=u.affixPrefixCls,m=u.children,g=N()((0,L.Z)({},v,!!s)),c=(0,ee.Z)(this.props,["prefixCls","offsetTop","offsetBottom","target","onChange","affixPrefixCls"]);return l.createElement(W.Z,{onResize:function(){a.updatePosition()}},l.createElement("div",(0,Z.Z)({},c,{ref:this.savePlaceholderNode}),s&&l.createElement("div",{style:d,"aria-hidden":"true"}),l.createElement("div",{className:g,ref:this.saveFixedNode,style:s},l.createElement(W.Z,{onResize:function(){a.updatePosition()}},m))))}}]),r}(l.Component);re.contextType=D.E_,se([Y()],re.prototype,"updatePosition",null),se([Y()],re.prototype,"lazyUpdatePosition",null);var Ie=l.forwardRef(function(o,e){var r=o.prefixCls,t=l.useContext(D.E_),a=t.getPrefixCls,i=a("affix",r),s=(0,Z.Z)((0,Z.Z)({},o),{affixPrefixCls:i});return l.createElement(re,(0,Z.Z)({},s,{ref:e}))}),Le=Ie,Ft=n(84305),xe=n(39559),Kt=n(59903),Ht=n(94233),zt=n(81262),$t=n(59250),wt=n(30887),Gt=n(49111),Ce=n(28481),Ue=n(6700),We=n(93488),Fe=n(30470),Ke=n(51890),He=n(50344),ze=n(28682),$e=n(96159),we=n(57254),Ge=n(81555),Xe=function(o,e){var r={};for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&e.indexOf(t)<0&&(r[t]=o[t]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,t=Object.getOwnPropertySymbols(o);a0){var M=[];x=d.map(function(C){var F=Ee(C.path,c);F&&M.push(F);var U;C.children&&C.children.length&&(U=l.createElement(ze.Z,{items:C.children.map(function(K){return{key:K.path||K.breadcrumbName,label:m(K,c,d,ke(M,K.path,c))}})}));var w={separator:a};return U&&(w.overlay=U),l.createElement(ye,(0,Z.Z)({},w,{key:F||C.breadcrumbName}),m(C,c,d,M))})}else u&&(x=(0,He.Z)(u).map(function(C,F){return C&&(0,$e.Tm)(C,{separator:a,key:F})}));var j=N()(T,(0,L.Z)({},"".concat(T,"-rtl"),p==="rtl"),s);return l.createElement("nav",(0,Z.Z)({className:j,style:i},y),l.createElement("ol",null,x))};he.Item=ye,he.Separator=Ye;var _e=he,qe=_e,et=n(42051),tt=n(19650),rt=n(34952),at=function(e,r,t){return!r||!t?null:l.createElement(et.Z,{componentName:"PageHeader"},function(a){return l.createElement("div",{className:"".concat(e,"-back")},l.createElement(rt.Z,{onClick:function(s){t==null||t(s)},className:"".concat(e,"-back-button"),"aria-label":a.back},r))})},nt=function(e){return l.createElement(qe,(0,Z.Z)({},e))},ot=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"ltr";return e.backIcon!==void 0?e.backIcon:r==="rtl"?l.createElement(We.Z,null):l.createElement(Ue.Z,null)},it=function(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"ltr",a=r.title,i=r.avatar,s=r.subTitle,d=r.tags,u=r.extra,v=r.onBack,m="".concat(e,"-heading"),g=a||s||d||u;if(!g)return null;var c=ot(r,t),y=at(e,c,v),f=y||i||g;return l.createElement("div",{className:m},f&&l.createElement("div",{className:"".concat(m,"-left")},y,i&&l.createElement(Ke.C,(0,Z.Z)({},i)),a&&l.createElement("span",{className:"".concat(m,"-title"),title:typeof a=="string"?a:void 0},a),s&&l.createElement("span",{className:"".concat(m,"-sub-title"),title:typeof s=="string"?s:void 0},s),d&&l.createElement("span",{className:"".concat(m,"-tags")},d)),u&&l.createElement("span",{className:"".concat(m,"-extra")},l.createElement(tt.Z,null,u)))},lt=function(e,r){return r?l.createElement("div",{className:"".concat(e,"-footer")},r):null},st=function(e,r){return l.createElement("div",{className:"".concat(e,"-content")},r)},dt=function(e){var r=(0,Fe.Z)(!1),t=(0,Ce.Z)(r,2),a=t[0],i=t[1],s=function(u){var v=u.width;i(v<768,!0)};return l.createElement(D.C,null,function(d){var u,v=d.getPrefixCls,m=d.pageHeader,g=d.direction,c,y=e.prefixCls,f=e.style,b=e.footer,p=e.children,x=e.breadcrumb,T=e.breadcrumbRender,M=e.className,j=!0;"ghost"in e?j=e.ghost:m&&"ghost"in m&&(j=m.ghost);var C=v("page-header",y),F=function(){return(x==null?void 0:x.routes)?nt(x):null},U=F(),w=x&&"props"in x,K=(c=T==null?void 0:T(e,U))!==null&&c!==void 0?c:U,A=w?x:K,ie=N()(C,M,(u={"has-breadcrumb":!!A,"has-footer":!!b},(0,L.Z)(u,"".concat(C,"-ghost"),j),(0,L.Z)(u,"".concat(C,"-rtl"),g==="rtl"),(0,L.Z)(u,"".concat(C,"-compact"),a),u));return l.createElement(W.Z,{onResize:s},l.createElement("div",{className:ie,style:f},A,it(C,e,g),p&&st(C,p),lt(C,b)))})},ct=dt,pe=n(81253),h=n(28991),Xt=n(18106),Ze=n(95562),P=n(85893),Oe=n(64335),ft=n(85224),ut=n(21349),vt=n(83832),mt=function(e){if(!e)return 1;var r=e.backingStorePixelRatio||e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/r},ht=function(e){var r=e.children,t=e.style,a=e.className,i=e.markStyle,s=e.markClassName,d=e.zIndex,u=d===void 0?9:d,v=e.gapX,m=v===void 0?212:v,g=e.gapY,c=g===void 0?222:g,y=e.width,f=y===void 0?120:y,b=e.height,p=b===void 0?64:b,x=e.rotate,T=x===void 0?-22:x,M=e.image,j=e.content,C=e.offsetLeft,F=e.offsetTop,U=e.fontStyle,w=U===void 0?"normal":U,K=e.fontWeight,A=K===void 0?"normal":K,ie=e.fontColor,ge=ie===void 0?"rgba(0,0,0,.15)":ie,Re=e.fontSize,Ne=Re===void 0?16:Re,Te=e.fontFamily,Me=Te===void 0?"sans-serif":Te,Ot=e.prefixCls,Rt=(0,l.useContext)(xe.ZP.ConfigContext),Nt=Rt.getPrefixCls,Be=Nt("pro-layout-watermark",Ot),Tt=N()("".concat(Be,"-wrapper"),a),Mt=N()(Be,s),Bt=(0,l.useState)(""),De=(0,Ce.Z)(Bt,2),Se=De[0],je=De[1];return(0,l.useEffect)(function(){var de=document.createElement("canvas"),J=de.getContext("2d"),ae=mt(J),Dt="".concat((m+f)*ae,"px"),St="".concat((c+p)*ae,"px"),jt=C||m/2,At=F||c/2;if(de.setAttribute("width",Dt),de.setAttribute("height",St),J){J.translate(jt*ae,At*ae),J.rotate(Math.PI/180*Number(T));var It=f*ae,Ae=p*ae;if(M){var ce=new Image;ce.crossOrigin="anonymous",ce.referrerPolicy="no-referrer",ce.src=M,ce.onload=function(){J.drawImage(ce,0,0,It,Ae),je(de.toDataURL())}}else if(j){var Lt=Number(Ne)*ae;J.font="".concat(w," normal ").concat(A," ").concat(Lt,"px/").concat(Ae,"px ").concat(Me),J.fillStyle=ge,Array.isArray(j)?j==null||j.forEach(function(Ut,Wt){return J.fillText(Ut,0,Wt*50)}):J.fillText(j,0,0),je(de.toDataURL())}}else console.error("\u5F53\u524D\u73AF\u5883\u4E0D\u652F\u6301Canvas")},[m,c,C,F,T,w,A,f,p,Me,ge,M,j,Ne]),(0,P.jsxs)("div",{style:(0,h.Z)({position:"relative"},t),className:Tt,children:[r,(0,P.jsx)("div",{className:Mt,style:(0,h.Z)((0,h.Z)({zIndex:u,position:"absolute",left:0,top:0,width:"100%",height:"100%",backgroundSize:"".concat(m+f,"px"),pointerEvents:"none",backgroundRepeat:"repeat"},Se?{backgroundImage:"url('".concat(Se,"')")}:null),i)})]})},gt=ht,Yt=n(12395),xt=["title","content","pageHeaderRender","header","prefixedClassName","extraContent","style","prefixCls","breadcrumbRender"],Ct=["children","loading","className","style","footer","affixProps","ghost","fixedHeader","breadcrumbRender"];function Pt(o){return(0,I.Z)(o)==="object"?o:{spinning:o}}var yt=function(e){var r=e.tabList,t=e.tabActiveKey,a=e.onTabChange,i=e.tabBarExtraContent,s=e.tabProps,d=e.prefixedClassName;return Array.isArray(r)||i?(0,P.jsx)(Ze.Z,(0,h.Z)((0,h.Z)({className:"".concat(d,"-tabs"),activeKey:t,onChange:function(v){a&&a(v)},tabBarExtraContent:i},s),{},{children:r==null?void 0:r.map(function(u,v){return(0,l.createElement)(Ze.Z.TabPane,(0,h.Z)((0,h.Z)({},u),{},{tab:u.tab,key:u.key||v}))})})):null},bt=function(e,r,t){return!e&&!r?null:(0,P.jsx)("div",{className:"".concat(t,"-detail"),children:(0,P.jsx)("div",{className:"".concat(t,"-main"),children:(0,P.jsxs)("div",{className:"".concat(t,"-row"),children:[e&&(0,P.jsx)("div",{className:"".concat(t,"-content"),children:e}),r&&(0,P.jsx)("div",{className:"".concat(t,"-extraContent"),children:r})]})})})},Vt=function(e){var r=useContext(RouteContext);return _jsx("div",{style:{height:"100%",display:"flex",alignItems:"center"},children:_jsx(_Breadcrumb,_objectSpread(_objectSpread(_objectSpread({},r==null?void 0:r.breadcrumb),r==null?void 0:r.breadcrumbProps),e))})},Et=function(e){var r,t=(0,l.useContext)(Oe.Z),a=e.title,i=e.content,s=e.pageHeaderRender,d=e.header,u=e.prefixedClassName,v=e.extraContent,m=e.style,g=e.prefixCls,c=e.breadcrumbRender,y=(0,pe.Z)(e,xt),f=(0,l.useMemo)(function(){if(!!c)return c},[c]);if(s===!1)return null;if(s)return(0,P.jsxs)(P.Fragment,{children:[" ",s((0,h.Z)((0,h.Z)({},e),t))]});var b=a;!a&&a!==!1&&(b=t.title);var p=(0,h.Z)((0,h.Z)((0,h.Z)({},t),{},{title:b},y),{},{footer:yt((0,h.Z)((0,h.Z)({},y),{},{breadcrumbRender:c,prefixedClassName:u}))},d),x=p.breadcrumb,T=(!x||!(x==null?void 0:x.itemRender)&&!(x==null||(r=x.routes)===null||r===void 0?void 0:r.length))&&!c;return["title","subTitle","extra","tags","footer","avatar","backIcon"].every(function(M){return!p[M]})&&T&&!i&&!v?null:(0,P.jsx)("div",{className:"".concat(u,"-warp"),children:(0,P.jsx)(ct,(0,h.Z)((0,h.Z)({},p),{},{breadcrumb:c===!1?void 0:(0,h.Z)((0,h.Z)({},p.breadcrumb),t.breadcrumbProps),breadcrumbRender:f,prefixCls:g,children:(d==null?void 0:d.children)||bt(i,v,u)}))})},pt=function(e){var r,t,a=e.children,i=e.loading,s=i===void 0?!1:i,d=e.className,u=e.style,v=e.footer,m=e.affixProps,g=e.ghost,c=e.fixedHeader,y=e.breadcrumbRender,f=(0,pe.Z)(e,Ct),b=(0,l.useContext)(Oe.Z),p=(0,l.useContext)(xe.ZP.ConfigContext),x=p.getPrefixCls,T=e.prefixCls||x("pro"),M="".concat(T,"-page-container"),j=N()(M,d,(r={},(0,L.Z)(r,"".concat(T,"-page-container-ghost"),g),(0,L.Z)(r,"".concat(T,"-page-container-with-footer"),v),r)),C=(0,l.useMemo)(function(){return a?(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)("div",{className:"".concat(M,"-children-content"),children:a}),b.hasFooterToolbar&&(0,P.jsx)("div",{style:{height:48,marginTop:24}})]}):null},[a,M,b.hasFooterToolbar]),F=(0,l.useMemo)(function(){var A;return y==!1?!1:y||(f==null||(A=f.header)===null||A===void 0?void 0:A.breadcrumbRender)},[y,f==null||(t=f.header)===null||t===void 0?void 0:t.breadcrumbRender]),U=(0,P.jsx)(Et,(0,h.Z)((0,h.Z)({},f),{},{breadcrumbRender:F,ghost:g,prefixCls:void 0,prefixedClassName:M})),w=(0,l.useMemo)(function(){if(l.isValidElement(s))return s;if(typeof s=="boolean"&&!s)return null;var A=Pt(s);return A.spinning?(0,P.jsx)(vt.Z,(0,h.Z)({},A)):null},[s]),K=(0,l.useMemo)(function(){var A=w||C;if(e.waterMarkProps||b.waterMarkProps){var ie=(0,h.Z)((0,h.Z)({},b.waterMarkProps),e.waterMarkProps);return(0,P.jsx)(gt,(0,h.Z)((0,h.Z)({},ie),{},{children:A}))}return A},[e.waterMarkProps,b.waterMarkProps,w,C]);return(0,P.jsxs)("div",{style:u,className:j,children:[c&&U?(0,P.jsx)(Le,(0,h.Z)((0,h.Z)({offsetTop:b.hasHeader&&b.fixedHeader?b.headerHeight:0},m),{},{children:U})):U,K&&(0,P.jsx)(ut.Z,{children:K}),v&&(0,P.jsx)(ft.Z,{prefixCls:T,children:v})]})},Zt=pt},56264:function(){},53645:function(){},12395:function(){},70883:function(){},81262:function(){},59903:function(){},34952:function(fe,G,n){"use strict";var B=n(22122),Q=n(15105),Z=n(67294),L=function(O,$){var I={};for(var R in O)Object.prototype.hasOwnProperty.call(O,R)&&$.indexOf(R)<0&&(I[R]=O[R]);if(O!=null&&typeof Object.getOwnPropertySymbols=="function")for(var N=0,R=Object.getOwnPropertySymbols(O);N0&&arguments[0]!==void 0?arguments[0]:[],O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],M=p.length,e=O.length;if(Math.abs(M-e)!==1)return{add:!1,key:null};function y(z,_){var n=new Map;z.forEach(function(a){n.set(a,!0)});var r=_.filter(function(a){return!n.has(a)});return r.length===1?r[0]:null}return M ").concat(O);return O}var Ee=g.forwardRef(function(p,O){var M=p.prefixCls,e=p.data,y=p.selectable,z=p.checkable,_=p.expandedKeys,n=p.selectedKeys,r=p.checkedKeys,a=p.loadedKeys,v=p.loadingKeys,E=p.halfCheckedKeys,b=p.keyEntities,N=p.disabled,T=p.dragging,R=p.dragOverNodeKey,$=p.dropPosition,c=p.motion,H=p.height,U=p.itemHeight,Z=p.virtual,G=p.focusable,V=p.activeItem,de=p.focused,ce=p.tabIndex,ee=p.onKeyDown,he=p.onFocus,ue=p.onBlur,fe=p.onActiveChange,ye=p.onListChangeStart,Oe=p.onListChangeEnd,Te=(0,u.Z)(p,d),Le=g.useRef(null),be=g.useRef(null);g.useImperativeHandle(O,function(){return{scrollTo:function(Me){Le.current.scrollTo(Me)},getIndentWidth:function(){return be.current.offsetWidth}}});var Ue=g.useState(_),_e=(0,s.Z)(Ue,2),Xe=_e[0],Ve=_e[1],Je=g.useState(e),Ge=(0,s.Z)(Je,2),Ze=Ge[0],je=Ge[1],Qe=g.useState(e),ze=(0,s.Z)(Qe,2),qe=ze[0],Fe=ze[1],et=g.useState([]),Re=(0,s.Z)(et,2),it=Re[0],tt=Re[1],st=g.useState(null),rt=(0,s.Z)(st,2),lt=rt[0],nt=rt[1],ot=g.useRef(e);ot.current=e;function at(){var le=ot.current;je(le),Fe(le),tt([]),nt(null),Oe()}g.useEffect(function(){Ve(_);var le=k(Xe,_);if(le.key!==null)if(le.add){var Me=Ze.findIndex(function(We){var He=We.key;return He===le.key}),Ae=W(I(Ze,e,le.key),Z,H,U),Be=Ze.slice();Be.splice(Me+1,0,X),Fe(Be),tt(Ae),nt("show")}else{var Ie=e.findIndex(function(We){var He=We.key;return He===le.key}),we=W(I(e,Ze,le.key),Z,H,U),Ye=e.slice();Ye.splice(Ie+1,0,X),Fe(Ye),tt(we),nt("hide")}else Ze!==e&&(je(e),Fe(e))},[_,e]),g.useEffect(function(){T||at()},[T]);var ct=c?qe:e,dt={expandedKeys:_,selectedKeys:n,loadedKeys:a,loadingKeys:v,checkedKeys:r,halfCheckedKeys:E,dragOverNodeKey:R,dropPosition:$,keyEntities:b};return g.createElement(g.Fragment,null,de&&V&&g.createElement("span",{style:o,"aria-live":"assertive"},me(V)),g.createElement("div",null,g.createElement("input",{style:o,disabled:G===!1||N,tabIndex:G!==!1?ce:null,onKeyDown:ee,onFocus:he,onBlur:ue,value:"",onChange:K,"aria-label":"for screen reader"})),g.createElement("div",{className:"".concat(M,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},g.createElement("div",{className:"".concat(M,"-indent")},g.createElement("div",{ref:be,className:"".concat(M,"-indent-unit")}))),g.createElement(f.Z,(0,ie.Z)({},Te,{data:ct,itemKey:q,height:H,fullHeight:!1,virtual:Z,itemHeight:U,prefixCls:"".concat(M,"-list"),ref:Le,onVisibleChange:function(Me,Ae){var Be=new Set(Me),Ie=Ae.filter(function(we){return!Be.has(we)});Ie.some(function(we){return q(we)===m})&&at()}}),function(le){var Me=le.pos,Ae=(0,ie.Z)({},(h(le.data),le.data)),Be=le.title,Ie=le.key,we=le.isStart,Ye=le.isEnd,We=(0,i.km)(Ie,Me);delete Ae.key,delete Ae.children;var He=(0,i.H8)(We,dt);return g.createElement(D,(0,ie.Z)({},Ae,He,{title:Be,active:!!V&&Ie===V.key,pos:Me,data:le.data,isStart:we,isEnd:Ye,motion:c,motionNodes:Ie===m?it:null,motionType:lt,onMotionStart:ye,onMotionEnd:at,treeNodeRequiredProps:dt,onMouseMove:function(){fe(null)}}))}))});Ee.displayName="NodeList";var ke=Ee,Ne=l(17341);function Se(p){var O=p.dropPosition,M=p.dropLevelOffset,e=p.indent,y={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(O){case-1:y.top=0,y.left=-M*e;break;case 1:y.bottom=0,y.left=-M*e;break;case 0:y.bottom=0,y.left=e;break}return g.createElement("div",{style:y})}var pe=10,Ce=function(p){(0,Y.Z)(M,p);var O=(0,S.Z)(M);function M(){var e;(0,De.Z)(this,M);for(var y=arguments.length,z=new Array(y),_=0;_2&&arguments[2]!==void 0?arguments[2]:!1,E=e.state,b=E.dragChildrenKeys,N=E.dropPosition,T=E.dropTargetKey,R=E.dropTargetPos,$=E.dropAllowed;if(!!$){var c=e.props.onDrop;if(e.setState({dragOverNodeKey:null}),e.cleanDragState(),T!==null){var H=(0,se.Z)((0,se.Z)({},(0,i.H8)(T,e.getTreeNodeRequiredProps())),{},{active:((a=e.getActiveItem())===null||a===void 0?void 0:a.key)===T,data:e.state.keyEntities[T].node}),U=b.indexOf(T)!==-1;(0,Q.ZP)(!U,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Z=(0,C.yx)(R),G={event:n,node:(0,i.F)(H),dragNode:e.dragNode?(0,i.F)(e.dragNode.props):null,dragNodesKeys:[e.dragNode.props.eventKey].concat(b),dropToGap:N!==0,dropPosition:N+Number(Z[Z.length-1])};v||c==null||c(G),e.dragNode=null}}},e.cleanDragState=function(){var n=e.state.draggingNodeKey;n!==null&&e.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),e.dragStartMousePosition=null,e.currentMouseOverDroppableNodeKey=null},e.triggerExpandActionExpand=function(n,r){var a=e.state,v=a.expandedKeys,E=a.flattenNodes,b=r.expanded,N=r.key,T=r.isLeaf;if(!(T||n.shiftKey||n.metaKey||n.ctrlKey)){var R=E.filter(function(c){return c.key===N})[0],$=(0,i.F)((0,se.Z)((0,se.Z)({},(0,i.H8)(N,e.getTreeNodeRequiredProps())),{},{data:R.data}));e.setExpandedKeys(b?(0,C._5)(v,N):(0,C.L0)(v,N)),e.onNodeExpand(n,$)}},e.onNodeClick=function(n,r){var a=e.props,v=a.onClick,E=a.expandAction;E==="click"&&e.triggerExpandActionExpand(n,r),v==null||v(n,r)},e.onNodeDoubleClick=function(n,r){var a=e.props,v=a.onDoubleClick,E=a.expandAction;E==="doubleClick"&&e.triggerExpandActionExpand(n,r),v==null||v(n,r)},e.onNodeSelect=function(n,r){var a=e.state.selectedKeys,v=e.state,E=v.keyEntities,b=v.fieldNames,N=e.props,T=N.onSelect,R=N.multiple,$=r.selected,c=r[b.key],H=!$;H?R?a=(0,C.L0)(a,c):a=[c]:a=(0,C._5)(a,c);var U=a.map(function(Z){var G=E[Z];return G?G.node:null}).filter(function(Z){return Z});e.setUncontrolledState({selectedKeys:a}),T==null||T(a,{event:"select",selected:H,node:r,selectedNodes:U,nativeEvent:n.nativeEvent})},e.onNodeCheck=function(n,r,a){var v=e.state,E=v.keyEntities,b=v.checkedKeys,N=v.halfCheckedKeys,T=e.props,R=T.checkStrictly,$=T.onCheck,c=r.key,H,U={event:"check",node:r,checked:a,nativeEvent:n.nativeEvent};if(R){var Z=a?(0,C.L0)(b,c):(0,C._5)(b,c),G=(0,C._5)(N,c);H={checked:Z,halfChecked:G},U.checkedNodes=Z.map(function(ue){return E[ue]}).filter(function(ue){return ue}).map(function(ue){return ue.node}),e.setUncontrolledState({checkedKeys:Z})}else{var V=(0,Ne.S)([].concat((0,xe.Z)(b),[c]),!0,E),de=V.checkedKeys,ce=V.halfCheckedKeys;if(!a){var ee=new Set(de);ee.delete(c);var he=(0,Ne.S)(Array.from(ee),{checked:!1,halfCheckedKeys:ce},E);de=he.checkedKeys,ce=he.halfCheckedKeys}H=de,U.checkedNodes=[],U.checkedNodesPositions=[],U.halfCheckedKeys=ce,de.forEach(function(ue){var fe=E[ue];if(!!fe){var ye=fe.node,Oe=fe.pos;U.checkedNodes.push(ye),U.checkedNodesPositions.push({node:ye,pos:Oe})}}),e.setUncontrolledState({checkedKeys:de},!1,{halfCheckedKeys:ce})}$==null||$(H,U)},e.onNodeLoad=function(n){var r=n.key,a=new Promise(function(v,E){e.setState(function(b){var N=b.loadedKeys,T=N===void 0?[]:N,R=b.loadingKeys,$=R===void 0?[]:R,c=e.props,H=c.loadData,U=c.onLoad;if(!H||T.indexOf(r)!==-1||$.indexOf(r)!==-1)return null;var Z=H(n);return Z.then(function(){var G=e.state.loadedKeys,V=(0,C.L0)(G,r);U==null||U(V,{event:"load",node:n}),e.setUncontrolledState({loadedKeys:V}),e.setState(function(de){return{loadingKeys:(0,C._5)(de.loadingKeys,r)}}),v()}).catch(function(G){if(e.setState(function(de){return{loadingKeys:(0,C._5)(de.loadingKeys,r)}}),e.loadingRetryTimes[r]=(e.loadingRetryTimes[r]||0)+1,e.loadingRetryTimes[r]>=pe){var V=e.state.loadedKeys;(0,Q.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),e.setUncontrolledState({loadedKeys:(0,C.L0)(V,r)}),v()}E(G)}),{loadingKeys:(0,C.L0)($,r)}})});return a.catch(function(){}),a},e.onNodeMouseEnter=function(n,r){var a=e.props.onMouseEnter;a==null||a({event:n,node:r})},e.onNodeMouseLeave=function(n,r){var a=e.props.onMouseLeave;a==null||a({event:n,node:r})},e.onNodeContextMenu=function(n,r){var a=e.props.onRightClick;a&&(n.preventDefault(),a({event:n,node:r}))},e.onFocus=function(){var n=e.props.onFocus;e.setState({focused:!0});for(var r=arguments.length,a=new Array(r),v=0;v1&&arguments[1]!==void 0?arguments[1]:!1,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!e.destroyed){var v=!1,E=!0,b={};Object.keys(n).forEach(function(N){if(N in e.props){E=!1;return}v=!0,b[N]=n[N]}),v&&(!r||E)&&e.setState((0,se.Z)((0,se.Z)({},b),a))}},e.scrollTo=function(n){e.listRef.current.scrollTo(n)},e}return(0,te.Z)(M,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var y=this.props.activeKey;y!==void 0&&y!==this.state.activeKey&&(this.setState({activeKey:y}),y!==null&&this.scrollTo({key:y}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var y,z=this.state,_=z.focused,n=z.flattenNodes,r=z.keyEntities,a=z.draggingNodeKey,v=z.activeKey,E=z.dropLevelOffset,b=z.dropContainerKey,N=z.dropTargetKey,T=z.dropPosition,R=z.dragOverNodeKey,$=z.indent,c=this.props,H=c.prefixCls,U=c.className,Z=c.style,G=c.showLine,V=c.focusable,de=c.tabIndex,ce=de===void 0?0:de,ee=c.selectable,he=c.showIcon,ue=c.icon,fe=c.switcherIcon,ye=c.draggable,Oe=c.checkable,Te=c.checkStrictly,Le=c.disabled,be=c.motion,Ue=c.loadData,_e=c.filterTreeNode,Xe=c.height,Ve=c.itemHeight,Je=c.virtual,Ge=c.titleRender,Ze=c.dropIndicatorRender,je=c.onContextMenu,Qe=c.onScroll,ze=c.direction,qe=c.rootClassName,Fe=c.rootStyle,et=(0,ne.Z)(this.props,{aria:!0,data:!0}),Re;return ye&&((0,ge.Z)(ye)==="object"?Re=ye:typeof ye=="function"?Re={nodeDraggable:ye}:Re={}),g.createElement(j.k.Provider,{value:{prefixCls:H,selectable:ee,showIcon:he,icon:ue,switcherIcon:fe,draggable:Re,draggingNodeKey:a,checkable:Oe,checkStrictly:Te,disabled:Le,keyEntities:r,dropLevelOffset:E,dropContainerKey:b,dropTargetKey:N,dropPosition:T,dragOverNodeKey:R,indent:$,direction:ze,dropIndicatorRender:Ze,loadData:Ue,filterTreeNode:_e,titleRender:Ge,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}},g.createElement("div",{role:"tree",className:oe()(H,U,qe,(y={},(0,F.Z)(y,"".concat(H,"-show-line"),G),(0,F.Z)(y,"".concat(H,"-focused"),_),(0,F.Z)(y,"".concat(H,"-active-focused"),v!==null),y)),style:Fe},g.createElement(ke,(0,ie.Z)({ref:this.listRef,prefixCls:H,style:Z,data:n,disabled:Le,selectable:ee,checkable:!!Oe,motion:be,dragging:a!==null,height:Xe,itemHeight:Ve,virtual:Je,focusable:V,focused:_,tabIndex:ce,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:je,onScroll:Qe},this.getTreeNodeRequiredProps(),et))))}}],[{key:"getDerivedStateFromProps",value:function(y,z){var _=z.prevProps,n={prevProps:y};function r(V){return!_&&V in y||_&&_[V]!==y[V]}var a,v=z.fieldNames;if(r("fieldNames")&&(v=(0,i.w$)(y.fieldNames),n.fieldNames=v),r("treeData")?a=y.treeData:r("children")&&((0,Q.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),a=(0,i.zn)(y.children)),a){n.treeData=a;var E=(0,i.I8)(a,{fieldNames:v});n.keyEntities=(0,se.Z)((0,F.Z)({},m,re),E.keyEntities)}var b=n.keyEntities||z.keyEntities;if(r("expandedKeys")||_&&r("autoExpandParent"))n.expandedKeys=y.autoExpandParent||!_&&y.defaultExpandParent?(0,C.r7)(y.expandedKeys,b):y.expandedKeys;else if(!_&&y.defaultExpandAll){var N=(0,se.Z)({},b);delete N[m],n.expandedKeys=Object.keys(N).map(function(V){return N[V].key})}else!_&&y.defaultExpandedKeys&&(n.expandedKeys=y.autoExpandParent||y.defaultExpandParent?(0,C.r7)(y.defaultExpandedKeys,b):y.defaultExpandedKeys);if(n.expandedKeys||delete n.expandedKeys,a||n.expandedKeys){var T=(0,i.oH)(a||z.treeData,n.expandedKeys||z.expandedKeys,v);n.flattenNodes=T}if(y.selectable&&(r("selectedKeys")?n.selectedKeys=(0,C.BT)(y.selectedKeys,y):!_&&y.defaultSelectedKeys&&(n.selectedKeys=(0,C.BT)(y.defaultSelectedKeys,y))),y.checkable){var R;if(r("checkedKeys")?R=(0,C.E6)(y.checkedKeys)||{}:!_&&y.defaultCheckedKeys?R=(0,C.E6)(y.defaultCheckedKeys)||{}:a&&(R=(0,C.E6)(y.checkedKeys)||{checkedKeys:z.checkedKeys,halfCheckedKeys:z.halfCheckedKeys}),R){var $=R,c=$.checkedKeys,H=c===void 0?[]:c,U=$.halfCheckedKeys,Z=U===void 0?[]:U;if(!y.checkStrictly){var G=(0,Ne.S)(H,!0,b);H=G.checkedKeys,Z=G.halfCheckedKeys}n.checkedKeys=H,n.halfCheckedKeys=Z}}return r("loadedKeys")&&(n.loadedKeys=y.loadedKeys),n}}]),M}(g.Component);Ce.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:Se,allowDrop:function(){return!0},expandAction:!1},Ce.TreeNode=x.Z;var Pe=Ce,ve=Pe},10225:function($e,Ke,l){"use strict";l.d(Ke,{_5:function(){return te},L0:function(){return J},yx:function(){return Y},bt:function(){return S},Ds:function(){return g},wA:function(){return w},OM:function(){return ae},BT:function(){return oe},E6:function(){return i},r7:function(){return h}});var ie=l(85061),F=l(90484),ge=l(67294),se=l(80334),xe=l(4258),De=null;function te(s,u){if(!s)return[];var f=s.slice(),L=f.indexOf(u);return L>=0&&f.splice(L,1),f}function J(s,u){var f=(s||[]).slice();return f.indexOf(u)===-1&&f.push(u),f}function Y(s){return s.split("-")}function S(s,u){return"".concat(s,"-").concat(u)}function g(s){return s&&s.type&&s.type.isTreeNode}function w(s,u){var f=[],L=u[s];function x(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];P.forEach(function(A){var t=A.key,D=A.children;f.push(t),x(D)})}return x(L.children),f}function Q(s){if(s.parent){var u=Y(s.pos);return Number(u[u.length-1])===s.parent.children.length-1}return!1}function ne(s){var u=Y(s.pos);return Number(u[u.length-1])===0}function ae(s,u,f,L,x,P,A,t,D,k){var I,d=s.clientX,o=s.clientY,K=s.target.getBoundingClientRect(),m=K.top,B=K.height,re=(k==="rtl"?-1:1)*(((x==null?void 0:x.x)||0)-d),X=(re-12)/L,W=t[f.props.eventKey];if(o-1.5?P({dragNode:ve,dropNode:p,dropPosition:1})?pe=1:O=!1:P({dragNode:ve,dropNode:p,dropPosition:0})?pe=0:P({dragNode:ve,dropNode:p,dropPosition:1})?pe=1:O=!1:P({dragNode:ve,dropNode:p,dropPosition:1})?pe=1:O=!1,{dropPosition:pe,dropLevelOffset:Ce,dropTargetKey:W.key,dropTargetPos:W.pos,dragOverNodeKey:Se,dropContainerKey:pe===0?null:((I=W.parent)===null||I===void 0?void 0:I.key)||null,dropAllowed:O}}function oe(s,u){if(!!s){var f=u.multiple;return f?s.slice():s.length?[s[0]]:s}}var j=function(u){return u};function C(s,u){if(!s)return[];var f=u||{},L=f.processProps,x=L===void 0?j:L,P=Array.isArray(s)?s:[s];return P.map(function(A){var t=A.children,D=_objectWithoutProperties(A,De),k=C(t,u);return React.createElement(TreeNode,_extends({key:D.key},x(D)),k)})}function i(s){if(!s)return null;var u;if(Array.isArray(s))u={checkedKeys:s,halfCheckedKeys:void 0};else if((0,F.Z)(s)==="object")u={checkedKeys:s.checked||void 0,halfCheckedKeys:s.halfChecked||void 0};else return(0,se.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return u}function h(s,u){var f=new Set;function L(x){if(!f.has(x)){var P=u[x];if(!!P){f.add(x);var A=P.parent,t=P.node;t.disabled||A&&L(A.key)}}}return(s||[]).forEach(function(x){L(x)}),(0,ie.Z)(f)}},17341:function($e,Ke,l){"use strict";l.d(Ke,{S:function(){return De}});var ie=l(80334);function F(te,J){var Y=new Set;return te.forEach(function(S){J.has(S)||Y.add(S)}),Y}function ge(te){var J=te||{},Y=J.disabled,S=J.disableCheckbox,g=J.checkable;return!!(Y||S)||g===!1}function se(te,J,Y,S){for(var g=new Set(te),w=new Set,Q=0;Q<=Y;Q+=1){var ne=J.get(Q)||new Set;ne.forEach(function(C){var i=C.key,h=C.node,s=C.children,u=s===void 0?[]:s;g.has(i)&&!S(h)&&u.filter(function(f){return!S(f.node)}).forEach(function(f){g.add(f.key)})})}for(var ae=new Set,oe=Y;oe>=0;oe-=1){var j=J.get(oe)||new Set;j.forEach(function(C){var i=C.parent,h=C.node;if(!(S(h)||!C.parent||ae.has(C.parent.key))){if(S(C.parent.node)){ae.add(i.key);return}var s=!0,u=!1;(i.children||[]).filter(function(f){return!S(f.node)}).forEach(function(f){var L=f.key,x=g.has(L);s&&!x&&(s=!1),!u&&(x||w.has(L))&&(u=!0)}),s&&g.add(i.key),u&&w.add(i.key),ae.add(i.key)}})}return{checkedKeys:Array.from(g),halfCheckedKeys:Array.from(F(w,g))}}function xe(te,J,Y,S,g){for(var w=new Set(te),Q=new Set(J),ne=0;ne<=S;ne+=1){var ae=Y.get(ne)||new Set;ae.forEach(function(i){var h=i.key,s=i.node,u=i.children,f=u===void 0?[]:u;!w.has(h)&&!Q.has(h)&&!g(s)&&f.filter(function(L){return!g(L.node)}).forEach(function(L){w.delete(L.key)})})}Q=new Set;for(var oe=new Set,j=S;j>=0;j-=1){var C=Y.get(j)||new Set;C.forEach(function(i){var h=i.parent,s=i.node;if(!(g(s)||!i.parent||oe.has(i.parent.key))){if(g(i.parent.node)){oe.add(h.key);return}var u=!0,f=!1;(h.children||[]).filter(function(L){return!g(L.node)}).forEach(function(L){var x=L.key,P=w.has(x);u&&!P&&(u=!1),!f&&(P||Q.has(x))&&(f=!0)}),u||w.delete(h.key),f&&Q.add(h.key),oe.add(h.key)}})}return{checkedKeys:Array.from(w),halfCheckedKeys:Array.from(F(Q,w))}}function De(te,J,Y,S){var g=[],w;S?w=S:w=ge;var Q=new Set(te.filter(function(j){var C=!!Y[j];return C||g.push(j),C})),ne=new Map,ae=0;Object.keys(Y).forEach(function(j){var C=Y[j],i=C.level,h=ne.get(i);h||(h=new Set,ne.set(i,h)),h.add(C),ae=Math.max(ae,i)}),(0,ie.ZP)(!g.length,"Tree missing follow keys: ".concat(g.slice(0,100).map(function(j){return"'".concat(j,"'")}).join(", ")));var oe;return J===!0?oe=se(Q,ne,ae,w):oe=xe(Q,J.halfCheckedKeys,ne,ae,w),oe}},1089:function($e,Ke,l){"use strict";l.d(Ke,{km:function(){return S},w$:function(){return g},zn:function(){return Q},oH:function(){return ne},I8:function(){return oe},H8:function(){return j},F:function(){return C}});var ie=l(90484),F=l(85061),ge=l(28991),se=l(81253),xe=l(98423),De=l(50344),te=l(80334),J=l(10225),Y=["children"];function S(i,h){return i!=null?i:h}function g(i){var h=i||{},s=h.title,u=h._title,f=h.key,L=h.children,x=s||"title";return{title:x,_title:u||[x],key:f||"key",children:L||"children"}}function w(i,h){var s=new Map;function u(f){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(f||[]).forEach(function(x){var P=x[h.key],A=x[h.children];warning(P!=null,"Tree node must have a certain key: [".concat(L).concat(P,"]"));var t=String(P);warning(!s.has(t)||P===null||P===void 0,"Same 'key' exist in the Tree: ".concat(t)),s.set(t,!0),u(A,"".concat(L).concat(t," > "))})}u(i)}function Q(i){function h(s){var u=(0,De.Z)(s);return u.map(function(f){if(!(0,J.Ds)(f))return(0,te.ZP)(!f,"Tree/TreeNode can only accept TreeNode as children."),null;var L=f.key,x=f.props,P=x.children,A=(0,se.Z)(x,Y),t=(0,ge.Z)({key:L},A),D=h(P);return D.length&&(t.children=D),t}).filter(function(f){return f})}return h(i)}function ne(i,h,s){var u=g(s),f=u._title,L=u.key,x=u.children,P=new Set(h===!0?[]:h),A=[];function t(D){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return D.map(function(I,d){for(var o=(0,J.bt)(k?k.pos:"0",d),K=S(I[L],o),m,B=0;B1&&arguments[1]!==void 0?arguments[1]:{},s=h.initWrapper,u=h.processEntity,f=h.onProcessFinished,L=h.externalGetKey,x=h.childrenPropName,P=h.fieldNames,A=arguments.length>2?arguments[2]:void 0,t=L||A,D={},k={},I={posEntities:D,keyEntities:k};return s&&(I=s(I)||I),ae(i,function(d){var o=d.node,K=d.index,m=d.pos,B=d.key,re=d.parentPos,X=d.level,W=d.nodes,q={node:o,nodes:W,index:K,key:B,pos:m,level:X},me=S(B,m);D[m]=q,k[me]=q,q.parent=D[re],q.parent&&(q.parent.children=q.parent.children||[],q.parent.children.push(q)),u&&u(q,I)},{externalGetKey:t,childrenPropName:x,fieldNames:P}),f&&f(I),I}function j(i,h){var s=h.expandedKeys,u=h.selectedKeys,f=h.loadedKeys,L=h.loadingKeys,x=h.checkedKeys,P=h.halfCheckedKeys,A=h.dragOverNodeKey,t=h.dropPosition,D=h.keyEntities,k=D[i],I={eventKey:i,expanded:s.indexOf(i)!==-1,selected:u.indexOf(i)!==-1,loaded:f.indexOf(i)!==-1,loading:L.indexOf(i)!==-1,checked:x.indexOf(i)!==-1,halfChecked:P.indexOf(i)!==-1,pos:String(k?k.pos:""),dragOver:A===i&&t===0,dragOverGapTop:A===i&&t===-1,dragOverGapBottom:A===i&&t===1};return I}function C(i){var h=i.data,s=i.expanded,u=i.selected,f=i.checked,L=i.loaded,x=i.loading,P=i.halfChecked,A=i.dragOver,t=i.dragOverGapTop,D=i.dragOverGapBottom,k=i.pos,I=i.active,d=i.eventKey,o=(0,ge.Z)((0,ge.Z)({},h),{},{expanded:s,selected:u,checked:f,loaded:L,loading:x,halfChecked:P,dragOver:A,dragOverGapTop:t,dragOverGapBottom:D,pos:k,active:I,key:d});return"props"in o||Object.defineProperty(o,"props",{get:function(){return(0,te.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),i}}),o}}}]); diff --git a/dist/8928.26563c15.async.js b/dist/8928.26563c15.async.js new file mode 100644 index 0000000..4e42cf2 --- /dev/null +++ b/dist/8928.26563c15.async.js @@ -0,0 +1 @@ +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[8928],{61639:function($e,me,l){"use strict";l.d(me,{Z:function(){return g}});var ie=l(90484),F=l(44378),ge=l(86504),se=l(7085),Ne=l(18095),Ce=l(18267),te=l(94184),J=l.n(te),Y=l(67294),O=l(96159);function g(w,Q,ne,ae){var oe=ae.isLeaf,j=ae.expanded,C=ae.loading;if(C)return Y.createElement(se.Z,{className:"".concat(w,"-switcher-loading-icon")});var i;if(ne&&(0,ie.Z)(ne)==="object"&&(i=ne.showLeafIcon),oe){if(!ne)return null;if(typeof i!="boolean"&&!!i){var h=typeof i=="function"?i(ae):i,s="".concat(w,"-switcher-line-custom-icon");return(0,O.l$)(h)?(0,O.Tm)(h,{className:J()(h.props.className||"",s)}):h}return i?Y.createElement(ge.Z,{className:"".concat(w,"-switcher-line-icon")}):Y.createElement("span",{className:"".concat(w,"-switcher-leaf-line")})}var u="".concat(w,"-switcher-icon"),f=typeof Q=="function"?Q(ae):Q;return(0,O.l$)(f)?(0,O.Tm)(f,{className:J()(f.props.className||"",u)}):f||(ne?j?Y.createElement(Ne.Z,{className:"".concat(w,"-switcher-line-icon")}):Y.createElement(Ce.Z,{className:"".concat(w,"-switcher-line-icon")}):Y.createElement(F.Z,{className:u}))}},4258:function($e,me,l){"use strict";l.d(me,{Z:function(){return L}});var ie=l(22122),F=l(96156),ge=l(81253),se=l(28991),Ne=l(6610),Ce=l(5991),te=l(63349),J=l(10379),Y=l(44144),O=l(67294),g=l(94184),w=l.n(g),Q=l(64217),ne=l(27822),ae=function(S){for(var A=S.prefixCls,t=S.level,D=S.isStart,k=S.isEnd,I="".concat(A,"-indent-unit"),d=[],o=0;o0&&arguments[0]!==void 0?arguments[0]:[],P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],M=v.length,e=P.length;if(Math.abs(M-e)!==1)return{add:!1,key:null};function y(z,_){var n=new Map;z.forEach(function(a){n.set(a,!0)});var r=_.filter(function(a){return!n.has(a)});return r.length===1?r[0]:null}return M ").concat(P);return P}var Ee=g.forwardRef(function(v,P){var M=v.prefixCls,e=v.data,y=v.selectable,z=v.checkable,_=v.expandedKeys,n=v.selectedKeys,r=v.checkedKeys,a=v.loadedKeys,p=v.loadingKeys,m=v.halfCheckedKeys,b=v.keyEntities,E=v.disabled,T=v.dragging,R=v.dragOverNodeKey,$=v.dropPosition,c=v.motion,W=v.height,U=v.itemHeight,Z=v.virtual,H=v.focusable,X=v.activeItem,de=v.focused,ce=v.tabIndex,ee=v.onKeyDown,he=v.onFocus,ue=v.onBlur,ve=v.onActiveChange,Ke=v.onListChangeStart,Oe=v.onListChangeEnd,Te=(0,u.Z)(v,d),Le=g.useRef(null),be=g.useRef(null);g.useImperativeHandle(P,function(){return{scrollTo:function(Me){Le.current.scrollTo(Me)},getIndentWidth:function(){return be.current.offsetWidth}}});var Ue=g.useState(_),He=(0,s.Z)(Ue,2),Xe=He[0],Ve=He[1],Je=g.useState(e),Ge=(0,s.Z)(Je,2),Ze=Ge[0],je=Ge[1],Qe=g.useState(e),ze=(0,s.Z)(Qe,2),qe=ze[0],Fe=ze[1],et=g.useState([]),Re=(0,s.Z)(et,2),it=Re[0],tt=Re[1],st=g.useState(null),rt=(0,s.Z)(st,2),lt=rt[0],nt=rt[1],ot=g.useRef(e);ot.current=e;function at(){var le=ot.current;je(le),Fe(le),tt([]),nt(null),Oe()}g.useEffect(function(){Ve(_);var le=k(Xe,_);if(le.key!==null)if(le.add){var Me=Ze.findIndex(function(We){var _e=We.key;return _e===le.key}),Ae=G(I(Ze,e,le.key),Z,W,U),Be=Ze.slice();Be.splice(Me+1,0,V),Fe(Be),tt(Ae),nt("show")}else{var Ie=e.findIndex(function(We){var _e=We.key;return _e===le.key}),we=G(I(e,Ze,le.key),Z,W,U),Ye=e.slice();Ye.splice(Ie+1,0,V),Fe(Ye),tt(we),nt("hide")}else Ze!==e&&(je(e),Fe(e))},[_,e]),g.useEffect(function(){T||at()},[T]);var ct=c?qe:e,dt={expandedKeys:_,selectedKeys:n,loadedKeys:a,loadingKeys:p,checkedKeys:r,halfCheckedKeys:m,dragOverNodeKey:R,dropPosition:$,keyEntities:b};return g.createElement(g.Fragment,null,de&&X&&g.createElement("span",{style:o,"aria-live":"assertive"},fe(X)),g.createElement("div",null,g.createElement("input",{style:o,disabled:H===!1||E,tabIndex:H!==!1?ce:null,onKeyDown:ee,onFocus:he,onBlur:ue,value:"",onChange:N,"aria-label":"for screen reader"})),g.createElement("div",{className:"".concat(M,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},g.createElement("div",{className:"".concat(M,"-indent")},g.createElement("div",{ref:be,className:"".concat(M,"-indent-unit")}))),g.createElement(f.Z,(0,ie.Z)({},Te,{data:ct,itemKey:q,height:W,fullHeight:!1,virtual:Z,itemHeight:U,prefixCls:"".concat(M,"-list"),ref:Le,onVisibleChange:function(Me,Ae){var Be=new Set(Me),Ie=Ae.filter(function(we){return!Be.has(we)});Ie.some(function(we){return q(we)===K})&&at()}}),function(le){var Me=le.pos,Ae=(0,ie.Z)({},(h(le.data),le.data)),Be=le.title,Ie=le.key,we=le.isStart,Ye=le.isEnd,We=(0,i.km)(Ie,Me);delete Ae.key,delete Ae.children;var _e=(0,i.H8)(We,dt);return g.createElement(D,(0,ie.Z)({},Ae,_e,{title:Be,active:!!X&&Ie===X.key,pos:Me,data:le.data,isStart:we,isEnd:Ye,motion:c,motionNodes:Ie===K?it:null,motionType:lt,onMotionStart:Ke,onMotionEnd:at,treeNodeRequiredProps:dt,onMouseMove:function(){ve(null)}}))}))});Ee.displayName="NodeList";var xe=Ee,De=l(17341);function ke(v){var P=v.dropPosition,M=v.dropLevelOffset,e=v.indent,y={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(P){case-1:y.top=0,y.left=-M*e;break;case 1:y.bottom=0,y.left=-M*e;break;case 0:y.bottom=0,y.left=e;break}return g.createElement("div",{style:y})}var ye=10,Pe=function(v){(0,Y.Z)(M,v);var P=(0,O.Z)(M);function M(){var e;(0,Ce.Z)(this,M);for(var y=arguments.length,z=new Array(y),_=0;_2&&arguments[2]!==void 0?arguments[2]:!1,m=e.state,b=m.dragChildrenKeys,E=m.dropPosition,T=m.dropTargetKey,R=m.dropTargetPos,$=m.dropAllowed;if(!!$){var c=e.props.onDrop;if(e.setState({dragOverNodeKey:null}),e.cleanDragState(),T!==null){var W=(0,se.Z)((0,se.Z)({},(0,i.H8)(T,e.getTreeNodeRequiredProps())),{},{active:((a=e.getActiveItem())===null||a===void 0?void 0:a.key)===T,data:e.state.keyEntities[T].node}),U=b.indexOf(T)!==-1;(0,Q.ZP)(!U,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Z=(0,C.yx)(R),H={event:n,node:(0,i.F)(W),dragNode:e.dragNode?(0,i.F)(e.dragNode.props):null,dragNodesKeys:[e.dragNode.props.eventKey].concat(b),dropToGap:E!==0,dropPosition:E+Number(Z[Z.length-1])};p||c==null||c(H),e.dragNode=null}}},e.cleanDragState=function(){var n=e.state.draggingNodeKey;n!==null&&e.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),e.dragStartMousePosition=null,e.currentMouseOverDroppableNodeKey=null},e.triggerExpandActionExpand=function(n,r){var a=e.state,p=a.expandedKeys,m=a.flattenNodes,b=r.expanded,E=r.key,T=r.isLeaf;if(!(T||n.shiftKey||n.metaKey||n.ctrlKey)){var R=m.filter(function(c){return c.key===E})[0],$=(0,i.F)((0,se.Z)((0,se.Z)({},(0,i.H8)(E,e.getTreeNodeRequiredProps())),{},{data:R.data}));e.setExpandedKeys(b?(0,C._5)(p,E):(0,C.L0)(p,E)),e.onNodeExpand(n,$)}},e.onNodeClick=function(n,r){var a=e.props,p=a.onClick,m=a.expandAction;m==="click"&&e.triggerExpandActionExpand(n,r),p==null||p(n,r)},e.onNodeDoubleClick=function(n,r){var a=e.props,p=a.onDoubleClick,m=a.expandAction;m==="doubleClick"&&e.triggerExpandActionExpand(n,r),p==null||p(n,r)},e.onNodeSelect=function(n,r){var a=e.state.selectedKeys,p=e.state,m=p.keyEntities,b=p.fieldNames,E=e.props,T=E.onSelect,R=E.multiple,$=r.selected,c=r[b.key],W=!$;W?R?a=(0,C.L0)(a,c):a=[c]:a=(0,C._5)(a,c);var U=a.map(function(Z){var H=m[Z];return H?H.node:null}).filter(function(Z){return Z});e.setUncontrolledState({selectedKeys:a}),T==null||T(a,{event:"select",selected:W,node:r,selectedNodes:U,nativeEvent:n.nativeEvent})},e.onNodeCheck=function(n,r,a){var p=e.state,m=p.keyEntities,b=p.checkedKeys,E=p.halfCheckedKeys,T=e.props,R=T.checkStrictly,$=T.onCheck,c=r.key,W,U={event:"check",node:r,checked:a,nativeEvent:n.nativeEvent};if(R){var Z=a?(0,C.L0)(b,c):(0,C._5)(b,c),H=(0,C._5)(E,c);W={checked:Z,halfChecked:H},U.checkedNodes=Z.map(function(ue){return m[ue]}).filter(function(ue){return ue}).map(function(ue){return ue.node}),e.setUncontrolledState({checkedKeys:Z})}else{var X=(0,De.S)([].concat((0,Ne.Z)(b),[c]),!0,m),de=X.checkedKeys,ce=X.halfCheckedKeys;if(!a){var ee=new Set(de);ee.delete(c);var he=(0,De.S)(Array.from(ee),{checked:!1,halfCheckedKeys:ce},m);de=he.checkedKeys,ce=he.halfCheckedKeys}W=de,U.checkedNodes=[],U.checkedNodesPositions=[],U.halfCheckedKeys=ce,de.forEach(function(ue){var ve=m[ue];if(!!ve){var Ke=ve.node,Oe=ve.pos;U.checkedNodes.push(Ke),U.checkedNodesPositions.push({node:Ke,pos:Oe})}}),e.setUncontrolledState({checkedKeys:de},!1,{halfCheckedKeys:ce})}$==null||$(W,U)},e.onNodeLoad=function(n){var r=n.key,a=new Promise(function(p,m){e.setState(function(b){var E=b.loadedKeys,T=E===void 0?[]:E,R=b.loadingKeys,$=R===void 0?[]:R,c=e.props,W=c.loadData,U=c.onLoad;if(!W||T.indexOf(r)!==-1||$.indexOf(r)!==-1)return null;var Z=W(n);return Z.then(function(){var H=e.state.loadedKeys,X=(0,C.L0)(H,r);U==null||U(X,{event:"load",node:n}),e.setUncontrolledState({loadedKeys:X}),e.setState(function(de){return{loadingKeys:(0,C._5)(de.loadingKeys,r)}}),p()}).catch(function(H){if(e.setState(function(de){return{loadingKeys:(0,C._5)(de.loadingKeys,r)}}),e.loadingRetryTimes[r]=(e.loadingRetryTimes[r]||0)+1,e.loadingRetryTimes[r]>=ye){var X=e.state.loadedKeys;(0,Q.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),e.setUncontrolledState({loadedKeys:(0,C.L0)(X,r)}),p()}m(H)}),{loadingKeys:(0,C.L0)($,r)}})});return a.catch(function(){}),a},e.onNodeMouseEnter=function(n,r){var a=e.props.onMouseEnter;a==null||a({event:n,node:r})},e.onNodeMouseLeave=function(n,r){var a=e.props.onMouseLeave;a==null||a({event:n,node:r})},e.onNodeContextMenu=function(n,r){var a=e.props.onRightClick;a&&(n.preventDefault(),a({event:n,node:r}))},e.onFocus=function(){var n=e.props.onFocus;e.setState({focused:!0});for(var r=arguments.length,a=new Array(r),p=0;p1&&arguments[1]!==void 0?arguments[1]:!1,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!e.destroyed){var p=!1,m=!0,b={};Object.keys(n).forEach(function(E){if(E in e.props){m=!1;return}p=!0,b[E]=n[E]}),p&&(!r||m)&&e.setState((0,se.Z)((0,se.Z)({},b),a))}},e.scrollTo=function(n){e.listRef.current.scrollTo(n)},e}return(0,te.Z)(M,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var y=this.props.activeKey;y!==void 0&&y!==this.state.activeKey&&(this.setState({activeKey:y}),y!==null&&this.scrollTo({key:y}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var y,z=this.state,_=z.focused,n=z.flattenNodes,r=z.keyEntities,a=z.draggingNodeKey,p=z.activeKey,m=z.dropLevelOffset,b=z.dropContainerKey,E=z.dropTargetKey,T=z.dropPosition,R=z.dragOverNodeKey,$=z.indent,c=this.props,W=c.prefixCls,U=c.className,Z=c.style,H=c.showLine,X=c.focusable,de=c.tabIndex,ce=de===void 0?0:de,ee=c.selectable,he=c.showIcon,ue=c.icon,ve=c.switcherIcon,Ke=c.draggable,Oe=c.checkable,Te=c.checkStrictly,Le=c.disabled,be=c.motion,Ue=c.loadData,He=c.filterTreeNode,Xe=c.height,Ve=c.itemHeight,Je=c.virtual,Ge=c.titleRender,Ze=c.dropIndicatorRender,je=c.onContextMenu,Qe=c.onScroll,ze=c.direction,qe=c.rootClassName,Fe=c.rootStyle,et=(0,ne.Z)(this.props,{aria:!0,data:!0}),Re;return Ke&&((0,ge.Z)(Ke)==="object"?Re=Ke:typeof Ke=="function"?Re={nodeDraggable:Ke}:Re={}),g.createElement(j.k.Provider,{value:{prefixCls:W,selectable:ee,showIcon:he,icon:ue,switcherIcon:ve,draggable:Re,draggingNodeKey:a,checkable:Oe,checkStrictly:Te,disabled:Le,keyEntities:r,dropLevelOffset:m,dropContainerKey:b,dropTargetKey:E,dropPosition:T,dragOverNodeKey:R,indent:$,direction:ze,dropIndicatorRender:Ze,loadData:Ue,filterTreeNode:He,titleRender:Ge,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}},g.createElement("div",{role:"tree",className:oe()(W,U,qe,(y={},(0,F.Z)(y,"".concat(W,"-show-line"),H),(0,F.Z)(y,"".concat(W,"-focused"),_),(0,F.Z)(y,"".concat(W,"-active-focused"),p!==null),y)),style:Fe},g.createElement(xe,(0,ie.Z)({ref:this.listRef,prefixCls:W,style:Z,data:n,disabled:Le,selectable:ee,checkable:!!Oe,motion:be,dragging:a!==null,height:Xe,itemHeight:Ve,virtual:Je,focusable:X,focused:_,tabIndex:ce,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:je,onScroll:Qe},this.getTreeNodeRequiredProps(),et))))}}],[{key:"getDerivedStateFromProps",value:function(y,z){var _=z.prevProps,n={prevProps:y};function r(X){return!_&&X in y||_&&_[X]!==y[X]}var a,p=z.fieldNames;if(r("fieldNames")&&(p=(0,i.w$)(y.fieldNames),n.fieldNames=p),r("treeData")?a=y.treeData:r("children")&&((0,Q.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),a=(0,i.zn)(y.children)),a){n.treeData=a;var m=(0,i.I8)(a,{fieldNames:p});n.keyEntities=(0,se.Z)((0,F.Z)({},K,re),m.keyEntities)}var b=n.keyEntities||z.keyEntities;if(r("expandedKeys")||_&&r("autoExpandParent"))n.expandedKeys=y.autoExpandParent||!_&&y.defaultExpandParent?(0,C.r7)(y.expandedKeys,b):y.expandedKeys;else if(!_&&y.defaultExpandAll){var E=(0,se.Z)({},b);delete E[K],n.expandedKeys=Object.keys(E).map(function(X){return E[X].key})}else!_&&y.defaultExpandedKeys&&(n.expandedKeys=y.autoExpandParent||y.defaultExpandParent?(0,C.r7)(y.defaultExpandedKeys,b):y.defaultExpandedKeys);if(n.expandedKeys||delete n.expandedKeys,a||n.expandedKeys){var T=(0,i.oH)(a||z.treeData,n.expandedKeys||z.expandedKeys,p);n.flattenNodes=T}if(y.selectable&&(r("selectedKeys")?n.selectedKeys=(0,C.BT)(y.selectedKeys,y):!_&&y.defaultSelectedKeys&&(n.selectedKeys=(0,C.BT)(y.defaultSelectedKeys,y))),y.checkable){var R;if(r("checkedKeys")?R=(0,C.E6)(y.checkedKeys)||{}:!_&&y.defaultCheckedKeys?R=(0,C.E6)(y.defaultCheckedKeys)||{}:a&&(R=(0,C.E6)(y.checkedKeys)||{checkedKeys:z.checkedKeys,halfCheckedKeys:z.halfCheckedKeys}),R){var $=R,c=$.checkedKeys,W=c===void 0?[]:c,U=$.halfCheckedKeys,Z=U===void 0?[]:U;if(!y.checkStrictly){var H=(0,De.S)(W,!0,b);W=H.checkedKeys,Z=H.halfCheckedKeys}n.checkedKeys=W,n.halfCheckedKeys=Z}}return r("loadedKeys")&&(n.loadedKeys=y.loadedKeys),n}}]),M}(g.Component);Pe.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:ke,allowDrop:function(){return!0},expandAction:!1},Pe.TreeNode=x.Z;var Se=Pe,pe=Se},10225:function($e,me,l){"use strict";l.d(me,{_5:function(){return te},L0:function(){return J},yx:function(){return Y},bt:function(){return O},Ds:function(){return g},wA:function(){return w},OM:function(){return ae},BT:function(){return oe},E6:function(){return i},r7:function(){return h}});var ie=l(85061),F=l(90484),ge=l(67294),se=l(80334),Ne=l(4258),Ce=null;function te(s,u){if(!s)return[];var f=s.slice(),L=f.indexOf(u);return L>=0&&f.splice(L,1),f}function J(s,u){var f=(s||[]).slice();return f.indexOf(u)===-1&&f.push(u),f}function Y(s){return s.split("-")}function O(s,u){return"".concat(s,"-").concat(u)}function g(s){return s&&s.type&&s.type.isTreeNode}function w(s,u){var f=[],L=u[s];function x(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];S.forEach(function(A){var t=A.key,D=A.children;f.push(t),x(D)})}return x(L.children),f}function Q(s){if(s.parent){var u=Y(s.pos);return Number(u[u.length-1])===s.parent.children.length-1}return!1}function ne(s){var u=Y(s.pos);return Number(u[u.length-1])===0}function ae(s,u,f,L,x,S,A,t,D,k){var I,d=s.clientX,o=s.clientY,N=s.target.getBoundingClientRect(),K=N.top,B=N.height,re=(k==="rtl"?-1:1)*(((x==null?void 0:x.x)||0)-d),V=(re-12)/L,G=t[f.props.eventKey];if(o-1.5?S({dragNode:pe,dropNode:v,dropPosition:1})?ye=1:P=!1:S({dragNode:pe,dropNode:v,dropPosition:0})?ye=0:S({dragNode:pe,dropNode:v,dropPosition:1})?ye=1:P=!1:S({dragNode:pe,dropNode:v,dropPosition:1})?ye=1:P=!1,{dropPosition:ye,dropLevelOffset:Pe,dropTargetKey:G.key,dropTargetPos:G.pos,dragOverNodeKey:ke,dropContainerKey:ye===0?null:((I=G.parent)===null||I===void 0?void 0:I.key)||null,dropAllowed:P}}function oe(s,u){if(!!s){var f=u.multiple;return f?s.slice():s.length?[s[0]]:s}}var j=function(u){return u};function C(s,u){if(!s)return[];var f=u||{},L=f.processProps,x=L===void 0?j:L,S=Array.isArray(s)?s:[s];return S.map(function(A){var t=A.children,D=_objectWithoutProperties(A,Ce),k=C(t,u);return React.createElement(TreeNode,_extends({key:D.key},x(D)),k)})}function i(s){if(!s)return null;var u;if(Array.isArray(s))u={checkedKeys:s,halfCheckedKeys:void 0};else if((0,F.Z)(s)==="object")u={checkedKeys:s.checked||void 0,halfCheckedKeys:s.halfChecked||void 0};else return(0,se.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return u}function h(s,u){var f=new Set;function L(x){if(!f.has(x)){var S=u[x];if(!!S){f.add(x);var A=S.parent,t=S.node;t.disabled||A&&L(A.key)}}}return(s||[]).forEach(function(x){L(x)}),(0,ie.Z)(f)}},17341:function($e,me,l){"use strict";l.d(me,{S:function(){return Ce}});var ie=l(80334);function F(te,J){var Y=new Set;return te.forEach(function(O){J.has(O)||Y.add(O)}),Y}function ge(te){var J=te||{},Y=J.disabled,O=J.disableCheckbox,g=J.checkable;return!!(Y||O)||g===!1}function se(te,J,Y,O){for(var g=new Set(te),w=new Set,Q=0;Q<=Y;Q+=1){var ne=J.get(Q)||new Set;ne.forEach(function(C){var i=C.key,h=C.node,s=C.children,u=s===void 0?[]:s;g.has(i)&&!O(h)&&u.filter(function(f){return!O(f.node)}).forEach(function(f){g.add(f.key)})})}for(var ae=new Set,oe=Y;oe>=0;oe-=1){var j=J.get(oe)||new Set;j.forEach(function(C){var i=C.parent,h=C.node;if(!(O(h)||!C.parent||ae.has(C.parent.key))){if(O(C.parent.node)){ae.add(i.key);return}var s=!0,u=!1;(i.children||[]).filter(function(f){return!O(f.node)}).forEach(function(f){var L=f.key,x=g.has(L);s&&!x&&(s=!1),!u&&(x||w.has(L))&&(u=!0)}),s&&g.add(i.key),u&&w.add(i.key),ae.add(i.key)}})}return{checkedKeys:Array.from(g),halfCheckedKeys:Array.from(F(w,g))}}function Ne(te,J,Y,O,g){for(var w=new Set(te),Q=new Set(J),ne=0;ne<=O;ne+=1){var ae=Y.get(ne)||new Set;ae.forEach(function(i){var h=i.key,s=i.node,u=i.children,f=u===void 0?[]:u;!w.has(h)&&!Q.has(h)&&!g(s)&&f.filter(function(L){return!g(L.node)}).forEach(function(L){w.delete(L.key)})})}Q=new Set;for(var oe=new Set,j=O;j>=0;j-=1){var C=Y.get(j)||new Set;C.forEach(function(i){var h=i.parent,s=i.node;if(!(g(s)||!i.parent||oe.has(i.parent.key))){if(g(i.parent.node)){oe.add(h.key);return}var u=!0,f=!1;(h.children||[]).filter(function(L){return!g(L.node)}).forEach(function(L){var x=L.key,S=w.has(x);u&&!S&&(u=!1),!f&&(S||Q.has(x))&&(f=!0)}),u||w.delete(h.key),f&&Q.add(h.key),oe.add(h.key)}})}return{checkedKeys:Array.from(w),halfCheckedKeys:Array.from(F(Q,w))}}function Ce(te,J,Y,O){var g=[],w;O?w=O:w=ge;var Q=new Set(te.filter(function(j){var C=!!Y[j];return C||g.push(j),C})),ne=new Map,ae=0;Object.keys(Y).forEach(function(j){var C=Y[j],i=C.level,h=ne.get(i);h||(h=new Set,ne.set(i,h)),h.add(C),ae=Math.max(ae,i)}),(0,ie.ZP)(!g.length,"Tree missing follow keys: ".concat(g.slice(0,100).map(function(j){return"'".concat(j,"'")}).join(", ")));var oe;return J===!0?oe=se(Q,ne,ae,w):oe=Ne(Q,J.halfCheckedKeys,ne,ae,w),oe}},1089:function($e,me,l){"use strict";l.d(me,{km:function(){return O},w$:function(){return g},zn:function(){return Q},oH:function(){return ne},I8:function(){return oe},H8:function(){return j},F:function(){return C}});var ie=l(90484),F=l(85061),ge=l(28991),se=l(81253),Ne=l(98423),Ce=l(50344),te=l(80334),J=l(10225),Y=["children"];function O(i,h){return i!=null?i:h}function g(i){var h=i||{},s=h.title,u=h._title,f=h.key,L=h.children,x=s||"title";return{title:x,_title:u||[x],key:f||"key",children:L||"children"}}function w(i,h){var s=new Map;function u(f){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(f||[]).forEach(function(x){var S=x[h.key],A=x[h.children];warning(S!=null,"Tree node must have a certain key: [".concat(L).concat(S,"]"));var t=String(S);warning(!s.has(t)||S===null||S===void 0,"Same 'key' exist in the Tree: ".concat(t)),s.set(t,!0),u(A,"".concat(L).concat(t," > "))})}u(i)}function Q(i){function h(s){var u=(0,Ce.Z)(s);return u.map(function(f){if(!(0,J.Ds)(f))return(0,te.ZP)(!f,"Tree/TreeNode can only accept TreeNode as children."),null;var L=f.key,x=f.props,S=x.children,A=(0,se.Z)(x,Y),t=(0,ge.Z)({key:L},A),D=h(S);return D.length&&(t.children=D),t}).filter(function(f){return f})}return h(i)}function ne(i,h,s){var u=g(s),f=u._title,L=u.key,x=u.children,S=new Set(h===!0?[]:h),A=[];function t(D){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return D.map(function(I,d){for(var o=(0,J.bt)(k?k.pos:"0",d),N=O(I[L],o),K,B=0;B1&&arguments[1]!==void 0?arguments[1]:{},s=h.initWrapper,u=h.processEntity,f=h.onProcessFinished,L=h.externalGetKey,x=h.childrenPropName,S=h.fieldNames,A=arguments.length>2?arguments[2]:void 0,t=L||A,D={},k={},I={posEntities:D,keyEntities:k};return s&&(I=s(I)||I),ae(i,function(d){var o=d.node,N=d.index,K=d.pos,B=d.key,re=d.parentPos,V=d.level,G=d.nodes,q={node:o,nodes:G,index:N,key:B,pos:K,level:V},fe=O(B,K);D[K]=q,k[fe]=q,q.parent=D[re],q.parent&&(q.parent.children=q.parent.children||[],q.parent.children.push(q)),u&&u(q,I)},{externalGetKey:t,childrenPropName:x,fieldNames:S}),f&&f(I),I}function j(i,h){var s=h.expandedKeys,u=h.selectedKeys,f=h.loadedKeys,L=h.loadingKeys,x=h.checkedKeys,S=h.halfCheckedKeys,A=h.dragOverNodeKey,t=h.dropPosition,D=h.keyEntities,k=D[i],I={eventKey:i,expanded:s.indexOf(i)!==-1,selected:u.indexOf(i)!==-1,loaded:f.indexOf(i)!==-1,loading:L.indexOf(i)!==-1,checked:x.indexOf(i)!==-1,halfChecked:S.indexOf(i)!==-1,pos:String(k?k.pos:""),dragOver:A===i&&t===0,dragOverGapTop:A===i&&t===-1,dragOverGapBottom:A===i&&t===1};return I}function C(i){var h=i.data,s=i.expanded,u=i.selected,f=i.checked,L=i.loaded,x=i.loading,S=i.halfChecked,A=i.dragOver,t=i.dragOverGapTop,D=i.dragOverGapBottom,k=i.pos,I=i.active,d=i.eventKey,o=(0,ge.Z)((0,ge.Z)({},h),{},{expanded:s,selected:u,checked:f,loaded:L,loading:x,halfChecked:S,dragOver:A,dragOverGapTop:t,dragOverGapBottom:D,pos:k,active:I,key:d});return"props"in o||Object.defineProperty(o,"props",{get:function(){return(0,te.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),i}}),o}}}]); diff --git a/dist/9396.a328c7e0.async.js b/dist/9396.82d7aca4.async.js similarity index 99% rename from dist/9396.a328c7e0.async.js rename to dist/9396.82d7aca4.async.js index d9eb675..0a818d5 100644 --- a/dist/9396.a328c7e0.async.js +++ b/dist/9396.82d7aca4.async.js @@ -1 +1 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[9396],{70347:function(){},18067:function(){},91894:function(te,W,l){"use strict";l.d(W,{Z:function(){return fe}});var c=l(96156),C=l(22122),A=l(94184),$=l.n(A),Z=l(98423),t=l(67294),S=l(53124),U=l(97647),ae=l(19586),K=l(86629),ne=function(a,v){var x={};for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&v.indexOf(n)<0&&(x[n]=a[n]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(a);s0&&A(Ne[0])}},se=0;se0;)D.push(u.pop());i.push(D)}}return i},er=function(t){for(var e=t.nodes,r=e===void 0?[]:e,n=t.edges,a=n===void 0?[]:n,i=[],o={},u={},l={},h=[],y=0,D=function ee(se){u[se.id]=y,l[se.id]=y,y+=1,i.push(se),o[se.id]=!0;for(var oe=_e(se.id,a,"target").filter(function(Pe){return r.map(function(Ye){return Ye.id}).indexOf(Pe)>-1}),ce=function(Ye){var rt=oe[Ye];if(!u[rt]&&u[rt]!==0){var Ke=r.filter(function(mt){return mt.id===rt});Ke.length>0&&ee(Ke[0]),l[se.id]=Math.min(l[se.id],l[rt])}else o[rt]&&(l[se.id]=Math.min(l[se.id],u[rt]))},Me=0;Me0;){var Ie=i.pop();if(o[Ie.id]=!1,Ne.push(Ie),Ie===se)break}Ne.length>0&&h.push(Ne)}},A=0,z=r;A0;)for(var ee=A.pop(),se=ee.id,oe=_e(se,t.edges),ce=function(Ie){var Pe,Ye=oe[Ie],rt=t.nodes.find(function(lr){return lr.id===Ye});if(Ye===se)i.push((Pe={},Pe[Ye]=ee,Pe));else if(!(Ye in K))z[Ye]=ee,A.push(rt),K[Ye]=new Set([ee]);else if(!K[se].has(rt)){for(var Ke=!0,mt=[rt,ee],Bt=z[se];K[Ye].size&&!K[Ye].has(Bt)&&(mt.push(Bt),Bt!==z[Bt.id]);)Bt=z[Bt.id];if(mt.push(Bt),e&&r?(Ke=!1,mt.findIndex(function(lr){return e.indexOf(lr.id)>-1})>-1&&(Ke=!0)):e&&!r&&mt.findIndex(function(lr){return e.indexOf(lr.id)>-1})>-1&&(Ke=!1),Ke){for(var Er={},fr=1;fr0;){var fr=Er.pop();a.has(fr)&&(a.delete(fr),i[fr.id].forEach(function(lr){Er.push(lr)}),i[fr.id].clear())}},y=function mt(Bt,Er,fr){var lr=!1;if(e&&r===!1&&e.indexOf(Bt.id)>-1)return lr;n.push(Bt),a.add(Bt);for(var Kt=fr[Bt.id],Yr=0;Yr-1});Qr-1)?o.push((Er={},Er[zr.id]=zr,Er)):Nr[zr.id].push(l[Cn])}}return{component:br,adjList:Nr,minIdx:lr}},ce=0;ce=ce}),Ne=er({nodes:Me,edges:t.edges}).filter(function(mt){return mt.length>1});if(Ne.length===0)break;var Ie=oe(Ne),Pe=Ie.minIdx,Ye=Ie.adjList,rt=Ie.component;if(rt.length>1){rt.forEach(function(mt){i[mt.id]=new Set});var Ke=u[Pe];if(e&&r&&e.indexOf(Ke.id)===-1)return o;y(Ke,Ke,Ye),ce=Pe+1}else break}return o},tr=function(t,e,r,n){return n===void 0&&(n=!0),e?Rt(t,r,n):ut(t,r,n)},wr=Zt,Vr=function(t,e,r){for(var n=Infinity,a,i=0;iy[Ne.id]+Bt?(y[mt]=y[Ne.id]+Bt,D[mt]=[Ne.id]):y[mt]===y[Ne.id]+Bt&&D[mt].push(Ne.id)})},K=0;K0&&h.length>0;){var A=h[h.length-1];if(A.length){var z=A.shift();z&&(u.push(z),l[z]=!0,D=n?_e(z,o,"target"):_e(z,o),h.push(D.filter(function(se){return!l[se]})))}else{var K=u.pop();l[K]=!1,h.pop();continue}if(u[u.length-1]===r){var ee=u.map(function(oe){return oe});y.push(ee);var K=u.pop();l[K]=!1,h.pop()}}return y},Fr=function(t,e){for(var r=te(t,e),n=[],a=r.length,i=0;in[i][u]+n[u][o]&&(n[i][o]=n[i][u]+n[u][o]);return n},nn=Fr,$r=function(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r="weight"),n===void 0&&(n=1e3);var a=t.nodes,i=a===void 0?[]:a,o=t.edges,u=o===void 0?[]:o,l={},h={};i.forEach(function(Me,Ne){var Ie=tt();Me.clusterId=Ie,l[Ie]={id:Ie,nodes:[Me]},h[Me.id]={node:Me,idx:Ne}});var y=te(t,e),D=[],A={};y.forEach(function(Me,Ne){var Ie=0,Pe=i[Ne].id;A[Pe]={},Me.forEach(function(Ye,rt){if(!!Ye){Ie+=Ye;var Ke=i[rt].id;A[Pe][Ke]=Ye}}),D.push(Ie)});for(var z=0,K=function(){var Ne=!1;if(i.forEach(function(Ie){var Pe={};Object.keys(A[Ie.id]).forEach(function(lr){var Kt=A[Ie.id][lr],Yr=h[lr].node,Xr=Yr.clusterId;Pe[Xr]||(Pe[Xr]=0),Pe[Xr]+=Kt});var Ye=-Infinity,rt=[];if(Object.keys(Pe).forEach(function(lr){Ye=0&&rt.splice(Ke,1),rt&&rt.length){Ne=!0;var mt=l[Ie.clusterId],Bt=mt.nodes.indexOf(Ie);mt.nodes.splice(Bt,1);var Er=Math.floor(Math.random()*rt.length),fr=l[rt[Er]];fr.nodes.push(Ie),Ie.clusterId=fr.id}}}),!Ne)return"break";z++};z0&&Ye>rt&&Ye-rtrt&&(mt=y.map(function(qt){return{node:qt,clusterId:qt.clusterId}}),Bt=(0,b.clone)(oe),rt=Ye),Er||Ke>100)break;Ke++,Object.keys(oe).forEach(function(qt){var br=0;A.forEach(function(Nr){var zr=Nr.source,Qr=Nr.target,ln=ce[zr].node.clusterId,Cn=ce[Qr].node.clusterId;(ln===qt&&Cn!==qt||Cn===qt&&ln!==qt)&&(br=br+(Nr[r]||1))}),oe[qt].sumTot=br}),y.forEach(function(qt,br){var Nr=oe[qt.clusterId],zr=0,Qr,ln=Ne[br]/(2*Pe),Cn=0,Pn=Nr.nodes;Pn.forEach(function(Za){var qa=ce[Za.id].idx;Cn+=Me[br][qa]||0});var ba=Cn-Nr.sumTot*ln,ea=Pn.filter(function(Za){return Za.id!==qt.id}),ha=[];ea.forEach(function(Za,qa){ha[qa]=z[Za.originIndex]});var Ia=mn(ea,z)*l,Ja=Ie[qt.id];if(Object.keys(Ja).forEach(function(Za){var qa=ce[Za].node,pi=qa.clusterId;if(pi!==qt.clusterId){var Ii=oe[pi],qi=Ii.nodes;if(!(!qi||!qi.length)){var oa=0;qi.forEach(function(va){var pa=ce[va.id].idx;oa+=Me[br][pa]||0});var Ma=oa-Ii.sumTot*ln,Un=qi.concat([qt]),Ca=[];Un.forEach(function(va,pa){Ca[pa]=z[va.originIndex]});var Da=mn(Un,z)*l,dn=Ma-ba;a&&(dn=Ma+Da-(ba+Ia)),dn>zr&&(zr=dn,Qr=Ii)}}}),zr>0){Qr.nodes.push(qt);var Ra=qt.clusterId;qt.clusterId=Qr.id;var ii=Nr.nodes.indexOf(qt);Nr.nodes.splice(ii,1);var ri=0,Yi=0;A.forEach(function(Za){var qa=Za.source,pi=Za.target,Ii=ce[qa].node.clusterId,qi=ce[pi].node.clusterId;(Ii===Qr.id&&qi!==Qr.id||qi===Qr.id&&Ii!==Qr.id)&&(ri=ri+(Za[r]||1)),(Ii===Ra&&qi!==Ra||qi===Ra&&Ii!==Ra)&&(Yi=Yi+(Za[r]||1))}),Qr.sumTot=ri,Nr.sumTot=Yi}})}var fr={},lr=0;Object.keys(Bt).forEach(function(qt){var br=Bt[qt];if(!br.nodes||!br.nodes.length){delete Bt[qt];return}var Nr=String(lr+1);Nr!==qt&&(br.id=Nr,br.nodes=br.nodes.map(function(zr){return{id:zr.id,clusterId:Nr}}),Bt[Nr]=br,fr[qt]=Nr,delete Bt[qt],lr++)}),mt.forEach(function(qt){var br=qt.node,Nr=qt.clusterId;!br||(br.clusterId=Nr,br.clusterId&&fr[br.clusterId]&&(br.clusterId=fr[br.clusterId]))});var Kt=[],Yr={};A.forEach(function(qt){var br=qt.source,Nr=qt.target,zr=qt[r]||1,Qr=ce[br].node.clusterId,ln=ce[Nr].node.clusterId;if(!(!Qr||!ln)){var Cn="".concat(Qr,"---").concat(ln);if(Yr[Cn])Yr[Cn].weight+=zr,Yr[Cn].count++;else{var Pn={source:Qr,target:ln,weight:zr,count:1};Yr[Cn]=Pn,Kt.push(Pn)}}});var Xr=[];return Object.keys(Bt).forEach(function(qt){Xr.push(Bt[qt])}),{clusters:Xr,clusterEdges:Kt}},Z=xa,Ot=function(t,e,r,n,a,i,o,u){return e===void 0&&(e=!1),r===void 0&&(r="weight"),n===void 0&&(n=1e-4),a===void 0&&(a=void 0),i===void 0&&(i=[]),o===void 0&&(o=["id"]),u===void 0&&(u=1),Z(t,e,r,n,!0,a,i,o,u)},qe=Ot,ne=function(t,e){var r;e===void 0&&(e=1);for(var n=(0,b.clone)(t),a=n.nodes,i=a===void 0?[]:a,o=n.edges,u=o===void 0?[]:o,l=function(){var D=bt({nodes:i,edges:u}),A=Object.keys(D);A.sort(function(ee,se){var oe,ce;return((oe=D[ee])===null||oe===void 0?void 0:oe.degree)-((ce=D[se])===null||ce===void 0?void 0:ce.degree)});var z=A[0];if(!i.length||((r=D[z])===null||r===void 0?void 0:r.degree)>=e)return"break";var K=i.findIndex(function(ee){return ee.id===z});i.splice(K,1),u=u.filter(function(ee){return!(ee.source===z||ee.target===z)})};;){var h=l();if(h==="break")break}return{nodes:i,edges:u}},ae=ne,P=function(t,e,r){var n=[];switch(t){case Wn.EuclideanDistance:n=e[r];break;default:n=[];break}return n},S=function(t,e,r,n,a,i){e===void 0&&(e=3),r===void 0&&(r=void 0),n===void 0&&(n=[]),a===void 0&&(a=["id"]),i===void 0&&(i=Wn.EuclideanDistance);var o=t.nodes,u=o===void 0?[]:o,l=t.edges,h=l===void 0?[]:l,y={clusters:[{id:"0",nodes:u}],clusterEdges:[]};if(i===Wn.EuclideanDistance&&!u.every(function(Nr){return Nr.hasOwnProperty(r)}))return y;var D=[],A=[];if(i===Wn.EuclideanDistance&&(D=fa(u,r),A=_a(D,n,a)),!A.length)return y;for(var z=(0,b.uniq)(A.map(function(Nr){return Nr.join("")})),K=Math.min(e,u.length,z.length),ee=0;eeNe&&!se.find(function(ea){return(0,b.isEqual)(ea,P(i,A,u[Qr].originIndex))})&&(Ne=ba,Ie=Qr)}},Ye=0;Ye=0;fr--)ce[Number(u[ee].clusterId)][fr].id===u[ee].id&&ce[Number(u[ee].clusterId)].splice(fr,1);u[ee].clusterId=String(Ke),ce[Ke].push(u[ee])}}for(var lr=!1,ee=0;ee=1e3)break}var qt=[],br={};return h.forEach(function(Nr){var zr,Qr,ln=Nr.source,Cn=Nr.target,Pn=(zr=u.find(function(Ia){return Ia.id===ln}))===null||zr===void 0?void 0:zr.clusterId,ba=(Qr=u.find(function(Ia){return Ia.id===Cn}))===null||Qr===void 0?void 0:Qr.clusterId,ea="".concat(Pn,"---").concat(ba);if(br[ea])br[ea].count++;else{var ha={source:Pn,target:ba,count:1};br[ea]=ha,qt.push(ha)}}),{clusters:ce,clusterEdges:qt}},C=S,V=function(t,e){var r=new _r(e),n=r.norm2(),a=new _r(t),i=a.norm2(),o=r.dot(a),u=n*i,l=u?o/u:0;return l},de=V,Se=function(t,e,r,n,a){t===void 0&&(t=[]),r===void 0&&(r=void 0),n===void 0&&(n=[]),a===void 0&&(a=[]);var i=(0,b.clone)(t.filter(function(D){return D.id!==e.id})),o=t.findIndex(function(D){return D.id===e.id}),u=fa(t,r),l=_a(u,n,a),h=l[o],y=[];return i.forEach(function(D,A){if(D.id!==e.id){var z=l[A],K=de(z,h);y.push(K),D.cosineSimilarity=K}}),i.sort(function(D,A){return A.cosineSimilarity-D.cosineSimilarity}),{allCosineSimilarity:y,similarNodes:i}},xe=Se,Le=function(){function c(t){this.count=t.length,this.parent={};for(var e=0,r=t;e0&&(this.list[0]=e,this.moveDown(0)),t},c.prototype.insert=function(t){if(t!==null){this.list.push(t);var e=this.list.length-1;return this.moveUp(e),!0}return!1},c.prototype.moveUp=function(t){for(var e=this.getParent(t);t&&t>0&&this.compareFn(this.list[e],this.list[t])>0;){var r=this.list[e];this.list[e]=this.list[t],this.list[t]=r,t=e,e=this.getParent(t)}},c.prototype.moveDown=function(t){var e,r=t,n=this.getLeft(t),a=this.getRight(t),i=this.list.length;n!==null&&n0?r=n:a!==null&&a0&&(r=a),t!==r&&(e=[this.list[r],this.list[t]],this.list[t]=e[0],this.list[r]=e[1],this.moveDown(r))},c}(),$t=At,Yt=function(t,e){var r=[],n=t.nodes,a=n===void 0?[]:n,i=t.edges,o=i===void 0?[]:i;if(a.length===0)return r;var u=a[0],l=new Set;l.add(u);var h=function(ee,se){return e?ee.weight-se.weight:0},y=new $t(h);for(Ge(u.id,o).forEach(function(K){y.insert(K)});!y.isEmpty();){var D=y.delMin(),A=D.source,z=D.target;l.has(A)&&l.has(z)||(r.push(D),l.has(A)||(l.add(A),Ge(A,o).forEach(function(K){y.insert(K)})),l.has(z)||(l.add(z),Ge(z,o).forEach(function(K){y.insert(K)})))}return r},kr=function(t,e){var r=[],n=t.nodes,a=n===void 0?[]:n,i=t.edges,o=i===void 0?[]:i;if(a.length===0)return r;var u=o.map(function(A){return A});e&&u.sort(function(A,z){return A.weight-z.weight});for(var l=new ht(a.map(function(A){return A.id}));u.length>0;){var h=u.shift(),y=h.source,D=h.target;l.connected(y,D)||(r.push(h),l.union(y,D))}return r},vn=function(t,e,r){var n={prim:Yt,kruskal:kr};return r?n[r](t,e):kr(t,e)},Ct=vn,Qt=function(t,e,r){typeof e!="number"&&(e=1e-6),typeof r!="number"&&(r=.85);for(var n=1,a=0,i=1e3,o=t.nodes,u=o===void 0?[]:o,l=t.edges,h=l===void 0?[]:l,y=u.length,D,A={},z={},K=0;K0&&n>e;){a=0;for(var K=0;K0&&(D+=z[Ne]/Ie)}A[se]=r*D,a+=A[se]}}a=(1-a)/y,n=0;for(var K=0;K=0;r--){var n=this.dfsEdgeList[r],a=n.fromNode,i=n.toNode;aA||n.hasNode(i[D.to])||(e.labelce;Ne--){var Ie=Me(Ne);if(Ie==="break")break}if(se){var Pe=t.findMinLabel(ee);i.dfsEdgeList.push(new Te(K,oe,Ln,Pe.edgeLabel,Ln));var Ye=i.dfsEdgeList.length-1;return t.dfsCode.dfsEdgeList[Ye]!==i.dfsEdgeList[Ye]?!1:y(ee[Pe.edgeLabel].projected)}var rt={};se=!1;var Ke=0;D.forEach(function(Kt){var Yr=new st(Kt),Xr=t.findForwardPureEdges(n,Yr.edges[A[0]],z,Yr);Xr.length>0&&(se=!0,Ke=K,Xr.forEach(function(qt){var br="".concat(qt.label,"-").concat(a[qt.to].label);rt[br]||(rt[br]={projected:[],edgeLabel:qt.label,nodeLabel2:a[qt.to].label}),rt[br].projected.push({graphId:n.id,edge:qt,preNode:Kt})}))});for(var mt=A.length,Bt=function(Yr){if(se)return"break";var Xr=A[Yr];D.forEach(function(qt){var br=new st(qt),Nr=t.findForwardRmpathEdges(n,br.edges[Xr],z,br);Nr.length>0&&(se=!0,Ke=i.dfsEdgeList[Xr].fromNode,Nr.forEach(function(zr){var Qr="".concat(zr.label,"-").concat(a[zr.to].label);rt[Qr]||(rt[Qr]={projected:[],edgeLabel:zr.label,nodeLabel2:a[zr.to].label}),rt[Qr].projected.push({graphId:n.id,edge:zr,preNode:qt})}))})},Ne=0;Ne=0;z--){var K=e.findBackwardEdge(y,A.edges[a[z]],A.edges[a[0]],A);if(K){var ee="".concat(e.dfsCode.dfsEdgeList[a[z]].fromNode,"-").concat(K.label);l[ee]||(l[ee]={projected:[],toNodeId:e.dfsCode.dfsEdgeList[a[z]].fromNode,edgeLabel:K.label}),l[ee].projected.push({graphId:h.graphId,edge:K,preNode:h})}}if(!(n>=e.maxNodeNum)){var se=e.findForwardPureEdges(y,A.edges[a[0]],o,A);se.forEach(function(ce){var Me="".concat(i,"-").concat(ce.label,"-").concat(D[ce.to].label);u[Me]||(u[Me]={projected:[],fromNodeId:i,edgeLabel:ce.label,nodeLabel2:D[ce.to].label}),u[Me].projected.push({graphId:h.graphId,edge:ce,preNode:h})});for(var oe=function(Me){var Ne=e.findForwardRmpathEdges(y,A.edges[a[Me]],o,A);Ne.forEach(function(Ie){var Pe="".concat(e.dfsCode.dfsEdgeList[a[Me]].fromNode,"-").concat(Ie.label,"-").concat(D[Ie.to].label);u[Pe]||(u[Pe]={projected:[],fromNodeId:e.dfsCode.dfsEdgeList[a[Me]].fromNode,edgeLabel:Ie.label,nodeLabel2:D[Ie.to].label}),u[Pe].projected.push({graphId:h.graphId,edge:Ie,preNode:h})})},z=0;zce){var Me=ce;ce=oe,oe=Me}var Ne=se.label,Ie="".concat(l,"-").concat(oe,"-").concat(Ne,"-").concat(ce),Pe="".concat(oe,"-").concat(Ne,"-").concat(ce);if(!i[Pe]){var Ye=i[Pe]||0;Ye++,i[Pe]=Ye}u[Ie]={graphId:l,nodeLabel1:oe,edgeLabel:Ne,nodeLabel2:ce}})})}),Object.keys(a).forEach(function(l){var h=a[l];if(!(h2*e)););if(ee<2*e&&(o["".concat(h,"-").concat(K)]={start:h,end:K,distance:a[h][K]},y++,u++,u>=r))return o;if(D++,D>2*e)break}if(yD&&(u=D);var A=r[y.id].inDegree;l>A&&(l=A);var z=r[y.id].outDegree;h>z&&(h=z)}),t[e]={degree:u,inDegree:l,outDegree:h}),{minPatternNodeLabelDegree:u,minPatternNodeLabelInDegree:l,minPatternNodeLabelOutDegree:h}},So=function(t,e,r,n,a,i,o){var u;if(r===void 0&&(r=!1),i===void 0&&(i="cluster"),o===void 0&&(o="cluster"),!(!t||!t.nodes)){var l=t.nodes.length;if(!!l){var h=nn(t,r),y=nn(e,r),D=ei(t.nodes,h,r),A=ei(e.nodes,y,r),z=Ba(t.nodes,i),K=z.nodeMap,ee=z.nodeLabelMap,se=Ba(e.nodes,i),oe=se.nodeMap,ce=se.nodeLabelMap;ya(t.edges,o,K);var Me=ya(e.edges,o,oe).edgeLabelMap,Ne=[];y==null||y.forEach(function(oa){Ne=Ne.concat(oa)}),a||(a=Math.max.apply(Math,(0,w.__spreadArray)((0,w.__spreadArray)([],Ne,!1),[2],!1))),n||(n=a);var Ie=xn(t,h,i,n),Pe=xn(e,y,i,n),Ye=Math.min(100,l*(l-1)/2),rt=Hn(n,l,Ye,Ie,h),Ke=ta(rt,Ie,t),mt=10,Bt=1,Er=1,fr=4,lr={graphs:Ke,nodeLabelProp:i,edgeLabelProp:o,minSupport:Bt,minNodeNum:Er,maxNodeNum:fr,directed:r},Kt=fn(lr).slice(0,mt),Yr=Kt.length,Xr=[];Kt.forEach(function(oa,Ma){Xr[Ma]={},Object.keys(Ke).forEach(function(Un){var Ca=Ke[Un],Da=Wa(Ca,oa,i,o);Xr[Ma][Un]=Da})});var qt=Oa(Xr,Yr,Kt),br=qt.structure,Nr=qt.structureCountMap,zr=e.nodes[0],Qr=[],ln=(u=e.nodes[0])===null||u===void 0?void 0:u[i],Cn=-Infinity;e.nodes.forEach(function(oa){var Ma=oa[i],Un=ee[Ma];(Un==null?void 0:Un.length)>Cn&&(Cn=Un.length,Qr=Un,ln=Ma,zr=oa)});var Pn={},ba={},ea={},ha={},Ia={},Ja={};Object.keys(ce).forEach(function(oa,Ma){Ia[oa]=[],r&&(Ja[oa]=[]);var Un=-Infinity,Ca=ce[oa],Da={};Ca.forEach(function(Ea){var On=A["".concat(zr.id,"-").concat(Ea.id)];if(On&&Ia[oa].push(On),UnIa[oa][No]){nl=!0;break}if(nl)return Qr.splice(On,1),"continue";var xs={};_i.neighbors.forEach(function(Po){var Xs=D["".concat(Xa.id,"-").concat(Po.id)];xs["".concat(Xa.id,"-").concat(Po.id)]={start:K[Xa.id].idx,end:K[Po.id].idx,distance:Xs}}),Ke=ta(xs,Ie,t,Ke);var uu=[];Object.keys(xs).forEach(function(Po){if(Nr[Po]){uu.push(Nr[Po]);return}var Xs=Ke[Po];Nr[Po]=Wa(Xs,br,i,o),uu.push(Nr[Po])}),uu=uu.sort(function(Po,Xs){return Xs-Po});for(var wf=!1,No=0;No=0;Ua--)pa(Ua)});var Ra=[];Qr==null||Qr.forEach(function(oa){for(var Ma=K[oa.id].idx,Un=Bn(t.nodes,h[Ma],Ma,i,a),Ca=Un.neighbors,Da=Ca.length,dn=!1,va=Da-1;va>=0;va--){if(Ca.length+1_i){Ca.splice(va,1);continue}if(r){var Mi="".concat(pa.id,"-").concat(oa.id),cc=D[Mi];Xa=Ja[Ua].length-1;var nl=Ja[Ua][Xa];if(cc>nl){Ca.splice(va,1);continue}}var No=Nr[Ea]?Nr[Ea]:oi(t,oa,pa,K,On,Ie,br,i,o,Nr,Ke),xs="".concat(zr.id,"-").concat(Ua),uu=ha[xs][ha[xs].length-1];if(No=0;On--){var nl=cc(On);if(nl==="break")break}if(Mi)return Ra.splice(Ma,1),"continue";Un.edges=va;var No=Dt(Un,Un.nodes[0].id,!1).length;if(Object.keys(No).reverse().forEach(function(di){if(!(di===Un.nodes[0].id||Mi)){if(No[di]===Infinity){var rs=dn[di].node[i];if(Da[rs]--,Da[rs]ri[fu][ri[fu].length-1]){var rs=dn[di].node[i];if(Da[rs]--,Da[rs]=0;Xs--){var Uu=Un.nodes[Xs],uh=dn[Uu.id].degree,jg=dn[Uu.id].inDegree,Xg=dn[Uu.id].outDegree,Vg=Uu[i],dd=wa(Pn,Vg,oe,ce),fh=dd.minPatternNodeLabelDegree,Yg=dd.minPatternNodeLabelInDegree,Hg=dd.minPatternNodeLabelOutDegree,Zg=r?uh=0;Ql--){var Wu=va[Ql];if(!dn[Wu.source]||!dn[Wu.target]){va.splice(Ql,1);var Jl=Wu[o];if(pa[Jl]--,dn[Wu.source]&&(dn[Wu.source].degree--,dn[Wu.source].outDegree--),dn[Wu.target]&&(dn[Wu.target].degree--,dn[Wu.target].inDegree--),Me[Jl]&&pa[Jl]=0;qa--){var pi=Za(qa);if(pi==="break")break}for(var Ii=Ra.length,qi=function(Ma){var Un=Ra[Ma],Ca={};Un.edges.forEach(function(va){var pa="".concat(va.source,"-").concat(va.target,"-").concat(va.label);Ca[pa]?Ca[pa]++:Ca[pa]=1});for(var Da=function(pa){var Ua=Ra[pa],Ea={};Ua.edges.forEach(function(Xa){var _i="".concat(Xa.source,"-").concat(Xa.target,"-").concat(Xa.label);Ea[_i]?Ea[_i]++:Ea[_i]=1});var On=!0;Object.keys(Ea).length!==Object.keys(Ca).length?On=!1:Object.keys(Ca).forEach(function(Xa){Ea[Xa]!==Ca[Xa]&&(On=!1)}),On&&Ra.splice(pa,1)},dn=Ii-1;dn>Ma;dn--)Da(dn);Ii=Ra.length},qa=0;qa<=Ii-1;qa++)qi(qa);return Ra}}},to=So,co=function(){function c(t){t===void 0&&(t=10),this.linkedList=new ge,this.maxStep=t}return Object.defineProperty(c.prototype,"length",{get:function(){return this.linkedList.toArray().length},enumerable:!1,configurable:!0}),c.prototype.isEmpty=function(){return!this.linkedList.head},c.prototype.isMaxStack=function(){return this.toArray().length>=this.maxStep},c.prototype.peek=function(){return this.isEmpty()?null:this.linkedList.head.value},c.prototype.push=function(t){this.linkedList.prepend(t),this.length>this.maxStep&&this.linkedList.deleteTail()},c.prototype.pop=function(){var t=this.linkedList.deleteHead();return t?t.value:null},c.prototype.toArray=function(){return this.linkedList.toArray().map(function(t){return t.value})},c.prototype.clear=function(){for(;!this.isEmpty();)this.pop()},c}(),ni=co,lo=wr,ws={getAdjMatrix:te,breadthFirstSearch:Mt,connectedComponent:it,getDegree:bt,getInDegree:Ft,getOutDegree:wt,detectCycle:wr,detectDirectedCycle:lo,detectAllCycles:tr,detectAllDirectedCycle:Rt,detectAllUndirectedCycle:ut,depthFirstSearch:Ur,dijkstra:Dt,findAllPath:dr,findShortestPath:Sr,floydWarshall:nn,labelPropagation:Wr,louvain:Z,iLouvain:qe,kCore:ae,kMeans:C,cosineSimilarity:de,nodesCosineSimilarity:xe,minimumSpanningTree:Ct,pageRank:mr,getNeighbors:_e,Stack:ni,GADDI:to},ko=G(77160),yi=G(35600),ga=G(31437),_o=q.vs,Hi=function(t){return function(e,r){return e[t]-r[t]}},ki=function(t,e,r){return t>=e&&t<=r},Ro=function(t,e,r,n){var a=1e-4,i={x:r.x-t.x,y:r.y-t.y},o={x:e.x-t.x,y:e.y-t.y},u={x:n.x-r.x,y:n.y-r.y},l=o.x*u.y-o.y*u.x,h=l*l,y=1/l,D=o.x*o.x+o.y*o.y,A=u.x*u.x+u.y*u.y;if(h>a*D*A){var z=(i.x*u.y-i.y*u.x)*y,K=(i.x*o.y-i.y*o.x)*y;return!ki(z,0,1)||!ki(K,0,1)?null:{x:t.x+z*o.x,y:t.y+z*o.y}}return null},Ss=function(t,e){var r=t.x,n=t.y,a=t.width,i=t.height,o=r+a/2,u=n+i/2,l=[],h={x:o,y:u};l.push({x:r,y:n}),l.push({x:r+a,y:n}),l.push({x:r+a,y:n+i}),l.push({x:r,y:n+i}),l.push({x:r,y:n});for(var y=null,D=1;De[n][i]+e[i][a]&&(e[n][a]=e[n][i]+e[i][a]);return e},Oi=function(t,e){var r=t.nodes,n=t.edges,a=[],i={};if(!r)throw new Error("invalid nodes data!");return r&&r.forEach(function(o,u){i[o.id]=u;var l=[];a.push(l)}),n&&n.forEach(function(o){var u=o.source,l=o.target,h=i[u],y=i[l];a[h][y]=1,e||(a[y][h]=1)}),a},Mo=function(t,e){t.translate(e.x,e.y)},ho=function(t,e,r,n){n===void 0&&(n={duration:500});var a=t.getMatrix();a||(a=[1,0,0,0,1,0,0,0,1]);var i=t.getCanvasBBox(),o=e.x-i.minX,u=e.y-i.minY;if(r){var l=o*a[0],h=u*a[4],y=0,D=0,A=0,z=0;t.animate(function(ee){return A=l*ee,z=h*ee,a=_o(a,[["t",A-y,z-D]]),y=A,D=z,{matrix:a}},n)}else{var K=_o(a,[["t",o,u]]);t.setMatrix(K)}},Ri=function(t,e){var r=t.getMatrix();r||(r=[1,0,0,0,1,0,0,0,1]);var n=e;(0,b.isArray)(e)||(n=[e,e]),(0,b.isArray)(e)&&e.length===1&&(n=[e[0],e[0]]),r=_o(r,[["s",n[0],n[1]]]),t.setMatrix(r)},Ai=function(t,e){var r=t.getMatrix();r||(r=[1,0,0,0,1,0,0,0,1]),r=_o(r,[["r",e]]),t.setMatrix(r)},$o=function(t,e,r){for(var n=[],a=0;a0!=o(h[1]-r)>0&&o(e-(r-l[1])*(l[0]-h[0])/(l[1]-h[1])-l[0])<0&&(n=!n)}return n},Qo=function(t,e){return!(e.minX>t.maxX||e.maxXt.maxY||e.maxY1){var oe=D[0],ce=D[z-1];A.push({from:{x:ce[0],y:ce[1]},to:{x:oe[0],y:oe[1]}})}return A};if(t.length<2||e.length<2)return!1;var a=r(t),i=r(e);if(!Qo(a,i))return!1;var o=!1;if((0,b.each)(e,function(y){if(ro(t,y[0],y[1]))return o=!0,!1}),o||((0,b.each)(t,function(y){if(ro(e,y[0],y[1]))return o=!0,!1}),o))return!0;var u=n(t),l=n(e),h=!1;return(0,b.each)(l,function(y){if(ns(u,y))return h=!0,!1}),h},la=function(){function c(t,e,r,n){this.x1=t,this.y1=e,this.x2=r,this.y2=n}return c.prototype.getBBox=function(){var t=Math.min(this.x1,this.x2),e=Math.min(this.y1,this.y2),r=Math.max(this.x1,this.x2),n=Math.max(this.y1,this.y2),a={x:t,y:e,minX:t,minY:e,maxX:r,maxY:n,width:r-t,height:n-e};return a},c}(),vo=function(t,e){var r={top:[t.minX,t.minY,t.maxX,t.minY],left:[t.minX,t.minY,t.minX,t.maxY],bottom:[t.minX,t.maxY,t.maxX,t.maxY],right:[t.maxX,t.minY,t.maxX,t.maxY]};return r[e]},Vs=function(t,e){var r=(e.x2-e.x1)*(t.y1-e.y1)-(e.y2-e.y1)*(t.x1-e.x1),n=(t.x2-t.x1)*(t.y1-e.y1)-(t.y2-t.y1)*(t.x1-e.x1),a=(e.y2-e.y1)*(t.x2-t.x1)-(e.x2-e.x1)*(t.y2-t.y1);if(a){var i=r/a,o=n/a;if(i>=0&&i<=1&&o>=0&&o<=1)return i}return Number.POSITIVE_INFINITY},Di=function(t,e){for(var r=["top","left","bottom","right"],n=t.getBBox(),a=0,i=[],o=0;o<4;o++){var u=vo(n,r[o]),l=u[0],h=u[1],y=u[2],D=u[3];i[o]=Ro({x:e.x1,y:e.y1},{x:e.x2,y:e.y2},{x:l,y:h},{x:y,y:D}),i[o]&&(a+=1)}return[i,a]},Ao=function(t,e){for(var r=["top","left","bottom","right"],n=t.getBBox(),a=Number.POSITIVE_INFINITY,i=0,o=0;o<4;o++){var u=vo(n,r[o]),l=u[0],h=u[1],y=u[2],D=u[3],A=Vs(e,new la(l,h,y,D));A=Math.abs(A-.5),A>=0&&A<=1&&(i+=1,a=A0){for(var n=0,a=t;ne.x+e.width,a=t.y>e.y+e.height,i=t.y":.604998779296875,"/":.5,"?":.53699951171875},Ui=Math.PI,Go=Math.sin,is=Math.cos,si=Go(Ui/8),ai=is(Ui/8),Eo=function(t,e){var r=t.getBBox(),n={x:r.minX,y:r.minY},a={x:r.maxX,y:r.maxY};if(e){var i=e.getMatrix();i||(i=[1,0,0,0,1,0,0,0,1]),n=wn(n,i),a=wn(a,i)}var o=n.x,u=n.y,l=a.x,h=a.y;return{x:o,y:u,minX:o,minY:u,maxX:l,maxY:h,width:l-o,height:h-u}},ju=function(t){var e=t.sourceNode||t.targetNode,r=e.get("group"),n=r.getMatrix();n||(n=[1,0,0,0,1,0,0,0,1]);var a=e.getKeyShape(),i=a.getBBox(),o=t.loopCfg||{},u=o.dist||Math.max(i.width,i.height)*2,l=o.position||un.defaultLoopPosition,h=[n[6],n[7]],y=[t.startPoint.x,t.startPoint.y],D=[t.endPoint.x,t.endPoint.y],A=i.height/2,z=i.width/2,K=A,ee=A,se=K*si,oe=K*ai,ce=ee*si,Me=ee*ai,Ne=a.get("type"),Ie=Math.min(A/2,z/2),Pe=Math.min(A,z),Ye=(o==null?void 0:o.pointPadding)?Math.min(Pe,o==null?void 0:o.pointPadding):Ie;if(y[0]===D[0]&&y[1]===D[1]){switch(l){case"top":Ne==="circle"?(y=[h[0]-se,h[1]-oe],D=[h[0]+ce,h[1]-Me]):(y=[h[0]-Ye,h[1]-A],D=[h[0]+Ye,h[1]-A]);break;case"top-right":K=A,ee=z,Ne==="circle"?(se=K*si,oe=K*ai,ce=ee*si,Me=ee*ai,y=[h[0]+se,h[1]-oe],D=[h[0]+Me,h[1]-ce]):(y=[h[0]+z-Ye,h[1]-A],D=[h[0]+z,h[1]-A+Ye]);break;case"right":K=z,ee=z,Ne==="circle"?(se=K*si,oe=K*ai,ce=ee*si,Me=ee*ai,y=[h[0]+oe,h[1]-se],D=[h[0]+Me,h[1]+ce]):(y=[h[0]+z,h[1]-Ye],D=[h[0]+z,h[1]+Ye]);break;case"bottom-right":K=z,ee=A,Ne==="circle"?(se=K*si,oe=K*ai,ce=ee*si,Me=ee*ai,y=[h[0]+oe,h[1]+se],D=[h[0]+ce,h[1]+Me]):(y=[h[0]+z,h[1]+A-Ye],D=[h[0]+z-Ye,h[1]+A]);break;case"bottom":K=A,ee=A,Ne==="circle"?(se=K*si,oe=K*ai,ce=ee*si,Me=ee*ai,y=[h[0]+se,h[1]+oe],D=[h[0]-ce,h[1]+Me]):(y=[h[0]-Ye,h[1]+A],D=[h[0]+Ye,h[1]+A]);break;case"bottom-left":K=A,ee=z,Ne==="circle"?(se=K*si,oe=K*ai,ce=ee*si,Me=ee*ai,y=[h[0]-se,h[1]+oe],D=[h[0]-Me,h[1]+ce]):(y=[h[0]-z,h[1]+A-Ye],D=[h[0]-z+Ye,h[1]+A]);break;case"left":K=z,ee=z,Ne==="circle"?(se=K*si,oe=K*ai,ce=ee*si,Me=ee*ai,y=[h[0]-oe,h[1]+se],D=[h[0]-Me,h[1]-ce]):(y=[h[0]-z,h[1]-Ye],D=[h[0]-z,h[1]+Ye]);break;case"top-left":K=z,ee=A,Ne==="circle"?(se=K*si,oe=K*ai,ce=ee*si,Me=ee*ai,y=[h[0]-oe,h[1]-se],D=[h[0]-ce,h[1]-Me]):(y=[h[0]-z+Ye,h[1]-A],D=[h[0]-z,h[1]-A+Ye]);break;default:K=z,ee=z,se=K*si,oe=K*ai,ce=ee*si,Me=ee*ai,y=[h[0]-se,h[1]-oe],D=[h[0]+ce,h[1]-Me]}if(o.clockwise===!1){var rt=[y[0],y[1]];y=[D[0],D[1]],D=[rt[0],rt[1]]}}var Ke=[y[0]-h[0],y[1]-h[1]],mt=(K+u)/K,Bt=(ee+u)/ee;o.clockwise===!1&&(mt=(ee+u)/ee,Bt=(K+u)/K);var Er=ga.scale([0,0],Ke,mt),fr=[h[0]+Er[0],h[1]+Er[1]],lr=[D[0]-h[0],D[1]-h[1]],Kt=ga.scale([0,0],lr,Bt),Yr=[h[0]+Kt[0],h[1]+Kt[1]];return t.startPoint={x:y[0],y:y[1]},t.endPoint={x:D[0],y:D[1]},t.controlPoints=[{x:fr[0],y:fr[1]},{x:Yr[0],y:Yr[1]}],t},Xu=function(t,e,r,n,a){var i=1e-4,o=[],u=t==null?void 0:t.getPoint(e);if(!u)return{x:0,y:0,angle:0};if(e1-i)o=t.getEndTangent();else{var l=t==null?void 0:t.getPoint(e+i);o.push([u.x,u.y]),o.push([l.x,l.y])}var h=Math.atan2(o[1][1]-o[0][1],o[1][0]-o[0][0]);if(h<0&&(h+=Ui*2),r&&(u.x+=is(h)*r,u.y+=Go(h)*r),n){var y=h-Ui/2;h>1/2*Ui&&h<3*1/2*Ui&&(y-=Ui),u.x+=is(y)*n,u.y+=Go(y)*n}var D={x:u.x,y:u.y,angle:h};return a?(h>.5*Ui&&h<1.5*Ui&&(h-=Ui),(0,w.__assign)({rotate:h},D)):D},lu=function c(t,e,r,n){if(n(t,e,r)===!1)return!1;if(t&&t.children){for(var a=t.children.length-1;a>=0;a--)if(!c(t.children[a],t,a,n))return!1}return!0},du=function c(t,e,r,n){if(t&&t.children){for(var a=t.children.length-1;a>=0;a--)if(!c(t.children[a],t,a,n))return}return n(t,e,r)!==!1},mi=function(t,e){typeof e=="function"&&lu(t,null,-1,e)},$i=function(t,e){typeof e=="function"&&du(t,null,-1,e)},Zs=function(t,e){return e*(Hs[t]||1)},Ks=function(t,e){var r=0,n=new RegExp("[\u4E00-\u9FA5]+");return t.split("").forEach(function(a){n.test(a)?r+=e:r+=Zs(a,e)}),[r,e]},io=function(t,e){return typeof e!="number"||e<=0||e>=t.length?t:t.substring(0,e)+"..."},os=function(t,e){var r=[],n={},a={};t.forEach(function(u){a[u.id]=u}),t.forEach(function(u,l){var h=(0,b.clone)(u);h.itemType="combo",h.children=void 0,h.parentId===h.id?(console.warn("The parentId for combo ".concat(h.id," can not be the same as the combo's id")),delete h.parentId):h.parentId&&!a[h.parentId]&&(console.warn("The parent combo for combo ".concat(h.id," does not exist!")),delete h.parentId);var y=n[h.id];if(y){if(h.children=y.children,n[h.id]=h,y=h,!y.parentId){r.push(y);return}var D=n[y.parentId];if(D)D.children?D.children.push(h):D.children=[h];else{var A={id:y.parentId,children:[y]};n[y.parentId]=A,n[h.id]=h}return}if((0,b.isString)(u.parentId)){var z=n[u.parentId];if(z)z.children?z.children.push(h):z.children=[h],n[h.id]=h;else{var K={id:u.parentId,children:[h]};n[K.id]=K,n[h.id]=h}}else r.push(h),n[h.id]=h});var i={};(e||[]).forEach(function(u){i[u.id]=u;var l=n[u.comboId];if(l){var h={id:u.id,comboId:u.comboId};l.children?l.children.push(h):l.children=[h],h.itemType="node",n[u.id]=h}});var o=0;return r.forEach(function(u){u.depth=o+10,mi(u,function(l){var h,y=n[l.id].itemType;y==="node"?h=n[l.comboId]:h=n[l.parentId],h&&y==="node"?l.depth=o+1:l.depth=o+10,o-1&&a.splice(h,1),u||(i={id:e,itemType:"node",comboId:r},o[e]={children:void 0}),e){var y=!1;if(r){var D=0;(t||[]).forEach(function(z){y||mi(z,function(K){return r===K.id?(y=!0,K.children?K.children.push(i):K.children=[i],D=K.depth,i.itemType==="node"?i.depth=D+2:i.depth=D+1,!1):!0})})}else(!r||!y)&&i.itemType!=="node"&&t.push(i);var A=i.depth;mi(i,function(z){return z.itemType==="node"?A+=2:A+=1,z.depth=A,!0})}return t},us=function(t,e,r){var n={minX:Infinity,minY:Infinity,maxX:-Infinity,maxY:-Infinity,x:void 0,y:void 0,width:void 0,height:void 0,centerX:void 0,centerY:void 0};if(!t||t.length===0){var a=r==null?void 0:r.getModel(),i=a||{},o=i.x,u=i.y,l=i.fixSize,h=i.collapsed,y=i.fixCollapseSize,D=h?y:l,A=(0,b.isArray)(D)?D:[D,D],z=A[0],K=A[1],ee=[z/2,K/2];return{minX:o-ee[0],minY:u-ee[1],maxX:o+ee[0],maxY:u+ee[1],x:o,y:u,width:z,height:K}}return t.forEach(function(se){var oe=e.findById(se.id);if(!(!oe||!oe.isVisible())){oe.set("bboxCanvasCache",void 0);var ce=oe.getCanvasBBox();ce.x&&n.minX>ce.minX&&(n.minX=ce.minX),ce.y&&n.minY>ce.minY&&(n.minY=ce.minY),ce.x&&n.maxXr&&(r=y),D>a&&(a=D)}var A=Math.floor(e),z=Math.floor(n),K=Math.ceil(r)-Math.floor(e),ee=Math.ceil(a)-Math.floor(n);return{x:A,y:z,width:K,height:ee,minX:e,minY:n,maxX:r,maxY:a}},_f=function(t,e,r,n,a){e===void 0&&(e=15),r===void 0&&(r="quadratic"),n===void 0&&(n=void 0),a===void 0&&(a=void 0);for(var i=t.length,o=e*2,u=["top","top-right","right","bottom-right","bottom","bottom-left","left","top-left"],l={},h=[],y={},D=0;Dr.get("optimizeThreshold")){var o=Infinity,u=Infinity,l=-Infinity,h=-Infinity;i.forEach(function(Me){var Ne=Me.getModel(),Ie=Ne.x,Pe=Ne.y;o>Ie&&(o=Ie),u>Pe&&(u=Pe),lee&&(se=ee,console.warn("fitview failed, ratio out of range, ratio: %f",o,"graph maxzoom has been used instead"));var oe=(0,Cs.vs)(A,[["t",-a.x,-a.y],["s",se,se],["t",a.x,a.y]]),ce=bo({animateCfg:r,callback:function(){t.setMatrix(oe),l.emit("viewportchange",{action:"translate",matrix:A}),l.emit("viewportchange",{action:"zoom",matrix:oe})}});t.stopAnimate(),t.setMatrix(e),t.animate(function(Me){return{matrix:Fa(e,oe,Me)}},ce)}},c.prototype.fitView=function(t,e){var r=this.graph,n=this.getFormatPadding(),a=r.get("width"),i=r.get("height"),o=r.get("group"),u=o.getMatrix()||[1,0,0,0,1,0,0,0,1];o.resetMatrix();var l,h=r.getNodes();if(h.length>r.get("optimizeThreshold")){var y=Infinity,D=Infinity,A=-Infinity,z=-Infinity;h.forEach(function(Ie){var Pe=Ie.getModel(),Ye=Pe.x,rt=Pe.y;y>Ye&&(y=Ye),D>rt&&(D=rt),Aoe&&(ce=oe),t)this.animatedFitView(o,u,e,l,K,ee,ce,!0);else{var Me=K.x-ee.x,Ne=K.y-ee.y;if(xo(Me)||xo(Ne))return;r.translate(Me,Ne),r.zoom(ce,K)||console.warn("zoom failed, ratio out of range, ratio: %f",ce)}}},c.prototype.fitViewByRules=function(t,e,r){var n=t.onlyOutOfViewPort,a=n===void 0?!1:n,i=t.direction,o=i===void 0?"both":i,u=t.ratioRule,l=u===void 0?"min":u,h=this.graph,y=this.getFormatPadding(),D=h.get("width"),A=h.get("height"),z=h.get("group"),K=z.getMatrix()||[1,0,0,0,1,0,0,0,1];z.resetMatrix();var ee,se=h.getNodes();if(se.length>h.get("optimizeThreshold")){var oe=Infinity,ce=Infinity,Me=-Infinity,Ne=-Infinity;se.forEach(function(fr){var lr=fr.getModel(),Kt=lr.x,Yr=lr.y;oe>Kt&&(oe=Kt),ce>Yr&&(ce=Yr),Mey.maxX&&(y.maxX=K.maxX),K.maxY>y.maxY&&(y.maxY=K.maxY)}if(y.x=y.minX,y.y=y.minY,y.width=y.maxX-y.minX,y.height=y.maxY-y.minY,!(y.width===0||y.height===0)){var ee=this.getViewCenter(),se={x:y.x+y.width/2,y:y.y+y.height/2},oe=(o-i[1]-i[3])/y.width,ce=(u-i[0]-i[2])/y.height,Me=oe;oe>ce&&(Me=ce),r?this.animatedFitView(l,h,n,y,ee,se,Me,e):(a.translate(ee.x-se.x,ee.y-se.y),e&&!a.zoom(Me,ee)&&console.warn("zoom failed, ratio out of range, ratio: %f",Me))}}},c.prototype.changeSize=function(t,e){var r=this.graph;if(!(0,b.isNumber)(t)||!(0,b.isNumber)(e))throw Error("invalid canvas width & height, please make sure width & height type is number");r.set({width:t,height:e});var n=r.get("canvas");n.changeSize(t,e);var a=r.get("plugins");a.forEach(function(i){i.get("gridContainer")&&i.positionInit()})},c.prototype.destroy=function(){this.graph=null,this.destroyed=!1},c}(),s=Mf;function I(c){return I=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},I(c)}function ue(c){if(typeof c!="string")return c;var t=function(Pe){if(typeof Pe!="string")return Pe;try{return JSON.parse(Pe.trim())}catch(Ye){return Pe.trim()}},e=t(c);if(typeof e!="string")return e;for(var r=function(Pe){return Pe[Pe.length-1]},n=c.trim(),a=[],i=[],o=function(){for(var Pe=[],Ye=0;Ye=0&&(a.height=i),o>=0&&(a.width=o),n.marginTop&&(a.y+=n.marginTop),n.marginLeft&&(a.x+=n.marginLeft),a}function Ve(c,t){var e;t===void 0&&(t={x:0,y:0});var r=(0,w.__assign)({x:0,y:0,width:0,height:0},t);if((e=c.children)===null||e===void 0?void 0:e.length){var n=c.attrs,a=n===void 0?{}:n,i=a.marginTop,o=(0,w.__assign)({},t);i&&(o.y+=i);for(var u=0;ur.width&&(r.width=h.width+h.x),h.height+h.y>r.height&&(r.height=h.height+h.y)}}}return c.bbox=Re(c,t,r),c.attrs=(0,w.__assign)((0,w.__assign)({},c.attrs),c.bbox),c}function $e(c,t){var e,r,n,a,i=(c||{}).type,o=((t==null?void 0:t.attrs)||{}).key;if(o&&c&&(c.attrs.key=o),!c&&t)return{action:"delete",val:t,type:i,key:o};if(c&&!t)return{action:"add",val:c,type:i};if(!c&&!t)return{action:"same",type:i};var u=[];if(((e=c.children)===null||e===void 0?void 0:e.length)>0||((r=t.children)===null||r===void 0?void 0:r.length)>0)for(var l=Math.max((n=c.children)===null||n===void 0?void 0:n.length,(a=t.children)===null||a===void 0?void 0:a.length),h=t.children||[],y=c.children||[],D=0;D-1)return;r.push(a)}else u>-1&&r.splice(u,1)}else if((0,b.isString)(e)){var l=r.filter(function(D){return D.includes(i)});l.length>0&&this.clearStates(l),o=o.filter(function(D){return!D.includes(i)}),o.push(a),this.set("states",o)}if(n){var h=this.get("model"),y=h.type;n.setState(y,t,e,this)}},c.prototype.clearStates=function(t){var e=this,r=e.getStates(),n=e.get("shapeFactory"),a=e.get("model"),i=a.type;t||(t=r),(0,b.isString)(t)&&(t=[t]);var o=r.filter(function(u){return t.indexOf(u)===-1});e.set("states",o),t.forEach(function(u){n.setState(i,u,!1,e)})},c.prototype.setOptimize=function(t){this.optimize=t},c.prototype.getContainer=function(){return this.get("group")},c.prototype.getKeyShape=function(){return this.get("keyShape")},c.prototype.getModel=function(){return this.get("model")},c.prototype.getType=function(){return this.get("type")},c.prototype.getID=function(){return this.get("id")},c.prototype.isItem=function(){return!0},c.prototype.getStates=function(){return this.get("states")},c.prototype.hasState=function(t){var e=this.getStates();return e.indexOf(t)>=0},c.prototype.refresh=function(t){var e=this.get("model");this.updatePosition(e),this.updateShape(t),this.afterUpdate(),this.clearCache()},c.prototype.getUpdateType=function(t){},c.prototype.update=function(t,e){e===void 0&&(e=void 0);var r=this.get("model");if(e==="move")this.updatePosition(t);else{var n=r.visible,a=t.visible;n!==a&&a!==void 0&&this.changeVisibility(a);var i={x:r.x,y:r.y};t.x=isNaN(+t.x)?r.x:+t.x,t.y=isNaN(+t.y)?r.y:+t.y;var o=this.get("styles");if(t.stateStyles){var u=t.stateStyles;(0,b.mix)(o,u),delete t.stateStyles}Object.assign(r,t),(i.x!==t.x||i.y!==t.y)&&this.updatePosition(t),this.updateShape(e)}this.afterUpdate(),this.clearCache()},c.prototype.updateShape=function(t){var e=this.get("shapeFactory"),r=this.get("model"),n=r.type;if(e.shouldUpdate(n)&&n===this.get("currentShape")){var a=this.getShapeCfg(r,t);e.baseUpdate(n,a,this,t),t!=="move"&&this.setOriginStyle()}else this.draw();this.restoreStates(e,n)},c.prototype.updatePosition=function(t){var e=this.get("model"),r=isNaN(+t.x)?+e.x:+t.x,n=isNaN(+t.y)?+e.y:+t.y,a=this.get("group");if(isNaN(r)||isNaN(n))return!1;e.x=r,e.y=n;var i=a.getMatrix();return i&&i[6]===r&&i[7]===n?!1:(a.resetMatrix(),Mo(a,{x:r,y:n}),this.clearCache(),!0)},c.prototype.getBBox=function(){var t=this.get(hr);return t||(t=this.calculateBBox(),this.set(hr,t)),t},c.prototype.getCanvasBBox=function(){var t=this.get(rn);return t||(t=this.calculateCanvasBBox(),this.set(rn,t)),t},c.prototype.toFront=function(){var t=this.get("group");t.toFront()},c.prototype.toBack=function(){var t=this.get("group");t.toBack()},c.prototype.show=function(){this.changeVisibility(!0)},c.prototype.hide=function(){this.changeVisibility(!1)},c.prototype.changeVisibility=function(t){var e=this.get("group");t?e.show():e.hide(),this.set("visible",t)},c.prototype.isVisible=function(){return this.get("visible")},c.prototype.enableCapture=function(t){var e=this.get("group");e&&e.set("capture",t)},c.prototype.destroy=function(){if(!this.destroyed){var t=this.get("animate"),e=this.get("group");t&&e.stopAnimate(),e.shapeMap={},this.clearCache(),e.remove(),this._cfg=null,this.destroyed=!0}},c}(),Fn=Kn,_n={source:"start",target:"end"},Mn="Node",Ga="Point",ti="Anchor",Ka=function(c){(0,w.__extends)(t,c);function t(){return c!==null&&c.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){return{type:"edge",sourceNode:null,targetNode:null,startPoint:null,endPoint:null,linkCenter:!1}},t.prototype.setEnd=function(e,r){var n=_n[e]+Ga,a=e+Mn,i=this.get(a);i&&!i.destroyed&&i.removeEdge(this),(0,b.isPlainObject)(r)?(this.set(n,r),this.set(a,null)):r&&(r.addEdge(this),this.set(a,r),this.set(n,null))},t.prototype.getLinkPoint=function(e,r,n){var a=_n[e]+Ga,i=e+Mn,o=this.get(a);if(!o){var u=this.get(i),l=e+ti,h=this.getPrePoint(e,n),y=r[l];(0,b.isNil)(y)||(o=u.getLinkPointByAnchor(y)),o=o||u.getLinkPoint(h),(0,b.isNil)(o.index)||this.set("".concat(e,"AnchorIndex"),o.index)}return o},t.prototype.getPrePoint=function(e,r){if(r&&r.length){var n=e==="source"?0:r.length-1;return r[n]}var a=e==="source"?"target":"source";return this.getEndPoint(a)},t.prototype.getEndPoint=function(e){var r=e+Mn,n=_n[e]+Ga,a=this.get(r);return a&&!a.destroyed?a.get("model"):this.get(n)},t.prototype.getControlPointsByCenter=function(e){var r=this.getEndPoint("source"),n=this.getEndPoint("target"),a=this.get("shapeFactory"),i=e.type;return a.getControlPoints(i,{startPoint:r,endPoint:n})},t.prototype.getEndCenter=function(e){var r=e+Mn,n=_n[e]+Ga,a=this.get(r);if(a){var i=a.getBBox();return{x:i.centerX,y:i.centerY}}return this.get(n)},t.prototype.init=function(){c.prototype.init.call(this),this.setSource(this.get("source")),this.setTarget(this.get("target"))},t.prototype.getShapeCfg=function(e,r){var n=this,a=n.get("linkCenter"),i=(r==null?void 0:r.includes("move"))?e:c.prototype.getShapeCfg.call(this,e);if(a)i.startPoint=n.getEndCenter("source"),i.endPoint=n.getEndCenter("target");else{var o=i.controlPoints||n.getControlPointsByCenter(i);i.startPoint=n.getLinkPoint("source",e,o),i.endPoint=n.getLinkPoint("target",e,o)}return i.sourceNode=n.get("sourceNode"),i.targetNode=n.get("targetNode"),i},t.prototype.getModel=function(){var e=this.get("model"),r=this.get("source".concat(Mn)),n=this.get("target".concat(Mn));return r?delete e["source".concat(Mn)]:e.source=this.get("start".concat(Ga)),n?delete e["target".concat(Mn)]:e.target=this.get("end".concat(Ga)),!(0,b.isString)(e.source)&&!(0,b.isPlainObject)(e.source)&&(e.source=e.source.getID()),!(0,b.isString)(e.target)&&!(0,b.isPlainObject)(e.target)&&(e.target=e.target.getID()),e},t.prototype.setSource=function(e){this.setEnd("source",e),this.set("source",e)},t.prototype.setTarget=function(e){this.setEnd("target",e),this.set("target",e)},t.prototype.getSource=function(){return this.get("source")},t.prototype.getTarget=function(){return this.get("target")},t.prototype.updatePosition=function(){return!1},t.prototype.update=function(e,r){r===void 0&&(r=void 0);var n=this.get("model"),a=n.visible,i=e.visible;a!==i&&i!==void 0&&this.changeVisibility(i);var o=this.get("source"),u=this.get("target");if(!(!o||o.destroyed||!u||u.destroyed)){var l=this.get("styles");if(e.stateStyles){var h=e.stateStyles;(0,b.mix)(l,h),delete e.stateStyles}Object.assign(n,e),this.updateShape(r),this.afterUpdate(),this.clearCache()}},t.prototype.destroy=function(){var e=this.get("source".concat(Mn)),r=this.get("target".concat(Mn));e&&!e.destroyed&&e.removeEdge(this),r&&!r.destroyed&&r.removeEdge(this),c.prototype.destroy.call(this)},t}(Fn),$a=Ka,Ha="anchorPointsCache",ui="bboxCache",Ei=function(c){(0,w.__extends)(t,c);function t(){return c!==null&&c.apply(this,arguments)||this}return t.prototype.getNearestPoint=function(e,r){for(var n=0,a=e[0],i=Va(e[0],r),o=0;o-1&&r.splice(n,1)},t.prototype.clearCache=function(){this.set(ui,null),this.set(Ha,null)},t.prototype.getUpdateType=function(e){var r,n,a,i,o;if(!!e){var u=!(0,b.isNil)(e.x),l=!(0,b.isNil)(e.y),h=Object.keys(e);if(h.length===1&&(u||l)||h.length===2&&u&&l)return"move";if((0,b.isNumber)(e.x)||(0,b.isNumber)(e.y)||e.type||e.anchorPoints||e.size||(e==null?void 0:e.style)&&(((r=e==null?void 0:e.style)===null||r===void 0?void 0:r.r)||((n=e==null?void 0:e.style)===null||n===void 0?void 0:n.width)||((a=e==null?void 0:e.style)===null||a===void 0?void 0:a.height)||((i=e==null?void 0:e.style)===null||i===void 0?void 0:i.rx)||((o=e==null?void 0:e.style)===null||o===void 0?void 0:o.ry)))return"bbox|label";var y=h.includes("label")||h.includes("labelCfg");return y?"style|label":"style"}},t.prototype.setState=function(e,r){var n=this;if(this.optimize){c.prototype.setState.call(this,e,r);return}this.runWithBBoxAffected(function(){return c.prototype.setState.call(n,e,r)})},t.prototype.clearStates=function(e){var r=this;if(this.optimize){c.prototype.clearStates.call(this,e);return}this.runWithBBoxAffected(function(){return c.prototype.clearStates.call(r,e)})},t.prototype.runWithBBoxAffected=function(e){var r=["r","width","height","rx","ry","lineWidth"],n=this.getKeyShape().attr(),a={};Object.keys(this.getKeyShape().attr()).forEach(function(l){r.includes(l)&&(a[l]=n[l])}),e();for(var i=this.getKeyShape().attr(),o=0;o-1?(r.splice(n,1),!0):!1}},t.prototype.removeNode=function(e){if(!!e){var r=this.getNodes(),n=r.indexOf(e);return n>-1?(r.splice(n,1),!0):!1}},t.prototype.getUpdateType=function(e){},t.prototype.getBBox=function(){this.set(Jo,null);var e=this.calculateCanvasBBox();return e},t.prototype.clearCache=function(){this.set(Aa,null),this.set(Jo,null),this.set(oo,null)},t.prototype.destroy=function(){if(!this.destroyed){var e=this.get("animate"),r=this.get("group");e&&r.stopAnimate(),r.shapeMap={},this.clearCache(),this.set(Uo,null),this.set("bbox",null),r.remove(),this._cfg=null,this.destroyed=!0}},t}(ua),Cf=Qs,Zu="node",Ku="edge",dc="vedge",pu="combo",Tf="default",If="Mapper",qo="stateStyles",Of=function(){function c(t){var e=this;this.edgeToBeUpdateMap={},this.throttleRefresh=(0,b.throttle)(function(r){var n=e.graph;if(!(!n||n.get("destroyed"))){var a=e.edgeToBeUpdateMap;if(!!a){var i=Object.values(a);!i.length||(i.forEach(function(o){var u=o.edge;if(!(!u||u.destroyed)){var l=u.getSource(),h=u.getTarget();!l||l.destroyed||!h||h.destroyed||u.refresh(o.updateType)}}),e.edgeToBeUpdateMap={})}}},16,{trailing:!0,leading:!0}),this.graph=t,this.destroyed=!1}return c.prototype.addItem=function(t,e){var r=this.graph,n=t===dc?Ku:t,a=r.get("".concat(n,"Group"))||r.get("group"),i=(0,b.upperFirst)(n),o=null,u=r.get(n+(0,b.upperFirst)(qo))||{},l=r.get(Tf+i);e[qo]&&(u=e[qo]),l&&(0,b.each)(l,function(Ie,Pe){(0,b.isObject)(Ie)&&!(0,b.isArray)(Ie)?e[Pe]=(0,b.deepMix)({},Ie,e[Pe]):(0,b.isArray)(Ie)?e[Pe]=e[Pe]||(0,b.clone)(l[Pe]):e[Pe]=e[Pe]||l[Pe]});var h=r.get(n+If);if(h){var y=h(e);y[qo]&&(u=y[qo],delete y[qo]),(0,b.each)(y,function(Ie,Pe){(0,b.isObject)(Ie)&&!(0,b.isArray)(Ie)?e[Pe]=(0,b.deepMix)({},e[Pe],Ie):e[Pe]=y[Pe]||e[Pe]})}if(r.emit("beforeadditem",{type:t,model:e}),t===Ku||t===dc){var D=void 0,A=void 0;if(D=e.source,A=e.target,D&&(0,b.isString)(D)&&(D=r.findById(D)),A&&(0,b.isString)(A)&&(A=r.findById(A)),!D||!A){console.warn("The source or target node of edge ".concat(e.id," does not exist!"));return}D.getType&&D.getType()==="combo"&&(e.isComboEdge=!0),A.getType&&A.getType()==="combo"&&(e.isComboEdge=!0),o=new $a({model:e,source:D,target:A,styles:u,linkCenter:r.get("linkCenter"),group:a.addGroup()})}else if(t===Zu)o=new ua({model:e,styles:u,group:a.addGroup()});else if(t===pu){var z=e.children,K=us(z,r),ee=void 0,se=void 0;if(isNaN(K.x)?isNaN(e.x)&&(ee=Math.random()*100):ee=K.x,isNaN(K.y)?isNaN(e.y)&&(se=Math.random()*100):se=K.y,isNaN(e.x)||isNaN(e.y))e.x=ee,e.y=se;else{var oe=e.x-ee,ce=e.y-se;this.updateComboSucceeds(e.id,oe,ce,z)}var Me=a.addGroup();Me.setZIndex(e.depth),o=new Cf({model:e,styles:u,animate:r.get("animate"),bbox:e.collapsed?us([],r):K,group:Me}),!e.collapsed&&o.getKeyShape().get("type")==="circle"&&(K.width=Math.hypot(K.height,K.width),K.height=K.width,o.set("bbox",K),o.refresh());var Ne=o.getModel();(z||[]).forEach(function(Ie){var Pe=r.findById(Ie.id);o.addChild(Pe),Ie.depth=Ne.depth+2})}if(o)return o.setOptimize(r.getNodes().length>r.get("optimizeThreshold")),r.get("".concat(t,"s")).push(o),r.get("itemMap")[o.get("id")]=o,r.emit("afteradditem",{item:o,model:e}),o},c.prototype.updateItem=function(t,e){var r=this,n,a,i=this.graph;if((0,b.isString)(t)&&(t=i.findById(t)),!(!t||t.destroyed)){var o="";t.getType&&(o=t.getType());var u=i.get(o+If),l=t.getModel(),h=l.x,y=l.y,D=t.getUpdateType(e);if(u){var A=(0,b.deepMix)({},l,e),z=u(A),K=(0,b.deepMix)({},l,z,e);z[qo]&&(t.set("styles",K[qo]),delete K[qo]),(0,b.each)(K,function(Ke,mt){e[mt]=Ke})}else(0,b.each)(e,function(Ke,mt){l[mt]&&(0,b.isObject)(Ke)&&!(0,b.isArray)(Ke)&&(e[mt]=(0,w.__assign)((0,w.__assign)({},l[mt]),e[mt]))});if(i.emit("beforeupdateitem",{item:t,cfg:e}),o===Ku){if(e.source){var ee=e.source;(0,b.isString)(ee)&&(ee=i.findById(ee)),t.setSource(ee)}if(e.target){var se=e.target;(0,b.isString)(se)&&(se=i.findById(se)),t.setTarget(se)}t.update(e)}else if(o===Zu){t.update(e,D);var oe=t.getEdges();D==="move"?(0,b.each)(oe,function(Ke){r.edgeToBeUpdateMap[Ke.getID()]={edge:Ke,updateType:D},r.throttleRefresh()}):(D==null?void 0:D.includes("bbox"))&&(0,b.each)(oe,function(Ke){Ke.refresh(D)})}else if(o===pu){if(t.update(e,D),!isNaN(e.x)||!isNaN(e.y)){var ce=e.x-h||0,Me=e.y-y||0;this.updateComboSucceeds(l.id,ce,Me)}var Ne=t.getEdges(),Ie=(D==null?void 0:D.includes("bbox"))||D==="move";if(Ie&&o===pu){var Pe=t.get("shapeFactory"),Ye=l.type||"circle",rt=l.animate===void 0||e.animate===void 0?(a=(n=Pe[Ye])===null||n===void 0?void 0:n.options)===null||a===void 0?void 0:a.animate:l.animate||e.animate;rt?setTimeout(function(){if(!(!t||t.destroyed)){var Ke=t.getKeyShape();!Ke||Ke.destroyed||(0,b.each)(Ne,function(mt){mt&&!mt.destroyed&&mt.refresh()})}},201):(0,b.each)(Ne,function(Ke){Ke.refresh()})}}t.setOptimize(i.getNodes().length>i.get("optimizeThreshold")),i.emit("afterupdateitem",{item:t,cfg:e})}},c.prototype.updateCombo=function(t,e,r){var n=this,a,i,o=this.graph;if((0,b.isString)(t)&&(t=o.findById(t)),!(!t||t.destroyed)){var u=t.getModel(),l=us(e,o,t),h=l.x,y=l.y;t.set("bbox",l);var D=h,A=y;r?(D=isNaN(u.x)?h:u.x,A=isNaN(u.y)?y:u.y):(D=isNaN(h)?u.x:h,A=isNaN(y)?u.y:y),t.update({x:D,y:A});var z=t.get("shapeFactory"),K=u.type||"circle",ee=u.animate===void 0?(i=(a=z[K])===null||a===void 0?void 0:a.options)===null||i===void 0?void 0:i.animate:u.animate;ee?setTimeout(function(){if(!(!t||t.destroyed)){var se=t.getKeyShape();!se||se.destroyed||(t.getShapeCfg(u),n.updateComboEdges(t))}},201):this.updateComboEdges(t)}},c.prototype.updateComboEdges=function(t){for(var e,r,n=t.getEdges()||[],a=0;a-1&&i.splice(o,1),a===Ku){var u=r.get("v".concat(a,"s")),l=u.indexOf(t);l>-1&&u.splice(l,1)}var h=t.get("id"),y=r.get("itemMap");delete y[h];var D=r.get("comboTrees"),A=t.get("id");if(a===Zu){var z=t.getModel().comboId;if(D&&z){var K=D,ee=!1;D.forEach(function(Ie){ee||mi(Ie,function(Pe){if(Pe.id===A&&K){var Ye=K.indexOf(Pe);return K.splice(Ye,1),ee=!0,!1}return K=Pe.children,!0})})}for(var se=t.getEdges(),oe=se.length-1;oe>=0;oe--)r.removeItem(se[oe],!1);z&&r.updateCombo(z)}else if(a===pu){var ce=t.getModel().parentId,Me,Ne=!1;(D||[]).forEach(function(Pe){Ne||mi(Pe,function(Ye){return Ye.id===A?(Me=Ye,Ne=!0,!1):!0})}),Me.removed=!0,Me&&Me.children&&Me.children.forEach(function(Pe){e.removeItem(Pe.id)});for(var se=t.getEdges(),oe=se.length;oe>=0;oe--)r.removeItem(se[oe],!1);ce&&r.updateCombo(ce)}t.destroy(),r.emit("afterremoveitem",{item:n,type:a})}},c.prototype.setItemState=function(t,e,r){var n=this.graph,a=e;(0,b.isString)(r)&&(a="".concat(e,":").concat(r)),!(t.hasState(a)===r&&r||(0,b.isString)(r)&&t.hasState(a))&&(n.emit("beforeitemstatechange",{item:t,state:a,enabled:r}),t.setState(e,r),n.autoPaint(),n.emit("afteritemstatechange",{item:t,state:a,enabled:r}))},c.prototype.priorityState=function(t,e){var r=this.graph,n=t;(0,b.isString)(t)&&(n=r.findById(t)),this.setItemState(n,e,!1),this.setItemState(n,e,!0)},c.prototype.clearItemStates=function(t,e){var r=this.graph;(0,b.isString)(t)&&(t=r.findById(t)),r.emit("beforeitemstatesclear",{item:t,states:e}),t.clearStates(e),r.emit("afteritemstatesclear",{item:t,states:e})},c.prototype.refreshItem=function(t){var e=this.graph;(0,b.isString)(t)&&(t=e.findById(t)),e.emit("beforeitemrefresh",{item:t}),t.refresh(),e.emit("afteritemrefresh",{item:t})},c.prototype.addCombos=function(t,e){var r=this,n=this.graph;(t||[]).forEach(function(i){$i(i,function(o){var u;return e.forEach(function(l){l.id===o.id&&(l.children=o.children,l.depth=o.depth,u=l)}),u&&r.addItem("combo",u),!0})});var a=n.get("comboGroup");a&&a.sort()},c.prototype.changeItemVisibility=function(t,e){var r=this,n=this.graph;if((0,b.isString)(t)&&(t=n.findById(t)),!t){console.warn("The item to be shown or hidden does not exist!");return}if(n.emit("beforeitemvisibilitychange",{item:t,visible:e}),t.changeVisibility(e),t.getType&&t.getType()===Zu){var a=t.getEdges();(0,b.each)(a,function(h){e&&!(h.get("source").isVisible()&&h.get("target").isVisible())||r.changeItemVisibility(h,e)})}else if(t.getType&&t.getType()===pu){var i=n.get("comboTrees"),o=t.get("id"),u=[],l=!1;(i||[]).forEach(function(y){l||!y.children||y.children.length===0||mi(y,function(D){return D.id===o?(u=D.children,l=!0,!1):!0})}),u&&(!e||e&&!t.getModel().collapsed)&&u.forEach(function(y){var D=n.findById(y.id);r.changeItemVisibility(D,e)});var a=t.getEdges();(0,b.each)(a,function(y){e&&!(y.get("source").isVisible()&&y.get("target").isVisible())||r.changeItemVisibility(y,e)})}return n.emit("afteritemvisibilitychange",{item:t,visible:e}),t},c.prototype.destroy=function(){this.graph=null,this.destroyed=!0},c}(),hc=Of,al=function(){function c(t){this.graph=t,this.destroyed=!1}return c.prototype.updateState=function(t,e,r){var n=this.graph.get("states"),a=e;(0,b.isString)(r)&&(a="".concat(e,":").concat(r)),n[a]||(n[a]=[]),r?n[a].push(t):n[a]=n[a].filter(function(i){return i!==t}),this.graph.set("states",n),this.graph.emit("graphstatechange",{states:n})},c.prototype.updateStates=function(t,e,r){var n=this.graph.get("states"),a=(0,b.isString)(e)?[e]:e;a.forEach(function(i){var o=i;n[o]||(n[o]=[]),(0,b.isString)(r)&&(o="".concat(i,":").concat(r)),r?n[o].push(t):n[o]=n[o].filter(function(u){return u!==t})}),this.graph.set("states",n),this.graph.emit("graphstatechange",{states:e})},c.prototype.destroy=function(){this.graph=null,this.destroyed=!0},c}(),Ts=al,yu=G(80389),qr=function(t,e){return!t||!e?t:t.replace(/\\?\{([^{}]+)\}/g,function(r,n){if(r.charAt(0)==="\\")return r.slice(1);var a=e[n];return a===0&&(a="0"),a||""})},Is=function(t){var e=[];if(t.length<2)throw new Error("point length must largn than 2, now it's ".concat(t.length));for(var r=0,n=t;r0?i-1:e-1,u=ga.normalize([0,0],ga.add([0,0],a[o].v,ga.scale([0,0],a[i].v,-1)));a[i].p=ga.add([0,0],a[i].p,ga.scale([0,0],u,t))}return a.map(function(l){var h=l.p;return{x:h[0],y:h[1]}})}var Lo=function(t,e){for(var r=[],n=0;n<5;n++){var a=Math.cos((18+72*n)/180*Math.PI)*t,i=Math.sin((18+72*n)/180*Math.PI)*t,o=Math.cos((54+72*n)/180*Math.PI)*e,u=Math.sin((54+72*n)/180*Math.PI)*e;n===0?r.push(["M",a,-i]):r.push(["L",a,-i]),r.push(["L",o,-u])}return r.push(["Z"]),r},Nf=function(t,e,r){return(t.y-r.y)*(e.x-r.x)-(t.x-r.x)*(e.y-r.y)},Pf=function(t){var e=t.map(function(y){return{x:y.getModel().x,y:y.getModel().y}});e.sort(function(y,D){return y.x===D.x?y.y-D.y:y.x-D.x});for(var r={},n=e.length-1;n>=0;n--){var a=e[n],i=a.x,o=a.y;r["".concat(i,"-").concat(o)]&&e.splice(n,1),r["".concat(i,"-").concat(o)]=!0}if(e.length===1)return e;for(var u=[],n=0;n=2&&Nf(u[u.length-2],u[u.length-1],e[n])<=0;)u.pop();u.push(e[n])}for(var l=[],n=e.length-1;n>=0;n--){for(;l.length>=2&&Nf(l[l.length-2],l[l.length-1],e[n])<=0;)l.pop();l.push(e[n])}l.pop(),u.pop();var h=u.concat(l);return h},bi={maxRoutingIterations:100,maxMarchingIterations:100,pixelGroupSize:2,edgeR0:10,edgeR1:10,nodeR0:5,nodeR1:10,morphBuffer:5,threshold:.001,skip:16,nodeInfluenceFactor:1,edgeInfluenceFactor:1,negativeNodeInfluenceFactor:-.5};function Ju(c,t,e){var r=!1,n=function(u,l){return t.cells[u+l*t.width]},a=function(u,l){var h=0;return n(u-1,l-1)>=e&&(h+=1),n(u,l-1)>e&&(h+=2),n(u-1,l)>e&&(h+=4),n(u,l)>e&&(h+=8),h},i=function(u,l){for(var h=u,y=l,D,A,z=0;z-1){if(!(c[0].x!==h||c[0].y!==y))return!0}else c.push({x:h,y});var K=a(h,y);switch(K){case-1:return console.warn("Marched out of bounds"),!0;case 0:case 3:case 2:case 7:h++;break;case 12:case 14:case 4:h--;break;case 6:D===0&&(A===-1?h-=1:h+=1);break;case 1:case 13:case 5:y--;break;case 9:D===1&&(A===0?y-=1:y+=1);break;case 10:case 8:case 11:y++;break;default:return console.warn("Marching squares invalid state: ".concat(K)),!0}}};this.march=function(){for(var o=0;oe&&a(o,u)!==15&&(r=i(o,u));return r}}var Os=function(t,e,r){var n=Math.ceil(t/r),a=Math.ceil(e/r),i=new Float32Array(Math.max(0,n*a)).fill(0);return{cells:i,width:n,height:a}},qu=function(t,e,r){var n=null,a=Number.POSITIVE_INFINITY;return e.forEach(function(i){var o={x:t.getModel().x,y:t.getModel().y},u={x:i.getModel().x,y:i.getModel().y},l=hi(o,u),h=new la(o.x,o.y,u.x,u.y),y=r.reduce(function(D,A){return Ao(A,h)>0?D+1:D},0);l*Math.pow(y+1,2)=0&&i=1;)Ne/=1.5,Ie=bu(z,Ne,ee,Me),Pe=l(Ie,i)||l(Ie,a),Ye=h(Ie,e);Ie&&!Pe&&(!Me||!Ye)&&(i.push(new la(A.x1,A.y1,Ie.x,Ie.y)),i.push(new la(Ie.x,Ie.y,A.x2,A.y2)),o=!0)};oe(!0),o||oe(!1)}}o||a.push(A),u+=1};!o&&i.length;)y()}for(;i.length;)a.push(i.pop());return a};function gc(c,t,e,r,n){var a=qu(c,e,t);if(a===null)return[];var i=function(y){for(var D=[];y.length>0;){var A=y.pop();if(y.length===0){D.push(A);break}var z=y.pop(),K=new la(A.x1,A.y1,z.x2,z.y2),ee=ef(t,K);ee?(D.push(A),y.push(z)):y.push(K)}return D},o=new la(c.getModel().x,c.getModel().y,a.getModel().x,a.getModel().y),u=vc(o,t,r,n),l=i(u);return l}var pc=function(t,e,r){var n=Object.assign(bi,r),a=as(t.map(function(oe){return{x:oe.getModel().x,y:oe.getModel().y}}));t=t.sort(function(oe,ce){return hi({x:oe.getModel().x,y:oe.getModel().y},a)-hi({x:ce.getModel().x,y:ce.getModel().y},a)});var i=[],o=[];t.forEach(function(oe){var ce=gc(oe,e,i,n.maxRoutingIterations,n.morphBuffer);ce.forEach(function(Me){o.push(Me)}),i.push(oe)});for(var u=tf(t,o,n.nodeR0),l=Os(u.width,u.height,n.pixelGroupSize),h=[],y=[],D=0;D1)for(z=Math.floor(A.length/n.skip);z<3&&n.skip>1;)n.skip-=1,z=Math.floor(A.length/n.skip);for(var K=0,ee=0;ee0)n.nonMemberInfluenceFactor*=.8;else break}return y};function tf(c,t,e){var r={minX:Number.POSITIVE_INFINITY,minY:Number.POSITIVE_INFINITY,maxX:Number.NEGATIVE_INFINITY,maxY:Number.NEGATIVE_INFINITY,width:0,height:0,x:0,y:0},n=[];c.forEach(function(u){n.push(u.getBBox())}),t.forEach(function(u){n.push(u.getBBox())});for(var a=0,i=n;ar.maxX?o.maxX:r.maxX)+e,r.maxY=(o.maxY>r.maxY?o.maxY:r.maxY)+e}return r.width=r.maxX-r.minX,r.height=r.maxY-r.minY,r.x=r.minX,r.y=r.minY,r}function yc(c,t,e,r,n,a){function i(A,z){var K=Math.floor((A-z)/a.pixelGroupSize);return K<0?0:K}function o(A,z){return A*a.pixelGroupSize+z}var u=(a.nodeR0-a.nodeR1)*(a.nodeR0-a.nodeR1),l=(a.edgeR0-a.edgeR1)*(a.edgeR0-a.edgeR1),h=function(z,K){var ee=Math.min(i(z.minX,K+r.minX),n.width),se=Math.min(i(z.minY,K+r.minY),n.height),oe=Math.min(i(z.maxX,-K+r.minX),n.width),ce=Math.min(i(z.maxY,-K+r.minY),n.height);return[ee,se,oe,ce]},y=function(z,K){for(var ee=z.getBBox(),se=h(ee,a.nodeR1),oe=se[0],ce=se[1],Me=se[2],Ne=se[3],Ie=ce;Ieu.y?r?l.topLeft:l.bottomRight:r?l.topRight:l.bottomLeft:i.yo.x?r?l.topLeft:l.bottomRight:r?l.bottomLeft:l.topRight:a.x0?this.cfg.padding+t:10+t,this.cfg.bubbleCfg={nodeR0:this.padding-t,nodeR1:this.padding-t,morphBuffer:this.padding-t}},c.prototype.setType=function(){this.type=this.cfg.type,this.members.length<3&&(this.type="round-convex"),this.type!=="round-convex"&&this.type!=="smooth-convex"&&this.type!=="bubble"&&(console.warn("The hull type should be either round-convex, smooth-convex or bubble, round-convex is used by default."),this.type="round-convex")},c.prototype.calcPath=function(t,e){var r,n,a;switch(this.type){case"round-convex":r=Pf(t),a=Qu(r.map(function(i){return[i.x,i.y]}),this.padding),n=(0,yu.tr)(a);break;case"smooth-convex":r=Pf(t),r.length===2?(a=Qu(r.map(function(i){return[i.x,i.y]}),this.padding),n=(0,yu.tr)(a)):r.length>2&&(a=Df(r.map(function(i){return[i.x,i.y]}),this.padding),n=ls(a));break;case"bubble":r=pc(t,e,this.cfg.bubbleCfg),n=r.length>=2&&ls(r);break;default:}return n},c.prototype.render=function(){this.group.addShape("path",{attrs:(0,w.__assign)({path:this.path},this.cfg.style),id:this.id,name:this.cfg.id,capture:!1}),this.group.toBack()},c.prototype.addMember=function(t){if(!!t){(0,b.isString)(t)&&(t=this.graph.findById(t)),this.members.push(t);var e=this.nonMembers.indexOf(t);return e>-1&&this.nonMembers.splice(e,1),this.updateData(this.members,this.nonMembers),!0}},c.prototype.addNonMember=function(t){if(!!t){(0,b.isString)(t)&&(t=this.graph.findById(t)),this.nonMembers.push(t);var e=this.members.indexOf(t);return e>-1&&this.members.splice(e,1),this.updateData(this.members,this.nonMembers),!0}},c.prototype.removeMember=function(t){if(!!t){(0,b.isString)(t)&&(t=this.graph.findById(t));var e=this.members.indexOf(t);return e>-1?(this.members.splice(e,1),this.updateData(this.members,this.nonMembers),!0):!1}},c.prototype.removeNonMember=function(t){if(!!t){(0,b.isString)(t)&&(t=this.graph.findById(t));var e=this.nonMembers.indexOf(t);return e>-1?(this.nonMembers.splice(e,1),this.updateData(this.members,this.nonMembers),!0):!1}},c.prototype.updateData=function(t,e){var r=this;this.group.findById(this.id).remove(),t&&(this.members=t.map(function(n){return(0,b.isString)(n)?r.graph.findById(n):n})),e&&(this.nonMembers=e.map(function(n){return(0,b.isString)(n)?r.graph.findById(n):n})),this.path=this.calcPath(this.members,this.nonMembers),this.render()},c.prototype.updateStyle=function(t){var e=this.group.findById(this.id);e.attr((0,w.__assign)({},t))},c.prototype.updateCfg=function(t){var e=this;this.cfg=(0,b.deepMix)(this.cfg,t),this.id=this.cfg.id,this.group=this.cfg.group,t.members&&(this.members=this.cfg.members.map(function(r){return(0,b.isString)(r)?e.graph.findById(r):r})),t.nonMembers&&(this.nonMembers=this.cfg.nonMembers.map(function(r){return(0,b.isString)(r)?e.graph.findById(r):r})),this.setPadding(),this.setType(),this.path=this.calcPath(this.members,this.nonMembers),this.render()},c.prototype.contain=function(t){var e=this,r;(0,b.isString)(t)?r=this.graph.findById(t):r=t;var n,a=r.getKeyShape();if(r.get("type")==="path")n=mu(a.attr("path"));else{var i=a.getCanvasBBox();n=[[i.minX,i.minY],[i.maxX,i.minY],[i.maxX,i.maxY],[i.minX,i.maxY]]}return n=n.map(function(o){var u=e.graph.getPointByCanvas(o[0],o[1]);return[u.x,u.y]}),Bi(n,mu(this.path))},c.prototype.destroy=function(){this.group.remove(),this.cfg=null},c}(),kf=mc,ds=q.vs,il="node",Do=function(c){(0,w.__extends)(t,c);function t(e){var r=c.call(this)||this;return r.sortCombos=(0,b.debounce)(function(){var n=r.get("comboSorted");if(!(!r||r.destroyed||n)){r.set("comboSorted",!0);var a=[],i={},o=r.get("comboTrees");(o||[]).forEach(function(l){mi(l,function(h){return a[h.depth]?a[h.depth].push(h.id):a[h.depth]=[h.id],i[h.id]=h.depth,!0})});var u=r.getEdges().concat(r.get("vedges"));(u||[]).forEach(function(l){var h=l.getModel(),y=i[h.source]||0,D=i[h.target]||0,A=Math.max(y,D);a[A]?a[A].push(h.id):a[A]=[h.id]}),a.forEach(function(l){if(!(!l||!l.length))for(var h=l.length-1;h>=0;h--){var y=r.findById(l[h]);y&&y.toFront()}})}},500,!1),r.cfg=(0,b.deepMix)(r.getDefaultCfg(),e),r.init(),r.animating=!1,r.destroyed=!1,r.cfg.enabledStack&&(r.undoStack=new ni(r.cfg.maxStep),r.redoStack=new ni(r.cfg.maxStep)),r}return t.prototype.init=function(){this.initCanvas();var e=new s(this),r=new vu(this),n=new hc(this),a=new Ts(this);this.set({viewController:e,modeController:r,itemController:n,stateController:a}),this.initLayoutController(),this.initEventController(),this.initGroups(),this.initPlugins()},t.prototype.initGroups=function(){var e=this.get("canvas");if(!!e){var r=e.get("el"),n=(r||{}).id,a=n===void 0?"g6":n,i=e.addGroup({id:"".concat(a,"-root"),className:un.rootContainerClassName});if(this.get("groupByTypes")){var o=i.addGroup({id:"".concat(a,"-edge"),className:un.edgeContainerClassName}),u=i.addGroup({id:"".concat(a,"-node"),className:un.nodeContainerClassName}),l=i.addGroup({id:"".concat(a,"-combo"),className:un.comboContainerClassName});l.toBack(),this.set({nodeGroup:u,edgeGroup:o,comboGroup:l})}var h=i.addGroup({id:"".concat(a,"-delegate"),className:un.delegateContainerClassName});this.set({delegateGroup:h}),this.set("group",i)}},t.prototype.getDefaultCfg=function(){return{container:void 0,width:void 0,height:void 0,renderer:"canvas",modes:{},plugins:[],data:{},fitViewPadding:10,minZoom:.02,maxZoom:10,event:!0,groupByTypes:!0,directed:!1,autoPaint:!0,nodes:[],edges:[],combos:[],vedges:[],itemMap:{},linkCenter:!1,defaultNode:{},defaultEdge:{},nodeStateStyles:{},edgeStateStyles:{},states:{},animate:!1,animateCfg:{onFrame:void 0,duration:500,easing:"easeLinear"},callback:void 0,enabledStack:!1,maxStep:10,tooltips:[],optimizeThreshold:1e3}},t.prototype.set=function(e,r){return(0,b.isPlainObject)(e)?this.cfg=(0,w.__assign)((0,w.__assign)({},this.cfg),e):this.cfg[e]=r,e==="enabledStack"&&r&&!this.undoStack&&!this.redoStack&&(this.undoStack=new ni(this.cfg.maxStep),this.redoStack=new ni(this.cfg.maxStep)),this},t.prototype.get=function(e){var r;return(r=this.cfg)===null||r===void 0?void 0:r[e]},t.prototype.getGroup=function(){return this.get("group")},t.prototype.getContainer=function(){return this.get("container")},t.prototype.getMinZoom=function(){return this.get("minZoom")},t.prototype.setMinZoom=function(e){return this.set("minZoom",e)},t.prototype.getMaxZoom=function(){return this.get("maxZoom")},t.prototype.setMaxZoom=function(e){return this.set("maxZoom",e)},t.prototype.getWidth=function(){return this.get("width")},t.prototype.getHeight=function(){return this.get("height")},t.prototype.clearItemStates=function(e,r){(0,b.isString)(e)&&(e=this.findById(e));var n=this.get("itemController");r||(r=e.get("states")),n.clearItemStates(e,r);var a=this.get("stateController");a.updateStates(e,r,!1)},t.prototype.node=function(e){typeof e=="function"&&this.set("nodeMapper",e)},t.prototype.edge=function(e){typeof e=="function"&&this.set("edgeMapper",e)},t.prototype.combo=function(e){typeof e=="function"&&this.set("comboMapper",e)},t.prototype.findById=function(e){return this.get("itemMap")[e]},t.prototype.find=function(e,r){var n,a=this.get("".concat(e,"s"));return(0,b.each)(a,function(i,o){if(r(i,o))return n=i,n}),n},t.prototype.findAll=function(e,r){var n=[];return(0,b.each)(this.get("".concat(e,"s")),function(a,i){r(a,i)&&n.push(a)}),n},t.prototype.findAllByState=function(e,r,n){return n?this.findAll(e,function(a){return a.hasState(r)&&n(a)}):this.findAll(e,function(a){return a.hasState(r)})},t.prototype.translate=function(e,r,n,a){var i=this,o=this.get("group"),u=(0,b.clone)(o.getMatrix());if(u||(u=[1,0,0,0,1,0,0,0,1]),n){var l=bo({animateCfg:a,callback:function(){return i.emit("viewportchange",{action:"translate",matrix:o.getMatrix()})}});ho(o,{x:o.getCanvasBBox().x+e,y:o.getCanvasBBox().y+r},n,l||{duration:500,easing:"easeCubic"})}else u=ds(u,[["t",e,r]]),o.setMatrix(u),this.emit("viewportchange",{action:"translate",matrix:u}),this.autoPaint()},t.prototype.moveTo=function(e,r,n,a){var i=this.get("group");ho(i,{x:e,y:r},n,a||{duration:500,easing:"easeCubic"}),this.emit("viewportchange",{action:"move",matrix:i.getMatrix()})},t.prototype.fitView=function(e,r,n,a){e&&this.set("fitViewPadding",e);var i=this.get("viewController");r?i.fitViewByRules(r,n,a):i.fitView(n,a),this.autoPaint()},t.prototype.fitCenter=function(e,r){var n=this.get("viewController");n.fitCenter(e,r),this.autoPaint()},t.prototype.addBehaviors=function(e,r){var n=this.get("modeController");return n.manipulateBehaviors(e,r,!0),this},t.prototype.removeBehaviors=function(e,r){var n=this.get("modeController");return n.manipulateBehaviors(e,r,!1),this},t.prototype.updateBehavior=function(e,r,n){var a=this.get("modeController");return a.updateBehavior(e,r,n),this},t.prototype.zoom=function(e,r,n,a){var i=this,o=this.get("group"),u=(0,b.clone)(o.getMatrix())||[1,0,0,0,1,0,0,0,1],l=this.get("minZoom"),h=this.get("maxZoom"),y=this.getZoom()||1,D=y*e,A=e,z=!1;if(l&&Dh&&(A=h/y,z=!0),r?u=ds(u,[["t",-r.x,-r.y],["s",A,A],["t",r.x,r.y]]):u=ds(u,[["s",A,A]]),n){var K=(0,b.clone)(o.getMatrix());K||(K=[1,0,0,0,1,0,0,0,1]);var ee=K[0],se=ee*A,oe=bo({animateCfg:a,callback:function(){return i.emit("viewportchange",{action:"zoom",matrix:o.getMatrix()})}});o.animate(function(ce){if(ce===1)K=u;else{var Me=sa(ee,se,ce)/K[0];r?K=ds(K,[["t",-r.x,-r.y],["s",Me,Me],["t",r.x,r.y]]):K=ds(K,[["s",Me,Me]])}return{matrix:K}},oe)}else o.setMatrix(u),this.emit("viewportchange",{action:"zoom",matrix:u}),this.autoPaint();return!z},t.prototype.zoomTo=function(e,r,n,a){var i=e/this.getZoom();return this.zoom(i,r,n,a)},t.prototype.focusItem=function(e,r,n){var a=this.get("viewController"),i=!1;r?i=!0:r===void 0&&(i=this.get("animate"));var o={};n?o=n:n===void 0&&(o=this.get("animateCfg")),a.focus(e,i,o),this.autoPaint()},t.prototype.focusItems=function(e,r,n,a){var i=this.get("viewController");i.focusItems(e,r,n,a)},t.prototype.autoPaint=function(){this.get("autoPaint")&&this.paint()},t.prototype.paint=function(){this.emit("beforepaint"),this.get("canvas").draw(),this.emit("afterpaint")},t.prototype.getPointByClient=function(e,r){var n=this.get("viewController");return n.getPointByClient(e,r)},t.prototype.getClientByPoint=function(e,r){var n=this.get("viewController");return n.getClientByPoint(e,r)},t.prototype.getPointByCanvas=function(e,r){var n=this.get("viewController");return n.getPointByCanvas(e,r)},t.prototype.getCanvasByPoint=function(e,r){var n=this.get("viewController");return n.getCanvasByPoint(e,r)},t.prototype.getGraphCenterPoint=function(){var e=this.get("group").getCanvasBBox();return{x:(e.minX+e.maxX)/2,y:(e.minY+e.maxY)/2}},t.prototype.getViewPortCenterPoint=function(){return this.getPointByCanvas(this.get("width")/2,this.get("height")/2)},t.prototype.showItem=function(e,r){r===void 0&&(r=!0);var n=this.get("itemController"),a=n.changeItemVisibility(e,!0);if(r&&this.get("enabledStack")){var i=a.getID(),o=a.getType(),u={},l={};switch(o){case"node":u.nodes=[{id:i,visible:!1}],l.nodes=[{id:i,visible:!0}];break;case"edge":u.nodes=[{id:i,visible:!1}],l.edges=[{id:i,visible:!0}];break;case"combo":u.nodes=[{id:i,visible:!1}],l.combos=[{id:i,visible:!0}];break;default:break}this.pushStack("visible",{before:u,after:l})}},t.prototype.hideItem=function(e,r){r===void 0&&(r=!0);var n=this.get("itemController"),a=n.changeItemVisibility(e,!1);if(r&&this.get("enabledStack")){var i=a.getID(),o=a.getType(),u={},l={};switch(o){case"node":u.nodes=[{id:i,visible:!0}],l.nodes=[{id:i,visible:!1}];break;case"edge":u.nodes=[{id:i,visible:!0}],l.edges=[{id:i,visible:!1}];break;case"combo":u.nodes=[{id:i,visible:!0}],l.combos=[{id:i,visible:!1}];break;default:break}this.pushStack("visible",{before:u,after:l})}},t.prototype.refreshItem=function(e){var r=this.get("itemController");r.refreshItem(e)},t.prototype.setAutoPaint=function(e){var r=this;r.set("autoPaint",e);var n=r.get("canvas");n.set("autoDraw",e)},t.prototype.remove=function(e,r){r===void 0&&(r=!0),this.removeItem(e,r)},t.prototype.removeItem=function(e,r){r===void 0&&(r=!0);var n=e;if((0,b.isString)(e)&&(n=this.findById(e)),!n&&(0,b.isString)(e))console.warn("The item ".concat(e," to be removed does not exist!"));else if(n){var a="";if(n.getType&&(a=n.getType()),r&&this.get("enabledStack")){var i=(0,w.__assign)((0,w.__assign)({},n.getModel()),{itemType:a}),o={};switch(a){case"node":{o.nodes=[i],o.edges=[];for(var u=n.getEdges(),l=u.length-1;l>=0;l--)o.edges.push((0,w.__assign)((0,w.__assign)({},u[l].getModel()),{itemType:"edge"}));break}case"edge":o.edges=[i];break;case"combo":o.combos=[i];break;default:break}this.pushStack("delete",{before:o,after:{}})}if(a==="node"){var h=n.getModel();h.comboId&&this.updateComboTree(n,void 0,!1)}var y=this.get("itemController");if(y.removeItem(n),a==="combo"){var D=ss(this.get("comboTrees"));this.set("comboTrees",D)}}},t.prototype.innerAddItem=function(e,r,n){if(!Vu(e,r))return!1;if(r.id&&this.findById(r.id)){console.warn("This item exists already. Be sure the id %c".concat(r.id,"%c is unique."),"font-size: 20px; color: red;","");return}var a,i=this.get("comboTrees")||[];if(e==="combo"){var o=this.get("itemMap"),u=!1;if(i.forEach(function(z){u||$i(z,function(K){if(r.parentId===K.id){u=!0;var ee=(0,w.__assign)({id:r.id,depth:K.depth+2},r);K.children?K.children.push(ee):K.children=[ee],r.depth=ee.depth,a=n.addItem(e,r)}var se=o[K.id];return u&&se&&se.getType&&se.getType()==="combo"&&n.updateCombo(se,K.children),!0})}),!u){var l=(0,w.__assign)({id:r.id,depth:0},r);r.depth=l.depth,i.push(l),a=n.addItem(e,r)}this.set("comboTrees",i),r.collapsed&&(this.collapseCombo(a,!1),this.updateCombo(a))}else if(e==="node"&&(0,b.isString)(r.comboId)&&i){var h=this.findById(r.comboId);h&&h.getType&&h.getType()!=="combo"&&console.warn("'".concat(r.comboId,"' is not a id of a combo in the graph, the node will be added without combo.")),a=n.addItem(e,r);var y=this.get("itemMap"),D=!1,A=!1;i.forEach(function(z){A||D||$i(z,function(K){if(K.id===r.id)return A=!0,!1;if(r.comboId===K.id&&!A){D=!0;var ee=(0,b.clone)(r);ee.itemType="node",K.children?K.children.push(ee):K.children=[ee],ee.depth=K.depth+1}return D&&y[K.id].getType&&y[K.id].getType()==="combo"&&n.updateCombo(y[K.id],K.children),!0})})}else a=n.addItem(e,r);if(e==="node"&&r.comboId||e==="combo"&&r.parentId){var h=this.findById(r.comboId||r.parentId);h&&h.getType&&h.getType()==="combo"&&h.addChild(a)}return a},t.prototype.addItem=function(e,r,n,a){n===void 0&&(n=!0),a===void 0&&(a=!0);var i=this.get("comboSorted");this.set("comboSorted",i&&!a);var o=this.get("itemController"),u=this.innerAddItem(e,r,o);if(u===!1||u===!0)return u;var l=this.get("combos");if(l&&l.length>0&&this.sortCombos(),this.autoPaint(),n&&this.get("enabledStack")){var h=(0,w.__assign)((0,w.__assign)({},u.getModel()),{itemType:e}),y={};switch(e){case"node":y.nodes=[h];break;case"edge":y.edges=[h];break;case"combo":y.combos=[h];break;default:break}this.pushStack("add",{before:{},after:y})}return u},t.prototype.addItems=function(e,r,n){e===void 0&&(e=[]),r===void 0&&(r=!0),n===void 0&&(n=!0);var a=this.get("comboSorted");this.set("comboSorted",a&&!n);for(var i=this.get("itemController"),o=[],u=0;u0&&this.sortCombos()}if(this.autoPaint(),r&&this.get("enabledStack")){for(var y={nodes:[],edges:[],combos:[]},u=0;u=0;ee--)z[ee].destroyed&&z.splice(ee,1);D&&(i.addCombos(D),this.get("groupByTypes")||this.sortCombos()),this.diffItems("edge",y,o.edges),(0,b.each)(h,function(oe,ce){oe.getType&&(oe.getType()==="node"||oe.getType()==="combo")||y.edges.indexOf(oe)<0&&(delete h[ce],i.remove(oe,!1))}),(this.get("comboTrees")||[]).forEach(function(oe){$i(oe,function(ce){var Me=n.findById(ce.id);return Me.getType()==="combo"&&ce.collapsed&&n.collapseCombo(ce.id,!1),!0})}),this.set({nodes:y.nodes,edges:y.edges});var se=this.get("layoutController");return se&&(se.changeData(function(){setTimeout(function(){var oe;(oe=i.getCombos())===null||oe===void 0||oe.forEach(function(ce){ce.set("animate",!0)})},0)}),i.get("animate")&&!se.getLayoutType()?(i.positionsAnimate(),(a=i.getCombos())===null||a===void 0||a.forEach(function(oe){return oe.set("animate",!0)})):i.autoPaint()),setTimeout(function(){u.set("localRefresh",l)},16),this.set("data",o),this.emit("afterchangedata"),this},t.prototype.addCombos=function(e){var r=this,n=r.get("comboTrees"),a=this.get("itemController");a.addCombos(n,e)},t.prototype.createCombo=function(e,r,n){var a=this;n===void 0&&(n=!0);var i=this.get("itemController");this.set("comboSorted",!1);var o="",u;if(!!e){if((0,b.isString)(e))o=e,u={id:e};else{if(o=e.id,!o){console.warn("Create combo failed. Please assign a unique string id for the adding combo.");return}u=e}var l=n&&this.get("enabledStack"),h={nodes:[],combos:[]};l&&r.forEach(function(ee){var se=a.findById(ee),oe=se.getType();if(!(oe!=="node"&&oe!=="combo")){var ce=se.getModel();h["".concat(oe,"s")].push({id:ee,parentId:oe==="node"?ce.comboId:ce.parentId})}});var y=this.get("comboTrees"),D=new Set(r),A=new Map;y&&(y.forEach(function(ee){$i(ee,function(se,oe,ce){if(D.has(se.id)){if(oe){var Me=a.findById(oe.id),Ne=a.findById(se.id);oe.children.splice(ce,1),Me.removeChild(Ne),i.updateCombo(Me,oe.children)}se.itemType==="combo"&&A.set(se.id,se)}return!0})}),y=y.filter(function(ee){return!D.has(ee.id)}),this.set("comboTrees",y));var z={nodes:[],combos:[]},K=r.map(function(ee){var se=a.findById(ee),oe=se.getModel(),ce="";se.getType&&(ce=se.getType());var Me=A.get(ee)||{id:se.getID(),itemType:ce};return ce==="combo"?(Me.parentId=o,oe.parentId=o):ce==="node"&&(Me.comboId=o,oe.comboId=o),l&&z["".concat(ce,"s")].push({id:oe.id,parentId:o}),Me});u.children=K,this.addItem("combo",u,!1),this.set("comboSorted",!1),y&&(y.forEach(function(ee){mi(ee,function(se){return se.id===o?(se.itemType="combo",se.children=K,!1):!0})}),this.sortCombos()),l&&(z.combos.push(u),this.pushStack("createCombo",{before:h,after:z}))}},t.prototype.uncombo=function(e,r){var n=this,a,i;r===void 0&&(r=!0);var o=this,u=e;if((0,b.isString)(e)&&(u=this.findById(e)),!u||u.getType&&u.getType()!=="combo"){console.warn("The item is not a combo!");return}var l=u.getModel(),h=u.getModel().parentId,y=o.get("comboTrees");y||(y=[]);var D=this.get("itemMap"),A=u.get("id"),z,K=[],ee=this.get("combos"),se=this.findById(h),oe=r&&this.get("enabledStack"),ce={};if(oe&&(ce=(0,b.clone)(l),ce.children=[]),y.forEach(function(Pe){z||$i(Pe,function(Ye){var rt;if(Ye.id===A){z=Ye;var Ke=u.getEdges().map(function(Er){return Er.getID()});Ke.forEach(function(Er){n.removeItem(Er,!1)});var mt=ee.indexOf(u);ee.splice(mt,1),delete D[A];var Bt=(0,b.clone)(u.getModel());u.destroy(),n.emit("afterremoveitem",{item:Bt,type:"combo"})}if(h&&z&&Ye.id===h){se.removeCombo(u),K=Ye.children;var mt=K.indexOf(z);return mt!==-1&&K.splice(mt,1),(rt=z.children)===null||rt===void 0||rt.forEach(function(fr){var lr=n.findById(fr.id),Kt=lr.getModel();lr.getType&&lr.getType()==="combo"?(fr.parentId=h,delete fr.comboId,Kt.parentId=h,delete Kt.comboId):lr.getType&&lr.getType()==="node"&&(fr.comboId=h,Kt.comboId=h),se.addChild(lr),K.push(fr)}),n.updateCombo(se),!1}return!0})}),!h&&z){var Me=y.indexOf(z);y.splice(Me,1),(a=z.children)===null||a===void 0||a.forEach(function(Pe){Pe.parentId=void 0;var Ye=n.findById(Pe.id).getModel();delete Ye.parentId,delete Ye.comboId,Pe.itemType!=="node"&&y.push(Pe)})}if(oe){var Ne={nodes:[],combos:[]},Ie={nodes:[],combos:[]};(i=z.children)===null||i===void 0||i.forEach(function(Pe){var Ye=n.findById(Pe.id),rt=Ye.getType();rt!=="node"&&rt!=="combo"||(Ne["".concat(rt,"s")].push({id:Pe.id,parentId:A}),Ie["".concat(rt,"s")].push({id:Pe.id,parentId:h}))}),Ne.combos.push(ce),this.pushStack("uncombo",{before:Ne,after:Ie})}},t.prototype.updateCombos=function(e){var r=this;e===void 0&&(e=!1);var n=this,a=this.get("comboTrees"),i=n.get("itemController"),o=n.get("itemMap");(a||[]).forEach(function(u){$i(u,function(l){var h;if(!l)return!0;var y=o[l.id];if(((h=y==null?void 0:y.getType)===null||h===void 0?void 0:h.call(y))==="combo"){var D=(0,w.__spreadArray)([],y.getStates(),!0);(0,b.each)(D,function(A){return r.setItemState(y,A,!1)}),i.updateCombo(y,l.children,e),(0,b.each)(D,function(A){return r.setItemState(y,A,!0)})}return!0})}),n.sortCombos()},t.prototype.updateCombo=function(e){var r=this,n=this,a=e,i;if((0,b.isString)(e)&&(a=this.findById(e)),!a||a.getType&&a.getType()!=="combo"){console.warn("The item to be updated is not a combo!");return}i=a.get("id");var o=this.get("comboTrees"),u=n.get("itemController"),l=n.get("itemMap");(o||[]).forEach(function(h){$i(h,function(y){if(!y)return!0;var D=l[y.id];if(i===y.id&&D&&D.getType&&D.getType()==="combo"){var A=(0,w.__spreadArray)([],D.getStates(),!0);(0,b.each)(A,function(z){D.getStateStyle(z)&&r.setItemState(D,z,!1)}),u.updateCombo(D,y.children),(0,b.each)(A,function(z){D.getStateStyle(z)&&r.setItemState(D,z,!0)}),i&&(i=y.parentId)}return!0})})},t.prototype.updateComboTree=function(e,r,n){n===void 0&&(n=!0);var a=this;this.set("comboSorted",!1);var i;(0,b.isString)(e)?i=a.findById(e):i=e;var o=i.getModel(),u=o.comboId||o.parentId,l="";if(i.getType&&(l=i.getType()),r&&l==="combo"){var h=this.get("comboTrees"),y=!0,D;if((h||[]).forEach(function(oe){D||mi(oe,function(ce){if(!D)return ce.id===i.getID()&&(D=ce),!0})}),mi(D,function(oe){return oe.id===r?(y=!1,!1):!0}),!y){console.warn("Failed to update the combo tree! The parentId points to a descendant of the combo!");return}}if(n&&this.get("enabledStack")){var A={},z={};l==="combo"?(A.combos=[{id:o.id,parentId:o.parentId}],z.combos=[{id:o.id,parentId:r}]):l==="node"&&(A.nodes=[{id:o.id,parentId:o.comboId}],z.nodes=[{id:o.id,parentId:r}]),this.pushStack("updateComboTree",{before:A,after:z})}if(o.parentId||o.comboId){var K=this.findById(o.parentId||o.comboId);K&&K.removeChild(i)}if(l==="combo"?o.parentId=r:l==="node"&&(o.comboId=r),r){var ee=this.findById(r);ee&&ee.addChild(i)}if(u){var ee=this.findById(u);ee&&ee.removeChild(i)}var se=ss(this.get("comboTrees"),o.id,r);this.set("comboTrees",se),this.updateCombos()},t.prototype.save=function(){var e=[],r=[],n=[];return(0,b.each)(this.get("nodes"),function(a){e.push(a.getModel())}),(0,b.each)(this.get("edges"),function(a){r.push(a.getModel())}),(0,b.each)(this.get("combos"),function(a){n.push(a.getModel())}),{nodes:e,edges:r,combos:n}},t.prototype.changeSize=function(e,r){var n=this.get("viewController");return n.changeSize(e,r),this},t.prototype.refresh=function(){var e=this;if(e.emit("beforegraphrefresh"),e.get("animate"))e.positionsAnimate();else{var r=e.get("nodes"),n=e.get("edges"),a=e.get("edges");(0,b.each)(r,function(i){i.refresh()}),(0,b.each)(n,function(i){i.refresh()}),(0,b.each)(a,function(i){i.refresh()})}e.emit("aftergraphrefresh"),e.autoPaint()},t.prototype.getNodes=function(){return this.get("nodes")},t.prototype.getEdges=function(){return this.get("edges")},t.prototype.getCombos=function(){return this.get("combos")},t.prototype.getComboChildren=function(e){if((0,b.isString)(e)&&(e=this.findById(e)),!e||e.getType&&e.getType()!=="combo"){console.warn("The combo does not exist!");return}return e.getChildren()},t.prototype.positionsAnimate=function(e){var r=this;r.emit("beforeanimate");var n=r.get("animateCfg"),a=n.onFrame,i=e?r.getNodes().concat(r.getCombos()):r.getNodes(),o=i.map(function(l){var h=l.getModel();return{id:h.id,x:h.x,y:h.y}});r.stopAnimate();var u=r.get("canvas");r.animating=!0,u.animate(function(l){(0,b.each)(o,function(h){var y=r.findById(h.id);if(!(!y||y.destroyed)){var D=y.get("originAttrs"),A=y.get("model"),z=y.getContainer().getMatrix();if(D==null&&(z&&(D={x:z[6],y:z[7]}),y.set("originAttrs",D||0)),a){var K=a(y,l,h,D||{x:0,y:0});y.set("model",Object.assign(A,K))}else D?(A.x=D.x+(h.x-D.x)*l,A.y=D.y+(h.y-D.y)*l):(A.x=h.x,A.y=h.y)}}),r.refreshPositions(e)},{duration:n.duration,easing:n.easing,callback:function(){(0,b.each)(i,function(h){h.set("originAttrs",null)}),n.callback&&n.callback(),r.emit("afteranimate"),r.animating=!1}})},t.prototype.refreshPositions=function(e){var r=this;r.emit("beforegraphrefreshposition");var n=r.get("nodes"),a=r.get("edges"),i=r.get("vedges"),o=r.get("combos"),u,l={},h=function(D){(0,b.each)(D,function(A){u=A.getModel();var z=A.get("originAttrs");if(!(z&&u.x===z.x&&u.y===z.y)){var K=A.updatePosition({x:u.x,y:u.y});l[u.id]=K,u.comboId&&(l[u.comboId]=l[u.comboId]||K),u.parentId&&(l[u.parentId]=l[u.parentId]||K)}})};h(o),h(n),o&&o.length!==0&&(e&&h(o),r.updateCombos()),(0,b.each)(a,function(y){var D=y.getSource().getModel(),A=y.getTarget();if(!(0,b.isPlainObject)(A)){var z=A.getModel();(l[D.id]||l[z.id]||y.getModel().isComboEdge)&&y.refresh()}}),(0,b.each)(i,function(y){y.refresh()}),r.emit("aftergraphrefreshposition"),r.autoPaint()},t.prototype.stopAnimate=function(){this.isAnimating()&&this.get("canvas").stopAnimate()},t.prototype.isAnimating=function(){return this.animating},t.prototype.getZoom=function(){var e=this.get("group").getMatrix();return e?e[0]:1},t.prototype.getCurrentMode=function(){var e=this.get("modeController");return e.getMode()},t.prototype.setMode=function(e){var r=this.get("modeController");return r.setMode(e),this},t.prototype.clear=function(e){var r;return e===void 0&&(e=!1),(r=this.get("canvas"))===null||r===void 0||r.clear(),this.initGroups(),this.set({itemMap:{},nodes:[],edges:[],vedges:[],groups:[],combos:[],comboTrees:[]}),e||this.emit("afterrender"),this},t.prototype.updateLayout=function(e,r,n,a){var i=this;e===void 0&&(e={}),a===void 0&&(a=!0);var o=this.get("layoutController");if((0,b.isString)(e)&&(e={type:e}),r){var u=n;u||(r==="begin"?u={x:0,y:0}:u={x:this.getWidth()/2,y:this.getHeight()/2}),u=this.getPointByCanvas(u.x,u.y);var l=["force","gForce","fruchterman","force2"];l.includes(e.type)||!e.type&&l.includes(o==null?void 0:o.layoutType)?e.center=[u.x,u.y]:this.once("afterlayout",function(D){var A=i.getGroup().getMatrix()||[1,0,0,0,1,0,0,0,1];u.x=u.x*A[0]+A[6],u.y=u.y*A[0]+A[7];var z=i.getGroup().getCanvasBBox(),K=z.minX,ee=z.maxX,se=z.minY,oe=z.maxY,ce={x:(K+ee)/2,y:(se+oe)/2};r==="begin"&&(ce.x=K,ce.y=se),i.translate(u.x-ce.x,u.y-ce.y)})}var h=(0,w.__assign)({},this.get("layout")),y={};Object.assign(y,h,e),e.pipes&&!e.type?delete y.type:!e.pipes&&y.type&&delete y.pipes,this.set("layout",y),!!o&&(o.isLayoutTypeSame(y)&&y.gpuEnabled===h.gpuEnabled?o.updateLayoutCfg(y):o.changeLayout(y),a&&this.get("enabledStack")&&this.pushStack("layout",{before:h,after:y}))},t.prototype.destroyLayout=function(){var e=this.get("layoutController");e==null||e.destroyLayout()},t.prototype.layout=function(){var e,r=this.get("layoutController"),n=this.get("layout");if(!(!n||!r)){if(n.workerEnabled){r.layout();return}((e=r.layoutMethods)===null||e===void 0?void 0:e.length)?r.relayout(!0):r.layout()}},t.prototype.collapseCombo=function(e,r){var n=this;if(r===void 0&&(r=!0),!this.destroyed){if((0,b.isString)(e)&&(e=this.findById(e)),!e){console.warn("The combo to be collapsed does not exist!");return}this.emit("beforecollapseexpandcombo",{action:"expand",item:e});var a=e.getModel(),i=this.get("itemController");i.collapseCombo(e,r),a.collapsed=!0;var o=this.getEdges().concat(this.get("vedges")),u=[],l=this.get("comboTrees"),h=!1;(l||[]).forEach(function(D){h||mi(D,function(A){if(h&&A.depth<=a.depth)return!1;if(a.id===A.id&&(h=!0),h){var z=n.findById(A.id);z&&z.getType&&z.getType()==="combo"&&(u=u.concat(z.getNodes()),u=u.concat(z.getCombos()))}return!0})});var y={};o.forEach(function(D){var A=D.getModel(),z=A.isVEdge,K=A.size,ee=K===void 0?1:K;if(!(D.isVisible()&&!z)){var se=D.getSource(),oe=D.getTarget(),ce=null,Me;if(se.getModel().id===a.id||u.includes(se)&&!u.includes(oe)?(ce=oe,Me=!1):(oe.getModel().id===a.id||!u.includes(se)&&u.includes(oe))&&(ce=se,Me=!0),ce){if(z){n.removeItem(D,!1);return}for(var Ne=ce.getModel();!ce.isVisible();){var Ie=Ne.parentId,Pe=Ne.comboId,Ye=Ie||Pe;if(ce=n.findById(Ye),!ce||!Ye)return;Ne=ce.getModel()}var rt=Ne.id,Ke=Me?{source:rt,target:a.id,size:ee,isVEdge:!0}:{source:a.id,target:rt,size:ee,isVEdge:!0},mt="".concat(Ke.source,"-").concat(Ke.target);if(y[mt]){y[mt].size+=ee;return}y[mt]=Ke}}}),this.addItems(Object.values(y).map(function(D){return{type:"vedge",model:D}}),!1),this.emit("aftercollapseexpandcombo",{action:"collapse",item:e})}},t.prototype.expandCombo=function(e,r){var n=this;if(r===void 0&&(r=!0),(0,b.isString)(e)&&(e=this.findById(e)),!e||e.getType&&e.getType()!=="combo"){console.warn("The combo to be collapsed does not exist!");return}this.emit("beforecollapseexpandcombo",{action:"expand",item:e});var a=e.getModel(),i=this.get("itemController");i.expandCombo(e,r),a.collapsed=!1;var o=this.getEdges().concat(this.get("vedges")),u=[],l=this.get("comboTrees"),h=!1;(l||[]).forEach(function(D){h||mi(D,function(A){if(h&&A.depth<=a.depth)return!1;if(a.id===A.id&&(h=!0),h){var z=n.findById(A.id);z&&z.getType&&z.getType()==="combo"&&(u=u.concat(z.getNodes()),u=u.concat(z.getCombos()))}return!0})});var y={};o.forEach(function(D){if(!(D.isVisible()&&!D.getModel().isVEdge)){var A=D.getSource(),z=D.getTarget(),K=A.get("id"),ee=z.get("id"),se=null,oe;if(K===a.id||u.includes(A)&&!u.includes(z)?(se=z,oe=!1):ee===a.id||!u.includes(A)&&u.includes(z)?(se=A,oe=!0):u.includes(A)&&u.includes(z)&&A.isVisible()&&z.isVisible()&&D.show(),se){var ce=D.getModel(),Me=ce.isVEdge,Ne=ce.size,Ie=Ne===void 0?1:Ne;if(Me){n.removeItem(D,!1);return}for(var Pe=se.getModel();!se.isVisible();){var Ye=Pe.parentId,rt=Pe.comboId,Ke=Ye||rt;if(se=n.findById(Ke),!se||!Ke)return;Pe=se.getModel()}for(var mt=Pe.id,Bt=oe?z:A,Er=Bt.getModel();!Bt.isVisible();){var fr=Er.parentId,lr=Er.comboId,Kt=fr||lr;if(Bt=n.findById(Kt),!Bt||!Kt)return;if(Er.comboId===a.id||Er.parentId===a.id)break;Er=Bt.getModel()}var Yr=Er.id;if(mt){var Xr=oe?{source:mt,target:Yr,isVEdge:!0,size:Ie}:{source:Yr,target:mt,isVEdge:!0,size:Ie},qt="".concat(Xr.source,"-").concat(Xr.target);if(y[qt]){y[qt].size+=Ie;return}y[qt]=Xr}}}}),this.addItems(Object.values(y).map(function(D){return{type:"vedge",model:D}}),!1),this.emit("aftercollapseexpandcombo",{action:"expand",item:e})},t.prototype.collapseExpandCombo=function(e,r){if(r===void 0&&(r=!0),(0,b.isString)(e)&&(e=this.findById(e)),!(!e||e.getType&&e.getType()!=="combo")){for(var n=e.getModel(),a=this.findById(n.parentId);a;){var i=a.getModel();if(i.collapsed){console.warn("Fail to expand the combo since it's ancestor combo is collapsed."),a=void 0;return}a=this.findById(i.parentId)}var o=n.collapsed;o?this.expandCombo(e,r):this.collapseCombo(e,r),this.updateCombo(e)}},t.prototype.getNeighbors=function(e,r){var n=e;return(0,b.isString)(e)&&(n=this.findById(e)),n.getNeighbors(r)},t.prototype.getNodeDegree=function(e,r,n){r===void 0&&(r=void 0),n===void 0&&(n=!1);var a=e;(0,b.isString)(e)&&(a=this.findById(e));var i=this.get("degrees");(!i||n)&&(i=bt(this.save()),this.set("degrees",i));var o=i[a.getID()],u=0;if(!o)return 0;switch(r){case"in":u=o.inDegree;break;case"out":u=o.outDegree;break;case"all":u=o;break;default:u=o.degree;break}return u},t.prototype.getUndoStack=function(){return this.undoStack},t.prototype.getRedoStack=function(){return this.redoStack},t.prototype.getStackData=function(){return this.get("enabledStack")?{undoStack:this.undoStack.toArray(),redoStack:this.redoStack.toArray()}:null},t.prototype.clearStack=function(){this.get("enabledStack")&&(this.undoStack.clear(),this.redoStack.clear(),this.emit("stackchange",{undoStack:this.undoStack,redoStack:this.redoStack}))},t.prototype.pushStack=function(e,r,n){if(e===void 0&&(e="update"),n===void 0&&(n="undo"),!this.get("enabledStack")){console.warn("\u8BF7\u5148\u542F\u7528 undo & redo \u529F\u80FD\uFF0C\u5728\u5B9E\u4F8B\u5316 Graph \u65F6\u5019\u914D\u7F6E enabledStack: true !");return}var a=r?(0,b.clone)(r):{before:{},after:(0,b.clone)(this.save())};n==="redo"?this.redoStack.push({action:e,data:a}):this.undoStack.push({action:e,data:a}),this.emit("stackchange",{action:e,stackType:n,undoStack:this.undoStack,redoStack:this.redoStack})},t.prototype.getAdjMatrix=function(e,r){e===void 0&&(e=!0),r===void 0&&(r=this.get("directed"));var n=this.get("adjMatrix");return(!n||!e)&&(n=te(this.save(),r),this.set("adjMatrix",n)),n},t.prototype.getShortestPathMatrix=function(e,r){e===void 0&&(e=!0),r===void 0&&(r=this.get("directed"));var n=this.get("adjMatrix"),a=this.get("shortestPathMatrix");return(!n||!e)&&(n=te(this.save(),r),this.set("adjMatrix",n)),(!a||!e)&&(a=nn(this.save(),r),this.set("shortestPathMatrix",a)),a},t.prototype.on=function(e,r,n){return c.prototype.on.call(this,e,r,n)},t.prototype.destroy=function(){var e,r,n,a,i;this.clear(),this.clearStack(),(e=this.get("itemController"))===null||e===void 0||e.destroy(),(r=this.get("modeController"))===null||r===void 0||r.destroy(),(n=this.get("viewController"))===null||n===void 0||n.destroy(),(a=this.get("stateController"))===null||a===void 0||a.destroy(),(i=this.get("canvas"))===null||i===void 0||i.destroy(),this.cfg=null,this.destroyed=!0,this.redoStack=null,this.undoStack=null},t.prototype.createHull=function(e){if(!e.members||e.members.length<1){console.warn("Create hull failed! The members is empty.");return}var r=this.get("hullGroup"),n=this.get("hullMap");if(n||(n={},this.set("hullMap",n)),(!r||r.get("destroyed"))&&(r=this.get("group").addGroup({id:"hullGroup"}),r.toBack(),this.set("hullGroup",r)),n[e.id])return console.warn("Existed hull id."),n[e.id];var a=r.addGroup({id:"".concat(e.id,"-container")}),i=new kf(this,(0,w.__assign)((0,w.__assign)({},e),{group:a})),o=i.id;return n[o]=i,i},t.prototype.getHulls=function(){return this.get("hullMap")},t.prototype.getHullById=function(e){return this.get("hullMap")[e]},t.prototype.removeHull=function(e){var r,n;(0,b.isString)(e)?n=this.getHullById(e):n=e,(r=this.get("hullMap"))===null||r===void 0||delete r[n.id],n.destroy()},t.prototype.removeHulls=function(){var e=this.getHulls();!e||!Object.keys(e).length||(Object.keys(e).forEach(function(r){var n=e[r];n.destroy()}),this.set("hullMap",{}))},t}(J.Z),Rf=Do;function hs(c){return hs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hs(c)}var As=q.vs,Ec="-shape",xu="-label",Ls=["startArrow","endArrow"],bc={lineWidth:1,stroke:void 0,fill:void 0,lineAppendWidth:1,opacity:void 0,strokeOpacity:void 0,fillOpacity:void 0,x:0,y:0,r:10,width:20,height:20,shadowColor:void 0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0},ol={lineWidth:1,stroke:"#000",lineDash:void 0,startArrow:!1,endArrow:!1,opacity:void 0,strokeOpacity:void 0,fillOpacity:void 0,shadowColor:void 0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0},rf={edge:ol,node:bc,combo:bc},Bf="-label-bg",Ff={options:{labelCfg:{style:{fontFamily:un.windowFontFamily}},descriptionCfg:{style:{fontFamily:un.windowFontFamily}}},itemType:"",type:"",getCustomConfig:function(t){return{}},getOptions:function(t,e){return e==="move"||(e==null?void 0:e.includes("bbox"))?t:(0,b.deepMix)({},this.options,this.getCustomConfig(t)||{},t)},draw:function(t,e){e.shapeMap={},this.mergeStyle=this.getOptions(t);var r=this.drawShape(t,e);if(r.set("className",this.itemType+Ec),e.shapeMap[this.itemType+Ec]=r,t.label){var n=this.drawLabel(t,e);n.set("className",this.itemType+xu),e.shapeMap[this.itemType+xu]=n}return r},afterDraw:function(t,e,r){},drawShape:function(t,e){return null},drawLabel:function(t,e){var r=(this.mergeStyle||this.getOptions(t)||{}).labelCfg,n=r||{},a=this.getLabelStyle(t,n,e),i=a.rotate;delete a.rotate;var o=e.addShape("text",{attrs:a,draggable:!0,className:"text-shape",name:"text-shape",labelRelated:!0});if(e.shapeMap["text-shape"]=o,!isNaN(i)&&i!==""){var u=o.getBBox(),l=[1,0,0,0,1,0,0,0,1];if(a.rotateCenter)switch(a.rotateCenter){case"center":l=As(l,[["t",-u.width/2,-u.height/2],["r",i],["t",u.width/2,u.height/2]]);break;case"lefttop":l=As(l,[["t",-a.x,-a.y],["r",i],["t",a.x,a.y]]);break;case"leftcenter":l=As(l,[["t",-a.x,-a.y-u.height/2],["r",i],["t",a.x,a.y+u.height/2]]);break;default:l=As(l,[["t",-u.width/2,-u.height/2],["r",i],["t",u.width/2,u.height/2]]);break}else l=As(l,[["t",-a.x,-a.y-u.height/2],["r",i],["t",a.x,a.y+u.height/2]]);o.setMatrix(l)}if(a.background){var h=this.drawLabelBg(t,e,o),y=this.itemType+Bf;h.set("classname",y),e.shapeMap[y]=h,o.toFront()}return o},drawLabelBg:function(t,e,r){var n=this.options.labelCfg,a=(0,b.mix)({},n,t.labelCfg),i=this.getLabelBgStyleByPosition(r,a),o=e.addShape("rect",{name:"text-bg-shape",attrs:i,labelRelated:!0});return e.shapeMap["text-bg-shape"]=o,o},getLabelStyleByPosition:function(t,e,r){return{text:t.label}},getLabelBgStyleByPosition:function(t,e){return{}},getLabelStyle:function(t,e,r){var n=this.getLabelStyleByPosition(t,e,r),a="".concat(this.itemType,"Label"),i=un[a]?un[a].style:null;return(0,w.__assign)((0,w.__assign)((0,w.__assign)({},i),n),e.style)},getShapeStyle:function(t){return t.style},update:function(t,e,r){this.updateShapeStyle(t,e,r),this.updateLabel(t,e,r)},updateShapeStyle:function(t,e,r){var n,a=e.getContainer(),i=e.getKeyShape(),o=(0,b.mix)({},i.attr(),t.style),u=function(y){var D,A=o[y];if((0,b.isPlainObject)(A)){var z=((n=a.shapeMap)===null||n===void 0?void 0:n[y])||a.find(function(K){return K.get("name")===y});z==null||z.attr(A)}else i.attr((D={},D[y]=A,D))};for(var l in o)u(l)},updateLabel:function(t,e,r){var n,a;if(t.label||t.label===""){var i=e.getContainer(),o=(this.mergeStyle||this.getOptions({},r)||{}).labelCfg,u=o===void 0?{}:o,l=this.itemType+xu,h=i.shapeMap[l]||i.find(function(Me){return Me.get("className")===l}),y=this.itemType+Bf,D=i.shapeMap[y]||i.find(function(Me){return Me.get("className")===y});if(h){(!r||r==="bbox|label"||this.itemType==="edge"&&r!=="style")&&(u=(0,b.deepMix)(u,t.labelCfg));var z=this.getLabelStyleByPosition(t,u,i),K=(n=t.labelCfg)===null||n===void 0?void 0:n.style,ee=(0,w.__assign)((0,w.__assign)({},z),K),se=ee.rotate;if(delete ee.rotate,!isNaN(se)&&se!==""){var oe=[1,0,0,0,1,0,0,0,1];oe=As(oe,[["t",-ee.x,-ee.y],["r",se],["t",ee.x,ee.y]]),ee.matrix=oe,h.attr(ee)}else((a=h.getMatrix())===null||a===void 0?void 0:a[4])!==1&&h.resetMatrix(),h.attr(ee);if(!D)ee.background&&(D=this.drawLabelBg(t,i,h),D.set("classname",y),i.shapeMap[y]=D,h.toFront());else if(ee.background){var ce=this.getLabelBgStyleByPosition(h,u);D.attr(ce)}else i.removeChild(D)}else{var A=this.drawLabel(t,i);A.set("className",l),i.shapeMap[l]=A}}},afterUpdate:function(t,e){},setState:function(t,e,r){var n,a,i,o=r.get("keyShape");if(!(!o||o.destroyed)){var u=r.getType(),l=(0,b.isBoolean)(e)?t:"".concat(t,":").concat(e),h=this.getStateStyle(l,r),y=r.getStateStyle(l);if(!(!y&&!h)){var D=(0,b.mix)({},y||h),A=r.getContainer(),z={x:1,y:1,cx:1,cy:1,matrix:1};if(u==="combo"&&(z.r=1,z.width=1,z.height=1),e){var K=function(Kt){var Yr,Xr=D[Kt];if((0,b.isPlainObject)(Xr)&&!Ls.includes(Kt)){var qt=((i=A.shapeMap)===null||i===void 0?void 0:i[Kt])||A.find(function(br){return br.get("name")===Kt});qt==null||qt.attr(Xr)}else o.attr((Yr={},Yr[Kt]=Xr,Yr))};for(var ee in D)K(ee)}else{var se=zo(r.getCurrentStatesStyle()),oe=r.getModel(),ce=(0,b.mix)({},oe.style,zo(r.getOriginStyle())),Me=o.get("name"),Ne=o.attr(),Ie={};Object.keys(Ne).forEach(function(lr){if(lr!=="img"){var Kt=Ne[lr];Kt&&hs(Kt)==="object"?Ie[lr]=(0,b.clone)(Kt):Ie[lr]=Kt}});var Pe={},Ye=function(Kt){var Yr=D[Kt];if((0,b.isPlainObject)(Yr)&&!Ls.includes(Kt)){var Xr=A.shapeMap[Kt]||A.find(function(Nr){return Nr.get("name")===Kt});if(Xr){var qt=zo(Xr.attr());(0,b.each)(Yr,function(Nr,zr){if(Kt===Me&&Ie[zr]&&!z[zr]){delete Ie[zr];var Qr=ce[Kt][zr]||rf[u][zr];o.attr(zr,Qr)}else if(qt[zr]||qt[zr]===0){delete qt[zr];var ln=ce[Kt][zr]||rf[u][zr];Xr.attr(zr,ln)}}),Pe[Kt]=qt}}else if(Ie[Kt]&&!z[Kt]){delete Ie[Kt];var br=ce[Kt]||(ce[Me]?ce[Me][Kt]:void 0)||rf[u][Kt];o.attr(Kt,br)}};for(var rt in D)Ye(rt);Me?Pe[Me]=Ie:(0,b.mix)(Pe,Ie);for(var ee in se)if(!z[ee]){var Ke=se[ee];(!(0,b.isPlainObject)(Ke)||Ls.includes(ee))&&(Me?((0,b.mix)(ce[Me],(a={},a[ee]=Ke,a)),delete ce[ee]):(0,b.mix)(ce,(n={},n[ee]=Ke,n)),delete se[ee])}var mt={};(0,b.deepMix)(mt,ce,Pe,se);var Bt=!1,Er=function(Kt){var Yr,Xr,qt=mt[Kt];if((0,b.isPlainObject)(qt)&&!Ls.includes(Kt)){var br=A.shapeMap[Kt]||A.find(function(zr){return zr.get("name")===Kt});br&&((br.get("type")==="text"||br.get("labelRelated"))&&(delete qt.x,delete qt.y,delete qt.matrix),Kt===Me&&(u==="combo"&&(delete qt.r,delete qt.width,delete qt.height),Bt=!0),br.attr(qt))}else if(!Bt){var Nr=qt||rf[u][Kt];u==="combo"?Me||o.attr((Yr={},Yr[Kt]=Nr,Yr)):o.attr((Xr={},Xr[Kt]=Nr,Xr))}};for(var fr in mt)Er(fr)}}}},getStateStyle:function(t,e){var r=e.getModel(),n=e.getType(),a=this.getOptions(r),i=a.stateStyles,o=a.style,u=o===void 0?{}:o,l=r.stateStyles?r.stateStyles[t]:i&&i[t];return n==="combo"?(0,b.clone)(l):(0,b.mix)({},u,l)},getControlPoints:function(t){return t.controlPoints},getAnchorPoints:function(t){var e,r,n=(t==null?void 0:t.anchorPoints)||((e=this.getCustomConfig(t))===null||e===void 0?void 0:e.anchorPoints)||((r=this.options)===null||r===void 0?void 0:r.anchorPoints);return n}},xc={itemType:"node",shapeType:"single-node",labelPosition:"center",offset:un.nodeLabel.offset,getSize:function(t){var e,r=((e=this.mergeStyle)===null||e===void 0?void 0:e.size)||t.size||this.getOptions({}).size||un.defaultNode.size;return(0,b.isArray)(r)&&r.length===1&&(r=[r[0],r[0]]),(0,b.isArray)(r)||(r=[r,r]),r},getLabelStyleByPosition:function(t,e){var r=e.maxLength,n=t.label;r&&(n=io(n,r));var a=e.position||this.labelPosition;if(a==="center")return{x:0,y:0,text:n,textBaseline:"middle",textAlign:"center"};var i=e.offset;(0,b.isNil)(i)&&(i=this.offset);var o=this.getSize(t),u;switch(a){case"top":u={x:0,y:-o[1]/2-i,textBaseline:"bottom",textAlign:"center"};break;case"bottom":u={x:0,y:o[1]/2+i,textBaseline:"top",textAlign:"center"};break;case"left":u={x:-o[0]/2-i,y:0,textBaseline:"middle",textAlign:"right"};break;default:u={x:o[0]/2+i,y:0,textBaseline:"middle",textAlign:"left"};break}return u.text=n,u},getLabelBgStyleByPosition:function(t,e){var r;if(!t)return{};var n=(r=e.style)===null||r===void 0?void 0:r.background;if(!n)return{};var a=t.getBBox(),i=Ms(n.padding),o=a.width+i[1]+i[3],u=a.height+i[0]+i[2];return(0,w.__assign)((0,w.__assign)({x:a.minX-i[3],y:a.minY-i[0]},n),{width:o,height:u})},drawShape:function(t,e){var r=this.shapeType,n=this.getShapeStyle(t),a=e.addShape(r,{attrs:n,draggable:!0,name:"node-shape"});return e.shapeMap["node-shape"]=a,a},updateLinkPoints:function(t,e){var r=(this.mergeStyle||this.getOptions(t)).linkPoints,n=e.shapeMap["link-point-left"]||e.find(function(mt){return mt.get("className")==="link-point-left"}),a=e.shapeMap["link-point-right"]||e.find(function(mt){return mt.get("className")==="link-point-right"}),i=e.shapeMap["link-point-top"]||e.find(function(mt){return mt.get("className")==="link-point-top"}),o=e.shapeMap["link-point-bottom"]||e.find(function(mt){return mt.get("className")==="link-point-bottom"}),u;n&&(u=n.attr()),a&&!u&&(u=a.attr()),i&&!u&&(u=i.attr()),o&&!u&&(u=o.attr()),u||(u=r);var l=(0,b.mix)({},u,t.linkPoints),h=l.fill,y=l.stroke,D=l.lineWidth,A=l.size/2;A||(A=l.r);var z=t.linkPoints?t.linkPoints:{left:void 0,right:void 0,top:void 0,bottom:void 0},K=z.left,ee=z.right,se=z.top,oe=z.bottom,ce=this.getSize(t),Me=ce[0],Ne=ce[1],Ie={r:A,fill:h,stroke:y,lineWidth:D};if(n)!K&&K!==void 0?(n.remove(),delete e.shapeMap["link-point-left"]):n.attr((0,w.__assign)((0,w.__assign)({},Ie),{x:-Me/2,y:0}));else if(K){var Pe="link-point-left";e.shapeMap[Pe]=e.addShape("circle",{attrs:(0,w.__assign)((0,w.__assign)({},Ie),{x:-Me/2,y:0}),className:Pe,name:Pe,isAnchorPoint:!0})}if(a)!ee&&ee!==void 0&&(a.remove(),delete e.shapeMap["link-point-right"]),a.attr((0,w.__assign)((0,w.__assign)({},Ie),{x:Me/2,y:0}));else if(ee){var Ye="link-point-right";e.shapeMap[Ye]=e.addShape("circle",{attrs:(0,w.__assign)((0,w.__assign)({},Ie),{x:Me/2,y:0}),className:Ye,name:Ye,isAnchorPoint:!0})}if(i)!se&&se!==void 0&&(i.remove(),delete e.shapeMap["link-point-top"]),i.attr((0,w.__assign)((0,w.__assign)({},Ie),{x:0,y:-Ne/2}));else if(se){var rt="link-point-top";e.shapeMap[rt]=e.addShape("circle",{attrs:(0,w.__assign)((0,w.__assign)({},Ie),{x:0,y:-Ne/2}),className:rt,name:rt,isAnchorPoint:!0})}if(o)!oe&&oe!==void 0?(o.remove(),delete e.shapeMap["link-point-bottom"]):o.attr((0,w.__assign)((0,w.__assign)({},Ie),{x:0,y:Ne/2}));else if(oe){var Ke="link-point-bottom";e.shapeMap[Ke]=e.addShape("circle",{attrs:(0,w.__assign)((0,w.__assign)({},Ie),{x:0,y:Ne/2}),className:Ke,name:Ke,isAnchorPoint:!0})}},updateShape:function(t,e,r,n,a){var i=e.get("keyShape");i.attr((0,w.__assign)({},r)),this.updateLabel(t,e,a),n&&this.updateIcon(t,e)},updateIcon:function(t,e){var r=this,n=e.getContainer(),a=(this.mergeStyle||this.getOptions(t)).icon,i=t.icon?t.icon:{show:void 0,text:void 0},o=i.show,u=i.text,l=n.shapeMap["".concat(this.type,"-icon")]||n.find(function(se){return se.get("name")==="".concat(r.type,"-icon")});if(l)if(o||o===void 0){var h=(0,b.mix)({},l.attr(),a),y=h.width,D=y===void 0?20:y,A=h.height,z=A===void 0?20:A;(h.fontFamily==="iconfont"||h.hasOwnProperty("text"))&&(D=0,z=0),l.attr((0,w.__assign)((0,w.__assign)({},h),{x:-D/2,y:-z/2}))}else l.remove(),delete n.shapeMap["".concat(this.type,"-icon")];else if(o){var K="".concat(this.type,"-icon");if(u)n.shapeMap[K]=n.addShape("text",{attrs:(0,w.__assign)({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},a),className:K,name:K});else{var D=a.width,z=a.height;n.shapeMap[K]=n.addShape("image",{attrs:(0,w.__assign)((0,w.__assign)({},a),{x:-D/2,y:-z/2}),className:K,name:K})}var ee=n.shapeMap["node-label"]||n.find(function(se){return se.get("name")==="node-label"});ee&&ee.toFront()}}},nf=(0,w.__assign)((0,w.__assign)({},Ff),xc);Mr.registerNode("single-node",nf);var af="edge-shape";function sl(c){var t=c;return c==="start"?t="end":c==="end"&&(t="start"),t}var ul={itemType:"edge",labelPosition:"center",refX:0,refY:0,labelAutoRotate:!1,options:{size:un.defaultEdge.size,style:{x:0,y:0,stroke:un.defaultEdge.style.stroke,lineAppendWidth:un.defaultEdge.style.lineAppendWidth},labelCfg:{style:{fill:un.edgeLabel.style.fill,fontSize:un.edgeLabel.style.fontSize,fontFamily:un.windowFontFamily}},stateStyles:(0,w.__assign)({},un.edgeStateStyles)},getPath:function(t){var e=[];return(0,b.each)(t,function(r,n){n===0?e.push(["M",r.x,r.y]):e.push(["L",r.x,r.y])}),e},getShapeStyle:function(t){var e=this.options.style,r={stroke:t.color},n=(0,b.mix)({},e,r,t.style),a=t.size||un.defaultEdge.size;t=this.getPathPoints(t);var i=t.startPoint,o=t.endPoint,u=this.getControlPoints(t),l=[i];u&&(l=l.concat(u)),l.push(o);var h=this.getPath(l),y=(0,b.mix)({},un.defaultEdge.style,{stroke:un.defaultEdge.color,lineWidth:a,path:h},n);return y},updateShapeStyle:function(t,e,r){var n,a=e.getContainer(),i=((n=e.getKeyShape)===null||n===void 0?void 0:n.call(e))||a.shapeMap["edge-shape"],o=t.size;t=this.getPathPoints(t);var u=t.startPoint,l=t.endPoint,h=this.getControlPoints(t),y=[u];h&&(y=y.concat(h)),y.push(l);var D=i.attr(),A=t.style||{};A.stroke===void 0&&(A.stroke=t.color);var z=t.sourceNode,K=t.targetNode,ee={radius:A.radius};h||(ee={source:z,target:K,offset:A.offset,radius:A.radius});var se=this.getPath(y,ee),oe={};r==="move"?oe={path:se}:(D.endArrow&&A.endArrow===!1&&(t.style.endArrow={path:""}),D.startArrow&&A.startArrow===!1&&(t.style.startArrow={path:""}),oe=(0,w.__assign)({},t.style),oe.lineWidth===void 0&&(oe.lineWdith=((0,b.isNumber)(o)?o:o==null?void 0:o[0])||D.lineWidth),oe.path===void 0&&(oe.path=se),oe.stroke===void 0&&(oe.stroke=D.stroke||t.color)),i&&i.attr(oe)},getLabelStyleByPosition:function(t,e,r){var n=e.position||this.labelPosition,a={},i=r==null?void 0:r.shapeMap[af],o;n==="start"?o=0:n==="end"?o=1:o=.5;var u=e.refX||this.refX,l=e.refY||this.refY;if(t.startPoint.x===t.endPoint.x&&t.startPoint.y===t.endPoint.y)return a.x=t.startPoint.x+u,a.y=t.startPoint.y+l,a.text=t.label,a;var h;(0,b.isNil)(e.autoRotate)?h=this.labelAutoRotate:h=e.autoRotate;var y=Xu(i,o,u,l,h);return a.x=y.x,a.y=y.y,a.rotate=y.rotate,a.textAlign=this._getTextAlign(n,y.angle),a.text=t.label,a},getLabelBgStyleByPosition:function(t,e){if(!t)return{};var r=t.getBBox(),n=e.style&&e.style.background;if(!n)return{};var a=n.padding,i=r.width+a[1]+a[3],o=r.height+a[0]+a[2],u=(0,w.__assign)((0,w.__assign)({},n),{width:i,height:o,x:r.minX-a[3],y:r.minY-a[0],matrix:[1,0,0,0,1,0,0,0,1]}),l;return(0,b.isNil)(e.autoRotate)?l=this.labelAutoRotate:l=e.autoRotate,l&&(u.matrix=t.attr("matrix")||[1,0,0,0,1,0,0,0,1]),u},_getTextAlign:function(t,e){var r="center";return e?(e=e%(Math.PI*2),t!=="center"&&(e>=0&&e<=Math.PI/2||e>=3/2*Math.PI&&e<2*Math.PI?r=t:r=sl(t)),r):t},getControlPoints:function(t){return t.controlPoints},getPathPoints:function(t){return t},drawShape:function(t,e){var r=this.getShapeStyle(t),n=e.addShape("path",{className:af,name:af,attrs:r});return e.shapeMap[af]=n,n},drawLabel:function(t,e){var r=this.options.labelCfg,n=(0,b.deepMix)({},r,t.labelCfg),a=this.getLabelStyle(t,n,e),i=a.rotate;delete a.rotate;var o=e.addShape("text",{attrs:a,name:"text-shape",labelRelated:!0});if(e.shapeMap["text-shape"]=o,!isNaN(i)&&i!==""&&o.rotateAtStart(i),a.background){var u=this.drawLabelBg(t,e,o,a,i),l=this.itemType+Bf;u.set("classname",l),e.shapeMap[l]=u,o.toFront()}return o},drawLabelBg:function(t,e,r,n,a){var i=this.options.labelCfg,o=(0,b.deepMix)({},i,t.labelCfg),u=this.getLabelBgStyleByPosition(r,o),l=e.addShape("rect",{name:"text-bg-shape",attrs:u,labelRelated:!0});return e.shapeMap["text-bg-shape"]=l,l}},wc=(0,w.__assign)((0,w.__assign)({},Ff),ul);Mr.registerEdge("single-edge",wc),Mr.registerEdge("line",{getControlPoints:function(){}},"single-edge"),Mr.registerEdge("spline",{getPath:function(t){var e=Is(t);return e}},"single-edge"),Mr.registerEdge("arc",{curveOffset:20,clockwise:1,getControlPoints:function(t){var e=t.startPoint,r=t.endPoint,n={x:(e.x+r.x)/2,y:(e.y+r.y)/2},a,i;if(t.controlPoints!==void 0){if(i=t.controlPoints[0],a=Fo(e,i,r),e.x<=r.x&&e.y>r.y?this.clockwise=a.x>i.x?0:1:e.x<=r.x&&e.yi.x?1:0:e.x>r.x&&e.y<=r.y?this.clockwise=a.y=60&&Math.round(c.h)<=240?r=e?Math.round(c.h)-tu*t:Math.round(c.h)+tu*t:r=e?Math.round(c.h)+tu*t:Math.round(c.h)-tu*t,r<0?r+=360:r>=360&&(r-=360),r}function jf(c,t,e){if(c.h===0&&c.s===0)return c.s;var r;return e?r=c.s-Cu*t:t===Uf?r=c.s+Cu:r=c.s+Tc*t,r>1&&(r=1),e&&t===zf&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function Xf(c,t,e){var r;return e?r=c.v+Ic*t:r=c.v-Oc*t,r>1&&(r=1),Number(r.toFixed(2))}function Tu(c){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=[],r=(0,eu.Z)(c),n=zf;n>0;n-=1){var a=r.toHsv(),i=(0,eu.Z)({h:sf(a,n,!0),s:jf(a,n,!0),v:Xf(a,n,!0)}).toHexString();e.push(i)}e.push(r.toHexString());for(var o=1;o<=Uf;o+=1){var u=r.toHsv(),l=(0,eu.Z)({h:sf(u,o),s:jf(u,o),v:Xf(u,o)}).toHexString();e.push(l)}return t.theme==="dark"?Wf.map(function(h){var y=h.index,D=h.opacity,A=eu.Z.mix(t.backgroundColor||"#141414",e[y],D*100).toHexString();return A}):e}var ks={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"},Ti={},lt={};Object.keys(ks).forEach(function(c){Ti[c]=Tu(ks[c]),Ti[c].primary=Ti[c][5],lt[c]=Tu(ks[c],{theme:"dark",backgroundColor:"#141414"}),lt[c].primary=lt[c][5]});var vl=Ti.red,Iu=Ti.volcano,Vf=Ti.gold,gl=Ti.orange,Ac=Ti.yellow,pl=Ti.lime,yl=Ti.green,uf=Ti.cyan,Yf=Ti.blue,Lc=Ti.geekblue,Hf=Ti.purple,Si=Ti.magenta,Ou=Ti.grey,vi=function(t,e,r){var n=Ps()(t),a=Ps()(e);return Ps()([(1-r)*n.red()+r*a.red(),(1-r)*n.green()+r*a.green(),(1-r)*n.blue()+r*a.blue()]).rgb()},Au=function(t,e,r){e===void 0&&(e="#fff"),r===void 0&&(r="rgb(150, 150, 150)");var n=vi(e,t,.05).rgb().toString(),a=vi(e,t,.1).rgb().toString(),i=vi(e,t,.2).rgb().toString(),o=vi(e,t,.4).rgb().toString(),u=vi(e,r,.02).rgb().toString(),l=vi(e,r,.05).rgb().toString(),h=vi(e,r,.1).rgb().toString(),y=vi(e,r,.2).rgb().toString(),D=vi(e,r,.3).rgb().toString(),A=Tu(t,{theme:"default",backgroundColor:e}),z=Ps()(t).hex().toLowerCase(),K=A.indexOf(z),ee=t;return K!==-1&&(ee=A[K+1]),{mainStroke:t,mainFill:a,activeStroke:t,activeFill:n,inactiveStroke:o,inactiveFill:n,selectedStroke:t,selectedFill:e,highlightStroke:ee,highlightFill:i,disableStroke:D,disableFill:l,edgeMainStroke:D,edgeActiveStroke:t,edgeInactiveStroke:y,edgeSelectedStroke:t,edgeHighlightStroke:t,edgeDisableStroke:h,comboMainStroke:D,comboMainFill:u,comboActiveStroke:t,comboActiveFill:n,comboInactiveStroke:D,comboInactiveFill:u,comboSelectedStroke:t,comboSelectedFill:u,comboHighlightStroke:ee,comboHighlightFill:u,comboDisableStroke:y,comboDisableFill:l}},jo=function(t,e,r){e===void 0&&(e="#fff"),r===void 0&&(r="#777");var n=vi(e,t,.2).rgb().toString(),a=vi(e,t,.3).rgb().toString(),i=vi(e,t,.6).rgb().toString(),o=vi(e,t,.8).rgb().toString(),u=vi(e,r,.2).rgb().toString(),l=vi(e,r,.25).rgb().toString(),h=vi(e,r,.3).rgb().toString(),y=vi(e,r,.4).rgb().toString(),D=vi(e,r,.5).rgb().toString(),A=Tu(t,{theme:"dark",backgroundColor:e}),z=Ps()(t).hex().toLowerCase(),K=A.indexOf(z),ee=t;return K!==-1&&(ee=A[K+1]),{mainStroke:o,mainFill:n,activeStroke:t,activeFill:a,inactiveStroke:o,inactiveFill:n,selectedStroke:t,selectedFill:n,highlightStroke:t,highlightFill:i,disableStroke:D,disableFill:l,edgeMainStroke:r,edgeActiveStroke:t,edgeInactiveStroke:r,edgeSelectedStroke:t,edgeHighlightStroke:t,edgeDisableStroke:h,comboMainStroke:y,comboMainFill:l,comboActiveStroke:t,comboActiveFill:u,comboInactiveStroke:y,comboInactiveFill:l,comboSelectedStroke:t,comboSelectedFill:u,comboHighlightStroke:ee,comboHighlightFill:l,comboDisableStroke:y,comboDisableFill:u}},vs=function(t,e,r,n){return e===void 0&&(e="#fff"),r===void 0&&(r="default"),n===void 0&&(n="rgb(150, 150, 150)"),r==="default"?Au(t,e,"rgb(150, 150, 150)"):jo(t,e,"#777")},Rs=function(t,e,r,n){e===void 0&&(e="#fff"),r===void 0&&(r="default"),n===void 0&&(n="rgb(150, 150, 150)");var a=[];return t.forEach(function(i){a.push(vs(i,e,r,n))}),a},gs="rgb(95, 149, 255)",ru="rgb(255, 255, 255)",ps="rgb(0, 0, 0)",Jn=vs(gs,ru),wo={version:"0.8.5",rootContainerClassName:"root-container",nodeContainerClassName:"node-container",edgeContainerClassName:"edge-container",comboContainerClassName:"combo-container",delegateContainerClassName:"delegate-container",defaultLoopPosition:"top",nodeLabel:{style:{fill:"#000",fontSize:12,textAlign:"center",textBaseline:"middle"},offset:4},defaultNode:{type:"circle",style:{lineWidth:1,stroke:Jn.mainStroke,fill:Jn.mainFill},size:20,color:Jn.mainStroke,linkPoints:{size:8,lineWidth:1,fill:Jn.activeFill,stroke:Jn.activeStroke}},nodeStateStyles:{active:{fill:Jn.activeFill,stroke:Jn.activeStroke,lineWidth:2,shadowColor:Jn.mainStroke,shadowBlur:10},selected:{fill:Jn.selectedFill,stroke:Jn.selectedStroke,lineWidth:4,shadowColor:Jn.selectedStroke,shadowBlur:10,"text-shape":{fontWeight:500}},highlight:{fill:Jn.highlightFill,stroke:Jn.highlightStroke,lineWidth:2,"text-shape":{fontWeight:500}},inactive:{fill:Jn.inactiveFill,stroke:Jn.inactiveStroke,lineWidth:1},disable:{fill:Jn.disableFill,stroke:Jn.disableStroke,lineWidth:1}},edgeLabel:{style:{fill:ps,textAlign:"center",textBaseline:"middle",fontSize:12}},defaultEdge:{type:"line",size:1,style:{stroke:Jn.edgeMainStroke,lineAppendWidth:2},color:Jn.edgeMainStroke},edgeStateStyles:{active:{stroke:Jn.edgeActiveStroke,lineWidth:1},selected:{stroke:Jn.edgeSelectedStroke,lineWidth:2,shadowColor:Jn.edgeSelectedStroke,shadowBlur:10,"text-shape":{fontWeight:500}},highlight:{stroke:Jn.edgeHighlightStroke,lineWidth:2,"text-shape":{fontWeight:500}},inactive:{stroke:Jn.edgeInactiveStroke,lineWidth:1},disable:{stroke:Jn.edgeDisableStroke,lineWidth:1}},comboLabel:{style:{fill:ps,textBaseline:"middle",fontSize:12},refY:10,refX:10},defaultCombo:{type:"circle",style:{fill:Jn.comboMainFill,lineWidth:1,stroke:Jn.comboMainStroke,r:5,width:20,height:10},size:[20,5],color:Jn.comboMainStroke,padding:[25,20,15,20]},comboStateStyles:{active:{stroke:Jn.comboActiveStroke,lineWidth:1,fill:Jn.comboActiveFill},selected:{stroke:Jn.comboSelectedStroke,lineWidth:2,fill:Jn.comboSelectedFill,shadowColor:Jn.comboSelectedStroke,shadowBlur:10,"text-shape":{fontWeight:500}},highlight:{stroke:Jn.comboHighlightStroke,lineWidth:2,fill:Jn.comboHighlightFill,"text-shape":{fontWeight:500}},inactive:{stroke:Jn.comboInactiveStroke,fill:Jn.comboInactiveFill,lineWidth:1},disable:{stroke:Jn.comboDisableStroke,fill:Jn.comboDisableFill,lineWidth:1}},delegateStyle:{fill:"#F3F9FF",fillOpacity:.5,stroke:"#1890FF",strokeOpacity:.9,lineDash:[5,5]},textWaterMarkerConfig:{width:150,height:100,compatible:!1,text:{x:0,y:60,lineHeight:20,rotate:20,fontSize:14,fontFamily:"Microsoft YaHei",fill:"rgba(0, 0, 0, 0.1)",baseline:"Middle"}},imageWaterMarkerConfig:{width:150,height:130,compatible:!1,image:{x:0,y:0,width:30,height:20,rotate:0}},waterMarkerImage:"https://gw.alipayobjects.com/os/s/prod/antv/assets/image/logo-with-text-73b8a.svg"},Bs=G(57817),ff=Ni.cloneEvent,Lu=Ni.isViewportChanged,Zf=function(c){(0,w.__extends)(t,c);function t(e){var r=c.call(this,e)||this;return r.extendEvents=[],r.dragging=!1,r.mousedown=!1,r.preItem=null,r.destroy(),r.graph=e,r.destroyed=!1,r.initEvents(),r}return t.prototype.initEvents=function(){var e=this,r=e.graph,n=e.extendEvents,a=n===void 0?[]:n,i=r.get("canvas"),o=i.get("el"),u=(0,b.wrapBehavior)(this,"onCanvasEvents"),l=(0,b.wrapBehavior)(this,"onExtendEvents"),h=(0,b.wrapBehavior)(this,"onWheelEvent");i.off("*").on("*",u),this.canvasHandler=u,a.push((0,Bs.Z)(o,"wheel",h)),typeof window!="undefined"&&(a.push((0,Bs.Z)(window,"keydown",l)),a.push((0,Bs.Z)(window,"keyup",l)),a.push((0,Bs.Z)(window,"focus",l))),this.resetHandler&&r.off("afterchangedata",this.resetHandler),this.resetHandler=(0,b.wrapBehavior)(this,"resetStatus"),r.on("afterchangedata",this.resetHandler)},t.getItemRoot=function(e){for(;e&&!e.get("item");)e=e.get("parent");return e},t.prototype.onCanvasEvents=function(e){var r=this,n=this.graph,a=n.get("canvas"),i=e.target,o=e.type;switch(o){case"drag":this.onCanvasEvents(Object.assign({},e,{type:"mousemove"}));break;case"dragend":this.onCanvasEvents(Object.assign({},e,{type:"mouseup"}));break;case"mousedown":this.mousedown=!0;break;case"dragend":case"mouseup":setTimeout(function(){return r.mousedown=!1});break;case"click":if(!this.mousedown)return;break;default:break}e.canvasX=e.x,e.canvasY=e.y;var u={x:e.canvasX,y:e.canvasY},l=n.get("group"),h=l.getMatrix();if(h||(h=[1,0,0,0,1,0,0,0,1]),Lu(h)&&(u=n.getPointByClient(e.clientX,e.clientY)),e.x=u.x,e.y=u.y,e.currentTarget=n,i===a){(o==="mousemove"||o==="mouseleave")&&this.handleMouseMove(e,"canvas"),e.target=a,e.item=null,n.emit(o,e),n.emit("canvas:".concat(o),e);return}var y=t.getItemRoot(i);if(!y){n.emit(o,e);return}var D=y.get("item");if(!D.destroyed){var A=D.getType();if(e.target=i,e.item=D,e.canvasX===e.x&&e.canvasY===e.y){var z=n.getCanvasByPoint(e.x,e.y);e.canvasX=z.x,e.canvasY=z.y}e.name&&!e.name.includes(":")?(n.emit("".concat(A,":").concat(o),e),n.emit(o,e)):e.name&&n.emit(e.name,e),o==="dragstart"&&(this.dragging=!0),o==="dragend"&&(this.dragging=!1),o==="mousemove"&&this.handleMouseMove(e,A)}},t.prototype.onExtendEvents=function(e){this.graph.emit(e.type,e)},t.prototype.onWheelEvent=function(e){(0,b.isNil)(e.wheelDelta)&&(e.wheelDelta=-e.detail),this.graph.emit("wheel",e)},t.prototype.handleMouseMove=function(e,r){var n=this,a=n.graph,i=n.preItem,o=a.get("canvas"),u=e.target===o?null:e.item;e=ff(e),i&&i!==u&&!i.destroyed&&(e.item=i,this.emitCustomEvent(i.getType(),"mouseleave",e),this.dragging&&this.emitCustomEvent(i.getType(),"dragleave",e)),u&&i!==u&&(e.item=u,this.emitCustomEvent(r,"mouseenter",e),this.dragging&&this.emitCustomEvent(r,"dragenter",e)),this.preItem=u},t.prototype.emitCustomEvent=function(e,r,n){n.type=r,this.graph.emit("".concat(e,":").concat(r),n)},t.prototype.resetStatus=function(){this.mousedown=!1,this.dragging=!1,this.preItem=null},t.prototype.destroy=function(){var e=this,r=e.graph,n=e.canvasHandler,a=e.extendEvents,i=r.get("canvas");i.off("*",n),(0,b.each)(a,function(o){o.remove()}),this.resetStatus(),this.extendEvents.length=0,this.canvasHandler=null,this.resetHandler=null,this.destroyed=!0},t}(of),Kf=Zf,$n=G(67320),Io=G(81746),nu=G.n(Io),$f=Ni.traverseTree,cf=function(t,e){var r;return t?(0,b.isNumber)(t)?r=function(a){return t}:r=t:r=function(a){return e||1},r},Qf=function(t,e){var r=[],n=[],a={},i=0;for(i=0;i=0&&(o="x",i="y");var u=0;$f(t,function(y){return u++,y.x>a.x&&(a.x=y.x),y.xa.y&&(a.y=y.y),y.yWebGL.
      ','Find out how to get it here.'].join(` -`):['Your browser does not seem to support WebGL.
      ','Find out how to get it here.'].join(` -`)),e},addGetWebGLMessage:function(e){e=e||{};var r=e.parent!==void 0?e.parent:document.body,n=e.id!==void 0?e.id:"oldie",a=c().getWebGLErrorMessage();a.id=n,r.appendChild(a)}}},Rc=(0,w.__assign)((0,w.__assign)((0,w.__assign)((0,w.__assign)({},Ni),E),v),g),Xo=Rc,ml=Xo.radialLayout,Bc=function(){function c(t){this.type=t.type,this.radial=t.radial,this.config=t}return c.prototype.init=function(t){var e=this;if(this.data=t,this.radial){this.layoutMethod=function(r){var n=nu()[e.type](r,e.config);return ml(n),n};return}this.layoutMethod=function(r){return nu()[e.type](r,e.config)}},c.prototype.execute=function(){return this.layoutMethod(this.data,this.config)},c.prototype.layout=function(t){return this.init(t),this.execute()},c}(),Fc=Bc;(0,$n.registerLayout)("grid",$n.GridLayout),(0,$n.registerLayout)("random",$n.RandomLayout),(0,$n.registerLayout)("force",$n.ForceLayout),(0,$n.registerLayout)("circular",$n.CircularLayout),(0,$n.registerLayout)("dagre",$n.DagreLayout),(0,$n.registerLayout)("dagreCompound",$n.DagreCompoundLayout),(0,$n.registerLayout)("radial",$n.RadialLayout),(0,$n.registerLayout)("concentric",$n.ConcentricLayout),(0,$n.registerLayout)("mds",$n.MDSLayout),(0,$n.registerLayout)("fruchterman",$n.FruchtermanLayout),(0,$n.registerLayout)("fruchterman-gpu",$n.FruchtermanGPULayout),(0,$n.registerLayout)("gForce",$n.GForceLayout),(0,$n.registerLayout)("force2",$n.Force2Layout),(0,$n.registerLayout)("gForce-gpu",$n.GForceGPULayout),(0,$n.registerLayout)("comboForce",$n.ComboForceLayout),(0,$n.registerLayout)("comboCombined",$n.ComboCombinedLayout),(0,$n.registerLayout)("forceAtlas2",$n.ForceAtlas2Layout);var El=function(t,e){e.isCustomLayout=!0,$n.Layouts[t]=(0,$n.registerLayout)(t,e)},Gc=function(){function c(t,e){var r=t.toString(),n=new Blob(["importScripts('".concat(e,"');(").concat(r,")()")],{type:"text/javascript"});return new Worker(URL.createObjectURL(n))}return c}(),zc=Gc,Uc=function(t){t===void 0&&(t="https://unpkg.com/@antv/layout@latest/dist/layout.min.js");function e(){var n={RUN:"LAYOUT_RUN",END:"LAYOUT_END",ERROR:"LAYOUT_ERROR",TICK:"LAYOUT_TICK",GPURUN:"GPU_LAYOUT_RUN",GPUEND:"GPU_LAYOUT_END"};layout.registerLayout("grid",layout.GridLayout),layout.registerLayout("random",layout.RandomLayout),layout.registerLayout("force",layout.ForceLayout),layout.registerLayout("circular",layout.CircularLayout),layout.registerLayout("dagre",layout.DagreLayout),layout.registerLayout("dagreCompound",layout.DagreCompoundLayout),layout.registerLayout("radial",layout.RadialLayout),layout.registerLayout("concentric",layout.ConcentricLayout),layout.registerLayout("mds",layout.MDSLayout),layout.registerLayout("fruchterman",layout.FruchtermanLayout),layout.registerLayout("fruchterman-gpu",layout.FruchtermanGPULayout),layout.registerLayout("gForce",layout.GForceLayout),layout.registerLayout("gForce-gpu",layout.GForceGPULayout),layout.registerLayout("comboForce",layout.ComboForceLayout),layout.registerLayout("comboCombined",layout.ComboCombinedLayout),layout.registerLayout("forceAtlas2",layout.ForceAtlas2Layout);function a(o){var u=o.data.type;return u===n.RUN||u===n.GPURUN}function i(o){var u=this,l=o.data.type;switch(l){case n.RUN:{var h=o.data,y=h.nodes,D=h.edges,A=h.layoutCfg,z=A===void 0?{}:A,K=z.type,ee=layout.getLayoutByName(K);if(!ee){this.postMessage({type:n.ERROR,message:"layout ".concat(K," not found")});break}var se;z.onLayoutEnd=function(){u.postMessage({type:n.END,nodes:y}),se==null||se.destroy()},se=new ee(z),se.init({nodes:y,edges:D}),se.execute();break}case n.GPURUN:{var oe=o.data,ce=oe.nodes,D=oe.edges,Me=oe.layoutCfg,z=Me===void 0?{}:Me,Ne=oe.canvas,K=z.type,ee=layout.getLayoutByName(K);if(!ee){this.postMessage({type:n.ERROR,message:"layout ".concat(K," not found")});break}if(K.split("-")[1]!=="gpu"){this.postMessage({type:n.ERROR,message:"layout ".concat(K," does not support GPU")});break}var Ie=new ee(z);Ie.init({nodes:ce,edges:D}),Ie.executeWithWorker(Ne,this);break}default:break}}onmessage=function(u){a(u)&&i(u)}}var r=new zc(e,t);return r},Gs={RUN:"LAYOUT_RUN",END:"LAYOUT_END",ERROR:"LAYOUT_ERROR",TICK:"LAYOUT_TICK",GPURUN:"GPU_LAYOUT_RUN",GPUEND:"GPU_LAYOUT_END"};function Du(c){return Du=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Du(c)}var au=function(t){return setTimeout(t,16)},Nu=function(t){return clearTimeout(t)},zs={requestAnimationFrame:function(t){var e=typeof window!="undefined"&&(window.requestAnimationFrame||window.webkitRequestAnimationFrame)||au;return e(t)},cancelAnimationFrame:function(t){var e=typeof window!="undefined"&&(window.cancelAnimationFrame||window.webkitCancelAnimationFrame)||Nu;return e(t)}},lf=["fruchterman","gForce"],qf=["force","grid","circular"],df=function(c){(0,w.__extends)(t,c);function t(e){var r=c.call(this,e)||this;return r.graph=e,r.layoutCfg=e.get("layout")||{},r.layoutType=r.getLayoutType(),r.worker=null,r.workerData={},r.initLayout(),r}return t.prototype.initLayout=function(){},t.prototype.getWorker=function(){return this.worker?this.worker:(typeof Worker=="undefined"?(console.warn("Web worker is not supported in current browser."),this.worker=null):this.worker=Uc(this.layoutCfg.workerScriptURL),this.worker)},t.prototype.stopWorker=function(){var e=this.workerData;!this.worker||(this.worker.terminate(),this.worker=null,e.requestId&&(zs.cancelAnimationFrame(e.requestId),e.requestId=null),e.requestId2&&(zs.cancelAnimationFrame(e.requestId2),e.requestId2=null))},t.prototype.execLayoutMethod=function(e,r){var n=this;return new Promise(function(a,i){return(0,w.__awaiter)(n,void 0,void 0,function(){var o,u,l,h,y,D,A,z,K,D,ee;return(0,w.__generator)(this,function(se){switch(se.label){case 0:if(o=this.graph,!o||o.get("destroyed"))return[2];u=e.type,e.onLayoutEnd=function(){o.emit("aftersublayout",{type:u}),a()},u&&this.isGPU&&(this.hasGPUVersion(u)?u="".concat(u,"-gpu"):console.warn("The '".concat(u,"' layout does not support GPU calculation for now, it will run in CPU."))),Ni.isForce(u)?(l=e.onTick,h=e.animate,y=h===void 0&&(u==="force"||u==="force2"),D=function(){l&&l(),(h||y)&&o.refreshPositions()},e.tick=D):(u==="comboForce"||u==="comboCombined")&&(e.comboTrees=o.get("comboTrees")),A=!1;try{z=new $n.Layouts[u](e),this.layoutMethods[r]&&this.layoutMethods[r].destroy(),this.layoutMethods[r]=z}catch(oe){console.warn("The layout method: '".concat(u,"' does not exist! Please specify it first.")),i()}return A=z.enableTick,A&&(K=e.onTick,D=function(){K&&K(),o.refreshPositions()},z.tick=D),ee=this.filterLayoutData(this.data,e),gf(ee,r),z.init(ee),o.emit("beforesublayout",{type:u}),[4,z.execute()];case 1:return se.sent(),z.isCustomLayout&&e.onLayoutEnd&&e.onLayoutEnd(),[2]}})})})},t.prototype.updateLayoutMethod=function(e,r){var n=this;return new Promise(function(a,i){return(0,w.__awaiter)(n,void 0,void 0,function(){var o,u,l;return(0,w.__generator)(this,function(h){switch(h.label){case 0:return o=this.graph,u=r==null?void 0:r.type,r.onLayoutEnd=function(){o.emit("aftersublayout",{type:u}),a()},l=this.filterLayoutData(this.data,r),e.init(l),e.updateCfg(r),o.emit("beforesublayout",{type:u}),[4,e.execute()];case 1:return h.sent(),e.isCustomLayout&&r.onLayoutEnd&&r.onLayoutEnd(),[2]}})})})},t.prototype.layout=function(e){var r=this,n,a=this.graph;if(!(!a||a.get("destroyed"))){this.data=this.setDataFromGraph();var i=this.data,o=i.nodes,u=i.hiddenNodes;if(!o)return!1;var l=a.get("width"),h=a.get("height"),y={};Object.assign(y,{width:l,height:h,center:[l/2,h/2]},this.layoutCfg),this.layoutCfg=y;var D=y.type,A=!1;(n=this.layoutMethods)===null||n===void 0||n.forEach(function(Ne){var Ie;return A=!!((Ie=Ne.nodes)===null||Ie===void 0?void 0:Ie.length)||A});var z=this.destoryLayoutMethods();a.emit("beforelayout"),A&&D&&(z==null?void 0:z.length)===1&&z[0]===D?this.tweakInit():this.initPositions(y.center,o),this.initPositions(y.center,u),D&&D.split("-")[1]==="gpu"&&(D=D.split("-")[0],y.gpuEnabled=!0);var K=!1;y.gpuEnabled&&(K=!0,kc().webgl||(console.warn("Your browser does not support webGL or GPGPU. The layout will run in CPU."),K=!1)),K&&!this.hasGPUVersion(D)&&(console.warn("The '".concat(D,"' layout does not support GPU calculation for now, it will run in CPU.")),K=!1),this.isGPU=K;var ee=y.onLayoutEnd,se=y.layoutEndFormatted,oe=y.adjust;if(se||(y.layoutEndFormatted=!0,y.onAllLayoutEnd=function(){return(0,w.__awaiter)(r,void 0,void 0,function(){return(0,w.__generator)(this,function(Ne){switch(Ne.label){case 0:return ee&&ee(o),this.refreshLayout(),oe&&y.pipes?[4,this.adjustPipesBox(this.data,oe)]:[3,2];case 1:Ne.sent(),this.refreshLayout(),Ne.label=2;case 2:return a.emit("afterlayout"),[2]}})})}),this.stopWorker(),y.workerEnabled&&this.layoutWithWorker(this.data,e))return!0;var ce=Promise.resolve(),Me=!1;return y.type?(Me=!0,ce=ce.then(function(){return(0,w.__awaiter)(r,void 0,void 0,function(){return(0,w.__generator)(this,function(Ne){switch(Ne.label){case 0:return[4,this.execLayoutMethod(y,0)];case 1:return[2,Ne.sent()]}})})})):y.pipes&&(Me=!0,y.pipes.forEach(function(Ne,Ie){ce=ce.then(function(){return(0,w.__awaiter)(r,void 0,void 0,function(){return(0,w.__generator)(this,function(Pe){switch(Pe.label){case 0:return[4,this.execLayoutMethod(Ne,Ie)];case 1:return[2,Pe.sent()]}})})})})),Me?ce.then(function(){y.onAllLayoutEnd&&y.onAllLayoutEnd(),e&&e()}).catch(function(Ne){console.warn("graph layout failed,",Ne)}):(a.refreshPositions(),e==null||e()),!1}},t.prototype.tweakInit=function(){var e=this,r=e.data,n=e.graph,a=r.nodes,i=r.edges;if(!!(a==null?void 0:a.length)){var o={};a.forEach(function(h){var y=h.x,D=h.y;!isNaN(y)&&!isNaN(D)&&(o[h.id]={x:y,y:D},h.mass=h.mass||2)}),i.forEach(function(h){var y=h.source,D=h.target,A=o[y],z=o[D];!A&&z?o[y]={x:z.x+(Math.random()-.5)*80,y:z.y+(Math.random()-.5)*80}:!z&&A&&(o[D]={x:A.x+(Math.random()-.5)*80,y:A.y+(Math.random()-.5)*80})});var u=n.get("width"),l=n.get("height");a.forEach(function(h){var y=o[h.id]||{x:u/2+(Math.random()-.5)*20,y:l/2+(Math.random()-.5)*20};h.x=y.x,h.y=y.y})}},t.prototype.initWithPreset=function(){var e=this,r=e.layoutCfg,n=e.data,a=r.preset;if(!(a==null?void 0:a.type)||!$n.Layouts[a==null?void 0:a.type])return!1;var i=new $n.Layouts[a==null?void 0:a.type](a);return i.layout(n),delete r.preset,!0},t.prototype.layoutWithWorker=function(e,r){var n=this,a=this,i=a.layoutCfg,o=a.graph,u=this.getWorker(),l=this.workerData;if(!u)return!1;l.requestId=null,l.requestId2=null,l.currentTick=null,l.currentTickData=null,o.emit("beforelayout");var h=Promise.resolve(),y=!1;if(i.type)y=!0,h=h.then(function(){return n.runWebworker(u,e,i)});else if(i.pipes){y=!0;for(var D=function(se){h=h.then(function(){return n.runWebworker(u,e,se)})},A=0,z=i.pipes;A'),h=n?n.backgroundColor:void 0,y=n?n.padding:void 0;y?(0,b.isNumber)(y)&&(y=[y,y,y,y]):y=[0,0,0,0];var D=i+y[0]+y[2],A=o+y[1]+y[3],z={container:l,height:D,width:A,quickHit:!0},K=u==="svg"?new Ns.Canvas(z):new so.Canvas(z),ee=this.get("group"),se=ee.clone(),oe=(0,b.clone)(se.getMatrix());oe||(oe=[1,0,0,0,1,0,0,0,1]);var ce=(a.maxX+a.minX)/2,Me=(a.maxY+a.minY)/2;oe=Ws(oe,[["t",-ce,-Me],["t",o/2+y[3],i/2+y[0]]]),se.resetMatrix(),se.setMatrix(oe),K.add(se);var Ne=K.get("el"),Ie="";r||(r="image/png"),setTimeout(function(){if(u==="svg"){var Pe=Ne.cloneNode(!0),Ye=document.implementation.createDocumentType("svg","-//W3C//DTD SVG 1.1//EN","http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"),rt=document.implementation.createDocument("http://www.w3.org/2000/svg","svg",Ye);rt.replaceChild(Pe,rt.documentElement);var Ke=new XMLSerializer().serializeToString(rt);Ie="data:image/svg+xml;charset=utf8,".concat(encodeURIComponent(Ke))}else{var mt=void 0,Bt=Ne.getContext("2d"),Er=void 0;if(h){var fr=typeof window!="undefined"?window.devicePixelRatio:1;try{mt=Bt.getImageData(0,0,A*fr,D*fr),Er=Bt.globalCompositeOperation,Bt.globalCompositeOperation="destination-over",Bt.fillStyle=h,Bt.fillRect(0,0,A,D)}catch(lr){console.error("Download image failed. Out of memory at ImageData creation")}}Ie=Ne.toDataURL(r),h&&(Bt.clearRect(0,0,A,D),Bt.putImageData(mt,0,0),Bt.globalCompositeOperation=Er)}e&&e(Ie)},16)},t.prototype.downloadFullImage=function(e,r,n){var a=this,i=this.get("group").getCanvasBBox(),o=i.height,u=i.width,l=this.get("renderer"),h=(0,Na.Z)('
      '),y=document.querySelector(".g6-graph-watermarker"),D=n?n.backgroundColor:void 0,A=n?n.padding:void 0;A?(0,b.isNumber)(A)&&(A=[A,A,A,A]):A=[0,0,0,0];var z=o+A[0]+A[2],K=u+A[1]+A[3];if(y){var ee=this.get("graphWaterMarker").cfg||{},se=ee.width,oe=ee.height;z=Math.ceil(z/oe)*oe,K=Math.ceil(K/se)*se}var ce={container:h,height:z,width:K},Me=l==="svg"?new Ns.Canvas(ce):new so.Canvas(ce),Ne=this.get("group"),Ie=Pu(Ne),Pe=(0,b.clone)(Ie.getMatrix());Pe||(Pe=[1,0,0,0,1,0,0,0,1]);var Ye=(i.maxX+i.minX)/2,rt=(i.maxY+i.minY)/2;Pe=Ws(Pe,[["t",-Ye,-rt],["t",u/2+A[3],o/2+A[0]]]),Ie.resetMatrix(),Ie.setMatrix(Pe),Me.add(Ie);var Ke=Me.get("el");r||(r="image/png"),this.asyncToDataUrl(r,D,function(mt){var Bt=document.createElement("a"),Er=(e||"graph")+(l==="svg"?".svg":".".concat(r.split("/")[1]));a.dataURLToImage(mt,l,Bt,Er);var fr=document.createEvent("MouseEvents");fr.initEvent("click",!1,!1),Bt.dispatchEvent(fr)},K,z,Ke)},t.prototype.downloadImage=function(e,r,n){var a=this,i=this;i.stopAnimate();var o=i.get("canvas"),u=o.getRenderer();r||(r="image/png");var l=(e||"graph")+(u==="svg"?".svg":r.split("/")[1]),h=document.createElement("a");i.asyncToDataUrl(r,n,function(y){a.dataURLToImage(y,u,h,l);var D=document.createEvent("MouseEvents");D.initEvent("click",!1,!1),h.dispatchEvent(D)})},t.prototype.dataURLToImage=function(e,r,n,a){if(!e||e==="data:"){console.error("Download image failed. The graph is too large or there is invalid attribute values in graph items");return}if(typeof window!="undefined")if(window.Blob&&window.URL&&r!=="svg"){var i=e.split(","),o="";if(i&&i.length>0){var u=i[0].match(/:(.*?);/);u&&u.length>=2&&(o=u[1])}for(var l=atob(i[1]),h=l.length,y=new Uint8Array(h);h--;)y[h]=l.charCodeAt(h);var D=new Blob([y],{type:o});window.navigator.msSaveBlob?window.navigator.msSaveBlob(D,a):n.addEventListener("click",function(){n.download=a,n.href=window.URL.createObjectURL(D)})}else n.addEventListener("click",function(){n.download=a,n.href=e})},t.prototype.addPlugin=function(e){var r=this;e.destroyed||(r.get("plugins").push(e),e.initPlugin(r))},t.prototype.removePlugin=function(e){var r=this.get("plugins"),n=r.indexOf(e);n>=0&&(e.destroyPlugin(),r.splice(n,1))},t.prototype.setImageWaterMarker=function(e,r){e===void 0&&(e=wo.waterMarkerImage);var n=this.get("container");(0,b.isString)(n)&&(n=document.getElementById(n)),n.style.position||(n.style.position="relative");var a=this.get("graphWaterMarker"),i=(0,b.deepMix)({},wo.imageWaterMarkerConfig,r),o=i.width,u=i.height,l=i.compatible,h=i.image;if(!e){var y=l?n:document.querySelector(".g6-graph-watermarker");y&&(y.style.cssText=void 0),a&&a.clear();return}if(a)a.clear();else{var D={container:n,width:o,height:u,capture:!1},A=this.get("pixelRatio");A&&(D.pixelRatio=A,window.devicePixelRatio=A),a=new so.Canvas(D),this.set("graphWaterMarker",a)}a.get("el").style.display="none";var z=a.get("context"),K=h.rotate,ee=h.x,se=h.y;z.rotate(-K*Math.PI/180);var oe=new Image;oe.crossOrigin="anonymous",oe.src=e,oe.onload=function(){if(z.drawImage(oe,ee,se,h.width,h.height),z.rotate(K*Math.PI/180),l)n.style.cssText="background-image: url(".concat(a.get("el").toDataURL("image/png"),");background-repeat:repeat;");else{var ce=document.querySelector(".g6-graph-watermarker");ce||(ce=document.createElement("div"),ce.className="g6-graph-watermarker"),ce.className="g6-graph-watermarker",a.destroyed||(ce.style.cssText="background-image: url(".concat(a.get("el").toDataURL("image/png"),");background-repeat:repeat;position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:none;z-index:-1;"),n.appendChild(ce))}}},t.prototype.setTextWaterMarker=function(e,r){var n=this.get("container");(0,b.isString)(n)&&(n=document.getElementById(n)),n.style.position||(n.style.position="relative");var a=this.get("graphWaterMarker"),i=(0,b.deepMix)({},wo.textWaterMarkerConfig,r),o=i.width,u=i.height,l=i.compatible,h=i.text;if(!(e==null?void 0:e.length)){var y=l?n:document.querySelector(".g6-graph-watermarker");y&&(y.style.cssText=void 0),a&&a.clear();return}if(a)a.clear();else{var D={container:n,width:o,height:u,capture:!1},A=this.get("pixelRatio");A&&(D.pixelRatio=A,window.devicePixelRatio=A),a=new so.Canvas(D),this.set("graphWaterMarker",a)}a.get("el").style.display="none";var z=a.get("context"),K=h.rotate,ee=h.fill,se=h.fontFamily,oe=h.fontSize,ce=h.baseline,Me=h.x,Ne=h.y,Ie=h.lineHeight;z.rotate(-K*Math.PI/180),z.font="".concat(oe,"px ").concat(se),z.fillStyle=ee,z.textBaseline=ce;for(var Pe=(0,b.isString)(e)?[e]:e,Ye=Pe.length-1;Ye>=0;Ye--)z.fillText(Pe[Ye],Me,Ne+Ye*Ie);if(z.rotate(K*Math.PI/180),l)n.style.cssText="background-image: url(".concat(a.get("el").toDataURL("image/png"),");background-repeat:repeat;");else{var rt=document.querySelector(".g6-graph-watermarker");rt||(rt=document.createElement("div"),rt.className="g6-graph-watermarker"),rt.style.cssText="background-image: url(".concat(a.get("el").toDataURL("image/png"),");background-repeat:repeat;position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:none;z-index:99;"),n.appendChild(rt)}},t.prototype.destroy=function(){var e,r,n,a;(0,b.each)(this.get("plugins"),function(h){h.destroyPlugin()});var i=this.get("tooltips");if(i)for(var o=0;o0)for(var l=o.length-1;l>=0;l--){var h=o[l].getModel();t.indexOfChild(e.children||[],h.id)===-1&&(a.innerRemoveChild(h.id,{x:e.x,y:e.y},n),o.splice(l,1))}}var y,D;i.get("originAttrs")&&(y=i.get("originAttrs").x,D=i.get("originAttrs").y);var A=i.getModel();n&&i.set("originAttrs",{x:A.x,y:A.y}),i.set("model",Object.assign(A,e.data)),(y!==e.x||D!==e.y)&&i.updatePosition({x:e.x,y:e.y})},t.prototype.innerRemoveChild=function(e,r,n){var a=this,i=a.findById(e);if(!!i)if((0,b.each)(i.get("children"),function(u){a.innerRemoveChild(u.getModel().id,r,n)}),n){var o=i.getModel();i.set("to",r),i.set("originAttrs",{x:o.x,y:o.y}),a.get("removeList").push(i)}else a.removeItem(i,!1)},t.prototype.changeData=function(e,r){r===void 0&&(r=!0);var n=this;this.getNodes().map(function(a){return n.clearItemStates(a)}),this.getEdges().map(function(a){return n.clearItemStates(a)}),r&&this.get("enabledStack")&&this.pushStack("changedata",{before:n.get("originData"),after:e||n.get("data")}),e?(n.data(e),n.render(!1)):n.layout(this.get("fitView"))},t.prototype.changeLayout=function(e){console.warn("Please call updateLayout instead of changeLayout. changeLayout will be discarded soon");var r=this;r.updateLayout(e)},t.prototype.updateLayout=function(e,r){r===void 0&&(r=!0);var n=this;if(!e){console.warn("layout cannot be null");return}r&&this.get("enabledStack")&&this.pushStack("layout",{before:n.get("layout"),after:e}),n.set("layout",e),n.set("layoutMethod",n.getLayout()),n.layout()},t.prototype.refreshLayout=function(e){console.warn("Please call layout instead of refreshLayout. refreshLayout will be discarded soon");var r=this;r.layout(e)},t.prototype.layout=function(e){var r=this,n=r.get("data"),a=r.get("layoutMethod"),i=a?a(n,r.get("layout")):n,o=r.get("animate");if(r.emit("beforerefreshlayout",{data:n,layoutData:i}),r.emit("beforelayout"),r.innerUpdateChild(i,void 0,o),e){var u=r.get("viewController");u.fitView()}o?r.layoutAnimate(i):(r.refresh(),r.paint()),r.emit("afterrefreshlayout",{data:n,layoutData:i}),r.emit("afterlayout")},t.prototype.addChild=function(e,r,n){n===void 0&&(n=!0);var a=this;a.emit("beforeaddchild",{model:e,parent:r}),(0,b.isString)(r)||(r=r.get("id"));var i=a.findDataById(r);if(i){i.children||(i.children=[]),i.children.push(e);var o=a.findById(r);o.refresh(),a.changeData(void 0,n)}},t.prototype.updateChildren=function(e,r,n){n===void 0&&(n=!0);var a=this,i=a.findById(r);if(!r||!i){console.warn("Update children failed! There is no node with id '".concat(r,"'"));return}var o=a.findDataById(r);o.children=e,i.refresh(),a.changeData(void 0,n)},t.prototype.updateChild=function(e,r,n){n===void 0&&(n=!0);var a=this;if(!r||!a.findById(r)){a.changeData(e,n);return}var i=a.findDataById(r),o=a.findById(e.id);if(i.children||(i.children=[]),!o)i.children.push(e);else{var u=t.indexOfChild(i.children,e.id);u>-1&&(i.children[u]=e)}var l=a.findById(r);l==null||l.refresh(),a.changeData(void 0,n)},t.prototype.removeChild=function(e,r){r===void 0&&(r=!0);var n=this,a=n.findById(e),i;if(a?i=a==null?void 0:a.get("parent"):i=n.getNodes().find(function(y){var D=y.getModel().children||[];return!!D.find(function(A){return A.id===e})}),i&&!i.destroyed){var o=i.get("id"),u=n.findDataById(o),l=u&&u.children||[],h=t.indexOfChild(l,e);l.splice(h,1),i.refresh()}n.changeData(void 0,r)},t.prototype.findDataById=function(e,r){var n=this;if(r||(r=n.get("data")),e===r.id)return r;var a=null;return(0,b.each)(r.children||[],function(i){if(i.id===e)return a=i,!1;if(a=n.findDataById(e,i),a)return!1}),a},t.prototype.layoutAnimate=function(e,r){var n=this,a=this.get("animateCfg");n.emit("beforeanimate",{data:e}),n.getEdges().forEach(function(i){var o=i.get("model");o.sourceAnchor||(o.sourceAnchor=i.get("sourceAnchorIndex"))}),this.get("canvas").animate(function(i){js(e,function(o){var u=n.findById(o.id);if(u){var l=u.get("originAttrs"),h=u.get("model");if(l||(l={x:h.x,y:h.y},u.set("originAttrs",l)),r){var y=r(u,i,l,e);u.set("model",Object.assign(h,y))}else h.x=l.x+(o.x-l.x)*i,h.y=l.y+(o.y-l.y)*i}return!0}),(0,b.each)(n.get("removeList"),function(o){var u=o.getModel(),l=o.get("originAttrs"),h=o.get("to");u.x=l.x+(h.x-l.x)*i,u.y=l.y+(h.y-l.y)*i}),n.refreshPositions()},{duration:a.duration,easing:a.ease,callback:function(){(0,b.each)(n.getNodes(),function(o){o.set("originAttrs",null)}),(0,b.each)(n.get("removeList"),function(o){n.removeItem(o,!1)}),n.set("removeList",[]),a.callback&&a.callback(),n.emit("afteranimate",{data:e})},delay:a.delay})},t.prototype.stopLayoutAnimate=function(){this.get("canvas").stopAnimate(),this.emit("layoutanimateend",{data:this.get("data")}),this.layoutAnimating=!1},t.prototype.isLayoutAnimating=function(){return this.layoutAnimating},t.prototype.render=function(e){e===void 0&&(e=!0);var r=this,n=r.get("data");if(!n||!(0,b.isObject)(n)||!Object.keys(n).length)throw new Error("data must be defined first");r.clear(),e&&this.get("enabledStack")&&this.clearStack(),r.emit("beforerender"),r.layout(this.get("fitView")),r.emit("afterrender")},t.prototype.save=function(){return this.get("data")},t.prototype.data=function(e){c.prototype.data.call(this,e),this.set("originData",JSON.parse(JSON.stringify(e)))},t}(tc),pf=Wc,Yn=G(45442),bl=function(){function c(t){this._cfgs=(0,b.deepMix)(this.getDefaultCfgs(),t),this._events={},this.destroyed=!1}return c.prototype.getDefaultCfgs=function(){return{}},c.prototype.initPlugin=function(t){var e=this;e.set("graph",t);var r=e.getEvents(),n={};(0,b.each)(r,function(a,i){var o=(0,b.wrapBehavior)(e,a);n[i]=o,t.on(i,o)}),this._events=n,this.init()},c.prototype.getEvents=function(){return{}},c.prototype.get=function(t){var e;return(e=this._cfgs)===null||e===void 0?void 0:e[t]},c.prototype.set=function(t,e){this._cfgs[t]=e},c.prototype.destroy=function(){},c.prototype.destroyPlugin=function(){this.destroy();var t=this.get("graph"),e=this._events;(0,b.each)(e,function(r,n){t.off(n,r)}),this._events=null,this._cfgs=null,this.destroyed=!0},c}(),uo=bl,ys=function(){var c=function(e,r){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},c(e,r)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");c(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),rc="url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PHBhdHRlcm4gaWQ9ImdyaWQiIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgcGF0dGVyblVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHBhdGggZD0iTSAwIDEwIEwgNDAgMTAgTSAxMCAwIEwgMTAgNDAgTSAwIDIwIEwgNDAgMjAgTSAyMCAwIEwgMjAgNDAgTSAwIDMwIEwgNDAgMzAgTSAzMCAwIEwgMzAgNDAiIGZpbGw9Im5vbmUiIHN0cm9rZT0iI2UwZTBlMCIgb3BhY2l0eT0iMC4yIiBzdHJva2Utd2lkdGg9IjEiLz48cGF0aCBkPSJNIDQwIDAgTCAwIDAgMCA0MCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZTBlMGUwIiBzdHJva2Utd2lkdGg9IjEiLz48L3BhdHRlcm4+PC9kZWZzPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JpZCkiLz48L3N2Zz4=)",jc=function(c){ys(t,c);function t(e){return c.call(this,e)||this}return t.prototype.getDefaultCfgs=function(){return{img:rc,follow:!0}},t.prototype.init=function(){var e=this.get("graph"),r=e.get("container"),n=e.get("canvas").get("el"),a=this.get("img")||rc;a.includes("url(")||(a='url("'.concat(a,'")'));var i=(0,Na.Z)(`
      `),o=(0,Na.Z)(`
      `));this.set("container",i),this.set("gridContainer",o),this.positionInit(),i.appendChild(o),r.insertBefore(i,n)},t.prototype.positionInit=function(){var e=this.get("graph"),r=e.get("minZoom"),n=e.get("width"),a=e.get("height");(0,Yn.Z)(this.get("container"),{width:"".concat(n,"px"),height:"".concat(a,"px")});var i=n*80/r,o=a*80/r;(0,Yn.Z)(this.get("gridContainer"),{width:"".concat(i,"px"),height:"".concat(o,"px"),left:"-".concat(i/2,"px"),top:"-".concat(o/2,"px")})},t.prototype.getEvents=function(){return{viewportchange:"updateGrid"}},t.prototype.updateGrid=function(e){var r=this.get("gridContainer"),n=e.matrix;n||(n=[1,0,0,0,1,0,0,0,1]);var a=this.get("follow"),i="matrix(".concat(n[0],", ").concat(n[1],", ").concat(n[3],", ").concat(n[4],", ").concat(a?n[6]:"0",", ").concat(a?n[7]:"0",")");(0,Yn.Z)(r,{transform:i})},t.prototype.getContainer=function(){return this.get("container")},t.prototype.destroy=function(){var e=this.get("graph"),r=e.get("container"),n=this.get("container");r.removeChild(n)},t}(uo),Xc=jc,xl=G(38186),ou=G.n(xl),wl=function(){var c=function(e,r){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},c(e,r)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");c(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}();typeof document!="undefined"&&ou()(` - .g6-component-contextmenu { - border: 1px solid #e2e2e2; - border-radius: 4px; - font-size: 12px; - color: #545454; - background-color: rgba(255, 255, 255, 0.9); - padding: 10px 8px; - box-shadow: rgb(174, 174, 174) 0px 0px 10px; - } - .g6-contextmenu-ul { - padding: 0; - margin: 0; - list-style: none; - } - -`);var Pi=function(c){wl(t,c);function t(e){return c.call(this,e)||this}return t.prototype.getDefaultCfgs=function(){return{offsetX:6,offsetY:6,handleMenuClick:void 0,getContent:function(r){return` -
        -
      • \u83DC\u5355\u98791
      • -
      • \u83DC\u5355\u98792
      • -
      - `},shouldBegin:function(r){return!0},onHide:function(){return!0},itemTypes:["node","edge","combo"],trigger:"contextmenu"}},t.prototype.getEvents=function(){return this.get("trigger")==="click"?{click:"onMenuShow",touchend:"onMenuShow"}:{contextmenu:"onMenuShow"}},t.prototype.init=function(){var e=this.get("className"),r=(0,Na.Z)("
      "));(0,Yn.Z)(r,{top:"0px",position:"absolute",visibility:"hidden"});var n=this.get("container");n||(n=this.get("graph").get("container")),(0,b.isString)(n)&&(n=document.getElementById(n)),n.appendChild(r),this.set("menu",r)},t.prototype.onMenuShow=function(e){var r=this;e.preventDefault();var n=this.get("itemTypes");if(e.item){if(e.item&&e.item.getType&&n.indexOf(e.item.getType())===-1){r.onMenuHide();return}}else if(n.indexOf("canvas")===-1){r.onMenuHide();return}var a=this.get("shouldBegin");if(!!a(e)){var i=this.get("menu"),o=this.get("getContent"),u=this.get("graph"),l=o(e,u);(0,b.isString)(l)?i.innerHTML=l:i.innerHTML=l.outerHTML,this.removeMenuEventListener();var h=this.get("handleMenuClick");if(h){var y=function(Ye){h(Ye.target,e.item,u)};this.set("handleMenuClickWrapper",y),i.addEventListener("click",y)}var D=u.get("width"),A=u.get("height"),z=i.getBoundingClientRect(),K=this.get("offsetX")||0,ee=this.get("offsetY")||0,se=u.getContainer().offsetTop,oe=u.getContainer().offsetLeft,ce=e.canvasX+oe+K,Me=e.canvasY+se+ee;ce+z.width>D&&(ce=e.canvasX-z.width-K+oe),Me+z.height>A&&(Me=e.canvasY-z.height-ee+se),(0,Yn.Z)(i,{top:"".concat(Me,"px"),left:"".concat(ce,"px"),visibility:"visible"});var Ne=this.get("trigger")==="click",Ie=function(Ye){if(Ne){Ne=!1;return}r.onMenuHide()};document.body.addEventListener("click",Ie),this.set("handler",Ie)}},t.prototype.removeMenuEventListener=function(){var e=this.get("handleMenuClickWrapper"),r=this.get("handler");if(e){var n=this.get("menu");n.removeEventListener("click",e),this.set("handleMenuClickWrapper",null)}r&&document.body.removeEventListener("click",r)},t.prototype.onMenuHide=function(){var e=this.get("menu");e&&(0,Yn.Z)(e,{visibility:"hidden"}),this.removeMenuEventListener()},t.prototype.destroy=function(){var e=this.get("menu");if(this.removeMenuEventListener(),e){var r=this.get("container");r||(r=this.get("graph").get("container")),(0,b.isString)(r)&&(r=document.getElementById(r)),r.removeChild(e)}},t}(uo),Vc=Pi,su=function(){var c=function(e,r){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},c(e,r)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");c(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Vo=function(){return Vo=Object.assign||function(c){for(var t,e=1,r=arguments.length;e-1,l=navigator.userAgent.toLowerCase().indexOf("safari")>-1,h=(0,Na.Z)(` -
      `)),y=0,D=0,A=!1,z=0,K=0,ee=0,se=0,oe=0,ce=0,Me=l||u?"mousedown":"dragstart";h.addEventListener(Me,function(Ye){var rt,Ke;if(Ye.dataTransfer){var mt=new Image;mt.src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' %3E%3Cpath /%3E%3C/svg%3E",(Ke=(rt=Ye.dataTransfer).setDragImage)===null||Ke===void 0||Ke.call(rt,mt,0,0);try{Ye.dataTransfer.setData("text/html","view-port-minimap")}catch(Er){Ye.dataTransfer.setData("text","view-port-minimap")}}if(r.refresh=!1,Ye.target===h){var Bt=h.style;z=parseInt(Bt.left,10),K=parseInt(Bt.top,10),ee=parseInt(Bt.width,10),se=parseInt(Bt.height,10),!(ee>n[0]||se>n[1])&&(ce=a.getZoom(),oe=e.get("ratio"),A=!0,y=Ye.clientX,D=Ye.clientY)}},!1);var Ne=function(rt){if(!(!A||(0,b.isNil)(rt.clientX)||(0,b.isNil)(rt.clientY))){var Ke=y-rt.clientX,mt=D-rt.clientY;(z-Ke<0||z-Ke+ee>=n[0])&&(Ke=0),(K-mt<0||K-mt+se>=n[1])&&(mt=0),z-=Ke,K-=mt,(0,Yn.Z)(h,{left:"".concat(z,"px"),top:"".concat(K,"px")}),a.translate(Ke*ce/oe,mt*ce/oe),y=rt.clientX,D=rt.clientY}};!l&&!u&&h.addEventListener("drag",Ne,!1);var Ie=function(){A=!1,r.refresh=!0},Pe=l||u?"mouseup":"dragend";h.addEventListener(Pe,Ie,!1),o.addEventListener("mouseleave",Ie),o.addEventListener("mouseup",Ie),(l||u)&&o.addEventListener("mousemove",Ne,!1),this.set("viewport",h),o.appendChild(h)}},t.prototype.updateViewport=function(){if(!this.destroyed){var e=this.get("ratio"),r=this.get("totaldx"),n=this.get("totaldy"),a=this.get("graph"),i=this.get("size"),o=a.get("canvas").get("el"),u=a.get("width")||o.scrollWidth||500,l=a.get("height")||o.scrollHeight||500,h=a.getPointByCanvas(0,0),y=a.getPointByCanvas(u,l),D=this.get("viewport");D||this.initViewport();var A=(y.x-h.x)*e,z=(y.y-h.y)*e,K=h.x*e+r,ee=h.y*e+n,se=K+A,oe=ee+z;K<0&&(A+=K,K=0),se>i[0]&&(A=A-(se-i[0])),ee<0&&(z+=ee,ee=0),oe>i[1]&&(z=z-(oe-i[1])),this.set("ratio",e);var ce="".concat(K,"px"),Me="".concat(ee,"px");(0,Yn.Z)(D,{left:ce,top:Me,width:"".concat(A,"px"),height:"".concat(z,"px")})}},t.prototype.updateGraphShapes=function(){var e=this._cfgs.graph,r=this.get("canvas"),n=e.get("group");if(!n.destroyed){r.clear();var a;this.get("hideEdge")?(a=r.addGroup(),n.get("children").forEach(function(o){o.get("id").includes("-edge")||a.add(o.clone())})):(a=n.clone(),a.resetMatrix(),r.add(a));var i=e.get("renderer");i===es&&this.updateVisible(a)}},t.prototype.updateVisible=function(e){var r=this;if(!e.isGroup()&&!e.get("visible"))e.hide();else{var n=e.get("children");if(!n||!n.length)return;n.forEach(function(a){a.get("visible")||a.hide(),r.updateVisible(a)})}},t.prototype.updateKeyShapes=function(){var e=this,r=this._cfgs.graph,n=this.get("canvas"),a=n.get("children")[0]||n.addGroup();this.get("hideEdge")||(0,b.each)(r.getEdges(),function(u){e.updateOneEdgeKeyShape(u,a)}),(0,b.each)(r.getNodes(),function(u){e.updateOneNodeKeyShape(u,a)});var i=r.getCombos();if(i&&i.length){var o=a.find(function(u){return u.get("name")==="comboGroup"})||a.addGroup({name:"comboGroup"});setTimeout(function(){e.destroyed||((0,b.each)(i,function(u){e.updateOneComboKeyShape(u,o)}),o==null||o.sort(),o==null||o.toBack(),e.updateCanvas())},250)}this.clearDestroyedShapes()},t.prototype.updateOneComboKeyShape=function(e,r){if(!this.destroyed){var n=this.get("itemMap")||{},a=n[e.get("id")],i=e.getBBox(),o=e.get("keyShape").clone(),u=o.attr(),l={x:i.centerX,y:i.centerY};a?l=Object.assign(u,l):(a=o,r.add(a));var h=a.get("type");(h==="rect"||h==="image")&&(l.x=i.minX,l.y=i.minY),a.attr(l),e.isVisible()?a.show():a.hide(),a.exist=!0;var y=e.getModel().depth;isNaN(y)||a.set("zIndex",y),n[e.get("id")]=a,this.set("itemMap",n)}},t.prototype.updateOneNodeKeyShape=function(e,r){var n=this.get("itemMap")||{},a=n[e.get("id")],i=e.getBBox(),o=e.get("keyShape").clone(),u=o.attr(),l={x:i.centerX,y:i.centerY};a?(l=Object.assign(u,l),a.toFront()):(a=o,r.add(a));var h=a.get("type");(h==="rect"||h==="image")&&(l.x=i.minX,l.y=i.minY),a.attr(l),e.isVisible()?a.show():a.hide(),a.exist=!0;var y=e.getModel().depth;isNaN(y)||a.set("zIndex",y),n[e.get("id")]=a,this.set("itemMap",n)},t.prototype.updateDelegateShapes=function(){var e=this,r=this._cfgs.graph,n=this.get("canvas"),a=n.get("children")[0]||n.addGroup();this.get("hideEdge")||(0,b.each)(r.getEdges(),function(u){e.updateOneEdgeKeyShape(u,a)}),(0,b.each)(r.getNodes(),function(u){e.updateOneNodeDelegateShape(u,a)});var i=r.getCombos();if(i&&i.length){var o=a.find(function(u){return u.get("name")==="comboGroup"})||a.addGroup({name:"comboGroup"});setTimeout(function(){e.destroyed||((0,b.each)(i,function(u){e.updateOneComboKeyShape(u,o)}),o==null||o.sort(),o==null||o.toBack(),e.updateCanvas())},250)}this.clearDestroyedShapes()},t.prototype.clearDestroyedShapes=function(){var e=this.get("itemMap")||{},r=Object.keys(e);if(!(!r||r.length===0))for(var n=r.length-1;n>=0;n--){var a=e[r[n]],i=a.exist;a.exist=!1,i||(a.remove(),delete e[r[n]])}},t.prototype.updateOneEdgeKeyShape=function(e,r){var n=this.get("itemMap")||{},a=n[e.get("id")];if(a){var i=e.get("keyShape").attr("path");a.attr("path",i)}else a=e.get("keyShape").clone(),r.add(a);e.isVisible()?a.show():a.hide(),a.exist=!0,n[e.get("id")]=a,this.set("itemMap",n)},t.prototype.updateOneNodeDelegateShape=function(e,r){var n=this.get("delegateStyle"),a=this.get("itemMap")||{},i=a[e.get("id")],o=e.getBBox();if(i){var u={x:o.minX,y:o.minY,width:o.width,height:o.height};i.attr(u),i.toFront()}else i=r.addShape("rect",{attrs:Vo({x:o.minX,y:o.minY,width:o.width,height:o.height},n),name:"minimap-node-shape"});e.isVisible()?i.show():i.hide(),i.exist=!0,a[e.get("id")]=i,this.set("itemMap",a)},t.prototype.init=function(){this.initContainer(),this.get("graph").on("afterupdateitem",this.handleUpdateCanvas),this.get("graph").on("afteritemstatechange",this.handleUpdateCanvas),this.get("graph").on("afteradditem",this.handleUpdateCanvas),this.get("graph").on("afterremoveitem",this.handleUpdateCanvas),this.get("graph").on("afterrender",this.handleUpdateCanvas),this.get("graph").on("afterlayout",this.handleUpdateCanvas)},t.prototype.initContainer=function(){var e=this,r=e.get("graph"),n=e.get("size"),a=e.get("className"),i=e.get("container"),o=(0,Na.Z)("
      "));(0,b.isString)(i)&&(i=document.getElementById(i)),i?i.appendChild(o):r.get("container").appendChild(o),e.set("container",o);var u=(0,Na.Z)('
      ');o.appendChild(u),u.addEventListener("dragenter",function(y){y.preventDefault()}),u.addEventListener("dragover",function(y){y.preventDefault()});var l,h=r.get("renderer");h===es?l=new Ns.Canvas({container:u,width:n[0],height:n[1]}):l=new so.Canvas({container:u,width:n[0],height:n[1]}),e.set("canvas",l),e.updateCanvas()},t.prototype.updateCanvas=function(){if(!this.destroyed){var e=this.get("refresh");if(!!e){var r=this.get("graph");if(!r.get("destroyed")){this.get("viewportChange")&&(this.set("viewportChange",!1),this.updateViewport());var n=this.get("size"),a=this.get("canvas"),i=this.get("type"),o=this.get("padding");if(!a.destroyed){switch(i){case yf:this.updateGraphShapes();break;case Yc:this.updateKeyShapes();break;case Ji:this.updateDelegateShapes();break;default:break}var u=a.get("children")[0];if(!!u){u.resetMatrix();var l=u.getCanvasBBox(),h=r.get("canvas").getCanvasBBox(),y=r.getZoom()||1,D=h.width/y,A=h.height/y;Number.isFinite(l.width)&&(D=nc(l.width,D),A=nc(l.height,A)),D+=2*o,A+=2*o;var z=Math.min(n[0]/D,n[1]/A),K=[1,0,0,0,1,0,0,0,1],ee=0,se=0;Number.isFinite(l.minX)&&(ee=-l.minX),Number.isFinite(l.minY)&&(se=-l.minY);var oe=(n[0]-(D-2*o)*z)/2,ce=(n[1]-(A-2*o)*z)/2;K=ac(K,[["t",ee,se],["s",z,z],["t",oe,ce]]),u.setMatrix(K),this.set("ratio",z),this.set("totaldx",oe+ee*z),this.set("totaldy",ce+se*z),this.set("dx",oe),this.set("dy",ce),this.updateViewport()}}}}}},t.prototype.getCanvas=function(){return this.get("canvas")},t.prototype.getViewport=function(){return this.get("viewport")},t.prototype.getContainer=function(){return this.get("container")},t.prototype.destroy=function(){var e;(e=this.get("canvas"))===null||e===void 0||e.destroy();var r=this.get("container");(r==null?void 0:r.parentNode)&&r.parentNode.removeChild(r)},t}(uo),Wi=fi,mf=function(){var c=function(e,r){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},c(e,r)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");c(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}();function Yo(c,t,e){var r=c.x-t.x,n=c.y-t.y;return!e||Math.abs(r)>e||Math.abs(n)>e?Math.sqrt(r*r+n*n):e}function Hc(c,t){return c.x*t.x+c.y*t.y}function Zc(c,t){var e=(t.source.y-t.target.y)/(t.source.x-t.target.x),r=(e*e*t.source.x+e*(c.y-t.source.y)+c.x)/(e*e+1),n=e*(r-t.source.x)+t.source.y;return{x:r,y:n}}var Sl=function(c){mf(t,c);function t(e){return c.call(this,e)||this}return t.prototype.getDefaultCfgs=function(){return{edgeBundles:[],edgePoints:[],K:.1,lambda:.1,divisions:1,divRate:2,cycles:6,iterations:90,iterRate:.6666667,bundleThreshold:.6,eps:1e-6,onLayoutEnd:function(){},onTick:function(){}}},t.prototype.init=function(){var e=this.get("graph"),r=this.get("onTick"),n=function(){r&&r(),e.refreshPositions()};this.set("tick",n)},t.prototype.bundling=function(e){var r=this;if(r.set("data",e),!r.isTicking()){var n=e.edges||[],a=e.nodes||[],i={},o=!1;if(a.forEach(function(Me){(Me.x===null||!Me.y===null||Me.x===void 0||!Me.y===void 0)&&(o=!0),i[Me.id]=Me}),o)throw new Error("please layout the graph or assign x and y for nodes first");r.set("nodeIdMap",i);var u=r.get("divisions"),l=r.get("divRate"),h=r.divideEdges(u);r.set("edgePoints",h);var y=r.getEdgeBundles();r.set("edgeBundles",y);for(var D=r.get("cycles"),A=r.get("iterations"),z=r.get("iterRate"),K=r.get("lambda"),ee=0;eez;){var ce=z/oe,Me={x:i[u][se-1].x,y:i[u][se-1].y};Me.x+=ce*(ee.x-i[u][se-1].x),Me.y+=ce*(ee.y-i[u][se-1].y),K.push(Me),oe-=z,z=A}z-=oe}}),K.push({x:y.x,y:y.y}),i[u]=K}}),i},t.prototype.getEdgeLength=function(e){var r=0;return e.forEach(function(n,a){a!==0&&(r+=Yo(n,e[a-1]))}),r},t.prototype.getEdgeBundles=function(){var e=this,r=e.get("data"),n=r.edges||[],a=e.get("bundleThreshold"),i=e.get("nodeIdMap"),o=e.get("edgeBundles");return o||(o=[]),n.forEach(function(u,l){(!o[l]||o[l]===void 0)&&(o[l]=[])}),n.forEach(function(u,l){var h=i[u.source],y=i[u.target];n.forEach(function(D,A){if(!(A<=l)){var z=i[D.source],K=i[D.target],ee=e.getBundleScore({source:h,target:y},{source:z,target:K});ee>=a&&(o[l].push(A),o[A].push(l))}})}),o},t.prototype.getBundleScore=function(e,r){var n=this;e.vx=e.target.x-e.source.x,e.vy=e.target.y-e.source.y,r.vx=r.target.x-r.source.x,r.vy=r.target.y-r.source.y,e.length=Yo({x:e.source.x,y:e.source.y},{x:e.target.x,y:e.target.y}),r.length=Yo({x:r.source.x,y:r.source.y},{x:r.target.x,y:r.target.y});var a=n.getAngleScore(e,r),i=n.getScaleScore(e,r),o=n.getPositionScore(e,r),u=n.getVisibilityScore(e,r);return a*i*o*u},t.prototype.getAngleScore=function(e,r){var n=Hc({x:e.vx,y:e.vy},{x:r.vx,y:r.vy});return n/(e.length*r.length)},t.prototype.getScaleScore=function(e,r){var n=(e.length+r.length)/2,a=2/(n/Math.min(e.length,r.length)+Math.max(e.length,r.length)/n);return a},t.prototype.getPositionScore=function(e,r){var n=(e.length+r.length)/2,a={x:(e.source.x+e.target.x)/2,y:(e.source.y+e.target.y)/2},i={x:(r.source.x+r.target.x)/2,y:(r.source.y+r.target.y)/2},o=Yo(a,i);return n/(n+o)},t.prototype.getVisibilityScore=function(e,r){var n=this.getEdgeVisibility(e,r),a=this.getEdgeVisibility(r,e);return na||Math.abs(y.y)>a){var D=Yo(o[h][e],o[r][e]),A=1/D;l.x+=y.x*A,l.y+=y.y*A}}),l},t.prototype.isTicking=function(){return this.get("ticking")},t.prototype.getSimulation=function(){return this.get("forceSimulation")},t.prototype.destroy=function(){this.get("ticking")&&this.getSimulation().stop(),c.prototype.destroy.call(this)},t}(uo),Kc=Sl,_l=function(){var c=function(e,r){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},c(e,r)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");c(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),ic=function(){return ic=Object.assign||function(c){for(var t,e=1,r=arguments.length;e(l||n.get("height"))&&a>1||y<(h||n.get("height")*.05)&&a<1)&&(a=1),y*=a,r.set("r",y),r.set("r2",y*y);var D=r.get("d");r.set("molecularParam",(D+1)*y),r.set("delegateCenterDiff",void 0),r.magnify(e,u)}},t.prototype.scaleRByDrag=function(e){var r=this;if(!!e){var n=r.get("dragPrePos"),a=r.get("graph"),i,o=a.getPointByClient(e.clientX,e.clientY);e.x-n.x<0?i=1-Ef:i=1/(1-Ef);var u=r.get("maxR"),l=r.get("minR"),h=r.get("r");(h>(u||a.get("height"))&&i>1||h<(l||a.get("height")*.05)&&i<1)&&(i=1),h*=i,r.set("r",h),r.set("r2",h*h);var y=r.get("d");r.set("molecularParam",(y+1)*h),r.magnify(e,o),r.set("dragPrePos",{x:e.x,y:e.y})}},t.prototype.scaleDByWheel=function(e){var r=this;if(!(!e&&!e.originalEvent)){e.preventDefault&&e.preventDefault();var n=0;e.originalEvent.wheelDelta<0?n=-.1:n=.1;var a=r.get("d"),i=a+n,o=r.get("maxD"),u=r.get("minD");if(iu){r.set("d",i);var l=r.get("r");r.set("molecularParam",(i+1)*l);var h=r.get("delegate"),y=h?{x:h.attr("x"),y:h.attr("y")}:void 0;r.set("delegateCenterDiff",void 0),r.magnify(e,y)}}},t.prototype.scaleDByDrag=function(e){var r=this,n=r.get("dragPrePos"),a=e.x-n.x>0?.1:-.1,i=r.get("d"),o=i+a,u=r.get("maxD"),l=r.get("minD");if(ol){r.set("d",o);var h=r.get("r");r.set("molecularParam",(o+1)*h),r.magnify(e)}r.set("dragPrePos",{x:e.x,y:e.y})},t.prototype.magnify=function(e,r){var n=this;n.restoreCache();var a=n.get("graph"),i=n.get("cachedMagnifiedModels"),o=n.get("cachedOriginPositions"),u=n.get("showLabel"),l=n.get("r"),h=n.get("r2"),y=n.get("d"),D=n.get("molecularParam"),A=a.getNodes(),z=A.length,K=r?{x:r.x,y:r.y}:{x:e.x,y:e.y};n.get("dragging")&&(n.get("trigger")==="mousemove"||n.get("trigger")==="click")&&(K=n.get("cacheCenter"));var ee=n.get("delegateCenterDiff");ee&&(K.x+=ee.x,K.y+=ee.y),n.updateDelegate(K,l);for(var se=0;se -
    • - - - -
    • -
    • - - - -
    • -
    • - - - -
    • -
    • - - - -
    • -
    • - - - -
    • -
    • - - - -
    • - - `},zoomSensitivity:2}},t.prototype.init=function(){var e=this,r=this.get("graph"),n=this.get("getContent"),a=n(r),i=a;(0,b.isString)(a)&&(i=(0,Na.Z)(a));var o=this.get("className");i.setAttribute("class",o||"g6-component-toolbar");var u=this.get("container");u||(u=this.get("graph").get("container")),(0,b.isString)(u)&&(u=document.getElementById(u)),u.appendChild(i),this.set("toolBar",i);var l=this.get("handleClick");i.addEventListener("click",function(y){var D=Ml(y).filter(function(z){return z.nodeName==="LI"});if(D.length!==0){var A=D[0].getAttribute("code");!A||(l?l(A,r):e.handleDefaultOperator(A))}});var h=this.get("position");h&&(0,Yn.Z)(i,{top:"".concat(h.y,"px"),left:"".concat(h.x,"px")}),this.bindUndoRedo()},t.prototype.bindUndoRedo=function(){var e=this.get("graph"),r=document.querySelector('.g6-component-toolbar li[code="undo"]'),n=document.querySelector('.g6-component-toolbar li[code="undo"] svg'),a=document.querySelector('.g6-component-toolbar li[code="redo"]'),i=document.querySelector('.g6-component-toolbar li[code="redo"] svg');!r||!n||!a||!i||(r.setAttribute("style","cursor: not-allowed"),n.setAttribute("style","opacity: 0.4"),a.setAttribute("style","cursor: not-allowed"),i.setAttribute("style","opacity: 0.4"),e.on("stackchange",function(o){var u=o.undoStack,l=o.redoStack,h=u.length,y=l.length;h===0?(r.setAttribute("style","cursor: not-allowed"),n.setAttribute("style","opacity: 0.4")):(r.removeAttribute("style"),n.removeAttribute("style")),y===0?(a.setAttribute("style","cursor: not-allowed"),i.setAttribute("style","opacity: 0.4")):(a.removeAttribute("style"),i.removeAttribute("style"))}))},t.prototype.undo=function(){var e=this.get("graph"),r=e.getUndoStack();if(!(!r||r.length===0)){var n=r.pop();if(n){var a=n.action;e.pushStack(a,(0,b.clone)(n.data),"redo");var i=n.data.before;if(a==="add"&&(i=n.data.after),!i)return;switch(a){case"visible":{Object.keys(i).forEach(function(y){var D=i[y];!D||D.forEach(function(A){var z=e.findById(A.id);A.visible?e.showItem(z,!1):e.hideItem(z,!1)})});break}case"render":case"update":Object.keys(i).forEach(function(y){var D=i[y];!D||D.forEach(function(A){var z=e.findById(A.id);delete A.id,e.updateItem(z,A,!1),z.getType()==="combo"&&e.updateCombo(z)})});break;case"changedata":e.changeData(i,!1);break;case"delete":{Object.keys(i).forEach(function(y){var D=i[y];!D||D.forEach(function(A){var z=A.itemType;delete A.itemType,e.addItem(z,A,!1)})});break}case"add":Object.keys(i).forEach(function(y){var D=i[y];!D||D.forEach(function(A){e.removeItem(A.id,!1)})});break;case"updateComboTree":Object.keys(i).forEach(function(y){var D=i[y];!D||D.forEach(function(A){e.updateComboTree(A.id,A.parentId,!1)})});break;case"createCombo":var o=n.data.after.combos,u=o[o.length-1];Object.keys(i).forEach(function(y){var D=i[y];!D||D.forEach(function(A){e.updateComboTree(A.id,A.parentId,!1)})}),e.removeItem(u.id,!1);break;case"uncombo":var l=i.combos[i.combos.length-1],h=i.nodes.concat(i.combos).map(function(y){return y.id}).filter(function(y){return y!==l.id});e.createCombo(l,h,!1);break;case"layout":e.updateLayout(i,void 0,void 0,!1);break;default:}}}},t.prototype.redo=function(){var e=this.get("graph"),r=e.getRedoStack();if(!(!r||r.length===0)){var n=r.pop();if(n){var a=n.action,i=n.data.after;if(e.pushStack(a,(0,b.clone)(n.data)),a==="delete"&&(i=n.data.before),!i)return;switch(a){case"visible":{Object.keys(i).forEach(function(h){var y=i[h];!y||y.forEach(function(D){var A=e.findById(D.id);D.visible?e.showItem(A,!1):e.hideItem(A,!1)})});break}case"render":case"update":Object.keys(i).forEach(function(h){var y=i[h];!y||y.forEach(function(D){var A=e.findById(D.id);delete D.id,e.updateItem(A,D,!1),A.getType()==="combo"&&e.updateCombo(A)})});break;case"changedata":e.changeData(i,!1);break;case"delete":i.edges&&i.edges.forEach(function(h){e.removeItem(h.id,!1)}),i.nodes&&i.nodes.forEach(function(h){e.removeItem(h.id,!1)}),i.combos&&i.combos.forEach(function(h){e.removeItem(h.id,!1)});break;case"add":{Object.keys(i).forEach(function(h){var y=i[h];!y||y.forEach(function(D){var A=D.itemType;delete D.itemType,e.addItem(A,D,!1)})});break}case"updateComboTree":Object.keys(i).forEach(function(h){var y=i[h];!y||y.forEach(function(D){e.updateComboTree(D.id,D.parentId,!1)})});break;case"createCombo":var o=i.combos[i.combos.length-1];e.createCombo(o,o.children.map(function(h){return h.id}),!1);break;case"uncombo":var u=n.data.before.combos,l=u[u.length-1];e.uncombo(l.id,!1);break;case"layout":e.updateLayout(i,void 0,void 0,!1);break;default:}}}},t.prototype.zoomOut=function(){var e=this.get("graph"),r=e.getZoom(),n=1/(1-sc*this.get("zoomSensitivity")),a=this.get("maxZoom")||e.get("maxZoom");n*r>a||e.zoomTo(r*n)},t.prototype.zoomIn=function(){var e=this.get("graph"),r=e.getZoom(),n=1-sc*this.get("zoomSensitivity"),a=this.get("minZoom")||e.get("minZoom");n*r\u7C7B\u578B\uFF1A`.concat(r.item.getType(),` - ID\uFF1A`).concat(r.item.getID(),` - `)},shouldBegin:function(r){return!0},itemTypes:["node","edge","combo"],trigger:"mouseenter",fixToNode:void 0}},t.prototype.getEvents=function(){return this.get("trigger")==="click"?{"node:click":"onClick","edge:click":"onClick","combo:click":"onClick","canvas:click":"onMouseLeave",afterremoveitem:"onMouseLeave",contextmenu:"onMouseLeave",drag:"onMouseLeave"}:{"node:mouseenter":"onMouseEnter","node:mouseleave":"onMouseLeave","node:mousemove":"onMouseMove","edge:mouseenter":"onMouseEnter","edge:mouseleave":"onMouseLeave","edge:mousemove":"onMouseMove","combo:mouseenter":"onMouseEnter","combo:mouseleave":"onMouseLeave","combo:mousemove":"onMouseMove",afterremoveitem:"onMouseLeave",contextmenu:"onMouseLeave","node:drag":"onMouseLeave"}},t.prototype.init=function(){var e=this,r=e.get("className")||"g6-component-tooltip",n=(0,Na.Z)("
      ")),a=e.get("container");a||(a=e.get("graph").get("container")),(0,b.isString)(a)&&(a=document.getElementById(a)),(0,Yn.Z)(n,{position:"absolute",visibility:"hidden",display:"none"}),a.appendChild(n),e.get("trigger")!=="click"&&(n.addEventListener("mouseenter",function(i){(0,Yn.Z)(n,{visibility:"visible",display:"unset"})}),n.addEventListener("mouseleave",function(i){e.hideTooltip()})),e.set("tooltip",n)},t.prototype.onClick=function(e){var r=this.get("itemTypes");if(!(e.item&&e.item.getType&&r.indexOf(e.item.getType())===-1)){var n=e.item,a=this.get("graph");this.currentTarget===n?(this.currentTarget=null,this.hideTooltip(),a.emit("tooltipchange",{item:e.item,action:"hide"})):(this.currentTarget=n,this.showTooltip(e),a.emit("tooltipchange",{item:e.item,action:"show"}))}},t.prototype.onMouseEnter=function(e){var r=this.get("itemTypes");if(!(e.item&&e.item.getType&&r.indexOf(e.item.getType())===-1)){var n=e.item,a=this.get("graph");this.currentTarget=n,this.showTooltip(e),a.emit("tooltipchange",{item:e.item,action:"show"})}},t.prototype.onMouseMove=function(e){var r=this.get("itemTypes");e.item&&e.item.getType&&r.indexOf(e.item.getType())===-1||!this.currentTarget||e.item!==this.currentTarget||this.showTooltip(e)},t.prototype.onMouseLeave=function(){this.hideTooltip();var e=this.get("graph");e.emit("tooltipchange",{item:this.currentTarget,action:"hide"}),this.currentTarget=null},t.prototype.clearContainer=function(){var e=this.get("tooltip");e&&(e.innerHTML="")},t.prototype.showTooltip=function(e){if(!!e.item){var r=this.get("itemTypes");if(!(e.item.getType&&r.indexOf(e.item.getType())===-1)){var n=this.get("tooltip"),a=this.get("getContent"),i=a(e);(0,b.isString)(i)?n.innerHTML=i:(this.clearContainer(),n.appendChild(i)),this.updatePosition(e)}}},t.prototype.hideTooltip=function(){var e=this.get("tooltip");e&&(0,Yn.Z)(e,{visibility:"hidden",display:"none"})},t.prototype.updatePosition=function(e){var r=this.get("shouldBegin"),n=this.get("tooltip");if(!r(e)){(0,Yn.Z)(n,{visibility:"hidden",display:"none"});return}var a=this.get("graph"),i=a.get("width"),o=a.get("height"),u=this.get("offsetX")||0,l=this.get("offsetY")||0,h=a.getPointByClient(e.clientX,e.clientY),y=this.get("fixToNode"),D=e.item;if(D.getType&&D.getType()==="node"&&y&&(0,b.isArray)(y)&&y.length>=2){var A=D.getBBox();h={x:A.minX+A.width*y[0],y:A.minY+A.height*y[1]}}var z=a.getCanvasByPoint(h.x,h.y),K=z.x,ee=z.y,se=a.getContainer(),oe={x:K+se.offsetLeft+u,y:ee+se.offsetTop+l};(0,Yn.Z)(n,{visibility:"visible",display:"unset"});var ce=n.getBoundingClientRect();K+ce.width+u>i&&(oe.x-=ce.width+u),ee+ce.height+l>o&&(oe.y-=ce.height+l),(0,Yn.Z)(n,{left:"".concat(oe.x,"px"),top:"".concat(oe.y,"px")})},t.prototype.hide=function(){this.onMouseLeave()},t.prototype.destroy=function(){var e=this.get("tooltip");if(e){var r=this.get("container");r||(r=this.get("graph").get("container")),(0,b.isString)(r)&&(r=document.getElementById(r)),r.removeChild(e)}},t}(uo),Ue=he,et=G(86429),Ht=function(c,t,e){if(e||arguments.length===2)for(var r=0,n=t.length,a;rh&&(i=h,a=l)})}e.originalEvent.deltaY>0?a=Math.max(0,a-1):a=Math.min(t.speedAxisY.length-1,a+1);var o=t.speedAxisY[a]-n;r=an(r,[["t",0,o]]),t.speedPoint.setMatrix(r),t.currentSpeed=t.speedAxisY.length-a,t.speedText.attr("text","".concat(t.currentSpeed,".0X")),t.group.emit(ar,{speed:t.currentSpeed,type:t.currentType})}),this.toggleGroup&&this.toggleGroup.on("toggle-model:click",function(e){var r,n,a=e.target.get("isChecked");a?(t.checkedIcon.hide(),t.checkedText.attr("text",((n=t.controllerCfg)===null||n===void 0?void 0:n.timePointControllerText)||"\u5355\u4E00\u65F6\u95F4"),t.currentType=ka.RANGE):(t.checkedIcon.show(),t.checkedText.attr("text",((r=t.controllerCfg)===null||r===void 0?void 0:r.timeRangeControllerText)||"\u65F6\u95F4\u8303\u56F4"),t.currentType=ka.SINGLE),e.target.set("isChecked",!a),t.group.emit(ar,{type:t.currentType,speed:t.currentSpeed})})},c.prototype.destroy=function(){this.speedGroup.off("speed-rect:click"),this.toggleGroup&&(this.toggleGroup.off("toggle-model:click"),this.toggleGroup.destroy()),this.speedGroup.destroy()},c}(),ci=ji,hn=function(){return hn=Object.assign||function(c){for(var t,e=1,r=arguments.length;eK?(Ie.show(),Ye.show(),K=rt.minX+rt.width+10):(Ie.hide(),Ye.hide()),Ie}),this.controllerBtnGroup=new ci(hn({group:this.group,x:this.x,y:this.y+n+25,width:r,height:35},this.controllerCfg)),this.updateStartEnd(0),this.updateUI(),o.move(this.x,this.y),this.bindEvents(),this.currentMode===ka.SINGLE&&(this.minHandlerShape.hide(),this.foregroundShape.hide(),this.minTextShape.hide())},c.prototype.bindEvents=function(){var t=this,e=this.group.find(function(n){return n.get("name")==="minHandlerShape"});e&&(e.on("minHandlerShape-handler:mousedown",this.onMouseDown(this.minHandlerShape)),e.on("minHandlerShape-handler:touchstart",this.onMouseDown(this.minHandlerShape)));var r=this.group.find(function(n){return n.get("name")==="maxHandlerShape"});r&&(r.on("maxHandlerShape-handler:mousedown",this.onMouseDown(this.maxHandlerShape)),r.on("maxHandlerShape-handler:touchstart",this.onMouseDown(this.maxHandlerShape))),this.foregroundShape.on("mousedown",this.onMouseDown(this.foregroundShape)),this.foregroundShape.on("touchstart",this.onMouseDown(this.foregroundShape)),this.group.on("".concat(Tt,":click"),function(){t.isPlay=!t.isPlay,t.currentHandler=t.maxHandlerShape,t.changePlayStatus()}),this.group.on("".concat(Nt,":click"),function(){t.currentHandler=t.maxHandlerShape,t.updateStartEnd(.01),t.updateUI()}),this.group.on("".concat(Lt,":click"),function(){t.currentHandler=t.maxHandlerShape,t.updateStartEnd(-.01),t.updateUI()}),this.group.on(ar,function(n){var a=n.type,i=n.speed;t.currentSpeed=i,t.currentMode=a,a===ka.SINGLE?(t.minHandlerShape.hide(),t.foregroundShape.hide(),t.minTextShape.hide()):a===ka.RANGE&&(t.minHandlerShape.show(),t.foregroundShape.show(),t.minTextShape.show())})},c.prototype.adjustTickIndex=function(t){for(var e=0;e1&&(this.end=1);var e=this.x+this.start*this.width,r=this.x+this.end*this.width;this.foregroundShape.attr("x",e),this.foregroundShape.attr("width",r-e);var n=(0,b.get)(this.handlerStyle,"width",da);this.setText(this.minText,this.maxText);var a=this.dodgeText([e,r]),i=a[0],o=a[1];this.minHandlerShape.setX(e-n/2),(0,b.each)(i,function(u,l){return t.minTextShape.attr(l,u)}),this.maxHandlerShape.setX(r-n/2),(0,b.each)(o,function(u,l){return t.maxTextShape.attr(l,u)}),this.currentMode===ka.RANGE?this.graph.emit(xt,{value:[this.start,this.end].sort()}):this.currentMode===ka.SINGLE&&this.graph.emit(xt,{value:[this.end,this.end]})},c.prototype.dodgeText=function(t){var e,r,n=2,a=(0,b.get)(this.handlerStyle,"width",da),i=this.minTextShape,o=this.maxTextShape,u=t[0],l=t[1],h=!1;u>l&&(e=[l,u],u=e[0],l=e[1],r=[o,i],i=r[0],o=r[1],h=!0);var y=i.getBBox(),D=o.getBBox(),A=null,z=null;return this.timeBarType==="trend"?(A=u-y.widththis.x+this.width?{x:l-a/2-n,textAlign:"right"}:{x:l+a/2+n,textAlign:"left"}):this.timeBarType==="simple"&&(A=i.attr("x")>y.width?{x:u,textAlign:"center"}:{x:u,textAlign:"left"},z=o.attr("x")>this.width-D.width?{x:l,textAlign:"right"}:{x:l,textAlign:"center"}),h?[z,A]:[A,z]},c.prototype.startPlay=function(){var t=this;return typeof window!="undefined"?window.requestAnimationFrame(function(){var e=t,r=e.ticks,n=e.width,a=t.currentSpeed,i=n/r.length,o=i/((10-a)*1e3/60),u=t.adjustOffsetRange(o/t.width);t.updateStartEnd(u),t.updateUI(),t.isPlay&&(t.playHandler=t.startPlay())}):void 0},c.prototype.changePlayStatus=function(t){t===void 0&&(t=!0),this.controllerBtnGroup.playButton.update({isPlay:this.isPlay}),this.isPlay?(this.playHandler=this.startPlay(),this.graph.emit(Be,null)):this.playHandler&&(typeof window!="undefined"&&window.cancelAnimationFrame(this.playHandler),t&&this.graph.emit(Je,null))},c.prototype.destory=function(){this.graph.off(xt,function(){});var t=this.group,e=t.find(function(n){return n.get("name")==="minHandlerShape"});e&&(e.off("minHandlerShape-handler:mousedown"),e.off("minHandlerShape-handler:touchstart"),e.destroy());var r=t.find(function(n){return n.get("name")==="maxHandlerShape"});r&&(r.off("maxHandlerShape-handler:mousedown"),r.off("maxHandlerShape-handler:touchstart"),r.destroy()),this.foregroundShape.off("mousedown"),this.foregroundShape.off("touchstart"),this.foregroundShape.destroy(),t.off("".concat(Tt,":click")),t.off("".concat(Nt,":click")),t.off("".concat(Lt,":click")),t.off(ar),t.destroy(),this.trendComponent&&this.trendComponent.destory()},c}(),jt=Jt,on={opacity:.5,fill:"#000"},na={opacity:.5,fill:"#000",r:5},Ze={fill:"#fff",fontSize:12},Fe=function(){function c(t){var e=t.x,r=e===void 0?0:e,n=t.y,a=n===void 0?0:n,i=t.container,o=t.text,u=t.padding,l=u===void 0?[4,4,4,4]:u,h=t.className,y=h===void 0?"g6-component-timebar-tooltip":h,D=t.backgroundColor,A=D===void 0?"#000":D,z=t.textColor,K=z===void 0?"#fff":z,ee=t.opacity,se=ee===void 0?.8:ee,oe=t.fontSize,ce=oe===void 0?12:oe;this.container=i,this.className=y,this.backgroundColor=A,this.textColor=K,this.x=r,this.y=a,this.text=o,this.padding=l,this.opacity=se,this.fontSize=ce,this.render()}return c.prototype.render=function(){var t=this,e=t.className,r=t.x,n=t.y,a=t.backgroundColor,i=t.textColor,o=t.text,u=t.padding,l=t.opacity,h=t.fontSize,y=t.container,D=(0,Na.Z)("
      '));(0,b.isString)(y)&&(y=document.getElementById(y)),y.appendChild(D),t.parentHeight=y.offsetHeight,t.parentWidth=y.offsetWidth,(0,Yn.Z)(D,{visibility:"hidden",top:0,left:0});var A=(0,Na.Z)(` -
      "));A.innerHTML=o,D.appendChild(A),t.backgroundDOM=A;var z=(0,Na.Z)("
      "));D.appendChild(z),t.arrowDOM=z,t.container=D},c.prototype.show=function(t){var e=this,r=t.text,n=t.x,a=t.y,i=t.clientX,o=t.clientY;e.backgroundDOM.innerHTML=r;var u=e.backgroundDOM.offsetWidth,l=e.backgroundDOM.offsetHeight,h=e.arrowDOM.offsetWidth,y=e.arrowDOM.offsetHeight;(0,Yn.Z)(e.container,{top:"".concat(-l-y,"px"),left:"".concat(n,"px"),visibility:"visible"}),(0,Yn.Z)(e.backgroundDOM,{marginLeft:"".concat(-u/2,"px")}),(0,Yn.Z)(e.arrowDOM,{marginLeft:"".concat(-h/2,"px"),top:"".concat(l,"px")});var D=n-u/2,A=n+u/2;D<0?(0,Yn.Z)(e.backgroundDOM,{marginLeft:"".concat(-u/2-D,"px")}):A>e.parentWidth&&(0,Yn.Z)(e.backgroundDOM,{marginLeft:"".concat(-u/2-A+e.parentWidth+12,"px")})},c.prototype.hide=function(){(0,Yn.Z)(this.container,{top:0,left:0,visibility:"hidden"})},c}(),dt=Fe,kt=function(){return kt=Object.assign||function(c){for(var t,e=1,r=arguments.length;e=Ye&&Er<=rt,lr=fr?h:y,Kt=Ne.addShape("rect",{attrs:kt({x:a+Er*(Me+oe),y:a,width:Me,height:se},lr),draggable:!0,name:"tick-rect-".concat(Er)}),Yr=Ne.addShape("rect",{attrs:{x:a+Er*Me+oe*(2*Er-1)/2,y:a,width:Er===0||Er===ce-1?Me+oe/2:Me+oe,height:se,fill:"#fff",opacity:0},draggable:!0,name:"pick-rect-".concat(Er)});Yr.toFront();var Xr=Kt.getBBox(),qt=(Xr.minX+Xr.maxX)/2;Ie.push({rect:Kt,pickRect:Yr,value:Bt.date,x:qt,y:Xr.minY});var br;if(l?(br=l(Bt),!(0,b.isString)(br)&&br&&(br=Bt.date)):Er%Math.round(ce/10)==0&&(br=Bt.date),br){Pe.push(br);var Nr=Xr.maxY+a*2;Ne.addShape("line",{attrs:{stroke:"#BFBFBF",x1:qt,y1:Nr,x2:qt,y2:Nr+K},name:"tick-line"});var zr=Nr+K+a,Qr=Ne.addShape("text",{attrs:kt({fill:"#8c8c8c",stroke:"#fff",lineWidth:1,x:qt,y:zr,textAlign:"center",text:br,textBaseline:"top",fontSize:10,fontFamily:t.fontFamily||"Arial, sans-serif"},D),capture:!1,name:"tick-label"}),ln=Qr.getBBox();if(ln.maxX>r?Qr.attr("textAlign","right"):ln.minX<0&&Qr.attr("textAlign","left"),(0,b.isNumber)(Ke)&&Pe.length!==10){var Cn=Gt([1,0,0,0,1,0,0,0,1],[["t",-qt,-zr],["r",Ke],["t",qt-5,zr+2]]);Qr.attr({textAlign:"left",matrix:Cn})}Pe.length===1?Qr.attr({textAlign:"left"}):Pe.length===10&&Qr.attr({textAlign:"right"})}}),this.tickRects=Ie;var mt=this.group;this.currentSpeed=1,this.controllerBtnGroup=new ci(kt({group:mt,x:this.x,y:this.y+n+5,width:r,height:40,hideTimeTypeController:!0,speed:this.currentSpeed,fontFamily:this.fontFamily||"Arial, sans-serif"},this.controllerCfg))},c.prototype.initEvent=function(){var t=this,e=this.sliceGroup;e.on("click",function(h){var y=h.target;if(!(y.get("type")!=="rect"||!y.get("name"))){var D=parseInt(y.get("name").split("-")[2],10);if(!isNaN(D)){var A=t.tickRects,z=t.unselectedTickStyle;A.forEach(function(oe){oe.rect.attr(z)});var K=t.selectedTickStyle;A[D].rect.attr(K),t.startTickRectId=D,t.endTickRectId=D;var ee=A.length,se=D/ee;t.graph.emit(xt,{value:[se,se]})}}}),e.on("dragstart",function(h){var y=t.tickRects,D=t.unselectedTickStyle;y.forEach(function(oe){oe.rect.attr(D)});var A=h.target,z=parseInt(A.get("name").split("-")[2],10),K=t.selectedTickStyle;y[z].rect.attr(K),t.startTickRectId=z;var ee=y.length,se=z/ee;t.graph.emit(xt,{value:[se,se]}),t.dragging=!0}),e.on("dragover",function(h){if(!!t.dragging&&h.target.get("type")==="rect"){for(var y=parseInt(h.target.get("name").split("-")[2],10),D=t.startTickRectId,A=t.tickRects,z=t.selectedTickStyle,K=t.unselectedTickStyle,ee=0;ee=D&&ee<=y?z:K;A[ee].rect.attr(se)}var oe=A.length;t.endTickRectId=y;var ce=D/oe,Me=y/oe;t.graph.emit(xt,{value:[ce,Me]})}}),e.on("drop",function(h){if(!!t.dragging&&(t.dragging=!1,h.target.get("type")==="rect")){var y=t.startTickRectId,D=parseInt(h.target.get("name").split("-")[2],10);if(!(D0?e.endTickRectId++:(r[e.endTickRectId].rect.attr(a),e.endTickRectId--),o!==e.startTickRectId)e.endTickRectId
      ")),(0,Yn.Z)(l,{position:"relative"})),u.appendChild(l),this.set("timeBarContainer",l);var h,y=e.get("renderer");y==="SVG"?h=new Ns.Canvas({container:l,width:n,height:a}):h=new so.Canvas({container:l,width:n,height:a}),this.get("containerCSS")&&(0,Yn.Z)(l,this.get("containerCSS")),this.set("canvas",h)},t.prototype.init=function(){this.initContainer();var e=this.get("canvas"),r=e.addGroup({name:"timebar-group"});this.set("timeBarGroup",r),this.renderTrend(),this.initEvent();var n=typeof window!="undefined"&&window.getComputedStyle(document.body,null).getPropertyValue("font-family")||"Arial, sans-serif";this.set("fontFamily",n)},t.prototype.play=function(){this.togglePlay(!0)},t.prototype.pause=function(){this.togglePlay(!1)},t.prototype.togglePlay=function(e){var r=this.get("timebar");!r||(r.isPlay=!!e,r.changePlayStatus())},t.prototype.renderTrend=function(){var e=this,r=this._cfgs,n=r.width,a=r.x,i=r.y,o=r.padding,u=r.type,l=r.trend,h=r.slider,y=r.controllerCfg,D=r.textStyle,A=r.tick,z=r.backgroundStyle,K=r.foregroundStyle,ee=l.data,se=Pt(l,["data"]),oe=n-2*o,ce=u==="trend"?gr:Ut,Me=this.get("graph"),Ne=this.get("timeBarGroup"),Ie=this.get("canvas"),Pe=null;if(u==="trend"||u==="simple"){var Ye=this.get("getValue");Pe=new jt(je(je({graph:Me,canvas:Ie,group:Ne,type:u,x:a+o,y:u==="trend"?i+o:i+o+15,width:oe,height:ce,padding:o,backgroundStyle:z,foregroundStyle:K,trendCfg:je(je({},se),{data:ee.map(function(Ke){return(Ye==null?void 0:Ye(Ke))||Ke.value})})},h),{tick:{ticks:ee,tickLabelFormatter:A.tickLabelFormatter,tickLabelStyle:A.tickLabelStyle,tickLineStyle:A.tickLineStyle},handlerStyle:je(je({},h.handlerStyle),{height:h.height||ce}),controllerCfg:y,textStyle:D}))}else u==="tick"&&(Pe=new He(je({graph:Me,canvas:Ie,group:Ne,x:a+o,y:i+o,width:n,height:42,padding:2,controllerCfg:y},A)));var rt=function Ke(){var mt=e.get("timebar");mt.draggingHandler=!1,mt.isPlay&&(mt.isPlay=!1,mt.currentHandler=mt.maxHandlerShape,mt.changePlayStatus()),document.removeEventListener("mouseup",Ke)};Ie.on("mousedown",function(Ke){(Ke.target.get("name")==="maxHandlerShape-handler"||Ke.target.get("name")==="minHandlerShape-handler"||Ke.target===Pe.foregroundShape)&&document.addEventListener("mouseup",rt)}),this.set("timebar",Pe)},t.prototype.filterData=function(e){var r,n=e.value;if(!n){n=[];var a=this._cfgs.type;!a||a==="trend"||a==="simple"?(n[0]=this._cfgs.slider.start,n[1]=this._cfgs.slider.end):a==="tick"&&(n[0]=this._cfgs.tick.start,n[1]=this._cfgs.tick.end)}var i=null,o=this._cfgs.type;if(o==="trend"||o==="simple"?i=this._cfgs.trend.data:o==="tick"&&(i=this._cfgs.tick.data),!i||i.length===0){console.warn("\u8BF7\u914D\u7F6E TimeBar \u7EC4\u4EF6\u7684\u6570\u636E");return}var u=this.get("rangeChange"),l=this.get("graph"),h=Math.round(i.length*n[0]),y=Math.round(i.length*n[1]);y=y>=i.length?i.length-1:y,h=h>=i.length?i.length-1:h;var D=(r=this._cfgs.tick)===null||r===void 0?void 0:r.tickLabelFormatter,A=D?D(i[h]):i[h].date,z=D?D(i[y]):i[y].date;if(o!=="tick"){var K=this.get("timebar");K.setText(A,z)}if(u)u(l,A,z);else{(!this.cacheGraphData||this.cacheGraphData.nodes&&this.cacheGraphData.nodes.length===0)&&(this.cacheGraphData=l.get("data"));var ee=this.get("filterItemTypes"),se=this.get("changeData"),oe=this.get("getDate"),ce=this.get("shouldIgnore"),Me=i[h].date,Ne=i[y].date;if(se||se===void 0){var Ie=this.cacheGraphData.nodes,Pe=this.cacheGraphData.edges,Ye={},rt={};l.getNodes().forEach(function(Ke){return Ye[Ke.getID()]=!0}),l.getEdges().forEach(function(Ke){return rt[Ke.getID()]=!0}),ee.includes("node")&&(Ie.forEach(function(Ke){var mt=+((oe==null?void 0:oe(Ke))||Ke.date),Bt=mt>=Me&&mt<=Ne||(ce==null?void 0:ce("node",Ke,{min:Me,max:Ne})),Er=Ye[Ke.id];Er&&!Bt?(l.removeItem(Ke.id),Ye[Ke.id]=!1):!Er&&Bt&&(l.addItem("node",Ke),Ye[Ke.id]=!0)}),Pe==null||Pe.forEach(function(Ke){var mt=Ye[Ke.source]&&Ye[Ke.target]||(ce==null?void 0:ce("edge",Ke,{min:Me,max:Ne})),Bt=!!l.findById(Ke.id);Bt&&!mt?(l.removeItem(Ke.id),rt[Ke.id]=!1):!Bt&&mt?(l.addItem("edge",Ke),rt[Ke.id]=!0):Bt||(rt[Ke.id]=!1)})),(this.get("filterEdge")||ee.includes("edge"))&&(Pe==null||Pe.filter(function(Ke){var mt=+((oe==null?void 0:oe(Ke))||Ke.date),Bt=mt>=Me&&mt<=Ne||(ce==null?void 0:ce("edge",Ke,{min:Me,max:Ne})),Er=Ye[Ke.source]&&Ye[Ke.target],fr=Bt&&Er,lr=rt[Ke.id];lr&&!fr?(rt[Ke.id]=!1,l.removeItem(Ke.id)):!lr&&fr&&(rt[Ke.id]=!0,l.addItem("edge",Ke))}))}else ee.includes("node")&&l.getNodes().forEach(function(Ke){var mt=Ke.getModel();if(!(ce==null?void 0:ce("node",mt,{min:Me,max:Ne}))){var Bt=+((oe==null?void 0:oe(mt))||mt.date);BtNe?l.hideItem(Ke):l.showItem(Ke)}}),(this.get("filterEdge")||ee.includes("edge"))&&l.getEdges().forEach(function(Ke){var mt=Ke.getModel();if(!(ce==null?void 0:ce("edge",mt,{min:i[h].date,max:i[y].date}))){var Bt=+((oe==null?void 0:oe(mt))||mt.date);if(Bti[y].date)l.hideItem(Ke);else{var Er=Ke.getSource().isVisible(),fr=Ke.getTarget().isVisible();Er&&fr&&l.showItem(Ke)}}})}},t.prototype.initEvent=function(){var e=this.get("graph");e.on("afterchangedata",this.changeData),e.on("afterrender",this.afterrenderListener),e.on(xt,this.valueChangeListener)},t.prototype.destroy=function(){var e=this.get("graph");e.off("afterchangedata",this.changeData),e.off("afterrender",this.afterrenderListener),e.off(xt,this.valueChangeListener);var r=this.get("timebar");r&&r.destory&&r.destory(),c.prototype.destroy.call(this);var n=this.get("timeBarContainer");if(n){var a=this.get("container");a||(a=this.get("graph").get("container")),(0,b.isString)(a)&&(a=document.getElementById(a)),a.removeChild(n)}},t}(uo),ur=yr,Dr=function(){var c=function(e,r){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},c(e,r)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");c(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),pn=Ni.applyMatrix;function Xn(c,t){var e,r;if(c.naturalWidth)e=c.naturalWidth,r=c.naturalHeight;else{var n=new Image;n.src=c.src,n.onload=function(){t&&t(n.width,n.height)}}return[e,r]}var cn=function(c){Dr(t,c);function t(e){return c.call(this,e)||this}return t.prototype.getDefaultCfgs=function(){return{container:null,className:"g6-minimap",viewportClassName:"g6-minimap-viewport",width:200,delegateStyle:{fill:"#40a9ff",stroke:"#096dd9"},refresh:!0}},t.prototype.getEvents=function(){return{beforepaint:"updateViewport",beforeanimate:"disableRefresh",afteranimate:"enableRefresh",viewportchange:"disableOneRefresh"}},t.prototype.disableRefresh=function(){this.set("refresh",!1)},t.prototype.enableRefresh=function(){this.set("refresh",!0),this.updateCanvas()},t.prototype.disableOneRefresh=function(){this.set("viewportChange",!0)},t.prototype.initViewport=function(){var e=this,r=this._cfgs,n=r.graph;if(!this.destroyed){var a=this.get("container");(0,b.isString)(a)&&(a=document.getElementById(a));var i=(0,Na.Z)("
      oe||A>ce||(K=n.getZoom(),z=e.get("ratio"),l=!0,o=ee.clientX,u=ee.clientY)}},!1),a.addEventListener("mousemove",function(ee){if(!(!l||(0,b.isNil)(ee.clientX)||(0,b.isNil)(ee.clientY))){var se=e.get("width"),oe=e.get("height"),ce=i.style;h=parseInt(ce.left,10),y=parseInt(ce.top,10),D=parseInt(ce.width,10),A=parseInt(ce.height,10);var Me=o-ee.clientX,Ne=u-ee.clientY;h-Me<0?Me=h:h-Me+D>=se&&(Me=0),y-Ne<0?Ne=y:y-Ne+A>=oe&&(Ne=0),h-=Me,y-=Ne,(0,Yn.Z)(i,{left:"".concat(h,"px"),top:"".concat(y,"px")}),n.translate(Me*K/z,Ne*K/z),o=ee.clientX,u=ee.clientY}},!1),a.addEventListener("mouseleave",function(){l=!1,r.refresh=!0},!1),a.addEventListener("mouseup",function(){l=!1,r.refresh=!0},!1),this.set("viewport",i),a.appendChild(i)}},t.prototype.updateViewport=function(){if(!this.destroyed){var e=this.get("ratio"),r=this.get("width"),n=this.get("height"),a=this.get("graph"),i=a.get("width"),o=a.get("height"),u=i/o,l=a.getGroup(),h=l.getCanvasBBox(),y=[(h.minX+h.maxX)/2,(h.minY+h.maxY)/2],D=[h.maxX-h.minX,h.maxY-h.minY],A={centerX:y[0],centerY:y[1],width:0,height:0,minX:0,minY:0};h[0]/h[1]>u?(A.width=D[0],A.height=A.width/u):(A.height=D[1],A.width=A.height*u),A.minX=y[0]-A.width/2,A.minY=y[1]-A.height/2;var z=l.getMatrix();z||(z=[1,0,0,0,1,0,0,0,1]);var K=yi.invert([1,0,0,0,1,0,0,0,1],z),ee=pn({x:A.minX,y:A.minY},K),se=a.getCanvasByPoint(ee.x,ee.y),oe=this.get("viewport");oe||this.initViewport();var ce=i/A.width,Me=ce*r,Ne=ce*n,Ie=r*-se.x/A.width,Pe=n*-se.y/A.height,Ye=Ie+Me,rt=Pe+Ne;Ie<0&&(Me+=Ie,Ie=0),Ye>r&&(Me=Me-(Ye-r)),Pe<0&&(Ne+=Pe,Pe=0),rt>n&&(Ne=Ne-(rt-n)),this.set("ratio",e);var Ke="".concat(Ie,"px"),mt="".concat(Pe,"px");(0,Yn.Z)(oe,{left:Ke,top:mt,width:"".concat(Me,"px"),height:"".concat(Ne,"px")})}},t.prototype.init=function(){this.initContainer()},t.prototype.initContainer=function(){var e=this,r=e.get("graph"),n=r.get("width"),a=r.get("height"),i=a/n,o=e.get("className"),u=e.get("container"),l=e.get("width"),h=e.get("height");!l&&!h&&(l=200),l?(h=i*l,e.set("height",h)):(l=1/i*h,e.set("width",l));var y=(0,Na.Z)("
      "));(0,b.isString)(u)&&(u=document.getElementById(u)),u?u.appendChild(y):r.get("container").appendChild(y),e.set("container",y);var D=(0,Na.Z)('
      ');y.appendChild(D);var A=(0,Na.Z)('');D.appendChild(A),e.set("containerDOM",D),e.set("containerSpan",A);var z=(0,Na.Z)(''));e.set("imgDOM",z),e.updateImgSize(),A.appendChild(z),e.updateCanvas()},t.prototype.updateImgSize=function(){var e=this,r=e.get("imgDOM"),n=e.get("width"),a=e.get("height");r.onload=function(){var i=Xn(r);i[0]>i[1]?r.width=n:r.height=a}},t.prototype.updateCanvas=function(){var e=this.get("refresh");if(!!e){var r=this.get("graph");if(!r.get("destroyed")){this.get("viewportChange")&&(this.set("viewportChange",!1),this.updateViewport());var n=this.get("width"),a=r.get("canvas").getCanvasBBox(),i=a.width,o=n/i;this.set("ratio",o),this.updateViewport()}}},t.prototype.getViewport=function(){return this.get("viewport")},t.prototype.getContainer=function(){return this.get("container")},t.prototype.updateGraphImg=function(e){var r=this,n=r.get("imgDOM");n.remove(),r.set("graphImg",e);var a=(0,Na.Z)(''));r.set("imgDOM",a),a.src=e,r.updateImgSize();var i=r.get("containerSpan");i.appendChild(a),r.updateCanvas()},t.prototype.destroy=function(){var e=this.get("container");e.parentNode.removeChild(e)},t}(uo),In=cn,zn=function(){var c=function(e,r){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},c(e,r)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");c(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),ma=function(){return ma=Object.assign||function(c){for(var t,e=1,r=arguments.length;e(l||n.get("height"))&&a>1||y<(h||n.get("height")*.05)&&a<1)&&(a=1),y*=a,r.set("r",y),r.filter(e)}},t.prototype.filter=function(e){var r=this,n=r.get("graph"),a=n.getNodes(),i={},o=r.get("r"),u=r.get("type"),l={x:e.x,y:e.y};r.updateDelegate(l,o);var h=r.get("shouldShow"),y=r.get("vShapes");y&&y.forEach(function(se){se.remove(),se.destroy()}),y=[],a.forEach(function(se){var oe=se.getModel(),ce=oe.x,Me=oe.y;li({x:ce,y:Me},l)
      `);o.appendChild(u),this.set("container",u);var l=this.render();(0,Yn.Z)(u,this.getContainerPos(l)),this.bindEvents()},t.prototype.getContainerPos=function(e){e===void 0&&(e=[0,0]);var r=this,n=r.get("graph"),a=this.get("offsetX"),i=this.get("offsetY"),o=this.get("margin"),u=this.get("position").split("-"),l={top:0,right:1,bottom:2,left:3},h=0,y=0,D={left:(n.getWidth()-e[0])/2+h,top:(n.getHeight()-e[1])/2+y};return u.forEach(function(A){var z=o[l[A]],K=A;switch(A){case"top":z+=y;break;case"left":z+=h;break;case"bottom":z=n.getHeight()-e[1]-z+y,K="top";break;default:z=n.getWidth()-e[0]-z+h,K="left";break}D[K]=z}),D.top+=i+n.getContainer().offsetTop,D.left+=a+n.getContainer().offsetLeft,Object.keys(D).forEach(function(A){D[A]="".concat(D[A],"px")}),D},t.prototype.bindEvents=function(){var e=this,r=e.get("filter");if(!(!r||!r.enable)){var n=r.trigger||"click";Eh.includes(n)||(console.warn("Trigger for legend filterling must be 'click' or 'mouseenter', 'click' will take effect by default."),n="click");var a=e.get("legendCanvas");n==="mouseenter"?(a.on("node-container:mouseenter",function(i){return e.filterData(i)}),a.on("node-container:mouseleave",function(i){e.clearFilter(),e.clearActiveLegend()})):(a.on("node-container:click",function(i){return e.filterData(i)}),a.on("click",function(i){i.target&&i.target.isCanvas&&i.target.isCanvas()&&(e.clearFilter(),e.clearActiveLegend())}))}},t.prototype.changeData=function(e){this.set("data",e);var r=this.render();(0,Yn.Z)(this.get("container"),this.getContainerPos(r))},t.prototype.activateLegend=function(e){var r=this.get("filter"),n=r==null?void 0:r.multiple;n||this.clearActiveLegend();var a=e.get("parent");a.get("active")?(a.set("active",!1),this.findLegendItemsByState("active").length&&a.set("inactive",!0)):(a.set("inactive",!1),a.set("active",!0)),this.findLegendItemsByState("active").length?this.findLegendItemsByState("active","all",!1).forEach(function(y){y.set("inactive",!0)}):this.clearActiveLegend();var i=(r==null?void 0:r.legendStateStyles)||{},o=(i==null?void 0:i.inactive)||{opacity:.5,"text-shape":{opacity:.5}},u=o["text-shape"]||{};this.findLegendItemsByState("inactive").forEach(function(y){var D=y.get("children"),A=D[0],z=D[1];A.attr(xi(xi({},A.get("oriAttrs")),o)),z.attr(xi(xi({},z.get("oriAttrs")),u))});var l=(i==null?void 0:i.active)||{stroke:"#000",lineWidth:2,"text-shape":{fontWeight:"bold"}},h=l["text-shape"]||{};this.findLegendItemsByState("active").forEach(function(y){var D=y.get("children"),A=D[0],z=D[1];A.attr(xi(xi({},A.get("oriAttrs")),l)),z.attr(xi(xi({},z.get("oriAttrs")),h))})},t.prototype.findLegendItemsByState=function(e,r,n){r===void 0&&(r="all"),n===void 0&&(n=!0);var a=this.get("legendCanvas").find(function(u){return u.get("name")==="root"}),i=a.find(function(u){return u.get("name")==="node-group"}),o=a.find(function(u){return u.get("name")==="edge-group"});return r==="node"?i.get("children").filter(function(u){return!!u.get(e)===n}):r==="edge"?o.get("children").filter(function(u){return!!u.get(e)===n}):i.get("children").filter(function(u){return!!u.get(e)===n}).concat(o.get("children").filter(function(u){return!!u.get(e)===n}))},t.prototype.clearActiveLegend=function(){var e=this.get("legendCanvas"),r=e.find(function(a){return a.get("name")==="root"}),n=[r.find(function(a){return a.get("name")==="node-group"}),r.find(function(a){return a.get("name")==="edge-group"})];n.forEach(function(a){a.get("children").forEach(function(i){i.set("active",!1),i.set("inactive",!1);var o=i.get("children"),u=o[0],l=o[1];u.attr(u.get("oriAttrs")),l.attr(l.get("oriAttrs"))})})},t.prototype.filterData=function(e){var r=this.get("filter"),n=r==null?void 0:r.filterFunctions;if(!(!r||!n)){var a=this.get("legendCanvas"),i=this.get("graph"),o=r.graphActiveState||"active",u=r.graphInactiveState||"inactive",l=r.multiple;this.clearFilter(),l||this.clearActiveLegend(),this.activateLegend(e.target);var h=a.find(function(se){return se.get("name")==="root"}),y=h.find(function(se){return se.get("name")==="node-group"}),D=h.find(function(se){return se.get("name")==="edge-group"}),A=y.get("children").filter(function(se){return se.get("active")}),z=D.get("children").filter(function(se){return se.get("active")}),K=0,ee=["getNodes","getEdges"];ee.forEach(function(se){i[se]().forEach(function(oe){var ce=!1,Me=se==="getNodes"?A:z;Me.forEach(function(Ne){var Ie=n[Ne.get("id")];ce=ce||Ie(oe.getModel())}),ce?(i.setItemState(oe,u,!1),i.setItemState(oe,o,!0),K++):(i.setItemState(oe,o,!1),i.setItemState(oe,u,!0))})}),K||ee.forEach(function(se){i[se]().forEach(function(oe){i.clearItemStates(oe,[u])})})}},t.prototype.clearFilter=function(){var e=this.get("graph"),r=this.get("filter");if(!!r){var n=r.graphActiveState||"active",a=r.graphInactiveState||"inactive";e.getNodes().forEach(function(i){e.clearItemStates(i,[n,a])}),e.getEdges().forEach(function(i){e.clearItemStates(i,[n,a])})}},t.prototype.render=function(){var e=this;this.processData();var r=this.get("legendCanvas");r?r.clear():r=new so.Canvas({container:this.get("container"),width:200,height:200});var n=r.addGroup({name:"root"}),a=n.addGroup({name:"node-group"}),i=n.addGroup({name:"edge-group"});this.set("legendCanvas",r);var o=this.get("itemsData"),u=["nodes","edges"],l=[a,i];u.forEach(function(Kt,Yr){o[Kt].forEach(function(Xr){var qt,br=l[Yr].addGroup({id:Xr.id,name:"node-container"}),Nr,zr=Xr.type,Qr=e.getShapeSize(Xr),ln=Qr.width,Cn=Qr.height,Pn=Qr.r,ba=e.getStyle(Kt.substr(0,4),Xr);switch(Xr.type){case"circle":Nr={r:Pn,x:0,y:0};break;case"rect":Nr={width:ln,height:Cn,x:-ln/2,y:-Cn/2};break;case"ellipse":Nr={rx:ln,ry:Cn,x:0,y:0},zr="ellipse";break;case"line":Nr={x1:-ln/2,y1:0,x2:ln/2,y2:0},zr="line";break;case"quadratic":Nr={path:[["M",-ln/2,0],["Q",0,ln/2,ln/2,0]]},zr="path";break;case"cubic":Nr={path:[["M",-ln/2,0],["C",-ln/6,ln/2,ln/6,-ln/2,ln/2,0]]},zr="path";break;case"diamond":Nr={path:[["M",0,-Cn],["L",ln,0],["L",0,Cn],["L",-ln,0],["Z"]]},zr="path";break;case"triangle":Nr={path:[["M",-ln,Cn],["L",0,-Cn],["L",ln,Cn],["Z"]]},zr="path";break;case"star":Nr={path:Ni.getStarPath(Pn*3,Pn*1.2)},zr="path";break;default:Nr={r:Pn,x:0,y:0};break}var ea=br.addShape(zr,{attrs:xi(xi({},Nr),ba),name:"".concat(Xr.type,"-node-keyShape"),oriAttrs:xi({opacity:1},ba)});if(Xr.label){var ha=ea.getBBox(),Ia=((qt=Xr.labelCfg)===null||qt===void 0?void 0:qt.style)||{},Ja=xi({textAlign:"begin",fontSize:12,textBaseline:"middle",fill:"#000",opacity:1,fontWeight:"normal"},Ia);br.addShape("text",{attrs:xi({x:ha.maxX+4,y:0,text:Xr.label},Ja),className:"legend-label",name:"".concat(Xr.type,"-node-text"),oriAttrs:Ja})}})});var h=this.get("padding"),y,D=n.find(function(Kt){return Kt.get("name")==="title-container"}),A={height:0,maxY:0,width:0};if(this.get("title")){D||(D=n.addGroup({name:"title-container"}));var z={fontSize:20,fontFamily:"Arial",fontWeight:300,textBaseline:"top",textAlign:"center",fill:"#000",x:0,y:h[0]},K=this.get("titleConfig")||{},ee=Object.assign(z,K.style||{});y=D.addShape("text",{attrs:xi({text:this.get("title")},ee)}),A=D.getCanvasBBox(),D.setMatrix([1,0,0,0,1,0,K.offsetX,K.offsetY,1])}this.layoutItems();var se=n.getCanvasBBox(),oe=a.getCanvasBBox(),ce=oe.minX<0?Math.abs(oe.minX)+h[3]:h[3],Me=A.maxYy.max&&(y.max=o[0]),mt>D&&(D=mt),Me.setMatrix([1,0,0,0,1,0,Bt,Er,1])});var A=y.max-y.min,z={min:0,max:-Infinity},K=l.getCanvasBBox();o[0]=0,o[1]=a==="vertical"?K.maxX+r:K.maxY+n,h.get("children").forEach(function(Me,Ne){Ne===0&&(z.min=o[0]);var Ie=Me.get("children")[0],Pe=Me.getCanvasBBox(),Ye=Ie.getBBox(),rt=Ye.width,Ke=Ye.height,mt=0,Bt=0;a==="vertical"?(mt=o[1],Bt=o[0],o[0]=Bt+Pe.height+n,Me.setMatrix([1,0,0,0,1,0,0,Bt+Ke/2,1])):(mt=o[0],Bt=o[1],o[0]=mt+Pe.width+r,Me.setMatrix([1,0,0,0,1,0,mt+rt/2,0,1])),o[0]>z.max&&(z.max=o[0])});var ee=z.max-z.min;if(i&&i!==""&&i!=="left"){var se=A-ee,oe=i==="center"?Math.abs(se)/2:Math.abs(se),ce=se<0?l:h;ce.get("children").forEach(function(Me){var Ne=Me.getMatrix()||[1,0,0,0,1,0,0,0,1];a==="vertical"?Ne[7]+=oe:Ne[6]+=oe,Me.setMatrix(Ne)})}},t.prototype.processData=function(){var e=this.get("data"),r={nodes:[],edges:[]};e.nodes&&(e.nodes.sort(function(n,a){return n.order-a.order}),e.nodes.forEach(function(n){var a,i,o,u,l,h=n.size||[((a=n.style)===null||a===void 0?void 0:a.width)||((i=n.style)===null||i===void 0?void 0:i.r)||8,((o=n.style)===null||o===void 0?void 0:o.height)||((u=n.style)===null||u===void 0?void 0:u.r)||8],y=((l=n.labelCfg)===null||l===void 0?void 0:l.style)||{};r.nodes.push({id:n.id||(0,b.uniqueId)(),type:n.type||"circle",style:xi({},n.style),order:n.order,label:n.label,itemType:"node",size:h,labelCfg:{position:"right",style:xi({fontFamily:"Arial"},y)}})})),e.edges&&(e.edges.sort(function(n,a){return n.order-a.order}),e.edges.forEach(function(n){var a,i,o=n.type||"line";n.type==="cubic-horizontal"&&(o="cubic");var u=((a=n.labelCfg)===null||a===void 0?void 0:a.style)||{},l=n.size||[((i=n.style)===null||i===void 0?void 0:i.width)||8,1];r.edges.push({id:n.id||(0,b.uniqueId)(),type:o,size:l,style:xi({lineWidth:(0,b.isArray)(l)?l[1]:1},n.style),order:n.order,label:n.label,itemType:"edge",labelCfg:{position:"right",style:xi({fontFamily:"Arial"},u)}})})),this.set("itemsData",r)},t.prototype.getContainer=function(){return this.get("container")},t.prototype.formatArray=function(e){var r=this.get(e);if((0,b.isNumber)(r))this.set(e,[r,r,r,r]);else if((0,b.isArray)(r))switch(r.length){case 0:this.set(e,[0,0,0,0]);break;case 1:this.set(e,[r[0],r[0],r[0],r[0]]);break;case 2:this.set(e,[r[0],r[1],r[0],r[1]]);break;case 3:this.set(e,[r[0],r[1],r[2],r[1]]);break;default:break}return this.get(e)},t.prototype.getShapeSize=function(e){var r,n,a;return e.size&&((0,b.isArray)(e.size)?(r=e.size[0],n=e.size[1]||e.size[0],a=e.size[0]/2):(0,b.isNumber)(e.size)&&(r=e.size,n=e.size,a=e.size/2)),e.style&&(e.style.width&&(r=e.style.width),e.style.height&&(n=e.style.height),e.style.r&&(a=e.style.r)),a||(a=5),r||(r=a),n||(n=a),{width:r,height:n,r:a}},t.prototype.getStyle=function(e,r){var n=e==="node"?{fill:"#ccc",lineWidth:0}:{stroke:"#000",lineWidth:1};return xi(xi({},n),r.style||{})},t.prototype.destroy=function(){var e=this.get("legendCanvas");e==null||e.destroy();var r=this.get("graph"),n=r.get("container"),a=this.get("container");n.removeChild(a)},t}(uo),xh=bh,wh=function(){var c=function(e,r){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},c(e,r)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");c(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Es=function(){return Es=Object.assign||function(c){for(var t,e=1,r=arguments.length;e+

      ":"

      -

      ",D=r?"":"

      ".concat(u,"

      "),A="

      x

      ",z=r?"".concat(h,"px"):"".concat(h,"px ").concat(h,"px 0 0");return'
      -
      -

      `).concat(i,`

      - `).concat(y,` - `).concat(A,` -
      - `).concat(D,` -
      `)}},t.prototype.init=function(){var e=this;if(!e.destroyed){var r=e.get("graph"),n=r.getContainer(),a=e.get("container"),i=this.get("containerCfg");i?(a=this.createContainer(),n.appendChild(a)):a=n,this.set("container",a);var o=n.getBoundingClientRect(),u=new so.Canvas({container:n,width:o.right-o.left,height:o.bottom-o.top});(0,Yn.Z)(u.get("el"),{position:"absolute",top:0,left:0,pointerEvents:"none"}),window.addEventListener("resize",(0,b.debounce)(function(){return e.resizeCanvas(e)},100));var l=u.addGroup({id:"annotation-link-group"});e.set("linkGroup",l),e.set("canvas",u),e.get("getTitle")||e.set("getTitle",function(y){var D,A=((D=y==null?void 0:y.getModel)===null||D===void 0?void 0:D.call(y))||{},z=A.label,K=A.id;return z||K||"-"}),e.get("getContent")||e.set("getContent",function(y){var D,A;if(!y)return"-";var z=((D=y.getModel)===null||D===void 0?void 0:D.call(y))||{},K=z.label,ee=z.id,se=(A=y.getType)===null||A===void 0?void 0:A.call(y),oe=se?"".concat(se,": "):"";return"".concat(oe).concat(K||ee||"")});var h=e.get("defaultData");h&&this.readData(h)}},t.prototype.createContainer=function(){var e=this;if(!this.destroyed){var r=this.get("containerCfg"),n=this.get("graph"),a=n.getContainer(),i=a.getBoundingClientRect(),o=i.left,u=i.right,l=i.top,h=i.bottom,y=h-l,D=u-o,A=r.position,z=A===void 0?"top":A,K=r.offsetX,ee=K===void 0?0:K,se=r.offsetY,oe=se===void 0?0:se,ce=vd(r,["position","offsetX","offsetY"]),Me=r.height,Ne=Me===void 0?"fit-content":Me,Ie=r.width,Pe=Ie===void 0?n.getWidth():Ie;Ne==="100%"&&(Ne=y),Pe==="100%"&&(Pe=D);var Ye="unset",rt="unset",Ke={};switch(z){case"right":Ye="".concat(y,"px"),Ke={top:0,right:0},Ke.right+=o+ee,Ke.top+=l+oe;break;case"bottom":rt="".concat(D,"px"),Ke={bottom:0,left:0},Ke.left+=o+ee,Ke.bottom+=l+oe;break;case"top":rt="".concat(D,"px");case"left":Ye="".concat(y,"px");default:Ke={top:0,left:0},Ke.left+=o+ee,Ke.top+=l+oe;break}Object.keys(Ke).forEach(function(Bt){Ke[Bt]="".concat(Ke[Bt],"px")});var mt=(0,Na.Z)("
      "));return(0,Yn.Z)(mt,Es(Es({position:"absolute",display:z==="top"||z==="bottom"?"inline-flex":"unset",width:(0,b.isNumber)(Pe)?"".concat(Pe,"px"):Pe,height:(0,b.isNumber)(Ne)?"".concat(Ne,"px"):Ne,maxHeight:Ye,maxWidth:rt,overflow:"scroll"},Ke),ce)),a.appendChild(mt),mt.addEventListener("scroll",function(Bt){e.updateLinks()}),mt}},t.prototype.resizeCanvas=function(e){clearTimeout(e.resizeTimer),e.resizeTimer=setTimeout(function(){if(!(!e||e.destroyed)){var r=e.get("container").getBoundingClientRect(),n=r.right-r.left,a=r.bottom-r.top;e.get("canvas").changeSize(n,a),e.updateOutsideCards(e)}},250)},t.prototype.updateOutsideCards=function(e){var r=e||this,n=r.get("cardInfoMap")||{},a=r.get("graph"),i=a.getPointByCanvas(0,0),o=a.getPointByCanvas(a.getWidth(),a.getHeight()),u=a.getClientByPoint(i.x,i.y),l=u.x,h=u.y,y=a.getClientByPoint(o.x,o.y),D=y.x,A=y.y;Object.values(n).forEach(function(z){var K=z.card;if(!!K){var ee=K.style,se=uc(ee.left),oe=uc(ee.top),ce=K.getBoundingClientRect(),Me=ce.width,Ne=ce.height,Ie=se,Pe=oe;se+Me>D-l&&(Ie=D-l-Me),se<0&&(Ie=0),oe+Ne>A-h&&(Pe=A-h-Ne),oe<0&&(Pe=0),(0,Yn.Z)(K,{left:"".concat(Ie,"px"),top:"".concat(Pe,"px")})}}),r.updateLinks()},t.prototype.showAnnotation=function(e){if(!this.destroyed){var r=e.item;this.toggleAnnotation(r)}},t.prototype.hideCards=function(){var e=this;if(!e.destroyed){var r=e.get("cardInfoMap")||{};Object.keys(r).forEach(function(n){e.hideCard(n)})}},t.prototype.toggleAnnotation=function(e,r){var n,a;r===void 0&&(r={});var i=this;if(!i.destroyed){var o=i.get("cardInfoMap")||{},u=i.get("graph"),l=i.get("container"),h=i.get("containerCfg"),y=Object.assign({},i.get("cardCfg")||{},r),D=y.minHeight,A=y.minWidth,z=y.width,K=y.height,ee=y.collapsed,se=ee===void 0?!1:ee,oe=y.x,ce=y.y,Me=y.title,Ne=y.content,Ie=y.maxTitleLength,Pe=y.defaultBegin,Ye=vd(y,["minHeight","minWidth","width","height","collapsed","x","y","title","content","maxTitleLength","defaultBegin"]),rt=i.get("linkGroup"),Ke=this.get("rows")||[[]],mt=(n=e.isCanvas)===null||n===void 0?void 0:n.call(e),Bt=mt?gd:e.getID(),Er=o[Bt]||{},fr=Er.card,lr=Er.link,Kt=Er.x,Yr=Er.y,Xr=Er.title,qt=Er.content,br=this.get("getTitle"),Nr=this.get("getContent"),zr=this.get("getContentPlaceholder")||function(){return""},Qr=this.get("getTitlePlaceHolder")||function(){return""},ln=zr(e),Cn=Qr(e),Pn=(0,Na.Z)(this.getDOMContent(Es({itemId:Bt,collapsed:se,title:((a=Xr||Me||(br==null?void 0:br(e)))===null||a===void 0?void 0:a.substr(0,Ie))||Cn,content:qt||Ne||(Nr==null?void 0:Nr(e))||ln},Ye))),ba=(0,b.isNumber)(D)?"".concat(D,"px"):D;(0,Yn.Z)(Pn,{minHeight:se?"unset":ba,minWidth:(0,b.isNumber)(A)?"".concat(A,"px"):A,height:K,width:z});var ea=!!fr;ea?(lr==null||lr.remove(!0),l.replaceChild(Pn,fr)):l.appendChild(Pn);var ha;if(!h){if(ha=l.getBoundingClientRect()||{},oe!==void 0&&ce!==void 0)Kt=oe,Yr=ce;else if(!ea&&!mt){var Ia=ha.top,Ja=Pe||{},Ra=Ja.left,ii=Ja.right,ri=ii===void 0?16:ii,Yi=Ja.top,Za=Yi===void 0?8:Yi,qa=Ja.bottom,pi=ri,Ii=Za;isNaN(Ra)||(pi=l.scrollWidth-Ra),isNaN(qa)||(Ii=l.scrollHeight-qa);var qi=(0,b.isNumber)(A)?A:100;Kt=l.scrollWidth-Pn.scrollWidth-(Ke.length-1)*qi-pi;var oa=Ke[Ke.length-1],Ma=(oa[oa.length-1]||{}).bbox;Yr=(Ma==null?void 0:Ma.bottom)-Ia||Ii}(0,Yn.Z)(Pn,{position:"absolute",left:"".concat(Kt,"px"),top:"".concat(Yr,"px"),cusor:h?"unset":"move"})}this.bindListener(Pn,Bt);var Un=Pn.getBoundingClientRect();if(!mt){var Ca=ql(e,Un,u,this.get("canvas")),Da=this.get("linkStyle");lr=rt.addShape("path",{attrs:Es({lineWidth:1,lineDash:[5,5],stroke:"#ccc",path:Ca},Da)})}if(o[Bt]=Es(Es({},o[Bt]||{}),{id:Bt,collapsed:se,card:Pn,link:lr,x:Kt,y:Yr,cardBBox:Un,content:qt||Ne,title:Xr||Me,contentPlaceholder:ln,titlePlaceholder:Cn,isCanvas:mt}),i.set("cardInfoMap",o),h)this.updateCardPositionsInConatainer(),this.updateLinks();else{var dn=!isNaN(oe)&&!isNaN(ce);if(!ea&&!mt&&!dn){var va=ha.bottom,pa=va===void 0?0:va,Ia=ha.top;Ke[Ke.length-1].push({id:Bt,bbox:Un}),Un.top>pa-Ia-Un.height-16&&Ke.push([]),this.set("rows",Ke)}}this.updateCardSize(Bt);var Ua=this.get("onAnnotationChange");Ua==null||Ua(o[Bt],ea?"update":"create")}},t.prototype.updateCardPositionsInConatainer=function(){if(!this.destroyed){var e=this.get("cardInfoMap");if(!!e){var r=this.get("container"),n=this.get("containerCfg").position,a=r.getBoundingClientRect().width,i=getComputedStyle(r),o=uc(i.paddingLeft)+uc(i.paddingRight);a-=o,Object.values(e).forEach(function(u){var l=u.card,h=l.getBoundingClientRect().width;switch(n){case"right":(0,Yn.Z)(l,{marginLeft:a?"".concat(a-h,"px"):"0px"});break;case"top":case"bottom":(0,Yn.Z)(l,{marginLeft:"8px"});default:break}})}}},t.prototype.handleExpandCollapseCard=function(e){if(!this.destroyed){var r=this.get("graph"),n=this.get("cardInfoMap");if(!!n){var a=n[e].collapsed,i=r.findById(e);if(!!i){var o=this.get("cardCfg").collapseType;o==="hide"&&!a?this.hideCard(e):this.toggleAnnotation(i,{collapsed:!a}),n[e]=Es(Es({},n[e]),{collapsed:!a})}}}},t.prototype.hideCard=function(e){if(!this.destroyed){var r=this.get("cardInfoMap");if(!(!r||!r[e])){var n=r[e],a=n.card,i=n.link;(0,Yn.Z)(a,{display:"none"}),i==null||i.hide();var o=this.get("onAnnotationChange");o(r[e],"hide")}}},t.prototype.removeCard=function(e){if(!this.destroyed){var r=this.get("cardInfoMap");if(!!r){var n=r[e],a=n.card,i=n.link,o=this.get("container");o.removeChild(a),i==null||i.remove(!0),delete r[e];var u=this.get("onAnnotationChange");u(n,"remove")}}},t.prototype.bindListener=function(e,r){var n=this;if(!this.destroyed){e.addEventListener("mousemove",function(u){var l;if(u.target.className==="g6-annotation-collapse"?l="collapse":u.target.className==="g6-annotation-expand"?l="expand":u.target.className==="g6-annotation-close"&&(l="close"),l){var h=n.get("cardCfg").onMouseEnterIcon,y=h===void 0?function(){}:h;y(u,r,l)}}),e.addEventListener("mouseout",function(u){var l;if(u.target.className==="g6-annotation-collapse"?l="collapse":u.target.className==="g6-annotation-expand"?l="expand":u.target.className==="g6-annotation-close"&&(l="close"),l){var h=n.get("cardCfg").onMouseLeaveIcon,y=h===void 0?function(){}:h;y(u,r,l)}}),e.addEventListener("mouseenter",function(u){var l=n.get("cardInfoMap");if(!!l){var h=n.get("graph"),y=h.findById(r);if(y){var D=n.get("itemHighlightState");h.setItemState(y,D,!0)}var A=l[r].link;if(A){var z=n.get("linkHighlightStyle")||{};A.attr(z)}}}),e.addEventListener("mouseleave",function(u){var l=n.get("cardInfoMap");if(!!l){var h=n.get("graph"),y=h.findById(r);if(y){var D=n.get("itemHighlightState");h.setItemState(y,D,!1)}var A=l[r].link;if(A){var z=n.get("linkHighlightStyle")||{};Object.keys(z).forEach(function(ee){A.attr(ee,void 0),A.attr(ee,void 0)});var K=n.get("linkStyle");A.attr(K)}}}),e.addEventListener("click",function(u){var l=(n.get("cardCfg")||{}).onClickIcon;if(u.target.className==="g6-annotation-collapse"||u.target.className==="g6-annotation-expand"){var h=n.get("cardCfg").collapseType;h==="hide"?n.hideCard(r):n.handleExpandCollapseCard(r),l==null||l(u,r,u.target.className==="g6-annotation-collapse"?"collapse":"expand")}else if(u.target.className==="g6-annotation-close"){var y=n.get("cardCfg").closeType;y==="remove"?n.removeCard(r):n.hideCard(r),l==null||l(u,r,"close")}});var a=this.get("editable");a&&e.addEventListener("dblclick",function(u){var l=n.get("cardInfoMap"),h=(n.get("cardCfg")||{}).maxTitleLength,y=h===void 0?20:h;if(!!l){var D=u.target,A=D.className;if(!(A!=="g6-annotation-title"&&A!=="g6-annotation-content")){var z=A==="g6-annotation-title"?D.getBoundingClientRect():D.parentNode.getBoundingClientRect(),K=z.width,ee=z.height,se=getComputedStyle(D),oe=A==="g6-annotation-title"?"input":"textarea",ce=(0,Na.Z)("<".concat(oe,' class="').concat(A,'-input" type="textarea" style="width:').concat(K,"px; height: ").concat(ee,'px; min-width: 16px;"/>')),Me=(0,Na.Z)('
      '));Me.appendChild(ce),D.parentNode.replaceChild(Me,D);var Ne=l[r],Ie=Ne.contentPlaceholder,Pe=Ne.titlePlaceholder,Ye=Ne.content,rt=Ne.title,Ke=Ye;A==="g6-annotation-title"?(ce.name="title",ce.maxLength=y,Ke=rt):ce.name="content",Ke?(ce.innerHTML=D.innerHTML,ce.value=D.innerHTML):ce.placeholder=A==="g6-annotation-title"?Pe:Ie,ce.focus(),ce.addEventListener("blur",function(mt){ce.value&&(D.innerHTML=ce.value,Ne[ce.name||"title"]=ce.value),Me.parentNode.replaceChild(D,Me),n.updateCardSize(r);var Bt=n.get("onAnnotationChange");Bt==null||Bt(Ne,"update")})}}});var i=["g6-annotation-title","g6-annotation-content","g6-annotation-title-input","g6-annotation-content-input"];e.draggable=!0,e.addEventListener("dragstart",function(u){var l=u.target.className;if(!i.includes(l)){var h=e.style;n.set("dragging",{card:e,x:u.clientX,y:u.clientY,left:uc(h.left),top:uc(h.top)})}}),e.addEventListener("drag",function(u){u.preventDefault();var l=n.get("cardInfoMap");if(!!l){var h=u.clientX,y=u.clientY,D=n.get("dragging");if(!(isNaN(h)||isNaN(y)||!D)){var A=D.x,z=D.y,K=D.left,ee=D.top,se=D.card,oe=h-A,ce=y-z;K+=oe,ee+=ce;var Me=n.get("graph"),Ne=Me.getPointByCanvas(0,0),Ie=Me.getPointByCanvas(Me.getWidth(),Me.getHeight()),Pe=Me.getClientByPoint(Ne.x,Ne.y),Ye=Pe.x,rt=Pe.y,Ke=Me.getClientByPoint(Ie.x,Ie.y),mt=Ke.x,Bt=Ke.y,Er=se.getBoundingClientRect(),fr=Er.right-Er.left,lr=Er.bottom-Er.top;(K>mt-Ye-fr&&oe>0||K<0&&oe<0)&&(K-=oe),(ee>Bt-rt-lr&&ce>0||ee<0&&ce<0)&&(ee-=ce),(0,Yn.Z)(se,{left:"".concat(K,"px"),top:"".concat(ee,"px"),visibility:"hidden"}),A=h,z=y;var Kt=(l[r]||{}).link;if(Kt){var Yr=Me.findById(r);Kt.attr("path",ql(Yr,Er,Me,n.get("canvas")))}n.set("dragging",{x:A,y:z,left:K,top:ee,card:se})}}});var o=function(l){var h=n.get("cardInfoMap");if(!!h){var y=n.get("dragging");if(y){var D=y.left,A=y.top,z=y.card;h[r].x=D,h[r].y=A,(0,Yn.Z)(z,{visibility:"visible"}),n.set("dragging",!1);var K=n.get("rows");K==null||K.forEach(function(se){for(var oe=se.length-1;oe>=0;oe--)se[oe].id===r&&se.splice(oe,1)});var ee=n.get("onAnnotationChange");ee==null||ee(h[r],"update")}}};e.addEventListener("dragend",o)}},t.prototype.updateCardSize=function(e){var r=this.get("cardInfoMap");if(!!r){var n=r[e].card,a=n.getBoundingClientRect().width,i=n.getElementsByClassName("g6-annotation-title")[0];if(i){var o=getComputedStyle(i),u=uc(o.marginLeft),l=i.getBoundingClientRect().width;(0,Yn.Z)(i,{marginRight:"".concat(a-u-24-16-l,"px")})}}},t.prototype.updateLink=function(e){var r=e.item;if(!!r){var n=this.get("cardInfoMap");if(!!n){var a=this.get("canvas"),i=this.get("graph"),o=r.getID(),u=n[o]||{},l=u.link,h=u.card;if(l){var y=ql(r,h.getBoundingClientRect(),i,a);l.attr("path",y)}}}},t.prototype.updateLinks=function(){var e=this;if(!this.destroyed){var r=this.get("cardInfoMap");if(!!r){var n=this.get("graph");Object.values(r).forEach(function(a){var i=a.id,o=n.findById(i);e.updateLink({item:o})})}}},t.prototype.onGraphDataChange=function(){var e=this,r=this.get("cardInfoMap");if(!!r){var n=this.get("graph");Object.values(r).forEach(function(a){var i=a.id,o=a.card,u=a.isCanvas;if(!(!o||u||o.style.display==="none")){var l=n.findById(i);l&&l.isVisible()?e.toggleAnnotation(l):e.hideCard(i)}})}},t.prototype.onGraphItemVisibilityChange=function(e){var r=e.item,n=e.visible;if(!(!r||r.destroyed)){var a=this.get("cardInfoMap");if(!!a){var i=r.getID();!a[i]||n||this.hideCard(i)}}},t.prototype.saveData=function(e){e===void 0&&(e=!1);var r=this.get("cardInfoMap");if(!!r){var n=this.get("graph"),a=this.get("getTitle"),i=this.get("getContent"),o=[];return Object.values(r).forEach(function(u){var l=u.title,h=u.content,y=u.x,D=u.y,A=u.id,z=u.collapsed,K=u.card;if(!(K&&K.style.display==="none"&&!e)){var ee=n.findById(A)||n.get("canvas");o.push({id:A,x:y,y:D,collapsed:z,title:l||(a==null?void 0:a(ee)),content:h||(i==null?void 0:i(ee)),visible:K&&K.style.display!=="none"})}}),o}},t.prototype.readData=function(e){var r=this,n=this.get("graph");e.forEach(function(a){var i=a.id,o=a.x,u=a.y,l=a.title,h=a.content,y=a.collapsed,D=a.visible,A=n.findById(i);if(!A&&i===gd&&(A=n.get("canvas")),!A){var z=r.get("cardInfoMap")||{};z[i]=a,r.set("cardInfoMap",z);return}r.toggleAnnotation(A,{x:o,y:u,title:l,content:h,collapsed:y}),D||r.hideCard(i)})},t.prototype.clear=function(){var e=this.get("cardInfoMap");if(!!e){var r=this.get("container");Object.values(e).forEach(function(n){var a=n.card,i=n.link;r.removeChild(a),i==null||i.remove(!0)}),this.set("cardInfoMap",{})}},t.prototype.destroy=function(){var e;this.clear(),(e=this.get("canvas"))===null||e===void 0||e.destroy();var r=this.get("graph");!r||r.destroyed||(this.get("containerCfg")&&r.getContainer().removeChild(this.get("container")),this.destroyed=!0)},t}(uo),_h=Sh,Mh=function(t,e){var r,n,a,i=Infinity;Object.keys(t).forEach(function(l){var h=t[l];Object.keys(e).forEach(function(y){var D=e[y],A=h.x-D.x,z=h.y-D.y,K=A*A+z*z;i>K&&(i=K,r=h,n=D,a=[l,y])})});var o=20,u=Ni.getControlPoint(r,n,.5,o);return[["M",r.x,r.y],["Q",u.x,u.y,n.x,n.y]]},ql=function(t,e,r,n){var a,i,o=t.getType();if(o==="edge")i=[t.getKeyShape().getPoint(.5)];else{var u=(a=t.getKeyShape)===null||a===void 0?void 0:a.call(t).getBBox(),l=u.minX,h=u.minY,y=u.maxX,D=u.maxY,A=t.getModel(),z=A.x,K=A.y;l+=z,h+=K,y+=z,D+=K,i={left:{x:l,y:(h+D)/2},right:{x:y,y:(h+D)/2},top:{x:(l+y)/2,y:h},bottom:{x:(l+y)/2,y:D}}}Object.keys(i).forEach(function(rt){var Ke=i[rt],mt=Ke.x,Bt=Ke.y,Er=r.getClientByPoint(mt,Bt);i[rt]=n.getPointByClient(Er.x,Er.y)});var ee=e.top,se=ee===void 0?0:ee,oe=e.left,ce=oe===void 0?0:oe,Me=e.right,Ne=Me===void 0?0:Me,Ie=e.bottom,Pe=Ie===void 0?0:Ie,Ye={left:n.getPointByClient(ce,(se+Pe)/2),right:n.getPointByClient(Ne,(se+Pe)/2),top:n.getPointByClient((ce+Ne)/2,se),bottom:n.getPointByClient((ce+Ne)/2,Pe)};return Mh(i,Ye)},uc=function(t){return Number(t.replace(/\s+|px/gi,""))||0},Ch={PluginBase:uo,Menu:Vc,Grid:Xc,Minimap:Wi,Bundling:Kc,ToolBar:qc,Tooltip:Ue,Fisheye:oc,TimeBar:ur,ImageMinimap:In,EdgeFilterLens:Dl,SnapLine:yh,Legend:xh,Annotation:_h},Th=Ch,Vi=Th;To("circle",{options:{size:Kr.defaultNode.size,style:{x:0,y:0,stroke:Kr.defaultNode.style.stroke,fill:Kr.defaultNode.style.fill,lineWidth:Kr.defaultNode.style.lineWidth},labelCfg:{style:{fill:Kr.nodeLabel.style.fill,fontSize:Kr.nodeLabel.style.fontSize,fontFamily:Kr.windowFontFamily}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:Kr.defaultNode.linkPoints.size,lineWidth:Kr.defaultNode.linkPoints.lineWidth,fill:Kr.defaultNode.linkPoints.fill,stroke:Kr.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20},stateStyles:(0,w.__assign)({},Kr.nodeStateStyles)},shapeType:"circle",labelPosition:"center",drawShape:function(t,e){var r=(this.mergeStyle||this.getOptions(t)).icon,n=r===void 0?{}:r,a=this.getShapeStyle(t),i=(0,b.deepMix)({},n,t.icon),o="".concat(this.type,"-keyShape"),u=e.addShape("circle",{attrs:a,className:o,name:o,draggable:!0});e.shapeMap[o]=u;var l=i.width,h=i.height,y=i.show,D=i.text;if(y){var A="".concat(this.type,"-icon");D?e.shapeMap[A]=e.addShape("text",{attrs:(0,w.__assign)({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},i),className:A,name:A,draggable:!0}):e.shapeMap[A]=e.addShape("image",{attrs:(0,w.__assign)({x:-l/2,y:-h/2},i),className:A,name:A,draggable:!0})}return this.drawLinkPoints(t,e),u},drawLinkPoints:function(t,e){var r=(this.mergeStyle||this.getOptions(t)).linkPoints;if(!!r){var n=r||{},a=n.top,i=n.left,o=n.right,u=n.bottom,l=n.size,h=n.r,y=(0,w.__rest)(n,["top","left","right","bottom","size","r"]),D=this.getSize(t),A=D[0]/2;if(i){var z="link-point-left";e.shapeMap[z]=e.addShape("circle",{attrs:(0,w.__assign)((0,w.__assign)({},y),{x:-A,y:0,r:l/2||h||5}),className:z,name:z,isAnchorPoint:!0})}if(o){var K="link-point-right";e.shapeMap[K]=e.addShape("circle",{attrs:(0,w.__assign)((0,w.__assign)({},y),{x:A,y:0,r:l/2||h||5}),className:K,name:K,isAnchorPoint:!0})}if(a){var ee="link-point-top";e.shapeMap[ee]=e.addShape("circle",{attrs:(0,w.__assign)((0,w.__assign)({},y),{x:0,y:-A,r:l/2||h||5}),className:ee,name:ee,isAnchorPoint:!0})}if(u){var se="link-point-bottom";e.shapeMap[se]=e.addShape("circle",{attrs:(0,w.__assign)((0,w.__assign)({},y),{x:0,y:A,r:l/2||h||5}),className:se,name:se,isAnchorPoint:!0})}}},getShapeStyle:function(t){var e=(this.mergeStyle||this.getOptions(t)).style,r={stroke:t.color},n=(0,b.deepMix)({},e,r),a=this.getSize(t),i=a[0]/2,o=(0,w.__assign)({x:0,y:0,r:i},n);return o},update:function(t,e,r){var n=e.getContainer(),a=this.getSize(t),i=(0,w.__assign)({},t.style);t.style.stroke===void 0&&t.color&&(i.stroke=t.color),t.style.r===void 0&&!isNaN(a[0])&&(i.r=a[0]/2),this.updateShape(t,e,i,!0,r),this.updateLinkPoints(t,n)}},"single-node"),To("rect",{options:{size:[100,30],style:{radius:0,stroke:Kr.defaultNode.style.stroke,fill:Kr.defaultNode.style.fill,lineWidth:Kr.defaultNode.style.lineWidth},labelCfg:{style:{fill:Kr.nodeLabel.style.fill,fontSize:Kr.nodeLabel.style.fontSize,fontFamily:Kr.windowFontFamily}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:Kr.defaultNode.linkPoints.size,lineWidth:Kr.defaultNode.linkPoints.lineWidth,fill:Kr.defaultNode.linkPoints.fill,stroke:Kr.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20},anchorPoints:[[0,.5],[1,.5]],stateStyles:(0,w.__assign)({},Kr.nodeStateStyles)},shapeType:"rect",labelPosition:"center",drawShape:function(t,e){var r=this.getShapeStyle(t),n=e.addShape("rect",{attrs:r,className:"".concat(this.type,"-keyShape"),name:"".concat(this.type,"-keyShape"),draggable:!0});return e.shapeMap["".concat(this.type,"-keyShape")]=n,this.drawLinkPoints(t,e),n},drawLinkPoints:function(t,e){var r=(this.mergeStyle||this.getOptions(t)).linkPoints,n=r===void 0?{}:r,a=n.top,i=n.left,o=n.right,u=n.bottom,l=n.size,h=n.r,y=(0,w.__rest)(n,["top","left","right","bottom","size","r"]),D=this.getSize(t),A=D[0],z=D[1];i&&(e.shapeMap["link-point-left"]=e.addShape("circle",{attrs:(0,w.__assign)((0,w.__assign)({},y),{x:-A/2,y:0,r:l/2||h||5}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})),o&&(e.shapeMap["link-point-right"]=e.addShape("circle",{attrs:(0,w.__assign)((0,w.__assign)({},y),{x:A/2,y:0,r:l/2||h||5}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})),a&&(e.shapeMap["link-point-top"]=e.addShape("circle",{attrs:(0,w.__assign)((0,w.__assign)({},y),{x:0,y:-z/2,r:l/2||h||5}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})),u&&(e.shapeMap["link-point-bottom"]=e.addShape("circle",{attrs:(0,w.__assign)((0,w.__assign)({},y),{x:0,y:z/2,r:l/2||h||5}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0}))},getShapeStyle:function(t){var e=(this.mergeStyle||this.getOptions(t)).style,r={stroke:t.color},n=(0,b.mix)({},e,r),a=this.getSize(t),i=n.width||a[0],o=n.height||a[1],u=(0,w.__assign)({x:-i/2,y:-o/2,width:i,height:o},n);return u},update:function(t,e,r){var n=e.getContainer(),a=this.getOptions({}).style,i=this.getSize(t),o=e.get("keyShape");t.size||(i[0]=o.attr("width")||a.width,i[1]=o.attr("height")||a.height);var u={stroke:t.color,x:-i[0]/2,y:-i[1]/2,width:i[0],height:i[1]},l=(0,b.mix)({},a,o.attr(),u);l=(0,b.mix)(l,t.style),this.updateShape(t,e,l,!1,r),this.updateLinkPoints(t,n)}},"single-node"),To("ellipse",{options:{size:[80,40],style:{x:0,y:0,stroke:Kr.defaultNode.style.stroke,fill:Kr.defaultNode.style.fill,lineWidth:Kr.defaultNode.style.lineWidth},labelCfg:{style:{fill:Kr.nodeLabel.style.fill,fontSize:Kr.nodeLabel.style.fontSize,fontFamily:Kr.windowFontFamily}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:Kr.defaultNode.linkPoints.size,lineWidth:Kr.defaultNode.linkPoints.lineWidth,fill:Kr.defaultNode.linkPoints.fill,stroke:Kr.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20},stateStyles:(0,w.__assign)({},Kr.nodeStateStyles)},shapeType:"ellipse",labelPosition:"center",drawShape:function(t,e){var r=(this.mergeStyle||this.getOptions(t)).icon,n=r===void 0?{}:r,a=this.getShapeStyle(t),i=e.addShape("ellipse",{attrs:a,className:"ellipse-keyShape",name:"ellipse-keyShape",draggable:!0});e.shapeMap["ellipse-keyShape"]=i;var o=n.width,u=n.height,l=n.show,h=n.text;return l&&(h?e.shapeMap["".concat(this.type,"-icon")]=e.addShape("text",{attrs:(0,w.__assign)({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},n),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0}):e.shapeMap["".concat(this.type,"-icon")]=e.addShape("image",{attrs:(0,w.__assign)({x:-o/2,y:-u/2},n),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0})),this.drawLinkPoints(t,e),i},drawLinkPoints:function(t,e){var r=(this.mergeStyle||this.getOptions(t)).linkPoints,n=r===void 0?{}:r,a=n.top,i=n.left,o=n.right,u=n.bottom,l=n.size,h=n.r,y=(0,w.__rest)(n,["top","left","right","bottom","size","r"]),D=this.getSize(t),A=D[0]/2,z=D[1]/2;i&&(e.shapeMap["link-point-left"]=e.addShape("circle",{attrs:(0,w.__assign)((0,w.__assign)({},y),{x:-A,y:0,r:l/2||h||5}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})),o&&(e.shapeMap["link-point-right"]=e.addShape("circle",{attrs:(0,w.__assign)((0,w.__assign)({},y),{x:A,y:0,r:l/2||h||5}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})),a&&(e.shapeMap["link-point-top"]=e.addShape("circle",{attrs:(0,w.__assign)((0,w.__assign)({},y),{x:0,y:-z,r:l/2||h||5}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})),u&&(e.shapeMap["link-point-bottom"]=e.addShape("circle",{attrs:(0,w.__assign)((0,w.__assign)({},y),{x:0,y:z,r:l/2||h||5}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0}))},getShapeStyle:function(t){var e=(this.mergeStyle||this.getOptions(t)).style,r={stroke:t.color},n=(0,b.mix)({},e,r),a=this.getSize(t),i=a[0]/2,o=a[1]/2,u=(0,w.__assign)({x:0,y:0,rx:i,ry:o},n);return u},update:function(t,e,r){var n=e.getContainer(),a=this.getOptions({}).style,i=this.getSize(t),o={stroke:t.color,rx:i[0]/2,ry:i[1]/2},u=e.get("keyShape"),l=(0,b.mix)({},a,u.attr(),o);l=(0,b.mix)(l,t.style),this.updateShape(t,e,l,!0,r),this.updateLinkPoints(t,n)}},"single-node"),To("diamond",{options:{size:[80,80],style:{stroke:Kr.defaultNode.style.stroke,fill:Kr.defaultNode.style.fill,lineWidth:Kr.defaultNode.style.lineWidth},labelCfg:{style:{fill:Kr.nodeLabel.style.fill,fontSize:Kr.nodeLabel.style.fontSize,fontFamily:Kr.windowFontFamily}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:Kr.defaultNode.linkPoints.size,lineWidth:Kr.defaultNode.linkPoints.lineWidth,fill:Kr.defaultNode.linkPoints.fill,stroke:Kr.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20},stateStyles:(0,w.__assign)({},Kr.nodeStateStyles)},shapeType:"diamond",labelPosition:"center",drawShape:function(t,e){var r=(this.mergeStyle||this.getOptions(t)).icon,n=r===void 0?{}:r,a=this.getShapeStyle(t),i=e.addShape("path",{attrs:a,className:"".concat(this.type,"-keyShape"),name:"".concat(this.type,"-keyShape"),draggable:!0});e.shapeMap["".concat(this.type,"-keyShape")]=i;var o=n.width,u=n.height,l=n.show,h=n.text;return l&&(h?e.shapeMap["".concat(this.type,"-icon")]=e.addShape("text",{attrs:(0,w.__assign)({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},n),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0}):e.shapeMap["".concat(this.type,"-icon")]=e.addShape("image",{attrs:(0,w.__assign)({x:-o/2,y:-u/2},n),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0})),this.drawLinkPoints(t,e),i},drawLinkPoints:function(t,e){var r=(this.mergeStyle||this.getOptions(t)).linkPoints,n=r===void 0?{}:r,a=n.top,i=n.left,o=n.right,u=n.bottom,l=n.size,h=n.r,y=(0,w.__rest)(n,["top","left","right","bottom","size","r"]),D=this.getSize(t),A=D[0],z=D[1];i&&(e.shapeMap["link-point-left"]=e.addShape("circle",{attrs:(0,w.__assign)((0,w.__assign)({},y),{x:-A/2,y:0,r:l/2||h||5}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})),o&&(e.shapeMap["link-point-right"]=e.addShape("circle",{attrs:(0,w.__assign)((0,w.__assign)({},y),{x:A/2,y:0,r:l/2||h||5}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})),a&&(e.shapeMap["link-point-top"]=e.addShape("circle",{attrs:(0,w.__assign)((0,w.__assign)({},y),{x:0,y:-z/2,r:l/2||h||5}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})),u&&(e.shapeMap["link-point-bottom"]=e.addShape("circle",{attrs:(0,w.__assign)((0,w.__assign)({},y),{x:0,y:z/2,r:l/2||h||5}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0}))},getPath:function(t){var e=this.getSize(t),r=e[0],n=e[1],a=[["M",0,-n/2],["L",r/2,0],["L",0,n/2],["L",-r/2,0],["Z"]];return a},getShapeStyle:function(t){var e=(this.mergeStyle||this.getOptions(t)).style,r={stroke:t.color},n=(0,b.mix)({},e,r),a=this.getPath(t),i=(0,w.__assign)({path:a},n);return i},update:function(t,e,r){var n=e.getContainer(),a=this.getOptions({}).style,i=this.getPath(t),o={stroke:t.color,path:i},u=e.get("keyShape"),l=(0,b.mix)({},a,u.attr(),o);l=(0,b.mix)(l,t.style),this.updateShape(t,e,l,!0,r),this.updateLinkPoints(t,n)}},"single-node"),To("triangle",{options:{size:40,direction:"up",style:{stroke:Kr.defaultNode.style.stroke,fill:Kr.defaultNode.style.fill,lineWidth:Kr.defaultNode.style.lineWidth},labelCfg:{style:{fill:Kr.nodeLabel.style.fill,fontSize:Kr.nodeLabel.style.fontSize},offset:15},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:Kr.defaultNode.linkPoints.size,lineWidth:Kr.defaultNode.linkPoints.lineWidth,fill:Kr.defaultNode.linkPoints.fill,stroke:Kr.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20,offset:6},stateStyles:(0,w.__assign)({},Kr.nodeStateStyles)},shapeType:"triangle",labelPosition:"bottom",drawShape:function(t,e){var r=this.mergeStyle||this.getOptions(t),n=r.icon,a=n===void 0?{}:n,i=r.direction,o=this.getShapeStyle(t),u=t.direction||i,l=e.addShape("path",{attrs:o,className:"".concat(this.type,"-keyShape"),name:"".concat(this.type,"-keyShape"),draggable:!0});e.shapeMap["".concat(this.type,"-keyShape")]=l;var h=a.width,y=a.height,D=a.show,A=a.offset,z=a.text;if(D)if(z)e.shapeMap["".concat(this.type,"-icon")]=e.addShape("text",{attrs:(0,w.__assign)({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},a),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0});else{var K=-h/2,ee=-y/2;(u==="up"||u==="down")&&(ee+=A),(u==="left"||u==="right")&&(K+=A),e.shapeMap["".concat(this.type,"-icon")]=e.addShape("image",{attrs:(0,w.__assign)({x:K,y:ee},a),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0})}return this.drawLinkPoints(t,e),l},drawLinkPoints:function(t,e){var r=this.mergeStyle||this.getOptions(t),n=r.linkPoints,a=n===void 0?{}:n,i=r.direction,o=t.direction||i,u=a.top,l=a.left,h=a.right,y=a.bottom,D=a.size,A=a.r,z=(0,w.__rest)(a,["top","left","right","bottom","size","r"]),K=this.getSize(t),ee=K[0];if(l){var se=null,oe=ee*Math.sin(1/3*Math.PI),ce=ee*Math.sin(1/3*Math.PI);o==="up"?se=[-ce,oe]:o==="down"?se=[-ce,-oe]:o==="left"&&(se=[-ce,ce-oe]),se&&(e.shapeMap["link-point-left"]=e.addShape("circle",{attrs:(0,w.__assign)((0,w.__assign)({},z),{x:se[0],y:se[1],r:D/2||A||5}),className:"link-point-left",name:"link-point-left"}))}if(h){var Me=null,oe=ee*Math.sin(1/3*Math.PI),ce=ee*Math.sin(1/3*Math.PI);o==="up"?Me=[ce,oe]:o==="down"?Me=[ce,-oe]:o==="right"&&(Me=[ce,ce-oe]),Me&&(e.shapeMap["link-point-right"]=e.addShape("circle",{attrs:(0,w.__assign)((0,w.__assign)({},z),{x:Me[0],y:Me[1],r:D/2||A||5}),className:"link-point-right",name:"link-point-right"}))}if(u){var Ne=null,oe=ee*Math.sin(1/3*Math.PI),ce=ee*Math.sin(1/3*Math.PI);o==="up"?Ne=[ce-oe,-oe]:o==="left"?Ne=[ce,-oe]:o==="right"&&(Ne=[-ce,-oe]),Ne&&(e.shapeMap["link-point-top"]=e.addShape("circle",{attrs:(0,w.__assign)((0,w.__assign)({},z),{x:Ne[0],y:Ne[1],r:D/2||A||5}),className:"link-point-top",name:"link-point-top"}))}if(y){var Ie=null,oe=ee*Math.sin(1/3*Math.PI),ce=ee*Math.sin(1/3*Math.PI);o==="down"?Ie=[-ce+oe,oe]:o==="left"?Ie=[ce,oe]:o==="right"&&(Ie=[-ce,oe]),Ie&&(e.shapeMap["link-point-bottom"]=e.addShape("circle",{attrs:(0,w.__assign)((0,w.__assign)({},z),{x:Ie[0],y:Ie[1],r:D/2||A||5}),className:"link-point-bottom",name:"link-point-bottom"}))}},getPath:function(t){var e=(this.mergeStyle||this.getOptions(t)).direction,r=t.direction||e,n=this.getSize(t),a=n[0],i=a*Math.sin(1/3*Math.PI),o=a*Math.sin(1/3*Math.PI),u=[["M",-o,i],["L",0,-i],["L",o,i],["Z"]];return r==="down"?u=[["M",-o,-i],["L",o,-i],["L",0,i],["Z"]]:r==="left"?u=[["M",-o,o-i],["L",o,-o],["L",o,o],["Z"]]:r==="right"&&(u=[["M",o,o-i],["L",-o,o],["L",-o,-o],["Z"]]),u},getShapeStyle:function(t){var e=(this.mergeStyle||this.getOptions(t)).style,r={stroke:t.color},n=(0,b.mix)({},e,r),a=this.getPath(t),i=(0,w.__assign)({path:a},n);return i},update:function(t,e,r){var n=e.getContainer(),a=this.getOptions({}).style,i=this.getPath(t),o={stroke:t.color,path:i},u=e.get("keyShape"),l=(0,b.mix)({},a,u.attr(),o);l=(0,b.mix)(l,t.style),this.updateShape(t,e,l,!0,r),this.updateLinkPoints(t,n)},updateLinkPoints:function(t,e){var r=this.getOptions({}),n=r.linkPoints,a=r.direction,i=t.direction||a,o=e.shapeMap["link-point-left"]||e.find(function(Kt){return Kt.get("className")==="link-point-left"}),u=e.shapeMap["link-point-right"]||e.find(function(Kt){return Kt.get("className")==="link-point-right"}),l=e.shapeMap["link-point-top"]||e.find(function(Kt){return Kt.get("className")==="link-point-top"}),h=e.shapeMap["link-point-bottom"]||e.find(function(Kt){return Kt.get("className")==="link-point-bottom"}),y=n,D=o||u||l||h;D&&(y=D.attr());var A=(0,b.mix)({},y,t.linkPoints),z=A.fill,K=A.stroke,ee=A.lineWidth,se=A.size/2;se||(se=A.r);var oe=t.linkPoints?t.linkPoints:{left:void 0,right:void 0,top:void 0,bottom:void 0},ce=oe.left,Me=oe.right,Ne=oe.top,Ie=oe.bottom,Pe=this.getSize(t),Ye=Pe[0],rt={r:se,fill:z,stroke:K,lineWidth:ee},Ke=null,mt=Ye*Math.sin(1/3*Math.PI),Bt=Ye*Math.sin(1/3*Math.PI);i==="up"?Ke=[-Bt,mt]:i==="down"?Ke=[-Bt,-mt]:i==="left"&&(Ke=[-Bt,Bt-mt]),Ke&&(o?!ce&&ce!==void 0?(o.remove(),delete e.shapeMap["link-point-left"]):o.attr((0,w.__assign)((0,w.__assign)({},rt),{x:Ke[0],y:Ke[1]})):ce&&(e.shapeMap["link-point-left"]=e.addShape("circle",{attrs:(0,w.__assign)((0,w.__assign)({},rt),{x:Ke[0],y:Ke[1]}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})));var Er=null;i==="up"?Er=[Bt,mt]:i==="down"?Er=[Bt,-mt]:i==="right"&&(Er=[Bt,Bt-mt]),Er&&(u?!Me&&Me!==void 0?(u.remove(),delete e.shapeMap["link-point-right"]):u.attr((0,w.__assign)((0,w.__assign)({},rt),{x:Er[0],y:Er[1]})):Me&&(e.shapeMap["link-point-right"]=e.addShape("circle",{attrs:(0,w.__assign)((0,w.__assign)({},rt),{x:Er[0],y:Er[1]}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})));var fr=null;i==="up"?fr=[Bt-mt,-mt]:i==="left"?fr=[Bt,-mt]:i==="right"&&(fr=[-Bt,-mt]),fr&&(l?!Ne&&Ne!==void 0?(l.remove(),delete e.shapeMap["link-point-top"]):l.attr((0,w.__assign)((0,w.__assign)({},rt),{x:fr[0],y:fr[1]})):Ne&&(e.shapeMap["link-point-top"]=e.addShape("circle",{attrs:(0,w.__assign)((0,w.__assign)({},rt),{x:fr[0],y:fr[1]}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})));var lr=null;i==="down"?lr=[-Bt+mt,mt]:i==="left"?lr=[Bt,mt]:i==="right"&&(lr=[-Bt,mt]),lr&&(h?!Ie&&Ie!==void 0?(h.remove(),delete e.shapeMap["link-point-bottom"]):h.attr((0,w.__assign)((0,w.__assign)({},rt),{x:lr[0],y:lr[1]})):Ie&&(e.shapeMap["link-point-bottom"]=e.addShape("circle",{attrs:(0,w.__assign)((0,w.__assign)({},rt),{x:lr[0],y:lr[1]}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0})))}},"single-node"),To("modelRect",{options:{size:[185,70],style:{radius:5,stroke:"#69c0ff",fill:"#ffffff",lineWidth:Kr.defaultNode.style.lineWidth,fillOpacity:1},labelCfg:{style:{fill:"#595959",fontSize:14,fontFamily:Kr.windowFontFamily},offset:30},descriptionCfg:{style:{fontSize:12,fill:"#bfbfbf",fontFamily:Kr.windowFontFamily},paddingTop:0},preRect:{show:!0,width:4,fill:"#40a9ff",radius:2},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:10,lineWidth:1,fill:"#72CC4A",stroke:"#72CC4A"},logoIcon:{show:!0,x:0,y:0,img:"https://gw.alipayobjects.com/zos/basement_prod/4f81893c-1806-4de4-aff3-9a6b266bc8a2.svg",width:16,height:16,offset:0},stateIcon:{show:!0,x:0,y:0,img:"https://gw.alipayobjects.com/zos/basement_prod/300a2523-67e0-4cbf-9d4a-67c077b40395.svg",width:16,height:16,offset:-5},anchorPoints:[[0,.5],[1,.5]]},shapeType:"modelRect",drawShape:function(t,e){var r=(this.mergeStyle||this.getOptions(t)).preRect,n=r===void 0?{}:r,a=this.getShapeStyle(t),i=this.getSize(t),o=i[0],u=i[1],l=e.addShape("rect",{attrs:a,className:"".concat(this.type,"-keyShape"),name:"".concat(this.type,"-keyShape"),draggable:!0});e.shapeMap["".concat(this.type,"-keyShape")]=l;var h=n.show,y=(0,w.__rest)(n,["show"]);return h&&(e.shapeMap["pre-rect"]=e.addShape("rect",{attrs:(0,w.__assign)({x:-o/2,y:-u/2,height:u},y),className:"pre-rect",name:"pre-rect",draggable:!0})),this.drawLogoIcon(t,e),this.drawStateIcon(t,e),this.drawLinkPoints(t,e),l},drawLogoIcon:function(t,e){var r=(this.mergeStyle||this.getOptions(t)).logoIcon,n=r===void 0?{}:r,a=this.getSize(t),i=a[0];if(n.show){var o=n.width,u=n.height,l=n.x,h=n.y,y=n.offset,D=n.text,A=(0,w.__rest)(n,["width","height","x","y","offset","text"]);D?e.shapeMap["rect-logo-icon"]=e.addShape("text",{attrs:(0,w.__assign)({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},A),className:"rect-logo-icon",name:"rect-logo-icon",draggable:!0}):e.shapeMap["rect-logo-icon"]=e.addShape("image",{attrs:(0,w.__assign)((0,w.__assign)({},A),{x:l||-i/2+o+y,y:h||-u/2,width:o,height:u}),className:"rect-logo-icon",name:"rect-logo-icon",draggable:!0})}},drawStateIcon:function(t,e){var r=(this.mergeStyle||this.getOptions(t)).stateIcon,n=r===void 0?{}:r,a=this.getSize(t),i=a[0];if(n.show){var o=n.width,u=n.height,l=n.x,h=n.y,y=n.offset,D=n.text,A=(0,w.__rest)(n,["width","height","x","y","offset","text"]);D?e.shapeMap["rect-state-icon"]=e.addShape("text",{attrs:(0,w.__assign)({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},A),className:"rect-state-icon",name:"rect-state-icon",draggable:!0}):e.shapeMap["rect-state-icon"]=e.addShape("image",{attrs:(0,w.__assign)((0,w.__assign)({},A),{x:l||i/2-o+y,y:h||-u/2,width:o,height:u}),className:"rect-state-icon",name:"rect-state-icon",draggable:!0})}},drawLinkPoints:function(t,e){var r=(this.mergeStyle||this.getOptions(t)).linkPoints,n=r===void 0?{}:r,a=n.top,i=n.left,o=n.right,u=n.bottom,l=n.size,h=n.r,y=(0,w.__rest)(n,["top","left","right","bottom","size","r"]),D=this.getSize(t),A=D[0],z=D[1];i&&(e.shapeMap["link-point-left"]=e.addShape("circle",{attrs:(0,w.__assign)((0,w.__assign)({},y),{x:-A/2,y:0,r:l/2||h||5}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})),o&&(e.shapeMap["link-point-right"]=e.addShape("circle",{attrs:(0,w.__assign)((0,w.__assign)({},y),{x:A/2,y:0,r:l/2||h||5}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})),a&&(e.shapeMap["link-point-top"]=e.addShape("circle",{attrs:(0,w.__assign)((0,w.__assign)({},y),{x:0,y:-z/2,r:l/2||h||5}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})),u&&(e.shapeMap["link-point-bottom"]=e.addShape("circle",{attrs:(0,w.__assign)((0,w.__assign)({},y),{x:0,y:z/2,r:l/2||h||5}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0}))},drawLabel:function(t,e){var r=this.getOptions(t),n=r.labelCfg,a=n===void 0?{}:n,i=r.logoIcon,o=i===void 0?{}:i,u=r.descriptionCfg,l=u===void 0?{}:u,h=this.getSize(t),y=h[0],D=null,A=o.show,z=o.width,K=-y/2+a.offset;A&&(K=-y/2+z+a.offset);var ee=a.style,se=l.style,oe=l.paddingTop;return(0,b.isString)(t.description)?(D=e.addShape("text",{attrs:(0,w.__assign)((0,w.__assign)({},ee),{x:K,y:-5,text:t.label}),className:"text-shape",name:"text-shape",draggable:!0,labelRelated:!0}),e.shapeMap["text-shape"]=D,e.shapeMap["rect-description"]=e.addShape("text",{attrs:(0,w.__assign)((0,w.__assign)({},se),{x:K,y:17+(oe||0),text:t.description}),className:"rect-description",name:"rect-description",draggable:!0,labelRelated:!0})):(D=e.addShape("text",{attrs:(0,w.__assign)((0,w.__assign)({},ee),{x:K,y:7,text:t.label}),className:"text-shape",name:"text-shape",draggable:!0,labelRelated:!0}),e.shapeMap["text-shape"]=D),D},getShapeStyle:function(t){var e=(this.mergeStyle||this.getOptions(t)).style,r={stroke:t.color},n=(0,b.mix)({},e,r),a=this.getSize(t),i=n.width||a[0],o=n.height||a[1],u=(0,w.__assign)({x:-i/2,y:-o/2,width:i,height:o},n);return u},update:function(t,e){var r=this.mergeStyle||this.getOptions(t),n=r.style,a=n===void 0?{}:n,i=r.labelCfg,o=i===void 0?{}:i,u=r.descriptionCfg,l=u===void 0?{}:u,h=this.getSize(t),y=h[0],D=h[1],A=e.get("keyShape");A.attr((0,w.__assign)((0,w.__assign)({},a),{x:-y/2,y:-D/2,width:y,height:D}));var z=e.getContainer(),K=z.shapeMap["rect-logo-icon"]||z.find(function(Pn){return Pn.get("className")==="rect-logo-icon"}),ee=K?K.attr():{},se=(0,b.mix)({},ee,t.logoIcon),oe=se.width;oe===void 0&&(oe=this.options.logoIcon.width);var ce=t.logoIcon?t.logoIcon.show:void 0,Me=o.offset,Ne=-y/2+oe+Me;!ce&&ce!==void 0&&(Ne=-y/2+Me);var Ie=z.shapeMap["node-label"]||z.find(function(Pn){return Pn.get("className")==="node-label"}),Pe=z.shapeMap["rect-description"]||z.find(function(Pn){return Pn.get("className")==="rect-description"});if(t.label)if(!Ie)z.shapeMap["node-label"]=z.addShape("text",{attrs:(0,w.__assign)((0,w.__assign)({},o.style),{x:Ne,y:t.description?-5:7,text:t.label}),className:"node-label",name:"node-label",draggable:!0,labelRelated:!0});else{var Ye=t.labelCfg?t.labelCfg.style:{},rt=(0,b.mix)({},Ie.attr(),Ye);t.label&&(rt.text=t.label),rt.x=Ne,(0,b.isString)(t.description)&&(rt.y=-5),Pe&&(Pe.resetMatrix(),Pe.attr({x:Ne})),Ie.resetMatrix(),Ie.attr(rt)}if((0,b.isString)(t.description)){var Ke=l.paddingTop;if(!Pe)z.shapeMap["rect-description"]=z.addShape("text",{attrs:(0,w.__assign)((0,w.__assign)({},l.style),{x:Ne,y:17+(Ke||0),text:t.description}),className:"rect-description",name:"rect-description",draggable:!0,labelRelated:!0});else{var Ye=t.descriptionCfg?t.descriptionCfg.style:{},mt=(0,b.mix)({},Pe.attr(),Ye);(0,b.isString)(t.description)&&(mt.text=t.description),mt.x=Ne,Pe.resetMatrix(),Pe.attr((0,w.__assign)((0,w.__assign)({},mt),{y:17+(Ke||0)}))}}var Bt=z.shapeMap["pre-rect"]||z.find(function(Pn){return Pn.get("className")==="pre-rect"});if(Bt&&!Bt.destroyed){var Er=(0,b.mix)({},Bt.attr(),t.preRect);Bt.attr((0,w.__assign)((0,w.__assign)({},Er),{x:-y/2,y:-D/2,height:D}))}if(K&&!K.destroyed)if(!ce&&ce!==void 0)K.remove(),delete z.shapeMap["pre-rect"];else{var fr=se.width,lr=se.height,Kt=se.x,Yr=se.y,Xr=se.offset,qt=(0,w.__rest)(se,["width","height","x","y","offset"]);K.attr((0,w.__assign)((0,w.__assign)({},qt),{x:Kt||-y/2+fr+Xr,y:Yr||-lr/2,width:fr,height:lr}))}else ce&&this.drawLogoIcon(t,z);var br=z.shapeMap["rect-state-icon"]||z.find(function(Pn){return Pn.get("className")==="rect-state-icon"}),Nr=br?br.attr():{},zr=(0,b.mix)({},Nr,t.stateIcon);if(br){!zr.show&&zr.show!==void 0&&(br.remove(),delete z.shapeMap["rect-state-icon"]);var Qr=zr.width,lr=zr.height,Kt=zr.x,Yr=zr.y,ln=zr.offset,Cn=(0,w.__rest)(zr,["width","height","x","y","offset"]);br.attr((0,w.__assign)((0,w.__assign)({},Cn),{x:Kt||y/2-Qr+ln,y:Yr||-lr/2,width:Qr,height:lr}))}else zr.show&&this.drawStateIcon(t,z);this.updateLinkPoints(t,z)},getOptions:function(t,e){return e==="move"?t:(0,b.deepMix)({},this.options,this.getCustomConfig(t)||{},t)}},"single-node"),To("star",{options:{size:60,style:{stroke:Kr.defaultNode.style.stroke,fill:Kr.defaultNode.style.fill,lineWidth:Kr.defaultNode.style.lineWidth},labelCfg:{style:{fill:Kr.nodeLabel.style.fill,fontSize:Kr.nodeLabel.style.fontSize,fontFamily:Kr.windowFontFamily}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:Kr.defaultNode.linkPoints.size,lineWidth:Kr.defaultNode.linkPoints.lineWidth,fill:Kr.defaultNode.linkPoints.fill,stroke:Kr.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20},stateStyles:(0,w.__assign)({},Kr.nodeStateStyles)},shapeType:"star",labelPosition:"center",drawShape:function(t,e){var r=(this.mergeStyle||this.getOptions(t)).icon,n=r===void 0?{}:r,a=this.getShapeStyle(t),i=e.addShape("path",{attrs:a,className:"".concat(this.type,"-keyShape"),name:"".concat(this.type,"-keyShape"),draggable:!0});e.shapeMap["".concat(this.type,"-keyShape")]=i;var o=n.width,u=n.height,l=n.show,h=n.text;return l&&(h?e.shapeMap["".concat(this.type,"-icon")]=e.addShape("text",{attrs:(0,w.__assign)({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},n),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0}):e.shapeMap["".concat(this.type,"-icon")]=e.addShape("image",{attrs:(0,w.__assign)({x:-o/2,y:-u/2},n),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0})),this.drawLinkPoints(t,e),i},drawLinkPoints:function(t,e){var r=(this.mergeStyle||this.getOptions(t)).linkPoints,n=r===void 0?{}:r,a=n.top,i=n.left,o=n.right,u=n.leftBottom,l=n.rightBottom,h=n.size,y=n.r,D=(0,w.__rest)(n,["top","left","right","leftBottom","rightBottom","size","r"]),A=this.getSize(t),z=A[0];if(o){var K=Math.cos((18+72*0)/180*Math.PI)*z,ee=Math.sin((18+72*0)/180*Math.PI)*z;e.shapeMap["link-point-right"]=e.addShape("circle",{attrs:(0,w.__assign)((0,w.__assign)({},D),{x:K,y:-ee,r:h/2||y||5}),className:"link-point-right",name:"link-point-right"})}if(a){var K=Math.cos((18+72*1)/180*Math.PI)*z,ee=Math.sin((18+72*1)/180*Math.PI)*z;e.shapeMap["link-point-top"]=e.addShape("circle",{attrs:(0,w.__assign)((0,w.__assign)({},D),{x:K,y:-ee,r:h/2||y||5}),className:"link-point-top",name:"link-point-top"})}if(i){var K=Math.cos((18+72*2)/180*Math.PI)*z,ee=Math.sin((18+72*2)/180*Math.PI)*z;e.shapeMap["link-point-left"]=e.addShape("circle",{attrs:(0,w.__assign)((0,w.__assign)({},D),{x:K,y:-ee,r:h/2||y||5}),className:"link-point-left",name:"link-point-left"})}if(u){var K=Math.cos((18+72*3)/180*Math.PI)*z,ee=Math.sin((18+72*3)/180*Math.PI)*z;e.shapeMap["link-point-bottom"]=e.addShape("circle",{attrs:(0,w.__assign)((0,w.__assign)({},D),{x:K,y:-ee,r:h/2||y||5}),className:"link-point-left-bottom",name:"link-point-left-bottom"})}if(l){var K=Math.cos((18+72*4)/180*Math.PI)*z,ee=Math.sin((18+72*4)/180*Math.PI)*z;e.shapeMap["link-point-right-bottom"]=e.addShape("circle",{attrs:(0,w.__assign)((0,w.__assign)({},D),{x:K,y:-ee,r:h/2||y||5}),className:"link-point-right-bottom",name:"link-point-right-bottom"})}},getPath:function(t){var e=this.getSize(t),r=e[0],n=r*3/8,a=t.innerR||n;return Ni.getStarPath(r,a)},getShapeStyle:function(t){var e=(this.mergeStyle||this.getOptions(t)).style,r={stroke:t.color},n=(0,b.mix)({},e,r),a=this.getPath(t),i=(0,w.__assign)({path:a},n);return i},update:function(t,e,r){var n=e.getContainer(),a=this.getOptions({}).style,i=this.getPath(t),o={stroke:t.color,path:i},u=e.get("keyShape"),l=(0,b.mix)({},a,u.attr(),o);l=(0,b.mix)(l,t.style),this.updateShape(t,e,l,!0,r),this.updateLinkPoints(t,n)},updateLinkPoints:function(t,e){var r=this.getOptions({}).linkPoints,n=e.shapeMap["link-point-left"]||e.find(function(mt){return mt.get("className")==="link-point-left"}),a=e.shapeMap["link-point-right"]||e.find(function(mt){return mt.get("className")==="link-point-right"}),i=e.shapeMap["link-point-top"]||e.find(function(mt){return mt.get("className")==="link-point-top"}),o=e.shapeMap["link-point-left-bottom"]||e.find(function(mt){return mt.get("className")==="link-point-left-bottom"}),u=e.shapeMap["link-point-left-bottom"]||e.find(function(mt){return mt.get("className")==="link-point-right-bottom"}),l=r,h=n||a||i||o||u;h&&(l=h.attr());var y=(0,b.mix)({},l,t.linkPoints),D=y.fill,A=y.stroke,z=y.lineWidth,K=y.size/2;K||(K=y.r);var ee=t.linkPoints?t.linkPoints:{left:void 0,right:void 0,top:void 0,leftBottom:void 0,rightBottom:void 0},se=ee.left,oe=ee.right,ce=ee.top,Me=ee.leftBottom,Ne=ee.rightBottom,Ie=this.getSize(t),Pe=Ie[0],Ye={r:K,fill:D,stroke:A,lineWidth:z},rt=Math.cos((18+72*0)/180*Math.PI)*Pe,Ke=Math.sin((18+72*0)/180*Math.PI)*Pe;a?!oe&&oe!==void 0?(a.remove(),delete e.shapeMap["link-point-right"]):a.attr((0,w.__assign)((0,w.__assign)({},Ye),{x:rt,y:-Ke})):oe&&(e.shapeMap["link-point-right"]=e.addShape("circle",{attrs:(0,w.__assign)((0,w.__assign)({},Ye),{x:rt,y:-Ke}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})),rt=Math.cos((18+72*1)/180*Math.PI)*Pe,Ke=Math.sin((18+72*1)/180*Math.PI)*Pe,i?!ce&&ce!==void 0?(i.remove(),delete e.shapeMap["link-point-top"]):i.attr((0,w.__assign)((0,w.__assign)({},Ye),{x:rt,y:-Ke})):ce&&(e.shapeMap["link-point-top"]=e.addShape("circle",{attrs:(0,w.__assign)((0,w.__assign)({},Ye),{x:rt,y:-Ke}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})),rt=Math.cos((18+72*2)/180*Math.PI)*Pe,Ke=Math.sin((18+72*2)/180*Math.PI)*Pe,n?!se&&se!==void 0?(n.remove(),delete e.shapeMap["link-point-left"]):n.attr((0,w.__assign)((0,w.__assign)({},Ye),{x:rt,y:-Ke})):se&&(e.shapeMap["link-point-left"]=e.addShape("circle",{attrs:(0,w.__assign)((0,w.__assign)({},Ye),{x:rt,y:-Ke}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})),rt=Math.cos((18+72*3)/180*Math.PI)*Pe,Ke=Math.sin((18+72*3)/180*Math.PI)*Pe,o?!Me&&Me!==void 0?(o.remove(),delete e.shapeMap["link-point-left-bottom"]):o.attr((0,w.__assign)((0,w.__assign)({},Ye),{x:rt,y:-Ke})):Me&&(e.shapeMap["link-point-left-bottom"]=e.addShape("circle",{attrs:(0,w.__assign)((0,w.__assign)({},Ye),{x:rt,y:-Ke}),className:"link-point-left-bottom",name:"link-point-left-bottom",isAnchorPoint:!0})),rt=Math.cos((18+72*4)/180*Math.PI)*Pe,Ke=Math.sin((18+72*4)/180*Math.PI)*Pe,u?!Ne&&Ne!==void 0?(u.remove(),delete e.shapeMap["link-point-right-bottom"]):u.attr((0,w.__assign)((0,w.__assign)({},Ye),{x:rt,y:-Ke})):Ne&&(e.shapeMap["link-point-right-bottom"]=e.addShape("circle",{attrs:(0,w.__assign)((0,w.__assign)({},Ye),{x:rt,y:-Ke}),className:"link-point-right-bottom",name:"link-point-right-bottom",isAnchorPoint:!0}))}},"single-node");var pd=Ni.defaultSubjectColors,Cl="fan-shape-";To("donut",{options:{size:Kr.defaultNode.size,style:{x:0,y:0,stroke:Kr.defaultNode.style.stroke,fill:Kr.defaultNode.style.fill,lineWidth:Kr.defaultNode.style.lineWidth},labelCfg:{style:{fill:Kr.nodeLabel.style.fill,fontSize:Kr.nodeLabel.style.fontSize,fontFamily:Kr.windowFontFamily}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:Kr.defaultNode.linkPoints.size,lineWidth:Kr.defaultNode.linkPoints.lineWidth,fill:Kr.defaultNode.linkPoints.fill,stroke:Kr.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20},stateStyles:(0,w.__assign)({},Kr.nodeStateStyles)},shapeType:"circle",labelPosition:"center",drawShape:function(t,e){var r=(this.mergeStyle||this.getOptions(t)).icon,n=r===void 0?{}:r,a=this.getShapeStyle(t),i=(0,b.deepMix)({},n,t.icon),o=e.addShape("circle",{attrs:a,className:"".concat(this.type,"-keyShape"),draggable:!0,name:"".concat(this.type,"-keyShape")});e.shapeMap["".concat(this.type,"-keyShape")]=o;var u=i.width,l=i.height,h=i.show,y=i.text;return h&&(y?e.shapeMap["".concat(this.type,"-icon")]=e.addShape("text",{attrs:(0,w.__assign)({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},i),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0}):e.shapeMap["".concat(this.type,"-icon")]=e.addShape("image",{attrs:(0,w.__assign)({x:-u/2,y:-l/2},i),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0})),Ih(t,e,o),this.drawLinkPoints(t,e),o},updateShape:function(t,e,r,n,a){var i=e.get("keyShape");i.attr((0,w.__assign)({},r)),Oh(t,e,i),this.updateLabel(t,e,a),n&&this.updateIcon(t,e)}},"circle");var Ih=function(t,e,r){var n=t.donutAttrs,a=n===void 0?{}:n,i=t.donutColorMap,o=i===void 0?{}:i,u=Object.keys(a).length;if(a&&u>1){var l=yd(a,o),h=l.configs,y=l.totalValue;if(y){var D=md(r),A=D.lineWidth,z=D.arcR,K=[z,0],ee=0;if(u===1){ed(e,{arcR:z,arcBegin:K,beginAngle:ee,config:h[0],fanIndex:0,lineWidth:A,totalValue:y,drawWhole:!0});return}for(var se=0;se.999)K=[r,1e-4],se=!0;else{var oe=z*Math.PI*2;ee=a+oe,K=[r*Math.cos(ee),-r*Math.sin(ee)],se=oe>Math.PI?1:0}var ce={path:[["M",n[0],n[1]],["A",r,r,0,se,0,K[0],K[1]],["L",K[0],K[1]]],stroke:i.color||(A==null?void 0:A.attr("stroke"))||pd[o%pd.length],lineWidth:u};return A?A.attr(ce):t.shapeMap["".concat(Cl).concat(o)]=t.addShape("path",{attrs:ce,name:"".concat(Cl).concat(o),draggable:!0}),{beginAngle:ee,arcBegin:K,shape:t.shapeMap["".concat(Cl).concat(o)],shouldEnd:y||z>.999}},Oh=function(t,e,r){var n=t.donutAttrs,a=t.donutColorMap,i=a===void 0?{}:a,o={},u=e.getContainer();if(n){var l=yd(n,i),h=l.configs,y=l.totalValue;if(y)for(var D=md(r),A=D.lineWidth,z=D.arcR,K=[z,0],ee=0,se=0;se=0;a--){var i=t[a];i.id="".concat(i.x,"|||").concat(i.y),r[i.id]||(r[i.id]=i,e.push(i))}return e},Ed=function(t){return td(t)},$g=function(t,e){return[t,{x:t.x,y:e.y},e]},kl=function(t,e){return t.width||t.height?{centerX:t.centerX,centerY:t.centerY,minX:t.minX-e,minY:t.minY-e,maxX:t.maxX+e,maxY:t.maxY+e,height:t.height+2*e,width:t.width+2*e}:t},Lh=function(t,e){var r=Math.abs(t.x-e.centerX),n=Math.abs(t.y-e.centerY);return r===0&&n===0?0:r/e.width>n/e.height},rd=function(t,e,r){var n=Lh(e,t);if(n===0){var a=t.centerX,i=t.centerY;return r.ye.x?a=t.maxX:r.xt.centerX?t.maxX:t.minX,y:e.y}:{x:e.x,y:e.y>t.centerY?t.maxY:t.minY}},bd=function(t,e){var r=Math.min(t.minX,e.minX),n=Math.min(t.minY,e.minY),a=Math.max(t.maxX,e.maxX),i=Math.max(t.maxY,e.maxY);return{centerX:(r+a)/2,centerY:(n+i)/2,minX:r,minY:n,maxX:a,maxY:i,height:i-n,width:a-r}},nd=function(t){return[{x:t.minX,y:t.minY},{x:t.maxX,y:t.minY},{x:t.maxX,y:t.maxY},{x:t.minX,y:t.maxY}]},Rl=function(t,e){var r=t.x,n=t.y;return re.maxX||ne.maxY},Dh=function(t,e){return et.maxX?[]:[{x:e,y:t.minY},{x:e,y:t.maxY}]},Nh=function(t,e){return et.maxY?[]:[{x:t.minX,y:e},{x:t.maxX,y:e}]},Ph=function(t,e){return Dh(t,e.x).concat(Nh(t,e.y))},Tl=function(t,e){return Math.abs(t.x-e.x)+Math.abs(t.y-e.y)},kh=function(t,e){var r=-2,n=0;return e.forEach(function(a){a&&(t.x===a.x&&(n+=r),t.y===a.y&&(n+=r))}),n},xd=function(t,e,r,n,a){return Tl(t,e)+Tl(t,r)+kh(t,[e,r,n,a])},Rh=function c(t,e,r,n,a){a===void 0&&(a=0),t.unshift(e[n]),r[n]&&r[n]!==n&&a<=100&&c(t,e,r,r[n],a+1)},Qg=function(t,e){var r=t.indexOf(e);r>-1&&t.splice(r,1)},Bl=function(t,e,r,n){var a=r.x-t.x,i=r.y-t.y,o=n.x-t.x,u=n.y-t.y,l=r.x-e.x,h=r.y-e.y,y=n.x-e.x,D=n.y-e.y,A=a*u-i*o,z=l*D-h*y,K=a*h-i*l,ee=o*D-u*y;return A*z<=0&&K*ee<=0},ad=function(t,e,r){if(r.width||r.height){var n=nd(r),a=n[0],i=n[1],o=n[2],u=n[3];return Bl(t,e,a,i)||Bl(t,e,a,u)||Bl(t,e,i,o)||Bl(t,e,o,u)}return!1},Bh=function(t,e,r,n){var a=[];return t.forEach(function(i){if(i!==e&&(i.x===e.x||i.y===e.y)){if(ad(i,e,r)||ad(i,e,n))return;a.push(i)}}),td(a)},Fh=function(t,e,r,n,a,i,o){var u,l=[],h=(u={},u[e.id]=e,u),y={},D={},A={};D[e.id]=0,A[e.id]=xd(e,r,e);var z=new _d;z.add({id:e.id,value:A[e.id]});var K={};t.forEach(function(Ne){K[Ne.id]=Ne});for(var ee;Object.keys(h).length;){var se=z.minId(!1);if(se)ee=h[se];else break;if(ee===r){var oe=[];return Rh(oe,K,y,r.id),oe}delete h[ee.id],z.remove(ee.id),l.push(ee);var ce=Bh(t,ee,n,a),Me=function(Ie){Ie.forEach(function(Pe){if(l.indexOf(Pe)===-1){var Ye=Pe.id;h[Ye]||(h[Ye]=Pe);var rt=A[ee.id]+Tl(ee,Pe);if(D[Ye]&&rt>=D[Ye]){z.add({id:Ye,value:A[Ye]});return}y[Ye]=ee.id,D[Ye]=rt,A[Ye]=D[Ye]+xd(Pe,r,e,i,o),z.add({id:Ye,value:A[Ye]})}})};Me(ce)}return[e,r]},Gh=function(t,e,r){return!(t.x===e.x&&e.x===r.x||t.y===e.y&&e.y===r.y)},zh=function(t,e,r,n){var a=Tl(t,e),i=Tl(r,e);a=0;i--){var o=t[i];if(o.x===r.x?n.push(o):(n=[o],r.x=o.x),o.y===r.y?a.push(o):(a=[o],r.y=o.y),n.length>2){var u=t.indexOf(n[1]);u>-1&&t.splice(u,1);continue}if(a.length>2){var u=t.indexOf(a[1]);u>-1&&t.splice(u,1)}}return t},_d=function(){function c(){this.arr=[],this.map={},this.arr=[],this.map={}}return c.prototype._innerAdd=function(t,e){for(var r=[0,e-1];r[1]-r[0]>1;){var n=Math.floor((r[0]+r[1])/2);if(this.arr[n].value>t.value)r[1]=n;else if(this.arr[n].value=0;e--)this.map[this.arr[e].id]?t=this.arr[e].id:this.arr.splice(e,1);return t},c.prototype._findFirstId=function(){for(;this.arr.length;){var t=this.arr.shift();if(this.map[t.id])return t.id}},c.prototype.minId=function(t){return t?this._clearAndGetMinId():this._findFirstId()},c}(),Wh=function(t,e){return Math.abs(t.x-e.x)+Math.abs(t.y-e.y)},jh=function(t,e){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},Xh=function(t,e){return[t,e]},Vh=function(t,e,r,n,a){return Ed(Sd(t,e,r,n,a.offset))},Yh={offset:20,maxAllowedDirectionChange:Math.PI/2,maximumLoops:2e3,gridSize:10,directions:[{stepX:1,stepY:0},{stepX:-1,stepY:0},{stepX:0,stepY:1},{stepX:0,stepY:-1}],get penalties(){return{0:0,45:this.gridSize/2,90:this.gridSize/2}},distFunc:Wh,fallbackRoute:Vh},Jg={maxAllowedDirectionChange:Math.PI/4,directions:[{stepX:1,stepY:0},{stepX:1,stepY:1},{stepX:0,stepY:1},{stepX:-1,stepY:1},{stepX:-1,stepY:0},{stepX:-1,stepY:-1},{stepX:0,stepY:-1},{stepX:1,stepY:-1}],distFunc:jh,fallbackRoute:Xh},Gu=function(t,e){var r=Math.round(Math.abs(t/e)),n=t<0?-1:1;return r<0?0:n*r},Hh=function(t,e,r){var n={};return t.forEach(function(a){if(!!a)for(var i=kl(a.getBBox(),r),o=Gu(i.minX,e);o<=Gu(i.maxX,e);o+=1)for(var u=Gu(i.minY,e);u<=Gu(i.maxY,e);u+=1)n["".concat(o,"|||").concat(u)]=!0}),n},id=function(t,e){var r=e.x-t.x,n=e.y-t.y;return r||n?Math.atan2(n,r):0},Md=function(t,e){var r=Math.abs(t-e);return r>Math.PI?2*Math.PI-r:r},Cd=function(t,e,r){for(var n=Infinity,a=0,i=e.length;al.minX&&e.xl.minY&&e.y0&&Ie>0;){var lr=ce.minId((Ie+1)%30==0);if(lr)Pe=z[lr];else break;if(fr["".concat(Pe.x,"|||").concat(Pe.y)])return Zh(Pe,ee,h,e,t,y,u);delete z[Pe.id],ce.remove(Pe.id),K[Pe.id]=!0;for(var Me=0;Mei.maxAllowedDirectionChange)&&!l[Kt])){z[Kt]||(z[Kt]=rt);var Yr=o[Bt];Ke=i.distFunc(Pe,rt)+(isNaN(Yr)?u:Yr),mt=se[Pe.id]+Ke;var Xr=se[Kt];Xr&&mt>=Xr||(ee[Kt]=Pe,se[Kt]=mt,oe[Kt]=mt+Cd(rt,A,i.distFunc),ce.add({id:Kt,value:oe[Kt]}))}}Ie-=1}return i.fallbackRoute(t,e,r,n,i)};Mc("polyline",{options:{color:Kr.defaultEdge.color,size:Kr.defaultEdge.size,style:{radius:0,offset:15,x:0,y:0,stroke:Kr.defaultEdge.style.stroke,lineAppendWidth:Kr.defaultEdge.style.lineAppendWidth},labelCfg:{style:{fill:Kr.edgeLabel.style.fill,fontSize:Kr.edgeLabel.style.fontSize,fontFamily:Kr.windowFontFamily}},routeCfg:{obstacles:[],maxAllowedDirectionChange:Math.PI,maximumLoops:500,gridSize:10},stateStyles:(0,w.__assign)({},Kr.edgeStateStyles)},shapeType:"polyline",labelPosition:"center",drawShape:function(t,e){var r=this.getShapeStyle(t);r.radius===0&&delete r.radius;var n=e.addShape("path",{className:"edge-shape",name:"edge-shape",attrs:r});return e.shapeMap["edge-shape"]=n,n},getShapeStyle:function(t){var e=this.options.style,r={stroke:t.color},n=(0,b.mix)({},e,r,t.style);t=this.getPathPoints(t),this.radius=n.radius,this.offset=n.offset;var a=t.startPoint,i=t.endPoint,o=this.getControlPoints(t),u=[a];o&&(u=u.concat(o)),u.push(i);var l=t.sourceNode,h=t.targetNode,y=n.radius,D=this.options.routeCfg,A=(0,b.mix)({},D,t.routeCfg);A.offset=n.offset;var z=this.getPath(u,l,h,y,A,!Boolean(o));((0,b.isArray)(z)&&z.length<=1||(0,b.isString)(z)&&z.indexOf("L")===-1)&&(z="M0 0, L0 0"),(isNaN(a.x)||isNaN(a.y)||isNaN(i.x)||isNaN(i.y))&&(z="M0 0, L0 0");var K=(0,b.mix)({},Kr.defaultEdge.style,n,{lineWidth:t.size,path:z});return K},updateShapeStyle:function(t,e){var r=e.getContainer();if(!!e.isVisible()){var n={stroke:t.color},a=r.shapeMap["edge-shape"]||r.find(function(Me){return Me.get("className")==="edge-shape"})||e.getKeyShape(),i=t.size;t=this.getPathPoints(t);var o=t.startPoint,u=t.endPoint,l=this.getControlPoints(t),h=[o];l&&(h=h.concat(l)),h.push(u);var y=a.attr(),D=(0,b.mix)({},n,y,t.style),A=t.sourceNode,z=t.targetNode,K=D.radius,ee=this.options.routeCfg,se=(0,b.mix)({},ee,t.routeCfg);se.offset=D.offset;var oe=this.getPath(h,A,z,K,se,!Boolean(l));((0,b.isArray)(oe)&&oe.length<=1||(0,b.isString)(oe)&&oe.indexOf("L")===-1)&&(oe="M0 0, L0 0"),(isNaN(o.x)||isNaN(o.y)||isNaN(u.x)||isNaN(u.y))&&(oe="M0 0, L0 0"),y.endArrow&&D.endArrow===!1&&(t.style.endArrow={path:""}),y.startArrow&&D.startArrow===!1&&(t.style.startArrow={path:""});var ce=(0,b.mix)(n,a.attr(),{lineWidth:i,path:oe},t.style);a&&a.attr(ce)}},getPath:function(t,e,r,n,a,i){var o=a.offset,u=a.obstacles,l=a.simple;if(!o||t.length>2||i===!1){if(n)return wd(t,n);var h=[];return(0,b.each)(t,function(z,K){K===0?h.push(["M",z.x,z.y]):h.push(["L",z.x,z.y])}),h}l!==!1&&!(u==null?void 0:u.length)&&(l=!0);var y=l?Sd(t[t.length-1],t[0],r,e,o):Kh(t[0],t[t.length-1],e,r,a);if(!y||!y.length)return"M0 0, L0 0";if(n){var D=wd(y,n);return D}y=Uh(y);var A=Ni.pointsToPolygon(y);return A}},"single-edge");var Id=Xo.cloneEvent,Od=Xo.isNaN,Ad=Math.abs,$h=10,Qh=["shift","ctrl","alt","control"],Jh={getDefaultCfg:function(){return{direction:"both",enableOptimize:!1,scalableRange:0,allowDragOnItem:!1}},getEvents:function(){return{mousedown:"onMouseDown",drag:"onDragMove",dragend:"onMouseUp","canvas:click":"onMouseUp",keyup:"onKeyUp",focus:"onKeyUp",keydown:"onKeyDown",touchstart:"onTouchStart",touchmove:"onTouchMove",touchend:"onMouseUp"}},updateViewport:function(t){var e=this.origin,r=+t.clientX,n=+t.clientY;if(!(Od(r)||Od(n))){var a=r-e.x,i=n-e.y;this.get("direction")==="x"?i=0:this.get("direction")==="y"&&(a=0),this.origin={x:r,y:n};var o=this.graph.get("width"),u=this.graph.get("height"),l=this.graph.get("canvas").getCanvasBBox(),h=this.scalableRange,y=this.scalableRange;h<1&&h>-1&&(h=o*h,y=u*y),(l.minX<=o+h&&l.minX+a>o+h||l.maxX+h>=0&&l.maxX+h+a<0)&&(a=0),(l.minY<=u+y&&l.minY+i>u+y||l.maxY+y>=0&&l.maxY+y+i<0)&&(i=0),this.graph.translate(a,i)}},onTouchStart:function(t){var e=this,r=t.originalEvent.touches,n=r[0],a=r[1];n&&a||(t.preventDefault(),this.mousedown=!0,e.onDragStart(t))},onMouseDown:function(t){this.mousedown=!0},onDragMove:function(t){!this.mousedown||(this.dragstart?this.onDrag(t):(this.dragstart=!0,this.onDragStart(t)))},onDragStart:function(t){var e=this,r=t.originalEvent;if(!(r&&t.name!=="touchstart"&&r.button!==0)&&!(t.name!=="touchstart"&&typeof window!="undefined"&&window.event&&!window.event.buttons&&!window.event.button)&&!!this.shouldBegin(t,this)&&!e.keydown&&!!this.allowDrag(t)){if(e.origin={x:t.clientX,y:t.clientY},e.dragging=!1,this.enableOptimize){for(var n=this.graph,a=n.getEdges(),i=0,o=a.length;iu)for(var A=n.getNodes(),z=0,K=A.length;z-1?e.keydown=!0:e.keydown=!1)},onKeyUp:function(){this.keydown=!1,this.origin=null,this.dragging=!1,this.dragbegin=!1},allowDrag:function(t){var e,r,n=t.target,a=n&&n.isCanvas&&n.isCanvas();if((0,b.isBoolean)(this.allowDragOnItem)&&!this.allowDragOnItem&&!a)return!1;if((0,b.isObject)(this.allowDragOnItem)){var i=this.allowDragOnItem,o=i.node,u=i.edge,l=i.combo,h=(r=(e=t.item)===null||e===void 0?void 0:e.getType)===null||r===void 0?void 0:r.call(e);if(!o&&h==="node"||!u&&h==="edge"||!l&&h==="combo")return!1}return!0}},qh={getDefaultCfg:function(){return{updateEdge:!0,delegateStyle:{},enableDelegate:!1,onlyChangeComboSize:!1,comboActiveState:"",selectedState:"selected",enableOptimize:!1,enableDebounce:!1,enableStack:!0}},getEvents:function(){return{"node:mousedown":"onMouseDown",drag:"onDragMove",dragend:"onDragEnd","combo:dragenter":"onDragEnter","combo:dragleave":"onDragLeave","combo:drop":"onDropCombo","node:drop":"onDropNode","canvas:drop":"onDropCanvas",touchstart:"onTouchStart",touchmove:"onTouchMove",touchend:"onDragEnd"}},validationCombo:function(t){if(!this.origin||!t||t.destroyed)return!1;var e=t.getType();return e==="combo"},onTouchStart:function(t){if(!!t.item){var e=this;try{var r=t.originalEvent.touches,n=r[0],a=r[1];if(n&&a)return;t.preventDefault()}catch(i){console.warn("Touch original event not exist!")}this.mousedown={item:t.item,target:t.target},this.dragstart=!0,e.onDragStart(t)}},onTouchMove:function(t){var e=this;try{var r=t.originalEvent.touches,n=r[0],a=r[1];if(n&&a){e.onDragEnd(t);return}t.preventDefault()}catch(i){console.warn("Touch original event not exist!")}e.onDrag(t)},onMouseDown:function(t){this.mousedown={item:t.item,target:t.target}},onDragMove:function(t){var e,r;if(((r=(e=t.item)===null||e===void 0?void 0:e.getType)===null||r===void 0?void 0:r.call(e))!=="node"){this.onDragEnd();return}!this.mousedown||(this.dragstart?this.onDrag((0,w.__assign)((0,w.__assign)({},t),this.mousedown)):(this.dragstart=!0,this.onDragStart(t)))},onDragStart:function(t){var e=this;if(this.currentShouldEnd=!0,!!this.shouldBegin((0,w.__assign)((0,w.__assign)({},t),this.mousedown),this)){var r=this.mousedown,n=r.item,a=r.target;if(!(!n||n.destroyed||n.hasLocked())){var i=n.getContainer();if(i.set("capture",!1),this.cachedCaptureItems||(this.cachedCaptureItems=[]),this.cachedCaptureItems.push(n),a){var o=a.get("isAnchorPoint");if(o)return}var u=this.graph;this.targets=[],this.targetCombo=null;var l=u.findAllByState("node",this.selectedState),h=n.get("id"),y=l.filter(function(z){var K=z.get("id");return h===K});if(y.length===0?this.targets.push(n):l.length>1?l.forEach(function(z){var K=z.hasLocked();K||e.targets.push(z)}):this.targets.push(n),this.graph.get("enabledStack")&&this.enableStack){var D=[];this.targets.forEach(function(z){var K=z.getModel(),ee=K.x,se=K.y,oe=K.id;D.push({x:ee,y:se,id:oe})}),this.set("beforeDragNodes",D)}if(this.hidenEdge={},this.get("updateEdge")&&this.enableOptimize&&!this.enableDelegate&&this.targets.forEach(function(z){var K=z.getEdges();K.forEach(function(ee){!ee.isVisible()||(e.hidenEdge[ee.getID()]=!0,ee.hide())})}),this.origin={x:t.x,y:t.y},this.point={},this.originPoint={},typeof window!="undefined"){var A=this;this.handleDOMContextMenu=function(){return A.onDragEnd()},document.body.addEventListener("contextmenu",this.handleDOMContextMenu)}}}},onDrag:function(t){var e=this;if(!(!this.mousedown||!this.origin)&&!!this.shouldUpdate(t,this))if(this.get("enableDelegate"))this.updateDelegate(t);else if(this.enableDebounce)this.debounceUpdate({targets:this.targets,graph:this.graph,point:this.point,origin:this.origin,evt:t,updateEdge:this.get("updateEdge"),onlyChangeComboSize:this.onlyChangeComboSize,updateParentCombos:this.updateParentCombos});else{var r={};this.targets.map(function(n){e.update(n,t);var a=n.getModel().comboId;a&&(r[a]=e.graph.findById(a))}),this.onlyChangeComboSize&&this.updateParentCombos()}},onDragEnd:function(t){var e=this,r;if(this.mousedown=!1,this.dragstart=!1,!!this.origin){(r=this.cachedCaptureItems)===null||r===void 0||r.forEach(function(i){var o=i.getContainer();o.set("capture",!0)}),this.cachedCaptureItems=[],this.delegateRect&&(this.delegateRect.remove(),this.delegateRect=null),this.get("updateEdge")&&this.enableOptimize&&!this.enableDelegate&&this.targets.forEach(function(i){var o=i.getEdges();o.forEach(function(u){e.hidenEdge[u.getID()]&&u.show(),u.refresh()})}),this.hidenEdge={};var n=this.graph;if(n.get("enabledStack")&&this.enableStack){var a={before:{nodes:[],edges:[],combos:[]},after:{nodes:[],edges:[],combos:[]}};this.get("beforeDragNodes").forEach(function(i){a.before.nodes.push(i)}),this.targets.forEach(function(i){var o=i.getModel(),u=o.x,l=o.y,h=o.id;a.after.nodes.push({x:u,y:l,id:h})}),n.pushStack("update",(0,b.clone)(a))}n.emit("dragnodeend",{items:this.targets,targetItem:null}),this.point={},this.origin=null,this.originPoint={},this.targets.length=0,this.targetCombo=null,typeof window!="undefined"&&document.body.removeEventListener("contextmenu",this.handleDOMContextMenu)}},onDropCombo:function(t){var e=t.item;if(this.currentShouldEnd=this.shouldEnd(t,e,this),this.updatePositions(t,!this.currentShouldEnd),!(!this.currentShouldEnd||!this.validationCombo(e))){var r=this.graph;if(this.comboActiveState&&r.setItemState(e,this.comboActiveState,!1),this.targetCombo=e,this.onlyChangeComboSize)r.updateCombos();else{var n=e.getModel();this.targets.map(function(a){var i=a.getModel();i.comboId!==n.id&&r.updateComboTree(a,n.id)}),r.updateCombo(e)}r.emit("dragnodeend",{items:this.targets,targetItem:this.targetCombo})}},onDropCanvas:function(t){var e=this.graph;this.currentShouldEnd=this.shouldEnd(t,void 0,this),this.updatePositions(t,!this.currentShouldEnd),!(!this.targets||this.targets.length===0||!this.currentShouldEnd)&&(this.onlyChangeComboSize?this.updateParentCombos():this.targets.map(function(r){var n=r.getModel();n.comboId&&e.updateComboTree(r)}))},onDropNode:function(t){if(!(!this.targets||this.targets.length===0)){var e=this,r=t.item,n=e.graph,a=r.getModel().comboId,i=a?n.findById(a):void 0;if(this.currentShouldEnd=this.shouldEnd(t,i,this),this.updatePositions(t,!this.currentShouldEnd),!!this.currentShouldEnd){if(this.onlyChangeComboSize)this.updateParentCombos();else if(a){var o=n.findById(a);e.comboActiveState&&n.setItemState(o,e.comboActiveState,!1),this.targets.map(function(u){var l=u.getModel();a!==l.comboId&&n.updateComboTree(u,a)}),n.updateCombo(o)}else this.targets.map(function(u){var l=u.getModel();l.comboId&&n.updateComboTree(u)});n.emit("dragnodeend",{items:this.targets,targetItem:r})}}},onDragEnter:function(t){var e=t.item;if(!!this.validationCombo(e)){var r=this.graph;this.comboActiveState&&r.setItemState(e,this.comboActiveState,!0)}},onDragLeave:function(t){var e=t.item;if(!!this.validationCombo(e)){var r=this.graph;this.comboActiveState&&r.setItemState(e,this.comboActiveState,!1)}},updatePositions:function(t,e){var r=this;!this.targets||this.targets.length===0||(this.get("enableDelegate")?this.enableDebounce?this.debounceUpdate({targets:this.targets,graph:this.graph,point:this.point,origin:this.origin,evt:t,updateEdge:this.get("updateEdge"),onlyChangeComboSize:this.onlyChangeComboSize,updateParentCombos:this.updateParentCombos}):e||this.targets.map(function(n){return r.update(n,t)}):this.targets.map(function(n){return r.update(n,t,e)}))},update:function(t,e,r){var n=this.origin,a=t.get("model"),i=t.get("id");this.point[i]||(this.point[i]={x:a.x||0,y:a.y||0});var o=e.x-n.x+this.point[i].x,u=e.y-n.y+this.point[i].y;r&&(o+=n.x-e.x,u+=n.y-e.y);var l={x:o,y:u};this.get("updateEdge")?this.graph.updateItem(t,l,!1):t.updatePosition(l)},debounceUpdate:(0,b.debounce)(function(c){var t=c.targets,e=c.graph,r=c.point,n=c.origin,a=c.evt,i=c.updateEdge,o=c.onlyChangeComboSize,u=c.updateParentCombos;t.map(function(l){var h=l.get("model"),y=l.get("id");r[y]||(r[y]={x:h.x||0,y:h.y||0});var D=a.x-n.x+r[y].x,A=a.y-n.y+r[y].y,z={x:D,y:A};i?e.updateItem(l,z,!1):l.updatePosition(z)}),o&&u(e,t)},50,!0),updateDelegate:function(t){var e=this.graph;if(this.delegateRect){var D=t.x-this.origin.x+this.originPoint.minX,A=t.y-this.origin.y+this.originPoint.minY;this.delegateRect.attr({x:D,y:A})}else{var r=e.get("group"),n=(0,b.deepMix)({},wo.delegateStyle,this.delegateStyle),a=this.calculationGroupPosition(t),i=a.x,o=a.y,u=a.width,l=a.height,h=a.minX,y=a.minY;this.originPoint={x:i,y:o,width:u,height:l,minX:h,minY:y},this.delegateRect=r.addShape("rect",{attrs:(0,w.__assign)({width:u,height:l,x:i,y:o},n),name:"rect-delegate-shape"}),this.delegate=this.delegateRect,this.delegateRect.set("capture",!1)}},calculationGroupPosition:function(t){var e=this.targets;e.length===0&&e.push(t.item);for(var r=Infinity,n=-Infinity,a=Infinity,i=-Infinity,o=0;on&&(n=D),A>i&&(i=A)}var z=Math.floor(r),K=Math.floor(a),ee=Math.ceil(n)-Math.floor(r),se=Math.ceil(i)-Math.floor(a);return{x:z,y:K,width:ee,height:se,minX:r,minY:a}},updateParentCombos:function(t,e){var r=t||this.graph,n=e||this.targets,a={};n==null||n.forEach(function(i){var o=i.getModel().comboId;o&&(a[o]=r.findById(o))}),Object.values(a).forEach(function(i){i&&r.updateCombo(i)})}},ev={getDefaultCfg:function(){return{trigger:"mouseenter",activeState:"active",inactiveState:"inactive",resetSelected:!1,shouldUpdate:function(){return!0}}},getEvents:function(){return this.get("trigger")==="mouseenter"?{"node:mouseenter":"setAllItemStates","combo:mouseenter":"setAllItemStates","node:mouseleave":"clearActiveState","combo:mouseleave":"clearActiveState"}:{"node:click":"setAllItemStates","combo:click":"setAllItemStates","canvas:click":"clearActiveState","node:touchstart":"setOnTouchStart","combo:touchstart":"setOnTouchStart","canvas:touchstart":"clearOnTouchStart"}},setOnTouchStart:function(t){var e=this;try{var r=t.originalEvent.touches,n=r[0],a=r[1];if(n&&a)return;t.preventDefault()}catch(i){console.warn("Touch original event not exist!")}e.setAllItemStates(t)},clearOnTouchStart:function(t){var e=this;try{var r=t.originalEvent.touches,n=r[0],a=r[1];if(n&&a)return;t.preventDefault()}catch(i){console.warn("Touch original event not exist!")}e.clearActiveState(t)},setAllItemStates:function(t){clearTimeout(this.timer),this.throttleSetAllItemStates(t,this)},clearActiveState:function(t){var e=this;this.timer=setTimeout(function(){e.throttleClearActiveState(t,e)},50)},throttleSetAllItemStates:(0,b.throttle)(function(c,t){var e=c.item,r=t.graph;if(!(!r||r.destroyed)&&(t.item=e,!!t.shouldUpdate(c.item,{event:c,action:"activate"},t))){for(var n=t.activeState,a=t.inactiveState,i=r.getNodes(),o=r.getCombos(),u=r.getEdges(),l=r.get("vedges"),h=i.length,y=o.length,D=u.length,A=l.length,z=t.inactiveItems||{},K=t.activeItems||{},ee=0;ee-1||(this.trigger=Nd,console.warn("Behavior brush-select \u7684 trigger \u53C2\u6570\u4E0D\u5408\u6CD5\uFF0C\u8BF7\u8F93\u5165 'drag'\u3001'shift'\u3001'ctrl' \u6216 'alt'")),this.trigger==="drag"?{dragstart:"onMouseDown",drag:"onMouseMove",dragend:"onMouseUp","canvas:click":"clearStates"}:{dragstart:"onMouseDown",drag:"onMouseMove",dragend:"onMouseUp","canvas:click":"clearStates",keyup:"onKeyUp",keydown:"onKeyDown"}},onMouseDown:function(t){var e=t.item,r=this.brush;e||this.trigger!=="drag"&&!this.keydown||(this.selectedNodes&&this.selectedNodes.length!==0&&this.clearStates(),r||(r=this.createBrush()),this.originPoint={x:t.canvasX,y:t.canvasY},r.attr({width:0,height:0}),r.show(),this.dragging=!0)},onMouseMove:function(t){!this.dragging||this.trigger!=="drag"&&!this.keydown||this.updateBrush(t)},onMouseUp:function(t){var e=this.graph;!this.brush&&!this.dragging||this.trigger!=="drag"&&!this.keydown||(this.brush.remove(!0),this.brush=null,this.getSelectedNodes(t),this.dragging=!1)},clearStates:function(){var t=this,e=t.graph,r=t.selectedState,n=e.findAllByState("node",r),a=e.findAllByState("edge",r),i=e.findAllByState("combo",r);n.forEach(function(o){return e.setItemState(o,r,!1)}),a.forEach(function(o){return e.setItemState(o,r,!1)}),i.forEach(function(o){return e.setItemState(o,r,!1)}),this.selectedNodes=[],this.selectedEdges=[],this.selectedCombos=[],this.onDeselect&&this.onDeselect(this.selectedNodes,this.selectedEdges,this.selectedCombos),e.emit("nodeselectchange",{selectedItems:{nodes:[],edges:[],combos:[]},select:!1})},isBBoxCenterInRect:function(t,e,r,n,a){var i=t.getBBox();return i.centerX>=e&&i.centerX<=r&&i.centerY>=n&&i.centerY<=a},getSelectedNodes:function(t){var e=this,r=this,n=r.graph,a=r.originPoint,i=r.shouldUpdate,o=r.isBBoxCenterInRect,u=this.selectedState,l={x:t.x,y:t.y},h=n.getPointByCanvas(a.x,a.y),y=Fl(l.x,h.x),D=Ld(l.x,h.x),A=Fl(l.y,h.y),z=Ld(l.y,h.y),K=[],ee=[];n.getNodes().forEach(function(ce){if(ce.isVisible()&&o(ce,y,D,A,z)&&i(ce,"select",e)){K.push(ce);var Me=ce.getModel();ee.push(Me.id),n.setItemState(ce,u,!0)}});var se=[];this.includeEdges&&K.forEach(function(ce){var Me=ce.getOutEdges();Me.forEach(function(Ne){if(!!Ne.isVisible()){var Ie=Ne.getModel(),Pe=Ie.source,Ye=Ie.target;ee.includes(Pe)&&ee.includes(Ye)&&i(Ne,"select",e)&&(se.push(Ne),n.setItemState(Ne,e.selectedState,!0))}})});var oe=[];this.includeCombos&&n.getCombos().forEach(function(ce){if(ce.isVisible()&&o(ce,y,D,A,z)&&i(ce,"select",e)){oe.push(ce);var Me=ce.getModel();ee.push(Me.id),n.setItemState(ce,u,!0)}}),this.selectedEdges=se,this.selectedNodes=K,this.selectedCombos=oe,this.onSelect&&this.onSelect(K,se,oe),n.emit("nodeselectchange",{selectedItems:{nodes:K,edges:se,combos:oe},select:!0})},createBrush:function(){var t=this,e=t.graph.get("canvas").addShape("rect",{attrs:t.brushStyle,capture:!1,name:"brush-shape"});return this.brush=e,this.delegate=e,e},updateBrush:function(t){var e=this.originPoint;this.brush.attr({width:Dd(t.canvasX-e.x),height:Dd(t.canvasY-e.y),x:Fl(t.canvasX,e.x),y:Fl(t.canvasY,e.y)})},onKeyDown:function(t){var e=t.key;if(!!e){var r=this.trigger.toLowerCase(),n=e.toLowerCase();n===r||n==="control"&&r==="ctrl"||n==="ctrl"&&r==="control"?this.keydown=!0:this.keydown=!1}},onKeyUp:function(){this.brush&&(this.brush.remove(!0),this.brush=null,this.dragging=!1),this.keydown=!1}},Pd="shift",nv=["shift","ctrl","alt","control"],av={getDefaultCfg:function(){return{multiple:!0,trigger:Pd,selectedState:"selected",selectNode:!0,selectEdge:!1,selectCombo:!0}},getEvents:function(){var t=this;return nv.indexOf(t.trigger.toLowerCase())>-1||(t.trigger=Pd,console.warn("Behavior click-select \u7684 trigger \u53C2\u6570\u4E0D\u5408\u6CD5\uFF0C\u8BF7\u8F93\u5165 'drag'\u3001'shift'\u3001'ctrl' \u6216 'alt'")),t.multiple?{"node:click":"onClick","combo:click":"onClick","edge:click":"onClick","canvas:click":"onCanvasClick",keyup:"onKeyUp",keydown:"onKeyDown"}:{"node:click":"onClick","combo:click":"onClick","edge:click":"onClick","canvas:click":"onCanvasClick"}},onClick:function(t){var e=this,r=t.item;if(!(!r||r.destroyed)){var n=r.getType(),a=e.graph,i=e.keydown,o=e.multiple,u=e.shouldUpdate,l=e.shouldBegin;if(!!l(t,e)){if(!i||!o){var h=a.findAllByState("node",e.selectedState).concat(a.findAllByState("edge",e.selectedState)).concat(a.findAllByState("combo",e.selectedState));(0,b.each)(h,function(K){K!==r&&a.setItemState(K,e.selectedState,!1)})}var y=function(){switch(n){case"node":return e.selectNode;case"edge":return e.selectEdge;case"combo":return e.selectCombo;default:return!1}}();if(!y){var D=a.findAllByState("node",e.selectedState),A=a.findAllByState("edge",e.selectedState),z=a.findAllByState("combo",e.selectedState);a.emit("nodeselectchange",{selectedItems:{nodes:D,edges:A,combos:z},select:!1});return}if(r.hasState(e.selectedState)){u(t,e)&&a.setItemState(r,e.selectedState,!1);var D=a.findAllByState("node",e.selectedState),A=a.findAllByState("edge",e.selectedState),z=a.findAllByState("combo",e.selectedState);a.emit("nodeselectchange",{target:r,selectedItems:{nodes:D,edges:A,combos:z},select:!1})}else{u(t,e)&&a.setItemState(r,e.selectedState,!0);var D=a.findAllByState("node",e.selectedState),A=a.findAllByState("edge",e.selectedState),z=a.findAllByState("combo",e.selectedState);a.emit("nodeselectchange",{target:r,selectedItems:{nodes:D,edges:A,combos:z},select:!0})}}}},onCanvasClick:function(t){var e=this,r=this,n=r.graph,a=r.shouldBegin;if(!!a(t,this)){var i=n.findAllByState("node",this.selectedState);(0,b.each)(i,function(l){n.setItemState(l,e.selectedState,!1)});var o=n.findAllByState("edge",this.selectedState);(0,b.each)(o,function(l){n.setItemState(l,e.selectedState,!1)});var u=n.findAllByState("combo",this.selectedState);(0,b.each)(u,function(l){n.setItemState(l,e.selectedState,!1)}),n.emit("nodeselectchange",{selectedItems:{nodes:[],edges:[],combos:[]},select:!1})}},onKeyDown:function(t){var e=this,r=t.key;!r||(r.toLowerCase()===this.trigger.toLowerCase()||r.toLowerCase()==="control"?e.keydown=!0:e.keydown=!1)},onKeyUp:function(){var t=this;t.keydown=!1}},iv=q.vs,kd=.05,ov={getDefaultCfg:function(){return{sensitivity:2,minZoom:void 0,maxZoom:void 0,enableOptimize:!1,optimizeZoom:.1,fixSelectedItems:{fixAll:!1,fixLineWidth:!1,fixLabel:!1,fixState:"selected"},animate:!1,animateCfg:{duration:500}}},getEvents:function(){var t=this.fixSelectedItems;return t.fixState||(t.fixState="selected"),t.fixAll&&(t.fixLineWidth=!0,t.fixLabel=!0),{wheel:"onWheel",touchstart:"onTouchStart",touchmove:"onTouchMove",touchend:"onTouchEnd"}},onTouchStart:function(t){var e=t.originalEvent.touches,r=e[0],n=e[1];t.preventDefault(),!!n&&(this.shouldBegin&&!this.shouldBegin(t,this)||(this.startPoint={pageX:r.pageX,pageY:r.pageY},this.moveable=!0,n&&(this.endPoint={pageX:n.pageX,pageY:n.pageY}),this.originScale=this.graph.getZoom()||this.currentScale||1))},onTouchMove:function(t){if(!!this.moveable){t.preventDefault();var e=t.originalEvent.touches,r=e[0],n=e[1];if(!!n){this.endPoint||(this.endPoint={pageX:n.pageX,pageY:n.pageY});var a=function(K,ee){return Math.hypot(ee.x-K.x,ee.y-K.y)},i=a({x:r.pageX,y:r.pageY},{x:n.pageX,y:n.pageY})/a({x:this.startPoint.pageX,y:this.startPoint.pageY},{x:this.endPoint.pageX,y:this.endPoint.pageY}),o=this.originScale*i;this.currentScale=o;var u=this.get("minZoom")||this.graph.get("minZoom"),l=this.get("maxZoom")||this.graph.get("maxZoom");if(!(o>l||oA?y=A:yn/2?h-=D.width:h+=this.offset,y>a/2?y-=D.height:y+=this.offset;var A="".concat(h,"px"),z="".concat(y,"px");(0,Yn.Z)(this.container,{left:A,top:z,visibility:"visible"})},createTooltip:function(t){var e=t.get("el");e.style.position="relative";var r=(0,Na.Z)('
      '));return e.parentNode.appendChild(r),(0,Yn.Z)(r,{position:"absolute",visibility:"visible"}),this.width=t.get("width"),this.height=t.get("height"),this.container=r,this.graph.get("tooltips").push(r),r}},sv=(0,w.__assign)({getDefaultCfg:function(){return{item:"node",offset:12,formatText:function(e){return e.label}}},getEvents:function(){return{"node:mouseenter":"onMouseEnter","node:mouseleave":"onMouseLeave","node:mousemove":"onMouseMove",afterremoveitem:"onMouseLeave"}}},Rd),uv=(0,w.__assign)({getDefaultCfg:function(){return{item:"edge",offset:12,formatText:function(e){return"source: ".concat(e.source," target: ").concat(e.target)}}},getEvents:function(){return{"edge:mouseenter":"onMouseEnter","edge:mouseleave":"onMouseLeave","edge:mousemove":"onMouseMove",afterremoveitem:"onMouseLeave"}}},Rd),Bd="click",fv=["click","dblclick"],cv={getDefaultCfg:function(){return{trigger:Bd,onChange:function(){}}},getEvents:function(){var t,e;return fv.includes(this.trigger)?e=this.trigger:(e=Bd,console.warn("Behavior collapse-expand \u7684 trigger \u53C2\u6570\u4E0D\u5408\u6CD5\uFF0C\u8BF7\u8F93\u5165 'click' \u6216 'dblclick'")),t={},t["node:".concat(e)]="onNodeClick",t.touchstart="onNodeClick",t},onNodeClick:function(t){var e=t.item;if(!!e){var r=this.graph.findDataById(e.get("id"));if(!!r){var n=r.children;if(!(!n||n.length===0)){var a=!r.collapsed;!this.shouldBegin(t,a,this)||(r.collapsed=a,e.getModel().collapsed=a,this.graph.emit("itemcollapsed",{item:t.item,collapsed:a}),!!this.shouldUpdate(t,a,this)&&(this.onChange(e,a,this),this.graph.layout()))}}}}},lv=Xo.calculationItemsBBox,dv=function c(t,e){if(e(t)!==!1&&t){var r=t.get("combos");if(r.length===0)return!1;(0,b.each)(r,function(n){c(n,e)})}},hv={getDefaultCfg:function(){return{enableDelegate:!1,delegateStyle:{},onlyChangeComboSize:!1,activeState:"",selectedState:"selected",enableStack:!0}},getEvents:function(){return{"combo:dragstart":"onDragStart","combo:drag":"onDrag","combo:dragend":"onDragEnd","combo:drop":"onDrop","node:drop":"onNodeDrop","combo:dragenter":"onDragEnter","combo:dragleave":"onDragLeave"}},validationCombo:function(t){var e=t.item;if(!e||e.destroyed||!this.shouldUpdate(t,this))return!1;var r=e.getType();return r==="combo"},onDragStart:function(t){var e=this,r=this.graph,n=t.item;if(this.currentShouldEnd=!0,!!this.validationCombo(t)){this.targets=[];var a=r.findAllByState("combo",this.selectedState),i=n.get("id"),o=a.filter(function(l){var h=l.get("id");return i===h});o.length===0?this.targets.push(n):this.targets=a;var u=[];this.targets.forEach(function(l){var h=l.getModel(),y=h.x,D=h.y,A=h.id;u.push({x:y,y:D,id:A})}),this.set("beforeDragItems",u),this.activeState&&this.targets.map(function(l){var h=l.getModel();if(h.parentId){var y=r.findById(h.parentId);y&&r.setItemState(y,e.activeState,!0)}}),this.point={},this.originPoint={},this.origin={x:t.x,y:t.y},this.currentItemChildCombos=[],dv(n,function(l){if(l.destroyed)return!1;var h=l.getModel();return e.currentItemChildCombos.push(h.id),!0})}},onDrag:function(t){var e=this;if(!!this.origin&&!!this.validationCombo(t))if(this.enableDelegate)this.updateDelegate(t);else{if(this.activeState){var r=this.graph,n=t.item,a=n.getModel(),i=r.getCombos(),o=n.getBBox(),u=o.centerX,l=o.centerY,h=o.width,y=i.filter(function(D){var A=D.getModel();return a.parentId,A.id!==a.id&&!e.currentItemChildCombos.includes(A.id)});y.map(function(D){var A=D.getBBox(),z=A.centerX,K=A.centerY,ee=A.width,se=u-z,oe=l-K,ce=2*Math.sqrt(se*se+oe*oe);h+ee-ce>.8*h?r.setItemState(D,e.activeState,!0):r.setItemState(D,e.activeState,!1)})}(0,b.each)(this.targets,function(D){e.updateCombo(D,t)}),this.onlyChangeComboSize&&this.updateParentCombos()}},updatePositions:function(t,e){var r=this;(this.enableDelegate||e)&&(0,b.each)(this.targets,function(n){r.updateCombo(n,t,e)})},onDrop:function(t){var e=this,r=t.item;if(this.currentShouldEnd=this.shouldEnd(t,r,this),this.updatePositions(t,!this.currentShouldEnd),!(!this.currentShouldEnd||!r||!this.targets||r.destroyed)){var n=this.graph,a=r.getModel();this.targets.map(function(i){var o=i.getModel();o.parentId!==a.id?(e.activeState&&n.setItemState(r,e.activeState,!1),e.onlyChangeComboSize?n.updateCombo(i):n.updateComboTree(i,a.id,!1)):n.updateCombo(r)}),this.end(r,t),this.endComparison=!0}},onNodeDrop:function(t){var e=this;if(!(!this.targets||this.targets.length===0)){var r=this.graph,n=t.item,a=n.getModel().comboId,i=a?r.findById(a):void 0;if(this.currentShouldEnd=this.shouldEnd(t,i,this),this.updatePositions(t,!this.currentShouldEnd),!!this.currentShouldEnd){var o;if(a){if(this.activeState){var u=r.findById(a);r.setItemState(u,this.activeState,!1)}this.targets.map(function(l){e.onlyChangeComboSize?r.updateCombo(l):a!==l.getID()&&(o=r.findById(a),a!==l.getModel().parentId&&r.updateComboTree(l,a,!1))})}else this.targets.map(function(l){if(e.onlyChangeComboSize)r.updateCombo(l);else{var h=l.getModel();h.comboId&&r.updateComboTree(l,void 0,!1)}});this.endComparison=!0,this.end(o,t)}}},onDragEnter:function(t){if(!!this.origin&&!!this.validationCombo(t)){var e=t.item,r=this.graph;this.activeState&&r.setItemState(e,this.activeState,!0)}},onDragLeave:function(t){if(!!this.origin&&!!this.validationCombo(t)){var e=t.item,r=this.graph;this.activeState&&r.setItemState(e,this.activeState,!1)}},onDragEnd:function(t){if(!(!this.targets||this.targets.length===0)){var e=t.item;this.currentShouldEnd&&this.updatePositions(t);var r=this.getParentCombo(e.getModel().parentId),n=this.graph;r&&this.activeState&&n.setItemState(r,this.activeState,!1),this.end(void 0,t)}},end:function(t,e){var r=this;if(!!this.origin){var n=this.graph;if(this.delegateShape){var a=n.get("delegateGroup");a.clear(),this.delegateShape=null}if(t&&this.activeState&&n.setItemState(t,this.activeState,!1),!t){var i=n.get("enabledStack")&&this.enableStack,o={before:{nodes:[],edges:[],combos:[].concat(this.get("beforeDragItems"))},after:{nodes:[],edges:[],combos:[]}};this.targets.map(function(u){if(!r.onlyChangeComboSize)n.updateComboTree(u,void 0,i);else{n.updateCombo(u);var l=u.getModel(),h=l.x,y=l.y,D=l.id;o.after.combos.push({x:h,y,id:D}),n.pushStack("update",o)}})}this.point=[],this.origin=null,this.originPoint=null,this.targets.length=0}},traverse:function(t,e,r){var n=this;if(r===void 0&&(r={}),e(t,r)!==!1&&t){var a=t.get("combos");(0,b.each)(a,function(o){n.traverse(o,e,r)});var i=t.get("nodes");(0,b.each)(i,function(o){n.traverse(o,e,r)})}},updateCombo:function(t,e,r){this.updateSingleItem(t,e,r);var n={};this.traverse(t,function(a,i){return a.destroyed?!1:(a.getEdges().forEach(function(o){return i[o.getID()]=o}),!0)},n),Object.values(n).forEach(function(a){return a.refresh()})},updateSingleItem:function(t,e,r){var n=this.origin,a=this.graph,i=t.getModel(),o=t.get("id");this.point[o]||(this.point[o]={x:i.x,y:i.y});var u=e.x-n.x+this.point[o].x,l=e.y-n.y+this.point[o].y;r&&(u+=n.x-e.x,l+=n.y-e.y),a.updateItem(t,{x:u,y:l},!1)},getParentCombo:function(t){var e=this.graph;if(!!t){var r=e.findById(t);if(!!r)return r}},updateDelegate:function(t){var e=this.graph;if(this.delegateShape){var D=t.x-this.origin.x+this.originPoint.minX,A=t.y-this.origin.y+this.originPoint.minY;this.delegateShape.attr({x:D,y:A})}else{var r=e.get("delegateGroup"),n=null;this.targets.length>1?n=lv(this.targets):n=this.targets[0].getBBox();var a=n.x,i=n.y,o=n.width,u=n.height,l=n.minX,h=n.minY;this.originPoint={x:a,y:i,width:o,height:u,minX:l,minY:h};var y=(0,w.__assign)((0,w.__assign)({},wo.delegateStyle),this.delegateStyle);this.delegateShape=r.addShape("rect",{attrs:(0,w.__assign)({width:n.width,height:n.height,x:n.x,y:n.y},y),name:"combo-delegate-shape"}),this.delegateShape.set("capture",!1),this.delegate=this.delegateShape}},updateParentCombos:function(){var t=this,e=t.graph,r=t.targets,n={};r==null||r.forEach(function(a){var i=a.getModel().parentId;i&&(n[i]=e.findById(i))}),Object.values(n).forEach(function(a){a&&e.updateCombo(a)})}},Fd="dblclick",vv=["click","dblclick"],gv={getDefaultCfg:function(){return{trigger:Fd,relayout:!0}},getEvents:function(){var t,e;return vv.includes(this.trigger)?e=this.trigger:(e=Fd,console.warn("Behavior collapse-expand-group \u7684 trigger \u53C2\u6570\u4E0D\u5408\u6CD5\uFF0C\u8BF7\u8F93\u5165 'click' \u6216 'dblclick'")),t={},t["combo:".concat(e)]="onComboClick",t},onComboClick:function(t){var e=t.item,r=this,n=r.graph,a=r.relayout;if(!(!e||e.destroyed||e.getType()!=="combo")){var i=e.getModel(),o=i.id;!o||(n.collapseExpandCombo(o),a&&n.get("layout")?n.layout():n.refreshPositions())}}},pv=Xo.isPolygonsIntersect,yv=Xo.pathToPoints,Gd="shift",mv=["drag","shift","ctrl","alt","control"],Ev=function(t,e){var r,n=t.getKeyShape();if(t.get("type")==="path")r=yv(n.attr("path"));else{var a=n.getCanvasBBox();r=[[a.minX,a.minY],[a.maxX,a.minY],[a.maxX,a.maxY],[a.minX,a.maxY]]}return pv(e,r)},bv={getDefaultCfg:function(){return{delegateStyle:{fill:"#EEF6FF",fillOpacity:.4,stroke:"#DDEEFE",lineWidth:1},onSelect:function(){},onDeselect:function(){},shouldDeselect:void 0,selectedState:"selected",trigger:Gd,includeEdges:!0,selectedEdges:[],selectedNodes:[]}},getEvents:function(){return mv.indexOf(this.trigger.toLowerCase())>-1||(this.trigger=Gd,console.warn("Behavior lasso-select \u7684 trigger \u53C2\u6570\u4E0D\u5408\u6CD5\uFF0C\u8BF7\u8F93\u5165 'drag'\u3001'shift'\u3001'ctrl' \u6216 'alt'")),this.trigger==="drag"?{dragstart:"onDragStart",drag:"onDragMove",dragend:"onDragEnd","canvas:click":"clearStates"}:{dragstart:"onDragStart",drag:"onDragMove",dragend:"onDragEnd",keyup:"onKeyUp",keydown:"onKeyDown","canvas:click":"clearStates"}},onDragStart:function(t){var e=this.lasso,r=t.item;r||this.trigger!=="drag"&&!this.keydown||(this.selectedNodes&&this.selectedNodes.length!==0&&this.clearStates("dragstart"),e||(e=this.createLasso()),this.dragging=!0,this.originPoint={x:t.x,y:t.y},this.points.push(this.originPoint),e.show())},onDragMove:function(t){!this.dragging||this.trigger!=="drag"&&!this.keydown||(this.points.push({x:t.x,y:t.y}),this.updateLasso(t))},onDragEnd:function(t){!this.lasso&&!this.dragging||this.trigger!=="drag"&&!this.keydown||(this.points.push(this.originPoint),this.getSelectedItems(),this.lasso.remove(!0),this.lasso=null,this.points=[],this.dragging=!1)},getLassoPath:function(){var t=this.points,e=[];return t.length&&(t.forEach(function(r,n){n===0?e.push(["M",r.x,r.y]):e.push(["L",r.x,r.y])}),e.push(["L",t[0].x,t[0].y])),e},clearStates:function(t){t===void 0&&(t="canvas:click");var e=this,r=e.graph,n=e.selectedState,a=e.shouldDeselect,i=r.findAllByState("node",n),o=r.findAllByState("edge",n);(!a||a({action:t,nodes:i,edges:o}))&&(i.forEach(function(u){return r.setItemState(u,n,!1)}),o.forEach(function(u){return r.setItemState(u,n,!1)})),this.onDeselect&&this.onDeselect(this.selectedNodes,this.selectedEdges),this.selectedNodes=[],this.selectedEdges=[],r.emit("nodeselectchange",{selectedItems:{nodes:[],edges:[]},select:!1})},getSelectedItems:function(){var t=this,e=this,r=e.graph,n=e.shouldUpdate,a=this.points.map(function(h){return[r.getCanvasByPoint(h.x,h.y).x,r.getCanvasByPoint(h.x,h.y).y]}),i=this.selectedState,o=[],u=[];r.getNodes().forEach(function(h){if(!!h.isVisible()&&Ev(h,a)&&n(h,"select",t)){o.push(h);var y=h.getModel();u.push(y.id),r.setItemState(h,i,!0)}});var l=[];this.includeEdges&&o.forEach(function(h){var y=h.getOutEdges();y.forEach(function(D){if(!!D.isVisible()){var A=D.getModel(),z=A.source,K=A.target;u.includes(z)&&u.includes(K)&&n(D,"select",t)&&(l.push(D),r.setItemState(D,t.selectedState,!0))}})}),this.selectedEdges=l,this.selectedNodes=o,this.onSelect&&this.onSelect(o,l),r.emit("nodeselectchange",{selectedItems:{nodes:o,edges:l},select:!0})},createLasso:function(){var t=this,e=t.graph.get("delegateGroup").addShape("path",{attrs:(0,w.__assign)({path:[]},t.delegateStyle),capture:!1,name:"lasso-shape"});return this.lasso=e,this.delegate=e,this.points=[],e},updateLasso:function(t){var e=this;this.lasso.attr({path:e.getLassoPath()})},onKeyDown:function(t){var e=t.key;!e||(e.toLowerCase()===this.trigger.toLowerCase()?this.keydown=!0:this.keydown=!1)},onKeyUp:function(){this.lasso&&(this.lasso.remove(!0),this.lasso=null,this.points=[],this.dragging=!1),this.keydown=!1}},zd="click",xv=["click","drag"],Ud=void 0,wv=["shift","ctrl","control","alt","meta",void 0],Sv={getDefaultCfg:function(){return{trigger:zd,key:Ud,edgeConfig:{},getEdgeConfig:void 0}},getEvents:function(){var t=this;xv.indexOf(t.trigger.toLowerCase())>-1||(t.trigger=zd,console.warn("Behavior create-edge \u7684 trigger \u53C2\u6570\u4E0D\u5408\u6CD5\uFF0C\u8BF7\u8F93\u5165 'click'\uFF0C'drag'")),t.key&&wv.indexOf(t.key.toLowerCase())===-1&&(t.trigger=Ud,console.warn("Behavior create-edge \u7684 key \u53C2\u6570\u4E0D\u5408\u6CD5\uFF0C\u8BF7\u8F93\u5165 'shift'\uFF0C'ctrl'\uFF0C'alt'\uFF0C'control'\uFF0C\u6216 undefined"));var e;return t.trigger==="drag"?e={"node:dragstart":"onClick","combo:dragstart":"onClick",drag:"updateEndPoint","node:drop":"onClick","combo:drop":"onClick",dragend:"onDragEnd"}:t.trigger==="click"&&(e={"node:click":"onClick",mousemove:"updateEndPoint","edge:click":"cancelCreating","canvas:click":"cancelCreating","combo:click":"onClick"}),t.key&&(e.keydown="onKeyDown",e.keyup="onKeyUp"),e},onDragEnd:function(t){var e=this;if(!(e.key&&!e.keydown)){var r=t.item;(!r||r.getID()===e.source||r.getType()!=="node")&&e.cancelCreating({item:e.edge,x:t.x,y:t.y})}},onClick:function(t){var e=this;if(!(e.key&&!e.keydown)){var r=t.item,n=e.graph,a=r.getModel(),i=e.getEdgeConfig;if(e.addingEdge&&e.edge){if(!e.shouldEnd(t,e))return;var o=void 0;i&&(0,b.isFunction)(i)?o=i({source:e.source,target:a.id},e):o=e.edgeConfig;var u=(0,w.__assign)({target:a.id},o);if(e.source===a.id&&(u.type="loop"),n.emit("beforecreateedge",{}),n.updateItem(e.edge,u,!1),n.get("enabledStack")){var l=(0,w.__assign)((0,w.__assign)({},e.edge.getModel()),{itemType:"edge"}),h={};h.edges=[l],n.pushStack("add",{before:{},after:h})}n.emit("aftercreateedge",{edge:e.edge}),e.edge.getKeyShape().set("capture",!0),e.edge=null,e.addingEdge=!1}else{if(!e.shouldBegin(t,e))return;var o=void 0;i&&(0,b.isFunction)(i)?o=i({source:a.id,target:a.id},e):o=e.edgeConfig,e.edge=n.addItem("edge",(0,w.__assign)({source:a.id,target:a.id},o),!1),e.source=a.id,e.addingEdge=!0,e.edge.getKeyShape().set("capture",!1)}}},updateEndPoint:function(t){var e=this;if(!(e.key&&!e.keydown)){e.edge&&e.edge.destroyed&&e.cancelCreating({item:e.edge});var r={x:t.x,y:t.y};if(!e.graph.findById(e.source)){e.addingEdge=!1;return}e.addingEdge&&e.edge&&e.graph.updateItem(e.edge,{target:r},!1)}},cancelCreating:function(t){var e,r,n=this;if(!(n.key&&!n.keydown)){var a=n.graph,i=t.item;if(n.addingEdge&&(n.edge===i||((r=(e=t.target)===null||e===void 0?void 0:e.isCanvas)===null||r===void 0?void 0:r.call(e)))){n.edge&&!n.edge.destroyed&&a.removeItem(n.edge,!1),n.edge=null,n.addingEdge=!1;return}}},onKeyDown:function(t){var e=this,r=t.key;!r||(r.toLowerCase()===e.key.toLowerCase()?e.keydown=!0:e.keydown=!1)},onKeyUp:function(){var t=this;t.addingEdge&&t.edge&&(t.graph.removeItem(t.edge,!1),t.addingEdge=!1,t.edge=null),this.keydown=!1}},Wd="ctrl",_v=["shift","ctrl","alt","control"],Mv="1",Cv={getDefaultCfg:function(){return{trigger:Wd,combinedKey:Mv,functionName:"fitView",functionParams:[]}},getEvents:function(){return _v.indexOf(this.trigger.toLowerCase())>-1||(this.trigger=Wd,console.warn("Behavior shortcuts-fit-view \u7684 trigger \u53C2\u6570 '".concat(this.trigger,"' \u4E0D\u5408\u6CD5\uFF0C\u8BF7\u8F93\u5165 'drag'\u3001'shift'\u3001'ctrl' \u6216 'alt'"))),this.combinedKey===this.trigger&&(this.combinedKey=void 0),{keyup:"onKeyUp",keydown:"onKeyDown"}},onKeyDown:function(t){var e=t.key;if(!!e){var r=this.trigger.toLowerCase(),n=e.toLowerCase();this.triggerKeydown||(n===r||n==="control"&&r==="ctrl"||n==="ctrl"&&r==="control"?this.triggerKeydown=!0:this.triggerKeydown=!1);var a=this.graph;if(!a[this.functionName])return console.warn("Behavior shortcuts-fit-view \u7684 functionName \u53C2\u6570 '".concat(this.functionName,"' \u4E0D\u5408\u6CD5\uFF0C\u5B83\u4E0D\u662F Graph \u7684\u4E00\u4E2A\u51FD\u6570\u540D")),{};if(this.triggerKeydown&&!this.combinedKey){this.functionParams&&this.functionParams.length?a[this.functionName].apply(a,this.functionParams):a[this.functionName]();return}var i=this.combinedKey.toLowerCase();this.triggerKeydown&&(n===i||n==="control"&&i==="ctrl"||n==="ctrl"&&i==="control")&&(this.functionParams&&this.functionParams.length?a[this.functionName].apply(a,this.functionParams):a[this.functionName]())}},onKeyUp:function(){this.brush&&(this.brush.remove(!0),this.brush=null,this.dragging=!1),this.triggerKeydown=!1}},Tv=["shift","ctrl","alt","control","meta"],Iv={getDefaultCfg:function(){return{direction:"both",enableOptimize:!1,zoomKey:"ctrl",scalableRange:0,allowDragOnItem:!0}},getEvents:function(){return(!this.zoomKey||Tv.indexOf(this.zoomKey)===-1)&&(this.zoomKey="ctrl"),{wheel:"onWheel"}},onWheel:function(t){var e=this;if(!!this.allowDrag(t)){var r=this.graph,n=Array.isArray(this.zoomKey)?[].concat(this.zoomKey):[this.zoomKey];n.includes("control")&&n.push("ctrl");var a=n.some(function(br){return t["".concat(br,"Key")]});if(a){var i=r.get("canvas"),o=i.getPointByClient(t.clientX,t.clientY),u=r.getZoom();t.wheelDelta>0?u=u+u*.05:u=u-u*.05,r.zoomTo(u,{x:o.x,y:o.y})}else{var l=t.deltaX||t.movementX,h=t.deltaY||t.movementY;!h&&navigator.userAgent.indexOf("Firefox")>-1&&(h=-t.wheelDelta*125/3);var y=this.graph.get("width"),D=this.graph.get("height"),A=this.graph.get("canvas").getCanvasBBox(),z=this.scalableRange,K=this.scalableRange;z<1&&z>-1&&(z=y*z,K=D*K);var ee=A.minX,se=A.maxX,oe=A.minY,ce=A.maxY;l>0?se<-z?l=0:se-l<-z&&(l=se+z):l<0&&(ee>y+z?l=0:ee-l>y+z&&(l=ee-(y+z))),h>0?ce<-K?h=0:ce-h<-K&&(h=ce+K):h<0&&(oe>D+K?h=0:oe-h>D+K&&(h=oe-(D+K))),this.get("direction")==="x"?h=0:this.get("direction")==="y"&&(l=0),r.translate(-l,-h)}t.preventDefault();var Me=this.get("enableOptimize");if(Me){var Ne=this.get("optimizeZoom"),Ie=this.get("optimized"),Pe=r.getNodes(),Ye=r.getEdges(),rt=Pe.length,Ke=Ye.length;if(!Ie){for(var mt=0;mt=2})}},zl=function(){return zl=Object.assign||function(c){for(var t,e=1,r=arguments.length;ea&&(a=n[o],i=o);return i},jl=window.console,Jd=function(c,t,e){var r,n;return e&&e.current&&(r=e.current.offsetWidth,n=e.current.offsetHeight||500),!c&&!r||!t&&!n?(jl.warn("\u8BF7\u4E3A Graph \u6307\u5B9A width \u4E0E height\uFF01\u5426\u5219\u5C06\u4F7F\u7528\u9ED8\u8BA4\u503C 500 * 500"),[500,500]):[c||r||500,t||n||500]},$v=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(c){var t=Math.random()*16|0,e=c=="x"?t:t&3|8;return e.toString(16)})},Qv=function(c,t){return c.current||(c.current="".concat(t,"-graph-").concat($v())),c.current},Jv=function(c,t){var e=t!=null?t:{},r=e.nodeCfg,n=r===void 0?{}:r,a=e.edgeCfg,i=a===void 0?{}:a,o=n.nodeStateStyles,u=i.edgeStateStyles,l={},h=function(A,z,K){c.updateItem(A,{style:{endArrow:!!z&&{fill:z},startArrow:!!K&&{fill:K}}})},y=function(A,z,K){var ee,se,oe;K?A.toFront():A.toBack();var ce=(ee=A.getModel().style)!==null&&ee!==void 0?ee:{},Me=ce.endArrow,Ne=ce.startArrow;if(Me||Ne){if(!l[A.getID()]){var Ie=(Me!=null?Me:{}).fill,Pe=(Ne!=null?Ne:{}).fill,Ye=(oe=(se=A.getModel().style)===null||se===void 0?void 0:se[z])===null||oe===void 0?void 0:oe.stroke;l[A.getID()]=[[Ye!=null?Ye:Ie,Ie],[Ye!=null?Ye:Pe,Pe]]}var rt=l[A.getID()];h(A,Me&&rt[0][K?0:1],Ne&&rt[1][K?0:1])}c.setItemState(A,z,K)},D=function(A,z,K,ee){var se=ee==="node"?c.findAll("edge",function(ce){return ce.getSource()===A||ce.getTarget()===A}):c.findAll("node",function(ce){return A.getSource().get("id")===ce.get("id")||A.getTarget().get("id")===ce.get("id")}),oe=[A].concat(se);oe.forEach(function(ce){y(ce,z,K)})};o&&(c.on("node:mouseenter",function(A){var z=A.item;D(z,"hover",!0,"node")}),c.on("node:mouseleave",function(A){var z=A.item;D(z,"hover",!1,"node")})),u&&(c.on("edge:mouseenter",function(A){var z=A.item;D(z,"hover",!0,"edge")}),c.on("edge:mouseleave",function(A){var z=A.item;D(z,"hover",!1,"edge")}))},Xl=function(){return Xl=Object.assign||function(c){for(var t,e=1,r=arguments.length;e0&&a[a.length-1])&&(l[0]===6||l[0]===2)){e=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]=18&&(Vl=Ol.createRoot)}catch(c){}function rh(c){var t=Ol.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&typeof t=="object"&&(t.usingClientEntryPoint=c)}var Yl="__rc_react_root__";function ig(c,t){rh(!0);var e=t[Yl]||Vl(t);rh(!1),e.render(c),t[Yl]=e}function og(c,t){rg(c,t)}function dp(c,t){}function nh(c,t){if(Vl){ig(c,t);return}og(c,t)}function sg(c){return eh(this,void 0,void 0,function(){return th(this,function(t){return[2,Promise.resolve().then(function(){var e;(e=c[Yl])===null||e===void 0||e.unmount(),delete c[Yl]})]})})}function ug(c){ng(c)}function hp(c){}function vp(c){return eh(this,void 0,void 0,function(){return th(this,function(t){return Vl!==void 0?[2,sg(c)]:(ug(c),[2])})})}var ah=function(c,t){t===void 0&&(t={});var e=Object.keys(t);e.forEach(function(r){c.style[r]=t[r]})},cd=function(c,t,e){t===void 0&&(t={});var r=document.createElement("div");return Object.keys(t).forEach(function(n){r[n]=t[n]}),e&&ah(r,e),nh(c,r),r},Hl=function(){return Hl=Object.assign||function(c){for(var t,e=1,r=arguments.length;e0){var r=c.customContent,n=fg(c,["customContent"]),a=new fc.Tooltip(Hl(Hl({offsetX:10,offsetY:20,itemTypes:["node"]},n),{getContent:function(i){return(0,b.isFunction)(r)?cd(r(i.item.getModel()),{className:"g6-tooltip"}):""},name:"tooltip"}));t.addPlugin(a)}}},lg=function(){function c(t){this._cfgs=(0,b.deepMix)(this.getDefaultCfgs(),t),this._events={},this.destroyed=!1}return c.prototype.getDefaultCfgs=function(){return{}},c.prototype.initPlugin=function(t){var e=this;e.set("graph",t);var r=e.getEvents(),n={};(0,b.each)(r,function(a,i){var o=(0,b.wrapBehavior)(e,a);n[i]=o,t.on(i,o)}),this._events=n,this.init()},c.prototype.getEvents=function(){return{}},c.prototype.get=function(t){var e;return(e=this._cfgs)===null||e===void 0?void 0:e[t]},c.prototype.set=function(t,e){this._cfgs[t]=e},c.prototype.destroy=function(){},c.prototype.destroyPlugin=function(){this.destroy();var t=this.get("graph"),e=this._events;(0,b.each)(e,function(r,n){t.off(n,r)}),this._events=null,this._cfgs=null,this.destroyed=!0},c}(),dg=lg,hg=function(){var c=function(t,e){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])},c(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");c(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}();typeof document!="undefined"&&ou()(` - .g6-component-contextmenu { - border: 1px solid #e2e2e2; - border-radius: 4px; - font-size: 12px; - color: #545454; - background-color: rgba(255, 255, 255, 0.9); - padding: 10px 8px; - box-shadow: rgb(174, 174, 174) 0px 0px 10px; - } - .g6-contextmenu-ul { - padding: 0; - margin: 0; - list-style: none; - } - -`);var vg=function(c){hg(t,c);function t(e){return c.call(this,e)||this}return t.prototype.getDefaultCfgs=function(){return{offsetX:6,offsetY:6,handleMenuClick:void 0,customContent:function(e){return` -
        -
      • \u83DC\u5355\u98791
      • -
      • \u83DC\u5355\u98792
      • -
      - `},shouldBegin:function(e){return!0},onHide:function(){return!0},itemTypes:["node","edge","combo"],trigger:"contextmenu"}},t.prototype.getEvents=function(){return this.get("trigger")==="click"?{click:"onMenuShow",touchend:"onMenuShow"}:{contextmenu:"onMenuShow"}},t.prototype.init=function(){var e=this.get("className"),r=(0,Na.Z)("
      "));(0,Yn.Z)(r,{top:"0px",position:"absolute",visibility:"hidden"});var n=this.get("container");n||(n=this.get("graph").get("container")),(0,b.isString)(n)&&(n=document.getElementById(n)),n.appendChild(r),this.set("menu",r)},t.prototype.onMenuShow=function(e){var r=this;e.preventDefault();var n=this.get("itemTypes");if(e.item){if(e.item&&e.item.getType&&n.indexOf(e.item.getType())===-1){r.onMenuHide();return}}else if(n.indexOf("canvas")===-1){r.onMenuHide();return}var a=this.get("shouldBegin");if(!!a(e)){var i=this.get("menu"),o=this.get("customContent"),u=this.get("graph"),l=o(e,u);nh(l,i),this.removeMenuEventListener();var h=this.get("handleMenuClick");if(h){var y=function(Pe){h(Pe.target,e.item,u)};this.set("handleMenuClickWrapper",y),i.addEventListener("click",y)}var D=u.get("width"),A=u.get("height"),z=i.getBoundingClientRect(),K=this.get("offsetX")||0,ee=this.get("offsetY")||0,se=u.getContainer().offsetTop,oe=u.getContainer().offsetLeft,ce=e.canvasX+oe+K,Me=e.canvasY+se+ee;ce+z.width>D&&(ce=e.canvasX-z.width-K+oe),Me+z.height>A&&(Me=e.canvasY-z.height-ee+se),(0,Yn.Z)(i,{top:"".concat(Me,"px"),left:"".concat(ce,"px"),visibility:"visible"});var Ne=this.get("trigger")==="click",Ie=function(Pe){if(Ne){Ne=!1;return}r.onMenuHide()};document.body.addEventListener("click",Ie),this.set("handler",Ie)}},t.prototype.removeMenuEventListener=function(){var e=this.get("handleMenuClickWrapper"),r=this.get("handler");if(e){var n=this.get("menu");n.removeEventListener("click",e),this.set("handleMenuClickWrapper",null)}r&&document.body.removeEventListener("click",r)},t.prototype.onMenuHide=function(){var e=this.get("menu");e&&(0,Yn.Z)(e,{visibility:"hidden"}),this.removeMenuEventListener()},t.prototype.destroy=function(){var e=this.get("menu");if(this.removeMenuEventListener(),e){var r=this.get("container");r||(r=this.get("graph").get("container")),(0,b.isString)(r)&&(r=document.getElementById(r)),r.removeChild(e)}},t}(dg),gg=vg,Zl=function(){return Zl=Object.assign||function(c){for(var t,e=1,r=arguments.length;e0&&a[a.length-1])&&(l[0]===6||l[0]===2)){e=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]0?(u.children=se,t.updateChild(u,u.id),t.updateItem(o,{collapsed:!1}),t.refreshItem(o),t.emit(oh,i,{type:"fetch",collapsed:!0})):(t.updateItem(o,{collapsed:!h}),t.layout(),t.emit(oh,i,{type:"collapse",collapsed:!!h})),Me.label=3;case 3:return[2]}})})};t.on("node:click",function(i){a(i)}),t.on("node:touchstart",function(i){a(i)})},Ng=function(c){if(typeof c=="number")return[c,c,c,c];var t=[];switch(c.length){case 1:t=[c[0],c[0],c[0],c[0]];break;case 2:t=[c[0],c[1],c[0],c[1]];break;case 3:t=[c[0],c[1],c[2],c[1]];break;case 4:t=c;break;default:break}return t},sh=function(c,t,e,r){return typeof c=="function"?c(t,e,r)||{}:c||{}},Ll=function(){return Ll=Object.assign||function(c){for(var t,e=1,r=arguments.length;e0&&b(te[0])}},H=0;H0;)w.push(m.pop());d.push(w)}}return d};U.detectConnectedComponents=W;var k=function(L){for(var p=L.nodes,E=p===void 0?[]:p,v=L.edges,g=v===void 0?[]:v,d=[],M={},m={},x={},T=[],R=0,w=function X(H){m[H.id]=R,x[H.id]=R,R+=1,d.push(H),M[H.id]=!0;for(var J=(0,B.getNeighbors)(H.id,g,"target").filter(function(ye){return E.map(function(me){return me.id}).indexOf(ye)>-1}),q=function(me){var ge=J[me];if(!m[ge]&&m[ge]!==0){var be=E.filter(function(ve){return ve.id===ge});be.length>0&&X(be[0]),x[H.id]=Math.min(x[H.id],x[ge])}else M[ge]&&(x[H.id]=Math.min(x[H.id],m[ge]))},Q=0;Q0;){var fe=d.pop();if(M[fe.id]=!1,te.push(fe),fe===H)break}te.length>0&&T.push(te)}},b=0,$=E;b<$.length;b++){var j=$[b];!m[j.id]&&m[j.id]!==0&&w(j)}return T};U.detectStrongConnectComponents=k;function O(N,L){return L?k(N):W(N)}},92935:function(or,U){"use strict";Object.defineProperty(U,"__esModule",{value:!0}),U.secondReg=U.dateReg=void 0;var G=/^(\d{1,4})(-|\/)(\d{1,2})\2(\d{1,2})$/;U.secondReg=G;var B=/^(\d{1,4})(-|\/)(\d{1,2})\2(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2})$/;U.dateReg=B},82556:function(or,U){"use strict";Object.defineProperty(U,"__esModule",{value:!0}),U.getOutDegree=U.getInDegree=U.default=void 0;var G=function(N){var L={},p=N.nodes,E=p===void 0?[]:p,v=N.edges,g=v===void 0?[]:v;return E.forEach(function(d){L[d.id]={degree:0,inDegree:0,outDegree:0}}),g.forEach(function(d){L[d.source].degree++,L[d.source].outDegree++,L[d.target].degree++,L[d.target].inDegree++}),L},B=G;U.default=B;var W=function(N,L){var p=G(N);return p[L]?G(N)[L].inDegree:0};U.getInDegree=W;var k=function(N,L){var p=G(N);return p[L]?G(N)[L].outDegree:0};U.getOutDegree=k},94282:function(or,U,G){"use strict";function B(m){return B=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(x){return typeof x}:function(x){return x&&typeof Symbol=="function"&&x.constructor===Symbol&&x!==Symbol.prototype?"symbol":typeof x},B(m)}Object.defineProperty(U,"__esModule",{value:!0}),U.detectAllUndirectedCycle=U.detectAllDirectedCycle=U.detectAllCycles=U.default=void 0;var W=p(G(45891)),k=L(G(59527)),O=G(70643);function N(m){if(typeof WeakMap!="function")return null;var x=new WeakMap,T=new WeakMap;return(N=function(w){return w?T:x})(m)}function L(m,x){if(!x&&m&&m.__esModule)return m;if(m===null||B(m)!=="object"&&typeof m!="function")return{default:m};var T=N(x);if(T&&T.has(m))return T.get(m);var R={},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var b in m)if(b!=="default"&&Object.prototype.hasOwnProperty.call(m,b)){var $=w?Object.getOwnPropertyDescriptor(m,b):null;$&&($.get||$.set)?Object.defineProperty(R,b,$):R[b]=m[b]}return R.default=m,T&&T.set(m,R),R}function p(m){return m&&m.__esModule?m:{default:m}}var E=function(x){var T=null,R=x.nodes,w=R===void 0?[]:R,b={},$={},j={},X={};w.forEach(function(q){$[q.id]=q});for(var H={enter:function(Q){var te=Q.current,fe=Q.previous;if(j[te]){T={};for(var ye=te,me=fe;me!==te;)T[ye]=me,ye=me,me=b[me];T[ye]=me}else j[te]=te,delete $[te],b[te]=fe},leave:function(Q){var te=Q.current;X[te]=te,delete j[te]},allowTraversal:function(Q){var te=Q.next;return T?!1:!X[te]}};Object.keys($).length;){var J=Object.keys($)[0];(0,W.default)(x,J,H)}return T},v=function(x,T,R){var w,b;R===void 0&&(R=!0);for(var $=[],j=(0,k.default)(x,!1),X=0,H=j;X0;)for(var me=te.pop(),ge=me.id,be=(0,O.getNeighbors)(ge,x.edges),ve=function(Ge){var tt,St=be[Ge],at=x.nodes.find(function(bt){return bt.id===St});if(St===ge)$.push((tt={},tt[St]=me,tt));else if(!(St in ye))fe[St]=me,te.push(at),ye[St]=new Set([me]);else if(!ye[ge].has(at)){for(var Mt=!0,Wt=[at,me],er=fe[ge];ye[St].size&&!ye[St].has(er)&&(Wt.push(er),er!==fe[er.id]);)er=fe[er.id];if(Wt.push(er),T&&R?(Mt=!1,Wt.findIndex(function(bt){return T.indexOf(bt.id)>-1})>-1&&(Mt=!0)):T&&!R&&Wt.findIndex(function(bt){return T.indexOf(bt.id)>-1})>-1&&(Mt=!1),Mt){for(var it={},yt=1;yt0;){var yt=it.pop();b.has(yt)&&(b.delete(yt),$[yt.id].forEach(function(bt){it.push(bt)}),$[yt.id].clear())}},q=function Wt(er,it,yt){var bt=!1;if(T&&R===!1&&T.indexOf(er.id)>-1)return bt;w.push(er),b.add(er);for(var Ft=yt[er.id],wt=0;wt-1});Rt-1)?j.push((it={},it[ut.id]=ut,it)):Zt[ut.id].push(H[wr])}}return{component:Ur,adjList:Zt,minIdx:bt}},ve=0;ve=ve}),De=(0,k.detectStrongConnectComponents)({nodes:_e,edges:x.edges}).filter(function(Wt){return Wt.length>1});if(De.length===0)break;var Ge=be(De),tt=Ge.minIdx,St=Ge.adjList,at=Ge.component;if(at.length>1){at.forEach(function(Wt){$[Wt.id]=new Set});var Mt=X[tt];if(T&&R&&T.indexOf(Mt.id)===-1)return j;q(Mt,Mt,St),ve=tt+1}else break}return j};U.detectAllDirectedCycle=g;var d=function(x,T,R,w){return w===void 0&&(w=!0),T?g(x,R,w):v(x,R,w)};U.detectAllCycles=d;var M=E;U.default=M},45891:function(or,U,G){"use strict";Object.defineProperty(U,"__esModule",{value:!0}),U.default=O;var B=G(70643);function W(N){N===void 0&&(N={});var L=N,p=function(){},E=function(){var v={};return function(g){var d=g.next;return v[d]?!1:(v[d]=!0,!0)}}();return L.allowTraversal=N.allowTraversal||E,L.enter=N.enter||p,L.leave=N.leave||p,L}function k(N,L,p,E){E.enter({current:L,previous:p});var v=N.edges,g=v===void 0?[]:v;(0,B.getNeighbors)(L,g,"target").forEach(function(d){E.allowTraversal({previous:p,current:L,next:d})&&k(N,d,L,E)}),E.leave({current:L,previous:p})}function O(N,L,p){k(N,L,"",W(p))}},78089:function(or,U,G){"use strict";Object.defineProperty(U,"__esModule",{value:!0}),U.default=void 0;var B=G(70655),W=G(49242),k=G(70643),O=function(v,g,d){for(var M=Infinity,m,x=0;x$[me.id]+tt?($[Ge]=$[me.id]+tt,j[Ge]=[me.id]):$[Ge]===$[me.id]+tt&&j[Ge].push(me.id)})},J=0;J0&&R.length>0;){var $=R[R.length-1];if($.length){var j=$.shift();j&&(x.push(j),T[j]=!0,b=g?(0,W.getNeighbors)(j,m,"target"):(0,W.getNeighbors)(j,m),R.push(b.filter(function(J){return!T[J]})))}else{var X=x.pop();T[X]=!1,R.pop();continue}if(x[x.length-1]===v){var H=x.map(function(q){return q});w.push(H);var X=x.pop();T[X]=!1,R.pop()}}return w};U.findAllPath=N},75033:function(or,U,G){"use strict";Object.defineProperty(U,"__esModule",{value:!0}),U.default=void 0;var B=W(G(62238));function W(N){return N&&N.__esModule?N:{default:N}}var k=function(L,p){for(var E=(0,B.default)(L,p),v=[],g=E.length,d=0;dv[d][m]+v[m][M]&&(v[d][M]=v[d][m]+v[m][M]);return v},O=k;U.default=O},21146:function(or,U,G){"use strict";Object.defineProperty(U,"__esModule",{value:!0}),U.default=void 0;var B=G(49242),W=G(68575),k=function(){function M(m,x,T,R,w){this.fromNode=m,this.toNode=x,this.nodeEdgeNodeLabel={nodeLabel1:T||W.VACANT_NODE_LABEL,edgeLabel:R||W.VACANT_EDGE_LABEL,nodeLabel2:w||W.VACANT_NODE_LABEL}}return M.prototype.equalTo=function(m){return this.fromNode===m.formNode&&this.toNode===m.toNode&&this.nodeEdgeNodeLabel===m.nodeEdgeNodeLabel},M.prototype.notEqualTo=function(m){return!this.equalTo(m)},M}(),O=function(){function M(){this.rmpath=[],this.dfsEdgeList=[]}return M.prototype.equalTo=function(m){var x=this.dfsEdgeList.length,T=m.length;if(x!==T)return!1;for(var R=0;R=0;T--){var R=this.dfsEdgeList[T],w=R.fromNode,b=R.toNode;wQ||R.hasNode(b[q.to])||(x.labelbe;_e--){var De=ve(_e);if(De==="break")break}if(me){var Ge=m.findMinLabel(ye);b.dfsEdgeList.push(new k(fe,ge,W.VACANT_NODE_LABEL,Ge.edgeLabel,W.VACANT_NODE_LABEL));var tt=b.dfsEdgeList.length-1;return m.dfsCode.dfsEdgeList[tt]!==b.dfsEdgeList[tt]?!1:J(ye[Ge.edgeLabel].projected)}var St={};me=!1;var at=0;q.forEach(function(bt){var Ft=new N(bt),wt=m.findForwardPureEdges(R,Ft.edges[Q[0]],te,Ft);wt.length>0&&(me=!0,at=fe,wt.forEach(function(pt){var sr="".concat(pt.label,"-").concat(w[pt.to].label);St[sr]||(St[sr]={projected:[],edgeLabel:pt.label,nodeLabel2:w[pt.to].label}),St[sr].projected.push({graphId:R.id,edge:pt,preNode:bt})}))});for(var Mt=Q.length,Wt=function(Ft){if(me)return"break";var wt=Q[Ft];q.forEach(function(pt){var sr=new N(pt),Ur=m.findForwardRmpathEdges(R,sr.edges[wt],te,sr);Ur.length>0&&(me=!0,at=b.dfsEdgeList[wt].fromNode,Ur.forEach(function(Zt){var ut="".concat(Zt.label,"-").concat(w[Zt.to].label);St[ut]||(St[ut]={projected:[],edgeLabel:Zt.label,nodeLabel2:w[Zt.to].label}),St[ut].projected.push({graphId:R.id,edge:Zt,preNode:pt})}))})},_e=0;_e=0;te--){var fe=x.findBackwardEdge(J,Q.edges[w[te]],Q.edges[w[0]],Q);if(fe){var ye="".concat(x.dfsCode.dfsEdgeList[w[te]].fromNode,"-").concat(fe.label);X[ye]||(X[ye]={projected:[],toNodeId:x.dfsCode.dfsEdgeList[w[te]].fromNode,edgeLabel:fe.label}),X[ye].projected.push({graphId:H.graphId,edge:fe,preNode:H})}}if(!(R>=x.maxNodeNum)){var me=x.findForwardPureEdges(J,Q.edges[w[0]],$,Q);me.forEach(function(be){var ve="".concat(b,"-").concat(be.label,"-").concat(q[be.to].label);j[ve]||(j[ve]={projected:[],fromNodeId:b,edgeLabel:be.label,nodeLabel2:q[be.to].label}),j[ve].projected.push({graphId:H.graphId,edge:be,preNode:H})});for(var ge=function(ve){var _e=x.findForwardRmpathEdges(J,Q.edges[w[ve]],$,Q);_e.forEach(function(De){var Ge="".concat(x.dfsCode.dfsEdgeList[w[ve]].fromNode,"-").concat(De.label,"-").concat(q[De.to].label);j[Ge]||(j[Ge]={projected:[],fromNodeId:x.dfsCode.dfsEdgeList[w[ve]].fromNode,edgeLabel:De.label,nodeLabel2:q[De.to].label}),j[Ge].projected.push({graphId:H.graphId,edge:De,preNode:H})})},te=0;tebe){var ve=be;be=ge,ge=ve}var _e=me.label,De="".concat(X,"-").concat(ge,"-").concat(_e,"-").concat(be),Ge="".concat(ge,"-").concat(_e,"-").concat(be);if(!b[Ge]){var tt=b[Ge]||0;tt++,b[Ge]=tt}j[De]={graphId:X,nodeLabel1:ge,edgeLabel:_e,nodeLabel2:be}})})}),Object.keys(w).forEach(function(X){var H=w[X];if(!(H2*H)););if(tt<2*H&&(fe["".concat(ge,"-").concat(Ge)]={start:ge,end:Ge,distance:Q[ge][Ge]},be++,ye++,ye>=J))return fe;if(ve++,ve>2*H)break}if(beve&&(ye=ve);var _e=J[be.id].inDegree;me>_e&&(me=_e);var De=J[be.id].outDegree;ge>De&&(ge=De)}),X[H]={degree:ye,inDegree:me,outDegree:ge}),{minPatternNodeLabelDegree:ye,minPatternNodeLabelInDegree:me,minPatternNodeLabelOutDegree:ge}},b=function(X,H,J,q,Q,te,fe){var ye;if(J===void 0&&(J=!1),te===void 0&&(te="cluster"),fe===void 0&&(fe="cluster"),!(!X||!X.nodes)){var me=X.nodes.length;if(!!me){var ge=(0,W.default)(X,J),be=(0,W.default)(H,J),ve=T(X.nodes,ge,J),_e=T(H.nodes,be,J),De=m(X.nodes,te),Ge=De.nodeMap,tt=De.nodeLabelMap,St=m(H.nodes,te),at=St.nodeMap,Mt=St.nodeLabelMap;x(X.edges,fe,Ge);var Wt=x(H.edges,fe,at).edgeLabelMap,er=[];be==null||be.forEach(function(Jr){er=er.concat(Jr)}),Q||(Q=Math.max.apply(Math,(0,B.__spreadArray)((0,B.__spreadArray)([],er,!1),[2],!1))),q||(q=Q);var it=p(X,ge,te,q),yt=p(H,be,te,q),bt=Math.min(100,me*(me-1)/2),Ft=v(q,me,bt,it,ge),wt=g(Ft,it,X),pt=10,sr=1,Ur=1,Zt=4,ut={graphs:wt,nodeLabelProp:te,edgeLabelProp:fe,minSupport:sr,minNodeNum:Ur,maxNodeNum:Zt,directed:J},Rt=(0,k.default)(ut).slice(0,pt),tr=Rt.length,wr=[];Rt.forEach(function(Jr,kn){wr[kn]={},Object.keys(wt).forEach(function(An){var mn=wt[An],xa=d(mn,Jr,te,fe);wr[kn][An]=xa})});var Vr=M(wr,tr,Rt),Oe=Vr.structure,Dt=Vr.structureCountMap,zt=H.nodes[0],Sr=[],dr=(ye=H.nodes[0])===null||ye===void 0?void 0:ye[te],Fr=-Infinity;H.nodes.forEach(function(Jr){var kn=Jr[te],An=tt[kn];(An==null?void 0:An.length)>Fr&&(Fr=An.length,Sr=An,dr=kn,zt=Jr)});var nn={},$r={},Wr={},tn={},_r={},pr={};Object.keys(Mt).forEach(function(Jr,kn){_r[Jr]=[],J&&(pr[Jr]=[]);var An=-Infinity,mn=Mt[Jr],xa={};mn.forEach(function(ae){var P=_e["".concat(zt.id,"-").concat(ae.id)];if(P&&_r[Jr].push(P),An_r[Jr][xe]){Se=!0;break}if(Se)return Sr.splice(P,1),"continue";var Le={};C.neighbors.forEach(function(At){var $t=ve["".concat(S.id,"-").concat(At.id)];Le["".concat(S.id,"-").concat(At.id)]={start:Ge[S.id].idx,end:Ge[At.id].idx,distance:$t}}),wt=g(Le,it,X,wt);var ht=[];Object.keys(Le).forEach(function(At){if(Dt[At]){ht.push(Dt[At]);return}var $t=wt[At];Dt[At]=d($t,Oe,te,fe),ht.push(Dt[At])}),ht=ht.sort(function(At,$t){return $t-At});for(var ot=!1,xe=0;xe=0;ne--)qe(ne)});var Rr=[];Sr==null||Sr.forEach(function(Jr){for(var kn=Ge[Jr.id].idx,An=E(X.nodes,ge[kn],kn,te,Q),mn=An.neighbors,xa=mn.length,Z=!1,Ot=xa-1;Ot>=0;Ot--){if(mn.length+1C){mn.splice(Ot,1);continue}if(J){var V="".concat(qe.id,"-").concat(Jr.id),de=ve[V];S=pr[ne].length-1;var Se=pr[ne][S];if(de>Se){mn.splice(Ot,1);continue}}var xe=Dt[ae]?Dt[ae]:R(X,Jr,qe,Ge,P,it,Oe,te,fe,Dt,wt),Le="".concat(zt.id,"-").concat(ne),ht=tn[Le][tn[Le].length-1];if(xe=0;P--){var Se=de(P);if(Se==="break")break}if(V)return Rr.splice(kn,1),"continue";An.edges=Ot;var xe=(0,O.default)(An,An.nodes[0].id,!1).length;if(Object.keys(xe).reverse().forEach(function(bn){if(!(bn===An.nodes[0].id||V)){if(xe[bn]===Infinity){var We=Z[bn].node[te];if(xa[We]--,xa[We]gn[Xe][gn[Xe].length-1]){var We=Z[bn].node[te];if(xa[We]--,xa[We]=0;$t--){var Yt=An.nodes[$t],kr=Z[Yt.id].degree,vn=Z[Yt.id].inDegree,Ct=Z[Yt.id].outDegree,Qt=Yt[te],mr=w(nn,Qt,at,Mt),en=mr.minPatternNodeLabelDegree,Pr=mr.minPatternNodeLabelInDegree,Qn=mr.minPatternNodeLabelOutDegree,Ln=J?kr=0;En--){var Dn=Ot[En];if(!Z[Dn.source]||!Z[Dn.target]){Ot.splice(En,1);var jn=Dn[fe];if(qe[jn]--,Z[Dn.source]&&(Z[Dn.source].degree--,Z[Dn.source].outDegree--),Z[Dn.target]&&(Z[Dn.target].degree--,Z[Dn.target].inDegree--),Wt[jn]&&qe[jn]=0;ca--){var Wn=fa(ca);if(Wn==="break")break}for(var Vn=Rr.length,_a=function(kn){var An=Rr[kn],mn={};An.edges.forEach(function(Ot){var qe="".concat(Ot.source,"-").concat(Ot.target,"-").concat(Ot.label);mn[qe]?mn[qe]++:mn[qe]=1});for(var xa=function(qe){var ne=Rr[qe],ae={};ne.edges.forEach(function(S){var C="".concat(S.source,"-").concat(S.target,"-").concat(S.label);ae[C]?ae[C]++:ae[C]=1});var P=!0;Object.keys(ae).length!==Object.keys(mn).length?P=!1:Object.keys(mn).forEach(function(S){ae[S]!==mn[S]&&(P=!1)}),P&&Rr.splice(qe,1)},Z=Vn-1;Z>kn;Z--)xa(Z);Vn=Rr.length},ca=0;ca<=Vn-1;ca++)_a(ca);return Rr}}},$=b;U.default=$},5170:function(or,U,G){"use strict";Object.defineProperty(U,"__esModule",{value:!0}),U.default=void 0;var B=k(G(62238)),W=G(70643);function k(L){return L&&L.__esModule?L:{default:L}}var O=function(p,E,v,g){E===void 0&&(E=!1),v===void 0&&(v="weight"),g===void 0&&(g=1e3);var d=p.nodes,M=d===void 0?[]:d,m=p.edges,x=m===void 0?[]:m,T={},R={};M.forEach(function(te,fe){var ye=(0,W.uniqueId)();te.clusterId=ye,T[ye]={id:ye,nodes:[te]},R[te.id]={node:te,idx:fe}});var w=(0,B.default)(p,E),b=[],$={};w.forEach(function(te,fe){var ye=0,me=M[fe].id;$[me]={},te.forEach(function(ge,be){if(!!ge){ye+=ge;var ve=M[be].id;$[me][ve]=ge}}),b.push(ye)});for(var j=0,X=function(){var fe=!1;if(M.forEach(function(ye){var me={};Object.keys($[ye.id]).forEach(function(St){var at=$[ye.id][St],Mt=R[St].node,Wt=Mt.clusterId;me[Wt]||(me[Wt]=0),me[Wt]+=at});var ge=-Infinity,be=[];if(Object.keys(me).forEach(function(St){ge=0&&be.splice(ve,1),be&&be.length){fe=!0;var _e=T[ye.clusterId],De=_e.nodes.indexOf(ye);_e.nodes.splice(De,1);var Ge=Math.floor(Math.random()*be.length),tt=T[be[Ge]];tt.nodes.push(ye),ye.clusterId=tt.id}}}),!fe)return"break";j++};j0&&Ge>tt&&Ge-tttt&&(at=H.map(function(wt){return{node:wt,clusterId:wt.clusterId}}),Mt=(0,B.clone)(me),tt=Ge),Wt||St>100)break;St++,Object.keys(me).forEach(function(wt){var pt=0;q.forEach(function(sr){var Ur=sr.source,Zt=sr.target,ut=ge[Ur].node.clusterId,Rt=ge[Zt].node.clusterId;(ut===wt&&Rt!==wt||Rt===wt&&ut!==wt)&&(pt=pt+(sr[x]||1))}),me[wt].sumTot=pt}),H.forEach(function(wt,pt){var sr=me[wt.clusterId],Ur=0,Zt,ut=ve[pt]/(2*De),Rt=0,tr=sr.nodes;tr.forEach(function($r){var Wr=ge[$r.id].idx;Rt+=be[pt][Wr]||0});var wr=Rt-sr.sumTot*ut,Vr=tr.filter(function($r){return $r.id!==wt.id}),Oe=[];Vr.forEach(function($r,Wr){Oe[Wr]=Q[$r.originIndex]});var Dt=E(Vr,Q)*j,zt=_e[wt.id];if(Object.keys(zt).forEach(function($r){var Wr=ge[$r].node,tn=Wr.clusterId;if(tn!==wt.clusterId){var _r=me[tn],pr=_r.nodes;if(!(!pr||!pr.length)){var Rr=0;pr.forEach(function(Wn){var Vn=ge[Wn.id].idx;Rr+=be[pt][Vn]||0});var sn=Rr-_r.sumTot*ut,gn=pr.concat([wt]),yn=[];gn.forEach(function(Wn,Vn){yn[Vn]=Q[Wn.originIndex]});var fa=E(gn,Q)*j,ca=sn-wr;R&&(ca=sn+fa-(wr+Dt)),ca>Ur&&(Ur=ca,Zt=_r)}}}),Ur>0){Zt.nodes.push(wt);var Sr=wt.clusterId;wt.clusterId=Zt.id;var dr=sr.nodes.indexOf(wt);sr.nodes.splice(dr,1);var Fr=0,nn=0;q.forEach(function($r){var Wr=$r.source,tn=$r.target,_r=ge[Wr].node.clusterId,pr=ge[tn].node.clusterId;(_r===Zt.id&&pr!==Zt.id||pr===Zt.id&&_r!==Zt.id)&&(Fr=Fr+($r[x]||1)),(_r===Sr&&pr!==Sr||pr===Sr&&_r!==Sr)&&(nn=nn+($r[x]||1))}),Zt.sumTot=Fr,sr.sumTot=nn}})}var er={},it=0;Object.keys(Mt).forEach(function(wt){var pt=Mt[wt];if(!pt.nodes||!pt.nodes.length){delete Mt[wt];return}var sr=String(it+1);sr!==wt&&(pt.id=sr,pt.nodes=pt.nodes.map(function(Ur){return{id:Ur.id,clusterId:sr}}),Mt[sr]=pt,er[wt]=sr,delete Mt[wt],it++)}),at.forEach(function(wt){var pt=wt.node,sr=wt.clusterId;!pt||(pt.clusterId=sr,pt.clusterId&&er[pt.clusterId]&&(pt.clusterId=er[pt.clusterId]))});var yt=[],bt={};q.forEach(function(wt){var pt=wt.source,sr=wt.target,Ur=wt[x]||1,Zt=ge[pt].node.clusterId,ut=ge[sr].node.clusterId;if(!(!Zt||!ut)){var Rt="".concat(Zt,"---").concat(ut);if(bt[Rt])bt[Rt].weight+=Ur,bt[Rt].count++;else{var tr={source:Zt,target:ut,weight:Ur,count:1};bt[Rt]=tr,yt.push(tr)}}});var Ft=[];return Object.keys(Mt).forEach(function(wt){Ft.push(Mt[wt])}),{clusters:Ft,clusterEdges:yt}},g=v;U.default=g},89454:function(or,U,G){"use strict";Object.defineProperty(U,"__esModule",{value:!0}),U.default=void 0;var B=O(G(38823)),W=O(G(57085)),k=G(70643);function O(v){return v&&v.__esModule?v:{default:v}}var N=function(g,d){var M=[],m=g.nodes,x=m===void 0?[]:m,T=g.edges,R=T===void 0?[]:T;if(x.length===0)return M;var w=x[0],b=new Set;b.add(w);var $=function(Q,te){return d?Q.weight-te.weight:0},j=new W.default($);for((0,k.getEdgesByNodeId)(w.id,R).forEach(function(q){j.insert(q)});!j.isEmpty();){var X=j.delMin(),H=X.source,J=X.target;b.has(H)&&b.has(J)||(M.push(X),b.has(H)||(b.add(H),(0,k.getEdgesByNodeId)(H,R).forEach(function(q){j.insert(q)})),b.has(J)||(b.add(J),(0,k.getEdgesByNodeId)(J,R).forEach(function(q){j.insert(q)})))}return M},L=function(g,d){var M=[],m=g.nodes,x=m===void 0?[]:m,T=g.edges,R=T===void 0?[]:T;if(x.length===0)return M;var w=R.map(function(H){return H});d&&w.sort(function(H,J){return H.weight-J.weight});for(var b=new B.default(x.map(function(H){return H.id}));w.length>0;){var $=w.shift(),j=$.source,X=$.target;b.connected(j,X)||(M.push($),b.union(j,X))}return M},p=function(g,d,M){var m={prim:N,kruskal:L};return M?m[M](g,d):L(g,d)},E=p;U.default=E},74926:function(or,U,G){"use strict";Object.defineProperty(U,"__esModule",{value:!0}),U.default=void 0;var B=k(G(82556)),W=G(70643);function k(L){return L&&L.__esModule?L:{default:L}}var O=function(p,E,v){typeof E!="number"&&(E=1e-6),typeof v!="number"&&(v=.85);for(var g=1,d=0,M=1e3,m=p.nodes,x=m===void 0?[]:m,T=p.edges,R=T===void 0?[]:T,w=x.length,b,$={},j={},X=0;X0&&g>E;){d=0;for(var X=0;X0&&(b+=j[fe]/ye)}$[J]=v*b,d+=$[J]}}d=(1-d)/w,g=0;for(var X=0;X0&&(this.list[0]=N,this.moveDown(0)),O},k.prototype.insert=function(O){if(O!==null){this.list.push(O);var N=this.list.length-1;return this.moveUp(N),!0}return!1},k.prototype.moveUp=function(O){for(var N=this.getParent(O);O&&O>0&&this.compareFn(this.list[N],this.list[O])>0;){var L=this.list[N];this.list[N]=this.list[O],this.list[O]=L,O=N,N=this.getParent(O)}},k.prototype.moveDown=function(O){var N,L=O,p=this.getLeft(O),E=this.getRight(O),v=this.list.length;p!==null&&p0?L=p:E!==null&&E0&&(L=E),O!==L&&(N=[this.list[L],this.list[O]],this.list[O]=N[0],this.list[L]=N[1],this.moveDown(L))},k}(),W=B;U.default=W},88481:function(or,U){"use strict";Object.defineProperty(U,"__esModule",{value:!0}),U.default=U.LinkedListNode=void 0;var G=function(N,L){return N===L},B=function(){function O(N,L){L===void 0&&(L=null),this.value=N,this.next=L}return O.prototype.toString=function(N){return N?N(this.value):"".concat(this.value)},O}();U.LinkedListNode=B;var W=function(){function O(N){N===void 0&&(N=G),this.head=null,this.tail=null,this.compare=N}return O.prototype.prepend=function(N){var L=new B(N,this.head);return this.head=L,this.tail||(this.tail=L),this},O.prototype.append=function(N){var L=new B(N);return this.head?(this.tail.next=L,this.tail=L,this):(this.head=L,this.tail=L,this)},O.prototype.delete=function(N){if(!this.head)return null;for(var L=null;this.head&&this.compare(this.head.value,N);)L=this.head,this.head=this.head.next;var p=this.head;if(p!==null)for(;p.next;)this.compare(p.next.value,N)?(L=p.next,p.next=p.next.next):p=p.next;return this.compare(this.tail.value,N)&&(this.tail=p),L},O.prototype.find=function(N){var L=N.value,p=L===void 0?void 0:L,E=N.callback,v=E===void 0?void 0:E;if(!this.head)return null;for(var g=this.head;g;){if(v&&v(g.value)||p!==void 0&&this.compare(g.value,p))return g;g=g.next}return null},O.prototype.deleteTail=function(){var N=this.tail;if(this.head===this.tail)return this.head=null,this.tail=null,N;for(var L=this.head;L.next;)L.next.next?L=L.next:L.next=null;return this.tail=L,N},O.prototype.deleteHead=function(){if(!this.head)return null;var N=this.head;return this.head.next?this.head=this.head.next:(this.head=null,this.tail=null),N},O.prototype.fromArray=function(N){var L=this;return N.forEach(function(p){return L.append(p)}),this},O.prototype.toArray=function(){for(var N=[],L=this.head;L;)N.push(L),L=L.next;return N},O.prototype.reverse=function(){for(var N=this.head,L=null,p=null;N;)p=N.next,N.next=L,L=N,N=p;this.tail=this.head,this.head=L},O.prototype.toString=function(N){return N===void 0&&(N=void 0),this.toArray().map(function(L){return L.toString(N)}).toString()},O}(),k=W;U.default=k},93026:function(or,U,G){"use strict";Object.defineProperty(U,"__esModule",{value:!0}),U.default=void 0;var B=W(G(88481));function W(N){return N&&N.__esModule?N:{default:N}}var k=function(){function N(){this.linkedList=new B.default}return N.prototype.isEmpty=function(){return!this.linkedList.head},N.prototype.peek=function(){return this.linkedList.head?this.linkedList.head.value:null},N.prototype.enqueue=function(L){this.linkedList.append(L)},N.prototype.dequeue=function(){var L=this.linkedList.deleteHead();return L?L.value:null},N.prototype.toString=function(L){return this.linkedList.toString(L)},N}(),O=k;U.default=O},38823:function(or,U){"use strict";Object.defineProperty(U,"__esModule",{value:!0}),U.default=void 0;var G=function(){function W(k){this.count=k.length,this.parent={};for(var O=0,N=k;O0&&C[0]!==void 0?C[0]:1,!this.dirty){de.next=6;break}return this.compiledBundle.context&&(P>1?this.compiledBundle.context.maxIteration=P:this.compiledBundle.context.maxIteration++),de.next=5,this.compile();case 5:this.dirty=!1;case 6:for(this.engine.beginFrame(),this.engine.clear({}),this.compiledBundle.context&&this.compiledBundle.context.uniforms.filter(function(Se){var xe=Se.isReferer;return xe}).forEach(function(Se){var xe=Se.data,Le=Se.name;ae.model.confirmInput(xe.model,Le)}),S=0;S16)throw new Error("invalid data type ".concat(xe));ae[Se]=function(){return de.data}}});var P=this.getOuputDataTexture(),S=P.textureWidth,C=P.texelCount;ae.u_OutputTextureSize=[S,S],ae.u_OutputTexelCount=C,this.context.output.textureSize=[S,S];var V={attributes:{a_Position:[[-1,1,0],[-1,-1,0],[1,1,0],[1,-1,0]],a_TexCoord:[[0,1],[0,0],[1,1],[1,0]]},frag:`#ifdef GL_FRAGMENT_PRECISION_HIGH - precision highp float; -#else - precision mediump float; -#endif -`.concat(this.context.shader),uniforms:ae,vert:tn,primitive:"triangle strip",count:4};this.computeCommand=this.reGl(V)}return(0,O.Z)(Z,[{key:"run",value:function(){var qe=this;this.context.maxIteration>1&&this.context.needPingpong&&(this.compiledPingpong=!0),(this.compiledPingpong||this.dynamicPingpong)&&this.swap(),this.texFBO=this.reGl.framebuffer({color:this.getOuputDataTexture().texture}),this.texFBO.use(function(){qe.computeCommand()}),pr&&console.log("[".concat(this.entity,"]: output ").concat(this.getOuputDataTexture().id))}},{key:"readData",value:function(){var Ot=(0,B.Z)(M().mark(function ne(){var ae=this,P,S,C,V,de,Se,xe,Le;return M().wrap(function(ot){for(;;)switch(ot.prev=ot.next){case 0:if(this.reGl({framebuffer:this.texFBO})(function(){P=ae.reGl.read()}),!P){ot.next=6;break}if(S=this.getOuputDataTexture(),C=S.originalDataLength,V=S.elementsPerTexel,de=S.typedArrayConstructor,Se=de===void 0?Float32Array:de,xe=[],V!==4)for(Le=0;Le2&&arguments[2]!==void 0?arguments[2]:0,P=this.context.uniforms.find(function(de){var Se=de.name;return Se===qe});if(P){var S=this.calcDataTexture(qe,P.type,ne),C=S.texture,V=S.data;this.textureCache[qe].data=V,this.textureCache[qe].texture=C}}},{key:"destroy",value:function(){}},{key:"swap",value:function(){if(this.swapOutputTextureName||this.createSwapOutputDataTexture(),this.compiledPingpong){var qe=this.context.output.name;this.textureCache[qe].id=this.getOuputDataTexture().id,this.textureCache[qe].texture=this.getOuputDataTexture().texture}var ne=this.outputTextureName;this.outputTextureName=this.swapOutputTextureName,this.swapOutputTextureName=ne,pr&&console.log("[".concat(this.entity,"]: after swap, output ").concat(this.getOuputDataTexture().id))}},{key:"getOuputDataTexture",value:function(){return this.textureCache[this.outputTextureName]}},{key:"createSwapOutputDataTexture",value:function(){var qe=this.cloneDataTexture(this.getOuputDataTexture());this.swapOutputTextureName="".concat(this.entity,"-swap"),this.textureCache[this.swapOutputTextureName]=qe}},{key:"cloneDataTexture",value:function(qe){var ne=qe.data,ae=qe.textureWidth;return Wr(Wr({},qe),{},{id:_r++,texture:this.reGl.texture({width:ae,height:ae,data:ne,type:"float"})})}},{key:"calcDataTexture",value:function(qe,ne,ae){var P=1;ne===X.Vector4FloatArray&&(P=4);for(var S=[],C=0;C0&&arguments[0]!==void 0?arguments[0]:{},ne=new Z;return ne.setConfig(qe),ne.setEngine(new mn),ne}}]),Z}()},67320:function(or,U,G){"use strict";var B=this&&this.__createBinding||(Object.create?function(O,N,L,p){p===void 0&&(p=L);var E=Object.getOwnPropertyDescriptor(N,L);(!E||("get"in E?!N.__esModule:E.writable||E.configurable))&&(E={enumerable:!0,get:function(){return N[L]}}),Object.defineProperty(O,p,E)}:function(O,N,L,p){p===void 0&&(p=L),O[p]=N[L]}),W=this&&this.__exportStar||function(O,N){for(var L in O)L!=="default"&&!Object.prototype.hasOwnProperty.call(N,L)&&B(N,O,L)};Object.defineProperty(U,"__esModule",{value:!0}),U.getLayoutByName=U.unRegisterLayout=U.registerLayout=void 0;var k=G(39464);Object.defineProperty(U,"registerLayout",{enumerable:!0,get:function(){return k.registerLayout}}),Object.defineProperty(U,"unRegisterLayout",{enumerable:!0,get:function(){return k.unRegisterLayout}}),Object.defineProperty(U,"getLayoutByName",{enumerable:!0,get:function(){return k.getLayoutByName}}),W(G(64649),U)},46253:function(or,U){"use strict";Object.defineProperty(U,"__esModule",{value:!0}),U.Base=void 0;var G=function(){function B(){this.nodes=[],this.edges=[],this.combos=[],this.comboEdges=[],this.hiddenNodes=[],this.hiddenEdges=[],this.hiddenCombos=[],this.vedges=[],this.positions=[],this.destroyed=!1,this.onLayoutEnd=function(){}}return B.prototype.layout=function(W){return this.init(W),this.execute(!0)},B.prototype.init=function(W){this.nodes=W.nodes||[],this.edges=W.edges||[],this.combos=W.combos||[],this.comboEdges=W.comboEdges||[],this.hiddenNodes=W.hiddenNodes||[],this.hiddenEdges=W.hiddenEdges||[],this.hiddenCombos=W.hiddenCombos||[],this.vedges=W.vedges||[]},B.prototype.execute=function(W){},B.prototype.executeWithWorker=function(){},B.prototype.getDefaultCfg=function(){return{}},B.prototype.updateCfg=function(W){W&&Object.assign(this,W)},B.prototype.getType=function(){return"base"},B.prototype.destroy=function(){this.nodes=null,this.edges=null,this.combos=null,this.positions=null,this.destroyed=!0},B}();U.Base=G},93959:function(or,U,G){"use strict";var B=this&&this.__extends||function(){var E=function(v,g){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,M){d.__proto__=M}||function(d,M){for(var m in M)Object.prototype.hasOwnProperty.call(M,m)&&(d[m]=M[m])},E(v,g)};return function(v,g){if(typeof g!="function"&&g!==null)throw new TypeError("Class extends value "+String(g)+" is not a constructor or null");E(v,g);function d(){this.constructor=v}v.prototype=g===null?Object.create(g):(d.prototype=g.prototype,new d)}}();Object.defineProperty(U,"__esModule",{value:!0}),U.CircularLayout=void 0;var W=G(46253),k=G(8273);function O(E,v,g,d){E.forEach(function(M,m){E[m].children=[],E[m].parent=[]}),d?v.forEach(function(M){var m=(0,k.getEdgeTerminal)(M,"source"),x=(0,k.getEdgeTerminal)(M,"target"),T=0;m&&(T=g[m]);var R=0;x&&(R=g[x]);var w=E[T].children,b=E[R].parent;w.push(E[R].id),b.push(E[T].id)}):v.forEach(function(M){var m=(0,k.getEdgeTerminal)(M,"source"),x=(0,k.getEdgeTerminal)(M,"target"),T=0;m&&(T=g[m]);var R=0;x&&(R=g[x]);var w=E[T].children,b=E[R].children;w.push(E[R].id),b.push(E[T].id)})}function N(E,v,g){for(var d=g.length,M=0;Md?1:0}var p=function(E){B(v,E);function v(g){var d=E.call(this)||this;return d.radius=null,d.nodeSize=void 0,d.startRadius=null,d.endRadius=null,d.startAngle=0,d.endAngle=2*Math.PI,d.clockwise=!0,d.divisions=1,d.ordering=null,d.angleRatio=1,d.nodes=[],d.edges=[],d.nodeMap={},d.degrees=[],d.width=300,d.height=300,d.updateCfg(g),d}return v.prototype.getDefaultCfg=function(){return{radius:null,startRadius:null,endRadius:null,startAngle:0,endAngle:2*Math.PI,clockwise:!0,divisions:1,ordering:null,angleRatio:1}},v.prototype.execute=function(){var g,d=this,M=d.nodes,m=d.edges,x=M.length;if(x===0){d.onLayoutEnd&&d.onLayoutEnd();return}!d.width&&typeof window!="undefined"&&(d.width=window.innerWidth),!d.height&&typeof window!="undefined"&&(d.height=window.innerHeight),d.center||(d.center=[d.width/2,d.height/2]);var T=d.center;if(x===1){M[0].x=T[0],M[0].y=T[1],d.onLayoutEnd&&d.onLayoutEnd();return}var R=d.radius,w=d.startRadius,b=d.endRadius,$=d.divisions,j=d.startAngle,X=d.endAngle,H=d.angleRatio,J=d.ordering,q=d.clockwise,Q=d.nodeSpacing,te=d.nodeSize,fe=(X-j)/x,ye={};M.forEach(function(Wt,er){ye[Wt.id]=er}),d.nodeMap=ye;var me=(0,k.getDegree)(M.length,ye,m);if(d.degrees=me,Q){var ge=(0,k.getFuncByUnknownType)(10,Q),be=(0,k.getFuncByUnknownType)(10,te),ve=-Infinity;M.forEach(function(Wt){var er=be(Wt);ved.width?d.width/2:d.height/2:!w&&b?w=b:w&&!b&&(b=w);var De=fe*H,Ge=[];J==="topology"?Ge=d.topologyOrdering():J==="topology-directed"?Ge=d.topologyOrdering(!0):J==="degree"?Ge=d.degreeOrdering():Ge=M;for(var tt=Math.ceil(x/$),St=0;St=0;be--)ge(be);return{nodes:M,edges:m,combos:x,comboEdges:T}},v.prototype.getInnerGraphs=function(g){var d=this,M=d.comboTrees,m=d.nodeSize,x=d.edges,T=d.comboPadding,R=d.spacing,w={},b=this.innerLayout||new L.ConcentricLayout({sortBy:"id"});return b.center=[0,0],b.preventOverlap=!0,b.nodeSpacing=R,(M||[]).forEach(function($){(0,N.traverseTreeUp)($,function(j){var X,H=(T==null?void 0:T(j))||10;if((0,N.isArray)(H)&&(H=Math.max.apply(Math,H)),(X=j.children)===null||X===void 0?void 0:X.length){var q=j.children.map(function(Ge){if(Ge.itemType==="combo")return w[Ge.id];var tt=g[Ge.id]||{};return W(W({},tt),Ge)}),Q=q.map(function(Ge){return Ge.id}),te={nodes:q,edges:x.filter(function(Ge){return Q.includes(Ge.source)&&Q.includes(Ge.target)})},fe=Infinity;q.forEach(function(Ge){var tt;Ge.size||(Ge.size=((tt=w[Ge.id])===null||tt===void 0?void 0:tt.size)||(m==null?void 0:m(Ge))||[30,30]),(0,N.isNumber)(Ge.size)&&(Ge.size=[Ge.size,Ge.size]),fe>Ge.size[0]&&(fe=Ge.size[0]),fe>Ge.size[1]&&(fe=Ge.size[1])}),b.layout(te);var ye=(0,N.getLayoutBBox)(q),me=ye.minX,ge=ye.minY,be=ye.maxX,ve=ye.maxY,_e={x:(be+me)/2,y:(ve+ge)/2};te.nodes.forEach(function(Ge){Ge.x-=_e.x,Ge.y-=_e.y});var De=Math.max(be-me,ve-ge,fe)+H*2;w[j.id]={id:j.id,nodes:q,size:[De,De]}}else if(j.itemType==="combo"){var J=H?[H*2,H*2]:[30,30];w[j.id]={id:j.id,nodes:[],size:J}}return!0})}),w},v.prototype.initVals=function(){var g=this,d=g.nodeSize,M=g.spacing,m,x;if((0,N.isNumber)(M)?x=function(){return M}:(0,N.isFunction)(M)?x=M:x=function(){return 0},this.spacing=x,!d)m=function(j){var X=x(j);if(j.size){if((0,N.isArray)(j.size)){var H=j.size[0]>j.size[1]?j.size[0]:j.size[1];return(H+X)/2}if((0,N.isObject)(j.size)){var H=j.size.width>j.size.height?j.size.width:j.size.height;return(H+X)/2}return(j.size+X)/2}return 10+X/2};else if((0,N.isFunction)(d))m=function(j){var X=d(j),H=x(j);if((0,N.isArray)(j.size)){var J=j.size[0]>j.size[1]?j.size[0]:j.size[1];return(J+H)/2}return((X||10)+H)/2};else if((0,N.isArray)(d)){var T=d[0]>d[1]?d[0]:d[1],R=T/2;m=function(j){return R+x(j)/2}}else{var w=d/2;m=function(j){return w+x(j)/2}}this.nodeSize=m;var b=g.comboPadding,$;(0,N.isNumber)(b)?$=function(){return b}:(0,N.isArray)(b)?$=function(){return Math.max.apply(null,b)}:(0,N.isFunction)(b)?$=b:$=function(){return 0},this.comboPadding=$},v.prototype.getType=function(){return"comboCombined"},v}(O.Base);U.ComboCombinedLayout=p},48133:function(or,U,G){"use strict";var B=this&&this.__extends||function(){var N=function(L,p){return N=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,v){E.__proto__=v}||function(E,v){for(var g in v)Object.prototype.hasOwnProperty.call(v,g)&&(E[g]=v[g])},N(L,p)};return function(L,p){if(typeof p!="function"&&p!==null)throw new TypeError("Class extends value "+String(p)+" is not a constructor or null");N(L,p);function E(){this.constructor=L}L.prototype=p===null?Object.create(p):(E.prototype=p.prototype,new E)}}();Object.defineProperty(U,"__esModule",{value:!0}),U.ComboForceLayout=void 0;var W=G(46253),k=G(8273),O=function(N){B(L,N);function L(p){var E=N.call(this)||this;return E.center=[0,0],E.maxIteration=100,E.gravity=10,E.comboGravity=10,E.linkDistance=10,E.alpha=1,E.alphaMin=.001,E.alphaDecay=1-Math.pow(E.alphaMin,1/300),E.alphaTarget=0,E.velocityDecay=.6,E.edgeStrength=.6,E.nodeStrength=30,E.preventOverlap=!1,E.preventNodeOverlap=!1,E.preventComboOverlap=!1,E.collideStrength=void 0,E.nodeCollideStrength=.5,E.comboCollideStrength=.5,E.comboSpacing=20,E.comboPadding=10,E.optimizeRangeFactor=1,E.onTick=function(){},E.onLayoutEnd=function(){},E.depthAttractiveForceScale=1,E.depthRepulsiveForceScale=2,E.nodes=[],E.edges=[],E.combos=[],E.comboTrees=[],E.width=300,E.height=300,E.bias=[],E.nodeMap={},E.oriComboMap={},E.indexMap={},E.comboMap={},E.previousLayouted=!1,E.updateCfg(p),E}return L.prototype.getDefaultCfg=function(){return{maxIteration:100,center:[0,0],gravity:10,speed:1,comboGravity:30,preventOverlap:!1,preventComboOverlap:!0,preventNodeOverlap:!0,nodeSpacing:void 0,collideStrength:void 0,nodeCollideStrength:.5,comboCollideStrength:.5,comboSpacing:20,comboPadding:10,edgeStrength:.6,nodeStrength:30,linkDistance:10}},L.prototype.execute=function(){var p=this,E=p.nodes,v=p.center;if(p.comboTree={id:"comboTreeRoot",depth:-1,children:p.comboTrees},!E||E.length===0){p.onLayoutEnd&&p.onLayoutEnd();return}if(E.length===1){E[0].x=v[0],E[0].y=v[1],p.onLayoutEnd&&p.onLayoutEnd();return}p.initVals(),p.run(),p.onLayoutEnd&&p.onLayoutEnd()},L.prototype.run=function(){var p=this,E=p.nodes,v=p.previousLayouted?p.maxIteration/5:p.maxIteration;!p.width&&typeof window!="undefined"&&(p.width=window.innerWidth),!p.height&&typeof window!="undefined"&&(p.height=window.innerHeight);var g=p.center,d=p.velocityDecay,M=p.comboMap;p.previousLayouted||p.initPos(M);for(var m=function(w){var b=[];E.forEach(function($,j){b[j]={x:0,y:0}}),p.applyCalculate(b),p.applyComboCenterForce(b),E.forEach(function($,j){!(0,k.isNumber)($.x)||!(0,k.isNumber)($.y)||($.x+=b[j].x*d,$.y+=b[j].y*d)}),p.alpha+=(p.alphaTarget-p.alpha)*p.alphaDecay,p.onTick()},x=0;xat.size[1]?at.size[0]:at.size[1];return Mt/2}if((0,k.isObject)(at.size)){var Mt=at.size.width>at.size.height?at.size.width:at.size.height;return Mt/2}return at.size/2}return 10};else if((0,k.isFunction)(X))J=function(at){return X(at)};else if((0,k.isArray)(X)){var Q=X[0]>X[1]?X[0]:X[1],te=Q/2;J=function(at){return te}}else{var fe=X/2;J=function(at){return fe}}this.nodeSize=J;var ye=p.comboSpacing,me;(0,k.isNumber)(ye)?me=function(){return ye}:(0,k.isFunction)(ye)?me=ye:me=function(){return 0},this.comboSpacing=me;var ge=p.comboPadding,be;(0,k.isNumber)(ge)?be=function(){return ge}:(0,k.isArray)(ge)?be=function(){return Math.max.apply(null,ge)}:(0,k.isFunction)(ge)?be=ge:be=function(){return 0},this.comboPadding=be;var ve=this.linkDistance,_e;ve||(ve=10),(0,k.isNumber)(ve)?_e=function(at){return ve}:_e=ve,this.linkDistance=_e;var De=this.edgeStrength,Ge;De||(De=1),(0,k.isNumber)(De)?Ge=function(at){return De}:Ge=De,this.edgeStrength=Ge;var tt=this.nodeStrength,St;tt||(tt=30),(0,k.isNumber)(tt)?St=function(at){return tt}:St=tt,this.nodeStrength=St},L.prototype.initPos=function(p){var E=this,v=E.nodes;v.forEach(function(g,d){var M=g.comboId,m=p[M];M&&m?(g.x=m.cx+100/(d+1),g.y=m.cy+100/(d+1)):(g.x=100/(d+1),g.y=100/(d+1))})},L.prototype.getComboMap=function(){var p=this,E=p.nodeMap,v=p.comboTrees,g=p.oriComboMap,d={};return(v||[]).forEach(function(M){var m=[];(0,k.traverseTreeUp)(M,function(x){if(x.itemType==="node"||!g[x.id])return!0;if(d[x.id]===void 0){var T={id:x.id,name:x.id,cx:0,cy:0,count:0,depth:p.oriComboMap[x.id].depth||0,children:[]};d[x.id]=T}var R=x.children;R&&R.forEach(function($){if(!d[$.id]&&!E[$.id])return!0;m.push($)});var w=d[x.id];if(w.cx=0,w.cy=0,m.length===0){w.empty=!0;var b=g[x.id];w.cx=b.x,w.cy=b.y}return m.forEach(function($){if(w.count++,$.itemType!=="node"){var j=d[$.id];(0,k.isNumber)(j.cx)&&(w.cx+=j.cx),(0,k.isNumber)(j.cy)&&(w.cy+=j.cy);return}var X=E[$.id];!X||((0,k.isNumber)(X.x)&&(w.cx+=X.x),(0,k.isNumber)(X.y)&&(w.cy+=X.y))}),w.cx/=w.count||1,w.cy/=w.count||1,w.children=m,!0})}),d},L.prototype.applyComboCenterForce=function(p){var E=this,v=E.gravity,g=E.comboGravity||v,d=this.alpha,M=E.comboTrees,m=E.indexMap,x=E.nodeMap,T=E.comboMap;(M||[]).forEach(function(R){(0,k.traverseTreeUp)(R,function(w){if(w.itemType==="node")return!0;var b=T[w.id];if(!b)return!0;var $=T[w.id],j=($.depth+1)/10*.5,X=$.cx,H=$.cy;return $.cx=0,$.cy=0,$.children.forEach(function(J){if(J.itemType!=="node"){var q=T[J.id];q&&(0,k.isNumber)(q.cx)&&($.cx+=q.cx),q&&(0,k.isNumber)(q.cy)&&($.cy+=q.cy);return}var Q=x[J.id],te=Q.x-X||.005,fe=Q.y-H||.005,ye=Math.sqrt(te*te+fe*fe),me=m[Q.id],ge=g*d/ye*j;p[me].x-=te*ge,p[me].y-=fe*ge,(0,k.isNumber)(Q.x)&&($.cx+=Q.x),(0,k.isNumber)(Q.y)&&($.cy+=Q.y)}),$.cx/=$.count||1,$.cy/=$.count||1,!0})})},L.prototype.applyCalculate=function(p){var E=this,v=E.comboMap,g=E.nodes,d={};g.forEach(function(m,x){g.forEach(function(T,R){if(!(xq&&(w.minX=q),w.minY>Q&&(w.minY=Q),w.maxX1&&T.forEach(function(R,w){if(R.itemType==="node")return!1;var b=E[R.id];!b||T.forEach(function($,j){if(w<=j||$.itemType==="node")return!1;var X=E[$.id];if(!X)return!1;var H=b.cx-X.cx||.005,J=b.cy-X.cy||.005,q=H*H+J*J,Q=b.r||1,te=X.r||1,fe=Q+te,ye=te*te,me=Q*Q;if(qd)){var be=E["".concat(j.id,"-").concat(te.id)],ve=be.vx,_e=be.vy,De=Math.log(Math.abs(te.depth-j.depth)/10)+1||1;De=De<1?1:De,te.comboId!==j.comboId&&(De+=1);var Ge=De?Math.pow(b,De):1,tt=M(te)*m/me*Ge;if(p[X].x+=ve*tt,p[X].y+=_e*tt,X0){var Ge=Math.abs(J[0][v.sortBy]-De[v.sortBy]);v.maxLevelDiff&&Ge>=v.maxLevelDiff&&(J=[],H.push(J))}J.push(De)});var q=w+(b||v.minNodeSpacing);if(!v.preventOverlap){var Q=H.length>0&&H[0].length>1,te=Math.min(v.width,v.height)/2-q,fe=te/(H.length+(Q?1:0));q=Math.min(q,fe)}var ye=0;if(H.forEach(function(De){var Ge=v.sweep;Ge===void 0&&(Ge=2*Math.PI-2*Math.PI/De.length);var tt=De.dTheta=Ge/Math.max(1,De.length-1);if(De.length>1&&v.preventOverlap){var St=Math.cos(tt)-Math.cos(0),at=Math.sin(tt)-Math.sin(0),Mt=Math.sqrt(q*q/(St*St+at*at));ye=Math.max(Mt,ye)}De.r=ye,ye+=q}),v.equidistant){for(var me=0,ge=0,be=0;bezt.x&&(tt=zt.x),St>zt.y&&(St=zt.y)}),te.edges().forEach(function(Dt){var zt,Sr=te.edge(Dt);(zt=Sr.points)===null||zt===void 0||zt.forEach(function(dr){tt>dr.x&&(tt=dr.x),St>dr.y&&(St=dr.y)})}),Ge[0]=$[0]-tt,Ge[1]=$[1]-St}if(j){var at=this,Mt=at.focusNode,Wt=at.ranksep,er=at.getRadialPos,it=(0,O.isString)(Mt)?Mt:Mt==null?void 0:Mt.id,yt=it?(m=te.node(it))===null||m===void 0?void 0:m._rank:0,bt=[],Ft=w==="LR"||w==="RL",wt=Ft?"y":"x",pt=Ft?"height":"width",sr=Infinity,Ur=-Infinity;te.nodes().forEach(function(Dt){var zt=te.node(Dt),Sr=T.findIndex(function(tn){return tn.id===Dt});if(!!T[Sr]){var dr=ge(T[Sr]);if(yt===0)bt[zt._rank]||(bt[zt._rank]={nodes:[],totalWidth:0,maxSize:-Infinity}),bt[zt._rank].nodes.push(Dt),bt[zt._rank].totalWidth+=dr*2+zt[pt],bt[zt._rank].maxSizeUr&&(Ur=Wr)}});var Zt=Wt||50,ut={},Rt=(Ur-sr)/.9,tr=[(sr+Ur-Rt)*.5,(sr+Ur+Rt)*.5],wr=function(Dt,zt,Sr,dr){Sr===void 0&&(Sr=-Infinity),dr===void 0&&(dr=[0,1]);var Fr=Sr;return Dt.forEach(function(nn){var $r=te.node(nn);ut[nn]=zt;var Wr=er($r[wt],tr,Rt,zt,dr),tn=Wr.x,_r=Wr.y,pr=T.findIndex(function(sn){return sn.id===nn});if(!!T[pr]){T[pr].x=tn+Ge[0],T[pr].y=_r+Ge[1],T[pr]._order=$r._order;var Rr=me(T[pr]);Frw.x&&(T=w.x),R>w.y&&(R=w.y)}),d.forEach(function(w){w.points.forEach(function(b){T>b.x&&(T=b.x),R>b.y&&(R=b.y)})}),x[0]=m[0]-T,x[1]=m[1]-R}return x},v.prototype.updateNodePosition=function(g,d){var M=this,m=M.combos,x=M.nodes,T=M.edges,R=M.anchorPoint,w=M.graphSettings,b=this.getBegin(g,d);g.forEach(function($){var j,X=$.x,H=$.y,J=$.id,q=$.type,Q=$.coreBox;if(q===N.HierarchyNodeType.META&&J!==N.ROOT_NAME){var te=m.findIndex(function(be){return be.id===J}),fe=(j=w==null?void 0:w.subScene)===null||j===void 0?void 0:j.meta;m[te].offsetX=X+b[0],m[te].offsetY=H+b[1],m[te].fixSize=[Q.width,Q.height],m[te].fixCollapseSize=[Q.width,Q.height],$.expanded?m[te].padding=[fe==null?void 0:fe.paddingTop,fe==null?void 0:fe.paddingRight,fe==null?void 0:fe.paddingBottom,fe==null?void 0:fe.paddingLeft]:m[te].padding=[0,0,0,0]}else if(q===N.HierarchyNodeType.OP){var te=x.findIndex(function(ve){return ve.id===J});if(x[te].x=X+b[0],x[te].y=H+b[1],R){var ye=[],me=d.filter(function(ve){return ve.v===J}),ge=d.filter(function(ve){return ve.w===J});me.length>0&&me.forEach(function(ve){var _e=ve.points[0],De=(_e.x-X)/$.width+.5,Ge=(_e.y-H)/$.height+.5;ye.push([De,Ge]),ve.baseEdgeList.forEach(function(tt){var St=T.find(function(at){return at.source===tt.v&&at.target===tt.w});St&&(St.sourceAnchor=ye.length-1)})}),ge.length>0&&ge.forEach(function(ve){var _e=ve.points[ve.points.length-1],De=(_e.x-X)/$.width+.5,Ge=(_e.y-H)/$.height+.5;ye.push([De,Ge]),ve.baseEdgeList.forEach(function(tt){var St=T.find(function(at){return at.source===tt.v&&at.target===tt.w});St&&(St.targetAnchor=ye.length-1)})}),x[te].anchorPoints=ye.length>0?ye:x[te].anchorPoints||[]}}})},v.prototype.updateEdgePosition=function(g,d){var M=this,m=M.combos,x=M.edges,T=M.controlPoints,R=this.getBegin(g,d);T&&(m.forEach(function(w){w.inEdges=[],w.outEdges=[]}),x.forEach(function(w){var b,$,j,X,H=g.find(function(be){return be.id===w.source}),J=g.find(function(be){return be.id===w.target}),q=[],Q=[];if(H&&J)Q=(0,N.getEdges)(H==null?void 0:H.id,J==null?void 0:J.id,g);else if(!H||!J){var te=M.getNodePath(w.source),fe=M.getNodePath(w.target),ye=te.reverse().slice(H?0:1).find(function(be){return g.find(function(ve){return ve.id===be})}),me=fe.reverse().slice(J?0:1).find(function(be){return g.find(function(ve){return ve.id===be})});H=g.find(function(be){return be.id===ye}),J=g.find(function(be){return be.id===me}),Q=(0,N.getEdges)(H==null?void 0:H.id,J==null?void 0:J.id,g,{v:w.source,w:w.target})}if(q=Q.reduce(function(be,ve){return k(k([],be,!0),ve.points.map(function(_e){return W(W({},_e),{x:_e.x+R[0],y:_e.y+R[1]})}),!0)},[]),q=q.slice(1,-1),w.controlPoints=q,(J==null?void 0:J.type)===N.NodeType.META){var ge=m.findIndex(function(be){return be.id===(J==null?void 0:J.id)});if(!m[ge]||((b=m[ge].inEdges)===null||b===void 0?void 0:b.some(function(be){return be.source===H.id&&be.target===J.id})))return;($=m[ge].inEdges)===null||$===void 0||$.push({source:H.id,target:J.id,controlPoints:q})}if((H==null?void 0:H.type)===N.NodeType.META){var ge=m.findIndex(function(ve){return ve.id===(H==null?void 0:H.id)});if(!m[ge]||((j=m[ge].outEdges)===null||j===void 0?void 0:j.some(function(ve){return ve.source===H.id&&ve.target===J.id})))return;(X=m[ge].outEdges)===null||X===void 0||X.push({source:H.id,target:J.id,controlPoints:q})}}))},v.prototype.getType=function(){return"dagreCompound"},v.prototype.getDataByOrder=function(g){return g.every(function(d){return d.layoutOrder!==void 0})||g.forEach(function(d,M){d.layoutOrder=M}),g.sort(function(d,M){return d.layoutOrder-M.layoutOrder})},v}(O.Base);U.DagreCompoundLayout=p},67858:function(or,U,G){"use strict";var B=this&&this.__extends||function(){var O=function(N,L){return O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,E){p.__proto__=E}||function(p,E){for(var v in E)Object.prototype.hasOwnProperty.call(E,v)&&(p[v]=E[v])},O(N,L)};return function(N,L){if(typeof L!="function"&&L!==null)throw new TypeError("Class extends value "+String(L)+" is not a constructor or null");O(N,L);function p(){this.constructor=N}N.prototype=L===null?Object.create(L):(p.prototype=L.prototype,new p)}}();Object.defineProperty(U,"__esModule",{value:!0}),U.Graph=void 0;var W=G(69787),k=function(O){B(N,O);function N(){return O!==null&&O.apply(this,arguments)||this}return N}(W.Graph);U.Graph=k},53186:function(or,U,G){"use strict";var B=this&&this.__importDefault||function(O){return O&&O.__esModule?O:{default:O}};Object.defineProperty(U,"__esModule",{value:!0});var W=B(G(86282)),k=G(95869);U.default={layout:W.default,util:{time:k.time,notime:k.notime}}},65721:function(or,U,G){"use strict";var B=this&&this.__importDefault||function(L){return L&&L.__esModule?L:{default:L}};Object.defineProperty(U,"__esModule",{value:!0});var W=B(G(81628)),k=function(L){var p=function(v){return function(g){var d;return((d=v.edge(g))===null||d===void 0?void 0:d.weight)||1}},E=L.graph().acyclicer==="greedy"?(0,W.default)(L,p(L)):O(L);E==null||E.forEach(function(v){var g=L.edge(v);L.removeEdgeObj(v),g.forwardName=v.name,g.reversed=!0,L.setEdge(v.w,v.v,g,"rev-".concat(Math.random()))})},O=function(L){var p=[],E={},v={},g=function(d){var M;v[d]||(v[d]=!0,E[d]=!0,(M=L.outEdges(d))===null||M===void 0||M.forEach(function(m){E[m.w]?p.push(m):g(m.w)}),delete E[d])};return L.nodes().forEach(g),p},N=function(L){L.edges().forEach(function(p){var E=L.edge(p);if(E.reversed){L.removeEdgeObj(p);var v=E.forwardName;delete E.reversed,delete E.forwardName,L.setEdge(p.w,p.v,E,v)}})};U.default={run:k,undo:N}},88597:function(or,U,G){"use strict";Object.defineProperty(U,"__esModule",{value:!0});var B=G(95869),W=function(O){var N,L=function(p){var E=O.children(p),v=O.node(p);if((E==null?void 0:E.length)&&E.forEach(function(M){return L(M)}),v.hasOwnProperty("minRank")){v.borderLeft=[],v.borderRight=[];for(var g=v.minRank,d=v.maxRank+1;g0;--j)if($=x[j].dequeue(),$){R=R.concat(g(m,x,T,$,!0));break}}}return R},g=function(m,x,T,R,w){var b,$,j=[];return(b=m.inEdges(R.v))===null||b===void 0||b.forEach(function(X){var H=m.edge(X),J=m.node(X.v);w&&j.push({v:X.v,w:X.w,in:0,out:0}),J.out===void 0&&(J.out=0),J.out-=H,M(x,T,J)}),($=m.outEdges(R.v))===null||$===void 0||$.forEach(function(X){var H=m.edge(X),J=X.w,q=m.node(J);q.in===void 0&&(q.in=0),q.in-=H,M(x,T,q)}),m.removeNode(R.v),w?j:void 0},d=function(m,x){var T=new L,R=0,w=0;m.nodes().forEach(function(H){T.setNode(H,{v:H,in:0,out:0})}),m.edges().forEach(function(H){var J=T.edge(H)||0,q=(x==null?void 0:x(H))||1,Q=J+q;T.setEdge(H.v,H.w,Q),w=Math.max(w,T.node(H.v).out+=q),R=Math.max(R,T.node(H.w).in+=q)});for(var b=[],$=w+R+3,j=0;j<$;j++)b.push(new N);var X=R+1;return T.nodes().forEach(function(H){M(b,X,T.node(H))}),{buckets:b,zeroIdx:X,graph:T}},M=function(m,x,T){T.out?T.in?m[T.out-T.in+x].enqueue(T):m[m.length-1].enqueue(T):m[0].enqueue(T)};U.default=E},86282:function(or,U,G){"use strict";var B=this&&this.__assign||function(){return B=Object.assign||function(it){for(var yt,bt=1,Ft=arguments.length;bt0;)T%2&&(R+=M[T+1]),T=T-1>>1,M[T]+=x.weight;m+=x.weight*R}}),m},k=function(O,N){for(var L=0,p=1;p<(N==null?void 0:N.length);p+=1)L+=W(O,N[p-1],N[p]);return L};U.default=k},15113:function(or,U,G){"use strict";var B=this&&this.__importDefault||function(x){return x&&x.__esModule?x:{default:x}};Object.defineProperty(U,"__esModule",{value:!0});var W=B(G(19722)),k=B(G(14842)),O=B(G(74798)),N=B(G(99388)),L=B(G(69563)),p=G(8273),E=G(67858),v=G(95869),g=function(x,T){for(var R=(0,v.maxRank)(x),w=[],b=[],$=1;$-1;$--)b.push($);var j=d(x,w,"inEdges"),X=d(x,b,"outEdges"),H=(0,W.default)(x);m(x,H);for(var J=Number.POSITIVE_INFINITY,q,$=0,Q=0;Q<4;++$,++Q){M($%2?j:X,$%4>=2,!1,T),H=(0,v.buildLayerMatrix)(x);var te=(0,k.default)(x,H);te=2,!0,T),H=(0,v.buildLayerMatrix)(x);var te=(0,k.default)(x,H);te=M.barycenter)&&W(M,m)}},E=function(M){return function(m){m.in.push(M),--m.indegree==0&&k.push(m)}},v=function(){var M=k.pop();L.push(M),(O=M.in.reverse())===null||O===void 0||O.forEach(function(m){return p(M)(m)}),(N=M.out)===null||N===void 0||N.forEach(function(m){return E(M)(m)})};k==null?void 0:k.length;)v();var g=L.filter(function(M){return!M.merged}),d=["vs","i","barycenter","weight"];return g.map(function(M){var m={};return d==null||d.forEach(function(x){M[x]!==void 0&&(m[x]=M[x])}),m})},W=function(k,O){var N,L=0,p=0;k.weight&&(L+=k.barycenter*k.weight,p+=k.weight),O.weight&&(L+=O.barycenter*O.weight,p+=O.weight),k.vs=(N=O.vs)===null||N===void 0?void 0:N.concat(k.vs),k.barycenter=L/p,k.weight=p,k.i=Math.min(O.i,k.i),O.merged=!0};U.default=G},69563:function(or,U,G){"use strict";var B=this&&this.__importDefault||function(E){return E&&E.__esModule?E:{default:E}};Object.defineProperty(U,"__esModule",{value:!0});var W=B(G(38937)),k=B(G(73792)),O=B(G(17457)),N=function(E,v,g,d,M,m){var x,T,R,w,b=E.children(v),$=E.node(v),j=$?$.borderLeft:void 0,X=$?$.borderRight:void 0,H={};j&&(b=b==null?void 0:b.filter(function(ye){return ye!==j&&ye!==X}));var J=(0,W.default)(E,b||[]);J==null||J.forEach(function(ye){var me;if((me=E.children(ye.v))===null||me===void 0?void 0:me.length){var ge=N(E,ye.v,g,d,m);H[ye.v]=ge,ge.hasOwnProperty("barycenter")&&p(ye,ge)}});var q=(0,k.default)(J,g);L(q,H),(x=q.filter(function(ye){return ye.vs.length>0}))===null||x===void 0||x.forEach(function(ye){var me=E.node(ye.vs[0]);me&&(ye.fixorder=me.fixorder,ye.order=me.order)});var Q=(0,O.default)(q,d,M,m);if(j&&(Q.vs=[j,Q.vs,X].flat(),(T=E.predecessors(j))===null||T===void 0?void 0:T.length)){var te=E.node(((R=E.predecessors(j))===null||R===void 0?void 0:R[0])||""),fe=E.node(((w=E.predecessors(X))===null||w===void 0?void 0:w[0])||"");Q.hasOwnProperty("barycenter")||(Q.barycenter=0,Q.weight=0),Q.barycenter=(Q.barycenter*Q.weight+te.order+fe.order)/(Q.weight+2),Q.weight+=2}return Q},L=function(E,v){E==null||E.forEach(function(g){var d,M=(d=g.vs)===null||d===void 0?void 0:d.map(function(m){return v[m]?v[m].vs:m});g.vs=M.flat()})},p=function(E,v){E.barycenter!==void 0?(E.barycenter=(E.barycenter*E.weight+v.barycenter*v.weight)/(E.weight+v.weight),E.weight+=v.weight):(E.barycenter=v.barycenter,E.weight=v.weight)};U.default=N},17457:function(or,U,G){"use strict";Object.defineProperty(U,"__esModule",{value:!0});var B=G(95869),W=function(N,L,p,E){var v=(0,B.partition)(N,function(w){var b=w.hasOwnProperty("fixorder")&&!isNaN(w.fixorder);return E?!b&&w.hasOwnProperty("barycenter"):b||w.hasOwnProperty("barycenter")}),g=v.lhs,d=v.rhs.sort(function(w,b){return-w.i- -b.i}),M=[],m=0,x=0,T=0;g==null||g.sort(O(!!L,!!p)),T=k(M,d,T),g==null||g.forEach(function(w){var b;T+=(b=w.vs)===null||b===void 0?void 0:b.length,M.push(w.vs),m+=w.barycenter*w.weight,x+=w.weight,T=k(M,d,T)});var R={vs:M.flat()};return x&&(R.barycenter=m/x,R.weight=x),R},k=function(N,L,p){for(var E=p,v;L.length&&(v=L[L.length-1]).i<=E;)L.pop(),N==null||N.push(v.vs),E++;return E},O=function(N,L){return function(p,E){if(p.fixorder!==void 0&&E.fixorder!==void 0)return p.fixorder-E.fixorder;if(p.barycenterE.barycenter)return 1;if(L&&p.order!==void 0&&E.order!==void 0){if(p.orderE.order)return 1}return N?E.i-p.i:p.i-E.i}};U.default=W},99946:function(or,U){"use strict";Object.defineProperty(U,"__esModule",{value:!0});var G=function(k){var O,N={},L=0,p=function(E){var v,g=L;(v=k.children(E))===null||v===void 0||v.forEach(p),N[E]={low:g,lim:L++}};return(O=k.children())===null||O===void 0||O.forEach(p),N},B=function(k,O,N,L){var p=[],E=[],v=Math.min(O[N].low,O[L].low),g=Math.max(O[N].lim,O[L].lim),d,M;d=N;do d=k.parent(d),p.push(d);while(d&&(O[d].low>v||g>O[d].lim));for(M=d,d=L;d&&d!==M;)E.push(d),d=k.parent(d);return{lca:M,path:p.concat(E.reverse())}},W=function(k){var O,N=G(k);(O=k.graph().dummyChains)===null||O===void 0||O.forEach(function(L){var p,E,v=L,g=k.node(v),d=g.edgeObj;if(!!d)for(var M=B(k,N,d.v,d.w),m=M.path,x=M.lca,T=0,R=m[T],w=!0;v!==d.w;){if(g=k.node(v),w){for(;R!==x&&((p=k.node(R))===null||p===void 0?void 0:p.maxRank)ye)&&(0,U.addConflict)(X,Ge,me)}))})},J=function(q,Q){var te=-1,fe,ye=0;return Q==null||Q.forEach(function(me,ge){var be;if(((be=$.node(me))===null||be===void 0?void 0:be.dummy)==="border"){var ve=$.predecessors(me)||[];ve.length&&(fe=$.node(ve[0]).order,H(Q,ye,ge,te,fe),ye=ge,te=fe)}H(Q,ye,Q.length,fe,q.length)}),Q};return(j==null?void 0:j.length)&&j.reduce(J),X};U.findType2Conflicts=L;var p=function($,j){var X,H;if((X=$.node(j))===null||X===void 0?void 0:X.dummy)return(H=$.predecessors(j))===null||H===void 0?void 0:H.find(function(J){return $.node(J).dummy})};U.findOtherInnerSegmentNode=p;var E=function($,j,X){var H=j,J=X;if(H>J){var q=H;H=J,J=q}var Q=$[H];Q||($[H]=Q={}),Q[J]=!0};U.addConflict=E;var v=function($,j,X){var H=j,J=X;if(H>J){var q=j;H=J,J=q}return!!$[H]};U.hasConflict=v;var g=function($,j,X,H){var J={},q={},Q={};return j==null||j.forEach(function(te){te==null||te.forEach(function(fe,ye){J[fe]=fe,q[fe]=fe,Q[fe]=ye})}),j==null||j.forEach(function(te){var fe=-1;te==null||te.forEach(function(ye){var me=H(ye);if(me.length){me=me.sort(function(De,Ge){return Q[De]-Q[Ge]});for(var ge=(me.length-1)/2,be=Math.floor(ge),ve=Math.ceil(ge);be<=ve;++be){var _e=me[be];q[ye]===ye&&feQ.lim&&(te=Q,fe=!0);var ye=j.edges().filter(function(me){return fe===b($,$.node(me.v),te)&&fe!==b($,$.node(me.w),te)});return(0,k.minBy)(ye,function(me){return(0,W.slack)(j,me)})};U.enterEdge=x;var T=function($,j,X,H){var J=X.v,q=X.w;$.removeEdge(J,q),$.setEdge(H.v,H.w,{}),(0,U.initLowLimValues)($),(0,U.initCutValues)($,j),R($,j)};U.exchangeEdges=T;var R=function($,j){var X=$.nodes().find(function(J){var q;return!((q=j.node(J))===null||q===void 0?void 0:q.parent)}),H=N($,X);H=H==null?void 0:H.slice(1),H==null||H.forEach(function(J){var q=$.node(J).parent,Q=j.edgeFromArgs(J,q),te=!1;Q||(Q=j.edgeFromArgs(q,J),te=!0),j.node(J).rank=j.node(q).rank+(te?Q.minlen:-Q.minlen)})},w=function($,j,X){return $.hasEdge(j,X)},b=function($,j,X){return X.low<=j.lim&&j.lim<=X.lim};U.default=p},76783:function(or,U){"use strict";Object.defineProperty(U,"__esModule",{value:!0}),U.slack=U.longestPathWithLayer=U.longestPath=void 0;var G=function(k){var O,N={},L=function(p){var E,v=k.node(p);if(!v)return 0;if(N[p])return v.rank;N[p]=!0;var g;return(E=k.outEdges(p))===null||E===void 0||E.forEach(function(d){var M=L(d.w),m=k.edge(d).minlen,x=M-m;x&&(g===void 0||xMath.abs(q)*fe?(Q<0&&(fe=-fe),ye=fe*q/Q,me=fe):(q<0&&(te=-te),ye=te,me=te*Q/q),{x:H+ye,y:J+me}};U.intersectRect=g;var d=function(j){for(var X=[],H=(0,U.maxRank)(j)+1,J=0;JX)&&(X=q)}),X||(X=0),X};U.maxRank=T;var R=function(j,X){var H={lhs:[],rhs:[]};return j==null||j.forEach(function(J){X(J)?H.lhs.push(J):H.rhs.push(J)}),H};U.partition=R;var w=function(j,X){var H=Date.now();try{return X()}finally{console.log("".concat(j," time: ").concat(Date.now()-H,"ms"))}};U.time=w;var b=function(j,X){return X()};U.notime=b;var $=function(j,X){return j.reduce(function(H,J){var q=X(H),Q=X(J);return q>Q?J:H})};U.minBy=$},29279:function(or,U,G){"use strict";var B=this&&this.__assign||function(){return B=Object.assign||function(d){for(var M,m=1,x=arguments.length;m1){var fe=B({},Q);delete fe.size,w.push(fe)}});var b=[];x.forEach(function(Q){var te=w.find(function(ye){return ye.id===Q.source}),fe=w.find(function(ye){return ye.id===Q.target});te&&fe&&b.push(Q)});var $=new v.DagreLayout({type:"dagre",ranksep:M.nodeMinGap,nodesep:M.nodeMinGap}),j=$.layout({nodes:w,edges:b}).nodes;m.forEach(function(Q){var te=(j||[]).find(function(fe){return fe.id===Q.id});Q.x=(te==null?void 0:te.x)||T/2,Q.y=(te==null?void 0:te.y)||R/2});var X=JSON.parse(JSON.stringify(m)),H=JSON.parse(JSON.stringify(x)),J=L.forceSimulation().nodes(X).force("link",L.forceLink(H).id(function(Q){return Q.id}).distance(function(Q){var te=b.find(function(fe){return fe.source===Q.source&&fe.target===Q.target});return te?30:20})).force("charge",L.forceManyBody()).force("center",L.forceCenter(T/2,R/2)).force("x",L.forceX(T/2)).force("y",L.forceY(R/2)).alpha(.3).alphaDecay(.08).alphaMin(.001),q=new Promise(function(Q){J.on("end",function(){m.forEach(function(ve){var _e=X.find(function(De){return De.id===ve.id});_e&&(ve.x=_e.x,ve.y=_e.y)});var te=Math.min.apply(Math,m.map(function(ve){return ve.x})),fe=Math.max.apply(Math,m.map(function(ve){return ve.x})),ye=Math.min.apply(Math,m.map(function(ve){return ve.y})),me=Math.max.apply(Math,m.map(function(ve){return ve.y})),ge=T/(fe-te),be=R/(me-ye);m.forEach(function(ve){ve.x!==void 0&&ge<1&&(ve.x=(ve.x-te)*ge),ve.y!==void 0&&be<1&&(ve.y=(ve.y-ye)*be)}),m.forEach(function(ve){ve.sizeTemp=ve.size,ve.size=[10,10]}),(0,E.default)(m,x),m.forEach(function(ve){ve.size=ve.sizeTemp||[],delete ve.sizeTemp}),(0,p.default)({nodes:m,edges:x},M),Q()})});return q}U.default=g},28563:function(or,U,G){"use strict";var B=this&&this.__importDefault||function(O){return O&&O.__esModule?O:{default:O}};Object.defineProperty(U,"__esModule",{value:!0});var W=B(G(62120));function k(O,N){if(!O.nodes||O.nodes.length===0)return O;var L=N.width,p=N.height,E=N.nodeMinGap,v=1e4,g=1e4;O.nodes.forEach(function(H){var J=H.size[0]||50,q=H.size[1]||50;v=Math.min(J,v),g=Math.min(q,g)});var d=new W.default;d.init(L,p,{CELL_H:g,CELL_W:v}),O.nodes.forEach(function(H){var J=d.occupyNearest(H);J&&(J.node={id:H.id,size:H.size},H.x=J.x,H.y=J.y,H.dx=J.dx,H.dy=J.dy)});for(var M=0;Mv){for(var w=Math.ceil((m.size[0]+E)/v)-1,b=w,$=0;$-1;if(j&&!d.cells[T+$+1][R].node)b--;else break}d.insertColumn(T,b)}if(m.size[1]+E>g){for(var w=Math.ceil((m.size[1]+E)/g)-1,b=w,$=0;$-1;if(j&&!d.cells[T][R+$+1].node)b--;else break}d.insertRow(R,b)}}for(var M=0;Mk;N--)for(var L=0;L=k&&(this.additionColumn[L]+=O);for(var N=0;Nk;N--)this.cells[L][N+O]=G(G({},this.cells[L][N]),{dx:L,dy:N+O,x:L*this.CELL_W,y:(N+O)*this.CELL_H}),this.cells[L][N]={dx:L,dy:N,x:L*this.CELL_W,y:N*this.CELL_H,occupied:!1,node:null};for(var N=0;N=k&&(this.additionRow[N]+=O);for(var L=0;LN?(Mt=Q-be,at=ye-te,Wt=parseFloat(Mt?(Mt/Math.cos(St)).toFixed(2):at.toFixed(2)),er=parseFloat(at?(at/Math.sin(St)).toFixed(2):Mt.toFixed(2))):0at?Wt=er=parseFloat(Mt?(Mt/Math.cos(St)).toFixed(2):at.toFixed(2)):Wt=er=parseFloat(at?(at/Math.sin(St)).toFixed(2):Mt.toFixed(2))):St<-N?(Mt=Q-be,at=-(ge-q),Mt>at?Wt=er=parseFloat(Mt?(Mt/Math.cos(St)).toFixed(2):at.toFixed(2)):Wt=er=parseFloat(at?(at/Math.sin(St)).toFixed(2):Mt.toFixed(2))):(Mt=me-fe,Math.abs(tt)>(te-q)/2?at=q-ge:at=tt,Mt>at?Wt=er=parseFloat(Mt?(Mt/Math.cos(St)).toFixed(2):at.toFixed(2)):Wt=er=parseFloat(at&&St!==0?(at/Math.sin(St)).toFixed(2):Mt.toFixed(2)));var it=parseFloat(St.toFixed(2)),yt=J;return J&&(yt=Lte?H:X,ye=Q>te?X:H,me=fe.x-fe.size[0]/2,ge=fe.y-fe.size[1]/2,be=fe.x+fe.size[0]/2,ve=fe.y+fe.size[1]/2,_e=ye.x-ye.size[0]/2,De=ye.y-ye.size[1]/2,Ge=ye.x+ye.size[0]/2,tt=ye.y+ye.size[1]/2,St=fe.x,at=fe.y,Mt=ye.x,Wt=ye.y,er=be>=_e&&Ge>=me&&ve>=De&&tt>=ge,it=0,yt=0;if(er){yt=Math.sqrt(Math.pow(Mt-St,2)+Math.pow(Wt-at,2));var bt=me>_e?me:_e,Ft=ge>De?ge:De,wt=beG||q.y>B)&&(H+=1e12);for(var Q=J+1;Q150,De=ve<30||ve>150,Ge=be>70&&be<110,tt=ve>70&&ve<110;if(_e&&!De||be*ve<0){ye=!1;break}else if(Ge&&!tt||be*ve<0){ye=!1;break}else if((ge.x-X.x)*(ge.x-H.x)<0){ye=!1;break}else if((ge.y-X.y)*(ge.y-H.y)<0){ye=!1;break}}return ye}function b(X,H){for(var J=!1,q=1,Q=v*q,te=g*q,fe=[Q,-Q,0,0],ye=[0,0,te,-te],me=0;meM?(be=De,J=!0):(ge.x-=fe[ve],ge.y-=ye[ve])}}return d>M&&(d*=m),J?R(X):0}function $(X,H){var J=0;(X.x<0||X.y<0||X.x+X.size[0]+20>G||X.y+X.size[1]+20>B)&&(J+=1e12);for(var q=0;q0&&(ye++,!(ye>=fe));){var me=b(X,H);me!==0&&(te=me),Q=te-J,J=te,Q===0?--q:q=20}return X.forEach(function(ge){ge.x=ge.x-ge.size[0]/2,ge.y=ge.y-ge.size[1]/2}),{nodes:X,edges:H}}U.default=j},26961:function(or,U,G){"use strict";Object.defineProperty(U,"__esModule",{value:!0}),U.forceNBody=void 0;var B=G(71829),W=.81,k=.1;function O(E,v,g,d,M){var m=g/d,x=E.map(function(R,w){var b=v[R.id],$=b.data,j=b.x,X=b.y,H=b.size,J=$.layout.force.nodeStrength;return{x:j,y:X,size:H,index:w,vx:0,vy:0,weight:m*J}}),T=(0,B.quadtree)(x,function(R){return R.x},function(R){return R.y}).visitAfter(N);return x.forEach(function(R){p(R,T)}),x.map(function(R,w){var b=v[E[w].id],$=b.data.layout.force.mass,j=$===void 0?1:$;M[2*w]=R.vx/j,M[2*w+1]=R.vy/j}),M}U.forceNBody=O;function N(E){var v=0,g=0,d=0;if(E.length){for(var M=0;M<4;M++){var m=E[M];m&&m.weight&&(v+=m.weight,g+=m.x*m.weight,d+=m.y*m.weight)}E.x=g/v,E.y=d/v,E.weight=v}else{var m=E;E.x=m.data.x,E.y=m.data.y,E.weight=m.data.weight}}var L=function(E,v,g,d,M,m){var x=m.x-E.x||k,T=m.y-E.y||k,R=d-v,w=x*x+T*T,b=Math.sqrt(w)*w;if(R*R*W1&&(ve=(0,O.getAvgNodePosition)(De))}else ve=void 0;return{x:ve==null?void 0:ve.x,y:ve==null?void 0:ve.y}}}}if(M){$||($=this.getSameTypeLeafMap());var X=Array.from(new Set(x.map(function(fe,ye){return fe[m]}))).filter(function(fe){return fe!==void 0}),H={};X.forEach(function(fe){var ye=x.filter(function(me){return me[m]===fe}).map(function(me){return T[me.id]});H[fe]=(0,O.getAvgNodePosition)(ye)}),b={single:function(fe){return w(fe)},leaf:function(fe){return w(fe)},others:function(fe){return w(fe)},center:function(fe,ye,me){var ge=H[fe[m]];return{x:ge==null?void 0:ge.x,y:ge==null?void 0:ge.y}}}}this.centripetalOptions=W(W({},this.centripetalOptions),b);var J=this.centripetalOptions,q=J.leaf,Q=J.single,te=J.others;q&&typeof q!="function"&&(this.centripetalOptions.leaf=function(){return q}),Q&&typeof Q!="function"&&(this.centripetalOptions.single=function(){return Q}),te&&typeof te!="function"&&(this.centripetalOptions.others=function(){return te})},v.prototype.updateCfg=function(g){g&&Object.assign(this,g)},v.prototype.getDefaultCfg=function(){return{maxIteration:500,gravity:10,enableTick:!0,animate:!0}},v.prototype.execute=function(){var g=this;g.stop();var d=g.nodes,M=g.edges,m=g.defSpringLen;if(g.judgingDistance=0,!d||d.length===0){g.onLayoutEnd([]);return}!g.width&&typeof window!="undefined"&&(g.width=window.innerWidth),!g.height&&typeof window!="undefined"&&(g.height=window.innerHeight),g.center||(g.center=[g.width/2,g.height/2]);var x=g.center;if(d.length===1){d[0].x=x[0],d[0].y=x[1],g.onLayoutEnd([W({},d[0])]);return}g.degreesMap=(0,O.getDegreeMap)(d,M),g.propsGetMass?g.getMass=g.propsGetMass:g.getMass=function(X){var H=1;(0,O.isNumber)(X.mass)&&(H=X.mass);var J=g.degreesMap[X.id].all;return!J||J<5?H:J*5*H};var T=g.nodeSize,R;if(g.preventOverlap){var w=g.nodeSpacing,b;(0,O.isNumber)(w)?b=function(){return w}:(0,O.isFunction)(w)?b=w:b=function(){return 0},T?(0,O.isArray)(T)?R=function(X){return Math.max(T[0],T[1])+b(X)}:R=function(X){return T+b(X)}:R=function(X){return X.size?(0,O.isArray)(X.size)?Math.max(X.size[0],X.size[1])+b(X):(0,O.isObject)(X.size)?Math.max(X.size.width,X.size.height)+b(X):X.size+b(X):10+b(X)}}g.nodeSize=R,g.linkDistance=L(g.linkDistance,1),g.nodeStrength=L(g.nodeStrength,1),g.edgeStrength=L(g.edgeStrength,1);var $={},j={};d.forEach(function(X,H){(0,O.isNumber)(X.x)||(X.x=Math.random()*g.width),(0,O.isNumber)(X.y)||(X.y=Math.random()*g.height);var J=g.degreesMap[X.id];$[X.id]=W(W({},X),{data:W(W({},X.data),{size:g.nodeSize(X)||30,layout:{inDegree:J.in,outDegree:J.out,degree:J.all,tDegree:J.in,sDegree:J.out,force:{mass:g.getMass(X),nodeStrength:g.nodeStrength(X)}}})}),j[X.id]=H}),g.nodeMap=$,g.nodeIdxMap=j,g.edgeInfos=[],M==null||M.forEach(function(X){var H=$[X.source],J=$[X.target];!H||!J?elf.edgeInfos.push({}):g.edgeInfos.push({edgeStrength:g.edgeStrength(X),linkDistance:m?m(W(W({},X),{source:H,target:J}),H,J):g.linkDistance(X,H,J)||1+(T(H)+T(H)||0)/2})}),this.getCentripetalOptions(),g.onLayoutEnd=g.onLayoutEnd||function(){},g.run()},v.prototype.run=function(){var g=this,d=g.maxIteration,M=g.nodes,m=g.workerEnabled,x=g.minMovement,T=g.animate,R=g.nodeMap;if(!!M){var w=[];M.forEach(function(J,q){w[2*q]=0,w[2*q+1]=0});var b=d,$=!T;if(m||$){for(var j=0,X=0;(g.judgingDistance>x||X<1)&&X=b||g.judgingDistanceR){var H=R/X;$=H*$,j=H*j}d[2*b]=$,d[2*b+1]=j})},v.prototype.updatePosition=function(g,d){var M=this,m=M.nodes,x=M.distanceThresholdMode,T=M.nodeMap;if(!(m==null?void 0:m.length)){this.judgingDistance=0;return}var R=0;x==="max"?M.judgingDistance=-Infinity:x==="min"&&(M.judgingDistance=Infinity),m.forEach(function(w,b){var $=T[w.id];if((0,O.isNumber)(w.fx)&&(0,O.isNumber)(w.fy)){w.x=w.fx,w.y=w.fy,$.x=w.x,$.y=w.y;return}var j=g[2*b]*d,X=g[2*b+1]*d;w.x+=j,w.y+=X,$.x=w.x,$.y=w.y;var H=Math.sqrt(j*j+X*X);switch(x){case"max":M.judgingDistanceH&&(M.judgingDistance=H);break;default:R=R+H;break}}),(!x||x==="mean")&&(M.judgingDistance=R/m.length)},v.prototype.stop=function(){this.timeInterval&&typeof window!="undefined"&&window.clearInterval(this.timeInterval)},v.prototype.destroy=function(){var g=this;g.stop(),g.tick=null,g.nodes=null,g.edges=null,g.destroyed=!0},v.prototype.getType=function(){return"force2"},v.prototype.getSameTypeLeafMap=function(){var g=this,d=g.nodeClusterBy,M=g.nodes,m=g.edges,x=g.nodeMap,T=g.degreesMap;if(!!(M==null?void 0:M.length)){var R={};return M.forEach(function(w,b){var $=T[w.id].all;$===1&&(R[w.id]=(0,O.getCoreNodeAndRelativeLeafNodes)("leaf",w,m,d,T,x))}),R}},v}(k.Base);U.Force2Layout=p},20039:function(or,U){"use strict";Object.defineProperty(U,"__esModule",{value:!0});var G=function(){function B(W){this.id=W.id||0,this.rx=W.rx,this.ry=W.ry,this.fx=0,this.fy=0,this.mass=W.mass,this.degree=W.degree,this.g=W.g||0}return B.prototype.distanceTo=function(W){var k=this.rx-W.rx,O=this.ry-W.ry;return Math.hypot(k,O)},B.prototype.setPos=function(W,k){this.rx=W,this.ry=k},B.prototype.resetForce=function(){this.fx=0,this.fy=0},B.prototype.addForce=function(W){var k=W.rx-this.rx,O=W.ry-this.ry,N=Math.hypot(k,O);N=N<1e-4?1e-4:N;var L=this.g*(this.degree+1)*(W.degree+1)/N;this.fx+=L*k/N,this.fy+=L*O/N},B.prototype.in=function(W){return W.contains(this.rx,this.ry)},B.prototype.add=function(W){var k=this.mass+W.mass,O=(this.rx*this.mass+W.rx*W.mass)/k,N=(this.ry*this.mass+W.ry*W.mass)/k,L=this.degree+W.degree,p={rx:O,ry:N,mass:k,degree:L};return new B(p)},B}();U.default=G},16919:function(or,U,G){"use strict";var B=this&&this.__extends||function(){var v=function(g,d){return v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,m){M.__proto__=m}||function(M,m){for(var x in m)Object.prototype.hasOwnProperty.call(m,x)&&(M[x]=m[x])},v(g,d)};return function(g,d){if(typeof d!="function"&&d!==null)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");v(g,d);function M(){this.constructor=g}g.prototype=d===null?Object.create(d):(M.prototype=d.prototype,new M)}}(),W=this&&this.__importDefault||function(v){return v&&v.__esModule?v:{default:v}};Object.defineProperty(U,"__esModule",{value:!0}),U.ForceAtlas2Layout=void 0;var k=G(46253),O=G(8273),N=W(G(20039)),L=W(G(78150)),p=W(G(58979)),E=function(v){B(g,v);function g(d){var M=v.call(this)||this;return M.center=[0,0],M.width=300,M.height=300,M.nodes=[],M.edges=[],M.kr=5,M.kg=1,M.mode="normal",M.preventOverlap=!1,M.dissuadeHubs=!1,M.barnesHut=void 0,M.maxIteration=0,M.ks=.1,M.ksmax=10,M.tao=.1,M.onLayoutEnd=function(){},M.prune=void 0,M.updateCfg(d),M}return g.prototype.getDefaultCfg=function(){return{}},g.prototype.execute=function(){var d=this,M=d.nodes,m=d.onLayoutEnd,x=d.prune,T=d.maxIteration;!d.width&&typeof window!="undefined"&&(d.width=window.innerWidth),!d.height&&typeof window!="undefined"&&(d.height=window.innerHeight);for(var R=[],w=M.length,b=0;b250&&(d.barnesHut=!0),d.prune===void 0&&w>100&&(d.prune=!0),this.maxIteration===0&&!d.prune?(T=250,w<=200&&w>100?T=1e3:w>200&&(T=1200),this.maxIteration=T):this.maxIteration===0&&x&&(T=100,w<=200&&w>100?T=500:w>200&&(T=950),this.maxIteration=T),d.kr||(d.kr=50,w>100&&w<=500?d.kr=20:w>500&&(d.kr=1)),d.kg||(d.kg=20,w>100&&w<=500?d.kg=10:w>500&&(d.kg=1)),this.nodes=d.updateNodesByForces(R),m()},g.prototype.updateNodesByForces=function(d){for(var M=this,m=M.edges,x=M.maxIteration,T=M.nodes,R=m.filter(function(ve){var _e=(0,O.getEdgeTerminal)(ve,"source"),De=(0,O.getEdgeTerminal)(ve,"target");return _e!==De}),w=T.length,b=R.length,$=[],j={},X={},H=[],J=0;J0;){for(var ge=0;gete||!j)?fe=this.getOptRepGraForces(fe,me,T):fe=this.getRepGraForces(Q,te,fe,q,R,T);var ve=this.updatePos(fe,ye,J,T);b=ve.nodes,J=ve.sg,Q--,w.tick&&w.tick()}return b},g.prototype.getAttrForces=function(d,M,m,x,T,R,w,b){for(var $=this,j=$.nodes,X=$.preventOverlap,H=$.dissuadeHubs,J=$.mode,q=$.prune,Q=0;Q0&&(ve=be,_e=be),b[2*x[te.id]]+=ve*ge[0],b[2*x[ye.id]]-=_e*ge[0],b[2*x[te.id]+1]+=ve*ge[1],b[2*x[ye.id]+1]-=_e*ge[1]}}return b},g.prototype.getRepGraForces=function(d,M,m,x,T,R){for(var w=this,b=w.nodes,$=w.preventOverlap,j=w.kr,X=w.kg,H=w.center,J=w.prune,q=b.length,Q=0;Q0&&(me=j*(R[Q]+1)*(R[te]+1)/ye),m[2*Q]-=me*fe[0],m[2*te]+=me*fe[0],m[2*Q+1]-=me*fe[1],m[2*te+1]+=me*fe[1]}var ge=[b[Q].x-H[0],b[Q].y-H[1]],be=Math.hypot(ge[0],ge[1]);ge[0]=ge[0]/be,ge[1]=ge[1]/be;var ve=X*(R[Q]+1);m[2*Q]-=ve*ge[0],m[2*Q+1]-=ve*ge[1]}return m},g.prototype.getOptRepGraForces=function(d,M,m){for(var x=this,T=x.nodes,R=x.kg,w=x.center,b=x.prune,$=T.length,j=9e10,X=-9e10,H=9e10,J=-9e10,q=0;q<$;q+=1)b&&m[q]<=1||(M[q].setPos(T[q].x,T[q].y),T[q].x>=X&&(X=T[q].x),T[q].x<=j&&(j=T[q].x),T[q].y>=J&&(J=T[q].y),T[q].y<=H&&(H=T[q].y));for(var Q=Math.max(X-j,J-H),te={xmid:(X+j)/2,ymid:(J+H)/2,length:Q,massCenter:w,mass:$},fe=new L.default(te),ye=new p.default(fe),q=0;q<$;q+=1)b&&m[q]<=1||M[q].in(fe)&&ye.insert(M[q]);for(var q=0;q<$;q+=1)if(!(b&&m[q]<=1)){M[q].resetForce(),ye.updateForce(M[q]),d[2*q]-=M[q].fx,d[2*q+1]-=M[q].fy;var me=[T[q].x-w[0],T[q].y-w[1]],ge=Math.hypot(me[0],me[1]);ge=ge<1e-4?1e-4:ge,me[0]=me[0]/ge,me[1]=me[1]/ge;var be=R*(m[q]+1);d[2*q]-=be*me[0],d[2*q+1]-=be*me[1]}return d},g.prototype.updatePos=function(d,M,m,x){for(var T=this,R=T.nodes,w=T.ks,b=T.tao,$=T.prune,j=T.ksmax,X=R.length,H=[],J=[],q=0,Q=0,te=0;te1.5*be?1.5*be:m);for(var te=0;teDe?De:ve;var Ge=ve*d[2*te],tt=ve*d[2*te+1];R[te].x+=Ge,R[te].y+=tt}return{nodes:R,sg:m}},g}(k.Base);U.ForceAtlas2Layout=E},78150:function(or,U){"use strict";Object.defineProperty(U,"__esModule",{value:!0});var G=function(){function B(W){this.xmid=W.xmid,this.ymid=W.ymid,this.length=W.length,this.massCenter=W.massCenter||[0,0],this.mass=W.mass||1}return B.prototype.getLength=function(){return this.length},B.prototype.contains=function(W,k){var O=this.length/2;return W<=this.xmid+O&&W>=this.xmid-O&&k<=this.ymid+O&&k>=this.ymid-O},B.prototype.NW=function(){var W=this.xmid-this.length/4,k=this.ymid+this.length/4,O=this.length/2,N={xmid:W,ymid:k,length:O},L=new B(N);return L},B.prototype.NE=function(){var W=this.xmid+this.length/4,k=this.ymid+this.length/4,O=this.length/2,N={xmid:W,ymid:k,length:O},L=new B(N);return L},B.prototype.SW=function(){var W=this.xmid-this.length/4,k=this.ymid-this.length/4,O=this.length/2,N={xmid:W,ymid:k,length:O},L=new B(N);return L},B.prototype.SE=function(){var W=this.xmid+this.length/4,k=this.ymid-this.length/4,O=this.length/2,N={xmid:W,ymid:k,length:O},L=new B(N);return L},B}();U.default=G},58979:function(or,U){"use strict";Object.defineProperty(U,"__esModule",{value:!0});var G=function(){function B(W){this.body=null,this.quad=null,this.NW=null,this.NE=null,this.SW=null,this.SE=null,this.theta=.5,W!=null&&(this.quad=W)}return B.prototype.insert=function(W){if(this.body==null){this.body=W;return}this._isExternal()?(this.quad&&(this.NW=new B(this.quad.NW()),this.NE=new B(this.quad.NE()),this.SW=new B(this.quad.SW()),this.SE=new B(this.quad.SE())),this._putBody(this.body),this._putBody(W),this.body=this.body.add(W)):(this.body=this.body.add(W),this._putBody(W))},B.prototype._putBody=function(W){!this.quad||(W.in(this.quad.NW())&&this.NW?this.NW.insert(W):W.in(this.quad.NE())&&this.NE?this.NE.insert(W):W.in(this.quad.SW())&&this.SW?this.SW.insert(W):W.in(this.quad.SE())&&this.SE&&this.SE.insert(W))},B.prototype._isExternal=function(){return this.NW==null&&this.NE==null&&this.SW==null&&this.SE==null},B.prototype.updateForce=function(W){if(!(this.body==null||W===this.body))if(this._isExternal())W.addForce(this.body);else{var k=this.quad?this.quad.getLength():0,O=this.body.distanceTo(W);k/O-1||(j[H]=$[H])}),j}),w.ticking=!1},T.prototype.execute=function(R){var w=this,b=w.nodes,$=w.edges;if(!w.ticking){var j=w.forceSimulation,X=w.alphaMin,H=w.alphaDecay,J=w.alpha;if(j){if(R){if(w.clustering&&w.clusterForce&&(w.clusterForce.nodes(b),w.clusterForce.links($)),j.nodes(b),$&&w.edgeForce)w.edgeForce.links($);else if($&&!w.edgeForce){var te=L.forceLink().id(function(ge){return ge.id}).links($);w.edgeStrength&&te.strength(w.edgeStrength),w.linkDistance&&te.distance(w.linkDistance),w.edgeForce=te,j.force("link",te)}}w.preventOverlap&&w.overlapProcess(j),j.alpha(J).restart(),this.ticking=!0}else try{var q=L.forceManyBody();if(w.nodeStrength&&q.strength(w.nodeStrength),j=L.forceSimulation().nodes(b),w.clustering){var Q=(0,p.default)();Q.centerX(w.center[0]).centerY(w.center[1]).template("force").strength(w.clusterFociStrength),$&&Q.links($),b&&Q.nodes(b),Q.forceLinkDistance(w.clusterEdgeDistance).forceLinkStrength(w.clusterEdgeStrength).forceCharge(w.clusterNodeStrength).forceNodeSize(w.clusterNodeSize),w.clusterForce=Q,j.force("group",Q)}if(j.force("center",L.forceCenter(w.center[0],w.center[1])).force("charge",q).alpha(J).alphaDecay(H).alphaMin(X),w.preventOverlap&&w.overlapProcess(j),$){var te=L.forceLink().id(function(me){return me.id}).links($);w.edgeStrength&&te.strength(w.edgeStrength),w.linkDistance&&te.distance(w.linkDistance),w.edgeForce=te,j.force("link",te)}if(w.workerEnabled&&!m()&&(w.workerEnabled=!1,console.warn("workerEnabled option is only supported when running in web worker.")),!w.workerEnabled)j.on("tick",function(){w.tick()}).on("end",function(){w.ticking=!1,w.onLayoutEnd&&w.onLayoutEnd()}),w.ticking=!0;else{j.stop();for(var fe=M(j),ye=1;ye<=fe;ye++)j.tick(),postMessage({nodes:b,currentTick:ye,totalTicks:fe,type:g.LAYOUT_MESSAGE.TICK},void 0);w.ticking=!1}w.forceSimulation=j,w.ticking=!0}catch(me){w.ticking=!1,console.warn(me)}}},T.prototype.overlapProcess=function(R){var w=this,b=w.nodeSize,$=w.nodeSpacing,j,X,H=w.collideStrength;if((0,E.isNumber)($)?X=function(){return $}:(0,E.isFunction)($)?X=$:X=function(){return 0},!b)j=function(te){if(te.size){if((0,E.isArray)(te.size)){var fe=te.size[0]>te.size[1]?te.size[0]:te.size[1];return fe/2+X(te)}if((0,E.isObject)(te.size)){var fe=te.size.width>te.size.height?te.size.width:te.size.height;return fe/2+X(te)}return te.size/2+X(te)}return 10+X(te)};else if((0,E.isFunction)(b))j=function(te){var fe=b(te);return fe+X(te)};else if((0,E.isArray)(b)){var J=b[0]>b[1]?b[0]:b[1],q=J/2;j=function(te){return q+X(te)}}else if((0,E.isNumber)(b)){var Q=b/2;j=function(te){return Q+X(te)}}else j=function(){return 10};R.force("collisionForce",L.forceCollide(j).strength(H))},T.prototype.updateCfg=function(R){var w=this;w.ticking&&(w.forceSimulation.stop(),w.ticking=!1),w.forceSimulation=null,Object.assign(w,R)},T.prototype.destroy=function(){var R=this;R.ticking&&(R.forceSimulation.stop(),R.ticking=!1),R.nodes=null,R.edges=null,R.destroyed=!0},T}(v.Base);U.ForceLayout=d;function M(x){var T=x.alphaMin(),R=x.alphaTarget(),w=x.alpha(),b=Math.log((T-R)/(w-R))/Math.log(1-x.alphaDecay()),$=Math.ceil(b);return $}function m(){return typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope}},64180:function(or,U,G){"use strict";var B=this&&this.__createBinding||(Object.create?function(k,O,N,L){L===void 0&&(L=N);var p=Object.getOwnPropertyDescriptor(O,N);(!p||("get"in p?!O.__esModule:p.writable||p.configurable))&&(p={enumerable:!0,get:function(){return O[N]}}),Object.defineProperty(k,L,p)}:function(k,O,N,L){L===void 0&&(L=N),k[L]=O[N]}),W=this&&this.__exportStar||function(k,O){for(var N in k)N!=="default"&&!Object.prototype.hasOwnProperty.call(O,N)&&B(O,k,N)};Object.defineProperty(U,"__esModule",{value:!0}),W(G(68553),U)},23826:function(or,U,G){"use strict";var B=this&&this.__extends||function(){var L=function(p,E){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,g){v.__proto__=g}||function(v,g){for(var d in g)Object.prototype.hasOwnProperty.call(g,d)&&(v[d]=g[d])},L(p,E)};return function(p,E){if(typeof E!="function"&&E!==null)throw new TypeError("Class extends value "+String(E)+" is not a constructor or null");L(p,E);function v(){this.constructor=p}p.prototype=E===null?Object.create(E):(v.prototype=E.prototype,new v)}}();Object.defineProperty(U,"__esModule",{value:!0}),U.FruchtermanLayout=void 0;var W=G(46253),k=G(8273),O=800,N=function(L){B(p,L);function p(E){var v=L.call(this)||this;return v.maxIteration=1e3,v.workerEnabled=!1,v.gravity=10,v.speed=5,v.clustering=!1,v.clusterGravity=10,v.nodes=[],v.edges=[],v.width=300,v.height=300,v.nodeMap={},v.nodeIdxMap={},v.onLayoutEnd=function(){},v.tick=function(){},v.animate=!0,v.updateCfg(E),v}return p.prototype.getDefaultCfg=function(){return{maxIteration:1e3,gravity:10,speed:1,clustering:!1,clusterGravity:10,animate:!0}},p.prototype.execute=function(){var E=this,v,g,d=this,M=d.nodes;if(d.timeInterval!==void 0&&typeof window!="undefined"&&window.clearInterval(d.timeInterval),!M||M.length===0){(v=d.onLayoutEnd)===null||v===void 0||v.call(d);return}!d.width&&typeof window!="undefined"&&(d.width=window.innerWidth),!d.height&&typeof window!="undefined"&&(d.height=window.innerHeight),d.center||(d.center=[d.width/2,d.height/2]);var m=d.center;if(M.length===1){M[0].x=m[0],M[0].y=m[1],(g=d.onLayoutEnd)===null||g===void 0||g.call(d);return}var x={},T={};return M.forEach(function(R,w){(0,k.isNumber)(R.x)||(R.x=Math.random()*E.width),(0,k.isNumber)(R.y)||(R.y=Math.random()*E.height),x[R.id]=R,T[R.id]=w}),d.nodeMap=x,d.nodeIdxMap=T,d.run()},p.prototype.run=function(){var E,v=this,g=v.nodes;if(!!g){var d=v.edges,M=v.maxIteration,m=v.workerEnabled,x=v.clustering,T=v.animate,R={};if(x&&g.forEach(function($){R[$.cluster]===void 0&&(R[$.cluster]={name:$.cluster,cx:0,cy:0,count:0})}),m||!T){for(var w=0;w=M&&(($=v.onLayoutEnd)===null||$===void 0||$.call(v),window.clearInterval(v.timeInterval))},0)}return{nodes:g,edges:d}}},p.prototype.runOneStep=function(E){var v,g=this,d=g.nodes;if(!!d){var M=g.edges,m=g.center,x=g.gravity,T=g.speed,R=g.clustering,w=g.height*g.width,b=Math.sqrt(w)/10,$=w/(d.length+1),j=Math.sqrt($),X=[];if(d.forEach(function(q,Q){X[Q]={x:0,y:0}}),g.applyCalculate(d,M,X,j,$),R){for(var H in E)E[H].cx=0,E[H].cy=0,E[H].count=0;d.forEach(function(q){var Q=E[q.cluster];(0,k.isNumber)(q.x)&&(Q.cx+=q.x),(0,k.isNumber)(q.y)&&(Q.cy+=q.y),Q.count++});for(var H in E)E[H].cx/=E[H].count,E[H].cy/=E[H].count;var J=g.clusterGravity||x;d.forEach(function(q,Q){if(!(!(0,k.isNumber)(q.x)||!(0,k.isNumber)(q.y))){var te=E[q.cluster],fe=Math.sqrt((q.x-te.cx)*(q.x-te.cx)+(q.y-te.cy)*(q.y-te.cy)),ye=j*J;X[Q].x-=ye*(q.x-te.cx)/fe,X[Q].y-=ye*(q.y-te.cy)/fe}})}d.forEach(function(q,Q){if(!(!(0,k.isNumber)(q.x)||!(0,k.isNumber)(q.y))){var te=.01*j*x;X[Q].x-=te*(q.x-m[0]),X[Q].y-=te*(q.y-m[1])}}),d.forEach(function(q,Q){if((0,k.isNumber)(q.fx)&&(0,k.isNumber)(q.fy)){q.x=q.fx,q.y=q.fy;return}if(!(!(0,k.isNumber)(q.x)||!(0,k.isNumber)(q.y))){var te=Math.sqrt(X[Q].x*X[Q].x+X[Q].y*X[Q].y);if(te>0){var fe=Math.min(b*(T/O),te);q.x+=X[Q].x/te*fe,q.y+=X[Q].y/te*fe}}}),(v=g.tick)===null||v===void 0||v.call(g)}},p.prototype.applyCalculate=function(E,v,g,d,M){var m=this;m.calRepulsive(E,g,M),v&&m.calAttractive(v,g,d)},p.prototype.calRepulsive=function(E,v,g){E.forEach(function(d,M){v[M]={x:0,y:0},E.forEach(function(m,x){if(M!==x&&!(!(0,k.isNumber)(d.x)||!(0,k.isNumber)(m.x)||!(0,k.isNumber)(d.y)||!(0,k.isNumber)(m.y))){var T=d.x-m.x,R=d.y-m.y,w=T*T+R*R;if(w===0){w=1;var b=M>x?1:-1;T=.01*b,R=.01*b}var $=g/w;v[M].x+=T*$,v[M].y+=R*$}})})},p.prototype.calAttractive=function(E,v,g){var d=this;E.forEach(function(M){var m=(0,k.getEdgeTerminal)(M,"source"),x=(0,k.getEdgeTerminal)(M,"target");if(!(!m||!x)){var T=d.nodeIdxMap[m],R=d.nodeIdxMap[x];if(T!==R){var w=d.nodeMap[m],b=d.nodeMap[x];if(!(!(0,k.isNumber)(b.x)||!(0,k.isNumber)(w.x)||!(0,k.isNumber)(b.y)||!(0,k.isNumber)(w.y))){var $=b.x-w.x,j=b.y-w.y,X=Math.sqrt($*$+j*j),H=X*X/g;v[R].x-=$/X*H,v[R].y-=j/X*H,v[T].x+=$/X*H,v[T].y+=j/X*H}}}})},p.prototype.stop=function(){this.timeInterval&&typeof window!="undefined"&&window.clearInterval(this.timeInterval)},p.prototype.destroy=function(){var E=this;E.stop(),E.tick=null,E.nodes=null,E.edges=null,E.destroyed=!0},p.prototype.getType=function(){return"fruchterman"},p}(W.Base);U.FruchtermanLayout=N},46260:function(or,U,G){"use strict";var B=this&&this.__extends||function(){var L=function(p,E){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,g){v.__proto__=g}||function(v,g){for(var d in g)Object.prototype.hasOwnProperty.call(g,d)&&(v[d]=g[d])},L(p,E)};return function(p,E){if(typeof E!="function"&&E!==null)throw new TypeError("Class extends value "+String(E)+" is not a constructor or null");L(p,E);function v(){this.constructor=p}p.prototype=E===null?Object.create(E):(v.prototype=E.prototype,new v)}}();Object.defineProperty(U,"__esModule",{value:!0}),U.GForceLayout=void 0;var W=G(46253),k=G(8273),O=function(L,p){var E;return L?(0,k.isNumber)(L)?E=function(v){return L}:E=L:E=function(v){return p||1},E},N=function(L){B(p,L);function p(E){var v=L.call(this)||this;return v.maxIteration=500,v.workerEnabled=!1,v.edgeStrength=200,v.nodeStrength=1e3,v.coulombDisScale=.005,v.damping=.9,v.maxSpeed=1e3,v.minMovement=.5,v.interval=.02,v.factor=1,v.linkDistance=1,v.gravity=10,v.preventOverlap=!0,v.collideStrength=1,v.tick=function(){},v.nodes=[],v.edges=[],v.width=300,v.height=300,v.nodeMap={},v.nodeIdxMap={},v.animate=!0,v.updateCfg(E),v}return p.prototype.getDefaultCfg=function(){return{maxIteration:500,gravity:10,enableTick:!0,animate:!0}},p.prototype.execute=function(){var E,v,g=this,d=g.nodes;if(g.timeInterval!==void 0&&typeof window!="undefined"&&window.clearInterval(g.timeInterval),!d||d.length===0){(E=g.onLayoutEnd)===null||E===void 0||E.call(g);return}!g.width&&typeof window!="undefined"&&(g.width=window.innerWidth),!g.height&&typeof window!="undefined"&&(g.height=window.innerHeight),g.center||(g.center=[g.width/2,g.height/2]);var M=g.center;if(d.length===1){d[0].x=M[0],d[0].y=M[1],(v=g.onLayoutEnd)===null||v===void 0||v.call(g);return}var m={},x={};d.forEach(function(j,X){(0,k.isNumber)(j.x)||(j.x=Math.random()*g.width),(0,k.isNumber)(j.y)||(j.y=Math.random()*g.height),m[j.id]=j,x[j.id]=X}),g.nodeMap=m,g.nodeIdxMap=x,g.linkDistance=O(g.linkDistance,1),g.nodeStrength=O(g.nodeStrength,1),g.edgeStrength=O(g.edgeStrength,1);var T=g.nodeSize,R;if(g.preventOverlap){var w=g.nodeSpacing,b;(0,k.isNumber)(w)?b=function(){return w}:(0,k.isFunction)(w)?b=w:b=function(){return 0},T?(0,k.isArray)(T)?R=function(j){return Math.max(T[0],T[1])+b(j)}:R=function(j){return T+b(j)}:R=function(j){return j.size?(0,k.isArray)(j.size)?Math.max(j.size[0],j.size[1])+b(j):(0,k.isObject)(j.size)?Math.max(j.size.width,j.size.height)+b(j):j.size+b(j):10+b(j)}}g.nodeSize=R;var $=g.edges;g.degrees=(0,k.getDegree)(d.length,g.nodeIdxMap,$),g.getMass||(g.getMass=function(j){var X=j.mass||g.degrees[g.nodeIdxMap[j.id]].all||1;return X}),g.run()},p.prototype.run=function(){var E,v=this,g=v.maxIteration,d=v.nodes,M=v.workerEnabled,m=v.minMovement,x=v.animate;if(!!d)if(M||!x){for(var T=0;T=g&&(($=v.onLayoutEnd)===null||$===void 0||$.call(v),window.clearInterval(v.timeInterval))}},0)}},p.prototype.reachMoveThreshold=function(E,v,g){var d=0;return E.forEach(function(M,m){var x=M.x-v[m].x,T=M.y-v[m].y;d+=Math.sqrt(x*x+T*T)}),d/=E.length,d=J)){var q=$.x-H.x,Q=$.y-H.y;q===0&&Q===0&&(q=Math.random()*.01,Q=Math.random()*.01);var te=q*q+Q*Q,fe=Math.sqrt(te),ye=(fe+.1)*m,me=q/fe,ge=Q/fe,be=(w($)+w(H))*.5*M/(ye*ye),ve=d?d(H):1;if(E[2*j]+=me*be,E[2*j+1]+=ge*be,E[2*J]-=me*be,E[2*J+1]-=ge*be,x&&(b($)+b(H))/2>fe){var _e=R*(w($)+w(H))*.5/te;E[2*j]+=me*_e/X,E[2*j+1]+=ge*_e/X,E[2*J]-=me*_e/ve,E[2*J+1]-=ge*_e/ve}}})})},p.prototype.calAttractive=function(E,v){var g=this,d=g.nodeMap,M=g.nodeIdxMap,m=g.linkDistance,x=g.edgeStrength,T=g.nodeSize,R=g.getMass;v.forEach(function(w,b){var $=(0,k.getEdgeTerminal)(w,"source"),j=(0,k.getEdgeTerminal)(w,"target"),X=d[$],H=d[j],J=H.x-X.x,q=H.y-X.y;J===0&&q===0&&(J=Math.random()*.01,q=Math.random()*.01);var Q=Math.sqrt(J*J+q*q),te=J/Q,fe=q/Q,ye=m(w,X,H)||1+(T(X)+T(H)||0)/2,me=ye-Q,ge=me*x(w),be=M[$],ve=M[j],_e=R?R(X):1,De=R?R(H):1;E[2*be]-=te*ge/_e,E[2*be+1]-=fe*ge/_e,E[2*ve]+=te*ge/De,E[2*ve+1]+=fe*ge/De})},p.prototype.calGravity=function(E,v){for(var g=this,d=g.center,M=g.gravity,m=g.degrees,x=v.length,T=0;TM.maxSpeed){var $=M.maxSpeed/b;R=$*R,w=$*w}v[2*T]=R,v[2*T+1]=w})},p.prototype.updatePosition=function(E,v,g){g.forEach(function(d,M){if((0,k.isNumber)(d.fx)&&(0,k.isNumber)(d.fy)){d.x=d.fx,d.y=d.fy;return}var m=E[2*M]*v,x=E[2*M+1]*v;d.x+=m,d.y+=x})},p.prototype.stop=function(){this.timeInterval&&typeof window!="undefined"&&window.clearInterval(this.timeInterval)},p.prototype.destroy=function(){var E=this;E.stop(),E.tick=null,E.nodes=null,E.edges=null,E.destroyed=!0},p.prototype.getType=function(){return"gForce"},p}(W.Base);U.GForceLayout=N},81822:function(or,U,G){"use strict";var B=this&&this.__extends||function(){var d=function(M,m){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,T){x.__proto__=T}||function(x,T){for(var R in T)Object.prototype.hasOwnProperty.call(T,R)&&(x[R]=T[R])},d(M,m)};return function(M,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");d(M,m);function x(){this.constructor=M}M.prototype=m===null?Object.create(m):(x.prototype=m.prototype,new x)}}(),W=this&&this.__awaiter||function(d,M,m,x){function T(R){return R instanceof m?R:new m(function(w){w(R)})}return new(m||(m=Promise))(function(R,w){function b(X){try{j(x.next(X))}catch(H){w(H)}}function $(X){try{j(x.throw(X))}catch(H){w(H)}}function j(X){X.done?R(X.value):T(X.value).then(b,$)}j((x=x.apply(d,M||[])).next())})},k=this&&this.__generator||function(d,M){var m={label:0,sent:function(){if(R[0]&1)throw R[1];return R[1]},trys:[],ops:[]},x,T,R,w;return w={next:b(0),throw:b(1),return:b(2)},typeof Symbol=="function"&&(w[Symbol.iterator]=function(){return this}),w;function b(j){return function(X){return $([j,X])}}function $(j){if(x)throw new TypeError("Generator is already executing.");for(;w&&(w=0,j[0]&&(m=0)),m;)try{if(x=1,T&&(R=j[0]&2?T.return:j[0]?T.throw||((R=T.return)&&R.call(T),0):T.next)&&!(R=R.call(T,j[1])).done)return R;switch(T=0,R&&(j=[j[0]&2,R.value]),j[0]){case 0:case 1:R=j;break;case 4:return m.label++,{value:j[1],done:!1};case 5:m.label++,T=j[1],j=[0];continue;case 7:j=m.ops.pop(),m.trys.pop();continue;default:if(R=m.trys,!(R=R.length>0&&R[R.length-1])&&(j[0]===6||j[0]===2)){m=0;continue}if(j[0]===3&&(!R||j[1]>R[0]&&j[1] 0.0) { - dx += param * xDist; - dy += param * yDist; - if (xDist == 0 && yDist == 0) { - const sign = i < j ? 1 : -1; - dx += param * sign; - dy += param * sign; - } - } - } - } - return [dx, dy]; - } - calcGravity(currentNode: vec4, nodeAttributes: vec4): vec2 { // - let dx = 0, dy = 0; - const vx = currentNode[0] - this.u_Center[0]; - const vy = currentNode[1] - this.u_Center[1]; - const gf = 0.01 * this.u_K * this.u_Gravity; - dx = gf * vx; - dy = gf * vy; - if (this.u_Clustering == 1) { - const clusterIdx = int(nodeAttributes[0]); - const center = this.u_ClusterCenters[clusterIdx]; - const cvx = currentNode[0] - center[0]; - const cvy = currentNode[1] - center[1]; - const dist = sqrt(cvx * cvx + cvy * cvy) + 0.01; - const parma = this.u_K * this.u_ClusterGravity / dist; - dx += parma * cvx; - dy += parma * cvy; - } - return [dx, dy]; - } - calcAttractive(i: int, currentNode: vec4): vec2 { - let dx = 0, dy = 0; - const arr_offset = int(floor(currentNode[2] + 0.5)); - const length = int(floor(currentNode[3] + 0.5)); - const node_buffer: vec4; - for (let p = 0; p < MAX_EDGE_PER_VERTEX; p++) { - if (p >= length) break; - const arr_idx = arr_offset + p; - // when arr_idx % 4 == 0 update currentNodedx_buffer - const buf_offset = arr_idx - arr_idx / 4 * 4; - if (p == 0 || buf_offset == 0) { - node_buffer = this.u_Data[int(arr_idx / 4)]; - } - const float_j = buf_offset == 0 ? node_buffer[0] : - buf_offset == 1 ? node_buffer[1] : - buf_offset == 2 ? node_buffer[2] : - node_buffer[3]; - const nextNode = this.u_Data[int(float_j)]; - const xDist = currentNode[0] - nextNode[0]; - const yDist = currentNode[1] - nextNode[1]; - const dist = sqrt(xDist * xDist + yDist * yDist) + 0.01; - let attractiveF = dist / this.u_K; - - if (dist > 0.0) { - dx -= xDist * attractiveF; - dy -= yDist * attractiveF; - if (xDist == 0 && yDist == 0) { - const sign = i < int(float_j) ? 1 : -1; - dx -= sign * attractiveF; - dy -= sign * attractiveF; - } - } - } - return [dx, dy]; - } - @main - compute() { - const i = globalInvocationID.x; - const currentNode = this.u_Data[i]; - let dx = 0, dy = 0; - if (i >= VERTEX_COUNT) { - this.u_Data[i] = currentNode; - return; - } - - // [gravity, fx, fy, 0] - const nodeAttributes = this.u_AttributeArray[i]; - - if (nodeAttributes[1] != 0 && nodeAttributes[2] != 0) { - // the node is fixed - this.u_Data[i] = [ - nodeAttributes[1], - nodeAttributes[2], - currentNode[2], - currentNode[3] - ]; - return; - } - - // repulsive - const repulsive = this.calcRepulsive(i, currentNode); - dx += repulsive[0]; - dy += repulsive[1]; - // attractive - const attractive = this.calcAttractive(i, currentNode); - dx += attractive[0]; - dy += attractive[1]; - // gravity - const gravity = this.calcGravity(currentNode, nodeAttributes); - dx -= gravity[0]; - dy -= gravity[1]; - // speed - dx *= this.u_Speed; - dy *= this.u_Speed; - - // move - const distLength = sqrt(dx * dx + dy * dy); - if (distLength > 0.0) { - const limitedDist = min(this.u_MaxDisplace * this.u_Speed, distLength); - this.u_Data[i] = [ - currentNode[0] + dx / distLength * limitedDist, - currentNode[1] + dy / distLength * limitedDist, - currentNode[2], - currentNode[3] - ]; - } - } -} -`,U.fruchtermanBundle='{"shaders":{"WGSL":"","GLSL450":"","GLSL100":"\\n\\nfloat epsilon = 0.00001;\\nvec2 addrTranslation_1Dto2D(float address1D, vec2 texSize) {\\n vec2 conv_const = vec2(1.0 / texSize.x, 1.0 / (texSize.x * texSize.y));\\n vec2 normAddr2D = float(address1D) * conv_const;\\n return vec2(fract(normAddr2D.x + epsilon), normAddr2D.y);\\n}\\n\\nvoid barrier() {}\\n \\n\\nuniform vec2 u_OutputTextureSize;\\nuniform int u_OutputTexelCount;\\nvarying vec2 v_TexCoord;\\n\\nbool gWebGPUDebug = false;\\nvec4 gWebGPUDebugOutput = vec4(0.0);\\n\\n#define MAX_EDGE_PER_VERTEX __DefineValuePlaceholder__MAX_EDGE_PER_VERTEX\\n#define VERTEX_COUNT __DefineValuePlaceholder__VERTEX_COUNT\\n\\nuniform sampler2D u_Data;\\nuniform vec2 u_DataSize;\\nvec4 getDatau_Data(vec2 address2D) {\\n return vec4(texture2D(u_Data, address2D).rgba);\\n}\\nvec4 getDatau_Data(float address1D) {\\n return getDatau_Data(addrTranslation_1Dto2D(address1D, u_DataSize));\\n}\\nvec4 getDatau_Data(int address1D) {\\n return getDatau_Data(float(address1D));\\n}\\nuniform float u_K;\\nuniform float u_K2;\\nuniform vec2 u_Center;\\nuniform float u_Gravity;\\nuniform float u_ClusterGravity;\\nuniform float u_Speed;\\nuniform float u_MaxDisplace;\\nuniform float u_Clustering;\\nuniform sampler2D u_AttributeArray;\\nuniform vec2 u_AttributeArraySize;\\nvec4 getDatau_AttributeArray(vec2 address2D) {\\n return vec4(texture2D(u_AttributeArray, address2D).rgba);\\n}\\nvec4 getDatau_AttributeArray(float address1D) {\\n return getDatau_AttributeArray(addrTranslation_1Dto2D(address1D, u_AttributeArraySize));\\n}\\nvec4 getDatau_AttributeArray(int address1D) {\\n return getDatau_AttributeArray(float(address1D));\\n}\\nuniform sampler2D u_ClusterCenters;\\nuniform vec2 u_ClusterCentersSize;\\nvec4 getDatau_ClusterCenters(vec2 address2D) {\\n return vec4(texture2D(u_ClusterCenters, address2D).rgba);\\n}\\nvec4 getDatau_ClusterCenters(float address1D) {\\n return getDatau_ClusterCenters(addrTranslation_1Dto2D(address1D, u_ClusterCentersSize));\\n}\\nvec4 getDatau_ClusterCenters(int address1D) {\\n return getDatau_ClusterCenters(float(address1D));\\n}\\nvec2 calcRepulsive(int i, vec4 currentNode) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat dx = 0.0;\\nfloat dy = 0.0;\\nfor (int j = 0; j < VERTEX_COUNT; j++) {if (i != j) {vec4 nextNode = getDatau_Data(j);\\nfloat xDist = currentNode.x - nextNode.x;\\nfloat yDist = currentNode.y - nextNode.y;\\nfloat dist = ((xDist * xDist) + (yDist * yDist)) + 0.01;\\nfloat param = u_K2 / dist;\\nif (dist > 0.0) {dx += param * xDist;\\ndy += param * yDist;\\nif ((xDist == 0.0) && (yDist == 0.0)) {float sign = (i < j) ? (1.0) : (-1.0);\\ndx += param * sign;\\ndy += param * sign;}}}}\\nreturn vec2(dx, dy);}\\nvec2 calcGravity(vec4 currentNode, vec4 nodeAttributes) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat dx = 0.0;\\nfloat dy = 0.0;\\nfloat vx = currentNode.x - u_Center.x;\\nfloat vy = currentNode.y - u_Center.y;\\nfloat gf = (0.01 * u_K) * u_Gravity;\\ndx = gf * vx;\\ndy = gf * vy;\\nif (u_Clustering == 1.0) {int clusterIdx = int(nodeAttributes.x);\\nvec4 center = getDatau_ClusterCenters(clusterIdx);\\nfloat cvx = currentNode.x - center.x;\\nfloat cvy = currentNode.y - center.y;\\nfloat dist = sqrt((cvx * cvx) + (cvy * cvy)) + 0.01;\\nfloat parma = (u_K * u_ClusterGravity) / dist;\\ndx += parma * cvx;\\ndy += parma * cvy;}\\nreturn vec2(dx, dy);}\\nvec2 calcAttractive(int i, vec4 currentNode) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat dx = 0.0;\\nfloat dy = 0.0;\\nint arr_offset = int(floor(currentNode.z + 0.5));\\nint length = int(floor(currentNode.w + 0.5));\\nvec4 node_buffer;\\nfor (int p = 0; p < MAX_EDGE_PER_VERTEX; p++) {if (p >= length) {break;}\\nint arr_idx = arr_offset + int(p);\\nint buf_offset = arr_idx - ((arr_idx / 4) * 4);\\nif ((p == 0) || (buf_offset == 0)) {node_buffer = getDatau_Data(int(arr_idx / 4));}\\nfloat float_j = (buf_offset == 0) ? (node_buffer.x) : ((buf_offset == 1) ? (node_buffer.y) : ((buf_offset == 2) ? (node_buffer.z) : (node_buffer.w)));\\nvec4 nextNode = getDatau_Data(int(float_j));\\nfloat xDist = currentNode.x - nextNode.x;\\nfloat yDist = currentNode.y - nextNode.y;\\nfloat dist = sqrt((xDist * xDist) + (yDist * yDist)) + 0.01;\\nfloat attractiveF = dist / u_K;\\nif (dist > 0.0) {dx -= xDist * attractiveF;\\ndy -= yDist * attractiveF;\\nif ((xDist == 0.0) && (yDist == 0.0)) {float sign = (i < int(float_j)) ? (1.0) : (-1.0);\\ndx -= sign * attractiveF;\\ndy -= sign * attractiveF;}}}\\nreturn vec2(dx, dy);}\\nvoid main() {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nint i = globalInvocationID.x;\\nvec4 currentNode = getDatau_Data(i);\\nfloat dx = 0.0;\\nfloat dy = 0.0;\\nif (i >= VERTEX_COUNT) {gl_FragColor = vec4(currentNode);\\nreturn ;}\\nvec4 nodeAttributes = getDatau_AttributeArray(i);\\nif ((nodeAttributes.y != 0.0) && (nodeAttributes.z != 0.0)) {gl_FragColor = vec4(vec4(nodeAttributes.y, nodeAttributes.z, currentNode.z, currentNode.w));\\nreturn ;}\\nvec2 repulsive = calcRepulsive(i, currentNode);\\ndx += repulsive.x;\\ndy += repulsive.y;\\nvec2 attractive = calcAttractive(i, currentNode);\\ndx += attractive.x;\\ndy += attractive.y;\\nvec2 gravity = calcGravity(currentNode, nodeAttributes);\\ndx -= gravity.x;\\ndy -= gravity.y;\\ndx *= u_Speed;\\ndy *= u_Speed;\\nfloat distLength = sqrt((dx * dx) + (dy * dy));\\nif (distLength > 0.0) {float limitedDist = min(u_MaxDisplace * u_Speed, distLength);\\ngl_FragColor = vec4(vec4(currentNode.x + ((dx / distLength) * limitedDist), currentNode.y + ((dy / distLength) * limitedDist), currentNode.z, currentNode.w));}if (gWebGPUDebug) {\\n gl_FragColor = gWebGPUDebugOutput;\\n}}\\n"},"context":{"name":"","dispatch":[1,1,1],"threadGroupSize":[1,1,1],"maxIteration":1,"defines":[{"name":"MAX_EDGE_PER_VERTEX","type":"Float","runtime":true},{"name":"VERTEX_COUNT","type":"Float","runtime":true}],"uniforms":[{"name":"u_Data","type":"vec4[]","storageClass":"StorageBuffer","readonly":false,"writeonly":false,"size":[1,1]},{"name":"u_K","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_K2","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_Center","type":"vec2","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_Gravity","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_ClusterGravity","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_Speed","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_MaxDisplace","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_Clustering","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_AttributeArray","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_ClusterCenters","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]}],"globalDeclarations":[],"output":{"name":"u_Data","size":[1,1],"length":1},"needPingpong":true}}',U.clusterCode=` -import { globalInvocationID } from 'g-webgpu'; -const VERTEX_COUNT; -const CLUSTER_COUNT; -@numthreads(1, 1, 1) -class CalcCenter { - @in - u_Data: vec4[]; - @in - u_NodeAttributes: vec4[]; // [[clusterIdx, 0, 0, 0], ...] - @in @out - u_ClusterCenters: vec4[]; // [[cx, cy, nodeCount, clusterIdx], ...] - @main - compute() { - const i = globalInvocationID.x; - const center = this.u_ClusterCenters[i]; - let sumx = 0; - let sumy = 0; - let count = 0; - for (let j = 0; j < VERTEX_COUNT; j++) { - const attributes = this.u_NodeAttributes[j]; - const clusterIdx = int(attributes[0]); - const vertex = this.u_Data[j]; - if (clusterIdx == i) { - sumx += vertex.x; - sumy += vertex.y; - count += 1; - } - } - this.u_ClusterCenters[i] = [ - sumx / count, - sumy / count, - count, - i - ]; - } -} -`,U.clusterBundle='{"shaders":{"WGSL":"","GLSL450":"","GLSL100":"\\n\\nfloat epsilon = 0.00001;\\nvec2 addrTranslation_1Dto2D(float address1D, vec2 texSize) {\\n vec2 conv_const = vec2(1.0 / texSize.x, 1.0 / (texSize.x * texSize.y));\\n vec2 normAddr2D = float(address1D) * conv_const;\\n return vec2(fract(normAddr2D.x + epsilon), normAddr2D.y);\\n}\\n\\nvoid barrier() {}\\n \\n\\nuniform vec2 u_OutputTextureSize;\\nuniform int u_OutputTexelCount;\\nvarying vec2 v_TexCoord;\\n\\nbool gWebGPUDebug = false;\\nvec4 gWebGPUDebugOutput = vec4(0.0);\\n\\n#define VERTEX_COUNT __DefineValuePlaceholder__VERTEX_COUNT\\n#define CLUSTER_COUNT __DefineValuePlaceholder__CLUSTER_COUNT\\n\\nuniform sampler2D u_Data;\\nuniform vec2 u_DataSize;\\nvec4 getDatau_Data(vec2 address2D) {\\n return vec4(texture2D(u_Data, address2D).rgba);\\n}\\nvec4 getDatau_Data(float address1D) {\\n return getDatau_Data(addrTranslation_1Dto2D(address1D, u_DataSize));\\n}\\nvec4 getDatau_Data(int address1D) {\\n return getDatau_Data(float(address1D));\\n}\\nuniform sampler2D u_NodeAttributes;\\nuniform vec2 u_NodeAttributesSize;\\nvec4 getDatau_NodeAttributes(vec2 address2D) {\\n return vec4(texture2D(u_NodeAttributes, address2D).rgba);\\n}\\nvec4 getDatau_NodeAttributes(float address1D) {\\n return getDatau_NodeAttributes(addrTranslation_1Dto2D(address1D, u_NodeAttributesSize));\\n}\\nvec4 getDatau_NodeAttributes(int address1D) {\\n return getDatau_NodeAttributes(float(address1D));\\n}\\nuniform sampler2D u_ClusterCenters;\\nuniform vec2 u_ClusterCentersSize;\\nvec4 getDatau_ClusterCenters(vec2 address2D) {\\n return vec4(texture2D(u_ClusterCenters, address2D).rgba);\\n}\\nvec4 getDatau_ClusterCenters(float address1D) {\\n return getDatau_ClusterCenters(addrTranslation_1Dto2D(address1D, u_ClusterCentersSize));\\n}\\nvec4 getDatau_ClusterCenters(int address1D) {\\n return getDatau_ClusterCenters(float(address1D));\\n}\\nvoid main() {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nint i = globalInvocationID.x;\\nvec4 center = getDatau_ClusterCenters(i);\\nfloat sumx = 0.0;\\nfloat sumy = 0.0;\\nfloat count = 0.0;\\nfor (int j = 0; j < VERTEX_COUNT; j++) {vec4 attributes = getDatau_NodeAttributes(j);\\nint clusterIdx = int(attributes.x);\\nvec4 vertex = getDatau_Data(j);\\nif (clusterIdx == i) {sumx += vertex.x;\\nsumy += vertex.y;\\ncount += 1.0;}}\\ngl_FragColor = vec4(vec4(sumx / count, sumy / count, count, i));if (gWebGPUDebug) {\\n gl_FragColor = gWebGPUDebugOutput;\\n}}\\n"},"context":{"name":"","dispatch":[1,1,1],"threadGroupSize":[1,1,1],"maxIteration":1,"defines":[{"name":"VERTEX_COUNT","type":"Float","runtime":true},{"name":"CLUSTER_COUNT","type":"Float","runtime":true}],"uniforms":[{"name":"u_Data","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_NodeAttributes","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_ClusterCenters","type":"vec4[]","storageClass":"StorageBuffer","readonly":false,"writeonly":false,"size":[1,1]}],"globalDeclarations":[],"output":{"name":"u_ClusterCenters","size":[1,1],"length":1},"needPingpong":true}}'},86043:function(or,U,G){"use strict";var B=this&&this.__extends||function(){var M=function(m,x){return M=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,R){T.__proto__=R}||function(T,R){for(var w in R)Object.prototype.hasOwnProperty.call(R,w)&&(T[w]=R[w])},M(m,x)};return function(m,x){if(typeof x!="function"&&x!==null)throw new TypeError("Class extends value "+String(x)+" is not a constructor or null");M(m,x);function T(){this.constructor=m}m.prototype=x===null?Object.create(x):(T.prototype=x.prototype,new T)}}(),W=this&&this.__awaiter||function(M,m,x,T){function R(w){return w instanceof x?w:new x(function(b){b(w)})}return new(x||(x=Promise))(function(w,b){function $(H){try{X(T.next(H))}catch(J){b(J)}}function j(H){try{X(T.throw(H))}catch(J){b(J)}}function X(H){H.done?w(H.value):R(H.value).then($,j)}X((T=T.apply(M,m||[])).next())})},k=this&&this.__generator||function(M,m){var x={label:0,sent:function(){if(w[0]&1)throw w[1];return w[1]},trys:[],ops:[]},T,R,w,b;return b={next:$(0),throw:$(1),return:$(2)},typeof Symbol=="function"&&(b[Symbol.iterator]=function(){return this}),b;function $(X){return function(H){return j([X,H])}}function j(X){if(T)throw new TypeError("Generator is already executing.");for(;b&&(b=0,X[0]&&(x=0)),x;)try{if(T=1,R&&(w=X[0]&2?R.return:X[0]?R.throw||((w=R.return)&&w.call(R),0):R.next)&&!(w=w.call(R,X[1])).done)return w;switch(R=0,w&&(X=[X[0]&2,w.value]),X[0]){case 0:case 1:w=X;break;case 4:return x.label++,{value:X[1],done:!1};case 5:x.label++,R=X[1],X=[0];continue;case 7:X=x.ops.pop(),x.trys.pop();continue;default:if(w=x.trys,!(w=w.length>0&&w[w.length-1])&&(X[0]===6||X[0]===2)){x=0;continue}if(X[0]===3&&(!w||X[1]>w[0]&&X[1]= length) break; - const arr_idx = arr_offset + 4 * p; // i \u8282\u70B9\u7684\u7B2C p \u6761\u8FB9\u5F00\u59CB\u7684\u5C0F\u683C\u5B50\u4F4D\u7F6E - const buf_offset = arr_idx - arr_idx / 4 * 4; - if (p == 0 || buf_offset == 0) { - node_buffer = this.u_Data[int(arr_idx / 4)]; // \u5927\u683C\u5B50\uFF0C\u5927\u683C\u5B50\u4F4D\u7F6E=\u5C0F\u4E2A\u5B50\u4F4D\u7F6E / 4\uFF0C - } - - let float_j: float = node_buffer[0]; - - const nextNode = this.u_Data[int(float_j)]; - const vx = nextNode[0] - currentNode[0]; - const vy = nextNode[1] - currentNode[1]; - const dist = sqrt(vx * vx + vy * vy) + 0.01; - const direx = vx / dist; - const direy = vy / dist; - const edgeLength = node_buffer[1]; - const edgeStrength = node_buffer[2]; - const diff: float = edgeLength - dist;//edgeLength - // const param = diff * this.u_stiffness / mass; // - const param = diff * edgeStrength / mass; // - ax -= direx * param; - ay -= direy * param; - } - return [ax, ay]; - } - - @main - compute() { - const i = globalInvocationID.x; - const currentNode = this.u_Data[i]; - const movement = u_AveMovement[0]; - let ax = 0, ay = 0; - - if (i >= VERTEX_COUNT || movement.x < u_minMovement) { - this.u_Data[i] = currentNode; - return; - } - - // \u6BCF\u4E2A\u8282\u70B9\u5C5E\u6027\u5360\u4E24\u4E2A\u6570\u7EC4\u4E2D\u5404\u4E00\u683C - // [mass, degree, nodeStrength, fx] - const nodeAttributes1 = this.u_NodeAttributeArray1[i]; - // [centerX, centerY, centerGravity, fy] - const nodeAttributes2 = this.u_NodeAttributeArray2[i]; - - // repulsive - const repulsive = this.calcRepulsive(i, currentNode); - ax += repulsive[0]; - ay += repulsive[1]; - - // attractive - const attractive = this.calcAttractive(i, currentNode, nodeAttributes1); - ax += attractive[0]; - ay += attractive[1]; - - // gravity - const gravity = this.calcGravity(i, currentNode, nodeAttributes2); - ax -= gravity[0]; - ay -= gravity[1]; - - // speed - const param = this.u_interval * this.u_damping; - let vx = ax * param; - let vy = ay * param; - const vlength = sqrt(vx * vx + vy * vy) + 0.0001; - if (vlength > this.u_maxSpeed) { - const param2 = this.u_maxSpeed / vlength; - vx = param2 * vx; - vy = param2 * vy; - } - - // move - if (nodeAttributes1[3] != 0 && nodeAttributes2[3] != 0) { - this.u_Data[i] = [ - nodeAttributes1[3], - nodeAttributes2[3], - currentNode[2], - 0 - ]; - } else { - const distx = vx * this.u_interval; - const disty = vy * this.u_interval; - const distLength = sqrt(distx * distx + disty * disty); - this.u_Data[i] = [ - currentNode[0] + distx, - currentNode[1] + disty, - currentNode[2], - distLength - ]; - } - - // the avarage move distance - // need to share memory - - } -} -`,U.gForceBundle='{"shaders":{"WGSL":"","GLSL450":"","GLSL100":"\\n\\nfloat epsilon = 0.00001;\\nvec2 addrTranslation_1Dto2D(float address1D, vec2 texSize) {\\n vec2 conv_const = vec2(1.0 / texSize.x, 1.0 / (texSize.x * texSize.y));\\n vec2 normAddr2D = float(address1D) * conv_const;\\n return vec2(fract(normAddr2D.x + epsilon), normAddr2D.y);\\n}\\n\\nvoid barrier() {}\\n \\n\\nuniform vec2 u_OutputTextureSize;\\nuniform int u_OutputTexelCount;\\nvarying vec2 v_TexCoord;\\n\\nbool gWebGPUDebug = false;\\nvec4 gWebGPUDebugOutput = vec4(0.0);\\n\\n#define MAX_EDGE_PER_VERTEX __DefineValuePlaceholder__MAX_EDGE_PER_VERTEX\\n#define VERTEX_COUNT __DefineValuePlaceholder__VERTEX_COUNT\\n#define SHIFT_20 1048576.0\\n\\nuniform sampler2D u_Data;\\nuniform vec2 u_DataSize;\\nvec4 getDatau_Data(vec2 address2D) {\\n return vec4(texture2D(u_Data, address2D).rgba);\\n}\\nvec4 getDatau_Data(float address1D) {\\n return getDatau_Data(addrTranslation_1Dto2D(address1D, u_DataSize));\\n}\\nvec4 getDatau_Data(int address1D) {\\n return getDatau_Data(float(address1D));\\n}\\nuniform float u_damping;\\nuniform float u_maxSpeed;\\nuniform float u_minMovement;\\nuniform sampler2D u_AveMovement;\\nuniform vec2 u_AveMovementSize;\\nvec4 getDatau_AveMovement(vec2 address2D) {\\n return vec4(texture2D(u_AveMovement, address2D).rgba);\\n}\\nvec4 getDatau_AveMovement(float address1D) {\\n return getDatau_AveMovement(addrTranslation_1Dto2D(address1D, u_AveMovementSize));\\n}\\nvec4 getDatau_AveMovement(int address1D) {\\n return getDatau_AveMovement(float(address1D));\\n}\\nuniform float u_coulombDisScale;\\nuniform float u_factor;\\nuniform sampler2D u_NodeAttributeArray1;\\nuniform vec2 u_NodeAttributeArray1Size;\\nvec4 getDatau_NodeAttributeArray1(vec2 address2D) {\\n return vec4(texture2D(u_NodeAttributeArray1, address2D).rgba);\\n}\\nvec4 getDatau_NodeAttributeArray1(float address1D) {\\n return getDatau_NodeAttributeArray1(addrTranslation_1Dto2D(address1D, u_NodeAttributeArray1Size));\\n}\\nvec4 getDatau_NodeAttributeArray1(int address1D) {\\n return getDatau_NodeAttributeArray1(float(address1D));\\n}\\nuniform sampler2D u_NodeAttributeArray2;\\nuniform vec2 u_NodeAttributeArray2Size;\\nvec4 getDatau_NodeAttributeArray2(vec2 address2D) {\\n return vec4(texture2D(u_NodeAttributeArray2, address2D).rgba);\\n}\\nvec4 getDatau_NodeAttributeArray2(float address1D) {\\n return getDatau_NodeAttributeArray2(addrTranslation_1Dto2D(address1D, u_NodeAttributeArray2Size));\\n}\\nvec4 getDatau_NodeAttributeArray2(int address1D) {\\n return getDatau_NodeAttributeArray2(float(address1D));\\n}\\nuniform float u_interval;\\nivec2 unpack_float(float packedValue) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nint packedIntValue = int(packedValue);\\nint v0 = packedIntValue / int(SHIFT_20);\\nreturn ivec2(v0, packedIntValue - (v0 * int(SHIFT_20)));}\\nvec2 calcRepulsive(int i, vec4 currentNode) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat ax = 0.0;\\nfloat ay = 0.0;\\nfor (int j = 0; j < VERTEX_COUNT; j++) {if (i != j) {vec4 nextNode = getDatau_Data(j);\\nfloat vx = currentNode.x - nextNode.x;\\nfloat vy = currentNode.y - nextNode.y;\\nfloat dist = sqrt((vx * vx) + (vy * vy)) + 0.01;\\nfloat n_dist = (dist + 0.1) * u_coulombDisScale;\\nfloat direx = vx / dist;\\nfloat direy = vy / dist;\\nvec4 attributesi = getDatau_NodeAttributeArray1(i);\\nvec4 attributesj = getDatau_NodeAttributeArray1(j);\\nfloat massi = attributesi.x;\\nfloat nodeStrengthi = attributesi.z;\\nfloat nodeStrengthj = attributesj.z;\\nfloat nodeStrength = (nodeStrengthi + nodeStrengthj) / 2.0;\\nfloat param = (nodeStrength * u_factor) / (n_dist * n_dist);\\nax += direx * param;\\nay += direy * param;}}\\nreturn vec2(ax, ay);}\\nvec2 calcGravity(int i, vec4 currentNode, vec4 attributes2) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat vx = currentNode.x - attributes2.x;\\nfloat vy = currentNode.y - attributes2.y;\\nfloat ax = vx * attributes2.z;\\nfloat ay = vy * attributes2.z;\\nreturn vec2(ax, ay);}\\nvec2 calcAttractive(int i, vec4 currentNode, vec4 attributes1) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat mass = attributes1.x;\\nfloat ax = 0.0;\\nfloat ay = 0.0;\\nivec2 compressed = unpack_float(currentNode.z);\\nint length = compressed.x;\\nint arr_offset = compressed.y;\\nvec4 node_buffer;\\nfor (int p = 0; p < MAX_EDGE_PER_VERTEX; p++) {if (p >= length) {break;}\\nint arr_idx = arr_offset + (4 * p);\\nint buf_offset = arr_idx - ((arr_idx / 4) * 4);\\nif ((p == 0) || (buf_offset == 0)) {node_buffer = getDatau_Data(int(arr_idx / 4));}\\nfloat float_j = node_buffer.x;\\nvec4 nextNode = getDatau_Data(int(float_j));\\nfloat vx = nextNode.x - currentNode.x;\\nfloat vy = nextNode.y - currentNode.y;\\nfloat dist = sqrt((vx * vx) + (vy * vy)) + 0.01;\\nfloat direx = vx / dist;\\nfloat direy = vy / dist;\\nfloat edgeLength = node_buffer.y;\\nfloat edgeStrength = node_buffer.z;\\nfloat diff = edgeLength - dist;\\nfloat param = (diff * edgeStrength) / mass;\\nax -= direx * param;\\nay -= direy * param;}\\nreturn vec2(ax, ay);}\\nvoid main() {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nint i = globalInvocationID.x;\\nvec4 currentNode = getDatau_Data(i);\\nvec4 movement = getDatau_AveMovement(0.0);\\nfloat ax = 0.0;\\nfloat ay = 0.0;\\nif ((i >= VERTEX_COUNT) || (movement.x < u_minMovement)) {gl_FragColor = vec4(currentNode);\\nreturn ;}\\nvec4 nodeAttributes1 = getDatau_NodeAttributeArray1(i);\\nvec4 nodeAttributes2 = getDatau_NodeAttributeArray2(i);\\nvec2 repulsive = calcRepulsive(i, currentNode);\\nax += repulsive.x;\\nay += repulsive.y;\\nvec2 attractive = calcAttractive(i, currentNode, nodeAttributes1);\\nax += attractive.x;\\nay += attractive.y;\\nvec2 gravity = calcGravity(i, currentNode, nodeAttributes2);\\nax -= gravity.x;\\nay -= gravity.y;\\nfloat param = u_interval * u_damping;\\nfloat vx = ax * param;\\nfloat vy = ay * param;\\nfloat vlength = sqrt((vx * vx) + (vy * vy)) + 0.0001;\\nif (vlength > u_maxSpeed) {float param2 = u_maxSpeed / vlength;\\nvx = param2 * vx;\\nvy = param2 * vy;}\\nif ((nodeAttributes1.w != 0.0) && (nodeAttributes2.w != 0.0)) {gl_FragColor = vec4(vec4(nodeAttributes1.w, nodeAttributes2.w, currentNode.z, 0.0));}else {float distx = vx * u_interval;\\nfloat disty = vy * u_interval;\\nfloat distLength = sqrt((distx * distx) + (disty * disty));\\ngl_FragColor = vec4(vec4(currentNode.x + distx, currentNode.y + disty, currentNode.z, distLength));}if (gWebGPUDebug) {\\n gl_FragColor = gWebGPUDebugOutput;\\n}}\\n"},"context":{"name":"","dispatch":[1,1,1],"threadGroupSize":[1,1,1],"maxIteration":1,"defines":[{"name":"MAX_EDGE_PER_VERTEX","type":"Float","runtime":true},{"name":"VERTEX_COUNT","type":"Float","runtime":true},{"name":"SHIFT_20","type":"Float","value":1048576,"runtime":false}],"uniforms":[{"name":"u_Data","type":"vec4[]","storageClass":"StorageBuffer","readonly":false,"writeonly":false,"size":[1,1]},{"name":"u_damping","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_maxSpeed","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_minMovement","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_AveMovement","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_coulombDisScale","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_factor","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_NodeAttributeArray1","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_NodeAttributeArray2","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_interval","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]}],"globalDeclarations":[],"output":{"name":"u_Data","size":[1,1],"length":1},"needPingpong":true}}',U.aveMovementCode=` -const VERTEX_COUNT; -@numthreads(1, 1, 1) -class CalcAveMovement { - @in - u_Data: vec4[]; - @in - u_iter: float; - @in @out - u_AveMovement: vec4[]; - @main - compute() { - let movement = 0; - for (let j: int = 0; j < VERTEX_COUNT; j++) { - const vertex = this.u_Data[j]; - movement += vertex[3]; - } - movement = movement / float(VERTEX_COUNT); - this.u_AveMovement[0] = [movement, 0, 0, 0]; - } -} -`,U.aveMovementBundle='{"shaders":{"WGSL":"","GLSL450":"","GLSL100":"\\n\\nfloat epsilon = 0.00001;\\nvec2 addrTranslation_1Dto2D(float address1D, vec2 texSize) {\\n vec2 conv_const = vec2(1.0 / texSize.x, 1.0 / (texSize.x * texSize.y));\\n vec2 normAddr2D = float(address1D) * conv_const;\\n return vec2(fract(normAddr2D.x + epsilon), normAddr2D.y);\\n}\\n\\nvoid barrier() {}\\n \\n\\nuniform vec2 u_OutputTextureSize;\\nuniform int u_OutputTexelCount;\\nvarying vec2 v_TexCoord;\\n\\nbool gWebGPUDebug = false;\\nvec4 gWebGPUDebugOutput = vec4(0.0);\\n\\n#define VERTEX_COUNT __DefineValuePlaceholder__VERTEX_COUNT\\n\\nuniform sampler2D u_Data;\\nuniform vec2 u_DataSize;\\nvec4 getDatau_Data(vec2 address2D) {\\n return vec4(texture2D(u_Data, address2D).rgba);\\n}\\nvec4 getDatau_Data(float address1D) {\\n return getDatau_Data(addrTranslation_1Dto2D(address1D, u_DataSize));\\n}\\nvec4 getDatau_Data(int address1D) {\\n return getDatau_Data(float(address1D));\\n}\\nuniform float u_iter;\\nuniform sampler2D u_AveMovement;\\nuniform vec2 u_AveMovementSize;\\nvec4 getDatau_AveMovement(vec2 address2D) {\\n return vec4(texture2D(u_AveMovement, address2D).rgba);\\n}\\nvec4 getDatau_AveMovement(float address1D) {\\n return getDatau_AveMovement(addrTranslation_1Dto2D(address1D, u_AveMovementSize));\\n}\\nvec4 getDatau_AveMovement(int address1D) {\\n return getDatau_AveMovement(float(address1D));\\n}\\nvoid main() {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat movement = 0.0;\\nfor (int j = 0; j < VERTEX_COUNT; j++) {vec4 vertex = getDatau_Data(j);\\nmovement += vertex.w;}\\nmovement = movement / float(VERTEX_COUNT);\\ngl_FragColor = vec4(vec4(movement, 0.0, 0.0, 0.0));if (gWebGPUDebug) {\\n gl_FragColor = gWebGPUDebugOutput;\\n}}\\n"},"context":{"name":"","dispatch":[1,1,1],"threadGroupSize":[1,1,1],"maxIteration":1,"defines":[{"name":"VERTEX_COUNT","type":"Float","runtime":true}],"uniforms":[{"name":"u_Data","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_iter","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_AveMovement","type":"vec4[]","storageClass":"StorageBuffer","readonly":false,"writeonly":false,"size":[1,1]}],"globalDeclarations":[],"output":{"name":"u_AveMovement","size":[1,1],"length":1},"needPingpong":true}}'},74294:function(or,U,G){"use strict";var B=this&&this.__extends||function(){var N=function(L,p){return N=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,v){E.__proto__=v}||function(E,v){for(var g in v)Object.prototype.hasOwnProperty.call(v,g)&&(E[g]=v[g])},N(L,p)};return function(L,p){if(typeof p!="function"&&p!==null)throw new TypeError("Class extends value "+String(p)+" is not a constructor or null");N(L,p);function E(){this.constructor=L}L.prototype=p===null?Object.create(p):(E.prototype=p.prototype,new E)}}();Object.defineProperty(U,"__esModule",{value:!0}),U.GridLayout=void 0;var W=G(8273),k=G(46253),O=function(N){B(L,N);function L(p){var E=N.call(this)||this;return E.begin=[0,0],E.preventOverlap=!0,E.preventOverlapPadding=10,E.condense=!1,E.sortBy="degree",E.nodes=[],E.edges=[],E.width=300,E.height=300,E.row=0,E.col=0,E.cellWidth=0,E.cellHeight=0,E.cellUsed={},E.id2manPos={},E.onLayoutEnd=function(){},E.updateCfg(p),E}return L.prototype.getDefaultCfg=function(){return{begin:[0,0],preventOverlap:!0,preventOverlapPadding:10,condense:!1,rows:void 0,cols:void 0,position:void 0,sortBy:"degree",nodeSize:30}},L.prototype.execute=function(){var p=this,E=p.nodes,v=p.edges,g=p.begin,d=E.length;if(d===0)return p.onLayoutEnd&&p.onLayoutEnd(),{nodes:E,edges:v};if(d===1)return E[0].x=g[0],E[0].y=g[1],p.onLayoutEnd&&p.onLayoutEnd(),{nodes:E,edges:v};var M=p.sortBy,m=p.width,x=p.height,T=p.condense,R=p.preventOverlapPadding,w=p.preventOverlap,b=p.nodeSpacing,$=p.nodeSize,j=[];E.forEach(function(_e){j.push(_e)});var X={};if(j.forEach(function(_e,De){X[_e.id]=De}),(M==="degree"||!(0,W.isString)(M)||j[0][M]===void 0)&&(M="degree",(0,W.isNaN)(E[0].degree))){var H=(0,W.getDegree)(j.length,X,v);j.forEach(function(_e,De){_e.degree=H[De].all})}j.sort(function(_e,De){return De[M]-_e[M]}),!m&&typeof window!="undefined"&&(m=window.innerWidth),!x&&typeof window!="undefined"&&(x=window.innerHeight);var J=p.rows,q=p.cols!=null?p.cols:p.columns;if(p.cells=d,J!=null&&q!=null?(p.rows=J,p.cols=q):J!=null&&q==null?(p.rows=J,p.cols=Math.ceil(p.cells/p.rows)):J==null&&q!=null?(p.cols=q,p.rows=Math.ceil(p.cells/p.cols)):(p.splits=Math.sqrt(p.cells*p.height/p.width),p.rows=Math.round(p.splits),p.cols=Math.round(p.width/p.height*p.splits)),p.rows=Math.max(p.rows,1),p.cols=Math.max(p.cols,1),p.cols*p.rows>p.cells){var Q=p.small(),te=p.large();(Q-1)*te>=p.cells?p.small(Q-1):(te-1)*Q>=p.cells&&p.large(te-1)}else for(;p.cols*p.rows=p.cells?p.large(te+1):p.small(Q+1)}if(p.cellWidth=m/p.cols,p.cellHeight=x/p.rows,T&&(p.cellWidth=0,p.cellHeight=0),w||b){var fe=(0,W.getFuncByUnknownType)(10,b),ye=(0,W.getFuncByUnknownType)(30,$,!1);j.forEach(function(_e){(!_e.x||!_e.y)&&(_e.x=0,_e.y=0);var De=ye(_e)||30,Ge,tt;(0,W.isArray)(De)?(Ge=De[0],tt=De[1]):(Ge=De,tt=De);var St=fe!==void 0?fe(_e):R,at=Ge+St,Mt=tt+St;p.cellWidth=Math.max(p.cellWidth,at),p.cellHeight=Math.max(p.cellHeight,Mt)})}p.cellUsed={},p.row=0,p.col=0,p.id2manPos={};for(var me=0;me=E&&(p.col=0,p.row++)},L.prototype.getPos=function(p){var E=this,v=E.begin,g=E.cellWidth,d=E.cellHeight,M,m,x=E.id2manPos[p.id];if(x)M=x.col*g+g/2+v[0],m=x.row*d+d/2+v[1];else{for(;E.used(E.row,E.col);)E.moveToNextCell();M=E.col*g+g/2+v[0],m=E.row*d+d/2+v[1],E.use(E.row,E.col),E.moveToNextCell()}p.x=M,p.y=m},L.prototype.getType=function(){return"grid"},L}(k.Base);U.GridLayout=O},64649:function(or,U,G){"use strict";var B=this&&this.__createBinding||(Object.create?function(H,J,q,Q){Q===void 0&&(Q=q);var te=Object.getOwnPropertyDescriptor(J,q);(!te||("get"in te?!J.__esModule:te.writable||te.configurable))&&(te={enumerable:!0,get:function(){return J[q]}}),Object.defineProperty(H,Q,te)}:function(H,J,q,Q){Q===void 0&&(Q=q),H[Q]=J[q]}),W=this&&this.__exportStar||function(H,J){for(var q in H)q!=="default"&&!Object.prototype.hasOwnProperty.call(J,q)&&B(J,H,q)};Object.defineProperty(U,"__esModule",{value:!0}),U.ERLayout=U.ForceAtlas2Layout=U.ComboCombinedLayout=U.ComboForceLayout=U.GForceGPULayout=U.FruchtermanGPULayout=U.FruchtermanLayout=U.MDSLayout=U.ConcentricLayout=U.RadialLayout=U.DagreCompoundLayout=U.DagreLayout=U.CircularLayout=U.ForceLayout=U.Force2Layout=U.GForceLayout=U.RandomLayout=U.GridLayout=U.Layouts=U.Layout=void 0;var k=G(74294);Object.defineProperty(U,"GridLayout",{enumerable:!0,get:function(){return k.GridLayout}});var O=G(26729);Object.defineProperty(U,"RandomLayout",{enumerable:!0,get:function(){return O.RandomLayout}});var N=G(46260);Object.defineProperty(U,"GForceLayout",{enumerable:!0,get:function(){return N.GForceLayout}});var L=G(38129);Object.defineProperty(U,"Force2Layout",{enumerable:!0,get:function(){return L.Force2Layout}});var p=G(64180);Object.defineProperty(U,"ForceLayout",{enumerable:!0,get:function(){return p.ForceLayout}});var E=G(93959);Object.defineProperty(U,"CircularLayout",{enumerable:!0,get:function(){return E.CircularLayout}});var v=G(2);Object.defineProperty(U,"DagreLayout",{enumerable:!0,get:function(){return v.DagreLayout}});var g=G(77620);Object.defineProperty(U,"DagreCompoundLayout",{enumerable:!0,get:function(){return g.DagreCompoundLayout}});var d=G(90106);Object.defineProperty(U,"RadialLayout",{enumerable:!0,get:function(){return d.RadialLayout}});var M=G(98162);Object.defineProperty(U,"ConcentricLayout",{enumerable:!0,get:function(){return M.ConcentricLayout}});var m=G(98204);Object.defineProperty(U,"MDSLayout",{enumerable:!0,get:function(){return m.MDSLayout}});var x=G(23826);Object.defineProperty(U,"FruchtermanLayout",{enumerable:!0,get:function(){return x.FruchtermanLayout}});var T=G(81822);Object.defineProperty(U,"FruchtermanGPULayout",{enumerable:!0,get:function(){return T.FruchtermanGPULayout}});var R=G(86043);Object.defineProperty(U,"GForceGPULayout",{enumerable:!0,get:function(){return R.GForceGPULayout}});var w=G(48133);Object.defineProperty(U,"ComboForceLayout",{enumerable:!0,get:function(){return w.ComboForceLayout}});var b=G(6412);Object.defineProperty(U,"ComboCombinedLayout",{enumerable:!0,get:function(){return b.ComboCombinedLayout}});var $=G(16919);Object.defineProperty(U,"ForceAtlas2Layout",{enumerable:!0,get:function(){return $.ForceAtlas2Layout}});var j=G(40311);Object.defineProperty(U,"ERLayout",{enumerable:!0,get:function(){return j.ERLayout}});var X=G(99745);Object.defineProperty(U,"Layout",{enumerable:!0,get:function(){return X.Layout}}),Object.defineProperty(U,"Layouts",{enumerable:!0,get:function(){return X.Layouts}}),W(G(2230),U)},99745:function(or,U,G){"use strict";Object.defineProperty(U,"__esModule",{value:!0}),U.Layouts=U.Layout=void 0;var B=G(39464),W=G(74294),k=G(26729),O=G(38129),N=G(46260),L=G(64180),p=G(93959),E=G(2),v=G(90106),g=G(98162),d=G(98204),M=G(23826),m=G(81822),x=G(86043),T=G(48133),R=G(6412),w=G(16919),b=G(40311),$=G(77620),j=G(8273),X=function(){function H(J){var q=(0,B.getLayoutByName)(J.type);this.layoutInstance=new q(J)}return H.prototype.layout=function(J){return this.layoutInstance.layout(J)},H.prototype.updateCfg=function(J){this.layoutInstance.updateCfg(J)},H.prototype.init=function(J){this.correctLayers(J.nodes),this.layoutInstance.init(J)},H.prototype.correctLayers=function(J){if(!!(J==null?void 0:J.length)){var q=Infinity,Q=[];if(J.forEach(function(fe){(0,j.isString)(fe.layer)&&(fe.layer=parseInt(fe.layer,10)),!(fe.layer===void 0||isNaN(fe.layer))&&(Q.push(fe),fe.layerR[0]?R[0]:te-R[0],me=fe-R[1]>R[1]?R[1]:fe-R[1];ye===0&&(ye=te/2),me===0&&(me=fe/2);var ge=me>ye?ye:me,be=Math.max.apply(Math,Q),ve=[];Q.forEach(function(Ft,wt){m.unitRadius||(m.unitRadius=ge/be),ve[wt]=Ft*m.unitRadius}),m.radii=ve;var _e=m.eIdealDisMatrix();m.eIdealDistances=_e;var De=p(_e);m.weights=De;var Ge=new N.default({linkDistance:w,distances:_e}),tt=Ge.layout();tt.forEach(function(Ft){(0,k.isNaN)(Ft[0])&&(Ft[0]=Math.random()*w),(0,k.isNaN)(Ft[1])&&(Ft[1]=Math.random()*w)}),m.positions=tt,tt.forEach(function(Ft,wt){x[wt].x=Ft[0]+R[0],x[wt].y=Ft[1]+R[1]}),tt.forEach(function(Ft){Ft[0]-=tt[X][0],Ft[1]-=tt[X][1]}),m.run();var St=m.preventOverlap,at=m.nodeSize,Mt,Wt=m.strictRadial;if(St){var er=m.nodeSpacing,it;(0,k.isNumber)(er)?it=function(){return er}:(0,k.isFunction)(er)?it=er:it=function(){return 0},at?(0,k.isArray)(at)?Mt=function(Ft){var wt=at[0]>at[1]?at[0]:at[1];return wt+it(Ft)}:Mt=function(Ft){return at+it(Ft)}:Mt=function(Ft){if(Ft.size){if((0,k.isArray)(Ft.size)){var wt=Ft.size[0]>Ft.size[1]?Ft.size[0]:Ft.size[1];return wt+it(Ft)}if((0,k.isObject)(Ft.size)){var wt=Ft.size.width>Ft.size.height?Ft.size.width:Ft.size.height;return wt+it(Ft)}return Ft.size+it(Ft)}return 10+it(Ft)};var yt={nodes:x,nodeSizeFunc:Mt,adjMatrix:H,positions:tt,radii:ve,height:fe,width:te,strictRadial:Wt,focusID:X,iterations:m.maxPreventOverlapIteration||200,k:tt.length/4.5},bt=new L.default(yt);tt=bt.layout()}return tt.forEach(function(Ft,wt){x[wt].x=Ft[0]+R[0],x[wt].y=Ft[1]+R[1]}),m.onLayoutEnd&&m.onLayoutEnd(),{nodes:x,edges:T}},M.prototype.run=function(){for(var m=this,x=m.maxIteration,T=m.positions||[],R=m.weights||[],w=m.eIdealDistances||[],b=m.radii||[],$=0;$<=x;$++){var j=$/x;m.oneIteration(j,T,b,w,R)}},M.prototype.oneIteration=function(m,x,T,R,w){var b=this,$=1-m,j=b.focusIndex;x.forEach(function(X,H){var J=v(X,[0,0]),q=J===0?0:1/J;if(H!==j){var Q=0,te=0,fe=0;x.forEach(function(me,ge){if(H!==ge){var be=v(X,me),ve=be===0?0:1/be,_e=R[ge][H];fe+=w[H][ge],Q+=w[H][ge]*(me[0]+_e*(X[0]-me[0])*ve),te+=w[H][ge]*(me[1]+_e*(X[1]-me[1])*ve)}});var ye=T[H]===0?0:1/T[H];fe*=$,fe+=m*ye*ye,Q*=$,Q+=m*ye*X[0]*q,X[0]=Q/fe,te*=$,te+=m*ye*X[1]*q,X[1]=te/fe}})},M.prototype.eIdealDisMatrix=function(){var m=this,x=m.nodes;if(!x)return[];var T=m.distances,R=m.linkDistance,w=m.radii||[],b=m.unitRadius||50,$=[];return T&&T.forEach(function(j,X){var H=[];j.forEach(function(J,q){if(X===q)H.push(0);else if(w[X]===w[q])if(m.sortBy==="data")H.push(J*(Math.abs(X-q)*m.sortStrength)/(w[X]/b));else if(m.sortBy){var Q=x[X][m.sortBy]||0,te=x[q][m.sortBy]||0;(0,k.isString)(Q)&&(Q=Q.charCodeAt(0)),(0,k.isString)(te)&&(te=te.charCodeAt(0)),H.push(J*(Math.abs(Q-te)*m.sortStrength)/(w[X]/b))}else H.push(J*R/(w[X]/b));else{var fe=(R+b)/2;H.push(J*fe)}}),$.push(H)}),$},M.prototype.handleInfinity=function(m,x,T){for(var R=m.length,w=0;wT?m[x][R]:T);return T},M.prototype.getType=function(){return"radial"},M}(O.Base);U.RadialLayout=g},78614:function(or,U){"use strict";Object.defineProperty(U,"__esModule",{value:!0});var G=800,B=function(){function W(k){this.disp=[],this.positions=k.positions,this.adjMatrix=k.adjMatrix,this.focusID=k.focusID,this.radii=k.radii,this.iterations=k.iterations||10,this.height=k.height||10,this.width=k.width||10,this.speed=k.speed||100,this.gravity=k.gravity||10,this.nodeSizeFunc=k.nodeSizeFunc,this.k=k.k||5,this.strictRadial=k.strictRadial,this.nodes=k.nodes}return W.prototype.layout=function(){var k=this,O=k.positions,N=[],L=k.iterations,p=k.width/10;k.maxDisplace=p,k.disp=N;for(var E=0;EM?1:-1;m=.01*R,x=.01*R}if(TMath.PI/2&&($-=Math.PI/2,R*=-1,w*=-1);var j=Math.cos($)*b;d.x=R*j,d.y=w*j});var g=k.radii;O.forEach(function(d,M){if(M!==E){var m=Math.sqrt(N[M].x*N[M].x+N[M].y*N[M].y);if(m>0&&M!==E){var x=Math.min(v*(L/G),m);if(d[0]+=N[M].x/m*x,d[1]+=N[M].y/m*x,p){var T=d[0]-O[E][0],R=d[1]-O[E][1],w=Math.sqrt(T*T+R*R);T=T/w*g[M],R=R/w*g[M],d[0]=O[E][0]+T,d[1]=O[E][1]+R}}}})},W}();U.default=B},26729:function(or,U,G){"use strict";var B=this&&this.__extends||function(){var O=function(N,L){return O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,E){p.__proto__=E}||function(p,E){for(var v in E)Object.prototype.hasOwnProperty.call(E,v)&&(p[v]=E[v])},O(N,L)};return function(N,L){if(typeof L!="function"&&L!==null)throw new TypeError("Class extends value "+String(L)+" is not a constructor or null");O(N,L);function p(){this.constructor=N}N.prototype=L===null?Object.create(L):(p.prototype=L.prototype,new p)}}();Object.defineProperty(U,"__esModule",{value:!0}),U.RandomLayout=void 0;var W=G(46253),k=function(O){B(N,O);function N(L){var p=O.call(this)||this;return p.center=[0,0],p.width=300,p.height=300,p.nodes=[],p.edges=[],p.onLayoutEnd=function(){},p.updateCfg(L),p}return N.prototype.getDefaultCfg=function(){return{center:[0,0],width:300,height:300}},N.prototype.execute=function(){var L=this,p=L.nodes,E=.9,v=L.center;return!L.width&&typeof window!="undefined"&&(L.width=window.innerWidth),!L.height&&typeof window!="undefined"&&(L.height=window.innerHeight),p&&p.forEach(function(g){g.x=(Math.random()-.5)*E*L.width+v[0],g.y=(Math.random()-.5)*E*L.height+v[1]}),L.onLayoutEnd&&L.onLayoutEnd(),{nodes:p,edges:this.edges}},N.prototype.getType=function(){return"random"},N}(W.Base);U.RandomLayout=k},2230:function(or,U){"use strict";Object.defineProperty(U,"__esModule",{value:!0})},39464:function(or,U,G){"use strict";var B=this&&this.__extends||function(){var E=function(v,g){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,M){d.__proto__=M}||function(d,M){for(var m in M)Object.prototype.hasOwnProperty.call(M,m)&&(d[m]=M[m])},E(v,g)};return function(v,g){if(typeof g!="function"&&g!==null)throw new TypeError("Class extends value "+String(g)+" is not a constructor or null");E(v,g);function d(){this.constructor=v}v.prototype=g===null?Object.create(g):(d.prototype=g.prototype,new d)}}();Object.defineProperty(U,"__esModule",{value:!0}),U.getLayoutByName=U.unRegisterLayout=U.registerLayout=void 0;var W=G(46253),k=G(8273),O=new Map,N=function(E,v){if(O.get(E)&&console.warn("The layout with the name ".concat(E," exists already, it will be overridden")),(0,k.isObject)(v)){var g=function(d){B(M,d);function M(m){var x=d.call(this)||this,T=x,R={},w=T.getDefaultCfg();return Object.assign(R,w,v,m),Object.keys(R).forEach(function(b){var $=R[b];T[b]=$}),x}return M}(W.Base);O.set(E,g)}else O.set(E,v);return O.get(E)};U.registerLayout=N;var L=function(E){O.has(E)&&O.delete(E)};U.unRegisterLayout=L;var p=function(E){return O.has(E)?O.get(E):null};U.getLayoutByName=p},92272:function(or,U){"use strict";Object.defineProperty(U,"__esModule",{value:!0}),U.isArray=void 0,U.isArray=Array.isArray},72612:function(or,U,G){"use strict";Object.defineProperty(U,"__esModule",{value:!0}),U.getFuncByUnknownType=U.getFunc=U.isFunction=void 0;var B=G(8273),W=G(5049),k=function(L){return typeof L=="function"};U.isFunction=k;var O=function(L,p,E){var v;return E?v=E:(0,W.isNumber)(L)?v=function(){return L}:v=function(){return p},v};U.getFunc=O;var N=function(L,p,E){return E===void 0&&(E=!0),!p&&p!==0?function(v){return v.size?(0,B.isArray)(v.size)?v.size[0]>v.size[1]?v.size[0]:v.size[1]:(0,B.isObject)(v.size)?v.size.width>v.size.height?v.size.width:v.size.height:v.size:L}:(0,U.isFunction)(p)?p:(0,W.isNumber)(p)?function(){return p}:(0,B.isArray)(p)?function(){if(E){var v=Math.max.apply(Math,p);return isNaN(v)?L:v}return p}:(0,B.isObject)(p)?function(){if(E){var v=Math.max(p.width,p.height);return isNaN(v)?L:v}return[p.width,p.height]}:function(){return L}};U.getFuncByUnknownType=N},38342:function(or,U,G){"use strict";Object.defineProperty(U,"__esModule",{value:!0}),U.arrayToTextureData=U.attributesToTextureData=U.buildTextureDataWithTwoEdgeAttr=U.buildTextureData=U.proccessToFunc=void 0;var B=G(8273),W=G(64446),k=function(E,v){var g;return E?(0,B.isNumber)(E)?g=function(){return E}:g=E:g=function(){return v||1},g};U.proccessToFunc=k;var O=function(E,v){var g=[],d=[],M={},m=0;for(m=0;m$[X][J]+$[J][H]&&($[X][H]=$[X][J]+$[J][H]);return $};U.floydWarshall=p;var E=function(b,$){var j=b.nodes,X=b.edges,H=[],J={};if(!j)throw new Error("invalid nodes data!");return j&&j.forEach(function(q,Q){J[q.id]=Q;var te=[];H.push(te)}),X==null||X.forEach(function(q){var Q=(0,U.getEdgeTerminal)(q,"source"),te=(0,U.getEdgeTerminal)(q,"target"),fe=J[Q],ye=J[te];fe===void 0||ye===void 0||(H[fe][ye]=1,$||(H[ye][fe]=1))}),H};U.getAdjMatrix=E;var v=function(b,$){var j=[];return b.forEach(function(X){var H=[];X.forEach(function(J){H.push(J*$)}),j.push(H)}),j};U.scaleMatrix=v;var g=function(b,$){if(b&&b.children){for(var j=b.children.length-1;j>=0;j--)if(!g(b.children[j],$))return}return!!$(b)},d=function(b,$){typeof $=="function"&&g(b,$)};U.traverseTreeUp=d;var M=function(b){var $=Infinity,j=Infinity,X=-Infinity,H=-Infinity;return b.forEach(function(J){var q=J.size;(0,B.isArray)(q)?q.length===1&&(q=[q[0],q[0]]):(0,W.isNumber)(q)?q=[q,q]:(q===void 0||isNaN(q))&&(q=[30,30]);var Q=[q[0]/2,q[1]/2],te=J.x-Q[0],fe=J.x+Q[0],ye=J.y-Q[1],me=J.y+Q[1];$>te&&($=te),j>ye&&(j=ye),X0?We.set(Te,Xe):We.delete(Te))}function E(We,Te,Xe,st){var nt=String(Te),vt=String(Xe);if(!We&&nt>vt){var Xt=nt;nt=vt,vt=Xt}return nt+N.EDGE_KEY_DELIM+vt+N.EDGE_KEY_DELIM+(st===void 0?N.DEFAULT_EDGE_NAME:st)}function v(We,Te,Xe,st){var nt=String(Te),vt=String(Xe),Xt={v:Te,w:Xe};if(!We&&nt>vt){var xr=Xt.v;Xt.v=Xt.w,Xt.w=xr}return st!==void 0&&(Xt.name=st),Xt}function g(We,Te){return E(We,Te.v,Te.w,Te.name)}function d(We){return typeof We=="function"}var M=function(Te){return Te.nodes().map(function(Xe){var st=Te.node(Xe),nt=Te.parent(Xe),vt={id:Xe,value:st,parent:nt};return vt.value===void 0&&delete vt.value,vt.parent===void 0&&delete vt.parent,vt})},m=function(Te){return Te.edges().map(function(Xe){var st=Te.edge(Xe),nt={v:Xe.v,w:Xe.w,value:st,name:Xe.name};return nt.name===void 0&&delete nt.name,nt.value===void 0&&delete nt.value,nt})},x=function(Te){var Xe={options:{directed:Te.isDirected(),multigraph:Te.isMultigraph(),compound:Te.isCompound()},nodes:M(Te),edges:m(Te),value:Te.graph()};return Xe.value===void 0&&delete Xe.value,Xe},T=function(Te){var Xe=new J(Te.options);return Te.value!==void 0&&Xe.setGraph(Te.value),Te.nodes.forEach(function(st){Xe.setNode(st.id,st.value),st.parent&&Xe.setParent(st.id,st.parent)}),Te.edges.forEach(function(st){Xe.setEdge(st.v,st.w,st.value,st.name)}),Xe};function R(We,Te){var Xe=Object.keys(We);if(Object.getOwnPropertySymbols){var st=Object.getOwnPropertySymbols(We);Te&&(st=st.filter(function(nt){return Object.getOwnPropertyDescriptor(We,nt).enumerable})),Xe.push.apply(Xe,st)}return Xe}function w(We){for(var Te=1;Te0&&arguments[0]!==void 0?arguments[0]:{};$(this,We),this.directed=!0,this.multigraph=!1,this.compound=!1,this.GRAPH_NODE=N.GRAPH_NODE,this.label=void 0,this.nodeCountNum=0,this.edgeCountNum=0,this.defaultNodeLabelFn=function(){},this.defaultEdgeLabelFn=function(){},this.parentMap=void 0,this.childrenMap=void 0,this.nodesLabelMap=new Map,this.inEdgesMap=new Map,this.outEdgesMap=new Map,this.predecessorsMap=new Map,this.successorsMap=new Map,this.edgesMap=new Map,this.edgesLabelsMap=new Map,this.isDirected=function(){return Te.directed},this.isMultigraph=function(){return Te.multigraph},this.isCompound=function(){return Te.compound},this.setGraph=function(nt){return Te.label=nt,Te},this.graph=function(){return Te.label},this.setDefaultNodeLabel=function(nt){return d(nt)?Te.defaultNodeLabelFn=nt:Te.defaultNodeLabelFn=function(){return nt},Te},this.nodeCount=function(){return Te.nodeCountNum},this.node=function(nt){return Te.nodesLabelMap.get(nt)},this.nodes=function(){return Array.from(Te.nodesLabelMap.keys())},this.sources=function(){return Te.nodes().filter(function(nt){var vt;return!((vt=Te.inEdgesMap.get(nt))===null||vt===void 0?void 0:vt.size)})},this.sinks=function(){return Te.nodes().filter(function(nt){var vt;return!((vt=Te.outEdgesMap.get(nt))===null||vt===void 0?void 0:vt.size)})},this.setNodes=function(nt,vt){return nt.map(function(Xt){return Te.setNode(Xt,vt)}),Te},this.hasNode=function(nt){return Te.nodesLabelMap.has(nt)},this.checkCompound=function(){if(!Te.isCompound())throw new Error("Cannot construct parent-children relations in a non-compound graph")},this.parent=function(nt){if(Te.isCompound()){var vt,Xt=(vt=Te.parentMap)===null||vt===void 0?void 0:vt.get(nt);if(Xt!==Te.GRAPH_NODE)return Xt}},this.removeFromParentsChildList=function(nt){var vt=Te.parentMap.get(nt);Te.childrenMap.get(vt).delete(nt)},this.setParent=function(nt,vt){var Xt,xr;Te.checkCompound();for(var jr=vt===void 0?Te.GRAPH_NODE:vt,fn=Te.parent(jr);fn;){if(nt===fn)throw new Error("Setting "+vt+" as parent of "+nt+" would create a cycle");fn=Te.parent(fn)}vt&&Te.setNode(vt),Te.setNode(nt),Te.removeFromParentsChildList(nt),(Xt=Te.parentMap)===null||Xt===void 0||Xt.set(nt,jr);var xn=Te.childrenMap.get(jr);return xn.set(nt,!0),(xr=Te.childrenMap)===null||xr===void 0||xr.set(jr,xn),Te},this.children=function(nt){var vt=nt===void 0?Te.GRAPH_NODE:nt;if(Te.isCompound()){var Xt,xr=(Xt=Te.childrenMap)===null||Xt===void 0?void 0:Xt.get(vt);return xr?Array.from(xr.keys()):void 0}if(vt===Te.GRAPH_NODE)return Te.nodes();if(nt&&Te.hasNode(nt))return[]},this.predecessors=function(nt){var vt=Te.predecessorsMap.get(nt);return vt?Array.from(vt.keys()):void 0},this.successors=function(nt){var vt=Te.successorsMap.get(nt);return vt?Array.from(vt.keys()):void 0},this.neighbors=function(nt){var vt;if(!!Te.hasNode(nt))return Array.from(new Set((vt=Te.predecessors(nt))===null||vt===void 0?void 0:vt.concat(Te.successors(nt))))},this.isLeaf=function(nt){var vt;if(Te.isDirected()){var Xt;return!((Xt=Te.successors(nt))===null||Xt===void 0?void 0:Xt.length)}return!((vt=Te.neighbors(nt))===null||vt===void 0?void 0:vt.length)},this.filterNodes=function(nt){var vt=Te.directed,Xt=Te.multigraph,xr=Te.compound,jr=new We({directed:vt,multigraph:Xt,compound:xr});if(jr.setGraph(Te.graph()),Te.nodes().forEach(function(xn){nt(xn)&&jr.setNode(xn,Te.node(xn))}),Te.edges().forEach(function(xn){jr.hasNode(xn.v)&&jr.hasNode(xn.w)&&jr.setEdgeObj(xn,Te.edge(xn))}),xr){var fn=function(Bn){for(var Hn=Te.parent(Bn);Hn!==void 0&&!jr.hasNode(Hn);)Hn=Te.parent(Hn);return Hn};jr.nodes().forEach(function(xn){jr.setParent(xn,fn(xn))})}return jr},this.setDefaultEdgeLabel=function(nt){return d(nt)?Te.defaultEdgeLabelFn=nt:Te.defaultEdgeLabelFn=function(){return nt},Te},this.edgeCount=function(){return Te.edgeCountNum},this.setEdgeObj=function(nt,vt){return Te.setEdge(nt.v,nt.w,vt,nt.name)},this.setPath=function(nt,vt){return nt.reduce(function(Xt,xr){return Te.setEdge(Xt,xr,vt),xr}),Te},this.edgeFromArgs=function(nt,vt,Xt){return Te.edge({v:nt,w:vt,name:Xt})},this.edge=function(nt){return Te.edgesLabelsMap.get(g(Te.isDirected(),nt))},this.hasEdge=function(nt,vt,Xt){return Te.edgesLabelsMap.has(g(Te.isDirected(),{v:nt,w:vt,name:Xt}))},this.removeEdgeObj=function(nt){var vt=nt.v,Xt=nt.w,xr=nt.name;return Te.removeEdge(vt,Xt,xr)},this.edges=function(){return Array.from(Te.edgesMap.values())},this.inEdges=function(nt,vt){var Xt=Te.inEdgesMap.get(nt);if(Xt)return Array.from(Xt.values()).filter(function(xr){return!vt||xr.v===vt})},this.outEdges=function(nt,vt){var Xt=Te.outEdgesMap.get(nt);if(Xt)return Array.from(Xt.values()).filter(function(xr){return!vt||xr.w===vt})},this.nodeEdges=function(nt,vt){var Xt;if(!!Te.hasNode(nt))return(Xt=Te.inEdges(nt,vt))===null||Xt===void 0?void 0:Xt.concat(Te.outEdges(nt,vt))},this.toJSON=function(){return x(Te)},this.nodeInDegree=function(nt){var vt=Te.inEdgesMap.get(nt);return vt?vt.size:0},this.nodeOutDegree=function(nt){var vt=Te.outEdgesMap.get(nt);return vt?vt.size:0},this.nodeDegree=function(nt){return Te.nodeInDegree(nt)+Te.nodeOutDegree(nt)},this.source=function(nt){return nt.v},this.target=function(nt){return nt.w};var st=w(w({},H),Xe);this.compound=st.compound,this.directed=st.directed,this.multigraph=st.multigraph,this.compound&&(this.parentMap=new Map,this.childrenMap=new Map)}return X(We,[{key:"setNode",value:function(Xe,st){var nt=this.nodesLabelMap,vt=this.defaultNodeLabelFn,Xt=this.isCompound,xr=this.parentMap,jr=this.childrenMap,fn=this.inEdgesMap,xn=this.outEdgesMap,Bn=this.predecessorsMap,Hn=this.successorsMap;if(nt.has(Xe))return st!==void 0&&nt.set(Xe,st),this;if(nt.set(Xe,st||vt(Xe)),Xt()){var ta;xr==null||xr.set(Xe,this.GRAPH_NODE),jr==null||jr.set(Xe,new Map),(jr==null?void 0:jr.has(this.GRAPH_NODE))||jr==null||jr.set(this.GRAPH_NODE,new Map),jr==null||(ta=jr.get(this.GRAPH_NODE))===null||ta===void 0||ta.set(Xe,!0)}return[fn,xn,Bn,Hn].forEach(function(Wa){return Wa.set(Xe,new Map)}),this.nodeCountNum+=1,this}},{key:"removeNode",value:function(Xe){var st=this;if(this.hasNode(Xe)){var nt=function(Ba){st.removeEdge(Ba.v,Ba.w,Ba.name)},vt=this.inEdgesMap,Xt=this.outEdgesMap,xr=this.predecessorsMap,jr=this.successorsMap,fn=this.nodesLabelMap;if(this.isCompound()){var xn,Bn,Hn;this.removeFromParentsChildList(Xe),(xn=this.parentMap)===null||xn===void 0||xn.delete(Xe),(Bn=this.children(Xe))===null||Bn===void 0||Bn.forEach(function(Oa){return st.setParent(Oa)}),(Hn=this.childrenMap)===null||Hn===void 0||Hn.delete(Xe)}var ta=vt.get(Xe),Wa=Xt.get(Xe);Array.from(ta.values()).forEach(function(Oa){return nt(Oa)}),Array.from(Wa.values()).forEach(function(Oa){return nt(Oa)}),fn.delete(Xe),vt.delete(Xe),Xt.delete(Xe),xr.delete(Xe),jr.delete(Xe),this.nodeCountNum-=1}return this}},{key:"setEdge",value:function(Xe,st,nt,vt){var Xt,xr,jr=v(this.isDirected(),Xe,st,vt),fn=g(this.isDirected(),jr),xn=jr.v,Bn=jr.w;if(this.edgesLabelsMap.has(fn))return this.edgesLabelsMap.set(fn,nt),this;if(vt!==void 0&&!this.isMultigraph())throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(xn),this.setNode(Bn),this.edgesLabelsMap.set(fn,nt||this.defaultEdgeLabelFn(xn,Bn,vt)),Object.freeze(jr),this.edgesMap.set(fn,jr);var Hn=this.predecessorsMap.get(Bn),ta=this.successorsMap.get(xn);return L(Hn,xn),L(ta,Bn),(Xt=this.inEdgesMap.get(Bn))===null||Xt===void 0||Xt.set(fn,jr),(xr=this.outEdgesMap.get(xn))===null||xr===void 0||xr.set(fn,jr),this.edgeCountNum+=1,this}},{key:"removeEdge",value:function(Xe,st,nt){var vt=E(this.isDirected(),Xe,st,nt),Xt=this.edgesMap.get(vt);if(Xt){var xr=v(this.isDirected(),Xe,st,nt),jr=xr.v,fn=xr.w;this.edgesLabelsMap.delete(vt),this.edgesMap.delete(vt);var xn=this.predecessorsMap.get(fn),Bn=this.successorsMap.get(jr);p(xn,jr),p(Bn,fn),this.inEdgesMap.get(fn).delete(vt),this.outEdgesMap.get(jr).delete(vt),this.edgeCountNum-=1}return this}}]),We}();J.fromJSON=T;function q(We){return q=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Te){return typeof Te}:function(Te){return Te&&typeof Symbol=="function"&&Te.constructor===Symbol&&Te!==Symbol.prototype?"symbol":typeof Te},q(We)}function Q(We,Te){if(!(We instanceof Te))throw new TypeError("Cannot call a class as a function")}function te(We,Te){for(var Xe=0;Xe-1&&this.eventPool[nt].splice(Xt,1)}}},{key:"emitEvent",value:function(nt){for(var vt=arguments.length,Xt=new Array(vt>1?vt-1:0),xr=1;xr>1,((xr=st[vt])===null||xr===void 0?void 0:xr.priority)Te.arr[nt].priority)throw new Error("New priority is greater than current priority.Key: ".concat(Xe," Old: + ").concat(Te.arr[nt].priority," New: ").concat(st));Te.arr[nt].priority=st,Te.innerDecrease(nt)}}),it=function(Te,Xe){var st=new J,nt=new Map,vt=new er,Xt;function xr(xn){var Bn=xn.v===Xt?xn.w:xn.v,Hn=vt.priority(Bn);if(Hn!==void 0){var ta=Xe(xn);ta0;){var fn;if(Xt=vt.removeMin(),nt.has(Xt))st.setEdge(Xt,nt.get(Xt));else{if(jr)throw new Error("Input graph is not connected: "+Te.graph());jr=!0}(fn=Te.nodeEdges(Xt))===null||fn===void 0||fn.forEach(xr)}return st},yt=it,bt=function(Te){var Xe=new Set,st=[],nt=Te.nodes();return nt.forEach(function(vt){for(var Xt=[],xr=[vt];xr.length>0;){var jr=xr.pop();if(!Xe.has(jr)){var fn,xn;Xe.add(jr),Xt.push(jr),(fn=Te.successors(jr))===null||fn===void 0||fn.forEach(function(Bn){return xr.push(Bn)}),(xn=Te.predecessors(jr))===null||xn===void 0||xn.forEach(function(Bn){return xr.push(Bn)})}}Xt.length&&st.push(Xt)}),st},Ft=bt,wt=function We(Te,Xe,st,nt,vt,Xt){nt.includes(Xe)||(nt.push(Xe),st||Xt.push(Xe),vt(Xe).forEach(function(xr){return We(Te,xr,st,nt,vt,Xt)}),st&&Xt.push(Xe))},pt=function(Te,Xe,st){var nt=Array.isArray(Xe)?Xe:[Xe],vt=function(fn){return Te.isDirected()?Te.successors(fn):Te.neighbors(fn)},Xt=[],xr=[];return nt.forEach(function(jr){if(Te.hasNode(jr))wt(Te,jr,st==="post",xr,vt,Xt);else throw new Error("Graph does not have node: "+jr)}),Xt},sr=pt;function Ur(We,Te){return wr(We)||tr(We,Te)||ut(We,Te)||Zt()}function Zt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ut(We,Te){if(!!We){if(typeof We=="string")return Rt(We,Te);var Xe=Object.prototype.toString.call(We).slice(8,-1);if(Xe==="Object"&&We.constructor&&(Xe=We.constructor.name),Xe==="Map"||Xe==="Set")return Array.from(We);if(Xe==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Xe))return Rt(We,Te)}}function Rt(We,Te){(Te==null||Te>We.length)&&(Te=We.length);for(var Xe=0,st=new Array(Te);Xe0&&(xr=Xt.removeMin(),jr=vt.get(xr),!(jr&&jr.distance===Number.POSITIVE_INFINITY));)nt(xr).forEach(fn);var xn={};return Array.from(vt.entries()).forEach(function(Bn){var Hn=Ur(Bn,2),ta=Hn[0],Wa=Hn[1];return xn[String(ta)]=Wa,xn}),xn},zt=Oe,Sr=function(Te,Xe,st){var nt={};return Te.nodes().forEach(function(vt){return nt[String(vt)]=zt(Te,vt,Xe,st),nt}),nt},dr=Sr,Fr=function(Te){var Xe=0,st=[],nt=new Map,vt=[];function Xt(xr){var jr,fn={onStack:!0,lowlink:Xe,index:Xe};if(nt.set(xr,fn),Xe+=1,st.push(xr),(jr=Te.successors(xr))===null||jr===void 0||jr.forEach(function(ta){var Wa;if(nt.has(ta)){if((Wa=nt.get(ta))===null||Wa===void 0?void 0:Wa.onStack){var Ba=nt.get(ta);fn.lowlink=Math.min(fn.lowlink,Ba.index)}}else{Xt(ta);var Oa=nt.get(ta);fn.lowlink=Math.min(fn.lowlink,Oa.lowlink)}}),fn.lowlink===fn.index){var xn=[],Bn;do{Bn=st.pop();var Hn=nt.get(Bn);Hn.onStack=!1,xn.push(Bn)}while(xr!==Bn);vt.push(xn)}}return Te.nodes().forEach(function(xr){nt.has(xr)||Xt(xr)}),vt},nn=Fr,$r=function(Te){return nn(Te).filter(function(Xe){return Xe.length>1||Xe.length===1&&Te.hasEdge(Xe[0],Xe[0])})},Wr=$r;function tn(We){return tn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Te){return typeof Te}:function(Te){return Te&&typeof Symbol=="function"&&Te.constructor===Symbol&&Te!==Symbol.prototype?"symbol":typeof Te},tn(We)}function _r(We,Te){for(var Xe=0;XeWe.length)&&(Te=We.length);for(var Xe=0,st=new Array(Te);Xe-1:!1};G.a=k},function(U,G,B){"use strict";var W=function(k){return typeof k=="object"&&k!==null};G.a=W},function(U,G,B){"use strict";var W=B(8),k=B(2),O=Object.values?function(N){return Object.values(N)}:function(N){var L=[];return Object(W.a)(N,function(p,E){Object(k.a)(N)&&E==="prototype"||L.push(p)}),L};G.a=O},function(U,G,B){"use strict";G.a=k;function W(O,N){for(var L in N)N.hasOwnProperty(L)&&L!=="constructor"&&N[L]!==void 0&&(O[L]=N[L])}function k(O,N,L,p){return N&&W(O,N),L&&W(O,L),p&&W(O,p),O}},function(U,G,B){var W=B(35),k=["LR","RL","TB","BT","H","V"],O=["LR","RL","H"],N=function(E){return O.indexOf(E)>-1},L=k[0];U.exports=function(p,E,v){var g=E.direction||L;if(E.isHorizontal=N(g),g&&k.indexOf(g)===-1)throw new TypeError("Invalid direction: "+g);if(g===k[0])v(p,E);else if(g===k[1])v(p,E),p.right2left();else if(g===k[2])v(p,E);else if(g===k[3])v(p,E),p.bottom2top();else if(g===k[4]||g===k[5]){var d=W(p,E),M=d.left,m=d.right;v(M,E),v(m,E),E.isHorizontal?M.right2left():M.bottom2top(),m.translate(M.x-m.x,M.y-m.y),p.x=M.x,p.y=m.y;var x=p.getBoundingBox();E.isHorizontal?x.top<0&&p.translate(0,-x.top):x.left<0&&p.translate(-x.left,0)}var T=E.fixedRoot;return T===void 0&&(T=!0),T&&p.translate(-(p.x+p.width/2+p.hgap),-(p.y+p.height/2+p.vgap)),p}},function(U,G,B){var W=B(6),k=18,O=k*2,N=k,L={getId:function(g){return g.id||g.name},getPreH:function(g){return g.preH||0},getPreV:function(g){return g.preV||0},getHGap:function(g){return g.hgap||N},getVGap:function(g){return g.vgap||N},getChildren:function(g){return g.children},getHeight:function(g){return g.height||O},getWidth:function(g){var d=g.label||" ";return g.width||d.split("").length*k}};function p(v,g){var d=this;if(d.vgap=d.hgap=0,v instanceof p)return v;d.data=v;var M=g.getHGap(v),m=g.getVGap(v);return d.preH=g.getPreH(v),d.preV=g.getPreV(v),d.width=g.getWidth(v),d.height=g.getHeight(v),d.width+=d.preH,d.height+=d.preV,d.id=g.getId(v),d.x=d.y=0,d.depth=0,d.children||(d.children=[]),d.addGap(M,m),d}W.assign(p.prototype,{isRoot:function(){return this.depth===0},isLeaf:function(){return this.children.length===0},addGap:function(g,d){var M=this;M.hgap+=g,M.vgap+=d,M.width+=2*g,M.height+=2*d},eachNode:function(g){for(var d=this,M=[d],m;m=M.shift();)g(m),M=m.children.concat(M)},DFTraverse:function(g){this.eachNode(g)},BFTraverse:function(g){for(var d=this,M=[d],m;m=M.shift();)g(m),M=M.concat(m.children)},getBoundingBox:function(){var g={left:Number.MAX_VALUE,top:Number.MAX_VALUE,width:0,height:0};return this.eachNode(function(d){g.left=Math.min(g.left,d.x),g.top=Math.min(g.top,d.y),g.width=Math.max(g.width,d.x+d.width),g.height=Math.max(g.height,d.y+d.height)}),g},translate:function(g,d){g===void 0&&(g=0),d===void 0&&(d=0),this.eachNode(function(M){M.x+=g,M.y+=d,M.x+=M.preH,M.y+=M.preV})},right2left:function(){var g=this,d=g.getBoundingBox();g.eachNode(function(M){M.x=M.x-(M.x-d.left)*2-M.width}),g.translate(d.width,0)},bottom2top:function(){var g=this,d=g.getBoundingBox();g.eachNode(function(M){M.y=M.y-(M.y-d.top)*2-M.height}),g.translate(0,d.height)}});function E(v,g,d){g===void 0&&(g={}),g=W.assign({},L,g);var M=new p(v,g),m=[M],x;if(!d&&!v.collapsed){for(;x=m.shift();)if(!x.data.collapsed){var T=g.getChildren(x.data),R=T?T.length:0;if(x.children=new Array(R),T&&R)for(var w=0;w-1;)k.call(L,d,1);return L};G.a=N},function(U,G,B){"use strict";var W=B(1),k=B(24),O=function(N,L){var p=[];if(!Object(W.a)(N))return p;for(var E=-1,v=[],g=N.length;++Ed[m])return 1;if(g[m]N?N:k};G.a=W},function(U,G,B){"use strict";var W=function(k,O){var N=O.toString(),L=N.indexOf(".");if(L===-1)return Math.round(k);var p=N.substr(L+1).length;return p>20&&(p=20),parseFloat(k.toFixed(p))};G.a=W},function(U,G,B){"use strict";var W=B(5),k=function(O){return Object(W.a)(O)&&O%1!=0};G.a=k},function(U,G,B){"use strict";var W=B(5),k=function(O){return Object(W.a)(O)&&O%2==0};G.a=k},function(U,G,B){"use strict";var W=B(5),k=Number.isInteger?Number.isInteger:function(O){return Object(W.a)(O)&&O%1==0};G.a=k},function(U,G,B){"use strict";var W=B(5),k=function(O){return Object(W.a)(O)&&O<0};G.a=k},function(U,G,B){"use strict";G.a=k;var W=1e-5;function k(O,N,L){return L===void 0&&(L=W),Math.abs(O-N)0};G.a=k},function(U,G,B){"use strict";var W=B(0),k=B(2);G.a=function(O,N){if(!!Object(W.a)(O)){for(var L,p=-Infinity,E=0;Ep&&(L=v,p=g)}return L}}},function(U,G,B){"use strict";var W=B(0),k=B(2);G.a=function(O,N){if(!!Object(W.a)(O)){for(var L,p=Infinity,E=0;Ek?(N&&(clearTimeout(N),N=null),v=M,E=W.apply(L,p),N||(L=p=null)):!N&&O.trailing!==!1&&(N=setTimeout(g,m)),E};return d.cancel=function(){clearTimeout(N),v=0,N=L=p=null},d}},function(U,G,B){"use strict";var W=B(1);G.a=function(k){return Object(W.a)(k)?Array.prototype.slice.call(k):[]}},function(U,G,B){"use strict";var W={};G.a=function(k){return k=k||"g",W[k]?W[k]+=1:W[k]=1,k+W[k]}},function(U,G,B){"use strict";G.a=function(){}},function(U,G,B){"use strict";G.a=function(W){return W}},function(U,G,B){"use strict";G.a=O;var W=B(7),k=B(1);function O(N){return Object(W.a)(N)?0:Object(k.a)(N)?N.length:Object.keys(N).length}},function(U,G,B){"use strict";G.a=R;var W=function(me,ge){return W=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(be,ve){be.__proto__=ve}||function(be,ve){for(var _e in ve)Object.prototype.hasOwnProperty.call(ve,_e)&&(be[_e]=ve[_e])},W(me,ge)};function k(me,ge){if(typeof ge!="function"&&ge!==null)throw new TypeError("Class extends value "+String(ge)+" is not a constructor or null");W(me,ge);function be(){this.constructor=me}me.prototype=ge===null?Object.create(ge):(be.prototype=ge.prototype,new be)}var O=function(){return O=Object.assign||function(ge){for(var be,ve=1,_e=arguments.length;ve<_e;ve++){be=arguments[ve];for(var De in be)Object.prototype.hasOwnProperty.call(be,De)&&(ge[De]=be[De])}return ge},O.apply(this,arguments)};function N(me,ge){var be={};for(var ve in me)Object.prototype.hasOwnProperty.call(me,ve)&&ge.indexOf(ve)<0&&(be[ve]=me[ve]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _e=0,ve=Object.getOwnPropertySymbols(me);_e=0;tt--)(Ge=me[tt])&&(De=(_e<3?Ge(De):_e>3?Ge(ge,be,De):Ge(ge,be))||De);return _e>3&&De&&Object.defineProperty(ge,be,De),De}function p(me,ge){return function(be,ve){ge(be,ve,me)}}function E(me,ge){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(me,ge)}function v(me,ge,be,ve){function _e(De){return De instanceof be?De:new be(function(Ge){Ge(De)})}return new(be||(be=Promise))(function(De,Ge){function tt(Mt){try{at(ve.next(Mt))}catch(Wt){Ge(Wt)}}function St(Mt){try{at(ve.throw(Mt))}catch(Wt){Ge(Wt)}}function at(Mt){Mt.done?De(Mt.value):_e(Mt.value).then(tt,St)}at((ve=ve.apply(me,ge||[])).next())})}function g(me,ge){var be={label:0,sent:function(){if(De[0]&1)throw De[1];return De[1]},trys:[],ops:[]},ve,_e,De,Ge;return Ge={next:tt(0),throw:tt(1),return:tt(2)},typeof Symbol=="function"&&(Ge[Symbol.iterator]=function(){return this}),Ge;function tt(at){return function(Mt){return St([at,Mt])}}function St(at){if(ve)throw new TypeError("Generator is already executing.");for(;Ge&&(Ge=0,at[0]&&(be=0)),be;)try{if(ve=1,_e&&(De=at[0]&2?_e.return:at[0]?_e.throw||((De=_e.return)&&De.call(_e),0):_e.next)&&!(De=De.call(_e,at[1])).done)return De;switch(_e=0,De&&(at=[at[0]&2,De.value]),at[0]){case 0:case 1:De=at;break;case 4:return be.label++,{value:at[1],done:!1};case 5:be.label++,_e=at[1],at=[0];continue;case 7:at=be.ops.pop(),be.trys.pop();continue;default:if(De=be.trys,!(De=De.length>0&&De[De.length-1])&&(at[0]===6||at[0]===2)){be=0;continue}if(at[0]===3&&(!De||at[1]>De[0]&&at[1]=me.length&&(me=void 0),{value:me&&me[ve++],done:!me}}};throw new TypeError(ge?"Object is not iterable.":"Symbol.iterator is not defined.")}function x(me,ge){var be=typeof Symbol=="function"&&me[Symbol.iterator];if(!be)return me;var ve=be.call(me),_e,De=[],Ge;try{for(;(ge===void 0||ge-- >0)&&!(_e=ve.next()).done;)De.push(_e.value)}catch(tt){Ge={error:tt}}finally{try{_e&&!_e.done&&(be=ve.return)&&be.call(ve)}finally{if(Ge)throw Ge.error}}return De}function T(){for(var me=[],ge=0;ge1||tt(er,it)})})}function tt(er,it){try{St(ve[er](it))}catch(yt){Wt(De[0][3],yt)}}function St(er){er.value instanceof b?Promise.resolve(er.value.v).then(at,Mt):Wt(De[0][2],er)}function at(er){tt("next",er)}function Mt(er){tt("throw",er)}function Wt(er,it){er(it),De.shift(),De.length&&tt(De[0][0],De[0][1])}}function j(me){var ge,be;return ge={},ve("next"),ve("throw",function(_e){throw _e}),ve("return"),ge[Symbol.iterator]=function(){return this},ge;function ve(_e,De){ge[_e]=me[_e]?function(Ge){return(be=!be)?{value:b(me[_e](Ge)),done:_e==="return"}:De?De(Ge):Ge}:De}}function X(me){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ge=me[Symbol.asyncIterator],be;return ge?ge.call(me):(me=typeof m=="function"?m(me):me[Symbol.iterator](),be={},ve("next"),ve("throw"),ve("return"),be[Symbol.asyncIterator]=function(){return this},be);function ve(De){be[De]=me[De]&&function(Ge){return new Promise(function(tt,St){Ge=me[De](Ge),_e(tt,St,Ge.done,Ge.value)})}}function _e(De,Ge,tt,St){Promise.resolve(St).then(function(at){De({value:at,done:tt})},Ge)}}function H(me,ge){return Object.defineProperty?Object.defineProperty(me,"raw",{value:ge}):me.raw=ge,me}var J=Object.create?function(me,ge){Object.defineProperty(me,"default",{enumerable:!0,value:ge})}:function(me,ge){me.default=ge};function q(me){if(me&&me.__esModule)return me;var ge={};if(me!=null)for(var be in me)be!=="default"&&Object.prototype.hasOwnProperty.call(me,be)&&d(ge,me,be);return J(ge,me),ge}function Q(me){return me&&me.__esModule?me:{default:me}}function te(me,ge,be,ve){if(be==="a"&&!ve)throw new TypeError("Private accessor was defined without a getter");if(typeof ge=="function"?me!==ge||!ve:!ge.has(me))throw new TypeError("Cannot read private member from an object whose class did not declare it");return be==="m"?ve:be==="a"?ve.call(me):ve?ve.value:ge.get(me)}function fe(me,ge,be,ve,_e){if(ve==="m")throw new TypeError("Private method is not writable");if(ve==="a"&&!_e)throw new TypeError("Private accessor was defined without a setter");if(typeof ge=="function"?me!==ge||!_e:!ge.has(me))throw new TypeError("Cannot write private member to an object whose class did not declare it");return ve==="a"?_e.call(me,be):_e?_e.value=be:ge.set(me,be),be}function ye(me,ge){if(ge===null||typeof ge!="object"&&typeof ge!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof me=="function"?ge===me:me.has(ge)}},function(U,G,B){"use strict";var W=B(4),k=B(9),O=B(34);G.a=function(N,L,p,E){E===void 0&&(E="...");var v=16,g=Object(O.a)(E,p),d=Object(W.a)(N)?N:Object(k.a)(N),M=L,m=[],x,T;if(Object(O.a)(N,p)<=L)return N;for(;x=d.substr(0,v),T=Object(O.a)(x,p),!(T+g>M&&T>M);)if(m.push(x),M-=T,d=d.substr(v),!d)return m.join("");for(;x=d.substr(0,1),T=Object(O.a)(x,p),!(T+g>M);)if(m.push(x),M-=T,d=d.substr(1),!d)return m.join("");return""+m.join("")+E}},function(U,G,B){"use strict";var W=function(){function k(){this.map={}}return k.prototype.has=function(O){return this.map[O]!==void 0},k.prototype.get=function(O,N){var L=this.map[O];return L===void 0?N:L},k.prototype.set=function(O,N){this.map[O]=N},k.prototype.clear=function(){this.map={}},k.prototype.delete=function(O){delete this.map[O]},k.prototype.size=function(){return Object.keys(this.map).length},k}();G.a=W},function(U,G){function B(p,E,v,g){g===void 0&&(g=[]);var d=this;d.w=p||0,d.h=E||0,d.y=v||0,d.x=0,d.c=g||[],d.cs=g.length,d.prelim=0,d.mod=0,d.shift=0,d.change=0,d.tl=null,d.tr=null,d.el=null,d.er=null,d.msel=0,d.mser=0}B.fromNode=function(p,E){if(!p)return null;var v=[];return p.children.forEach(function(g){v.push(B.fromNode(g,E))}),E?new B(p.height,p.width,p.x,v):new B(p.width,p.height,p.y,v)};function W(p,E,v){v?p.y+=E:p.x+=E,p.children.forEach(function(g){W(g,E,v)})}function k(p,E){var v=E?p.y:p.x;return p.children.forEach(function(g){v=Math.min(k(g,E),v)}),v}function O(p,E){var v=k(p,E);W(p,-v,E)}function N(p,E,v){v?E.y=p.x:E.x=p.x,p.c.forEach(function(g,d){N(g,E.children[d],v)})}function L(p,E,v){v===void 0&&(v=0),E?(p.x=v,v+=p.width):(p.y=v,v+=p.height),p.children.forEach(function(g){L(g,E,v)})}U.exports=function(p,E){E===void 0&&(E={});var v=E.isHorizontal;function g(Q){if(Q.cs===0){d(Q);return}g(Q.c[0]);for(var te=J(R(Q.c[0].el),0,null),fe=1;fefe.low&&(fe=fe.nxt);var ve=me+ye.prelim+ye.w-(be+ge.prelim);ve>0&&(be+=ve,m(Q,te,fe.index,ve));var _e=R(ye),De=R(ge);_e<=De&&(ye=T(ye),ye!==null&&(me+=ye.mod)),_e>=De&&(ge=x(ge),ge!==null&&(be+=ge.mod))}!ye&&!!ge?w(Q,te,ge,be):!!ye&&!ge&&b(Q,te,ye,me)}function m(Q,te,fe,ye){Q.c[te].mod+=ye,Q.c[te].msel+=ye,Q.c[te].mser+=ye,X(Q,te,fe,ye)}function x(Q){return Q.cs===0?Q.tl:Q.c[0]}function T(Q){return Q.cs===0?Q.tr:Q.c[Q.cs-1]}function R(Q){return Q.y+Q.h}function w(Q,te,fe,ye){var me=Q.c[0].el;me.tl=fe;var ge=ye-fe.mod-Q.c[0].msel;me.mod+=ge,me.prelim-=ge,Q.c[0].el=Q.c[te].el,Q.c[0].msel=Q.c[te].msel}function b(Q,te,fe,ye){var me=Q.c[te].er;me.tr=fe;var ge=ye-fe.mod-Q.c[te].mser;me.mod+=ge,me.prelim-=ge,Q.c[te].er=Q.c[te-1].er,Q.c[te].mser=Q.c[te-1].mser}function $(Q){Q.prelim=(Q.c[0].prelim+Q.c[0].mod+Q.c[Q.cs-1].mod+Q.c[Q.cs-1].prelim+Q.c[Q.cs-1].w)/2-Q.w/2}function j(Q,te){te+=Q.mod,Q.x=Q.prelim+te,H(Q);for(var fe=0;fe=fe.low;)fe=fe.nxt;return{low:Q,index:te,nxt:fe}}L(p,v);var q=B.fromNode(p,v);return g(q),j(q,0),N(q,p,v),O(p,v),p}},function(U,G,B){function W(d,M){d.prototype=Object.create(M.prototype),d.prototype.constructor=d,k(d,M)}function k(d,M){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(x,T){return x.__proto__=T,x},k(d,M)}var O=B(11),N=B(121),L=B(17),p=B(6),E=function(d){W(M,d);function M(){return d.apply(this,arguments)||this}var m=M.prototype;return m.execute=function(){var T=this;return T.rootNode.width=0,L(T.rootNode,T.options,N)},M}(O),v={};function g(d,M){return M=p.assign({},v,M),new E(d,M).execute()}U.exports=g},function(U,G,B){var W=B(6);function k(L,p){L===void 0&&(L=0),p===void 0&&(p=[]);var E=this;E.x=E.y=0,E.leftChild=E.rightChild=null,E.height=0,E.children=p}var O={isHorizontal:!0,nodeSep:20,nodeSize:20,rankSep:200,subTreeSep:10};function N(L,p,E){E?(p.x=L.x,p.y=L.y):(p.x=L.y,p.y=L.x),L.children.forEach(function(v,g){N(v,p.children[g],E)})}U.exports=function(L,p){p===void 0&&(p={}),p=W.assign({},O,p);var E=0;function v(x){if(!x)return null;x.width=0,x.depth&&x.depth>E&&(E=x.depth);var T=x.children,R=T.length,w=new k(x.height,[]);return T.forEach(function(b,$){var j=v(b);w.children.push(j),$===0&&(w.leftChild=j),$===R-1&&(w.rightChild=j)}),w.originNode=x,w.isLeaf=x.isLeaf(),w}function g(x){if(x.isLeaf||x.children.length===0)x.drawingDepth=E;else{var T=x.children.map(function(w){return g(w)}),R=Math.min.apply(null,T);x.drawingDepth=R-1}return x.drawingDepth}var d;function M(x){x.x=x.drawingDepth*p.rankSep,x.isLeaf?(x.y=0,d&&(x.y=d.y+d.height+p.nodeSep,x.originNode.parent!==d.originNode.parent&&(x.y+=p.subTreeSep)),d=x):(x.children.forEach(function(T){M(T)}),x.y=(x.leftChild.y+x.rightChild.y)/2)}var m=v(L);return g(m),M(m),N(m,L,p.isHorizontal),L}},function(U,G,B){function W(m,x){m.prototype=Object.create(x.prototype),m.prototype.constructor=m,k(m,x)}function k(m,x){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(R,w){return R.__proto__=w,R},k(m,x)}var O=B(11),N=B(123),L=B(35),p=B(6),E=["LR","RL","H"],v=E[0],g=function(m){W(x,m);function x(){return m.apply(this,arguments)||this}var T=x.prototype;return T.execute=function(){var w=this,b=w.options,$=w.rootNode;b.isHorizontal=!0;var j=b.indent,X=j===void 0?20:j,H=b.dropCap,J=H===void 0?!0:H,q=b.direction,Q=q===void 0?v:q,te=b.align;if(Q&&E.indexOf(Q)===-1)throw new TypeError("Invalid direction: "+Q);if(Q===E[0])N($,X,J,te);else if(Q===E[1])N($,X,J,te),$.right2left();else if(Q===E[2]){var fe=L($,b),ye=fe.left,me=fe.right;N(ye,X,J,te),ye.right2left(),N(me,X,J,te);var ge=ye.getBoundingBox();me.translate(ge.width,0),$.x=me.x-$.width/2}return $},x}(O),d={};function M(m,x){return x=p.assign({},d,x),new g(m,x).execute()}U.exports=M},function(U,G,B){var W=B(6);function k(O,N,L,p,E){var v=typeof L=="function"?L(O):L*O.depth;if(!p)try{if(O.id===O.parent.children[0].id){O.x+=v,O.y=N?N.y:0;return}}catch(x){}if(O.x+=v,N){var g;if(O.y=N.y+W.getHeight(N,O,E),O.parent.id!==((g=N.parent)==null?void 0:g.id)){var d=O.parent.children.findIndex(function(x){return x.id===O.id}),M=O.parent.children[d-1];if(M){var m=M.y+W.getHeight(M,O,E);O.y=m>O.y?m:O.y}}}else O.y=0}U.exports=function(O,N,L,p){var E=null;O.eachNode(function(v){k(v,E,N,L,p),E=v})}},function(U,G,B){function W(d,M){d.prototype=Object.create(M.prototype),d.prototype.constructor=d,k(d,M)}function k(d,M){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(x,T){return x.__proto__=T,x},k(d,M)}var O=B(11),N=B(125),L=B(17),p=B(6),E=function(d){W(M,d);function M(){return d.apply(this,arguments)||this}var m=M.prototype;return m.execute=function(){var T=this;return L(T.rootNode,T.options,N)},M}(O),v={};function g(d,M){return M=p.assign({},v,M),new E(d,M).execute()}U.exports=g},function(U,G,B){var W=B(6);function k(L,p){var E=0;return L.children.length?L.children.forEach(function(v){E+=k(v,p)}):E=L.height,L._subTreeSep=p.getSubTreeSep(L.data),L.totalHeight=Math.max(L.height,E)+2*L._subTreeSep,L.totalHeight}function O(L){var p=L.children,E=p.length;if(E){p.forEach(function(x){O(x)});var v=p[0],g=p[E-1],d=g.y-v.y+g.height,M=0;if(p.forEach(function(x){M+=x.totalHeight}),d>L.height)L.y=v.y+d/2-L.height/2;else if(p.length!==1||L.height>M){var m=L.y+(L.height-d)/2-v.y;p.forEach(function(x){x.translate(0,m)})}else L.y=(v.y+v.height/2+g.y+g.height/2)/2-L.height/2}}var N={getSubTreeSep:function(){return 0}};U.exports=function(L,p){p===void 0&&(p={}),p=W.assign({},N,p),L.parent={x:0,width:0,height:0,y:0},L.BFTraverse(function(E){E.x=E.parent.x+E.parent.width}),L.parent=null,k(L,p),L.startY=0,L.y=L.totalHeight/2-L.height/2,L.eachNode(function(E){var v=E.children,g=v.length;if(g){var d=v[0];if(d.startY=E.startY+E._subTreeSep,g===1)d.y=E.y+E.height/2-d.height/2;else{d.y=d.startY+d.totalHeight/2-d.height/2;for(var M=1;M=0;return m?T?Math.PI*2-x:x:T?x:Math.PI*2-x}B=v;function g(d,M,m){return m?(d[0]=M[1],d[1]=-1*M[0]):(d[0]=-1*M[1],d[1]=M[0]),d}B=g},59591:function(or,U,G){var B=G(50008).default;function W(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */or.exports=W=function(){return k},or.exports.__esModule=!0,or.exports.default=or.exports;var k={},O=Object.prototype,N=O.hasOwnProperty,L=Object.defineProperty||function(be,ve,_e){be[ve]=_e.value},p=typeof Symbol=="function"?Symbol:{},E=p.iterator||"@@iterator",v=p.asyncIterator||"@@asyncIterator",g=p.toStringTag||"@@toStringTag";function d(be,ve,_e){return Object.defineProperty(be,ve,{value:_e,enumerable:!0,configurable:!0,writable:!0}),be[ve]}try{d({},"")}catch(be){d=function(_e,De,Ge){return _e[De]=Ge}}function M(be,ve,_e,De){var Ge=ve&&ve.prototype instanceof T?ve:T,tt=Object.create(Ge.prototype),St=new ye(De||[]);return L(tt,"_invoke",{value:q(be,_e,St)}),tt}function m(be,ve,_e){try{return{type:"normal",arg:be.call(ve,_e)}}catch(De){return{type:"throw",arg:De}}}k.wrap=M;var x={};function T(){}function R(){}function w(){}var b={};d(b,E,function(){return this});var $=Object.getPrototypeOf,j=$&&$($(me([])));j&&j!==O&&N.call(j,E)&&(b=j);var X=w.prototype=T.prototype=Object.create(b);function H(be){["next","throw","return"].forEach(function(ve){d(be,ve,function(_e){return this._invoke(ve,_e)})})}function J(be,ve){function _e(Ge,tt,St,at){var Mt=m(be[Ge],be,tt);if(Mt.type!=="throw"){var Wt=Mt.arg,er=Wt.value;return er&&B(er)=="object"&&N.call(er,"__await")?ve.resolve(er.__await).then(function(it){_e("next",it,St,at)},function(it){_e("throw",it,St,at)}):ve.resolve(er).then(function(it){Wt.value=it,St(Wt)},function(it){return _e("throw",it,St,at)})}at(Mt.arg)}var De;L(this,"_invoke",{value:function(tt,St){function at(){return new ve(function(Mt,Wt){_e(tt,St,Mt,Wt)})}return De=De?De.then(at,at):at()}})}function q(be,ve,_e){var De="suspendedStart";return function(Ge,tt){if(De==="executing")throw new Error("Generator is already running");if(De==="completed"){if(Ge==="throw")throw tt;return ge()}for(_e.method=Ge,_e.arg=tt;;){var St=_e.delegate;if(St){var at=Q(St,_e);if(at){if(at===x)continue;return at}}if(_e.method==="next")_e.sent=_e._sent=_e.arg;else if(_e.method==="throw"){if(De==="suspendedStart")throw De="completed",_e.arg;_e.dispatchException(_e.arg)}else _e.method==="return"&&_e.abrupt("return",_e.arg);De="executing";var Mt=m(be,ve,_e);if(Mt.type==="normal"){if(De=_e.done?"completed":"suspendedYield",Mt.arg===x)continue;return{value:Mt.arg,done:_e.done}}Mt.type==="throw"&&(De="completed",_e.method="throw",_e.arg=Mt.arg)}}}function Q(be,ve){var _e=ve.method,De=be.iterator[_e];if(De===void 0)return ve.delegate=null,_e==="throw"&&be.iterator.return&&(ve.method="return",ve.arg=void 0,Q(be,ve),ve.method==="throw")||_e!=="return"&&(ve.method="throw",ve.arg=new TypeError("The iterator does not provide a '"+_e+"' method")),x;var Ge=m(De,be.iterator,ve.arg);if(Ge.type==="throw")return ve.method="throw",ve.arg=Ge.arg,ve.delegate=null,x;var tt=Ge.arg;return tt?tt.done?(ve[be.resultName]=tt.value,ve.next=be.nextLoc,ve.method!=="return"&&(ve.method="next",ve.arg=void 0),ve.delegate=null,x):tt:(ve.method="throw",ve.arg=new TypeError("iterator result is not an object"),ve.delegate=null,x)}function te(be){var ve={tryLoc:be[0]};1 in be&&(ve.catchLoc=be[1]),2 in be&&(ve.finallyLoc=be[2],ve.afterLoc=be[3]),this.tryEntries.push(ve)}function fe(be){var ve=be.completion||{};ve.type="normal",delete ve.arg,be.completion=ve}function ye(be){this.tryEntries=[{tryLoc:"root"}],be.forEach(te,this),this.reset(!0)}function me(be){if(be){var ve=be[E];if(ve)return ve.call(be);if(typeof be.next=="function")return be;if(!isNaN(be.length)){var _e=-1,De=function Ge(){for(;++_e=0;--Ge){var tt=this.tryEntries[Ge],St=tt.completion;if(tt.tryLoc==="root")return De("end");if(tt.tryLoc<=this.prev){var at=N.call(tt,"catchLoc"),Mt=N.call(tt,"finallyLoc");if(at&&Mt){if(this.prev=0;--De){var Ge=this.tryEntries[De];if(Ge.tryLoc<=this.prev&&N.call(Ge,"finallyLoc")&&this.prev=0;--_e){var De=this.tryEntries[_e];if(De.finallyLoc===ve)return this.complete(De.completion,De.afterLoc),fe(De),x}},catch:function(ve){for(var _e=this.tryEntries.length-1;_e>=0;--_e){var De=this.tryEntries[_e];if(De.tryLoc===ve){var Ge=De.completion;if(Ge.type==="throw"){var tt=Ge.arg;fe(De)}return tt}}throw new Error("illegal catch attempt")},delegateYield:function(ve,_e,De){return this.delegate={iterator:me(ve),resultName:_e,nextLoc:De},this.method==="next"&&(this.arg=void 0),x}},k}or.exports=W,or.exports.__esModule=!0,or.exports.default=or.exports},87757:function(or,U,G){var B=G(59591)();or.exports=B;try{regeneratorRuntime=B}catch(W){typeof globalThis=="object"?globalThis.regeneratorRuntime=B:Function("r","regeneratorRuntime = r")(B)}},41685:function(or,U,G){"use strict";G.r(U),G.d(U,{forceCenter:function(){return B},forceCollide:function(){return p},forceLink:function(){return g},forceManyBody:function(){return pt},forceRadial:function(){return sr},forceSimulation:function(){return wt},forceX:function(){return Ur},forceY:function(){return Zt}});function B(ut,Rt){var tr,wr=1;ut==null&&(ut=0),Rt==null&&(Rt=0);function Vr(){var Oe,Dt=tr.length,zt,Sr=0,dr=0;for(Oe=0;Oe$r.index){var kn=Wr-Vn.x-Vn.vx,An=tn-Vn.y-Vn.vy,mn=kn*kn+An*An;mnWr+Jr||catn+Jr||Wndr.r&&(dr.r=dr[Fr].r)}function Sr(){if(!!Rt){var dr,Fr=Rt.length,nn;for(tr=new Array(Fr),dr=0;dr=0&&(wr=tr.slice(Vr+1),tr=tr.slice(0,Vr)),tr&&!Rt.hasOwnProperty(tr))throw new Error("unknown type: "+tr);return{type:tr,name:wr}})}m.prototype=M.prototype={constructor:m,on:function(Rt,tr){var wr=this._,Vr=x(Rt+"",wr),Oe,Dt=-1,zt=Vr.length;if(arguments.length<2){for(;++Dt0)for(var wr=new Array(Oe),Vr=0,Oe,Dt;Vr=0&&ut._call.call(null,Rt),ut=ut._next;--b}function De(){Q=(q=fe.now())+te,b=$=0;try{_e()}finally{b=0,tt(),Q=0}}function Ge(){var ut=fe.now(),Rt=ut-q;Rt>X&&(te-=Rt,q=ut)}function tt(){for(var ut,Rt=H,tr,wr=Infinity;Rt;)Rt._call?(wr>Rt._time&&(wr=Rt._time),ut=Rt,Rt=Rt._next):(tr=Rt._next,Rt._next=null,Rt=ut?ut._next=tr:H=tr);J=ut,St(wr)}function St(ut){if(!b){$&&($=clearTimeout($));var Rt=ut-Q;Rt>24?(ut1?(Rr==null?zt.delete(pr):zt.set(pr,tn(Rr)),Rt):zt.get(pr)},find:function(pr,Rr,sn){var gn=0,yn=ut.length,fa,ca,Wn,Vn,_a;for(sn==null?sn=Infinity:sn*=sn,gn=0;gn1?(dr.on(pr,Rr),Rt):dr.on(pr)}}}function pt(){var ut,Rt,tr,wr,Vr=k(-30),Oe,Dt=1,zt=Infinity,Sr=.81;function dr(Wr){var tn,_r=ut.length,pr=(0,W.Z)(ut,it,yt).visitAfter(nn);for(wr=Wr,tn=0;tn<_r;++tn)Rt=ut[tn],pr.visit($r)}function Fr(){if(!!ut){var Wr,tn=ut.length,_r;for(Oe=new Array(tn),Wr=0;Wr=zt)return;(Wr.data!==Rt||Wr.next)&&(Rr===0&&(Rr=O(tr),yn+=Rr*Rr),sn===0&&(sn=O(tr),yn+=sn*sn),yn1&&arguments[1]!==void 0?arguments[1]:{};if(!p(ne))throw new TypeError("input must be an array");if(ne.length===0)throw new TypeError("input must not be empty");var P=ae.fromIndex,S=P===void 0?0:P,C=ae.toIndex,V=C===void 0?ne.length:C;if(S<0||S>=ne.length||!Number.isInteger(S))throw new Error("fromIndex must be a positive integer smaller than length");if(V<=S||V>ne.length||!Number.isInteger(V))throw new Error("toIndex must be an integer greater than fromIndex and at most equal to length");for(var de=ne[S],Se=S+1;Sede&&(de=ne[Se]);return de}function v(ne){var ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!p(ne))throw new TypeError("input must be an array");if(ne.length===0)throw new TypeError("input must not be empty");var P=ae.fromIndex,S=P===void 0?0:P,C=ae.toIndex,V=C===void 0?ne.length:C;if(S<0||S>=ne.length||!Number.isInteger(S))throw new Error("fromIndex must be a positive integer smaller than length");if(V<=S||V>ne.length||!Number.isInteger(V))throw new Error("toIndex must be an integer greater than fromIndex and at most equal to length");for(var de=ne[S],Se=S+1;Se1&&arguments[1]!==void 0?arguments[1]:{};if(p(ne)){if(ne.length===0)throw new TypeError("input must not be empty")}else throw new TypeError("input must be an array");var P;if(ae.output!==void 0){if(!p(ae.output))throw new TypeError("output option must be an array if specified");P=ae.output}else P=new Array(ne.length);var S=v(ne),C=E(ne);if(S===C)throw new RangeError("minimum and maximum input values are equal. Cannot rescale a constant array");var V=ae.min,de=V===void 0?ae.autoMinMax?S:0:V,Se=ae.max,xe=Se===void 0?ae.autoMinMax?C:1:Se;if(de>=xe)throw new RangeError("min option must be smaller than max option");for(var Le=(xe-de)/(C-S),ht=0;ht1&&arguments[1]!==void 0?arguments[1]:{},P=ae.maxRows,S=P===void 0?15:P,C=ae.maxColumns,V=C===void 0?10:C,de=ae.maxNumSize,Se=de===void 0?8:de,xe=ae.padMinus,Le=xe===void 0?"auto":xe;return"".concat(ne.constructor.name,` { -`).concat(d,`[ -`).concat(M).concat(T(ne,S,V,Se,Le),` -`).concat(d,`] -`).concat(d,"rows: ").concat(ne.rows,` -`).concat(d,"columns: ").concat(ne.columns,` -}`)}function T(ne,ae,P,S,C){var V=ne.rows,de=ne.columns,Se=Math.min(V,ae),xe=Math.min(de,P),Le=[];if(C==="auto"){C=!1;e:for(var ht=0;ht=0&&P?" ".concat(w(ne,ae-1)):w(ne,ae)).padEnd(ae)}function w(ne,ae){var P=ne.toString();if(P.length<=ae)return P;var S=ne.toFixed(ae);if(S.length>ae&&(S=ne.toFixed(Math.max(0,ae-(S.length-ae)))),S.length<=ae&&!S.startsWith("0.000")&&!S.startsWith("-0.000"))return S;var C=ne.toExponential(ae);return C.length>ae&&(C=ne.toExponential(Math.max(0,ae-(C.length-ae)))),C.slice(0)}function b(ne,ae){ne.prototype.add=function(S){return typeof S=="number"?this.addS(S):this.addM(S)},ne.prototype.addS=function(S){for(var C=0;C>S);return this},ne.prototype.signPropagatingRightShiftM=function(S){if(S=ae.checkMatrix(S),this.rows!==S.rows||this.columns!==S.columns)throw new RangeError("Matrices dimensions must be equal");for(var C=0;C>S.get(C,V));return this},ne.signPropagatingRightShift=function(S,C){var V=new ae(S);return V.signPropagatingRightShift(C)},ne.prototype.rightShift=function(S){return typeof S=="number"?this.rightShiftS(S):this.rightShiftM(S)},ne.prototype.rightShiftS=function(S){for(var C=0;C>>S);return this},ne.prototype.rightShiftM=function(S){if(S=ae.checkMatrix(S),this.rows!==S.rows||this.columns!==S.columns)throw new RangeError("Matrices dimensions must be equal");for(var C=0;C>>S.get(C,V));return this},ne.rightShift=function(S,C){var V=new ae(S);return V.rightShift(C)},ne.prototype.zeroFillRightShift=ne.prototype.rightShift,ne.prototype.zeroFillRightShiftS=ne.prototype.rightShiftS,ne.prototype.zeroFillRightShiftM=ne.prototype.rightShiftM,ne.zeroFillRightShift=ne.rightShift,ne.prototype.not=function(){for(var S=0;SS)throw new RangeError("Row index out of range")}function j(ne,ae,P){var S=P?ne.columns:ne.columns-1;if(ae<0||ae>S)throw new RangeError("Column index out of range")}function X(ne,ae){if(ae.to1DArray&&(ae=ae.to1DArray()),ae.length!==ne.columns)throw new RangeError("vector size must be the same as the number of columns");return ae}function H(ne,ae){if(ae.to1DArray&&(ae=ae.to1DArray()),ae.length!==ne.rows)throw new RangeError("vector size must be the same as the number of rows");return ae}function J(ne,ae){if(!p(ae))throw new TypeError("row indices must be an array");for(var P=0;P=ne.rows)throw new RangeError("row indices are out of range")}function q(ne,ae){if(!p(ae))throw new TypeError("column indices must be an array");for(var P=0;P=ne.columns)throw new RangeError("column indices are out of range")}function Q(ne,ae,P,S,C){if(arguments.length!==5)throw new RangeError("expected 4 arguments");if(fe("startRow",ae),fe("endRow",P),fe("startColumn",S),fe("endColumn",C),ae>P||S>C||ae<0||ae>=ne.rows||P<0||P>=ne.rows||S<0||S>=ne.columns||C<0||C>=ne.columns)throw new RangeError("Submatrix indices are out of range")}function te(ne){for(var ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,P=[],S=0;SC?(de=!0,C=S):(V=!1,de=!0);P++}return V}},{key:"isReducedEchelonForm",value:function(){for(var P=0,S=0,C=-1,V=!0,de=!1;PC?(de=!0,C=S):(V=!1,de=!0);for(var Se=S+1;SeP.get(V,C)&&(V=de);if(P.get(V,C)===0)C++;else{P.swapRows(S,V);for(var Se=P.get(S,C),xe=C;xe=0;)if(P.maxRow(V)===0)V--;else{for(var de=0,Se=!1;de0&&arguments[0]!==void 0?arguments[0]:{};if(typeof P!="object")throw new TypeError("options must be an object");var S=P.rows,C=S===void 0?1:S,V=P.columns,de=V===void 0?1:V;if(!Number.isInteger(C)||C<=0)throw new TypeError("rows must be a positive integer");if(!Number.isInteger(de)||de<=0)throw new TypeError("columns must be a positive integer");for(var Se=new Zt(this.rows*C,this.columns*de),xe=0;xeS[C]&&(S[C]=this.get(C,V));return S}case"column":{for(var de=new Array(this.columns).fill(Number.NEGATIVE_INFINITY),Se=0;Sede[xe]&&(de[xe]=this.get(Se,xe));return de}case void 0:{for(var Le=this.get(0,0),ht=0;htLe&&(Le=this.get(ht,ot));return Le}default:throw new Error("invalid option: ".concat(P))}}},{key:"maxIndex",value:function(){ye(this);for(var P=this.get(0,0),S=[0,0],C=0;CP&&(P=this.get(C,V),S[0]=C,S[1]=V);return S}},{key:"min",value:function(P){if(this.isEmpty())return NaN;switch(P){case"row":{for(var S=new Array(this.rows).fill(Number.POSITIVE_INFINITY),C=0;CS&&(S=this.get(P,C));return S}},{key:"maxRowIndex",value:function(P){$(this,P),ye(this);for(var S=this.get(P,0),C=[P,0],V=1;VS&&(S=this.get(P,V),C[1]=V);return C}},{key:"minRow",value:function(P){if($(this,P),this.isEmpty())return NaN;for(var S=this.get(P,0),C=1;CS&&(S=this.get(C,P));return S}},{key:"maxColumnIndex",value:function(P){j(this,P),ye(this);for(var S=this.get(0,P),C=[0,P],V=1;VS&&(S=this.get(V,P),C[0]=V);return C}},{key:"minColumn",value:function(P){if(j(this,P),this.isEmpty())return NaN;for(var S=this.get(0,P),C=1;C0&&arguments[0]!==void 0?arguments[0]:"frobenius",S=0;if(P==="max")return this.max();if(P==="frobenius"){for(var C=0;C0&&arguments[0]!==void 0?arguments[0]:{};if(typeof P!="object")throw new TypeError("options must be an object");var S=P.min,C=S===void 0?0:S,V=P.max,de=V===void 0?1:V;if(!Number.isFinite(C))throw new TypeError("min must be a number");if(!Number.isFinite(de))throw new TypeError("max must be a number");if(C>=de)throw new RangeError("min must be smaller than max");for(var Se=new Zt(this.rows,this.columns),xe=0;xe0&&g(Le,{min:C,max:de,output:Le}),Se.setRow(xe,Le)}return Se}},{key:"scaleColumns",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(typeof P!="object")throw new TypeError("options must be an object");var S=P.min,C=S===void 0?0:S,V=P.max,de=V===void 0?1:V;if(!Number.isFinite(C))throw new TypeError("min must be a number");if(!Number.isFinite(de))throw new TypeError("max must be a number");if(C>=de)throw new RangeError("min must be smaller than max");for(var Se=new Zt(this.rows,this.columns),xe=0;xe0&&arguments[0]!==void 0?arguments[0]:sr,S=0;S0&&arguments[0]!==void 0?arguments[0]:sr,S=0;SC||S<0||S>=this.columns||C<0||C>=this.columns)throw new RangeError("Argument out of range");for(var V=new Zt(P.length,C-S+1),de=0;de=this.rows)throw new RangeError("Row index out of range: ".concat(P[de]));V.set(de,Se-S,this.get(P[de],Se))}return V}},{key:"subMatrixColumn",value:function(P,S,C){if(S===void 0&&(S=0),C===void 0&&(C=this.rows-1),S>C||S<0||S>=this.rows||C<0||C>=this.rows)throw new RangeError("Argument out of range");for(var V=new Zt(C-S+1,P.length),de=0;de=this.columns)throw new RangeError("Column index out of range: ".concat(P[de]));V.set(Se-S,de,this.get(Se,P[de]))}return V}},{key:"setSubMatrix",value:function(P,S,C){if(P=Zt.checkMatrix(P),P.isEmpty())return this;var V=S+P.rows-1,de=C+P.columns-1;Q(this,S,V,C,de);for(var Se=0;Se1&&arguments[1]!==void 0?arguments[1]:{};if(typeof P=="object"&&(S=P,P=void 0),typeof S!="object")throw new TypeError("options must be an object");var C=S,V=C.unbiased,de=V===void 0?!0:V,Se=C.mean,xe=Se===void 0?this.mean(P):Se;if(typeof de!="boolean")throw new TypeError("unbiased must be a boolean");switch(P){case"row":{if(!p(xe))throw new TypeError("mean must be an array");return Ge(this,de,xe)}case"column":{if(!p(xe))throw new TypeError("mean must be an array");return tt(this,de,xe)}case void 0:{if(typeof xe!="number")throw new TypeError("mean must be a number");return St(this,de,xe)}default:throw new Error("invalid option: ".concat(P))}}},{key:"standardDeviation",value:function(P,S){typeof P=="object"&&(S=P,P=void 0);var C=this.variance(P,S);if(P===void 0)return Math.sqrt(C);for(var V=0;V1&&arguments[1]!==void 0?arguments[1]:{};if(typeof P=="object"&&(S=P,P=void 0),typeof S!="object")throw new TypeError("options must be an object");var C=S,V=C.center,de=V===void 0?this.mean(P):V;switch(P){case"row":{if(!p(de))throw new TypeError("center must be an array");return at(this,de),this}case"column":{if(!p(de))throw new TypeError("center must be an array");return Mt(this,de),this}case void 0:{if(typeof de!="number")throw new TypeError("center must be a number");return Wt(this,de),this}default:throw new Error("invalid option: ".concat(P))}}},{key:"scale",value:function(P){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(typeof P=="object"&&(S=P,P=void 0),typeof S!="object")throw new TypeError("options must be an object");var C=S.scale;switch(P){case"row":{if(C===void 0)C=er(this);else if(!p(C))throw new TypeError("scale must be an array");return it(this,C),this}case"column":{if(C===void 0)C=yt(this);else if(!p(C))throw new TypeError("scale must be an array");return bt(this,C),this}case void 0:{if(C===void 0)C=Ft(this);else if(typeof C!="number")throw new TypeError("scale must be a number");return wt(this,C),this}default:throw new Error("invalid option: ".concat(P))}}},{key:"toString",value:function(P){return x(this,P)}}],[{key:"from1DArray",value:function(P,S,C){var V=P*S;if(V!==C.length)throw new RangeError("data length does not match given dimensions");for(var de=new Zt(P,S),Se=0;Se2&&arguments[2]!==void 0?arguments[2]:{};if(typeof C!="object")throw new TypeError("options must be an object");for(var V=C.random,de=V===void 0?Math.random:V,Se=new Zt(P,S),xe=0;xe2&&arguments[2]!==void 0?arguments[2]:{};if(typeof C!="object")throw new TypeError("options must be an object");var V=C.min,de=V===void 0?0:V,Se=C.max,xe=Se===void 0?1e3:Se,Le=C.random,ht=Le===void 0?Math.random:Le;if(!Number.isInteger(de))throw new TypeError("min must be an integer");if(!Number.isInteger(xe))throw new TypeError("max must be an integer");if(de>=xe)throw new RangeError("min must be smaller than max");for(var ot=xe-de,At=new Zt(P,S),$t=0;$t=0)if(V.data=[],Number.isInteger(C)&&C>=0)for(var de=0;de1&&arguments[1]!==void 0?arguments[1]:{};(0,O.Z)(this,P);var de=V.rows,Se=de===void 0?1:de;if(S.length%Se!=0)throw new Error("the data length is not divisible by the number of rows");return C=ae.call(this),C.rows=Se,C.columns=S.length/Se,C.data=S,C}return(0,N.Z)(P,[{key:"set",value:function(C,V,de){var Se=this._calculateIndex(C,V);return this.data[Se]=de,this}},{key:"get",value:function(C,V){var de=this._calculateIndex(C,V);return this.data[de]}},{key:"_calculateIndex",value:function(C,V){return C*this.columns+V}}]),P}(pt),nn=function(ne){(0,W.Z)(P,ne);var ae=(0,k.Z)(P);function P(S){var C;return(0,O.Z)(this,P),C=ae.call(this),C.data=S,C.rows=S.length,C.columns=S[0].length,C}return(0,N.Z)(P,[{key:"set",value:function(C,V,de){return this.data[C][V]=de,this}},{key:"get",value:function(C,V){return this.data[C][V]}}]),P}(pt);function $r(ne,ae){if(p(ne))return ne[0]&&p(ne[0])?new nn(ne):new Fr(ne,ae);throw new Error("the argument is not an array")}var Wr=function(){function ne(ae){(0,O.Z)(this,ne),ae=nn.checkMatrix(ae);var P=ae.clone(),S=P.rows,C=P.columns,V=new Float64Array(S),de=1,Se,xe,Le,ht,ot,At,$t,Yt,kr;for(Se=0;SeMath.abs(Yt[ht])&&(ht=Se);if(ht!==xe){for(Le=0;Le=0;ht--){for(Le=0;LeSe?V.set(de,Se,P.get(de,Se)):de===Se?V.set(de,Se,1):V.set(de,Se,0);return V}},{key:"upperTriangularMatrix",get:function(){for(var P=this.LU,S=P.rows,C=P.columns,V=new Zt(S,C),de=0;deMath.abs(ae)?(P=ae/ne,Math.abs(ne)*Math.sqrt(1+P*P)):ae!==0?(P=ne/ae,Math.abs(ae)*Math.sqrt(1+P*P)):0}var _r=function(){function ne(ae){(0,O.Z)(this,ne),ae=nn.checkMatrix(ae);var P=ae.clone(),S=ae.rows,C=ae.columns,V=new Float64Array(C),de,Se,xe,Le;for(xe=0;xe=0;ht--){for(Le=0;Le=0;xe--){for(de=0;de1&&arguments[1]!==void 0?arguments[1]:{};if((0,O.Z)(this,ne),ae=nn.checkMatrix(ae),ae.isEmpty())throw new Error("Matrix must be non-empty");var S=ae.rows,C=ae.columns,V=P.computeLeftSingularVectors,de=V===void 0?!0:V,Se=P.computeRightSingularVectors,xe=Se===void 0?!0:Se,Le=P.autoTranspose,ht=Le===void 0?!1:Le,ot=Boolean(de),At=Boolean(xe),$t=!1,Yt;if(S=0;wa--)if(Qt[wa]!==0){for(var So=wa+1;So=0;yi--){if(yi0;){var wn=void 0,Bo=void 0;for(wn=ya-2;wn>=-1&&wn!==-1;wn--){var Fo=Number.MIN_VALUE+Zi*Math.abs(Qt[wn]+Math.abs(Qt[wn+1]));if(Math.abs(Pr[wn])<=Fo||Number.isNaN(Pr[wn])){Pr[wn]=0;break}}if(wn===ya-2)Bo=4;else{var Va=void 0;for(Va=ya-1;Va>=wn&&Va!==wn;Va--){var _s=(Va!==ya?Math.abs(Pr[Va]):0)+(Va!==wn+1?Math.abs(Pr[Va-1]):0);if(Math.abs(Qt[Va])<=Zi*_s){Qt[Va]=0;break}}Va===wn?Bo=3:Va===ya-1?Bo=1:(Bo=2,wn=Va)}switch(wn++,Bo){case 1:{var Ko=Pr[ya-2];Pr[ya-2]=0;for(var Oi=ya-2;Oi>=wn;Oi--){var Mo=tn(Qt[Oi],Ko),ho=Qt[Oi]/Mo,Ri=Ko/Mo;if(Qt[Oi]=Mo,Oi!==wn&&(Ko=-Ri*Pr[Oi-1],Pr[Oi-1]=ho*Pr[Oi-1]),At)for(var Ai=0;Ai=Qt[wn+1]);){var po=Qt[wn];if(Qt[wn]=Qt[wn+1],Qt[wn+1]=po,At&&wnS&&de.set(Se,xe,P.get(Se,xe)/this.s[xe]);for(var Le=this.U,ht=Le.rows,ot=Le.columns,At=new Zt(C,ht),$t=0;$tP&&S++;return S}},{key:"diagonal",get:function(){return Array.from(this.s)}},{key:"threshold",get:function(){return Number.EPSILON/2*Math.max(this.m,this.n)*this.s[0]}},{key:"leftSingularVectors",get:function(){return this.U}},{key:"rightSingularVectors",get:function(){return this.V}},{key:"diagonalMatrix",get:function(){return Zt.diag(this.s)}}]),ne}();function Rr(ne){var ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return ne=nn.checkMatrix(ne),ae?new pr(ne).inverse():sn(ne,Zt.eye(ne.rows))}function sn(ne,ae){var P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return ne=nn.checkMatrix(ne),ae=nn.checkMatrix(ae),P?new pr(ne).solve(ae):ne.isSquare()?new Wr(ne).solve(ae):new _r(ne).solve(ae)}function gn(ne){if(ne=Zt.checkMatrix(ne),ne.isSquare()){if(ne.columns===0)return 1;var ae,P,S,C;if(ne.columns===2)return ae=ne.get(0,0),P=ne.get(0,1),S=ne.get(1,0),C=ne.get(1,1),ae*C-P*S;if(ne.columns===3){var V,de,Se;return V=new zt(ne,[1,2],[1,2]),de=new zt(ne,[1,2],[0,2]),Se=new zt(ne,[1,2],[0,1]),ae=ne.get(0,0),P=ne.get(0,1),S=ne.get(0,2),ae*gn(V)-P*gn(de)+S*gn(Se)}else return new Wr(ne).determinant}else throw Error("determinant can only be calculated for a square matrix")}function yn(ne,ae){for(var P=[],S=0;S3&&arguments[3]!==void 0?arguments[3]:1e-9,C=arguments.length>4&&arguments[4]!==void 0?arguments[4]:1e-9;if(ne>C)return new Array(ae.rows+1).fill(0);for(var V=ae.addRow(P,[0]),de=0;de1&&arguments[1]!==void 0?arguments[1]:{},P=ae.thresholdValue,S=P===void 0?1e-9:P,C=ae.thresholdError,V=C===void 0?1e-9:C;ne=Zt.checkMatrix(ne);for(var de=ne.rows,Se=new Zt(de,de),xe=0;xe1&&arguments[1]!==void 0?arguments[1]:Number.EPSILON;if(ne=Zt.checkMatrix(ne),ne.isEmpty())return ne.transpose();for(var P=new pr(ne,{autoTranspose:!0}),S=P.leftSingularVectors,C=P.rightSingularVectors,V=P.diagonal,de=0;deae?V[de]=1/V[de]:V[de]=0;return C.mmul(Zt.diag(V).mmul(S.transpose()))}function Vn(ne){var ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ne,P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};ne=new Zt(ne);var S=!1;if(typeof ae=="object"&&!Zt.isMatrix(ae)&&!p(ae)?(P=ae,ae=ne,S=!0):ae=new Zt(ae),ne.rows!==ae.rows)throw new TypeError("Both matrices must have the same number of rows");var C=P,V=C.center,de=V===void 0?!0:V;de&&(ne=ne.center("column"),S||(ae=ae.center("column")));for(var Se=ne.transpose().mmul(ae),xe=0;xe1&&arguments[1]!==void 0?arguments[1]:ne,P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};ne=new Zt(ne);var S=!1;if(typeof ae=="object"&&!Zt.isMatrix(ae)&&!p(ae)?(P=ae,ae=ne,S=!0):ae=new Zt(ae),ne.rows!==ae.rows)throw new TypeError("Both matrices must have the same number of rows");var C=P,V=C.center,de=V===void 0?!0:V,Se=C.scale,xe=Se===void 0?!0:Se;de&&(ne.center("column"),S||ae.center("column")),xe&&(ne.scale("column"),S||ae.scale("column"));for(var Le=ne.standardDeviation("column",{unbiased:!0}),ht=S?Le:ae.standardDeviation("column",{unbiased:!0}),ot=ne.transpose().mmul(ae),At=0;At1&&arguments[1]!==void 0?arguments[1]:{};(0,O.Z)(this,ne);var S=P.assumeSymmetric,C=S===void 0?!1:S;if(ae=nn.checkMatrix(ae),!ae.isSquare())throw new Error("Matrix is not a square matrix");if(ae.isEmpty())throw new Error("Matrix must be non-empty");var V=ae.columns,de=new Zt(V,V),Se=new Float64Array(V),xe=new Float64Array(V),Le=ae,ht,ot,At=!1;if(C?At=!0:At=ae.isSymmetric(),At){for(ht=0;ht0?V.set(de,de+1,S[de]):S[de]<0&&V.set(de,de-1,S[de])}return V}}]),ne}();function kn(ne,ae,P,S){var C,V,de,Se,xe,Le,ht,ot;for(xe=0;xe0;Se--){for(ot=0,de=0,Le=0;Le0&&(V=-V),ae[Se]=ot*V,de=de-C*V,P[Se-1]=C-V,xe=0;xeLe){en=0;do{for(en=en+1,C=P[Le],ot=(P[Le+1]-C)/(2*ae[Le]),At=tn(ot,1),ot<0&&(At=-At),P[Le]=ae[Le]/(ot+At),P[Le+1]=ae[Le]*(ot+At),$t=P[Le+1],V=C-P[Le],de=Le+2;de=Le;de--)for(vn=kr,kr=Yt,mr=Qt,C=Yt*ae[de],V=Yt*ot,At=tn(ot,ae[de]),ae[de+1]=Qt*At,Qt=ae[de]/At,Yt=ot/At,ot=Yt*P[de]-Qt*C,P[de+1]=V+Qt*(Yt*C+Qt*P[de]),xe=0;xeLn*Qn)}P[Le]=P[Le]+Pr,ae[Le]=0}for(de=0;de=ot;Le--)P[Le]=ae.get(Le,ot-1)/At,xe+=P[Le]*P[Le];for(Se=Math.sqrt(xe),P[ot]>0&&(Se=-Se),xe=xe-P[ot]*Se,P[ot]=P[ot]-Se,ht=ot;ht=ot;Le--)de+=P[Le]*ae.get(Le,ht);for(de=de/xe,Le=ot;Le<=V;Le++)ae.set(Le,ht,ae.get(Le,ht)-de*P[Le])}for(Le=0;Le<=V;Le++){for(de=0,ht=V;ht>=ot;ht--)de+=P[ht]*ae.get(Le,ht);for(de=de/xe,ht=ot;ht<=V;ht++)ae.set(Le,ht,ae.get(Le,ht)-de*P[ht])}P[ot]=At*P[ot],ae.set(ot,ot-1,At*Se)}}for(Le=0;Le=C+1;ot--)if(ae.get(ot,ot-1)!==0){for(Le=ot+1;Le<=V;Le++)P[Le]=ae.get(Le,ot-1);for(ht=ot;ht<=V;ht++){for(Se=0,Le=ot;Le<=V;Le++)Se+=P[Le]*S.get(Le,ht);for(Se=Se/P[ot]/ae.get(ot,ot-1),Le=ot;Le<=V;Le++)S.set(Le,ht,S.get(Le,ht)+Se*P[Le])}}}function xa(ne,ae,P,S,C){var V=ne-1,de=0,Se=ne-1,xe=Number.EPSILON,Le=0,ht=0,ot=0,At=0,$t=0,Yt=0,kr=0,vn=0,Ct,Qt,mr,en,Pr,Qn,Ln,En,Dn,jn,bn,We,Te,Xe,st;for(Ct=0;CtSe)&&(P[Ct]=C.get(Ct,Ct),ae[Ct]=0),Qt=Math.max(Ct-1,0);Qt=de;){for(en=V;en>de&&(Yt=Math.abs(C.get(en-1,en-1))+Math.abs(C.get(en,en)),Yt===0&&(Yt=ht),!(Math.abs(C.get(en,en-1))=0){for(kr=ot>=0?ot+kr:ot-kr,P[V-1]=En+kr,P[V]=P[V-1],kr!==0&&(P[V]=En-Ln/kr),ae[V-1]=0,ae[V]=0,En=C.get(V,V-1),Yt=Math.abs(En)+Math.abs(kr),ot=En/Yt,At=kr/Yt,$t=Math.sqrt(ot*ot+At*At),ot=ot/$t,At=At/$t,Qt=V-1;Qt0)){for(Yt=Math.sqrt(Yt),Dn=en&&(kr=C.get(Pr,Pr),$t=En-kr,Yt=Dn-kr,ot=($t*Yt-Ln)/C.get(Pr+1,Pr)+C.get(Pr,Pr+1),At=C.get(Pr+1,Pr+1)-kr-$t-Yt,$t=C.get(Pr+2,Pr+1),Yt=Math.abs(ot)+Math.abs(At)+Math.abs($t),ot=ot/Yt,At=At/Yt,$t=$t/Yt,!(Pr===en||Math.abs(C.get(Pr,Pr-1))*(Math.abs(At)+Math.abs($t))Pr+2&&C.set(Ct,Ct-3,0);for(mr=Pr;mr<=V-1&&(Xe=mr!==V-1,mr!==Pr&&(ot=C.get(mr,mr-1),At=C.get(mr+1,mr-1),$t=Xe?C.get(mr+2,mr-1):0,En=Math.abs(ot)+Math.abs(At)+Math.abs($t),En!==0&&(ot=ot/En,At=At/En,$t=$t/En)),En!==0);mr++)if(Yt=Math.sqrt(ot*ot+At*At+$t*$t),ot<0&&(Yt=-Yt),Yt!==0){for(mr!==Pr?C.set(mr,mr-1,-Yt*En):en!==Pr&&C.set(mr,mr-1,-C.get(mr,mr-1)),ot=ot+Yt,En=ot/Yt,Dn=At/Yt,kr=$t/Yt,At=At/ot,$t=$t/ot,Qt=mr;Qt=0;V--)if(ot=P[V],At=ae[V],At===0)for(en=V,C.set(V,V,1),Ct=V-1;Ct>=0;Ct--){for(Ln=C.get(Ct,Ct)-ot,$t=0,Qt=en;Qt<=V;Qt++)$t=$t+C.get(Ct,Qt)*C.get(Qt,V);if(ae[Ct]<0)kr=Ln,Yt=$t;else if(en=Ct,ae[Ct]===0?C.set(Ct,V,Ln!==0?-$t/Ln:-$t/(xe*ht)):(En=C.get(Ct,Ct+1),Dn=C.get(Ct+1,Ct),At=(P[Ct]-ot)*(P[Ct]-ot)+ae[Ct]*ae[Ct],Qn=(En*Yt-kr*$t)/At,C.set(Ct,V,Qn),C.set(Ct+1,V,Math.abs(En)>Math.abs(kr)?(-$t-Ln*Qn)/En:(-Yt-Dn*Qn)/kr)),Qn=Math.abs(C.get(Ct,V)),xe*Qn*Qn>1)for(Qt=Ct;Qt<=V;Qt++)C.set(Qt,V,C.get(Qt,V)/Qn)}else if(At<0)for(en=V-1,Math.abs(C.get(V,V-1))>Math.abs(C.get(V-1,V))?(C.set(V-1,V-1,At/C.get(V,V-1)),C.set(V-1,V,-(C.get(V,V)-ot)/C.get(V,V-1))):(st=Z(0,-C.get(V-1,V),C.get(V-1,V-1)-ot,At),C.set(V-1,V-1,st[0]),C.set(V-1,V,st[1])),C.set(V,V-1,0),C.set(V,V,1),Ct=V-2;Ct>=0;Ct--){for(jn=0,bn=0,Qt=en;Qt<=V;Qt++)jn=jn+C.get(Ct,Qt)*C.get(Qt,V-1),bn=bn+C.get(Ct,Qt)*C.get(Qt,V);if(Ln=C.get(Ct,Ct)-ot,ae[Ct]<0)kr=Ln,$t=jn,Yt=bn;else if(en=Ct,ae[Ct]===0?(st=Z(-jn,-bn,Ln,At),C.set(Ct,V-1,st[0]),C.set(Ct,V,st[1])):(En=C.get(Ct,Ct+1),Dn=C.get(Ct+1,Ct),We=(P[Ct]-ot)*(P[Ct]-ot)+ae[Ct]*ae[Ct]-At*At,Te=(P[Ct]-ot)*2*At,We===0&&Te===0&&(We=xe*ht*(Math.abs(Ln)+Math.abs(At)+Math.abs(En)+Math.abs(Dn)+Math.abs(kr))),st=Z(En*$t-kr*jn+At*bn,En*Yt-kr*bn-At*jn,We,Te),C.set(Ct,V-1,st[0]),C.set(Ct,V,st[1]),Math.abs(En)>Math.abs(kr)+Math.abs(At)?(C.set(Ct+1,V-1,(-jn-Ln*C.get(Ct,V-1)+At*C.get(Ct,V))/En),C.set(Ct+1,V,(-bn-Ln*C.get(Ct,V)-At*C.get(Ct,V-1))/En)):(st=Z(-$t-Dn*C.get(Ct,V-1),-Yt-Dn*C.get(Ct,V),kr,At),C.set(Ct+1,V-1,st[0]),C.set(Ct+1,V,st[1]))),Qn=Math.max(Math.abs(C.get(Ct,V-1)),Math.abs(C.get(Ct,V))),xe*Qn*Qn>1)for(Qt=Ct;Qt<=V;Qt++)C.set(Qt,V-1,C.get(Qt,V-1)/Qn),C.set(Qt,V,C.get(Qt,V)/Qn)}for(Ct=0;CtSe)for(Qt=Ct;Qt=de;Qt--)for(Ct=de;Ct<=Se;Ct++){for(kr=0,mr=de;mr<=Math.min(Qt,Se);mr++)kr=kr+S.get(Ct,mr)*C.get(mr,Qt);S.set(Ct,Qt,kr)}}}function Z(ne,ae,P,S){var C,V;return Math.abs(P)>Math.abs(S)?(C=S/P,V=P+C*S,[(ne+C*ae)/V,(ae-C*ne)/V]):(C=P/S,V=S+C*P,[(C*ne+ae)/V,(C*ae-ne)/V])}var Ot=function(){function ne(ae){if((0,O.Z)(this,ne),ae=nn.checkMatrix(ae),!ae.isSymmetric())throw new Error("Matrix is not symmetric");var P=ae,S=P.rows,C=new Zt(S,S),V=!0,de,Se,xe;for(Se=0;Se0,C.set(Se,Se,Math.sqrt(Math.max(Le,0))),xe=Se+1;xe=0;Le--)for(xe=0;xe1&&arguments[1]!==void 0?arguments[1]:{};(0,O.Z)(this,ne),ae=nn.checkMatrix(ae);var S=P.Y,C=P.scaleScores,V=C===void 0?!1:C,de=P.maxIterations,Se=de===void 0?1e3:de,xe=P.terminationCriteria,Le=xe===void 0?1e-10:xe,ht;if(S){if(p(S)&&typeof S[0]=="number"?S=Zt.columnVector(S):S=nn.checkMatrix(S),S.rows!==ae.rows)throw new Error("Y should have the same number of rows as X");ht=S.getColumnVector(0)}else ht=ae.getColumnVector(0);for(var ot=1,At,$t,Yt,kr,vn=0;vnLe;vn++)Yt=ae.transpose().mmul(ht).div(ht.transpose().mmul(ht).get(0,0)),Yt=Yt.div(Yt.norm()),At=ae.mmul(Yt).div(Yt.transpose().mmul(Yt).get(0,0)),vn>0&&(ot=At.clone().sub(kr).pow(2).sum()),kr=At.clone(),S?($t=S.transpose().mmul(At).div(At.transpose().mmul(At).get(0,0)),$t=$t.div($t.norm()),ht=S.mmul($t).div($t.transpose().mmul($t).get(0,0))):ht=At;if(S){var Ct=ae.transpose().mmul(At).div(At.transpose().mmul(At).get(0,0));Ct=Ct.div(Ct.norm());var Qt=ae.clone().sub(At.clone().mmul(Ct.transpose())),mr=ht.transpose().mmul(At).div(At.transpose().mmul(At).get(0,0)),en=S.clone().sub(At.clone().mulS(mr.get(0,0)).mmul($t.transpose()));this.t=At,this.p=Ct.transpose(),this.w=Yt.transpose(),this.q=$t,this.u=ht,this.s=At.transpose().mmul(At),this.xResidual=Qt,this.yResidual=en,this.betas=mr}else this.w=Yt.transpose(),this.s=At.transpose().mmul(At).sqrt(),V?this.t=At.clone().div(this.s.get(0,0)):this.t=At,this.xResidual=ae.sub(At.mmul(Yt.transpose()))})},48168:function(or,U,G){var B=G(39092),W={};for(var k in B)B.hasOwnProperty(k)&&(W[B[k]]=k);var O=or.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var N in O)if(O.hasOwnProperty(N)){if(!("channels"in O[N]))throw new Error("missing channels property: "+N);if(!("labels"in O[N]))throw new Error("missing channel labels property: "+N);if(O[N].labels.length!==O[N].channels)throw new Error("channel and label counts mismatch: "+N);var L=O[N].channels,p=O[N].labels;delete O[N].channels,delete O[N].labels,Object.defineProperty(O[N],"channels",{value:L}),Object.defineProperty(O[N],"labels",{value:p})}O.rgb.hsl=function(v){var g=v[0]/255,d=v[1]/255,M=v[2]/255,m=Math.min(g,d,M),x=Math.max(g,d,M),T=x-m,R,w,b;return x===m?R=0:g===x?R=(d-M)/T:d===x?R=2+(M-g)/T:M===x&&(R=4+(g-d)/T),R=Math.min(R*60,360),R<0&&(R+=360),b=(m+x)/2,x===m?w=0:b<=.5?w=T/(x+m):w=T/(2-x-m),[R,w*100,b*100]},O.rgb.hsv=function(v){var g,d,M,m,x,T=v[0]/255,R=v[1]/255,w=v[2]/255,b=Math.max(T,R,w),$=b-Math.min(T,R,w),j=function(X){return(b-X)/6/$+1/2};return $===0?m=x=0:(x=$/b,g=j(T),d=j(R),M=j(w),T===b?m=M-d:R===b?m=1/3+g-M:w===b&&(m=2/3+d-g),m<0?m+=1:m>1&&(m-=1)),[m*360,x*100,b*100]},O.rgb.hwb=function(v){var g=v[0],d=v[1],M=v[2],m=O.rgb.hsl(v)[0],x=1/255*Math.min(g,Math.min(d,M));return M=1-1/255*Math.max(g,Math.max(d,M)),[m,x*100,M*100]},O.rgb.cmyk=function(v){var g=v[0]/255,d=v[1]/255,M=v[2]/255,m,x,T,R;return R=Math.min(1-g,1-d,1-M),m=(1-g-R)/(1-R)||0,x=(1-d-R)/(1-R)||0,T=(1-M-R)/(1-R)||0,[m*100,x*100,T*100,R*100]};function E(v,g){return Math.pow(v[0]-g[0],2)+Math.pow(v[1]-g[1],2)+Math.pow(v[2]-g[2],2)}O.rgb.keyword=function(v){var g=W[v];if(g)return g;var d=Infinity,M;for(var m in B)if(B.hasOwnProperty(m)){var x=B[m],T=E(v,x);T.04045?Math.pow((g+.055)/1.055,2.4):g/12.92,d=d>.04045?Math.pow((d+.055)/1.055,2.4):d/12.92,M=M>.04045?Math.pow((M+.055)/1.055,2.4):M/12.92;var m=g*.4124+d*.3576+M*.1805,x=g*.2126+d*.7152+M*.0722,T=g*.0193+d*.1192+M*.9505;return[m*100,x*100,T*100]},O.rgb.lab=function(v){var g=O.rgb.xyz(v),d=g[0],M=g[1],m=g[2],x,T,R;return d/=95.047,M/=100,m/=108.883,d=d>.008856?Math.pow(d,1/3):7.787*d+16/116,M=M>.008856?Math.pow(M,1/3):7.787*M+16/116,m=m>.008856?Math.pow(m,1/3):7.787*m+16/116,x=116*M-16,T=500*(d-M),R=200*(M-m),[x,T,R]},O.hsl.rgb=function(v){var g=v[0]/360,d=v[1]/100,M=v[2]/100,m,x,T,R,w;if(d===0)return w=M*255,[w,w,w];M<.5?x=M*(1+d):x=M+d-M*d,m=2*M-x,R=[0,0,0];for(var b=0;b<3;b++)T=g+1/3*-(b-1),T<0&&T++,T>1&&T--,6*T<1?w=m+(x-m)*6*T:2*T<1?w=x:3*T<2?w=m+(x-m)*(2/3-T)*6:w=m,R[b]=w*255;return R},O.hsl.hsv=function(v){var g=v[0],d=v[1]/100,M=v[2]/100,m=d,x=Math.max(M,.01),T,R;return M*=2,d*=M<=1?M:2-M,m*=x<=1?x:2-x,R=(M+d)/2,T=M===0?2*m/(x+m):2*d/(M+d),[g,T*100,R*100]},O.hsv.rgb=function(v){var g=v[0]/60,d=v[1]/100,M=v[2]/100,m=Math.floor(g)%6,x=g-Math.floor(g),T=255*M*(1-d),R=255*M*(1-d*x),w=255*M*(1-d*(1-x));switch(M*=255,m){case 0:return[M,w,T];case 1:return[R,M,T];case 2:return[T,M,w];case 3:return[T,R,M];case 4:return[w,T,M];case 5:return[M,T,R]}},O.hsv.hsl=function(v){var g=v[0],d=v[1]/100,M=v[2]/100,m=Math.max(M,.01),x,T,R;return R=(2-d)*M,x=(2-d)*m,T=d*m,T/=x<=1?x:2-x,T=T||0,R/=2,[g,T*100,R*100]},O.hwb.rgb=function(v){var g=v[0]/360,d=v[1]/100,M=v[2]/100,m=d+M,x,T,R,w;m>1&&(d/=m,M/=m),x=Math.floor(6*g),T=1-M,R=6*g-x,(x&1)!=0&&(R=1-R),w=d+R*(T-d);var b,$,j;switch(x){default:case 6:case 0:b=T,$=w,j=d;break;case 1:b=w,$=T,j=d;break;case 2:b=d,$=T,j=w;break;case 3:b=d,$=w,j=T;break;case 4:b=w,$=d,j=T;break;case 5:b=T,$=d,j=w;break}return[b*255,$*255,j*255]},O.cmyk.rgb=function(v){var g=v[0]/100,d=v[1]/100,M=v[2]/100,m=v[3]/100,x,T,R;return x=1-Math.min(1,g*(1-m)+m),T=1-Math.min(1,d*(1-m)+m),R=1-Math.min(1,M*(1-m)+m),[x*255,T*255,R*255]},O.xyz.rgb=function(v){var g=v[0]/100,d=v[1]/100,M=v[2]/100,m,x,T;return m=g*3.2406+d*-1.5372+M*-.4986,x=g*-.9689+d*1.8758+M*.0415,T=g*.0557+d*-.204+M*1.057,m=m>.0031308?1.055*Math.pow(m,1/2.4)-.055:m*12.92,x=x>.0031308?1.055*Math.pow(x,1/2.4)-.055:x*12.92,T=T>.0031308?1.055*Math.pow(T,1/2.4)-.055:T*12.92,m=Math.min(Math.max(0,m),1),x=Math.min(Math.max(0,x),1),T=Math.min(Math.max(0,T),1),[m*255,x*255,T*255]},O.xyz.lab=function(v){var g=v[0],d=v[1],M=v[2],m,x,T;return g/=95.047,d/=100,M/=108.883,g=g>.008856?Math.pow(g,1/3):7.787*g+16/116,d=d>.008856?Math.pow(d,1/3):7.787*d+16/116,M=M>.008856?Math.pow(M,1/3):7.787*M+16/116,m=116*d-16,x=500*(g-d),T=200*(d-M),[m,x,T]},O.lab.xyz=function(v){var g=v[0],d=v[1],M=v[2],m,x,T;x=(g+16)/116,m=d/500+x,T=x-M/200;var R=Math.pow(x,3),w=Math.pow(m,3),b=Math.pow(T,3);return x=R>.008856?R:(x-16/116)/7.787,m=w>.008856?w:(m-16/116)/7.787,T=b>.008856?b:(T-16/116)/7.787,m*=95.047,x*=100,T*=108.883,[m,x,T]},O.lab.lch=function(v){var g=v[0],d=v[1],M=v[2],m,x,T;return m=Math.atan2(M,d),x=m*360/2/Math.PI,x<0&&(x+=360),T=Math.sqrt(d*d+M*M),[g,T,x]},O.lch.lab=function(v){var g=v[0],d=v[1],M=v[2],m,x,T;return T=M/360*2*Math.PI,m=d*Math.cos(T),x=d*Math.sin(T),[g,m,x]},O.rgb.ansi16=function(v){var g=v[0],d=v[1],M=v[2],m=1 in arguments?arguments[1]:O.rgb.hsv(v)[2];if(m=Math.round(m/50),m===0)return 30;var x=30+(Math.round(M/255)<<2|Math.round(d/255)<<1|Math.round(g/255));return m===2&&(x+=60),x},O.hsv.ansi16=function(v){return O.rgb.ansi16(O.hsv.rgb(v),v[2])},O.rgb.ansi256=function(v){var g=v[0],d=v[1],M=v[2];if(g===d&&d===M)return g<8?16:g>248?231:Math.round((g-8)/247*24)+232;var m=16+36*Math.round(g/255*5)+6*Math.round(d/255*5)+Math.round(M/255*5);return m},O.ansi16.rgb=function(v){var g=v%10;if(g===0||g===7)return v>50&&(g+=3.5),g=g/10.5*255,[g,g,g];var d=(~~(v>50)+1)*.5,M=(g&1)*d*255,m=(g>>1&1)*d*255,x=(g>>2&1)*d*255;return[M,m,x]},O.ansi256.rgb=function(v){if(v>=232){var g=(v-232)*10+8;return[g,g,g]}v-=16;var d,M=Math.floor(v/36)/5*255,m=Math.floor((d=v%36)/6)/5*255,x=d%6/5*255;return[M,m,x]},O.rgb.hex=function(v){var g=((Math.round(v[0])&255)<<16)+((Math.round(v[1])&255)<<8)+(Math.round(v[2])&255),d=g.toString(16).toUpperCase();return"000000".substring(d.length)+d},O.hex.rgb=function(v){var g=v.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!g)return[0,0,0];var d=g[0];g[0].length===3&&(d=d.split("").map(function(R){return R+R}).join(""));var M=parseInt(d,16),m=M>>16&255,x=M>>8&255,T=M&255;return[m,x,T]},O.rgb.hcg=function(v){var g=v[0]/255,d=v[1]/255,M=v[2]/255,m=Math.max(Math.max(g,d),M),x=Math.min(Math.min(g,d),M),T=m-x,R,w;return T<1?R=x/(1-T):R=0,T<=0?w=0:m===g?w=(d-M)/T%6:m===d?w=2+(M-g)/T:w=4+(g-d)/T+4,w/=6,w%=1,[w*360,T*100,R*100]},O.hsl.hcg=function(v){var g=v[1]/100,d=v[2]/100,M=1,m=0;return d<.5?M=2*g*d:M=2*g*(1-d),M<1&&(m=(d-.5*M)/(1-M)),[v[0],M*100,m*100]},O.hsv.hcg=function(v){var g=v[1]/100,d=v[2]/100,M=g*d,m=0;return M<1&&(m=(d-M)/(1-M)),[v[0],M*100,m*100]},O.hcg.rgb=function(v){var g=v[0]/360,d=v[1]/100,M=v[2]/100;if(d===0)return[M*255,M*255,M*255];var m=[0,0,0],x=g%1*6,T=x%1,R=1-T,w=0;switch(Math.floor(x)){case 0:m[0]=1,m[1]=T,m[2]=0;break;case 1:m[0]=R,m[1]=1,m[2]=0;break;case 2:m[0]=0,m[1]=1,m[2]=T;break;case 3:m[0]=0,m[1]=R,m[2]=1;break;case 4:m[0]=T,m[1]=0,m[2]=1;break;default:m[0]=1,m[1]=0,m[2]=R}return w=(1-d)*M,[(d*m[0]+w)*255,(d*m[1]+w)*255,(d*m[2]+w)*255]},O.hcg.hsv=function(v){var g=v[1]/100,d=v[2]/100,M=g+d*(1-g),m=0;return M>0&&(m=g/M),[v[0],m*100,M*100]},O.hcg.hsl=function(v){var g=v[1]/100,d=v[2]/100,M=d*(1-g)+.5*g,m=0;return M>0&&M<.5?m=g/(2*M):M>=.5&&M<1&&(m=g/(2*(1-M))),[v[0],m*100,M*100]},O.hcg.hwb=function(v){var g=v[1]/100,d=v[2]/100,M=g+d*(1-g);return[v[0],(M-g)*100,(1-M)*100]},O.hwb.hcg=function(v){var g=v[1]/100,d=v[2]/100,M=1-d,m=M-g,x=0;return m<1&&(x=(M-m)/(1-m)),[v[0],m*100,x*100]},O.apple.rgb=function(v){return[v[0]/65535*255,v[1]/65535*255,v[2]/65535*255]},O.rgb.apple=function(v){return[v[0]/255*65535,v[1]/255*65535,v[2]/255*65535]},O.gray.rgb=function(v){return[v[0]/100*255,v[0]/100*255,v[0]/100*255]},O.gray.hsl=O.gray.hsv=function(v){return[0,0,v[0]]},O.gray.hwb=function(v){return[0,100,v[0]]},O.gray.cmyk=function(v){return[0,0,0,v[0]]},O.gray.lab=function(v){return[v[0],0,0]},O.gray.hex=function(v){var g=Math.round(v[0]/100*255)&255,d=(g<<16)+(g<<8)+g,M=d.toString(16).toUpperCase();return"000000".substring(M.length)+M},O.rgb.gray=function(v){var g=(v[0]+v[1]+v[2])/3;return[g/255*100]}},12085:function(or,U,G){var B=G(48168),W=G(4111),k={},O=Object.keys(B);function N(p){var E=function(v){return v==null?v:(arguments.length>1&&(v=Array.prototype.slice.call(arguments)),p(v))};return"conversion"in p&&(E.conversion=p.conversion),E}function L(p){var E=function(v){if(v==null)return v;arguments.length>1&&(v=Array.prototype.slice.call(arguments));var g=p(v);if(typeof g=="object")for(var d=g.length,M=0;M=4&&v[3]!==1&&(g=", "+v[3]),"hwb("+v[0]+", "+v[1]+"%, "+v[2]+"%"+g+")"},L.to.keyword=function(v){return O[v.slice(0,3)]};function p(v,g,d){return Math.min(Math.max(g,v),d)}function E(v){var g=Math.round(v).toString(16).toUpperCase();return g.length<2?"0"+g:g}},6767:function(or,U,G){"use strict";var B=G(19818),W=G(12085),k=[].slice,O=["keyword","gray","hex"],N={};Object.keys(W).forEach(function(x){N[k.call(W[x].labels).sort().join("")]=x});var L={};function p(x,T){if(!(this instanceof p))return new p(x,T);if(T&&T in O&&(T=null),T&&!(T in W))throw new Error("Unknown model: "+T);var R,w;if(x==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(x instanceof p)this.model=x.model,this.color=x.color.slice(),this.valpha=x.valpha;else if(typeof x=="string"){var b=B.get(x);if(b===null)throw new Error("Unable to parse color from string: "+x);this.model=b.model,w=W[this.model].channels,this.color=b.value.slice(0,w),this.valpha=typeof b.value[w]=="number"?b.value[w]:1}else if(x.length){this.model=T||"rgb",w=W[this.model].channels;var $=k.call(x,0,w);this.color=m($,w),this.valpha=typeof x[w]=="number"?x[w]:1}else if(typeof x=="number")x&=16777215,this.model="rgb",this.color=[x>>16&255,x>>8&255,x&255],this.valpha=1;else{this.valpha=1;var j=Object.keys(x);"alpha"in x&&(j.splice(j.indexOf("alpha"),1),this.valpha=typeof x.alpha=="number"?x.alpha:0);var X=j.sort().join("");if(!(X in N))throw new Error("Unable to parse color from object: "+JSON.stringify(x));this.model=N[X];var H=W[this.model].labels,J=[];for(R=0;RR?(T+.05)/(R+.05):(R+.05)/(T+.05)},level:function(x){var T=this.contrast(x);return T>=7.1?"AAA":T>=4.5?"AA":""},isDark:function(){var x=this.rgb().color,T=(x[0]*299+x[1]*587+x[2]*114)/1e3;return T<128},isLight:function(){return!this.isDark()},negate:function(){for(var x=this.rgb(),T=0;T<3;T++)x.color[T]=255-x.color[T];return x},lighten:function(x){var T=this.hsl();return T.color[2]+=T.color[2]*x,T},darken:function(x){var T=this.hsl();return T.color[2]-=T.color[2]*x,T},saturate:function(x){var T=this.hsl();return T.color[1]+=T.color[1]*x,T},desaturate:function(x){var T=this.hsl();return T.color[1]-=T.color[1]*x,T},whiten:function(x){var T=this.hwb();return T.color[1]+=T.color[1]*x,T},blacken:function(x){var T=this.hwb();return T.color[2]+=T.color[2]*x,T},grayscale:function(){var x=this.rgb().color,T=x[0]*.3+x[1]*.59+x[2]*.11;return p.rgb(T,T,T)},fade:function(x){return this.alpha(this.valpha-this.valpha*x)},opaquer:function(x){return this.alpha(this.valpha+this.valpha*x)},rotate:function(x){var T=this.hsl(),R=T.color[0];return R=(R+x)%360,R=R<0?360+R:R,T.color[0]=R,T},mix:function(x,T){if(!x||!x.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof x);var R=x.rgb(),w=this.rgb(),b=T===void 0?.5:T,$=2*b-1,j=R.alpha()-w.alpha(),X=(($*j==-1?$:($+j)/(1+$*j))+1)/2,H=1-X;return p.rgb(X*R.red()+H*w.red(),X*R.green()+H*w.green(),X*R.blue()+H*w.blue(),R.alpha()*b+w.alpha()*(1-b))}},Object.keys(W).forEach(function(x){if(O.indexOf(x)===-1){var T=W[x].channels;p.prototype[x]=function(){if(this.model===x)return new p(this);if(arguments.length)return new p(arguments,x);var R=typeof arguments[T]=="number"?T:this.valpha;return new p(M(W[this.model][x].raw(this.color)).concat(R),x)},p[x]=function(R){return typeof R=="number"&&(R=m(k.call(arguments),T)),new p(R,x)}}});function E(x,T){return Number(x.toFixed(T))}function v(x){return function(T){return E(T,x)}}function g(x,T,R){return x=Array.isArray(x)?x:[x],x.forEach(function(w){(L[w]||(L[w]=[]))[T]=R}),x=x[0],function(w){var b;return arguments.length?(R&&(w=R(w)),b=this[x](),b.color[T]=w,b):(b=this[x]().color[T],R&&(b=R(b)),b)}}function d(x){return function(T){return Math.max(0,Math.min(x,T))}}function M(x){return Array.isArray(x)?x:[x]}function m(x,T){for(var R=0;R=(De=(ge+ve)/2))?ge=De:ve=De,(Mt=Q>=(Ge=(be+_e)/2))?be=Ge:_e=Ge,fe=ye,!(ye=ye[Wt=Mt<<1|at]))return fe[Wt]=me,J;if(tt=+J._x.call(null,ye.data),St=+J._y.call(null,ye.data),q===tt&&Q===St)return me.next=ye,fe?fe[Wt]=me:J._root=me,J;do fe=fe?fe[Wt]=new Array(4):J._root=new Array(4),(at=q>=(De=(ge+ve)/2))?ge=De:ve=De,(Mt=Q>=(Ge=(be+_e)/2))?be=Ge:_e=Ge;while((Wt=Mt<<1|at)==(er=(St>=Ge)<<1|tt>=De));return fe[er]=ye,fe[Wt]=me,J}function k(J){var q,Q,te=J.length,fe,ye,me=new Array(te),ge=new Array(te),be=Infinity,ve=Infinity,_e=-Infinity,De=-Infinity;for(Q=0;Q_e&&(_e=fe),yeDe&&(De=ye));if(be>_e||ve>De)return this;for(this.cover(be,ve).cover(_e,De),Q=0;QJ||J>=fe||te>q||q>=ye;)switch(ve=(q_e||(ge=St.y0)>De||(be=St.x1)=Wt)<<1|J>=Mt)&&(St=Ge[Ge.length-1],Ge[Ge.length-1]=Ge[Ge.length-1-at],Ge[Ge.length-1-at]=St)}else{var er=J-+this._x.call(null,tt.data),it=q-+this._y.call(null,tt.data),yt=er*er+it*it;if(yt=(Ge=(me+be)/2))?me=Ge:be=Ge,(at=De>=(tt=(ge+ve)/2))?ge=tt:ve=tt,q=Q,!(Q=Q[Mt=at<<1|St]))return this;if(!Q.length)break;(q[Mt+1&3]||q[Mt+2&3]||q[Mt+3&3])&&(te=q,Wt=Mt)}for(;Q.data!==J;)if(fe=Q,!(Q=Q.next))return this;return(ye=Q.next)&&delete Q.next,fe?(ye?fe.next=ye:delete fe.next,this):q?(ye?q[Mt]=ye:delete q[Mt],(Q=q[0]||q[1]||q[2]||q[3])&&Q===(q[3]||q[2]||q[1]||q[0])&&!Q.length&&(te?te[Wt]=Q:this._root=Q),this):(this._root=ye,this)}function g(J){for(var q=0,Q=J.length;q-1},$=function(f,_){var F=this.__data__,Y=x(F,f);return Y<0?(++this.size,F.push([f,_])):F[Y][1]=_,this};function j(f){var _=-1,F=f==null?0:f.length;for(this.clear();++_-1&&f%1==0&&f<_},At=function(f){return typeof f=="number"&&f>-1&&f%1==0&&f<=9007199254740991},$t={};$t["[object Float32Array]"]=$t["[object Float64Array]"]=$t["[object Int8Array]"]=$t["[object Int16Array]"]=$t["[object Int32Array]"]=$t["[object Uint8Array]"]=$t["[object Uint8ClampedArray]"]=$t["[object Uint16Array]"]=$t["[object Uint32Array]"]=!0,$t["[object Arguments]"]=$t["[object Array]"]=$t["[object ArrayBuffer]"]=$t["[object Boolean]"]=$t["[object DataView]"]=$t["[object Date]"]=$t["[object Error]"]=$t["[object Function]"]=$t["[object Map]"]=$t["[object Number]"]=$t["[object Object]"]=$t["[object RegExp]"]=$t["[object Set]"]=$t["[object String]"]=$t["[object WeakMap]"]=!1;var Yt=function(f){return ae(f)&&At(f.length)&&!!$t[at(f)]},kr=function(f){return function(_){return f(_)}},vn=d(function(f,_){var F=_&&!_.nodeType&&_,Y=F&&f&&!f.nodeType&&f,re=Y&&Y.exports===F&&te.process,ie=function(){try{var le=Y&&Y.require&&Y.require("util").types;return le||re&&re.binding&&re.binding("util")}catch(pe){}}();f.exports=ie}),Ct=vn&&vn.isTypedArray,Qt=Ct?kr(Ct):Yt,mr=Object.prototype.hasOwnProperty,en=function(f,_){var F=Se(f),Y=!F&&de(f),re=!F&&!Y&&Le(f),ie=!F&&!Y&&!re&&Qt(f),le=F||Y||re||ie,pe=le?ne(f.length,String):[],we=pe.length;for(var Ae in f)!_&&!mr.call(f,Ae)||le&&(Ae=="length"||re&&(Ae=="offset"||Ae=="parent")||ie&&(Ae=="buffer"||Ae=="byteLength"||Ae=="byteOffset")||ot(Ae,we))||pe.push(Ae);return pe},Pr=Object.prototype,Qn=function(f){var _=f&&f.constructor;return f===(typeof _=="function"&&_.prototype||Pr)},Ln=function(f,_){return function(F){return f(_(F))}},En=Ln(Object.keys,Object),Dn=Object.prototype.hasOwnProperty,jn=function(f){if(!Qn(f))return En(f);var _=[];for(var F in Object(f))Dn.call(f,F)&&F!="constructor"&&_.push(F);return _},bn=function(f){return f!=null&&At(f.length)&&!er(f)},We=function(f){return bn(f)?en(f):jn(f)},Te=function(f,_){return f&&qe(_,We(_),f)},Xe=function(f){var _=[];if(f!=null)for(var F in Object(f))_.push(F);return _},st=Object.prototype.hasOwnProperty,nt=function(f){if(!Mt(f))return Xe(f);var _=Qn(f),F=[];for(var Y in f)(Y!="constructor"||!_&&st.call(f,Y))&&F.push(Y);return F},vt=function(f){return bn(f)?en(f,!0):nt(f)},Xt=function(f,_){return f&&qe(_,vt(_),f)},xr=d(function(f,_){var F=_&&!_.nodeType&&_,Y=F&&f&&!f.nodeType&&f,re=Y&&Y.exports===F?ye.Buffer:void 0,ie=re?re.allocUnsafe:void 0;f.exports=function(le,pe){if(pe)return le.slice();var we=le.length,Ae=ie?ie(we):new le.constructor(we);return le.copy(Ae),Ae}}),jr=function(f,_){var F=-1,Y=f.length;for(_||(_=Array(Y));++Fpe))return!1;var Ae=ie.get(f),ze=ie.get(_);if(Ae&&ze)return Ae==_&&ze==f;var Be=-1,Je=!0,xt=2&F?new Gi:void 0;for(ie.set(f,_),ie.set(_,f);++Be0&&Y(we)?F>1?f(we,F-1,Y,re,ie):Oa(ie,we):re||(ie[ie.length]=we)}return ie},ui=function(f,_,F){switch(F.length){case 0:return f.call(_);case 1:return f.call(_,F[0]);case 2:return f.call(_,F[0],F[1]);case 3:return f.call(_,F[0],F[1],F[2])}return f.apply(_,F)},Ei=Math.max,ua=function(f,_,F){return _=Ei(_===void 0?f.length-1:_,0),function(){for(var Y=arguments,re=-1,ie=Ei(Y.length-_,0),le=Array(ie);++re0){if(++_>=800)return arguments[0]}else _=0;return f.apply(void 0,arguments)}}(Aa),oo=function(f,_){return Uo(ua(f,_,Ki),f+"")},Qs=function(f,_,F,Y){for(var re=f.length,ie=F+(Y?1:-1);Y?ie--:++ie-1},pu=function(f,_,F){for(var Y=-1,re=f==null?0:f.length;++Y=200){var Ae=_?null:If(f);if(Ae)return zi(Ae);le=!1,re=go,we=new Gi}else we=_?[]:pe;e:for(;++Yie){var le=re;re=ie,ie=le}return re+""+ie+""+(qr.isUndefined(Y)?"\0":Y)}function Lf(f,_,F,Y){var re=""+_,ie=""+F;if(!f&&re>ie){var le=re;re=ie,ie=le}var pe={v:re,w:ie};return Y&&(pe.name=Y),pe}function Eu(f,_){return ls(f,_.v,_.w,_.name)}aa.prototype._nodeCount=0,aa.prototype._edgeCount=0,aa.prototype.isDirected=function(){return this._isDirected},aa.prototype.isMultigraph=function(){return this._isMultigraph},aa.prototype.isCompound=function(){return this._isCompound},aa.prototype.setGraph=function(f){return this._label=f,this},aa.prototype.graph=function(){return this._label},aa.prototype.setDefaultNodeLabel=function(f){return qr.isFunction(f)||(f=qr.constant(f)),this._defaultNodeLabelFn=f,this},aa.prototype.nodeCount=function(){return this._nodeCount},aa.prototype.nodes=function(){return qr.keys(this._nodes)},aa.prototype.sources=function(){var f=this;return qr.filter(this.nodes(),function(_){return qr.isEmpty(f._in[_])})},aa.prototype.sinks=function(){var f=this;return qr.filter(this.nodes(),function(_){return qr.isEmpty(f._out[_])})},aa.prototype.setNodes=function(f,_){var F=arguments,Y=this;return qr.each(f,function(re){F.length>1?Y.setNode(re,_):Y.setNode(re)}),this},aa.prototype.setNode=function(f,_){return qr.has(this._nodes,f)?(arguments.length>1&&(this._nodes[f]=_),this):(this._nodes[f]=arguments.length>1?_:this._defaultNodeLabelFn(f),this._isCompound&&(this._parent[f]="\0",this._children[f]={},this._children["\0"][f]=!0),this._in[f]={},this._preds[f]={},this._out[f]={},this._sucs[f]={},++this._nodeCount,this)},aa.prototype.node=function(f){return this._nodes[f]},aa.prototype.hasNode=function(f){return qr.has(this._nodes,f)},aa.prototype.removeNode=function(f){var _=this;if(qr.has(this._nodes,f)){var F=function(Y){_.removeEdge(_._edgeObjs[Y])};delete this._nodes[f],this._isCompound&&(this._removeFromParentsChildList(f),delete this._parent[f],qr.each(this.children(f),function(Y){_.setParent(Y)}),delete this._children[f]),qr.each(qr.keys(this._in[f]),F),delete this._in[f],delete this._preds[f],qr.each(qr.keys(this._out[f]),F),delete this._out[f],delete this._sucs[f],--this._nodeCount}return this},aa.prototype.setParent=function(f,_){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(qr.isUndefined(_))_="\0";else{for(var F=_+="";!qr.isUndefined(F);F=this.parent(F))if(F===f)throw new Error("Setting "+_+" as parent of "+f+" would create a cycle");this.setNode(_)}return this.setNode(f),this._removeFromParentsChildList(f),this._parent[f]=_,this._children[_][f]=!0,this},aa.prototype._removeFromParentsChildList=function(f){delete this._children[this._parent[f]][f]},aa.prototype.parent=function(f){if(this._isCompound){var _=this._parent[f];if(_!=="\0")return _}},aa.prototype.children=function(f){if(qr.isUndefined(f)&&(f="\0"),this._isCompound){var _=this._children[f];if(_)return qr.keys(_)}else{if(f==="\0")return this.nodes();if(this.hasNode(f))return[]}},aa.prototype.predecessors=function(f){var _=this._preds[f];if(_)return qr.keys(_)},aa.prototype.successors=function(f){var _=this._sucs[f];if(_)return qr.keys(_)},aa.prototype.neighbors=function(f){var _=this.predecessors(f);if(_)return qr.union(_,this.successors(f))},aa.prototype.isLeaf=function(f){return(this.isDirected()?this.successors(f):this.neighbors(f)).length===0},aa.prototype.filterNodes=function(f){var _=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});_.setGraph(this.graph());var F=this;qr.each(this._nodes,function(ie,le){f(le)&&_.setNode(le,ie)}),qr.each(this._edgeObjs,function(ie){_.hasNode(ie.v)&&_.hasNode(ie.w)&&_.setEdge(ie,F.edge(ie))});var Y={};function re(ie){var le=F.parent(ie);return le===void 0||_.hasNode(le)?(Y[ie]=le,le):le in Y?Y[le]:re(le)}return this._isCompound&&qr.each(_.nodes(),function(ie){_.setParent(ie,re(ie))}),_},aa.prototype.setDefaultEdgeLabel=function(f){return qr.isFunction(f)||(f=qr.constant(f)),this._defaultEdgeLabelFn=f,this},aa.prototype.edgeCount=function(){return this._edgeCount},aa.prototype.edges=function(){return qr.values(this._edgeObjs)},aa.prototype.setPath=function(f,_){var F=this,Y=arguments;return qr.reduce(f,function(re,ie){return Y.length>1?F.setEdge(re,ie,_):F.setEdge(re,ie),ie}),this},aa.prototype.setEdge=function(){var f,_,F,Y,re=!1,ie=arguments[0];typeof ie=="object"&&ie!==null&&"v"in ie?(f=ie.v,_=ie.w,F=ie.name,arguments.length===2&&(Y=arguments[1],re=!0)):(f=ie,_=arguments[1],F=arguments[3],arguments.length>2&&(Y=arguments[2],re=!0)),f=""+f,_=""+_,qr.isUndefined(F)||(F=""+F);var le=ls(this._isDirected,f,_,F);if(qr.has(this._edgeLabels,le))return re&&(this._edgeLabels[le]=Y),this;if(!qr.isUndefined(F)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(f),this.setNode(_),this._edgeLabels[le]=re?Y:this._defaultEdgeLabelFn(f,_,F);var pe=Lf(this._isDirected,f,_,F);return f=pe.v,_=pe.w,Object.freeze(pe),this._edgeObjs[le]=pe,Af(this._preds[_],f),Af(this._sucs[f],_),this._in[_][le]=pe,this._out[f][le]=pe,this._edgeCount++,this},aa.prototype.edge=function(f,_,F){var Y=arguments.length===1?Eu(this._isDirected,arguments[0]):ls(this._isDirected,f,_,F);return this._edgeLabels[Y]},aa.prototype.hasEdge=function(f,_,F){var Y=arguments.length===1?Eu(this._isDirected,arguments[0]):ls(this._isDirected,f,_,F);return qr.has(this._edgeLabels,Y)},aa.prototype.removeEdge=function(f,_,F){var Y=arguments.length===1?Eu(this._isDirected,arguments[0]):ls(this._isDirected,f,_,F),re=this._edgeObjs[Y];return re&&(f=re.v,_=re.w,delete this._edgeLabels[Y],delete this._edgeObjs[Y],mu(this._preds[_],f),mu(this._sucs[f],_),delete this._in[_][Y],delete this._out[f][Y],this._edgeCount--),this},aa.prototype.inEdges=function(f,_){var F=this._in[f];if(F){var Y=qr.values(F);return _?qr.filter(Y,function(re){return re.v===_}):Y}},aa.prototype.outEdges=function(f,_){var F=this._out[f];if(F){var Y=qr.values(F);return _?qr.filter(Y,function(re){return re.w===_}):Y}},aa.prototype.nodeEdges=function(f,_){var F=this.inEdges(f,_);if(F)return F.concat(this.outEdges(f,_))};var $u={Graph:Is,version:"2.1.8"},Qu={write:function(f){var _={options:{directed:f.isDirected(),multigraph:f.isMultigraph(),compound:f.isCompound()},nodes:Df(f),edges:Lo(f)};return qr.isUndefined(f.graph())||(_.value=qr.clone(f.graph())),_},read:function(f){var _=new Is(f.options).setGraph(f.value);return qr.each(f.nodes,function(F){_.setNode(F.v,F.value),F.parent&&_.setParent(F.v,F.parent)}),qr.each(f.edges,function(F){_.setEdge({v:F.v,w:F.w,name:F.name},F.value)}),_}};function Df(f){return qr.map(f.nodes(),function(_){var F=f.node(_),Y=f.parent(_),re={v:_};return qr.isUndefined(F)||(re.value=F),qr.isUndefined(Y)||(re.parent=Y),re})}function Lo(f){return qr.map(f.edges(),function(_){var F=f.edge(_),Y={v:_.v,w:_.w};return qr.isUndefined(_.name)||(Y.name=_.name),qr.isUndefined(F)||(Y.value=F),Y})}var Nf=function(f){var _,F={},Y=[];function re(ie){qr.has(F,ie)||(F[ie]=!0,_.push(ie),qr.each(f.successors(ie),re),qr.each(f.predecessors(ie),re))}return qr.each(f.nodes(),function(ie){_=[],re(ie),_.length&&Y.push(_)}),Y},Pf=bi;function bi(){this._arr=[],this._keyIndices={}}bi.prototype.size=function(){return this._arr.length},bi.prototype.keys=function(){return this._arr.map(function(f){return f.key})},bi.prototype.has=function(f){return qr.has(this._keyIndices,f)},bi.prototype.priority=function(f){var _=this._keyIndices[f];if(_!==void 0)return this._arr[_].priority},bi.prototype.min=function(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key},bi.prototype.add=function(f,_){var F=this._keyIndices;if(f=String(f),!qr.has(F,f)){var Y=this._arr,re=Y.length;return F[f]=re,Y.push({key:f,priority:_}),this._decrease(re),!0}return!1},bi.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var f=this._arr.pop();return delete this._keyIndices[f.key],this._heapify(0),f.key},bi.prototype.decrease=function(f,_){var F=this._keyIndices[f];if(_>this._arr[F].priority)throw new Error("New priority is greater than current priority. Key: "+f+" Old: "+this._arr[F].priority+" New: "+_);this._arr[F].priority=_,this._decrease(F)},bi.prototype._heapify=function(f){var _=this._arr,F=2*f,Y=F+1,re=f;F<_.length&&(re=_[F].priority<_[re].priority?F:re,Y<_.length&&(re=_[Y].priority<_[re].priority?Y:re),re!==f&&(this._swap(f,re),this._heapify(re)))},bi.prototype._decrease=function(f){for(var _,F=this._arr,Y=F[f].priority;f!==0&&!(F[_=f>>1].priority0&&(we=Be.removeMin(),(Ae=ze[we]).distance!==Number.POSITIVE_INFINITY);)pe(we).forEach(Je);return ze}(f,String(_),F||Os,Y||function(re){return f.outEdges(re)})},Os=qr.constant(1),qu=function(f,_,F){return qr.transform(f.nodes(),function(Y,re){Y[re]=Ju(f,re,_,F)},{})},ef=function(f){var _=0,F=[],Y={},re=[];function ie(le){var pe=Y[le]={onStack:!0,lowlink:_,index:_++};if(F.push(le),f.successors(le).forEach(function(ze){qr.has(Y,ze)?Y[ze].onStack&&(pe.lowlink=Math.min(pe.lowlink,Y[ze].index)):(ie(ze),pe.lowlink=Math.min(pe.lowlink,Y[ze].lowlink))}),pe.lowlink===pe.index){var we,Ae=[];do we=F.pop(),Y[we].onStack=!1,Ae.push(we);while(le!==we);re.push(Ae)}}return f.nodes().forEach(function(le){qr.has(Y,le)||ie(le)}),re},vc=function(f){return qr.filter(ef(f),function(_){return _.length>1||_.length===1&&f.hasEdge(_[0],_[0])})},gc=function(f,_,F){return function(Y,re,ie){var le={},pe=Y.nodes();return pe.forEach(function(we){le[we]={},le[we][we]={distance:0},pe.forEach(function(Ae){we!==Ae&&(le[we][Ae]={distance:Number.POSITIVE_INFINITY})}),ie(we).forEach(function(Ae){var ze=Ae.v===we?Ae.w:Ae.v,Be=re(Ae);le[we][ze]={distance:Be,predecessor:we}})}),pe.forEach(function(we){var Ae=le[we];pe.forEach(function(ze){var Be=le[ze];pe.forEach(function(Je){var xt=Be[we],ar=Ae[Je],Tt=Be[Je],Nt=xt.distance+ar.distance;Nt0;){if(F=ie.removeMin(),qr.has(re,F))Y.setEdge(F,re[F]);else{if(pe)throw new Error("Input graph is not connected: "+f);pe=!0}f.nodeEdges(F).forEach(le)}return Y},tarjan:ef,topsort:tf},version:$u.version};try{ds=il}catch(f){}ds||(ds=window.graphlib);var Do=ds,Rf=function(f){return vo(f,5)},hs=function(f,_,F){if(!Mt(F))return!1;var Y=typeof _;return!!(Y=="number"?bn(F)&&ot(_,F.length):Y=="string"&&_ in F)&&m(F[_],f)},As=Object.prototype,Ec=As.hasOwnProperty,xu=oo(function(f,_){f=Object(f);var F=-1,Y=_.length,re=Y>2?_[2]:void 0;for(re&&hs(_[0],_[1],re)&&(Y=1);++F-1?re[ie?_[le]:le]:void 0}},bc=/^\s+|\s+$/g,ol=/^[-+]0x[0-9a-f]+$/i,rf=/^0b[01]+$/i,Bf=/^0o[0-7]+$/i,Ff=parseInt,xc=function(f){if(typeof f=="number")return f;if(Eo(f))return NaN;if(Mt(f)){var _=typeof f.valueOf=="function"?f.valueOf():f;f=Mt(_)?_+"":_}if(typeof f!="string")return f===0?f:+f;f=f.replace(bc,"");var F=rf.test(f);return F||Bf.test(f)?Ff(f.slice(2),F?2:8):ol.test(f)?NaN:+f},nf=function(f){return f?(f=xc(f))===Infinity||f===-Infinity?17976931348623157e292*(f<0?-1:1):f==f?f:0:f===0?f:0},af=function(f){var _=nf(f),F=_%1;return _==_?F?_-F:_:0},sl=Math.max,ul=Ls(function(f,_,F){var Y=f==null?0:f.length;if(!Y)return-1;var re=F==null?0:af(F);return re<0&&(re=sl(Y+re,0)),Qs(f,Qi(_),re)}),wc=function(f){return(f==null?0:f.length)?Ha(f,1):[]},Js=function(f,_){return f==null?f:Ao(f,wi(_),vt)},fl=function(f){var _=f==null?0:f.length;return _?f[_-1]:void 0},Sc=function(f,_){var F={};return _=Qi(_),as(f,function(Y,re,ie){xa(F,re,_(Y,re,ie))}),F},wu=function(f,_,F){for(var Y=-1,re=f.length;++Y_},cl=function(f){return f&&f.length?wu(f,Ki,Wo):void 0},Su=function(f,_,F){(F!==void 0&&!m(f[_],F)||F===void 0&&!(_ in f))&&xa(f,_,F)},ll=Function.prototype,dl=Object.prototype,Ni=ll.toString,hl=dl.hasOwnProperty,_c=Ni.call(Object),_u=function(f){if(!ae(f)||at(f)!="[object Object]")return!1;var _=Ba(f);if(_===null)return!0;var F=hl.call(_,"constructor")&&_.constructor;return typeof F=="function"&&F instanceof F&&Ni.call(F)==_c},of=function(f,_){if((_!=="constructor"||typeof f[_]!="function")&&_!="__proto__")return f[_]},To=function(f){return qe(f,vt(f))},Mc=function(f,_,F,Y,re,ie,le){var pe=of(f,F),we=of(_,F),Ae=le.get(we);if(Ae)Su(f,F,Ae);else{var ze=ie?ie(pe,we,F+"",f,_,le):void 0,Be=ze===void 0;if(Be){var Je=Se(we),xt=!Je&&Le(we),ar=!Je&&!xt&&Qt(we);ze=we,Je||xt||ar?Se(pe)?ze=pe:Of(pe)?ze=jr(pe):xt?(Be=!1,ze=xr(we,!0)):ar?(Be=!1,ze=Oi(we,!0)):ze=[]:_u(we)||de(we)?(ze=pe,de(pe)?ze=To(pe):Mt(pe)&&!er(pe)||(ze=Ai(we))):Be=!1}Be&&(le.set(we,ze),re(ze,we,Y,ie,le),le.delete(we)),Su(f,F,ze)}},qs=function f(_,F,Y,re,ie){_!==F&&Ao(F,function(le,pe){if(ie||(ie=new kn),Mt(le))Mc(_,F,pe,Y,f,re,ie);else{var we=re?re(of(_,pe),le,pe+"",_,F,ie):void 0;we===void 0&&(we=le),Su(_,pe,we)}},vt)},Ds=function(f){return oo(function(_,F){var Y=-1,re=F.length,ie=re>1?F[re-1]:void 0,le=re>2?F[2]:void 0;for(ie=f.length>3&&typeof ie=="function"?(re--,ie):void 0,le&&hs(F[0],F[1],le)&&(ie=re<3?void 0:ie,re=1),_=Object(_);++Y_||ie&&le&&we&&!pe&&!Ae||Y&&le&&we||!F&&we||!re)return 1;if(!Y&&!ie&&!Ae&&f<_||Ae&&F&&re&&!Y&&!ie||pe&&F&&re||!le&&re||!we)return-1}return 0},Uf=function(f,_,F){for(var Y=-1,re=f.criteria,ie=_.criteria,le=re.length,pe=F.length;++Y=pe?we:we*(F[Y]=="desc"?-1:1)}return f.index-_.index},Wf=function(f,_,F){_=_.length?io(_,function(ie){return Se(ie)?function(le){return fs(le,ie.length===1?ie[0]:ie)}:ie}):[Ki];var Y=-1;_=io(_,kr(Qi));var re=ue(f,function(ie,le,pe){return{criteria:io(_,function(we){return we(ie)}),index:++Y,value:ie}});return Oc(re,function(ie,le){return Uf(ie,le,F)})},sf=oo(function(f,_){if(f==null)return[];var F=_.length;return F>1&&hs(f,_[0],_[1])?_=[]:F>2&&hs(_[0],_[1],_[2])&&(_=[_[0]]),Wf(f,Ha(_,1),[])}),jf=0,Xf=function(f){var _=++jf;return $s(f)+_},Tu=function(f,_,F){for(var Y=-1,re=f.length,ie=_.length,le={};++Y0;--Be)if(pe=ie[Be].dequeue()){we=we.concat(uf(re,ie,le,pe,!0));break}}}return we}(F.graph,F.buckets,F.zeroIdx);return lt.flatten(lt.map(Y,function(re){return f.outEdges(re.v,re.w)}),!0)},yl=lt.constant(1);function uf(f,_,F,Y,re){var ie=re?[]:void 0;return lt.forEach(f.inEdges(Y.v),function(le){var pe=f.edge(le),we=f.node(le.v);re&&ie.push({v:le.v,w:le.w}),we.out-=pe,Yf(_,F,we)}),lt.forEach(f.outEdges(Y.v),function(le){var pe=f.edge(le),we=le.w,Ae=f.node(we);Ae.in-=pe,Yf(_,F,Ae)}),f.removeNode(Y.v),ie}function Yf(f,_,F){F.out?F.in?f[F.out-F.in+_].enqueue(F):f[f.length-1].enqueue(F):f[0].enqueue(F)}var Lc={run:function(f){var _=f.graph().acyclicer==="greedy"?pl(f,function(F){return function(Y){return F.edge(Y).weight}}(f)):function(F){var Y=[],re={},ie={};function le(pe){lt.has(ie,pe)||(ie[pe]=!0,re[pe]=!0,lt.forEach(F.outEdges(pe),function(we){lt.has(re,we.w)?Y.push(we):le(we.w)}),delete re[pe])}return lt.forEach(F.nodes(),le),Y}(f);lt.forEach(_,function(F){var Y=f.edge(F);f.removeEdge(F),Y.forwardName=F.name,Y.reversed=!0,f.setEdge(F.w,F.v,Y,lt.uniqueId("rev"))})},undo:function(f){lt.forEach(f.edges(),function(_){var F=f.edge(_);if(F.reversed){f.removeEdge(_);var Y=F.forwardName;delete F.reversed,delete F.forwardName,f.setEdge(_.w,_.v,F,Y)}})}},Hf=Do.Graph,Si={addDummyNode:Ou,simplify:function(f){var _=new Hf().setGraph(f.graph());return lt.forEach(f.nodes(),function(F){_.setNode(F,f.node(F))}),lt.forEach(f.edges(),function(F){var Y=_.edge(F.v,F.w)||{weight:0,minlen:1},re=f.edge(F);_.setEdge(F.v,F.w,{weight:Y.weight+re.weight,minlen:Math.max(Y.minlen,re.minlen)})}),_},asNonCompoundGraph:function(f){var _=new Hf({multigraph:f.isMultigraph()}).setGraph(f.graph());return lt.forEach(f.nodes(),function(F){f.children(F).length||_.setNode(F,f.node(F))}),lt.forEach(f.edges(),function(F){_.setEdge(F,f.edge(F))}),_},successorWeights:function(f){var _=lt.map(f.nodes(),function(F){var Y={};return lt.forEach(f.outEdges(F),function(re){Y[re.w]=(Y[re.w]||0)+f.edge(re).weight}),Y});return lt.zipObject(f.nodes(),_)},predecessorWeights:function(f){var _=lt.map(f.nodes(),function(F){var Y={};return lt.forEach(f.inEdges(F),function(re){Y[re.v]=(Y[re.v]||0)+f.edge(re).weight}),Y});return lt.zipObject(f.nodes(),_)},intersectRect:function(f,_){var F,Y,re=f.x,ie=f.y,le=_.x-re,pe=_.y-ie,we=f.width/2,Ae=f.height/2;if(!le&&!pe)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(pe)*we>Math.abs(le)*Ae?(pe<0&&(Ae=-Ae),F=Ae*le/pe,Y=Ae):(le<0&&(we=-we),F=we,Y=we*pe/le),{x:re+F,y:ie+Y}},buildLayerMatrix:function(f){var _=lt.map(lt.range(vi(f)+1),function(){return[]});return lt.forEach(f.nodes(),function(F){var Y=f.node(F),re=Y.rank;lt.isUndefined(re)||(_[re][Y.order]=F)}),_},normalizeRanks:function(f){var _=lt.min(lt.map(f.nodes(),function(F){return f.node(F).rank}));lt.forEach(f.nodes(),function(F){var Y=f.node(F);lt.has(Y,"rank")&&(Y.rank-=_)})},removeEmptyRanks:function(f){var _=lt.min(lt.map(f.nodes(),function(ie){return f.node(ie).rank})),F=[];lt.forEach(f.nodes(),function(ie){var le=f.node(ie).rank-_;F[le]||(F[le]=[]),F[le].push(ie)});var Y=0,re=f.graph().nodeRankFactor;lt.forEach(F,function(ie,le){lt.isUndefined(ie)&&le%re!=0?--Y:Y&<.forEach(ie,function(pe){f.node(pe).rank+=Y})})},addBorderNode:function(f,_,F,Y){var re={width:0,height:0};return arguments.length>=4&&(re.rank=F,re.order=Y),Ou(f,"border",re,_)},maxRank:vi,partition:function(f,_){var F={lhs:[],rhs:[]};return lt.forEach(f,function(Y){_(Y)?F.lhs.push(Y):F.rhs.push(Y)}),F},time:function(f,_){var F=lt.now();try{return _()}finally{console.log(f+" time: "+(lt.now()-F)+"ms")}},notime:function(f,_){return _()}};function Ou(f,_,F,Y){var re;do re=lt.uniqueId(Y);while(f.hasNode(re));return F.dummy=_,f.setNode(re,F),re}function vi(f){return lt.max(lt.map(f.nodes(),function(_){var F=f.node(_).rank;if(!lt.isUndefined(F))return F}))}var Au={run:function(f){f.graph().dummyChains=[],lt.forEach(f.edges(),function(_){(function(F,Y){var re,ie,le,pe=Y.v,we=F.node(pe).rank,Ae=Y.w,ze=F.node(Ae).rank,Be=Y.name,Je=F.edge(Y),xt=Je.labelRank;if(ze!==we+1){for(F.removeEdge(Y),le=0,++we;wele.lim&&(pe=le,we=!0);var Ae=lt.filter(_.edges(),function(ze){return we===Nc(f,f.node(ze.v),pe)&&we!==Nc(f,f.node(ze.w),pe)});return lt.minBy(Ae,function(ze){return Bs(_,ze)})}function Fs(f,_,F,Y){var re=F.v,ie=F.w;f.removeEdge(re,ie),f.setEdge(Y.v,Y.w,{}),cf(f),nu(f,_),function(le,pe){var we=lt.find(le.nodes(),function(ze){return!pe.node(ze).parent}),Ae=Lu(le,we);Ae=Ae.slice(1),lt.forEach(Ae,function(ze){var Be=le.node(ze).parent,Je=pe.edge(ze,Be),xt=!1;Je||(Je=pe.edge(Be,ze),xt=!0),pe.node(ze).rank=pe.node(Be).rank+(xt?Je.minlen:-Je.minlen)})}(f,_)}function Nc(f,_,F){return F.low<=_.lim&&_.lim<=F.lim}Io.initLowLimValues=cf,Io.initCutValues=nu,Io.calcCutValue=$f,Io.leaveEdge=Jf,Io.enterEdge=Dc,Io.exchangeEdges=Fs;var Pc=jo,kc=function(f){switch(f.graph().ranker){case"network-simplex":Xo(f);break;case"tight-tree":(function(_){Pc(_),ru(_)})(f);break;case"longest-path":Rc(f);break;default:Xo(f)}},Rc=Pc;function Xo(f){$n(f)}var ml=function(f){var _=function(F){var Y={},re=0;function ie(le){var pe=re;lt.forEach(F.children(le),ie),Y[le]={low:pe,lim:re++}}return lt.forEach(F.children(),ie),Y}(f);lt.forEach(f.graph().dummyChains,function(F){for(var Y=f.node(F),re=Y.edgeObj,ie=function(Be,Je,xt,ar){var Tt,Nt,Lt=[],Tr=[],Hr=Math.min(Je[xt].low,Je[ar].low),Br=Math.max(Je[xt].lim,Je[ar].lim);Tt=xt;do Tt=Be.parent(Tt),Lt.push(Tt);while(Tt&&(Je[Tt].low>Hr||Br>Je[Tt].lim));for(Nt=Tt,Tt=ar;(Tt=Be.parent(Tt))!==Nt;)Tr.push(Tt);return{path:Lt.concat(Tr.reverse()),lca:Nt}}(f,_,re.v,re.w),le=ie.path,pe=ie.lca,we=0,Ae=le[we],ze=!0;F!==re.w;){if(Y=f.node(F),ze){for(;(Ae=le[we])!==pe&&f.node(Ae).maxRank0;)ze%2&&(Be+=pe[ze+1]),pe[ze=ze-1>>1]+=Ae.weight;we+=Ae.weight*Be})),we}var qf=function(f,_){return lt.map(_,function(F){var Y=f.inEdges(F);if(Y.length){var re=lt.reduce(Y,function(ie,le){var pe=f.edge(le),we=f.node(le.v);return{sum:ie.sum+pe.weight*we.order,weight:ie.weight+pe.weight}},{sum:0,weight:0});return{v:F,barycenter:re.sum/re.weight,weight:re.weight}}return{v:F}})},df=function(f,_){var F={};return lt.forEach(f,function(Y,re){var ie=F[Y.v]={indegree:0,in:[],out:[],vs:[Y.v],i:re};lt.isUndefined(Y.barycenter)||(ie.barycenter=Y.barycenter,ie.weight=Y.weight)}),lt.forEach(_.edges(),function(Y){var re=F[Y.v],ie=F[Y.w];lt.isUndefined(re)||lt.isUndefined(ie)||(ie.indegree++,re.out.push(F[Y.w]))}),function(Y){var re=[];function ie(we){return function(Ae){Ae.merged||(lt.isUndefined(Ae.barycenter)||lt.isUndefined(we.barycenter)||Ae.barycenter>=we.barycenter)&&function(ze,Be){var Je=0,xt=0;ze.weight&&(Je+=ze.barycenter*ze.weight,xt+=ze.weight),Be.weight&&(Je+=Be.barycenter*Be.weight,xt+=Be.weight),ze.vs=Be.vs.concat(ze.vs),ze.barycenter=Je/xt,ze.weight=xt,ze.i=Math.min(Be.i,ze.i),Be.merged=!0}(we,Ae)}}function le(we){return function(Ae){Ae.in.push(we),--Ae.indegree==0&&Y.push(Ae)}}for(;Y.length;){var pe=Y.pop();re.push(pe),lt.forEach(pe.in.reverse(),ie(pe)),lt.forEach(pe.out,le(pe))}return lt.map(lt.filter(re,function(we){return!we.merged}),function(we){return lt.pick(we,["vs","i","barycenter","weight"])})}(lt.filter(F,function(Y){return!Y.indegree}))},hf=function(f,_){var F=Si.partition(f,function(Be){return lt.has(Be,"barycenter")}),Y=F.lhs,re=lt.sortBy(F.rhs,function(Be){return-Be.i}),ie=[],le=0,pe=0,we=0;Y.sort((Ae=!!_,function(Be,Je){return Be.barycenterJe.barycenter?1:Ae?Je.i-Be.i:Be.i-Je.i})),we=Us(ie,re,we),lt.forEach(Y,function(Be){we+=Be.vs.length,ie.push(Be.vs),le+=Be.barycenter*Be.weight,pe+=Be.weight,we=Us(ie,re,we)});var Ae,ze={vs:lt.flatten(ie,!0)};return pe&&(ze.barycenter=le/pe,ze.weight=pe),ze};function Us(f,_,F){for(var Y;_.length&&(Y=lt.last(_)).i<=F;)_.pop(),f.push(Y.vs),F++;return F}var ec=function f(_,F,Y,re){var ie=_.children(F),le=_.node(F),pe=le?le.borderLeft:void 0,we=le?le.borderRight:void 0,Ae={};pe&&(ie=lt.filter(ie,function(Tt){return Tt!==pe&&Tt!==we}));var ze=qf(_,ie);lt.forEach(ze,function(Tt){if(_.children(Tt.v).length){var Nt=f(_,Tt.v,Y,re);Ae[Tt.v]=Nt,lt.has(Nt,"barycenter")&&(Lt=Tt,Tr=Nt,lt.isUndefined(Lt.barycenter)?(Lt.barycenter=Tr.barycenter,Lt.weight=Tr.weight):(Lt.barycenter=(Lt.barycenter*Lt.weight+Tr.barycenter*Tr.weight)/(Lt.weight+Tr.weight),Lt.weight+=Tr.weight))}var Lt,Tr});var Be=df(ze,Y);(function(Tt,Nt){lt.forEach(Tt,function(Lt){Lt.vs=lt.flatten(Lt.vs.map(function(Tr){return Nt[Tr]?Nt[Tr].vs:Tr}),!0)})})(Be,Ae);var Je=hf(Be,re);if(pe&&(Je.vs=lt.flatten([pe,Je.vs,we],!0),_.predecessors(pe).length)){var xt=_.node(_.predecessors(pe)[0]),ar=_.node(_.predecessors(we)[0]);lt.has(Je,"barycenter")||(Je.barycenter=0,Je.weight=0),Je.barycenter=(Je.barycenter*Je.weight+xt.order+ar.order)/(Je.weight+2),Je.weight+=2}return Je},vf=Do.Graph,gf=function(f,_,F){var Y=function(ie){for(var le;ie.hasNode(le=lt.uniqueId("_root")););return le}(f),re=new vf({compound:!0}).setGraph({root:Y}).setDefaultNodeLabel(function(ie){return f.node(ie)});return lt.forEach(f.nodes(),function(ie){var le=f.node(ie),pe=f.parent(ie);(le.rank===_||le.minRank<=_&&_<=le.maxRank)&&(re.setNode(ie),re.setParent(ie,pe||Y),lt.forEach(f[F](ie),function(we){var Ae=we.v===ie?we.w:we.v,ze=re.edge(Ae,ie),Be=lt.isUndefined(ze)?0:ze.weight;re.setEdge(Ae,ie,{weight:f.edge(we).weight+Be})}),lt.has(le,"minRank")&&re.setNode(ie,{borderLeft:le.borderLeft[_],borderRight:le.borderRight[_]}))}),re},Na=function(f,_,F){var Y,re={};lt.forEach(F,function(ie){for(var le,pe,we=f.parent(ie);we;){if((le=f.parent(we))?(pe=re[le],re[le]=we):(pe=Y,Y=we),pe&&pe!==we)return void _.setEdge(pe,we);we=le}})},Pu=Do.Graph,ku=function(f){var _=Si.maxRank(f),F=Ws(f,lt.range(1,_+1),"inEdges"),Y=Ws(f,lt.range(_-1,-1,-1),"outEdges"),re=Nu(f);iu(f,re);for(var ie,le=Number.POSITIVE_INFINITY,pe=0,we=0;we<4;++pe,++we){Ru(pe%2?F:Y,pe%4>=2),re=Si.buildLayerMatrix(f);var Ae=zs(f,re);Aewe)&&pf(F,Be,Ae)})})}return lt.reduce(_,function(re,ie){var le,pe=-1,we=0;return lt.forEach(ie,function(Ae,ze){if(f.node(Ae).dummy==="border"){var Be=f.predecessors(Ae);Be.length&&(le=f.node(Be[0]).order,Y(ie,we,ze,pe,le),we=ze,pe=le)}Y(ie,we,ie.length,le,re.length)}),ie}),F}function pf(f,_,F){if(_>F){var Y=_;_=F,F=Y}var re=f[_];re||(f[_]=re={}),re[F]=!0}function Yn(f,_,F){if(_>F){var Y=_;_=F,F=Y}return lt.has(f[_],F)}function bl(f,_,F,Y){var re={},ie={},le={};return lt.forEach(_,function(pe){lt.forEach(pe,function(we,Ae){re[we]=we,ie[we]=we,le[we]=Ae})}),lt.forEach(_,function(pe){var we=-1;lt.forEach(pe,function(Ae){var ze=Y(Ae);if(ze.length)for(var Be=((ze=lt.sortBy(ze,function(Tt){return le[Tt]})).length-1)/2,Je=Math.floor(Be),xt=Math.ceil(Be);Je<=xt;++Je){var ar=ze[Je];ie[Ae]===Ae&&wenew Kc(F)).forEach(F=>{_.nodes[F.name]=F,F.inputs.forEach(Y=>{(function(re,ie,le){le.name!==ie.name&&re.edges.push(Object.assign(Object.assign({},le.attr),{v:le.name,w:ie.name}))})(_,F,Y)})}),_}class Ef{constructor(_,F={}){this.attr=null,this.bridgeGraph=null,this.cardinality=0,this.depth=1,this.include=p.UNSPECIFIED,this.isGroupNode=!0,this.parentNode=null,this.type=L.META,this.path=[],this.name=_,this.metaGraph=bf(_,E.META,F)}getFirstChild(){return this.metaGraph.node(this.metaGraph.nodes()[0])}getChildren(){return this.metaGraph.nodes().map(_=>this.metaGraph.node(_))}leaves(){let _,F=[],Y=[this];for(;Y.length;){let re=Y.shift();re.isGroupNode?(_=re.metaGraph,_.nodes().forEach(ie=>Y.push(_.node(ie)))):F.push(re.name)}return F}}class $c{constructor(_,F){this.v=_,this.w=F,this.baseEdgeList=[],this.inbound=null,this.name=null}addBaseEdge(_,F){this.baseEdgeList.push(_)}}function Qc(f,_={}){return new Ef(f,_)}function oc(f,_){return new $c(f,_)}function bf(f,_,F){const Y=F||{},re=new Zc.Graph(Y);return re.setGraph({name:f,rankdir:Y.rankdir,type:_,align:Y.align}),re}class sc{constructor(_={}){this.graphOptions=_,this.index={},this.graphOptions.compound=!0,this.root=Qc(O,this.graphOptions),this.index[O]=this.root}getNodeMap(){return this.index}node(_){return this.index[_]}setNode(_,F){this.index[_]=F}getBridgeGraph(_){const F=this.index[_];if(!F)throw Error("Could not find node in hierarchy: "+_);if(!("metaGraph"in F))return null;const Y=F;if(Y.bridgeGraph)return Y.bridgeGraph;const re=bf(N,E.BRIDGE,this.graphOptions);if(Y.bridgeGraph=re,!F.parentNode||!("metaGraph"in F.parentNode))return re;const ie=F.parentNode;return[ie.metaGraph,this.getBridgeGraph(ie.name)].forEach(le=>{le.edges().filter(pe=>pe.v===_||pe.w===_).forEach(pe=>{const we=pe.w===_;le.edge(pe).baseEdgeList.forEach(Ae=>{const[ze,Be]=we?[Ae.w,pe.v]:[Ae.v,pe.w],Je=this.getChildName(_,ze),xt={v:we?Be:Je,w:we?Je:Be};let ar=re.edge(xt);ar||(ar=oc(xt.v,xt.w),ar.inbound=we,re.setEdge(xt.v,xt.w,ar)),ar.addBaseEdge(Ae,this)})})}),re}getChildName(_,F){let Y=this.index[F];for(;Y;){if(Y.parentNode&&Y.parentNode.name===_)return Y.name;Y=Y.parentNode}throw Error("Could not find immediate child for descendant: "+F)}getPredecessors(_){const F=this.index[_];if(!F)throw Error("Could not find node with name: "+_);return this.getOneWayEdges(F,!0)}getSuccessors(_){const F=this.index[_];if(!F)throw Error("Could not find node with name: "+_);return this.getOneWayEdges(F,!1)}getOneWayEdges(_,F){const Y=[];if(!_.parentNode||!_.parentNode.isGroupNode)return Y;const re=_.parentNode,ie=re.metaGraph,le=this.getBridgeGraph(re.name);return Jc(ie,_,F,Y),Jc(le,_,F,Y),Y}}function Ml(f,_){const{rankDirection:F,align:Y}=_,re=new sc({rankdir:F,align:Y});return function(ie,le){Object.keys(le.nodes).forEach(pe=>{const we=le.nodes[pe],Ae=we.path;let ze=ie.root;ze.depth=Math.max(Ae.length,ze.depth);for(let Be=0;Be{let xt=0;for(;Be;)Je[xt++]=Be.name,Be=Be.parentNode;return xt-1};le.edges.forEach(Be=>{we=[],Ae=[];let Je=ze(le.nodes[Be.v],we),xt=ze(le.nodes[Be.w],Ae);for(;we[Je]===Ae[xt];)if(Je--,xt--,Je<0||xt<0)throw Error("No difference found between ancestor paths.");const ar=pe[we[Je+1]],Tt=we[Je],Nt=Ae[xt];let Lt=ar.metaGraph.edge(Tt,Nt);Lt||(Lt=oc(Tt,Nt),ar.metaGraph.setEdge(Tt,Nt,Lt)),Lt.addBaseEdge(Be,ie)})}(re,f),re}function Jc(f,_,F,Y){(F?f.inEdges(_.name):f.outEdges(_.name)).forEach(re=>{const ie=f.edge(re);Y.push(ie)})}class qc{constructor(_){this.hierarchy=_,this.index={},this.hasSubHierarchy={},this.root=new Ue(this.hierarchy.root,this.hierarchy.graphOptions),this.index[_.root.name]=this.root,this.buildSubHierarchy(_.root.name),this.root.expanded=!0}getRenderInfoNodes(){return Object.values(this.index)}getSubHierarchy(){return this.hasSubHierarchy}buildSubHierarchy(_){if(_ in this.hasSubHierarchy)return;this.hasSubHierarchy[_]=!0;const F=this.index[_];if(F.node.type!==L.META)return;const Y=F,re=Y.node.metaGraph,ie=Y.coreGraph;re.nodes().forEach(ze=>{const Be=this.getOrCreateRenderNodeByName(ze);ie.setNode(ze,Be)}),re.edges().forEach(ze=>{const Be=re.edge(ze),Je=new he(Be);ie.setEdge(ze.v,ze.w,Je)});const le=Y.node.parentNode;if(!le)return;const pe=this.getRenderNodeByName(le.name),we=(ze,...Be)=>Be.concat([ze?"IN":"OUT"]).join("~~"),Ae=this.hierarchy.getBridgeGraph(_);Ae.edges().forEach(ze=>{const Be=Ae.edge(ze),Je=!!re.node(ze.w),[xt,ar]=Je?[ze.w,ze.v]:[ze.v,ze.w],Tt=Zr=>{const an=Je?{v:Zr,w:_}:{v:_,w:Zr};return pe.coreGraph.edge(an)};let Nt=Tt(ar);Nt||(Nt=Tt(we(Je,ar,le.name)));const Lt=we(Je,_),Tr=we(Je,ar,_);let Hr=ie.node(Tr);if(!Hr){let Zr=ie.node(Lt);if(!Zr){const Sn={name:Lt,type:L.BRIDGE,isGroupNode:!1,cardinality:0,parentNode:null,include:p.UNSPECIFIED,inbound:Je,attr:{}};Zr=new xf(Sn),this.index[Lt]=Zr,ie.setNode(Lt,Zr)}const an={name:Tr,type:L.BRIDGE,isGroupNode:!1,cardinality:1,parentNode:null,include:p.UNSPECIFIED,inbound:Je,attr:{}};Hr=new xf(an),this.index[Tr]=Hr,ie.setNode(Tr,Hr),ie.setParent(Tr,Lt),Zr.node.cardinality++}const Br=new he(Be);Br.adjoiningMetaEdge=Nt,Je?ie.setEdge(Tr,xt,Br):ie.setEdge(xt,Tr,Br)})}getOrCreateRenderNodeByName(_){if(!_)return null;if(_ in this.index)return this.index[_];const F=this.getNodeByName(_);return F?(this.index[_]=F.isGroupNode?new Ue(F,this.hierarchy.graphOptions):new xf(F),this.index[_]):null}getRenderNodeByName(_){return this.index[_]}getNodeByName(_){return this.hierarchy.node(_)}}class xf{constructor(_){this.node=_,this.expanded=!1,this.x=0,this.y=0,this.coreBox={width:0,height:0},this.outboxWidth=0,this.labelOffset=0,this.radius=0,this.labelHeight=0,this.paddingTop=0,this.paddingLeft=0,this.paddingRight=0,this.paddingBottom=0,this.width=_.width||0,this.height=_.height||0,this.displayName=_.name,this.attr=_.attr}}class he{constructor(_){this.metaEdge=_,this.adjoiningMetaEdge=null,this.weight=1,this.points=[]}}class Ue extends xf{constructor(_,F){super(_);const Y=_.metaGraph.graph();F.compound=!0,this.coreGraph=bf(Y.name,E.CORE,F)}}function et(f,_){f.node.isGroupNode&&function(F,Y){const re=W(Y);F.coreGraph.nodes().map(ie=>F.coreGraph.node(ie)).forEach(ie=>{var le,pe,we,Ae,ze,Be;const{height:Je,width:xt}=ie;switch(ie.node.type){case L.NODE:Object.assign(ie,re.nodeSize.node),ie.height=Je||re.nodeSize.node.height,ie.width=xt||re.nodeSize.node.width;break;case L.BRIDGE:Object.assign(ie,re.nodeSize.bridge);break;case L.META:ie.expanded?et(ie,Y):(Object.assign(ie,re.nodeSize.meta),ie.height=re.nodeSize.meta.height,ie.width=re.nodeSize.meta.width);break;default:throw Error("Unrecognized node type: "+ie.node.type)}if(!ie.expanded){const ar=ie.attr;(function(Tt,Nt=!1){if(Tt.coreBox.width=Tt.width,Tt.coreBox.height=Tt.height,!Nt){const Lt=`${Tt.displayName}`.length,Tr=3;Tt.width=Math.max(Tt.coreBox.width,Lt*Tr)}})(ie,Y&&(ie.node.type===0&&!!((pe=(le=Y==null?void 0:Y.nodeSize)===null||le===void 0?void 0:le.meta)===null||pe===void 0?void 0:pe.width)||ie.node.type===1&&(!!((Ae=(we=Y==null?void 0:Y.nodeSize)===null||we===void 0?void 0:we.node)===null||Ae===void 0?void 0:Ae.width)||!!ar.width)||ie.node.type===2&&!!((Be=(ze=Y==null?void 0:Y.nodeSize)===null||ze===void 0?void 0:ze.bridge)===null||Be===void 0?void 0:Be.width)))}})}(f,_),f.node.type===L.META&&function(F,Y){const re=W(Y),ie=re.subScene.meta;Object.assign(F,ie);const{nodeSep:le,rankSep:pe,edgeSep:we,align:Ae}=re.graph.meta,ze={nodesep:le,ranksep:pe,edgesep:we,align:Ae};Object.assign(F.coreBox,function(xt,ar){const{ranksep:Tt,nodesep:Nt,edgesep:Lt,align:Tr}=ar;Object.assign(xt.graph(),{ranksep:Tt,nodesep:Nt,edgesep:Lt,align:Tr});const Hr=[];if(xt.nodes().forEach(Rn=>{xt.node(Rn).node.type!==L.BRIDGE&&Hr.push(Rn)}),!Hr.length)return{width:0,height:0};Sl(xt);let Br=1/0,Zr=1/0,an=-1/0,Sn=-1/0;return Hr.forEach(Rn=>{const Nn=xt.node(Rn),za=.5*Nn.width,Gn=Nn.x-za,Qa=Nn.x+za;Br=Gnan?Qa:an;const Ta=.5*Nn.height,ia=Nn.y-Ta,ja=Nn.y+Ta;Zr=iaSn?ja:Sn}),xt.edges().forEach(Rn=>{const Nn=xt.edge(Rn),za=xt.node(Nn.metaEdge.v),Gn=xt.node(Nn.metaEdge.w);if(Nn.points.length===3&&function(ia){let ja=Ht(ia[0],ia[1]);for(let La=1;La1)return!1;ja=ka}return!0}(Nn.points)){if(za!=null){const ia=za.expanded?za.x:vr(za);Nn.points[0].x=ia}if(Gn!=null){const ia=Gn.expanded?Gn.x:vr(Gn);Nn.points[2].x=ia}Nn.points=[Nn.points[0],Nn.points[1]]}const Qa=Nn.points[Nn.points.length-2];Gn!=null&&(Nn.points[Nn.points.length-1]=Vt(Qa,Gn));const Ta=Nn.points[1];za!=null&&(Nn.points[0]=Vt(Ta,za)),Nn.points.forEach(ia=>{Br=ia.xan?ia.x:an,Zr=ia.ySn?ia.y:Sn})}),xt.nodes().forEach(Rn=>{const Nn=xt.node(Rn);Nn.x-=Br,Nn.y-=Zr}),xt.edges().forEach(Rn=>{xt.edge(Rn).points.forEach(Nn=>{Nn.x-=Br,Nn.y-=Zr})}),{width:an-Br,height:Sn-Zr}}(F.coreGraph,ze));let Be=0;F.coreGraph.nodeCount()>0&&Be++;const Je=Be<=1?0:Be;F.coreBox.width+=Je+Je,F.coreBox.height=ie.labelHeight+F.coreBox.height,F.width=F.coreBox.width+ie.paddingLeft+ie.paddingRight,F.height=F.paddingTop+F.coreBox.height+F.paddingBottom}(f,_)}function Ht(f,_){const F=_.x-f.x,Y=_.y-f.y;return 180*Math.atan(Y/F)/Math.PI}function vr(f){return f.expanded?f.x:f.x-f.width/2+0+f.coreBox.width/2}function Vt(f,_){const F=_.expanded?_.x:vr(_),Y=_.y,re=f.x-F,ie=f.y-Y;let le,pe,we=_.expanded?_.width:_.coreBox.width,Ae=_.expanded?_.height:_.coreBox.height;return Math.abs(ie)*we/2>Math.abs(re)*Ae/2?(ie<0&&(Ae=-Ae),le=ie===0?0:Ae/2*re/ie,pe=Ae/2):(re<0&&(we=-we),le=we/2,pe=re===0?0:we/2*ie/re),{x:F+le,y:Y+pe}}function nr(f,_,F){var Y,re,ie,le;const pe=f.nodes.filter((Be,Je,xt)=>xt.findIndex(ar=>ar.id===Be.id)!==Je).map(Be=>Be.id);if(pe.length)throw new Error(`Duplicated ids found: ${pe.join(", ")}`);const we=function(Be){const Je={nodes:[]},xt=Be.compound,ar=Object.keys(xt||{}),Tt=new Map,Nt=(Tr,Hr=[])=>{if(Tt.has(Tr))return Tt.get(Tr);for(let Br=0;BrBe.edges.filter(Hr=>Hr.w===Tr).map(Hr=>({name:Hr.v}));return Be.nodes.forEach(Tr=>{const Hr=Tr.id,Br=[...Nt(Hr),Hr];let Zr=Lt(Hr);Je.nodes.push({name:Hr,path:Br,inputs:Zr,width:Tr.width,height:Tr.height,attr:Object.assign({},Tr)})}),Je}(f),Ae=function(Be,Je){const xt=(Tt,Nt)=>{for(let Lt of Nt.values())if(Lt.includes(Tt))return!0;return!1},ar=(Tt,Nt=[])=>{if(Object.keys(Tt).length===0)return[...new Set(Nt)];const Lt=new Map(Object.keys(Tt).map(Hr=>[Hr,Tt[Hr]])),Tr={};for(let[Hr,Br]of Lt)xt(Hr,Lt)?Tr[Hr]=Br:Nt=Nt.concat(Hr,Br);return ar(Tr,Nt)};return ar(Be).filter(Tt=>Je.includes(Tt))}(f.compound||{},(_==null?void 0:_.expanded)||[]),ze=function(Be,Je){return function(xt){return new qc(xt)}(Ml(ic(Be),Je))}(we,{rankDirection:((re=(Y=F==null?void 0:F.graph)===null||Y===void 0?void 0:Y.meta)===null||re===void 0?void 0:re.rankDir)||(_==null?void 0:_.rankDirection)||B.graph.meta.rankDir,align:((le=(ie=F==null?void 0:F.graph)===null||ie===void 0?void 0:ie.meta)===null||le===void 0?void 0:le.align)||B.graph.meta.align});return function(Be,Je){Je.forEach(xt=>{const ar=Be.getRenderInfoNodes().find(Lt=>Lt.displayName===xt);let Tt=ar&&ar.node&&ar.node.name||"";const Nt=Be.getRenderNodeByName(Tt);if(!Nt)throw new Error(`No nodes found: ${Tt}`);Nt.expanded=!0,Be.buildSubHierarchy(Tt)})}(ze,Ae),et(ze.root,F),Lr(ze.root)}function Cr(f,_=!1){const F=JSON.parse(JSON.stringify(f)),Y={nodes:[F],edges:[...F.edges]};return F.nodes.forEach(function re(ie){(ie.type===0||ie.type===1)&&Y.nodes.push(ie),ie.type===0&&(Y.edges=Y.edges.concat(ie.edges)),Array.isArray(ie.nodes)&&ie.nodes.forEach(re)}),_&&Y.nodes.forEach(re=>{const ie=Y.nodes.find(le=>le.id===re.parentNodeName);if(ie){const le=ie.x-ie.width/2+ie.paddingLeft,pe=ie.y-ie.height/2+ie.labelHeight+ie.paddingTop;ie.id!==O&&(re.x+=le,re.y+=pe),re.type===0&&re.edges.forEach(we=>{we.points.forEach(Ae=>{Ae.x+=re.x-re.width/2+re.paddingLeft,Ae.y+=re.y-re.height/2+re.labelHeight+re.paddingTop})})}}),Y}function Or(f,_,F,Y){var re,ie;let le=[];const pe=((re=F.find(Be=>Be.id===f))===null||re===void 0?void 0:re.path)||[],we=((ie=F.find(Be=>Be.id===_))===null||ie===void 0?void 0:ie.path)||[],Ae=[O,...pe].slice(0,pe.length).reverse(),ze=[O,...we].slice(0,we.length);return Ae.forEach(Be=>{const Je=F.find(xt=>xt.id===Be);le=le.concat(Je.edges.filter(xt=>xt.baseEdgeList.some(ar=>ar.v===((Y==null?void 0:Y.v)||f)&&ar.w===((Y==null?void 0:Y.w)||_))))}),ze.filter(Be=>!Ae.includes(Be)).forEach(Be=>{const Je=F.find(xt=>xt.id===Be);le=le.concat(Je.edges.filter(xt=>xt.baseEdgeList.some(ar=>ar.v===((Y==null?void 0:Y.v)||f)&&ar.w===((Y==null?void 0:Y.w)||_))))}),le}function Lr(f){const _=f.coreGraph.nodes().map(Y=>f.coreGraph.node(Y));return Object.assign(Object.assign({},Ir(f)),{expanded:f.expanded,nodes:f.expanded?(F=_,F.map(Y=>Y.node.type===L.META?Lr(Y):Ir(Y))):[],edges:f.expanded?Gr(f):[]});var F}function Ir(f){return{id:f.node.name,name:f.node.name,type:f.node.type,cardinality:f.node.cardinality,attr:f.attr,parentNodeName:f.node.parentNode?f.node.parentNode.name:null,coreBox:Object.assign({},f.coreBox),x:f.x,y:f.y,width:f.width,height:f.height,radius:f.radius,labelHeight:f.labelHeight,labelOffset:f.labelOffset,outboxWidth:f.outboxWidth,paddingLeft:f.paddingLeft,paddingTop:f.paddingTop,paddingRight:f.paddingRight,paddingBottom:f.paddingBottom,path:f.node.path}}function Gr(f){return f.coreGraph.edges().map(_=>({renderInfoEdge:f.coreGraph.edge(_),edge:_})).filter(({renderInfoEdge:_})=>_.metaEdge).map(({edge:_,renderInfoEdge:F})=>{const Y=function(re,ie){const le=ie.points.map(pe=>Object.assign({},pe));if(ie.adjoiningMetaEdge){const pe=ie.adjoiningMetaEdge.points,we=ie.metaEdge.inbound,Ae=we?pe[pe.length-1]:pe[0],ze=le[we?0:le.length-1],Be=re.x-re.width/2,Je=re.y-re.height/2,xt=Ae.x-Be,ar=Ae.y-Je,Tt=-re.paddingLeft,Nt=-(re.paddingTop+re.labelHeight);ze.x=xt+Tt,ze.y=ar+Nt}return le}(f,F);return{adjoiningEdge:F.adjoiningMetaEdge?{w:F.adjoiningMetaEdge.metaEdge.w,v:F.adjoiningMetaEdge.metaEdge.v}:null,inbound:F.metaEdge.inbound,w:_.w,v:_.v,points:Y,weight:F.weight,baseEdgeList:F.metaEdge.baseEdgeList,parentNodeName:f.node.name}})}},64530:function(or,U,G){"use strict";G.r(U),G.d(U,{glMatrix:function(){return p},mat2:function(){return B},mat2d:function(){return W},mat3:function(){return Sr},mat4:function(){return k},quat:function(){return N},quat2:function(){return L},vec2:function(){return Mf},vec3:function(){return jn},vec4:function(){return O}});var B={};G.r(B),G.d(B,{LDU:function(){return Q},add:function(){return te},adjoint:function(){return R},clone:function(){return v},copy:function(){return g},create:function(){return E},determinant:function(){return w},equals:function(){return me},exactEquals:function(){return ye},frob:function(){return q},fromRotation:function(){return X},fromScaling:function(){return H},fromValues:function(){return M},identity:function(){return d},invert:function(){return T},mul:function(){return ve},multiply:function(){return b},multiplyScalar:function(){return ge},multiplyScalarAndAdd:function(){return be},rotate:function(){return $},scale:function(){return j},set:function(){return m},str:function(){return J},sub:function(){return _e},subtract:function(){return fe},transpose:function(){return x}});var W={};G.r(W),G.d(W,{add:function(){return ut},clone:function(){return Ge},copy:function(){return tt},create:function(){return De},determinant:function(){return er},equals:function(){return Oe},exactEquals:function(){return Vr},frob:function(){return Zt},fromRotation:function(){return wt},fromScaling:function(){return pt},fromTranslation:function(){return sr},fromValues:function(){return at},identity:function(){return St},invert:function(){return Wt},mul:function(){return Dt},multiply:function(){return it},multiplyScalar:function(){return tr},multiplyScalarAndAdd:function(){return wr},rotate:function(){return yt},scale:function(){return bt},set:function(){return Mt},str:function(){return Ur},sub:function(){return zt},subtract:function(){return Rt},translate:function(){return Ft}});var k={};G.r(k),G.d(k,{add:function(){return Qt},adjoint:function(){return Rr},clone:function(){return Fr},copy:function(){return nn},create:function(){return dr},determinant:function(){return sn},equals:function(){return Ln},exactEquals:function(){return Qn},frob:function(){return Ct},fromQuat:function(){return V},fromQuat2:function(){return qe},fromRotation:function(){return An},fromRotationTranslation:function(){return Ot},fromRotationTranslationScale:function(){return S},fromRotationTranslationScaleOrigin:function(){return C},fromScaling:function(){return kn},fromTranslation:function(){return Jr},fromValues:function(){return $r},fromXRotation:function(){return mn},fromYRotation:function(){return xa},fromZRotation:function(){return Z},frustum:function(){return de},getRotation:function(){return P},getScaling:function(){return ae},getTranslation:function(){return ne},identity:function(){return tn},invert:function(){return pr},lookAt:function(){return Yt},mul:function(){return En},multiply:function(){return gn},multiplyScalar:function(){return en},multiplyScalarAndAdd:function(){return Pr},ortho:function(){return At},orthoNO:function(){return ot},orthoZO:function(){return $t},perspective:function(){return xe},perspectiveFromFieldOfView:function(){return ht},perspectiveNO:function(){return Se},perspectiveZO:function(){return Le},rotate:function(){return ca},rotateX:function(){return Wn},rotateY:function(){return Vn},rotateZ:function(){return _a},scale:function(){return fa},set:function(){return Wr},str:function(){return vn},sub:function(){return Dn},subtract:function(){return mr},targetTo:function(){return kr},translate:function(){return yn},transpose:function(){return _r}});var O={};G.r(O),G.d(O,{add:function(){return nt},ceil:function(){return jr},clone:function(){return We},copy:function(){return Xe},create:function(){return bn},cross:function(){return co},dist:function(){return Oo},distance:function(){return Oa},div:function(){return Ss},divide:function(){return xr},dot:function(){return to},equals:function(){return Hi},exactEquals:function(){return _o},floor:function(){return fn},forEach:function(){return Fo},fromValues:function(){return Te},inverse:function(){return wa},len:function(){return wn},length:function(){return ya},lerp:function(){return ni},max:function(){return Bn},min:function(){return xn},mul:function(){return Ro},multiply:function(){return Xt},negate:function(){return oi},normalize:function(){return So},random:function(){return lo},round:function(){return Hn},scale:function(){return ta},scaleAndAdd:function(){return Wa},set:function(){return st},sqrDist:function(){return Zi},sqrLen:function(){return Bo},squaredDistance:function(){return Ba},squaredLength:function(){return ei},str:function(){return ga},sub:function(){return ki},subtract:function(){return vt},transformMat4:function(){return ws},transformQuat:function(){return ko},zero:function(){return yi}});var N={};G.r(N),G.d(N,{add:function(){return Fi},calculateW:function(){return Li},clone:function(){return hi},conjugate:function(){return Vs},copy:function(){return wi},create:function(){return Va},dot:function(){return Ya},equals:function(){return Pa},exactEquals:function(){return zi},exp:function(){return ro},fromEuler:function(){return Ao},fromMat3:function(){return Di},fromValues:function(){return Ki},getAngle:function(){return Mo},getAxisAngle:function(){return Oi},identity:function(){return _s},invert:function(){return vo},len:function(){return ao},length:function(){return Gi},lerp:function(){return Ci},ln:function(){return Qo},mul:function(){return sa},multiply:function(){return ho},normalize:function(){return yo},pow:function(){return ns},random:function(){return la},rotateX:function(){return Ri},rotateY:function(){return Ai},rotateZ:function(){return $o},rotationTo:function(){return Ys},scale:function(){return Fa},set:function(){return no},setAxes:function(){return mo},setAxisAngle:function(){return Ko},slerp:function(){return Bi},sqlerp:function(){return Sf},sqrLen:function(){return po},squaredLength:function(){return go},str:function(){return as}});var L={};G.r(L),G.d(L,{add:function(){return zo},clone:function(){return qn},conjugate:function(){return Yu},copy:function(){return ai},create:function(){return cu},dot:function(){return hu},equals:function(){return Cs},exactEquals:function(){return _f},fromMat4:function(){return si},fromRotation:function(){return is},fromRotationTranslation:function(){return Ui},fromRotationTranslationValues:function(){return Hs},fromTranslation:function(){return Go},fromValues:function(){return un},getDual:function(){return lu},getReal:function(){return Xu},getTranslation:function(){return $i},identity:function(){return Eo},invert:function(){return gu},len:function(){return Ms},length:function(){return Co},lerp:function(){return vu},mul:function(){return fs},multiply:function(){return bo},normalize:function(){return xo},rotateAroundAxis:function(){return $s},rotateByQuatAppend:function(){return ss},rotateByQuatPrepend:function(){return us},rotateX:function(){return Ks},rotateY:function(){return io},rotateZ:function(){return os},scale:function(){return Vu},set:function(){return ju},setDual:function(){return mi},setReal:function(){return du},sqrLen:function(){return Qi},squaredLength:function(){return cs},str:function(){return Hu},translate:function(){return Zs}});var p=G(49685);function E(){var s=new p.ARRAY_TYPE(4);return p.ARRAY_TYPE!=Float32Array&&(s[1]=0,s[2]=0),s[0]=1,s[3]=1,s}function v(s){var I=new p.ARRAY_TYPE(4);return I[0]=s[0],I[1]=s[1],I[2]=s[2],I[3]=s[3],I}function g(s,I){return s[0]=I[0],s[1]=I[1],s[2]=I[2],s[3]=I[3],s}function d(s){return s[0]=1,s[1]=0,s[2]=0,s[3]=1,s}function M(s,I,ue,Ee){var Ce=new p.ARRAY_TYPE(4);return Ce[0]=s,Ce[1]=I,Ce[2]=ue,Ce[3]=Ee,Ce}function m(s,I,ue,Ee,Ce){return s[0]=I,s[1]=ue,s[2]=Ee,s[3]=Ce,s}function x(s,I){if(s===I){var ue=I[1];s[1]=I[2],s[2]=ue}else s[0]=I[0],s[1]=I[2],s[2]=I[1],s[3]=I[3];return s}function T(s,I){var ue=I[0],Ee=I[1],Ce=I[2],ke=I[3],Re=ue*ke-Ce*Ee;return Re?(Re=1/Re,s[0]=ke*Re,s[1]=-Ee*Re,s[2]=-Ce*Re,s[3]=ue*Re,s):null}function R(s,I){var ue=I[0];return s[0]=I[3],s[1]=-I[1],s[2]=-I[2],s[3]=ue,s}function w(s){return s[0]*s[3]-s[2]*s[1]}function b(s,I,ue){var Ee=I[0],Ce=I[1],ke=I[2],Re=I[3],Ve=ue[0],$e=ue[1],ft=ue[2],_t=ue[3];return s[0]=Ee*Ve+ke*$e,s[1]=Ce*Ve+Re*$e,s[2]=Ee*ft+ke*_t,s[3]=Ce*ft+Re*_t,s}function $(s,I,ue){var Ee=I[0],Ce=I[1],ke=I[2],Re=I[3],Ve=Math.sin(ue),$e=Math.cos(ue);return s[0]=Ee*$e+ke*Ve,s[1]=Ce*$e+Re*Ve,s[2]=Ee*-Ve+ke*$e,s[3]=Ce*-Ve+Re*$e,s}function j(s,I,ue){var Ee=I[0],Ce=I[1],ke=I[2],Re=I[3],Ve=ue[0],$e=ue[1];return s[0]=Ee*Ve,s[1]=Ce*Ve,s[2]=ke*$e,s[3]=Re*$e,s}function X(s,I){var ue=Math.sin(I),Ee=Math.cos(I);return s[0]=Ee,s[1]=ue,s[2]=-ue,s[3]=Ee,s}function H(s,I){return s[0]=I[0],s[1]=0,s[2]=0,s[3]=I[1],s}function J(s){return"mat2("+s[0]+", "+s[1]+", "+s[2]+", "+s[3]+")"}function q(s){return Math.hypot(s[0],s[1],s[2],s[3])}function Q(s,I,ue,Ee){return s[2]=Ee[2]/Ee[0],ue[0]=Ee[0],ue[1]=Ee[1],ue[3]=Ee[3]-s[2]*ue[1],[s,I,ue]}function te(s,I,ue){return s[0]=I[0]+ue[0],s[1]=I[1]+ue[1],s[2]=I[2]+ue[2],s[3]=I[3]+ue[3],s}function fe(s,I,ue){return s[0]=I[0]-ue[0],s[1]=I[1]-ue[1],s[2]=I[2]-ue[2],s[3]=I[3]-ue[3],s}function ye(s,I){return s[0]===I[0]&&s[1]===I[1]&&s[2]===I[2]&&s[3]===I[3]}function me(s,I){var ue=s[0],Ee=s[1],Ce=s[2],ke=s[3],Re=I[0],Ve=I[1],$e=I[2],ft=I[3];return Math.abs(ue-Re)<=p.EPSILON*Math.max(1,Math.abs(ue),Math.abs(Re))&&Math.abs(Ee-Ve)<=p.EPSILON*Math.max(1,Math.abs(Ee),Math.abs(Ve))&&Math.abs(Ce-$e)<=p.EPSILON*Math.max(1,Math.abs(Ce),Math.abs($e))&&Math.abs(ke-ft)<=p.EPSILON*Math.max(1,Math.abs(ke),Math.abs(ft))}function ge(s,I,ue){return s[0]=I[0]*ue,s[1]=I[1]*ue,s[2]=I[2]*ue,s[3]=I[3]*ue,s}function be(s,I,ue,Ee){return s[0]=I[0]+ue[0]*Ee,s[1]=I[1]+ue[1]*Ee,s[2]=I[2]+ue[2]*Ee,s[3]=I[3]+ue[3]*Ee,s}var ve=b,_e=fe;function De(){var s=new p.ARRAY_TYPE(6);return p.ARRAY_TYPE!=Float32Array&&(s[1]=0,s[2]=0,s[4]=0,s[5]=0),s[0]=1,s[3]=1,s}function Ge(s){var I=new p.ARRAY_TYPE(6);return I[0]=s[0],I[1]=s[1],I[2]=s[2],I[3]=s[3],I[4]=s[4],I[5]=s[5],I}function tt(s,I){return s[0]=I[0],s[1]=I[1],s[2]=I[2],s[3]=I[3],s[4]=I[4],s[5]=I[5],s}function St(s){return s[0]=1,s[1]=0,s[2]=0,s[3]=1,s[4]=0,s[5]=0,s}function at(s,I,ue,Ee,Ce,ke){var Re=new p.ARRAY_TYPE(6);return Re[0]=s,Re[1]=I,Re[2]=ue,Re[3]=Ee,Re[4]=Ce,Re[5]=ke,Re}function Mt(s,I,ue,Ee,Ce,ke,Re){return s[0]=I,s[1]=ue,s[2]=Ee,s[3]=Ce,s[4]=ke,s[5]=Re,s}function Wt(s,I){var ue=I[0],Ee=I[1],Ce=I[2],ke=I[3],Re=I[4],Ve=I[5],$e=ue*ke-Ee*Ce;return $e?($e=1/$e,s[0]=ke*$e,s[1]=-Ee*$e,s[2]=-Ce*$e,s[3]=ue*$e,s[4]=(Ce*Ve-ke*Re)*$e,s[5]=(Ee*Re-ue*Ve)*$e,s):null}function er(s){return s[0]*s[3]-s[1]*s[2]}function it(s,I,ue){var Ee=I[0],Ce=I[1],ke=I[2],Re=I[3],Ve=I[4],$e=I[5],ft=ue[0],_t=ue[1],ir=ue[2],cr=ue[3],rr=ue[4],Ar=ue[5];return s[0]=Ee*ft+ke*_t,s[1]=Ce*ft+Re*_t,s[2]=Ee*ir+ke*cr,s[3]=Ce*ir+Re*cr,s[4]=Ee*rr+ke*Ar+Ve,s[5]=Ce*rr+Re*Ar+$e,s}function yt(s,I,ue){var Ee=I[0],Ce=I[1],ke=I[2],Re=I[3],Ve=I[4],$e=I[5],ft=Math.sin(ue),_t=Math.cos(ue);return s[0]=Ee*_t+ke*ft,s[1]=Ce*_t+Re*ft,s[2]=Ee*-ft+ke*_t,s[3]=Ce*-ft+Re*_t,s[4]=Ve,s[5]=$e,s}function bt(s,I,ue){var Ee=I[0],Ce=I[1],ke=I[2],Re=I[3],Ve=I[4],$e=I[5],ft=ue[0],_t=ue[1];return s[0]=Ee*ft,s[1]=Ce*ft,s[2]=ke*_t,s[3]=Re*_t,s[4]=Ve,s[5]=$e,s}function Ft(s,I,ue){var Ee=I[0],Ce=I[1],ke=I[2],Re=I[3],Ve=I[4],$e=I[5],ft=ue[0],_t=ue[1];return s[0]=Ee,s[1]=Ce,s[2]=ke,s[3]=Re,s[4]=Ee*ft+ke*_t+Ve,s[5]=Ce*ft+Re*_t+$e,s}function wt(s,I){var ue=Math.sin(I),Ee=Math.cos(I);return s[0]=Ee,s[1]=ue,s[2]=-ue,s[3]=Ee,s[4]=0,s[5]=0,s}function pt(s,I){return s[0]=I[0],s[1]=0,s[2]=0,s[3]=I[1],s[4]=0,s[5]=0,s}function sr(s,I){return s[0]=1,s[1]=0,s[2]=0,s[3]=1,s[4]=I[0],s[5]=I[1],s}function Ur(s){return"mat2d("+s[0]+", "+s[1]+", "+s[2]+", "+s[3]+", "+s[4]+", "+s[5]+")"}function Zt(s){return Math.hypot(s[0],s[1],s[2],s[3],s[4],s[5],1)}function ut(s,I,ue){return s[0]=I[0]+ue[0],s[1]=I[1]+ue[1],s[2]=I[2]+ue[2],s[3]=I[3]+ue[3],s[4]=I[4]+ue[4],s[5]=I[5]+ue[5],s}function Rt(s,I,ue){return s[0]=I[0]-ue[0],s[1]=I[1]-ue[1],s[2]=I[2]-ue[2],s[3]=I[3]-ue[3],s[4]=I[4]-ue[4],s[5]=I[5]-ue[5],s}function tr(s,I,ue){return s[0]=I[0]*ue,s[1]=I[1]*ue,s[2]=I[2]*ue,s[3]=I[3]*ue,s[4]=I[4]*ue,s[5]=I[5]*ue,s}function wr(s,I,ue,Ee){return s[0]=I[0]+ue[0]*Ee,s[1]=I[1]+ue[1]*Ee,s[2]=I[2]+ue[2]*Ee,s[3]=I[3]+ue[3]*Ee,s[4]=I[4]+ue[4]*Ee,s[5]=I[5]+ue[5]*Ee,s}function Vr(s,I){return s[0]===I[0]&&s[1]===I[1]&&s[2]===I[2]&&s[3]===I[3]&&s[4]===I[4]&&s[5]===I[5]}function Oe(s,I){var ue=s[0],Ee=s[1],Ce=s[2],ke=s[3],Re=s[4],Ve=s[5],$e=I[0],ft=I[1],_t=I[2],ir=I[3],cr=I[4],rr=I[5];return Math.abs(ue-$e)<=p.EPSILON*Math.max(1,Math.abs(ue),Math.abs($e))&&Math.abs(Ee-ft)<=p.EPSILON*Math.max(1,Math.abs(Ee),Math.abs(ft))&&Math.abs(Ce-_t)<=p.EPSILON*Math.max(1,Math.abs(Ce),Math.abs(_t))&&Math.abs(ke-ir)<=p.EPSILON*Math.max(1,Math.abs(ke),Math.abs(ir))&&Math.abs(Re-cr)<=p.EPSILON*Math.max(1,Math.abs(Re),Math.abs(cr))&&Math.abs(Ve-rr)<=p.EPSILON*Math.max(1,Math.abs(Ve),Math.abs(rr))}var Dt=it,zt=Rt,Sr=G(35600);function dr(){var s=new p.ARRAY_TYPE(16);return p.ARRAY_TYPE!=Float32Array&&(s[1]=0,s[2]=0,s[3]=0,s[4]=0,s[6]=0,s[7]=0,s[8]=0,s[9]=0,s[11]=0,s[12]=0,s[13]=0,s[14]=0),s[0]=1,s[5]=1,s[10]=1,s[15]=1,s}function Fr(s){var I=new p.ARRAY_TYPE(16);return I[0]=s[0],I[1]=s[1],I[2]=s[2],I[3]=s[3],I[4]=s[4],I[5]=s[5],I[6]=s[6],I[7]=s[7],I[8]=s[8],I[9]=s[9],I[10]=s[10],I[11]=s[11],I[12]=s[12],I[13]=s[13],I[14]=s[14],I[15]=s[15],I}function nn(s,I){return s[0]=I[0],s[1]=I[1],s[2]=I[2],s[3]=I[3],s[4]=I[4],s[5]=I[5],s[6]=I[6],s[7]=I[7],s[8]=I[8],s[9]=I[9],s[10]=I[10],s[11]=I[11],s[12]=I[12],s[13]=I[13],s[14]=I[14],s[15]=I[15],s}function $r(s,I,ue,Ee,Ce,ke,Re,Ve,$e,ft,_t,ir,cr,rr,Ar,Mr){var hr=new p.ARRAY_TYPE(16);return hr[0]=s,hr[1]=I,hr[2]=ue,hr[3]=Ee,hr[4]=Ce,hr[5]=ke,hr[6]=Re,hr[7]=Ve,hr[8]=$e,hr[9]=ft,hr[10]=_t,hr[11]=ir,hr[12]=cr,hr[13]=rr,hr[14]=Ar,hr[15]=Mr,hr}function Wr(s,I,ue,Ee,Ce,ke,Re,Ve,$e,ft,_t,ir,cr,rr,Ar,Mr,hr){return s[0]=I,s[1]=ue,s[2]=Ee,s[3]=Ce,s[4]=ke,s[5]=Re,s[6]=Ve,s[7]=$e,s[8]=ft,s[9]=_t,s[10]=ir,s[11]=cr,s[12]=rr,s[13]=Ar,s[14]=Mr,s[15]=hr,s}function tn(s){return s[0]=1,s[1]=0,s[2]=0,s[3]=0,s[4]=0,s[5]=1,s[6]=0,s[7]=0,s[8]=0,s[9]=0,s[10]=1,s[11]=0,s[12]=0,s[13]=0,s[14]=0,s[15]=1,s}function _r(s,I){if(s===I){var ue=I[1],Ee=I[2],Ce=I[3],ke=I[6],Re=I[7],Ve=I[11];s[1]=I[4],s[2]=I[8],s[3]=I[12],s[4]=ue,s[6]=I[9],s[7]=I[13],s[8]=Ee,s[9]=ke,s[11]=I[14],s[12]=Ce,s[13]=Re,s[14]=Ve}else s[0]=I[0],s[1]=I[4],s[2]=I[8],s[3]=I[12],s[4]=I[1],s[5]=I[5],s[6]=I[9],s[7]=I[13],s[8]=I[2],s[9]=I[6],s[10]=I[10],s[11]=I[14],s[12]=I[3],s[13]=I[7],s[14]=I[11],s[15]=I[15];return s}function pr(s,I){var ue=I[0],Ee=I[1],Ce=I[2],ke=I[3],Re=I[4],Ve=I[5],$e=I[6],ft=I[7],_t=I[8],ir=I[9],cr=I[10],rr=I[11],Ar=I[12],Mr=I[13],hr=I[14],rn=I[15],Zn=ue*Ve-Ee*Re,Kn=ue*$e-Ce*Re,Fn=ue*ft-ke*Re,_n=Ee*$e-Ce*Ve,Mn=Ee*ft-ke*Ve,Ga=Ce*ft-ke*$e,ti=_t*Mr-ir*Ar,Ka=_t*hr-cr*Ar,$a=_t*rn-rr*Ar,Ha=ir*hr-cr*Mr,ui=ir*rn-rr*Mr,Ei=cr*rn-rr*hr,ua=Zn*Ei-Kn*ui+Fn*Ha+_n*$a-Mn*Ka+Ga*ti;return ua?(ua=1/ua,s[0]=(Ve*Ei-$e*ui+ft*Ha)*ua,s[1]=(Ce*ui-Ee*Ei-ke*Ha)*ua,s[2]=(Mr*Ga-hr*Mn+rn*_n)*ua,s[3]=(cr*Mn-ir*Ga-rr*_n)*ua,s[4]=($e*$a-Re*Ei-ft*Ka)*ua,s[5]=(ue*Ei-Ce*$a+ke*Ka)*ua,s[6]=(hr*Fn-Ar*Ga-rn*Kn)*ua,s[7]=(_t*Ga-cr*Fn+rr*Kn)*ua,s[8]=(Re*ui-Ve*$a+ft*ti)*ua,s[9]=(Ee*$a-ue*ui-ke*ti)*ua,s[10]=(Ar*Mn-Mr*Fn+rn*Zn)*ua,s[11]=(ir*Fn-_t*Mn-rr*Zn)*ua,s[12]=(Ve*Ka-Re*Ha-$e*ti)*ua,s[13]=(ue*Ha-Ee*Ka+Ce*ti)*ua,s[14]=(Mr*Kn-Ar*_n-hr*Zn)*ua,s[15]=(_t*_n-ir*Kn+cr*Zn)*ua,s):null}function Rr(s,I){var ue=I[0],Ee=I[1],Ce=I[2],ke=I[3],Re=I[4],Ve=I[5],$e=I[6],ft=I[7],_t=I[8],ir=I[9],cr=I[10],rr=I[11],Ar=I[12],Mr=I[13],hr=I[14],rn=I[15];return s[0]=Ve*(cr*rn-rr*hr)-ir*($e*rn-ft*hr)+Mr*($e*rr-ft*cr),s[1]=-(Ee*(cr*rn-rr*hr)-ir*(Ce*rn-ke*hr)+Mr*(Ce*rr-ke*cr)),s[2]=Ee*($e*rn-ft*hr)-Ve*(Ce*rn-ke*hr)+Mr*(Ce*ft-ke*$e),s[3]=-(Ee*($e*rr-ft*cr)-Ve*(Ce*rr-ke*cr)+ir*(Ce*ft-ke*$e)),s[4]=-(Re*(cr*rn-rr*hr)-_t*($e*rn-ft*hr)+Ar*($e*rr-ft*cr)),s[5]=ue*(cr*rn-rr*hr)-_t*(Ce*rn-ke*hr)+Ar*(Ce*rr-ke*cr),s[6]=-(ue*($e*rn-ft*hr)-Re*(Ce*rn-ke*hr)+Ar*(Ce*ft-ke*$e)),s[7]=ue*($e*rr-ft*cr)-Re*(Ce*rr-ke*cr)+_t*(Ce*ft-ke*$e),s[8]=Re*(ir*rn-rr*Mr)-_t*(Ve*rn-ft*Mr)+Ar*(Ve*rr-ft*ir),s[9]=-(ue*(ir*rn-rr*Mr)-_t*(Ee*rn-ke*Mr)+Ar*(Ee*rr-ke*ir)),s[10]=ue*(Ve*rn-ft*Mr)-Re*(Ee*rn-ke*Mr)+Ar*(Ee*ft-ke*Ve),s[11]=-(ue*(Ve*rr-ft*ir)-Re*(Ee*rr-ke*ir)+_t*(Ee*ft-ke*Ve)),s[12]=-(Re*(ir*hr-cr*Mr)-_t*(Ve*hr-$e*Mr)+Ar*(Ve*cr-$e*ir)),s[13]=ue*(ir*hr-cr*Mr)-_t*(Ee*hr-Ce*Mr)+Ar*(Ee*cr-Ce*ir),s[14]=-(ue*(Ve*hr-$e*Mr)-Re*(Ee*hr-Ce*Mr)+Ar*(Ee*$e-Ce*Ve)),s[15]=ue*(Ve*cr-$e*ir)-Re*(Ee*cr-Ce*ir)+_t*(Ee*$e-Ce*Ve),s}function sn(s){var I=s[0],ue=s[1],Ee=s[2],Ce=s[3],ke=s[4],Re=s[5],Ve=s[6],$e=s[7],ft=s[8],_t=s[9],ir=s[10],cr=s[11],rr=s[12],Ar=s[13],Mr=s[14],hr=s[15],rn=I*Re-ue*ke,Zn=I*Ve-Ee*ke,Kn=I*$e-Ce*ke,Fn=ue*Ve-Ee*Re,_n=ue*$e-Ce*Re,Mn=Ee*$e-Ce*Ve,Ga=ft*Ar-_t*rr,ti=ft*Mr-ir*rr,Ka=ft*hr-cr*rr,$a=_t*Mr-ir*Ar,Ha=_t*hr-cr*Ar,ui=ir*hr-cr*Mr;return rn*ui-Zn*Ha+Kn*$a+Fn*Ka-_n*ti+Mn*Ga}function gn(s,I,ue){var Ee=I[0],Ce=I[1],ke=I[2],Re=I[3],Ve=I[4],$e=I[5],ft=I[6],_t=I[7],ir=I[8],cr=I[9],rr=I[10],Ar=I[11],Mr=I[12],hr=I[13],rn=I[14],Zn=I[15],Kn=ue[0],Fn=ue[1],_n=ue[2],Mn=ue[3];return s[0]=Kn*Ee+Fn*Ve+_n*ir+Mn*Mr,s[1]=Kn*Ce+Fn*$e+_n*cr+Mn*hr,s[2]=Kn*ke+Fn*ft+_n*rr+Mn*rn,s[3]=Kn*Re+Fn*_t+_n*Ar+Mn*Zn,Kn=ue[4],Fn=ue[5],_n=ue[6],Mn=ue[7],s[4]=Kn*Ee+Fn*Ve+_n*ir+Mn*Mr,s[5]=Kn*Ce+Fn*$e+_n*cr+Mn*hr,s[6]=Kn*ke+Fn*ft+_n*rr+Mn*rn,s[7]=Kn*Re+Fn*_t+_n*Ar+Mn*Zn,Kn=ue[8],Fn=ue[9],_n=ue[10],Mn=ue[11],s[8]=Kn*Ee+Fn*Ve+_n*ir+Mn*Mr,s[9]=Kn*Ce+Fn*$e+_n*cr+Mn*hr,s[10]=Kn*ke+Fn*ft+_n*rr+Mn*rn,s[11]=Kn*Re+Fn*_t+_n*Ar+Mn*Zn,Kn=ue[12],Fn=ue[13],_n=ue[14],Mn=ue[15],s[12]=Kn*Ee+Fn*Ve+_n*ir+Mn*Mr,s[13]=Kn*Ce+Fn*$e+_n*cr+Mn*hr,s[14]=Kn*ke+Fn*ft+_n*rr+Mn*rn,s[15]=Kn*Re+Fn*_t+_n*Ar+Mn*Zn,s}function yn(s,I,ue){var Ee=ue[0],Ce=ue[1],ke=ue[2],Re,Ve,$e,ft,_t,ir,cr,rr,Ar,Mr,hr,rn;return I===s?(s[12]=I[0]*Ee+I[4]*Ce+I[8]*ke+I[12],s[13]=I[1]*Ee+I[5]*Ce+I[9]*ke+I[13],s[14]=I[2]*Ee+I[6]*Ce+I[10]*ke+I[14],s[15]=I[3]*Ee+I[7]*Ce+I[11]*ke+I[15]):(Re=I[0],Ve=I[1],$e=I[2],ft=I[3],_t=I[4],ir=I[5],cr=I[6],rr=I[7],Ar=I[8],Mr=I[9],hr=I[10],rn=I[11],s[0]=Re,s[1]=Ve,s[2]=$e,s[3]=ft,s[4]=_t,s[5]=ir,s[6]=cr,s[7]=rr,s[8]=Ar,s[9]=Mr,s[10]=hr,s[11]=rn,s[12]=Re*Ee+_t*Ce+Ar*ke+I[12],s[13]=Ve*Ee+ir*Ce+Mr*ke+I[13],s[14]=$e*Ee+cr*Ce+hr*ke+I[14],s[15]=ft*Ee+rr*Ce+rn*ke+I[15]),s}function fa(s,I,ue){var Ee=ue[0],Ce=ue[1],ke=ue[2];return s[0]=I[0]*Ee,s[1]=I[1]*Ee,s[2]=I[2]*Ee,s[3]=I[3]*Ee,s[4]=I[4]*Ce,s[5]=I[5]*Ce,s[6]=I[6]*Ce,s[7]=I[7]*Ce,s[8]=I[8]*ke,s[9]=I[9]*ke,s[10]=I[10]*ke,s[11]=I[11]*ke,s[12]=I[12],s[13]=I[13],s[14]=I[14],s[15]=I[15],s}function ca(s,I,ue,Ee){var Ce=Ee[0],ke=Ee[1],Re=Ee[2],Ve=Math.hypot(Ce,ke,Re),$e,ft,_t,ir,cr,rr,Ar,Mr,hr,rn,Zn,Kn,Fn,_n,Mn,Ga,ti,Ka,$a,Ha,ui,Ei,ua,Aa;return Ve0?(ue[0]=(Ve*Re+_t*Ee+$e*ke-ft*Ce)*2/ir,ue[1]=($e*Re+_t*Ce+ft*Ee-Ve*ke)*2/ir,ue[2]=(ft*Re+_t*ke+Ve*Ce-$e*Ee)*2/ir):(ue[0]=(Ve*Re+_t*Ee+$e*ke-ft*Ce)*2,ue[1]=($e*Re+_t*Ce+ft*Ee-Ve*ke)*2,ue[2]=(ft*Re+_t*ke+Ve*Ce-$e*Ee)*2),Ot(s,I,ue),s}function ne(s,I){return s[0]=I[12],s[1]=I[13],s[2]=I[14],s}function ae(s,I){var ue=I[0],Ee=I[1],Ce=I[2],ke=I[4],Re=I[5],Ve=I[6],$e=I[8],ft=I[9],_t=I[10];return s[0]=Math.hypot(ue,Ee,Ce),s[1]=Math.hypot(ke,Re,Ve),s[2]=Math.hypot($e,ft,_t),s}function P(s,I){var ue=new p.ARRAY_TYPE(3);ae(ue,I);var Ee=1/ue[0],Ce=1/ue[1],ke=1/ue[2],Re=I[0]*Ee,Ve=I[1]*Ce,$e=I[2]*ke,ft=I[4]*Ee,_t=I[5]*Ce,ir=I[6]*ke,cr=I[8]*Ee,rr=I[9]*Ce,Ar=I[10]*ke,Mr=Re+_t+Ar,hr=0;return Mr>0?(hr=Math.sqrt(Mr+1)*2,s[3]=.25*hr,s[0]=(ir-rr)/hr,s[1]=(cr-$e)/hr,s[2]=(Ve-ft)/hr):Re>_t&&Re>Ar?(hr=Math.sqrt(1+Re-_t-Ar)*2,s[3]=(ir-rr)/hr,s[0]=.25*hr,s[1]=(Ve+ft)/hr,s[2]=(cr+$e)/hr):_t>Ar?(hr=Math.sqrt(1+_t-Re-Ar)*2,s[3]=(cr-$e)/hr,s[0]=(Ve+ft)/hr,s[1]=.25*hr,s[2]=(ir+rr)/hr):(hr=Math.sqrt(1+Ar-Re-_t)*2,s[3]=(Ve-ft)/hr,s[0]=(cr+$e)/hr,s[1]=(ir+rr)/hr,s[2]=.25*hr),s}function S(s,I,ue,Ee){var Ce=I[0],ke=I[1],Re=I[2],Ve=I[3],$e=Ce+Ce,ft=ke+ke,_t=Re+Re,ir=Ce*$e,cr=Ce*ft,rr=Ce*_t,Ar=ke*ft,Mr=ke*_t,hr=Re*_t,rn=Ve*$e,Zn=Ve*ft,Kn=Ve*_t,Fn=Ee[0],_n=Ee[1],Mn=Ee[2];return s[0]=(1-(Ar+hr))*Fn,s[1]=(cr+Kn)*Fn,s[2]=(rr-Zn)*Fn,s[3]=0,s[4]=(cr-Kn)*_n,s[5]=(1-(ir+hr))*_n,s[6]=(Mr+rn)*_n,s[7]=0,s[8]=(rr+Zn)*Mn,s[9]=(Mr-rn)*Mn,s[10]=(1-(ir+Ar))*Mn,s[11]=0,s[12]=ue[0],s[13]=ue[1],s[14]=ue[2],s[15]=1,s}function C(s,I,ue,Ee,Ce){var ke=I[0],Re=I[1],Ve=I[2],$e=I[3],ft=ke+ke,_t=Re+Re,ir=Ve+Ve,cr=ke*ft,rr=ke*_t,Ar=ke*ir,Mr=Re*_t,hr=Re*ir,rn=Ve*ir,Zn=$e*ft,Kn=$e*_t,Fn=$e*ir,_n=Ee[0],Mn=Ee[1],Ga=Ee[2],ti=Ce[0],Ka=Ce[1],$a=Ce[2],Ha=(1-(Mr+rn))*_n,ui=(rr+Fn)*_n,Ei=(Ar-Kn)*_n,ua=(rr-Fn)*Mn,Aa=(1-(cr+rn))*Mn,Jo=(hr+Zn)*Mn,Uo=(Ar+Kn)*Ga,oo=(hr-Zn)*Ga,Qs=(1-(cr+Mr))*Ga;return s[0]=Ha,s[1]=ui,s[2]=Ei,s[3]=0,s[4]=ua,s[5]=Aa,s[6]=Jo,s[7]=0,s[8]=Uo,s[9]=oo,s[10]=Qs,s[11]=0,s[12]=ue[0]+ti-(Ha*ti+ua*Ka+Uo*$a),s[13]=ue[1]+Ka-(ui*ti+Aa*Ka+oo*$a),s[14]=ue[2]+$a-(Ei*ti+Jo*Ka+Qs*$a),s[15]=1,s}function V(s,I){var ue=I[0],Ee=I[1],Ce=I[2],ke=I[3],Re=ue+ue,Ve=Ee+Ee,$e=Ce+Ce,ft=ue*Re,_t=Ee*Re,ir=Ee*Ve,cr=Ce*Re,rr=Ce*Ve,Ar=Ce*$e,Mr=ke*Re,hr=ke*Ve,rn=ke*$e;return s[0]=1-ir-Ar,s[1]=_t+rn,s[2]=cr-hr,s[3]=0,s[4]=_t-rn,s[5]=1-ft-Ar,s[6]=rr+Mr,s[7]=0,s[8]=cr+hr,s[9]=rr-Mr,s[10]=1-ft-ir,s[11]=0,s[12]=0,s[13]=0,s[14]=0,s[15]=1,s}function de(s,I,ue,Ee,Ce,ke,Re){var Ve=1/(ue-I),$e=1/(Ce-Ee),ft=1/(ke-Re);return s[0]=ke*2*Ve,s[1]=0,s[2]=0,s[3]=0,s[4]=0,s[5]=ke*2*$e,s[6]=0,s[7]=0,s[8]=(ue+I)*Ve,s[9]=(Ce+Ee)*$e,s[10]=(Re+ke)*ft,s[11]=-1,s[12]=0,s[13]=0,s[14]=Re*ke*2*ft,s[15]=0,s}function Se(s,I,ue,Ee,Ce){var ke=1/Math.tan(I/2),Re;return s[0]=ke/ue,s[1]=0,s[2]=0,s[3]=0,s[4]=0,s[5]=ke,s[6]=0,s[7]=0,s[8]=0,s[9]=0,s[11]=-1,s[12]=0,s[13]=0,s[15]=0,Ce!=null&&Ce!==Infinity?(Re=1/(Ee-Ce),s[10]=(Ce+Ee)*Re,s[14]=2*Ce*Ee*Re):(s[10]=-1,s[14]=-2*Ee),s}var xe=Se;function Le(s,I,ue,Ee,Ce){var ke=1/Math.tan(I/2),Re;return s[0]=ke/ue,s[1]=0,s[2]=0,s[3]=0,s[4]=0,s[5]=ke,s[6]=0,s[7]=0,s[8]=0,s[9]=0,s[11]=-1,s[12]=0,s[13]=0,s[15]=0,Ce!=null&&Ce!==Infinity?(Re=1/(Ee-Ce),s[10]=Ce*Re,s[14]=Ce*Ee*Re):(s[10]=-1,s[14]=-Ee),s}function ht(s,I,ue,Ee){var Ce=Math.tan(I.upDegrees*Math.PI/180),ke=Math.tan(I.downDegrees*Math.PI/180),Re=Math.tan(I.leftDegrees*Math.PI/180),Ve=Math.tan(I.rightDegrees*Math.PI/180),$e=2/(Re+Ve),ft=2/(Ce+ke);return s[0]=$e,s[1]=0,s[2]=0,s[3]=0,s[4]=0,s[5]=ft,s[6]=0,s[7]=0,s[8]=-((Re-Ve)*$e*.5),s[9]=(Ce-ke)*ft*.5,s[10]=Ee/(ue-Ee),s[11]=-1,s[12]=0,s[13]=0,s[14]=Ee*ue/(ue-Ee),s[15]=0,s}function ot(s,I,ue,Ee,Ce,ke,Re){var Ve=1/(I-ue),$e=1/(Ee-Ce),ft=1/(ke-Re);return s[0]=-2*Ve,s[1]=0,s[2]=0,s[3]=0,s[4]=0,s[5]=-2*$e,s[6]=0,s[7]=0,s[8]=0,s[9]=0,s[10]=2*ft,s[11]=0,s[12]=(I+ue)*Ve,s[13]=(Ce+Ee)*$e,s[14]=(Re+ke)*ft,s[15]=1,s}var At=ot;function $t(s,I,ue,Ee,Ce,ke,Re){var Ve=1/(I-ue),$e=1/(Ee-Ce),ft=1/(ke-Re);return s[0]=-2*Ve,s[1]=0,s[2]=0,s[3]=0,s[4]=0,s[5]=-2*$e,s[6]=0,s[7]=0,s[8]=0,s[9]=0,s[10]=ft,s[11]=0,s[12]=(I+ue)*Ve,s[13]=(Ce+Ee)*$e,s[14]=ke*ft,s[15]=1,s}function Yt(s,I,ue,Ee){var Ce,ke,Re,Ve,$e,ft,_t,ir,cr,rr,Ar=I[0],Mr=I[1],hr=I[2],rn=Ee[0],Zn=Ee[1],Kn=Ee[2],Fn=ue[0],_n=ue[1],Mn=ue[2];return Math.abs(Ar-Fn)0&&(rr=1/Math.sqrt(rr),_t*=rr,ir*=rr,cr*=rr);var Ar=$e*cr-ft*ir,Mr=ft*_t-Ve*cr,hr=Ve*ir-$e*_t;return rr=Ar*Ar+Mr*Mr+hr*hr,rr>0&&(rr=1/Math.sqrt(rr),Ar*=rr,Mr*=rr,hr*=rr),s[0]=Ar,s[1]=Mr,s[2]=hr,s[3]=0,s[4]=ir*hr-cr*Mr,s[5]=cr*Ar-_t*hr,s[6]=_t*Mr-ir*Ar,s[7]=0,s[8]=_t,s[9]=ir,s[10]=cr,s[11]=0,s[12]=Ce,s[13]=ke,s[14]=Re,s[15]=1,s}function vn(s){return"mat4("+s[0]+", "+s[1]+", "+s[2]+", "+s[3]+", "+s[4]+", "+s[5]+", "+s[6]+", "+s[7]+", "+s[8]+", "+s[9]+", "+s[10]+", "+s[11]+", "+s[12]+", "+s[13]+", "+s[14]+", "+s[15]+")"}function Ct(s){return Math.hypot(s[0],s[1],s[2],s[3],s[4],s[5],s[6],s[7],s[8],s[9],s[10],s[11],s[12],s[13],s[14],s[15])}function Qt(s,I,ue){return s[0]=I[0]+ue[0],s[1]=I[1]+ue[1],s[2]=I[2]+ue[2],s[3]=I[3]+ue[3],s[4]=I[4]+ue[4],s[5]=I[5]+ue[5],s[6]=I[6]+ue[6],s[7]=I[7]+ue[7],s[8]=I[8]+ue[8],s[9]=I[9]+ue[9],s[10]=I[10]+ue[10],s[11]=I[11]+ue[11],s[12]=I[12]+ue[12],s[13]=I[13]+ue[13],s[14]=I[14]+ue[14],s[15]=I[15]+ue[15],s}function mr(s,I,ue){return s[0]=I[0]-ue[0],s[1]=I[1]-ue[1],s[2]=I[2]-ue[2],s[3]=I[3]-ue[3],s[4]=I[4]-ue[4],s[5]=I[5]-ue[5],s[6]=I[6]-ue[6],s[7]=I[7]-ue[7],s[8]=I[8]-ue[8],s[9]=I[9]-ue[9],s[10]=I[10]-ue[10],s[11]=I[11]-ue[11],s[12]=I[12]-ue[12],s[13]=I[13]-ue[13],s[14]=I[14]-ue[14],s[15]=I[15]-ue[15],s}function en(s,I,ue){return s[0]=I[0]*ue,s[1]=I[1]*ue,s[2]=I[2]*ue,s[3]=I[3]*ue,s[4]=I[4]*ue,s[5]=I[5]*ue,s[6]=I[6]*ue,s[7]=I[7]*ue,s[8]=I[8]*ue,s[9]=I[9]*ue,s[10]=I[10]*ue,s[11]=I[11]*ue,s[12]=I[12]*ue,s[13]=I[13]*ue,s[14]=I[14]*ue,s[15]=I[15]*ue,s}function Pr(s,I,ue,Ee){return s[0]=I[0]+ue[0]*Ee,s[1]=I[1]+ue[1]*Ee,s[2]=I[2]+ue[2]*Ee,s[3]=I[3]+ue[3]*Ee,s[4]=I[4]+ue[4]*Ee,s[5]=I[5]+ue[5]*Ee,s[6]=I[6]+ue[6]*Ee,s[7]=I[7]+ue[7]*Ee,s[8]=I[8]+ue[8]*Ee,s[9]=I[9]+ue[9]*Ee,s[10]=I[10]+ue[10]*Ee,s[11]=I[11]+ue[11]*Ee,s[12]=I[12]+ue[12]*Ee,s[13]=I[13]+ue[13]*Ee,s[14]=I[14]+ue[14]*Ee,s[15]=I[15]+ue[15]*Ee,s}function Qn(s,I){return s[0]===I[0]&&s[1]===I[1]&&s[2]===I[2]&&s[3]===I[3]&&s[4]===I[4]&&s[5]===I[5]&&s[6]===I[6]&&s[7]===I[7]&&s[8]===I[8]&&s[9]===I[9]&&s[10]===I[10]&&s[11]===I[11]&&s[12]===I[12]&&s[13]===I[13]&&s[14]===I[14]&&s[15]===I[15]}function Ln(s,I){var ue=s[0],Ee=s[1],Ce=s[2],ke=s[3],Re=s[4],Ve=s[5],$e=s[6],ft=s[7],_t=s[8],ir=s[9],cr=s[10],rr=s[11],Ar=s[12],Mr=s[13],hr=s[14],rn=s[15],Zn=I[0],Kn=I[1],Fn=I[2],_n=I[3],Mn=I[4],Ga=I[5],ti=I[6],Ka=I[7],$a=I[8],Ha=I[9],ui=I[10],Ei=I[11],ua=I[12],Aa=I[13],Jo=I[14],Uo=I[15];return Math.abs(ue-Zn)<=p.EPSILON*Math.max(1,Math.abs(ue),Math.abs(Zn))&&Math.abs(Ee-Kn)<=p.EPSILON*Math.max(1,Math.abs(Ee),Math.abs(Kn))&&Math.abs(Ce-Fn)<=p.EPSILON*Math.max(1,Math.abs(Ce),Math.abs(Fn))&&Math.abs(ke-_n)<=p.EPSILON*Math.max(1,Math.abs(ke),Math.abs(_n))&&Math.abs(Re-Mn)<=p.EPSILON*Math.max(1,Math.abs(Re),Math.abs(Mn))&&Math.abs(Ve-Ga)<=p.EPSILON*Math.max(1,Math.abs(Ve),Math.abs(Ga))&&Math.abs($e-ti)<=p.EPSILON*Math.max(1,Math.abs($e),Math.abs(ti))&&Math.abs(ft-Ka)<=p.EPSILON*Math.max(1,Math.abs(ft),Math.abs(Ka))&&Math.abs(_t-$a)<=p.EPSILON*Math.max(1,Math.abs(_t),Math.abs($a))&&Math.abs(ir-Ha)<=p.EPSILON*Math.max(1,Math.abs(ir),Math.abs(Ha))&&Math.abs(cr-ui)<=p.EPSILON*Math.max(1,Math.abs(cr),Math.abs(ui))&&Math.abs(rr-Ei)<=p.EPSILON*Math.max(1,Math.abs(rr),Math.abs(Ei))&&Math.abs(Ar-ua)<=p.EPSILON*Math.max(1,Math.abs(Ar),Math.abs(ua))&&Math.abs(Mr-Aa)<=p.EPSILON*Math.max(1,Math.abs(Mr),Math.abs(Aa))&&Math.abs(hr-Jo)<=p.EPSILON*Math.max(1,Math.abs(hr),Math.abs(Jo))&&Math.abs(rn-Uo)<=p.EPSILON*Math.max(1,Math.abs(rn),Math.abs(Uo))}var En=gn,Dn=mr,jn=G(77160);function bn(){var s=new p.ARRAY_TYPE(4);return p.ARRAY_TYPE!=Float32Array&&(s[0]=0,s[1]=0,s[2]=0,s[3]=0),s}function We(s){var I=new p.ARRAY_TYPE(4);return I[0]=s[0],I[1]=s[1],I[2]=s[2],I[3]=s[3],I}function Te(s,I,ue,Ee){var Ce=new p.ARRAY_TYPE(4);return Ce[0]=s,Ce[1]=I,Ce[2]=ue,Ce[3]=Ee,Ce}function Xe(s,I){return s[0]=I[0],s[1]=I[1],s[2]=I[2],s[3]=I[3],s}function st(s,I,ue,Ee,Ce){return s[0]=I,s[1]=ue,s[2]=Ee,s[3]=Ce,s}function nt(s,I,ue){return s[0]=I[0]+ue[0],s[1]=I[1]+ue[1],s[2]=I[2]+ue[2],s[3]=I[3]+ue[3],s}function vt(s,I,ue){return s[0]=I[0]-ue[0],s[1]=I[1]-ue[1],s[2]=I[2]-ue[2],s[3]=I[3]-ue[3],s}function Xt(s,I,ue){return s[0]=I[0]*ue[0],s[1]=I[1]*ue[1],s[2]=I[2]*ue[2],s[3]=I[3]*ue[3],s}function xr(s,I,ue){return s[0]=I[0]/ue[0],s[1]=I[1]/ue[1],s[2]=I[2]/ue[2],s[3]=I[3]/ue[3],s}function jr(s,I){return s[0]=Math.ceil(I[0]),s[1]=Math.ceil(I[1]),s[2]=Math.ceil(I[2]),s[3]=Math.ceil(I[3]),s}function fn(s,I){return s[0]=Math.floor(I[0]),s[1]=Math.floor(I[1]),s[2]=Math.floor(I[2]),s[3]=Math.floor(I[3]),s}function xn(s,I,ue){return s[0]=Math.min(I[0],ue[0]),s[1]=Math.min(I[1],ue[1]),s[2]=Math.min(I[2],ue[2]),s[3]=Math.min(I[3],ue[3]),s}function Bn(s,I,ue){return s[0]=Math.max(I[0],ue[0]),s[1]=Math.max(I[1],ue[1]),s[2]=Math.max(I[2],ue[2]),s[3]=Math.max(I[3],ue[3]),s}function Hn(s,I){return s[0]=Math.round(I[0]),s[1]=Math.round(I[1]),s[2]=Math.round(I[2]),s[3]=Math.round(I[3]),s}function ta(s,I,ue){return s[0]=I[0]*ue,s[1]=I[1]*ue,s[2]=I[2]*ue,s[3]=I[3]*ue,s}function Wa(s,I,ue,Ee){return s[0]=I[0]+ue[0]*Ee,s[1]=I[1]+ue[1]*Ee,s[2]=I[2]+ue[2]*Ee,s[3]=I[3]+ue[3]*Ee,s}function Oa(s,I){var ue=I[0]-s[0],Ee=I[1]-s[1],Ce=I[2]-s[2],ke=I[3]-s[3];return Math.hypot(ue,Ee,Ce,ke)}function Ba(s,I){var ue=I[0]-s[0],Ee=I[1]-s[1],Ce=I[2]-s[2],ke=I[3]-s[3];return ue*ue+Ee*Ee+Ce*Ce+ke*ke}function ya(s){var I=s[0],ue=s[1],Ee=s[2],Ce=s[3];return Math.hypot(I,ue,Ee,Ce)}function ei(s){var I=s[0],ue=s[1],Ee=s[2],Ce=s[3];return I*I+ue*ue+Ee*Ee+Ce*Ce}function oi(s,I){return s[0]=-I[0],s[1]=-I[1],s[2]=-I[2],s[3]=-I[3],s}function wa(s,I){return s[0]=1/I[0],s[1]=1/I[1],s[2]=1/I[2],s[3]=1/I[3],s}function So(s,I){var ue=I[0],Ee=I[1],Ce=I[2],ke=I[3],Re=ue*ue+Ee*Ee+Ce*Ce+ke*ke;return Re>0&&(Re=1/Math.sqrt(Re)),s[0]=ue*Re,s[1]=Ee*Re,s[2]=Ce*Re,s[3]=ke*Re,s}function to(s,I){return s[0]*I[0]+s[1]*I[1]+s[2]*I[2]+s[3]*I[3]}function co(s,I,ue,Ee){var Ce=ue[0]*Ee[1]-ue[1]*Ee[0],ke=ue[0]*Ee[2]-ue[2]*Ee[0],Re=ue[0]*Ee[3]-ue[3]*Ee[0],Ve=ue[1]*Ee[2]-ue[2]*Ee[1],$e=ue[1]*Ee[3]-ue[3]*Ee[1],ft=ue[2]*Ee[3]-ue[3]*Ee[2],_t=I[0],ir=I[1],cr=I[2],rr=I[3];return s[0]=ir*ft-cr*$e+rr*Ve,s[1]=-(_t*ft)+cr*Re-rr*ke,s[2]=_t*$e-ir*Re+rr*Ce,s[3]=-(_t*Ve)+ir*ke-cr*Ce,s}function ni(s,I,ue,Ee){var Ce=I[0],ke=I[1],Re=I[2],Ve=I[3];return s[0]=Ce+Ee*(ue[0]-Ce),s[1]=ke+Ee*(ue[1]-ke),s[2]=Re+Ee*(ue[2]-Re),s[3]=Ve+Ee*(ue[3]-Ve),s}function lo(s,I){I=I||1;var ue,Ee,Ce,ke,Re,Ve;do ue=p.RANDOM()*2-1,Ee=p.RANDOM()*2-1,Re=ue*ue+Ee*Ee;while(Re>=1);do Ce=p.RANDOM()*2-1,ke=p.RANDOM()*2-1,Ve=Ce*Ce+ke*ke;while(Ve>=1);var $e=Math.sqrt((1-Re)/Ve);return s[0]=I*ue,s[1]=I*Ee,s[2]=I*Ce*$e,s[3]=I*ke*$e,s}function ws(s,I,ue){var Ee=I[0],Ce=I[1],ke=I[2],Re=I[3];return s[0]=ue[0]*Ee+ue[4]*Ce+ue[8]*ke+ue[12]*Re,s[1]=ue[1]*Ee+ue[5]*Ce+ue[9]*ke+ue[13]*Re,s[2]=ue[2]*Ee+ue[6]*Ce+ue[10]*ke+ue[14]*Re,s[3]=ue[3]*Ee+ue[7]*Ce+ue[11]*ke+ue[15]*Re,s}function ko(s,I,ue){var Ee=I[0],Ce=I[1],ke=I[2],Re=ue[0],Ve=ue[1],$e=ue[2],ft=ue[3],_t=ft*Ee+Ve*ke-$e*Ce,ir=ft*Ce+$e*Ee-Re*ke,cr=ft*ke+Re*Ce-Ve*Ee,rr=-Re*Ee-Ve*Ce-$e*ke;return s[0]=_t*ft+rr*-Re+ir*-$e-cr*-Ve,s[1]=ir*ft+rr*-Ve+cr*-Re-_t*-$e,s[2]=cr*ft+rr*-$e+_t*-Ve-ir*-Re,s[3]=I[3],s}function yi(s){return s[0]=0,s[1]=0,s[2]=0,s[3]=0,s}function ga(s){return"vec4("+s[0]+", "+s[1]+", "+s[2]+", "+s[3]+")"}function _o(s,I){return s[0]===I[0]&&s[1]===I[1]&&s[2]===I[2]&&s[3]===I[3]}function Hi(s,I){var ue=s[0],Ee=s[1],Ce=s[2],ke=s[3],Re=I[0],Ve=I[1],$e=I[2],ft=I[3];return Math.abs(ue-Re)<=p.EPSILON*Math.max(1,Math.abs(ue),Math.abs(Re))&&Math.abs(Ee-Ve)<=p.EPSILON*Math.max(1,Math.abs(Ee),Math.abs(Ve))&&Math.abs(Ce-$e)<=p.EPSILON*Math.max(1,Math.abs(Ce),Math.abs($e))&&Math.abs(ke-ft)<=p.EPSILON*Math.max(1,Math.abs(ke),Math.abs(ft))}var ki=vt,Ro=Xt,Ss=xr,Oo=Oa,Zi=Ba,wn=ya,Bo=ei,Fo=function(){var s=bn();return function(I,ue,Ee,Ce,ke,Re){var Ve,$e;for(ue||(ue=4),Ee||(Ee=0),Ce?$e=Math.min(Ce*ue+Ee,I.length):$e=I.length,Ve=Ee;Ve<$e;Ve+=ue)s[0]=I[Ve],s[1]=I[Ve+1],s[2]=I[Ve+2],s[3]=I[Ve+3],ke(s,s,Re),I[Ve]=s[0],I[Ve+1]=s[1],I[Ve+2]=s[2],I[Ve+3]=s[3];return I}}();function Va(){var s=new p.ARRAY_TYPE(4);return p.ARRAY_TYPE!=Float32Array&&(s[0]=0,s[1]=0,s[2]=0),s[3]=1,s}function _s(s){return s[0]=0,s[1]=0,s[2]=0,s[3]=1,s}function Ko(s,I,ue){ue=ue*.5;var Ee=Math.sin(ue);return s[0]=Ee*I[0],s[1]=Ee*I[1],s[2]=Ee*I[2],s[3]=Math.cos(ue),s}function Oi(s,I){var ue=Math.acos(I[3])*2,Ee=Math.sin(ue/2);return Ee>p.EPSILON?(s[0]=I[0]/Ee,s[1]=I[1]/Ee,s[2]=I[2]/Ee):(s[0]=1,s[1]=0,s[2]=0),ue}function Mo(s,I){var ue=Ya(s,I);return Math.acos(2*ue*ue-1)}function ho(s,I,ue){var Ee=I[0],Ce=I[1],ke=I[2],Re=I[3],Ve=ue[0],$e=ue[1],ft=ue[2],_t=ue[3];return s[0]=Ee*_t+Re*Ve+Ce*ft-ke*$e,s[1]=Ce*_t+Re*$e+ke*Ve-Ee*ft,s[2]=ke*_t+Re*ft+Ee*$e-Ce*Ve,s[3]=Re*_t-Ee*Ve-Ce*$e-ke*ft,s}function Ri(s,I,ue){ue*=.5;var Ee=I[0],Ce=I[1],ke=I[2],Re=I[3],Ve=Math.sin(ue),$e=Math.cos(ue);return s[0]=Ee*$e+Re*Ve,s[1]=Ce*$e+ke*Ve,s[2]=ke*$e-Ce*Ve,s[3]=Re*$e-Ee*Ve,s}function Ai(s,I,ue){ue*=.5;var Ee=I[0],Ce=I[1],ke=I[2],Re=I[3],Ve=Math.sin(ue),$e=Math.cos(ue);return s[0]=Ee*$e-ke*Ve,s[1]=Ce*$e+Re*Ve,s[2]=ke*$e+Ee*Ve,s[3]=Re*$e-Ce*Ve,s}function $o(s,I,ue){ue*=.5;var Ee=I[0],Ce=I[1],ke=I[2],Re=I[3],Ve=Math.sin(ue),$e=Math.cos(ue);return s[0]=Ee*$e+Ce*Ve,s[1]=Ce*$e-Ee*Ve,s[2]=ke*$e+Re*Ve,s[3]=Re*$e-ke*Ve,s}function Li(s,I){var ue=I[0],Ee=I[1],Ce=I[2];return s[0]=ue,s[1]=Ee,s[2]=Ce,s[3]=Math.sqrt(Math.abs(1-ue*ue-Ee*Ee-Ce*Ce)),s}function ro(s,I){var ue=I[0],Ee=I[1],Ce=I[2],ke=I[3],Re=Math.sqrt(ue*ue+Ee*Ee+Ce*Ce),Ve=Math.exp(ke),$e=Re>0?Ve*Math.sin(Re)/Re:0;return s[0]=ue*$e,s[1]=Ee*$e,s[2]=Ce*$e,s[3]=Ve*Math.cos(Re),s}function Qo(s,I){var ue=I[0],Ee=I[1],Ce=I[2],ke=I[3],Re=Math.sqrt(ue*ue+Ee*Ee+Ce*Ce),Ve=Re>0?Math.atan2(Re,ke)/Re:0;return s[0]=ue*Ve,s[1]=Ee*Ve,s[2]=Ce*Ve,s[3]=.5*Math.log(ue*ue+Ee*Ee+Ce*Ce+ke*ke),s}function ns(s,I,ue){return Qo(s,I),Fa(s,s,ue),ro(s,s),s}function Bi(s,I,ue,Ee){var Ce=I[0],ke=I[1],Re=I[2],Ve=I[3],$e=ue[0],ft=ue[1],_t=ue[2],ir=ue[3],cr,rr,Ar,Mr,hr;return rr=Ce*$e+ke*ft+Re*_t+Ve*ir,rr<0&&(rr=-rr,$e=-$e,ft=-ft,_t=-_t,ir=-ir),1-rr>p.EPSILON?(cr=Math.acos(rr),Ar=Math.sin(cr),Mr=Math.sin((1-Ee)*cr)/Ar,hr=Math.sin(Ee*cr)/Ar):(Mr=1-Ee,hr=Ee),s[0]=Mr*Ce+hr*$e,s[1]=Mr*ke+hr*ft,s[2]=Mr*Re+hr*_t,s[3]=Mr*Ve+hr*ir,s}function la(s){var I=p.RANDOM(),ue=p.RANDOM(),Ee=p.RANDOM(),Ce=Math.sqrt(1-I),ke=Math.sqrt(I);return s[0]=Ce*Math.sin(2*Math.PI*ue),s[1]=Ce*Math.cos(2*Math.PI*ue),s[2]=ke*Math.sin(2*Math.PI*Ee),s[3]=ke*Math.cos(2*Math.PI*Ee),s}function vo(s,I){var ue=I[0],Ee=I[1],Ce=I[2],ke=I[3],Re=ue*ue+Ee*Ee+Ce*Ce+ke*ke,Ve=Re?1/Re:0;return s[0]=-ue*Ve,s[1]=-Ee*Ve,s[2]=-Ce*Ve,s[3]=ke*Ve,s}function Vs(s,I){return s[0]=-I[0],s[1]=-I[1],s[2]=-I[2],s[3]=I[3],s}function Di(s,I){var ue=I[0]+I[4]+I[8],Ee;if(ue>0)Ee=Math.sqrt(ue+1),s[3]=.5*Ee,Ee=.5/Ee,s[0]=(I[5]-I[7])*Ee,s[1]=(I[6]-I[2])*Ee,s[2]=(I[1]-I[3])*Ee;else{var Ce=0;I[4]>I[0]&&(Ce=1),I[8]>I[Ce*3+Ce]&&(Ce=2);var ke=(Ce+1)%3,Re=(Ce+2)%3;Ee=Math.sqrt(I[Ce*3+Ce]-I[ke*3+ke]-I[Re*3+Re]+1),s[Ce]=.5*Ee,Ee=.5/Ee,s[3]=(I[ke*3+Re]-I[Re*3+ke])*Ee,s[ke]=(I[ke*3+Ce]+I[Ce*3+ke])*Ee,s[Re]=(I[Re*3+Ce]+I[Ce*3+Re])*Ee}return s}function Ao(s,I,ue,Ee){var Ce=.5*Math.PI/180;I*=Ce,ue*=Ce,Ee*=Ce;var ke=Math.sin(I),Re=Math.cos(I),Ve=Math.sin(ue),$e=Math.cos(ue),ft=Math.sin(Ee),_t=Math.cos(Ee);return s[0]=ke*$e*_t-Re*Ve*ft,s[1]=Re*Ve*_t+ke*$e*ft,s[2]=Re*$e*ft-ke*Ve*_t,s[3]=Re*$e*_t+ke*Ve*ft,s}function as(s){return"quat("+s[0]+", "+s[1]+", "+s[2]+", "+s[3]+")"}var hi=We,Ki=Te,wi=Xe,no=st,Fi=nt,sa=ho,Fa=ta,Ya=to,Ci=ni,Gi=ya,ao=Gi,go=ei,po=go,yo=So,zi=_o,Pa=Hi,Ys=function(){var s=jn.create(),I=jn.fromValues(1,0,0),ue=jn.fromValues(0,1,0);return function(Ee,Ce,ke){var Re=jn.dot(Ce,ke);return Re<-.999999?(jn.cross(s,I,Ce),jn.len(s)<1e-6&&jn.cross(s,ue,Ce),jn.normalize(s,s),Ko(Ee,s,Math.PI),Ee):Re>.999999?(Ee[0]=0,Ee[1]=0,Ee[2]=0,Ee[3]=1,Ee):(jn.cross(s,Ce,ke),Ee[0]=s[0],Ee[1]=s[1],Ee[2]=s[2],Ee[3]=1+Re,yo(Ee,Ee))}}(),Sf=function(){var s=Va(),I=Va();return function(ue,Ee,Ce,ke,Re,Ve){return Bi(s,Ee,Re,Ve),Bi(I,Ce,ke,Ve),Bi(ue,s,I,2*Ve*(1-Ve)),ue}}(),mo=function(){var s=Sr.create();return function(I,ue,Ee,Ce){return s[0]=Ee[0],s[3]=Ee[1],s[6]=Ee[2],s[1]=Ce[0],s[4]=Ce[1],s[7]=Ce[2],s[2]=-ue[0],s[5]=-ue[1],s[8]=-ue[2],yo(I,Di(I,s))}}();function cu(){var s=new p.ARRAY_TYPE(8);return p.ARRAY_TYPE!=Float32Array&&(s[0]=0,s[1]=0,s[2]=0,s[4]=0,s[5]=0,s[6]=0,s[7]=0),s[3]=1,s}function qn(s){var I=new p.ARRAY_TYPE(8);return I[0]=s[0],I[1]=s[1],I[2]=s[2],I[3]=s[3],I[4]=s[4],I[5]=s[5],I[6]=s[6],I[7]=s[7],I}function un(s,I,ue,Ee,Ce,ke,Re,Ve){var $e=new p.ARRAY_TYPE(8);return $e[0]=s,$e[1]=I,$e[2]=ue,$e[3]=Ee,$e[4]=Ce,$e[5]=ke,$e[6]=Re,$e[7]=Ve,$e}function Hs(s,I,ue,Ee,Ce,ke,Re){var Ve=new p.ARRAY_TYPE(8);Ve[0]=s,Ve[1]=I,Ve[2]=ue,Ve[3]=Ee;var $e=Ce*.5,ft=ke*.5,_t=Re*.5;return Ve[4]=$e*Ee+ft*ue-_t*I,Ve[5]=ft*Ee+_t*s-$e*ue,Ve[6]=_t*Ee+$e*I-ft*s,Ve[7]=-$e*s-ft*I-_t*ue,Ve}function Ui(s,I,ue){var Ee=ue[0]*.5,Ce=ue[1]*.5,ke=ue[2]*.5,Re=I[0],Ve=I[1],$e=I[2],ft=I[3];return s[0]=Re,s[1]=Ve,s[2]=$e,s[3]=ft,s[4]=Ee*ft+Ce*$e-ke*Ve,s[5]=Ce*ft+ke*Re-Ee*$e,s[6]=ke*ft+Ee*Ve-Ce*Re,s[7]=-Ee*Re-Ce*Ve-ke*$e,s}function Go(s,I){return s[0]=0,s[1]=0,s[2]=0,s[3]=1,s[4]=I[0]*.5,s[5]=I[1]*.5,s[6]=I[2]*.5,s[7]=0,s}function is(s,I){return s[0]=I[0],s[1]=I[1],s[2]=I[2],s[3]=I[3],s[4]=0,s[5]=0,s[6]=0,s[7]=0,s}function si(s,I){var ue=Va();P(ue,I);var Ee=new p.ARRAY_TYPE(3);return ne(Ee,I),Ui(s,ue,Ee),s}function ai(s,I){return s[0]=I[0],s[1]=I[1],s[2]=I[2],s[3]=I[3],s[4]=I[4],s[5]=I[5],s[6]=I[6],s[7]=I[7],s}function Eo(s){return s[0]=0,s[1]=0,s[2]=0,s[3]=1,s[4]=0,s[5]=0,s[6]=0,s[7]=0,s}function ju(s,I,ue,Ee,Ce,ke,Re,Ve,$e){return s[0]=I,s[1]=ue,s[2]=Ee,s[3]=Ce,s[4]=ke,s[5]=Re,s[6]=Ve,s[7]=$e,s}var Xu=wi;function lu(s,I){return s[0]=I[4],s[1]=I[5],s[2]=I[6],s[3]=I[7],s}var du=wi;function mi(s,I){return s[4]=I[0],s[5]=I[1],s[6]=I[2],s[7]=I[3],s}function $i(s,I){var ue=I[4],Ee=I[5],Ce=I[6],ke=I[7],Re=-I[0],Ve=-I[1],$e=-I[2],ft=I[3];return s[0]=(ue*ft+ke*Re+Ee*$e-Ce*Ve)*2,s[1]=(Ee*ft+ke*Ve+Ce*Re-ue*$e)*2,s[2]=(Ce*ft+ke*$e+ue*Ve-Ee*Re)*2,s}function Zs(s,I,ue){var Ee=I[0],Ce=I[1],ke=I[2],Re=I[3],Ve=ue[0]*.5,$e=ue[1]*.5,ft=ue[2]*.5,_t=I[4],ir=I[5],cr=I[6],rr=I[7];return s[0]=Ee,s[1]=Ce,s[2]=ke,s[3]=Re,s[4]=Re*Ve+Ce*ft-ke*$e+_t,s[5]=Re*$e+ke*Ve-Ee*ft+ir,s[6]=Re*ft+Ee*$e-Ce*Ve+cr,s[7]=-Ee*Ve-Ce*$e-ke*ft+rr,s}function Ks(s,I,ue){var Ee=-I[0],Ce=-I[1],ke=-I[2],Re=I[3],Ve=I[4],$e=I[5],ft=I[6],_t=I[7],ir=Ve*Re+_t*Ee+$e*ke-ft*Ce,cr=$e*Re+_t*Ce+ft*Ee-Ve*ke,rr=ft*Re+_t*ke+Ve*Ce-$e*Ee,Ar=_t*Re-Ve*Ee-$e*Ce-ft*ke;return Ri(s,I,ue),Ee=s[0],Ce=s[1],ke=s[2],Re=s[3],s[4]=ir*Re+Ar*Ee+cr*ke-rr*Ce,s[5]=cr*Re+Ar*Ce+rr*Ee-ir*ke,s[6]=rr*Re+Ar*ke+ir*Ce-cr*Ee,s[7]=Ar*Re-ir*Ee-cr*Ce-rr*ke,s}function io(s,I,ue){var Ee=-I[0],Ce=-I[1],ke=-I[2],Re=I[3],Ve=I[4],$e=I[5],ft=I[6],_t=I[7],ir=Ve*Re+_t*Ee+$e*ke-ft*Ce,cr=$e*Re+_t*Ce+ft*Ee-Ve*ke,rr=ft*Re+_t*ke+Ve*Ce-$e*Ee,Ar=_t*Re-Ve*Ee-$e*Ce-ft*ke;return Ai(s,I,ue),Ee=s[0],Ce=s[1],ke=s[2],Re=s[3],s[4]=ir*Re+Ar*Ee+cr*ke-rr*Ce,s[5]=cr*Re+Ar*Ce+rr*Ee-ir*ke,s[6]=rr*Re+Ar*ke+ir*Ce-cr*Ee,s[7]=Ar*Re-ir*Ee-cr*Ce-rr*ke,s}function os(s,I,ue){var Ee=-I[0],Ce=-I[1],ke=-I[2],Re=I[3],Ve=I[4],$e=I[5],ft=I[6],_t=I[7],ir=Ve*Re+_t*Ee+$e*ke-ft*Ce,cr=$e*Re+_t*Ce+ft*Ee-Ve*ke,rr=ft*Re+_t*ke+Ve*Ce-$e*Ee,Ar=_t*Re-Ve*Ee-$e*Ce-ft*ke;return $o(s,I,ue),Ee=s[0],Ce=s[1],ke=s[2],Re=s[3],s[4]=ir*Re+Ar*Ee+cr*ke-rr*Ce,s[5]=cr*Re+Ar*Ce+rr*Ee-ir*ke,s[6]=rr*Re+Ar*ke+ir*Ce-cr*Ee,s[7]=Ar*Re-ir*Ee-cr*Ce-rr*ke,s}function ss(s,I,ue){var Ee=ue[0],Ce=ue[1],ke=ue[2],Re=ue[3],Ve=I[0],$e=I[1],ft=I[2],_t=I[3];return s[0]=Ve*Re+_t*Ee+$e*ke-ft*Ce,s[1]=$e*Re+_t*Ce+ft*Ee-Ve*ke,s[2]=ft*Re+_t*ke+Ve*Ce-$e*Ee,s[3]=_t*Re-Ve*Ee-$e*Ce-ft*ke,Ve=I[4],$e=I[5],ft=I[6],_t=I[7],s[4]=Ve*Re+_t*Ee+$e*ke-ft*Ce,s[5]=$e*Re+_t*Ce+ft*Ee-Ve*ke,s[6]=ft*Re+_t*ke+Ve*Ce-$e*Ee,s[7]=_t*Re-Ve*Ee-$e*Ce-ft*ke,s}function us(s,I,ue){var Ee=I[0],Ce=I[1],ke=I[2],Re=I[3],Ve=ue[0],$e=ue[1],ft=ue[2],_t=ue[3];return s[0]=Ee*_t+Re*Ve+Ce*ft-ke*$e,s[1]=Ce*_t+Re*$e+ke*Ve-Ee*ft,s[2]=ke*_t+Re*ft+Ee*$e-Ce*Ve,s[3]=Re*_t-Ee*Ve-Ce*$e-ke*ft,Ve=ue[4],$e=ue[5],ft=ue[6],_t=ue[7],s[4]=Ee*_t+Re*Ve+Ce*ft-ke*$e,s[5]=Ce*_t+Re*$e+ke*Ve-Ee*ft,s[6]=ke*_t+Re*ft+Ee*$e-Ce*Ve,s[7]=Re*_t-Ee*Ve-Ce*$e-ke*ft,s}function $s(s,I,ue,Ee){if(Math.abs(Ee)0){ue=Math.sqrt(ue);var Ee=I[0]/ue,Ce=I[1]/ue,ke=I[2]/ue,Re=I[3]/ue,Ve=I[4],$e=I[5],ft=I[6],_t=I[7],ir=Ee*Ve+Ce*$e+ke*ft+Re*_t;s[0]=Ee,s[1]=Ce,s[2]=ke,s[3]=Re,s[4]=(Ve-Ee*ir)/ue,s[5]=($e-Ce*ir)/ue,s[6]=(ft-ke*ir)/ue,s[7]=(_t-Re*ir)/ue}return s}function Hu(s){return"quat2("+s[0]+", "+s[1]+", "+s[2]+", "+s[3]+", "+s[4]+", "+s[5]+", "+s[6]+", "+s[7]+")"}function _f(s,I){return s[0]===I[0]&&s[1]===I[1]&&s[2]===I[2]&&s[3]===I[3]&&s[4]===I[4]&&s[5]===I[5]&&s[6]===I[6]&&s[7]===I[7]}function Cs(s,I){var ue=s[0],Ee=s[1],Ce=s[2],ke=s[3],Re=s[4],Ve=s[5],$e=s[6],ft=s[7],_t=I[0],ir=I[1],cr=I[2],rr=I[3],Ar=I[4],Mr=I[5],hr=I[6],rn=I[7];return Math.abs(ue-_t)<=p.EPSILON*Math.max(1,Math.abs(ue),Math.abs(_t))&&Math.abs(Ee-ir)<=p.EPSILON*Math.max(1,Math.abs(Ee),Math.abs(ir))&&Math.abs(Ce-cr)<=p.EPSILON*Math.max(1,Math.abs(Ce),Math.abs(cr))&&Math.abs(ke-rr)<=p.EPSILON*Math.max(1,Math.abs(ke),Math.abs(rr))&&Math.abs(Re-Ar)<=p.EPSILON*Math.max(1,Math.abs(Re),Math.abs(Ar))&&Math.abs(Ve-Mr)<=p.EPSILON*Math.max(1,Math.abs(Ve),Math.abs(Mr))&&Math.abs($e-hr)<=p.EPSILON*Math.max(1,Math.abs($e),Math.abs(hr))&&Math.abs(ft-rn)<=p.EPSILON*Math.max(1,Math.abs(ft),Math.abs(rn))}var Mf=G(31437)},38186:function(or){var U=[],G=[],B="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function W(O,N){if(N=N||{},O===void 0)throw new Error(B);var L=N.prepend===!0?"prepend":"append",p=N.container!==void 0?N.container:document.querySelector("head"),E=U.indexOf(p);E===-1&&(E=U.push(p)-1,G[E]={});var v;return G[E]!==void 0&&G[E][L]!==void 0?v=G[E][L]:(v=G[E][L]=k(),L==="prepend"?p.insertBefore(v,p.childNodes[0]):p.appendChild(v)),O.charCodeAt(0)===65279&&(O=O.substr(1,O.length)),v.styleSheet?v.styleSheet.cssText+=O:v.textContent+=O,v}function k(){var O=document.createElement("style");return O.setAttribute("type","text/css"),O}or.exports=W,or.exports.insertCss=W},81763:function(or,U,G){var B=G(44239),W=G(37005),k="[object Number]";function O(N){return typeof N=="number"||W(N)&&B(N)==k}or.exports=O},51496:function(or,U,G){"use strict";G.d(U,{x0:function(){return O}});let B=N=>crypto.getRandomValues(new Uint8Array(N)),W=(N,L,p)=>{let E=(2<{let d="";for(;;){let M=p(v),m=v;for(;m--;)if(d+=N[M[m]&E]||"",d.length===g)return d}}},k=(N,L=21)=>W(N,L,B),O=(N=21)=>crypto.getRandomValues(new Uint8Array(N)).reduce((L,p)=>(p&=63,p<36?L+=p.toString(36):p<62?L+=(p-26).toString(36).toUpperCase():p>62?L+="-":L+="_",L),"")},81550:function(or){(function(U,G){or.exports=G()})(this,function(){"use strict";var U=function(he){return he instanceof Uint8Array||he instanceof Uint16Array||he instanceof Uint32Array||he instanceof Int8Array||he instanceof Int16Array||he instanceof Int32Array||he instanceof Float32Array||he instanceof Float64Array||he instanceof Uint8ClampedArray},G=function(he,Ue){for(var et=Object.keys(Ue),Ht=0;Ht=0&&(he|0)===he||k("invalid parameter type, ("+he+")"+N(Ue)+". must be a nonnegative integer")}function d(he,Ue,et){Ue.indexOf(he)<0&&k("invalid value"+N(et)+". must be one of: "+Ue)}var M=["gl","canvas","container","attributes","pixelRatio","extensions","optionalExtensions","profile","onDone"];function m(he){Object.keys(he).forEach(function(Ue){M.indexOf(Ue)<0&&k('invalid regl constructor argument "'+Ue+'". must be one of '+M)})}function x(he,Ue){for(he=he+"";he.length0&&Ue.push(new w("unknown",0,et))}}),Ue}function H(he,Ue){Ue.forEach(function(et){var Ht=he[et.file];if(Ht){var vr=Ht.index[et.line];if(vr){vr.errors.push(et),Ht.hasErrors=!0;return}}he.unknown.hasErrors=!0,he.unknown.lines[0].errors.push(et)})}function J(he,Ue,et,Ht,vr){if(!he.getShaderParameter(Ue,he.COMPILE_STATUS)){var Vt=he.getShaderInfoLog(Ue),nr=Ht===he.FRAGMENT_SHADER?"fragment":"vertex";ge(et,"string",nr+" shader source must be a string",vr);var Cr=j(et,vr),Or=X(Vt);H(Cr,Or),Object.keys(Cr).forEach(function(Lr){var Ir=Cr[Lr];if(!Ir.hasErrors)return;var Gr=[""],f=[""];function _(F,Y){Gr.push(F),f.push(Y||"")}_("file number "+Lr+": "+Ir.name+` -`,"color:red;text-decoration:underline;font-weight:bold"),Ir.lines.forEach(function(F){if(F.errors.length>0){_(x(F.number,4)+"| ","background-color:yellow; font-weight:bold"),_(F.line+B,"color:red; background-color:yellow; font-weight:bold");var Y=0;F.errors.forEach(function(re){var ie=re.message,le=/^\s*'(.*)'\s*:\s*(.*)$/.exec(ie);if(le){var pe=le[1];switch(ie=le[2],pe){case"assign":pe="=";break}Y=Math.max(F.line.indexOf(pe,Y),0)}else Y=0;_(x("| ",6)),_(x("^^^",Y+3)+B,"font-weight:bold"),_(x("| ",6)),_(ie+B,"font-weight:bold")}),_(x("| ",6)+B)}else _(x(F.number,4)+"| "),_(F.line+B,"color:red")}),typeof document!="undefined"&&!window.chrome?(f[0]=Gr.join("%c"),console.log.apply(console,f)):console.log(Gr.join(""))}),O.raise("Error compiling "+nr+" shader, "+Cr[0].name)}}function q(he,Ue,et,Ht,vr){if(!he.getProgramParameter(Ue,he.LINK_STATUS)){var Vt=he.getProgramInfoLog(Ue),nr=j(et,vr),Cr=j(Ht,vr),Or='Error linking program with vertex shader, "'+Cr[0].name+'", and fragment shader "'+nr[0].name+'"';typeof document!="undefined"?console.log("%c"+Or+B+"%c"+Vt,"color:red;text-decoration:underline;font-weight:bold","color:red"):console.log(Or+B+Vt),O.raise(Or)}}function Q(he){he._commandRef=b()}function te(he,Ue,et,Ht){Q(he);function vr(Or){return Or?Ht.id(Or):0}he._fragId=vr(he.static.frag),he._vertId=vr(he.static.vert);function Vt(Or,Lr){Object.keys(Lr).forEach(function(Ir){Or[Ht.id(Ir)]=!0})}var nr=he._uniformSet={};Vt(nr,Ue.static),Vt(nr,Ue.dynamic);var Cr=he._attributeSet={};Vt(Cr,et.static),Vt(Cr,et.dynamic),he._hasCount="count"in he.static||"count"in he.dynamic||"elements"in he.static||"elements"in he.dynamic}function fe(he,Ue){var et=$();k(he+" in command "+(Ue||b())+(et==="unknown"?"":" called from "+et))}function ye(he,Ue,et){he||fe(Ue,et||b())}function me(he,Ue,et,Ht){he in Ue||fe("unknown parameter ("+he+")"+N(et)+". possible values: "+Object.keys(Ue).join(),Ht||b())}function ge(he,Ue,et,Ht){E(he,Ue)||fe("invalid parameter type"+N(et)+". expected "+Ue+", got "+typeof he,Ht||b())}function be(he){he()}function ve(he,Ue,et){he.texture?d(he.texture._texture.internalformat,Ue,"unsupported texture format for attachment"):d(he.renderbuffer._renderbuffer.format,et,"unsupported renderbuffer format for attachment")}var _e=33071,De=9728,Ge=9984,tt=9985,St=9986,at=9987,Mt=5120,Wt=5121,er=5122,it=5123,yt=5124,bt=5125,Ft=5126,wt=32819,pt=32820,sr=33635,Ur=34042,Zt=36193,ut={};ut[Mt]=ut[Wt]=1,ut[er]=ut[it]=ut[Zt]=ut[sr]=ut[wt]=ut[pt]=2,ut[yt]=ut[bt]=ut[Ft]=ut[Ur]=4;function Rt(he,Ue){return he===pt||he===wt||he===sr?2:he===Ur?4:ut[he]*Ue}function tr(he){return!(he&he-1)&&!!he}function wr(he,Ue,et){var Ht,vr=Ue.width,Vt=Ue.height,nr=Ue.channels;O(vr>0&&vr<=et.maxTextureSize&&Vt>0&&Vt<=et.maxTextureSize,"invalid texture shape"),(he.wrapS!==_e||he.wrapT!==_e)&&O(tr(vr)&&tr(Vt),"incompatible wrap mode for texture, both width and height must be power of 2"),Ue.mipmask===1?vr!==1&&Vt!==1&&O(he.minFilter!==Ge&&he.minFilter!==St&&he.minFilter!==tt&&he.minFilter!==at,"min filter requires mipmap"):(O(tr(vr)&&tr(Vt),"texture must be a square power of 2 to support mipmapping"),O(Ue.mipmask===(vr<<1)-1,"missing or incomplete mipmap data")),Ue.type===Ft&&(et.extensions.indexOf("oes_texture_float_linear")<0&&O(he.minFilter===De&&he.magFilter===De,"filter not supported, must enable oes_texture_float_linear"),O(!he.genMipmaps,"mipmap generation not supported with float textures"));var Cr=Ue.images;for(Ht=0;Ht<16;++Ht)if(Cr[Ht]){var Or=vr>>Ht,Lr=Vt>>Ht;O(Ue.mipmask&1<0&&vr<=Ht.maxTextureSize&&Vt>0&&Vt<=Ht.maxTextureSize,"invalid texture shape"),O(vr===Vt,"cube map must be square"),O(Ue.wrapS===_e&&Ue.wrapT===_e,"wrap mode not supported by cube map");for(var Cr=0;Cr>Ir,_=Vt>>Ir;O(Or.mipmask&1<1&&Ue===et&&(Ue==='"'||Ue==="'"))return['"'+nn(he.substr(1,he.length-2))+'"'];var Ht=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(he);if(Ht)return $r(he.substr(0,Ht.index)).concat($r(Ht[1])).concat($r(he.substr(Ht.index+Ht[0].length)));var vr=he.split(".");if(vr.length===1)return['"'+nn(he)+'"'];for(var Vt=[],nr=0;nrpr(et,Ue+"["+Ht+"]")));if(he instanceof Fr)return he;Oe(!1,"invalid option type in uniform "+Ue)}var Rr={DynamicVariable:Fr,define:tn,isDynamic:_r,unbox:pr,accessor:Wr},sn={next:typeof requestAnimationFrame=="function"?function(he){return requestAnimationFrame(he)}:function(he){return setTimeout(he,16)},cancel:typeof cancelAnimationFrame=="function"?function(he){return cancelAnimationFrame(he)}:clearTimeout},gn=typeof performance!="undefined"&&performance.now?function(){return performance.now()}:function(){return+new Date};function yn(){var he={"":0},Ue=[""];return{id:function(et){var Ht=he[et];return Ht||(Ht=he[et]=Ue.length,Ue.push(et),Ht)},str:function(et){return Ue[et]}}}function fa(he,Ue,et){var Ht=document.createElement("canvas");G(Ht.style,{border:0,margin:0,padding:0,top:0,left:0}),he.appendChild(Ht),he===document.body&&(Ht.style.position="absolute",G(he.style,{margin:0,padding:0}));function vr(){var Cr=window.innerWidth,Or=window.innerHeight;if(he!==document.body){var Lr=he.getBoundingClientRect();Cr=Lr.right-Lr.left,Or=Lr.bottom-Lr.top}Ht.width=et*Cr,Ht.height=et*Or,G(Ht.style,{width:Cr+"px",height:Or+"px"})}var Vt;he!==document.body&&typeof ResizeObserver=="function"?(Vt=new ResizeObserver(function(){setTimeout(vr)}),Vt.observe(he)):window.addEventListener("resize",vr,!1);function nr(){Vt?Vt.disconnect():window.removeEventListener("resize",vr),he.removeChild(Ht)}return vr(),{canvas:Ht,onDestroy:nr}}function ca(he,Ue){function et(Ht){try{return he.getContext(Ht,Ue)}catch(vr){return null}}return et("webgl")||et("experimental-webgl")||et("webgl-experimental")}function Wn(he){return typeof he.nodeName=="string"&&typeof he.appendChild=="function"&&typeof he.getBoundingClientRect=="function"}function Vn(he){return typeof he.drawArrays=="function"||typeof he.drawElements=="function"}function _a(he){return typeof he=="string"?he.split():(Oe(Array.isArray(he),"invalid extension array"),he)}function Jr(he){return typeof he=="string"?(Oe(typeof document!="undefined","not supported outside of DOM"),document.querySelector(he)):he}function kn(he){var Ue=he||{},et,Ht,vr,Vt,nr={},Cr=[],Or=[],Lr=typeof window=="undefined"?1:window.devicePixelRatio,Ir=!1,Gr=function(F){F&&Oe.raise(F)},f=function(){};if(typeof Ue=="string"?(Oe(typeof document!="undefined","selector queries only supported in DOM enviroments"),et=document.querySelector(Ue),Oe(et,"invalid query string for element")):typeof Ue=="object"?Wn(Ue)?et=Ue:Vn(Ue)?(Vt=Ue,vr=Vt.canvas):(Oe.constructor(Ue),"gl"in Ue?Vt=Ue.gl:"canvas"in Ue?vr=Jr(Ue.canvas):"container"in Ue&&(Ht=Jr(Ue.container)),"attributes"in Ue&&(nr=Ue.attributes,Oe.type(nr,"object","invalid context attributes")),"extensions"in Ue&&(Cr=_a(Ue.extensions)),"optionalExtensions"in Ue&&(Or=_a(Ue.optionalExtensions)),"onDone"in Ue&&(Oe.type(Ue.onDone,"function","invalid or missing onDone callback"),Gr=Ue.onDone),"profile"in Ue&&(Ir=!!Ue.profile),"pixelRatio"in Ue&&(Lr=+Ue.pixelRatio,Oe(Lr>0,"invalid pixel ratio"))):Oe.raise("invalid arguments to regl"),et&&(et.nodeName.toLowerCase()==="canvas"?vr=et:Ht=et),!Vt){if(!vr){Oe(typeof document!="undefined","must manually specify webgl context outside of DOM environments");var _=fa(Ht||document.body,Gr,Lr);if(!_)return null;vr=_.canvas,f=_.onDestroy}nr.premultipliedAlpha===void 0&&(nr.premultipliedAlpha=!0),Vt=ca(vr,nr)}return Vt?{gl:Vt,canvas:vr,container:Ht,extensions:Cr,optionalExtensions:Or,pixelRatio:Lr,profile:Ir,onDone:Gr,onDestroy:f}:(f(),Gr("webgl not supported, try upgrading your browser or graphics drivers http://get.webgl.org"),null)}function An(he,Ue){var et={};function Ht(nr){Oe.type(nr,"string","extension name must be string");var Cr=nr.toLowerCase(),Or;try{Or=et[Cr]=he.getExtension(Cr)}catch(Lr){}return!!Or}for(var vr=0;vr65535)<<4,he>>>=Ue,et=(he>255)<<3,he>>>=et,Ue|=et,et=(he>15)<<2,he>>>=et,Ue|=et,et=(he>3)<<1,he>>>=et,Ue|=et,Ue|he>>1}function V(){var he=mn(8,function(){return[]});function Ue(Vt){var nr=S(Vt),Cr=he[C(nr)>>2];return Cr.length>0?Cr.pop():new ArrayBuffer(nr)}function et(Vt){he[C(Vt.byteLength)>>2].push(Vt)}function Ht(Vt,nr){var Cr=null;switch(Vt){case xa:Cr=new Int8Array(Ue(nr),0,nr);break;case Z:Cr=new Uint8Array(Ue(nr),0,nr);break;case Ot:Cr=new Int16Array(Ue(2*nr),0,nr);break;case qe:Cr=new Uint16Array(Ue(2*nr),0,nr);break;case ne:Cr=new Int32Array(Ue(4*nr),0,nr);break;case ae:Cr=new Uint32Array(Ue(4*nr),0,nr);break;case P:Cr=new Float32Array(Ue(4*nr),0,nr);break;default:return null}return Cr.length!==nr?Cr.subarray(0,nr):Cr}function vr(Vt){et(Vt.buffer)}return{alloc:Ue,free:et,allocType:Ht,freeType:vr}}var de=V();de.zero=V();var Se=3408,xe=3410,Le=3411,ht=3412,ot=3413,At=3414,$t=3415,Yt=33901,kr=33902,vn=3379,Ct=3386,Qt=34921,mr=36347,en=36348,Pr=35661,Qn=35660,Ln=34930,En=36349,Dn=34076,jn=34024,bn=7936,We=7937,Te=7938,Xe=35724,st=34047,nt=36063,vt=34852,Xt=3553,xr=34067,jr=34069,fn=33984,xn=6408,Bn=5126,Hn=5121,ta=36160,Wa=36053,Oa=36064,Ba=16384,ya=function(he,Ue){var et=1;Ue.ext_texture_filter_anisotropic&&(et=he.getParameter(st));var Ht=1,vr=1;Ue.webgl_draw_buffers&&(Ht=he.getParameter(vt),vr=he.getParameter(nt));var Vt=!!Ue.oes_texture_float;if(Vt){var nr=he.createTexture();he.bindTexture(Xt,nr),he.texImage2D(Xt,0,xn,1,1,0,xn,Bn,null);var Cr=he.createFramebuffer();if(he.bindFramebuffer(ta,Cr),he.framebufferTexture2D(ta,Oa,Xt,nr,0),he.bindTexture(Xt,null),he.checkFramebufferStatus(ta)!==Wa)Vt=!1;else{he.viewport(0,0,1,1),he.clearColor(1,0,0,1),he.clear(Ba);var Or=de.allocType(Bn,4);he.readPixels(0,0,1,1,xn,Bn,Or),he.getError()?Vt=!1:(he.deleteFramebuffer(Cr),he.deleteTexture(nr),Vt=Or[0]===1),de.freeType(Or)}}var Lr=typeof navigator!="undefined"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent)),Ir=!0;if(!Lr){var Gr=he.createTexture(),f=de.allocType(Hn,36);he.activeTexture(fn),he.bindTexture(xr,Gr),he.texImage2D(jr,0,xn,3,3,0,xn,Hn,f),de.freeType(f),he.bindTexture(xr,null),he.deleteTexture(Gr),Ir=!he.getError()}return{colorBits:[he.getParameter(xe),he.getParameter(Le),he.getParameter(ht),he.getParameter(ot)],depthBits:he.getParameter(At),stencilBits:he.getParameter($t),subpixelBits:he.getParameter(Se),extensions:Object.keys(Ue).filter(function(_){return!!Ue[_]}),maxAnisotropic:et,maxDrawbuffers:Ht,maxColorAttachments:vr,pointSizeDims:he.getParameter(Yt),lineWidthDims:he.getParameter(kr),maxViewportDims:he.getParameter(Ct),maxCombinedTextureUnits:he.getParameter(Pr),maxCubeMapSize:he.getParameter(Dn),maxRenderbufferSize:he.getParameter(jn),maxTextureUnits:he.getParameter(Ln),maxTextureSize:he.getParameter(vn),maxAttributes:he.getParameter(Qt),maxVertexUniforms:he.getParameter(mr),maxVertexTextureUnits:he.getParameter(Qn),maxVaryingVectors:he.getParameter(en),maxFragmentUniforms:he.getParameter(En),glsl:he.getParameter(Xe),renderer:he.getParameter(We),vendor:he.getParameter(bn),version:he.getParameter(Te),readFloat:Vt,npotTextureCube:Ir}};function ei(he){return!!he&&typeof he=="object"&&Array.isArray(he.shape)&&Array.isArray(he.stride)&&typeof he.offset=="number"&&he.shape.length===he.stride.length&&(Array.isArray(he.data)||U(he.data))}var oi=function(he){return Object.keys(he).map(function(Ue){return he[Ue]})},wa={shape:ws,flatten:lo};function So(he,Ue,et){for(var Ht=0;Ht0){var ze;if(Array.isArray(re[0])){Ae=_s(re);for(var Be=1,Je=1;Je0)if(typeof Be[0]=="number"){var Tt=de.allocType(pe.dtype,Be.length);$o(Tt,Be),Ae(Tt,xt),de.freeType(Tt)}else if(Array.isArray(Be[0])||U(Be[0])){ar=_s(Be);var Nt=Va(Be,ar,pe.dtype);Ae(Nt,xt),de.freeType(Nt)}else Oe.raise("invalid buffer data")}else if(ei(Be)){ar=Be.shape;var Lt=Be.stride,Tr=0,Hr=0,Br=0,Zr=0;ar.length===1?(Tr=ar[0],Hr=1,Br=Lt[0],Zr=0):ar.length===2?(Tr=ar[0],Hr=ar[1],Br=Lt[0],Zr=Lt[1]):Oe.raise("invalid shape");var an=Array.isArray(Be.data)?pe.dtype:Ai(Be.data),Sn=de.allocType(an,Tr*Hr);Li(Sn,Be.data,Tr,Hr,Br,Zr,Be.offset),Ae(Sn,xt),de.freeType(Sn)}else Oe.raise("invalid data for buffer subdata");return we}return ie||we(Y),we._reglType="buffer",we._buffer=pe,we.subdata=ze,et.profile&&(we.stats=pe.stats),we.destroy=function(){f(pe)},we}function F(){oi(Vt).forEach(function(Y){Y.buffer=he.createBuffer(),he.bindBuffer(Y.type,Y.buffer),he.bufferData(Y.type,Y.persistentData||Y.byteLength,Y.usage)})}return et.profile&&(Ue.getTotalBufferSize=function(){var Y=0;return Object.keys(Vt).forEach(function(re){Y+=Vt[re].stats.size}),Y}),{create:_,createStream:Or,destroyStream:Lr,clear:function(){oi(Vt).forEach(f),Cr.forEach(f)},getBuffer:function(Y){return Y&&Y._buffer instanceof nr?Y._buffer:null},restore:F,_initBuffer:Gr}}var Qo=0,ns=0,Bi=1,la=1,vo=4,Vs=4,Di={points:Qo,point:ns,lines:Bi,line:la,triangles:vo,triangle:Vs,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Ao=0,as=1,hi=4,Ki=5120,wi=5121,no=5122,Fi=5123,sa=5124,Fa=5125,Ya=34963,Ci=35040,Gi=35044;function ao(he,Ue,et,Ht){var vr={},Vt=0,nr={uint8:wi,uint16:Fi};Ue.oes_element_index_uint&&(nr.uint32=Fa);function Cr(F){this.id=Vt++,vr[this.id]=this,this.buffer=F,this.primType=hi,this.vertCount=0,this.type=0}Cr.prototype.bind=function(){this.buffer.bind()};var Or=[];function Lr(F){var Y=Or.pop();return Y||(Y=new Cr(et.create(null,Ya,!0,!1)._buffer)),Gr(Y,F,Ci,-1,-1,0,0),Y}function Ir(F){Or.push(F)}function Gr(F,Y,re,ie,le,pe,we){F.buffer.bind();var Ae;if(Y){var ze=we;!we&&(!U(Y)||ei(Y)&&!U(Y.data))&&(ze=Ue.oes_element_index_uint?Fa:Fi),et._initBuffer(F.buffer,Y,re,ze,3)}else he.bufferData(Ya,pe,re),F.buffer.dtype=Ae||wi,F.buffer.usage=re,F.buffer.dimension=3,F.buffer.byteLength=pe;if(Ae=we,!we){switch(F.buffer.dtype){case wi:case Ki:Ae=wi;break;case Fi:case no:Ae=Fi;break;case Fa:case sa:Ae=Fa;break;default:Oe.raise("unsupported type for element array")}F.buffer.dtype=Ae}F.type=Ae,Oe(Ae!==Fa||!!Ue.oes_element_index_uint,"32 bit element buffers not supported, enable oes_element_index_uint first");var Be=le;Be<0&&(Be=F.buffer.byteLength,Ae===Fi?Be>>=1:Ae===Fa&&(Be>>=2)),F.vertCount=Be;var Je=ie;if(ie<0){Je=hi;var xt=F.buffer.dimension;xt===1&&(Je=Ao),xt===2&&(Je=as),xt===3&&(Je=hi)}F.primType=Je}function f(F){Ht.elementsCount--,Oe(F.buffer!==null,"must not double destroy elements"),delete vr[F.id],F.buffer.destroy(),F.buffer=null}function _(F,Y){var re=et.create(null,Ya,!0),ie=new Cr(re._buffer);Ht.elementsCount++;function le(pe){if(!pe)re(),ie.primType=hi,ie.vertCount=0,ie.type=wi;else if(typeof pe=="number")re(pe),ie.primType=hi,ie.vertCount=pe|0,ie.type=wi;else{var we=null,Ae=Gi,ze=-1,Be=-1,Je=0,xt=0;Array.isArray(pe)||U(pe)||ei(pe)?we=pe:(Oe.type(pe,"object","invalid arguments for elements"),"data"in pe&&(we=pe.data,Oe(Array.isArray(we)||U(we)||ei(we),"invalid data for element buffer")),"usage"in pe&&(Oe.parameter(pe.usage,Fo,"invalid element buffer usage"),Ae=Fo[pe.usage]),"primitive"in pe&&(Oe.parameter(pe.primitive,Di,"invalid element buffer primitive"),ze=Di[pe.primitive]),"count"in pe&&(Oe(typeof pe.count=="number"&&pe.count>=0,"invalid vertex count for elements"),Be=pe.count|0),"type"in pe&&(Oe.parameter(pe.type,nr,"invalid buffer type"),xt=nr[pe.type]),"length"in pe?Je=pe.length|0:(Je=Be,xt===Fi||xt===no?Je*=2:(xt===Fa||xt===sa)&&(Je*=4))),Gr(ie,we,Ae,ze,Be,Je,xt)}return le}return le(F),le._reglType="elements",le._elements=ie,le.subdata=function(pe,we){return re.subdata(pe,we),le},le.destroy=function(){f(ie)},le}return{create:_,createStream:Lr,destroyStream:Ir,getElements:function(F){return typeof F=="function"&&F._elements instanceof Cr?F._elements:null},clear:function(){oi(vr).forEach(f)}}}var go=new Float32Array(1),po=new Uint32Array(go.buffer),yo=5123;function zi(he){for(var Ue=de.allocType(yo,he.length),et=0;et>>31<<15,Vt=(Ht<<1>>>24)-127,nr=Ht>>13&(1<<10)-1;if(Vt<-24)Ue[et]=vr;else if(Vt<-14){var Cr=-14-Vt;Ue[et]=vr+(nr+(1<<10)>>Cr)}else Vt>15?Ue[et]=vr+31744:Ue[et]=vr+(Vt+15<<10)+nr}return Ue}function Pa(he){return Array.isArray(he)||U(he)}var Ys=function(he){return!(he&he-1)&&!!he},Sf=34467,mo=3553,cu=34067,qn=34069,un=6408,Hs=6406,Ui=6407,Go=6409,is=6410,si=32854,ai=32855,Eo=36194,ju=32819,Xu=32820,lu=33635,du=34042,mi=6402,$i=34041,Zs=35904,Ks=35906,io=36193,os=33776,ss=33777,us=33778,$s=33779,zo=35986,bo=35987,fs=34798,Vu=35840,hu=35841,vu=35842,gu=35843,Yu=36196,Co=5121,Ms=5123,cs=5125,Qi=5126,xo=10242,Hu=10243,_f=10497,Cs=33071,Mf=33648,s=10240,I=10241,ue=9728,Ee=9729,Ce=9984,ke=9985,Re=9986,Ve=9987,$e=33170,ft=4352,_t=4353,ir=4354,cr=34046,rr=3317,Ar=37440,Mr=37441,hr=37443,rn=37444,Zn=33984,Kn=[Ce,Re,ke,Ve],Fn=[0,Go,is,Ui,un],_n={};_n[Go]=_n[Hs]=_n[mi]=1,_n[$i]=_n[is]=2,_n[Ui]=_n[Zs]=3,_n[un]=_n[Ks]=4;function Mn(he){return"[object "+he+"]"}var Ga=Mn("HTMLCanvasElement"),ti=Mn("OffscreenCanvas"),Ka=Mn("CanvasRenderingContext2D"),$a=Mn("ImageBitmap"),Ha=Mn("HTMLImageElement"),ui=Mn("HTMLVideoElement"),Ei=Object.keys(ko).concat([Ga,ti,Ka,$a,Ha,ui]),ua=[];ua[Co]=1,ua[Qi]=4,ua[io]=2,ua[Ms]=2,ua[cs]=4;var Aa=[];Aa[si]=2,Aa[ai]=2,Aa[Eo]=2,Aa[$i]=4,Aa[os]=.5,Aa[ss]=.5,Aa[us]=1,Aa[$s]=1,Aa[zo]=.5,Aa[bo]=1,Aa[fs]=1,Aa[Vu]=.5,Aa[hu]=.25,Aa[vu]=.5,Aa[gu]=.25,Aa[Yu]=.5;function Jo(he){return Array.isArray(he)&&(he.length===0||typeof he[0]=="number")}function Uo(he){if(!Array.isArray(he))return!1;var Ue=he.length;return!(Ue===0||!Pa(he[0]))}function oo(he){return Object.prototype.toString.call(he)}function Qs(he){return oo(he)===Ga}function Cf(he){return oo(he)===ti}function Zu(he){return oo(he)===Ka}function Ku(he){return oo(he)===$a}function dc(he){return oo(he)===Ha}function pu(he){return oo(he)===ui}function Tf(he){if(!he)return!1;var Ue=oo(he);return Ei.indexOf(Ue)>=0?!0:Jo(he)||Uo(he)||ei(he)}function If(he){return ko[Object.prototype.toString.call(he)]|0}function qo(he,Ue){var et=Ue.length;switch(he.type){case Co:case Ms:case cs:case Qi:var Ht=de.allocType(he.type,et);Ht.set(Ue),he.data=Ht;break;case io:he.data=zi(Ue);break;default:Oe.raise("unsupported texture type, must specify a typed array")}}function Of(he,Ue){return de.allocType(he.type===io?Qi:he.type,Ue)}function hc(he,Ue){he.type===io?(he.data=zi(Ue),de.freeType(Ue)):he.data=Ue}function al(he,Ue,et,Ht,vr,Vt){for(var nr=he.width,Cr=he.height,Or=he.channels,Lr=nr*Cr*Or,Ir=Of(he,Lr),Gr=0,f=0;f=1;)Cr+=nr*Or*Or,Or/=2;return Cr}else return nr*et*Ht}function yu(he,Ue,et,Ht,vr,Vt,nr){var Cr={"don't care":ft,"dont care":ft,nice:ir,fast:_t},Or={repeat:_f,clamp:Cs,mirror:Mf},Lr={nearest:ue,linear:Ee},Ir=G({mipmap:Ve,"nearest mipmap nearest":Ce,"linear mipmap nearest":ke,"nearest mipmap linear":Re,"linear mipmap linear":Ve},Lr),Gr={none:0,browser:rn},f={uint8:Co,rgba4:ju,rgb565:lu,"rgb5 a1":Xu},_={alpha:Hs,luminance:Go,"luminance alpha":is,rgb:Ui,rgba:un,rgba4:si,"rgb5 a1":ai,rgb565:Eo},F={};Ue.ext_srgb&&(_.srgb=Zs,_.srgba=Ks),Ue.oes_texture_float&&(f.float32=f.float=Qi),Ue.oes_texture_half_float&&(f.float16=f["half float"]=io),Ue.webgl_depth_texture&&(G(_,{depth:mi,"depth stencil":$i}),G(f,{uint16:Ms,uint32:cs,"depth stencil":du})),Ue.webgl_compressed_texture_s3tc&&G(F,{"rgb s3tc dxt1":os,"rgba s3tc dxt1":ss,"rgba s3tc dxt3":us,"rgba s3tc dxt5":$s}),Ue.webgl_compressed_texture_atc&&G(F,{"rgb atc":zo,"rgba atc explicit alpha":bo,"rgba atc interpolated alpha":fs}),Ue.webgl_compressed_texture_pvrtc&&G(F,{"rgb pvrtc 4bppv1":Vu,"rgb pvrtc 2bppv1":hu,"rgba pvrtc 4bppv1":vu,"rgba pvrtc 2bppv1":gu}),Ue.webgl_compressed_texture_etc1&&(F["rgb etc1"]=Yu);var Y=Array.prototype.slice.call(he.getParameter(Sf));Object.keys(F).forEach(function(Qe){var Jt=F[Qe];Y.indexOf(Jt)>=0&&(_[Qe]=Jt)});var re=Object.keys(_);et.textureFormats=re;var ie=[];Object.keys(_).forEach(function(Qe){var Jt=_[Qe];ie[Jt]=Qe});var le=[];Object.keys(f).forEach(function(Qe){var Jt=f[Qe];le[Jt]=Qe});var pe=[];Object.keys(Lr).forEach(function(Qe){var Jt=Lr[Qe];pe[Jt]=Qe});var we=[];Object.keys(Ir).forEach(function(Qe){var Jt=Ir[Qe];we[Jt]=Qe});var Ae=[];Object.keys(Or).forEach(function(Qe){var Jt=Or[Qe];Ae[Jt]=Qe});var ze=re.reduce(function(Qe,Jt){var jt=_[Jt];return jt===Go||jt===Hs||jt===Go||jt===is||jt===mi||jt===$i||Ue.ext_srgb&&(jt===Zs||jt===Ks)?Qe[jt]=jt:jt===ai||Jt.indexOf("rgba")>=0?Qe[jt]=un:Qe[jt]=Ui,Qe},{});function Be(){this.internalformat=un,this.format=un,this.type=Co,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=rn,this.width=0,this.height=0,this.channels=0}function Je(Qe,Jt){Qe.internalformat=Jt.internalformat,Qe.format=Jt.format,Qe.type=Jt.type,Qe.compressed=Jt.compressed,Qe.premultiplyAlpha=Jt.premultiplyAlpha,Qe.flipY=Jt.flipY,Qe.unpackAlignment=Jt.unpackAlignment,Qe.colorSpace=Jt.colorSpace,Qe.width=Jt.width,Qe.height=Jt.height,Qe.channels=Jt.channels}function xt(Qe,Jt){if(!(typeof Jt!="object"||!Jt)){if("premultiplyAlpha"in Jt&&(Oe.type(Jt.premultiplyAlpha,"boolean","invalid premultiplyAlpha"),Qe.premultiplyAlpha=Jt.premultiplyAlpha),"flipY"in Jt&&(Oe.type(Jt.flipY,"boolean","invalid texture flip"),Qe.flipY=Jt.flipY),"alignment"in Jt&&(Oe.oneOf(Jt.alignment,[1,2,4,8],"invalid texture unpack alignment"),Qe.unpackAlignment=Jt.alignment),"colorSpace"in Jt&&(Oe.parameter(Jt.colorSpace,Gr,"invalid colorSpace"),Qe.colorSpace=Gr[Jt.colorSpace]),"type"in Jt){var jt=Jt.type;Oe(Ue.oes_texture_float||!(jt==="float"||jt==="float32"),"you must enable the OES_texture_float extension in order to use floating point textures."),Oe(Ue.oes_texture_half_float||!(jt==="half float"||jt==="float16"),"you must enable the OES_texture_half_float extension in order to use 16-bit floating point textures."),Oe(Ue.webgl_depth_texture||!(jt==="uint16"||jt==="uint32"||jt==="depth stencil"),"you must enable the WEBGL_depth_texture extension in order to use depth/stencil textures."),Oe.parameter(jt,f,"invalid texture type"),Qe.type=f[jt]}var on=Qe.width,na=Qe.height,Ze=Qe.channels,Fe=!1;"shape"in Jt?(Oe(Array.isArray(Jt.shape)&&Jt.shape.length>=2,"shape must be an array"),on=Jt.shape[0],na=Jt.shape[1],Jt.shape.length===3&&(Ze=Jt.shape[2],Oe(Ze>0&&Ze<=4,"invalid number of channels"),Fe=!0),Oe(on>=0&&on<=et.maxTextureSize,"invalid width"),Oe(na>=0&&na<=et.maxTextureSize,"invalid height")):("radius"in Jt&&(on=na=Jt.radius,Oe(on>=0&&on<=et.maxTextureSize,"invalid radius")),"width"in Jt&&(on=Jt.width,Oe(on>=0&&on<=et.maxTextureSize,"invalid width")),"height"in Jt&&(na=Jt.height,Oe(na>=0&&na<=et.maxTextureSize,"invalid height")),"channels"in Jt&&(Ze=Jt.channels,Oe(Ze>0&&Ze<=4,"invalid number of channels"),Fe=!0)),Qe.width=on|0,Qe.height=na|0,Qe.channels=Ze|0;var dt=!1;if("format"in Jt){var kt=Jt.format;Oe(Ue.webgl_depth_texture||!(kt==="depth"||kt==="depth stencil"),"you must enable the WEBGL_depth_texture extension in order to use depth/stencil textures."),Oe.parameter(kt,_,"invalid texture format");var Gt=Qe.internalformat=_[kt];Qe.format=ze[Gt],kt in f&&("type"in Jt||(Qe.type=f[kt])),kt in F&&(Qe.compressed=!0),dt=!0}!Fe&&dt?Qe.channels=_n[Qe.format]:Fe&&!dt?Qe.channels!==Fn[Qe.format]&&(Qe.format=Qe.internalformat=Fn[Qe.channels]):dt&&Fe&&Oe(Qe.channels===_n[Qe.format],"number of channels inconsistent with specified format")}}function ar(Qe){he.pixelStorei(Ar,Qe.flipY),he.pixelStorei(Mr,Qe.premultiplyAlpha),he.pixelStorei(hr,Qe.colorSpace),he.pixelStorei(rr,Qe.unpackAlignment)}function Tt(){Be.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function Nt(Qe,Jt){var jt=null;if(Tf(Jt)?jt=Jt:Jt&&(Oe.type(Jt,"object","invalid pixel data type"),xt(Qe,Jt),"x"in Jt&&(Qe.xOffset=Jt.x|0),"y"in Jt&&(Qe.yOffset=Jt.y|0),Tf(Jt.data)&&(jt=Jt.data)),Oe(!Qe.compressed||jt instanceof Uint8Array,"compressed texture data must be stored in a uint8array"),Jt.copy){Oe(!jt,"can not specify copy and data field for the same texture");var on=vr.viewportWidth,na=vr.viewportHeight;Qe.width=Qe.width||on-Qe.xOffset,Qe.height=Qe.height||na-Qe.yOffset,Qe.needsCopy=!0,Oe(Qe.xOffset>=0&&Qe.xOffset=0&&Qe.yOffset0&&Qe.width<=on&&Qe.height>0&&Qe.height<=na,"copy texture read out of bounds")}else if(!jt)Qe.width=Qe.width||1,Qe.height=Qe.height||1,Qe.channels=Qe.channels||4;else if(U(jt))Qe.channels=Qe.channels||4,Qe.data=jt,!("type"in Jt)&&Qe.type===Co&&(Qe.type=If(jt));else if(Jo(jt))Qe.channels=Qe.channels||4,qo(Qe,jt),Qe.alignment=1,Qe.needsFree=!0;else if(ei(jt)){var Ze=jt.data;!Array.isArray(Ze)&&Qe.type===Co&&(Qe.type=If(Ze));var Fe=jt.shape,dt=jt.stride,kt,Gt,Et,gt,It,He;Fe.length===3?(Et=Fe[2],He=dt[2]):(Oe(Fe.length===2,"invalid ndarray pixel data, must be 2 or 3D"),Et=1,He=1),kt=Fe[0],Gt=Fe[1],gt=dt[0],It=dt[1],Qe.alignment=1,Qe.width=kt,Qe.height=Gt,Qe.channels=Et,Qe.format=Qe.internalformat=Fn[Et],Qe.needsFree=!0,al(Qe,Ze,gt,It,He,jt.offset)}else if(Qs(jt)||Cf(jt)||Zu(jt))Qs(jt)||Cf(jt)?Qe.element=jt:Qe.element=jt.canvas,Qe.width=Qe.element.width,Qe.height=Qe.element.height,Qe.channels=4;else if(Ku(jt))Qe.element=jt,Qe.width=jt.width,Qe.height=jt.height,Qe.channels=4;else if(dc(jt))Qe.element=jt,Qe.width=jt.naturalWidth,Qe.height=jt.naturalHeight,Qe.channels=4;else if(pu(jt))Qe.element=jt,Qe.width=jt.videoWidth,Qe.height=jt.videoHeight,Qe.channels=4;else if(Uo(jt)){var ct=Qe.width||jt[0].length,je=Qe.height||jt.length,Pt=Qe.channels;Pa(jt[0][0])?Pt=Pt||jt[0][0].length:Pt=Pt||1;for(var Ut=wa.shape(jt),gr=1,yr=0;yr=0,"oes_texture_float extension not enabled"):Qe.type===io&&Oe(et.extensions.indexOf("oes_texture_half_float")>=0,"oes_texture_half_float extension not enabled")}function Lt(Qe,Jt,jt){var on=Qe.element,na=Qe.data,Ze=Qe.internalformat,Fe=Qe.format,dt=Qe.type,kt=Qe.width,Gt=Qe.height;ar(Qe),on?he.texImage2D(Jt,jt,Fe,Fe,dt,on):Qe.compressed?he.compressedTexImage2D(Jt,jt,Ze,kt,Gt,0,na):Qe.needsCopy?(Ht(),he.copyTexImage2D(Jt,jt,Fe,Qe.xOffset,Qe.yOffset,kt,Gt,0)):he.texImage2D(Jt,jt,Fe,kt,Gt,0,Fe,dt,na||null)}function Tr(Qe,Jt,jt,on,na){var Ze=Qe.element,Fe=Qe.data,dt=Qe.internalformat,kt=Qe.format,Gt=Qe.type,Et=Qe.width,gt=Qe.height;ar(Qe),Ze?he.texSubImage2D(Jt,na,jt,on,kt,Gt,Ze):Qe.compressed?he.compressedTexSubImage2D(Jt,na,jt,on,dt,Et,gt,Fe):Qe.needsCopy?(Ht(),he.copyTexSubImage2D(Jt,na,jt,on,Qe.xOffset,Qe.yOffset,Et,gt)):he.texSubImage2D(Jt,na,jt,on,Et,gt,kt,Gt,Fe)}var Hr=[];function Br(){return Hr.pop()||new Tt}function Zr(Qe){Qe.needsFree&&de.freeType(Qe.data),Tt.call(Qe),Hr.push(Qe)}function an(){Be.call(this),this.genMipmaps=!1,this.mipmapHint=ft,this.mipmask=0,this.images=Array(16)}function Sn(Qe,Jt,jt){var on=Qe.images[0]=Br();Qe.mipmask=1,on.width=Qe.width=Jt,on.height=Qe.height=jt,on.channels=Qe.channels=4}function Rn(Qe,Jt){var jt=null;if(Tf(Jt))jt=Qe.images[0]=Br(),Je(jt,Qe),Nt(jt,Jt),Qe.mipmask=1;else if(xt(Qe,Jt),Array.isArray(Jt.mipmap))for(var on=Jt.mipmap,na=0;na>=na,jt.height>>=na,Nt(jt,on[na]),Qe.mipmask|=1<=0&&!("faces"in Jt)&&(Qe.genMipmaps=!0)}if("mag"in Jt){var on=Jt.mag;Oe.parameter(on,Lr),Qe.magFilter=Lr[on]}var na=Qe.wrapS,Ze=Qe.wrapT;if("wrap"in Jt){var Fe=Jt.wrap;typeof Fe=="string"?(Oe.parameter(Fe,Or),na=Ze=Or[Fe]):Array.isArray(Fe)&&(Oe.parameter(Fe[0],Or),Oe.parameter(Fe[1],Or),na=Or[Fe[0]],Ze=Or[Fe[1]])}else{if("wrapS"in Jt){var dt=Jt.wrapS;Oe.parameter(dt,Or),na=Or[dt]}if("wrapT"in Jt){var kt=Jt.wrapT;Oe.parameter(kt,Or),Ze=Or[kt]}}if(Qe.wrapS=na,Qe.wrapT=Ze,"anisotropic"in Jt){var Gt=Jt.anisotropic;Oe(typeof Gt=="number"&&Gt>=1&&Gt<=et.maxAnisotropic,"aniso samples must be between 1 and "),Qe.anisotropic=Jt.anisotropic}if("mipmap"in Jt){var Et=!1;switch(typeof Jt.mipmap){case"string":Oe.parameter(Jt.mipmap,Cr,"invalid mipmap hint"),Qe.mipmapHint=Cr[Jt.mipmap],Qe.genMipmaps=!0,Et=!0;break;case"boolean":Et=Qe.genMipmaps=Jt.mipmap;break;case"object":Oe(Array.isArray(Jt.mipmap),"invalid mipmap type"),Qe.genMipmaps=!1,Et=!0;break;default:Oe.raise("invalid mipmap type")}Et&&!("min"in Jt)&&(Qe.minFilter=Ce)}}function ja(Qe,Jt){he.texParameteri(Jt,I,Qe.minFilter),he.texParameteri(Jt,s,Qe.magFilter),he.texParameteri(Jt,xo,Qe.wrapS),he.texParameteri(Jt,Hu,Qe.wrapT),Ue.ext_texture_filter_anisotropic&&he.texParameteri(Jt,cr,Qe.anisotropic),Qe.genMipmaps&&(he.hint($e,Qe.mipmapHint),he.generateMipmap(Jt))}var La=0,ka={},ji=et.maxTextureUnits,ci=Array(ji).map(function(){return null});function hn(Qe){Be.call(this),this.mipmask=0,this.internalformat=un,this.id=La++,this.refCount=1,this.target=Qe,this.texture=he.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new Ta,nr.profile&&(this.stats={size:0})}function Xi(Qe){he.activeTexture(Zn),he.bindTexture(Qe.target,Qe.texture)}function Sa(){var Qe=ci[0];Qe?he.bindTexture(Qe.target,Qe.texture):he.bindTexture(mo,null)}function Tn(Qe){var Jt=Qe.texture;Oe(Jt,"must not double destroy texture");var jt=Qe.unit,on=Qe.target;jt>=0&&(he.activeTexture(Zn+jt),he.bindTexture(on,null),ci[jt]=null),he.deleteTexture(Jt),Qe.texture=null,Qe.params=null,Qe.pixels=null,Qe.refCount=0,delete ka[Qe.id],Vt.textureCount--}G(hn.prototype,{bind:function(){var Qe=this;Qe.bindCount+=1;var Jt=Qe.unit;if(Jt<0){for(var jt=0;jt0)continue;on.unit=-1}ci[jt]=Qe,Jt=jt;break}Jt>=ji&&Oe.raise("insufficient number of texture units"),nr.profile&&Vt.maxTextureUnits>It)-Et,He.height=He.height||(jt.height>>It)-gt,Oe(jt.type===He.type&&jt.format===He.format&&jt.internalformat===He.internalformat,"incompatible format for texture.subimage"),Oe(Et>=0&>>=0&&Et+He.width<=jt.width&>+He.height<=jt.height,"texture.subimage write out of bounds"),Oe(jt.mipmask&1<>Et;++Et){var gt=kt>>Et,It=Gt>>Et;if(!gt||!It)break;he.texImage2D(mo,Et,jt.format,gt,It,0,jt.format,jt.type,null)}return Sa(),nr.profile&&(jt.stats.size=Ts(jt.internalformat,jt.type,kt,Gt,!1,!1)),on}return on(Qe,Jt),on.subimage=na,on.resize=Ze,on._reglType="texture2d",on._texture=jt,nr.profile&&(on.stats=jt.stats),on.destroy=function(){jt.decRef()},on}function da(Qe,Jt,jt,on,na,Ze){var Fe=new hn(cu);ka[Fe.id]=Fe,Vt.cubeCount++;var dt=new Array(6);function kt(gt,It,He,ct,je,Pt){var Ut,gr=Fe.texInfo;for(Ta.call(gr),Ut=0;Ut<6;++Ut)dt[Ut]=Gn();if(typeof gt=="number"||!gt){var yr=gt|0||1;for(Ut=0;Ut<6;++Ut)Sn(dt[Ut],yr,yr)}else if(typeof gt=="object")if(It)Rn(dt[0],gt),Rn(dt[1],It),Rn(dt[2],He),Rn(dt[3],ct),Rn(dt[4],je),Rn(dt[5],Pt);else if(ia(gr,gt),xt(Fe,gt),"faces"in gt){var ur=gt.faces;for(Oe(Array.isArray(ur)&&ur.length===6,"cube faces must be a length 6 array"),Ut=0;Ut<6;++Ut)Oe(typeof ur[Ut]=="object"&&!!ur[Ut],"invalid input for cube map face"),Je(dt[Ut],Fe),Rn(dt[Ut],ur[Ut])}else for(Ut=0;Ut<6;++Ut)Rn(dt[Ut],gt);else Oe.raise("invalid arguments to cube map");for(Je(Fe,dt[0]),et.npotTextureCube||Oe(Ys(Fe.width)&&Ys(Fe.height),"your browser does not support non power or two texture dimensions"),gr.genMipmaps?Fe.mipmask=(dt[0].width<<1)-1:Fe.mipmask=dt[0].mipmask,Oe.textureCube(Fe,gr,dt,et),Fe.internalformat=dt[0].internalformat,kt.width=dt[0].width,kt.height=dt[0].height,Xi(Fe),Ut=0;Ut<6;++Ut)Nn(dt[Ut],qn+Ut);for(ja(gr,cu),Sa(),nr.profile&&(Fe.stats.size=Ts(Fe.internalformat,Fe.type,kt.width,kt.height,gr.genMipmaps,!0)),kt.format=ie[Fe.internalformat],kt.type=le[Fe.type],kt.mag=pe[gr.magFilter],kt.min=we[gr.minFilter],kt.wrapS=Ae[gr.wrapS],kt.wrapT=Ae[gr.wrapT],Ut=0;Ut<6;++Ut)Qa(dt[Ut]);return kt}function Gt(gt,It,He,ct,je){Oe(!!It,"must specify image data"),Oe(typeof gt=="number"&>===(gt|0)&>>=0&><6,"invalid face");var Pt=He|0,Ut=ct|0,gr=je|0,yr=Br();return Je(yr,Fe),yr.width=0,yr.height=0,Nt(yr,It),yr.width=yr.width||(Fe.width>>gr)-Pt,yr.height=yr.height||(Fe.height>>gr)-Ut,Oe(Fe.type===yr.type&&Fe.format===yr.format&&Fe.internalformat===yr.internalformat,"incompatible format for texture.subimage"),Oe(Pt>=0&&Ut>=0&&Pt+yr.width<=Fe.width&&Ut+yr.height<=Fe.height,"texture.subimage write out of bounds"),Oe(Fe.mipmask&1<>ct;++ct)he.texImage2D(qn+He,ct,Fe.format,It>>ct,It>>ct,0,Fe.format,Fe.type,null);return Sa(),nr.profile&&(Fe.stats.size=Ts(Fe.internalformat,Fe.type,kt.width,kt.height,!1,!0)),kt}}return kt(Qe,Jt,jt,on,na,Ze),kt.subimage=Gt,kt.resize=Et,kt._reglType="textureCube",kt._texture=Fe,nr.profile&&(kt.stats=Fe.stats),kt.destroy=function(){Fe.decRef()},kt}function gi(){for(var Qe=0;Qe>on,jt.height>>on,0,jt.internalformat,jt.type,null);else for(var na=0;na<6;++na)he.texImage2D(qn+na,on,jt.internalformat,jt.width>>on,jt.height>>on,0,jt.internalformat,jt.type,null);ja(jt.texInfo,jt.target)})}function Fu(){for(var Qe=0;Qe=2,"invalid renderbuffer shape"),we=Je[0]|0,Ae=Je[1]|0}else"radius"in Be&&(we=Ae=Be.radius|0),"width"in Be&&(we=Be.width|0),"height"in Be&&(Ae=Be.height|0);"format"in Be&&(Oe.parameter(Be.format,Vt,"invalid renderbuffer format"),ze=Vt[Be.format])}else typeof le=="number"?(we=le|0,typeof pe=="number"?Ae=pe|0:Ae=we):le?Oe.raise("invalid arguments to renderbuffer constructor"):we=Ae=1;if(Oe(we>0&&Ae>0&&we<=et.maxRenderbufferSize&&Ae<=et.maxRenderbufferSize,"invalid renderbuffer size"),!(we===Y.width&&Ae===Y.height&&ze===Y.format))return re.width=Y.width=we,re.height=Y.height=Ae,Y.format=ze,he.bindRenderbuffer(qr,Y.renderbuffer),he.renderbufferStorage(qr,ze,we,Ae),Oe(he.getError()===0,"invalid render buffer format"),vr.profile&&(Y.stats.size=Nf(Y.format,Y.width,Y.height)),re.format=nr[Y.format],re}function ie(le,pe){var we=le|0,Ae=pe|0||we;return we===Y.width&&Ae===Y.height||(Oe(we>0&&Ae>0&&we<=et.maxRenderbufferSize&&Ae<=et.maxRenderbufferSize,"invalid renderbuffer size"),re.width=Y.width=we,re.height=Y.height=Ae,he.bindRenderbuffer(qr,Y.renderbuffer),he.renderbufferStorage(qr,Y.format,we,Ae),Oe(he.getError()===0,"invalid render buffer format"),vr.profile&&(Y.stats.size=Nf(Y.format,Y.width,Y.height))),re}return re(_,F),re.resize=ie,re._reglType="renderbuffer",re._renderbuffer=Y,vr.profile&&(re.stats=Y.stats),re.destroy=function(){Y.decRef()},re}vr.profile&&(Ht.getTotalRenderbufferSize=function(){var _=0;return Object.keys(Or).forEach(function(F){_+=Or[F].stats.size}),_});function f(){oi(Or).forEach(function(_){_.renderbuffer=he.createRenderbuffer(),he.bindRenderbuffer(qr,_.renderbuffer),he.renderbufferStorage(qr,_.format,_.width,_.height)}),he.bindRenderbuffer(qr,null)}return{create:Gr,clear:function(){oi(Or).forEach(Ir)},restore:f}},bi=36160,Ju=36161,Os=3553,qu=34069,ef=36064,vc=36096,gc=36128,pc=33306,tf=36053,yc=36054,bu=36055,mc=36057,kf=36061,ds=36193,il=5121,Do=5126,Rf=6407,hs=6408,As=6402,Ec=[Rf,hs],xu=[];xu[hs]=4,xu[Rf]=3;var Ls=[];Ls[il]=1,Ls[Do]=4,Ls[ds]=2;var bc=32854,ol=32855,rf=36194,Bf=33189,Ff=36168,xc=34041,nf=35907,af=34836,sl=34842,ul=34843,wc=[bc,ol,rf,nf,sl,ul,af],Js={};Js[tf]="complete",Js[yc]="incomplete attachment",Js[mc]="incomplete dimensions",Js[bu]="incomplete, missing attachment",Js[kf]="unsupported";function fl(he,Ue,et,Ht,vr,Vt){var nr={cur:null,next:null,dirty:!1,setFBO:null},Cr=["rgba"],Or=["rgba4","rgb565","rgb5 a1"];Ue.ext_srgb&&Or.push("srgba"),Ue.ext_color_buffer_half_float&&Or.push("rgba16f","rgb16f"),Ue.webgl_color_buffer_float&&Or.push("rgba32f");var Lr=["uint8"];Ue.oes_texture_half_float&&Lr.push("half float","float16"),Ue.oes_texture_float&&Lr.push("float","float32");function Ir(Tt,Nt,Lt){this.target=Tt,this.texture=Nt,this.renderbuffer=Lt;var Tr=0,Hr=0;Nt?(Tr=Nt.width,Hr=Nt.height):Lt&&(Tr=Lt.width,Hr=Lt.height),this.width=Tr,this.height=Hr}function Gr(Tt){Tt&&(Tt.texture&&Tt.texture._texture.decRef(),Tt.renderbuffer&&Tt.renderbuffer._renderbuffer.decRef())}function f(Tt,Nt,Lt){if(!!Tt)if(Tt.texture){var Tr=Tt.texture._texture,Hr=Math.max(1,Tr.width),Br=Math.max(1,Tr.height);Oe(Hr===Nt&&Br===Lt,"inconsistent width/height for supplied texture"),Tr.refCount+=1}else{var Zr=Tt.renderbuffer._renderbuffer;Oe(Zr.width===Nt&&Zr.height===Lt,"inconsistent width/height for renderbuffer"),Zr.refCount+=1}}function _(Tt,Nt){Nt&&(Nt.texture?he.framebufferTexture2D(bi,Tt,Nt.target,Nt.texture._texture.texture,0):he.framebufferRenderbuffer(bi,Tt,Ju,Nt.renderbuffer._renderbuffer.renderbuffer))}function F(Tt){var Nt=Os,Lt=null,Tr=null,Hr=Tt;typeof Tt=="object"&&(Hr=Tt.data,"target"in Tt&&(Nt=Tt.target|0)),Oe.type(Hr,"function","invalid attachment data");var Br=Hr._reglType;return Br==="texture2d"?(Lt=Hr,Oe(Nt===Os)):Br==="textureCube"?(Lt=Hr,Oe(Nt>=qu&&Nt=2,"invalid shape for framebuffer"),Sn=Xi[0],Rn=Xi[1]}else"radius"in hn&&(Sn=Rn=hn.radius),"width"in hn&&(Sn=hn.width),"height"in hn&&(Rn=hn.height);("color"in hn||"colors"in hn)&&(Gn=hn.color||hn.colors,Array.isArray(Gn)&&Oe(Gn.length===1||Ue.webgl_draw_buffers,"multiple render targets not supported")),Gn||("colorCount"in hn&&(ja=hn.colorCount|0,Oe(ja>0,"invalid color buffer count")),"colorTexture"in hn&&(Qa=!!hn.colorTexture,Ta="rgba4"),"colorType"in hn&&(ia=hn.colorType,Qa?(Oe(Ue.oes_texture_float||!(ia==="float"||ia==="float32"),"you must enable OES_texture_float in order to use floating point framebuffer objects"),Oe(Ue.oes_texture_half_float||!(ia==="half float"||ia==="float16"),"you must enable OES_texture_half_float in order to use 16-bit floating point framebuffer objects")):ia==="half float"||ia==="float16"?(Oe(Ue.ext_color_buffer_half_float,"you must enable EXT_color_buffer_half_float to use 16-bit render buffers"),Ta="rgba16f"):(ia==="float"||ia==="float32")&&(Oe(Ue.webgl_color_buffer_float,"you must enable WEBGL_color_buffer_float in order to use 32-bit floating point renderbuffers"),Ta="rgba32f"),Oe.oneOf(ia,Lr,"invalid color type")),"colorFormat"in hn&&(Ta=hn.colorFormat,Cr.indexOf(Ta)>=0?Qa=!0:Or.indexOf(Ta)>=0?Qa=!1:Qa?Oe.oneOf(hn.colorFormat,Cr,"invalid color format for texture"):Oe.oneOf(hn.colorFormat,Or,"invalid color format for renderbuffer"))),("depthTexture"in hn||"depthStencilTexture"in hn)&&(ci=!!(hn.depthTexture||hn.depthStencilTexture),Oe(!ci||Ue.webgl_depth_texture,"webgl_depth_texture extension not supported")),"depth"in hn&&(typeof hn.depth=="boolean"?Nn=hn.depth:(La=hn.depth,za=!1)),"stencil"in hn&&(typeof hn.stencil=="boolean"?za=hn.stencil:(ka=hn.stencil,Nn=!1)),"depthStencil"in hn&&(typeof hn.depthStencil=="boolean"?Nn=za=hn.depthStencil:(ji=hn.depthStencil,Nn=!1,za=!1))}var Sa=null,Tn=null,ra=null,da=null;if(Array.isArray(Gn))Sa=Gn.map(F);else if(Gn)Sa=[F(Gn)];else for(Sa=new Array(ja),an=0;an=0||Sa[an].renderbuffer&&wc.indexOf(Sa[an].renderbuffer._renderbuffer.format)>=0,"framebuffer color attachment "+an+" is invalid"),Sa[an]&&Sa[an].texture){var ms=xu[Sa[an].texture._texture.format]*Ls[Sa[an].texture._texture.type];gi===null?gi=ms:Oe(gi===ms,"all color attachments much have the same number of bits per pixel.")}return f(Tn,Sn,Rn),Oe(!Tn||Tn.texture&&Tn.texture._texture.format===As||Tn.renderbuffer&&Tn.renderbuffer._renderbuffer.format===Bf,"invalid depth attachment for framebuffer object"),f(ra,Sn,Rn),Oe(!ra||ra.renderbuffer&&ra.renderbuffer._renderbuffer.format===Ff,"invalid stencil attachment for framebuffer object"),f(da,Sn,Rn),Oe(!da||da.texture&&da.texture._texture.format===xc||da.renderbuffer&&da.renderbuffer._renderbuffer.format===xc,"invalid depth-stencil attachment for framebuffer object"),Ae(Lt),Lt.width=Sn,Lt.height=Rn,Lt.colorAttachments=Sa,Lt.depthAttachment=Tn,Lt.stencilAttachment=ra,Lt.depthStencilAttachment=da,Tr.color=Sa.map(re),Tr.depth=re(Tn),Tr.stencil=re(ra),Tr.depthStencil=re(da),Tr.width=Lt.width,Tr.height=Lt.height,Be(Lt),Tr}function Hr(Br,Zr){Oe(nr.next!==Lt,"can not resize a framebuffer which is currently in use");var an=Math.max(Br|0,1),Sn=Math.max(Zr|0||an,1);if(an===Lt.width&&Sn===Lt.height)return Tr;for(var Rn=Lt.colorAttachments,Nn=0;Nn=2,"invalid shape for framebuffer"),Oe(Qa[0]===Qa[1],"cube framebuffer must be square"),an=Qa[0]}else"radius"in Gn&&(an=Gn.radius|0),"width"in Gn?(an=Gn.width|0,"height"in Gn&&Oe(Gn.height===an,"must be square")):"height"in Gn&&(an=Gn.height|0);("color"in Gn||"colors"in Gn)&&(Sn=Gn.color||Gn.colors,Array.isArray(Sn)&&Oe(Sn.length===1||Ue.webgl_draw_buffers,"multiple render targets not supported")),Sn||("colorCount"in Gn&&(za=Gn.colorCount|0,Oe(za>0,"invalid color buffer count")),"colorType"in Gn&&(Oe.oneOf(Gn.colorType,Lr,"invalid color type"),Nn=Gn.colorType),"colorFormat"in Gn&&(Rn=Gn.colorFormat,Oe.oneOf(Gn.colorFormat,Cr,"invalid color format for texture"))),"depth"in Gn&&(Zr.depth=Gn.depth),"stencil"in Gn&&(Zr.stencil=Gn.stencil),"depthStencil"in Gn&&(Zr.depthStencil=Gn.depthStencil)}var Ta;if(Sn)if(Array.isArray(Sn))for(Ta=[],Br=0;Br0&&(Zr.depth=Nt[0].depth,Zr.stencil=Nt[0].stencil,Zr.depthStencil=Nt[0].depthStencil),Nt[Br]?Nt[Br](Zr):Nt[Br]=Je(Zr)}return G(Lt,{width:an,height:an,color:Ta})}function Tr(Hr){var Br,Zr=Hr|0;if(Oe(Zr>0&&Zr<=et.maxCubeMapSize,"invalid radius for cube fbo"),Zr===Lt.width)return Lt;var an=Lt.color;for(Br=0;Br0,"must specify at least one attribute");var xt={},ar=ze.attributes;ar.length=Je.length;for(var Tt=0;Tt=Tr.byteLength?Hr.subdata(Tr):(Hr.destroy(),ze.buffers[Tt]=null)),ze.buffers[Tt]||(Hr=ze.buffers[Tt]=vr.create(Nt,wu,!1,!0)),Lt.buffer=vr.getBuffer(Hr),Lt.size=Lt.buffer.dimension|0,Lt.normalized=!1,Lt.type=Lt.buffer.dtype,Lt.offset=0,Lt.stride=0,Lt.divisor=0,Lt.state=1,xt[Tt]=1}else vr.getBuffer(Nt)?(Lt.buffer=vr.getBuffer(Nt),Lt.size=Lt.buffer.dimension|0,Lt.normalized=!1,Lt.type=Lt.buffer.dtype,Lt.offset=0,Lt.stride=0,Lt.divisor=0,Lt.state=1):vr.getBuffer(Nt.buffer)?(Lt.buffer=vr.getBuffer(Nt.buffer),Lt.size=(+Nt.size||Lt.buffer.dimension)|0,Lt.normalized=!!Nt.normalized||!1,"type"in Nt?(Oe.parameter(Nt.type,Zi,"invalid buffer type"),Lt.type=Zi[Nt.type]):Lt.type=Lt.buffer.dtype,Lt.offset=(Nt.offset||0)|0,Lt.stride=(Nt.stride||0)|0,Lt.divisor=(Nt.divisor||0)|0,Lt.state=1,Oe(Lt.size>=1&&Lt.size<=4,"size must be between 1 and 4"),Oe(Lt.offset>=0,"invalid offset"),Oe(Lt.stride>=0&&Lt.stride<=255,"stride must be between 0 and 255"),Oe(Lt.divisor>=0,"divisor must be positive"),Oe(!Lt.divisor||!!Ue.angle_instanced_arrays,"ANGLE_instanced_arrays must be enabled to use divisor")):"x"in Nt?(Oe(Tt>0,"first attribute must not be a constant"),Lt.x=+Nt.x||0,Lt.y=+Nt.y||0,Lt.z=+Nt.z||0,Lt.w=+Nt.w||0,Lt.state=2):Oe(!1,"invalid attribute spec for location "+Tt)}for(var Br=0;Br1)for(var ar=0;arY&&(Y=re.stats.uniformsCount)}),Y},et.getMaxAttributesCount=function(){var Y=0;return Ir.forEach(function(re){re.stats.attributesCount>Y&&(Y=re.stats.attributesCount)}),Y});function F(){vr={},Vt={};for(var Y=0;Y=0,"missing vertex shader",ie),Oe.command(re>=0,"missing fragment shader",ie);var pe=Lr[re];pe||(pe=Lr[re]={});var we=pe[Y];if(we&&(we.refCount++,!le))return we;var Ae=new f(re,Y);return et.shaderCount++,_(Ae,ie,le),we||(pe[Y]=Ae),Ir.push(Ae),G(Ae,{destroy:function(){if(Ae.refCount--,Ae.refCount<=0){he.deleteProgram(Ae.program);var ze=Ir.indexOf(Ae);Ir.splice(ze,1),et.shaderCount--}pe[Ae.vertId].refCount<=0&&(he.deleteShader(Vt[Ae.vertId]),delete Vt[Ae.vertId],delete Lr[Ae.fragId][Ae.vertId]),Object.keys(Lr[Ae.fragId]).length||(he.deleteShader(vr[Ae.fragId]),delete vr[Ae.fragId],delete Lr[Ae.fragId])}})},restore:F,shader:Or,frag:-1,vert:-1}}var _c=6408,_u=5121,of=3333,To=5126;function Mc(he,Ue,et,Ht,vr,Vt,nr){function Cr(Ir){var Gr;Ue.next===null?(Oe(vr.preserveDrawingBuffer,'you must create a webgl context with "preserveDrawingBuffer":true in order to read pixels from the drawing buffer'),Gr=_u):(Oe(Ue.next.colorAttachments[0].texture!==null,"You cannot read from a renderbuffer"),Gr=Ue.next.colorAttachments[0].texture._texture.type,Vt.oes_texture_float?(Oe(Gr===_u||Gr===To,"Reading from a framebuffer is only allowed for the types 'uint8' and 'float'"),Gr===To&&Oe(nr.readFloat,"Reading 'float' values is not permitted in your browser. For a fallback, please see: https://www.npmjs.com/package/glsl-read-float")):Oe(Gr===_u,"Reading from a framebuffer is only allowed for the type 'uint8'"));var f=0,_=0,F=Ht.framebufferWidth,Y=Ht.framebufferHeight,re=null;U(Ir)?re=Ir:Ir&&(Oe.type(Ir,"object","invalid arguments to regl.read()"),f=Ir.x|0,_=Ir.y|0,Oe(f>=0&&f=0&&_0&&F+f<=Ht.framebufferWidth,"invalid width for read pixels"),Oe(Y>0&&Y+_<=Ht.framebufferHeight,"invalid height for read pixels"),et();var ie=F*Y*4;return re||(Gr===_u?re=new Uint8Array(ie):Gr===To&&(re=re||new Float32Array(ie))),Oe.isTypedArray(re,"data buffer for regl.read() must be a typedarray"),Oe(re.byteLength>=ie,"data buffer for regl.read() too small"),he.pixelStorei(of,4),he.readPixels(f,_,F,Y,_c,Gr,re),re}function Or(Ir){var Gr;return Ue.setFBO({framebuffer:Ir.framebuffer},function(){Gr=Cr(Ir)}),Gr}function Lr(Ir){return!Ir||!("framebuffer"in Ir)?Cr(Ir):Or(Ir)}return Lr}function qs(he){return Array.prototype.slice.call(he)}function Ds(he){return qs(he).join("")}function Kr(){var he=0,Ue=[],et=[];function Ht(Gr){for(var f=0;f0&&(Gr.push(Y,"="),Gr.push.apply(Gr,qs(arguments)),Gr.push(";")),Y}return G(f,{def:F,toString:function(){return Ds([_.length>0?"var "+_.join(",")+";":"",Ds(Gr)])}})}function Vt(){var Gr=vr(),f=vr(),_=Gr.toString,F=f.toString;function Y(re,ie){f(re,ie,"=",Gr.def(re,ie),";")}return G(function(){Gr.apply(Gr,qs(arguments))},{def:Gr.def,entry:Gr,exit:f,save:Y,set:function(re,ie,le){Y(re,ie),Gr(re,ie,"=",le,";")},toString:function(){return _()+F()}})}function nr(){var Gr=Ds(arguments),f=Vt(),_=Vt(),F=f.toString,Y=_.toString;return G(f,{then:function(){return f.apply(f,qs(arguments)),this},else:function(){return _.apply(_,qs(arguments)),this},toString:function(){var re=Y();return re&&(re="else{"+re+"}"),Ds(["if(",Gr,"){",F(),"}",re])}})}var Cr=vr(),Or={};function Lr(Gr,f){var _=[];function F(){var pe="a"+_.length;return _.push(pe),pe}f=f||0;for(var Y=0;Y":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Vo={"0":0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},nc={frag:Pc,vert:kc},ac={cw:Wc,ccw:pf};function yf(he){return Array.isArray(he)||U(he)||ei(he)}function Yc(he){return he.sort(function(Ue,et){return Ue===jo?-1:et===jo?1:Ue=1,Ht>=2,Ue)}else if(et===Cu){var vr=he.data;return new Ji(vr.thisDep,vr.contextDep,vr.propDep,Ue)}else{if(et===Tc)return new Ji(!1,!1,!1,Ue);if(et===Ic){for(var Vt=!1,nr=!1,Cr=!1,Or=0;Or=1&&(nr=!0),Ir>=2&&(Cr=!0)}else Lr.type===Cu&&(Vt=Vt||Lr.data.thisDep,nr=nr||Lr.data.contextDep,Cr=Cr||Lr.data.propDep)}return new Ji(Vt,nr,Cr,Ue)}else return new Ji(et===tu,et===eu,et===Ps,Ue)}}var mf=new Ji(!1,!1,!1,function(){});function Yo(he,Ue,et,Ht,vr,Vt,nr,Cr,Or,Lr,Ir,Gr,f,_,F){var Y=Lr.Record,re={add:32774,subtract:32778,"reverse subtract":32779};et.ext_blend_minmax&&(re.min=Yn,re.max=bl);var ie=et.angle_instanced_arrays,le=et.webgl_draw_buffers,pe={dirty:!0,profile:F.profile},we={},Ae=[],ze={},Be={};function Je(Ze){return Ze.replace(".","_")}function xt(Ze,Fe,dt){var kt=Je(Ze);Ae.push(Ze),we[kt]=pe[kt]=!!dt,ze[kt]=Fe}function ar(Ze,Fe,dt){var kt=Je(Ze);Ae.push(Ze),Array.isArray(dt)?(pe[kt]=dt.slice(),we[kt]=dt.slice()):pe[kt]=we[kt]=dt,Be[kt]=Fe}xt(Oc,Fc),xt(zf,Bc),ar(Uf,"blendColor",[0,0,0,0]),ar(Wf,"blendEquationSeparate",[Xc,Xc]),ar(sf,"blendFuncSeparate",[jc,rc,jc,rc]),xt(jf,Gc,!0),ar(Xf,"depthFunc",xl),ar(Tu,"depthRange",[0,1]),ar(ks,"depthMask",!0),ar(Ti,Ti,[!0,!0,!0,!0]),xt(lt,ml),ar(vl,"cullFace",js),ar(Iu,Iu,pf),ar(Vf,Vf,1),xt(gl,Uc),ar(Ac,"polygonOffset",[0,0]),xt(pl,Gs),xt(yl,Du),ar(uf,"sampleCoverage",[1,!1]),xt(Yf,El),ar(Lc,"stencilMask",-1),ar(Hf,"stencilFunc",[uo,0,-1]),ar(Si,"stencilOpSeparate",[Bu,ys,ys,ys]),ar(Ou,"stencilOpSeparate",[js,ys,ys,ys]),xt(vi,zc),ar(Au,"scissor",[0,0,he.drawingBufferWidth,he.drawingBufferHeight]),ar(jo,jo,[0,0,he.drawingBufferWidth,he.drawingBufferHeight]);var Tt={gl:he,context:f,strings:Ue,next:we,current:pe,draw:Gr,elements:Vt,buffer:vr,shader:Ir,attributes:Lr.state,vao:Lr,uniforms:Or,framebuffer:Cr,extensions:et,timer:_,isBufferArgs:yf},Nt={primTypes:Di,compareFuncs:su,blendFuncs:Pi,blendEquations:re,stencilOps:Vo,glTypes:Zi,orientationType:ac};Oe.optional(function(){Tt.isArrayLike=Pa}),le&&(Nt.backBuffer=[js],Nt.drawBuffer=mn(Ht.maxDrawbuffers,function(Ze){return Ze===0?[0]:mn(Ze,function(Fe){return wl+Fe})}));var Lt=0;function Tr(){var Ze=Kr(),Fe=Ze.link,dt=Ze.global;Ze.id=Lt++,Ze.batchId="0";var kt=Fe(Tt),Gt=Ze.shared={props:"a0"};Object.keys(Tt).forEach(function(ct){Gt[ct]=dt.def(kt,".",ct)}),Oe.optional(function(){Ze.CHECK=Fe(Oe),Ze.commandStr=Oe.guessCommand(),Ze.command=Fe(Ze.commandStr),Ze.assert=function(ct,je,Pt){ct("if(!(",je,"))",this.CHECK,".commandRaise(",Fe(Pt),",",this.command,");")},Nt.invalidBlendCombinations=Vc});var Et=Ze.next={},gt=Ze.current={};Object.keys(Be).forEach(function(ct){Array.isArray(pe[ct])&&(Et[ct]=dt.def(Gt.next,".",ct),gt[ct]=dt.def(Gt.current,".",ct))});var It=Ze.constants={};Object.keys(Nt).forEach(function(ct){It[ct]=dt.def(JSON.stringify(Nt[ct]))}),Ze.invoke=function(ct,je){switch(je.type){case Gf:var Pt=["this",Gt.context,Gt.props,Ze.batchId];return ct.def(Fe(je.data),".call(",Pt.slice(0,Math.max(je.data.length+1,4)),")");case Ps:return ct.def(Gt.props,je.data);case eu:return ct.def(Gt.context,je.data);case tu:return ct.def("this",je.data);case Cu:return je.data.append(Ze,ct),je.data.ref;case Tc:return je.data.toString();case Ic:return je.data.map(function(Ut){return Ze.invoke(ct,Ut)})}},Ze.attribCache={};var He={};return Ze.scopeAttrib=function(ct){var je=Ue.id(ct);if(je in He)return He[je];var Pt=Lr.scope[je];Pt||(Pt=Lr.scope[je]=new Y);var Ut=He[je]=Fe(Pt);return Ut},Ze}function Hr(Ze){var Fe=Ze.static,dt=Ze.dynamic,kt;if(vs in Fe){var Gt=!!Fe[vs];kt=fi(function(gt,It){return Gt}),kt.enable=Gt}else if(vs in dt){var Et=dt[vs];kt=Wi(Et,function(gt,It){return gt.invoke(It,Et)})}return kt}function Br(Ze,Fe){var dt=Ze.static,kt=Ze.dynamic;if(Rs in dt){var Gt=dt[Rs];return Gt?(Gt=Cr.getFramebuffer(Gt),Oe.command(Gt,"invalid framebuffer object"),fi(function(gt,It){var He=gt.link(Gt),ct=gt.shared;It.set(ct.framebuffer,".next",He);var je=ct.context;return It.set(je,"."+$n,He+".width"),It.set(je,"."+Io,He+".height"),He})):fi(function(gt,It){var He=gt.shared;It.set(He.framebuffer,".next","null");var ct=He.context;return It.set(ct,"."+$n,ct+"."+Qf),It.set(ct,"."+Io,ct+"."+Jf),"null"})}else if(Rs in kt){var Et=kt[Rs];return Wi(Et,function(gt,It){var He=gt.invoke(It,Et),ct=gt.shared,je=ct.framebuffer,Pt=It.def(je,".getFramebuffer(",He,")");Oe.optional(function(){gt.assert(It,"!"+He+"||"+Pt,"invalid framebuffer object")}),It.set(je,".next",Pt);var Ut=ct.context;return It.set(Ut,"."+$n,Pt+"?"+Pt+".width:"+Ut+"."+Qf),It.set(Ut,"."+Io,Pt+"?"+Pt+".height:"+Ut+"."+Jf),Pt})}else return null}function Zr(Ze,Fe,dt){var kt=Ze.static,Gt=Ze.dynamic;function Et(He){if(He in kt){var ct=kt[He];Oe.commandType(ct,"object","invalid "+He,dt.commandStr);var je=!0,Pt=ct.x|0,Ut=ct.y|0,gr,yr;return"width"in ct?(gr=ct.width|0,Oe.command(gr>=0,"invalid "+He,dt.commandStr)):je=!1,"height"in ct?(yr=ct.height|0,Oe.command(yr>=0,"invalid "+He,dt.commandStr)):je=!1,new Ji(!je&&Fe&&Fe.thisDep,!je&&Fe&&Fe.contextDep,!je&&Fe&&Fe.propDep,function(pn,Xn){var cn=pn.shared.context,In=gr;"width"in ct||(In=Xn.def(cn,".",$n,"-",Pt));var zn=yr;return"height"in ct||(zn=Xn.def(cn,".",Io,"-",Ut)),[Pt,Ut,In,zn]})}else if(He in Gt){var ur=Gt[He],Dr=Wi(ur,function(pn,Xn){var cn=pn.invoke(Xn,ur);Oe.optional(function(){pn.assert(Xn,cn+"&&typeof "+cn+'==="object"',"invalid "+He)});var In=pn.shared.context,zn=Xn.def(cn,".x|0"),ma=Xn.def(cn,".y|0"),li=Xn.def('"width" in ',cn,"?",cn,".width|0:","(",In,".",$n,"-",zn,")"),fo=Xn.def('"height" in ',cn,"?",cn,".height|0:","(",In,".",Io,"-",ma,")");return Oe.optional(function(){pn.assert(Xn,li+">=0&&"+fo+">=0","invalid "+He)}),[zn,ma,li,fo]});return Fe&&(Dr.thisDep=Dr.thisDep||Fe.thisDep,Dr.contextDep=Dr.contextDep||Fe.contextDep,Dr.propDep=Dr.propDep||Fe.propDep),Dr}else return Fe?new Ji(Fe.thisDep,Fe.contextDep,Fe.propDep,function(pn,Xn){var cn=pn.shared.context;return[0,0,Xn.def(cn,".",$n),Xn.def(cn,".",Io)]}):null}var gt=Et(jo);if(gt){var It=gt;gt=new Ji(gt.thisDep,gt.contextDep,gt.propDep,function(He,ct){var je=It.append(He,ct),Pt=He.shared.context;return ct.set(Pt,"."+nu,je[2]),ct.set(Pt,"."+$f,je[3]),je})}return{viewport:gt,scissor_box:Et(Au)}}function an(Ze,Fe){var dt=Ze.static,kt=typeof dt[ru]=="string"&&typeof dt[gs]=="string";if(kt){if(Object.keys(Fe.dynamic).length>0)return null;var Gt=Fe.static,Et=Object.keys(Gt);if(Et.length>0&&typeof Gt[Et[0]]=="number"){for(var gt=[],It=0;It=0,"invalid "+je,Fe.commandStr),fi(function(yr,ur){return Pt&&(yr.OFFSET=Ut),Ut})}else if(je in kt){var gr=kt[je];return Wi(gr,function(yr,ur){var Dr=yr.invoke(ur,gr);return Pt&&(yr.OFFSET=Dr,Oe.optional(function(){yr.assert(ur,Dr+">=0","invalid "+je)})),Dr})}else if(Pt&&Et)return fi(function(yr,ur){return yr.OFFSET="0",0});return null}var He=It(Bs,!0);function ct(){if(wo in dt){var je=dt[wo]|0;return Oe.command(typeof je=="number"&&je>=0,"invalid vertex count",Fe.commandStr),fi(function(){return je})}else if(wo in kt){var Pt=kt[wo];return Wi(Pt,function(yr,ur){var Dr=yr.invoke(ur,Pt);return Oe.optional(function(){yr.assert(ur,"typeof "+Dr+'==="number"&&'+Dr+">=0&&"+Dr+"===("+Dr+"|0)","invalid vertex count")}),Dr})}else if(Et)if(es(Et)){if(Et)return He?new Ji(He.thisDep,He.contextDep,He.propDep,function(yr,ur){var Dr=ur.def(yr.ELEMENTS,".vertCount-",yr.OFFSET);return Oe.optional(function(){yr.assert(ur,Dr+">=0","invalid vertex offset/element buffer too small")}),Dr}):fi(function(yr,ur){return ur.def(yr.ELEMENTS,".vertCount")});var Ut=fi(function(){return-1});return Oe.optional(function(){Ut.MISSING=!0}),Ut}else{var gr=new Ji(Et.thisDep||He.thisDep,Et.contextDep||He.contextDep,Et.propDep||He.propDep,function(yr,ur){var Dr=yr.ELEMENTS;return yr.OFFSET?ur.def(Dr,"?",Dr,".vertCount-",yr.OFFSET,":-1"):ur.def(Dr,"?",Dr,".vertCount:-1")});return Oe.optional(function(){gr.DYNAMIC=!0}),gr}return null}return{elements:Et,primitive:gt(),count:ct(),instances:It(ff,!1),offset:He}}function Nn(Ze,Fe){var dt=Ze.static,kt=Ze.dynamic,Gt={};return Ae.forEach(function(Et){var gt=Je(Et);function It(He,ct){if(Et in dt){var je=He(dt[Et]);Gt[gt]=fi(function(){return je})}else if(Et in kt){var Pt=kt[Et];Gt[gt]=Wi(Pt,function(Ut,gr){return ct(Ut,gr,Ut.invoke(gr,Pt))})}}switch(Et){case lt:case zf:case Oc:case Yf:case jf:case vi:case gl:case pl:case yl:case ks:return It(function(He){return Oe.commandType(He,"boolean",Et,Fe.commandStr),He},function(He,ct,je){return Oe.optional(function(){He.assert(ct,"typeof "+je+'==="boolean"',"invalid flag "+Et,He.commandStr)}),je});case Xf:return It(function(He){return Oe.commandParameter(He,su,"invalid "+Et,Fe.commandStr),su[He]},function(He,ct,je){var Pt=He.constants.compareFuncs;return Oe.optional(function(){He.assert(ct,je+" in "+Pt,"invalid "+Et+", must be one of "+Object.keys(su))}),ct.def(Pt,"[",je,"]")});case Tu:return It(function(He){return Oe.command(Pa(He)&&He.length===2&&typeof He[0]=="number"&&typeof He[1]=="number"&&He[0]<=He[1],"depth range is 2d array",Fe.commandStr),He},function(He,ct,je){Oe.optional(function(){He.assert(ct,He.shared.isArrayLike+"("+je+")&&"+je+".length===2&&typeof "+je+'[0]==="number"&&typeof '+je+'[1]==="number"&&'+je+"[0]<="+je+"[1]","depth range must be a 2d array")});var Pt=ct.def("+",je,"[0]"),Ut=ct.def("+",je,"[1]");return[Pt,Ut]});case sf:return It(function(He){Oe.commandType(He,"object","blend.func",Fe.commandStr);var ct="srcRGB"in He?He.srcRGB:He.src,je="srcAlpha"in He?He.srcAlpha:He.src,Pt="dstRGB"in He?He.dstRGB:He.dst,Ut="dstAlpha"in He?He.dstAlpha:He.dst;return Oe.commandParameter(ct,Pi,gt+".srcRGB",Fe.commandStr),Oe.commandParameter(je,Pi,gt+".srcAlpha",Fe.commandStr),Oe.commandParameter(Pt,Pi,gt+".dstRGB",Fe.commandStr),Oe.commandParameter(Ut,Pi,gt+".dstAlpha",Fe.commandStr),Oe.command(Vc.indexOf(ct+", "+Pt)===-1,"unallowed blending combination (srcRGB, dstRGB) = ("+ct+", "+Pt+")",Fe.commandStr),[Pi[ct],Pi[Pt],Pi[je],Pi[Ut]]},function(He,ct,je){var Pt=He.constants.blendFuncs;Oe.optional(function(){He.assert(ct,je+"&&typeof "+je+'==="object"',"invalid blend func, must be an object")});function Ut(cn,In){var zn=ct.def('"',cn,In,'" in ',je,"?",je,".",cn,In,":",je,".",cn);return Oe.optional(function(){He.assert(ct,zn+" in "+Pt,"invalid "+Et+"."+cn+In+", must be one of "+Object.keys(Pi))}),zn}var gr=Ut("src","RGB"),yr=Ut("dst","RGB");Oe.optional(function(){var cn=He.constants.invalidBlendCombinations;He.assert(ct,cn+".indexOf("+gr+'+", "+'+yr+") === -1 ","unallowed blending combination for (srcRGB, dstRGB)")});var ur=ct.def(Pt,"[",gr,"]"),Dr=ct.def(Pt,"[",Ut("src","Alpha"),"]"),pn=ct.def(Pt,"[",yr,"]"),Xn=ct.def(Pt,"[",Ut("dst","Alpha"),"]");return[ur,pn,Dr,Xn]});case Wf:return It(function(He){if(typeof He=="string")return Oe.commandParameter(He,re,"invalid "+Et,Fe.commandStr),[re[He],re[He]];if(typeof He=="object")return Oe.commandParameter(He.rgb,re,Et+".rgb",Fe.commandStr),Oe.commandParameter(He.alpha,re,Et+".alpha",Fe.commandStr),[re[He.rgb],re[He.alpha]];Oe.commandRaise("invalid blend.equation",Fe.commandStr)},function(He,ct,je){var Pt=He.constants.blendEquations,Ut=ct.def(),gr=ct.def(),yr=He.cond("typeof ",je,'==="string"');return Oe.optional(function(){function ur(Dr,pn,Xn){He.assert(Dr,Xn+" in "+Pt,"invalid "+pn+", must be one of "+Object.keys(re))}ur(yr.then,Et,je),He.assert(yr.else,je+"&&typeof "+je+'==="object"',"invalid "+Et),ur(yr.else,Et+".rgb",je+".rgb"),ur(yr.else,Et+".alpha",je+".alpha")}),yr.then(Ut,"=",gr,"=",Pt,"[",je,"];"),yr.else(Ut,"=",Pt,"[",je,".rgb];",gr,"=",Pt,"[",je,".alpha];"),ct(yr),[Ut,gr]});case Uf:return It(function(He){return Oe.command(Pa(He)&&He.length===4,"blend.color must be a 4d array",Fe.commandStr),mn(4,function(ct){return+He[ct]})},function(He,ct,je){return Oe.optional(function(){He.assert(ct,He.shared.isArrayLike+"("+je+")&&"+je+".length===4","blend.color must be a 4d array")}),mn(4,function(Pt){return ct.def("+",je,"[",Pt,"]")})});case Lc:return It(function(He){return Oe.commandType(He,"number",gt,Fe.commandStr),He|0},function(He,ct,je){return Oe.optional(function(){He.assert(ct,"typeof "+je+'==="number"',"invalid stencil.mask")}),ct.def(je,"|0")});case Hf:return It(function(He){Oe.commandType(He,"object",gt,Fe.commandStr);var ct=He.cmp||"keep",je=He.ref||0,Pt="mask"in He?He.mask:-1;return Oe.commandParameter(ct,su,Et+".cmp",Fe.commandStr),Oe.commandType(je,"number",Et+".ref",Fe.commandStr),Oe.commandType(Pt,"number",Et+".mask",Fe.commandStr),[su[ct],je,Pt]},function(He,ct,je){var Pt=He.constants.compareFuncs;Oe.optional(function(){function ur(){He.assert(ct,Array.prototype.join.call(arguments,""),"invalid stencil.func")}ur(je+"&&typeof ",je,'==="object"'),ur('!("cmp" in ',je,")||(",je,".cmp in ",Pt,")")});var Ut=ct.def('"cmp" in ',je,"?",Pt,"[",je,".cmp]",":",ys),gr=ct.def(je,".ref|0"),yr=ct.def('"mask" in ',je,"?",je,".mask|0:-1");return[Ut,gr,yr]});case Si:case Ou:return It(function(He){Oe.commandType(He,"object",gt,Fe.commandStr);var ct=He.fail||"keep",je=He.zfail||"keep",Pt=He.zpass||"keep";return Oe.commandParameter(ct,Vo,Et+".fail",Fe.commandStr),Oe.commandParameter(je,Vo,Et+".zfail",Fe.commandStr),Oe.commandParameter(Pt,Vo,Et+".zpass",Fe.commandStr),[Et===Ou?js:Bu,Vo[ct],Vo[je],Vo[Pt]]},function(He,ct,je){var Pt=He.constants.stencilOps;Oe.optional(function(){He.assert(ct,je+"&&typeof "+je+'==="object"',"invalid "+Et)});function Ut(gr){return Oe.optional(function(){He.assert(ct,'!("'+gr+'" in '+je+")||("+je+"."+gr+" in "+Pt+")","invalid "+Et+"."+gr+", must be one of "+Object.keys(Vo))}),ct.def('"',gr,'" in ',je,"?",Pt,"[",je,".",gr,"]:",ys)}return[Et===Ou?js:Bu,Ut("fail"),Ut("zfail"),Ut("zpass")]});case Ac:return It(function(He){Oe.commandType(He,"object",gt,Fe.commandStr);var ct=He.factor|0,je=He.units|0;return Oe.commandType(ct,"number",gt+".factor",Fe.commandStr),Oe.commandType(je,"number",gt+".units",Fe.commandStr),[ct,je]},function(He,ct,je){Oe.optional(function(){He.assert(ct,je+"&&typeof "+je+'==="object"',"invalid "+Et)});var Pt=ct.def(je,".factor|0"),Ut=ct.def(je,".units|0");return[Pt,Ut]});case vl:return It(function(He){var ct=0;return He==="front"?ct=Bu:He==="back"&&(ct=js),Oe.command(!!ct,gt,Fe.commandStr),ct},function(He,ct,je){return Oe.optional(function(){He.assert(ct,je+'==="front"||'+je+'==="back"',"invalid cull.face")}),ct.def(je,'==="front"?',Bu,":",js)});case Vf:return It(function(He){return Oe.command(typeof He=="number"&&He>=Ht.lineWidthDims[0]&&He<=Ht.lineWidthDims[1],"invalid line width, must be a positive number between "+Ht.lineWidthDims[0]+" and "+Ht.lineWidthDims[1],Fe.commandStr),He},function(He,ct,je){return Oe.optional(function(){He.assert(ct,"typeof "+je+'==="number"&&'+je+">="+Ht.lineWidthDims[0]+"&&"+je+"<="+Ht.lineWidthDims[1],"invalid line width")}),je});case Iu:return It(function(He){return Oe.commandParameter(He,ac,gt,Fe.commandStr),ac[He]},function(He,ct,je){return Oe.optional(function(){He.assert(ct,je+'==="cw"||'+je+'==="ccw"',"invalid frontFace, must be one of cw,ccw")}),ct.def(je+'==="cw"?'+Wc+":"+pf)});case Ti:return It(function(He){return Oe.command(Pa(He)&&He.length===4,"color.mask must be length 4 array",Fe.commandStr),He.map(function(ct){return!!ct})},function(He,ct,je){return Oe.optional(function(){He.assert(ct,He.shared.isArrayLike+"("+je+")&&"+je+".length===4","invalid color.mask")}),mn(4,function(Pt){return"!!"+je+"["+Pt+"]"})});case uf:return It(function(He){Oe.command(typeof He=="object"&&He,gt,Fe.commandStr);var ct="value"in He?He.value:1,je=!!He.invert;return Oe.command(typeof ct=="number"&&ct>=0&&ct<=1,"sample.coverage.value must be a number between 0 and 1",Fe.commandStr),[ct,je]},function(He,ct,je){Oe.optional(function(){He.assert(ct,je+"&&typeof "+je+'==="object"',"invalid sample.coverage")});var Pt=ct.def('"value" in ',je,"?+",je,".value:1"),Ut=ct.def("!!",je,".invert");return[Pt,Ut]})}}),Gt}function za(Ze,Fe){var dt=Ze.static,kt=Ze.dynamic,Gt={};return Object.keys(dt).forEach(function(Et){var gt=dt[Et],It;if(typeof gt=="number"||typeof gt=="boolean")It=fi(function(){return gt});else if(typeof gt=="function"){var He=gt._reglType;He==="texture2d"||He==="textureCube"?It=fi(function(ct){return ct.link(gt)}):He==="framebuffer"||He==="framebufferCube"?(Oe.command(gt.color.length>0,'missing color attachment for framebuffer sent to uniform "'+Et+'"',Fe.commandStr),It=fi(function(ct){return ct.link(gt.color[0])})):Oe.commandRaise('invalid data for uniform "'+Et+'"',Fe.commandStr)}else Pa(gt)?It=fi(function(ct){var je=ct.global.def("[",mn(gt.length,function(Pt){return Oe.command(typeof gt[Pt]=="number"||typeof gt[Pt]=="boolean","invalid uniform "+Et,ct.commandStr),gt[Pt]}),"]");return je}):Oe.commandRaise('invalid or missing data for uniform "'+Et+'"',Fe.commandStr);It.value=gt,Gt[Et]=It}),Object.keys(kt).forEach(function(Et){var gt=kt[Et];Gt[Et]=Wi(gt,function(It,He){return It.invoke(He,gt)})}),Gt}function Gn(Ze,Fe){var dt=Ze.static,kt=Ze.dynamic,Gt={};return Object.keys(dt).forEach(function(Et){var gt=dt[Et],It=Ue.id(Et),He=new Y;if(yf(gt))He.state=so,He.buffer=vr.getBuffer(vr.create(gt,Fs,!1,!0)),He.type=0;else{var ct=vr.getBuffer(gt);if(ct)He.state=so,He.buffer=ct,He.type=0;else if(Oe.command(typeof gt=="object"&>,"invalid data for attribute "+Et,Fe.commandStr),"constant"in gt){var je=gt.constant;He.buffer="null",He.state=Ns,typeof je=="number"?He.x=je:(Oe.command(Pa(je)&&je.length>0&&je.length<=4,"invalid constant for attribute "+Et,Fe.commandStr),Mu.forEach(function(pn,Xn){Xn=0,'invalid offset for attribute "'+Et+'"',Fe.commandStr);var Ut=gt.stride|0;Oe.command(Ut>=0&&Ut<256,'invalid stride for attribute "'+Et+'", must be integer betweeen [0, 255]',Fe.commandStr);var gr=gt.size|0;Oe.command(!("size"in gt)||gr>0&&gr<=4,'invalid size for attribute "'+Et+'", must be 1,2,3,4',Fe.commandStr);var yr=!!gt.normalized,ur=0;"type"in gt&&(Oe.commandParameter(gt.type,Zi,"invalid type for attribute "+Et,Fe.commandStr),ur=Zi[gt.type]);var Dr=gt.divisor|0;"divisor"in gt&&(Oe.command(Dr===0||ie,'cannot specify divisor for attribute "'+Et+'", instancing not supported',Fe.commandStr),Oe.command(Dr>=0,'invalid divisor for attribute "'+Et+'"',Fe.commandStr)),Oe.optional(function(){var pn=Fe.commandStr,Xn=["buffer","offset","divisor","normalized","type","size","stride"];Object.keys(gt).forEach(function(cn){Oe.command(Xn.indexOf(cn)>=0,'unknown parameter "'+cn+'" for attribute pointer "'+Et+'" (valid parameters are '+Xn+")",pn)})}),He.buffer=ct,He.state=so,He.size=gr,He.normalized=yr,He.type=ur||ct.dtype,He.offset=Pt,He.stride=Ut,He.divisor=Dr}}Gt[Et]=fi(function(pn,Xn){var cn=pn.attribCache;if(It in cn)return cn[It];var In={isStream:!1};return Object.keys(He).forEach(function(zn){In[zn]=He[zn]}),He.buffer&&(In.buffer=pn.link(He.buffer),In.type=In.type||In.buffer+".dtype"),cn[It]=In,In})}),Object.keys(kt).forEach(function(Et){var gt=kt[Et];function It(He,ct){var je=He.invoke(ct,gt),Pt=He.shared,Ut=He.constants,gr=Pt.isBufferArgs,yr=Pt.buffer;Oe.optional(function(){He.assert(ct,je+"&&(typeof "+je+'==="object"||typeof '+je+'==="function")&&('+gr+"("+je+")||"+yr+".getBuffer("+je+")||"+yr+".getBuffer("+je+".buffer)||"+gr+"("+je+'.buffer)||("constant" in '+je+"&&(typeof "+je+'.constant==="number"||'+Pt.isArrayLike+"("+je+".constant))))",'invalid dynamic attribute "'+Et+'"')});var ur={isStream:ct.def(!1)},Dr=new Y;Dr.state=so,Object.keys(Dr).forEach(function(In){ur[In]=ct.def(""+Dr[In])});var pn=ur.buffer,Xn=ur.type;ct("if(",gr,"(",je,")){",ur.isStream,"=true;",pn,"=",yr,".createStream(",Fs,",",je,");",Xn,"=",pn,".dtype;","}else{",pn,"=",yr,".getBuffer(",je,");","if(",pn,"){",Xn,"=",pn,".dtype;",'}else if("constant" in ',je,"){",ur.state,"=",Ns,";","if(typeof "+je+'.constant === "number"){',ur[Mu[0]],"=",je,".constant;",Mu.slice(1).map(function(In){return ur[In]}).join("="),"=0;","}else{",Mu.map(function(In,zn){return ur[In]+"="+je+".constant.length>"+zn+"?"+je+".constant["+zn+"]:0;"}).join(""),"}}else{","if(",gr,"(",je,".buffer)){",pn,"=",yr,".createStream(",Fs,",",je,".buffer);","}else{",pn,"=",yr,".getBuffer(",je,".buffer);","}",Xn,'="type" in ',je,"?",Ut.glTypes,"[",je,".type]:",pn,".dtype;",ur.normalized,"=!!",je,".normalized;");function cn(In){ct(ur[In],"=",je,".",In,"|0;")}return cn("size"),cn("offset"),cn("stride"),cn("divisor"),ct("}}"),ct.exit("if(",ur.isStream,"){",yr,".destroyStream(",pn,");","}"),ur}Gt[Et]=Wi(gt,It)}),Gt}function Qa(Ze,Fe){var dt=Ze.static,kt=Ze.dynamic;if(Lu in dt){var Gt=dt[Lu];return Gt!==null&&Lr.getVAO(Gt)===null&&(Gt=Lr.createVAO(Gt)),fi(function(gt){return gt.link(Lr.getVAO(Gt))})}else if(Lu in kt){var Et=kt[Lu];return Wi(Et,function(gt,It){var He=gt.invoke(It,Et);return It.def(gt.shared.vao+".getVAO("+He+")")})}return null}function Ta(Ze){var Fe=Ze.static,dt=Ze.dynamic,kt={};return Object.keys(Fe).forEach(function(Gt){var Et=Fe[Gt];kt[Gt]=fi(function(gt,It){return typeof Et=="number"||typeof Et=="boolean"?""+Et:gt.link(Et)})}),Object.keys(dt).forEach(function(Gt){var Et=dt[Gt];kt[Gt]=Wi(Et,function(gt,It){return gt.invoke(It,Et)})}),kt}function ia(Ze,Fe,dt,kt,Gt){var Et=Ze.static,gt=Ze.dynamic;Oe.optional(function(){var cn=[Rs,gs,ru,ps,Jn,Bs,wo,ff,vs,Lu].concat(Ae);function In(zn){Object.keys(zn).forEach(function(ma){Oe.command(cn.indexOf(ma)>=0,'unknown parameter "'+ma+'"',Gt.commandStr)})}In(Et),In(gt)});var It=an(Ze,Fe),He=Br(Ze,Gt),ct=Zr(Ze,He,Gt),je=Rn(Ze,Gt),Pt=Nn(Ze,Gt),Ut=Sn(Ze,Gt,It);function gr(cn){var In=ct[cn];In&&(Pt[cn]=In)}gr(jo),gr(Je(Au));var yr=Object.keys(Pt).length>0,ur={framebuffer:He,draw:je,shader:Ut,state:Pt,dirty:yr,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(ur.profile=Hr(Ze,Gt),ur.uniforms=za(dt,Gt),ur.drawVAO=ur.scopeVAO=Qa(Ze,Gt),!ur.drawVAO&&Ut.program&&!It&&et.angle_instanced_arrays){var Dr=!0,pn=Ut.program.attributes.map(function(cn){var In=Fe.static[cn];return Dr=Dr&&!!In,In});if(Dr&&pn.length>0){var Xn=Lr.getVAO(Lr.createVAO(pn));ur.drawVAO=new Ji(null,null,null,function(cn,In){return cn.link(Xn)}),ur.useVAO=!0}}return It?ur.useVAO=!0:ur.attributes=Gn(Fe,Gt),ur.context=Ta(kt,Gt),ur}function ja(Ze,Fe,dt){var kt=Ze.shared,Gt=kt.context,Et=Ze.scope();Object.keys(dt).forEach(function(gt){Fe.save(Gt,"."+gt);var It=dt[gt],He=It.append(Ze,Fe);Array.isArray(He)?Et(Gt,".",gt,"=[",He.join(),"];"):Et(Gt,".",gt,"=",He,";")}),Fe(Et)}function La(Ze,Fe,dt,kt){var Gt=Ze.shared,Et=Gt.gl,gt=Gt.framebuffer,It;le&&(It=Fe.def(Gt.extensions,".webgl_draw_buffers"));var He=Ze.constants,ct=He.drawBuffer,je=He.backBuffer,Pt;dt?Pt=dt.append(Ze,Fe):Pt=Fe.def(gt,".next"),kt||Fe("if(",Pt,"!==",gt,".cur){"),Fe("if(",Pt,"){",Et,".bindFramebuffer(",ou,",",Pt,".framebuffer);"),le&&Fe(It,".drawBuffersWEBGL(",ct,"[",Pt,".colorAttachments.length]);"),Fe("}else{",Et,".bindFramebuffer(",ou,",null);"),le&&Fe(It,".drawBuffersWEBGL(",je,");"),Fe("}",gt,".cur=",Pt,";"),kt||Fe("}")}function ka(Ze,Fe,dt){var kt=Ze.shared,Gt=kt.gl,Et=Ze.current,gt=Ze.next,It=kt.current,He=kt.next,ct=Ze.cond(It,".dirty");Ae.forEach(function(je){var Pt=Je(je);if(!(Pt in dt.state)){var Ut,gr;if(Pt in gt){Ut=gt[Pt],gr=Et[Pt];var yr=mn(pe[Pt].length,function(Dr){return ct.def(Ut,"[",Dr,"]")});ct(Ze.cond(yr.map(function(Dr,pn){return Dr+"!=="+gr+"["+pn+"]"}).join("||")).then(Gt,".",Be[Pt],"(",yr,");",yr.map(function(Dr,pn){return gr+"["+pn+"]="+Dr}).join(";"),";"))}else{Ut=ct.def(He,".",Pt);var ur=Ze.cond(Ut,"!==",It,".",Pt);ct(ur),Pt in ze?ur(Ze.cond(Ut).then(Gt,".enable(",ze[Pt],");").else(Gt,".disable(",ze[Pt],");"),It,".",Pt,"=",Ut,";"):ur(Gt,".",Be[Pt],"(",Ut,");",It,".",Pt,"=",Ut,";")}}}),Object.keys(dt.state).length===0&&ct(It,".dirty=false;"),Fe(ct)}function ji(Ze,Fe,dt,kt){var Gt=Ze.shared,Et=Ze.current,gt=Gt.current,It=Gt.gl;Yc(Object.keys(dt)).forEach(function(He){var ct=dt[He];if(!(kt&&!kt(ct))){var je=ct.append(Ze,Fe);if(ze[He]){var Pt=ze[He];es(ct)?je?Fe(It,".enable(",Pt,");"):Fe(It,".disable(",Pt,");"):Fe(Ze.cond(je).then(It,".enable(",Pt,");").else(It,".disable(",Pt,");")),Fe(gt,".",He,"=",je,";")}else if(Pa(je)){var Ut=Et[He];Fe(It,".",Be[He],"(",je,");",je.map(function(gr,yr){return Ut+"["+yr+"]="+gr}).join(";"),";")}else Fe(It,".",Be[He],"(",je,");",gt,".",He,"=",je,";")}})}function ci(Ze,Fe){ie&&(Ze.instancing=Fe.def(Ze.shared.extensions,".angle_instanced_arrays"))}function hn(Ze,Fe,dt,kt,Gt){var Et=Ze.shared,gt=Ze.stats,It=Et.current,He=Et.timer,ct=dt.profile;function je(){return typeof performance=="undefined"?"Date.now()":"performance.now()"}var Pt,Ut;function gr(cn){Pt=Fe.def(),cn(Pt,"=",je(),";"),typeof Gt=="string"?cn(gt,".count+=",Gt,";"):cn(gt,".count++;"),_&&(kt?(Ut=Fe.def(),cn(Ut,"=",He,".getNumPendingQueries();")):cn(He,".beginQuery(",gt,");"))}function yr(cn){cn(gt,".cpuTime+=",je(),"-",Pt,";"),_&&(kt?cn(He,".pushScopeStats(",Ut,",",He,".getNumPendingQueries(),",gt,");"):cn(He,".endQuery();"))}function ur(cn){var In=Fe.def(It,".profile");Fe(It,".profile=",cn,";"),Fe.exit(It,".profile=",In,";")}var Dr;if(ct){if(es(ct)){ct.enable?(gr(Fe),yr(Fe.exit),ur("true")):ur("false");return}Dr=ct.append(Ze,Fe),ur(Dr)}else Dr=Fe.def(It,".profile");var pn=Ze.block();gr(pn),Fe("if(",Dr,"){",pn,"}");var Xn=Ze.block();yr(Xn),Fe.exit("if(",Dr,"){",Xn,"}")}function Xi(Ze,Fe,dt,kt,Gt){var Et=Ze.shared;function gt(He){switch(He){case Nu:case df:case vf:return 2;case zs:case hf:case gf:return 3;case lf:case Us:case Na:return 4;default:return 1}}function It(He,ct,je){var Pt=Et.gl,Ut=Fe.def(He,".location"),gr=Fe.def(Et.attributes,"[",Ut,"]"),yr=je.state,ur=je.buffer,Dr=[je.x,je.y,je.z,je.w],pn=["buffer","normalized","offset","stride"];function Xn(){Fe("if(!",gr,".buffer){",Pt,".enableVertexAttribArray(",Ut,");}");var In=je.type,zn;if(je.size?zn=Fe.def(je.size,"||",ct):zn=ct,Fe("if(",gr,".type!==",In,"||",gr,".size!==",zn,"||",pn.map(function(li){return gr+"."+li+"!=="+je[li]}).join("||"),"){",Pt,".bindBuffer(",Fs,",",ur,".buffer);",Pt,".vertexAttribPointer(",[Ut,zn,In,je.normalized,je.stride,je.offset],");",gr,".type=",In,";",gr,".size=",zn,";",pn.map(function(li){return gr+"."+li+"="+je[li]+";"}).join(""),"}"),ie){var ma=je.divisor;Fe("if(",gr,".divisor!==",ma,"){",Ze.instancing,".vertexAttribDivisorANGLE(",[Ut,ma],");",gr,".divisor=",ma,";}")}}function cn(){Fe("if(",gr,".buffer){",Pt,".disableVertexAttribArray(",Ut,");",gr,".buffer=null;","}if(",Mu.map(function(In,zn){return gr+"."+In+"!=="+Dr[zn]}).join("||"),"){",Pt,".vertexAttrib4f(",Ut,",",Dr,");",Mu.map(function(In,zn){return gr+"."+In+"="+Dr[zn]+";"}).join(""),"}")}yr===so?Xn():yr===Ns?cn():(Fe("if(",yr,"===",so,"){"),Xn(),Fe("}else{"),cn(),Fe("}"))}kt.forEach(function(He){var ct=He.name,je=dt.attributes[ct],Pt;if(je){if(!Gt(je))return;Pt=je.append(Ze,Fe)}else{if(!Gt(mf))return;var Ut=Ze.scopeAttrib(ct);Oe.optional(function(){Ze.assert(Fe,Ut+".state","missing attribute "+ct)}),Pt={},Object.keys(new Y).forEach(function(gr){Pt[gr]=Fe.def(Ut,".",gr)})}It(Ze.link(He),gt(He.info.type),Pt)})}function Sa(Ze,Fe,dt,kt,Gt){for(var Et=Ze.shared,gt=Et.gl,It,He=0;He1?Fe(mn(In,function(fo){return Array.isArray(ur)?ur[fo]:ur+"["+fo+"]"})):(Oe(!Array.isArray(ur),"uniform value must not be an array"),Fe(ur));Fe(");")}}function Tn(Ze,Fe,dt,kt){var Gt=Ze.shared,Et=Gt.gl,gt=Gt.draw,It=kt.draw;function He(){var zn=It.elements,ma,li=Fe;return zn?((zn.contextDep&&kt.contextDynamic||zn.propDep)&&(li=dt),ma=zn.append(Ze,li)):ma=li.def(gt,".",ps),ma&&li("if("+ma+")"+Et+".bindBuffer("+Nc+","+ma+".buffer.buffer);"),ma}function ct(){var zn=It.count,ma,li=Fe;return zn?((zn.contextDep&&kt.contextDynamic||zn.propDep)&&(li=dt),ma=zn.append(Ze,li),Oe.optional(function(){zn.MISSING&&Ze.assert(Fe,"false","missing vertex count"),zn.DYNAMIC&&Ze.assert(li,ma+">=0","missing vertex count")})):(ma=li.def(gt,".",wo),Oe.optional(function(){Ze.assert(li,ma+">=0","missing vertex count")})),ma}var je=He();function Pt(zn){var ma=It[zn];return ma?ma.contextDep&&kt.contextDynamic||ma.propDep?ma.append(Ze,dt):ma.append(Ze,Fe):Fe.def(gt,".",zn)}var Ut=Pt(Jn),gr=Pt(Bs),yr=ct();if(typeof yr=="number"){if(yr===0)return}else dt("if(",yr,"){"),dt.exit("}");var ur,Dr;ie&&(ur=Pt(ff),Dr=Ze.instancing);var pn=je+".type",Xn=It.elements&&es(It.elements);function cn(){function zn(){dt(Dr,".drawElementsInstancedANGLE(",[Ut,yr,pn,gr+"<<(("+pn+"-"+Cc+")>>1)",ur],");")}function ma(){dt(Dr,".drawArraysInstancedANGLE(",[Ut,gr,yr,ur],");")}je?Xn?zn():(dt("if(",je,"){"),zn(),dt("}else{"),ma(),dt("}")):ma()}function In(){function zn(){dt(Et+".drawElements("+[Ut,yr,pn,gr+"<<(("+pn+"-"+Cc+")>>1)"]+");")}function ma(){dt(Et+".drawArrays("+[Ut,gr,yr]+");")}je?Xn?zn():(dt("if(",je,"){"),zn(),dt("}else{"),ma(),dt("}")):ma()}ie&&(typeof ur!="number"||ur>=0)?typeof ur=="string"?(dt("if(",ur,">0){"),cn(),dt("}else if(",ur,"<0){"),In(),dt("}")):cn():In()}function ra(Ze,Fe,dt,kt,Gt){var Et=Tr(),gt=Et.proc("body",Gt);return Oe.optional(function(){Et.commandStr=Fe.commandStr,Et.command=Et.link(Fe.commandStr)}),ie&&(Et.instancing=gt.def(Et.shared.extensions,".angle_instanced_arrays")),Ze(Et,gt,dt,kt),Et.compile().body}function da(Ze,Fe,dt,kt){ci(Ze,Fe),dt.useVAO?dt.drawVAO?Fe(Ze.shared.vao,".setVAO(",dt.drawVAO.append(Ze,Fe),");"):Fe(Ze.shared.vao,".setVAO(",Ze.shared.vao,".targetVAO);"):(Fe(Ze.shared.vao,".setVAO(null);"),Xi(Ze,Fe,dt,kt.attributes,function(){return!0})),Sa(Ze,Fe,dt,kt.uniforms,function(){return!0}),Tn(Ze,Fe,Fe,dt)}function gi(Ze,Fe){var dt=Ze.proc("draw",1);ci(Ze,dt),ja(Ze,dt,Fe.context),La(Ze,dt,Fe.framebuffer),ka(Ze,dt,Fe),ji(Ze,dt,Fe.state),hn(Ze,dt,Fe,!1,!0);var kt=Fe.shader.progVar.append(Ze,dt);if(dt(Ze.shared.gl,".useProgram(",kt,".program);"),Fe.shader.program)da(Ze,dt,Fe,Fe.shader.program);else{dt(Ze.shared.vao,".setVAO(null);");var Gt=Ze.global.def("{}"),Et=dt.def(kt,".id"),gt=dt.def(Gt,"[",Et,"]");dt(Ze.cond(gt).then(gt,".call(this,a0);").else(gt,"=",Gt,"[",Et,"]=",Ze.link(function(It){return ra(da,Ze,Fe,It,1)}),"(",kt,");",gt,".call(this,a0);"))}Object.keys(Fe.state).length>0&&dt(Ze.shared.current,".dirty=true;")}function ms(Ze,Fe,dt,kt){Ze.batchId="a1",ci(Ze,Fe);function Gt(){return!0}Xi(Ze,Fe,dt,kt.attributes,Gt),Sa(Ze,Fe,dt,kt.uniforms,Gt),Tn(Ze,Fe,Fe,dt)}function Fu(Ze,Fe,dt,kt){ci(Ze,Fe);var Gt=dt.contextDep,Et=Fe.def(),gt="a0",It="a1",He=Fe.def();Ze.shared.props=He,Ze.batchId=Et;var ct=Ze.scope(),je=Ze.scope();Fe(ct.entry,"for(",Et,"=0;",Et,"<",It,";++",Et,"){",He,"=",gt,"[",Et,"];",je,"}",ct.exit);function Pt(pn){return pn.contextDep&&Gt||pn.propDep}function Ut(pn){return!Pt(pn)}if(dt.needsContext&&ja(Ze,je,dt.context),dt.needsFramebuffer&&La(Ze,je,dt.framebuffer),ji(Ze,je,dt.state,Pt),dt.profile&&Pt(dt.profile)&&hn(Ze,je,dt,!1,!0),kt)dt.useVAO?dt.drawVAO?Pt(dt.drawVAO)?je(Ze.shared.vao,".setVAO(",dt.drawVAO.append(Ze,je),");"):ct(Ze.shared.vao,".setVAO(",dt.drawVAO.append(Ze,ct),");"):ct(Ze.shared.vao,".setVAO(",Ze.shared.vao,".targetVAO);"):(ct(Ze.shared.vao,".setVAO(null);"),Xi(Ze,ct,dt,kt.attributes,Ut),Xi(Ze,je,dt,kt.attributes,Pt)),Sa(Ze,ct,dt,kt.uniforms,Ut),Sa(Ze,je,dt,kt.uniforms,Pt),Tn(Ze,ct,je,dt);else{var gr=Ze.global.def("{}"),yr=dt.shader.progVar.append(Ze,je),ur=je.def(yr,".id"),Dr=je.def(gr,"[",ur,"]");je(Ze.shared.gl,".useProgram(",yr,".program);","if(!",Dr,"){",Dr,"=",gr,"[",ur,"]=",Ze.link(function(pn){return ra(ms,Ze,dt,pn,2)}),"(",yr,");}",Dr,".call(this,a0[",Et,"],",Et,");")}}function Qe(Ze,Fe){var dt=Ze.proc("batch",2);Ze.batchId="0",ci(Ze,dt);var kt=!1,Gt=!0;Object.keys(Fe.context).forEach(function(gr){kt=kt||Fe.context[gr].propDep}),kt||(ja(Ze,dt,Fe.context),Gt=!1);var Et=Fe.framebuffer,gt=!1;Et?(Et.propDep?kt=gt=!0:Et.contextDep&&kt&&(gt=!0),gt||La(Ze,dt,Et)):La(Ze,dt,null),Fe.state.viewport&&Fe.state.viewport.propDep&&(kt=!0);function It(gr){return gr.contextDep&&kt||gr.propDep}ka(Ze,dt,Fe),ji(Ze,dt,Fe.state,function(gr){return!It(gr)}),(!Fe.profile||!It(Fe.profile))&&hn(Ze,dt,Fe,!1,"a1"),Fe.contextDep=kt,Fe.needsContext=Gt,Fe.needsFramebuffer=gt;var He=Fe.shader.progVar;if(He.contextDep&&kt||He.propDep)Fu(Ze,dt,Fe,null);else{var ct=He.append(Ze,dt);if(dt(Ze.shared.gl,".useProgram(",ct,".program);"),Fe.shader.program)Fu(Ze,dt,Fe,Fe.shader.program);else{dt(Ze.shared.vao,".setVAO(null);");var je=Ze.global.def("{}"),Pt=dt.def(ct,".id"),Ut=dt.def(je,"[",Pt,"]");dt(Ze.cond(Ut).then(Ut,".call(this,a0,a1);").else(Ut,"=",je,"[",Pt,"]=",Ze.link(function(gr){return ra(Fu,Ze,Fe,gr,2)}),"(",ct,");",Ut,".call(this,a0,a1);"))}}Object.keys(Fe.state).length>0&&dt(Ze.shared.current,".dirty=true;")}function Jt(Ze,Fe){var dt=Ze.proc("scope",3);Ze.batchId="a2";var kt=Ze.shared,Gt=kt.current;ja(Ze,dt,Fe.context),Fe.framebuffer&&Fe.framebuffer.append(Ze,dt),Yc(Object.keys(Fe.state)).forEach(function(gt){var It=Fe.state[gt],He=It.append(Ze,dt);Pa(He)?He.forEach(function(ct,je){dt.set(Ze.next[gt],"["+je+"]",ct)}):dt.set(kt.next,"."+gt,He)}),hn(Ze,dt,Fe,!0,!0),[ps,Bs,wo,ff,Jn].forEach(function(gt){var It=Fe.draw[gt];!It||dt.set(kt.draw,"."+gt,""+It.append(Ze,dt))}),Object.keys(Fe.uniforms).forEach(function(gt){var It=Fe.uniforms[gt].append(Ze,dt);Array.isArray(It)&&(It="["+It.join()+"]"),dt.set(kt.uniforms,"["+Ue.id(gt)+"]",It)}),Object.keys(Fe.attributes).forEach(function(gt){var It=Fe.attributes[gt].append(Ze,dt),He=Ze.scopeAttrib(gt);Object.keys(new Y).forEach(function(ct){dt.set(He,"."+ct,It[ct])})}),Fe.scopeVAO&&dt.set(kt.vao,".targetVAO",Fe.scopeVAO.append(Ze,dt));function Et(gt){var It=Fe.shader[gt];It&&dt.set(kt.shader,"."+gt,It.append(Ze,dt))}Et(gs),Et(ru),Object.keys(Fe.state).length>0&&(dt(Gt,".dirty=true;"),dt.exit(Gt,".dirty=true;")),dt("a1(",Ze.shared.context,",a0,",Ze.batchId,");")}function jt(Ze){if(!(typeof Ze!="object"||Pa(Ze))){for(var Fe=Object.keys(Ze),dt=0;dt=0;--Tn){var ra=Lt[Tn];ra&&ra(_,null,0)}et.flush(),Lr&&Lr.update()}function Sn(){!Zr&&Lt.length>0&&(Zr=sn.next(an))}function Rn(){Zr&&(sn.cancel(an),Zr=null)}function Nn(Tn){Tn.preventDefault(),vr=!0,Rn(),Tr.forEach(function(ra){ra()})}function za(Tn){et.getError(),vr=!1,Vt.restore(),Ae.restore(),ie.restore(),ze.restore(),Be.restore(),Je.restore(),le.restore(),Lr&&Lr.restore(),xt.procs.refresh(),Sn(),Hr.forEach(function(ra){ra()})}Nt&&(Nt.addEventListener(oc,Nn,!1),Nt.addEventListener(bf,za,!1));function Gn(){Lt.length=0,Rn(),Nt&&(Nt.removeEventListener(oc,Nn),Nt.removeEventListener(bf,za)),Ae.clear(),Je.clear(),Be.clear(),ze.clear(),we.clear(),ie.clear(),le.clear(),Lr&&Lr.clear(),Br.forEach(function(Tn){Tn()})}function Qa(Tn){Oe(!!Tn,"invalid args to regl({...})"),Oe.type(Tn,"object","invalid args to regl({...})");function ra(Gt){var Et=G({},Gt);delete Et.uniforms,delete Et.attributes,delete Et.context,delete Et.vao,"stencil"in Et&&Et.stencil.op&&(Et.stencil.opBack=Et.stencil.opFront=Et.stencil.op,delete Et.stencil.op);function gt(It){if(It in Et){var He=Et[It];delete Et[It],Object.keys(He).forEach(function(ct){Et[It+"."+ct]=He[ct]})}}return gt("blend"),gt("depth"),gt("cull"),gt("stencil"),gt("polygonOffset"),gt("scissor"),gt("sample"),"vao"in Gt&&(Et.vao=Gt.vao),Et}function da(Gt,Et){var gt={},It={};return Object.keys(Gt).forEach(function(He){var ct=Gt[He];if(Rr.isDynamic(ct)){It[He]=Rr.unbox(ct,He);return}else if(Et&&Array.isArray(ct)){for(var je=0;je0)return na.call(this,dt(Gt|0),Gt|0)}else if(Array.isArray(Gt)){if(Gt.length)return na.call(this,Gt,Gt.length)}else return on.call(this,Gt)}return G(kt,{stats:Jt,destroy:function(){jt.destroy()}})}var Ta=Je.setFBO=Qa({framebuffer:Rr.define.call(null,sc,"framebuffer")});function ia(Tn,ra){var da=0;xt.procs.poll();var gi=ra.color;gi&&(et.clearColor(+gi[0]||0,+gi[1]||0,+gi[2]||0,+gi[3]||0),da|=ic),"depth"in ra&&(et.clearDepth(+ra.depth),da|=Ef),"stencil"in ra&&(et.clearStencil(ra.stencil|0),da|=$c),Oe(!!da,"called regl.clear with no buffer specified"),et.clear(da)}function ja(Tn){if(Oe(typeof Tn=="object"&&Tn,"regl.clear() takes an object as input"),"framebuffer"in Tn)if(Tn.framebuffer&&Tn.framebuffer_reglType==="framebufferCube")for(var ra=0;ra<6;++ra)Ta(G({framebuffer:Tn.framebuffer.faces[ra]},Tn),ia);else Ta(Tn,ia);else ia(null,Tn)}function La(Tn){Oe.type(Tn,"function","regl.frame() callback must be a function"),Lt.push(Tn);function ra(){var da=qc(Lt,Tn);Oe(da>=0,"cannot cancel a frame twice");function gi(){var ms=qc(Lt,gi);Lt[ms]=Lt[Lt.length-1],Lt.length-=1,Lt.length<=0&&Rn()}Lt[da]=gi}return Sn(),{cancel:ra}}function ka(){var Tn=Tt.viewport,ra=Tt.scissor_box;Tn[0]=Tn[1]=ra[0]=ra[1]=0,_.viewportWidth=_.framebufferWidth=_.drawingBufferWidth=Tn[2]=ra[2]=et.drawingBufferWidth,_.viewportHeight=_.framebufferHeight=_.drawingBufferHeight=Tn[3]=ra[3]=et.drawingBufferHeight}function ji(){_.tick+=1,_.time=hn(),ka(),xt.procs.poll()}function ci(){ze.refresh(),ka(),xt.procs.refresh(),Lr&&Lr.update()}function hn(){return(gn()-Ir)/1e3}ci();function Xi(Tn,ra){Oe.type(ra,"function","listener callback must be a function");var da;switch(Tn){case"frame":return La(ra);case"lost":da=Tr;break;case"restore":da=Hr;break;case"destroy":da=Br;break;default:Oe.raise("invalid event, must be one of frame,lost,restore,destroy")}return da.push(ra),{cancel:function(){for(var gi=0;gi=0},read:ar,destroy:Gn,_gl:et,_refresh:ci,poll:function(){ji(),Lr&&Lr.update()},now:hn,stats:Cr});return Ue.onDone(null,Sa),Sa}return xf})},86851:function(or,U,G){"use strict";var B=G(89594),W=Array.prototype.concat,k=Array.prototype.slice,O=or.exports=function(L){for(var p=[],E=0,v=L.length;E=0&&(G.splice instanceof Function||Object.getOwnPropertyDescriptor(G,G.length-1)&&G.constructor.name!=="String")}}}]); diff --git a/dist/9645.697e668e.async.js b/dist/9645.697e668e.async.js new file mode 100644 index 0000000..b6177aa --- /dev/null +++ b/dist/9645.697e668e.async.js @@ -0,0 +1,674 @@ +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[9645],{75009:function(or,U,z){"use strict";z.d(U,{Z:function(){return Xg}});var B={};z.r(B),z.d(B,{GADDI:function(){return to},Stack:function(){return ni},breadthFirstSearch:function(){return ht},connectedComponent:function(){return Qe},cosineSimilarity:function(){return he},default:function(){return Ss},depthFirstSearch:function(){return xr},detectAllCycles:function(){return qt},detectAllDirectedCycle:function(){return Bt},detectAllUndirectedCycle:function(){return ft},detectCycle:function(){return br},detectDirectedCycle:function(){return lo},dijkstra:function(){return Hr},findAllPath:function(){return Gr},findShortestPath:function(){return qr},floydWarshall:function(){return Gn},getAdjMatrix:function(){return te},getDegree:function(){return St},getInDegree:function(){return Ct},getNeighbors:function(){return pe},getOutDegree:function(){return _t},iLouvain:function(){return rt},kCore:function(){return ae},kMeans:function(){return C},labelPropagation:function(){return $r},louvain:function(){return K},minimumSpanningTree:function(){return Ot},nodesCosineSimilarity:function(){return Ee},pageRank:function(){return pr}});var j={};z.r(j),z.d(j,{Line:function(){return ga},applyMatrix:function(){return _n},compare:function(){return Yi},distance:function(){return Va},floydWarshall:function(){return Ko},fractionToLine:function(){return Ao},getAdjMatrix:function(){return Li},getBBoxBoundLine:function(){return vo},getCircleCenterByPoints:function(){return Go},getCircleIntersectByPoint:function(){return Oo},getDegree:function(){return $o},getEllipseIntersectByPoint:function(){return Hi},getLineIntersect:function(){return Bo},getPointsCenter:function(){return as},getRectIntersectByPoint:function(){return _s},intersectBBox:function(){return Qo},invertMatrix:function(){return Fo},isPointInPolygon:function(){return ro},isPointsOverlap:function(){return _i},isPolygonsIntersect:function(){return zi},itemIntersectByLine:function(){return Pi},lerp:function(){return da},lerpArray:function(){return Fa},move:function(){return ho},pointLineDistance:function(){return Ui},pointLineSquareDist:function(){return Zi},pointRectSquareDist:function(){return no},rotate:function(){return Di},scale:function(){return Gi},scaleMatrix:function(){return Ms},squareDist:function(){return vi},translate:function(){return Mo}});var R={};z.r(R),z.d(R,{cloneBesidesImg:function(){return Uo},getAnimateCfgWithCallback:function(){return bo},getBBox:function(){return Eo},getComboBBox:function(){return us},getLabelPosition:function(){return Hu},getLetterWidth:function(){return Zs},getLoopCfgs:function(){return Yu},getTextSize:function(){return Ks},plainCombosToTrees:function(){return os},reconstructTree:function(){return ss},shouldRefreshEdge:function(){return $s},traverseTree:function(){return Ei},traverseTreeUp:function(){return Ki},truncateLabelByLength:function(){return io}});var A={};z.r(A),z.d(A,{calculationItemsBBox:function(){return $u},cloneEvent:function(){return cs},formatPadding:function(){return Cs},isNaN:function(){return xo},isViewportChanged:function(){return $i},processParallelEdges:function(){return Mf},uniqueId:function(){return Co}});var N={};z.r(N),z.d(N,{getClosedSpline:function(){return ls},getControlPoint:function(){return ca},getSpline:function(){return Os},getStarPath:function(){return Lo},paddedHull:function(){return Nf},pathToPoints:function(){return Eu},pointsToPolygon:function(){return Lf},roundedHull:function(){return ef}});var L={};z.r(L),z.d(L,{defaultSubjectColors:function(){return ol}});var y={};z.r(y),z.d(y,{isForce:function(){return _u}});var x={};z.r(x),z.d(x,{getColorSetsBySubjectColors:function(){return Bs},getColorsWithSubjectColor:function(){return vs},mixColor:function(){return gi}});var v={};z.r(v),z.d(v,{arrayToTextureData:function(){return Lc},attributesToTextureData:function(){return Gs},buildTextureData:function(){return Jf},buildTextureDataWithOneEdgeAttr:function(){return qf},buildTextureDataWithTwoEdgeAttr:function(){return Ac},proccessToFunc:function(){return hf},radialLayout:function(){return Dc}});var g={};z.r(g),z.d(g,{gpuDetector:function(){return Nc}});var d=z(67294),_=z(24561),E=function(c){var t=c.loadingTemplate,e=function(){return t||d.createElement(_.ZP,{viewBox:"0 0 400 180",width:200,height:90,speed:1},d.createElement("rect",{x:"20",y:"5",rx:"0",ry:"0",width:"1",height:"170"}),d.createElement("rect",{x:"20",y:"175",rx:"0",ry:"0",width:"360",height:"1"}),d.createElement("rect",{x:"40",y:"75",rx:"0",ry:"0",width:"35",height:"100"}),d.createElement("rect",{x:"80",y:"125",rx:"0",ry:"0",width:"35",height:"50"}),d.createElement("rect",{x:"120",y:"105",rx:"0",ry:"0",width:"35",height:"70"}),d.createElement("rect",{x:"160",y:"35",rx:"0",ry:"0",width:"35",height:"140"}),d.createElement("rect",{x:"200",y:"55",rx:"0",ry:"0",width:"35",height:"120"}),d.createElement("rect",{x:"240",y:"15",rx:"0",ry:"0",width:"35",height:"160"}),d.createElement("rect",{x:"280",y:"135",rx:"0",ry:"0",width:"35",height:"40"}),d.createElement("rect",{x:"320",y:"85",rx:"0",ry:"0",width:"35",height:"90"}))};return d.createElement("div",{style:{position:"absolute",width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",left:0,top:0,zIndex:99,backgroundColor:"#fff"}},e())},w=function(){var c=function(t,e){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])},c(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");c(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),T=function(c){w(t,c);function t(){var e=c!==null&&c.apply(this,arguments)||this;return e.state={hasError:!1},e.renderError=function(r){var n=e.props.errorTemplate;switch(r){default:return typeof n=="function"?n(r):n||d.createElement("h5",null,"\u7EC4\u4EF6\u51FA\u9519\u4E86\uFF0C\u8BF7\u6838\u67E5\u540E\u91CD\u8BD5\uFF1A ",r.message)}},e}return t.getDerivedStateFromError=function(e){return{hasError:!0,error:e}},t.getDerivedStateFromProps=function(e,r){return r.children!==e.children?{children:e.children,hasError:!1,error:void 0}:null},t.prototype.render=function(){return this.state.hasError?this.renderError(this.state.error):d.createElement(d.Fragment,null,this.props.children)},t}(d.Component),k=T,b=z(70655),m=z(49242),$={getDefaultCfg:function(){return{}},getEvents:function(){return{}},updateCfg:function(t){return Object.assign(this,t),!0},shouldBegin:function(){return!0},shouldUpdate:function(){return!0},shouldEnd:function(){return!0},bind:function(t){var e=this,r=this.events;this.graph=t,(this.type==="drag-canvas"||this.type==="brush-select"||this.type==="lasso-select")&&t.get("canvas").set("draggable",!0),(0,m.each)(r,function(n,a){t.on(a,n)}),document.addEventListener("visibilitychange",function(){e.keydown=!1})},unbind:function(t){var e=this.events,r=t.get("canvas").get("draggable");(this.type==="drag-canvas"||this.type==="brush-select"||this.type==="lasso-select")&&t.get("canvas").set("draggable",!1),(0,m.each)(e,function(n,a){t.off(a,n)}),t.get("canvas").set("draggable",r)},get:function(t){return this[t]},set:function(t,e){return this[t]=e,this}},W=function(){function c(){}return c.registerBehavior=function(t,e){if(!e)throw new Error("please specify handler for this behavior: ".concat(t));var r=(0,m.clone)($);Object.assign(r,e);var n=function(i){var o=this;Object.assign(this,this.getDefaultCfg(),i);var s=this.getEvents();this.events=null;var l={};s&&((0,m.each)(s,function(h,p){l[p]=(0,m.wrapBehavior)(o,h)}),this.events=l)};n.prototype=r,c.types[t]=n},c.hasBehavior=function(t){return!!c.types[t]},c.getBehavior=function(t){return c.types[t]},c.types={},c}(),X=W,H=X,Q=z(90494),q=z(31506),J=function(t,e){var r=t.nodes,n=t.edges,a=[],i={};if(!r)throw new Error("invalid nodes data!");return r&&r.forEach(function(o,s){i[o.id]=s;var l=[];a.push(l)}),n&&n.forEach(function(o){var s=o.source,l=o.target,h=i[s],p=i[l];!h&&h!==0||!p&&p!==0||(a[h][p]=1,e||(a[p][h]=1))}),a},te=J,fe=function(t,e){return t===e},de=function(){function c(t,e){e===void 0&&(e=null),this.value=t,this.next=e}return c.prototype.toString=function(t){return t?t(this.value):"".concat(this.value)},c}(),Te=function(){function c(t){t===void 0&&(t=fe),this.head=null,this.tail=null,this.compare=t}return c.prototype.prepend=function(t){var e=new de(t,this.head);return this.head=e,this.tail||(this.tail=e),this},c.prototype.append=function(t){var e=new de(t);return this.head?(this.tail.next=e,this.tail=e,this):(this.head=e,this.tail=e,this)},c.prototype.delete=function(t){if(!this.head)return null;for(var e=null;this.head&&this.compare(this.head.value,t);)e=this.head,this.head=this.head.next;var r=this.head;if(r!==null)for(;r.next;)this.compare(r.next.value,t)?(e=r.next,r.next=r.next.next):r=r.next;return this.compare(this.tail.value,t)&&(this.tail=r),e},c.prototype.find=function(t){var e=t.value,r=e===void 0?void 0:e,n=t.callback,a=n===void 0?void 0:n;if(!this.head)return null;for(var i=this.head;i;){if(a&&a(i.value)||r!==void 0&&this.compare(i.value,r))return i;i=i.next}return null},c.prototype.deleteTail=function(){var t=this.tail;if(this.head===this.tail)return this.head=null,this.tail=null,t;for(var e=this.head;e.next;)e.next.next?e=e.next:e.next=null;return this.tail=e,t},c.prototype.deleteHead=function(){if(!this.head)return null;var t=this.head;return this.head.next?this.head=this.head.next:(this.head=null,this.tail=null),t},c.prototype.fromArray=function(t){var e=this;return t.forEach(function(r){return e.append(r)}),this},c.prototype.toArray=function(){for(var t=[],e=this.head;e;)t.push(e),e=e.next;return t},c.prototype.reverse=function(){for(var t=this.head,e=null,r=null;t;)r=t.next,t.next=e,e=t,t=r;this.tail=this.head,this.head=e},c.prototype.toString=function(t){return t===void 0&&(t=void 0),this.toArray().map(function(e){return e.toString(t)}).toString()},c}(),Se=Te,Ie=function(){function c(){this.linkedList=new Se}return c.prototype.isEmpty=function(){return!this.linkedList.head},c.prototype.peek=function(){return this.linkedList.head?this.linkedList.head.value:null},c.prototype.enqueue=function(t){this.linkedList.append(t)},c.prototype.dequeue=function(){var t=this.linkedList.deleteHead();return t?t.value:null},c.prototype.toString=function(t){return this.linkedList.toString(t)},c}(),be=Ie,pe=function(t,e,r){e===void 0&&(e=[]);var n=e.filter(function(s){return s.source===t||s.target===t});if(r==="target"){var a=function(l){return l.source===t};return n.filter(a).map(function(s){return s.target})}if(r==="source"){var i=function(l){return l.target===t};return n.filter(i).map(function(s){return s.source})}var o=function(l){return l.source===t?l.target:l.source};return n.map(o)},Me=function(t,e){return e.filter(function(r){return r.source===t})},De=function(t,e){return e.filter(function(r){return r.source===t||r.target===t})},Ue=function(t){t===void 0&&(t=0);var e="".concat(Math.random()).split(".")[1].substr(0,5),r="".concat(Math.random()).split(".")[1].substr(0,5);return"".concat(t,"-").concat(e).concat(r)};function nt(c){c===void 0&&(c={});var t=c,e=function(){},r=function(){var n={};return function(a){var i=a.next,o=i;return n[o]?!1:(n[o]=!0,!0)}}();return t.allowTraversal=c.allowTraversal||r,t.enter=c.enter||e,t.leave=c.leave||e,t}var Ze=function(t,e,r,n){n===void 0&&(n=!0);var a=nt(r),i=new be,o=t.edges,s=o===void 0?[]:o;i.enqueue(e);for(var l="",h=function(){var D=i.dequeue();a.enter({current:D,previous:l}),pe(D,s,n?"target":void 0).forEach(function(I){a.allowTraversal({previous:l,current:D,next:I})&&i.enqueue(I)}),a.leave({current:D,previous:l}),l=D};!i.isEmpty();)h()},ht=Ze,Rt=function(t){for(var e=t.nodes,r=e===void 0?[]:e,n=t.edges,a=n===void 0?[]:n,i=[],o={},s=[],l=function I(F){s.push(F),o[F.id]=!0;for(var Z=pe(F.id,a),ee=function(ce){var we=Z[ce];if(!o[we]){var Re=r.filter(function(Oe){return Oe.id===we});Re.length>0&&I(Re[0])}},se=0;se0;)D.push(s.pop());i.push(D)}}return i},tr=function(t){for(var e=t.nodes,r=e===void 0?[]:e,n=t.edges,a=n===void 0?[]:n,i=[],o={},s={},l={},h=[],p=0,D=function ee(se){s[se.id]=p,l[se.id]=p,p+=1,i.push(se),o[se.id]=!0;for(var oe=pe(se.id,a,"target").filter(function(Pe){return r.map(function(He){return He.id}).indexOf(Pe)>-1}),ce=function(He){var at=oe[He];if(!s[at]&&s[at]!==0){var qe=r.filter(function(yt){return yt.id===at});qe.length>0&&ee(qe[0]),l[se.id]=Math.min(l[se.id],l[at])}else o[at]&&(l[se.id]=Math.min(l[se.id],s[at]))},we=0;we0;){var Oe=i.pop();if(o[Oe.id]=!1,Re.push(Oe),Oe===se)break}Re.length>0&&h.push(Re)}},I=0,F=r;I0;)for(var ee=I.pop(),se=ee.id,oe=pe(se,t.edges),ce=function(Oe){var Pe,He=oe[Oe],at=t.nodes.find(function(lr){return lr.id===He});if(He===se)i.push((Pe={},Pe[He]=ee,Pe));else if(!(He in Z))F[He]=ee,I.push(at),Z[He]=new Set([ee]);else if(!Z[se].has(at)){for(var qe=!0,yt=[at,ee],Ft=F[se];Z[He].size&&!Z[He].has(Ft)&&(yt.push(Ft),Ft!==F[Ft.id]);)Ft=F[Ft.id];if(yt.push(Ft),e&&r?(qe=!1,yt.findIndex(function(lr){return e.indexOf(lr.id)>-1})>-1&&(qe=!0)):e&&!r&&yt.findIndex(function(lr){return e.indexOf(lr.id)>-1})>-1&&(qe=!1),qe){for(var yr={},fr=1;fr0;){var fr=yr.pop();a.has(fr)&&(a.delete(fr),i[fr.id].forEach(function(lr){yr.push(lr)}),i[fr.id].clear())}},p=function yt(Ft,yr,fr){var lr=!1;if(e&&r===!1&&e.indexOf(Ft.id)>-1)return lr;n.push(Ft),a.add(Ft);for(var Kt=fr[Ft.id],jr=0;jr-1});Jr-1)?o.push((yr={},yr[Fr.id]=Fr,yr)):kr[Fr.id].push(l[Vn])}}return{component:mr,adjList:kr,minIdx:lr}},ce=0;ce=ce}),Re=tr({nodes:we,edges:t.edges}).filter(function(yt){return yt.length>1});if(Re.length===0)break;var Oe=oe(Re),Pe=Oe.minIdx,He=Oe.adjList,at=Oe.component;if(at.length>1){at.forEach(function(yt){i[yt.id]=new Set});var qe=s[Pe];if(e&&r&&e.indexOf(qe.id)===-1)return o;p(qe,qe,He),ce=Pe+1}else break}return o},qt=function(t,e,r,n){return n===void 0&&(n=!0),e?Bt(t,r,n):ft(t,r,n)},br=Vt,Ur=function(t,e,r){for(var n=Infinity,a,i=0;ip[Re.id]+Ft?(p[yt]=p[Re.id]+Ft,D[yt]=[Re.id]):p[yt]===p[Re.id]+Ft&&D[yt].push(Re.id)})},Z=0;Z0&&h.length>0;){var I=h[h.length-1];if(I.length){var F=I.shift();F&&(s.push(F),l[F]=!0,D=n?pe(F,o,"target"):pe(F,o),h.push(D.filter(function(se){return!l[se]})))}else{var Z=s.pop();l[Z]=!1,h.pop();continue}if(s[s.length-1]===r){var ee=s.map(function(oe){return oe});p.push(ee);var Z=s.pop();l[Z]=!1,h.pop()}}return p},vn=function(t,e){for(var r=te(t,e),n=[],a=r.length,i=0;in[i][s]+n[s][o]&&(n[i][o]=n[i][s]+n[s][o]);return n},Gn=vn,mn=function(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r="weight"),n===void 0&&(n=1e3);var a=t.nodes,i=a===void 0?[]:a,o=t.edges,s=o===void 0?[]:o,l={},h={};i.forEach(function(we,Re){var Oe=Ue();we.clusterId=Oe,l[Oe]={id:Oe,nodes:[we]},h[we.id]={node:we,idx:Re}});var p=te(t,e),D=[],I={};p.forEach(function(we,Re){var Oe=0,Pe=i[Re].id;I[Pe]={},we.forEach(function(He,at){if(!!He){Oe+=He;var qe=i[at].id;I[Pe][qe]=He}}),D.push(Oe)});for(var F=0,Z=function(){var Re=!1;if(i.forEach(function(Oe){var Pe={};Object.keys(I[Oe.id]).forEach(function(lr){var Kt=I[Oe.id][lr],jr=h[lr].node,Xr=jr.clusterId;Pe[Xr]||(Pe[Xr]=0),Pe[Xr]+=Kt});var He=-Infinity,at=[];if(Object.keys(Pe).forEach(function(lr){He=0&&at.splice(qe,1),at&&at.length){Re=!0;var yt=l[Oe.clusterId],Ft=yt.nodes.indexOf(Oe);yt.nodes.splice(Ft,1);var yr=Math.floor(Math.random()*at.length),fr=l[at[yr]];fr.nodes.push(Oe),Oe.clusterId=fr.id}}}),!Re)return"break";F++};F0&&He>at&&He-atat&&(yt=p.map(function(er){return{node:er,clusterId:er.clusterId}}),Ft=(0,m.clone)(oe),at=He),yr||qe>100)break;qe++,Object.keys(oe).forEach(function(er){var mr=0;I.forEach(function(kr){var Fr=kr.source,Jr=kr.target,fn=ce[Fr].node.clusterId,Vn=ce[Jr].node.clusterId;(fn===er&&Vn!==er||Vn===er&&fn!==er)&&(mr=mr+(kr[r]||1))}),oe[er].sumTot=mr}),p.forEach(function(er,mr){var kr=oe[er.clusterId],Fr=0,Jr,fn=Re[mr]/(2*Pe),Vn=0,Tn=kr.nodes;Tn.forEach(function(Qa){var Ja=ce[Qa.id].idx;Vn+=we[mr][Ja]||0});var wa=Vn-kr.sumTot*fn,ua=Tn.filter(function(Qa){return Qa.id!==er.id}),fa=[];ua.forEach(function(Qa,Ja){fa[Ja]=F[Qa.originIndex]});var Ma=ln(ua,F)*l,ja=Oe[er.id];if(Object.keys(ja).forEach(function(Qa){var Ja=ce[Qa].node,oi=Ja.clusterId;if(oi!==er.clusterId){var Si=oe[oi],Ai=Si.nodes;if(!(!Ai||!Ai.length)){var la=0;Ai.forEach(function(pa){var ma=ce[pa.id].idx;la+=we[mr][ma]||0});var Ca=la-Si.sumTot*fn,Xn=Ai.concat([er]),Ta=[];Xn.forEach(function(pa,ma){Ta[ma]=F[pa.originIndex]});var Na=ln(Xn,F)*l,cn=Ca-wa;a&&(cn=Ca+Na-(wa+Ma)),cn>Fr&&(Fr=cn,Jr=Si)}}}),Fr>0){Jr.nodes.push(er);var Ra=er.clusterId;er.clusterId=Jr.id;var uo=kr.nodes.indexOf(er);kr.nodes.splice(uo,1);var Da=0,fo=0;I.forEach(function(Qa){var Ja=Qa.source,oi=Qa.target,Si=ce[Ja].node.clusterId,Ai=ce[oi].node.clusterId;(Si===Jr.id&&Ai!==Jr.id||Ai===Jr.id&&Si!==Jr.id)&&(Da=Da+(Qa[r]||1)),(Si===Ra&&Ai!==Ra||Ai===Ra&&Si!==Ra)&&(fo=fo+(Qa[r]||1))}),Jr.sumTot=Da,kr.sumTot=fo}})}var fr={},lr=0;Object.keys(Ft).forEach(function(er){var mr=Ft[er];if(!mr.nodes||!mr.nodes.length){delete Ft[er];return}var kr=String(lr+1);kr!==er&&(mr.id=kr,mr.nodes=mr.nodes.map(function(Fr){return{id:Fr.id,clusterId:kr}}),Ft[kr]=mr,fr[er]=kr,delete Ft[er],lr++)}),yt.forEach(function(er){var mr=er.node,kr=er.clusterId;!mr||(mr.clusterId=kr,mr.clusterId&&fr[mr.clusterId]&&(mr.clusterId=fr[mr.clusterId]))});var Kt=[],jr={};I.forEach(function(er){var mr=er.source,kr=er.target,Fr=er[r]||1,Jr=ce[mr].node.clusterId,fn=ce[kr].node.clusterId;if(!(!Jr||!fn)){var Vn="".concat(Jr,"---").concat(fn);if(jr[Vn])jr[Vn].weight+=Fr,jr[Vn].count++;else{var Tn={source:Jr,target:fn,weight:Fr,count:1};jr[Vn]=Tn,Kt.push(Tn)}}});var Xr=[];return Object.keys(Ft).forEach(function(er){Xr.push(Ft[er])}),{clusters:Xr,clusterEdges:Kt}},K=va,Dt=function(t,e,r,n,a,i,o,s){return e===void 0&&(e=!1),r===void 0&&(r="weight"),n===void 0&&(n=1e-4),a===void 0&&(a=void 0),i===void 0&&(i=[]),o===void 0&&(o=["id"]),s===void 0&&(s=1),K(t,e,r,n,!0,a,i,o,s)},rt=Dt,ne=function(t,e){var r;e===void 0&&(e=1);for(var n=(0,m.clone)(t),a=n.nodes,i=a===void 0?[]:a,o=n.edges,s=o===void 0?[]:o,l=function(){var D=St({nodes:i,edges:s}),I=Object.keys(D);I.sort(function(ee,se){var oe,ce;return((oe=D[ee])===null||oe===void 0?void 0:oe.degree)-((ce=D[se])===null||ce===void 0?void 0:ce.degree)});var F=I[0];if(!i.length||((r=D[F])===null||r===void 0?void 0:r.degree)>=e)return"break";var Z=i.findIndex(function(ee){return ee.id===F});i.splice(Z,1),s=s.filter(function(ee){return!(ee.source===F||ee.target===F)})};;){var h=l();if(h==="break")break}return{nodes:i,edges:s}},ae=ne,P=function(t,e,r){var n=[];switch(t){case Sn.EuclideanDistance:n=e[r];break;default:n=[];break}return n},S=function(t,e,r,n,a,i){e===void 0&&(e=3),r===void 0&&(r=void 0),n===void 0&&(n=[]),a===void 0&&(a=["id"]),i===void 0&&(i=Sn.EuclideanDistance);var o=t.nodes,s=o===void 0?[]:o,l=t.edges,h=l===void 0?[]:l,p={clusters:[{id:"0",nodes:s}],clusterEdges:[]};if(i===Sn.EuclideanDistance&&!s.every(function(kr){return kr.hasOwnProperty(r)}))return p;var D=[],I=[];if(i===Sn.EuclideanDistance&&(D=pn(s,r),I=$n(D,n,a)),!I.length)return p;for(var F=(0,m.uniq)(I.map(function(kr){return kr.join("")})),Z=Math.min(e,s.length,F.length),ee=0;eeRe&&!se.find(function(ua){return(0,m.isEqual)(ua,P(i,I,s[Jr].originIndex))})&&(Re=wa,Oe=Jr)}},He=0;He=0;fr--)ce[Number(s[ee].clusterId)][fr].id===s[ee].id&&ce[Number(s[ee].clusterId)].splice(fr,1);s[ee].clusterId=String(qe),ce[qe].push(s[ee])}}for(var lr=!1,ee=0;ee=1e3)break}var er=[],mr={};return h.forEach(function(kr){var Fr,Jr,fn=kr.source,Vn=kr.target,Tn=(Fr=s.find(function(Ma){return Ma.id===fn}))===null||Fr===void 0?void 0:Fr.clusterId,wa=(Jr=s.find(function(Ma){return Ma.id===Vn}))===null||Jr===void 0?void 0:Jr.clusterId,ua="".concat(Tn,"---").concat(wa);if(mr[ua])mr[ua].count++;else{var fa={source:Tn,target:wa,count:1};mr[ua]=fa,er.push(fa)}}),{clusters:ce,clusterEdges:er}},C=S,V=function(t,e){var r=new Rr(e),n=r.norm2(),a=new Rr(t),i=a.norm2(),o=r.dot(a),s=n*i,l=s?o/s:0;return l},he=V,xe=function(t,e,r,n,a){t===void 0&&(t=[]),r===void 0&&(r=void 0),n===void 0&&(n=[]),a===void 0&&(a=[]);var i=(0,m.clone)(t.filter(function(D){return D.id!==e.id})),o=t.findIndex(function(D){return D.id===e.id}),s=pn(t,r),l=$n(s,n,a),h=l[o],p=[];return i.forEach(function(D,I){if(D.id!==e.id){var F=l[I],Z=he(F,h);p.push(Z),D.cosineSimilarity=Z}}),i.sort(function(D,I){return I.cosineSimilarity-D.cosineSimilarity}),{allCosineSimilarity:p,similarNodes:i}},Ee=xe,Ne=function(){function c(t){this.count=t.length,this.parent={};for(var e=0,r=t;e0&&(this.list[0]=e,this.moveDown(0)),t},c.prototype.insert=function(t){if(t!==null){this.list.push(t);var e=this.list.length-1;return this.moveUp(e),!0}return!1},c.prototype.moveUp=function(t){for(var e=this.getParent(t);t&&t>0&&this.compareFn(this.list[e],this.list[t])>0;){var r=this.list[e];this.list[e]=this.list[t],this.list[t]=r,t=e,e=this.getParent(t)}},c.prototype.moveDown=function(t){var e,r=t,n=this.getLeft(t),a=this.getRight(t),i=this.list.length;n!==null&&n0?r=n:a!==null&&a0&&(r=a),t!==r&&(e=[this.list[r],this.list[t]],this.list[t]=e[0],this.list[r]=e[1],this.moveDown(r))},c}(),$t=Pt,Ht=function(t,e){var r=[],n=t.nodes,a=n===void 0?[]:n,i=t.edges,o=i===void 0?[]:i;if(a.length===0)return r;var s=a[0],l=new Set;l.add(s);var h=function(ee,se){return e?ee.weight-se.weight:0},p=new $t(h);for(De(s.id,o).forEach(function(Z){p.insert(Z)});!p.isEmpty();){var D=p.delMin(),I=D.source,F=D.target;l.has(I)&&l.has(F)||(r.push(D),l.has(I)||(l.add(I),De(I,o).forEach(function(Z){p.insert(Z)})),l.has(F)||(l.add(F),De(F,o).forEach(function(Z){p.insert(Z)})))}return r},Br=function(t,e){var r=[],n=t.nodes,a=n===void 0?[]:n,i=t.edges,o=i===void 0?[]:i;if(a.length===0)return r;var s=o.map(function(I){return I});e&&s.sort(function(I,F){return I.weight-F.weight});for(var l=new Et(a.map(function(I){return I.id}));s.length>0;){var h=s.shift(),p=h.source,D=h.target;l.connected(p,D)||(r.push(h),l.union(p,D))}return r},hn=function(t,e,r){var n={prim:Ht,kruskal:Br};return r?n[r](t,e):Br(t,e)},Ot=hn,Qt=function(t,e,r){typeof e!="number"&&(e=1e-6),typeof r!="number"&&(r=.85);for(var n=1,a=0,i=1e3,o=t.nodes,s=o===void 0?[]:o,l=t.edges,h=l===void 0?[]:l,p=s.length,D,I={},F={},Z=0;Z0&&n>e;){a=0;for(var Z=0;Z0&&(D+=F[Re]/Oe)}I[se]=r*D,a+=I[se]}}a=(1-a)/p,n=0;for(var Z=0;Z=0;r--){var n=this.dfsEdgeList[r],a=n.fromNode,i=n.toNode;aI||n.hasNode(i[D.to])||(e.labelce;Re--){var Oe=we(Re);if(Oe==="break")break}if(se){var Pe=t.findMinLabel(ee);i.dfsEdgeList.push(new Ce(Z,oe,kn,Pe.edgeLabel,kn));var He=i.dfsEdgeList.length-1;return t.dfsCode.dfsEdgeList[He]!==i.dfsEdgeList[He]?!1:p(ee[Pe.edgeLabel].projected)}var at={};se=!1;var qe=0;D.forEach(function(Kt){var jr=new ut(Kt),Xr=t.findForwardPureEdges(n,jr.edges[I[0]],F,jr);Xr.length>0&&(se=!0,qe=Z,Xr.forEach(function(er){var mr="".concat(er.label,"-").concat(a[er.to].label);at[mr]||(at[mr]={projected:[],edgeLabel:er.label,nodeLabel2:a[er.to].label}),at[mr].projected.push({graphId:n.id,edge:er,preNode:Kt})}))});for(var yt=I.length,Ft=function(jr){if(se)return"break";var Xr=I[jr];D.forEach(function(er){var mr=new ut(er),kr=t.findForwardRmpathEdges(n,mr.edges[Xr],F,mr);kr.length>0&&(se=!0,qe=i.dfsEdgeList[Xr].fromNode,kr.forEach(function(Fr){var Jr="".concat(Fr.label,"-").concat(a[Fr.to].label);at[Jr]||(at[Jr]={projected:[],edgeLabel:Fr.label,nodeLabel2:a[Fr.to].label}),at[Jr].projected.push({graphId:n.id,edge:Fr,preNode:er})}))})},Re=0;Re=0;F--){var Z=e.findBackwardEdge(p,I.edges[a[F]],I.edges[a[0]],I);if(Z){var ee="".concat(e.dfsCode.dfsEdgeList[a[F]].fromNode,"-").concat(Z.label);l[ee]||(l[ee]={projected:[],toNodeId:e.dfsCode.dfsEdgeList[a[F]].fromNode,edgeLabel:Z.label}),l[ee].projected.push({graphId:h.graphId,edge:Z,preNode:h})}}if(!(n>=e.maxNodeNum)){var se=e.findForwardPureEdges(p,I.edges[a[0]],o,I);se.forEach(function(ce){var we="".concat(i,"-").concat(ce.label,"-").concat(D[ce.to].label);s[we]||(s[we]={projected:[],fromNodeId:i,edgeLabel:ce.label,nodeLabel2:D[ce.to].label}),s[we].projected.push({graphId:h.graphId,edge:ce,preNode:h})});for(var oe=function(we){var Re=e.findForwardRmpathEdges(p,I.edges[a[we]],o,I);Re.forEach(function(Oe){var Pe="".concat(e.dfsCode.dfsEdgeList[a[we]].fromNode,"-").concat(Oe.label,"-").concat(D[Oe.to].label);s[Pe]||(s[Pe]={projected:[],fromNodeId:e.dfsCode.dfsEdgeList[a[we]].fromNode,edgeLabel:Oe.label,nodeLabel2:D[Oe.to].label}),s[Pe].projected.push({graphId:h.graphId,edge:Oe,preNode:h})})},F=0;Fce){var we=ce;ce=oe,oe=we}var Re=se.label,Oe="".concat(l,"-").concat(oe,"-").concat(Re,"-").concat(ce),Pe="".concat(oe,"-").concat(Re,"-").concat(ce);if(!i[Pe]){var He=i[Pe]||0;He++,i[Pe]=He}s[Oe]={graphId:l,nodeLabel1:oe,edgeLabel:Re,nodeLabel2:ce}})})}),Object.keys(a).forEach(function(l){var h=a[l];if(!(h2*e)););if(ee<2*e&&(o["".concat(h,"-").concat(Z)]={start:h,end:Z,distance:a[h][Z]},p++,s++,s>=r))return o;if(D++,D>2*e)break}if(pD&&(s=D);var I=r[p.id].inDegree;l>I&&(l=I);var F=r[p.id].outDegree;h>F&&(h=F)}),t[e]={degree:s,inDegree:l,outDegree:h}),{minPatternNodeLabelDegree:s,minPatternNodeLabelInDegree:l,minPatternNodeLabelOutDegree:h}},So=function(t,e,r,n,a,i,o){var s;if(r===void 0&&(r=!1),i===void 0&&(i="cluster"),o===void 0&&(o="cluster"),!(!t||!t.nodes)){var l=t.nodes.length;if(!!l){var h=Gn(t,r),p=Gn(e,r),D=qa(t.nodes,h,r),I=qa(e.nodes,p,r),F=Ba(t.nodes,i),Z=F.nodeMap,ee=F.nodeLabelMap,se=Ba(e.nodes,i),oe=se.nodeMap,ce=se.nodeLabelMap;Ea(t.edges,o,Z);var we=Ea(e.edges,o,oe).edgeLabelMap,Re=[];p==null||p.forEach(function(la){Re=Re.concat(la)}),a||(a=Math.max.apply(Math,(0,b.__spreadArray)((0,b.__spreadArray)([],Re,!1),[2],!1))),n||(n=a);var Oe=xn(t,h,i,n),Pe=xn(e,p,i,n),He=Math.min(100,l*(l-1)/2),at=Qn(n,l,He,Oe,h),qe=ia(at,Oe,t),yt=10,Ft=1,yr=1,fr=4,lr={graphs:qe,nodeLabelProp:i,edgeLabelProp:o,minSupport:Ft,minNodeNum:yr,maxNodeNum:fr,directed:r},Kt=on(lr).slice(0,yt),jr=Kt.length,Xr=[];Kt.forEach(function(la,Ca){Xr[Ca]={},Object.keys(qe).forEach(function(Xn){var Ta=qe[Xn],Na=Wa(Ta,la,i,o);Xr[Ca][Xn]=Na})});var er=Ia(Xr,jr,Kt),mr=er.structure,kr=er.structureCountMap,Fr=e.nodes[0],Jr=[],fn=(s=e.nodes[0])===null||s===void 0?void 0:s[i],Vn=-Infinity;e.nodes.forEach(function(la){var Ca=la[i],Xn=ee[Ca];(Xn==null?void 0:Xn.length)>Vn&&(Vn=Xn.length,Jr=Xn,fn=Ca,Fr=la)});var Tn={},wa={},ua={},fa={},Ma={},ja={};Object.keys(ce).forEach(function(la,Ca){Ma[la]=[],r&&(ja[la]=[]);var Xn=-Infinity,Ta=ce[la],Na={};Ta.forEach(function(xa){var Nn=I["".concat(Fr.id,"-").concat(xa.id)];if(Nn&&Ma[la].push(Nn),XnMa[la][Po]){qc=!0;break}if(qc)return Jr.splice(Nn,1),"continue";var ws={};Ci.neighbors.forEach(function(ko){var Xs=D["".concat(Xa.id,"-").concat(ko.id)];ws["".concat(Xa.id,"-").concat(ko.id)]={start:Z[Xa.id].idx,end:Z[ko.id].idx,distance:Xs}}),qe=ia(ws,Oe,t,qe);var fu=[];Object.keys(ws).forEach(function(ko){if(kr[ko]){fu.push(kr[ko]);return}var Xs=qe[ko];kr[ko]=Wa(Xs,mr,i,o),fu.push(kr[ko])}),fu=fu.sort(function(ko,Xs){return Xs-ko});for(var Sf=!1,Po=0;Po=0;Ua--)ma(Ua)});var Ra=[];Jr==null||Jr.forEach(function(la){for(var Ca=Z[la.id].idx,Xn=zn(t.nodes,h[Ca],Ca,i,a),Ta=Xn.neighbors,Na=Ta.length,cn=!1,pa=Na-1;pa>=0;pa--){if(Ta.length+1Ci){Ta.splice(pa,1);continue}if(r){var Ti="".concat(ma.id,"-").concat(la.id),uc=D[Ti];Xa=ja[Ua].length-1;var qc=ja[Ua][Xa];if(uc>qc){Ta.splice(pa,1);continue}}var Po=kr[xa]?kr[xa]:si(t,la,ma,Z,Nn,Oe,mr,i,o,kr,qe),ws="".concat(Fr.id,"-").concat(Ua),fu=fa[ws][fa[ws].length-1];if(Po=0;Nn--){var qc=uc(Nn);if(qc==="break")break}if(Ti)return Ra.splice(Ca,1),"continue";Xn.edges=pa;var Po=Hr(Xn,Xn.nodes[0].id,!1).length;if(Object.keys(Po).reverse().forEach(function(hi){if(!(hi===Xn.nodes[0].id||Ti)){if(Po[hi]===Infinity){var rs=cn[hi].node[i];if(Na[rs]--,Na[rs]Da[cu][Da[cu].length-1]){var rs=cn[hi].node[i];if(Na[rs]--,Na[rs]=0;Xs--){var Xu=Xn.nodes[Xs],uh=cn[Xu.id].degree,Vg=cn[Xu.id].inDegree,Yg=cn[Xu.id].outDegree,Hg=Xu[i],dd=_a(Tn,Hg,oe,ce),fh=dd.minPatternNodeLabelDegree,Zg=dd.minPatternNodeLabelInDegree,Kg=dd.minPatternNodeLabelOutDegree,$g=r?uh=0;Ql--){var Vu=pa[Ql];if(!cn[Vu.source]||!cn[Vu.target]){pa.splice(Ql,1);var Jl=Vu[o];if(ma[Jl]--,cn[Vu.source]&&(cn[Vu.source].degree--,cn[Vu.source].outDegree--),cn[Vu.target]&&(cn[Vu.target].degree--,cn[Vu.target].inDegree--),we[Jl]&&ma[Jl]=0;Ja--){var oi=Qa(Ja);if(oi==="break")break}for(var Si=Ra.length,Ai=function(Ca){var Xn=Ra[Ca],Ta={};Xn.edges.forEach(function(pa){var ma="".concat(pa.source,"-").concat(pa.target,"-").concat(pa.label);Ta[ma]?Ta[ma]++:Ta[ma]=1});for(var Na=function(ma){var Ua=Ra[ma],xa={};Ua.edges.forEach(function(Xa){var Ci="".concat(Xa.source,"-").concat(Xa.target,"-").concat(Xa.label);xa[Ci]?xa[Ci]++:xa[Ci]=1});var Nn=!0;Object.keys(xa).length!==Object.keys(Ta).length?Nn=!1:Object.keys(Ta).forEach(function(Xa){xa[Xa]!==Ta[Xa]&&(Nn=!1)}),Nn&&Ra.splice(ma,1)},cn=Si-1;cn>Ca;cn--)Na(cn);Si=Ra.length},Ja=0;Ja<=Si-1;Ja++)Ai(Ja);return Ra}}},to=So,co=function(){function c(t){t===void 0&&(t=10),this.linkedList=new Se,this.maxStep=t}return Object.defineProperty(c.prototype,"length",{get:function(){return this.linkedList.toArray().length},enumerable:!1,configurable:!0}),c.prototype.isEmpty=function(){return!this.linkedList.head},c.prototype.isMaxStack=function(){return this.toArray().length>=this.maxStep},c.prototype.peek=function(){return this.isEmpty()?null:this.linkedList.head.value},c.prototype.push=function(t){this.linkedList.prepend(t),this.length>this.maxStep&&this.linkedList.deleteTail()},c.prototype.pop=function(){var t=this.linkedList.deleteHead();return t?t.value:null},c.prototype.toArray=function(){return this.linkedList.toArray().map(function(t){return t.value})},c.prototype.clear=function(){for(;!this.isEmpty();)this.pop()},c}(),ni=co,lo=br,Ss={getAdjMatrix:te,breadthFirstSearch:ht,connectedComponent:Qe,getDegree:St,getInDegree:Ct,getOutDegree:_t,detectCycle:br,detectDirectedCycle:lo,detectAllCycles:qt,detectAllDirectedCycle:Bt,detectAllUndirectedCycle:ft,depthFirstSearch:xr,dijkstra:Hr,findAllPath:Gr,findShortestPath:qr,floydWarshall:Gn,labelPropagation:$r,louvain:K,iLouvain:rt,kCore:ae,kMeans:C,cosineSimilarity:he,nodesCosineSimilarity:Ee,minimumSpanningTree:Ot,pageRank:pr,getNeighbors:pe,Stack:ni,GADDI:to},Ro=z(77160),mi=z(35600),ya=z(31437),_o=q.vs,Yi=function(t){return function(e,r){return e[t]-r[t]}},Fi=function(t,e,r){return t>=e&&t<=r},Bo=function(t,e,r,n){var a=1e-4,i={x:r.x-t.x,y:r.y-t.y},o={x:e.x-t.x,y:e.y-t.y},s={x:n.x-r.x,y:n.y-r.y},l=o.x*s.y-o.y*s.x,h=l*l,p=1/l,D=o.x*o.x+o.y*o.y,I=s.x*s.x+s.y*s.y;if(h>a*D*I){var F=(i.x*s.y-i.y*s.x)*p,Z=(i.x*o.y-i.y*o.x)*p;return!Fi(F,0,1)||!Fi(Z,0,1)?null:{x:t.x+F*o.x,y:t.y+F*o.y}}return null},_s=function(t,e){var r=t.x,n=t.y,a=t.width,i=t.height,o=r+a/2,s=n+i/2,l=[],h={x:o,y:s};l.push({x:r,y:n}),l.push({x:r+a,y:n}),l.push({x:r+a,y:n+i}),l.push({x:r,y:n+i}),l.push({x:r,y:n});for(var p=null,D=1;De[n][i]+e[i][a]&&(e[n][a]=e[n][i]+e[i][a]);return e},Li=function(t,e){var r=t.nodes,n=t.edges,a=[],i={};if(!r)throw new Error("invalid nodes data!");return r&&r.forEach(function(o,s){i[o.id]=s;var l=[];a.push(l)}),n&&n.forEach(function(o){var s=o.source,l=o.target,h=i[s],p=i[l];a[h][p]=1,e||(a[p][h]=1)}),a},Mo=function(t,e){t.translate(e.x,e.y)},ho=function(t,e,r,n){n===void 0&&(n={duration:500});var a=t.getMatrix();a||(a=[1,0,0,0,1,0,0,0,1]);var i=t.getCanvasBBox(),o=e.x-i.minX,s=e.y-i.minY;if(r){var l=o*a[0],h=s*a[4],p=0,D=0,I=0,F=0;t.animate(function(ee){return I=l*ee,F=h*ee,a=_o(a,[["t",I-p,F-D]]),p=I,D=F,{matrix:a}},n)}else{var Z=_o(a,[["t",o,s]]);t.setMatrix(Z)}},Gi=function(t,e){var r=t.getMatrix();r||(r=[1,0,0,0,1,0,0,0,1]);var n=e;(0,m.isArray)(e)||(n=[e,e]),(0,m.isArray)(e)&&e.length===1&&(n=[e[0],e[0]]),r=_o(r,[["s",n[0],n[1]]]),t.setMatrix(r)},Di=function(t,e){var r=t.getMatrix();r||(r=[1,0,0,0,1,0,0,0,1]),r=_o(r,[["r",e]]),t.setMatrix(r)},$o=function(t,e,r){for(var n=[],a=0;a0!=o(h[1]-r)>0&&o(e-(r-l[1])*(l[0]-h[0])/(l[1]-h[1])-l[0])<0&&(n=!n)}return n},Qo=function(t,e){return!(e.minX>t.maxX||e.maxXt.maxY||e.maxY1){var oe=D[0],ce=D[F-1];I.push({from:{x:ce[0],y:ce[1]},to:{x:oe[0],y:oe[1]}})}return I};if(t.length<2||e.length<2)return!1;var a=r(t),i=r(e);if(!Qo(a,i))return!1;var o=!1;if((0,m.each)(e,function(p){if(ro(t,p[0],p[1]))return o=!0,!1}),o||((0,m.each)(t,function(p){if(ro(e,p[0],p[1]))return o=!0,!1}),o))return!0;var s=n(t),l=n(e),h=!1;return(0,m.each)(l,function(p){if(ns(s,p))return h=!0,!1}),h},ga=function(){function c(t,e,r,n){this.x1=t,this.y1=e,this.x2=r,this.y2=n}return c.prototype.getBBox=function(){var t=Math.min(this.x1,this.x2),e=Math.min(this.y1,this.y2),r=Math.max(this.x1,this.x2),n=Math.max(this.y1,this.y2),a={x:t,y:e,minX:t,minY:e,maxX:r,maxY:n,width:r-t,height:n-e};return a},c}(),vo=function(t,e){var r={top:[t.minX,t.minY,t.maxX,t.minY],left:[t.minX,t.minY,t.minX,t.maxY],bottom:[t.minX,t.maxY,t.maxX,t.maxY],right:[t.maxX,t.minY,t.maxX,t.maxY]};return r[e]},Vs=function(t,e){var r=(e.x2-e.x1)*(t.y1-e.y1)-(e.y2-e.y1)*(t.x1-e.x1),n=(t.x2-t.x1)*(t.y1-e.y1)-(t.y2-t.y1)*(t.x1-e.x1),a=(e.y2-e.y1)*(t.x2-t.x1)-(e.x2-e.x1)*(t.y2-t.y1);if(a){var i=r/a,o=n/a;if(i>=0&&i<=1&&o>=0&&o<=1)return i}return Number.POSITIVE_INFINITY},Pi=function(t,e){for(var r=["top","left","bottom","right"],n=t.getBBox(),a=0,i=[],o=0;o<4;o++){var s=vo(n,r[o]),l=s[0],h=s[1],p=s[2],D=s[3];i[o]=Bo({x:e.x1,y:e.y1},{x:e.x2,y:e.y2},{x:l,y:h},{x:p,y:D}),i[o]&&(a+=1)}return[i,a]},Ao=function(t,e){for(var r=["top","left","bottom","right"],n=t.getBBox(),a=Number.POSITIVE_INFINITY,i=0,o=0;o<4;o++){var s=vo(n,r[o]),l=s[0],h=s[1],p=s[2],D=s[3],I=Vs(e,new ga(l,h,p,D));I=Math.abs(I-.5),I>=0&&I<=1&&(i+=1,a=I0){for(var n=0,a=t;ne.x+e.width,a=t.y>e.y+e.height,i=t.y":.604998779296875,"/":.5,"?":.53699951171875},Xi=Math.PI,zo=Math.sin,is=Math.cos,ui=zo(Xi/8),ai=is(Xi/8),Eo=function(t,e){var r=t.getBBox(),n={x:r.minX,y:r.minY},a={x:r.maxX,y:r.maxY};if(e){var i=e.getMatrix();i||(i=[1,0,0,0,1,0,0,0,1]),n=_n(n,i),a=_n(a,i)}var o=n.x,s=n.y,l=a.x,h=a.y;return{x:o,y:s,minX:o,minY:s,maxX:l,maxY:h,width:l-o,height:h-s}},Yu=function(t){var e=t.sourceNode||t.targetNode,r=e.get("group"),n=r.getMatrix();n||(n=[1,0,0,0,1,0,0,0,1]);var a=e.getKeyShape(),i=a.getBBox(),o=t.loopCfg||{},s=o.dist||Math.max(i.width,i.height)*2,l=o.position||an.defaultLoopPosition,h=[(i.minX+i.maxX)/2+n[6],(i.minY+i.maxY)/2+n[7]],p=[t.startPoint.x,t.startPoint.y],D=[t.endPoint.x,t.endPoint.y],I=i.height/2,F=i.width/2,Z=I,ee=I,se=Z*ui,oe=Z*ai,ce=ee*ui,we=ee*ai,Re=a.get("type"),Oe=Math.min(I/2,F/2),Pe=Math.min(I,F),He=(o==null?void 0:o.pointPadding)?Math.min(Pe,o==null?void 0:o.pointPadding):Oe;if(p[0]===D[0]&&p[1]===D[1]){switch(l){case"top":Re==="circle"?(p=[h[0]-se,h[1]-oe],D=[h[0]+ce,h[1]-we]):(p=[h[0]-He,h[1]-I],D=[h[0]+He,h[1]-I]);break;case"top-right":Z=I,ee=F,Re==="circle"?(se=Z*ui,oe=Z*ai,ce=ee*ui,we=ee*ai,p=[h[0]+se,h[1]-oe],D=[h[0]+we,h[1]-ce]):(p=[h[0]+F-He,h[1]-I],D=[h[0]+F,h[1]-I+He]);break;case"right":Z=F,ee=F,Re==="circle"?(se=Z*ui,oe=Z*ai,ce=ee*ui,we=ee*ai,p=[h[0]+oe,h[1]-se],D=[h[0]+we,h[1]+ce]):(p=[h[0]+F,h[1]-He],D=[h[0]+F,h[1]+He]);break;case"bottom-right":Z=F,ee=I,Re==="circle"?(se=Z*ui,oe=Z*ai,ce=ee*ui,we=ee*ai,p=[h[0]+oe,h[1]+se],D=[h[0]+ce,h[1]+we]):(p=[h[0]+F,h[1]+I-He],D=[h[0]+F-He,h[1]+I]);break;case"bottom":Z=I,ee=I,Re==="circle"?(se=Z*ui,oe=Z*ai,ce=ee*ui,we=ee*ai,p=[h[0]+se,h[1]+oe],D=[h[0]-ce,h[1]+we]):(p=[h[0]-He,h[1]+I],D=[h[0]+He,h[1]+I]);break;case"bottom-left":Z=I,ee=F,Re==="circle"?(se=Z*ui,oe=Z*ai,ce=ee*ui,we=ee*ai,p=[h[0]-se,h[1]+oe],D=[h[0]-we,h[1]+ce]):(p=[h[0]-F,h[1]+I-He],D=[h[0]-F+He,h[1]+I]);break;case"left":Z=F,ee=F,Re==="circle"?(se=Z*ui,oe=Z*ai,ce=ee*ui,we=ee*ai,p=[h[0]-oe,h[1]+se],D=[h[0]-we,h[1]-ce]):(p=[h[0]-F,h[1]-He],D=[h[0]-F,h[1]+He]);break;case"top-left":Z=F,ee=I,Re==="circle"?(se=Z*ui,oe=Z*ai,ce=ee*ui,we=ee*ai,p=[h[0]-oe,h[1]-se],D=[h[0]-ce,h[1]-we]):(p=[h[0]-F+He,h[1]-I],D=[h[0]-F,h[1]-I+He]);break;default:Z=F,ee=F,se=Z*ui,oe=Z*ai,ce=ee*ui,we=ee*ai,p=[h[0]-se,h[1]-oe],D=[h[0]+ce,h[1]-we]}if(o.clockwise===!1){var at=[p[0],p[1]];p=[D[0],D[1]],D=[at[0],at[1]]}}var qe=[p[0]-h[0],p[1]-h[1]],yt=(Z+s)/Z,Ft=(ee+s)/ee;o.clockwise===!1&&(yt=(ee+s)/ee,Ft=(Z+s)/Z);var yr=ya.scale([0,0],qe,yt),fr=[h[0]+yr[0],h[1]+yr[1]],lr=[D[0]-h[0],D[1]-h[1]],Kt=ya.scale([0,0],lr,Ft),jr=[h[0]+Kt[0],h[1]+Kt[1]];return t.startPoint={x:p[0],y:p[1]},t.endPoint={x:D[0],y:D[1]},t.controlPoints=[{x:fr[0],y:fr[1]},{x:jr[0],y:jr[1]}],t},Hu=function(t,e,r,n,a){var i=1e-4,o=[],s=t==null?void 0:t.getPoint(e);if(!s)return{x:0,y:0,angle:0};if(e1-i)o=t.getEndTangent();else{var l=t==null?void 0:t.getPoint(e+i);o.push([s.x,s.y]),o.push([l.x,l.y])}var h=Math.atan2(o[1][1]-o[0][1],o[1][0]-o[0][0]);if(h<0&&(h+=Xi*2),r&&(s.x+=is(h)*r,s.y+=zo(h)*r),n){var p=h-Xi/2;h>1/2*Xi&&h<3*1/2*Xi&&(p-=Xi),s.x+=is(p)*n,s.y+=zo(p)*n}var D={x:s.x,y:s.y,angle:h};return a?(h>.5*Xi&&h<1.5*Xi&&(h-=Xi),(0,b.__assign)({rotate:h},D)):D},du=function c(t,e,r,n){if(n(t,e,r)===!1)return!1;if(t&&t.children){for(var a=t.children.length-1;a>=0;a--)if(!c(t.children[a],t,a,n))return!1}return!0},hu=function c(t,e,r,n){if(t&&t.children){for(var a=t.children.length-1;a>=0;a--)if(!c(t.children[a],t,a,n))return}return n(t,e,r)!==!1},Ei=function(t,e){typeof e=="function"&&du(t,null,-1,e)},Ki=function(t,e){typeof e=="function"&&hu(t,null,-1,e)},Zs=function(t,e){return e*(Hs[t]||1)},Ks=function(t,e){var r=0,n=new RegExp("[\u4E00-\u9FA5]+");return t.split("").forEach(function(a){n.test(a)?r+=e:r+=Zs(a,e)}),[r,e]},io=function(t,e){return typeof e!="number"||e<=0||e>=t.length?t:t.substring(0,e)+"..."},os=function(t,e){var r=[],n={},a={};t.forEach(function(s){a[s.id]=s}),t.forEach(function(s,l){var h=(0,m.clone)(s);h.itemType="combo",h.children=void 0,h.parentId===h.id?(console.warn("The parentId for combo ".concat(h.id," can not be the same as the combo's id")),delete h.parentId):h.parentId&&!a[h.parentId]&&(console.warn("The parent combo for combo ".concat(h.id," does not exist!")),delete h.parentId);var p=n[h.id];if(p){if(h.children=p.children,n[h.id]=h,p=h,!p.parentId){r.push(p);return}var D=n[p.parentId];if(D)D.children?D.children.push(h):D.children=[h];else{var I={id:p.parentId,children:[p]};n[p.parentId]=I,n[h.id]=h}return}if((0,m.isString)(s.parentId)){var F=n[s.parentId];if(F)F.children?F.children.push(h):F.children=[h],n[h.id]=h;else{var Z={id:s.parentId,children:[h]};n[Z.id]=Z,n[h.id]=h}}else r.push(h),n[h.id]=h});var i={};(e||[]).forEach(function(s){i[s.id]=s;var l=n[s.comboId];if(l){var h={id:s.id,comboId:s.comboId};l.children?l.children.push(h):l.children=[h],h.itemType="node",n[s.id]=h}});var o=0;return r.forEach(function(s){s.depth=o+10,Ei(s,function(l){var h,p=n[l.id].itemType;p==="node"?h=n[l.comboId]:h=n[l.parentId],h&&p==="node"?l.depth=o+1:l.depth=o+10,o-1&&a.splice(h,1),s||(i={id:e,itemType:"node",comboId:r},o[e]={children:void 0}),e){var p=!1;if(r){var D=0;(t||[]).forEach(function(F){p||Ei(F,function(Z){return r===Z.id?(p=!0,Z.children?Z.children.push(i):Z.children=[i],D=Z.depth,i.itemType==="node"?i.depth=D+2:i.depth=D+1,!1):!0})})}else(!r||!p)&&i.itemType!=="node"&&t.push(i);var I=i.depth;Ei(i,function(F){return F.itemType==="node"?I+=2:I+=1,F.depth=I,!0})}return t},us=function(t,e,r){var n={minX:Infinity,minY:Infinity,maxX:-Infinity,maxY:-Infinity,x:void 0,y:void 0,width:void 0,height:void 0,centerX:void 0,centerY:void 0};if(!t||t.length===0){var a=r==null?void 0:r.getModel(),i=a||{},o=i.x,s=i.y,l=i.fixSize,h=i.collapsed,p=i.fixCollapseSize,D=h?p:l,I=(0,m.isArray)(D)?D:[D,D],F=I[0],Z=I[1],ee=[F/2,Z/2];return{minX:o-ee[0],minY:s-ee[1],maxX:o+ee[0],maxY:s+ee[1],x:o,y:s,width:F,height:Z}}return t.forEach(function(se){var oe=e.findById(se.id);if(!(!oe||!oe.isVisible())){oe.set("bboxCanvasCache",void 0);var ce=oe.getCanvasBBox();ce.x&&n.minX>ce.minX&&(n.minX=ce.minX),ce.y&&n.minY>ce.minY&&(n.minY=ce.minY),ce.x&&n.maxXr&&(r=p),D>a&&(a=D)}var I=Math.floor(e),F=Math.floor(n),Z=Math.ceil(r)-Math.floor(e),ee=Math.ceil(a)-Math.floor(n);return{x:I,y:F,width:Z,height:ee,minX:e,minY:n,maxX:r,maxY:a}},Mf=function(t,e,r,n,a){e===void 0&&(e=15),r===void 0&&(r="quadratic"),n===void 0&&(n=void 0),a===void 0&&(a=void 0);for(var i=t.length,o=e*2,s=["top","top-right","right","bottom-right","bottom","bottom-left","left","top-left"],l={},h=[],p={},D=0;Dr.get("optimizeThreshold")){var o=Infinity,s=Infinity,l=-Infinity,h=-Infinity;i.forEach(function(we){var Re=we.getModel(),Oe=Re.x,Pe=Re.y;o>Oe&&(o=Oe),s>Pe&&(s=Pe),lee&&(se=ee,console.warn("fitview failed, ratio out of range, ratio: %f",o,"graph maxzoom has been used instead"));var oe=(0,Ts.vs)(I,[["t",-a.x,-a.y],["s",se,se],["t",a.x,a.y]]),ce=bo({animateCfg:r,callback:function(){t.setMatrix(oe),l.emit("viewportchange",{action:"translate",matrix:I}),l.emit("viewportchange",{action:"zoom",matrix:oe})}});t.stopAnimate(),t.setMatrix(e),t.animate(function(we){return{matrix:Fa(e,oe,we)}},ce)}},c.prototype.fitView=function(t,e){var r=this.graph,n=this.getFormatPadding(),a=r.get("width"),i=r.get("height"),o=r.get("group"),s=o.getMatrix()||[1,0,0,0,1,0,0,0,1];o.resetMatrix();var l,h=r.getNodes();if(h.length>r.get("optimizeThreshold")){var p=Infinity,D=Infinity,I=-Infinity,F=-Infinity;h.forEach(function(Oe){var Pe=Oe.getModel(),He=Pe.x,at=Pe.y;p>He&&(p=He),D>at&&(D=at),Ioe&&(ce=oe),t)this.animatedFitView(o,s,e,l,Z,ee,ce,!0);else{var we=Z.x-ee.x,Re=Z.y-ee.y;if(xo(we)||xo(Re))return;r.translate(we,Re),r.zoom(ce,Z)||console.warn("zoom failed, ratio out of range, ratio: %f",ce)}}},c.prototype.fitViewByRules=function(t,e,r){var n=t.onlyOutOfViewPort,a=n===void 0?!1:n,i=t.direction,o=i===void 0?"both":i,s=t.ratioRule,l=s===void 0?"min":s,h=this.graph,p=this.getFormatPadding(),D=h.get("width"),I=h.get("height"),F=h.get("group"),Z=F.getMatrix()||[1,0,0,0,1,0,0,0,1];F.resetMatrix();var ee,se=h.getNodes();if(se.length>h.get("optimizeThreshold")){var oe=Infinity,ce=Infinity,we=-Infinity,Re=-Infinity;se.forEach(function(fr){var lr=fr.getModel(),Kt=lr.x,jr=lr.y;oe>Kt&&(oe=Kt),ce>jr&&(ce=jr),wep.maxX&&(p.maxX=Z.maxX),Z.maxY>p.maxY&&(p.maxY=Z.maxY)}if(p.x=p.minX,p.y=p.minY,p.width=p.maxX-p.minX,p.height=p.maxY-p.minY,!(p.width===0||p.height===0)){var ee=this.getViewCenter(),se={x:p.x+p.width/2,y:p.y+p.height/2},oe=(o-i[1]-i[3])/p.width,ce=(s-i[0]-i[2])/p.height,we=oe;oe>ce&&(we=ce),r?this.animatedFitView(l,h,n,p,ee,se,we,e):(a.translate(ee.x-se.x,ee.y-se.y),e&&!a.zoom(we,ee)&&console.warn("zoom failed, ratio out of range, ratio: %f",we))}}},c.prototype.changeSize=function(t,e){var r=this.graph;if(!(0,m.isNumber)(t)||!(0,m.isNumber)(e))throw Error("invalid canvas width & height, please make sure width & height type is number");r.set({width:t,height:e});var n=r.get("canvas");n.changeSize(t,e);var a=r.get("plugins");a.forEach(function(i){i.get("gridContainer")&&i.positionInit()})},c.prototype.destroy=function(){this.graph=null,this.destroyed=!1},c}(),u=Cf;function O(c){return O=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},O(c)}function ue(c){if(typeof c!="string")return c;var t=function(Pe){if(typeof Pe!="string")return Pe;try{return JSON.parse(Pe.trim())}catch(He){return Pe.trim()}},e=t(c);if(typeof e!="string")return e;for(var r=function(Pe){return Pe[Pe.length-1]},n=c.trim(),a=[],i=[],o=function(){for(var Pe=[],He=0;He=0&&(a.height=i),o>=0&&(a.width=o),n.marginTop&&(a.y+=n.marginTop),n.marginLeft&&(a.x+=n.marginLeft),a}function Ye(c,t){var e;t===void 0&&(t={x:0,y:0});var r=(0,b.__assign)({x:0,y:0,width:0,height:0},t);if((e=c.children)===null||e===void 0?void 0:e.length){var n=c.attrs,a=n===void 0?{}:n,i=a.marginTop,o=(0,b.__assign)({},t);i&&(o.y+=i);for(var s=0;sr.width&&(r.width=h.width+h.x),h.height+h.y>r.height&&(r.height=h.height+h.y)}}}return c.bbox=Be(c,t,r),c.attrs=(0,b.__assign)((0,b.__assign)({},c.attrs),c.bbox),c}function Je(c,t){var e,r,n,a,i=(c||{}).type,o=((t==null?void 0:t.attrs)||{}).key;if(o&&c&&(c.attrs.key=o),!c&&t)return{action:"delete",val:t,type:i,key:o};if(c&&!t)return{action:"add",val:c,type:i};if(!c&&!t)return{action:"same",type:i};var s=[];if(((e=c.children)===null||e===void 0?void 0:e.length)>0||((r=t.children)===null||r===void 0?void 0:r.length)>0)for(var l=Math.max((n=c.children)===null||n===void 0?void 0:n.length,(a=t.children)===null||a===void 0?void 0:a.length),h=t.children||[],p=c.children||[],D=0;D-1)return;r.push(a)}else s>-1&&r.splice(s,1)}else if((0,m.isString)(e)){var l=r.filter(function(D){return D.includes(i)});l.length>0&&this.clearStates(l),o=o.filter(function(D){return!D.includes(i)}),o.push(a),this.set("states",o)}if(n){var h=this.get("model"),p=h.type;n.setState(p,t,e,this)}},c.prototype.clearStates=function(t){var e=this,r=e.getStates(),n=e.get("shapeFactory"),a=e.get("model"),i=a.type;t||(t=r),(0,m.isString)(t)&&(t=[t]);var o=r.filter(function(s){return t.indexOf(s)===-1});e.set("states",o),t.forEach(function(s){n.setState(i,s,!1,e)})},c.prototype.setOptimize=function(t){this.optimize=t},c.prototype.getContainer=function(){return this.get("group")},c.prototype.getKeyShape=function(){return this.get("keyShape")},c.prototype.getModel=function(){return this.get("model")},c.prototype.getType=function(){return this.get("type")},c.prototype.getID=function(){return this.get("id")},c.prototype.isItem=function(){return!0},c.prototype.getStates=function(){return this.get("states")},c.prototype.hasState=function(t){var e=this.getStates();return e.indexOf(t)>=0},c.prototype.refresh=function(t){var e=this.get("model");this.updatePosition(e),this.updateShape(t),this.afterUpdate(),this.clearCache()},c.prototype.getUpdateType=function(t){},c.prototype.update=function(t,e){e===void 0&&(e=void 0);var r=this.get("model");if(e==="move")this.updatePosition(t);else{var n=r.visible,a=t.visible;n!==a&&a!==void 0&&this.changeVisibility(a);var i={x:r.x,y:r.y};t.x=isNaN(+t.x)?r.x:+t.x,t.y=isNaN(+t.y)?r.y:+t.y;var o=this.get("styles");if(t.stateStyles){var s=t.stateStyles;(0,m.mix)(o,s),delete t.stateStyles}Object.assign(r,t),(i.x!==t.x||i.y!==t.y)&&this.updatePosition(t),this.updateShape(e)}this.afterUpdate(),this.clearCache()},c.prototype.updateShape=function(t){var e=this.get("shapeFactory"),r=this.get("model"),n=r.type;if(e.shouldUpdate(n)&&n===this.get("currentShape")){var a=this.getShapeCfg(r,t);e.baseUpdate(n,a,this,t),t!=="move"&&this.setOriginStyle()}else this.draw();this.restoreStates(e,n)},c.prototype.updatePosition=function(t){var e=this.get("model"),r=isNaN(+t.x)?+e.x:+t.x,n=isNaN(+t.y)?+e.y:+t.y,a=this.get("group");if(isNaN(r)||isNaN(n))return!1;e.x=r,e.y=n;var i=a.getMatrix();return i&&i[6]===r&&i[7]===n?!1:(a.resetMatrix(),Mo(a,{x:r,y:n}),this.clearCache(),!0)},c.prototype.getBBox=function(){var t=this.get(hr);return t||(t=this.calculateBBox(),this.set(hr,t)),t},c.prototype.getCanvasBBox=function(){var t=this.get(rn);return t||(t=this.calculateCanvasBBox(),this.set(rn,t)),t},c.prototype.toFront=function(){var t=this.get("group");t.toFront()},c.prototype.toBack=function(){var t=this.get("group");t.toBack()},c.prototype.show=function(){this.changeVisibility(!0)},c.prototype.hide=function(){this.changeVisibility(!1)},c.prototype.changeVisibility=function(t){var e=this.get("group");t?e.show():e.hide(),this.set("visible",t)},c.prototype.isVisible=function(){return this.get("visible")},c.prototype.enableCapture=function(t){var e=this.get("group");e&&e.set("capture",t)},c.prototype.destroy=function(){if(!this.destroyed){var t=this.get("animate"),e=this.get("group");t&&e.stopAnimate(),e.shapeMap={},this.clearCache(),e.remove(),this._cfg=null,this.destroyed=!0}},c}(),Un=qn,Mn={source:"start",target:"end"},Cn="Node",Ga="Point",ei="Anchor",Ka=function(c){(0,b.__extends)(t,c);function t(){return c!==null&&c.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){return{type:"edge",sourceNode:null,targetNode:null,startPoint:null,endPoint:null,linkCenter:!1}},t.prototype.setEnd=function(e,r){var n=Mn[e]+Ga,a=e+Cn,i=this.get(a);i&&!i.destroyed&&i.removeEdge(this),(0,m.isPlainObject)(r)?(this.set(n,r),this.set(a,null)):r&&(r.addEdge(this),this.set(a,r),this.set(n,null))},t.prototype.getLinkPoint=function(e,r,n){var a=Mn[e]+Ga,i=e+Cn,o=this.get(a);if(!o){var s=this.get(i),l=e+ei,h=this.getPrePoint(e,n),p=r[l];(0,m.isNil)(p)||(o=s.getLinkPointByAnchor(p)),o=o||s.getLinkPoint(h),(0,m.isNil)(o.index)||this.set("".concat(e,"AnchorIndex"),o.index)}return o},t.prototype.getPrePoint=function(e,r){if(r&&r.length){var n=e==="source"?0:r.length-1;return r[n]}var a=e==="source"?"target":"source";return this.getEndPoint(a)},t.prototype.getEndPoint=function(e){var r=e+Cn,n=Mn[e]+Ga,a=this.get(r);return a&&!a.destroyed?a.get("model"):this.get(n)},t.prototype.getControlPointsByCenter=function(e){var r=this.getEndPoint("source"),n=this.getEndPoint("target"),a=this.get("shapeFactory"),i=e.type;return a.getControlPoints(i,{startPoint:r,endPoint:n})},t.prototype.getEndCenter=function(e){var r=e+Cn,n=Mn[e]+Ga,a=this.get(r);if(a){var i=a.getBBox();return{x:i.centerX,y:i.centerY}}return this.get(n)},t.prototype.init=function(){c.prototype.init.call(this),this.setSource(this.get("source")),this.setTarget(this.get("target"))},t.prototype.getShapeCfg=function(e,r){var n=this,a=n.get("linkCenter"),i=(r==null?void 0:r.includes("move"))?e:c.prototype.getShapeCfg.call(this,e);if(a)i.startPoint=n.getEndCenter("source"),i.endPoint=n.getEndCenter("target");else{var o=i.controlPoints||n.getControlPointsByCenter(i);i.startPoint=n.getLinkPoint("source",e,o),i.endPoint=n.getLinkPoint("target",e,o)}return i.sourceNode=n.get("sourceNode"),i.targetNode=n.get("targetNode"),i},t.prototype.getModel=function(){var e=this.get("model"),r=this.get("source".concat(Cn)),n=this.get("target".concat(Cn));return r?delete e["source".concat(Cn)]:e.source=this.get("start".concat(Ga)),n?delete e["target".concat(Cn)]:e.target=this.get("end".concat(Ga)),!(0,m.isString)(e.source)&&!(0,m.isPlainObject)(e.source)&&(e.source=e.source.getID()),!(0,m.isString)(e.target)&&!(0,m.isPlainObject)(e.target)&&(e.target=e.target.getID()),e},t.prototype.setSource=function(e){this.setEnd("source",e),this.set("source",e)},t.prototype.setTarget=function(e){this.setEnd("target",e),this.set("target",e)},t.prototype.getSource=function(){return this.get("source")},t.prototype.getTarget=function(){return this.get("target")},t.prototype.updatePosition=function(){return!1},t.prototype.update=function(e,r){r===void 0&&(r=void 0);var n=this.get("model"),a=n.visible,i=e.visible;a!==i&&i!==void 0&&this.changeVisibility(i);var o=this.get("source"),s=this.get("target");if(!(!o||o.destroyed||!s||s.destroyed)){var l=this.get("styles");if(e.stateStyles){var h=e.stateStyles;(0,m.mix)(l,h),delete e.stateStyles}Object.assign(n,e),this.updateShape(r),this.afterUpdate(),this.clearCache()}},t.prototype.destroy=function(){var e=this.get("source".concat(Cn)),r=this.get("target".concat(Cn));e&&!e.destroyed&&e.removeEdge(this),r&&!r.destroyed&&r.removeEdge(this),c.prototype.destroy.call(this)},t}(Un),$a=Ka,Ha="anchorPointsCache",fi="bboxCache",bi=function(c){(0,b.__extends)(t,c);function t(){return c!==null&&c.apply(this,arguments)||this}return t.prototype.getNearestPoint=function(e,r){for(var n=0,a=e[0],i=Va(e[0],r),o=0;o-1&&r.splice(n,1)},t.prototype.clearCache=function(){this.set(fi,null),this.set(Ha,null)},t.prototype.getUpdateType=function(e){var r,n,a,i,o;if(!!e){var s=!(0,m.isNil)(e.x),l=!(0,m.isNil)(e.y),h=Object.keys(e);if(h.length===1&&(s||l)||h.length===2&&s&&l)return"move";if((0,m.isNumber)(e.x)||(0,m.isNumber)(e.y)||e.type||e.anchorPoints||e.size||(e==null?void 0:e.style)&&(((r=e==null?void 0:e.style)===null||r===void 0?void 0:r.r)||((n=e==null?void 0:e.style)===null||n===void 0?void 0:n.width)||((a=e==null?void 0:e.style)===null||a===void 0?void 0:a.height)||((i=e==null?void 0:e.style)===null||i===void 0?void 0:i.rx)||((o=e==null?void 0:e.style)===null||o===void 0?void 0:o.ry)))return"bbox|label";var p=h.includes("label")||h.includes("labelCfg");return p?"style|label":"style"}},t.prototype.setState=function(e,r){var n=this;if(this.optimize){c.prototype.setState.call(this,e,r);return}this.runWithBBoxAffected(function(){return c.prototype.setState.call(n,e,r)})},t.prototype.clearStates=function(e){var r=this;if(this.optimize){c.prototype.clearStates.call(this,e);return}this.runWithBBoxAffected(function(){return c.prototype.clearStates.call(r,e)})},t.prototype.runWithBBoxAffected=function(e){var r=["r","width","height","rx","ry","lineWidth"],n=this.getKeyShape().attr(),a={};Object.keys(this.getKeyShape().attr()).forEach(function(l){r.includes(l)&&(a[l]=n[l])}),e();for(var i=this.getKeyShape().attr(),o=0;o-1?(r.splice(n,1),!0):!1}},t.prototype.removeNode=function(e){if(!!e){var r=this.getNodes(),n=r.indexOf(e);return n>-1?(r.splice(n,1),!0):!1}},t.prototype.getUpdateType=function(e){},t.prototype.getBBox=function(){this.set(Jo,null);var e=this.calculateCanvasBBox();return e},t.prototype.clearCache=function(){this.set(Oa,null),this.set(Jo,null),this.set(oo,null)},t.prototype.destroy=function(){if(!this.destroyed){var e=this.get("animate"),r=this.get("group");e&&r.stopAnimate(),r.shapeMap={},this.clearCache(),this.set(Wo,null),this.set("bbox",null),r.remove(),this._cfg=null,this.destroyed=!0}},t}(ha),Tf=Qs,Qu="node",Ju="edge",cc="vedge",yu="combo",If="default",Of="Mapper",qo="stateStyles",Af=function(){function c(t){var e=this;this.edgeToBeUpdateMap={},this.throttleRefresh=(0,m.throttle)(function(r){var n=e.graph;if(!(!n||n.get("destroyed"))){var a=e.edgeToBeUpdateMap;if(!!a){var i=Object.values(a);!i.length||(i.forEach(function(o){var s=o.edge;if(!(!s||s.destroyed)){var l=s.getSource(),h=s.getTarget();!l||l.destroyed||!h||h.destroyed||s.refresh(o.updateType)}}),e.edgeToBeUpdateMap={})}}},16,{trailing:!0,leading:!0}),this.graph=t,this.destroyed=!1}return c.prototype.addItem=function(t,e){var r=this.graph,n=t===cc?Ju:t,a=r.get("".concat(n,"Group"))||r.get("group"),i=(0,m.upperFirst)(n),o=null,s=r.get(n+(0,m.upperFirst)(qo))||{},l=r.get(If+i);e[qo]&&(s=e[qo]),l&&(0,m.each)(l,function(Oe,Pe){(0,m.isObject)(Oe)&&!(0,m.isArray)(Oe)?e[Pe]=(0,m.deepMix)({},Oe,e[Pe]):(0,m.isArray)(Oe)?e[Pe]=e[Pe]||(0,m.clone)(l[Pe]):e[Pe]=e[Pe]||l[Pe]});var h=r.get(n+Of);if(h){var p=h(e);p[qo]&&(s=p[qo],delete p[qo]),(0,m.each)(p,function(Oe,Pe){(0,m.isObject)(Oe)&&!(0,m.isArray)(Oe)?e[Pe]=(0,m.deepMix)({},e[Pe],Oe):e[Pe]=p[Pe]||e[Pe]})}if(r.emit("beforeadditem",{type:t,model:e}),t===Ju||t===cc){var D=void 0,I=void 0;if(D=e.source,I=e.target,D&&(0,m.isString)(D)&&(D=r.findById(D)),I&&(0,m.isString)(I)&&(I=r.findById(I)),!D||!I){console.warn("The source or target node of edge ".concat(e.id," does not exist!"));return}D.getType&&D.getType()==="combo"&&(e.isComboEdge=!0),I.getType&&I.getType()==="combo"&&(e.isComboEdge=!0),o=new $a({model:e,source:D,target:I,styles:s,linkCenter:r.get("linkCenter"),group:a.addGroup()})}else if(t===Qu)o=new ha({model:e,styles:s,group:a.addGroup()});else if(t===yu){var F=e.children,Z=us(F,r),ee=void 0,se=void 0;if(isNaN(Z.x)?isNaN(e.x)&&(ee=Math.random()*100):ee=Z.x,isNaN(Z.y)?isNaN(e.y)&&(se=Math.random()*100):se=Z.y,isNaN(e.x)||isNaN(e.y))e.x=ee,e.y=se;else{var oe=e.x-ee,ce=e.y-se;this.updateComboSucceeds(e.id,oe,ce,F)}var we=a.addGroup();we.setZIndex(e.depth),o=new Tf({model:e,styles:s,animate:r.get("animate"),bbox:e.collapsed?us([],r):Z,group:we}),!e.collapsed&&o.getKeyShape().get("type")==="circle"&&(Z.width=Math.hypot(Z.height,Z.width),Z.height=Z.width,o.set("bbox",Z),o.refresh());var Re=o.getModel();(F||[]).forEach(function(Oe){var Pe=r.findById(Oe.id);o.addChild(Pe),Oe.depth=Re.depth+2})}if(o)return o.setOptimize(r.getNodes().length>r.get("optimizeThreshold")),r.get("".concat(t,"s")).push(o),r.get("itemMap")[o.get("id")]=o,r.emit("afteradditem",{item:o,model:e}),o},c.prototype.updateItem=function(t,e){var r=this,n,a,i=this.graph;if((0,m.isString)(t)&&(t=i.findById(t)),!(!t||t.destroyed)){var o="";t.getType&&(o=t.getType());var s=i.get(o+Of),l=t.getModel(),h=l.x,p=l.y,D=t.getUpdateType(e);if(s){var I=(0,m.deepMix)({},l,e),F=s(I),Z=(0,m.deepMix)({},l,F,e);F[qo]&&(t.set("styles",Z[qo]),delete Z[qo]),(0,m.each)(Z,function(qe,yt){e[yt]=qe})}else(0,m.each)(e,function(qe,yt){l[yt]&&(0,m.isObject)(qe)&&!(0,m.isArray)(qe)&&(e[yt]=(0,b.__assign)((0,b.__assign)({},l[yt]),e[yt]))});if(i.emit("beforeupdateitem",{item:t,cfg:e}),o===Ju){if(e.source){var ee=e.source;(0,m.isString)(ee)&&(ee=i.findById(ee)),t.setSource(ee)}if(e.target){var se=e.target;(0,m.isString)(se)&&(se=i.findById(se)),t.setTarget(se)}t.update(e)}else if(o===Qu){t.update(e,D);var oe=t.getEdges();D==="move"?(0,m.each)(oe,function(qe){r.edgeToBeUpdateMap[qe.getID()]={edge:qe,updateType:D},r.throttleRefresh()}):(D==null?void 0:D.includes("bbox"))&&(0,m.each)(oe,function(qe){qe.refresh(D)})}else if(o===yu){if(t.update(e,D),!isNaN(e.x)||!isNaN(e.y)){var ce=e.x-h||0,we=e.y-p||0;this.updateComboSucceeds(l.id,ce,we)}var Re=t.getEdges(),Oe=(D==null?void 0:D.includes("bbox"))||D==="move";if(Oe&&o===yu){var Pe=t.get("shapeFactory"),He=l.type||"circle",at=l.animate===void 0||e.animate===void 0?(a=(n=Pe[He])===null||n===void 0?void 0:n.options)===null||a===void 0?void 0:a.animate:l.animate||e.animate;at?setTimeout(function(){if(!(!t||t.destroyed)){var qe=t.getKeyShape();!qe||qe.destroyed||(0,m.each)(Re,function(yt){yt&&!yt.destroyed&&yt.refresh()})}},201):(0,m.each)(Re,function(qe){qe.refresh()})}}t.setOptimize(i.getNodes().length>i.get("optimizeThreshold")),i.emit("afterupdateitem",{item:t,cfg:e})}},c.prototype.updateCombo=function(t,e,r){var n=this,a,i,o=this.graph;if((0,m.isString)(t)&&(t=o.findById(t)),!(!t||t.destroyed)){var s=t.getModel(),l=us(e,o,t),h=l.x,p=l.y;t.set("bbox",l);var D=h,I=p;r?(D=isNaN(s.x)?h:s.x,I=isNaN(s.y)?p:s.y):(D=isNaN(h)?s.x:h,I=isNaN(p)?s.y:p),t.update({x:D,y:I});var F=t.get("shapeFactory"),Z=s.type||"circle",ee=s.animate===void 0?(i=(a=F[Z])===null||a===void 0?void 0:a.options)===null||i===void 0?void 0:i.animate:s.animate;ee?setTimeout(function(){if(!(!t||t.destroyed)){var se=t.getKeyShape();!se||se.destroyed||(t.getShapeCfg(s),n.updateComboEdges(t))}},201):this.updateComboEdges(t)}},c.prototype.updateComboEdges=function(t){for(var e,r,n=t.getEdges()||[],a=0;a-1&&i.splice(o,1),a===Ju){var s=r.get("v".concat(a,"s")),l=s.indexOf(t);l>-1&&s.splice(l,1)}var h=t.get("id"),p=r.get("itemMap");delete p[h];var D=r.get("comboTrees"),I=t.get("id");if(a===Qu){var F=t.getModel().comboId;if(D&&F){var Z=D,ee=!1;D.forEach(function(Oe){ee||Ei(Oe,function(Pe){if(Pe.id===I&&Z){var He=Z.indexOf(Pe);return Z.splice(He,1),ee=!0,!1}return Z=Pe.children,!0})})}for(var se=t.getEdges(),oe=se.length-1;oe>=0;oe--)r.removeItem(se[oe],!1);F&&r.updateCombo(F)}else if(a===yu){var ce=t.getModel().parentId,we,Re=!1;(D||[]).forEach(function(Pe){Re||Ei(Pe,function(He){return He.id===I?(we=He,Re=!0,!1):!0})}),we.removed=!0,we&&we.children&&we.children.forEach(function(Pe){e.removeItem(Pe.id)});for(var se=t.getEdges(),oe=se.length;oe>=0;oe--)r.removeItem(se[oe],!1);ce&&r.updateCombo(ce)}t.destroy(),r.emit("afterremoveitem",{item:n,type:a})}},c.prototype.setItemState=function(t,e,r){var n=this.graph,a=e;(0,m.isString)(r)&&(a="".concat(e,":").concat(r)),!(t.hasState(a)===r&&r||(0,m.isString)(r)&&t.hasState(a))&&(n.emit("beforeitemstatechange",{item:t,state:a,enabled:r}),t.setState(e,r),n.autoPaint(),n.emit("afteritemstatechange",{item:t,state:a,enabled:r}))},c.prototype.priorityState=function(t,e){var r=this.graph,n=t;(0,m.isString)(t)&&(n=r.findById(t)),this.setItemState(n,e,!1),this.setItemState(n,e,!0)},c.prototype.clearItemStates=function(t,e){var r=this.graph;(0,m.isString)(t)&&(t=r.findById(t)),r.emit("beforeitemstatesclear",{item:t,states:e}),t.clearStates(e),r.emit("afteritemstatesclear",{item:t,states:e})},c.prototype.refreshItem=function(t){var e=this.graph;(0,m.isString)(t)&&(t=e.findById(t)),e.emit("beforeitemrefresh",{item:t}),t.refresh(),e.emit("afteritemrefresh",{item:t})},c.prototype.addCombos=function(t,e){var r=this,n=this.graph;(t||[]).forEach(function(i){Ki(i,function(o){var s;return e.forEach(function(l){l.id===o.id&&(l.children=o.children,l.depth=o.depth,s=l)}),s&&r.addItem("combo",s),!0})});var a=n.get("comboGroup");a&&a.sort()},c.prototype.changeItemVisibility=function(t,e){var r=this,n=this.graph;if((0,m.isString)(t)&&(t=n.findById(t)),!t){console.warn("The item to be shown or hidden does not exist!");return}if(n.emit("beforeitemvisibilitychange",{item:t,visible:e}),t.changeVisibility(e),t.getType&&t.getType()===Qu){var a=t.getEdges();(0,m.each)(a,function(h){e&&!(h.get("source").isVisible()&&h.get("target").isVisible())||r.changeItemVisibility(h,e)})}else if(t.getType&&t.getType()===yu){var i=n.get("comboTrees"),o=t.get("id"),s=[],l=!1;(i||[]).forEach(function(p){l||!p.children||p.children.length===0||Ei(p,function(D){return D.id===o?(s=D.children,l=!0,!1):!0})}),s&&(!e||e&&!t.getModel().collapsed)&&s.forEach(function(p){var D=n.findById(p.id);r.changeItemVisibility(D,e)});var a=t.getEdges();(0,m.each)(a,function(p){e&&!(p.get("source").isVisible()&&p.get("target").isVisible())||r.changeItemVisibility(p,e)})}return n.emit("afteritemvisibilitychange",{item:t,visible:e}),t},c.prototype.destroy=function(){this.graph=null,this.destroyed=!0},c}(),lc=Af,el=function(){function c(t){this.graph=t,this.destroyed=!1}return c.prototype.updateState=function(t,e,r){var n=this.graph.get("states"),a=e;(0,m.isString)(r)&&(a="".concat(e,":").concat(r)),n[a]||(n[a]=[]),r?n[a].push(t):n[a]=n[a].filter(function(i){return i!==t}),this.graph.set("states",n),this.graph.emit("graphstatechange",{states:n})},c.prototype.updateStates=function(t,e,r){var n=this.graph.get("states"),a=(0,m.isString)(e)?[e]:e;a.forEach(function(i){var o=i;n[o]||(n[o]=[]),(0,m.isString)(r)&&(o="".concat(i,":").concat(r)),r?n[o].push(t):n[o]=n[o].filter(function(s){return s!==t})}),this.graph.set("states",n),this.graph.emit("graphstatechange",{states:e})},c.prototype.destroy=function(){this.graph=null,this.destroyed=!0},c}(),Is=el,mu=z(80389),Qr=function(t,e){return!t||!e?t:t.replace(/\\?\{([^{}]+)\}/g,function(r,n){if(r.charAt(0)==="\\")return r.slice(1);var a=e[n];return a===0&&(a="0"),a||""})},Os=function(t){var e=[];if(t.length<2)throw new Error("point length must largn than 2, now it's ".concat(t.length));for(var r=0,n=t;r0?i-1:e-1,s=ya.normalize([0,0],ya.add([0,0],a[o].v,ya.scale([0,0],a[i].v,-1)));a[i].p=ya.add([0,0],a[i].p,ya.scale([0,0],s,t))}return a.map(function(l){var h=l.p;return{x:h[0],y:h[1]}})}var Lo=function(t,e){for(var r=[],n=0;n<5;n++){var a=Math.cos((18+72*n)/180*Math.PI)*t,i=Math.sin((18+72*n)/180*Math.PI)*t,o=Math.cos((54+72*n)/180*Math.PI)*e,s=Math.sin((54+72*n)/180*Math.PI)*e;n===0?r.push(["M",a,-i]):r.push(["L",a,-i]),r.push(["L",o,-s])}return r.push(["Z"]),r},Pf=function(t,e,r){return(t.y-r.y)*(e.x-r.x)-(t.x-r.x)*(e.y-r.y)},kf=function(t){var e=t.map(function(p){return{x:p.getModel().x,y:p.getModel().y}});e.sort(function(p,D){return p.x===D.x?p.y-D.y:p.x-D.x});for(var r={},n=e.length-1;n>=0;n--){var a=e[n],i=a.x,o=a.y;r["".concat(i,"-").concat(o)]&&e.splice(n,1),r["".concat(i,"-").concat(o)]=!0}if(e.length===1)return e;for(var s=[],n=0;n=2&&Pf(s[s.length-2],s[s.length-1],e[n])<=0;)s.pop();s.push(e[n])}for(var l=[],n=e.length-1;n>=0;n--){for(;l.length>=2&&Pf(l[l.length-2],l[l.length-1],e[n])<=0;)l.pop();l.push(e[n])}l.pop(),s.pop();var h=s.concat(l);return h},xi={maxRoutingIterations:100,maxMarchingIterations:100,pixelGroupSize:2,edgeR0:10,edgeR1:10,nodeR0:5,nodeR1:10,morphBuffer:5,threshold:.001,skip:16,nodeInfluenceFactor:1,edgeInfluenceFactor:1,negativeNodeInfluenceFactor:-.5};function tf(c,t,e){var r=!1,n=function(s,l){return t.cells[s+l*t.width]},a=function(s,l){var h=0;return n(s-1,l-1)>=e&&(h+=1),n(s,l-1)>e&&(h+=2),n(s-1,l)>e&&(h+=4),n(s,l)>e&&(h+=8),h},i=function(s,l){for(var h=s,p=l,D,I,F=0;F-1){if(!(c[0].x!==h||c[0].y!==p))return!0}else c.push({x:h,y:p});var Z=a(h,p);switch(Z){case-1:return console.warn("Marched out of bounds"),!0;case 0:case 3:case 2:case 7:h++;break;case 12:case 14:case 4:h--;break;case 6:D===0&&(I===-1?h-=1:h+=1);break;case 1:case 13:case 5:p--;break;case 9:D===1&&(I===0?p-=1:p+=1);break;case 10:case 8:case 11:p++;break;default:return console.warn("Marching squares invalid state: ".concat(Z)),!0}}};this.march=function(){for(var o=0;oe&&a(o,s)!==15&&(r=i(o,s));return r}}var As=function(t,e,r){var n=Math.ceil(t/r),a=Math.ceil(e/r),i=new Float32Array(Math.max(0,n*a)).fill(0);return{cells:i,width:n,height:a}},rf=function(t,e,r){var n=null,a=Number.POSITIVE_INFINITY;return e.forEach(function(i){var o={x:t.getModel().x,y:t.getModel().y},s={x:i.getModel().x,y:i.getModel().y},l=vi(o,s),h=new ga(o.x,o.y,s.x,s.y),p=r.reduce(function(D,I){return Ao(I,h)>0?D+1:D},0);l*Math.pow(p+1,2)=0&&i=1;)Re/=1.5,Oe=xu(F,Re,ee,we),Pe=l(Oe,i)||l(Oe,a),He=h(Oe,e);Oe&&!Pe&&(!we||!He)&&(i.push(new ga(I.x1,I.y1,Oe.x,Oe.y)),i.push(new ga(Oe.x,Oe.y,I.x2,I.y2)),o=!0)};oe(!0),o||oe(!1)}}o||a.push(I),s+=1};!o&&i.length;)p()}for(;i.length;)a.push(i.pop());return a};function hc(c,t,e,r,n){var a=rf(c,e,t);if(a===null)return[];var i=function(p){for(var D=[];p.length>0;){var I=p.pop();if(p.length===0){D.push(I);break}var F=p.pop(),Z=new ga(I.x1,I.y1,F.x2,F.y2),ee=nf(t,Z);ee?(D.push(I),p.push(F)):p.push(Z)}return D},o=new ga(c.getModel().x,c.getModel().y,a.getModel().x,a.getModel().y),s=dc(o,t,r,n),l=i(s);return l}var vc=function(t,e,r){var n=Object.assign(xi,r),a=as(t.map(function(oe){return{x:oe.getModel().x,y:oe.getModel().y}}));t=t.sort(function(oe,ce){return vi({x:oe.getModel().x,y:oe.getModel().y},a)-vi({x:ce.getModel().x,y:ce.getModel().y},a)});var i=[],o=[];t.forEach(function(oe){var ce=hc(oe,e,i,n.maxRoutingIterations,n.morphBuffer);ce.forEach(function(we){o.push(we)}),i.push(oe)});for(var s=af(t,o,n.nodeR0),l=As(s.width,s.height,n.pixelGroupSize),h=[],p=[],D=0;D1)for(F=Math.floor(I.length/n.skip);F<3&&n.skip>1;)n.skip-=1,F=Math.floor(I.length/n.skip);for(var Z=0,ee=0;ee0)n.nonMemberInfluenceFactor*=.8;else break}return p};function af(c,t,e){var r={minX:Number.POSITIVE_INFINITY,minY:Number.POSITIVE_INFINITY,maxX:Number.NEGATIVE_INFINITY,maxY:Number.NEGATIVE_INFINITY,width:0,height:0,x:0,y:0},n=[];c.forEach(function(s){n.push(s.getBBox())}),t.forEach(function(s){n.push(s.getBBox())});for(var a=0,i=n;ar.maxX?o.maxX:r.maxX)+e,r.maxY=(o.maxY>r.maxY?o.maxY:r.maxY)+e}return r.width=r.maxX-r.minX,r.height=r.maxY-r.minY,r.x=r.minX,r.y=r.minY,r}function gc(c,t,e,r,n,a){function i(I,F){var Z=Math.floor((I-F)/a.pixelGroupSize);return Z<0?0:Z}function o(I,F){return I*a.pixelGroupSize+F}var s=(a.nodeR0-a.nodeR1)*(a.nodeR0-a.nodeR1),l=(a.edgeR0-a.edgeR1)*(a.edgeR0-a.edgeR1),h=function(F,Z){var ee=Math.min(i(F.minX,Z+r.minX),n.width),se=Math.min(i(F.minY,Z+r.minY),n.height),oe=Math.min(i(F.maxX,-Z+r.minX),n.width),ce=Math.min(i(F.maxY,-Z+r.minY),n.height);return[ee,se,oe,ce]},p=function(F,Z){for(var ee=F.getBBox(),se=h(ee,a.nodeR1),oe=se[0],ce=se[1],we=se[2],Re=se[3],Oe=ce;Oes.y?r?l.topLeft:l.bottomRight:r?l.topRight:l.bottomLeft:i.yo.x?r?l.topLeft:l.bottomRight:r?l.bottomLeft:l.topRight:a.x0?this.cfg.padding+t:10+t,this.cfg.bubbleCfg={nodeR0:this.padding-t,nodeR1:this.padding-t,morphBuffer:this.padding-t}},c.prototype.setType=function(){this.type=this.cfg.type,this.members.length<3&&(this.type="round-convex"),this.type!=="round-convex"&&this.type!=="smooth-convex"&&this.type!=="bubble"&&(console.warn("The hull type should be either round-convex, smooth-convex or bubble, round-convex is used by default."),this.type="round-convex")},c.prototype.calcPath=function(t,e){var r,n,a;switch(this.type){case"round-convex":r=kf(t),a=ef(r.map(function(i){return[i.x,i.y]}),this.padding),n=(0,mu.tr)(a);break;case"smooth-convex":r=kf(t),r.length===2?(a=ef(r.map(function(i){return[i.x,i.y]}),this.padding),n=(0,mu.tr)(a)):r.length>2&&(a=Nf(r.map(function(i){return[i.x,i.y]}),this.padding),n=ls(a));break;case"bubble":r=vc(t,e,this.cfg.bubbleCfg),n=r.length>=2&&ls(r);break;default:}return n},c.prototype.render=function(){this.group.addShape("path",{attrs:(0,b.__assign)({path:this.path},this.cfg.style),id:this.id,name:this.cfg.id,capture:!1}),this.group.toBack()},c.prototype.addMember=function(t){if(!!t){(0,m.isString)(t)&&(t=this.graph.findById(t)),this.members.push(t);var e=this.nonMembers.indexOf(t);return e>-1&&this.nonMembers.splice(e,1),this.updateData(this.members,this.nonMembers),!0}},c.prototype.addNonMember=function(t){if(!!t){(0,m.isString)(t)&&(t=this.graph.findById(t)),this.nonMembers.push(t);var e=this.members.indexOf(t);return e>-1&&this.members.splice(e,1),this.updateData(this.members,this.nonMembers),!0}},c.prototype.removeMember=function(t){if(!!t){(0,m.isString)(t)&&(t=this.graph.findById(t));var e=this.members.indexOf(t);return e>-1?(this.members.splice(e,1),this.updateData(this.members,this.nonMembers),!0):!1}},c.prototype.removeNonMember=function(t){if(!!t){(0,m.isString)(t)&&(t=this.graph.findById(t));var e=this.nonMembers.indexOf(t);return e>-1?(this.nonMembers.splice(e,1),this.updateData(this.members,this.nonMembers),!0):!1}},c.prototype.updateData=function(t,e){var r=this;this.group.findById(this.id).remove(),t&&(this.members=t.map(function(n){return(0,m.isString)(n)?r.graph.findById(n):n})),e&&(this.nonMembers=e.map(function(n){return(0,m.isString)(n)?r.graph.findById(n):n})),this.path=this.calcPath(this.members,this.nonMembers),this.render()},c.prototype.updateStyle=function(t){var e=this.group.findById(this.id);e.attr((0,b.__assign)({},t))},c.prototype.updateCfg=function(t){var e=this;this.cfg=(0,m.deepMix)(this.cfg,t),this.id=this.cfg.id,this.group=this.cfg.group,t.members&&(this.members=this.cfg.members.map(function(r){return(0,m.isString)(r)?e.graph.findById(r):r})),t.nonMembers&&(this.nonMembers=this.cfg.nonMembers.map(function(r){return(0,m.isString)(r)?e.graph.findById(r):r})),this.setPadding(),this.setType(),this.path=this.calcPath(this.members,this.nonMembers),this.render()},c.prototype.contain=function(t){var e=this,r;(0,m.isString)(t)?r=this.graph.findById(t):r=t;var n,a=r.getKeyShape();if(r.get("type")==="path")n=Eu(a.attr("path"));else{var i=a.getCanvasBBox();n=[[i.minX,i.minY],[i.maxX,i.minY],[i.maxX,i.maxY],[i.minX,i.maxY]]}return n=n.map(function(o){var s=e.graph.getPointByCanvas(o[0],o[1]);return[s.x,s.y]}),zi(n,Eu(this.path))},c.prototype.destroy=function(){this.group.remove(),this.cfg=null},c}(),Rf=pc,ds=q.vs,tl="node",Do=function(c){(0,b.__extends)(t,c);function t(e){var r=c.call(this)||this;return r.sortCombos=(0,m.debounce)(function(){var n=r.get("comboSorted");if(!(!r||r.destroyed||n)){r.set("comboSorted",!0);var a=[],i={},o=r.get("comboTrees");(o||[]).forEach(function(l){Ei(l,function(h){return a[h.depth]?a[h.depth].push(h.id):a[h.depth]=[h.id],i[h.id]=h.depth,!0})});var s=r.getEdges().concat(r.get("vedges"));(s||[]).forEach(function(l){var h=l.getModel(),p=i[h.source]||0,D=i[h.target]||0,I=Math.max(p,D);a[I]?a[I].push(h.id):a[I]=[h.id]}),a.forEach(function(l){if(!(!l||!l.length))for(var h=l.length-1;h>=0;h--){var p=r.findById(l[h]);p&&p.toFront()}})}},500,!1),r.cfg=(0,m.deepMix)(r.getDefaultCfg(),e),r.init(),r.animating=!1,r.destroyed=!1,r.cfg.enabledStack&&(r.undoStack=new ni(r.cfg.maxStep),r.redoStack=new ni(r.cfg.maxStep)),r}return t.prototype.init=function(){this.initCanvas();var e=new u(this),r=new gu(this),n=new lc(this),a=new Is(this);this.set({viewController:e,modeController:r,itemController:n,stateController:a}),this.initLayoutController(),this.initEventController(),this.initGroups(),this.initPlugins()},t.prototype.initGroups=function(){var e=this.get("canvas");if(!!e){var r=e.get("el"),n=(r||{}).id,a=n===void 0?"g6":n,i=e.addGroup({id:"".concat(a,"-root"),className:an.rootContainerClassName});if(this.get("groupByTypes")){var o=i.addGroup({id:"".concat(a,"-edge"),className:an.edgeContainerClassName}),s=i.addGroup({id:"".concat(a,"-node"),className:an.nodeContainerClassName}),l=i.addGroup({id:"".concat(a,"-combo"),className:an.comboContainerClassName});l.toBack(),this.set({nodeGroup:s,edgeGroup:o,comboGroup:l})}var h=i.addGroup({id:"".concat(a,"-delegate"),className:an.delegateContainerClassName});this.set({delegateGroup:h}),this.set("group",i)}},t.prototype.getDefaultCfg=function(){return{container:void 0,width:void 0,height:void 0,renderer:"canvas",modes:{},plugins:[],data:{},fitViewPadding:10,minZoom:.02,maxZoom:10,event:!0,groupByTypes:!0,directed:!1,autoPaint:!0,nodes:[],edges:[],combos:[],vedges:[],itemMap:{},linkCenter:!1,defaultNode:{},defaultEdge:{},nodeStateStyles:{},edgeStateStyles:{},states:{},animate:!1,animateCfg:{onFrame:void 0,duration:500,easing:"easeLinear"},callback:void 0,enabledStack:!1,maxStep:10,tooltips:[],optimizeThreshold:1e3}},t.prototype.set=function(e,r){return(0,m.isPlainObject)(e)?this.cfg=(0,b.__assign)((0,b.__assign)({},this.cfg),e):this.cfg[e]=r,e==="enabledStack"&&r&&!this.undoStack&&!this.redoStack&&(this.undoStack=new ni(this.cfg.maxStep),this.redoStack=new ni(this.cfg.maxStep)),this},t.prototype.get=function(e){var r;return(r=this.cfg)===null||r===void 0?void 0:r[e]},t.prototype.getGroup=function(){return this.get("group")},t.prototype.getContainer=function(){return this.get("container")},t.prototype.getMinZoom=function(){return this.get("minZoom")},t.prototype.setMinZoom=function(e){return this.set("minZoom",e)},t.prototype.getMaxZoom=function(){return this.get("maxZoom")},t.prototype.setMaxZoom=function(e){return this.set("maxZoom",e)},t.prototype.getWidth=function(){return this.get("width")},t.prototype.getHeight=function(){return this.get("height")},t.prototype.clearItemStates=function(e,r){(0,m.isString)(e)&&(e=this.findById(e));var n=this.get("itemController");r||(r=e.get("states")),n.clearItemStates(e,r);var a=this.get("stateController");a.updateStates(e,r,!1)},t.prototype.node=function(e){typeof e=="function"&&this.set("nodeMapper",e)},t.prototype.edge=function(e){typeof e=="function"&&this.set("edgeMapper",e)},t.prototype.combo=function(e){typeof e=="function"&&this.set("comboMapper",e)},t.prototype.findById=function(e){return this.get("itemMap")[e]},t.prototype.find=function(e,r){var n,a=this.get("".concat(e,"s"));return(0,m.each)(a,function(i,o){if(r(i,o))return n=i,n}),n},t.prototype.findAll=function(e,r){var n=[];return(0,m.each)(this.get("".concat(e,"s")),function(a,i){r(a,i)&&n.push(a)}),n},t.prototype.findAllByState=function(e,r,n){return n?this.findAll(e,function(a){return a.hasState(r)&&n(a)}):this.findAll(e,function(a){return a.hasState(r)})},t.prototype.translate=function(e,r,n,a){var i=this,o=this.get("group"),s=(0,m.clone)(o.getMatrix());if(s||(s=[1,0,0,0,1,0,0,0,1]),n){var l=bo({animateCfg:a,callback:function(){return i.emit("viewportchange",{action:"translate",matrix:o.getMatrix()})}});ho(o,{x:o.getCanvasBBox().x+e,y:o.getCanvasBBox().y+r},n,l||{duration:500,easing:"easeCubic"})}else s=ds(s,[["t",e,r]]),o.setMatrix(s),this.emit("viewportchange",{action:"translate",matrix:s}),this.autoPaint()},t.prototype.moveTo=function(e,r,n,a){var i=this.get("group");ho(i,{x:e,y:r},n,a||{duration:500,easing:"easeCubic"}),this.emit("viewportchange",{action:"move",matrix:i.getMatrix()})},t.prototype.fitView=function(e,r,n,a){e&&this.set("fitViewPadding",e);var i=this.get("viewController");r?i.fitViewByRules(r,n,a):i.fitView(n,a),this.autoPaint()},t.prototype.fitCenter=function(e,r){var n=this.get("viewController");n.fitCenter(e,r),this.autoPaint()},t.prototype.addBehaviors=function(e,r){var n=this.get("modeController");return n.manipulateBehaviors(e,r,!0),this},t.prototype.removeBehaviors=function(e,r){var n=this.get("modeController");return n.manipulateBehaviors(e,r,!1),this},t.prototype.updateBehavior=function(e,r,n){var a=this.get("modeController");return a.updateBehavior(e,r,n),this},t.prototype.zoom=function(e,r,n,a){var i=this,o=this.get("group"),s=(0,m.clone)(o.getMatrix())||[1,0,0,0,1,0,0,0,1],l=this.get("minZoom"),h=this.get("maxZoom"),p=this.getZoom()||1,D=p*e,I=e,F=!1;if(l&&Dh&&(I=h/p,F=!0),r?s=ds(s,[["t",-r.x,-r.y],["s",I,I],["t",r.x,r.y]]):s=ds(s,[["s",I,I]]),n){var Z=(0,m.clone)(o.getMatrix());Z||(Z=[1,0,0,0,1,0,0,0,1]);var ee=Z[0],se=ee*I,oe=bo({animateCfg:a,callback:function(){return i.emit("viewportchange",{action:"zoom",matrix:o.getMatrix()})}});o.animate(function(ce){if(ce===1)Z=s;else{var we=da(ee,se,ce)/Z[0];r?Z=ds(Z,[["t",-r.x,-r.y],["s",we,we],["t",r.x,r.y]]):Z=ds(Z,[["s",we,we]])}return{matrix:Z}},oe)}else o.setMatrix(s),this.emit("viewportchange",{action:"zoom",matrix:s}),this.autoPaint();return!F},t.prototype.zoomTo=function(e,r,n,a){var i=e/this.getZoom();return this.zoom(i,r,n,a)},t.prototype.focusItem=function(e,r,n){var a=this.get("viewController"),i=!1;r?i=!0:r===void 0&&(i=this.get("animate"));var o={};n?o=n:n===void 0&&(o=this.get("animateCfg")),a.focus(e,i,o),this.autoPaint()},t.prototype.focusItems=function(e,r,n,a){var i=this.get("viewController");i.focusItems(e,r,n,a)},t.prototype.autoPaint=function(){this.get("autoPaint")&&this.paint()},t.prototype.paint=function(){this.emit("beforepaint"),this.get("canvas").draw(),this.emit("afterpaint")},t.prototype.getPointByClient=function(e,r){var n=this.get("viewController");return n.getPointByClient(e,r)},t.prototype.getClientByPoint=function(e,r){var n=this.get("viewController");return n.getClientByPoint(e,r)},t.prototype.getPointByCanvas=function(e,r){var n=this.get("viewController");return n.getPointByCanvas(e,r)},t.prototype.getCanvasByPoint=function(e,r){var n=this.get("viewController");return n.getCanvasByPoint(e,r)},t.prototype.getGraphCenterPoint=function(){var e=this.get("group").getCanvasBBox();return{x:(e.minX+e.maxX)/2,y:(e.minY+e.maxY)/2}},t.prototype.getViewPortCenterPoint=function(){return this.getPointByCanvas(this.get("width")/2,this.get("height")/2)},t.prototype.showItem=function(e,r){r===void 0&&(r=!0);var n=this.get("itemController"),a=n.changeItemVisibility(e,!0);if(r&&this.get("enabledStack")){var i=a.getID(),o=a.getType(),s={},l={};switch(o){case"node":s.nodes=[{id:i,visible:!1}],l.nodes=[{id:i,visible:!0}];break;case"edge":s.nodes=[{id:i,visible:!1}],l.edges=[{id:i,visible:!0}];break;case"combo":s.nodes=[{id:i,visible:!1}],l.combos=[{id:i,visible:!0}];break;default:break}this.pushStack("visible",{before:s,after:l})}},t.prototype.hideItem=function(e,r){r===void 0&&(r=!0);var n=this.get("itemController"),a=n.changeItemVisibility(e,!1);if(r&&this.get("enabledStack")){var i=a.getID(),o=a.getType(),s={},l={};switch(o){case"node":s.nodes=[{id:i,visible:!0}],l.nodes=[{id:i,visible:!1}];break;case"edge":s.nodes=[{id:i,visible:!0}],l.edges=[{id:i,visible:!1}];break;case"combo":s.nodes=[{id:i,visible:!0}],l.combos=[{id:i,visible:!1}];break;default:break}this.pushStack("visible",{before:s,after:l})}},t.prototype.refreshItem=function(e){var r=this.get("itemController");r.refreshItem(e)},t.prototype.setAutoPaint=function(e){var r=this;r.set("autoPaint",e);var n=r.get("canvas");n.set("autoDraw",e)},t.prototype.remove=function(e,r){r===void 0&&(r=!0),this.removeItem(e,r)},t.prototype.removeItem=function(e,r){r===void 0&&(r=!0);var n=e;if((0,m.isString)(e)&&(n=this.findById(e)),!n&&(0,m.isString)(e))console.warn("The item ".concat(e," to be removed does not exist!"));else if(n){var a="";if(n.getType&&(a=n.getType()),r&&this.get("enabledStack")){var i=(0,b.__assign)((0,b.__assign)({},n.getModel()),{itemType:a}),o={};switch(a){case"node":{o.nodes=[i],o.edges=[];for(var s=n.getEdges(),l=s.length-1;l>=0;l--)o.edges.push((0,b.__assign)((0,b.__assign)({},s[l].getModel()),{itemType:"edge"}));break}case"edge":o.edges=[i];break;case"combo":o.combos=[i];break;default:break}this.pushStack("delete",{before:o,after:{}})}if(a==="node"){var h=n.getModel();h.comboId&&this.updateComboTree(n,void 0,!1)}var p=this.get("itemController");if(p.removeItem(n),a==="combo"){var D=ss(this.get("comboTrees"));this.set("comboTrees",D)}}},t.prototype.innerAddItem=function(e,r,n){if(!Zu(e,r))return!1;if(r.id&&this.findById(r.id)){console.warn("This item exists already. Be sure the id %c".concat(r.id,"%c is unique."),"font-size: 20px; color: red;","");return}var a,i=this.get("comboTrees")||[];if(e==="combo"){var o=this.get("itemMap"),s=!1;if(i.forEach(function(F){s||Ki(F,function(Z){if(r.parentId===Z.id){s=!0;var ee=(0,b.__assign)({id:r.id,depth:Z.depth+2},r);Z.children?Z.children.push(ee):Z.children=[ee],r.depth=ee.depth,a=n.addItem(e,r)}var se=o[Z.id];return s&&se&&se.getType&&se.getType()==="combo"&&n.updateCombo(se,Z.children),!0})}),!s){var l=(0,b.__assign)({id:r.id,depth:0},r);r.depth=l.depth,i.push(l),a=n.addItem(e,r)}this.set("comboTrees",i),r.collapsed&&(this.collapseCombo(a,!1),this.updateCombo(a))}else if(e==="node"&&(0,m.isString)(r.comboId)&&i){var h=this.findById(r.comboId);h&&h.getType&&h.getType()!=="combo"&&console.warn("'".concat(r.comboId,"' is not a id of a combo in the graph, the node will be added without combo.")),a=n.addItem(e,r);var p=this.get("itemMap"),D=!1,I=!1;i.forEach(function(F){I||D||Ki(F,function(Z){if(Z.id===r.id)return I=!0,!1;if(r.comboId===Z.id&&!I){D=!0;var ee=(0,m.clone)(r);ee.itemType="node",Z.children?Z.children.push(ee):Z.children=[ee],ee.depth=Z.depth+1}return D&&p[Z.id].getType&&p[Z.id].getType()==="combo"&&n.updateCombo(p[Z.id],Z.children),!0})})}else a=n.addItem(e,r);if(e==="node"&&r.comboId||e==="combo"&&r.parentId){var h=this.findById(r.comboId||r.parentId);h&&h.getType&&h.getType()==="combo"&&h.addChild(a)}return a},t.prototype.addItem=function(e,r,n,a){n===void 0&&(n=!0),a===void 0&&(a=!0);var i=this.get("comboSorted");this.set("comboSorted",i&&!a);var o=this.get("itemController"),s=this.innerAddItem(e,r,o);if(s===!1||s===!0)return s;var l=this.get("combos");if(l&&l.length>0&&this.sortCombos(),this.autoPaint(),n&&this.get("enabledStack")){var h=(0,b.__assign)((0,b.__assign)({},s.getModel()),{itemType:e}),p={};switch(e){case"node":p.nodes=[h];break;case"edge":p.edges=[h];break;case"combo":p.combos=[h];break;default:break}this.pushStack("add",{before:{},after:p})}return s},t.prototype.addItems=function(e,r,n){e===void 0&&(e=[]),r===void 0&&(r=!0),n===void 0&&(n=!0);var a=this.get("comboSorted");this.set("comboSorted",a&&!n);for(var i=this.get("itemController"),o=[],s=0;s0&&this.sortCombos()}if(this.autoPaint(),r&&this.get("enabledStack")){for(var p={nodes:[],edges:[],combos:[]},s=0;s=0;ee--)F[ee].destroyed&&F.splice(ee,1);D&&(i.addCombos(D),this.get("groupByTypes")||this.sortCombos()),this.diffItems("edge",p,o.edges),(0,m.each)(h,function(oe,ce){oe.getType&&(oe.getType()==="node"||oe.getType()==="combo")||p.edges.indexOf(oe)<0&&(delete h[ce],i.remove(oe,!1))}),(this.get("comboTrees")||[]).forEach(function(oe){Ki(oe,function(ce){var we=n.findById(ce.id);return we.getType()==="combo"&&ce.collapsed&&n.collapseCombo(ce.id,!1),!0})}),this.set({nodes:p.nodes,edges:p.edges});var se=this.get("layoutController");return se&&(se.changeData(function(){setTimeout(function(){var oe;(oe=i.getCombos())===null||oe===void 0||oe.forEach(function(ce){ce.set("animate",!0)})},0)}),i.get("animate")&&!se.getLayoutType()?(i.positionsAnimate(),(a=i.getCombos())===null||a===void 0||a.forEach(function(oe){return oe.set("animate",!0)})):i.autoPaint()),setTimeout(function(){s.set("localRefresh",l)},16),this.set("data",o),this.emit("afterchangedata"),this},t.prototype.addCombos=function(e){var r=this,n=r.get("comboTrees"),a=this.get("itemController");a.addCombos(n,e)},t.prototype.createCombo=function(e,r,n){var a=this;n===void 0&&(n=!0);var i=this.get("itemController");this.set("comboSorted",!1);var o="",s;if(!!e){if((0,m.isString)(e))o=e,s={id:e};else{if(o=e.id,!o){console.warn("Create combo failed. Please assign a unique string id for the adding combo.");return}s=e}var l=n&&this.get("enabledStack"),h={nodes:[],combos:[]};l&&r.forEach(function(se){var oe=a.findById(se),ce=oe.getType();if(!(ce!=="node"&&ce!=="combo")){var we=oe.getModel();h["".concat(ce,"s")].push({id:se,parentId:ce==="node"?we.comboId:we.parentId})}});var p=this.get("comboTrees"),D=new Set(r),I=new Map;p&&(p.forEach(function(se){Ki(se,function(oe,ce,we){if(D.has(oe.id)){if(ce){var Re=a.findById(ce.id),Oe=a.findById(oe.id);ce.children.splice(we,1),Re.removeChild(Oe),i.updateCombo(Re,ce.children)}oe.itemType==="combo"&&I.set(oe.id,oe)}return!0})}),p=p.filter(function(se){return!D.has(se.id)}),this.set("comboTrees",p));var F={nodes:[],combos:[]},Z=r.map(function(se){var oe=a.findById(se),ce=oe.getModel(),we="";oe.getType&&(we=oe.getType());var Re=I.get(se)||{id:oe.getID(),itemType:we};return we==="combo"?(Re.parentId=o,ce.parentId=o):we==="node"&&(Re.comboId=o,ce.comboId=o),l&&F["".concat(we,"s")].push({id:ce.id,parentId:o}),Re});s.children=Z,this.addItem("combo",s,!1),this.set("comboSorted",!1),p&&(p.forEach(function(se){Ei(se,function(oe){return oe.id===o?(oe.itemType="combo",oe.children=Z,!1):!0})}),this.sortCombos()),l&&(F.combos.push(s),this.pushStack("createCombo",{before:h,after:F}));var ee=this.findById(o);!ee.getModel().parentId&&ee.getChildren().combos.length&&this.updateComboTree(ee,void 0,!1)}},t.prototype.uncombo=function(e,r){var n=this,a,i;r===void 0&&(r=!0);var o=this,s=e;if((0,m.isString)(e)&&(s=this.findById(e)),!s||s.getType&&s.getType()!=="combo"){console.warn("The item is not a combo!");return}var l=s.getModel(),h=s.getModel().parentId,p=o.get("comboTrees");p||(p=[]);var D=this.get("itemMap"),I=s.get("id"),F,Z=[],ee=this.get("combos"),se=this.findById(h),oe=r&&this.get("enabledStack"),ce={};if(oe&&(ce=(0,m.clone)(l),ce.children=[]),p.forEach(function(Pe){F||Ki(Pe,function(He){var at;if(He.id===I){F=He;var qe=s.getEdges().map(function(yr){return yr.getID()});qe.forEach(function(yr){n.removeItem(yr,!1)});var yt=ee.indexOf(s);ee.splice(yt,1),delete D[I];var Ft=(0,m.clone)(s.getModel());s.destroy(),n.emit("afterremoveitem",{item:Ft,type:"combo"})}if(h&&F&&He.id===h){se.removeCombo(s),Z=He.children;var yt=Z.indexOf(F);return yt!==-1&&Z.splice(yt,1),(at=F.children)===null||at===void 0||at.forEach(function(fr){var lr=n.findById(fr.id),Kt=lr.getModel();lr.getType&&lr.getType()==="combo"?(fr.parentId=h,delete fr.comboId,Kt.parentId=h,delete Kt.comboId):lr.getType&&lr.getType()==="node"&&(fr.comboId=h,Kt.comboId=h),se.addChild(lr),Z.push(fr)}),n.updateCombo(se),!1}return!0})}),!h&&F){var we=p.indexOf(F);p.splice(we,1),(a=F.children)===null||a===void 0||a.forEach(function(Pe){Pe.parentId=void 0;var He=n.findById(Pe.id).getModel();delete He.parentId,delete He.comboId,Pe.itemType!=="node"&&p.push(Pe)})}if(oe){var Re={nodes:[],combos:[]},Oe={nodes:[],combos:[]};(i=F.children)===null||i===void 0||i.forEach(function(Pe){var He=n.findById(Pe.id),at=He.getType();at!=="node"&&at!=="combo"||(Re["".concat(at,"s")].push({id:Pe.id,parentId:I}),Oe["".concat(at,"s")].push({id:Pe.id,parentId:h}))}),Re.combos.push(ce),this.pushStack("uncombo",{before:Re,after:Oe})}},t.prototype.updateCombos=function(e){var r=this;e===void 0&&(e=!1);var n=this,a=this.get("comboTrees"),i=n.get("itemController"),o=n.get("itemMap");(a||[]).forEach(function(s){Ki(s,function(l){var h;if(!l)return!0;var p=o[l.id];if(((h=p==null?void 0:p.getType)===null||h===void 0?void 0:h.call(p))==="combo"){var D=(0,b.__spreadArray)([],p.getStates(),!0);(0,m.each)(D,function(I){return r.setItemState(p,I,!1)}),i.updateCombo(p,l.children,e),(0,m.each)(D,function(I){return r.setItemState(p,I,!0)})}return!0})}),n.sortCombos()},t.prototype.updateCombo=function(e){var r=this,n=this,a=e,i;if((0,m.isString)(e)&&(a=this.findById(e)),!a||a.getType&&a.getType()!=="combo"){console.warn("The item to be updated is not a combo!");return}i=a.get("id");var o=this.get("comboTrees"),s=n.get("itemController"),l=n.get("itemMap");(o||[]).forEach(function(h){Ki(h,function(p){if(!p)return!0;var D=l[p.id];if(i===p.id&&D&&D.getType&&D.getType()==="combo"){var I=(0,b.__spreadArray)([],D.getStates(),!0);(0,m.each)(I,function(F){D.getStateStyle(F)&&r.setItemState(D,F,!1)}),s.updateCombo(D,p.children),(0,m.each)(I,function(F){D.getStateStyle(F)&&r.setItemState(D,F,!0)}),i&&(i=p.parentId)}return!0})})},t.prototype.updateComboTree=function(e,r,n){n===void 0&&(n=!0);var a=this;this.set("comboSorted",!1);var i;(0,m.isString)(e)?i=a.findById(e):i=e;var o=i.getModel(),s=o.comboId||o.parentId,l="";if(i.getType&&(l=i.getType()),r&&l==="combo"){var h=this.get("comboTrees"),p=!0,D;if((h||[]).forEach(function(oe){D||Ei(oe,function(ce){if(!D)return ce.id===i.getID()&&(D=ce),!0})}),Ei(D,function(oe){return oe.id===r?(p=!1,!1):!0}),!p){console.warn("Failed to update the combo tree! The parentId points to a descendant of the combo!");return}}if(n&&this.get("enabledStack")){var I={},F={};l==="combo"?(I.combos=[{id:o.id,parentId:o.parentId}],F.combos=[{id:o.id,parentId:r}]):l==="node"&&(I.nodes=[{id:o.id,parentId:o.comboId}],F.nodes=[{id:o.id,parentId:r}]),this.pushStack("updateComboTree",{before:I,after:F})}if(o.parentId||o.comboId){var Z=this.findById(o.parentId||o.comboId);Z&&Z.removeChild(i)}if(l==="combo"?o.parentId=r:l==="node"&&(o.comboId=r),r){var ee=this.findById(r);ee&&ee.addChild(i)}if(s){var ee=this.findById(s);ee&&ee.removeChild(i)}var se=ss(this.get("comboTrees"),o.id,r);this.set("comboTrees",se),this.updateCombos()},t.prototype.save=function(){var e=[],r=[],n=[];return(0,m.each)(this.get("nodes"),function(a){e.push(a.getModel())}),(0,m.each)(this.get("edges"),function(a){r.push(a.getModel())}),(0,m.each)(this.get("combos"),function(a){n.push(a.getModel())}),{nodes:e,edges:r,combos:n}},t.prototype.changeSize=function(e,r){var n=this.get("viewController");return n.changeSize(e,r),this},t.prototype.refresh=function(){var e=this;if(e.emit("beforegraphrefresh"),e.get("animate"))e.positionsAnimate();else{var r=e.get("nodes"),n=e.get("edges"),a=e.get("edges");(0,m.each)(r,function(i){i.refresh()}),(0,m.each)(n,function(i){i.refresh()}),(0,m.each)(a,function(i){i.refresh()})}e.emit("aftergraphrefresh"),e.autoPaint()},t.prototype.getNodes=function(){return this.get("nodes")},t.prototype.getEdges=function(){return this.get("edges")},t.prototype.getCombos=function(){return this.get("combos")},t.prototype.getComboChildren=function(e){if((0,m.isString)(e)&&(e=this.findById(e)),!e||e.getType&&e.getType()!=="combo"){console.warn("The combo does not exist!");return}return e.getChildren()},t.prototype.positionsAnimate=function(e){var r=this;r.emit("beforeanimate");var n=r.get("animateCfg"),a=n.onFrame,i=e?r.getNodes().concat(r.getCombos()):r.getNodes(),o=i.map(function(l){var h=l.getModel();return{id:h.id,x:h.x,y:h.y}});r.stopAnimate();var s=r.get("canvas");r.animating=!0,s.animate(function(l){(0,m.each)(o,function(h){var p=r.findById(h.id);if(!(!p||p.destroyed)){var D=p.get("originAttrs"),I=p.get("model"),F=p.getContainer().getMatrix();if(D==null&&(F&&(D={x:F[6],y:F[7]}),p.set("originAttrs",D||0)),a){var Z=a(p,l,h,D||{x:0,y:0});p.set("model",Object.assign(I,Z))}else D?(I.x=D.x+(h.x-D.x)*l,I.y=D.y+(h.y-D.y)*l):(I.x=h.x,I.y=h.y)}}),r.refreshPositions(e)},{duration:n.duration,easing:n.easing,callback:function(){(0,m.each)(i,function(h){h.set("originAttrs",null)}),n.callback&&n.callback(),r.emit("afteranimate"),r.animating=!1}})},t.prototype.refreshPositions=function(e){var r=this;r.emit("beforegraphrefreshposition");var n=r.get("nodes"),a=r.get("edges"),i=r.get("vedges"),o=r.get("combos"),s,l={},h=function(D){(0,m.each)(D,function(I){s=I.getModel();var F=I.get("originAttrs");if(!(F&&s.x===F.x&&s.y===F.y)){var Z=I.updatePosition({x:s.x,y:s.y});l[s.id]=Z,s.comboId&&(l[s.comboId]=l[s.comboId]||Z),s.parentId&&(l[s.parentId]=l[s.parentId]||Z)}})};h(o),h(n),o&&o.length!==0&&(e&&h(o),r.updateCombos()),(0,m.each)(a,function(p){var D=p.getSource().getModel(),I=p.getTarget();if(!(0,m.isPlainObject)(I)){var F=I.getModel();(l[D.id]||l[F.id]||p.getModel().isComboEdge)&&p.refresh()}}),(0,m.each)(i,function(p){p.refresh()}),r.emit("aftergraphrefreshposition"),r.autoPaint()},t.prototype.stopAnimate=function(){this.isAnimating()&&this.get("canvas").stopAnimate()},t.prototype.isAnimating=function(){return this.animating},t.prototype.getZoom=function(){var e=this.get("group").getMatrix();return e?e[0]:1},t.prototype.getCurrentMode=function(){var e=this.get("modeController");return e.getMode()},t.prototype.setMode=function(e){var r=this.get("modeController");return r.setMode(e),this},t.prototype.clear=function(e){var r;return e===void 0&&(e=!1),(r=this.get("canvas"))===null||r===void 0||r.clear(),this.initGroups(),this.set({itemMap:{},nodes:[],edges:[],vedges:[],groups:[],combos:[],comboTrees:[]}),e||this.emit("afterrender"),this},t.prototype.updateLayout=function(e,r,n,a){var i=this;e===void 0&&(e={}),a===void 0&&(a=!0);var o=this.get("layoutController");if((0,m.isString)(e)&&(e={type:e}),r){var s=n;s||(r==="begin"?s={x:0,y:0}:s={x:this.getWidth()/2,y:this.getHeight()/2}),s=this.getPointByCanvas(s.x,s.y);var l=["force","gForce","fruchterman","force2"];l.includes(e.type)||!e.type&&l.includes(o==null?void 0:o.layoutType)?e.center=[s.x,s.y]:this.once("afterlayout",function(D){var I=i.getGroup().getMatrix()||[1,0,0,0,1,0,0,0,1];s.x=s.x*I[0]+I[6],s.y=s.y*I[0]+I[7];var F=i.getGroup().getCanvasBBox(),Z=F.minX,ee=F.maxX,se=F.minY,oe=F.maxY,ce={x:(Z+ee)/2,y:(se+oe)/2};r==="begin"&&(ce.x=Z,ce.y=se),i.translate(s.x-ce.x,s.y-ce.y)})}var h=(0,b.__assign)({},this.get("layout")),p={};Object.assign(p,h,e),e.pipes&&!e.type?delete p.type:!e.pipes&&p.type&&delete p.pipes,this.set("layout",p),!!o&&(o.isLayoutTypeSame(p)&&p.gpuEnabled===h.gpuEnabled?o.updateLayoutCfg(p):o.changeLayout(p),a&&this.get("enabledStack")&&this.pushStack("layout",{before:h,after:p}))},t.prototype.destroyLayout=function(){var e=this.get("layoutController");e==null||e.destroyLayout()},t.prototype.layout=function(){var e,r=this.get("layoutController"),n=this.get("layout");if(!(!n||!r)){if(n.workerEnabled){r.layout();return}((e=r.layoutMethods)===null||e===void 0?void 0:e.length)?r.relayout(!0):r.layout()}},t.prototype.collapseCombo=function(e,r){var n=this;if(r===void 0&&(r=!0),!this.destroyed){if((0,m.isString)(e)&&(e=this.findById(e)),!e){console.warn("The combo to be collapsed does not exist!");return}this.emit("beforecollapseexpandcombo",{action:"expand",item:e});var a=e.getModel(),i=this.get("itemController");i.collapseCombo(e,r),a.collapsed=!0;var o=this.getEdges().concat(this.get("vedges")),s=[],l=this.get("comboTrees"),h=!1;(l||[]).forEach(function(D){h||Ei(D,function(I){if(h&&I.depth<=a.depth)return!1;if(a.id===I.id&&(h=!0),h){var F=n.findById(I.id);F&&F.getType&&F.getType()==="combo"&&(s=s.concat(F.getNodes()),s=s.concat(F.getCombos()))}return!0})});var p={};o.forEach(function(D){var I=D.getModel(),F=I.isVEdge,Z=I.size,ee=Z===void 0?1:Z;if(!(D.isVisible()&&!F)){var se=D.getSource(),oe=D.getTarget(),ce=null,we;if(se.getModel().id===a.id||s.includes(se)&&!s.includes(oe)?(ce=oe,we=!1):(oe.getModel().id===a.id||!s.includes(se)&&s.includes(oe))&&(ce=se,we=!0),ce){if(F){n.removeItem(D,!1);return}for(var Re=ce.getModel();!ce.isVisible();){var Oe=Re.parentId,Pe=Re.comboId,He=Oe||Pe;if(ce=n.findById(He),!ce||!He)return;Re=ce.getModel()}var at=Re.id,qe=we?{source:at,target:a.id,size:ee,isVEdge:!0}:{source:a.id,target:at,size:ee,isVEdge:!0},yt="".concat(qe.source,"-").concat(qe.target);if(p[yt]){p[yt].size+=ee;return}p[yt]=qe}}}),this.addItems(Object.values(p).map(function(D){return{type:"vedge",model:D}}),!1),this.emit("aftercollapseexpandcombo",{action:"collapse",item:e})}},t.prototype.expandCombo=function(e,r){var n=this;if(r===void 0&&(r=!0),(0,m.isString)(e)&&(e=this.findById(e)),!e||e.getType&&e.getType()!=="combo"){console.warn("The combo to be collapsed does not exist!");return}this.emit("beforecollapseexpandcombo",{action:"expand",item:e});var a=e.getModel(),i=this.get("itemController");i.expandCombo(e,r),a.collapsed=!1;var o=this.getEdges().concat(this.get("vedges")),s=[],l=this.get("comboTrees"),h=!1;(l||[]).forEach(function(D){h||Ei(D,function(I){if(h&&I.depth<=a.depth)return!1;if(a.id===I.id&&(h=!0),h){var F=n.findById(I.id);F&&F.getType&&F.getType()==="combo"&&(s=s.concat(F.getNodes()),s=s.concat(F.getCombos()))}return!0})});var p={};o.forEach(function(D){if(!(D.isVisible()&&!D.getModel().isVEdge)){var I=D.getSource(),F=D.getTarget(),Z=I.get("id"),ee=F.get("id"),se=null,oe;if(Z===a.id||s.includes(I)&&!s.includes(F)?(se=F,oe=!1):ee===a.id||!s.includes(I)&&s.includes(F)?(se=I,oe=!0):s.includes(I)&&s.includes(F)&&I.isVisible()&&F.isVisible()&&D.show(),se){var ce=D.getModel(),we=ce.isVEdge,Re=ce.size,Oe=Re===void 0?1:Re;if(we){n.removeItem(D,!1);return}for(var Pe=se.getModel();!se.isVisible();){var He=Pe.parentId,at=Pe.comboId,qe=He||at;if(se=n.findById(qe),!se||!qe)return;Pe=se.getModel()}for(var yt=Pe.id,Ft=oe?F:I,yr=Ft.getModel();!Ft.isVisible();){var fr=yr.parentId,lr=yr.comboId,Kt=fr||lr;if(Ft=n.findById(Kt),!Ft||!Kt)return;if(yr.comboId===a.id||yr.parentId===a.id)break;yr=Ft.getModel()}var jr=yr.id;if(yt){var Xr=oe?{source:yt,target:jr,isVEdge:!0,size:Oe}:{source:jr,target:yt,isVEdge:!0,size:Oe},er="".concat(Xr.source,"-").concat(Xr.target);if(p[er]){p[er].size+=Oe;return}p[er]=Xr}}}}),this.addItems(Object.values(p).map(function(D){return{type:"vedge",model:D}}),!1),this.emit("aftercollapseexpandcombo",{action:"expand",item:e})},t.prototype.collapseExpandCombo=function(e,r){if(r===void 0&&(r=!0),(0,m.isString)(e)&&(e=this.findById(e)),!(!e||e.getType&&e.getType()!=="combo")){for(var n=e.getModel(),a=this.findById(n.parentId);a;){var i=a.getModel();if(i.collapsed){console.warn("Fail to expand the combo since it's ancestor combo is collapsed."),a=void 0;return}a=this.findById(i.parentId)}var o=n.collapsed;o?this.expandCombo(e,r):this.collapseCombo(e,r),this.updateCombo(e)}},t.prototype.getNeighbors=function(e,r){var n=e;return(0,m.isString)(e)&&(n=this.findById(e)),n.getNeighbors(r)},t.prototype.getNodeDegree=function(e,r,n){r===void 0&&(r=void 0),n===void 0&&(n=!1);var a=e;(0,m.isString)(e)&&(a=this.findById(e));var i=this.get("degrees");(!i||n)&&(i=St(this.save()),this.set("degrees",i));var o=i[a.getID()],s=0;if(!o)return 0;switch(r){case"in":s=o.inDegree;break;case"out":s=o.outDegree;break;case"all":s=o;break;default:s=o.degree;break}return s},t.prototype.getUndoStack=function(){return this.undoStack},t.prototype.getRedoStack=function(){return this.redoStack},t.prototype.getStackData=function(){return this.get("enabledStack")?{undoStack:this.undoStack.toArray(),redoStack:this.redoStack.toArray()}:null},t.prototype.clearStack=function(){this.get("enabledStack")&&(this.undoStack.clear(),this.redoStack.clear(),this.emit("stackchange",{undoStack:this.undoStack,redoStack:this.redoStack}))},t.prototype.pushStack=function(e,r,n){if(e===void 0&&(e="update"),n===void 0&&(n="undo"),!this.get("enabledStack")){console.warn("\u8BF7\u5148\u542F\u7528 undo & redo \u529F\u80FD\uFF0C\u5728\u5B9E\u4F8B\u5316 Graph \u65F6\u5019\u914D\u7F6E enabledStack: true !");return}var a=r?(0,m.clone)(r):{before:{},after:(0,m.clone)(this.save())};n==="redo"?this.redoStack.push({action:e,data:a}):this.undoStack.push({action:e,data:a}),this.emit("stackchange",{action:e,stackType:n,undoStack:this.undoStack,redoStack:this.redoStack})},t.prototype.getAdjMatrix=function(e,r){e===void 0&&(e=!0),r===void 0&&(r=this.get("directed"));var n=this.get("adjMatrix");return(!n||!e)&&(n=te(this.save(),r),this.set("adjMatrix",n)),n},t.prototype.getShortestPathMatrix=function(e,r){e===void 0&&(e=!0),r===void 0&&(r=this.get("directed"));var n=this.get("adjMatrix"),a=this.get("shortestPathMatrix");return(!n||!e)&&(n=te(this.save(),r),this.set("adjMatrix",n)),(!a||!e)&&(a=Gn(this.save(),r),this.set("shortestPathMatrix",a)),a},t.prototype.on=function(e,r,n){return c.prototype.on.call(this,e,r,n)},t.prototype.destroy=function(){var e,r,n,a,i;this.clear(),this.clearStack(),(e=this.get("itemController"))===null||e===void 0||e.destroy(),(r=this.get("modeController"))===null||r===void 0||r.destroy(),(n=this.get("viewController"))===null||n===void 0||n.destroy(),(a=this.get("stateController"))===null||a===void 0||a.destroy(),(i=this.get("canvas"))===null||i===void 0||i.destroy(),this.cfg=null,this.destroyed=!0,this.redoStack=null,this.undoStack=null},t.prototype.createHull=function(e){if(!e.members||e.members.length<1){console.warn("Create hull failed! The members is empty.");return}var r=this.get("hullGroup"),n=this.get("hullMap");if(n||(n={},this.set("hullMap",n)),(!r||r.get("destroyed"))&&(r=this.get("group").addGroup({id:"hullGroup"}),r.toBack(),this.set("hullGroup",r)),n[e.id])return console.warn("Existed hull id."),n[e.id];var a=r.addGroup({id:"".concat(e.id,"-container")}),i=new Rf(this,(0,b.__assign)((0,b.__assign)({},e),{group:a})),o=i.id;return n[o]=i,i},t.prototype.getHulls=function(){return this.get("hullMap")},t.prototype.getHullById=function(e){return this.get("hullMap")[e]},t.prototype.removeHull=function(e){var r,n;(0,m.isString)(e)?n=this.getHullById(e):n=e,(r=this.get("hullMap"))===null||r===void 0||delete r[n.id],n.destroy()},t.prototype.removeHulls=function(){var e=this.getHulls();!e||!Object.keys(e).length||(Object.keys(e).forEach(function(r){var n=e[r];n.destroy()}),this.set("hullMap",{}))},t}(Q.Z),Bf=Do;function hs(c){return hs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hs(c)}var Ls=q.vs,yc="-shape",wu="-label",Ds=["startArrow","endArrow"],mc={lineWidth:1,stroke:void 0,fill:void 0,lineAppendWidth:1,opacity:void 0,strokeOpacity:void 0,fillOpacity:void 0,x:0,y:0,r:10,width:20,height:20,shadowColor:void 0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0},rl={lineWidth:1,stroke:"#000",lineDash:void 0,startArrow:!1,endArrow:!1,opacity:void 0,strokeOpacity:void 0,fillOpacity:void 0,shadowColor:void 0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0},of={edge:rl,node:mc,combo:mc},Ff="-label-bg",Gf={options:{labelCfg:{style:{fontFamily:an.windowFontFamily}},descriptionCfg:{style:{fontFamily:an.windowFontFamily}}},itemType:"",type:"",getCustomConfig:function(t){return{}},getOptions:function(t,e){return e==="move"||(e==null?void 0:e.includes("bbox"))?t:(0,m.deepMix)({},this.options,this.getCustomConfig(t)||{},t)},draw:function(t,e){e.shapeMap={},this.mergeStyle=this.getOptions(t);var r=this.drawShape(t,e);if(r.set("className",this.itemType+yc),e.shapeMap[this.itemType+yc]=r,t.label){var n=this.drawLabel(t,e);n.set("className",this.itemType+wu),e.shapeMap[this.itemType+wu]=n}return r},afterDraw:function(t,e,r){},drawShape:function(t,e){return null},drawLabel:function(t,e){var r=(this.mergeStyle||this.getOptions(t)||{}).labelCfg,n=r||{},a=this.getLabelStyle(t,n,e),i=a.rotate;delete a.rotate;var o=e.addShape("text",{attrs:a,draggable:!0,className:"text-shape",name:"text-shape",labelRelated:!0});if(e.shapeMap["text-shape"]=o,!isNaN(i)&&i!==""){var s=o.getBBox(),l=[1,0,0,0,1,0,0,0,1];if(a.rotateCenter)switch(a.rotateCenter){case"center":l=Ls(l,[["t",-s.width/2,-s.height/2],["r",i],["t",s.width/2,s.height/2]]);break;case"lefttop":l=Ls(l,[["t",-a.x,-a.y],["r",i],["t",a.x,a.y]]);break;case"leftcenter":l=Ls(l,[["t",-a.x,-a.y-s.height/2],["r",i],["t",a.x,a.y+s.height/2]]);break;default:l=Ls(l,[["t",-s.width/2,-s.height/2],["r",i],["t",s.width/2,s.height/2]]);break}else l=Ls(l,[["t",-a.x,-a.y-s.height/2],["r",i],["t",a.x,a.y+s.height/2]]);o.setMatrix(l)}if(a.background){var h=this.drawLabelBg(t,e,o),p=this.itemType+Ff;h.set("classname",p),e.shapeMap[p]=h,o.toFront()}return o},drawLabelBg:function(t,e,r){var n=this.options.labelCfg,a=(0,m.mix)({},n,t.labelCfg),i=this.getLabelBgStyleByPosition(r,a),o=e.addShape("rect",{name:"text-bg-shape",attrs:i,labelRelated:!0});return e.shapeMap["text-bg-shape"]=o,o},getLabelStyleByPosition:function(t,e,r){return{text:t.label}},getLabelBgStyleByPosition:function(t,e){return{}},getLabelStyle:function(t,e,r){var n=this.getLabelStyleByPosition(t,e,r),a="".concat(this.itemType,"Label"),i=an[a]?an[a].style:null;return(0,b.__assign)((0,b.__assign)((0,b.__assign)({},i),n),e.style)},getShapeStyle:function(t){return t.style},update:function(t,e,r){this.updateShapeStyle(t,e,r),this.updateLabel(t,e,r)},updateShapeStyle:function(t,e,r){var n,a=e.getContainer(),i=e.getKeyShape(),o=(0,m.mix)({},i.attr(),t.style),s=function(p){var D,I=o[p];if((0,m.isPlainObject)(I)){var F=((n=a.shapeMap)===null||n===void 0?void 0:n[p])||a.find(function(Z){return Z.get("name")===p});F==null||F.attr(I)}else i.attr((D={},D[p]=I,D))};for(var l in o)s(l)},updateLabel:function(t,e,r){var n,a;if(t.label||t.label===""){var i=e.getContainer(),o=(this.mergeStyle||this.getOptions({},r)||{}).labelCfg,s=o===void 0?{}:o,l=this.itemType+wu,h=i.shapeMap[l]||i.find(function(we){return we.get("className")===l}),p=this.itemType+Ff,D=i.shapeMap[p]||i.find(function(we){return we.get("className")===p});if(h){(!r||r==="bbox|label"||this.itemType==="edge"&&r!=="style")&&(s=(0,m.deepMix)(s,t.labelCfg));var F=this.getLabelStyleByPosition(t,s,i),Z=(n=t.labelCfg)===null||n===void 0?void 0:n.style,ee=(0,b.__assign)((0,b.__assign)({},F),Z),se=ee.rotate;if(delete ee.rotate,!isNaN(se)&&se!==""){var oe=[1,0,0,0,1,0,0,0,1];oe=Ls(oe,[["t",-ee.x,-ee.y],["r",se],["t",ee.x,ee.y]]),ee.matrix=oe,h.attr(ee)}else((a=h.getMatrix())===null||a===void 0?void 0:a[4])!==1&&h.resetMatrix(),h.attr(ee);if(!D)ee.background&&(D=this.drawLabelBg(t,i,h),D.set("classname",p),i.shapeMap[p]=D,h.toFront());else if(ee.background){var ce=this.getLabelBgStyleByPosition(h,s);D.attr(ce)}else i.removeChild(D)}else{var I=this.drawLabel(t,i);I.set("className",l),i.shapeMap[l]=I}}},afterUpdate:function(t,e){},setState:function(t,e,r){var n,a,i,o=r.get("keyShape");if(!(!o||o.destroyed)){var s=r.getType(),l=(0,m.isBoolean)(e)?t:"".concat(t,":").concat(e),h=this.getStateStyle(l,r),p=r.getStateStyle(l);if(!(!p&&!h)){var D=(0,m.mix)({},p||h),I=r.getContainer(),F={x:1,y:1,cx:1,cy:1,matrix:1};if(s==="combo"&&(F.r=1,F.width=1,F.height=1),e){var Z=function(Kt){var jr,Xr=D[Kt];if((0,m.isPlainObject)(Xr)&&!Ds.includes(Kt)){var er=((i=I.shapeMap)===null||i===void 0?void 0:i[Kt])||I.find(function(mr){return mr.get("name")===Kt});er==null||er.attr(Xr)}else o.attr((jr={},jr[Kt]=Xr,jr))};for(var ee in D)Z(ee)}else{var se=Uo(r.getCurrentStatesStyle()),oe=r.getModel(),ce=(0,m.mix)({},oe.style,Uo(r.getOriginStyle())),we=o.get("name"),Re=o.attr(),Oe={};Object.keys(Re).forEach(function(lr){if(lr!=="img"){var Kt=Re[lr];Kt&&hs(Kt)==="object"?Oe[lr]=(0,m.clone)(Kt):Oe[lr]=Kt}});var Pe={},He=function(Kt){var jr=D[Kt];if((0,m.isPlainObject)(jr)&&!Ds.includes(Kt)){var Xr=I.shapeMap[Kt]||I.find(function(kr){return kr.get("name")===Kt});if(Xr){var er=Uo(Xr.attr());(0,m.each)(jr,function(kr,Fr){if(Kt===we&&Oe[Fr]&&!F[Fr]){delete Oe[Fr];var Jr=ce[Kt][Fr]||of[s][Fr];o.attr(Fr,Jr)}else if(er[Fr]||er[Fr]===0){delete er[Fr];var fn=ce[Kt][Fr]||of[s][Fr];Xr.attr(Fr,fn)}}),Pe[Kt]=er}}else if(Oe[Kt]&&!F[Kt]){delete Oe[Kt];var mr=ce[Kt]||(ce[we]?ce[we][Kt]:void 0)||of[s][Kt];o.attr(Kt,mr)}};for(var at in D)He(at);we?Pe[we]=Oe:(0,m.mix)(Pe,Oe);for(var ee in se)if(!F[ee]){var qe=se[ee];(!(0,m.isPlainObject)(qe)||Ds.includes(ee))&&(we?((0,m.mix)(ce[we],(a={},a[ee]=qe,a)),delete ce[ee]):(0,m.mix)(ce,(n={},n[ee]=qe,n)),delete se[ee])}var yt={};(0,m.deepMix)(yt,ce,Pe,se);var Ft=!1,yr=function(Kt){var jr,Xr,er=yt[Kt];if((0,m.isPlainObject)(er)&&!Ds.includes(Kt)){var mr=I.shapeMap[Kt]||I.find(function(Fr){return Fr.get("name")===Kt});mr&&((mr.get("type")==="text"||mr.get("labelRelated"))&&(delete er.x,delete er.y,delete er.matrix),Kt===we&&(s==="combo"&&(delete er.r,delete er.width,delete er.height),Ft=!0),mr.attr(er))}else if(!Ft){var kr=er||of[s][Kt];s==="combo"?we||o.attr((jr={},jr[Kt]=kr,jr)):o.attr((Xr={},Xr[Kt]=kr,Xr))}};for(var fr in yt)yr(fr)}}}},getStateStyle:function(t,e){var r=e.getModel(),n=e.getType(),a=this.getOptions(r),i=a.stateStyles,o=a.style,s=o===void 0?{}:o,l=r.stateStyles?r.stateStyles[t]:i&&i[t];return n==="combo"?(0,m.clone)(l):(0,m.mix)({},s,l)},getControlPoints:function(t){return t.controlPoints},getAnchorPoints:function(t){var e,r,n=(t==null?void 0:t.anchorPoints)||((e=this.getCustomConfig(t))===null||e===void 0?void 0:e.anchorPoints)||((r=this.options)===null||r===void 0?void 0:r.anchorPoints);return n}},Ec={itemType:"node",shapeType:"single-node",labelPosition:"center",offset:an.nodeLabel.offset,getSize:function(t){var e,r=((e=this.mergeStyle)===null||e===void 0?void 0:e.size)||t.size||this.getOptions({}).size||an.defaultNode.size;return(0,m.isArray)(r)&&r.length===1&&(r=[r[0],r[0]]),(0,m.isArray)(r)||(r=[r,r]),r},getLabelStyleByPosition:function(t,e){var r=e.maxLength,n=t.label;r&&(n=io(n,r));var a=e.position||this.labelPosition;if(a==="center")return{x:0,y:0,text:n,textBaseline:"middle",textAlign:"center"};var i=e.offset;(0,m.isNil)(i)&&(i=this.offset);var o=this.getSize(t),s;switch(a){case"top":s={x:0,y:-o[1]/2-i,textBaseline:"bottom",textAlign:"center"};break;case"bottom":s={x:0,y:o[1]/2+i,textBaseline:"top",textAlign:"center"};break;case"left":s={x:-o[0]/2-i,y:0,textBaseline:"middle",textAlign:"right"};break;default:s={x:o[0]/2+i,y:0,textBaseline:"middle",textAlign:"left"};break}return s.text=n,s},getLabelBgStyleByPosition:function(t,e){var r;if(!t)return{};var n=(r=e.style)===null||r===void 0?void 0:r.background;if(!n)return{};var a=t.getBBox(),i=Cs(n.padding),o=a.width+i[1]+i[3],s=a.height+i[0]+i[2];return(0,b.__assign)((0,b.__assign)({x:a.minX-i[3],y:a.minY-i[0]},n),{width:o,height:s})},drawShape:function(t,e){var r=this.shapeType,n=this.getShapeStyle(t),a=e.addShape(r,{attrs:n,draggable:!0,name:"node-shape"});return e.shapeMap["node-shape"]=a,a},updateLinkPoints:function(t,e){var r=(this.mergeStyle||this.getOptions(t)).linkPoints,n=e.shapeMap["link-point-left"]||e.find(function(yt){return yt.get("className")==="link-point-left"}),a=e.shapeMap["link-point-right"]||e.find(function(yt){return yt.get("className")==="link-point-right"}),i=e.shapeMap["link-point-top"]||e.find(function(yt){return yt.get("className")==="link-point-top"}),o=e.shapeMap["link-point-bottom"]||e.find(function(yt){return yt.get("className")==="link-point-bottom"}),s;n&&(s=n.attr()),a&&!s&&(s=a.attr()),i&&!s&&(s=i.attr()),o&&!s&&(s=o.attr()),s||(s=r);var l=(0,m.mix)({},s,t.linkPoints),h=l.fill,p=l.stroke,D=l.lineWidth,I=l.size/2;I||(I=l.r);var F=t.linkPoints?t.linkPoints:{left:void 0,right:void 0,top:void 0,bottom:void 0},Z=F.left,ee=F.right,se=F.top,oe=F.bottom,ce=this.getSize(t),we=ce[0],Re=ce[1],Oe={r:I,fill:h,stroke:p,lineWidth:D};if(n)!Z&&Z!==void 0?(n.remove(),delete e.shapeMap["link-point-left"]):n.attr((0,b.__assign)((0,b.__assign)({},Oe),{x:-we/2,y:0}));else if(Z){var Pe="link-point-left";e.shapeMap[Pe]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},Oe),{x:-we/2,y:0}),className:Pe,name:Pe,isAnchorPoint:!0})}if(a)!ee&&ee!==void 0&&(a.remove(),delete e.shapeMap["link-point-right"]),a.attr((0,b.__assign)((0,b.__assign)({},Oe),{x:we/2,y:0}));else if(ee){var He="link-point-right";e.shapeMap[He]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},Oe),{x:we/2,y:0}),className:He,name:He,isAnchorPoint:!0})}if(i)!se&&se!==void 0&&(i.remove(),delete e.shapeMap["link-point-top"]),i.attr((0,b.__assign)((0,b.__assign)({},Oe),{x:0,y:-Re/2}));else if(se){var at="link-point-top";e.shapeMap[at]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},Oe),{x:0,y:-Re/2}),className:at,name:at,isAnchorPoint:!0})}if(o)!oe&&oe!==void 0?(o.remove(),delete e.shapeMap["link-point-bottom"]):o.attr((0,b.__assign)((0,b.__assign)({},Oe),{x:0,y:Re/2}));else if(oe){var qe="link-point-bottom";e.shapeMap[qe]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},Oe),{x:0,y:Re/2}),className:qe,name:qe,isAnchorPoint:!0})}},updateShape:function(t,e,r,n,a){var i=e.get("keyShape");i.attr((0,b.__assign)({},r)),this.updateLabel(t,e,a),n&&this.updateIcon(t,e)},updateIcon:function(t,e){var r=this,n=e.getContainer(),a=(this.mergeStyle||this.getOptions(t)).icon,i=t.icon?t.icon:{show:void 0,text:void 0},o=i.show,s=i.text,l=n.shapeMap["".concat(this.type,"-icon")]||n.find(function(se){return se.get("name")==="".concat(r.type,"-icon")});if(l)if(o||o===void 0){var h=(0,m.mix)({},l.attr(),a),p=h.width,D=p===void 0?20:p,I=h.height,F=I===void 0?20:I;(h.fontFamily==="iconfont"||h.hasOwnProperty("text"))&&(D=0,F=0),l.attr((0,b.__assign)((0,b.__assign)({},h),{x:-D/2,y:-F/2}))}else l.remove(),delete n.shapeMap["".concat(this.type,"-icon")];else if(o){var Z="".concat(this.type,"-icon");if(s)n.shapeMap[Z]=n.addShape("text",{attrs:(0,b.__assign)({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},a),className:Z,name:Z});else{var D=a.width,F=a.height;n.shapeMap[Z]=n.addShape("image",{attrs:(0,b.__assign)((0,b.__assign)({},a),{x:-D/2,y:-F/2}),className:Z,name:Z})}var ee=n.shapeMap["node-label"]||n.find(function(se){return se.get("name")==="node-label"});ee&&ee.toFront()}}},sf=(0,b.__assign)((0,b.__assign)({},Gf),Ec);Cr.registerNode("single-node",sf);var uf="edge-shape";function nl(c){var t=c;return c==="start"?t="end":c==="end"&&(t="start"),t}var al={itemType:"edge",labelPosition:"center",refX:0,refY:0,labelAutoRotate:!1,options:{size:an.defaultEdge.size,style:{x:0,y:0,stroke:an.defaultEdge.style.stroke,lineAppendWidth:an.defaultEdge.style.lineAppendWidth},labelCfg:{style:{fill:an.edgeLabel.style.fill,fontSize:an.edgeLabel.style.fontSize,fontFamily:an.windowFontFamily}},stateStyles:(0,b.__assign)({},an.edgeStateStyles)},getPath:function(t){var e=[];return(0,m.each)(t,function(r,n){n===0?e.push(["M",r.x,r.y]):e.push(["L",r.x,r.y])}),e},getShapeStyle:function(t){var e=this.options.style,r={stroke:t.color},n=(0,m.mix)({},e,r,t.style),a=t.size||an.defaultEdge.size;t=this.getPathPoints(t);var i=t.startPoint,o=t.endPoint,s=this.getControlPoints(t),l=[i];s&&(l=l.concat(s)),l.push(o);var h=this.getPath(l),p=(0,m.mix)({},an.defaultEdge.style,{stroke:an.defaultEdge.color,lineWidth:a,path:h},n);return p},updateShapeStyle:function(t,e,r){var n,a=e.getContainer(),i=((n=e.getKeyShape)===null||n===void 0?void 0:n.call(e))||a.shapeMap["edge-shape"],o=t.size;t=this.getPathPoints(t);var s=t.startPoint,l=t.endPoint,h=this.getControlPoints(t),p=[s];h&&(p=p.concat(h)),p.push(l);var D=i.attr(),I=t.style||{};I.stroke===void 0&&(I.stroke=t.color);var F=t.sourceNode,Z=t.targetNode,ee={radius:I.radius};h||(ee={source:F,target:Z,offset:I.offset,radius:I.radius});var se=this.getPath(p,ee),oe={};r==="move"?oe={path:se}:(D.endArrow&&I.endArrow===!1&&(t.style.endArrow={path:""}),D.startArrow&&I.startArrow===!1&&(t.style.startArrow={path:""}),oe=(0,b.__assign)({},t.style),oe.lineWidth===void 0&&(oe.lineWdith=((0,m.isNumber)(o)?o:o==null?void 0:o[0])||D.lineWidth),oe.path===void 0&&(oe.path=se),oe.stroke===void 0&&(oe.stroke=D.stroke||t.color)),i&&i.attr(oe)},getLabelStyleByPosition:function(t,e,r){var n=e.position||this.labelPosition,a={},i=r==null?void 0:r.shapeMap[uf],o;n==="start"?o=0:n==="end"?o=1:o=.5;var s=e.refX||this.refX,l=e.refY||this.refY;if(t.startPoint.x===t.endPoint.x&&t.startPoint.y===t.endPoint.y)return a.x=t.startPoint.x+s,a.y=t.startPoint.y+l,a.text=t.label,a;var h;(0,m.isNil)(e.autoRotate)?h=this.labelAutoRotate:h=e.autoRotate;var p=Hu(i,o,s,l,h);return a.x=p.x,a.y=p.y,a.rotate=p.rotate,a.textAlign=this._getTextAlign(n,p.angle),a.text=t.label,a},getLabelBgStyleByPosition:function(t,e){if(!t)return{};var r=t.getBBox(),n=e.style&&e.style.background;if(!n)return{};var a=n.padding,i=r.width+a[1]+a[3],o=r.height+a[0]+a[2],s=(0,b.__assign)((0,b.__assign)({},n),{width:i,height:o,x:r.minX-a[3],y:r.minY-a[0],matrix:[1,0,0,0,1,0,0,0,1]}),l;return(0,m.isNil)(e.autoRotate)?l=this.labelAutoRotate:l=e.autoRotate,l&&(s.matrix=t.attr("matrix")||[1,0,0,0,1,0,0,0,1]),s},_getTextAlign:function(t,e){var r="center";return e?(e=e%(Math.PI*2),t!=="center"&&(e>=0&&e<=Math.PI/2||e>=3/2*Math.PI&&e<2*Math.PI?r=t:r=nl(t)),r):t},getControlPoints:function(t){return t.controlPoints},getPathPoints:function(t){return t},drawShape:function(t,e){var r=this.getShapeStyle(t),n=e.addShape("path",{className:uf,name:uf,attrs:r});return e.shapeMap[uf]=n,n},drawLabel:function(t,e){var r=this.options.labelCfg,n=(0,m.deepMix)({},r,t.labelCfg),a=this.getLabelStyle(t,n,e),i=a.rotate;delete a.rotate;var o=e.addShape("text",{attrs:a,name:"text-shape",labelRelated:!0});if(e.shapeMap["text-shape"]=o,!isNaN(i)&&i!==""&&o.rotateAtStart(i),a.background){var s=this.drawLabelBg(t,e,o,a,i),l=this.itemType+Ff;s.set("classname",l),e.shapeMap[l]=s,o.toFront()}return o},drawLabelBg:function(t,e,r,n,a){var i=this.options.labelCfg,o=(0,m.deepMix)({},i,t.labelCfg),s=this.getLabelBgStyleByPosition(r,o),l=e.addShape("rect",{name:"text-bg-shape",attrs:s,labelRelated:!0});return e.shapeMap["text-bg-shape"]=l,l}},bc=(0,b.__assign)((0,b.__assign)({},Gf),al);Cr.registerEdge("single-edge",bc),Cr.registerEdge("line",{getControlPoints:function(){}},"single-edge"),Cr.registerEdge("spline",{getPath:function(t){var e=Os(t);return e}},"single-edge"),Cr.registerEdge("arc",{curveOffset:20,clockwise:1,getControlPoints:function(t){var e=t.startPoint,r=t.endPoint,n={x:(e.x+r.x)/2,y:(e.y+r.y)/2},a,i;if(t.controlPoints!==void 0){if(i=t.controlPoints[0],a=Go(e,i,r),e.x<=r.x&&e.y>r.y?this.clockwise=a.x>i.x?0:1:e.x<=r.x&&e.yi.x?1:0:e.x>r.x&&e.y<=r.y?this.clockwise=a.y=60&&Math.round(c.h)<=240?r=e?Math.round(c.h)-tu*t:Math.round(c.h)+tu*t:r=e?Math.round(c.h)+tu*t:Math.round(c.h)-tu*t,r<0?r+=360:r>=360&&(r-=360),r}function Xf(c,t,e){if(c.h===0&&c.s===0)return c.s;var r;return e?r=c.s-Tu*t:t===Wf?r=c.s+Tu:r=c.s+Mc*t,r>1&&(r=1),e&&t===Uf&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function Vf(c,t,e){var r;return e?r=c.v+Cc*t:r=c.v-Tc*t,r>1&&(r=1),Number(r.toFixed(2))}function Iu(c){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=[],r=(0,eu.Z)(c),n=Uf;n>0;n-=1){var a=r.toHsv(),i=(0,eu.Z)({h:cf(a,n,!0),s:Xf(a,n,!0),v:Vf(a,n,!0)}).toHexString();e.push(i)}e.push(r.toHexString());for(var o=1;o<=Wf;o+=1){var s=r.toHsv(),l=(0,eu.Z)({h:cf(s,o),s:Xf(s,o),v:Vf(s,o)}).toHexString();e.push(l)}return t.theme==="dark"?jf.map(function(h){var p=h.index,D=h.opacity,I=eu.Z.mix(t.backgroundColor||"#141414",e[p],D*100).toHexString();return I}):e}var Rs={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"},Oi={},gt={};Object.keys(Rs).forEach(function(c){Oi[c]=Iu(Rs[c]),Oi[c].primary=Oi[c][5],gt[c]=Iu(Rs[c],{theme:"dark",backgroundColor:"#141414"}),gt[c].primary=gt[c][5]});var cl=Oi.red,Ou=Oi.volcano,Yf=Oi.gold,ll=Oi.orange,Ic=Oi.yellow,dl=Oi.lime,hl=Oi.green,lf=Oi.cyan,Hf=Oi.blue,Oc=Oi.geekblue,Zf=Oi.purple,Mi=Oi.magenta,Au=Oi.grey,gi=function(t,e,r){var n=ks()(t),a=ks()(e);return ks()([(1-r)*n.red()+r*a.red(),(1-r)*n.green()+r*a.green(),(1-r)*n.blue()+r*a.blue()]).rgb()},Lu=function(t,e,r){e===void 0&&(e="#fff"),r===void 0&&(r="rgb(150, 150, 150)");var n=gi(e,t,.05).rgb().toString(),a=gi(e,t,.1).rgb().toString(),i=gi(e,t,.2).rgb().toString(),o=gi(e,t,.4).rgb().toString(),s=gi(e,r,.02).rgb().toString(),l=gi(e,r,.05).rgb().toString(),h=gi(e,r,.1).rgb().toString(),p=gi(e,r,.2).rgb().toString(),D=gi(e,r,.3).rgb().toString(),I=Iu(t,{theme:"default",backgroundColor:e}),F=ks()(t).hex().toLowerCase(),Z=I.indexOf(F),ee=t;return Z!==-1&&(ee=I[Z+1]),{mainStroke:t,mainFill:a,activeStroke:t,activeFill:n,inactiveStroke:o,inactiveFill:n,selectedStroke:t,selectedFill:e,highlightStroke:ee,highlightFill:i,disableStroke:D,disableFill:l,edgeMainStroke:D,edgeActiveStroke:t,edgeInactiveStroke:p,edgeSelectedStroke:t,edgeHighlightStroke:t,edgeDisableStroke:h,comboMainStroke:D,comboMainFill:s,comboActiveStroke:t,comboActiveFill:n,comboInactiveStroke:D,comboInactiveFill:s,comboSelectedStroke:t,comboSelectedFill:s,comboHighlightStroke:ee,comboHighlightFill:s,comboDisableStroke:p,comboDisableFill:l}},Xo=function(t,e,r){e===void 0&&(e="#fff"),r===void 0&&(r="#777");var n=gi(e,t,.2).rgb().toString(),a=gi(e,t,.3).rgb().toString(),i=gi(e,t,.6).rgb().toString(),o=gi(e,t,.8).rgb().toString(),s=gi(e,r,.2).rgb().toString(),l=gi(e,r,.25).rgb().toString(),h=gi(e,r,.3).rgb().toString(),p=gi(e,r,.4).rgb().toString(),D=gi(e,r,.5).rgb().toString(),I=Iu(t,{theme:"dark",backgroundColor:e}),F=ks()(t).hex().toLowerCase(),Z=I.indexOf(F),ee=t;return Z!==-1&&(ee=I[Z+1]),{mainStroke:o,mainFill:n,activeStroke:t,activeFill:a,inactiveStroke:o,inactiveFill:n,selectedStroke:t,selectedFill:n,highlightStroke:t,highlightFill:i,disableStroke:D,disableFill:l,edgeMainStroke:r,edgeActiveStroke:t,edgeInactiveStroke:r,edgeSelectedStroke:t,edgeHighlightStroke:t,edgeDisableStroke:h,comboMainStroke:p,comboMainFill:l,comboActiveStroke:t,comboActiveFill:s,comboInactiveStroke:p,comboInactiveFill:l,comboSelectedStroke:t,comboSelectedFill:s,comboHighlightStroke:ee,comboHighlightFill:l,comboDisableStroke:p,comboDisableFill:s}},vs=function(t,e,r,n){return e===void 0&&(e="#fff"),r===void 0&&(r="default"),n===void 0&&(n="rgb(150, 150, 150)"),r==="default"?Lu(t,e,"rgb(150, 150, 150)"):Xo(t,e,"#777")},Bs=function(t,e,r,n){e===void 0&&(e="#fff"),r===void 0&&(r="default"),n===void 0&&(n="rgb(150, 150, 150)");var a=[];return t.forEach(function(i){a.push(vs(i,e,r,n))}),a},gs="rgb(95, 149, 255)",ru="rgb(255, 255, 255)",ps="rgb(0, 0, 0)",ra=vs(gs,ru),wo={version:"0.8.9",rootContainerClassName:"root-container",nodeContainerClassName:"node-container",edgeContainerClassName:"edge-container",comboContainerClassName:"combo-container",delegateContainerClassName:"delegate-container",defaultLoopPosition:"top",nodeLabel:{style:{fill:"#000",fontSize:12,textAlign:"center",textBaseline:"middle"},offset:4},defaultNode:{type:"circle",style:{lineWidth:1,stroke:ra.mainStroke,fill:ra.mainFill},size:20,color:ra.mainStroke,linkPoints:{size:8,lineWidth:1,fill:ra.activeFill,stroke:ra.activeStroke}},nodeStateStyles:{active:{fill:ra.activeFill,stroke:ra.activeStroke,lineWidth:2,shadowColor:ra.mainStroke,shadowBlur:10},selected:{fill:ra.selectedFill,stroke:ra.selectedStroke,lineWidth:4,shadowColor:ra.selectedStroke,shadowBlur:10,"text-shape":{fontWeight:500}},highlight:{fill:ra.highlightFill,stroke:ra.highlightStroke,lineWidth:2,"text-shape":{fontWeight:500}},inactive:{fill:ra.inactiveFill,stroke:ra.inactiveStroke,lineWidth:1},disable:{fill:ra.disableFill,stroke:ra.disableStroke,lineWidth:1}},edgeLabel:{style:{fill:ps,textAlign:"center",textBaseline:"middle",fontSize:12}},defaultEdge:{type:"line",size:1,style:{stroke:ra.edgeMainStroke,lineAppendWidth:2},color:ra.edgeMainStroke},edgeStateStyles:{active:{stroke:ra.edgeActiveStroke,lineWidth:1},selected:{stroke:ra.edgeSelectedStroke,lineWidth:2,shadowColor:ra.edgeSelectedStroke,shadowBlur:10,"text-shape":{fontWeight:500}},highlight:{stroke:ra.edgeHighlightStroke,lineWidth:2,"text-shape":{fontWeight:500}},inactive:{stroke:ra.edgeInactiveStroke,lineWidth:1},disable:{stroke:ra.edgeDisableStroke,lineWidth:1}},comboLabel:{style:{fill:ps,textBaseline:"middle",fontSize:12},refY:10,refX:10},defaultCombo:{type:"circle",style:{fill:ra.comboMainFill,lineWidth:1,stroke:ra.comboMainStroke,r:5,width:20,height:10},size:[20,5],color:ra.comboMainStroke,padding:[25,20,15,20]},comboStateStyles:{active:{stroke:ra.comboActiveStroke,lineWidth:1,fill:ra.comboActiveFill},selected:{stroke:ra.comboSelectedStroke,lineWidth:2,fill:ra.comboSelectedFill,shadowColor:ra.comboSelectedStroke,shadowBlur:10,"text-shape":{fontWeight:500}},highlight:{stroke:ra.comboHighlightStroke,lineWidth:2,fill:ra.comboHighlightFill,"text-shape":{fontWeight:500}},inactive:{stroke:ra.comboInactiveStroke,fill:ra.comboInactiveFill,lineWidth:1},disable:{stroke:ra.comboDisableStroke,fill:ra.comboDisableFill,lineWidth:1}},delegateStyle:{fill:"#F3F9FF",fillOpacity:.5,stroke:"#1890FF",strokeOpacity:.9,lineDash:[5,5]},textWaterMarkerConfig:{width:150,height:100,compatible:!1,text:{x:0,y:60,lineHeight:20,rotate:20,fontSize:14,fontFamily:"Microsoft YaHei",fill:"rgba(0, 0, 0, 0.1)",baseline:"Middle"}},imageWaterMarkerConfig:{width:150,height:130,compatible:!1,image:{x:0,y:0,width:30,height:20,rotate:0}},waterMarkerImage:"https://gw.alipayobjects.com/os/s/prod/antv/assets/image/logo-with-text-73b8a.svg"},Fs=z(57817),df=ki.cloneEvent,Du=ki.isViewportChanged,Kf=function(c){(0,b.__extends)(t,c);function t(e){var r=c.call(this,e)||this;return r.extendEvents=[],r.dragging=!1,r.mousedown=!1,r.preItem=null,r.destroy(),r.graph=e,r.destroyed=!1,r.initEvents(),r}return t.prototype.initEvents=function(){var e=this,r=e.graph,n=e.extendEvents,a=n===void 0?[]:n,i=r.get("canvas"),o=i.get("el"),s=(0,m.wrapBehavior)(this,"onCanvasEvents"),l=(0,m.wrapBehavior)(this,"onExtendEvents"),h=(0,m.wrapBehavior)(this,"onWheelEvent");i.off("*").on("*",s),this.canvasHandler=s,a.push((0,Fs.Z)(o,"wheel",h)),typeof window!="undefined"&&(a.push((0,Fs.Z)(window,"keydown",l)),a.push((0,Fs.Z)(window,"keyup",l)),a.push((0,Fs.Z)(window,"focus",l))),this.resetHandler&&r.off("afterchangedata",this.resetHandler),this.resetHandler=(0,m.wrapBehavior)(this,"resetStatus"),r.on("afterchangedata",this.resetHandler)},t.getItemRoot=function(e){for(;e&&!e.get("item");)e=e.get("parent");return e},t.prototype.onCanvasEvents=function(e){var r=this,n=this.graph,a=n.get("canvas"),i=e.target,o=e.type;switch(o){case"drag":this.onCanvasEvents(Object.assign({},e,{type:"mousemove"}));break;case"dragend":this.onCanvasEvents(Object.assign({},e,{type:"mouseup"}));break;case"mousedown":this.mousedown=!0;break;case"dragend":case"mouseup":setTimeout(function(){return r.mousedown=!1});break;case"click":if(!this.mousedown)return;break;default:break}e.canvasX=e.x,e.canvasY=e.y;var s={x:e.canvasX,y:e.canvasY},l=n.get("group"),h=l.getMatrix();if(h||(h=[1,0,0,0,1,0,0,0,1]),Du(h)&&(s=n.getPointByClient(e.clientX,e.clientY)),e.x=s.x,e.y=s.y,e.currentTarget=n,i===a){(o==="mousemove"||o==="mouseleave")&&this.handleMouseMove(e,"canvas"),e.target=a,e.item=null,n.emit(o,e),n.emit("canvas:".concat(o),e);return}var p=t.getItemRoot(i);if(!p){n.emit(o,e);return}var D=p.get("item");if(!D.destroyed){var I=D.getType();if(e.target=i,e.item=D,e.canvasX===e.x&&e.canvasY===e.y){var F=n.getCanvasByPoint(e.x,e.y);e.canvasX=F.x,e.canvasY=F.y}e.name&&!e.name.includes(":")?(n.emit("".concat(I,":").concat(o),e),n.emit(o,e)):e.name&&n.emit(e.name,e),o==="dragstart"&&(this.dragging=!0),o==="dragend"&&(this.dragging=!1),o==="mousemove"&&this.handleMouseMove(e,I)}},t.prototype.onExtendEvents=function(e){this.graph.emit(e.type,e)},t.prototype.onWheelEvent=function(e){(0,m.isNil)(e.wheelDelta)&&(e.wheelDelta=-e.detail),this.graph.emit("wheel",e)},t.prototype.handleMouseMove=function(e,r){var n=this,a=n.graph,i=n.preItem,o=a.get("canvas"),s=e.target===o?null:e.item;e=df(e),i&&i!==s&&!i.destroyed&&(e.item=i,this.emitCustomEvent(i.getType(),"mouseleave",e),this.dragging&&this.emitCustomEvent(i.getType(),"dragleave",e)),s&&i!==s&&(e.item=s,this.emitCustomEvent(r,"mouseenter",e),this.dragging&&this.emitCustomEvent(r,"dragenter",e)),this.preItem=s},t.prototype.emitCustomEvent=function(e,r,n){n.type=r,this.graph.emit("".concat(e,":").concat(r),n)},t.prototype.resetStatus=function(){this.mousedown=!1,this.dragging=!1,this.preItem=null},t.prototype.destroy=function(){var e=this,r=e.graph,n=e.canvasHandler,a=e.extendEvents,i=r.get("canvas");i.off("*",n),(0,m.each)(a,function(o){o.remove()}),this.resetStatus(),this.extendEvents.length=0,this.canvasHandler=null,this.resetHandler=null,this.destroyed=!0},t}(ff),$f=Kf,ea=z(67320),Io=z(81746),nu=z.n(Io),Qf=ki.traverseTree,hf=function(t,e){var r;return t?(0,m.isNumber)(t)?r=function(a){return t}:r=t:r=function(a){return e||1},r},Jf=function(t,e){var r=[],n=[],a={},i=0;for(i=0;i=0&&(o="x",i="y");var s=0;Qf(t,function(p){return s++,p.x>a.x&&(a.x=p.x),p.xa.y&&(a.y=p.y),p.yWebGL.
      ','Find out how to get it here.'].join(` +`):['Your browser does not seem to support WebGL.
      ','Find out how to get it here.'].join(` +`)),e},addGetWebGLMessage:function(e){e=e||{};var r=e.parent!==void 0?e.parent:document.body,n=e.id!==void 0?e.id:"oldie",a=c().getWebGLErrorMessage();a.id=n,r.appendChild(a)}}},Pc=(0,b.__assign)((0,b.__assign)((0,b.__assign)((0,b.__assign)({},ki),x),v),g),Vo=Pc,vl=Vo.radialLayout,kc=function(){function c(t){this.type=t.type,this.radial=t.radial,this.config=t}return c.prototype.init=function(t){var e=this;if(this.data=t,this.radial){this.layoutMethod=function(r){var n=nu()[e.type](r,e.config);return vl(n),n};return}this.layoutMethod=function(r){return nu()[e.type](r,e.config)}},c.prototype.execute=function(){return this.layoutMethod(this.data,this.config)},c.prototype.layout=function(t){return this.init(t),this.execute()},c}(),Rc=kc;(0,ea.registerLayout)("grid",ea.GridLayout),(0,ea.registerLayout)("random",ea.RandomLayout),(0,ea.registerLayout)("force",ea.ForceLayout),(0,ea.registerLayout)("circular",ea.CircularLayout),(0,ea.registerLayout)("dagre",ea.DagreLayout),(0,ea.registerLayout)("dagreCompound",ea.DagreCompoundLayout),(0,ea.registerLayout)("radial",ea.RadialLayout),(0,ea.registerLayout)("concentric",ea.ConcentricLayout),(0,ea.registerLayout)("mds",ea.MDSLayout),(0,ea.registerLayout)("fruchterman",ea.FruchtermanLayout),(0,ea.registerLayout)("fruchterman-gpu",ea.FruchtermanGPULayout),(0,ea.registerLayout)("gForce",ea.GForceLayout),(0,ea.registerLayout)("force2",ea.Force2Layout),(0,ea.registerLayout)("gForce-gpu",ea.GForceGPULayout),(0,ea.registerLayout)("comboForce",ea.ComboForceLayout),(0,ea.registerLayout)("comboCombined",ea.ComboCombinedLayout),(0,ea.registerLayout)("forceAtlas2",ea.ForceAtlas2Layout);var gl=function(t,e){e.isCustomLayout=!0,ea.Layouts[t]=(0,ea.registerLayout)(t,e)},Bc=function(){function c(t,e){var r=t.toString(),n=new Blob(["importScripts('".concat(e,"');(").concat(r,")()")],{type:"text/javascript"});return new Worker(URL.createObjectURL(n))}return c}(),Fc=Bc,Gc=function(t){t===void 0&&(t="https://unpkg.com/@antv/layout@latest/dist/layout.min.js");function e(){var n={RUN:"LAYOUT_RUN",END:"LAYOUT_END",ERROR:"LAYOUT_ERROR",TICK:"LAYOUT_TICK",GPURUN:"GPU_LAYOUT_RUN",GPUEND:"GPU_LAYOUT_END"};layout.registerLayout("grid",layout.GridLayout),layout.registerLayout("random",layout.RandomLayout),layout.registerLayout("force",layout.ForceLayout),layout.registerLayout("force2",layout.Force2Layout),layout.registerLayout("circular",layout.CircularLayout),layout.registerLayout("dagre",layout.DagreLayout),layout.registerLayout("dagreCompound",layout.DagreCompoundLayout),layout.registerLayout("radial",layout.RadialLayout),layout.registerLayout("concentric",layout.ConcentricLayout),layout.registerLayout("mds",layout.MDSLayout),layout.registerLayout("fruchterman",layout.FruchtermanLayout),layout.registerLayout("fruchterman-gpu",layout.FruchtermanGPULayout),layout.registerLayout("gForce",layout.GForceLayout),layout.registerLayout("gForce-gpu",layout.GForceGPULayout),layout.registerLayout("comboForce",layout.ComboForceLayout),layout.registerLayout("comboCombined",layout.ComboCombinedLayout),layout.registerLayout("forceAtlas2",layout.ForceAtlas2Layout);function a(o){var s=o.data.type;return s===n.RUN||s===n.GPURUN}function i(o){var s=this,l=o.data.type;switch(l){case n.RUN:{var h=o.data,p=h.nodes,D=h.edges,I=h.layoutCfg,F=I===void 0?{}:I,Z=F.type,ee=layout.getLayoutByName(Z);if(!ee){this.postMessage({type:n.ERROR,message:"layout ".concat(Z," not found")});break}var se;F.onLayoutEnd=function(){s.postMessage({type:n.END,nodes:p}),se==null||se.destroy()},se=new ee(F),se.init({nodes:p,edges:D}),se.execute();break}case n.GPURUN:{var oe=o.data,ce=oe.nodes,D=oe.edges,we=oe.layoutCfg,F=we===void 0?{}:we,Re=oe.canvas,Z=F.type,ee=layout.getLayoutByName(Z);if(!ee){this.postMessage({type:n.ERROR,message:"layout ".concat(Z," not found")});break}if(Z.split("-")[1]!=="gpu"){this.postMessage({type:n.ERROR,message:"layout ".concat(Z," does not support GPU")});break}var Oe=new ee(F);Oe.init({nodes:ce,edges:D}),Oe.executeWithWorker(Re,this);break}default:break}}onmessage=function(s){a(s)&&i(s)}}var r=new Fc(e,t);return r},zs={RUN:"LAYOUT_RUN",END:"LAYOUT_END",ERROR:"LAYOUT_ERROR",TICK:"LAYOUT_TICK",GPURUN:"GPU_LAYOUT_RUN",GPUEND:"GPU_LAYOUT_END"};function Nu(c){return Nu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nu(c)}var au=function(t){return setTimeout(t,16)},Pu=function(t){return clearTimeout(t)},Us={requestAnimationFrame:function(t){var e=typeof window!="undefined"&&(window.requestAnimationFrame||window.webkitRequestAnimationFrame)||au;return e(t)},cancelAnimationFrame:function(t){var e=typeof window!="undefined"&&(window.cancelAnimationFrame||window.webkitCancelAnimationFrame)||Pu;return e(t)}},vf=["fruchterman","gForce"],ec=["force","grid","circular"],gf=function(c){(0,b.__extends)(t,c);function t(e){var r=c.call(this,e)||this;return r.graph=e,r.layoutCfg=e.get("layout")||{},r.layoutType=r.getLayoutType(),r.worker=null,r.workerData={},r.initLayout(),r}return t.prototype.initLayout=function(){},t.prototype.getWorker=function(){return this.worker?this.worker:(typeof Worker=="undefined"?(console.warn("Web worker is not supported in current browser."),this.worker=null):this.worker=Gc(this.layoutCfg.workerScriptURL),this.worker)},t.prototype.stopWorker=function(){var e=this.workerData;!this.worker||(this.worker.terminate(),this.worker=null,e.requestId&&(Us.cancelAnimationFrame(e.requestId),e.requestId=null),e.requestId2&&(Us.cancelAnimationFrame(e.requestId2),e.requestId2=null))},t.prototype.execLayoutMethod=function(e,r){var n=this;return new Promise(function(a,i){return(0,b.__awaiter)(n,void 0,void 0,function(){var o,s,l,h,p,D,I,F,Z,D,ee;return(0,b.__generator)(this,function(se){switch(se.label){case 0:if(o=this.graph,!o||o.get("destroyed"))return[2];s=e.type,e.onLayoutEnd=function(){o.emit("aftersublayout",{type:s}),a()},s&&this.isGPU&&(ku(s)?s="".concat(s,"-gpu"):console.warn("The '".concat(s,"' layout does not support GPU calculation for now, it will run in CPU."))),ki.isForce(s)?(l=e.onTick,h=e.animate,p=h===void 0&&(s==="force"||s==="force2"),D=function(){l&&l(),(h||p)&&o.refreshPositions()},e.tick=D):(s==="comboForce"||s==="comboCombined")&&(e.comboTrees=o.get("comboTrees")),I=!1;try{F=new ea.Layouts[s](e),this.layoutMethods[r]&&this.layoutMethods[r].destroy(),this.layoutMethods[r]=F}catch(oe){console.warn("The layout method: '".concat(s,"' does not exist! Please specify it first.")),i()}return I=F.enableTick,I&&(Z=e.onTick,D=function(){Z&&Z(),o.refreshPositions()},F.tick=D),ee=this.filterLayoutData(this.data,e),mf(ee,r),F.init(ee),o.emit("beforesublayout",{type:s}),[4,F.execute()];case 1:return se.sent(),F.isCustomLayout&&e.onLayoutEnd&&e.onLayoutEnd(),[2]}})})})},t.prototype.updateLayoutMethod=function(e,r){var n=this;return new Promise(function(a,i){return(0,b.__awaiter)(n,void 0,void 0,function(){var o,s,l;return(0,b.__generator)(this,function(h){switch(h.label){case 0:return o=this.graph,s=r==null?void 0:r.type,r.onLayoutEnd=function(){o.emit("aftersublayout",{type:s}),a()},l=this.filterLayoutData(this.data,r),e.init(l),e.updateCfg(r),o.emit("beforesublayout",{type:s}),[4,e.execute()];case 1:return h.sent(),e.isCustomLayout&&r.onLayoutEnd&&r.onLayoutEnd(),[2]}})})})},t.prototype.layout=function(e){var r=this,n,a=this.graph;if(!(!a||a.get("destroyed"))){this.data=this.setDataFromGraph();var i=this.data,o=i.nodes,s=i.hiddenNodes;if(!o)return!1;var l=a.get("width"),h=a.get("height"),p={};Object.assign(p,{width:l,height:h,center:[l/2,h/2]},this.layoutCfg),this.layoutCfg=p;var D=p.type,I=!1;(n=this.layoutMethods)===null||n===void 0||n.forEach(function(Re){var Oe;return I=!!((Oe=Re.nodes)===null||Oe===void 0?void 0:Oe.length)||I});var F=this.destoryLayoutMethods();a.emit("beforelayout");var Z=Promise.resolve();I&&D&&(F==null?void 0:F.length)===1&&F[0]===D?this.tweakInit():Z=this.initPositions(p.center,o);var ee=this.initPositions(p.center,s);ee.then(),this.isGPU=iu(p,D);var se=p.onLayoutEnd,oe=p.layoutEndFormatted,ce=p.adjust;if(oe||(p.layoutEndFormatted=!0,p.onAllLayoutEnd=function(){return(0,b.__awaiter)(r,void 0,void 0,function(){return(0,b.__generator)(this,function(Re){switch(Re.label){case 0:return se&&se(o),this.refreshLayout(),ce&&p.pipes?[4,this.adjustPipesBox(this.data,ce)]:[3,2];case 1:Re.sent(),this.refreshLayout(),Re.label=2;case 2:return a.emit("afterlayout"),[2]}})})}),this.stopWorker(),p.workerEnabled&&this.layoutWithWorker(this.data,e))return!0;var we=!1;return p.type?(we=!0,Z=Z.then(function(){return(0,b.__awaiter)(r,void 0,void 0,function(){return(0,b.__generator)(this,function(Re){switch(Re.label){case 0:return[4,this.execLayoutMethod(p,0)];case 1:return[2,Re.sent()]}})})})):p.pipes&&(we=!0,p.pipes.forEach(function(Re,Oe){Z=Z.then(function(){return(0,b.__awaiter)(r,void 0,void 0,function(){return(0,b.__generator)(this,function(Pe){switch(Pe.label){case 0:return[4,this.execLayoutMethod(Re,Oe)];case 1:return[2,Pe.sent()]}})})})})),we?Z.then(function(){p.onAllLayoutEnd&&p.onAllLayoutEnd(),e&&e()}).catch(function(Re){console.warn("graph layout failed,",Re)}):(a.refreshPositions(),e==null||e()),!1}},t.prototype.tweakInit=function(){var e=this,r=e.data,n=e.graph,a=r.nodes,i=r.edges;if(!!(a==null?void 0:a.length)){var o={};a.forEach(function(h){var p=h.x,D=h.y;!isNaN(p)&&!isNaN(D)&&(o[h.id]={x:p,y:D},h.mass=h.mass||2)}),i.forEach(function(h){var p=h.source,D=h.target,I=o[p],F=o[D];!I&&F?o[p]={x:F.x+(Math.random()-.5)*80,y:F.y+(Math.random()-.5)*80}:!F&&I&&(o[D]={x:I.x+(Math.random()-.5)*80,y:I.y+(Math.random()-.5)*80})});var s=n.get("width"),l=n.get("height");a.forEach(function(h){var p=o[h.id]||{x:s/2+(Math.random()-.5)*20,y:l/2+(Math.random()-.5)*20};h.x=p.x,h.y=p.y})}},t.prototype.initWithPreset=function(e,r){var n=this;return new Promise(function(a,i){return(0,b.__awaiter)(n,void 0,void 0,function(){var o,s,l,h,p,D,I;return(0,b.__generator)(this,function(F){switch(F.label){case 0:return o=this,s=o.layoutCfg,l=o.data,h=s.preset,!(h==null?void 0:h.type)||!ea.Layouts[h==null?void 0:h.type]?(r==null||r(),a(),[2,!1]):(p=iu(h,h.type),D=p?"".concat(h.type,"-gpu"):h.type,I=new ea.Layouts[D](h),delete s.preset,I.init(l),[4,I.execute()]);case 1:return F.sent(),e==null||e(),a(),[2,!0]}})})})},t.prototype.layoutWithWorker=function(e,r){var n=this,a=this,i=a.layoutCfg,o=a.graph,s=this.getWorker(),l=this.workerData;if(!s)return!1;l.requestId=null,l.requestId2=null,l.currentTick=null,l.currentTickData=null,o.emit("beforelayout");var h=Promise.resolve(),p=!1;if(i.type)p=!0,h=h.then(function(){return n.runWebworker(s,e,i)});else if(i.pipes){p=!0;for(var D=function(se){h=h.then(function(){return n.runWebworker(s,e,se)})},I=0,F=i.pipes;I
      '),h=n?n.backgroundColor:void 0,p=n?n.padding:void 0;p?(0,m.isNumber)(p)&&(p=[p,p,p,p]):p=[0,0,0,0];var D=i+p[0]+p[2],I=o+p[1]+p[3],F={container:l,height:D,width:I,quickHit:!0},Z=s==="svg"?new Ps.Canvas(F):new so.Canvas(F),ee=this.get("group"),se=ee.clone(),oe=(0,m.clone)(se.getMatrix());oe||(oe=[1,0,0,0,1,0,0,0,1]);var ce=(a.maxX+a.minX)/2,we=(a.maxY+a.minY)/2;oe=js(oe,[["t",-ce,-we],["t",o/2+p[3],i/2+p[0]]]),se.resetMatrix(),se.setMatrix(oe),Z.add(se);var Re=Z.get("el"),Oe="";r||(r="image/png"),setTimeout(function(){if(s==="svg"){var Pe=Re.cloneNode(!0),He=document.implementation.createDocumentType("svg","-//W3C//DTD SVG 1.1//EN","http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"),at=document.implementation.createDocument("http://www.w3.org/2000/svg","svg",He);at.replaceChild(Pe,at.documentElement);var qe=new XMLSerializer().serializeToString(at);Oe="data:image/svg+xml;charset=utf8,".concat(encodeURIComponent(qe))}else{var yt=void 0,Ft=Re.getContext("2d"),yr=void 0;if(h){var fr=typeof window!="undefined"?window.devicePixelRatio:1;try{yt=Ft.getImageData(0,0,I*fr,D*fr),yr=Ft.globalCompositeOperation,Ft.globalCompositeOperation="destination-over",Ft.fillStyle=h,Ft.fillRect(0,0,I,D)}catch(lr){console.error("Download image failed. Out of memory at ImageData creation")}}Oe=Re.toDataURL(r),h&&(Ft.clearRect(0,0,I,D),Ft.putImageData(yt,0,0),Ft.globalCompositeOperation=yr)}e&&e(Oe)},16)},t.prototype.downloadFullImage=function(e,r,n){var a=this,i=this.get("group").getCanvasBBox(),o=i.height,s=i.width,l=this.get("renderer"),h=(0,Aa.Z)('
      '),p=document.querySelector(".g6-graph-watermarker"),D=n?n.backgroundColor:void 0,I=n?n.padding:void 0;I?(0,m.isNumber)(I)&&(I=[I,I,I,I]):I=[0,0,0,0];var F=o+I[0]+I[2],Z=s+I[1]+I[3];if(p){var ee=this.get("graphWaterMarker").cfg||{},se=ee.width,oe=ee.height;F=Math.ceil(F/oe)*oe,Z=Math.ceil(Z/se)*se}var ce={container:h,height:F,width:Z},we=l==="svg"?new Ps.Canvas(ce):new so.Canvas(ce),Re=this.get("group"),Oe=ou(Re),Pe=(0,m.clone)(Oe.getMatrix());Pe||(Pe=[1,0,0,0,1,0,0,0,1]);var He=(i.maxX+i.minX)/2,at=(i.maxY+i.minY)/2;Pe=js(Pe,[["t",-He,-at],["t",s/2+I[3],o/2+I[0]]]),Oe.resetMatrix(),Oe.setMatrix(Pe),we.add(Oe);var qe=we.get("el");r||(r="image/png"),this.asyncToDataUrl(r,D,function(yt){var Ft=document.createElement("a"),yr=(e||"graph")+(l==="svg"?".svg":".".concat(r.split("/")[1]));a.dataURLToImage(yt,l,Ft,yr);var fr=document.createEvent("MouseEvents");fr.initEvent("click",!1,!1),Ft.dispatchEvent(fr)},Z,F,qe)},t.prototype.downloadImage=function(e,r,n){var a=this,i=this;i.stopAnimate();var o=i.get("canvas"),s=o.getRenderer();r||(r="image/png");var l=(e||"graph")+(s==="svg"?".svg":r.split("/")[1]),h=document.createElement("a");i.asyncToDataUrl(r,n,function(p){a.dataURLToImage(p,s,h,l);var D=document.createEvent("MouseEvents");D.initEvent("click",!1,!1),h.dispatchEvent(D)})},t.prototype.dataURLToImage=function(e,r,n,a){if(!e||e==="data:"){console.error("Download image failed. The graph is too large or there is invalid attribute values in graph items");return}if(typeof window!="undefined")if(window.Blob&&window.URL&&r!=="svg"){var i=e.split(","),o="";if(i&&i.length>0){var s=i[0].match(/:(.*?);/);s&&s.length>=2&&(o=s[1])}for(var l=atob(i[1]),h=l.length,p=new Uint8Array(h);h--;)p[h]=l.charCodeAt(h);var D=new Blob([p],{type:o});window.navigator.msSaveBlob?window.navigator.msSaveBlob(D,a):n.addEventListener("click",function(){n.download=a,n.href=window.URL.createObjectURL(D)})}else n.addEventListener("click",function(){n.download=a,n.href=e})},t.prototype.addPlugin=function(e){var r=this;e.destroyed||(r.get("plugins").push(e),e.initPlugin(r))},t.prototype.removePlugin=function(e){var r=this.get("plugins"),n=r.indexOf(e);n>=0&&(e.destroyPlugin(),r.splice(n,1))},t.prototype.setImageWaterMarker=function(e,r){e===void 0&&(e=wo.waterMarkerImage);var n=this.get("container");(0,m.isString)(n)&&(n=document.getElementById(n)),n.style.position||(n.style.position="relative");var a=this.get("graphWaterMarker"),i=(0,m.deepMix)({},wo.imageWaterMarkerConfig,r),o=i.width,s=i.height,l=i.compatible,h=i.image;if(!e){var p=l?n:document.querySelector(".g6-graph-watermarker");p&&(p.style.cssText=void 0),a&&a.clear();return}if(a)a.clear();else{var D={container:n,width:o,height:s,capture:!1},I=this.get("pixelRatio");I&&(D.pixelRatio=I,window.devicePixelRatio=I),a=new so.Canvas(D),this.set("graphWaterMarker",a)}a.get("el").style.display="none";var F=a.get("context"),Z=h.rotate,ee=h.x,se=h.y;F.rotate(-Z*Math.PI/180);var oe=new Image;oe.crossOrigin="anonymous",oe.src=e,oe.onload=function(){if(F.drawImage(oe,ee,se,h.width,h.height),F.rotate(Z*Math.PI/180),l)n.style.cssText="background-image: url(".concat(a.get("el").toDataURL("image/png"),");background-repeat:repeat;");else{var ce=document.querySelector(".g6-graph-watermarker");ce||(ce=document.createElement("div"),ce.className="g6-graph-watermarker"),ce.className="g6-graph-watermarker",a.destroyed||(ce.style.cssText="background-image: url(".concat(a.get("el").toDataURL("image/png"),");background-repeat:repeat;position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:none;z-index:-1;"),n.appendChild(ce))}}},t.prototype.setTextWaterMarker=function(e,r){var n=this.get("container");(0,m.isString)(n)&&(n=document.getElementById(n)),n.style.position||(n.style.position="relative");var a=this.get("graphWaterMarker"),i=(0,m.deepMix)({},wo.textWaterMarkerConfig,r),o=i.width,s=i.height,l=i.compatible,h=i.text;if(!(e==null?void 0:e.length)){var p=l?n:document.querySelector(".g6-graph-watermarker");p&&(p.style.cssText=void 0),a&&a.clear();return}if(a)a.clear();else{var D={container:n,width:o,height:s,capture:!1},I=this.get("pixelRatio");I&&(D.pixelRatio=I,window.devicePixelRatio=I),a=new so.Canvas(D),this.set("graphWaterMarker",a)}a.get("el").style.display="none";var F=a.get("context"),Z=h.rotate,ee=h.fill,se=h.fontFamily,oe=h.fontSize,ce=h.baseline,we=h.x,Re=h.y,Oe=h.lineHeight;F.rotate(-Z*Math.PI/180),F.font="".concat(oe,"px ").concat(se),F.fillStyle=ee,F.textBaseline=ce;for(var Pe=(0,m.isString)(e)?[e]:e,He=Pe.length-1;He>=0;He--)F.fillText(Pe[He],we,Re+He*Oe);if(F.rotate(Z*Math.PI/180),l)n.style.cssText="background-image: url(".concat(a.get("el").toDataURL("image/png"),");background-repeat:repeat;");else{var at=document.querySelector(".g6-graph-watermarker");at||(at=document.createElement("div"),at.className="g6-graph-watermarker"),at.style.cssText="background-image: url(".concat(a.get("el").toDataURL("image/png"),");background-repeat:repeat;position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:none;z-index:99;"),n.appendChild(at)}},t.prototype.destroy=function(){var e,r,n,a;(0,m.each)(this.get("plugins"),function(h){h.destroyPlugin()});var i=this.get("tooltips");if(i)for(var o=0;o0)for(var l=o.length-1;l>=0;l--){var h=o[l].getModel();t.indexOfChild(e.children||[],h.id)===-1&&(a.innerRemoveChild(h.id,{x:e.x,y:e.y},n),o.splice(l,1))}}var p,D;i.get("originAttrs")&&(p=i.get("originAttrs").x,D=i.get("originAttrs").y);var I=i.getModel();n&&i.set("originAttrs",{x:I.x,y:I.y}),i.set("model",Object.assign(I,e.data)),(p!==e.x||D!==e.y)&&i.updatePosition({x:e.x,y:e.y})},t.prototype.innerRemoveChild=function(e,r,n){var a=this,i=a.findById(e);if(!!i)if((0,m.each)(i.get("children"),function(s){a.innerRemoveChild(s.getModel().id,r,n)}),n){var o=i.getModel();i.set("to",r),i.set("originAttrs",{x:o.x,y:o.y}),a.get("removeList").push(i)}else a.removeItem(i,!1)},t.prototype.changeData=function(e,r){r===void 0&&(r=!0);var n=this;this.getNodes().map(function(a){return n.clearItemStates(a)}),this.getEdges().map(function(a){return n.clearItemStates(a)}),r&&this.get("enabledStack")&&this.pushStack("changedata",{before:n.get("originData"),after:e||n.get("data")}),e?(n.data(e),n.render(!1)):n.layout(this.get("fitView"))},t.prototype.changeLayout=function(e){console.warn("Please call updateLayout instead of changeLayout. changeLayout will be discarded soon");var r=this;r.updateLayout(e)},t.prototype.updateLayout=function(e,r,n,a){a===void 0&&(a=!0);var i=this;if(!e){console.warn("layout cannot be null");return}if(a&&this.get("enabledStack")&&this.pushStack("layout",{before:i.get("layout"),after:e}),i.set("layout",e),i.set("layoutMethod",i.getLayout()),i.layout(),r){var o=n;o||(r==="begin"?o={x:0,y:0}:o={x:this.getWidth()/2,y:this.getHeight()/2}),o=this.getPointByCanvas(o.x,o.y);var s=this.getGroup().getMatrix()||[1,0,0,0,1,0,0,0,1];o.x=o.x*s[0]+s[6],o.y=o.y*s[0]+s[7];var l=this.getGroup().getCanvasBBox(),h=l.minX,p=l.maxX,D=l.minY,I=l.maxY,F={x:(h+p)/2,y:(D+I)/2};r==="begin"&&(F.x=h,F.y=D),this.translate(o.x-F.x,o.y-F.y)}},t.prototype.refreshLayout=function(e){console.warn("Please call layout instead of refreshLayout. refreshLayout will be discarded soon");var r=this;r.layout(e)},t.prototype.layout=function(e){var r=this,n=this,a=n.get("data"),i=n.get("layoutMethod"),o=n.get("layout"),s=a;if(o==null?void 0:o.excludeInvisibles){a=(0,m.clone)(n.get("data"));var l={};su(a,function(D){var I=D.children;if(!(I==null?void 0:I.length))return!0;for(var F=I.length-1;F>=0;F--){var Z=r.findById(I[F].id),ee=Z?!Z.isVisible():I[F].visible===!1;ee&&(l[D.id]=l[D.id]||[],l[D.id].push({idx:F,child:I.splice(F,1)[0]}))}}),s=i?i(a,n.get("layout")):a,su(s,function(D){var I=l[D.id];if(I==null?void 0:I.length)for(var F=I.length-1;F>=0;F--){var Z=I[F],ee=Z.idx,se=Z.child;D.children.splice(ee,0,se)}})}else s=i?i(a,n.get("layout")):a;var h=n.get("animate");if(n.emit("beforerefreshlayout",{data:a,layoutData:s}),n.emit("beforelayout"),n.innerUpdateChild(s,void 0,h),e){var p=n.get("viewController");p.fitView()}h?n.layoutAnimate(s):(n.refresh(),n.paint()),n.emit("afterrefreshlayout",{data:a,layoutData:s}),n.emit("afterlayout")},t.prototype.addChild=function(e,r,n){n===void 0&&(n=!0);var a=this;a.emit("beforeaddchild",{model:e,parent:r}),(0,m.isString)(r)||(r=r.get("id"));var i=a.findDataById(r);if(i){i.children||(i.children=[]),i.children.push(e);var o=a.findById(r);o.refresh(),a.changeData(void 0,n)}},t.prototype.updateChildren=function(e,r,n){n===void 0&&(n=!0);var a=this,i=a.findById(r);if(!r||!i){console.warn("Update children failed! There is no node with id '".concat(r,"'"));return}var o=a.findDataById(r);o.children=e,i.refresh(),a.changeData(void 0,n)},t.prototype.updateChild=function(e,r,n){n===void 0&&(n=!0);var a=this;if(!r||!a.findById(r)){a.changeData(e,n);return}var i=a.findDataById(r),o=a.findById(e.id);if(i.children||(i.children=[]),!o)i.children.push(e);else{var s=t.indexOfChild(i.children,e.id);s>-1&&(i.children[s]=e)}var l=a.findById(r);l==null||l.refresh(),a.changeData(void 0,n)},t.prototype.removeChild=function(e,r){r===void 0&&(r=!0);var n=this,a=n.findById(e),i;if(a?i=a==null?void 0:a.get("parent"):i=n.getNodes().find(function(p){var D=p.getModel().children||[];return!!D.find(function(I){return I.id===e})}),i&&!i.destroyed){var o=i.get("id"),s=n.findDataById(o),l=s&&s.children||[],h=t.indexOfChild(l,e);l.splice(h,1),i.refresh()}n.changeData(void 0,r)},t.prototype.findDataById=function(e,r){var n=this;if(r||(r=n.get("data")),e===r.id)return r;var a=null;return(0,m.each)(r.children||[],function(i){if(i.id===e)return a=i,!1;if(a=n.findDataById(e,i),a)return!1}),a},t.prototype.layoutAnimate=function(e,r){var n=this,a=this.get("animateCfg");n.emit("beforeanimate",{data:e}),n.getEdges().forEach(function(i){var o=i.get("model");o.sourceAnchor||(o.sourceAnchor=i.get("sourceAnchorIndex"))}),this.get("canvas").animate(function(i){su(e,function(o){var s=n.findById(o.id);if(s){var l=s.get("originAttrs"),h=s.get("model");if(l||(l={x:h.x,y:h.y},s.set("originAttrs",l)),r){var p=r(s,i,l,e);s.set("model",Object.assign(h,p))}else h.x=l.x+(o.x-l.x)*i,h.y=l.y+(o.y-l.y)*i}return!0}),(0,m.each)(n.get("removeList"),function(o){var s=o.getModel(),l=o.get("originAttrs"),h=o.get("to");s.x=l.x+(h.x-l.x)*i,s.y=l.y+(h.y-l.y)*i}),n.refreshPositions()},{duration:a.duration,easing:a.ease,callback:function(){(0,m.each)(n.getNodes(),function(o){o.set("originAttrs",null)}),(0,m.each)(n.get("removeList"),function(o){n.removeItem(o,!1)}),n.set("removeList",[]),a.callback&&a.callback(),n.emit("afteranimate",{data:e})},delay:a.delay})},t.prototype.stopLayoutAnimate=function(){this.get("canvas").stopAnimate(),this.emit("layoutanimateend",{data:this.get("data")}),this.layoutAnimating=!1},t.prototype.isLayoutAnimating=function(){return this.layoutAnimating},t.prototype.render=function(e){e===void 0&&(e=!0);var r=this,n=r.get("data");if(!n||!(0,m.isObject)(n)||!Object.keys(n).length)throw new Error("data must be defined first");r.clear(),e&&this.get("enabledStack")&&this.clearStack(),r.emit("beforerender"),r.layout(this.get("fitView")),r.emit("afterrender")},t.prototype.save=function(){return this.get("data")},t.prototype.data=function(e){c.prototype.data.call(this,e),this.set("originData",JSON.parse(JSON.stringify(e)))},t}(ys),yl=pl,Kn=z(45442),ms=function(){function c(t){this._cfgs=(0,m.deepMix)(this.getDefaultCfgs(),t),this._events={},this.destroyed=!1}return c.prototype.getDefaultCfgs=function(){return{}},c.prototype.initPlugin=function(t){var e=this;e.set("graph",t);var r=e.getEvents(),n={};(0,m.each)(r,function(a,i){var o=(0,m.wrapBehavior)(e,a);n[i]=o,t.on(i,o)}),this._events=n,this.init()},c.prototype.getEvents=function(){return{}},c.prototype.get=function(t){var e;return(e=this._cfgs)===null||e===void 0?void 0:e[t]},c.prototype.set=function(t,e){this._cfgs[t]=e},c.prototype.destroy=function(){},c.prototype.destroyPlugin=function(){this.destroy();var t=this.get("graph"),e=this._events;(0,m.each)(e,function(r,n){t.off(n,r)}),this._events=null,this._cfgs=null,this.destroyed=!0},c}(),Qi=ms,Wc=function(){var c=function(e,r){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},c(e,r)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");c(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),rc="url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PHBhdHRlcm4gaWQ9ImdyaWQiIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgcGF0dGVyblVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHBhdGggZD0iTSAwIDEwIEwgNDAgMTAgTSAxMCAwIEwgMTAgNDAgTSAwIDIwIEwgNDAgMjAgTSAyMCAwIEwgMjAgNDAgTSAwIDMwIEwgNDAgMzAgTSAzMCAwIEwgMzAgNDAiIGZpbGw9Im5vbmUiIHN0cm9rZT0iI2UwZTBlMCIgb3BhY2l0eT0iMC4yIiBzdHJva2Utd2lkdGg9IjEiLz48cGF0aCBkPSJNIDQwIDAgTCAwIDAgMCA0MCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZTBlMGUwIiBzdHJva2Utd2lkdGg9IjEiLz48L3BhdHRlcm4+PC9kZWZzPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JpZCkiLz48L3N2Zz4=)",ml=function(c){Wc(t,c);function t(e){return c.call(this,e)||this}return t.prototype.getDefaultCfgs=function(){return{img:rc,follow:!0}},t.prototype.init=function(){var e=this.get("graph"),r=e.get("container"),n=e.get("canvas").get("el"),a=this.get("img")||rc;a.includes("url(")||(a='url("'.concat(a,'")'));var i=(0,Aa.Z)(`
      `),o=(0,Aa.Z)(`
      `));this.set("container",i),this.set("gridContainer",o),this.positionInit(),i.appendChild(o),r.insertBefore(i,n)},t.prototype.positionInit=function(){var e=this.get("graph"),r=e.get("minZoom"),n=e.get("width"),a=e.get("height");(0,Kn.Z)(this.get("container"),{width:"".concat(n,"px"),height:"".concat(a,"px")});var i=n*80/r,o=a*80/r;(0,Kn.Z)(this.get("gridContainer"),{width:"".concat(i,"px"),height:"".concat(o,"px"),left:"-".concat(i/2,"px"),top:"-".concat(o/2,"px")})},t.prototype.getEvents=function(){return{viewportchange:"updateGrid"}},t.prototype.updateGrid=function(e){var r=this.get("gridContainer"),n=e.matrix;n||(n=[1,0,0,0,1,0,0,0,1]);var a=this.get("follow"),i="matrix(".concat(n[0],", ").concat(n[1],", ").concat(n[3],", ").concat(n[4],", ").concat(a?n[6]:"0",", ").concat(a?n[7]:"0",")");(0,Kn.Z)(r,{transform:i})},t.prototype.getContainer=function(){return this.get("container")},t.prototype.destroy=function(){var e=this.get("graph"),r=e.get("container"),n=this.get("container");r.removeChild(n)},t}(Qi),jc=ml,El=z(38186),pi=z.n(El),Xc=function(){var c=function(e,r){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},c(e,r)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");c(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}();typeof document!="undefined"&&pi()(` + .g6-component-contextmenu { + border: 1px solid #e2e2e2; + border-radius: 4px; + font-size: 12px; + color: #545454; + background-color: rgba(255, 255, 255, 0.9); + padding: 10px 8px; + box-shadow: rgb(174, 174, 174) 0px 0px 10px; + } + .g6-contextmenu-ul { + padding: 0; + margin: 0; + list-style: none; + } + +`);var uu=function(c){Xc(t,c);function t(e){return c.call(this,e)||this}return t.prototype.getDefaultCfgs=function(){return{offsetX:6,offsetY:6,handleMenuClick:void 0,getContent:function(r){return` +
        +
      • \u83DC\u5355\u98791
      • +
      • \u83DC\u5355\u98792
      • +
      + `},shouldBegin:function(r){return!0},onHide:function(){return!0},itemTypes:["node","edge","combo"],trigger:"contextmenu"}},t.prototype.getEvents=function(){return this.get("trigger")==="click"?{click:"onMenuShow",touchend:"onMenuShow"}:{contextmenu:"onMenuShow"}},t.prototype.init=function(){var e=this.get("className"),r=(0,Aa.Z)("
      "));(0,Kn.Z)(r,{top:"0px",position:"absolute",visibility:"hidden"});var n=this.get("container");n||(n=this.get("graph").get("container")),(0,m.isString)(n)&&(n=document.getElementById(n)),n.appendChild(r),this.set("menu",r)},t.prototype.onMenuShow=function(e){var r=this;e.preventDefault();var n=this.get("itemTypes");if(e.item){if(e.item&&e.item.getType&&n.indexOf(e.item.getType())===-1){r.onMenuHide();return}}else if(n.indexOf("canvas")===-1){r.onMenuHide();return}var a=this.get("shouldBegin");if(!!a(e)){var i=this.get("menu"),o=this.get("getContent"),s=this.get("graph"),l=o(e,s);(0,m.isString)(l)?i.innerHTML=l:i.innerHTML=l.outerHTML,this.removeMenuEventListener();var h=this.get("handleMenuClick");if(h){var p=function(He){h(He.target,e.item,s)};this.set("handleMenuClickWrapper",p),i.addEventListener("click",p)}var D=s.get("width"),I=s.get("height"),F=i.getBoundingClientRect(),Z=this.get("offsetX")||0,ee=this.get("offsetY")||0,se=s.getContainer().offsetTop,oe=s.getContainer().offsetLeft,ce=e.canvasX+oe+Z,we=e.canvasY+se+ee;ce+F.width>D&&(ce=e.canvasX-F.width-Z+oe),we+F.height>I&&(we=e.canvasY-F.height-ee+se),(0,Kn.Z)(i,{top:"".concat(we,"px"),left:"".concat(ce,"px"),visibility:"visible"});var Re=this.get("trigger")==="click",Oe=function(He){if(Re){Re=!1;return}r.onMenuHide()};document.body.addEventListener("click",Oe),this.set("handler",Oe)}},t.prototype.removeMenuEventListener=function(){var e=this.get("handleMenuClickWrapper"),r=this.get("handler");if(e){var n=this.get("menu");n.removeEventListener("click",e),this.set("handleMenuClickWrapper",null)}r&&document.body.removeEventListener("click",r)},t.prototype.onMenuHide=function(){var e=this.get("menu");e&&(0,Kn.Z)(e,{visibility:"hidden"}),this.removeMenuEventListener()},t.prototype.destroy=function(){var e=this.get("menu");if(this.removeMenuEventListener(),e){var r=this.get("container");r||(r=this.get("graph").get("container")),(0,m.isString)(r)&&(r=document.getElementById(r)),r.removeChild(e)}},t}(Qi),Es=uu,Vc=function(){var c=function(e,r){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},c(e,r)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");c(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Fu=function(){return Fu=Object.assign||function(c){for(var t,e=1,r=arguments.length;e-1,l=navigator.userAgent.toLowerCase().indexOf("safari")>-1,h=(0,Aa.Z)(` +
      `)),p=0,D=0,I=!1,F=0,Z=0,ee=0,se=0,oe=0,ce=0,we=l||s?"mousedown":"dragstart";h.addEventListener(we,function(He){var at,qe;if(He.dataTransfer){var yt=new Image;yt.src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' %3E%3Cpath /%3E%3C/svg%3E",(qe=(at=He.dataTransfer).setDragImage)===null||qe===void 0||qe.call(at,yt,0,0);try{He.dataTransfer.setData("text/html","view-port-minimap")}catch(yr){He.dataTransfer.setData("text","view-port-minimap")}}if(r.refresh=!1,He.target===h){var Ft=h.style;F=parseInt(Ft.left,10),Z=parseInt(Ft.top,10),ee=parseInt(Ft.width,10),se=parseInt(Ft.height,10),!(ee>n[0]||se>n[1])&&(ce=a.getZoom(),oe=e.get("ratio"),I=!0,p=He.clientX,D=He.clientY)}},!1);var Re=function(at){if(!(!I||(0,m.isNil)(at.clientX)||(0,m.isNil)(at.clientY))){var qe=p-at.clientX,yt=D-at.clientY;(F-qe<0||F-qe+ee>=n[0])&&(qe=0),(Z-yt<0||Z-yt+se>=n[1])&&(yt=0),F-=qe,Z-=yt,(0,Kn.Z)(h,{left:"".concat(F,"px"),top:"".concat(Z,"px")}),a.translate(qe*ce/oe,yt*ce/oe),p=at.clientX,D=at.clientY}};!l&&!s&&h.addEventListener("drag",Re,!1);var Oe=function(){I=!1,r.refresh=!0},Pe=l||s?"mouseup":"dragend";h.addEventListener(Pe,Oe,!1),o.addEventListener("mouseleave",Oe),o.addEventListener("mouseup",Oe),(l||s)&&o.addEventListener("mousemove",Re,!1),this.set("viewport",h),o.appendChild(h)}},t.prototype.updateViewport=function(){if(!this.destroyed){var e=this.get("ratio"),r=this.get("totaldx"),n=this.get("totaldy"),a=this.get("graph"),i=this.get("size"),o=a.get("canvas").get("el"),s=a.get("width")||o.scrollWidth||500,l=a.get("height")||o.scrollHeight||500,h=a.getPointByCanvas(0,0),p=a.getPointByCanvas(s,l),D=this.get("viewport");D||this.initViewport();var I=(p.x-h.x)*e,F=(p.y-h.y)*e,Z=h.x*e+r,ee=h.y*e+n,se=Z+I,oe=ee+F;Z<0&&(I+=Z,Z=0),se>i[0]&&(I=I-(se-i[0])),ee<0&&(F+=ee,ee=0),oe>i[1]&&(F=F-(oe-i[1])),this.set("ratio",e);var ce="".concat(Z,"px"),we="".concat(ee,"px");(0,Kn.Z)(D,{left:ce,top:we,width:"".concat(I,"px"),height:"".concat(F,"px")})}},t.prototype.updateGraphShapes=function(){var e=this._cfgs.graph,r=this.get("canvas"),n=e.get("group");if(!n.destroyed){r.clear();var a;this.get("hideEdge")?(a=r.addGroup(),n.get("children").forEach(function(o){o.get("id").includes("-edge")||a.add(o.clone())})):(a=n.clone(),a.resetMatrix(),r.add(a));var i=e.get("renderer");i===Ri&&this.updateVisible(a)}},t.prototype.updateVisible=function(e){var r=this;if(!e.isGroup()&&!e.get("visible"))e.hide();else{var n=e.get("children");if(!n||!n.length)return;n.forEach(function(a){a.get("visible")||a.hide(),r.updateVisible(a)})}},t.prototype.updateKeyShapes=function(){var e=this,r=this._cfgs.graph,n=this.get("canvas"),a=n.get("children")[0]||n.addGroup();this.get("hideEdge")||(0,m.each)(r.getEdges(),function(s){e.updateOneEdgeKeyShape(s,a)}),(0,m.each)(r.getNodes(),function(s){e.updateOneNodeKeyShape(s,a)});var i=r.getCombos();if(i&&i.length){var o=a.find(function(s){return s.get("name")==="comboGroup"})||a.addGroup({name:"comboGroup"});setTimeout(function(){e.destroyed||((0,m.each)(i,function(s){e.updateOneComboKeyShape(s,o)}),o==null||o.sort(),o==null||o.toBack(),e.updateCanvas())},250)}this.clearDestroyedShapes()},t.prototype.updateOneComboKeyShape=function(e,r){if(!this.destroyed){var n=this.get("itemMap")||{},a=n[e.get("id")],i=e.getBBox(),o=e.get("keyShape").clone(),s=o.attr(),l={x:i.centerX,y:i.centerY};a?l=Object.assign(s,l):(a=o,r.add(a));var h=a.get("type");(h==="rect"||h==="image")&&(l.x=i.minX,l.y=i.minY),a.attr(l),e.isVisible()?a.show():a.hide(),a.exist=!0;var p=e.getModel().depth;isNaN(p)||a.set("zIndex",p),n[e.get("id")]=a,this.set("itemMap",n)}},t.prototype.updateOneNodeKeyShape=function(e,r){var n=this.get("itemMap")||{},a=n[e.get("id")],i=e.getBBox(),o=e.get("keyShape").clone(),s=o.attr(),l={x:i.centerX,y:i.centerY};a?(l=Object.assign(s,l),a.toFront()):(a=o,r.add(a));var h=a.get("type");(h==="rect"||h==="image")&&(l.x=i.minX,l.y=i.minY),a.attr(l),e.isVisible()?a.show():a.hide(),a.exist=!0;var p=e.getModel().depth;isNaN(p)||a.set("zIndex",p),n[e.get("id")]=a,this.set("itemMap",n)},t.prototype.updateDelegateShapes=function(){var e=this,r=this._cfgs.graph,n=this.get("canvas"),a=n.get("children")[0]||n.addGroup();this.get("hideEdge")||(0,m.each)(r.getEdges(),function(s){e.updateOneEdgeKeyShape(s,a)}),(0,m.each)(r.getNodes(),function(s){e.updateOneNodeDelegateShape(s,a)});var i=r.getCombos();if(i&&i.length){var o=a.find(function(s){return s.get("name")==="comboGroup"})||a.addGroup({name:"comboGroup"});setTimeout(function(){e.destroyed||((0,m.each)(i,function(s){e.updateOneComboKeyShape(s,o)}),o==null||o.sort(),o==null||o.toBack(),e.updateCanvas())},250)}this.clearDestroyedShapes()},t.prototype.clearDestroyedShapes=function(){var e=this.get("itemMap")||{},r=Object.keys(e);if(!(!r||r.length===0))for(var n=r.length-1;n>=0;n--){var a=e[r[n]],i=a.exist;a.exist=!1,i||(a.remove(),delete e[r[n]])}},t.prototype.updateOneEdgeKeyShape=function(e,r){var n=this.get("itemMap")||{},a=n[e.get("id")];if(a){var i=e.get("keyShape").attr("path");a.attr("path",i)}else a=e.get("keyShape").clone(),r.add(a);e.isVisible()?a.show():a.hide(),a.exist=!0,n[e.get("id")]=a,this.set("itemMap",n)},t.prototype.updateOneNodeDelegateShape=function(e,r){var n=this.get("delegateStyle"),a=this.get("itemMap")||{},i=a[e.get("id")],o=e.getBBox();if(i){var s={x:o.minX,y:o.minY,width:o.width,height:o.height};i.attr(s),i.toFront()}else i=r.addShape("rect",{attrs:Fu({x:o.minX,y:o.minY,width:o.width,height:o.height},n),name:"minimap-node-shape"});e.isVisible()?i.show():i.hide(),i.exist=!0,a[e.get("id")]=i,this.set("itemMap",a)},t.prototype.init=function(){this.initContainer(),this.get("graph").on("afterupdateitem",this.handleUpdateCanvas),this.get("graph").on("afteritemstatechange",this.handleUpdateCanvas),this.get("graph").on("afteradditem",this.handleUpdateCanvas),this.get("graph").on("afterremoveitem",this.handleUpdateCanvas),this.get("graph").on("afterrender",this.handleUpdateCanvas),this.get("graph").on("afterlayout",this.handleUpdateCanvas)},t.prototype.initContainer=function(){var e=this,r=e.get("graph"),n=e.get("size"),a=e.get("className"),i=e.get("container"),o=(0,Aa.Z)("
      "));(0,m.isString)(i)&&(i=document.getElementById(i)),i?i.appendChild(o):r.get("container").appendChild(o),e.set("container",o);var s=(0,Aa.Z)('
      ');o.appendChild(s),s.addEventListener("dragenter",function(p){p.preventDefault()}),s.addEventListener("dragover",function(p){p.preventDefault()});var l,h=r.get("renderer");h===Ri?l=new Ps.Canvas({container:s,width:n[0],height:n[1]}):l=new so.Canvas({container:s,width:n[0],height:n[1]}),e.set("canvas",l),e.updateCanvas()},t.prototype.updateCanvas=function(){if(!this.destroyed){var e=this.get("refresh");if(!!e){var r=this.get("graph");if(!r.get("destroyed")){this.get("viewportChange")&&(this.set("viewportChange",!1),this.updateViewport());var n=this.get("size"),a=this.get("canvas"),i=this.get("type"),o=this.get("padding");if(!a.destroyed){switch(i){case Ji:this.updateGraphShapes();break;case bs:this.updateKeyShapes();break;case ci:this.updateDelegateShapes();break;default:break}var s=a.get("children")[0];if(!!s){s.resetMatrix();var l=s.getCanvasBBox(),h=r.get("canvas").getCanvasBBox(),p=r.getZoom()||1,D=h.width/p,I=h.height/p;Number.isFinite(l.width)&&(D=Gu(l.width,D),I=Gu(l.height,I)),D+=2*o,I+=2*o;var F=Math.min(n[0]/D,n[1]/I),Z=[1,0,0,0,1,0,0,0,1],ee=0,se=0;Number.isFinite(l.minX)&&(ee=-l.minX),Number.isFinite(l.minY)&&(se=-l.minY);var oe=(n[0]-(D-2*o)*F)/2,ce=(n[1]-(I-2*o)*F)/2;Z=Yc(Z,[["t",ee,se],["s",F,F],["t",oe,ce]]),s.setMatrix(Z),this.set("ratio",F),this.set("totaldx",oe+ee*F),this.set("totaldy",ce+se*F),this.set("dx",oe),this.set("dy",ce),this.updateViewport()}}}}}},t.prototype.getCanvas=function(){return this.get("canvas")},t.prototype.getViewport=function(){return this.get("viewport")},t.prototype.getContainer=function(){return this.get("container")},t.prototype.destroy=function(){var e;(e=this.get("canvas"))===null||e===void 0||e.destroy();var r=this.get("container");(r==null?void 0:r.parentNode)&&r.parentNode.removeChild(r)},t}(Qi),bl=Ef,Hc=function(){var c=function(e,r){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},c(e,r)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");c(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}();function Yo(c,t,e){var r=c.x-t.x,n=c.y-t.y;return!e||Math.abs(r)>e||Math.abs(n)>e?Math.sqrt(r*r+n*n):e}function xl(c,t){return c.x*t.x+c.y*t.y}function nc(c,t){var e=(t.source.y-t.target.y)/(t.source.x-t.target.x),r=(e*e*t.source.x+e*(c.y-t.source.y)+c.x)/(e*e+1),n=e*(r-t.source.x)+t.source.y;return{x:r,y:n}}var wl=function(c){Hc(t,c);function t(e){return c.call(this,e)||this}return t.prototype.getDefaultCfgs=function(){return{edgeBundles:[],edgePoints:[],K:.1,lambda:.1,divisions:1,divRate:2,cycles:6,iterations:90,iterRate:.6666667,bundleThreshold:.6,eps:1e-6,onLayoutEnd:function(){},onTick:function(){}}},t.prototype.init=function(){var e=this.get("graph"),r=this.get("onTick"),n=function(){r&&r(),e.refreshPositions()};this.set("tick",n)},t.prototype.bundling=function(e){var r=this;if(r.set("data",e),!r.isTicking()){var n=e.edges||[],a=e.nodes||[],i={},o=!1;if(a.forEach(function(we){(we.x===null||!we.y===null||we.x===void 0||!we.y===void 0)&&(o=!0),i[we.id]=we}),o)throw new Error("please layout the graph or assign x and y for nodes first");r.set("nodeIdMap",i);var s=r.get("divisions"),l=r.get("divRate"),h=r.divideEdges(s);r.set("edgePoints",h);var p=r.getEdgeBundles();r.set("edgeBundles",p);for(var D=r.get("cycles"),I=r.get("iterations"),F=r.get("iterRate"),Z=r.get("lambda"),ee=0;eeF;){var ce=F/oe,we={x:i[s][se-1].x,y:i[s][se-1].y};we.x+=ce*(ee.x-i[s][se-1].x),we.y+=ce*(ee.y-i[s][se-1].y),Z.push(we),oe-=F,F=I}F-=oe}}),Z.push({x:p.x,y:p.y}),i[s]=Z}}),i},t.prototype.getEdgeLength=function(e){var r=0;return e.forEach(function(n,a){a!==0&&(r+=Yo(n,e[a-1]))}),r},t.prototype.getEdgeBundles=function(){var e=this,r=e.get("data"),n=r.edges||[],a=e.get("bundleThreshold"),i=e.get("nodeIdMap"),o=e.get("edgeBundles");return o||(o=[]),n.forEach(function(s,l){(!o[l]||o[l]===void 0)&&(o[l]=[])}),n.forEach(function(s,l){var h=i[s.source],p=i[s.target];n.forEach(function(D,I){if(!(I<=l)){var F=i[D.source],Z=i[D.target],ee=e.getBundleScore({source:h,target:p},{source:F,target:Z});ee>=a&&(o[l].push(I),o[I].push(l))}})}),o},t.prototype.getBundleScore=function(e,r){var n=this;e.vx=e.target.x-e.source.x,e.vy=e.target.y-e.source.y,r.vx=r.target.x-r.source.x,r.vy=r.target.y-r.source.y,e.length=Yo({x:e.source.x,y:e.source.y},{x:e.target.x,y:e.target.y}),r.length=Yo({x:r.source.x,y:r.source.y},{x:r.target.x,y:r.target.y});var a=n.getAngleScore(e,r),i=n.getScaleScore(e,r),o=n.getPositionScore(e,r),s=n.getVisibilityScore(e,r);return a*i*o*s},t.prototype.getAngleScore=function(e,r){var n=xl({x:e.vx,y:e.vy},{x:r.vx,y:r.vy});return n/(e.length*r.length)},t.prototype.getScaleScore=function(e,r){var n=(e.length+r.length)/2,a=2/(n/Math.min(e.length,r.length)+Math.max(e.length,r.length)/n);return a},t.prototype.getPositionScore=function(e,r){var n=(e.length+r.length)/2,a={x:(e.source.x+e.target.x)/2,y:(e.source.y+e.target.y)/2},i={x:(r.source.x+r.target.x)/2,y:(r.source.y+r.target.y)/2},o=Yo(a,i);return n/(n+o)},t.prototype.getVisibilityScore=function(e,r){var n=this.getEdgeVisibility(e,r),a=this.getEdgeVisibility(r,e);return na||Math.abs(p.y)>a){var D=Yo(o[h][e],o[r][e]),I=1/D;l.x+=p.x*I,l.y+=p.y*I}}),l},t.prototype.isTicking=function(){return this.get("ticking")},t.prototype.getSimulation=function(){return this.get("forceSimulation")},t.prototype.destroy=function(){this.get("ticking")&&this.getSimulation().stop(),c.prototype.destroy.call(this)},t}(Qi),Sl=wl,_l=function(){var c=function(e,r){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},c(e,r)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");c(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),ac=function(){return ac=Object.assign||function(c){for(var t,e=1,r=arguments.length;e(l||n.get("height"))&&a>1||p<(h||n.get("height")*.05)&&a<1)&&(a=1),p*=a,r.set("r",p),r.set("r2",p*p);var D=r.get("d");r.set("molecularParam",(D+1)*p),r.set("delegateCenterDiff",void 0),r.magnify(e,s)}},t.prototype.scaleRByDrag=function(e){var r=this;if(!!e){var n=r.get("dragPrePos"),a=r.get("graph"),i,o=a.getPointByClient(e.clientX,e.clientY);e.x-n.x<0?i=1-zu:i=1/(1-zu);var s=r.get("maxR"),l=r.get("minR"),h=r.get("r");(h>(s||a.get("height"))&&i>1||h<(l||a.get("height")*.05)&&i<1)&&(i=1),h*=i,r.set("r",h),r.set("r2",h*h);var p=r.get("d");r.set("molecularParam",(p+1)*h),r.magnify(e,o),r.set("dragPrePos",{x:e.x,y:e.y})}},t.prototype.scaleDByWheel=function(e){var r=this;if(!(!e&&!e.originalEvent)){e.preventDefault&&e.preventDefault();var n=0;e.originalEvent.wheelDelta<0?n=-.1:n=.1;var a=r.get("d"),i=a+n,o=r.get("maxD"),s=r.get("minD");if(is){r.set("d",i);var l=r.get("r");r.set("molecularParam",(i+1)*l);var h=r.get("delegate"),p=h?{x:h.attr("x"),y:h.attr("y")}:void 0;r.set("delegateCenterDiff",void 0),r.magnify(e,p)}}},t.prototype.scaleDByDrag=function(e){var r=this,n=r.get("dragPrePos"),a=e.x-n.x>0?.1:-.1,i=r.get("d"),o=i+a,s=r.get("maxD"),l=r.get("minD");if(ol){r.set("d",o);var h=r.get("r");r.set("molecularParam",(o+1)*h),r.magnify(e)}r.set("dragPrePos",{x:e.x,y:e.y})},t.prototype.magnify=function(e,r){var n=this;n.restoreCache();var a=n.get("graph"),i=n.get("cachedMagnifiedModels"),o=n.get("cachedOriginPositions"),s=n.get("showLabel"),l=n.get("r"),h=n.get("r2"),p=n.get("d"),D=n.get("molecularParam"),I=a.getNodes(),F=I.length,Z=r?{x:r.x,y:r.y}:{x:e.x,y:e.y};n.get("dragging")&&(n.get("trigger")==="mousemove"||n.get("trigger")==="click")&&(Z=n.get("cacheCenter"));var ee=n.get("delegateCenterDiff");ee&&(Z.x+=ee.x,Z.y+=ee.y),n.updateDelegate(Z,l);for(var se=0;se +
    • + + + +
    • +
    • + + + +
    • +
    • + + + +
    • +
    • + + + +
    • +
    • + + + +
    • +
    • + + + +
    • + + `},zoomSensitivity:2}},t.prototype.init=function(){var e=this,r=this.get("graph"),n=this.get("getContent"),a=n(r),i=a;(0,m.isString)(a)&&(i=(0,Aa.Z)(a));var o=this.get("className");i.setAttribute("class",o||"g6-component-toolbar");var s=this.get("container");s||(s=this.get("graph").get("container")),(0,m.isString)(s)&&(s=document.getElementById(s)),s.appendChild(i),this.set("toolBar",i);var l=this.get("handleClick");i.addEventListener("click",function(p){var D=Kc(p).filter(function(F){return F.nodeName==="LI"});if(D.length!==0){var I=D[0].getAttribute("code");!I||(l?l(I,r):e.handleDefaultOperator(I))}});var h=this.get("position");h&&(0,Kn.Z)(i,{top:"".concat(h.y,"px"),left:"".concat(h.x,"px")}),this.bindUndoRedo()},t.prototype.bindUndoRedo=function(){var e=this.get("graph"),r=document.querySelector('.g6-component-toolbar li[code="undo"]'),n=document.querySelector('.g6-component-toolbar li[code="undo"] svg'),a=document.querySelector('.g6-component-toolbar li[code="redo"]'),i=document.querySelector('.g6-component-toolbar li[code="redo"] svg');!r||!n||!a||!i||(r.setAttribute("style","cursor: not-allowed"),n.setAttribute("style","opacity: 0.4"),a.setAttribute("style","cursor: not-allowed"),i.setAttribute("style","opacity: 0.4"),e.on("stackchange",function(o){var s=o.undoStack,l=o.redoStack,h=s.length,p=l.length;h===0?(r.setAttribute("style","cursor: not-allowed"),n.setAttribute("style","opacity: 0.4")):(r.removeAttribute("style"),n.removeAttribute("style")),p===0?(a.setAttribute("style","cursor: not-allowed"),i.setAttribute("style","opacity: 0.4")):(a.removeAttribute("style"),i.removeAttribute("style"))}))},t.prototype.undo=function(){var e=this.get("graph"),r=e.getUndoStack();if(!(!r||r.length===0)){var n=r.pop();if(n){var a=n.action;e.pushStack(a,(0,m.clone)(n.data),"redo");var i=n.data.before;if(a==="add"&&(i=n.data.after),!i)return;switch(a){case"visible":{Object.keys(i).forEach(function(p){var D=i[p];!D||D.forEach(function(I){var F=e.findById(I.id);I.visible?e.showItem(F,!1):e.hideItem(F,!1)})});break}case"render":case"update":Object.keys(i).forEach(function(p){var D=i[p];!D||D.forEach(function(I){var F=e.findById(I.id);delete I.id,e.updateItem(F,I,!1),F.getType()==="combo"&&e.updateCombo(F)})});break;case"changedata":e.changeData(i,!1);break;case"delete":{Object.keys(i).forEach(function(p){var D=i[p];!D||D.forEach(function(I){var F=I.itemType;delete I.itemType,e.addItem(F,I,!1)})});break}case"add":Object.keys(i).forEach(function(p){var D=i[p];!D||D.forEach(function(I){e.removeItem(I.id,!1)})});break;case"updateComboTree":Object.keys(i).forEach(function(p){var D=i[p];!D||D.forEach(function(I){e.updateComboTree(I.id,I.parentId,!1)})});break;case"createCombo":var o=n.data.after.combos,s=o[o.length-1];Object.keys(i).forEach(function(p){var D=i[p];!D||D.forEach(function(I){e.updateComboTree(I.id,I.parentId,!1)})}),e.removeItem(s.id,!1);break;case"uncombo":var l=i.combos[i.combos.length-1],h=i.nodes.concat(i.combos).map(function(p){return p.id}).filter(function(p){return p!==l.id});e.createCombo(l,h,!1);break;case"layout":e.updateLayout(i,void 0,void 0,!1);break;default:}}}},t.prototype.redo=function(){var e=this.get("graph"),r=e.getRedoStack();if(!(!r||r.length===0)){var n=r.pop();if(n){var a=n.action,i=n.data.after;if(e.pushStack(a,(0,m.clone)(n.data)),a==="delete"&&(i=n.data.before),!i)return;switch(a){case"visible":{Object.keys(i).forEach(function(h){var p=i[h];!p||p.forEach(function(D){var I=e.findById(D.id);D.visible?e.showItem(I,!1):e.hideItem(I,!1)})});break}case"render":case"update":Object.keys(i).forEach(function(h){var p=i[h];!p||p.forEach(function(D){var I=e.findById(D.id);delete D.id,e.updateItem(I,D,!1),I.getType()==="combo"&&e.updateCombo(I)})});break;case"changedata":e.changeData(i,!1);break;case"delete":i.edges&&i.edges.forEach(function(h){e.removeItem(h.id,!1)}),i.nodes&&i.nodes.forEach(function(h){e.removeItem(h.id,!1)}),i.combos&&i.combos.forEach(function(h){e.removeItem(h.id,!1)});break;case"add":{Object.keys(i).forEach(function(h){var p=i[h];!p||p.forEach(function(D){var I=D.itemType;delete D.itemType,e.addItem(I,D,!1)})});break}case"updateComboTree":Object.keys(i).forEach(function(h){var p=i[h];!p||p.forEach(function(D){e.updateComboTree(D.id,D.parentId,!1)})});break;case"createCombo":var o=i.combos[i.combos.length-1];e.createCombo(o,o.children.map(function(h){return h.id}),!1);break;case"uncombo":var s=n.data.before.combos,l=s[s.length-1];e.uncombo(l.id,!1);break;case"layout":e.updateLayout(i,void 0,void 0,!1);break;default:}}}},t.prototype.zoomOut=function(){var e=this.get("graph"),r=e.getZoom(),n=1/(1-ic*this.get("zoomSensitivity")),a=this.get("maxZoom")||e.get("maxZoom");n*r>a||e.zoomTo(r*n)},t.prototype.zoomIn=function(){var e=this.get("graph"),r=e.getZoom(),n=1-ic*this.get("zoomSensitivity"),a=this.get("minZoom")||e.get("minZoom");n*r\u7C7B\u578B\uFF1A`.concat(r.item.getType(),` + ID\uFF1A`).concat(r.item.getID(),` + `)},shouldBegin:function(r){return!0},itemTypes:["node","edge","combo"],trigger:"mouseenter",fixToNode:void 0}},t.prototype.getEvents=function(){return this.get("trigger")==="click"?{"node:click":"onClick","edge:click":"onClick","combo:click":"onClick","canvas:click":"onMouseLeave",afterremoveitem:"onMouseLeave",contextmenu:"onMouseLeave",drag:"onMouseLeave"}:{"node:mouseenter":"onMouseEnter","node:mouseleave":"onMouseLeave","node:mousemove":"onMouseMove","edge:mouseenter":"onMouseEnter","edge:mouseleave":"onMouseLeave","edge:mousemove":"onMouseMove","combo:mouseenter":"onMouseEnter","combo:mouseleave":"onMouseLeave","combo:mousemove":"onMouseMove",afterremoveitem:"onMouseLeave",contextmenu:"onMouseLeave","node:drag":"onMouseLeave"}},t.prototype.init=function(){var e=this,r=e.get("className")||"g6-component-tooltip",n=(0,Aa.Z)("
      ")),a=e.get("container");a||(a=e.get("graph").get("container")),(0,m.isString)(a)&&(a=document.getElementById(a)),(0,Kn.Z)(n,{position:"absolute",visibility:"hidden",display:"none"}),a.appendChild(n),e.get("trigger")!=="click"&&(n.addEventListener("mouseenter",function(i){(0,Kn.Z)(n,{visibility:"visible",display:"unset"})}),n.addEventListener("mouseleave",function(i){e.hideTooltip()})),e.set("tooltip",n)},t.prototype.onClick=function(e){var r=this.get("itemTypes");if(!(e.item&&e.item.getType&&r.indexOf(e.item.getType())===-1)){var n=e.item,a=this.get("graph");this.currentTarget===n?(this.currentTarget=null,this.hideTooltip(),a.emit("tooltipchange",{item:e.item,action:"hide"})):(this.currentTarget=n,this.showTooltip(e),a.emit("tooltipchange",{item:e.item,action:"show"}))}},t.prototype.onMouseEnter=function(e){var r=this.get("itemTypes");if(!(e.item&&e.item.getType&&r.indexOf(e.item.getType())===-1)){var n=e.item,a=this.get("graph");this.currentTarget=n,this.showTooltip(e),a.emit("tooltipchange",{item:e.item,action:"show"})}},t.prototype.onMouseMove=function(e){var r=this.get("itemTypes");e.item&&e.item.getType&&r.indexOf(e.item.getType())===-1||!this.currentTarget||e.item!==this.currentTarget||this.showTooltip(e)},t.prototype.onMouseLeave=function(){this.hideTooltip();var e=this.get("graph");e.emit("tooltipchange",{item:this.currentTarget,action:"hide"}),this.currentTarget=null},t.prototype.clearContainer=function(){var e=this.get("tooltip");e&&(e.innerHTML="")},t.prototype.showTooltip=function(e){if(!!e.item){var r=this.get("itemTypes");if(!(e.item.getType&&r.indexOf(e.item.getType())===-1)){var n=this.get("tooltip"),a=this.get("getContent"),i=a(e);(0,m.isString)(i)?n.innerHTML=i:(this.clearContainer(),n.appendChild(i)),this.updatePosition(e)}}},t.prototype.hideTooltip=function(){var e=this.get("tooltip");e&&(0,Kn.Z)(e,{visibility:"hidden",display:"none"})},t.prototype.updatePosition=function(e){var r=this.get("shouldBegin"),n=this.get("tooltip");if(!r(e)){(0,Kn.Z)(n,{visibility:"hidden",display:"none"});return}var a=this.get("graph"),i=a.get("width"),o=a.get("height"),s=this.get("offsetX")||0,l=this.get("offsetY")||0,h=a.getPointByClient(e.clientX,e.clientY),p=this.get("fixToNode"),D=e.item;if(D.getType&&D.getType()==="node"&&p&&(0,m.isArray)(p)&&p.length>=2){var I=D.getBBox();h={x:I.minX+I.width*p[0],y:I.minY+I.height*p[1]}}var F=a.getCanvasByPoint(h.x,h.y),Z=F.x,ee=F.y,se=a.getContainer(),oe={x:Z+se.offsetLeft+s,y:ee+se.offsetTop+l};(0,Kn.Z)(n,{visibility:"visible",display:"unset"});var ce=n.getBoundingClientRect();Z+ce.width+s>i&&(oe.x-=ce.width+s),ee+ce.height+l>o&&(oe.y-=ce.height+l,oe.y<0&&(oe.y=0)),(0,Kn.Z)(n,{left:"".concat(oe.x,"px"),top:"".concat(oe.y,"px")})},t.prototype.hide=function(){this.onMouseLeave()},t.prototype.destroy=function(){var e=this.get("tooltip");if(e){var r=this.get("container");r||(r=this.get("graph").get("container")),(0,m.isString)(r)&&(r=document.getElementById(r)),r.removeChild(e)}},t}(Qi),Zt=it,dr=z(86429),Yt=function(c,t,e){if(e||arguments.length===2)for(var r=0,n=t.length,a;rh&&(i=h,a=l)})}e.originalEvent.deltaY>0?a=Math.max(0,a-1):a=Math.min(t.speedAxisY.length-1,a+1);var o=t.speedAxisY[a]-n;r=Bn(r,[["t",0,o]]),t.speedPoint.setMatrix(r),t.currentSpeed=t.speedAxisY.length-a,t.speedText.attr("text","".concat(t.currentSpeed,".0X")),t.group.emit(Nt,{speed:t.currentSpeed,type:t.currentType})}),this.toggleGroup&&this.toggleGroup.on("toggle-model:click",function(e){var r,n,a=e.target.get("isChecked");a?(t.checkedIcon.hide(),t.checkedText.attr("text",((n=t.controllerCfg)===null||n===void 0?void 0:n.timePointControllerText)||"\u5355\u4E00\u65F6\u95F4"),t.currentType=Pa.RANGE):(t.checkedIcon.show(),t.checkedText.attr("text",((r=t.controllerCfg)===null||r===void 0?void 0:r.timeRangeControllerText)||"\u65F6\u95F4\u8303\u56F4"),t.currentType=Pa.SINGLE),e.target.set("isChecked",!a),t.group.emit(Nt,{type:t.currentType,speed:t.currentSpeed})})},c.prototype.destroy=function(){this.speedGroup.off("speed-rect:click"),this.toggleGroup&&(this.toggleGroup.off("toggle-model:click"),this.toggleGroup.destroy()),this.speedGroup.destroy()},c}(),Bi=Hn,Ln=function(){return Ln=Object.assign||function(c){for(var t,e=1,r=arguments.length;eZ?(Oe.show(),He.show(),Z=at.minX+at.width+10):(Oe.hide(),He.hide()),Oe}),this.controllerBtnGroup=new Bi(Ln({group:this.group,x:this.x,y:this.y+n+25,width:r,height:35},this.controllerCfg)),this.updateStartEnd(0),this.updateUI(),o.move(this.x,this.y),this.bindEvents(),this.currentMode===Pa.SINGLE&&(this.minHandlerShape.hide(),this.foregroundShape.hide(),this.minTextShape.hide())},c.prototype.bindEvents=function(){var t=this,e=this.group.find(function(n){return n.get("name")==="minHandlerShape"});e&&(e.on("minHandlerShape-handler:mousedown",this.onMouseDown(this.minHandlerShape)),e.on("minHandlerShape-handler:touchstart",this.onMouseDown(this.minHandlerShape)));var r=this.group.find(function(n){return n.get("name")==="maxHandlerShape"});r&&(r.on("maxHandlerShape-handler:mousedown",this.onMouseDown(this.maxHandlerShape)),r.on("maxHandlerShape-handler:touchstart",this.onMouseDown(this.maxHandlerShape))),this.foregroundShape.on("mousedown",this.onMouseDown(this.foregroundShape)),this.foregroundShape.on("touchstart",this.onMouseDown(this.foregroundShape)),this.group.on("".concat(Lt,":click"),function(){t.isPlay=!t.isPlay,t.currentHandler=t.maxHandlerShape,t.changePlayStatus()}),this.group.on("".concat(_r,":click"),function(){t.currentHandler=t.maxHandlerShape,t.updateStartEnd(.01),t.updateUI()}),this.group.on("".concat(Yr,":click"),function(){t.currentHandler=t.maxHandlerShape,t.updateStartEnd(-.01),t.updateUI()}),this.group.on(Nt,function(n){var a=n.type,i=n.speed;t.currentSpeed=i,t.currentMode=a,a===Pa.SINGLE?(t.minHandlerShape.hide(),t.foregroundShape.hide(),t.minTextShape.hide()):a===Pa.RANGE&&(t.minHandlerShape.show(),t.foregroundShape.show(),t.minTextShape.show())})},c.prototype.adjustTickIndex=function(t){for(var e=0;e1&&(this.end=1);var e=this.x+this.start*this.width,r=this.x+this.end*this.width;this.foregroundShape.attr("x",e),this.foregroundShape.attr("width",r-e);var n=(0,m.get)(this.handlerStyle,"width",Ho);this.setText(this.minText,this.maxText);var a=this.dodgeText([e,r]),i=a[0],o=a[1];this.minHandlerShape.setX(e-n/2),(0,m.each)(i,function(s,l){return t.minTextShape.attr(l,s)}),this.maxHandlerShape.setX(r-n/2),(0,m.each)(o,function(s,l){return t.maxTextShape.attr(l,s)}),this.currentMode===Pa.RANGE?this.graph.emit(Tt,{value:[this.start,this.end].sort()}):this.currentMode===Pa.SINGLE&&this.graph.emit(Tt,{value:[this.end,this.end]})},c.prototype.dodgeText=function(t){var e,r,n=2,a=(0,m.get)(this.handlerStyle,"width",Ho),i=this.minTextShape,o=this.maxTextShape,s=t[0],l=t[1],h=!1;s>l&&(e=[l,s],s=e[0],l=e[1],r=[o,i],i=r[0],o=r[1],h=!0);var p=i.getBBox(),D=o.getBBox(),I=null,F=null;return this.timeBarType==="trend"?(I=s-p.widththis.x+this.width?{x:l-a/2-n,textAlign:"right"}:{x:l+a/2+n,textAlign:"left"}):this.timeBarType==="simple"&&(I=i.attr("x")>p.width?{x:s,textAlign:"center"}:{x:s,textAlign:"left"},F=o.attr("x")>this.width-D.width?{x:l,textAlign:"right"}:{x:l,textAlign:"center"}),h?[F,I]:[I,F]},c.prototype.startPlay=function(){var t=this;return typeof window!="undefined"?window.requestAnimationFrame(function(){var e=t,r=e.ticks,n=e.width,a=t.currentSpeed,i=n/r.length,o=i/((10-a)*1e3/60),s=t.adjustOffsetRange(o/t.width);t.updateStartEnd(s),t.updateUI(),t.isPlay&&(t.playHandler=t.startPlay())}):void 0},c.prototype.changePlayStatus=function(t){t===void 0&&(t=!0),this.controllerBtnGroup.playButton.update({isPlay:this.isPlay}),this.isPlay?(this.playHandler=this.startPlay(),this.graph.emit(Mt,null)):this.playHandler&&(typeof window!="undefined"&&window.cancelAnimationFrame(this.playHandler),t&&this.graph.emit(sr,null))},c.prototype.destory=function(){this.graph.off(Tt,function(){});var t=this.group,e=t.find(function(n){return n.get("name")==="minHandlerShape"});e&&(e.off("minHandlerShape-handler:mousedown"),e.off("minHandlerShape-handler:touchstart"),e.destroy());var r=t.find(function(n){return n.get("name")==="maxHandlerShape"});r&&(r.off("maxHandlerShape-handler:mousedown"),r.off("maxHandlerShape-handler:touchstart"),r.destroy()),this.foregroundShape.off("mousedown"),this.foregroundShape.off("touchstart"),this.foregroundShape.destroy(),t.off("".concat(Lt,":click")),t.off("".concat(_r,":click")),t.off("".concat(Yr,":click")),t.off(Nt),t.destroy(),this.trendComponent&&this.trendComponent.destory()},c}(),aa=nn,$e={opacity:.5,fill:"#000"},Ge={opacity:.5,fill:"#000",r:5},mt={fill:"#fff",fontSize:12},Gt=function(){function c(t){var e=t.x,r=e===void 0?0:e,n=t.y,a=n===void 0?0:n,i=t.container,o=t.text,s=t.padding,l=s===void 0?[4,4,4,4]:s,h=t.className,p=h===void 0?"g6-component-timebar-tooltip":h,D=t.backgroundColor,I=D===void 0?"#000":D,F=t.textColor,Z=F===void 0?"#fff":F,ee=t.opacity,se=ee===void 0?.8:ee,oe=t.fontSize,ce=oe===void 0?12:oe;this.container=i,this.className=p,this.backgroundColor=I,this.textColor=Z,this.x=r,this.y=a,this.text=o,this.padding=l,this.opacity=se,this.fontSize=ce,this.render()}return c.prototype.render=function(){var t=this,e=t.className,r=t.x,n=t.y,a=t.backgroundColor,i=t.textColor,o=t.text,s=t.padding,l=t.opacity,h=t.fontSize,p=t.container,D=(0,Aa.Z)("
      '));(0,m.isString)(p)&&(p=document.getElementById(p)),p.appendChild(D),t.parentHeight=p.offsetHeight,t.parentWidth=p.offsetWidth,(0,Kn.Z)(D,{visibility:"hidden",top:0,left:0});var I=(0,Aa.Z)(` +
      "));I.innerHTML=o,D.appendChild(I),t.backgroundDOM=I;var F=(0,Aa.Z)("
      "));D.appendChild(F),t.arrowDOM=F,t.container=D},c.prototype.show=function(t){var e=this,r=t.text,n=t.x,a=t.y,i=t.clientX,o=t.clientY;e.backgroundDOM.innerHTML=r;var s=e.backgroundDOM.offsetWidth,l=e.backgroundDOM.offsetHeight,h=e.arrowDOM.offsetWidth,p=e.arrowDOM.offsetHeight;(0,Kn.Z)(e.container,{top:"".concat(-l-p,"px"),left:"".concat(n,"px"),visibility:"visible"}),(0,Kn.Z)(e.backgroundDOM,{marginLeft:"".concat(-s/2,"px")}),(0,Kn.Z)(e.arrowDOM,{marginLeft:"".concat(-h/2,"px"),top:"".concat(l,"px")});var D=n-s/2,I=n+s/2;D<0?(0,Kn.Z)(e.backgroundDOM,{marginLeft:"".concat(-s/2-D,"px")}):I>e.parentWidth&&(0,Kn.Z)(e.backgroundDOM,{marginLeft:"".concat(-s/2-I+e.parentWidth+12,"px")})},c.prototype.hide=function(){(0,Kn.Z)(this.container,{top:0,left:0,visibility:"hidden"})},c}(),Ut=Gt,wt=function(){return wt=Object.assign||function(c){for(var t,e=1,r=arguments.length;e=He&&yr<=at,lr=fr?h:p,Kt=Re.addShape("rect",{attrs:wt({x:a+yr*(we+oe),y:a,width:we,height:se},lr),draggable:!0,name:"tick-rect-".concat(yr)}),jr=Re.addShape("rect",{attrs:{x:a+yr*we+oe*(2*yr-1)/2,y:a,width:yr===0||yr===ce-1?we+oe/2:we+oe,height:se,fill:"#fff",opacity:0},draggable:!0,name:"pick-rect-".concat(yr)});jr.toFront();var Xr=Kt.getBBox(),er=(Xr.minX+Xr.maxX)/2;Oe.push({rect:Kt,pickRect:jr,value:Ft.date,x:er,y:Xr.minY});var mr;if(l?(mr=l(Ft),!(0,m.isString)(mr)&&mr&&(mr=Ft.date)):yr%Math.round(ce/10)==0&&(mr=Ft.date),mr){Pe.push(mr);var kr=Xr.maxY+a*2;Re.addShape("line",{attrs:{stroke:"#BFBFBF",x1:er,y1:kr,x2:er,y2:kr+Z},name:"tick-line"});var Fr=kr+Z+a,Jr=Re.addShape("text",{attrs:wt({fill:"#8c8c8c",stroke:"#fff",lineWidth:1,x:er,y:Fr,textAlign:"center",text:mr,textBaseline:"top",fontSize:10,fontFamily:t.fontFamily||"Arial, sans-serif"},D),capture:!1,name:"tick-label"}),fn=Jr.getBBox();if(fn.maxX>r?Jr.attr("textAlign","right"):fn.minX<0&&Jr.attr("textAlign","left"),(0,m.isNumber)(qe)&&Pe.length!==10){var Vn=xt([1,0,0,0,1,0,0,0,1],[["t",-er,-Fr],["r",qe],["t",er-5,Fr+2]]);Jr.attr({textAlign:"left",matrix:Vn})}Pe.length===1?Jr.attr({textAlign:"left"}):Pe.length===10&&Jr.attr({textAlign:"right"})}}),this.tickRects=Oe;var yt=this.group;this.currentSpeed=1,this.controllerBtnGroup=new Bi(wt({group:yt,x:this.x,y:this.y+n+5,width:r,height:40,hideTimeTypeController:!0,speed:this.currentSpeed,fontFamily:this.fontFamily||"Arial, sans-serif"},this.controllerCfg))},c.prototype.initEvent=function(){var t=this,e=this.sliceGroup;e.on("click",function(h){var p=h.target;if(!(p.get("type")!=="rect"||!p.get("name"))){var D=parseInt(p.get("name").split("-")[2],10);if(!isNaN(D)){var I=t.tickRects,F=t.unselectedTickStyle;I.forEach(function(oe){oe.rect.attr(F)});var Z=t.selectedTickStyle;I[D].rect.attr(Z),t.startTickRectId=D,t.endTickRectId=D;var ee=I.length,se=D/ee;t.graph.emit(Tt,{value:[se,se]})}}}),e.on("dragstart",function(h){var p=t.tickRects,D=t.unselectedTickStyle;p.forEach(function(oe){oe.rect.attr(D)});var I=h.target,F=parseInt(I.get("name").split("-")[2],10),Z=t.selectedTickStyle;p[F].rect.attr(Z),t.startTickRectId=F;var ee=p.length,se=F/ee;t.graph.emit(Tt,{value:[se,se]}),t.dragging=!0}),e.on("dragover",function(h){if(!!t.dragging&&h.target.get("type")==="rect"){for(var p=parseInt(h.target.get("name").split("-")[2],10),D=t.startTickRectId,I=t.tickRects,F=t.selectedTickStyle,Z=t.unselectedTickStyle,ee=0;ee=D&&ee<=p?F:Z;I[ee].rect.attr(se)}var oe=I.length;t.endTickRectId=p;var ce=D/oe,we=p/oe;t.graph.emit(Tt,{value:[ce,we]})}}),e.on("drop",function(h){if(!!t.dragging&&(t.dragging=!1,h.target.get("type")==="rect")){var p=t.startTickRectId,D=parseInt(h.target.get("name").split("-")[2],10);if(!(D0?e.endTickRectId++:(r[e.endTickRectId].rect.attr(a),e.endTickRectId--),o!==e.startTickRectId)e.endTickRectId
      ")),(0,Kn.Z)(l,{position:"relative"})),s.appendChild(l),this.set("timeBarContainer",l);var h,p=e.get("renderer");p==="SVG"?h=new Ps.Canvas({container:l,width:n,height:a}):h=new so.Canvas({container:l,width:n,height:a}),this.get("containerCSS")&&(0,Kn.Z)(l,this.get("containerCSS")),this.set("canvas",h)},t.prototype.init=function(){this.initContainer();var e=this.get("canvas"),r=e.addGroup({name:"timebar-group"});this.set("timeBarGroup",r),this.renderTrend(),this.initEvent();var n=typeof window!="undefined"&&window.getComputedStyle(document.body,null).getPropertyValue("font-family")||"Arial, sans-serif";this.set("fontFamily",n)},t.prototype.play=function(){this.togglePlay(!0)},t.prototype.pause=function(){this.togglePlay(!1)},t.prototype.togglePlay=function(e){var r=this.get("timebar");!r||(r.isPlay=!!e,r.changePlayStatus())},t.prototype.renderTrend=function(){var e=this,r=this._cfgs,n=r.width,a=r.x,i=r.y,o=r.padding,s=r.type,l=r.trend,h=r.slider,p=r.controllerCfg,D=r.textStyle,I=r.tick,F=r.backgroundStyle,Z=r.foregroundStyle,ee=l.data,se=vr(l,["data"]),oe=n-2*o,ce=s==="trend"?ur:gr,we=this.get("graph"),Re=this.get("timeBarGroup"),Oe=this.get("canvas"),Pe=null;if(s==="trend"||s==="simple"){var He=this.get("getValue");Pe=new aa(zt(zt({graph:we,canvas:Oe,group:Re,type:s,x:a+o,y:s==="trend"?i+o:i+o+15,width:oe,height:ce,padding:o,backgroundStyle:F,foregroundStyle:Z,trendCfg:zt(zt({},se),{data:ee.map(function(qe){return(He==null?void 0:He(qe))||qe.value})})},h),{tick:{ticks:ee,tickLabelFormatter:I.tickLabelFormatter,tickLabelStyle:I.tickLabelStyle,tickLineStyle:I.tickLineStyle},handlerStyle:zt(zt({},h.handlerStyle),{height:h.height||ce}),controllerCfg:p,textStyle:D}))}else s==="tick"&&(Pe=new Ve(zt({graph:we,canvas:Oe,group:Re,x:a+o,y:i+o,width:n,height:42,padding:2,controllerCfg:p},I)));var at=function qe(){var yt=e.get("timebar");yt.draggingHandler=!1,yt.isPlay&&(yt.isPlay=!1,yt.currentHandler=yt.maxHandlerShape,yt.changePlayStatus()),document.removeEventListener("mouseup",qe)};Oe.on("mousedown",function(qe){(qe.target.get("name")==="maxHandlerShape-handler"||qe.target.get("name")==="minHandlerShape-handler"||qe.target===Pe.foregroundShape)&&document.addEventListener("mouseup",at)}),this.set("timebar",Pe)},t.prototype.filterData=function(e){var r,n=e.value;if(!n){n=[];var a=this._cfgs.type;!a||a==="trend"||a==="simple"?(n[0]=this._cfgs.slider.start,n[1]=this._cfgs.slider.end):a==="tick"&&(n[0]=this._cfgs.tick.start,n[1]=this._cfgs.tick.end)}var i=null,o=this._cfgs.type;if(o==="trend"||o==="simple"?i=this._cfgs.trend.data:o==="tick"&&(i=this._cfgs.tick.data),!i||i.length===0){console.warn("\u8BF7\u914D\u7F6E TimeBar \u7EC4\u4EF6\u7684\u6570\u636E");return}var s=this.get("rangeChange"),l=this.get("graph"),h=Math.round(i.length*n[0]),p=Math.round(i.length*n[1]);p=p>=i.length?i.length-1:p,h=h>=i.length?i.length-1:h;var D=(r=this._cfgs.tick)===null||r===void 0?void 0:r.tickLabelFormatter,I=D?D(i[h]):i[h].date,F=D?D(i[p]):i[p].date;if(o!=="tick"){var Z=this.get("timebar");Z.setText(I,F)}if(s)s(l,I,F);else{(!this.cacheGraphData||this.cacheGraphData.nodes&&this.cacheGraphData.nodes.length===0)&&(this.cacheGraphData=l.get("data"));var ee=this.get("filterItemTypes"),se=this.get("changeData"),oe=this.get("getDate"),ce=this.get("shouldIgnore"),we=i[h].date,Re=i[p].date;if(se||se===void 0){var Oe=this.cacheGraphData.nodes,Pe=this.cacheGraphData.edges,He={},at={};l.getNodes().forEach(function(qe){return He[qe.getID()]=!0}),l.getEdges().forEach(function(qe){return at[qe.getID()]=!0}),ee.includes("node")&&(Oe==null||Oe.forEach(function(qe){var yt=+((oe==null?void 0:oe(qe))||qe.date),Ft=yt>=we&&yt<=Re||(ce==null?void 0:ce("node",qe,{min:we,max:Re})),yr=He[qe.id];yr&&!Ft?(l.removeItem(qe.id),He[qe.id]=!1):!yr&&Ft&&(l.addItem("node",qe),He[qe.id]=!0)}),Pe==null||Pe.forEach(function(qe){var yt=He[qe.source]&&He[qe.target]||(ce==null?void 0:ce("edge",qe,{min:we,max:Re})),Ft=!!l.findById(qe.id);Ft&&!yt?(l.removeItem(qe.id),at[qe.id]=!1):!Ft&&yt?(l.addItem("edge",qe),at[qe.id]=!0):Ft||(at[qe.id]=!1)})),(this.get("filterEdge")||ee.includes("edge"))&&(Pe==null||Pe.filter(function(qe){var yt=+((oe==null?void 0:oe(qe))||qe.date),Ft=yt>=we&&yt<=Re||(ce==null?void 0:ce("edge",qe,{min:we,max:Re})),yr=He[qe.source]&&He[qe.target],fr=Ft&&yr,lr=at[qe.id];lr&&!fr?(at[qe.id]=!1,l.removeItem(qe.id)):!lr&&fr&&(at[qe.id]=!0,l.addItem("edge",qe))}))}else ee.includes("node")&&l.getNodes().forEach(function(qe){var yt=qe.getModel();if(!(ce==null?void 0:ce("node",yt,{min:we,max:Re}))){var Ft=+((oe==null?void 0:oe(yt))||yt.date);FtRe?l.hideItem(qe):l.showItem(qe)}}),(this.get("filterEdge")||ee.includes("edge"))&&l.getEdges().forEach(function(qe){var yt=qe.getModel();if(!(ce==null?void 0:ce("edge",yt,{min:i[h].date,max:i[p].date}))){var Ft=+((oe==null?void 0:oe(yt))||yt.date);if(Fti[p].date)l.hideItem(qe);else{var yr=qe.getSource().isVisible(),fr=qe.getTarget().isVisible();yr&&fr&&l.showItem(qe)}}})}},t.prototype.initEvent=function(){var e=this.get("graph");e.on("afterchangedata",this.changeData),e.on("afterrender",this.afterrenderListener),e.on(Tt,this.valueChangeListener)},t.prototype.destroy=function(){var e=this.get("graph");e.off("afterchangedata",this.changeData),e.off("afterrender",this.afterrenderListener),e.off(Tt,this.valueChangeListener);var r=this.get("timebar");r&&r.destory&&r.destory(),c.prototype.destroy.call(this);var n=this.get("timeBarContainer");if(n){var a=this.get("container");a||(a=this.get("graph").get("container")),(0,m.isString)(a)&&(a=document.getElementById(a)),a.removeChild(n)}},t}(Qi),yn=Lr,Zn=function(){var c=function(e,r){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},c(e,r)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");c(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),un=ki.applyMatrix;function Dn(c,t){var e,r;if(c.naturalWidth)e=c.naturalWidth,r=c.naturalHeight;else{var n=new Image;n.src=c.src,n.onload=function(){t&&t(n.width,n.height)}}return[e,r]}var jn=function(c){Zn(t,c);function t(e){return c.call(this,e)||this}return t.prototype.getDefaultCfgs=function(){return{container:null,className:"g6-minimap",viewportClassName:"g6-minimap-viewport",width:200,delegateStyle:{fill:"#40a9ff",stroke:"#096dd9"},refresh:!0}},t.prototype.getEvents=function(){return{beforepaint:"updateViewport",beforeanimate:"disableRefresh",afteranimate:"enableRefresh",viewportchange:"disableOneRefresh"}},t.prototype.disableRefresh=function(){this.set("refresh",!1)},t.prototype.enableRefresh=function(){this.set("refresh",!0),this.updateCanvas()},t.prototype.disableOneRefresh=function(){this.set("viewportChange",!0)},t.prototype.initViewport=function(){var e=this,r=this._cfgs,n=r.graph;if(!this.destroyed){var a=this.get("container");(0,m.isString)(a)&&(a=document.getElementById(a));var i=(0,Aa.Z)("
      oe||I>ce||(Z=n.getZoom(),F=e.get("ratio"),l=!0,o=ee.clientX,s=ee.clientY)}},!1),a.addEventListener("mousemove",function(ee){if(!(!l||(0,m.isNil)(ee.clientX)||(0,m.isNil)(ee.clientY))){var se=e.get("width"),oe=e.get("height"),ce=i.style;h=parseInt(ce.left,10),p=parseInt(ce.top,10),D=parseInt(ce.width,10),I=parseInt(ce.height,10);var we=o-ee.clientX,Re=s-ee.clientY;h-we<0?we=h:h-we+D>=se&&(we=0),p-Re<0?Re=p:p-Re+I>=oe&&(Re=0),h-=we,p-=Re,(0,Kn.Z)(i,{left:"".concat(h,"px"),top:"".concat(p,"px")}),n.translate(we*Z/F,Re*Z/F),o=ee.clientX,s=ee.clientY}},!1),a.addEventListener("mouseleave",function(){l=!1,r.refresh=!0},!1),a.addEventListener("mouseup",function(){l=!1,r.refresh=!0},!1),this.set("viewport",i),a.appendChild(i)}},t.prototype.updateViewport=function(){if(!this.destroyed){var e=this.get("ratio"),r=this.get("width"),n=this.get("height"),a=this.get("graph"),i=a.get("width"),o=a.get("height"),s=i/o,l=a.getGroup(),h=l.getCanvasBBox(),p=[(h.minX+h.maxX)/2,(h.minY+h.maxY)/2],D=[h.maxX-h.minX,h.maxY-h.minY],I={centerX:p[0],centerY:p[1],width:0,height:0,minX:0,minY:0};h[0]/h[1]>s?(I.width=D[0],I.height=I.width/s):(I.height=D[1],I.width=I.height*s),I.minX=p[0]-I.width/2,I.minY=p[1]-I.height/2;var F=l.getMatrix();F||(F=[1,0,0,0,1,0,0,0,1]);var Z=mi.invert([1,0,0,0,1,0,0,0,1],F),ee=un({x:I.minX,y:I.minY},Z),se=a.getCanvasByPoint(ee.x,ee.y),oe=this.get("viewport");oe||this.initViewport();var ce=i/I.width,we=ce*r,Re=ce*n,Oe=r*-se.x/I.width,Pe=n*-se.y/I.height,He=Oe+we,at=Pe+Re;Oe<0&&(we+=Oe,Oe=0),He>r&&(we=we-(He-r)),Pe<0&&(Re+=Pe,Pe=0),at>n&&(Re=Re-(at-n)),this.set("ratio",e);var qe="".concat(Oe,"px"),yt="".concat(Pe,"px");(0,Kn.Z)(oe,{left:qe,top:yt,width:"".concat(we,"px"),height:"".concat(Re,"px")})}},t.prototype.init=function(){this.initContainer()},t.prototype.initContainer=function(){var e=this,r=e.get("graph"),n=r.get("width"),a=r.get("height"),i=a/n,o=e.get("className"),s=e.get("container"),l=e.get("width"),h=e.get("height");!l&&!h&&(l=200),l?(h=i*l,e.set("height",h)):(l=1/i*h,e.set("width",l));var p=(0,Aa.Z)("
      "));(0,m.isString)(s)&&(s=document.getElementById(s)),s?s.appendChild(p):r.get("container").appendChild(p),e.set("container",p);var D=(0,Aa.Z)('
      ');p.appendChild(D);var I=(0,Aa.Z)('');D.appendChild(I),e.set("containerDOM",D),e.set("containerSpan",I);var F=(0,Aa.Z)(''));e.set("imgDOM",F),e.updateImgSize(),I.appendChild(F),e.updateCanvas()},t.prototype.updateImgSize=function(){var e=this,r=e.get("imgDOM"),n=e.get("width"),a=e.get("height");r.onload=function(){var i=Dn(r);i[0]>i[1]?r.width=n:r.height=a}},t.prototype.updateCanvas=function(){var e=this.get("refresh");if(!!e){var r=this.get("graph");if(!r.get("destroyed")){this.get("viewportChange")&&(this.set("viewportChange",!1),this.updateViewport());var n=this.get("width"),a=r.get("canvas").getCanvasBBox(),i=a.width,o=n/i;this.set("ratio",o),this.updateViewport()}}},t.prototype.getViewport=function(){return this.get("viewport")},t.prototype.getContainer=function(){return this.get("container")},t.prototype.updateGraphImg=function(e){var r=this,n=r.get("imgDOM");n.remove(),r.set("graphImg",e);var a=(0,Aa.Z)(''));r.set("imgDOM",a),a.src=e,r.updateImgSize();var i=r.get("containerSpan");i.appendChild(a),r.updateCanvas()},t.prototype.destroy=function(){var e=this.get("container");e.parentNode.removeChild(e)},t}(Qi),Sa=jn,di=function(){var c=function(e,r){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},c(e,r)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");c(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),qi=function(){return qi=Object.assign||function(c){for(var t,e=1,r=arguments.length;e(l||n.get("height"))&&a>1||p<(h||n.get("height")*.05)&&a<1)&&(a=1),p*=a,r.set("r",p),r.filter(e)}},t.prototype.filter=function(e){var r=this,n=r.get("graph"),a=n.getNodes(),i={},o=r.get("r"),s=r.get("type"),l={x:e.x,y:e.y};r.updateDelegate(l,o);var h=r.get("shouldShow"),p=r.get("vShapes");p&&p.forEach(function(se){se.remove(),se.destroy()}),p=[],a.forEach(function(se){var oe=se.getModel(),ce=oe.x,we=oe.y;Cl({x:ce,y:we},l)
      `);o.appendChild(s),this.set("container",s);var l=this.render();(0,Kn.Z)(s,this.getContainerPos(l)),this.bindEvents()},t.prototype.getContainerPos=function(e){e===void 0&&(e=[0,0]);var r=this,n=r.get("graph"),a=this.get("offsetX"),i=this.get("offsetY"),o=this.get("margin"),s=this.get("position").split("-"),l={top:0,right:1,bottom:2,left:3},h=0,p=0,D={left:(n.getWidth()-e[0])/2+h,top:(n.getHeight()-e[1])/2+p};return s.forEach(function(I){var F=o[l[I]],Z=I;switch(I){case"top":F+=p;break;case"left":F+=h;break;case"bottom":F=n.getHeight()-e[1]-F+p,Z="top";break;default:F=n.getWidth()-e[0]-F+h,Z="left";break}D[Z]=F}),D.top+=i+n.getContainer().offsetTop,D.left+=a+n.getContainer().offsetLeft,Object.keys(D).forEach(function(I){D[I]="".concat(D[I],"px")}),D},t.prototype.bindEvents=function(){var e=this,r=e.get("filter");if(!(!r||!r.enable)){var n=r.trigger||"click";xh.includes(n)||(console.warn("Trigger for legend filterling must be 'click' or 'mouseenter', 'click' will take effect by default."),n="click");var a=e.get("legendCanvas");n==="mouseenter"?(a.on("node-container:mouseenter",function(i){return e.filterData(i)}),a.on("node-container:mouseleave",function(i){e.clearFilter(),e.clearActiveLegend()})):(a.on("node-container:click",function(i){return e.filterData(i)}),a.on("click",function(i){i.target&&i.target.isCanvas&&i.target.isCanvas()&&(e.clearFilter(),e.clearActiveLegend())}))}},t.prototype.changeData=function(e){this.set("data",e);var r=this.render();(0,Kn.Z)(this.get("container"),this.getContainerPos(r))},t.prototype.activateLegend=function(e){var r=this.get("filter"),n=r==null?void 0:r.multiple;n||this.clearActiveLegend();var a=e.get("parent");a.get("active")?(a.set("active",!1),this.findLegendItemsByState("active").length&&a.set("inactive",!0)):(a.set("inactive",!1),a.set("active",!0)),this.findLegendItemsByState("active").length?this.findLegendItemsByState("active","all",!1).forEach(function(p){p.set("inactive",!0)}):this.clearActiveLegend();var i=(r==null?void 0:r.legendStateStyles)||{},o=(i==null?void 0:i.inactive)||{opacity:.5,"text-shape":{opacity:.5}},s=o["text-shape"]||{};this.findLegendItemsByState("inactive").forEach(function(p){var D=p.get("children"),I=D[0],F=D[1];I.attr(wi(wi({},I.get("oriAttrs")),o)),F.attr(wi(wi({},F.get("oriAttrs")),s))});var l=(i==null?void 0:i.active)||{stroke:"#000",lineWidth:2,"text-shape":{fontWeight:"bold"}},h=l["text-shape"]||{};this.findLegendItemsByState("active").forEach(function(p){var D=p.get("children"),I=D[0],F=D[1];I.attr(wi(wi({},I.get("oriAttrs")),l)),F.attr(wi(wi({},F.get("oriAttrs")),h))})},t.prototype.findLegendItemsByState=function(e,r,n){r===void 0&&(r="all"),n===void 0&&(n=!0);var a=this.get("legendCanvas").find(function(s){return s.get("name")==="root"}),i=a.find(function(s){return s.get("name")==="node-group"}),o=a.find(function(s){return s.get("name")==="edge-group"});return r==="node"?i.get("children").filter(function(s){return!!s.get(e)===n}):r==="edge"?o.get("children").filter(function(s){return!!s.get(e)===n}):i.get("children").filter(function(s){return!!s.get(e)===n}).concat(o.get("children").filter(function(s){return!!s.get(e)===n}))},t.prototype.clearActiveLegend=function(){var e=this.get("legendCanvas"),r=e.find(function(a){return a.get("name")==="root"}),n=[r.find(function(a){return a.get("name")==="node-group"}),r.find(function(a){return a.get("name")==="edge-group"})];n.forEach(function(a){a.get("children").forEach(function(i){i.set("active",!1),i.set("inactive",!1);var o=i.get("children"),s=o[0],l=o[1];s.attr(s.get("oriAttrs")),l.attr(l.get("oriAttrs"))})})},t.prototype.filterData=function(e){var r=this.get("filter"),n=r==null?void 0:r.filterFunctions;if(!(!r||!n)){var a=this.get("legendCanvas"),i=this.get("graph"),o=r.graphActiveState||"active",s=r.graphInactiveState||"inactive",l=r.multiple;this.clearFilter(),l||this.clearActiveLegend(),this.activateLegend(e.target);var h=a.find(function(se){return se.get("name")==="root"}),p=h.find(function(se){return se.get("name")==="node-group"}),D=h.find(function(se){return se.get("name")==="edge-group"}),I=p.get("children").filter(function(se){return se.get("active")}),F=D.get("children").filter(function(se){return se.get("active")}),Z=0,ee=["getNodes","getEdges"];ee.forEach(function(se){i[se]().forEach(function(oe){var ce=!1,we=se==="getNodes"?I:F;we.forEach(function(Re){var Oe=n[Re.get("id")];ce=ce||Oe(oe.getModel())}),ce?(i.setItemState(oe,s,!1),i.setItemState(oe,o,!0),Z++):(i.setItemState(oe,o,!1),i.setItemState(oe,s,!0))})}),Z||ee.forEach(function(se){i[se]().forEach(function(oe){i.clearItemStates(oe,[s])})})}},t.prototype.clearFilter=function(){var e=this.get("graph"),r=this.get("filter");if(!!r){var n=r.graphActiveState||"active",a=r.graphInactiveState||"inactive";e.getNodes().forEach(function(i){e.clearItemStates(i,[n,a])}),e.getEdges().forEach(function(i){e.clearItemStates(i,[n,a])})}},t.prototype.render=function(){var e=this;this.processData();var r=this.get("legendCanvas");r?r.clear():r=new so.Canvas({container:this.get("container"),width:200,height:200});var n=r.addGroup({name:"root"}),a=n.addGroup({name:"node-group"}),i=n.addGroup({name:"edge-group"});this.set("legendCanvas",r);var o=this.get("itemsData"),s=["nodes","edges"],l=[a,i];s.forEach(function(Kt,jr){o[Kt].forEach(function(Xr){var er,mr=l[jr].addGroup({id:Xr.id,name:"node-container"}),kr,Fr=Xr.type,Jr=e.getShapeSize(Xr),fn=Jr.width,Vn=Jr.height,Tn=Jr.r,wa=e.getStyle(Kt.substr(0,4),Xr);switch(Xr.type){case"circle":kr={r:Tn,x:0,y:0};break;case"rect":kr={width:fn,height:Vn,x:-fn/2,y:-Vn/2};break;case"ellipse":kr={rx:fn,ry:Vn,x:0,y:0},Fr="ellipse";break;case"line":kr={x1:-fn/2,y1:0,x2:fn/2,y2:0},Fr="line";break;case"quadratic":kr={path:[["M",-fn/2,0],["Q",0,fn/2,fn/2,0]]},Fr="path";break;case"cubic":kr={path:[["M",-fn/2,0],["C",-fn/6,fn/2,fn/6,-fn/2,fn/2,0]]},Fr="path";break;case"diamond":kr={path:[["M",0,-Vn],["L",fn,0],["L",0,Vn],["L",-fn,0],["Z"]]},Fr="path";break;case"triangle":kr={path:[["M",-fn,Vn],["L",0,-Vn],["L",fn,Vn],["Z"]]},Fr="path";break;case"star":kr={path:ki.getStarPath(Tn*3,Tn*1.2)},Fr="path";break;default:kr={r:Tn,x:0,y:0};break}var ua=mr.addShape(Fr,{attrs:wi(wi({},kr),wa),name:"".concat(Xr.type,"-node-keyShape"),oriAttrs:wi({opacity:1},wa)});if(Xr.label){var fa=ua.getBBox(),Ma=((er=Xr.labelCfg)===null||er===void 0?void 0:er.style)||{},ja=wi({textAlign:"begin",fontSize:12,textBaseline:"middle",fill:"#000",opacity:1,fontWeight:"normal"},Ma);mr.addShape("text",{attrs:wi({x:fa.maxX+4,y:0,text:Xr.label},ja),className:"legend-label",name:"".concat(Xr.type,"-node-text"),oriAttrs:ja})}})});var h=this.get("padding"),p,D=n.find(function(Kt){return Kt.get("name")==="title-container"}),I={height:0,maxY:0,width:0};if(this.get("title")){D||(D=n.addGroup({name:"title-container"}));var F={fontSize:20,fontFamily:"Arial",fontWeight:300,textBaseline:"top",textAlign:"center",fill:"#000",x:0,y:h[0]},Z=this.get("titleConfig")||{},ee=Object.assign(F,Z.style||{});p=D.addShape("text",{attrs:wi({text:this.get("title")},ee)}),I=D.getCanvasBBox(),D.setMatrix([1,0,0,0,1,0,Z.offsetX,Z.offsetY,1])}this.layoutItems();var se=n.getCanvasBBox(),oe=a.getCanvasBBox(),ce=oe.minX<0?Math.abs(oe.minX)+h[3]:h[3],we=I.maxYp.max&&(p.max=o[0]),yt>D&&(D=yt),we.setMatrix([1,0,0,0,1,0,Ft,yr,1])});var I=p.max-p.min,F={min:0,max:-Infinity},Z=l.getCanvasBBox();o[0]=0,o[1]=a==="vertical"?Z.maxX+r:Z.maxY+n,h.get("children").forEach(function(we,Re){Re===0&&(F.min=o[0]);var Oe=we.get("children")[0],Pe=we.getCanvasBBox(),He=Oe.getBBox(),at=He.width,qe=He.height,yt=0,Ft=0;a==="vertical"?(yt=o[1],Ft=o[0],o[0]=Ft+Pe.height+n,we.setMatrix([1,0,0,0,1,0,0,Ft+qe/2,1])):(yt=o[0],Ft=o[1],o[0]=yt+Pe.width+r,we.setMatrix([1,0,0,0,1,0,yt+at/2,0,1])),o[0]>F.max&&(F.max=o[0])});var ee=F.max-F.min;if(i&&i!==""&&i!=="left"){var se=I-ee,oe=i==="center"?Math.abs(se)/2:Math.abs(se),ce=se<0?l:h;ce.get("children").forEach(function(we){var Re=we.getMatrix()||[1,0,0,0,1,0,0,0,1];a==="vertical"?Re[7]+=oe:Re[6]+=oe,we.setMatrix(Re)})}},t.prototype.processData=function(){var e=this.get("data"),r={nodes:[],edges:[]};e.nodes&&(e.nodes.sort(function(n,a){return n.order-a.order}),e.nodes.forEach(function(n){var a,i,o,s,l,h=n.size||[((a=n.style)===null||a===void 0?void 0:a.width)||((i=n.style)===null||i===void 0?void 0:i.r)||8,((o=n.style)===null||o===void 0?void 0:o.height)||((s=n.style)===null||s===void 0?void 0:s.r)||8],p=((l=n.labelCfg)===null||l===void 0?void 0:l.style)||{};r.nodes.push({id:n.id||(0,m.uniqueId)(),type:n.type||"circle",style:wi({},n.style),order:n.order,label:n.label,itemType:"node",size:h,labelCfg:{position:"right",style:wi({fontFamily:"Arial"},p)}})})),e.edges&&(e.edges.sort(function(n,a){return n.order-a.order}),e.edges.forEach(function(n){var a,i,o=n.type||"line";n.type==="cubic-horizontal"&&(o="cubic");var s=((a=n.labelCfg)===null||a===void 0?void 0:a.style)||{},l=n.size||[((i=n.style)===null||i===void 0?void 0:i.width)||8,1];r.edges.push({id:n.id||(0,m.uniqueId)(),type:o,size:l,style:wi({lineWidth:(0,m.isArray)(l)?l[1]:1},n.style),order:n.order,label:n.label,itemType:"edge",labelCfg:{position:"right",style:wi({fontFamily:"Arial"},s)}})})),this.set("itemsData",r)},t.prototype.getContainer=function(){return this.get("container")},t.prototype.formatArray=function(e){var r=this.get(e);if((0,m.isNumber)(r))this.set(e,[r,r,r,r]);else if((0,m.isArray)(r))switch(r.length){case 0:this.set(e,[0,0,0,0]);break;case 1:this.set(e,[r[0],r[0],r[0],r[0]]);break;case 2:this.set(e,[r[0],r[1],r[0],r[1]]);break;case 3:this.set(e,[r[0],r[1],r[2],r[1]]);break;default:break}return this.get(e)},t.prototype.getShapeSize=function(e){var r,n,a;return e.size&&((0,m.isArray)(e.size)?(r=e.size[0],n=e.size[1]||e.size[0],a=e.size[0]/2):(0,m.isNumber)(e.size)&&(r=e.size,n=e.size,a=e.size/2)),e.style&&(e.style.width&&(r=e.style.width),e.style.height&&(n=e.style.height),e.style.r&&(a=e.style.r)),a||(a=5),r||(r=a),n||(n=a),{width:r,height:n,r:a}},t.prototype.getStyle=function(e,r){var n=e==="node"?{fill:"#ccc",lineWidth:0}:{stroke:"#000",lineWidth:1};return wi(wi({},n),r.style||{})},t.prototype.destroy=function(){var e=this.get("legendCanvas");e==null||e.destroy();var r=this.get("graph"),n=r.get("container"),a=this.get("container");n.removeChild(a)},t}(Qi),Sh=wh,_h=function(){var c=function(e,r){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},c(e,r)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");c(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),xs=function(){return xs=Object.assign||function(c){for(var t,e=1,r=arguments.length;e+

      ":"

      -

      ",D=r?"":"

      ".concat(s,"

      "),I="

      x

      ",F=r?"".concat(h,"px"):"".concat(h,"px ").concat(h,"px 0 0");return'
      +
      +

      `).concat(i,`

      + `).concat(p,` + `).concat(I,` +
      + `).concat(D,` +
      `)}},t.prototype.init=function(){var e=this;if(!e.destroyed){var r=e.get("graph"),n=r.getContainer(),a=e.get("container"),i=this.get("containerCfg");i?(a=this.createContainer(),n.appendChild(a)):a=n,this.set("container",a);var o=n.getBoundingClientRect(),s=new so.Canvas({container:n,width:o.right-o.left,height:o.bottom-o.top});(0,Kn.Z)(s.get("el"),{position:"absolute",top:0,left:0,pointerEvents:"none"}),window.addEventListener("resize",(0,m.debounce)(function(){return e.resizeCanvas(e)},100));var l=s.addGroup({id:"annotation-link-group"});e.set("linkGroup",l),e.set("canvas",s),e.get("getTitle")||e.set("getTitle",function(p){var D,I=((D=p==null?void 0:p.getModel)===null||D===void 0?void 0:D.call(p))||{},F=I.label,Z=I.id;return F||Z||"-"}),e.get("getContent")||e.set("getContent",function(p){var D,I;if(!p)return"-";var F=((D=p.getModel)===null||D===void 0?void 0:D.call(p))||{},Z=F.label,ee=F.id,se=(I=p.getType)===null||I===void 0?void 0:I.call(p),oe=se?"".concat(se,": "):"";return"".concat(oe).concat(Z||ee||"")});var h=e.get("defaultData");h&&this.readData(h)}},t.prototype.createContainer=function(){var e=this;if(!this.destroyed){var r=this.get("containerCfg"),n=this.get("graph"),a=n.getContainer(),i=a.getBoundingClientRect(),o=i.left,s=i.right,l=i.top,h=i.bottom,p=h-l,D=s-o,I=r.position,F=I===void 0?"top":I,Z=r.offsetX,ee=Z===void 0?0:Z,se=r.offsetY,oe=se===void 0?0:se,ce=vd(r,["position","offsetX","offsetY"]),we=r.height,Re=we===void 0?"fit-content":we,Oe=r.width,Pe=Oe===void 0?n.getWidth():Oe;Re==="100%"&&(Re=p),Pe==="100%"&&(Pe=D);var He="unset",at="unset",qe={};switch(F){case"right":He="".concat(p,"px"),qe={top:0,right:0},qe.right+=o+ee,qe.top+=l+oe;break;case"bottom":at="".concat(D,"px"),qe={bottom:0,left:0},qe.left+=o+ee,qe.bottom+=l+oe;break;case"top":at="".concat(D,"px");case"left":He="".concat(p,"px");default:qe={top:0,left:0},qe.left+=o+ee,qe.top+=l+oe;break}Object.keys(qe).forEach(function(Ft){qe[Ft]="".concat(qe[Ft],"px")});var yt=(0,Aa.Z)("
      "));return(0,Kn.Z)(yt,xs(xs({position:"absolute",display:F==="top"||F==="bottom"?"inline-flex":"unset",width:(0,m.isNumber)(Pe)?"".concat(Pe,"px"):Pe,height:(0,m.isNumber)(Re)?"".concat(Re,"px"):Re,maxHeight:He,maxWidth:at,overflow:"scroll"},qe),ce)),a.appendChild(yt),yt.addEventListener("scroll",function(Ft){e.updateLinks()}),yt}},t.prototype.resizeCanvas=function(e){clearTimeout(e.resizeTimer),e.resizeTimer=setTimeout(function(){if(!(!e||e.destroyed)){var r=e.get("container").getBoundingClientRect(),n=r.right-r.left,a=r.bottom-r.top;e.get("canvas").changeSize(n,a),e.updateOutsideCards(e)}},250)},t.prototype.updateOutsideCards=function(e){var r=e||this,n=r.get("cardInfoMap")||{},a=r.get("graph"),i=a.getPointByCanvas(0,0),o=a.getPointByCanvas(a.getWidth(),a.getHeight()),s=a.getClientByPoint(i.x,i.y),l=s.x,h=s.y,p=a.getClientByPoint(o.x,o.y),D=p.x,I=p.y;Object.values(n).forEach(function(F){var Z=F.card;if(!!Z){var ee=Z.style,se=oc(ee.left),oe=oc(ee.top),ce=Z.getBoundingClientRect(),we=ce.width,Re=ce.height,Oe=se,Pe=oe;se+we>D-l&&(Oe=D-l-we),se<0&&(Oe=0),oe+Re>I-h&&(Pe=I-h-Re),oe<0&&(Pe=0),(0,Kn.Z)(Z,{left:"".concat(Oe,"px"),top:"".concat(Pe,"px")})}}),r.updateLinks()},t.prototype.showAnnotation=function(e){if(!this.destroyed){var r=e.item;this.toggleAnnotation(r)}},t.prototype.hideCards=function(){var e=this;if(!e.destroyed){var r=e.get("cardInfoMap")||{};Object.keys(r).forEach(function(n){e.hideCard(n)})}},t.prototype.toggleAnnotation=function(e,r){var n,a;r===void 0&&(r={});var i=this;if(!i.destroyed){var o=i.get("cardInfoMap")||{},s=i.get("graph"),l=i.get("container"),h=i.get("containerCfg"),p=Object.assign({},i.get("cardCfg")||{},r),D=p.minHeight,I=p.minWidth,F=p.width,Z=p.height,ee=p.collapsed,se=ee===void 0?!1:ee,oe=p.x,ce=p.y,we=p.title,Re=p.content,Oe=p.maxTitleLength,Pe=p.defaultBegin,He=vd(p,["minHeight","minWidth","width","height","collapsed","x","y","title","content","maxTitleLength","defaultBegin"]),at=i.get("linkGroup"),qe=this.get("rows")||[[]],yt=(n=e.isCanvas)===null||n===void 0?void 0:n.call(e),Ft=yt?gd:e.getID(),yr=o[Ft]||{},fr=yr.card,lr=yr.link,Kt=yr.x,jr=yr.y,Xr=yr.title,er=yr.content,mr=this.get("getTitle"),kr=this.get("getContent"),Fr=this.get("getContentPlaceholder")||function(){return""},Jr=this.get("getTitlePlaceHolder")||function(){return""},fn=Fr(e),Vn=Jr(e),Tn=(0,Aa.Z)(this.getDOMContent(xs({itemId:Ft,collapsed:se,title:((a=Xr||we||(mr==null?void 0:mr(e)))===null||a===void 0?void 0:a.substr(0,Oe))||Vn,content:er||Re||(kr==null?void 0:kr(e))||fn},He))),wa=(0,m.isNumber)(D)?"".concat(D,"px"):D;(0,Kn.Z)(Tn,{minHeight:se?"unset":wa,minWidth:(0,m.isNumber)(I)?"".concat(I,"px"):I,height:Z,width:F});var ua=!!fr;ua?(lr==null||lr.remove(!0),l.replaceChild(Tn,fr)):l.appendChild(Tn);var fa;if(!h){if(fa=l.getBoundingClientRect()||{},oe!==void 0&&ce!==void 0)Kt=oe,jr=ce;else if(!ua&&!yt){var Ma=fa.top,ja=Pe||{},Ra=ja.left,uo=ja.right,Da=uo===void 0?16:uo,fo=ja.top,Qa=fo===void 0?8:fo,Ja=ja.bottom,oi=Da,Si=Qa;isNaN(Ra)||(oi=l.scrollWidth-Ra),isNaN(Ja)||(Si=l.scrollHeight-Ja);var Ai=(0,m.isNumber)(I)?I:100;Kt=l.scrollWidth-Tn.scrollWidth-(qe.length-1)*Ai-oi;var la=qe[qe.length-1],Ca=(la[la.length-1]||{}).bbox;jr=(Ca==null?void 0:Ca.bottom)-Ma||Si}(0,Kn.Z)(Tn,{position:"absolute",left:"".concat(Kt,"px"),top:"".concat(jr,"px"),cusor:h?"unset":"move"})}this.bindListener(Tn,Ft);var Xn=Tn.getBoundingClientRect();if(!yt){var Ta=ql(e,Xn,s,this.get("canvas")),Na=this.get("linkStyle");lr=at.addShape("path",{attrs:xs({lineWidth:1,lineDash:[5,5],stroke:"#ccc",path:Ta},Na)})}if(o[Ft]=xs(xs({},o[Ft]||{}),{id:Ft,collapsed:se,card:Tn,link:lr,x:Kt,y:jr,cardBBox:Xn,content:er||Re,title:Xr||we,contentPlaceholder:fn,titlePlaceholder:Vn,isCanvas:yt}),i.set("cardInfoMap",o),h)this.updateCardPositionsInConatainer(),this.updateLinks();else{var cn=!isNaN(oe)&&!isNaN(ce);if(!ua&&!yt&&!cn){var pa=fa.bottom,ma=pa===void 0?0:pa,Ma=fa.top;qe[qe.length-1].push({id:Ft,bbox:Xn}),Xn.top>ma-Ma-Xn.height-16&&qe.push([]),this.set("rows",qe)}}this.updateCardSize(Ft);var Ua=this.get("onAnnotationChange");Ua==null||Ua(o[Ft],ua?"update":"create")}},t.prototype.updateCardPositionsInConatainer=function(){if(!this.destroyed){var e=this.get("cardInfoMap");if(!!e){var r=this.get("container"),n=this.get("containerCfg").position,a=r.getBoundingClientRect().width,i=getComputedStyle(r),o=oc(i.paddingLeft)+oc(i.paddingRight);a-=o,Object.values(e).forEach(function(s){var l=s.card,h=l.getBoundingClientRect().width;switch(n){case"right":(0,Kn.Z)(l,{marginLeft:a?"".concat(a-h,"px"):"0px"});break;case"top":case"bottom":(0,Kn.Z)(l,{marginLeft:"8px"});default:break}})}}},t.prototype.handleExpandCollapseCard=function(e){if(!this.destroyed){var r=this.get("graph"),n=this.get("cardInfoMap");if(!!n){var a=n[e].collapsed,i=r.findById(e);if(!!i){var o=this.get("cardCfg").collapseType;o==="hide"&&!a?this.hideCard(e):this.toggleAnnotation(i,{collapsed:!a}),n[e]=xs(xs({},n[e]),{collapsed:!a})}}}},t.prototype.hideCard=function(e){if(!this.destroyed){var r=this.get("cardInfoMap");if(!(!r||!r[e])){var n=r[e],a=n.card,i=n.link;(0,Kn.Z)(a,{display:"none"}),i==null||i.hide();var o=this.get("onAnnotationChange");o(r[e],"hide")}}},t.prototype.removeCard=function(e){if(!this.destroyed){var r=this.get("cardInfoMap");if(!!r){var n=r[e],a=n.card,i=n.link,o=this.get("container");o.removeChild(a),i==null||i.remove(!0),delete r[e];var s=this.get("onAnnotationChange");s(n,"remove")}}},t.prototype.bindListener=function(e,r){var n=this;if(!this.destroyed){e.addEventListener("mousemove",function(s){var l;if(s.target.className==="g6-annotation-collapse"?l="collapse":s.target.className==="g6-annotation-expand"?l="expand":s.target.className==="g6-annotation-close"&&(l="close"),l){var h=n.get("cardCfg").onMouseEnterIcon,p=h===void 0?function(){}:h;p(s,r,l)}}),e.addEventListener("mouseout",function(s){var l;if(s.target.className==="g6-annotation-collapse"?l="collapse":s.target.className==="g6-annotation-expand"?l="expand":s.target.className==="g6-annotation-close"&&(l="close"),l){var h=n.get("cardCfg").onMouseLeaveIcon,p=h===void 0?function(){}:h;p(s,r,l)}}),e.addEventListener("mouseenter",function(s){var l=n.get("cardInfoMap");if(!!l){var h=n.get("graph"),p=h.findById(r);if(p){var D=n.get("itemHighlightState");h.setItemState(p,D,!0)}var I=l[r].link;if(I){var F=n.get("linkHighlightStyle")||{};I.attr(F)}}}),e.addEventListener("mouseleave",function(s){var l=n.get("cardInfoMap");if(!!l){var h=n.get("graph"),p=h.findById(r);if(p){var D=n.get("itemHighlightState");h.setItemState(p,D,!1)}var I=l[r].link;if(I){var F=n.get("linkHighlightStyle")||{};Object.keys(F).forEach(function(ee){I.attr(ee,void 0),I.attr(ee,void 0)});var Z=n.get("linkStyle");I.attr(Z)}}}),e.addEventListener("click",function(s){var l=(n.get("cardCfg")||{}).onClickIcon;if(s.target.className==="g6-annotation-collapse"||s.target.className==="g6-annotation-expand"){var h=n.get("cardCfg").collapseType;h==="hide"?n.hideCard(r):n.handleExpandCollapseCard(r),l==null||l(s,r,s.target.className==="g6-annotation-collapse"?"collapse":"expand")}else if(s.target.className==="g6-annotation-close"){var p=n.get("cardCfg").closeType;p==="remove"?n.removeCard(r):n.hideCard(r),l==null||l(s,r,"close")}});var a=this.get("editable");a&&e.addEventListener("dblclick",function(s){var l=n.get("cardInfoMap"),h=(n.get("cardCfg")||{}).maxTitleLength,p=h===void 0?20:h;if(!!l){var D=s.target,I=D.className;if(!(I!=="g6-annotation-title"&&I!=="g6-annotation-content")){var F=I==="g6-annotation-title"?D.getBoundingClientRect():D.parentNode.getBoundingClientRect(),Z=F.width,ee=F.height,se=getComputedStyle(D),oe=I==="g6-annotation-title"?"input":"textarea",ce=(0,Aa.Z)("<".concat(oe,' class="').concat(I,'-input" type="textarea" style="width:').concat(Z,"px; height: ").concat(ee,'px; min-width: 16px;"/>')),we=(0,Aa.Z)('
      '));we.appendChild(ce),D.parentNode.replaceChild(we,D);var Re=l[r],Oe=Re.contentPlaceholder,Pe=Re.titlePlaceholder,He=Re.content,at=Re.title,qe=He;I==="g6-annotation-title"?(ce.name="title",ce.maxLength=p,qe=at):ce.name="content",qe?(ce.innerHTML=D.innerHTML,ce.value=D.innerHTML):ce.placeholder=I==="g6-annotation-title"?Pe:Oe,ce.focus(),ce.addEventListener("blur",function(yt){ce.value&&(D.innerHTML=ce.value,Re[ce.name||"title"]=ce.value),we.parentNode.replaceChild(D,we),n.updateCardSize(r);var Ft=n.get("onAnnotationChange");Ft==null||Ft(Re,"update")})}}});var i=["g6-annotation-title","g6-annotation-content","g6-annotation-title-input","g6-annotation-content-input"];e.draggable=!0,e.addEventListener("dragstart",function(s){var l=s.target.className;if(!i.includes(l)){var h=e.style;n.set("dragging",{card:e,x:s.clientX,y:s.clientY,left:oc(h.left),top:oc(h.top)})}}),e.addEventListener("drag",function(s){s.preventDefault();var l=n.get("cardInfoMap");if(!!l){var h=s.clientX,p=s.clientY,D=n.get("dragging");if(!(isNaN(h)||isNaN(p)||!D)){var I=D.x,F=D.y,Z=D.left,ee=D.top,se=D.card,oe=h-I,ce=p-F;Z+=oe,ee+=ce;var we=n.get("graph"),Re=we.getPointByCanvas(0,0),Oe=we.getPointByCanvas(we.getWidth(),we.getHeight()),Pe=we.getClientByPoint(Re.x,Re.y),He=Pe.x,at=Pe.y,qe=we.getClientByPoint(Oe.x,Oe.y),yt=qe.x,Ft=qe.y,yr=se.getBoundingClientRect(),fr=yr.right-yr.left,lr=yr.bottom-yr.top;(Z>yt-He-fr&&oe>0||Z<0&&oe<0)&&(Z-=oe),(ee>Ft-at-lr&&ce>0||ee<0&&ce<0)&&(ee-=ce),(0,Kn.Z)(se,{left:"".concat(Z,"px"),top:"".concat(ee,"px"),visibility:"hidden"}),I=h,F=p;var Kt=(l[r]||{}).link;if(Kt){var jr=we.findById(r);Kt.attr("path",ql(jr,yr,we,n.get("canvas")))}n.set("dragging",{x:I,y:F,left:Z,top:ee,card:se})}}});var o=function(l){var h=n.get("cardInfoMap");if(!!h){var p=n.get("dragging");if(p){var D=p.left,I=p.top,F=p.card;h[r].x=D,h[r].y=I,(0,Kn.Z)(F,{visibility:"visible"}),n.set("dragging",!1);var Z=n.get("rows");Z==null||Z.forEach(function(se){for(var oe=se.length-1;oe>=0;oe--)se[oe].id===r&&se.splice(oe,1)});var ee=n.get("onAnnotationChange");ee==null||ee(h[r],"update")}}};e.addEventListener("dragend",o)}},t.prototype.updateCardSize=function(e){var r=this.get("cardInfoMap");if(!!r){var n=r[e].card,a=n.getBoundingClientRect().width,i=n.getElementsByClassName("g6-annotation-title")[0];if(i){var o=getComputedStyle(i),s=oc(o.marginLeft),l=i.getBoundingClientRect().width;(0,Kn.Z)(i,{marginRight:"".concat(a-s-24-16-l,"px")})}}},t.prototype.updateLink=function(e){var r=e.item;if(!!r){var n=this.get("cardInfoMap");if(!!n){var a=this.get("canvas"),i=this.get("graph"),o=r.getID(),s=n[o]||{},l=s.link,h=s.card;if(l){var p=ql(r,h.getBoundingClientRect(),i,a);l.attr("path",p)}}}},t.prototype.updateLinks=function(){var e=this;if(!this.destroyed){var r=this.get("cardInfoMap");if(!!r){var n=this.get("graph");Object.values(r).forEach(function(a){var i=a.id,o=n.findById(i);e.updateLink({item:o})})}}},t.prototype.onGraphDataChange=function(){var e=this,r=this.get("cardInfoMap");if(!!r){var n=this.get("graph");Object.values(r).forEach(function(a){var i=a.id,o=a.card,s=a.isCanvas;if(!(!o||s||o.style.display==="none")){var l=n.findById(i);l&&l.isVisible()?e.toggleAnnotation(l):e.hideCard(i)}})}},t.prototype.onGraphItemVisibilityChange=function(e){var r=e.item,n=e.visible;if(!(!r||r.destroyed)){var a=this.get("cardInfoMap");if(!!a){var i=r.getID();!a[i]||n||this.hideCard(i)}}},t.prototype.saveData=function(e){e===void 0&&(e=!1);var r=this.get("cardInfoMap");if(!!r){var n=this.get("graph"),a=this.get("getTitle"),i=this.get("getContent"),o=[];return Object.values(r).forEach(function(s){var l=s.title,h=s.content,p=s.x,D=s.y,I=s.id,F=s.collapsed,Z=s.card;if(!(Z&&Z.style.display==="none"&&!e)){var ee=n.findById(I)||n.get("canvas");o.push({id:I,x:p,y:D,collapsed:F,title:l||(a==null?void 0:a(ee)),content:h||(i==null?void 0:i(ee)),visible:Z&&Z.style.display!=="none"})}}),o}},t.prototype.readData=function(e){var r=this,n=this.get("graph");e.forEach(function(a){var i=a.id,o=a.x,s=a.y,l=a.title,h=a.content,p=a.collapsed,D=a.visible,I=n.findById(i);if(!I&&i===gd&&(I=n.get("canvas")),!I){var F=r.get("cardInfoMap")||{};F[i]=a,r.set("cardInfoMap",F);return}r.toggleAnnotation(I,{x:o,y:s,title:l,content:h,collapsed:p}),D||r.hideCard(i)})},t.prototype.clear=function(){var e=this.get("cardInfoMap");if(!!e){var r=this.get("container");Object.values(e).forEach(function(n){var a=n.card,i=n.link;r.removeChild(a),i==null||i.remove(!0)}),this.set("cardInfoMap",{})}},t.prototype.destroy=function(){var e;this.clear(),(e=this.get("canvas"))===null||e===void 0||e.destroy();var r=this.get("graph");!r||r.destroyed||(this.get("containerCfg")&&r.getContainer().removeChild(this.get("container")),this.destroyed=!0)},t}(Qi),Ch=Mh,Th=function(t,e){var r,n,a,i=Infinity;Object.keys(t).forEach(function(l){var h=t[l];Object.keys(e).forEach(function(p){var D=e[p],I=h.x-D.x,F=h.y-D.y,Z=I*I+F*F;i>Z&&(i=Z,r=h,n=D,a=[l,p])})});var o=20,s=ki.getControlPoint(r,n,.5,o);return[["M",r.x,r.y],["Q",s.x,s.y,n.x,n.y]]},ql=function(t,e,r,n){var a,i,o=t.getType();if(o==="edge")i=[t.getKeyShape().getPoint(.5)];else{var s=(a=t.getKeyShape)===null||a===void 0?void 0:a.call(t).getBBox(),l=s.minX,h=s.minY,p=s.maxX,D=s.maxY,I=t.getModel(),F=I.x,Z=I.y;l+=F,h+=Z,p+=F,D+=Z,i={left:{x:l,y:(h+D)/2},right:{x:p,y:(h+D)/2},top:{x:(l+p)/2,y:h},bottom:{x:(l+p)/2,y:D}}}Object.keys(i).forEach(function(at){var qe=i[at],yt=qe.x,Ft=qe.y,yr=r.getClientByPoint(yt,Ft);i[at]=n.getPointByClient(yr.x,yr.y)});var ee=e.top,se=ee===void 0?0:ee,oe=e.left,ce=oe===void 0?0:oe,we=e.right,Re=we===void 0?0:we,Oe=e.bottom,Pe=Oe===void 0?0:Oe,He={left:n.getPointByClient(ce,(se+Pe)/2),right:n.getPointByClient(Re,(se+Pe)/2),top:n.getPointByClient((ce+Re)/2,se),bottom:n.getPointByClient((ce+Re)/2,Pe)};return Th(i,He)},oc=function(t){return Number(t.replace(/\s+|px/gi,""))||0},Ih={PluginBase:Qi,Menu:Es,Grid:jc,Minimap:bl,Bundling:Sl,ToolBar:ve,Tooltip:Zt,Fisheye:Zc,TimeBar:yn,ImageMinimap:Sa,EdgeFilterLens:kl,SnapLine:Eh,Legend:Sh,Annotation:Ch},Oh=Ih,Vi=Oh;To("circle",{options:{size:Kr.defaultNode.size,style:{x:0,y:0,stroke:Kr.defaultNode.style.stroke,fill:Kr.defaultNode.style.fill,lineWidth:Kr.defaultNode.style.lineWidth},labelCfg:{style:{fill:Kr.nodeLabel.style.fill,fontSize:Kr.nodeLabel.style.fontSize,fontFamily:Kr.windowFontFamily}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:Kr.defaultNode.linkPoints.size,lineWidth:Kr.defaultNode.linkPoints.lineWidth,fill:Kr.defaultNode.linkPoints.fill,stroke:Kr.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20},stateStyles:(0,b.__assign)({},Kr.nodeStateStyles)},shapeType:"circle",labelPosition:"center",drawShape:function(t,e){var r=(this.mergeStyle||this.getOptions(t)).icon,n=r===void 0?{}:r,a=this.getShapeStyle(t),i=(0,m.deepMix)({},n,t.icon),o="".concat(this.type,"-keyShape"),s=e.addShape("circle",{attrs:a,className:o,name:o,draggable:!0});e.shapeMap[o]=s;var l=i.width,h=i.height,p=i.show,D=i.text;if(p){var I="".concat(this.type,"-icon");D?e.shapeMap[I]=e.addShape("text",{attrs:(0,b.__assign)({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},i),className:I,name:I,draggable:!0}):e.shapeMap[I]=e.addShape("image",{attrs:(0,b.__assign)({x:-l/2,y:-h/2},i),className:I,name:I,draggable:!0})}return this.drawLinkPoints(t,e),s},drawLinkPoints:function(t,e){var r=(this.mergeStyle||this.getOptions(t)).linkPoints;if(!!r){var n=r||{},a=n.top,i=n.left,o=n.right,s=n.bottom,l=n.size,h=n.r,p=(0,b.__rest)(n,["top","left","right","bottom","size","r"]),D=this.getSize(t),I=D[0]/2;if(i){var F="link-point-left";e.shapeMap[F]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},p),{x:-I,y:0,r:l/2||h||5}),className:F,name:F,isAnchorPoint:!0})}if(o){var Z="link-point-right";e.shapeMap[Z]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},p),{x:I,y:0,r:l/2||h||5}),className:Z,name:Z,isAnchorPoint:!0})}if(a){var ee="link-point-top";e.shapeMap[ee]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},p),{x:0,y:-I,r:l/2||h||5}),className:ee,name:ee,isAnchorPoint:!0})}if(s){var se="link-point-bottom";e.shapeMap[se]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},p),{x:0,y:I,r:l/2||h||5}),className:se,name:se,isAnchorPoint:!0})}}},getShapeStyle:function(t){var e=(this.mergeStyle||this.getOptions(t)).style,r={stroke:t.color},n=(0,m.deepMix)({},e,r),a=this.getSize(t),i=a[0]/2,o=(0,b.__assign)({x:0,y:0,r:i},n);return o},update:function(t,e,r){var n=e.getContainer(),a=this.getSize(t),i=(0,b.__assign)({},t.style);t.style.stroke===void 0&&t.color&&(i.stroke=t.color),t.style.r===void 0&&!isNaN(a[0])&&(i.r=a[0]/2),this.updateShape(t,e,i,!0,r),this.updateLinkPoints(t,n)}},"single-node"),To("rect",{options:{size:[100,30],style:{radius:0,stroke:Kr.defaultNode.style.stroke,fill:Kr.defaultNode.style.fill,lineWidth:Kr.defaultNode.style.lineWidth},labelCfg:{style:{fill:Kr.nodeLabel.style.fill,fontSize:Kr.nodeLabel.style.fontSize,fontFamily:Kr.windowFontFamily}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:Kr.defaultNode.linkPoints.size,lineWidth:Kr.defaultNode.linkPoints.lineWidth,fill:Kr.defaultNode.linkPoints.fill,stroke:Kr.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20},anchorPoints:[[0,.5],[1,.5]],stateStyles:(0,b.__assign)({},Kr.nodeStateStyles)},shapeType:"rect",labelPosition:"center",drawShape:function(t,e){var r=this.getShapeStyle(t),n=e.addShape("rect",{attrs:r,className:"".concat(this.type,"-keyShape"),name:"".concat(this.type,"-keyShape"),draggable:!0});return e.shapeMap["".concat(this.type,"-keyShape")]=n,this.drawLinkPoints(t,e),n},drawLinkPoints:function(t,e){var r=(this.mergeStyle||this.getOptions(t)).linkPoints,n=r===void 0?{}:r,a=n.top,i=n.left,o=n.right,s=n.bottom,l=n.size,h=n.r,p=(0,b.__rest)(n,["top","left","right","bottom","size","r"]),D=this.getSize(t),I=D[0],F=D[1];i&&(e.shapeMap["link-point-left"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},p),{x:-I/2,y:0,r:l/2||h||5}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})),o&&(e.shapeMap["link-point-right"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},p),{x:I/2,y:0,r:l/2||h||5}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})),a&&(e.shapeMap["link-point-top"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},p),{x:0,y:-F/2,r:l/2||h||5}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})),s&&(e.shapeMap["link-point-bottom"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},p),{x:0,y:F/2,r:l/2||h||5}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0}))},getShapeStyle:function(t){var e=(this.mergeStyle||this.getOptions(t)).style,r={stroke:t.color},n=(0,m.mix)({},e,r),a=this.getSize(t),i=n.width||a[0],o=n.height||a[1],s=(0,b.__assign)({x:-i/2,y:-o/2,width:i,height:o},n);return s},update:function(t,e,r){var n=e.getContainer(),a=this.getOptions({}).style,i=this.getSize(t),o=e.get("keyShape");t.size||(i[0]=o.attr("width")||a.width,i[1]=o.attr("height")||a.height);var s={stroke:t.color,x:-i[0]/2,y:-i[1]/2,width:i[0],height:i[1]},l=(0,m.mix)({},a,o.attr(),s);l=(0,m.mix)(l,t.style),this.updateShape(t,e,l,!1,r),this.updateLinkPoints(t,n)}},"single-node"),To("ellipse",{options:{size:[80,40],style:{x:0,y:0,stroke:Kr.defaultNode.style.stroke,fill:Kr.defaultNode.style.fill,lineWidth:Kr.defaultNode.style.lineWidth},labelCfg:{style:{fill:Kr.nodeLabel.style.fill,fontSize:Kr.nodeLabel.style.fontSize,fontFamily:Kr.windowFontFamily}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:Kr.defaultNode.linkPoints.size,lineWidth:Kr.defaultNode.linkPoints.lineWidth,fill:Kr.defaultNode.linkPoints.fill,stroke:Kr.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20},stateStyles:(0,b.__assign)({},Kr.nodeStateStyles)},shapeType:"ellipse",labelPosition:"center",drawShape:function(t,e){var r=(this.mergeStyle||this.getOptions(t)).icon,n=r===void 0?{}:r,a=this.getShapeStyle(t),i=e.addShape("ellipse",{attrs:a,className:"ellipse-keyShape",name:"ellipse-keyShape",draggable:!0});e.shapeMap["ellipse-keyShape"]=i;var o=n.width,s=n.height,l=n.show,h=n.text;return l&&(h?e.shapeMap["".concat(this.type,"-icon")]=e.addShape("text",{attrs:(0,b.__assign)({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},n),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0}):e.shapeMap["".concat(this.type,"-icon")]=e.addShape("image",{attrs:(0,b.__assign)({x:-o/2,y:-s/2},n),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0})),this.drawLinkPoints(t,e),i},drawLinkPoints:function(t,e){var r=(this.mergeStyle||this.getOptions(t)).linkPoints,n=r===void 0?{}:r,a=n.top,i=n.left,o=n.right,s=n.bottom,l=n.size,h=n.r,p=(0,b.__rest)(n,["top","left","right","bottom","size","r"]),D=this.getSize(t),I=D[0]/2,F=D[1]/2;i&&(e.shapeMap["link-point-left"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},p),{x:-I,y:0,r:l/2||h||5}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})),o&&(e.shapeMap["link-point-right"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},p),{x:I,y:0,r:l/2||h||5}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})),a&&(e.shapeMap["link-point-top"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},p),{x:0,y:-F,r:l/2||h||5}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})),s&&(e.shapeMap["link-point-bottom"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},p),{x:0,y:F,r:l/2||h||5}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0}))},getShapeStyle:function(t){var e=(this.mergeStyle||this.getOptions(t)).style,r={stroke:t.color},n=(0,m.mix)({},e,r),a=this.getSize(t),i=a[0]/2,o=a[1]/2,s=(0,b.__assign)({x:0,y:0,rx:i,ry:o},n);return s},update:function(t,e,r){var n=e.getContainer(),a=this.getOptions({}).style,i=this.getSize(t),o={stroke:t.color,rx:i[0]/2,ry:i[1]/2},s=e.get("keyShape"),l=(0,m.mix)({},a,s.attr(),o);l=(0,m.mix)(l,t.style),this.updateShape(t,e,l,!0,r),this.updateLinkPoints(t,n)}},"single-node"),To("diamond",{options:{size:[80,80],style:{stroke:Kr.defaultNode.style.stroke,fill:Kr.defaultNode.style.fill,lineWidth:Kr.defaultNode.style.lineWidth},labelCfg:{style:{fill:Kr.nodeLabel.style.fill,fontSize:Kr.nodeLabel.style.fontSize,fontFamily:Kr.windowFontFamily}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:Kr.defaultNode.linkPoints.size,lineWidth:Kr.defaultNode.linkPoints.lineWidth,fill:Kr.defaultNode.linkPoints.fill,stroke:Kr.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20},stateStyles:(0,b.__assign)({},Kr.nodeStateStyles)},shapeType:"diamond",labelPosition:"center",drawShape:function(t,e){var r=(this.mergeStyle||this.getOptions(t)).icon,n=r===void 0?{}:r,a=this.getShapeStyle(t),i=e.addShape("path",{attrs:a,className:"".concat(this.type,"-keyShape"),name:"".concat(this.type,"-keyShape"),draggable:!0});e.shapeMap["".concat(this.type,"-keyShape")]=i;var o=n.width,s=n.height,l=n.show,h=n.text;return l&&(h?e.shapeMap["".concat(this.type,"-icon")]=e.addShape("text",{attrs:(0,b.__assign)({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},n),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0}):e.shapeMap["".concat(this.type,"-icon")]=e.addShape("image",{attrs:(0,b.__assign)({x:-o/2,y:-s/2},n),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0})),this.drawLinkPoints(t,e),i},drawLinkPoints:function(t,e){var r=(this.mergeStyle||this.getOptions(t)).linkPoints,n=r===void 0?{}:r,a=n.top,i=n.left,o=n.right,s=n.bottom,l=n.size,h=n.r,p=(0,b.__rest)(n,["top","left","right","bottom","size","r"]),D=this.getSize(t),I=D[0],F=D[1];i&&(e.shapeMap["link-point-left"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},p),{x:-I/2,y:0,r:l/2||h||5}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})),o&&(e.shapeMap["link-point-right"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},p),{x:I/2,y:0,r:l/2||h||5}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})),a&&(e.shapeMap["link-point-top"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},p),{x:0,y:-F/2,r:l/2||h||5}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})),s&&(e.shapeMap["link-point-bottom"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},p),{x:0,y:F/2,r:l/2||h||5}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0}))},getPath:function(t){var e=this.getSize(t),r=e[0],n=e[1],a=[["M",0,-n/2],["L",r/2,0],["L",0,n/2],["L",-r/2,0],["Z"]];return a},getShapeStyle:function(t){var e=(this.mergeStyle||this.getOptions(t)).style,r={stroke:t.color},n=(0,m.mix)({},e,r),a=this.getPath(t),i=(0,b.__assign)({path:a},n);return i},update:function(t,e,r){var n=e.getContainer(),a=this.getOptions({}).style,i=this.getPath(t),o={stroke:t.color,path:i},s=e.get("keyShape"),l=(0,m.mix)({},a,s.attr(),o);l=(0,m.mix)(l,t.style),this.updateShape(t,e,l,!0,r),this.updateLinkPoints(t,n)}},"single-node"),To("triangle",{options:{size:40,direction:"up",style:{stroke:Kr.defaultNode.style.stroke,fill:Kr.defaultNode.style.fill,lineWidth:Kr.defaultNode.style.lineWidth},labelCfg:{style:{fill:Kr.nodeLabel.style.fill,fontSize:Kr.nodeLabel.style.fontSize},offset:15},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:Kr.defaultNode.linkPoints.size,lineWidth:Kr.defaultNode.linkPoints.lineWidth,fill:Kr.defaultNode.linkPoints.fill,stroke:Kr.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20,offset:6},stateStyles:(0,b.__assign)({},Kr.nodeStateStyles)},shapeType:"triangle",labelPosition:"bottom",drawShape:function(t,e){var r=this.mergeStyle||this.getOptions(t),n=r.icon,a=n===void 0?{}:n,i=r.direction,o=this.getShapeStyle(t),s=t.direction||i,l=e.addShape("path",{attrs:o,className:"".concat(this.type,"-keyShape"),name:"".concat(this.type,"-keyShape"),draggable:!0});e.shapeMap["".concat(this.type,"-keyShape")]=l;var h=a.width,p=a.height,D=a.show,I=a.offset,F=a.text;if(D)if(F)e.shapeMap["".concat(this.type,"-icon")]=e.addShape("text",{attrs:(0,b.__assign)({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},a),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0});else{var Z=-h/2,ee=-p/2;(s==="up"||s==="down")&&(ee+=I),(s==="left"||s==="right")&&(Z+=I),e.shapeMap["".concat(this.type,"-icon")]=e.addShape("image",{attrs:(0,b.__assign)({x:Z,y:ee},a),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0})}return this.drawLinkPoints(t,e),l},drawLinkPoints:function(t,e){var r=this.mergeStyle||this.getOptions(t),n=r.linkPoints,a=n===void 0?{}:n,i=r.direction,o=t.direction||i,s=a.top,l=a.left,h=a.right,p=a.bottom,D=a.size,I=a.r,F=(0,b.__rest)(a,["top","left","right","bottom","size","r"]),Z=this.getSize(t),ee=Z[0];if(l){var se=null,oe=ee*Math.sin(1/3*Math.PI),ce=ee*Math.sin(1/3*Math.PI);o==="up"?se=[-ce,oe]:o==="down"?se=[-ce,-oe]:o==="left"&&(se=[-ce,ce-oe]),se&&(e.shapeMap["link-point-left"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},F),{x:se[0],y:se[1],r:D/2||I||5}),className:"link-point-left",name:"link-point-left"}))}if(h){var we=null,oe=ee*Math.sin(1/3*Math.PI),ce=ee*Math.sin(1/3*Math.PI);o==="up"?we=[ce,oe]:o==="down"?we=[ce,-oe]:o==="right"&&(we=[ce,ce-oe]),we&&(e.shapeMap["link-point-right"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},F),{x:we[0],y:we[1],r:D/2||I||5}),className:"link-point-right",name:"link-point-right"}))}if(s){var Re=null,oe=ee*Math.sin(1/3*Math.PI),ce=ee*Math.sin(1/3*Math.PI);o==="up"?Re=[ce-oe,-oe]:o==="left"?Re=[ce,-oe]:o==="right"&&(Re=[-ce,-oe]),Re&&(e.shapeMap["link-point-top"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},F),{x:Re[0],y:Re[1],r:D/2||I||5}),className:"link-point-top",name:"link-point-top"}))}if(p){var Oe=null,oe=ee*Math.sin(1/3*Math.PI),ce=ee*Math.sin(1/3*Math.PI);o==="down"?Oe=[-ce+oe,oe]:o==="left"?Oe=[ce,oe]:o==="right"&&(Oe=[-ce,oe]),Oe&&(e.shapeMap["link-point-bottom"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},F),{x:Oe[0],y:Oe[1],r:D/2||I||5}),className:"link-point-bottom",name:"link-point-bottom"}))}},getPath:function(t){var e=(this.mergeStyle||this.getOptions(t)).direction,r=t.direction||e,n=this.getSize(t),a=n[0],i=a*Math.sin(1/3*Math.PI),o=a*Math.sin(1/3*Math.PI),s=[["M",-o,i],["L",0,-i],["L",o,i],["Z"]];return r==="down"?s=[["M",-o,-i],["L",o,-i],["L",0,i],["Z"]]:r==="left"?s=[["M",-o,o-i],["L",o,-o],["L",o,o],["Z"]]:r==="right"&&(s=[["M",o,o-i],["L",-o,o],["L",-o,-o],["Z"]]),s},getShapeStyle:function(t){var e=(this.mergeStyle||this.getOptions(t)).style,r={stroke:t.color},n=(0,m.mix)({},e,r),a=this.getPath(t),i=(0,b.__assign)({path:a},n);return i},update:function(t,e,r){var n=e.getContainer(),a=this.getOptions({}).style,i=this.getPath(t),o={stroke:t.color,path:i},s=e.get("keyShape"),l=(0,m.mix)({},a,s.attr(),o);l=(0,m.mix)(l,t.style),this.updateShape(t,e,l,!0,r),this.updateLinkPoints(t,n)},updateLinkPoints:function(t,e){var r=this.getOptions({}),n=r.linkPoints,a=r.direction,i=t.direction||a,o=e.shapeMap["link-point-left"]||e.find(function(Kt){return Kt.get("className")==="link-point-left"}),s=e.shapeMap["link-point-right"]||e.find(function(Kt){return Kt.get("className")==="link-point-right"}),l=e.shapeMap["link-point-top"]||e.find(function(Kt){return Kt.get("className")==="link-point-top"}),h=e.shapeMap["link-point-bottom"]||e.find(function(Kt){return Kt.get("className")==="link-point-bottom"}),p=n,D=o||s||l||h;D&&(p=D.attr());var I=(0,m.mix)({},p,t.linkPoints),F=I.fill,Z=I.stroke,ee=I.lineWidth,se=I.size/2;se||(se=I.r);var oe=t.linkPoints?t.linkPoints:{left:void 0,right:void 0,top:void 0,bottom:void 0},ce=oe.left,we=oe.right,Re=oe.top,Oe=oe.bottom,Pe=this.getSize(t),He=Pe[0],at={r:se,fill:F,stroke:Z,lineWidth:ee},qe=null,yt=He*Math.sin(1/3*Math.PI),Ft=He*Math.sin(1/3*Math.PI);i==="up"?qe=[-Ft,yt]:i==="down"?qe=[-Ft,-yt]:i==="left"&&(qe=[-Ft,Ft-yt]),qe&&(o?!ce&&ce!==void 0?(o.remove(),delete e.shapeMap["link-point-left"]):o.attr((0,b.__assign)((0,b.__assign)({},at),{x:qe[0],y:qe[1]})):ce&&(e.shapeMap["link-point-left"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},at),{x:qe[0],y:qe[1]}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})));var yr=null;i==="up"?yr=[Ft,yt]:i==="down"?yr=[Ft,-yt]:i==="right"&&(yr=[Ft,Ft-yt]),yr&&(s?!we&&we!==void 0?(s.remove(),delete e.shapeMap["link-point-right"]):s.attr((0,b.__assign)((0,b.__assign)({},at),{x:yr[0],y:yr[1]})):we&&(e.shapeMap["link-point-right"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},at),{x:yr[0],y:yr[1]}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})));var fr=null;i==="up"?fr=[Ft-yt,-yt]:i==="left"?fr=[Ft,-yt]:i==="right"&&(fr=[-Ft,-yt]),fr&&(l?!Re&&Re!==void 0?(l.remove(),delete e.shapeMap["link-point-top"]):l.attr((0,b.__assign)((0,b.__assign)({},at),{x:fr[0],y:fr[1]})):Re&&(e.shapeMap["link-point-top"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},at),{x:fr[0],y:fr[1]}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})));var lr=null;i==="down"?lr=[-Ft+yt,yt]:i==="left"?lr=[Ft,yt]:i==="right"&&(lr=[-Ft,yt]),lr&&(h?!Oe&&Oe!==void 0?(h.remove(),delete e.shapeMap["link-point-bottom"]):h.attr((0,b.__assign)((0,b.__assign)({},at),{x:lr[0],y:lr[1]})):Oe&&(e.shapeMap["link-point-bottom"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},at),{x:lr[0],y:lr[1]}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0})))}},"single-node"),To("modelRect",{options:{size:[185,70],style:{radius:5,stroke:"#69c0ff",fill:"#ffffff",lineWidth:Kr.defaultNode.style.lineWidth,fillOpacity:1},labelCfg:{style:{fill:"#595959",fontSize:14,fontFamily:Kr.windowFontFamily},offset:30},descriptionCfg:{style:{fontSize:12,fill:"#bfbfbf",fontFamily:Kr.windowFontFamily},paddingTop:0},preRect:{show:!0,width:4,fill:"#40a9ff",radius:2},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:10,lineWidth:1,fill:"#72CC4A",stroke:"#72CC4A"},logoIcon:{show:!0,x:0,y:0,img:"https://gw.alipayobjects.com/zos/basement_prod/4f81893c-1806-4de4-aff3-9a6b266bc8a2.svg",width:16,height:16,offset:0},stateIcon:{show:!0,x:0,y:0,img:"https://gw.alipayobjects.com/zos/basement_prod/300a2523-67e0-4cbf-9d4a-67c077b40395.svg",width:16,height:16,offset:-5},anchorPoints:[[0,.5],[1,.5]]},shapeType:"modelRect",drawShape:function(t,e){var r=(this.mergeStyle||this.getOptions(t)).preRect,n=r===void 0?{}:r,a=this.getShapeStyle(t),i=this.getSize(t),o=i[0],s=i[1],l=e.addShape("rect",{attrs:a,className:"".concat(this.type,"-keyShape"),name:"".concat(this.type,"-keyShape"),draggable:!0});e.shapeMap["".concat(this.type,"-keyShape")]=l;var h=n.show,p=(0,b.__rest)(n,["show"]);return h&&(e.shapeMap["pre-rect"]=e.addShape("rect",{attrs:(0,b.__assign)({x:-o/2,y:-s/2,height:s},p),className:"pre-rect",name:"pre-rect",draggable:!0})),this.drawLogoIcon(t,e),this.drawStateIcon(t,e),this.drawLinkPoints(t,e),l},drawLogoIcon:function(t,e){var r=(this.mergeStyle||this.getOptions(t)).logoIcon,n=r===void 0?{}:r,a=this.getSize(t),i=a[0];if(n.show){var o=n.width,s=n.height,l=n.x,h=n.y,p=n.offset,D=n.text,I=(0,b.__rest)(n,["width","height","x","y","offset","text"]);D?e.shapeMap["rect-logo-icon"]=e.addShape("text",{attrs:(0,b.__assign)({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},I),className:"rect-logo-icon",name:"rect-logo-icon",draggable:!0}):e.shapeMap["rect-logo-icon"]=e.addShape("image",{attrs:(0,b.__assign)((0,b.__assign)({},I),{x:l||-i/2+o+p,y:h||-s/2,width:o,height:s}),className:"rect-logo-icon",name:"rect-logo-icon",draggable:!0})}},drawStateIcon:function(t,e){var r=(this.mergeStyle||this.getOptions(t)).stateIcon,n=r===void 0?{}:r,a=this.getSize(t),i=a[0];if(n.show){var o=n.width,s=n.height,l=n.x,h=n.y,p=n.offset,D=n.text,I=(0,b.__rest)(n,["width","height","x","y","offset","text"]);D?e.shapeMap["rect-state-icon"]=e.addShape("text",{attrs:(0,b.__assign)({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},I),className:"rect-state-icon",name:"rect-state-icon",draggable:!0}):e.shapeMap["rect-state-icon"]=e.addShape("image",{attrs:(0,b.__assign)((0,b.__assign)({},I),{x:l||i/2-o+p,y:h||-s/2,width:o,height:s}),className:"rect-state-icon",name:"rect-state-icon",draggable:!0})}},drawLinkPoints:function(t,e){var r=(this.mergeStyle||this.getOptions(t)).linkPoints,n=r===void 0?{}:r,a=n.top,i=n.left,o=n.right,s=n.bottom,l=n.size,h=n.r,p=(0,b.__rest)(n,["top","left","right","bottom","size","r"]),D=this.getSize(t),I=D[0],F=D[1];i&&(e.shapeMap["link-point-left"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},p),{x:-I/2,y:0,r:l/2||h||5}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})),o&&(e.shapeMap["link-point-right"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},p),{x:I/2,y:0,r:l/2||h||5}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})),a&&(e.shapeMap["link-point-top"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},p),{x:0,y:-F/2,r:l/2||h||5}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})),s&&(e.shapeMap["link-point-bottom"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},p),{x:0,y:F/2,r:l/2||h||5}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0}))},drawLabel:function(t,e){var r=this.getOptions(t),n=r.labelCfg,a=n===void 0?{}:n,i=r.logoIcon,o=i===void 0?{}:i,s=r.descriptionCfg,l=s===void 0?{}:s,h=this.getSize(t),p=h[0],D=null,I=o.show,F=o.width,Z=-p/2+a.offset;I&&(Z=-p/2+F+a.offset);var ee=a.style,se=l.style,oe=l.paddingTop;return(0,m.isString)(t.description)?(D=e.addShape("text",{attrs:(0,b.__assign)((0,b.__assign)({},ee),{x:Z,y:-5,text:t.label}),className:"text-shape",name:"text-shape",draggable:!0,labelRelated:!0}),e.shapeMap["text-shape"]=D,e.shapeMap["rect-description"]=e.addShape("text",{attrs:(0,b.__assign)((0,b.__assign)({},se),{x:Z,y:17+(oe||0),text:t.description}),className:"rect-description",name:"rect-description",draggable:!0,labelRelated:!0})):(D=e.addShape("text",{attrs:(0,b.__assign)((0,b.__assign)({},ee),{x:Z,y:7,text:t.label}),className:"text-shape",name:"text-shape",draggable:!0,labelRelated:!0}),e.shapeMap["text-shape"]=D),D},getShapeStyle:function(t){var e=(this.mergeStyle||this.getOptions(t)).style,r={stroke:t.color},n=(0,m.mix)({},e,r),a=this.getSize(t),i=n.width||a[0],o=n.height||a[1],s=(0,b.__assign)({x:-i/2,y:-o/2,width:i,height:o},n);return s},update:function(t,e){var r=this.mergeStyle||this.getOptions(t),n=r.style,a=n===void 0?{}:n,i=r.labelCfg,o=i===void 0?{}:i,s=r.descriptionCfg,l=s===void 0?{}:s,h=this.getSize(t),p=h[0],D=h[1],I=e.get("keyShape");I.attr((0,b.__assign)((0,b.__assign)({},a),{x:-p/2,y:-D/2,width:p,height:D}));var F=e.getContainer(),Z=F.shapeMap["rect-logo-icon"]||F.find(function(Tn){return Tn.get("className")==="rect-logo-icon"}),ee=Z?Z.attr():{},se=(0,m.mix)({},ee,t.logoIcon),oe=se.width;oe===void 0&&(oe=this.options.logoIcon.width);var ce=t.logoIcon?t.logoIcon.show:void 0,we=o.offset,Re=-p/2+oe+we;!ce&&ce!==void 0&&(Re=-p/2+we);var Oe=F.shapeMap["node-label"]||F.find(function(Tn){return Tn.get("className")==="node-label"}),Pe=F.shapeMap["rect-description"]||F.find(function(Tn){return Tn.get("className")==="rect-description"});if(t.label)if(!Oe)F.shapeMap["node-label"]=F.addShape("text",{attrs:(0,b.__assign)((0,b.__assign)({},o.style),{x:Re,y:t.description?-5:7,text:t.label}),className:"node-label",name:"node-label",draggable:!0,labelRelated:!0});else{var He=t.labelCfg?t.labelCfg.style:{},at=(0,m.mix)({},Oe.attr(),He);t.label&&(at.text=t.label),at.x=Re,(0,m.isString)(t.description)&&(at.y=-5),Pe&&(Pe.resetMatrix(),Pe.attr({x:Re})),Oe.resetMatrix(),Oe.attr(at)}if((0,m.isString)(t.description)){var qe=l.paddingTop;if(!Pe)F.shapeMap["rect-description"]=F.addShape("text",{attrs:(0,b.__assign)((0,b.__assign)({},l.style),{x:Re,y:17+(qe||0),text:t.description}),className:"rect-description",name:"rect-description",draggable:!0,labelRelated:!0});else{var He=t.descriptionCfg?t.descriptionCfg.style:{},yt=(0,m.mix)({},Pe.attr(),He);(0,m.isString)(t.description)&&(yt.text=t.description),yt.x=Re,Pe.resetMatrix(),Pe.attr((0,b.__assign)((0,b.__assign)({},yt),{y:17+(qe||0)}))}}var Ft=F.shapeMap["pre-rect"]||F.find(function(Tn){return Tn.get("className")==="pre-rect"});if(Ft&&!Ft.destroyed){var yr=(0,m.mix)({},Ft.attr(),t.preRect);Ft.attr((0,b.__assign)((0,b.__assign)({},yr),{x:-p/2,y:-D/2,height:D}))}if(Z&&!Z.destroyed)if(!ce&&ce!==void 0)Z.remove(),delete F.shapeMap["pre-rect"];else{var fr=se.width,lr=se.height,Kt=se.x,jr=se.y,Xr=se.offset,er=(0,b.__rest)(se,["width","height","x","y","offset"]);Z.attr((0,b.__assign)((0,b.__assign)({},er),{x:Kt||-p/2+fr+Xr,y:jr||-lr/2,width:fr,height:lr}))}else ce&&this.drawLogoIcon(t,F);var mr=F.shapeMap["rect-state-icon"]||F.find(function(Tn){return Tn.get("className")==="rect-state-icon"}),kr=mr?mr.attr():{},Fr=(0,m.mix)({},kr,t.stateIcon);if(mr){!Fr.show&&Fr.show!==void 0&&(mr.remove(),delete F.shapeMap["rect-state-icon"]);var Jr=Fr.width,lr=Fr.height,Kt=Fr.x,jr=Fr.y,fn=Fr.offset,Vn=(0,b.__rest)(Fr,["width","height","x","y","offset"]);mr.attr((0,b.__assign)((0,b.__assign)({},Vn),{x:Kt||p/2-Jr+fn,y:jr||-lr/2,width:Jr,height:lr}))}else Fr.show&&this.drawStateIcon(t,F);this.updateLinkPoints(t,F)},getOptions:function(t,e){return e==="move"?t:(0,m.deepMix)({},this.options,this.getCustomConfig(t)||{},t)}},"single-node"),To("star",{options:{size:60,style:{stroke:Kr.defaultNode.style.stroke,fill:Kr.defaultNode.style.fill,lineWidth:Kr.defaultNode.style.lineWidth},labelCfg:{style:{fill:Kr.nodeLabel.style.fill,fontSize:Kr.nodeLabel.style.fontSize,fontFamily:Kr.windowFontFamily}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:Kr.defaultNode.linkPoints.size,lineWidth:Kr.defaultNode.linkPoints.lineWidth,fill:Kr.defaultNode.linkPoints.fill,stroke:Kr.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20},stateStyles:(0,b.__assign)({},Kr.nodeStateStyles)},shapeType:"star",labelPosition:"center",drawShape:function(t,e){var r=(this.mergeStyle||this.getOptions(t)).icon,n=r===void 0?{}:r,a=this.getShapeStyle(t),i=e.addShape("path",{attrs:a,className:"".concat(this.type,"-keyShape"),name:"".concat(this.type,"-keyShape"),draggable:!0});e.shapeMap["".concat(this.type,"-keyShape")]=i;var o=n.width,s=n.height,l=n.show,h=n.text;return l&&(h?e.shapeMap["".concat(this.type,"-icon")]=e.addShape("text",{attrs:(0,b.__assign)({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},n),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0}):e.shapeMap["".concat(this.type,"-icon")]=e.addShape("image",{attrs:(0,b.__assign)({x:-o/2,y:-s/2},n),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0})),this.drawLinkPoints(t,e),i},drawLinkPoints:function(t,e){var r=(this.mergeStyle||this.getOptions(t)).linkPoints,n=r===void 0?{}:r,a=n.top,i=n.left,o=n.right,s=n.leftBottom,l=n.rightBottom,h=n.size,p=n.r,D=(0,b.__rest)(n,["top","left","right","leftBottom","rightBottom","size","r"]),I=this.getSize(t),F=I[0];if(o){var Z=Math.cos((18+72*0)/180*Math.PI)*F,ee=Math.sin((18+72*0)/180*Math.PI)*F;e.shapeMap["link-point-right"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},D),{x:Z,y:-ee,r:h/2||p||5}),className:"link-point-right",name:"link-point-right"})}if(a){var Z=Math.cos((18+72*1)/180*Math.PI)*F,ee=Math.sin((18+72*1)/180*Math.PI)*F;e.shapeMap["link-point-top"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},D),{x:Z,y:-ee,r:h/2||p||5}),className:"link-point-top",name:"link-point-top"})}if(i){var Z=Math.cos((18+72*2)/180*Math.PI)*F,ee=Math.sin((18+72*2)/180*Math.PI)*F;e.shapeMap["link-point-left"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},D),{x:Z,y:-ee,r:h/2||p||5}),className:"link-point-left",name:"link-point-left"})}if(s){var Z=Math.cos((18+72*3)/180*Math.PI)*F,ee=Math.sin((18+72*3)/180*Math.PI)*F;e.shapeMap["link-point-bottom"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},D),{x:Z,y:-ee,r:h/2||p||5}),className:"link-point-left-bottom",name:"link-point-left-bottom"})}if(l){var Z=Math.cos((18+72*4)/180*Math.PI)*F,ee=Math.sin((18+72*4)/180*Math.PI)*F;e.shapeMap["link-point-right-bottom"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},D),{x:Z,y:-ee,r:h/2||p||5}),className:"link-point-right-bottom",name:"link-point-right-bottom"})}},getPath:function(t){var e=this.getSize(t),r=e[0],n=r*3/8,a=t.innerR||n;return ki.getStarPath(r,a)},getShapeStyle:function(t){var e=(this.mergeStyle||this.getOptions(t)).style,r={stroke:t.color},n=(0,m.mix)({},e,r),a=this.getPath(t),i=(0,b.__assign)({path:a},n);return i},update:function(t,e,r){var n=e.getContainer(),a=this.getOptions({}).style,i=this.getPath(t),o={stroke:t.color,path:i},s=e.get("keyShape"),l=(0,m.mix)({},a,s.attr(),o);l=(0,m.mix)(l,t.style),this.updateShape(t,e,l,!0,r),this.updateLinkPoints(t,n)},updateLinkPoints:function(t,e){var r=this.getOptions({}).linkPoints,n=e.shapeMap["link-point-left"]||e.find(function(yt){return yt.get("className")==="link-point-left"}),a=e.shapeMap["link-point-right"]||e.find(function(yt){return yt.get("className")==="link-point-right"}),i=e.shapeMap["link-point-top"]||e.find(function(yt){return yt.get("className")==="link-point-top"}),o=e.shapeMap["link-point-left-bottom"]||e.find(function(yt){return yt.get("className")==="link-point-left-bottom"}),s=e.shapeMap["link-point-left-bottom"]||e.find(function(yt){return yt.get("className")==="link-point-right-bottom"}),l=r,h=n||a||i||o||s;h&&(l=h.attr());var p=(0,m.mix)({},l,t.linkPoints),D=p.fill,I=p.stroke,F=p.lineWidth,Z=p.size/2;Z||(Z=p.r);var ee=t.linkPoints?t.linkPoints:{left:void 0,right:void 0,top:void 0,leftBottom:void 0,rightBottom:void 0},se=ee.left,oe=ee.right,ce=ee.top,we=ee.leftBottom,Re=ee.rightBottom,Oe=this.getSize(t),Pe=Oe[0],He={r:Z,fill:D,stroke:I,lineWidth:F},at=Math.cos((18+72*0)/180*Math.PI)*Pe,qe=Math.sin((18+72*0)/180*Math.PI)*Pe;a?!oe&&oe!==void 0?(a.remove(),delete e.shapeMap["link-point-right"]):a.attr((0,b.__assign)((0,b.__assign)({},He),{x:at,y:-qe})):oe&&(e.shapeMap["link-point-right"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},He),{x:at,y:-qe}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})),at=Math.cos((18+72*1)/180*Math.PI)*Pe,qe=Math.sin((18+72*1)/180*Math.PI)*Pe,i?!ce&&ce!==void 0?(i.remove(),delete e.shapeMap["link-point-top"]):i.attr((0,b.__assign)((0,b.__assign)({},He),{x:at,y:-qe})):ce&&(e.shapeMap["link-point-top"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},He),{x:at,y:-qe}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})),at=Math.cos((18+72*2)/180*Math.PI)*Pe,qe=Math.sin((18+72*2)/180*Math.PI)*Pe,n?!se&&se!==void 0?(n.remove(),delete e.shapeMap["link-point-left"]):n.attr((0,b.__assign)((0,b.__assign)({},He),{x:at,y:-qe})):se&&(e.shapeMap["link-point-left"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},He),{x:at,y:-qe}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})),at=Math.cos((18+72*3)/180*Math.PI)*Pe,qe=Math.sin((18+72*3)/180*Math.PI)*Pe,o?!we&&we!==void 0?(o.remove(),delete e.shapeMap["link-point-left-bottom"]):o.attr((0,b.__assign)((0,b.__assign)({},He),{x:at,y:-qe})):we&&(e.shapeMap["link-point-left-bottom"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},He),{x:at,y:-qe}),className:"link-point-left-bottom",name:"link-point-left-bottom",isAnchorPoint:!0})),at=Math.cos((18+72*4)/180*Math.PI)*Pe,qe=Math.sin((18+72*4)/180*Math.PI)*Pe,s?!Re&&Re!==void 0?(s.remove(),delete e.shapeMap["link-point-right-bottom"]):s.attr((0,b.__assign)((0,b.__assign)({},He),{x:at,y:-qe})):Re&&(e.shapeMap["link-point-right-bottom"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},He),{x:at,y:-qe}),className:"link-point-right-bottom",name:"link-point-right-bottom",isAnchorPoint:!0}))}},"single-node");var pd=ki.defaultSubjectColors,Il="fan-shape-";To("donut",{options:{size:Kr.defaultNode.size,style:{x:0,y:0,stroke:Kr.defaultNode.style.stroke,fill:Kr.defaultNode.style.fill,lineWidth:Kr.defaultNode.style.lineWidth},labelCfg:{style:{fill:Kr.nodeLabel.style.fill,fontSize:Kr.nodeLabel.style.fontSize,fontFamily:Kr.windowFontFamily}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:Kr.defaultNode.linkPoints.size,lineWidth:Kr.defaultNode.linkPoints.lineWidth,fill:Kr.defaultNode.linkPoints.fill,stroke:Kr.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20},stateStyles:(0,b.__assign)({},Kr.nodeStateStyles)},shapeType:"circle",labelPosition:"center",drawShape:function(t,e){var r=(this.mergeStyle||this.getOptions(t)).icon,n=r===void 0?{}:r,a=this.getShapeStyle(t),i=(0,m.deepMix)({},n,t.icon),o=e.addShape("circle",{attrs:a,className:"".concat(this.type,"-keyShape"),draggable:!0,name:"".concat(this.type,"-keyShape")});e.shapeMap["".concat(this.type,"-keyShape")]=o;var s=i.width,l=i.height,h=i.show,p=i.text;return h&&(p?e.shapeMap["".concat(this.type,"-icon")]=e.addShape("text",{attrs:(0,b.__assign)({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},i),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0}):e.shapeMap["".concat(this.type,"-icon")]=e.addShape("image",{attrs:(0,b.__assign)({x:-s/2,y:-l/2},i),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0})),Ah(t,e,o),this.drawLinkPoints(t,e),o},updateShape:function(t,e,r,n,a){var i=e.get("keyShape");i.attr((0,b.__assign)({},r)),Lh(t,e,i),this.updateLabel(t,e,a),n&&this.updateIcon(t,e)}},"circle");var Ah=function(t,e,r){var n=t.donutAttrs,a=n===void 0?{}:n,i=t.donutColorMap,o=i===void 0?{}:i,s=Object.keys(a).length;if(a&&s>1){var l=yd(a,o),h=l.configs,p=l.totalValue;if(p){var D=md(r),I=D.lineWidth,F=D.arcR,Z=[F,0],ee=0;if(s===1){ed(e,{arcR:F,arcBegin:Z,beginAngle:ee,config:h[0],fanIndex:0,lineWidth:I,totalValue:p,drawWhole:!0});return}for(var se=0;se.999)Z=[r,1e-4],se=1;else{var oe=F*Math.PI*2;ee=a+oe,Z=[r*Math.cos(ee),-r*Math.sin(ee)],se=oe>Math.PI?1:0}var ce={path:[["M",n[0],n[1]],["A",r,r,0,se,0,Z[0],Z[1]],["L",Z[0],Z[1]]],stroke:i.color||(I==null?void 0:I.attr("stroke"))||pd[o%pd.length],lineWidth:s};return I?I.attr(ce):t.shapeMap["".concat(Il).concat(o)]=t.addShape("path",{attrs:ce,name:"".concat(Il).concat(o),draggable:!0}),{beginAngle:ee,arcBegin:Z,shape:t.shapeMap["".concat(Il).concat(o)],shouldEnd:p||F>.999}},Lh=function(t,e,r){var n=t.donutAttrs,a=t.donutColorMap,i=a===void 0?{}:a,o={},s=e.getContainer();if(n){var l=yd(n,i),h=l.configs,p=l.totalValue;if(p)for(var D=md(r),I=D.lineWidth,F=D.arcR,Z=[F,0],ee=0,se=0;se=0;a--){var i=t[a];i.id="".concat(i.x,"|||").concat(i.y),r[i.id]||(r[i.id]=i,e.push(i))}return e},Ed=function(t){return td(t)},Jg=function(t,e){return[t,{x:t.x,y:e.y},e]},Bl=function(t,e){return t.width||t.height?{centerX:t.centerX,centerY:t.centerY,minX:t.minX-e,minY:t.minY-e,maxX:t.maxX+e,maxY:t.maxY+e,height:t.height+2*e,width:t.width+2*e}:t},Nh=function(t,e){var r=Math.abs(t.x-e.centerX),n=Math.abs(t.y-e.centerY);return r===0&&n===0?0:r/e.width>n/e.height},rd=function(t,e,r){var n=Nh(e,t);if(n===0){var a=t.centerX,i=t.centerY;return r.ye.x?a=t.maxX:r.xt.centerX?t.maxX:t.minX,y:e.y}:{x:e.x,y:e.y>t.centerY?t.maxY:t.minY}},bd=function(t,e){var r=Math.min(t.minX,e.minX),n=Math.min(t.minY,e.minY),a=Math.max(t.maxX,e.maxX),i=Math.max(t.maxY,e.maxY);return{centerX:(r+a)/2,centerY:(n+i)/2,minX:r,minY:n,maxX:a,maxY:i,height:i-n,width:a-r}},nd=function(t){return[{x:t.minX,y:t.minY},{x:t.maxX,y:t.minY},{x:t.maxX,y:t.maxY},{x:t.minX,y:t.maxY}]},Fl=function(t,e){var r=t.x,n=t.y;return re.maxX||ne.maxY},Ph=function(t,e){return et.maxX?[]:[{x:e,y:t.minY},{x:e,y:t.maxY}]},kh=function(t,e){return et.maxY?[]:[{x:t.minX,y:e},{x:t.maxX,y:e}]},Rh=function(t,e){return Ph(t,e.x).concat(kh(t,e.y))},Ol=function(t,e){return Math.abs(t.x-e.x)+Math.abs(t.y-e.y)},Bh=function(t,e){var r=-2,n=0;return e.forEach(function(a){a&&(t.x===a.x&&(n+=r),t.y===a.y&&(n+=r))}),n},xd=function(t,e,r,n,a){return Ol(t,e)+Ol(t,r)+Bh(t,[e,r,n,a])},Fh=function c(t,e,r,n,a){a===void 0&&(a=0),t.unshift(e[n]),r[n]&&r[n]!==n&&a<=100&&c(t,e,r,r[n],a+1)},qg=function(t,e){var r=t.indexOf(e);r>-1&&t.splice(r,1)},Gl=function(t,e,r,n){var a=r.x-t.x,i=r.y-t.y,o=n.x-t.x,s=n.y-t.y,l=r.x-e.x,h=r.y-e.y,p=n.x-e.x,D=n.y-e.y,I=a*s-i*o,F=l*D-h*p,Z=a*h-i*l,ee=o*D-s*p;return I*F<=0&&Z*ee<=0},ad=function(t,e,r){if(r.width||r.height){var n=nd(r),a=n[0],i=n[1],o=n[2],s=n[3];return Gl(t,e,a,i)||Gl(t,e,a,s)||Gl(t,e,i,o)||Gl(t,e,o,s)}return!1},Gh=function(t,e,r,n){var a=[];return t.forEach(function(i){if(i!==e&&(i.x===e.x||i.y===e.y)){if(ad(i,e,r)||ad(i,e,n))return;a.push(i)}}),td(a)},zh=function(t,e,r,n,a,i,o){var s,l=[],h=(s={},s[e.id]=e,s),p={},D={},I={};D[e.id]=0,I[e.id]=xd(e,r,e);var F=new _d;F.add({id:e.id,value:I[e.id]});var Z={};t.forEach(function(Re){Z[Re.id]=Re});for(var ee;Object.keys(h).length;){var se=F.minId(!1);if(se)ee=h[se];else break;if(ee===r){var oe=[];return Fh(oe,Z,p,r.id),oe}delete h[ee.id],F.remove(ee.id),l.push(ee);var ce=Gh(t,ee,n,a),we=function(Oe){Oe.forEach(function(Pe){if(l.indexOf(Pe)===-1){var He=Pe.id;h[He]||(h[He]=Pe);var at=I[ee.id]+Ol(ee,Pe);if(D[He]&&at>=D[He]){F.add({id:He,value:I[He]});return}p[He]=ee.id,D[He]=at,I[He]=D[He]+xd(Pe,r,e,i,o),F.add({id:He,value:I[He]})}})};we(ce)}return[e,r]},Uh=function(t,e,r){return!(t.x===e.x&&e.x===r.x||t.y===e.y&&e.y===r.y)},Wh=function(t,e,r,n){var a=Ol(t,e),i=Ol(r,e);a=0;i--){var o=t[i];if(o.x===r.x?n.push(o):(n=[o],r.x=o.x),o.y===r.y?a.push(o):(a=[o],r.y=o.y),n.length>2){var s=t.indexOf(n[1]);s>-1&&t.splice(s,1);continue}if(a.length>2){var s=t.indexOf(a[1]);s>-1&&t.splice(s,1)}}return t},_d=function(){function c(){this.arr=[],this.map={},this.arr=[],this.map={}}return c.prototype._innerAdd=function(t,e){for(var r=[0,e-1];r[1]-r[0]>1;){var n=Math.floor((r[0]+r[1])/2);if(this.arr[n].value>t.value)r[1]=n;else if(this.arr[n].value=0;e--)this.map[this.arr[e].id]?t=this.arr[e].id:this.arr.splice(e,1);return t},c.prototype._findFirstId=function(){for(;this.arr.length;){var t=this.arr.shift();if(this.map[t.id])return t.id}},c.prototype.minId=function(t){return t?this._clearAndGetMinId():this._findFirstId()},c}(),Xh=function(t,e){return Math.abs(t.x-e.x)+Math.abs(t.y-e.y)},Vh=function(t,e){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},Yh=function(t,e){return[t,e]},Hh=function(t,e,r,n,a){return Ed(Sd(t,e,r,n,a.offset))},Zh={offset:20,maxAllowedDirectionChange:Math.PI/2,maximumLoops:2e3,gridSize:10,directions:[{stepX:1,stepY:0},{stepX:-1,stepY:0},{stepX:0,stepY:1},{stepX:0,stepY:-1}],get penalties(){return{0:0,45:this.gridSize/2,90:this.gridSize/2}},distFunc:Xh,fallbackRoute:Hh},ep={maxAllowedDirectionChange:Math.PI/4,directions:[{stepX:1,stepY:0},{stepX:1,stepY:1},{stepX:0,stepY:1},{stepX:-1,stepY:1},{stepX:-1,stepY:0},{stepX:-1,stepY:-1},{stepX:0,stepY:-1},{stepX:1,stepY:-1}],distFunc:Vh,fallbackRoute:Yh},Wu=function(t,e){var r=Math.round(Math.abs(t/e)),n=t<0?-1:1;return r<0?0:n*r},Kh=function(t,e,r){var n={};return t.forEach(function(a){if(!!a)for(var i=Bl(a.getBBox(),r),o=Wu(i.minX,e);o<=Wu(i.maxX,e);o+=1)for(var s=Wu(i.minY,e);s<=Wu(i.maxY,e);s+=1)n["".concat(o,"|||").concat(s)]=!0}),n},id=function(t,e){var r=e.x-t.x,n=e.y-t.y;return r||n?Math.atan2(n,r):0},Md=function(t,e){var r=Math.abs(t-e);return r>Math.PI?2*Math.PI-r:r},Cd=function(t,e,r){for(var n=Infinity,a=0,i=e.length;al.minX&&e.xl.minY&&e.y0&&Oe>0;){var lr=ce.minId((Oe+1)%30==0);if(lr)Pe=F[lr];else break;if(fr["".concat(Pe.x,"|||").concat(Pe.y)])return $h(Pe,ee,h,e,t,p,s);delete F[Pe.id],ce.remove(Pe.id),Z[Pe.id]=!0;for(var we=0;wei.maxAllowedDirectionChange)&&!l[Kt])){F[Kt]||(F[Kt]=at);var jr=o[Ft];qe=i.distFunc(Pe,at)+(isNaN(jr)?s:jr),yt=se[Pe.id]+qe;var Xr=se[Kt];Xr&&yt>=Xr||(ee[Kt]=Pe,se[Kt]=yt,oe[Kt]=yt+Cd(at,I,i.distFunc),ce.add({id:Kt,value:oe[Kt]}))}}Oe-=1}return i.fallbackRoute(t,e,r,n,i)};Sc("polyline",{options:{color:Kr.defaultEdge.color,size:Kr.defaultEdge.size,style:{radius:0,offset:15,x:0,y:0,stroke:Kr.defaultEdge.style.stroke,lineAppendWidth:Kr.defaultEdge.style.lineAppendWidth},labelCfg:{style:{fill:Kr.edgeLabel.style.fill,fontSize:Kr.edgeLabel.style.fontSize,fontFamily:Kr.windowFontFamily}},routeCfg:{obstacles:[],maxAllowedDirectionChange:Math.PI,maximumLoops:500,gridSize:10},stateStyles:(0,b.__assign)({},Kr.edgeStateStyles)},shapeType:"polyline",labelPosition:"center",drawShape:function(t,e){var r=this.getShapeStyle(t);r.radius===0&&delete r.radius;var n=e.addShape("path",{className:"edge-shape",name:"edge-shape",attrs:r});return e.shapeMap["edge-shape"]=n,n},getShapeStyle:function(t){var e=this.options.style,r={stroke:t.color},n=(0,m.mix)({},e,r,t.style);t=this.getPathPoints(t),this.radius=n.radius,this.offset=n.offset;var a=t.startPoint,i=t.endPoint,o=this.getControlPoints(t),s=[a];o&&(s=s.concat(o)),s.push(i);var l=t.sourceNode,h=t.targetNode,p=n.radius,D=this.options.routeCfg,I=(0,m.mix)({},D,t.routeCfg);I.offset=n.offset;var F=this.getPath(s,l,h,p,I,!Boolean(o));((0,m.isArray)(F)&&F.length<=1||(0,m.isString)(F)&&F.indexOf("L")===-1)&&(F="M0 0, L0 0"),(isNaN(a.x)||isNaN(a.y)||isNaN(i.x)||isNaN(i.y))&&(F="M0 0, L0 0");var Z=(0,m.mix)({},Kr.defaultEdge.style,n,{lineWidth:t.size,path:F});return Z},updateShapeStyle:function(t,e){var r=e.getContainer();if(!!e.isVisible()){var n={stroke:t.color},a=r.shapeMap["edge-shape"]||r.find(function(we){return we.get("className")==="edge-shape"})||e.getKeyShape(),i=t.size;t=this.getPathPoints(t);var o=t.startPoint,s=t.endPoint,l=this.getControlPoints(t),h=[o];l&&(h=h.concat(l)),h.push(s);var p=a.attr(),D=(0,m.mix)({},n,p,t.style),I=t.sourceNode,F=t.targetNode,Z=D.radius,ee=this.options.routeCfg,se=(0,m.mix)({},ee,t.routeCfg);se.offset=D.offset;var oe=this.getPath(h,I,F,Z,se,!Boolean(l));((0,m.isArray)(oe)&&oe.length<=1||(0,m.isString)(oe)&&oe.indexOf("L")===-1)&&(oe="M0 0, L0 0"),(isNaN(o.x)||isNaN(o.y)||isNaN(s.x)||isNaN(s.y))&&(oe="M0 0, L0 0"),p.endArrow&&D.endArrow===!1&&(t.style.endArrow={path:""}),p.startArrow&&D.startArrow===!1&&(t.style.startArrow={path:""});var ce=(0,m.mix)(n,a.attr(),{lineWidth:i,path:oe},t.style);a&&a.attr(ce)}},getPath:function(t,e,r,n,a,i){var o=a.offset,s=a.obstacles,l=a.simple;if(!o||t.length>2||i===!1){if(n)return wd(t,n);var h=[];return(0,m.each)(t,function(F,Z){Z===0?h.push(["M",F.x,F.y]):h.push(["L",F.x,F.y])}),h}l!==!1&&!(s==null?void 0:s.length)&&(l=!0);var p=l?Sd(t[t.length-1],t[0],r,e,o):Qh(t[0],t[t.length-1],e,r,a);if(!p||!p.length)return"M0 0, L0 0";if(n){var D=wd(p,n);return D}p=jh(p);var I=ki.pointsToPolygon(p);return I}},"single-edge");var Id=Vo.cloneEvent,Od=Vo.isNaN,Ad=Math.abs,Jh=10,qh=["shift","ctrl","alt","control"],ev={getDefaultCfg:function(){return{direction:"both",enableOptimize:!1,scalableRange:0,allowDragOnItem:!1}},getEvents:function(){return{mousedown:"onMouseDown",drag:"onDragMove",dragend:"onMouseUp","canvas:click":"onMouseUp",keyup:"onKeyUp",focus:"onKeyUp",keydown:"onKeyDown",touchstart:"onTouchStart",touchmove:"onTouchMove",touchend:"onMouseUp"}},updateViewport:function(t){var e=this.origin,r=+t.clientX,n=+t.clientY;if(!(Od(r)||Od(n))){var a=r-e.x,i=n-e.y;this.get("direction")==="x"?i=0:this.get("direction")==="y"&&(a=0),this.origin={x:r,y:n};var o=this.graph.get("width"),s=this.graph.get("height"),l=this.graph.get("canvas").getCanvasBBox(),h=this.scalableRange,p=this.scalableRange;h<1&&h>-1&&(h=o*h,p=s*p),(l.minX<=o+h&&l.minX+a>o+h||l.maxX+h>=0&&l.maxX+h+a<0)&&(a=0),(l.minY<=s+p&&l.minY+i>s+p||l.maxY+p>=0&&l.maxY+p+i<0)&&(i=0),this.graph.translate(a,i)}},onTouchStart:function(t){var e=this,r=t.originalEvent.touches,n=r[0],a=r[1];n&&a||(t.preventDefault(),this.mousedown=!0,e.onDragStart(t))},onMouseDown:function(t){this.mousedown=!0},onDragMove:function(t){!this.mousedown||(this.dragstart?this.onDrag(t):(this.dragstart=!0,this.onDragStart(t)))},onDragStart:function(t){var e=this,r=t.originalEvent;if(!(r&&t.name!=="touchstart"&&r.button!==0)&&!(t.name!=="touchstart"&&typeof window!="undefined"&&window.event&&!window.event.buttons&&!window.event.button)&&!!this.shouldBegin(t,this)&&!e.keydown&&!!this.allowDrag(t)){if(e.origin={x:t.clientX,y:t.clientY},e.dragging=!1,this.enableOptimize){for(var n=this.graph,a=n.getEdges(),i=0,o=a.length;is)for(var I=n.getNodes(),F=0,Z=I.length;F-1?e.keydown=!0:e.keydown=!1)},onKeyUp:function(){this.keydown=!1,this.origin=null,this.dragging=!1,this.dragbegin=!1},allowDrag:function(t){var e,r,n=t.target,a=n&&n.isCanvas&&n.isCanvas();if((0,m.isBoolean)(this.allowDragOnItem)&&!this.allowDragOnItem&&!a)return!1;if((0,m.isObject)(this.allowDragOnItem)){var i=this.allowDragOnItem,o=i.node,s=i.edge,l=i.combo,h=(r=(e=t.item)===null||e===void 0?void 0:e.getType)===null||r===void 0?void 0:r.call(e);if(!o&&h==="node"||!s&&h==="edge"||!l&&h==="combo")return!1}return!0}},tv={getDefaultCfg:function(){return{updateEdge:!0,delegateStyle:{},enableDelegate:!1,onlyChangeComboSize:!1,comboActiveState:"",selectedState:"selected",enableOptimize:!1,enableDebounce:!1,enableStack:!0}},getEvents:function(){return{"node:mousedown":"onMouseDown",drag:"onDragMove",dragend:"onDragEnd","combo:dragenter":"onDragEnter","combo:dragleave":"onDragLeave","combo:drop":"onDropCombo","node:drop":"onDropNode","canvas:drop":"onDropCanvas",touchstart:"onTouchStart",touchmove:"onTouchMove",touchend:"onDragEnd",afterchangedata:"onDragEnd"}},validationCombo:function(t){if(!this.origin||!t||t.destroyed)return!1;var e=t.getType();return e==="combo"},onTouchStart:function(t){if(!!t.item){var e=this;try{var r=t.originalEvent.touches,n=r[0],a=r[1];if(n&&a)return;t.preventDefault()}catch(i){console.warn("Touch original event not exist!")}this.mousedown={item:t.item,target:t.target,origin:{x:t.x,y:t.y}},this.dragstart=!0,e.onDragStart(t)}},onTouchMove:function(t){var e=this;try{var r=t.originalEvent.touches,n=r[0],a=r[1];if(n&&a){e.onDragEnd(t);return}t.preventDefault()}catch(i){console.warn("Touch original event not exist!")}e.onDrag(t)},onMouseDown:function(t){this.mousedown={item:t.item,target:t.target,origin:{x:t.x,y:t.y}},typeof window!="undefined"&&!this.windowEventBinded&&(this.windowEventBinded=!0,document.body.addEventListener("contextmenu",this.onDragEnd.bind(this)),document.body.addEventListener("mouseup",this.onDragEnd.bind(this)))},onDragMove:function(t){var e,r;if(((r=(e=t.item)===null||e===void 0?void 0:e.getType)===null||r===void 0?void 0:r.call(e))!=="node"){this.onDragEnd();return}!this.mousedown||(this.dragstart?this.onDrag((0,b.__assign)((0,b.__assign)({},t),this.mousedown)):(this.dragstart=!0,this.onDragStart(t)))},onDragStart:function(t){var e=this;if(this.currentShouldEnd=!0,!!this.shouldBegin((0,b.__assign)((0,b.__assign)({},t),this.mousedown),this)){var r=this.mousedown,n=r.item,a=r.target;if(!(!n||n.destroyed||n.hasLocked())){var i=n.getContainer();if(i.set("capture",!1),this.cachedCaptureItems||(this.cachedCaptureItems=[]),this.cachedCaptureItems.push(n),a){var o=a.get("isAnchorPoint");if(o)return}var s=this.graph;this.targets=[],this.targetCombo=null;var l=s.findAllByState("node",this.selectedState),h=n.get("id"),p=l.filter(function(I){var F=I.get("id");return h===F});if(p.length===0?this.targets.push(n):l.length>1?l.forEach(function(I){var F=I.hasLocked();F||e.targets.push(I)}):this.targets.push(n),this.graph.get("enabledStack")&&this.enableStack){var D=[];this.targets.forEach(function(I){var F=I.getModel(),Z=F.x,ee=F.y,se=F.id;D.push({x:Z,y:ee,id:se})}),this.set("beforeDragNodes",D)}this.hidenEdge={},this.get("updateEdge")&&this.enableOptimize&&!this.enableDelegate&&this.targets.forEach(function(I){var F=I.getEdges();F.forEach(function(Z){!Z.isVisible()||(e.hidenEdge[Z.getID()]=!0,Z.hide())})}),this.origin=this.mousedown.origin,this.point={},this.originPoint={}}}},onDrag:function(t){var e=this;if(!(!this.mousedown||!this.origin)&&!!this.shouldUpdate(t,this))if(this.get("enableDelegate"))this.updateDelegate(t);else if(this.enableDebounce)this.debounceUpdate({targets:this.targets,graph:this.graph,point:this.point,origin:this.origin,evt:t,updateEdge:this.get("updateEdge"),onlyChangeComboSize:this.onlyChangeComboSize,updateParentCombos:this.updateParentCombos});else{var r={};this.targets.map(function(n){e.update(n,t);var a=n.getModel().comboId;a&&(r[a]=e.graph.findById(a))}),this.onlyChangeComboSize&&this.updateParentCombos()}},onDragEnd:function(t){var e=this,r;if(this.mousedown=!1,this.dragstart=!1,typeof window!="undefined"&&this.windowEventBinded&&(this.windowEventBinded=!1,document.body.removeEventListener("contextmenu",this.onDragEnd.bind(this)),document.body.removeEventListener("mouseup",this.onDragEnd.bind(this))),!!this.origin){(r=this.cachedCaptureItems)===null||r===void 0||r.forEach(function(i){var o=i.getContainer();o.set("capture",!0)}),this.cachedCaptureItems=[],this.delegateRect&&(this.delegateRect.remove(),this.delegateRect=null),this.get("updateEdge")&&this.enableOptimize&&!this.enableDelegate&&this.targets.forEach(function(i){var o=i.getEdges();o.forEach(function(s){e.hidenEdge[s.getID()]&&s.show(),s.refresh()})}),this.hidenEdge={};var n=this.graph;if(n.get("enabledStack")&&this.enableStack){var a={before:{nodes:[],edges:[],combos:[]},after:{nodes:[],edges:[],combos:[]}};this.get("beforeDragNodes").forEach(function(i){a.before.nodes.push(i)}),this.targets.forEach(function(i){var o=i.getModel(),s=o.x,l=o.y,h=o.id;a.after.nodes.push({x:s,y:l,id:h})}),n.pushStack("update",(0,m.clone)(a))}n.emit("dragnodeend",{items:this.targets,targetItem:null}),this.point={},this.origin=null,this.originPoint={},this.targets.length=0,this.targetCombo=null}},onDropCombo:function(t){var e=t.item;if(this.currentShouldEnd=this.shouldEnd(t,e,this),this.updatePositions(t,!this.currentShouldEnd),!(!this.currentShouldEnd||!this.validationCombo(e))){var r=this.graph;if(this.comboActiveState&&r.setItemState(e,this.comboActiveState,!1),this.targetCombo=e,this.onlyChangeComboSize)r.updateCombos();else{var n=e.getModel();this.targets.map(function(a){var i=a.getModel();i.comboId!==n.id&&r.updateComboTree(a,n.id)}),r.updateCombo(e)}r.emit("dragnodeend",{items:this.targets,targetItem:this.targetCombo})}},onDropCanvas:function(t){var e=this.graph;this.currentShouldEnd=this.shouldEnd(t,void 0,this),this.updatePositions(t,!this.currentShouldEnd),!(!this.targets||this.targets.length===0||!this.currentShouldEnd)&&(this.onlyChangeComboSize?this.updateParentCombos():this.targets.map(function(r){var n=r.getModel();n.comboId&&e.updateComboTree(r)}))},onDropNode:function(t){if(!(!this.targets||this.targets.length===0)){var e=this,r=t.item,n=e.graph,a=r.getModel().comboId,i=a?n.findById(a):void 0;if(this.currentShouldEnd=this.shouldEnd(t,i,this),this.updatePositions(t,!this.currentShouldEnd),!!this.currentShouldEnd){if(this.onlyChangeComboSize)this.updateParentCombos();else if(a){var o=n.findById(a);e.comboActiveState&&n.setItemState(o,e.comboActiveState,!1),this.targets.map(function(s){var l=s.getModel();a!==l.comboId&&n.updateComboTree(s,a)}),n.updateCombo(o)}else this.targets.map(function(s){var l=s.getModel();l.comboId&&n.updateComboTree(s)});n.emit("dragnodeend",{items:this.targets,targetItem:r})}}},onDragEnter:function(t){var e=t.item;if(!!this.validationCombo(e)){var r=this.graph;this.comboActiveState&&r.setItemState(e,this.comboActiveState,!0)}},onDragLeave:function(t){var e=t.item;if(!!this.validationCombo(e)){var r=this.graph;this.comboActiveState&&r.setItemState(e,this.comboActiveState,!1)}},updatePositions:function(t,e){var r=this;!this.targets||this.targets.length===0||(this.get("enableDelegate")?this.enableDebounce?this.debounceUpdate({targets:this.targets,graph:this.graph,point:this.point,origin:this.origin,evt:t,updateEdge:this.get("updateEdge"),onlyChangeComboSize:this.onlyChangeComboSize,updateParentCombos:this.updateParentCombos}):e||this.targets.map(function(n){return r.update(n,t)}):this.targets.map(function(n){return r.update(n,t,e)}))},update:function(t,e,r){var n=this.origin,a=t.get("model"),i=t.get("id");this.point[i]||(this.point[i]={x:a.x||0,y:a.y||0});var o=e.x-n.x+this.point[i].x,s=e.y-n.y+this.point[i].y;r&&(o+=n.x-e.x,s+=n.y-e.y);var l={x:o,y:s};this.get("updateEdge")?this.graph.updateItem(t,l,!1):t.updatePosition(l)},debounceUpdate:(0,m.debounce)(function(c){var t=c.targets,e=c.graph,r=c.point,n=c.origin,a=c.evt,i=c.updateEdge,o=c.onlyChangeComboSize,s=c.updateParentCombos;t.map(function(l){var h=l.get("model"),p=l.get("id");r[p]||(r[p]={x:h.x||0,y:h.y||0});var D=a.x-n.x+r[p].x,I=a.y-n.y+r[p].y,F={x:D,y:I};i?e.updateItem(l,F,!1):l.updatePosition(F)}),o&&s(e,t)},50,!0),updateDelegate:function(t){var e=this.graph;if(this.delegateRect){var D=t.x-this.origin.x+this.originPoint.minX,I=t.y-this.origin.y+this.originPoint.minY;this.delegateRect.attr({x:D,y:I})}else{var r=e.get("group"),n=(0,m.deepMix)({},wo.delegateStyle,this.delegateStyle),a=this.calculationGroupPosition(t),i=a.x,o=a.y,s=a.width,l=a.height,h=a.minX,p=a.minY;this.originPoint={x:i,y:o,width:s,height:l,minX:h,minY:p},this.delegateRect=r.addShape("rect",{attrs:(0,b.__assign)({width:s,height:l,x:i,y:o},n),name:"rect-delegate-shape"}),this.delegate=this.delegateRect,this.delegateRect.set("capture",!1)}},calculationGroupPosition:function(t){var e=this.targets;e.length===0&&e.push(t.item);for(var r=Infinity,n=-Infinity,a=Infinity,i=-Infinity,o=0;on&&(n=D),I>i&&(i=I)}var F=Math.floor(r),Z=Math.floor(a),ee=Math.ceil(n)-Math.floor(r),se=Math.ceil(i)-Math.floor(a);return{x:F,y:Z,width:ee,height:se,minX:r,minY:a}},updateParentCombos:function(t,e){var r=t||this.graph,n=e||this.targets,a={};n==null||n.forEach(function(i){var o=i.getModel().comboId;o&&(a[o]=r.findById(o))}),Object.values(a).forEach(function(i){i&&r.updateCombo(i)})}},rv={getDefaultCfg:function(){return{trigger:"mouseenter",activeState:"active",inactiveState:"inactive",resetSelected:!1,shouldUpdate:function(){return!0}}},getEvents:function(){return this.get("trigger")==="mouseenter"?{"node:mouseenter":"setAllItemStates","combo:mouseenter":"setAllItemStates","node:mouseleave":"clearActiveState","combo:mouseleave":"clearActiveState"}:{"node:click":"setAllItemStates","combo:click":"setAllItemStates","canvas:click":"clearActiveState","node:touchstart":"setOnTouchStart","combo:touchstart":"setOnTouchStart","canvas:touchstart":"clearOnTouchStart"}},setOnTouchStart:function(t){var e=this;try{var r=t.originalEvent.touches,n=r[0],a=r[1];if(n&&a)return;t.preventDefault()}catch(i){console.warn("Touch original event not exist!")}e.setAllItemStates(t)},clearOnTouchStart:function(t){var e=this;try{var r=t.originalEvent.touches,n=r[0],a=r[1];if(n&&a)return;t.preventDefault()}catch(i){console.warn("Touch original event not exist!")}e.clearActiveState(t)},setAllItemStates:function(t){clearTimeout(this.timer),this.throttleSetAllItemStates(t,this)},clearActiveState:function(t){var e=this;this.timer=setTimeout(function(){e.throttleClearActiveState(t,e)},50)},throttleSetAllItemStates:(0,m.throttle)(function(c,t){var e=c.item,r=t.graph;if(!(!r||r.destroyed)&&(t.item=e,!!t.shouldUpdate(c.item,{event:c,action:"activate"},t))){for(var n=t.activeState,a=t.inactiveState,i=r.getNodes(),o=r.getCombos(),s=r.getEdges(),l=r.get("vedges"),h=i.length,p=o.length,D=s.length,I=l.length,F=t.inactiveItems||{},Z=t.activeItems||{},ee=0;ee-1||(this.trigger=Nd,console.warn("Behavior brush-select \u7684 trigger \u53C2\u6570\u4E0D\u5408\u6CD5\uFF0C\u8BF7\u8F93\u5165 'drag'\u3001'shift'\u3001'ctrl' \u6216 'alt'")),this.trigger==="drag"?{dragstart:"onMouseDown",drag:"onMouseMove",dragend:"onMouseUp","canvas:click":"clearStates"}:{dragstart:"onMouseDown",drag:"onMouseMove",dragend:"onMouseUp","canvas:click":"clearStates",keyup:"onKeyUp",keydown:"onKeyDown"}},onMouseDown:function(t){var e=t.item,r=this.brush;e||this.trigger!=="drag"&&!this.keydown||(this.selectedNodes&&this.selectedNodes.length!==0&&this.clearStates(),r||(r=this.createBrush()),this.originPoint={x:t.canvasX,y:t.canvasY},r.attr({width:0,height:0}),r.show(),this.dragging=!0)},onMouseMove:function(t){!this.dragging||this.trigger!=="drag"&&!this.keydown||this.updateBrush(t)},onMouseUp:function(t){var e=this.graph;!this.brush&&!this.dragging||this.trigger!=="drag"&&!this.keydown||(this.brush.remove(!0),this.brush=null,this.getSelectedNodes(t),this.dragging=!1)},clearStates:function(){var t=this,e=t.graph,r=t.selectedState,n=e.findAllByState("node",r),a=e.findAllByState("edge",r),i=e.findAllByState("combo",r);n.forEach(function(o){return e.setItemState(o,r,!1)}),a.forEach(function(o){return e.setItemState(o,r,!1)}),i.forEach(function(o){return e.setItemState(o,r,!1)}),this.selectedNodes=[],this.selectedEdges=[],this.selectedCombos=[],this.onDeselect&&this.onDeselect(this.selectedNodes,this.selectedEdges,this.selectedCombos),e.emit("nodeselectchange",{selectedItems:{nodes:[],edges:[],combos:[]},select:!1})},isBBoxCenterInRect:function(t,e,r,n,a){var i=t.getBBox();return i.centerX>=e&&i.centerX<=r&&i.centerY>=n&&i.centerY<=a},getSelectedNodes:function(t){var e=this,r=this,n=r.graph,a=r.originPoint,i=r.shouldUpdate,o=r.isBBoxCenterInRect,s=this.selectedState,l={x:t.x,y:t.y},h=n.getPointByCanvas(a.x,a.y),p=zl(l.x,h.x),D=Ld(l.x,h.x),I=zl(l.y,h.y),F=Ld(l.y,h.y),Z=[],ee=[];n.getNodes().forEach(function(ce){if(ce.isVisible()&&o(ce,p,D,I,F)&&i(ce,"select",e)){Z.push(ce);var we=ce.getModel();ee.push(we.id),n.setItemState(ce,s,!0)}});var se=[];this.includeEdges&&Z.forEach(function(ce){var we=ce.getOutEdges();we.forEach(function(Re){if(!!Re.isVisible()){var Oe=Re.getModel(),Pe=Oe.source,He=Oe.target;ee.includes(Pe)&&ee.includes(He)&&i(Re,"select",e)&&(se.push(Re),n.setItemState(Re,e.selectedState,!0))}})});var oe=[];this.includeCombos&&n.getCombos().forEach(function(ce){if(ce.isVisible()&&o(ce,p,D,I,F)&&i(ce,"select",e)){oe.push(ce);var we=ce.getModel();ee.push(we.id),n.setItemState(ce,s,!0)}}),this.selectedEdges=se,this.selectedNodes=Z,this.selectedCombos=oe,this.onSelect&&this.onSelect(Z,se,oe),n.emit("nodeselectchange",{selectedItems:{nodes:Z,edges:se,combos:oe},select:!0})},createBrush:function(){var t=this,e=t.graph.get("canvas").addShape("rect",{attrs:t.brushStyle,capture:!1,name:"brush-shape"});return this.brush=e,this.delegate=e,e},updateBrush:function(t){var e=this.originPoint;this.brush.attr({width:Dd(t.canvasX-e.x),height:Dd(t.canvasY-e.y),x:zl(t.canvasX,e.x),y:zl(t.canvasY,e.y)})},onKeyDown:function(t){var e=t.key;if(!!e){var r=this.trigger.toLowerCase(),n=e.toLowerCase();n===r||n==="control"&&r==="ctrl"||n==="ctrl"&&r==="control"?this.keydown=!0:this.keydown=!1}},onKeyUp:function(){this.brush&&(this.brush.remove(!0),this.brush=null,this.dragging=!1),this.keydown=!1}},Pd="shift",iv=["shift","ctrl","alt","control"],ov={getDefaultCfg:function(){return{multiple:!0,trigger:Pd,selectedState:"selected",selectNode:!0,selectEdge:!1,selectCombo:!0}},getEvents:function(){var t=this;return iv.indexOf(t.trigger.toLowerCase())>-1||(t.trigger=Pd,console.warn("Behavior click-select \u7684 trigger \u53C2\u6570\u4E0D\u5408\u6CD5\uFF0C\u8BF7\u8F93\u5165 'drag'\u3001'shift'\u3001'ctrl' \u6216 'alt'")),t.multiple?{"node:click":"onClick","combo:click":"onClick","edge:click":"onClick","canvas:click":"onCanvasClick",keyup:"onKeyUp",keydown:"onKeyDown"}:{"node:click":"onClick","combo:click":"onClick","edge:click":"onClick","canvas:click":"onCanvasClick"}},onClick:function(t){var e=this,r=t.item;if(!(!r||r.destroyed)){var n=r.getType(),a=e.graph,i=e.keydown,o=e.multiple,s=e.shouldUpdate,l=e.shouldBegin;if(!!l(t,e)){if(!i||!o){var h=a.findAllByState("node",e.selectedState).concat(a.findAllByState("edge",e.selectedState)).concat(a.findAllByState("combo",e.selectedState));(0,m.each)(h,function(Z){Z!==r&&a.setItemState(Z,e.selectedState,!1)})}var p=function(){switch(n){case"node":return e.selectNode;case"edge":return e.selectEdge;case"combo":return e.selectCombo;default:return!1}}();if(!p){var D=a.findAllByState("node",e.selectedState),I=a.findAllByState("edge",e.selectedState),F=a.findAllByState("combo",e.selectedState);a.emit("nodeselectchange",{selectedItems:{nodes:D,edges:I,combos:F},select:!1});return}if(r.hasState(e.selectedState)){s(t,e)&&a.setItemState(r,e.selectedState,!1);var D=a.findAllByState("node",e.selectedState),I=a.findAllByState("edge",e.selectedState),F=a.findAllByState("combo",e.selectedState);a.emit("nodeselectchange",{target:r,selectedItems:{nodes:D,edges:I,combos:F},select:!1})}else{s(t,e)&&a.setItemState(r,e.selectedState,!0);var D=a.findAllByState("node",e.selectedState),I=a.findAllByState("edge",e.selectedState),F=a.findAllByState("combo",e.selectedState);a.emit("nodeselectchange",{target:r,selectedItems:{nodes:D,edges:I,combos:F},select:!0})}}}},onCanvasClick:function(t){var e=this,r=this,n=r.graph,a=r.shouldBegin;if(!!a(t,this)){var i=n.findAllByState("node",this.selectedState);(0,m.each)(i,function(l){n.setItemState(l,e.selectedState,!1)});var o=n.findAllByState("edge",this.selectedState);(0,m.each)(o,function(l){n.setItemState(l,e.selectedState,!1)});var s=n.findAllByState("combo",this.selectedState);(0,m.each)(s,function(l){n.setItemState(l,e.selectedState,!1)}),n.emit("nodeselectchange",{selectedItems:{nodes:[],edges:[],combos:[]},select:!1})}},onKeyDown:function(t){var e=this,r=t.key;!r||(r.toLowerCase()===this.trigger.toLowerCase()||r.toLowerCase()==="control"?e.keydown=!0:e.keydown=!1)},onKeyUp:function(){var t=this;t.keydown=!1}},sv=q.vs,kd=.05,uv={getDefaultCfg:function(){return{sensitivity:2,minZoom:void 0,maxZoom:void 0,enableOptimize:!1,optimizeZoom:.1,fixSelectedItems:{fixAll:!1,fixLineWidth:!1,fixLabel:!1,fixState:"selected"},animate:!1,animateCfg:{duration:500}}},getEvents:function(){var t=this.fixSelectedItems;return t.fixState||(t.fixState="selected"),t.fixAll&&(t.fixLineWidth=!0,t.fixLabel=!0),{wheel:"onWheel",touchstart:"onTouchStart",touchmove:"onTouchMove",touchend:"onTouchEnd"}},onTouchStart:function(t){var e=t.originalEvent.touches,r=e[0],n=e[1];t.preventDefault(),!!n&&(this.shouldBegin&&!this.shouldBegin(t,this)||(this.startPoint={pageX:r.pageX,pageY:r.pageY},this.moveable=!0,n&&(this.endPoint={pageX:n.pageX,pageY:n.pageY}),this.originScale=this.graph.getZoom()||this.currentScale||1))},onTouchMove:function(t){if(!!this.moveable){t.preventDefault();var e=t.originalEvent.touches,r=e[0],n=e[1];if(!!n){this.endPoint||(this.endPoint={pageX:n.pageX,pageY:n.pageY});var a=function(Z,ee){return Math.hypot(ee.x-Z.x,ee.y-Z.y)},i=a({x:r.pageX,y:r.pageY},{x:n.pageX,y:n.pageY})/a({x:this.startPoint.pageX,y:this.startPoint.pageY},{x:this.endPoint.pageX,y:this.endPoint.pageY}),o=this.originScale*i;this.currentScale=o;var s=this.get("minZoom")||this.graph.get("minZoom"),l=this.get("maxZoom")||this.graph.get("maxZoom");if(!(o>l||oI?p=I:pn/2?h-=D.width:h+=this.offset,p>a/2?p-=D.height:p+=this.offset;var I="".concat(h,"px"),F="".concat(p,"px");(0,Kn.Z)(this.container,{left:I,top:F,visibility:"visible"})},createTooltip:function(t){var e=t.get("el");e.style.position="relative";var r=(0,Aa.Z)('
      '));return e.parentNode.appendChild(r),(0,Kn.Z)(r,{position:"absolute",visibility:"visible"}),this.width=t.get("width"),this.height=t.get("height"),this.container=r,this.graph.get("tooltips").push(r),r}},fv=(0,b.__assign)({getDefaultCfg:function(){return{item:"node",offset:12,formatText:function(e){return e.label}}},getEvents:function(){return{"node:mouseenter":"onMouseEnter","node:mouseleave":"onMouseLeave","node:mousemove":"onMouseMove",afterremoveitem:"onMouseLeave"}}},Rd),cv=(0,b.__assign)({getDefaultCfg:function(){return{item:"edge",offset:12,formatText:function(e){return"source: ".concat(e.source," target: ").concat(e.target)}}},getEvents:function(){return{"edge:mouseenter":"onMouseEnter","edge:mouseleave":"onMouseLeave","edge:mousemove":"onMouseMove",afterremoveitem:"onMouseLeave"}}},Rd),Bd="click",lv=["click","dblclick"],dv={getDefaultCfg:function(){return{trigger:Bd,onChange:function(){}}},getEvents:function(){var t,e;return lv.includes(this.trigger)?e=this.trigger:(e=Bd,console.warn("Behavior collapse-expand \u7684 trigger \u53C2\u6570\u4E0D\u5408\u6CD5\uFF0C\u8BF7\u8F93\u5165 'click' \u6216 'dblclick'")),t={},t["node:".concat(e)]="onNodeClick",t.touchstart="onNodeClick",t},onNodeClick:function(t){var e=this;if(this.trigger==="click"){if(this.timer){clearTimeout(this.timer),this.timer=0;return}this.timer=setTimeout(function(){e.toggle(t),clearTimeout(e.timer),e.timer=0},200)}else this.toggle(t)},toggle:function(t){var e=t.item;if(!!e){var r=this.graph.findDataById(e.get("id"));if(!!r){var n=r.children;if(!(!n||n.length===0)){var a=!r.collapsed;!this.shouldBegin(t,a,this)||(r.collapsed=a,e.getModel().collapsed=a,this.graph.emit("itemcollapsed",{item:t.item,collapsed:a}),!!this.shouldUpdate(t,a,this)&&(this.onChange(e,a,this),this.graph.layout()))}}}}},hv=Vo.calculationItemsBBox,vv=function c(t,e){if(e(t)!==!1&&t){var r=t.get("combos");if(r.length===0)return!1;(0,m.each)(r,function(n){c(n,e)})}},gv={getDefaultCfg:function(){return{enableDelegate:!1,delegateStyle:{},onlyChangeComboSize:!1,activeState:"",selectedState:"selected",enableStack:!0}},getEvents:function(){return{"combo:mousedown":"onMouseDown","combo:dragstart":"onDragStart","combo:drag":"onDrag","combo:dragend":"onDragEnd","combo:drop":"onDrop","node:drop":"onNodeDrop","combo:dragenter":"onDragEnter","combo:dragleave":"onDragLeave"}},validationCombo:function(t){var e=t.item;if(!e||e.destroyed||!this.shouldUpdate(t,this))return!1;var r=e.getType();return r==="combo"},onMouseDown:function(t){this.origin={x:t.x,y:t.y}},onDragStart:function(t){var e=this,r=this.graph,n=t.item;if(this.currentShouldEnd=!0,!!this.validationCombo(t)){this.targets=[];var a=r.findAllByState("combo",this.selectedState),i=n.get("id"),o=a.filter(function(l){var h=l.get("id");return i===h});o.length===0?this.targets.push(n):this.targets=a;var s=[];this.targets.forEach(function(l){var h=l.getModel(),p=h.x,D=h.y,I=h.id;s.push({x:p,y:D,id:I})}),this.set("beforeDragItems",s),this.activeState&&this.targets.map(function(l){var h=l.getModel();if(h.parentId){var p=r.findById(h.parentId);p&&r.setItemState(p,e.activeState,!0)}}),this.point={},this.originPoint={},this.currentItemChildCombos=[],vv(n,function(l){if(l.destroyed)return!1;var h=l.getModel();return e.currentItemChildCombos.push(h.id),!0})}},onDrag:function(t){var e=this;if(!!this.origin&&!!this.validationCombo(t))if(this.enableDelegate)this.updateDelegate(t);else{if(this.activeState){var r=this.graph,n=t.item,a=n.getModel(),i=r.getCombos(),o=n.getBBox(),s=o.centerX,l=o.centerY,h=o.width,p=i.filter(function(D){var I=D.getModel();return a.parentId,I.id!==a.id&&!e.currentItemChildCombos.includes(I.id)});p.map(function(D){var I=D.getBBox(),F=I.centerX,Z=I.centerY,ee=I.width,se=s-F,oe=l-Z,ce=2*Math.sqrt(se*se+oe*oe);h+ee-ce>.8*h?r.setItemState(D,e.activeState,!0):r.setItemState(D,e.activeState,!1)})}(0,m.each)(this.targets,function(D){e.updateCombo(D,t)}),this.onlyChangeComboSize&&this.updateParentCombos()}},updatePositions:function(t,e){var r=this;(this.enableDelegate||e)&&(0,m.each)(this.targets,function(n){r.updateCombo(n,t,e)})},onDrop:function(t){var e=this,r=t.item;if(this.currentShouldEnd=this.shouldEnd(t,r,this),this.updatePositions(t,!this.currentShouldEnd),!(!this.currentShouldEnd||!r||!this.targets||r.destroyed)){var n=this.graph,a=r.getModel();this.targets.map(function(i){var o=i.getModel();o.parentId!==a.id?(e.activeState&&n.setItemState(r,e.activeState,!1),e.onlyChangeComboSize?n.updateCombo(i):n.updateComboTree(i,a.id,!1)):n.updateCombo(r)}),this.end(r,t),this.endComparison=!0}},onNodeDrop:function(t){var e=this;if(!(!this.targets||this.targets.length===0)){var r=this.graph,n=t.item,a=n.getModel().comboId,i=a?r.findById(a):void 0;if(this.currentShouldEnd=this.shouldEnd(t,i,this),this.updatePositions(t,!this.currentShouldEnd),!!this.currentShouldEnd){var o;if(a){if(this.activeState){var s=r.findById(a);r.setItemState(s,this.activeState,!1)}this.targets.map(function(l){e.onlyChangeComboSize?r.updateCombo(l):a!==l.getID()&&(o=r.findById(a),a!==l.getModel().parentId&&r.updateComboTree(l,a,!1))})}else this.targets.map(function(l){if(e.onlyChangeComboSize)r.updateCombo(l);else{var h=l.getModel();h.comboId&&r.updateComboTree(l,void 0,!1)}});this.endComparison=!0,this.end(o,t)}}},onDragEnter:function(t){if(!!this.origin&&!!this.validationCombo(t)){var e=t.item,r=this.graph;this.activeState&&r.setItemState(e,this.activeState,!0)}},onDragLeave:function(t){if(!!this.origin&&!!this.validationCombo(t)){var e=t.item,r=this.graph;this.activeState&&r.setItemState(e,this.activeState,!1)}},onDragEnd:function(t){if(!(!this.targets||this.targets.length===0)){var e=t.item;this.currentShouldEnd&&this.updatePositions(t);var r=this.getParentCombo(e.getModel().parentId),n=this.graph;r&&this.activeState&&n.setItemState(r,this.activeState,!1),this.end(void 0,t)}},end:function(t,e){var r=this;if(!!this.origin){var n=this.graph;if(this.delegateShape){var a=n.get("delegateGroup");a.clear(),this.delegateShape=null}if(t&&this.activeState&&n.setItemState(t,this.activeState,!1),!t){var i=n.get("enabledStack")&&this.enableStack,o={before:{nodes:[],edges:[],combos:[].concat(this.get("beforeDragItems"))},after:{nodes:[],edges:[],combos:[]}};this.targets.map(function(s){if(!r.onlyChangeComboSize)n.updateComboTree(s,void 0,i);else{n.updateCombo(s);var l=s.getModel(),h=l.x,p=l.y,D=l.id;o.after.combos.push({x:h,y:p,id:D}),n.pushStack("update",o)}})}this.point=[],this.origin=null,this.originPoint=null,this.targets.length=0}},traverse:function(t,e,r){var n=this;if(r===void 0&&(r={}),e(t,r)!==!1&&t){var a=t.get("combos");(0,m.each)(a,function(o){n.traverse(o,e,r)});var i=t.get("nodes");(0,m.each)(i,function(o){n.traverse(o,e,r)})}},updateCombo:function(t,e,r){this.updateSingleItem(t,e,r);var n={};this.traverse(t,function(a,i){return a.destroyed?!1:(a.getEdges().forEach(function(o){return i[o.getID()]=o}),!0)},n),Object.values(n).forEach(function(a){return a.refresh()})},updateSingleItem:function(t,e,r){var n=this.origin,a=this.graph,i=t.getModel(),o=t.get("id");this.point[o]||(this.point[o]={x:i.x,y:i.y});var s=e.x-n.x+this.point[o].x,l=e.y-n.y+this.point[o].y;r&&(s+=n.x-e.x,l+=n.y-e.y),a.updateItem(t,{x:s,y:l},!1)},getParentCombo:function(t){var e=this.graph;if(!!t){var r=e.findById(t);if(!!r)return r}},updateDelegate:function(t){var e=this.graph;if(this.delegateShape){var D=t.x-this.origin.x+this.originPoint.minX,I=t.y-this.origin.y+this.originPoint.minY;this.delegateShape.attr({x:D,y:I})}else{var r=e.get("delegateGroup"),n=null;this.targets.length>1?n=hv(this.targets):n=this.targets[0].getBBox();var a=n.x,i=n.y,o=n.width,s=n.height,l=n.minX,h=n.minY;this.originPoint={x:a,y:i,width:o,height:s,minX:l,minY:h};var p=(0,b.__assign)((0,b.__assign)({},wo.delegateStyle),this.delegateStyle);this.delegateShape=r.addShape("rect",{attrs:(0,b.__assign)({width:n.width,height:n.height,x:n.x,y:n.y},p),name:"combo-delegate-shape"}),this.delegateShape.set("capture",!1),this.delegate=this.delegateShape}},updateParentCombos:function(){var t=this,e=t.graph,r=t.targets,n={};r==null||r.forEach(function(a){var i=a.getModel().parentId;i&&(n[i]=e.findById(i))}),Object.values(n).forEach(function(a){a&&e.updateCombo(a)})}},Fd="dblclick",pv=["click","dblclick"],yv={getDefaultCfg:function(){return{trigger:Fd,relayout:!0}},getEvents:function(){var t,e;return pv.includes(this.trigger)?e=this.trigger:(e=Fd,console.warn("Behavior collapse-expand-group \u7684 trigger \u53C2\u6570\u4E0D\u5408\u6CD5\uFF0C\u8BF7\u8F93\u5165 'click' \u6216 'dblclick'")),t={},t["combo:".concat(e)]="onComboClick",t},onComboClick:function(t){var e=t.item,r=this,n=r.graph,a=r.relayout;if(!(!e||e.destroyed||e.getType()!=="combo")){var i=e.getModel(),o=i.id;!o||(n.collapseExpandCombo(o),a&&n.get("layout")?n.layout():n.refreshPositions())}}},mv=Vo.isPolygonsIntersect,Ev=Vo.pathToPoints,Gd="shift",bv=["drag","shift","ctrl","alt","control"],xv=function(t,e){var r,n=t.getKeyShape();if(t.get("type")==="path")r=Ev(n.attr("path"));else{var a=n.getCanvasBBox();r=[[a.minX,a.minY],[a.maxX,a.minY],[a.maxX,a.maxY],[a.minX,a.maxY]]}return mv(e,r)},wv={getDefaultCfg:function(){return{delegateStyle:{fill:"#EEF6FF",fillOpacity:.4,stroke:"#DDEEFE",lineWidth:1},onSelect:function(){},onDeselect:function(){},shouldDeselect:void 0,selectedState:"selected",trigger:Gd,includeEdges:!0,selectedEdges:[],selectedNodes:[]}},getEvents:function(){return bv.indexOf(this.trigger.toLowerCase())>-1||(this.trigger=Gd,console.warn("Behavior lasso-select \u7684 trigger \u53C2\u6570\u4E0D\u5408\u6CD5\uFF0C\u8BF7\u8F93\u5165 'drag'\u3001'shift'\u3001'ctrl' \u6216 'alt'")),this.trigger==="drag"?{dragstart:"onDragStart",drag:"onDragMove",dragend:"onDragEnd","canvas:click":"clearStates"}:{dragstart:"onDragStart",drag:"onDragMove",dragend:"onDragEnd",keyup:"onKeyUp",keydown:"onKeyDown","canvas:click":"clearStates"}},onDragStart:function(t){var e=this.lasso,r=t.item;r||this.trigger!=="drag"&&!this.keydown||(this.selectedNodes&&this.selectedNodes.length!==0&&this.clearStates("dragstart"),e||(e=this.createLasso()),this.dragging=!0,this.originPoint={x:t.x,y:t.y},this.points.push(this.originPoint),e.show())},onDragMove:function(t){!this.dragging||this.trigger!=="drag"&&!this.keydown||(this.points.push({x:t.x,y:t.y}),this.updateLasso(t))},onDragEnd:function(t){!this.lasso&&!this.dragging||this.trigger!=="drag"&&!this.keydown||(this.points.push(this.originPoint),this.getSelectedItems(),this.lasso.remove(!0),this.lasso=null,this.points=[],this.dragging=!1)},getLassoPath:function(){var t=this.points,e=[];return t.length&&(t.forEach(function(r,n){n===0?e.push(["M",r.x,r.y]):e.push(["L",r.x,r.y])}),e.push(["L",t[0].x,t[0].y])),e},clearStates:function(t){t===void 0&&(t="canvas:click");var e=this,r=e.graph,n=e.selectedState,a=e.shouldDeselect,i=r.findAllByState("node",n),o=r.findAllByState("edge",n);(!a||a({action:t,nodes:i,edges:o}))&&(i.forEach(function(s){return r.setItemState(s,n,!1)}),o.forEach(function(s){return r.setItemState(s,n,!1)})),this.onDeselect&&this.onDeselect(this.selectedNodes,this.selectedEdges),this.selectedNodes=[],this.selectedEdges=[],r.emit("nodeselectchange",{selectedItems:{nodes:[],edges:[]},select:!1})},getSelectedItems:function(){var t=this,e=this,r=e.graph,n=e.shouldUpdate,a=this.points.map(function(h){return[r.getCanvasByPoint(h.x,h.y).x,r.getCanvasByPoint(h.x,h.y).y]}),i=this.selectedState,o=[],s=[];r.getNodes().forEach(function(h){if(!!h.isVisible()&&xv(h,a)&&n(h,"select",t)){o.push(h);var p=h.getModel();s.push(p.id),r.setItemState(h,i,!0)}});var l=[];this.includeEdges&&o.forEach(function(h){var p=h.getOutEdges();p.forEach(function(D){if(!!D.isVisible()){var I=D.getModel(),F=I.source,Z=I.target;s.includes(F)&&s.includes(Z)&&n(D,"select",t)&&(l.push(D),r.setItemState(D,t.selectedState,!0))}})}),this.selectedEdges=l,this.selectedNodes=o,this.onSelect&&this.onSelect(o,l),r.emit("nodeselectchange",{selectedItems:{nodes:o,edges:l},select:!0})},createLasso:function(){var t=this,e=t.graph.get("delegateGroup").addShape("path",{attrs:(0,b.__assign)({path:[]},t.delegateStyle),capture:!1,name:"lasso-shape"});return this.lasso=e,this.delegate=e,this.points=[],e},updateLasso:function(t){var e=this;this.lasso.attr({path:e.getLassoPath()})},onKeyDown:function(t){var e=t.key;!e||(e.toLowerCase()===this.trigger.toLowerCase()?this.keydown=!0:this.keydown=!1)},onKeyUp:function(){this.lasso&&(this.lasso.remove(!0),this.lasso=null,this.points=[],this.dragging=!1),this.keydown=!1}},zd="click",Sv=["click","drag"],Ud=void 0,_v=["shift","ctrl","control","alt","meta",void 0],Mv={getDefaultCfg:function(){return{trigger:zd,key:Ud,edgeConfig:{},getEdgeConfig:void 0}},getEvents:function(){var t=this;Sv.indexOf(t.trigger.toLowerCase())>-1||(t.trigger=zd,console.warn("Behavior create-edge \u7684 trigger \u53C2\u6570\u4E0D\u5408\u6CD5\uFF0C\u8BF7\u8F93\u5165 'click'\uFF0C'drag'")),t.key&&_v.indexOf(t.key.toLowerCase())===-1&&(t.trigger=Ud,console.warn("Behavior create-edge \u7684 key \u53C2\u6570\u4E0D\u5408\u6CD5\uFF0C\u8BF7\u8F93\u5165 'shift'\uFF0C'ctrl'\uFF0C'alt'\uFF0C'control'\uFF0C\u6216 undefined"));var e;return t.trigger==="drag"?e={"node:dragstart":"onClick","combo:dragstart":"onClick",drag:"updateEndPoint","node:drop":"onClick","combo:drop":"onClick",dragend:"onDragEnd"}:t.trigger==="click"&&(e={"node:click":"onClick",mousemove:"updateEndPoint","edge:click":"cancelCreating","canvas:click":"cancelCreating","combo:click":"onClick"}),t.key&&(e.keydown="onKeyDown",e.keyup="onKeyUp"),e},onDragEnd:function(t){var e=this;if(!(e.key&&!e.keydown)){var r=t.item;(!r||r.getID()===e.source||r.getType()!=="node")&&e.cancelCreating({item:e.edge,x:t.x,y:t.y})}},onClick:function(t){var e=this;if(!(e.key&&!e.keydown)){var r=t.item,n=e.graph,a=r.getModel(),i=e.getEdgeConfig;if(e.addingEdge&&e.edge){if(!e.shouldEnd(t,e))return;var o=void 0;i&&(0,m.isFunction)(i)?o=i({source:e.source,target:a.id},e):o=e.edgeConfig;var s=(0,b.__assign)({target:a.id},o);if(e.source===a.id&&(s.type="loop"),n.emit("beforecreateedge",{}),n.updateItem(e.edge,s,!1),n.get("enabledStack")){var l=(0,b.__assign)((0,b.__assign)({},e.edge.getModel()),{itemType:"edge"}),h={};h.edges=[l],n.pushStack("add",{before:{},after:h})}n.emit("aftercreateedge",{edge:e.edge}),e.edge.getKeyShape().set("capture",!0),e.edge=null,e.addingEdge=!1}else{if(!e.shouldBegin(t,e))return;var o=void 0;i&&(0,m.isFunction)(i)?o=i({source:a.id,target:a.id},e):o=e.edgeConfig,e.edge=n.addItem("edge",(0,b.__assign)({source:a.id,target:a.id},o),!1),e.source=a.id,e.addingEdge=!0,e.edge.getKeyShape().set("capture",!1)}}},updateEndPoint:function(t){var e=this;if(!(e.key&&!e.keydown)){e.edge&&e.edge.destroyed&&e.cancelCreating({item:e.edge});var r={x:t.x,y:t.y};if(!e.graph.findById(e.source)){e.addingEdge=!1;return}e.addingEdge&&e.edge&&e.graph.updateItem(e.edge,{target:r},!1)}},cancelCreating:function(t){var e,r,n=this;if(!(n.key&&!n.keydown)){var a=n.graph,i=t.item;if(n.addingEdge&&(n.edge===i||((r=(e=t.target)===null||e===void 0?void 0:e.isCanvas)===null||r===void 0?void 0:r.call(e)))){n.edge&&!n.edge.destroyed&&a.removeItem(n.edge,!1),n.edge=null,n.addingEdge=!1;return}}},onKeyDown:function(t){var e=this,r=t.key;!r||(r.toLowerCase()===e.key.toLowerCase()?e.keydown=!0:e.keydown=!1)},onKeyUp:function(){var t=this;t.addingEdge&&t.edge&&(t.graph.removeItem(t.edge,!1),t.addingEdge=!1,t.edge=null),this.keydown=!1}},Wd="ctrl",Cv=["shift","ctrl","alt","control"],Tv="1",Iv={getDefaultCfg:function(){return{trigger:Wd,combinedKey:Tv,functionName:"fitView",functionParams:[]}},getEvents:function(){return Cv.indexOf(this.trigger.toLowerCase())>-1||(this.trigger=Wd,console.warn("Behavior shortcuts-fit-view \u7684 trigger \u53C2\u6570 '".concat(this.trigger,"' \u4E0D\u5408\u6CD5\uFF0C\u8BF7\u8F93\u5165 'drag'\u3001'shift'\u3001'ctrl' \u6216 'alt'"))),this.combinedKey===this.trigger&&(this.combinedKey=void 0),{keyup:"onKeyUp",keydown:"onKeyDown"}},onKeyDown:function(t){var e=t.key;if(!!e){var r=this.trigger.toLowerCase(),n=e.toLowerCase();this.triggerKeydown||(n===r||n==="control"&&r==="ctrl"||n==="ctrl"&&r==="control"?this.triggerKeydown=!0:this.triggerKeydown=!1);var a=this.graph;if(!a[this.functionName])return console.warn("Behavior shortcuts-fit-view \u7684 functionName \u53C2\u6570 '".concat(this.functionName,"' \u4E0D\u5408\u6CD5\uFF0C\u5B83\u4E0D\u662F Graph \u7684\u4E00\u4E2A\u51FD\u6570\u540D")),{};if(this.triggerKeydown&&!this.combinedKey){this.functionParams&&this.functionParams.length?a[this.functionName].apply(a,this.functionParams):a[this.functionName]();return}var i=this.combinedKey.toLowerCase();this.triggerKeydown&&(n===i||n==="control"&&i==="ctrl"||n==="ctrl"&&i==="control")&&(this.functionParams&&this.functionParams.length?a[this.functionName].apply(a,this.functionParams):a[this.functionName]())}},onKeyUp:function(){this.brush&&(this.brush.remove(!0),this.brush=null,this.dragging=!1),this.triggerKeydown=!1}},Ov=["shift","ctrl","alt","control","meta"],Av={getDefaultCfg:function(){return{direction:"both",enableOptimize:!1,zoomKey:"ctrl",scalableRange:0,allowDragOnItem:!0}},getEvents:function(){return(!this.zoomKey||Ov.indexOf(this.zoomKey)===-1)&&(this.zoomKey="ctrl"),{wheel:"onWheel"}},onWheel:function(t){var e=this;if(!!this.allowDrag(t)){var r=this.graph,n=Array.isArray(this.zoomKey)?[].concat(this.zoomKey):[this.zoomKey];n.includes("control")&&n.push("ctrl");var a=n.some(function(mr){return t["".concat(mr,"Key")]});if(a){var i=r.get("canvas"),o=i.getPointByClient(t.clientX,t.clientY),s=r.getZoom();t.wheelDelta>0?s=s+s*.05:s=s-s*.05,r.zoomTo(s,{x:o.x,y:o.y})}else{var l=t.deltaX||t.movementX,h=t.deltaY||t.movementY;!h&&navigator.userAgent.indexOf("Firefox")>-1&&(h=-t.wheelDelta*125/3);var p=this.graph.get("width"),D=this.graph.get("height"),I=this.graph.get("canvas").getCanvasBBox(),F=this.scalableRange,Z=this.scalableRange;F<1&&F>-1&&(F=p*F,Z=D*Z);var ee=I.minX,se=I.maxX,oe=I.minY,ce=I.maxY;l>0?se<-F?l=0:se-l<-F&&(l=se+F):l<0&&(ee>p+F?l=0:ee-l>p+F&&(l=ee-(p+F))),h>0?ce<-Z?h=0:ce-h<-Z&&(h=ce+Z):h<0&&(oe>D+Z?h=0:oe-h>D+Z&&(h=oe-(D+Z))),this.get("direction")==="x"?h=0:this.get("direction")==="y"&&(l=0),r.translate(-l,-h)}t.preventDefault();var we=this.get("enableOptimize");if(we){var Re=this.get("optimizeZoom"),Oe=this.get("optimized"),Pe=r.getNodes(),He=r.getEdges(),at=Pe.length,qe=He.length;if(!Oe){for(var yt=0;yt=2})}},Ul=function(){return Ul=Object.assign||function(c){for(var t,e=1,r=arguments.length;ea&&(a=n[o],i=o);return i},Jd=function(c,t,e){var r,n;return e&&e.current&&(r=e.current.offsetWidth,n=e.current.offsetHeight||500),!c&&!r||!t&&!n?(Al.warn("\u8BF7\u4E3A Graph \u6307\u5B9A width \u4E0E height\uFF01\u5426\u5219\u5C06\u4F7F\u7528\u9ED8\u8BA4\u503C 500 * 500"),[500,500]):[c||r||500,t||n||500]},Jv=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(c){var t=Math.random()*16|0,e=c=="x"?t:t&3|8;return e.toString(16)})},qv=function(c,t){return c.current||(c.current="".concat(t,"-graph-").concat(Jv())),c.current},eg=function(c,t){var e=t!=null?t:{},r=e.nodeCfg,n=r===void 0?{}:r,a=e.edgeCfg,i=a===void 0?{}:a,o=n.nodeStateStyles,s=i.edgeStateStyles,l={},h=function(I,F,Z){c.updateItem(I,{style:{endArrow:!!F&&{fill:F},startArrow:!!Z&&{fill:Z}}})},p=function(I,F,Z){var ee,se,oe;Z?I.toFront():I.toBack();var ce=(ee=I.getModel().style)!==null&&ee!==void 0?ee:{},we=ce.endArrow,Re=ce.startArrow;if(we||Re){if(!l[I.getID()]){var Oe=(we!=null?we:{}).fill,Pe=(Re!=null?Re:{}).fill,He=(oe=(se=I.getModel().style)===null||se===void 0?void 0:se[F])===null||oe===void 0?void 0:oe.stroke;l[I.getID()]=[[He!=null?He:Oe,Oe],[He!=null?He:Pe,Pe]]}var at=l[I.getID()];h(I,we&&at[0][Z?0:1],Re&&at[1][Z?0:1])}c.setItemState(I,F,Z)},D=function(I,F,Z,ee){var se=ee==="node"?c.findAll("edge",function(ce){return ce.getSource()===I||ce.getTarget()===I}):c.findAll("node",function(ce){return I.getSource().get("id")===ce.get("id")||I.getTarget().get("id")===ce.get("id")}),oe=[I].concat(se);oe.forEach(function(ce){p(ce,F,Z)})};o&&(c.on("node:mouseenter",function(I){var F=I.item;D(F,"hover",!0,"node")}),c.on("node:mouseleave",function(I){var F=I.item;D(F,"hover",!1,"node")})),s&&(c.on("edge:mouseenter",function(I){var F=I.item;D(F,"hover",!0,"edge")}),c.on("edge:mouseleave",function(I){var F=I.item;D(F,"hover",!1,"edge")}))},Xl=function(){return Xl=Object.assign||function(c){for(var t,e=1,r=arguments.length;e0&&a[a.length-1])&&(l[0]===6||l[0]===2)){e=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]=18&&(Vl=Dl.createRoot)}catch(c){}function rh(c){var t=Dl.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&typeof t=="object"&&(t.usingClientEntryPoint=c)}var Yl="__rc_react_root__";function sg(c,t){rh(!0);var e=t[Yl]||Vl(t);rh(!1),e.render(c),t[Yl]=e}function ug(c,t){ag(c,t)}function vp(c,t){}function nh(c,t){if(Vl){sg(c,t);return}ug(c,t)}function fg(c){return eh(this,void 0,void 0,function(){return th(this,function(t){return[2,Promise.resolve().then(function(){var e;(e=c[Yl])===null||e===void 0||e.unmount(),delete c[Yl]})]})})}function cg(c){ig(c)}function gp(c){}function pp(c){return eh(this,void 0,void 0,function(){return th(this,function(t){return Vl!==void 0?[2,fg(c)]:(cg(c),[2])})})}var ah=function(c,t){t===void 0&&(t={});var e=Object.keys(t);e.forEach(function(r){c.style[r]=t[r]})},cd=function(c,t,e){t===void 0&&(t={});var r=document.createElement("div");return Object.keys(t).forEach(function(n){r[n]=t[n]}),e&&ah(r,e),nh(c,r),r},Hl=function(){return Hl=Object.assign||function(c){for(var t,e=1,r=arguments.length;e0){var r=c.customContent,n=lg(c,["customContent"]),a=new sc.Tooltip(Hl(Hl({offsetX:10,offsetY:20,itemTypes:["node"]},n),{getContent:function(i){return(0,m.isFunction)(r)?cd(r(i.item.getModel()),{className:"g6-tooltip"}):""},name:"tooltip"}));t.addPlugin(a)}}},hg=function(){function c(t){this._cfgs=(0,m.deepMix)(this.getDefaultCfgs(),t),this._events={},this.destroyed=!1}return c.prototype.getDefaultCfgs=function(){return{}},c.prototype.initPlugin=function(t){var e=this;e.set("graph",t);var r=e.getEvents(),n={};(0,m.each)(r,function(a,i){var o=(0,m.wrapBehavior)(e,a);n[i]=o,t.on(i,o)}),this._events=n,this.init()},c.prototype.getEvents=function(){return{}},c.prototype.get=function(t){var e;return(e=this._cfgs)===null||e===void 0?void 0:e[t]},c.prototype.set=function(t,e){this._cfgs[t]=e},c.prototype.destroy=function(){},c.prototype.destroyPlugin=function(){this.destroy();var t=this.get("graph"),e=this._events;(0,m.each)(e,function(r,n){t.off(n,r)}),this._events=null,this._cfgs=null,this.destroyed=!0},c}(),vg=hg,gg=function(){var c=function(t,e){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])},c(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");c(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}();typeof document!="undefined"&&pi()(` + .g6-component-contextmenu { + border: 1px solid #e2e2e2; + border-radius: 4px; + font-size: 12px; + color: #545454; + background-color: rgba(255, 255, 255, 0.9); + padding: 10px 8px; + box-shadow: rgb(174, 174, 174) 0px 0px 10px; + } + .g6-contextmenu-ul { + padding: 0; + margin: 0; + list-style: none; + } + +`);var pg=function(c){gg(t,c);function t(e){return c.call(this,e)||this}return t.prototype.getDefaultCfgs=function(){return{offsetX:6,offsetY:6,handleMenuClick:void 0,customContent:function(e){return` +
        +
      • \u83DC\u5355\u98791
      • +
      • \u83DC\u5355\u98792
      • +
      + `},shouldBegin:function(e){return!0},onHide:function(){return!0},itemTypes:["node","edge","combo"],trigger:"contextmenu"}},t.prototype.getEvents=function(){return this.get("trigger")==="click"?{click:"onMenuShow",touchend:"onMenuShow"}:{contextmenu:"onMenuShow"}},t.prototype.init=function(){var e=this.get("className"),r=(0,Aa.Z)("
      "));(0,Kn.Z)(r,{top:"0px",position:"absolute",visibility:"hidden"});var n=this.get("container");n||(n=this.get("graph").get("container")),(0,m.isString)(n)&&(n=document.getElementById(n)),n.appendChild(r),this.set("menu",r)},t.prototype.onMenuShow=function(e){var r=this;e.preventDefault();var n=this.get("itemTypes");if(e.item){if(e.item&&e.item.getType&&n.indexOf(e.item.getType())===-1){r.onMenuHide();return}}else if(n.indexOf("canvas")===-1){r.onMenuHide();return}var a=this.get("shouldBegin");if(!!a(e)){var i=this.get("menu"),o=this.get("customContent"),s=this.get("graph"),l=o(e,s);nh(l,i),this.removeMenuEventListener();var h=this.get("handleMenuClick");if(h){var p=function(Pe){h(Pe.target,e.item,s)};this.set("handleMenuClickWrapper",p),i.addEventListener("click",p)}var D=s.get("width"),I=s.get("height"),F=i.getBoundingClientRect(),Z=this.get("offsetX")||0,ee=this.get("offsetY")||0,se=s.getContainer().offsetTop,oe=s.getContainer().offsetLeft,ce=e.canvasX+oe+Z,we=e.canvasY+se+ee;ce+F.width>D&&(ce=e.canvasX-F.width-Z+oe),we+F.height>I&&(we=e.canvasY-F.height-ee+se),(0,Kn.Z)(i,{top:"".concat(we,"px"),left:"".concat(ce,"px"),visibility:"visible"});var Re=this.get("trigger")==="click",Oe=function(Pe){if(Re){Re=!1;return}r.onMenuHide()};document.body.addEventListener("click",Oe),this.set("handler",Oe)}},t.prototype.removeMenuEventListener=function(){var e=this.get("handleMenuClickWrapper"),r=this.get("handler");if(e){var n=this.get("menu");n.removeEventListener("click",e),this.set("handleMenuClickWrapper",null)}r&&document.body.removeEventListener("click",r)},t.prototype.onMenuHide=function(){var e=this.get("menu");e&&(0,Kn.Z)(e,{visibility:"hidden"}),this.removeMenuEventListener()},t.prototype.destroy=function(){var e=this.get("menu");if(this.removeMenuEventListener(),e){var r=this.get("container");r||(r=this.get("graph").get("container")),(0,m.isString)(r)&&(r=document.getElementById(r)),r.removeChild(e)}},t}(vg),yg=pg,Zl=function(){return Zl=Object.assign||function(c){for(var t,e=1,r=arguments.length;e0&&a[a.length-1])&&(l[0]===6||l[0]===2)){e=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]0?(s.children=se,t.updateChild(s,s.id),t.updateItem(o,{collapsed:!1}),t.refreshItem(o),t.emit(oh,i,{type:"fetch",collapsed:!0})):(t.updateItem(o,{collapsed:!h}),t.layout(),t.emit(oh,i,{type:"collapse",collapsed:!!h})),we.label=3;case 3:return[2]}})})};t.on("node:click",function(i){a(i)}),t.on("node:touchstart",function(i){a(i)})},kg=function(c){if(typeof c=="number")return[c,c,c,c];var t=[];switch(c.length){case 1:t=[c[0],c[0],c[0],c[0]];break;case 2:t=[c[0],c[1],c[0],c[1]];break;case 3:t=[c[0],c[1],c[2],c[1]];break;case 4:t=c;break;default:break}return t},sh=function(c,t,e,r){return typeof c=="function"?c(t,e,r)||{}:c||{}},Pl=function(){return Pl=Object.assign||function(c){for(var t,e=1,r=arguments.length;e0&&m(te[0])}},H=0;H0;)b.push(E.pop());d.push(b)}}return d};U.detectConnectedComponents=j;var R=function(L){for(var y=L.nodes,x=y===void 0?[]:y,v=L.edges,g=v===void 0?[]:v,d=[],_={},E={},w={},T=[],k=0,b=function X(H){E[H.id]=k,w[H.id]=k,k+=1,d.push(H),_[H.id]=!0;for(var Q=(0,B.getNeighbors)(H.id,g,"target").filter(function(de){return x.map(function(Te){return Te.id}).indexOf(de)>-1}),q=function(Te){var Se=Q[Te];if(!E[Se]&&E[Se]!==0){var Ie=x.filter(function(be){return be.id===Se});Ie.length>0&&X(Ie[0]),w[H.id]=Math.min(w[H.id],w[Se])}else _[Se]&&(w[H.id]=Math.min(w[H.id],E[Se]))},J=0;J0;){var fe=d.pop();if(_[fe.id]=!1,te.push(fe),fe===H)break}te.length>0&&T.push(te)}},m=0,$=x;m<$.length;m++){var W=$[m];!E[W.id]&&E[W.id]!==0&&b(W)}return T};U.detectStrongConnectComponents=R;function A(N,L){return L?R(N):j(N)}},92935:function(or,U){"use strict";Object.defineProperty(U,"__esModule",{value:!0}),U.secondReg=U.dateReg=void 0;var z=/^(\d{1,4})(-|\/)(\d{1,2})\2(\d{1,2})$/;U.secondReg=z;var B=/^(\d{1,4})(-|\/)(\d{1,2})\2(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2})$/;U.dateReg=B},82556:function(or,U){"use strict";Object.defineProperty(U,"__esModule",{value:!0}),U.getOutDegree=U.getInDegree=U.default=void 0;var z=function(N){var L={},y=N.nodes,x=y===void 0?[]:y,v=N.edges,g=v===void 0?[]:v;return x.forEach(function(d){L[d.id]={degree:0,inDegree:0,outDegree:0}}),g.forEach(function(d){L[d.source].degree++,L[d.source].outDegree++,L[d.target].degree++,L[d.target].inDegree++}),L},B=z;U.default=B;var j=function(N,L){var y=z(N);return y[L]?z(N)[L].inDegree:0};U.getInDegree=j;var R=function(N,L){var y=z(N);return y[L]?z(N)[L].outDegree:0};U.getOutDegree=R},94282:function(or,U,z){"use strict";function B(E){return B=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(w){return typeof w}:function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w},B(E)}Object.defineProperty(U,"__esModule",{value:!0}),U.detectAllUndirectedCycle=U.detectAllDirectedCycle=U.detectAllCycles=U.default=void 0;var j=y(z(45891)),R=L(z(59527)),A=z(70643);function N(E){if(typeof WeakMap!="function")return null;var w=new WeakMap,T=new WeakMap;return(N=function(b){return b?T:w})(E)}function L(E,w){if(!w&&E&&E.__esModule)return E;if(E===null||B(E)!=="object"&&typeof E!="function")return{default:E};var T=N(w);if(T&&T.has(E))return T.get(E);var k={},b=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var m in E)if(m!=="default"&&Object.prototype.hasOwnProperty.call(E,m)){var $=b?Object.getOwnPropertyDescriptor(E,m):null;$&&($.get||$.set)?Object.defineProperty(k,m,$):k[m]=E[m]}return k.default=E,T&&T.set(E,k),k}function y(E){return E&&E.__esModule?E:{default:E}}var x=function(w){var T=null,k=w.nodes,b=k===void 0?[]:k,m={},$={},W={},X={};b.forEach(function(q){$[q.id]=q});for(var H={enter:function(J){var te=J.current,fe=J.previous;if(W[te]){T={};for(var de=te,Te=fe;Te!==te;)T[de]=Te,de=Te,Te=m[Te];T[de]=Te}else W[te]=te,delete $[te],m[te]=fe},leave:function(J){var te=J.current;X[te]=te,delete W[te]},allowTraversal:function(J){var te=J.next;return T?!1:!X[te]}};Object.keys($).length;){var Q=Object.keys($)[0];(0,j.default)(w,Q,H)}return T},v=function(w,T,k){var b,m;k===void 0&&(k=!0);for(var $=[],W=(0,R.default)(w,!1),X=0,H=W;X0;)for(var Te=te.pop(),Se=Te.id,Ie=(0,A.getNeighbors)(Se,w.edges),be=function(De){var Ue,nt=Ie[De],Ze=w.nodes.find(function(St){return St.id===nt});if(nt===Se)$.push((Ue={},Ue[nt]=Te,Ue));else if(!(nt in de))fe[nt]=Te,te.push(Ze),de[nt]=new Set([Te]);else if(!de[Se].has(Ze)){for(var ht=!0,Rt=[Ze,Te],tr=fe[Se];de[nt].size&&!de[nt].has(tr)&&(Rt.push(tr),tr!==fe[tr.id]);)tr=fe[tr.id];if(Rt.push(tr),T&&k?(ht=!1,Rt.findIndex(function(St){return T.indexOf(St.id)>-1})>-1&&(ht=!0)):T&&!k&&Rt.findIndex(function(St){return T.indexOf(St.id)>-1})>-1&&(ht=!1),ht){for(var Qe={},lt=1;lt0;){var lt=Qe.pop();m.has(lt)&&(m.delete(lt),$[lt.id].forEach(function(St){Qe.push(St)}),$[lt.id].clear())}},q=function Rt(tr,Qe,lt){var St=!1;if(T&&k===!1&&T.indexOf(tr.id)>-1)return St;b.push(tr),m.add(tr);for(var Ct=lt[tr.id],_t=0;_t-1});Bt-1)?W.push((Qe={},Qe[ft.id]=ft,Qe)):Vt[ft.id].push(H[br])}}return{component:xr,adjList:Vt,minIdx:St}},be=0;be=be}),Me=(0,R.detectStrongConnectComponents)({nodes:pe,edges:w.edges}).filter(function(Rt){return Rt.length>1});if(Me.length===0)break;var De=Ie(Me),Ue=De.minIdx,nt=De.adjList,Ze=De.component;if(Ze.length>1){Ze.forEach(function(Rt){$[Rt.id]=new Set});var ht=X[Ue];if(T&&k&&T.indexOf(ht.id)===-1)return W;q(ht,ht,nt),be=Ue+1}else break}return W};U.detectAllDirectedCycle=g;var d=function(w,T,k,b){return b===void 0&&(b=!0),T?g(w,k,b):v(w,k,b)};U.detectAllCycles=d;var _=x;U.default=_},45891:function(or,U,z){"use strict";Object.defineProperty(U,"__esModule",{value:!0}),U.default=A;var B=z(70643);function j(N){N===void 0&&(N={});var L=N,y=function(){},x=function(){var v={};return function(g){var d=g.next;return v[d]?!1:(v[d]=!0,!0)}}();return L.allowTraversal=N.allowTraversal||x,L.enter=N.enter||y,L.leave=N.leave||y,L}function R(N,L,y,x){x.enter({current:L,previous:y});var v=N.edges,g=v===void 0?[]:v;(0,B.getNeighbors)(L,g,"target").forEach(function(d){x.allowTraversal({previous:y,current:L,next:d})&&R(N,d,L,x)}),x.leave({current:L,previous:y})}function A(N,L,y){R(N,L,"",j(y))}},78089:function(or,U,z){"use strict";Object.defineProperty(U,"__esModule",{value:!0}),U.default=void 0;var B=z(70655),j=z(49242),R=z(70643),A=function(v,g,d){for(var _=Infinity,E,w=0;w$[Te.id]+Ue?($[De]=$[Te.id]+Ue,W[De]=[Te.id]):$[De]===$[Te.id]+Ue&&W[De].push(Te.id)})},Q=0;Q0&&k.length>0;){var $=k[k.length-1];if($.length){var W=$.shift();W&&(w.push(W),T[W]=!0,m=g?(0,j.getNeighbors)(W,E,"target"):(0,j.getNeighbors)(W,E),k.push(m.filter(function(Q){return!T[Q]})))}else{var X=w.pop();T[X]=!1,k.pop();continue}if(w[w.length-1]===v){var H=w.map(function(q){return q});b.push(H);var X=w.pop();T[X]=!1,k.pop()}}return b};U.findAllPath=N},75033:function(or,U,z){"use strict";Object.defineProperty(U,"__esModule",{value:!0}),U.default=void 0;var B=j(z(62238));function j(N){return N&&N.__esModule?N:{default:N}}var R=function(L,y){for(var x=(0,B.default)(L,y),v=[],g=x.length,d=0;dv[d][E]+v[E][_]&&(v[d][_]=v[d][E]+v[E][_]);return v},A=R;U.default=A},21146:function(or,U,z){"use strict";Object.defineProperty(U,"__esModule",{value:!0}),U.default=void 0;var B=z(49242),j=z(68575),R=function(){function _(E,w,T,k,b){this.fromNode=E,this.toNode=w,this.nodeEdgeNodeLabel={nodeLabel1:T||j.VACANT_NODE_LABEL,edgeLabel:k||j.VACANT_EDGE_LABEL,nodeLabel2:b||j.VACANT_NODE_LABEL}}return _.prototype.equalTo=function(E){return this.fromNode===E.formNode&&this.toNode===E.toNode&&this.nodeEdgeNodeLabel===E.nodeEdgeNodeLabel},_.prototype.notEqualTo=function(E){return!this.equalTo(E)},_}(),A=function(){function _(){this.rmpath=[],this.dfsEdgeList=[]}return _.prototype.equalTo=function(E){var w=this.dfsEdgeList.length,T=E.length;if(w!==T)return!1;for(var k=0;k=0;T--){var k=this.dfsEdgeList[T],b=k.fromNode,m=k.toNode;bJ||k.hasNode(m[q.to])||(w.labelIe;pe--){var Me=be(pe);if(Me==="break")break}if(Te){var De=E.findMinLabel(de);m.dfsEdgeList.push(new R(fe,Se,j.VACANT_NODE_LABEL,De.edgeLabel,j.VACANT_NODE_LABEL));var Ue=m.dfsEdgeList.length-1;return E.dfsCode.dfsEdgeList[Ue]!==m.dfsEdgeList[Ue]?!1:Q(de[De.edgeLabel].projected)}var nt={};Te=!1;var Ze=0;q.forEach(function(St){var Ct=new N(St),_t=E.findForwardPureEdges(k,Ct.edges[J[0]],te,Ct);_t.length>0&&(Te=!0,Ze=fe,_t.forEach(function(pt){var rr="".concat(pt.label,"-").concat(b[pt.to].label);nt[rr]||(nt[rr]={projected:[],edgeLabel:pt.label,nodeLabel2:b[pt.to].label}),nt[rr].projected.push({graphId:k.id,edge:pt,preNode:St})}))});for(var ht=J.length,Rt=function(Ct){if(Te)return"break";var _t=J[Ct];q.forEach(function(pt){var rr=new N(pt),xr=E.findForwardRmpathEdges(k,rr.edges[_t],te,rr);xr.length>0&&(Te=!0,Ze=m.dfsEdgeList[_t].fromNode,xr.forEach(function(Vt){var ft="".concat(Vt.label,"-").concat(b[Vt.to].label);nt[ft]||(nt[ft]={projected:[],edgeLabel:Vt.label,nodeLabel2:b[Vt.to].label}),nt[ft].projected.push({graphId:k.id,edge:Vt,preNode:pt})}))})},pe=0;pe=0;te--){var fe=w.findBackwardEdge(Q,J.edges[b[te]],J.edges[b[0]],J);if(fe){var de="".concat(w.dfsCode.dfsEdgeList[b[te]].fromNode,"-").concat(fe.label);X[de]||(X[de]={projected:[],toNodeId:w.dfsCode.dfsEdgeList[b[te]].fromNode,edgeLabel:fe.label}),X[de].projected.push({graphId:H.graphId,edge:fe,preNode:H})}}if(!(k>=w.maxNodeNum)){var Te=w.findForwardPureEdges(Q,J.edges[b[0]],$,J);Te.forEach(function(Ie){var be="".concat(m,"-").concat(Ie.label,"-").concat(q[Ie.to].label);W[be]||(W[be]={projected:[],fromNodeId:m,edgeLabel:Ie.label,nodeLabel2:q[Ie.to].label}),W[be].projected.push({graphId:H.graphId,edge:Ie,preNode:H})});for(var Se=function(be){var pe=w.findForwardRmpathEdges(Q,J.edges[b[be]],$,J);pe.forEach(function(Me){var De="".concat(w.dfsCode.dfsEdgeList[b[be]].fromNode,"-").concat(Me.label,"-").concat(q[Me.to].label);W[De]||(W[De]={projected:[],fromNodeId:w.dfsCode.dfsEdgeList[b[be]].fromNode,edgeLabel:Me.label,nodeLabel2:q[Me.to].label}),W[De].projected.push({graphId:H.graphId,edge:Me,preNode:H})})},te=0;teIe){var be=Ie;Ie=Se,Se=be}var pe=Te.label,Me="".concat(X,"-").concat(Se,"-").concat(pe,"-").concat(Ie),De="".concat(Se,"-").concat(pe,"-").concat(Ie);if(!m[De]){var Ue=m[De]||0;Ue++,m[De]=Ue}W[Me]={graphId:X,nodeLabel1:Se,edgeLabel:pe,nodeLabel2:Ie}})})}),Object.keys(b).forEach(function(X){var H=b[X];if(!(H2*H)););if(Ue<2*H&&(fe["".concat(Se,"-").concat(De)]={start:Se,end:De,distance:J[Se][De]},Ie++,de++,de>=Q))return fe;if(be++,be>2*H)break}if(Iebe&&(de=be);var pe=Q[Ie.id].inDegree;Te>pe&&(Te=pe);var Me=Q[Ie.id].outDegree;Se>Me&&(Se=Me)}),X[H]={degree:de,inDegree:Te,outDegree:Se}),{minPatternNodeLabelDegree:de,minPatternNodeLabelInDegree:Te,minPatternNodeLabelOutDegree:Se}},m=function(X,H,Q,q,J,te,fe){var de;if(Q===void 0&&(Q=!1),te===void 0&&(te="cluster"),fe===void 0&&(fe="cluster"),!(!X||!X.nodes)){var Te=X.nodes.length;if(!!Te){var Se=(0,j.default)(X,Q),Ie=(0,j.default)(H,Q),be=T(X.nodes,Se,Q),pe=T(H.nodes,Ie,Q),Me=E(X.nodes,te),De=Me.nodeMap,Ue=Me.nodeLabelMap,nt=E(H.nodes,te),Ze=nt.nodeMap,ht=nt.nodeLabelMap;w(X.edges,fe,De);var Rt=w(H.edges,fe,Ze).edgeLabelMap,tr=[];Ie==null||Ie.forEach(function(Zr){tr=tr.concat(Zr)}),J||(J=Math.max.apply(Math,(0,B.__spreadArray)((0,B.__spreadArray)([],tr,!1),[2],!1))),q||(q=J);var Qe=y(X,Se,te,q),lt=y(H,Ie,te,q),St=Math.min(100,Te*(Te-1)/2),Ct=v(q,Te,St,Qe,Se),_t=g(Ct,Qe,X),pt=10,rr=1,xr=1,Vt=4,ft={graphs:_t,nodeLabelProp:te,edgeLabelProp:fe,minSupport:rr,minNodeNum:xr,maxNodeNum:Vt,directed:Q},Bt=(0,R.default)(ft).slice(0,pt),qt=Bt.length,br=[];Bt.forEach(function(Zr,Pn){br[Pn]={},Object.keys(_t).forEach(function(An){var ln=_t[An],va=d(ln,Zr,te,fe);br[Pn][An]=va})});var Ur=_(br,qt,Bt),Ae=Ur.structure,Hr=Ur.structureCountMap,Sr=H.nodes[0],qr=[],Gr=(de=H.nodes[0])===null||de===void 0?void 0:de[te],vn=-Infinity;H.nodes.forEach(function(Zr){var Pn=Zr[te],An=Ue[Pn];(An==null?void 0:An.length)>vn&&(vn=An.length,qr=An,Gr=Pn,Sr=Zr)});var Gn={},mn={},$r={},gn={},Rr={},ct={};Object.keys(ht).forEach(function(Zr,Pn){Rr[Zr]=[],Q&&(ct[Zr]=[]);var An=-Infinity,ln=ht[Zr],va={};ln.forEach(function(ae){var P=pe["".concat(Sr.id,"-").concat(ae.id)];if(P&&Rr[Zr].push(P),AnRr[Zr][Ee]){xe=!0;break}if(xe)return qr.splice(P,1),"continue";var Ne={};C.neighbors.forEach(function(Pt){var $t=be["".concat(S.id,"-").concat(Pt.id)];Ne["".concat(S.id,"-").concat(Pt.id)]={start:De[S.id].idx,end:De[Pt.id].idx,distance:$t}}),_t=g(Ne,Qe,X,_t);var Et=[];Object.keys(Ne).forEach(function(Pt){if(Hr[Pt]){Et.push(Hr[Pt]);return}var $t=_t[Pt];Hr[Pt]=d($t,Ae,te,fe),Et.push(Hr[Pt])}),Et=Et.sort(function(Pt,$t){return $t-Pt});for(var st=!1,Ee=0;Ee=0;ne--)rt(ne)});var Wt=[];qr==null||qr.forEach(function(Zr){for(var Pn=De[Zr.id].idx,An=x(X.nodes,Se[Pn],Pn,te,J),ln=An.neighbors,va=ln.length,K=!1,Dt=va-1;Dt>=0;Dt--){if(ln.length+1C){ln.splice(Dt,1);continue}if(Q){var V="".concat(rt.id,"-").concat(Zr.id),he=be[V];S=ct[ne].length-1;var xe=ct[ne][S];if(he>xe){ln.splice(Dt,1);continue}}var Ee=Hr[ae]?Hr[ae]:k(X,Zr,rt,De,P,Qe,Ae,te,fe,Hr,_t),Ne="".concat(Sr.id,"-").concat(ne),Et=gn[Ne][gn[Ne].length-1];if(Ee=0;P--){var xe=he(P);if(xe==="break")break}if(V)return Wt.splice(Pn,1),"continue";An.edges=Dt;var Ee=(0,A.default)(An,An.nodes[0].id,!1).length;if(Object.keys(Ee).reverse().forEach(function(bn){if(!(bn===An.nodes[0].id||V)){if(Ee[bn]===Infinity){var je=K[bn].node[te];if(va[je]--,va[je]Dr[Xe][Dr[Xe].length-1]){var je=K[bn].node[te];if(va[je]--,va[je]=0;$t--){var Ht=An.nodes[$t],Br=K[Ht.id].degree,hn=K[Ht.id].inDegree,Ot=K[Ht.id].outDegree,Qt=Ht[te],pr=b(Gn,Qt,Ze,ht),en=pr.minPatternNodeLabelDegree,Nr=pr.minPatternNodeLabelInDegree,ta=pr.minPatternNodeLabelOutDegree,kn=Q?Br=0;En--){var Rn=Dt[En];if(!K[Rn.source]||!K[Rn.target]){Dt.splice(En,1);var Yn=Rn[fe];if(rt[Yn]--,K[Rn.source]&&(K[Rn.source].degree--,K[Rn.source].outDegree--),K[Rn.target]&&(K[Rn.target].degree--,K[Rn.target].inDegree--),Rt[Yn]&&rt[Yn]=0;wn--){var Sn=pn(wn);if(Sn==="break")break}for(var In=Wt.length,$n=function(Pn){var An=Wt[Pn],ln={};An.edges.forEach(function(Dt){var rt="".concat(Dt.source,"-").concat(Dt.target,"-").concat(Dt.label);ln[rt]?ln[rt]++:ln[rt]=1});for(var va=function(rt){var ne=Wt[rt],ae={};ne.edges.forEach(function(S){var C="".concat(S.source,"-").concat(S.target,"-").concat(S.label);ae[C]?ae[C]++:ae[C]=1});var P=!0;Object.keys(ae).length!==Object.keys(ln).length?P=!1:Object.keys(ln).forEach(function(S){ae[S]!==ln[S]&&(P=!1)}),P&&Wt.splice(rt,1)},K=In-1;K>Pn;K--)va(K);In=Wt.length},wn=0;wn<=In-1;wn++)$n(wn);return Wt}}},$=m;U.default=$},5170:function(or,U,z){"use strict";Object.defineProperty(U,"__esModule",{value:!0}),U.default=void 0;var B=R(z(62238)),j=z(70643);function R(L){return L&&L.__esModule?L:{default:L}}var A=function(y,x,v,g){x===void 0&&(x=!1),v===void 0&&(v="weight"),g===void 0&&(g=1e3);var d=y.nodes,_=d===void 0?[]:d,E=y.edges,w=E===void 0?[]:E,T={},k={};_.forEach(function(te,fe){var de=(0,j.uniqueId)();te.clusterId=de,T[de]={id:de,nodes:[te]},k[te.id]={node:te,idx:fe}});var b=(0,B.default)(y,x),m=[],$={};b.forEach(function(te,fe){var de=0,Te=_[fe].id;$[Te]={},te.forEach(function(Se,Ie){if(!!Se){de+=Se;var be=_[Ie].id;$[Te][be]=Se}}),m.push(de)});for(var W=0,X=function(){var fe=!1;if(_.forEach(function(de){var Te={};Object.keys($[de.id]).forEach(function(nt){var Ze=$[de.id][nt],ht=k[nt].node,Rt=ht.clusterId;Te[Rt]||(Te[Rt]=0),Te[Rt]+=Ze});var Se=-Infinity,Ie=[];if(Object.keys(Te).forEach(function(nt){Se=0&&Ie.splice(be,1),Ie&&Ie.length){fe=!0;var pe=T[de.clusterId],Me=pe.nodes.indexOf(de);pe.nodes.splice(Me,1);var De=Math.floor(Math.random()*Ie.length),Ue=T[Ie[De]];Ue.nodes.push(de),de.clusterId=Ue.id}}}),!fe)return"break";W++};W0&&De>Ue&&De-UeUe&&(Ze=H.map(function(_t){return{node:_t,clusterId:_t.clusterId}}),ht=(0,B.clone)(Te),Ue=De),Rt||nt>100)break;nt++,Object.keys(Te).forEach(function(_t){var pt=0;q.forEach(function(rr){var xr=rr.source,Vt=rr.target,ft=Se[xr].node.clusterId,Bt=Se[Vt].node.clusterId;(ft===_t&&Bt!==_t||Bt===_t&&ft!==_t)&&(pt=pt+(rr[w]||1))}),Te[_t].sumTot=pt}),H.forEach(function(_t,pt){var rr=Te[_t.clusterId],xr=0,Vt,ft=be[pt]/(2*Me),Bt=0,qt=rr.nodes;qt.forEach(function(mn){var $r=Se[mn.id].idx;Bt+=Ie[pt][$r]||0});var br=Bt-rr.sumTot*ft,Ur=qt.filter(function(mn){return mn.id!==_t.id}),Ae=[];Ur.forEach(function(mn,$r){Ae[$r]=J[mn.originIndex]});var Hr=x(Ur,J)*W,Sr=pe[_t.id];if(Object.keys(Sr).forEach(function(mn){var $r=Se[mn].node,gn=$r.clusterId;if(gn!==_t.clusterId){var Rr=Te[gn],ct=Rr.nodes;if(!(!ct||!ct.length)){var Wt=0;ct.forEach(function(Sn){var In=Se[Sn.id].idx;Wt+=Ie[pt][In]||0});var Er=Wt-Rr.sumTot*ft,Dr=ct.concat([_t]),Vr=[];Dr.forEach(function(Sn,In){Vr[In]=J[Sn.originIndex]});var pn=x(Dr,J)*W,wn=Er-br;k&&(wn=Er+pn-(br+Hr)),wn>xr&&(xr=wn,Vt=Rr)}}}),xr>0){Vt.nodes.push(_t);var qr=_t.clusterId;_t.clusterId=Vt.id;var Gr=rr.nodes.indexOf(_t);rr.nodes.splice(Gr,1);var vn=0,Gn=0;q.forEach(function(mn){var $r=mn.source,gn=mn.target,Rr=Se[$r].node.clusterId,ct=Se[gn].node.clusterId;(Rr===Vt.id&&ct!==Vt.id||ct===Vt.id&&Rr!==Vt.id)&&(vn=vn+(mn[w]||1)),(Rr===qr&&ct!==qr||ct===qr&&Rr!==qr)&&(Gn=Gn+(mn[w]||1))}),Vt.sumTot=vn,rr.sumTot=Gn}})}var tr={},Qe=0;Object.keys(ht).forEach(function(_t){var pt=ht[_t];if(!pt.nodes||!pt.nodes.length){delete ht[_t];return}var rr=String(Qe+1);rr!==_t&&(pt.id=rr,pt.nodes=pt.nodes.map(function(xr){return{id:xr.id,clusterId:rr}}),ht[rr]=pt,tr[_t]=rr,delete ht[_t],Qe++)}),Ze.forEach(function(_t){var pt=_t.node,rr=_t.clusterId;!pt||(pt.clusterId=rr,pt.clusterId&&tr[pt.clusterId]&&(pt.clusterId=tr[pt.clusterId]))});var lt=[],St={};q.forEach(function(_t){var pt=_t.source,rr=_t.target,xr=_t[w]||1,Vt=Se[pt].node.clusterId,ft=Se[rr].node.clusterId;if(!(!Vt||!ft)){var Bt="".concat(Vt,"---").concat(ft);if(St[Bt])St[Bt].weight+=xr,St[Bt].count++;else{var qt={source:Vt,target:ft,weight:xr,count:1};St[Bt]=qt,lt.push(qt)}}});var Ct=[];return Object.keys(ht).forEach(function(_t){Ct.push(ht[_t])}),{clusters:Ct,clusterEdges:lt}},g=v;U.default=g},89454:function(or,U,z){"use strict";Object.defineProperty(U,"__esModule",{value:!0}),U.default=void 0;var B=A(z(38823)),j=A(z(57085)),R=z(70643);function A(v){return v&&v.__esModule?v:{default:v}}var N=function(g,d){var _=[],E=g.nodes,w=E===void 0?[]:E,T=g.edges,k=T===void 0?[]:T;if(w.length===0)return _;var b=w[0],m=new Set;m.add(b);var $=function(J,te){return d?J.weight-te.weight:0},W=new j.default($);for((0,R.getEdgesByNodeId)(b.id,k).forEach(function(q){W.insert(q)});!W.isEmpty();){var X=W.delMin(),H=X.source,Q=X.target;m.has(H)&&m.has(Q)||(_.push(X),m.has(H)||(m.add(H),(0,R.getEdgesByNodeId)(H,k).forEach(function(q){W.insert(q)})),m.has(Q)||(m.add(Q),(0,R.getEdgesByNodeId)(Q,k).forEach(function(q){W.insert(q)})))}return _},L=function(g,d){var _=[],E=g.nodes,w=E===void 0?[]:E,T=g.edges,k=T===void 0?[]:T;if(w.length===0)return _;var b=k.map(function(H){return H});d&&b.sort(function(H,Q){return H.weight-Q.weight});for(var m=new B.default(w.map(function(H){return H.id}));b.length>0;){var $=b.shift(),W=$.source,X=$.target;m.connected(W,X)||(_.push($),m.union(W,X))}return _},y=function(g,d,_){var E={prim:N,kruskal:L};return _?E[_](g,d):L(g,d)},x=y;U.default=x},74926:function(or,U,z){"use strict";Object.defineProperty(U,"__esModule",{value:!0}),U.default=void 0;var B=R(z(82556)),j=z(70643);function R(L){return L&&L.__esModule?L:{default:L}}var A=function(y,x,v){typeof x!="number"&&(x=1e-6),typeof v!="number"&&(v=.85);for(var g=1,d=0,_=1e3,E=y.nodes,w=E===void 0?[]:E,T=y.edges,k=T===void 0?[]:T,b=w.length,m,$={},W={},X=0;X0&&g>x;){d=0;for(var X=0;X0&&(m+=W[fe]/de)}$[Q]=v*m,d+=$[Q]}}d=(1-d)/b,g=0;for(var X=0;X0&&(this.list[0]=N,this.moveDown(0)),A},R.prototype.insert=function(A){if(A!==null){this.list.push(A);var N=this.list.length-1;return this.moveUp(N),!0}return!1},R.prototype.moveUp=function(A){for(var N=this.getParent(A);A&&A>0&&this.compareFn(this.list[N],this.list[A])>0;){var L=this.list[N];this.list[N]=this.list[A],this.list[A]=L,A=N,N=this.getParent(A)}},R.prototype.moveDown=function(A){var N,L=A,y=this.getLeft(A),x=this.getRight(A),v=this.list.length;y!==null&&y0?L=y:x!==null&&x0&&(L=x),A!==L&&(N=[this.list[L],this.list[A]],this.list[A]=N[0],this.list[L]=N[1],this.moveDown(L))},R}(),j=B;U.default=j},88481:function(or,U){"use strict";Object.defineProperty(U,"__esModule",{value:!0}),U.default=U.LinkedListNode=void 0;var z=function(N,L){return N===L},B=function(){function A(N,L){L===void 0&&(L=null),this.value=N,this.next=L}return A.prototype.toString=function(N){return N?N(this.value):"".concat(this.value)},A}();U.LinkedListNode=B;var j=function(){function A(N){N===void 0&&(N=z),this.head=null,this.tail=null,this.compare=N}return A.prototype.prepend=function(N){var L=new B(N,this.head);return this.head=L,this.tail||(this.tail=L),this},A.prototype.append=function(N){var L=new B(N);return this.head?(this.tail.next=L,this.tail=L,this):(this.head=L,this.tail=L,this)},A.prototype.delete=function(N){if(!this.head)return null;for(var L=null;this.head&&this.compare(this.head.value,N);)L=this.head,this.head=this.head.next;var y=this.head;if(y!==null)for(;y.next;)this.compare(y.next.value,N)?(L=y.next,y.next=y.next.next):y=y.next;return this.compare(this.tail.value,N)&&(this.tail=y),L},A.prototype.find=function(N){var L=N.value,y=L===void 0?void 0:L,x=N.callback,v=x===void 0?void 0:x;if(!this.head)return null;for(var g=this.head;g;){if(v&&v(g.value)||y!==void 0&&this.compare(g.value,y))return g;g=g.next}return null},A.prototype.deleteTail=function(){var N=this.tail;if(this.head===this.tail)return this.head=null,this.tail=null,N;for(var L=this.head;L.next;)L.next.next?L=L.next:L.next=null;return this.tail=L,N},A.prototype.deleteHead=function(){if(!this.head)return null;var N=this.head;return this.head.next?this.head=this.head.next:(this.head=null,this.tail=null),N},A.prototype.fromArray=function(N){var L=this;return N.forEach(function(y){return L.append(y)}),this},A.prototype.toArray=function(){for(var N=[],L=this.head;L;)N.push(L),L=L.next;return N},A.prototype.reverse=function(){for(var N=this.head,L=null,y=null;N;)y=N.next,N.next=L,L=N,N=y;this.tail=this.head,this.head=L},A.prototype.toString=function(N){return N===void 0&&(N=void 0),this.toArray().map(function(L){return L.toString(N)}).toString()},A}(),R=j;U.default=R},93026:function(or,U,z){"use strict";Object.defineProperty(U,"__esModule",{value:!0}),U.default=void 0;var B=j(z(88481));function j(N){return N&&N.__esModule?N:{default:N}}var R=function(){function N(){this.linkedList=new B.default}return N.prototype.isEmpty=function(){return!this.linkedList.head},N.prototype.peek=function(){return this.linkedList.head?this.linkedList.head.value:null},N.prototype.enqueue=function(L){this.linkedList.append(L)},N.prototype.dequeue=function(){var L=this.linkedList.deleteHead();return L?L.value:null},N.prototype.toString=function(L){return this.linkedList.toString(L)},N}(),A=R;U.default=A},38823:function(or,U){"use strict";Object.defineProperty(U,"__esModule",{value:!0}),U.default=void 0;var z=function(){function j(R){this.count=R.length,this.parent={};for(var A=0,N=R;A0&&C[0]!==void 0?C[0]:1,!this.dirty){he.next=6;break}return this.compiledBundle.context&&(P>1?this.compiledBundle.context.maxIteration=P:this.compiledBundle.context.maxIteration++),he.next=5,this.compile();case 5:this.dirty=!1;case 6:for(this.engine.beginFrame(),this.engine.clear({}),this.compiledBundle.context&&this.compiledBundle.context.uniforms.filter(function(xe){var Ee=xe.isReferer;return Ee}).forEach(function(xe){var Ee=xe.data,Ne=xe.name;ae.model.confirmInput(Ee.model,Ne)}),S=0;S16)throw new Error("invalid data type ".concat(Ee));ae[xe]=function(){return he.data}}});var P=this.getOuputDataTexture(),S=P.textureWidth,C=P.texelCount;ae.u_OutputTextureSize=[S,S],ae.u_OutputTexelCount=C,this.context.output.textureSize=[S,S];var V={attributes:{a_Position:[[-1,1,0],[-1,-1,0],[1,1,0],[1,-1,0]],a_TexCoord:[[0,1],[0,0],[1,1],[1,0]]},frag:`#ifdef GL_FRAGMENT_PRECISION_HIGH + precision highp float; +#else + precision mediump float; +#endif +`.concat(this.context.shader),uniforms:ae,vert:gn,primitive:"triangle strip",count:4};this.computeCommand=this.reGl(V)}return(0,A.Z)(K,[{key:"run",value:function(){var rt=this;this.context.maxIteration>1&&this.context.needPingpong&&(this.compiledPingpong=!0),(this.compiledPingpong||this.dynamicPingpong)&&this.swap(),this.texFBO=this.reGl.framebuffer({color:this.getOuputDataTexture().texture}),this.texFBO.use(function(){rt.computeCommand()}),ct&&console.log("[".concat(this.entity,"]: output ").concat(this.getOuputDataTexture().id))}},{key:"readData",value:function(){var Dt=(0,B.Z)(_().mark(function ne(){var ae=this,P,S,C,V,he,xe,Ee,Ne;return _().wrap(function(st){for(;;)switch(st.prev=st.next){case 0:if(this.reGl({framebuffer:this.texFBO})(function(){P=ae.reGl.read()}),!P){st.next=6;break}if(S=this.getOuputDataTexture(),C=S.originalDataLength,V=S.elementsPerTexel,he=S.typedArrayConstructor,xe=he===void 0?Float32Array:he,Ee=[],V!==4)for(Ne=0;Ne2&&arguments[2]!==void 0?arguments[2]:0,P=this.context.uniforms.find(function(he){var xe=he.name;return xe===rt});if(P){var S=this.calcDataTexture(rt,P.type,ne),C=S.texture,V=S.data;this.textureCache[rt].data=V,this.textureCache[rt].texture=C}}},{key:"destroy",value:function(){}},{key:"swap",value:function(){if(this.swapOutputTextureName||this.createSwapOutputDataTexture(),this.compiledPingpong){var rt=this.context.output.name;this.textureCache[rt].id=this.getOuputDataTexture().id,this.textureCache[rt].texture=this.getOuputDataTexture().texture}var ne=this.outputTextureName;this.outputTextureName=this.swapOutputTextureName,this.swapOutputTextureName=ne,ct&&console.log("[".concat(this.entity,"]: after swap, output ").concat(this.getOuputDataTexture().id))}},{key:"getOuputDataTexture",value:function(){return this.textureCache[this.outputTextureName]}},{key:"createSwapOutputDataTexture",value:function(){var rt=this.cloneDataTexture(this.getOuputDataTexture());this.swapOutputTextureName="".concat(this.entity,"-swap"),this.textureCache[this.swapOutputTextureName]=rt}},{key:"cloneDataTexture",value:function(rt){var ne=rt.data,ae=rt.textureWidth;return $r($r({},rt),{},{id:Rr++,texture:this.reGl.texture({width:ae,height:ae,data:ne,type:"float"})})}},{key:"calcDataTexture",value:function(rt,ne,ae){var P=1;ne===X.Vector4FloatArray&&(P=4);for(var S=[],C=0;C0&&arguments[0]!==void 0?arguments[0]:{},ne=new K;return ne.setConfig(rt),ne.setEngine(new ln),ne}}]),K}()},67320:function(or,U,z){"use strict";var B=this&&this.__createBinding||(Object.create?function(A,N,L,y){y===void 0&&(y=L);var x=Object.getOwnPropertyDescriptor(N,L);(!x||("get"in x?!N.__esModule:x.writable||x.configurable))&&(x={enumerable:!0,get:function(){return N[L]}}),Object.defineProperty(A,y,x)}:function(A,N,L,y){y===void 0&&(y=L),A[y]=N[L]}),j=this&&this.__exportStar||function(A,N){for(var L in A)L!=="default"&&!Object.prototype.hasOwnProperty.call(N,L)&&B(N,A,L)};Object.defineProperty(U,"__esModule",{value:!0}),U.getLayoutByName=U.unRegisterLayout=U.registerLayout=void 0;var R=z(39464);Object.defineProperty(U,"registerLayout",{enumerable:!0,get:function(){return R.registerLayout}}),Object.defineProperty(U,"unRegisterLayout",{enumerable:!0,get:function(){return R.unRegisterLayout}}),Object.defineProperty(U,"getLayoutByName",{enumerable:!0,get:function(){return R.getLayoutByName}}),j(z(64649),U)},46253:function(or,U){"use strict";Object.defineProperty(U,"__esModule",{value:!0}),U.Base=void 0;var z=function(){function B(){this.nodes=[],this.edges=[],this.combos=[],this.comboEdges=[],this.hiddenNodes=[],this.hiddenEdges=[],this.hiddenCombos=[],this.vedges=[],this.positions=[],this.destroyed=!1,this.onLayoutEnd=function(){}}return B.prototype.layout=function(j){return this.init(j),this.execute(!0)},B.prototype.init=function(j){this.nodes=j.nodes||[],this.edges=j.edges||[],this.combos=j.combos||[],this.comboEdges=j.comboEdges||[],this.hiddenNodes=j.hiddenNodes||[],this.hiddenEdges=j.hiddenEdges||[],this.hiddenCombos=j.hiddenCombos||[],this.vedges=j.vedges||[]},B.prototype.execute=function(j){},B.prototype.executeWithWorker=function(){},B.prototype.getDefaultCfg=function(){return{}},B.prototype.updateCfg=function(j){j&&Object.assign(this,j)},B.prototype.getType=function(){return"base"},B.prototype.destroy=function(){this.nodes=null,this.edges=null,this.combos=null,this.positions=null,this.destroyed=!0},B}();U.Base=z},93959:function(or,U,z){"use strict";var B=this&&this.__extends||function(){var x=function(v,g){return x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,_){d.__proto__=_}||function(d,_){for(var E in _)Object.prototype.hasOwnProperty.call(_,E)&&(d[E]=_[E])},x(v,g)};return function(v,g){if(typeof g!="function"&&g!==null)throw new TypeError("Class extends value "+String(g)+" is not a constructor or null");x(v,g);function d(){this.constructor=v}v.prototype=g===null?Object.create(g):(d.prototype=g.prototype,new d)}}();Object.defineProperty(U,"__esModule",{value:!0}),U.CircularLayout=void 0;var j=z(46253),R=z(8273);function A(x,v,g,d){x.forEach(function(_,E){x[E].children=[],x[E].parent=[]}),d?v.forEach(function(_){var E=(0,R.getEdgeTerminal)(_,"source"),w=(0,R.getEdgeTerminal)(_,"target"),T=0;E&&(T=g[E]);var k=0;w&&(k=g[w]);var b=x[T].children,m=x[k].parent;b.push(x[k].id),m.push(x[T].id)}):v.forEach(function(_){var E=(0,R.getEdgeTerminal)(_,"source"),w=(0,R.getEdgeTerminal)(_,"target"),T=0;E&&(T=g[E]);var k=0;w&&(k=g[w]);var b=x[T].children,m=x[k].children;b.push(x[k].id),m.push(x[T].id)})}function N(x,v,g){for(var d=g.length,_=0;_d?1:0}var y=function(x){B(v,x);function v(g){var d=x.call(this)||this;return d.radius=null,d.nodeSize=void 0,d.startRadius=null,d.endRadius=null,d.startAngle=0,d.endAngle=2*Math.PI,d.clockwise=!0,d.divisions=1,d.ordering=null,d.angleRatio=1,d.nodes=[],d.edges=[],d.nodeMap={},d.degrees=[],d.width=300,d.height=300,d.updateCfg(g),d}return v.prototype.getDefaultCfg=function(){return{radius:null,startRadius:null,endRadius:null,startAngle:0,endAngle:2*Math.PI,clockwise:!0,divisions:1,ordering:null,angleRatio:1}},v.prototype.execute=function(){var g,d=this,_=d.nodes,E=d.edges,w=_.length;if(w===0){d.onLayoutEnd&&d.onLayoutEnd();return}!d.width&&typeof window!="undefined"&&(d.width=window.innerWidth),!d.height&&typeof window!="undefined"&&(d.height=window.innerHeight),d.center||(d.center=[d.width/2,d.height/2]);var T=d.center;if(w===1){_[0].x=T[0],_[0].y=T[1],d.onLayoutEnd&&d.onLayoutEnd();return}var k=d.radius,b=d.startRadius,m=d.endRadius,$=d.divisions,W=d.startAngle,X=d.endAngle,H=d.angleRatio,Q=d.ordering,q=d.clockwise,J=d.nodeSpacing,te=d.nodeSize,fe=(X-W)/w,de={};_.forEach(function(Rt,tr){de[Rt.id]=tr}),d.nodeMap=de;var Te=(0,R.getDegree)(_.length,de,E);if(d.degrees=Te,J){var Se=(0,R.getFuncByUnknownType)(10,J),Ie=(0,R.getFuncByUnknownType)(10,te),be=-Infinity;_.forEach(function(Rt){var tr=Ie(Rt);bed.width?d.width/2:d.height/2:!b&&m?b=m:b&&!m&&(m=b);var Me=fe*H,De=[];Q==="topology"?De=d.topologyOrdering():Q==="topology-directed"?De=d.topologyOrdering(!0):Q==="degree"?De=d.degreeOrdering():De=_;for(var Ue=Math.ceil(w/$),nt=0;nt=0;Ie--)Se(Ie);return{nodes:_,edges:E,combos:w,comboEdges:T}},v.prototype.getInnerGraphs=function(g){var d=this,_=d.comboTrees,E=d.nodeSize,w=d.edges,T=d.comboPadding,k=d.spacing,b={},m=this.innerLayout||new L.ConcentricLayout({sortBy:"id"});return m.center=[0,0],m.preventOverlap=!0,m.nodeSpacing=k,(_||[]).forEach(function($){(0,N.traverseTreeUp)($,function(W){var X,H=(T==null?void 0:T(W))||10;if((0,N.isArray)(H)&&(H=Math.max.apply(Math,H)),(X=W.children)===null||X===void 0?void 0:X.length){var q=W.children.map(function(De){if(De.itemType==="combo")return b[De.id];var Ue=g[De.id]||{};return j(j({},Ue),De)}),J=q.map(function(De){return De.id}),te={nodes:q,edges:w.filter(function(De){return J.includes(De.source)&&J.includes(De.target)})},fe=Infinity;q.forEach(function(De){var Ue;De.size||(De.size=((Ue=b[De.id])===null||Ue===void 0?void 0:Ue.size)||(E==null?void 0:E(De))||[30,30]),(0,N.isNumber)(De.size)&&(De.size=[De.size,De.size]),fe>De.size[0]&&(fe=De.size[0]),fe>De.size[1]&&(fe=De.size[1])}),m.layout(te);var de=(0,N.getLayoutBBox)(q),Te=de.minX,Se=de.minY,Ie=de.maxX,be=de.maxY,pe={x:(Ie+Te)/2,y:(be+Se)/2};te.nodes.forEach(function(De){De.x-=pe.x,De.y-=pe.y});var Me=Math.max(Ie-Te,be-Se,fe)+H*2;b[W.id]={id:W.id,nodes:q,size:[Me,Me]}}else if(W.itemType==="combo"){var Q=H?[H*2,H*2]:[30,30];b[W.id]={id:W.id,nodes:[],size:Q}}return!0})}),b},v.prototype.initVals=function(){var g=this,d=g.nodeSize,_=g.spacing,E,w;if((0,N.isNumber)(_)?w=function(){return _}:(0,N.isFunction)(_)?w=_:w=function(){return 0},this.spacing=w,!d)E=function(W){var X=w(W);if(W.size){if((0,N.isArray)(W.size)){var H=W.size[0]>W.size[1]?W.size[0]:W.size[1];return(H+X)/2}if((0,N.isObject)(W.size)){var H=W.size.width>W.size.height?W.size.width:W.size.height;return(H+X)/2}return(W.size+X)/2}return 10+X/2};else if((0,N.isFunction)(d))E=function(W){var X=d(W),H=w(W);if((0,N.isArray)(W.size)){var Q=W.size[0]>W.size[1]?W.size[0]:W.size[1];return(Q+H)/2}return((X||10)+H)/2};else if((0,N.isArray)(d)){var T=d[0]>d[1]?d[0]:d[1],k=T/2;E=function(W){return k+w(W)/2}}else{var b=d/2;E=function(W){return b+w(W)/2}}this.nodeSize=E;var m=g.comboPadding,$;(0,N.isNumber)(m)?$=function(){return m}:(0,N.isArray)(m)?$=function(){return Math.max.apply(null,m)}:(0,N.isFunction)(m)?$=m:$=function(){return 0},this.comboPadding=$},v.prototype.getType=function(){return"comboCombined"},v}(A.Base);U.ComboCombinedLayout=y},48133:function(or,U,z){"use strict";var B=this&&this.__extends||function(){var N=function(L,y){return N=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,v){x.__proto__=v}||function(x,v){for(var g in v)Object.prototype.hasOwnProperty.call(v,g)&&(x[g]=v[g])},N(L,y)};return function(L,y){if(typeof y!="function"&&y!==null)throw new TypeError("Class extends value "+String(y)+" is not a constructor or null");N(L,y);function x(){this.constructor=L}L.prototype=y===null?Object.create(y):(x.prototype=y.prototype,new x)}}();Object.defineProperty(U,"__esModule",{value:!0}),U.ComboForceLayout=void 0;var j=z(46253),R=z(8273),A=function(N){B(L,N);function L(y){var x=N.call(this)||this;return x.center=[0,0],x.maxIteration=100,x.gravity=10,x.comboGravity=10,x.linkDistance=10,x.alpha=1,x.alphaMin=.001,x.alphaDecay=1-Math.pow(x.alphaMin,1/300),x.alphaTarget=0,x.velocityDecay=.6,x.edgeStrength=.6,x.nodeStrength=30,x.preventOverlap=!1,x.preventNodeOverlap=!1,x.preventComboOverlap=!1,x.collideStrength=void 0,x.nodeCollideStrength=.5,x.comboCollideStrength=.5,x.comboSpacing=20,x.comboPadding=10,x.optimizeRangeFactor=1,x.onTick=function(){},x.onLayoutEnd=function(){},x.depthAttractiveForceScale=1,x.depthRepulsiveForceScale=2,x.nodes=[],x.edges=[],x.combos=[],x.comboTrees=[],x.width=300,x.height=300,x.bias=[],x.nodeMap={},x.oriComboMap={},x.indexMap={},x.comboMap={},x.previousLayouted=!1,x.updateCfg(y),x}return L.prototype.getDefaultCfg=function(){return{maxIteration:100,center:[0,0],gravity:10,speed:1,comboGravity:30,preventOverlap:!1,preventComboOverlap:!0,preventNodeOverlap:!0,nodeSpacing:void 0,collideStrength:void 0,nodeCollideStrength:.5,comboCollideStrength:.5,comboSpacing:20,comboPadding:10,edgeStrength:.6,nodeStrength:30,linkDistance:10}},L.prototype.execute=function(){var y=this,x=y.nodes,v=y.center;if(y.comboTree={id:"comboTreeRoot",depth:-1,children:y.comboTrees},!x||x.length===0){y.onLayoutEnd&&y.onLayoutEnd();return}if(x.length===1){x[0].x=v[0],x[0].y=v[1],y.onLayoutEnd&&y.onLayoutEnd();return}y.initVals(),y.run(),y.onLayoutEnd&&y.onLayoutEnd()},L.prototype.run=function(){var y=this,x=y.nodes,v=y.previousLayouted?y.maxIteration/5:y.maxIteration;!y.width&&typeof window!="undefined"&&(y.width=window.innerWidth),!y.height&&typeof window!="undefined"&&(y.height=window.innerHeight);var g=y.center,d=y.velocityDecay,_=y.comboMap;y.previousLayouted||y.initPos(_);for(var E=function(b){var m=[];x.forEach(function($,W){m[W]={x:0,y:0}}),y.applyCalculate(m),y.applyComboCenterForce(m),x.forEach(function($,W){!(0,R.isNumber)($.x)||!(0,R.isNumber)($.y)||($.x+=m[W].x*d,$.y+=m[W].y*d)}),y.alpha+=(y.alphaTarget-y.alpha)*y.alphaDecay,y.onTick()},w=0;wZe.size[1]?Ze.size[0]:Ze.size[1];return ht/2}if((0,R.isObject)(Ze.size)){var ht=Ze.size.width>Ze.size.height?Ze.size.width:Ze.size.height;return ht/2}return Ze.size/2}return 10};else if((0,R.isFunction)(X))Q=function(Ze){return X(Ze)};else if((0,R.isArray)(X)){var J=X[0]>X[1]?X[0]:X[1],te=J/2;Q=function(Ze){return te}}else{var fe=X/2;Q=function(Ze){return fe}}this.nodeSize=Q;var de=y.comboSpacing,Te;(0,R.isNumber)(de)?Te=function(){return de}:(0,R.isFunction)(de)?Te=de:Te=function(){return 0},this.comboSpacing=Te;var Se=y.comboPadding,Ie;(0,R.isNumber)(Se)?Ie=function(){return Se}:(0,R.isArray)(Se)?Ie=function(){return Math.max.apply(null,Se)}:(0,R.isFunction)(Se)?Ie=Se:Ie=function(){return 0},this.comboPadding=Ie;var be=this.linkDistance,pe;be||(be=10),(0,R.isNumber)(be)?pe=function(Ze){return be}:pe=be,this.linkDistance=pe;var Me=this.edgeStrength,De;Me||(Me=1),(0,R.isNumber)(Me)?De=function(Ze){return Me}:De=Me,this.edgeStrength=De;var Ue=this.nodeStrength,nt;Ue||(Ue=30),(0,R.isNumber)(Ue)?nt=function(Ze){return Ue}:nt=Ue,this.nodeStrength=nt},L.prototype.initPos=function(y){var x=this,v=x.nodes;v.forEach(function(g,d){var _=g.comboId,E=y[_];_&&E?(g.x=E.cx+100/(d+1),g.y=E.cy+100/(d+1)):(g.x=100/(d+1),g.y=100/(d+1))})},L.prototype.getComboMap=function(){var y=this,x=y.nodeMap,v=y.comboTrees,g=y.oriComboMap,d={};return(v||[]).forEach(function(_){var E=[];(0,R.traverseTreeUp)(_,function(w){if(w.itemType==="node"||!g[w.id])return!0;if(d[w.id]===void 0){var T={id:w.id,name:w.id,cx:0,cy:0,count:0,depth:y.oriComboMap[w.id].depth||0,children:[]};d[w.id]=T}var k=w.children;k&&k.forEach(function($){if(!d[$.id]&&!x[$.id])return!0;E.push($)});var b=d[w.id];if(b.cx=0,b.cy=0,E.length===0){b.empty=!0;var m=g[w.id];b.cx=m.x,b.cy=m.y}return E.forEach(function($){if(b.count++,$.itemType!=="node"){var W=d[$.id];(0,R.isNumber)(W.cx)&&(b.cx+=W.cx),(0,R.isNumber)(W.cy)&&(b.cy+=W.cy);return}var X=x[$.id];!X||((0,R.isNumber)(X.x)&&(b.cx+=X.x),(0,R.isNumber)(X.y)&&(b.cy+=X.y))}),b.cx/=b.count||1,b.cy/=b.count||1,b.children=E,!0})}),d},L.prototype.applyComboCenterForce=function(y){var x=this,v=x.gravity,g=x.comboGravity||v,d=this.alpha,_=x.comboTrees,E=x.indexMap,w=x.nodeMap,T=x.comboMap;(_||[]).forEach(function(k){(0,R.traverseTreeUp)(k,function(b){if(b.itemType==="node")return!0;var m=T[b.id];if(!m)return!0;var $=T[b.id],W=($.depth+1)/10*.5,X=$.cx,H=$.cy;return $.cx=0,$.cy=0,$.children.forEach(function(Q){if(Q.itemType!=="node"){var q=T[Q.id];q&&(0,R.isNumber)(q.cx)&&($.cx+=q.cx),q&&(0,R.isNumber)(q.cy)&&($.cy+=q.cy);return}var J=w[Q.id],te=J.x-X||.005,fe=J.y-H||.005,de=Math.sqrt(te*te+fe*fe),Te=E[J.id],Se=g*d/de*W;y[Te].x-=te*Se,y[Te].y-=fe*Se,(0,R.isNumber)(J.x)&&($.cx+=J.x),(0,R.isNumber)(J.y)&&($.cy+=J.y)}),$.cx/=$.count||1,$.cy/=$.count||1,!0})})},L.prototype.applyCalculate=function(y){var x=this,v=x.comboMap,g=x.nodes,d={};g.forEach(function(E,w){g.forEach(function(T,k){if(!(wq&&(b.minX=q),b.minY>J&&(b.minY=J),b.maxX1&&T.forEach(function(k,b){if(k.itemType==="node")return!1;var m=x[k.id];!m||T.forEach(function($,W){if(b<=W||$.itemType==="node")return!1;var X=x[$.id];if(!X)return!1;var H=m.cx-X.cx||.005,Q=m.cy-X.cy||.005,q=H*H+Q*Q,J=m.r||1,te=X.r||1,fe=J+te,de=te*te,Te=J*J;if(qd)){var Ie=x["".concat(W.id,"-").concat(te.id)],be=Ie.vx,pe=Ie.vy,Me=Math.log(Math.abs(te.depth-W.depth)/10)+1||1;Me=Me<1?1:Me,te.comboId!==W.comboId&&(Me+=1);var De=Me?Math.pow(m,Me):1,Ue=_(te)*E/Te*De;if(y[X].x+=be*Ue,y[X].y+=pe*Ue,X0){var De=Math.abs(Q[0][v.sortBy]-Me[v.sortBy]);v.maxLevelDiff&&De>=v.maxLevelDiff&&(Q=[],H.push(Q))}Q.push(Me)});var q=b+(m||v.minNodeSpacing);if(!v.preventOverlap){var J=H.length>0&&H[0].length>1,te=Math.min(v.width,v.height)/2-q,fe=te/(H.length+(J?1:0));q=Math.min(q,fe)}var de=0;if(H.forEach(function(Me){var De=v.sweep;De===void 0&&(De=2*Math.PI-2*Math.PI/Me.length);var Ue=Me.dTheta=De/Math.max(1,Me.length-1);if(Me.length>1&&v.preventOverlap){var nt=Math.cos(Ue)-Math.cos(0),Ze=Math.sin(Ue)-Math.sin(0),ht=Math.sqrt(q*q/(nt*nt+Ze*Ze));de=Math.max(ht,de)}Me.r=de,de+=q}),v.equidistant){for(var Te=0,Se=0,Ie=0;IeWt.x&&(Rt=Wt.x),tr>Wt.y&&(tr=Wt.y)}),de.edges().forEach(function(ct){var Wt,Er=de.edge(ct);(Wt=Er.points)===null||Wt===void 0||Wt.forEach(function(Dr){Rt>Dr.x&&(Rt=Dr.x),tr>Dr.y&&(tr=Dr.y)})}),ht[0]=X[0]-Rt,ht[1]=X[1]-tr}var Qe=$==="LR"||$==="RL";if(H){var lt=this,St=lt.focusNode,Ct=lt.ranksep,_t=lt.getRadialPos,pt=(0,A.isString)(St)?St:St==null?void 0:St.id,rr=pt?(T=de.node(pt))===null||T===void 0?void 0:T._rank:0,xr=[],Vt=Qe?"y":"x",ft=Qe?"height":"width",Bt=Infinity,qt=-Infinity;de.nodes().forEach(function(ct){var Wt=de.node(ct);if(!!k.nodeMap[ct]){var Er=Me(k.nodeMap[ct]);if(rr===0)xr[Wt._rank]||(xr[Wt._rank]={nodes:[],totalWidth:0,maxSize:-Infinity}),xr[Wt._rank].nodes.push(ct),xr[Wt._rank].totalWidth+=Er*2+Wt[ft],xr[Wt._rank].maxSizeqt&&(qt=wn)}});var br=Ct||50,Ur={},Ae=(qt-Bt)/.9,Hr=[(Bt+qt-Ae)*.5,(Bt+qt+Ae)*.5],Sr=function(ct,Wt,Er,Dr){Er===void 0&&(Er=-Infinity),Dr===void 0&&(Dr=[0,1]);var Vr=Er;return ct.forEach(function(pn){var wn=de.node(pn);Ur[pn]=Wt;var Sn=_t(wn[Vt],Hr,Ae,Wt,Dr),In=Sn.x,$n=Sn.y;if(!!k.nodeMap[pn]){k.nodeMap[pn].x=In+ht[0],k.nodeMap[pn].y=$n+ht[1],k.nodeMap[pn]._order=wn._order;var Zr=pe(k.nodeMap[pn]);Vr=Vr})}:function(ct,Wt,Er){var Dr=Math.max(Wt.x,Er.x),Vr=Math.min(Wt.x,Er.x);return ct.filter(function(pn){return pn.x<=Dr&&pn.x>=Vr})};de.edges().forEach(function(ct){var Wt,Er=de.edge(ct),Dr=fe.findIndex(function(wn){var Sn=(0,A.getEdgeTerminal)(wn,"source"),In=(0,A.getEdgeTerminal)(wn,"target");return Sn===ct.v&&In===ct.w});if(!(Dr<=-1)&&k.edgeLabelSpace&&k.controlPoints&&fe[Dr].type!=="loop"){(Wt=Er==null?void 0:Er.points)===null||Wt===void 0||Wt.forEach(function(wn){wn.x+=ht[0],wn.y+=ht[1]});var Vr=k.nodeMap[ct.v],pn=k.nodeMap[ct.w];fe[Dr].controlPoints=x(Er==null?void 0:Er.points,Vr,pn,$r,Qe,gn,Rr)}})}return k.onLayoutEnd&&k.onLayoutEnd(),{nodes:b,edges:fe}}},g.prototype.getRadialPos=function(d,_,E,w,T){T===void 0&&(T=[0,1]);var k=(d-_[0])/E;k=k*(T[1]-T[0])+T[0];var b=k*2*Math.PI;return{x:Math.cos(b)*w,y:Math.sin(b)*w}},g.prototype.getType=function(){return"dagre"},g}(N.Base);U.DagreLayout=y;var x=function(v,g,d,_,E,w,T){var k=(v==null?void 0:v.slice(1,v.length-1))||[];if(g&&d){var b=g.x,m=g.y,$=d.x,W=d.y;if(E&&(b=g.y,m=g.x,$=d.y,W=d.x),W!==m&&b!==$){var X=_.indexOf(m),H=_[X+1];if(H){var Q=k[0],q=E?{x:(m+H)/2,y:(Q==null?void 0:Q.y)||$}:{x:(Q==null?void 0:Q.x)||$,y:(m+H)/2};(!Q||w(Q,q))&&k.unshift(q)}var J=_.indexOf(W),te=Math.abs(J-X);if(te===1)k=T(k,g,d),k.length||k.push(E?{x:(m+W)/2,y:b}:{x:b,y:(m+W)/2});else if(te>1){var fe=_[J-1];if(fe){var de=k[k.length-1],Te=E?{x:(W+fe)/2,y:(de==null?void 0:de.y)||$}:{x:(de==null?void 0:de.x)||b,y:(W+fe)/2};(!de||w(de,Te))&&k.push(Te)}}}}return k}},77620:function(or,U,z){"use strict";var B=this&&this.__extends||function(){var x=function(v,g){return x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,_){d.__proto__=_}||function(d,_){for(var E in _)Object.prototype.hasOwnProperty.call(_,E)&&(d[E]=_[E])},x(v,g)};return function(v,g){if(typeof g!="function"&&g!==null)throw new TypeError("Class extends value "+String(g)+" is not a constructor or null");x(v,g);function d(){this.constructor=v}v.prototype=g===null?Object.create(g):(d.prototype=g.prototype,new d)}}(),j=this&&this.__assign||function(){return j=Object.assign||function(x){for(var v,g=1,d=arguments.length;gb.x&&(T=b.x),k>b.y&&(k=b.y)}),d.forEach(function(b){b.points.forEach(function(m){T>m.x&&(T=m.x),k>m.y&&(k=m.y)})}),w[0]=E[0]-T,w[1]=E[1]-k}return w},v.prototype.updateNodePosition=function(g,d){var _=this,E=_.combos,w=_.nodes,T=_.edges,k=_.anchorPoint,b=_.graphSettings,m=this.getBegin(g,d);g.forEach(function($){var W,X=$.x,H=$.y,Q=$.id,q=$.type,J=$.coreBox;if(q===N.HierarchyNodeType.META&&Q!==N.ROOT_NAME){var te=E.findIndex(function(Ie){return Ie.id===Q}),fe=(W=b==null?void 0:b.subScene)===null||W===void 0?void 0:W.meta;E[te].offsetX=X+m[0],E[te].offsetY=H+m[1],E[te].fixSize=[J.width,J.height],E[te].fixCollapseSize=[J.width,J.height],$.expanded?E[te].padding=[fe==null?void 0:fe.paddingTop,fe==null?void 0:fe.paddingRight,fe==null?void 0:fe.paddingBottom,fe==null?void 0:fe.paddingLeft]:E[te].padding=[0,0,0,0]}else if(q===N.HierarchyNodeType.OP){var te=w.findIndex(function(be){return be.id===Q});if(w[te].x=X+m[0],w[te].y=H+m[1],k){var de=[],Te=d.filter(function(be){return be.v===Q}),Se=d.filter(function(be){return be.w===Q});Te.length>0&&Te.forEach(function(be){var pe=be.points[0],Me=(pe.x-X)/$.width+.5,De=(pe.y-H)/$.height+.5;de.push([Me,De]),be.baseEdgeList.forEach(function(Ue){var nt=T.find(function(Ze){return Ze.source===Ue.v&&Ze.target===Ue.w});nt&&(nt.sourceAnchor=de.length-1)})}),Se.length>0&&Se.forEach(function(be){var pe=be.points[be.points.length-1],Me=(pe.x-X)/$.width+.5,De=(pe.y-H)/$.height+.5;de.push([Me,De]),be.baseEdgeList.forEach(function(Ue){var nt=T.find(function(Ze){return Ze.source===Ue.v&&Ze.target===Ue.w});nt&&(nt.targetAnchor=de.length-1)})}),w[te].anchorPoints=de.length>0?de:w[te].anchorPoints||[]}}})},v.prototype.updateEdgePosition=function(g,d){var _=this,E=_.combos,w=_.edges,T=_.controlPoints,k=this.getBegin(g,d);T&&(E.forEach(function(b){b.inEdges=[],b.outEdges=[]}),w.forEach(function(b){var m,$,W,X,H=g.find(function(Ie){return Ie.id===b.source}),Q=g.find(function(Ie){return Ie.id===b.target}),q=[],J=[];if(H&&Q)J=(0,N.getEdges)(H==null?void 0:H.id,Q==null?void 0:Q.id,g);else if(!H||!Q){var te=_.getNodePath(b.source),fe=_.getNodePath(b.target),de=te.reverse().slice(H?0:1).find(function(Ie){return g.find(function(be){return be.id===Ie})}),Te=fe.reverse().slice(Q?0:1).find(function(Ie){return g.find(function(be){return be.id===Ie})});H=g.find(function(Ie){return Ie.id===de}),Q=g.find(function(Ie){return Ie.id===Te}),J=(0,N.getEdges)(H==null?void 0:H.id,Q==null?void 0:Q.id,g,{v:b.source,w:b.target})}if(q=J.reduce(function(Ie,be){return R(R([],Ie,!0),be.points.map(function(pe){return j(j({},pe),{x:pe.x+k[0],y:pe.y+k[1]})}),!0)},[]),q=q.slice(1,-1),b.controlPoints=q,(Q==null?void 0:Q.type)===N.NodeType.META){var Se=E.findIndex(function(Ie){return Ie.id===(Q==null?void 0:Q.id)});if(!E[Se]||((m=E[Se].inEdges)===null||m===void 0?void 0:m.some(function(Ie){return Ie.source===H.id&&Ie.target===Q.id})))return;($=E[Se].inEdges)===null||$===void 0||$.push({source:H.id,target:Q.id,controlPoints:q})}if((H==null?void 0:H.type)===N.NodeType.META){var Se=E.findIndex(function(be){return be.id===(H==null?void 0:H.id)});if(!E[Se]||((W=E[Se].outEdges)===null||W===void 0?void 0:W.some(function(be){return be.source===H.id&&be.target===Q.id})))return;(X=E[Se].outEdges)===null||X===void 0||X.push({source:H.id,target:Q.id,controlPoints:q})}}))},v.prototype.getType=function(){return"dagreCompound"},v.prototype.getDataByOrder=function(g){return g.every(function(d){return d.layoutOrder!==void 0})||g.forEach(function(d,_){d.layoutOrder=_}),g.sort(function(d,_){return d.layoutOrder-_.layoutOrder})},v}(A.Base);U.DagreCompoundLayout=y},67858:function(or,U,z){"use strict";var B=this&&this.__extends||function(){var A=function(N,L){return A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,x){y.__proto__=x}||function(y,x){for(var v in x)Object.prototype.hasOwnProperty.call(x,v)&&(y[v]=x[v])},A(N,L)};return function(N,L){if(typeof L!="function"&&L!==null)throw new TypeError("Class extends value "+String(L)+" is not a constructor or null");A(N,L);function y(){this.constructor=N}N.prototype=L===null?Object.create(L):(y.prototype=L.prototype,new y)}}();Object.defineProperty(U,"__esModule",{value:!0}),U.Graph=void 0;var j=z(69787),R=function(A){B(N,A);function N(){return A!==null&&A.apply(this,arguments)||this}return N}(j.Graph);U.Graph=R},53186:function(or,U,z){"use strict";var B=this&&this.__importDefault||function(A){return A&&A.__esModule?A:{default:A}};Object.defineProperty(U,"__esModule",{value:!0});var j=B(z(86282)),R=z(95869);U.default={layout:j.default,util:{time:R.time,notime:R.notime}}},65721:function(or,U,z){"use strict";var B=this&&this.__importDefault||function(L){return L&&L.__esModule?L:{default:L}};Object.defineProperty(U,"__esModule",{value:!0});var j=B(z(81628)),R=function(L){var y=function(v){return function(g){var d;return((d=v.edge(g))===null||d===void 0?void 0:d.weight)||1}},x=L.graph().acyclicer==="greedy"?(0,j.default)(L,y(L)):A(L);x==null||x.forEach(function(v){var g=L.edge(v);L.removeEdgeObj(v),g.forwardName=v.name,g.reversed=!0,L.setEdge(v.w,v.v,g,"rev-".concat(Math.random()))})},A=function(L){var y=[],x={},v={},g=function(d){var _;v[d]||(v[d]=!0,x[d]=!0,(_=L.outEdges(d))===null||_===void 0||_.forEach(function(E){x[E.w]?y.push(E):g(E.w)}),delete x[d])};return L.nodes().forEach(g),y},N=function(L){L.edges().forEach(function(y){var x=L.edge(y);if(x.reversed){L.removeEdgeObj(y);var v=x.forwardName;delete x.reversed,delete x.forwardName,L.setEdge(y.w,y.v,x,v)}})};U.default={run:R,undo:N}},88597:function(or,U,z){"use strict";Object.defineProperty(U,"__esModule",{value:!0});var B=z(95869),j=function(A){var N,L=function(y){var x=A.children(y),v=A.node(y);if((x==null?void 0:x.length)&&x.forEach(function(_){return L(_)}),v.hasOwnProperty("minRank")){v.borderLeft=[],v.borderRight=[];for(var g=v.minRank,d=v.maxRank+1;g0;--W)if($=w[W].dequeue(),$){k=k.concat(g(E,w,T,$,!0));break}}}return k},g=function(E,w,T,k,b){var m,$,W=[];return(m=E.inEdges(k.v))===null||m===void 0||m.forEach(function(X){var H=E.edge(X),Q=E.node(X.v);b&&W.push({v:X.v,w:X.w,in:0,out:0}),Q.out===void 0&&(Q.out=0),Q.out-=H,_(w,T,Q)}),($=E.outEdges(k.v))===null||$===void 0||$.forEach(function(X){var H=E.edge(X),Q=X.w,q=E.node(Q);q.in===void 0&&(q.in=0),q.in-=H,_(w,T,q)}),E.removeNode(k.v),b?W:void 0},d=function(E,w){var T=new L,k=0,b=0;E.nodes().forEach(function(H){T.setNode(H,{v:H,in:0,out:0})}),E.edges().forEach(function(H){var Q=T.edge(H)||0,q=(w==null?void 0:w(H))||1,J=Q+q;T.setEdge(H.v,H.w,J),b=Math.max(b,T.node(H.v).out+=q),k=Math.max(k,T.node(H.w).in+=q)});for(var m=[],$=b+k+3,W=0;W<$;W++)m.push(new N);var X=k+1;return T.nodes().forEach(function(H){_(m,X,T.node(H))}),{buckets:m,zeroIdx:X,graph:T}},_=function(E,w,T){T.out?T.in?E[T.out-T.in+w].enqueue(T):E[E.length-1].enqueue(T):E[0].enqueue(T)};U.default=x},86282:function(or,U,z){"use strict";var B=this&&this.__assign||function(){return B=Object.assign||function(Qe){for(var lt,St=1,Ct=arguments.length;St0;)T%2&&(k+=_[T+1]),T=T-1>>1,_[T]+=w.weight;E+=w.weight*k}}),E},R=function(A,N){for(var L=0,y=1;y<(N==null?void 0:N.length);y+=1)L+=j(A,N[y-1],N[y]);return L};U.default=R},15113:function(or,U,z){"use strict";var B=this&&this.__importDefault||function(w){return w&&w.__esModule?w:{default:w}};Object.defineProperty(U,"__esModule",{value:!0});var j=B(z(19722)),R=B(z(14842)),A=B(z(74798)),N=B(z(99388)),L=B(z(69563)),y=z(8273),x=z(67858),v=z(95869),g=function(w,T){for(var k=(0,v.maxRank)(w),b=[],m=[],$=1;$-1;$--)m.push($);var W=d(w,b,"inEdges"),X=d(w,m,"outEdges"),H=(0,j.default)(w);E(w,H);for(var Q=Number.POSITIVE_INFINITY,q,$=0,J=0;J<4;++$,++J){_($%2?W:X,$%4>=2,!1,T),H=(0,v.buildLayerMatrix)(w);var te=(0,R.default)(w,H);te=2,!0,T),H=(0,v.buildLayerMatrix)(w);var te=(0,R.default)(w,H);te=_.barycenter)&&j(_,E)}},x=function(_){return function(E){E.in.push(_),--E.indegree==0&&R.push(E)}},v=function(){var _=R.pop();L.push(_),(A=_.in.reverse())===null||A===void 0||A.forEach(function(E){return y(_)(E)}),(N=_.out)===null||N===void 0||N.forEach(function(E){return x(_)(E)})};R==null?void 0:R.length;)v();var g=L.filter(function(_){return!_.merged}),d=["vs","i","barycenter","weight"];return g.map(function(_){var E={};return d==null||d.forEach(function(w){_[w]!==void 0&&(E[w]=_[w])}),E})},j=function(R,A){var N,L=0,y=0;R.weight&&(L+=R.barycenter*R.weight,y+=R.weight),A.weight&&(L+=A.barycenter*A.weight,y+=A.weight),R.vs=(N=A.vs)===null||N===void 0?void 0:N.concat(R.vs),R.barycenter=L/y,R.weight=y,R.i=Math.min(A.i,R.i),A.merged=!0};U.default=z},69563:function(or,U,z){"use strict";var B=this&&this.__importDefault||function(x){return x&&x.__esModule?x:{default:x}};Object.defineProperty(U,"__esModule",{value:!0});var j=B(z(38937)),R=B(z(73792)),A=B(z(17457)),N=function(x,v,g,d,_,E){var w,T,k,b,m=x.children(v),$=x.node(v),W=$?$.borderLeft:void 0,X=$?$.borderRight:void 0,H={};W&&(m=m==null?void 0:m.filter(function(de){return de!==W&&de!==X}));var Q=(0,j.default)(x,m||[]);Q==null||Q.forEach(function(de){var Te;if((Te=x.children(de.v))===null||Te===void 0?void 0:Te.length){var Se=N(x,de.v,g,d,E);H[de.v]=Se,Se.hasOwnProperty("barycenter")&&y(de,Se)}});var q=(0,R.default)(Q,g);L(q,H),(w=q.filter(function(de){return de.vs.length>0}))===null||w===void 0||w.forEach(function(de){var Te=x.node(de.vs[0]);Te&&(de.fixorder=Te.fixorder,de.order=Te.order)});var J=(0,A.default)(q,d,_,E);if(W&&(J.vs=[W,J.vs,X].flat(),(T=x.predecessors(W))===null||T===void 0?void 0:T.length)){var te=x.node(((k=x.predecessors(W))===null||k===void 0?void 0:k[0])||""),fe=x.node(((b=x.predecessors(X))===null||b===void 0?void 0:b[0])||"");J.hasOwnProperty("barycenter")||(J.barycenter=0,J.weight=0),J.barycenter=(J.barycenter*J.weight+te.order+fe.order)/(J.weight+2),J.weight+=2}return J},L=function(x,v){x==null||x.forEach(function(g){var d,_=(d=g.vs)===null||d===void 0?void 0:d.map(function(E){return v[E]?v[E].vs:E});g.vs=_.flat()})},y=function(x,v){x.barycenter!==void 0?(x.barycenter=(x.barycenter*x.weight+v.barycenter*v.weight)/(x.weight+v.weight),x.weight+=v.weight):(x.barycenter=v.barycenter,x.weight=v.weight)};U.default=N},17457:function(or,U,z){"use strict";Object.defineProperty(U,"__esModule",{value:!0});var B=z(95869),j=function(N,L,y,x){var v=(0,B.partition)(N,function(b){var m=b.hasOwnProperty("fixorder")&&!isNaN(b.fixorder);return x?!m&&b.hasOwnProperty("barycenter"):m||b.hasOwnProperty("barycenter")}),g=v.lhs,d=v.rhs.sort(function(b,m){return-b.i- -m.i}),_=[],E=0,w=0,T=0;g==null||g.sort(A(!!L,!!y)),T=R(_,d,T),g==null||g.forEach(function(b){var m;T+=(m=b.vs)===null||m===void 0?void 0:m.length,_.push(b.vs),E+=b.barycenter*b.weight,w+=b.weight,T=R(_,d,T)});var k={vs:_.flat()};return w&&(k.barycenter=E/w,k.weight=w),k},R=function(N,L,y){for(var x=y,v;L.length&&(v=L[L.length-1]).i<=x;)L.pop(),N==null||N.push(v.vs),x++;return x},A=function(N,L){return function(y,x){if(y.fixorder!==void 0&&x.fixorder!==void 0)return y.fixorder-x.fixorder;if(y.barycenterx.barycenter)return 1;if(L&&y.order!==void 0&&x.order!==void 0){if(y.orderx.order)return 1}return N?x.i-y.i:y.i-x.i}};U.default=j},99946:function(or,U){"use strict";Object.defineProperty(U,"__esModule",{value:!0});var z=function(R){var A,N={},L=0,y=function(x){var v,g=L;(v=R.children(x))===null||v===void 0||v.forEach(y),N[x]={low:g,lim:L++}};return(A=R.children())===null||A===void 0||A.forEach(y),N},B=function(R,A,N,L){var y=[],x=[],v=Math.min(A[N].low,A[L].low),g=Math.max(A[N].lim,A[L].lim),d,_;d=N;do d=R.parent(d),y.push(d);while(d&&(A[d].low>v||g>A[d].lim));for(_=d,d=L;d&&d!==_;)x.push(d),d=R.parent(d);return{lca:_,path:y.concat(x.reverse())}},j=function(R){var A,N=z(R);(A=R.graph().dummyChains)===null||A===void 0||A.forEach(function(L){var y,x,v=L,g=R.node(v),d=g.edgeObj;if(!!d)for(var _=B(R,N,d.v,d.w),E=_.path,w=_.lca,T=0,k=E[T],b=!0;v!==d.w;){if(g=R.node(v),b){for(;k!==w&&((y=R.node(k))===null||y===void 0?void 0:y.maxRank)Se)&&(0,U.addConflict)(X,De,pe)}))}function Q(te){return JSON.stringify(te.slice(1))}function q(te,fe){var de=Q(te);fe.get(de)||(H.apply(void 0,te),fe.set(de,!0))}var J=function(te,fe){var de=-1,Te,Se=0,Ie=new Map;return fe==null||fe.forEach(function(be,pe){var Me;if(((Me=$.node(be))===null||Me===void 0?void 0:Me.dummy)==="border"){var De=$.predecessors(be)||[];De.length&&(Te=$.node(De[0]).order,q([fe,Se,pe,de,Te],Ie),Se=pe,de=Te)}q([fe,Se,fe.length,Te,te.length],Ie)}),fe};return(W==null?void 0:W.length)&&W.reduce(J),X};U.findType2Conflicts=L;var y=function($,W){var X,H;if((X=$.node(W))===null||X===void 0?void 0:X.dummy)return(H=$.predecessors(W))===null||H===void 0?void 0:H.find(function(Q){return $.node(Q).dummy})};U.findOtherInnerSegmentNode=y;var x=function($,W,X){var H=W,Q=X;if(H>Q){var q=H;H=Q,Q=q}var J=$[H];J||($[H]=J={}),J[Q]=!0};U.addConflict=x;var v=function($,W,X){var H=W,Q=X;if(H>Q){var q=W;H=Q,Q=q}return!!$[H]};U.hasConflict=v;var g=function($,W,X,H){var Q={},q={},J={};return W==null||W.forEach(function(te){te==null||te.forEach(function(fe,de){Q[fe]=fe,q[fe]=fe,J[fe]=de})}),W==null||W.forEach(function(te){var fe=-1;te==null||te.forEach(function(de){var Te=H(de);if(Te.length){Te=Te.sort(function(Me,De){return J[Me]-J[De]});for(var Se=(Te.length-1)/2,Ie=Math.floor(Se),be=Math.ceil(Se);Ie<=be;++Ie){var pe=Te[Ie];q[de]===de&&feJ.lim&&(te=J,fe=!0);var de=W.edges().filter(function(Te){return fe===m($,$.node(Te.v),te)&&fe!==m($,$.node(Te.w),te)});return(0,R.minBy)(de,function(Te){return(0,j.slack)(W,Te)})};U.enterEdge=w;var T=function($,W,X,H){var Q=X.v,q=X.w;$.removeEdge(Q,q),$.setEdge(H.v,H.w,{}),(0,U.initLowLimValues)($),(0,U.initCutValues)($,W),k($,W)};U.exchangeEdges=T;var k=function($,W){var X=$.nodes().find(function(Q){var q;return!((q=W.node(Q))===null||q===void 0?void 0:q.parent)}),H=N($,X);H=H==null?void 0:H.slice(1),H==null||H.forEach(function(Q){var q=$.node(Q).parent,J=W.edgeFromArgs(Q,q),te=!1;J||(J=W.edgeFromArgs(q,Q),te=!0),W.node(Q).rank=W.node(q).rank+(te?J.minlen:-J.minlen)})},b=function($,W,X){return $.hasEdge(W,X)},m=function($,W,X){return X.low<=W.lim&&W.lim<=X.lim};U.default=y},76783:function(or,U){"use strict";Object.defineProperty(U,"__esModule",{value:!0}),U.slack=U.longestPathWithLayer=U.longestPath=void 0;var z=function(R){var A,N={},L=function(y){var x,v=R.node(y);if(!v)return 0;if(N[y])return v.rank;N[y]=!0;var g;return(x=R.outEdges(y))===null||x===void 0||x.forEach(function(d){var _=L(d.w),E=R.edge(d).minlen,w=_-E;w&&(g===void 0||wMath.abs(q)*fe?(J<0&&(fe=-fe),de=fe*q/J,Te=fe):(q<0&&(te=-te),de=te,Te=te*J/q),{x:H+de,y:Q+Te}};U.intersectRect=g;var d=function(W){for(var X=[],H=(0,U.maxRank)(W)+1,Q=0;QX)&&(X=q)}),X||(X=0),X};U.maxRank=T;var k=function(W,X){var H={lhs:[],rhs:[]};return W==null||W.forEach(function(Q){X(Q)?H.lhs.push(Q):H.rhs.push(Q)}),H};U.partition=k;var b=function(W,X){var H=Date.now();try{return X()}finally{console.log("".concat(W," time: ").concat(Date.now()-H,"ms"))}};U.time=b;var m=function(W,X){return X()};U.notime=m;var $=function(W,X){return W.reduce(function(H,Q){var q=X(H),J=X(Q);return q>J?Q:H})};U.minBy=$},29279:function(or,U,z){"use strict";var B=this&&this.__assign||function(){return B=Object.assign||function(d){for(var _,E=1,w=arguments.length;E1){var fe=B({},J);delete fe.size,b.push(fe)}});var m=[];w.forEach(function(J){var te=b.find(function(de){return de.id===J.source}),fe=b.find(function(de){return de.id===J.target});te&&fe&&m.push(J)});var $=new v.DagreLayout({type:"dagre",ranksep:_.nodeMinGap,nodesep:_.nodeMinGap}),W=$.layout({nodes:b,edges:m}).nodes;E.forEach(function(J){var te=(W||[]).find(function(fe){return fe.id===J.id});J.x=(te==null?void 0:te.x)||T/2,J.y=(te==null?void 0:te.y)||k/2});var X=JSON.parse(JSON.stringify(E)),H=JSON.parse(JSON.stringify(w)),Q=L.forceSimulation().nodes(X).force("link",L.forceLink(H).id(function(J){return J.id}).distance(function(J){var te=m.find(function(fe){return fe.source===J.source&&fe.target===J.target});return te?30:20})).force("charge",L.forceManyBody()).force("center",L.forceCenter(T/2,k/2)).force("x",L.forceX(T/2)).force("y",L.forceY(k/2)).alpha(.3).alphaDecay(.08).alphaMin(.001),q=new Promise(function(J){Q.on("end",function(){E.forEach(function(be){var pe=X.find(function(Me){return Me.id===be.id});pe&&(be.x=pe.x,be.y=pe.y)});var te=Math.min.apply(Math,E.map(function(be){return be.x})),fe=Math.max.apply(Math,E.map(function(be){return be.x})),de=Math.min.apply(Math,E.map(function(be){return be.y})),Te=Math.max.apply(Math,E.map(function(be){return be.y})),Se=T/(fe-te),Ie=k/(Te-de);E.forEach(function(be){be.x!==void 0&&Se<1&&(be.x=(be.x-te)*Se),be.y!==void 0&&Ie<1&&(be.y=(be.y-de)*Ie)}),E.forEach(function(be){be.sizeTemp=be.size,be.size=[10,10]}),(0,x.default)(E,w),E.forEach(function(be){be.size=be.sizeTemp||[],delete be.sizeTemp}),(0,y.default)({nodes:E,edges:w},_),J()})});return q}U.default=g},28563:function(or,U,z){"use strict";var B=this&&this.__importDefault||function(A){return A&&A.__esModule?A:{default:A}};Object.defineProperty(U,"__esModule",{value:!0});var j=B(z(62120));function R(A,N){if(!A.nodes||A.nodes.length===0)return A;var L=N.width,y=N.height,x=N.nodeMinGap,v=1e4,g=1e4;A.nodes.forEach(function(H){var Q=H.size[0]||50,q=H.size[1]||50;v=Math.min(Q,v),g=Math.min(q,g)});var d=new j.default;d.init(L,y,{CELL_H:g,CELL_W:v}),A.nodes.forEach(function(H){var Q=d.occupyNearest(H);Q&&(Q.node={id:H.id,size:H.size},H.x=Q.x,H.y=Q.y,H.dx=Q.dx,H.dy=Q.dy)});for(var _=0;_v){for(var b=Math.ceil((E.size[0]+x)/v)-1,m=b,$=0;$-1;if(W&&!d.cells[T+$+1][k].node)m--;else break}d.insertColumn(T,m)}if(E.size[1]+x>g){for(var b=Math.ceil((E.size[1]+x)/g)-1,m=b,$=0;$-1;if(W&&!d.cells[T][k+$+1].node)m--;else break}d.insertRow(k,m)}}for(var _=0;_R;N--)for(var L=0;L=R&&(this.additionColumn[L]+=A);for(var N=0;NR;N--)this.cells[L][N+A]=z(z({},this.cells[L][N]),{dx:L,dy:N+A,x:L*this.CELL_W,y:(N+A)*this.CELL_H}),this.cells[L][N]={dx:L,dy:N,x:L*this.CELL_W,y:N*this.CELL_H,occupied:!1,node:null};for(var N=0;N=R&&(this.additionRow[N]+=A);for(var L=0;LN?(ht=J-Ie,Ze=de-te,Rt=parseFloat(ht?(ht/Math.cos(nt)).toFixed(2):Ze.toFixed(2)),tr=parseFloat(Ze?(Ze/Math.sin(nt)).toFixed(2):ht.toFixed(2))):0Ze?Rt=tr=parseFloat(ht?(ht/Math.cos(nt)).toFixed(2):Ze.toFixed(2)):Rt=tr=parseFloat(Ze?(Ze/Math.sin(nt)).toFixed(2):ht.toFixed(2))):nt<-N?(ht=J-Ie,Ze=-(Se-q),ht>Ze?Rt=tr=parseFloat(ht?(ht/Math.cos(nt)).toFixed(2):Ze.toFixed(2)):Rt=tr=parseFloat(Ze?(Ze/Math.sin(nt)).toFixed(2):ht.toFixed(2))):(ht=Te-fe,Math.abs(Ue)>(te-q)/2?Ze=q-Se:Ze=Ue,ht>Ze?Rt=tr=parseFloat(ht?(ht/Math.cos(nt)).toFixed(2):Ze.toFixed(2)):Rt=tr=parseFloat(Ze&&nt!==0?(Ze/Math.sin(nt)).toFixed(2):ht.toFixed(2)));var Qe=parseFloat(nt.toFixed(2)),lt=Q;return Q&&(lt=Lte?H:X,de=J>te?X:H,Te=fe.x-fe.size[0]/2,Se=fe.y-fe.size[1]/2,Ie=fe.x+fe.size[0]/2,be=fe.y+fe.size[1]/2,pe=de.x-de.size[0]/2,Me=de.y-de.size[1]/2,De=de.x+de.size[0]/2,Ue=de.y+de.size[1]/2,nt=fe.x,Ze=fe.y,ht=de.x,Rt=de.y,tr=Ie>=pe&&De>=Te&&be>=Me&&Ue>=Se,Qe=0,lt=0;if(tr){lt=Math.sqrt(Math.pow(ht-nt,2)+Math.pow(Rt-Ze,2));var St=Te>pe?Te:pe,Ct=Se>Me?Se:Me,_t=Iez||q.y>B)&&(H+=1e12);for(var J=Q+1;J150,Me=be<30||be>150,De=Ie>70&&Ie<110,Ue=be>70&&be<110;if(pe&&!Me||Ie*be<0){de=!1;break}else if(De&&!Ue||Ie*be<0){de=!1;break}else if((Se.x-X.x)*(Se.x-H.x)<0){de=!1;break}else if((Se.y-X.y)*(Se.y-H.y)<0){de=!1;break}}return de}function m(X,H){for(var Q=!1,q=1,J=v*q,te=g*q,fe=[J,-J,0,0],de=[0,0,te,-te],Te=0;Te_?(Ie=Me,Q=!0):(Se.x-=fe[be],Se.y-=de[be])}}return d>_&&(d*=E),Q?k(X):0}function $(X,H){var Q=0;(X.x<0||X.y<0||X.x+X.size[0]+20>z||X.y+X.size[1]+20>B)&&(Q+=1e12);for(var q=0;q0&&(de++,!(de>=fe));){var Te=m(X,H);Te!==0&&(te=Te),J=te-Q,Q=te,J===0?--q:q=20}return X.forEach(function(Se){Se.x=Se.x-Se.size[0]/2,Se.y=Se.y-Se.size[1]/2}),{nodes:X,edges:H}}U.default=W},26961:function(or,U,z){"use strict";Object.defineProperty(U,"__esModule",{value:!0}),U.forceNBody=void 0;var B=z(71829),j=.81,R=.1;function A(x,v,g,d,_){var E=g/d,w=x.map(function(k,b){var m=v[k.id],$=m.data,W=m.x,X=m.y,H=m.size,Q=$.layout.force.nodeStrength;return{x:W,y:X,size:H,index:b,vx:0,vy:0,weight:E*Q}}),T=(0,B.quadtree)(w,function(k){return k.x},function(k){return k.y}).visitAfter(N);return w.forEach(function(k){y(k,T)}),w.map(function(k,b){var m=v[x[b].id],$=m.data.layout.force.mass,W=$===void 0?1:$;_[2*b]=k.vx/W,_[2*b+1]=k.vy/W}),_}U.forceNBody=A;function N(x){var v=0,g=0,d=0;if(x.length){for(var _=0;_<4;_++){var E=x[_];E&&E.weight&&(v+=E.weight,g+=E.x*E.weight,d+=E.y*E.weight)}x.x=g/v,x.y=d/v,x.weight=v}else{var E=x;x.x=E.data.x,x.y=E.data.y,x.weight=E.data.weight}}var L=function(x,v,g,d,_,E){var w=E.x-x.x||R,T=E.y-x.y||R,k=d-v,b=w*w+T*T,m=Math.sqrt(b)*b;if(k*k*j1&&(be=(0,A.getAvgNodePosition)(Me))}else be=void 0;return{x:be==null?void 0:be.x,y:be==null?void 0:be.y}}}}if(_){$||($=this.getSameTypeLeafMap());var X=Array.from(new Set(w.map(function(fe,de){return fe[E]}))).filter(function(fe){return fe!==void 0}),H={};X.forEach(function(fe){var de=w.filter(function(Te){return Te[E]===fe}).map(function(Te){return T[Te.id]});H[fe]=(0,A.getAvgNodePosition)(de)}),m={single:function(fe){return b(fe)},leaf:function(fe){return b(fe)},others:function(fe){return b(fe)},center:function(fe,de,Te){var Se=H[fe[E]];return{x:Se==null?void 0:Se.x,y:Se==null?void 0:Se.y}}}}this.centripetalOptions=j(j({},this.centripetalOptions),m);var Q=this.centripetalOptions,q=Q.leaf,J=Q.single,te=Q.others;q&&typeof q!="function"&&(this.centripetalOptions.leaf=function(){return q}),J&&typeof J!="function"&&(this.centripetalOptions.single=function(){return J}),te&&typeof te!="function"&&(this.centripetalOptions.others=function(){return te})},v.prototype.updateCfg=function(g){g&&Object.assign(this,g)},v.prototype.getDefaultCfg=function(){return{maxIteration:500,gravity:10,enableTick:!0,animate:!0}},v.prototype.execute=function(){var g=this;g.stop();var d=g.nodes,_=g.edges,E=g.defSpringLen;if(g.judgingDistance=0,!d||d.length===0){g.onLayoutEnd([]);return}!g.width&&typeof window!="undefined"&&(g.width=window.innerWidth),!g.height&&typeof window!="undefined"&&(g.height=window.innerHeight),g.center||(g.center=[g.width/2,g.height/2]);var w=g.center;if(d.length===1){d[0].x=w[0],d[0].y=w[1],g.onLayoutEnd([j({},d[0])]);return}g.degreesMap=(0,A.getDegreeMap)(d,_),g.propsGetMass?g.getMass=g.propsGetMass:g.getMass=function(X){var H=1;(0,A.isNumber)(X.mass)&&(H=X.mass);var Q=g.degreesMap[X.id].all;return!Q||Q<5?H:Q*5*H};var T=g.nodeSize,k;if(g.preventOverlap){var b=g.nodeSpacing,m;(0,A.isNumber)(b)?m=function(){return b}:(0,A.isFunction)(b)?m=b:m=function(){return 0},T?(0,A.isArray)(T)?k=function(X){return Math.max(T[0],T[1])+m(X)}:k=function(X){return T+m(X)}:k=function(X){return X.size?(0,A.isArray)(X.size)?Math.max(X.size[0],X.size[1])+m(X):(0,A.isObject)(X.size)?Math.max(X.size.width,X.size.height)+m(X):X.size+m(X):10+m(X)}}g.nodeSize=k,g.linkDistance=L(g.linkDistance,1),g.nodeStrength=L(g.nodeStrength,1),g.edgeStrength=L(g.edgeStrength,1);var $={},W={};d.forEach(function(X,H){(0,A.isNumber)(X.x)||(X.x=Math.random()*g.width),(0,A.isNumber)(X.y)||(X.y=Math.random()*g.height);var Q=g.degreesMap[X.id];$[X.id]=j(j({},X),{data:j(j({},X.data),{size:g.nodeSize(X)||30,layout:{inDegree:Q.in,outDegree:Q.out,degree:Q.all,tDegree:Q.in,sDegree:Q.out,force:{mass:g.getMass(X),nodeStrength:g.nodeStrength(X)}}})}),W[X.id]=H}),g.nodeMap=$,g.nodeIdxMap=W,g.edgeInfos=[],_==null||_.forEach(function(X){var H=$[X.source],Q=$[X.target];!H||!Q?elf.edgeInfos.push({}):g.edgeInfos.push({edgeStrength:g.edgeStrength(X),linkDistance:E?E(j(j({},X),{source:H,target:Q}),H,Q):g.linkDistance(X,H,Q)||1+(T(H)+T(H)||0)/2})}),this.getCentripetalOptions(),g.onLayoutEnd=g.onLayoutEnd||function(){},g.run()},v.prototype.run=function(){var g=this,d=g.maxIteration,_=g.nodes,E=g.workerEnabled,w=g.minMovement,T=g.animate,k=g.nodeMap;if(!!_){var b=[];_.forEach(function(Q,q){b[2*q]=0,b[2*q+1]=0});var m=d,$=!T;if(E||$){for(var W=0,X=0;(g.judgingDistance>w||X<1)&&X=m||g.judgingDistancek){var H=k/X;$=H*$,W=H*W}d[2*m]=$,d[2*m+1]=W})},v.prototype.updatePosition=function(g,d){var _=this,E=_.nodes,w=_.distanceThresholdMode,T=_.nodeMap;if(!(E==null?void 0:E.length)){this.judgingDistance=0;return}var k=0;w==="max"?_.judgingDistance=-Infinity:w==="min"&&(_.judgingDistance=Infinity),E.forEach(function(b,m){var $=T[b.id];if((0,A.isNumber)(b.fx)&&(0,A.isNumber)(b.fy)){b.x=b.fx,b.y=b.fy,$.x=b.x,$.y=b.y;return}var W=g[2*m]*d,X=g[2*m+1]*d;b.x+=W,b.y+=X,$.x=b.x,$.y=b.y;var H=Math.sqrt(W*W+X*X);switch(w){case"max":_.judgingDistanceH&&(_.judgingDistance=H);break;default:k=k+H;break}}),(!w||w==="mean")&&(_.judgingDistance=k/E.length)},v.prototype.stop=function(){this.timeInterval&&typeof window!="undefined"&&window.clearInterval(this.timeInterval)},v.prototype.destroy=function(){var g=this;g.stop(),g.tick=null,g.nodes=null,g.edges=null,g.destroyed=!0},v.prototype.getType=function(){return"force2"},v.prototype.getSameTypeLeafMap=function(){var g=this,d=g.nodeClusterBy,_=g.nodes,E=g.edges,w=g.nodeMap,T=g.degreesMap;if(!!(_==null?void 0:_.length)){var k={};return _.forEach(function(b,m){var $=T[b.id].all;$===1&&(k[b.id]=(0,A.getCoreNodeAndRelativeLeafNodes)("leaf",b,E,d,T,w))}),k}},v}(R.Base);U.Force2Layout=y},20039:function(or,U){"use strict";Object.defineProperty(U,"__esModule",{value:!0});var z=function(){function B(j){this.id=j.id||0,this.rx=j.rx,this.ry=j.ry,this.fx=0,this.fy=0,this.mass=j.mass,this.degree=j.degree,this.g=j.g||0}return B.prototype.distanceTo=function(j){var R=this.rx-j.rx,A=this.ry-j.ry;return Math.hypot(R,A)},B.prototype.setPos=function(j,R){this.rx=j,this.ry=R},B.prototype.resetForce=function(){this.fx=0,this.fy=0},B.prototype.addForce=function(j){var R=j.rx-this.rx,A=j.ry-this.ry,N=Math.hypot(R,A);N=N<1e-4?1e-4:N;var L=this.g*(this.degree+1)*(j.degree+1)/N;this.fx+=L*R/N,this.fy+=L*A/N},B.prototype.in=function(j){return j.contains(this.rx,this.ry)},B.prototype.add=function(j){var R=this.mass+j.mass,A=(this.rx*this.mass+j.rx*j.mass)/R,N=(this.ry*this.mass+j.ry*j.mass)/R,L=this.degree+j.degree,y={rx:A,ry:N,mass:R,degree:L};return new B(y)},B}();U.default=z},16919:function(or,U,z){"use strict";var B=this&&this.__extends||function(){var v=function(g,d){return v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,E){_.__proto__=E}||function(_,E){for(var w in E)Object.prototype.hasOwnProperty.call(E,w)&&(_[w]=E[w])},v(g,d)};return function(g,d){if(typeof d!="function"&&d!==null)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");v(g,d);function _(){this.constructor=g}g.prototype=d===null?Object.create(d):(_.prototype=d.prototype,new _)}}(),j=this&&this.__importDefault||function(v){return v&&v.__esModule?v:{default:v}};Object.defineProperty(U,"__esModule",{value:!0}),U.ForceAtlas2Layout=void 0;var R=z(46253),A=z(8273),N=j(z(20039)),L=j(z(78150)),y=j(z(58979)),x=function(v){B(g,v);function g(d){var _=v.call(this)||this;return _.center=[0,0],_.width=300,_.height=300,_.nodes=[],_.edges=[],_.kr=5,_.kg=1,_.mode="normal",_.preventOverlap=!1,_.dissuadeHubs=!1,_.barnesHut=void 0,_.maxIteration=0,_.ks=.1,_.ksmax=10,_.tao=.1,_.onLayoutEnd=function(){},_.prune=void 0,_.updateCfg(d),_}return g.prototype.getDefaultCfg=function(){return{}},g.prototype.execute=function(){var d=this,_=d.nodes,E=d.onLayoutEnd,w=d.prune,T=d.maxIteration;!d.width&&typeof window!="undefined"&&(d.width=window.innerWidth),!d.height&&typeof window!="undefined"&&(d.height=window.innerHeight);for(var k=[],b=_.length,m=0;m250&&(d.barnesHut=!0),d.prune===void 0&&b>100&&(d.prune=!0),this.maxIteration===0&&!d.prune?(T=250,b<=200&&b>100?T=1e3:b>200&&(T=1200),this.maxIteration=T):this.maxIteration===0&&w&&(T=100,b<=200&&b>100?T=500:b>200&&(T=950),this.maxIteration=T),d.kr||(d.kr=50,b>100&&b<=500?d.kr=20:b>500&&(d.kr=1)),d.kg||(d.kg=20,b>100&&b<=500?d.kg=10:b>500&&(d.kg=1)),this.nodes=d.updateNodesByForces(k),E()},g.prototype.updateNodesByForces=function(d){for(var _=this,E=_.edges,w=_.maxIteration,T=_.nodes,k=E.filter(function(be){var pe=(0,A.getEdgeTerminal)(be,"source"),Me=(0,A.getEdgeTerminal)(be,"target");return pe!==Me}),b=T.length,m=k.length,$=[],W={},X={},H=[],Q=0;Q0;){for(var Se=0;Sete||!W)?fe=this.getOptRepGraForces(fe,Te,T):fe=this.getRepGraForces(J,te,fe,q,k,T);var be=this.updatePos(fe,de,Q,T);m=be.nodes,Q=be.sg,J--,b.tick&&b.tick()}return m},g.prototype.getAttrForces=function(d,_,E,w,T,k,b,m){for(var $=this,W=$.nodes,X=$.preventOverlap,H=$.dissuadeHubs,Q=$.mode,q=$.prune,J=0;J0&&(be=Ie,pe=Ie),m[2*w[te.id]]+=be*Se[0],m[2*w[de.id]]-=pe*Se[0],m[2*w[te.id]+1]+=be*Se[1],m[2*w[de.id]+1]-=pe*Se[1]}}return m},g.prototype.getRepGraForces=function(d,_,E,w,T,k){for(var b=this,m=b.nodes,$=b.preventOverlap,W=b.kr,X=b.kg,H=b.center,Q=b.prune,q=m.length,J=0;J0&&(Te=W*(k[J]+1)*(k[te]+1)/de),E[2*J]-=Te*fe[0],E[2*te]+=Te*fe[0],E[2*J+1]-=Te*fe[1],E[2*te+1]+=Te*fe[1]}var Se=[m[J].x-H[0],m[J].y-H[1]],Ie=Math.hypot(Se[0],Se[1]);Se[0]=Se[0]/Ie,Se[1]=Se[1]/Ie;var be=X*(k[J]+1);E[2*J]-=be*Se[0],E[2*J+1]-=be*Se[1]}return E},g.prototype.getOptRepGraForces=function(d,_,E){for(var w=this,T=w.nodes,k=w.kg,b=w.center,m=w.prune,$=T.length,W=9e10,X=-9e10,H=9e10,Q=-9e10,q=0;q<$;q+=1)m&&E[q]<=1||(_[q].setPos(T[q].x,T[q].y),T[q].x>=X&&(X=T[q].x),T[q].x<=W&&(W=T[q].x),T[q].y>=Q&&(Q=T[q].y),T[q].y<=H&&(H=T[q].y));for(var J=Math.max(X-W,Q-H),te={xmid:(X+W)/2,ymid:(Q+H)/2,length:J,massCenter:b,mass:$},fe=new L.default(te),de=new y.default(fe),q=0;q<$;q+=1)m&&E[q]<=1||_[q].in(fe)&&de.insert(_[q]);for(var q=0;q<$;q+=1)if(!(m&&E[q]<=1)){_[q].resetForce(),de.updateForce(_[q]),d[2*q]-=_[q].fx,d[2*q+1]-=_[q].fy;var Te=[T[q].x-b[0],T[q].y-b[1]],Se=Math.hypot(Te[0],Te[1]);Se=Se<1e-4?1e-4:Se,Te[0]=Te[0]/Se,Te[1]=Te[1]/Se;var Ie=k*(E[q]+1);d[2*q]-=Ie*Te[0],d[2*q+1]-=Ie*Te[1]}return d},g.prototype.updatePos=function(d,_,E,w){for(var T=this,k=T.nodes,b=T.ks,m=T.tao,$=T.prune,W=T.ksmax,X=k.length,H=[],Q=[],q=0,J=0,te=0;te1.5*Ie?1.5*Ie:E);for(var te=0;teMe?Me:be;var De=be*d[2*te],Ue=be*d[2*te+1];k[te].x+=De,k[te].y+=Ue}return{nodes:k,sg:E}},g}(R.Base);U.ForceAtlas2Layout=x},78150:function(or,U){"use strict";Object.defineProperty(U,"__esModule",{value:!0});var z=function(){function B(j){this.xmid=j.xmid,this.ymid=j.ymid,this.length=j.length,this.massCenter=j.massCenter||[0,0],this.mass=j.mass||1}return B.prototype.getLength=function(){return this.length},B.prototype.contains=function(j,R){var A=this.length/2;return j<=this.xmid+A&&j>=this.xmid-A&&R<=this.ymid+A&&R>=this.ymid-A},B.prototype.NW=function(){var j=this.xmid-this.length/4,R=this.ymid+this.length/4,A=this.length/2,N={xmid:j,ymid:R,length:A},L=new B(N);return L},B.prototype.NE=function(){var j=this.xmid+this.length/4,R=this.ymid+this.length/4,A=this.length/2,N={xmid:j,ymid:R,length:A},L=new B(N);return L},B.prototype.SW=function(){var j=this.xmid-this.length/4,R=this.ymid-this.length/4,A=this.length/2,N={xmid:j,ymid:R,length:A},L=new B(N);return L},B.prototype.SE=function(){var j=this.xmid+this.length/4,R=this.ymid-this.length/4,A=this.length/2,N={xmid:j,ymid:R,length:A},L=new B(N);return L},B}();U.default=z},58979:function(or,U){"use strict";Object.defineProperty(U,"__esModule",{value:!0});var z=function(){function B(j){this.body=null,this.quad=null,this.NW=null,this.NE=null,this.SW=null,this.SE=null,this.theta=.5,j!=null&&(this.quad=j)}return B.prototype.insert=function(j){if(this.body==null){this.body=j;return}this._isExternal()?(this.quad&&(this.NW=new B(this.quad.NW()),this.NE=new B(this.quad.NE()),this.SW=new B(this.quad.SW()),this.SE=new B(this.quad.SE())),this._putBody(this.body),this._putBody(j),this.body=this.body.add(j)):(this.body=this.body.add(j),this._putBody(j))},B.prototype._putBody=function(j){!this.quad||(j.in(this.quad.NW())&&this.NW?this.NW.insert(j):j.in(this.quad.NE())&&this.NE?this.NE.insert(j):j.in(this.quad.SW())&&this.SW?this.SW.insert(j):j.in(this.quad.SE())&&this.SE&&this.SE.insert(j))},B.prototype._isExternal=function(){return this.NW==null&&this.NE==null&&this.SW==null&&this.SE==null},B.prototype.updateForce=function(j){if(!(this.body==null||j===this.body))if(this._isExternal())j.addForce(this.body);else{var R=this.quad?this.quad.getLength():0,A=this.body.distanceTo(j);R/A-1||(W[H]=$[H])}),W}),b.ticking=!1},T.prototype.execute=function(k){var b=this,m=b.nodes,$=b.edges;if(!b.ticking){var W=b.forceSimulation,X=b.alphaMin,H=b.alphaDecay,Q=b.alpha;if(W){if(k){if(b.clustering&&b.clusterForce&&(b.clusterForce.nodes(m),b.clusterForce.links($)),W.nodes(m),$&&b.edgeForce)b.edgeForce.links($);else if($&&!b.edgeForce){var te=L.forceLink().id(function(Se){return Se.id}).links($);b.edgeStrength&&te.strength(b.edgeStrength),b.linkDistance&&te.distance(b.linkDistance),b.edgeForce=te,W.force("link",te)}}b.preventOverlap&&b.overlapProcess(W),W.alpha(Q).restart(),this.ticking=!0}else try{var q=L.forceManyBody();if(b.nodeStrength&&q.strength(b.nodeStrength),W=L.forceSimulation().nodes(m),b.clustering){var J=(0,y.default)();J.centerX(b.center[0]).centerY(b.center[1]).template("force").strength(b.clusterFociStrength),$&&J.links($),m&&J.nodes(m),J.forceLinkDistance(b.clusterEdgeDistance).forceLinkStrength(b.clusterEdgeStrength).forceCharge(b.clusterNodeStrength).forceNodeSize(b.clusterNodeSize),b.clusterForce=J,W.force("group",J)}if(W.force("center",L.forceCenter(b.center[0],b.center[1])).force("charge",q).alpha(Q).alphaDecay(H).alphaMin(X),b.preventOverlap&&b.overlapProcess(W),$){var te=L.forceLink().id(function(Te){return Te.id}).links($);b.edgeStrength&&te.strength(b.edgeStrength),b.linkDistance&&te.distance(b.linkDistance),b.edgeForce=te,W.force("link",te)}if(b.workerEnabled&&!E()&&(b.workerEnabled=!1,console.warn("workerEnabled option is only supported when running in web worker.")),!b.workerEnabled)W.on("tick",function(){b.tick()}).on("end",function(){b.ticking=!1,b.onLayoutEnd&&b.onLayoutEnd()}),b.ticking=!0;else{W.stop();for(var fe=_(W),de=1;de<=fe;de++)W.tick(),postMessage({nodes:m,currentTick:de,totalTicks:fe,type:g.LAYOUT_MESSAGE.TICK},void 0);b.ticking=!1}b.forceSimulation=W,b.ticking=!0}catch(Te){b.ticking=!1,console.warn(Te)}}},T.prototype.overlapProcess=function(k){var b=this,m=b.nodeSize,$=b.nodeSpacing,W,X,H=b.collideStrength;if((0,x.isNumber)($)?X=function(){return $}:(0,x.isFunction)($)?X=$:X=function(){return 0},!m)W=function(te){if(te.size){if((0,x.isArray)(te.size)){var fe=te.size[0]>te.size[1]?te.size[0]:te.size[1];return fe/2+X(te)}if((0,x.isObject)(te.size)){var fe=te.size.width>te.size.height?te.size.width:te.size.height;return fe/2+X(te)}return te.size/2+X(te)}return 10+X(te)};else if((0,x.isFunction)(m))W=function(te){var fe=m(te);return fe+X(te)};else if((0,x.isArray)(m)){var Q=m[0]>m[1]?m[0]:m[1],q=Q/2;W=function(te){return q+X(te)}}else if((0,x.isNumber)(m)){var J=m/2;W=function(te){return J+X(te)}}else W=function(){return 10};k.force("collisionForce",L.forceCollide(W).strength(H))},T.prototype.updateCfg=function(k){var b=this;b.ticking&&(b.forceSimulation.stop(),b.ticking=!1),b.forceSimulation=null,Object.assign(b,k)},T.prototype.destroy=function(){var k=this;k.ticking&&(k.forceSimulation.stop(),k.ticking=!1),k.nodes=null,k.edges=null,k.destroyed=!0},T}(v.Base);U.ForceLayout=d;function _(w){var T=w.alphaMin(),k=w.alphaTarget(),b=w.alpha(),m=Math.log((T-k)/(b-k))/Math.log(1-w.alphaDecay()),$=Math.ceil(m);return $}function E(){return typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope}},64180:function(or,U,z){"use strict";var B=this&&this.__createBinding||(Object.create?function(R,A,N,L){L===void 0&&(L=N);var y=Object.getOwnPropertyDescriptor(A,N);(!y||("get"in y?!A.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:function(){return A[N]}}),Object.defineProperty(R,L,y)}:function(R,A,N,L){L===void 0&&(L=N),R[L]=A[N]}),j=this&&this.__exportStar||function(R,A){for(var N in R)N!=="default"&&!Object.prototype.hasOwnProperty.call(A,N)&&B(A,R,N)};Object.defineProperty(U,"__esModule",{value:!0}),j(z(68553),U)},23826:function(or,U,z){"use strict";var B=this&&this.__extends||function(){var L=function(y,x){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,g){v.__proto__=g}||function(v,g){for(var d in g)Object.prototype.hasOwnProperty.call(g,d)&&(v[d]=g[d])},L(y,x)};return function(y,x){if(typeof x!="function"&&x!==null)throw new TypeError("Class extends value "+String(x)+" is not a constructor or null");L(y,x);function v(){this.constructor=y}y.prototype=x===null?Object.create(x):(v.prototype=x.prototype,new v)}}();Object.defineProperty(U,"__esModule",{value:!0}),U.FruchtermanLayout=void 0;var j=z(46253),R=z(8273),A=800,N=function(L){B(y,L);function y(x){var v=L.call(this)||this;return v.maxIteration=1e3,v.workerEnabled=!1,v.gravity=10,v.speed=5,v.clustering=!1,v.clusterGravity=10,v.nodes=[],v.edges=[],v.width=300,v.height=300,v.nodeMap={},v.nodeIdxMap={},v.onLayoutEnd=function(){},v.tick=function(){},v.animate=!0,v.updateCfg(x),v}return y.prototype.getDefaultCfg=function(){return{maxIteration:1e3,gravity:10,speed:1,clustering:!1,clusterGravity:10,animate:!0}},y.prototype.execute=function(){var x=this,v,g,d=this,_=d.nodes;if(d.timeInterval!==void 0&&typeof window!="undefined"&&window.clearInterval(d.timeInterval),!_||_.length===0){(v=d.onLayoutEnd)===null||v===void 0||v.call(d);return}!d.width&&typeof window!="undefined"&&(d.width=window.innerWidth),!d.height&&typeof window!="undefined"&&(d.height=window.innerHeight),d.center||(d.center=[d.width/2,d.height/2]);var E=d.center;if(_.length===1){_[0].x=E[0],_[0].y=E[1],(g=d.onLayoutEnd)===null||g===void 0||g.call(d);return}var w={},T={};return _.forEach(function(k,b){(0,R.isNumber)(k.x)||(k.x=Math.random()*x.width),(0,R.isNumber)(k.y)||(k.y=Math.random()*x.height),w[k.id]=k,T[k.id]=b}),d.nodeMap=w,d.nodeIdxMap=T,d.run()},y.prototype.run=function(){var x,v=this,g=v.nodes;if(!!g){var d=v.edges,_=v.maxIteration,E=v.workerEnabled,w=v.clustering,T=v.animate,k={};if(w&&g.forEach(function($){k[$.cluster]===void 0&&(k[$.cluster]={name:$.cluster,cx:0,cy:0,count:0})}),E||!T){for(var b=0;b<_;b++)v.runOneStep(k);(x=v.onLayoutEnd)===null||x===void 0||x.call(v)}else{if(typeof window=="undefined")return;var m=0;this.timeInterval=window.setInterval(function(){var $;v.runOneStep(k),m++,m>=_&&(($=v.onLayoutEnd)===null||$===void 0||$.call(v),window.clearInterval(v.timeInterval))},0)}return{nodes:g,edges:d}}},y.prototype.runOneStep=function(x){var v,g=this,d=g.nodes;if(!!d){var _=g.edges,E=g.center,w=g.gravity,T=g.speed,k=g.clustering,b=g.height*g.width,m=Math.sqrt(b)/10,$=b/(d.length+1),W=Math.sqrt($),X=[];if(d.forEach(function(q,J){X[J]={x:0,y:0}}),g.applyCalculate(d,_,X,W,$),k){for(var H in x)x[H].cx=0,x[H].cy=0,x[H].count=0;d.forEach(function(q){var J=x[q.cluster];(0,R.isNumber)(q.x)&&(J.cx+=q.x),(0,R.isNumber)(q.y)&&(J.cy+=q.y),J.count++});for(var H in x)x[H].cx/=x[H].count,x[H].cy/=x[H].count;var Q=g.clusterGravity||w;d.forEach(function(q,J){if(!(!(0,R.isNumber)(q.x)||!(0,R.isNumber)(q.y))){var te=x[q.cluster],fe=Math.sqrt((q.x-te.cx)*(q.x-te.cx)+(q.y-te.cy)*(q.y-te.cy)),de=W*Q;X[J].x-=de*(q.x-te.cx)/fe,X[J].y-=de*(q.y-te.cy)/fe}})}d.forEach(function(q,J){if(!(!(0,R.isNumber)(q.x)||!(0,R.isNumber)(q.y))){var te=.01*W*w;X[J].x-=te*(q.x-E[0]),X[J].y-=te*(q.y-E[1])}}),d.forEach(function(q,J){if((0,R.isNumber)(q.fx)&&(0,R.isNumber)(q.fy)){q.x=q.fx,q.y=q.fy;return}if(!(!(0,R.isNumber)(q.x)||!(0,R.isNumber)(q.y))){var te=Math.sqrt(X[J].x*X[J].x+X[J].y*X[J].y);if(te>0){var fe=Math.min(m*(T/A),te);q.x+=X[J].x/te*fe,q.y+=X[J].y/te*fe}}}),(v=g.tick)===null||v===void 0||v.call(g)}},y.prototype.applyCalculate=function(x,v,g,d,_){var E=this;E.calRepulsive(x,g,_),v&&E.calAttractive(v,g,d)},y.prototype.calRepulsive=function(x,v,g){x.forEach(function(d,_){v[_]={x:0,y:0},x.forEach(function(E,w){if(_!==w&&!(!(0,R.isNumber)(d.x)||!(0,R.isNumber)(E.x)||!(0,R.isNumber)(d.y)||!(0,R.isNumber)(E.y))){var T=d.x-E.x,k=d.y-E.y,b=T*T+k*k;if(b===0){b=1;var m=_>w?1:-1;T=.01*m,k=.01*m}var $=g/b;v[_].x+=T*$,v[_].y+=k*$}})})},y.prototype.calAttractive=function(x,v,g){var d=this;x.forEach(function(_){var E=(0,R.getEdgeTerminal)(_,"source"),w=(0,R.getEdgeTerminal)(_,"target");if(!(!E||!w)){var T=d.nodeIdxMap[E],k=d.nodeIdxMap[w];if(T!==k){var b=d.nodeMap[E],m=d.nodeMap[w];if(!(!(0,R.isNumber)(m.x)||!(0,R.isNumber)(b.x)||!(0,R.isNumber)(m.y)||!(0,R.isNumber)(b.y))){var $=m.x-b.x,W=m.y-b.y,X=Math.sqrt($*$+W*W),H=X*X/g;v[k].x-=$/X*H,v[k].y-=W/X*H,v[T].x+=$/X*H,v[T].y+=W/X*H}}}})},y.prototype.stop=function(){this.timeInterval&&typeof window!="undefined"&&window.clearInterval(this.timeInterval)},y.prototype.destroy=function(){var x=this;x.stop(),x.tick=null,x.nodes=null,x.edges=null,x.destroyed=!0},y.prototype.getType=function(){return"fruchterman"},y}(j.Base);U.FruchtermanLayout=N},46260:function(or,U,z){"use strict";var B=this&&this.__extends||function(){var L=function(y,x){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,g){v.__proto__=g}||function(v,g){for(var d in g)Object.prototype.hasOwnProperty.call(g,d)&&(v[d]=g[d])},L(y,x)};return function(y,x){if(typeof x!="function"&&x!==null)throw new TypeError("Class extends value "+String(x)+" is not a constructor or null");L(y,x);function v(){this.constructor=y}y.prototype=x===null?Object.create(x):(v.prototype=x.prototype,new v)}}();Object.defineProperty(U,"__esModule",{value:!0}),U.GForceLayout=void 0;var j=z(46253),R=z(8273),A=function(L,y){var x;return L?(0,R.isNumber)(L)?x=function(v){return L}:x=L:x=function(v){return y||1},x},N=function(L){B(y,L);function y(x){var v=L.call(this)||this;return v.maxIteration=500,v.workerEnabled=!1,v.edgeStrength=200,v.nodeStrength=1e3,v.coulombDisScale=.005,v.damping=.9,v.maxSpeed=1e3,v.minMovement=.5,v.interval=.02,v.factor=1,v.linkDistance=1,v.gravity=10,v.preventOverlap=!0,v.collideStrength=1,v.tick=function(){},v.nodes=[],v.edges=[],v.width=300,v.height=300,v.nodeMap={},v.nodeIdxMap={},v.animate=!0,v.updateCfg(x),v}return y.prototype.getDefaultCfg=function(){return{maxIteration:500,gravity:10,enableTick:!0,animate:!0}},y.prototype.execute=function(){var x,v,g=this,d=g.nodes;if(g.timeInterval!==void 0&&typeof window!="undefined"&&window.clearInterval(g.timeInterval),!d||d.length===0){(x=g.onLayoutEnd)===null||x===void 0||x.call(g);return}!g.width&&typeof window!="undefined"&&(g.width=window.innerWidth),!g.height&&typeof window!="undefined"&&(g.height=window.innerHeight),g.center||(g.center=[g.width/2,g.height/2]);var _=g.center;if(d.length===1){d[0].x=_[0],d[0].y=_[1],(v=g.onLayoutEnd)===null||v===void 0||v.call(g);return}var E={},w={};d.forEach(function(W,X){(0,R.isNumber)(W.x)||(W.x=Math.random()*g.width),(0,R.isNumber)(W.y)||(W.y=Math.random()*g.height),E[W.id]=W,w[W.id]=X}),g.nodeMap=E,g.nodeIdxMap=w,g.linkDistance=A(g.linkDistance,1),g.nodeStrength=A(g.nodeStrength,1),g.edgeStrength=A(g.edgeStrength,1);var T=g.nodeSize,k;if(g.preventOverlap){var b=g.nodeSpacing,m;(0,R.isNumber)(b)?m=function(){return b}:(0,R.isFunction)(b)?m=b:m=function(){return 0},T?(0,R.isArray)(T)?k=function(W){return Math.max(T[0],T[1])+m(W)}:k=function(W){return T+m(W)}:k=function(W){return W.size?(0,R.isArray)(W.size)?Math.max(W.size[0],W.size[1])+m(W):(0,R.isObject)(W.size)?Math.max(W.size.width,W.size.height)+m(W):W.size+m(W):10+m(W)}}g.nodeSize=k;var $=g.edges;g.degrees=(0,R.getDegree)(d.length,g.nodeIdxMap,$),g.getMass||(g.getMass=function(W){var X=W.mass||g.degrees[g.nodeIdxMap[W.id]].all||1;return X}),g.run()},y.prototype.run=function(){var x,v=this,g=v.maxIteration,d=v.nodes,_=v.workerEnabled,E=v.minMovement,w=v.animate;if(!!d)if(_||!w){for(var T=0;T=g&&(($=v.onLayoutEnd)===null||$===void 0||$.call(v),window.clearInterval(v.timeInterval))}},0)}},y.prototype.reachMoveThreshold=function(x,v,g){var d=0;return x.forEach(function(_,E){var w=_.x-v[E].x,T=_.y-v[E].y;d+=Math.sqrt(w*w+T*T)}),d/=x.length,d=Q)){var q=$.x-H.x,J=$.y-H.y;q===0&&J===0&&(q=Math.random()*.01,J=Math.random()*.01);var te=q*q+J*J,fe=Math.sqrt(te),de=(fe+.1)*E,Te=q/fe,Se=J/fe,Ie=(b($)+b(H))*.5*_/(de*de),be=d?d(H):1;if(x[2*W]+=Te*Ie,x[2*W+1]+=Se*Ie,x[2*Q]-=Te*Ie,x[2*Q+1]-=Se*Ie,w&&(m($)+m(H))/2>fe){var pe=k*(b($)+b(H))*.5/te;x[2*W]+=Te*pe/X,x[2*W+1]+=Se*pe/X,x[2*Q]-=Te*pe/be,x[2*Q+1]-=Se*pe/be}}})})},y.prototype.calAttractive=function(x,v){var g=this,d=g.nodeMap,_=g.nodeIdxMap,E=g.linkDistance,w=g.edgeStrength,T=g.nodeSize,k=g.getMass;v.forEach(function(b,m){var $=(0,R.getEdgeTerminal)(b,"source"),W=(0,R.getEdgeTerminal)(b,"target"),X=d[$],H=d[W],Q=H.x-X.x,q=H.y-X.y;Q===0&&q===0&&(Q=Math.random()*.01,q=Math.random()*.01);var J=Math.sqrt(Q*Q+q*q),te=Q/J,fe=q/J,de=E(b,X,H)||1+(T(X)+T(H)||0)/2,Te=de-J,Se=Te*w(b),Ie=_[$],be=_[W],pe=k?k(X):1,Me=k?k(H):1;x[2*Ie]-=te*Se/pe,x[2*Ie+1]-=fe*Se/pe,x[2*be]+=te*Se/Me,x[2*be+1]+=fe*Se/Me})},y.prototype.calGravity=function(x,v){for(var g=this,d=g.center,_=g.gravity,E=g.degrees,w=v.length,T=0;T_.maxSpeed){var $=_.maxSpeed/m;k=$*k,b=$*b}v[2*T]=k,v[2*T+1]=b})},y.prototype.updatePosition=function(x,v,g){g.forEach(function(d,_){if((0,R.isNumber)(d.fx)&&(0,R.isNumber)(d.fy)){d.x=d.fx,d.y=d.fy;return}var E=x[2*_]*v,w=x[2*_+1]*v;d.x+=E,d.y+=w})},y.prototype.stop=function(){this.timeInterval&&typeof window!="undefined"&&window.clearInterval(this.timeInterval)},y.prototype.destroy=function(){var x=this;x.stop(),x.tick=null,x.nodes=null,x.edges=null,x.destroyed=!0},y.prototype.getType=function(){return"gForce"},y}(j.Base);U.GForceLayout=N},81822:function(or,U,z){"use strict";var B=this&&this.__extends||function(){var d=function(_,E){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,T){w.__proto__=T}||function(w,T){for(var k in T)Object.prototype.hasOwnProperty.call(T,k)&&(w[k]=T[k])},d(_,E)};return function(_,E){if(typeof E!="function"&&E!==null)throw new TypeError("Class extends value "+String(E)+" is not a constructor or null");d(_,E);function w(){this.constructor=_}_.prototype=E===null?Object.create(E):(w.prototype=E.prototype,new w)}}(),j=this&&this.__awaiter||function(d,_,E,w){function T(k){return k instanceof E?k:new E(function(b){b(k)})}return new(E||(E=Promise))(function(k,b){function m(X){try{W(w.next(X))}catch(H){b(H)}}function $(X){try{W(w.throw(X))}catch(H){b(H)}}function W(X){X.done?k(X.value):T(X.value).then(m,$)}W((w=w.apply(d,_||[])).next())})},R=this&&this.__generator||function(d,_){var E={label:0,sent:function(){if(k[0]&1)throw k[1];return k[1]},trys:[],ops:[]},w,T,k,b;return b={next:m(0),throw:m(1),return:m(2)},typeof Symbol=="function"&&(b[Symbol.iterator]=function(){return this}),b;function m(W){return function(X){return $([W,X])}}function $(W){if(w)throw new TypeError("Generator is already executing.");for(;b&&(b=0,W[0]&&(E=0)),E;)try{if(w=1,T&&(k=W[0]&2?T.return:W[0]?T.throw||((k=T.return)&&k.call(T),0):T.next)&&!(k=k.call(T,W[1])).done)return k;switch(T=0,k&&(W=[W[0]&2,k.value]),W[0]){case 0:case 1:k=W;break;case 4:return E.label++,{value:W[1],done:!1};case 5:E.label++,T=W[1],W=[0];continue;case 7:W=E.ops.pop(),E.trys.pop();continue;default:if(k=E.trys,!(k=k.length>0&&k[k.length-1])&&(W[0]===6||W[0]===2)){E=0;continue}if(W[0]===3&&(!k||W[1]>k[0]&&W[1] 0.0) { + dx += param * xDist; + dy += param * yDist; + if (xDist == 0 && yDist == 0) { + const sign = i < j ? 1 : -1; + dx += param * sign; + dy += param * sign; + } + } + } + } + return [dx, dy]; + } + calcGravity(currentNode: vec4, nodeAttributes: vec4): vec2 { // + let dx = 0, dy = 0; + const vx = currentNode[0] - this.u_Center[0]; + const vy = currentNode[1] - this.u_Center[1]; + const gf = 0.01 * this.u_K * this.u_Gravity; + dx = gf * vx; + dy = gf * vy; + if (this.u_Clustering == 1) { + const clusterIdx = int(nodeAttributes[0]); + const center = this.u_ClusterCenters[clusterIdx]; + const cvx = currentNode[0] - center[0]; + const cvy = currentNode[1] - center[1]; + const dist = sqrt(cvx * cvx + cvy * cvy) + 0.01; + const parma = this.u_K * this.u_ClusterGravity / dist; + dx += parma * cvx; + dy += parma * cvy; + } + return [dx, dy]; + } + calcAttractive(i: int, currentNode: vec4): vec2 { + let dx = 0, dy = 0; + const arr_offset = int(floor(currentNode[2] + 0.5)); + const length = int(floor(currentNode[3] + 0.5)); + const node_buffer: vec4; + for (let p = 0; p < MAX_EDGE_PER_VERTEX; p++) { + if (p >= length) break; + const arr_idx = arr_offset + p; + // when arr_idx % 4 == 0 update currentNodedx_buffer + const buf_offset = arr_idx - arr_idx / 4 * 4; + if (p == 0 || buf_offset == 0) { + node_buffer = this.u_Data[int(arr_idx / 4)]; + } + const float_j = buf_offset == 0 ? node_buffer[0] : + buf_offset == 1 ? node_buffer[1] : + buf_offset == 2 ? node_buffer[2] : + node_buffer[3]; + const nextNode = this.u_Data[int(float_j)]; + const xDist = currentNode[0] - nextNode[0]; + const yDist = currentNode[1] - nextNode[1]; + const dist = sqrt(xDist * xDist + yDist * yDist) + 0.01; + let attractiveF = dist / this.u_K; + + if (dist > 0.0) { + dx -= xDist * attractiveF; + dy -= yDist * attractiveF; + if (xDist == 0 && yDist == 0) { + const sign = i < int(float_j) ? 1 : -1; + dx -= sign * attractiveF; + dy -= sign * attractiveF; + } + } + } + return [dx, dy]; + } + @main + compute() { + const i = globalInvocationID.x; + const currentNode = this.u_Data[i]; + let dx = 0, dy = 0; + if (i >= VERTEX_COUNT) { + this.u_Data[i] = currentNode; + return; + } + + // [gravity, fx, fy, 0] + const nodeAttributes = this.u_AttributeArray[i]; + + if (nodeAttributes[1] != 0 && nodeAttributes[2] != 0) { + // the node is fixed + this.u_Data[i] = [ + nodeAttributes[1], + nodeAttributes[2], + currentNode[2], + currentNode[3] + ]; + return; + } + + // repulsive + const repulsive = this.calcRepulsive(i, currentNode); + dx += repulsive[0]; + dy += repulsive[1]; + // attractive + const attractive = this.calcAttractive(i, currentNode); + dx += attractive[0]; + dy += attractive[1]; + // gravity + const gravity = this.calcGravity(currentNode, nodeAttributes); + dx -= gravity[0]; + dy -= gravity[1]; + // speed + dx *= this.u_Speed; + dy *= this.u_Speed; + + // move + const distLength = sqrt(dx * dx + dy * dy); + if (distLength > 0.0) { + const limitedDist = min(this.u_MaxDisplace * this.u_Speed, distLength); + this.u_Data[i] = [ + currentNode[0] + dx / distLength * limitedDist, + currentNode[1] + dy / distLength * limitedDist, + currentNode[2], + currentNode[3] + ]; + } + } +} +`,U.fruchtermanBundle='{"shaders":{"WGSL":"","GLSL450":"","GLSL100":"\\n\\nfloat epsilon = 0.00001;\\nvec2 addrTranslation_1Dto2D(float address1D, vec2 texSize) {\\n vec2 conv_const = vec2(1.0 / texSize.x, 1.0 / (texSize.x * texSize.y));\\n vec2 normAddr2D = float(address1D) * conv_const;\\n return vec2(fract(normAddr2D.x + epsilon), normAddr2D.y);\\n}\\n\\nvoid barrier() {}\\n \\n\\nuniform vec2 u_OutputTextureSize;\\nuniform int u_OutputTexelCount;\\nvarying vec2 v_TexCoord;\\n\\nbool gWebGPUDebug = false;\\nvec4 gWebGPUDebugOutput = vec4(0.0);\\n\\n#define MAX_EDGE_PER_VERTEX __DefineValuePlaceholder__MAX_EDGE_PER_VERTEX\\n#define VERTEX_COUNT __DefineValuePlaceholder__VERTEX_COUNT\\n\\nuniform sampler2D u_Data;\\nuniform vec2 u_DataSize;\\nvec4 getDatau_Data(vec2 address2D) {\\n return vec4(texture2D(u_Data, address2D).rgba);\\n}\\nvec4 getDatau_Data(float address1D) {\\n return getDatau_Data(addrTranslation_1Dto2D(address1D, u_DataSize));\\n}\\nvec4 getDatau_Data(int address1D) {\\n return getDatau_Data(float(address1D));\\n}\\nuniform float u_K;\\nuniform float u_K2;\\nuniform vec2 u_Center;\\nuniform float u_Gravity;\\nuniform float u_ClusterGravity;\\nuniform float u_Speed;\\nuniform float u_MaxDisplace;\\nuniform float u_Clustering;\\nuniform sampler2D u_AttributeArray;\\nuniform vec2 u_AttributeArraySize;\\nvec4 getDatau_AttributeArray(vec2 address2D) {\\n return vec4(texture2D(u_AttributeArray, address2D).rgba);\\n}\\nvec4 getDatau_AttributeArray(float address1D) {\\n return getDatau_AttributeArray(addrTranslation_1Dto2D(address1D, u_AttributeArraySize));\\n}\\nvec4 getDatau_AttributeArray(int address1D) {\\n return getDatau_AttributeArray(float(address1D));\\n}\\nuniform sampler2D u_ClusterCenters;\\nuniform vec2 u_ClusterCentersSize;\\nvec4 getDatau_ClusterCenters(vec2 address2D) {\\n return vec4(texture2D(u_ClusterCenters, address2D).rgba);\\n}\\nvec4 getDatau_ClusterCenters(float address1D) {\\n return getDatau_ClusterCenters(addrTranslation_1Dto2D(address1D, u_ClusterCentersSize));\\n}\\nvec4 getDatau_ClusterCenters(int address1D) {\\n return getDatau_ClusterCenters(float(address1D));\\n}\\nvec2 calcRepulsive(int i, vec4 currentNode) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat dx = 0.0;\\nfloat dy = 0.0;\\nfor (int j = 0; j < VERTEX_COUNT; j++) {if (i != j) {vec4 nextNode = getDatau_Data(j);\\nfloat xDist = currentNode.x - nextNode.x;\\nfloat yDist = currentNode.y - nextNode.y;\\nfloat dist = ((xDist * xDist) + (yDist * yDist)) + 0.01;\\nfloat param = u_K2 / dist;\\nif (dist > 0.0) {dx += param * xDist;\\ndy += param * yDist;\\nif ((xDist == 0.0) && (yDist == 0.0)) {float sign = (i < j) ? (1.0) : (-1.0);\\ndx += param * sign;\\ndy += param * sign;}}}}\\nreturn vec2(dx, dy);}\\nvec2 calcGravity(vec4 currentNode, vec4 nodeAttributes) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat dx = 0.0;\\nfloat dy = 0.0;\\nfloat vx = currentNode.x - u_Center.x;\\nfloat vy = currentNode.y - u_Center.y;\\nfloat gf = (0.01 * u_K) * u_Gravity;\\ndx = gf * vx;\\ndy = gf * vy;\\nif (u_Clustering == 1.0) {int clusterIdx = int(nodeAttributes.x);\\nvec4 center = getDatau_ClusterCenters(clusterIdx);\\nfloat cvx = currentNode.x - center.x;\\nfloat cvy = currentNode.y - center.y;\\nfloat dist = sqrt((cvx * cvx) + (cvy * cvy)) + 0.01;\\nfloat parma = (u_K * u_ClusterGravity) / dist;\\ndx += parma * cvx;\\ndy += parma * cvy;}\\nreturn vec2(dx, dy);}\\nvec2 calcAttractive(int i, vec4 currentNode) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat dx = 0.0;\\nfloat dy = 0.0;\\nint arr_offset = int(floor(currentNode.z + 0.5));\\nint length = int(floor(currentNode.w + 0.5));\\nvec4 node_buffer;\\nfor (int p = 0; p < MAX_EDGE_PER_VERTEX; p++) {if (p >= length) {break;}\\nint arr_idx = arr_offset + int(p);\\nint buf_offset = arr_idx - ((arr_idx / 4) * 4);\\nif ((p == 0) || (buf_offset == 0)) {node_buffer = getDatau_Data(int(arr_idx / 4));}\\nfloat float_j = (buf_offset == 0) ? (node_buffer.x) : ((buf_offset == 1) ? (node_buffer.y) : ((buf_offset == 2) ? (node_buffer.z) : (node_buffer.w)));\\nvec4 nextNode = getDatau_Data(int(float_j));\\nfloat xDist = currentNode.x - nextNode.x;\\nfloat yDist = currentNode.y - nextNode.y;\\nfloat dist = sqrt((xDist * xDist) + (yDist * yDist)) + 0.01;\\nfloat attractiveF = dist / u_K;\\nif (dist > 0.0) {dx -= xDist * attractiveF;\\ndy -= yDist * attractiveF;\\nif ((xDist == 0.0) && (yDist == 0.0)) {float sign = (i < int(float_j)) ? (1.0) : (-1.0);\\ndx -= sign * attractiveF;\\ndy -= sign * attractiveF;}}}\\nreturn vec2(dx, dy);}\\nvoid main() {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nint i = globalInvocationID.x;\\nvec4 currentNode = getDatau_Data(i);\\nfloat dx = 0.0;\\nfloat dy = 0.0;\\nif (i >= VERTEX_COUNT) {gl_FragColor = vec4(currentNode);\\nreturn ;}\\nvec4 nodeAttributes = getDatau_AttributeArray(i);\\nif ((nodeAttributes.y != 0.0) && (nodeAttributes.z != 0.0)) {gl_FragColor = vec4(vec4(nodeAttributes.y, nodeAttributes.z, currentNode.z, currentNode.w));\\nreturn ;}\\nvec2 repulsive = calcRepulsive(i, currentNode);\\ndx += repulsive.x;\\ndy += repulsive.y;\\nvec2 attractive = calcAttractive(i, currentNode);\\ndx += attractive.x;\\ndy += attractive.y;\\nvec2 gravity = calcGravity(currentNode, nodeAttributes);\\ndx -= gravity.x;\\ndy -= gravity.y;\\ndx *= u_Speed;\\ndy *= u_Speed;\\nfloat distLength = sqrt((dx * dx) + (dy * dy));\\nif (distLength > 0.0) {float limitedDist = min(u_MaxDisplace * u_Speed, distLength);\\ngl_FragColor = vec4(vec4(currentNode.x + ((dx / distLength) * limitedDist), currentNode.y + ((dy / distLength) * limitedDist), currentNode.z, currentNode.w));}if (gWebGPUDebug) {\\n gl_FragColor = gWebGPUDebugOutput;\\n}}\\n"},"context":{"name":"","dispatch":[1,1,1],"threadGroupSize":[1,1,1],"maxIteration":1,"defines":[{"name":"MAX_EDGE_PER_VERTEX","type":"Float","runtime":true},{"name":"VERTEX_COUNT","type":"Float","runtime":true}],"uniforms":[{"name":"u_Data","type":"vec4[]","storageClass":"StorageBuffer","readonly":false,"writeonly":false,"size":[1,1]},{"name":"u_K","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_K2","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_Center","type":"vec2","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_Gravity","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_ClusterGravity","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_Speed","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_MaxDisplace","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_Clustering","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_AttributeArray","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_ClusterCenters","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]}],"globalDeclarations":[],"output":{"name":"u_Data","size":[1,1],"length":1},"needPingpong":true}}',U.clusterCode=` +import { globalInvocationID } from 'g-webgpu'; +const VERTEX_COUNT; +const CLUSTER_COUNT; +@numthreads(1, 1, 1) +class CalcCenter { + @in + u_Data: vec4[]; + @in + u_NodeAttributes: vec4[]; // [[clusterIdx, 0, 0, 0], ...] + @in @out + u_ClusterCenters: vec4[]; // [[cx, cy, nodeCount, clusterIdx], ...] + @main + compute() { + const i = globalInvocationID.x; + const center = this.u_ClusterCenters[i]; + let sumx = 0; + let sumy = 0; + let count = 0; + for (let j = 0; j < VERTEX_COUNT; j++) { + const attributes = this.u_NodeAttributes[j]; + const clusterIdx = int(attributes[0]); + const vertex = this.u_Data[j]; + if (clusterIdx == i) { + sumx += vertex.x; + sumy += vertex.y; + count += 1; + } + } + this.u_ClusterCenters[i] = [ + sumx / count, + sumy / count, + count, + i + ]; + } +} +`,U.clusterBundle='{"shaders":{"WGSL":"","GLSL450":"","GLSL100":"\\n\\nfloat epsilon = 0.00001;\\nvec2 addrTranslation_1Dto2D(float address1D, vec2 texSize) {\\n vec2 conv_const = vec2(1.0 / texSize.x, 1.0 / (texSize.x * texSize.y));\\n vec2 normAddr2D = float(address1D) * conv_const;\\n return vec2(fract(normAddr2D.x + epsilon), normAddr2D.y);\\n}\\n\\nvoid barrier() {}\\n \\n\\nuniform vec2 u_OutputTextureSize;\\nuniform int u_OutputTexelCount;\\nvarying vec2 v_TexCoord;\\n\\nbool gWebGPUDebug = false;\\nvec4 gWebGPUDebugOutput = vec4(0.0);\\n\\n#define VERTEX_COUNT __DefineValuePlaceholder__VERTEX_COUNT\\n#define CLUSTER_COUNT __DefineValuePlaceholder__CLUSTER_COUNT\\n\\nuniform sampler2D u_Data;\\nuniform vec2 u_DataSize;\\nvec4 getDatau_Data(vec2 address2D) {\\n return vec4(texture2D(u_Data, address2D).rgba);\\n}\\nvec4 getDatau_Data(float address1D) {\\n return getDatau_Data(addrTranslation_1Dto2D(address1D, u_DataSize));\\n}\\nvec4 getDatau_Data(int address1D) {\\n return getDatau_Data(float(address1D));\\n}\\nuniform sampler2D u_NodeAttributes;\\nuniform vec2 u_NodeAttributesSize;\\nvec4 getDatau_NodeAttributes(vec2 address2D) {\\n return vec4(texture2D(u_NodeAttributes, address2D).rgba);\\n}\\nvec4 getDatau_NodeAttributes(float address1D) {\\n return getDatau_NodeAttributes(addrTranslation_1Dto2D(address1D, u_NodeAttributesSize));\\n}\\nvec4 getDatau_NodeAttributes(int address1D) {\\n return getDatau_NodeAttributes(float(address1D));\\n}\\nuniform sampler2D u_ClusterCenters;\\nuniform vec2 u_ClusterCentersSize;\\nvec4 getDatau_ClusterCenters(vec2 address2D) {\\n return vec4(texture2D(u_ClusterCenters, address2D).rgba);\\n}\\nvec4 getDatau_ClusterCenters(float address1D) {\\n return getDatau_ClusterCenters(addrTranslation_1Dto2D(address1D, u_ClusterCentersSize));\\n}\\nvec4 getDatau_ClusterCenters(int address1D) {\\n return getDatau_ClusterCenters(float(address1D));\\n}\\nvoid main() {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nint i = globalInvocationID.x;\\nvec4 center = getDatau_ClusterCenters(i);\\nfloat sumx = 0.0;\\nfloat sumy = 0.0;\\nfloat count = 0.0;\\nfor (int j = 0; j < VERTEX_COUNT; j++) {vec4 attributes = getDatau_NodeAttributes(j);\\nint clusterIdx = int(attributes.x);\\nvec4 vertex = getDatau_Data(j);\\nif (clusterIdx == i) {sumx += vertex.x;\\nsumy += vertex.y;\\ncount += 1.0;}}\\ngl_FragColor = vec4(vec4(sumx / count, sumy / count, count, i));if (gWebGPUDebug) {\\n gl_FragColor = gWebGPUDebugOutput;\\n}}\\n"},"context":{"name":"","dispatch":[1,1,1],"threadGroupSize":[1,1,1],"maxIteration":1,"defines":[{"name":"VERTEX_COUNT","type":"Float","runtime":true},{"name":"CLUSTER_COUNT","type":"Float","runtime":true}],"uniforms":[{"name":"u_Data","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_NodeAttributes","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_ClusterCenters","type":"vec4[]","storageClass":"StorageBuffer","readonly":false,"writeonly":false,"size":[1,1]}],"globalDeclarations":[],"output":{"name":"u_ClusterCenters","size":[1,1],"length":1},"needPingpong":true}}'},86043:function(or,U,z){"use strict";var B=this&&this.__extends||function(){var _=function(E,w){return _=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,k){T.__proto__=k}||function(T,k){for(var b in k)Object.prototype.hasOwnProperty.call(k,b)&&(T[b]=k[b])},_(E,w)};return function(E,w){if(typeof w!="function"&&w!==null)throw new TypeError("Class extends value "+String(w)+" is not a constructor or null");_(E,w);function T(){this.constructor=E}E.prototype=w===null?Object.create(w):(T.prototype=w.prototype,new T)}}(),j=this&&this.__awaiter||function(_,E,w,T){function k(b){return b instanceof w?b:new w(function(m){m(b)})}return new(w||(w=Promise))(function(b,m){function $(H){try{X(T.next(H))}catch(Q){m(Q)}}function W(H){try{X(T.throw(H))}catch(Q){m(Q)}}function X(H){H.done?b(H.value):k(H.value).then($,W)}X((T=T.apply(_,E||[])).next())})},R=this&&this.__generator||function(_,E){var w={label:0,sent:function(){if(b[0]&1)throw b[1];return b[1]},trys:[],ops:[]},T,k,b,m;return m={next:$(0),throw:$(1),return:$(2)},typeof Symbol=="function"&&(m[Symbol.iterator]=function(){return this}),m;function $(X){return function(H){return W([X,H])}}function W(X){if(T)throw new TypeError("Generator is already executing.");for(;m&&(m=0,X[0]&&(w=0)),w;)try{if(T=1,k&&(b=X[0]&2?k.return:X[0]?k.throw||((b=k.return)&&b.call(k),0):k.next)&&!(b=b.call(k,X[1])).done)return b;switch(k=0,b&&(X=[X[0]&2,b.value]),X[0]){case 0:case 1:b=X;break;case 4:return w.label++,{value:X[1],done:!1};case 5:w.label++,k=X[1],X=[0];continue;case 7:X=w.ops.pop(),w.trys.pop();continue;default:if(b=w.trys,!(b=b.length>0&&b[b.length-1])&&(X[0]===6||X[0]===2)){w=0;continue}if(X[0]===3&&(!b||X[1]>b[0]&&X[1]= length) break; + const arr_idx = arr_offset + 4 * p; // i \u8282\u70B9\u7684\u7B2C p \u6761\u8FB9\u5F00\u59CB\u7684\u5C0F\u683C\u5B50\u4F4D\u7F6E + const buf_offset = arr_idx - arr_idx / 4 * 4; + if (p == 0 || buf_offset == 0) { + node_buffer = this.u_Data[int(arr_idx / 4)]; // \u5927\u683C\u5B50\uFF0C\u5927\u683C\u5B50\u4F4D\u7F6E=\u5C0F\u4E2A\u5B50\u4F4D\u7F6E / 4\uFF0C + } + + let float_j: float = node_buffer[0]; + + const nextNode = this.u_Data[int(float_j)]; + const vx = nextNode[0] - currentNode[0]; + const vy = nextNode[1] - currentNode[1]; + const dist = sqrt(vx * vx + vy * vy) + 0.01; + const direx = vx / dist; + const direy = vy / dist; + const edgeLength = node_buffer[1]; + const edgeStrength = node_buffer[2]; + const diff: float = edgeLength - dist;//edgeLength + // const param = diff * this.u_stiffness / mass; // + const param = diff * edgeStrength / mass; // + ax -= direx * param; + ay -= direy * param; + } + return [ax, ay]; + } + + @main + compute() { + const i = globalInvocationID.x; + const currentNode = this.u_Data[i]; + const movement = u_AveMovement[0]; + let ax = 0, ay = 0; + + if (i >= VERTEX_COUNT || movement.x < u_minMovement) { + this.u_Data[i] = currentNode; + return; + } + + // \u6BCF\u4E2A\u8282\u70B9\u5C5E\u6027\u5360\u4E24\u4E2A\u6570\u7EC4\u4E2D\u5404\u4E00\u683C + // [mass, degree, nodeStrength, fx] + const nodeAttributes1 = this.u_NodeAttributeArray1[i]; + // [centerX, centerY, centerGravity, fy] + const nodeAttributes2 = this.u_NodeAttributeArray2[i]; + + // repulsive + const repulsive = this.calcRepulsive(i, currentNode); + ax += repulsive[0]; + ay += repulsive[1]; + + // attractive + const attractive = this.calcAttractive(i, currentNode, nodeAttributes1); + ax += attractive[0]; + ay += attractive[1]; + + // gravity + const gravity = this.calcGravity(i, currentNode, nodeAttributes2); + ax -= gravity[0]; + ay -= gravity[1]; + + // speed + const param = this.u_interval * this.u_damping; + let vx = ax * param; + let vy = ay * param; + const vlength = sqrt(vx * vx + vy * vy) + 0.0001; + if (vlength > this.u_maxSpeed) { + const param2 = this.u_maxSpeed / vlength; + vx = param2 * vx; + vy = param2 * vy; + } + + // move + if (nodeAttributes1[3] != 0 && nodeAttributes2[3] != 0) { + this.u_Data[i] = [ + nodeAttributes1[3], + nodeAttributes2[3], + currentNode[2], + 0 + ]; + } else { + const distx = vx * this.u_interval; + const disty = vy * this.u_interval; + const distLength = sqrt(distx * distx + disty * disty); + this.u_Data[i] = [ + currentNode[0] + distx, + currentNode[1] + disty, + currentNode[2], + distLength + ]; + } + + // the avarage move distance + // need to share memory + + } +} +`,U.gForceBundle='{"shaders":{"WGSL":"","GLSL450":"","GLSL100":"\\n\\nfloat epsilon = 0.00001;\\nvec2 addrTranslation_1Dto2D(float address1D, vec2 texSize) {\\n vec2 conv_const = vec2(1.0 / texSize.x, 1.0 / (texSize.x * texSize.y));\\n vec2 normAddr2D = float(address1D) * conv_const;\\n return vec2(fract(normAddr2D.x + epsilon), normAddr2D.y);\\n}\\n\\nvoid barrier() {}\\n \\n\\nuniform vec2 u_OutputTextureSize;\\nuniform int u_OutputTexelCount;\\nvarying vec2 v_TexCoord;\\n\\nbool gWebGPUDebug = false;\\nvec4 gWebGPUDebugOutput = vec4(0.0);\\n\\n#define MAX_EDGE_PER_VERTEX __DefineValuePlaceholder__MAX_EDGE_PER_VERTEX\\n#define VERTEX_COUNT __DefineValuePlaceholder__VERTEX_COUNT\\n#define SHIFT_20 1048576.0\\n\\nuniform sampler2D u_Data;\\nuniform vec2 u_DataSize;\\nvec4 getDatau_Data(vec2 address2D) {\\n return vec4(texture2D(u_Data, address2D).rgba);\\n}\\nvec4 getDatau_Data(float address1D) {\\n return getDatau_Data(addrTranslation_1Dto2D(address1D, u_DataSize));\\n}\\nvec4 getDatau_Data(int address1D) {\\n return getDatau_Data(float(address1D));\\n}\\nuniform float u_damping;\\nuniform float u_maxSpeed;\\nuniform float u_minMovement;\\nuniform sampler2D u_AveMovement;\\nuniform vec2 u_AveMovementSize;\\nvec4 getDatau_AveMovement(vec2 address2D) {\\n return vec4(texture2D(u_AveMovement, address2D).rgba);\\n}\\nvec4 getDatau_AveMovement(float address1D) {\\n return getDatau_AveMovement(addrTranslation_1Dto2D(address1D, u_AveMovementSize));\\n}\\nvec4 getDatau_AveMovement(int address1D) {\\n return getDatau_AveMovement(float(address1D));\\n}\\nuniform float u_coulombDisScale;\\nuniform float u_factor;\\nuniform sampler2D u_NodeAttributeArray1;\\nuniform vec2 u_NodeAttributeArray1Size;\\nvec4 getDatau_NodeAttributeArray1(vec2 address2D) {\\n return vec4(texture2D(u_NodeAttributeArray1, address2D).rgba);\\n}\\nvec4 getDatau_NodeAttributeArray1(float address1D) {\\n return getDatau_NodeAttributeArray1(addrTranslation_1Dto2D(address1D, u_NodeAttributeArray1Size));\\n}\\nvec4 getDatau_NodeAttributeArray1(int address1D) {\\n return getDatau_NodeAttributeArray1(float(address1D));\\n}\\nuniform sampler2D u_NodeAttributeArray2;\\nuniform vec2 u_NodeAttributeArray2Size;\\nvec4 getDatau_NodeAttributeArray2(vec2 address2D) {\\n return vec4(texture2D(u_NodeAttributeArray2, address2D).rgba);\\n}\\nvec4 getDatau_NodeAttributeArray2(float address1D) {\\n return getDatau_NodeAttributeArray2(addrTranslation_1Dto2D(address1D, u_NodeAttributeArray2Size));\\n}\\nvec4 getDatau_NodeAttributeArray2(int address1D) {\\n return getDatau_NodeAttributeArray2(float(address1D));\\n}\\nuniform float u_interval;\\nivec2 unpack_float(float packedValue) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nint packedIntValue = int(packedValue);\\nint v0 = packedIntValue / int(SHIFT_20);\\nreturn ivec2(v0, packedIntValue - (v0 * int(SHIFT_20)));}\\nvec2 calcRepulsive(int i, vec4 currentNode) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat ax = 0.0;\\nfloat ay = 0.0;\\nfor (int j = 0; j < VERTEX_COUNT; j++) {if (i != j) {vec4 nextNode = getDatau_Data(j);\\nfloat vx = currentNode.x - nextNode.x;\\nfloat vy = currentNode.y - nextNode.y;\\nfloat dist = sqrt((vx * vx) + (vy * vy)) + 0.01;\\nfloat n_dist = (dist + 0.1) * u_coulombDisScale;\\nfloat direx = vx / dist;\\nfloat direy = vy / dist;\\nvec4 attributesi = getDatau_NodeAttributeArray1(i);\\nvec4 attributesj = getDatau_NodeAttributeArray1(j);\\nfloat massi = attributesi.x;\\nfloat nodeStrengthi = attributesi.z;\\nfloat nodeStrengthj = attributesj.z;\\nfloat nodeStrength = (nodeStrengthi + nodeStrengthj) / 2.0;\\nfloat param = (nodeStrength * u_factor) / (n_dist * n_dist);\\nax += direx * param;\\nay += direy * param;}}\\nreturn vec2(ax, ay);}\\nvec2 calcGravity(int i, vec4 currentNode, vec4 attributes2) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat vx = currentNode.x - attributes2.x;\\nfloat vy = currentNode.y - attributes2.y;\\nfloat ax = vx * attributes2.z;\\nfloat ay = vy * attributes2.z;\\nreturn vec2(ax, ay);}\\nvec2 calcAttractive(int i, vec4 currentNode, vec4 attributes1) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat mass = attributes1.x;\\nfloat ax = 0.0;\\nfloat ay = 0.0;\\nivec2 compressed = unpack_float(currentNode.z);\\nint length = compressed.x;\\nint arr_offset = compressed.y;\\nvec4 node_buffer;\\nfor (int p = 0; p < MAX_EDGE_PER_VERTEX; p++) {if (p >= length) {break;}\\nint arr_idx = arr_offset + (4 * p);\\nint buf_offset = arr_idx - ((arr_idx / 4) * 4);\\nif ((p == 0) || (buf_offset == 0)) {node_buffer = getDatau_Data(int(arr_idx / 4));}\\nfloat float_j = node_buffer.x;\\nvec4 nextNode = getDatau_Data(int(float_j));\\nfloat vx = nextNode.x - currentNode.x;\\nfloat vy = nextNode.y - currentNode.y;\\nfloat dist = sqrt((vx * vx) + (vy * vy)) + 0.01;\\nfloat direx = vx / dist;\\nfloat direy = vy / dist;\\nfloat edgeLength = node_buffer.y;\\nfloat edgeStrength = node_buffer.z;\\nfloat diff = edgeLength - dist;\\nfloat param = (diff * edgeStrength) / mass;\\nax -= direx * param;\\nay -= direy * param;}\\nreturn vec2(ax, ay);}\\nvoid main() {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nint i = globalInvocationID.x;\\nvec4 currentNode = getDatau_Data(i);\\nvec4 movement = getDatau_AveMovement(0.0);\\nfloat ax = 0.0;\\nfloat ay = 0.0;\\nif ((i >= VERTEX_COUNT) || (movement.x < u_minMovement)) {gl_FragColor = vec4(currentNode);\\nreturn ;}\\nvec4 nodeAttributes1 = getDatau_NodeAttributeArray1(i);\\nvec4 nodeAttributes2 = getDatau_NodeAttributeArray2(i);\\nvec2 repulsive = calcRepulsive(i, currentNode);\\nax += repulsive.x;\\nay += repulsive.y;\\nvec2 attractive = calcAttractive(i, currentNode, nodeAttributes1);\\nax += attractive.x;\\nay += attractive.y;\\nvec2 gravity = calcGravity(i, currentNode, nodeAttributes2);\\nax -= gravity.x;\\nay -= gravity.y;\\nfloat param = u_interval * u_damping;\\nfloat vx = ax * param;\\nfloat vy = ay * param;\\nfloat vlength = sqrt((vx * vx) + (vy * vy)) + 0.0001;\\nif (vlength > u_maxSpeed) {float param2 = u_maxSpeed / vlength;\\nvx = param2 * vx;\\nvy = param2 * vy;}\\nif ((nodeAttributes1.w != 0.0) && (nodeAttributes2.w != 0.0)) {gl_FragColor = vec4(vec4(nodeAttributes1.w, nodeAttributes2.w, currentNode.z, 0.0));}else {float distx = vx * u_interval;\\nfloat disty = vy * u_interval;\\nfloat distLength = sqrt((distx * distx) + (disty * disty));\\ngl_FragColor = vec4(vec4(currentNode.x + distx, currentNode.y + disty, currentNode.z, distLength));}if (gWebGPUDebug) {\\n gl_FragColor = gWebGPUDebugOutput;\\n}}\\n"},"context":{"name":"","dispatch":[1,1,1],"threadGroupSize":[1,1,1],"maxIteration":1,"defines":[{"name":"MAX_EDGE_PER_VERTEX","type":"Float","runtime":true},{"name":"VERTEX_COUNT","type":"Float","runtime":true},{"name":"SHIFT_20","type":"Float","value":1048576,"runtime":false}],"uniforms":[{"name":"u_Data","type":"vec4[]","storageClass":"StorageBuffer","readonly":false,"writeonly":false,"size":[1,1]},{"name":"u_damping","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_maxSpeed","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_minMovement","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_AveMovement","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_coulombDisScale","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_factor","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_NodeAttributeArray1","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_NodeAttributeArray2","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_interval","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]}],"globalDeclarations":[],"output":{"name":"u_Data","size":[1,1],"length":1},"needPingpong":true}}',U.aveMovementCode=` +const VERTEX_COUNT; +@numthreads(1, 1, 1) +class CalcAveMovement { + @in + u_Data: vec4[]; + @in + u_iter: float; + @in @out + u_AveMovement: vec4[]; + @main + compute() { + let movement = 0; + for (let j: int = 0; j < VERTEX_COUNT; j++) { + const vertex = this.u_Data[j]; + movement += vertex[3]; + } + movement = movement / float(VERTEX_COUNT); + this.u_AveMovement[0] = [movement, 0, 0, 0]; + } +} +`,U.aveMovementBundle='{"shaders":{"WGSL":"","GLSL450":"","GLSL100":"\\n\\nfloat epsilon = 0.00001;\\nvec2 addrTranslation_1Dto2D(float address1D, vec2 texSize) {\\n vec2 conv_const = vec2(1.0 / texSize.x, 1.0 / (texSize.x * texSize.y));\\n vec2 normAddr2D = float(address1D) * conv_const;\\n return vec2(fract(normAddr2D.x + epsilon), normAddr2D.y);\\n}\\n\\nvoid barrier() {}\\n \\n\\nuniform vec2 u_OutputTextureSize;\\nuniform int u_OutputTexelCount;\\nvarying vec2 v_TexCoord;\\n\\nbool gWebGPUDebug = false;\\nvec4 gWebGPUDebugOutput = vec4(0.0);\\n\\n#define VERTEX_COUNT __DefineValuePlaceholder__VERTEX_COUNT\\n\\nuniform sampler2D u_Data;\\nuniform vec2 u_DataSize;\\nvec4 getDatau_Data(vec2 address2D) {\\n return vec4(texture2D(u_Data, address2D).rgba);\\n}\\nvec4 getDatau_Data(float address1D) {\\n return getDatau_Data(addrTranslation_1Dto2D(address1D, u_DataSize));\\n}\\nvec4 getDatau_Data(int address1D) {\\n return getDatau_Data(float(address1D));\\n}\\nuniform float u_iter;\\nuniform sampler2D u_AveMovement;\\nuniform vec2 u_AveMovementSize;\\nvec4 getDatau_AveMovement(vec2 address2D) {\\n return vec4(texture2D(u_AveMovement, address2D).rgba);\\n}\\nvec4 getDatau_AveMovement(float address1D) {\\n return getDatau_AveMovement(addrTranslation_1Dto2D(address1D, u_AveMovementSize));\\n}\\nvec4 getDatau_AveMovement(int address1D) {\\n return getDatau_AveMovement(float(address1D));\\n}\\nvoid main() {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat movement = 0.0;\\nfor (int j = 0; j < VERTEX_COUNT; j++) {vec4 vertex = getDatau_Data(j);\\nmovement += vertex.w;}\\nmovement = movement / float(VERTEX_COUNT);\\ngl_FragColor = vec4(vec4(movement, 0.0, 0.0, 0.0));if (gWebGPUDebug) {\\n gl_FragColor = gWebGPUDebugOutput;\\n}}\\n"},"context":{"name":"","dispatch":[1,1,1],"threadGroupSize":[1,1,1],"maxIteration":1,"defines":[{"name":"VERTEX_COUNT","type":"Float","runtime":true}],"uniforms":[{"name":"u_Data","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_iter","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_AveMovement","type":"vec4[]","storageClass":"StorageBuffer","readonly":false,"writeonly":false,"size":[1,1]}],"globalDeclarations":[],"output":{"name":"u_AveMovement","size":[1,1],"length":1},"needPingpong":true}}'},74294:function(or,U,z){"use strict";var B=this&&this.__extends||function(){var N=function(L,y){return N=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,v){x.__proto__=v}||function(x,v){for(var g in v)Object.prototype.hasOwnProperty.call(v,g)&&(x[g]=v[g])},N(L,y)};return function(L,y){if(typeof y!="function"&&y!==null)throw new TypeError("Class extends value "+String(y)+" is not a constructor or null");N(L,y);function x(){this.constructor=L}L.prototype=y===null?Object.create(y):(x.prototype=y.prototype,new x)}}();Object.defineProperty(U,"__esModule",{value:!0}),U.GridLayout=void 0;var j=z(8273),R=z(46253),A=function(N){B(L,N);function L(y){var x=N.call(this)||this;return x.begin=[0,0],x.preventOverlap=!0,x.preventOverlapPadding=10,x.condense=!1,x.sortBy="degree",x.nodes=[],x.edges=[],x.width=300,x.height=300,x.row=0,x.col=0,x.cellWidth=0,x.cellHeight=0,x.cellUsed={},x.id2manPos={},x.onLayoutEnd=function(){},x.updateCfg(y),x}return L.prototype.getDefaultCfg=function(){return{begin:[0,0],preventOverlap:!0,preventOverlapPadding:10,condense:!1,rows:void 0,cols:void 0,position:void 0,sortBy:"degree",nodeSize:30}},L.prototype.execute=function(){var y=this,x=y.nodes,v=y.edges,g=y.begin,d=x.length;if(d===0)return y.onLayoutEnd&&y.onLayoutEnd(),{nodes:x,edges:v};if(d===1)return x[0].x=g[0],x[0].y=g[1],y.onLayoutEnd&&y.onLayoutEnd(),{nodes:x,edges:v};var _=y.sortBy,E=y.width,w=y.height,T=y.condense,k=y.preventOverlapPadding,b=y.preventOverlap,m=y.nodeSpacing,$=y.nodeSize,W=[];x.forEach(function(pe){W.push(pe)});var X={};if(W.forEach(function(pe,Me){X[pe.id]=Me}),(_==="degree"||!(0,j.isString)(_)||W[0][_]===void 0)&&(_="degree",(0,j.isNaN)(x[0].degree))){var H=(0,j.getDegree)(W.length,X,v);W.forEach(function(pe,Me){pe.degree=H[Me].all})}W.sort(function(pe,Me){return Me[_]-pe[_]}),!E&&typeof window!="undefined"&&(E=window.innerWidth),!w&&typeof window!="undefined"&&(w=window.innerHeight);var Q=y.rows,q=y.cols!=null?y.cols:y.columns;if(y.cells=d,Q!=null&&q!=null?(y.rows=Q,y.cols=q):Q!=null&&q==null?(y.rows=Q,y.cols=Math.ceil(y.cells/y.rows)):Q==null&&q!=null?(y.cols=q,y.rows=Math.ceil(y.cells/y.cols)):(y.splits=Math.sqrt(y.cells*y.height/y.width),y.rows=Math.round(y.splits),y.cols=Math.round(y.width/y.height*y.splits)),y.rows=Math.max(y.rows,1),y.cols=Math.max(y.cols,1),y.cols*y.rows>y.cells){var J=y.small(),te=y.large();(J-1)*te>=y.cells?y.small(J-1):(te-1)*J>=y.cells&&y.large(te-1)}else for(;y.cols*y.rows=y.cells?y.large(te+1):y.small(J+1)}if(y.cellWidth=E/y.cols,y.cellHeight=w/y.rows,T&&(y.cellWidth=0,y.cellHeight=0),b||m){var fe=(0,j.getFuncByUnknownType)(10,m),de=(0,j.getFuncByUnknownType)(30,$,!1);W.forEach(function(pe){(!pe.x||!pe.y)&&(pe.x=0,pe.y=0);var Me=de(pe)||30,De,Ue;(0,j.isArray)(Me)?(De=Me[0],Ue=Me[1]):(De=Me,Ue=Me);var nt=fe!==void 0?fe(pe):k,Ze=De+nt,ht=Ue+nt;y.cellWidth=Math.max(y.cellWidth,Ze),y.cellHeight=Math.max(y.cellHeight,ht)})}y.cellUsed={},y.row=0,y.col=0,y.id2manPos={};for(var Te=0;Te=x&&(y.col=0,y.row++)},L.prototype.getPos=function(y){var x=this,v=x.begin,g=x.cellWidth,d=x.cellHeight,_,E,w=x.id2manPos[y.id];if(w)_=w.col*g+g/2+v[0],E=w.row*d+d/2+v[1];else{for(;x.used(x.row,x.col);)x.moveToNextCell();_=x.col*g+g/2+v[0],E=x.row*d+d/2+v[1],x.use(x.row,x.col),x.moveToNextCell()}y.x=_,y.y=E},L.prototype.getType=function(){return"grid"},L}(R.Base);U.GridLayout=A},64649:function(or,U,z){"use strict";var B=this&&this.__createBinding||(Object.create?function(H,Q,q,J){J===void 0&&(J=q);var te=Object.getOwnPropertyDescriptor(Q,q);(!te||("get"in te?!Q.__esModule:te.writable||te.configurable))&&(te={enumerable:!0,get:function(){return Q[q]}}),Object.defineProperty(H,J,te)}:function(H,Q,q,J){J===void 0&&(J=q),H[J]=Q[q]}),j=this&&this.__exportStar||function(H,Q){for(var q in H)q!=="default"&&!Object.prototype.hasOwnProperty.call(Q,q)&&B(Q,H,q)};Object.defineProperty(U,"__esModule",{value:!0}),U.ERLayout=U.ForceAtlas2Layout=U.ComboCombinedLayout=U.ComboForceLayout=U.GForceGPULayout=U.FruchtermanGPULayout=U.FruchtermanLayout=U.MDSLayout=U.ConcentricLayout=U.RadialLayout=U.DagreCompoundLayout=U.DagreLayout=U.CircularLayout=U.ForceLayout=U.Force2Layout=U.GForceLayout=U.RandomLayout=U.GridLayout=U.Layouts=U.Layout=void 0;var R=z(74294);Object.defineProperty(U,"GridLayout",{enumerable:!0,get:function(){return R.GridLayout}});var A=z(26729);Object.defineProperty(U,"RandomLayout",{enumerable:!0,get:function(){return A.RandomLayout}});var N=z(46260);Object.defineProperty(U,"GForceLayout",{enumerable:!0,get:function(){return N.GForceLayout}});var L=z(38129);Object.defineProperty(U,"Force2Layout",{enumerable:!0,get:function(){return L.Force2Layout}});var y=z(64180);Object.defineProperty(U,"ForceLayout",{enumerable:!0,get:function(){return y.ForceLayout}});var x=z(93959);Object.defineProperty(U,"CircularLayout",{enumerable:!0,get:function(){return x.CircularLayout}});var v=z(2);Object.defineProperty(U,"DagreLayout",{enumerable:!0,get:function(){return v.DagreLayout}});var g=z(77620);Object.defineProperty(U,"DagreCompoundLayout",{enumerable:!0,get:function(){return g.DagreCompoundLayout}});var d=z(90106);Object.defineProperty(U,"RadialLayout",{enumerable:!0,get:function(){return d.RadialLayout}});var _=z(98162);Object.defineProperty(U,"ConcentricLayout",{enumerable:!0,get:function(){return _.ConcentricLayout}});var E=z(98204);Object.defineProperty(U,"MDSLayout",{enumerable:!0,get:function(){return E.MDSLayout}});var w=z(23826);Object.defineProperty(U,"FruchtermanLayout",{enumerable:!0,get:function(){return w.FruchtermanLayout}});var T=z(81822);Object.defineProperty(U,"FruchtermanGPULayout",{enumerable:!0,get:function(){return T.FruchtermanGPULayout}});var k=z(86043);Object.defineProperty(U,"GForceGPULayout",{enumerable:!0,get:function(){return k.GForceGPULayout}});var b=z(48133);Object.defineProperty(U,"ComboForceLayout",{enumerable:!0,get:function(){return b.ComboForceLayout}});var m=z(6412);Object.defineProperty(U,"ComboCombinedLayout",{enumerable:!0,get:function(){return m.ComboCombinedLayout}});var $=z(16919);Object.defineProperty(U,"ForceAtlas2Layout",{enumerable:!0,get:function(){return $.ForceAtlas2Layout}});var W=z(40311);Object.defineProperty(U,"ERLayout",{enumerable:!0,get:function(){return W.ERLayout}});var X=z(99745);Object.defineProperty(U,"Layout",{enumerable:!0,get:function(){return X.Layout}}),Object.defineProperty(U,"Layouts",{enumerable:!0,get:function(){return X.Layouts}}),j(z(2230),U)},99745:function(or,U,z){"use strict";Object.defineProperty(U,"__esModule",{value:!0}),U.Layouts=U.Layout=void 0;var B=z(39464),j=z(74294),R=z(26729),A=z(38129),N=z(46260),L=z(64180),y=z(93959),x=z(2),v=z(90106),g=z(98162),d=z(98204),_=z(23826),E=z(81822),w=z(86043),T=z(48133),k=z(6412),b=z(16919),m=z(40311),$=z(77620),W=z(8273),X=function(){function H(Q){var q=(0,B.getLayoutByName)(Q.type);this.layoutInstance=new q(Q)}return H.prototype.layout=function(Q){return this.layoutInstance.layout(Q)},H.prototype.updateCfg=function(Q){this.layoutInstance.updateCfg(Q)},H.prototype.init=function(Q){this.correctLayers(Q.nodes),this.layoutInstance.init(Q)},H.prototype.correctLayers=function(Q){if(!!(Q==null?void 0:Q.length)){var q=Infinity,J=[];if(Q.forEach(function(fe){(0,W.isString)(fe.layer)&&(fe.layer=parseInt(fe.layer,10)),!(fe.layer===void 0||isNaN(fe.layer))&&(J.push(fe),fe.layerk[0]?k[0]:te-k[0],Te=fe-k[1]>k[1]?k[1]:fe-k[1];de===0&&(de=te/2),Te===0&&(Te=fe/2);var Se=Te>de?de:Te,Ie=Math.max.apply(Math,J),be=[];J.forEach(function(Ct,_t){E.unitRadius||(E.unitRadius=Se/Ie),be[_t]=Ct*E.unitRadius}),E.radii=be;var pe=E.eIdealDisMatrix();E.eIdealDistances=pe;var Me=y(pe);E.weights=Me;var De=new N.default({linkDistance:b,distances:pe}),Ue=De.layout();Ue.forEach(function(Ct){(0,R.isNaN)(Ct[0])&&(Ct[0]=Math.random()*b),(0,R.isNaN)(Ct[1])&&(Ct[1]=Math.random()*b)}),E.positions=Ue,Ue.forEach(function(Ct,_t){w[_t].x=Ct[0]+k[0],w[_t].y=Ct[1]+k[1]}),Ue.forEach(function(Ct){Ct[0]-=Ue[X][0],Ct[1]-=Ue[X][1]}),E.run();var nt=E.preventOverlap,Ze=E.nodeSize,ht,Rt=E.strictRadial;if(nt){var tr=E.nodeSpacing,Qe;(0,R.isNumber)(tr)?Qe=function(){return tr}:(0,R.isFunction)(tr)?Qe=tr:Qe=function(){return 0},Ze?(0,R.isArray)(Ze)?ht=function(Ct){var _t=Ze[0]>Ze[1]?Ze[0]:Ze[1];return _t+Qe(Ct)}:ht=function(Ct){return Ze+Qe(Ct)}:ht=function(Ct){if(Ct.size){if((0,R.isArray)(Ct.size)){var _t=Ct.size[0]>Ct.size[1]?Ct.size[0]:Ct.size[1];return _t+Qe(Ct)}if((0,R.isObject)(Ct.size)){var _t=Ct.size.width>Ct.size.height?Ct.size.width:Ct.size.height;return _t+Qe(Ct)}return Ct.size+Qe(Ct)}return 10+Qe(Ct)};var lt={nodes:w,nodeSizeFunc:ht,adjMatrix:H,positions:Ue,radii:be,height:fe,width:te,strictRadial:Rt,focusID:X,iterations:E.maxPreventOverlapIteration||200,k:Ue.length/4.5},St=new L.default(lt);Ue=St.layout()}return Ue.forEach(function(Ct,_t){w[_t].x=Ct[0]+k[0],w[_t].y=Ct[1]+k[1]}),E.onLayoutEnd&&E.onLayoutEnd(),{nodes:w,edges:T}},_.prototype.run=function(){for(var E=this,w=E.maxIteration,T=E.positions||[],k=E.weights||[],b=E.eIdealDistances||[],m=E.radii||[],$=0;$<=w;$++){var W=$/w;E.oneIteration(W,T,m,b,k)}},_.prototype.oneIteration=function(E,w,T,k,b){var m=this,$=1-E,W=m.focusIndex;w.forEach(function(X,H){var Q=v(X,[0,0]),q=Q===0?0:1/Q;if(H!==W){var J=0,te=0,fe=0;w.forEach(function(Te,Se){if(H!==Se){var Ie=v(X,Te),be=Ie===0?0:1/Ie,pe=k[Se][H];fe+=b[H][Se],J+=b[H][Se]*(Te[0]+pe*(X[0]-Te[0])*be),te+=b[H][Se]*(Te[1]+pe*(X[1]-Te[1])*be)}});var de=T[H]===0?0:1/T[H];fe*=$,fe+=E*de*de,J*=$,J+=E*de*X[0]*q,X[0]=J/fe,te*=$,te+=E*de*X[1]*q,X[1]=te/fe}})},_.prototype.eIdealDisMatrix=function(){var E=this,w=E.nodes;if(!w)return[];var T=E.distances,k=E.linkDistance,b=E.radii||[],m=E.unitRadius||50,$=[];return T&&T.forEach(function(W,X){var H=[];W.forEach(function(Q,q){if(X===q)H.push(0);else if(b[X]===b[q])if(E.sortBy==="data")H.push(Q*(Math.abs(X-q)*E.sortStrength)/(b[X]/m));else if(E.sortBy){var J=w[X][E.sortBy]||0,te=w[q][E.sortBy]||0;(0,R.isString)(J)&&(J=J.charCodeAt(0)),(0,R.isString)(te)&&(te=te.charCodeAt(0)),H.push(Q*(Math.abs(J-te)*E.sortStrength)/(b[X]/m))}else H.push(Q*k/(b[X]/m));else{var fe=(k+m)/2;H.push(Q*fe)}}),$.push(H)}),$},_.prototype.handleInfinity=function(E,w,T){for(var k=E.length,b=0;bT?E[w][k]:T);return T},_.prototype.getType=function(){return"radial"},_}(A.Base);U.RadialLayout=g},78614:function(or,U){"use strict";Object.defineProperty(U,"__esModule",{value:!0});var z=800,B=function(){function j(R){this.disp=[],this.positions=R.positions,this.adjMatrix=R.adjMatrix,this.focusID=R.focusID,this.radii=R.radii,this.iterations=R.iterations||10,this.height=R.height||10,this.width=R.width||10,this.speed=R.speed||100,this.gravity=R.gravity||10,this.nodeSizeFunc=R.nodeSizeFunc,this.k=R.k||5,this.strictRadial=R.strictRadial,this.nodes=R.nodes}return j.prototype.layout=function(){var R=this,A=R.positions,N=[],L=R.iterations,y=R.width/10;R.maxDisplace=y,R.disp=N;for(var x=0;x_?1:-1;E=.01*k,w=.01*k}if(TMath.PI/2&&($-=Math.PI/2,k*=-1,b*=-1);var W=Math.cos($)*m;d.x=k*W,d.y=b*W});var g=R.radii;A.forEach(function(d,_){if(_!==x){var E=Math.sqrt(N[_].x*N[_].x+N[_].y*N[_].y);if(E>0&&_!==x){var w=Math.min(v*(L/z),E);if(d[0]+=N[_].x/E*w,d[1]+=N[_].y/E*w,y){var T=d[0]-A[x][0],k=d[1]-A[x][1],b=Math.sqrt(T*T+k*k);T=T/b*g[_],k=k/b*g[_],d[0]=A[x][0]+T,d[1]=A[x][1]+k}}}})},j}();U.default=B},26729:function(or,U,z){"use strict";var B=this&&this.__extends||function(){var A=function(N,L){return A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,x){y.__proto__=x}||function(y,x){for(var v in x)Object.prototype.hasOwnProperty.call(x,v)&&(y[v]=x[v])},A(N,L)};return function(N,L){if(typeof L!="function"&&L!==null)throw new TypeError("Class extends value "+String(L)+" is not a constructor or null");A(N,L);function y(){this.constructor=N}N.prototype=L===null?Object.create(L):(y.prototype=L.prototype,new y)}}();Object.defineProperty(U,"__esModule",{value:!0}),U.RandomLayout=void 0;var j=z(46253),R=function(A){B(N,A);function N(L){var y=A.call(this)||this;return y.center=[0,0],y.width=300,y.height=300,y.nodes=[],y.edges=[],y.onLayoutEnd=function(){},y.updateCfg(L),y}return N.prototype.getDefaultCfg=function(){return{center:[0,0],width:300,height:300}},N.prototype.execute=function(){var L=this,y=L.nodes,x=.9,v=L.center;return!L.width&&typeof window!="undefined"&&(L.width=window.innerWidth),!L.height&&typeof window!="undefined"&&(L.height=window.innerHeight),y&&y.forEach(function(g){g.x=(Math.random()-.5)*x*L.width+v[0],g.y=(Math.random()-.5)*x*L.height+v[1]}),L.onLayoutEnd&&L.onLayoutEnd(),{nodes:y,edges:this.edges}},N.prototype.getType=function(){return"random"},N}(j.Base);U.RandomLayout=R},2230:function(or,U){"use strict";Object.defineProperty(U,"__esModule",{value:!0})},39464:function(or,U,z){"use strict";var B=this&&this.__extends||function(){var x=function(v,g){return x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,_){d.__proto__=_}||function(d,_){for(var E in _)Object.prototype.hasOwnProperty.call(_,E)&&(d[E]=_[E])},x(v,g)};return function(v,g){if(typeof g!="function"&&g!==null)throw new TypeError("Class extends value "+String(g)+" is not a constructor or null");x(v,g);function d(){this.constructor=v}v.prototype=g===null?Object.create(g):(d.prototype=g.prototype,new d)}}();Object.defineProperty(U,"__esModule",{value:!0}),U.getLayoutByName=U.unRegisterLayout=U.registerLayout=void 0;var j=z(46253),R=z(8273),A=new Map,N=function(x,v){if(A.get(x)&&console.warn("The layout with the name ".concat(x," exists already, it will be overridden")),(0,R.isObject)(v)){var g=function(d){B(_,d);function _(E){var w=this,T;w=d.call(this)||this;var k=w,b={},m=Object.assign({},k.getDefaultCfg(),((T=v.getDefaultCfg)===null||T===void 0?void 0:T.call(v))||{});return Object.assign(b,m,v,E),Object.keys(b).forEach(function($){var W=b[$];k[$]=W}),w}return _}(j.Base);A.set(x,g)}else A.set(x,v);return A.get(x)};U.registerLayout=N;var L=function(x){A.has(x)&&A.delete(x)};U.unRegisterLayout=L;var y=function(x){return A.has(x)?A.get(x):null};U.getLayoutByName=y},92272:function(or,U){"use strict";Object.defineProperty(U,"__esModule",{value:!0}),U.isArray=void 0,U.isArray=Array.isArray},72612:function(or,U,z){"use strict";Object.defineProperty(U,"__esModule",{value:!0}),U.getFuncByUnknownType=U.getFunc=U.isFunction=void 0;var B=z(8273),j=z(5049),R=function(L){return typeof L=="function"};U.isFunction=R;var A=function(L,y,x){var v;return x?v=x:(0,j.isNumber)(L)?v=function(){return L}:v=function(){return y},v};U.getFunc=A;var N=function(L,y,x){return x===void 0&&(x=!0),!y&&y!==0?function(v){return v.size?(0,B.isArray)(v.size)?v.size[0]>v.size[1]?v.size[0]:v.size[1]:(0,B.isObject)(v.size)?v.size.width>v.size.height?v.size.width:v.size.height:v.size:L}:(0,U.isFunction)(y)?y:(0,j.isNumber)(y)?function(){return y}:(0,B.isArray)(y)?function(){if(x){var v=Math.max.apply(Math,y);return isNaN(v)?L:v}return y}:(0,B.isObject)(y)?function(){if(x){var v=Math.max(y.width,y.height);return isNaN(v)?L:v}return[y.width,y.height]}:function(){return L}};U.getFuncByUnknownType=N},38342:function(or,U,z){"use strict";Object.defineProperty(U,"__esModule",{value:!0}),U.arrayToTextureData=U.attributesToTextureData=U.buildTextureDataWithTwoEdgeAttr=U.buildTextureData=U.proccessToFunc=void 0;var B=z(8273),j=z(64446),R=function(x,v){var g;return x?(0,B.isNumber)(x)?g=function(){return x}:g=x:g=function(){return v||1},g};U.proccessToFunc=R;var A=function(x,v){var g=[],d=[],_={},E=0;for(E=0;E$[X][Q]+$[Q][H]&&($[X][H]=$[X][Q]+$[Q][H]);return $};U.floydWarshall=y;var x=function(m,$){var W=m.nodes,X=m.edges,H=[],Q={};if(!W)throw new Error("invalid nodes data!");return W&&W.forEach(function(q,J){Q[q.id]=J;var te=[];H.push(te)}),X==null||X.forEach(function(q){var J=(0,U.getEdgeTerminal)(q,"source"),te=(0,U.getEdgeTerminal)(q,"target"),fe=Q[J],de=Q[te];fe===void 0||de===void 0||(H[fe][de]=1,$||(H[de][fe]=1))}),H};U.getAdjMatrix=x;var v=function(m,$){var W=[];return m.forEach(function(X){var H=[];X.forEach(function(Q){H.push(Q*$)}),W.push(H)}),W};U.scaleMatrix=v;var g=function(m,$){if(m&&m.children){for(var W=m.children.length-1;W>=0;W--)if(!g(m.children[W],$))return}return!!$(m)},d=function(m,$){typeof $=="function"&&g(m,$)};U.traverseTreeUp=d;var _=function(m){var $=Infinity,W=Infinity,X=-Infinity,H=-Infinity;return m.forEach(function(Q){var q=Q.size;(0,B.isArray)(q)?q.length===1&&(q=[q[0],q[0]]):(0,j.isNumber)(q)?q=[q,q]:(q===void 0||isNaN(q))&&(q=[30,30]);var J=[q[0]/2,q[1]/2],te=Q.x-J[0],fe=Q.x+J[0],de=Q.y-J[1],Te=Q.y+J[1];$>te&&($=te),W>de&&(W=de),X0?je.set(Ce,Xe):je.delete(Ce))}function x(je,Ce,Xe,ut){var ot=String(Ce),bt=String(Xe);if(!je&&ot>bt){var Xt=ot;ot=bt,bt=Xt}return ot+N.EDGE_KEY_DELIM+bt+N.EDGE_KEY_DELIM+(ut===void 0?N.DEFAULT_EDGE_NAME:ut)}function v(je,Ce,Xe,ut){var ot=String(Ce),bt=String(Xe),Xt={v:Ce,w:Xe};if(!je&&ot>bt){var wr=Xt.v;Xt.v=Xt.w,Xt.w=wr}return ut!==void 0&&(Xt.name=ut),Xt}function g(je,Ce){return x(je,Ce.v,Ce.w,Ce.name)}function d(je){return typeof je=="function"}var _=function(Ce){return Ce.nodes().map(function(Xe){var ut=Ce.node(Xe),ot=Ce.parent(Xe),bt={id:Xe,value:ut,parent:ot};return bt.value===void 0&&delete bt.value,bt.parent===void 0&&delete bt.parent,bt})},E=function(Ce){return Ce.edges().map(function(Xe){var ut=Ce.edge(Xe),ot={v:Xe.v,w:Xe.w,value:ut,name:Xe.name};return ot.name===void 0&&delete ot.name,ot.value===void 0&&delete ot.value,ot})},w=function(Ce){var Xe={options:{directed:Ce.isDirected(),multigraph:Ce.isMultigraph(),compound:Ce.isCompound()},nodes:_(Ce),edges:E(Ce),value:Ce.graph()};return Xe.value===void 0&&delete Xe.value,Xe},T=function(Ce){var Xe=new Q(Ce.options);return Ce.value!==void 0&&Xe.setGraph(Ce.value),Ce.nodes.forEach(function(ut){Xe.setNode(ut.id,ut.value),ut.parent&&Xe.setParent(ut.id,ut.parent)}),Ce.edges.forEach(function(ut){Xe.setEdge(ut.v,ut.w,ut.value,ut.name)}),Xe};function k(je,Ce){var Xe=Object.keys(je);if(Object.getOwnPropertySymbols){var ut=Object.getOwnPropertySymbols(je);Ce&&(ut=ut.filter(function(ot){return Object.getOwnPropertyDescriptor(je,ot).enumerable})),Xe.push.apply(Xe,ut)}return Xe}function b(je){for(var Ce=1;Ce0&&arguments[0]!==void 0?arguments[0]:{};$(this,je),this.directed=!0,this.multigraph=!1,this.compound=!1,this.GRAPH_NODE=N.GRAPH_NODE,this.label=void 0,this.nodeCountNum=0,this.edgeCountNum=0,this.defaultNodeLabelFn=function(){},this.defaultEdgeLabelFn=function(){},this.parentMap=void 0,this.childrenMap=void 0,this.nodesLabelMap=new Map,this.inEdgesMap=new Map,this.outEdgesMap=new Map,this.predecessorsMap=new Map,this.successorsMap=new Map,this.edgesMap=new Map,this.edgesLabelsMap=new Map,this.isDirected=function(){return Ce.directed},this.isMultigraph=function(){return Ce.multigraph},this.isCompound=function(){return Ce.compound},this.setGraph=function(ot){return Ce.label=ot,Ce},this.graph=function(){return Ce.label},this.setDefaultNodeLabel=function(ot){return d(ot)?Ce.defaultNodeLabelFn=ot:Ce.defaultNodeLabelFn=function(){return ot},Ce},this.nodeCount=function(){return Ce.nodeCountNum},this.node=function(ot){return Ce.nodesLabelMap.get(ot)},this.nodes=function(){return Array.from(Ce.nodesLabelMap.keys())},this.sources=function(){return Ce.nodes().filter(function(ot){var bt;return!((bt=Ce.inEdgesMap.get(ot))===null||bt===void 0?void 0:bt.size)})},this.sinks=function(){return Ce.nodes().filter(function(ot){var bt;return!((bt=Ce.outEdgesMap.get(ot))===null||bt===void 0?void 0:bt.size)})},this.setNodes=function(ot,bt){return ot.map(function(Xt){return Ce.setNode(Xt,bt)}),Ce},this.hasNode=function(ot){return Ce.nodesLabelMap.has(ot)},this.checkCompound=function(){if(!Ce.isCompound())throw new Error("Cannot construct parent-children relations in a non-compound graph")},this.parent=function(ot){if(Ce.isCompound()){var bt,Xt=(bt=Ce.parentMap)===null||bt===void 0?void 0:bt.get(ot);if(Xt!==Ce.GRAPH_NODE)return Xt}},this.removeFromParentsChildList=function(ot){var bt=Ce.parentMap.get(ot);Ce.childrenMap.get(bt).delete(ot)},this.setParent=function(ot,bt){var Xt,wr;Ce.checkCompound();for(var Wr=bt===void 0?Ce.GRAPH_NODE:bt,on=Ce.parent(Wr);on;){if(ot===on)throw new Error("Setting "+bt+" as parent of "+ot+" would create a cycle");on=Ce.parent(on)}bt&&Ce.setNode(bt),Ce.setNode(ot),Ce.removeFromParentsChildList(ot),(Xt=Ce.parentMap)===null||Xt===void 0||Xt.set(ot,Wr);var xn=Ce.childrenMap.get(Wr);return xn.set(ot,!0),(wr=Ce.childrenMap)===null||wr===void 0||wr.set(Wr,xn),Ce},this.children=function(ot){var bt=ot===void 0?Ce.GRAPH_NODE:ot;if(Ce.isCompound()){var Xt,wr=(Xt=Ce.childrenMap)===null||Xt===void 0?void 0:Xt.get(bt);return wr?Array.from(wr.keys()):void 0}if(bt===Ce.GRAPH_NODE)return Ce.nodes();if(ot&&Ce.hasNode(ot))return[]},this.predecessors=function(ot){var bt=Ce.predecessorsMap.get(ot);return bt?Array.from(bt.keys()):void 0},this.successors=function(ot){var bt=Ce.successorsMap.get(ot);return bt?Array.from(bt.keys()):void 0},this.neighbors=function(ot){var bt;if(!!Ce.hasNode(ot))return Array.from(new Set((bt=Ce.predecessors(ot))===null||bt===void 0?void 0:bt.concat(Ce.successors(ot))))},this.isLeaf=function(ot){var bt;if(Ce.isDirected()){var Xt;return!((Xt=Ce.successors(ot))===null||Xt===void 0?void 0:Xt.length)}return!((bt=Ce.neighbors(ot))===null||bt===void 0?void 0:bt.length)},this.filterNodes=function(ot){var bt=Ce.directed,Xt=Ce.multigraph,wr=Ce.compound,Wr=new je({directed:bt,multigraph:Xt,compound:wr});if(Wr.setGraph(Ce.graph()),Ce.nodes().forEach(function(xn){ot(xn)&&Wr.setNode(xn,Ce.node(xn))}),Ce.edges().forEach(function(xn){Wr.hasNode(xn.v)&&Wr.hasNode(xn.w)&&Wr.setEdgeObj(xn,Ce.edge(xn))}),wr){var on=function(zn){for(var Qn=Ce.parent(zn);Qn!==void 0&&!Wr.hasNode(Qn);)Qn=Ce.parent(Qn);return Qn};Wr.nodes().forEach(function(xn){Wr.setParent(xn,on(xn))})}return Wr},this.setDefaultEdgeLabel=function(ot){return d(ot)?Ce.defaultEdgeLabelFn=ot:Ce.defaultEdgeLabelFn=function(){return ot},Ce},this.edgeCount=function(){return Ce.edgeCountNum},this.setEdgeObj=function(ot,bt){return Ce.setEdge(ot.v,ot.w,bt,ot.name)},this.setPath=function(ot,bt){return ot.reduce(function(Xt,wr){return Ce.setEdge(Xt,wr,bt),wr}),Ce},this.edgeFromArgs=function(ot,bt,Xt){return Ce.edge({v:ot,w:bt,name:Xt})},this.edge=function(ot){return Ce.edgesLabelsMap.get(g(Ce.isDirected(),ot))},this.hasEdge=function(ot,bt,Xt){return Ce.edgesLabelsMap.has(g(Ce.isDirected(),{v:ot,w:bt,name:Xt}))},this.removeEdgeObj=function(ot){var bt=ot.v,Xt=ot.w,wr=ot.name;return Ce.removeEdge(bt,Xt,wr)},this.edges=function(){return Array.from(Ce.edgesMap.values())},this.inEdges=function(ot,bt){var Xt=Ce.inEdgesMap.get(ot);if(Xt)return Array.from(Xt.values()).filter(function(wr){return!bt||wr.v===bt})},this.outEdges=function(ot,bt){var Xt=Ce.outEdgesMap.get(ot);if(Xt)return Array.from(Xt.values()).filter(function(wr){return!bt||wr.w===bt})},this.nodeEdges=function(ot,bt){var Xt;if(!!Ce.hasNode(ot))return(Xt=Ce.inEdges(ot,bt))===null||Xt===void 0?void 0:Xt.concat(Ce.outEdges(ot,bt))},this.toJSON=function(){return w(Ce)},this.nodeInDegree=function(ot){var bt=Ce.inEdgesMap.get(ot);return bt?bt.size:0},this.nodeOutDegree=function(ot){var bt=Ce.outEdgesMap.get(ot);return bt?bt.size:0},this.nodeDegree=function(ot){return Ce.nodeInDegree(ot)+Ce.nodeOutDegree(ot)},this.source=function(ot){return ot.v},this.target=function(ot){return ot.w};var ut=b(b({},H),Xe);this.compound=ut.compound,this.directed=ut.directed,this.multigraph=ut.multigraph,this.compound&&(this.parentMap=new Map,this.childrenMap=new Map)}return X(je,[{key:"setNode",value:function(Xe,ut){var ot=this.nodesLabelMap,bt=this.defaultNodeLabelFn,Xt=this.isCompound,wr=this.parentMap,Wr=this.childrenMap,on=this.inEdgesMap,xn=this.outEdgesMap,zn=this.predecessorsMap,Qn=this.successorsMap;if(ot.has(Xe))return ut!==void 0&&ot.set(Xe,ut),this;if(ot.set(Xe,ut||bt(Xe)),Xt()){var ia;wr==null||wr.set(Xe,this.GRAPH_NODE),Wr==null||Wr.set(Xe,new Map),(Wr==null?void 0:Wr.has(this.GRAPH_NODE))||Wr==null||Wr.set(this.GRAPH_NODE,new Map),Wr==null||(ia=Wr.get(this.GRAPH_NODE))===null||ia===void 0||ia.set(Xe,!0)}return[on,xn,zn,Qn].forEach(function(Wa){return Wa.set(Xe,new Map)}),this.nodeCountNum+=1,this}},{key:"removeNode",value:function(Xe){var ut=this;if(this.hasNode(Xe)){var ot=function(Ba){ut.removeEdge(Ba.v,Ba.w,Ba.name)},bt=this.inEdgesMap,Xt=this.outEdgesMap,wr=this.predecessorsMap,Wr=this.successorsMap,on=this.nodesLabelMap;if(this.isCompound()){var xn,zn,Qn;this.removeFromParentsChildList(Xe),(xn=this.parentMap)===null||xn===void 0||xn.delete(Xe),(zn=this.children(Xe))===null||zn===void 0||zn.forEach(function(Ia){return ut.setParent(Ia)}),(Qn=this.childrenMap)===null||Qn===void 0||Qn.delete(Xe)}var ia=bt.get(Xe),Wa=Xt.get(Xe);Array.from(ia.values()).forEach(function(Ia){return ot(Ia)}),Array.from(Wa.values()).forEach(function(Ia){return ot(Ia)}),on.delete(Xe),bt.delete(Xe),Xt.delete(Xe),wr.delete(Xe),Wr.delete(Xe),this.nodeCountNum-=1}return this}},{key:"setEdge",value:function(Xe,ut,ot,bt){var Xt,wr,Wr=v(this.isDirected(),Xe,ut,bt),on=g(this.isDirected(),Wr),xn=Wr.v,zn=Wr.w;if(this.edgesLabelsMap.has(on))return this.edgesLabelsMap.set(on,ot),this;if(bt!==void 0&&!this.isMultigraph())throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(xn),this.setNode(zn),this.edgesLabelsMap.set(on,ot||this.defaultEdgeLabelFn(xn,zn,bt)),Object.freeze(Wr),this.edgesMap.set(on,Wr);var Qn=this.predecessorsMap.get(zn),ia=this.successorsMap.get(xn);return L(Qn,xn),L(ia,zn),(Xt=this.inEdgesMap.get(zn))===null||Xt===void 0||Xt.set(on,Wr),(wr=this.outEdgesMap.get(xn))===null||wr===void 0||wr.set(on,Wr),this.edgeCountNum+=1,this}},{key:"removeEdge",value:function(Xe,ut,ot){var bt=x(this.isDirected(),Xe,ut,ot),Xt=this.edgesMap.get(bt);if(Xt){var wr=v(this.isDirected(),Xe,ut,ot),Wr=wr.v,on=wr.w;this.edgesLabelsMap.delete(bt),this.edgesMap.delete(bt);var xn=this.predecessorsMap.get(on),zn=this.successorsMap.get(Wr);y(xn,Wr),y(zn,on),this.inEdgesMap.get(on).delete(bt),this.outEdgesMap.get(Wr).delete(bt),this.edgeCountNum-=1}return this}}]),je}();Q.fromJSON=T;function q(je){return q=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Ce){return typeof Ce}:function(Ce){return Ce&&typeof Symbol=="function"&&Ce.constructor===Symbol&&Ce!==Symbol.prototype?"symbol":typeof Ce},q(je)}function J(je,Ce){if(!(je instanceof Ce))throw new TypeError("Cannot call a class as a function")}function te(je,Ce){for(var Xe=0;Xe-1&&this.eventPool[ot].splice(Xt,1)}}},{key:"emitEvent",value:function(ot){for(var bt=arguments.length,Xt=new Array(bt>1?bt-1:0),wr=1;wr>1,((wr=ut[bt])===null||wr===void 0?void 0:wr.priority)Ce.arr[ot].priority)throw new Error("New priority is greater than current priority.Key: ".concat(Xe," Old: + ").concat(Ce.arr[ot].priority," New: ").concat(ut));Ce.arr[ot].priority=ut,Ce.innerDecrease(ot)}}),Qe=function(Ce,Xe){var ut=new Q,ot=new Map,bt=new tr,Xt;function wr(xn){var zn=xn.v===Xt?xn.w:xn.v,Qn=bt.priority(zn);if(Qn!==void 0){var ia=Xe(xn);ia0;){var on;if(Xt=bt.removeMin(),ot.has(Xt))ut.setEdge(Xt,ot.get(Xt));else{if(Wr)throw new Error("Input graph is not connected: "+Ce.graph());Wr=!0}(on=Ce.nodeEdges(Xt))===null||on===void 0||on.forEach(wr)}return ut},lt=Qe,St=function(Ce){var Xe=new Set,ut=[],ot=Ce.nodes();return ot.forEach(function(bt){for(var Xt=[],wr=[bt];wr.length>0;){var Wr=wr.pop();if(!Xe.has(Wr)){var on,xn;Xe.add(Wr),Xt.push(Wr),(on=Ce.successors(Wr))===null||on===void 0||on.forEach(function(zn){return wr.push(zn)}),(xn=Ce.predecessors(Wr))===null||xn===void 0||xn.forEach(function(zn){return wr.push(zn)})}}Xt.length&&ut.push(Xt)}),ut},Ct=St,_t=function je(Ce,Xe,ut,ot,bt,Xt){ot.includes(Xe)||(ot.push(Xe),ut||Xt.push(Xe),bt(Xe).forEach(function(wr){return je(Ce,wr,ut,ot,bt,Xt)}),ut&&Xt.push(Xe))},pt=function(Ce,Xe,ut){var ot=Array.isArray(Xe)?Xe:[Xe],bt=function(on){return Ce.isDirected()?Ce.successors(on):Ce.neighbors(on)},Xt=[],wr=[];return ot.forEach(function(Wr){if(Ce.hasNode(Wr))_t(Ce,Wr,ut==="post",wr,bt,Xt);else throw new Error("Graph does not have node: "+Wr)}),Xt},rr=pt;function xr(je,Ce){return br(je)||qt(je,Ce)||ft(je,Ce)||Vt()}function Vt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ft(je,Ce){if(!!je){if(typeof je=="string")return Bt(je,Ce);var Xe=Object.prototype.toString.call(je).slice(8,-1);if(Xe==="Object"&&je.constructor&&(Xe=je.constructor.name),Xe==="Map"||Xe==="Set")return Array.from(je);if(Xe==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Xe))return Bt(je,Ce)}}function Bt(je,Ce){(Ce==null||Ce>je.length)&&(Ce=je.length);for(var Xe=0,ut=new Array(Ce);Xe0&&(wr=Xt.removeMin(),Wr=bt.get(wr),!(Wr&&Wr.distance===Number.POSITIVE_INFINITY));)ot(wr).forEach(on);var xn={};return Array.from(bt.entries()).forEach(function(zn){var Qn=xr(zn,2),ia=Qn[0],Wa=Qn[1];return xn[String(ia)]=Wa,xn}),xn},Sr=Ae,qr=function(Ce,Xe,ut){var ot={};return Ce.nodes().forEach(function(bt){return ot[String(bt)]=Sr(Ce,bt,Xe,ut),ot}),ot},Gr=qr,vn=function(Ce){var Xe=0,ut=[],ot=new Map,bt=[];function Xt(wr){var Wr,on={onStack:!0,lowlink:Xe,index:Xe};if(ot.set(wr,on),Xe+=1,ut.push(wr),(Wr=Ce.successors(wr))===null||Wr===void 0||Wr.forEach(function(ia){var Wa;if(ot.has(ia)){if((Wa=ot.get(ia))===null||Wa===void 0?void 0:Wa.onStack){var Ba=ot.get(ia);on.lowlink=Math.min(on.lowlink,Ba.index)}}else{Xt(ia);var Ia=ot.get(ia);on.lowlink=Math.min(on.lowlink,Ia.lowlink)}}),on.lowlink===on.index){var xn=[],zn;do{zn=ut.pop();var Qn=ot.get(zn);Qn.onStack=!1,xn.push(zn)}while(wr!==zn);bt.push(xn)}}return Ce.nodes().forEach(function(wr){ot.has(wr)||Xt(wr)}),bt},Gn=vn,mn=function(Ce){return Gn(Ce).filter(function(Xe){return Xe.length>1||Xe.length===1&&Ce.hasEdge(Xe[0],Xe[0])})},$r=mn;function gn(je){return gn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Ce){return typeof Ce}:function(Ce){return Ce&&typeof Symbol=="function"&&Ce.constructor===Symbol&&Ce!==Symbol.prototype?"symbol":typeof Ce},gn(je)}function Rr(je,Ce){for(var Xe=0;Xeje.length)&&(Ce=je.length);for(var Xe=0,ut=new Array(Ce);Xe-1:!1};z.a=R},function(U,z,B){"use strict";var j=function(R){return typeof R=="object"&&R!==null};z.a=j},function(U,z,B){"use strict";var j=B(8),R=B(2),A=Object.values?function(N){return Object.values(N)}:function(N){var L=[];return Object(j.a)(N,function(y,x){Object(R.a)(N)&&x==="prototype"||L.push(y)}),L};z.a=A},function(U,z,B){"use strict";z.a=R;function j(A,N){for(var L in N)N.hasOwnProperty(L)&&L!=="constructor"&&N[L]!==void 0&&(A[L]=N[L])}function R(A,N,L,y){return N&&j(A,N),L&&j(A,L),y&&j(A,y),A}},function(U,z,B){var j=B(35),R=["LR","RL","TB","BT","H","V"],A=["LR","RL","H"],N=function(x){return A.indexOf(x)>-1},L=R[0];U.exports=function(y,x,v){var g=x.direction||L;if(x.isHorizontal=N(g),g&&R.indexOf(g)===-1)throw new TypeError("Invalid direction: "+g);if(g===R[0])v(y,x);else if(g===R[1])v(y,x),y.right2left();else if(g===R[2])v(y,x);else if(g===R[3])v(y,x),y.bottom2top();else if(g===R[4]||g===R[5]){var d=j(y,x),_=d.left,E=d.right;v(_,x),v(E,x),x.isHorizontal?_.right2left():_.bottom2top(),E.translate(_.x-E.x,_.y-E.y),y.x=_.x,y.y=E.y;var w=y.getBoundingBox();x.isHorizontal?w.top<0&&y.translate(0,-w.top):w.left<0&&y.translate(-w.left,0)}var T=x.fixedRoot;return T===void 0&&(T=!0),T&&y.translate(-(y.x+y.width/2+y.hgap),-(y.y+y.height/2+y.vgap)),y}},function(U,z,B){var j=B(6),R=18,A=R*2,N=R,L={getId:function(g){return g.id||g.name},getPreH:function(g){return g.preH||0},getPreV:function(g){return g.preV||0},getHGap:function(g){return g.hgap||N},getVGap:function(g){return g.vgap||N},getChildren:function(g){return g.children},getHeight:function(g){return g.height||A},getWidth:function(g){var d=g.label||" ";return g.width||d.split("").length*R}};function y(v,g){var d=this;if(d.vgap=d.hgap=0,v instanceof y)return v;d.data=v;var _=g.getHGap(v),E=g.getVGap(v);return d.preH=g.getPreH(v),d.preV=g.getPreV(v),d.width=g.getWidth(v),d.height=g.getHeight(v),d.width+=d.preH,d.height+=d.preV,d.id=g.getId(v),d.x=d.y=0,d.depth=0,d.children||(d.children=[]),d.addGap(_,E),d}j.assign(y.prototype,{isRoot:function(){return this.depth===0},isLeaf:function(){return this.children.length===0},addGap:function(g,d){var _=this;_.hgap+=g,_.vgap+=d,_.width+=2*g,_.height+=2*d},eachNode:function(g){for(var d=this,_=[d],E;E=_.shift();)g(E),_=E.children.concat(_)},DFTraverse:function(g){this.eachNode(g)},BFTraverse:function(g){for(var d=this,_=[d],E;E=_.shift();)g(E),_=_.concat(E.children)},getBoundingBox:function(){var g={left:Number.MAX_VALUE,top:Number.MAX_VALUE,width:0,height:0};return this.eachNode(function(d){g.left=Math.min(g.left,d.x),g.top=Math.min(g.top,d.y),g.width=Math.max(g.width,d.x+d.width),g.height=Math.max(g.height,d.y+d.height)}),g},translate:function(g,d){g===void 0&&(g=0),d===void 0&&(d=0),this.eachNode(function(_){_.x+=g,_.y+=d,_.x+=_.preH,_.y+=_.preV})},right2left:function(){var g=this,d=g.getBoundingBox();g.eachNode(function(_){_.x=_.x-(_.x-d.left)*2-_.width}),g.translate(d.width,0)},bottom2top:function(){var g=this,d=g.getBoundingBox();g.eachNode(function(_){_.y=_.y-(_.y-d.top)*2-_.height}),g.translate(0,d.height)}});function x(v,g,d){g===void 0&&(g={}),g=j.assign({},L,g);var _=new y(v,g),E=[_],w;if(!d&&!v.collapsed){for(;w=E.shift();)if(!w.data.collapsed){var T=g.getChildren(w.data),k=T?T.length:0;if(w.children=new Array(k),T&&k)for(var b=0;b-1;)R.call(L,d,1);return L};z.a=N},function(U,z,B){"use strict";var j=B(1),R=B(24),A=function(N,L){var y=[];if(!Object(j.a)(N))return y;for(var x=-1,v=[],g=N.length;++xd[E])return 1;if(g[E]N?N:R};z.a=j},function(U,z,B){"use strict";var j=function(R,A){var N=A.toString(),L=N.indexOf(".");if(L===-1)return Math.round(R);var y=N.substr(L+1).length;return y>20&&(y=20),parseFloat(R.toFixed(y))};z.a=j},function(U,z,B){"use strict";var j=B(5),R=function(A){return Object(j.a)(A)&&A%1!=0};z.a=R},function(U,z,B){"use strict";var j=B(5),R=function(A){return Object(j.a)(A)&&A%2==0};z.a=R},function(U,z,B){"use strict";var j=B(5),R=Number.isInteger?Number.isInteger:function(A){return Object(j.a)(A)&&A%1==0};z.a=R},function(U,z,B){"use strict";var j=B(5),R=function(A){return Object(j.a)(A)&&A<0};z.a=R},function(U,z,B){"use strict";z.a=R;var j=1e-5;function R(A,N,L){return L===void 0&&(L=j),Math.abs(A-N)0};z.a=R},function(U,z,B){"use strict";var j=B(0),R=B(2);z.a=function(A,N){if(!!Object(j.a)(A)){for(var L,y=-Infinity,x=0;xy&&(L=v,y=g)}return L}}},function(U,z,B){"use strict";var j=B(0),R=B(2);z.a=function(A,N){if(!!Object(j.a)(A)){for(var L,y=Infinity,x=0;xR?(N&&(clearTimeout(N),N=null),v=_,x=j.apply(L,y),N||(L=y=null)):!N&&A.trailing!==!1&&(N=setTimeout(g,E)),x};return d.cancel=function(){clearTimeout(N),v=0,N=L=y=null},d}},function(U,z,B){"use strict";var j=B(1);z.a=function(R){return Object(j.a)(R)?Array.prototype.slice.call(R):[]}},function(U,z,B){"use strict";var j={};z.a=function(R){return R=R||"g",j[R]?j[R]+=1:j[R]=1,R+j[R]}},function(U,z,B){"use strict";z.a=function(){}},function(U,z,B){"use strict";z.a=function(j){return j}},function(U,z,B){"use strict";z.a=A;var j=B(7),R=B(1);function A(N){return Object(j.a)(N)?0:Object(R.a)(N)?N.length:Object.keys(N).length}},function(U,z,B){"use strict";z.a=W;var j=function(pe,Me){return j=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(De,Ue){De.__proto__=Ue}||function(De,Ue){for(var nt in Ue)Object.prototype.hasOwnProperty.call(Ue,nt)&&(De[nt]=Ue[nt])},j(pe,Me)};function R(pe,Me){if(typeof Me!="function"&&Me!==null)throw new TypeError("Class extends value "+String(Me)+" is not a constructor or null");j(pe,Me);function De(){this.constructor=pe}pe.prototype=Me===null?Object.create(Me):(De.prototype=Me.prototype,new De)}var A=function(){return A=Object.assign||function(Me){for(var De,Ue=1,nt=arguments.length;Ue=0;Rt--)(ht=pe[Rt])&&(Ze=(nt<3?ht(Ze):nt>3?ht(Me,De,Ze):ht(Me,De))||Ze);return nt>3&&Ze&&Object.defineProperty(Me,De,Ze),Ze}function y(pe,Me){return function(De,Ue){Me(De,Ue,pe)}}function x(pe,Me,De,Ue,nt,Ze){function ht(Vt){if(Vt!==void 0&&typeof Vt!="function")throw new TypeError("Function expected");return Vt}for(var Rt=Ue.kind,tr=Rt==="getter"?"get":Rt==="setter"?"set":"value",Qe=!Me&&pe?Ue.static?pe:pe.prototype:null,lt=Me||(Qe?Object.getOwnPropertyDescriptor(Qe,Ue.name):{}),St,Ct=!1,_t=De.length-1;_t>=0;_t--){var pt={};for(var rr in Ue)pt[rr]=rr==="access"?{}:Ue[rr];for(var rr in Ue.access)pt.access[rr]=Ue.access[rr];pt.addInitializer=function(Vt){if(Ct)throw new TypeError("Cannot add initializers after decoration has completed");Ze.push(ht(Vt||null))};var xr=(0,De[_t])(Rt==="accessor"?{get:lt.get,set:lt.set}:lt[tr],pt);if(Rt==="accessor"){if(xr===void 0)continue;if(xr===null||typeof xr!="object")throw new TypeError("Object expected");(St=ht(xr.get))&&(lt.get=St),(St=ht(xr.set))&&(lt.set=St),(St=ht(xr.init))&&nt.push(St)}else(St=ht(xr))&&(Rt==="field"?nt.push(St):lt[tr]=St)}Qe&&Object.defineProperty(Qe,Ue.name,lt),Ct=!0}function v(pe,Me,De){for(var Ue=arguments.length>2,nt=0;nt0&&Ze[Ze.length-1])&&(Qe[0]===6||Qe[0]===2)){De=0;continue}if(Qe[0]===3&&(!Ze||Qe[1]>Ze[0]&&Qe[1]=pe.length&&(pe=void 0),{value:pe&&pe[Ue++],done:!pe}}};throw new TypeError(Me?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(pe,Me){var De=typeof Symbol=="function"&&pe[Symbol.iterator];if(!De)return pe;var Ue=De.call(pe),nt,Ze=[],ht;try{for(;(Me===void 0||Me-- >0)&&!(nt=Ue.next()).done;)Ze.push(nt.value)}catch(Rt){ht={error:Rt}}finally{try{nt&&!nt.done&&(De=Ue.return)&&De.call(Ue)}finally{if(ht)throw ht.error}}return Ze}function $(){for(var pe=[],Me=0;Me1||Rt(Ct,_t)})})}function Rt(Ct,_t){try{tr(Ue[Ct](_t))}catch(pt){St(Ze[0][3],pt)}}function tr(Ct){Ct.value instanceof H?Promise.resolve(Ct.value.v).then(Qe,lt):St(Ze[0][2],Ct)}function Qe(Ct){Rt("next",Ct)}function lt(Ct){Rt("throw",Ct)}function St(Ct,_t){Ct(_t),Ze.shift(),Ze.length&&Rt(Ze[0][0],Ze[0][1])}}function q(pe){var Me,De;return Me={},Ue("next"),Ue("throw",function(nt){throw nt}),Ue("return"),Me[Symbol.iterator]=function(){return this},Me;function Ue(nt,Ze){Me[nt]=pe[nt]?function(ht){return(De=!De)?{value:H(pe[nt](ht)),done:!1}:Ze?Ze(ht):ht}:Ze}}function J(pe){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Me=pe[Symbol.asyncIterator],De;return Me?Me.call(pe):(pe=typeof b=="function"?b(pe):pe[Symbol.iterator](),De={},Ue("next"),Ue("throw"),Ue("return"),De[Symbol.asyncIterator]=function(){return this},De);function Ue(Ze){De[Ze]=pe[Ze]&&function(ht){return new Promise(function(Rt,tr){ht=pe[Ze](ht),nt(Rt,tr,ht.done,ht.value)})}}function nt(Ze,ht,Rt,tr){Promise.resolve(tr).then(function(Qe){Ze({value:Qe,done:Rt})},ht)}}function te(pe,Me){return Object.defineProperty?Object.defineProperty(pe,"raw",{value:Me}):pe.raw=Me,pe}var fe=Object.create?function(pe,Me){Object.defineProperty(pe,"default",{enumerable:!0,value:Me})}:function(pe,Me){pe.default=Me};function de(pe){if(pe&&pe.__esModule)return pe;var Me={};if(pe!=null)for(var De in pe)De!=="default"&&Object.prototype.hasOwnProperty.call(pe,De)&&T(Me,pe,De);return fe(Me,pe),Me}function Te(pe){return pe&&pe.__esModule?pe:{default:pe}}function Se(pe,Me,De,Ue){if(De==="a"&&!Ue)throw new TypeError("Private accessor was defined without a getter");if(typeof Me=="function"?pe!==Me||!Ue:!Me.has(pe))throw new TypeError("Cannot read private member from an object whose class did not declare it");return De==="m"?Ue:De==="a"?Ue.call(pe):Ue?Ue.value:Me.get(pe)}function Ie(pe,Me,De,Ue,nt){if(Ue==="m")throw new TypeError("Private method is not writable");if(Ue==="a"&&!nt)throw new TypeError("Private accessor was defined without a setter");if(typeof Me=="function"?pe!==Me||!nt:!Me.has(pe))throw new TypeError("Cannot write private member to an object whose class did not declare it");return Ue==="a"?nt.call(pe,De):nt?nt.value=De:Me.set(pe,De),De}function be(pe,Me){if(Me===null||typeof Me!="object"&&typeof Me!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof pe=="function"?Me===pe:pe.has(Me)}},function(U,z,B){"use strict";var j=B(4),R=B(9),A=B(34);z.a=function(N,L,y,x){x===void 0&&(x="...");var v=16,g=Object(A.a)(x,y),d=Object(j.a)(N)?N:Object(R.a)(N),_=L,E=[],w,T;if(Object(A.a)(N,y)<=L)return N;for(;w=d.substr(0,v),T=Object(A.a)(w,y),!(T+g>_&&T>_);)if(E.push(w),_-=T,d=d.substr(v),!d)return E.join("");for(;w=d.substr(0,1),T=Object(A.a)(w,y),!(T+g>_);)if(E.push(w),_-=T,d=d.substr(1),!d)return E.join("");return""+E.join("")+x}},function(U,z,B){"use strict";var j=function(){function R(){this.map={}}return R.prototype.has=function(A){return this.map[A]!==void 0},R.prototype.get=function(A,N){var L=this.map[A];return L===void 0?N:L},R.prototype.set=function(A,N){this.map[A]=N},R.prototype.clear=function(){this.map={}},R.prototype.delete=function(A){delete this.map[A]},R.prototype.size=function(){return Object.keys(this.map).length},R}();z.a=j},function(U,z){function B(y,x,v,g){g===void 0&&(g=[]);var d=this;d.w=y||0,d.h=x||0,d.y=v||0,d.x=0,d.c=g||[],d.cs=g.length,d.prelim=0,d.mod=0,d.shift=0,d.change=0,d.tl=null,d.tr=null,d.el=null,d.er=null,d.msel=0,d.mser=0}B.fromNode=function(y,x){if(!y)return null;var v=[];return y.children.forEach(function(g){v.push(B.fromNode(g,x))}),x?new B(y.height,y.width,y.x,v):new B(y.width,y.height,y.y,v)};function j(y,x,v){v?y.y+=x:y.x+=x,y.children.forEach(function(g){j(g,x,v)})}function R(y,x){var v=x?y.y:y.x;return y.children.forEach(function(g){v=Math.min(R(g,x),v)}),v}function A(y,x){var v=R(y,x);j(y,-v,x)}function N(y,x,v){v?x.y=y.x:x.x=y.x,y.c.forEach(function(g,d){N(g,x.children[d],v)})}function L(y,x,v){v===void 0&&(v=0),x?(y.x=v,v+=y.width):(y.y=v,v+=y.height),y.children.forEach(function(g){L(g,x,v)})}U.exports=function(y,x){x===void 0&&(x={});var v=x.isHorizontal;function g(J){if(J.cs===0){d(J);return}g(J.c[0]);for(var te=Q(k(J.c[0].el),0,null),fe=1;fefe.low&&(fe=fe.nxt);var be=Te+de.prelim+de.w-(Ie+Se.prelim);be>0&&(Ie+=be,E(J,te,fe.index,be));var pe=k(de),Me=k(Se);pe<=Me&&(de=T(de),de!==null&&(Te+=de.mod)),pe>=Me&&(Se=w(Se),Se!==null&&(Ie+=Se.mod))}!de&&!!Se?b(J,te,Se,Ie):!!de&&!Se&&m(J,te,de,Te)}function E(J,te,fe,de){J.c[te].mod+=de,J.c[te].msel+=de,J.c[te].mser+=de,X(J,te,fe,de)}function w(J){return J.cs===0?J.tl:J.c[0]}function T(J){return J.cs===0?J.tr:J.c[J.cs-1]}function k(J){return J.y+J.h}function b(J,te,fe,de){var Te=J.c[0].el;Te.tl=fe;var Se=de-fe.mod-J.c[0].msel;Te.mod+=Se,Te.prelim-=Se,J.c[0].el=J.c[te].el,J.c[0].msel=J.c[te].msel}function m(J,te,fe,de){var Te=J.c[te].er;Te.tr=fe;var Se=de-fe.mod-J.c[te].mser;Te.mod+=Se,Te.prelim-=Se,J.c[te].er=J.c[te-1].er,J.c[te].mser=J.c[te-1].mser}function $(J){J.prelim=(J.c[0].prelim+J.c[0].mod+J.c[J.cs-1].mod+J.c[J.cs-1].prelim+J.c[J.cs-1].w)/2-J.w/2}function W(J,te){te+=J.mod,J.x=J.prelim+te,H(J);for(var fe=0;fe=fe.low;)fe=fe.nxt;return{low:J,index:te,nxt:fe}}L(y,v);var q=B.fromNode(y,v);return g(q),W(q,0),N(q,y,v),A(y,v),y}},function(U,z,B){function j(d,_){d.prototype=Object.create(_.prototype),d.prototype.constructor=d,R(d,_)}function R(d,_){return R=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(w,T){return w.__proto__=T,w},R(d,_)}var A=B(11),N=B(121),L=B(17),y=B(6),x=function(d){j(_,d);function _(){return d.apply(this,arguments)||this}var E=_.prototype;return E.execute=function(){var T=this;return T.rootNode.width=0,L(T.rootNode,T.options,N)},_}(A),v={};function g(d,_){return _=y.assign({},v,_),new x(d,_).execute()}U.exports=g},function(U,z,B){var j=B(6);function R(L,y){L===void 0&&(L=0),y===void 0&&(y=[]);var x=this;x.x=x.y=0,x.leftChild=x.rightChild=null,x.height=0,x.children=y}var A={isHorizontal:!0,nodeSep:20,nodeSize:20,rankSep:200,subTreeSep:10};function N(L,y,x){x?(y.x=L.x,y.y=L.y):(y.x=L.y,y.y=L.x),L.children.forEach(function(v,g){N(v,y.children[g],x)})}U.exports=function(L,y){y===void 0&&(y={}),y=j.assign({},A,y);var x=0;function v(w){if(!w)return null;w.width=0,w.depth&&w.depth>x&&(x=w.depth);var T=w.children,k=T.length,b=new R(w.height,[]);return T.forEach(function(m,$){var W=v(m);b.children.push(W),$===0&&(b.leftChild=W),$===k-1&&(b.rightChild=W)}),b.originNode=w,b.isLeaf=w.isLeaf(),b}function g(w){if(w.isLeaf||w.children.length===0)w.drawingDepth=x;else{var T=w.children.map(function(b){return g(b)}),k=Math.min.apply(null,T);w.drawingDepth=k-1}return w.drawingDepth}var d;function _(w){w.x=w.drawingDepth*y.rankSep,w.isLeaf?(w.y=0,d&&(w.y=d.y+d.height+y.nodeSep,w.originNode.parent!==d.originNode.parent&&(w.y+=y.subTreeSep)),d=w):(w.children.forEach(function(T){_(T)}),w.y=(w.leftChild.y+w.rightChild.y)/2)}var E=v(L);return g(E),_(E),N(E,L,y.isHorizontal),L}},function(U,z,B){function j(E,w){E.prototype=Object.create(w.prototype),E.prototype.constructor=E,R(E,w)}function R(E,w){return R=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(k,b){return k.__proto__=b,k},R(E,w)}var A=B(11),N=B(123),L=B(35),y=B(6),x=["LR","RL","H"],v=x[0],g=function(E){j(w,E);function w(){return E.apply(this,arguments)||this}var T=w.prototype;return T.execute=function(){var b=this,m=b.options,$=b.rootNode;m.isHorizontal=!0;var W=m.indent,X=W===void 0?20:W,H=m.dropCap,Q=H===void 0?!0:H,q=m.direction,J=q===void 0?v:q,te=m.align;if(J&&x.indexOf(J)===-1)throw new TypeError("Invalid direction: "+J);if(J===x[0])N($,X,Q,te);else if(J===x[1])N($,X,Q,te),$.right2left();else if(J===x[2]){var fe=L($,m),de=fe.left,Te=fe.right;N(de,X,Q,te),de.right2left(),N(Te,X,Q,te);var Se=de.getBoundingBox();Te.translate(Se.width,0),$.x=Te.x-$.width/2}return $},w}(A),d={};function _(E,w){return w=y.assign({},d,w),new g(E,w).execute()}U.exports=_},function(U,z,B){var j=B(6);function R(A,N,L,y,x){var v=typeof L=="function"?L(A):L*A.depth;if(!y)try{if(A.id===A.parent.children[0].id){A.x+=v,A.y=N?N.y:0;return}}catch(_){}if(A.x+=v,N){if(A.y=N.y+j.getHeight(N,A,x),N.parent&&A.parent.id!==N.parent.id){var g=N.parent,d=g.y+j.getHeight(g,A,x);A.y=d>A.y?d:A.y}}else A.y=0}U.exports=function(A,N,L,y){var x=null;A.eachNode(function(v){R(v,x,N,L,y),x=v})}},function(U,z,B){function j(d,_){d.prototype=Object.create(_.prototype),d.prototype.constructor=d,R(d,_)}function R(d,_){return R=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(w,T){return w.__proto__=T,w},R(d,_)}var A=B(11),N=B(125),L=B(17),y=B(6),x=function(d){j(_,d);function _(){return d.apply(this,arguments)||this}var E=_.prototype;return E.execute=function(){var T=this;return L(T.rootNode,T.options,N)},_}(A),v={};function g(d,_){return _=y.assign({},v,_),new x(d,_).execute()}U.exports=g},function(U,z,B){var j=B(6);function R(L,y){var x=0;return L.children.length?L.children.forEach(function(v){x+=R(v,y)}):x=L.height,L._subTreeSep=y.getSubTreeSep(L.data),L.totalHeight=Math.max(L.height,x)+2*L._subTreeSep,L.totalHeight}function A(L){var y=L.children,x=y.length;if(x){y.forEach(function(w){A(w)});var v=y[0],g=y[x-1],d=g.y-v.y+g.height,_=0;if(y.forEach(function(w){_+=w.totalHeight}),d>L.height)L.y=v.y+d/2-L.height/2;else if(y.length!==1||L.height>_){var E=L.y+(L.height-d)/2-v.y;y.forEach(function(w){w.translate(0,E)})}else L.y=(v.y+v.height/2+g.y+g.height/2)/2-L.height/2}}var N={getSubTreeSep:function(){return 0}};U.exports=function(L,y){y===void 0&&(y={}),y=j.assign({},N,y),L.parent={x:0,width:0,height:0,y:0},L.BFTraverse(function(x){x.x=x.parent.x+x.parent.width}),L.parent=null,R(L,y),L.startY=0,L.y=L.totalHeight/2-L.height/2,L.eachNode(function(x){var v=x.children,g=v.length;if(g){var d=v[0];if(d.startY=x.startY+x._subTreeSep,g===1)d.y=x.y+x.height/2-d.height/2;else{d.y=d.startY+d.totalHeight/2-d.height/2;for(var _=1;_=0;return E?T?Math.PI*2-w:w:T?w:Math.PI*2-w}B=v;function g(d,_,E){return E?(d[0]=_[1],d[1]=-1*_[0]):(d[0]=-1*_[1],d[1]=_[0]),d}B=g},59591:function(or,U,z){var B=z(50008).default;function j(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */or.exports=j=function(){return R},or.exports.__esModule=!0,or.exports.default=or.exports;var R={},A=Object.prototype,N=A.hasOwnProperty,L=Object.defineProperty||function(Ie,be,pe){Ie[be]=pe.value},y=typeof Symbol=="function"?Symbol:{},x=y.iterator||"@@iterator",v=y.asyncIterator||"@@asyncIterator",g=y.toStringTag||"@@toStringTag";function d(Ie,be,pe){return Object.defineProperty(Ie,be,{value:pe,enumerable:!0,configurable:!0,writable:!0}),Ie[be]}try{d({},"")}catch(Ie){d=function(pe,Me,De){return pe[Me]=De}}function _(Ie,be,pe,Me){var De=be&&be.prototype instanceof T?be:T,Ue=Object.create(De.prototype),nt=new de(Me||[]);return L(Ue,"_invoke",{value:q(Ie,pe,nt)}),Ue}function E(Ie,be,pe){try{return{type:"normal",arg:Ie.call(be,pe)}}catch(Me){return{type:"throw",arg:Me}}}R.wrap=_;var w={};function T(){}function k(){}function b(){}var m={};d(m,x,function(){return this});var $=Object.getPrototypeOf,W=$&&$($(Te([])));W&&W!==A&&N.call(W,x)&&(m=W);var X=b.prototype=T.prototype=Object.create(m);function H(Ie){["next","throw","return"].forEach(function(be){d(Ie,be,function(pe){return this._invoke(be,pe)})})}function Q(Ie,be){function pe(De,Ue,nt,Ze){var ht=E(Ie[De],Ie,Ue);if(ht.type!=="throw"){var Rt=ht.arg,tr=Rt.value;return tr&&B(tr)=="object"&&N.call(tr,"__await")?be.resolve(tr.__await).then(function(Qe){pe("next",Qe,nt,Ze)},function(Qe){pe("throw",Qe,nt,Ze)}):be.resolve(tr).then(function(Qe){Rt.value=Qe,nt(Rt)},function(Qe){return pe("throw",Qe,nt,Ze)})}Ze(ht.arg)}var Me;L(this,"_invoke",{value:function(Ue,nt){function Ze(){return new be(function(ht,Rt){pe(Ue,nt,ht,Rt)})}return Me=Me?Me.then(Ze,Ze):Ze()}})}function q(Ie,be,pe){var Me="suspendedStart";return function(De,Ue){if(Me==="executing")throw new Error("Generator is already running");if(Me==="completed"){if(De==="throw")throw Ue;return Se()}for(pe.method=De,pe.arg=Ue;;){var nt=pe.delegate;if(nt){var Ze=J(nt,pe);if(Ze){if(Ze===w)continue;return Ze}}if(pe.method==="next")pe.sent=pe._sent=pe.arg;else if(pe.method==="throw"){if(Me==="suspendedStart")throw Me="completed",pe.arg;pe.dispatchException(pe.arg)}else pe.method==="return"&&pe.abrupt("return",pe.arg);Me="executing";var ht=E(Ie,be,pe);if(ht.type==="normal"){if(Me=pe.done?"completed":"suspendedYield",ht.arg===w)continue;return{value:ht.arg,done:pe.done}}ht.type==="throw"&&(Me="completed",pe.method="throw",pe.arg=ht.arg)}}}function J(Ie,be){var pe=be.method,Me=Ie.iterator[pe];if(Me===void 0)return be.delegate=null,pe==="throw"&&Ie.iterator.return&&(be.method="return",be.arg=void 0,J(Ie,be),be.method==="throw")||pe!=="return"&&(be.method="throw",be.arg=new TypeError("The iterator does not provide a '"+pe+"' method")),w;var De=E(Me,Ie.iterator,be.arg);if(De.type==="throw")return be.method="throw",be.arg=De.arg,be.delegate=null,w;var Ue=De.arg;return Ue?Ue.done?(be[Ie.resultName]=Ue.value,be.next=Ie.nextLoc,be.method!=="return"&&(be.method="next",be.arg=void 0),be.delegate=null,w):Ue:(be.method="throw",be.arg=new TypeError("iterator result is not an object"),be.delegate=null,w)}function te(Ie){var be={tryLoc:Ie[0]};1 in Ie&&(be.catchLoc=Ie[1]),2 in Ie&&(be.finallyLoc=Ie[2],be.afterLoc=Ie[3]),this.tryEntries.push(be)}function fe(Ie){var be=Ie.completion||{};be.type="normal",delete be.arg,Ie.completion=be}function de(Ie){this.tryEntries=[{tryLoc:"root"}],Ie.forEach(te,this),this.reset(!0)}function Te(Ie){if(Ie){var be=Ie[x];if(be)return be.call(Ie);if(typeof Ie.next=="function")return Ie;if(!isNaN(Ie.length)){var pe=-1,Me=function De(){for(;++pe=0;--De){var Ue=this.tryEntries[De],nt=Ue.completion;if(Ue.tryLoc==="root")return Me("end");if(Ue.tryLoc<=this.prev){var Ze=N.call(Ue,"catchLoc"),ht=N.call(Ue,"finallyLoc");if(Ze&&ht){if(this.prev=0;--Me){var De=this.tryEntries[Me];if(De.tryLoc<=this.prev&&N.call(De,"finallyLoc")&&this.prev=0;--pe){var Me=this.tryEntries[pe];if(Me.finallyLoc===be)return this.complete(Me.completion,Me.afterLoc),fe(Me),w}},catch:function(be){for(var pe=this.tryEntries.length-1;pe>=0;--pe){var Me=this.tryEntries[pe];if(Me.tryLoc===be){var De=Me.completion;if(De.type==="throw"){var Ue=De.arg;fe(Me)}return Ue}}throw new Error("illegal catch attempt")},delegateYield:function(be,pe,Me){return this.delegate={iterator:Te(be),resultName:pe,nextLoc:Me},this.method==="next"&&(this.arg=void 0),w}},R}or.exports=j,or.exports.__esModule=!0,or.exports.default=or.exports},87757:function(or,U,z){var B=z(59591)();or.exports=B;try{regeneratorRuntime=B}catch(j){typeof globalThis=="object"?globalThis.regeneratorRuntime=B:Function("r","regeneratorRuntime = r")(B)}},41685:function(or,U,z){"use strict";z.r(U),z.d(U,{forceCenter:function(){return B},forceCollide:function(){return y},forceLink:function(){return g},forceManyBody:function(){return pt},forceRadial:function(){return rr},forceSimulation:function(){return _t},forceX:function(){return xr},forceY:function(){return Vt}});function B(ft,Bt){var qt,br=1;ft==null&&(ft=0),Bt==null&&(Bt=0);function Ur(){var Ae,Hr=qt.length,Sr,qr=0,Gr=0;for(Ae=0;Aemn.index){var Pn=$r-In.x-In.vx,An=gn-In.y-In.vy,ln=Pn*Pn+An*An;ln$r+Zr||wn<$r-Zr||pn>gn+Zr||SnGr.r&&(Gr.r=Gr[vn].r)}function qr(){if(!!Bt){var Gr,vn=Bt.length,Gn;for(qt=new Array(vn),Gr=0;Gr=0&&(br=qt.slice(Ur+1),qt=qt.slice(0,Ur)),qt&&!Bt.hasOwnProperty(qt))throw new Error("unknown type: "+qt);return{type:qt,name:br}})}E.prototype=_.prototype={constructor:E,on:function(Bt,qt){var br=this._,Ur=w(Bt+"",br),Ae,Hr=-1,Sr=Ur.length;if(arguments.length<2){for(;++Hr0)for(var br=new Array(Ae),Ur=0,Ae,Hr;Ur=0&&ft._call.call(null,Bt),ft=ft._next;--m}function Me(){J=(q=fe.now())+te,m=$=0;try{pe()}finally{m=0,Ue(),J=0}}function De(){var ft=fe.now(),Bt=ft-q;Bt>X&&(te-=Bt,q=ft)}function Ue(){for(var ft,Bt=H,qt,br=Infinity;Bt;)Bt._call?(br>Bt._time&&(br=Bt._time),ft=Bt,Bt=Bt._next):(qt=Bt._next,Bt._next=null,Bt=ft?ft._next=qt:H=qt);Q=ft,nt(br)}function nt(ft){if(!m){$&&($=clearTimeout($));var Bt=ft-J;Bt>24?(ft1?(Wt==null?Sr.delete(ct):Sr.set(ct,gn(Wt)),Bt):Sr.get(ct)},find:function(ct,Wt,Er){var Dr=0,Vr=ft.length,pn,wn,Sn,In,$n;for(Er==null?Er=Infinity:Er*=Er,Dr=0;Dr1?(Gr.on(ct,Wt),Bt):Gr.on(ct)}}}function pt(){var ft,Bt,qt,br,Ur=R(-30),Ae,Hr=1,Sr=Infinity,qr=.81;function Gr($r){var gn,Rr=ft.length,ct=(0,j.Z)(ft,Qe,lt).visitAfter(Gn);for(br=$r,gn=0;gn=Sr)return;($r.data!==Bt||$r.next)&&(Wt===0&&(Wt=A(qt),Vr+=Wt*Wt),Er===0&&(Er=A(qt),Vr+=Er*Er),Vr1&&arguments[1]!==void 0?arguments[1]:{};if(!y(ne))throw new TypeError("input must be an array");if(ne.length===0)throw new TypeError("input must not be empty");var P=ae.fromIndex,S=P===void 0?0:P,C=ae.toIndex,V=C===void 0?ne.length:C;if(S<0||S>=ne.length||!Number.isInteger(S))throw new Error("fromIndex must be a positive integer smaller than length");if(V<=S||V>ne.length||!Number.isInteger(V))throw new Error("toIndex must be an integer greater than fromIndex and at most equal to length");for(var he=ne[S],xe=S+1;xehe&&(he=ne[xe]);return he}function v(ne){var ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!y(ne))throw new TypeError("input must be an array");if(ne.length===0)throw new TypeError("input must not be empty");var P=ae.fromIndex,S=P===void 0?0:P,C=ae.toIndex,V=C===void 0?ne.length:C;if(S<0||S>=ne.length||!Number.isInteger(S))throw new Error("fromIndex must be a positive integer smaller than length");if(V<=S||V>ne.length||!Number.isInteger(V))throw new Error("toIndex must be an integer greater than fromIndex and at most equal to length");for(var he=ne[S],xe=S+1;xe1&&arguments[1]!==void 0?arguments[1]:{};if(y(ne)){if(ne.length===0)throw new TypeError("input must not be empty")}else throw new TypeError("input must be an array");var P;if(ae.output!==void 0){if(!y(ae.output))throw new TypeError("output option must be an array if specified");P=ae.output}else P=new Array(ne.length);var S=v(ne),C=x(ne);if(S===C)throw new RangeError("minimum and maximum input values are equal. Cannot rescale a constant array");var V=ae.min,he=V===void 0?ae.autoMinMax?S:0:V,xe=ae.max,Ee=xe===void 0?ae.autoMinMax?C:1:xe;if(he>=Ee)throw new RangeError("min option must be smaller than max option");for(var Ne=(Ee-he)/(C-S),Et=0;Et1&&arguments[1]!==void 0?arguments[1]:{},P=ae.maxRows,S=P===void 0?15:P,C=ae.maxColumns,V=C===void 0?10:C,he=ae.maxNumSize,xe=he===void 0?8:he,Ee=ae.padMinus,Ne=Ee===void 0?"auto":Ee;return"".concat(ne.constructor.name,` { +`).concat(d,`[ +`).concat(_).concat(T(ne,S,V,xe,Ne),` +`).concat(d,`] +`).concat(d,"rows: ").concat(ne.rows,` +`).concat(d,"columns: ").concat(ne.columns,` +}`)}function T(ne,ae,P,S,C){var V=ne.rows,he=ne.columns,xe=Math.min(V,ae),Ee=Math.min(he,P),Ne=[];if(C==="auto"){C=!1;e:for(var Et=0;Et=0&&P?" ".concat(b(ne,ae-1)):b(ne,ae)).padEnd(ae)}function b(ne,ae){var P=ne.toString();if(P.length<=ae)return P;var S=ne.toFixed(ae);if(S.length>ae&&(S=ne.toFixed(Math.max(0,ae-(S.length-ae)))),S.length<=ae&&!S.startsWith("0.000")&&!S.startsWith("-0.000"))return S;var C=ne.toExponential(ae);return C.length>ae&&(C=ne.toExponential(Math.max(0,ae-(C.length-ae)))),C.slice(0)}function m(ne,ae){ne.prototype.add=function(S){return typeof S=="number"?this.addS(S):this.addM(S)},ne.prototype.addS=function(S){for(var C=0;C>S);return this},ne.prototype.signPropagatingRightShiftM=function(S){if(S=ae.checkMatrix(S),this.rows!==S.rows||this.columns!==S.columns)throw new RangeError("Matrices dimensions must be equal");for(var C=0;C>S.get(C,V));return this},ne.signPropagatingRightShift=function(S,C){var V=new ae(S);return V.signPropagatingRightShift(C)},ne.prototype.rightShift=function(S){return typeof S=="number"?this.rightShiftS(S):this.rightShiftM(S)},ne.prototype.rightShiftS=function(S){for(var C=0;C>>S);return this},ne.prototype.rightShiftM=function(S){if(S=ae.checkMatrix(S),this.rows!==S.rows||this.columns!==S.columns)throw new RangeError("Matrices dimensions must be equal");for(var C=0;C>>S.get(C,V));return this},ne.rightShift=function(S,C){var V=new ae(S);return V.rightShift(C)},ne.prototype.zeroFillRightShift=ne.prototype.rightShift,ne.prototype.zeroFillRightShiftS=ne.prototype.rightShiftS,ne.prototype.zeroFillRightShiftM=ne.prototype.rightShiftM,ne.zeroFillRightShift=ne.rightShift,ne.prototype.not=function(){for(var S=0;SS)throw new RangeError("Row index out of range")}function W(ne,ae,P){var S=P?ne.columns:ne.columns-1;if(ae<0||ae>S)throw new RangeError("Column index out of range")}function X(ne,ae){if(ae.to1DArray&&(ae=ae.to1DArray()),ae.length!==ne.columns)throw new RangeError("vector size must be the same as the number of columns");return ae}function H(ne,ae){if(ae.to1DArray&&(ae=ae.to1DArray()),ae.length!==ne.rows)throw new RangeError("vector size must be the same as the number of rows");return ae}function Q(ne,ae){if(!y(ae))throw new TypeError("row indices must be an array");for(var P=0;P=ne.rows)throw new RangeError("row indices are out of range")}function q(ne,ae){if(!y(ae))throw new TypeError("column indices must be an array");for(var P=0;P=ne.columns)throw new RangeError("column indices are out of range")}function J(ne,ae,P,S,C){if(arguments.length!==5)throw new RangeError("expected 4 arguments");if(fe("startRow",ae),fe("endRow",P),fe("startColumn",S),fe("endColumn",C),ae>P||S>C||ae<0||ae>=ne.rows||P<0||P>=ne.rows||S<0||S>=ne.columns||C<0||C>=ne.columns)throw new RangeError("Submatrix indices are out of range")}function te(ne){for(var ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,P=[],S=0;SC?(he=!0,C=S):(V=!1,he=!0);P++}return V}},{key:"isReducedEchelonForm",value:function(){for(var P=0,S=0,C=-1,V=!0,he=!1;PC?(he=!0,C=S):(V=!1,he=!0);for(var xe=S+1;xeP.get(V,C)&&(V=he);if(P.get(V,C)===0)C++;else{P.swapRows(S,V);for(var xe=P.get(S,C),Ee=C;Ee=0;)if(P.maxRow(V)===0)V--;else{for(var he=0,xe=!1;he0&&arguments[0]!==void 0?arguments[0]:{};if(typeof P!="object")throw new TypeError("options must be an object");var S=P.rows,C=S===void 0?1:S,V=P.columns,he=V===void 0?1:V;if(!Number.isInteger(C)||C<=0)throw new TypeError("rows must be a positive integer");if(!Number.isInteger(he)||he<=0)throw new TypeError("columns must be a positive integer");for(var xe=new Vt(this.rows*C,this.columns*he),Ee=0;EeS[C]&&(S[C]=this.get(C,V));return S}case"column":{for(var he=new Array(this.columns).fill(Number.NEGATIVE_INFINITY),xe=0;xehe[Ee]&&(he[Ee]=this.get(xe,Ee));return he}case void 0:{for(var Ne=this.get(0,0),Et=0;EtNe&&(Ne=this.get(Et,st));return Ne}default:throw new Error("invalid option: ".concat(P))}}},{key:"maxIndex",value:function(){de(this);for(var P=this.get(0,0),S=[0,0],C=0;CP&&(P=this.get(C,V),S[0]=C,S[1]=V);return S}},{key:"min",value:function(P){if(this.isEmpty())return NaN;switch(P){case"row":{for(var S=new Array(this.rows).fill(Number.POSITIVE_INFINITY),C=0;CS&&(S=this.get(P,C));return S}},{key:"maxRowIndex",value:function(P){$(this,P),de(this);for(var S=this.get(P,0),C=[P,0],V=1;VS&&(S=this.get(P,V),C[1]=V);return C}},{key:"minRow",value:function(P){if($(this,P),this.isEmpty())return NaN;for(var S=this.get(P,0),C=1;CS&&(S=this.get(C,P));return S}},{key:"maxColumnIndex",value:function(P){W(this,P),de(this);for(var S=this.get(0,P),C=[0,P],V=1;VS&&(S=this.get(V,P),C[0]=V);return C}},{key:"minColumn",value:function(P){if(W(this,P),this.isEmpty())return NaN;for(var S=this.get(0,P),C=1;C0&&arguments[0]!==void 0?arguments[0]:"frobenius",S=0;if(P==="max")return this.max();if(P==="frobenius"){for(var C=0;C0&&arguments[0]!==void 0?arguments[0]:{};if(typeof P!="object")throw new TypeError("options must be an object");var S=P.min,C=S===void 0?0:S,V=P.max,he=V===void 0?1:V;if(!Number.isFinite(C))throw new TypeError("min must be a number");if(!Number.isFinite(he))throw new TypeError("max must be a number");if(C>=he)throw new RangeError("min must be smaller than max");for(var xe=new Vt(this.rows,this.columns),Ee=0;Ee0&&g(Ne,{min:C,max:he,output:Ne}),xe.setRow(Ee,Ne)}return xe}},{key:"scaleColumns",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(typeof P!="object")throw new TypeError("options must be an object");var S=P.min,C=S===void 0?0:S,V=P.max,he=V===void 0?1:V;if(!Number.isFinite(C))throw new TypeError("min must be a number");if(!Number.isFinite(he))throw new TypeError("max must be a number");if(C>=he)throw new RangeError("min must be smaller than max");for(var xe=new Vt(this.rows,this.columns),Ee=0;Ee0&&arguments[0]!==void 0?arguments[0]:rr,S=0;S0&&arguments[0]!==void 0?arguments[0]:rr,S=0;SC||S<0||S>=this.columns||C<0||C>=this.columns)throw new RangeError("Argument out of range");for(var V=new Vt(P.length,C-S+1),he=0;he=this.rows)throw new RangeError("Row index out of range: ".concat(P[he]));V.set(he,xe-S,this.get(P[he],xe))}return V}},{key:"subMatrixColumn",value:function(P,S,C){if(S===void 0&&(S=0),C===void 0&&(C=this.rows-1),S>C||S<0||S>=this.rows||C<0||C>=this.rows)throw new RangeError("Argument out of range");for(var V=new Vt(C-S+1,P.length),he=0;he=this.columns)throw new RangeError("Column index out of range: ".concat(P[he]));V.set(xe-S,he,this.get(xe,P[he]))}return V}},{key:"setSubMatrix",value:function(P,S,C){if(P=Vt.checkMatrix(P),P.isEmpty())return this;var V=S+P.rows-1,he=C+P.columns-1;J(this,S,V,C,he);for(var xe=0;xe1&&arguments[1]!==void 0?arguments[1]:{};if(typeof P=="object"&&(S=P,P=void 0),typeof S!="object")throw new TypeError("options must be an object");var C=S,V=C.unbiased,he=V===void 0?!0:V,xe=C.mean,Ee=xe===void 0?this.mean(P):xe;if(typeof he!="boolean")throw new TypeError("unbiased must be a boolean");switch(P){case"row":{if(!y(Ee))throw new TypeError("mean must be an array");return De(this,he,Ee)}case"column":{if(!y(Ee))throw new TypeError("mean must be an array");return Ue(this,he,Ee)}case void 0:{if(typeof Ee!="number")throw new TypeError("mean must be a number");return nt(this,he,Ee)}default:throw new Error("invalid option: ".concat(P))}}},{key:"standardDeviation",value:function(P,S){typeof P=="object"&&(S=P,P=void 0);var C=this.variance(P,S);if(P===void 0)return Math.sqrt(C);for(var V=0;V1&&arguments[1]!==void 0?arguments[1]:{};if(typeof P=="object"&&(S=P,P=void 0),typeof S!="object")throw new TypeError("options must be an object");var C=S,V=C.center,he=V===void 0?this.mean(P):V;switch(P){case"row":{if(!y(he))throw new TypeError("center must be an array");return Ze(this,he),this}case"column":{if(!y(he))throw new TypeError("center must be an array");return ht(this,he),this}case void 0:{if(typeof he!="number")throw new TypeError("center must be a number");return Rt(this,he),this}default:throw new Error("invalid option: ".concat(P))}}},{key:"scale",value:function(P){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(typeof P=="object"&&(S=P,P=void 0),typeof S!="object")throw new TypeError("options must be an object");var C=S.scale;switch(P){case"row":{if(C===void 0)C=tr(this);else if(!y(C))throw new TypeError("scale must be an array");return Qe(this,C),this}case"column":{if(C===void 0)C=lt(this);else if(!y(C))throw new TypeError("scale must be an array");return St(this,C),this}case void 0:{if(C===void 0)C=Ct(this);else if(typeof C!="number")throw new TypeError("scale must be a number");return _t(this,C),this}default:throw new Error("invalid option: ".concat(P))}}},{key:"toString",value:function(P){return w(this,P)}}],[{key:"from1DArray",value:function(P,S,C){var V=P*S;if(V!==C.length)throw new RangeError("data length does not match given dimensions");for(var he=new Vt(P,S),xe=0;xe2&&arguments[2]!==void 0?arguments[2]:{};if(typeof C!="object")throw new TypeError("options must be an object");for(var V=C.random,he=V===void 0?Math.random:V,xe=new Vt(P,S),Ee=0;Ee2&&arguments[2]!==void 0?arguments[2]:{};if(typeof C!="object")throw new TypeError("options must be an object");var V=C.min,he=V===void 0?0:V,xe=C.max,Ee=xe===void 0?1e3:xe,Ne=C.random,Et=Ne===void 0?Math.random:Ne;if(!Number.isInteger(he))throw new TypeError("min must be an integer");if(!Number.isInteger(Ee))throw new TypeError("max must be an integer");if(he>=Ee)throw new RangeError("min must be smaller than max");for(var st=Ee-he,Pt=new Vt(P,S),$t=0;$t=0)if(V.data=[],Number.isInteger(C)&&C>=0)for(var he=0;he1&&arguments[1]!==void 0?arguments[1]:{};(0,A.Z)(this,P);var he=V.rows,xe=he===void 0?1:he;if(S.length%xe!=0)throw new Error("the data length is not divisible by the number of rows");return C=ae.call(this),C.rows=xe,C.columns=S.length/xe,C.data=S,C}return(0,N.Z)(P,[{key:"set",value:function(C,V,he){var xe=this._calculateIndex(C,V);return this.data[xe]=he,this}},{key:"get",value:function(C,V){var he=this._calculateIndex(C,V);return this.data[he]}},{key:"_calculateIndex",value:function(C,V){return C*this.columns+V}}]),P}(pt),Gn=function(ne){(0,j.Z)(P,ne);var ae=(0,R.Z)(P);function P(S){var C;return(0,A.Z)(this,P),C=ae.call(this),C.data=S,C.rows=S.length,C.columns=S[0].length,C}return(0,N.Z)(P,[{key:"set",value:function(C,V,he){return this.data[C][V]=he,this}},{key:"get",value:function(C,V){return this.data[C][V]}}]),P}(pt);function mn(ne,ae){if(y(ne))return ne[0]&&y(ne[0])?new Gn(ne):new vn(ne,ae);throw new Error("the argument is not an array")}var $r=function(){function ne(ae){(0,A.Z)(this,ne),ae=Gn.checkMatrix(ae);var P=ae.clone(),S=P.rows,C=P.columns,V=new Float64Array(S),he=1,xe,Ee,Ne,Et,st,Pt,$t,Ht,Br;for(xe=0;xeMath.abs(Ht[Et])&&(Et=xe);if(Et!==Ee){for(Ne=0;Ne=0;Et--){for(Ne=0;Nexe?V.set(he,xe,P.get(he,xe)):he===xe?V.set(he,xe,1):V.set(he,xe,0);return V}},{key:"upperTriangularMatrix",get:function(){for(var P=this.LU,S=P.rows,C=P.columns,V=new Vt(S,C),he=0;heMath.abs(ae)?(P=ae/ne,Math.abs(ne)*Math.sqrt(1+P*P)):ae!==0?(P=ne/ae,Math.abs(ae)*Math.sqrt(1+P*P)):0}var Rr=function(){function ne(ae){(0,A.Z)(this,ne),ae=Gn.checkMatrix(ae);var P=ae.clone(),S=ae.rows,C=ae.columns,V=new Float64Array(C),he,xe,Ee,Ne;for(Ee=0;Ee=0;Et--){for(Ne=0;Ne=0;Ee--){for(he=0;he1&&arguments[1]!==void 0?arguments[1]:{};if((0,A.Z)(this,ne),ae=Gn.checkMatrix(ae),ae.isEmpty())throw new Error("Matrix must be non-empty");var S=ae.rows,C=ae.columns,V=P.computeLeftSingularVectors,he=V===void 0?!0:V,xe=P.computeRightSingularVectors,Ee=xe===void 0?!0:xe,Ne=P.autoTranspose,Et=Ne===void 0?!1:Ne,st=Boolean(he),Pt=Boolean(Ee),$t=!1,Ht;if(S=0;_a--)if(Qt[_a]!==0){for(var So=_a+1;So=0;mi--){if(mi0;){var _n=void 0,Fo=void 0;for(_n=Ea-2;_n>=-1&&_n!==-1;_n--){var Go=Number.MIN_VALUE+Hi*Math.abs(Qt[_n]+Math.abs(Qt[_n+1]));if(Math.abs(Nr[_n])<=Go||Number.isNaN(Nr[_n])){Nr[_n]=0;break}}if(_n===Ea-2)Fo=4;else{var Va=void 0;for(Va=Ea-1;Va>=_n&&Va!==_n;Va--){var Ms=(Va!==Ea?Math.abs(Nr[Va]):0)+(Va!==_n+1?Math.abs(Nr[Va-1]):0);if(Math.abs(Qt[Va])<=Hi*Ms){Qt[Va]=0;break}}Va===_n?Fo=3:Va===Ea-1?Fo=1:(Fo=2,_n=Va)}switch(_n++,Fo){case 1:{var Ko=Nr[Ea-2];Nr[Ea-2]=0;for(var Li=Ea-2;Li>=_n;Li--){var Mo=gn(Qt[Li],Ko),ho=Qt[Li]/Mo,Gi=Ko/Mo;if(Qt[Li]=Mo,Li!==_n&&(Ko=-Gi*Nr[Li-1],Nr[Li-1]=ho*Nr[Li-1]),Pt)for(var Di=0;Di=Qt[_n+1]);){var po=Qt[_n];if(Qt[_n]=Qt[_n+1],Qt[_n+1]=po,Pt&&_nS&&he.set(xe,Ee,P.get(xe,Ee)/this.s[Ee]);for(var Ne=this.U,Et=Ne.rows,st=Ne.columns,Pt=new Vt(C,Et),$t=0;$tP&&S++;return S}},{key:"diagonal",get:function(){return Array.from(this.s)}},{key:"threshold",get:function(){return Number.EPSILON/2*Math.max(this.m,this.n)*this.s[0]}},{key:"leftSingularVectors",get:function(){return this.U}},{key:"rightSingularVectors",get:function(){return this.V}},{key:"diagonalMatrix",get:function(){return Vt.diag(this.s)}}]),ne}();function Wt(ne){var ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return ne=Gn.checkMatrix(ne),ae?new ct(ne).inverse():Er(ne,Vt.eye(ne.rows))}function Er(ne,ae){var P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return ne=Gn.checkMatrix(ne),ae=Gn.checkMatrix(ae),P?new ct(ne).solve(ae):ne.isSquare()?new $r(ne).solve(ae):new Rr(ne).solve(ae)}function Dr(ne){if(ne=Vt.checkMatrix(ne),ne.isSquare()){if(ne.columns===0)return 1;var ae,P,S,C;if(ne.columns===2)return ae=ne.get(0,0),P=ne.get(0,1),S=ne.get(1,0),C=ne.get(1,1),ae*C-P*S;if(ne.columns===3){var V,he,xe;return V=new Sr(ne,[1,2],[1,2]),he=new Sr(ne,[1,2],[0,2]),xe=new Sr(ne,[1,2],[0,1]),ae=ne.get(0,0),P=ne.get(0,1),S=ne.get(0,2),ae*Dr(V)-P*Dr(he)+S*Dr(xe)}else return new $r(ne).determinant}else throw Error("determinant can only be calculated for a square matrix")}function Vr(ne,ae){for(var P=[],S=0;S3&&arguments[3]!==void 0?arguments[3]:1e-9,C=arguments.length>4&&arguments[4]!==void 0?arguments[4]:1e-9;if(ne>C)return new Array(ae.rows+1).fill(0);for(var V=ae.addRow(P,[0]),he=0;he1&&arguments[1]!==void 0?arguments[1]:{},P=ae.thresholdValue,S=P===void 0?1e-9:P,C=ae.thresholdError,V=C===void 0?1e-9:C;ne=Vt.checkMatrix(ne);for(var he=ne.rows,xe=new Vt(he,he),Ee=0;Ee1&&arguments[1]!==void 0?arguments[1]:Number.EPSILON;if(ne=Vt.checkMatrix(ne),ne.isEmpty())return ne.transpose();for(var P=new ct(ne,{autoTranspose:!0}),S=P.leftSingularVectors,C=P.rightSingularVectors,V=P.diagonal,he=0;heae?V[he]=1/V[he]:V[he]=0;return C.mmul(Vt.diag(V).mmul(S.transpose()))}function In(ne){var ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ne,P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};ne=new Vt(ne);var S=!1;if(typeof ae=="object"&&!Vt.isMatrix(ae)&&!y(ae)?(P=ae,ae=ne,S=!0):ae=new Vt(ae),ne.rows!==ae.rows)throw new TypeError("Both matrices must have the same number of rows");var C=P,V=C.center,he=V===void 0?!0:V;he&&(ne=ne.center("column"),S||(ae=ae.center("column")));for(var xe=ne.transpose().mmul(ae),Ee=0;Ee1&&arguments[1]!==void 0?arguments[1]:ne,P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};ne=new Vt(ne);var S=!1;if(typeof ae=="object"&&!Vt.isMatrix(ae)&&!y(ae)?(P=ae,ae=ne,S=!0):ae=new Vt(ae),ne.rows!==ae.rows)throw new TypeError("Both matrices must have the same number of rows");var C=P,V=C.center,he=V===void 0?!0:V,xe=C.scale,Ee=xe===void 0?!0:xe;he&&(ne.center("column"),S||ae.center("column")),Ee&&(ne.scale("column"),S||ae.scale("column"));for(var Ne=ne.standardDeviation("column",{unbiased:!0}),Et=S?Ne:ae.standardDeviation("column",{unbiased:!0}),st=ne.transpose().mmul(ae),Pt=0;Pt1&&arguments[1]!==void 0?arguments[1]:{};(0,A.Z)(this,ne);var S=P.assumeSymmetric,C=S===void 0?!1:S;if(ae=Gn.checkMatrix(ae),!ae.isSquare())throw new Error("Matrix is not a square matrix");if(ae.isEmpty())throw new Error("Matrix must be non-empty");var V=ae.columns,he=new Vt(V,V),xe=new Float64Array(V),Ee=new Float64Array(V),Ne=ae,Et,st,Pt=!1;if(C?Pt=!0:Pt=ae.isSymmetric(),Pt){for(Et=0;Et0?V.set(he,he+1,S[he]):S[he]<0&&V.set(he,he-1,S[he])}return V}}]),ne}();function Pn(ne,ae,P,S){var C,V,he,xe,Ee,Ne,Et,st;for(Ee=0;Ee0;xe--){for(st=0,he=0,Ne=0;Ne0&&(V=-V),ae[xe]=st*V,he=he-C*V,P[xe-1]=C-V,Ee=0;EeNe){en=0;do{for(en=en+1,C=P[Ne],st=(P[Ne+1]-C)/(2*ae[Ne]),Pt=gn(st,1),st<0&&(Pt=-Pt),P[Ne]=ae[Ne]/(st+Pt),P[Ne+1]=ae[Ne]*(st+Pt),$t=P[Ne+1],V=C-P[Ne],he=Ne+2;he=Ne;he--)for(hn=Br,Br=Ht,pr=Qt,C=Ht*ae[he],V=Ht*st,Pt=gn(st,ae[he]),ae[he+1]=Qt*Pt,Qt=ae[he]/Pt,Ht=st/Pt,st=Ht*P[he]-Qt*C,P[he+1]=V+Qt*(Ht*C+Qt*P[he]),Ee=0;Eekn*ta)}P[Ne]=P[Ne]+Nr,ae[Ne]=0}for(he=0;he=st;Ne--)P[Ne]=ae.get(Ne,st-1)/Pt,Ee+=P[Ne]*P[Ne];for(xe=Math.sqrt(Ee),P[st]>0&&(xe=-xe),Ee=Ee-P[st]*xe,P[st]=P[st]-xe,Et=st;Et=st;Ne--)he+=P[Ne]*ae.get(Ne,Et);for(he=he/Ee,Ne=st;Ne<=V;Ne++)ae.set(Ne,Et,ae.get(Ne,Et)-he*P[Ne])}for(Ne=0;Ne<=V;Ne++){for(he=0,Et=V;Et>=st;Et--)he+=P[Et]*ae.get(Ne,Et);for(he=he/Ee,Et=st;Et<=V;Et++)ae.set(Ne,Et,ae.get(Ne,Et)-he*P[Et])}P[st]=Pt*P[st],ae.set(st,st-1,Pt*xe)}}for(Ne=0;Ne=C+1;st--)if(ae.get(st,st-1)!==0){for(Ne=st+1;Ne<=V;Ne++)P[Ne]=ae.get(Ne,st-1);for(Et=st;Et<=V;Et++){for(xe=0,Ne=st;Ne<=V;Ne++)xe+=P[Ne]*S.get(Ne,Et);for(xe=xe/P[st]/ae.get(st,st-1),Ne=st;Ne<=V;Ne++)S.set(Ne,Et,S.get(Ne,Et)+xe*P[Ne])}}}function va(ne,ae,P,S,C){var V=ne-1,he=0,xe=ne-1,Ee=Number.EPSILON,Ne=0,Et=0,st=0,Pt=0,$t=0,Ht=0,Br=0,hn=0,Ot,Qt,pr,en,Nr,ta,kn,En,Rn,Yn,bn,je,Ce,Xe,ut;for(Ot=0;Otxe)&&(P[Ot]=C.get(Ot,Ot),ae[Ot]=0),Qt=Math.max(Ot-1,0);Qt=he;){for(en=V;en>he&&(Ht=Math.abs(C.get(en-1,en-1))+Math.abs(C.get(en,en)),Ht===0&&(Ht=Et),!(Math.abs(C.get(en,en-1))=0){for(Br=st>=0?st+Br:st-Br,P[V-1]=En+Br,P[V]=P[V-1],Br!==0&&(P[V]=En-kn/Br),ae[V-1]=0,ae[V]=0,En=C.get(V,V-1),Ht=Math.abs(En)+Math.abs(Br),st=En/Ht,Pt=Br/Ht,$t=Math.sqrt(st*st+Pt*Pt),st=st/$t,Pt=Pt/$t,Qt=V-1;Qt0)){for(Ht=Math.sqrt(Ht),Rn=en&&(Br=C.get(Nr,Nr),$t=En-Br,Ht=Rn-Br,st=($t*Ht-kn)/C.get(Nr+1,Nr)+C.get(Nr,Nr+1),Pt=C.get(Nr+1,Nr+1)-Br-$t-Ht,$t=C.get(Nr+2,Nr+1),Ht=Math.abs(st)+Math.abs(Pt)+Math.abs($t),st=st/Ht,Pt=Pt/Ht,$t=$t/Ht,!(Nr===en||Math.abs(C.get(Nr,Nr-1))*(Math.abs(Pt)+Math.abs($t))Nr+2&&C.set(Ot,Ot-3,0);for(pr=Nr;pr<=V-1&&(Xe=pr!==V-1,pr!==Nr&&(st=C.get(pr,pr-1),Pt=C.get(pr+1,pr-1),$t=Xe?C.get(pr+2,pr-1):0,En=Math.abs(st)+Math.abs(Pt)+Math.abs($t),En!==0&&(st=st/En,Pt=Pt/En,$t=$t/En)),En!==0);pr++)if(Ht=Math.sqrt(st*st+Pt*Pt+$t*$t),st<0&&(Ht=-Ht),Ht!==0){for(pr!==Nr?C.set(pr,pr-1,-Ht*En):en!==Nr&&C.set(pr,pr-1,-C.get(pr,pr-1)),st=st+Ht,En=st/Ht,Rn=Pt/Ht,Br=$t/Ht,Pt=Pt/st,$t=$t/st,Qt=pr;Qt=0;V--)if(st=P[V],Pt=ae[V],Pt===0)for(en=V,C.set(V,V,1),Ot=V-1;Ot>=0;Ot--){for(kn=C.get(Ot,Ot)-st,$t=0,Qt=en;Qt<=V;Qt++)$t=$t+C.get(Ot,Qt)*C.get(Qt,V);if(ae[Ot]<0)Br=kn,Ht=$t;else if(en=Ot,ae[Ot]===0?C.set(Ot,V,kn!==0?-$t/kn:-$t/(Ee*Et)):(En=C.get(Ot,Ot+1),Rn=C.get(Ot+1,Ot),Pt=(P[Ot]-st)*(P[Ot]-st)+ae[Ot]*ae[Ot],ta=(En*Ht-Br*$t)/Pt,C.set(Ot,V,ta),C.set(Ot+1,V,Math.abs(En)>Math.abs(Br)?(-$t-kn*ta)/En:(-Ht-Rn*ta)/Br)),ta=Math.abs(C.get(Ot,V)),Ee*ta*ta>1)for(Qt=Ot;Qt<=V;Qt++)C.set(Qt,V,C.get(Qt,V)/ta)}else if(Pt<0)for(en=V-1,Math.abs(C.get(V,V-1))>Math.abs(C.get(V-1,V))?(C.set(V-1,V-1,Pt/C.get(V,V-1)),C.set(V-1,V,-(C.get(V,V)-st)/C.get(V,V-1))):(ut=K(0,-C.get(V-1,V),C.get(V-1,V-1)-st,Pt),C.set(V-1,V-1,ut[0]),C.set(V-1,V,ut[1])),C.set(V,V-1,0),C.set(V,V,1),Ot=V-2;Ot>=0;Ot--){for(Yn=0,bn=0,Qt=en;Qt<=V;Qt++)Yn=Yn+C.get(Ot,Qt)*C.get(Qt,V-1),bn=bn+C.get(Ot,Qt)*C.get(Qt,V);if(kn=C.get(Ot,Ot)-st,ae[Ot]<0)Br=kn,$t=Yn,Ht=bn;else if(en=Ot,ae[Ot]===0?(ut=K(-Yn,-bn,kn,Pt),C.set(Ot,V-1,ut[0]),C.set(Ot,V,ut[1])):(En=C.get(Ot,Ot+1),Rn=C.get(Ot+1,Ot),je=(P[Ot]-st)*(P[Ot]-st)+ae[Ot]*ae[Ot]-Pt*Pt,Ce=(P[Ot]-st)*2*Pt,je===0&&Ce===0&&(je=Ee*Et*(Math.abs(kn)+Math.abs(Pt)+Math.abs(En)+Math.abs(Rn)+Math.abs(Br))),ut=K(En*$t-Br*Yn+Pt*bn,En*Ht-Br*bn-Pt*Yn,je,Ce),C.set(Ot,V-1,ut[0]),C.set(Ot,V,ut[1]),Math.abs(En)>Math.abs(Br)+Math.abs(Pt)?(C.set(Ot+1,V-1,(-Yn-kn*C.get(Ot,V-1)+Pt*C.get(Ot,V))/En),C.set(Ot+1,V,(-bn-kn*C.get(Ot,V)-Pt*C.get(Ot,V-1))/En)):(ut=K(-$t-Rn*C.get(Ot,V-1),-Ht-Rn*C.get(Ot,V),Br,Pt),C.set(Ot+1,V-1,ut[0]),C.set(Ot+1,V,ut[1]))),ta=Math.max(Math.abs(C.get(Ot,V-1)),Math.abs(C.get(Ot,V))),Ee*ta*ta>1)for(Qt=Ot;Qt<=V;Qt++)C.set(Qt,V-1,C.get(Qt,V-1)/ta),C.set(Qt,V,C.get(Qt,V)/ta)}for(Ot=0;Otxe)for(Qt=Ot;Qt=he;Qt--)for(Ot=he;Ot<=xe;Ot++){for(Br=0,pr=he;pr<=Math.min(Qt,xe);pr++)Br=Br+S.get(Ot,pr)*C.get(pr,Qt);S.set(Ot,Qt,Br)}}}function K(ne,ae,P,S){var C,V;return Math.abs(P)>Math.abs(S)?(C=S/P,V=P+C*S,[(ne+C*ae)/V,(ae-C*ne)/V]):(C=P/S,V=S+C*P,[(C*ne+ae)/V,(C*ae-ne)/V])}var Dt=function(){function ne(ae){if((0,A.Z)(this,ne),ae=Gn.checkMatrix(ae),!ae.isSymmetric())throw new Error("Matrix is not symmetric");var P=ae,S=P.rows,C=new Vt(S,S),V=!0,he,xe,Ee;for(xe=0;xe0,C.set(xe,xe,Math.sqrt(Math.max(Ne,0))),Ee=xe+1;Ee=0;Ne--)for(Ee=0;Ee1&&arguments[1]!==void 0?arguments[1]:{};(0,A.Z)(this,ne),ae=Gn.checkMatrix(ae);var S=P.Y,C=P.scaleScores,V=C===void 0?!1:C,he=P.maxIterations,xe=he===void 0?1e3:he,Ee=P.terminationCriteria,Ne=Ee===void 0?1e-10:Ee,Et;if(S){if(y(S)&&typeof S[0]=="number"?S=Vt.columnVector(S):S=Gn.checkMatrix(S),S.rows!==ae.rows)throw new Error("Y should have the same number of rows as X");Et=S.getColumnVector(0)}else Et=ae.getColumnVector(0);for(var st=1,Pt,$t,Ht,Br,hn=0;hnNe;hn++)Ht=ae.transpose().mmul(Et).div(Et.transpose().mmul(Et).get(0,0)),Ht=Ht.div(Ht.norm()),Pt=ae.mmul(Ht).div(Ht.transpose().mmul(Ht).get(0,0)),hn>0&&(st=Pt.clone().sub(Br).pow(2).sum()),Br=Pt.clone(),S?($t=S.transpose().mmul(Pt).div(Pt.transpose().mmul(Pt).get(0,0)),$t=$t.div($t.norm()),Et=S.mmul($t).div($t.transpose().mmul($t).get(0,0))):Et=Pt;if(S){var Ot=ae.transpose().mmul(Pt).div(Pt.transpose().mmul(Pt).get(0,0));Ot=Ot.div(Ot.norm());var Qt=ae.clone().sub(Pt.clone().mmul(Ot.transpose())),pr=Et.transpose().mmul(Pt).div(Pt.transpose().mmul(Pt).get(0,0)),en=S.clone().sub(Pt.clone().mulS(pr.get(0,0)).mmul($t.transpose()));this.t=Pt,this.p=Ot.transpose(),this.w=Ht.transpose(),this.q=$t,this.u=Et,this.s=Pt.transpose().mmul(Pt),this.xResidual=Qt,this.yResidual=en,this.betas=pr}else this.w=Ht.transpose(),this.s=Pt.transpose().mmul(Pt).sqrt(),V?this.t=Pt.clone().div(this.s.get(0,0)):this.t=Pt,this.xResidual=ae.sub(Pt.mmul(Ht.transpose()))})},48168:function(or,U,z){var B=z(39092),j={};for(var R in B)B.hasOwnProperty(R)&&(j[B[R]]=R);var A=or.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var N in A)if(A.hasOwnProperty(N)){if(!("channels"in A[N]))throw new Error("missing channels property: "+N);if(!("labels"in A[N]))throw new Error("missing channel labels property: "+N);if(A[N].labels.length!==A[N].channels)throw new Error("channel and label counts mismatch: "+N);var L=A[N].channels,y=A[N].labels;delete A[N].channels,delete A[N].labels,Object.defineProperty(A[N],"channels",{value:L}),Object.defineProperty(A[N],"labels",{value:y})}A.rgb.hsl=function(v){var g=v[0]/255,d=v[1]/255,_=v[2]/255,E=Math.min(g,d,_),w=Math.max(g,d,_),T=w-E,k,b,m;return w===E?k=0:g===w?k=(d-_)/T:d===w?k=2+(_-g)/T:_===w&&(k=4+(g-d)/T),k=Math.min(k*60,360),k<0&&(k+=360),m=(E+w)/2,w===E?b=0:m<=.5?b=T/(w+E):b=T/(2-w-E),[k,b*100,m*100]},A.rgb.hsv=function(v){var g,d,_,E,w,T=v[0]/255,k=v[1]/255,b=v[2]/255,m=Math.max(T,k,b),$=m-Math.min(T,k,b),W=function(X){return(m-X)/6/$+1/2};return $===0?E=w=0:(w=$/m,g=W(T),d=W(k),_=W(b),T===m?E=_-d:k===m?E=1/3+g-_:b===m&&(E=2/3+d-g),E<0?E+=1:E>1&&(E-=1)),[E*360,w*100,m*100]},A.rgb.hwb=function(v){var g=v[0],d=v[1],_=v[2],E=A.rgb.hsl(v)[0],w=1/255*Math.min(g,Math.min(d,_));return _=1-1/255*Math.max(g,Math.max(d,_)),[E,w*100,_*100]},A.rgb.cmyk=function(v){var g=v[0]/255,d=v[1]/255,_=v[2]/255,E,w,T,k;return k=Math.min(1-g,1-d,1-_),E=(1-g-k)/(1-k)||0,w=(1-d-k)/(1-k)||0,T=(1-_-k)/(1-k)||0,[E*100,w*100,T*100,k*100]};function x(v,g){return Math.pow(v[0]-g[0],2)+Math.pow(v[1]-g[1],2)+Math.pow(v[2]-g[2],2)}A.rgb.keyword=function(v){var g=j[v];if(g)return g;var d=Infinity,_;for(var E in B)if(B.hasOwnProperty(E)){var w=B[E],T=x(v,w);T.04045?Math.pow((g+.055)/1.055,2.4):g/12.92,d=d>.04045?Math.pow((d+.055)/1.055,2.4):d/12.92,_=_>.04045?Math.pow((_+.055)/1.055,2.4):_/12.92;var E=g*.4124+d*.3576+_*.1805,w=g*.2126+d*.7152+_*.0722,T=g*.0193+d*.1192+_*.9505;return[E*100,w*100,T*100]},A.rgb.lab=function(v){var g=A.rgb.xyz(v),d=g[0],_=g[1],E=g[2],w,T,k;return d/=95.047,_/=100,E/=108.883,d=d>.008856?Math.pow(d,1/3):7.787*d+16/116,_=_>.008856?Math.pow(_,1/3):7.787*_+16/116,E=E>.008856?Math.pow(E,1/3):7.787*E+16/116,w=116*_-16,T=500*(d-_),k=200*(_-E),[w,T,k]},A.hsl.rgb=function(v){var g=v[0]/360,d=v[1]/100,_=v[2]/100,E,w,T,k,b;if(d===0)return b=_*255,[b,b,b];_<.5?w=_*(1+d):w=_+d-_*d,E=2*_-w,k=[0,0,0];for(var m=0;m<3;m++)T=g+1/3*-(m-1),T<0&&T++,T>1&&T--,6*T<1?b=E+(w-E)*6*T:2*T<1?b=w:3*T<2?b=E+(w-E)*(2/3-T)*6:b=E,k[m]=b*255;return k},A.hsl.hsv=function(v){var g=v[0],d=v[1]/100,_=v[2]/100,E=d,w=Math.max(_,.01),T,k;return _*=2,d*=_<=1?_:2-_,E*=w<=1?w:2-w,k=(_+d)/2,T=_===0?2*E/(w+E):2*d/(_+d),[g,T*100,k*100]},A.hsv.rgb=function(v){var g=v[0]/60,d=v[1]/100,_=v[2]/100,E=Math.floor(g)%6,w=g-Math.floor(g),T=255*_*(1-d),k=255*_*(1-d*w),b=255*_*(1-d*(1-w));switch(_*=255,E){case 0:return[_,b,T];case 1:return[k,_,T];case 2:return[T,_,b];case 3:return[T,k,_];case 4:return[b,T,_];case 5:return[_,T,k]}},A.hsv.hsl=function(v){var g=v[0],d=v[1]/100,_=v[2]/100,E=Math.max(_,.01),w,T,k;return k=(2-d)*_,w=(2-d)*E,T=d*E,T/=w<=1?w:2-w,T=T||0,k/=2,[g,T*100,k*100]},A.hwb.rgb=function(v){var g=v[0]/360,d=v[1]/100,_=v[2]/100,E=d+_,w,T,k,b;E>1&&(d/=E,_/=E),w=Math.floor(6*g),T=1-_,k=6*g-w,(w&1)!=0&&(k=1-k),b=d+k*(T-d);var m,$,W;switch(w){default:case 6:case 0:m=T,$=b,W=d;break;case 1:m=b,$=T,W=d;break;case 2:m=d,$=T,W=b;break;case 3:m=d,$=b,W=T;break;case 4:m=b,$=d,W=T;break;case 5:m=T,$=d,W=b;break}return[m*255,$*255,W*255]},A.cmyk.rgb=function(v){var g=v[0]/100,d=v[1]/100,_=v[2]/100,E=v[3]/100,w,T,k;return w=1-Math.min(1,g*(1-E)+E),T=1-Math.min(1,d*(1-E)+E),k=1-Math.min(1,_*(1-E)+E),[w*255,T*255,k*255]},A.xyz.rgb=function(v){var g=v[0]/100,d=v[1]/100,_=v[2]/100,E,w,T;return E=g*3.2406+d*-1.5372+_*-.4986,w=g*-.9689+d*1.8758+_*.0415,T=g*.0557+d*-.204+_*1.057,E=E>.0031308?1.055*Math.pow(E,1/2.4)-.055:E*12.92,w=w>.0031308?1.055*Math.pow(w,1/2.4)-.055:w*12.92,T=T>.0031308?1.055*Math.pow(T,1/2.4)-.055:T*12.92,E=Math.min(Math.max(0,E),1),w=Math.min(Math.max(0,w),1),T=Math.min(Math.max(0,T),1),[E*255,w*255,T*255]},A.xyz.lab=function(v){var g=v[0],d=v[1],_=v[2],E,w,T;return g/=95.047,d/=100,_/=108.883,g=g>.008856?Math.pow(g,1/3):7.787*g+16/116,d=d>.008856?Math.pow(d,1/3):7.787*d+16/116,_=_>.008856?Math.pow(_,1/3):7.787*_+16/116,E=116*d-16,w=500*(g-d),T=200*(d-_),[E,w,T]},A.lab.xyz=function(v){var g=v[0],d=v[1],_=v[2],E,w,T;w=(g+16)/116,E=d/500+w,T=w-_/200;var k=Math.pow(w,3),b=Math.pow(E,3),m=Math.pow(T,3);return w=k>.008856?k:(w-16/116)/7.787,E=b>.008856?b:(E-16/116)/7.787,T=m>.008856?m:(T-16/116)/7.787,E*=95.047,w*=100,T*=108.883,[E,w,T]},A.lab.lch=function(v){var g=v[0],d=v[1],_=v[2],E,w,T;return E=Math.atan2(_,d),w=E*360/2/Math.PI,w<0&&(w+=360),T=Math.sqrt(d*d+_*_),[g,T,w]},A.lch.lab=function(v){var g=v[0],d=v[1],_=v[2],E,w,T;return T=_/360*2*Math.PI,E=d*Math.cos(T),w=d*Math.sin(T),[g,E,w]},A.rgb.ansi16=function(v){var g=v[0],d=v[1],_=v[2],E=1 in arguments?arguments[1]:A.rgb.hsv(v)[2];if(E=Math.round(E/50),E===0)return 30;var w=30+(Math.round(_/255)<<2|Math.round(d/255)<<1|Math.round(g/255));return E===2&&(w+=60),w},A.hsv.ansi16=function(v){return A.rgb.ansi16(A.hsv.rgb(v),v[2])},A.rgb.ansi256=function(v){var g=v[0],d=v[1],_=v[2];if(g===d&&d===_)return g<8?16:g>248?231:Math.round((g-8)/247*24)+232;var E=16+36*Math.round(g/255*5)+6*Math.round(d/255*5)+Math.round(_/255*5);return E},A.ansi16.rgb=function(v){var g=v%10;if(g===0||g===7)return v>50&&(g+=3.5),g=g/10.5*255,[g,g,g];var d=(~~(v>50)+1)*.5,_=(g&1)*d*255,E=(g>>1&1)*d*255,w=(g>>2&1)*d*255;return[_,E,w]},A.ansi256.rgb=function(v){if(v>=232){var g=(v-232)*10+8;return[g,g,g]}v-=16;var d,_=Math.floor(v/36)/5*255,E=Math.floor((d=v%36)/6)/5*255,w=d%6/5*255;return[_,E,w]},A.rgb.hex=function(v){var g=((Math.round(v[0])&255)<<16)+((Math.round(v[1])&255)<<8)+(Math.round(v[2])&255),d=g.toString(16).toUpperCase();return"000000".substring(d.length)+d},A.hex.rgb=function(v){var g=v.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!g)return[0,0,0];var d=g[0];g[0].length===3&&(d=d.split("").map(function(k){return k+k}).join(""));var _=parseInt(d,16),E=_>>16&255,w=_>>8&255,T=_&255;return[E,w,T]},A.rgb.hcg=function(v){var g=v[0]/255,d=v[1]/255,_=v[2]/255,E=Math.max(Math.max(g,d),_),w=Math.min(Math.min(g,d),_),T=E-w,k,b;return T<1?k=w/(1-T):k=0,T<=0?b=0:E===g?b=(d-_)/T%6:E===d?b=2+(_-g)/T:b=4+(g-d)/T+4,b/=6,b%=1,[b*360,T*100,k*100]},A.hsl.hcg=function(v){var g=v[1]/100,d=v[2]/100,_=1,E=0;return d<.5?_=2*g*d:_=2*g*(1-d),_<1&&(E=(d-.5*_)/(1-_)),[v[0],_*100,E*100]},A.hsv.hcg=function(v){var g=v[1]/100,d=v[2]/100,_=g*d,E=0;return _<1&&(E=(d-_)/(1-_)),[v[0],_*100,E*100]},A.hcg.rgb=function(v){var g=v[0]/360,d=v[1]/100,_=v[2]/100;if(d===0)return[_*255,_*255,_*255];var E=[0,0,0],w=g%1*6,T=w%1,k=1-T,b=0;switch(Math.floor(w)){case 0:E[0]=1,E[1]=T,E[2]=0;break;case 1:E[0]=k,E[1]=1,E[2]=0;break;case 2:E[0]=0,E[1]=1,E[2]=T;break;case 3:E[0]=0,E[1]=k,E[2]=1;break;case 4:E[0]=T,E[1]=0,E[2]=1;break;default:E[0]=1,E[1]=0,E[2]=k}return b=(1-d)*_,[(d*E[0]+b)*255,(d*E[1]+b)*255,(d*E[2]+b)*255]},A.hcg.hsv=function(v){var g=v[1]/100,d=v[2]/100,_=g+d*(1-g),E=0;return _>0&&(E=g/_),[v[0],E*100,_*100]},A.hcg.hsl=function(v){var g=v[1]/100,d=v[2]/100,_=d*(1-g)+.5*g,E=0;return _>0&&_<.5?E=g/(2*_):_>=.5&&_<1&&(E=g/(2*(1-_))),[v[0],E*100,_*100]},A.hcg.hwb=function(v){var g=v[1]/100,d=v[2]/100,_=g+d*(1-g);return[v[0],(_-g)*100,(1-_)*100]},A.hwb.hcg=function(v){var g=v[1]/100,d=v[2]/100,_=1-d,E=_-g,w=0;return E<1&&(w=(_-E)/(1-E)),[v[0],E*100,w*100]},A.apple.rgb=function(v){return[v[0]/65535*255,v[1]/65535*255,v[2]/65535*255]},A.rgb.apple=function(v){return[v[0]/255*65535,v[1]/255*65535,v[2]/255*65535]},A.gray.rgb=function(v){return[v[0]/100*255,v[0]/100*255,v[0]/100*255]},A.gray.hsl=A.gray.hsv=function(v){return[0,0,v[0]]},A.gray.hwb=function(v){return[0,100,v[0]]},A.gray.cmyk=function(v){return[0,0,0,v[0]]},A.gray.lab=function(v){return[v[0],0,0]},A.gray.hex=function(v){var g=Math.round(v[0]/100*255)&255,d=(g<<16)+(g<<8)+g,_=d.toString(16).toUpperCase();return"000000".substring(_.length)+_},A.rgb.gray=function(v){var g=(v[0]+v[1]+v[2])/3;return[g/255*100]}},12085:function(or,U,z){var B=z(48168),j=z(4111),R={},A=Object.keys(B);function N(y){var x=function(v){return v==null?v:(arguments.length>1&&(v=Array.prototype.slice.call(arguments)),y(v))};return"conversion"in y&&(x.conversion=y.conversion),x}function L(y){var x=function(v){if(v==null)return v;arguments.length>1&&(v=Array.prototype.slice.call(arguments));var g=y(v);if(typeof g=="object")for(var d=g.length,_=0;_=4&&v[3]!==1&&(g=", "+v[3]),"hwb("+v[0]+", "+v[1]+"%, "+v[2]+"%"+g+")"},L.to.keyword=function(v){return A[v.slice(0,3)]};function y(v,g,d){return Math.min(Math.max(g,v),d)}function x(v){var g=Math.round(v).toString(16).toUpperCase();return g.length<2?"0"+g:g}},6767:function(or,U,z){"use strict";var B=z(19818),j=z(12085),R=[].slice,A=["keyword","gray","hex"],N={};Object.keys(j).forEach(function(w){N[R.call(j[w].labels).sort().join("")]=w});var L={};function y(w,T){if(!(this instanceof y))return new y(w,T);if(T&&T in A&&(T=null),T&&!(T in j))throw new Error("Unknown model: "+T);var k,b;if(w==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(w instanceof y)this.model=w.model,this.color=w.color.slice(),this.valpha=w.valpha;else if(typeof w=="string"){var m=B.get(w);if(m===null)throw new Error("Unable to parse color from string: "+w);this.model=m.model,b=j[this.model].channels,this.color=m.value.slice(0,b),this.valpha=typeof m.value[b]=="number"?m.value[b]:1}else if(w.length){this.model=T||"rgb",b=j[this.model].channels;var $=R.call(w,0,b);this.color=E($,b),this.valpha=typeof w[b]=="number"?w[b]:1}else if(typeof w=="number")w&=16777215,this.model="rgb",this.color=[w>>16&255,w>>8&255,w&255],this.valpha=1;else{this.valpha=1;var W=Object.keys(w);"alpha"in w&&(W.splice(W.indexOf("alpha"),1),this.valpha=typeof w.alpha=="number"?w.alpha:0);var X=W.sort().join("");if(!(X in N))throw new Error("Unable to parse color from object: "+JSON.stringify(w));this.model=N[X];var H=j[this.model].labels,Q=[];for(k=0;kk?(T+.05)/(k+.05):(k+.05)/(T+.05)},level:function(w){var T=this.contrast(w);return T>=7.1?"AAA":T>=4.5?"AA":""},isDark:function(){var w=this.rgb().color,T=(w[0]*299+w[1]*587+w[2]*114)/1e3;return T<128},isLight:function(){return!this.isDark()},negate:function(){for(var w=this.rgb(),T=0;T<3;T++)w.color[T]=255-w.color[T];return w},lighten:function(w){var T=this.hsl();return T.color[2]+=T.color[2]*w,T},darken:function(w){var T=this.hsl();return T.color[2]-=T.color[2]*w,T},saturate:function(w){var T=this.hsl();return T.color[1]+=T.color[1]*w,T},desaturate:function(w){var T=this.hsl();return T.color[1]-=T.color[1]*w,T},whiten:function(w){var T=this.hwb();return T.color[1]+=T.color[1]*w,T},blacken:function(w){var T=this.hwb();return T.color[2]+=T.color[2]*w,T},grayscale:function(){var w=this.rgb().color,T=w[0]*.3+w[1]*.59+w[2]*.11;return y.rgb(T,T,T)},fade:function(w){return this.alpha(this.valpha-this.valpha*w)},opaquer:function(w){return this.alpha(this.valpha+this.valpha*w)},rotate:function(w){var T=this.hsl(),k=T.color[0];return k=(k+w)%360,k=k<0?360+k:k,T.color[0]=k,T},mix:function(w,T){if(!w||!w.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof w);var k=w.rgb(),b=this.rgb(),m=T===void 0?.5:T,$=2*m-1,W=k.alpha()-b.alpha(),X=(($*W==-1?$:($+W)/(1+$*W))+1)/2,H=1-X;return y.rgb(X*k.red()+H*b.red(),X*k.green()+H*b.green(),X*k.blue()+H*b.blue(),k.alpha()*m+b.alpha()*(1-m))}},Object.keys(j).forEach(function(w){if(A.indexOf(w)===-1){var T=j[w].channels;y.prototype[w]=function(){if(this.model===w)return new y(this);if(arguments.length)return new y(arguments,w);var k=typeof arguments[T]=="number"?T:this.valpha;return new y(_(j[this.model][w].raw(this.color)).concat(k),w)},y[w]=function(k){return typeof k=="number"&&(k=E(R.call(arguments),T)),new y(k,w)}}});function x(w,T){return Number(w.toFixed(T))}function v(w){return function(T){return x(T,w)}}function g(w,T,k){return w=Array.isArray(w)?w:[w],w.forEach(function(b){(L[b]||(L[b]=[]))[T]=k}),w=w[0],function(b){var m;return arguments.length?(k&&(b=k(b)),m=this[w](),m.color[T]=b,m):(m=this[w]().color[T],k&&(m=k(m)),m)}}function d(w){return function(T){return Math.max(0,Math.min(w,T))}}function _(w){return Array.isArray(w)?w:[w]}function E(w,T){for(var k=0;k=(Me=(Se+be)/2))?Se=Me:be=Me,(ht=J>=(De=(Ie+pe)/2))?Ie=De:pe=De,fe=de,!(de=de[Rt=ht<<1|Ze]))return fe[Rt]=Te,Q;if(Ue=+Q._x.call(null,de.data),nt=+Q._y.call(null,de.data),q===Ue&&J===nt)return Te.next=de,fe?fe[Rt]=Te:Q._root=Te,Q;do fe=fe?fe[Rt]=new Array(4):Q._root=new Array(4),(Ze=q>=(Me=(Se+be)/2))?Se=Me:be=Me,(ht=J>=(De=(Ie+pe)/2))?Ie=De:pe=De;while((Rt=ht<<1|Ze)==(tr=(nt>=De)<<1|Ue>=Me));return fe[tr]=de,fe[Rt]=Te,Q}function R(Q){var q,J,te=Q.length,fe,de,Te=new Array(te),Se=new Array(te),Ie=Infinity,be=Infinity,pe=-Infinity,Me=-Infinity;for(J=0;Jpe&&(pe=fe),deMe&&(Me=de));if(Ie>pe||be>Me)return this;for(this.cover(Ie,be).cover(pe,Me),J=0;JQ||Q>=fe||te>q||q>=de;)switch(be=(qpe||(Se=nt.y0)>Me||(Ie=nt.x1)=Rt)<<1|Q>=ht)&&(nt=De[De.length-1],De[De.length-1]=De[De.length-1-Ze],De[De.length-1-Ze]=nt)}else{var tr=Q-+this._x.call(null,Ue.data),Qe=q-+this._y.call(null,Ue.data),lt=tr*tr+Qe*Qe;if(lt=(De=(Te+Ie)/2))?Te=De:Ie=De,(Ze=Me>=(Ue=(Se+be)/2))?Se=Ue:be=Ue,q=J,!(J=J[ht=Ze<<1|nt]))return this;if(!J.length)break;(q[ht+1&3]||q[ht+2&3]||q[ht+3&3])&&(te=q,Rt=ht)}for(;J.data!==Q;)if(fe=J,!(J=J.next))return this;return(de=J.next)&&delete J.next,fe?(de?fe.next=de:delete fe.next,this):q?(de?q[ht]=de:delete q[ht],(J=q[0]||q[1]||q[2]||q[3])&&J===(q[3]||q[2]||q[1]||q[0])&&!J.length&&(te?te[Rt]=J:this._root=J),this):(this._root=de,this)}function g(Q){for(var q=0,J=Q.length;q-1},$=function(f,M){var G=this.__data__,Y=w(G,f);return Y<0?(++this.size,G.push([f,M])):G[Y][1]=M,this};function W(f){var M=-1,G=f==null?0:f.length;for(this.clear();++M-1&&f%1==0&&f-1&&f%1==0&&f<=9007199254740991},$t={};$t["[object Float32Array]"]=$t["[object Float64Array]"]=$t["[object Int8Array]"]=$t["[object Int16Array]"]=$t["[object Int32Array]"]=$t["[object Uint8Array]"]=$t["[object Uint8ClampedArray]"]=$t["[object Uint16Array]"]=$t["[object Uint32Array]"]=!0,$t["[object Arguments]"]=$t["[object Array]"]=$t["[object ArrayBuffer]"]=$t["[object Boolean]"]=$t["[object DataView]"]=$t["[object Date]"]=$t["[object Error]"]=$t["[object Function]"]=$t["[object Map]"]=$t["[object Number]"]=$t["[object Object]"]=$t["[object RegExp]"]=$t["[object Set]"]=$t["[object String]"]=$t["[object WeakMap]"]=!1;var Ht=function(f){return ae(f)&&Pt(f.length)&&!!$t[Ze(f)]},Br=function(f){return function(M){return f(M)}},hn=d(function(f,M){var G=M&&!M.nodeType&&M,Y=G&&f&&!f.nodeType&&f,re=Y&&Y.exports===G&&te.process,ie=function(){try{var le=Y&&Y.require&&Y.require("util").types;return le||re&&re.binding&&re.binding("util")}catch(ge){}}();f.exports=ie}),Ot=hn&&hn.isTypedArray,Qt=Ot?Br(Ot):Ht,pr=Object.prototype.hasOwnProperty,en=function(f,M){var G=xe(f),Y=!G&&he(f),re=!G&&!Y&&Ne(f),ie=!G&&!Y&&!re&&Qt(f),le=G||Y||re||ie,ge=le?ne(f.length,String):[],me=ge.length;for(var Le in f)!M&&!pr.call(f,Le)||le&&(Le=="length"||re&&(Le=="offset"||Le=="parent")||ie&&(Le=="buffer"||Le=="byteLength"||Le=="byteOffset")||st(Le,me))||ge.push(Le);return ge},Nr=Object.prototype,ta=function(f){var M=f&&f.constructor;return f===(typeof M=="function"&&M.prototype||Nr)},kn=function(f,M){return function(G){return f(M(G))}},En=kn(Object.keys,Object),Rn=Object.prototype.hasOwnProperty,Yn=function(f){if(!ta(f))return En(f);var M=[];for(var G in Object(f))Rn.call(f,G)&&G!="constructor"&&M.push(G);return M},bn=function(f){return f!=null&&Pt(f.length)&&!tr(f)},je=function(f){return bn(f)?en(f):Yn(f)},Ce=function(f,M){return f&&rt(M,je(M),f)},Xe=function(f){var M=[];if(f!=null)for(var G in Object(f))M.push(G);return M},ut=Object.prototype.hasOwnProperty,ot=function(f){if(!ht(f))return Xe(f);var M=ta(f),G=[];for(var Y in f)(Y!="constructor"||!M&&ut.call(f,Y))&&G.push(Y);return G},bt=function(f){return bn(f)?en(f,!0):ot(f)},Xt=function(f,M){return f&&rt(M,bt(M),f)},wr=d(function(f,M){var G=M&&!M.nodeType&&M,Y=G&&f&&!f.nodeType&&f,re=Y&&Y.exports===G?de.Buffer:void 0,ie=re?re.allocUnsafe:void 0;f.exports=function(le,ge){if(ge)return le.slice();var me=le.length,Le=ie?ie(me):new le.constructor(me);return le.copy(Le),Le}}),Wr=function(f,M){var G=-1,Y=f.length;for(M||(M=Array(Y));++Gge))return!1;var Le=ie.get(f),ze=ie.get(M);if(Le&&ze)return Le==M&&ze==f;var Fe=-1,tt=!0,Mt=2&G?new Wi:void 0;for(ie.set(f,M),ie.set(M,f);++Fe0&&Y(me)?G>1?f(me,G-1,Y,re,ie):Ia(ie,me):re||(ie[ie.length]=me)}return ie},fi=function(f,M,G){switch(G.length){case 0:return f.call(M);case 1:return f.call(M,G[0]);case 2:return f.call(M,G[0],G[1]);case 3:return f.call(M,G[0],G[1],G[2])}return f.apply(M,G)},bi=Math.max,ha=function(f,M,G){return M=bi(M===void 0?f.length-1:M,0),function(){for(var Y=arguments,re=-1,ie=bi(Y.length-M,0),le=Array(ie);++re0){if(++M>=800)return arguments[0]}else M=0;return f.apply(void 0,arguments)}}(Oa),oo=function(f,M){return Wo(ha(f,M,Zi),f+"")},Qs=function(f,M,G,Y){for(var re=f.length,ie=G+(Y?1:-1);Y?ie--:++ie-1},yu=function(f,M,G){for(var Y=-1,re=f==null?0:f.length;++Y=200){var Le=M?null:Of(f);if(Le)return ji(Le);le=!1,re=go,me=new Wi}else me=M?[]:ge;e:for(;++Yie){var le=re;re=ie,ie=le}return re+""+ie+""+(Qr.isUndefined(Y)?"\0":Y)}function Df(f,M,G,Y){var re=""+M,ie=""+G;if(!f&&re>ie){var le=re;re=ie,ie=le}var ge={v:re,w:ie};return Y&&(ge.name=Y),ge}function bu(f,M){return ls(f,M.v,M.w,M.name)}ca.prototype._nodeCount=0,ca.prototype._edgeCount=0,ca.prototype.isDirected=function(){return this._isDirected},ca.prototype.isMultigraph=function(){return this._isMultigraph},ca.prototype.isCompound=function(){return this._isCompound},ca.prototype.setGraph=function(f){return this._label=f,this},ca.prototype.graph=function(){return this._label},ca.prototype.setDefaultNodeLabel=function(f){return Qr.isFunction(f)||(f=Qr.constant(f)),this._defaultNodeLabelFn=f,this},ca.prototype.nodeCount=function(){return this._nodeCount},ca.prototype.nodes=function(){return Qr.keys(this._nodes)},ca.prototype.sources=function(){var f=this;return Qr.filter(this.nodes(),function(M){return Qr.isEmpty(f._in[M])})},ca.prototype.sinks=function(){var f=this;return Qr.filter(this.nodes(),function(M){return Qr.isEmpty(f._out[M])})},ca.prototype.setNodes=function(f,M){var G=arguments,Y=this;return Qr.each(f,function(re){G.length>1?Y.setNode(re,M):Y.setNode(re)}),this},ca.prototype.setNode=function(f,M){return Qr.has(this._nodes,f)?(arguments.length>1&&(this._nodes[f]=M),this):(this._nodes[f]=arguments.length>1?M:this._defaultNodeLabelFn(f),this._isCompound&&(this._parent[f]="\0",this._children[f]={},this._children["\0"][f]=!0),this._in[f]={},this._preds[f]={},this._out[f]={},this._sucs[f]={},++this._nodeCount,this)},ca.prototype.node=function(f){return this._nodes[f]},ca.prototype.hasNode=function(f){return Qr.has(this._nodes,f)},ca.prototype.removeNode=function(f){var M=this;if(Qr.has(this._nodes,f)){var G=function(Y){M.removeEdge(M._edgeObjs[Y])};delete this._nodes[f],this._isCompound&&(this._removeFromParentsChildList(f),delete this._parent[f],Qr.each(this.children(f),function(Y){M.setParent(Y)}),delete this._children[f]),Qr.each(Qr.keys(this._in[f]),G),delete this._in[f],delete this._preds[f],Qr.each(Qr.keys(this._out[f]),G),delete this._out[f],delete this._sucs[f],--this._nodeCount}return this},ca.prototype.setParent=function(f,M){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(Qr.isUndefined(M))M="\0";else{for(var G=M+="";!Qr.isUndefined(G);G=this.parent(G))if(G===f)throw new Error("Setting "+M+" as parent of "+f+" would create a cycle");this.setNode(M)}return this.setNode(f),this._removeFromParentsChildList(f),this._parent[f]=M,this._children[M][f]=!0,this},ca.prototype._removeFromParentsChildList=function(f){delete this._children[this._parent[f]][f]},ca.prototype.parent=function(f){if(this._isCompound){var M=this._parent[f];if(M!=="\0")return M}},ca.prototype.children=function(f){if(Qr.isUndefined(f)&&(f="\0"),this._isCompound){var M=this._children[f];if(M)return Qr.keys(M)}else{if(f==="\0")return this.nodes();if(this.hasNode(f))return[]}},ca.prototype.predecessors=function(f){var M=this._preds[f];if(M)return Qr.keys(M)},ca.prototype.successors=function(f){var M=this._sucs[f];if(M)return Qr.keys(M)},ca.prototype.neighbors=function(f){var M=this.predecessors(f);if(M)return Qr.union(M,this.successors(f))},ca.prototype.isLeaf=function(f){return(this.isDirected()?this.successors(f):this.neighbors(f)).length===0},ca.prototype.filterNodes=function(f){var M=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});M.setGraph(this.graph());var G=this;Qr.each(this._nodes,function(ie,le){f(le)&&M.setNode(le,ie)}),Qr.each(this._edgeObjs,function(ie){M.hasNode(ie.v)&&M.hasNode(ie.w)&&M.setEdge(ie,G.edge(ie))});var Y={};function re(ie){var le=G.parent(ie);return le===void 0||M.hasNode(le)?(Y[ie]=le,le):le in Y?Y[le]:re(le)}return this._isCompound&&Qr.each(M.nodes(),function(ie){M.setParent(ie,re(ie))}),M},ca.prototype.setDefaultEdgeLabel=function(f){return Qr.isFunction(f)||(f=Qr.constant(f)),this._defaultEdgeLabelFn=f,this},ca.prototype.edgeCount=function(){return this._edgeCount},ca.prototype.edges=function(){return Qr.values(this._edgeObjs)},ca.prototype.setPath=function(f,M){var G=this,Y=arguments;return Qr.reduce(f,function(re,ie){return Y.length>1?G.setEdge(re,ie,M):G.setEdge(re,ie),ie}),this},ca.prototype.setEdge=function(){var f,M,G,Y,re=!1,ie=arguments[0];typeof ie=="object"&&ie!==null&&"v"in ie?(f=ie.v,M=ie.w,G=ie.name,arguments.length===2&&(Y=arguments[1],re=!0)):(f=ie,M=arguments[1],G=arguments[3],arguments.length>2&&(Y=arguments[2],re=!0)),f=""+f,M=""+M,Qr.isUndefined(G)||(G=""+G);var le=ls(this._isDirected,f,M,G);if(Qr.has(this._edgeLabels,le))return re&&(this._edgeLabels[le]=Y),this;if(!Qr.isUndefined(G)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(f),this.setNode(M),this._edgeLabels[le]=re?Y:this._defaultEdgeLabelFn(f,M,G);var ge=Df(this._isDirected,f,M,G);return f=ge.v,M=ge.w,Object.freeze(ge),this._edgeObjs[le]=ge,Lf(this._preds[M],f),Lf(this._sucs[f],M),this._in[M][le]=ge,this._out[f][le]=ge,this._edgeCount++,this},ca.prototype.edge=function(f,M,G){var Y=arguments.length===1?bu(this._isDirected,arguments[0]):ls(this._isDirected,f,M,G);return this._edgeLabels[Y]},ca.prototype.hasEdge=function(f,M,G){var Y=arguments.length===1?bu(this._isDirected,arguments[0]):ls(this._isDirected,f,M,G);return Qr.has(this._edgeLabels,Y)},ca.prototype.removeEdge=function(f,M,G){var Y=arguments.length===1?bu(this._isDirected,arguments[0]):ls(this._isDirected,f,M,G),re=this._edgeObjs[Y];return re&&(f=re.v,M=re.w,delete this._edgeLabels[Y],delete this._edgeObjs[Y],Eu(this._preds[M],f),Eu(this._sucs[f],M),delete this._in[M][Y],delete this._out[f][Y],this._edgeCount--),this},ca.prototype.inEdges=function(f,M){var G=this._in[f];if(G){var Y=Qr.values(G);return M?Qr.filter(Y,function(re){return re.v===M}):Y}},ca.prototype.outEdges=function(f,M){var G=this._out[f];if(G){var Y=Qr.values(G);return M?Qr.filter(Y,function(re){return re.w===M}):Y}},ca.prototype.nodeEdges=function(f,M){var G=this.inEdges(f,M);if(G)return G.concat(this.outEdges(f,M))};var qu={Graph:Os,version:"2.1.8"},ef={write:function(f){var M={options:{directed:f.isDirected(),multigraph:f.isMultigraph(),compound:f.isCompound()},nodes:Nf(f),edges:Lo(f)};return Qr.isUndefined(f.graph())||(M.value=Qr.clone(f.graph())),M},read:function(f){var M=new Os(f.options).setGraph(f.value);return Qr.each(f.nodes,function(G){M.setNode(G.v,G.value),G.parent&&M.setParent(G.v,G.parent)}),Qr.each(f.edges,function(G){M.setEdge({v:G.v,w:G.w,name:G.name},G.value)}),M}};function Nf(f){return Qr.map(f.nodes(),function(M){var G=f.node(M),Y=f.parent(M),re={v:M};return Qr.isUndefined(G)||(re.value=G),Qr.isUndefined(Y)||(re.parent=Y),re})}function Lo(f){return Qr.map(f.edges(),function(M){var G=f.edge(M),Y={v:M.v,w:M.w};return Qr.isUndefined(M.name)||(Y.name=M.name),Qr.isUndefined(G)||(Y.value=G),Y})}var Pf=function(f){var M,G={},Y=[];function re(ie){Qr.has(G,ie)||(G[ie]=!0,M.push(ie),Qr.each(f.successors(ie),re),Qr.each(f.predecessors(ie),re))}return Qr.each(f.nodes(),function(ie){M=[],re(ie),M.length&&Y.push(M)}),Y},kf=xi;function xi(){this._arr=[],this._keyIndices={}}xi.prototype.size=function(){return this._arr.length},xi.prototype.keys=function(){return this._arr.map(function(f){return f.key})},xi.prototype.has=function(f){return Qr.has(this._keyIndices,f)},xi.prototype.priority=function(f){var M=this._keyIndices[f];if(M!==void 0)return this._arr[M].priority},xi.prototype.min=function(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key},xi.prototype.add=function(f,M){var G=this._keyIndices;if(f=String(f),!Qr.has(G,f)){var Y=this._arr,re=Y.length;return G[f]=re,Y.push({key:f,priority:M}),this._decrease(re),!0}return!1},xi.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var f=this._arr.pop();return delete this._keyIndices[f.key],this._heapify(0),f.key},xi.prototype.decrease=function(f,M){var G=this._keyIndices[f];if(M>this._arr[G].priority)throw new Error("New priority is greater than current priority. Key: "+f+" Old: "+this._arr[G].priority+" New: "+M);this._arr[G].priority=M,this._decrease(G)},xi.prototype._heapify=function(f){var M=this._arr,G=2*f,Y=G+1,re=f;G>1].priority0&&(me=Fe.removeMin(),(Le=ze[me]).distance!==Number.POSITIVE_INFINITY);)ge(me).forEach(tt);return ze}(f,String(M),G||As,Y||function(re){return f.outEdges(re)})},As=Qr.constant(1),rf=function(f,M,G){return Qr.transform(f.nodes(),function(Y,re){Y[re]=tf(f,re,M,G)},{})},nf=function(f){var M=0,G=[],Y={},re=[];function ie(le){var ge=Y[le]={onStack:!0,lowlink:M,index:M++};if(G.push(le),f.successors(le).forEach(function(ze){Qr.has(Y,ze)?Y[ze].onStack&&(ge.lowlink=Math.min(ge.lowlink,Y[ze].index)):(ie(ze),ge.lowlink=Math.min(ge.lowlink,Y[ze].lowlink))}),ge.lowlink===ge.index){var me,Le=[];do me=G.pop(),Y[me].onStack=!1,Le.push(me);while(le!==me);re.push(Le)}}return f.nodes().forEach(function(le){Qr.has(Y,le)||ie(le)}),re},dc=function(f){return Qr.filter(nf(f),function(M){return M.length>1||M.length===1&&f.hasEdge(M[0],M[0])})},hc=function(f,M,G){return function(Y,re,ie){var le={},ge=Y.nodes();return ge.forEach(function(me){le[me]={},le[me][me]={distance:0},ge.forEach(function(Le){me!==Le&&(le[me][Le]={distance:Number.POSITIVE_INFINITY})}),ie(me).forEach(function(Le){var ze=Le.v===me?Le.w:Le.v,Fe=re(Le);le[me][ze]={distance:Fe,predecessor:me}})}),ge.forEach(function(me){var Le=le[me];ge.forEach(function(ze){var Fe=le[ze];ge.forEach(function(tt){var Mt=Fe[me],sr=Le[tt],Tt=Fe[tt],Nt=Mt.distance+sr.distance;Nt0;){if(G=ie.removeMin(),Qr.has(re,G))Y.setEdge(G,re[G]);else{if(ge)throw new Error("Input graph is not connected: "+f);ge=!0}f.nodeEdges(G).forEach(le)}return Y},tarjan:nf,topsort:af},version:qu.version};try{ds=tl}catch(f){}ds||(ds=window.graphlib);var Do=ds,Bf=function(f){return vo(f,5)},hs=function(f,M,G){if(!ht(G))return!1;var Y=typeof M;return!!(Y=="number"?bn(G)&&st(M,G.length):Y=="string"&&M in G)&&E(G[M],f)},Ls=Object.prototype,yc=Ls.hasOwnProperty,wu=oo(function(f,M){f=Object(f);var G=-1,Y=M.length,re=Y>2?M[2]:void 0;for(re&&hs(M[0],M[1],re)&&(Y=1);++G-1?re[ie?M[le]:le]:void 0}},mc=/^\s+|\s+$/g,rl=/^[-+]0x[0-9a-f]+$/i,of=/^0b[01]+$/i,Ff=/^0o[0-7]+$/i,Gf=parseInt,Ec=function(f){if(typeof f=="number")return f;if(Eo(f))return NaN;if(ht(f)){var M=typeof f.valueOf=="function"?f.valueOf():f;f=ht(M)?M+"":M}if(typeof f!="string")return f===0?f:+f;f=f.replace(mc,"");var G=of.test(f);return G||Ff.test(f)?Gf(f.slice(2),G?2:8):rl.test(f)?NaN:+f},sf=function(f){return f?(f=Ec(f))===Infinity||f===-Infinity?17976931348623157e292*(f<0?-1:1):f==f?f:0:f===0?f:0},uf=function(f){var M=sf(f),G=M%1;return M==M?G?M-G:M:0},nl=Math.max,al=Ds(function(f,M,G){var Y=f==null?0:f.length;if(!Y)return-1;var re=G==null?0:uf(G);return re<0&&(re=nl(Y+re,0)),Qs(f,$i(M),re)}),bc=function(f){return(f==null?0:f.length)?Ha(f,1):[]},Js=function(f,M){return f==null?f:Ao(f,_i(M),bt)},il=function(f){var M=f==null?0:f.length;return M?f[M-1]:void 0},xc=function(f,M){var G={};return M=$i(M),as(f,function(Y,re,ie){va(G,re,M(Y,re,ie))}),G},Su=function(f,M,G){for(var Y=-1,re=f.length;++YM},ol=function(f){return f&&f.length?Su(f,Zi,jo):void 0},_u=function(f,M,G){(G!==void 0&&!E(f[M],G)||G===void 0&&!(M in f))&&va(f,M,G)},sl=Function.prototype,ul=Object.prototype,ki=sl.toString,fl=ul.hasOwnProperty,wc=ki.call(Object),Mu=function(f){if(!ae(f)||Ze(f)!="[object Object]")return!1;var M=Ba(f);if(M===null)return!0;var G=fl.call(M,"constructor")&&M.constructor;return typeof G=="function"&&G instanceof G&&ki.call(G)==wc},ff=function(f,M){if((M!=="constructor"||typeof f[M]!="function")&&M!="__proto__")return f[M]},To=function(f){return rt(f,bt(f))},Sc=function(f,M,G,Y,re,ie,le){var ge=ff(f,G),me=ff(M,G),Le=le.get(me);if(Le)_u(f,G,Le);else{var ze=ie?ie(ge,me,G+"",f,M,le):void 0,Fe=ze===void 0;if(Fe){var tt=xe(me),Mt=!tt&&Ne(me),sr=!tt&&!Mt&&Qt(me);ze=me,tt||Mt||sr?xe(ge)?ze=ge:Af(ge)?ze=Wr(ge):Mt?(Fe=!1,ze=wr(me,!0)):sr?(Fe=!1,ze=Li(me,!0)):ze=[]:Mu(me)||he(me)?(ze=ge,he(ge)?ze=To(ge):ht(ge)&&!tr(ge)||(ze=Di(me))):Fe=!1}Fe&&(le.set(me,ze),re(ze,me,Y,ie,le),le.delete(me)),_u(f,G,ze)}},qs=function f(M,G,Y,re,ie){M!==G&&Ao(G,function(le,ge){if(ie||(ie=new Pn),ht(le))Sc(M,G,ge,Y,f,re,ie);else{var me=re?re(ff(M,ge),le,ge+"",M,G,ie):void 0;me===void 0&&(me=le),_u(M,ge,me)}},bt)},Ns=function(f){return oo(function(M,G){var Y=-1,re=G.length,ie=re>1?G[re-1]:void 0,le=re>2?G[2]:void 0;for(ie=f.length>3&&typeof ie=="function"?(re--,ie):void 0,le&&hs(G[0],G[1],le)&&(ie=re<3?void 0:ie,re=1),M=Object(M);++YM||ie&&le&&me&&!ge&&!Le||Y&&le&&me||!G&&me||!re)return 1;if(!Y&&!ie&&!Le&&f=ge?me:me*(G[Y]=="desc"?-1:1)}return f.index-M.index},jf=function(f,M,G){M=M.length?io(M,function(ie){return xe(ie)?function(le){return fs(le,ie.length===1?ie[0]:ie)}:ie}):[Zi];var Y=-1;M=io(M,Br($i));var re=ue(f,function(ie,le,ge){return{criteria:io(M,function(me){return me(ie)}),index:++Y,value:ie}});return Tc(re,function(ie,le){return Wf(ie,le,G)})},cf=oo(function(f,M){if(f==null)return[];var G=M.length;return G>1&&hs(f,M[0],M[1])?M=[]:G>2&&hs(M[0],M[1],M[2])&&(M=[M[0]]),jf(f,Ha(M,1),[])}),Xf=0,Vf=function(f){var M=++Xf;return $s(f)+M},Iu=function(f,M,G){for(var Y=-1,re=f.length,ie=M.length,le={};++Y0;--Fe)if(ge=ie[Fe].dequeue()){me=me.concat(lf(re,ie,le,ge,!0));break}}}return me}(G.graph,G.buckets,G.zeroIdx);return gt.flatten(gt.map(Y,function(re){return f.outEdges(re.v,re.w)}),!0)},hl=gt.constant(1);function lf(f,M,G,Y,re){var ie=re?[]:void 0;return gt.forEach(f.inEdges(Y.v),function(le){var ge=f.edge(le),me=f.node(le.v);re&&ie.push({v:le.v,w:le.w}),me.out-=ge,Hf(M,G,me)}),gt.forEach(f.outEdges(Y.v),function(le){var ge=f.edge(le),me=le.w,Le=f.node(me);Le.in-=ge,Hf(M,G,Le)}),f.removeNode(Y.v),ie}function Hf(f,M,G){G.out?G.in?f[G.out-G.in+M].enqueue(G):f[f.length-1].enqueue(G):f[0].enqueue(G)}var Oc={run:function(f){var M=f.graph().acyclicer==="greedy"?dl(f,function(G){return function(Y){return G.edge(Y).weight}}(f)):function(G){var Y=[],re={},ie={};function le(ge){gt.has(ie,ge)||(ie[ge]=!0,re[ge]=!0,gt.forEach(G.outEdges(ge),function(me){gt.has(re,me.w)?Y.push(me):le(me.w)}),delete re[ge])}return gt.forEach(G.nodes(),le),Y}(f);gt.forEach(M,function(G){var Y=f.edge(G);f.removeEdge(G),Y.forwardName=G.name,Y.reversed=!0,f.setEdge(G.w,G.v,Y,gt.uniqueId("rev"))})},undo:function(f){gt.forEach(f.edges(),function(M){var G=f.edge(M);if(G.reversed){f.removeEdge(M);var Y=G.forwardName;delete G.reversed,delete G.forwardName,f.setEdge(M.w,M.v,G,Y)}})}},Zf=Do.Graph,Mi={addDummyNode:Au,simplify:function(f){var M=new Zf().setGraph(f.graph());return gt.forEach(f.nodes(),function(G){M.setNode(G,f.node(G))}),gt.forEach(f.edges(),function(G){var Y=M.edge(G.v,G.w)||{weight:0,minlen:1},re=f.edge(G);M.setEdge(G.v,G.w,{weight:Y.weight+re.weight,minlen:Math.max(Y.minlen,re.minlen)})}),M},asNonCompoundGraph:function(f){var M=new Zf({multigraph:f.isMultigraph()}).setGraph(f.graph());return gt.forEach(f.nodes(),function(G){f.children(G).length||M.setNode(G,f.node(G))}),gt.forEach(f.edges(),function(G){M.setEdge(G,f.edge(G))}),M},successorWeights:function(f){var M=gt.map(f.nodes(),function(G){var Y={};return gt.forEach(f.outEdges(G),function(re){Y[re.w]=(Y[re.w]||0)+f.edge(re).weight}),Y});return gt.zipObject(f.nodes(),M)},predecessorWeights:function(f){var M=gt.map(f.nodes(),function(G){var Y={};return gt.forEach(f.inEdges(G),function(re){Y[re.v]=(Y[re.v]||0)+f.edge(re).weight}),Y});return gt.zipObject(f.nodes(),M)},intersectRect:function(f,M){var G,Y,re=f.x,ie=f.y,le=M.x-re,ge=M.y-ie,me=f.width/2,Le=f.height/2;if(!le&&!ge)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(ge)*me>Math.abs(le)*Le?(ge<0&&(Le=-Le),G=Le*le/ge,Y=Le):(le<0&&(me=-me),G=me,Y=me*ge/le),{x:re+G,y:ie+Y}},buildLayerMatrix:function(f){var M=gt.map(gt.range(gi(f)+1),function(){return[]});return gt.forEach(f.nodes(),function(G){var Y=f.node(G),re=Y.rank;gt.isUndefined(re)||(M[re][Y.order]=G)}),M},normalizeRanks:function(f){var M=gt.min(gt.map(f.nodes(),function(G){return f.node(G).rank}));gt.forEach(f.nodes(),function(G){var Y=f.node(G);gt.has(Y,"rank")&&(Y.rank-=M)})},removeEmptyRanks:function(f){var M=gt.min(gt.map(f.nodes(),function(ie){return f.node(ie).rank})),G=[];gt.forEach(f.nodes(),function(ie){var le=f.node(ie).rank-M;G[le]||(G[le]=[]),G[le].push(ie)});var Y=0,re=f.graph().nodeRankFactor;gt.forEach(G,function(ie,le){gt.isUndefined(ie)&&le%re!=0?--Y:Y&>.forEach(ie,function(ge){f.node(ge).rank+=Y})})},addBorderNode:function(f,M,G,Y){var re={width:0,height:0};return arguments.length>=4&&(re.rank=G,re.order=Y),Au(f,"border",re,M)},maxRank:gi,partition:function(f,M){var G={lhs:[],rhs:[]};return gt.forEach(f,function(Y){M(Y)?G.lhs.push(Y):G.rhs.push(Y)}),G},time:function(f,M){var G=gt.now();try{return M()}finally{console.log(f+" time: "+(gt.now()-G)+"ms")}},notime:function(f,M){return M()}};function Au(f,M,G,Y){var re;do re=gt.uniqueId(Y);while(f.hasNode(re));return G.dummy=M,f.setNode(re,G),re}function gi(f){return gt.max(gt.map(f.nodes(),function(M){var G=f.node(M).rank;if(!gt.isUndefined(G))return G}))}var Lu={run:function(f){f.graph().dummyChains=[],gt.forEach(f.edges(),function(M){(function(G,Y){var re,ie,le,ge=Y.v,me=G.node(ge).rank,Le=Y.w,ze=G.node(Le).rank,Fe=Y.name,tt=G.edge(Y),Mt=tt.labelRank;if(ze!==me+1){for(G.removeEdge(Y),le=0,++me;mele.lim&&(ge=le,me=!0);var Le=gt.filter(M.edges(),function(ze){return me===Lc(f,f.node(ze.v),ge)&&me!==Lc(f,f.node(ze.w),ge)});return gt.minBy(Le,function(ze){return Fs(M,ze)})}function Gs(f,M,G,Y){var re=G.v,ie=G.w;f.removeEdge(re,ie),f.setEdge(Y.v,Y.w,{}),hf(f),nu(f,M),function(le,ge){var me=gt.find(le.nodes(),function(ze){return!ge.node(ze).parent}),Le=Du(le,me);Le=Le.slice(1),gt.forEach(Le,function(ze){var Fe=le.node(ze).parent,tt=ge.edge(ze,Fe),Mt=!1;tt||(tt=ge.edge(Fe,ze),Mt=!0),ge.node(ze).rank=ge.node(Fe).rank+(Mt?tt.minlen:-tt.minlen)})}(f,M)}function Lc(f,M,G){return G.low<=M.lim&&M.lim<=G.lim}Io.initLowLimValues=hf,Io.initCutValues=nu,Io.calcCutValue=Qf,Io.leaveEdge=qf,Io.enterEdge=Ac,Io.exchangeEdges=Gs;var Dc=Xo,Nc=function(f){switch(f.graph().ranker){case"network-simplex":Vo(f);break;case"tight-tree":(function(M){Dc(M),ru(M)})(f);break;case"longest-path":Pc(f);break;default:Vo(f)}},Pc=Dc;function Vo(f){ea(f)}var vl=function(f){var M=function(G){var Y={},re=0;function ie(le){var ge=re;gt.forEach(G.children(le),ie),Y[le]={low:ge,lim:re++}}return gt.forEach(G.children(),ie),Y}(f);gt.forEach(f.graph().dummyChains,function(G){for(var Y=f.node(G),re=Y.edgeObj,ie=function(Fe,tt,Mt,sr){var Tt,Nt,Lt=[],_r=[],Yr=Math.min(tt[Mt].low,tt[sr].low),Pr=Math.max(tt[Mt].lim,tt[sr].lim);Tt=Mt;do Tt=Fe.parent(Tt),Lt.push(Tt);while(Tt&&(tt[Tt].low>Yr||Pr>tt[Tt].lim));for(Nt=Tt,Tt=sr;(Tt=Fe.parent(Tt))!==Nt;)_r.push(Tt);return{path:Lt.concat(_r.reverse()),lca:Nt}}(f,M,re.v,re.w),le=ie.path,ge=ie.lca,me=0,Le=le[me],ze=!0;G!==re.w;){if(Y=f.node(G),ze){for(;(Le=le[me])!==ge&&f.node(Le).maxRank0;)ze%2&&(Fe+=ge[ze+1]),ge[ze=ze-1>>1]+=Le.weight;me+=Le.weight*Fe})),me}var ec=function(f,M){return gt.map(M,function(G){var Y=f.inEdges(G);if(Y.length){var re=gt.reduce(Y,function(ie,le){var ge=f.edge(le),me=f.node(le.v);return{sum:ie.sum+ge.weight*me.order,weight:ie.weight+ge.weight}},{sum:0,weight:0});return{v:G,barycenter:re.sum/re.weight,weight:re.weight}}return{v:G}})},gf=function(f,M){var G={};return gt.forEach(f,function(Y,re){var ie=G[Y.v]={indegree:0,in:[],out:[],vs:[Y.v],i:re};gt.isUndefined(Y.barycenter)||(ie.barycenter=Y.barycenter,ie.weight=Y.weight)}),gt.forEach(M.edges(),function(Y){var re=G[Y.v],ie=G[Y.w];gt.isUndefined(re)||gt.isUndefined(ie)||(ie.indegree++,re.out.push(G[Y.w]))}),function(Y){var re=[];function ie(me){return function(Le){Le.merged||(gt.isUndefined(Le.barycenter)||gt.isUndefined(me.barycenter)||Le.barycenter>=me.barycenter)&&function(ze,Fe){var tt=0,Mt=0;ze.weight&&(tt+=ze.barycenter*ze.weight,Mt+=ze.weight),Fe.weight&&(tt+=Fe.barycenter*Fe.weight,Mt+=Fe.weight),ze.vs=Fe.vs.concat(ze.vs),ze.barycenter=tt/Mt,ze.weight=Mt,ze.i=Math.min(Fe.i,ze.i),Fe.merged=!0}(me,Le)}}function le(me){return function(Le){Le.in.push(me),--Le.indegree==0&&Y.push(Le)}}for(;Y.length;){var ge=Y.pop();re.push(ge),gt.forEach(ge.in.reverse(),ie(ge)),gt.forEach(ge.out,le(ge))}return gt.map(gt.filter(re,function(me){return!me.merged}),function(me){return gt.pick(me,["vs","i","barycenter","weight"])})}(gt.filter(G,function(Y){return!Y.indegree}))},pf=function(f,M){var G=Mi.partition(f,function(Fe){return gt.has(Fe,"barycenter")}),Y=G.lhs,re=gt.sortBy(G.rhs,function(Fe){return-Fe.i}),ie=[],le=0,ge=0,me=0;Y.sort((Le=!!M,function(Fe,tt){return Fe.barycentertt.barycenter?1:Le?tt.i-Fe.i:Fe.i-tt.i})),me=Ws(ie,re,me),gt.forEach(Y,function(Fe){me+=Fe.vs.length,ie.push(Fe.vs),le+=Fe.barycenter*Fe.weight,ge+=Fe.weight,me=Ws(ie,re,me)});var Le,ze={vs:gt.flatten(ie,!0)};return ge&&(ze.barycenter=le/ge,ze.weight=ge),ze};function Ws(f,M,G){for(var Y;M.length&&(Y=gt.last(M)).i<=G;)M.pop(),f.push(Y.vs),G++;return G}var tc=function f(M,G,Y,re){var ie=M.children(G),le=M.node(G),ge=le?le.borderLeft:void 0,me=le?le.borderRight:void 0,Le={};ge&&(ie=gt.filter(ie,function(Tt){return Tt!==ge&&Tt!==me}));var ze=ec(M,ie);gt.forEach(ze,function(Tt){if(M.children(Tt.v).length){var Nt=f(M,Tt.v,Y,re);Le[Tt.v]=Nt,gt.has(Nt,"barycenter")&&(Lt=Tt,_r=Nt,gt.isUndefined(Lt.barycenter)?(Lt.barycenter=_r.barycenter,Lt.weight=_r.weight):(Lt.barycenter=(Lt.barycenter*Lt.weight+_r.barycenter*_r.weight)/(Lt.weight+_r.weight),Lt.weight+=_r.weight))}var Lt,_r});var Fe=gf(ze,Y);(function(Tt,Nt){gt.forEach(Tt,function(Lt){Lt.vs=gt.flatten(Lt.vs.map(function(_r){return Nt[_r]?Nt[_r].vs:_r}),!0)})})(Fe,Le);var tt=pf(Fe,re);if(ge&&(tt.vs=gt.flatten([ge,tt.vs,me],!0),M.predecessors(ge).length)){var Mt=M.node(M.predecessors(ge)[0]),sr=M.node(M.predecessors(me)[0]);gt.has(tt,"barycenter")||(tt.barycenter=0,tt.weight=0),tt.barycenter=(tt.barycenter*tt.weight+Mt.order+sr.order)/(tt.weight+2),tt.weight+=2}return tt},yf=Do.Graph,mf=function(f,M,G){var Y=function(ie){for(var le;ie.hasNode(le=gt.uniqueId("_root")););return le}(f),re=new yf({compound:!0}).setGraph({root:Y}).setDefaultNodeLabel(function(ie){return f.node(ie)});return gt.forEach(f.nodes(),function(ie){var le=f.node(ie),ge=f.parent(ie);(le.rank===M||le.minRank<=M&&M<=le.maxRank)&&(re.setNode(ie),re.setParent(ie,ge||Y),gt.forEach(f[G](ie),function(me){var Le=me.v===ie?me.w:me.v,ze=re.edge(Le,ie),Fe=gt.isUndefined(ze)?0:ze.weight;re.setEdge(Le,ie,{weight:f.edge(me).weight+Fe})}),gt.has(le,"minRank")&&re.setNode(ie,{borderLeft:le.borderLeft[M],borderRight:le.borderRight[M]}))}),re},ku=function(f,M,G){var Y,re={};gt.forEach(G,function(ie){for(var le,ge,me=f.parent(ie);me;){if((le=f.parent(me))?(ge=re[le],re[le]=me):(ge=Y,Y=me),ge&&ge!==me)return void M.setEdge(ge,me);me=le}})},iu=Do.Graph,Aa=function(f){var M=Mi.maxRank(f),G=ou(f,gt.range(1,M+1),"inEdges"),Y=ou(f,gt.range(M-1,-1,-1),"outEdges"),re=Pu(f);js(f,re);for(var ie,le=Number.POSITIVE_INFINITY,ge=0,me=0;me<4;++ge,++me){Ru(ge%2?G:Y,ge%4>=2),re=Mi.buildLayerMatrix(f);var Le=Us(f,re);Leme)&&su(G,Fe,Le)})})}return gt.reduce(M,function(re,ie){var le,ge=-1,me=0;return gt.forEach(ie,function(Le,ze){if(f.node(Le).dummy==="border"){var Fe=f.predecessors(Le);Fe.length&&(le=f.node(Fe[0]).order,Y(ie,me,ze,ge,le),me=ze,ge=le)}Y(ie,me,ie.length,le,re.length)}),ie}),G}function su(f,M,G){if(M>G){var Y=M;M=G,G=Y}var re=f[M];re||(f[M]=re={}),re[G]=!0}function pl(f,M,G){if(M>G){var Y=M;M=G,G=Y}return gt.has(f[M],G)}function yl(f,M,G,Y){var re={},ie={},le={};return gt.forEach(M,function(ge){gt.forEach(ge,function(me,Le){re[me]=me,ie[me]=me,le[me]=Le})}),gt.forEach(M,function(ge){var me=-1;gt.forEach(ge,function(Le){var ze=Y(Le);if(ze.length)for(var Fe=((ze=gt.sortBy(ze,function(Tt){return le[Tt]})).length-1)/2,tt=Math.floor(Fe),Mt=Math.ceil(Fe);tt<=Mt;++tt){var sr=ze[tt];ie[Le]===Le&&menew nc(G)).forEach(G=>{M.nodes[G.name]=G,G.inputs.forEach(Y=>{(function(re,ie,le){le.name!==ie.name&&re.edges.push(Object.assign(Object.assign({},le.attr),{v:le.name,w:ie.name}))})(M,G,Y)})}),M}class _l{constructor(M,G={}){this.attr=null,this.bridgeGraph=null,this.cardinality=0,this.depth=1,this.include=y.UNSPECIFIED,this.isGroupNode=!0,this.parentNode=null,this.type=L.META,this.path=[],this.name=M,this.metaGraph=xf(M,x.META,G)}getFirstChild(){return this.metaGraph.node(this.metaGraph.nodes()[0])}getChildren(){return this.metaGraph.nodes().map(M=>this.metaGraph.node(M))}leaves(){let M,G=[],Y=[this];for(;Y.length;){let re=Y.shift();re.isGroupNode?(M=re.metaGraph,M.nodes().forEach(ie=>Y.push(M.node(ie)))):G.push(re.name)}return G}}class ac{constructor(M,G){this.v=M,this.w=G,this.baseEdgeList=[],this.inbound=null,this.name=null}addBaseEdge(M,G){this.baseEdgeList.push(M)}}function zu(f,M={}){return new _l(f,M)}function bf(f,M){return new ac(f,M)}function xf(f,M,G){const Y=G||{},re=new Yo.Graph(Y);return re.setGraph({name:f,rankdir:Y.rankdir,type:M,align:Y.align}),re}class Zc{constructor(M={}){this.graphOptions=M,this.index={},this.graphOptions.compound=!0,this.root=zu(A,this.graphOptions),this.index[A]=this.root}getNodeMap(){return this.index}node(M){return this.index[M]}setNode(M,G){this.index[M]=G}getBridgeGraph(M){const G=this.index[M];if(!G)throw Error("Could not find node in hierarchy: "+M);if(!("metaGraph"in G))return null;const Y=G;if(Y.bridgeGraph)return Y.bridgeGraph;const re=xf(N,x.BRIDGE,this.graphOptions);if(Y.bridgeGraph=re,!G.parentNode||!("metaGraph"in G.parentNode))return re;const ie=G.parentNode;return[ie.metaGraph,this.getBridgeGraph(ie.name)].forEach(le=>{le.edges().filter(ge=>ge.v===M||ge.w===M).forEach(ge=>{const me=ge.w===M;le.edge(ge).baseEdgeList.forEach(Le=>{const[ze,Fe]=me?[Le.w,ge.v]:[Le.v,ge.w],tt=this.getChildName(M,ze),Mt={v:me?Fe:tt,w:me?tt:Fe};let sr=re.edge(Mt);sr||(sr=bf(Mt.v,Mt.w),sr.inbound=me,re.setEdge(Mt.v,Mt.w,sr)),sr.addBaseEdge(Le,this)})})}),re}getChildName(M,G){let Y=this.index[G];for(;Y;){if(Y.parentNode&&Y.parentNode.name===M)return Y.name;Y=Y.parentNode}throw Error("Could not find immediate child for descendant: "+G)}getPredecessors(M){const G=this.index[M];if(!G)throw Error("Could not find node with name: "+M);return this.getOneWayEdges(G,!0)}getSuccessors(M){const G=this.index[M];if(!G)throw Error("Could not find node with name: "+M);return this.getOneWayEdges(G,!1)}getOneWayEdges(M,G){const Y=[];if(!M.parentNode||!M.parentNode.isGroupNode)return Y;const re=M.parentNode,ie=re.metaGraph,le=this.getBridgeGraph(re.name);return ic(ie,M,G,Y),ic(le,M,G,Y),Y}}function Ml(f,M){const{rankDirection:G,align:Y}=M,re=new Zc({rankdir:G,align:Y});return function(ie,le){Object.keys(le.nodes).forEach(ge=>{const me=le.nodes[ge],Le=me.path;let ze=ie.root;ze.depth=Math.max(Le.length,ze.depth);for(let Fe=0;Fe{let Mt=0;for(;Fe;)tt[Mt++]=Fe.name,Fe=Fe.parentNode;return Mt-1};le.edges.forEach(Fe=>{me=[],Le=[];let tt=ze(le.nodes[Fe.v],me),Mt=ze(le.nodes[Fe.w],Le);for(;me[tt]===Le[Mt];)if(tt--,Mt--,tt<0||Mt<0)throw Error("No difference found between ancestor paths.");const sr=ge[me[tt+1]],Tt=me[tt],Nt=Le[Mt];let Lt=sr.metaGraph.edge(Tt,Nt);Lt||(Lt=bf(Tt,Nt),sr.metaGraph.setEdge(Tt,Nt,Lt)),Lt.addBaseEdge(Fe,ie)})}(re,f),re}function ic(f,M,G,Y){(G?f.inEdges(M.name):f.outEdges(M.name)).forEach(re=>{const ie=f.edge(re);Y.push(ie)})}class Kc{constructor(M){this.hierarchy=M,this.index={},this.hasSubHierarchy={},this.root=new We(this.hierarchy.root,this.hierarchy.graphOptions),this.index[M.root.name]=this.root,this.buildSubHierarchy(M.root.name),this.root.expanded=!0}getRenderInfoNodes(){return Object.values(this.index)}getSubHierarchy(){return this.hasSubHierarchy}buildSubHierarchy(M){if(M in this.hasSubHierarchy)return;this.hasSubHierarchy[M]=!0;const G=this.index[M];if(G.node.type!==L.META)return;const Y=G,re=Y.node.metaGraph,ie=Y.coreGraph;re.nodes().forEach(ze=>{const Fe=this.getOrCreateRenderNodeByName(ze);ie.setNode(ze,Fe)}),re.edges().forEach(ze=>{const Fe=re.edge(ze),tt=new ve(Fe);ie.setEdge(ze.v,ze.w,tt)});const le=Y.node.parentNode;if(!le)return;const ge=this.getRenderNodeByName(le.name),me=(ze,...Fe)=>Fe.concat([ze?"IN":"OUT"]).join("~~"),Le=this.hierarchy.getBridgeGraph(M);Le.edges().forEach(ze=>{const Fe=Le.edge(ze),tt=!!re.node(ze.w),[Mt,sr]=tt?[ze.w,ze.v]:[ze.v,ze.w],Tt=dn=>{const sn=tt?{v:dn,w:M}:{v:M,w:dn};return ge.coreGraph.edge(sn)};let Nt=Tt(sr);Nt||(Nt=Tt(me(tt,sr,le.name)));const Lt=me(tt,M),_r=me(tt,sr,M);let Yr=ie.node(_r);if(!Yr){let dn=ie.node(Lt);if(!dn){const tn={name:Lt,type:L.BRIDGE,isGroupNode:!1,cardinality:0,parentNode:null,include:y.UNSPECIFIED,inbound:tt,attr:{}};dn=new wf(tn),this.index[Lt]=dn,ie.setNode(Lt,dn)}const sn={name:_r,type:L.BRIDGE,isGroupNode:!1,cardinality:1,parentNode:null,include:y.UNSPECIFIED,inbound:tt,attr:{}};Yr=new wf(sn),this.index[_r]=Yr,ie.setNode(_r,Yr),ie.setParent(_r,Lt),dn.node.cardinality++}const Pr=new ve(Fe);Pr.adjoiningMetaEdge=Nt,tt?ie.setEdge(_r,Mt,Pr):ie.setEdge(Mt,_r,Pr)})}getOrCreateRenderNodeByName(M){if(!M)return null;if(M in this.index)return this.index[M];const G=this.getNodeByName(M);return G?(this.index[M]=G.isGroupNode?new We(G,this.hierarchy.graphOptions):new wf(G),this.index[M]):null}getRenderNodeByName(M){return this.index[M]}getNodeByName(M){return this.hierarchy.node(M)}}class wf{constructor(M){this.node=M,this.expanded=!1,this.x=0,this.y=0,this.coreBox={width:0,height:0},this.outboxWidth=0,this.labelOffset=0,this.radius=0,this.labelHeight=0,this.paddingTop=0,this.paddingLeft=0,this.paddingRight=0,this.paddingBottom=0,this.width=M.width||0,this.height=M.height||0,this.displayName=M.name,this.attr=M.attr}}class ve{constructor(M){this.metaEdge=M,this.adjoiningMetaEdge=null,this.weight=1,this.points=[]}}class We extends wf{constructor(M,G){super(M);const Y=M.metaGraph.graph();G.compound=!0,this.coreGraph=xf(Y.name,x.CORE,G)}}function it(f,M){f.node.isGroupNode&&function(G,Y){const re=j(Y);G.coreGraph.nodes().map(ie=>G.coreGraph.node(ie)).forEach(ie=>{var le,ge,me,Le,ze,Fe;const{height:tt,width:Mt}=ie;switch(ie.node.type){case L.NODE:Object.assign(ie,re.nodeSize.node),ie.height=tt||re.nodeSize.node.height,ie.width=Mt||re.nodeSize.node.width;break;case L.BRIDGE:Object.assign(ie,re.nodeSize.bridge);break;case L.META:ie.expanded?it(ie,Y):(Object.assign(ie,re.nodeSize.meta),ie.height=re.nodeSize.meta.height,ie.width=re.nodeSize.meta.width);break;default:throw Error("Unrecognized node type: "+ie.node.type)}if(!ie.expanded){const sr=ie.attr;(function(Tt,Nt=!1){if(Tt.coreBox.width=Tt.width,Tt.coreBox.height=Tt.height,!Nt){const Lt=`${Tt.displayName}`.length,_r=3;Tt.width=Math.max(Tt.coreBox.width,Lt*_r)}})(ie,Y&&(ie.node.type===0&&!!((ge=(le=Y==null?void 0:Y.nodeSize)===null||le===void 0?void 0:le.meta)===null||ge===void 0?void 0:ge.width)||ie.node.type===1&&(!!((Le=(me=Y==null?void 0:Y.nodeSize)===null||me===void 0?void 0:me.node)===null||Le===void 0?void 0:Le.width)||!!sr.width)||ie.node.type===2&&!!((Fe=(ze=Y==null?void 0:Y.nodeSize)===null||ze===void 0?void 0:ze.bridge)===null||Fe===void 0?void 0:Fe.width)))}})}(f,M),f.node.type===L.META&&function(G,Y){const re=j(Y),ie=re.subScene.meta;Object.assign(G,ie);const{nodeSep:le,rankSep:ge,edgeSep:me,align:Le}=re.graph.meta,ze={nodesep:le,ranksep:ge,edgesep:me,align:Le};Object.assign(G.coreBox,function(Mt,sr){const{ranksep:Tt,nodesep:Nt,edgesep:Lt,align:_r}=sr;Object.assign(Mt.graph(),{ranksep:Tt,nodesep:Nt,edgesep:Lt,align:_r});const Yr=[];if(Mt.nodes().forEach(Bn=>{Mt.node(Bn).node.type!==L.BRIDGE&&Yr.push(Bn)}),!Yr.length)return{width:0,height:0};xl(Mt);let Pr=1/0,dn=1/0,sn=-1/0,tn=-1/0;return Yr.forEach(Bn=>{const Fn=Mt.node(Bn),za=.5*Fn.width,Wn=Fn.x-za,ti=Fn.x+za;Pr=Wnsn?ti:sn;const La=.5*Fn.height,oa=Fn.y-La,Za=Fn.y+La;dn=oatn?Za:tn}),Mt.edges().forEach(Bn=>{const Fn=Mt.edge(Bn),za=Mt.node(Fn.metaEdge.v),Wn=Mt.node(Fn.metaEdge.w);if(Fn.points.length===3&&function(oa){let Za=Zt(oa[0],oa[1]);for(let ri=1;ri1)return!1;Za=li}return!0}(Fn.points)){if(za!=null){const oa=za.expanded?za.x:dr(za);Fn.points[0].x=oa}if(Wn!=null){const oa=Wn.expanded?Wn.x:dr(Wn);Fn.points[2].x=oa}Fn.points=[Fn.points[0],Fn.points[1]]}const ti=Fn.points[Fn.points.length-2];Wn!=null&&(Fn.points[Fn.points.length-1]=Yt(ti,Wn));const La=Fn.points[1];za!=null&&(Fn.points[0]=Yt(La,za)),Fn.points.forEach(oa=>{Pr=oa.xsn?oa.x:sn,dn=oa.ytn?oa.y:tn})}),Mt.nodes().forEach(Bn=>{const Fn=Mt.node(Bn);Fn.x-=Pr,Fn.y-=dn}),Mt.edges().forEach(Bn=>{Mt.edge(Bn).points.forEach(Fn=>{Fn.x-=Pr,Fn.y-=dn})}),{width:sn-Pr,height:tn-dn}}(G.coreGraph,ze));let Fe=0;G.coreGraph.nodeCount()>0&&Fe++;const tt=Fe<=1?0:Fe;G.coreBox.width+=tt+tt,G.coreBox.height=ie.labelHeight+G.coreBox.height,G.width=G.coreBox.width+ie.paddingLeft+ie.paddingRight,G.height=G.paddingTop+G.coreBox.height+G.paddingBottom}(f,M)}function Zt(f,M){const G=M.x-f.x,Y=M.y-f.y;return 180*Math.atan(Y/G)/Math.PI}function dr(f){return f.expanded?f.x:f.x-f.width/2+0+f.coreBox.width/2}function Yt(f,M){const G=M.expanded?M.x:dr(M),Y=M.y,re=f.x-G,ie=f.y-Y;let le,ge,me=M.expanded?M.width:M.coreBox.width,Le=M.expanded?M.height:M.coreBox.height;return Math.abs(ie)*me/2>Math.abs(re)*Le/2?(ie<0&&(Le=-Le),le=ie===0?0:Le/2*re/ie,ge=Le/2):(re<0&&(me=-me),le=me/2,ge=re===0?0:me/2*ie/re),{x:G+le,y:Y+ge}}function ar(f,M,G){var Y,re,ie,le;const ge=f.nodes.filter((Fe,tt,Mt)=>Mt.findIndex(sr=>sr.id===Fe.id)!==tt).map(Fe=>Fe.id);if(ge.length)throw new Error(`Duplicated ids found: ${ge.join(", ")}`);const me=function(Fe){const tt={nodes:[]},Mt=Fe.compound,sr=Object.keys(Mt||{}),Tt=new Map,Nt=(_r,Yr=[])=>{if(Tt.has(_r))return Tt.get(_r);for(let Pr=0;PrFe.edges.filter(Yr=>Yr.w===_r).map(Yr=>({name:Yr.v}));return Fe.nodes.forEach(_r=>{const Yr=_r.id,Pr=[...Nt(Yr),Yr];let dn=Lt(Yr);tt.nodes.push({name:Yr,path:Pr,inputs:dn,width:_r.width,height:_r.height,attr:Object.assign({},_r)})}),tt}(f),Le=function(Fe,tt){const Mt=(Tt,Nt)=>{for(let Lt of Nt.values())if(Lt.includes(Tt))return!0;return!1},sr=(Tt,Nt=[])=>{if(Object.keys(Tt).length===0)return[...new Set(Nt)];const Lt=new Map(Object.keys(Tt).map(Yr=>[Yr,Tt[Yr]])),_r={};for(let[Yr,Pr]of Lt)Mt(Yr,Lt)?_r[Yr]=Pr:Nt=Nt.concat(Yr,Pr);return sr(_r,Nt)};return sr(Fe).filter(Tt=>tt.includes(Tt))}(f.compound||{},(M==null?void 0:M.expanded)||[]),ze=function(Fe,tt){return function(Mt){return new Kc(Mt)}(Ml(Sl(Fe),tt))}(me,{rankDirection:((re=(Y=G==null?void 0:G.graph)===null||Y===void 0?void 0:Y.meta)===null||re===void 0?void 0:re.rankDir)||(M==null?void 0:M.rankDirection)||B.graph.meta.rankDir,align:((le=(ie=G==null?void 0:G.graph)===null||ie===void 0?void 0:ie.meta)===null||le===void 0?void 0:le.align)||B.graph.meta.align});return function(Fe,tt){tt.forEach(Mt=>{const sr=Fe.getRenderInfoNodes().find(Lt=>Lt.displayName===Mt);let Tt=sr&&sr.node&&sr.node.name||"";const Nt=Fe.getRenderNodeByName(Tt);if(!Nt)throw new Error(`No nodes found: ${Tt}`);Nt.expanded=!0,Fe.buildSubHierarchy(Tt)})}(ze,Le),it(ze.root,G),Ar(ze.root)}function Mr(f,M=!1){const G=JSON.parse(JSON.stringify(f)),Y={nodes:[G],edges:[...G.edges]};return G.nodes.forEach(function re(ie){(ie.type===0||ie.type===1)&&Y.nodes.push(ie),ie.type===0&&(Y.edges=Y.edges.concat(ie.edges)),Array.isArray(ie.nodes)&&ie.nodes.forEach(re)}),M&&Y.nodes.forEach(re=>{const ie=Y.nodes.find(le=>le.id===re.parentNodeName);if(ie){const le=ie.x-ie.width/2+ie.paddingLeft,ge=ie.y-ie.height/2+ie.labelHeight+ie.paddingTop;ie.id!==A&&(re.x+=le,re.y+=ge),re.type===0&&re.edges.forEach(me=>{me.points.forEach(Le=>{Le.x+=re.x-re.width/2+re.paddingLeft,Le.y+=re.y-re.height/2+re.labelHeight+re.paddingTop})})}}),Y}function Ir(f,M,G,Y){var re,ie;let le=[];const ge=((re=G.find(Fe=>Fe.id===f))===null||re===void 0?void 0:re.path)||[],me=((ie=G.find(Fe=>Fe.id===M))===null||ie===void 0?void 0:ie.path)||[],Le=[A,...ge].slice(0,ge.length).reverse(),ze=[A,...me].slice(0,me.length);return Le.forEach(Fe=>{const tt=G.find(Mt=>Mt.id===Fe);le=le.concat(tt.edges.filter(Mt=>Mt.baseEdgeList.some(sr=>sr.v===((Y==null?void 0:Y.v)||f)&&sr.w===((Y==null?void 0:Y.w)||M))))}),ze.filter(Fe=>!Le.includes(Fe)).forEach(Fe=>{const tt=G.find(Mt=>Mt.id===Fe);le=le.concat(tt.edges.filter(Mt=>Mt.baseEdgeList.some(sr=>sr.v===((Y==null?void 0:Y.v)||f)&&sr.w===((Y==null?void 0:Y.w)||M))))}),le}function Ar(f){const M=f.coreGraph.nodes().map(Y=>f.coreGraph.node(Y));return Object.assign(Object.assign({},Tr(f)),{expanded:f.expanded,nodes:f.expanded?(G=M,G.map(Y=>Y.node.type===L.META?Ar(Y):Tr(Y))):[],edges:f.expanded?zr(f):[]});var G}function Tr(f){return{id:f.node.name,name:f.node.name,type:f.node.type,cardinality:f.node.cardinality,attr:f.attr,parentNodeName:f.node.parentNode?f.node.parentNode.name:null,coreBox:Object.assign({},f.coreBox),x:f.x,y:f.y,width:f.width,height:f.height,radius:f.radius,labelHeight:f.labelHeight,labelOffset:f.labelOffset,outboxWidth:f.outboxWidth,paddingLeft:f.paddingLeft,paddingTop:f.paddingTop,paddingRight:f.paddingRight,paddingBottom:f.paddingBottom,path:f.node.path}}function zr(f){return f.coreGraph.edges().map(M=>({renderInfoEdge:f.coreGraph.edge(M),edge:M})).filter(({renderInfoEdge:M})=>M.metaEdge).map(({edge:M,renderInfoEdge:G})=>{const Y=function(re,ie){const le=ie.points.map(ge=>Object.assign({},ge));if(ie.adjoiningMetaEdge){const ge=ie.adjoiningMetaEdge.points,me=ie.metaEdge.inbound,Le=me?ge[ge.length-1]:ge[0],ze=le[me?0:le.length-1],Fe=re.x-re.width/2,tt=re.y-re.height/2,Mt=Le.x-Fe,sr=Le.y-tt,Tt=-re.paddingLeft,Nt=-(re.paddingTop+re.labelHeight);ze.x=Mt+Tt,ze.y=sr+Nt}return le}(f,G);return{adjoiningEdge:G.adjoiningMetaEdge?{w:G.adjoiningMetaEdge.metaEdge.w,v:G.adjoiningMetaEdge.metaEdge.v}:null,inbound:G.metaEdge.inbound,w:M.w,v:M.v,points:Y,weight:G.weight,baseEdgeList:G.metaEdge.baseEdgeList,parentNodeName:f.node.name}})}},64530:function(or,U,z){"use strict";z.r(U),z.d(U,{glMatrix:function(){return y},mat2:function(){return B},mat2d:function(){return j},mat3:function(){return qr},mat4:function(){return R},quat:function(){return N},quat2:function(){return L},vec2:function(){return Cf},vec3:function(){return Yn},vec4:function(){return A}});var B={};z.r(B),z.d(B,{LDU:function(){return J},add:function(){return te},adjoint:function(){return k},clone:function(){return v},copy:function(){return g},create:function(){return x},determinant:function(){return b},equals:function(){return Te},exactEquals:function(){return de},frob:function(){return q},fromRotation:function(){return X},fromScaling:function(){return H},fromValues:function(){return _},identity:function(){return d},invert:function(){return T},mul:function(){return be},multiply:function(){return m},multiplyScalar:function(){return Se},multiplyScalarAndAdd:function(){return Ie},rotate:function(){return $},scale:function(){return W},set:function(){return E},str:function(){return Q},sub:function(){return pe},subtract:function(){return fe},transpose:function(){return w}});var j={};z.r(j),z.d(j,{add:function(){return ft},clone:function(){return De},copy:function(){return Ue},create:function(){return Me},determinant:function(){return tr},equals:function(){return Ae},exactEquals:function(){return Ur},frob:function(){return Vt},fromRotation:function(){return _t},fromScaling:function(){return pt},fromTranslation:function(){return rr},fromValues:function(){return Ze},identity:function(){return nt},invert:function(){return Rt},mul:function(){return Hr},multiply:function(){return Qe},multiplyScalar:function(){return qt},multiplyScalarAndAdd:function(){return br},rotate:function(){return lt},scale:function(){return St},set:function(){return ht},str:function(){return xr},sub:function(){return Sr},subtract:function(){return Bt},translate:function(){return Ct}});var R={};z.r(R),z.d(R,{add:function(){return Qt},adjoint:function(){return Wt},clone:function(){return vn},copy:function(){return Gn},create:function(){return Gr},determinant:function(){return Er},equals:function(){return kn},exactEquals:function(){return ta},frob:function(){return Ot},fromQuat:function(){return V},fromQuat2:function(){return rt},fromRotation:function(){return An},fromRotationTranslation:function(){return Dt},fromRotationTranslationScale:function(){return S},fromRotationTranslationScaleOrigin:function(){return C},fromScaling:function(){return Pn},fromTranslation:function(){return Zr},fromValues:function(){return mn},fromXRotation:function(){return ln},fromYRotation:function(){return va},fromZRotation:function(){return K},frustum:function(){return he},getRotation:function(){return P},getScaling:function(){return ae},getTranslation:function(){return ne},identity:function(){return gn},invert:function(){return ct},lookAt:function(){return Ht},mul:function(){return En},multiply:function(){return Dr},multiplyScalar:function(){return en},multiplyScalarAndAdd:function(){return Nr},ortho:function(){return Pt},orthoNO:function(){return st},orthoZO:function(){return $t},perspective:function(){return Ee},perspectiveFromFieldOfView:function(){return Et},perspectiveNO:function(){return xe},perspectiveZO:function(){return Ne},rotate:function(){return wn},rotateX:function(){return Sn},rotateY:function(){return In},rotateZ:function(){return $n},scale:function(){return pn},set:function(){return $r},str:function(){return hn},sub:function(){return Rn},subtract:function(){return pr},targetTo:function(){return Br},translate:function(){return Vr},transpose:function(){return Rr}});var A={};z.r(A),z.d(A,{add:function(){return ot},ceil:function(){return Wr},clone:function(){return je},copy:function(){return Xe},create:function(){return bn},cross:function(){return co},dist:function(){return Oo},distance:function(){return Ia},div:function(){return _s},divide:function(){return wr},dot:function(){return to},equals:function(){return Yi},exactEquals:function(){return _o},floor:function(){return on},forEach:function(){return Go},fromValues:function(){return Ce},inverse:function(){return _a},len:function(){return _n},length:function(){return Ea},lerp:function(){return ni},max:function(){return zn},min:function(){return xn},mul:function(){return Bo},multiply:function(){return Xt},negate:function(){return si},normalize:function(){return So},random:function(){return lo},round:function(){return Qn},scale:function(){return ia},scaleAndAdd:function(){return Wa},set:function(){return ut},sqrDist:function(){return Hi},sqrLen:function(){return Fo},squaredDistance:function(){return Ba},squaredLength:function(){return qa},str:function(){return ya},sub:function(){return Fi},subtract:function(){return bt},transformMat4:function(){return Ss},transformQuat:function(){return Ro},zero:function(){return mi}});var N={};z.r(N),z.d(N,{add:function(){return Ui},calculateW:function(){return Ni},clone:function(){return vi},conjugate:function(){return Vs},copy:function(){return _i},create:function(){return Va},dot:function(){return Ya},equals:function(){return ka},exactEquals:function(){return ji},exp:function(){return ro},fromEuler:function(){return Ao},fromMat3:function(){return Pi},fromValues:function(){return Zi},getAngle:function(){return Mo},getAxisAngle:function(){return Li},identity:function(){return Ms},invert:function(){return vo},len:function(){return ao},length:function(){return Wi},lerp:function(){return Ii},ln:function(){return Qo},mul:function(){return da},multiply:function(){return ho},normalize:function(){return yo},pow:function(){return ns},random:function(){return ga},rotateX:function(){return Gi},rotateY:function(){return Di},rotateZ:function(){return $o},rotationTo:function(){return Ys},scale:function(){return Fa},set:function(){return no},setAxes:function(){return mo},setAxisAngle:function(){return Ko},slerp:function(){return zi},sqlerp:function(){return _f},sqrLen:function(){return po},squaredLength:function(){return go},str:function(){return as}});var L={};z.r(L),z.d(L,{add:function(){return Uo},clone:function(){return na},conjugate:function(){return Ku},copy:function(){return ai},create:function(){return lu},dot:function(){return vu},equals:function(){return Ts},exactEquals:function(){return Mf},fromMat4:function(){return ui},fromRotation:function(){return is},fromRotationTranslation:function(){return Xi},fromRotationTranslationValues:function(){return Hs},fromTranslation:function(){return zo},fromValues:function(){return an},getDual:function(){return du},getReal:function(){return Hu},getTranslation:function(){return Ki},identity:function(){return Eo},invert:function(){return pu},len:function(){return Cs},length:function(){return Co},lerp:function(){return gu},mul:function(){return fs},multiply:function(){return bo},normalize:function(){return xo},rotateAroundAxis:function(){return $s},rotateByQuatAppend:function(){return ss},rotateByQuatPrepend:function(){return us},rotateX:function(){return Ks},rotateY:function(){return io},rotateZ:function(){return os},scale:function(){return Zu},set:function(){return Yu},setDual:function(){return Ei},setReal:function(){return hu},sqrLen:function(){return $i},squaredLength:function(){return cs},str:function(){return $u},translate:function(){return Zs}});var y=z(49685);function x(){var u=new y.ARRAY_TYPE(4);return y.ARRAY_TYPE!=Float32Array&&(u[1]=0,u[2]=0),u[0]=1,u[3]=1,u}function v(u){var O=new y.ARRAY_TYPE(4);return O[0]=u[0],O[1]=u[1],O[2]=u[2],O[3]=u[3],O}function g(u,O){return u[0]=O[0],u[1]=O[1],u[2]=O[2],u[3]=O[3],u}function d(u){return u[0]=1,u[1]=0,u[2]=0,u[3]=1,u}function _(u,O,ue,ye){var _e=new y.ARRAY_TYPE(4);return _e[0]=u,_e[1]=O,_e[2]=ue,_e[3]=ye,_e}function E(u,O,ue,ye,_e){return u[0]=O,u[1]=ue,u[2]=ye,u[3]=_e,u}function w(u,O){if(u===O){var ue=O[1];u[1]=O[2],u[2]=ue}else u[0]=O[0],u[1]=O[2],u[2]=O[1],u[3]=O[3];return u}function T(u,O){var ue=O[0],ye=O[1],_e=O[2],ke=O[3],Be=ue*ke-_e*ye;return Be?(Be=1/Be,u[0]=ke*Be,u[1]=-ye*Be,u[2]=-_e*Be,u[3]=ue*Be,u):null}function k(u,O){var ue=O[0];return u[0]=O[3],u[1]=-O[1],u[2]=-O[2],u[3]=ue,u}function b(u){return u[0]*u[3]-u[2]*u[1]}function m(u,O,ue){var ye=O[0],_e=O[1],ke=O[2],Be=O[3],Ye=ue[0],Je=ue[1],dt=ue[2],It=ue[3];return u[0]=ye*Ye+ke*Je,u[1]=_e*Ye+Be*Je,u[2]=ye*dt+ke*It,u[3]=_e*dt+Be*It,u}function $(u,O,ue){var ye=O[0],_e=O[1],ke=O[2],Be=O[3],Ye=Math.sin(ue),Je=Math.cos(ue);return u[0]=ye*Je+ke*Ye,u[1]=_e*Je+Be*Ye,u[2]=ye*-Ye+ke*Je,u[3]=_e*-Ye+Be*Je,u}function W(u,O,ue){var ye=O[0],_e=O[1],ke=O[2],Be=O[3],Ye=ue[0],Je=ue[1];return u[0]=ye*Ye,u[1]=_e*Ye,u[2]=ke*Je,u[3]=Be*Je,u}function X(u,O){var ue=Math.sin(O),ye=Math.cos(O);return u[0]=ye,u[1]=ue,u[2]=-ue,u[3]=ye,u}function H(u,O){return u[0]=O[0],u[1]=0,u[2]=0,u[3]=O[1],u}function Q(u){return"mat2("+u[0]+", "+u[1]+", "+u[2]+", "+u[3]+")"}function q(u){return Math.hypot(u[0],u[1],u[2],u[3])}function J(u,O,ue,ye){return u[2]=ye[2]/ye[0],ue[0]=ye[0],ue[1]=ye[1],ue[3]=ye[3]-u[2]*ue[1],[u,O,ue]}function te(u,O,ue){return u[0]=O[0]+ue[0],u[1]=O[1]+ue[1],u[2]=O[2]+ue[2],u[3]=O[3]+ue[3],u}function fe(u,O,ue){return u[0]=O[0]-ue[0],u[1]=O[1]-ue[1],u[2]=O[2]-ue[2],u[3]=O[3]-ue[3],u}function de(u,O){return u[0]===O[0]&&u[1]===O[1]&&u[2]===O[2]&&u[3]===O[3]}function Te(u,O){var ue=u[0],ye=u[1],_e=u[2],ke=u[3],Be=O[0],Ye=O[1],Je=O[2],dt=O[3];return Math.abs(ue-Be)<=y.EPSILON*Math.max(1,Math.abs(ue),Math.abs(Be))&&Math.abs(ye-Ye)<=y.EPSILON*Math.max(1,Math.abs(ye),Math.abs(Ye))&&Math.abs(_e-Je)<=y.EPSILON*Math.max(1,Math.abs(_e),Math.abs(Je))&&Math.abs(ke-dt)<=y.EPSILON*Math.max(1,Math.abs(ke),Math.abs(dt))}function Se(u,O,ue){return u[0]=O[0]*ue,u[1]=O[1]*ue,u[2]=O[2]*ue,u[3]=O[3]*ue,u}function Ie(u,O,ue,ye){return u[0]=O[0]+ue[0]*ye,u[1]=O[1]+ue[1]*ye,u[2]=O[2]+ue[2]*ye,u[3]=O[3]+ue[3]*ye,u}var be=m,pe=fe;function Me(){var u=new y.ARRAY_TYPE(6);return y.ARRAY_TYPE!=Float32Array&&(u[1]=0,u[2]=0,u[4]=0,u[5]=0),u[0]=1,u[3]=1,u}function De(u){var O=new y.ARRAY_TYPE(6);return O[0]=u[0],O[1]=u[1],O[2]=u[2],O[3]=u[3],O[4]=u[4],O[5]=u[5],O}function Ue(u,O){return u[0]=O[0],u[1]=O[1],u[2]=O[2],u[3]=O[3],u[4]=O[4],u[5]=O[5],u}function nt(u){return u[0]=1,u[1]=0,u[2]=0,u[3]=1,u[4]=0,u[5]=0,u}function Ze(u,O,ue,ye,_e,ke){var Be=new y.ARRAY_TYPE(6);return Be[0]=u,Be[1]=O,Be[2]=ue,Be[3]=ye,Be[4]=_e,Be[5]=ke,Be}function ht(u,O,ue,ye,_e,ke,Be){return u[0]=O,u[1]=ue,u[2]=ye,u[3]=_e,u[4]=ke,u[5]=Be,u}function Rt(u,O){var ue=O[0],ye=O[1],_e=O[2],ke=O[3],Be=O[4],Ye=O[5],Je=ue*ke-ye*_e;return Je?(Je=1/Je,u[0]=ke*Je,u[1]=-ye*Je,u[2]=-_e*Je,u[3]=ue*Je,u[4]=(_e*Ye-ke*Be)*Je,u[5]=(ye*Be-ue*Ye)*Je,u):null}function tr(u){return u[0]*u[3]-u[1]*u[2]}function Qe(u,O,ue){var ye=O[0],_e=O[1],ke=O[2],Be=O[3],Ye=O[4],Je=O[5],dt=ue[0],It=ue[1],ir=ue[2],cr=ue[3],nr=ue[4],Or=ue[5];return u[0]=ye*dt+ke*It,u[1]=_e*dt+Be*It,u[2]=ye*ir+ke*cr,u[3]=_e*ir+Be*cr,u[4]=ye*nr+ke*Or+Ye,u[5]=_e*nr+Be*Or+Je,u}function lt(u,O,ue){var ye=O[0],_e=O[1],ke=O[2],Be=O[3],Ye=O[4],Je=O[5],dt=Math.sin(ue),It=Math.cos(ue);return u[0]=ye*It+ke*dt,u[1]=_e*It+Be*dt,u[2]=ye*-dt+ke*It,u[3]=_e*-dt+Be*It,u[4]=Ye,u[5]=Je,u}function St(u,O,ue){var ye=O[0],_e=O[1],ke=O[2],Be=O[3],Ye=O[4],Je=O[5],dt=ue[0],It=ue[1];return u[0]=ye*dt,u[1]=_e*dt,u[2]=ke*It,u[3]=Be*It,u[4]=Ye,u[5]=Je,u}function Ct(u,O,ue){var ye=O[0],_e=O[1],ke=O[2],Be=O[3],Ye=O[4],Je=O[5],dt=ue[0],It=ue[1];return u[0]=ye,u[1]=_e,u[2]=ke,u[3]=Be,u[4]=ye*dt+ke*It+Ye,u[5]=_e*dt+Be*It+Je,u}function _t(u,O){var ue=Math.sin(O),ye=Math.cos(O);return u[0]=ye,u[1]=ue,u[2]=-ue,u[3]=ye,u[4]=0,u[5]=0,u}function pt(u,O){return u[0]=O[0],u[1]=0,u[2]=0,u[3]=O[1],u[4]=0,u[5]=0,u}function rr(u,O){return u[0]=1,u[1]=0,u[2]=0,u[3]=1,u[4]=O[0],u[5]=O[1],u}function xr(u){return"mat2d("+u[0]+", "+u[1]+", "+u[2]+", "+u[3]+", "+u[4]+", "+u[5]+")"}function Vt(u){return Math.hypot(u[0],u[1],u[2],u[3],u[4],u[5],1)}function ft(u,O,ue){return u[0]=O[0]+ue[0],u[1]=O[1]+ue[1],u[2]=O[2]+ue[2],u[3]=O[3]+ue[3],u[4]=O[4]+ue[4],u[5]=O[5]+ue[5],u}function Bt(u,O,ue){return u[0]=O[0]-ue[0],u[1]=O[1]-ue[1],u[2]=O[2]-ue[2],u[3]=O[3]-ue[3],u[4]=O[4]-ue[4],u[5]=O[5]-ue[5],u}function qt(u,O,ue){return u[0]=O[0]*ue,u[1]=O[1]*ue,u[2]=O[2]*ue,u[3]=O[3]*ue,u[4]=O[4]*ue,u[5]=O[5]*ue,u}function br(u,O,ue,ye){return u[0]=O[0]+ue[0]*ye,u[1]=O[1]+ue[1]*ye,u[2]=O[2]+ue[2]*ye,u[3]=O[3]+ue[3]*ye,u[4]=O[4]+ue[4]*ye,u[5]=O[5]+ue[5]*ye,u}function Ur(u,O){return u[0]===O[0]&&u[1]===O[1]&&u[2]===O[2]&&u[3]===O[3]&&u[4]===O[4]&&u[5]===O[5]}function Ae(u,O){var ue=u[0],ye=u[1],_e=u[2],ke=u[3],Be=u[4],Ye=u[5],Je=O[0],dt=O[1],It=O[2],ir=O[3],cr=O[4],nr=O[5];return Math.abs(ue-Je)<=y.EPSILON*Math.max(1,Math.abs(ue),Math.abs(Je))&&Math.abs(ye-dt)<=y.EPSILON*Math.max(1,Math.abs(ye),Math.abs(dt))&&Math.abs(_e-It)<=y.EPSILON*Math.max(1,Math.abs(_e),Math.abs(It))&&Math.abs(ke-ir)<=y.EPSILON*Math.max(1,Math.abs(ke),Math.abs(ir))&&Math.abs(Be-cr)<=y.EPSILON*Math.max(1,Math.abs(Be),Math.abs(cr))&&Math.abs(Ye-nr)<=y.EPSILON*Math.max(1,Math.abs(Ye),Math.abs(nr))}var Hr=Qe,Sr=Bt,qr=z(35600);function Gr(){var u=new y.ARRAY_TYPE(16);return y.ARRAY_TYPE!=Float32Array&&(u[1]=0,u[2]=0,u[3]=0,u[4]=0,u[6]=0,u[7]=0,u[8]=0,u[9]=0,u[11]=0,u[12]=0,u[13]=0,u[14]=0),u[0]=1,u[5]=1,u[10]=1,u[15]=1,u}function vn(u){var O=new y.ARRAY_TYPE(16);return O[0]=u[0],O[1]=u[1],O[2]=u[2],O[3]=u[3],O[4]=u[4],O[5]=u[5],O[6]=u[6],O[7]=u[7],O[8]=u[8],O[9]=u[9],O[10]=u[10],O[11]=u[11],O[12]=u[12],O[13]=u[13],O[14]=u[14],O[15]=u[15],O}function Gn(u,O){return u[0]=O[0],u[1]=O[1],u[2]=O[2],u[3]=O[3],u[4]=O[4],u[5]=O[5],u[6]=O[6],u[7]=O[7],u[8]=O[8],u[9]=O[9],u[10]=O[10],u[11]=O[11],u[12]=O[12],u[13]=O[13],u[14]=O[14],u[15]=O[15],u}function mn(u,O,ue,ye,_e,ke,Be,Ye,Je,dt,It,ir,cr,nr,Or,Cr){var hr=new y.ARRAY_TYPE(16);return hr[0]=u,hr[1]=O,hr[2]=ue,hr[3]=ye,hr[4]=_e,hr[5]=ke,hr[6]=Be,hr[7]=Ye,hr[8]=Je,hr[9]=dt,hr[10]=It,hr[11]=ir,hr[12]=cr,hr[13]=nr,hr[14]=Or,hr[15]=Cr,hr}function $r(u,O,ue,ye,_e,ke,Be,Ye,Je,dt,It,ir,cr,nr,Or,Cr,hr){return u[0]=O,u[1]=ue,u[2]=ye,u[3]=_e,u[4]=ke,u[5]=Be,u[6]=Ye,u[7]=Je,u[8]=dt,u[9]=It,u[10]=ir,u[11]=cr,u[12]=nr,u[13]=Or,u[14]=Cr,u[15]=hr,u}function gn(u){return u[0]=1,u[1]=0,u[2]=0,u[3]=0,u[4]=0,u[5]=1,u[6]=0,u[7]=0,u[8]=0,u[9]=0,u[10]=1,u[11]=0,u[12]=0,u[13]=0,u[14]=0,u[15]=1,u}function Rr(u,O){if(u===O){var ue=O[1],ye=O[2],_e=O[3],ke=O[6],Be=O[7],Ye=O[11];u[1]=O[4],u[2]=O[8],u[3]=O[12],u[4]=ue,u[6]=O[9],u[7]=O[13],u[8]=ye,u[9]=ke,u[11]=O[14],u[12]=_e,u[13]=Be,u[14]=Ye}else u[0]=O[0],u[1]=O[4],u[2]=O[8],u[3]=O[12],u[4]=O[1],u[5]=O[5],u[6]=O[9],u[7]=O[13],u[8]=O[2],u[9]=O[6],u[10]=O[10],u[11]=O[14],u[12]=O[3],u[13]=O[7],u[14]=O[11],u[15]=O[15];return u}function ct(u,O){var ue=O[0],ye=O[1],_e=O[2],ke=O[3],Be=O[4],Ye=O[5],Je=O[6],dt=O[7],It=O[8],ir=O[9],cr=O[10],nr=O[11],Or=O[12],Cr=O[13],hr=O[14],rn=O[15],Jn=ue*Ye-ye*Be,qn=ue*Je-_e*Be,Un=ue*dt-ke*Be,Mn=ye*Je-_e*Ye,Cn=ye*dt-ke*Ye,Ga=_e*dt-ke*Je,ei=It*Cr-ir*Or,Ka=It*hr-cr*Or,$a=It*rn-nr*Or,Ha=ir*hr-cr*Cr,fi=ir*rn-nr*Cr,bi=cr*rn-nr*hr,ha=Jn*bi-qn*fi+Un*Ha+Mn*$a-Cn*Ka+Ga*ei;return ha?(ha=1/ha,u[0]=(Ye*bi-Je*fi+dt*Ha)*ha,u[1]=(_e*fi-ye*bi-ke*Ha)*ha,u[2]=(Cr*Ga-hr*Cn+rn*Mn)*ha,u[3]=(cr*Cn-ir*Ga-nr*Mn)*ha,u[4]=(Je*$a-Be*bi-dt*Ka)*ha,u[5]=(ue*bi-_e*$a+ke*Ka)*ha,u[6]=(hr*Un-Or*Ga-rn*qn)*ha,u[7]=(It*Ga-cr*Un+nr*qn)*ha,u[8]=(Be*fi-Ye*$a+dt*ei)*ha,u[9]=(ye*$a-ue*fi-ke*ei)*ha,u[10]=(Or*Cn-Cr*Un+rn*Jn)*ha,u[11]=(ir*Un-It*Cn-nr*Jn)*ha,u[12]=(Ye*Ka-Be*Ha-Je*ei)*ha,u[13]=(ue*Ha-ye*Ka+_e*ei)*ha,u[14]=(Cr*qn-Or*Mn-hr*Jn)*ha,u[15]=(It*Mn-ir*qn+cr*Jn)*ha,u):null}function Wt(u,O){var ue=O[0],ye=O[1],_e=O[2],ke=O[3],Be=O[4],Ye=O[5],Je=O[6],dt=O[7],It=O[8],ir=O[9],cr=O[10],nr=O[11],Or=O[12],Cr=O[13],hr=O[14],rn=O[15];return u[0]=Ye*(cr*rn-nr*hr)-ir*(Je*rn-dt*hr)+Cr*(Je*nr-dt*cr),u[1]=-(ye*(cr*rn-nr*hr)-ir*(_e*rn-ke*hr)+Cr*(_e*nr-ke*cr)),u[2]=ye*(Je*rn-dt*hr)-Ye*(_e*rn-ke*hr)+Cr*(_e*dt-ke*Je),u[3]=-(ye*(Je*nr-dt*cr)-Ye*(_e*nr-ke*cr)+ir*(_e*dt-ke*Je)),u[4]=-(Be*(cr*rn-nr*hr)-It*(Je*rn-dt*hr)+Or*(Je*nr-dt*cr)),u[5]=ue*(cr*rn-nr*hr)-It*(_e*rn-ke*hr)+Or*(_e*nr-ke*cr),u[6]=-(ue*(Je*rn-dt*hr)-Be*(_e*rn-ke*hr)+Or*(_e*dt-ke*Je)),u[7]=ue*(Je*nr-dt*cr)-Be*(_e*nr-ke*cr)+It*(_e*dt-ke*Je),u[8]=Be*(ir*rn-nr*Cr)-It*(Ye*rn-dt*Cr)+Or*(Ye*nr-dt*ir),u[9]=-(ue*(ir*rn-nr*Cr)-It*(ye*rn-ke*Cr)+Or*(ye*nr-ke*ir)),u[10]=ue*(Ye*rn-dt*Cr)-Be*(ye*rn-ke*Cr)+Or*(ye*dt-ke*Ye),u[11]=-(ue*(Ye*nr-dt*ir)-Be*(ye*nr-ke*ir)+It*(ye*dt-ke*Ye)),u[12]=-(Be*(ir*hr-cr*Cr)-It*(Ye*hr-Je*Cr)+Or*(Ye*cr-Je*ir)),u[13]=ue*(ir*hr-cr*Cr)-It*(ye*hr-_e*Cr)+Or*(ye*cr-_e*ir),u[14]=-(ue*(Ye*hr-Je*Cr)-Be*(ye*hr-_e*Cr)+Or*(ye*Je-_e*Ye)),u[15]=ue*(Ye*cr-Je*ir)-Be*(ye*cr-_e*ir)+It*(ye*Je-_e*Ye),u}function Er(u){var O=u[0],ue=u[1],ye=u[2],_e=u[3],ke=u[4],Be=u[5],Ye=u[6],Je=u[7],dt=u[8],It=u[9],ir=u[10],cr=u[11],nr=u[12],Or=u[13],Cr=u[14],hr=u[15],rn=O*Be-ue*ke,Jn=O*Ye-ye*ke,qn=O*Je-_e*ke,Un=ue*Ye-ye*Be,Mn=ue*Je-_e*Be,Cn=ye*Je-_e*Ye,Ga=dt*Or-It*nr,ei=dt*Cr-ir*nr,Ka=dt*hr-cr*nr,$a=It*Cr-ir*Or,Ha=It*hr-cr*Or,fi=ir*hr-cr*Cr;return rn*fi-Jn*Ha+qn*$a+Un*Ka-Mn*ei+Cn*Ga}function Dr(u,O,ue){var ye=O[0],_e=O[1],ke=O[2],Be=O[3],Ye=O[4],Je=O[5],dt=O[6],It=O[7],ir=O[8],cr=O[9],nr=O[10],Or=O[11],Cr=O[12],hr=O[13],rn=O[14],Jn=O[15],qn=ue[0],Un=ue[1],Mn=ue[2],Cn=ue[3];return u[0]=qn*ye+Un*Ye+Mn*ir+Cn*Cr,u[1]=qn*_e+Un*Je+Mn*cr+Cn*hr,u[2]=qn*ke+Un*dt+Mn*nr+Cn*rn,u[3]=qn*Be+Un*It+Mn*Or+Cn*Jn,qn=ue[4],Un=ue[5],Mn=ue[6],Cn=ue[7],u[4]=qn*ye+Un*Ye+Mn*ir+Cn*Cr,u[5]=qn*_e+Un*Je+Mn*cr+Cn*hr,u[6]=qn*ke+Un*dt+Mn*nr+Cn*rn,u[7]=qn*Be+Un*It+Mn*Or+Cn*Jn,qn=ue[8],Un=ue[9],Mn=ue[10],Cn=ue[11],u[8]=qn*ye+Un*Ye+Mn*ir+Cn*Cr,u[9]=qn*_e+Un*Je+Mn*cr+Cn*hr,u[10]=qn*ke+Un*dt+Mn*nr+Cn*rn,u[11]=qn*Be+Un*It+Mn*Or+Cn*Jn,qn=ue[12],Un=ue[13],Mn=ue[14],Cn=ue[15],u[12]=qn*ye+Un*Ye+Mn*ir+Cn*Cr,u[13]=qn*_e+Un*Je+Mn*cr+Cn*hr,u[14]=qn*ke+Un*dt+Mn*nr+Cn*rn,u[15]=qn*Be+Un*It+Mn*Or+Cn*Jn,u}function Vr(u,O,ue){var ye=ue[0],_e=ue[1],ke=ue[2],Be,Ye,Je,dt,It,ir,cr,nr,Or,Cr,hr,rn;return O===u?(u[12]=O[0]*ye+O[4]*_e+O[8]*ke+O[12],u[13]=O[1]*ye+O[5]*_e+O[9]*ke+O[13],u[14]=O[2]*ye+O[6]*_e+O[10]*ke+O[14],u[15]=O[3]*ye+O[7]*_e+O[11]*ke+O[15]):(Be=O[0],Ye=O[1],Je=O[2],dt=O[3],It=O[4],ir=O[5],cr=O[6],nr=O[7],Or=O[8],Cr=O[9],hr=O[10],rn=O[11],u[0]=Be,u[1]=Ye,u[2]=Je,u[3]=dt,u[4]=It,u[5]=ir,u[6]=cr,u[7]=nr,u[8]=Or,u[9]=Cr,u[10]=hr,u[11]=rn,u[12]=Be*ye+It*_e+Or*ke+O[12],u[13]=Ye*ye+ir*_e+Cr*ke+O[13],u[14]=Je*ye+cr*_e+hr*ke+O[14],u[15]=dt*ye+nr*_e+rn*ke+O[15]),u}function pn(u,O,ue){var ye=ue[0],_e=ue[1],ke=ue[2];return u[0]=O[0]*ye,u[1]=O[1]*ye,u[2]=O[2]*ye,u[3]=O[3]*ye,u[4]=O[4]*_e,u[5]=O[5]*_e,u[6]=O[6]*_e,u[7]=O[7]*_e,u[8]=O[8]*ke,u[9]=O[9]*ke,u[10]=O[10]*ke,u[11]=O[11]*ke,u[12]=O[12],u[13]=O[13],u[14]=O[14],u[15]=O[15],u}function wn(u,O,ue,ye){var _e=ye[0],ke=ye[1],Be=ye[2],Ye=Math.hypot(_e,ke,Be),Je,dt,It,ir,cr,nr,Or,Cr,hr,rn,Jn,qn,Un,Mn,Cn,Ga,ei,Ka,$a,Ha,fi,bi,ha,Oa;return Ye0?(ue[0]=(Ye*Be+It*ye+Je*ke-dt*_e)*2/ir,ue[1]=(Je*Be+It*_e+dt*ye-Ye*ke)*2/ir,ue[2]=(dt*Be+It*ke+Ye*_e-Je*ye)*2/ir):(ue[0]=(Ye*Be+It*ye+Je*ke-dt*_e)*2,ue[1]=(Je*Be+It*_e+dt*ye-Ye*ke)*2,ue[2]=(dt*Be+It*ke+Ye*_e-Je*ye)*2),Dt(u,O,ue),u}function ne(u,O){return u[0]=O[12],u[1]=O[13],u[2]=O[14],u}function ae(u,O){var ue=O[0],ye=O[1],_e=O[2],ke=O[4],Be=O[5],Ye=O[6],Je=O[8],dt=O[9],It=O[10];return u[0]=Math.hypot(ue,ye,_e),u[1]=Math.hypot(ke,Be,Ye),u[2]=Math.hypot(Je,dt,It),u}function P(u,O){var ue=new y.ARRAY_TYPE(3);ae(ue,O);var ye=1/ue[0],_e=1/ue[1],ke=1/ue[2],Be=O[0]*ye,Ye=O[1]*_e,Je=O[2]*ke,dt=O[4]*ye,It=O[5]*_e,ir=O[6]*ke,cr=O[8]*ye,nr=O[9]*_e,Or=O[10]*ke,Cr=Be+It+Or,hr=0;return Cr>0?(hr=Math.sqrt(Cr+1)*2,u[3]=.25*hr,u[0]=(ir-nr)/hr,u[1]=(cr-Je)/hr,u[2]=(Ye-dt)/hr):Be>It&&Be>Or?(hr=Math.sqrt(1+Be-It-Or)*2,u[3]=(ir-nr)/hr,u[0]=.25*hr,u[1]=(Ye+dt)/hr,u[2]=(cr+Je)/hr):It>Or?(hr=Math.sqrt(1+It-Be-Or)*2,u[3]=(cr-Je)/hr,u[0]=(Ye+dt)/hr,u[1]=.25*hr,u[2]=(ir+nr)/hr):(hr=Math.sqrt(1+Or-Be-It)*2,u[3]=(Ye-dt)/hr,u[0]=(cr+Je)/hr,u[1]=(ir+nr)/hr,u[2]=.25*hr),u}function S(u,O,ue,ye){var _e=O[0],ke=O[1],Be=O[2],Ye=O[3],Je=_e+_e,dt=ke+ke,It=Be+Be,ir=_e*Je,cr=_e*dt,nr=_e*It,Or=ke*dt,Cr=ke*It,hr=Be*It,rn=Ye*Je,Jn=Ye*dt,qn=Ye*It,Un=ye[0],Mn=ye[1],Cn=ye[2];return u[0]=(1-(Or+hr))*Un,u[1]=(cr+qn)*Un,u[2]=(nr-Jn)*Un,u[3]=0,u[4]=(cr-qn)*Mn,u[5]=(1-(ir+hr))*Mn,u[6]=(Cr+rn)*Mn,u[7]=0,u[8]=(nr+Jn)*Cn,u[9]=(Cr-rn)*Cn,u[10]=(1-(ir+Or))*Cn,u[11]=0,u[12]=ue[0],u[13]=ue[1],u[14]=ue[2],u[15]=1,u}function C(u,O,ue,ye,_e){var ke=O[0],Be=O[1],Ye=O[2],Je=O[3],dt=ke+ke,It=Be+Be,ir=Ye+Ye,cr=ke*dt,nr=ke*It,Or=ke*ir,Cr=Be*It,hr=Be*ir,rn=Ye*ir,Jn=Je*dt,qn=Je*It,Un=Je*ir,Mn=ye[0],Cn=ye[1],Ga=ye[2],ei=_e[0],Ka=_e[1],$a=_e[2],Ha=(1-(Cr+rn))*Mn,fi=(nr+Un)*Mn,bi=(Or-qn)*Mn,ha=(nr-Un)*Cn,Oa=(1-(cr+rn))*Cn,Jo=(hr+Jn)*Cn,Wo=(Or+qn)*Ga,oo=(hr-Jn)*Ga,Qs=(1-(cr+Cr))*Ga;return u[0]=Ha,u[1]=fi,u[2]=bi,u[3]=0,u[4]=ha,u[5]=Oa,u[6]=Jo,u[7]=0,u[8]=Wo,u[9]=oo,u[10]=Qs,u[11]=0,u[12]=ue[0]+ei-(Ha*ei+ha*Ka+Wo*$a),u[13]=ue[1]+Ka-(fi*ei+Oa*Ka+oo*$a),u[14]=ue[2]+$a-(bi*ei+Jo*Ka+Qs*$a),u[15]=1,u}function V(u,O){var ue=O[0],ye=O[1],_e=O[2],ke=O[3],Be=ue+ue,Ye=ye+ye,Je=_e+_e,dt=ue*Be,It=ye*Be,ir=ye*Ye,cr=_e*Be,nr=_e*Ye,Or=_e*Je,Cr=ke*Be,hr=ke*Ye,rn=ke*Je;return u[0]=1-ir-Or,u[1]=It+rn,u[2]=cr-hr,u[3]=0,u[4]=It-rn,u[5]=1-dt-Or,u[6]=nr+Cr,u[7]=0,u[8]=cr+hr,u[9]=nr-Cr,u[10]=1-dt-ir,u[11]=0,u[12]=0,u[13]=0,u[14]=0,u[15]=1,u}function he(u,O,ue,ye,_e,ke,Be){var Ye=1/(ue-O),Je=1/(_e-ye),dt=1/(ke-Be);return u[0]=ke*2*Ye,u[1]=0,u[2]=0,u[3]=0,u[4]=0,u[5]=ke*2*Je,u[6]=0,u[7]=0,u[8]=(ue+O)*Ye,u[9]=(_e+ye)*Je,u[10]=(Be+ke)*dt,u[11]=-1,u[12]=0,u[13]=0,u[14]=Be*ke*2*dt,u[15]=0,u}function xe(u,O,ue,ye,_e){var ke=1/Math.tan(O/2),Be;return u[0]=ke/ue,u[1]=0,u[2]=0,u[3]=0,u[4]=0,u[5]=ke,u[6]=0,u[7]=0,u[8]=0,u[9]=0,u[11]=-1,u[12]=0,u[13]=0,u[15]=0,_e!=null&&_e!==Infinity?(Be=1/(ye-_e),u[10]=(_e+ye)*Be,u[14]=2*_e*ye*Be):(u[10]=-1,u[14]=-2*ye),u}var Ee=xe;function Ne(u,O,ue,ye,_e){var ke=1/Math.tan(O/2),Be;return u[0]=ke/ue,u[1]=0,u[2]=0,u[3]=0,u[4]=0,u[5]=ke,u[6]=0,u[7]=0,u[8]=0,u[9]=0,u[11]=-1,u[12]=0,u[13]=0,u[15]=0,_e!=null&&_e!==Infinity?(Be=1/(ye-_e),u[10]=_e*Be,u[14]=_e*ye*Be):(u[10]=-1,u[14]=-ye),u}function Et(u,O,ue,ye){var _e=Math.tan(O.upDegrees*Math.PI/180),ke=Math.tan(O.downDegrees*Math.PI/180),Be=Math.tan(O.leftDegrees*Math.PI/180),Ye=Math.tan(O.rightDegrees*Math.PI/180),Je=2/(Be+Ye),dt=2/(_e+ke);return u[0]=Je,u[1]=0,u[2]=0,u[3]=0,u[4]=0,u[5]=dt,u[6]=0,u[7]=0,u[8]=-((Be-Ye)*Je*.5),u[9]=(_e-ke)*dt*.5,u[10]=ye/(ue-ye),u[11]=-1,u[12]=0,u[13]=0,u[14]=ye*ue/(ue-ye),u[15]=0,u}function st(u,O,ue,ye,_e,ke,Be){var Ye=1/(O-ue),Je=1/(ye-_e),dt=1/(ke-Be);return u[0]=-2*Ye,u[1]=0,u[2]=0,u[3]=0,u[4]=0,u[5]=-2*Je,u[6]=0,u[7]=0,u[8]=0,u[9]=0,u[10]=2*dt,u[11]=0,u[12]=(O+ue)*Ye,u[13]=(_e+ye)*Je,u[14]=(Be+ke)*dt,u[15]=1,u}var Pt=st;function $t(u,O,ue,ye,_e,ke,Be){var Ye=1/(O-ue),Je=1/(ye-_e),dt=1/(ke-Be);return u[0]=-2*Ye,u[1]=0,u[2]=0,u[3]=0,u[4]=0,u[5]=-2*Je,u[6]=0,u[7]=0,u[8]=0,u[9]=0,u[10]=dt,u[11]=0,u[12]=(O+ue)*Ye,u[13]=(_e+ye)*Je,u[14]=ke*dt,u[15]=1,u}function Ht(u,O,ue,ye){var _e,ke,Be,Ye,Je,dt,It,ir,cr,nr,Or=O[0],Cr=O[1],hr=O[2],rn=ye[0],Jn=ye[1],qn=ye[2],Un=ue[0],Mn=ue[1],Cn=ue[2];return Math.abs(Or-Un)0&&(nr=1/Math.sqrt(nr),It*=nr,ir*=nr,cr*=nr);var Or=Je*cr-dt*ir,Cr=dt*It-Ye*cr,hr=Ye*ir-Je*It;return nr=Or*Or+Cr*Cr+hr*hr,nr>0&&(nr=1/Math.sqrt(nr),Or*=nr,Cr*=nr,hr*=nr),u[0]=Or,u[1]=Cr,u[2]=hr,u[3]=0,u[4]=ir*hr-cr*Cr,u[5]=cr*Or-It*hr,u[6]=It*Cr-ir*Or,u[7]=0,u[8]=It,u[9]=ir,u[10]=cr,u[11]=0,u[12]=_e,u[13]=ke,u[14]=Be,u[15]=1,u}function hn(u){return"mat4("+u[0]+", "+u[1]+", "+u[2]+", "+u[3]+", "+u[4]+", "+u[5]+", "+u[6]+", "+u[7]+", "+u[8]+", "+u[9]+", "+u[10]+", "+u[11]+", "+u[12]+", "+u[13]+", "+u[14]+", "+u[15]+")"}function Ot(u){return Math.hypot(u[0],u[1],u[2],u[3],u[4],u[5],u[6],u[7],u[8],u[9],u[10],u[11],u[12],u[13],u[14],u[15])}function Qt(u,O,ue){return u[0]=O[0]+ue[0],u[1]=O[1]+ue[1],u[2]=O[2]+ue[2],u[3]=O[3]+ue[3],u[4]=O[4]+ue[4],u[5]=O[5]+ue[5],u[6]=O[6]+ue[6],u[7]=O[7]+ue[7],u[8]=O[8]+ue[8],u[9]=O[9]+ue[9],u[10]=O[10]+ue[10],u[11]=O[11]+ue[11],u[12]=O[12]+ue[12],u[13]=O[13]+ue[13],u[14]=O[14]+ue[14],u[15]=O[15]+ue[15],u}function pr(u,O,ue){return u[0]=O[0]-ue[0],u[1]=O[1]-ue[1],u[2]=O[2]-ue[2],u[3]=O[3]-ue[3],u[4]=O[4]-ue[4],u[5]=O[5]-ue[5],u[6]=O[6]-ue[6],u[7]=O[7]-ue[7],u[8]=O[8]-ue[8],u[9]=O[9]-ue[9],u[10]=O[10]-ue[10],u[11]=O[11]-ue[11],u[12]=O[12]-ue[12],u[13]=O[13]-ue[13],u[14]=O[14]-ue[14],u[15]=O[15]-ue[15],u}function en(u,O,ue){return u[0]=O[0]*ue,u[1]=O[1]*ue,u[2]=O[2]*ue,u[3]=O[3]*ue,u[4]=O[4]*ue,u[5]=O[5]*ue,u[6]=O[6]*ue,u[7]=O[7]*ue,u[8]=O[8]*ue,u[9]=O[9]*ue,u[10]=O[10]*ue,u[11]=O[11]*ue,u[12]=O[12]*ue,u[13]=O[13]*ue,u[14]=O[14]*ue,u[15]=O[15]*ue,u}function Nr(u,O,ue,ye){return u[0]=O[0]+ue[0]*ye,u[1]=O[1]+ue[1]*ye,u[2]=O[2]+ue[2]*ye,u[3]=O[3]+ue[3]*ye,u[4]=O[4]+ue[4]*ye,u[5]=O[5]+ue[5]*ye,u[6]=O[6]+ue[6]*ye,u[7]=O[7]+ue[7]*ye,u[8]=O[8]+ue[8]*ye,u[9]=O[9]+ue[9]*ye,u[10]=O[10]+ue[10]*ye,u[11]=O[11]+ue[11]*ye,u[12]=O[12]+ue[12]*ye,u[13]=O[13]+ue[13]*ye,u[14]=O[14]+ue[14]*ye,u[15]=O[15]+ue[15]*ye,u}function ta(u,O){return u[0]===O[0]&&u[1]===O[1]&&u[2]===O[2]&&u[3]===O[3]&&u[4]===O[4]&&u[5]===O[5]&&u[6]===O[6]&&u[7]===O[7]&&u[8]===O[8]&&u[9]===O[9]&&u[10]===O[10]&&u[11]===O[11]&&u[12]===O[12]&&u[13]===O[13]&&u[14]===O[14]&&u[15]===O[15]}function kn(u,O){var ue=u[0],ye=u[1],_e=u[2],ke=u[3],Be=u[4],Ye=u[5],Je=u[6],dt=u[7],It=u[8],ir=u[9],cr=u[10],nr=u[11],Or=u[12],Cr=u[13],hr=u[14],rn=u[15],Jn=O[0],qn=O[1],Un=O[2],Mn=O[3],Cn=O[4],Ga=O[5],ei=O[6],Ka=O[7],$a=O[8],Ha=O[9],fi=O[10],bi=O[11],ha=O[12],Oa=O[13],Jo=O[14],Wo=O[15];return Math.abs(ue-Jn)<=y.EPSILON*Math.max(1,Math.abs(ue),Math.abs(Jn))&&Math.abs(ye-qn)<=y.EPSILON*Math.max(1,Math.abs(ye),Math.abs(qn))&&Math.abs(_e-Un)<=y.EPSILON*Math.max(1,Math.abs(_e),Math.abs(Un))&&Math.abs(ke-Mn)<=y.EPSILON*Math.max(1,Math.abs(ke),Math.abs(Mn))&&Math.abs(Be-Cn)<=y.EPSILON*Math.max(1,Math.abs(Be),Math.abs(Cn))&&Math.abs(Ye-Ga)<=y.EPSILON*Math.max(1,Math.abs(Ye),Math.abs(Ga))&&Math.abs(Je-ei)<=y.EPSILON*Math.max(1,Math.abs(Je),Math.abs(ei))&&Math.abs(dt-Ka)<=y.EPSILON*Math.max(1,Math.abs(dt),Math.abs(Ka))&&Math.abs(It-$a)<=y.EPSILON*Math.max(1,Math.abs(It),Math.abs($a))&&Math.abs(ir-Ha)<=y.EPSILON*Math.max(1,Math.abs(ir),Math.abs(Ha))&&Math.abs(cr-fi)<=y.EPSILON*Math.max(1,Math.abs(cr),Math.abs(fi))&&Math.abs(nr-bi)<=y.EPSILON*Math.max(1,Math.abs(nr),Math.abs(bi))&&Math.abs(Or-ha)<=y.EPSILON*Math.max(1,Math.abs(Or),Math.abs(ha))&&Math.abs(Cr-Oa)<=y.EPSILON*Math.max(1,Math.abs(Cr),Math.abs(Oa))&&Math.abs(hr-Jo)<=y.EPSILON*Math.max(1,Math.abs(hr),Math.abs(Jo))&&Math.abs(rn-Wo)<=y.EPSILON*Math.max(1,Math.abs(rn),Math.abs(Wo))}var En=Dr,Rn=pr,Yn=z(77160);function bn(){var u=new y.ARRAY_TYPE(4);return y.ARRAY_TYPE!=Float32Array&&(u[0]=0,u[1]=0,u[2]=0,u[3]=0),u}function je(u){var O=new y.ARRAY_TYPE(4);return O[0]=u[0],O[1]=u[1],O[2]=u[2],O[3]=u[3],O}function Ce(u,O,ue,ye){var _e=new y.ARRAY_TYPE(4);return _e[0]=u,_e[1]=O,_e[2]=ue,_e[3]=ye,_e}function Xe(u,O){return u[0]=O[0],u[1]=O[1],u[2]=O[2],u[3]=O[3],u}function ut(u,O,ue,ye,_e){return u[0]=O,u[1]=ue,u[2]=ye,u[3]=_e,u}function ot(u,O,ue){return u[0]=O[0]+ue[0],u[1]=O[1]+ue[1],u[2]=O[2]+ue[2],u[3]=O[3]+ue[3],u}function bt(u,O,ue){return u[0]=O[0]-ue[0],u[1]=O[1]-ue[1],u[2]=O[2]-ue[2],u[3]=O[3]-ue[3],u}function Xt(u,O,ue){return u[0]=O[0]*ue[0],u[1]=O[1]*ue[1],u[2]=O[2]*ue[2],u[3]=O[3]*ue[3],u}function wr(u,O,ue){return u[0]=O[0]/ue[0],u[1]=O[1]/ue[1],u[2]=O[2]/ue[2],u[3]=O[3]/ue[3],u}function Wr(u,O){return u[0]=Math.ceil(O[0]),u[1]=Math.ceil(O[1]),u[2]=Math.ceil(O[2]),u[3]=Math.ceil(O[3]),u}function on(u,O){return u[0]=Math.floor(O[0]),u[1]=Math.floor(O[1]),u[2]=Math.floor(O[2]),u[3]=Math.floor(O[3]),u}function xn(u,O,ue){return u[0]=Math.min(O[0],ue[0]),u[1]=Math.min(O[1],ue[1]),u[2]=Math.min(O[2],ue[2]),u[3]=Math.min(O[3],ue[3]),u}function zn(u,O,ue){return u[0]=Math.max(O[0],ue[0]),u[1]=Math.max(O[1],ue[1]),u[2]=Math.max(O[2],ue[2]),u[3]=Math.max(O[3],ue[3]),u}function Qn(u,O){return u[0]=Math.round(O[0]),u[1]=Math.round(O[1]),u[2]=Math.round(O[2]),u[3]=Math.round(O[3]),u}function ia(u,O,ue){return u[0]=O[0]*ue,u[1]=O[1]*ue,u[2]=O[2]*ue,u[3]=O[3]*ue,u}function Wa(u,O,ue,ye){return u[0]=O[0]+ue[0]*ye,u[1]=O[1]+ue[1]*ye,u[2]=O[2]+ue[2]*ye,u[3]=O[3]+ue[3]*ye,u}function Ia(u,O){var ue=O[0]-u[0],ye=O[1]-u[1],_e=O[2]-u[2],ke=O[3]-u[3];return Math.hypot(ue,ye,_e,ke)}function Ba(u,O){var ue=O[0]-u[0],ye=O[1]-u[1],_e=O[2]-u[2],ke=O[3]-u[3];return ue*ue+ye*ye+_e*_e+ke*ke}function Ea(u){var O=u[0],ue=u[1],ye=u[2],_e=u[3];return Math.hypot(O,ue,ye,_e)}function qa(u){var O=u[0],ue=u[1],ye=u[2],_e=u[3];return O*O+ue*ue+ye*ye+_e*_e}function si(u,O){return u[0]=-O[0],u[1]=-O[1],u[2]=-O[2],u[3]=-O[3],u}function _a(u,O){return u[0]=1/O[0],u[1]=1/O[1],u[2]=1/O[2],u[3]=1/O[3],u}function So(u,O){var ue=O[0],ye=O[1],_e=O[2],ke=O[3],Be=ue*ue+ye*ye+_e*_e+ke*ke;return Be>0&&(Be=1/Math.sqrt(Be)),u[0]=ue*Be,u[1]=ye*Be,u[2]=_e*Be,u[3]=ke*Be,u}function to(u,O){return u[0]*O[0]+u[1]*O[1]+u[2]*O[2]+u[3]*O[3]}function co(u,O,ue,ye){var _e=ue[0]*ye[1]-ue[1]*ye[0],ke=ue[0]*ye[2]-ue[2]*ye[0],Be=ue[0]*ye[3]-ue[3]*ye[0],Ye=ue[1]*ye[2]-ue[2]*ye[1],Je=ue[1]*ye[3]-ue[3]*ye[1],dt=ue[2]*ye[3]-ue[3]*ye[2],It=O[0],ir=O[1],cr=O[2],nr=O[3];return u[0]=ir*dt-cr*Je+nr*Ye,u[1]=-(It*dt)+cr*Be-nr*ke,u[2]=It*Je-ir*Be+nr*_e,u[3]=-(It*Ye)+ir*ke-cr*_e,u}function ni(u,O,ue,ye){var _e=O[0],ke=O[1],Be=O[2],Ye=O[3];return u[0]=_e+ye*(ue[0]-_e),u[1]=ke+ye*(ue[1]-ke),u[2]=Be+ye*(ue[2]-Be),u[3]=Ye+ye*(ue[3]-Ye),u}function lo(u,O){O=O||1;var ue,ye,_e,ke,Be,Ye;do ue=y.RANDOM()*2-1,ye=y.RANDOM()*2-1,Be=ue*ue+ye*ye;while(Be>=1);do _e=y.RANDOM()*2-1,ke=y.RANDOM()*2-1,Ye=_e*_e+ke*ke;while(Ye>=1);var Je=Math.sqrt((1-Be)/Ye);return u[0]=O*ue,u[1]=O*ye,u[2]=O*_e*Je,u[3]=O*ke*Je,u}function Ss(u,O,ue){var ye=O[0],_e=O[1],ke=O[2],Be=O[3];return u[0]=ue[0]*ye+ue[4]*_e+ue[8]*ke+ue[12]*Be,u[1]=ue[1]*ye+ue[5]*_e+ue[9]*ke+ue[13]*Be,u[2]=ue[2]*ye+ue[6]*_e+ue[10]*ke+ue[14]*Be,u[3]=ue[3]*ye+ue[7]*_e+ue[11]*ke+ue[15]*Be,u}function Ro(u,O,ue){var ye=O[0],_e=O[1],ke=O[2],Be=ue[0],Ye=ue[1],Je=ue[2],dt=ue[3],It=dt*ye+Ye*ke-Je*_e,ir=dt*_e+Je*ye-Be*ke,cr=dt*ke+Be*_e-Ye*ye,nr=-Be*ye-Ye*_e-Je*ke;return u[0]=It*dt+nr*-Be+ir*-Je-cr*-Ye,u[1]=ir*dt+nr*-Ye+cr*-Be-It*-Je,u[2]=cr*dt+nr*-Je+It*-Ye-ir*-Be,u[3]=O[3],u}function mi(u){return u[0]=0,u[1]=0,u[2]=0,u[3]=0,u}function ya(u){return"vec4("+u[0]+", "+u[1]+", "+u[2]+", "+u[3]+")"}function _o(u,O){return u[0]===O[0]&&u[1]===O[1]&&u[2]===O[2]&&u[3]===O[3]}function Yi(u,O){var ue=u[0],ye=u[1],_e=u[2],ke=u[3],Be=O[0],Ye=O[1],Je=O[2],dt=O[3];return Math.abs(ue-Be)<=y.EPSILON*Math.max(1,Math.abs(ue),Math.abs(Be))&&Math.abs(ye-Ye)<=y.EPSILON*Math.max(1,Math.abs(ye),Math.abs(Ye))&&Math.abs(_e-Je)<=y.EPSILON*Math.max(1,Math.abs(_e),Math.abs(Je))&&Math.abs(ke-dt)<=y.EPSILON*Math.max(1,Math.abs(ke),Math.abs(dt))}var Fi=bt,Bo=Xt,_s=wr,Oo=Ia,Hi=Ba,_n=Ea,Fo=qa,Go=function(){var u=bn();return function(O,ue,ye,_e,ke,Be){var Ye,Je;for(ue||(ue=4),ye||(ye=0),_e?Je=Math.min(_e*ue+ye,O.length):Je=O.length,Ye=ye;Yey.EPSILON?(u[0]=O[0]/ye,u[1]=O[1]/ye,u[2]=O[2]/ye):(u[0]=1,u[1]=0,u[2]=0),ue}function Mo(u,O){var ue=Ya(u,O);return Math.acos(2*ue*ue-1)}function ho(u,O,ue){var ye=O[0],_e=O[1],ke=O[2],Be=O[3],Ye=ue[0],Je=ue[1],dt=ue[2],It=ue[3];return u[0]=ye*It+Be*Ye+_e*dt-ke*Je,u[1]=_e*It+Be*Je+ke*Ye-ye*dt,u[2]=ke*It+Be*dt+ye*Je-_e*Ye,u[3]=Be*It-ye*Ye-_e*Je-ke*dt,u}function Gi(u,O,ue){ue*=.5;var ye=O[0],_e=O[1],ke=O[2],Be=O[3],Ye=Math.sin(ue),Je=Math.cos(ue);return u[0]=ye*Je+Be*Ye,u[1]=_e*Je+ke*Ye,u[2]=ke*Je-_e*Ye,u[3]=Be*Je-ye*Ye,u}function Di(u,O,ue){ue*=.5;var ye=O[0],_e=O[1],ke=O[2],Be=O[3],Ye=Math.sin(ue),Je=Math.cos(ue);return u[0]=ye*Je-ke*Ye,u[1]=_e*Je+Be*Ye,u[2]=ke*Je+ye*Ye,u[3]=Be*Je-_e*Ye,u}function $o(u,O,ue){ue*=.5;var ye=O[0],_e=O[1],ke=O[2],Be=O[3],Ye=Math.sin(ue),Je=Math.cos(ue);return u[0]=ye*Je+_e*Ye,u[1]=_e*Je-ye*Ye,u[2]=ke*Je+Be*Ye,u[3]=Be*Je-ke*Ye,u}function Ni(u,O){var ue=O[0],ye=O[1],_e=O[2];return u[0]=ue,u[1]=ye,u[2]=_e,u[3]=Math.sqrt(Math.abs(1-ue*ue-ye*ye-_e*_e)),u}function ro(u,O){var ue=O[0],ye=O[1],_e=O[2],ke=O[3],Be=Math.sqrt(ue*ue+ye*ye+_e*_e),Ye=Math.exp(ke),Je=Be>0?Ye*Math.sin(Be)/Be:0;return u[0]=ue*Je,u[1]=ye*Je,u[2]=_e*Je,u[3]=Ye*Math.cos(Be),u}function Qo(u,O){var ue=O[0],ye=O[1],_e=O[2],ke=O[3],Be=Math.sqrt(ue*ue+ye*ye+_e*_e),Ye=Be>0?Math.atan2(Be,ke)/Be:0;return u[0]=ue*Ye,u[1]=ye*Ye,u[2]=_e*Ye,u[3]=.5*Math.log(ue*ue+ye*ye+_e*_e+ke*ke),u}function ns(u,O,ue){return Qo(u,O),Fa(u,u,ue),ro(u,u),u}function zi(u,O,ue,ye){var _e=O[0],ke=O[1],Be=O[2],Ye=O[3],Je=ue[0],dt=ue[1],It=ue[2],ir=ue[3],cr,nr,Or,Cr,hr;return nr=_e*Je+ke*dt+Be*It+Ye*ir,nr<0&&(nr=-nr,Je=-Je,dt=-dt,It=-It,ir=-ir),1-nr>y.EPSILON?(cr=Math.acos(nr),Or=Math.sin(cr),Cr=Math.sin((1-ye)*cr)/Or,hr=Math.sin(ye*cr)/Or):(Cr=1-ye,hr=ye),u[0]=Cr*_e+hr*Je,u[1]=Cr*ke+hr*dt,u[2]=Cr*Be+hr*It,u[3]=Cr*Ye+hr*ir,u}function ga(u){var O=y.RANDOM(),ue=y.RANDOM(),ye=y.RANDOM(),_e=Math.sqrt(1-O),ke=Math.sqrt(O);return u[0]=_e*Math.sin(2*Math.PI*ue),u[1]=_e*Math.cos(2*Math.PI*ue),u[2]=ke*Math.sin(2*Math.PI*ye),u[3]=ke*Math.cos(2*Math.PI*ye),u}function vo(u,O){var ue=O[0],ye=O[1],_e=O[2],ke=O[3],Be=ue*ue+ye*ye+_e*_e+ke*ke,Ye=Be?1/Be:0;return u[0]=-ue*Ye,u[1]=-ye*Ye,u[2]=-_e*Ye,u[3]=ke*Ye,u}function Vs(u,O){return u[0]=-O[0],u[1]=-O[1],u[2]=-O[2],u[3]=O[3],u}function Pi(u,O){var ue=O[0]+O[4]+O[8],ye;if(ue>0)ye=Math.sqrt(ue+1),u[3]=.5*ye,ye=.5/ye,u[0]=(O[5]-O[7])*ye,u[1]=(O[6]-O[2])*ye,u[2]=(O[1]-O[3])*ye;else{var _e=0;O[4]>O[0]&&(_e=1),O[8]>O[_e*3+_e]&&(_e=2);var ke=(_e+1)%3,Be=(_e+2)%3;ye=Math.sqrt(O[_e*3+_e]-O[ke*3+ke]-O[Be*3+Be]+1),u[_e]=.5*ye,ye=.5/ye,u[3]=(O[ke*3+Be]-O[Be*3+ke])*ye,u[ke]=(O[ke*3+_e]+O[_e*3+ke])*ye,u[Be]=(O[Be*3+_e]+O[_e*3+Be])*ye}return u}function Ao(u,O,ue,ye){var _e=.5*Math.PI/180;O*=_e,ue*=_e,ye*=_e;var ke=Math.sin(O),Be=Math.cos(O),Ye=Math.sin(ue),Je=Math.cos(ue),dt=Math.sin(ye),It=Math.cos(ye);return u[0]=ke*Je*It-Be*Ye*dt,u[1]=Be*Ye*It+ke*Je*dt,u[2]=Be*Je*dt-ke*Ye*It,u[3]=Be*Je*It+ke*Ye*dt,u}function as(u){return"quat("+u[0]+", "+u[1]+", "+u[2]+", "+u[3]+")"}var vi=je,Zi=Ce,_i=Xe,no=ut,Ui=ot,da=ho,Fa=ia,Ya=to,Ii=ni,Wi=Ea,ao=Wi,go=qa,po=go,yo=So,ji=_o,ka=Yi,Ys=function(){var u=Yn.create(),O=Yn.fromValues(1,0,0),ue=Yn.fromValues(0,1,0);return function(ye,_e,ke){var Be=Yn.dot(_e,ke);return Be<-.999999?(Yn.cross(u,O,_e),Yn.len(u)<1e-6&&Yn.cross(u,ue,_e),Yn.normalize(u,u),Ko(ye,u,Math.PI),ye):Be>.999999?(ye[0]=0,ye[1]=0,ye[2]=0,ye[3]=1,ye):(Yn.cross(u,_e,ke),ye[0]=u[0],ye[1]=u[1],ye[2]=u[2],ye[3]=1+Be,yo(ye,ye))}}(),_f=function(){var u=Va(),O=Va();return function(ue,ye,_e,ke,Be,Ye){return zi(u,ye,Be,Ye),zi(O,_e,ke,Ye),zi(ue,u,O,2*Ye*(1-Ye)),ue}}(),mo=function(){var u=qr.create();return function(O,ue,ye,_e){return u[0]=ye[0],u[3]=ye[1],u[6]=ye[2],u[1]=_e[0],u[4]=_e[1],u[7]=_e[2],u[2]=-ue[0],u[5]=-ue[1],u[8]=-ue[2],yo(O,Pi(O,u))}}();function lu(){var u=new y.ARRAY_TYPE(8);return y.ARRAY_TYPE!=Float32Array&&(u[0]=0,u[1]=0,u[2]=0,u[4]=0,u[5]=0,u[6]=0,u[7]=0),u[3]=1,u}function na(u){var O=new y.ARRAY_TYPE(8);return O[0]=u[0],O[1]=u[1],O[2]=u[2],O[3]=u[3],O[4]=u[4],O[5]=u[5],O[6]=u[6],O[7]=u[7],O}function an(u,O,ue,ye,_e,ke,Be,Ye){var Je=new y.ARRAY_TYPE(8);return Je[0]=u,Je[1]=O,Je[2]=ue,Je[3]=ye,Je[4]=_e,Je[5]=ke,Je[6]=Be,Je[7]=Ye,Je}function Hs(u,O,ue,ye,_e,ke,Be){var Ye=new y.ARRAY_TYPE(8);Ye[0]=u,Ye[1]=O,Ye[2]=ue,Ye[3]=ye;var Je=_e*.5,dt=ke*.5,It=Be*.5;return Ye[4]=Je*ye+dt*ue-It*O,Ye[5]=dt*ye+It*u-Je*ue,Ye[6]=It*ye+Je*O-dt*u,Ye[7]=-Je*u-dt*O-It*ue,Ye}function Xi(u,O,ue){var ye=ue[0]*.5,_e=ue[1]*.5,ke=ue[2]*.5,Be=O[0],Ye=O[1],Je=O[2],dt=O[3];return u[0]=Be,u[1]=Ye,u[2]=Je,u[3]=dt,u[4]=ye*dt+_e*Je-ke*Ye,u[5]=_e*dt+ke*Be-ye*Je,u[6]=ke*dt+ye*Ye-_e*Be,u[7]=-ye*Be-_e*Ye-ke*Je,u}function zo(u,O){return u[0]=0,u[1]=0,u[2]=0,u[3]=1,u[4]=O[0]*.5,u[5]=O[1]*.5,u[6]=O[2]*.5,u[7]=0,u}function is(u,O){return u[0]=O[0],u[1]=O[1],u[2]=O[2],u[3]=O[3],u[4]=0,u[5]=0,u[6]=0,u[7]=0,u}function ui(u,O){var ue=Va();P(ue,O);var ye=new y.ARRAY_TYPE(3);return ne(ye,O),Xi(u,ue,ye),u}function ai(u,O){return u[0]=O[0],u[1]=O[1],u[2]=O[2],u[3]=O[3],u[4]=O[4],u[5]=O[5],u[6]=O[6],u[7]=O[7],u}function Eo(u){return u[0]=0,u[1]=0,u[2]=0,u[3]=1,u[4]=0,u[5]=0,u[6]=0,u[7]=0,u}function Yu(u,O,ue,ye,_e,ke,Be,Ye,Je){return u[0]=O,u[1]=ue,u[2]=ye,u[3]=_e,u[4]=ke,u[5]=Be,u[6]=Ye,u[7]=Je,u}var Hu=_i;function du(u,O){return u[0]=O[4],u[1]=O[5],u[2]=O[6],u[3]=O[7],u}var hu=_i;function Ei(u,O){return u[4]=O[0],u[5]=O[1],u[6]=O[2],u[7]=O[3],u}function Ki(u,O){var ue=O[4],ye=O[5],_e=O[6],ke=O[7],Be=-O[0],Ye=-O[1],Je=-O[2],dt=O[3];return u[0]=(ue*dt+ke*Be+ye*Je-_e*Ye)*2,u[1]=(ye*dt+ke*Ye+_e*Be-ue*Je)*2,u[2]=(_e*dt+ke*Je+ue*Ye-ye*Be)*2,u}function Zs(u,O,ue){var ye=O[0],_e=O[1],ke=O[2],Be=O[3],Ye=ue[0]*.5,Je=ue[1]*.5,dt=ue[2]*.5,It=O[4],ir=O[5],cr=O[6],nr=O[7];return u[0]=ye,u[1]=_e,u[2]=ke,u[3]=Be,u[4]=Be*Ye+_e*dt-ke*Je+It,u[5]=Be*Je+ke*Ye-ye*dt+ir,u[6]=Be*dt+ye*Je-_e*Ye+cr,u[7]=-ye*Ye-_e*Je-ke*dt+nr,u}function Ks(u,O,ue){var ye=-O[0],_e=-O[1],ke=-O[2],Be=O[3],Ye=O[4],Je=O[5],dt=O[6],It=O[7],ir=Ye*Be+It*ye+Je*ke-dt*_e,cr=Je*Be+It*_e+dt*ye-Ye*ke,nr=dt*Be+It*ke+Ye*_e-Je*ye,Or=It*Be-Ye*ye-Je*_e-dt*ke;return Gi(u,O,ue),ye=u[0],_e=u[1],ke=u[2],Be=u[3],u[4]=ir*Be+Or*ye+cr*ke-nr*_e,u[5]=cr*Be+Or*_e+nr*ye-ir*ke,u[6]=nr*Be+Or*ke+ir*_e-cr*ye,u[7]=Or*Be-ir*ye-cr*_e-nr*ke,u}function io(u,O,ue){var ye=-O[0],_e=-O[1],ke=-O[2],Be=O[3],Ye=O[4],Je=O[5],dt=O[6],It=O[7],ir=Ye*Be+It*ye+Je*ke-dt*_e,cr=Je*Be+It*_e+dt*ye-Ye*ke,nr=dt*Be+It*ke+Ye*_e-Je*ye,Or=It*Be-Ye*ye-Je*_e-dt*ke;return Di(u,O,ue),ye=u[0],_e=u[1],ke=u[2],Be=u[3],u[4]=ir*Be+Or*ye+cr*ke-nr*_e,u[5]=cr*Be+Or*_e+nr*ye-ir*ke,u[6]=nr*Be+Or*ke+ir*_e-cr*ye,u[7]=Or*Be-ir*ye-cr*_e-nr*ke,u}function os(u,O,ue){var ye=-O[0],_e=-O[1],ke=-O[2],Be=O[3],Ye=O[4],Je=O[5],dt=O[6],It=O[7],ir=Ye*Be+It*ye+Je*ke-dt*_e,cr=Je*Be+It*_e+dt*ye-Ye*ke,nr=dt*Be+It*ke+Ye*_e-Je*ye,Or=It*Be-Ye*ye-Je*_e-dt*ke;return $o(u,O,ue),ye=u[0],_e=u[1],ke=u[2],Be=u[3],u[4]=ir*Be+Or*ye+cr*ke-nr*_e,u[5]=cr*Be+Or*_e+nr*ye-ir*ke,u[6]=nr*Be+Or*ke+ir*_e-cr*ye,u[7]=Or*Be-ir*ye-cr*_e-nr*ke,u}function ss(u,O,ue){var ye=ue[0],_e=ue[1],ke=ue[2],Be=ue[3],Ye=O[0],Je=O[1],dt=O[2],It=O[3];return u[0]=Ye*Be+It*ye+Je*ke-dt*_e,u[1]=Je*Be+It*_e+dt*ye-Ye*ke,u[2]=dt*Be+It*ke+Ye*_e-Je*ye,u[3]=It*Be-Ye*ye-Je*_e-dt*ke,Ye=O[4],Je=O[5],dt=O[6],It=O[7],u[4]=Ye*Be+It*ye+Je*ke-dt*_e,u[5]=Je*Be+It*_e+dt*ye-Ye*ke,u[6]=dt*Be+It*ke+Ye*_e-Je*ye,u[7]=It*Be-Ye*ye-Je*_e-dt*ke,u}function us(u,O,ue){var ye=O[0],_e=O[1],ke=O[2],Be=O[3],Ye=ue[0],Je=ue[1],dt=ue[2],It=ue[3];return u[0]=ye*It+Be*Ye+_e*dt-ke*Je,u[1]=_e*It+Be*Je+ke*Ye-ye*dt,u[2]=ke*It+Be*dt+ye*Je-_e*Ye,u[3]=Be*It-ye*Ye-_e*Je-ke*dt,Ye=ue[4],Je=ue[5],dt=ue[6],It=ue[7],u[4]=ye*It+Be*Ye+_e*dt-ke*Je,u[5]=_e*It+Be*Je+ke*Ye-ye*dt,u[6]=ke*It+Be*dt+ye*Je-_e*Ye,u[7]=Be*It-ye*Ye-_e*Je-ke*dt,u}function $s(u,O,ue,ye){if(Math.abs(ye)0){ue=Math.sqrt(ue);var ye=O[0]/ue,_e=O[1]/ue,ke=O[2]/ue,Be=O[3]/ue,Ye=O[4],Je=O[5],dt=O[6],It=O[7],ir=ye*Ye+_e*Je+ke*dt+Be*It;u[0]=ye,u[1]=_e,u[2]=ke,u[3]=Be,u[4]=(Ye-ye*ir)/ue,u[5]=(Je-_e*ir)/ue,u[6]=(dt-ke*ir)/ue,u[7]=(It-Be*ir)/ue}return u}function $u(u){return"quat2("+u[0]+", "+u[1]+", "+u[2]+", "+u[3]+", "+u[4]+", "+u[5]+", "+u[6]+", "+u[7]+")"}function Mf(u,O){return u[0]===O[0]&&u[1]===O[1]&&u[2]===O[2]&&u[3]===O[3]&&u[4]===O[4]&&u[5]===O[5]&&u[6]===O[6]&&u[7]===O[7]}function Ts(u,O){var ue=u[0],ye=u[1],_e=u[2],ke=u[3],Be=u[4],Ye=u[5],Je=u[6],dt=u[7],It=O[0],ir=O[1],cr=O[2],nr=O[3],Or=O[4],Cr=O[5],hr=O[6],rn=O[7];return Math.abs(ue-It)<=y.EPSILON*Math.max(1,Math.abs(ue),Math.abs(It))&&Math.abs(ye-ir)<=y.EPSILON*Math.max(1,Math.abs(ye),Math.abs(ir))&&Math.abs(_e-cr)<=y.EPSILON*Math.max(1,Math.abs(_e),Math.abs(cr))&&Math.abs(ke-nr)<=y.EPSILON*Math.max(1,Math.abs(ke),Math.abs(nr))&&Math.abs(Be-Or)<=y.EPSILON*Math.max(1,Math.abs(Be),Math.abs(Or))&&Math.abs(Ye-Cr)<=y.EPSILON*Math.max(1,Math.abs(Ye),Math.abs(Cr))&&Math.abs(Je-hr)<=y.EPSILON*Math.max(1,Math.abs(Je),Math.abs(hr))&&Math.abs(dt-rn)<=y.EPSILON*Math.max(1,Math.abs(dt),Math.abs(rn))}var Cf=z(31437)},38186:function(or){var U=[],z=[],B="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function j(A,N){if(N=N||{},A===void 0)throw new Error(B);var L=N.prepend===!0?"prepend":"append",y=N.container!==void 0?N.container:document.querySelector("head"),x=U.indexOf(y);x===-1&&(x=U.push(y)-1,z[x]={});var v;return z[x]!==void 0&&z[x][L]!==void 0?v=z[x][L]:(v=z[x][L]=R(),L==="prepend"?y.insertBefore(v,y.childNodes[0]):y.appendChild(v)),A.charCodeAt(0)===65279&&(A=A.substr(1,A.length)),v.styleSheet?v.styleSheet.cssText+=A:v.textContent+=A,v}function R(){var A=document.createElement("style");return A.setAttribute("type","text/css"),A}or.exports=j,or.exports.insertCss=j},81763:function(or,U,z){var B=z(44239),j=z(37005),R="[object Number]";function A(N){return typeof N=="number"||j(N)&&B(N)==R}or.exports=A},51496:function(or,U,z){"use strict";z.d(U,{x0:function(){return A}});let B=N=>crypto.getRandomValues(new Uint8Array(N)),j=(N,L,y)=>{let x=(2<{let d="";for(;;){let _=y(v),E=v;for(;E--;)if(d+=N[_[E]&x]||"",d.length===g)return d}}},R=(N,L=21)=>j(N,L,B),A=(N=21)=>crypto.getRandomValues(new Uint8Array(N)).reduce((L,y)=>(y&=63,y<36?L+=y.toString(36):y<62?L+=(y-26).toString(36).toUpperCase():y>62?L+="-":L+="_",L),"")},81550:function(or){(function(U,z){or.exports=z()})(this,function(){"use strict";var U=function(ve){return ve instanceof Uint8Array||ve instanceof Uint16Array||ve instanceof Uint32Array||ve instanceof Int8Array||ve instanceof Int16Array||ve instanceof Int32Array||ve instanceof Float32Array||ve instanceof Float64Array||ve instanceof Uint8ClampedArray},z=function(ve,We){for(var it=Object.keys(We),Zt=0;Zt=0&&(ve|0)===ve||R("invalid parameter type, ("+ve+")"+N(We)+". must be a nonnegative integer")}function d(ve,We,it){We.indexOf(ve)<0&&R("invalid value"+N(it)+". must be one of: "+We)}var _=["gl","canvas","container","attributes","pixelRatio","extensions","optionalExtensions","profile","onDone"];function E(ve){Object.keys(ve).forEach(function(We){_.indexOf(We)<0&&R('invalid regl constructor argument "'+We+'". must be one of '+_)})}function w(ve,We){for(ve=ve+"";ve.length0&&We.push(new b("unknown",0,it))}}),We}function H(ve,We){We.forEach(function(it){var Zt=ve[it.file];if(Zt){var dr=Zt.index[it.line];if(dr){dr.errors.push(it),Zt.hasErrors=!0;return}}ve.unknown.hasErrors=!0,ve.unknown.lines[0].errors.push(it)})}function Q(ve,We,it,Zt,dr){if(!ve.getShaderParameter(We,ve.COMPILE_STATUS)){var Yt=ve.getShaderInfoLog(We),ar=Zt===ve.FRAGMENT_SHADER?"fragment":"vertex";Se(it,"string",ar+" shader source must be a string",dr);var Mr=W(it,dr),Ir=X(Yt);H(Mr,Ir),Object.keys(Mr).forEach(function(Ar){var Tr=Mr[Ar];if(!Tr.hasErrors)return;var zr=[""],f=[""];function M(G,Y){zr.push(G),f.push(Y||"")}M("file number "+Ar+": "+Tr.name+` +`,"color:red;text-decoration:underline;font-weight:bold"),Tr.lines.forEach(function(G){if(G.errors.length>0){M(w(G.number,4)+"| ","background-color:yellow; font-weight:bold"),M(G.line+B,"color:red; background-color:yellow; font-weight:bold");var Y=0;G.errors.forEach(function(re){var ie=re.message,le=/^\s*'(.*)'\s*:\s*(.*)$/.exec(ie);if(le){var ge=le[1];switch(ie=le[2],ge){case"assign":ge="=";break}Y=Math.max(G.line.indexOf(ge,Y),0)}else Y=0;M(w("| ",6)),M(w("^^^",Y+3)+B,"font-weight:bold"),M(w("| ",6)),M(ie+B,"font-weight:bold")}),M(w("| ",6)+B)}else M(w(G.number,4)+"| "),M(G.line+B,"color:red")}),typeof document!="undefined"&&!window.chrome?(f[0]=zr.join("%c"),console.log.apply(console,f)):console.log(zr.join(""))}),A.raise("Error compiling "+ar+" shader, "+Mr[0].name)}}function q(ve,We,it,Zt,dr){if(!ve.getProgramParameter(We,ve.LINK_STATUS)){var Yt=ve.getProgramInfoLog(We),ar=W(it,dr),Mr=W(Zt,dr),Ir='Error linking program with vertex shader, "'+Mr[0].name+'", and fragment shader "'+ar[0].name+'"';typeof document!="undefined"?console.log("%c"+Ir+B+"%c"+Yt,"color:red;text-decoration:underline;font-weight:bold","color:red"):console.log(Ir+B+Yt),A.raise(Ir)}}function J(ve){ve._commandRef=m()}function te(ve,We,it,Zt){J(ve);function dr(Ir){return Ir?Zt.id(Ir):0}ve._fragId=dr(ve.static.frag),ve._vertId=dr(ve.static.vert);function Yt(Ir,Ar){Object.keys(Ar).forEach(function(Tr){Ir[Zt.id(Tr)]=!0})}var ar=ve._uniformSet={};Yt(ar,We.static),Yt(ar,We.dynamic);var Mr=ve._attributeSet={};Yt(Mr,it.static),Yt(Mr,it.dynamic),ve._hasCount="count"in ve.static||"count"in ve.dynamic||"elements"in ve.static||"elements"in ve.dynamic}function fe(ve,We){var it=$();R(ve+" in command "+(We||m())+(it==="unknown"?"":" called from "+it))}function de(ve,We,it){ve||fe(We,it||m())}function Te(ve,We,it,Zt){ve in We||fe("unknown parameter ("+ve+")"+N(it)+". possible values: "+Object.keys(We).join(),Zt||m())}function Se(ve,We,it,Zt){x(ve,We)||fe("invalid parameter type"+N(it)+". expected "+We+", got "+typeof ve,Zt||m())}function Ie(ve){ve()}function be(ve,We,it){ve.texture?d(ve.texture._texture.internalformat,We,"unsupported texture format for attachment"):d(ve.renderbuffer._renderbuffer.format,it,"unsupported renderbuffer format for attachment")}var pe=33071,Me=9728,De=9984,Ue=9985,nt=9986,Ze=9987,ht=5120,Rt=5121,tr=5122,Qe=5123,lt=5124,St=5125,Ct=5126,_t=32819,pt=32820,rr=33635,xr=34042,Vt=36193,ft={};ft[ht]=ft[Rt]=1,ft[tr]=ft[Qe]=ft[Vt]=ft[rr]=ft[_t]=ft[pt]=2,ft[lt]=ft[St]=ft[Ct]=ft[xr]=4;function Bt(ve,We){return ve===pt||ve===_t||ve===rr?2:ve===xr?4:ft[ve]*We}function qt(ve){return!(ve&ve-1)&&!!ve}function br(ve,We,it){var Zt,dr=We.width,Yt=We.height,ar=We.channels;A(dr>0&&dr<=it.maxTextureSize&&Yt>0&&Yt<=it.maxTextureSize,"invalid texture shape"),(ve.wrapS!==pe||ve.wrapT!==pe)&&A(qt(dr)&&qt(Yt),"incompatible wrap mode for texture, both width and height must be power of 2"),We.mipmask===1?dr!==1&&Yt!==1&&A(ve.minFilter!==De&&ve.minFilter!==nt&&ve.minFilter!==Ue&&ve.minFilter!==Ze,"min filter requires mipmap"):(A(qt(dr)&&qt(Yt),"texture must be a square power of 2 to support mipmapping"),A(We.mipmask===(dr<<1)-1,"missing or incomplete mipmap data")),We.type===Ct&&(it.extensions.indexOf("oes_texture_float_linear")<0&&A(ve.minFilter===Me&&ve.magFilter===Me,"filter not supported, must enable oes_texture_float_linear"),A(!ve.genMipmaps,"mipmap generation not supported with float textures"));var Mr=We.images;for(Zt=0;Zt<16;++Zt)if(Mr[Zt]){var Ir=dr>>Zt,Ar=Yt>>Zt;A(We.mipmask&1<0&&dr<=Zt.maxTextureSize&&Yt>0&&Yt<=Zt.maxTextureSize,"invalid texture shape"),A(dr===Yt,"cube map must be square"),A(We.wrapS===pe&&We.wrapT===pe,"wrap mode not supported by cube map");for(var Mr=0;Mr>Tr,M=Yt>>Tr;A(Ir.mipmask&1<1&&We===it&&(We==='"'||We==="'"))return['"'+Gn(ve.substr(1,ve.length-2))+'"'];var Zt=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(ve);if(Zt)return mn(ve.substr(0,Zt.index)).concat(mn(Zt[1])).concat(mn(ve.substr(Zt.index+Zt[0].length)));var dr=ve.split(".");if(dr.length===1)return['"'+Gn(ve)+'"'];for(var Yt=[],ar=0;arct(it,We+"["+Zt+"]")));if(ve instanceof vn)return ve;Ae(!1,"invalid option type in uniform "+We)}var Wt={DynamicVariable:vn,define:gn,isDynamic:Rr,unbox:ct,accessor:$r},Er={next:typeof requestAnimationFrame=="function"?function(ve){return requestAnimationFrame(ve)}:function(ve){return setTimeout(ve,16)},cancel:typeof cancelAnimationFrame=="function"?function(ve){return cancelAnimationFrame(ve)}:clearTimeout},Dr=typeof performance!="undefined"&&performance.now?function(){return performance.now()}:function(){return+new Date};function Vr(){var ve={"":0},We=[""];return{id:function(it){var Zt=ve[it];return Zt||(Zt=ve[it]=We.length,We.push(it),Zt)},str:function(it){return We[it]}}}function pn(ve,We,it){var Zt=document.createElement("canvas");z(Zt.style,{border:0,margin:0,padding:0,top:0,left:0}),ve.appendChild(Zt),ve===document.body&&(Zt.style.position="absolute",z(ve.style,{margin:0,padding:0}));function dr(){var Mr=window.innerWidth,Ir=window.innerHeight;if(ve!==document.body){var Ar=ve.getBoundingClientRect();Mr=Ar.right-Ar.left,Ir=Ar.bottom-Ar.top}Zt.width=it*Mr,Zt.height=it*Ir,z(Zt.style,{width:Mr+"px",height:Ir+"px"})}var Yt;ve!==document.body&&typeof ResizeObserver=="function"?(Yt=new ResizeObserver(function(){setTimeout(dr)}),Yt.observe(ve)):window.addEventListener("resize",dr,!1);function ar(){Yt?Yt.disconnect():window.removeEventListener("resize",dr),ve.removeChild(Zt)}return dr(),{canvas:Zt,onDestroy:ar}}function wn(ve,We){function it(Zt){try{return ve.getContext(Zt,We)}catch(dr){return null}}return it("webgl")||it("experimental-webgl")||it("webgl-experimental")}function Sn(ve){return typeof ve.nodeName=="string"&&typeof ve.appendChild=="function"&&typeof ve.getBoundingClientRect=="function"}function In(ve){return typeof ve.drawArrays=="function"||typeof ve.drawElements=="function"}function $n(ve){return typeof ve=="string"?ve.split():(Ae(Array.isArray(ve),"invalid extension array"),ve)}function Zr(ve){return typeof ve=="string"?(Ae(typeof document!="undefined","not supported outside of DOM"),document.querySelector(ve)):ve}function Pn(ve){var We=ve||{},it,Zt,dr,Yt,ar={},Mr=[],Ir=[],Ar=typeof window=="undefined"?1:window.devicePixelRatio,Tr=!1,zr=function(G){G&&Ae.raise(G)},f=function(){};if(typeof We=="string"?(Ae(typeof document!="undefined","selector queries only supported in DOM enviroments"),it=document.querySelector(We),Ae(it,"invalid query string for element")):typeof We=="object"?Sn(We)?it=We:In(We)?(Yt=We,dr=Yt.canvas):(Ae.constructor(We),"gl"in We?Yt=We.gl:"canvas"in We?dr=Zr(We.canvas):"container"in We&&(Zt=Zr(We.container)),"attributes"in We&&(ar=We.attributes,Ae.type(ar,"object","invalid context attributes")),"extensions"in We&&(Mr=$n(We.extensions)),"optionalExtensions"in We&&(Ir=$n(We.optionalExtensions)),"onDone"in We&&(Ae.type(We.onDone,"function","invalid or missing onDone callback"),zr=We.onDone),"profile"in We&&(Tr=!!We.profile),"pixelRatio"in We&&(Ar=+We.pixelRatio,Ae(Ar>0,"invalid pixel ratio"))):Ae.raise("invalid arguments to regl"),it&&(it.nodeName.toLowerCase()==="canvas"?dr=it:Zt=it),!Yt){if(!dr){Ae(typeof document!="undefined","must manually specify webgl context outside of DOM environments");var M=pn(Zt||document.body,zr,Ar);if(!M)return null;dr=M.canvas,f=M.onDestroy}ar.premultipliedAlpha===void 0&&(ar.premultipliedAlpha=!0),Yt=wn(dr,ar)}return Yt?{gl:Yt,canvas:dr,container:Zt,extensions:Mr,optionalExtensions:Ir,pixelRatio:Ar,profile:Tr,onDone:zr,onDestroy:f}:(f(),zr("webgl not supported, try upgrading your browser or graphics drivers http://get.webgl.org"),null)}function An(ve,We){var it={};function Zt(ar){Ae.type(ar,"string","extension name must be string");var Mr=ar.toLowerCase(),Ir;try{Ir=it[Mr]=ve.getExtension(Mr)}catch(Ar){}return!!Ir}for(var dr=0;dr65535)<<4,ve>>>=We,it=(ve>255)<<3,ve>>>=it,We|=it,it=(ve>15)<<2,ve>>>=it,We|=it,it=(ve>3)<<1,ve>>>=it,We|=it,We|ve>>1}function V(){var ve=ln(8,function(){return[]});function We(Yt){var ar=S(Yt),Mr=ve[C(ar)>>2];return Mr.length>0?Mr.pop():new ArrayBuffer(ar)}function it(Yt){ve[C(Yt.byteLength)>>2].push(Yt)}function Zt(Yt,ar){var Mr=null;switch(Yt){case va:Mr=new Int8Array(We(ar),0,ar);break;case K:Mr=new Uint8Array(We(ar),0,ar);break;case Dt:Mr=new Int16Array(We(2*ar),0,ar);break;case rt:Mr=new Uint16Array(We(2*ar),0,ar);break;case ne:Mr=new Int32Array(We(4*ar),0,ar);break;case ae:Mr=new Uint32Array(We(4*ar),0,ar);break;case P:Mr=new Float32Array(We(4*ar),0,ar);break;default:return null}return Mr.length!==ar?Mr.subarray(0,ar):Mr}function dr(Yt){it(Yt.buffer)}return{alloc:We,free:it,allocType:Zt,freeType:dr}}var he=V();he.zero=V();var xe=3408,Ee=3410,Ne=3411,Et=3412,st=3413,Pt=3414,$t=3415,Ht=33901,Br=33902,hn=3379,Ot=3386,Qt=34921,pr=36347,en=36348,Nr=35661,ta=35660,kn=34930,En=36349,Rn=34076,Yn=34024,bn=7936,je=7937,Ce=7938,Xe=35724,ut=34047,ot=36063,bt=34852,Xt=3553,wr=34067,Wr=34069,on=33984,xn=6408,zn=5126,Qn=5121,ia=36160,Wa=36053,Ia=36064,Ba=16384,Ea=function(ve,We){var it=1;We.ext_texture_filter_anisotropic&&(it=ve.getParameter(ut));var Zt=1,dr=1;We.webgl_draw_buffers&&(Zt=ve.getParameter(bt),dr=ve.getParameter(ot));var Yt=!!We.oes_texture_float;if(Yt){var ar=ve.createTexture();ve.bindTexture(Xt,ar),ve.texImage2D(Xt,0,xn,1,1,0,xn,zn,null);var Mr=ve.createFramebuffer();if(ve.bindFramebuffer(ia,Mr),ve.framebufferTexture2D(ia,Ia,Xt,ar,0),ve.bindTexture(Xt,null),ve.checkFramebufferStatus(ia)!==Wa)Yt=!1;else{ve.viewport(0,0,1,1),ve.clearColor(1,0,0,1),ve.clear(Ba);var Ir=he.allocType(zn,4);ve.readPixels(0,0,1,1,xn,zn,Ir),ve.getError()?Yt=!1:(ve.deleteFramebuffer(Mr),ve.deleteTexture(ar),Yt=Ir[0]===1),he.freeType(Ir)}}var Ar=typeof navigator!="undefined"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent)),Tr=!0;if(!Ar){var zr=ve.createTexture(),f=he.allocType(Qn,36);ve.activeTexture(on),ve.bindTexture(wr,zr),ve.texImage2D(Wr,0,xn,3,3,0,xn,Qn,f),he.freeType(f),ve.bindTexture(wr,null),ve.deleteTexture(zr),Tr=!ve.getError()}return{colorBits:[ve.getParameter(Ee),ve.getParameter(Ne),ve.getParameter(Et),ve.getParameter(st)],depthBits:ve.getParameter(Pt),stencilBits:ve.getParameter($t),subpixelBits:ve.getParameter(xe),extensions:Object.keys(We).filter(function(M){return!!We[M]}),maxAnisotropic:it,maxDrawbuffers:Zt,maxColorAttachments:dr,pointSizeDims:ve.getParameter(Ht),lineWidthDims:ve.getParameter(Br),maxViewportDims:ve.getParameter(Ot),maxCombinedTextureUnits:ve.getParameter(Nr),maxCubeMapSize:ve.getParameter(Rn),maxRenderbufferSize:ve.getParameter(Yn),maxTextureUnits:ve.getParameter(kn),maxTextureSize:ve.getParameter(hn),maxAttributes:ve.getParameter(Qt),maxVertexUniforms:ve.getParameter(pr),maxVertexTextureUnits:ve.getParameter(ta),maxVaryingVectors:ve.getParameter(en),maxFragmentUniforms:ve.getParameter(En),glsl:ve.getParameter(Xe),renderer:ve.getParameter(je),vendor:ve.getParameter(bn),version:ve.getParameter(Ce),readFloat:Yt,npotTextureCube:Tr}};function qa(ve){return!!ve&&typeof ve=="object"&&Array.isArray(ve.shape)&&Array.isArray(ve.stride)&&typeof ve.offset=="number"&&ve.shape.length===ve.stride.length&&(Array.isArray(ve.data)||U(ve.data))}var si=function(ve){return Object.keys(ve).map(function(We){return ve[We]})},_a={shape:Ss,flatten:lo};function So(ve,We,it){for(var Zt=0;Zt0){var ze;if(Array.isArray(re[0])){Le=Ms(re);for(var Fe=1,tt=1;tt0)if(typeof Fe[0]=="number"){var Tt=he.allocType(ge.dtype,Fe.length);$o(Tt,Fe),Le(Tt,Mt),he.freeType(Tt)}else if(Array.isArray(Fe[0])||U(Fe[0])){sr=Ms(Fe);var Nt=Va(Fe,sr,ge.dtype);Le(Nt,Mt),he.freeType(Nt)}else Ae.raise("invalid buffer data")}else if(qa(Fe)){sr=Fe.shape;var Lt=Fe.stride,_r=0,Yr=0,Pr=0,dn=0;sr.length===1?(_r=sr[0],Yr=1,Pr=Lt[0],dn=0):sr.length===2?(_r=sr[0],Yr=sr[1],Pr=Lt[0],dn=Lt[1]):Ae.raise("invalid shape");var sn=Array.isArray(Fe.data)?ge.dtype:Di(Fe.data),tn=he.allocType(sn,_r*Yr);Ni(tn,Fe.data,_r,Yr,Pr,dn,Fe.offset),Le(tn,Mt),he.freeType(tn)}else Ae.raise("invalid data for buffer subdata");return me}return ie||me(Y),me._reglType="buffer",me._buffer=ge,me.subdata=ze,it.profile&&(me.stats=ge.stats),me.destroy=function(){f(ge)},me}function G(){si(Yt).forEach(function(Y){Y.buffer=ve.createBuffer(),ve.bindBuffer(Y.type,Y.buffer),ve.bufferData(Y.type,Y.persistentData||Y.byteLength,Y.usage)})}return it.profile&&(We.getTotalBufferSize=function(){var Y=0;return Object.keys(Yt).forEach(function(re){Y+=Yt[re].stats.size}),Y}),{create:M,createStream:Ir,destroyStream:Ar,clear:function(){si(Yt).forEach(f),Mr.forEach(f)},getBuffer:function(Y){return Y&&Y._buffer instanceof ar?Y._buffer:null},restore:G,_initBuffer:zr}}var Qo=0,ns=0,zi=1,ga=1,vo=4,Vs=4,Pi={points:Qo,point:ns,lines:zi,line:ga,triangles:vo,triangle:Vs,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Ao=0,as=1,vi=4,Zi=5120,_i=5121,no=5122,Ui=5123,da=5124,Fa=5125,Ya=34963,Ii=35040,Wi=35044;function ao(ve,We,it,Zt){var dr={},Yt=0,ar={uint8:_i,uint16:Ui};We.oes_element_index_uint&&(ar.uint32=Fa);function Mr(G){this.id=Yt++,dr[this.id]=this,this.buffer=G,this.primType=vi,this.vertCount=0,this.type=0}Mr.prototype.bind=function(){this.buffer.bind()};var Ir=[];function Ar(G){var Y=Ir.pop();return Y||(Y=new Mr(it.create(null,Ya,!0,!1)._buffer)),zr(Y,G,Ii,-1,-1,0,0),Y}function Tr(G){Ir.push(G)}function zr(G,Y,re,ie,le,ge,me){G.buffer.bind();var Le;if(Y){var ze=me;!me&&(!U(Y)||qa(Y)&&!U(Y.data))&&(ze=We.oes_element_index_uint?Fa:Ui),it._initBuffer(G.buffer,Y,re,ze,3)}else ve.bufferData(Ya,ge,re),G.buffer.dtype=Le||_i,G.buffer.usage=re,G.buffer.dimension=3,G.buffer.byteLength=ge;if(Le=me,!me){switch(G.buffer.dtype){case _i:case Zi:Le=_i;break;case Ui:case no:Le=Ui;break;case Fa:case da:Le=Fa;break;default:Ae.raise("unsupported type for element array")}G.buffer.dtype=Le}G.type=Le,Ae(Le!==Fa||!!We.oes_element_index_uint,"32 bit element buffers not supported, enable oes_element_index_uint first");var Fe=le;Fe<0&&(Fe=G.buffer.byteLength,Le===Ui?Fe>>=1:Le===Fa&&(Fe>>=2)),G.vertCount=Fe;var tt=ie;if(ie<0){tt=vi;var Mt=G.buffer.dimension;Mt===1&&(tt=Ao),Mt===2&&(tt=as),Mt===3&&(tt=vi)}G.primType=tt}function f(G){Zt.elementsCount--,Ae(G.buffer!==null,"must not double destroy elements"),delete dr[G.id],G.buffer.destroy(),G.buffer=null}function M(G,Y){var re=it.create(null,Ya,!0),ie=new Mr(re._buffer);Zt.elementsCount++;function le(ge){if(!ge)re(),ie.primType=vi,ie.vertCount=0,ie.type=_i;else if(typeof ge=="number")re(ge),ie.primType=vi,ie.vertCount=ge|0,ie.type=_i;else{var me=null,Le=Wi,ze=-1,Fe=-1,tt=0,Mt=0;Array.isArray(ge)||U(ge)||qa(ge)?me=ge:(Ae.type(ge,"object","invalid arguments for elements"),"data"in ge&&(me=ge.data,Ae(Array.isArray(me)||U(me)||qa(me),"invalid data for element buffer")),"usage"in ge&&(Ae.parameter(ge.usage,Go,"invalid element buffer usage"),Le=Go[ge.usage]),"primitive"in ge&&(Ae.parameter(ge.primitive,Pi,"invalid element buffer primitive"),ze=Pi[ge.primitive]),"count"in ge&&(Ae(typeof ge.count=="number"&&ge.count>=0,"invalid vertex count for elements"),Fe=ge.count|0),"type"in ge&&(Ae.parameter(ge.type,ar,"invalid buffer type"),Mt=ar[ge.type]),"length"in ge?tt=ge.length|0:(tt=Fe,Mt===Ui||Mt===no?tt*=2:(Mt===Fa||Mt===da)&&(tt*=4))),zr(ie,me,Le,ze,Fe,tt,Mt)}return le}return le(G),le._reglType="elements",le._elements=ie,le.subdata=function(ge,me){return re.subdata(ge,me),le},le.destroy=function(){f(ie)},le}return{create:M,createStream:Ar,destroyStream:Tr,getElements:function(G){return typeof G=="function"&&G._elements instanceof Mr?G._elements:null},clear:function(){si(dr).forEach(f)}}}var go=new Float32Array(1),po=new Uint32Array(go.buffer),yo=5123;function ji(ve){for(var We=he.allocType(yo,ve.length),it=0;it>>31<<15,Yt=(Zt<<1>>>24)-127,ar=Zt>>13&(1<<10)-1;if(Yt<-24)We[it]=dr;else if(Yt<-14){var Mr=-14-Yt;We[it]=dr+(ar+(1<<10)>>Mr)}else Yt>15?We[it]=dr+31744:We[it]=dr+(Yt+15<<10)+ar}return We}function ka(ve){return Array.isArray(ve)||U(ve)}var Ys=function(ve){return!(ve&ve-1)&&!!ve},_f=34467,mo=3553,lu=34067,na=34069,an=6408,Hs=6406,Xi=6407,zo=6409,is=6410,ui=32854,ai=32855,Eo=36194,Yu=32819,Hu=32820,du=33635,hu=34042,Ei=6402,Ki=34041,Zs=35904,Ks=35906,io=36193,os=33776,ss=33777,us=33778,$s=33779,Uo=35986,bo=35987,fs=34798,Zu=35840,vu=35841,gu=35842,pu=35843,Ku=36196,Co=5121,Cs=5123,cs=5125,$i=5126,xo=10242,$u=10243,Mf=10497,Ts=33071,Cf=33648,u=10240,O=10241,ue=9728,ye=9729,_e=9984,ke=9985,Be=9986,Ye=9987,Je=33170,dt=4352,It=4353,ir=4354,cr=34046,nr=3317,Or=37440,Cr=37441,hr=37443,rn=37444,Jn=33984,qn=[_e,Be,ke,Ye],Un=[0,zo,is,Xi,an],Mn={};Mn[zo]=Mn[Hs]=Mn[Ei]=1,Mn[Ki]=Mn[is]=2,Mn[Xi]=Mn[Zs]=3,Mn[an]=Mn[Ks]=4;function Cn(ve){return"[object "+ve+"]"}var Ga=Cn("HTMLCanvasElement"),ei=Cn("OffscreenCanvas"),Ka=Cn("CanvasRenderingContext2D"),$a=Cn("ImageBitmap"),Ha=Cn("HTMLImageElement"),fi=Cn("HTMLVideoElement"),bi=Object.keys(Ro).concat([Ga,ei,Ka,$a,Ha,fi]),ha=[];ha[Co]=1,ha[$i]=4,ha[io]=2,ha[Cs]=2,ha[cs]=4;var Oa=[];Oa[ui]=2,Oa[ai]=2,Oa[Eo]=2,Oa[Ki]=4,Oa[os]=.5,Oa[ss]=.5,Oa[us]=1,Oa[$s]=1,Oa[Uo]=.5,Oa[bo]=1,Oa[fs]=1,Oa[Zu]=.5,Oa[vu]=.25,Oa[gu]=.5,Oa[pu]=.25,Oa[Ku]=.5;function Jo(ve){return Array.isArray(ve)&&(ve.length===0||typeof ve[0]=="number")}function Wo(ve){if(!Array.isArray(ve))return!1;var We=ve.length;return!(We===0||!ka(ve[0]))}function oo(ve){return Object.prototype.toString.call(ve)}function Qs(ve){return oo(ve)===Ga}function Tf(ve){return oo(ve)===ei}function Qu(ve){return oo(ve)===Ka}function Ju(ve){return oo(ve)===$a}function cc(ve){return oo(ve)===Ha}function yu(ve){return oo(ve)===fi}function If(ve){if(!ve)return!1;var We=oo(ve);return bi.indexOf(We)>=0?!0:Jo(ve)||Wo(ve)||qa(ve)}function Of(ve){return Ro[Object.prototype.toString.call(ve)]|0}function qo(ve,We){var it=We.length;switch(ve.type){case Co:case Cs:case cs:case $i:var Zt=he.allocType(ve.type,it);Zt.set(We),ve.data=Zt;break;case io:ve.data=ji(We);break;default:Ae.raise("unsupported texture type, must specify a typed array")}}function Af(ve,We){return he.allocType(ve.type===io?$i:ve.type,We)}function lc(ve,We){ve.type===io?(ve.data=ji(We),he.freeType(We)):ve.data=We}function el(ve,We,it,Zt,dr,Yt){for(var ar=ve.width,Mr=ve.height,Ir=ve.channels,Ar=ar*Mr*Ir,Tr=Af(ve,Ar),zr=0,f=0;f=1;)Mr+=ar*Ir*Ir,Ir/=2;return Mr}else return ar*it*Zt}function mu(ve,We,it,Zt,dr,Yt,ar){var Mr={"don't care":dt,"dont care":dt,nice:ir,fast:It},Ir={repeat:Mf,clamp:Ts,mirror:Cf},Ar={nearest:ue,linear:ye},Tr=z({mipmap:Ye,"nearest mipmap nearest":_e,"linear mipmap nearest":ke,"nearest mipmap linear":Be,"linear mipmap linear":Ye},Ar),zr={none:0,browser:rn},f={uint8:Co,rgba4:Yu,rgb565:du,"rgb5 a1":Hu},M={alpha:Hs,luminance:zo,"luminance alpha":is,rgb:Xi,rgba:an,rgba4:ui,"rgb5 a1":ai,rgb565:Eo},G={};We.ext_srgb&&(M.srgb=Zs,M.srgba=Ks),We.oes_texture_float&&(f.float32=f.float=$i),We.oes_texture_half_float&&(f.float16=f["half float"]=io),We.webgl_depth_texture&&(z(M,{depth:Ei,"depth stencil":Ki}),z(f,{uint16:Cs,uint32:cs,"depth stencil":hu})),We.webgl_compressed_texture_s3tc&&z(G,{"rgb s3tc dxt1":os,"rgba s3tc dxt1":ss,"rgba s3tc dxt3":us,"rgba s3tc dxt5":$s}),We.webgl_compressed_texture_atc&&z(G,{"rgb atc":Uo,"rgba atc explicit alpha":bo,"rgba atc interpolated alpha":fs}),We.webgl_compressed_texture_pvrtc&&z(G,{"rgb pvrtc 4bppv1":Zu,"rgb pvrtc 2bppv1":vu,"rgba pvrtc 4bppv1":gu,"rgba pvrtc 2bppv1":pu}),We.webgl_compressed_texture_etc1&&(G["rgb etc1"]=Ku);var Y=Array.prototype.slice.call(ve.getParameter(_f));Object.keys(G).forEach(function(et){var Jt=G[et];Y.indexOf(Jt)>=0&&(M[et]=Jt)});var re=Object.keys(M);it.textureFormats=re;var ie=[];Object.keys(M).forEach(function(et){var Jt=M[et];ie[Jt]=et});var le=[];Object.keys(f).forEach(function(et){var Jt=f[et];le[Jt]=et});var ge=[];Object.keys(Ar).forEach(function(et){var Jt=Ar[et];ge[Jt]=et});var me=[];Object.keys(Tr).forEach(function(et){var Jt=Tr[et];me[Jt]=et});var Le=[];Object.keys(Ir).forEach(function(et){var Jt=Ir[et];Le[Jt]=et});var ze=re.reduce(function(et,Jt){var jt=M[Jt];return jt===zo||jt===Hs||jt===zo||jt===is||jt===Ei||jt===Ki||We.ext_srgb&&(jt===Zs||jt===Ks)?et[jt]=jt:jt===ai||Jt.indexOf("rgba")>=0?et[jt]=an:et[jt]=Xi,et},{});function Fe(){this.internalformat=an,this.format=an,this.type=Co,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=rn,this.width=0,this.height=0,this.channels=0}function tt(et,Jt){et.internalformat=Jt.internalformat,et.format=Jt.format,et.type=Jt.type,et.compressed=Jt.compressed,et.premultiplyAlpha=Jt.premultiplyAlpha,et.flipY=Jt.flipY,et.unpackAlignment=Jt.unpackAlignment,et.colorSpace=Jt.colorSpace,et.width=Jt.width,et.height=Jt.height,et.channels=Jt.channels}function Mt(et,Jt){if(!(typeof Jt!="object"||!Jt)){if("premultiplyAlpha"in Jt&&(Ae.type(Jt.premultiplyAlpha,"boolean","invalid premultiplyAlpha"),et.premultiplyAlpha=Jt.premultiplyAlpha),"flipY"in Jt&&(Ae.type(Jt.flipY,"boolean","invalid texture flip"),et.flipY=Jt.flipY),"alignment"in Jt&&(Ae.oneOf(Jt.alignment,[1,2,4,8],"invalid texture unpack alignment"),et.unpackAlignment=Jt.alignment),"colorSpace"in Jt&&(Ae.parameter(Jt.colorSpace,zr,"invalid colorSpace"),et.colorSpace=zr[Jt.colorSpace]),"type"in Jt){var jt=Jt.type;Ae(We.oes_texture_float||!(jt==="float"||jt==="float32"),"you must enable the OES_texture_float extension in order to use floating point textures."),Ae(We.oes_texture_half_float||!(jt==="half float"||jt==="float16"),"you must enable the OES_texture_half_float extension in order to use 16-bit floating point textures."),Ae(We.webgl_depth_texture||!(jt==="uint16"||jt==="uint32"||jt==="depth stencil"),"you must enable the WEBGL_depth_texture extension in order to use depth/stencil textures."),Ae.parameter(jt,f,"invalid texture type"),et.type=f[jt]}var nn=et.width,aa=et.height,$e=et.channels,Ge=!1;"shape"in Jt?(Ae(Array.isArray(Jt.shape)&&Jt.shape.length>=2,"shape must be an array"),nn=Jt.shape[0],aa=Jt.shape[1],Jt.shape.length===3&&($e=Jt.shape[2],Ae($e>0&&$e<=4,"invalid number of channels"),Ge=!0),Ae(nn>=0&&nn<=it.maxTextureSize,"invalid width"),Ae(aa>=0&&aa<=it.maxTextureSize,"invalid height")):("radius"in Jt&&(nn=aa=Jt.radius,Ae(nn>=0&&nn<=it.maxTextureSize,"invalid radius")),"width"in Jt&&(nn=Jt.width,Ae(nn>=0&&nn<=it.maxTextureSize,"invalid width")),"height"in Jt&&(aa=Jt.height,Ae(aa>=0&&aa<=it.maxTextureSize,"invalid height")),"channels"in Jt&&($e=Jt.channels,Ae($e>0&&$e<=4,"invalid number of channels"),Ge=!0)),et.width=nn|0,et.height=aa|0,et.channels=$e|0;var mt=!1;if("format"in Jt){var Gt=Jt.format;Ae(We.webgl_depth_texture||!(Gt==="depth"||Gt==="depth stencil"),"you must enable the WEBGL_depth_texture extension in order to use depth/stencil textures."),Ae.parameter(Gt,M,"invalid texture format");var Ut=et.internalformat=M[Gt];et.format=ze[Ut],Gt in f&&("type"in Jt||(et.type=f[Gt])),Gt in G&&(et.compressed=!0),mt=!0}!Ge&&mt?et.channels=Mn[et.format]:Ge&&!mt?et.channels!==Un[et.format]&&(et.format=et.internalformat=Un[et.channels]):mt&&Ge&&Ae(et.channels===Mn[et.format],"number of channels inconsistent with specified format")}}function sr(et){ve.pixelStorei(Or,et.flipY),ve.pixelStorei(Cr,et.premultiplyAlpha),ve.pixelStorei(hr,et.colorSpace),ve.pixelStorei(nr,et.unpackAlignment)}function Tt(){Fe.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function Nt(et,Jt){var jt=null;if(If(Jt)?jt=Jt:Jt&&(Ae.type(Jt,"object","invalid pixel data type"),Mt(et,Jt),"x"in Jt&&(et.xOffset=Jt.x|0),"y"in Jt&&(et.yOffset=Jt.y|0),If(Jt.data)&&(jt=Jt.data)),Ae(!et.compressed||jt instanceof Uint8Array,"compressed texture data must be stored in a uint8array"),Jt.copy){Ae(!jt,"can not specify copy and data field for the same texture");var nn=dr.viewportWidth,aa=dr.viewportHeight;et.width=et.width||nn-et.xOffset,et.height=et.height||aa-et.yOffset,et.needsCopy=!0,Ae(et.xOffset>=0&&et.xOffset=0&&et.yOffset0&&et.width<=nn&&et.height>0&&et.height<=aa,"copy texture read out of bounds")}else if(!jt)et.width=et.width||1,et.height=et.height||1,et.channels=et.channels||4;else if(U(jt))et.channels=et.channels||4,et.data=jt,!("type"in Jt)&&et.type===Co&&(et.type=Of(jt));else if(Jo(jt))et.channels=et.channels||4,qo(et,jt),et.alignment=1,et.needsFree=!0;else if(qa(jt)){var $e=jt.data;!Array.isArray($e)&&et.type===Co&&(et.type=Of($e));var Ge=jt.shape,mt=jt.stride,Gt,Ut,wt,xt,At,Ke;Ge.length===3?(wt=Ge[2],Ke=mt[2]):(Ae(Ge.length===2,"invalid ndarray pixel data, must be 2 or 3D"),wt=1,Ke=1),Gt=Ge[0],Ut=Ge[1],xt=mt[0],At=mt[1],et.alignment=1,et.width=Gt,et.height=Ut,et.channels=wt,et.format=et.internalformat=Un[wt],et.needsFree=!0,el(et,$e,xt,At,Ke,jt.offset)}else if(Qs(jt)||Tf(jt)||Qu(jt))Qs(jt)||Tf(jt)?et.element=jt:et.element=jt.canvas,et.width=et.element.width,et.height=et.element.height,et.channels=4;else if(Ju(jt))et.element=jt,et.width=jt.width,et.height=jt.height,et.channels=4;else if(cc(jt))et.element=jt,et.width=jt.naturalWidth,et.height=jt.naturalHeight,et.channels=4;else if(yu(jt))et.element=jt,et.width=jt.videoWidth,et.height=jt.videoHeight,et.channels=4;else if(Wo(jt)){var vt=et.width||jt[0].length,Ve=et.height||jt.length,kt=et.channels;ka(jt[0][0])?kt=kt||jt[0][0].length:kt=kt||1;for(var zt=_a.shape(jt),vr=1,gr=0;gr=0,"oes_texture_float extension not enabled"):et.type===io&&Ae(it.extensions.indexOf("oes_texture_half_float")>=0,"oes_texture_half_float extension not enabled")}function Lt(et,Jt,jt){var nn=et.element,aa=et.data,$e=et.internalformat,Ge=et.format,mt=et.type,Gt=et.width,Ut=et.height;sr(et),nn?ve.texImage2D(Jt,jt,Ge,Ge,mt,nn):et.compressed?ve.compressedTexImage2D(Jt,jt,$e,Gt,Ut,0,aa):et.needsCopy?(Zt(),ve.copyTexImage2D(Jt,jt,Ge,et.xOffset,et.yOffset,Gt,Ut,0)):ve.texImage2D(Jt,jt,Ge,Gt,Ut,0,Ge,mt,aa||null)}function _r(et,Jt,jt,nn,aa){var $e=et.element,Ge=et.data,mt=et.internalformat,Gt=et.format,Ut=et.type,wt=et.width,xt=et.height;sr(et),$e?ve.texSubImage2D(Jt,aa,jt,nn,Gt,Ut,$e):et.compressed?ve.compressedTexSubImage2D(Jt,aa,jt,nn,mt,wt,xt,Ge):et.needsCopy?(Zt(),ve.copyTexSubImage2D(Jt,aa,jt,nn,et.xOffset,et.yOffset,wt,xt)):ve.texSubImage2D(Jt,aa,jt,nn,wt,xt,Gt,Ut,Ge)}var Yr=[];function Pr(){return Yr.pop()||new Tt}function dn(et){et.needsFree&&he.freeType(et.data),Tt.call(et),Yr.push(et)}function sn(){Fe.call(this),this.genMipmaps=!1,this.mipmapHint=dt,this.mipmask=0,this.images=Array(16)}function tn(et,Jt,jt){var nn=et.images[0]=Pr();et.mipmask=1,nn.width=et.width=Jt,nn.height=et.height=jt,nn.channels=et.channels=4}function Bn(et,Jt){var jt=null;if(If(Jt))jt=et.images[0]=Pr(),tt(jt,et),Nt(jt,Jt),et.mipmask=1;else if(Mt(et,Jt),Array.isArray(Jt.mipmap))for(var nn=Jt.mipmap,aa=0;aa>=aa,jt.height>>=aa,Nt(jt,nn[aa]),et.mipmask|=1<=0&&!("faces"in Jt)&&(et.genMipmaps=!0)}if("mag"in Jt){var nn=Jt.mag;Ae.parameter(nn,Ar),et.magFilter=Ar[nn]}var aa=et.wrapS,$e=et.wrapT;if("wrap"in Jt){var Ge=Jt.wrap;typeof Ge=="string"?(Ae.parameter(Ge,Ir),aa=$e=Ir[Ge]):Array.isArray(Ge)&&(Ae.parameter(Ge[0],Ir),Ae.parameter(Ge[1],Ir),aa=Ir[Ge[0]],$e=Ir[Ge[1]])}else{if("wrapS"in Jt){var mt=Jt.wrapS;Ae.parameter(mt,Ir),aa=Ir[mt]}if("wrapT"in Jt){var Gt=Jt.wrapT;Ae.parameter(Gt,Ir),$e=Ir[Gt]}}if(et.wrapS=aa,et.wrapT=$e,"anisotropic"in Jt){var Ut=Jt.anisotropic;Ae(typeof Ut=="number"&&Ut>=1&&Ut<=it.maxAnisotropic,"aniso samples must be between 1 and "),et.anisotropic=Jt.anisotropic}if("mipmap"in Jt){var wt=!1;switch(typeof Jt.mipmap){case"string":Ae.parameter(Jt.mipmap,Mr,"invalid mipmap hint"),et.mipmapHint=Mr[Jt.mipmap],et.genMipmaps=!0,wt=!0;break;case"boolean":wt=et.genMipmaps=Jt.mipmap;break;case"object":Ae(Array.isArray(Jt.mipmap),"invalid mipmap type"),et.genMipmaps=!1,wt=!0;break;default:Ae.raise("invalid mipmap type")}wt&&!("min"in Jt)&&(et.minFilter=_e)}}function Za(et,Jt){ve.texParameteri(Jt,O,et.minFilter),ve.texParameteri(Jt,u,et.magFilter),ve.texParameteri(Jt,xo,et.wrapS),ve.texParameteri(Jt,$u,et.wrapT),We.ext_texture_filter_anisotropic&&ve.texParameteri(Jt,cr,et.anisotropic),et.genMipmaps&&(ve.hint(Je,et.mipmapHint),ve.generateMipmap(Jt))}var ri=0,li={},ii=it.maxTextureUnits,Pa=Array(ii).map(function(){return null});function Hn(et){Fe.call(this),this.mipmask=0,this.internalformat=an,this.id=ri++,this.refCount=1,this.target=et,this.texture=ve.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new La,ar.profile&&(this.stats={size:0})}function Bi(et){ve.activeTexture(Jn),ve.bindTexture(et.target,et.texture)}function Ln(){var et=Pa[0];et?ve.bindTexture(et.target,et.texture):ve.bindTexture(mo,null)}function On(et){var Jt=et.texture;Ae(Jt,"must not double destroy texture");var jt=et.unit,nn=et.target;jt>=0&&(ve.activeTexture(Jn+jt),ve.bindTexture(nn,null),Pa[jt]=null),ve.deleteTexture(Jt),et.texture=null,et.params=null,et.pixels=null,et.refCount=0,delete li[et.id],Yt.textureCount--}z(Hn.prototype,{bind:function(){var et=this;et.bindCount+=1;var Jt=et.unit;if(Jt<0){for(var jt=0;jt0)continue;nn.unit=-1}Pa[jt]=et,Jt=jt;break}Jt>=ii&&Ae.raise("insufficient number of texture units"),ar.profile&&Yt.maxTextureUnits>At)-wt,Ke.height=Ke.height||(jt.height>>At)-xt,Ae(jt.type===Ke.type&&jt.format===Ke.format&&jt.internalformat===Ke.internalformat,"incompatible format for texture.subimage"),Ae(wt>=0&&xt>=0&&wt+Ke.width<=jt.width&&xt+Ke.height<=jt.height,"texture.subimage write out of bounds"),Ae(jt.mipmask&1<>wt;++wt){var xt=Gt>>wt,At=Ut>>wt;if(!xt||!At)break;ve.texImage2D(mo,wt,jt.format,xt,At,0,jt.format,jt.type,null)}return Ln(),ar.profile&&(jt.stats.size=Is(jt.internalformat,jt.type,Gt,Ut,!1,!1)),nn}return nn(et,Jt),nn.subimage=aa,nn.resize=$e,nn._reglType="texture2d",nn._texture=jt,ar.profile&&(nn.stats=jt.stats),nn.destroy=function(){jt.decRef()},nn}function ba(et,Jt,jt,nn,aa,$e){var Ge=new Hn(lu);li[Ge.id]=Ge,Yt.cubeCount++;var mt=new Array(6);function Gt(xt,At,Ke,vt,Ve,kt){var zt,vr=Ge.texInfo;for(La.call(vr),zt=0;zt<6;++zt)mt[zt]=Wn();if(typeof xt=="number"||!xt){var gr=xt|0||1;for(zt=0;zt<6;++zt)tn(mt[zt],gr,gr)}else if(typeof xt=="object")if(At)Bn(mt[0],xt),Bn(mt[1],At),Bn(mt[2],Ke),Bn(mt[3],vt),Bn(mt[4],Ve),Bn(mt[5],kt);else if(oa(vr,xt),Mt(Ge,xt),"faces"in xt){var ur=xt.faces;for(Ae(Array.isArray(ur)&&ur.length===6,"cube faces must be a length 6 array"),zt=0;zt<6;++zt)Ae(typeof ur[zt]=="object"&&!!ur[zt],"invalid input for cube map face"),tt(mt[zt],Ge),Bn(mt[zt],ur[zt])}else for(zt=0;zt<6;++zt)Bn(mt[zt],xt);else Ae.raise("invalid arguments to cube map");for(tt(Ge,mt[0]),it.npotTextureCube||Ae(Ys(Ge.width)&&Ys(Ge.height),"your browser does not support non power or two texture dimensions"),vr.genMipmaps?Ge.mipmask=(mt[0].width<<1)-1:Ge.mipmask=mt[0].mipmask,Ae.textureCube(Ge,vr,mt,it),Ge.internalformat=mt[0].internalformat,Gt.width=mt[0].width,Gt.height=mt[0].height,Bi(Ge),zt=0;zt<6;++zt)Fn(mt[zt],na+zt);for(Za(vr,lu),Ln(),ar.profile&&(Ge.stats.size=Is(Ge.internalformat,Ge.type,Gt.width,Gt.height,vr.genMipmaps,!0)),Gt.format=ie[Ge.internalformat],Gt.type=le[Ge.type],Gt.mag=ge[vr.magFilter],Gt.min=me[vr.minFilter],Gt.wrapS=Le[vr.wrapS],Gt.wrapT=Le[vr.wrapT],zt=0;zt<6;++zt)ti(mt[zt]);return Gt}function Ut(xt,At,Ke,vt,Ve){Ae(!!At,"must specify image data"),Ae(typeof xt=="number"&&xt===(xt|0)&&xt>=0&&xt<6,"invalid face");var kt=Ke|0,zt=vt|0,vr=Ve|0,gr=Pr();return tt(gr,Ge),gr.width=0,gr.height=0,Nt(gr,At),gr.width=gr.width||(Ge.width>>vr)-kt,gr.height=gr.height||(Ge.height>>vr)-zt,Ae(Ge.type===gr.type&&Ge.format===gr.format&&Ge.internalformat===gr.internalformat,"incompatible format for texture.subimage"),Ae(kt>=0&&zt>=0&&kt+gr.width<=Ge.width&&zt+gr.height<=Ge.height,"texture.subimage write out of bounds"),Ae(Ge.mipmask&1<>vt;++vt)ve.texImage2D(na+Ke,vt,Ge.format,At>>vt,At>>vt,0,Ge.format,Ge.type,null);return Ln(),ar.profile&&(Ge.stats.size=Is(Ge.internalformat,Ge.type,Gt.width,Gt.height,!1,!0)),Gt}}return Gt(et,Jt,jt,nn,aa,$e),Gt.subimage=Ut,Gt.resize=wt,Gt._reglType="textureCube",Gt._texture=Ge,ar.profile&&(Gt.stats=Ge.stats),Gt.destroy=function(){Ge.decRef()},Gt}function yi(){for(var et=0;et>nn,jt.height>>nn,0,jt.internalformat,jt.type,null);else for(var aa=0;aa<6;++aa)ve.texImage2D(na+aa,nn,jt.internalformat,jt.width>>nn,jt.height>>nn,0,jt.internalformat,jt.type,null);Za(jt.texInfo,jt.target)})}function Uu(){for(var et=0;et=2,"invalid renderbuffer shape"),me=tt[0]|0,Le=tt[1]|0}else"radius"in Fe&&(me=Le=Fe.radius|0),"width"in Fe&&(me=Fe.width|0),"height"in Fe&&(Le=Fe.height|0);"format"in Fe&&(Ae.parameter(Fe.format,Yt,"invalid renderbuffer format"),ze=Yt[Fe.format])}else typeof le=="number"?(me=le|0,typeof ge=="number"?Le=ge|0:Le=me):le?Ae.raise("invalid arguments to renderbuffer constructor"):me=Le=1;if(Ae(me>0&&Le>0&&me<=it.maxRenderbufferSize&&Le<=it.maxRenderbufferSize,"invalid renderbuffer size"),!(me===Y.width&&Le===Y.height&&ze===Y.format))return re.width=Y.width=me,re.height=Y.height=Le,Y.format=ze,ve.bindRenderbuffer(Qr,Y.renderbuffer),ve.renderbufferStorage(Qr,ze,me,Le),Ae(ve.getError()===0,"invalid render buffer format"),dr.profile&&(Y.stats.size=Pf(Y.format,Y.width,Y.height)),re.format=ar[Y.format],re}function ie(le,ge){var me=le|0,Le=ge|0||me;return me===Y.width&&Le===Y.height||(Ae(me>0&&Le>0&&me<=it.maxRenderbufferSize&&Le<=it.maxRenderbufferSize,"invalid renderbuffer size"),re.width=Y.width=me,re.height=Y.height=Le,ve.bindRenderbuffer(Qr,Y.renderbuffer),ve.renderbufferStorage(Qr,Y.format,me,Le),Ae(ve.getError()===0,"invalid render buffer format"),dr.profile&&(Y.stats.size=Pf(Y.format,Y.width,Y.height))),re}return re(M,G),re.resize=ie,re._reglType="renderbuffer",re._renderbuffer=Y,dr.profile&&(re.stats=Y.stats),re.destroy=function(){Y.decRef()},re}dr.profile&&(Zt.getTotalRenderbufferSize=function(){var M=0;return Object.keys(Ir).forEach(function(G){M+=Ir[G].stats.size}),M});function f(){si(Ir).forEach(function(M){M.renderbuffer=ve.createRenderbuffer(),ve.bindRenderbuffer(Qr,M.renderbuffer),ve.renderbufferStorage(Qr,M.format,M.width,M.height)}),ve.bindRenderbuffer(Qr,null)}return{create:zr,clear:function(){si(Ir).forEach(Tr)},restore:f}},xi=36160,tf=36161,As=3553,rf=34069,nf=36064,dc=36096,hc=36128,vc=33306,af=36053,gc=36054,xu=36055,pc=36057,Rf=36061,ds=36193,tl=5121,Do=5126,Bf=6407,hs=6408,Ls=6402,yc=[Bf,hs],wu=[];wu[hs]=4,wu[Bf]=3;var Ds=[];Ds[tl]=1,Ds[Do]=4,Ds[ds]=2;var mc=32854,rl=32855,of=36194,Ff=33189,Gf=36168,Ec=34041,sf=35907,uf=34836,nl=34842,al=34843,bc=[mc,rl,of,sf,nl,al,uf],Js={};Js[af]="complete",Js[gc]="incomplete attachment",Js[pc]="incomplete dimensions",Js[xu]="incomplete, missing attachment",Js[Rf]="unsupported";function il(ve,We,it,Zt,dr,Yt){var ar={cur:null,next:null,dirty:!1,setFBO:null},Mr=["rgba"],Ir=["rgba4","rgb565","rgb5 a1"];We.ext_srgb&&Ir.push("srgba"),We.ext_color_buffer_half_float&&Ir.push("rgba16f","rgb16f"),We.webgl_color_buffer_float&&Ir.push("rgba32f");var Ar=["uint8"];We.oes_texture_half_float&&Ar.push("half float","float16"),We.oes_texture_float&&Ar.push("float","float32");function Tr(Tt,Nt,Lt){this.target=Tt,this.texture=Nt,this.renderbuffer=Lt;var _r=0,Yr=0;Nt?(_r=Nt.width,Yr=Nt.height):Lt&&(_r=Lt.width,Yr=Lt.height),this.width=_r,this.height=Yr}function zr(Tt){Tt&&(Tt.texture&&Tt.texture._texture.decRef(),Tt.renderbuffer&&Tt.renderbuffer._renderbuffer.decRef())}function f(Tt,Nt,Lt){if(!!Tt)if(Tt.texture){var _r=Tt.texture._texture,Yr=Math.max(1,_r.width),Pr=Math.max(1,_r.height);Ae(Yr===Nt&&Pr===Lt,"inconsistent width/height for supplied texture"),_r.refCount+=1}else{var dn=Tt.renderbuffer._renderbuffer;Ae(dn.width===Nt&&dn.height===Lt,"inconsistent width/height for renderbuffer"),dn.refCount+=1}}function M(Tt,Nt){Nt&&(Nt.texture?ve.framebufferTexture2D(xi,Tt,Nt.target,Nt.texture._texture.texture,0):ve.framebufferRenderbuffer(xi,Tt,tf,Nt.renderbuffer._renderbuffer.renderbuffer))}function G(Tt){var Nt=As,Lt=null,_r=null,Yr=Tt;typeof Tt=="object"&&(Yr=Tt.data,"target"in Tt&&(Nt=Tt.target|0)),Ae.type(Yr,"function","invalid attachment data");var Pr=Yr._reglType;return Pr==="texture2d"?(Lt=Yr,Ae(Nt===As)):Pr==="textureCube"?(Lt=Yr,Ae(Nt>=rf&&Nt=2,"invalid shape for framebuffer"),tn=Bi[0],Bn=Bi[1]}else"radius"in Hn&&(tn=Bn=Hn.radius),"width"in Hn&&(tn=Hn.width),"height"in Hn&&(Bn=Hn.height);("color"in Hn||"colors"in Hn)&&(Wn=Hn.color||Hn.colors,Array.isArray(Wn)&&Ae(Wn.length===1||We.webgl_draw_buffers,"multiple render targets not supported")),Wn||("colorCount"in Hn&&(Za=Hn.colorCount|0,Ae(Za>0,"invalid color buffer count")),"colorTexture"in Hn&&(ti=!!Hn.colorTexture,La="rgba4"),"colorType"in Hn&&(oa=Hn.colorType,ti?(Ae(We.oes_texture_float||!(oa==="float"||oa==="float32"),"you must enable OES_texture_float in order to use floating point framebuffer objects"),Ae(We.oes_texture_half_float||!(oa==="half float"||oa==="float16"),"you must enable OES_texture_half_float in order to use 16-bit floating point framebuffer objects")):oa==="half float"||oa==="float16"?(Ae(We.ext_color_buffer_half_float,"you must enable EXT_color_buffer_half_float to use 16-bit render buffers"),La="rgba16f"):(oa==="float"||oa==="float32")&&(Ae(We.webgl_color_buffer_float,"you must enable WEBGL_color_buffer_float in order to use 32-bit floating point renderbuffers"),La="rgba32f"),Ae.oneOf(oa,Ar,"invalid color type")),"colorFormat"in Hn&&(La=Hn.colorFormat,Mr.indexOf(La)>=0?ti=!0:Ir.indexOf(La)>=0?ti=!1:ti?Ae.oneOf(Hn.colorFormat,Mr,"invalid color format for texture"):Ae.oneOf(Hn.colorFormat,Ir,"invalid color format for renderbuffer"))),("depthTexture"in Hn||"depthStencilTexture"in Hn)&&(Pa=!!(Hn.depthTexture||Hn.depthStencilTexture),Ae(!Pa||We.webgl_depth_texture,"webgl_depth_texture extension not supported")),"depth"in Hn&&(typeof Hn.depth=="boolean"?Fn=Hn.depth:(ri=Hn.depth,za=!1)),"stencil"in Hn&&(typeof Hn.stencil=="boolean"?za=Hn.stencil:(li=Hn.stencil,Fn=!1)),"depthStencil"in Hn&&(typeof Hn.depthStencil=="boolean"?Fn=za=Hn.depthStencil:(ii=Hn.depthStencil,Fn=!1,za=!1))}var Ln=null,On=null,sa=null,ba=null;if(Array.isArray(Wn))Ln=Wn.map(G);else if(Wn)Ln=[G(Wn)];else for(Ln=new Array(Za),sn=0;sn=0||Ln[sn].renderbuffer&&bc.indexOf(Ln[sn].renderbuffer._renderbuffer.format)>=0,"framebuffer color attachment "+sn+" is invalid"),Ln[sn]&&Ln[sn].texture){var Ho=wu[Ln[sn].texture._texture.format]*Ds[Ln[sn].texture._texture.type];yi===null?yi=Ho:Ae(yi===Ho,"all color attachments much have the same number of bits per pixel.")}return f(On,tn,Bn),Ae(!On||On.texture&&On.texture._texture.format===Ls||On.renderbuffer&&On.renderbuffer._renderbuffer.format===Ff,"invalid depth attachment for framebuffer object"),f(sa,tn,Bn),Ae(!sa||sa.renderbuffer&&sa.renderbuffer._renderbuffer.format===Gf,"invalid stencil attachment for framebuffer object"),f(ba,tn,Bn),Ae(!ba||ba.texture&&ba.texture._texture.format===Ec||ba.renderbuffer&&ba.renderbuffer._renderbuffer.format===Ec,"invalid depth-stencil attachment for framebuffer object"),Le(Lt),Lt.width=tn,Lt.height=Bn,Lt.colorAttachments=Ln,Lt.depthAttachment=On,Lt.stencilAttachment=sa,Lt.depthStencilAttachment=ba,_r.color=Ln.map(re),_r.depth=re(On),_r.stencil=re(sa),_r.depthStencil=re(ba),_r.width=Lt.width,_r.height=Lt.height,Fe(Lt),_r}function Yr(Pr,dn){Ae(ar.next!==Lt,"can not resize a framebuffer which is currently in use");var sn=Math.max(Pr|0,1),tn=Math.max(dn|0||sn,1);if(sn===Lt.width&&tn===Lt.height)return _r;for(var Bn=Lt.colorAttachments,Fn=0;Fn=2,"invalid shape for framebuffer"),Ae(ti[0]===ti[1],"cube framebuffer must be square"),sn=ti[0]}else"radius"in Wn&&(sn=Wn.radius|0),"width"in Wn?(sn=Wn.width|0,"height"in Wn&&Ae(Wn.height===sn,"must be square")):"height"in Wn&&(sn=Wn.height|0);("color"in Wn||"colors"in Wn)&&(tn=Wn.color||Wn.colors,Array.isArray(tn)&&Ae(tn.length===1||We.webgl_draw_buffers,"multiple render targets not supported")),tn||("colorCount"in Wn&&(za=Wn.colorCount|0,Ae(za>0,"invalid color buffer count")),"colorType"in Wn&&(Ae.oneOf(Wn.colorType,Ar,"invalid color type"),Fn=Wn.colorType),"colorFormat"in Wn&&(Bn=Wn.colorFormat,Ae.oneOf(Wn.colorFormat,Mr,"invalid color format for texture"))),"depth"in Wn&&(dn.depth=Wn.depth),"stencil"in Wn&&(dn.stencil=Wn.stencil),"depthStencil"in Wn&&(dn.depthStencil=Wn.depthStencil)}var La;if(tn)if(Array.isArray(tn))for(La=[],Pr=0;Pr0&&(dn.depth=Nt[0].depth,dn.stencil=Nt[0].stencil,dn.depthStencil=Nt[0].depthStencil),Nt[Pr]?Nt[Pr](dn):Nt[Pr]=tt(dn)}return z(Lt,{width:sn,height:sn,color:La})}function _r(Yr){var Pr,dn=Yr|0;if(Ae(dn>0&&dn<=it.maxCubeMapSize,"invalid radius for cube fbo"),dn===Lt.width)return Lt;var sn=Lt.color;for(Pr=0;Pr0,"must specify at least one attribute");var Mt={},sr=ze.attributes;sr.length=tt.length;for(var Tt=0;Tt=_r.byteLength?Yr.subdata(_r):(Yr.destroy(),ze.buffers[Tt]=null)),ze.buffers[Tt]||(Yr=ze.buffers[Tt]=dr.create(Nt,Su,!1,!0)),Lt.buffer=dr.getBuffer(Yr),Lt.size=Lt.buffer.dimension|0,Lt.normalized=!1,Lt.type=Lt.buffer.dtype,Lt.offset=0,Lt.stride=0,Lt.divisor=0,Lt.state=1,Mt[Tt]=1}else dr.getBuffer(Nt)?(Lt.buffer=dr.getBuffer(Nt),Lt.size=Lt.buffer.dimension|0,Lt.normalized=!1,Lt.type=Lt.buffer.dtype,Lt.offset=0,Lt.stride=0,Lt.divisor=0,Lt.state=1):dr.getBuffer(Nt.buffer)?(Lt.buffer=dr.getBuffer(Nt.buffer),Lt.size=(+Nt.size||Lt.buffer.dimension)|0,Lt.normalized=!!Nt.normalized||!1,"type"in Nt?(Ae.parameter(Nt.type,Hi,"invalid buffer type"),Lt.type=Hi[Nt.type]):Lt.type=Lt.buffer.dtype,Lt.offset=(Nt.offset||0)|0,Lt.stride=(Nt.stride||0)|0,Lt.divisor=(Nt.divisor||0)|0,Lt.state=1,Ae(Lt.size>=1&&Lt.size<=4,"size must be between 1 and 4"),Ae(Lt.offset>=0,"invalid offset"),Ae(Lt.stride>=0&&Lt.stride<=255,"stride must be between 0 and 255"),Ae(Lt.divisor>=0,"divisor must be positive"),Ae(!Lt.divisor||!!We.angle_instanced_arrays,"ANGLE_instanced_arrays must be enabled to use divisor")):"x"in Nt?(Ae(Tt>0,"first attribute must not be a constant"),Lt.x=+Nt.x||0,Lt.y=+Nt.y||0,Lt.z=+Nt.z||0,Lt.w=+Nt.w||0,Lt.state=2):Ae(!1,"invalid attribute spec for location "+Tt)}for(var Pr=0;Pr1)for(var sr=0;srY&&(Y=re.stats.uniformsCount)}),Y},it.getMaxAttributesCount=function(){var Y=0;return Tr.forEach(function(re){re.stats.attributesCount>Y&&(Y=re.stats.attributesCount)}),Y});function G(){dr={},Yt={};for(var Y=0;Y=0,"missing vertex shader",ie),Ae.command(re>=0,"missing fragment shader",ie);var ge=Ar[re];ge||(ge=Ar[re]={});var me=ge[Y];if(me&&(me.refCount++,!le))return me;var Le=new f(re,Y);return it.shaderCount++,M(Le,ie,le),me||(ge[Y]=Le),Tr.push(Le),z(Le,{destroy:function(){if(Le.refCount--,Le.refCount<=0){ve.deleteProgram(Le.program);var ze=Tr.indexOf(Le);Tr.splice(ze,1),it.shaderCount--}ge[Le.vertId].refCount<=0&&(ve.deleteShader(Yt[Le.vertId]),delete Yt[Le.vertId],delete Ar[Le.fragId][Le.vertId]),Object.keys(Ar[Le.fragId]).length||(ve.deleteShader(dr[Le.fragId]),delete dr[Le.fragId],delete Ar[Le.fragId])}})},restore:G,shader:Ir,frag:-1,vert:-1}}var wc=6408,Mu=5121,ff=3333,To=5126;function Sc(ve,We,it,Zt,dr,Yt,ar){function Mr(Tr){var zr;We.next===null?(Ae(dr.preserveDrawingBuffer,'you must create a webgl context with "preserveDrawingBuffer":true in order to read pixels from the drawing buffer'),zr=Mu):(Ae(We.next.colorAttachments[0].texture!==null,"You cannot read from a renderbuffer"),zr=We.next.colorAttachments[0].texture._texture.type,Yt.oes_texture_float?(Ae(zr===Mu||zr===To,"Reading from a framebuffer is only allowed for the types 'uint8' and 'float'"),zr===To&&Ae(ar.readFloat,"Reading 'float' values is not permitted in your browser. For a fallback, please see: https://www.npmjs.com/package/glsl-read-float")):Ae(zr===Mu,"Reading from a framebuffer is only allowed for the type 'uint8'"));var f=0,M=0,G=Zt.framebufferWidth,Y=Zt.framebufferHeight,re=null;U(Tr)?re=Tr:Tr&&(Ae.type(Tr,"object","invalid arguments to regl.read()"),f=Tr.x|0,M=Tr.y|0,Ae(f>=0&&f=0&&M0&&G+f<=Zt.framebufferWidth,"invalid width for read pixels"),Ae(Y>0&&Y+M<=Zt.framebufferHeight,"invalid height for read pixels"),it();var ie=G*Y*4;return re||(zr===Mu?re=new Uint8Array(ie):zr===To&&(re=re||new Float32Array(ie))),Ae.isTypedArray(re,"data buffer for regl.read() must be a typedarray"),Ae(re.byteLength>=ie,"data buffer for regl.read() too small"),ve.pixelStorei(ff,4),ve.readPixels(f,M,G,Y,wc,zr,re),re}function Ir(Tr){var zr;return We.setFBO({framebuffer:Tr.framebuffer},function(){zr=Mr(Tr)}),zr}function Ar(Tr){return!Tr||!("framebuffer"in Tr)?Mr(Tr):Ir(Tr)}return Ar}function qs(ve){return Array.prototype.slice.call(ve)}function Ns(ve){return qs(ve).join("")}function Kr(){var ve=0,We=[],it=[];function Zt(zr){for(var f=0;f0&&(zr.push(Y,"="),zr.push.apply(zr,qs(arguments)),zr.push(";")),Y}return z(f,{def:G,toString:function(){return Ns([M.length>0?"var "+M.join(",")+";":"",Ns(zr)])}})}function Yt(){var zr=dr(),f=dr(),M=zr.toString,G=f.toString;function Y(re,ie){f(re,ie,"=",zr.def(re,ie),";")}return z(function(){zr.apply(zr,qs(arguments))},{def:zr.def,entry:zr,exit:f,save:Y,set:function(re,ie,le){Y(re,ie),zr(re,ie,"=",le,";")},toString:function(){return M()+G()}})}function ar(){var zr=Ns(arguments),f=Yt(),M=Yt(),G=f.toString,Y=M.toString;return z(f,{then:function(){return f.apply(f,qs(arguments)),this},else:function(){return M.apply(M,qs(arguments)),this},toString:function(){var re=Y();return re&&(re="else{"+re+"}"),Ns(["if(",zr,"){",G(),"}",re])}})}var Mr=dr(),Ir={};function Ar(zr,f){var M=[];function G(){var ge="a"+M.length;return M.push(ge),ge}f=f||0;for(var Y=0;Y":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Es={"0":0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Vc={frag:Dc,vert:Nc},Fu={cw:Uc,ccw:su};function Gu(ve){return Array.isArray(ve)||U(ve)||qa(ve)}function Yc(ve){return ve.sort(function(We,it){return We===Xo?-1:it===Xo?1:We=1,Zt>=2,We)}else if(it===Tu){var dr=ve.data;return new Ji(dr.thisDep,dr.contextDep,dr.propDep,We)}else{if(it===Mc)return new Ji(!1,!1,!1,We);if(it===Cc){for(var Yt=!1,ar=!1,Mr=!1,Ir=0;Ir=1&&(ar=!0),Tr>=2&&(Mr=!0)}else Ar.type===Tu&&(Yt=Yt||Ar.data.thisDep,ar=ar||Ar.data.contextDep,Mr=Mr||Ar.data.propDep)}return new Ji(Yt,ar,Mr,We)}else return new Ji(it===tu,it===eu,it===ks,We)}}var Ef=new Ji(!1,!1,!1,function(){});function bl(ve,We,it,Zt,dr,Yt,ar,Mr,Ir,Ar,Tr,zr,f,M,G){var Y=Ar.Record,re={add:32774,subtract:32778,"reverse subtract":32779};it.ext_blend_minmax&&(re.min=pl,re.max=yl);var ie=it.angle_instanced_arrays,le=it.webgl_draw_buffers,ge={dirty:!0,profile:G.profile},me={},Le=[],ze={},Fe={};function tt($e){return $e.replace(".","_")}function Mt($e,Ge,mt){var Gt=tt($e);Le.push($e),me[Gt]=ge[Gt]=!!mt,ze[Gt]=Ge}function sr($e,Ge,mt){var Gt=tt($e);Le.push($e),Array.isArray(mt)?(ge[Gt]=mt.slice(),me[Gt]=mt.slice()):ge[Gt]=me[Gt]=mt,Fe[Gt]=Ge}Mt(Tc,Rc),Mt(Uf,kc),sr(Wf,"blendColor",[0,0,0,0]),sr(jf,"blendEquationSeparate",[rc,rc]),sr(cf,"blendFuncSeparate",[Wc,Qi,Wc,Qi]),Mt(Xf,Bc,!0),sr(Vf,"depthFunc",ml),sr(Iu,"depthRange",[0,1]),sr(Rs,"depthMask",!0),sr(Oi,Oi,[!0,!0,!0,!0]),Mt(gt,vl),sr(cl,"cullFace",ys),sr(Ou,Ou,su),sr(Yf,Yf,1),Mt(ll,Gc),sr(Ic,"polygonOffset",[0,0]),Mt(dl,zs),Mt(hl,Nu),sr(lf,"sampleCoverage",[1,!1]),Mt(Hf,gl),sr(Oc,"stencilMask",-1),sr(Zf,"stencilFunc",[Kn,0,-1]),sr(Mi,"stencilOpSeparate",[Bu,ms,ms,ms]),sr(Au,"stencilOpSeparate",[ys,ms,ms,ms]),Mt(gi,Fc),sr(Lu,"scissor",[0,0,ve.drawingBufferWidth,ve.drawingBufferHeight]),sr(Xo,Xo,[0,0,ve.drawingBufferWidth,ve.drawingBufferHeight]);var Tt={gl:ve,context:f,strings:We,next:me,current:ge,draw:zr,elements:Yt,buffer:dr,shader:Tr,attributes:Ar.state,vao:Ar,uniforms:Ir,framebuffer:Mr,extensions:it,timer:M,isBufferArgs:Gu},Nt={primTypes:Pi,compareFuncs:uu,blendFuncs:pi,blendEquations:re,stencilOps:Es,glTypes:Hi,orientationType:Fu};Ae.optional(function(){Tt.isArrayLike=ka}),le&&(Nt.backBuffer=[ys],Nt.drawBuffer=ln(Zt.maxDrawbuffers,function($e){return $e===0?[0]:ln($e,function(Ge){return El+Ge})}));var Lt=0;function _r(){var $e=Kr(),Ge=$e.link,mt=$e.global;$e.id=Lt++,$e.batchId="0";var Gt=Ge(Tt),Ut=$e.shared={props:"a0"};Object.keys(Tt).forEach(function(vt){Ut[vt]=mt.def(Gt,".",vt)}),Ae.optional(function(){$e.CHECK=Ge(Ae),$e.commandStr=Ae.guessCommand(),$e.command=Ge($e.commandStr),$e.assert=function(vt,Ve,kt){vt("if(!(",Ve,"))",this.CHECK,".commandRaise(",Ge(kt),",",this.command,");")},Nt.invalidBlendCombinations=Xc});var wt=$e.next={},xt=$e.current={};Object.keys(Fe).forEach(function(vt){Array.isArray(ge[vt])&&(wt[vt]=mt.def(Ut.next,".",vt),xt[vt]=mt.def(Ut.current,".",vt))});var At=$e.constants={};Object.keys(Nt).forEach(function(vt){At[vt]=mt.def(JSON.stringify(Nt[vt]))}),$e.invoke=function(vt,Ve){switch(Ve.type){case zf:var kt=["this",Ut.context,Ut.props,$e.batchId];return vt.def(Ge(Ve.data),".call(",kt.slice(0,Math.max(Ve.data.length+1,4)),")");case ks:return vt.def(Ut.props,Ve.data);case eu:return vt.def(Ut.context,Ve.data);case tu:return vt.def("this",Ve.data);case Tu:return Ve.data.append($e,vt),Ve.data.ref;case Mc:return Ve.data.toString();case Cc:return Ve.data.map(function(zt){return $e.invoke(vt,zt)})}},$e.attribCache={};var Ke={};return $e.scopeAttrib=function(vt){var Ve=We.id(vt);if(Ve in Ke)return Ke[Ve];var kt=Ar.scope[Ve];kt||(kt=Ar.scope[Ve]=new Y);var zt=Ke[Ve]=Ge(kt);return zt},$e}function Yr($e){var Ge=$e.static,mt=$e.dynamic,Gt;if(vs in Ge){var Ut=!!Ge[vs];Gt=ci(function(xt,At){return Ut}),Gt.enable=Ut}else if(vs in mt){var wt=mt[vs];Gt=Ri(wt,function(xt,At){return xt.invoke(At,wt)})}return Gt}function Pr($e,Ge){var mt=$e.static,Gt=$e.dynamic;if(Bs in mt){var Ut=mt[Bs];return Ut?(Ut=Mr.getFramebuffer(Ut),Ae.command(Ut,"invalid framebuffer object"),ci(function(xt,At){var Ke=xt.link(Ut),vt=xt.shared;At.set(vt.framebuffer,".next",Ke);var Ve=vt.context;return At.set(Ve,"."+ea,Ke+".width"),At.set(Ve,"."+Io,Ke+".height"),Ke})):ci(function(xt,At){var Ke=xt.shared;At.set(Ke.framebuffer,".next","null");var vt=Ke.context;return At.set(vt,"."+ea,vt+"."+Jf),At.set(vt,"."+Io,vt+"."+qf),"null"})}else if(Bs in Gt){var wt=Gt[Bs];return Ri(wt,function(xt,At){var Ke=xt.invoke(At,wt),vt=xt.shared,Ve=vt.framebuffer,kt=At.def(Ve,".getFramebuffer(",Ke,")");Ae.optional(function(){xt.assert(At,"!"+Ke+"||"+kt,"invalid framebuffer object")}),At.set(Ve,".next",kt);var zt=vt.context;return At.set(zt,"."+ea,kt+"?"+kt+".width:"+zt+"."+Jf),At.set(zt,"."+Io,kt+"?"+kt+".height:"+zt+"."+qf),kt})}else return null}function dn($e,Ge,mt){var Gt=$e.static,Ut=$e.dynamic;function wt(Ke){if(Ke in Gt){var vt=Gt[Ke];Ae.commandType(vt,"object","invalid "+Ke,mt.commandStr);var Ve=!0,kt=vt.x|0,zt=vt.y|0,vr,gr;return"width"in vt?(vr=vt.width|0,Ae.command(vr>=0,"invalid "+Ke,mt.commandStr)):Ve=!1,"height"in vt?(gr=vt.height|0,Ae.command(gr>=0,"invalid "+Ke,mt.commandStr)):Ve=!1,new Ji(!Ve&&Ge&&Ge.thisDep,!Ve&&Ge&&Ge.contextDep,!Ve&&Ge&&Ge.propDep,function(yn,Zn){var un=yn.shared.context,Dn=vr;"width"in vt||(Dn=Zn.def(un,".",ea,"-",kt));var jn=gr;return"height"in vt||(jn=Zn.def(un,".",Io,"-",zt)),[kt,zt,Dn,jn]})}else if(Ke in Ut){var ur=Ut[Ke],Lr=Ri(ur,function(yn,Zn){var un=yn.invoke(Zn,ur);Ae.optional(function(){yn.assert(Zn,un+"&&typeof "+un+'==="object"',"invalid "+Ke)});var Dn=yn.shared.context,jn=Zn.def(un,".x|0"),Sa=Zn.def(un,".y|0"),di=Zn.def('"width" in ',un,"?",un,".width|0:","(",Dn,".",ea,"-",jn,")"),qi=Zn.def('"height" in ',un,"?",un,".height|0:","(",Dn,".",Io,"-",Sa,")");return Ae.optional(function(){yn.assert(Zn,di+">=0&&"+qi+">=0","invalid "+Ke)}),[jn,Sa,di,qi]});return Ge&&(Lr.thisDep=Lr.thisDep||Ge.thisDep,Lr.contextDep=Lr.contextDep||Ge.contextDep,Lr.propDep=Lr.propDep||Ge.propDep),Lr}else return Ge?new Ji(Ge.thisDep,Ge.contextDep,Ge.propDep,function(yn,Zn){var un=yn.shared.context;return[0,0,Zn.def(un,".",ea),Zn.def(un,".",Io)]}):null}var xt=wt(Xo);if(xt){var At=xt;xt=new Ji(xt.thisDep,xt.contextDep,xt.propDep,function(Ke,vt){var Ve=At.append(Ke,vt),kt=Ke.shared.context;return vt.set(kt,"."+nu,Ve[2]),vt.set(kt,"."+Qf,Ve[3]),Ve})}return{viewport:xt,scissor_box:wt(Lu)}}function sn($e,Ge){var mt=$e.static,Gt=typeof mt[ru]=="string"&&typeof mt[gs]=="string";if(Gt){if(Object.keys(Ge.dynamic).length>0)return null;var Ut=Ge.static,wt=Object.keys(Ut);if(wt.length>0&&typeof Ut[wt[0]]=="number"){for(var xt=[],At=0;At=0,"invalid "+Ve,Ge.commandStr),ci(function(gr,ur){return kt&&(gr.OFFSET=zt),zt})}else if(Ve in Gt){var vr=Gt[Ve];return Ri(vr,function(gr,ur){var Lr=gr.invoke(ur,vr);return kt&&(gr.OFFSET=Lr,Ae.optional(function(){gr.assert(ur,Lr+">=0","invalid "+Ve)})),Lr})}else if(kt&&wt)return ci(function(gr,ur){return gr.OFFSET="0",0});return null}var Ke=At(Fs,!0);function vt(){if(wo in mt){var Ve=mt[wo]|0;return Ae.command(typeof Ve=="number"&&Ve>=0,"invalid vertex count",Ge.commandStr),ci(function(){return Ve})}else if(wo in Gt){var kt=Gt[wo];return Ri(kt,function(gr,ur){var Lr=gr.invoke(ur,kt);return Ae.optional(function(){gr.assert(ur,"typeof "+Lr+'==="number"&&'+Lr+">=0&&"+Lr+"===("+Lr+"|0)","invalid vertex count")}),Lr})}else if(wt)if(bs(wt)){if(wt)return Ke?new Ji(Ke.thisDep,Ke.contextDep,Ke.propDep,function(gr,ur){var Lr=ur.def(gr.ELEMENTS,".vertCount-",gr.OFFSET);return Ae.optional(function(){gr.assert(ur,Lr+">=0","invalid vertex offset/element buffer too small")}),Lr}):ci(function(gr,ur){return ur.def(gr.ELEMENTS,".vertCount")});var zt=ci(function(){return-1});return Ae.optional(function(){zt.MISSING=!0}),zt}else{var vr=new Ji(wt.thisDep||Ke.thisDep,wt.contextDep||Ke.contextDep,wt.propDep||Ke.propDep,function(gr,ur){var Lr=gr.ELEMENTS;return gr.OFFSET?ur.def(Lr,"?",Lr,".vertCount-",gr.OFFSET,":-1"):ur.def(Lr,"?",Lr,".vertCount:-1")});return Ae.optional(function(){vr.DYNAMIC=!0}),vr}return null}return{elements:wt,primitive:xt(),count:vt(),instances:At(df,!1),offset:Ke}}function Fn($e,Ge){var mt=$e.static,Gt=$e.dynamic,Ut={};return Le.forEach(function(wt){var xt=tt(wt);function At(Ke,vt){if(wt in mt){var Ve=Ke(mt[wt]);Ut[xt]=ci(function(){return Ve})}else if(wt in Gt){var kt=Gt[wt];Ut[xt]=Ri(kt,function(zt,vr){return vt(zt,vr,zt.invoke(vr,kt))})}}switch(wt){case gt:case Uf:case Tc:case Hf:case Xf:case gi:case ll:case dl:case hl:case Rs:return At(function(Ke){return Ae.commandType(Ke,"boolean",wt,Ge.commandStr),Ke},function(Ke,vt,Ve){return Ae.optional(function(){Ke.assert(vt,"typeof "+Ve+'==="boolean"',"invalid flag "+wt,Ke.commandStr)}),Ve});case Vf:return At(function(Ke){return Ae.commandParameter(Ke,uu,"invalid "+wt,Ge.commandStr),uu[Ke]},function(Ke,vt,Ve){var kt=Ke.constants.compareFuncs;return Ae.optional(function(){Ke.assert(vt,Ve+" in "+kt,"invalid "+wt+", must be one of "+Object.keys(uu))}),vt.def(kt,"[",Ve,"]")});case Iu:return At(function(Ke){return Ae.command(ka(Ke)&&Ke.length===2&&typeof Ke[0]=="number"&&typeof Ke[1]=="number"&&Ke[0]<=Ke[1],"depth range is 2d array",Ge.commandStr),Ke},function(Ke,vt,Ve){Ae.optional(function(){Ke.assert(vt,Ke.shared.isArrayLike+"("+Ve+")&&"+Ve+".length===2&&typeof "+Ve+'[0]==="number"&&typeof '+Ve+'[1]==="number"&&'+Ve+"[0]<="+Ve+"[1]","depth range must be a 2d array")});var kt=vt.def("+",Ve,"[0]"),zt=vt.def("+",Ve,"[1]");return[kt,zt]});case cf:return At(function(Ke){Ae.commandType(Ke,"object","blend.func",Ge.commandStr);var vt="srcRGB"in Ke?Ke.srcRGB:Ke.src,Ve="srcAlpha"in Ke?Ke.srcAlpha:Ke.src,kt="dstRGB"in Ke?Ke.dstRGB:Ke.dst,zt="dstAlpha"in Ke?Ke.dstAlpha:Ke.dst;return Ae.commandParameter(vt,pi,xt+".srcRGB",Ge.commandStr),Ae.commandParameter(Ve,pi,xt+".srcAlpha",Ge.commandStr),Ae.commandParameter(kt,pi,xt+".dstRGB",Ge.commandStr),Ae.commandParameter(zt,pi,xt+".dstAlpha",Ge.commandStr),Ae.command(Xc.indexOf(vt+", "+kt)===-1,"unallowed blending combination (srcRGB, dstRGB) = ("+vt+", "+kt+")",Ge.commandStr),[pi[vt],pi[kt],pi[Ve],pi[zt]]},function(Ke,vt,Ve){var kt=Ke.constants.blendFuncs;Ae.optional(function(){Ke.assert(vt,Ve+"&&typeof "+Ve+'==="object"',"invalid blend func, must be an object")});function zt(un,Dn){var jn=vt.def('"',un,Dn,'" in ',Ve,"?",Ve,".",un,Dn,":",Ve,".",un);return Ae.optional(function(){Ke.assert(vt,jn+" in "+kt,"invalid "+wt+"."+un+Dn+", must be one of "+Object.keys(pi))}),jn}var vr=zt("src","RGB"),gr=zt("dst","RGB");Ae.optional(function(){var un=Ke.constants.invalidBlendCombinations;Ke.assert(vt,un+".indexOf("+vr+'+", "+'+gr+") === -1 ","unallowed blending combination for (srcRGB, dstRGB)")});var ur=vt.def(kt,"[",vr,"]"),Lr=vt.def(kt,"[",zt("src","Alpha"),"]"),yn=vt.def(kt,"[",gr,"]"),Zn=vt.def(kt,"[",zt("dst","Alpha"),"]");return[ur,yn,Lr,Zn]});case jf:return At(function(Ke){if(typeof Ke=="string")return Ae.commandParameter(Ke,re,"invalid "+wt,Ge.commandStr),[re[Ke],re[Ke]];if(typeof Ke=="object")return Ae.commandParameter(Ke.rgb,re,wt+".rgb",Ge.commandStr),Ae.commandParameter(Ke.alpha,re,wt+".alpha",Ge.commandStr),[re[Ke.rgb],re[Ke.alpha]];Ae.commandRaise("invalid blend.equation",Ge.commandStr)},function(Ke,vt,Ve){var kt=Ke.constants.blendEquations,zt=vt.def(),vr=vt.def(),gr=Ke.cond("typeof ",Ve,'==="string"');return Ae.optional(function(){function ur(Lr,yn,Zn){Ke.assert(Lr,Zn+" in "+kt,"invalid "+yn+", must be one of "+Object.keys(re))}ur(gr.then,wt,Ve),Ke.assert(gr.else,Ve+"&&typeof "+Ve+'==="object"',"invalid "+wt),ur(gr.else,wt+".rgb",Ve+".rgb"),ur(gr.else,wt+".alpha",Ve+".alpha")}),gr.then(zt,"=",vr,"=",kt,"[",Ve,"];"),gr.else(zt,"=",kt,"[",Ve,".rgb];",vr,"=",kt,"[",Ve,".alpha];"),vt(gr),[zt,vr]});case Wf:return At(function(Ke){return Ae.command(ka(Ke)&&Ke.length===4,"blend.color must be a 4d array",Ge.commandStr),ln(4,function(vt){return+Ke[vt]})},function(Ke,vt,Ve){return Ae.optional(function(){Ke.assert(vt,Ke.shared.isArrayLike+"("+Ve+")&&"+Ve+".length===4","blend.color must be a 4d array")}),ln(4,function(kt){return vt.def("+",Ve,"[",kt,"]")})});case Oc:return At(function(Ke){return Ae.commandType(Ke,"number",xt,Ge.commandStr),Ke|0},function(Ke,vt,Ve){return Ae.optional(function(){Ke.assert(vt,"typeof "+Ve+'==="number"',"invalid stencil.mask")}),vt.def(Ve,"|0")});case Zf:return At(function(Ke){Ae.commandType(Ke,"object",xt,Ge.commandStr);var vt=Ke.cmp||"keep",Ve=Ke.ref||0,kt="mask"in Ke?Ke.mask:-1;return Ae.commandParameter(vt,uu,wt+".cmp",Ge.commandStr),Ae.commandType(Ve,"number",wt+".ref",Ge.commandStr),Ae.commandType(kt,"number",wt+".mask",Ge.commandStr),[uu[vt],Ve,kt]},function(Ke,vt,Ve){var kt=Ke.constants.compareFuncs;Ae.optional(function(){function ur(){Ke.assert(vt,Array.prototype.join.call(arguments,""),"invalid stencil.func")}ur(Ve+"&&typeof ",Ve,'==="object"'),ur('!("cmp" in ',Ve,")||(",Ve,".cmp in ",kt,")")});var zt=vt.def('"cmp" in ',Ve,"?",kt,"[",Ve,".cmp]",":",ms),vr=vt.def(Ve,".ref|0"),gr=vt.def('"mask" in ',Ve,"?",Ve,".mask|0:-1");return[zt,vr,gr]});case Mi:case Au:return At(function(Ke){Ae.commandType(Ke,"object",xt,Ge.commandStr);var vt=Ke.fail||"keep",Ve=Ke.zfail||"keep",kt=Ke.zpass||"keep";return Ae.commandParameter(vt,Es,wt+".fail",Ge.commandStr),Ae.commandParameter(Ve,Es,wt+".zfail",Ge.commandStr),Ae.commandParameter(kt,Es,wt+".zpass",Ge.commandStr),[wt===Au?ys:Bu,Es[vt],Es[Ve],Es[kt]]},function(Ke,vt,Ve){var kt=Ke.constants.stencilOps;Ae.optional(function(){Ke.assert(vt,Ve+"&&typeof "+Ve+'==="object"',"invalid "+wt)});function zt(vr){return Ae.optional(function(){Ke.assert(vt,'!("'+vr+'" in '+Ve+")||("+Ve+"."+vr+" in "+kt+")","invalid "+wt+"."+vr+", must be one of "+Object.keys(Es))}),vt.def('"',vr,'" in ',Ve,"?",kt,"[",Ve,".",vr,"]:",ms)}return[wt===Au?ys:Bu,zt("fail"),zt("zfail"),zt("zpass")]});case Ic:return At(function(Ke){Ae.commandType(Ke,"object",xt,Ge.commandStr);var vt=Ke.factor|0,Ve=Ke.units|0;return Ae.commandType(vt,"number",xt+".factor",Ge.commandStr),Ae.commandType(Ve,"number",xt+".units",Ge.commandStr),[vt,Ve]},function(Ke,vt,Ve){Ae.optional(function(){Ke.assert(vt,Ve+"&&typeof "+Ve+'==="object"',"invalid "+wt)});var kt=vt.def(Ve,".factor|0"),zt=vt.def(Ve,".units|0");return[kt,zt]});case cl:return At(function(Ke){var vt=0;return Ke==="front"?vt=Bu:Ke==="back"&&(vt=ys),Ae.command(!!vt,xt,Ge.commandStr),vt},function(Ke,vt,Ve){return Ae.optional(function(){Ke.assert(vt,Ve+'==="front"||'+Ve+'==="back"',"invalid cull.face")}),vt.def(Ve,'==="front"?',Bu,":",ys)});case Yf:return At(function(Ke){return Ae.command(typeof Ke=="number"&&Ke>=Zt.lineWidthDims[0]&&Ke<=Zt.lineWidthDims[1],"invalid line width, must be a positive number between "+Zt.lineWidthDims[0]+" and "+Zt.lineWidthDims[1],Ge.commandStr),Ke},function(Ke,vt,Ve){return Ae.optional(function(){Ke.assert(vt,"typeof "+Ve+'==="number"&&'+Ve+">="+Zt.lineWidthDims[0]+"&&"+Ve+"<="+Zt.lineWidthDims[1],"invalid line width")}),Ve});case Ou:return At(function(Ke){return Ae.commandParameter(Ke,Fu,xt,Ge.commandStr),Fu[Ke]},function(Ke,vt,Ve){return Ae.optional(function(){Ke.assert(vt,Ve+'==="cw"||'+Ve+'==="ccw"',"invalid frontFace, must be one of cw,ccw")}),vt.def(Ve+'==="cw"?'+Uc+":"+su)});case Oi:return At(function(Ke){return Ae.command(ka(Ke)&&Ke.length===4,"color.mask must be length 4 array",Ge.commandStr),Ke.map(function(vt){return!!vt})},function(Ke,vt,Ve){return Ae.optional(function(){Ke.assert(vt,Ke.shared.isArrayLike+"("+Ve+")&&"+Ve+".length===4","invalid color.mask")}),ln(4,function(kt){return"!!"+Ve+"["+kt+"]"})});case lf:return At(function(Ke){Ae.command(typeof Ke=="object"&&Ke,xt,Ge.commandStr);var vt="value"in Ke?Ke.value:1,Ve=!!Ke.invert;return Ae.command(typeof vt=="number"&&vt>=0&&vt<=1,"sample.coverage.value must be a number between 0 and 1",Ge.commandStr),[vt,Ve]},function(Ke,vt,Ve){Ae.optional(function(){Ke.assert(vt,Ve+"&&typeof "+Ve+'==="object"',"invalid sample.coverage")});var kt=vt.def('"value" in ',Ve,"?+",Ve,".value:1"),zt=vt.def("!!",Ve,".invert");return[kt,zt]})}}),Ut}function za($e,Ge){var mt=$e.static,Gt=$e.dynamic,Ut={};return Object.keys(mt).forEach(function(wt){var xt=mt[wt],At;if(typeof xt=="number"||typeof xt=="boolean")At=ci(function(){return xt});else if(typeof xt=="function"){var Ke=xt._reglType;Ke==="texture2d"||Ke==="textureCube"?At=ci(function(vt){return vt.link(xt)}):Ke==="framebuffer"||Ke==="framebufferCube"?(Ae.command(xt.color.length>0,'missing color attachment for framebuffer sent to uniform "'+wt+'"',Ge.commandStr),At=ci(function(vt){return vt.link(xt.color[0])})):Ae.commandRaise('invalid data for uniform "'+wt+'"',Ge.commandStr)}else ka(xt)?At=ci(function(vt){var Ve=vt.global.def("[",ln(xt.length,function(kt){return Ae.command(typeof xt[kt]=="number"||typeof xt[kt]=="boolean","invalid uniform "+wt,vt.commandStr),xt[kt]}),"]");return Ve}):Ae.commandRaise('invalid or missing data for uniform "'+wt+'"',Ge.commandStr);At.value=xt,Ut[wt]=At}),Object.keys(Gt).forEach(function(wt){var xt=Gt[wt];Ut[wt]=Ri(xt,function(At,Ke){return At.invoke(Ke,xt)})}),Ut}function Wn($e,Ge){var mt=$e.static,Gt=$e.dynamic,Ut={};return Object.keys(mt).forEach(function(wt){var xt=mt[wt],At=We.id(wt),Ke=new Y;if(Gu(xt))Ke.state=so,Ke.buffer=dr.getBuffer(dr.create(xt,Gs,!1,!0)),Ke.type=0;else{var vt=dr.getBuffer(xt);if(vt)Ke.state=so,Ke.buffer=vt,Ke.type=0;else if(Ae.command(typeof xt=="object"&&xt,"invalid data for attribute "+wt,Ge.commandStr),"constant"in xt){var Ve=xt.constant;Ke.buffer="null",Ke.state=Ps,typeof Ve=="number"?Ke.x=Ve:(Ae.command(ka(Ve)&&Ve.length>0&&Ve.length<=4,"invalid constant for attribute "+wt,Ge.commandStr),Cu.forEach(function(yn,Zn){Zn=0,'invalid offset for attribute "'+wt+'"',Ge.commandStr);var zt=xt.stride|0;Ae.command(zt>=0&&zt<256,'invalid stride for attribute "'+wt+'", must be integer betweeen [0, 255]',Ge.commandStr);var vr=xt.size|0;Ae.command(!("size"in xt)||vr>0&&vr<=4,'invalid size for attribute "'+wt+'", must be 1,2,3,4',Ge.commandStr);var gr=!!xt.normalized,ur=0;"type"in xt&&(Ae.commandParameter(xt.type,Hi,"invalid type for attribute "+wt,Ge.commandStr),ur=Hi[xt.type]);var Lr=xt.divisor|0;"divisor"in xt&&(Ae.command(Lr===0||ie,'cannot specify divisor for attribute "'+wt+'", instancing not supported',Ge.commandStr),Ae.command(Lr>=0,'invalid divisor for attribute "'+wt+'"',Ge.commandStr)),Ae.optional(function(){var yn=Ge.commandStr,Zn=["buffer","offset","divisor","normalized","type","size","stride"];Object.keys(xt).forEach(function(un){Ae.command(Zn.indexOf(un)>=0,'unknown parameter "'+un+'" for attribute pointer "'+wt+'" (valid parameters are '+Zn+")",yn)})}),Ke.buffer=vt,Ke.state=so,Ke.size=vr,Ke.normalized=gr,Ke.type=ur||vt.dtype,Ke.offset=kt,Ke.stride=zt,Ke.divisor=Lr}}Ut[wt]=ci(function(yn,Zn){var un=yn.attribCache;if(At in un)return un[At];var Dn={isStream:!1};return Object.keys(Ke).forEach(function(jn){Dn[jn]=Ke[jn]}),Ke.buffer&&(Dn.buffer=yn.link(Ke.buffer),Dn.type=Dn.type||Dn.buffer+".dtype"),un[At]=Dn,Dn})}),Object.keys(Gt).forEach(function(wt){var xt=Gt[wt];function At(Ke,vt){var Ve=Ke.invoke(vt,xt),kt=Ke.shared,zt=Ke.constants,vr=kt.isBufferArgs,gr=kt.buffer;Ae.optional(function(){Ke.assert(vt,Ve+"&&(typeof "+Ve+'==="object"||typeof '+Ve+'==="function")&&('+vr+"("+Ve+")||"+gr+".getBuffer("+Ve+")||"+gr+".getBuffer("+Ve+".buffer)||"+vr+"("+Ve+'.buffer)||("constant" in '+Ve+"&&(typeof "+Ve+'.constant==="number"||'+kt.isArrayLike+"("+Ve+".constant))))",'invalid dynamic attribute "'+wt+'"')});var ur={isStream:vt.def(!1)},Lr=new Y;Lr.state=so,Object.keys(Lr).forEach(function(Dn){ur[Dn]=vt.def(""+Lr[Dn])});var yn=ur.buffer,Zn=ur.type;vt("if(",vr,"(",Ve,")){",ur.isStream,"=true;",yn,"=",gr,".createStream(",Gs,",",Ve,");",Zn,"=",yn,".dtype;","}else{",yn,"=",gr,".getBuffer(",Ve,");","if(",yn,"){",Zn,"=",yn,".dtype;",'}else if("constant" in ',Ve,"){",ur.state,"=",Ps,";","if(typeof "+Ve+'.constant === "number"){',ur[Cu[0]],"=",Ve,".constant;",Cu.slice(1).map(function(Dn){return ur[Dn]}).join("="),"=0;","}else{",Cu.map(function(Dn,jn){return ur[Dn]+"="+Ve+".constant.length>"+jn+"?"+Ve+".constant["+jn+"]:0;"}).join(""),"}}else{","if(",vr,"(",Ve,".buffer)){",yn,"=",gr,".createStream(",Gs,",",Ve,".buffer);","}else{",yn,"=",gr,".getBuffer(",Ve,".buffer);","}",Zn,'="type" in ',Ve,"?",zt.glTypes,"[",Ve,".type]:",yn,".dtype;",ur.normalized,"=!!",Ve,".normalized;");function un(Dn){vt(ur[Dn],"=",Ve,".",Dn,"|0;")}return un("size"),un("offset"),un("stride"),un("divisor"),vt("}}"),vt.exit("if(",ur.isStream,"){",gr,".destroyStream(",yn,");","}"),ur}Ut[wt]=Ri(xt,At)}),Ut}function ti($e,Ge){var mt=$e.static,Gt=$e.dynamic;if(Du in mt){var Ut=mt[Du];return Ut!==null&&Ar.getVAO(Ut)===null&&(Ut=Ar.createVAO(Ut)),ci(function(xt){return xt.link(Ar.getVAO(Ut))})}else if(Du in Gt){var wt=Gt[Du];return Ri(wt,function(xt,At){var Ke=xt.invoke(At,wt);return At.def(xt.shared.vao+".getVAO("+Ke+")")})}return null}function La($e){var Ge=$e.static,mt=$e.dynamic,Gt={};return Object.keys(Ge).forEach(function(Ut){var wt=Ge[Ut];Gt[Ut]=ci(function(xt,At){return typeof wt=="number"||typeof wt=="boolean"?""+wt:xt.link(wt)})}),Object.keys(mt).forEach(function(Ut){var wt=mt[Ut];Gt[Ut]=Ri(wt,function(xt,At){return xt.invoke(At,wt)})}),Gt}function oa($e,Ge,mt,Gt,Ut){var wt=$e.static,xt=$e.dynamic;Ae.optional(function(){var un=[Bs,gs,ru,ps,ra,Fs,wo,df,vs,Du].concat(Le);function Dn(jn){Object.keys(jn).forEach(function(Sa){Ae.command(un.indexOf(Sa)>=0,'unknown parameter "'+Sa+'"',Ut.commandStr)})}Dn(wt),Dn(xt)});var At=sn($e,Ge),Ke=Pr($e,Ut),vt=dn($e,Ke,Ut),Ve=Bn($e,Ut),kt=Fn($e,Ut),zt=tn($e,Ut,At);function vr(un){var Dn=vt[un];Dn&&(kt[un]=Dn)}vr(Xo),vr(tt(Lu));var gr=Object.keys(kt).length>0,ur={framebuffer:Ke,draw:Ve,shader:zt,state:kt,dirty:gr,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(ur.profile=Yr($e,Ut),ur.uniforms=za(mt,Ut),ur.drawVAO=ur.scopeVAO=ti($e,Ut),!ur.drawVAO&&zt.program&&!At&&it.angle_instanced_arrays){var Lr=!0,yn=zt.program.attributes.map(function(un){var Dn=Ge.static[un];return Lr=Lr&&!!Dn,Dn});if(Lr&&yn.length>0){var Zn=Ar.getVAO(Ar.createVAO(yn));ur.drawVAO=new Ji(null,null,null,function(un,Dn){return un.link(Zn)}),ur.useVAO=!0}}return At?ur.useVAO=!0:ur.attributes=Wn(Ge,Ut),ur.context=La(Gt,Ut),ur}function Za($e,Ge,mt){var Gt=$e.shared,Ut=Gt.context,wt=$e.scope();Object.keys(mt).forEach(function(xt){Ge.save(Ut,"."+xt);var At=mt[xt],Ke=At.append($e,Ge);Array.isArray(Ke)?wt(Ut,".",xt,"=[",Ke.join(),"];"):wt(Ut,".",xt,"=",Ke,";")}),Ge(wt)}function ri($e,Ge,mt,Gt){var Ut=$e.shared,wt=Ut.gl,xt=Ut.framebuffer,At;le&&(At=Ge.def(Ut.extensions,".webgl_draw_buffers"));var Ke=$e.constants,vt=Ke.drawBuffer,Ve=Ke.backBuffer,kt;mt?kt=mt.append($e,Ge):kt=Ge.def(xt,".next"),Gt||Ge("if(",kt,"!==",xt,".cur){"),Ge("if(",kt,"){",wt,".bindFramebuffer(",jc,",",kt,".framebuffer);"),le&&Ge(At,".drawBuffersWEBGL(",vt,"[",kt,".colorAttachments.length]);"),Ge("}else{",wt,".bindFramebuffer(",jc,",null);"),le&&Ge(At,".drawBuffersWEBGL(",Ve,");"),Ge("}",xt,".cur=",kt,";"),Gt||Ge("}")}function li($e,Ge,mt){var Gt=$e.shared,Ut=Gt.gl,wt=$e.current,xt=$e.next,At=Gt.current,Ke=Gt.next,vt=$e.cond(At,".dirty");Le.forEach(function(Ve){var kt=tt(Ve);if(!(kt in mt.state)){var zt,vr;if(kt in xt){zt=xt[kt],vr=wt[kt];var gr=ln(ge[kt].length,function(Lr){return vt.def(zt,"[",Lr,"]")});vt($e.cond(gr.map(function(Lr,yn){return Lr+"!=="+vr+"["+yn+"]"}).join("||")).then(Ut,".",Fe[kt],"(",gr,");",gr.map(function(Lr,yn){return vr+"["+yn+"]="+Lr}).join(";"),";"))}else{zt=vt.def(Ke,".",kt);var ur=$e.cond(zt,"!==",At,".",kt);vt(ur),kt in ze?ur($e.cond(zt).then(Ut,".enable(",ze[kt],");").else(Ut,".disable(",ze[kt],");"),At,".",kt,"=",zt,";"):ur(Ut,".",Fe[kt],"(",zt,");",At,".",kt,"=",zt,";")}}}),Object.keys(mt.state).length===0&&vt(At,".dirty=false;"),Ge(vt)}function ii($e,Ge,mt,Gt){var Ut=$e.shared,wt=$e.current,xt=Ut.current,At=Ut.gl;Yc(Object.keys(mt)).forEach(function(Ke){var vt=mt[Ke];if(!(Gt&&!Gt(vt))){var Ve=vt.append($e,Ge);if(ze[Ke]){var kt=ze[Ke];bs(vt)?Ve?Ge(At,".enable(",kt,");"):Ge(At,".disable(",kt,");"):Ge($e.cond(Ve).then(At,".enable(",kt,");").else(At,".disable(",kt,");")),Ge(xt,".",Ke,"=",Ve,";")}else if(ka(Ve)){var zt=wt[Ke];Ge(At,".",Fe[Ke],"(",Ve,");",Ve.map(function(vr,gr){return zt+"["+gr+"]="+vr}).join(";"),";")}else Ge(At,".",Fe[Ke],"(",Ve,");",xt,".",Ke,"=",Ve,";")}})}function Pa($e,Ge){ie&&($e.instancing=Ge.def($e.shared.extensions,".angle_instanced_arrays"))}function Hn($e,Ge,mt,Gt,Ut){var wt=$e.shared,xt=$e.stats,At=wt.current,Ke=wt.timer,vt=mt.profile;function Ve(){return typeof performance=="undefined"?"Date.now()":"performance.now()"}var kt,zt;function vr(un){kt=Ge.def(),un(kt,"=",Ve(),";"),typeof Ut=="string"?un(xt,".count+=",Ut,";"):un(xt,".count++;"),M&&(Gt?(zt=Ge.def(),un(zt,"=",Ke,".getNumPendingQueries();")):un(Ke,".beginQuery(",xt,");"))}function gr(un){un(xt,".cpuTime+=",Ve(),"-",kt,";"),M&&(Gt?un(Ke,".pushScopeStats(",zt,",",Ke,".getNumPendingQueries(),",xt,");"):un(Ke,".endQuery();"))}function ur(un){var Dn=Ge.def(At,".profile");Ge(At,".profile=",un,";"),Ge.exit(At,".profile=",Dn,";")}var Lr;if(vt){if(bs(vt)){vt.enable?(vr(Ge),gr(Ge.exit),ur("true")):ur("false");return}Lr=vt.append($e,Ge),ur(Lr)}else Lr=Ge.def(At,".profile");var yn=$e.block();vr(yn),Ge("if(",Lr,"){",yn,"}");var Zn=$e.block();gr(Zn),Ge.exit("if(",Lr,"){",Zn,"}")}function Bi($e,Ge,mt,Gt,Ut){var wt=$e.shared;function xt(Ke){switch(Ke){case Pu:case gf:case yf:return 2;case Us:case pf:case mf:return 3;case vf:case Ws:case ku:return 4;default:return 1}}function At(Ke,vt,Ve){var kt=wt.gl,zt=Ge.def(Ke,".location"),vr=Ge.def(wt.attributes,"[",zt,"]"),gr=Ve.state,ur=Ve.buffer,Lr=[Ve.x,Ve.y,Ve.z,Ve.w],yn=["buffer","normalized","offset","stride"];function Zn(){Ge("if(!",vr,".buffer){",kt,".enableVertexAttribArray(",zt,");}");var Dn=Ve.type,jn;if(Ve.size?jn=Ge.def(Ve.size,"||",vt):jn=vt,Ge("if(",vr,".type!==",Dn,"||",vr,".size!==",jn,"||",yn.map(function(di){return vr+"."+di+"!=="+Ve[di]}).join("||"),"){",kt,".bindBuffer(",Gs,",",ur,".buffer);",kt,".vertexAttribPointer(",[zt,jn,Dn,Ve.normalized,Ve.stride,Ve.offset],");",vr,".type=",Dn,";",vr,".size=",jn,";",yn.map(function(di){return vr+"."+di+"="+Ve[di]+";"}).join(""),"}"),ie){var Sa=Ve.divisor;Ge("if(",vr,".divisor!==",Sa,"){",$e.instancing,".vertexAttribDivisorANGLE(",[zt,Sa],");",vr,".divisor=",Sa,";}")}}function un(){Ge("if(",vr,".buffer){",kt,".disableVertexAttribArray(",zt,");",vr,".buffer=null;","}if(",Cu.map(function(Dn,jn){return vr+"."+Dn+"!=="+Lr[jn]}).join("||"),"){",kt,".vertexAttrib4f(",zt,",",Lr,");",Cu.map(function(Dn,jn){return vr+"."+Dn+"="+Lr[jn]+";"}).join(""),"}")}gr===so?Zn():gr===Ps?un():(Ge("if(",gr,"===",so,"){"),Zn(),Ge("}else{"),un(),Ge("}"))}Gt.forEach(function(Ke){var vt=Ke.name,Ve=mt.attributes[vt],kt;if(Ve){if(!Ut(Ve))return;kt=Ve.append($e,Ge)}else{if(!Ut(Ef))return;var zt=$e.scopeAttrib(vt);Ae.optional(function(){$e.assert(Ge,zt+".state","missing attribute "+vt)}),kt={},Object.keys(new Y).forEach(function(vr){kt[vr]=Ge.def(zt,".",vr)})}At($e.link(Ke),xt(Ke.info.type),kt)})}function Ln($e,Ge,mt,Gt,Ut){for(var wt=$e.shared,xt=wt.gl,At,Ke=0;Ke1?Ge(ln(Dn,function(qi){return Array.isArray(ur)?ur[qi]:ur+"["+qi+"]"})):(Ae(!Array.isArray(ur),"uniform value must not be an array"),Ge(ur));Ge(");")}}function On($e,Ge,mt,Gt){var Ut=$e.shared,wt=Ut.gl,xt=Ut.draw,At=Gt.draw;function Ke(){var jn=At.elements,Sa,di=Ge;return jn?((jn.contextDep&&Gt.contextDynamic||jn.propDep)&&(di=mt),Sa=jn.append($e,di)):Sa=di.def(xt,".",ps),Sa&&di("if("+Sa+")"+wt+".bindBuffer("+Lc+","+Sa+".buffer.buffer);"),Sa}function vt(){var jn=At.count,Sa,di=Ge;return jn?((jn.contextDep&&Gt.contextDynamic||jn.propDep)&&(di=mt),Sa=jn.append($e,di),Ae.optional(function(){jn.MISSING&&$e.assert(Ge,"false","missing vertex count"),jn.DYNAMIC&&$e.assert(di,Sa+">=0","missing vertex count")})):(Sa=di.def(xt,".",wo),Ae.optional(function(){$e.assert(di,Sa+">=0","missing vertex count")})),Sa}var Ve=Ke();function kt(jn){var Sa=At[jn];return Sa?Sa.contextDep&&Gt.contextDynamic||Sa.propDep?Sa.append($e,mt):Sa.append($e,Ge):Ge.def(xt,".",jn)}var zt=kt(ra),vr=kt(Fs),gr=vt();if(typeof gr=="number"){if(gr===0)return}else mt("if(",gr,"){"),mt.exit("}");var ur,Lr;ie&&(ur=kt(df),Lr=$e.instancing);var yn=Ve+".type",Zn=At.elements&&bs(At.elements);function un(){function jn(){mt(Lr,".drawElementsInstancedANGLE(",[zt,gr,yn,vr+"<<(("+yn+"-"+_c+")>>1)",ur],");")}function Sa(){mt(Lr,".drawArraysInstancedANGLE(",[zt,vr,gr,ur],");")}Ve?Zn?jn():(mt("if(",Ve,"){"),jn(),mt("}else{"),Sa(),mt("}")):Sa()}function Dn(){function jn(){mt(wt+".drawElements("+[zt,gr,yn,vr+"<<(("+yn+"-"+_c+")>>1)"]+");")}function Sa(){mt(wt+".drawArrays("+[zt,vr,gr]+");")}Ve?Zn?jn():(mt("if(",Ve,"){"),jn(),mt("}else{"),Sa(),mt("}")):Sa()}ie&&(typeof ur!="number"||ur>=0)?typeof ur=="string"?(mt("if(",ur,">0){"),un(),mt("}else if(",ur,"<0){"),Dn(),mt("}")):un():Dn()}function sa($e,Ge,mt,Gt,Ut){var wt=_r(),xt=wt.proc("body",Ut);return Ae.optional(function(){wt.commandStr=Ge.commandStr,wt.command=wt.link(Ge.commandStr)}),ie&&(wt.instancing=xt.def(wt.shared.extensions,".angle_instanced_arrays")),$e(wt,xt,mt,Gt),wt.compile().body}function ba($e,Ge,mt,Gt){Pa($e,Ge),mt.useVAO?mt.drawVAO?Ge($e.shared.vao,".setVAO(",mt.drawVAO.append($e,Ge),");"):Ge($e.shared.vao,".setVAO(",$e.shared.vao,".targetVAO);"):(Ge($e.shared.vao,".setVAO(null);"),Bi($e,Ge,mt,Gt.attributes,function(){return!0})),Ln($e,Ge,mt,Gt.uniforms,function(){return!0}),On($e,Ge,Ge,mt)}function yi($e,Ge){var mt=$e.proc("draw",1);Pa($e,mt),Za($e,mt,Ge.context),ri($e,mt,Ge.framebuffer),li($e,mt,Ge),ii($e,mt,Ge.state),Hn($e,mt,Ge,!1,!0);var Gt=Ge.shader.progVar.append($e,mt);if(mt($e.shared.gl,".useProgram(",Gt,".program);"),Ge.shader.program)ba($e,mt,Ge,Ge.shader.program);else{mt($e.shared.vao,".setVAO(null);");var Ut=$e.global.def("{}"),wt=mt.def(Gt,".id"),xt=mt.def(Ut,"[",wt,"]");mt($e.cond(xt).then(xt,".call(this,a0);").else(xt,"=",Ut,"[",wt,"]=",$e.link(function(At){return sa(ba,$e,Ge,At,1)}),"(",Gt,");",xt,".call(this,a0);"))}Object.keys(Ge.state).length>0&&mt($e.shared.current,".dirty=true;")}function Ho($e,Ge,mt,Gt){$e.batchId="a1",Pa($e,Ge);function Ut(){return!0}Bi($e,Ge,mt,Gt.attributes,Ut),Ln($e,Ge,mt,Gt.uniforms,Ut),On($e,Ge,Ge,mt)}function Uu($e,Ge,mt,Gt){Pa($e,Ge);var Ut=mt.contextDep,wt=Ge.def(),xt="a0",At="a1",Ke=Ge.def();$e.shared.props=Ke,$e.batchId=wt;var vt=$e.scope(),Ve=$e.scope();Ge(vt.entry,"for(",wt,"=0;",wt,"<",At,";++",wt,"){",Ke,"=",xt,"[",wt,"];",Ve,"}",vt.exit);function kt(yn){return yn.contextDep&&Ut||yn.propDep}function zt(yn){return!kt(yn)}if(mt.needsContext&&Za($e,Ve,mt.context),mt.needsFramebuffer&&ri($e,Ve,mt.framebuffer),ii($e,Ve,mt.state,kt),mt.profile&&kt(mt.profile)&&Hn($e,Ve,mt,!1,!0),Gt)mt.useVAO?mt.drawVAO?kt(mt.drawVAO)?Ve($e.shared.vao,".setVAO(",mt.drawVAO.append($e,Ve),");"):vt($e.shared.vao,".setVAO(",mt.drawVAO.append($e,vt),");"):vt($e.shared.vao,".setVAO(",$e.shared.vao,".targetVAO);"):(vt($e.shared.vao,".setVAO(null);"),Bi($e,vt,mt,Gt.attributes,zt),Bi($e,Ve,mt,Gt.attributes,kt)),Ln($e,vt,mt,Gt.uniforms,zt),Ln($e,Ve,mt,Gt.uniforms,kt),On($e,vt,Ve,mt);else{var vr=$e.global.def("{}"),gr=mt.shader.progVar.append($e,Ve),ur=Ve.def(gr,".id"),Lr=Ve.def(vr,"[",ur,"]");Ve($e.shared.gl,".useProgram(",gr,".program);","if(!",Lr,"){",Lr,"=",vr,"[",ur,"]=",$e.link(function(yn){return sa(Ho,$e,mt,yn,2)}),"(",gr,");}",Lr,".call(this,a0[",wt,"],",wt,");")}}function et($e,Ge){var mt=$e.proc("batch",2);$e.batchId="0",Pa($e,mt);var Gt=!1,Ut=!0;Object.keys(Ge.context).forEach(function(vr){Gt=Gt||Ge.context[vr].propDep}),Gt||(Za($e,mt,Ge.context),Ut=!1);var wt=Ge.framebuffer,xt=!1;wt?(wt.propDep?Gt=xt=!0:wt.contextDep&&Gt&&(xt=!0),xt||ri($e,mt,wt)):ri($e,mt,null),Ge.state.viewport&&Ge.state.viewport.propDep&&(Gt=!0);function At(vr){return vr.contextDep&&Gt||vr.propDep}li($e,mt,Ge),ii($e,mt,Ge.state,function(vr){return!At(vr)}),(!Ge.profile||!At(Ge.profile))&&Hn($e,mt,Ge,!1,"a1"),Ge.contextDep=Gt,Ge.needsContext=Ut,Ge.needsFramebuffer=xt;var Ke=Ge.shader.progVar;if(Ke.contextDep&&Gt||Ke.propDep)Uu($e,mt,Ge,null);else{var vt=Ke.append($e,mt);if(mt($e.shared.gl,".useProgram(",vt,".program);"),Ge.shader.program)Uu($e,mt,Ge,Ge.shader.program);else{mt($e.shared.vao,".setVAO(null);");var Ve=$e.global.def("{}"),kt=mt.def(vt,".id"),zt=mt.def(Ve,"[",kt,"]");mt($e.cond(zt).then(zt,".call(this,a0,a1);").else(zt,"=",Ve,"[",kt,"]=",$e.link(function(vr){return sa(Uu,$e,Ge,vr,2)}),"(",vt,");",zt,".call(this,a0,a1);"))}}Object.keys(Ge.state).length>0&&mt($e.shared.current,".dirty=true;")}function Jt($e,Ge){var mt=$e.proc("scope",3);$e.batchId="a2";var Gt=$e.shared,Ut=Gt.current;Za($e,mt,Ge.context),Ge.framebuffer&&Ge.framebuffer.append($e,mt),Yc(Object.keys(Ge.state)).forEach(function(xt){var At=Ge.state[xt],Ke=At.append($e,mt);ka(Ke)?Ke.forEach(function(vt,Ve){mt.set($e.next[xt],"["+Ve+"]",vt)}):mt.set(Gt.next,"."+xt,Ke)}),Hn($e,mt,Ge,!0,!0),[ps,Fs,wo,df,ra].forEach(function(xt){var At=Ge.draw[xt];!At||mt.set(Gt.draw,"."+xt,""+At.append($e,mt))}),Object.keys(Ge.uniforms).forEach(function(xt){var At=Ge.uniforms[xt].append($e,mt);Array.isArray(At)&&(At="["+At.join()+"]"),mt.set(Gt.uniforms,"["+We.id(xt)+"]",At)}),Object.keys(Ge.attributes).forEach(function(xt){var At=Ge.attributes[xt].append($e,mt),Ke=$e.scopeAttrib(xt);Object.keys(new Y).forEach(function(vt){mt.set(Ke,"."+vt,At[vt])})}),Ge.scopeVAO&&mt.set(Gt.vao,".targetVAO",Ge.scopeVAO.append($e,mt));function wt(xt){var At=Ge.shader[xt];At&&mt.set(Gt.shader,"."+xt,At.append($e,mt))}wt(gs),wt(ru),Object.keys(Ge.state).length>0&&(mt(Ut,".dirty=true;"),mt.exit(Ut,".dirty=true;")),mt("a1(",$e.shared.context,",a0,",$e.batchId,");")}function jt($e){if(!(typeof $e!="object"||ka($e))){for(var Ge=Object.keys($e),mt=0;mt=0;--On){var sa=Lt[On];sa&&sa(M,null,0)}it.flush(),Ar&&Ar.update()}function tn(){!dn&&Lt.length>0&&(dn=Er.next(sn))}function Bn(){dn&&(Er.cancel(sn),dn=null)}function Fn(On){On.preventDefault(),dr=!0,Bn(),_r.forEach(function(sa){sa()})}function za(On){it.getError(),dr=!1,Yt.restore(),Le.restore(),ie.restore(),ze.restore(),Fe.restore(),tt.restore(),le.restore(),Ar&&Ar.restore(),Mt.procs.refresh(),tn(),Yr.forEach(function(sa){sa()})}Nt&&(Nt.addEventListener(bf,Fn,!1),Nt.addEventListener(xf,za,!1));function Wn(){Lt.length=0,Bn(),Nt&&(Nt.removeEventListener(bf,Fn),Nt.removeEventListener(xf,za)),Le.clear(),tt.clear(),Fe.clear(),ze.clear(),me.clear(),ie.clear(),le.clear(),Ar&&Ar.clear(),Pr.forEach(function(On){On()})}function ti(On){Ae(!!On,"invalid args to regl({...})"),Ae.type(On,"object","invalid args to regl({...})");function sa(Ut){var wt=z({},Ut);delete wt.uniforms,delete wt.attributes,delete wt.context,delete wt.vao,"stencil"in wt&&wt.stencil.op&&(wt.stencil.opBack=wt.stencil.opFront=wt.stencil.op,delete wt.stencil.op);function xt(At){if(At in wt){var Ke=wt[At];delete wt[At],Object.keys(Ke).forEach(function(vt){wt[At+"."+vt]=Ke[vt]})}}return xt("blend"),xt("depth"),xt("cull"),xt("stencil"),xt("polygonOffset"),xt("scissor"),xt("sample"),"vao"in Ut&&(wt.vao=Ut.vao),wt}function ba(Ut,wt){var xt={},At={};return Object.keys(Ut).forEach(function(Ke){var vt=Ut[Ke];if(Wt.isDynamic(vt)){At[Ke]=Wt.unbox(vt,Ke);return}else if(wt&&Array.isArray(vt)){for(var Ve=0;Ve0)return aa.call(this,mt(Ut|0),Ut|0)}else if(Array.isArray(Ut)){if(Ut.length)return aa.call(this,Ut,Ut.length)}else return nn.call(this,Ut)}return z(Gt,{stats:Jt,destroy:function(){jt.destroy()}})}var La=tt.setFBO=ti({framebuffer:Wt.define.call(null,Zc,"framebuffer")});function oa(On,sa){var ba=0;Mt.procs.poll();var yi=sa.color;yi&&(it.clearColor(+yi[0]||0,+yi[1]||0,+yi[2]||0,+yi[3]||0),ba|=Sl),"depth"in sa&&(it.clearDepth(+sa.depth),ba|=_l),"stencil"in sa&&(it.clearStencil(sa.stencil|0),ba|=ac),Ae(!!ba,"called regl.clear with no buffer specified"),it.clear(ba)}function Za(On){if(Ae(typeof On=="object"&&On,"regl.clear() takes an object as input"),"framebuffer"in On)if(On.framebuffer&&On.framebuffer_reglType==="framebufferCube")for(var sa=0;sa<6;++sa)La(z({framebuffer:On.framebuffer.faces[sa]},On),oa);else La(On,oa);else oa(null,On)}function ri(On){Ae.type(On,"function","regl.frame() callback must be a function"),Lt.push(On);function sa(){var ba=Kc(Lt,On);Ae(ba>=0,"cannot cancel a frame twice");function yi(){var Ho=Kc(Lt,yi);Lt[Ho]=Lt[Lt.length-1],Lt.length-=1,Lt.length<=0&&Bn()}Lt[ba]=yi}return tn(),{cancel:sa}}function li(){var On=Tt.viewport,sa=Tt.scissor_box;On[0]=On[1]=sa[0]=sa[1]=0,M.viewportWidth=M.framebufferWidth=M.drawingBufferWidth=On[2]=sa[2]=it.drawingBufferWidth,M.viewportHeight=M.framebufferHeight=M.drawingBufferHeight=On[3]=sa[3]=it.drawingBufferHeight}function ii(){M.tick+=1,M.time=Hn(),li(),Mt.procs.poll()}function Pa(){ze.refresh(),li(),Mt.procs.refresh(),Ar&&Ar.update()}function Hn(){return(Dr()-Tr)/1e3}Pa();function Bi(On,sa){Ae.type(sa,"function","listener callback must be a function");var ba;switch(On){case"frame":return ri(sa);case"lost":ba=_r;break;case"restore":ba=Yr;break;case"destroy":ba=Pr;break;default:Ae.raise("invalid event, must be one of frame,lost,restore,destroy")}return ba.push(sa),{cancel:function(){for(var yi=0;yi=0},read:sr,destroy:Wn,_gl:it,_refresh:Pa,poll:function(){ii(),Ar&&Ar.update()},now:Hn,stats:Mr});return We.onDone(null,Ln),Ln}return wf})},86851:function(or,U,z){"use strict";var B=z(89594),j=Array.prototype.concat,R=Array.prototype.slice,A=or.exports=function(L){for(var y=[],x=0,v=L.length;x=0&&(z.splice instanceof Function||Object.getOwnPropertyDescriptor(z,z.length-1)&&z.constructor.name!=="String")}}}]); diff --git a/dist/9934.11fa480c.chunk.css b/dist/9719.11fa480c.chunk.css similarity index 100% rename from dist/9934.11fa480c.chunk.css rename to dist/9719.11fa480c.chunk.css diff --git a/dist/activity/activityInfo/index.html b/dist/activity/activityInfo/index.html index 3cc4489..9f5c647 100644 --- a/dist/activity/activityInfo/index.html +++ b/dist/activity/activityInfo/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@
      - + diff --git a/dist/activity/activityRecord/index.html b/dist/activity/activityRecord/index.html index 3cc4489..9f5c647 100644 --- a/dist/activity/activityRecord/index.html +++ b/dist/activity/activityRecord/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/activity/activityStart/index.html b/dist/activity/activityStart/index.html index 3cc4489..9f5c647 100644 --- a/dist/activity/activityStart/index.html +++ b/dist/activity/activityStart/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/activity/index.html b/dist/activity/index.html index 3cc4489..9f5c647 100644 --- a/dist/activity/index.html +++ b/dist/activity/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/activity/rechargeactivity/index.html b/dist/activity/rechargeactivity/index.html index 3cc4489..9f5c647 100644 --- a/dist/activity/rechargeactivity/index.html +++ b/dist/activity/rechargeactivity/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/applet/index.html b/dist/applet/index.html index 3cc4489..9f5c647 100644 --- a/dist/applet/index.html +++ b/dist/applet/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/applet/material/index.html b/dist/applet/material/index.html index 3cc4489..9f5c647 100644 --- a/dist/applet/material/index.html +++ b/dist/applet/material/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/applet/pageManage/index.html b/dist/applet/pageManage/index.html index 3cc4489..9f5c647 100644 --- a/dist/applet/pageManage/index.html +++ b/dist/applet/pageManage/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/asset-manifest.json b/dist/asset-manifest.json index f842a17..ab4271f 100644 --- a/dist/asset-manifest.json +++ b/dist/asset-manifest.json @@ -1,21 +1,21 @@ { "/umi.css": "/umi.ed4fa1d0.css", - "/umi.js": "/umi.dea8d50e.js", + "/umi.js": "/umi.412cff1b.js", "/t__plugin-layout__Layout.css": "/t__plugin-layout__Layout.e1129705.chunk.css", - "/t__plugin-layout__Layout.js": "/t__plugin-layout__Layout.ea081145.async.js", + "/t__plugin-layout__Layout.js": "/t__plugin-layout__Layout.5d0197aa.async.js", "/p__user__login.css": "/p__user__login.86a3eff2.chunk.css", - "/p__user__login.js": "/p__user__login.fede53d0.async.js", + "/p__user__login.js": "/p__user__login.742db7c5.async.js", "/p__card__gateAdmin.css": "/p__card__gateAdmin.124832a5.chunk.css", - "/p__card__gateAdmin.js": "/p__card__gateAdmin.23677237.async.js", + "/p__card__gateAdmin.js": "/p__card__gateAdmin.5e0d045d.async.js", "/p__quickStart.css": "/p__quickStart.057b9e7c.chunk.css", - "/p__quickStart.js": "/p__quickStart.529882b4.async.js", + "/p__quickStart.js": "/p__quickStart.73d685e1.async.js", "/p__sys__company.js": "/p__sys__company.fe8172e2.async.js", "/p__sys__companyApply.css": "/p__sys__companyApply.80ddd79c.chunk.css", "/p__sys__companyApply.js": "/p__sys__companyApply.038a080b.async.js", "/p__sys__paytemplate.css": "/p__sys__paytemplate.80ddd79c.chunk.css", "/p__sys__paytemplate.js": "/p__sys__paytemplate.febede08.async.js", "/p__sys__org.css": "/p__sys__org.907fcb3a.chunk.css", - "/p__sys__org.js": "/p__sys__org.8894d665.async.js", + "/p__sys__org.js": "/p__sys__org.88680671.async.js", "/p__sys__log.css": "/p__sys__log.b245b872.chunk.css", "/p__sys__log.js": "/p__sys__log.7851143a.async.js", "/p__sys__user.css": "/p__sys__user.80ddd79c.chunk.css", @@ -30,25 +30,25 @@ "/p__sys__sysSettings.css": "/p__sys__sysSettings.a7e001bb.chunk.css", "/p__sys__sysSettings.js": "/p__sys__sysSettings.32067def.async.js", "/p__sys__storemanage.css": "/p__sys__storemanage.11fa480c.chunk.css", - "/p__sys__storemanage.js": "/p__sys__storemanage.9d6f1dc5.async.js", + "/p__sys__storemanage.js": "/p__sys__storemanage.046969cf.async.js", "/p__applet__pageManage.css": "/p__applet__pageManage.ab14847b.chunk.css", - "/p__applet__pageManage.js": "/p__applet__pageManage.1c38d47f.async.js", + "/p__applet__pageManage.js": "/p__applet__pageManage.0fcc2a9b.async.js", "/p__applet__material.css": "/p__applet__material.8f885168.chunk.css", - "/p__applet__material.js": "/p__applet__material.cf570112.async.js", + "/p__applet__material.js": "/p__applet__material.0e4cdf02.async.js", "/p__card__memberAccount.css": "/p__card__memberAccount.fde7eb30.chunk.css", - "/p__card__memberAccount.js": "/p__card__memberAccount.c7ee936f.async.js", + "/p__card__memberAccount.js": "/p__card__memberAccount.dfc17160.async.js", "/p__card__storedValueCard.css": "/p__card__storedValueCard.80ddd79c.chunk.css", - "/p__card__storedValueCard.js": "/p__card__storedValueCard.bf0fc582.async.js", + "/p__card__storedValueCard.js": "/p__card__storedValueCard.9cfd13a3.async.js", "/p__card__gate.css": "/p__card__gate.db80797a.chunk.css", - "/p__card__gate.js": "/p__card__gate.dd9a60c7.async.js", + "/p__card__gate.js": "/p__card__gate.e558c3c3.async.js", "/p__card__machine.css": "/p__card__machine.277eff6a.chunk.css", - "/p__card__machine.js": "/p__card__machine.bf2956f9.async.js", + "/p__card__machine.js": "/p__card__machine.b7955b89.async.js", "/p__card__checkgoods.css": "/p__card__checkgoods.80ddd79c.chunk.css", "/p__card__checkgoods.js": "/p__card__checkgoods.2562b360.async.js", "/p__card__reservation.css": "/p__card__reservation.46405ca6.chunk.css", - "/p__card__reservation.js": "/p__card__reservation.63c5b373.async.js", + "/p__card__reservation.js": "/p__card__reservation.302f5d46.async.js", "/p__card__reservationReport.css": "/p__card__reservationReport.a1100fd8.chunk.css", - "/p__card__reservationReport.js": "/p__card__reservationReport.aef72dd0.async.js", + "/p__card__reservationReport.js": "/p__card__reservationReport.b0995e46.async.js", "/p__card__enterpriseReservation.css": "/p__card__enterpriseReservation.80ddd79c.chunk.css", "/p__card__enterpriseReservation.js": "/p__card__enterpriseReservation.a1fcdfae.async.js", "/p__erp__basic__product.css": "/p__erp__basic__product.0306ba64.chunk.css", @@ -56,13 +56,13 @@ "/p__erp__basic__unit.js": "/p__erp__basic__unit.3a26c5d0.async.js", "/p__erp__basic__productType.js": "/p__erp__basic__productType.86e9548d.async.js", "/p__erp__bill__receivingNote.css": "/p__erp__bill__receivingNote.80ddd79c.chunk.css", - "/p__erp__bill__receivingNote.js": "/p__erp__bill__receivingNote.0777b244.async.js", + "/p__erp__bill__receivingNote.js": "/p__erp__bill__receivingNote.5f83b47a.async.js", "/p__erp__bill__purchaseOrder.css": "/p__erp__bill__purchaseOrder.80ddd79c.chunk.css", "/p__erp__bill__purchaseOrder.js": "/p__erp__bill__purchaseOrder.f52c430b.async.js", "/p__erp__stock.css": "/p__erp__stock.80ddd79c.chunk.css", - "/p__erp__stock.js": "/p__erp__stock.6095cfcc.async.js", + "/p__erp__stock.js": "/p__erp__stock.e7ae1c4a.async.js", "/p__bom__manage.css": "/p__bom__manage.b7ddb0dc.chunk.css", - "/p__bom__manage.js": "/p__bom__manage.64817970.async.js", + "/p__bom__manage.js": "/p__bom__manage.a3ec4e57.async.js", "/p__bom__bomtype.css": "/p__bom__bomtype.80ddd79c.chunk.css", "/p__bom__bomtype.js": "/p__bom__bomtype.1242df21.async.js", "/p__bom__cookingentry.css": "/p__bom__cookingentry.80ddd79c.chunk.css", @@ -71,44 +71,44 @@ "/p__goods__goodsattribute.css": "/p__goods__goodsattribute.80ddd79c.chunk.css", "/p__goods__goodsattribute.js": "/p__goods__goodsattribute.4d7c38fd.async.js", "/p__goods__newgoods.css": "/p__goods__newgoods.63cc2960.chunk.css", - "/p__goods__newgoods.js": "/p__goods__newgoods.f8b71db8.async.js", + "/p__goods__newgoods.js": "/p__goods__newgoods.60e9fab7.async.js", "/p__goods__goods-taste.css": "/p__goods__goods-taste.b20b12da.chunk.css", - "/p__goods__goods-taste.js": "/p__goods__goods-taste.2eebe563.async.js", + "/p__goods__goods-taste.js": "/p__goods__goods-taste.472ffe88.async.js", "/p__goods__goods-type-manage.js": "/p__goods__goods-type-manage.b16288ec.async.js", "/p__goods__goodsParentTypemanage.js": "/p__goods__goodsParentTypemanage.945a22b8.async.js", "/p__goods__unit.js": "/p__goods__unit.59f70a8c.async.js", "/p__goods__goodsInfo.css": "/p__goods__goodsInfo.12df1496.chunk.css", - "/p__goods__goodsInfo.js": "/p__goods__goodsInfo.c7d125d4.async.js", - "/p__goods__goodsPractice.js": "/p__goods__goodsPractice.9bc3569d.async.js", + "/p__goods__goodsInfo.js": "/p__goods__goodsInfo.419b9eca.async.js", + "/p__goods__goodsPractice.js": "/p__goods__goodsPractice.bad5ced0.async.js", "/p__goods__goodsPracticeType.css": "/p__goods__goodsPracticeType.80ddd79c.chunk.css", - "/p__goods__goodsPracticeType.js": "/p__goods__goodsPracticeType.dedbaf7c.async.js", + "/p__goods__goodsPracticeType.js": "/p__goods__goodsPracticeType.85dfb1c5.async.js", "/p__goods__goodsPracticeInfo.css": "/p__goods__goodsPracticeInfo.80ddd79c.chunk.css", - "/p__goods__goodsPracticeInfo.js": "/p__goods__goodsPracticeInfo.836418e4.async.js", + "/p__goods__goodsPracticeInfo.js": "/p__goods__goodsPracticeInfo.ff340517.async.js", "/p__store__storeType.css": "/p__store__storeType.80ddd79c.chunk.css", - "/p__store__storeType.js": "/p__store__storeType.2bb94262.async.js", + "/p__store__storeType.js": "/p__store__storeType.60c12a0e.async.js", "/p__store__storeStaff.css": "/p__store__storeStaff.80ddd79c.chunk.css", - "/p__store__storeStaff.js": "/p__store__storeStaff.ce2a499e.async.js", + "/p__store__storeStaff.js": "/p__store__storeStaff.a161860a.async.js", "/p__store__printer__Printer.css": "/p__store__printer__Printer.80ddd79c.chunk.css", "/p__store__printer__Printer.js": "/p__store__printer__Printer.0a3c4e39.async.js", "/p__store__printer__printerTemplate.css": "/p__store__printer__printerTemplate.3ce60723.chunk.css", - "/p__store__printer__printerTemplate.js": "/p__store__printer__printerTemplate.003d8237.async.js", + "/p__store__printer__printerTemplate.js": "/p__store__printer__printerTemplate.85273370.async.js", "/p__store__storeDesktopNumber.js": "/p__store__storeDesktopNumber.47d7c57b.async.js", "/p__store__storeLevel.css": "/p__store__storeLevel.80ddd79c.chunk.css", - "/p__store__storeLevel.js": "/p__store__storeLevel.f8b80206.async.js", + "/p__store__storeLevel.js": "/p__store__storeLevel.e47d1ec2.async.js", "/p__store__storeInfo.css": "/p__store__storeInfo.80ddd79c.chunk.css", - "/p__store__storeInfo.js": "/p__store__storeInfo.972c18e5.async.js", + "/p__store__storeInfo.js": "/p__store__storeInfo.807b8347.async.js", "/p__store__storeAddGoodsInfo.css": "/p__store__storeAddGoodsInfo.80ddd79c.chunk.css", "/p__store__storeAddGoodsInfo.js": "/p__store__storeAddGoodsInfo.7695fd4f.async.js", "/p__store__storeGoodsInfo.css": "/p__store__storeGoodsInfo.b245b872.chunk.css", - "/p__store__storeGoodsInfo.js": "/p__store__storeGoodsInfo.d30ff034.async.js", + "/p__store__storeGoodsInfo.js": "/p__store__storeGoodsInfo.240cfce6.async.js", "/p__store__storeAdvertisement.css": "/p__store__storeAdvertisement.63cc2960.chunk.css", "/p__store__storeAdvertisement.js": "/p__store__storeAdvertisement.b07b0e9c.async.js", "/p__device__deviceType.css": "/p__device__deviceType.80ddd79c.chunk.css", "/p__device__deviceType.js": "/p__device__deviceType.efac2a47.async.js", "/p__device__deviceInfo.css": "/p__device__deviceInfo.80ddd79c.chunk.css", - "/p__device__deviceInfo.js": "/p__device__deviceInfo.890a20d8.async.js", + "/p__device__deviceInfo.js": "/p__device__deviceInfo.d2899f3f.async.js", "/p__device__deviceVesion.css": "/p__device__deviceVesion.80ddd79c.chunk.css", - "/p__device__deviceVesion.js": "/p__device__deviceVesion.9b14cfc0.async.js", + "/p__device__deviceVesion.js": "/p__device__deviceVesion.447504c0.async.js", "/p__device__devicetechnology.css": "/p__device__devicetechnology.80ddd79c.chunk.css", "/p__device__devicetechnology.js": "/p__device__devicetechnology.2bbc42c8.async.js", "/p__device__deviceStirFryTime.js": "/p__device__deviceStirFryTime.8419737b.async.js", @@ -118,7 +118,7 @@ "/p__device__deviceRecipeStock.css": "/p__device__deviceRecipeStock.80ddd79c.chunk.css", "/p__device__devicemorkmwpush.js": "/p__device__devicemorkmwpush.9b7ff245.async.js", "/p__integral__integralConfigure.css": "/p__integral__integralConfigure.80ddd79c.chunk.css", - "/p__integral__integralConfigure.js": "/p__integral__integralConfigure.658b235d.async.js", + "/p__integral__integralConfigure.js": "/p__integral__integralConfigure.ff7adb78.async.js", "/p__integral__integralDistribute.js": "/p__integral__integralDistribute.3531a0cd.async.js", "/p__foodMenu__foodMenuInfo.css": "/p__foodMenu__foodMenuInfo.80ddd79c.chunk.css", "/p__foodMenu__foodMenuInfo.js": "/p__foodMenu__foodMenuInfo.be3bcf11.async.js", @@ -138,102 +138,102 @@ "/p__activity__activityStart.js": "/p__activity__activityStart.03142722.async.js", "/p__crm__coupon__couponInfo.css": "/p__crm__coupon__couponInfo.80ddd79c.chunk.css", "/p__crm__coupon__couponInfo.js": "/p__crm__coupon__couponInfo.5eb627bf.async.js", - "/p__crm__coupon__coupon-Batch.js": "/p__crm__coupon__coupon-Batch.1e75f3a0.async.js", + "/p__crm__coupon__coupon-Batch.js": "/p__crm__coupon__coupon-Batch.47f0d255.async.js", "/p__crm__coupon__customerCoupon.css": "/p__crm__coupon__customerCoupon.80ddd79c.chunk.css", "/p__crm__coupon__customerCoupon.js": "/p__crm__coupon__customerCoupon.8194594d.async.js", "/p__crm__coupon__paperCoupon.css": "/p__crm__coupon__paperCoupon.80ddd79c.chunk.css", "/p__crm__coupon__paperCoupon.js": "/p__crm__coupon__paperCoupon.738d2533.async.js", - "/p__crm__coupon__goodsCoupon.js": "/p__crm__coupon__goodsCoupon.980ad3ce.async.js", + "/p__crm__coupon__goodsCoupon.js": "/p__crm__coupon__goodsCoupon.d1a90272.async.js", "/p__crm__coupon__paperCouponReport.css": "/p__crm__coupon__paperCouponReport.80ddd79c.chunk.css", "/p__crm__coupon__paperCouponReport.js": "/p__crm__coupon__paperCouponReport.c147a3a2.async.js", "/p__crm__coupon__goodsCouponReport.css": "/p__crm__coupon__goodsCouponReport.80ddd79c.chunk.css", "/p__crm__coupon__goodsCouponReport.js": "/p__crm__coupon__goodsCouponReport.0d2a615b.async.js", - "/p__split__account.js": "/p__split__account.306db08c.async.js", + "/p__split__account.js": "/p__split__account.7df24ef1.async.js", "/p__split__FranchiseePlan.js": "/p__split__FranchiseePlan.b4984030.async.js", - "/p__split__plan.js": "/p__split__plan.a96b624b.async.js", + "/p__split__plan.js": "/p__split__plan.9bd63172.async.js", "/p__split__splitOrders.css": "/p__split__splitOrders.80ddd79c.chunk.css", "/p__split__splitOrders.js": "/p__split__splitOrders.3c5e62ee.async.js", "/p__refundment__orderAfterSales.css": "/p__refundment__orderAfterSales.80ddd79c.chunk.css", "/p__refundment__orderAfterSales.js": "/p__refundment__orderAfterSales.f21980e3.async.js", "/p__order__order-summary-manage.css": "/p__order__order-summary-manage.80ddd79c.chunk.css", - "/p__order__order-summary-manage.js": "/p__order__order-summary-manage.f752b151.async.js", - "/p__order__order-flow-manage.js": "/p__order__order-flow-manage.bd5f9307.async.js", - "/p__order__order-nopay-detail.js": "/p__order__order-nopay-detail.8b3d0eb0.async.js", + "/p__order__order-summary-manage.js": "/p__order__order-summary-manage.181ee0f4.async.js", + "/p__order__order-flow-manage.js": "/p__order__order-flow-manage.44faa7f5.async.js", + "/p__order__order-nopay-detail.js": "/p__order__order-nopay-detail.338fbc17.async.js", "/p__order__orderDetail.css": "/p__order__orderDetail.80ddd79c.chunk.css", "/p__order__orderDetail.js": "/p__order__orderDetail.baaedf6a.async.js", "/p__order__refundOrder.js": "/p__order__refundOrder.ed5b6c83.async.js", "/p__order__salesReport.css": "/p__order__salesReport.d09dbc64.chunk.css", - "/p__order__salesReport.js": "/p__order__salesReport.22117989.async.js", + "/p__order__salesReport.js": "/p__order__salesReport.53d415d3.async.js", "/p__order__ordersalescountbyday.css": "/p__order__ordersalescountbyday.80ddd79c.chunk.css", "/p__order__ordersalescountbyday.js": "/p__order__ordersalescountbyday.e4f8a6a7.async.js", "/p__order__DailyReport.css": "/p__order__DailyReport.fd36690c.chunk.css", - "/p__order__DailyReport.js": "/p__order__DailyReport.0ccaf3ab.async.js", + "/p__order__DailyReport.js": "/p__order__DailyReport.3051486a.async.js", "/p__order__exOrder.css": "/p__order__exOrder.80ddd79c.chunk.css", "/p__order__exOrder.js": "/p__order__exOrder.4a1907cd.async.js", "/p__order__order-market-report.css": "/p__order__order-market-report.62bb373c.chunk.css", - "/p__order__order-market-report.js": "/p__order__order-market-report.9d98bafa.async.js", + "/p__order__order-market-report.js": "/p__order__order-market-report.43e0b6fe.async.js", "/p__order__order-report.css": "/p__order__order-report.f8901448.chunk.css", - "/p__order__order-report.js": "/p__order__order-report.08635c0c.async.js", + "/p__order__order-report.js": "/p__order__order-report.dbb42468.async.js", "/p__order__order-report-detail.css": "/p__order__order-report-detail.8f08249b.chunk.css", "/p__order__order-report-detail.js": "/p__order__order-report-detail.3b03f124.async.js", "/p__order__order-revenue-statement.css": "/p__order__order-revenue-statement.85dfd643.chunk.css", - "/p__order__order-revenue-statement.js": "/p__order__order-revenue-statement.98c25366.async.js", + "/p__order__order-revenue-statement.js": "/p__order__order-revenue-statement.759637e7.async.js", "/p__order__order-product-report.css": "/p__order__order-product-report.a1f065c4.chunk.css", - "/p__order__order-product-report.js": "/p__order__order-product-report.6ed7c7d7.async.js", + "/p__order__order-product-report.js": "/p__order__order-product-report.75dc89be.async.js", "/p__order__order-member-statement.css": "/p__order__order-member-statement.2238a84a.chunk.css", - "/p__order__order-member-statement.js": "/p__order__order-member-statement.fa0a7168.async.js", + "/p__order__order-member-statement.js": "/p__order__order-member-statement.172548ce.async.js", "/p__order__cost-of-sales.css": "/p__order__cost-of-sales.a555d269.chunk.css", - "/p__order__cost-of-sales.js": "/p__order__cost-of-sales.e5d4ef37.async.js", + "/p__order__cost-of-sales.js": "/p__order__cost-of-sales.de68d12b.async.js", "/p__order__sales-gross-profit.css": "/p__order__sales-gross-profit.31cffa42.chunk.css", - "/p__order__sales-gross-profit.js": "/p__order__sales-gross-profit.0905276f.async.js", + "/p__order__sales-gross-profit.js": "/p__order__sales-gross-profit.296849ec.async.js", "/p__order__gross-profit-store-sales.css": "/p__order__gross-profit-store-sales.fe0363be.chunk.css", - "/p__order__gross-profit-store-sales.js": "/p__order__gross-profit-store-sales.6de00989.async.js", + "/p__order__gross-profit-store-sales.js": "/p__order__gross-profit-store-sales.c6196cd7.async.js", "/p__stockManager__stockItem.js": "/p__stockManager__stockItem.217721f3.async.js", "/p__stockManager__stockInventory.css": "/p__stockManager__stockInventory.80ddd79c.chunk.css", "/p__stockManager__stockInventory.js": "/p__stockManager__stockInventory.0dbc23fb.async.js", "/p__stockManager__stockReports.css": "/p__stockManager__stockReports.80ddd79c.chunk.css", "/p__stockManager__stockReports.js": "/p__stockManager__stockReports.54bddf71.async.js", "/p__financereport__finance.css": "/p__financereport__finance.ea072017.chunk.css", - "/p__financereport__finance.js": "/p__financereport__finance.efe94f4e.async.js", + "/p__financereport__finance.js": "/p__financereport__finance.9e245f57.async.js", "/p__Welcome.css": "/p__Welcome.a2d4086e.chunk.css", - "/p__Welcome.js": "/p__Welcome.1f928a39.async.js", + "/p__Welcome.js": "/p__Welcome.aa5c9713.async.js", "/p__test__update.css": "/p__test__update.5b491966.chunk.css", "/p__test__update.js": "/p__test__update.4360eb9b.async.js", "/p__test.css": "/p__test.2fe21f78.chunk.css", - "/p__test.js": "/p__test.6a068bed.async.js", + "/p__test.js": "/p__test.d3c03b9b.async.js", "/p__404.css": "/p__404.b74445fb.chunk.css", "/p__404.js": "/p__404.7bdbd081.async.js", - "/3914.a0296ac4.chunk.css": "/3914.a0296ac4.chunk.css", - "/3914.c22fbfba.async.js": "/3914.c22fbfba.async.js", + "/2664.a0296ac4.chunk.css": "/2664.a0296ac4.chunk.css", + "/2664.f9ceb3c1.async.js": "/2664.f9ceb3c1.async.js", "/5429.54d3a3f3.chunk.css": "/5429.54d3a3f3.chunk.css", "/5429.0c280e31.async.js": "/5429.0c280e31.async.js", - "/2339.4096aec6.async.js": "/2339.4096aec6.async.js", - "/2063.89416762.chunk.css": "/2063.89416762.chunk.css", - "/8009.4f207990.async.js": "/8009.4f207990.async.js", - "/8928.1baf7f40.async.js": "/8928.1baf7f40.async.js", + "/2339.bdbfbaf3.async.js": "/2339.bdbfbaf3.async.js", + "/6487.89416762.chunk.css": "/6487.89416762.chunk.css", + "/8009.d8e56eb7.async.js": "/8009.d8e56eb7.async.js", + "/8928.26563c15.async.js": "/8928.26563c15.async.js", "/4107.373c2fd8.async.js": "/4107.373c2fd8.async.js", "/2323.f0e18d96.async.js": "/2323.f0e18d96.async.js", "/4332.e34c6631.async.js": "/4332.e34c6631.async.js", "/7866.5de37fd0.async.js": "/7866.5de37fd0.async.js", - "/6937.1df1d163.chunk.css": "/6937.1df1d163.chunk.css", - "/6937.67df1938.async.js": "/6937.67df1938.async.js", + "/7335.1df1d163.chunk.css": "/7335.1df1d163.chunk.css", + "/7335.e519791a.async.js": "/7335.e519791a.async.js", "/9597.3aaf12cb.async.js": "/9597.3aaf12cb.async.js", - "/6358.c03e1ad4.async.js": "/6358.c03e1ad4.async.js", - "/3866.f2bc03f5.chunk.css": "/3866.f2bc03f5.chunk.css", - "/3866.efd8af32.async.js": "/3866.efd8af32.async.js", + "/6358.93252bf8.async.js": "/6358.93252bf8.async.js", + "/6587.f2bc03f5.chunk.css": "/6587.f2bc03f5.chunk.css", + "/6587.92ad04ea.async.js": "/6587.92ad04ea.async.js", "/4480.e92c4184.async.js": "/4480.e92c4184.async.js", "/8151.e344b23c.async.js": "/8151.e344b23c.async.js", - "/1125.ce16fcce.chunk.css": "/1125.ce16fcce.chunk.css", - "/1125.f5d74d99.async.js": "/1125.f5d74d99.async.js", + "/3390.ce16fcce.chunk.css": "/3390.ce16fcce.chunk.css", + "/3390.9366325d.async.js": "/3390.9366325d.async.js", "/7751.8d3970bf.async.js": "/7751.8d3970bf.async.js", - "/7921.5717e908.async.js": "/7921.5717e908.async.js", + "/7921.0f9d6341.async.js": "/7921.0f9d6341.async.js", "/9567.307506ed.async.js": "/9567.307506ed.async.js", - "/4610.fefb1cfc.chunk.css": "/4610.fefb1cfc.chunk.css", - "/7128.94c05dc9.chunk.css": "/7128.94c05dc9.chunk.css", - "/7128.a91e6c3d.async.js": "/7128.a91e6c3d.async.js", - "/9396.a328c7e0.async.js": "/9396.a328c7e0.async.js", - "/7526.09f1def5.chunk.css": "/7526.09f1def5.chunk.css", - "/7526.9767d226.async.js": "/7526.9767d226.async.js", + "/7068.fefb1cfc.chunk.css": "/7068.fefb1cfc.chunk.css", + "/4374.94c05dc9.chunk.css": "/4374.94c05dc9.chunk.css", + "/4374.23416f66.async.js": "/4374.23416f66.async.js", + "/9396.82d7aca4.async.js": "/9396.82d7aca4.async.js", + "/3315.09f1def5.chunk.css": "/3315.09f1def5.chunk.css", + "/3315.1cf70445.async.js": "/3315.1cf70445.async.js", "/3667.a51bb1c9.async.js": "/3667.a51bb1c9.async.js", "/1791.3d891c89.async.js": "/1791.3d891c89.async.js", "/9669.75110ec8.async.js": "/9669.75110ec8.async.js", @@ -241,27 +241,27 @@ "/6486.837492aa.async.js": "/6486.837492aa.async.js", "/2255.a25b6bb8.async.js": "/2255.a25b6bb8.async.js", "/8764.93d0bdf6.async.js": "/8764.93d0bdf6.async.js", - "/6282.e3693903.chunk.css": "/6282.e3693903.chunk.css", - "/6282.14727085.async.js": "/6282.14727085.async.js", + "/7118.e3693903.chunk.css": "/7118.e3693903.chunk.css", + "/7118.2a4ee98d.async.js": "/7118.2a4ee98d.async.js", "/8321.6607b2ea.async.js": "/8321.6607b2ea.async.js", "/983.d8608375.async.js": "/983.d8608375.async.js", - "/7679.f6a9debf.async.js": "/7679.f6a9debf.async.js", + "/7679.f79a9ae6.async.js": "/7679.f79a9ae6.async.js", "/9199.d840247c.async.js": "/9199.d840247c.async.js", "/8691.53033a17.async.js": "/8691.53033a17.async.js", - "/9934.11fa480c.chunk.css": "/9934.11fa480c.chunk.css", - "/9645.121c7f8b.async.js": "/9645.121c7f8b.async.js", - "/1042.a0ec141e.async.js": "/1042.a0ec141e.async.js", + "/9464.11fa480c.chunk.css": "/9464.11fa480c.chunk.css", + "/9645.697e668e.async.js": "/9645.697e668e.async.js", + "/1042.600effe8.async.js": "/1042.600effe8.async.js", "/9357.609d4c87.async.js": "/9357.609d4c87.async.js", - "/4211.c8d267bf.chunk.css": "/4211.c8d267bf.chunk.css", - "/4616.502268b7.chunk.css": "/4616.502268b7.chunk.css", - "/4407.11fa480c.chunk.css": "/4407.11fa480c.chunk.css", - "/6498.11fa480c.chunk.css": "/6498.11fa480c.chunk.css", - "/6090.11fa480c.chunk.css": "/6090.11fa480c.chunk.css", - "/274.11fa480c.chunk.css": "/274.11fa480c.chunk.css", - "/6314.11fa480c.chunk.css": "/6314.11fa480c.chunk.css", - "/8326.1902a3a9.chunk.css": "/8326.1902a3a9.chunk.css", - "/7859.fd105af1.chunk.css": "/7859.fd105af1.chunk.css", - "/5754.b510b5a8.async.js": "/5754.b510b5a8.async.js", + "/3888.c8d267bf.chunk.css": "/3888.c8d267bf.chunk.css", + "/5329.502268b7.chunk.css": "/5329.502268b7.chunk.css", + "/1981.11fa480c.chunk.css": "/1981.11fa480c.chunk.css", + "/2869.11fa480c.chunk.css": "/2869.11fa480c.chunk.css", + "/7013.11fa480c.chunk.css": "/7013.11fa480c.chunk.css", + "/9719.11fa480c.chunk.css": "/9719.11fa480c.chunk.css", + "/2383.11fa480c.chunk.css": "/2383.11fa480c.chunk.css", + "/4670.1902a3a9.chunk.css": "/4670.1902a3a9.chunk.css", + "/3453.fd105af1.chunk.css": "/3453.fd105af1.chunk.css", + "/5754.629f22ea.async.js": "/5754.629f22ea.async.js", "/8267.48813cc4.async.js": "/8267.48813cc4.async.js", "/4658.1c951f72.async.js": "/4658.1c951f72.async.js", "/public/logo.png": "/logo.png", diff --git a/dist/bom/bomtype/index.html b/dist/bom/bomtype/index.html index 3cc4489..9f5c647 100644 --- a/dist/bom/bomtype/index.html +++ b/dist/bom/bomtype/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/bom/cookingentry/index.html b/dist/bom/cookingentry/index.html index 3cc4489..9f5c647 100644 --- a/dist/bom/cookingentry/index.html +++ b/dist/bom/cookingentry/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/bom/index.html b/dist/bom/index.html index 3cc4489..9f5c647 100644 --- a/dist/bom/index.html +++ b/dist/bom/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/bom/manage/index.html b/dist/bom/manage/index.html index 3cc4489..9f5c647 100644 --- a/dist/bom/manage/index.html +++ b/dist/bom/manage/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/card/checkgoods/index.html b/dist/card/checkgoods/index.html index 3cc4489..9f5c647 100644 --- a/dist/card/checkgoods/index.html +++ b/dist/card/checkgoods/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/card/enterpriseReservation/index.html b/dist/card/enterpriseReservation/index.html index 3cc4489..9f5c647 100644 --- a/dist/card/enterpriseReservation/index.html +++ b/dist/card/enterpriseReservation/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/card/gate/index.html b/dist/card/gate/index.html index 3cc4489..9f5c647 100644 --- a/dist/card/gate/index.html +++ b/dist/card/gate/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/card/index.html b/dist/card/index.html index 3cc4489..9f5c647 100644 --- a/dist/card/index.html +++ b/dist/card/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/card/machine/index.html b/dist/card/machine/index.html index 3cc4489..9f5c647 100644 --- a/dist/card/machine/index.html +++ b/dist/card/machine/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/card/memberAccount/index.html b/dist/card/memberAccount/index.html index 3cc4489..9f5c647 100644 --- a/dist/card/memberAccount/index.html +++ b/dist/card/memberAccount/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/card/reservation/index.html b/dist/card/reservation/index.html index 3cc4489..9f5c647 100644 --- a/dist/card/reservation/index.html +++ b/dist/card/reservation/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/card/reservationReport/index.html b/dist/card/reservationReport/index.html index 3cc4489..9f5c647 100644 --- a/dist/card/reservationReport/index.html +++ b/dist/card/reservationReport/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/card/storedValueCard/index.html b/dist/card/storedValueCard/index.html index 3cc4489..9f5c647 100644 --- a/dist/card/storedValueCard/index.html +++ b/dist/card/storedValueCard/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/crm/coupon/coupon-Batch/index.html b/dist/crm/coupon/coupon-Batch/index.html index 3cc4489..9f5c647 100644 --- a/dist/crm/coupon/coupon-Batch/index.html +++ b/dist/crm/coupon/coupon-Batch/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/crm/coupon/couponInfo/index.html b/dist/crm/coupon/couponInfo/index.html index 3cc4489..9f5c647 100644 --- a/dist/crm/coupon/couponInfo/index.html +++ b/dist/crm/coupon/couponInfo/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/crm/coupon/customerCoupon/index.html b/dist/crm/coupon/customerCoupon/index.html index 3cc4489..9f5c647 100644 --- a/dist/crm/coupon/customerCoupon/index.html +++ b/dist/crm/coupon/customerCoupon/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/crm/coupon/goodsCoupon/index.html b/dist/crm/coupon/goodsCoupon/index.html index 3cc4489..9f5c647 100644 --- a/dist/crm/coupon/goodsCoupon/index.html +++ b/dist/crm/coupon/goodsCoupon/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/crm/coupon/goodsCouponReport/index.html b/dist/crm/coupon/goodsCouponReport/index.html index 3cc4489..9f5c647 100644 --- a/dist/crm/coupon/goodsCouponReport/index.html +++ b/dist/crm/coupon/goodsCouponReport/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/crm/coupon/paperCoupon/index.html b/dist/crm/coupon/paperCoupon/index.html index 3cc4489..9f5c647 100644 --- a/dist/crm/coupon/paperCoupon/index.html +++ b/dist/crm/coupon/paperCoupon/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/crm/coupon/paperCouponReport/index.html b/dist/crm/coupon/paperCouponReport/index.html index 3cc4489..9f5c647 100644 --- a/dist/crm/coupon/paperCouponReport/index.html +++ b/dist/crm/coupon/paperCouponReport/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/crm/index.html b/dist/crm/index.html index 3cc4489..9f5c647 100644 --- a/dist/crm/index.html +++ b/dist/crm/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/device/deviceBom/index.html b/dist/device/deviceBom/index.html index 3cc4489..9f5c647 100644 --- a/dist/device/deviceBom/index.html +++ b/dist/device/deviceBom/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/device/deviceInfo/index.html b/dist/device/deviceInfo/index.html index 3cc4489..9f5c647 100644 --- a/dist/device/deviceInfo/index.html +++ b/dist/device/deviceInfo/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/device/deviceRecipeStock/index.html b/dist/device/deviceRecipeStock/index.html index 3cc4489..9f5c647 100644 --- a/dist/device/deviceRecipeStock/index.html +++ b/dist/device/deviceRecipeStock/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/device/deviceStirFryTime/index.html b/dist/device/deviceStirFryTime/index.html index 3cc4489..9f5c647 100644 --- a/dist/device/deviceStirFryTime/index.html +++ b/dist/device/deviceStirFryTime/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/device/deviceStock/index.html b/dist/device/deviceStock/index.html index 3cc4489..9f5c647 100644 --- a/dist/device/deviceStock/index.html +++ b/dist/device/deviceStock/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/device/deviceType/index.html b/dist/device/deviceType/index.html index 3cc4489..9f5c647 100644 --- a/dist/device/deviceType/index.html +++ b/dist/device/deviceType/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/device/deviceVesion/index.html b/dist/device/deviceVesion/index.html index 3cc4489..9f5c647 100644 --- a/dist/device/deviceVesion/index.html +++ b/dist/device/deviceVesion/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/device/devicemorkmwpush/index.html b/dist/device/devicemorkmwpush/index.html index 3cc4489..9f5c647 100644 --- a/dist/device/devicemorkmwpush/index.html +++ b/dist/device/devicemorkmwpush/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/device/devicetechnology/index.html b/dist/device/devicetechnology/index.html index 3cc4489..9f5c647 100644 --- a/dist/device/devicetechnology/index.html +++ b/dist/device/devicetechnology/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/device/index.html b/dist/device/index.html index 3cc4489..9f5c647 100644 --- a/dist/device/index.html +++ b/dist/device/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/erp/basic/product/index.html b/dist/erp/basic/product/index.html index 3cc4489..9f5c647 100644 --- a/dist/erp/basic/product/index.html +++ b/dist/erp/basic/product/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/erp/basic/productType/index.html b/dist/erp/basic/productType/index.html index 3cc4489..9f5c647 100644 --- a/dist/erp/basic/productType/index.html +++ b/dist/erp/basic/productType/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/erp/basic/unit/index.html b/dist/erp/basic/unit/index.html index 3cc4489..9f5c647 100644 --- a/dist/erp/basic/unit/index.html +++ b/dist/erp/basic/unit/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/erp/bill/purchaseOrder/index.html b/dist/erp/bill/purchaseOrder/index.html index 3cc4489..9f5c647 100644 --- a/dist/erp/bill/purchaseOrder/index.html +++ b/dist/erp/bill/purchaseOrder/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/erp/bill/receivingNote/index.html b/dist/erp/bill/receivingNote/index.html index 3cc4489..9f5c647 100644 --- a/dist/erp/bill/receivingNote/index.html +++ b/dist/erp/bill/receivingNote/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/erp/index.html b/dist/erp/index.html index 3cc4489..9f5c647 100644 --- a/dist/erp/index.html +++ b/dist/erp/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/erp/stock/index.html b/dist/erp/stock/index.html index 3cc4489..9f5c647 100644 --- a/dist/erp/stock/index.html +++ b/dist/erp/stock/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/financereport/finance/index.html b/dist/financereport/finance/index.html index 3cc4489..9f5c647 100644 --- a/dist/financereport/finance/index.html +++ b/dist/financereport/finance/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/financereport/index.html b/dist/financereport/index.html index 3cc4489..9f5c647 100644 --- a/dist/financereport/index.html +++ b/dist/financereport/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/foodMenu/foodMenuInfo/index.html b/dist/foodMenu/foodMenuInfo/index.html index 3cc4489..9f5c647 100644 --- a/dist/foodMenu/foodMenuInfo/index.html +++ b/dist/foodMenu/foodMenuInfo/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/foodMenu/index.html b/dist/foodMenu/index.html index 3cc4489..9f5c647 100644 --- a/dist/foodMenu/index.html +++ b/dist/foodMenu/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/foodMenu/storeFoodMenu/index.html b/dist/foodMenu/storeFoodMenu/index.html index 3cc4489..9f5c647 100644 --- a/dist/foodMenu/storeFoodMenu/index.html +++ b/dist/foodMenu/storeFoodMenu/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/gateAdmin/index.html b/dist/gateAdmin/index.html index 3cc4489..9f5c647 100644 --- a/dist/gateAdmin/index.html +++ b/dist/gateAdmin/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/goods/goods-manage/index.html b/dist/goods/goods-manage/index.html index 3cc4489..9f5c647 100644 --- a/dist/goods/goods-manage/index.html +++ b/dist/goods/goods-manage/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/goods/goods-taste/index.html b/dist/goods/goods-taste/index.html index 3cc4489..9f5c647 100644 --- a/dist/goods/goods-taste/index.html +++ b/dist/goods/goods-taste/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/goods/goods-type-manage/index.html b/dist/goods/goods-type-manage/index.html index 3cc4489..9f5c647 100644 --- a/dist/goods/goods-type-manage/index.html +++ b/dist/goods/goods-type-manage/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/goods/goodsInfo/index.html b/dist/goods/goodsInfo/index.html index 3cc4489..9f5c647 100644 --- a/dist/goods/goodsInfo/index.html +++ b/dist/goods/goodsInfo/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/goods/goodsParentTypemanage/index.html b/dist/goods/goodsParentTypemanage/index.html index 3cc4489..9f5c647 100644 --- a/dist/goods/goodsParentTypemanage/index.html +++ b/dist/goods/goodsParentTypemanage/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/goods/goodsPractice/index.html b/dist/goods/goodsPractice/index.html index 3cc4489..9f5c647 100644 --- a/dist/goods/goodsPractice/index.html +++ b/dist/goods/goodsPractice/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/goods/goodsPracticeInfo/index.html b/dist/goods/goodsPracticeInfo/index.html index 3cc4489..9f5c647 100644 --- a/dist/goods/goodsPracticeInfo/index.html +++ b/dist/goods/goodsPracticeInfo/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/goods/goodsPracticeType/index.html b/dist/goods/goodsPracticeType/index.html index 3cc4489..9f5c647 100644 --- a/dist/goods/goodsPracticeType/index.html +++ b/dist/goods/goodsPracticeType/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/goods/goodsattribute/index.html b/dist/goods/goodsattribute/index.html index 3cc4489..9f5c647 100644 --- a/dist/goods/goodsattribute/index.html +++ b/dist/goods/goodsattribute/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/goods/index.html b/dist/goods/index.html index 3cc4489..9f5c647 100644 --- a/dist/goods/index.html +++ b/dist/goods/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/goods/newgoods/index.html b/dist/goods/newgoods/index.html index 3cc4489..9f5c647 100644 --- a/dist/goods/newgoods/index.html +++ b/dist/goods/newgoods/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/goods/unit/index.html b/dist/goods/unit/index.html index 3cc4489..9f5c647 100644 --- a/dist/goods/unit/index.html +++ b/dist/goods/unit/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/index.html b/dist/index.html index 3cc4489..9f5c647 100644 --- a/dist/index.html +++ b/dist/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/integral/index.html b/dist/integral/index.html index 3cc4489..9f5c647 100644 --- a/dist/integral/index.html +++ b/dist/integral/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/integral/integralConfigure/index.html b/dist/integral/integralConfigure/index.html index 3cc4489..9f5c647 100644 --- a/dist/integral/integralConfigure/index.html +++ b/dist/integral/integralConfigure/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/integral/integralDistribute/index.html b/dist/integral/integralDistribute/index.html index 3cc4489..9f5c647 100644 --- a/dist/integral/integralDistribute/index.html +++ b/dist/integral/integralDistribute/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/member/index.html b/dist/member/index.html index 3cc4489..9f5c647 100644 --- a/dist/member/index.html +++ b/dist/member/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/member/memberAnalysis/index.html b/dist/member/memberAnalysis/index.html index 3cc4489..9f5c647 100644 --- a/dist/member/memberAnalysis/index.html +++ b/dist/member/memberAnalysis/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/member/memberInfo/index.html b/dist/member/memberInfo/index.html index 3cc4489..9f5c647 100644 --- a/dist/member/memberInfo/index.html +++ b/dist/member/memberInfo/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/member/membertag/index.html b/dist/member/membertag/index.html index 3cc4489..9f5c647 100644 --- a/dist/member/membertag/index.html +++ b/dist/member/membertag/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/order/DailyReport/index.html b/dist/order/DailyReport/index.html index 3cc4489..9f5c647 100644 --- a/dist/order/DailyReport/index.html +++ b/dist/order/DailyReport/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/order/cost-of-sales/index.html b/dist/order/cost-of-sales/index.html index 3cc4489..9f5c647 100644 --- a/dist/order/cost-of-sales/index.html +++ b/dist/order/cost-of-sales/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/order/exOrder/index.html b/dist/order/exOrder/index.html index 3cc4489..9f5c647 100644 --- a/dist/order/exOrder/index.html +++ b/dist/order/exOrder/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/order/gross-profit-store-sales/index.html b/dist/order/gross-profit-store-sales/index.html index 3cc4489..9f5c647 100644 --- a/dist/order/gross-profit-store-sales/index.html +++ b/dist/order/gross-profit-store-sales/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/order/index.html b/dist/order/index.html index 3cc4489..9f5c647 100644 --- a/dist/order/index.html +++ b/dist/order/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/order/order-flow-manage/index.html b/dist/order/order-flow-manage/index.html index 3cc4489..9f5c647 100644 --- a/dist/order/order-flow-manage/index.html +++ b/dist/order/order-flow-manage/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/order/order-market-report/index.html b/dist/order/order-market-report/index.html index 3cc4489..9f5c647 100644 --- a/dist/order/order-market-report/index.html +++ b/dist/order/order-market-report/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/order/order-member-statement/index.html b/dist/order/order-member-statement/index.html index 3cc4489..9f5c647 100644 --- a/dist/order/order-member-statement/index.html +++ b/dist/order/order-member-statement/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/order/order-nopay-detail/index.html b/dist/order/order-nopay-detail/index.html index 3cc4489..9f5c647 100644 --- a/dist/order/order-nopay-detail/index.html +++ b/dist/order/order-nopay-detail/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/order/order-product-report/index.html b/dist/order/order-product-report/index.html index 3cc4489..9f5c647 100644 --- a/dist/order/order-product-report/index.html +++ b/dist/order/order-product-report/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/order/order-report/index.html b/dist/order/order-report/index.html index 3cc4489..9f5c647 100644 --- a/dist/order/order-report/index.html +++ b/dist/order/order-report/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/order/order-report/order-report-detail/index.html b/dist/order/order-report/order-report-detail/index.html index 3cc4489..9f5c647 100644 --- a/dist/order/order-report/order-report-detail/index.html +++ b/dist/order/order-report/order-report-detail/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/order/order-revenue-statement/index.html b/dist/order/order-revenue-statement/index.html index 3cc4489..9f5c647 100644 --- a/dist/order/order-revenue-statement/index.html +++ b/dist/order/order-revenue-statement/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/order/order-summary-manage/index.html b/dist/order/order-summary-manage/index.html index 3cc4489..9f5c647 100644 --- a/dist/order/order-summary-manage/index.html +++ b/dist/order/order-summary-manage/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/order/orderDetail/index.html b/dist/order/orderDetail/index.html index 3cc4489..9f5c647 100644 --- a/dist/order/orderDetail/index.html +++ b/dist/order/orderDetail/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/order/ordersalescountbyday/index.html b/dist/order/ordersalescountbyday/index.html index 3cc4489..9f5c647 100644 --- a/dist/order/ordersalescountbyday/index.html +++ b/dist/order/ordersalescountbyday/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/order/refundOrder/index.html b/dist/order/refundOrder/index.html index 3cc4489..9f5c647 100644 --- a/dist/order/refundOrder/index.html +++ b/dist/order/refundOrder/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/order/sales-gross-profit/index.html b/dist/order/sales-gross-profit/index.html index 3cc4489..9f5c647 100644 --- a/dist/order/sales-gross-profit/index.html +++ b/dist/order/sales-gross-profit/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/order/salesReport/index.html b/dist/order/salesReport/index.html index 3cc4489..9f5c647 100644 --- a/dist/order/salesReport/index.html +++ b/dist/order/salesReport/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/p__Welcome.1f928a39.async.js b/dist/p__Welcome.1f928a39.async.js deleted file mode 100644 index a100077..0000000 --- a/dist/p__Welcome.1f928a39.async.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[8185,1322,9934,4407,6498,6090,274,6314],{8668:function(e){e.exports={pre:"pre___3fTUI"}},47828:function(){},41496:function(e,n,_){"use strict";_.r(n);var l=_(402),E=_(67294),s=_(78009),t=_(48971),a=_(8668),d=_.n(a),P=_(54658),o=_(85893),D=function(u){var O=u.children;return _jsx("pre",{className:styles.pre,children:_jsx("code",{children:_jsx(_Typography.Text,{copyable:!0,children:O})})})};n.default=function(){var r=(0,t.YB)();return(0,o.jsx)(s.ZP,{children:(0,o.jsx)(P.default,{})})}},402:function(e,n,_){"use strict";var l=_(38663),E=_.n(l),s=_(47828),t=_.n(s),a=_(47673),d=_(22385)},97435:function(e,n){"use strict";function _(l,E){for(var s=Object.assign({},l),t=0;t1?r.materialType=1:r.materialType=0;var s=[];e.forEach(function(o,l){s.push({uid:l,name:o.split("/applet/")[1]||"\u56FE\u7247.jpg",status:"done",url:o})}),T(s),p(r),B(!0)},ke=function(){var n=(0,P.Z)((0,c.Z)().mark(function a(e){var r;return(0,c.Z)().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,v.Z.DeleteMiniMaterial(e.id);case 2:r=o.sent,r.statusCode===200?(C.current.reload(),m.default.success("\u5220\u9664\u6210\u529F")):m.default.error(r.errors||"\u5220\u9664\u5931\u8D25");case 4:case"end":return o.stop()}},a)}));return function(e){return n.apply(this,arguments)}}(),Ye=function(){var n=(0,P.Z)((0,c.Z)().mark(function a(){var e;return(0,c.Z)().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,v.Z.MiniPageList({current:1,pageSize:999,storeId:f});case 2:e=s.sent,e.statusCode===200?Ne(e.data.items):m.default.error(e.errors||"\u83B7\u53D6\u9875\u9762\u5217\u8868\u5931\u8D25");case 4:case"end":return s.stop()}},a)}));return function(){return n.apply(this,arguments)}}(),we=function(){T([]),p({pageId:"",materialName:"",materialCode:"",materialPath:[],materialType:0})};return(0,A.useEffect)(function(){xe()},[]),(0,A.useEffect)(function(){!f||(Ye(),C.current.reload())},[f]),(0,t.jsxs)(le.ZP,{children:[(0,t.jsx)(ne.Z,{style:{marginBottom:"10px"},children:(0,t.jsxs)("div",{className:_().table_search_item,children:[(0,t.jsx)("div",{children:"\u5F53\u524D\u95E8\u5E97\uFF1A"}),(0,t.jsx)(R.Z,{style:{width:300},value:f,onChange:function(a){I(a)},children:ge.map(function(n){return(0,t.jsx)(Option,{value:n.id,children:n.store_Name},n.id)})})]})}),(0,t.jsx)(se.ZP,{search:!1,columns:Je,actionRef:C,cardBordered:!0,editable:{type:"multiple"},request:(0,P.Z)((0,c.Z)().mark(function n(){var a,e,r;return(0,c.Z)().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(f){o.next=2;break}return o.abrupt("return");case 2:return a={current:je,pageSize:Ke,storeId:f},o.next=5,v.Z.MinimaterialListByStore(a);case 5:return e=o.sent,r=[],e.data.forEach(function(l){r.push.apply(r,(0,te.Z)(l.list))}),o.abrupt("return",{data:r,success:!0,total:10});case 9:case"end":return o.stop()}},n)})),columnsState:{persistenceKey:"pro-table-singe-demos",persistenceType:"localStorage",onChange:function(a){}},rowKey:"id",options:{setting:{listsHeight:400}},pagination:{pageSize:5,onChange:function(a){return console.log(a)}},dateFormatter:"string",headerTitle:"\u56FE\u7247\u7BA1\u7406",toolBarRender:function(){return[(0,t.jsx)(N.Z,{icon:(0,t.jsx)(U.Z,{}),type:"primary",onClick:function(){B(!0),we()},children:"\u65B0\u5EFA"},"button")]}}),(0,t.jsx)(E.Z,{title:"\u7F16\u8F91\u7D20\u6750",visible:fe,footer:null,onOk:q,onCancel:function(){return B(!1)},bodyStyle:{padding:"32px 40px 1px 48px",height:"465px"},children:(0,t.jsxs)("div",{className:_().edit_image_card,children:[(0,t.jsxs)("div",{className:_().edit_image_item,children:[(0,t.jsx)("div",{className:_().edit_image_prev,children:"\u7D20\u6750\u540D\u79F0\uFF1A"}),(0,t.jsx)("div",{className:_().edit_image_suffix,children:(0,t.jsx)(L.Z,{placeholder:"\u8BF7\u8F93\u5165\u7D20\u6750\u540D\u79F0",value:u.materialName,onChange:function(a){var e=JSON.parse(JSON.stringify(u));e.materialName=a.target.value,p(e)}})})]}),(0,t.jsxs)("div",{className:_().edit_image_item,children:[(0,t.jsx)("div",{className:_().edit_image_prev,children:"\u7D20\u6750\u7F16\u7801\uFF1A"}),(0,t.jsx)("div",{className:_().edit_image_suffix,children:(0,t.jsx)(L.Z,{placeholder:"\u8BF7\u8F93\u5165\u7D20\u6750\u7F16\u7801",value:u.materialCode,onChange:function(a){var e=JSON.parse(JSON.stringify(u));e.materialCode=a.target.value,p(e)}})})]}),(0,t.jsxs)("div",{className:_().edit_image_item,children:[(0,t.jsx)("div",{className:_().edit_image_prev,children:"\u6240\u5C5E\u9875\u9762\uFF1A"}),(0,t.jsx)("div",{className:_().edit_image_suffix,children:(0,t.jsx)(R.Z,{placeholder:"\u8BF7\u9009\u62E9\u6240\u5728\u9875\u9762",style:{width:"100%"},value:u.pageId,onChange:function(a){var e=JSON.parse(JSON.stringify(u));e.pageId=a,p(e)},children:ye.map(function(n){return(0,t.jsx)(Option,{value:n.id,children:n.pageName},n.id)})})})]}),(0,t.jsxs)("div",{className:_().edit_image_item,children:[(0,t.jsx)("div",{className:_().edit_image_prev,children:"\u6570\u91CF\uFF1A"}),(0,t.jsx)("div",{className:_().edit_image_suffix,children:(0,t.jsxs)(R.Z,{placeholder:"\u8BF7\u9009\u62E9\u7D20\u6750\u6570\u91CF",style:{width:"100%"},value:u.materialType,onChange:function(a){var e=JSON.parse(JSON.stringify(u));e.materialType=a,p(e)},children:[(0,t.jsx)(Option,{value:0,children:"\u5355\u5F20"},0),(0,t.jsx)(Option,{value:1,children:"\u591A\u5F20"},1)]})})]}),(0,t.jsx)(ae.Z,(0,g.Z)((0,g.Z)({listType:"picture-card",fileList:O,onPreview:Ue,onChange:Fe,onRemove:function(a){var e=O.findIndex(function(s){return s.uid===a.uid});if(e>-1){var r=JSON.parse(JSON.stringify(u));r.materialPath.splice(e,1),p(r)}}},We),{},{children:function(){return u.materialType===0?O.length>=1?null:V:(0,t.jsx)(t.Fragment,{children:O.length>=9?null:V})}()})),(0,t.jsx)(N.Z,{htmlType:"button",style:{float:"right",left:10},onClick:function(){return B(!1)},children:"\u53D6\u6D88"}),(0,t.jsx)(N.Z,{type:"primary",htmlType:"submit",style:{float:"right"},onClick:function(){return q()},children:"\u4FDD\u5B58"})]})}),(0,t.jsx)(E.Z,{visible:Ce,title:De,footer:null,onCancel:Le,children:(0,t.jsx)("img",{alt:"example",style:{width:"100%"},src:Be})})]})};Q.default=_e},73999:function(y,Q,i){"use strict";var D=i(11849),E=i(48971);Q.Z={GetAllStore:function(){return(0,E.WY)("/kitchen/api/StoreHelper/GetAllStore",{method:"GET"})},GetCosRequestURL:function(d){return(0,E.WY)("/kitchen/api/systemconfig/GetCosRequestSignURL",{method:"POST",data:d})},AddMinimaterial:function(d){return(0,E.WY)("/kitchen/api/minimaterial/add",{method:"POST",data:d})},UpdateMiniMaterial:function(d){return(0,E.WY)("/kitchen/api/minimaterial/update",{method:"POST",data:d})},MinimaterialListByStore:function(d){return(0,E.WY)("/kitchen/api/minimaterial/store",{method:"POST",data:d})},DeleteMiniMaterial:function(d){return(0,E.WY)("/kitchen/api/minimaterial/del",{method:"POST",data:{id:d}})},MiniPageAdd:function(d){return(0,E.WY)("/kitchen/api/minipage/add",{method:"POST",data:(0,D.Z)({},d)})},MiniPageDelete:function(d){return(0,E.WY)("/kitchen/api/minipage/del",{method:"POST",data:{id:d}})},MiniPageUpdate:function(d){return(0,E.WY)("/kitchen/api/minipage/update",{method:"POST",data:(0,D.Z)({},d)})},MiniPageList:function(d){return(0,E.WY)("/kitchen/api/minipage/page",{method:"POST",data:(0,D.Z)({},d)})}}}}]); +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[7350],{47848:function(y){y.exports={table_search_item:"table_search_item___Js49t",edit_image_item:"edit_image_item___HRulD",edit_image_prev:"edit_image_prev___3DVAW"}},61969:function(y,Q,i){"use strict";i.r(Q);var D=i(71194),E=i(50146),g=i(11849),d=i(43185),ae=i(93009),$e=i(47673),L=i(4107),ea=i(57663),N=i(71577),te=i(86582),aa=i(58024),ne=i(91894),ta=i(43358),R=i(34041),na=i(34792),m=i(48086),ia=i(62350),ie=i(24565),ra=i(12968),re=i(6122),c=i(39428),P=i(3182),h=i(2824),U=i(49101),se=i(16894),le=i(78009),A=i(67294),v=i(73999),ue=i(47848),_=i.n(ue),oe=i(9669),de=i.n(oe),t=i(85893),Ae=function(C){return new Promise(function(j,S){var f=new FileReader;f.readAsDataURL(C),f.onload=function(){return j(f.result)},f.onerror=function(I){return S(I)}})},_e=function(){var C=(0,A.useRef)(),j=(0,A.useState)(""),S=(0,h.Z)(j,2),f=S[0],I=S[1],me=(0,A.useState)([]),F=(0,h.Z)(me,2),ge=F[0],ce=F[1],he=(0,A.useState)(!1),J=(0,h.Z)(he,2),fe=J[0],B=J[1],pe=(0,A.useState)({id:"",pageId:"",materialName:"",materialCode:"",materialPath:[],materialType:0}),x=(0,h.Z)(pe,2),u=x[0],p=x[1],ve=(0,A.useState)(!1),b=(0,h.Z)(ve,2),Ce=b[0],W=b[1],Pe=(0,A.useState)(""),k=(0,h.Z)(Pe,2),Be=k[0],Me=k[1],Qe=(0,A.useState)(""),Y=(0,h.Z)(Qe,2),De=Y[0],Se=Y[1],Ie=(0,A.useState)([]),w=(0,h.Z)(Ie,2),O=w[0],T=w[1],Oe=(0,A.useState)([]),z=(0,h.Z)(Oe,2),ye=z[0],Ne=z[1],Re=(0,A.useState)(1),G=(0,h.Z)(Re,2),je=G[0],sa=G[1],Te=(0,A.useState)(10),H=(0,h.Z)(Te,2),Ke=H[0],la=H[1],Ze=(0,A.useState)(0),X=(0,h.Z)(Ze,2),ua=X[0],oa=X[1],Le=function(){return W(!1)},Ue=function(){var n=(0,P.Z)((0,c.Z)().mark(function a(e){return(0,c.Z)().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:if(!(!e.url&&!e.preview)){s.next=4;break}return s.next=3,Ae(e.originFileObj);case 3:e.preview=s.sent;case 4:Me(e.url||e.preview),W(!0),Se(e.name||e.url.substring(e.url.lastIndexOf("/")+1));case 7:case"end":return s.stop()}},a)}));return function(e){return n.apply(this,arguments)}}(),Fe=function(a){var e=a.fileList;e.forEach(function(r){r.status="done"}),T(e)},Je=[{title:"\u7D20\u6750\u540D\u79F0",dataIndex:"materialName",ellipsis:!0},{title:"\u7D20\u6750\u7F16\u7801",dataIndex:"materialCode",ellipsis:!0},{title:"\u7D20\u6750\u56FE\u7247",dataIndex:"materialPath",render:function(a,e){return(0,t.jsx)(re.Z,{style:{width:"50%",height:"50%"},src:JSON.parse(e.materialPath)[0],fallback:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMIAAADDCAYAAADQvc6UAAABRWlDQ1BJQ0MgUHJvZmlsZQAAKJFjYGASSSwoyGFhYGDIzSspCnJ3UoiIjFJgf8LAwSDCIMogwMCcmFxc4BgQ4ANUwgCjUcG3awyMIPqyLsis7PPOq3QdDFcvjV3jOD1boQVTPQrgSkktTgbSf4A4LbmgqISBgTEFyFYuLykAsTuAbJEioKOA7DkgdjqEvQHEToKwj4DVhAQ5A9k3gGyB5IxEoBmML4BsnSQk8XQkNtReEOBxcfXxUQg1Mjc0dyHgXNJBSWpFCYh2zi+oLMpMzyhRcASGUqqCZ16yno6CkYGRAQMDKMwhqj/fAIcloxgHQqxAjIHBEugw5sUIsSQpBobtQPdLciLEVJYzMPBHMDBsayhILEqEO4DxG0txmrERhM29nYGBddr//5/DGRjYNRkY/l7////39v///y4Dmn+LgeHANwDrkl1AuO+pmgAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAwqADAAQAAAABAAAAwwAAAAD9b/HnAAAHlklEQVR4Ae3dP3PTWBSGcbGzM6GCKqlIBRV0dHRJFarQ0eUT8LH4BnRU0NHR0UEFVdIlFRV7TzRksomPY8uykTk/zewQfKw/9znv4yvJynLv4uLiV2dBoDiBf4qP3/ARuCRABEFAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghgg0Aj8i0JO4OzsrPv69Wv+hi2qPHr0qNvf39+iI97soRIh4f3z58/u7du3SXX7Xt7Z2enevHmzfQe+oSN2apSAPj09TSrb+XKI/f379+08+A0cNRE2ANkupk+ACNPvkSPcAAEibACyXUyfABGm3yNHuAECRNgAZLuYPgEirKlHu7u7XdyytGwHAd8jjNyng4OD7vnz51dbPT8/7z58+NB9+/bt6jU/TI+AGWHEnrx48eJ/EsSmHzx40L18+fLyzxF3ZVMjEyDCiEDjMYZZS5wiPXnyZFbJaxMhQIQRGzHvWR7XCyOCXsOmiDAi1HmPMMQjDpbpEiDCiL358eNHurW/5SnWdIBbXiDCiA38/Pnzrce2YyZ4//59F3ePLNMl4PbpiL2J0L979+7yDtHDhw8vtzzvdGnEXdvUigSIsCLAWavHp/+qM0BcXMd/q25n1vF57TYBp0a3mUzilePj4+7k5KSLb6gt6ydAhPUzXnoPR0dHl79WGTNCfBnn1uvSCJdegQhLI1vvCk+fPu2ePXt2tZOYEV6/fn31dz+shwAR1sP1cqvLntbEN9MxA9xcYjsxS1jWR4AIa2Ibzx0tc44fYX/16lV6NDFLXH+YL32jwiACRBiEbf5KcXoTIsQSpzXx4N28Ja4BQoK7rgXiydbHjx/P25TaQAJEGAguWy0+2Q8PD6/Ki4R8EVl+bzBOnZY95fq9rj9zAkTI2SxdidBHqG9+skdw43borCXO/ZcJdraPWdv22uIEiLA4q7nvvCug8WTqzQveOH26fodo7g6uFe/a17W3+nFBAkRYENRdb1vkkz1CH9cPsVy/jrhr27PqMYvENYNlHAIesRiBYwRy0V+8iXP8+/fvX11Mr7L7ECueb/r48eMqm7FuI2BGWDEG8cm+7G3NEOfmdcTQw4h9/55lhm7DekRYKQPZF2ArbXTAyu4kDYB2YxUzwg0gi/41ztHnfQG26HbGel/crVrm7tNY+/1btkOEAZ2M05r4FB7r9GbAIdxaZYrHdOsgJ/wCEQY0J74TmOKnbxxT9n3FgGGWWsVdowHtjt9Nnvf7yQM2aZU/TIAIAxrw6dOnAWtZZcoEnBpNuTuObWMEiLAx1HY0ZQJEmHJ3HNvGCBBhY6jtaMoEiJB0Z29vL6ls58vxPcO8/zfrdo5qvKO+d3Fx8Wu8zf1dW4p/cPzLly/dtv9Ts/EbcvGAHhHyfBIhZ6NSiIBTo0LNNtScABFyNiqFCBChULMNNSdAhJyNSiECRCjUbEPNCRAhZ6NSiAARCjXbUHMCRMjZqBQiQIRCzTbUnAARcjYqhQgQoVCzDTUnQIScjUohAkQo1GxDzQkQIWejUogAEQo121BzAkTI2agUIkCEQs021JwAEXI2KoUIEKFQsw01J0CEnI1KIQJEKNRsQ80JECFno1KIABEKNdtQcwJEyNmoFCJAhELNNtScABFyNiqFCBChULMNNSdAhJyNSiECRCjUbEPNCRAhZ6NSiAARCjXbUHMCRMjZqBQiQIRCzTbUnAARcjYqhQgQoVCzDTUnQIScjUohAkQo1GxDzQkQIWejUogAEQo121BzAkTI2agUIkCEQs021JwAEXI2KoUIEKFQsw01J0CEnI1KIQJEKNRsQ80JECFno1KIABEKNdtQcwJEyNmoFCJAhELNNtScABFyNiqFCBChULMNNSdAhJyNSiECRCjUbEPNCRAhZ6NSiAARCjXbUHMCRMjZqBQiQIRCzTbUnAARcjYqhQgQoVCzDTUnQIScjUohAkQo1GxDzQkQIWejUogAEQo121BzAkTI2agUIkCEQs021JwAEXI2KoUIEKFQsw01J0CEnI1KIQJEKNRsQ80JECFno1KIABEKNdtQcwJEyNmoFCJAhELNNtScABFyNiqFCBChULMNNSdAhJyNSiEC/wGgKKC4YMA4TAAAAABJRU5ErkJggg=="})}},{title:"\u64CD\u4F5C",valueType:"option",key:"option",render:function(a,e){return[(0,t.jsx)("a",{onClick:function(){return We(e)},children:"\u7F16\u8F91"}),(0,t.jsx)(ie.Z,{title:"\u786E\u5B9A\u8981\u5220\u9664\u6B64\u7D20\u6750\u5417\uFF1F",onConfirm:function(){return ke(e)},okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",children:(0,t.jsx)("a",{href:"#",children:"\u5220\u9664"})})]}}],V=(0,t.jsxs)("div",{children:[(0,t.jsx)(U.Z,{}),(0,t.jsx)("div",{style:{marginTop:8},children:"Upload"})]}),xe=function(){var n=(0,P.Z)((0,c.Z)().mark(function a(){var e;return(0,c.Z)().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,v.Z.GetAllStore();case 2:e=s.sent,e.isSuccess?(ce(e.data),I(e.data[0].id)):m.default.error(e.msg||"\u83B7\u53D6\u5E97\u94FA\u5217\u8868\u5931\u8D25");case 4:case"end":return s.stop()}},a)}));return function(){return n.apply(this,arguments)}}(),be={name:"file",showUploadList:!0,multiple:!1,accept:".png, .jpg, .jpeg, .gif",headers:{"Content-Type":"application/octet-stream"},customRequest:function(a){var e=a.action,r=a.file,s=a.headers,o=a.onError,l=a.onProgress,ze=a.withCredentials,Ge=r.name.lastIndexOf("."),He=r.name.substr(Ge+1),$=null;return v.Z.GetCosRequestURL({directory:"applet",fileExtension:He,method:"PUT"}).then(function(K){e=K.allUrl;var ee=new FileReader;ee.readAsArrayBuffer(r),ee.onload=function(Xe){$=Xe.target.result,de().put(e,$,{withCredentials:ze,headers:s,onUploadProgress:function(M){var Ve=M.total,qe=M.loaded;l({percent:Math.round(qe/Ve*100).toFixed(2)},r)}}).then(function(Z){if(Z.status==200||Z.statusText=="OK"){var M=JSON.parse(JSON.stringify(u));M.materialPath.push(K.seeUrl),p(M),m.default.success("\u4E0A\u4F20\u6210\u529F\uFF01")}}).catch(o)}}),{abort:function(){console.log("upload progress is aborted.")}}}},q=function(){var n=(0,P.Z)((0,c.Z)().mark(function a(){var e,r,s;return(0,c.Z)().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:if(u.pageId){l.next=5;break}return m.default.info("\u8BF7\u9009\u62E9\u6240\u5C5E\u9875\u9762"),l.abrupt("return");case 5:if(u.materialName){l.next=10;break}return m.default.info("\u8BF7\u586B\u5199\u7D20\u6750\u540D\u79F0"),l.abrupt("return");case 10:if(u.materialCode){l.next=15;break}return m.default.info("\u8BF7\u586B\u5199\u7D20\u6750\u7F16\u7801"),l.abrupt("return");case 15:if(u.materialPath.length!==0){l.next=18;break}return m.default.info("\u8BF7\u9009\u62E9\u81F3\u5C11\u4E0A\u4F20\u4E00\u5F20\u7D20\u6750\u56FE\u7247"),l.abrupt("return");case 18:if(e={pageId:u.pageId,materialName:u.materialName,materialCode:u.materialCode,materialPath:JSON.stringify(u.materialPath),materialType:u.materialType},!u.id){l.next=27;break}return e.id=u.id,l.next=23,v.Z.UpdateMiniMaterial(e);case 23:r=l.sent,r.statusCode===200?(m.default.success("\u66F4\u65B0\u6210\u529F"),B(!1),C.current.reload()):m.default.error("\u66F4\u65B0\u5931\u8D25"),l.next=31;break;case 27:return l.next=29,v.Z.AddMinimaterial(e);case 29:s=l.sent,s.statusCode===200?(m.default.success("\u6DFB\u52A0\u6210\u529F"),B(!1),C.current.reload()):m.default.error("\u6DFB\u52A0\u5931\u8D25");case 31:case"end":return l.stop()}},a)}));return function(){return n.apply(this,arguments)}}(),We=function(a){var e=JSON.parse(a.materialPath),r={id:a.id,pageId:a.pageId,materialName:a.materialName,materialCode:a.materialCode,materialPath:e};e.length>1?r.materialType=1:r.materialType=0;var s=[];e.forEach(function(o,l){s.push({uid:l,name:o.split("/applet/")[1]||"\u56FE\u7247.jpg",status:"done",url:o})}),T(s),p(r),B(!0)},ke=function(){var n=(0,P.Z)((0,c.Z)().mark(function a(e){var r;return(0,c.Z)().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,v.Z.DeleteMiniMaterial(e.id);case 2:r=o.sent,r.statusCode===200?(C.current.reload(),m.default.success("\u5220\u9664\u6210\u529F")):m.default.error(r.errors||"\u5220\u9664\u5931\u8D25");case 4:case"end":return o.stop()}},a)}));return function(e){return n.apply(this,arguments)}}(),Ye=function(){var n=(0,P.Z)((0,c.Z)().mark(function a(){var e;return(0,c.Z)().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,v.Z.MiniPageList({current:1,pageSize:999,storeId:f});case 2:e=s.sent,e.statusCode===200?Ne(e.data.items):m.default.error(e.errors||"\u83B7\u53D6\u9875\u9762\u5217\u8868\u5931\u8D25");case 4:case"end":return s.stop()}},a)}));return function(){return n.apply(this,arguments)}}(),we=function(){T([]),p({pageId:"",materialName:"",materialCode:"",materialPath:[],materialType:0})};return(0,A.useEffect)(function(){xe()},[]),(0,A.useEffect)(function(){!f||(Ye(),C.current.reload())},[f]),(0,t.jsxs)(le.ZP,{children:[(0,t.jsx)(ne.Z,{style:{marginBottom:"10px"},children:(0,t.jsxs)("div",{className:_().table_search_item,children:[(0,t.jsx)("div",{children:"\u5F53\u524D\u95E8\u5E97\uFF1A"}),(0,t.jsx)(R.Z,{style:{width:300},value:f,onChange:function(a){I(a)},children:ge.map(function(n){return(0,t.jsx)(Option,{value:n.id,children:n.store_Name},n.id)})})]})}),(0,t.jsx)(se.ZP,{search:!1,columns:Je,actionRef:C,cardBordered:!0,editable:{type:"multiple"},request:(0,P.Z)((0,c.Z)().mark(function n(){var a,e,r;return(0,c.Z)().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(f){o.next=2;break}return o.abrupt("return");case 2:return a={current:je,pageSize:Ke,storeId:f},o.next=5,v.Z.MinimaterialListByStore(a);case 5:return e=o.sent,r=[],e.data.forEach(function(l){r.push.apply(r,(0,te.Z)(l.list))}),o.abrupt("return",{data:r,success:!0,total:10});case 9:case"end":return o.stop()}},n)})),columnsState:{persistenceKey:"pro-table-singe-demos",persistenceType:"localStorage",onChange:function(a){}},rowKey:"id",options:{setting:{listsHeight:400}},pagination:{pageSize:5,onChange:function(a){return console.log(a)}},dateFormatter:"string",headerTitle:"\u56FE\u7247\u7BA1\u7406",toolBarRender:function(){return[(0,t.jsx)(N.Z,{icon:(0,t.jsx)(U.Z,{}),type:"primary",onClick:function(){B(!0),we()},children:"\u65B0\u5EFA"},"button")]}}),(0,t.jsx)(E.Z,{title:"\u7F16\u8F91\u7D20\u6750",visible:fe,footer:null,onOk:q,onCancel:function(){return B(!1)},bodyStyle:{padding:"32px 40px 1px 48px",height:"465px"},children:(0,t.jsxs)("div",{className:_().edit_image_card,children:[(0,t.jsxs)("div",{className:_().edit_image_item,children:[(0,t.jsx)("div",{className:_().edit_image_prev,children:"\u7D20\u6750\u540D\u79F0\uFF1A"}),(0,t.jsx)("div",{className:_().edit_image_suffix,children:(0,t.jsx)(L.Z,{placeholder:"\u8BF7\u8F93\u5165\u7D20\u6750\u540D\u79F0",value:u.materialName,onChange:function(a){var e=JSON.parse(JSON.stringify(u));e.materialName=a.target.value,p(e)}})})]}),(0,t.jsxs)("div",{className:_().edit_image_item,children:[(0,t.jsx)("div",{className:_().edit_image_prev,children:"\u7D20\u6750\u7F16\u7801\uFF1A"}),(0,t.jsx)("div",{className:_().edit_image_suffix,children:(0,t.jsx)(L.Z,{placeholder:"\u8BF7\u8F93\u5165\u7D20\u6750\u7F16\u7801",value:u.materialCode,onChange:function(a){var e=JSON.parse(JSON.stringify(u));e.materialCode=a.target.value,p(e)}})})]}),(0,t.jsxs)("div",{className:_().edit_image_item,children:[(0,t.jsx)("div",{className:_().edit_image_prev,children:"\u6240\u5C5E\u9875\u9762\uFF1A"}),(0,t.jsx)("div",{className:_().edit_image_suffix,children:(0,t.jsx)(R.Z,{placeholder:"\u8BF7\u9009\u62E9\u6240\u5728\u9875\u9762",style:{width:"100%"},value:u.pageId,onChange:function(a){var e=JSON.parse(JSON.stringify(u));e.pageId=a,p(e)},children:ye.map(function(n){return(0,t.jsx)(Option,{value:n.id,children:n.pageName},n.id)})})})]}),(0,t.jsxs)("div",{className:_().edit_image_item,children:[(0,t.jsx)("div",{className:_().edit_image_prev,children:"\u6570\u91CF\uFF1A"}),(0,t.jsx)("div",{className:_().edit_image_suffix,children:(0,t.jsxs)(R.Z,{placeholder:"\u8BF7\u9009\u62E9\u7D20\u6750\u6570\u91CF",style:{width:"100%"},value:u.materialType,onChange:function(a){var e=JSON.parse(JSON.stringify(u));e.materialType=a,p(e)},children:[(0,t.jsx)(Option,{value:0,children:"\u5355\u5F20"},0),(0,t.jsx)(Option,{value:1,children:"\u591A\u5F20"},1)]})})]}),(0,t.jsx)(ae.Z,(0,g.Z)((0,g.Z)({listType:"picture-card",fileList:O,onPreview:Ue,onChange:Fe,onRemove:function(a){var e=O.findIndex(function(s){return s.uid===a.uid});if(e>-1){var r=JSON.parse(JSON.stringify(u));r.materialPath.splice(e,1),p(r)}}},be),{},{children:function(){return u.materialType===0?O.length>=1?null:V:(0,t.jsx)(t.Fragment,{children:O.length>=9?null:V})}()})),(0,t.jsx)(N.Z,{htmlType:"button",style:{float:"right",left:10},onClick:function(){return B(!1)},children:"\u53D6\u6D88"}),(0,t.jsx)(N.Z,{type:"primary",htmlType:"submit",style:{float:"right"},onClick:function(){return q()},children:"\u4FDD\u5B58"})]})}),(0,t.jsx)(E.Z,{visible:Ce,title:De,footer:null,onCancel:Le,children:(0,t.jsx)("img",{alt:"example",style:{width:"100%"},src:Be})})]})};Q.default=_e},73999:function(y,Q,i){"use strict";var D=i(11849),E=i(48971);Q.Z={GetAllStore:function(){return(0,E.WY)("/kitchen/api/StoreHelper/GetAllStore",{method:"GET"})},GetCosRequestURL:function(d){return(0,E.WY)("/kitchen/api/systemconfig/GetCosRequestSignURL",{method:"POST",data:d})},AddMinimaterial:function(d){return(0,E.WY)("/kitchen/api/minimaterial/add",{method:"POST",data:d})},UpdateMiniMaterial:function(d){return(0,E.WY)("/kitchen/api/minimaterial/update",{method:"POST",data:d})},MinimaterialListByStore:function(d){return(0,E.WY)("/kitchen/api/minimaterial/store",{method:"POST",data:d})},DeleteMiniMaterial:function(d){return(0,E.WY)("/kitchen/api/minimaterial/del",{method:"POST",data:{id:d}})},MiniPageAdd:function(d){return(0,E.WY)("/kitchen/api/minipage/add",{method:"POST",data:(0,D.Z)({},d)})},MiniPageDelete:function(d){return(0,E.WY)("/kitchen/api/minipage/del",{method:"POST",data:{id:d}})},MiniPageUpdate:function(d){return(0,E.WY)("/kitchen/api/minipage/update",{method:"POST",data:(0,D.Z)({},d)})},MiniPageList:function(d){return(0,E.WY)("/kitchen/api/minipage/page",{method:"POST",data:(0,D.Z)({},d)})}}}}]); diff --git a/dist/p__applet__pageManage.1c38d47f.async.js b/dist/p__applet__pageManage.0fcc2a9b.async.js similarity index 75% rename from dist/p__applet__pageManage.1c38d47f.async.js rename to dist/p__applet__pageManage.0fcc2a9b.async.js index 68152d6..dda01b0 100644 --- a/dist/p__applet__pageManage.1c38d47f.async.js +++ b/dist/p__applet__pageManage.0fcc2a9b.async.js @@ -1 +1 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[9076],{93352:function(C){C.exports={table_search_item:"table_search_item___1QRWt",edit_image_item:"edit_image_item___3Iyih",edit_image_prev:"edit_image_prev___2n7ta"}},18319:function(C,D,e){"use strict";e.r(D);var O=e(71194),u=e(50146),l=e(47673),n=e(4107),ue=e(57663),Z=e(71577),_e=e(58024),y=e(91894),le=e(43358),B=e(34041),m=e(39428),oe=e(34792),c=e(48086),g=e(3182),de=e(62350),K=e(24565),me=e(9715),E=e(55843),f=e(2824),x=e(16894),F=e(78009),b=e(49101),o=e(67294),M=e(73999),Y=e(93352),G=e.n(Y),t=e(85893),k=function(){var p=(0,o.useRef)(),$=(0,o.useState)(!1),S=(0,f.Z)($,2),N=S[0],P=S[1],z=E.Z.useForm(),V=(0,f.Z)(z,1),A=V[0],H=(0,o.useState)([]),T=(0,f.Z)(H,2),W=T[0],Q=T[1],J=(0,o.useState)(1),R=(0,f.Z)(J,2),X=R[0],Ee=R[1],w=(0,o.useState)(10),I=(0,f.Z)(w,2),q=I[0],fe=I[1],ee=(0,o.useState)(0),L=(0,f.Z)(ee,2),Pe=L[0],he=L[1],te=(0,o.useState)(""),j=(0,f.Z)(te,2),v=j[0],U=j[1],ae=[{title:"\u9875\u9762\u540D\u79F0",dataIndex:"pageName",ellipsis:!0},{title:"\u9875\u9762\u8DEF\u5F84",dataIndex:"pageRoute",ellipsis:!0},{title:"\u6240\u5C5E\u95E8\u5E97",dataIndex:"storeId",ellipsis:!0},{title:"\u64CD\u4F5C",valueType:"option",key:"option",render:function(i,r){return[(0,t.jsx)("a",{onClick:function(){A.setFieldsValue(r),P(!0)},children:"\u7F16\u8F91"}),(0,t.jsx)(K.Z,{title:"\u786E\u5B9A\u8981\u5220\u9664\u6B64\u9875\u9762\u5417\uFF1F",onConfirm:function(){return se(r)},okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",children:(0,t.jsx)("a",{href:"#",children:"\u5220\u9664"})})]}}],ne=function(){P(!0),A.resetFields()},re=function(){var a=(0,g.Z)((0,m.Z)().mark(function i(r){var _,s;return(0,m.Z)().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:if(!r.id){d.next=7;break}return d.next=3,M.Z.MiniPageUpdate(r);case 3:_=d.sent,_.statusCode===200?(c.default.success("\u4FEE\u6539\u6210\u529F"),P(!1),p.current.reload()):c.default.error(_.errors),d.next=11;break;case 7:return d.next=9,M.Z.MiniPageAdd(r);case 9:s=d.sent,s.statusCode===200?(c.default.success("\u6DFB\u52A0\u6210\u529F"),P(!1),p.current.reload()):c.default.error(s.errors);case 11:case"end":return d.stop()}},i)}));return function(r){return a.apply(this,arguments)}}(),se=function(){var a=(0,g.Z)((0,m.Z)().mark(function i(r){var _;return(0,m.Z)().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.next=2,M.Z.MiniPageDelete(r.id);case 2:_=h.sent,_.statusCode===200?(c.default.success("\u5220\u9664\u6210\u529F"),p.current.reload()):c.default.error(_.errors);case 4:case"end":return h.stop()}},i)}));return function(r){return a.apply(this,arguments)}}(),ie=function(){var a=(0,g.Z)((0,m.Z)().mark(function i(){var r;return(0,m.Z)().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,M.Z.GetAllStore();case 2:r=s.sent,r.isSuccess?(Q(r.data),U(r.data[0].id)):c.default.error(r.msg||"\u83B7\u53D6\u5E97\u94FA\u5217\u8868\u5931\u8D25");case 4:case"end":return s.stop()}},i)}));return function(){return a.apply(this,arguments)}}();return(0,o.useEffect)(function(){ie()},[]),(0,o.useEffect)(function(){p.current.reload()},[v]),(0,t.jsxs)(F.ZP,{children:[(0,t.jsx)(y.Z,{style:{marginBottom:"10px"},children:(0,t.jsxs)("div",{className:G().table_search_item,children:[(0,t.jsx)("div",{children:"\u5F53\u524D\u95E8\u5E97\uFF1A"}),(0,t.jsx)(B.Z,{style:{width:300},value:v,onChange:function(i){U(i)},children:W.map(function(a){return(0,t.jsx)(Option,{value:a.id,children:a.store_Name},a.id)})})]})}),(0,t.jsx)(x.ZP,{columns:ae,actionRef:p,cardBordered:!0,editable:{type:"multiple"},request:(0,g.Z)((0,m.Z)().mark(function a(){var i,r;return(0,m.Z)().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:if(v){s.next=2;break}return s.abrupt("return");case 2:return i={current:X,pageSize:q,storeId:v},s.next=5,M.Z.MiniPageList(i);case 5:return r=s.sent,s.abrupt("return",{data:r.data.items,success:!0,total:r.data.totalCount});case 7:case"end":return s.stop()}},a)})),rowKey:"id",search:!1,pagination:{pageSize:5,onChange:function(i){return console.log(i)}},dateFormatter:"string",headerTitle:"\u9875\u9762\u7BA1\u7406",toolBarRender:function(){return[(0,t.jsx)(Z.Z,{icon:(0,t.jsx)(b.Z,{}),type:"primary",onClick:ne,children:"\u65B0\u5EFA"},"button")]}}),(0,t.jsx)(u.Z,{title:"\u7F16\u8F91\u9875\u9762",footer:!1,visible:N,onOk:function(){return P(!1)},onCancel:function(){return P(!1)},bodyStyle:{padding:"32px 40px 1px 48px"},children:(0,t.jsxs)(E.Z,{name:"basic",form:A,onFinish:re,children:[(0,t.jsx)(E.Z.Item,{name:"id",hidden:!0,children:(0,t.jsx)(n.Z,{})}),(0,t.jsx)(E.Z.Item,{label:"\u9875\u9762\u540D\u79F0",name:"pageName",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9875\u9762\u540D\u79F0\uFF01"}],children:(0,t.jsx)(n.Z,{})}),(0,t.jsx)(E.Z.Item,{label:"\u9875\u9762\u8DEF\u5F84",name:"pageRoute",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9875\u9762\u8DEF\u5F84\uFF01"}],children:(0,t.jsx)(n.Z,{})}),(0,t.jsx)(E.Z.Item,{label:"\u6240\u5C5E\u95E8\u5E97",name:"storeId",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u95E8\u5E97\uFF01"}],children:(0,t.jsx)(B.Z,{allowClear:!0,placeholder:"\u8BF7\u9009\u62E9\u95E8\u5E97",style:{width:"100%"},children:W.map(function(a){return(0,t.jsx)(Option,{value:a.id,children:a.store_Name},a.id)})})}),(0,t.jsxs)(E.Z.Item,{children:[(0,t.jsx)(Z.Z,{htmlType:"button",style:{float:"right",left:10},onClick:function(){return P(!1)},children:"\u53D6\u6D88"}),(0,t.jsx)(Z.Z,{type:"primary",htmlType:"submit",style:{float:"right"},children:"\u4FDD\u5B58"})]})]})})]})};D.default=k},73999:function(C,D,e){"use strict";var O=e(11849),u=e(48971);D.Z={GetAllStore:function(){return(0,u.WY)("/kitchen/api/StoreHelper/GetAllStore",{method:"GET"})},GetCosRequestURL:function(n){return(0,u.WY)("/kitchen/api/systemconfig/GetCosRequestSignURL",{method:"POST",data:n})},AddMinimaterial:function(n){return(0,u.WY)("/kitchen/api/minimaterial/add",{method:"POST",data:n})},UpdateMiniMaterial:function(n){return(0,u.WY)("/kitchen/api/minimaterial/update",{method:"POST",data:n})},MinimaterialListByStore:function(n){return(0,u.WY)("/kitchen/api/minimaterial/store",{method:"POST",data:n})},DeleteMiniMaterial:function(n){return(0,u.WY)("/kitchen/api/minimaterial/del",{method:"POST",data:{id:n}})},MiniPageAdd:function(n){return(0,u.WY)("/kitchen/api/minipage/add",{method:"POST",data:(0,O.Z)({},n)})},MiniPageDelete:function(n){return(0,u.WY)("/kitchen/api/minipage/del",{method:"POST",data:{id:n}})},MiniPageUpdate:function(n){return(0,u.WY)("/kitchen/api/minipage/update",{method:"POST",data:(0,O.Z)({},n)})},MiniPageList:function(n){return(0,u.WY)("/kitchen/api/minipage/page",{method:"POST",data:(0,O.Z)({},n)})}}}}]); +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[9076],{93352:function(C){C.exports={table_search_item:"table_search_item___1QRWt",edit_image_item:"edit_image_item___3Iyih",edit_image_prev:"edit_image_prev___2n7ta"}},18319:function(C,D,e){"use strict";e.r(D);var O=e(71194),u=e(50146),l=e(47673),n=e(4107),ue=e(57663),A=e(71577),_e=e(58024),y=e(91894),le=e(43358),Z=e(34041),m=e(39428),oe=e(34792),c=e(48086),g=e(3182),de=e(62350),K=e(24565),me=e(9715),E=e(55843),P=e(2824),x=e(16894),F=e(78009),b=e(49101),o=e(67294),M=e(73999),Y=e(93352),G=e.n(Y),t=e(85893),$=function(){var p=(0,o.useRef)(),N=(0,o.useState)(!1),S=(0,P.Z)(N,2),z=S[0],f=S[1],k=E.Z.useForm(),V=(0,P.Z)(k,1),B=V[0],H=(0,o.useState)([]),T=(0,P.Z)(H,2),R=T[0],Q=T[1],J=(0,o.useState)(1),W=(0,P.Z)(J,2),X=W[0],Ee=W[1],w=(0,o.useState)(10),I=(0,P.Z)(w,2),q=I[0],Pe=I[1],ee=(0,o.useState)(0),L=(0,P.Z)(ee,2),fe=L[0],he=L[1],te=(0,o.useState)(""),j=(0,P.Z)(te,2),v=j[0],U=j[1],ae=[{title:"\u9875\u9762\u540D\u79F0",dataIndex:"pageName",ellipsis:!0},{title:"\u9875\u9762\u8DEF\u5F84",dataIndex:"pageRoute",ellipsis:!0},{title:"\u6240\u5C5E\u95E8\u5E97",dataIndex:"storeId",ellipsis:!0},{title:"\u64CD\u4F5C",valueType:"option",key:"option",render:function(i,r){return[(0,t.jsx)("a",{onClick:function(){B.setFieldsValue(r),f(!0)},children:"\u7F16\u8F91"}),(0,t.jsx)(K.Z,{title:"\u786E\u5B9A\u8981\u5220\u9664\u6B64\u9875\u9762\u5417\uFF1F",onConfirm:function(){return se(r)},okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",children:(0,t.jsx)("a",{href:"#",children:"\u5220\u9664"})})]}}],ne=function(){f(!0),B.resetFields()},re=function(){var a=(0,g.Z)((0,m.Z)().mark(function i(r){var _,s;return(0,m.Z)().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:if(!r.id){d.next=7;break}return d.next=3,M.Z.MiniPageUpdate(r);case 3:_=d.sent,_.statusCode===200?(c.default.success("\u4FEE\u6539\u6210\u529F"),f(!1),p.current.reload()):c.default.error(_.errors),d.next=11;break;case 7:return d.next=9,M.Z.MiniPageAdd(r);case 9:s=d.sent,s.statusCode===200?(c.default.success("\u6DFB\u52A0\u6210\u529F"),f(!1),p.current.reload()):c.default.error(s.errors);case 11:case"end":return d.stop()}},i)}));return function(r){return a.apply(this,arguments)}}(),se=function(){var a=(0,g.Z)((0,m.Z)().mark(function i(r){var _;return(0,m.Z)().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.next=2,M.Z.MiniPageDelete(r.id);case 2:_=h.sent,_.statusCode===200?(c.default.success("\u5220\u9664\u6210\u529F"),p.current.reload()):c.default.error(_.errors);case 4:case"end":return h.stop()}},i)}));return function(r){return a.apply(this,arguments)}}(),ie=function(){var a=(0,g.Z)((0,m.Z)().mark(function i(){var r;return(0,m.Z)().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,M.Z.GetAllStore();case 2:r=s.sent,r.isSuccess?(Q(r.data),U(r.data[0].id)):c.default.error(r.msg||"\u83B7\u53D6\u5E97\u94FA\u5217\u8868\u5931\u8D25");case 4:case"end":return s.stop()}},i)}));return function(){return a.apply(this,arguments)}}();return(0,o.useEffect)(function(){ie()},[]),(0,o.useEffect)(function(){p.current.reload()},[v]),(0,t.jsxs)(F.ZP,{children:[(0,t.jsx)(y.Z,{style:{marginBottom:"10px"},children:(0,t.jsxs)("div",{className:G().table_search_item,children:[(0,t.jsx)("div",{children:"\u5F53\u524D\u95E8\u5E97\uFF1A"}),(0,t.jsx)(Z.Z,{style:{width:300},value:v,onChange:function(i){U(i)},children:R.map(function(a){return(0,t.jsx)(Option,{value:a.id,children:a.store_Name},a.id)})})]})}),(0,t.jsx)(x.ZP,{columns:ae,actionRef:p,cardBordered:!0,editable:{type:"multiple"},request:(0,g.Z)((0,m.Z)().mark(function a(){var i,r;return(0,m.Z)().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:if(v){s.next=2;break}return s.abrupt("return");case 2:return i={current:X,pageSize:q,storeId:v},s.next=5,M.Z.MiniPageList(i);case 5:return r=s.sent,s.abrupt("return",{data:r.data.items,success:!0,total:r.data.totalCount});case 7:case"end":return s.stop()}},a)})),rowKey:"id",search:!1,pagination:{pageSize:5,onChange:function(i){return console.log(i)}},dateFormatter:"string",headerTitle:"\u9875\u9762\u7BA1\u7406",toolBarRender:function(){return[(0,t.jsx)(A.Z,{icon:(0,t.jsx)(b.Z,{}),type:"primary",onClick:ne,children:"\u65B0\u5EFA"},"button")]}}),(0,t.jsx)(u.Z,{title:"\u7F16\u8F91\u9875\u9762",footer:!1,visible:z,onOk:function(){return f(!1)},onCancel:function(){return f(!1)},bodyStyle:{padding:"32px 40px 1px 48px"},children:(0,t.jsxs)(E.Z,{name:"basic",form:B,onFinish:re,children:[(0,t.jsx)(E.Z.Item,{name:"id",hidden:!0,children:(0,t.jsx)(n.Z,{})}),(0,t.jsx)(E.Z.Item,{label:"\u9875\u9762\u540D\u79F0",name:"pageName",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9875\u9762\u540D\u79F0\uFF01"}],children:(0,t.jsx)(n.Z,{})}),(0,t.jsx)(E.Z.Item,{label:"\u9875\u9762\u8DEF\u5F84",name:"pageRoute",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9875\u9762\u8DEF\u5F84\uFF01"}],children:(0,t.jsx)(n.Z,{})}),(0,t.jsx)(E.Z.Item,{label:"\u6240\u5C5E\u95E8\u5E97",name:"storeId",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u95E8\u5E97\uFF01"}],children:(0,t.jsx)(Z.Z,{allowClear:!0,placeholder:"\u8BF7\u9009\u62E9\u95E8\u5E97",style:{width:"100%"},children:R.map(function(a){return(0,t.jsx)(Option,{value:a.id,children:a.store_Name},a.id)})})}),(0,t.jsxs)(E.Z.Item,{children:[(0,t.jsx)(A.Z,{htmlType:"button",style:{float:"right",left:10},onClick:function(){return f(!1)},children:"\u53D6\u6D88"}),(0,t.jsx)(A.Z,{type:"primary",htmlType:"submit",style:{float:"right"},children:"\u4FDD\u5B58"})]})]})})]})};D.default=$},73999:function(C,D,e){"use strict";var O=e(11849),u=e(48971);D.Z={GetAllStore:function(){return(0,u.WY)("/kitchen/api/StoreHelper/GetAllStore",{method:"GET"})},GetCosRequestURL:function(n){return(0,u.WY)("/kitchen/api/systemconfig/GetCosRequestSignURL",{method:"POST",data:n})},AddMinimaterial:function(n){return(0,u.WY)("/kitchen/api/minimaterial/add",{method:"POST",data:n})},UpdateMiniMaterial:function(n){return(0,u.WY)("/kitchen/api/minimaterial/update",{method:"POST",data:n})},MinimaterialListByStore:function(n){return(0,u.WY)("/kitchen/api/minimaterial/store",{method:"POST",data:n})},DeleteMiniMaterial:function(n){return(0,u.WY)("/kitchen/api/minimaterial/del",{method:"POST",data:{id:n}})},MiniPageAdd:function(n){return(0,u.WY)("/kitchen/api/minipage/add",{method:"POST",data:(0,O.Z)({},n)})},MiniPageDelete:function(n){return(0,u.WY)("/kitchen/api/minipage/del",{method:"POST",data:{id:n}})},MiniPageUpdate:function(n){return(0,u.WY)("/kitchen/api/minipage/update",{method:"POST",data:(0,O.Z)({},n)})},MiniPageList:function(n){return(0,u.WY)("/kitchen/api/minipage/page",{method:"POST",data:(0,O.Z)({},n)})}}}}]); diff --git a/dist/p__bom__manage.64817970.async.js b/dist/p__bom__manage.64817970.async.js deleted file mode 100644 index 196fb0b..0000000 --- a/dist/p__bom__manage.64817970.async.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[1633,1322,9934,4407,6498,6090,274,6314],{86811:function(jt,Ue,o){"use strict";o.r(Ue),o.d(Ue,{default:function(){return It}});var d=o(39428),W=o(3182),kt=o(57663),_=o(71577),Ft=o(49111),qe=o(19650),Gt=o(71153),_e=o(60331),Dt=o(34792),y=o(48086),Z=o(2824),Me=o(49101),l=o(67294),et=o(78009),Pe=o(16894),Nt=o(71194),ve=o(50146),Tt=o(77883),We=o(85986),Vt=o(77576),ze=o(12028),Et=o(9715),O=o(55843),Ot=o(47673),le=o(4107),wt=o(43358),ee=o(34041),t=o(85893),tt=function(e){var R,z=ee.Z.Option,w=ee.Z.OptGroup;return(0,t.jsx)(ve.Z,{title:e.values.id?"\u7F16\u8F91":"\u65B0\u5EFA",width:640,visible:e.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){e.onCancel()},destroyOnClose:!0,children:(0,t.jsxs)(O.Z,{layout:"vertical",preserve:!1,initialValues:e.values,onFinish:e.onFinish,children:[(0,t.jsx)(O.Z.Item,{name:"id",hidden:!0,children:(0,t.jsx)(le.Z,{})}),(0,t.jsx)(O.Z.Item,{name:"code",label:"\u914D\u65B9\u7F16\u7801",children:(0,t.jsx)(le.Z,{placeholder:"\u914D\u65B9\u7F16\u7801"})}),(0,t.jsx)(O.Z.Item,{name:"name",label:"\u914D\u65B9\u540D\u79F0",children:(0,t.jsx)(le.Z,{placeholder:"\u914D\u65B9\u540D\u79F0"})}),(0,t.jsx)(O.Z.Item,{name:"bomTypeList",label:"\u914D\u65B9\u5206\u7C7B",children:(0,t.jsx)(ee.Z,{mode:"multiple",allowClear:!0,children:e==null||(R=e.bomtype)===null||R===void 0?void 0:R.map(function(v){if(v.status==0)return(0,t.jsx)(ee.Z.Option,{index:v.id,value:v.id,children:v.name},v.id)})})}),(0,t.jsx)(O.Z.Item,{name:"isMain",label:"\u914D\u65B9\u7C7B\u578B",children:(0,t.jsx)(ze.Z,{checkedChildren:"\u4E3B\u6599",unCheckedChildren:"\u8F85\u6599"})}),(0,t.jsx)(O.Z.Item,{name:"sort",label:"\u6392\u5E8F",children:(0,t.jsx)(We.Z,{placeholder:"\u6392\u5E8F",min:1})}),(0,t.jsx)(O.Z.Item,{children:(0,t.jsx)(_.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})})},nt=tt,at=o(73171),ot=function(e){var R=function(j){var D=JSON.parse(JSON.stringify(e.values));D.push(D[j]),e.onUpdateBom(D)},z=function(j){var D=JSON.parse(JSON.stringify(e.values));D.splice(j,1),e.onUpdateBom(D)},w=function(){e.onFinish(e.values)};return(0,t.jsxs)(ve.Z,{width:540,visible:e.visible,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){e.onCancel()},title:"\u914D\u65B9\u7528\u91CF",children:[(0,t.jsx)("div",{className:"formual-form-card",children:e.values.map(function(v,j){return(0,t.jsxs)("div",{className:"formual-form-list",children:[(0,t.jsxs)("div",{className:"form-list-copy",children:[(0,t.jsx)(_.Z,{onClick:function(){return R(j)},children:"\u590D\u5236\u4E00\u4EFD\u914D\u65B9\u7528\u91CF"}),(0,t.jsx)(_.Z,{style:{marginLeft:"10px"},danger:!0,onClick:function(){return z(j)},children:"\u5220\u9664\u914D\u65B9\u7528\u91CF"})]}),(0,t.jsxs)("div",{className:"form-list-item form-list-total",children:[(0,t.jsx)("span",{className:"form-input-label",children:"\u603B\u91CF"}),(0,t.jsx)(le.Z,{placeholder:"\u8BF7\u8F93\u5165\u603B\u91CF",value:v.bomWeight,onChange:function(Q){var te=JSON.parse(JSON.stringify(e.values));te[j].bomWeight=Q.target.value,e.onUpdateBom(te)}})]}),v.bomMaterials.map(function(D,Q){return(0,t.jsx)("div",{className:"form-list-detail",children:(0,t.jsxs)("div",{className:"form-detail-card",children:[(0,t.jsxs)("div",{className:"form-list-item formmual-name",children:[(0,t.jsx)("span",{className:"form-input-label",children:"\u540D\u79F0"}),(0,t.jsx)(le.Z,{placeholder:"\u7269\u6599\u540D\u79F0",value:D.name,onChange:function(L){var K=JSON.parse(JSON.stringify(e.values));K[j].bomMaterials[Q].name=L.target.value,e.onUpdateBom(K)}})]}),(0,t.jsxs)("div",{className:"form-list-item formmual-company",children:[(0,t.jsx)("span",{className:"form-input-label",children:"\u6570\u91CF"}),(0,t.jsx)(le.Z,{placeholder:"\u7269\u6599\u6570\u91CF",value:D.num,onChange:function(L){var K=JSON.parse(JSON.stringify(e.values));K[j].bomMaterials[Q].num=L.target.value,e.onUpdateBom(K)}})]}),(0,t.jsx)(_.Z,{onClick:function(){return e.onDeleteMate(D,j)},type:"link",danger:!0,icon:(0,t.jsx)(at.Z,{}),style:{marginLeft:"10px"}})]})},D.id)})]},j)})}),(0,t.jsx)(_.Z,{type:"primary",onClick:w,style:{float:"right"},children:"\u4FDD\u5B58"})]})},rt=ot,S=o(48971),P={add:function(e){return(0,S.WY)("/kitchen/api/bom/add",{method:"Post",data:e})},update:function(e){return(0,S.WY)("/kitchen/api/bom/update",{method:"Post",data:e})},delete:function(e){return(0,S.WY)("/kitchen/api/bom/delete",{method:"Post",data:e})},getpage:function(e){return(0,S.WY)("/kitchen/api/bom/getpage",{method:"Post",data:e})},postStockGoods:function(){return(0,S.WY)("/kitchen/api/frachisee-stock-adjust/product-list",{method:"Get"})},addentry:function(e){return(0,S.WY)("/kitchen/api/bom/addentry",{method:"Post",data:e})},deleteentry:function(e){return(0,S.WY)("/kitchen/api/bom/deleteentry",{method:"Post",data:e})},Enable:function(e){return(0,S.WY)("/kitchen/api/GoodsBom/enable",{method:"Post",data:e})},getentrypage:function(e){return(0,S.WY)("/kitchen/api/bom/getentrypage",{method:"Post",data:e})},getbomtypepage:function(e){return(0,S.WY)("/kitchen/api/bom/getbomtypepage",{method:"Post",data:e})},addBomConsumptionInfo:function(e){return(0,S.WY)("/kitchen/api/bom/addBomConsumptionInfo",{method:"Post",data:e})},getomConsumptionInfo:function(e){return(0,S.WY)("/kitchen/api/bom/getomConsumptionInfo?bomId=".concat(e),{method:"get",data:e})},GetBomTechnologypage:function(e){return(0,S.WY)("/kitchen/api/goodstechnology/getbomtechnologypage",{method:"POST",data:e})},GetGoodstechnologypage:function(e){return(0,S.WY)("/kitchen/api/goodstechnology/getGoodstechnologypage",{method:"Post",data:e})},addBomtechnology:function(e){return(0,S.WY)("/kitchen/api/goodstechnology/addBomtechnology",{method:"Post",data:e})},updatebomtechnology:function(e){return(0,S.WY)("/kitchen/api/goodstechnology/updatebomtechnology",{method:"Post",data:e})},deletebomtechnology:function(e){return(0,S.WY)("/kitchen/api/goodstechnology/deletebomtechnology",{method:"Post",data:e})},gettechnologyactionList:function(e){return(0,S.WY)("/kitchen/api/goodstechnology/gettechnologyactionList?GoodstechnologyId="+e,{method:"Get"})},GetGoodsTechnology:function(e){return(0,S.WY)("/kitchen/api/goodstechnology/GetGoodsTechnology",{method:"Post",data:e})},getbomtechnologyactionList:function(e){return(0,S.WY)("/kitchen/api/goodstechnology/getbomtechnologyactionList",{method:"Post",data:e})},addbomtechnologyaction:function(e){return(0,S.WY)("/kitchen/api/goodstechnology/addbomtechnologyaction",{method:"Post",data:e})},getbomtechnologyaction:function(e){return(0,S.WY)("/kitchen/api/goodstechnology/getbomtechnologyaction",{method:"Post",data:e})},getbomtechnologyactionbybom:function(e){return(0,S.WY)("/kitchen/api/goodstechnology/getbomtechnologyactionbybom?bomId="+e,{method:"Get"})},getbomtechnologyactionbyid:function(e){return(0,S.WY)("/kitchen/api/goodstechnology/getbomtechnologyactionbyid?id="+e,{method:"Get"})},deletebomtechnologyaction:function(e){return(0,S.WY)("/kitchen/api/goodstechnology/deletebomtechnologyaction?ids="+e,{method:"Get"})},updatesortbomtechnologyaction:function(e){return(0,S.WY)("/kitchen/api/goodstechnology/updatesortbomtechnologyaction",{method:"Post",data:e})}},ut=function(e){var R=ee.Z.Option,z=ee.Z.OptGroup;return(0,t.jsx)(ve.Z,{title:e.values.id?"\u7F16\u8F91":"\u65B0\u5EFA",width:640,visible:e.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){e.onCancel()},destroyOnClose:!0,children:(0,t.jsxs)(O.Z,{layout:"vertical",preserve:!1,initialValues:e.values,onFinish:e.onFinish,children:[(0,t.jsx)(O.Z.Item,{name:"id",hidden:!0,children:(0,t.jsx)(le.Z,{})}),(0,t.jsx)(O.Z.Item,{name:"itemId",label:"\u539F\u6599\u540D\u79F0",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u539F\u6599\u540D\u79F0"}],children:(0,t.jsx)(ee.Z,{disabled:!!e.values.id,placeholder:"\u8BF7\u9009\u62E9\u539F\u6599\u540D\u79F0",children:e.stockGoodsData.map(function(w,v){return(0,t.jsx)(ee.Z.Option,{index:v,value:w.id,children:w.name},w.id)})})}),(0,t.jsx)(O.Z.Item,{name:"price",label:"\u4EF7\u683C",defaultValue:e.values.price,children:(0,t.jsx)(We.Z,{placeholder:"\u4EF7\u683C",min:0})}),(0,t.jsx)(O.Z.Item,{children:(0,t.jsx)(_.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})})},it=ut,ke={goodsBoms:function(e){return(0,S.WY)("/kitchen/api/GoodsBom/GetBomReplac",{method:"Post",data:e})},updateGoodsBom:function(e){return(0,S.WY)("/kitchen/api/GoodsBom/EditReplac",{method:"PUT",data:e})},addGoodsBom:function(e){return(0,S.WY)("/kitchen/api/GoodsBom/AddReplac",{method:"POST",data:e})},goodList:function(e){return(0,S.WY)("/kitchen/api/goods/goodss",{method:"Post",data:e})},postStockGoods:function(){return(0,S.WY)("/kitchen/api/frachisee-stock-adjust/product-list",{method:"Get"})}},st=function(e){var R=(0,l.useState)(!1),z=(0,Z.Z)(R,2),w=z[0],v=z[1],j=(0,l.useRef)(),D=(0,l.useState)(),Q=(0,Z.Z)(D,2),te=Q[0],L=Q[1],K=(0,l.useState)([]),ce=(0,Z.Z)(K,2),ae=ce[0],H=ce[1],ge=(0,l.useState)([]),ue=(0,Z.Z)(ge,2),be=ue[0],Be=ue[1],pe=(0,l.useState)([]),ie=(0,Z.Z)(pe,2),se=ie[0],de=ie[1];(0,l.useEffect)(function(){function f(){ke.postStockGoods().then(function(m){var g=m.data;g.forEach(function(G){G.text=G.name,G.stockGoodsId=G.id}),de(g)})}f()},[]);function N(f){try{return ke.addGoodsBom({itemId:f.itemId,price:f.price,goodsbomId:e.values.id,replaceId:e.values.batchingId}).then(function(m){m.data?(y.default.success("\u6DFB\u52A0\u6210\u529F"),j.current.reload()):y.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01")}),!0}catch(m){return y.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),!1}}function C(f){console.log("\u4F20\u53C2\u6570\u636E",f);try{return ke.updateGoodsBom({id:f.id,status:f.status,itemId:f.itemId,price:f.price,goodsbomId:e.values.id,replaceId:e.values.stockGoodsCode}).then(function(m){m.data?y.default.success("\u914D\u7F6E\u6210\u529F"):y.default.error("\u914D\u7F6E\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),j.current.reload()}),!0}catch(m){return y.default.error("\u914D\u7F6E\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),!1}}function k(){if(!ae)return!0;try{return ke.removeGoodsBom(ae.map(function(f){return f.id})).then(function(f){f.data?y.default.success("\u5220\u9664\u6210\u529F\uFF0C\u5373\u5C06\u5237\u65B0"):y.default.error("\u5220\u9664\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5"),j.current.reload()}),!0}catch(f){return y.default.error("\u5220\u9664\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5"),!1}}var T=[{title:"\u4E3B\u952E",dataIndex:"id",hideInTable:!0,hideInSearch:!0,tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",render:function(m,g){return(0,t.jsx)("a",{onClick:function(){L(g),setShowDetail(!0)},children:m})}},{title:"\u539F\u6599\u540D\u79F0",dataIndex:"name",hideInForm:!0,hideInSearch:!0},{title:"\u5546\u54C1\u4EF7\u683C",dataIndex:"price",valueType:"money"},{title:"\u72B6\u6001",dataIndex:"status",hideInForm:!0,valueEnum:{0:{text:"\u6B63\u5E38",status:"Processing"},1:{text:"\u505C\u7528",status:"Error"},2:{text:"\u5220\u9664",status:"Error"}}},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(m,g){return[g.status===0&&(0,t.jsx)("a",{onClick:function(){g.status="1",C(g)},children:"\u505C\u7528"},"link"),(g.status===1||g.status===2)&&(0,t.jsx)("a",{onClick:function(){g.status="0",C(g)},children:"\u542F\u7528"},"warn"),(0,t.jsx)("a",{type:"primary",onClick:function(){L(g),v(!0)},children:"\u66F4\u65B0"},"primary")]}}];return(0,t.jsxs)(ve.Z,{width:1200,bodyStyle:{padding:"32px 40px 48px"},destroyOnClose:!0,title:"\u914D\u65B9\u7269\u6599\u66FF\u6362",visible:e.createModalVisible,footer:!1,onCancel:function(){return e.onCancel()},maskClosable:!1,children:[(0,t.jsx)(Pe.ZP,{headerTitle:"\u66FF\u6362\u7269\u6599\u5217\u8868",actionRef:j,rowKey:"id",pagination:{defaultPageSize:20},search:!1,toolBarRender:function(){return[(0,t.jsxs)(_.Z,{type:"primary",onClick:function(){return v(!0)},children:[(0,t.jsx)(Me.Z,{})," \u65B0\u589E\u914D\u65B9\u66FF\u6362\u7269\u6599"]},"create")]},request:function(){var f=(0,W.Z)((0,d.Z)().mark(function m(g){var G,he;return(0,d.Z)().wrap(function(X){for(;;)switch(X.prev=X.next){case 0:return G=[],he=0,e.values.id!=null&&(g.goodsbomId=e.values.id,g.replaceId=e.values.stockGoodsCode),X.next=5,ke.goodsBoms(g).then(function(Ie){G=Ie.data.data,he=Ie.data.total});case 5:return X.abrupt("return",{data:G,success:!0,total:he});case 6:case"end":return X.stop()}},m)}));return function(m){return f.apply(this,arguments)}}(),columns:T}),(0,t.jsx)(it,{stockGoodsData:se,onFinish:function(){var f=(0,W.Z)((0,d.Z)().mark(function m(g){var G;return(0,d.Z)().wrap(function(J){for(;;)switch(J.prev=J.next){case 0:if(G=!1,!g.id){J.next=7;break}return J.next=4,C(g);case 4:G=J.sent,J.next=10;break;case 7:return J.next=9,N(g);case 9:G=J.sent;case 10:G&&(v(!1),L(void 0),j.current&&j.current.reload());case 11:case"end":return J.stop()}},m)}));return function(m){return f.apply(this,arguments)}}(),onCancel:function(){v(!1),L(void 0)},createModalVisible:w,values:te||{}})]})},lt=st,ct=function(e){var R=ee.Z.Option,z=ee.Z.OptGroup;return(0,t.jsx)(ve.Z,{title:"\u6DFB\u52A0\u914D\u65B9\u539F\u6599",width:640,visible:e.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){e.onCancel()},destroyOnClose:!0,children:(0,t.jsxs)(O.Z,{layout:"vertical",preserve:!1,initialValues:e.values,onFinish:e.onFinish,children:[(0,t.jsx)(O.Z.Item,{name:"BatchingId",label:"\u539F\u6599\u540D\u79F0",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u539F\u6599\u540D\u79F0"}],children:(0,t.jsx)(ee.Z,{placeholder:"\u8BF7\u9009\u62E9\u539F\u6599\u540D\u79F0",showSearch:!0,optionFilterProp:"children",filterOption:function(v,j){return j.children.toLowerCase().indexOf(v.toLowerCase())>=0},children:e.stockGoodsData.map(function(w,v){return(0,t.jsx)(R,{index:v,value:w.id,children:w.name},w.id)})})}),(0,t.jsx)(O.Z.Item,{name:"bomQty",label:"\u914D\u65B9\u7528\u91CF",children:(0,t.jsx)(We.Z,{placeholder:"\u914D\u65B9\u7528\u91CF",min:0})}),(0,t.jsx)(O.Z.Item,{name:"isReplace",label:"\u662F\u5426\u53EF\u4EE5\u66FF\u6362",children:(0,t.jsx)(ze.Z,{checkedChildren:"\u5426",unCheckedChildren:"\u662F"})}),(0,t.jsx)(O.Z.Item,{children:(0,t.jsx)(_.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})})},dt=ct,ht=function(e){var R=(0,l.useRef)(),z=(0,l.useState)(!1),w=(0,Z.Z)(z,2),v=w[0],j=w[1],D=(0,l.useState)(!1),Q=(0,Z.Z)(D,2),te=Q[0],L=Q[1],K=(0,l.useState)(),ce=(0,Z.Z)(K,2),ae=ce[0],H=ce[1],ge=(0,l.useState)([]),ue=(0,Z.Z)(ge,2),be=ue[0],Be=ue[1];(0,l.useEffect)(function(){function N(){P.postStockGoods().then(function(C){var k=C.data;k.forEach(function(T){T.text=T.name,T.stockGoodsId=T.value}),Be(k)})}N()},[]);function pe(N){try{return P.deleteentry({id:N.id}).then(function(C){C.data?y.default.success("\u914D\u7F6E\u6210\u529F"):y.default.error("\u914D\u7F6E\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),R.current.reload()}),!0}catch(C){return y.default.error("\u914D\u7F6E\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),!1}}function ie(N,C){try{return P.Enable({id:N.id,IsReplace:C}).then(function(k){k.data?y.default.success("\u64CD\u4F5C\u6210\u529F"):y.default.error("\u64CD\u4F5C\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),R.current.reload()}),!0}catch(k){return y.default.error("\u64CD\u4F5C\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),!1}}function se(N){try{return P.addentry(JSON.stringify(N)).then(function(C){C.data?(y.default.success("\u6DFB\u52A0\u6210\u529F"),R.current.reload()):y.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01")}),!0}catch(C){return y.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),!1}}var de=[{title:"\u4E3B\u952E",dataIndex:"id",hideInTable:!0,hideInSearch:!0,tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",render:function(C,k){return(0,t.jsx)("a",{onClick:function(){H(k),setShowDetail(!0)},children:C})}},{title:"\u539F\u6599\u540D\u79F0",dataIndex:"batchingName",hideInForm:!0,hideInSearch:!0},{title:"\u914D\u65B9\u7528\u91CF",dataIndex:"bomQty",hideInSearch:!0,width:120},{title:"\u662F\u5426\u53EF\u4EE5\u66FF\u6362",dataIndex:"isReplace",hideInForm:!0,valueEnum:{false:{text:"\u4E0D\u53EF\u66FF\u6362",status:"Processing"},true:{text:"\u53EF\u66FF\u6362",status:"Success"}}},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(C,k){return[k.isReplace&&(0,t.jsx)("a",{onClick:function(){j(!0),H(k)},children:"\u66FF\u6362\u7269\u6599"},"link1"),k.isReplace&&(0,t.jsx)("a",{onClick:function(){ie(k,0)},children:"\u7981\u7528\u66FF\u6362"},"link2"),!k.isReplace&&(0,t.jsx)("a",{onClick:function(){ie(k,1)},children:"\u542F\u7528\u66FF\u6362"},"link3"),(0,t.jsx)("a",{onClick:function(){pe(k)},children:"\u5220\u9664"},"link4")]}}];return(0,t.jsxs)(ve.Z,{title:"\u67E5\u770B"+e.values.name+"\u914D\u65B9\u539F\u6599",width:640,visible:e.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){e.onCancel()},destroyOnClose:!0,children:[(0,t.jsx)(Pe.ZP,{headerTitle:"\u5546\u54C1\u914D\u65B9\u4FE1\u606F\u67E5\u8BE2",actionRef:R,rowKey:"id",pagination:{defaultPageSize:20},search:!1,toolBarRender:function(){return[(0,t.jsxs)(_.Z,{type:"primary",onClick:function(){return L(!0)},children:[(0,t.jsx)(Me.Z,{})," \u6DFB\u52A0\u914D\u65B9\u539F\u6599"]},"create")]},request:function(){var N=(0,W.Z)((0,d.Z)().mark(function C(k){var T,f;return(0,d.Z)().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return T=[],f=0,e.values.id!=null&&(k.bomId=e.values.id),g.next=5,P.getentrypage(k).then(function(G){T=G.data.data,f=G.data.total});case 5:return g.abrupt("return",{data:T,success:!0,total:f});case 6:case"end":return g.stop()}},C)}));return function(C){return N.apply(this,arguments)}}(),columns:de}),(0,t.jsx)(lt,{onCancel:function(){j(!1),H(void 0)},createModalVisible:v,values:ae||{}}),(0,t.jsx)(dt,{onFinish:function(){var N=(0,W.Z)((0,d.Z)().mark(function C(k){var T;return(0,d.Z)().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return k.bomId=e.values.id,T=!1,m.next=4,se(k);case 4:T=m.sent,T&&L(!1),R.current.reload();case 7:case"end":return m.stop()}},C)}));return function(C){return N.apply(this,arguments)}}(),onCancel:function(){L(!1)},createModalVisible:te,stockGoodsData:be})]})},ft=ht,Rt=o(13062),mt=o(71230),At=o(89032),Ke=o(15746),Mt=o(58024),Qe=o(91894),Pt=o(32157),gt=o(7573),Wt=o(62350),pt=o(24565),yt=o(86582),Yt=o(63185),vt=o(9676),bt=o(32059),$t=o(13254),Zt=o(42762),St=o(64107),Jt=o(96486),Lt="message",Ut=function(){return _jsx(_Empty,{})},Ct=function(e){var R=(0,l.useState)(!1),z=(0,Z.Z)(R,2),w=z[0],v=z[1],j=(0,l.useState)([]),D=(0,Z.Z)(j,2),Q=D[0],te=D[1],L=(0,l.useState)([]),K=(0,Z.Z)(L,2),ce=K[0],ae=K[1],H=(0,l.useState)("\u6B65\u9AA4"),ge=(0,Z.Z)(H,2),ue=ge[0],be=ge[1],Be=(0,l.useState)([]),pe=(0,Z.Z)(Be,2),ie=pe[0],se=pe[1],de=(0,l.useState)([]),N=(0,Z.Z)(de,2),C=N[0],k=N[1],T=(0,l.useState)([]),f=(0,Z.Z)(T,2),m=f[0],g=f[1],G=(0,l.useState)(!1),he=(0,Z.Z)(G,2),J=he[0],X=he[1],Ie=(0,l.useState)(""),Ne=(0,Z.Z)(Ie,2),Te=Ne[0],He=Ne[1],Ye=(0,l.useState)(),Ve=(0,Z.Z)(Ye,2),Ee=Ve[0],Fe=Ve[1],Oe=(0,l.useState)([]),we=(0,Z.Z)(Oe,2),Re=we[0],ye=we[1],Ze=l.useRef(null),$e=(0,l.useRef)();(0,l.useEffect)(function(){function F(){return s.apply(this,arguments)}function s(){return s=(0,W.Z)((0,d.Z)().mark(function a(){var r;return(0,d.Z)().wrap(function(I){for(;;)switch(I.prev=I.next){case 0:return be("\u6B65\u9AA4"),r={},e.values.id!=null&&(r.bomId=e.values.id,r.current=1,r.pageSize=100),I.next=5,P.getentrypage(r).then(function(h){var p=h.data.data;te(p)});case 5:case"end":return I.stop()}},a)})),s.apply(this,arguments)}function n(){return i.apply(this,arguments)}function i(){return i=(0,W.Z)((0,d.Z)().mark(function a(){var r;return(0,d.Z)().wrap(function(I){for(;;)switch(I.prev=I.next){case 0:return r={},r.current=1,r.pageSize=100,I.next=5,P.GetGoodstechnologypage(r).then(function(h){var p=h.data.data;ae(p)});case 5:case"end":return I.stop()}},a)})),i.apply(this,arguments)}e.bomTechnologyModalVisible&&(F(),n(),ye([]),Ge())},[e.bomTechnologyModalVisible]);function Ge(){return De.apply(this,arguments)}function De(){return De=(0,W.Z)((0,d.Z)().mark(function F(){return(0,d.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,P.GetGoodsTechnology().then(function(i){var a=i.data,r=[];a.length>0&&(a.forEach(function(u){r.push({label:u.name,value:u.id,isBatch:u.isBatch})}),se(r))});case 2:return n.next=4,P.getbomtechnologyactionbybom(e.values.id).then(function(i){var a=i.data,r=[];a&&(a.forEach(function(u,I){r.push({title:u.stepName,key:u.id,value:u.id,actionjson:u.actionJson,chnologyId:u.chnologyId,isBatch:u.isBatch,sort:u.sort,index:I})}),k(r))});case 4:case"end":return n.stop()}},F)})),De.apply(this,arguments)}var Je=function(){var F=(0,W.Z)((0,d.Z)().mark(function s(n){var i,a;return(0,d.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:if(ye([]),g([]),(i=Ze.current)===null||i===void 0||i.setFieldsValue({stepName:n.title,id:n.key}),X(n.isBatch),Fe(n.chnologyId),be("\u3010"+n.title+"\u3011\u6B65\u9AA4"),a=JSON.parse(n.actionjson),n.isBatch){u.next=11;break}x(n.chnologyId,a),u.next=13;break;case 11:return u.next=13,B(Q,a);case 13:case"end":return u.stop()}},s)}));return function(n){return F.apply(this,arguments)}}(),Le=function(s,n){var i;ye([]),g([]),Fe(s);var a=n.label;He(a),(i=Ze.current)===null||i===void 0||i.setFieldsValue({stepName:a,id:""}),be("\u3010"+a+"\u3011\u6B65\u9AA4");var r=[];n.isBatch?(X(!1),x(s,r)):(X(!0),B(Q,r))},V=function(s,n,i,a,r){var u=i.find(function(h){return h.batchingId==n}),I={TechnologyactionId:"",ActionName:u.batchingName,ActionValue:u.bomQty,BatchingId:u.batchingId};r.target.checked?a.push(I):a.splice(a.findIndex(function(h){return h.BatchingId===I.BatchingId}),1),g(a),B(i,a)},x=function(){var F=(0,W.Z)((0,d.Z)().mark(function s(n,i){var a;return(0,d.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return a=[],u.next=3,P.gettechnologyactionList(n).then(function(I){for(var h=I.data,p=0;p0&&(Y.BatchingId=m==null?void 0:m.find(function(q){return q.BatchingId==u[p].split(":")[0]}).BatchingId)):Y.TechnologyactionId=u[p].split(":")[0],Y.ActionValue=n[u[p]],Y.ActionName=u[p].split(":")[1],i.push(Y));if(a.ActionJson=JSON.stringify(i),console.log(a),!(a.ActionJson.length<=2)){M.next=14;break}return y.default.error("\u8BF7\u9009\u62E9\u5DE5\u827A\u5E76\u914D\u7F6E\u76F8\u5173\u52A8\u4F5C\u6B65\u9AA4"),M.abrupt("return",!1);case 14:return M.next=16,P.addbomtechnologyaction(a).then(function(q){q.succeeded?y.default.success("\u4FDD\u5B58\u6210\u529F"):y.default.error("\u4FDD\u5B58\u5931\u8D25\uFF0C\u5931\u8D25\u539F\u56E0\uFF1A"+q.errors)});case 16:Ge();case 17:case"end":return M.stop()}},s)}));return function(n){return F.apply(this,arguments)}}(),E=function(){var F=(0,W.Z)((0,d.Z)().mark(function s(n){return(0,d.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return console.log(n),a.next=3,P.deletebomtechnologyaction(n).then(function(r){r.succeeded?(y.default.success("\u5220\u9664\u6210\u529F"),Ge()):y.default.error("\u5220\u9664\u6210\u529F\uFF0C\u5931\u8D25\u539F\u56E0\uFF1A"+r.errors)});case 3:case"end":return a.stop()}},s)}));return function(n){return F.apply(this,arguments)}}(),oe=function(){var F=(0,W.Z)((0,d.Z)().mark(function s(n){var i,a,r,u,I,h,p,Y,fe,M,q,$,re,ne;return(0,d.Z)().wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:for(i=n.node.key,a=n.dragNode.key,r=n.node.pos.split("-"),u=n.dropPosition-Number(r[r.length-1]),I=function me(U,je,Xe){for(var xe=0;xe=0},children:e.stockGoodsData.map(function(w,v){return(0,t.jsx)(R,{index:v,value:w.id,children:w.name},w.id)})})}),(0,t.jsx)(O.Z.Item,{name:"bomQty",label:"\u914D\u65B9\u7528\u91CF",children:(0,t.jsx)(We.Z,{placeholder:"\u914D\u65B9\u7528\u91CF",min:0})}),(0,t.jsx)(O.Z.Item,{name:"isReplace",label:"\u662F\u5426\u53EF\u4EE5\u66FF\u6362",children:(0,t.jsx)(ze.Z,{checkedChildren:"\u5426",unCheckedChildren:"\u662F"})}),(0,t.jsx)(O.Z.Item,{children:(0,t.jsx)(_.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})})},dt=ct,ht=function(e){var R=(0,l.useRef)(),z=(0,l.useState)(!1),w=(0,Z.Z)(z,2),v=w[0],j=w[1],D=(0,l.useState)(!1),Q=(0,Z.Z)(D,2),te=Q[0],L=Q[1],K=(0,l.useState)(),ce=(0,Z.Z)(K,2),ae=ce[0],H=ce[1],ge=(0,l.useState)([]),ue=(0,Z.Z)(ge,2),be=ue[0],Be=ue[1];(0,l.useEffect)(function(){function N(){P.postStockGoods().then(function(C){var k=C.data;k.forEach(function(T){T.text=T.name,T.stockGoodsId=T.value}),Be(k)})}N()},[]);function pe(N){try{return P.deleteentry({id:N.id}).then(function(C){C.data?y.default.success("\u914D\u7F6E\u6210\u529F"):y.default.error("\u914D\u7F6E\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),R.current.reload()}),!0}catch(C){return y.default.error("\u914D\u7F6E\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),!1}}function ie(N,C){try{return P.Enable({id:N.id,IsReplace:C}).then(function(k){k.data?y.default.success("\u64CD\u4F5C\u6210\u529F"):y.default.error("\u64CD\u4F5C\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),R.current.reload()}),!0}catch(k){return y.default.error("\u64CD\u4F5C\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),!1}}function se(N){try{return P.addentry(JSON.stringify(N)).then(function(C){C.data?(y.default.success("\u6DFB\u52A0\u6210\u529F"),R.current.reload()):y.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01")}),!0}catch(C){return y.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),!1}}var de=[{title:"\u4E3B\u952E",dataIndex:"id",hideInTable:!0,hideInSearch:!0,tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",render:function(C,k){return(0,t.jsx)("a",{onClick:function(){H(k),setShowDetail(!0)},children:C})}},{title:"\u539F\u6599\u540D\u79F0",dataIndex:"batchingName",hideInForm:!0,hideInSearch:!0},{title:"\u914D\u65B9\u7528\u91CF",dataIndex:"bomQty",hideInSearch:!0,width:120},{title:"\u662F\u5426\u53EF\u4EE5\u66FF\u6362",dataIndex:"isReplace",hideInForm:!0,valueEnum:{false:{text:"\u4E0D\u53EF\u66FF\u6362",status:"Processing"},true:{text:"\u53EF\u66FF\u6362",status:"Success"}}},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(C,k){return[k.isReplace&&(0,t.jsx)("a",{onClick:function(){j(!0),H(k)},children:"\u66FF\u6362\u7269\u6599"},"link1"),k.isReplace&&(0,t.jsx)("a",{onClick:function(){ie(k,0)},children:"\u7981\u7528\u66FF\u6362"},"link2"),!k.isReplace&&(0,t.jsx)("a",{onClick:function(){ie(k,1)},children:"\u542F\u7528\u66FF\u6362"},"link3"),(0,t.jsx)("a",{onClick:function(){pe(k)},children:"\u5220\u9664"},"link4")]}}];return(0,t.jsxs)(ve.Z,{title:"\u67E5\u770B"+e.values.name+"\u914D\u65B9\u539F\u6599",width:640,visible:e.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){e.onCancel()},destroyOnClose:!0,children:[(0,t.jsx)(Pe.ZP,{headerTitle:"\u5546\u54C1\u914D\u65B9\u4FE1\u606F\u67E5\u8BE2",actionRef:R,rowKey:"id",pagination:{defaultPageSize:20},search:!1,toolBarRender:function(){return[(0,t.jsxs)(_.Z,{type:"primary",onClick:function(){return L(!0)},children:[(0,t.jsx)(Me.Z,{})," \u6DFB\u52A0\u914D\u65B9\u539F\u6599"]},"create")]},request:function(){var N=(0,W.Z)((0,d.Z)().mark(function C(k){var T,f;return(0,d.Z)().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return T=[],f=0,e.values.id!=null&&(k.bomId=e.values.id),g.next=5,P.getentrypage(k).then(function(G){T=G.data.data,f=G.data.total});case 5:return g.abrupt("return",{data:T,success:!0,total:f});case 6:case"end":return g.stop()}},C)}));return function(C){return N.apply(this,arguments)}}(),columns:de}),(0,t.jsx)(lt,{onCancel:function(){j(!1),H(void 0)},createModalVisible:v,values:ae||{}}),(0,t.jsx)(dt,{onFinish:function(){var N=(0,W.Z)((0,d.Z)().mark(function C(k){var T;return(0,d.Z)().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return k.bomId=e.values.id,T=!1,m.next=4,se(k);case 4:T=m.sent,T&&L(!1),R.current.reload();case 7:case"end":return m.stop()}},C)}));return function(C){return N.apply(this,arguments)}}(),onCancel:function(){L(!1)},createModalVisible:te,stockGoodsData:be})]})},ft=ht,Rt=o(13062),mt=o(71230),At=o(89032),Ke=o(15746),Mt=o(58024),Qe=o(91894),Pt=o(32157),gt=o(7573),Wt=o(62350),pt=o(24565),yt=o(86582),Yt=o(63185),vt=o(9676),bt=o(32059),$t=o(13254),Zt=o(42762),St=o(64107),Jt=o(96486),Lt="message",Ut=function(){return _jsx(_Empty,{})},Ct=function(e){var R=(0,l.useState)(!1),z=(0,Z.Z)(R,2),w=z[0],v=z[1],j=(0,l.useState)([]),D=(0,Z.Z)(j,2),Q=D[0],te=D[1],L=(0,l.useState)([]),K=(0,Z.Z)(L,2),ce=K[0],ae=K[1],H=(0,l.useState)("\u6B65\u9AA4"),ge=(0,Z.Z)(H,2),ue=ge[0],be=ge[1],Be=(0,l.useState)([]),pe=(0,Z.Z)(Be,2),ie=pe[0],se=pe[1],de=(0,l.useState)([]),N=(0,Z.Z)(de,2),C=N[0],k=N[1],T=(0,l.useState)([]),f=(0,Z.Z)(T,2),m=f[0],g=f[1],G=(0,l.useState)(!1),he=(0,Z.Z)(G,2),J=he[0],X=he[1],Ie=(0,l.useState)(""),Ne=(0,Z.Z)(Ie,2),Te=Ne[0],He=Ne[1],Ye=(0,l.useState)(),Ve=(0,Z.Z)(Ye,2),Ee=Ve[0],Fe=Ve[1],Oe=(0,l.useState)([]),we=(0,Z.Z)(Oe,2),Re=we[0],ye=we[1],Ze=l.useRef(null),$e=(0,l.useRef)();(0,l.useEffect)(function(){function F(){return s.apply(this,arguments)}function s(){return s=(0,W.Z)((0,d.Z)().mark(function a(){var r;return(0,d.Z)().wrap(function(I){for(;;)switch(I.prev=I.next){case 0:return be("\u6B65\u9AA4"),r={},e.values.id!=null&&(r.bomId=e.values.id,r.current=1,r.pageSize=100),I.next=5,P.getentrypage(r).then(function(h){var p=h.data.data;te(p)});case 5:case"end":return I.stop()}},a)})),s.apply(this,arguments)}function n(){return i.apply(this,arguments)}function i(){return i=(0,W.Z)((0,d.Z)().mark(function a(){var r;return(0,d.Z)().wrap(function(I){for(;;)switch(I.prev=I.next){case 0:return r={},r.current=1,r.pageSize=100,I.next=5,P.GetGoodstechnologypage(r).then(function(h){var p=h.data.data;ae(p)});case 5:case"end":return I.stop()}},a)})),i.apply(this,arguments)}e.bomTechnologyModalVisible&&(F(),n(),ye([]),Ge())},[e.bomTechnologyModalVisible]);function Ge(){return De.apply(this,arguments)}function De(){return De=(0,W.Z)((0,d.Z)().mark(function F(){return(0,d.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,P.GetGoodsTechnology().then(function(i){var a=i.data,r=[];a.length>0&&(a.forEach(function(u){r.push({label:u.name,value:u.id,isBatch:u.isBatch})}),se(r))});case 2:return n.next=4,P.getbomtechnologyactionbybom(e.values.id).then(function(i){var a=i.data,r=[];a&&(a.forEach(function(u,I){r.push({title:u.stepName,key:u.id,value:u.id,actionjson:u.actionJson,chnologyId:u.chnologyId,isBatch:u.isBatch,sort:u.sort,index:I})}),k(r))});case 4:case"end":return n.stop()}},F)})),De.apply(this,arguments)}var Je=function(){var F=(0,W.Z)((0,d.Z)().mark(function s(n){var i,a;return(0,d.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:if(ye([]),g([]),(i=Ze.current)===null||i===void 0||i.setFieldsValue({stepName:n.title,id:n.key}),X(n.isBatch),Fe(n.chnologyId),be("\u3010"+n.title+"\u3011\u6B65\u9AA4"),a=JSON.parse(n.actionjson),n.isBatch){u.next=11;break}x(n.chnologyId,a),u.next=13;break;case 11:return u.next=13,B(Q,a);case 13:case"end":return u.stop()}},s)}));return function(n){return F.apply(this,arguments)}}(),Le=function(s,n){var i;ye([]),g([]),Fe(s);var a=n.label;He(a),(i=Ze.current)===null||i===void 0||i.setFieldsValue({stepName:a,id:""}),be("\u3010"+a+"\u3011\u6B65\u9AA4");var r=[];n.isBatch?(X(!1),x(s,r)):(X(!0),B(Q,r))},V=function(s,n,i,a,r){var u=i.find(function(h){return h.batchingId==n}),I={TechnologyactionId:"",ActionName:u.batchingName,ActionValue:u.bomQty,BatchingId:u.batchingId};r.target.checked?a.push(I):a.splice(a.findIndex(function(h){return h.BatchingId===I.BatchingId}),1),g(a),B(i,a)},x=function(){var F=(0,W.Z)((0,d.Z)().mark(function s(n,i){var a;return(0,d.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return a=[],u.next=3,P.gettechnologyactionList(n).then(function(I){for(var h=I.data,p=0;p0&&(Y.BatchingId=m==null?void 0:m.find(function(q){return q.BatchingId==u[p].split(":")[0]}).BatchingId)):Y.TechnologyactionId=u[p].split(":")[0],Y.ActionValue=n[u[p]],Y.ActionName=u[p].split(":")[1],i.push(Y));if(a.ActionJson=JSON.stringify(i),console.log(a),!(a.ActionJson.length<=2)){M.next=14;break}return y.default.error("\u8BF7\u9009\u62E9\u5DE5\u827A\u5E76\u914D\u7F6E\u76F8\u5173\u52A8\u4F5C\u6B65\u9AA4"),M.abrupt("return",!1);case 14:return M.next=16,P.addbomtechnologyaction(a).then(function(q){q.succeeded?y.default.success("\u4FDD\u5B58\u6210\u529F"):y.default.error("\u4FDD\u5B58\u5931\u8D25\uFF0C\u5931\u8D25\u539F\u56E0\uFF1A"+q.errors)});case 16:Ge();case 17:case"end":return M.stop()}},s)}));return function(n){return F.apply(this,arguments)}}(),E=function(){var F=(0,W.Z)((0,d.Z)().mark(function s(n){return(0,d.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return console.log(n),a.next=3,P.deletebomtechnologyaction(n).then(function(r){r.succeeded?(y.default.success("\u5220\u9664\u6210\u529F"),Ge()):y.default.error("\u5220\u9664\u6210\u529F\uFF0C\u5931\u8D25\u539F\u56E0\uFF1A"+r.errors)});case 3:case"end":return a.stop()}},s)}));return function(n){return F.apply(this,arguments)}}(),oe=function(){var F=(0,W.Z)((0,d.Z)().mark(function s(n){var i,a,r,u,I,h,p,Y,fe,M,q,$,re,ne;return(0,d.Z)().wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:for(i=n.node.key,a=n.dragNode.key,r=n.node.pos.split("-"),u=n.dropPosition-Number(r[r.length-1]),I=function me(U,je,Xe){for(var xe=0;xe1&&arguments[1]!==void 0?arguments[1]:"";return(0,u.WY)("/kitchen/api/GateInfo/Enable",{method:"POST",data:e,headers:{TenantId:G}})},GetGateListByStorePage:function(e,G,b){var se=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"";return(0,u.WY)("/kitchen/api/GateInfo/gatelist?StoreId=".concat(e,"&Current=").concat(G,"&PageSize=").concat(b),{method:"GET",headers:{TenantId:se}})},GetGateListByStorePageNew:function(e,G,b){var se=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"";return(0,u.WY)("/kitchen/api/one-card/gate-list?StoreId=".concat(e,"&Current=").concat(G,"&PageSize=").concat(b),{method:"GET",headers:{TenantId:se}})},GetGateListByStoreList:function(e){return(0,u.WY)("/kitchen/api/GateInfo/gatealllist?StoreId=".concat(e),{method:"GET"})},UpdateGateInfo:function(e){var G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(0,u.WY)("/kitchen/api/GateInfo/Update",{method:"POST",data:e,headers:{TenantId:G}})},UpdateGateInfoNew:function(e){var G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(0,u.WY)("/kitchen/api/one-card",{method:"PUT",data:e,headers:{TenantId:G}})},PayCardAdd:function(e){return(0,u.WY)("/kitchen/api/PayCard/add",{method:"POST",data:e})},PayCardEnable:function(e){return(0,u.WY)("/kitchenapi/PayCard/enable",{method:"POST",data:e})},PayCardByGateId:function(e,G,b){return(0,u.WY)("/kitchen/api/PayCard/gateList?GateId=".concat(e,"&Current=").concat(G,"&PageSize=").concat(b),{method:"GET"})},UpdatePayCardInfo:function(e){return(0,u.WY)("/kitchen/api/PayCard/update",{method:"POST",data:e})},GetCosRequestURL:function(e){return(0,u.WY)("/kitchen/api/systemconfig/GetCosRequestSignURL",{method:"POST",data:e})},GetMemberAccountPageList:function(e){return(0,u.WY)("/kitchen/api/member/member-account-page-list",{method:"POST",data:e})},UpdateMemberAccountStatus:function(e){return(0,u.WY)("/kitchen/api/member/member-account-status",{method:"POST",data:e})},GetMemberCardPageList:function(e){return(0,u.WY)("/kitchen/api/member/mmenber-card-page",{method:"POST",data:e})},AddMemberCard:function(e){return(0,u.WY)("/kitchen/api/member/mmenber-card",{method:"POST",data:e})},UpdateMemberCardState:function(e){return(0,u.WY)("/kitchen/api/member/mmenber-card-state",{method:"PUT",data:e})},GetDicList:function(e){return(0,u.WY)("/kitchen/api/dict-data/dic-list/".concat(e),{method:"Get"})},AddGateSetUp:function(e){return(0,u.WY)("/kitchen/api/GateInfo/AddGateSetUp",{method:"POST",data:e})},GetFoodList:function(e){return(0,u.WY)("/kitchen/api/dict-data/dic-list/".concat(e),{method:"Get"})},AddGateFood:function(e){return(0,u.WY)("/kitchen/api/GateInfo/AddGateFood",{method:"POST",data:e})},GetGoodsByMenuIdPage:function(e){return(0,u.WY)("/kitchen/api/FoodMenu/GetGoodsByMenuIdPage",{method:"POST",data:(0,pe.Z)({},e)})}}}}]); +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[4769,1322],{41287:function(le){le.exports={table_search_item:"table_search_item___2mgJV"}},5697:function(le,re,n){"use strict";n.r(re),n.d(re,{default:function(){return Re}});var pe=n(57338),u=n(273),i=n(13062),e=n(71230),G=n(89032),b=n(15746),se=n(47673),ce=n(4107),Xe=n(57663),ge=n(71577),qe=n(43358),U=n(34041),S=n(39428),_e=n(34792),v=n(48086),I=n(3182),et=n(9715),P=n(55843),m=n(2824),d=n(67294),fe=n(78009),Te=n(49101),Ee=n(16894),Ae=n(41287),Ce=n.n(Ae),ye=n(3996),Oe=n(9669),Fe=n.n(Oe),T=n(66050),tt=n(71194),Ze=n(50146),at=n(58996),Ge=n(77933),ue=n(86582),t=n(85893),ke=function(g){var me=(0,d.useRef)(),_=(0,d.useState)(!0),E=(0,m.Z)(_,2),ee=E[0],oe=E[1],A="sendCoupon",O=(0,d.useState)(),W=(0,m.Z)(O,2),x=W[0],F=W[1],M=(0,d.useState)([]),R=(0,m.Z)(M,2),z=R[0],L=R[1],N=(0,d.useState)([]),Y=(0,m.Z)(N,2),$=Y[0],te=Y[1],V=(0,d.useState)([]),w=(0,m.Z)(V,2),H=w[0],k=w[1];(0,d.useEffect)(function(){var c=function(){var s=(0,I.Z)((0,S.Z)().mark(function o(h){return(0,S.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:T.Z.GetDicList("GateSetUp").then(function(C){var ie=C.data,B=[];C.succeeded&&ie.forEach(function(j){B.push({key:j.value,title:j.value,description:h,disabled:!1,tag:j.value})}),k(B),te(B)});case 1:case"end":return a.stop()}},o)}));return function(h){return s.apply(this,arguments)}}();c()},[]);var ae=function(s,o,h){F(s)},ne=function(s,o){L([].concat((0,ue.Z)(s),(0,ue.Z)(o)))},J=function(s,o){},D=function(){var c=(0,I.Z)((0,S.Z)().mark(function s(o,h){return(0,S.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(o!="right"){a.next=2;break}return a.abrupt("return");case 2:case"end":return a.stop()}},s)}));return function(o,h){return c.apply(this,arguments)}}(),Q=function(){var c=(0,I.Z)((0,S.Z)().mark(function s(o){var h;return(0,S.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(!(x==null||x.length<=0)){a.next=3;break}return v.default.error("\u8BF7\u9009\u62E9\u663E\u793A\u533A\u57DF"),a.abrupt("return");case 3:return v.default.loading("\u6B63\u5728\u6DFB\u52A0...",A),a.prev=4,h=[],x.forEach(function(C){h.push({Key:C,GateId:o.values.id,IsShow:!0})}),T.Z.AddGateSetUp(h).then(function(C){v.default.destroy(A),C.data?(v.default.success("\u6DFB\u52A0\u6210\u529F"),F([]),L([]),o.onCancel()):v.default.error("\u6DFB\u52A0\u5931\u8D25")}),a.abrupt("return",!0);case 11:return a.prev=11,a.t0=a.catch(4),console.log(a.t0),v.default.destroy(A),v.default.error("\u6DFB\u52A0\u8BF7\u91CD\u8BD5\uFF01"),a.abrupt("return",!1);case 17:case"end":return a.stop()}},s,null,[[4,11]])}));return function(o){return c.apply(this,arguments)}}();return(0,t.jsx)(Ze.Z,{destroyOnClose:!0,visible:g.shows,width:700,onCancel:function(){k($),g.onCancel()},onOk:function(){Q(g),g.actionRef.current.reload()},children:(0,t.jsx)(fe.ZP,{header:{title:"\u8BBE\u7F6E\u5C4F\u5E55\u663E\u793A",breadcrumb:{}},children:(0,t.jsx)(Ge.Z,{oneWay:ee,showSearch:!0,showSelectAll:!0,onSearch:D,dataSource:H,titles:["\u672A\u9009\u62E9","\u5DF2\u9009\u4E2D"],targetKeys:x,selectedKeys:z,onChange:ae,onSelectChange:ne,onScroll:J,render:function(s){return s.title},pagination:{pageSize:8},listStyle:{width:500,height:400}})})})},Be=ke,Ue=function(g){var me=(0,d.useRef)(),_=(0,d.useState)(!0),E=(0,m.Z)(_,2),ee=E[0],oe=E[1],A="setGateFood",O=(0,d.useState)(),W=(0,m.Z)(O,2),x=W[0],F=W[1],M=(0,d.useState)([]),R=(0,m.Z)(M,2),z=R[0],L=R[1],N=(0,d.useState)([]),Y=(0,m.Z)(N,2),$=Y[0],te=Y[1],V=(0,d.useState)([]),w=(0,m.Z)(V,2),H=w[0],k=w[1];(0,d.useEffect)(function(){var c=function(){var s=(0,I.Z)((0,S.Z)().mark(function o(h){return(0,S.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:T.Z.GetGoodsByMenuIdPage({current:1,pageSize:5e3}).then(function(C){var ie=C.data.data,B=[];C.succeeded&&ie.forEach(function(j){B.push({key:j.id,title:j.name,description:h,disabled:!1,tag:j.name})}),k(B),te(B)});case 1:case"end":return a.stop()}},o)}));return function(h){return s.apply(this,arguments)}}();c()},[]);var ae=function(s,o,h){F(s)},ne=function(s,o){L([].concat((0,ue.Z)(s),(0,ue.Z)(o)))},J=function(s,o){},D=function(){var c=(0,I.Z)((0,S.Z)().mark(function s(o,h){return(0,S.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(o!="right"){a.next=2;break}return a.abrupt("return");case 2:case"end":return a.stop()}},s)}));return function(o,h){return c.apply(this,arguments)}}(),Q=function(){var c=(0,I.Z)((0,S.Z)().mark(function s(o){var h;return(0,S.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(!(x==null||x.length<=0)){a.next=3;break}return v.default.error("\u8BF7\u9009\u62E9\u83DC\u54C1"),a.abrupt("return");case 3:return v.default.loading("\u6B63\u5728\u6DFB\u52A0...",A),a.prev=4,h=[],x.forEach(function(C){h.push({FoodId:C,GateId:o.values.id,FoodName:""})}),T.Z.AddGateFood(h).then(function(C){v.default.destroy(A),C.data?(v.default.success("\u6DFB\u52A0\u6210\u529F"),F([]),L([]),o.onCancel()):v.default.error("\u6DFB\u52A0\u5931\u8D25")}),a.abrupt("return",!0);case 11:return a.prev=11,a.t0=a.catch(4),console.log(a.t0),v.default.destroy(A),v.default.error("\u6DFB\u52A0\u8BF7\u91CD\u8BD5\uFF01"),a.abrupt("return",!1);case 17:case"end":return a.stop()}},s,null,[[4,11]])}));return function(o){return c.apply(this,arguments)}}();return(0,t.jsx)(Ze.Z,{destroyOnClose:!0,visible:g.shows,width:700,onCancel:function(){k($),g.onCancel()},onOk:function(){Q(g),g.actionRef.current.reload()},children:(0,t.jsx)(fe.ZP,{header:{title:"\u8BBE\u7F6E\u5C4F\u5E55\u663E\u793A\u83DC\u54C1",breadcrumb:{}},children:(0,t.jsx)(Ge.Z,{oneWay:ee,showSearch:!0,showSelectAll:!0,onSearch:D,dataSource:H,titles:["\u672A\u9009\u62E9","\u5DF2\u9009\u4E2D"],targetKeys:x,selectedKeys:z,onChange:ae,onSelectChange:ne,onScroll:J,render:function(s){return s.title},pagination:{pageSize:8},listStyle:{width:500,height:400}})})})},We=Ue,Me=function(){var g=(0,d.useRef)(),me=P.Z.useForm(),_=(0,m.Z)(me,1),E=_[0],ee=(0,d.useState)(!1),oe=(0,m.Z)(ee,2),A=oe[0],O=oe[1],W=(0,d.useState)({id:""}),x=(0,m.Z)(W,2),F=x[0],M=x[1],R=(0,d.useState)(!1),z=(0,m.Z)(R,2),L=z[0],N=z[1],Y=(0,d.useState)(!1),$=(0,m.Z)(Y,2),te=$[0],V=$[1],w=(0,d.useState)([]),H=(0,m.Z)(w,2),k=H[0],ae=H[1],ne=(0,d.useState)(""),J=(0,m.Z)(ne,2),D=J[0],Q=J[1],c=(0,d.useState)(1),s=(0,m.Z)(c,2),o=s[0],h=s[1],K=(0,d.useState)(10),a=(0,m.Z)(K,2),C=a[0],ie=a[1],B=(0,d.useState)(null),j=(0,m.Z)(B,2),X=j[0],be=j[1],Le=(0,d.useState)(""),Ie=(0,m.Z)(Le,2),he=Ie[0],Se=Ie[1],Ye={},we={placeholder:"\u8BF7\u8F93\u5165\u5927\u5C4F\u6A2A\u5E45...",MENU_CONF:{fontSize:{fontSizeList:["10px","20px","40px","60px","80px","100px","150px","180px","200px"]},uploadImage:{customUpload:function(r,l){return(0,I.Z)((0,S.Z)().mark(function p(){var y,q,Z;return(0,S.Z)().wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:y=r.name.lastIndexOf("."),q=r.name.substr(y+1),Z=null,T.Z.GetCosRequestURL({directory:"kitchen",fileExtension:q,method:"PUT"}).then(function(de){var Je=de.allUrl,Pe=new FileReader;Pe.readAsArrayBuffer(r),Pe.onload=function(Qe){Z=Qe.target.result,Fe().put(Je,Z).then(function(je){(je.status==200||je.statusText=="OK")&&(l(de.seeUrl,de.seeUrl,de.seeUrl),v.default.success("\u4E0A\u4F20\u6210\u529F\uFF01"))})}});case 4:case"end":return ve.stop()}},p)}))()}}}};(0,d.useEffect)(function(){return function(){X!=null&&(X.destroy(),be(null))}},[X]);var De=function(r){M(r),O(!0),Se(r.remaek),E.setFieldsValue(r)},Ke=function(r){M(r),N(!0)},ze=function(r){M(r),V(!0)},Ne=function(){O(!0),X&&X.setHtml(""),Se(""),E.resetFields()},$e=function(){var f=(0,I.Z)((0,S.Z)().mark(function r(l){var p,y;return(0,S.Z)().wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:if(!l.id){Z.next=8;break}return l.remaek=he,Z.next=4,T.Z.UpdateGateInfo(l);case 4:p=Z.sent,p.statusCode===200?(v.default.success("\u66F4\u65B0\u6863\u53E3\u6210\u529F\uFF01"),O(!1),g.current.reload()):v.default.error(p.errors||"\u66F4\u65B0\u6863\u53E3\u5931\u8D25"),Z.next=13;break;case 8:return l.remaek=he,Z.next=11,T.Z.AddGate(l);case 11:y=Z.sent,y.statusCode===200?(v.default.success("\u65B0\u589E\u6863\u53E3\u6210\u529F\uFF01"),O(!1),g.current.reload()):v.default.error(y.errors||"\u65B0\u589E\u6863\u53E3\u5931\u8D25");case 13:case"end":return Z.stop()}},r)}));return function(l){return f.apply(this,arguments)}}(),Ve=[{title:"\u6863\u53E3\u540D\u79F0",dataIndex:"name",ellipsis:!0},{title:"\u5F52\u5C5E\u95E8\u5E97",dataIndex:"storeId",render:function(r,l){var p=k.find(function(y){return y.id===l.storeId});if(p)return(0,t.jsx)("div",{children:p.store_Name})}},{title:"\u5C5E\u6027",dataIndex:"mode",valueType:"select",valueEnum:{1:{text:"\u56FA\u5B9A",status:"Success"},2:{text:"\u81EA\u7531\u8BBE\u5B9A",status:"Success"}}},{title:"\u91D1\u989D",dataIndex:"price"},{title:"\u72B6\u6001",dataIndex:"status",valueType:"select",valueEnum:{0:{text:"\u6B63\u5E38",status:"Success"},1:{text:"\u7981\u7528",status:"Error"},2:{text:"\u5220\u9664",status:"Error"}}},{title:"\u64CD\u4F5C",valueType:"option",key:"option",render:function(r,l,p,y){return[(0,t.jsx)("a",{onClick:function(){return De(l)},children:"\u66F4\u65B0"}),(0,t.jsx)("a",{onClick:function(){return ze(l)},children:"\u8BBE\u7F6E\u83DC\u54C1"}),(0,t.jsx)("a",{onClick:function(){return Ke(l)},children:"\u8BBE\u7F6E\u5C4F\u5E55\u663E\u793A"})]}}],He=function(){var f=(0,I.Z)((0,S.Z)().mark(function r(){var l;return(0,S.Z)().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return y.next=2,T.Z.GetAllStore();case 2:l=y.sent,l.isSuccess?(ae(l.data),Q(l.data[0].id),g.current.reload()):v.default.error(l.msg||"\u83B7\u53D6\u5E97\u94FA\u5217\u8868\u5931\u8D25");case 4:case"end":return y.stop()}},r)}));return function(){return f.apply(this,arguments)}}();return(0,d.useEffect)(function(){He()},[]),(0,t.jsx)(fe.ZP,{children:(0,t.jsxs)("div",{className:Ce().member_card_container,children:[(0,t.jsx)(Ee.ZP,{columns:Ve,actionRef:g,request:(0,I.Z)((0,S.Z)().mark(function f(){var r;return(0,S.Z)().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:if(!D){p.next=6;break}return p.next=3,T.Z.GetGateListByStorePage(D,o,C);case 3:if(r=p.sent,r.statusCode!==200){p.next=6;break}return p.abrupt("return",{data:r.data.data,success:!0,total:r.data.total});case 6:case"end":return p.stop()}},f)})),cardBordered:!0,editable:{type:"multiple"},rowKey:"id",search:!1,options:{setting:{listsHeight:400}},pagination:{pageSize:C,onChange:function(r){return h(r)}},dateFormatter:"string",headerTitle:"\u6863\u53E3\u7BA1\u7406",toolBarRender:function(){return[(0,t.jsxs)("div",{className:Ce().table_search_item,children:[(0,t.jsx)("div",{children:"\u5F53\u524D\u95E8\u5E97\uFF1A"}),(0,t.jsx)(U.Z,{style:{width:300},value:D,onChange:function(l){Q(l),g.current.reload()},children:k.map(function(r){return(0,t.jsx)(Option,{value:r.id,children:r.store_Name},r.id)})})]}),(0,t.jsx)(ge.Z,{icon:(0,t.jsx)(Te.Z,{}),type:"primary",onClick:Ne,children:"\u65B0\u5EFA"},"button")]}}),(0,t.jsx)(u.Z,{destroyOnClose:!0,width:"100%",title:F.id?"\u7F16\u8F91\u6863\u53E3":"\u6DFB\u52A0\u6863\u53E3",visible:A,onClose:function(){return O(!1)},children:(0,t.jsxs)(P.Z,{name:"basic",onFinish:$e,form:E,labelCol:{span:4},children:[(0,t.jsx)(P.Z.Item,{label:"id",name:"id",hidden:!0,children:(0,t.jsx)(ce.Z,{size:"large"})}),(0,t.jsxs)(e.Z,{children:[(0,t.jsx)(b.Z,{xs:12,sm:12,md:12,lg:12,xl:12,children:(0,t.jsx)(P.Z.Item,{label:"\u6863\u53E3\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6863\u53E3\u540D\u79F0\uFF01"}],children:(0,t.jsx)(ce.Z,{size:"large"})})}),(0,t.jsx)(b.Z,{xs:12,sm:12,md:12,lg:12,xl:12,children:(0,t.jsx)(P.Z.Item,{label:"\u5F52\u5C5E\u95E8\u5E97",name:"storeId",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5F52\u5C5E\u95E8\u5E97\uFF01"}],children:(0,t.jsx)(U.Z,{size:"large",children:k.map(function(f){return(0,t.jsx)(U.Z.Option,{value:f.id,children:f.store_Name},f.id)})})})}),(0,t.jsx)(b.Z,{xs:12,sm:12,md:12,lg:12,xl:12,children:(0,t.jsx)(P.Z.Item,{label:"\u5C5E\u6027",name:"mode",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9009\u62E9\u5C5E\u6027\uFF01"}],children:(0,t.jsxs)(U.Z,{size:"large",children:[(0,t.jsx)(U.Z.Option,{value:1,children:"\u56FA\u5B9A\u91D1\u989D"}),(0,t.jsx)(U.Z.Option,{value:2,children:"\u81EA\u7531\u8BBE\u5B9A"})]})})}),(0,t.jsx)(b.Z,{xs:12,sm:12,md:12,lg:12,xl:12,children:(0,t.jsx)(P.Z.Item,{noStyle:!0,shouldUpdate:function(r,l){return r.mode!==l.mode},children:function(r){var l=r.getFieldValue;return l("mode")=="1"?(0,t.jsx)(P.Z.Item,{label:"\u91D1\u989D",name:"price",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u91D1\u989D\uFF01"}],children:(0,t.jsx)(ce.Z,{size:"large"})}):null}})}),(0,t.jsx)(b.Z,{xs:12,sm:12,md:12,lg:12,xl:12,children:(0,t.jsx)(P.Z.Item,{label:"\u72B6\u6001",name:"status",children:(0,t.jsxs)(U.Z,{size:"large",defaultValue:1,children:[(0,t.jsx)(Option,{value:0,children:"\u6B63\u5E38"}),(0,t.jsx)(Option,{value:1,children:"\u7981\u7528"})]})})})]}),(0,t.jsxs)("div",{style:{border:"1px solid #ccc",zIndex:100},children:[(0,t.jsx)(ye.o,{editor:X,defaultConfig:Ye,mode:"default",style:{borderBottom:"1px solid #ccc"}}),(0,t.jsx)(ye.M,{defaultConfig:we,value:he,onCreated:be,onChange:function(r){return Se(r.getHtml())},mode:"default",style:{height:"500px",overflowY:"hidden"}})]}),(0,t.jsx)(P.Z.Item,{children:(0,t.jsx)(ge.Z,{type:"primary",htmlType:"submit",style:{marginTop:"10px"},children:"\u786E\u5B9A"})})]})}),(0,t.jsx)(Be,{shows:L,values:F,actionRef:g,onCancel:function(){N(!1)}}),(0,t.jsx)(We,{shows:te,values:F,actionRef:g,onCancel:function(){V(!1)}})]})})},Re=Me},66050:function(le,re,n){"use strict";var pe=n(11849),u=n(48971);re.Z={GetAllStore:function(){return(0,u.WY)("/kitchen/api/StoreHelper/GetAllStore",{method:"GET",headers:{TenantId:""}})},GetMemberListByPage:function(e){return(0,u.WY)("/kitchen/api/member/member-page-query",{method:"POST",data:e})},OnBindMember:function(e){return(0,u.WY)("/kitchen/api/member/member-binding-cards",{method:"POST",data:e})},GetMemberAccountCardConsRecord:function(e){return(0,u.WY)("/kitchen/api/member/member-account-amount-page",{method:"POST",data:e})},GetMemberAccountRecordTotal:function(e){return(0,u.WY)("/kitchen/api/member/member-account-record-total",{method:"POST",data:e})},AddGate:function(e){return(0,u.WY)("/kitchen/api/GateInfo/add",{method:"POST",data:e})},EnableGate:function(e){var G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(0,u.WY)("/kitchen/api/GateInfo/Enable",{method:"POST",data:e,headers:{TenantId:G}})},GetGateListByStorePage:function(e,G,b){var se=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"";return(0,u.WY)("/kitchen/api/GateInfo/gatelist?StoreId=".concat(e,"&Current=").concat(G,"&PageSize=").concat(b),{method:"GET",headers:{TenantId:se}})},GetGateListByStorePageNew:function(e,G,b){var se=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"";return(0,u.WY)("/kitchen/api/one-card/gate-list?StoreId=".concat(e,"&Current=").concat(G,"&PageSize=").concat(b),{method:"GET",headers:{TenantId:se}})},GetGateListByStoreList:function(e){return(0,u.WY)("/kitchen/api/GateInfo/gatealllist?StoreId=".concat(e),{method:"GET"})},UpdateGateInfo:function(e){var G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(0,u.WY)("/kitchen/api/GateInfo/Update",{method:"POST",data:e,headers:{TenantId:G}})},UpdateGateInfoNew:function(e){var G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(0,u.WY)("/kitchen/api/one-card",{method:"PUT",data:e,headers:{TenantId:G}})},PayCardAdd:function(e){return(0,u.WY)("/kitchen/api/PayCard/add",{method:"POST",data:e})},PayCardEnable:function(e){return(0,u.WY)("/kitchenapi/PayCard/enable",{method:"POST",data:e})},PayCardByGateId:function(e,G,b){return(0,u.WY)("/kitchen/api/PayCard/gateList?GateId=".concat(e,"&Current=").concat(G,"&PageSize=").concat(b),{method:"GET"})},UpdatePayCardInfo:function(e){return(0,u.WY)("/kitchen/api/PayCard/update",{method:"POST",data:e})},GetCosRequestURL:function(e){return(0,u.WY)("/kitchen/api/systemconfig/GetCosRequestSignURL",{method:"POST",data:e})},GetMemberAccountPageList:function(e){return(0,u.WY)("/kitchen/api/member/member-account-page-list",{method:"POST",data:e})},UpdateMemberAccountStatus:function(e){return(0,u.WY)("/kitchen/api/member/member-account-status",{method:"POST",data:e})},GetMemberCardPageList:function(e){return(0,u.WY)("/kitchen/api/member/mmenber-card-page",{method:"POST",data:e})},AddMemberCard:function(e){return(0,u.WY)("/kitchen/api/member/mmenber-card",{method:"POST",data:e})},UpdateMemberCardState:function(e){return(0,u.WY)("/kitchen/api/member/mmenber-card-state",{method:"PUT",data:e})},GetDicList:function(e){return(0,u.WY)("/kitchen/api/dict-data/dic-list/".concat(e),{method:"Get"})},AddGateSetUp:function(e){return(0,u.WY)("/kitchen/api/GateInfo/AddGateSetUp",{method:"POST",data:e})},GetFoodList:function(e){return(0,u.WY)("/kitchen/api/dict-data/dic-list/".concat(e),{method:"Get"})},AddGateFood:function(e){return(0,u.WY)("/kitchen/api/GateInfo/AddGateFood",{method:"POST",data:e})},GetGoodsByMenuIdPage:function(e){return(0,u.WY)("/kitchen/api/FoodMenu/GetGoodsByMenuIdPage",{method:"POST",data:(0,pe.Z)({},e)})}}}}]); diff --git a/dist/p__card__gateAdmin.23677237.async.js b/dist/p__card__gateAdmin.5e0d045d.async.js similarity index 85% rename from dist/p__card__gateAdmin.23677237.async.js rename to dist/p__card__gateAdmin.5e0d045d.async.js index 211c66f..45bec92 100644 --- a/dist/p__card__gateAdmin.23677237.async.js +++ b/dist/p__card__gateAdmin.5e0d045d.async.js @@ -1 +1 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[579],{40335:function(j,M,n){"use strict";n.r(M);var y=n(57338),a=n(273),s=n(57663),e=n(71577),_=n(13062),p=n(71230),i=n(89032),E=n(15746),S=n(47673),c=n(4107),O=n(57106),B=n(6129),K=n(43358),v=n(34041),m=n(39428),F=n(34792),g=n(48086),I=n(3182),U=n(9715),P=n(55843),C=n(2824),h=n(67294),se=n(16894),k=n(3996),de=n(9669),ue=n.n(de),b=n(66050),oe=n(48971),t=n(85893),ie=function(){var W=(0,h.useRef)(),le=P.Z.useForm(),ce=(0,C.Z)(le,1),Y=ce[0],_e=(0,h.useState)([]),z=(0,C.Z)(_e,2),L=z[0],me=z[1],fe=(0,h.useState)(""),N=(0,C.Z)(fe,2),T=N[0],he=N[1],Ee=(0,h.useState)(""),w=(0,C.Z)(Ee,2),x=w[0],Pe=w[1],pe=(0,h.useState)(1),$=(0,C.Z)(pe,2),Oe=$[0],ve=$[1],ge=(0,h.useState)(100),H=(0,C.Z)(ge,2),V=H[0],We=H[1],Ce=(0,h.useState)(!1),J=(0,C.Z)(Ce,2),Ie=J[0],Z=J[1],ye=[{title:"\u6863\u53E3\u540D\u79F0",dataIndex:"name",ellipsis:!0},{title:"\u5F52\u5C5E\u95E8\u5E97",dataIndex:"storeId",render:function(r,o){var d=L.find(function(f){return f.id===o.storeId});if(d)return(0,t.jsx)("div",{children:d.store_Name})}},{title:"\u5C5E\u6027",dataIndex:"mode",valueType:"select",valueEnum:{1:{text:"\u56FA\u5B9A",status:"Success"},2:{text:"\u81EA\u7531\u8BBE\u5B9A",status:"Success"}}},{title:"\u91D1\u989D",dataIndex:"price"},{title:"\u72B6\u6001",dataIndex:"status",valueType:"select",valueEnum:{0:{text:"\u6B63\u5E38",status:"Success"},1:{text:"\u7981\u7528",status:"Error"},2:{text:"\u5220\u9664",status:"Error"}}},{title:"\u64CD\u4F5C",valueType:"option",key:"option",render:function(r,o,d,f){return[(0,t.jsx)("a",{onClick:function(){return Me(o)},children:"\u66F4\u65B0"})]}}],Me=function(r){Z(!0),te(r.remaek),Y.setFieldsValue(r)},Se=(0,h.useState)(null),Q=(0,C.Z)(Se,2),G=Q[0],X=Q[1],Te=(0,h.useState)(""),q=(0,C.Z)(Te,2),ee=q[0],te=q[1],De={},be={placeholder:"\u8BF7\u8F93\u5165\u5927\u5C4F\u6A2A\u5E45...",MENU_CONF:{fontSize:{fontSizeList:["10px","20px","40px","60px","80px","100px","150px","180px","200px"]},uploadImage:{customUpload:function(r,o){return(0,I.Z)((0,m.Z)().mark(function d(){var f,D,l;return(0,m.Z)().wrap(function(R){for(;;)switch(R.prev=R.next){case 0:f=r.name.lastIndexOf("."),D=r.name.substr(f+1),l=null,b.Z.GetCosRequestURL({directory:"kitchen",fileExtension:D,method:"PUT"}).then(function(A){var Ae=A.allUrl,ae=new FileReader;ae.readAsArrayBuffer(r),ae.onload=function(Be){l=Be.target.result,ue().put(Ae,l).then(function(re){(re.status==200||re.statusText=="OK")&&(o(A.seeUrl,A.seeUrl,A.seeUrl),g.default.success("\u4E0A\u4F20\u6210\u529F\uFF01"))})}});case 4:case"end":return R.stop()}},d)}))()}}}},xe=function(){var u=(0,I.Z)((0,m.Z)().mark(function r(){var o,d,f;return(0,m.Z)().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:if(o=oe.m8.location.query.storeId,!o){l.next=6;break}return l.next=4,b.Z.GetAllStore();case 4:d=l.sent,d.isSuccess?(me(d.data),f=d.data.find(function(ne){return ne.id===o}),f&&(Pe(f.companyId),he(f.id))):g.default.error(d.msg||"\u83B7\u53D6\u5E97\u94FA\u5217\u8868\u5931\u8D25");case 6:case"end":return l.stop()}},r)}));return function(){return u.apply(this,arguments)}}(),Ge=function(){var u=(0,I.Z)((0,m.Z)().mark(function r(o){var d,f;return(0,m.Z)().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:if(!o.id){l.next=6;break}return o.remaek=ee,l.next=4,b.Z.UpdateGateInfoNew(o,x);case 4:d=l.sent,d.statusCode===200?(g.default.success("\u66F4\u65B0\u6863\u53E3\u6210\u529F\uFF01"),Z(!1),(f=W.current)===null||f===void 0||f.reload()):g.default.error(d.errors||"\u66F4\u65B0\u6863\u53E3\u5931\u8D25");case 6:case"end":return l.stop()}},r)}));return function(o){return u.apply(this,arguments)}}();return(0,h.useEffect)(function(){return function(){G!=null&&(G.destroy(),X(null))}},[G]),(0,h.useEffect)(function(){xe()},[T]),(0,h.useEffect)(function(){var u;(u=W.current)===null||u===void 0||u.reload()},[x]),(0,t.jsxs)("div",{children:[T?(0,t.jsx)(se.ZP,{columns:ye,actionRef:W,request:(0,I.Z)((0,m.Z)().mark(function u(){var r;return(0,m.Z)().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:if(!(T&&x)){d.next=6;break}return d.next=3,b.Z.GetGateListByStorePageNew(T,Oe,V,x);case 3:if(r=d.sent,r.statusCode!==200){d.next=6;break}return d.abrupt("return",{data:r.data.data.data,success:!0,total:r.data.total});case 6:case"end":return d.stop()}},u)})),cardBordered:!0,editable:{type:"multiple"},rowKey:"id",search:!1,options:{setting:{listsHeight:400}},pagination:{pageSize:V,onChange:function(r){return ve(r)}},dateFormatter:"string",headerTitle:"\u6863\u53E3\u7BA1\u7406",toolBarRender:function(){return[(0,t.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,t.jsx)("div",{children:"\u5F53\u524D\u95E8\u5E97\uFF1A"}),(0,t.jsx)(v.Z,{style:{width:300},value:T,disabled:!0,children:L.map(function(r){return(0,t.jsx)(Option,{value:r.id,children:r.store_Name},r.id)})})]})]}}):(0,t.jsx)(B.ZP,{status:"404",title:"\u95E8\u5E97ID\u9519\u8BEF",subTitle:"\u8BF7\u68C0\u67E5URL\u4E2D storeId\u662F\u5426\u6B63\u786E"}),(0,t.jsx)(a.Z,{destroyOnClose:!0,width:"100%",title:"\u7F16\u8F91\u6863\u53E3",visible:Ie,onClose:function(){return Z(!1)},children:(0,t.jsxs)(P.Z,{name:"basic",onFinish:Ge,form:Y,labelCol:{span:4},children:[(0,t.jsx)(P.Z.Item,{label:"id",name:"id",hidden:!0,children:(0,t.jsx)(c.Z,{size:"large"})}),(0,t.jsxs)("div",{style:{border:"1px solid #ccc",zIndex:100,marginBottom:"10px"},children:[(0,t.jsx)(k.o,{editor:G,defaultConfig:De,mode:"default",style:{borderBottom:"1px solid #ccc"}}),(0,t.jsx)(k.M,{defaultConfig:be,value:ee,onCreated:X,onChange:function(r){return te(r.getHtml())},mode:"default",style:{height:"700px"}})]}),(0,t.jsxs)(p.Z,{children:[(0,t.jsx)(E.Z,{xs:12,sm:12,md:12,lg:12,xl:12,children:(0,t.jsx)(P.Z.Item,{label:"\u6863\u53E3\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6863\u53E3\u540D\u79F0\uFF01"}],children:(0,t.jsx)(c.Z,{size:"large"})})}),(0,t.jsx)(E.Z,{xs:12,sm:12,md:12,lg:12,xl:12,children:(0,t.jsx)(P.Z.Item,{label:"\u5F52\u5C5E\u95E8\u5E97",name:"storeId",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5F52\u5C5E\u95E8\u5E97\uFF01"}],children:(0,t.jsx)(v.Z,{size:"large",disabled:!0,children:L.map(function(u){return(0,t.jsx)(v.Z.Option,{value:u.id,children:u.store_Name},u.id)})})})}),(0,t.jsx)(E.Z,{xs:12,sm:12,md:12,lg:12,xl:12,children:(0,t.jsx)(P.Z.Item,{label:"\u5C5E\u6027",name:"mode",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9009\u62E9\u5C5E\u6027\uFF01"}],children:(0,t.jsxs)(v.Z,{size:"large",children:[(0,t.jsx)(v.Z.Option,{value:1,children:"\u56FA\u5B9A\u91D1\u989D"}),(0,t.jsx)(v.Z.Option,{value:2,children:"\u81EA\u7531\u8BBE\u5B9A"})]})})}),(0,t.jsx)(E.Z,{xs:12,sm:12,md:12,lg:12,xl:12,children:(0,t.jsx)(P.Z.Item,{noStyle:!0,shouldUpdate:function(r,o){return r.mode!==o.mode},children:function(r){var o=r.getFieldValue;return o("mode")=="1"?(0,t.jsx)(P.Z.Item,{label:"\u91D1\u989D",name:"price",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u91D1\u989D\uFF01"}],children:(0,t.jsx)(c.Z,{size:"large"})}):null}})}),(0,t.jsx)(E.Z,{xs:12,sm:12,md:12,lg:12,xl:12,children:(0,t.jsx)(P.Z.Item,{label:"\u72B6\u6001",name:"status",children:(0,t.jsxs)(v.Z,{size:"large",defaultValue:1,children:[(0,t.jsx)(Option,{value:0,children:"\u6B63\u5E38"}),(0,t.jsx)(Option,{value:1,children:"\u7981\u7528"})]})})})]}),(0,t.jsx)(P.Z.Item,{children:(0,t.jsx)(e.Z,{type:"primary",htmlType:"submit",style:{marginTop:"10px",marginLeft:"auto"},children:"\u786E\u5B9A"})})]})})]})};M.default=ie},66050:function(j,M,n){"use strict";var y=n(11849),a=n(48971);M.Z={GetAllStore:function(){return(0,a.WY)("/kitchen/api/StoreHelper/GetAllStore",{method:"GET",headers:{TenantId:""}})},GetMemberListByPage:function(e){return(0,a.WY)("/kitchen/api/member/member-page-query",{method:"POST",data:e})},OnBindMember:function(e){return(0,a.WY)("/kitchen/api/member/member-binding-cards",{method:"POST",data:e})},GetMemberAccountCardConsRecord:function(e){return(0,a.WY)("/kitchen/api/member/member-account-amount-page",{method:"POST",data:e})},GetMemberAccountRecordTotal:function(e){return(0,a.WY)("/kitchen/api/member/member-account-record-total",{method:"POST",data:e})},AddGate:function(e){return(0,a.WY)("/kitchen/api/GateInfo/add",{method:"POST",data:e})},EnableGate:function(e){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(0,a.WY)("/kitchen/api/GateInfo/Enable",{method:"POST",data:e,headers:{TenantId:_}})},GetGateListByStorePage:function(e,_,p){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"";return(0,a.WY)("/kitchen/api/GateInfo/gatelist?StoreId=".concat(e,"&Current=").concat(_,"&PageSize=").concat(p),{method:"GET",headers:{TenantId:i}})},GetGateListByStorePageNew:function(e,_,p){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"";return(0,a.WY)("/kitchen/api/one-card/gate-list?StoreId=".concat(e,"&Current=").concat(_,"&PageSize=").concat(p),{method:"GET",headers:{TenantId:i}})},GetGateListByStoreList:function(e){return(0,a.WY)("/kitchen/api/GateInfo/gatealllist?StoreId=".concat(e),{method:"GET"})},UpdateGateInfo:function(e){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(0,a.WY)("/kitchen/api/GateInfo/Update",{method:"POST",data:e,headers:{TenantId:_}})},UpdateGateInfoNew:function(e){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(0,a.WY)("/kitchen/api/one-card",{method:"PUT",data:e,headers:{TenantId:_}})},PayCardAdd:function(e){return(0,a.WY)("/kitchen/api/PayCard/add",{method:"POST",data:e})},PayCardEnable:function(e){return(0,a.WY)("/kitchenapi/PayCard/enable",{method:"POST",data:e})},PayCardByGateId:function(e,_,p){return(0,a.WY)("/kitchen/api/PayCard/gateList?GateId=".concat(e,"&Current=").concat(_,"&PageSize=").concat(p),{method:"GET"})},UpdatePayCardInfo:function(e){return(0,a.WY)("/kitchen/api/PayCard/update",{method:"POST",data:e})},GetCosRequestURL:function(e){return(0,a.WY)("/kitchen/api/systemconfig/GetCosRequestSignURL",{method:"POST",data:e})},GetMemberAccountPageList:function(e){return(0,a.WY)("/kitchen/api/member/member-account-page-list",{method:"POST",data:e})},UpdateMemberAccountStatus:function(e){return(0,a.WY)("/kitchen/api/member/member-account-status",{method:"POST",data:e})},GetMemberCardPageList:function(e){return(0,a.WY)("/kitchen/api/member/mmenber-card-page",{method:"POST",data:e})},AddMemberCard:function(e){return(0,a.WY)("/kitchen/api/member/mmenber-card",{method:"POST",data:e})},UpdateMemberCardState:function(e){return(0,a.WY)("/kitchen/api/member/mmenber-card-state",{method:"PUT",data:e})},GetDicList:function(e){return(0,a.WY)("/kitchen/api/dict-data/dic-list/".concat(e),{method:"Get"})},AddGateSetUp:function(e){return(0,a.WY)("/kitchen/api/GateInfo/AddGateSetUp",{method:"POST",data:e})},GetFoodList:function(e){return(0,a.WY)("/kitchen/api/dict-data/dic-list/".concat(e),{method:"Get"})},AddGateFood:function(e){return(0,a.WY)("/kitchen/api/GateInfo/AddGateFood",{method:"POST",data:e})},GetGoodsByMenuIdPage:function(e){return(0,a.WY)("/kitchen/api/FoodMenu/GetGoodsByMenuIdPage",{method:"POST",data:(0,y.Z)({},e)})}}},34952:function(j,M,n){"use strict";var y=n(22122),a=n(15105),s=n(67294),e=function(i,E){var S={};for(var c in i)Object.prototype.hasOwnProperty.call(i,c)&&E.indexOf(c)<0&&(S[c]=i[c]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var O=0,c=Object.getOwnPropertySymbols(i);O1&&arguments[1]!==void 0?arguments[1]:"";return(0,a.WY)("/kitchen/api/GateInfo/Enable",{method:"POST",data:e,headers:{TenantId:_}})},GetGateListByStorePage:function(e,_,p){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"";return(0,a.WY)("/kitchen/api/GateInfo/gatelist?StoreId=".concat(e,"&Current=").concat(_,"&PageSize=").concat(p),{method:"GET",headers:{TenantId:i}})},GetGateListByStorePageNew:function(e,_,p){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"";return(0,a.WY)("/kitchen/api/one-card/gate-list?StoreId=".concat(e,"&Current=").concat(_,"&PageSize=").concat(p),{method:"GET",headers:{TenantId:i}})},GetGateListByStoreList:function(e){return(0,a.WY)("/kitchen/api/GateInfo/gatealllist?StoreId=".concat(e),{method:"GET"})},UpdateGateInfo:function(e){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(0,a.WY)("/kitchen/api/GateInfo/Update",{method:"POST",data:e,headers:{TenantId:_}})},UpdateGateInfoNew:function(e){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(0,a.WY)("/kitchen/api/one-card",{method:"PUT",data:e,headers:{TenantId:_}})},PayCardAdd:function(e){return(0,a.WY)("/kitchen/api/PayCard/add",{method:"POST",data:e})},PayCardEnable:function(e){return(0,a.WY)("/kitchenapi/PayCard/enable",{method:"POST",data:e})},PayCardByGateId:function(e,_,p){return(0,a.WY)("/kitchen/api/PayCard/gateList?GateId=".concat(e,"&Current=").concat(_,"&PageSize=").concat(p),{method:"GET"})},UpdatePayCardInfo:function(e){return(0,a.WY)("/kitchen/api/PayCard/update",{method:"POST",data:e})},GetCosRequestURL:function(e){return(0,a.WY)("/kitchen/api/systemconfig/GetCosRequestSignURL",{method:"POST",data:e})},GetMemberAccountPageList:function(e){return(0,a.WY)("/kitchen/api/member/member-account-page-list",{method:"POST",data:e})},UpdateMemberAccountStatus:function(e){return(0,a.WY)("/kitchen/api/member/member-account-status",{method:"POST",data:e})},GetMemberCardPageList:function(e){return(0,a.WY)("/kitchen/api/member/mmenber-card-page",{method:"POST",data:e})},AddMemberCard:function(e){return(0,a.WY)("/kitchen/api/member/mmenber-card",{method:"POST",data:e})},UpdateMemberCardState:function(e){return(0,a.WY)("/kitchen/api/member/mmenber-card-state",{method:"PUT",data:e})},GetDicList:function(e){return(0,a.WY)("/kitchen/api/dict-data/dic-list/".concat(e),{method:"Get"})},AddGateSetUp:function(e){return(0,a.WY)("/kitchen/api/GateInfo/AddGateSetUp",{method:"POST",data:e})},GetFoodList:function(e){return(0,a.WY)("/kitchen/api/dict-data/dic-list/".concat(e),{method:"Get"})},AddGateFood:function(e){return(0,a.WY)("/kitchen/api/GateInfo/AddGateFood",{method:"POST",data:e})},GetGoodsByMenuIdPage:function(e){return(0,a.WY)("/kitchen/api/FoodMenu/GetGoodsByMenuIdPage",{method:"POST",data:(0,y.Z)({},e)})}}},34952:function(j,M,n){"use strict";var y=n(22122),a=n(15105),s=n(67294),e=function(i,E){var S={};for(var c in i)Object.prototype.hasOwnProperty.call(i,c)&&E.indexOf(c)<0&&(S[c]=i[c]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var O=0,c=Object.getOwnPropertySymbols(i);O0&&(oe(u.data),W(u.data[0].id)),O.current.reload()):p.default.error(u.error||"\u83B7\u53D6\u6863\u53E3\u5217\u8868\u5931\u8D25");case 4:case"end":return E.stop()}},a)}));return function(d){return i.apply(this,arguments)}}();return(0,c.useEffect)(function(){ge()},[]),(0,t.jsx)($.ZP,{children:(0,t.jsxs)("div",{className:D().member_card_container,children:[(0,t.jsx)(V.ZP,{columns:pe,actionRef:O,request:(0,I.Z)((0,P.Z)().mark(function i(){var a;return(0,P.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:if(console.log("selectedGate",v),!v){u.next=7;break}return u.next=4,C.Z.PayCardByGateId(v,_e,k);case 4:if(a=u.sent,a.statusCode!==200){u.next=7;break}return u.abrupt("return",{data:a.data.data,success:!0,total:a.data.total});case 7:case"end":return u.stop()}},i)})),cardBordered:!0,editable:{type:"multiple"},rowKey:"id",search:!1,options:{setting:{listsHeight:400}},pagination:{pageSize:k,onChange:function(a){return me(a)}},dateFormatter:"string",headerTitle:"\u5237\u5361\u673A\u7BA1\u7406",toolBarRender:function(){return[(0,t.jsxs)("div",{className:D().table_search_item,children:[(0,t.jsx)("div",{children:"\u5F53\u524D\u95E8\u5E97\uFF1A"}),(0,t.jsx)(g.Z,{style:{width:300},value:ue,onChange:function(d){j(d),N(d),W({})},children:re.map(function(a){return(0,t.jsx)(Option,{value:a.id,children:a.store_Name},a.id)})})]}),(0,t.jsxs)("div",{className:D().table_search_item,children:[(0,t.jsx)("div",{children:"\u5F53\u524D\u6863\u53E3\uFF1A"}),(0,t.jsx)(g.Z,{style:{width:300},value:v,onChange:function(d){W(d),O.current.reload()},children:A.map(function(a){return(0,t.jsx)(Option,{value:a.id,children:a.name},a.id)})})]}),(0,t.jsx)(L.Z,{icon:(0,t.jsx)(w.Z,{}),type:"primary",onClick:Pe,children:"\u65B0\u5EFA"},"button")]}}),(0,t.jsx)(r.Z,{width:600,title:te.id?"\u7F16\u8F91\u5237\u5361\u673A":"\u6DFB\u52A0\u5237\u5361\u673A",visible:q,footer:!1,onCancel:function(){return S(!1)},children:(0,t.jsxs)(m.Z,{name:"basic",onFinish:Ee,form:G,labelCol:{span:4},children:[(0,t.jsx)(m.Z.Item,{label:"id",name:"id",hidden:!0,children:(0,t.jsx)(_.Z,{})}),(0,t.jsx)(m.Z.Item,{label:"\u8BBE\u5907\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6863\u53E3\u540D\u79F0\uFF01"}],children:(0,t.jsx)(_.Z,{})}),(0,t.jsx)(m.Z.Item,{label:"\u5F52\u5C5E\u6863\u53E3",name:"gateId",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5F52\u5C5E\u95E8\u5E97\uFF01"}],children:(0,t.jsx)(g.Z,{children:A.map(function(i){return(0,t.jsx)(g.Z.Option,{value:i.id,children:i.name},i.id)})})}),(0,t.jsx)(m.Z.Item,{label:"\u72B6\u6001",name:"status",children:(0,t.jsxs)(g.Z,{size:"large",defaultValue:1,children:[(0,t.jsx)(Option,{value:0,children:"\u6B63\u5E38"}),(0,t.jsx)(Option,{value:1,children:"\u7981\u7528"})]})}),(0,t.jsx)(m.Z.Item,{label:"\u95F4\u9694\u65F6\u95F4",name:"sleepTime",children:(0,t.jsx)(e.Z,{min:0})}),(0,t.jsx)(m.Z.Item,{label:"\u8BBE\u5907\u5730\u5740",name:"address",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6863\u53E3\u540D\u79F0\uFF01"},{pattern:new RegExp(/[0-9A-Fa-f]{2}/,"g"),message:"\u8BF7\u8F93\u516516\u8FDB\u5236\uFF01"}],children:(0,t.jsx)(_.Z,{})}),(0,t.jsx)(m.Z.Item,{children:(0,t.jsx)(L.Z,{type:"primary",htmlType:"submit",children:"\u786E\u5B9A"})})]})})]})})};M.default=H},66050:function(b,M,n){"use strict";var B=n(11849),r=n(48971);M.Z={GetAllStore:function(){return(0,r.WY)("/kitchen/api/StoreHelper/GetAllStore",{method:"GET",headers:{TenantId:""}})},GetMemberListByPage:function(e){return(0,r.WY)("/kitchen/api/member/member-page-query",{method:"POST",data:e})},OnBindMember:function(e){return(0,r.WY)("/kitchen/api/member/member-binding-cards",{method:"POST",data:e})},GetMemberAccountCardConsRecord:function(e){return(0,r.WY)("/kitchen/api/member/member-account-amount-page",{method:"POST",data:e})},GetMemberAccountRecordTotal:function(e){return(0,r.WY)("/kitchen/api/member/member-account-record-total",{method:"POST",data:e})},AddGate:function(e){return(0,r.WY)("/kitchen/api/GateInfo/add",{method:"POST",data:e})},EnableGate:function(e){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(0,r.WY)("/kitchen/api/GateInfo/Enable",{method:"POST",data:e,headers:{TenantId:l}})},GetGateListByStorePage:function(e,l,_){var T=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"";return(0,r.WY)("/kitchen/api/GateInfo/gatelist?StoreId=".concat(e,"&Current=").concat(l,"&PageSize=").concat(_),{method:"GET",headers:{TenantId:T}})},GetGateListByStorePageNew:function(e,l,_){var T=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"";return(0,r.WY)("/kitchen/api/one-card/gate-list?StoreId=".concat(e,"&Current=").concat(l,"&PageSize=").concat(_),{method:"GET",headers:{TenantId:T}})},GetGateListByStoreList:function(e){return(0,r.WY)("/kitchen/api/GateInfo/gatealllist?StoreId=".concat(e),{method:"GET"})},UpdateGateInfo:function(e){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(0,r.WY)("/kitchen/api/GateInfo/Update",{method:"POST",data:e,headers:{TenantId:l}})},UpdateGateInfoNew:function(e){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(0,r.WY)("/kitchen/api/one-card",{method:"PUT",data:e,headers:{TenantId:l}})},PayCardAdd:function(e){return(0,r.WY)("/kitchen/api/PayCard/add",{method:"POST",data:e})},PayCardEnable:function(e){return(0,r.WY)("/kitchenapi/PayCard/enable",{method:"POST",data:e})},PayCardByGateId:function(e,l,_){return(0,r.WY)("/kitchen/api/PayCard/gateList?GateId=".concat(e,"&Current=").concat(l,"&PageSize=").concat(_),{method:"GET"})},UpdatePayCardInfo:function(e){return(0,r.WY)("/kitchen/api/PayCard/update",{method:"POST",data:e})},GetCosRequestURL:function(e){return(0,r.WY)("/kitchen/api/systemconfig/GetCosRequestSignURL",{method:"POST",data:e})},GetMemberAccountPageList:function(e){return(0,r.WY)("/kitchen/api/member/member-account-page-list",{method:"POST",data:e})},UpdateMemberAccountStatus:function(e){return(0,r.WY)("/kitchen/api/member/member-account-status",{method:"POST",data:e})},GetMemberCardPageList:function(e){return(0,r.WY)("/kitchen/api/member/mmenber-card-page",{method:"POST",data:e})},AddMemberCard:function(e){return(0,r.WY)("/kitchen/api/member/mmenber-card",{method:"POST",data:e})},UpdateMemberCardState:function(e){return(0,r.WY)("/kitchen/api/member/mmenber-card-state",{method:"PUT",data:e})},GetDicList:function(e){return(0,r.WY)("/kitchen/api/dict-data/dic-list/".concat(e),{method:"Get"})},AddGateSetUp:function(e){return(0,r.WY)("/kitchen/api/GateInfo/AddGateSetUp",{method:"POST",data:e})},GetFoodList:function(e){return(0,r.WY)("/kitchen/api/dict-data/dic-list/".concat(e),{method:"Get"})},AddGateFood:function(e){return(0,r.WY)("/kitchen/api/GateInfo/AddGateFood",{method:"POST",data:e})},GetGoodsByMenuIdPage:function(e){return(0,r.WY)("/kitchen/api/FoodMenu/GetGoodsByMenuIdPage",{method:"POST",data:(0,B.Z)({},e)})}}}}]); +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[7578,1322],{94339:function(b){b.exports={table_search_item:"table_search_item___3IyYw"}},54581:function(b,M,n){"use strict";n.r(M);var L=n(71194),r=n(50146),s=n(77883),e=n(85986),l=n(47673),_=n(4107),T=n(57663),y=n(71577),Ce=n(43358),g=n(34041),P=n(39428),Oe=n(34792),p=n(48086),I=n(3182),Ge=n(9715),m=n(55843),h=n(2824),c=n(67294),z=n(94339),A=n.n(z),$=n(78009),w=n(49101),V=n(16894),C=n(66050),t=n(85893),H=function(){var O=(0,c.useRef)(),J=m.Z.useForm(),Q=(0,h.Z)(J,1),G=Q[0],X=(0,c.useState)(!1),W=(0,h.Z)(X,2),q=W[0],S=W[1],ee=(0,c.useState)({id:""}),Z=(0,h.Z)(ee,2),te=Z[0],ae=Z[1],ne=(0,c.useState)([]),R=(0,h.Z)(ne,2),re=R[0],se=R[1],de=(0,c.useState)(""),U=(0,h.Z)(de,2),ue=U[0],j=U[1],ie=(0,c.useState)([]),x=(0,h.Z)(ie,2),D=x[0],oe=x[1],le=(0,c.useState)(""),F=(0,h.Z)(le,2),v=F[0],B=F[1],ce=(0,c.useState)(1),K=(0,h.Z)(ce,2),_e=K[0],me=K[1],he=(0,c.useState)(10),Y=(0,h.Z)(he,2),k=Y[0],Me=Y[1],fe=function(a){ae(a),S(!0),G.setFieldsValue(a)},Pe=function(){S(!0),G.resetFields(),G.setFieldValue("sleepTime",10),G.setFieldValue("status",1)},Te=function(a){console.log("\u5220\u9664",a)},Ee=function(){var i=(0,I.Z)((0,P.Z)().mark(function a(d){var u,o;return(0,P.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:if(!d.id){f.next=7;break}return f.next=3,C.Z.UpdatePayCardInfo(d);case 3:u=f.sent,u.statusCode===200?(S(!1),p.default.success("\u66F4\u65B0\u6210\u529F\uFF01"),O.current.reload()):p.default.error(u.error||"\u66F4\u65B0\u8BBE\u5907\u5931\u8D25"),f.next=11;break;case 7:return f.next=9,C.Z.PayCardAdd(d);case 9:o=f.sent,o.statusCode===200?(S(!1),p.default.success("\u65B0\u589E\u6210\u529F\uFF01"),O.current.reload()):p.default.error(o.error||"\u65B0\u589E\u8BBE\u5907\u5931\u8D25");case 11:case"end":return f.stop()}},a)}));return function(d){return i.apply(this,arguments)}}(),pe=[{title:"\u8BBE\u5907\u540D\u79F0",dataIndex:"name",ellipsis:!0},{title:"\u5F52\u5C5E\u6863\u53E3",dataIndex:"gateId",render:function(a,d){var u=D.find(function(o){return o.id===d.gateId});return(0,t.jsx)("div",{children:u?u.name:"\u9ED8\u8BA4\u6863\u53E3"})}},{title:"\u8BBE\u5907\u5730\u5740",dataIndex:"address",ellipsis:!0},{title:"\u72B6\u6001",dataIndex:"status",valueType:"select",valueEnum:{0:{text:"\u6B63\u5E38",status:"Success"},1:{text:"\u7981\u7528",status:"Error"},2:{text:"\u5220\u9664",status:"Error"}}},{title:"\u95F4\u9694\u65F6\u95F4",dataIndex:"sleepTime"},{title:"\u64CD\u4F5C",valueType:"option",key:"option",render:function(a,d,u,o){return[(0,t.jsx)("a",{onClick:function(){return fe(d)},children:"\u7F16\u8F91"})]}}],ge=function(){var i=(0,I.Z)((0,P.Z)().mark(function a(){var d;return(0,P.Z)().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,C.Z.GetAllStore();case 2:d=o.sent,d.isSuccess?(se(d.data),j(d.data[0].id),N(d.data[0].id)):p.default.error(d.msg||"\u83B7\u53D6\u5E97\u94FA\u5217\u8868\u5931\u8D25");case 4:case"end":return o.stop()}},a)}));return function(){return i.apply(this,arguments)}}(),N=function(){var i=(0,I.Z)((0,P.Z)().mark(function a(d){var u;return(0,P.Z)().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return E.next=2,C.Z.GetGateListByStoreList(d);case 2:u=E.sent,u.statusCode===200?(u.data.length>0&&(oe(u.data),B(u.data[0].id)),O.current.reload()):p.default.error(u.error||"\u83B7\u53D6\u6863\u53E3\u5217\u8868\u5931\u8D25");case 4:case"end":return E.stop()}},a)}));return function(d){return i.apply(this,arguments)}}();return(0,c.useEffect)(function(){ge()},[]),(0,t.jsx)($.ZP,{children:(0,t.jsxs)("div",{className:A().member_card_container,children:[(0,t.jsx)(V.ZP,{columns:pe,actionRef:O,request:(0,I.Z)((0,P.Z)().mark(function i(){var a;return(0,P.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:if(console.log("selectedGate",v),!v){u.next=7;break}return u.next=4,C.Z.PayCardByGateId(v,_e,k);case 4:if(a=u.sent,a.statusCode!==200){u.next=7;break}return u.abrupt("return",{data:a.data.data,success:!0,total:a.data.total});case 7:case"end":return u.stop()}},i)})),cardBordered:!0,editable:{type:"multiple"},rowKey:"id",search:!1,options:{setting:{listsHeight:400}},pagination:{pageSize:k,onChange:function(a){return me(a)}},dateFormatter:"string",headerTitle:"\u5237\u5361\u673A\u7BA1\u7406",toolBarRender:function(){return[(0,t.jsxs)("div",{className:A().table_search_item,children:[(0,t.jsx)("div",{children:"\u5F53\u524D\u95E8\u5E97\uFF1A"}),(0,t.jsx)(g.Z,{style:{width:300},value:ue,onChange:function(d){j(d),N(d),B({})},children:re.map(function(a){return(0,t.jsx)(Option,{value:a.id,children:a.store_Name},a.id)})})]}),(0,t.jsxs)("div",{className:A().table_search_item,children:[(0,t.jsx)("div",{children:"\u5F53\u524D\u6863\u53E3\uFF1A"}),(0,t.jsx)(g.Z,{style:{width:300},value:v,onChange:function(d){B(d),O.current.reload()},children:D.map(function(a){return(0,t.jsx)(Option,{value:a.id,children:a.name},a.id)})})]}),(0,t.jsx)(y.Z,{icon:(0,t.jsx)(w.Z,{}),type:"primary",onClick:Pe,children:"\u65B0\u5EFA"},"button")]}}),(0,t.jsx)(r.Z,{width:600,title:te.id?"\u7F16\u8F91\u5237\u5361\u673A":"\u6DFB\u52A0\u5237\u5361\u673A",visible:q,footer:!1,onCancel:function(){return S(!1)},children:(0,t.jsxs)(m.Z,{name:"basic",onFinish:Ee,form:G,labelCol:{span:4},children:[(0,t.jsx)(m.Z.Item,{label:"id",name:"id",hidden:!0,children:(0,t.jsx)(_.Z,{})}),(0,t.jsx)(m.Z.Item,{label:"\u8BBE\u5907\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6863\u53E3\u540D\u79F0\uFF01"}],children:(0,t.jsx)(_.Z,{})}),(0,t.jsx)(m.Z.Item,{label:"\u5F52\u5C5E\u6863\u53E3",name:"gateId",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5F52\u5C5E\u95E8\u5E97\uFF01"}],children:(0,t.jsx)(g.Z,{children:D.map(function(i){return(0,t.jsx)(g.Z.Option,{value:i.id,children:i.name},i.id)})})}),(0,t.jsx)(m.Z.Item,{label:"\u72B6\u6001",name:"status",children:(0,t.jsxs)(g.Z,{size:"large",defaultValue:1,children:[(0,t.jsx)(Option,{value:0,children:"\u6B63\u5E38"}),(0,t.jsx)(Option,{value:1,children:"\u7981\u7528"})]})}),(0,t.jsx)(m.Z.Item,{label:"\u95F4\u9694\u65F6\u95F4",name:"sleepTime",children:(0,t.jsx)(e.Z,{min:0})}),(0,t.jsx)(m.Z.Item,{label:"\u8BBE\u5907\u5730\u5740",name:"address",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6863\u53E3\u540D\u79F0\uFF01"},{pattern:new RegExp(/[0-9A-Fa-f]{2}/,"g"),message:"\u8BF7\u8F93\u516516\u8FDB\u5236\uFF01"}],children:(0,t.jsx)(_.Z,{})}),(0,t.jsx)(m.Z.Item,{children:(0,t.jsx)(y.Z,{type:"primary",htmlType:"submit",children:"\u786E\u5B9A"})})]})})]})})};M.default=H},66050:function(b,M,n){"use strict";var L=n(11849),r=n(48971);M.Z={GetAllStore:function(){return(0,r.WY)("/kitchen/api/StoreHelper/GetAllStore",{method:"GET",headers:{TenantId:""}})},GetMemberListByPage:function(e){return(0,r.WY)("/kitchen/api/member/member-page-query",{method:"POST",data:e})},OnBindMember:function(e){return(0,r.WY)("/kitchen/api/member/member-binding-cards",{method:"POST",data:e})},GetMemberAccountCardConsRecord:function(e){return(0,r.WY)("/kitchen/api/member/member-account-amount-page",{method:"POST",data:e})},GetMemberAccountRecordTotal:function(e){return(0,r.WY)("/kitchen/api/member/member-account-record-total",{method:"POST",data:e})},AddGate:function(e){return(0,r.WY)("/kitchen/api/GateInfo/add",{method:"POST",data:e})},EnableGate:function(e){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(0,r.WY)("/kitchen/api/GateInfo/Enable",{method:"POST",data:e,headers:{TenantId:l}})},GetGateListByStorePage:function(e,l,_){var T=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"";return(0,r.WY)("/kitchen/api/GateInfo/gatelist?StoreId=".concat(e,"&Current=").concat(l,"&PageSize=").concat(_),{method:"GET",headers:{TenantId:T}})},GetGateListByStorePageNew:function(e,l,_){var T=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"";return(0,r.WY)("/kitchen/api/one-card/gate-list?StoreId=".concat(e,"&Current=").concat(l,"&PageSize=").concat(_),{method:"GET",headers:{TenantId:T}})},GetGateListByStoreList:function(e){return(0,r.WY)("/kitchen/api/GateInfo/gatealllist?StoreId=".concat(e),{method:"GET"})},UpdateGateInfo:function(e){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(0,r.WY)("/kitchen/api/GateInfo/Update",{method:"POST",data:e,headers:{TenantId:l}})},UpdateGateInfoNew:function(e){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(0,r.WY)("/kitchen/api/one-card",{method:"PUT",data:e,headers:{TenantId:l}})},PayCardAdd:function(e){return(0,r.WY)("/kitchen/api/PayCard/add",{method:"POST",data:e})},PayCardEnable:function(e){return(0,r.WY)("/kitchenapi/PayCard/enable",{method:"POST",data:e})},PayCardByGateId:function(e,l,_){return(0,r.WY)("/kitchen/api/PayCard/gateList?GateId=".concat(e,"&Current=").concat(l,"&PageSize=").concat(_),{method:"GET"})},UpdatePayCardInfo:function(e){return(0,r.WY)("/kitchen/api/PayCard/update",{method:"POST",data:e})},GetCosRequestURL:function(e){return(0,r.WY)("/kitchen/api/systemconfig/GetCosRequestSignURL",{method:"POST",data:e})},GetMemberAccountPageList:function(e){return(0,r.WY)("/kitchen/api/member/member-account-page-list",{method:"POST",data:e})},UpdateMemberAccountStatus:function(e){return(0,r.WY)("/kitchen/api/member/member-account-status",{method:"POST",data:e})},GetMemberCardPageList:function(e){return(0,r.WY)("/kitchen/api/member/mmenber-card-page",{method:"POST",data:e})},AddMemberCard:function(e){return(0,r.WY)("/kitchen/api/member/mmenber-card",{method:"POST",data:e})},UpdateMemberCardState:function(e){return(0,r.WY)("/kitchen/api/member/mmenber-card-state",{method:"PUT",data:e})},GetDicList:function(e){return(0,r.WY)("/kitchen/api/dict-data/dic-list/".concat(e),{method:"Get"})},AddGateSetUp:function(e){return(0,r.WY)("/kitchen/api/GateInfo/AddGateSetUp",{method:"POST",data:e})},GetFoodList:function(e){return(0,r.WY)("/kitchen/api/dict-data/dic-list/".concat(e),{method:"Get"})},AddGateFood:function(e){return(0,r.WY)("/kitchen/api/GateInfo/AddGateFood",{method:"POST",data:e})},GetGoodsByMenuIdPage:function(e){return(0,r.WY)("/kitchen/api/FoodMenu/GetGoodsByMenuIdPage",{method:"POST",data:(0,L.Z)({},e)})}}}}]); diff --git a/dist/p__card__memberAccount.c7ee936f.async.js b/dist/p__card__memberAccount.dfc17160.async.js similarity index 93% rename from dist/p__card__memberAccount.c7ee936f.async.js rename to dist/p__card__memberAccount.dfc17160.async.js index 0ca3719..7d99783 100644 --- a/dist/p__card__memberAccount.c7ee936f.async.js +++ b/dist/p__card__memberAccount.dfc17160.async.js @@ -1 +1 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[6377,1322],{73382:function(E){E.exports={expend_total_count:"expend_total_count___tKNS_"}},21717:function(E,T,r){"use strict";r.r(T);var O=r(71194),t=r(50146),n=r(66456),e=r(64411),_=r(94233),C=r(51890),f=r(39428),Oe=r(34792),A=r(48086),b=r(3182),l=r(2824),s=r(67294),X=r(73382),R=r.n(X),q=r(78009),ee=r(89366),D=r(16894),I=r(66050),h=r(85893),te=function(){var ae=(0,s.useRef)(),ne=(0,s.useState)(!1),v=(0,l.Z)(ne,2),re=v[0],G=v[1],de=(0,s.useState)({functionName:"",record:{},type:0}),y=(0,l.Z)(de,2),P=y[0],W=y[1],oe=(0,s.useState)(1),B=(0,l.Z)(oe,2),Re=B[0],se=B[1],ue=(0,s.useState)(10),L=(0,l.Z)(ue,2),ie=L[0],De=L[1],ce=(0,s.useState)(0),x=(0,l.Z)(ce,2),ve=x[0],me=x[1],_e=(0,s.useState)(),U=(0,l.Z)(_e,2),le=U[0],Z=U[1],he=(0,s.useState)(1),k=(0,l.Z)(he,2),g=k[0],K=k[1],pe=(0,s.useState)(10),Y=(0,l.Z)(pe,2),M=Y[0],fe=Y[1],Ce=(0,s.useState)(0),j=(0,l.Z)(Ce,2),Pe=j[0],N=j[1],Se=(0,s.useState)(0),F=(0,l.Z)(Se,2),ge=F[0],z=F[1],Te=(0,s.useState)(0),w=(0,l.Z)(Te,2),Ie=w[0],J=w[1],Ee=(0,s.useState)(),$=(0,l.Z)(Ee,2),S=$[0],H=$[1],Q=function(){var u=(0,b.Z)((0,f.Z)().mark(function d(a,i){var o,c;return(0,f.Z)().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return o={current:g,pageSize:M,memberInfoId:a.memberInfoId,memberCardId:"",type:i},S&&(o.startTime=S[0],o.endTime=S[1]),p.next=4,I.Z.GetMemberAccountCardConsRecord(o);case 4:c=p.sent,W({functionName:"onFetchAccountConsRecord",record:JSON.parse(JSON.stringify(a)),type:i}),c.statusCode===200?(Z(c.data.data),N(c.data.total),G(!0)):A.default.error(c.errors);case 7:case"end":return p.stop()}},d)}));return function(a,i){return u.apply(this,arguments)}}(),V=function(){var u=(0,b.Z)((0,f.Z)().mark(function d(a,i){var o,c;return(0,f.Z)().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return o={current:g,pageSize:M,memberInfoId:a.memberInfoId,memberCardId:a.id,type:i},S&&(o.startTime=S[0],o.endTime=S[1]),p.next=4,I.Z.GetMemberAccountCardConsRecord(o);case 4:c=p.sent,W({functionName:"onFetchCardConsRecord",record:JSON.parse(JSON.stringify(a)),type:i}),c.statusCode===200?(Z(c.data.data),N(c.data.total),G(!0)):A.default.error(c.errors);case 7:case"end":return p.stop()}},d)}));return function(a,i){return u.apply(this,arguments)}}(),be=[{title:"\u8D77\u6B62\u65F6\u95F4",dataIndex:"dateRange",hideInTable:!0,valueType:"dateRange"},{title:"\u5934\u50CF",dataIndex:"headImgUrl",ellipsis:!0,width:100,hideInSearch:!0,align:"center",render:function(d,a){return(0,h.jsx)(C.C,{size:64,shape:"square",icon:(0,h.jsx)(ee.Z,{}),src:a.headImgUrl})}},{title:"\u59D3\u540D",dataIndex:"name",ellipsis:!0},{title:"\u5361\u53F7",dataIndex:"memberCardNum",ellipsis:!0},{title:"\u8054\u7CFB\u65B9\u5F0F",dataIndex:"memberPhone",ellipsis:!0,hideInSearch:!0},{title:"\u4F59\u989D",dataIndex:"money",hideInSearch:!0},{title:"\u64CD\u4F5C",valueType:"option",key:"option",render:function(d,a){return[(0,h.jsx)("a",{onClick:function(){return Q(a,-1)},children:"\u8D26\u6237\u6D88\u8D39\u8BB0\u5F55"})]}}],Ge=function(d){var a=[{title:"\u5361\u53F7",dataIndex:"cardNum",key:"cardNum"},{title:"\u72B6\u6001",dataIndex:"state",valueType:"select",valueEnum:{0:{text:"\u7981\u7528",status:"Error"},1:{text:"\u6B63\u5E38",status:"Success"},2:{text:"\u6302\u5931",status:"Error"},3:{text:"\u4F5C\u5E9F",status:"Error"}}},{title:"\u7C7B\u578B",dataIndex:"type",valueType:"select",valueEnum:{1:{text:"\u4EBA\u8138",status:"Success"},2:{text:"\u5B9E\u4F53\u5361",status:"Success"},3:{text:"\u6307\u7EB9",status:"Success"}}},{title:"\u64CD\u4F5C",valueType:"option",key:"option",render:function(o,c){return[(0,h.jsx)("a",{onClick:function(){return V(c,-1)},children:"\u4F1A\u5458\u5361\u6D88\u8D39\u8BB0\u5F55"})]}}];return(0,h.jsx)(D.ZP,{toolBarRender:!1,search:!1,rowKey:"id",columns:a,dataSource:d.cards,pagination:!1})},Me=[{title:"\u65F6\u95F4",dataIndex:"createAt",width:200},{title:"\u7C7B\u578B",dataIndex:"type",ellipsis:!0,render:function(d,a){return(0,h.jsx)("div",{children:a.type=="-1"?"\u6D88\u8D39":"\u5145\u503C"})}}];return(0,s.useEffect)(function(){g!==1&&(P.functionName==="onFetchAccountConsRecord"?Q(P.record,P.type):P.functionName==="onFetchCardConsRecord"&&V(P.record,P.type))},[g]),(0,h.jsx)(q.ZP,{children:(0,h.jsxs)("div",{className:R().member_card_container,children:[(0,h.jsx)(D.ZP,{title:function(){return(0,h.jsxs)("div",{className:R().expend_total_count,children:["\u6D88\u8D39\u6B21\u6570",ge,"\uFF0C\u6D88\u8D39\u4EBA\u6570",Ie]})},columns:be,actionRef:ae,expandable:{expandedRowRender:function(d){return Ge(d)}},request:function(){var u=(0,b.Z)((0,f.Z)().mark(function d(a){var i,o;return(0,f.Z)().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:if(a.memberCardNum&&(a.cardNum=a.memberCardNum),!a.dateRange){m.next=9;break}return H(a.dateRange),m.next=5,I.Z.GetMemberAccountRecordTotal({startTime:a.dateRange[0],endTime:a.dateRange[1]});case 5:i=m.sent,i.statusCode===200&&(z(i.data.expendTotalCount),J(i.data.personTotalcCount)),m.next=12;break;case 9:H(null),z(0),J(0);case 12:return delete a.dateRange,delete a.memberCardNum,m.next=16,I.Z.GetMemberAccountPageList(a);case 16:return o=m.sent,me(o.data.data),m.abrupt("return",{data:o.data.data,success:!0,total:o.data.total});case 19:case"end":return m.stop()}},d)}));return function(d){return u.apply(this,arguments)}}(),cardBordered:!0,editable:{type:"multiple"},rowKey:"id",options:{setting:{listsHeight:400}},pagination:{pageSize:ie,onChange:function(d){return se(d)}},dateFormatter:"string",headerTitle:"\u50A8\u503C\u5361\u8D26\u6237\u7BA1\u7406"}),(0,h.jsx)(t.Z,{width:800,title:"\u6D88\u8D39\u8BB0\u5F55",visible:re,footer:!1,onCancel:function(){G(!1),K(1)},children:(0,h.jsx)(e.Z,{columns:Me,dataSource:le,pagination:{current:g,pageSize:M,total:Pe,onChange:function(d,a){K(d),fe(a)}}})})]})})};T.default=te},66050:function(E,T,r){"use strict";var O=r(11849),t=r(48971);T.Z={GetAllStore:function(){return(0,t.WY)("/kitchen/api/StoreHelper/GetAllStore",{method:"GET",headers:{TenantId:""}})},GetMemberListByPage:function(e){return(0,t.WY)("/kitchen/api/member/member-page-query",{method:"POST",data:e})},OnBindMember:function(e){return(0,t.WY)("/kitchen/api/member/member-binding-cards",{method:"POST",data:e})},GetMemberAccountCardConsRecord:function(e){return(0,t.WY)("/kitchen/api/member/member-account-amount-page",{method:"POST",data:e})},GetMemberAccountRecordTotal:function(e){return(0,t.WY)("/kitchen/api/member/member-account-record-total",{method:"POST",data:e})},AddGate:function(e){return(0,t.WY)("/kitchen/api/GateInfo/add",{method:"POST",data:e})},EnableGate:function(e){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(0,t.WY)("/kitchen/api/GateInfo/Enable",{method:"POST",data:e,headers:{TenantId:_}})},GetGateListByStorePage:function(e,_,C){var f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"";return(0,t.WY)("/kitchen/api/GateInfo/gatelist?StoreId=".concat(e,"&Current=").concat(_,"&PageSize=").concat(C),{method:"GET",headers:{TenantId:f}})},GetGateListByStorePageNew:function(e,_,C){var f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"";return(0,t.WY)("/kitchen/api/one-card/gate-list?StoreId=".concat(e,"&Current=").concat(_,"&PageSize=").concat(C),{method:"GET",headers:{TenantId:f}})},GetGateListByStoreList:function(e){return(0,t.WY)("/kitchen/api/GateInfo/gatealllist?StoreId=".concat(e),{method:"GET"})},UpdateGateInfo:function(e){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(0,t.WY)("/kitchen/api/GateInfo/Update",{method:"POST",data:e,headers:{TenantId:_}})},UpdateGateInfoNew:function(e){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(0,t.WY)("/kitchen/api/one-card",{method:"PUT",data:e,headers:{TenantId:_}})},PayCardAdd:function(e){return(0,t.WY)("/kitchen/api/PayCard/add",{method:"POST",data:e})},PayCardEnable:function(e){return(0,t.WY)("/kitchenapi/PayCard/enable",{method:"POST",data:e})},PayCardByGateId:function(e,_,C){return(0,t.WY)("/kitchen/api/PayCard/gateList?GateId=".concat(e,"&Current=").concat(_,"&PageSize=").concat(C),{method:"GET"})},UpdatePayCardInfo:function(e){return(0,t.WY)("/kitchen/api/PayCard/update",{method:"POST",data:e})},GetCosRequestURL:function(e){return(0,t.WY)("/kitchen/api/systemconfig/GetCosRequestSignURL",{method:"POST",data:e})},GetMemberAccountPageList:function(e){return(0,t.WY)("/kitchen/api/member/member-account-page-list",{method:"POST",data:e})},UpdateMemberAccountStatus:function(e){return(0,t.WY)("/kitchen/api/member/member-account-status",{method:"POST",data:e})},GetMemberCardPageList:function(e){return(0,t.WY)("/kitchen/api/member/mmenber-card-page",{method:"POST",data:e})},AddMemberCard:function(e){return(0,t.WY)("/kitchen/api/member/mmenber-card",{method:"POST",data:e})},UpdateMemberCardState:function(e){return(0,t.WY)("/kitchen/api/member/mmenber-card-state",{method:"PUT",data:e})},GetDicList:function(e){return(0,t.WY)("/kitchen/api/dict-data/dic-list/".concat(e),{method:"Get"})},AddGateSetUp:function(e){return(0,t.WY)("/kitchen/api/GateInfo/AddGateSetUp",{method:"POST",data:e})},GetFoodList:function(e){return(0,t.WY)("/kitchen/api/dict-data/dic-list/".concat(e),{method:"Get"})},AddGateFood:function(e){return(0,t.WY)("/kitchen/api/GateInfo/AddGateFood",{method:"POST",data:e})},GetGoodsByMenuIdPage:function(e){return(0,t.WY)("/kitchen/api/FoodMenu/GetGoodsByMenuIdPage",{method:"POST",data:(0,O.Z)({},e)})}}}}]); +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[6377,1322],{73382:function(E){E.exports={expend_total_count:"expend_total_count___tKNS_"}},21717:function(E,T,r){"use strict";r.r(T);var O=r(71194),t=r(50146),n=r(66456),e=r(64411),_=r(94233),C=r(51890),f=r(39428),Oe=r(34792),A=r(48086),b=r(3182),l=r(2824),s=r(67294),X=r(73382),R=r.n(X),q=r(78009),ee=r(89366),D=r(16894),I=r(66050),h=r(85893),te=function(){var ae=(0,s.useRef)(),ne=(0,s.useState)(!1),v=(0,l.Z)(ne,2),re=v[0],G=v[1],de=(0,s.useState)({functionName:"",record:{},type:0}),y=(0,l.Z)(de,2),P=y[0],B=y[1],oe=(0,s.useState)(1),W=(0,l.Z)(oe,2),Re=W[0],se=W[1],ue=(0,s.useState)(10),L=(0,l.Z)(ue,2),ie=L[0],De=L[1],ce=(0,s.useState)(0),x=(0,l.Z)(ce,2),ve=x[0],me=x[1],_e=(0,s.useState)(),U=(0,l.Z)(_e,2),le=U[0],Z=U[1],he=(0,s.useState)(1),K=(0,l.Z)(he,2),g=K[0],Y=K[1],pe=(0,s.useState)(10),j=(0,l.Z)(pe,2),M=j[0],fe=j[1],Ce=(0,s.useState)(0),k=(0,l.Z)(Ce,2),Pe=k[0],N=k[1],Se=(0,s.useState)(0),F=(0,l.Z)(Se,2),ge=F[0],z=F[1],Te=(0,s.useState)(0),w=(0,l.Z)(Te,2),Ie=w[0],J=w[1],Ee=(0,s.useState)(),$=(0,l.Z)(Ee,2),S=$[0],H=$[1],Q=function(){var u=(0,b.Z)((0,f.Z)().mark(function d(a,i){var o,c;return(0,f.Z)().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return o={current:g,pageSize:M,memberInfoId:a.memberInfoId,memberCardId:"",type:i},S&&(o.startTime=S[0],o.endTime=S[1]),p.next=4,I.Z.GetMemberAccountCardConsRecord(o);case 4:c=p.sent,B({functionName:"onFetchAccountConsRecord",record:JSON.parse(JSON.stringify(a)),type:i}),c.statusCode===200?(Z(c.data.data),N(c.data.total),G(!0)):A.default.error(c.errors);case 7:case"end":return p.stop()}},d)}));return function(a,i){return u.apply(this,arguments)}}(),V=function(){var u=(0,b.Z)((0,f.Z)().mark(function d(a,i){var o,c;return(0,f.Z)().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return o={current:g,pageSize:M,memberInfoId:a.memberInfoId,memberCardId:a.id,type:i},S&&(o.startTime=S[0],o.endTime=S[1]),p.next=4,I.Z.GetMemberAccountCardConsRecord(o);case 4:c=p.sent,B({functionName:"onFetchCardConsRecord",record:JSON.parse(JSON.stringify(a)),type:i}),c.statusCode===200?(Z(c.data.data),N(c.data.total),G(!0)):A.default.error(c.errors);case 7:case"end":return p.stop()}},d)}));return function(a,i){return u.apply(this,arguments)}}(),be=[{title:"\u8D77\u6B62\u65F6\u95F4",dataIndex:"dateRange",hideInTable:!0,valueType:"dateRange"},{title:"\u5934\u50CF",dataIndex:"headImgUrl",ellipsis:!0,width:100,hideInSearch:!0,align:"center",render:function(d,a){return(0,h.jsx)(C.C,{size:64,shape:"square",icon:(0,h.jsx)(ee.Z,{}),src:a.headImgUrl})}},{title:"\u59D3\u540D",dataIndex:"name",ellipsis:!0},{title:"\u5361\u53F7",dataIndex:"memberCardNum",ellipsis:!0},{title:"\u8054\u7CFB\u65B9\u5F0F",dataIndex:"memberPhone",ellipsis:!0,hideInSearch:!0},{title:"\u4F59\u989D",dataIndex:"money",hideInSearch:!0},{title:"\u64CD\u4F5C",valueType:"option",key:"option",render:function(d,a){return[(0,h.jsx)("a",{onClick:function(){return Q(a,-1)},children:"\u8D26\u6237\u6D88\u8D39\u8BB0\u5F55"})]}}],Ge=function(d){var a=[{title:"\u5361\u53F7",dataIndex:"cardNum",key:"cardNum"},{title:"\u72B6\u6001",dataIndex:"state",valueType:"select",valueEnum:{0:{text:"\u7981\u7528",status:"Error"},1:{text:"\u6B63\u5E38",status:"Success"},2:{text:"\u6302\u5931",status:"Error"},3:{text:"\u4F5C\u5E9F",status:"Error"}}},{title:"\u7C7B\u578B",dataIndex:"type",valueType:"select",valueEnum:{1:{text:"\u4EBA\u8138",status:"Success"},2:{text:"\u5B9E\u4F53\u5361",status:"Success"},3:{text:"\u6307\u7EB9",status:"Success"}}},{title:"\u64CD\u4F5C",valueType:"option",key:"option",render:function(o,c){return[(0,h.jsx)("a",{onClick:function(){return V(c,-1)},children:"\u4F1A\u5458\u5361\u6D88\u8D39\u8BB0\u5F55"})]}}];return(0,h.jsx)(D.ZP,{toolBarRender:!1,search:!1,rowKey:"id",columns:a,dataSource:d.cards,pagination:!1})},Me=[{title:"\u65F6\u95F4",dataIndex:"createAt",width:200},{title:"\u7C7B\u578B",dataIndex:"type",ellipsis:!0,render:function(d,a){return(0,h.jsx)("div",{children:a.type=="-1"?"\u6D88\u8D39":"\u5145\u503C"})}}];return(0,s.useEffect)(function(){g!==1&&(P.functionName==="onFetchAccountConsRecord"?Q(P.record,P.type):P.functionName==="onFetchCardConsRecord"&&V(P.record,P.type))},[g]),(0,h.jsx)(q.ZP,{children:(0,h.jsxs)("div",{className:R().member_card_container,children:[(0,h.jsx)(D.ZP,{title:function(){return(0,h.jsxs)("div",{className:R().expend_total_count,children:["\u6D88\u8D39\u6B21\u6570",ge,"\uFF0C\u6D88\u8D39\u4EBA\u6570",Ie]})},columns:be,actionRef:ae,expandable:{expandedRowRender:function(d){return Ge(d)}},request:function(){var u=(0,b.Z)((0,f.Z)().mark(function d(a){var i,o;return(0,f.Z)().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:if(a.memberCardNum&&(a.cardNum=a.memberCardNum),!a.dateRange){m.next=9;break}return H(a.dateRange),m.next=5,I.Z.GetMemberAccountRecordTotal({startTime:a.dateRange[0],endTime:a.dateRange[1]});case 5:i=m.sent,i.statusCode===200&&(z(i.data.expendTotalCount),J(i.data.personTotalcCount)),m.next=12;break;case 9:H(null),z(0),J(0);case 12:return delete a.dateRange,delete a.memberCardNum,m.next=16,I.Z.GetMemberAccountPageList(a);case 16:return o=m.sent,me(o.data.data),m.abrupt("return",{data:o.data.data,success:!0,total:o.data.total});case 19:case"end":return m.stop()}},d)}));return function(d){return u.apply(this,arguments)}}(),cardBordered:!0,editable:{type:"multiple"},rowKey:"id",options:{setting:{listsHeight:400}},pagination:{pageSize:ie,onChange:function(d){return se(d)}},dateFormatter:"string",headerTitle:"\u50A8\u503C\u5361\u8D26\u6237\u7BA1\u7406"}),(0,h.jsx)(t.Z,{width:800,title:"\u6D88\u8D39\u8BB0\u5F55",visible:re,footer:!1,onCancel:function(){G(!1),Y(1)},children:(0,h.jsx)(e.Z,{columns:Me,dataSource:le,pagination:{current:g,pageSize:M,total:Pe,onChange:function(d,a){Y(d),fe(a)}}})})]})})};T.default=te},66050:function(E,T,r){"use strict";var O=r(11849),t=r(48971);T.Z={GetAllStore:function(){return(0,t.WY)("/kitchen/api/StoreHelper/GetAllStore",{method:"GET",headers:{TenantId:""}})},GetMemberListByPage:function(e){return(0,t.WY)("/kitchen/api/member/member-page-query",{method:"POST",data:e})},OnBindMember:function(e){return(0,t.WY)("/kitchen/api/member/member-binding-cards",{method:"POST",data:e})},GetMemberAccountCardConsRecord:function(e){return(0,t.WY)("/kitchen/api/member/member-account-amount-page",{method:"POST",data:e})},GetMemberAccountRecordTotal:function(e){return(0,t.WY)("/kitchen/api/member/member-account-record-total",{method:"POST",data:e})},AddGate:function(e){return(0,t.WY)("/kitchen/api/GateInfo/add",{method:"POST",data:e})},EnableGate:function(e){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(0,t.WY)("/kitchen/api/GateInfo/Enable",{method:"POST",data:e,headers:{TenantId:_}})},GetGateListByStorePage:function(e,_,C){var f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"";return(0,t.WY)("/kitchen/api/GateInfo/gatelist?StoreId=".concat(e,"&Current=").concat(_,"&PageSize=").concat(C),{method:"GET",headers:{TenantId:f}})},GetGateListByStorePageNew:function(e,_,C){var f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"";return(0,t.WY)("/kitchen/api/one-card/gate-list?StoreId=".concat(e,"&Current=").concat(_,"&PageSize=").concat(C),{method:"GET",headers:{TenantId:f}})},GetGateListByStoreList:function(e){return(0,t.WY)("/kitchen/api/GateInfo/gatealllist?StoreId=".concat(e),{method:"GET"})},UpdateGateInfo:function(e){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(0,t.WY)("/kitchen/api/GateInfo/Update",{method:"POST",data:e,headers:{TenantId:_}})},UpdateGateInfoNew:function(e){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(0,t.WY)("/kitchen/api/one-card",{method:"PUT",data:e,headers:{TenantId:_}})},PayCardAdd:function(e){return(0,t.WY)("/kitchen/api/PayCard/add",{method:"POST",data:e})},PayCardEnable:function(e){return(0,t.WY)("/kitchenapi/PayCard/enable",{method:"POST",data:e})},PayCardByGateId:function(e,_,C){return(0,t.WY)("/kitchen/api/PayCard/gateList?GateId=".concat(e,"&Current=").concat(_,"&PageSize=").concat(C),{method:"GET"})},UpdatePayCardInfo:function(e){return(0,t.WY)("/kitchen/api/PayCard/update",{method:"POST",data:e})},GetCosRequestURL:function(e){return(0,t.WY)("/kitchen/api/systemconfig/GetCosRequestSignURL",{method:"POST",data:e})},GetMemberAccountPageList:function(e){return(0,t.WY)("/kitchen/api/member/member-account-page-list",{method:"POST",data:e})},UpdateMemberAccountStatus:function(e){return(0,t.WY)("/kitchen/api/member/member-account-status",{method:"POST",data:e})},GetMemberCardPageList:function(e){return(0,t.WY)("/kitchen/api/member/mmenber-card-page",{method:"POST",data:e})},AddMemberCard:function(e){return(0,t.WY)("/kitchen/api/member/mmenber-card",{method:"POST",data:e})},UpdateMemberCardState:function(e){return(0,t.WY)("/kitchen/api/member/mmenber-card-state",{method:"PUT",data:e})},GetDicList:function(e){return(0,t.WY)("/kitchen/api/dict-data/dic-list/".concat(e),{method:"Get"})},AddGateSetUp:function(e){return(0,t.WY)("/kitchen/api/GateInfo/AddGateSetUp",{method:"POST",data:e})},GetFoodList:function(e){return(0,t.WY)("/kitchen/api/dict-data/dic-list/".concat(e),{method:"Get"})},AddGateFood:function(e){return(0,t.WY)("/kitchen/api/GateInfo/AddGateFood",{method:"POST",data:e})},GetGoodsByMenuIdPage:function(e){return(0,t.WY)("/kitchen/api/FoodMenu/GetGoodsByMenuIdPage",{method:"POST",data:(0,O.Z)({},e)})}}}}]); diff --git a/dist/p__card__reservation.302f5d46.async.js b/dist/p__card__reservation.302f5d46.async.js new file mode 100644 index 0000000..d19c481 --- /dev/null +++ b/dist/p__card__reservation.302f5d46.async.js @@ -0,0 +1 @@ +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[3991,1322,9464,1981,2869,7013,9719,2383],{32141:function($){$.exports={"welcome-head":"welcome-head___2KkzI","welcome-head-org":"welcome-head-org___1csW8","echarts-card-choose":"echarts-card-choose___3MUZE","my-loading":"my-loading___13xim","device-list":"device-list___2yRMk","my-range-picker":"my-range-picker___3_gNJ","tabs-title":"tabs-title___qUM48"}},10370:function($,W,s){"use strict";s.r(W),s.d(W,{default:function(){return je}});var mt=s(66456),M=s(64411),ft=s(49111),A=s(19650),ht=s(58024),V=s(91894),xt=s(13062),he=s(71230),gt=s(57663),w=s(71577),pt=s(43358),K=s(34041),yt=s(89032),N=s(15746),St=s(20228),xe=s(11382),d=s(39428),Z=s(3182),f=s(2824),Rt=s(18106),J=s(95562),Dt=s(14965),ge=s(91774),v=s(67294),L=s(90631),pe=s(30381),y=s.n(pe),E=s(48971),j={GetReservationUser:function(o){return(0,E.WY)("/kitchen/api/Reservation/GetReservationUser",{method:"POST",data:o})},GetReservationGoods:function(o){return(0,E.WY)("/kitchen/api/Reservation/GetReservationGoods",{method:"POST",data:o})},GetReservationGoodsDetailed:function(o){return(0,E.WY)("/kitchen/api/Reservation/GetReservationGoodsDetailed",{method:"POST",data:o})},GetReservationUserGoods:function(o){return(0,E.WY)("/kitchen/api/Reservation/GetReservationUserGoods",{method:"POST",data:o})},GetDeparent:function(o){return(0,E.WY)("/kitchen/api/member-tag/member-tag",{method:"POST",data:o})},GetReservationGoodsExcel:function(o){return(0,E.WY)("/kitchen/api/Reservation/GetReservationGoodsExcel",{method:"POST",responseType:"blob",data:o})},GetReservationUserExcel:function(o){return(0,E.WY)("/kitchen/api/Reservation/GetReservationUserExcel",{method:"POST",responseType:"blob",data:o})},GetReservationOrgExcel:function(o){return(0,E.WY)("/kitchen/api/Reservation/GetReservationOrgExcel",{method:"POST",responseType:"blob",data:o})},GetReservationGoodsDetailedExcel:function(o){return(0,E.WY)("/kitchen/api/Reservation/GetReservationGoodsDetailedExcel",{method:"POST",responseType:"blob",data:o})},GetReservationOrg:function(o){return(0,E.WY)("/kitchen/api/Reservation/GetReservationOrg",{method:"POST",data:o})}},ye=s(32141),h=s.n(ye),Se=s(78009),Gt=s(71194),Re=s(50146),De=s(16894),t=s(85893),Ge=function(o){console.log("\u8C03\u8BD51",o);var R=[{title:"\u4E3B\u952E",dataIndex:"id",hideInTable:!0,hideInSearch:!0},{title:"\u5546\u54C1",dataIndex:"name"},{title:"\u7528\u9910\u65F6\u6BB5",dataIndex:"mealType",render:function(U,p){if(p.mealType==="1")return"\u65E9\u9910";if(p.mealType==="2")return"\u5348\u9910";if(p.mealType==="3")return"\u665A\u9910"}},{title:"\u9884\u5B9A\u6570\u91CF",dataIndex:"qty",sortDirections:["ascend","descend"],sorter:function(U,p){return U.value-p.value}},{title:"\u9884\u5B9A\u65F6\u95F4",dataIndex:"reservationTime"}];return(0,t.jsx)(Re.Z,{title:"\u67E5\u770B\u9884\u5B9A\u8BE6\u60C5",width:640,visible:o.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){o.onCancel()},destroyOnClose:!0,children:(0,t.jsx)(De.ZP,{headerTitle:"\u67E5\u770B\u9884\u5B9A\u8BE6\u60C5",rowKey:"id",search:!1,request:function(){var O=(0,Z.Z)((0,d.Z)().mark(function U(p){var g,T;return(0,d.Z)().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return g=[],T=0,o.values.id!=null&&(p.UserId=o.values.id,p.beginTime=o.timeRange[0]._i,p.endTime=o.timeRange[1]._i),C.next=5,j.GetReservationUserGoods(p).then(function(D){g=D.data.data,T=D.data.total});case 5:return C.abrupt("return",{data:g,success:!0,total:T});case 6:case"end":return C.stop()}},U)}));return function(U){return O.apply(this,arguments)}}(),columns:R})})},Ze=Ge,Ee=ge.Z.RangePicker,P=J.Z.TabPane,je=function(){var S=(0,v.useState)(1),o=(0,f.Z)(S,2),R=o[0],O=o[1],U=(0,v.useState)(1),p=(0,f.Z)(U,2),g=p[0],T=p[1],H=(0,v.useState)(10),C=(0,f.Z)(H,2),D=C[0],F=C[1],Te=(0,v.useState)(0),Q=(0,f.Z)(Te,2),k=Q[0],z=Q[1],Ce=(0,v.useState)([]),X=(0,f.Z)(Ce,2),Be=X[0],Ue=X[1],we=(0,v.useState)([]),q=(0,f.Z)(we,2),Oe=q[0],Ie=q[1],Ye=(0,v.useState)([]),_=(0,f.Z)(Ye,2),be=_[0],Fe=_[1],ze=(0,v.useState)([]),ee=(0,f.Z)(ze,2),Me=ee[0],Ae=ee[1],Ne=(0,v.useState)(!1),te=(0,f.Z)(Ne,2),Le=te[0],B=te[1],Pe=(0,v.useState)(!1),ae=(0,f.Z)(Pe,2),ke=ae[0],ne=ae[1],$e=(0,v.useState)(),re=(0,f.Z)($e,2),We=re[0],se=re[1],Ve=(0,v.useState)([y()(y()(new Date(Date.now()+24*60*60*1e3)).format("YYYY-MM-DD 00:00:00")),y()(y()(new Date(Date.now()+24*60*60*1e3)).format("YYYY-MM-DD 23:59:59"))]),ie=(0,f.Z)(Ve,2),G=ie[0],oe=ie[1],Ke=[{title:"\u5546\u54C1",dataIndex:"name"},{title:"\u7528\u9910\u65F6\u6BB5",dataIndex:"mealType",render:function(a,e){if(e.mealType==="1")return"\u65E9\u9910";if(e.mealType==="2")return"\u5348\u9910";if(e.mealType==="3")return"\u665A\u9910"}},{title:"\u9884\u5B9A\u6570\u91CF",dataIndex:"qty",sortDirections:["ascend","descend"],sorter:function(a,e){return a.value-e.value}},{title:"\u9884\u5B9A\u65F6\u95F4",dataIndex:"createAt"}],Je=[{title:"\u5546\u54C1",dataIndex:"name"},{title:"\u9884\u5B9A\u90E8\u95E8",dataIndex:"orgName"},{title:"\u9884\u5B9A\u4EBA\u59D3\u540D",dataIndex:"realName"},{title:"\u7528\u9910\u65F6\u6BB5",dataIndex:"mealType",render:function(a,e){if(e.mealType==="1")return"\u65E9\u9910";if(e.mealType==="2")return"\u5348\u9910";if(e.mealType==="3")return"\u665A\u9910"}},{title:"\u9884\u5B9A\u6570\u91CF",dataIndex:"qty",sortDirections:["ascend","descend"],sorter:function(a,e){return a.value-e.value}},{title:"\u662F\u5426\u7EDF\u4E00\u9884\u5B9A",dataIndex:"qty",render:function(a,e){return e.qty>1?"\u662F":"\u5426"}},{title:"\u9884\u5B9A\u65F6\u95F4",dataIndex:"createAt"}],He=[{title:"\u90E8\u95E8\u540D\u79F0",dataIndex:"orgName"},{title:"\u7528\u9910\u65F6\u6BB5",dataIndex:"mealType",render:function(a,e){if(e.mealType==="1")return"\u65E9\u9910";if(e.mealType==="2")return"\u5348\u9910";if(e.mealType==="3")return"\u665A\u9910"}},{title:"\u9884\u5B9A\u6570\u91CF",dataIndex:"qty",sortDirections:["ascend","descend"],sorter:function(a,e){return a.value-e.value}}],Qe=[{title:"\u9884\u5B9A\u4EBA\u5458\u540D\u79F0",dataIndex:"name"},{title:"\u90E8\u95E8",dataIndex:"orgName"},{title:"\u9884\u5B9A\u6570\u91CF",dataIndex:"qty",sortDirections:["ascend","descend"],sorter:function(a,e){return a.value-e.value}},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(a,e){return(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("a",{onClick:function(){ne(!0),se(e)},children:"\u67E5\u770B\u8BE6\u60C5"})})}}],Xe=(0,v.useState)([]),le=(0,f.Z)(Xe,2),I=le[0],qe=le[1],_e=(0,v.useState)(),ue=(0,f.Z)(_e,2),Y=ue[0],de=ue[1],et=(0,v.useState)([{value:1,label:"\u65E9\u9910"},{value:2,label:"\u4E2D\u9910"},{value:3,label:"\u665A\u9910"}]),ce=(0,f.Z)(et,2),tt=ce[0],Zt=ce[1],at=(0,v.useState)(),ve=(0,f.Z)(at,2),b=ve[0],me=ve[1],nt=function(){var i=(0,Z.Z)((0,d.Z)().mark(function a(){var e,n,c,u;return(0,d.Z)().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,j.GetDeparent({current:1,pageSize:9999,platformType:"4"});case 2:e=l.sent,e.statusCode===200&&(u=[],(n=e.data)===null||n===void 0||(c=n.data)===null||c===void 0||c.forEach(function(m){u.push({label:m.name,value:m.id})}),qe(u));case 4:case"end":return l.stop()}},a)}));return function(){return i.apply(this,arguments)}}(),fe=function(){var a=I.find(function(n){return n.value===Y}),e={beginTime:G[0]._i,endTime:G[1]._i,orgName:(a==null?void 0:a.label)||"",mealType:b||"",current:g,pageSize:D};R==1?rt(e):R==2?it(e):R==3?st(e):R==4&&ot(e)},rt=function(){var i=(0,Z.Z)((0,d.Z)().mark(function a(e){var n,c;return(0,d.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return B(!0),r.next=3,j.GetReservationGoods(e);case 3:n=r.sent,B(!1),n.succeeded?(c=n.data.data.sort(function(l,m){return m.value-l.value}),z(n.data.total),Ue(c)):console.log("Message:",n.msg||"\u83B7\u53D6\u9884\u5B9A\u5546\u54C1\u5931\u8D25");case 6:case"end":return r.stop()}},a)}));return function(e){return i.apply(this,arguments)}}(),st=function(){var i=(0,Z.Z)((0,d.Z)().mark(function a(e){var n,c;return(0,d.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return B(!0),r.next=3,j.GetReservationOrg(e);case 3:n=r.sent,B(!1),n.succeeded?(c=n.data.data.sort(function(l,m){return m.value-l.value}),z(n.data.total),Ie(c)):console.log("Message:",n.msg||"\u83B7\u53D6\u9884\u5B9A\u5546\u54C1\u5931\u8D25");case 6:case"end":return r.stop()}},a)}));return function(e){return i.apply(this,arguments)}}(),it=function(){var i=(0,Z.Z)((0,d.Z)().mark(function a(e){var n,c;return(0,d.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return B(!0),r.next=3,j.GetReservationUser(e);case 3:n=r.sent,B(!1),n.succeeded?(c=n.data.data.sort(function(l,m){return m.value-l.value}),z(n.data.total),Fe(c)):console.log("Message:",n.msg||"\u83B7\u53D6\u9884\u5B9A\u4EBA\u5458\u5931\u8D25");case 6:case"end":return r.stop()}},a)}));return function(e){return i.apply(this,arguments)}}(),ot=function(){var i=(0,Z.Z)((0,d.Z)().mark(function a(e){var n,c;return(0,d.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return B(!0),r.next=3,j.GetReservationGoodsDetailed(e);case 3:n=r.sent,B(!1),n.succeeded?(c=n.data.data.sort(function(l,m){return m.value-l.value}),z(n.data.total),Ae(c)):console.log("Message:",n.msg||"\u83B7\u53D6\u9884\u5B9A\u4EBA\u5458\u5931\u8D25");case 6:case"end":return r.stop()}},a)}));return function(e){return i.apply(this,arguments)}}(),lt=function(){return(0,t.jsx)(xe.Z,{className:h()["my-loading"],size:"large"})},ut=function(){var i=(0,Z.Z)((0,d.Z)().mark(function a(){var e,n;return(0,d.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:e=I.find(function(r){return r.value===Y}),n={beginTime:G[0]._i,endTime:G[1]._i,orgName:(e==null?void 0:e.label)||"",mealType:b||"",current:g,pageSize:D},j.GetReservationGoodsExcel(n).then(function(r){var l=URL.createObjectURL(new Blob([r])),m="\u9884\u5B9A\u5546\u54C1\u6C47\u603B.xlsx",x=document.createElement("a");x.href=l,x.download=m,x.click(),URL.revokeObjectURL(l)});case 3:case"end":return u.stop()}},a)}));return function(){return i.apply(this,arguments)}}(),dt=function(){var i=(0,Z.Z)((0,d.Z)().mark(function a(){var e,n;return(0,d.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:e=I.find(function(r){return r.value===Y}),n={beginTime:G[0]._i,endTime:G[1]._i,orgName:(e==null?void 0:e.label)||"",mealType:b||"",current:g,pageSize:D},j.GetReservationUserExcel(n).then(function(r){var l=URL.createObjectURL(new Blob([r])),m="\u83B7\u53D6\u9884\u5B9A\u4EBA\u5458\u660E\u7EC6.xlsx",x=document.createElement("a");x.href=l,x.download=m,x.click(),URL.revokeObjectURL(l)});case 3:case"end":return u.stop()}},a)}));return function(){return i.apply(this,arguments)}}(),ct=function(){var i=(0,Z.Z)((0,d.Z)().mark(function a(){var e,n;return(0,d.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:e=I.find(function(r){return r.value===Y}),n={beginTime:G[0]._i,endTime:G[1]._i,orgName:(e==null?void 0:e.label)||"",mealType:b||"",current:g,pageSize:D},j.GetReservationOrgExcel(n).then(function(r){var l=URL.createObjectURL(new Blob([r])),m="\u9884\u5B9A\u90E8\u95E8\u6C47\u603B.xlsx",x=document.createElement("a");x.href=l,x.download=m,x.click(),URL.revokeObjectURL(l)});case 3:case"end":return u.stop()}},a)}));return function(){return i.apply(this,arguments)}}(),vt=function(){var i=(0,Z.Z)((0,d.Z)().mark(function a(){var e,n;return(0,d.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:e=I.find(function(r){return r.value===Y}),n={beginTime:G[0]._i,endTime:G[1]._i,orgName:(e==null?void 0:e.label)||"",mealType:b||"",current:g,pageSize:D},j.GetReservationGoodsDetailedExcel(n).then(function(r){var l=URL.createObjectURL(new Blob([r])),m="\u9884\u5B9A\u5546\u54C1\u660E\u7EC6.xlsx",x=document.createElement("a");x.href=l,x.download=m,x.click(),URL.revokeObjectURL(l)});case 3:case"end":return u.stop()}},a)}));return function(){return i.apply(this,arguments)}}();return(0,v.useEffect)(function(){nt()},[]),(0,v.useEffect)(function(){fe()},[R,g]),(0,t.jsxs)(Se.ZP,{children:[(0,t.jsxs)("div",{className:h()["welcome-container"],children:[Le?(0,t.jsx)(lt,{}):null,(0,t.jsx)(V.Z,{style:{marginBottom:"30px"},children:(0,t.jsxs)(he.Z,{children:[(0,t.jsx)(N.Z,{xs:24,sm:12,md:12,lg:12,xl:6,style:{margin:"10px 0"},children:(0,t.jsxs)("div",{className:h()["echarts-card-choose"],children:[(0,t.jsx)("div",{className:h()["echarts-card-choose-text"],children:"\u8D77\u6B62\u65F6\u95F4\uFF1A"}),(0,t.jsx)(Ee,{style:{width:"70%"},className:h()["my-range-picker"],value:G,onChange:function(a,e){var n=[y()(y()(new Date(e[0])).format("YYYY-MM-DD 00:00:00")),y()(y()(new Date(e[1])).format("YYYY-MM-DD 23:59:59"))];oe(n)}})]})}),(0,t.jsx)(N.Z,{xs:24,sm:12,md:12,lg:12,xl:6,style:{margin:"10px 0"},children:(0,t.jsxs)("div",{className:h()["echarts-card-choose"],children:[(0,t.jsx)("div",{className:h()["echarts-card-choose-text"],children:"\u6240\u5C5E\u90E8\u95E8\uFF1A"}),(0,t.jsx)(K.Z,{placeholder:"\u8BF7\u9009\u62E9\u90E8\u95E8\uFF01",style:{width:"70%"},value:Y,onChange:de,options:I})]})}),(0,t.jsx)(N.Z,{xs:24,sm:12,md:12,lg:12,xl:6,style:{margin:"10px 0"},children:(0,t.jsxs)("div",{className:h()["echarts-card-choose"],children:[(0,t.jsx)("div",{className:h()["echarts-card-choose-text"],children:"\u7528\u9910\u65F6\u6BB5\uFF1A"}),(0,t.jsx)(K.Z,{placeholder:"\u8BF7\u9009\u62E9\u7528\u9910\u65F6\u6BB5\uFF01",style:{width:"70%"},value:b,onChange:me,options:tt})]})}),(0,t.jsxs)(N.Z,{xs:24,sm:12,md:12,lg:12,xl:6,style:{margin:"10px 0"},children:[(0,t.jsx)(w.Z,{className:h()["echarts-card-btn"],type:"primary",style:{width:"100px",marginRight:"10px"},onClick:function(){return fe()},children:"\u67E5\u8BE2"}),(0,t.jsx)(w.Z,{className:h()["echarts-card-btn"],style:{width:"100px"},onClick:function(){oe([y()(y()(new Date(Date.now()+24*60*60*1e3)).format("YYYY-MM-DD 00:00:00")),y()(y()(new Date(Date.now()+24*60*60*1e3)).format("YYYY-MM-DD 23:59:59"))]),de(),me(),T(1),F(10)},children:"\u91CD\u7F6E"})]})]})}),(0,t.jsx)(V.Z,{children:(0,t.jsxs)(J.Z,{tabPosition:"left",value:R,onChange:function(a){O(a),z(0),T(1)},children:[(0,t.jsx)(P,{tab:"\u9884\u5B9A\u83DC\u54C1\u6C47\u603B",children:R==1&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(A.Z,{style:{display:"flex",alignItems:"center",marginBottom:"10px"},children:[(0,t.jsx)("div",{className:h()["tabs-title"],children:"\u9884\u5B9A\u83DC\u54C1\u6C47\u603B"}),(0,t.jsx)(w.Z,{type:"primary",icon:(0,t.jsx)(L.Z,{}),size:"middle",onClick:ut,children:"\u62A5\u8868\u4E0B\u8F7D"})]}),(0,t.jsx)(M.Z,{columns:Ke,dataSource:Be,pagination:{current:g,pageSize:D,total:k,onChange:T,onShowSizeChange:function(a,e){return F(e)}}})]})},1),(0,t.jsx)(P,{tab:"\u90E8\u95E8\u9884\u5B9A\u6C47\u603B",children:R==3&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(A.Z,{style:{display:"flex",alignItems:"center",marginBottom:"10px"},children:[(0,t.jsx)("div",{className:h()["tabs-title"],children:"\u90E8\u95E8\u9884\u5B9A\u6C47\u603B"}),(0,t.jsx)(w.Z,{type:"primary",icon:(0,t.jsx)(L.Z,{}),size:"middle",onClick:ct,children:"\u62A5\u8868\u4E0B\u8F7D"})]}),(0,t.jsx)(M.Z,{columns:He,dataSource:Oe,pagination:{current:g,pageSize:D,total:k,onChange:T,onShowSizeChange:function(a,e){return F(e)}}})]})},3),(0,t.jsx)(P,{tab:"\u9884\u5B9A\u4EBA\u5458\u660E\u7EC6",children:R==2&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(A.Z,{style:{display:"flex",alignItems:"center",marginBottom:"10px"},children:[(0,t.jsx)("div",{className:h()["tabs-title"],children:"\u9884\u5B9A\u4EBA\u5458\u660E\u7EC6"}),(0,t.jsx)(w.Z,{type:"primary",icon:(0,t.jsx)(L.Z,{}),size:"middle",onClick:dt,children:"\u62A5\u8868\u4E0B\u8F7D"})]}),(0,t.jsx)(M.Z,{columns:Qe,dataSource:be,pagination:{current:g,pageSize:D,onChange:T,onShowSizeChange:function(a,e){return F(e)}}})]})},2)," ",(0,t.jsx)(P,{tab:"\u9884\u5B9A\u5546\u54C1\u660E\u7EC6",children:R==4&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(A.Z,{style:{display:"flex",alignItems:"center",marginBottom:"10px"},children:[(0,t.jsx)("div",{className:h()["tabs-title"],children:"\u9884\u5B9A\u5546\u54C1\u660E\u7EC6"}),(0,t.jsx)(w.Z,{type:"primary",icon:(0,t.jsx)(L.Z,{}),size:"middle",onClick:vt,children:"\u62A5\u8868\u4E0B\u8F7D"})]}),(0,t.jsx)(M.Z,{columns:Je,dataSource:Me,pagination:{current:g,pageSize:D,total:k,onChange:T,onShowSizeChange:function(a,e){return F(e)}}})]})},4)]})})]}),ke&&(0,t.jsx)(Ze,{createModalVisible:!0,values:We||{},timeRange:G,onCancel:function(){ne(!1),se(void 0)}})]})}}}]); diff --git a/dist/p__card__reservation.63c5b373.async.js b/dist/p__card__reservation.63c5b373.async.js deleted file mode 100644 index be1d87a..0000000 --- a/dist/p__card__reservation.63c5b373.async.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[3991,1322,9934,4407,6498,6090,274,6314],{32141:function($){$.exports={"welcome-head":"welcome-head___2KkzI","welcome-head-org":"welcome-head-org___1csW8","echarts-card-choose":"echarts-card-choose___3MUZE","my-loading":"my-loading___13xim","device-list":"device-list___2yRMk","my-range-picker":"my-range-picker___3_gNJ","tabs-title":"tabs-title___qUM48"}},10370:function($,W,s){"use strict";s.r(W),s.d(W,{default:function(){return je}});var mt=s(66456),M=s(64411),ft=s(49111),A=s(19650),ht=s(58024),V=s(91894),xt=s(13062),he=s(71230),gt=s(57663),w=s(71577),pt=s(43358),K=s(34041),yt=s(89032),N=s(15746),St=s(20228),xe=s(11382),d=s(39428),Z=s(3182),f=s(2824),Rt=s(18106),J=s(86629),Dt=s(14965),ge=s(91774),v=s(67294),L=s(90631),pe=s(30381),y=s.n(pe),E=s(48971),j={GetReservationUser:function(o){return(0,E.WY)("/kitchen/api/Reservation/GetReservationUser",{method:"POST",data:o})},GetReservationGoods:function(o){return(0,E.WY)("/kitchen/api/Reservation/GetReservationGoods",{method:"POST",data:o})},GetReservationGoodsDetailed:function(o){return(0,E.WY)("/kitchen/api/Reservation/GetReservationGoodsDetailed",{method:"POST",data:o})},GetReservationUserGoods:function(o){return(0,E.WY)("/kitchen/api/Reservation/GetReservationUserGoods",{method:"POST",data:o})},GetDeparent:function(o){return(0,E.WY)("/kitchen/api/member-tag/member-tag",{method:"POST",data:o})},GetReservationGoodsExcel:function(o){return(0,E.WY)("/kitchen/api/Reservation/GetReservationGoodsExcel",{method:"POST",responseType:"blob",data:o})},GetReservationUserExcel:function(o){return(0,E.WY)("/kitchen/api/Reservation/GetReservationUserExcel",{method:"POST",responseType:"blob",data:o})},GetReservationOrgExcel:function(o){return(0,E.WY)("/kitchen/api/Reservation/GetReservationOrgExcel",{method:"POST",responseType:"blob",data:o})},GetReservationGoodsDetailedExcel:function(o){return(0,E.WY)("/kitchen/api/Reservation/GetReservationGoodsDetailedExcel",{method:"POST",responseType:"blob",data:o})},GetReservationOrg:function(o){return(0,E.WY)("/kitchen/api/Reservation/GetReservationOrg",{method:"POST",data:o})}},ye=s(32141),h=s.n(ye),Se=s(78009),Gt=s(71194),Re=s(50146),De=s(16894),t=s(85893),Ge=function(o){console.log("\u8C03\u8BD51",o);var R=[{title:"\u4E3B\u952E",dataIndex:"id",hideInTable:!0,hideInSearch:!0},{title:"\u5546\u54C1",dataIndex:"name"},{title:"\u7528\u9910\u65F6\u6BB5",dataIndex:"mealType",render:function(U,p){if(p.mealType==="1")return"\u65E9\u9910";if(p.mealType==="2")return"\u5348\u9910";if(p.mealType==="3")return"\u665A\u9910"}},{title:"\u9884\u5B9A\u6570\u91CF",dataIndex:"qty",sortDirections:["ascend","descend"],sorter:function(U,p){return U.value-p.value}},{title:"\u9884\u5B9A\u65F6\u95F4",dataIndex:"reservationTime"}];return(0,t.jsx)(Re.Z,{title:"\u67E5\u770B\u9884\u5B9A\u8BE6\u60C5",width:640,visible:o.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){o.onCancel()},destroyOnClose:!0,children:(0,t.jsx)(De.ZP,{headerTitle:"\u67E5\u770B\u9884\u5B9A\u8BE6\u60C5",rowKey:"id",search:!1,request:function(){var O=(0,Z.Z)((0,d.Z)().mark(function U(p){var g,T;return(0,d.Z)().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return g=[],T=0,o.values.id!=null&&(p.UserId=o.values.id,p.beginTime=o.timeRange[0]._i,p.endTime=o.timeRange[1]._i),C.next=5,j.GetReservationUserGoods(p).then(function(D){g=D.data.data,T=D.data.total});case 5:return C.abrupt("return",{data:g,success:!0,total:T});case 6:case"end":return C.stop()}},U)}));return function(U){return O.apply(this,arguments)}}(),columns:R})})},Ze=Ge,Ee=ge.Z.RangePicker,P=J.Z.TabPane,je=function(){var S=(0,v.useState)(1),o=(0,f.Z)(S,2),R=o[0],O=o[1],U=(0,v.useState)(1),p=(0,f.Z)(U,2),g=p[0],T=p[1],H=(0,v.useState)(10),C=(0,f.Z)(H,2),D=C[0],F=C[1],Te=(0,v.useState)(0),Q=(0,f.Z)(Te,2),k=Q[0],z=Q[1],Ce=(0,v.useState)([]),X=(0,f.Z)(Ce,2),Be=X[0],Ue=X[1],we=(0,v.useState)([]),q=(0,f.Z)(we,2),Oe=q[0],Ie=q[1],Ye=(0,v.useState)([]),_=(0,f.Z)(Ye,2),be=_[0],Fe=_[1],ze=(0,v.useState)([]),ee=(0,f.Z)(ze,2),Me=ee[0],Ae=ee[1],Ne=(0,v.useState)(!1),te=(0,f.Z)(Ne,2),Le=te[0],B=te[1],Pe=(0,v.useState)(!1),ae=(0,f.Z)(Pe,2),ke=ae[0],ne=ae[1],$e=(0,v.useState)(),re=(0,f.Z)($e,2),We=re[0],se=re[1],Ve=(0,v.useState)([y()(y()(new Date(Date.now()+24*60*60*1e3)).format("YYYY-MM-DD 00:00:00")),y()(y()(new Date(Date.now()+24*60*60*1e3)).format("YYYY-MM-DD 23:59:59"))]),ie=(0,f.Z)(Ve,2),G=ie[0],oe=ie[1],Ke=[{title:"\u5546\u54C1",dataIndex:"name"},{title:"\u7528\u9910\u65F6\u6BB5",dataIndex:"mealType",render:function(a,e){if(e.mealType==="1")return"\u65E9\u9910";if(e.mealType==="2")return"\u5348\u9910";if(e.mealType==="3")return"\u665A\u9910"}},{title:"\u9884\u5B9A\u6570\u91CF",dataIndex:"qty",sortDirections:["ascend","descend"],sorter:function(a,e){return a.value-e.value}},{title:"\u9884\u5B9A\u65F6\u95F4",dataIndex:"createAt"}],Je=[{title:"\u5546\u54C1",dataIndex:"name"},{title:"\u9884\u5B9A\u90E8\u95E8",dataIndex:"orgName"},{title:"\u9884\u5B9A\u4EBA\u59D3\u540D",dataIndex:"realName"},{title:"\u7528\u9910\u65F6\u6BB5",dataIndex:"mealType",render:function(a,e){if(e.mealType==="1")return"\u65E9\u9910";if(e.mealType==="2")return"\u5348\u9910";if(e.mealType==="3")return"\u665A\u9910"}},{title:"\u9884\u5B9A\u6570\u91CF",dataIndex:"qty",sortDirections:["ascend","descend"],sorter:function(a,e){return a.value-e.value}},{title:"\u662F\u5426\u7EDF\u4E00\u9884\u5B9A",dataIndex:"qty",render:function(a,e){return e.qty>1?"\u662F":"\u5426"}},{title:"\u9884\u5B9A\u65F6\u95F4",dataIndex:"createAt"}],He=[{title:"\u90E8\u95E8\u540D\u79F0",dataIndex:"orgName"},{title:"\u7528\u9910\u65F6\u6BB5",dataIndex:"mealType",render:function(a,e){if(e.mealType==="1")return"\u65E9\u9910";if(e.mealType==="2")return"\u5348\u9910";if(e.mealType==="3")return"\u665A\u9910"}},{title:"\u9884\u5B9A\u6570\u91CF",dataIndex:"qty",sortDirections:["ascend","descend"],sorter:function(a,e){return a.value-e.value}}],Qe=[{title:"\u9884\u5B9A\u4EBA\u5458\u540D\u79F0",dataIndex:"name"},{title:"\u90E8\u95E8",dataIndex:"orgName"},{title:"\u9884\u5B9A\u6570\u91CF",dataIndex:"qty",sortDirections:["ascend","descend"],sorter:function(a,e){return a.value-e.value}},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(a,e){return(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("a",{onClick:function(){ne(!0),se(e)},children:"\u67E5\u770B\u8BE6\u60C5"})})}}],Xe=(0,v.useState)([]),le=(0,f.Z)(Xe,2),I=le[0],qe=le[1],_e=(0,v.useState)(),ue=(0,f.Z)(_e,2),Y=ue[0],de=ue[1],et=(0,v.useState)([{value:1,label:"\u65E9\u9910"},{value:2,label:"\u4E2D\u9910"},{value:3,label:"\u665A\u9910"}]),ce=(0,f.Z)(et,2),tt=ce[0],Zt=ce[1],at=(0,v.useState)(),ve=(0,f.Z)(at,2),b=ve[0],me=ve[1],nt=function(){var i=(0,Z.Z)((0,d.Z)().mark(function a(){var e,n,c,u;return(0,d.Z)().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,j.GetDeparent({current:1,pageSize:9999,platformType:"4"});case 2:e=l.sent,e.statusCode===200&&(u=[],(n=e.data)===null||n===void 0||(c=n.data)===null||c===void 0||c.forEach(function(m){u.push({label:m.name,value:m.id})}),qe(u));case 4:case"end":return l.stop()}},a)}));return function(){return i.apply(this,arguments)}}(),fe=function(){var a=I.find(function(n){return n.value===Y}),e={beginTime:G[0]._i,endTime:G[1]._i,orgName:(a==null?void 0:a.label)||"",mealType:b||"",current:g,pageSize:D};R==1?rt(e):R==2?it(e):R==3?st(e):R==4&&ot(e)},rt=function(){var i=(0,Z.Z)((0,d.Z)().mark(function a(e){var n,c;return(0,d.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return B(!0),r.next=3,j.GetReservationGoods(e);case 3:n=r.sent,B(!1),n.succeeded?(c=n.data.data.sort(function(l,m){return m.value-l.value}),z(n.data.total),Ue(c)):console.log("Message:",n.msg||"\u83B7\u53D6\u9884\u5B9A\u5546\u54C1\u5931\u8D25");case 6:case"end":return r.stop()}},a)}));return function(e){return i.apply(this,arguments)}}(),st=function(){var i=(0,Z.Z)((0,d.Z)().mark(function a(e){var n,c;return(0,d.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return B(!0),r.next=3,j.GetReservationOrg(e);case 3:n=r.sent,B(!1),n.succeeded?(c=n.data.data.sort(function(l,m){return m.value-l.value}),z(n.data.total),Ie(c)):console.log("Message:",n.msg||"\u83B7\u53D6\u9884\u5B9A\u5546\u54C1\u5931\u8D25");case 6:case"end":return r.stop()}},a)}));return function(e){return i.apply(this,arguments)}}(),it=function(){var i=(0,Z.Z)((0,d.Z)().mark(function a(e){var n,c;return(0,d.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return B(!0),r.next=3,j.GetReservationUser(e);case 3:n=r.sent,B(!1),n.succeeded?(c=n.data.data.sort(function(l,m){return m.value-l.value}),z(n.data.total),Fe(c)):console.log("Message:",n.msg||"\u83B7\u53D6\u9884\u5B9A\u4EBA\u5458\u5931\u8D25");case 6:case"end":return r.stop()}},a)}));return function(e){return i.apply(this,arguments)}}(),ot=function(){var i=(0,Z.Z)((0,d.Z)().mark(function a(e){var n,c;return(0,d.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return B(!0),r.next=3,j.GetReservationGoodsDetailed(e);case 3:n=r.sent,B(!1),n.succeeded?(c=n.data.data.sort(function(l,m){return m.value-l.value}),z(n.data.total),Ae(c)):console.log("Message:",n.msg||"\u83B7\u53D6\u9884\u5B9A\u4EBA\u5458\u5931\u8D25");case 6:case"end":return r.stop()}},a)}));return function(e){return i.apply(this,arguments)}}(),lt=function(){return(0,t.jsx)(xe.Z,{className:h()["my-loading"],size:"large"})},ut=function(){var i=(0,Z.Z)((0,d.Z)().mark(function a(){var e,n;return(0,d.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:e=I.find(function(r){return r.value===Y}),n={beginTime:G[0]._i,endTime:G[1]._i,orgName:(e==null?void 0:e.label)||"",mealType:b||"",current:g,pageSize:D},j.GetReservationGoodsExcel(n).then(function(r){var l=URL.createObjectURL(new Blob([r])),m="\u9884\u5B9A\u5546\u54C1\u6C47\u603B.xlsx",x=document.createElement("a");x.href=l,x.download=m,x.click(),URL.revokeObjectURL(l)});case 3:case"end":return u.stop()}},a)}));return function(){return i.apply(this,arguments)}}(),dt=function(){var i=(0,Z.Z)((0,d.Z)().mark(function a(){var e,n;return(0,d.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:e=I.find(function(r){return r.value===Y}),n={beginTime:G[0]._i,endTime:G[1]._i,orgName:(e==null?void 0:e.label)||"",mealType:b||"",current:g,pageSize:D},j.GetReservationUserExcel(n).then(function(r){var l=URL.createObjectURL(new Blob([r])),m="\u83B7\u53D6\u9884\u5B9A\u4EBA\u5458\u660E\u7EC6.xlsx",x=document.createElement("a");x.href=l,x.download=m,x.click(),URL.revokeObjectURL(l)});case 3:case"end":return u.stop()}},a)}));return function(){return i.apply(this,arguments)}}(),ct=function(){var i=(0,Z.Z)((0,d.Z)().mark(function a(){var e,n;return(0,d.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:e=I.find(function(r){return r.value===Y}),n={beginTime:G[0]._i,endTime:G[1]._i,orgName:(e==null?void 0:e.label)||"",mealType:b||"",current:g,pageSize:D},j.GetReservationOrgExcel(n).then(function(r){var l=URL.createObjectURL(new Blob([r])),m="\u9884\u5B9A\u90E8\u95E8\u6C47\u603B.xlsx",x=document.createElement("a");x.href=l,x.download=m,x.click(),URL.revokeObjectURL(l)});case 3:case"end":return u.stop()}},a)}));return function(){return i.apply(this,arguments)}}(),vt=function(){var i=(0,Z.Z)((0,d.Z)().mark(function a(){var e,n;return(0,d.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:e=I.find(function(r){return r.value===Y}),n={beginTime:G[0]._i,endTime:G[1]._i,orgName:(e==null?void 0:e.label)||"",mealType:b||"",current:g,pageSize:D},j.GetReservationGoodsDetailedExcel(n).then(function(r){var l=URL.createObjectURL(new Blob([r])),m="\u9884\u5B9A\u5546\u54C1\u660E\u7EC6.xlsx",x=document.createElement("a");x.href=l,x.download=m,x.click(),URL.revokeObjectURL(l)});case 3:case"end":return u.stop()}},a)}));return function(){return i.apply(this,arguments)}}();return(0,v.useEffect)(function(){nt()},[]),(0,v.useEffect)(function(){fe()},[R,g]),(0,t.jsxs)(Se.ZP,{children:[(0,t.jsxs)("div",{className:h()["welcome-container"],children:[Le?(0,t.jsx)(lt,{}):null,(0,t.jsx)(V.Z,{style:{marginBottom:"30px"},children:(0,t.jsxs)(he.Z,{children:[(0,t.jsx)(N.Z,{xs:24,sm:12,md:12,lg:12,xl:6,style:{margin:"10px 0"},children:(0,t.jsxs)("div",{className:h()["echarts-card-choose"],children:[(0,t.jsx)("div",{className:h()["echarts-card-choose-text"],children:"\u8D77\u6B62\u65F6\u95F4\uFF1A"}),(0,t.jsx)(Ee,{style:{width:"70%"},className:h()["my-range-picker"],value:G,onChange:function(a,e){var n=[y()(y()(new Date(e[0])).format("YYYY-MM-DD 00:00:00")),y()(y()(new Date(e[1])).format("YYYY-MM-DD 23:59:59"))];oe(n)}})]})}),(0,t.jsx)(N.Z,{xs:24,sm:12,md:12,lg:12,xl:6,style:{margin:"10px 0"},children:(0,t.jsxs)("div",{className:h()["echarts-card-choose"],children:[(0,t.jsx)("div",{className:h()["echarts-card-choose-text"],children:"\u6240\u5C5E\u90E8\u95E8\uFF1A"}),(0,t.jsx)(K.Z,{placeholder:"\u8BF7\u9009\u62E9\u90E8\u95E8\uFF01",style:{width:"70%"},value:Y,onChange:de,options:I})]})}),(0,t.jsx)(N.Z,{xs:24,sm:12,md:12,lg:12,xl:6,style:{margin:"10px 0"},children:(0,t.jsxs)("div",{className:h()["echarts-card-choose"],children:[(0,t.jsx)("div",{className:h()["echarts-card-choose-text"],children:"\u7528\u9910\u65F6\u6BB5\uFF1A"}),(0,t.jsx)(K.Z,{placeholder:"\u8BF7\u9009\u62E9\u7528\u9910\u65F6\u6BB5\uFF01",style:{width:"70%"},value:b,onChange:me,options:tt})]})}),(0,t.jsxs)(N.Z,{xs:24,sm:12,md:12,lg:12,xl:6,style:{margin:"10px 0"},children:[(0,t.jsx)(w.Z,{className:h()["echarts-card-btn"],type:"primary",style:{width:"100px",marginRight:"10px"},onClick:function(){return fe()},children:"\u67E5\u8BE2"}),(0,t.jsx)(w.Z,{className:h()["echarts-card-btn"],style:{width:"100px"},onClick:function(){oe([y()(y()(new Date(Date.now()+24*60*60*1e3)).format("YYYY-MM-DD 00:00:00")),y()(y()(new Date(Date.now()+24*60*60*1e3)).format("YYYY-MM-DD 23:59:59"))]),de(),me(),T(1),F(10)},children:"\u91CD\u7F6E"})]})]})}),(0,t.jsx)(V.Z,{children:(0,t.jsxs)(J.Z,{tabPosition:"left",value:R,onChange:function(a){O(a),z(0),T(1)},children:[(0,t.jsx)(P,{tab:"\u9884\u5B9A\u83DC\u54C1\u6C47\u603B",children:R==1&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(A.Z,{style:{display:"flex",alignItems:"center",marginBottom:"10px"},children:[(0,t.jsx)("div",{className:h()["tabs-title"],children:"\u9884\u5B9A\u83DC\u54C1\u6C47\u603B"}),(0,t.jsx)(w.Z,{type:"primary",icon:(0,t.jsx)(L.Z,{}),size:"middle",onClick:ut,children:"\u62A5\u8868\u4E0B\u8F7D"})]}),(0,t.jsx)(M.Z,{columns:Ke,dataSource:Be,pagination:{current:g,pageSize:D,total:k,onChange:T,onShowSizeChange:function(a,e){return F(e)}}})]})},1),(0,t.jsx)(P,{tab:"\u90E8\u95E8\u9884\u5B9A\u6C47\u603B",children:R==3&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(A.Z,{style:{display:"flex",alignItems:"center",marginBottom:"10px"},children:[(0,t.jsx)("div",{className:h()["tabs-title"],children:"\u90E8\u95E8\u9884\u5B9A\u6C47\u603B"}),(0,t.jsx)(w.Z,{type:"primary",icon:(0,t.jsx)(L.Z,{}),size:"middle",onClick:ct,children:"\u62A5\u8868\u4E0B\u8F7D"})]}),(0,t.jsx)(M.Z,{columns:He,dataSource:Oe,pagination:{current:g,pageSize:D,total:k,onChange:T,onShowSizeChange:function(a,e){return F(e)}}})]})},3),(0,t.jsx)(P,{tab:"\u9884\u5B9A\u4EBA\u5458\u660E\u7EC6",children:R==2&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(A.Z,{style:{display:"flex",alignItems:"center",marginBottom:"10px"},children:[(0,t.jsx)("div",{className:h()["tabs-title"],children:"\u9884\u5B9A\u4EBA\u5458\u660E\u7EC6"}),(0,t.jsx)(w.Z,{type:"primary",icon:(0,t.jsx)(L.Z,{}),size:"middle",onClick:dt,children:"\u62A5\u8868\u4E0B\u8F7D"})]}),(0,t.jsx)(M.Z,{columns:Qe,dataSource:be,pagination:{current:g,pageSize:D,onChange:T,onShowSizeChange:function(a,e){return F(e)}}})]})},2)," ",(0,t.jsx)(P,{tab:"\u9884\u5B9A\u5546\u54C1\u660E\u7EC6",children:R==4&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(A.Z,{style:{display:"flex",alignItems:"center",marginBottom:"10px"},children:[(0,t.jsx)("div",{className:h()["tabs-title"],children:"\u9884\u5B9A\u5546\u54C1\u660E\u7EC6"}),(0,t.jsx)(w.Z,{type:"primary",icon:(0,t.jsx)(L.Z,{}),size:"middle",onClick:vt,children:"\u62A5\u8868\u4E0B\u8F7D"})]}),(0,t.jsx)(M.Z,{columns:Je,dataSource:Me,pagination:{current:g,pageSize:D,total:k,onChange:T,onShowSizeChange:function(a,e){return F(e)}}})]})},4)]})})]}),ke&&(0,t.jsx)(Ze,{createModalVisible:!0,values:We||{},timeRange:G,onCancel:function(){ne(!1),se(void 0)}})]})}}}]); diff --git a/dist/p__card__reservationReport.aef72dd0.async.js b/dist/p__card__reservationReport.aef72dd0.async.js deleted file mode 100644 index 028a4f2..0000000 --- a/dist/p__card__reservationReport.aef72dd0.async.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[2522,1322,9934,4407,6498,6090,274,6314],{59314:function(P){P.exports={"welcome-head":"welcome-head___sqI6D","welcome-head-org":"welcome-head-org___2svCy","echarts-card-choose":"echarts-card-choose___1Ygxt","my-loading":"my-loading___1lMfA","device-list":"device-list___3WSGp","my-range-picker":"my-range-picker___1EI6E","tabs-title":"tabs-title___1-qjz"}},73397:function(P,R,e){"use strict";e.r(R),e.d(R,{default:function(){return fe}});var Ve=e(66456),ee=e(64411),We=e(49111),te=e(19650),we=e(58024),E=e(91894),Ke=e(13062),ae=e(71230),He=e(57663),N=e(71577),Je=e(89032),z=e(15746),Qe=e(20228),ne=e(11382),g=e(39428),T=e(3182),o=e(2824),Ue=e(18106),B=e(86629),Xe=e(14965),re=e(91774),s=e(67294),se=e(30381),u=e.n(se),M=e(48971),G={GetDayConsumeInfo:function(i){return(0,M.WY)("/kitchen/api/Reservation/GetDayConsumeInfo",{method:"POST",data:i})},GetDayConsumeDetailed:function(i){return(0,M.WY)("/kitchen/api/Reservation/GetDayConsumeDetailed",{method:"POST",data:i})},GetDeparent:function(i){return(0,M.WY)("/kitchen/api/member-tag/member-tag",{method:"POST",data:i})}},ie=e(59314),c=e.n(ie),le=e(78009),be=e(71194),oe=e(50146),ue=e(16894),t=e(85893),de=function(i){var D=[{title:"\u7528\u9910\u90E8\u95E8",dataIndex:"mname"},{title:"\u7528\u9910\u4EBA\u5458",dataIndex:"nickName"},{title:"\u7528\u9910\u65F6\u6BB5",dataIndex:"timeInterval",render:function(p,d){if(d.timeInterval==="1")return"\u65E9\u9910";if(d.timeInterval==="2")return"\u5348\u9910";if(d.timeInterval==="3")return"\u665A\u9910"}},{title:"\u7528\u9910\u65F6\u95F4",dataIndex:"createAt"}];return(0,t.jsx)(oe.Z,{title:"\u67E5\u770B\u7528\u9910\u8BE6\u60C5",width:640,visible:i.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){i.onCancel()},destroyOnClose:!0,children:(0,t.jsx)(ue.ZP,{headerTitle:"\u67E5\u770B\u7528\u9910\u8BE6\u60C5",rowKey:"id",pag:!0,search:!1,request:function(){var C=(0,T.Z)((0,g.Z)().mark(function p(d){var v,f;return(0,g.Z)().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return v=[],f=0,d.startTime=i.timeRange[0]._i,d.endTime=i.timeRange[1]._i,d.orgName=i.values.mname,d.timeInterval=i.values.timeInterval,m.next=8,G.GetDayConsumeDetailed(d).then(function(Z){v=Z.data.data,f=Z.data.total});case 8:return m.abrupt("return",{data:v,success:!0,total:f});case 9:case"end":return m.stop()}},p)}));return function(p){return C.apply(this,arguments)}}(),columns:D,pagination:{defaultPageSize:9e3,showSizeChanger:!0}})})},ce=de,me=re.Z.RangePicker,ve=B.Z.TabPane,fe=function(){var x=(0,s.useState)(1),i=(0,o.Z)(x,2),D=i[0],C=i[1],p=(0,s.useState)(1),d=(0,o.Z)(p,2),v=d[0],f=d[1],F=(0,s.useState)(50),m=(0,o.Z)(F,2),Z=m[0],L=m[1],he=(0,s.useState)(0),$=(0,o.Z)(he,2),ge=$[0],A=$[1],De=(0,s.useState)([]),O=(0,o.Z)(De,2),ye=O[0],Se=O[1],xe=(0,s.useState)(!1),V=(0,o.Z)(xe,2),Ce=V[0],W=V[1],pe=(0,s.useState)(),w=(0,o.Z)(pe,2),Ze=w[0],K=w[1],Ie=(0,s.useState)(!1),H=(0,o.Z)(Ie,2),je=H[0],J=H[1],Ye=(0,s.useState)([u()(u()(new Date(Date.now()+24*60*60*1e3)).format("YYYY-MM-DD 00:00:00")),u()(u()(new Date(Date.now()+24*60*60*1e3)).format("YYYY-MM-DD 23:59:59"))]),Q=(0,o.Z)(Ye,2),I=Q[0],U=Q[1],Te=[{title:"\u7528\u9910\u90E8\u95E8",dataIndex:"mname"},{title:"\u7528\u9910\u65F6\u6BB5",dataIndex:"timeInterval",render:function(n,a){if(a.timeInterval==="1")return"\u65E9\u9910";if(a.timeInterval==="2")return"\u5348\u9910";if(a.timeInterval==="3")return"\u665A\u9910"}},{title:"\u7528\u9910\u6570\u91CF",dataIndex:"sumqty",sortDirections:["ascend","descend"],sorter:function(n,a){return n.value-a.value}},{title:"\u9884\u5B9A\u90E8\u95E8",dataIndex:"orgName"},{title:"\u9884\u5B9A\u4EBA\u5458",dataIndex:"nickName"},{title:"\u9884\u5B9A\u7528\u9910\u65F6\u6BB5",dataIndex:"mealType",render:function(n,a){if(a.mealType==="1")return"\u65E9\u9910";if(a.mealType==="2")return"\u5348\u9910";if(a.mealType==="3")return"\u665A\u9910"}},{title:"\u9884\u5B9A\u6570\u91CF",dataIndex:"rqty",sortDirections:["ascend","descend"],sorter:function(n,a){return n.value-a.value}},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(n,a){return(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("a",{onClick:function(){J(!0),K(a)},children:"\u67E5\u770B\u8BE6\u60C5"})})}}];(0,s.useEffect)(function(){X()},[D,v]);var X=function(){var n=Pe.find(function(l){return l.value===Ne}),a={startTime:I[0]._i,endTime:I[1]._i,orgName:(n==null?void 0:n.label)||"",mealType:Le||"",current:v,pageSize:Z};D==1&&Me(a)},Me=function(){var r=(0,T.Z)((0,g.Z)().mark(function n(a){var l,y;return(0,g.Z)().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return W(!0),S.next=3,G.GetDayConsumeInfo(a);case 3:l=S.sent,W(!1),l.succeeded?(y=l.data.data.sort(function(h,Y){return Y.value-h.value}),A(l.data.total),Se(y)):console.log("Message:",l.msg||"\u83B7\u53D6\u9884\u5B9A\u5546\u54C1\u5931\u8D25");case 6:case"end":return S.stop()}},n)}));return function(a){return r.apply(this,arguments)}}(),Ge=(0,s.useState)([]),b=(0,o.Z)(Ge,2),Pe=b[0],Re=b[1],Ee=(0,s.useState)(),k=(0,o.Z)(Ee,2),Ne=k[0],ze=k[1],Be=(0,s.useState)([{value:1,label:"\u65E9\u9910"},{value:2,label:"\u4E2D\u9910"},{value:3,label:"\u665A\u9910"}]),q=(0,o.Z)(Be,2),ke=q[0],qe=q[1],Fe=(0,s.useState)(),_=(0,o.Z)(Fe,2),Le=_[0],$e=_[1],Ae=function(){var r=(0,T.Z)((0,g.Z)().mark(function n(){var a,l,y,j;return(0,g.Z)().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.next=2,G.GetDeparent({current:1,pageSize:9999,platformType:"4"});case 2:a=h.sent,a.statusCode===200&&(j=[],(l=a.data)===null||l===void 0||(y=l.data)===null||y===void 0||y.forEach(function(Y){j.push({label:Y.name,value:Y.id})}),Re(j));case 4:case"end":return h.stop()}},n)}));return function(){return r.apply(this,arguments)}}(),Oe=function(){return(0,t.jsx)(ne.Z,{className:c()["my-loading"],size:"large"})};return(0,s.useEffect)(function(){Ae()},[]),(0,t.jsxs)(le.ZP,{children:[(0,t.jsxs)("div",{className:c()["welcome-container"],children:[Ce?(0,t.jsx)(Oe,{}):null,(0,t.jsx)(E.Z,{style:{marginBottom:"30px"},children:(0,t.jsxs)(ae.Z,{children:[(0,t.jsx)(z.Z,{xs:24,sm:12,md:12,lg:12,xl:6,style:{margin:"10px 0"},children:(0,t.jsxs)("div",{className:c()["echarts-card-choose"],children:[(0,t.jsx)("div",{className:c()["echarts-card-choose-text"],children:"\u8D77\u6B62\u65F6\u95F4\uFF1A"}),(0,t.jsx)(me,{style:{width:"70%"},className:c()["my-range-picker"],value:I,onChange:function(n,a){var l=[u()(u()(new Date(a[0])).format("YYYY-MM-DD 00:00:00")),u()(u()(new Date(a[1])).format("YYYY-MM-DD 23:59:59"))];U(l)}})]})}),(0,t.jsxs)(z.Z,{xs:24,sm:12,md:12,lg:12,xl:6,style:{margin:"10px 0"},children:[(0,t.jsx)(N.Z,{className:c()["echarts-card-btn"],type:"primary",style:{width:"100px",marginRight:"10px"},onClick:function(){return X()},children:"\u67E5\u8BE2"}),(0,t.jsx)(N.Z,{className:c()["echarts-card-btn"],style:{width:"100px"},onClick:function(){U([u()(u()(new Date(Date.now()+24*60*60*1e3)).format("YYYY-MM-DD 00:00:00")),u()(u()(new Date(Date.now()+24*60*60*1e3)).format("YYYY-MM-DD 23:59:59"))]),ze(),$e(),f(1),L(10)},children:"\u91CD\u7F6E"})]})]})}),(0,t.jsx)(E.Z,{children:(0,t.jsx)(B.Z,{tabPosition:"left",value:D,onChange:function(n){C(n),A(0),f(1)},children:(0,t.jsx)(ve,{tab:"\u7528\u9910\u60C5\u51B5",children:D==1&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(te.Z,{style:{display:"flex",alignItems:"center",marginBottom:"10px"},children:(0,t.jsx)("div",{className:c()["tabs-title"],children:"\u7528\u9910\u60C5\u51B5"})}),(0,t.jsx)(ee.Z,{columns:Te,dataSource:ye,pagination:{current:v,pageSize:Z,total:ge,onChange:f,onShowSizeChange:function(n,a){return L(a)}}})]})},1)})})]}),je&&(0,t.jsx)(ce,{createModalVisible:!0,values:Ze||{},timeRange:I,onCancel:function(){J(!1),K(void 0)}})]})}}}]); diff --git a/dist/p__card__reservationReport.b0995e46.async.js b/dist/p__card__reservationReport.b0995e46.async.js new file mode 100644 index 0000000..4fa0ba3 --- /dev/null +++ b/dist/p__card__reservationReport.b0995e46.async.js @@ -0,0 +1 @@ +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[2522,1322,9464,1981,2869,7013,9719,2383],{59314:function(P){P.exports={"welcome-head":"welcome-head___sqI6D","welcome-head-org":"welcome-head-org___2svCy","echarts-card-choose":"echarts-card-choose___1Ygxt","my-loading":"my-loading___1lMfA","device-list":"device-list___3WSGp","my-range-picker":"my-range-picker___1EI6E","tabs-title":"tabs-title___1-qjz"}},73397:function(P,R,e){"use strict";e.r(R),e.d(R,{default:function(){return fe}});var Ve=e(66456),ee=e(64411),We=e(49111),te=e(19650),we=e(58024),E=e(91894),Ke=e(13062),ae=e(71230),He=e(57663),N=e(71577),Je=e(89032),z=e(15746),Qe=e(20228),ne=e(11382),g=e(39428),T=e(3182),o=e(2824),Ue=e(18106),B=e(95562),Xe=e(14965),re=e(91774),s=e(67294),se=e(30381),u=e.n(se),M=e(48971),G={GetDayConsumeInfo:function(i){return(0,M.WY)("/kitchen/api/Reservation/GetDayConsumeInfo",{method:"POST",data:i})},GetDayConsumeDetailed:function(i){return(0,M.WY)("/kitchen/api/Reservation/GetDayConsumeDetailed",{method:"POST",data:i})},GetDeparent:function(i){return(0,M.WY)("/kitchen/api/member-tag/member-tag",{method:"POST",data:i})}},ie=e(59314),c=e.n(ie),le=e(78009),be=e(71194),oe=e(50146),ue=e(16894),t=e(85893),de=function(i){var D=[{title:"\u7528\u9910\u90E8\u95E8",dataIndex:"mname"},{title:"\u7528\u9910\u4EBA\u5458",dataIndex:"nickName"},{title:"\u7528\u9910\u65F6\u6BB5",dataIndex:"timeInterval",render:function(p,d){if(d.timeInterval==="1")return"\u65E9\u9910";if(d.timeInterval==="2")return"\u5348\u9910";if(d.timeInterval==="3")return"\u665A\u9910"}},{title:"\u7528\u9910\u65F6\u95F4",dataIndex:"createAt"}];return(0,t.jsx)(oe.Z,{title:"\u67E5\u770B\u7528\u9910\u8BE6\u60C5",width:640,visible:i.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){i.onCancel()},destroyOnClose:!0,children:(0,t.jsx)(ue.ZP,{headerTitle:"\u67E5\u770B\u7528\u9910\u8BE6\u60C5",rowKey:"id",pag:!0,search:!1,request:function(){var C=(0,T.Z)((0,g.Z)().mark(function p(d){var v,f;return(0,g.Z)().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return v=[],f=0,d.startTime=i.timeRange[0]._i,d.endTime=i.timeRange[1]._i,d.orgName=i.values.mname,d.timeInterval=i.values.timeInterval,m.next=8,G.GetDayConsumeDetailed(d).then(function(Z){v=Z.data.data,f=Z.data.total});case 8:return m.abrupt("return",{data:v,success:!0,total:f});case 9:case"end":return m.stop()}},p)}));return function(p){return C.apply(this,arguments)}}(),columns:D,pagination:{defaultPageSize:9e3,showSizeChanger:!0}})})},ce=de,me=re.Z.RangePicker,ve=B.Z.TabPane,fe=function(){var x=(0,s.useState)(1),i=(0,o.Z)(x,2),D=i[0],C=i[1],p=(0,s.useState)(1),d=(0,o.Z)(p,2),v=d[0],f=d[1],F=(0,s.useState)(50),m=(0,o.Z)(F,2),Z=m[0],L=m[1],he=(0,s.useState)(0),$=(0,o.Z)(he,2),ge=$[0],A=$[1],De=(0,s.useState)([]),O=(0,o.Z)(De,2),ye=O[0],Se=O[1],xe=(0,s.useState)(!1),V=(0,o.Z)(xe,2),Ce=V[0],W=V[1],pe=(0,s.useState)(),w=(0,o.Z)(pe,2),Ze=w[0],K=w[1],Ie=(0,s.useState)(!1),H=(0,o.Z)(Ie,2),je=H[0],J=H[1],Ye=(0,s.useState)([u()(u()(new Date(Date.now()+24*60*60*1e3)).format("YYYY-MM-DD 00:00:00")),u()(u()(new Date(Date.now()+24*60*60*1e3)).format("YYYY-MM-DD 23:59:59"))]),Q=(0,o.Z)(Ye,2),I=Q[0],U=Q[1],Te=[{title:"\u7528\u9910\u90E8\u95E8",dataIndex:"mname"},{title:"\u7528\u9910\u65F6\u6BB5",dataIndex:"timeInterval",render:function(n,a){if(a.timeInterval==="1")return"\u65E9\u9910";if(a.timeInterval==="2")return"\u5348\u9910";if(a.timeInterval==="3")return"\u665A\u9910"}},{title:"\u7528\u9910\u6570\u91CF",dataIndex:"sumqty",sortDirections:["ascend","descend"],sorter:function(n,a){return n.value-a.value}},{title:"\u9884\u5B9A\u90E8\u95E8",dataIndex:"orgName"},{title:"\u9884\u5B9A\u4EBA\u5458",dataIndex:"nickName"},{title:"\u9884\u5B9A\u7528\u9910\u65F6\u6BB5",dataIndex:"mealType",render:function(n,a){if(a.mealType==="1")return"\u65E9\u9910";if(a.mealType==="2")return"\u5348\u9910";if(a.mealType==="3")return"\u665A\u9910"}},{title:"\u9884\u5B9A\u6570\u91CF",dataIndex:"rqty",sortDirections:["ascend","descend"],sorter:function(n,a){return n.value-a.value}},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(n,a){return(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("a",{onClick:function(){J(!0),K(a)},children:"\u67E5\u770B\u8BE6\u60C5"})})}}];(0,s.useEffect)(function(){X()},[D,v]);var X=function(){var n=Pe.find(function(l){return l.value===Ne}),a={startTime:I[0]._i,endTime:I[1]._i,orgName:(n==null?void 0:n.label)||"",mealType:Le||"",current:v,pageSize:Z};D==1&&Me(a)},Me=function(){var r=(0,T.Z)((0,g.Z)().mark(function n(a){var l,y;return(0,g.Z)().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return W(!0),S.next=3,G.GetDayConsumeInfo(a);case 3:l=S.sent,W(!1),l.succeeded?(y=l.data.data.sort(function(h,Y){return Y.value-h.value}),A(l.data.total),Se(y)):console.log("Message:",l.msg||"\u83B7\u53D6\u9884\u5B9A\u5546\u54C1\u5931\u8D25");case 6:case"end":return S.stop()}},n)}));return function(a){return r.apply(this,arguments)}}(),Ge=(0,s.useState)([]),b=(0,o.Z)(Ge,2),Pe=b[0],Re=b[1],Ee=(0,s.useState)(),k=(0,o.Z)(Ee,2),Ne=k[0],ze=k[1],Be=(0,s.useState)([{value:1,label:"\u65E9\u9910"},{value:2,label:"\u4E2D\u9910"},{value:3,label:"\u665A\u9910"}]),q=(0,o.Z)(Be,2),ke=q[0],qe=q[1],Fe=(0,s.useState)(),_=(0,o.Z)(Fe,2),Le=_[0],$e=_[1],Ae=function(){var r=(0,T.Z)((0,g.Z)().mark(function n(){var a,l,y,j;return(0,g.Z)().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.next=2,G.GetDeparent({current:1,pageSize:9999,platformType:"4"});case 2:a=h.sent,a.statusCode===200&&(j=[],(l=a.data)===null||l===void 0||(y=l.data)===null||y===void 0||y.forEach(function(Y){j.push({label:Y.name,value:Y.id})}),Re(j));case 4:case"end":return h.stop()}},n)}));return function(){return r.apply(this,arguments)}}(),Oe=function(){return(0,t.jsx)(ne.Z,{className:c()["my-loading"],size:"large"})};return(0,s.useEffect)(function(){Ae()},[]),(0,t.jsxs)(le.ZP,{children:[(0,t.jsxs)("div",{className:c()["welcome-container"],children:[Ce?(0,t.jsx)(Oe,{}):null,(0,t.jsx)(E.Z,{style:{marginBottom:"30px"},children:(0,t.jsxs)(ae.Z,{children:[(0,t.jsx)(z.Z,{xs:24,sm:12,md:12,lg:12,xl:6,style:{margin:"10px 0"},children:(0,t.jsxs)("div",{className:c()["echarts-card-choose"],children:[(0,t.jsx)("div",{className:c()["echarts-card-choose-text"],children:"\u8D77\u6B62\u65F6\u95F4\uFF1A"}),(0,t.jsx)(me,{style:{width:"70%"},className:c()["my-range-picker"],value:I,onChange:function(n,a){var l=[u()(u()(new Date(a[0])).format("YYYY-MM-DD 00:00:00")),u()(u()(new Date(a[1])).format("YYYY-MM-DD 23:59:59"))];U(l)}})]})}),(0,t.jsxs)(z.Z,{xs:24,sm:12,md:12,lg:12,xl:6,style:{margin:"10px 0"},children:[(0,t.jsx)(N.Z,{className:c()["echarts-card-btn"],type:"primary",style:{width:"100px",marginRight:"10px"},onClick:function(){return X()},children:"\u67E5\u8BE2"}),(0,t.jsx)(N.Z,{className:c()["echarts-card-btn"],style:{width:"100px"},onClick:function(){U([u()(u()(new Date(Date.now()+24*60*60*1e3)).format("YYYY-MM-DD 00:00:00")),u()(u()(new Date(Date.now()+24*60*60*1e3)).format("YYYY-MM-DD 23:59:59"))]),ze(),$e(),f(1),L(10)},children:"\u91CD\u7F6E"})]})]})}),(0,t.jsx)(E.Z,{children:(0,t.jsx)(B.Z,{tabPosition:"left",value:D,onChange:function(n){C(n),A(0),f(1)},children:(0,t.jsx)(ve,{tab:"\u7528\u9910\u60C5\u51B5",children:D==1&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(te.Z,{style:{display:"flex",alignItems:"center",marginBottom:"10px"},children:(0,t.jsx)("div",{className:c()["tabs-title"],children:"\u7528\u9910\u60C5\u51B5"})}),(0,t.jsx)(ee.Z,{columns:Te,dataSource:ye,pagination:{current:v,pageSize:Z,total:ge,onChange:f,onShowSizeChange:function(n,a){return L(a)}}})]})},1)})})]}),je&&(0,t.jsx)(ce,{createModalVisible:!0,values:Ze||{},timeRange:I,onCancel:function(){J(!1),K(void 0)}})]})}}}]); diff --git a/dist/p__card__storedValueCard.bf0fc582.async.js b/dist/p__card__storedValueCard.9cfd13a3.async.js similarity index 87% rename from dist/p__card__storedValueCard.bf0fc582.async.js rename to dist/p__card__storedValueCard.9cfd13a3.async.js index c129142..3afe63d 100644 --- a/dist/p__card__storedValueCard.bf0fc582.async.js +++ b/dist/p__card__storedValueCard.9cfd13a3.async.js @@ -1 +1 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[478,1322],{59842:function(){},66050:function(H,I,a){"use strict";var G=a(11849),n=a(48971);I.Z={GetAllStore:function(){return(0,n.WY)("/kitchen/api/StoreHelper/GetAllStore",{method:"GET",headers:{TenantId:""}})},GetMemberListByPage:function(e){return(0,n.WY)("/kitchen/api/member/member-page-query",{method:"POST",data:e})},OnBindMember:function(e){return(0,n.WY)("/kitchen/api/member/member-binding-cards",{method:"POST",data:e})},GetMemberAccountCardConsRecord:function(e){return(0,n.WY)("/kitchen/api/member/member-account-amount-page",{method:"POST",data:e})},GetMemberAccountRecordTotal:function(e){return(0,n.WY)("/kitchen/api/member/member-account-record-total",{method:"POST",data:e})},AddGate:function(e){return(0,n.WY)("/kitchen/api/GateInfo/add",{method:"POST",data:e})},EnableGate:function(e){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(0,n.WY)("/kitchen/api/GateInfo/Enable",{method:"POST",data:e,headers:{TenantId:l}})},GetGateListByStorePage:function(e,l,C){var _=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"";return(0,n.WY)("/kitchen/api/GateInfo/gatelist?StoreId=".concat(e,"&Current=").concat(l,"&PageSize=").concat(C),{method:"GET",headers:{TenantId:_}})},GetGateListByStorePageNew:function(e,l,C){var _=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"";return(0,n.WY)("/kitchen/api/one-card/gate-list?StoreId=".concat(e,"&Current=").concat(l,"&PageSize=").concat(C),{method:"GET",headers:{TenantId:_}})},GetGateListByStoreList:function(e){return(0,n.WY)("/kitchen/api/GateInfo/gatealllist?StoreId=".concat(e),{method:"GET"})},UpdateGateInfo:function(e){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(0,n.WY)("/kitchen/api/GateInfo/Update",{method:"POST",data:e,headers:{TenantId:l}})},UpdateGateInfoNew:function(e){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(0,n.WY)("/kitchen/api/one-card",{method:"PUT",data:e,headers:{TenantId:l}})},PayCardAdd:function(e){return(0,n.WY)("/kitchen/api/PayCard/add",{method:"POST",data:e})},PayCardEnable:function(e){return(0,n.WY)("/kitchenapi/PayCard/enable",{method:"POST",data:e})},PayCardByGateId:function(e,l,C){return(0,n.WY)("/kitchen/api/PayCard/gateList?GateId=".concat(e,"&Current=").concat(l,"&PageSize=").concat(C),{method:"GET"})},UpdatePayCardInfo:function(e){return(0,n.WY)("/kitchen/api/PayCard/update",{method:"POST",data:e})},GetCosRequestURL:function(e){return(0,n.WY)("/kitchen/api/systemconfig/GetCosRequestSignURL",{method:"POST",data:e})},GetMemberAccountPageList:function(e){return(0,n.WY)("/kitchen/api/member/member-account-page-list",{method:"POST",data:e})},UpdateMemberAccountStatus:function(e){return(0,n.WY)("/kitchen/api/member/member-account-status",{method:"POST",data:e})},GetMemberCardPageList:function(e){return(0,n.WY)("/kitchen/api/member/mmenber-card-page",{method:"POST",data:e})},AddMemberCard:function(e){return(0,n.WY)("/kitchen/api/member/mmenber-card",{method:"POST",data:e})},UpdateMemberCardState:function(e){return(0,n.WY)("/kitchen/api/member/mmenber-card-state",{method:"PUT",data:e})},GetDicList:function(e){return(0,n.WY)("/kitchen/api/dict-data/dic-list/".concat(e),{method:"Get"})},AddGateSetUp:function(e){return(0,n.WY)("/kitchen/api/GateInfo/AddGateSetUp",{method:"POST",data:e})},GetFoodList:function(e){return(0,n.WY)("/kitchen/api/dict-data/dic-list/".concat(e),{method:"Get"})},AddGateFood:function(e){return(0,n.WY)("/kitchen/api/GateInfo/AddGateFood",{method:"POST",data:e})},GetGoodsByMenuIdPage:function(e){return(0,n.WY)("/kitchen/api/FoodMenu/GetGoodsByMenuIdPage",{method:"POST",data:(0,G.Z)({},e)})}}},95510:function(H,I,a){"use strict";a.r(I);var G=a(57338),n=a(273),s=a(11849),e=a(71194),l=a(50146),C=a(43358),_=a(34041),Te=a(47673),W=a(4107),ve=a(57663),S=a(71577),Be=a(94233),y=a(51890),f=a(39428),De=a(34792),E=a(48086),g=a(3182),Ae=a(9715),p=a(55843),m=a(2824),h=a(67294),V=a(59842),J=a.n(V),Q=a(78009),Z=a(89366),R=a(49101),L=a(16894),b=a(66050),t=a(85893),X=function(){var O=(0,h.useRef)(),q=p.Z.useForm(),ee=(0,m.Z)(q,1),T=ee[0],te=(0,h.useState)(!1),U=(0,m.Z)(te,2),ae=U[0],M=U[1],ne=(0,h.useState)({id:""}),j=(0,m.Z)(ne,2),x=j[0],v=j[1],re=(0,h.useState)(1),K=(0,m.Z)(re,2),We=K[0],se=K[1],de=(0,h.useState)(10),F=(0,m.Z)(de,2),ue=F[0],ye=F[1],ie=(0,h.useState)(0),Y=(0,m.Z)(ie,2),Ze=Y[0],Re=Y[1],oe=(0,h.useState)(!1),k=(0,m.Z)(oe,2),le=k[0],B=k[1],_e=(0,h.useState)(1),z=(0,m.Z)(_e,2),Le=z[0],ce=z[1],me=(0,h.useState)(10),N=(0,m.Z)(me,2),he=N[0],Ue=N[1],Pe=(0,h.useState)(0),w=(0,m.Z)(Pe,2),je=w[0],fe=w[1],Ee=(0,h.useState)([]),$=(0,m.Z)(Ee,2),D=$[0],A=$[1],pe=function(r){T.setFieldsValue(r),v(r),M(!0)},Ce=function(){T.resetFields(),v({id:""}),M(!0)},be=function(r){B(!0),v(r),A([]),r.memberInfoId&&A([r.memberInfoId])},Me=function(){var u=(0,g.Z)((0,f.Z)().mark(function r(){var d;return(0,f.Z)().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(D.length!==0){o.next=3;break}return E.default.info("\u8BF7\u9009\u62E9\u8981\u7ED1\u5B9A\u7684\u4F1A\u5458"),o.abrupt("return");case 3:return o.next=5,b.Z.OnBindMember({memberInfoId:D[0],memberCardId:x.id});case 5:d=o.sent,d.data===!0?(E.default.success("\u7ED1\u5B9A\u6210\u529F"),O.current.reload(),B(!1)):E.default.error("\u7ED1\u5B9A\u5931\u8D25");case 7:case"end":return o.stop()}},r)}));return function(){return u.apply(this,arguments)}}(),xe=function(r){console.log("\u5220\u9664",r)},Ie=function(){var u=(0,g.Z)((0,f.Z)().mark(function r(d){var c,o;return(0,f.Z)().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:if(!d.id){P.next=7;break}return P.next=3,b.Z.UpdateMemberCardState({id:d.id,type:d.type,state:d.state});case 3:c=P.sent,c.statusCode===200?(E.default.success("\u66F4\u65B0\u6210\u529F"),M(!1),O.current.reload()):E.default.error(c.errors||"\u66F4\u65B0\u50A8\u503C\u5361\u5931\u8D25"),P.next=11;break;case 7:return P.next=9,b.Z.AddMemberCard({type:d.type,state:d.state});case 9:o=P.sent,o.statusCode===200?(E.default.success("\u6DFB\u52A0\u6210\u529F"),M(!1),O.current.reload()):E.default.error(o.errors||"\u6DFB\u52A0\u50A8\u503C\u5361\u5931\u8D25");case 11:case"end":return P.stop()}},r)}));return function(d){return u.apply(this,arguments)}}(),ge=[{title:"\u5361\u53F7",dataIndex:"cardNum",ellipsis:!0},{title:"\u4F1A\u5458\u540D\u79F0",dataIndex:"memberName",ellipsis:!0,hideInSearch:!0},{title:"\u4F1A\u5458\u5934\u50CF",dataIndex:"headImgUrl",ellipsis:!0,width:100,align:"center",hideInSearch:!0,render:function(r,d){return(0,t.jsx)(y.C,{size:64,shape:"square",icon:(0,t.jsx)(Z.Z,{}),src:d.headImgUrl})}},{title:"\u4F1A\u5458\u7535\u8BDD",dataIndex:"phone",ellipsis:!0,hideInSearch:!0},{title:"\u72B6\u6001",dataIndex:"state",valueType:"select",hideInSearch:!0,valueEnum:{0:{text:"\u7981\u7528",status:"Error"},1:{text:"\u6B63\u5E38",status:"Success"},2:{text:"\u6302\u5931",status:"Error"},3:{text:"\u4F5C\u5E9F",status:"Error"}}},{title:"\u7C7B\u578B",dataIndex:"type",valueType:"select",hideInSearch:!0,valueEnum:{1:{text:"\u4EBA\u8138",status:"Success"},2:{text:"\u5B9E\u4F53\u5361",status:"Success"},3:{text:"\u6307\u7EB9",status:"Success"}}},{title:"\u64CD\u4F5C",valueType:"option",key:"option",render:function(r,d,c,o){return[(0,t.jsx)("a",{onClick:function(){return pe(d)},children:"\u7F16\u8F91"}),(0,t.jsx)("a",{onClick:function(){return be(d)},children:"\u7ED1\u5B9A\u4F1A\u5458"})]}}],Oe={onChange:function(r){A(r)},selectedRowKeys:D},Se=[{title:"\u4F1A\u5458\u5934\u50CF",dataIndex:"headImgUrl",ellipsis:!0,width:100,align:"center",hideInSearch:!0,render:function(r,d){return(0,t.jsx)(y.C,{size:64,shape:"square",icon:(0,t.jsx)(Z.Z,{}),src:d.headImgUrl})}},{title:"\u771F\u5B9E\u59D3\u540D",dataIndex:"realName",ellipsis:!0},{title:"\u8054\u7CFB\u65B9\u5F0F",dataIndex:"phone",ellipsis:!0}];return(0,t.jsx)(Q.ZP,{children:(0,t.jsxs)("div",{className:J().member_card_container,children:[(0,t.jsx)(L.ZP,{columns:ge,actionRef:O,request:function(){var u=(0,g.Z)((0,f.Z)().mark(function r(d){var c;return(0,f.Z)().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,b.Z.GetMemberCardPageList(d);case 2:return c=i.sent,i.abrupt("return",{data:c.data.data,success:!0,total:c.data.total});case 4:case"end":return i.stop()}},r)}));return function(r){return u.apply(this,arguments)}}(),cardBordered:!0,editable:{type:"multiple"},rowKey:"id",options:{setting:{listsHeight:400}},pagination:{pageSize:ue,onChange:function(r){return se(r)}},dateFormatter:"string",headerTitle:"\u50A8\u503C\u5361\u7BA1\u7406",toolBarRender:function(){return[(0,t.jsx)(S.Z,{icon:(0,t.jsx)(R.Z,{}),type:"primary",onClick:Ce,children:"\u65B0\u5EFA"},"button")]}}),(0,t.jsx)(l.Z,{width:600,title:x.id?"\u7F16\u8F91\u50A8\u503C\u5361":"\u6DFB\u52A0\u50A8\u503C\u5361",visible:ae,footer:!1,onCancel:function(){return M(!1)},children:(0,t.jsxs)(p.Z,{name:"basic",onFinish:Ie,form:T,labelCol:{span:4},children:[(0,t.jsx)(p.Z.Item,{label:"id",name:"id",hidden:!0,children:(0,t.jsx)(W.Z,{})}),(0,t.jsx)(p.Z.Item,{label:"\u5361\u53F7",name:"cardNum",children:(0,t.jsx)(W.Z,{disabled:!0})}),(0,t.jsx)(p.Z.Item,{label:"\u72B6\u6001",name:"state",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9009\u62E9\u72B6\u6001\uFF01"}],children:(0,t.jsxs)(_.Z,{children:[(0,t.jsx)(_.Z.Option,{value:0,children:"\u7981\u7528"}),(0,t.jsx)(_.Z.Option,{value:1,children:"\u6B63\u5E38"}),(0,t.jsx)(_.Z.Option,{value:2,children:"\u6302\u5931"}),(0,t.jsx)(_.Z.Option,{value:3,children:"\u4F5C\u5E9F"})]})}),(0,t.jsx)(p.Z.Item,{label:"\u7C7B\u578B",name:"type",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u7C7B\u578B\uFF01"}],children:(0,t.jsxs)(_.Z,{children:[(0,t.jsx)(_.Z.Option,{value:1,children:"\u4EBA\u8138"}),(0,t.jsx)(_.Z.Option,{value:2,children:"\u5B9E\u4F53\u5361"}),(0,t.jsx)(_.Z.Option,{value:3,children:"\u6307\u7EB9"})]})}),(0,t.jsx)(p.Z.Item,{children:(0,t.jsx)(S.Z,{type:"primary",htmlType:"submit",children:"\u786E\u5B9A"})})]})}),(0,t.jsx)(n.Z,{width:600,title:"\u7ED1\u5B9A\u4F1A\u5458",placement:"right",onClose:function(){return B(!1)},visible:le,children:(0,t.jsx)(L.ZP,{toolBarRender:function(){return[(0,t.jsx)(S.Z,{icon:(0,t.jsx)(R.Z,{}),type:"primary",onClick:Me,children:"\u786E\u5B9A\u7ED1\u5B9A"},"button")]},rowSelection:(0,s.Z)({type:"radio"},Oe),columns:Se,cardBordered:!0,request:(0,g.Z)((0,f.Z)().mark(function u(){var r,d,c=arguments;return(0,f.Z)().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return r=c.length>0&&c[0]!==void 0?c[0]:{},i.next=3,b.Z.GetMemberListByPage(r);case 3:if(d=i.sent,d.statusCode!==200){i.next=7;break}return fe(d.data.total),i.abrupt("return",{data:d.data.data,success:!0,total:d.data.total});case 7:case"end":return i.stop()}},u)})),rowKey:"id",search:{labelWidth:"auto"},pagination:{pageSize:he,onChange:function(r){return ce(r)}},dateFormatter:"string",headerTitle:"\u4F1A\u5458\u5217\u8868"})})]})})};I.default=X}}]); +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[478,1322],{59842:function(){},66050:function(H,I,a){"use strict";var G=a(11849),n=a(48971);I.Z={GetAllStore:function(){return(0,n.WY)("/kitchen/api/StoreHelper/GetAllStore",{method:"GET",headers:{TenantId:""}})},GetMemberListByPage:function(e){return(0,n.WY)("/kitchen/api/member/member-page-query",{method:"POST",data:e})},OnBindMember:function(e){return(0,n.WY)("/kitchen/api/member/member-binding-cards",{method:"POST",data:e})},GetMemberAccountCardConsRecord:function(e){return(0,n.WY)("/kitchen/api/member/member-account-amount-page",{method:"POST",data:e})},GetMemberAccountRecordTotal:function(e){return(0,n.WY)("/kitchen/api/member/member-account-record-total",{method:"POST",data:e})},AddGate:function(e){return(0,n.WY)("/kitchen/api/GateInfo/add",{method:"POST",data:e})},EnableGate:function(e){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(0,n.WY)("/kitchen/api/GateInfo/Enable",{method:"POST",data:e,headers:{TenantId:l}})},GetGateListByStorePage:function(e,l,C){var _=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"";return(0,n.WY)("/kitchen/api/GateInfo/gatelist?StoreId=".concat(e,"&Current=").concat(l,"&PageSize=").concat(C),{method:"GET",headers:{TenantId:_}})},GetGateListByStorePageNew:function(e,l,C){var _=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"";return(0,n.WY)("/kitchen/api/one-card/gate-list?StoreId=".concat(e,"&Current=").concat(l,"&PageSize=").concat(C),{method:"GET",headers:{TenantId:_}})},GetGateListByStoreList:function(e){return(0,n.WY)("/kitchen/api/GateInfo/gatealllist?StoreId=".concat(e),{method:"GET"})},UpdateGateInfo:function(e){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(0,n.WY)("/kitchen/api/GateInfo/Update",{method:"POST",data:e,headers:{TenantId:l}})},UpdateGateInfoNew:function(e){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(0,n.WY)("/kitchen/api/one-card",{method:"PUT",data:e,headers:{TenantId:l}})},PayCardAdd:function(e){return(0,n.WY)("/kitchen/api/PayCard/add",{method:"POST",data:e})},PayCardEnable:function(e){return(0,n.WY)("/kitchenapi/PayCard/enable",{method:"POST",data:e})},PayCardByGateId:function(e,l,C){return(0,n.WY)("/kitchen/api/PayCard/gateList?GateId=".concat(e,"&Current=").concat(l,"&PageSize=").concat(C),{method:"GET"})},UpdatePayCardInfo:function(e){return(0,n.WY)("/kitchen/api/PayCard/update",{method:"POST",data:e})},GetCosRequestURL:function(e){return(0,n.WY)("/kitchen/api/systemconfig/GetCosRequestSignURL",{method:"POST",data:e})},GetMemberAccountPageList:function(e){return(0,n.WY)("/kitchen/api/member/member-account-page-list",{method:"POST",data:e})},UpdateMemberAccountStatus:function(e){return(0,n.WY)("/kitchen/api/member/member-account-status",{method:"POST",data:e})},GetMemberCardPageList:function(e){return(0,n.WY)("/kitchen/api/member/mmenber-card-page",{method:"POST",data:e})},AddMemberCard:function(e){return(0,n.WY)("/kitchen/api/member/mmenber-card",{method:"POST",data:e})},UpdateMemberCardState:function(e){return(0,n.WY)("/kitchen/api/member/mmenber-card-state",{method:"PUT",data:e})},GetDicList:function(e){return(0,n.WY)("/kitchen/api/dict-data/dic-list/".concat(e),{method:"Get"})},AddGateSetUp:function(e){return(0,n.WY)("/kitchen/api/GateInfo/AddGateSetUp",{method:"POST",data:e})},GetFoodList:function(e){return(0,n.WY)("/kitchen/api/dict-data/dic-list/".concat(e),{method:"Get"})},AddGateFood:function(e){return(0,n.WY)("/kitchen/api/GateInfo/AddGateFood",{method:"POST",data:e})},GetGoodsByMenuIdPage:function(e){return(0,n.WY)("/kitchen/api/FoodMenu/GetGoodsByMenuIdPage",{method:"POST",data:(0,G.Z)({},e)})}}},95510:function(H,I,a){"use strict";a.r(I);var G=a(57338),n=a(273),s=a(11849),e=a(71194),l=a(50146),C=a(43358),_=a(34041),Be=a(47673),y=a(4107),Te=a(57663),S=a(71577),ve=a(94233),W=a(51890),f=a(39428),Ae=a(34792),E=a(48086),g=a(3182),De=a(9715),p=a(55843),m=a(2824),h=a(67294),V=a(59842),J=a.n(V),Q=a(78009),Z=a(89366),R=a(49101),L=a(16894),b=a(66050),t=a(85893),X=function(){var O=(0,h.useRef)(),q=p.Z.useForm(),ee=(0,m.Z)(q,1),B=ee[0],te=(0,h.useState)(!1),U=(0,m.Z)(te,2),ae=U[0],M=U[1],ne=(0,h.useState)({id:""}),j=(0,m.Z)(ne,2),x=j[0],T=j[1],re=(0,h.useState)(1),K=(0,m.Z)(re,2),ye=K[0],se=K[1],de=(0,h.useState)(10),F=(0,m.Z)(de,2),ue=F[0],We=F[1],ie=(0,h.useState)(0),Y=(0,m.Z)(ie,2),Ze=Y[0],Re=Y[1],oe=(0,h.useState)(!1),k=(0,m.Z)(oe,2),le=k[0],v=k[1],_e=(0,h.useState)(1),z=(0,m.Z)(_e,2),Le=z[0],ce=z[1],me=(0,h.useState)(10),N=(0,m.Z)(me,2),he=N[0],Ue=N[1],Pe=(0,h.useState)(0),w=(0,m.Z)(Pe,2),je=w[0],fe=w[1],Ee=(0,h.useState)([]),$=(0,m.Z)(Ee,2),A=$[0],D=$[1],pe=function(r){B.setFieldsValue(r),T(r),M(!0)},Ce=function(){B.resetFields(),T({id:""}),M(!0)},be=function(r){v(!0),T(r),D([]),r.memberInfoId&&D([r.memberInfoId])},Me=function(){var u=(0,g.Z)((0,f.Z)().mark(function r(){var d;return(0,f.Z)().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(A.length!==0){o.next=3;break}return E.default.info("\u8BF7\u9009\u62E9\u8981\u7ED1\u5B9A\u7684\u4F1A\u5458"),o.abrupt("return");case 3:return o.next=5,b.Z.OnBindMember({memberInfoId:A[0],memberCardId:x.id});case 5:d=o.sent,d.data===!0?(E.default.success("\u7ED1\u5B9A\u6210\u529F"),O.current.reload(),v(!1)):E.default.error("\u7ED1\u5B9A\u5931\u8D25");case 7:case"end":return o.stop()}},r)}));return function(){return u.apply(this,arguments)}}(),xe=function(r){console.log("\u5220\u9664",r)},Ie=function(){var u=(0,g.Z)((0,f.Z)().mark(function r(d){var c,o;return(0,f.Z)().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:if(!d.id){P.next=7;break}return P.next=3,b.Z.UpdateMemberCardState({id:d.id,type:d.type,state:d.state});case 3:c=P.sent,c.statusCode===200?(E.default.success("\u66F4\u65B0\u6210\u529F"),M(!1),O.current.reload()):E.default.error(c.errors||"\u66F4\u65B0\u50A8\u503C\u5361\u5931\u8D25"),P.next=11;break;case 7:return P.next=9,b.Z.AddMemberCard({type:d.type,state:d.state});case 9:o=P.sent,o.statusCode===200?(E.default.success("\u6DFB\u52A0\u6210\u529F"),M(!1),O.current.reload()):E.default.error(o.errors||"\u6DFB\u52A0\u50A8\u503C\u5361\u5931\u8D25");case 11:case"end":return P.stop()}},r)}));return function(d){return u.apply(this,arguments)}}(),ge=[{title:"\u5361\u53F7",dataIndex:"cardNum",ellipsis:!0},{title:"\u4F1A\u5458\u540D\u79F0",dataIndex:"memberName",ellipsis:!0,hideInSearch:!0},{title:"\u4F1A\u5458\u5934\u50CF",dataIndex:"headImgUrl",ellipsis:!0,width:100,align:"center",hideInSearch:!0,render:function(r,d){return(0,t.jsx)(W.C,{size:64,shape:"square",icon:(0,t.jsx)(Z.Z,{}),src:d.headImgUrl})}},{title:"\u4F1A\u5458\u7535\u8BDD",dataIndex:"phone",ellipsis:!0,hideInSearch:!0},{title:"\u72B6\u6001",dataIndex:"state",valueType:"select",hideInSearch:!0,valueEnum:{0:{text:"\u7981\u7528",status:"Error"},1:{text:"\u6B63\u5E38",status:"Success"},2:{text:"\u6302\u5931",status:"Error"},3:{text:"\u4F5C\u5E9F",status:"Error"}}},{title:"\u7C7B\u578B",dataIndex:"type",valueType:"select",hideInSearch:!0,valueEnum:{1:{text:"\u4EBA\u8138",status:"Success"},2:{text:"\u5B9E\u4F53\u5361",status:"Success"},3:{text:"\u6307\u7EB9",status:"Success"}}},{title:"\u64CD\u4F5C",valueType:"option",key:"option",render:function(r,d,c,o){return[(0,t.jsx)("a",{onClick:function(){return pe(d)},children:"\u7F16\u8F91"}),(0,t.jsx)("a",{onClick:function(){return be(d)},children:"\u7ED1\u5B9A\u4F1A\u5458"})]}}],Oe={onChange:function(r){D(r)},selectedRowKeys:A},Se=[{title:"\u4F1A\u5458\u5934\u50CF",dataIndex:"headImgUrl",ellipsis:!0,width:100,align:"center",hideInSearch:!0,render:function(r,d){return(0,t.jsx)(W.C,{size:64,shape:"square",icon:(0,t.jsx)(Z.Z,{}),src:d.headImgUrl})}},{title:"\u771F\u5B9E\u59D3\u540D",dataIndex:"realName",ellipsis:!0},{title:"\u8054\u7CFB\u65B9\u5F0F",dataIndex:"phone",ellipsis:!0}];return(0,t.jsx)(Q.ZP,{children:(0,t.jsxs)("div",{className:J().member_card_container,children:[(0,t.jsx)(L.ZP,{columns:ge,actionRef:O,request:function(){var u=(0,g.Z)((0,f.Z)().mark(function r(d){var c;return(0,f.Z)().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,b.Z.GetMemberCardPageList(d);case 2:return c=i.sent,i.abrupt("return",{data:c.data.data,success:!0,total:c.data.total});case 4:case"end":return i.stop()}},r)}));return function(r){return u.apply(this,arguments)}}(),cardBordered:!0,editable:{type:"multiple"},rowKey:"id",options:{setting:{listsHeight:400}},pagination:{pageSize:ue,onChange:function(r){return se(r)}},dateFormatter:"string",headerTitle:"\u50A8\u503C\u5361\u7BA1\u7406",toolBarRender:function(){return[(0,t.jsx)(S.Z,{icon:(0,t.jsx)(R.Z,{}),type:"primary",onClick:Ce,children:"\u65B0\u5EFA"},"button")]}}),(0,t.jsx)(l.Z,{width:600,title:x.id?"\u7F16\u8F91\u50A8\u503C\u5361":"\u6DFB\u52A0\u50A8\u503C\u5361",visible:ae,footer:!1,onCancel:function(){return M(!1)},children:(0,t.jsxs)(p.Z,{name:"basic",onFinish:Ie,form:B,labelCol:{span:4},children:[(0,t.jsx)(p.Z.Item,{label:"id",name:"id",hidden:!0,children:(0,t.jsx)(y.Z,{})}),(0,t.jsx)(p.Z.Item,{label:"\u5361\u53F7",name:"cardNum",children:(0,t.jsx)(y.Z,{disabled:!0})}),(0,t.jsx)(p.Z.Item,{label:"\u72B6\u6001",name:"state",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9009\u62E9\u72B6\u6001\uFF01"}],children:(0,t.jsxs)(_.Z,{children:[(0,t.jsx)(_.Z.Option,{value:0,children:"\u7981\u7528"}),(0,t.jsx)(_.Z.Option,{value:1,children:"\u6B63\u5E38"}),(0,t.jsx)(_.Z.Option,{value:2,children:"\u6302\u5931"}),(0,t.jsx)(_.Z.Option,{value:3,children:"\u4F5C\u5E9F"})]})}),(0,t.jsx)(p.Z.Item,{label:"\u7C7B\u578B",name:"type",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u7C7B\u578B\uFF01"}],children:(0,t.jsxs)(_.Z,{children:[(0,t.jsx)(_.Z.Option,{value:1,children:"\u4EBA\u8138"}),(0,t.jsx)(_.Z.Option,{value:2,children:"\u5B9E\u4F53\u5361"}),(0,t.jsx)(_.Z.Option,{value:3,children:"\u6307\u7EB9"})]})}),(0,t.jsx)(p.Z.Item,{children:(0,t.jsx)(S.Z,{type:"primary",htmlType:"submit",children:"\u786E\u5B9A"})})]})}),(0,t.jsx)(n.Z,{width:600,title:"\u7ED1\u5B9A\u4F1A\u5458",placement:"right",onClose:function(){return v(!1)},visible:le,children:(0,t.jsx)(L.ZP,{toolBarRender:function(){return[(0,t.jsx)(S.Z,{icon:(0,t.jsx)(R.Z,{}),type:"primary",onClick:Me,children:"\u786E\u5B9A\u7ED1\u5B9A"},"button")]},rowSelection:(0,s.Z)({type:"radio"},Oe),columns:Se,cardBordered:!0,request:(0,g.Z)((0,f.Z)().mark(function u(){var r,d,c=arguments;return(0,f.Z)().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return r=c.length>0&&c[0]!==void 0?c[0]:{},i.next=3,b.Z.GetMemberListByPage(r);case 3:if(d=i.sent,d.statusCode!==200){i.next=7;break}return fe(d.data.total),i.abrupt("return",{data:d.data.data,success:!0,total:d.data.total});case 7:case"end":return i.stop()}},u)})),rowKey:"id",search:{labelWidth:"auto"},pagination:{pageSize:he,onChange:function(r){return ce(r)}},dateFormatter:"string",headerTitle:"\u4F1A\u5458\u5217\u8868"})})]})})};I.default=X}}]); diff --git a/dist/p__crm__coupon__coupon-Batch.1e75f3a0.async.js b/dist/p__crm__coupon__coupon-Batch.47f0d255.async.js similarity index 83% rename from dist/p__crm__coupon__coupon-Batch.1e75f3a0.async.js rename to dist/p__crm__coupon__coupon-Batch.47f0d255.async.js index fc77e8c..de457e7 100644 --- a/dist/p__crm__coupon__coupon-Batch.1e75f3a0.async.js +++ b/dist/p__crm__coupon__coupon-Batch.47f0d255.async.js @@ -1 +1 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[6053],{64760:function(pe,$,e){"use strict";var l=e(71194),x=e(50146),i=e(62350),d=e(24565),Z=e(39428),R=e(3182),W=e(2824),te=e(47673),K=e(4107),L=e(67294),G=e(16894),O=e(78009),t=e(79146),T=e(85893),N=function(y){var b=(0,L.useRef)(),n=K.Z.TextArea,ae=(0,L.useState)(!1),z=(0,W.Z)(ae,2),me=z[0],U=z[1],X="",E=(0,L.useState)(),ne=(0,W.Z)(E,2),V=ne[0],re=ne[1],ue=function(){var _=(0,R.Z)((0,Z.Z)().mark(function r(f){return(0,Z.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:if(y.couponRecord.showType!=1){u.next=5;break}return u.next=3,(0,t.m$)(JSON.stringify({Id:V.id,Status:V.status==1?0:1,Remark:X})).then(function(g){U(!1),b.current.reload()});case 3:u.next=7;break;case 5:return u.next=7,(0,t.A8)(JSON.stringify({Id:V.id,Status:V.status==1?0:1,Remark:X})).then(function(g){U(!1),b.current.reload()});case 7:case"end":return u.stop()}},r)}));return function(f){return _.apply(this,arguments)}}(),se=function(){U(!1)},oe=function(r){X=r.target.value},le=[{title:"\u4E3B\u952E",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0},{title:"\u9002\u7528\u8303\u56F4",dataIndex:"supplier",hideInSearch:!0,valueType:"textarea"},{title:"\u72B6\u6001",key:"status",dataIndex:"status",valueEnum:{1:{text:"\u7981\u7528",status:"Warning"},0:{text:"\u542F\u7528",status:"Success"}}},{title:"\u5907\u6CE8",dataIndex:"remark",hideInSearch:!0,valueType:"textarea"},{title:"\u53D1\u653E\u65F6\u95F4",key:"sendTime",hideInSearch:!0,dataIndex:"sendTime"},{title:"\u64CD\u4F5C",dateIndex:"option",valueType:"option",render:function(r,f){return(0,T.jsx)(d.Z,{type:"primary",title:"\u786E\u8BA4\u542F\u7528\u5417\uFF1F",okText:"\u662F",cancelText:"\u5426",onConfirm:(0,R.Z)((0,Z.Z)().mark(function S(){return(0,Z.Z)().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:n.value=f.remark,re(f),U(!0);case 3:case"end":return g.stop()}},S)})),onCancel:function(){},children:(0,T.jsx)("a",{href:"#",children:f.status==0?"\u7981\u7528":"\u542F\u7528"})},"primary")}}];return(0,T.jsxs)(x.Z,{footer:null,destroyOnClose:!0,visible:y.shows,width:1100,onCancel:function(){y.onCancel()},children:[(0,T.jsx)(O.ZP,{headerTitle:"",header:{title:"\u53D1\u653E\u8BB0\u5F55",breadcrumb:{}},children:(0,T.jsx)(G.ZP,{actionRef:b,rowKey:"id",options:!1,search:{labelWidth:120},pagination:{pageSize:5},columns:le,request:function(){var _=(0,R.Z)((0,Z.Z)().mark(function r(f){var S,u;return(0,Z.Z)().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:if(S=[],u=0,f.couponId=y.couponRecord.couponId,f.batchNo=y.couponRecord.batchNo,y.couponRecord.showType!=1){p.next=9;break}return p.next=7,(0,t.m2)(f).then(function(C){S=C.data.data,u=C.data.total});case 7:p.next=11;break;case 9:return p.next=11,(0,t.tP)(f).then(function(C){S=C.data.data,u=C.data.total});case 11:return p.abrupt("return",{data:S,success:!0,total:u});case 12:case"end":return p.stop()}},r)}));return function(r){return _.apply(this,arguments)}}()})}),(0,T.jsx)(x.Z,{title:"\u5907\u6CE8",visible:me,onOk:ue,onCancel:se,children:(0,T.jsx)(n,{onChange:function(r){return oe(r)},rows:4})})]})};$.Z=N},55099:function(pe,$,e){"use strict";e.r($),e.d($,{default:function(){return le}});var l=e(39428),x=e(3182),i=e(2824),d=e(67294),Z=e(78009),R=e(16894),W=e(64760),te=e(71194),K=e(50146),L=e(30381),G=e.n(L),O=e(79146),t=e(85893),T=function(r){var f=(0,d.useRef)(),S=[{title:"\u4E3B\u952E",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0},{title:"\u5BA2\u6237\u7535\u8BDD",dataIndex:"phone",valueType:"textarea"},{title:"\u5BA2\u6237Id",dataIndex:"customerId",valueType:"textarea",search:!1},{title:"\u8BA2\u5355\u53F7",dataIndex:"orderId",valueType:"textarea"},{title:"\u4F7F\u7528\u5E97\u94FA",dataIndex:"storeName",valueType:"textarea",search:!1},{title:"\u9886\u53D6\u65B9\u5F0F",key:"receiveType",dataIndex:"receiveType",valueEnum:{1:{text:"\u5C0F\u7A0B\u5E8F\u9886\u53D6"},2:{text:"\u7EBF\u4E0B\u95E8\u5E97\u626B\u7801"},3:{text:"\u81EA\u52A8\u4E0B\u53D1"},4:{text:"\u597D\u53CB\u5206\u4EAB\u9886\u53D6"},5:{text:"\u6307\u5B9A\u53D1\u653E"},6:{text:"\u53C2\u52A0\u6D3B\u52A8"}}},{title:"\u72B6\u6001",key:"state",dataIndex:"state",valueEnum:{1:{text:"\u672A\u4F7F\u7528",status:"Warning"},2:{text:"\u5DF2\u4F7F\u7528",status:"Success"},3:{text:"\u5360\u7528\u4E2D",status:"Processing"},4:{text:"\u5931\u6548",status:"Default"}}},{title:"\u9886\u53D6\u65F6\u95F4",dataIndex:"createAt",valueType:"date"},{title:"\u6709\u6548\u65F6\u95F4",hideInSearch:!0,width:200,render:function(g,p,C){return(0,t.jsxs)("span",{children:[(0,t.jsx)("div",{children:G()(p.validStartTime).format("YYYY-MM-DD")}),(0,t.jsx)("div",{children:G()(p.validEndTime).format("YYYY-MM-DD")})]})}},{title:"\u6838\u9500\u65F6\u95F4",dataIndex:"writeOffTime",valueType:"date"}];return(0,t.jsx)(K.Z,{footer:null,destroyOnClose:!0,visible:r.shows,width:1300,onCancel:function(){r.onCancel()},children:(0,t.jsx)(Z.ZP,{header:{title:"\u9886\u53D6\u8BE6\u60C5",breadcrumb:{}},children:(0,t.jsx)(R.ZP,{actionRef:f,rowKey:"id",options:!1,search:{labelWidth:120},pagination:{pageSize:5},columns:S,request:function(){var u=(0,x.Z)((0,l.Z)().mark(function g(p){var C,j;return(0,l.Z)().wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return C=[],j=0,p.batchNo=r.couponRecord.batchNo,A.next=5,(0,O.GA)(p).then(function(B){C=B.data.data,j=B.data.total});case 5:return A.abrupt("return",{data:C,success:!0,total:j});case 6:case"end":return A.stop()}},g)}));return function(g){return u.apply(this,arguments)}}()})})})},N=T,c=e(58996),y=e(77933),b=e(11849),n=e(57663),ae=e(71577),z=e(86582),me=e(43185),U=e(93009),X=e(34792),E=e(48086),ne=e(47673),V=e(4107),re=e(84391),ue=function(r){var f,S=(0,d.useRef)(),u="sendCoupon",g=V.Z.Search,p=(0,d.useState)([]),C=(0,i.Z)(p,2),j=C[0],P=C[1],A=(0,d.useState)([]),B=(0,i.Z)(A,2),q=B[0],H=B[1],ie=(0,d.useState)(!0),Q=(0,i.Z)(ie,2),ce=Q[0],de=Q[1],he=(0,d.useState)(),w=(0,i.Z)(he,2),M=w[0],m=w[1],F=(0,d.useState)([]),D=(0,i.Z)(F,2),ve=D[0],k=D[1],ee=(0,d.useState)([]),ye=(0,i.Z)(ee,2),Ae=ye[0],Me=ye[1],xe=(0,d.useState)([]),Ce=(0,i.Z)(xe,2),Ie=Ce[0],Ze=Ce[1],Ee=(0,d.useState)(!1),Se=(0,i.Z)(Ee,2),Te=Se[0],ge=Se[1];(0,d.useEffect)(function(){var v=function(){var a=(0,x.Z)((0,l.Z)().mark(function s(h){return(0,l.Z)().wrap(function(I){for(;;)switch(I.prev=I.next){case 0:return I.next=2,(0,O.fC)({CurrentPage:1,PageSize:7}).then(function(fe){var J=[];fe.data.forEach(function(Y){J.push({key:Y.memberId,title:Y.phone,description:h,disabled:!1,tag:Y.memberId})}),H(J),P(J)});case 2:case"end":return I.stop()}},s)}));return function(h){return a.apply(this,arguments)}}();v()},[]);var _e=[{title:"\u4E3B\u952E",dataIndex:"phone",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0},{title:"\u624B\u673A\u53F7",dataIndex:"phone",search:!1,valueType:"textarea",width:110},{title:"\u5BA2\u6237ID",dataIndex:"memberId",search:!1,valueType:"textarea",width:250},{title:"\u539F\u56E0",dataIndex:"msg",search:!1,valueType:"textarea",width:250}],be={beforeUpload:function(a){return a.type!=="application/vnd.ms-excel"&&a.type!=="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"&&E.default.error("".concat(a.name," \u4E0D\u662F exelce \u6587\u4EF6")),a.type=="application/vnd.ms-excel"||a.type=="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"?!0:U.Z.LIST_IGNORE},name:"file",maxCount:1,multiple:!1,action:"/kitchen/api/member/uploadcustomer/".concat((f=r.values)===null||f===void 0?void 0:f.couponId),headers:{authorization:"authorization-text"},onChange:function(a){if(a.file.status==="done"){E.default.success("".concat(a.file.name," \u4E0A\u4F20\u6210\u529F")),a.file.response.available,Ze(a.file.response.notAvailable);var s=q.filter(function(h){var o=a.file.response.available.filter(function(I){if(I.memberId==h.key)return I});if(o.length>0)return h}).map(function(h){return h.key});m(s),ge(!0)}else a.file.status==="error"&&E.default.error("".concat(a.file.name," \u4E0A\u4F20\u5931\u8D25."))}},We=function(a){var s=(0,z.Z)(a.fileList);s=s.slice(-2),s=s.map(function(h){return h.response&&(h.url=h.response.url),h}),fileListDataState({fileList:s})},Pe=function(a,s,h){m(a)},De=function(a,s){k([].concat((0,z.Z)(a),(0,z.Z)(s)))},Re=function(a,s){},Oe=function(){var v=(0,x.Z)((0,l.Z)().mark(function a(s,h){return(0,l.Z)().wrap(function(I){for(;;)switch(I.prev=I.next){case 0:if(s!="right"){I.next=2;break}return I.abrupt("return");case 2:return I.next=4,(0,O.fC)({CurrentPage:1,PageSize:7,phone:h}).then(function(fe){var J=[];fe.data.forEach(function(Y){J.push({key:Y.memberId,title:Y.phone,description:h,disabled:!1,tag:Y.memberId})}),H(J)});case 4:case"end":return I.stop()}},a)}));return function(s,h){return v.apply(this,arguments)}}(),je=function(){var v=(0,x.Z)((0,l.Z)().mark(function a(s){return(0,l.Z)().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(!(M==null||M.length<=0)){o.next=3;break}return E.default.error("\u8BF7\u9009\u62E9\u4F1A\u5458"),o.abrupt("return");case 3:if(!(M.length>s.lastNum)){o.next=6;break}return E.default.error("\u4F18\u60E0\u5238\u6570\u91CF\u4E0D\u591F"),o.abrupt("return");case 6:return E.default.loading("\u6B63\u5728\u53D1\u9001...",u),o.prev=7,o.next=10,(0,O.aO)({memberId:M,couponId:s.couponId,couponRangeId:s.couponRangeId}).then(function(I){E.default.destroy(u),I.data?(E.default.success("\u53D1\u9001\u6210\u529F"),m([]),k([])):E.default.error("\u53D1\u9001\u5931\u8D25")});case 10:return o.abrupt("return",!0);case 13:return o.prev=13,o.t0=o.catch(7),E.default.destroy(u),E.default.error("\u53D1\u9001\u8BF7\u91CD\u8BD5\uFF01"),o.abrupt("return",!1);case 18:case"end":return o.stop()}},a,null,[[7,13]])}));return function(s){return v.apply(this,arguments)}}();return(0,t.jsxs)(K.Z,{destroyOnClose:!0,visible:r.shows,width:700,onCancel:function(){H(j),r.onCancel()},onOk:function(){je(r.values),r.actionRef.current.reload()},children:[(0,t.jsxs)(Z.ZP,{header:{title:"\u6307\u5B9A\u53D1\u653E",breadcrumb:{}},children:[(0,t.jsx)("div",{style:{height:"68px"},children:(0,t.jsx)("span",{children:(0,t.jsx)(U.Z,(0,b.Z)((0,b.Z)({},be),{},{nostyle:!0,children:(0,t.jsx)(ae.Z,{icon:(0,t.jsx)(re.Z,{}),children:"\u4E0A\u4F20\u6587\u4EF6"})}))})}),(0,t.jsx)(y.Z,{oneWay:ce,showSearch:!0,showSelectAll:!0,onSearch:Oe,dataSource:q,titles:["\u672A\u9009\u62E9","\u5DF2\u9009\u4E2D"],targetKeys:M,selectedKeys:ve,onChange:Pe,onSelectChange:De,onScroll:Re,render:function(a){return a.title},pagination:{pageSize:8},listStyle:{width:500,height:400}})]}),(0,t.jsx)(K.Z,{footer:null,title:"\u65E0\u6548\u4F1A\u5458",visible:Te,width:600,onCancel:function(){ge(!1)},children:(0,t.jsx)(R.ZP,{headerTitle:"\u65E0\u6548\u4F1A\u5458",actionRef:S,rowKey:"phone",columns:_e,toolBarRender:!1,search:!1,scroll:{y:450},pagination:!1,request:function(){var v=(0,x.Z)((0,l.Z)().mark(function a(s){return(0,l.Z)().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",{data:Ie,success:!0,total:Ie.length});case 1:case"end":return o.stop()}},a)}));return function(a){return v.apply(this,arguments)}}()})})]})},se=ue,oe=function(){var r=(0,d.useRef)(),f=(0,d.useState)(!1),S=(0,i.Z)(f,2),u=S[0],g=S[1],p=(0,d.useState)(),C=(0,i.Z)(p,2),j=C[0],P=C[1],A=(0,d.useState)(!1),B=(0,i.Z)(A,2),q=B[0],H=B[1],ie=(0,d.useState)(!1),Q=(0,i.Z)(ie,2),ce=Q[0],de=Q[1],he=[{title:"\u4E3B\u952E",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0},{title:"\u6279\u6B21\u53F7",dataIndex:"batchNo",valueType:"textarea"},{title:"\u4F18\u60E0\u5377",dataIndex:"couponTitle",valueType:"textarea"},{title:"\u53D1\u653E\u6570\u91CF",dataIndex:"sendNum",search:!1,valueType:"textarea"},{title:"\u9886\u53D6\u6570\u91CF",dataIndex:"totalNum",search:!1,valueType:"digit"},{title:"\u5269\u4F59\u6570\u91CF",dataIndex:"lastNum",search:!1,valueType:"digit"},{title:"\u53D1\u653E\u65F6\u95F4",dataIndex:"createAt",valueType:"date"},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(M,m){var F=[(0,t.jsx)("a",{type:"primary",onClick:function(){g(!0),P({batchNo:m.batchNo,couponId:m.couponId,showType:1})},children:"\u9002\u7528\u8303\u56F4"},"primary1"),(0,t.jsx)("a",{type:"primary",onClick:function(){g(!0),P({batchNo:m.batchNo,couponId:m.couponId,showType:2})},children:"\u9002\u7528\u5546\u54C1"},"primary2"),(0,t.jsx)("a",{type:"primary",onClick:function(){de(!0),P({batchNo:m.batchNo})},children:"\u9886\u53D6\u8BE6\u60C5"},"primary3"),(0,t.jsx)("a",{type:"primary",disabled:m.validStatus!=1||m.lastNum==0,style:{pointerEvents:m.validStatus!=1||m.lastNum==0?"none":"auto"},onClick:function(){H(!0),P({couponRangeId:m.id,couponId:m.couponId,lastNum:m.lastNum})},children:"\u53D1\u653E"},"primary")];return F}}];return(0,t.jsxs)(Z.ZP,{children:[(0,t.jsx)(R.ZP,{headerTitle:"\u4F18\u60E0\u5377",actionRef:r,rowKey:"id",search:{labelWidth:120},columns:he,request:function(){var w=(0,x.Z)((0,l.Z)().mark(function M(m){var F,D;return(0,l.Z)().wrap(function(k){for(;;)switch(k.prev=k.next){case 0:return F=[],D=0,k.next=4,(0,O.hz)(m).then(function(ee){F=ee.data.data,D=ee.data.total});case 4:return k.abrupt("return",{data:F,success:!0,total:D});case 5:case"end":return k.stop()}},M)}));return function(M){return w.apply(this,arguments)}}()}),(0,t.jsx)(W.Z,{shows:u,onCancel:function(){g(!1),P(void 0)},couponRecord:j}),(0,t.jsx)(N,{shows:ce,onCancel:function(){de(!1),P(void 0)},couponRecord:j}),(0,t.jsx)(se,{shows:q,values:j,actionRef:r,onCancel:function(){H(!1),P(void 0)}})]})},le=oe},79146:function(pe,$,e){"use strict";e.d($,{hz:function(){return d},GA:function(){return R},m$:function(){return te},m2:function(){return K},tP:function(){return L},A8:function(){return G},aO:function(){return O},fC:function(){return T}});var l=e(39428),x=e(3182),i=e(48971);function d(c){return Z.apply(this,arguments)}function Z(){return Z=(0,x.Z)((0,l.Z)().mark(function c(y){return(0,l.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,i.WY)("/kitchen/api/coupon/couponrecordpage",{method:"POST",data:y}));case 1:case"end":return n.stop()}},c)})),Z.apply(this,arguments)}function R(c){return W.apply(this,arguments)}function W(){return W=(0,x.Z)((0,l.Z)().mark(function c(y){return(0,l.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,i.WY)("/kitchen/api/coupon/customerpage",{method:"POST",data:y}));case 1:case"end":return n.stop()}},c)})),W.apply(this,arguments)}function te(c){return(0,i.WY)("/kitchen/api/coupon/recallcoupon",{method:"post",data:c})}function K(c){return(0,i.WY)("/kitchen/api/coupon/couponrecordbyid",{method:"post",data:c})}function L(c){return(0,i.WY)("/kitchen/api/coupon/couponrecordgoods",{method:"post",data:c})}function G(c){return(0,i.WY)("/kitchen/api/coupon/recallcoupongoods",{method:"post",data:c})}function O(c){return t.apply(this,arguments)}function t(){return t=(0,x.Z)((0,l.Z)().mark(function c(y){return(0,l.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,i.WY)("/kitchen/api/coupon/receivecouponbyinput",{method:"PUT",data:y}));case 1:case"end":return n.stop()}},c)})),t.apply(this,arguments)}function T(c){return N.apply(this,arguments)}function N(){return N=(0,x.Z)((0,l.Z)().mark(function c(y){return(0,l.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,i.WY)("/kitchen\u200B/api\u200B/select\u200B/customerinfo\u200B",{method:"Post",data:y}));case 1:case"end":return n.stop()}},c)})),N.apply(this,arguments)}}}]); +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[6053],{64760:function(pe,$,e){"use strict";var l=e(71194),x=e(50146),i=e(62350),d=e(24565),Z=e(39428),R=e(3182),B=e(2824),te=e(47673),k=e(4107),L=e(67294),G=e(16894),O=e(78009),t=e(79146),T=e(85893),N=function(y){var b=(0,L.useRef)(),n=k.Z.TextArea,ae=(0,L.useState)(!1),z=(0,B.Z)(ae,2),me=z[0],U=z[1],X="",E=(0,L.useState)(),ne=(0,B.Z)(E,2),V=ne[0],re=ne[1],ue=function(){var _=(0,R.Z)((0,Z.Z)().mark(function r(f){return(0,Z.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:if(y.couponRecord.showType!=1){u.next=5;break}return u.next=3,(0,t.m$)(JSON.stringify({Id:V.id,Status:V.status==1?0:1,Remark:X})).then(function(g){U(!1),b.current.reload()});case 3:u.next=7;break;case 5:return u.next=7,(0,t.A8)(JSON.stringify({Id:V.id,Status:V.status==1?0:1,Remark:X})).then(function(g){U(!1),b.current.reload()});case 7:case"end":return u.stop()}},r)}));return function(f){return _.apply(this,arguments)}}(),se=function(){U(!1)},oe=function(r){X=r.target.value},le=[{title:"\u4E3B\u952E",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0},{title:"\u9002\u7528\u8303\u56F4",dataIndex:"supplier",hideInSearch:!0,valueType:"textarea"},{title:"\u72B6\u6001",key:"status",dataIndex:"status",valueEnum:{1:{text:"\u7981\u7528",status:"Warning"},0:{text:"\u542F\u7528",status:"Success"}}},{title:"\u5907\u6CE8",dataIndex:"remark",hideInSearch:!0,valueType:"textarea"},{title:"\u53D1\u653E\u65F6\u95F4",key:"sendTime",hideInSearch:!0,dataIndex:"sendTime"},{title:"\u64CD\u4F5C",dateIndex:"option",valueType:"option",render:function(r,f){return(0,T.jsx)(d.Z,{type:"primary",title:"\u786E\u8BA4\u542F\u7528\u5417\uFF1F",okText:"\u662F",cancelText:"\u5426",onConfirm:(0,R.Z)((0,Z.Z)().mark(function S(){return(0,Z.Z)().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:n.value=f.remark,re(f),U(!0);case 3:case"end":return g.stop()}},S)})),onCancel:function(){},children:(0,T.jsx)("a",{href:"#",children:f.status==0?"\u7981\u7528":"\u542F\u7528"})},"primary")}}];return(0,T.jsxs)(x.Z,{footer:null,destroyOnClose:!0,visible:y.shows,width:1100,onCancel:function(){y.onCancel()},children:[(0,T.jsx)(O.ZP,{headerTitle:"",header:{title:"\u53D1\u653E\u8BB0\u5F55",breadcrumb:{}},children:(0,T.jsx)(G.ZP,{actionRef:b,rowKey:"id",options:!1,search:{labelWidth:120},pagination:{pageSize:5},columns:le,request:function(){var _=(0,R.Z)((0,Z.Z)().mark(function r(f){var S,u;return(0,Z.Z)().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:if(S=[],u=0,f.couponId=y.couponRecord.couponId,f.batchNo=y.couponRecord.batchNo,y.couponRecord.showType!=1){p.next=9;break}return p.next=7,(0,t.m2)(f).then(function(C){S=C.data.data,u=C.data.total});case 7:p.next=11;break;case 9:return p.next=11,(0,t.tP)(f).then(function(C){S=C.data.data,u=C.data.total});case 11:return p.abrupt("return",{data:S,success:!0,total:u});case 12:case"end":return p.stop()}},r)}));return function(r){return _.apply(this,arguments)}}()})}),(0,T.jsx)(x.Z,{title:"\u5907\u6CE8",visible:me,onOk:ue,onCancel:se,children:(0,T.jsx)(n,{onChange:function(r){return oe(r)},rows:4})})]})};$.Z=N},55099:function(pe,$,e){"use strict";e.r($),e.d($,{default:function(){return le}});var l=e(39428),x=e(3182),i=e(2824),d=e(67294),Z=e(78009),R=e(16894),B=e(64760),te=e(71194),k=e(50146),L=e(30381),G=e.n(L),O=e(79146),t=e(85893),T=function(r){var f=(0,d.useRef)(),S=[{title:"\u4E3B\u952E",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0},{title:"\u5BA2\u6237\u7535\u8BDD",dataIndex:"phone",valueType:"textarea"},{title:"\u5BA2\u6237Id",dataIndex:"customerId",valueType:"textarea",search:!1},{title:"\u8BA2\u5355\u53F7",dataIndex:"orderId",valueType:"textarea"},{title:"\u4F7F\u7528\u5E97\u94FA",dataIndex:"storeName",valueType:"textarea",search:!1},{title:"\u9886\u53D6\u65B9\u5F0F",key:"receiveType",dataIndex:"receiveType",valueEnum:{1:{text:"\u5C0F\u7A0B\u5E8F\u9886\u53D6"},2:{text:"\u7EBF\u4E0B\u95E8\u5E97\u626B\u7801"},3:{text:"\u81EA\u52A8\u4E0B\u53D1"},4:{text:"\u597D\u53CB\u5206\u4EAB\u9886\u53D6"},5:{text:"\u6307\u5B9A\u53D1\u653E"},6:{text:"\u53C2\u52A0\u6D3B\u52A8"}}},{title:"\u72B6\u6001",key:"state",dataIndex:"state",valueEnum:{1:{text:"\u672A\u4F7F\u7528",status:"Warning"},2:{text:"\u5DF2\u4F7F\u7528",status:"Success"},3:{text:"\u5360\u7528\u4E2D",status:"Processing"},4:{text:"\u5931\u6548",status:"Default"}}},{title:"\u9886\u53D6\u65F6\u95F4",dataIndex:"createAt",valueType:"date"},{title:"\u6709\u6548\u65F6\u95F4",hideInSearch:!0,width:200,render:function(g,p,C){return(0,t.jsxs)("span",{children:[(0,t.jsx)("div",{children:G()(p.validStartTime).format("YYYY-MM-DD")}),(0,t.jsx)("div",{children:G()(p.validEndTime).format("YYYY-MM-DD")})]})}},{title:"\u6838\u9500\u65F6\u95F4",dataIndex:"writeOffTime",valueType:"date"}];return(0,t.jsx)(k.Z,{footer:null,destroyOnClose:!0,visible:r.shows,width:1300,onCancel:function(){r.onCancel()},children:(0,t.jsx)(Z.ZP,{header:{title:"\u9886\u53D6\u8BE6\u60C5",breadcrumb:{}},children:(0,t.jsx)(R.ZP,{actionRef:f,rowKey:"id",options:!1,search:{labelWidth:120},pagination:{pageSize:5},columns:S,request:function(){var u=(0,x.Z)((0,l.Z)().mark(function g(p){var C,A;return(0,l.Z)().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return C=[],A=0,p.batchNo=r.couponRecord.batchNo,j.next=5,(0,O.GA)(p).then(function(W){C=W.data.data,A=W.data.total});case 5:return j.abrupt("return",{data:C,success:!0,total:A});case 6:case"end":return j.stop()}},g)}));return function(g){return u.apply(this,arguments)}}()})})})},N=T,c=e(58996),y=e(77933),b=e(11849),n=e(57663),ae=e(71577),z=e(86582),me=e(43185),U=e(93009),X=e(34792),E=e(48086),ne=e(47673),V=e(4107),re=e(84391),ue=function(r){var f,S=(0,d.useRef)(),u="sendCoupon",g=V.Z.Search,p=(0,d.useState)([]),C=(0,i.Z)(p,2),A=C[0],P=C[1],j=(0,d.useState)([]),W=(0,i.Z)(j,2),q=W[0],H=W[1],ie=(0,d.useState)(!0),Q=(0,i.Z)(ie,2),ce=Q[0],de=Q[1],he=(0,d.useState)(),w=(0,i.Z)(he,2),M=w[0],m=w[1],F=(0,d.useState)([]),D=(0,i.Z)(F,2),ve=D[0],K=D[1],ee=(0,d.useState)([]),ye=(0,i.Z)(ee,2),je=ye[0],Me=ye[1],xe=(0,d.useState)([]),Ce=(0,i.Z)(xe,2),Ie=Ce[0],Ze=Ce[1],Ee=(0,d.useState)(!1),Se=(0,i.Z)(Ee,2),Te=Se[0],ge=Se[1];(0,d.useEffect)(function(){var v=function(){var a=(0,x.Z)((0,l.Z)().mark(function s(h){return(0,l.Z)().wrap(function(I){for(;;)switch(I.prev=I.next){case 0:return I.next=2,(0,O.fC)({CurrentPage:1,PageSize:7}).then(function(fe){var J=[];fe.data.forEach(function(Y){J.push({key:Y.memberId,title:Y.phone,description:h,disabled:!1,tag:Y.memberId})}),H(J),P(J)});case 2:case"end":return I.stop()}},s)}));return function(h){return a.apply(this,arguments)}}();v()},[]);var _e=[{title:"\u4E3B\u952E",dataIndex:"phone",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0},{title:"\u624B\u673A\u53F7",dataIndex:"phone",search:!1,valueType:"textarea",width:110},{title:"\u5BA2\u6237ID",dataIndex:"memberId",search:!1,valueType:"textarea",width:250},{title:"\u539F\u56E0",dataIndex:"msg",search:!1,valueType:"textarea",width:250}],be={beforeUpload:function(a){return a.type!=="application/vnd.ms-excel"&&a.type!=="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"&&E.default.error("".concat(a.name," \u4E0D\u662F exelce \u6587\u4EF6")),a.type=="application/vnd.ms-excel"||a.type=="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"?!0:U.Z.LIST_IGNORE},name:"file",maxCount:1,multiple:!1,action:"/kitchen/api/member/uploadcustomer/".concat((f=r.values)===null||f===void 0?void 0:f.couponId),headers:{authorization:"authorization-text"},onChange:function(a){if(a.file.status==="done"){E.default.success("".concat(a.file.name," \u4E0A\u4F20\u6210\u529F")),a.file.response.available,Ze(a.file.response.notAvailable);var s=q.filter(function(h){var o=a.file.response.available.filter(function(I){if(I.memberId==h.key)return I});if(o.length>0)return h}).map(function(h){return h.key});m(s),ge(!0)}else a.file.status==="error"&&E.default.error("".concat(a.file.name," \u4E0A\u4F20\u5931\u8D25."))}},Be=function(a){var s=(0,z.Z)(a.fileList);s=s.slice(-2),s=s.map(function(h){return h.response&&(h.url=h.response.url),h}),fileListDataState({fileList:s})},Pe=function(a,s,h){m(a)},De=function(a,s){K([].concat((0,z.Z)(a),(0,z.Z)(s)))},Re=function(a,s){},Oe=function(){var v=(0,x.Z)((0,l.Z)().mark(function a(s,h){return(0,l.Z)().wrap(function(I){for(;;)switch(I.prev=I.next){case 0:if(s!="right"){I.next=2;break}return I.abrupt("return");case 2:return I.next=4,(0,O.fC)({CurrentPage:1,PageSize:7,phone:h}).then(function(fe){var J=[];fe.data.forEach(function(Y){J.push({key:Y.memberId,title:Y.phone,description:h,disabled:!1,tag:Y.memberId})}),H(J)});case 4:case"end":return I.stop()}},a)}));return function(s,h){return v.apply(this,arguments)}}(),Ae=function(){var v=(0,x.Z)((0,l.Z)().mark(function a(s){return(0,l.Z)().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(!(M==null||M.length<=0)){o.next=3;break}return E.default.error("\u8BF7\u9009\u62E9\u4F1A\u5458"),o.abrupt("return");case 3:if(!(M.length>s.lastNum)){o.next=6;break}return E.default.error("\u4F18\u60E0\u5238\u6570\u91CF\u4E0D\u591F"),o.abrupt("return");case 6:return E.default.loading("\u6B63\u5728\u53D1\u9001...",u),o.prev=7,o.next=10,(0,O.aO)({memberId:M,couponId:s.couponId,couponRangeId:s.couponRangeId}).then(function(I){E.default.destroy(u),I.data?(E.default.success("\u53D1\u9001\u6210\u529F"),m([]),K([])):E.default.error("\u53D1\u9001\u5931\u8D25")});case 10:return o.abrupt("return",!0);case 13:return o.prev=13,o.t0=o.catch(7),E.default.destroy(u),E.default.error("\u53D1\u9001\u8BF7\u91CD\u8BD5\uFF01"),o.abrupt("return",!1);case 18:case"end":return o.stop()}},a,null,[[7,13]])}));return function(s){return v.apply(this,arguments)}}();return(0,t.jsxs)(k.Z,{destroyOnClose:!0,visible:r.shows,width:700,onCancel:function(){H(A),r.onCancel()},onOk:function(){Ae(r.values),r.actionRef.current.reload()},children:[(0,t.jsxs)(Z.ZP,{header:{title:"\u6307\u5B9A\u53D1\u653E",breadcrumb:{}},children:[(0,t.jsx)("div",{style:{height:"68px"},children:(0,t.jsx)("span",{children:(0,t.jsx)(U.Z,(0,b.Z)((0,b.Z)({},be),{},{nostyle:!0,children:(0,t.jsx)(ae.Z,{icon:(0,t.jsx)(re.Z,{}),children:"\u4E0A\u4F20\u6587\u4EF6"})}))})}),(0,t.jsx)(y.Z,{oneWay:ce,showSearch:!0,showSelectAll:!0,onSearch:Oe,dataSource:q,titles:["\u672A\u9009\u62E9","\u5DF2\u9009\u4E2D"],targetKeys:M,selectedKeys:ve,onChange:Pe,onSelectChange:De,onScroll:Re,render:function(a){return a.title},pagination:{pageSize:8},listStyle:{width:500,height:400}})]}),(0,t.jsx)(k.Z,{footer:null,title:"\u65E0\u6548\u4F1A\u5458",visible:Te,width:600,onCancel:function(){ge(!1)},children:(0,t.jsx)(R.ZP,{headerTitle:"\u65E0\u6548\u4F1A\u5458",actionRef:S,rowKey:"phone",columns:_e,toolBarRender:!1,search:!1,scroll:{y:450},pagination:!1,request:function(){var v=(0,x.Z)((0,l.Z)().mark(function a(s){return(0,l.Z)().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",{data:Ie,success:!0,total:Ie.length});case 1:case"end":return o.stop()}},a)}));return function(a){return v.apply(this,arguments)}}()})})]})},se=ue,oe=function(){var r=(0,d.useRef)(),f=(0,d.useState)(!1),S=(0,i.Z)(f,2),u=S[0],g=S[1],p=(0,d.useState)(),C=(0,i.Z)(p,2),A=C[0],P=C[1],j=(0,d.useState)(!1),W=(0,i.Z)(j,2),q=W[0],H=W[1],ie=(0,d.useState)(!1),Q=(0,i.Z)(ie,2),ce=Q[0],de=Q[1],he=[{title:"\u4E3B\u952E",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0},{title:"\u6279\u6B21\u53F7",dataIndex:"batchNo",valueType:"textarea"},{title:"\u4F18\u60E0\u5377",dataIndex:"couponTitle",valueType:"textarea"},{title:"\u53D1\u653E\u6570\u91CF",dataIndex:"sendNum",search:!1,valueType:"textarea"},{title:"\u9886\u53D6\u6570\u91CF",dataIndex:"totalNum",search:!1,valueType:"digit"},{title:"\u5269\u4F59\u6570\u91CF",dataIndex:"lastNum",search:!1,valueType:"digit"},{title:"\u53D1\u653E\u65F6\u95F4",dataIndex:"createAt",valueType:"date"},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(M,m){var F=[(0,t.jsx)("a",{type:"primary",onClick:function(){g(!0),P({batchNo:m.batchNo,couponId:m.couponId,showType:1})},children:"\u9002\u7528\u8303\u56F4"},"primary1"),(0,t.jsx)("a",{type:"primary",onClick:function(){g(!0),P({batchNo:m.batchNo,couponId:m.couponId,showType:2})},children:"\u9002\u7528\u5546\u54C1"},"primary2"),(0,t.jsx)("a",{type:"primary",onClick:function(){de(!0),P({batchNo:m.batchNo})},children:"\u9886\u53D6\u8BE6\u60C5"},"primary3"),(0,t.jsx)("a",{type:"primary",disabled:m.validStatus!=1||m.lastNum==0,style:{pointerEvents:m.validStatus!=1||m.lastNum==0?"none":"auto"},onClick:function(){H(!0),P({couponRangeId:m.id,couponId:m.couponId,lastNum:m.lastNum})},children:"\u53D1\u653E"},"primary")];return F}}];return(0,t.jsxs)(Z.ZP,{children:[(0,t.jsx)(R.ZP,{headerTitle:"\u4F18\u60E0\u5377",actionRef:r,rowKey:"id",search:{labelWidth:120},columns:he,request:function(){var w=(0,x.Z)((0,l.Z)().mark(function M(m){var F,D;return(0,l.Z)().wrap(function(K){for(;;)switch(K.prev=K.next){case 0:return F=[],D=0,K.next=4,(0,O.hz)(m).then(function(ee){F=ee.data.data,D=ee.data.total});case 4:return K.abrupt("return",{data:F,success:!0,total:D});case 5:case"end":return K.stop()}},M)}));return function(M){return w.apply(this,arguments)}}()}),(0,t.jsx)(B.Z,{shows:u,onCancel:function(){g(!1),P(void 0)},couponRecord:A}),(0,t.jsx)(N,{shows:ce,onCancel:function(){de(!1),P(void 0)},couponRecord:A}),(0,t.jsx)(se,{shows:q,values:A,actionRef:r,onCancel:function(){H(!1),P(void 0)}})]})},le=oe},79146:function(pe,$,e){"use strict";e.d($,{hz:function(){return d},GA:function(){return R},m$:function(){return te},m2:function(){return k},tP:function(){return L},A8:function(){return G},aO:function(){return O},fC:function(){return T}});var l=e(39428),x=e(3182),i=e(48971);function d(c){return Z.apply(this,arguments)}function Z(){return Z=(0,x.Z)((0,l.Z)().mark(function c(y){return(0,l.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,i.WY)("/kitchen/api/coupon/couponrecordpage",{method:"POST",data:y}));case 1:case"end":return n.stop()}},c)})),Z.apply(this,arguments)}function R(c){return B.apply(this,arguments)}function B(){return B=(0,x.Z)((0,l.Z)().mark(function c(y){return(0,l.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,i.WY)("/kitchen/api/coupon/customerpage",{method:"POST",data:y}));case 1:case"end":return n.stop()}},c)})),B.apply(this,arguments)}function te(c){return(0,i.WY)("/kitchen/api/coupon/recallcoupon",{method:"post",data:c})}function k(c){return(0,i.WY)("/kitchen/api/coupon/couponrecordbyid",{method:"post",data:c})}function L(c){return(0,i.WY)("/kitchen/api/coupon/couponrecordgoods",{method:"post",data:c})}function G(c){return(0,i.WY)("/kitchen/api/coupon/recallcoupongoods",{method:"post",data:c})}function O(c){return t.apply(this,arguments)}function t(){return t=(0,x.Z)((0,l.Z)().mark(function c(y){return(0,l.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,i.WY)("/kitchen/api/coupon/receivecouponbyinput",{method:"PUT",data:y}));case 1:case"end":return n.stop()}},c)})),t.apply(this,arguments)}function T(c){return N.apply(this,arguments)}function N(){return N=(0,x.Z)((0,l.Z)().mark(function c(y){return(0,l.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,i.WY)("/kitchen\u200B/api\u200B/select\u200B/customerinfo\u200B",{method:"Post",data:y}));case 1:case"end":return n.stop()}},c)})),N.apply(this,arguments)}}}]); diff --git a/dist/p__crm__coupon__goodsCoupon.980ad3ce.async.js b/dist/p__crm__coupon__goodsCoupon.d1a90272.async.js similarity index 99% rename from dist/p__crm__coupon__goodsCoupon.980ad3ce.async.js rename to dist/p__crm__coupon__goodsCoupon.d1a90272.async.js index 555c1e0..ffdd805 100644 --- a/dist/p__crm__coupon__goodsCoupon.980ad3ce.async.js +++ b/dist/p__crm__coupon__goodsCoupon.d1a90272.async.js @@ -1 +1 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[1679],{68526:function($e,ne,s){"use strict";s.r(ne),s.d(ne,{default:function(){return ke}});var Be=s(57663),K=s(71577),De=s(43358),re=s(34041),Ne=s(34792),c=s(48086),l=s(39428),h=s(3182),I=s(2824),f=s(67294),Oe=s(30381),ue=s(16894),ce=s(78009),pe=s(85224),Ae=s(71194),se=s(50146),O=s(11849),We=s(77883),le=s(85986),Le=s(49111),fe=s(19650),Ye=s(48736),he=s(27049),Ve=s(47673),A=s(4107),ve=s(86582),ze=s(9715),y=s(55843),me=s(49101),P=s(48971);function ye(d){return H.apply(this,arguments)}function H(){return H=(0,h.Z)((0,l.Z)().mark(function d(o){return(0,l.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,P.WY)("/kitchen/api/goodscoupon/getGoodsCouponPgage",{method:"POST",data:o}));case 1:case"end":return r.stop()}},d)})),H.apply(this,arguments)}function ge(d){return Q.apply(this,arguments)}function Q(){return Q=(0,h.Z)((0,l.Z)().mark(function d(o){return(0,l.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,P.WY)("/kitchen/api/goodscoupon/addGoodsCoupon",{method:"POST",data:o}));case 1:case"end":return r.stop()}},d)})),Q.apply(this,arguments)}function Ze(d){return X.apply(this,arguments)}function X(){return X=(0,h.Z)((0,l.Z)().mark(function d(o){return(0,l.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,P.WY)("/kitchen/api/goodscoupon/updateGoodsCouponEnable?Ids="+o,{method:"GET"}));case 1:case"end":return r.stop()}},d)})),X.apply(this,arguments)}function Se(d){return q.apply(this,arguments)}function q(){return q=(0,h.Z)((0,l.Z)().mark(function d(o){return(0,l.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,P.WY)("/kitchen/api/goodscoupon/updateGoodsCoupon",{method:"POST",data:o}));case 1:case"end":return r.stop()}},d)})),q.apply(this,arguments)}function oe(){return _.apply(this,arguments)}function _(){return _=(0,h.Z)((0,l.Z)().mark(function d(){return(0,l.Z)().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.abrupt("return",(0,P.WY)("/kitchen/api/papercoupon/getPaperCouponType",{method:"GET"}));case 1:case"end":return m.stop()}},d)})),_.apply(this,arguments)}function Ce(d){return ee.apply(this,arguments)}function ee(){return ee=(0,h.Z)((0,l.Z)().mark(function d(o){return(0,l.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,P.WY)("/kitchen/api/papercoupon/addPaperCouponType",{method:"POST",data:o}));case 1:case"end":return r.stop()}},d)})),ee.apply(this,arguments)}function Ie(d){return te.apply(this,arguments)}function te(){return te=(0,h.Z)((0,l.Z)().mark(function d(o){return(0,l.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,P.WY)("\u200B\u200B/kitchen/api/Store/GetStoreGoods",{method:"POST",data:o}));case 1:case"end":return r.stop()}},d)})),te.apply(this,arguments)}function Te(d){return ae.apply(this,arguments)}function ae(){return ae=(0,h.Z)((0,l.Z)().mark(function d(o){return(0,l.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,P.WY)("/kitchen/api/Store/GetStoreList",{method:"POST",data:o}));case 1:case"end":return r.stop()}},d)})),ae.apply(this,arguments)}var Me=s(58024),je=s(91894),Je=s(14781),xe=s(36138),Ue=s(18106),ie=s(86629),t=s(85893),we=ie.Z.TabPane,Ke="message",Fe=function(o){var m=(0,f.useState)([]),r=(0,I.Z)(m,2),T=r[0],U=r[1],W=(0,f.useState)(0),G=(0,I.Z)(W,2),L=G[0],R=G[1],Y=(0,f.useState)(!1),b=(0,I.Z)(Y,2),k=b[0],x=b[1],Z=[{title:"\u4E3B\u952E",dataIndex:"id",hideInSearch:!0,hideInTable:!0,tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key"},{title:"\u5546\u54C1",dataIndex:"goods_Name",valueType:"textarea"},{title:"\u5546\u54C1\u4EF7\u683C",dataIndex:"price",valueType:"money"},{title:"\u5546\u54C1\u4F1A\u5458\u4EF7\u683C",dataIndex:"vipPrice",valueType:"money"},{title:"\u662F\u5426\u8BBE\u5907\u5236\u4F5C",dataIndex:"isDevice",valueEnum:{0:{text:"\u5E97\u94FA",status:"Processing"},1:{text:"\u8BBE\u5907",status:"Success"}}},{title:"\u72B6\u6001",dataIndex:"status",valueEnum:{0:{text:"\u4E0A\u67B6",status:"Processing"},1:{text:"\u4E0B\u67B6",status:"Success"}}},{title:"\u4F30\u6E05",dataIndex:"stopSales",valueEnum:{0:{text:"\u9500\u552E",status:"Processing"},1:{text:"\u4F30\u6E05",status:"Success"}}}],$=function(){var S=(0,h.Z)((0,l.Z)().mark(function g(C){return(0,l.Z)().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return x(!0),v.prev=1,v.next=4,Te({current:C,pageSize:10}).then(function(w){R(1),U(w.data),x(!1)});case 4:v.next=9;break;case 6:v.prev=6,v.t0=v.catch(1),x(!1);case 9:case"end":return v.stop()}},g,null,[[1,6]])}));return function(C){return S.apply(this,arguments)}}(),B=(0,f.useRef)(),V=(0,f.useRef)();return(0,f.useEffect)(function(){$(1)},[]),(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)(je.Z,{headStyle:{border:"0px "},title:"\u5E97\u94FA\u5546\u54C1",style:{marginTop:"17px"},children:[(0,t.jsx)(ie.Z,{defaultActiveKey:"1",tabPosition:"left",onChange:function(g){},children:T==null?void 0:T.map(function(S){return(0,t.jsx)(we,{tab:S.name,children:(0,t.jsx)(ue.ZP,{actionRef:V,rowKey:"id",search:!1,loading:k,bordered:!0,columns:Z,request:function(){var g=(0,h.Z)((0,l.Z)().mark(function C(j){var v,w;return(0,l.Z)().wrap(function(F){for(;;)switch(F.prev=F.next){case 0:return v=[],w=0,j.StoreId=S.id,F.next=5,Ie(j).then(function(z){var D,N;v=(D=z.data)===null||D===void 0?void 0:D.data,w=(N=z.data)===null||N===void 0?void 0:N.total});case 5:return F.abrupt("return",{data:v,success:!0,total:w});case 6:case"end":return F.stop()}},C)}));return function(C){return g.apply(this,arguments)}}(),rowSelection:{type:"radio",onChange:function(C,j){o.oncheck(j)}}},S.id)},S.id)})}),(0,t.jsx)(xe.Z,{size:"small",style:{float:"right"},total:L,onChange:function(g,C){$(g)},showTotal:function(g,C){return"\u603B\u5171 ".concat(g," \u6761")},defaultPageSize:10,defaultCurrent:1})]})})},Pe=Fe,Ge=0,Re=function(o){var m=y.Z.useForm(),r=(0,I.Z)(m,1),T=r[0],U=(0,f.useState)(),W=(0,I.Z)(U,2),G=W[0],L=W[1],R=(0,f.useState)(!1),Y=(0,I.Z)(R,2),b=Y[0],k=Y[1],x=(0,f.useRef)(null),Z=(0,f.useState)(""),$=(0,I.Z)(Z,2),B=$[0],V=$[1],S=(0,f.useState)([]),g=(0,I.Z)(S,2),C=g[0],j=g[1];(0,f.useEffect)(function(){v()},[]),(0,f.useEffect)(function(){T.setFieldsValue(o.values)},[o.values]);var v=function(){var i=(0,h.Z)((0,l.Z)().mark(function u(){var a,p;return(0,l.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,oe();case 2:a=n.sent,p=[],a.data.map(function(E){return p.push({label:E.value,value:E.key})}),L(p);case 6:case"end":return n.stop()}},u)}));return function(){return i.apply(this,arguments)}}(),w={labelCol:{sm:{span:4}},wrapperCol:{}},M={wrapperCol:{sm:{span:500,offset:1}}},F=function(u){V(u.target.value)},z=function(){var i=(0,h.Z)((0,l.Z)().mark(function u(a){return(0,l.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a.preventDefault(),L([].concat((0,ve.Z)(G),[{label:B,value:Ge++}])),V(""),setTimeout(function(){var n;(n=x.current)===null||n===void 0||n.focus()},0),e.next=6,Ce(JSON.stringify({Name:B})).then(function(n){n.data?(c.default.success("\u6DFB\u52A0\u6210\u529F"),v()):c.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01")});case 6:case"end":return e.stop()}},u)}));return function(a){return i.apply(this,arguments)}}(),D=function(){k(!0)},N=function(u){console.log(u),j(u)};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(se.Z,{maskClosable:!1,title:o.values.id?"\u7F16\u8F91\u4F18\u60E0\u5377":"\u65B0\u5EFA\u4F18\u60E0\u5377",width:700,visible:o.createModalVisible,footer:null,onCancel:function(){o.onCancel()},destroyOnClose:!0,children:(0,t.jsxs)(y.Z,(0,O.Z)((0,O.Z)({},w),{},{layout:"Horizontal",preserve:!1,form:T,onFinish:o.onFinish,children:[(0,t.jsx)(y.Z.Item,{name:"id",hidden:!0,children:(0,t.jsx)(A.Z,{})}),(0,t.jsx)(y.Z.Item,{name:"storeId",hidden:!0,children:(0,t.jsx)(A.Z,{})}),(0,t.jsx)(y.Z.Item,{name:"goodsId",hidden:!0,children:(0,t.jsx)(A.Z,{})}),(0,t.jsx)(y.Z.Item,{name:"goodsName",label:"\u5546\u54C1",rules:[{required:!0,max:200}],children:(0,t.jsx)(A.Z,{placeholder:"\u8BF7\u9009\u62E9\u5546\u54C1\u540D\u79F0",onClick:D})}),(0,t.jsx)(y.Z.Item,{name:"title",label:"\u4F18\u60E0\u5377\u6807\u9898",rules:[{required:!0,max:200}],children:(0,t.jsx)(A.Z,{placeholder:"\u8BF7\u8F93\u5165\u4F18\u60E0\u5377\u6807\u9898"})}),(0,t.jsx)(y.Z.Item,{name:"cTypeId",label:"\u4F18\u60E0\u5377\u7C7B\u578B",defaultValue:o.values.cTypeId,rules:[{required:!0}],children:(0,t.jsx)(re.Z,{placeholder:"\u8BF7\u9009\u62E9\u4F18\u60E0\u5377\u7C7B\u578B",dropdownRender:function(u){return(0,t.jsxs)(t.Fragment,{children:[u,(0,t.jsx)(he.Z,{style:{margin:"8px 0"}}),(0,t.jsxs)(fe.Z,{style:{padding:"0 8px 4px"},children:[(0,t.jsx)(A.Z,{placeholder:"\u8BF7\u8F93\u5165\u9009\u9879",ref:x,value:B,onChange:F}),(0,t.jsx)(K.Z,{type:"text",icon:(0,t.jsx)(me.Z,{}),onClick:z,children:"\u65B0\u589E"})]})]})},options:G})}),(0,t.jsx)(y.Z.Item,(0,O.Z)((0,O.Z)({},M),{},{style:{height:32},children:(0,t.jsx)(y.Z.Item,{label:"\u539F\u59CB\u91D1\u989D",style:{float:"left"},rules:[{required:!0}],children:(0,t.jsx)(y.Z.Item,{name:"money",noStyle:!0,children:(0,t.jsx)(le.Z,{placeholder:"\u91D1\u989D",min:0,precision:2})})})})),(0,t.jsx)(y.Z.Item,(0,O.Z)((0,O.Z)({},M),{},{style:{height:32},children:(0,t.jsx)(y.Z.Item,{label:"\u5E73\u53F0\u91D1\u989D",style:{float:"left"},rules:[{required:!0}],children:(0,t.jsx)(y.Z.Item,{name:"soureMoney",noStyle:!0,children:(0,t.jsx)(le.Z,{placeholder:"\u91D1\u989D",min:0,precision:2})})})})),(0,t.jsx)(y.Z.Item,{children:(0,t.jsx)(K.Z,{type:"primary",htmlType:"submit",style:{float:"right"},children:"\u4FDD\u5B58"})})]}))}),(0,t.jsx)(se.Z,{title:"\u5546\u54C1\u5217\u8868",destroyOnClose:!0,maskClosable:!1,visible:b,width:900,onCancel:function(){k(!1)},onOk:function(){var u="",a="",p=0,e="";C.forEach(function(n,E){u=u+n.goods_Name,a=a+n.goodsId,p=n.price,e=n.storeId,E=2&&(a.validStartTime=a.dateRange[0],a.validEndTime=a.dateRange[1]),a.CTypeId=V,J.next=6,ye(a).then(function(de){e=de.data.data,n=de.data.total});case 6:return J.abrupt("return",{data:e,success:!0,total:n});case 7:case"end":return J.stop()}},u)}));return function(u,a){return i.apply(this,arguments)}}()}),(T==null?void 0:T.length)>0&&(0,t.jsx)(pe.Z,{extra:(0,t.jsxs)("div",{children:[" ","\u5DF2\u9009\u62E9 ",(0,t.jsxs)("a",{style:{fontWeight:600},children:[T.length," "]})," \u9879 \xA0\xA0"," "]})}),(0,t.jsx)(Ee,{onFinish:function(){var i=(0,h.Z)((0,l.Z)().mark(function u(a){var p;return(0,l.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(p=!1,!a.id){n.next=7;break}return n.next=4,z(a);case 4:p=n.sent,n.next=10;break;case 7:return n.next=9,M(a);case 9:p=n.sent;case 10:p&&(R(!1),o.current&&o.current.reload());case 11:case"end":return n.stop()}},u)}));return function(u){return i.apply(this,arguments)}}(),onCancel:function(){x(void 0),R(!1)},createModalVisible:L,values:k||{}})]})},ke=be}}]); +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[1679],{68526:function($e,ne,s){"use strict";s.r(ne),s.d(ne,{default:function(){return ke}});var Be=s(57663),K=s(71577),De=s(43358),re=s(34041),Ne=s(34792),c=s(48086),l=s(39428),h=s(3182),I=s(2824),f=s(67294),Oe=s(30381),ue=s(16894),ce=s(78009),pe=s(85224),Ae=s(71194),se=s(50146),O=s(11849),We=s(77883),le=s(85986),Le=s(49111),fe=s(19650),Ye=s(48736),he=s(27049),Ve=s(47673),A=s(4107),ve=s(86582),ze=s(9715),y=s(55843),me=s(49101),P=s(48971);function ye(d){return H.apply(this,arguments)}function H(){return H=(0,h.Z)((0,l.Z)().mark(function d(o){return(0,l.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,P.WY)("/kitchen/api/goodscoupon/getGoodsCouponPgage",{method:"POST",data:o}));case 1:case"end":return r.stop()}},d)})),H.apply(this,arguments)}function ge(d){return Q.apply(this,arguments)}function Q(){return Q=(0,h.Z)((0,l.Z)().mark(function d(o){return(0,l.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,P.WY)("/kitchen/api/goodscoupon/addGoodsCoupon",{method:"POST",data:o}));case 1:case"end":return r.stop()}},d)})),Q.apply(this,arguments)}function Ze(d){return X.apply(this,arguments)}function X(){return X=(0,h.Z)((0,l.Z)().mark(function d(o){return(0,l.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,P.WY)("/kitchen/api/goodscoupon/updateGoodsCouponEnable?Ids="+o,{method:"GET"}));case 1:case"end":return r.stop()}},d)})),X.apply(this,arguments)}function Se(d){return q.apply(this,arguments)}function q(){return q=(0,h.Z)((0,l.Z)().mark(function d(o){return(0,l.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,P.WY)("/kitchen/api/goodscoupon/updateGoodsCoupon",{method:"POST",data:o}));case 1:case"end":return r.stop()}},d)})),q.apply(this,arguments)}function oe(){return _.apply(this,arguments)}function _(){return _=(0,h.Z)((0,l.Z)().mark(function d(){return(0,l.Z)().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.abrupt("return",(0,P.WY)("/kitchen/api/papercoupon/getPaperCouponType",{method:"GET"}));case 1:case"end":return m.stop()}},d)})),_.apply(this,arguments)}function Ce(d){return ee.apply(this,arguments)}function ee(){return ee=(0,h.Z)((0,l.Z)().mark(function d(o){return(0,l.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,P.WY)("/kitchen/api/papercoupon/addPaperCouponType",{method:"POST",data:o}));case 1:case"end":return r.stop()}},d)})),ee.apply(this,arguments)}function Ie(d){return te.apply(this,arguments)}function te(){return te=(0,h.Z)((0,l.Z)().mark(function d(o){return(0,l.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,P.WY)("\u200B\u200B/kitchen/api/Store/GetStoreGoods",{method:"POST",data:o}));case 1:case"end":return r.stop()}},d)})),te.apply(this,arguments)}function Te(d){return ae.apply(this,arguments)}function ae(){return ae=(0,h.Z)((0,l.Z)().mark(function d(o){return(0,l.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,P.WY)("/kitchen/api/Store/GetStoreList",{method:"POST",data:o}));case 1:case"end":return r.stop()}},d)})),ae.apply(this,arguments)}var Me=s(58024),je=s(91894),Je=s(14781),xe=s(36138),Ue=s(18106),ie=s(95562),t=s(85893),we=ie.Z.TabPane,Ke="message",Fe=function(o){var m=(0,f.useState)([]),r=(0,I.Z)(m,2),T=r[0],U=r[1],W=(0,f.useState)(0),G=(0,I.Z)(W,2),L=G[0],R=G[1],Y=(0,f.useState)(!1),b=(0,I.Z)(Y,2),k=b[0],x=b[1],Z=[{title:"\u4E3B\u952E",dataIndex:"id",hideInSearch:!0,hideInTable:!0,tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key"},{title:"\u5546\u54C1",dataIndex:"goods_Name",valueType:"textarea"},{title:"\u5546\u54C1\u4EF7\u683C",dataIndex:"price",valueType:"money"},{title:"\u5546\u54C1\u4F1A\u5458\u4EF7\u683C",dataIndex:"vipPrice",valueType:"money"},{title:"\u662F\u5426\u8BBE\u5907\u5236\u4F5C",dataIndex:"isDevice",valueEnum:{0:{text:"\u5E97\u94FA",status:"Processing"},1:{text:"\u8BBE\u5907",status:"Success"}}},{title:"\u72B6\u6001",dataIndex:"status",valueEnum:{0:{text:"\u4E0A\u67B6",status:"Processing"},1:{text:"\u4E0B\u67B6",status:"Success"}}},{title:"\u4F30\u6E05",dataIndex:"stopSales",valueEnum:{0:{text:"\u9500\u552E",status:"Processing"},1:{text:"\u4F30\u6E05",status:"Success"}}}],$=function(){var S=(0,h.Z)((0,l.Z)().mark(function g(C){return(0,l.Z)().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return x(!0),v.prev=1,v.next=4,Te({current:C,pageSize:10}).then(function(w){R(1),U(w.data),x(!1)});case 4:v.next=9;break;case 6:v.prev=6,v.t0=v.catch(1),x(!1);case 9:case"end":return v.stop()}},g,null,[[1,6]])}));return function(C){return S.apply(this,arguments)}}(),B=(0,f.useRef)(),V=(0,f.useRef)();return(0,f.useEffect)(function(){$(1)},[]),(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)(je.Z,{headStyle:{border:"0px "},title:"\u5E97\u94FA\u5546\u54C1",style:{marginTop:"17px"},children:[(0,t.jsx)(ie.Z,{defaultActiveKey:"1",tabPosition:"left",onChange:function(g){},children:T==null?void 0:T.map(function(S){return(0,t.jsx)(we,{tab:S.name,children:(0,t.jsx)(ue.ZP,{actionRef:V,rowKey:"id",search:!1,loading:k,bordered:!0,columns:Z,request:function(){var g=(0,h.Z)((0,l.Z)().mark(function C(j){var v,w;return(0,l.Z)().wrap(function(F){for(;;)switch(F.prev=F.next){case 0:return v=[],w=0,j.StoreId=S.id,F.next=5,Ie(j).then(function(z){var D,N;v=(D=z.data)===null||D===void 0?void 0:D.data,w=(N=z.data)===null||N===void 0?void 0:N.total});case 5:return F.abrupt("return",{data:v,success:!0,total:w});case 6:case"end":return F.stop()}},C)}));return function(C){return g.apply(this,arguments)}}(),rowSelection:{type:"radio",onChange:function(C,j){o.oncheck(j)}}},S.id)},S.id)})}),(0,t.jsx)(xe.Z,{size:"small",style:{float:"right"},total:L,onChange:function(g,C){$(g)},showTotal:function(g,C){return"\u603B\u5171 ".concat(g," \u6761")},defaultPageSize:10,defaultCurrent:1})]})})},Pe=Fe,Ge=0,Re=function(o){var m=y.Z.useForm(),r=(0,I.Z)(m,1),T=r[0],U=(0,f.useState)(),W=(0,I.Z)(U,2),G=W[0],L=W[1],R=(0,f.useState)(!1),Y=(0,I.Z)(R,2),b=Y[0],k=Y[1],x=(0,f.useRef)(null),Z=(0,f.useState)(""),$=(0,I.Z)(Z,2),B=$[0],V=$[1],S=(0,f.useState)([]),g=(0,I.Z)(S,2),C=g[0],j=g[1];(0,f.useEffect)(function(){v()},[]),(0,f.useEffect)(function(){T.setFieldsValue(o.values)},[o.values]);var v=function(){var i=(0,h.Z)((0,l.Z)().mark(function u(){var a,p;return(0,l.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,oe();case 2:a=n.sent,p=[],a.data.map(function(E){return p.push({label:E.value,value:E.key})}),L(p);case 6:case"end":return n.stop()}},u)}));return function(){return i.apply(this,arguments)}}(),w={labelCol:{sm:{span:4}},wrapperCol:{}},M={wrapperCol:{sm:{span:500,offset:1}}},F=function(u){V(u.target.value)},z=function(){var i=(0,h.Z)((0,l.Z)().mark(function u(a){return(0,l.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a.preventDefault(),L([].concat((0,ve.Z)(G),[{label:B,value:Ge++}])),V(""),setTimeout(function(){var n;(n=x.current)===null||n===void 0||n.focus()},0),e.next=6,Ce(JSON.stringify({Name:B})).then(function(n){n.data?(c.default.success("\u6DFB\u52A0\u6210\u529F"),v()):c.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01")});case 6:case"end":return e.stop()}},u)}));return function(a){return i.apply(this,arguments)}}(),D=function(){k(!0)},N=function(u){console.log(u),j(u)};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(se.Z,{maskClosable:!1,title:o.values.id?"\u7F16\u8F91\u4F18\u60E0\u5377":"\u65B0\u5EFA\u4F18\u60E0\u5377",width:700,visible:o.createModalVisible,footer:null,onCancel:function(){o.onCancel()},destroyOnClose:!0,children:(0,t.jsxs)(y.Z,(0,O.Z)((0,O.Z)({},w),{},{layout:"Horizontal",preserve:!1,form:T,onFinish:o.onFinish,children:[(0,t.jsx)(y.Z.Item,{name:"id",hidden:!0,children:(0,t.jsx)(A.Z,{})}),(0,t.jsx)(y.Z.Item,{name:"storeId",hidden:!0,children:(0,t.jsx)(A.Z,{})}),(0,t.jsx)(y.Z.Item,{name:"goodsId",hidden:!0,children:(0,t.jsx)(A.Z,{})}),(0,t.jsx)(y.Z.Item,{name:"goodsName",label:"\u5546\u54C1",rules:[{required:!0,max:200}],children:(0,t.jsx)(A.Z,{placeholder:"\u8BF7\u9009\u62E9\u5546\u54C1\u540D\u79F0",onClick:D})}),(0,t.jsx)(y.Z.Item,{name:"title",label:"\u4F18\u60E0\u5377\u6807\u9898",rules:[{required:!0,max:200}],children:(0,t.jsx)(A.Z,{placeholder:"\u8BF7\u8F93\u5165\u4F18\u60E0\u5377\u6807\u9898"})}),(0,t.jsx)(y.Z.Item,{name:"cTypeId",label:"\u4F18\u60E0\u5377\u7C7B\u578B",defaultValue:o.values.cTypeId,rules:[{required:!0}],children:(0,t.jsx)(re.Z,{placeholder:"\u8BF7\u9009\u62E9\u4F18\u60E0\u5377\u7C7B\u578B",dropdownRender:function(u){return(0,t.jsxs)(t.Fragment,{children:[u,(0,t.jsx)(he.Z,{style:{margin:"8px 0"}}),(0,t.jsxs)(fe.Z,{style:{padding:"0 8px 4px"},children:[(0,t.jsx)(A.Z,{placeholder:"\u8BF7\u8F93\u5165\u9009\u9879",ref:x,value:B,onChange:F}),(0,t.jsx)(K.Z,{type:"text",icon:(0,t.jsx)(me.Z,{}),onClick:z,children:"\u65B0\u589E"})]})]})},options:G})}),(0,t.jsx)(y.Z.Item,(0,O.Z)((0,O.Z)({},M),{},{style:{height:32},children:(0,t.jsx)(y.Z.Item,{label:"\u539F\u59CB\u91D1\u989D",style:{float:"left"},rules:[{required:!0}],children:(0,t.jsx)(y.Z.Item,{name:"money",noStyle:!0,children:(0,t.jsx)(le.Z,{placeholder:"\u91D1\u989D",min:0,precision:2})})})})),(0,t.jsx)(y.Z.Item,(0,O.Z)((0,O.Z)({},M),{},{style:{height:32},children:(0,t.jsx)(y.Z.Item,{label:"\u5E73\u53F0\u91D1\u989D",style:{float:"left"},rules:[{required:!0}],children:(0,t.jsx)(y.Z.Item,{name:"soureMoney",noStyle:!0,children:(0,t.jsx)(le.Z,{placeholder:"\u91D1\u989D",min:0,precision:2})})})})),(0,t.jsx)(y.Z.Item,{children:(0,t.jsx)(K.Z,{type:"primary",htmlType:"submit",style:{float:"right"},children:"\u4FDD\u5B58"})})]}))}),(0,t.jsx)(se.Z,{title:"\u5546\u54C1\u5217\u8868",destroyOnClose:!0,maskClosable:!1,visible:b,width:900,onCancel:function(){k(!1)},onOk:function(){var u="",a="",p=0,e="";C.forEach(function(n,E){u=u+n.goods_Name,a=a+n.goodsId,p=n.price,e=n.storeId,E=2&&(a.validStartTime=a.dateRange[0],a.validEndTime=a.dateRange[1]),a.CTypeId=V,J.next=6,ye(a).then(function(de){e=de.data.data,n=de.data.total});case 6:return J.abrupt("return",{data:e,success:!0,total:n});case 7:case"end":return J.stop()}},u)}));return function(u,a){return i.apply(this,arguments)}}()}),(T==null?void 0:T.length)>0&&(0,t.jsx)(pe.Z,{extra:(0,t.jsxs)("div",{children:[" ","\u5DF2\u9009\u62E9 ",(0,t.jsxs)("a",{style:{fontWeight:600},children:[T.length," "]})," \u9879 \xA0\xA0"," "]})}),(0,t.jsx)(Ee,{onFinish:function(){var i=(0,h.Z)((0,l.Z)().mark(function u(a){var p;return(0,l.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(p=!1,!a.id){n.next=7;break}return n.next=4,z(a);case 4:p=n.sent,n.next=10;break;case 7:return n.next=9,M(a);case 9:p=n.sent;case 10:p&&(R(!1),o.current&&o.current.reload());case 11:case"end":return n.stop()}},u)}));return function(u){return i.apply(this,arguments)}}(),onCancel:function(){x(void 0),R(!1)},createModalVisible:L,values:k||{}})]})},ke=be}}]); diff --git a/dist/p__device__deviceInfo.890a20d8.async.js b/dist/p__device__deviceInfo.d2899f3f.async.js similarity index 92% rename from dist/p__device__deviceInfo.890a20d8.async.js rename to dist/p__device__deviceInfo.d2899f3f.async.js index 924b6f1..5695789 100644 --- a/dist/p__device__deviceInfo.890a20d8.async.js +++ b/dist/p__device__deviceInfo.d2899f3f.async.js @@ -1 +1 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[7657,1322],{17997:function(ct,he,s){"use strict";s.r(he),s.d(he,{default:function(){return Kt}});var Q=s(57663),V=s(71577),Z=s(2824),r=s(39428),He=s(34792),l=s(48086),i=s(3182),ne=s(49101),h=s(67294),ie=s(78009),Ze=s(85224),te=s(16894),Je=s(71194),ee=s(50146),lt=s(77883),ae=s(85986),Qe=s(62999),se=s(54680),b=s(9715),p=s(55843),re=s(47673),d=s(4107),ce=s(43358),G=s(34041),le=s(11849),F=s(48971);function ot(a){return ge.apply(this,arguments)}function ge(){return ge=(0,i.Z)((0,r.Z)().mark(function a(t){return(0,r.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,F.WY)("/kitchen/api/Device/GetDeviceInfoPage",{method:"POST",data:t}));case 1:case"end":return e.stop()}},a)})),ge.apply(this,arguments)}function dt(a){return Se.apply(this,arguments)}function Se(){return Se=(0,i.Z)((0,r.Z)().mark(function a(t){return(0,r.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,F.WY)("/kitchen/api/dict-data/dic-list/".concat(t),{method:"Get"}));case 1:case"end":return e.stop()}},a)})),Se.apply(this,arguments)}function pt(a){return De.apply(this,arguments)}function De(){return De=(0,i.Z)((0,r.Z)().mark(function a(t){return(0,r.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,F.WY)("/kitchen/api/Device/AddDeviceInfo",{method:"POST",data:t}));case 1:case"end":return e.stop()}},a)})),De.apply(this,arguments)}function ft(a){return ke.apply(this,arguments)}function ke(){return ke=(0,i.Z)((0,r.Z)().mark(function a(t){return(0,r.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,F.WY)("/kitchen/api/Device/PushDeviceGoods?DeviceId="+t,{method:"Get"}));case 1:case"end":return e.stop()}},a)})),ke.apply(this,arguments)}function Xe(a){return we.apply(this,arguments)}function we(){return we=(0,i.Z)((0,r.Z)().mark(function a(t){return(0,r.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,F.WY)("/kitchen/api/Device/UpdateDeviceInfo",{method:"POST",data:t}));case 1:case"end":return e.stop()}},a)})),we.apply(this,arguments)}function ht(a){return Ce.apply(this,arguments)}function Ce(){return Ce=(0,i.Z)((0,r.Z)().mark(function a(t){return(0,r.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,F.WY)("/kitchen/api/Device/CopyDevice",{method:"POST",data:t}));case 1:case"end":return e.stop()}},a)})),Ce.apply(this,arguments)}function vt(a){return Fe.apply(this,arguments)}function Fe(){return Fe=(0,i.Z)((0,r.Z)().mark(function a(t){return(0,r.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,F.WY)("\u200B\u200B/kitchen/api/Device/DelDeviceInfo",{method:"POST",data:t}));case 1:case"end":return e.stop()}},a)})),Fe.apply(this,arguments)}function mt(a){return je.apply(this,arguments)}function je(){return je=(0,i.Z)((0,r.Z)().mark(function a(t){return(0,r.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,F.WY)("\u200B/kitchen/api/Device/GetDeviceType",{method:"GET"}));case 1:case"end":return e.stop()}},a)})),je.apply(this,arguments)}function yt(){return Ie.apply(this,arguments)}function Ie(){return Ie=(0,i.Z)((0,r.Z)().mark(function a(){return(0,r.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,F.WY)("\u200B/kitchen/api/Device/GetDeviceVersions",{method:"post"}));case 1:case"end":return u.stop()}},a)})),Ie.apply(this,arguments)}function qt(a,t){return be.apply(this,arguments)}function be(){return be=_asyncToGenerator(_regeneratorRuntime().mark(function a(t,u){return _regeneratorRuntime().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.abrupt("return",request("/kitchen/api/Device/GetDeviceGoods",{method:"POST",data:_objectSpread({},t)}));case 1:case"end":return c.stop()}},a)})),be.apply(this,arguments)}function Zt(a){return Ee.apply(this,arguments)}function Ee(){return Ee=(0,i.Z)((0,r.Z)().mark(function a(t){return(0,r.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,F.WY)("/kitchen/api/Device/AddDeviceGood",{method:"POST",data:(0,le.Z)({},t)}));case 1:case"end":return e.stop()}},a)})),Ee.apply(this,arguments)}function er(a){return Te.apply(this,arguments)}function Te(){return Te=_asyncToGenerator(_regeneratorRuntime().mark(function a(t){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("/kitchen/\u200Bapi/Device/GetGoods",{method:"POST",data:_objectSpread({},t)}));case 1:case"end":return e.stop()}},a)})),Te.apply(this,arguments)}function gt(a){return Oe.apply(this,arguments)}function Oe(){return Oe=(0,i.Z)((0,r.Z)().mark(function a(t){return(0,r.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,F.WY)("/kitchen/\u200Bapi/Device/GetByDeviceGoods",{method:"POST",data:(0,le.Z)({},t)}));case 1:case"end":return e.stop()}},a)})),Oe.apply(this,arguments)}function St(a){return xe.apply(this,arguments)}function xe(){return xe=(0,i.Z)((0,r.Z)().mark(function a(t){return(0,r.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,F.WY)("/kitchen/api/Device/GetDeviceStorePage",{method:"POST",data:t}));case 1:case"end":return e.stop()}},a)})),xe.apply(this,arguments)}function Dt(a){return Be.apply(this,arguments)}function Be(){return Be=(0,i.Z)((0,r.Z)().mark(function a(t){return(0,r.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,F.WY)("/kitchen/api/Device/DelStockAdjust?Id=".concat(t),{method:"DELETE"}));case 1:case"end":return e.stop()}},a)})),Be.apply(this,arguments)}function kt(a){return Ae.apply(this,arguments)}function Ae(){return Ae=(0,i.Z)((0,r.Z)().mark(function a(t){return(0,r.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,F.WY)("/kitchen/api/Device/AddUpdateDeviceStocAsync",{method:"POST",data:t}));case 1:case"end":return e.stop()}},a)})),Ae.apply(this,arguments)}function wt(a){return $e.apply(this,arguments)}function $e(){return $e=(0,i.Z)((0,r.Z)().mark(function a(t){return(0,r.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,F.WY)("/kitchen/api/Device/AddUpdateDeviceStocAsync",{method:"put",data:t}));case 1:case"end":return e.stop()}},a)})),$e.apply(this,arguments)}function Ct(a){return Ge.apply(this,arguments)}function Ge(){return Ge=(0,i.Z)((0,r.Z)().mark(function a(t){return(0,r.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,F.WY)("/kitchen/api/deviceconfig/getlocs?Code=".concat(t),{method:"GET"}));case 1:case"end":return e.stop()}},a)})),Ge.apply(this,arguments)}function Ft(a){return Pe.apply(this,arguments)}function Pe(){return Pe=(0,i.Z)((0,r.Z)().mark(function a(t){return(0,r.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,F.WY)("/kitchen/api/Device/GetProductList",{method:"post",data:t}));case 1:case"end":return e.stop()}},a)})),Pe.apply(this,arguments)}function jt(a){return Me.apply(this,arguments)}function Me(){return Me=(0,i.Z)((0,r.Z)().mark(function a(t){return(0,r.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,F.WY)("/kitchen/\u200Bapi/FoodMenu/tree",{data:(0,le.Z)({},t)}));case 1:case"end":return e.stop()}},a)})),Me.apply(this,arguments)}function It(a){return Re.apply(this,arguments)}function Re(){return Re=(0,i.Z)((0,r.Z)().mark(function a(t){return(0,r.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,F.WY)("/kitchen/api/Device/PushDevice?DeviceId=".concat(t),{method:"post"}));case 1:case"end":return e.stop()}},a)})),Re.apply(this,arguments)}function bt(a){return We.apply(this,arguments)}function We(){return We=(0,i.Z)((0,r.Z)().mark(function a(t){return(0,r.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,F.WY)("/kitchen/api/Device/CheckStockAdjust?DeviceId=".concat(t),{method:"POST"}));case 1:case"end":return e.stop()}},a)})),We.apply(this,arguments)}function _e(a){return Ve.apply(this,arguments)}function Ve(){return Ve=(0,i.Z)((0,r.Z)().mark(function a(t){return(0,r.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,F.WY)("/kitchen/api/DeviceVesion/GetDeviceVesion?Code=".concat(t),{method:"Get"}));case 1:case"end":return e.stop()}},a)})),Ve.apply(this,arguments)}function Et(a){return Le.apply(this,arguments)}function Le(){return Le=(0,i.Z)((0,r.Z)().mark(function a(t){return(0,r.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,F.WY)("/kitchen/api/goodes/TechnologyTemplateExport?deviceId=".concat(t),{method:"post",responseType:"blob"}));case 1:case"end":return e.stop()}},a)})),Le.apply(this,arguments)}var n=s(85893),Tt=function(t){var u=G.Z.Option,e=G.Z.OptGroup,c=(0,h.useState)([]),v=(0,Z.Z)(c,2),E=v[0],X=v[1];(0,h.useEffect)(function(){console.log(t.values),Object.keys(t.values).length>0&&_e(t.values.deviceTypeKey).then(function(w){X(w.data)})},[t.values]);var K=function(O){_e(O).then(function(R){X(R.data)})};return(0,n.jsx)(ee.Z,{title:t.values.id?"\u7F16\u8F91":"\u65B0\u5EFA",width:640,visible:t.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){t.onCancel()},destroyOnClose:!0,children:(0,n.jsxs)(p.Z,{layout:"Horizontal",labelCol:{span:4},preserve:!1,initialValues:t.values,onFinish:t.onFinish,children:[(0,n.jsx)(p.Z.Item,{name:"id",hidden:!0,children:(0,n.jsx)(d.Z,{})}),(0,n.jsx)(p.Z.Item,{label:"\u8BBE\u5907\u540D\u79F0",name:"deviceName",rules:[{required:!0,max:50}],children:(0,n.jsx)(d.Z,{})}),(0,n.jsx)(p.Z.Item,{label:"\u8BBE\u5907\u7C7B\u578B",name:"deviceTypeKey",rules:[{required:!0}],children:(0,n.jsx)(G.Z,{onChange:K,children:t.dicData.map(function(w,O){return(0,n.jsx)(G.Z.Option,{index:O,value:w.code,children:w.value},w.code)})})}),(0,n.jsx)(p.Z.Item,{label:"\u8BBE\u5907\u7248\u672C",name:"deviceVersionKey",rules:[{required:!0}],children:(0,n.jsx)(G.Z,{children:E.map(function(w,O){return(0,n.jsx)(G.Z.Option,{index:O,value:w.id,children:w.vesion},w.id)})})}),(0,n.jsx)(p.Z.Item,{name:"orgId",label:"\u5F52\u5C5E\u95E8\u5E97",rules:[{required:!0}],children:(0,n.jsx)(se.Z,{style:{width:"100%"},dropdownStyle:{maxHeight:400,overflow:"auto"},treeData:t.OrgData,placeholder:"\u5F52\u5C5E\u95E8\u5E97",treeDefaultExpandAll:!0})}),(0,n.jsx)(p.Z.Item,{label:"\u8BBE\u5907\u5206\u7C7B",name:"deviceTypeId",rules:[{required:!0}],children:(0,n.jsx)(G.Z,{children:t.storeType.map(function(w,O){return(0,n.jsx)(G.Z.Option,{index:O,value:w.id,children:w.text},w.id)})})}),(0,n.jsx)(p.Z.Item,{noStyle:!0,shouldUpdate:function(O,R){return O.deviceTypeKey!==R.deviceTypeKey},children:function(O){var R,z=O.getFieldValue;return z("deviceTypeKey")==="TMC"?(0,n.jsx)(p.Z.Item,{name:"deviceVersion",label:"\u8BBE\u5907\u7248\u672C",initialValue:"WorryFreeEdition",children:(0,n.jsx)(G.Z,{children:(R=t.deviceVersions)===null||R===void 0?void 0:R.map(function(_,$){return(0,n.jsx)(G.Z.Option,{index:$,value:_.code,children:_.name},_.code)})})}):null}}),(0,n.jsx)(p.Z.Item,{label:"\u8BBE\u5907\u5750\u6807",name:"deviceLoc",children:(0,n.jsx)(d.Z,{placeholder:"104.070734,30.575041"})}),(0,n.jsx)(p.Z.Item,{label:"\u72B6\u6001",name:"status",rules:[{required:!0}],children:(0,n.jsx)(G.Z,{placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001",children:(0,n.jsxs)(e,{children:[(0,n.jsx)(G.Z.Option,{value:0,children:"\u6B63\u5E38"}),(0,n.jsx)(G.Z.Option,{value:1,children:"\u505C\u7528"})]})})}),(0,n.jsx)(p.Z.Item,{label:"\u8BBE\u5907\u901A\u9053\u6570\u91CF",name:"materialQuantity",children:(0,n.jsx)(ae.Z,{})}),(0,n.jsx)(p.Z.Item,{label:"\u8BBE\u5907\u8BE6\u7EC6\u5730\u5740",name:"deviceAddr",children:(0,n.jsx)(d.Z,{placeholder:"\u6210\u90FD\u5E02\u6B66\u4FAF\u533A\u6842\u6EAA\u8857\u9053\u73AF\u7403\u4E2D\u5FC3N5-9111C"})}),(0,n.jsx)(p.Z.Item,{children:(0,n.jsx)(V.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})})},Ot=Tt,xt=s(3408),tr=s(49111),Bt=s(19650),ve=s(86582),rr=s(62350),ue=s(24565),At=function(t){var u=(0,h.useRef)(),e=(0,h.useState)([]),c=(0,Z.Z)(e,2),v=c[0],E=c[1],X=(0,h.useState)(!0),K=(0,Z.Z)(X,2),w=K[0],O=K[1],R=(0,h.useState)([]),z=(0,Z.Z)(R,2),_=z[0],$=z[1],P=(0,h.useState)(""),j=(0,Z.Z)(P,2),o=j[0],f=j[1],S=[{title:"\u83DC\u8C31\u5217\u8868",dataIndex:"foodMenuId",valueType:"treeSelect",hideInTable:!0,fieldProps:{options:_,value:o,onChange:function(B){f(B)}}},{title:"\u5546\u54C1id",dataIndex:"goodsId",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0},{title:"\u5546\u54C1\u540D\u79F0",dataIndex:"goodsName"}],H=function(){var x=(0,i.Z)((0,r.Z)().mark(function B(){var I,T,m;return(0,r.Z)().wrap(function(W){for(;;)switch(W.prev=W.next){case 0:if((I=t.device)!==null&&I!==void 0&&I.id){W.next=2;break}return W.abrupt("return");case 2:return T=[],v.forEach(function(q){T.push({foodId:q})}),W.next=6,Zt({foodss:T,deviceId:t.device.id});case 6:m=W.sent,m.data?(l.default.success("\u8BBE\u5907\u5546\u54C1\u66F4\u65B0\u6210\u529F\uFF01"),t.onOk()):l.default.error(JSON.stringify(m.errors)||"\u4E0A\u67B6\u5931\u8D25");case 8:case"end":return W.stop()}},B)}));return function(){return x.apply(this,arguments)}}(),M=function(){var x=(0,i.Z)((0,r.Z)().mark(function B(){var I;return(0,r.Z)().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.next=2,jt();case 2:I=m.sent,I.statusCode===200&&I.data.length>0&&(f(I.data[0].value),$(I.data));case 4:case"end":return m.stop()}},B)}));return function(){return x.apply(this,arguments)}}();return(0,h.useEffect)(function(){M()},[]),(0,h.useEffect)(function(){u.current&&u.current.reload()},[o]),(0,n.jsx)(ee.Z,{width:900,bodyStyle:{padding:"32px 40px 48px"},destroyOnClose:!0,title:"\u3010".concat(t.device.deviceName,"\u3011\u7ED1\u5B9A\u5546\u54C1"),visible:t.open,onCancel:function(){return t.onCancel()},onOk:H,maskClosable:!1,children:(0,n.jsx)(te.ZP,{actionRef:u,rowKey:"goodsId",pagination:{defaultPageSize:10},params:{deviceId:t.device.id},toolBarRender:function(){return[(0,n.jsx)(ue.Z,{type:"primary",title:"\u786E\u8BA4\u540C\u6B65\u5417\uFF1F",okText:"\u662F",cancelText:"\u5426",onConfirm:(0,i.Z)((0,r.Z)().mark(function B(){var I;return(0,r.Z)().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return console.log(t.device.id),m.next=3,ft(t.device.id);case 3:I=m.sent,I.data?(l.default.success("\u540C\u6B65\u6210\u529F\uFF01"),u.current.reload()):l.default.error(I.errors||"\u540C\u6B65\u5931\u8D25\uFF01");case 5:case"end":return m.stop()}},B)})),children:(0,n.jsx)(V.Z,{type:"primary",children:"\u540C\u6B65\u5546\u54C1\u5230\u8BBE\u5907"},"primary")},"primary-async")]},request:function(){var x=(0,i.Z)((0,r.Z)().mark(function B(I){var T,m,U,W,q;return(0,r.Z)().wrap(function(J){for(;;)switch(J.prev=J.next){case 0:if(o){J.next=2;break}return J.abrupt("return",[]);case 2:return J.next=4,gt((0,le.Z)((0,le.Z)({},I),{},{foolMenuId:o,storeId:t.device.orgId,foodName:I.goodsName||""}));case 4:if(T=J.sent,T.statusCode!==200){J.next=10;break}return T.data.total>0?(W=new Set([].concat((0,ve.Z)(v),(0,ve.Z)(T.data.data.checkedIds))),q=[],W.forEach(function(Ke){q.push(Ke)}),E(q)):E([]),J.abrupt("return",{data:((m=T.data)===null||m===void 0||(U=m.data)===null||U===void 0?void 0:U.data)||[],success:!0,total:T.data.total});case 10:return J.abrupt("return",[]);case 11:case"end":return J.stop()}},B)}));return function(B){return x.apply(this,arguments)}}(),columns:S,rowSelection:{type:"checkbox",selectedRowKeys:v,onSelect:function(B,I){var T=(0,ve.Z)(v),m=T.findIndex(function(U){return U===B.goodsId});I?m<0&&T.push(B.goodsId):m>-1&&T.splice(m,1),E(T)},onSelectAll:function(B,I,T){var m=(0,ve.Z)(v);B?I.forEach(function(U){if(!!U){var W=m.findIndex(function(q){return q===U.goodsId});W<0&&m.push(U.goodsId)}}):T.forEach(function(U){var W=m.findIndex(function(q){return q===U.goodsId});W>-1&&m.splice(W,1)}),E(m)}},tableAlertOptionRender:function(){return(0,n.jsx)(Bt.Z,{size:16,children:(0,n.jsx)(ue.Z,{title:"\u6B64\u64CD\u4F5C\u4F1A\u53D6\u6D88\u6240\u6709\u9009\u4E2D\u9879\uFF0C\u786E\u5B9A\u8981\u53D6\u6D88\u5417\uFF1F",onConfirm:function(){return E([])},okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",children:(0,n.jsx)("a",{children:"\u53D6\u6D88\u9009\u62E9"})})})}})})},$t=At,qe="message",Gt=function(t){var u,e=p.Z.useForm(),c=(0,Z.Z)(e,1),v=c[0],E=(0,h.useState)([]),X=(0,Z.Z)(E,2),K=X[0],w=X[1],O=(0,h.useState)([]),R=(0,Z.Z)(O,2),z=R[0],_=R[1],$=function(){var o=(0,i.Z)((0,r.Z)().mark(function f(){var S;return(0,r.Z)().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return M.next=2,v.validateFields();case 2:if(S=M.sent,S.DeviceId=t.device.id,!S.id){M.next=9;break}return M.next=7,wt(S).then(function(x){l.default.destroy(qe),x.data?(l.default.success("\u4FEE\u6539\u6210\u529F"),t.onOk()):l.default.error("\u4FEE\u6539\u5931\u8D25"+x.errors)});case 7:M.next=11;break;case 9:return M.next=11,kt(S).then(function(x){l.default.destroy(qe),x.data?(l.default.success("\u6DFB\u52A0\u6210\u529F"),t.onOk()):l.default.error("\u6DFB\u52A0\u5931\u8D25"+x.errors)});case 11:case"end":return M.stop()}},f)}));return function(){return o.apply(this,arguments)}}(),P=function(){var o=(0,i.Z)((0,r.Z)().mark(function f(){return(0,r.Z)().wrap(function(H){for(;;)switch(H.prev=H.next){case 0:Ct(t.device.deviceTypeKey).then(function(M){w(M.data)});case 1:case"end":return H.stop()}},f)}));return function(){return o.apply(this,arguments)}}(),j=function(){var o=(0,i.Z)((0,r.Z)().mark(function f(){return(0,r.Z)().wrap(function(H){for(;;)switch(H.prev=H.next){case 0:Ft({DeviceId:t.device.id}).then(function(M){_(M.data)});case 1:case"end":return H.stop()}},f)}));return function(){return o.apply(this,arguments)}}();return(0,h.useEffect)(function(){var o;(o=t.stockMaterial)!==null&&o!==void 0&&o.id&&v.setFieldsValue(t.stockMaterial),P(),j()},[]),(0,n.jsx)(ee.Z,{width:700,destroyOnClose:!0,title:"".concat((u=t.stockMaterial)!==null&&u!==void 0&&u.id?"\u7F16\u8F91"+t.stockMaterial.batching_Name:"\u65B0\u589E"),visible:t.open,onCancel:t.onCancel,onOk:$,footer:[(0,n.jsx)(V.Z,{onClick:t.onCancel,children:"\u53D6\u6D88"},"back"),(0,n.jsx)(ue.Z,{title:"\u70B9\u51FB\u540C\u6B65\u5E93\u5B58\u6216\u91CD\u542F\u8BBE\u5907\u540E\u751F\u6548\uFF01\uFF01\uFF01",onConfirm:$,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",children:(0,n.jsx)(V.Z,{type:"primary",children:"\u786E\u5B9A"},"submit")})],children:(0,n.jsxs)(p.Z,{layout:"vertical",preserve:!1,form:v,children:[(0,n.jsx)(p.Z.Item,{name:"id",hidden:!0,children:(0,n.jsx)(d.Z,{})}),(0,n.jsx)(p.Z.Item,{name:"batching_Id",label:"\u539F\u6599\u540D\u79F0",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u539F\u6599\u540D\u79F0"}],children:(0,n.jsx)(G.Z,{placeholder:"\u8BF7\u9009\u62E9\u539F\u6599\u540D\u79F0",showSearch:!0,optionFilterProp:"children",filterOption:function(f,S){return S.children.toLowerCase().indexOf(f.toLowerCase())>=0},children:z==null?void 0:z.map(function(o,f){return(0,n.jsx)(G.Z.Option,{index:f,value:o.id,children:o.name},o.id)})})}),(0,n.jsx)(p.Z.Item,{name:"batching_Loc",label:"\u5E93\u5B58\u4F4D\u7F6E",rules:[{required:!0}],defaultValue:"0",children:(0,n.jsx)(G.Z,{placeholder:"\u8BF7\u9009\u62E9\u5E93\u5B58\u4F4D\u7F6E",children:K==null?void 0:K.map(function(o,f){return(0,n.jsx)(G.Z.Option,{index:f,value:o.loc,children:o.loc},o.loc)})})}),(0,n.jsx)(p.Z.Item,{name:"batching_Count",label:"\u539F\u6599\u6570\u91CF",rules:[{required:!0}],defaultValue:"0",children:(0,n.jsx)(ae.Z,{style:{width:"100%"},min:0,placeholder:"\u8BF7\u8F93\u5165\u539F\u6599\u6570\u91CF"})})]})})},Pt=Gt,Mt=function(t){var u=(0,h.useRef)(),e=(0,h.useState)(!1),c=(0,Z.Z)(e,2),v=c[0],E=c[1],X=(0,h.useState)(),K=(0,Z.Z)(X,2),w=K[0],O=K[1],R=[{title:"\u4E3B\u952E",dataIndex:"id",hideInSearch:!0,hideInTable:!0,tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key"},{title:"\u7269\u6599",dataIndex:"batching_Name",valueType:"textarea"},{title:"\u6570\u91CF",dataIndex:"batching_Count",valueType:"textarea"},{title:"\u5E93\u4F4D",dataIndex:"batching_Loc"},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(P,j){return[(0,n.jsx)("a",{onClick:function(){O(j),E(!0)},children:"\u4FEE\u6539"},"config"),(0,n.jsx)(ue.Z,{type:"primary",title:"\u786E\u8BA4\u5220\u9664\u5417\uFF1F",okText:"\u662F",cancelText:"\u5426",onConfirm:function(){return _(j)},children:(0,n.jsx)("a",{href:"#",children:"\u5220\u9664"})},"primary")]}}],z=function(){t.onOk()},_=function(){var $=(0,i.Z)((0,r.Z)().mark(function P(j){var o;return(0,r.Z)().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return S.next=2,Dt(j.id);case 2:o=S.sent,o.data?(l.default.success("\u5220\u9664\u6210\u529F"),u.current.reload()):l.default.error("\u5220\u9664\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5");case 4:case"end":return S.stop()}},P)}));return function(j){return $.apply(this,arguments)}}();return(0,h.useEffect)(function(){},[]),(0,n.jsxs)(ee.Z,{width:700,destroyOnClose:!0,title:"\u3010".concat(t.device.deviceName,"\u3011\u5E93\u5B58\u539F\u6599"),visible:t.open,onCancel:function(){return t.onCancel()},onOk:z,maskClosable:!1,children:[(0,n.jsx)(te.ZP,{actionRef:u,rowKey:"id",search:!1,params:{deviceId:t.device.id},toolBarRender:function(){return[(0,n.jsx)(ue.Z,{type:"primary",title:"\u83B7\u53D6\u5B9E\u65F6\u5E93\u5B58\u4F1A\u8986\u76D6\u672C\u6B21\u8865\u8D27\u6570\u636E",okText:"\u662F",cancelText:"\u5426",onConfirm:(0,i.Z)((0,r.Z)().mark(function P(){var j;return(0,r.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=2,bt(t.device.id);case 2:j=f.sent,j.data?(l.default.success("\u83B7\u53D6\u5B9E\u65F6\u5E93\u5B58\u4F1A\u6210\u529F\uFF01"),u.current.reload()):l.default.error(j.errors||"\u83B7\u53D6\u5B9E\u65F6\u5E93\u5B58\u4F1A\u5931\u8D25\uFF01");case 4:case"end":return f.stop()}},P)})),children:(0,n.jsx)(V.Z,{type:"primary",children:"\u83B7\u53D6\u5B9E\u65F6\u5E93\u5B58"},"primary")},"primary-async-time"),(0,n.jsx)(ue.Z,{type:"primary",title:"\u786E\u8BA4\u540C\u6B65\u5417\uFF1F",okText:"\u662F",cancelText:"\u5426",onConfirm:(0,i.Z)((0,r.Z)().mark(function P(){var j;return(0,r.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=2,It(t.device.id);case 2:j=f.sent,j.data?(l.default.success("\u540C\u6B65\u6210\u529F\uFF01"),u.current.reload()):l.default.error(j.errors||"\u540C\u6B65\u5931\u8D25\uFF01");case 4:case"end":return f.stop()}},P)})),children:(0,n.jsx)(V.Z,{type:"primary",children:"\u540C\u6B65\u5E93\u5B58"},"primary")},"primary-async"),(0,n.jsxs)(V.Z,{type:"primary",onClick:function(){O(void 0),E(!0)},children:[(0,n.jsx)(ne.Z,{})," \u65B0\u589E\u5E93\u5B58\u539F\u6599"]},"primary")]},request:function(){var $=(0,i.Z)((0,r.Z)().mark(function P(j){var o;return(0,r.Z)().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return S.next=2,St(j);case 2:if(o=S.sent,o.statusCode!==200){S.next=5;break}return S.abrupt("return",{data:o.data.data,success:!0,total:o.data.total});case 5:return S.abrupt("return",[]);case 6:case"end":return S.stop()}},P)}));return function(P){return $.apply(this,arguments)}}(),columns:R}),v&&(0,n.jsx)(Pt,{device:t.device,stockMaterial:w,open:v,onOk:function(){E(!1),u.current.reload()},onCancel:function(){return E(!1)}})]})},Rt=Mt,nr=s(96486),me="message",Wt=function(){var a=(0,i.Z)((0,r.Z)().mark(function t(u){return(0,r.Z)().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.prev=0,l.default.loading("\u6B63\u5728\u6DFB\u52A0",me),c.next=4,pt(JSON.stringify(u)).then(function(v){return l.default.destroy(me),v.data?(l.default.success("\u6DFB\u52A0\u6210\u529F"),!0):(l.default.error("\u6DFB\u52A0\u5931\u8D25"),!1)});case 4:c.next=10;break;case 6:return c.prev=6,c.t0=c.catch(0),l.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),c.abrupt("return",!1);case 10:case"end":return c.stop()}},t,null,[[0,6]])}));return function(u){return a.apply(this,arguments)}}(),Vt=function(){var a=(0,i.Z)((0,r.Z)().mark(function t(u){return(0,r.Z)().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.prev=0,l.default.loading("\u6B63\u5728\u4FEE\u6539",me),c.next=4,Xe(JSON.stringify(u)).then(function(v){return l.default.destroy(me),v.data?(l.default.success("\u4FEE\u6539\u6210\u529F"),!0):(l.default.success("\u4FEE\u6539\u5931\u8D25"),!1)});case 4:c.next=10;break;case 6:return c.prev=6,c.t0=c.catch(0),l.default.error("\u4FEE\u6539\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),c.abrupt("return",!1);case 10:case"end":return c.stop()}},t,null,[[0,6]])}));return function(u){return a.apply(this,arguments)}}(),Lt=function(){var a=(0,i.Z)((0,r.Z)().mark(function t(u){var e;return(0,r.Z)().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.prev=0,l.default.loading("\u6B63\u5728\u5220\u9664"),e=[],u.forEach(function(E){e.push(E.id)}),v.next=6,vt(e).then(function(E){return E.data?(l.default.success("\u5220\u9664\u6210\u529F"),!0):(l.default.success("\u5220\u9664\u5931\u8D25"),!1)});case 6:v.next=12;break;case 8:return v.prev=8,v.t0=v.catch(0),l.default.error("\u5220\u9664\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),v.abrupt("return",!1);case 12:case"end":return v.stop()}},t,null,[[0,8]])}));return function(u){return a.apply(this,arguments)}}(),Yt=function(){var t=(0,h.useState)(),u=(0,Z.Z)(t,2),e=u[0],c=u[1],v=(0,h.useState)([]),E=(0,Z.Z)(v,2),X=E[0],K=E[1],w=(0,h.useState)([]),O=(0,Z.Z)(w,2),R=O[0],z=O[1],_=(0,h.useState)([]),$=(0,Z.Z)(_,2),P=$[0],j=$[1],o=(0,h.useState)([]),f=(0,Z.Z)(o,2),S=f[0],H=f[1],M=(0,h.useState)([]),x=(0,Z.Z)(M,2),B=x[0],I=x[1],T=(0,h.useState)([]),m=(0,Z.Z)(T,2),U=m[0],W=m[1],q=(0,h.useState)([]),Ye=(0,Z.Z)(q,2),J=Ye[0],Ke=Ye[1],Ut=(0,h.useState)(),et=(0,Z.Z)(Ut,2),tt=et[0],Ue=et[1],Nt=(0,h.useState)(!1),rt=(0,Z.Z)(Nt,2),nt=rt[0],Ne=rt[1];(0,h.useEffect)(function(){var L=function(){mt().then(function(C){var k={},A=[];C.data.forEach(function(y){A.push({text:y.name,id:y.id}),k[y.id]={text:y.name}}),K(A),c(k)})};function Y(){(0,xt.FM)().then(function(g){C(g.data);function C(y){for(var N in y)y[N].type==2||y[N].type==3?y[N].disabled=!1:y[N].disabled=!0,y[N].children&&C(y[N].children)}z(g.data);var k={};A(g.data);function A(y){for(var N in y)k[y[N].disabled]=!0,k[y[N].value]={text:y[N].title},y[N].children&&A(y[N].children)}j(k)})}Y(),L();function D(){dt("DeviceClientType").then(function(g){var C=g.data,k={};if(g.succeeded){var A=[];C.forEach(function(y){k[y.code]={text:y.code},A.push({code:y.code,value:y.code})}),H(k),I(A)}})}D(),zt()},[]);var zt=function(){var L=(0,i.Z)((0,r.Z)().mark(function Y(){var D;return(0,r.Z)().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return C.next=2,yt();case 2:D=C.sent,D.statusCode==200?Ke(D.data):l.default.error("\u83B7\u53D6\u8BBE\u5907\u7248\u672C\u5931\u8D25");case 4:case"end":return C.stop()}},Y)}));return function(){return L.apply(this,arguments)}}(),Ht=(0,h.useState)(!1),at=(0,Z.Z)(Ht,2),Jt=at[0],ye=at[1],oe=(0,h.useRef)(),Qt=(0,h.useState)(),ut=(0,Z.Z)(Qt,2),ze=ut[0],de=ut[1],Xt=(0,h.useState)([]),it=(0,Z.Z)(Xt,2),pe=it[0],st=it[1],_t=[{title:"\u4E3B\u952E",dataIndex:"id",hideInSearch:!0,hideInTable:!0,tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key"},{title:"\u8BBE\u5907\u540D\u79F0",dataIndex:"deviceName",valueType:"textarea"},{title:"\u8BBE\u5907\u7C7B\u578B",dataIndex:"deviceTypeKey",valueEnum:S,hideInSearch:!0},{title:"\u5F52\u5C5E\u95E8\u5E97",dataIndex:"orgId",search:!1,valueEnum:P},{title:"\u8BBE\u5907\u5206\u7C7B",dataIndex:"deviceTypeId",valueEnum:e},{title:"\u72B6\u6001",dataIndex:"status",valueEnum:{0:{text:"\u6B63\u5E38",status:"Processing"},1:{text:"\u505C\u7528",status:"Success"}},hideInSearch:!0},{title:"\u8BBE\u5907\u901A\u9053\u6570\u91CF",dataIndex:"materialQuantity",valueType:"textarea",search:!1},{title:"\u8BBE\u5907\u552F\u4E00key",dataIndex:"autoKey",search:!1},{title:"\u5F52\u5C5E\u95E8\u5E97\u552F\u4E00key",dataIndex:"orgKey",search:!1},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",fixed:"right",width:400,render:function(Y,D){return[(0,n.jsx)("a",{onClick:function(){ye(!0),de(D)},children:"\u66F4\u65B0"},"update"),(0,n.jsx)("a",{onClick:(0,i.Z)((0,r.Z)().mark(function g(){return(0,r.Z)().wrap(function(k){for(;;)switch(k.prev=k.next){case 0:return oe.current.reload(),D.status=D.status?0:1,k.next=4,Xe(D).then(function(A){A.succeeded?l.default.success("\u914D\u7F6E\u6210\u529F"):l.default.error("\u914D\u7F6E\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01")});case 4:case"end":return k.stop()}},g)})),children:D.status==0?"\u505C\u7528":"\u6B63\u5E38"},"status"),(0,n.jsx)("a",{onClick:function(){ht({id:D.id}).then(function(C){C.data&&oe.current.reload()})},children:"\u590D\u5236"},"copy"),(0,n.jsx)("a",{onClick:function(){de(D),Ue(!0)},children:"\u7ED1\u5B9A\u5546\u54C1"},"upload-goods"),(0,n.jsx)("a",{onClick:function(){de(D),Ne(!0)},children:"\u5E93\u5B58\u539F\u6599"},"add"),(0,n.jsx)("a",{onClick:(0,i.Z)((0,r.Z)().mark(function g(){var C,k,A,y;return(0,r.Z)().wrap(function(fe){for(;;)switch(fe.prev=fe.next){case 0:return fe.next=2,Et(D.id);case 2:C=fe.sent,k=new Blob([C]),A=URL.createObjectURL(k),console.log(k,A),y=document.createElement("a"),y.download="\u5DE5\u827A\u6A21\u677F_".concat(new Date(Date.now()).toLocaleString(),".xls"),y.href=A,y.click();case 10:case"end":return fe.stop()}},g)})),children:"\u5BFC\u51FA\u5DE5\u827A\u6A21\u7248"},"add")]}}];return(0,n.jsxs)(ie.ZP,{children:[(0,n.jsx)(te.ZP,{headerTitle:"\u8BBE\u5907\u4FE1\u606F",actionRef:oe,rowKey:"id",search:{labelWidth:120},scroll:{x:2e3},toolBarRender:function(){return[(0,n.jsxs)(V.Z,{type:"primary",onClick:function(){ye(!0)},children:[(0,n.jsx)(ne.Z,{})," \u65B0\u5EFA"]},"primary"),(0,n.jsx)(V.Z,{onClick:(0,i.Z)((0,r.Z)().mark(function Y(){var D,g;return(0,r.Z)().wrap(function(k){for(;;)switch(k.prev=k.next){case 0:return k.next=2,Lt(pe);case 2:st([]),(D=oe.current)===null||D===void 0||(g=D.reloadAndRest)===null||g===void 0||g.call(D);case 4:case"end":return k.stop()}},Y)})),children:"\u5220\u9664"})]},request:function(){var L=(0,i.Z)((0,r.Z)().mark(function Y(D){var g,C;return(0,r.Z)().wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return g=[],C=0,A.next=4,ot(D).then(function(y){g=y.data.data,C=y.data.total});case 4:return A.abrupt("return",{data:g,success:!0,total:C});case 5:case"end":return A.stop()}},Y)}));return function(Y){return L.apply(this,arguments)}}(),columns:_t,rowSelection:{onChange:function(Y,D){st(D)}}}),(pe==null?void 0:pe.length)>0&&(0,n.jsx)(Ze.Z,{extra:(0,n.jsxs)("div",{children:["\u5DF2\u9009\u62E9"," ",(0,n.jsx)("a",{style:{fontWeight:600},children:pe.length})," ","\u9879 \xA0\xA0"]})}),(0,n.jsx)(Ot,{storeType:X,OrgData:R,dicData:B,onFinish:function(){var L=(0,i.Z)((0,r.Z)().mark(function Y(D){var g;return(0,r.Z)().wrap(function(k){for(;;)switch(k.prev=k.next){case 0:g=!1,D.id?g=Vt(D):g=Wt(D),g&&(ye(!1),de(void 0),oe.current.reload());case 3:case"end":return k.stop()}},Y)}));return function(Y){return L.apply(this,arguments)}}(),onCancel:function(){ye(!1),de(void 0)},createModalVisible:Jt,deviceVersions:J,values:ze||{}}),tt&&(0,n.jsx)($t,{open:tt,device:ze,onOk:function(){return Ue(!1)},onCancel:function(){return Ue(!1)}}),nt&&(0,n.jsx)(Rt,{open:nt,device:ze,onOk:function(){return Ne(!1)},onCancel:function(){return Ne(!1)}})]})},Kt=Yt},3408:function(ct,he,s){"use strict";s.d(he,{lM:function(){return He},IH:function(){return i},mm:function(){return Ze},eP:function(){return Je},FM:function(){return Qe}});var Q=s(39428),V=s(11849),Z=s(3182),r=s(48971);function He(b,p){return l.apply(this,arguments)}function l(){return l=(0,Z.Z)((0,Q.Z)().mark(function b(p,re){return(0,Q.Z)().wrap(function(ce){for(;;)switch(ce.prev=ce.next){case 0:return ce.abrupt("return",(0,r.WY)("/kitchen/api/sysOrg\u200B/page",{method:"GET",params:(0,V.Z)({},p)}));case 1:case"end":return ce.stop()}},b)})),l.apply(this,arguments)}function i(b){return ne.apply(this,arguments)}function ne(){return ne=(0,Z.Z)((0,Q.Z)().mark(function b(p){return(0,Q.Z)().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.abrupt("return",(0,r.WY)("/kitchen/api/sysOrg/add",{method:"POST",data:(0,V.Z)({},p)}));case 1:case"end":return d.stop()}},b)})),ne.apply(this,arguments)}function h(b){return ie.apply(this,arguments)}function ie(){return ie=_asyncToGenerator(_regeneratorRuntime().mark(function b(p){return _regeneratorRuntime().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.abrupt("return",request("\u200B/kitchen/api\u200B/sysOrg\u200B/list",{method:"POST",data:_objectSpread({},p)}));case 1:case"end":return d.stop()}},b)})),ie.apply(this,arguments)}function Ze(b){return te.apply(this,arguments)}function te(){return te=(0,Z.Z)((0,Q.Z)().mark(function b(p){return(0,Q.Z)().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.abrupt("return",(0,r.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/delete",{method:"POST",data:(0,V.Z)({},p)}));case 1:case"end":return d.stop()}},b)})),te.apply(this,arguments)}function Je(b){return ee.apply(this,arguments)}function ee(){return ee=(0,Z.Z)((0,Q.Z)().mark(function b(p){return(0,Q.Z)().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.abrupt("return",(0,r.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/edit",{method:"POST",data:(0,V.Z)({},p)}));case 1:case"end":return d.stop()}},b)})),ee.apply(this,arguments)}function lt(b){return ae.apply(this,arguments)}function ae(){return ae=_asyncToGenerator(_regeneratorRuntime().mark(function b(p){return _regeneratorRuntime().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.abrupt("return",request("/kitchen\u200B/api\u200B/sysOrg\u200B/detail",{method:"POST",data:_objectSpread({},p)}));case 1:case"end":return d.stop()}},b)})),ae.apply(this,arguments)}function Qe(b){return se.apply(this,arguments)}function se(){return se=(0,Z.Z)((0,Q.Z)().mark(function b(p){return(0,Q.Z)().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.abrupt("return",(0,r.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/tree",{data:(0,V.Z)({},p)}));case 1:case"end":return d.stop()}},b)})),se.apply(this,arguments)}}}]); +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[7657,1322],{17997:function(ct,he,s){"use strict";s.r(he),s.d(he,{default:function(){return Kt}});var Q=s(57663),V=s(71577),Z=s(2824),r=s(39428),He=s(34792),l=s(48086),i=s(3182),ne=s(49101),h=s(67294),ie=s(78009),Ze=s(85224),te=s(16894),Je=s(71194),ee=s(50146),lt=s(77883),ae=s(85986),Qe=s(62999),se=s(54680),b=s(9715),p=s(55843),re=s(47673),d=s(4107),ce=s(43358),G=s(34041),le=s(11849),F=s(48971);function ot(a){return ge.apply(this,arguments)}function ge(){return ge=(0,i.Z)((0,r.Z)().mark(function a(t){return(0,r.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,F.WY)("/kitchen/api/Device/GetDeviceInfoPage",{method:"POST",data:t}));case 1:case"end":return e.stop()}},a)})),ge.apply(this,arguments)}function dt(a){return Se.apply(this,arguments)}function Se(){return Se=(0,i.Z)((0,r.Z)().mark(function a(t){return(0,r.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,F.WY)("/kitchen/api/dict-data/dic-list/".concat(t),{method:"Get"}));case 1:case"end":return e.stop()}},a)})),Se.apply(this,arguments)}function pt(a){return De.apply(this,arguments)}function De(){return De=(0,i.Z)((0,r.Z)().mark(function a(t){return(0,r.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,F.WY)("/kitchen/api/Device/AddDeviceInfo",{method:"POST",data:t}));case 1:case"end":return e.stop()}},a)})),De.apply(this,arguments)}function ft(a){return we.apply(this,arguments)}function we(){return we=(0,i.Z)((0,r.Z)().mark(function a(t){return(0,r.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,F.WY)("/kitchen/api/Device/PushDeviceGoods?DeviceId="+t,{method:"Get"}));case 1:case"end":return e.stop()}},a)})),we.apply(this,arguments)}function Xe(a){return ke.apply(this,arguments)}function ke(){return ke=(0,i.Z)((0,r.Z)().mark(function a(t){return(0,r.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,F.WY)("/kitchen/api/Device/UpdateDeviceInfo",{method:"POST",data:t}));case 1:case"end":return e.stop()}},a)})),ke.apply(this,arguments)}function ht(a){return Ce.apply(this,arguments)}function Ce(){return Ce=(0,i.Z)((0,r.Z)().mark(function a(t){return(0,r.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,F.WY)("/kitchen/api/Device/CopyDevice",{method:"POST",data:t}));case 1:case"end":return e.stop()}},a)})),Ce.apply(this,arguments)}function vt(a){return Fe.apply(this,arguments)}function Fe(){return Fe=(0,i.Z)((0,r.Z)().mark(function a(t){return(0,r.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,F.WY)("\u200B\u200B/kitchen/api/Device/DelDeviceInfo",{method:"POST",data:t}));case 1:case"end":return e.stop()}},a)})),Fe.apply(this,arguments)}function mt(a){return je.apply(this,arguments)}function je(){return je=(0,i.Z)((0,r.Z)().mark(function a(t){return(0,r.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,F.WY)("\u200B/kitchen/api/Device/GetDeviceType",{method:"GET"}));case 1:case"end":return e.stop()}},a)})),je.apply(this,arguments)}function yt(){return Ie.apply(this,arguments)}function Ie(){return Ie=(0,i.Z)((0,r.Z)().mark(function a(){return(0,r.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,F.WY)("\u200B/kitchen/api/Device/GetDeviceVersions",{method:"post"}));case 1:case"end":return u.stop()}},a)})),Ie.apply(this,arguments)}function qt(a,t){return be.apply(this,arguments)}function be(){return be=_asyncToGenerator(_regeneratorRuntime().mark(function a(t,u){return _regeneratorRuntime().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.abrupt("return",request("/kitchen/api/Device/GetDeviceGoods",{method:"POST",data:_objectSpread({},t)}));case 1:case"end":return c.stop()}},a)})),be.apply(this,arguments)}function Zt(a){return Ee.apply(this,arguments)}function Ee(){return Ee=(0,i.Z)((0,r.Z)().mark(function a(t){return(0,r.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,F.WY)("/kitchen/api/Device/AddDeviceGood",{method:"POST",data:(0,le.Z)({},t)}));case 1:case"end":return e.stop()}},a)})),Ee.apply(this,arguments)}function er(a){return Te.apply(this,arguments)}function Te(){return Te=_asyncToGenerator(_regeneratorRuntime().mark(function a(t){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("/kitchen/\u200Bapi/Device/GetGoods",{method:"POST",data:_objectSpread({},t)}));case 1:case"end":return e.stop()}},a)})),Te.apply(this,arguments)}function gt(a){return Oe.apply(this,arguments)}function Oe(){return Oe=(0,i.Z)((0,r.Z)().mark(function a(t){return(0,r.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,F.WY)("/kitchen/\u200Bapi/Device/GetByDeviceGoods",{method:"POST",data:(0,le.Z)({},t)}));case 1:case"end":return e.stop()}},a)})),Oe.apply(this,arguments)}function St(a){return xe.apply(this,arguments)}function xe(){return xe=(0,i.Z)((0,r.Z)().mark(function a(t){return(0,r.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,F.WY)("/kitchen/api/Device/GetDeviceStorePage",{method:"POST",data:t}));case 1:case"end":return e.stop()}},a)})),xe.apply(this,arguments)}function Dt(a){return Be.apply(this,arguments)}function Be(){return Be=(0,i.Z)((0,r.Z)().mark(function a(t){return(0,r.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,F.WY)("/kitchen/api/Device/DelStockAdjust?Id=".concat(t),{method:"DELETE"}));case 1:case"end":return e.stop()}},a)})),Be.apply(this,arguments)}function wt(a){return Ae.apply(this,arguments)}function Ae(){return Ae=(0,i.Z)((0,r.Z)().mark(function a(t){return(0,r.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,F.WY)("/kitchen/api/Device/AddUpdateDeviceStocAsync",{method:"POST",data:t}));case 1:case"end":return e.stop()}},a)})),Ae.apply(this,arguments)}function kt(a){return $e.apply(this,arguments)}function $e(){return $e=(0,i.Z)((0,r.Z)().mark(function a(t){return(0,r.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,F.WY)("/kitchen/api/Device/AddUpdateDeviceStocAsync",{method:"put",data:t}));case 1:case"end":return e.stop()}},a)})),$e.apply(this,arguments)}function Ct(a){return Ge.apply(this,arguments)}function Ge(){return Ge=(0,i.Z)((0,r.Z)().mark(function a(t){return(0,r.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,F.WY)("/kitchen/api/deviceconfig/getlocs?Code=".concat(t),{method:"GET"}));case 1:case"end":return e.stop()}},a)})),Ge.apply(this,arguments)}function Ft(a){return Pe.apply(this,arguments)}function Pe(){return Pe=(0,i.Z)((0,r.Z)().mark(function a(t){return(0,r.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,F.WY)("/kitchen/api/Device/GetProductList",{method:"post",data:t}));case 1:case"end":return e.stop()}},a)})),Pe.apply(this,arguments)}function jt(a){return Me.apply(this,arguments)}function Me(){return Me=(0,i.Z)((0,r.Z)().mark(function a(t){return(0,r.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,F.WY)("/kitchen/\u200Bapi/FoodMenu/tree",{data:(0,le.Z)({},t)}));case 1:case"end":return e.stop()}},a)})),Me.apply(this,arguments)}function It(a){return Re.apply(this,arguments)}function Re(){return Re=(0,i.Z)((0,r.Z)().mark(function a(t){return(0,r.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,F.WY)("/kitchen/api/Device/PushDevice?DeviceId=".concat(t),{method:"post"}));case 1:case"end":return e.stop()}},a)})),Re.apply(this,arguments)}function bt(a){return We.apply(this,arguments)}function We(){return We=(0,i.Z)((0,r.Z)().mark(function a(t){return(0,r.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,F.WY)("/kitchen/api/Device/CheckStockAdjust?DeviceId=".concat(t),{method:"POST"}));case 1:case"end":return e.stop()}},a)})),We.apply(this,arguments)}function _e(a){return Ve.apply(this,arguments)}function Ve(){return Ve=(0,i.Z)((0,r.Z)().mark(function a(t){return(0,r.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,F.WY)("/kitchen/api/DeviceVesion/GetDeviceVesion?Code=".concat(t),{method:"Get"}));case 1:case"end":return e.stop()}},a)})),Ve.apply(this,arguments)}function Et(a){return Le.apply(this,arguments)}function Le(){return Le=(0,i.Z)((0,r.Z)().mark(function a(t){return(0,r.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,F.WY)("/kitchen/api/goodes/TechnologyTemplateExport?deviceId=".concat(t),{method:"post",responseType:"blob"}));case 1:case"end":return e.stop()}},a)})),Le.apply(this,arguments)}var n=s(85893),Tt=function(t){var u=G.Z.Option,e=G.Z.OptGroup,c=(0,h.useState)([]),v=(0,Z.Z)(c,2),E=v[0],X=v[1];(0,h.useEffect)(function(){console.log(t.values),Object.keys(t.values).length>0&&_e(t.values.deviceTypeKey).then(function(k){X(k.data)})},[t.values]);var K=function(O){_e(O).then(function(R){X(R.data)})};return(0,n.jsx)(ee.Z,{title:t.values.id?"\u7F16\u8F91":"\u65B0\u5EFA",width:640,visible:t.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){t.onCancel()},destroyOnClose:!0,children:(0,n.jsxs)(p.Z,{layout:"Horizontal",labelCol:{span:4},preserve:!1,initialValues:t.values,onFinish:t.onFinish,children:[(0,n.jsx)(p.Z.Item,{name:"id",hidden:!0,children:(0,n.jsx)(d.Z,{})}),(0,n.jsx)(p.Z.Item,{label:"\u8BBE\u5907\u540D\u79F0",name:"deviceName",rules:[{required:!0,max:50}],children:(0,n.jsx)(d.Z,{})}),(0,n.jsx)(p.Z.Item,{label:"\u8BBE\u5907\u7C7B\u578B",name:"deviceTypeKey",rules:[{required:!0}],children:(0,n.jsx)(G.Z,{onChange:K,children:t.dicData.map(function(k,O){return(0,n.jsx)(G.Z.Option,{index:O,value:k.code,children:k.value},k.code)})})}),(0,n.jsx)(p.Z.Item,{label:"\u8BBE\u5907\u7248\u672C",name:"deviceVersionKey",rules:[{required:!0}],children:(0,n.jsx)(G.Z,{children:E.map(function(k,O){return(0,n.jsx)(G.Z.Option,{index:O,value:k.id,children:k.vesion},k.id)})})}),(0,n.jsx)(p.Z.Item,{name:"orgId",label:"\u5F52\u5C5E\u95E8\u5E97",rules:[{required:!0}],children:(0,n.jsx)(se.Z,{style:{width:"100%"},dropdownStyle:{maxHeight:400,overflow:"auto"},treeData:t.OrgData,placeholder:"\u5F52\u5C5E\u95E8\u5E97",treeDefaultExpandAll:!0})}),(0,n.jsx)(p.Z.Item,{label:"\u8BBE\u5907\u5206\u7C7B",name:"deviceTypeId",rules:[{required:!0}],children:(0,n.jsx)(G.Z,{children:t.storeType.map(function(k,O){return(0,n.jsx)(G.Z.Option,{index:O,value:k.id,children:k.text},k.id)})})}),(0,n.jsx)(p.Z.Item,{noStyle:!0,shouldUpdate:function(O,R){return O.deviceTypeKey!==R.deviceTypeKey},children:function(O){var R,z=O.getFieldValue;return z("deviceTypeKey")==="TMC"?(0,n.jsx)(p.Z.Item,{name:"deviceVersion",label:"\u8BBE\u5907\u7248\u672C",initialValue:"WorryFreeEdition",children:(0,n.jsx)(G.Z,{children:(R=t.deviceVersions)===null||R===void 0?void 0:R.map(function(_,$){return(0,n.jsx)(G.Z.Option,{index:$,value:_.code,children:_.name},_.code)})})}):null}}),(0,n.jsx)(p.Z.Item,{label:"\u8BBE\u5907\u5750\u6807",name:"deviceLoc",children:(0,n.jsx)(d.Z,{placeholder:"104.070734,30.575041"})}),(0,n.jsx)(p.Z.Item,{label:"\u72B6\u6001",name:"status",rules:[{required:!0}],children:(0,n.jsx)(G.Z,{placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001",children:(0,n.jsxs)(e,{children:[(0,n.jsx)(G.Z.Option,{value:0,children:"\u6B63\u5E38"}),(0,n.jsx)(G.Z.Option,{value:1,children:"\u505C\u7528"})]})})}),(0,n.jsx)(p.Z.Item,{label:"\u8BBE\u5907\u901A\u9053\u6570\u91CF",name:"materialQuantity",children:(0,n.jsx)(ae.Z,{})}),(0,n.jsx)(p.Z.Item,{label:"\u8BBE\u5907\u8BE6\u7EC6\u5730\u5740",name:"deviceAddr",children:(0,n.jsx)(d.Z,{placeholder:"\u6210\u90FD\u5E02\u6B66\u4FAF\u533A\u6842\u6EAA\u8857\u9053\u73AF\u7403\u4E2D\u5FC3N5-9111C"})}),(0,n.jsx)(p.Z.Item,{children:(0,n.jsx)(V.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})})},Ot=Tt,xt=s(3408),tr=s(49111),Bt=s(19650),ve=s(86582),rr=s(62350),ue=s(24565),At=function(t){var u=(0,h.useRef)(),e=(0,h.useState)([]),c=(0,Z.Z)(e,2),v=c[0],E=c[1],X=(0,h.useState)(!0),K=(0,Z.Z)(X,2),k=K[0],O=K[1],R=(0,h.useState)([]),z=(0,Z.Z)(R,2),_=z[0],$=z[1],P=(0,h.useState)(""),j=(0,Z.Z)(P,2),o=j[0],f=j[1],S=[{title:"\u83DC\u8C31\u5217\u8868",dataIndex:"foodMenuId",valueType:"treeSelect",hideInTable:!0,fieldProps:{options:_,value:o,onChange:function(B){f(B)}}},{title:"\u5546\u54C1id",dataIndex:"goodsId",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0},{title:"\u5546\u54C1\u540D\u79F0",dataIndex:"goodsName"}],H=function(){var x=(0,i.Z)((0,r.Z)().mark(function B(){var I,T,m;return(0,r.Z)().wrap(function(W){for(;;)switch(W.prev=W.next){case 0:if((I=t.device)!==null&&I!==void 0&&I.id){W.next=2;break}return W.abrupt("return");case 2:return T=[],v.forEach(function(q){T.push({foodId:q})}),W.next=6,Zt({foodss:T,deviceId:t.device.id});case 6:m=W.sent,m.data?(l.default.success("\u8BBE\u5907\u5546\u54C1\u66F4\u65B0\u6210\u529F\uFF01"),t.onOk()):l.default.error(JSON.stringify(m.errors)||"\u4E0A\u67B6\u5931\u8D25");case 8:case"end":return W.stop()}},B)}));return function(){return x.apply(this,arguments)}}(),M=function(){var x=(0,i.Z)((0,r.Z)().mark(function B(){var I;return(0,r.Z)().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.next=2,jt();case 2:I=m.sent,I.statusCode===200&&I.data.length>0&&(f(I.data[0].value),$(I.data));case 4:case"end":return m.stop()}},B)}));return function(){return x.apply(this,arguments)}}();return(0,h.useEffect)(function(){M()},[]),(0,h.useEffect)(function(){u.current&&u.current.reload()},[o]),(0,n.jsx)(ee.Z,{width:900,bodyStyle:{padding:"32px 40px 48px"},destroyOnClose:!0,title:"\u3010".concat(t.device.deviceName,"\u3011\u7ED1\u5B9A\u5546\u54C1"),visible:t.open,onCancel:function(){return t.onCancel()},onOk:H,maskClosable:!1,children:(0,n.jsx)(te.ZP,{actionRef:u,rowKey:"goodsId",pagination:{defaultPageSize:10},params:{deviceId:t.device.id},toolBarRender:function(){return[(0,n.jsx)(ue.Z,{type:"primary",title:"\u786E\u8BA4\u540C\u6B65\u5417\uFF1F",okText:"\u662F",cancelText:"\u5426",onConfirm:(0,i.Z)((0,r.Z)().mark(function B(){var I;return(0,r.Z)().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return console.log(t.device.id),m.next=3,ft(t.device.id);case 3:I=m.sent,I.data?(l.default.success("\u540C\u6B65\u6210\u529F\uFF01"),u.current.reload()):l.default.error(I.errors||"\u540C\u6B65\u5931\u8D25\uFF01");case 5:case"end":return m.stop()}},B)})),children:(0,n.jsx)(V.Z,{type:"primary",children:"\u540C\u6B65\u5546\u54C1\u5230\u8BBE\u5907"},"primary")},"primary-async")]},request:function(){var x=(0,i.Z)((0,r.Z)().mark(function B(I){var T,m,U,W,q;return(0,r.Z)().wrap(function(J){for(;;)switch(J.prev=J.next){case 0:if(o){J.next=2;break}return J.abrupt("return",[]);case 2:return J.next=4,gt((0,le.Z)((0,le.Z)({},I),{},{foolMenuId:o,storeId:t.device.orgId,foodName:I.goodsName||""}));case 4:if(T=J.sent,T.statusCode!==200){J.next=10;break}return T.data.total>0?(W=new Set([].concat((0,ve.Z)(v),(0,ve.Z)(T.data.data.checkedIds))),q=[],W.forEach(function(Ke){q.push(Ke)}),E(q)):E([]),J.abrupt("return",{data:((m=T.data)===null||m===void 0||(U=m.data)===null||U===void 0?void 0:U.data)||[],success:!0,total:T.data.total});case 10:return J.abrupt("return",[]);case 11:case"end":return J.stop()}},B)}));return function(B){return x.apply(this,arguments)}}(),columns:S,rowSelection:{type:"checkbox",selectedRowKeys:v,onSelect:function(B,I){var T=(0,ve.Z)(v),m=T.findIndex(function(U){return U===B.goodsId});I?m<0&&T.push(B.goodsId):m>-1&&T.splice(m,1),E(T)},onSelectAll:function(B,I,T){var m=(0,ve.Z)(v);B?I.forEach(function(U){if(!!U){var W=m.findIndex(function(q){return q===U.goodsId});W<0&&m.push(U.goodsId)}}):T.forEach(function(U){var W=m.findIndex(function(q){return q===U.goodsId});W>-1&&m.splice(W,1)}),E(m)}},tableAlertOptionRender:function(){return(0,n.jsx)(Bt.Z,{size:16,children:(0,n.jsx)(ue.Z,{title:"\u6B64\u64CD\u4F5C\u4F1A\u53D6\u6D88\u6240\u6709\u9009\u4E2D\u9879\uFF0C\u786E\u5B9A\u8981\u53D6\u6D88\u5417\uFF1F",onConfirm:function(){return E([])},okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",children:(0,n.jsx)("a",{children:"\u53D6\u6D88\u9009\u62E9"})})})}})})},$t=At,qe="message",Gt=function(t){var u,e=p.Z.useForm(),c=(0,Z.Z)(e,1),v=c[0],E=(0,h.useState)([]),X=(0,Z.Z)(E,2),K=X[0],k=X[1],O=(0,h.useState)([]),R=(0,Z.Z)(O,2),z=R[0],_=R[1],$=function(){var o=(0,i.Z)((0,r.Z)().mark(function f(){var S;return(0,r.Z)().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return M.next=2,v.validateFields();case 2:if(S=M.sent,S.DeviceId=t.device.id,!S.id){M.next=9;break}return M.next=7,kt(S).then(function(x){l.default.destroy(qe),x.data?(l.default.success("\u4FEE\u6539\u6210\u529F"),t.onOk()):l.default.error("\u4FEE\u6539\u5931\u8D25"+x.errors)});case 7:M.next=11;break;case 9:return M.next=11,wt(S).then(function(x){l.default.destroy(qe),x.data?(l.default.success("\u6DFB\u52A0\u6210\u529F"),t.onOk()):l.default.error("\u6DFB\u52A0\u5931\u8D25"+x.errors)});case 11:case"end":return M.stop()}},f)}));return function(){return o.apply(this,arguments)}}(),P=function(){var o=(0,i.Z)((0,r.Z)().mark(function f(){return(0,r.Z)().wrap(function(H){for(;;)switch(H.prev=H.next){case 0:Ct(t.device.deviceTypeKey).then(function(M){k(M.data)});case 1:case"end":return H.stop()}},f)}));return function(){return o.apply(this,arguments)}}(),j=function(){var o=(0,i.Z)((0,r.Z)().mark(function f(){return(0,r.Z)().wrap(function(H){for(;;)switch(H.prev=H.next){case 0:Ft({DeviceId:t.device.id}).then(function(M){_(M.data)});case 1:case"end":return H.stop()}},f)}));return function(){return o.apply(this,arguments)}}();return(0,h.useEffect)(function(){var o;(o=t.stockMaterial)!==null&&o!==void 0&&o.id&&v.setFieldsValue(t.stockMaterial),P(),j()},[]),(0,n.jsx)(ee.Z,{width:700,destroyOnClose:!0,title:"".concat((u=t.stockMaterial)!==null&&u!==void 0&&u.id?"\u7F16\u8F91"+t.stockMaterial.batching_Name:"\u65B0\u589E"),visible:t.open,onCancel:t.onCancel,onOk:$,footer:[(0,n.jsx)(V.Z,{onClick:t.onCancel,children:"\u53D6\u6D88"},"back"),(0,n.jsx)(ue.Z,{title:"\u70B9\u51FB\u540C\u6B65\u5E93\u5B58\u6216\u91CD\u542F\u8BBE\u5907\u540E\u751F\u6548\uFF01\uFF01\uFF01",onConfirm:$,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",children:(0,n.jsx)(V.Z,{type:"primary",children:"\u786E\u5B9A"},"submit")})],children:(0,n.jsxs)(p.Z,{layout:"vertical",preserve:!1,form:v,children:[(0,n.jsx)(p.Z.Item,{name:"id",hidden:!0,children:(0,n.jsx)(d.Z,{})}),(0,n.jsx)(p.Z.Item,{name:"batching_Id",label:"\u539F\u6599\u540D\u79F0",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u539F\u6599\u540D\u79F0"}],children:(0,n.jsx)(G.Z,{placeholder:"\u8BF7\u9009\u62E9\u539F\u6599\u540D\u79F0",showSearch:!0,optionFilterProp:"children",filterOption:function(f,S){return S.children.toLowerCase().indexOf(f.toLowerCase())>=0},children:z==null?void 0:z.map(function(o,f){return(0,n.jsx)(G.Z.Option,{index:f,value:o.id,children:o.name},o.id)})})}),(0,n.jsx)(p.Z.Item,{name:"batching_Loc",label:"\u5E93\u5B58\u4F4D\u7F6E",rules:[{required:!0}],defaultValue:"0",children:(0,n.jsx)(G.Z,{placeholder:"\u8BF7\u9009\u62E9\u5E93\u5B58\u4F4D\u7F6E",children:K==null?void 0:K.map(function(o,f){return(0,n.jsx)(G.Z.Option,{index:f,value:o.loc,children:o.loc},o.loc)})})}),(0,n.jsx)(p.Z.Item,{name:"batching_Count",label:"\u539F\u6599\u6570\u91CF",rules:[{required:!0}],defaultValue:"0",children:(0,n.jsx)(ae.Z,{style:{width:"100%"},min:0,placeholder:"\u8BF7\u8F93\u5165\u539F\u6599\u6570\u91CF"})})]})})},Pt=Gt,Mt=function(t){var u=(0,h.useRef)(),e=(0,h.useState)(!1),c=(0,Z.Z)(e,2),v=c[0],E=c[1],X=(0,h.useState)(),K=(0,Z.Z)(X,2),k=K[0],O=K[1],R=[{title:"\u4E3B\u952E",dataIndex:"id",hideInSearch:!0,hideInTable:!0,tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key"},{title:"\u7269\u6599",dataIndex:"batching_Name",valueType:"textarea"},{title:"\u6570\u91CF",dataIndex:"batching_Count",valueType:"textarea"},{title:"\u5E93\u4F4D",dataIndex:"batching_Loc"},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(P,j){return[(0,n.jsx)("a",{onClick:function(){O(j),E(!0)},children:"\u4FEE\u6539"},"config"),(0,n.jsx)(ue.Z,{type:"primary",title:"\u786E\u8BA4\u5220\u9664\u5417\uFF1F",okText:"\u662F",cancelText:"\u5426",onConfirm:function(){return _(j)},children:(0,n.jsx)("a",{href:"#",children:"\u5220\u9664"})},"primary")]}}],z=function(){t.onOk()},_=function(){var $=(0,i.Z)((0,r.Z)().mark(function P(j){var o;return(0,r.Z)().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return S.next=2,Dt(j.id);case 2:o=S.sent,o.data?(l.default.success("\u5220\u9664\u6210\u529F"),u.current.reload()):l.default.error("\u5220\u9664\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5");case 4:case"end":return S.stop()}},P)}));return function(j){return $.apply(this,arguments)}}();return(0,h.useEffect)(function(){},[]),(0,n.jsxs)(ee.Z,{width:700,destroyOnClose:!0,title:"\u3010".concat(t.device.deviceName,"\u3011\u5E93\u5B58\u539F\u6599"),visible:t.open,onCancel:function(){return t.onCancel()},onOk:z,maskClosable:!1,children:[(0,n.jsx)(te.ZP,{actionRef:u,rowKey:"id",search:!1,params:{deviceId:t.device.id},toolBarRender:function(){return[(0,n.jsx)(ue.Z,{type:"primary",title:"\u83B7\u53D6\u5B9E\u65F6\u5E93\u5B58\u4F1A\u8986\u76D6\u672C\u6B21\u8865\u8D27\u6570\u636E",okText:"\u662F",cancelText:"\u5426",onConfirm:(0,i.Z)((0,r.Z)().mark(function P(){var j;return(0,r.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=2,bt(t.device.id);case 2:j=f.sent,j.data?(l.default.success("\u83B7\u53D6\u5B9E\u65F6\u5E93\u5B58\u4F1A\u6210\u529F\uFF01"),u.current.reload()):l.default.error(j.errors||"\u83B7\u53D6\u5B9E\u65F6\u5E93\u5B58\u4F1A\u5931\u8D25\uFF01");case 4:case"end":return f.stop()}},P)})),children:(0,n.jsx)(V.Z,{type:"primary",children:"\u83B7\u53D6\u5B9E\u65F6\u5E93\u5B58"},"primary")},"primary-async-time"),(0,n.jsx)(ue.Z,{type:"primary",title:"\u786E\u8BA4\u540C\u6B65\u5417\uFF1F",okText:"\u662F",cancelText:"\u5426",onConfirm:(0,i.Z)((0,r.Z)().mark(function P(){var j;return(0,r.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=2,It(t.device.id);case 2:j=f.sent,j.data?(l.default.success("\u540C\u6B65\u6210\u529F\uFF01"),u.current.reload()):l.default.error(j.errors||"\u540C\u6B65\u5931\u8D25\uFF01");case 4:case"end":return f.stop()}},P)})),children:(0,n.jsx)(V.Z,{type:"primary",children:"\u540C\u6B65\u5E93\u5B58"},"primary")},"primary-async"),(0,n.jsxs)(V.Z,{type:"primary",onClick:function(){O(void 0),E(!0)},children:[(0,n.jsx)(ne.Z,{})," \u65B0\u589E\u5E93\u5B58\u539F\u6599"]},"primary")]},request:function(){var $=(0,i.Z)((0,r.Z)().mark(function P(j){var o;return(0,r.Z)().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return S.next=2,St(j);case 2:if(o=S.sent,o.statusCode!==200){S.next=5;break}return S.abrupt("return",{data:o.data.data,success:!0,total:o.data.total});case 5:return S.abrupt("return",[]);case 6:case"end":return S.stop()}},P)}));return function(P){return $.apply(this,arguments)}}(),columns:R}),v&&(0,n.jsx)(Pt,{device:t.device,stockMaterial:k,open:v,onOk:function(){E(!1),u.current.reload()},onCancel:function(){return E(!1)}})]})},Rt=Mt,nr=s(96486),me="message",Wt=function(){var a=(0,i.Z)((0,r.Z)().mark(function t(u){return(0,r.Z)().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.prev=0,l.default.loading("\u6B63\u5728\u6DFB\u52A0",me),c.next=4,pt(JSON.stringify(u)).then(function(v){return l.default.destroy(me),v.data?(l.default.success("\u6DFB\u52A0\u6210\u529F"),!0):(l.default.error("\u6DFB\u52A0\u5931\u8D25"),!1)});case 4:c.next=10;break;case 6:return c.prev=6,c.t0=c.catch(0),l.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),c.abrupt("return",!1);case 10:case"end":return c.stop()}},t,null,[[0,6]])}));return function(u){return a.apply(this,arguments)}}(),Vt=function(){var a=(0,i.Z)((0,r.Z)().mark(function t(u){return(0,r.Z)().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.prev=0,l.default.loading("\u6B63\u5728\u4FEE\u6539",me),c.next=4,Xe(JSON.stringify(u)).then(function(v){return l.default.destroy(me),v.data?(l.default.success("\u4FEE\u6539\u6210\u529F"),!0):(l.default.success("\u4FEE\u6539\u5931\u8D25"),!1)});case 4:c.next=10;break;case 6:return c.prev=6,c.t0=c.catch(0),l.default.error("\u4FEE\u6539\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),c.abrupt("return",!1);case 10:case"end":return c.stop()}},t,null,[[0,6]])}));return function(u){return a.apply(this,arguments)}}(),Lt=function(){var a=(0,i.Z)((0,r.Z)().mark(function t(u){var e;return(0,r.Z)().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.prev=0,l.default.loading("\u6B63\u5728\u5220\u9664"),e=[],u.forEach(function(E){e.push(E.id)}),v.next=6,vt(e).then(function(E){return E.data?(l.default.success("\u5220\u9664\u6210\u529F"),!0):(l.default.success("\u5220\u9664\u5931\u8D25"),!1)});case 6:v.next=12;break;case 8:return v.prev=8,v.t0=v.catch(0),l.default.error("\u5220\u9664\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),v.abrupt("return",!1);case 12:case"end":return v.stop()}},t,null,[[0,8]])}));return function(u){return a.apply(this,arguments)}}(),Yt=function(){var t=(0,h.useState)(),u=(0,Z.Z)(t,2),e=u[0],c=u[1],v=(0,h.useState)([]),E=(0,Z.Z)(v,2),X=E[0],K=E[1],k=(0,h.useState)([]),O=(0,Z.Z)(k,2),R=O[0],z=O[1],_=(0,h.useState)([]),$=(0,Z.Z)(_,2),P=$[0],j=$[1],o=(0,h.useState)([]),f=(0,Z.Z)(o,2),S=f[0],H=f[1],M=(0,h.useState)([]),x=(0,Z.Z)(M,2),B=x[0],I=x[1],T=(0,h.useState)([]),m=(0,Z.Z)(T,2),U=m[0],W=m[1],q=(0,h.useState)([]),Ye=(0,Z.Z)(q,2),J=Ye[0],Ke=Ye[1],Ut=(0,h.useState)(),et=(0,Z.Z)(Ut,2),tt=et[0],Ue=et[1],Nt=(0,h.useState)(!1),rt=(0,Z.Z)(Nt,2),nt=rt[0],Ne=rt[1];(0,h.useEffect)(function(){var L=function(){mt().then(function(C){var w={},A=[];C.data.forEach(function(y){A.push({text:y.name,id:y.id}),w[y.id]={text:y.name}}),K(A),c(w)})};function Y(){(0,xt.FM)().then(function(g){C(g.data);function C(y){for(var N in y)y[N].type==2||y[N].type==3?y[N].disabled=!1:y[N].disabled=!0,y[N].children&&C(y[N].children)}z(g.data);var w={};A(g.data);function A(y){for(var N in y)w[y[N].disabled]=!0,w[y[N].value]={text:y[N].title},y[N].children&&A(y[N].children)}j(w)})}Y(),L();function D(){dt("DeviceClientType").then(function(g){var C=g.data,w={};if(g.succeeded){var A=[];C.forEach(function(y){w[y.code]={text:y.code},A.push({code:y.code,value:y.code})}),H(w),I(A)}})}D(),zt()},[]);var zt=function(){var L=(0,i.Z)((0,r.Z)().mark(function Y(){var D;return(0,r.Z)().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return C.next=2,yt();case 2:D=C.sent,D.statusCode==200?Ke(D.data):l.default.error("\u83B7\u53D6\u8BBE\u5907\u7248\u672C\u5931\u8D25");case 4:case"end":return C.stop()}},Y)}));return function(){return L.apply(this,arguments)}}(),Ht=(0,h.useState)(!1),at=(0,Z.Z)(Ht,2),Jt=at[0],ye=at[1],oe=(0,h.useRef)(),Qt=(0,h.useState)(),ut=(0,Z.Z)(Qt,2),ze=ut[0],de=ut[1],Xt=(0,h.useState)([]),it=(0,Z.Z)(Xt,2),pe=it[0],st=it[1],_t=[{title:"\u4E3B\u952E",dataIndex:"id",hideInSearch:!0,hideInTable:!0,tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key"},{title:"\u8BBE\u5907\u540D\u79F0",dataIndex:"deviceName",valueType:"textarea"},{title:"\u8BBE\u5907\u7C7B\u578B",dataIndex:"deviceTypeKey",valueEnum:S,hideInSearch:!0},{title:"\u5F52\u5C5E\u95E8\u5E97",dataIndex:"orgId",search:!1,valueEnum:P},{title:"\u8BBE\u5907\u5206\u7C7B",dataIndex:"deviceTypeId",valueEnum:e},{title:"\u72B6\u6001",dataIndex:"status",valueEnum:{0:{text:"\u6B63\u5E38",status:"Processing"},1:{text:"\u505C\u7528",status:"Success"}},hideInSearch:!0},{title:"\u8BBE\u5907\u901A\u9053\u6570\u91CF",dataIndex:"materialQuantity",valueType:"textarea",search:!1},{title:"\u8BBE\u5907\u552F\u4E00key",dataIndex:"autoKey",search:!1},{title:"\u5F52\u5C5E\u95E8\u5E97\u552F\u4E00key",dataIndex:"orgKey",search:!1},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",fixed:"right",width:400,render:function(Y,D){return[(0,n.jsx)("a",{onClick:function(){ye(!0),de(D)},children:"\u66F4\u65B0"},"update"),(0,n.jsx)("a",{onClick:(0,i.Z)((0,r.Z)().mark(function g(){return(0,r.Z)().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return oe.current.reload(),D.status=D.status?0:1,w.next=4,Xe(D).then(function(A){A.succeeded?l.default.success("\u914D\u7F6E\u6210\u529F"):l.default.error("\u914D\u7F6E\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01")});case 4:case"end":return w.stop()}},g)})),children:D.status==0?"\u505C\u7528":"\u6B63\u5E38"},"status"),(0,n.jsx)("a",{onClick:function(){ht({id:D.id}).then(function(C){C.data&&oe.current.reload()})},children:"\u590D\u5236"},"copy"),(0,n.jsx)("a",{onClick:function(){de(D),Ue(!0)},children:"\u7ED1\u5B9A\u5546\u54C1"},"upload-goods"),(0,n.jsx)("a",{onClick:function(){de(D),Ne(!0)},children:"\u5E93\u5B58\u539F\u6599"},"add"),(0,n.jsx)("a",{onClick:(0,i.Z)((0,r.Z)().mark(function g(){var C,w,A,y;return(0,r.Z)().wrap(function(fe){for(;;)switch(fe.prev=fe.next){case 0:return fe.next=2,Et(D.id);case 2:C=fe.sent,w=new Blob([C]),A=URL.createObjectURL(w),console.log(w,A),y=document.createElement("a"),y.download="\u5DE5\u827A\u6A21\u677F_".concat(new Date(Date.now()).toLocaleString(),".xls"),y.href=A,y.click();case 10:case"end":return fe.stop()}},g)})),children:"\u5BFC\u51FA\u5DE5\u827A\u6A21\u7248"},"add")]}}];return(0,n.jsxs)(ie.ZP,{children:[(0,n.jsx)(te.ZP,{headerTitle:"\u8BBE\u5907\u4FE1\u606F",actionRef:oe,rowKey:"id",search:{labelWidth:120},scroll:{x:2e3},toolBarRender:function(){return[(0,n.jsxs)(V.Z,{type:"primary",onClick:function(){ye(!0)},children:[(0,n.jsx)(ne.Z,{})," \u65B0\u5EFA"]},"primary"),(0,n.jsx)(V.Z,{onClick:(0,i.Z)((0,r.Z)().mark(function Y(){var D,g;return(0,r.Z)().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return w.next=2,Lt(pe);case 2:st([]),(D=oe.current)===null||D===void 0||(g=D.reloadAndRest)===null||g===void 0||g.call(D);case 4:case"end":return w.stop()}},Y)})),children:"\u5220\u9664"})]},request:function(){var L=(0,i.Z)((0,r.Z)().mark(function Y(D){var g,C;return(0,r.Z)().wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return g=[],C=0,A.next=4,ot(D).then(function(y){g=y.data.data,C=y.data.total});case 4:return A.abrupt("return",{data:g,success:!0,total:C});case 5:case"end":return A.stop()}},Y)}));return function(Y){return L.apply(this,arguments)}}(),columns:_t,rowSelection:{onChange:function(Y,D){st(D)}}}),(pe==null?void 0:pe.length)>0&&(0,n.jsx)(Ze.Z,{extra:(0,n.jsxs)("div",{children:["\u5DF2\u9009\u62E9"," ",(0,n.jsx)("a",{style:{fontWeight:600},children:pe.length})," ","\u9879 \xA0\xA0"]})}),(0,n.jsx)(Ot,{storeType:X,OrgData:R,dicData:B,onFinish:function(){var L=(0,i.Z)((0,r.Z)().mark(function Y(D){var g;return(0,r.Z)().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:g=!1,D.id?g=Vt(D):g=Wt(D),g&&(ye(!1),de(void 0),oe.current.reload());case 3:case"end":return w.stop()}},Y)}));return function(Y){return L.apply(this,arguments)}}(),onCancel:function(){ye(!1),de(void 0)},createModalVisible:Jt,deviceVersions:J,values:ze||{}}),tt&&(0,n.jsx)($t,{open:tt,device:ze,onOk:function(){return Ue(!1)},onCancel:function(){return Ue(!1)}}),nt&&(0,n.jsx)(Rt,{open:nt,device:ze,onOk:function(){return Ne(!1)},onCancel:function(){return Ne(!1)}})]})},Kt=Yt},3408:function(ct,he,s){"use strict";s.d(he,{lM:function(){return He},IH:function(){return i},mm:function(){return Ze},eP:function(){return Je},FM:function(){return Qe}});var Q=s(39428),V=s(11849),Z=s(3182),r=s(48971);function He(b,p){return l.apply(this,arguments)}function l(){return l=(0,Z.Z)((0,Q.Z)().mark(function b(p,re){return(0,Q.Z)().wrap(function(ce){for(;;)switch(ce.prev=ce.next){case 0:return ce.abrupt("return",(0,r.WY)("/kitchen/api/sysOrg\u200B/page",{method:"GET",params:(0,V.Z)({},p)}));case 1:case"end":return ce.stop()}},b)})),l.apply(this,arguments)}function i(b){return ne.apply(this,arguments)}function ne(){return ne=(0,Z.Z)((0,Q.Z)().mark(function b(p){return(0,Q.Z)().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.abrupt("return",(0,r.WY)("/kitchen/api/sysOrg/add",{method:"POST",data:(0,V.Z)({},p)}));case 1:case"end":return d.stop()}},b)})),ne.apply(this,arguments)}function h(b){return ie.apply(this,arguments)}function ie(){return ie=_asyncToGenerator(_regeneratorRuntime().mark(function b(p){return _regeneratorRuntime().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.abrupt("return",request("\u200B/kitchen/api\u200B/sysOrg\u200B/list",{method:"POST",data:_objectSpread({},p)}));case 1:case"end":return d.stop()}},b)})),ie.apply(this,arguments)}function Ze(b){return te.apply(this,arguments)}function te(){return te=(0,Z.Z)((0,Q.Z)().mark(function b(p){return(0,Q.Z)().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.abrupt("return",(0,r.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/delete",{method:"POST",data:(0,V.Z)({},p)}));case 1:case"end":return d.stop()}},b)})),te.apply(this,arguments)}function Je(b){return ee.apply(this,arguments)}function ee(){return ee=(0,Z.Z)((0,Q.Z)().mark(function b(p){return(0,Q.Z)().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.abrupt("return",(0,r.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/edit",{method:"POST",data:(0,V.Z)({},p)}));case 1:case"end":return d.stop()}},b)})),ee.apply(this,arguments)}function lt(b){return ae.apply(this,arguments)}function ae(){return ae=_asyncToGenerator(_regeneratorRuntime().mark(function b(p){return _regeneratorRuntime().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.abrupt("return",request("/kitchen\u200B/api\u200B/sysOrg\u200B/detail",{method:"POST",data:_objectSpread({},p)}));case 1:case"end":return d.stop()}},b)})),ae.apply(this,arguments)}function Qe(b){return se.apply(this,arguments)}function se(){return se=(0,Z.Z)((0,Q.Z)().mark(function b(p){return(0,Q.Z)().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.abrupt("return",(0,r.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/tree",{data:(0,V.Z)({},p)}));case 1:case"end":return d.stop()}},b)})),se.apply(this,arguments)}}}]); diff --git a/dist/p__device__deviceVesion.447504c0.async.js b/dist/p__device__deviceVesion.447504c0.async.js new file mode 100644 index 0000000..a1ac918 --- /dev/null +++ b/dist/p__device__deviceVesion.447504c0.async.js @@ -0,0 +1 @@ +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[4424,1322],{58211:function(ce,G,t){"use strict";t.r(G),t.d(G,{default:function(){return ne}});var de=t(57663),w=t(71577),V=t(2824),u=t(39428),oe=t(34792),c=t(48086),p=t(3182),Z=t(67294),M=t(78009),b=t(85224),U=t(49101),Y=t(16894),fe=t(71194),K=t(50146),ve=t(9715),y=t(55843),he=t(47673),I=t(4107),pe=t(43358),m=t(34041),a=t(85893),J=function(n){var l=m.Z.Option,e=m.Z.OptGroup;return(0,a.jsx)(K.Z,{title:n.values.id?"\u7F16\u8F91":"\u65B0\u5EFA",width:640,visible:n.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){n.onCancel()},destroyOnClose:!0,children:(0,a.jsxs)(y.Z,{layout:"vertical",preserve:!1,initialValues:n.values,onFinish:n.onFinish,children:[(0,a.jsx)(y.Z.Item,{name:"id",hidden:!0,children:(0,a.jsx)(I.Z,{})}),(0,a.jsx)(y.Z.Item,{label:"\u7248\u672C\u53F7",name:"vesion",rules:[{required:!0,max:50}],children:(0,a.jsx)(I.Z,{})}),(0,a.jsx)(y.Z.Item,{label:"\u8BBE\u5907\u7C7B\u578B",name:"deviceTypeKey",rules:[{required:!0,max:50}],children:(0,a.jsx)(m.Z,{children:n.dicData.map(function(r,i){return(0,a.jsx)(m.Z.Option,{index:i,value:r.code,children:r.value},r.code)})})}),(0,a.jsx)(y.Z.Item,{label:"\u72B6\u6001",name:"status",rules:[{required:!0}],children:(0,a.jsx)(m.Z,{placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001",children:(0,a.jsxs)(e,{children:[(0,a.jsx)(m.Z.Option,{value:0,children:"\u6B63\u5E38"}),(0,a.jsx)(m.Z.Option,{value:1,children:"\u505C\u7528"})]})})}),(0,a.jsx)(y.Z.Item,{children:(0,a.jsx)(w.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})})},L=J,D=t(48971);function N(s){return T.apply(this,arguments)}function T(){return T=(0,p.Z)((0,u.Z)().mark(function s(n){return(0,u.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,D.WY)("/kitchen/api/DeviceVesion/GetDeviceVesionPage",{method:"POST",data:n}));case 1:case"end":return e.stop()}},s)})),T.apply(this,arguments)}function z(s){return O.apply(this,arguments)}function O(){return O=(0,p.Z)((0,u.Z)().mark(function s(n){return(0,u.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,D.WY)("/kitchen/api/DeviceVesion/AddDeviceVesion",{method:"POST",data:n}));case 1:case"end":return e.stop()}},s)})),O.apply(this,arguments)}function H(s){return R.apply(this,arguments)}function R(){return R=(0,p.Z)((0,u.Z)().mark(function s(n){return(0,u.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,D.WY)("\u200B/kitchen/api/DeviceVesion/DelDeviceVesion",{method:"POST",data:n}));case 1:case"end":return e.stop()}},s)})),R.apply(this,arguments)}function Q(s){return $.apply(this,arguments)}function $(){return $=(0,p.Z)((0,u.Z)().mark(function s(n){return(0,u.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,D.WY)("\u200B/kitchen/api/DeviceVesion/UpdateDeviceVesion",{method:"POST",data:n}));case 1:case"end":return e.stop()}},s)})),$.apply(this,arguments)}function X(s){return B.apply(this,arguments)}function B(){return B=(0,p.Z)((0,u.Z)().mark(function s(n){return(0,u.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,D.WY)("/kitchen/api/dict-data/dic-list/".concat(n),{method:"Get"}));case 1:case"end":return e.stop()}},s)})),B.apply(this,arguments)}var j="message",q=function(){var s=(0,p.Z)((0,u.Z)().mark(function n(l){return(0,u.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,c.default.loading("\u6B63\u5728\u6DFB\u52A0",j),r.next=4,z(JSON.stringify(l)).then(function(i){return c.default.destroy(j),i.data?(c.default.success("\u6DFB\u52A0\u6210\u529F"),!0):(c.default.error("\u6DFB\u52A0\u5931\u8D25"),!1)});case 4:r.next=10;break;case 6:return r.prev=6,r.t0=r.catch(0),c.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),r.abrupt("return",!1);case 10:case"end":return r.stop()}},n,null,[[0,6]])}));return function(l){return s.apply(this,arguments)}}(),_=function(){var s=(0,p.Z)((0,u.Z)().mark(function n(l){return(0,u.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,c.default.loading("\u6B63\u5728\u4FEE\u6539",j),c.default.destroy(j),r.next=5,Q(JSON.stringify(l)).then(function(i){return c.default.destroy(j),i.data?(c.default.success("\u4FEE\u6539\u6210\u529F"),!0):(c.default.success("\u4FEE\u6539\u5931\u8D25"),!1)});case 5:r.next=11;break;case 7:return r.prev=7,r.t0=r.catch(0),c.default.error("\u4FEE\u6539\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),r.abrupt("return",!1);case 11:case"end":return r.stop()}},n,null,[[0,7]])}));return function(l){return s.apply(this,arguments)}}(),ee=function(){var s=(0,p.Z)((0,u.Z)().mark(function n(l){var e;return(0,u.Z)().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.prev=0,c.default.loading("\u6B63\u5728\u5220\u9664"),e=[],l.forEach(function(g){e.push(g.id)}),i.next=6,H(e).then(function(g){return g.data?(c.default.success("\u5220\u9664\u6210\u529F"),!0):(c.default.error(g.errors),!1)});case 6:i.next=12;break;case 8:return i.prev=8,i.t0=i.catch(0),c.default.error("\u5220\u9664\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),i.abrupt("return",!1);case 12:case"end":return i.stop()}},n,null,[[0,8]])}));return function(l){return s.apply(this,arguments)}}(),re=function(){var n=(0,Z.useState)(!1),l=(0,V.Z)(n,2),e=l[0],r=l[1],i=(0,Z.useRef)(),g=(0,Z.useState)([]),P=(0,V.Z)(g,2),ae=P[0],te=P[1],ue=(0,Z.useState)(),A=(0,V.Z)(ue,2),se=A[0],F=A[1],ie=(0,Z.useState)([]),E=(0,V.Z)(ie,2),C=E[0],k=E[1],le=[{title:"\u4E3B\u952E",dataIndex:"id",hideInSearch:!0,hideInTable:!0,tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key"},{title:"\u7248\u672C\u53F7",dataIndex:"vesion",valueType:"textarea"},{title:"\u8BBE\u5907\u7C7B\u578B",dataIndex:"deviceTypeKey",valueType:"textarea"},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(d,o){return[(0,a.jsx)("a",{onClick:function(){r(!0),F(o)},children:" \u66F4\u65B0"},"config")]}}];return(0,Z.useEffect)(function(){X("DeviceClientType").then(function(h){var d=h.data,o={};if(h.succeeded){var v=[];d.forEach(function(f){o[f.code]={text:f.code},v.push({code:f.code,value:f.code})}),te(v)}})},[]),(0,a.jsxs)(M.ZP,{children:[(0,a.jsx)(Y.ZP,{headerTitle:"\u8BBE\u5907\u7248\u672C",actionRef:i,rowKey:"id",search:{labelWidth:120},toolBarRender:function(){return[(0,a.jsxs)(w.Z,{type:"primary",onClick:function(){r(!0)},children:[(0,a.jsx)(U.Z,{})," \u65B0\u5EFA"]},"primary")]},request:function(){var h=(0,p.Z)((0,u.Z)().mark(function d(o){var v,f;return(0,u.Z)().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return v=[],f=0,S.next=4,N(o).then(function(W){v=W.data.data,f=W.data.total});case 4:return S.abrupt("return",{data:v,success:!0,total:f});case 5:case"end":return S.stop()}},d)}));return function(d){return h.apply(this,arguments)}}(),columns:le,rowSelection:{onChange:function(d,o){k(o)}}}),(C==null?void 0:C.length)>0&&(0,a.jsx)(b.Z,{extra:(0,a.jsxs)("div",{children:["\u5DF2\u9009\u62E9"," ",(0,a.jsx)("a",{style:{fontWeight:600},children:C.length})," ","\u9879 \xA0\xA0"]}),children:(0,a.jsx)(w.Z,{onClick:(0,p.Z)((0,u.Z)().mark(function h(){var d,o;return(0,u.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=2,ee(C);case 2:k([]),(d=i.current)===null||d===void 0||(o=d.reloadAndRest)===null||o===void 0||o.call(d);case 4:case"end":return f.stop()}},h)})),children:"\u5220\u9664"})}),(0,a.jsx)(L,{onFinish:function(){var h=(0,p.Z)((0,u.Z)().mark(function d(o){var v;return(0,u.Z)().wrap(function(x){for(;;)switch(x.prev=x.next){case 0:v=!1,o.id?v=_(o):v=q(o),v&&(r(!1),F(void 0)),i.current.reload();case 4:case"end":return x.stop()}},d)}));return function(d){return h.apply(this,arguments)}}(),onCancel:function(){r(!1),F(void 0)},createModalVisible:e,values:se||{},dicData:ae})]})},ne=re}}]); diff --git a/dist/p__device__deviceVesion.9b14cfc0.async.js b/dist/p__device__deviceVesion.9b14cfc0.async.js deleted file mode 100644 index 587882c..0000000 --- a/dist/p__device__deviceVesion.9b14cfc0.async.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[4424,1322],{58211:function(ce,A,t){"use strict";t.r(A),t.d(A,{default:function(){return re}});var de=t(57663),T=t(71577),x=t(2824),u=t(39428),oe=t(34792),d=t(48086),p=t(3182),Z=t(67294),M=t(78009),b=t(85224),U=t(49101),Y=t(16894),fe=t(71194),K=t(50146),he=t(9715),y=t(55843),ve=t(47673),E=t(4107),pe=t(43358),m=t(34041),r=t(85893),J=function(a){var l=m.Z.Option,e=m.Z.OptGroup;return(0,r.jsx)(K.Z,{title:a.values.id?"\u7F16\u8F91":"\u65B0\u5EFA",width:640,visible:a.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){a.onCancel()},destroyOnClose:!0,children:(0,r.jsxs)(y.Z,{layout:"vertical",preserve:!1,initialValues:a.values,onFinish:a.onFinish,children:[(0,r.jsx)(y.Z.Item,{name:"id",hidden:!0,children:(0,r.jsx)(E.Z,{})}),(0,r.jsx)(y.Z.Item,{label:"\u7248\u672C\u53F7",name:"vesion",rules:[{required:!0,max:50}],children:(0,r.jsx)(E.Z,{})}),(0,r.jsx)(y.Z.Item,{label:"\u8BBE\u5907\u7C7B\u578B",name:"deviceTypeKey",rules:[{required:!0,max:50}],children:(0,r.jsx)(m.Z,{children:a.dicData.map(function(n,i){return(0,r.jsx)(m.Z.Option,{index:i,value:n.code,children:n.value},n.code)})})}),(0,r.jsx)(y.Z.Item,{label:"\u72B6\u6001",name:"status",rules:[{required:!0}],children:(0,r.jsx)(m.Z,{placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001",children:(0,r.jsxs)(e,{children:[(0,r.jsx)(m.Z.Option,{value:0,children:"\u6B63\u5E38"}),(0,r.jsx)(m.Z.Option,{value:1,children:"\u505C\u7528"})]})})}),(0,r.jsx)(y.Z.Item,{children:(0,r.jsx)(T.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})})},L=J,D=t(48971);function N(s){return O.apply(this,arguments)}function O(){return O=(0,p.Z)((0,u.Z)().mark(function s(a){return(0,u.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,D.WY)("/kitchen/api/DeviceVesion/GetDeviceVesionPage",{method:"POST",data:a}));case 1:case"end":return e.stop()}},s)})),O.apply(this,arguments)}function z(s){return R.apply(this,arguments)}function R(){return R=(0,p.Z)((0,u.Z)().mark(function s(a){return(0,u.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,D.WY)("/kitchen/api/DeviceVesion/AddDeviceVesion",{method:"POST",data:a}));case 1:case"end":return e.stop()}},s)})),R.apply(this,arguments)}function H(s){return F.apply(this,arguments)}function F(){return F=(0,p.Z)((0,u.Z)().mark(function s(a){return(0,u.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,D.WY)("\u200B/kitchen/api/DeviceVesion/DelDeviceVesion",{method:"POST",data:a}));case 1:case"end":return e.stop()}},s)})),F.apply(this,arguments)}function Q(s){return $.apply(this,arguments)}function $(){return $=(0,p.Z)((0,u.Z)().mark(function s(a){return(0,u.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,D.WY)("\u200B/kitchen/api/DeviceVesion/UpdateDeviceVesion",{method:"POST",data:a}));case 1:case"end":return e.stop()}},s)})),$.apply(this,arguments)}function X(s){return B.apply(this,arguments)}function B(){return B=(0,p.Z)((0,u.Z)().mark(function s(a){return(0,u.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,D.WY)("/kitchen/api/dict-data/dic-list/".concat(a),{method:"Get"}));case 1:case"end":return e.stop()}},s)})),B.apply(this,arguments)}var j="message",q=function(){var s=(0,p.Z)((0,u.Z)().mark(function a(l){return(0,u.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,d.default.loading("\u6B63\u5728\u6DFB\u52A0",j),n.next=4,z(JSON.stringify(l)).then(function(i){return d.default.destroy(j),i.data?(d.default.success("\u6DFB\u52A0\u6210\u529F"),!0):(d.default.error("\u6DFB\u52A0\u5931\u8D25"),!1)});case 4:n.next=10;break;case 6:return n.prev=6,n.t0=n.catch(0),d.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),n.abrupt("return",!1);case 10:case"end":return n.stop()}},a,null,[[0,6]])}));return function(l){return s.apply(this,arguments)}}(),_=function(){var s=(0,p.Z)((0,u.Z)().mark(function a(l){return(0,u.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,d.default.loading("\u6B63\u5728\u4FEE\u6539",j),d.default.destroy(j),n.next=5,Q(JSON.stringify(l)).then(function(i){return d.default.destroy(j),i.data?(d.default.success("\u4FEE\u6539\u6210\u529F"),!0):(d.default.success("\u4FEE\u6539\u5931\u8D25"),!1)});case 5:n.next=11;break;case 7:return n.prev=7,n.t0=n.catch(0),d.default.error("\u4FEE\u6539\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),n.abrupt("return",!1);case 11:case"end":return n.stop()}},a,null,[[0,7]])}));return function(l){return s.apply(this,arguments)}}(),ee=function(){var s=(0,p.Z)((0,u.Z)().mark(function a(l){var e;return(0,u.Z)().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.prev=0,d.default.loading("\u6B63\u5728\u5220\u9664"),e=[],l.forEach(function(g){e.push(g.id)}),i.next=6,H(e).then(function(g){return g.data?(d.default.success("\u5220\u9664\u6210\u529F"),!0):(d.default.error(g.errors),!1)});case 6:i.next=12;break;case 8:return i.prev=8,i.t0=i.catch(0),d.default.error("\u5220\u9664\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),i.abrupt("return",!1);case 12:case"end":return i.stop()}},a,null,[[0,8]])}));return function(l){return s.apply(this,arguments)}}(),ne=function(){var a=(0,Z.useState)(!1),l=(0,x.Z)(a,2),e=l[0],n=l[1],i=(0,Z.useRef)(),g=(0,Z.useState)([]),G=(0,x.Z)(g,2),ae=G[0],te=G[1],ue=(0,Z.useState)(),I=(0,x.Z)(ue,2),se=I[0],V=I[1],ie=(0,Z.useState)([]),P=(0,x.Z)(ie,2),C=P[0],k=P[1],le=[{title:"\u4E3B\u952E",dataIndex:"id",hideInSearch:!0,hideInTable:!0,tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key"},{title:"\u7248\u672C\u53F7",dataIndex:"vesion",valueType:"textarea"},{title:"\u8BBE\u5907\u7C7B\u578B",dataIndex:"deviceTypeKey",valueType:"textarea"},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(o,c){return[(0,r.jsx)("a",{onClick:function(){n(!0),V(c)},children:" \u66F4\u65B0"},"config"),(0,r.jsx)("a",{onClick:function(){n(!0),V(c)},children:" \u4E0B\u8F7D\u5DE5\u827A\u6A21\u677F"},"config")]}}];return(0,Z.useEffect)(function(){X("DeviceClientType").then(function(v){var o=v.data,c={};if(v.succeeded){var f=[];o.forEach(function(h){c[h.code]={text:h.code},f.push({code:h.code,value:h.code})}),te(f)}})},[]),(0,r.jsxs)(M.ZP,{children:[(0,r.jsx)(Y.ZP,{headerTitle:"\u8BBE\u5907\u7248\u672C",actionRef:i,rowKey:"id",search:{labelWidth:120},toolBarRender:function(){return[(0,r.jsxs)(T.Z,{type:"primary",onClick:function(){n(!0)},children:[(0,r.jsx)(U.Z,{})," \u65B0\u5EFA"]},"primary")]},request:function(){var v=(0,p.Z)((0,u.Z)().mark(function o(c){var f,h;return(0,u.Z)().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return f=[],h=0,S.next=4,N(c).then(function(W){f=W.data.data,h=W.data.total});case 4:return S.abrupt("return",{data:f,success:!0,total:h});case 5:case"end":return S.stop()}},o)}));return function(o){return v.apply(this,arguments)}}(),columns:le,rowSelection:{onChange:function(o,c){k(c)}}}),(C==null?void 0:C.length)>0&&(0,r.jsx)(b.Z,{extra:(0,r.jsxs)("div",{children:["\u5DF2\u9009\u62E9"," ",(0,r.jsx)("a",{style:{fontWeight:600},children:C.length})," ","\u9879 \xA0\xA0"]}),children:(0,r.jsx)(T.Z,{onClick:(0,p.Z)((0,u.Z)().mark(function v(){var o,c;return(0,u.Z)().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.next=2,ee(C);case 2:k([]),(o=i.current)===null||o===void 0||(c=o.reloadAndRest)===null||c===void 0||c.call(o);case 4:case"end":return h.stop()}},v)})),children:"\u5220\u9664"})}),(0,r.jsx)(L,{onFinish:function(){var v=(0,p.Z)((0,u.Z)().mark(function o(c){var f;return(0,u.Z)().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:f=!1,c.id?f=_(c):f=q(c),f&&(n(!1),V(void 0)),i.current.reload();case 4:case"end":return w.stop()}},o)}));return function(o){return v.apply(this,arguments)}}(),onCancel:function(){n(!1),V(void 0)},createModalVisible:e,values:se||{},dicData:ae})]})},re=ne}}]); diff --git a/dist/p__erp__bill__receivingNote.0777b244.async.js b/dist/p__erp__bill__receivingNote.5f83b47a.async.js similarity index 64% rename from dist/p__erp__bill__receivingNote.0777b244.async.js rename to dist/p__erp__bill__receivingNote.5f83b47a.async.js index 170e6b0..bd9949c 100644 --- a/dist/p__erp__bill__receivingNote.0777b244.async.js +++ b/dist/p__erp__bill__receivingNote.5f83b47a.async.js @@ -1 +1 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[3703,1322],{14206:function(De,X,u){"use strict";u.r(X),u.d(X,{default:function(){return Qe}});var O=u(57663),L=u(71577),M=u(62350),K=u(24565),x=u(2824),i=u(39428),v=u(11849),_=u(34792),$=u(48086),m=u(3182),q=u(49101),g=u(67294),se=u(78009),N=u(16894),Pe=u(71194),V=u(50146),ke=u(49111),Q=u(19650),y=u(77883),S=u(85986),U=u(93224),c=u(62999),Y=u(54680),He=u(43358),W=u(34041),ze=u(9715),k=u(55843),Je=u(47673),H=u(4107),Te=u(59465),A=u(48971);function Fe(d,s){return le.apply(this,arguments)}function le(){return le=(0,m.Z)((0,i.Z)().mark(function d(s,j){return(0,i.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,A.WY)("/kitchen/api/receivingNote/getPage",{method:"POST",data:s}));case 1:case"end":return a.stop()}},d)})),le.apply(this,arguments)}function Xe(d,s){return oe.apply(this,arguments)}function oe(){return oe=_asyncToGenerator(_regeneratorRuntime().mark(function d(s,j){return _regeneratorRuntime().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:debugger;return a.abrupt("return",request("/kitchen/api/receivingNote/getEntryPage",{method:"POST",params:s}));case 2:case"end":return a.stop()}},d)})),oe.apply(this,arguments)}function we(d,s){return ce.apply(this,arguments)}function ce(){return ce=(0,m.Z)((0,i.Z)().mark(function d(s,j){return(0,i.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,A.WY)("/kitchen/api/receivingNote/getEntryPage?id=".concat(s),{method:"POST"}));case 1:case"end":return a.stop()}},d)})),ce.apply(this,arguments)}function Le(d,s){return de.apply(this,arguments)}function de(){return de=(0,m.Z)((0,i.Z)().mark(function d(s,j){return(0,i.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,A.WY)("/kitchen/api/receivingNote/approved",{method:"POST",params:s}));case 1:case"end":return a.stop()}},d)})),de.apply(this,arguments)}function $e(d,s){return pe.apply(this,arguments)}function pe(){return pe=(0,m.Z)((0,i.Z)().mark(function d(s,j){return(0,i.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,A.WY)("/kitchen/api/receivingNote/add",{method:"POST",data:s}));case 1:case"end":return a.stop()}},d)})),pe.apply(this,arguments)}function Ue(d,s){return he.apply(this,arguments)}function he(){return he=(0,m.Z)((0,i.Z)().mark(function d(s,j){return(0,i.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,A.WY)("/kitchen/api/product-type/type-list",{method:"GET",params:(0,v.Z)({},s)}));case 1:case"end":return a.stop()}},d)})),he.apply(this,arguments)}function We(d,s){return fe.apply(this,arguments)}function fe(){return fe=(0,m.Z)((0,i.Z)().mark(function d(s,j){return(0,i.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,A.WY)("/kitchen/api/unit/uint-list",{method:"GET",params:(0,v.Z)({},s)}));case 1:case"end":return a.stop()}},d)})),fe.apply(this,arguments)}function Ae(d){return ve.apply(this,arguments)}function ve(){return ve=(0,m.Z)((0,i.Z)().mark(function d(s){return(0,i.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.abrupt("return",(0,A.WY)("/kitchen/api/Product/GetPage",{method:"POST",data:s}));case 1:case"end":return f.stop()}},d)})),ve.apply(this,arguments)}function Be(d){return me.apply(this,arguments)}function me(){return me=(0,m.Z)((0,i.Z)().mark(function d(s){return(0,i.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.abrupt("return",(0,A.WY)("/kitchen/api/PurchaseOrder/delivery-entry-list/".concat(s),{method:"get"}));case 1:case"end":return f.stop()}},d)})),me.apply(this,arguments)}var e=u(85893),Re=["key","name","fieldKey"],Ke=H.Z.Search,Me=function(s){var j=k.Z.useForm(),f=(0,x.Z)(j,1),a=f[0],b=W.Z.Option,z=W.Z.OptGroup,je=(0,g.useState)([]),ee=(0,x.Z)(je,2),B=ee[0],ye=ee[1],te=(0,g.useState)([]),J=(0,x.Z)(te,2),G=J[0],Ze=J[1],re=(0,g.useState)([]),ne=(0,x.Z)(re,2),Ce=ne[0],xe=ne[1],ae=(0,g.useState)([]),ue=(0,x.Z)(ae,2),be=ue[0],Ee=ue[1];(0,g.useEffect)(function(){var T=function(){var F=(0,m.Z)((0,i.Z)().mark(function D(I){var P,w;return(0,i.Z)().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,Ae({current:1,pageSize:1e7});case 2:P=l.sent.data,P.data&&(w=[],P.data.forEach(function(t){w.push({key:t.code,name:t.name,id:t.id,packUnit:t.packUnit,stockUint:t.stockUint,proportion:t.proportion,code:t.code,productId:t.id})}),Ze(w),ye(w));case 4:case"end":return l.stop()}},D)}));return function(I){return F.apply(this,arguments)}}();T()},[]);var ge={labelCol:{},wrapperCol:{}},Ie=function(F){},Se=function(){var T=(0,m.Z)((0,i.Z)().mark(function F(D){var I,P,w,Z,l,t;return(0,i.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return I=[],n.next=3,Be(D);case 3:if(P=n.sent,P.data){for(w=[],I=P.data.deliveryEntryList,Z=function(r){var p,R,C,E;t=B.find(function(Oe){if(Oe.key==I[r].barcode)return Oe}),w[r]=(0,v.Z)((0,v.Z)({},w[r]),{},{code:I[r].barcode,stockUint:(p=t)===null||p===void 0?void 0:p.stockUint,packUnit:(R=t)===null||R===void 0?void 0:R.packUnit,proportion:(C=t)===null||C===void 0?void 0:C.proportion,productId:(E=t)===null||E===void 0?void 0:E.productId,packQty:I[r].deliveryQty,stockQty:I[r].qty})},l=0;l0&&r.data.forEach(function(E){p.push({stockuint:E.id,text:E.name,value:E.id,label:E.name})}),Ce(p);case 6:case"end":return C.stop()}},n)}));return function(h){return o.apply(this,arguments)}}(),l=function(){var o=(0,m.Z)((0,i.Z)().mark(function n(h){var r,p;return(0,i.Z)().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return C.next=2,Ue();case 2:r=C.sent,p=[],r.data.length>0&&r.data.forEach(function(E){p.push({typeid:E.id,text:E.name,value:E.id,label:E.name})}),be(p);case 6:case"end":return C.stop()}},n)}));return function(h){return o.apply(this,arguments)}}();function t(){(0,Ge.FM)().then(function(o){Se(o.data);var n={};h(o.data);function h(r){for(var p in r)n[r[p].value]={text:r[p].title},r[p].children&&h(r[p].children)}D(n)})}t(),Z(),l()},[]);var I=function(){var Z=(0,m.Z)((0,i.Z)().mark(function l(t){var o,n;return(0,i.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,we(t);case 2:o=r.sent;debugger;n=J,n.sub=o.data,G(n);case 7:case"end":return r.stop()}},l)}));return function(t){return Z.apply(this,arguments)}}(),P=function(){var Z=(0,m.Z)((0,i.Z)().mark(function l(t){return(0,i.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:case"end":return n.stop()}},l)}));return function(t){return Z.apply(this,arguments)}}(),w=[{title:"\u4E3B\u952E",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0,render:function(l,t){return(0,e.jsx)("a",{onClick:function(){G(t),ee(!0)},children:l})}},{title:"\u5355\u636E\u53F7",dataIndex:"sheetId",hideInForm:!0},{title:"\u6536\u8D27\u673A\u6784",dataIndex:"orgId",valueEnum:F},{title:"\u5236\u5355\u4EBA",dataIndex:"createByName"},{title:"\u5BA1\u6838\u4EBA",dataIndex:"approveByName"},{title:"\u5236\u5355\u65E5\u671F",sorter:!0,dataIndex:"operDate",valueType:"date"},{title:"\u5BA1\u6838\u65E5\u671F",sorter:!0,dataIndex:"approveAt",valueType:"date"},{title:"\u5907\u6CE8",dataIndex:"remark"},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(l,t){return[t.isApprove===0&&(0,e.jsx)("a",{type:"primary",onClick:(0,m.Z)((0,i.Z)().mark(function o(){var n,h;return(0,i.Z)().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return p.next=2,we(t.id);case 2:h=p.sent,h.data.data.length>0&&(t.sub=h.data.data),G(t),t==null||(n=t.startEditable)===null||n===void 0||n.call(t,t.id),a(!0);case 7:case"end":return p.stop()}},o)})),children:"\u4FEE\u6539"},"config"),t.isApprove===0&&(0,e.jsx)("a",{type:"primary",onClick:function(){$.default.loading("\u6B63\u5728\u5BA1\u6838\uFF01");try{Le({Id:t.id}),$.default.success("\u5BA1\u6838\u5B8C\u6210\uFF01")}catch(n){console.log(n),$.default.error("\u6B63\u5728\u5BA1\u6838\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01")}B.current.reload()},children:"\u5BA1\u6838"},"config"),t.isApprove===0&&(0,e.jsx)(K.Z,{type:"primary",title:"\u786E\u8BA4\u5220\u9664\u5417\uFF1F",okText:"\u662F",cancelText:"\u5426",onConfirm:function(){P(t.id)},onCancel:function(){},children:(0,e.jsx)("a",{href:"#",children:"\u5220\u9664"})},"primary")]}}];return(0,e.jsxs)(se.ZP,{children:[(0,e.jsx)(N.ZP,{headerTitle:"\u6536\u8D27\u5355",actionRef:B,rowKey:"id",search:{labelWidth:120},toolBarRender:function(){return[(0,e.jsxs)(L.Z,{type:"primary",onClick:function(){G({}),a(!0)},children:[(0,e.jsx)(q.Z,{})," \u65B0\u589E"]},"create")]},request:function(){var Z=(0,m.Z)((0,i.Z)().mark(function l(t){var o,n;return(0,i.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return o=[],n=0,r.next=4,Fe(t).then(function(p){o=p.data.data,n=p.data.total});case 4:return r.abrupt("return",{data:o,success:!0,total:n});case 5:case"end":return r.stop()}},l)}));return function(l){return Z.apply(this,arguments)}}(),columns:w}),(0,e.jsx)(Ye,{onFinish:function(){var Z=(0,m.Z)((0,i.Z)().mark(function l(t){var o;return(0,i.Z)().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return o=!1,h.next=3,Ne(t);case 3:o=h.sent,o&&(a(!1),B.current&&B.current.reload());case 5:case"end":return h.stop()}},l)}));return function(l){return Z.apply(this,arguments)}}(),onCancel:function(){G(void 0),a(!1)},createModalVisible:f,values:J||{},typeList:ue,uintList:ne,OrgData:Ie})]})},Qe=Ve},3408:function(De,X,u){"use strict";u.d(X,{lM:function(){return x},IH:function(){return v},mm:function(){return q},eP:function(){return se},FM:function(){return ke}});var O=u(39428),L=u(11849),M=u(3182),K=u(48971);function x(y,S){return i.apply(this,arguments)}function i(){return i=(0,M.Z)((0,O.Z)().mark(function y(S,U){return(0,O.Z)().wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:return Y.abrupt("return",(0,K.WY)("/kitchen/api/sysOrg\u200B/page",{method:"GET",params:(0,L.Z)({},S)}));case 1:case"end":return Y.stop()}},y)})),i.apply(this,arguments)}function v(y){return _.apply(this,arguments)}function _(){return _=(0,M.Z)((0,O.Z)().mark(function y(S){return(0,O.Z)().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.abrupt("return",(0,K.WY)("/kitchen/api/sysOrg/add",{method:"POST",data:(0,L.Z)({},S)}));case 1:case"end":return c.stop()}},y)})),_.apply(this,arguments)}function $(y){return m.apply(this,arguments)}function m(){return m=_asyncToGenerator(_regeneratorRuntime().mark(function y(S){return _regeneratorRuntime().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.abrupt("return",request("\u200B/kitchen/api\u200B/sysOrg\u200B/list",{method:"POST",data:_objectSpread({},S)}));case 1:case"end":return c.stop()}},y)})),m.apply(this,arguments)}function q(y){return g.apply(this,arguments)}function g(){return g=(0,M.Z)((0,O.Z)().mark(function y(S){return(0,O.Z)().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.abrupt("return",(0,K.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/delete",{method:"POST",data:(0,L.Z)({},S)}));case 1:case"end":return c.stop()}},y)})),g.apply(this,arguments)}function se(y){return N.apply(this,arguments)}function N(){return N=(0,M.Z)((0,O.Z)().mark(function y(S){return(0,O.Z)().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.abrupt("return",(0,K.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/edit",{method:"POST",data:(0,L.Z)({},S)}));case 1:case"end":return c.stop()}},y)})),N.apply(this,arguments)}function Pe(y){return V.apply(this,arguments)}function V(){return V=_asyncToGenerator(_regeneratorRuntime().mark(function y(S){return _regeneratorRuntime().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.abrupt("return",request("/kitchen\u200B/api\u200B/sysOrg\u200B/detail",{method:"POST",data:_objectSpread({},S)}));case 1:case"end":return c.stop()}},y)})),V.apply(this,arguments)}function ke(y){return Q.apply(this,arguments)}function Q(){return Q=(0,M.Z)((0,O.Z)().mark(function y(S){return(0,O.Z)().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.abrupt("return",(0,K.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/tree",{data:(0,L.Z)({},S)}));case 1:case"end":return c.stop()}},y)})),Q.apply(this,arguments)}}}]); +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[3703,1322],{14206:function(Oe,X,u){"use strict";u.r(X),u.d(X,{default:function(){return Qe}});var P=u(57663),L=u(71577),M=u(62350),K=u(24565),x=u(2824),i=u(39428),v=u(11849),_=u(34792),$=u(48086),m=u(3182),q=u(49101),g=u(67294),se=u(78009),N=u(16894),De=u(71194),V=u(50146),we=u(49111),Q=u(19650),y=u(77883),S=u(85986),A=u(93224),c=u(62999),Y=u(54680),He=u(43358),B=u(34041),ze=u(9715),w=u(55843),Je=u(47673),H=u(4107),Te=u(59465),U=u(48971);function Fe(d,s){return le.apply(this,arguments)}function le(){return le=(0,m.Z)((0,i.Z)().mark(function d(s,k){return(0,i.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,U.WY)("/kitchen/api/receivingNote/getPage",{method:"POST",data:s}));case 1:case"end":return a.stop()}},d)})),le.apply(this,arguments)}function Xe(d,s){return oe.apply(this,arguments)}function oe(){return oe=_asyncToGenerator(_regeneratorRuntime().mark(function d(s,k){return _regeneratorRuntime().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:debugger;return a.abrupt("return",request("/kitchen/api/receivingNote/getEntryPage",{method:"POST",params:s}));case 2:case"end":return a.stop()}},d)})),oe.apply(this,arguments)}function je(d,s){return ce.apply(this,arguments)}function ce(){return ce=(0,m.Z)((0,i.Z)().mark(function d(s,k){return(0,i.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,U.WY)("/kitchen/api/receivingNote/getEntryPage?id=".concat(s),{method:"POST"}));case 1:case"end":return a.stop()}},d)})),ce.apply(this,arguments)}function Le(d,s){return de.apply(this,arguments)}function de(){return de=(0,m.Z)((0,i.Z)().mark(function d(s,k){return(0,i.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,U.WY)("/kitchen/api/receivingNote/approved",{method:"POST",params:s}));case 1:case"end":return a.stop()}},d)})),de.apply(this,arguments)}function $e(d,s){return pe.apply(this,arguments)}function pe(){return pe=(0,m.Z)((0,i.Z)().mark(function d(s,k){return(0,i.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,U.WY)("/kitchen/api/receivingNote/add",{method:"POST",data:s}));case 1:case"end":return a.stop()}},d)})),pe.apply(this,arguments)}function Ae(d,s){return he.apply(this,arguments)}function he(){return he=(0,m.Z)((0,i.Z)().mark(function d(s,k){return(0,i.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,U.WY)("/kitchen/api/product-type/type-list",{method:"GET",params:(0,v.Z)({},s)}));case 1:case"end":return a.stop()}},d)})),he.apply(this,arguments)}function Be(d,s){return fe.apply(this,arguments)}function fe(){return fe=(0,m.Z)((0,i.Z)().mark(function d(s,k){return(0,i.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,U.WY)("/kitchen/api/unit/uint-list",{method:"GET",params:(0,v.Z)({},s)}));case 1:case"end":return a.stop()}},d)})),fe.apply(this,arguments)}function Ue(d){return ve.apply(this,arguments)}function ve(){return ve=(0,m.Z)((0,i.Z)().mark(function d(s){return(0,i.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.abrupt("return",(0,U.WY)("/kitchen/api/Product/GetPage",{method:"POST",data:s}));case 1:case"end":return f.stop()}},d)})),ve.apply(this,arguments)}function We(d){return me.apply(this,arguments)}function me(){return me=(0,m.Z)((0,i.Z)().mark(function d(s){return(0,i.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.abrupt("return",(0,U.WY)("/kitchen/api/PurchaseOrder/delivery-entry-list/".concat(s),{method:"get"}));case 1:case"end":return f.stop()}},d)})),me.apply(this,arguments)}var e=u(85893),Re=["key","name","fieldKey"],Ke=H.Z.Search,Me=function(s){var k=w.Z.useForm(),f=(0,x.Z)(k,1),a=f[0],b=B.Z.Option,z=B.Z.OptGroup,ke=(0,g.useState)([]),ee=(0,x.Z)(ke,2),W=ee[0],ye=ee[1],te=(0,g.useState)([]),J=(0,x.Z)(te,2),G=J[0],Ze=J[1],re=(0,g.useState)([]),ne=(0,x.Z)(re,2),Ce=ne[0],xe=ne[1],ae=(0,g.useState)([]),ue=(0,x.Z)(ae,2),be=ue[0],Ee=ue[1];(0,g.useEffect)(function(){var T=function(){var F=(0,m.Z)((0,i.Z)().mark(function O(I){var D,j;return(0,i.Z)().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,Ue({current:1,pageSize:1e7});case 2:D=l.sent.data,D.data&&(j=[],D.data.forEach(function(t){j.push({key:t.code,name:t.name,id:t.id,packUnit:t.packUnit,stockUint:t.stockUint,proportion:t.proportion,code:t.code,productId:t.id})}),Ze(j),ye(j));case 4:case"end":return l.stop()}},O)}));return function(I){return F.apply(this,arguments)}}();T()},[]);var ge={labelCol:{},wrapperCol:{}},Ie=function(F){},Se=function(){var T=(0,m.Z)((0,i.Z)().mark(function F(O){var I,D,j,Z,l,t;return(0,i.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return I=[],n.next=3,We(O);case 3:if(D=n.sent,D.data){for(j=[],I=D.data.deliveryEntryList,Z=function(r){var p,R,C,E;t=W.find(function(Pe){if(Pe.key==I[r].barcode)return Pe}),j[r]=(0,v.Z)((0,v.Z)({},j[r]),{},{code:I[r].barcode,stockUint:(p=t)===null||p===void 0?void 0:p.stockUint,packUnit:(R=t)===null||R===void 0?void 0:R.packUnit,proportion:(C=t)===null||C===void 0?void 0:C.proportion,productId:(E=t)===null||E===void 0?void 0:E.productId,packQty:I[r].deliveryQty,stockQty:I[r].qty})},l=0;l0&&r.data.forEach(function(E){p.push({stockuint:E.id,text:E.name,value:E.id,label:E.name})}),Ce(p);case 6:case"end":return C.stop()}},n)}));return function(h){return o.apply(this,arguments)}}(),l=function(){var o=(0,m.Z)((0,i.Z)().mark(function n(h){var r,p;return(0,i.Z)().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return C.next=2,Ae();case 2:r=C.sent,p=[],r.data.length>0&&r.data.forEach(function(E){p.push({typeid:E.id,text:E.name,value:E.id,label:E.name})}),be(p);case 6:case"end":return C.stop()}},n)}));return function(h){return o.apply(this,arguments)}}();function t(){(0,Ge.FM)().then(function(o){Se(o.data);var n={};h(o.data);function h(r){for(var p in r)n[r[p].value]={text:r[p].title},r[p].children&&h(r[p].children)}O(n)})}t(),Z(),l()},[]);var I=function(){var Z=(0,m.Z)((0,i.Z)().mark(function l(t){var o,n;return(0,i.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,je(t);case 2:o=r.sent;debugger;n=J,n.sub=o.data,G(n);case 7:case"end":return r.stop()}},l)}));return function(t){return Z.apply(this,arguments)}}(),D=function(){var Z=(0,m.Z)((0,i.Z)().mark(function l(t){return(0,i.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:case"end":return n.stop()}},l)}));return function(t){return Z.apply(this,arguments)}}(),j=[{title:"\u4E3B\u952E",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0,render:function(l,t){return(0,e.jsx)("a",{onClick:function(){G(t),ee(!0)},children:l})}},{title:"\u5355\u636E\u53F7",dataIndex:"sheetId",hideInForm:!0},{title:"\u6536\u8D27\u673A\u6784",dataIndex:"orgId",valueEnum:F},{title:"\u5236\u5355\u4EBA",dataIndex:"createByName"},{title:"\u5BA1\u6838\u4EBA",dataIndex:"approveByName"},{title:"\u5236\u5355\u65E5\u671F",sorter:!0,dataIndex:"operDate",valueType:"date"},{title:"\u5BA1\u6838\u65E5\u671F",sorter:!0,dataIndex:"approveAt",valueType:"date"},{title:"\u5907\u6CE8",dataIndex:"remark"},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(l,t){return[t.isApprove===0&&(0,e.jsx)("a",{type:"primary",onClick:(0,m.Z)((0,i.Z)().mark(function o(){var n,h;return(0,i.Z)().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return p.next=2,je(t.id);case 2:h=p.sent,h.data.data.length>0&&(t.sub=h.data.data),G(t),t==null||(n=t.startEditable)===null||n===void 0||n.call(t,t.id),a(!0);case 7:case"end":return p.stop()}},o)})),children:"\u4FEE\u6539"},"config"),t.isApprove===0&&(0,e.jsx)("a",{type:"primary",onClick:function(){$.default.loading("\u6B63\u5728\u5BA1\u6838\uFF01");try{Le({Id:t.id}),$.default.success("\u5BA1\u6838\u5B8C\u6210\uFF01")}catch(n){console.log(n),$.default.error("\u6B63\u5728\u5BA1\u6838\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01")}W.current.reload()},children:"\u5BA1\u6838"},"config"),t.isApprove===0&&(0,e.jsx)(K.Z,{type:"primary",title:"\u786E\u8BA4\u5220\u9664\u5417\uFF1F",okText:"\u662F",cancelText:"\u5426",onConfirm:function(){D(t.id)},onCancel:function(){},children:(0,e.jsx)("a",{href:"#",children:"\u5220\u9664"})},"primary")]}}];return(0,e.jsxs)(se.ZP,{children:[(0,e.jsx)(N.ZP,{headerTitle:"\u6536\u8D27\u5355",actionRef:W,rowKey:"id",search:{labelWidth:120},toolBarRender:function(){return[(0,e.jsxs)(L.Z,{type:"primary",onClick:function(){G({}),a(!0)},children:[(0,e.jsx)(q.Z,{})," \u65B0\u589E"]},"create")]},request:function(){var Z=(0,m.Z)((0,i.Z)().mark(function l(t){var o,n;return(0,i.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return o=[],n=0,r.next=4,Fe(t).then(function(p){o=p.data.data,n=p.data.total});case 4:return r.abrupt("return",{data:o,success:!0,total:n});case 5:case"end":return r.stop()}},l)}));return function(l){return Z.apply(this,arguments)}}(),columns:j}),(0,e.jsx)(Ye,{onFinish:function(){var Z=(0,m.Z)((0,i.Z)().mark(function l(t){var o;return(0,i.Z)().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return o=!1,h.next=3,Ne(t);case 3:o=h.sent,o&&(a(!1),W.current&&W.current.reload());case 5:case"end":return h.stop()}},l)}));return function(l){return Z.apply(this,arguments)}}(),onCancel:function(){G(void 0),a(!1)},createModalVisible:f,values:J||{},typeList:ue,uintList:ne,OrgData:Ie})]})},Qe=Ve},3408:function(Oe,X,u){"use strict";u.d(X,{lM:function(){return x},IH:function(){return v},mm:function(){return q},eP:function(){return se},FM:function(){return we}});var P=u(39428),L=u(11849),M=u(3182),K=u(48971);function x(y,S){return i.apply(this,arguments)}function i(){return i=(0,M.Z)((0,P.Z)().mark(function y(S,A){return(0,P.Z)().wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:return Y.abrupt("return",(0,K.WY)("/kitchen/api/sysOrg\u200B/page",{method:"GET",params:(0,L.Z)({},S)}));case 1:case"end":return Y.stop()}},y)})),i.apply(this,arguments)}function v(y){return _.apply(this,arguments)}function _(){return _=(0,M.Z)((0,P.Z)().mark(function y(S){return(0,P.Z)().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.abrupt("return",(0,K.WY)("/kitchen/api/sysOrg/add",{method:"POST",data:(0,L.Z)({},S)}));case 1:case"end":return c.stop()}},y)})),_.apply(this,arguments)}function $(y){return m.apply(this,arguments)}function m(){return m=_asyncToGenerator(_regeneratorRuntime().mark(function y(S){return _regeneratorRuntime().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.abrupt("return",request("\u200B/kitchen/api\u200B/sysOrg\u200B/list",{method:"POST",data:_objectSpread({},S)}));case 1:case"end":return c.stop()}},y)})),m.apply(this,arguments)}function q(y){return g.apply(this,arguments)}function g(){return g=(0,M.Z)((0,P.Z)().mark(function y(S){return(0,P.Z)().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.abrupt("return",(0,K.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/delete",{method:"POST",data:(0,L.Z)({},S)}));case 1:case"end":return c.stop()}},y)})),g.apply(this,arguments)}function se(y){return N.apply(this,arguments)}function N(){return N=(0,M.Z)((0,P.Z)().mark(function y(S){return(0,P.Z)().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.abrupt("return",(0,K.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/edit",{method:"POST",data:(0,L.Z)({},S)}));case 1:case"end":return c.stop()}},y)})),N.apply(this,arguments)}function De(y){return V.apply(this,arguments)}function V(){return V=_asyncToGenerator(_regeneratorRuntime().mark(function y(S){return _regeneratorRuntime().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.abrupt("return",request("/kitchen\u200B/api\u200B/sysOrg\u200B/detail",{method:"POST",data:_objectSpread({},S)}));case 1:case"end":return c.stop()}},y)})),V.apply(this,arguments)}function we(y){return Q.apply(this,arguments)}function Q(){return Q=(0,M.Z)((0,P.Z)().mark(function y(S){return(0,P.Z)().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.abrupt("return",(0,K.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/tree",{data:(0,L.Z)({},S)}));case 1:case"end":return c.stop()}},y)})),Q.apply(this,arguments)}}}]); diff --git a/dist/p__erp__stock.6095cfcc.async.js b/dist/p__erp__stock.e7ae1c4a.async.js similarity index 66% rename from dist/p__erp__stock.6095cfcc.async.js rename to dist/p__erp__stock.e7ae1c4a.async.js index 7770194..3b74faa 100644 --- a/dist/p__erp__stock.6095cfcc.async.js +++ b/dist/p__erp__stock.e7ae1c4a.async.js @@ -1 +1 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[212,1322],{4910:function(K,I,s){"use strict";s.r(I),s.d(I,{default:function(){return k}});var n=s(39428),o=s(3182),c=s(2824),i=s(67294),E=s(78009),b=s(16894),P=s(11849),g=s(48971);function C(t,r){return v.apply(this,arguments)}function v(){return v=(0,o.Z)((0,n.Z)().mark(function t(r,p){return(0,n.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,g.WY)("/kitchen/api/stockInfo/getPage",{method:"POST",data:r}));case 1:case"end":return a.stop()}},t)})),v.apply(this,arguments)}function L(t,r){return _.apply(this,arguments)}function _(){return _=(0,o.Z)((0,n.Z)().mark(function t(r,p){return(0,n.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,g.WY)("/kitchen/api/product-type/type-list",{method:"GET",params:(0,P.Z)({},r)}));case 1:case"end":return a.stop()}},t)})),_.apply(this,arguments)}function W(t,r){return y.apply(this,arguments)}function y(){return y=(0,o.Z)((0,n.Z)().mark(function t(r,p){return(0,n.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,g.WY)("/kitchen/api/unit/uint-list",{method:"GET",params:(0,P.Z)({},r)}));case 1:case"end":return a.stop()}},t)})),y.apply(this,arguments)}var D=s(3408),Z=s(85893),R=function(){var r=(0,i.useState)(!1),p=(0,c.Z)(r,2),e=p[0],a=p[1],Y=(0,i.useState)(!1),j=(0,c.Z)(Y,2),ae=j[0],G=j[1],x=(0,i.useRef)(),N=(0,i.useState)(),M=(0,c.Z)(N,2),ue=M[0],F=M[1],V=(0,i.useState)(),$=(0,c.Z)(V,2),se=$[0],H=$[1],Q=(0,i.useState)(),B=(0,c.Z)(Q,2),ie=B[0],z=B[1],J=(0,i.useState)([]),A=(0,c.Z)(J,2),le=A[0],X=A[1],q=(0,i.useState)([]),U=(0,c.Z)(q,2),ee=U[0],te=U[1];(0,i.useEffect)(function(){var O=function(){var h=(0,o.Z)((0,n.Z)().mark(function d(T){var u,l;return(0,n.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=2,W();case 2:u=f.sent,l=[],u.data.length>0&&u.data.forEach(function(m){l.push({stockuint:m.id,text:m.name,value:m.id,label:m.name})}),H(l);case 6:case"end":return f.stop()}},d)}));return function(T){return h.apply(this,arguments)}}(),S=function(){var h=(0,o.Z)((0,n.Z)().mark(function d(T){var u,l;return(0,n.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=2,L();case 2:u=f.sent,l=[],u.data.length>0&&u.data.forEach(function(m){l.push({typeid:m.id,text:m.name,value:m.id,label:m.name})}),z(l);case 6:case"end":return f.stop()}},d)}));return function(T){return h.apply(this,arguments)}}();function w(){(0,D.FM)().then(function(h){X(h.data);var d={};T(h.data);function T(u){for(var l in u)d[u[l].value]={text:u[l].title},u[l].children&&T(u[l].children)}te(d)})}w(),O(),S()},[]);var re=[{title:"\u4E3B\u952E",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0,render:function(S,w){return(0,Z.jsx)("a",{onClick:function(){F(w),G(!0)},children:S})}},{title:"\u6536\u8D27\u673A\u6784",dataIndex:"orgId",hideInTable:!0,valueEnum:ee},{title:"\u6536\u8D27\u673A\u6784",hideInSearch:!0,dataIndex:"orgName"},{title:"\u7269\u6599\u540D\u79F0",hideInSearch:!0,dataIndex:"productName"},{title:"\u7269\u6599\u7F16\u7801",hideInSearch:!0,dataIndex:"code"},{title:"\u7269\u6599\u5355\u4F4D",hideInSearch:!0,dataIndex:"uintName"},{title:"\u5E93\u5B58\u6570\u91CF",hideInSearch:!0,dataIndex:"stockQty"},{title:"\u7269\u6599\u89C4\u683C",hideInSearch:!0,dataIndex:"specs"}];return(0,Z.jsx)(E.ZP,{children:(0,Z.jsx)(b.ZP,{headerTitle:"\u5E93\u5B58\u67E5\u8BE2",actionRef:x,rowKey:"id",search:{labelWidth:120},toolBarRender:function(){return[]},request:function(){var O=(0,o.Z)((0,n.Z)().mark(function S(w){var h,d;return(0,n.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return h=[],d=0,u.next=4,C(w).then(function(l){h=l.data.data,d=l.data.total});case 4:return u.abrupt("return",{data:h,success:!0,total:d});case 5:case"end":return u.stop()}},S)}));return function(S){return O.apply(this,arguments)}}(),columns:re,rowSelection:{onChange:function(S,w){return setSelectedRows(w)}}})})},k=R},3408:function(K,I,s){"use strict";s.d(I,{lM:function(){return E},IH:function(){return P},mm:function(){return L},eP:function(){return W},FM:function(){return R}});var n=s(39428),o=s(11849),c=s(3182),i=s(48971);function E(t,r){return b.apply(this,arguments)}function b(){return b=(0,c.Z)((0,n.Z)().mark(function t(r,p){return(0,n.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,i.WY)("/kitchen/api/sysOrg\u200B/page",{method:"GET",params:(0,o.Z)({},r)}));case 1:case"end":return a.stop()}},t)})),b.apply(this,arguments)}function P(t){return g.apply(this,arguments)}function g(){return g=(0,c.Z)((0,n.Z)().mark(function t(r){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,i.WY)("/kitchen/api/sysOrg/add",{method:"POST",data:(0,o.Z)({},r)}));case 1:case"end":return e.stop()}},t)})),g.apply(this,arguments)}function C(t){return v.apply(this,arguments)}function v(){return v=_asyncToGenerator(_regeneratorRuntime().mark(function t(r){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("\u200B/kitchen/api\u200B/sysOrg\u200B/list",{method:"POST",data:_objectSpread({},r)}));case 1:case"end":return e.stop()}},t)})),v.apply(this,arguments)}function L(t){return _.apply(this,arguments)}function _(){return _=(0,c.Z)((0,n.Z)().mark(function t(r){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,i.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/delete",{method:"POST",data:(0,o.Z)({},r)}));case 1:case"end":return e.stop()}},t)})),_.apply(this,arguments)}function W(t){return y.apply(this,arguments)}function y(){return y=(0,c.Z)((0,n.Z)().mark(function t(r){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,i.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/edit",{method:"POST",data:(0,o.Z)({},r)}));case 1:case"end":return e.stop()}},t)})),y.apply(this,arguments)}function D(t){return Z.apply(this,arguments)}function Z(){return Z=_asyncToGenerator(_regeneratorRuntime().mark(function t(r){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("/kitchen\u200B/api\u200B/sysOrg\u200B/detail",{method:"POST",data:_objectSpread({},r)}));case 1:case"end":return e.stop()}},t)})),Z.apply(this,arguments)}function R(t){return k.apply(this,arguments)}function k(){return k=(0,c.Z)((0,n.Z)().mark(function t(r){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,i.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/tree",{data:(0,o.Z)({},r)}));case 1:case"end":return e.stop()}},t)})),k.apply(this,arguments)}}}]); +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[212,1322],{4910:function(K,I,s){"use strict";s.r(I),s.d(I,{default:function(){return b}});var n=s(39428),o=s(3182),c=s(2824),i=s(67294),k=s(78009),O=s(16894),E=s(11849),g=s(48971);function D(t,r){return v.apply(this,arguments)}function v(){return v=(0,o.Z)((0,n.Z)().mark(function t(r,p){return(0,n.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,g.WY)("/kitchen/api/stockInfo/getPage",{method:"POST",data:r}));case 1:case"end":return a.stop()}},t)})),v.apply(this,arguments)}function L(t,r){return _.apply(this,arguments)}function _(){return _=(0,o.Z)((0,n.Z)().mark(function t(r,p){return(0,n.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,g.WY)("/kitchen/api/product-type/type-list",{method:"GET",params:(0,E.Z)({},r)}));case 1:case"end":return a.stop()}},t)})),_.apply(this,arguments)}function R(t,r){return y.apply(this,arguments)}function y(){return y=(0,o.Z)((0,n.Z)().mark(function t(r,p){return(0,n.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,g.WY)("/kitchen/api/unit/uint-list",{method:"GET",params:(0,E.Z)({},r)}));case 1:case"end":return a.stop()}},t)})),y.apply(this,arguments)}var W=s(3408),Z=s(85893),C=function(){var r=(0,i.useState)(!1),p=(0,c.Z)(r,2),e=p[0],a=p[1],Y=(0,i.useState)(!1),j=(0,c.Z)(Y,2),ae=j[0],G=j[1],x=(0,i.useRef)(),N=(0,i.useState)(),B=(0,c.Z)(N,2),ue=B[0],F=B[1],V=(0,i.useState)(),A=(0,c.Z)(V,2),se=A[0],H=A[1],Q=(0,i.useState)(),M=(0,c.Z)(Q,2),ie=M[0],z=M[1],J=(0,i.useState)([]),$=(0,c.Z)(J,2),le=$[0],X=$[1],q=(0,i.useState)([]),U=(0,c.Z)(q,2),ee=U[0],te=U[1];(0,i.useEffect)(function(){var T=function(){var h=(0,o.Z)((0,n.Z)().mark(function d(P){var u,l;return(0,n.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=2,R();case 2:u=f.sent,l=[],u.data.length>0&&u.data.forEach(function(m){l.push({stockuint:m.id,text:m.name,value:m.id,label:m.name})}),H(l);case 6:case"end":return f.stop()}},d)}));return function(P){return h.apply(this,arguments)}}(),S=function(){var h=(0,o.Z)((0,n.Z)().mark(function d(P){var u,l;return(0,n.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=2,L();case 2:u=f.sent,l=[],u.data.length>0&&u.data.forEach(function(m){l.push({typeid:m.id,text:m.name,value:m.id,label:m.name})}),z(l);case 6:case"end":return f.stop()}},d)}));return function(P){return h.apply(this,arguments)}}();function w(){(0,W.FM)().then(function(h){X(h.data);var d={};P(h.data);function P(u){for(var l in u)d[u[l].value]={text:u[l].title},u[l].children&&P(u[l].children)}te(d)})}w(),T(),S()},[]);var re=[{title:"\u4E3B\u952E",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0,render:function(S,w){return(0,Z.jsx)("a",{onClick:function(){F(w),G(!0)},children:S})}},{title:"\u6536\u8D27\u673A\u6784",dataIndex:"orgId",hideInTable:!0,valueEnum:ee},{title:"\u6536\u8D27\u673A\u6784",hideInSearch:!0,dataIndex:"orgName"},{title:"\u7269\u6599\u540D\u79F0",hideInSearch:!0,dataIndex:"productName"},{title:"\u7269\u6599\u7F16\u7801",hideInSearch:!0,dataIndex:"code"},{title:"\u7269\u6599\u5355\u4F4D",hideInSearch:!0,dataIndex:"uintName"},{title:"\u5E93\u5B58\u6570\u91CF",hideInSearch:!0,dataIndex:"stockQty"},{title:"\u7269\u6599\u89C4\u683C",hideInSearch:!0,dataIndex:"specs"}];return(0,Z.jsx)(k.ZP,{children:(0,Z.jsx)(O.ZP,{headerTitle:"\u5E93\u5B58\u67E5\u8BE2",actionRef:x,rowKey:"id",search:{labelWidth:120},toolBarRender:function(){return[]},request:function(){var T=(0,o.Z)((0,n.Z)().mark(function S(w){var h,d;return(0,n.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return h=[],d=0,u.next=4,D(w).then(function(l){h=l.data.data,d=l.data.total});case 4:return u.abrupt("return",{data:h,success:!0,total:d});case 5:case"end":return u.stop()}},S)}));return function(S){return T.apply(this,arguments)}}(),columns:re,rowSelection:{onChange:function(S,w){return setSelectedRows(w)}}})})},b=C},3408:function(K,I,s){"use strict";s.d(I,{lM:function(){return k},IH:function(){return E},mm:function(){return L},eP:function(){return R},FM:function(){return C}});var n=s(39428),o=s(11849),c=s(3182),i=s(48971);function k(t,r){return O.apply(this,arguments)}function O(){return O=(0,c.Z)((0,n.Z)().mark(function t(r,p){return(0,n.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,i.WY)("/kitchen/api/sysOrg\u200B/page",{method:"GET",params:(0,o.Z)({},r)}));case 1:case"end":return a.stop()}},t)})),O.apply(this,arguments)}function E(t){return g.apply(this,arguments)}function g(){return g=(0,c.Z)((0,n.Z)().mark(function t(r){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,i.WY)("/kitchen/api/sysOrg/add",{method:"POST",data:(0,o.Z)({},r)}));case 1:case"end":return e.stop()}},t)})),g.apply(this,arguments)}function D(t){return v.apply(this,arguments)}function v(){return v=_asyncToGenerator(_regeneratorRuntime().mark(function t(r){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("\u200B/kitchen/api\u200B/sysOrg\u200B/list",{method:"POST",data:_objectSpread({},r)}));case 1:case"end":return e.stop()}},t)})),v.apply(this,arguments)}function L(t){return _.apply(this,arguments)}function _(){return _=(0,c.Z)((0,n.Z)().mark(function t(r){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,i.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/delete",{method:"POST",data:(0,o.Z)({},r)}));case 1:case"end":return e.stop()}},t)})),_.apply(this,arguments)}function R(t){return y.apply(this,arguments)}function y(){return y=(0,c.Z)((0,n.Z)().mark(function t(r){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,i.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/edit",{method:"POST",data:(0,o.Z)({},r)}));case 1:case"end":return e.stop()}},t)})),y.apply(this,arguments)}function W(t){return Z.apply(this,arguments)}function Z(){return Z=_asyncToGenerator(_regeneratorRuntime().mark(function t(r){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("/kitchen\u200B/api\u200B/sysOrg\u200B/detail",{method:"POST",data:_objectSpread({},r)}));case 1:case"end":return e.stop()}},t)})),Z.apply(this,arguments)}function C(t){return b.apply(this,arguments)}function b(){return b=(0,c.Z)((0,n.Z)().mark(function t(r){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,i.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/tree",{data:(0,o.Z)({},r)}));case 1:case"end":return e.stop()}},t)})),b.apply(this,arguments)}}}]); diff --git a/dist/p__financereport__finance.9e245f57.async.js b/dist/p__financereport__finance.9e245f57.async.js new file mode 100644 index 0000000..42b98eb --- /dev/null +++ b/dist/p__financereport__finance.9e245f57.async.js @@ -0,0 +1 @@ +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[8741,1322,9464,1981,2869,7013,9719,2383],{31651:function(vt,Te,a){"use strict";a.r(Te),a.d(Te,{default:function(){return nt}});var O=a(39428),de=a(3182),yt=a(57663),ke=a(71577),St=a(43358),Q=a(34041),c=a(2824),$e=a(90631),s=a(67294),He=a(78009),D=a(16894),gt=a(71194),De=a(50146),mt=a(58024),o=a(91894),It=a(95300),L=a(7277),Zt=a(13062),U=a(71230),jt=a(89032),X=a(15746),At=a(49111),V=a(19650),Tt=a(14965),Je=a(91774),Dt=a(47673),P=a(4107),Et=a(402),Ee=a(56256),Fe=a(21349),R=a(48971),Z={finaceList:function(t){return(0,R.WY)("/kitchen/api/finance/finance-report",{method:"Post",data:t})},finaceDeatal:function(t){return(0,R.WY)("/kitchen/api/finance/finance-detail",{method:"Post",data:t})},sumFinance:function(t){return(0,R.WY)("\u200B\u200B/kitchen/api/finance/sum-finance",{method:"Post",data:t})},srdTypeList:function(t){return(0,R.WY)("/kitchen/api/storetype/list",{method:"Post",data:t})},srdList:function(t){return(0,R.WY)("/kitchen/api/store/list",{method:"Post",data:t})},financeSummaryList:function(t){return(0,R.WY)("/kitchen/api/finance/finance-analysis",{method:"Post",data:t})},setSettlementDetail:function(t,E,M){return(0,R.WY)("/kitchen/api/finance/settlement-detail/".concat(E,"/").concat(M),{method:"Post",data:t})},StoreList:function(t){return(0,R.WY)("/kitchen/api/select/storelist",{method:"Post",data:t})}},e=a(85893),F={width:"33%",textAlign:"center",height:"20px"},Ce={width:"100%",textAlign:"center",height:"10px",marginTop:"1"},Ke=function(t){var E=(0,s.useRef)(),M=Ee.Z.Text;return(0,e.jsx)(De.Z,{width:800,height:700,bodyStyle:{padding:"32px 40px 48px"},destroyOnClose:!0,title:"\u7ED3\u7B97\u8BE6\u60C5",visible:!0,footer:!1,onCancel:function(){return t.onCancel()},maskClosable:!1,children:(0,e.jsxs)(Fe.Z,{children:[(0,e.jsx)(o.Z,{title:"\u7ED3\u7B97\u8BE6\u60C5",type:"inner",style:{height:120},children:(0,e.jsx)("div",{style:{float:"center",height:100},children:(0,e.jsx)(L.Z,{style:{float:"center"},title:"\u7ED3\u7B97\u91D1\u989D",value:t.values.refund.settlementMoney,prefix:"\xA5"})})}),t.values.refund.refundOrderId!=""?(0,e.jsxs)(o.Z,{title:"\u9000\u6B3E\u91D1\u989D",type:"inner",extra:t.values.refund.refundMoney,children:[(0,e.jsx)(o.Z.Grid,{hoverable:!1,style:Ce,children:"\u5546\u54C1\u4FE1\u606F"}),(0,e.jsx)("br",{}),t.values.goodsList==null?"":t.values.goodsList.map(function(m,q){return(0,e.jsxs)(o.Z.Grid,{hoverable:!1,style:{width:"100%",textAlign:"center"},children:[(0,e.jsx)(P.Z,{value:m.goodsName,style:{width:"33%",textAlign:"center"},disabled:!1}),(0,e.jsx)(P.Z,{value:"".concat(m.goodsNum,"\u4EFD"),style:{width:"33%",textAlign:"center"}}),(0,e.jsx)(P.Z,{value:"\xA5 ".concat(m.goodsRealPrice),style:{width:"33%",textAlign:"center"}})]})})]}):(0,e.jsxs)(o.Z,{title:"\u5546\u54C1\u603B\u4EF7",type:"inner",extra:t.values.refund.orderOriginalMoney,children:[(0,e.jsx)(o.Z.Grid,{hoverable:!1,style:Ce,children:"\u5546\u54C1\u4FE1\u606F"}),(0,e.jsx)("br",{}),t.values.goodsList==null?"":t.values.goodsList.map(function(m,q){return(0,e.jsxs)(o.Z.Grid,{hoverable:!1,style:{width:"100%",textAlign:"center"},children:[(0,e.jsx)(P.Z,{value:m.goodsName,style:{width:"33%",textAlign:"center"},disabled:!1}),(0,e.jsx)(P.Z,{value:"".concat(m.goodsNum,"\u4EFD"),style:{width:"33%",textAlign:"center"}}),(0,e.jsx)(P.Z,{value:"\xA5 ".concat(m.goodsRealPrice),style:{width:"33%",textAlign:"center"}})]})})]}),t.values.refund.refundOrderId==""&&t.values.refund.discountMoney!=0?(0,e.jsxs)(o.Z,{style:{height:100},type:"inner",title:"\u4F18\u60E0\u652F\u51FA",extra:t.values.refund.discountMoney,children:[(0,e.jsx)(o.Z.Grid,{hoverable:!1,style:F,children:t.values.refund.couponTypeValue==""||t.values.refund.couponTypeValue==null?"\u4F18\u60E0\u652F\u51FA":t.values.refund.couponTypeValue}),(0,e.jsx)(o.Z.Grid,{hoverable:!1,style:{width:"66%",textAlign:"right",height:"20px"},children:"\xA5 ".concat(t.values.refund.discountMoney)})]}):null,t.values.refund.refundOrderId==""&&t.values.refund.businessPrice!=0?(0,e.jsxs)(o.Z,{style:{height:100},type:"inner",title:t.values.refund.refundOrderId==""?"\u5E73\u53F0\u8D39\u652F\u51FA":"\u5E73\u53F0\u9000\u6B3E",extra:t.values.refund.businessPrice,children:[(0,e.jsx)(o.Z.Grid,{hoverable:!1,style:F,children:t.values.refund.refundOrderId==""?"\u5E73\u53F0\u6280\u672F\u670D\u52A1\u8D39":"\u9000\u6B3E\u91D1\u989D"}),(0,e.jsxs)(o.Z.Grid,{hoverable:!1,style:{width:"66%",textAlign:"right",height:"20px"},children:[t.values.refund.businessPrice,"\xA5"]})]}):null,(0,e.jsxs)(o.Z,{type:"inner",title:"\u8BA2\u5355\u4FE1\u606F",children:[(0,e.jsx)(o.Z.Grid,{hoverable:!1,style:F,children:"\u8BA2\u5355\u7F16\u53F7"}),(0,e.jsx)(o.Z.Grid,{hoverable:!1,style:{width:"66%",textAlign:"left",height:"10px"},children:t.values.refund.orderId}),(0,e.jsx)(o.Z.Grid,{hoverable:!1,style:F,children:"\u8BA2\u5355\u53F7"}),(0,e.jsx)(o.Z.Grid,{hoverable:!1,style:{width:"66%",textAlign:"left",height:"10px"},children:t.values.refund.orderNumber}),(0,e.jsx)(o.Z.Grid,{hoverable:!1,style:F,children:"\u4E0B\u5355\u65F6\u95F4"}),(0,e.jsxs)(o.Z.Grid,{hoverable:!1,style:{width:"66%",textAlign:"left",height:"10px"},children:[" ",t.values.refund.createdAt]}),(0,e.jsx)(o.Z.Grid,{hoverable:!1,style:F,children:"\u8BA2\u5355\u5B8C\u6210\u65F6\u95F4"}),(0,e.jsxs)(o.Z.Grid,{hoverable:!1,style:{width:"66%",textAlign:"left",height:"10px"},children:[" ",t.values.refund.completeTakeTime]})]}),t.values.refund.refundOrderId!=""?(0,e.jsxs)(o.Z,{type:"inner",title:"\u9000\u6B3E\u8BA2\u5355\u4FE1\u606F",children:[(0,e.jsx)(o.Z.Grid,{hoverable:!1,style:F,children:"\u8BA2\u5355\u7F16\u53F7"}),(0,e.jsxs)(o.Z.Grid,{hoverable:!1,style:{width:"66%",textAlign:"left",height:"10px"},children:[" ",t.values.refund.refundOrderId]}),(0,e.jsx)(o.Z.Grid,{hoverable:!1,style:F,children:"\u8BA2\u5355\u53F7"}),(0,e.jsxs)(o.Z.Grid,{hoverable:!1,style:{width:"66%",textAlign:"left",height:"10px"},children:[" ",t.values.refund.refundOrderNumber]}),(0,e.jsx)(o.Z.Grid,{hoverable:!1,style:F,children:"\u4E0B\u5355\u65F6\u95F4"}),(0,e.jsxs)(o.Z.Grid,{hoverable:!1,style:{width:"66%",textAlign:"left",height:"10px"},children:[" ",t.values.refund.refundCreatedAt]}),(0,e.jsx)(o.Z.Grid,{hoverable:!1,style:F,children:"\u8BA2\u5355\u5B8C\u6210\u65F6\u95F4"}),(0,e.jsxs)(o.Z.Grid,{hoverable:!1,style:{width:"66%",textAlign:"left",height:"10px"},children:[" ",t.values.refund.refundTime]})]}):null]})})},Qe=Ke,Ue=a(30381),N=a.n(Ue),Xe=function(t){var E="YYYY-MM-DD",M=(0,s.useRef)(),m=Ee.Z.Text,q=P.Z.TextArea,_=Je.Z.RangePicker,oe=(0,s.useState)([]),Y=(0,c.Z)(oe,2),ce=Y[0],ee=Y[1],B=(0,s.useState)([]),b=(0,c.Z)(B,2),fe=b[0],G=b[1],W=(0,s.useState)(0),z=(0,c.Z)(W,2),he=z[0],te=z[1],xe=(0,s.useState)(0),k=(0,c.Z)(xe,2),ve=k[0],ne=k[1],Me=(0,s.useState)(0),ae=(0,c.Z)(Me,2),ye=ae[0],re=ae[1],Be=(0,s.useState)(0),ie=(0,c.Z)(Be,2),Se=ie[0],ge=ie[1],$=(0,s.useState)(0),ue=(0,c.Z)($,2),me=ue[0],le=ue[1],H=(0,s.useState)(0),J=(0,c.Z)(H,2),Ie=J[0],se=J[1],Ze=(0,s.useState)(0),I=(0,c.Z)(Ze,2),v=I[0],u=I[1],S=(0,s.useState)([]),f=(0,c.Z)(S,2),r=f[0],n=f[1],y=(0,s.useState)([]),j=(0,c.Z)(y,2),A=j[0],w=j[1],at=(0,s.useState)(""),pe=(0,c.Z)(at,2),je=pe[0],be=pe[1],rt=(0,s.useState)(""),Le=(0,c.Z)(rt,2),Ae=Le[0],Pe=Le[1],it=(0,s.useState)(""),Re=(0,c.Z)(it,2),Ge=Re[0],ut=Re[1],lt=(0,s.useState)(),we=(0,c.Z)(lt,2),Oe=we[0],Ye=we[1],st=(0,s.useState)(),Ve=(0,c.Z)(st,2),dt=Ve[0],Ne=Ve[1],ot=(0,s.useState)([]),We=(0,c.Z)(ot,2),ct=We[0],ft=We[1];(0,s.useEffect)(function(){w([t.values.storeId]),n([t.values.storeTypeId]);function x(){Z.srdTypeList().then(function(i){var l=i.data;l.forEach(function(d){d.value=d.id,d.label=d.name}),ee(l)}),t.values.storeTypeId!=""&&t.values.storeTypeId!=null?Z.StoreList([t.values.storeTypeId]).then(function(i){var l=i.data;l.forEach(function(d){d.value=d.id,d.label=d.name}),G(l)}):Z.srdList().then(function(i){var l=i.data;l.forEach(function(d){d.value=d.id,d.label=d.name}),G(l)})}x()},[]);var ht=function(){var x=(0,de.Z)((0,O.Z)().mark(function i(l){return(0,O.Z)().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return g.next=2,Z.sumFinance(l).then(function(h){h.data&&(te(h.data.orderOriginalMoney),ne(h.data.discountMoney),re(h.data.orderRealMoney),le(h.data.refundMoney),se(h.data.settlementMoney),ut(h.data.splittingDate),u(h.data.splittingMoney))});case 2:case"end":return g.stop()}},i)}));return function(l){return x.apply(this,arguments)}}(),xt=[{title:"\u4E3B\u952E",dataIndex:"orderId",hideInTable:!0,hideInSearch:!0},{title:"\u8BA2\u5355\u65F6\u95F4",dataIndex:"createdAt",valueType:"date",hideInSearch:!0},{title:"\u8BA2\u5355\u7F16\u53F7",dataIndex:"orderNumber",hideInSearch:!0},{title:"\u8BA2\u5355\u7C7B\u578B",dataIndex:"orderType",hideInSearch:!0,valueEnum:{0:{text:"\u6B63\u5E38\u8BA2\u5355",status:"Processing"},1:{text:"\u7ACB\u5373\u5403\u9762",status:"Error"},2:{text:"\u76F2\u76D2",status:"Error"},3:{text:"\u5176\u4ED6",status:"Error"},"-1":{text:"\u9000\u6B3E",status:"Error"}}},{title:"\u6D41\u6C34\u91D1\u989D",dataIndex:"orderOriginalMoney",key:"orderOriginalMoney",renderText:function(i){return"".concat(i,"\xA5")},hideInSearch:!0},{title:"\u4F18\u60E0\u91D1\u989D",dataIndex:"discountMoney",key:"discountMoney",renderText:function(i){return"".concat(i,"\xA5")},hideInSearch:!0},{title:"\u987E\u5BA2\u5B9E\u4ED8",dataIndex:"orderRealMoney",key:"orderRealMoney",renderText:function(i){return"".concat(i,"\xA5")},hideInSearch:!0},{title:"\u5E73\u53F0\u8D39\u7528",dataIndex:"businessPrice",key:"businessPrice",renderText:function(i){return"".concat(i,"\xA5")},hideInSearch:!0},{title:"\u9000\u6B3E\u91D1\u989D",dataIndex:"refundMoney",key:"refundMoney",renderText:function(i){return"".concat(i,"\xA5")},hideInSearch:!0},{title:"\u7ED3\u7B97\u91D1\u989D",dataIndex:"settlementMoney",key:"settlementMoney",renderText:function(i){return"".concat(i,"\xA5")},hideInSearch:!0},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(i,l){var d=[(0,e.jsx)("a",{type:"primary",onClick:function(){Ne(!0),Z.setSettlementDetail(l,l.orderId,l.orderType).then(function(h){ft(h.data),Ye(l)})},children:"\u8BE6\u60C5"},"primary")];return d}}];return(0,e.jsxs)(De.Z,{width:1200,bodyStyle:{padding:"32px 40px 48px"},destroyOnClose:!0,title:"\u8D26\u5355\u8BE6\u60C5",visible:!0,footer:!1,onCancel:function(){return t.onCancel()},maskClosable:!1,children:[(0,e.jsxs)(Fe.Z,{children:[(0,e.jsxs)(s.Suspense,{children:[(0,e.jsx)(U.Z,{children:(0,e.jsxs)(X.Z,{children:[(0,e.jsxs)(V.Z,{size:"middle",children:["\u5E97\u94FA\u5206\u7C7B:",(0,e.jsx)(Q.Z,{mode:"multiple",showArrow:!0,placeholder:"\u8BF7\u9009\u62E9\u5E97\u94FA\u5206\u7C7B",label:"\u5E97\u94FA\u5206\u7C7B",defaultValue:t.values.storeTypeId!=null&&t.values.storeTypeId!=""?t.values.storeTypeId:[],name:"storeTypeId",style:{width:285},onChange:function(i){n(i),i.length>0?Z.StoreList(i).then(function(l){var d=l.data;if(d.forEach(function(h){h.value=h.id,h.label=h.name}),G(d),d.length==0)w([]);else if(d.length){var g=[];d.forEach(function(h){A.length>0&&A.forEach(function(p){p==h.id&&g.push(h.id)})}),g.length>0?w(g):w([])}A!=""&&M.current.reload()}):(w([]),n([]),Z.srdList().then(function(l){var d=l.data;d.forEach(function(g){g.value=g.id,g.label=g.name}),G(d),A!=""&&M.current.reload()}))},children:ce.map(function(x){return(0,e.jsx)(Option,{value:x.id,children:x.name})})}),"\xA0 \xA0"]}),(0,e.jsxs)(V.Z,{size:"middle",children:["\u5E97\u94FA\u540D\u79F0:",(0,e.jsx)(Q.Z,{mode:"multiple",showArrow:!0,placeholder:"\u8BF7\u9009\u62E9\u5E97\u94FA\u540D\u79F0",label:"\u5E97\u94FA\u540D\u79F0",value:A,name:"storeId",style:{width:285},onChange:function(i){w(i),M.current.reload()},onClear:function(i){w(i)},children:fe.map(function(x){return(0,e.jsx)(Option,{value:x.id,children:x.name})})})]})]})}),(0,e.jsx)("br",{}),(0,e.jsx)(U.Z,{children:(0,e.jsxs)(X.Z,{children:["\u8BA2\u5355\u65E5\u671F:",(0,e.jsx)(V.Z,{size:"small",children:(0,e.jsx)(_,{defaultValue:[N()(t.values.createdAt,E),N()(t.values.endTime,E)],size:32,style:{left:15},onChange:function(i){i!=null?(be(i[0].format("YYYY-MM-DD")),Pe(i[1].format("YYYY-MM-DD"))):(be(N()(new Date,E)),Pe(N()(new Date,E))),M.current.reload()}})}),"\xA0\xA0\xA0\xA0\xA0\xA0\xA0\xA0\xA0\xA0",(0,e.jsxs)(V.Z,{size:"middle",children:["\u9884\u8BA1\u5206\u8D26:",(0,e.jsx)(P.Z,{title:"",disabled:!1,value:"\u9884\u8BA1".concat(Ge!=null?Ge:N()(new Date,E),"\u5206\u8D26"),style:{float:"right",width:285}})]})]})}),(0,e.jsx)(U.Z,{children:(0,e.jsx)(X.Z,{children:(0,e.jsx)(o.Z,{title:"",bordered:!1,style:{width:"100%"},children:(0,e.jsxs)("div",{children:[(0,e.jsx)("div",{style:{float:"center"},children:(0,e.jsx)(L.Z,{style:{float:"center"},title:"",value:v!=0?v.toFixed(2):v,prefix:"\xA5"})}),(0,e.jsxs)(V.Z,{size:"large",children:[(0,e.jsx)(L.Z,{title:"\u6D41\u6C34\u91D1\u989D",value:he,style:{float:"left"},xl:18}),(0,e.jsx)(L.Z,{title:"\u4F18\u60E0\u91D1\u989D",value:ve,style:{float:"left"}}),(0,e.jsx)(L.Z,{title:"\u987E\u5BA2\u5B9E\u4ED8",value:ye,style:{float:"left"}}),(0,e.jsx)(L.Z,{title:"\u5E73\u53F0\u8D39\u7528",value:Se,style:{float:"left"}}),(0,e.jsx)(L.Z,{title:"\u9000\u6B3E\u91D1\u989D",value:me,style:{float:"left"}}),(0,e.jsx)(L.Z,{title:"\u7ED3\u7B97\u91D1\u989D",value:Ie,style:{float:"left"}})]})]})})})})]}),(0,e.jsx)(s.Suspense,{children:(0,e.jsx)(U.Z,{children:(0,e.jsx)(X.Z,{span:24,children:(0,e.jsx)(D.ZP,{actionRef:M,rowKey:"id",search:{optionRender:!1,collapsed:!1},pagination:{showQuickJumper:!0},toolBarRender:!1,request:function(){var x=(0,de.Z)((0,O.Z)().mark(function i(l,d,g){var h,p;return(0,O.Z)().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:if(h=[],p=0,r!=""&&(l.storeTypeId=r),A!=""&&(l.storeId=A),je==null||je==""?l.createdAt=t.values.createdAt:l.createdAt=je,Ae==null||Ae==""?l.endTime=t.values.endTime:l.endTime=Ae,ht(l),A==""){T.next=10;break}return T.next=10,Z.finaceDeatal(l).then(function(ze){h=ze.data.data,p=ze.data.total});case 10:return T.abrupt("return",{data:h,success:!0,total:p});case 11:case"end":return T.stop()}},i)}));return function(i,l,d){return x.apply(this,arguments)}}(),summary:function(i){var l=0,d=0,g=0,h=0,p=0,K=0;return i.forEach(function(T){l+=T.orderOriginalMoney,d+=T.discountMoney,g+=T.orderRealMoney,p+=T.refundMoney,K+=T.settlementMoney}),(0,e.jsxs)(D.ZP.Summary.Row,{children:[(0,e.jsx)(D.ZP.Summary.Cell,{children:"\u603B\u8BA1"}),(0,e.jsx)(D.ZP.Summary.Cell,{colSpan:2,children:(0,e.jsx)(m,{type:"danger"})}),(0,e.jsx)(D.ZP.Summary.Cell,{children:(0,e.jsxs)(m,{children:[l!=0?l.toFixed(2):l,"\xA5"]})}),(0,e.jsx)(D.ZP.Summary.Cell,{children:(0,e.jsxs)(m,{children:[d!=0?d.toFixed(2):d,"\xA5"]})}),(0,e.jsx)(D.ZP.Summary.Cell,{children:(0,e.jsxs)(m,{children:[g!=0?g.toFixed(2):g,"\xA5"]})}),(0,e.jsx)(D.ZP.Summary.Cell,{children:(0,e.jsxs)(m,{children:[h!=0?h.toFixed(2):h,"\xA5"]})}),(0,e.jsx)(D.ZP.Summary.Cell,{children:(0,e.jsxs)(m,{children:[p!=0?p.toFixed(2):p,"\xA5"]})}),(0,e.jsx)(D.ZP.Summary.Cell,{colSpan:2,children:(0,e.jsxs)(m,{children:[K!=0?K.toFixed(2):K,"\xA5"]})})]})},columns:xt})})})})]}),Oe&&Object.keys(Oe).length?(0,e.jsx)(Qe,{onCancel:function(){Ne(!0),Ye({})},setsecondDetailVisible:dt,values:ct}):null]})},qe=Xe,_e=a(53667),et=a.n(_e),Ft=a(96486),tt=function(){var t=(0,s.useState)([]),E=(0,c.Z)(t,2),M=E[0],m=E[1],q=(0,s.useState)([]),_=(0,c.Z)(q,2),oe=_[0],Y=_[1],ce=(0,s.useState)([]),ee=(0,c.Z)(ce,2),B=ee[0],b=ee[1],fe=(0,s.useState)(),G=(0,c.Z)(fe,2),W=G[0],z=G[1],he=(0,s.useState)(),te=(0,c.Z)(he,2),xe=te[0],k=te[1],ve=(0,s.useState)(""),ne=(0,c.Z)(ve,2),Me=ne[0],ae=ne[1],ye=(0,s.useState)(""),re=(0,c.Z)(ye,2),Be=re[0],ie=re[1],Se=(0,s.useState)([]),ge=(0,c.Z)(Se,2),$=ge[0],ue=ge[1],me=(0,s.useState)([]),le=(0,c.Z)(me,2),H=le[0],J=le[1],Ie=(0,s.useRef)();(0,s.useEffect)(function(){function I(){Z.srdTypeList().then(function(u){var S=u.data;S.forEach(function(f){f.value=f.id,f.label=f.name}),m(S)})}function v(){Z.srdList().then(function(u){var S=u.data;S.forEach(function(f){f.value=f.id,f.label=f.name}),Y(S)})}I(),v()},[]);function se(I){var v=[{title:"\u5E97\u94FA\u5206\u7C7B",dataIndex:"storeTypeName",hideInSearch:!0},{title:"\u5E97\u94FA\u540D\u79F0",dataIndex:"storeName",hideInSearch:!0},{title:"\u8BA2\u5355\u65F6\u95F4",dataIndex:"createdAt",valueType:"date"},{title:"\u8BA2\u5355\u7F16\u53F7",dataIndex:"orderNumber",hideInSearch:!0},{title:"\u8BA2\u5355\u7C7B\u578B",dataIndex:"orderType",hideInSearch:!0},{title:"\u6D41\u6C34\u91D1\u989D",dataIndex:"orderOriginalMoney",renderText:function(n){return"".concat(n,"\xA5")},hideInSearch:!0},{title:"\u4F18\u60E0\u91D1\u989D",dataIndex:"discountMoney",renderText:function(n){return"".concat(n,"\xA5")},hideInSearch:!0},{title:"\u987E\u5BA2\u5B9E\u4ED8",dataIndex:"orderRealMoney",renderText:function(n){return"".concat(n,"\xA5")},hideInSearch:!0},{title:"\u5E73\u53F0\u8D39\u7528",dataIndex:"businessPrice",renderText:function(n){return"".concat(n,"\xA5")},hideInSearch:!0},{title:"\u9000\u6B3E\u91D1\u989D",dataIndex:"refundMoney",renderText:function(n){return"".concat(n,"\xA5")},hideInSearch:!0},{title:"\u7ED3\u7B97\u91D1\u989D",dataIndex:"settlementMoney",renderText:function(n){return"".concat(n,"\xA5")},hideInSearch:!0},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(n,y){var j=[(0,e.jsx)("a",{type:"primary",onClick:function(){},children:"\u8BE6\u60C5"},"primary")];return j}}],u={},S=[];v.map(function(r,n){n<11&&S.push(r)}),u.fileName="\u8D22\u52A1\u8D26\u5355\u8BE6\u60C5",u.datas=[{sheetData:I.map(function(r){var n={};return v.forEach(function(y,j){j<11&&(j==4?r[y.dataIndex]==0?n[y.dataIndex]="\u6B63\u5E38\u8BA2\u5355":r[y.dataIndex]=="1"?n[y.dataIndex]="\u7ACB\u5373\u5403\u9762":r[y.dataIndex]=="2"?n[y.dataIndex]="\u76F2\u76D2":r[y.dataIndex]=="3"?n[y.dataIndex]="\u5176\u4ED6":r[y.dataIndex]=="-1"?n[y.dataIndex]="\u9000\u6B3E":r[y.dataIndex]=="-2"?n[y.dataIndex]="\u5408\u8BA1":n[y.dataIndex]="\u5176\u4ED6":n[y.dataIndex]=r[y.dataIndex])}),n}),sheetName:"\u8D22\u52A1\u8D26\u5355\u8BE6\u60C5",sheetFilter:S.map(function(r){return r.dataIndex}),sheetHeader:S.map(function(r){return r.title}),columnWidths:S.map(function(){return 10})}];var f=new(et())(u);f.saveExcel()}var Ze=[{title:"\u5E97\u94FA\u5206\u7C7B",dataIndex:"storeTypeId",hideInTable:!0,width:120,renderFormItem:function(){return(0,e.jsx)(Q.Z,{mode:"multiple",showArrow:!0,placeholder:"\u8BF7\u9009\u62E9\u5E97\u94FA\u5206\u7C7B",style:{width:"100%"},options:M,onChange:function(u){J(u),u.length>0?Z.StoreList(u).then(function(S){var f=S.data;if(f.forEach(function(n){n.value=n.id,n.label=n.name}),Y(f),f.length==0)b([]);else if(f.length){var r=[];f.forEach(function(n){B.length>0&&B.forEach(function(y){y==n.id&&r.push(n.id)})}),r.length>0?b(r):b([])}}):(J([]),b([]),Z.srdList().then(function(S){var f=S.data;f.forEach(function(r){r.value=r.id,r.label=r.name}),Y(f)}))}})}},{title:"\u5E97\u94FA\u5206\u7C7B",dataIndex:"storeTypeName",hideInForm:!0,hideInSearch:!0},{title:"\u5E97\u94FA\u540D\u79F0",dataIndex:"storeId",hideInTable:!0,width:120,renderFormItem:function(){return(0,e.jsx)(Q.Z,{mode:"multiple",showArrow:!0,placeholder:"\u8BF7\u9009\u62E9\u5E97\u94FA",style:{width:"100%"},options:oe,value:B,onChange:function(u){b(u)},onClear:function(u){b(u)}})}},{title:"\u5E97\u94FA\u540D\u79F0",dataIndex:"storeName",hideInForm:!0,hideInSearch:!0},{title:"\u8BA2\u5355\u65F6\u95F4",dataIndex:"createdAt",valueType:"date",hideInForm:!0,hideInSearch:!0},{title:"\u8BA2\u5355\u65F6\u95F4",dataIndex:"createdAt",hideInTable:!0,valueType:"dateRange",search:{transform:function(v){return{createdAt:v[0],endTime:v[1]}}}},{title:"\u7ED3\u7B97\u91D1\u989D",dataIndex:"settlementMoney",renderText:function(v){return"".concat(v,"\xA5")},hideInSearch:!0},{title:"\u5206\u8D26\u91D1\u989D",dataIndex:"businessPrice",hideInSearch:!0,renderText:function(v){return"".concat(v,"\xA5")}},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(v,u){var S=[(0,e.jsx)("a",{type:"primary",onClick:function(){k(!0),z(u)},children:"\u67E5\u770B"},"primary"),(0,e.jsx)("a",{type:"primary",onClick:function(){u.storeTypeId=[u.storeTypeId]==""?null:[u.storeTypeId],u.storeId=[u.storeId],Z.financeSummaryList(u).then(function(r){r.data&&se(r.data)})},children:"\u4E0B\u8F7D"},"primary")];return S}}];return(0,e.jsxs)(He.ZP,{children:[(0,e.jsx)(D.ZP,{headerTitle:"\u8D22\u52A1\u8D26\u5355\u67E5\u8BE2",actionRef:Ie,search:{labelWidth:120},toolBarRender:function(){return[(0,e.jsxs)(ke.Z,{type:"primary",onClick:function(){$!=null&&$!=""&&Z.financeSummaryList($).then(function(u){se(u.data)})},children:[(0,e.jsx)($e.Z,{})," \u4E0B\u8F7D"]},"create")]},columns:Ze,request:function(){var I=(0,de.Z)((0,O.Z)().mark(function v(u,S,f){var r,n;return(0,O.Z)().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:if(r=[],n=0,H!=null&&H.length>0&&(u.storeTypeId=H),u.createdAt!=null&&ae(u.createdAt),u.endTime!=null&&ie(u.endTime),B!=null&&B.length>0&&(u.storeId=B),ue(u),!(B!=null&&B.length>0)){j.next=10;break}return j.next=10,Z.finaceList(u).then(function(A){r=A.data.data,n=A.data.total});case 10:return j.abrupt("return",{data:r,success:!0,total:n});case 11:case"end":return j.stop()}},v)}));return function(v,u,S){return I.apply(this,arguments)}}()}),W&&Object.keys(W).length?(0,e.jsx)(qe,{onCancel:function(){k(!0),z({})},setfinanceDetailVisible:xe,values:W}):null]})},nt=tt}}]); diff --git a/dist/p__financereport__finance.efe94f4e.async.js b/dist/p__financereport__finance.efe94f4e.async.js deleted file mode 100644 index 8ae295c..0000000 --- a/dist/p__financereport__finance.efe94f4e.async.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[8741,1322,9934,4407,6498,6090,274,6314],{31651:function(vt,Te,a){"use strict";a.r(Te),a.d(Te,{default:function(){return nt}});var O=a(39428),de=a(3182),yt=a(57663),ke=a(71577),St=a(43358),Q=a(34041),c=a(2824),$e=a(90631),s=a(67294),He=a(78009),D=a(16894),gt=a(71194),De=a(50146),mt=a(58024),o=a(91894),It=a(95300),L=a(7277),Zt=a(13062),U=a(71230),jt=a(89032),X=a(15746),At=a(49111),V=a(19650),Tt=a(14965),Je=a(91774),Dt=a(47673),P=a(4107),Et=a(402),Ee=a(56256),Fe=a(21349),R=a(48971),Z={finaceList:function(t){return(0,R.WY)("/kitchen/api/finance/finance-report",{method:"Post",data:t})},finaceDeatal:function(t){return(0,R.WY)("/kitchen/api/finance/finance-detail",{method:"Post",data:t})},sumFinance:function(t){return(0,R.WY)("\u200B\u200B/kitchen/api/finance/sum-finance",{method:"Post",data:t})},srdTypeList:function(t){return(0,R.WY)("/kitchen/api/storetype/list",{method:"Post",data:t})},srdList:function(t){return(0,R.WY)("/kitchen/api/store/list",{method:"Post",data:t})},financeSummaryList:function(t){return(0,R.WY)("/kitchen/api/finance/finance-analysis",{method:"Post",data:t})},setSettlementDetail:function(t,E,M){return(0,R.WY)("/kitchen/api/finance/settlement-detail/".concat(E,"/").concat(M),{method:"Post",data:t})},StoreList:function(t){return(0,R.WY)("/kitchen/api/select/storelist",{method:"Post",data:t})}},e=a(85893),F={width:"33%",textAlign:"center",height:"20px"},Ce={width:"100%",textAlign:"center",height:"10px",marginTop:"1"},Ke=function(t){var E=(0,s.useRef)(),M=Ee.Z.Text;return(0,e.jsx)(De.Z,{width:800,height:700,bodyStyle:{padding:"32px 40px 48px"},destroyOnClose:!0,title:"\u7ED3\u7B97\u8BE6\u60C5",visible:!0,footer:!1,onCancel:function(){return t.onCancel()},maskClosable:!1,children:(0,e.jsxs)(Fe.Z,{children:[(0,e.jsx)(o.Z,{title:"\u7ED3\u7B97\u8BE6\u60C5",type:"inner",style:{height:120},children:(0,e.jsx)("div",{style:{float:"center",height:100},children:(0,e.jsx)(L.Z,{style:{float:"center"},title:"\u7ED3\u7B97\u91D1\u989D",value:t.values.refund.settlementMoney,prefix:"\xA5"})})}),t.values.refund.refundOrderId!=""?(0,e.jsxs)(o.Z,{title:"\u9000\u6B3E\u91D1\u989D",type:"inner",extra:t.values.refund.refundMoney,children:[(0,e.jsx)(o.Z.Grid,{hoverable:!1,style:Ce,children:"\u5546\u54C1\u4FE1\u606F"}),(0,e.jsx)("br",{}),t.values.goodsList==null?"":t.values.goodsList.map(function(m,q){return(0,e.jsxs)(o.Z.Grid,{hoverable:!1,style:{width:"100%",textAlign:"center"},children:[(0,e.jsx)(P.Z,{value:m.goodsName,style:{width:"33%",textAlign:"center"},disabled:!1}),(0,e.jsx)(P.Z,{value:"".concat(m.goodsNum,"\u4EFD"),style:{width:"33%",textAlign:"center"}}),(0,e.jsx)(P.Z,{value:"\xA5 ".concat(m.goodsRealPrice),style:{width:"33%",textAlign:"center"}})]})})]}):(0,e.jsxs)(o.Z,{title:"\u5546\u54C1\u603B\u4EF7",type:"inner",extra:t.values.refund.orderOriginalMoney,children:[(0,e.jsx)(o.Z.Grid,{hoverable:!1,style:Ce,children:"\u5546\u54C1\u4FE1\u606F"}),(0,e.jsx)("br",{}),t.values.goodsList==null?"":t.values.goodsList.map(function(m,q){return(0,e.jsxs)(o.Z.Grid,{hoverable:!1,style:{width:"100%",textAlign:"center"},children:[(0,e.jsx)(P.Z,{value:m.goodsName,style:{width:"33%",textAlign:"center"},disabled:!1}),(0,e.jsx)(P.Z,{value:"".concat(m.goodsNum,"\u4EFD"),style:{width:"33%",textAlign:"center"}}),(0,e.jsx)(P.Z,{value:"\xA5 ".concat(m.goodsRealPrice),style:{width:"33%",textAlign:"center"}})]})})]}),t.values.refund.refundOrderId==""&&t.values.refund.discountMoney!=0?(0,e.jsxs)(o.Z,{style:{height:100},type:"inner",title:"\u4F18\u60E0\u652F\u51FA",extra:t.values.refund.discountMoney,children:[(0,e.jsx)(o.Z.Grid,{hoverable:!1,style:F,children:t.values.refund.couponTypeValue==""||t.values.refund.couponTypeValue==null?"\u4F18\u60E0\u652F\u51FA":t.values.refund.couponTypeValue}),(0,e.jsx)(o.Z.Grid,{hoverable:!1,style:{width:"66%",textAlign:"right",height:"20px"},children:"\xA5 ".concat(t.values.refund.discountMoney)})]}):null,t.values.refund.refundOrderId==""&&t.values.refund.businessPrice!=0?(0,e.jsxs)(o.Z,{style:{height:100},type:"inner",title:t.values.refund.refundOrderId==""?"\u5E73\u53F0\u8D39\u652F\u51FA":"\u5E73\u53F0\u9000\u6B3E",extra:t.values.refund.businessPrice,children:[(0,e.jsx)(o.Z.Grid,{hoverable:!1,style:F,children:t.values.refund.refundOrderId==""?"\u5E73\u53F0\u6280\u672F\u670D\u52A1\u8D39":"\u9000\u6B3E\u91D1\u989D"}),(0,e.jsxs)(o.Z.Grid,{hoverable:!1,style:{width:"66%",textAlign:"right",height:"20px"},children:[t.values.refund.businessPrice,"\xA5"]})]}):null,(0,e.jsxs)(o.Z,{type:"inner",title:"\u8BA2\u5355\u4FE1\u606F",children:[(0,e.jsx)(o.Z.Grid,{hoverable:!1,style:F,children:"\u8BA2\u5355\u7F16\u53F7"}),(0,e.jsx)(o.Z.Grid,{hoverable:!1,style:{width:"66%",textAlign:"left",height:"10px"},children:t.values.refund.orderId}),(0,e.jsx)(o.Z.Grid,{hoverable:!1,style:F,children:"\u8BA2\u5355\u53F7"}),(0,e.jsx)(o.Z.Grid,{hoverable:!1,style:{width:"66%",textAlign:"left",height:"10px"},children:t.values.refund.orderNumber}),(0,e.jsx)(o.Z.Grid,{hoverable:!1,style:F,children:"\u4E0B\u5355\u65F6\u95F4"}),(0,e.jsxs)(o.Z.Grid,{hoverable:!1,style:{width:"66%",textAlign:"left",height:"10px"},children:[" ",t.values.refund.createdAt]}),(0,e.jsx)(o.Z.Grid,{hoverable:!1,style:F,children:"\u8BA2\u5355\u5B8C\u6210\u65F6\u95F4"}),(0,e.jsxs)(o.Z.Grid,{hoverable:!1,style:{width:"66%",textAlign:"left",height:"10px"},children:[" ",t.values.refund.completeTakeTime]})]}),t.values.refund.refundOrderId!=""?(0,e.jsxs)(o.Z,{type:"inner",title:"\u9000\u6B3E\u8BA2\u5355\u4FE1\u606F",children:[(0,e.jsx)(o.Z.Grid,{hoverable:!1,style:F,children:"\u8BA2\u5355\u7F16\u53F7"}),(0,e.jsxs)(o.Z.Grid,{hoverable:!1,style:{width:"66%",textAlign:"left",height:"10px"},children:[" ",t.values.refund.refundOrderId]}),(0,e.jsx)(o.Z.Grid,{hoverable:!1,style:F,children:"\u8BA2\u5355\u53F7"}),(0,e.jsxs)(o.Z.Grid,{hoverable:!1,style:{width:"66%",textAlign:"left",height:"10px"},children:[" ",t.values.refund.refundOrderNumber]}),(0,e.jsx)(o.Z.Grid,{hoverable:!1,style:F,children:"\u4E0B\u5355\u65F6\u95F4"}),(0,e.jsxs)(o.Z.Grid,{hoverable:!1,style:{width:"66%",textAlign:"left",height:"10px"},children:[" ",t.values.refund.refundCreatedAt]}),(0,e.jsx)(o.Z.Grid,{hoverable:!1,style:F,children:"\u8BA2\u5355\u5B8C\u6210\u65F6\u95F4"}),(0,e.jsxs)(o.Z.Grid,{hoverable:!1,style:{width:"66%",textAlign:"left",height:"10px"},children:[" ",t.values.refund.refundTime]})]}):null]})})},Qe=Ke,Ue=a(30381),N=a.n(Ue),Xe=function(t){var E="YYYY-MM-DD",M=(0,s.useRef)(),m=Ee.Z.Text,q=P.Z.TextArea,_=Je.Z.RangePicker,oe=(0,s.useState)([]),Y=(0,c.Z)(oe,2),ce=Y[0],ee=Y[1],B=(0,s.useState)([]),b=(0,c.Z)(B,2),fe=b[0],G=b[1],W=(0,s.useState)(0),z=(0,c.Z)(W,2),he=z[0],te=z[1],xe=(0,s.useState)(0),k=(0,c.Z)(xe,2),ve=k[0],ne=k[1],Me=(0,s.useState)(0),ae=(0,c.Z)(Me,2),ye=ae[0],re=ae[1],Be=(0,s.useState)(0),ie=(0,c.Z)(Be,2),Se=ie[0],ge=ie[1],$=(0,s.useState)(0),ue=(0,c.Z)($,2),me=ue[0],le=ue[1],H=(0,s.useState)(0),J=(0,c.Z)(H,2),Ie=J[0],se=J[1],Ze=(0,s.useState)(0),I=(0,c.Z)(Ze,2),v=I[0],u=I[1],S=(0,s.useState)([]),f=(0,c.Z)(S,2),r=f[0],n=f[1],y=(0,s.useState)([]),j=(0,c.Z)(y,2),A=j[0],w=j[1],at=(0,s.useState)(""),pe=(0,c.Z)(at,2),je=pe[0],be=pe[1],rt=(0,s.useState)(""),Le=(0,c.Z)(rt,2),Ae=Le[0],Pe=Le[1],it=(0,s.useState)(""),Re=(0,c.Z)(it,2),Ge=Re[0],ut=Re[1],lt=(0,s.useState)(),we=(0,c.Z)(lt,2),Oe=we[0],Ye=we[1],st=(0,s.useState)(),Ve=(0,c.Z)(st,2),dt=Ve[0],Ne=Ve[1],ot=(0,s.useState)([]),We=(0,c.Z)(ot,2),ct=We[0],ft=We[1];(0,s.useEffect)(function(){w([t.values.storeId]),n([t.values.storeTypeId]);function x(){Z.srdTypeList().then(function(i){var l=i.data;l.forEach(function(d){d.value=d.id,d.label=d.name}),ee(l)}),t.values.storeTypeId!=""&&t.values.storeTypeId!=null?Z.StoreList([t.values.storeTypeId]).then(function(i){var l=i.data;l.forEach(function(d){d.value=d.id,d.label=d.name}),G(l)}):Z.srdList().then(function(i){var l=i.data;l.forEach(function(d){d.value=d.id,d.label=d.name}),G(l)})}x()},[]);var ht=function(){var x=(0,de.Z)((0,O.Z)().mark(function i(l){return(0,O.Z)().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return g.next=2,Z.sumFinance(l).then(function(h){h.data&&(te(h.data.orderOriginalMoney),ne(h.data.discountMoney),re(h.data.orderRealMoney),le(h.data.refundMoney),se(h.data.settlementMoney),ut(h.data.splittingDate),u(h.data.splittingMoney))});case 2:case"end":return g.stop()}},i)}));return function(l){return x.apply(this,arguments)}}(),xt=[{title:"\u4E3B\u952E",dataIndex:"orderId",hideInTable:!0,hideInSearch:!0},{title:"\u8BA2\u5355\u65F6\u95F4",dataIndex:"createdAt",valueType:"date",hideInSearch:!0},{title:"\u8BA2\u5355\u7F16\u53F7",dataIndex:"orderNumber",hideInSearch:!0},{title:"\u8BA2\u5355\u7C7B\u578B",dataIndex:"orderType",hideInSearch:!0,valueEnum:{0:{text:"\u6B63\u5E38\u8BA2\u5355",status:"Processing"},1:{text:"\u7ACB\u5373\u5403\u9762",status:"Error"},2:{text:"\u76F2\u76D2",status:"Error"},3:{text:"\u5176\u4ED6",status:"Error"},"-1":{text:"\u9000\u6B3E",status:"Error"}}},{title:"\u6D41\u6C34\u91D1\u989D",dataIndex:"orderOriginalMoney",key:"orderOriginalMoney",renderText:function(i){return"".concat(i,"\xA5")},hideInSearch:!0},{title:"\u4F18\u60E0\u91D1\u989D",dataIndex:"discountMoney",key:"discountMoney",renderText:function(i){return"".concat(i,"\xA5")},hideInSearch:!0},{title:"\u987E\u5BA2\u5B9E\u4ED8",dataIndex:"orderRealMoney",key:"orderRealMoney",renderText:function(i){return"".concat(i,"\xA5")},hideInSearch:!0},{title:"\u5E73\u53F0\u8D39\u7528",dataIndex:"businessPrice",key:"businessPrice",renderText:function(i){return"".concat(i,"\xA5")},hideInSearch:!0},{title:"\u9000\u6B3E\u91D1\u989D",dataIndex:"refundMoney",key:"refundMoney",renderText:function(i){return"".concat(i,"\xA5")},hideInSearch:!0},{title:"\u7ED3\u7B97\u91D1\u989D",dataIndex:"settlementMoney",key:"settlementMoney",renderText:function(i){return"".concat(i,"\xA5")},hideInSearch:!0},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(i,l){var d=[(0,e.jsx)("a",{type:"primary",onClick:function(){Ne(!0),Z.setSettlementDetail(l,l.orderId,l.orderType).then(function(h){ft(h.data),Ye(l)})},children:"\u8BE6\u60C5"},"primary")];return d}}];return(0,e.jsxs)(De.Z,{width:1200,bodyStyle:{padding:"32px 40px 48px"},destroyOnClose:!0,title:"\u8D26\u5355\u8BE6\u60C5",visible:!0,footer:!1,onCancel:function(){return t.onCancel()},maskClosable:!1,children:[(0,e.jsxs)(Fe.Z,{children:[(0,e.jsxs)(s.Suspense,{children:[(0,e.jsx)(U.Z,{children:(0,e.jsxs)(X.Z,{children:[(0,e.jsxs)(V.Z,{size:"middle",children:["\u5E97\u94FA\u5206\u7C7B:",(0,e.jsx)(Q.Z,{mode:"multiple",showArrow:!0,placeholder:"\u8BF7\u9009\u62E9\u5E97\u94FA\u5206\u7C7B",label:"\u5E97\u94FA\u5206\u7C7B",defaultValue:t.values.storeTypeId!=null&&t.values.storeTypeId!=""?t.values.storeTypeId:[],name:"storeTypeId",style:{width:285},onChange:function(i){n(i),i.length>0?Z.StoreList(i).then(function(l){var d=l.data;if(d.forEach(function(h){h.value=h.id,h.label=h.name}),G(d),d.length==0)w([]);else if(d.length){var g=[];d.forEach(function(h){A.length>0&&A.forEach(function(p){p==h.id&&g.push(h.id)})}),g.length>0?w(g):w([])}A!=""&&M.current.reload()}):(w([]),n([]),Z.srdList().then(function(l){var d=l.data;d.forEach(function(g){g.value=g.id,g.label=g.name}),G(d),A!=""&&M.current.reload()}))},children:ce.map(function(x){return(0,e.jsx)(Option,{value:x.id,children:x.name})})}),"\xA0 \xA0"]}),(0,e.jsxs)(V.Z,{size:"middle",children:["\u5E97\u94FA\u540D\u79F0:",(0,e.jsx)(Q.Z,{mode:"multiple",showArrow:!0,placeholder:"\u8BF7\u9009\u62E9\u5E97\u94FA\u540D\u79F0",label:"\u5E97\u94FA\u540D\u79F0",value:A,name:"storeId",style:{width:285},onChange:function(i){w(i),M.current.reload()},onClear:function(i){w(i)},children:fe.map(function(x){return(0,e.jsx)(Option,{value:x.id,children:x.name})})})]})]})}),(0,e.jsx)("br",{}),(0,e.jsx)(U.Z,{children:(0,e.jsxs)(X.Z,{children:["\u8BA2\u5355\u65E5\u671F:",(0,e.jsx)(V.Z,{size:"small",children:(0,e.jsx)(_,{defaultValue:[N()(t.values.createdAt,E),N()(t.values.endTime,E)],size:32,style:{left:15},onChange:function(i){i!=null?(be(i[0].format("YYYY-MM-DD")),Pe(i[1].format("YYYY-MM-DD"))):(be(N()(new Date,E)),Pe(N()(new Date,E))),M.current.reload()}})}),"\xA0\xA0\xA0\xA0\xA0\xA0\xA0\xA0\xA0\xA0",(0,e.jsxs)(V.Z,{size:"middle",children:["\u9884\u8BA1\u5206\u8D26:",(0,e.jsx)(P.Z,{title:"",disabled:!1,value:"\u9884\u8BA1".concat(Ge!=null?Ge:N()(new Date,E),"\u5206\u8D26"),style:{float:"right",width:285}})]})]})}),(0,e.jsx)(U.Z,{children:(0,e.jsx)(X.Z,{children:(0,e.jsx)(o.Z,{title:"",bordered:!1,style:{width:"100%"},children:(0,e.jsxs)("div",{children:[(0,e.jsx)("div",{style:{float:"center"},children:(0,e.jsx)(L.Z,{style:{float:"center"},title:"",value:v!=0?v.toFixed(2):v,prefix:"\xA5"})}),(0,e.jsxs)(V.Z,{size:"large",children:[(0,e.jsx)(L.Z,{title:"\u6D41\u6C34\u91D1\u989D",value:he,style:{float:"left"},xl:18}),(0,e.jsx)(L.Z,{title:"\u4F18\u60E0\u91D1\u989D",value:ve,style:{float:"left"}}),(0,e.jsx)(L.Z,{title:"\u987E\u5BA2\u5B9E\u4ED8",value:ye,style:{float:"left"}}),(0,e.jsx)(L.Z,{title:"\u5E73\u53F0\u8D39\u7528",value:Se,style:{float:"left"}}),(0,e.jsx)(L.Z,{title:"\u9000\u6B3E\u91D1\u989D",value:me,style:{float:"left"}}),(0,e.jsx)(L.Z,{title:"\u7ED3\u7B97\u91D1\u989D",value:Ie,style:{float:"left"}})]})]})})})})]}),(0,e.jsx)(s.Suspense,{children:(0,e.jsx)(U.Z,{children:(0,e.jsx)(X.Z,{span:24,children:(0,e.jsx)(D.ZP,{actionRef:M,rowKey:"id",search:{optionRender:!1,collapsed:!1},pagination:{showQuickJumper:!0},toolBarRender:!1,request:function(){var x=(0,de.Z)((0,O.Z)().mark(function i(l,d,g){var h,p;return(0,O.Z)().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:if(h=[],p=0,r!=""&&(l.storeTypeId=r),A!=""&&(l.storeId=A),je==null||je==""?l.createdAt=t.values.createdAt:l.createdAt=je,Ae==null||Ae==""?l.endTime=t.values.endTime:l.endTime=Ae,ht(l),A==""){T.next=10;break}return T.next=10,Z.finaceDeatal(l).then(function(ze){h=ze.data.data,p=ze.data.total});case 10:return T.abrupt("return",{data:h,success:!0,total:p});case 11:case"end":return T.stop()}},i)}));return function(i,l,d){return x.apply(this,arguments)}}(),summary:function(i){var l=0,d=0,g=0,h=0,p=0,K=0;return i.forEach(function(T){l+=T.orderOriginalMoney,d+=T.discountMoney,g+=T.orderRealMoney,p+=T.refundMoney,K+=T.settlementMoney}),(0,e.jsxs)(D.ZP.Summary.Row,{children:[(0,e.jsx)(D.ZP.Summary.Cell,{children:"\u603B\u8BA1"}),(0,e.jsx)(D.ZP.Summary.Cell,{colSpan:2,children:(0,e.jsx)(m,{type:"danger"})}),(0,e.jsx)(D.ZP.Summary.Cell,{children:(0,e.jsxs)(m,{children:[l!=0?l.toFixed(2):l,"\xA5"]})}),(0,e.jsx)(D.ZP.Summary.Cell,{children:(0,e.jsxs)(m,{children:[d!=0?d.toFixed(2):d,"\xA5"]})}),(0,e.jsx)(D.ZP.Summary.Cell,{children:(0,e.jsxs)(m,{children:[g!=0?g.toFixed(2):g,"\xA5"]})}),(0,e.jsx)(D.ZP.Summary.Cell,{children:(0,e.jsxs)(m,{children:[h!=0?h.toFixed(2):h,"\xA5"]})}),(0,e.jsx)(D.ZP.Summary.Cell,{children:(0,e.jsxs)(m,{children:[p!=0?p.toFixed(2):p,"\xA5"]})}),(0,e.jsx)(D.ZP.Summary.Cell,{colSpan:2,children:(0,e.jsxs)(m,{children:[K!=0?K.toFixed(2):K,"\xA5"]})})]})},columns:xt})})})})]}),Oe&&Object.keys(Oe).length?(0,e.jsx)(Qe,{onCancel:function(){Ne(!0),Ye({})},setsecondDetailVisible:dt,values:ct}):null]})},qe=Xe,_e=a(53667),et=a.n(_e),Ft=a(96486),tt=function(){var t=(0,s.useState)([]),E=(0,c.Z)(t,2),M=E[0],m=E[1],q=(0,s.useState)([]),_=(0,c.Z)(q,2),oe=_[0],Y=_[1],ce=(0,s.useState)([]),ee=(0,c.Z)(ce,2),B=ee[0],b=ee[1],fe=(0,s.useState)(),G=(0,c.Z)(fe,2),W=G[0],z=G[1],he=(0,s.useState)(),te=(0,c.Z)(he,2),xe=te[0],k=te[1],ve=(0,s.useState)(""),ne=(0,c.Z)(ve,2),Me=ne[0],ae=ne[1],ye=(0,s.useState)(""),re=(0,c.Z)(ye,2),Be=re[0],ie=re[1],Se=(0,s.useState)([]),ge=(0,c.Z)(Se,2),$=ge[0],ue=ge[1],me=(0,s.useState)([]),le=(0,c.Z)(me,2),H=le[0],J=le[1],Ie=(0,s.useRef)();(0,s.useEffect)(function(){function I(){Z.srdTypeList().then(function(u){var S=u.data;S.forEach(function(f){f.value=f.id,f.label=f.name}),m(S)})}function v(){Z.srdList().then(function(u){var S=u.data;S.forEach(function(f){f.value=f.id,f.label=f.name}),Y(S)})}I(),v()},[]);function se(I){var v=[{title:"\u5E97\u94FA\u5206\u7C7B",dataIndex:"storeTypeName",hideInSearch:!0},{title:"\u5E97\u94FA\u540D\u79F0",dataIndex:"storeName",hideInSearch:!0},{title:"\u8BA2\u5355\u65F6\u95F4",dataIndex:"createdAt",valueType:"date"},{title:"\u8BA2\u5355\u7F16\u53F7",dataIndex:"orderNumber",hideInSearch:!0},{title:"\u8BA2\u5355\u7C7B\u578B",dataIndex:"orderType",hideInSearch:!0},{title:"\u6D41\u6C34\u91D1\u989D",dataIndex:"orderOriginalMoney",renderText:function(n){return"".concat(n,"\xA5")},hideInSearch:!0},{title:"\u4F18\u60E0\u91D1\u989D",dataIndex:"discountMoney",renderText:function(n){return"".concat(n,"\xA5")},hideInSearch:!0},{title:"\u987E\u5BA2\u5B9E\u4ED8",dataIndex:"orderRealMoney",renderText:function(n){return"".concat(n,"\xA5")},hideInSearch:!0},{title:"\u5E73\u53F0\u8D39\u7528",dataIndex:"businessPrice",renderText:function(n){return"".concat(n,"\xA5")},hideInSearch:!0},{title:"\u9000\u6B3E\u91D1\u989D",dataIndex:"refundMoney",renderText:function(n){return"".concat(n,"\xA5")},hideInSearch:!0},{title:"\u7ED3\u7B97\u91D1\u989D",dataIndex:"settlementMoney",renderText:function(n){return"".concat(n,"\xA5")},hideInSearch:!0},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(n,y){var j=[(0,e.jsx)("a",{type:"primary",onClick:function(){},children:"\u8BE6\u60C5"},"primary")];return j}}],u={},S=[];v.map(function(r,n){n<11&&S.push(r)}),u.fileName="\u8D22\u52A1\u8D26\u5355\u8BE6\u60C5",u.datas=[{sheetData:I.map(function(r){var n={};return v.forEach(function(y,j){j<11&&(j==4?r[y.dataIndex]==0?n[y.dataIndex]="\u6B63\u5E38\u8BA2\u5355":r[y.dataIndex]=="1"?n[y.dataIndex]="\u7ACB\u5373\u5403\u9762":r[y.dataIndex]=="2"?n[y.dataIndex]="\u76F2\u76D2":r[y.dataIndex]=="3"?n[y.dataIndex]="\u5176\u4ED6":r[y.dataIndex]=="-1"?n[y.dataIndex]="\u9000\u6B3E":r[y.dataIndex]=="-2"?n[y.dataIndex]="\u5408\u8BA1":n[y.dataIndex]="\u5176\u4ED6":n[y.dataIndex]=r[y.dataIndex])}),n}),sheetName:"\u8D22\u52A1\u8D26\u5355\u8BE6\u60C5",sheetFilter:S.map(function(r){return r.dataIndex}),sheetHeader:S.map(function(r){return r.title}),columnWidths:S.map(function(){return 10})}];var f=new(et())(u);f.saveExcel()}var Ze=[{title:"\u5E97\u94FA\u5206\u7C7B",dataIndex:"storeTypeId",hideInTable:!0,width:120,renderFormItem:function(){return(0,e.jsx)(Q.Z,{mode:"multiple",showArrow:!0,placeholder:"\u8BF7\u9009\u62E9\u5E97\u94FA\u5206\u7C7B",style:{width:"100%"},options:M,onChange:function(u){J(u),u.length>0?Z.StoreList(u).then(function(S){var f=S.data;if(f.forEach(function(n){n.value=n.id,n.label=n.name}),Y(f),f.length==0)b([]);else if(f.length){var r=[];f.forEach(function(n){B.length>0&&B.forEach(function(y){y==n.id&&r.push(n.id)})}),r.length>0?b(r):b([])}}):(J([]),b([]),Z.srdList().then(function(S){var f=S.data;f.forEach(function(r){r.value=r.id,r.label=r.name}),Y(f)}))}})}},{title:"\u5E97\u94FA\u5206\u7C7B",dataIndex:"storeTypeName",hideInForm:!0,hideInSearch:!0},{title:"\u5E97\u94FA\u540D\u79F0",dataIndex:"storeId",hideInTable:!0,width:120,renderFormItem:function(){return(0,e.jsx)(Q.Z,{mode:"multiple",showArrow:!0,placeholder:"\u8BF7\u9009\u62E9\u5E97\u94FA",style:{width:"100%"},options:oe,value:B,onChange:function(u){b(u)},onClear:function(u){b(u)}})}},{title:"\u5E97\u94FA\u540D\u79F0",dataIndex:"storeName",hideInForm:!0,hideInSearch:!0},{title:"\u8BA2\u5355\u65F6\u95F4",dataIndex:"createdAt",valueType:"date",hideInForm:!0,hideInSearch:!0},{title:"\u8BA2\u5355\u65F6\u95F4",dataIndex:"createdAt",hideInTable:!0,valueType:"dateRange",search:{transform:function(v){return{createdAt:v[0],endTime:v[1]}}}},{title:"\u7ED3\u7B97\u91D1\u989D",dataIndex:"settlementMoney",renderText:function(v){return"".concat(v,"\xA5")},hideInSearch:!0},{title:"\u5206\u8D26\u91D1\u989D",dataIndex:"businessPrice",hideInSearch:!0,renderText:function(v){return"".concat(v,"\xA5")}},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(v,u){var S=[(0,e.jsx)("a",{type:"primary",onClick:function(){k(!0),z(u)},children:"\u67E5\u770B"},"primary"),(0,e.jsx)("a",{type:"primary",onClick:function(){u.storeTypeId=[u.storeTypeId]==""?null:[u.storeTypeId],u.storeId=[u.storeId],Z.financeSummaryList(u).then(function(r){r.data&&se(r.data)})},children:"\u4E0B\u8F7D"},"primary")];return S}}];return(0,e.jsxs)(He.ZP,{children:[(0,e.jsx)(D.ZP,{headerTitle:"\u8D22\u52A1\u8D26\u5355\u67E5\u8BE2",actionRef:Ie,search:{labelWidth:120},toolBarRender:function(){return[(0,e.jsxs)(ke.Z,{type:"primary",onClick:function(){$!=null&&$!=""&&Z.financeSummaryList($).then(function(u){se(u.data)})},children:[(0,e.jsx)($e.Z,{})," \u4E0B\u8F7D"]},"create")]},columns:Ze,request:function(){var I=(0,de.Z)((0,O.Z)().mark(function v(u,S,f){var r,n;return(0,O.Z)().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:if(r=[],n=0,H!=null&&H.length>0&&(u.storeTypeId=H),u.createdAt!=null&&ae(u.createdAt),u.endTime!=null&&ie(u.endTime),B!=null&&B.length>0&&(u.storeId=B),ue(u),!(B!=null&&B.length>0)){j.next=10;break}return j.next=10,Z.finaceList(u).then(function(A){r=A.data.data,n=A.data.total});case 10:return j.abrupt("return",{data:r,success:!0,total:n});case 11:case"end":return j.stop()}},v)}));return function(v,u,S){return I.apply(this,arguments)}}()}),W&&Object.keys(W).length?(0,e.jsx)(qe,{onCancel:function(){k(!0),z({})},setfinanceDetailVisible:xe,values:W}):null]})},nt=tt}}]); diff --git a/dist/p__goods__goods-taste.2eebe563.async.js b/dist/p__goods__goods-taste.2eebe563.async.js deleted file mode 100644 index 6710b86..0000000 --- a/dist/p__goods__goods-taste.2eebe563.async.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[339,1322,9934,4407,6498,6090,274,6314],{13277:function(){},77413:function(k,O,t){"use strict";t.r(O),t.d(O,{default:function(){return h}});var c=t(58024),E=t(91894),I=t(71153),u=t(60331),P=t(86582),d=t(39428),T=t(3182),s=t(2824),Z=t(47673),S=t(4107),C=t(67294),M=t(49101),A=t(78009),B=t(48971);function F(e){return j.apply(this,arguments)}function j(){return j=(0,T.Z)((0,d.Z)().mark(function e(i){return(0,d.Z)().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",(0,B.WY)("/kitchen/api/goods-taste/goods-taste-list",{method:"get",data:i}));case 1:case"end":return o.stop()}},e)})),j.apply(this,arguments)}function $(e){return D.apply(this,arguments)}function D(){return D=(0,T.Z)((0,d.Z)().mark(function e(i){return(0,d.Z)().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",(0,B.WY)("/kitchen/api/goods-taste/edit",{method:"post",data:i}));case 1:case"end":return o.stop()}},e)})),D.apply(this,arguments)}var m=t(85893),z=void 0,v=S.Z.Search,l=function(){var i=(0,C.useState)([]),R=(0,s.Z)(i,2),o=R[0],p=R[1],G=(0,C.useState)([!1]),y=(0,s.Z)(G,2),L=y[0],W=y[1],b=(0,C.useState)(""),K=(0,s.Z)(b,2),x=K[0],U=K[1];(0,C.useEffect)(function(){var g=function(){var a=(0,T.Z)((0,d.Z)().mark(function f(n){return(0,d.Z)().wrap(function(N){for(;;)switch(N.prev=N.next){case 0:return N.next=2,F().then(function(w){w.data&&p(w.data)});case 2:case"end":return N.stop()}},f)}));return function(n){return a.apply(this,arguments)}}();g()},[]);var Y=function(){var g=(0,T.Z)((0,d.Z)().mark(function a(){return(0,d.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,$(o);case 2:return n.next=4,H();case 4:case"end":return n.stop()}},a)}));return function(){return g.apply(this,arguments)}}(),H=function(){var g=(0,T.Z)((0,d.Z)().mark(function a(){return(0,d.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,F().then(function(r){r.data&&p(r.data)});case 2:case"end":return n.stop()}},a)}));return function(){return g.apply(this,arguments)}}(),J=function(a){U(a.target.value)},V=function(a){var f=(0,P.Z)(o),n=f[a].tasteClassList||[];x&&(!n||(n==null?void 0:n.indexOf(x))===-1)&&n.push(x),f[a].tasteClassList=n,p(f);var r=(0,P.Z)(L);r[a]=!1,W(r),U(""),Y()},Q=function(a,f){var n=(0,P.Z)(o),r=n[f].tasteClassList;r=r.filter(function(N){return N!==a}),n[f].tasteClassList=r,p(n),Y()};return(0,m.jsx)(A.ZP,{children:(0,m.jsx)(m.Fragment,{children:(0,m.jsx)(E.Z,{title:"\u83DC\u54C1\u53E3\u5473",extra:(0,m.jsx)("div",{children:(0,m.jsx)(v,{enterButton:"\u6DFB\u52A0",onSearch:function(a){var f=o;!f.find(function(n){return n.tasteClassName==a})&&a&&p([].concat((0,P.Z)(f),[{tasteClassName:a,tasteClassList:[]}]))}})}),children:o==null?void 0:o.map(function(g,a){var f;return(0,m.jsxs)(E.Z,{title:g.tasteClassName,extra:(0,m.jsx)("a",{onClick:function(){var r=(0,P.Z)(o);r=r.filter(function(N){return N.tasteClassName!==g.tasteClassName}),p(r),$(r),H()},children:"\u5220\u9664"}),style:{width:300,height:300,float:"left"},children:[(f=g.tasteClassList)===null||f===void 0?void 0:f.map(function(n){var r=(0,m.jsx)(u.Z,{className:"edit-tag",style:{marginTop:"3px"},closable:!0,onClose:function(){return Q(n,a)},children:(0,m.jsxs)("span",{children:[" ",n," "]})},n);return r}),L[a]?(0,m.jsx)(S.Z,{style:{marginTop:"3px"},type:"text",size:"small",className:"tag-input",value:x,onChange:J,onBlur:V.bind(z,a),onPressEnter:V.bind(z,a)}):(0,m.jsxs)(u.Z,{className:"site-tag-plus",onClick:function(){var r=(0,P.Z)(L);r[a]=!0,W(r)},children:[(0,m.jsx)(M.Z,{})," \u6DFB\u52A0"]})]},a)})})})})},h=l},9708:function(k,O,t){"use strict";t.d(O,{Z:function(){return d},F:function(){return T}});var c=t(96156),E=t(94184),I=t.n(E),u=t(93355),P=(0,u.b)("warning","error","");function d(s,Z,S){var C;return I()((C={},(0,c.Z)(C,"".concat(s,"-status-success"),Z==="success"),(0,c.Z)(C,"".concat(s,"-status-warning"),Z==="warning"),(0,c.Z)(C,"".concat(s,"-status-error"),Z==="error"),(0,c.Z)(C,"".concat(s,"-status-validating"),Z==="validating"),(0,c.Z)(C,"".concat(s,"-has-feedback"),S),C))}var T=function(Z,S){return S||Z}},65223:function(k,O,t){"use strict";t.d(O,{q3:function(){return P},qI:function(){return d},RV:function(){return T},Rk:function(){return s},aM:function(){return Z},Ux:function(){return S}});var c=t(22122),E=t(48526),I=t(98423),u=t(67294),P=u.createContext({labelAlign:"right",vertical:!1,itemRef:function(){}}),d=u.createContext(null),T=function(M){var A=(0,I.Z)(M,["prefixCls"]);return u.createElement(E.RV,(0,c.Z)({},A))},s=u.createContext({prefixCls:""}),Z=u.createContext({}),S=function(M){var A=M.children,B=M.status,F=M.override,j=(0,u.useContext)(Z),$=(0,u.useMemo)(function(){var D=(0,c.Z)({},j);return F&&delete D.isFormItemInput,B&&(delete D.status,delete D.hasFeedback,delete D.feedbackIcon),D},[B,F,j]);return u.createElement(Z.Provider,{value:$},A)}},60331:function(k,O,t){"use strict";t.d(O,{Z:function(){return z}});var c=t(96156),E=t(22122),I=t(28481),u=t(54549),P=t(94184),d=t.n(P),T=t(98423),s=t(67294),Z=t(53124),S=t(98787),C=t(21790),M=function(v,l){var h={};for(var e in v)Object.prototype.hasOwnProperty.call(v,e)&&l.indexOf(e)<0&&(h[e]=v[e]);if(v!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,e=Object.getOwnPropertySymbols(v);i1?[{required:!0,message:"\u6B64\u9879\u4E3A\u5FC5\u586B\u9879"}]:[]}},valueType:"select",fieldProps:{showSearch:!0,options:t.matedata.map(function(x,E){return{label:x.name,value:x.id}})},width:"25%"},{title:"\u7528\u91CF",dataIndex:"dosage",valueType:"digit",width:"15%"},{title:"\u64CD\u4F5C",valueType:"option",width:"15%",render:function(){return null}}],$e=function(){V.validateFields().then(function(E){var B=!0,$=E;console.log(ee),ue.length==0?(B=!1,F.default.error("\u8BF7\u9009\u62E9\u5546\u54C1\u5C5E\u6027")):$.shuxing=ue,ee.length==0?(B=!1,F.default.error("\u8BF7\u9009\u62E9\u7269\u6599")):$.mate=ee.map(function(M){return{batchingId:M.batchingId,dosage:M.dosage}}),B&&(V.resetFields(),t.onFinish($),ve([]))}).catch(function(E){F.default.error("\u8BF7\u586B\u5199\u5FC5\u586B\u4FE1\u606F")})},we=function(E){for(var B=E.target,$=B.name,M=B.value,P="",J=(0,ze.Z)(ue),te=0;te0&&t.technologyattrdata.attributes.length>0&&(Se(t.technologyattrdata.attributes[0]),Ee(!0),M.current=!1),(I=B.current)===null||I===void 0||I.setFieldsValue(t.technologyattrdata),De(t.batchingdata)},[t.technologyattrdata,t.batchingdata]);var J=(0,n.useState)(""),te=(0,i.Z)(J,2),Be=te[0],Oe=te[1],Te=[{title:"\u4E3B\u952E",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0,render:function(v,d){return(0,e.jsx)("a",{onClick:function(){},children:v})}},{title:"\u540D\u79F0",dataIndex:"name",valueType:"textarea",ellipsis:!0,search:!1}],de=[{dataIndex:"items",valueType:"dependency",name:["chnologyId"],columns:function(v){var d=v.chnologyId,w=[];if(d){console.log("chnologyId",d);var A=t.technologyattralldata.filter(function(Z){return Z.goodstechnologyId==d});if(A.length>0)A.map(function(Z,L){var se={},Q={title:function(){return(0,e.jsx)("span",{className:rt().formlable,children:Z.actionName})},dataIndex:"actionvalue-"+Z.id+":"+Z.actionName,valueType:Z.actionType,width:"md"};if(Z.actionType=="select"&&Z.actionValue){for(var ae=JSON.parse(Z.actionValue),Y=0;Y0&&w?ta(f).then(function(se){if(se.data){var Q;F.default.success("\u4FDD\u5B58\u6210\u529F"),ie([]),B==null||(Q=B.current)===null||Q===void 0||Q.resetFields(),Se({}),Ee(!1),P.current=[],t.updadata()}else F.default.error("\u4FDD\u5B58\u5931\u8D25")}):F.default.error("\u6CA1\u6709\u8981\u4FDD\u5B58\u7684\u6570\u636E\u6216\u6570\u636E\u683C\u5F0F\u4E0D\u6B63\u786E")};return(0,e.jsxs)("div",{children:[(0,e.jsx)(Tt.A,{layout:"horizontal",formRef:B,submitter:{submitButtonProps:{style:{display:"none"}},render:function(v,d){return[].concat((0,ze.Z)(d),[(0,e.jsx)(X.Z,{htmlType:"button",onClick:Je,children:"\u4FDD\u5B58"},"format")])}},children:(0,e.jsxs)(fa.u,{name:"attributes",creatorButtonProps:{creatorButtonText:"\u6DFB\u52A0\u5DE5\u827A"},copyIconProps:!1,initialValue:t.technologyattrdata,actionGuard:{beforeAddRow:function(){var I=(0,T.Z)((0,l.Z)().mark(function d(w,A){return(0,l.Z)().wrap(function(k){for(;;)switch(k.prev=k.next){case 0:if(!(Object.keys(pe).length>0)){k.next=5;break}return F.default.error("\u5F53\u524D\u5904\u4E8E\u7F16\u8F91\u72B6\u6001\u65E0\u6CD5\u65B0\u589E\uFF0C\u5220\u9664\u5F53\u524D\u7F16\u8F91\u5DE5\u827A\u540E\u5728\u65B0\u589E"),k.abrupt("return",!1);case 5:return P.current=[],E("none"),k.abrupt("return",!0);case 8:case"end":return k.stop()}},d)}));function v(d,w){return I.apply(this,arguments)}return v}(),beforeRemoveRow:function(){var I=(0,T.Z)((0,l.Z)().mark(function d(w){return(0,l.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return Se({}),P.current=[],Ee(!1),f.abrupt("return",!0);case 4:case"end":return f.stop()}},d)}));function v(d){return I.apply(this,arguments)}return v}()},itemRender:function(v,d){var w=v.listDom,A=v.action,f=d.record,k=d.index;return(0,e.jsx)(He.Z,{title:"\u5DE5\u5E8F\u53F7"+(f.sort==null?t.maxsort+(k+1):f.sort),bordered:!0,extra:A,bodyStyle:{padding:15},headStyle:{padding:"0px 24px"},style:{marginBlockEnd:8},children:w})},creatorRecord:{chnologyId:""},children:[(0,e.jsx)(Tt.A.Item,{name:"chnologyId",style:{float:"left"},children:(0,e.jsx)(C.Z,{name:"chnologyId",style:{width:"90px"},disabled:Fe,options:t.goodstechnologydata,onChange:function(){var I=(0,T.Z)((0,l.Z)().mark(function v(d,w){return(0,l.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:Ae(d,w);case 1:case"end":return f.stop()}},v)}));return function(v,d){return I.apply(this,arguments)}}()})}),(0,e.jsxs)(Tt.A.Item,{isListField:!0,name:"items",style:{float:"left",width:"75%"},children:[(0,e.jsx)(ma.Z,{layoutType:"Embed",type:"custom",shouldUpdate:!0,formItemProps:{forceRender:!0,labelAlign:"left"},columns:de}),(0,e.jsx)(X.Z,{type:"dashed",block:!0,style:{display:x},onClick:Ie,children:"\u6DFB\u52A0"})]})]})}),(0,e.jsx)(st.Z,{title:"\u52A8\u4F5C\u914D\u7F6E",width:640,visible:re,bodyStyle:{padding:"32px 40px 1px 48px"},focusTriggerAfterClose:!1,onCancel:function(){M.current=!1,_(!1),ie([])},onOk:function(){M.current=!1,_(!1)},destroyOnClose:!0,maskClosable:!1,children:(0,e.jsx)(W.ZP,{headerTitle:"\u7269\u6599\u5217\u8868",rowKey:"id",actionRef:$,search:{labelWidth:120},columns:Te,request:function(v){var d="",w=[];if(Be)d=Be;else{d=t.technologyattrdata.attributes[0].name;var A=Object.keys(t.technologyattrdata.attributes[0]),f=A.filter(function(Z){return Z!=="chnologyId"&&Z!=="id"&&Z!=="sort"&&Z!=="name"});f.map(function(Z){var L=Z.replace("actionvalue-","").split(":");w.push({id:L[0],name:L[1]})})}var k=t.batchingdata.filter(function(Z){return Z.typeName==d});return ie(w),Ze(w.map(function(Z){return Z.id})),{data:k,success:!0,total:k.length}},rowSelection:{selectedRowKeys:ke,onSelect:function(v,d){var w=(0,ze.Z)(ke),A=[],f=w.findIndex(function(k){return k===v.id});d?(f<0&&w.push(v.id),A.push({id:v.id,name:v.name})):f>-1&&w.splice(f,1),Ze(w),console.log(w)},onSelectAll:function(v,d,w){var A=(0,ze.Z)(ke);v?d.forEach(function(f){if(!!f){var k=A.findIndex(function(Z){return Z===f.id});k<0&&A.push(f.id)}}):w.forEach(function(f){var k=A.findIndex(function(Z){return Z===f.id});k>-1&&A.splice(k,1)}),Ze(A)},onChange:function(v,d){ie(d)}}})})]})},pa=ga,va=function(t){var c=(0,n.useState)(""),a=(0,i.Z)(c,2),fe=a[0],ne=a[1],me=(0,n.useState)([]),ge=(0,i.Z)(me,2),re=ge[0],_=ge[1],le=(0,n.useState)([]),oe=(0,i.Z)(le,2),ke=oe[0],Ze=oe[1],be=(0,n.useState)([]),ue=(0,i.Z)(be,2),pe=ue[0],Se=ue[1],je=(0,n.useState)([]),ee=(0,i.Z)(je,2),ve=ee[0],ie=ee[1],xe=(0,n.useState)([]),Ge=(0,i.Z)(xe,2),Fe=Ge[0],Ee=Ge[1],Re=(0,n.useState)({}),Ce=(0,i.Z)(Re,2),V=Ce[0],De=Ce[1],$e=(0,n.useState)([]),we=(0,i.Z)($e,2),x=we[0],E=we[1],B=(0,n.useState)([]),$=(0,i.Z)(B,2),M=$[0],P=$[1],J=(0,n.useState)(1),te=(0,i.Z)(J,2),Be=te[0],Oe=te[1],Te=(0,n.useState)([]),de=(0,i.Z)(Te,2),Pe=de[0],Ve=de[1],Ie=(0,n.useState)([]),Ae=(0,i.Z)(Ie,2),Je=Ae[0],I=Ae[1],v=(0,n.useState)([]),d=(0,i.Z)(v,2),w=d[0],A=d[1],f=(0,n.useState)("block"),k=(0,i.Z)(f,2),Z=k[0],L=k[1];(0,n.useEffect)(function(){se()},[]);var se=function(){_t(t.goodsid).then(function(s){if(s.succeeded){De(s.data),s.data.goodsAttributeList.length==0&&L("none");var h=[{key:"1",label:"\u5546\u54C1\u540D\u79F0",children:s.data.name},{key:"2",label:"\u5546\u54C1\u4EF7\u683C",children:s.data.price},{key:"3",label:"\u5546\u54C1\u5927\u7C7B",children:s.data.parentTypeIDName},{key:"4",label:"\u5546\u54C1\u5C0F\u7C7B",children:s.data.goodsTypeName},{key:"5",label:"\u5546\u54C1\u5355\u4F4D",children:s.data.goodsUintName},{key:"6",label:"\u5957\u9910\u5C5E\u6027",children:s.data.goodsAttribute==0?"\u5355\u54C1":"\u5957\u9910"}];Ze(h)}else F.default.error("\u67E5\u8BE2\u5546\u54C1\u4FE1\u606F\u5931\u8D25")}),ea().then(function(s){Ee(s.data)}),Et(t.goodsid).then(function(s){if(s.data.length>0){P(s.data);var h=s.data.reduce(function(b,G){return b.sort>G.sort?b:G});Oe(h.sort)}}),ra().then(function(s){Ve(s.data)}),na().then(function(s){if(I(s.data),s.data.length>0){var h=s.data.map(function(b){return{value:b.id,label:b.deviceName}});A(h)}})},Q=function(s){var h=s.target,b=h.name,G=h.value;console.log(b),console.log(G);for(var z="",ce=(0,ze.Z)(re),Me=0;Me0){P(s.data);var h=s.data.reduce(function(G,z){return G.sort>z.sort?G:z});Oe(h.sort);var b={attributes:[]};ie(b)}})},Le=function(s){var h=Je.find(function(G){return G.id==s});if(h&&h.goodsTechnologyInfo.length>0){var b=h.goodsTechnologyInfo.map(function(G){return{value:G.goodsTechnologyId,label:G.name}});console.log(b),Se(b)}};return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(H.Z,{bodyStyle:{padding:15},children:[(0,e.jsx)("div",{style:{fontSize:16,marginBottom:5,color:"#1890ff",fontWeight:600},children:"\u5546\u54C1\u4FE1\u606F"}),(0,e.jsx)("div",{style:{float:"left"},children:(0,e.jsx)("img",{style:{width:100,height:100},src:V.imgUrl})}),(0,e.jsx)(Dt.Z,{style:{float:"left",width:"71%",marginLeft:"10px"},labelStyle:{fontSize:16,fontWeight:600},children:ke.map(function(O,s){return(0,e.jsx)(Dt.Z.Item,{label:O.label,children:O.children},s)})})]}),(0,e.jsxs)(H.Z,{bodyStyle:{padding:15},style:{display:Z},children:[(0,e.jsx)("div",{style:{fontSize:16,marginBottom:5,color:"#1890ff",fontWeight:600},children:"\u5546\u54C1\u5C5E\u6027"}),V.goodsAttributeList==null?"":V.goodsAttributeList.map(function(O,s){return(0,e.jsx)("div",{style:{marginLeft:10},children:(0,e.jsxs)("div",{children:[(0,e.jsxs)("span",{style:{marginRight:10},children:[" ",(0,e.jsx)(Rt.Z,{color:"blue",style:{fontSize:14,fontWeight:600},children:O.attributeName}),"\uFF1A"]}),(0,e.jsx)("span",{children:(0,e.jsx)(nt.ZP.Group,{name:"radiogroup"+s,buttonStyle:"solid",onChange:Q,children:O.goodsAttributeValueList.map(function(h,b){return(0,e.jsx)(nt.ZP.Button,{name:b,value:h.goodsAttributeValuId,style:{marginRight:22,marginTop:10},children:h.attributeValue},b)})})})]})})})]}),(0,e.jsxs)(H.Z,{bodyStyle:{padding:15},children:[(0,e.jsxs)("div",{style:{fontSize:16,marginBottom:5,color:"#1890ff",fontWeight:600},children:["\u5DE5\u827A\u8BBE\u8BA1",(0,e.jsx)(C.Z,{showSearch:!0,style:{width:200},placeholder:"\u8BF7\u9009\u62E9\u8BBE\u5907",optionFilterProp:"children",filterOption:function(s,h){var b;return((b=h==null?void 0:h.label)!==null&&b!==void 0?b:"").includes(s)},filterSort:function(s,h){var b,G;return((b=s==null?void 0:s.label)!==null&&b!==void 0?b:"").toLowerCase().localeCompare(((G=h==null?void 0:h.label)!==null&&G!==void 0?G:"").toLowerCase())},onChange:Le,options:w})]}),(0,e.jsxs)(He.Z,{split:"vertical",children:[(0,e.jsxs)(He.Z,{title:"\u7F16\u8F91\u5DE5\u827A",type:"inner",colSpan:"33%",bodyStyle:{padding:5},headerBordered:!0,headStyle:{paddingLeft:"45%"},children:[(0,e.jsx)("div",{style:{textAlign:"center",marginBottom:10,color:"brown"},children:fe}),(0,e.jsx)(pa,{maxsort:Be,batchingdata:Pe,updadata:q,goodsid:t.goodsid,technologyattralldata:Fe,checkvalue:re,technologyattrdata:ve,goodstechnologydata:pe})]}),(0,e.jsx)(He.Z,{title:"\u67E5\u770B\u5DE5\u827A",type:"inner",headStyle:{paddingLeft:"45%"},bodyStyle:{padding:5},headerBordered:!0,children:(0,e.jsx)("div",{style:{height:360},children:M==null?"":M.map(function(O,s){var h=JSON.parse(O.actionJson);return(0,e.jsx)(He.Z,{title:"\u5DE5\u5E8F\u53F7"+O.sort,bordered:!0,bodyStyle:{padding:5},headStyle:{padding:"0px 5px"},extra:[(0,e.jsx)(X.Z,{type:"link",onClick:function(G){ae(G,O,h)},children:"\u7F16\u8F91"}),(0,e.jsx)(da.Z,{onClick:function(G){Y(G,O,h)}})],style:{marginBlockEnd:8,width:353,float:"left",height:"200px",marginRight:"10px","overflow-y":"scroll"},children:(0,e.jsxs)("div",{style:{lineHeight:"200px"},children:[(0,e.jsx)("div",{className:rt().formlable,style:{float:"left",height:"70px",lineHeight:"65px"},children:O.stepName}),(0,e.jsx)("div",{style:{float:"left",marginBottom:"5px",width:"67%"},children:h.map(function(b){return(0,e.jsxs)("div",{style:{float:"left",marginBottom:"5px"},children:[(0,e.jsx)("div",{className:rt().formlable,style:{display:"block",float:"left"},children:b.actionName}),(0,e.jsxs)("div",{className:rt().formlable,style:{display:"block",float:"left"},children:[" ",b.actionValue]})]})})})]})})})})})]})]})]})},ya=va,It=r(4795),Za=r(9669),ba=r.n(Za),$a=Ft.Z.Step,Oa=C.Z.Option,$t=C.Z.OptGroup,Sa=he.Z.TextArea,ja=function(t){var c,a,fe,ne,me=j.Z.useForm(),ge=(0,i.Z)(me,1),re=ge[0],_=(0,n.useState)([]),le=(0,i.Z)(_,2),oe=le[0],ke=le[1],Ze=(0,n.useState)([]),be=(0,i.Z)(Ze,2),ue=be[0],pe=be[1],Se=(0,n.useState)([]),je=(0,i.Z)(Se,2),ee=je[0],ve=je[1],ie=(0,n.useState)([]),xe=(0,i.Z)(ie,2),Ge=xe[0],Fe=xe[1],Ee=(0,n.useState)(),Re=(0,i.Z)(Ee,2),Ce=Re[0],V=Re[1],De=(0,n.useState)(!1),$e=(0,i.Z)(De,2),we=$e[0],x=$e[1],E=(0,n.useState)([]),B=(0,i.Z)(E,2),$=B[0],M=B[1],P=(0,n.useRef)(),J=(0,n.useState)("basis"),te=(0,i.Z)(J,2),Be=te[0],Oe=te[1],Te=(0,n.useState)(t.location.query.values?t.location.query.values.imgUrl:null),de=(0,i.Z)(Te,2),Pe=de[0],Ve=de[1],Ie=(0,n.useState)(0),Ae=(0,i.Z)(Ie,2),Je=Ae[0],I=Ae[1],v=(0,n.useState)([]),d=(0,i.Z)(v,2),w=d[0],A=d[1],f=(0,n.useState)([]),k=(0,i.Z)(f,2),Z=k[0],L=k[1],se=(0,n.useState)([]),Q=(0,i.Z)(se,2),ae=Q[0],Y=Q[1],q=function(){var S=(0,T.Z)((0,l.Z)().mark(function g(m){var p;return(0,l.Z)().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return p=F.default.loading("\u6B63\u5728\u6DFB\u52A0"),console.log(m),y.prev=2,t.location.query.isAdd&&(m.id=null),m.imgUrl=Pe||m.imgUrl,m.defaultMate?m.defaultMate=m.defaultMate.join():m.defaultMate="",y.next=8,(0,It.Rq)(JSON.stringify(m)).then(function(U){U.data?(F.default.success("\u6DFB\u52A0\u6210\u529F"),N.m8.push({pathname:"/goods/newgoods"})):F.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01")});case 8:return p(),y.abrupt("return",!0);case 12:return y.prev=12,y.t0=y.catch(2),p(),F.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),y.abrupt("return",!1);case 17:case"end":return y.stop()}},g,null,[[2,12]])}));return function(m){return S.apply(this,arguments)}}(),Le={name:"file",showUploadList:!1,multiple:!1,accept:".png, .jpg, .jpeg, .gif",headers:{"Content-Type":"application/octet-stream"},customRequest:function(g){var m=g.action,p=g.file,R=g.headers,y=g.onError,U=g.onProgress,Ot=g.onSuccess,Ca=g.withCredentials;console.log("\u4E0A\u4F20\u56FE\u7247",p);var wa=p.name.lastIndexOf("."),Ba=p.name.substr(wa+1),Pt=null;return Kt({directory:"goods",fileExtension:Ba,method:"PUT"}).then(function(At){m=At.allUrl;var Vt=new FileReader;Vt.readAsArrayBuffer(p),Vt.onload=function(Ta){Pt=Ta.target.result,ba().put(m,Pt,{withCredentials:Ca,headers:R,onUploadProgress:function(Lt){var Ia=Lt.total,Aa=Lt.loaded;U({percent:Math.round(Aa/Ia*100).toFixed(2)},p)}}).then(function(ot){console.log("onSuccess",ot,p),(ot.status==200||ot.statusText=="OK")&&Ve(At.seeUrl)}).catch(y)}}),{abort:function(){console.log("upload progress is aborted.")}}}},O=(0,n.useState)({operationKey:t.location.query.tabStatus?t.location.query.tabStatus:"basis",tabActiveKey:t.location.query.tabStatus?t.location.query.tabStatus:"basis"}),s=(0,i.Z)(O,2),h=s[0],b=s[1];(0,n.useEffect)(function(){Oe(h.tabActiveKey)},[h]);var G=function(g){if(Je===1){F.default.info("\u5957\u9910\u4E0D\u80FD\u8BBE\u7F6E\u914D\u65B9");return}b({operationKey:g,tabActiveKey:g})},z=[{key:"basis",tab:"\u5546\u54C1\u57FA\u7840\u4FE1\u606F"},{key:"goodsbom",tab:"\u5546\u54C1\u914D\u65B9"},{key:"goodstechnologymaken",tab:"\u5546\u54C1\u5DE5\u827A"}],ce=[{title:"\u4E3B\u952E",dataIndex:"id",key:"id",hideInTable:!0,hideInSearch:!0,tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key"},{title:"\u914D\u65B9\u540D\u79F0",key:"name",dataIndex:"name",valueType:"textarea"},{title:"\u914D\u65B9\u7C7B\u578B",dataIndex:"isMain",hideInForm:!0,valueEnum:{false:{text:"\u8F85\u6599",status:"Processing"},true:{text:"\u4E3B\u6599",status:"Success"}}},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(g,m){return[(0,e.jsx)("a",{type:"primary",onClick:function(){var R=F.default.loading("\u6B63\u5728\u5220\u9664");try{return zt(m.id),R(),F.default.success("\u5220\u9664\u6210\u529F\uFF0C\u5373\u5C06\u5237\u65B0"),P.current.reload(),!0}catch(y){return R(),F.default.error("\u5220\u9664\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5"),P.current.reload(),!1}},children:"\u5220\u9664"},"primary")]}}],Me={basis:(0,e.jsx)(H.Z,{title:"\u5546\u54C1\u57FA\u7840\u4FE1\u606F",style:{marginBottom:24},bordered:!1,children:(0,e.jsxs)(j.Z,{labelCol:{span:4},wrapperCol:{span:6},layout:"horizontal",preserve:!1,initialValues:t.location.query.values,onFinish:q,children:[(0,e.jsx)(j.Z.Item,{name:"id",hidden:!0,children:(0,e.jsx)(he.Z,{})}),(0,e.jsx)(j.Z.Item,{name:"code",label:"\u5546\u54C1\u7F16\u7801",hidden:!0,children:(0,e.jsx)(he.Z,{disabled:!0})}),(0,e.jsx)(j.Z.Item,{name:"name",label:"\u5546\u54C1\u540D\u79F0",rules:[{required:!0}],children:(0,e.jsx)(he.Z,{})}),(0,e.jsx)(j.Z.Item,{name:"goodsUintId",label:"\u5546\u54C1\u5355\u4F4D",rules:[{required:!0}],children:(0,e.jsx)(C.Z,{children:ue==null?"":ue.map(function(S,g){return(0,e.jsx)(C.Z.Option,{index:g,value:S.id,children:S.name},S.id)})})}),(0,e.jsx)(j.Z.Item,{name:"price",label:"\u5546\u54C1\u4EF7\u683C",rules:[{required:!0}],children:(0,e.jsx)(Ne.Z,{placeholder:"\u4EF7\u683C",min:0})}),(0,e.jsx)(j.Z.Item,{name:"vipPrice",label:"\u4F1A\u5458\u4EF7\u683C",children:(0,e.jsx)(Ne.Z,{placeholder:"\u4F1A\u5458\u4EF7",min:0})}),(0,e.jsx)(j.Z.Item,{name:"parentTypeID",label:"\u5546\u54C1\u5927\u7C7B",rules:[{required:!0}],children:(0,e.jsx)(C.Z,{children:ee==null?"":ee.map(function(S,g){return(0,e.jsx)(C.Z.Option,{index:g,value:S.id,children:S.name},S.id)})})}),(0,e.jsx)(j.Z.Item,{name:"goodsTypeId",label:"\u5546\u54C1\u5C0F\u7C7B",rules:[{required:!0}],children:(0,e.jsx)(C.Z,{children:oe==null?"":oe.map(function(S,g){return(0,e.jsx)(C.Z.Option,{index:g,value:S.id,children:S.goodsType_Name},S.id)})})}),(0,e.jsx)(j.Z.Item,{name:"goodsAttribute",label:"\u5546\u54C1\u5C5E\u6027",defaultValue:0,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5546\u54C1\u5C5E\u6027"}],children:(0,e.jsx)(C.Z,{placeholder:"\u8BF7\u9009\u62E9\u5546\u54C1\u5C5E\u6027",onChange:function(g){I(g)},children:(0,e.jsxs)($t,{children:[(0,e.jsx)(C.Z.Option,{value:0,children:"\u5355\u54C1"}),(0,e.jsx)(C.Z.Option,{value:1,children:"\u5957\u9910"})]})})}),(0,e.jsx)(j.Z.Item,{name:"status",label:"\u72B6\u6001",defaultValue:0,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u72B6\u6001"}],children:(0,e.jsx)(C.Z,{placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001",children:(0,e.jsxs)($t,{children:[(0,e.jsx)(C.Z.Option,{value:0,children:"\u6B63\u5E38"}),(0,e.jsx)(C.Z.Option,{value:1,children:"\u505C\u7528"})]})})}),(0,e.jsx)(j.Z.Item,{name:"foreignKeyRe",label:"\u5173\u8054\u5916\u952E",rules:[{required:!1}],children:(0,e.jsx)(he.Z,{})}),(0,e.jsx)(j.Z.Item,{name:"defaultMate",label:"\u9ED8\u8BA4\u539F\u6599",rules:[{required:!1}],children:(0,e.jsx)(C.Z,{mode:"multiple",allowClear:!0,children:ae==null?"":ae.map(function(S,g){return(0,e.jsx)(C.Z.Option,{index:g,value:S.id,children:S.name},S.id)})})}),(0,e.jsx)(j.Z.Item,{name:"remark",label:"\u5907\u6CE8",children:(0,e.jsx)(he.Z,{})}),(0,e.jsxs)(j.Z.Item,{name:"design",label:"\u89C4\u683C",children:["\xA0 \xA0 \xA0 \xA0 \xA0 ",(0,e.jsx)(Sa,{rows:4}),"\xA0 \xA0 \xA0 \xA0 \xA0 "]}),(0,e.jsx)(j.Z.Item,{name:"imgUrl",hidden:!0,children:(0,e.jsx)(he.Z,{})}),(0,e.jsx)(j.Z.Item,{name:"imgUrl1",label:"\u5546\u54C1\u56FE\u7247\u5730\u5740",children:(0,e.jsx)(Ue.Z,(0,We.Z)((0,We.Z)({},Le),{},{children:Pe?(0,e.jsx)("img",{src:Pe,alt:"avatar",style:{width:"100%"}}):(0,e.jsx)(X.Z,{icon:(0,e.jsx)(Ke.Z,{}),children:"\u4E0A\u4F20"})}))}),(0,e.jsx)(j.Z.Item,{label:"\u662F\u5426\u79F0\u91CD",name:"isWeigh",valuePropName:"checked",initialValue:"false",children:(0,e.jsx)(Qe.Z,{checkedChildren:"\u662F",unCheckedChildren:"\u5426",defaultChecked:"false"})}),(0,e.jsx)(j.Z.Item,{label:"\u662F\u5426\u591A\u5C5E\u6027",name:"isAttrubute",children:(0,e.jsx)(Qe.Z,{checkedChildren:"\u662F",unCheckedChildren:"\u5426",defaultChecked:!1})}),(0,e.jsx)(j.Z.Item,{children:(0,e.jsx)(X.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})}),goodsbom:(0,e.jsxs)(H.Z,{title:"\u5546\u54C1\u914D\u65B9",style:{marginBottom:24},bordered:!1,children:[(0,e.jsx)(W.ZP,{columns:ce,actionRef:P,rowKey:"id",search:!1,toolBarRender:function(){return[(0,e.jsxs)(X.Z,{type:"primary",onClick:function(){var m,p;((m=t.location.query.values)===null||m===void 0?void 0:m.id)==null||((p=t.location.query.values)===null||p===void 0?void 0:p.id)==null?F.default.info("\u8BF7\u5148\u6DFB\u52A0\u5546\u54C1\u57FA\u7840\u4FE1\u606F!"):V(!0)},children:[(0,e.jsx)(at.Z,{})," \u9009\u62E9\u914D\u65B9"]},"primary"),(0,e.jsxs)(X.Z,{type:"primary",onClick:(0,T.Z)((0,l.Z)().mark(function g(){var m,p;return(0,l.Z)().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:if(!(((m=t.location.query.values)===null||m===void 0?void 0:m.id)==null||((p=t.location.query.values)===null||p===void 0?void 0:p.id)==null)){y.next=4;break}F.default.info("\u8BF7\u5148\u6DFB\u52A0\u5546\u54C1\u57FA\u7840\u4FE1\u606F!"),y.next=7;break;case 4:return y.next=6,Jt(t.location.query.values.id).then(function(U){A(U.data)});case 6:x(!0);case 7:case"end":return y.stop()}},g)})),children:[(0,e.jsx)(at.Z,{})," \u65B0\u5EFA\u914D\u65B9"]},"primary")]},request:function(){var S=(0,T.Z)((0,l.Z)().mark(function g(m){var p,R;return(0,l.Z)().wrap(function(U){for(;;)switch(U.prev=U.next){case 0:if(!(t.location.query.values.id==null||t.location.query.values.id==null)){U.next=3;break}U.next=9;break;case 3:return m.GoodsId=t.location.query.values.id,p=0,U.next=7,Mt(m);case 7:return R=U.sent,U.abrupt("return",{data:R.data.data,success:!0,total:p});case 9:case"end":return U.stop()}},g)}));return function(g){return S.apply(this,arguments)}}(),rowSelection:{onChange:function(g,m){return M(m)}}}),(0,e.jsx)(ua,{onFinish:function(){var S=(0,T.Z)((0,l.Z)().mark(function g(m){var p;return(0,l.Z)().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return console.log("value",m),m.GoodsId=t.location.query.values.id,p=!1,y.next=5,Yt(m);case 5:p=y.sent,p&&V(!1),P.current.reload();case 8:case"end":return y.stop()}},g)}));return function(g){return S.apply(this,arguments)}}(),onCancel:function(){V(!1)},createModalVisible:Ce}),(0,e.jsx)(ia,{handleCreateoodsBomModalVisible:we,onFinish:function(){var S=(0,T.Z)((0,l.Z)().mark(function g(m){return(0,l.Z)().wrap(function(R){for(;;)switch(R.prev=R.next){case 0:return m.goodsId=t.location.query.values.id,console.log(m),R.next=4,Xt(m).then(function(y){console.log(y),y.data?(F.default.success("\u6DFB\u52A0\u6210\u529F"),x(!1)):F.default.error("\u6DFB\u52A0\u5931\u8D25"),P.current.reload()});case 4:case"end":return R.stop()}},g)}));return function(g){return S.apply(this,arguments)}}(),goodsid:(c=t.location.query.values)===null||c===void 0?void 0:c.id,goodsname:(a=t.location.query.values)===null||a===void 0?void 0:a.name,goodsAttriburteData:w,matedata:ae,bomtype:Z,defaultmatedata:(fe=t.location.query.values)===null||fe===void 0?void 0:fe.defaultMate,onCancel:function(){x(!1)}})]}),goodstechnologymaken:(0,e.jsx)(H.Z,{title:"\u5546\u54C1\u5DE5\u827A",style:{marginBottom:24},bordered:!1,children:(0,e.jsx)(ya,{goodsid:(ne=t.location.query.values)===null||ne===void 0?void 0:ne.id})})};return(0,n.useEffect)(function(){function S(){(0,It.fA)({current:1,status:0,pageSize:1e3}).then(function(p){var R=p.data.data;R.forEach(function(y){y.text=y.goodsType_Name}),ke(R)})}function g(){(0,It.se)({current:1,status:0,pageSize:1e3}).then(function(p){var R=p.data.data;R.forEach(function(y){y.text=y.name}),ve(R)})}function m(){Ht('{"current":1,"pageSize":200}').then(function(p){var R=p.data.data;pe(R)})}Qt({current:1,pagesize:1e3,status:"0"}).then(function(p){L(p.data.data)}),qt({current:1,pagesize:1e3}).then(function(p){Y(p.data.data)}),m(),S(),g()},[]),(0,e.jsx)(Ye.ZP,{title:t.location.query.isAdd?"\u5546\u54C1\u65B0\u589E":"\u8BE6\u60C5",tabActiveKey:Be,onTabChange:G,tabList:z,children:Me[h.operationKey]})},xa=ja},4795:function(ut,qe,r){"use strict";r.d(qe,{lO:function(){return Qe},GT:function(){return kt},Rq:function(){return l},e3:function(){return F},yR:function(){return Gt},fA:function(){return i},se:function(){return he},WF:function(){return at}});var K=r(39428),H=r(3182),ye=r(48971);function Qe(n){return We.apply(this,arguments)}function We(){return We=(0,H.Z)((0,K.Z)().mark(function n(D){return(0,K.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,ye.WY)("/kitchen/api/goods/goodss",{method:"Post",data:D}));case 1:case"end":return u.stop()}},n)})),We.apply(this,arguments)}function kt(n){return Ue.apply(this,arguments)}function Ue(){return Ue=(0,H.Z)((0,K.Z)().mark(function n(D){return(0,K.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,ye.WY)("/kitchen/api/bom/getpage",{method:"Post",data:D}));case 1:case"end":return u.stop()}},n)})),Ue.apply(this,arguments)}function Wt(n){return X.apply(this,arguments)}function X(){return X=_asyncToGenerator(_regeneratorRuntime().mark(function n(D){return _regeneratorRuntime().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",request("/kitchen/api/GoodsBom/AddBom",{method:"Post",data:D}));case 1:case"end":return u.stop()}},n)})),X.apply(this,arguments)}function Nt(n){return Ne.apply(this,arguments)}function Ne(){return Ne=_asyncToGenerator(_regeneratorRuntime().mark(function n(D){return _regeneratorRuntime().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",request("/kitchen/api/GoodsBom/getBomInfo",{method:"Post",data:D}));case 1:case"end":return u.stop()}},n)})),Ne.apply(this,arguments)}function l(n){return Xe.apply(this,arguments)}function Xe(){return Xe=(0,H.Z)((0,K.Z)().mark(function n(D){return(0,K.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,ye.WY)("/kitchen/api/goods",{method:"POST",data:D}));case 1:case"end":return u.stop()}},n)})),Xe.apply(this,arguments)}function F(n){return T.apply(this,arguments)}function T(){return T=(0,H.Z)((0,K.Z)().mark(function n(D){return(0,K.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return console.log("\u5546\u54C1\u6570\u636E\u4FEE\u6539",D),u.abrupt("return",(0,ye.WY)("/kitchen/api/goods",{method:"PUT",data:D}));case 2:case"end":return u.stop()}},n)})),T.apply(this,arguments)}function Gt(n){return j.apply(this,arguments)}function j(){return j=(0,H.Z)((0,K.Z)().mark(function n(D){return(0,K.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,ye.WY)("/kitchen/api/goods",{method:"DELETE",data:D}));case 1:case"end":return u.stop()}},n)})),j.apply(this,arguments)}function i(n){return _e.apply(this,arguments)}function _e(){return _e=(0,H.Z)((0,K.Z)().mark(function n(D){return(0,K.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,ye.WY)("/kitchen/api/goods-type/goods-types",{method:"POST",data:D}));case 1:case"end":return u.stop()}},n)})),_e.apply(this,arguments)}function he(n){return et.apply(this,arguments)}function et(){return et=(0,H.Z)((0,K.Z)().mark(function n(D){return(0,K.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,ye.WY)("/kitchen/api/goods-type/big-goods-types",{method:"POST",data:D}));case 1:case"end":return u.stop()}},n)})),et.apply(this,arguments)}function C(n){return tt.apply(this,arguments)}function tt(){return tt=_asyncToGenerator(_regeneratorRuntime().mark(function n(D){return _regeneratorRuntime().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",request("/kitchen/api/goodstaste/getlist"));case 1:case"end":return u.stop()}},n)})),tt.apply(this,arguments)}function Ft(n){return Ke.apply(this,arguments)}function Ke(){return Ke=_asyncToGenerator(_regeneratorRuntime().mark(function n(D){return _regeneratorRuntime().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",request("/kitchen//api/goodes/ExportGood",{method:"POST",data:D}));case 1:case"end":return u.stop()}},n)})),Ke.apply(this,arguments)}function at(){return Ye.apply(this,arguments)}function Ye(){return Ye=(0,H.Z)((0,K.Z)().mark(function n(){return(0,K.Z)().wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return W.abrupt("return",(0,ye.WY)("/kitchen/api/goodes/GoodsTemplateExport",{method:"post",responseType:"blob"}));case 1:case"end":return W.stop()}},n)})),Ye.apply(this,arguments)}}}]); diff --git a/dist/p__goods__goodsInfo.c7d125d4.async.js b/dist/p__goods__goodsInfo.c7d125d4.async.js deleted file mode 100644 index b3c40c7..0000000 --- a/dist/p__goods__goodsInfo.c7d125d4.async.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[131,1322,9934,4407,6498,6090,274,6314,8326],{57175:function(at){at.exports={main:"main___2ZJdw",headerList:"headerList___3V7W_",stepDescription:"stepDescription___Te9fu",pageHeader:"pageHeader___15KyY",moreInfo:"moreInfo___uHlmy",formlable:"formlable___3MvGh"}},38906:function(at,Ye,r){"use strict";r.r(Ye),r.d(Ye,{default:function(){return Ca}});var Y=r(58024),q=r(91894),ve=r(77576),Ke=r(12028),Ee=r(11849),kt=r(43185),Pe=r(93009),Lt=r(57663),ae=r(71577),Nt=r(77883),De=r(85986),u=r(39428),Me=r(34792),E=r(48086),A=r(3182),Gt=r(9715),x=r(55843),i=r(2824),ze=r(47673),he=r(4107),He=r(43358),B=r(34041),Je=r(35556),Ft=r(75899),Ve=r(84391),qe=r(49101),We=r(78009),n=r(67294),R=r(94184),L=r(16894),s=r(71194),nt=r(50146),W=r(48971);function Ut(o){return rt.apply(this,arguments)}function rt(){return rt=(0,A.Z)((0,u.Z)().mark(function o(t){return(0,u.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,W.WY)("/kitchen/api/goodes/GetGoodsBomPage",{method:"Post",data:t}));case 1:case"end":return a.stop()}},o)})),rt.apply(this,arguments)}function Yt(o){return ot.apply(this,arguments)}function ot(){return ot=(0,A.Z)((0,u.Z)().mark(function o(t){return(0,u.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,W.WY)("/kitchen/api/bom/getpage",{method:"Post",data:t}));case 1:case"end":return a.stop()}},o)})),ot.apply(this,arguments)}function Kt(o){return ut.apply(this,arguments)}function ut(){return ut=(0,A.Z)((0,u.Z)().mark(function o(t){return(0,u.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,W.WY)("/kitchen/api/systemconfig/GetCosRequestSignURL",{method:"POST",data:t}));case 1:case"end":return a.stop()}},o)})),ut.apply(this,arguments)}function Mt(o){return st.apply(this,arguments)}function st(){return st=(0,A.Z)((0,u.Z)().mark(function o(t){return(0,u.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,W.WY)("/kitchen/api/GoodsBom/AddBom",{method:"Post",data:t}));case 1:case"end":return a.stop()}},o)})),st.apply(this,arguments)}function zt(o){return lt.apply(this,arguments)}function lt(){return lt=(0,A.Z)((0,u.Z)().mark(function o(t){return(0,u.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,W.WY)("/kitchen/api/goodes/DelGoodsBom?Id=".concat(t),{method:"DELETE"}));case 1:case"end":return a.stop()}},o)})),lt.apply(this,arguments)}function Ht(o){return it.apply(this,arguments)}function it(){return it=(0,A.Z)((0,u.Z)().mark(function o(t){return(0,u.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,W.WY)("/kitchen/api/goods-unit/type",{method:"Post",data:t}));case 1:case"end":return a.stop()}},o)})),it.apply(this,arguments)}function Jt(o){return dt.apply(this,arguments)}function dt(){return dt=(0,A.Z)((0,u.Z)().mark(function o(t){return(0,u.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,W.WY)("/kitchen/api/goodsattribute/getbygoodsidattribute?id="+t,{method:"Get"}));case 1:case"end":return a.stop()}},o)})),dt.apply(this,arguments)}function qt(o){return ct.apply(this,arguments)}function ct(){return ct=(0,A.Z)((0,u.Z)().mark(function o(t){return(0,u.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,W.WY)("/kitchen/api/product/product-list",{method:"Post",data:t}));case 1:case"end":return a.stop()}},o)})),ct.apply(this,arguments)}function Qt(o){return ht.apply(this,arguments)}function ht(){return ht=(0,A.Z)((0,u.Z)().mark(function o(t){return(0,u.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,W.WY)("/kitchen/api/bom/getbomtypepage",{method:"Post",data:t}));case 1:case"end":return a.stop()}},o)})),ht.apply(this,arguments)}function Xt(o){return ft.apply(this,arguments)}function ft(){return ft=(0,A.Z)((0,u.Z)().mark(function o(t){return(0,u.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,W.WY)("/kitchen/api/goodsattribute/addgoodsbomattribute",{method:"Post",data:t}));case 1:case"end":return a.stop()}},o)})),ft.apply(this,arguments)}function _t(o){return mt.apply(this,arguments)}function mt(){return mt=(0,A.Z)((0,u.Z)().mark(function o(t){return(0,u.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,W.WY)("/kitchen/api/goodes/getbyidgoods?id="+t,{method:"Get"}));case 1:case"end":return a.stop()}},o)})),mt.apply(this,arguments)}function ea(o){return gt.apply(this,arguments)}function gt(){return gt=(0,A.Z)((0,u.Z)().mark(function o(t){return(0,u.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,W.WY)("/kitchen/api/goodstechnology/GetGoodsTechnology",{method:"Post",data:t}));case 1:case"end":return a.stop()}},o)})),gt.apply(this,arguments)}function Ga(o){return pt.apply(this,arguments)}function pt(){return pt=_asyncToGenerator(_regeneratorRuntime().mark(function o(t){return _regeneratorRuntime().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",request("/kitchen/api/goodstechnology/gettechnologyactionList?GoodstechnologyId="+t,{method:"Get"}));case 1:case"end":return a.stop()}},o)})),pt.apply(this,arguments)}function ta(){return vt.apply(this,arguments)}function vt(){return vt=(0,A.Z)((0,u.Z)().mark(function o(){return(0,u.Z)().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.abrupt("return",(0,W.WY)("/kitchen/api/goodstechnology/gettechnologyactionlistall",{method:"Get"}));case 1:case"end":return d.stop()}},o)})),vt.apply(this,arguments)}function aa(o){return yt.apply(this,arguments)}function yt(){return yt=(0,A.Z)((0,u.Z)().mark(function o(t){return(0,u.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,W.WY)("/kitchen/api/goodstechnology/addgoodstechnologyaction",{method:"Post",data:t}));case 1:case"end":return a.stop()}},o)})),yt.apply(this,arguments)}function Et(o){return Zt.apply(this,arguments)}function Zt(){return Zt=(0,A.Z)((0,u.Z)().mark(function o(t){return(0,u.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,W.WY)("/kitchen/api/goodstechnology/getGoodstechnologyaction?goodsId="+t,{method:"Get"}));case 1:case"end":return a.stop()}},o)})),Zt.apply(this,arguments)}function na(o){return bt.apply(this,arguments)}function bt(){return bt=(0,A.Z)((0,u.Z)().mark(function o(t){return(0,u.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,W.WY)("/kitchen/api/goodstechnology/deletegoodstechnologyaction?id="+t,{method:"Get"}));case 1:case"end":return a.stop()}},o)})),bt.apply(this,arguments)}function ra(){return St.apply(this,arguments)}function St(){return St=(0,A.Z)((0,u.Z)().mark(function o(){return(0,u.Z)().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.abrupt("return",(0,W.WY)("/kitchen/api/goodstechnology/getdevicetechnology",{method:"Get"}));case 1:case"end":return d.stop()}},o)})),St.apply(this,arguments)}function oa(){return jt.apply(this,arguments)}function jt(){return jt=(0,A.Z)((0,u.Z)().mark(function o(){return(0,u.Z)().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.abrupt("return",(0,W.WY)("/kitchen/api/goodes/getbytypebatching",{method:"Get"}));case 1:case"end":return d.stop()}},o)})),jt.apply(this,arguments)}var e=r(85893),ua=function(t){var d=B.Z.Option,a=B.Z.OptGroup,fe=(0,n.useState)([]),ne=(0,i.Z)(fe,2),me=ne[0],ge=ne[1];return(0,e.jsx)(nt.Z,{title:"\u5173\u8054\u5546\u54C1\u914D\u65B9",width:640,visible:t.createModalVisible,bodyStyle:{padding:"32px 40px 1px 48px"},footer:null,onCancel:function(){t.onCancel()},destroyOnClose:!0,children:(0,e.jsxs)(x.Z,{labelCol:{span:4},layout:"horizontal",preserve:!1,onFinish:t.onFinish,children:[(0,e.jsx)(x.Z.Item,{name:"BomType",label:"\u72B6\u6001",rules:[{required:!0,message:"\u914D\u65B9\u7C7B\u578B"}],children:(0,e.jsx)(B.Z,{placeholder:"\u8BF7\u9009\u914D\u65B9\u7C7B\u578B",onChange:function(oe){Yt({current:1,pageSize:1e7,IsMain:oe}).then(function(le){var ue=le.data.data;ge(ue),console.log(ue)})},children:(0,e.jsxs)(a,{children:[(0,e.jsx)(B.Z.Option,{value:"1",children:"\u4E3B\u6599\u914D\u65B9"}),(0,e.jsx)(B.Z.Option,{value:"0",children:"\u8F85\u6599\u914D\u65B9"})]})})}),(0,e.jsx)(x.Z.Item,{name:"bomId",label:"\u914D\u65B9\u4FE1\u606F",rules:[{required:!0,message:"\u914D\u65B9\u4FE1\u606F"}],children:(0,e.jsx)(B.Z,{showSearch:!0,optionFilterProp:"children",placeholder:"\u8BF7\u9009\u914D\u65B9\u4FE1\u606F",children:me.map(function(re,oe){return(0,e.jsx)(d,{index:oe,value:re.id,children:re.name},re.id)})})}),(0,e.jsxs)(x.Z.Item,{children:[(0,e.jsx)(ae.Z,{htmlType:"button",style:{float:"right",left:10},onClick:t.onCancel,children:"\u53D6\u6D88"}),(0,e.jsx)(ae.Z,{type:"primary",htmlType:"submit",style:{float:"right"},children:"\u4FDD\u5B58"})]})]})})},sa=ua,Fa=r(88983),Qe=r(47933),Ea=r(71153),Dt=r(60331),Le=r(86582),la=r(50727),ia=function(t){var d,a=B.Z.Option,fe=B.Z.OptGroup,ne=(0,n.useState)([]),me=(0,i.Z)(ne,2),ge=me[0],re=me[1],oe=(0,n.useState)([]),le=(0,i.Z)(oe,2),ue=le[0],Te=le[1],ye=(0,n.useState)([]),Ze=(0,i.Z)(ye,2),se=Ze[0],be=Ze[1],Se=(0,n.useState)([]),je=(0,i.Z)(Se,2),_=je[0],xe=je[1],ie=(0,n.useState)([]),Ce=(0,i.Z)(ie,2),Ie=Ce[0],Ae=Ce[1],ke=(0,n.useRef)(),ee=x.Z.useForm(),Ge=(0,i.Z)(ee,1),P=Ge[0];(0,n.useEffect)(function(){if(console.log("111111111"),console.log(t.defaultmatedata),P.setFieldsValue({bomName:t.goodsname}),t.defaultmatedata){var C=[];t.defaultmatedata.forEach(function($,F){var O={id:F,batchingId:$,dosage:0};C.push(O)}),Ae(C.map(function($){return $.id})),xe(C)}},[]);var Fe=[{title:"\u7269\u6599\u540D\u79F0",dataIndex:"batchingId",formItemProps:function($,F){var O=F.rowIndex;return{rules:O>1?[{required:!0,message:"\u6B64\u9879\u4E3A\u5FC5\u586B\u9879"}]:[]}},valueType:"select",fieldProps:{showSearch:!0,options:t.matedata.map(function(C,$){return{label:C.name,value:C.id}})},width:"25%"},{title:"\u7528\u91CF",dataIndex:"dosage",valueType:"digit",width:"15%"},{title:"\u64CD\u4F5C",valueType:"option",width:"15%",render:function(){return null}}],we=function(){P.validateFields().then(function($){var F=!0,O=$;console.log(_),se.length==0?(F=!1,E.default.error("\u8BF7\u9009\u62E9\u5546\u54C1\u5C5E\u6027")):O.shuxing=se,_.length==0?(F=!1,E.default.error("\u8BF7\u9009\u62E9\u7269\u6599")):O.mate=_.map(function(te){return{batchingId:te.batchingId,dosage:te.dosage}}),F&&(P.resetFields(),t.onFinish(O),xe([]))}).catch(function($){E.default.error("\u8BF7\u586B\u5199\u5FC5\u586B\u4FE1\u606F")})},de=function($){for(var F=$.target,O=F.name,te=F.value,K="",Q=(0,Le.Z)(se),Z=0;Z0&&t.technologyattrdata.attributes.length>0&&(Se(t.technologyattrdata.attributes[0]),ke(!0),P.current=!1),(Z=ee.current)===null||Z===void 0||Z.setFieldsValue(t.technologyattrdata)},[t.technologyattrdata]);var Fe=(0,n.useState)(""),we=(0,i.Z)(Fe,2),de=we[0],C=we[1],$=[{title:"\u4E3B\u952E",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0,render:function(y,h){return(0,e.jsx)("a",{onClick:function(){},children:y})}},{title:"\u540D\u79F0",dataIndex:"name",valueType:"textarea",ellipsis:!0,search:!1}],F=[{dataIndex:"items",valueType:"dependency",name:["chnologyId"],columns:function(y){var h=y.chnologyId,S=[];if(h){console.log("chnologyId",h);var T=t.technologyattralldata.filter(function(w){return w.goodstechnologyId==h});if(T.length>0)T.map(function(w,H){var J={},pe={title:function(){return(0,e.jsx)("span",{className:Xe().formlable,children:w.actionName})},dataIndex:"actionvalue-"+w.id+":"+w.actionName,valueType:w.actionType,width:"md"};if(w.actionType=="select"&&w.actionValue){for(var N=JSON.parse(w.actionValue),M=0;M0&&S?aa(m).then(function(H){if(H.data){var J;E.default.success("\u4FDD\u5B58\u6210\u529F"),ie([]),ee==null||(J=ee.current)===null||J===void 0||J.resetFields(),Se({}),ke(!1),t.updadata()}else E.default.error("\u4FDD\u5B58\u5931\u8D25")}):E.default.error("\u6CA1\u6709\u8981\u4FDD\u5B58\u7684\u6570\u636E\u6216\u6570\u636E\u683C\u5F0F\u4E0D\u6B63\u786E")};return(0,e.jsxs)("div",{children:[(0,e.jsx)(xt.A,{layout:"horizontal",formRef:ee,submitter:{submitButtonProps:{style:{display:"none"}},render:function(y,h){return[].concat((0,Le.Z)(h),[(0,e.jsx)(ae.Z,{htmlType:"button",onClick:Q,children:"\u4FDD\u5B58"},"format")])}},children:(0,e.jsxs)(ma.u,{name:"attributes",creatorButtonProps:{creatorButtonText:"\u6DFB\u52A0\u5DE5\u827A"},copyIconProps:!1,initialValue:t.technologyattrdata,actionGuard:{beforeAddRow:function(){var Z=(0,A.Z)((0,u.Z)().mark(function h(S,T){return(0,u.Z)().wrap(function(k){for(;;)switch(k.prev=k.next){case 0:if(!(Object.keys(be).length>0)){k.next=5;break}return E.default.error("\u5F53\u524D\u5904\u4E8E\u7F16\u8F91\u72B6\u6001\u65E0\u6CD5\u65B0\u589E\uFF0C\u5220\u9664\u5F53\u524D\u7F16\u8F91\u5DE5\u827A\u540E\u5728\u65B0\u589E"),k.abrupt("return",!1);case 5:return k.abrupt("return",!0);case 6:case"end":return k.stop()}},h)}));function y(h,S){return Z.apply(this,arguments)}return y}(),beforeRemoveRow:function(){var Z=(0,A.Z)((0,u.Z)().mark(function h(S){return(0,u.Z)().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return Se({}),ke(!1),m.abrupt("return",!0);case 3:case"end":return m.stop()}},h)}));function y(h){return Z.apply(this,arguments)}return y}()},itemRender:function(y,h){var S=y.listDom,T=y.action,m=h.record,k=h.index;return(0,e.jsx)(Ne.Z,{title:"\u5DE5\u5E8F\u53F7"+(m.sort==null?t.maxsort+(k+1):m.sort),bordered:!0,extra:T,bodyStyle:{padding:15},headStyle:{padding:"0px 24px"},style:{marginBlockEnd:8},children:S})},creatorRecord:{chnologyId:""},children:[(0,e.jsx)(xt.A.Item,{name:"chnologyId",style:{float:"left"},children:(0,e.jsx)(B.Z,{name:"chnologyId",style:{width:"90px"},disabled:Ae,options:t.goodstechnologydata,onChange:function(){var Z=(0,A.Z)((0,u.Z)().mark(function y(h,S){return(0,u.Z)().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:K(h,S);case 1:case"end":return m.stop()}},y)}));return function(y,h){return Z.apply(this,arguments)}}()})}),(0,e.jsx)(xt.A.Item,{isListField:!0,name:"items",style:{float:"left",width:"75%"},children:(0,e.jsx)(ga.Z,{layoutType:"Embed",type:"custom",shouldUpdate:!0,formItemProps:{forceRender:!0,labelAlign:"left"},columns:F})})]})}),(0,e.jsx)(nt.Z,{title:"\u52A8\u4F5C\u914D\u7F6E",width:640,visible:re,bodyStyle:{padding:"32px 40px 1px 48px"},focusTriggerAfterClose:!1,onCancel:function(){P.current=!1,oe(!1),ie([])},onOk:function(){P.current=!1,oe(!1)},destroyOnClose:!0,maskClosable:!1,children:(0,e.jsx)(L.ZP,{headerTitle:"\u7269\u6599\u5217\u8868",rowKey:"id",actionRef:Ge,search:{labelWidth:120},columns:$,request:function(y){var h="",S=[];if(de)h=de;else{h=t.technologyattrdata.attributes[0].name;var T=Object.keys(t.technologyattrdata.attributes[0]),m=T.filter(function(G){return G!=="chnologyId"&&G!=="id"&&G!=="sort"&&G!=="name"});m.map(function(G){var w=G.replace("actionvalue-","").split(":");S.push({id:w[0],name:w[1]})})}var k=t.batchingdata.filter(function(G){return G.typeName==h});return ie(S),ye(S.map(function(G){return G.id})),{data:k,success:!0,total:k.length}},rowSelection:{selectedRowKeys:Te,onSelect:function(y,h){var S=(0,Le.Z)(Te),T=[],m=S.findIndex(function(k){return k===y.id});h?(m<0&&S.push(y.id),T.push({id:y.id,name:y.name})):m>-1&&S.splice(m,1),ye(S),console.log(S)},onSelectAll:function(y,h,S){var T=(0,Le.Z)(Te);y?h.forEach(function(m){if(!!m){var k=T.findIndex(function(G){return G===m.id});k<0&&T.push(m.id)}}):S.forEach(function(m){var k=T.findIndex(function(G){return G===m.id});k>-1&&T.splice(k,1)}),ye(T)},onChange:function(y,h){ie(h)}}})})]})},va=pa,ya=function(t){var d=(0,n.useState)(""),a=(0,i.Z)(d,2),fe=a[0],ne=a[1],me=(0,n.useState)([]),ge=(0,i.Z)(me,2),re=ge[0],oe=ge[1],le=(0,n.useState)([]),ue=(0,i.Z)(le,2),Te=ue[0],ye=ue[1],Ze=(0,n.useState)([]),se=(0,i.Z)(Ze,2),be=se[0],Se=se[1],je=(0,n.useState)([]),_=(0,i.Z)(je,2),xe=_[0],ie=_[1],Ce=(0,n.useState)([]),Ie=(0,i.Z)(Ce,2),Ae=Ie[0],ke=Ie[1],ee=(0,n.useState)({}),Ge=(0,i.Z)(ee,2),P=Ge[0],Fe=Ge[1],we=(0,n.useState)([]),de=(0,i.Z)(we,2),C=de[0],$=de[1],F=(0,n.useState)([]),O=(0,i.Z)(F,2),te=O[0],K=O[1],Q=(0,n.useState)(1),Z=(0,i.Z)(Q,2),y=Z[0],h=Z[1],S=(0,n.useState)([]),T=(0,i.Z)(S,2),m=T[0],k=T[1],G=(0,n.useState)([]),w=(0,i.Z)(G,2),H=w[0],J=w[1],pe=(0,n.useState)([]),N=(0,i.Z)(pe,2),M=N[0],Be=N[1],Re=(0,n.useState)("block"),X=(0,i.Z)(Re,2),$e=X[0],wt=X[1];(0,n.useEffect)(function(){Bt()},[]);var Bt=function(){_t(t.goodsid).then(function(l){if(l.succeeded){Fe(l.data),l.data.goodsAttributeList.length==0&&wt("none");var c=[{key:"1",label:"\u5546\u54C1\u540D\u79F0",children:l.data.name},{key:"2",label:"\u5546\u54C1\u4EF7\u683C",children:l.data.price},{key:"3",label:"\u5546\u54C1\u5927\u7C7B",children:l.data.parentTypeIDName},{key:"4",label:"\u5546\u54C1\u5C0F\u7C7B",children:l.data.goodsTypeName},{key:"5",label:"\u5546\u54C1\u5355\u4F4D",children:l.data.goodsUintName},{key:"6",label:"\u5957\u9910\u5C5E\u6027",children:l.data.goodsAttribute==0?"\u5355\u54C1":"\u5957\u9910"}];ye(c)}else E.default.error("\u67E5\u8BE2\u5546\u54C1\u4FE1\u606F\u5931\u8D25")}),ea().then(function(l){var c=l.data,b=[];c.length>0&&(c.forEach(function(I){b.push({label:I.name,value:I.id,isBatch:I.isBatch})}),Se(b))}),ta().then(function(l){ke(l.data)}),Et(t.goodsid).then(function(l){if(l.data.length>0){K(l.data);var c=l.data.reduce(function(b,I){return b.sort>I.sort?b:I});h(c.sort)}}),oa().then(function(l){k(l.data)}),ra().then(function(l){if(J(l.data),l.data.length>0){var c=l.data.map(function(b){return{value:b.id,label:b.deviceName}});Be(c)}})},_e=function(l){var c=l.target,b=c.name,I=c.value;console.log(b),console.log(I);for(var z="",ce=(0,Le.Z)(re),Oe=0;Oe0){K(l.data);var c=l.data.reduce(function(I,z){return I.sort>z.sort?I:z});h(c.sort);var b={attributes:[]};ie(b)}})},It=function(l){var c=H.find(function(I){return I.id==l});if(console.log("wwwwwwwwwwwwwwwwwwwwwww"),console.log(l),console.log(c),c&&c.goodsTechnologyInfo.length>0){var b=c.goodsTechnologyInfo.map(function(I){return{value:I.goodsTechnologyId,label:I.name}});console.log(b)}};return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(q.Z,{bodyStyle:{padding:15},children:[(0,e.jsx)("div",{style:{fontSize:16,marginBottom:5,color:"#1890ff",fontWeight:600},children:"\u5546\u54C1\u4FE1\u606F"}),(0,e.jsx)("div",{style:{float:"left"},children:(0,e.jsx)("img",{style:{width:100,height:100},src:P.imgUrl})}),(0,e.jsx)(Rt.Z,{style:{float:"left",width:"71%",marginLeft:"10px"},labelStyle:{fontSize:16,fontWeight:600},children:Te.map(function(V,l){return(0,e.jsx)(Rt.Z.Item,{label:V.label,children:V.children},l)})})]}),(0,e.jsxs)(q.Z,{bodyStyle:{padding:15},style:{display:$e},children:[(0,e.jsx)("div",{style:{fontSize:16,marginBottom:5,color:"#1890ff",fontWeight:600},children:"\u5546\u54C1\u5C5E\u6027"}),P.goodsAttributeList==null?"":P.goodsAttributeList.map(function(V,l){return(0,e.jsx)("div",{style:{marginLeft:10},children:(0,e.jsxs)("div",{children:[(0,e.jsxs)("span",{style:{marginRight:10},children:[" ",(0,e.jsx)(Dt.Z,{color:"blue",style:{fontSize:14,fontWeight:600},children:V.attributeName}),"\uFF1A"]}),(0,e.jsx)("span",{children:(0,e.jsx)(Qe.ZP.Group,{name:"radiogroup"+l,buttonStyle:"solid",onChange:_e,children:V.goodsAttributeValueList.map(function(c,b){return(0,e.jsx)(Qe.ZP.Button,{name:b,value:c.goodsAttributeValuId,style:{marginRight:22,marginTop:10},children:c.attributeValue},b)})})})]})})})]}),(0,e.jsxs)(q.Z,{bodyStyle:{padding:15},children:[(0,e.jsxs)("div",{style:{fontSize:16,marginBottom:5,color:"#1890ff",fontWeight:600},children:["\u5DE5\u827A\u8BBE\u8BA1",(0,e.jsx)(B.Z,{showSearch:!0,style:{width:200},placeholder:"\u8BF7\u9009\u62E9\u8BBE\u5907",optionFilterProp:"children",filterOption:function(l,c){var b;return((b=c==null?void 0:c.label)!==null&&b!==void 0?b:"").includes(l)},filterSort:function(l,c){var b,I;return((b=l==null?void 0:l.label)!==null&&b!==void 0?b:"").toLowerCase().localeCompare(((I=c==null?void 0:c.label)!==null&&I!==void 0?I:"").toLowerCase())},onChange:It,options:M})]}),(0,e.jsxs)(Ne.Z,{split:"vertical",children:[(0,e.jsxs)(Ne.Z,{title:"\u7F16\u8F91\u5DE5\u827A",type:"inner",colSpan:"33%",bodyStyle:{padding:5},headerBordered:!0,headStyle:{paddingLeft:"45%"},children:[(0,e.jsx)("div",{style:{textAlign:"center",marginBottom:10,color:"brown"},children:fe}),(0,e.jsx)(va,{maxsort:y,batchingdata:m,updadata:et,goodsid:t.goodsid,technologyattralldata:Ae,checkvalue:re,technologyattrdata:xe,goodstechnologydata:be})]}),(0,e.jsx)(Ne.Z,{title:"\u67E5\u770B\u5DE5\u827A",type:"inner",headStyle:{paddingLeft:"45%"},bodyStyle:{padding:5},headerBordered:!0,children:(0,e.jsx)("div",{style:{height:360},children:te==null?"":te.map(function(V,l){var c=JSON.parse(V.actionJson);return(0,e.jsx)(Ne.Z,{title:"\u5DE5\u5E8F\u53F7"+V.sort,bordered:!0,bodyStyle:{padding:5},headStyle:{padding:"0px 5px"},extra:[(0,e.jsx)(ae.Z,{type:"link",onClick:function(I){Ue(I,V,c)},children:"\u7F16\u8F91"}),(0,e.jsx)(ca.Z,{onClick:function(I){Tt(I,V,c)}})],style:{marginBlockEnd:8,width:353,float:"left",height:"200px",marginRight:"10px","overflow-y":"scroll"},children:(0,e.jsxs)("div",{style:{lineHeight:"200px"},children:[(0,e.jsx)("div",{className:Xe().formlable,style:{float:"left",height:"70px",lineHeight:"65px"},children:V.stepName}),(0,e.jsx)("div",{style:{float:"left",marginBottom:"5px",width:"67%"},children:c.map(function(b){return(0,e.jsxs)("div",{style:{float:"left",marginBottom:"5px"},children:[(0,e.jsx)("div",{className:Xe().formlable,style:{display:"block",float:"left"},children:b.actionName}),(0,e.jsxs)("div",{className:Xe().formlable,style:{display:"block",float:"left"},children:[" ",b.actionValue]})]})})})]})})})})})]})]})]})},Za=ya,Ct=r(4795),ba=r(9669),Sa=r.n(ba),$a=Ft.Z.Step,Oa=B.Z.Option,$t=B.Z.OptGroup,ja=he.Z.TextArea,xa=function(t){var d,a,fe,ne,me=x.Z.useForm(),ge=(0,i.Z)(me,1),re=ge[0],oe=(0,n.useState)([]),le=(0,i.Z)(oe,2),ue=le[0],Te=le[1],ye=(0,n.useState)([]),Ze=(0,i.Z)(ye,2),se=Ze[0],be=Ze[1],Se=(0,n.useState)([]),je=(0,i.Z)(Se,2),_=je[0],xe=je[1],ie=(0,n.useState)([]),Ce=(0,i.Z)(ie,2),Ie=Ce[0],Ae=Ce[1],ke=(0,n.useState)(),ee=(0,i.Z)(ke,2),Ge=ee[0],P=ee[1],Fe=(0,n.useState)(!1),we=(0,i.Z)(Fe,2),de=we[0],C=we[1],$=(0,n.useState)([]),F=(0,i.Z)($,2),O=F[0],te=F[1],K=(0,n.useRef)(),Q=(0,n.useState)("basis"),Z=(0,i.Z)(Q,2),y=Z[0],h=Z[1],S=(0,n.useState)(t.location.query.values?t.location.query.values.imgUrl:null),T=(0,i.Z)(S,2),m=T[0],k=T[1],G=(0,n.useState)(0),w=(0,i.Z)(G,2),H=w[0],J=w[1],pe=(0,n.useState)([]),N=(0,i.Z)(pe,2),M=N[0],Be=N[1],Re=(0,n.useState)([]),X=(0,i.Z)(Re,2),$e=X[0],wt=X[1],Bt=(0,n.useState)([]),_e=(0,i.Z)(Bt,2),Ue=_e[0],Tt=_e[1],et=function(){var j=(0,A.Z)((0,u.Z)().mark(function g(f){var p;return(0,u.Z)().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return p=E.default.loading("\u6B63\u5728\u6DFB\u52A0"),console.log(f),v.prev=2,t.location.query.isAdd&&(f.id=null),f.imgUrl=m||f.imgUrl,f.defaultMate?f.defaultMate=f.defaultMate.join():f.defaultMate="",v.next=8,(0,Ct.Rq)(JSON.stringify(f)).then(function(U){U.data?(E.default.success("\u6DFB\u52A0\u6210\u529F"),W.m8.push({pathname:"/goods/newgoods"})):E.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01")});case 8:return p(),v.abrupt("return",!0);case 12:return v.prev=12,v.t0=v.catch(2),p(),E.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),v.abrupt("return",!1);case 17:case"end":return v.stop()}},g,null,[[2,12]])}));return function(f){return j.apply(this,arguments)}}(),It={name:"file",showUploadList:!1,multiple:!1,accept:".png, .jpg, .jpeg, .gif",headers:{"Content-Type":"application/octet-stream"},customRequest:function(g){var f=g.action,p=g.file,D=g.headers,v=g.onError,U=g.onProgress,Ot=g.onSuccess,wa=g.withCredentials;console.log("\u4E0A\u4F20\u56FE\u7247",p);var Ba=p.name.lastIndexOf("."),Ta=p.name.substr(Ba+1),Pt=null;return Kt({directory:"goods",fileExtension:Ta,method:"PUT"}).then(function(At){f=At.allUrl;var Vt=new FileReader;Vt.readAsArrayBuffer(p),Vt.onload=function(Ia){Pt=Ia.target.result,Sa().put(f,Pt,{withCredentials:wa,headers:D,onUploadProgress:function(Wt){var Aa=Wt.total,ka=Wt.loaded;U({percent:Math.round(ka/Aa*100).toFixed(2)},p)}}).then(function(tt){console.log("onSuccess",tt,p),(tt.status==200||tt.statusText=="OK")&&k(At.seeUrl)}).catch(v)}}),{abort:function(){console.log("upload progress is aborted.")}}}},V=(0,n.useState)({operationKey:t.location.query.tabStatus?t.location.query.tabStatus:"basis",tabActiveKey:t.location.query.tabStatus?t.location.query.tabStatus:"basis"}),l=(0,i.Z)(V,2),c=l[0],b=l[1];(0,n.useEffect)(function(){h(c.tabActiveKey)},[c]);var I=function(g){if(H===1){E.default.info("\u5957\u9910\u4E0D\u80FD\u8BBE\u7F6E\u914D\u65B9");return}b({operationKey:g,tabActiveKey:g})},z=[{key:"basis",tab:"\u5546\u54C1\u57FA\u7840\u4FE1\u606F"},{key:"goodsbom",tab:"\u5546\u54C1\u914D\u65B9"},{key:"goodstechnologymaken",tab:"\u5546\u54C1\u5DE5\u827A"}],ce=[{title:"\u4E3B\u952E",dataIndex:"id",key:"id",hideInTable:!0,hideInSearch:!0,tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key"},{title:"\u914D\u65B9\u540D\u79F0",key:"name",dataIndex:"name",valueType:"textarea"},{title:"\u914D\u65B9\u7C7B\u578B",dataIndex:"isMain",hideInForm:!0,valueEnum:{false:{text:"\u8F85\u6599",status:"Processing"},true:{text:"\u4E3B\u6599",status:"Success"}}},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(g,f){return[(0,e.jsx)("a",{type:"primary",onClick:function(){var D=E.default.loading("\u6B63\u5728\u5220\u9664");try{return zt(f.id),D(),E.default.success("\u5220\u9664\u6210\u529F\uFF0C\u5373\u5C06\u5237\u65B0"),K.current.reload(),!0}catch(v){return D(),E.default.error("\u5220\u9664\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5"),K.current.reload(),!1}},children:"\u5220\u9664"},"primary")]}}],Oe={basis:(0,e.jsx)(q.Z,{title:"\u5546\u54C1\u57FA\u7840\u4FE1\u606F",style:{marginBottom:24},bordered:!1,children:(0,e.jsxs)(x.Z,{labelCol:{span:4},wrapperCol:{span:6},layout:"horizontal",preserve:!1,initialValues:t.location.query.values,onFinish:et,children:[(0,e.jsx)(x.Z.Item,{name:"id",hidden:!0,children:(0,e.jsx)(he.Z,{})}),(0,e.jsx)(x.Z.Item,{name:"code",label:"\u5546\u54C1\u7F16\u7801",hidden:!0,children:(0,e.jsx)(he.Z,{disabled:!0})}),(0,e.jsx)(x.Z.Item,{name:"name",label:"\u5546\u54C1\u540D\u79F0",rules:[{required:!0}],children:(0,e.jsx)(he.Z,{})}),(0,e.jsx)(x.Z.Item,{name:"goodsUintId",label:"\u5546\u54C1\u5355\u4F4D",rules:[{required:!0}],children:(0,e.jsx)(B.Z,{children:se==null?"":se.map(function(j,g){return(0,e.jsx)(B.Z.Option,{index:g,value:j.id,children:j.name},j.id)})})}),(0,e.jsx)(x.Z.Item,{name:"price",label:"\u5546\u54C1\u4EF7\u683C",rules:[{required:!0}],children:(0,e.jsx)(De.Z,{placeholder:"\u4EF7\u683C",min:0})}),(0,e.jsx)(x.Z.Item,{name:"vipPrice",label:"\u4F1A\u5458\u4EF7\u683C",children:(0,e.jsx)(De.Z,{placeholder:"\u4F1A\u5458\u4EF7",min:0})}),(0,e.jsx)(x.Z.Item,{name:"parentTypeID",label:"\u5546\u54C1\u5927\u7C7B",rules:[{required:!0}],children:(0,e.jsx)(B.Z,{children:_==null?"":_.map(function(j,g){return(0,e.jsx)(B.Z.Option,{index:g,value:j.id,children:j.name},j.id)})})}),(0,e.jsx)(x.Z.Item,{name:"goodsTypeId",label:"\u5546\u54C1\u5C0F\u7C7B",rules:[{required:!0}],children:(0,e.jsx)(B.Z,{children:ue==null?"":ue.map(function(j,g){return(0,e.jsx)(B.Z.Option,{index:g,value:j.id,children:j.goodsType_Name},j.id)})})}),(0,e.jsx)(x.Z.Item,{name:"goodsAttribute",label:"\u5546\u54C1\u5C5E\u6027",defaultValue:0,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5546\u54C1\u5C5E\u6027"}],children:(0,e.jsx)(B.Z,{placeholder:"\u8BF7\u9009\u62E9\u5546\u54C1\u5C5E\u6027",onChange:function(g){J(g)},children:(0,e.jsxs)($t,{children:[(0,e.jsx)(B.Z.Option,{value:0,children:"\u5355\u54C1"}),(0,e.jsx)(B.Z.Option,{value:1,children:"\u5957\u9910"})]})})}),(0,e.jsx)(x.Z.Item,{name:"status",label:"\u72B6\u6001",defaultValue:0,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u72B6\u6001"}],children:(0,e.jsx)(B.Z,{placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001",children:(0,e.jsxs)($t,{children:[(0,e.jsx)(B.Z.Option,{value:0,children:"\u6B63\u5E38"}),(0,e.jsx)(B.Z.Option,{value:1,children:"\u505C\u7528"})]})})}),(0,e.jsx)(x.Z.Item,{name:"foreignKeyRe",label:"\u5173\u8054\u5916\u952E",rules:[{required:!1}],children:(0,e.jsx)(he.Z,{})}),(0,e.jsx)(x.Z.Item,{name:"defaultMate",label:"\u9ED8\u8BA4\u539F\u6599",rules:[{required:!1}],children:(0,e.jsx)(B.Z,{mode:"multiple",allowClear:!0,children:Ue==null?"":Ue.map(function(j,g){return(0,e.jsx)(B.Z.Option,{index:g,value:j.id,children:j.name},j.id)})})}),(0,e.jsx)(x.Z.Item,{name:"remark",label:"\u5907\u6CE8",children:(0,e.jsx)(he.Z,{})}),(0,e.jsxs)(x.Z.Item,{name:"design",label:"\u89C4\u683C",children:["\xA0 \xA0 \xA0 \xA0 \xA0 ",(0,e.jsx)(ja,{rows:4}),"\xA0 \xA0 \xA0 \xA0 \xA0 "]}),(0,e.jsx)(x.Z.Item,{name:"imgUrl",hidden:!0,children:(0,e.jsx)(he.Z,{})}),(0,e.jsx)(x.Z.Item,{name:"imgUrl1",label:"\u5546\u54C1\u56FE\u7247\u5730\u5740",children:(0,e.jsx)(Pe.Z,(0,Ee.Z)((0,Ee.Z)({},It),{},{children:m?(0,e.jsx)("img",{src:m,alt:"avatar",style:{width:"100%"}}):(0,e.jsx)(ae.Z,{icon:(0,e.jsx)(Ve.Z,{}),children:"\u4E0A\u4F20"})}))}),(0,e.jsx)(x.Z.Item,{label:"\u662F\u5426\u79F0\u91CD",name:"isWeigh",valuePropName:"checked",initialValue:"false",children:(0,e.jsx)(Ke.Z,{checkedChildren:"\u662F",unCheckedChildren:"\u5426",defaultChecked:"false"})}),(0,e.jsx)(x.Z.Item,{label:"\u662F\u5426\u591A\u5C5E\u6027",name:"isAttrubute",children:(0,e.jsx)(Ke.Z,{checkedChildren:"\u662F",unCheckedChildren:"\u5426",defaultChecked:!1})}),(0,e.jsx)(x.Z.Item,{children:(0,e.jsx)(ae.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})}),goodsbom:(0,e.jsxs)(q.Z,{title:"\u5546\u54C1\u914D\u65B9",style:{marginBottom:24},bordered:!1,children:[(0,e.jsx)(L.ZP,{columns:ce,actionRef:K,rowKey:"id",search:!1,toolBarRender:function(){return[(0,e.jsxs)(ae.Z,{type:"primary",onClick:function(){var f,p;((f=t.location.query.values)===null||f===void 0?void 0:f.id)==null||((p=t.location.query.values)===null||p===void 0?void 0:p.id)==null?E.default.info("\u8BF7\u5148\u6DFB\u52A0\u5546\u54C1\u57FA\u7840\u4FE1\u606F!"):P(!0)},children:[(0,e.jsx)(qe.Z,{})," \u9009\u62E9\u914D\u65B9"]},"primary"),(0,e.jsxs)(ae.Z,{type:"primary",onClick:(0,A.Z)((0,u.Z)().mark(function g(){var f,p;return(0,u.Z)().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:if(!(((f=t.location.query.values)===null||f===void 0?void 0:f.id)==null||((p=t.location.query.values)===null||p===void 0?void 0:p.id)==null)){v.next=4;break}E.default.info("\u8BF7\u5148\u6DFB\u52A0\u5546\u54C1\u57FA\u7840\u4FE1\u606F!"),v.next=7;break;case 4:return v.next=6,Jt(t.location.query.values.id).then(function(U){Be(U.data)});case 6:C(!0);case 7:case"end":return v.stop()}},g)})),children:[(0,e.jsx)(qe.Z,{})," \u65B0\u5EFA\u914D\u65B9"]},"primary")]},request:function(){var j=(0,A.Z)((0,u.Z)().mark(function g(f){var p,D;return(0,u.Z)().wrap(function(U){for(;;)switch(U.prev=U.next){case 0:if(!(t.location.query.values.id==null||t.location.query.values.id==null)){U.next=3;break}U.next=9;break;case 3:return f.GoodsId=t.location.query.values.id,p=0,U.next=7,Ut(f);case 7:return D=U.sent,U.abrupt("return",{data:D.data.data,success:!0,total:p});case 9:case"end":return U.stop()}},g)}));return function(g){return j.apply(this,arguments)}}(),rowSelection:{onChange:function(g,f){return te(f)}}}),(0,e.jsx)(sa,{onFinish:function(){var j=(0,A.Z)((0,u.Z)().mark(function g(f){var p;return(0,u.Z)().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return console.log("value",f),f.GoodsId=t.location.query.values.id,p=!1,v.next=5,Mt(f);case 5:p=v.sent,p&&P(!1),K.current.reload();case 8:case"end":return v.stop()}},g)}));return function(g){return j.apply(this,arguments)}}(),onCancel:function(){P(!1)},createModalVisible:Ge}),(0,e.jsx)(da,{handleCreateoodsBomModalVisible:de,onFinish:function(){var j=(0,A.Z)((0,u.Z)().mark(function g(f){return(0,u.Z)().wrap(function(D){for(;;)switch(D.prev=D.next){case 0:return f.goodsId=t.location.query.values.id,console.log(f),D.next=4,Xt(f).then(function(v){console.log(v),v.data?(E.default.success("\u6DFB\u52A0\u6210\u529F"),C(!1)):E.default.error("\u6DFB\u52A0\u5931\u8D25"),K.current.reload()});case 4:case"end":return D.stop()}},g)}));return function(g){return j.apply(this,arguments)}}(),goodsid:(d=t.location.query.values)===null||d===void 0?void 0:d.id,goodsname:(a=t.location.query.values)===null||a===void 0?void 0:a.name,goodsAttriburteData:M,matedata:Ue,bomtype:$e,defaultmatedata:(fe=t.location.query.values)===null||fe===void 0?void 0:fe.defaultMate,onCancel:function(){C(!1)}})]}),goodstechnologymaken:(0,e.jsx)(q.Z,{title:"\u5546\u54C1\u5DE5\u827A",style:{marginBottom:24},bordered:!1,children:(0,e.jsx)(Za,{goodsid:(ne=t.location.query.values)===null||ne===void 0?void 0:ne.id})})};return(0,n.useEffect)(function(){function j(){(0,Ct.fA)({current:1,status:0,pageSize:1e3}).then(function(p){var D=p.data.data;D.forEach(function(v){v.text=v.goodsType_Name}),Te(D)})}function g(){(0,Ct.se)({current:1,status:0,pageSize:1e3}).then(function(p){var D=p.data.data;D.forEach(function(v){v.text=v.name}),xe(D)})}function f(){Ht('{"current":1,"pageSize":200}').then(function(p){var D=p.data.data;be(D)})}Qt({current:1,pagesize:1e3,status:"0"}).then(function(p){wt(p.data.data)}),qt({current:1,pagesize:1e3}).then(function(p){Tt(p.data.data)}),f(),j(),g()},[]),(0,e.jsx)(We.ZP,{title:t.location.query.isAdd?"\u5546\u54C1\u65B0\u589E":"\u8BE6\u60C5",tabActiveKey:y,onTabChange:I,tabList:z,children:Oe[c.operationKey]})},Ca=xa},4795:function(at,Ye,r){"use strict";r.d(Ye,{lO:function(){return Ke},GT:function(){return kt},Rq:function(){return u},e3:function(){return E},yR:function(){return Gt},fA:function(){return i},se:function(){return he},WF:function(){return qe}});var Y=r(39428),q=r(3182),ve=r(48971);function Ke(n){return Ee.apply(this,arguments)}function Ee(){return Ee=(0,q.Z)((0,Y.Z)().mark(function n(R){return(0,Y.Z)().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",(0,ve.WY)("/kitchen/api/goods/goodss",{method:"Post",data:R}));case 1:case"end":return s.stop()}},n)})),Ee.apply(this,arguments)}function kt(n){return Pe.apply(this,arguments)}function Pe(){return Pe=(0,q.Z)((0,Y.Z)().mark(function n(R){return(0,Y.Z)().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",(0,ve.WY)("/kitchen/api/bom/getpage",{method:"Post",data:R}));case 1:case"end":return s.stop()}},n)})),Pe.apply(this,arguments)}function Lt(n){return ae.apply(this,arguments)}function ae(){return ae=_asyncToGenerator(_regeneratorRuntime().mark(function n(R){return _regeneratorRuntime().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",request("/kitchen/api/GoodsBom/AddBom",{method:"Post",data:R}));case 1:case"end":return s.stop()}},n)})),ae.apply(this,arguments)}function Nt(n){return De.apply(this,arguments)}function De(){return De=_asyncToGenerator(_regeneratorRuntime().mark(function n(R){return _regeneratorRuntime().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",request("/kitchen/api/GoodsBom/getBomInfo",{method:"Post",data:R}));case 1:case"end":return s.stop()}},n)})),De.apply(this,arguments)}function u(n){return Me.apply(this,arguments)}function Me(){return Me=(0,q.Z)((0,Y.Z)().mark(function n(R){return(0,Y.Z)().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",(0,ve.WY)("/kitchen/api/goods",{method:"POST",data:R}));case 1:case"end":return s.stop()}},n)})),Me.apply(this,arguments)}function E(n){return A.apply(this,arguments)}function A(){return A=(0,q.Z)((0,Y.Z)().mark(function n(R){return(0,Y.Z)().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return console.log("\u5546\u54C1\u6570\u636E\u4FEE\u6539",R),s.abrupt("return",(0,ve.WY)("/kitchen/api/goods",{method:"PUT",data:R}));case 2:case"end":return s.stop()}},n)})),A.apply(this,arguments)}function Gt(n){return x.apply(this,arguments)}function x(){return x=(0,q.Z)((0,Y.Z)().mark(function n(R){return(0,Y.Z)().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",(0,ve.WY)("/kitchen/api/goods",{method:"DELETE",data:R}));case 1:case"end":return s.stop()}},n)})),x.apply(this,arguments)}function i(n){return ze.apply(this,arguments)}function ze(){return ze=(0,q.Z)((0,Y.Z)().mark(function n(R){return(0,Y.Z)().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",(0,ve.WY)("/kitchen/api/goods-type/goods-types",{method:"POST",data:R}));case 1:case"end":return s.stop()}},n)})),ze.apply(this,arguments)}function he(n){return He.apply(this,arguments)}function He(){return He=(0,q.Z)((0,Y.Z)().mark(function n(R){return(0,Y.Z)().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",(0,ve.WY)("/kitchen/api/goods-type/big-goods-types",{method:"POST",data:R}));case 1:case"end":return s.stop()}},n)})),He.apply(this,arguments)}function B(n){return Je.apply(this,arguments)}function Je(){return Je=_asyncToGenerator(_regeneratorRuntime().mark(function n(R){return _regeneratorRuntime().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",request("/kitchen/api/goodstaste/getlist"));case 1:case"end":return s.stop()}},n)})),Je.apply(this,arguments)}function Ft(n){return Ve.apply(this,arguments)}function Ve(){return Ve=_asyncToGenerator(_regeneratorRuntime().mark(function n(R){return _regeneratorRuntime().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",request("/kitchen//api/goodes/ExportGood",{method:"POST",data:R}));case 1:case"end":return s.stop()}},n)})),Ve.apply(this,arguments)}function qe(){return We.apply(this,arguments)}function We(){return We=(0,q.Z)((0,Y.Z)().mark(function n(){return(0,Y.Z)().wrap(function(L){for(;;)switch(L.prev=L.next){case 0:return L.abrupt("return",(0,ve.WY)("/kitchen/api/goodes/GoodsTemplateExport",{method:"post",responseType:"blob"}));case 1:case"end":return L.stop()}},n)})),We.apply(this,arguments)}}}]); diff --git a/dist/p__goods__goodsPractice.9bc3569d.async.js b/dist/p__goods__goodsPractice.bad5ced0.async.js similarity index 99% rename from dist/p__goods__goodsPractice.9bc3569d.async.js rename to dist/p__goods__goodsPractice.bad5ced0.async.js index b8bbcf3..9506127 100644 --- a/dist/p__goods__goodsPractice.9bc3569d.async.js +++ b/dist/p__goods__goodsPractice.bad5ced0.async.js @@ -1 +1 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[5547],{85379:function(ve,A,l){"use strict";l.r(A),l.d(A,{default:function(){return be}});var k=l(57663),w=l(71577),M=l(62350),F=l(24565),c=l(39428),h=l(3182),m=l(34792),p=l(48086),y=l(2824),v=l(18106),Z=l(86629),E=l(49101),T=l(67294),B=l(16894),x=l(30381),C=l(48971);function O(r){return P.apply(this,arguments)}function P(){return P=_asyncToGenerator(_regeneratorRuntime().mark(function r(t){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("/kitchen/api/goodspracticetype/add",{method:"POST",data:t}));case 1:case"end":return e.stop()}},r)})),P.apply(this,arguments)}function D(r){return W.apply(this,arguments)}function W(){return W=(0,h.Z)((0,c.Z)().mark(function r(t){return(0,c.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,C.WY)("/kitchen/api/goodspracticetype/get",{method:"POST",data:t}));case 1:case"end":return e.stop()}},r)})),W.apply(this,arguments)}function Ke(r){return K.apply(this,arguments)}function K(){return K=_asyncToGenerator(_regeneratorRuntime().mark(function r(t){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("/kitchen/api/goodspracticetype/edit",{method:"POST",data:t}));case 1:case"end":return e.stop()}},r)})),K.apply(this,arguments)}function Ne(r){return N.apply(this,arguments)}function N(){return N=_asyncToGenerator(_regeneratorRuntime().mark(function r(t){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("/kitchen/api/goodspractice/edit",{method:"POST",data:t}));case 1:case"end":return e.stop()}},r)})),N.apply(this,arguments)}function Ye(r){return Y.apply(this,arguments)}function Y(){return Y=_asyncToGenerator(_regeneratorRuntime().mark(function r(t){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("/kitchen/api/goodspractice/add",{method:"POST",data:t}));case 1:case"end":return e.stop()}},r)})),Y.apply(this,arguments)}function Ue(r){return U.apply(this,arguments)}function U(){return U=_asyncToGenerator(_regeneratorRuntime().mark(function r(t){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("/kitchen/api/goodspractice/get",{method:"POST",data:t}));case 1:case"end":return e.stop()}},r)})),U.apply(this,arguments)}function re(r){return L.apply(this,arguments)}function L(){return L=(0,h.Z)((0,c.Z)().mark(function r(t){return(0,c.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,C.WY)("/kitchen/api/goodspracticerelevance/get",{method:"POST",data:t}));case 1:case"end":return e.stop()}},r)})),L.apply(this,arguments)}function ne(r){return z.apply(this,arguments)}function z(){return z=(0,h.Z)((0,c.Z)().mark(function r(t){return(0,c.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,C.WY)("/kitchen/api/goodspracticerelevance/add",{method:"POST",data:t}));case 1:case"end":return e.stop()}},r)})),z.apply(this,arguments)}function ae(r){return H.apply(this,arguments)}function H(){return H=(0,h.Z)((0,c.Z)().mark(function r(t){return(0,c.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,C.WY)("/kitchen/api/goodspracticerelevance/edit",{method:"POST",data:t}));case 1:case"end":return e.stop()}},r)})),H.apply(this,arguments)}function ge(r){return J.apply(this,arguments)}function J(){return J=(0,h.Z)((0,c.Z)().mark(function r(t){return(0,c.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,C.WY)("/kitchen/api/goods-type/goods-types",{method:"POST",data:t}));case 1:case"end":return e.stop()}},r)})),J.apply(this,arguments)}function Ze(r){return Q.apply(this,arguments)}function Q(){return Q=(0,h.Z)((0,c.Z)().mark(function r(t){return(0,c.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,C.WY)("/kitchen/api/goodspracticetype/get",{method:"POST",data:t}));case 1:case"end":return e.stop()}},r)})),Q.apply(this,arguments)}function Te(r){return X.apply(this,arguments)}function X(){return X=(0,h.Z)((0,c.Z)().mark(function r(t){return(0,c.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,C.WY)("/kitchen/api/goods/goodss",{method:"Post",data:t}));case 1:case"end":return e.stop()}},r)})),X.apply(this,arguments)}function Ce(r){return q.apply(this,arguments)}function q(){return q=(0,h.Z)((0,c.Z)().mark(function r(t){return(0,c.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,C.WY)("/kitchen/api/goodspractice/get",{method:"POST",data:t}));case 1:case"end":return e.stop()}},r)})),q.apply(this,arguments)}function Re(r){return _.apply(this,arguments)}function _(){return _=(0,h.Z)((0,c.Z)().mark(function r(t){return(0,c.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,C.WY)("/kitchen//api/goodspracticerelevance/del",{method:"POST",data:t}));case 1:case"end":return e.stop()}},r)})),_.apply(this,arguments)}var Le=l(71194),ue=l(50146),ze=l(43358),S=l(34041),He=l(9715),R=l(55843),Je=l(47673),le=l(4107),u=l(85893),Se=function(t){return(0,u.jsx)(ue.Z,{width:800,open:t.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){t.onCancel()},destroyOnClose:!0,children:(0,u.jsxs)(R.Z,{layout:"Vertical",labelCol:{span:6},initialValues:t.values,onFinish:t.onFinish,onCancel:t.onCancel,children:[(0,u.jsx)(R.Z.Item,{name:"id",hidden:!0,children:(0,u.jsx)(le.Z,{})}),(0,u.jsx)(R.Z.Item,{label:"\u5546\u54C1",name:"goodsId",rules:[{required:!0}],initialValue:t.values.goodsId,children:(0,u.jsx)(S.Z,{showSearch:!0,style:{width:"300px"},children:(t.Support.allGoods||[]).map(function(n,e){return(0,u.jsx)(S.Z.Option,{index:e,value:n.id,children:n.name},n.id)})})}),(0,u.jsx)(R.Z.Item,{label:"\u505A\u6CD5",name:"practiceIds",rules:[{required:!0}],initialValue:t.values.practiceIds||[],children:(0,u.jsx)(S.Z,{style:{width:"300px"},mode:"multiple",children:(t.Support.allPractice||[]).map(function(n,e){return(0,u.jsx)(S.Z.Option,{index:e,value:n.id,children:n.makeName},n.id)})})}),(0,u.jsx)(R.Z.Item,{children:(0,u.jsx)(w.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})})},we=Se,Pe=function(t){return console.log("createtypeRelevanceForm >>>>>> props",t),(0,u.jsx)(ue.Z,{width:800,visible:t.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){t.onCancel()},destroyOnClose:!0,children:(0,u.jsxs)(R.Z,{layout:"Vertical",labelCol:{span:6},initialValues:t.values,onFinish:t.onFinish,onCancel:t.onCancel,children:[(0,u.jsx)(R.Z.Item,{name:"id",hidden:!0,children:(0,u.jsx)(le.Z,{})}),(0,u.jsx)(R.Z.Item,{label:"\u5546\u54C1\u7C7B\u522B",name:"goodsSmallType",rules:[{required:!0}],initialValue:t.values.goodsSmallType,children:(0,u.jsx)(S.Z,{style:{width:"300px"},children:(t.Support.allSmallType||[]).map(function(n,e){return(0,u.jsx)(S.Z.Option,{index:e,value:n.id,children:n.goodsType_Name},n.id)})})}),(0,u.jsx)(R.Z.Item,{label:"\u505A\u6CD5\u7C7B\u522B",name:"makeTypeId",rules:[{required:!0}],initialValues:t.values.practiceTypeId,children:(0,u.jsx)(S.Z,{style:{width:"300px"},children:(t.Support.allType||[]).map(function(n,e){return(0,u.jsx)(S.Z.Option,{index:e,value:n.id,children:n.typeName},n.id)})})}),function(){t.domrelevanceType==1,t.domrelevanceType==2},(0,u.jsx)(R.Z.Item,{children:(0,u.jsx)(w.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})})},xe=Pe,ie=Z.Z.TabPane,je=function(t){var n=(0,T.useRef)(),e=(0,T.useState)(!1),ce=(0,y.Z)(e,2),ee=ce[0],G=ce[1],ke=(0,T.useState)(),se=(0,y.Z)(ke,2),te=se[0],$=se[1],Oe=(0,T.useState)(),oe=(0,y.Z)(Oe,2),Qe=oe[0],V=oe[1],Ie=(0,T.useState)(),de=(0,y.Z)(Ie,2),Xe=de[0],qe=de[1],Ae=(0,T.useState)(),pe=(0,y.Z)(Ae,2),fe=pe[0],j=pe[1],Fe=(0,T.useState)([]),he=(0,y.Z)(Fe,2),_e=he[0],Ee=he[1],Be=(0,T.useState)({allType:[],allSmallType:[],allGoods:[],allPractice:[]}),me=(0,y.Z)(Be,2),b=me[0],et=me[1];function De(i){try{return ne(i).then(function(a){a.data?p.default.success("\u6DFB\u52A0\u6210\u529F"):p.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01")}),!0}catch(a){return p.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),!1}}function Ge(i){try{return ne(i).then(function(a){a.data?p.default.success("\u6DFB\u52A0\u6210\u529F"):p.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01")}),!0}catch(a){return p.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),!1}}var ye=function(){var i=(0,h.Z)((0,c.Z)().mark(function a(s){var o;return(0,c.Z)().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:if(o=p.default.loading("\u6B63\u5728\u5220\u9664"),s){d.next=3;break}return d.abrupt("return",!0);case 3:return d.prev=3,d.next=6,Re({id:s}).then(function(g){o(),g.data?p.default.success("\u5220\u9664\u6210\u529F\uFF0C\u5373\u5C06\u5237\u65B0"):p.default.error("\u5220\u9664\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5")});case 6:return d.abrupt("return",!0);case 9:return d.prev=9,d.t0=d.catch(3),o(),p.default.error("\u5220\u9664\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5"),d.abrupt("return",!1);case 14:case"end":return d.stop()}},a,null,[[3,9]])}));return function(s){return i.apply(this,arguments)}}();function $e(i){try{return ae(i).then(function(a){a.data?p.default.success("\u914D\u7F6E\u6210\u529F"):p.default.error("\u914D\u7F6E\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),V(void 0),n.current.reload()}),!0}catch(a){return p.default.error("\u914D\u7F6E\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),!1}}function Ve(i){try{return ae(i).then(function(a){a.data?p.default.success("\u914D\u7F6E\u6210\u529F"):p.default.error("\u914D\u7F6E\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),V(void 0)}),!0}catch(a){return p.default.error("\u914D\u7F6E\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),!1}}(0,T.useEffect)(function(){var i={current:1,pagesize:99999};Ze(i).then(function(a){b.allType=a.data.data}),ge(i).then(function(a){b.allSmallType=a.data.data}),Te(i).then(function(a){b.allGoods=a.data.data}),Ce(i).then(function(a){b.allPractice=a.data.data}),D(i).then(function(a){Ee(a.data.data)})},[]);var Me=[{title:"\u89C4\u5219id",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0},{title:"\u5546\u54C1\u7C7B\u522B",dataIndex:"goodsTypeName"},{title:"\u505A\u6CD5\u7C7B\u522B",dataIndex:"makeTypeName"},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(a,s){return[(0,u.jsxs)("a",{onClick:function(){G(!0),j(s)},children:[" ","\u4FEE\u6539"]},"primary"),(0,u.jsx)(F.Z,{type:"primary",title:"\u786E\u8BA4\u5220\u9664\u5417\uFF1F",okText:"\u662F",cancelText:"\u5426",onConfirm:function(){var f;ye(s.id),(f=n.current)===null||f===void 0||f.reloadAndRest()},onCancel:function(){},children:(0,u.jsx)("a",{href:"#",children:"\u5220\u9664"})},"primary")]}}],We=[{title:"\u89C4\u5219id",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0},{title:"\u5546\u54C1",dataIndex:"goodsName"},{title:"\u505A\u6CD5",dataIndex:"makeName"},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(a,s){return[(0,u.jsxs)("a",{onClick:function(){$(!0),j(s)},children:[" ","\u4FEE\u6539"]},"primary"),(0,u.jsx)(F.Z,{type:"primary",title:"\u786E\u8BA4\u5220\u9664\u5417\uFF1F",okText:"\u662F",cancelText:"\u5426",onConfirm:function(){var f;ye(s.id),(f=n.current)===null||f===void 0||f.reloadAndRest()},onCancel:function(){},children:(0,u.jsx)("a",{href:"#",children:"\u5220\u9664"})},"primary")]}}];return(0,u.jsxs)(Z.Z,{defaultActiveKey:"1",children:[(0,u.jsxs)(ie,{tab:"\u51FA\u54C1\u7C7B\u522B\u4E0E\u505A\u6CD5\u7C7B\u522B\u5173\u8054",children:[(0,u.jsx)(B.ZP,{actionRef:n,rowKey:"id",search:{labelWidth:120},toolBarRender:function(){return[(0,u.jsxs)(w.Z,{type:"primary",onClick:function(){console.log("\u51FA\u54C1\u7C7B\u522B\u4E0E\u505A\u6CD5\u7C7B\u522B\u5173\u8054",ee),G(!0)},children:[(0,u.jsx)(E.Z,{})," \u6DFB\u52A0"]},"primary")]},params:{relevanceType:1},request:function(){var i=(0,h.Z)((0,c.Z)().mark(function a(s){var o,f;return(0,c.Z)().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return o=[],f=0,g.next=4,re(s).then(function(I){o=I.data.data,f=I.data.total});case 4:return g.abrupt("return",{data:o,success:!0,total:f});case 5:case"end":return g.stop()}},a)}));return function(a){return i.apply(this,arguments)}}(),modalVisible:te,columns:Me,rowSelection:{onChange:function(a,s){V(s)}}}),ee&&(0,u.jsx)(xe,{onFinish:function(){var i=(0,h.Z)((0,c.Z)().mark(function a(s){var o;return(0,c.Z)().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:s.relevanceType=1,o=!1,s.id?o=Ve(s):o=Ge(s),o&&(G(!1),j(void 0),n.current&&n.current.reload());case 4:case"end":return d.stop()}},a)}));return function(a){return i.apply(this,arguments)}}(),onCancel:function(){j(void 0),G(!1),n.current.reload()},Support:b,createModalVisible:ee,values:fe||{}})]},"1"),(0,u.jsxs)(ie,{tab:"\u51FA\u54C1\u4E0E\u505A\u6CD5\u5173\u8054",children:[(0,u.jsx)(B.ZP,{actionRef:n,rowKey:"id",search:{labelWidth:120},toolBarRender:function(){return[(0,u.jsxs)(w.Z,{type:"primary",onClick:function(){console.log("fdsew"),$(!0)},children:[(0,u.jsx)(E.Z,{})," \u6DFB\u52A0"]},"primary")]},params:{relevanceType:2},request:function(){var i=(0,h.Z)((0,c.Z)().mark(function a(s){var o,f;return(0,c.Z)().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return o=[],f=0,g.next=4,re(s).then(function(I){o=I.data.data,f=I.data.total});case 4:return g.abrupt("return",{data:o,success:!0,total:f});case 5:case"end":return g.stop()}},a)}));return function(a){return i.apply(this,arguments)}}(),modalVisible:te,columns:We,rowSelection:{onChange:function(a,s){V(s)}}}),(0,u.jsx)(we,{onFinish:function(){var i=(0,h.Z)((0,c.Z)().mark(function a(s){var o;return(0,c.Z)().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:s.relevanceType=2,o=!1,s.id?o=$e(s):o=De(s),o&&($(!1),j(void 0),n.current&&n.current.reload());case 4:case"end":return d.stop()}},a)}));return function(a){return i.apply(this,arguments)}}(),onCancel:function(){j(void 0),$(!1),n.current.reload()},Support:b,createModalVisible:te,values:fe||{}})]},"2")]})},be=je},34952:function(ve,A,l){"use strict";var k=l(22122),w=l(15105),M=l(67294),F=function(m,p){var y={};for(var v in m)Object.prototype.hasOwnProperty.call(m,v)&&p.indexOf(v)<0&&(y[v]=m[v]);if(m!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Z=0,v=Object.getOwnPropertySymbols(m);Z>>>>> props",t),(0,u.jsx)(ue.Z,{width:800,visible:t.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){t.onCancel()},destroyOnClose:!0,children:(0,u.jsxs)(R.Z,{layout:"Vertical",labelCol:{span:6},initialValues:t.values,onFinish:t.onFinish,onCancel:t.onCancel,children:[(0,u.jsx)(R.Z.Item,{name:"id",hidden:!0,children:(0,u.jsx)(le.Z,{})}),(0,u.jsx)(R.Z.Item,{label:"\u5546\u54C1\u7C7B\u522B",name:"goodsSmallType",rules:[{required:!0}],initialValue:t.values.goodsSmallType,children:(0,u.jsx)(S.Z,{style:{width:"300px"},children:(t.Support.allSmallType||[]).map(function(n,e){return(0,u.jsx)(S.Z.Option,{index:e,value:n.id,children:n.goodsType_Name},n.id)})})}),(0,u.jsx)(R.Z.Item,{label:"\u505A\u6CD5\u7C7B\u522B",name:"makeTypeId",rules:[{required:!0}],initialValues:t.values.practiceTypeId,children:(0,u.jsx)(S.Z,{style:{width:"300px"},children:(t.Support.allType||[]).map(function(n,e){return(0,u.jsx)(S.Z.Option,{index:e,value:n.id,children:n.typeName},n.id)})})}),function(){t.domrelevanceType==1,t.domrelevanceType==2},(0,u.jsx)(R.Z.Item,{children:(0,u.jsx)(w.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})})},xe=Pe,ie=Z.Z.TabPane,je=function(t){var n=(0,T.useRef)(),e=(0,T.useState)(!1),ce=(0,y.Z)(e,2),ee=ce[0],G=ce[1],ke=(0,T.useState)(),se=(0,y.Z)(ke,2),te=se[0],$=se[1],Oe=(0,T.useState)(),oe=(0,y.Z)(Oe,2),Qe=oe[0],V=oe[1],Ie=(0,T.useState)(),de=(0,y.Z)(Ie,2),Xe=de[0],qe=de[1],Ae=(0,T.useState)(),pe=(0,y.Z)(Ae,2),fe=pe[0],j=pe[1],Fe=(0,T.useState)([]),he=(0,y.Z)(Fe,2),_e=he[0],Ee=he[1],Be=(0,T.useState)({allType:[],allSmallType:[],allGoods:[],allPractice:[]}),me=(0,y.Z)(Be,2),b=me[0],et=me[1];function De(i){try{return ne(i).then(function(a){a.data?p.default.success("\u6DFB\u52A0\u6210\u529F"):p.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01")}),!0}catch(a){return p.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),!1}}function Ge(i){try{return ne(i).then(function(a){a.data?p.default.success("\u6DFB\u52A0\u6210\u529F"):p.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01")}),!0}catch(a){return p.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),!1}}var ye=function(){var i=(0,h.Z)((0,c.Z)().mark(function a(s){var o;return(0,c.Z)().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:if(o=p.default.loading("\u6B63\u5728\u5220\u9664"),s){d.next=3;break}return d.abrupt("return",!0);case 3:return d.prev=3,d.next=6,Re({id:s}).then(function(g){o(),g.data?p.default.success("\u5220\u9664\u6210\u529F\uFF0C\u5373\u5C06\u5237\u65B0"):p.default.error("\u5220\u9664\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5")});case 6:return d.abrupt("return",!0);case 9:return d.prev=9,d.t0=d.catch(3),o(),p.default.error("\u5220\u9664\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5"),d.abrupt("return",!1);case 14:case"end":return d.stop()}},a,null,[[3,9]])}));return function(s){return i.apply(this,arguments)}}();function $e(i){try{return ae(i).then(function(a){a.data?p.default.success("\u914D\u7F6E\u6210\u529F"):p.default.error("\u914D\u7F6E\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),V(void 0),n.current.reload()}),!0}catch(a){return p.default.error("\u914D\u7F6E\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),!1}}function Ve(i){try{return ae(i).then(function(a){a.data?p.default.success("\u914D\u7F6E\u6210\u529F"):p.default.error("\u914D\u7F6E\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),V(void 0)}),!0}catch(a){return p.default.error("\u914D\u7F6E\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),!1}}(0,T.useEffect)(function(){var i={current:1,pagesize:99999};Ze(i).then(function(a){b.allType=a.data.data}),ge(i).then(function(a){b.allSmallType=a.data.data}),Te(i).then(function(a){b.allGoods=a.data.data}),Ce(i).then(function(a){b.allPractice=a.data.data}),D(i).then(function(a){Ee(a.data.data)})},[]);var Me=[{title:"\u89C4\u5219id",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0},{title:"\u5546\u54C1\u7C7B\u522B",dataIndex:"goodsTypeName"},{title:"\u505A\u6CD5\u7C7B\u522B",dataIndex:"makeTypeName"},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(a,s){return[(0,u.jsxs)("a",{onClick:function(){G(!0),j(s)},children:[" ","\u4FEE\u6539"]},"primary"),(0,u.jsx)(F.Z,{type:"primary",title:"\u786E\u8BA4\u5220\u9664\u5417\uFF1F",okText:"\u662F",cancelText:"\u5426",onConfirm:function(){var f;ye(s.id),(f=n.current)===null||f===void 0||f.reloadAndRest()},onCancel:function(){},children:(0,u.jsx)("a",{href:"#",children:"\u5220\u9664"})},"primary")]}}],We=[{title:"\u89C4\u5219id",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0},{title:"\u5546\u54C1",dataIndex:"goodsName"},{title:"\u505A\u6CD5",dataIndex:"makeName"},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(a,s){return[(0,u.jsxs)("a",{onClick:function(){$(!0),j(s)},children:[" ","\u4FEE\u6539"]},"primary"),(0,u.jsx)(F.Z,{type:"primary",title:"\u786E\u8BA4\u5220\u9664\u5417\uFF1F",okText:"\u662F",cancelText:"\u5426",onConfirm:function(){var f;ye(s.id),(f=n.current)===null||f===void 0||f.reloadAndRest()},onCancel:function(){},children:(0,u.jsx)("a",{href:"#",children:"\u5220\u9664"})},"primary")]}}];return(0,u.jsxs)(Z.Z,{defaultActiveKey:"1",children:[(0,u.jsxs)(ie,{tab:"\u51FA\u54C1\u7C7B\u522B\u4E0E\u505A\u6CD5\u7C7B\u522B\u5173\u8054",children:[(0,u.jsx)(B.ZP,{actionRef:n,rowKey:"id",search:{labelWidth:120},toolBarRender:function(){return[(0,u.jsxs)(w.Z,{type:"primary",onClick:function(){console.log("\u51FA\u54C1\u7C7B\u522B\u4E0E\u505A\u6CD5\u7C7B\u522B\u5173\u8054",ee),G(!0)},children:[(0,u.jsx)(E.Z,{})," \u6DFB\u52A0"]},"primary")]},params:{relevanceType:1},request:function(){var i=(0,h.Z)((0,c.Z)().mark(function a(s){var o,f;return(0,c.Z)().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return o=[],f=0,g.next=4,re(s).then(function(I){o=I.data.data,f=I.data.total});case 4:return g.abrupt("return",{data:o,success:!0,total:f});case 5:case"end":return g.stop()}},a)}));return function(a){return i.apply(this,arguments)}}(),modalVisible:te,columns:Me,rowSelection:{onChange:function(a,s){V(s)}}}),ee&&(0,u.jsx)(xe,{onFinish:function(){var i=(0,h.Z)((0,c.Z)().mark(function a(s){var o;return(0,c.Z)().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:s.relevanceType=1,o=!1,s.id?o=Ve(s):o=Ge(s),o&&(G(!1),j(void 0),n.current&&n.current.reload());case 4:case"end":return d.stop()}},a)}));return function(a){return i.apply(this,arguments)}}(),onCancel:function(){j(void 0),G(!1),n.current.reload()},Support:b,createModalVisible:ee,values:fe||{}})]},"1"),(0,u.jsxs)(ie,{tab:"\u51FA\u54C1\u4E0E\u505A\u6CD5\u5173\u8054",children:[(0,u.jsx)(B.ZP,{actionRef:n,rowKey:"id",search:{labelWidth:120},toolBarRender:function(){return[(0,u.jsxs)(w.Z,{type:"primary",onClick:function(){console.log("fdsew"),$(!0)},children:[(0,u.jsx)(E.Z,{})," \u6DFB\u52A0"]},"primary")]},params:{relevanceType:2},request:function(){var i=(0,h.Z)((0,c.Z)().mark(function a(s){var o,f;return(0,c.Z)().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return o=[],f=0,g.next=4,re(s).then(function(I){o=I.data.data,f=I.data.total});case 4:return g.abrupt("return",{data:o,success:!0,total:f});case 5:case"end":return g.stop()}},a)}));return function(a){return i.apply(this,arguments)}}(),modalVisible:te,columns:We,rowSelection:{onChange:function(a,s){V(s)}}}),(0,u.jsx)(we,{onFinish:function(){var i=(0,h.Z)((0,c.Z)().mark(function a(s){var o;return(0,c.Z)().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:s.relevanceType=2,o=!1,s.id?o=$e(s):o=De(s),o&&($(!1),j(void 0),n.current&&n.current.reload());case 4:case"end":return d.stop()}},a)}));return function(a){return i.apply(this,arguments)}}(),onCancel:function(){j(void 0),$(!1),n.current.reload()},Support:b,createModalVisible:te,values:fe||{}})]},"2")]})},be=je},34952:function(ve,A,l){"use strict";var k=l(22122),w=l(15105),M=l(67294),F=function(m,p){var y={};for(var v in m)Object.prototype.hasOwnProperty.call(m,v)&&p.indexOf(v)<0&&(y[v]=m[v]);if(m!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Z=0,v=Object.getOwnPropertySymbols(m);Z0&&(0,o.jsx)(k.Z,{extra:(0,o.jsxs)("div",{children:["\u5DF2\u9009\u62E9"," ",(0,o.jsx)("a",{style:{fontWeight:600},children:D.length})," ","\u9879 \xA0\xA0"]}),children:(0,o.jsx)(j.Z,{onClick:(0,b.Z)((0,h.Z)().mark(function g(){var a,t;return(0,h.Z)().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.next=2,H(D);case 2:ee([]),(a=_.current)===null||a===void 0||(t=a.reloadAndRest)===null||t===void 0||t.call(a);case 4:case"end":return m.stop()}},g)})),children:"\u5220\u9664"})}),(0,o.jsx)(x.Z,{width:600,visible:me,onClose:function(){ge(void 0),he(!1)},closable:!1,children:(T==null?void 0:T.name)&&(0,o.jsx)(A.ZP,{column:2,title:T==null?void 0:T.name,request:(0,b.Z)((0,h.Z)().mark(function g(){return(0,h.Z)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",{data:T||{}});case 1:case"end":return t.stop()}},g)})),params:{id:T==null?void 0:T.name},columns:ue})})]})},ce=de},4795:function(se,P,r){"use strict";r.d(P,{lO:function(){return L},GT:function(){return z},Rq:function(){return N},e3:function(){return b},yR:function(){return $},fA:function(){return K},se:function(){return Y},WF:function(){return o}});var p=r(39428),x=r(3182),I=r(48971);function L(n){return B.apply(this,arguments)}function B(){return B=(0,x.Z)((0,p.Z)().mark(function n(s){return(0,p.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,I.WY)("/kitchen/api/goods/goodss",{method:"Post",data:s}));case 1:case"end":return e.stop()}},n)})),B.apply(this,arguments)}function z(n){return j.apply(this,arguments)}function j(){return j=(0,x.Z)((0,p.Z)().mark(function n(s){return(0,p.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,I.WY)("/kitchen/api/bom/getpage",{method:"Post",data:s}));case 1:case"end":return e.stop()}},n)})),j.apply(this,arguments)}function oe(n){return w.apply(this,arguments)}function w(){return w=_asyncToGenerator(_regeneratorRuntime().mark(function n(s){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("/kitchen/api/GoodsBom/AddBom",{method:"Post",data:s}));case 1:case"end":return e.stop()}},n)})),w.apply(this,arguments)}function Z(n){return h.apply(this,arguments)}function h(){return h=_asyncToGenerator(_regeneratorRuntime().mark(function n(s){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("/kitchen/api/GoodsBom/getBomInfo",{method:"Post",data:s}));case 1:case"end":return e.stop()}},n)})),h.apply(this,arguments)}function N(n){return v.apply(this,arguments)}function v(){return v=(0,x.Z)((0,p.Z)().mark(function n(s){return(0,p.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,I.WY)("/kitchen/api/goods",{method:"POST",data:s}));case 1:case"end":return e.stop()}},n)})),v.apply(this,arguments)}function b(n){return G.apply(this,arguments)}function G(){return G=(0,x.Z)((0,p.Z)().mark(function n(s){return(0,p.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("\u5546\u54C1\u6570\u636E\u4FEE\u6539",s),e.abrupt("return",(0,I.WY)("/kitchen/api/goods",{method:"PUT",data:s}));case 2:case"end":return e.stop()}},n)})),G.apply(this,arguments)}function $(n){return f.apply(this,arguments)}function f(){return f=(0,x.Z)((0,p.Z)().mark(function n(s){return(0,p.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,I.WY)("/kitchen/api/goods",{method:"DELETE",data:s}));case 1:case"end":return e.stop()}},n)})),f.apply(this,arguments)}function K(n){return k.apply(this,arguments)}function k(){return k=(0,x.Z)((0,p.Z)().mark(function n(s){return(0,p.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,I.WY)("/kitchen/api/goods-type/goods-types",{method:"POST",data:s}));case 1:case"end":return e.stop()}},n)})),k.apply(this,arguments)}function Y(n){return A.apply(this,arguments)}function A(){return A=(0,x.Z)((0,p.Z)().mark(function n(s){return(0,p.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,I.WY)("/kitchen/api/goods-type/big-goods-types",{method:"POST",data:s}));case 1:case"end":return e.stop()}},n)})),A.apply(this,arguments)}function le(n){return W.apply(this,arguments)}function W(){return W=_asyncToGenerator(_regeneratorRuntime().mark(function n(s){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("/kitchen/api/goodstaste/getlist"));case 1:case"end":return e.stop()}},n)})),W.apply(this,arguments)}function ie(n){return M.apply(this,arguments)}function M(){return M=_asyncToGenerator(_regeneratorRuntime().mark(function n(s){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("/kitchen//api/goodes/ExportGood",{method:"POST",data:s}));case 1:case"end":return e.stop()}},n)})),M.apply(this,arguments)}function o(){return U.apply(this,arguments)}function U(){return U=(0,x.Z)((0,p.Z)().mark(function n(){return(0,p.Z)().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",(0,I.WY)("/kitchen/api/goodes/GoodsTemplateExport",{method:"post",responseType:"blob"}));case 1:case"end":return l.stop()}},n)})),U.apply(this,arguments)}}}]); +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[816],{53571:function(se,O,r){"use strict";r.r(O),r.d(O,{default:function(){return ce}});var p=r(57338),x=r(273),I=r(62350),L=r(24565),B=r(11849),z=r(57663),j=r(71577),oe=r(43185),w=r(93009),Z=r(2824),h=r(39428),N=r(34792),v=r(48086),b=r(3182),G=r(49101),$=r(84391),f=r(67294),K=r(78009),A=r(85224),Y=r(16894),k=r(12826),le=r(71194),M=r(9715),ie=r(47673),W=r(43358),o=r(85893),U=function(c){var d=_Select.Option,y=_Select.OptGroup;return _jsx(_Modal,{title:c.values.id?"\u7F16\u8F91":"\u65B0\u5EFA",width:640,visible:c.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,closable:!0,onCancel:function(){c.onCancel()},destroyOnClose:!0,children:_jsxs(_Form,{labelCol:{span:4},layout:"horizontal",preserve:!1,initialValues:c.values,onFinish:c.onFinish,children:[_jsx(_Form.Item,{name:"id",hidden:!0,children:_jsx(_Input,{})}),_jsx(_Form.Item,{name:"code",label:"\u5546\u54C1\u7F16\u7801",hidden:!0,rules:[{required:!0}],children:_jsx(_Input,{})}),_jsx(_Form.Item,{name:"name",label:"\u5546\u54C1\u540D\u79F0",rules:[{required:!0}],children:_jsx(_Input,{})}),_jsx(_Form.Item,{name:"price",label:"\u5546\u54C1\u4EF7\u683C",rules:[{required:!0}],children:_jsx(_Input,{})}),_jsx(_Form.Item,{name:"imgUrl",label:"\u5546\u54C1\u56FE\u7247\u5730\u5740",rules:[{required:!0}],children:_jsx(_Input,{})}),_jsx(_Form.Item,{name:"remark",label:"\u5907\u6CE8",rules:[{required:!0}],children:_jsx(_Input,{})}),_jsx(_Form.Item,{name:"foreignKeyRe",label:"\u5173\u8054\u5916\u952E",rules:[{required:!0}],children:_jsx(_Input,{})}),_jsx(_Form.Item,{name:"goodsTypeId",label:"\u5546\u54C1\u7C7B\u578B",rules:[{required:!0}],children:_jsx(_Select,{children:c.goodsTypaData==null?"":c.goodsTypaData.map(function(C,u){return _jsx(_Select.Option,{index:u,value:C.id,children:C.goodsType_Name},C.id)})})}),_jsx(_Form.Item,{name:"status",label:"\u72B6\u6001",defaultValue:c.values.status,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u72B6\u6001"}],children:_jsx(_Select,{placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001",children:_jsxs(y,{children:[_jsx(_Select.Option,{value:0,children:"\u6B63\u5E38"}),_jsx(_Select.Option,{value:1,children:"\u505C\u7528"})]})})}),_jsx(_Form.Item,{children:_jsx(_Button,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})})},n=null,s=r(48971),l=r(4795),e=null,J=function(){var E=(0,b.Z)((0,h.Z)().mark(function c(d){var y;return(0,h.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return y=v.default.loading("\u6B63\u5728\u914D\u7F6E"),u.prev=1,u.next=4,(0,l.e3)({id:d.id,code:d.code,name:d.name,price:d.price,imgUrl:d.imgUrl,remark:d.remark,status:d.status,goodsTypeId:d.goodsTypeId}).then(function(S){S.data?v.default.success("\u914D\u7F6E\u6210\u529F"):v.default.error("\u914D\u7F6E\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01")});case 4:return u.abrupt("return",!0);case 7:return u.prev=7,u.t0=u.catch(1),y(),u.abrupt("return",!1);case 11:case"end":return u.stop()}},c,null,[[1,7]])}));return function(d){return E.apply(this,arguments)}}(),H=function(){var E=(0,b.Z)((0,h.Z)().mark(function c(d){var y;return(0,h.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:if(y=v.default.loading("\u6B63\u5728\u5220\u9664"),d){u.next=3;break}return u.abrupt("return",!0);case 3:return u.prev=3,u.next=6,(0,l.yR)(d.map(function(S){return S.id})).then(function(S){y(),S.data?v.default.success("\u5220\u9664\u6210\u529F\uFF0C\u5373\u5C06\u5237\u65B0"):v.default.error("\u5220\u9664\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5")});case 6:return u.abrupt("return",!0);case 9:return u.prev=9,u.t0=u.catch(3),y(),v.default.error("\u5220\u9664\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5"),u.abrupt("return",!1);case 14:case"end":return u.stop()}},c,null,[[3,9]])}));return function(d){return E.apply(this,arguments)}}(),de=function(){var c=(0,f.useState)([]),d=(0,Z.Z)(c,2),y=d[0],C=d[1],u=(0,f.useState)(!1),S=(0,Z.Z)(u,2),Se=S[0],je=S[1],pe=(0,f.useState)(!1),Q=(0,Z.Z)(pe,2),me=Q[0],he=Q[1],_=(0,f.useRef)(),fe=(0,f.useState)(),X=(0,Z.Z)(fe,2),T=X[0],ge=X[1],ve=(0,f.useState)([]),q=(0,Z.Z)(ve,2),D=q[0],ee=q[1],ye=(0,f.useState)(),te=(0,Z.Z)(ye,2),be=te[0],Fe=te[1],xe=(0,f.useState)(),re=(0,Z.Z)(xe,2),Be=re[0],we=re[1],Ze=(0,f.useState)(),ne=(0,Z.Z)(Ze,2),Ee=ne[0],Te=ne[1],Ie=(0,f.useState)(),ae=(0,Z.Z)(Ie,2),Re=ae[0],Ge=ae[1];(0,f.useEffect)(function(){function g(){(0,l.GT)({current:1,pageSize:1e7}).then(function(t){var i=t.data.data;Te(i)})}g();function a(){(0,l.fA)({current:1,pageSize:1e3}).then(function(t){var i=t.data.data;i.forEach(function(m){m.text=m.goodsType_Name,m.goodsTypeId=m.id}),C(i)})}a()},[]);var ue=[{title:"\u4E3B\u952E",dataIndex:"id",hideInTable:!0,hideInSearch:!0},{title:"\u56FE\u7247\u5730\u5740",dataIndex:"imgUrl",hideInTable:!0,hideInSearch:!0},{title:"\u7F16\u7801",dataIndex:"code",valueType:"textarea"},{title:"\u540D\u79F0",dataIndex:"name",valueType:"textarea"},{title:"\u57FA\u7840\u4EF7\u683C",dataIndex:"price",hideInForm:!0,renderText:function(a){return"".concat(a,"\xA5")},hideInSearch:!0},{title:"\u4F1A\u5458\u4EF7",dataIndex:"vipPrice",hideInForm:!0,renderText:function(a){return"".concat(a,"\xA5")},hideInSearch:!0},{title:"\u5546\u54C1\u5C0F\u7C7B",dataIndex:"goodsTypeName",hideInForm:!0,hideInSearch:!0},{title:"\u5546\u54C1\u7C7B\u578B",dataIndex:"goodsTypeId",hideInForm:!0,hideInTable:!0,valueEnum:y},{title:"\u5546\u54C1\u5C5E\u6027",dataIndex:"goodsAttribute",hideInForm:!0,valueEnum:{0:{text:"\u5355\u54C1"},1:{text:"\u5957\u9910"}}},{title:"\u5173\u8054\u5916\u952E",dataIndex:"foreignKeyRe",valueType:"textarea"},{title:"\u72B6\u6001",dataIndex:"status",hideInForm:!0,valueEnum:{0:{text:"\u6B63\u5E38",status:"Processing"},1:{text:"\u505C\u7528",status:"Error"},2:{text:"\u5220\u9664",status:"Error"}}},{title:"\u5907\u6CE8",dataIndex:"remark",ellipsis:!0,tip:"\u6807\u9898\u8FC7\u957F\u4F1A\u81EA\u52A8\u6536\u7F29"},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(a,t){return[(0,o.jsx)("a",{type:"primary",onClick:function(){s.m8.push({pathname:"/goods/goodsInfo",query:{isAdd:!1,values:t,tabStatus:"basis"}})},children:"\u66F4\u65B0"},"primary"),(0,o.jsx)("a",{type:"primary",onClick:function(){s.m8.push({pathname:"/goods/goodsInfo",query:{isAdd:!1,values:t,tabStatus:"goodsbom"}})},children:"\u5546\u54C1\u914D\u65B9\u8BBE\u7F6E"},"primary"),t.status===0&&(0,o.jsx)("a",{onClick:function(){t.status="1",J(t),_.current.reload()},children:"\u505C\u7528"},"link"),(t.status===1||t.status===2)&&(0,o.jsx)("a",{onClick:function(){t.status="0",J(t),_.current.reload()},children:"\u542F\u7528"},"warn"),(0,o.jsx)("a",{onClick:function(){s.m8.push({pathname:"/bom/cookingentry",query:{isAdd:!1,values:t}})},children:"\u5C0F\u7092\u914D\u7F6E"},"config")]}}],Ce={beforeUpload:function(a){return a.type!=="application/vnd.ms-excel"&&a.type!=="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"&&v.default.error("".concat(a.name," \u4E0D\u662F exelce \u6587\u4EF6")),a.type=="application/vnd.ms-excel"||a.type=="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"?!0:w.Z.LIST_IGNORE},name:"file",action:"/kitchen/api/goodes/ExportGood",headers:{authorization:"authorization-text"},onChange:function(a){a.file.status!=="uploading"&&console.log(a.file,a.fileList),a.file.status==="done"?v.default.success("".concat(a.file.name," file uploaded successfully")):a.file.status==="error"&&v.default.error("".concat(a.file.name," file upload failed."))}};return(0,o.jsxs)(K.ZP,{children:[(0,o.jsx)(Y.ZP,{headerTitle:"",actionRef:_,rowKey:"id",search:{labelWidth:120},toolBarRender:function(){return[(0,o.jsxs)(j.Z,{type:"primary",onClick:function(){s.m8.push({pathname:"/goods/goodsInfo",query:{isAdd:!0,values:null,tabStatus:"basis"}})},children:[(0,o.jsx)(G.Z,{})," \u65B0\u5EFA"]},"primary"),(0,o.jsxs)(j.Z,{onClick:(0,b.Z)((0,h.Z)().mark(function a(){var t,i,m,P;return(0,h.Z)().wrap(function(F){for(;;)switch(F.prev=F.next){case 0:return F.next=2,(0,l.WF)();case 2:t=F.sent,i=new Blob([t]),m=URL.createObjectURL(i),console.log(i,m),P=document.createElement("a"),P.download="\u5546\u54C1\u5BFC\u5165\u6A21\u677F_".concat(new Date(Date.now()).toLocaleString(),".xls"),P.href=m,P.click();case 10:case"end":return F.stop()}},a)})),children:[(0,o.jsx)($.Z,{})," \u4E0B\u8F7D\u5546\u54C1\u5BFC\u5165\u6A21\u677F"]},"primary"),(0,o.jsx)(L.Z,{type:"primary",title:"\u5BFC\u5165\u540E\u91CD\u590D\u6570\u636E\u5C06\u88AB\u66FF\u6362",okText:"\u662F",cancelText:"\u5426",onConfirm:function(){var t;H([record.id]),(t=_.current)===null||t===void 0||t.reloadAndRest()},onCancel:function(){},children:(0,o.jsx)(w.Z,(0,B.Z)((0,B.Z)({},Ce),{},{children:(0,o.jsx)(j.Z,{icon:(0,o.jsx)($.Z,{}),children:"\u5BFC\u5165\u5546\u54C1"})}))},"primary")]},request:function(){var g=(0,b.Z)((0,h.Z)().mark(function a(t){var i,m;return(0,h.Z)().wrap(function(R){for(;;)switch(R.prev=R.next){case 0:return i=[],t.goodsTypeId!=null&&(t.goodsTypeId=y[t.goodsTypeId].goodsTypeId),m=0,R.next=5,(0,l.lO)(t).then(function(F){i=F.data.data,console.log(i),i.forEach(function(V){V.defaultMate!=null&&(V.defaultMate=V.defaultMate.split(","))}),console.log(i),m=F.data.total});case 5:return R.abrupt("return",{data:i,success:!0,total:m});case 6:case"end":return R.stop()}},a)}));return function(a){return g.apply(this,arguments)}}(),columns:ue,rowSelection:{onChange:function(a,t){ee(t)}}}),(D==null?void 0:D.length)>0&&(0,o.jsx)(A.Z,{extra:(0,o.jsxs)("div",{children:["\u5DF2\u9009\u62E9"," ",(0,o.jsx)("a",{style:{fontWeight:600},children:D.length})," ","\u9879 \xA0\xA0"]}),children:(0,o.jsx)(j.Z,{onClick:(0,b.Z)((0,h.Z)().mark(function g(){var a,t;return(0,h.Z)().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.next=2,H(D);case 2:ee([]),(a=_.current)===null||a===void 0||(t=a.reloadAndRest)===null||t===void 0||t.call(a);case 4:case"end":return m.stop()}},g)})),children:"\u5220\u9664"})}),(0,o.jsx)(x.Z,{width:600,visible:me,onClose:function(){ge(void 0),he(!1)},closable:!1,children:(T==null?void 0:T.name)&&(0,o.jsx)(k.ZP,{column:2,title:T==null?void 0:T.name,request:(0,b.Z)((0,h.Z)().mark(function g(){return(0,h.Z)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",{data:T||{}});case 1:case"end":return t.stop()}},g)})),params:{id:T==null?void 0:T.name},columns:ue})})]})},ce=de},4795:function(se,O,r){"use strict";r.d(O,{lO:function(){return L},GT:function(){return z},Rq:function(){return N},e3:function(){return b},yR:function(){return $},fA:function(){return K},se:function(){return Y},WF:function(){return o}});var p=r(39428),x=r(3182),I=r(48971);function L(n){return B.apply(this,arguments)}function B(){return B=(0,x.Z)((0,p.Z)().mark(function n(s){return(0,p.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,I.WY)("/kitchen/api/goods/goodss",{method:"Post",data:s}));case 1:case"end":return e.stop()}},n)})),B.apply(this,arguments)}function z(n){return j.apply(this,arguments)}function j(){return j=(0,x.Z)((0,p.Z)().mark(function n(s){return(0,p.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,I.WY)("/kitchen/api/bom/getpage",{method:"Post",data:s}));case 1:case"end":return e.stop()}},n)})),j.apply(this,arguments)}function oe(n){return w.apply(this,arguments)}function w(){return w=_asyncToGenerator(_regeneratorRuntime().mark(function n(s){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("/kitchen/api/GoodsBom/AddBom",{method:"Post",data:s}));case 1:case"end":return e.stop()}},n)})),w.apply(this,arguments)}function Z(n){return h.apply(this,arguments)}function h(){return h=_asyncToGenerator(_regeneratorRuntime().mark(function n(s){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("/kitchen/api/GoodsBom/getBomInfo",{method:"Post",data:s}));case 1:case"end":return e.stop()}},n)})),h.apply(this,arguments)}function N(n){return v.apply(this,arguments)}function v(){return v=(0,x.Z)((0,p.Z)().mark(function n(s){return(0,p.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,I.WY)("/kitchen/api/goods",{method:"POST",data:s}));case 1:case"end":return e.stop()}},n)})),v.apply(this,arguments)}function b(n){return G.apply(this,arguments)}function G(){return G=(0,x.Z)((0,p.Z)().mark(function n(s){return(0,p.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("\u5546\u54C1\u6570\u636E\u4FEE\u6539",s),e.abrupt("return",(0,I.WY)("/kitchen/api/goods",{method:"PUT",data:s}));case 2:case"end":return e.stop()}},n)})),G.apply(this,arguments)}function $(n){return f.apply(this,arguments)}function f(){return f=(0,x.Z)((0,p.Z)().mark(function n(s){return(0,p.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,I.WY)("/kitchen/api/goods",{method:"DELETE",data:s}));case 1:case"end":return e.stop()}},n)})),f.apply(this,arguments)}function K(n){return A.apply(this,arguments)}function A(){return A=(0,x.Z)((0,p.Z)().mark(function n(s){return(0,p.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,I.WY)("/kitchen/api/goods-type/goods-types",{method:"POST",data:s}));case 1:case"end":return e.stop()}},n)})),A.apply(this,arguments)}function Y(n){return k.apply(this,arguments)}function k(){return k=(0,x.Z)((0,p.Z)().mark(function n(s){return(0,p.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,I.WY)("/kitchen/api/goods-type/big-goods-types",{method:"POST",data:s}));case 1:case"end":return e.stop()}},n)})),k.apply(this,arguments)}function le(n){return M.apply(this,arguments)}function M(){return M=_asyncToGenerator(_regeneratorRuntime().mark(function n(s){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("/kitchen/api/goodstaste/getlist"));case 1:case"end":return e.stop()}},n)})),M.apply(this,arguments)}function ie(n){return W.apply(this,arguments)}function W(){return W=_asyncToGenerator(_regeneratorRuntime().mark(function n(s){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("/kitchen//api/goodes/ExportGood",{method:"POST",data:s}));case 1:case"end":return e.stop()}},n)})),W.apply(this,arguments)}function o(){return U.apply(this,arguments)}function U(){return U=(0,x.Z)((0,p.Z)().mark(function n(){return(0,p.Z)().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",(0,I.WY)("/kitchen/api/goodes/GoodsTemplateExport",{method:"post",responseType:"blob"}));case 1:case"end":return l.stop()}},n)})),U.apply(this,arguments)}}}]); diff --git a/dist/p__integral__integralConfigure.658b235d.async.js b/dist/p__integral__integralConfigure.ff7adb78.async.js similarity index 76% rename from dist/p__integral__integralConfigure.658b235d.async.js rename to dist/p__integral__integralConfigure.ff7adb78.async.js index 5064809..be4e703 100644 --- a/dist/p__integral__integralConfigure.658b235d.async.js +++ b/dist/p__integral__integralConfigure.ff7adb78.async.js @@ -1 +1 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[1100,1322],{64760:function(Le,q,s){"use strict";var W=s(71194),S=s(50146),i=s(62350),x=s(24565),m=s(39428),ee=s(3182),D=s(2824),we=s(47673),te=s(4107),_=s(67294),y=s(16894),P=s(78009),V=s(79146),I=s(85893),z=function(F){var M=(0,_.useRef)(),g=te.Z.TextArea,se=(0,_.useState)(!1),ge=(0,D.Z)(se,2),ce=ge[0],ae=ge[1],J="",Re=(0,_.useState)(),ne=(0,D.Z)(Re,2),O=ne[0],oe=ne[1],Ee=function(){var N=(0,ee.Z)((0,m.Z)().mark(function E(T){return(0,m.Z)().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:if(F.couponRecord.showType!=1){w.next=5;break}return w.next=3,(0,V.m$)(JSON.stringify({Id:O.id,Status:O.status==1?0:1,Remark:J})).then(function(K){ae(!1),M.current.reload()});case 3:w.next=7;break;case 5:return w.next=7,(0,V.A8)(JSON.stringify({Id:O.id,Status:O.status==1?0:1,Remark:J})).then(function(K){ae(!1),M.current.reload()});case 7:case"end":return w.stop()}},E)}));return function(T){return N.apply(this,arguments)}}(),de=function(){ae(!1)},_e=function(E){J=E.target.value},he=[{title:"\u4E3B\u952E",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0},{title:"\u9002\u7528\u8303\u56F4",dataIndex:"supplier",hideInSearch:!0,valueType:"textarea"},{title:"\u72B6\u6001",key:"status",dataIndex:"status",valueEnum:{1:{text:"\u7981\u7528",status:"Warning"},0:{text:"\u542F\u7528",status:"Success"}}},{title:"\u5907\u6CE8",dataIndex:"remark",hideInSearch:!0,valueType:"textarea"},{title:"\u53D1\u653E\u65F6\u95F4",key:"sendTime",hideInSearch:!0,dataIndex:"sendTime"},{title:"\u64CD\u4F5C",dateIndex:"option",valueType:"option",render:function(E,T){return(0,I.jsx)(x.Z,{type:"primary",title:"\u786E\u8BA4\u542F\u7528\u5417\uFF1F",okText:"\u662F",cancelText:"\u5426",onConfirm:(0,ee.Z)((0,m.Z)().mark(function B(){return(0,m.Z)().wrap(function(K){for(;;)switch(K.prev=K.next){case 0:g.value=T.remark,oe(T),ae(!0);case 3:case"end":return K.stop()}},B)})),onCancel:function(){},children:(0,I.jsx)("a",{href:"#",children:T.status==0?"\u7981\u7528":"\u542F\u7528"})},"primary")}}];return(0,I.jsxs)(S.Z,{footer:null,destroyOnClose:!0,visible:F.shows,width:1100,onCancel:function(){F.onCancel()},children:[(0,I.jsx)(P.ZP,{headerTitle:"",header:{title:"\u53D1\u653E\u8BB0\u5F55",breadcrumb:{}},children:(0,I.jsx)(y.ZP,{actionRef:M,rowKey:"id",options:!1,search:{labelWidth:120},pagination:{pageSize:5},columns:he,request:function(){var N=(0,ee.Z)((0,m.Z)().mark(function E(T){var B,w;return(0,m.Z)().wrap(function($){for(;;)switch($.prev=$.next){case 0:if(B=[],w=0,T.couponId=F.couponRecord.couponId,T.batchNo=F.couponRecord.batchNo,F.couponRecord.showType!=1){$.next=9;break}return $.next=7,(0,V.m2)(T).then(function(U){B=U.data.data,w=U.data.total});case 7:$.next=11;break;case 9:return $.next=11,(0,V.tP)(T).then(function(U){B=U.data.data,w=U.data.total});case 11:return $.abrupt("return",{data:B,success:!0,total:w});case 12:case"end":return $.stop()}},E)}));return function(E){return N.apply(this,arguments)}}()})}),(0,I.jsx)(S.Z,{title:"\u5907\u6CE8",visible:ce,onOk:Ee,onCancel:de,children:(0,I.jsx)(g,{onChange:function(E){return _e(E)},rows:4})})]})};q.Z=z},79146:function(Le,q,s){"use strict";s.d(q,{hz:function(){return x},GA:function(){return ee},m$:function(){return we},m2:function(){return te},tP:function(){return _},A8:function(){return y},aO:function(){return P},fC:function(){return I}});var W=s(39428),S=s(3182),i=s(48971);function x(v){return m.apply(this,arguments)}function m(){return m=(0,S.Z)((0,W.Z)().mark(function v(F){return(0,W.Z)().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return g.abrupt("return",(0,i.WY)("/kitchen/api/coupon/couponrecordpage",{method:"POST",data:F}));case 1:case"end":return g.stop()}},v)})),m.apply(this,arguments)}function ee(v){return D.apply(this,arguments)}function D(){return D=(0,S.Z)((0,W.Z)().mark(function v(F){return(0,W.Z)().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return g.abrupt("return",(0,i.WY)("/kitchen/api/coupon/customerpage",{method:"POST",data:F}));case 1:case"end":return g.stop()}},v)})),D.apply(this,arguments)}function we(v){return(0,i.WY)("/kitchen/api/coupon/recallcoupon",{method:"post",data:v})}function te(v){return(0,i.WY)("/kitchen/api/coupon/couponrecordbyid",{method:"post",data:v})}function _(v){return(0,i.WY)("/kitchen/api/coupon/couponrecordgoods",{method:"post",data:v})}function y(v){return(0,i.WY)("/kitchen/api/coupon/recallcoupongoods",{method:"post",data:v})}function P(v){return V.apply(this,arguments)}function V(){return V=(0,S.Z)((0,W.Z)().mark(function v(F){return(0,W.Z)().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return g.abrupt("return",(0,i.WY)("/kitchen/api/coupon/receivecouponbyinput",{method:"PUT",data:F}));case 1:case"end":return g.stop()}},v)})),V.apply(this,arguments)}function I(v){return z.apply(this,arguments)}function z(){return z=(0,S.Z)((0,W.Z)().mark(function v(F){return(0,W.Z)().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return g.abrupt("return",(0,i.WY)("/kitchen\u200B/api\u200B/select\u200B/customerinfo\u200B",{method:"Post",data:F}));case 1:case"end":return g.stop()}},v)})),z.apply(this,arguments)}},59458:function(Le,q,s){"use strict";s.r(q),s.d(q,{default:function(){return Bt}});var W=s(57663),S=s(71577),i=s(39428),x=s(3182),m=s(2824),ee=s(34792),D=s(48086),we=s(18106),te=s(86629),_=s(49101),y=s(67294),P=s(16894),V=s(30381),I=s.n(V),z=s(11849),v=s(48971);function F(c){return M.apply(this,arguments)}function M(){return M=_asyncToGenerator(_regeneratorRuntime().mark(function c(n){return _regeneratorRuntime().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",request("/kitchen/api/integral/add",{method:"POST",data:n}));case 1:case"end":return u.stop()}},c)})),M.apply(this,arguments)}function g(c){return se.apply(this,arguments)}function se(){return se=_asyncToGenerator(_regeneratorRuntime().mark(function c(n){return _regeneratorRuntime().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",request("/kitchen/api/integral/edit",{method:"POST",data:n}));case 1:case"end":return u.stop()}},c)})),se.apply(this,arguments)}function ge(c){return ce.apply(this,arguments)}function ce(){return ce=(0,x.Z)((0,i.Z)().mark(function c(n){return(0,i.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,v.WY)("/kitchen/api/integral/getpage",{method:"POST",data:n}));case 1:case"end":return u.stop()}},c)})),ce.apply(this,arguments)}function ae(c){return J.apply(this,arguments)}function J(){return J=(0,x.Z)((0,i.Z)().mark(function c(n){return(0,i.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,v.WY)("/kitchen/api/integraltype/add",{method:"POST",data:n}));case 1:case"end":return u.stop()}},c)})),J.apply(this,arguments)}function Re(c){return ne.apply(this,arguments)}function ne(){return ne=(0,x.Z)((0,i.Z)().mark(function c(n){return(0,i.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,v.WY)("/kitchen/api/integraltype/edit",{method:"POST",data:n}));case 1:case"end":return u.stop()}},c)})),ne.apply(this,arguments)}function O(c){return oe.apply(this,arguments)}function oe(){return oe=(0,x.Z)((0,i.Z)().mark(function c(n){return(0,i.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,v.WY)("/kitchen/api/integraltype/getpage",{method:"POST",data:n}));case 1:case"end":return u.stop()}},c)})),oe.apply(this,arguments)}function Ee(c){return de.apply(this,arguments)}function de(){return de=(0,x.Z)((0,i.Z)().mark(function c(n){return(0,i.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,v.WY)("/kitchen/api/integralrule/add",{method:"POST",data:n}));case 1:case"end":return u.stop()}},c)})),de.apply(this,arguments)}function _e(c){return he.apply(this,arguments)}function he(){return he=(0,x.Z)((0,i.Z)().mark(function c(n){return(0,i.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,v.WY)("/kitchen/api/integralrule/edit",{method:"POST",data:n}));case 1:case"end":return u.stop()}},c)})),he.apply(this,arguments)}function N(c){return E.apply(this,arguments)}function E(){return E=_asyncToGenerator(_regeneratorRuntime().mark(function c(n){return _regeneratorRuntime().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",request("/kitchen/api/integralrule/edit",{method:"POST",data:n}));case 1:case"end":return u.stop()}},c)})),E.apply(this,arguments)}function T(c){return B.apply(this,arguments)}function B(){return B=(0,x.Z)((0,i.Z)().mark(function c(n){return(0,i.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,v.WY)("/kitchen/api/integralrule/getpage",{method:"POST",data:n}));case 1:case"end":return u.stop()}},c)})),B.apply(this,arguments)}function w(c){return K.apply(this,arguments)}function K(){return K=(0,x.Z)((0,i.Z)().mark(function c(n){return(0,i.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,v.WY)("/kitchen/api/goods-type/goods-types",{method:"POST",data:n}));case 1:case"end":return u.stop()}},c)})),K.apply(this,arguments)}function $(c){return U.apply(this,arguments)}function U(){return U=(0,x.Z)((0,i.Z)().mark(function c(n){return(0,i.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,v.WY)("/kitchen/api/goods-type/big-goods-types",{method:"POST",data:n}));case 1:case"end":return u.stop()}},c)})),U.apply(this,arguments)}function Ca(c){return Te.apply(this,arguments)}function Te(){return Te=_asyncToGenerator(_regeneratorRuntime().mark(function c(n){return _regeneratorRuntime().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",request("/kitchen/api/Device/StoreDeviceTree",{data:_objectSpread({},n)}));case 1:case"end":return u.stop()}},c)})),Te.apply(this,arguments)}function St(c){return Be.apply(this,arguments)}function Be(){return Be=(0,x.Z)((0,i.Z)().mark(function c(n){return(0,i.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,v.WY)("/kitchen/api/Device/StoreList",{data:(0,z.Z)({},n)}));case 1:case"end":return u.stop()}},c)})),Be.apply(this,arguments)}function ga(){return Ae.apply(this,arguments)}function Ae(){return Ae=_asyncToGenerator(_regeneratorRuntime().mark(function c(){return _regeneratorRuntime().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.abrupt("return",request("/kitchen/api/integralrule/addinteg",{}));case 1:case"end":return h.stop()}},c)})),Ae.apply(this,arguments)}function It(){return Pe.apply(this,arguments)}function Pe(){return Pe=(0,x.Z)((0,i.Z)().mark(function c(){return(0,i.Z)().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.abrupt("return",(0,v.WY)("/kitchen/api/integralrule/getall",{}));case 1:case"end":return h.stop()}},c)})),Pe.apply(this,arguments)}function ba(c){var n="";switch(c){case 1:n="priceIds";break;case 2:n="bigIds";break;case 3:n="smallIds";break;case 4:n="countIds";break;case 5:n="personsIds";break;case 6:n="numberIds";break;default:break}return n}function ka(c){var n="\u672A\u5B9A\u4E49\u89C4\u5219";switch(c){case 1:n="\u6309\u6D88\u8D39\u91D1\u989D\u79EF\u5206\u89C4\u5219";break;case 2:n="\u6309\u5927\u7C7B\u79EF\u5206\u89C4\u5219";break;case 3:n="\u6309\u5C0F\u7C7B\u79EF\u5206\u89C4\u5219";break;case 4:n="\u6309\u6D88\u8D39\u6B21\u6570\u79EF\u5206\u89C4\u5219";break;case 5:n="\u6309\u6D88\u8D39\u4EBA\u6570\u79EF\u5206\u89C4\u5219";break;case 6:n="\u6309\u51FA\u54C1\u6570\u91CF\u79EF\u5206\u89C4\u5219";break;default:break}return n}var ja=s(71194),Ne=s(50146),Da=s(48736),Me=s(27049),Sa=s(14965),Oe=s(91774),Ia=s(17462),Ue=s(76772),Fa=s(43358),Y=s(34041),wa=s(77576),L=s(12028),Ra=s(9715),o=s(55843),Ea=s(47673),k=s(4107),_a=s(96486),Ta=s(48526),e=s(85893),Ft=k.Z.TextArea,wt=function(n){var h=(0,y.useState)([]),u=(0,m.Z)(h,2),pe=u[0],be=u[1],We=(0,y.useState)([]),ke=(0,m.Z)(We,2),je=ke[0],X=ke[1],G=[{name:"Monday",value:1,label:"\u5468\u4E00"},{name:"Tuesday",value:2,label:"\u5468\u4E8C"},{name:"Wednesday",value:3,label:"\u5468\u4E09"},{name:"Thursday",value:4,label:"\u5468\u56DB"},{name:"Friday",value:5,label:"\u5468\u4E94"},{name:"Saturday",value:6,label:"\u5468\u516D"},{name:"Sunday",value:0,label:"\u5468\u65E5"}],Ve=[{name:"none",value:-1,label:"\u4E0D\u79EF\u5206"},{name:"common",value:0,label:"\u79EF\u5206\u4F18\u5148\u65B9\u6848"},{name:"price",value:1,label:"\u6309\u91D1\u989D\u79EF\u5206"},{name:"big",value:2,label:"\u6309\u5927\u7C7B\u79EF\u5206"},{name:"small",value:3,label:"\u6309\u5C0F\u7C7B\u79EF\u5206"},{name:"count",value:4,label:"\u6309\u6D88\u8D39\u6B21\u6570\u79EF\u5206"},{name:"persons",value:5,label:"\u6309\u6D88\u8D39\u4EBA\u6570\u79EF\u5206"},{name:"number",value:6,label:"\u6309\u51FA\u54C1\u6570\u91CF\u79EF\u5206"}];if(n.Data!=null&&n.Data.allChild&&pe.length==0&&be(n.Data.allChild),je.length==0&&(n.values.priority>0&&X((n.Data.allChild||[]).find(function(C){return C.ruleType==n.values.priority}).child),n.values.priority==0)){var R=[];(n.Data.allChild||[]).map(function(C,j){(C.child||[]).map(function(me,ue){R.push(me)})}),X(R)}function De(C){var j="\u672A\u5B9A\u4E49\u89C4\u5219";switch(C){case 1:j="\u6D88\u8D39\u91D1\u989D";break;case 2:j="\u6309\u5927\u7C7B";break;case 3:j="\u6309\u5C0F\u7C7B";break;case 4:j="\u6D88\u8D39\u6B21\u6570";break;case 5:j="\u6D88\u8D39\u4EBA\u6570";break;case 6:j="\u51FA\u54C1\u6570\u91CF";break;default:break}return j}var Ke=o.Z.useForm(),Se=(0,m.Z)(Ke,1),Ie=Se[0];return(0,e.jsx)(Ne.Z,{width:"80%",visible:n.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){n.onCancel(),be([])},destroyOnClose:!0,children:(0,e.jsxs)(o.Z,{layout:"Vertical",labelCol:{span:6},initialValues:n.values,onFinish:n.onFinish,onCancel:n.onCancel,form:Ie,children:[(0,e.jsxs)("div",{style:{float:"left"},children:[(0,e.jsx)(o.Z.Item,{name:"id",hidden:!0,children:(0,e.jsx)(k.Z,{})}),(0,e.jsx)(o.Z.Item,{label:"\u89C4\u5219\u540D\u79F0",name:"name",children:(0,e.jsx)(k.Z,{})}),(0,e.jsx)(o.Z.Item,{label:"\u7279\u4EF7\u5546\u54C1\u53C2\u4E0E\u79EF\u5206",name:"isSpecial",valuePropName:"checked",children:(0,e.jsx)(L.Z,{checkedChildren:"\u5F00\u542F",unCheckedChildren:"\u5173\u95ED"})}),(0,e.jsx)(o.Z.Item,{label:"\u79EF\u5206\u4F18\u5148\u65B9\u6848\u8BBE\u7F6E",name:"priority",initialValue:n.values.priority||[],title:"\u9ED8\u8BA4\u6309\u5C0F\u7C7B\uFF0C\u5927\u7C7B\uFF0C\u6B21\u6570\uFF0C\u4EBA\u6570\uFF0C\u6D88\u8D39\u91D1\u989D\uFF0C\u53D6\u552F\u4E00\u4E00\u79CD",children:(0,e.jsx)(Y.Z,{style:{width:"250px"},onChange:function(j,me){debugger;if(j<=0)if(j==0){var ue=[];(pe||[]).map(function(H,Ge){(H.child||[]).map(function(Fe,$e){ue.push(Fe)})}),X(ue)}else X([]);else X((pe||[]).find(function(H){return H.typeId==j}).child)},children:(Ve||[]).map(function(C,j){return(0,e.jsx)(Y.Z.Option,{index:j,value:C.value,children:C.label},C.name)})})}),(0,e.jsx)(Ue.Z,{message:"\u79EF\u5206\u4F18\u5148\u65B9\u6848: \u9ED8\u8BA4\u6309\u5C0F\u7C7B\uFF0C\u5927\u7C7B\uFF0C\u6B21\u6570\uFF0C\u4EBA\u6570\uFF0C\u6D88\u8D39\u91D1\u989D\uFF0C\u53D6\u552F\u4E00\u4E00\u79CD",type:"success"})]}),(0,e.jsxs)("div",{style:{float:"right",width:"58%"},children:[(0,e.jsx)(o.Z.Item,{label:"\u6D3B\u52A8\u8D77\u6B62\u65F6\u95F4",initialValues:"",name:"effectiveDate",children:(0,e.jsx)(Oe.Z.RangePicker,{showTime:!0,style:{width:"70%"}})}),(0,e.jsx)(o.Z.Item,{label:"\u79EF\u5206\u5151\u6362\u50A8\u503C",name:"isOpenIntegToPrice",valuePropName:"checked",children:(0,e.jsx)(L.Z,{checkedChildren:"\u5F00\u542F",unCheckedChildren:"\u5173\u95ED"})}),(0,e.jsxs)(o.Z.Item,{label:"\u79EF\u5206\u5151\u6362\u50A8\u503C\u6BD4\u4F8B",children:[(0,e.jsx)(o.Z.Item,{style:{display:"inline-block"},name:"integToPriceRatioHead",children:(0,e.jsx)(k.Z,{className:"site-input-right",style:{width:150,textAlign:"center"},placeholder:"\u79EF\u5206",addonAfter:"\u5151\u6362"})}),(0,e.jsx)(o.Z.Item,{style:{display:"inline-block"},name:"integToPriceRatioValue",children:(0,e.jsx)(k.Z,{className:"site-input-right",style:{width:100,textAlign:"center"},placeholder:"\u50A8\u503C"})})]}),(0,e.jsx)(o.Z.Item,{label:"\u79EF\u5206\u5151\u6362\u5546\u54C1",name:"isOpenIntegToCommodity",valuePropName:"checked",children:(0,e.jsx)(L.Z,{checkedChildren:"\u5F00\u542F",unCheckedChildren:"\u5173\u95ED"})}),(0,e.jsx)(o.Z.Item,{label:"\u79EF\u5206\u65B9\u6848\u4F7F\u7528\u7C7B\u578B\u8BBE\u7F6E",name:"ruletypelist",initialValue:n.values.ruletypelist||[],children:(0,e.jsx)(Y.Z,{mode:"multiple",style:{width:"90%"},allowClear:!0,children:(je||[]).map(function(C,j){return(0,e.jsxs)(Y.Z.Option,{index:j,value:C.id,children:[De(C.ruleType),"-",C.ruleRemark]},C.id)})})}),(0,e.jsx)(Ue.Z,{message:"\u9009\u62E9\u65B9\u6848\u7C7B\u578B\u540E,\u5C06\u4F1A\u4F7F\u7528\u5DF2\u9009\u62E9\u7684\u65B9\u6848\u7C7B\u578B\u8FDB\u884C\u79EF\u5206\u8BA1\u7B97",type:"success"}),(0,e.jsx)("br",{})]}),(0,e.jsx)(Me.Z,{}),(0,e.jsx)(o.Z.Item,{name:"ruleRemark",label:"\u89C4\u5219\u8BF4\u660E",children:(0,e.jsx)(Ft,{})}),(0,e.jsx)(Me.Z,{}),(0,e.jsxs)(o.Z.Item,{label:"\u4F1A\u5458\u751F\u65E5\u5F53\u5929\u79EF\u5206\u500D\u6570",children:[(0,e.jsx)(o.Z.Item,{name:"birthdayMultiple",style:{display:"inline-block"},children:(0,e.jsx)(k.Z,{addonAfter:"\u500D",style:{width:100}})}),"\xA0\xA0\xA0",(0,e.jsx)(o.Z.Item,{style:{display:"inline-block"},name:"birthdayMultipleOn",valuePropName:"checked",children:(0,e.jsx)(L.Z,{checkedChildren:"\u5F00\u542F",unCheckedChildren:"\u5173\u95ED"})})]}),(0,e.jsxs)(o.Z.Item,{label:"\u4F1A\u5458\u751F\u65E5\u5F53\u6708\u79EF\u5206\u500D\u6570",children:[(0,e.jsx)(o.Z.Item,{name:"birthmonthMultiple",style:{display:"inline-block"},children:(0,e.jsx)(k.Z,{addonAfter:"\u500D",style:{width:100}})}),"\xA0\xA0\xA0",(0,e.jsx)(o.Z.Item,{style:{display:"inline-block"},name:"birthmonthMultipleOn",valuePropName:"checked",children:(0,e.jsx)(L.Z,{checkedChildren:"\u5F00\u542F",unCheckedChildren:"\u5173\u95ED"})})]}),(0,e.jsxs)(o.Z.Item,{label:"\u6BCF\u6708\u56FA\u5B9A\u65E5",children:[(0,e.jsx)(o.Z.Item,{name:"monthDay",style:{display:"inline-block"},children:(0,e.jsx)(k.Z,{className:"site-input-right",name:"monthDay",style:{width:160},addonBefore:"\u6BCF\u6708",addonAfter:"\u65E5"})}),(0,e.jsx)(o.Z.Item,{style:{display:"inline-block"},name:"multipleMonthDay",children:(0,e.jsx)(k.Z,{addonAfter:"\u500D",style:{width:100}})}),"\xA0\xA0\xA0",(0,e.jsx)(o.Z.Item,{style:{display:"inline-block"},name:"multipleMonthDayOn",valuePropName:"checked",children:(0,e.jsx)(L.Z,{checkedChildren:"\u5F00\u542F",unCheckedChildren:"\u5173\u95ED"})})]}),(0,e.jsxs)(o.Z.Item,{label:"\u6BCF\u5468\u56FA\u5B9A\u65E5",children:[(0,e.jsx)(o.Z.Item,{name:"weekList",style:{display:"inline-block"},initialValue:n.values.weekList||[],children:(0,e.jsx)(Y.Z,{mode:"multiple",style:{width:"300px"},children:G.map(function(C,j){return(0,e.jsx)(Y.Z.Option,{index:j,value:C.value,children:C.label},C.name)})})}),(0,e.jsx)(o.Z.Item,{name:"weekMultiple",style:{display:"inline-block"},children:(0,e.jsx)(k.Z,{className:"site-input-right",style:{width:100},addonAfter:"\u500D",placeholder:"\u79EF\u5206\u500D\u6570"})}),"\xA0\xA0\xA0",(0,e.jsx)(o.Z.Item,{style:{display:"inline-block"},name:"weekMultipleOn",valuePropName:"checked",children:(0,e.jsx)(L.Z,{checkedChildren:"\u5F00\u542F",unCheckedChildren:"\u5173\u95ED"})})]}),(0,e.jsxs)(o.Z.Item,{label:"\u56FA\u5B9A\u65F6\u95F4\u6BB5\u79EF\u5206\u500D\u6570",children:[(0,e.jsx)(o.Z.Item,{name:"multipleDate",style:{display:"inline-block"},children:(0,e.jsx)(Oe.Z.RangePicker,{showTime:!0})}),(0,e.jsx)(o.Z.Item,{name:"dateMultiple",style:{display:"inline-block"},children:(0,e.jsx)(k.Z,{className:"site-input-right",style:{width:100},addonAfter:"\u500D",placeholder:"\u79EF\u5206\u500D\u6570"})}),"\xA0\xA0\xA0",(0,e.jsx)(o.Z.Item,{style:{display:"inline-block"},name:"dateMultipleOn",valuePropName:"checked",children:(0,e.jsx)(L.Z,{checkedChildren:"\u5F00\u542F",unCheckedChildren:"\u5173\u95ED"})})]}),(0,e.jsxs)(o.Z.Item,{label:"\u56FA\u5B9A\u65E5\u671F\u79EF\u5206\u500D\u6570",children:[(0,e.jsx)(o.Z.Item,{name:"fixedDay",style:{display:"inline-block"},children:(0,e.jsx)(Oe.Z,{showTime:!0})}),(0,e.jsx)(o.Z.Item,{name:"multipleFixedDay",style:{display:"inline-block"},children:(0,e.jsx)(k.Z,{addonAfter:"\u500D",style:{width:100}})}),"\xA0\xA0\xA0",(0,e.jsx)(o.Z.Item,{style:{display:"inline-block"},name:"multiplefixedDayOn",valuePropName:"checked",children:(0,e.jsx)(L.Z,{checkedChildren:"\u5F00\u542F",unCheckedChildren:"\u5173\u95ED"})})]}),(0,e.jsx)(Me.Z,{}),(0,e.jsx)(S.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})]})})},Rt=wt,Ba=s(64760),Et=k.Z.TextArea,_t=function(n){return(0,e.jsx)(Ne.Z,{width:840,visible:n.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){n.onCancel()},destroyOnClose:!0,children:(0,e.jsxs)(o.Z,{layout:"Vertical",labelCol:{span:6},initialValues:n.values,onFinish:n.onFinish,onCancel:n.onCancel,children:[(0,e.jsx)(o.Z.Item,{name:"id",hidden:!0,children:(0,e.jsx)(k.Z,{})}),(0,e.jsx)(o.Z.Item,{label:"\u89C4\u5219\u7C7B\u578B",name:"ruleType",initialValue:n.Data.ruleType,hidden:!0,children:(0,e.jsx)(k.Z,{})}),(0,e.jsx)(o.Z.Item,{label:"\u6D88\u8D39\u91D1\u989D",name:"thresholdPriceKey",hidden:n.Data.type!="price",children:(0,e.jsx)(k.Z,{})}),(0,e.jsx)(o.Z.Item,{label:"\u79EF\u5206\u53D6\u6574",name:"OpenUnFloor",initialValue:n.values.isUnFloor==1,hidden:n.Data.type!="price",valuePropName:"checked",children:(0,e.jsx)(L.Z,{})}),(0,e.jsx)(o.Z.Item,{label:"\u51FA\u54C1\u6570\u91CF",name:"thresholdNumberKey",hidden:n.Data.type!="number",children:(0,e.jsx)(k.Z,{})}),(0,e.jsx)(o.Z.Item,{label:"\u7528\u9910\u4EBA\u6570",name:"thresholdPersonsKey",hidden:n.Data.type!="persons",children:(0,e.jsx)(k.Z,{})}),(0,e.jsx)(o.Z.Item,{label:"\u6D88\u8D39\u6B21\u6570",name:"thresholdCountKey",hidden:n.Data.type!="count",children:(0,e.jsx)(k.Z,{})}),(0,e.jsx)(o.Z.Item,{label:"\u5927\u7C7B",name:"thresholdBigKey",initialValue:n.values.thresholdBigKey,hidden:n.Data.type!="big",children:(0,e.jsx)(Y.Z,{children:n.Data.Big.map(function(h,u){return(0,e.jsx)(Y.Z.Option,{typekey:h.typeKey,index:u,value:h.id,children:h.name},h.id)})})}),(0,e.jsx)(o.Z.Item,{label:"\u5C0F\u7C7B",name:"thresholdSmallKey",hidden:n.Data.type!="small",children:(0,e.jsx)(Y.Z,{children:n.Data.Small.map(function(h,u){return(0,e.jsx)(Y.Z.Option,{typekey:h.typeKey,index:u,value:h.id,children:h.goodsType_Name},h.id)})})}),(0,e.jsx)(o.Z.Item,{label:"\u79EF\u5206",name:"rulethresholdValue",children:(0,e.jsx)(k.Z,{})}),(0,e.jsx)(o.Z.Item,{label:"\u751F\u6548\u95E8\u69DB",name:"thresholds",children:(0,e.jsx)(k.Z,{})}),(0,e.jsx)(o.Z.Item,{label:"\u89C4\u5219\u63CF\u8FF0",name:"ruleRemark",children:(0,e.jsx)(Et,{})}),(0,e.jsx)(o.Z.Item,{children:(0,e.jsx)(S.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})})},re=_t,Q=te.Z.TabPane,Aa=null,Tt=function(){function n(l){var t="\u672A\u5B9A\u4E49\u89C4\u5219";switch(l){case 1:t="\u6309\u6D88\u8D39\u91D1\u989D\u79EF\u5206\u89C4\u5219";break;case 2:t="\u6309\u5927\u7C7B\u79EF\u5206\u89C4\u5219";break;case 3:t="\u6309\u5C0F\u7C7B\u79EF\u5206\u89C4\u5219";break;case 4:t="\u6309\u6D88\u8D39\u6B21\u6570\u79EF\u5206\u89C4\u5219";break;case 5:t="\u6309\u6D88\u8D39\u4EBA\u6570\u79EF\u5206\u89C4\u5219";break;case 6:t="\u6309\u51FA\u54C1\u6570\u91CF\u79EF\u5206\u89C4\u5219";break;default:break}return t}var h={price:1,big:2,small:3,count:4,persons:5,number:6},u=[{title:"\u89C4\u5219id",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0},{title:"\u91D1\u989D",dataIndex:"thresholdPriceKey"},{title:"\u79EF\u5206",dataIndex:"rulethresholdValue"},{title:"\u79EF\u5206\u53D6\u6574",dataIndex:"isUnFloor",render:function(t,a){return a.isUnFloor==1?"\u5DF2\u5F00\u542F":"\u672A\u5F00\u542F"}},{title:"\u9608\u503C",dataIndex:"thresholds"},{title:"\u89C4\u5219\u63CF\u8FF0",dataIndex:"ruleRemark"},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(t,a){return[(0,e.jsxs)("a",{onClick:function(){C(!0),ut(a)},children:[" ","\u4FEE\u6539"]},"primary"),(0,e.jsxs)("a",{onClick:function(){a.status=a.status==0?1:0,R(a)},children:[" ",a.status==0?"\u505C\u7528":"\u542F\u7528"]},"primary")]}}],pe=[{title:"\u89C4\u5219id",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0},{title:"\u91D1\u989D",dataIndex:"thresholds"},{title:"\u79EF\u5206",dataIndex:"rulethresholdValue"},{title:"\u5927\u7C7B\u7F16\u7801",dataIndex:"thresholdBigKey"},{title:"\u89C4\u5219\u63CF\u8FF0",dataIndex:"ruleRemark"},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(t,a){return[(0,e.jsxs)("a",{onClick:function(){H(!0),it(a)},children:[" ","\u4FEE\u6539"]},"primary"),(0,e.jsxs)("a",{onClick:function(){a.status=a.status==0?1:0,R(a)},children:[" ",a.status==0?"\u505C\u7528":"\u542F\u7528"]},"primary")]}}],be=[{title:"\u89C4\u5219id",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0},{title:"\u91D1\u989D",dataIndex:"thresholds"},{title:"\u79EF\u5206",dataIndex:"rulethresholdValue"},{title:"\u5C0F\u7C7B\u7F16\u7801",dataIndex:"thresholdSmallKey"},{title:"\u89C4\u5219\u63CF\u8FF0",dataIndex:"ruleRemark"},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(t,a){return[(0,e.jsxs)("a",{onClick:function(){fe(!0),ct(a)},children:[" ","\u4FEE\u6539"]},"primary"),(0,e.jsxs)("a",{onClick:function(){a.status=a.status==0?1:0,R(a)},children:[" ",a.status==0?"\u505C\u7528":"\u542F\u7528"]},"primary")]}}],We=[{title:"\u89C4\u5219id",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0},{title:"\u6B21\u6570",dataIndex:"thresholdCountKey"},{title:"\u79EF\u5206",dataIndex:"rulethresholdValue"},{title:"\u79EF\u5206\u9608\u503C",dataIndex:"thresholds"},{title:"\u89C4\u5219\u63CF\u8FF0",dataIndex:"ruleRemark"},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(t,a){return[(0,e.jsxs)("a",{onClick:function(){ye(!0),pt(a)},children:[" ","\u4FEE\u6539"]},"primary"),(0,e.jsxs)("a",{onClick:function(){a.status=a.status==0?1:0,R(a)},children:[" ",a.status==0?"\u505C\u7528":"\u542F\u7528"]},"primary")]}}],ke=[{title:"\u89C4\u5219id",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0},{title:"\u4EBA\u6570",dataIndex:"thresholdPersonsKey"},{title:"\u79EF\u5206",dataIndex:"rulethresholdValue"},{title:"\u79EF\u5206\u9608\u503C",dataIndex:"thresholds"},{title:"\u89C4\u5219\u63CF\u8FF0",dataIndex:"ruleRemark"},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(t,a){return[(0,e.jsxs)("a",{onClick:function(){ve(!0),dt(a)},children:[" ","\u4FEE\u6539"]},"primary"),(0,e.jsxs)("a",{onClick:function(){a.status=a.status==0?1:0,R(a)},children:[" ",a.status==0?"\u505C\u7528":"\u542F\u7528"]},"primary")]}}],je=[{title:"\u89C4\u5219id",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0},{title:"\u6570\u91CF",dataIndex:"thresholdNumberKey"},{title:"\u79EF\u5206",dataIndex:"rulethresholdValue"},{title:"\u79EF\u5206\u9608\u503C",dataIndex:"thresholds"},{title:"\u89C4\u5219\u63CF\u8FF0",dataIndex:"ruleRemark"},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(t,a){return[(0,e.jsxs)("a",{onClick:function(){Ze(!0),setnumberCurrentRow(a)},children:[" ","\u4FEE\u6539"]},"primary"),(0,e.jsxs)("a",{onClick:function(){a.status=a.status==0?1:0,R(a)},children:[" ",a.status==0?"\u505C\u7528":"\u542F\u7528"]},"primary")]}}],X=[{title:"\u89C4\u5219id",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0},{title:"\u89C4\u5219\u540D\u79F0",dataIndex:"name"},{title:"\u89C4\u5219\u8BF4\u660E",dataIndex:"ruleRemark"},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(t,a){return[(0,e.jsxs)("a",{onClick:function(){xe(!0),Ye(a)},children:[" ","\u4FEE\u6539"]},"primary"),(0,e.jsxs)("a",{onClick:function(){a.status=a.status==0?1:0,De(a)},children:[" ",a.status==0?"\u505C\u7528":"\u542F\u7528"]},"primary")]}}];function G(l){try{return ae(l).then(function(t){t.data?(D.default.success("\u6DFB\u52A0\u6210\u529F"),Z.current.reload()):D.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01")}),!0}catch(t){return D.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),!1}}function Ve(l){try{return Ee(l).then(function(t){t.data?(D.default.success("\u6DFB\u52A0\u6210\u529F"),Z.current.reload()):D.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01")}),!0}catch(t){return D.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),!1}}function R(l){try{return Re(l).then(function(t){t.data?D.default.success("\u914D\u7F6E\u6210\u529F"):D.default.error("\u914D\u7F6E\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),Z.current.reload()}),!0}catch(t){return D.default.error("\u914D\u7F6E\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),!1}}function De(l){try{return _e(l).then(function(t){t.data?D.default.success("\u914D\u7F6E\u6210\u529F"):D.default.error("\u914D\u7F6E\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),Z.current.reload()}),!0}catch(t){return D.default.error("\u914D\u7F6E\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),!1}}var Ke=(0,y.useState)(),Se=(0,m.Z)(Ke,2),Ie=Se[0],C=Se[1],j=(0,y.useState)(),me=(0,m.Z)(j,2),ue=me[0],H=me[1],Ge=(0,y.useState)(),Fe=(0,m.Z)(Ge,2),$e=Fe[0],fe=Fe[1],At=(0,y.useState)(),He=(0,m.Z)(At,2),ze=He[0],ye=He[1],Pt=(0,y.useState)(),Je=(0,m.Z)(Pt,2),Qe=Je[0],ve=Je[1],Mt=(0,y.useState)(),Xe=(0,m.Z)(Mt,2),qe=Xe[0],Ze=Xe[1],Ot=(0,y.useState)(),et=(0,m.Z)(Ot,2),tt=et[0],xe=et[1],Wt=(0,y.useState)([]),at=(0,m.Z)(Wt,2),le=at[0],Vt=at[1],Kt=(0,y.useState)([]),nt=(0,m.Z)(Kt,2),ie=nt[0],$t=nt[1],Yt=(0,y.useState)(),rt=(0,m.Z)(Yt,2),Lt=rt[0],ut=rt[1],Nt=(0,y.useState)(),lt=(0,m.Z)(Nt,2),Ut=lt[0],it=lt[1],Gt=(0,y.useState)(),st=(0,m.Z)(Gt,2),Ht=st[0],ct=st[1],zt=(0,y.useState)(),ot=(0,m.Z)(zt,2),Jt=ot[0],dt=ot[1],Qt=(0,y.useState)(),ht=(0,m.Z)(Qt,2),Xt=ht[0],pt=ht[1],qt=(0,y.useState)(),mt=(0,m.Z)(qt,2),ea=mt[0],ta=mt[1],aa=(0,y.useState)(),ft=(0,m.Z)(aa,2),na=ft[0],Ye=ft[1],ra=(0,y.useState)(),yt=(0,m.Z)(ra,2),ua=yt[0],la=yt[1],ia=(0,y.useState)(),vt=(0,m.Z)(ia,2),Pa=vt[0],sa=vt[1],ca=(0,y.useState)([]),Zt=(0,m.Z)(ca,2),oa=Zt[0],da=Zt[1],ha=(0,y.useState)(),xt=(0,m.Z)(ha,2),Ma=xt[0],pa=xt[1],ma=(0,y.useState)([]),Ct=(0,m.Z)(ma,2),Oa=Ct[0],fa=Ct[1],ya=(0,y.useState)([]),gt=(0,m.Z)(ya,2),Wa=gt[0],va=gt[1],Za=(0,y.useState)([]),bt=(0,m.Z)(Za,2),Va=bt[0],Ka=bt[1],xa=(0,y.useState)([]),kt=(0,m.Z)(xa,2),$a=kt[0],Ya=kt[1],La=function(t,a){console.log(t[0]),la(t[0]),sa(a.node.type)},Z=(0,y.useRef)();return(0,y.useEffect)(function(){var l={current:1,pagesize:30};$(l).then(function(t){Vt(t.data.data)}),w(l).then(function(t){$t(t.data.data)}),St(l).then(function(t){pa(t.data)}),It({current:0,pagesize:0}).then(function(t){da(t.data);var a=[],r=[];(t.data.allCommon||[]).map(function(d,f){r.push({title:d.name,key:d.id,parentId:0,type:0,children:[]})}),a.push({title:"\u901A\u7528\u89C4\u5219",key:0,parentId:0,type:0,children:r}),(t.data.allChild||[]).map(function(d,f){var p=n(d.typeId),b=[];d.child.map(function(Ce,A){b.push({title:Ce.ruleRemark,key:Ce.id,parentId:d.typeId,type:d.typeId,children:[]})}),a.push({title:p,key:d.typeId,parentId:0,type:d.typeId,children:b})}),fa(a)}),ge({current:0,pagesize:0}).then(function(t){va(t.data)})},[]),(0,e.jsxs)(te.Z,{defaultActiveKey:"1",children:[(0,e.jsx)(re,{onFinish:function(){var l=(0,x.Z)((0,i.Z)().mark(function t(a){var r;return(0,i.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:r=!1,a.id?r=R(a):r=G(a),r&&(C(!1),ut(void 0),Z.current&&Z.current.reload());case 3:case"end":return f.stop()}},t)}));return function(t){return l.apply(this,arguments)}}(),onCancel:function(){C(!1),Z.current.reload()},Data:{type:"price",ruleType:h.price,Big:le||[],Small:ie||[]},createModalVisible:Ie,values:Lt||{}}),(0,e.jsx)(re,{onFinish:function(){var l=(0,x.Z)((0,i.Z)().mark(function t(a){var r;return(0,i.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:r=!1,a.id?r=R(a):r=G(a),r&&(H(!1),it(void 0),Z.current&&Z.current.reload());case 3:case"end":return f.stop()}},t)}));return function(t){return l.apply(this,arguments)}}(),onCancel:function(){H(!1),Z.current.reload()},Data:{type:"big",ruleType:h.big,Big:le||[],Small:ie||[]},createModalVisible:ue,values:Ut||{}}),(0,e.jsx)(re,{onCancel:function(){fe(!1),Z.current.reload()},onFinish:function(){var l=(0,x.Z)((0,i.Z)().mark(function t(a){var r;return(0,i.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:r=!1,a.id?r=R(a):r=G(a),r&&(fe(!1),ct(void 0),Z.current&&(fe(!1),Z.current.reload()));case 3:case"end":return f.stop()}},t)}));return function(t){return l.apply(this,arguments)}}(),Data:{type:"small",ruleType:h.small,Big:le||[],Small:ie||[]},createModalVisible:$e,values:Ht||{}}),(0,e.jsx)(re,{onCancel:function(){ye(!1),Z.current.reload()},onFinish:function(){var l=(0,x.Z)((0,i.Z)().mark(function t(a){var r;return(0,i.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:r=!1,a.id?r=R(a):r=G(a),r&&(ye(!1),pt(void 0),Z.current&&(ye(!1),Z.current.reload()));case 3:case"end":return f.stop()}},t)}));return function(t){return l.apply(this,arguments)}}(),Data:{type:"count",ruleType:h.count,Big:le||[],Small:ie||[]},createModalVisible:ze,values:Xt||{}}),(0,e.jsx)(re,{onCancel:function(){ve(!1),Z.current.reload()},onFinish:function(){var l=(0,x.Z)((0,i.Z)().mark(function t(a){var r;return(0,i.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:r=!1,a.id?r=R(a):r=G(a),r&&(ve(!1),dt(void 0),Z.current&&(ve(!1),Z.current.reload()));case 3:case"end":return f.stop()}},t)}));return function(t){return l.apply(this,arguments)}}(),Data:{type:"persons",ruleType:h.persons,Big:le||[],Small:ie||[]},createModalVisible:Qe,values:Jt||{}}),(0,e.jsx)(re,{onCancel:function(){Ze(!1),Z.current.reload()},onFinish:function(){var l=(0,x.Z)((0,i.Z)().mark(function t(a){var r;return(0,i.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:r=!1,a.id?r=R(a):r=G(a),r&&(Ze(!1),ta(void 0),Z.current&&(Ze(!1),Z.current.reload()));case 3:case"end":return f.stop()}},t)}));return function(t){return l.apply(this,arguments)}}(),Data:{type:"number",ruleType:h.number,Big:le||[],Small:ie||[]},createModalVisible:qe,values:ea||{}}),(0,e.jsx)(Rt,{onCancel:function(){xe(!1),Ye(void 0),Z.current.reload()},onFinish:function(){var l=(0,x.Z)((0,i.Z)().mark(function t(a){var r;return(0,i.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:r=!1,a.id?r=De(a):r=Ve(a),r&&(xe(!1),Ye(void 0),Z.current&&(xe(!1),Z.current.reload()));case 3:case"end":return f.stop()}},t)}));return function(t){return l.apply(this,arguments)}}(),Data:oa||{allChild:[],allCommon:[]},createModalVisible:tt,values:na||{}}),(0,e.jsx)(Q,{tab:"\u901A\u7528\u8BBE\u7F6E",style:{float:"left"},children:(0,e.jsx)(P.ZP,{actionRef:Z,rowKey:"id",search:{labelWidth:120},toolBarRender:function(){return[(0,e.jsxs)(S.Z,{type:"primary",onClick:function(){xe(!0)},children:[(0,e.jsx)(_.Z,{})," \u6DFB\u52A0"]},"primary")]},params:{thisRuleId:ua},request:function(){var l=(0,x.Z)((0,i.Z)().mark(function t(a){var r,d;return(0,i.Z)().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return r=[],d=0,p.next=4,T(a).then(function(b){var Ce=b.data.data;Ce.map(function(A,Na){var jt=[],Dt=[];A.effectiveDate!=null&&(jt=[I()(A.effectiveDate[0],"YYYY-MM-DD HH:mm:ss"),I()(A.effectiveDate[1],"YYYY-MM-DD HH:mm:ss")],A.effectiveDate=jt),A.multipleDate!=null&&(Dt=[I()(A.multipleDate[0],"YYYY-MM-DD HH:mm:ss"),I()(A.multipleDate[1],"YYYY-MM-DD HH:mm:ss")],A.multipleDate=Dt),A.fixedDay!=null&&(A.fixedDay=I()(A.fixedDay,"YYYY-MM-DD HH:mm:ss"))}),r=Ce,d=b.data.total});case 4:return p.abrupt("return",{data:r,success:!0,total:d});case 5:case"end":return p.stop()}},t)}));return function(t){return l.apply(this,arguments)}}(),modalVisible:tt,columns:X,rowSelection:{onChange:function(t,a){}}})},"1"),(0,e.jsx)(Q,{tab:"\u6309\u91D1\u989D\u79EF\u5206",children:(0,e.jsx)(P.ZP,{actionRef:Z,rowKey:"id",search:{labelWidth:120},toolBarRender:function(){return[(0,e.jsxs)(S.Z,{type:"primary",onClick:function(){C(!0)},children:[(0,e.jsx)(_.Z,{})," \u6DFB\u52A0"]},"primary")]},params:{RuleType:1},request:function(){var l=(0,x.Z)((0,i.Z)().mark(function t(a){var r,d;return(0,i.Z)().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return r=[],d=0,p.next=4,O(a).then(function(b){r=b.data.data,d=b.data.total});case 4:return p.abrupt("return",{data:r,success:!0,total:d});case 5:case"end":return p.stop()}},t)}));return function(t){return l.apply(this,arguments)}}(),modalVisible:Ie,columns:u,rowSelection:{onChange:function(t,a){}}})},"2"),(0,e.jsx)(Q,{tab:"\u6309\u5927\u7C7B\u79EF\u5206",children:(0,e.jsx)(P.ZP,{actionRef:Z,rowKey:"id",search:{labelWidth:120},toolBarRender:function(){return[(0,e.jsxs)(S.Z,{type:"primary",onClick:function(){H(!0)},children:[(0,e.jsx)(_.Z,{})," \u6DFB\u52A0"]},"primary")]},params:{RuleType:2},request:function(){var l=(0,x.Z)((0,i.Z)().mark(function t(a){var r,d;return(0,i.Z)().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return r=[],d=0,p.next=4,O(a).then(function(b){r=b.data.data,d=b.data.total});case 4:return p.abrupt("return",{data:r,success:!0,total:d});case 5:case"end":return p.stop()}},t)}));return function(t){return l.apply(this,arguments)}}(),modalVisible:ue,columns:pe,rowSelection:{onChange:function(t,a){}}})},"3"),(0,e.jsx)(Q,{tab:"\u6309\u5C0F\u7C7B\u79EF\u5206",children:(0,e.jsx)(P.ZP,{actionRef:Z,rowKey:"id",search:{labelWidth:120},toolBarRender:function(){return[(0,e.jsxs)(S.Z,{type:"primary",onClick:function(){fe(!0)},children:[(0,e.jsx)(_.Z,{})," \u6DFB\u52A0"]},"primary")]},params:{RuleType:3},request:function(){var l=(0,x.Z)((0,i.Z)().mark(function t(a){var r,d;return(0,i.Z)().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return r=[],d=0,p.next=4,O(a).then(function(b){r=b.data.data,d=b.data.total});case 4:return p.abrupt("return",{data:r,success:!0,total:d});case 5:case"end":return p.stop()}},t)}));return function(t){return l.apply(this,arguments)}}(),modalVisible:$e,columns:be,rowSelection:{onChange:function(t,a){}}})},"4"),(0,e.jsx)(Q,{tab:"\u6309\u6D88\u8D39\u6B21\u6570\u79EF\u5206",children:(0,e.jsx)(P.ZP,{actionRef:Z,rowKey:"id",search:{labelWidth:120},toolBarRender:function(){return[(0,e.jsxs)(S.Z,{type:"primary",onClick:function(){ye(!0)},children:[(0,e.jsx)(_.Z,{})," \u6DFB\u52A0"]},"primary")]},params:{RuleType:4},request:function(){var l=(0,x.Z)((0,i.Z)().mark(function t(a){var r,d;return(0,i.Z)().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return r=[],d=0,p.next=4,O(a).then(function(b){r=b.data.data,d=b.data.total});case 4:return p.abrupt("return",{data:r,success:!0,total:d});case 5:case"end":return p.stop()}},t)}));return function(t){return l.apply(this,arguments)}}(),modalVisible:ze,columns:We,rowSelection:{onChange:function(t,a){}}})},"5"),(0,e.jsx)(Q,{tab:"\u6309\u6D88\u8D39\u4EBA\u6570\u79EF\u5206",children:(0,e.jsx)(P.ZP,{actionRef:Z,rowKey:"id",search:{labelWidth:120},toolBarRender:function(){return[(0,e.jsxs)(S.Z,{type:"primary",onClick:function(){ve(!0)},children:[(0,e.jsx)(_.Z,{})," \u6DFB\u52A0"]},"primary")]},params:{RuleType:5},request:function(){var l=(0,x.Z)((0,i.Z)().mark(function t(a){var r,d;return(0,i.Z)().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return r=[],d=0,p.next=4,O(a).then(function(b){r=b.data.data,d=b.data.total});case 4:return p.abrupt("return",{data:r,success:!0,total:d});case 5:case"end":return p.stop()}},t)}));return function(t){return l.apply(this,arguments)}}(),modalVisible:Qe,columns:ke,rowSelection:{onChange:function(t,a){}}})},"6"),(0,e.jsx)(Q,{tab:"\u6309\u51FA\u54C1\u6570\u91CF\u79EF\u5206",children:(0,e.jsx)(P.ZP,{actionRef:Z,rowKey:"id",search:{labelWidth:120},toolBarRender:function(){return[(0,e.jsxs)(S.Z,{type:"primary",onClick:function(){Ze(!0)},children:[(0,e.jsx)(_.Z,{})," \u6DFB\u52A0"]},"primary")]},params:{RuleType:6},request:function(){var l=(0,x.Z)((0,i.Z)().mark(function t(a){var r,d;return(0,i.Z)().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return r=[],d=0,p.next=4,O(a).then(function(b){r=b.data.data,d=b.data.total});case 4:return p.abrupt("return",{data:r,success:!0,total:d});case 5:case"end":return p.stop()}},t)}));return function(t){return l.apply(this,arguments)}}(),modalVisible:qe,columns:je,rowSelection:{onChange:function(t,a){}}})},"7")]})},Bt=Tt}}]); +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[1100,1322],{64760:function(Le,q,s){"use strict";var V=s(71194),S=s(50146),i=s(62350),x=s(24565),m=s(39428),ee=s(3182),D=s(2824),we=s(47673),te=s(4107),_=s(67294),y=s(16894),P=s(78009),W=s(79146),I=s(85893),z=function(F){var M=(0,_.useRef)(),g=te.Z.TextArea,se=(0,_.useState)(!1),ge=(0,D.Z)(se,2),ce=ge[0],ae=ge[1],J="",Re=(0,_.useState)(),ne=(0,D.Z)(Re,2),O=ne[0],de=ne[1],Ee=function(){var N=(0,ee.Z)((0,m.Z)().mark(function E(B){return(0,m.Z)().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:if(F.couponRecord.showType!=1){w.next=5;break}return w.next=3,(0,W.m$)(JSON.stringify({Id:O.id,Status:O.status==1?0:1,Remark:J})).then(function(K){ae(!1),M.current.reload()});case 3:w.next=7;break;case 5:return w.next=7,(0,W.A8)(JSON.stringify({Id:O.id,Status:O.status==1?0:1,Remark:J})).then(function(K){ae(!1),M.current.reload()});case 7:case"end":return w.stop()}},E)}));return function(B){return N.apply(this,arguments)}}(),oe=function(){ae(!1)},_e=function(E){J=E.target.value},he=[{title:"\u4E3B\u952E",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0},{title:"\u9002\u7528\u8303\u56F4",dataIndex:"supplier",hideInSearch:!0,valueType:"textarea"},{title:"\u72B6\u6001",key:"status",dataIndex:"status",valueEnum:{1:{text:"\u7981\u7528",status:"Warning"},0:{text:"\u542F\u7528",status:"Success"}}},{title:"\u5907\u6CE8",dataIndex:"remark",hideInSearch:!0,valueType:"textarea"},{title:"\u53D1\u653E\u65F6\u95F4",key:"sendTime",hideInSearch:!0,dataIndex:"sendTime"},{title:"\u64CD\u4F5C",dateIndex:"option",valueType:"option",render:function(E,B){return(0,I.jsx)(x.Z,{type:"primary",title:"\u786E\u8BA4\u542F\u7528\u5417\uFF1F",okText:"\u662F",cancelText:"\u5426",onConfirm:(0,ee.Z)((0,m.Z)().mark(function T(){return(0,m.Z)().wrap(function(K){for(;;)switch(K.prev=K.next){case 0:g.value=B.remark,de(B),ae(!0);case 3:case"end":return K.stop()}},T)})),onCancel:function(){},children:(0,I.jsx)("a",{href:"#",children:B.status==0?"\u7981\u7528":"\u542F\u7528"})},"primary")}}];return(0,I.jsxs)(S.Z,{footer:null,destroyOnClose:!0,visible:F.shows,width:1100,onCancel:function(){F.onCancel()},children:[(0,I.jsx)(P.ZP,{headerTitle:"",header:{title:"\u53D1\u653E\u8BB0\u5F55",breadcrumb:{}},children:(0,I.jsx)(y.ZP,{actionRef:M,rowKey:"id",options:!1,search:{labelWidth:120},pagination:{pageSize:5},columns:he,request:function(){var N=(0,ee.Z)((0,m.Z)().mark(function E(B){var T,w;return(0,m.Z)().wrap(function($){for(;;)switch($.prev=$.next){case 0:if(T=[],w=0,B.couponId=F.couponRecord.couponId,B.batchNo=F.couponRecord.batchNo,F.couponRecord.showType!=1){$.next=9;break}return $.next=7,(0,W.m2)(B).then(function(U){T=U.data.data,w=U.data.total});case 7:$.next=11;break;case 9:return $.next=11,(0,W.tP)(B).then(function(U){T=U.data.data,w=U.data.total});case 11:return $.abrupt("return",{data:T,success:!0,total:w});case 12:case"end":return $.stop()}},E)}));return function(E){return N.apply(this,arguments)}}()})}),(0,I.jsx)(S.Z,{title:"\u5907\u6CE8",visible:ce,onOk:Ee,onCancel:oe,children:(0,I.jsx)(g,{onChange:function(E){return _e(E)},rows:4})})]})};q.Z=z},79146:function(Le,q,s){"use strict";s.d(q,{hz:function(){return x},GA:function(){return ee},m$:function(){return we},m2:function(){return te},tP:function(){return _},A8:function(){return y},aO:function(){return P},fC:function(){return I}});var V=s(39428),S=s(3182),i=s(48971);function x(v){return m.apply(this,arguments)}function m(){return m=(0,S.Z)((0,V.Z)().mark(function v(F){return(0,V.Z)().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return g.abrupt("return",(0,i.WY)("/kitchen/api/coupon/couponrecordpage",{method:"POST",data:F}));case 1:case"end":return g.stop()}},v)})),m.apply(this,arguments)}function ee(v){return D.apply(this,arguments)}function D(){return D=(0,S.Z)((0,V.Z)().mark(function v(F){return(0,V.Z)().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return g.abrupt("return",(0,i.WY)("/kitchen/api/coupon/customerpage",{method:"POST",data:F}));case 1:case"end":return g.stop()}},v)})),D.apply(this,arguments)}function we(v){return(0,i.WY)("/kitchen/api/coupon/recallcoupon",{method:"post",data:v})}function te(v){return(0,i.WY)("/kitchen/api/coupon/couponrecordbyid",{method:"post",data:v})}function _(v){return(0,i.WY)("/kitchen/api/coupon/couponrecordgoods",{method:"post",data:v})}function y(v){return(0,i.WY)("/kitchen/api/coupon/recallcoupongoods",{method:"post",data:v})}function P(v){return W.apply(this,arguments)}function W(){return W=(0,S.Z)((0,V.Z)().mark(function v(F){return(0,V.Z)().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return g.abrupt("return",(0,i.WY)("/kitchen/api/coupon/receivecouponbyinput",{method:"PUT",data:F}));case 1:case"end":return g.stop()}},v)})),W.apply(this,arguments)}function I(v){return z.apply(this,arguments)}function z(){return z=(0,S.Z)((0,V.Z)().mark(function v(F){return(0,V.Z)().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return g.abrupt("return",(0,i.WY)("/kitchen\u200B/api\u200B/select\u200B/customerinfo\u200B",{method:"Post",data:F}));case 1:case"end":return g.stop()}},v)})),z.apply(this,arguments)}},59458:function(Le,q,s){"use strict";s.r(q),s.d(q,{default:function(){return Tt}});var V=s(57663),S=s(71577),i=s(39428),x=s(3182),m=s(2824),ee=s(34792),D=s(48086),we=s(18106),te=s(95562),_=s(49101),y=s(67294),P=s(16894),W=s(30381),I=s.n(W),z=s(11849),v=s(48971);function F(c){return M.apply(this,arguments)}function M(){return M=_asyncToGenerator(_regeneratorRuntime().mark(function c(n){return _regeneratorRuntime().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",request("/kitchen/api/integral/add",{method:"POST",data:n}));case 1:case"end":return u.stop()}},c)})),M.apply(this,arguments)}function g(c){return se.apply(this,arguments)}function se(){return se=_asyncToGenerator(_regeneratorRuntime().mark(function c(n){return _regeneratorRuntime().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",request("/kitchen/api/integral/edit",{method:"POST",data:n}));case 1:case"end":return u.stop()}},c)})),se.apply(this,arguments)}function ge(c){return ce.apply(this,arguments)}function ce(){return ce=(0,x.Z)((0,i.Z)().mark(function c(n){return(0,i.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,v.WY)("/kitchen/api/integral/getpage",{method:"POST",data:n}));case 1:case"end":return u.stop()}},c)})),ce.apply(this,arguments)}function ae(c){return J.apply(this,arguments)}function J(){return J=(0,x.Z)((0,i.Z)().mark(function c(n){return(0,i.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,v.WY)("/kitchen/api/integraltype/add",{method:"POST",data:n}));case 1:case"end":return u.stop()}},c)})),J.apply(this,arguments)}function Re(c){return ne.apply(this,arguments)}function ne(){return ne=(0,x.Z)((0,i.Z)().mark(function c(n){return(0,i.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,v.WY)("/kitchen/api/integraltype/edit",{method:"POST",data:n}));case 1:case"end":return u.stop()}},c)})),ne.apply(this,arguments)}function O(c){return de.apply(this,arguments)}function de(){return de=(0,x.Z)((0,i.Z)().mark(function c(n){return(0,i.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,v.WY)("/kitchen/api/integraltype/getpage",{method:"POST",data:n}));case 1:case"end":return u.stop()}},c)})),de.apply(this,arguments)}function Ee(c){return oe.apply(this,arguments)}function oe(){return oe=(0,x.Z)((0,i.Z)().mark(function c(n){return(0,i.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,v.WY)("/kitchen/api/integralrule/add",{method:"POST",data:n}));case 1:case"end":return u.stop()}},c)})),oe.apply(this,arguments)}function _e(c){return he.apply(this,arguments)}function he(){return he=(0,x.Z)((0,i.Z)().mark(function c(n){return(0,i.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,v.WY)("/kitchen/api/integralrule/edit",{method:"POST",data:n}));case 1:case"end":return u.stop()}},c)})),he.apply(this,arguments)}function N(c){return E.apply(this,arguments)}function E(){return E=_asyncToGenerator(_regeneratorRuntime().mark(function c(n){return _regeneratorRuntime().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",request("/kitchen/api/integralrule/edit",{method:"POST",data:n}));case 1:case"end":return u.stop()}},c)})),E.apply(this,arguments)}function B(c){return T.apply(this,arguments)}function T(){return T=(0,x.Z)((0,i.Z)().mark(function c(n){return(0,i.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,v.WY)("/kitchen/api/integralrule/getpage",{method:"POST",data:n}));case 1:case"end":return u.stop()}},c)})),T.apply(this,arguments)}function w(c){return K.apply(this,arguments)}function K(){return K=(0,x.Z)((0,i.Z)().mark(function c(n){return(0,i.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,v.WY)("/kitchen/api/goods-type/goods-types",{method:"POST",data:n}));case 1:case"end":return u.stop()}},c)})),K.apply(this,arguments)}function $(c){return U.apply(this,arguments)}function U(){return U=(0,x.Z)((0,i.Z)().mark(function c(n){return(0,i.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,v.WY)("/kitchen/api/goods-type/big-goods-types",{method:"POST",data:n}));case 1:case"end":return u.stop()}},c)})),U.apply(this,arguments)}function Ca(c){return Be.apply(this,arguments)}function Be(){return Be=_asyncToGenerator(_regeneratorRuntime().mark(function c(n){return _regeneratorRuntime().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",request("/kitchen/api/Device/StoreDeviceTree",{data:_objectSpread({},n)}));case 1:case"end":return u.stop()}},c)})),Be.apply(this,arguments)}function St(c){return Te.apply(this,arguments)}function Te(){return Te=(0,x.Z)((0,i.Z)().mark(function c(n){return(0,i.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,v.WY)("/kitchen/api/Device/StoreList",{data:(0,z.Z)({},n)}));case 1:case"end":return u.stop()}},c)})),Te.apply(this,arguments)}function ga(){return Ae.apply(this,arguments)}function Ae(){return Ae=_asyncToGenerator(_regeneratorRuntime().mark(function c(){return _regeneratorRuntime().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.abrupt("return",request("/kitchen/api/integralrule/addinteg",{}));case 1:case"end":return h.stop()}},c)})),Ae.apply(this,arguments)}function It(){return Pe.apply(this,arguments)}function Pe(){return Pe=(0,x.Z)((0,i.Z)().mark(function c(){return(0,i.Z)().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.abrupt("return",(0,v.WY)("/kitchen/api/integralrule/getall",{}));case 1:case"end":return h.stop()}},c)})),Pe.apply(this,arguments)}function ba(c){var n="";switch(c){case 1:n="priceIds";break;case 2:n="bigIds";break;case 3:n="smallIds";break;case 4:n="countIds";break;case 5:n="personsIds";break;case 6:n="numberIds";break;default:break}return n}function ka(c){var n="\u672A\u5B9A\u4E49\u89C4\u5219";switch(c){case 1:n="\u6309\u6D88\u8D39\u91D1\u989D\u79EF\u5206\u89C4\u5219";break;case 2:n="\u6309\u5927\u7C7B\u79EF\u5206\u89C4\u5219";break;case 3:n="\u6309\u5C0F\u7C7B\u79EF\u5206\u89C4\u5219";break;case 4:n="\u6309\u6D88\u8D39\u6B21\u6570\u79EF\u5206\u89C4\u5219";break;case 5:n="\u6309\u6D88\u8D39\u4EBA\u6570\u79EF\u5206\u89C4\u5219";break;case 6:n="\u6309\u51FA\u54C1\u6570\u91CF\u79EF\u5206\u89C4\u5219";break;default:break}return n}var ja=s(71194),Ne=s(50146),Da=s(48736),Me=s(27049),Sa=s(14965),Oe=s(91774),Ia=s(17462),Ue=s(76772),Fa=s(43358),Y=s(34041),wa=s(77576),L=s(12028),Ra=s(9715),d=s(55843),Ea=s(47673),k=s(4107),_a=s(96486),Ba=s(48526),e=s(85893),Ft=k.Z.TextArea,wt=function(n){var h=(0,y.useState)([]),u=(0,m.Z)(h,2),pe=u[0],be=u[1],Ve=(0,y.useState)([]),ke=(0,m.Z)(Ve,2),je=ke[0],X=ke[1],G=[{name:"Monday",value:1,label:"\u5468\u4E00"},{name:"Tuesday",value:2,label:"\u5468\u4E8C"},{name:"Wednesday",value:3,label:"\u5468\u4E09"},{name:"Thursday",value:4,label:"\u5468\u56DB"},{name:"Friday",value:5,label:"\u5468\u4E94"},{name:"Saturday",value:6,label:"\u5468\u516D"},{name:"Sunday",value:0,label:"\u5468\u65E5"}],We=[{name:"none",value:-1,label:"\u4E0D\u79EF\u5206"},{name:"common",value:0,label:"\u79EF\u5206\u4F18\u5148\u65B9\u6848"},{name:"price",value:1,label:"\u6309\u91D1\u989D\u79EF\u5206"},{name:"big",value:2,label:"\u6309\u5927\u7C7B\u79EF\u5206"},{name:"small",value:3,label:"\u6309\u5C0F\u7C7B\u79EF\u5206"},{name:"count",value:4,label:"\u6309\u6D88\u8D39\u6B21\u6570\u79EF\u5206"},{name:"persons",value:5,label:"\u6309\u6D88\u8D39\u4EBA\u6570\u79EF\u5206"},{name:"number",value:6,label:"\u6309\u51FA\u54C1\u6570\u91CF\u79EF\u5206"}];if(n.Data!=null&&n.Data.allChild&&pe.length==0&&be(n.Data.allChild),je.length==0&&(n.values.priority>0&&X((n.Data.allChild||[]).find(function(C){return C.ruleType==n.values.priority}).child),n.values.priority==0)){var R=[];(n.Data.allChild||[]).map(function(C,j){(C.child||[]).map(function(me,ue){R.push(me)})}),X(R)}function De(C){var j="\u672A\u5B9A\u4E49\u89C4\u5219";switch(C){case 1:j="\u6D88\u8D39\u91D1\u989D";break;case 2:j="\u6309\u5927\u7C7B";break;case 3:j="\u6309\u5C0F\u7C7B";break;case 4:j="\u6D88\u8D39\u6B21\u6570";break;case 5:j="\u6D88\u8D39\u4EBA\u6570";break;case 6:j="\u51FA\u54C1\u6570\u91CF";break;default:break}return j}var Ke=d.Z.useForm(),Se=(0,m.Z)(Ke,1),Ie=Se[0];return(0,e.jsx)(Ne.Z,{width:"80%",visible:n.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){n.onCancel(),be([])},destroyOnClose:!0,children:(0,e.jsxs)(d.Z,{layout:"Vertical",labelCol:{span:6},initialValues:n.values,onFinish:n.onFinish,onCancel:n.onCancel,form:Ie,children:[(0,e.jsxs)("div",{style:{float:"left"},children:[(0,e.jsx)(d.Z.Item,{name:"id",hidden:!0,children:(0,e.jsx)(k.Z,{})}),(0,e.jsx)(d.Z.Item,{label:"\u89C4\u5219\u540D\u79F0",name:"name",children:(0,e.jsx)(k.Z,{})}),(0,e.jsx)(d.Z.Item,{label:"\u7279\u4EF7\u5546\u54C1\u53C2\u4E0E\u79EF\u5206",name:"isSpecial",valuePropName:"checked",children:(0,e.jsx)(L.Z,{checkedChildren:"\u5F00\u542F",unCheckedChildren:"\u5173\u95ED"})}),(0,e.jsx)(d.Z.Item,{label:"\u79EF\u5206\u4F18\u5148\u65B9\u6848\u8BBE\u7F6E",name:"priority",initialValue:n.values.priority||[],title:"\u9ED8\u8BA4\u6309\u5C0F\u7C7B\uFF0C\u5927\u7C7B\uFF0C\u6B21\u6570\uFF0C\u4EBA\u6570\uFF0C\u6D88\u8D39\u91D1\u989D\uFF0C\u53D6\u552F\u4E00\u4E00\u79CD",children:(0,e.jsx)(Y.Z,{style:{width:"250px"},onChange:function(j,me){debugger;if(j<=0)if(j==0){var ue=[];(pe||[]).map(function(H,Ge){(H.child||[]).map(function(Fe,$e){ue.push(Fe)})}),X(ue)}else X([]);else X((pe||[]).find(function(H){return H.typeId==j}).child)},children:(We||[]).map(function(C,j){return(0,e.jsx)(Y.Z.Option,{index:j,value:C.value,children:C.label},C.name)})})}),(0,e.jsx)(Ue.Z,{message:"\u79EF\u5206\u4F18\u5148\u65B9\u6848: \u9ED8\u8BA4\u6309\u5C0F\u7C7B\uFF0C\u5927\u7C7B\uFF0C\u6B21\u6570\uFF0C\u4EBA\u6570\uFF0C\u6D88\u8D39\u91D1\u989D\uFF0C\u53D6\u552F\u4E00\u4E00\u79CD",type:"success"})]}),(0,e.jsxs)("div",{style:{float:"right",width:"58%"},children:[(0,e.jsx)(d.Z.Item,{label:"\u6D3B\u52A8\u8D77\u6B62\u65F6\u95F4",initialValues:"",name:"effectiveDate",children:(0,e.jsx)(Oe.Z.RangePicker,{showTime:!0,style:{width:"70%"}})}),(0,e.jsx)(d.Z.Item,{label:"\u79EF\u5206\u5151\u6362\u50A8\u503C",name:"isOpenIntegToPrice",valuePropName:"checked",children:(0,e.jsx)(L.Z,{checkedChildren:"\u5F00\u542F",unCheckedChildren:"\u5173\u95ED"})}),(0,e.jsxs)(d.Z.Item,{label:"\u79EF\u5206\u5151\u6362\u50A8\u503C\u6BD4\u4F8B",children:[(0,e.jsx)(d.Z.Item,{style:{display:"inline-block"},name:"integToPriceRatioHead",children:(0,e.jsx)(k.Z,{className:"site-input-right",style:{width:150,textAlign:"center"},placeholder:"\u79EF\u5206",addonAfter:"\u5151\u6362"})}),(0,e.jsx)(d.Z.Item,{style:{display:"inline-block"},name:"integToPriceRatioValue",children:(0,e.jsx)(k.Z,{className:"site-input-right",style:{width:100,textAlign:"center"},placeholder:"\u50A8\u503C"})})]}),(0,e.jsx)(d.Z.Item,{label:"\u79EF\u5206\u5151\u6362\u5546\u54C1",name:"isOpenIntegToCommodity",valuePropName:"checked",children:(0,e.jsx)(L.Z,{checkedChildren:"\u5F00\u542F",unCheckedChildren:"\u5173\u95ED"})}),(0,e.jsx)(d.Z.Item,{label:"\u79EF\u5206\u65B9\u6848\u4F7F\u7528\u7C7B\u578B\u8BBE\u7F6E",name:"ruletypelist",initialValue:n.values.ruletypelist||[],children:(0,e.jsx)(Y.Z,{mode:"multiple",style:{width:"90%"},allowClear:!0,children:(je||[]).map(function(C,j){return(0,e.jsxs)(Y.Z.Option,{index:j,value:C.id,children:[De(C.ruleType),"-",C.ruleRemark]},C.id)})})}),(0,e.jsx)(Ue.Z,{message:"\u9009\u62E9\u65B9\u6848\u7C7B\u578B\u540E,\u5C06\u4F1A\u4F7F\u7528\u5DF2\u9009\u62E9\u7684\u65B9\u6848\u7C7B\u578B\u8FDB\u884C\u79EF\u5206\u8BA1\u7B97",type:"success"}),(0,e.jsx)("br",{})]}),(0,e.jsx)(Me.Z,{}),(0,e.jsx)(d.Z.Item,{name:"ruleRemark",label:"\u89C4\u5219\u8BF4\u660E",children:(0,e.jsx)(Ft,{})}),(0,e.jsx)(Me.Z,{}),(0,e.jsxs)(d.Z.Item,{label:"\u4F1A\u5458\u751F\u65E5\u5F53\u5929\u79EF\u5206\u500D\u6570",children:[(0,e.jsx)(d.Z.Item,{name:"birthdayMultiple",style:{display:"inline-block"},children:(0,e.jsx)(k.Z,{addonAfter:"\u500D",style:{width:100}})}),"\xA0\xA0\xA0",(0,e.jsx)(d.Z.Item,{style:{display:"inline-block"},name:"birthdayMultipleOn",valuePropName:"checked",children:(0,e.jsx)(L.Z,{checkedChildren:"\u5F00\u542F",unCheckedChildren:"\u5173\u95ED"})})]}),(0,e.jsxs)(d.Z.Item,{label:"\u4F1A\u5458\u751F\u65E5\u5F53\u6708\u79EF\u5206\u500D\u6570",children:[(0,e.jsx)(d.Z.Item,{name:"birthmonthMultiple",style:{display:"inline-block"},children:(0,e.jsx)(k.Z,{addonAfter:"\u500D",style:{width:100}})}),"\xA0\xA0\xA0",(0,e.jsx)(d.Z.Item,{style:{display:"inline-block"},name:"birthmonthMultipleOn",valuePropName:"checked",children:(0,e.jsx)(L.Z,{checkedChildren:"\u5F00\u542F",unCheckedChildren:"\u5173\u95ED"})})]}),(0,e.jsxs)(d.Z.Item,{label:"\u6BCF\u6708\u56FA\u5B9A\u65E5",children:[(0,e.jsx)(d.Z.Item,{name:"monthDay",style:{display:"inline-block"},children:(0,e.jsx)(k.Z,{className:"site-input-right",name:"monthDay",style:{width:160},addonBefore:"\u6BCF\u6708",addonAfter:"\u65E5"})}),(0,e.jsx)(d.Z.Item,{style:{display:"inline-block"},name:"multipleMonthDay",children:(0,e.jsx)(k.Z,{addonAfter:"\u500D",style:{width:100}})}),"\xA0\xA0\xA0",(0,e.jsx)(d.Z.Item,{style:{display:"inline-block"},name:"multipleMonthDayOn",valuePropName:"checked",children:(0,e.jsx)(L.Z,{checkedChildren:"\u5F00\u542F",unCheckedChildren:"\u5173\u95ED"})})]}),(0,e.jsxs)(d.Z.Item,{label:"\u6BCF\u5468\u56FA\u5B9A\u65E5",children:[(0,e.jsx)(d.Z.Item,{name:"weekList",style:{display:"inline-block"},initialValue:n.values.weekList||[],children:(0,e.jsx)(Y.Z,{mode:"multiple",style:{width:"300px"},children:G.map(function(C,j){return(0,e.jsx)(Y.Z.Option,{index:j,value:C.value,children:C.label},C.name)})})}),(0,e.jsx)(d.Z.Item,{name:"weekMultiple",style:{display:"inline-block"},children:(0,e.jsx)(k.Z,{className:"site-input-right",style:{width:100},addonAfter:"\u500D",placeholder:"\u79EF\u5206\u500D\u6570"})}),"\xA0\xA0\xA0",(0,e.jsx)(d.Z.Item,{style:{display:"inline-block"},name:"weekMultipleOn",valuePropName:"checked",children:(0,e.jsx)(L.Z,{checkedChildren:"\u5F00\u542F",unCheckedChildren:"\u5173\u95ED"})})]}),(0,e.jsxs)(d.Z.Item,{label:"\u56FA\u5B9A\u65F6\u95F4\u6BB5\u79EF\u5206\u500D\u6570",children:[(0,e.jsx)(d.Z.Item,{name:"multipleDate",style:{display:"inline-block"},children:(0,e.jsx)(Oe.Z.RangePicker,{showTime:!0})}),(0,e.jsx)(d.Z.Item,{name:"dateMultiple",style:{display:"inline-block"},children:(0,e.jsx)(k.Z,{className:"site-input-right",style:{width:100},addonAfter:"\u500D",placeholder:"\u79EF\u5206\u500D\u6570"})}),"\xA0\xA0\xA0",(0,e.jsx)(d.Z.Item,{style:{display:"inline-block"},name:"dateMultipleOn",valuePropName:"checked",children:(0,e.jsx)(L.Z,{checkedChildren:"\u5F00\u542F",unCheckedChildren:"\u5173\u95ED"})})]}),(0,e.jsxs)(d.Z.Item,{label:"\u56FA\u5B9A\u65E5\u671F\u79EF\u5206\u500D\u6570",children:[(0,e.jsx)(d.Z.Item,{name:"fixedDay",style:{display:"inline-block"},children:(0,e.jsx)(Oe.Z,{showTime:!0})}),(0,e.jsx)(d.Z.Item,{name:"multipleFixedDay",style:{display:"inline-block"},children:(0,e.jsx)(k.Z,{addonAfter:"\u500D",style:{width:100}})}),"\xA0\xA0\xA0",(0,e.jsx)(d.Z.Item,{style:{display:"inline-block"},name:"multiplefixedDayOn",valuePropName:"checked",children:(0,e.jsx)(L.Z,{checkedChildren:"\u5F00\u542F",unCheckedChildren:"\u5173\u95ED"})})]}),(0,e.jsx)(Me.Z,{}),(0,e.jsx)(S.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})]})})},Rt=wt,Ta=s(64760),Et=k.Z.TextArea,_t=function(n){return(0,e.jsx)(Ne.Z,{width:840,visible:n.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){n.onCancel()},destroyOnClose:!0,children:(0,e.jsxs)(d.Z,{layout:"Vertical",labelCol:{span:6},initialValues:n.values,onFinish:n.onFinish,onCancel:n.onCancel,children:[(0,e.jsx)(d.Z.Item,{name:"id",hidden:!0,children:(0,e.jsx)(k.Z,{})}),(0,e.jsx)(d.Z.Item,{label:"\u89C4\u5219\u7C7B\u578B",name:"ruleType",initialValue:n.Data.ruleType,hidden:!0,children:(0,e.jsx)(k.Z,{})}),(0,e.jsx)(d.Z.Item,{label:"\u6D88\u8D39\u91D1\u989D",name:"thresholdPriceKey",hidden:n.Data.type!="price",children:(0,e.jsx)(k.Z,{})}),(0,e.jsx)(d.Z.Item,{label:"\u79EF\u5206\u53D6\u6574",name:"OpenUnFloor",initialValue:n.values.isUnFloor==1,hidden:n.Data.type!="price",valuePropName:"checked",children:(0,e.jsx)(L.Z,{})}),(0,e.jsx)(d.Z.Item,{label:"\u51FA\u54C1\u6570\u91CF",name:"thresholdNumberKey",hidden:n.Data.type!="number",children:(0,e.jsx)(k.Z,{})}),(0,e.jsx)(d.Z.Item,{label:"\u7528\u9910\u4EBA\u6570",name:"thresholdPersonsKey",hidden:n.Data.type!="persons",children:(0,e.jsx)(k.Z,{})}),(0,e.jsx)(d.Z.Item,{label:"\u6D88\u8D39\u6B21\u6570",name:"thresholdCountKey",hidden:n.Data.type!="count",children:(0,e.jsx)(k.Z,{})}),(0,e.jsx)(d.Z.Item,{label:"\u5927\u7C7B",name:"thresholdBigKey",initialValue:n.values.thresholdBigKey,hidden:n.Data.type!="big",children:(0,e.jsx)(Y.Z,{children:n.Data.Big.map(function(h,u){return(0,e.jsx)(Y.Z.Option,{typekey:h.typeKey,index:u,value:h.id,children:h.name},h.id)})})}),(0,e.jsx)(d.Z.Item,{label:"\u5C0F\u7C7B",name:"thresholdSmallKey",hidden:n.Data.type!="small",children:(0,e.jsx)(Y.Z,{children:n.Data.Small.map(function(h,u){return(0,e.jsx)(Y.Z.Option,{typekey:h.typeKey,index:u,value:h.id,children:h.goodsType_Name},h.id)})})}),(0,e.jsx)(d.Z.Item,{label:"\u79EF\u5206",name:"rulethresholdValue",children:(0,e.jsx)(k.Z,{})}),(0,e.jsx)(d.Z.Item,{label:"\u751F\u6548\u95E8\u69DB",name:"thresholds",children:(0,e.jsx)(k.Z,{})}),(0,e.jsx)(d.Z.Item,{label:"\u89C4\u5219\u63CF\u8FF0",name:"ruleRemark",children:(0,e.jsx)(Et,{})}),(0,e.jsx)(d.Z.Item,{children:(0,e.jsx)(S.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})})},re=_t,Q=te.Z.TabPane,Aa=null,Bt=function(){function n(l){var t="\u672A\u5B9A\u4E49\u89C4\u5219";switch(l){case 1:t="\u6309\u6D88\u8D39\u91D1\u989D\u79EF\u5206\u89C4\u5219";break;case 2:t="\u6309\u5927\u7C7B\u79EF\u5206\u89C4\u5219";break;case 3:t="\u6309\u5C0F\u7C7B\u79EF\u5206\u89C4\u5219";break;case 4:t="\u6309\u6D88\u8D39\u6B21\u6570\u79EF\u5206\u89C4\u5219";break;case 5:t="\u6309\u6D88\u8D39\u4EBA\u6570\u79EF\u5206\u89C4\u5219";break;case 6:t="\u6309\u51FA\u54C1\u6570\u91CF\u79EF\u5206\u89C4\u5219";break;default:break}return t}var h={price:1,big:2,small:3,count:4,persons:5,number:6},u=[{title:"\u89C4\u5219id",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0},{title:"\u91D1\u989D",dataIndex:"thresholdPriceKey"},{title:"\u79EF\u5206",dataIndex:"rulethresholdValue"},{title:"\u79EF\u5206\u53D6\u6574",dataIndex:"isUnFloor",render:function(t,a){return a.isUnFloor==1?"\u5DF2\u5F00\u542F":"\u672A\u5F00\u542F"}},{title:"\u9608\u503C",dataIndex:"thresholds"},{title:"\u89C4\u5219\u63CF\u8FF0",dataIndex:"ruleRemark"},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(t,a){return[(0,e.jsxs)("a",{onClick:function(){C(!0),ut(a)},children:[" ","\u4FEE\u6539"]},"primary"),(0,e.jsxs)("a",{onClick:function(){a.status=a.status==0?1:0,R(a)},children:[" ",a.status==0?"\u505C\u7528":"\u542F\u7528"]},"primary")]}}],pe=[{title:"\u89C4\u5219id",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0},{title:"\u91D1\u989D",dataIndex:"thresholds"},{title:"\u79EF\u5206",dataIndex:"rulethresholdValue"},{title:"\u5927\u7C7B\u7F16\u7801",dataIndex:"thresholdBigKey"},{title:"\u89C4\u5219\u63CF\u8FF0",dataIndex:"ruleRemark"},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(t,a){return[(0,e.jsxs)("a",{onClick:function(){H(!0),it(a)},children:[" ","\u4FEE\u6539"]},"primary"),(0,e.jsxs)("a",{onClick:function(){a.status=a.status==0?1:0,R(a)},children:[" ",a.status==0?"\u505C\u7528":"\u542F\u7528"]},"primary")]}}],be=[{title:"\u89C4\u5219id",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0},{title:"\u91D1\u989D",dataIndex:"thresholds"},{title:"\u79EF\u5206",dataIndex:"rulethresholdValue"},{title:"\u5C0F\u7C7B\u7F16\u7801",dataIndex:"thresholdSmallKey"},{title:"\u89C4\u5219\u63CF\u8FF0",dataIndex:"ruleRemark"},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(t,a){return[(0,e.jsxs)("a",{onClick:function(){fe(!0),ct(a)},children:[" ","\u4FEE\u6539"]},"primary"),(0,e.jsxs)("a",{onClick:function(){a.status=a.status==0?1:0,R(a)},children:[" ",a.status==0?"\u505C\u7528":"\u542F\u7528"]},"primary")]}}],Ve=[{title:"\u89C4\u5219id",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0},{title:"\u6B21\u6570",dataIndex:"thresholdCountKey"},{title:"\u79EF\u5206",dataIndex:"rulethresholdValue"},{title:"\u79EF\u5206\u9608\u503C",dataIndex:"thresholds"},{title:"\u89C4\u5219\u63CF\u8FF0",dataIndex:"ruleRemark"},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(t,a){return[(0,e.jsxs)("a",{onClick:function(){ye(!0),pt(a)},children:[" ","\u4FEE\u6539"]},"primary"),(0,e.jsxs)("a",{onClick:function(){a.status=a.status==0?1:0,R(a)},children:[" ",a.status==0?"\u505C\u7528":"\u542F\u7528"]},"primary")]}}],ke=[{title:"\u89C4\u5219id",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0},{title:"\u4EBA\u6570",dataIndex:"thresholdPersonsKey"},{title:"\u79EF\u5206",dataIndex:"rulethresholdValue"},{title:"\u79EF\u5206\u9608\u503C",dataIndex:"thresholds"},{title:"\u89C4\u5219\u63CF\u8FF0",dataIndex:"ruleRemark"},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(t,a){return[(0,e.jsxs)("a",{onClick:function(){ve(!0),ot(a)},children:[" ","\u4FEE\u6539"]},"primary"),(0,e.jsxs)("a",{onClick:function(){a.status=a.status==0?1:0,R(a)},children:[" ",a.status==0?"\u505C\u7528":"\u542F\u7528"]},"primary")]}}],je=[{title:"\u89C4\u5219id",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0},{title:"\u6570\u91CF",dataIndex:"thresholdNumberKey"},{title:"\u79EF\u5206",dataIndex:"rulethresholdValue"},{title:"\u79EF\u5206\u9608\u503C",dataIndex:"thresholds"},{title:"\u89C4\u5219\u63CF\u8FF0",dataIndex:"ruleRemark"},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(t,a){return[(0,e.jsxs)("a",{onClick:function(){Ze(!0),setnumberCurrentRow(a)},children:[" ","\u4FEE\u6539"]},"primary"),(0,e.jsxs)("a",{onClick:function(){a.status=a.status==0?1:0,R(a)},children:[" ",a.status==0?"\u505C\u7528":"\u542F\u7528"]},"primary")]}}],X=[{title:"\u89C4\u5219id",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0},{title:"\u89C4\u5219\u540D\u79F0",dataIndex:"name"},{title:"\u89C4\u5219\u8BF4\u660E",dataIndex:"ruleRemark"},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(t,a){return[(0,e.jsxs)("a",{onClick:function(){xe(!0),Ye(a)},children:[" ","\u4FEE\u6539"]},"primary"),(0,e.jsxs)("a",{onClick:function(){a.status=a.status==0?1:0,De(a)},children:[" ",a.status==0?"\u505C\u7528":"\u542F\u7528"]},"primary")]}}];function G(l){try{return ae(l).then(function(t){t.data?(D.default.success("\u6DFB\u52A0\u6210\u529F"),Z.current.reload()):D.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01")}),!0}catch(t){return D.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),!1}}function We(l){try{return Ee(l).then(function(t){t.data?(D.default.success("\u6DFB\u52A0\u6210\u529F"),Z.current.reload()):D.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01")}),!0}catch(t){return D.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),!1}}function R(l){try{return Re(l).then(function(t){t.data?D.default.success("\u914D\u7F6E\u6210\u529F"):D.default.error("\u914D\u7F6E\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),Z.current.reload()}),!0}catch(t){return D.default.error("\u914D\u7F6E\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),!1}}function De(l){try{return _e(l).then(function(t){t.data?D.default.success("\u914D\u7F6E\u6210\u529F"):D.default.error("\u914D\u7F6E\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),Z.current.reload()}),!0}catch(t){return D.default.error("\u914D\u7F6E\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),!1}}var Ke=(0,y.useState)(),Se=(0,m.Z)(Ke,2),Ie=Se[0],C=Se[1],j=(0,y.useState)(),me=(0,m.Z)(j,2),ue=me[0],H=me[1],Ge=(0,y.useState)(),Fe=(0,m.Z)(Ge,2),$e=Fe[0],fe=Fe[1],At=(0,y.useState)(),He=(0,m.Z)(At,2),ze=He[0],ye=He[1],Pt=(0,y.useState)(),Je=(0,m.Z)(Pt,2),Qe=Je[0],ve=Je[1],Mt=(0,y.useState)(),Xe=(0,m.Z)(Mt,2),qe=Xe[0],Ze=Xe[1],Ot=(0,y.useState)(),et=(0,m.Z)(Ot,2),tt=et[0],xe=et[1],Vt=(0,y.useState)([]),at=(0,m.Z)(Vt,2),le=at[0],Wt=at[1],Kt=(0,y.useState)([]),nt=(0,m.Z)(Kt,2),ie=nt[0],$t=nt[1],Yt=(0,y.useState)(),rt=(0,m.Z)(Yt,2),Lt=rt[0],ut=rt[1],Nt=(0,y.useState)(),lt=(0,m.Z)(Nt,2),Ut=lt[0],it=lt[1],Gt=(0,y.useState)(),st=(0,m.Z)(Gt,2),Ht=st[0],ct=st[1],zt=(0,y.useState)(),dt=(0,m.Z)(zt,2),Jt=dt[0],ot=dt[1],Qt=(0,y.useState)(),ht=(0,m.Z)(Qt,2),Xt=ht[0],pt=ht[1],qt=(0,y.useState)(),mt=(0,m.Z)(qt,2),ea=mt[0],ta=mt[1],aa=(0,y.useState)(),ft=(0,m.Z)(aa,2),na=ft[0],Ye=ft[1],ra=(0,y.useState)(),yt=(0,m.Z)(ra,2),ua=yt[0],la=yt[1],ia=(0,y.useState)(),vt=(0,m.Z)(ia,2),Pa=vt[0],sa=vt[1],ca=(0,y.useState)([]),Zt=(0,m.Z)(ca,2),da=Zt[0],oa=Zt[1],ha=(0,y.useState)(),xt=(0,m.Z)(ha,2),Ma=xt[0],pa=xt[1],ma=(0,y.useState)([]),Ct=(0,m.Z)(ma,2),Oa=Ct[0],fa=Ct[1],ya=(0,y.useState)([]),gt=(0,m.Z)(ya,2),Va=gt[0],va=gt[1],Za=(0,y.useState)([]),bt=(0,m.Z)(Za,2),Wa=bt[0],Ka=bt[1],xa=(0,y.useState)([]),kt=(0,m.Z)(xa,2),$a=kt[0],Ya=kt[1],La=function(t,a){console.log(t[0]),la(t[0]),sa(a.node.type)},Z=(0,y.useRef)();return(0,y.useEffect)(function(){var l={current:1,pagesize:30};$(l).then(function(t){Wt(t.data.data)}),w(l).then(function(t){$t(t.data.data)}),St(l).then(function(t){pa(t.data)}),It({current:0,pagesize:0}).then(function(t){oa(t.data);var a=[],r=[];(t.data.allCommon||[]).map(function(o,f){r.push({title:o.name,key:o.id,parentId:0,type:0,children:[]})}),a.push({title:"\u901A\u7528\u89C4\u5219",key:0,parentId:0,type:0,children:r}),(t.data.allChild||[]).map(function(o,f){var p=n(o.typeId),b=[];o.child.map(function(Ce,A){b.push({title:Ce.ruleRemark,key:Ce.id,parentId:o.typeId,type:o.typeId,children:[]})}),a.push({title:p,key:o.typeId,parentId:0,type:o.typeId,children:b})}),fa(a)}),ge({current:0,pagesize:0}).then(function(t){va(t.data)})},[]),(0,e.jsxs)(te.Z,{defaultActiveKey:"1",children:[(0,e.jsx)(re,{onFinish:function(){var l=(0,x.Z)((0,i.Z)().mark(function t(a){var r;return(0,i.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:r=!1,a.id?r=R(a):r=G(a),r&&(C(!1),ut(void 0),Z.current&&Z.current.reload());case 3:case"end":return f.stop()}},t)}));return function(t){return l.apply(this,arguments)}}(),onCancel:function(){C(!1),Z.current.reload()},Data:{type:"price",ruleType:h.price,Big:le||[],Small:ie||[]},createModalVisible:Ie,values:Lt||{}}),(0,e.jsx)(re,{onFinish:function(){var l=(0,x.Z)((0,i.Z)().mark(function t(a){var r;return(0,i.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:r=!1,a.id?r=R(a):r=G(a),r&&(H(!1),it(void 0),Z.current&&Z.current.reload());case 3:case"end":return f.stop()}},t)}));return function(t){return l.apply(this,arguments)}}(),onCancel:function(){H(!1),Z.current.reload()},Data:{type:"big",ruleType:h.big,Big:le||[],Small:ie||[]},createModalVisible:ue,values:Ut||{}}),(0,e.jsx)(re,{onCancel:function(){fe(!1),Z.current.reload()},onFinish:function(){var l=(0,x.Z)((0,i.Z)().mark(function t(a){var r;return(0,i.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:r=!1,a.id?r=R(a):r=G(a),r&&(fe(!1),ct(void 0),Z.current&&(fe(!1),Z.current.reload()));case 3:case"end":return f.stop()}},t)}));return function(t){return l.apply(this,arguments)}}(),Data:{type:"small",ruleType:h.small,Big:le||[],Small:ie||[]},createModalVisible:$e,values:Ht||{}}),(0,e.jsx)(re,{onCancel:function(){ye(!1),Z.current.reload()},onFinish:function(){var l=(0,x.Z)((0,i.Z)().mark(function t(a){var r;return(0,i.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:r=!1,a.id?r=R(a):r=G(a),r&&(ye(!1),pt(void 0),Z.current&&(ye(!1),Z.current.reload()));case 3:case"end":return f.stop()}},t)}));return function(t){return l.apply(this,arguments)}}(),Data:{type:"count",ruleType:h.count,Big:le||[],Small:ie||[]},createModalVisible:ze,values:Xt||{}}),(0,e.jsx)(re,{onCancel:function(){ve(!1),Z.current.reload()},onFinish:function(){var l=(0,x.Z)((0,i.Z)().mark(function t(a){var r;return(0,i.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:r=!1,a.id?r=R(a):r=G(a),r&&(ve(!1),ot(void 0),Z.current&&(ve(!1),Z.current.reload()));case 3:case"end":return f.stop()}},t)}));return function(t){return l.apply(this,arguments)}}(),Data:{type:"persons",ruleType:h.persons,Big:le||[],Small:ie||[]},createModalVisible:Qe,values:Jt||{}}),(0,e.jsx)(re,{onCancel:function(){Ze(!1),Z.current.reload()},onFinish:function(){var l=(0,x.Z)((0,i.Z)().mark(function t(a){var r;return(0,i.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:r=!1,a.id?r=R(a):r=G(a),r&&(Ze(!1),ta(void 0),Z.current&&(Ze(!1),Z.current.reload()));case 3:case"end":return f.stop()}},t)}));return function(t){return l.apply(this,arguments)}}(),Data:{type:"number",ruleType:h.number,Big:le||[],Small:ie||[]},createModalVisible:qe,values:ea||{}}),(0,e.jsx)(Rt,{onCancel:function(){xe(!1),Ye(void 0),Z.current.reload()},onFinish:function(){var l=(0,x.Z)((0,i.Z)().mark(function t(a){var r;return(0,i.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:r=!1,a.id?r=De(a):r=We(a),r&&(xe(!1),Ye(void 0),Z.current&&(xe(!1),Z.current.reload()));case 3:case"end":return f.stop()}},t)}));return function(t){return l.apply(this,arguments)}}(),Data:da||{allChild:[],allCommon:[]},createModalVisible:tt,values:na||{}}),(0,e.jsx)(Q,{tab:"\u901A\u7528\u8BBE\u7F6E",style:{float:"left"},children:(0,e.jsx)(P.ZP,{actionRef:Z,rowKey:"id",search:{labelWidth:120},toolBarRender:function(){return[(0,e.jsxs)(S.Z,{type:"primary",onClick:function(){xe(!0)},children:[(0,e.jsx)(_.Z,{})," \u6DFB\u52A0"]},"primary")]},params:{thisRuleId:ua},request:function(){var l=(0,x.Z)((0,i.Z)().mark(function t(a){var r,o;return(0,i.Z)().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return r=[],o=0,p.next=4,B(a).then(function(b){var Ce=b.data.data;Ce.map(function(A,Na){var jt=[],Dt=[];A.effectiveDate!=null&&(jt=[I()(A.effectiveDate[0],"YYYY-MM-DD HH:mm:ss"),I()(A.effectiveDate[1],"YYYY-MM-DD HH:mm:ss")],A.effectiveDate=jt),A.multipleDate!=null&&(Dt=[I()(A.multipleDate[0],"YYYY-MM-DD HH:mm:ss"),I()(A.multipleDate[1],"YYYY-MM-DD HH:mm:ss")],A.multipleDate=Dt),A.fixedDay!=null&&(A.fixedDay=I()(A.fixedDay,"YYYY-MM-DD HH:mm:ss"))}),r=Ce,o=b.data.total});case 4:return p.abrupt("return",{data:r,success:!0,total:o});case 5:case"end":return p.stop()}},t)}));return function(t){return l.apply(this,arguments)}}(),modalVisible:tt,columns:X,rowSelection:{onChange:function(t,a){}}})},"1"),(0,e.jsx)(Q,{tab:"\u6309\u91D1\u989D\u79EF\u5206",children:(0,e.jsx)(P.ZP,{actionRef:Z,rowKey:"id",search:{labelWidth:120},toolBarRender:function(){return[(0,e.jsxs)(S.Z,{type:"primary",onClick:function(){C(!0)},children:[(0,e.jsx)(_.Z,{})," \u6DFB\u52A0"]},"primary")]},params:{RuleType:1},request:function(){var l=(0,x.Z)((0,i.Z)().mark(function t(a){var r,o;return(0,i.Z)().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return r=[],o=0,p.next=4,O(a).then(function(b){r=b.data.data,o=b.data.total});case 4:return p.abrupt("return",{data:r,success:!0,total:o});case 5:case"end":return p.stop()}},t)}));return function(t){return l.apply(this,arguments)}}(),modalVisible:Ie,columns:u,rowSelection:{onChange:function(t,a){}}})},"2"),(0,e.jsx)(Q,{tab:"\u6309\u5927\u7C7B\u79EF\u5206",children:(0,e.jsx)(P.ZP,{actionRef:Z,rowKey:"id",search:{labelWidth:120},toolBarRender:function(){return[(0,e.jsxs)(S.Z,{type:"primary",onClick:function(){H(!0)},children:[(0,e.jsx)(_.Z,{})," \u6DFB\u52A0"]},"primary")]},params:{RuleType:2},request:function(){var l=(0,x.Z)((0,i.Z)().mark(function t(a){var r,o;return(0,i.Z)().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return r=[],o=0,p.next=4,O(a).then(function(b){r=b.data.data,o=b.data.total});case 4:return p.abrupt("return",{data:r,success:!0,total:o});case 5:case"end":return p.stop()}},t)}));return function(t){return l.apply(this,arguments)}}(),modalVisible:ue,columns:pe,rowSelection:{onChange:function(t,a){}}})},"3"),(0,e.jsx)(Q,{tab:"\u6309\u5C0F\u7C7B\u79EF\u5206",children:(0,e.jsx)(P.ZP,{actionRef:Z,rowKey:"id",search:{labelWidth:120},toolBarRender:function(){return[(0,e.jsxs)(S.Z,{type:"primary",onClick:function(){fe(!0)},children:[(0,e.jsx)(_.Z,{})," \u6DFB\u52A0"]},"primary")]},params:{RuleType:3},request:function(){var l=(0,x.Z)((0,i.Z)().mark(function t(a){var r,o;return(0,i.Z)().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return r=[],o=0,p.next=4,O(a).then(function(b){r=b.data.data,o=b.data.total});case 4:return p.abrupt("return",{data:r,success:!0,total:o});case 5:case"end":return p.stop()}},t)}));return function(t){return l.apply(this,arguments)}}(),modalVisible:$e,columns:be,rowSelection:{onChange:function(t,a){}}})},"4"),(0,e.jsx)(Q,{tab:"\u6309\u6D88\u8D39\u6B21\u6570\u79EF\u5206",children:(0,e.jsx)(P.ZP,{actionRef:Z,rowKey:"id",search:{labelWidth:120},toolBarRender:function(){return[(0,e.jsxs)(S.Z,{type:"primary",onClick:function(){ye(!0)},children:[(0,e.jsx)(_.Z,{})," \u6DFB\u52A0"]},"primary")]},params:{RuleType:4},request:function(){var l=(0,x.Z)((0,i.Z)().mark(function t(a){var r,o;return(0,i.Z)().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return r=[],o=0,p.next=4,O(a).then(function(b){r=b.data.data,o=b.data.total});case 4:return p.abrupt("return",{data:r,success:!0,total:o});case 5:case"end":return p.stop()}},t)}));return function(t){return l.apply(this,arguments)}}(),modalVisible:ze,columns:Ve,rowSelection:{onChange:function(t,a){}}})},"5"),(0,e.jsx)(Q,{tab:"\u6309\u6D88\u8D39\u4EBA\u6570\u79EF\u5206",children:(0,e.jsx)(P.ZP,{actionRef:Z,rowKey:"id",search:{labelWidth:120},toolBarRender:function(){return[(0,e.jsxs)(S.Z,{type:"primary",onClick:function(){ve(!0)},children:[(0,e.jsx)(_.Z,{})," \u6DFB\u52A0"]},"primary")]},params:{RuleType:5},request:function(){var l=(0,x.Z)((0,i.Z)().mark(function t(a){var r,o;return(0,i.Z)().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return r=[],o=0,p.next=4,O(a).then(function(b){r=b.data.data,o=b.data.total});case 4:return p.abrupt("return",{data:r,success:!0,total:o});case 5:case"end":return p.stop()}},t)}));return function(t){return l.apply(this,arguments)}}(),modalVisible:Qe,columns:ke,rowSelection:{onChange:function(t,a){}}})},"6"),(0,e.jsx)(Q,{tab:"\u6309\u51FA\u54C1\u6570\u91CF\u79EF\u5206",children:(0,e.jsx)(P.ZP,{actionRef:Z,rowKey:"id",search:{labelWidth:120},toolBarRender:function(){return[(0,e.jsxs)(S.Z,{type:"primary",onClick:function(){Ze(!0)},children:[(0,e.jsx)(_.Z,{})," \u6DFB\u52A0"]},"primary")]},params:{RuleType:6},request:function(){var l=(0,x.Z)((0,i.Z)().mark(function t(a){var r,o;return(0,i.Z)().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return r=[],o=0,p.next=4,O(a).then(function(b){r=b.data.data,o=b.data.total});case 4:return p.abrupt("return",{data:r,success:!0,total:o});case 5:case"end":return p.stop()}},t)}));return function(t){return l.apply(this,arguments)}}(),modalVisible:qe,columns:je,rowSelection:{onChange:function(t,a){}}})},"7")]})},Tt=Bt}}]); diff --git a/dist/p__order__DailyReport.0ccaf3ab.async.js b/dist/p__order__DailyReport.0ccaf3ab.async.js deleted file mode 100644 index 9d07458..0000000 --- a/dist/p__order__DailyReport.0ccaf3ab.async.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[3666,1322,9934,4407,6498,6090,274,6314],{14837:function(T){T.exports={"welcome-head":"welcome-head___2tdoO","welcome-head-org":"welcome-head-org___M_H7T","echarts-card-choose":"echarts-card-choose___XEPoy","my-loading":"my-loading___3FU_O","device-list":"device-list___hC3Qm","my-range-picker":"my-range-picker___2rgCG","tabs-title":"tabs-title___3XoKj"}},80638:function(){},31436:function(T,_,e){"use strict";e.r(_),e.d(_,{default:function(){return Q}});var a=e(20228),i=e(11382),O=e(66456),x=e(64411),D=e(58024),c=e(91894),s=e(13062),b=e(71230),$=e(57663),P=e(71577),j=e(89032),w=e(15746),t=e(39428),H=e(3182),d=e(2824),v=e(14965),C=e(91774),n=e(18106),g=e(86629),r=e(67294),f=e(78009),y=e(14837),p=e.n(y),N=e(30381),u=e.n(N),I=e(48971),B={GetSalesReport:function(L){return(0,I.WY)("/kitchen/api/Order/GetDailyReport",{method:"Post",data:L})}},R=e(51496),l=e(85893),oe=g.Z.TabPane,J=C.Z.RangePicker,ee=function(){var L=(0,r.useState)("left"),z=(0,d.Z)(L,2),Z=z[0],te=z[1],V=(0,r.useState)(1),M=(0,d.Z)(V,2),h=M[0],o=M[1],W=(0,r.useState)([]),k=(0,d.Z)(W,2),ue=k[0],ie=k[1],X=(0,r.useState)([u()(u()(new Date(Date.now())).format("YYYY-MM-DD 00:00:00")),u()(u()(new Date(Date.now())).format("YYYY-MM-DD 23:59:59"))]),S=(0,d.Z)(X,2),ae=S[0],K=S[1],ne=(0,r.useState)(!1),q=(0,d.Z)(ne,2),fe=q[0],re=q[1],ce=[{title:"\u540D\u79F0",dataIndex:"name",width:100,hideInSearch:!0},{title:"\u91D1\u989D",dataIndex:"saleMoney",hideInSearch:!0}];(0,r.useEffect)(function(){se()},[h]);var se=function(){var G=(0,H.Z)((0,t.Z)().mark(function U(){var E,A,F;return(0,t.Z)().wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:return re(!0),E=u()(ae[0]).format("YYYY-MM-DD HH:mm:ss"),A=u()(ae[1]).format("YYYY-MM-DD HH:mm:ss"),Y.next=5,B.GetSalesReport({type:h,startTime:E,endTime:A});case 5:F=Y.sent,F.forEach(function(le){le.key=(0,R.x0)()}),ie(F),re(!1);case 9:case"end":return Y.stop()}},U)}));return function(){return G.apply(this,arguments)}}();return(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)(f.ZP,{children:[(0,l.jsx)(c.Z,{style:{marginBottom:"30px"},children:(0,l.jsxs)(b.Z,{children:[(0,l.jsx)(w.Z,{xs:24,sm:12,md:12,lg:12,xl:6,style:{margin:"10px 0"},children:(0,l.jsxs)("div",{className:p()["echarts-card-choose"],children:[(0,l.jsx)("div",{className:p()["echarts-card-choose-text"],children:"\u8D77\u6B62\u65F6\u95F4\uFF1A"}),(0,l.jsx)(J,{showTime:!0,style:{width:"70%"},className:p()["my-range-picker"],value:ae,onChange:function(U,E){var A=[u()(u()(new Date(E[0])).format("YYYY-MM-DD 00:00:00")),u()(u()(new Date(E[1])).format("YYYY-MM-DD 23:59:59"))];K(A)}})]})}),(0,l.jsxs)(w.Z,{xs:24,sm:12,md:12,lg:12,xl:6,style:{margin:"10px 0"},children:[(0,l.jsx)(P.Z,{className:p()["echarts-card-btn"],type:"primary",style:{width:"100px",marginRight:"10px"},onClick:function(){return se()},children:"\u67E5\u8BE2"}),(0,l.jsx)(P.Z,{className:p()["echarts-card-btn"],style:{width:"100px"},onClick:function(){K([u()(u()(new Date(Date.now())).format("YYYY-MM-DD 00:00:00")),u()(u()(new Date(Date.now())).format("YYYY-MM-DD 23:59:59"))])},children:"\u91CD\u7F6E"})]})]})}),(0,l.jsx)(c.Z,{children:(0,l.jsx)(i.Z,{spinning:fe,delay:500,children:(0,l.jsx)(g.Z,{tabPosition:Z,value:h,onChange:function(U){o(U)},items:new Array(2).fill(null).map(function(G,U){var E=String(U+1);return{label:E==1?"\u8425\u6536\u603B\u89C8":"\u652F\u4ED8\u6E20\u9053",key:E,children:(0,l.jsx)(x.Z,{columns:ce,dataSource:ue})}})})})})]})})},Q=ee},15746:function(T,_,e){"use strict";var a=e(21584);_.Z=a.Z},89032:function(T,_,e){"use strict";var a=e(38663),i=e.n(a),O=e(6999)},99134:function(T,_,e){"use strict";var a=e(67294),i=(0,a.createContext)({});_.Z=i},21584:function(T,_,e){"use strict";var a=e(96156),i=e(22122),O=e(90484),x=e(94184),D=e.n(x),c=e(67294),s=e(53124),b=e(99134),$=function(t,H){var d={};for(var v in t)Object.prototype.hasOwnProperty.call(t,v)&&H.indexOf(v)<0&&(d[v]=t[v]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var C=0,v=Object.getOwnPropertySymbols(t);C0){var te=r[0]/2;Z.paddingLeft=te,Z.paddingRight=te}if(r&&r[1]>0&&!y){var V=r[1]/2;Z.paddingTop=V,Z.paddingBottom=V}return J&&(Z.flex=P(J),f===!1&&!Z.minWidth&&(Z.minWidth=0)),c.createElement("div",(0,i.Z)({},Q,{style:(0,i.Z)((0,i.Z)({},Z),ee),className:z,ref:H}),oe)});_.Z=w},92820:function(T,_,e){"use strict";var a=e(22122),i=e(96156),O=e(90484),x=e(28481),D=e(94184),c=e.n(D),s=e(67294),b=e(53124),$=e(98082),P=e(24308),j=e(93355),w=e(99134),t=function(n,g){var r={};for(var f in n)Object.prototype.hasOwnProperty.call(n,f)&&g.indexOf(f)<0&&(r[f]=n[f]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var y=0,f=Object.getOwnPropertySymbols(n);y0?S[0]/-2:void 0,q=S[1]!=null&&S[1]>0?S[1]/-2:void 0;if(ne&&(K.marginLeft=ne,K.marginRight=ne),k){var fe=(0,x.Z)(S,2);K.rowGap=fe[1]}else q&&(K.marginTop=q,K.marginBottom=q);var re=(0,x.Z)(S,2),ce=re[0],se=re[1],G=s.useMemo(function(){return{gutter:[ce,se],wrap:l,supportFlexGap:k}},[ce,se,l,k]);return s.createElement(w.Z.Provider,{value:G},s.createElement("div",(0,a.Z)({},oe,{className:ae,style:(0,a.Z)((0,a.Z)({},K),u),ref:g}),I))});_.Z=C},6999:function(T,_,e){"use strict";var a=e(38663),i=e.n(a),O=e(80638),x=e.n(O)},71230:function(T,_,e){"use strict";var a=e(92820);_.Z=a.Z},13062:function(T,_,e){"use strict";var a=e(38663),i=e.n(a),O=e(6999)},51496:function(T,_,e){"use strict";e.d(_,{x0:function(){return x}});let a=D=>crypto.getRandomValues(new Uint8Array(D)),i=(D,c,s)=>{let b=(2<{let j="";for(;;){let w=s($),t=$;for(;t--;)if(j+=D[w[t]&b]||"",j.length===P)return j}}},O=(D,c=21)=>i(D,c,a),x=(D=21)=>crypto.getRandomValues(new Uint8Array(D)).reduce((c,s)=>(s&=63,s<36?c+=s.toString(36):s<62?c+=(s-26).toString(36).toUpperCase():s>62?c+="-":c+="_",c),"")}}]); diff --git a/dist/p__order__DailyReport.3051486a.async.js b/dist/p__order__DailyReport.3051486a.async.js new file mode 100644 index 0000000..7fe509f --- /dev/null +++ b/dist/p__order__DailyReport.3051486a.async.js @@ -0,0 +1 @@ +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[3666,1322,9464,1981,2869,7013,9719,2383],{14837:function(T){T.exports={"welcome-head":"welcome-head___2tdoO","welcome-head-org":"welcome-head-org___M_H7T","echarts-card-choose":"echarts-card-choose___XEPoy","my-loading":"my-loading___3FU_O","device-list":"device-list___hC3Qm","my-range-picker":"my-range-picker___2rgCG","tabs-title":"tabs-title___3XoKj"}},80638:function(){},31436:function(T,_,e){"use strict";e.r(_),e.d(_,{default:function(){return Q}});var a=e(20228),i=e(11382),O=e(66456),x=e(64411),D=e(58024),c=e(91894),s=e(13062),b=e(71230),$=e(57663),P=e(71577),j=e(89032),w=e(15746),t=e(39428),H=e(3182),d=e(2824),v=e(14965),C=e(91774),n=e(18106),g=e(95562),r=e(67294),f=e(78009),y=e(14837),p=e.n(y),N=e(30381),u=e.n(N),I=e(48971),B={GetSalesReport:function(L){return(0,I.WY)("/kitchen/api/Order/GetDailyReport",{method:"Post",data:L})}},R=e(51496),l=e(85893),oe=g.Z.TabPane,J=C.Z.RangePicker,ee=function(){var L=(0,r.useState)("left"),z=(0,d.Z)(L,2),Z=z[0],te=z[1],V=(0,r.useState)(1),M=(0,d.Z)(V,2),h=M[0],o=M[1],W=(0,r.useState)([]),k=(0,d.Z)(W,2),ue=k[0],ie=k[1],X=(0,r.useState)([u()(u()(new Date(Date.now())).format("YYYY-MM-DD 00:00:00")),u()(u()(new Date(Date.now())).format("YYYY-MM-DD 23:59:59"))]),S=(0,d.Z)(X,2),ae=S[0],K=S[1],ne=(0,r.useState)(!1),q=(0,d.Z)(ne,2),fe=q[0],re=q[1],ce=[{title:"\u540D\u79F0",dataIndex:"name",width:100,hideInSearch:!0},{title:"\u91D1\u989D",dataIndex:"saleMoney",hideInSearch:!0}];(0,r.useEffect)(function(){se()},[h]);var se=function(){var G=(0,H.Z)((0,t.Z)().mark(function U(){var E,A,F;return(0,t.Z)().wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:return re(!0),E=u()(ae[0]).format("YYYY-MM-DD HH:mm:ss"),A=u()(ae[1]).format("YYYY-MM-DD HH:mm:ss"),Y.next=5,B.GetSalesReport({type:h,startTime:E,endTime:A});case 5:F=Y.sent,F.forEach(function(le){le.key=(0,R.x0)()}),ie(F),re(!1);case 9:case"end":return Y.stop()}},U)}));return function(){return G.apply(this,arguments)}}();return(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)(f.ZP,{children:[(0,l.jsx)(c.Z,{style:{marginBottom:"30px"},children:(0,l.jsxs)(b.Z,{children:[(0,l.jsx)(w.Z,{xs:24,sm:12,md:12,lg:12,xl:6,style:{margin:"10px 0"},children:(0,l.jsxs)("div",{className:p()["echarts-card-choose"],children:[(0,l.jsx)("div",{className:p()["echarts-card-choose-text"],children:"\u8D77\u6B62\u65F6\u95F4\uFF1A"}),(0,l.jsx)(J,{showTime:!0,style:{width:"70%"},className:p()["my-range-picker"],value:ae,onChange:function(U,E){var A=[u()(u()(new Date(E[0])).format("YYYY-MM-DD 00:00:00")),u()(u()(new Date(E[1])).format("YYYY-MM-DD 23:59:59"))];K(A)}})]})}),(0,l.jsxs)(w.Z,{xs:24,sm:12,md:12,lg:12,xl:6,style:{margin:"10px 0"},children:[(0,l.jsx)(P.Z,{className:p()["echarts-card-btn"],type:"primary",style:{width:"100px",marginRight:"10px"},onClick:function(){return se()},children:"\u67E5\u8BE2"}),(0,l.jsx)(P.Z,{className:p()["echarts-card-btn"],style:{width:"100px"},onClick:function(){K([u()(u()(new Date(Date.now())).format("YYYY-MM-DD 00:00:00")),u()(u()(new Date(Date.now())).format("YYYY-MM-DD 23:59:59"))])},children:"\u91CD\u7F6E"})]})]})}),(0,l.jsx)(c.Z,{children:(0,l.jsx)(i.Z,{spinning:fe,delay:500,children:(0,l.jsx)(g.Z,{tabPosition:Z,value:h,onChange:function(U){o(U)},items:new Array(2).fill(null).map(function(G,U){var E=String(U+1);return{label:E==1?"\u8425\u6536\u603B\u89C8":"\u652F\u4ED8\u6E20\u9053",key:E,children:(0,l.jsx)(x.Z,{columns:ce,dataSource:ue})}})})})})]})})},Q=ee},15746:function(T,_,e){"use strict";var a=e(21584);_.Z=a.Z},89032:function(T,_,e){"use strict";var a=e(38663),i=e.n(a),O=e(6999)},99134:function(T,_,e){"use strict";var a=e(67294),i=(0,a.createContext)({});_.Z=i},21584:function(T,_,e){"use strict";var a=e(96156),i=e(22122),O=e(90484),x=e(94184),D=e.n(x),c=e(67294),s=e(53124),b=e(99134),$=function(t,H){var d={};for(var v in t)Object.prototype.hasOwnProperty.call(t,v)&&H.indexOf(v)<0&&(d[v]=t[v]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var C=0,v=Object.getOwnPropertySymbols(t);C0){var te=r[0]/2;Z.paddingLeft=te,Z.paddingRight=te}if(r&&r[1]>0&&!y){var V=r[1]/2;Z.paddingTop=V,Z.paddingBottom=V}return J&&(Z.flex=P(J),f===!1&&!Z.minWidth&&(Z.minWidth=0)),c.createElement("div",(0,i.Z)({},Q,{style:(0,i.Z)((0,i.Z)({},Z),ee),className:z,ref:H}),oe)});_.Z=w},92820:function(T,_,e){"use strict";var a=e(22122),i=e(96156),O=e(90484),x=e(28481),D=e(94184),c=e.n(D),s=e(67294),b=e(53124),$=e(98082),P=e(24308),j=e(93355),w=e(99134),t=function(n,g){var r={};for(var f in n)Object.prototype.hasOwnProperty.call(n,f)&&g.indexOf(f)<0&&(r[f]=n[f]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var y=0,f=Object.getOwnPropertySymbols(n);y0?S[0]/-2:void 0,q=S[1]!=null&&S[1]>0?S[1]/-2:void 0;if(ne&&(K.marginLeft=ne,K.marginRight=ne),k){var fe=(0,x.Z)(S,2);K.rowGap=fe[1]}else q&&(K.marginTop=q,K.marginBottom=q);var re=(0,x.Z)(S,2),ce=re[0],se=re[1],G=s.useMemo(function(){return{gutter:[ce,se],wrap:l,supportFlexGap:k}},[ce,se,l,k]);return s.createElement(w.Z.Provider,{value:G},s.createElement("div",(0,a.Z)({},oe,{className:ae,style:(0,a.Z)((0,a.Z)({},K),u),ref:g}),I))});_.Z=C},6999:function(T,_,e){"use strict";var a=e(38663),i=e.n(a),O=e(80638),x=e.n(O)},71230:function(T,_,e){"use strict";var a=e(92820);_.Z=a.Z},13062:function(T,_,e){"use strict";var a=e(38663),i=e.n(a),O=e(6999)},51496:function(T,_,e){"use strict";e.d(_,{x0:function(){return x}});let a=D=>crypto.getRandomValues(new Uint8Array(D)),i=(D,c,s)=>{let b=(2<{let j="";for(;;){let w=s($),t=$;for(;t--;)if(j+=D[w[t]&b]||"",j.length===P)return j}}},O=(D,c=21)=>i(D,c,a),x=(D=21)=>crypto.getRandomValues(new Uint8Array(D)).reduce((c,s)=>(s&=63,s<36?c+=s.toString(36):s<62?c+=(s-26).toString(36).toUpperCase():s>62?c+="-":c+="_",c),"")}}]); diff --git a/dist/p__order__cost-of-sales.de68d12b.async.js b/dist/p__order__cost-of-sales.de68d12b.async.js new file mode 100644 index 0000000..08e4c7c --- /dev/null +++ b/dist/p__order__cost-of-sales.de68d12b.async.js @@ -0,0 +1 @@ +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[8387,1322,9464,1981,2869,7013,9719,2383],{21151:function(j){j.exports={"data-search-card":"data-search-card___2CvcD","data-search-box":"data-search-box___1PGzZ","search-btn-item":"search-btn-item___1e0rg","table-page":"table-page___docNF","loading-card":"loading-card___3JEuH","data-search-item":"data-search-item___3N1fL","data-search-input":"data-search-input___tj-G1","data-search-prefix":"data-search-prefix___ZSSA2","data-search-sufixx":"data-search-sufixx___lh3_G","data-search-btns":"data-search-btns___8r7Ga","download-btn":"download-btn___3pXdA"}},80638:function(){},30805:function(j,x,e){"use strict";e.r(x),e.d(x,{default:function(){return A}});var n=e(14781),E=e(36138),Z=e(66456),L=e(64411),ue=e(58024),W=e(91894),D=e(57663),$=e(71577),ce=e(13062),T=e(71230),se=e(43358),re=e(34041),r=e(89032),K=e(15746),P=e(62999),h=e(54680),S=e(93224),a=e(39428),C=e(34792),c=e(48086),i=e(3182),l=e(2824),z=e(20228),G=e(11382),k=e(14965),B=e(91774),d=e(67294),M=e(78009),Q=e(21151),v=e.n(Q),J=e(11849),b=e(48971),U={getReportSalescost:function(g){return(0,b.WY)("/kitchen/api/report/salescost",{method:"Post",data:g})},goodsList:function(g){return(0,b.WY)("/kitchen/api/goodes/list",{method:"Post",data:g})},goodsTypeList:function(g){return(0,b.WY)("/kitchen/api/goodstype/list",{method:"Post",data:g})},gettree:function(g){return(0,b.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/tree",{data:(0,J.Z)({},g)})}},y=e(30381),m=e.n(y),ne=e(90631),t=e(85893),q=["children"],H=B.Z.RangePicker,R=function(){return(0,t.jsx)("div",{className:v()["loading-card"],children:(0,t.jsx)(G.Z,{size:"large"})})};function A(){var u=(0,d.useState)([]),g=(0,l.Z)(u,2),oe=g[0],_e=g[1],me=(0,d.useState)(1),w=(0,l.Z)(me,2),I=w[0],he=w[1],F=(0,d.useState)(10),ee=(0,l.Z)(F,2),te=ee[0],ge=ee[1],de=(0,d.useState)(0),le=(0,l.Z)(de,2),ie=le[0],ye=le[1],fe=(0,d.useState)(!1),N=(0,l.Z)(fe,2),Y=N[0],O=N[1],ve=(0,d.useState)([m()(m()(new Date(Date.now()-24*60*60*1e3*7)).format("YYYY-MM-DD 00:00:00")),m()(m()(new Date(Date.now())).format("YYYY-MM-DD 23:59:59"))]),ae=(0,l.Z)(ve,2),X=ae[0],pe=ae[1],Le=(0,d.useState)(""),xe=(0,l.Z)(Le,2),De=xe[0],Pe=xe[1],Te=(0,d.useState)([]),Oe=(0,l.Z)(Te,2),Be=Oe[0],We=Oe[1],Ke=(0,d.useState)([]),Ze=(0,l.Z)(Ke,2),Ue=Ze[0],Ne=Ze[1],Ye=(0,d.useState)([]),Se=(0,l.Z)(Ye,2),Ce=Se[0],Me=Se[1],Ge=(0,d.useState)([]),Re=(0,l.Z)(Ge,2),Ee=Re[0],be=Re[1],we=(0,d.useState)([]),Ae=(0,l.Z)(we,2),Fe=Ae[0],$e=Ae[1],ze=(0,d.useState)([]),Ie=(0,l.Z)(ze,2),tt=Ie[0],Qe=Ie[1],Je=function(o,s){he(o),ge(s)},He=[{title:"\u95E8\u5E97\u540D\u79F0",dataIndex:"storeId",key:"storeId",render:function(o){var s=Ue.find(function(p){return p.key===o});return s?(0,t.jsx)("span",{children:s.title}):(0,t.jsx)("span",{children:"\u6682\u65E0\u95E8\u5E97\u540D\u79F0"})}},{title:"\u5546\u54C1\u540D\u79F0",dataIndex:"goodsId",key:"goodsId",render:function(o){var s=Ee.find(function(p){return p.id===o});return console.log(">>>>",Ee,o,s),s?(0,t.jsx)("span",{children:s.name}):(0,t.jsx)("span",{children:"\u6682\u65E0\u5546\u54C1\u540D\u79F0"})}},{title:"\u9500\u552E\u6536\u5165",dataIndex:"salesPrice",key:"salesPrice"},{title:"\u9500\u552E\u6210\u672C",dataIndex:"costPrice",key:"costPrice"},{title:"\u9500\u552E\u6570\u91CF",dataIndex:"salesNum",key:"salesNum"},{title:"\u6210\u672C\u7387\uFF08%\uFF09",dataIndex:"costRate",key:"costRate"}],je=function(){var _=(0,i.Z)((0,a.Z)().mark(function o(){var s,p;return(0,a.Z)().wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return s={storeId:De,goodsId:Ce[0],goodsTypeId:Fe[0],begintime:X[0],endtime:X[1],current:I,pageSize:te},O(!0),V.next=4,U.getReportSalescost(s);case 4:p=V.sent,O(!1),p.statusCode===200?_e(p.data.data):c.default.error(p.errors||"\u83B7\u53D6\u9500\u552E\u6210\u672C\u5931\u8D25");case 7:case"end":return V.stop()}},o)}));return function(){return _.apply(this,arguments)}}(),Xe=function(){var _=(0,i.Z)((0,a.Z)().mark(function o(){var s;return(0,a.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return O(!0),f.next=3,U.gettree();case 3:s=f.sent,O(!1),s.statusCode===200?(We(s.data),Ne(et(s.data))):c.default.error("\u67E5\u8BE2\u5E97\u94FA\u5217\u8868\u5931\u8D25");case 6:case"end":return f.stop()}},o)}));return function(){return _.apply(this,arguments)}}(),Ve=function(){var _=(0,i.Z)((0,a.Z)().mark(function o(){var s;return(0,a.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return O(!0),f.next=3,U.goodsList();case 3:s=f.sent,O(!1),s.statusCode===200?be(s.data):c.default.error("\u67E5\u8BE2\u5546\u54C1\u5217\u8868\u5931\u8D25");case 6:case"end":return f.stop()}},o)}));return function(){return _.apply(this,arguments)}}(),ke=function(){var _=(0,i.Z)((0,a.Z)().mark(function o(){var s;return(0,a.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return O(!0),f.next=3,U.goodsTypeList();case 3:s=f.sent,O(!1),s.statusCode===200?Qe(s.data):c.default.error("\u67E5\u8BE2\u5546\u54C1\u5206\u7C7B\u5217\u8868\u5931\u8D25");case 6:case"end":return f.stop()}},o)}));return function(){return _.apply(this,arguments)}}(),qe=function(){Me([]),Pe([]),$e([]),pe([m()(m()(new Date(Date.now()-24*60*60*1e3*7)).format("YYYY-MM-DD 00:00:00")),m()(m()(new Date(Date.now())).format("YYYY-MM-DD 23:59:59"))])},et=function _(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return o.forEach(function(p){var f=p.children,V=(0,S.Z)(p,q);s.push(V),f&&f.length>0&&_(f,s)}),s};return(0,d.useEffect)(function(){je(),Xe(),Ve(),ke()},[]),(0,t.jsxs)(M.ZP,{children:[Y?(0,t.jsx)(R,{}):null,(0,t.jsxs)(W.Z,{className:v()["data-search-card"],children:[(0,t.jsxs)(T.Z,{gutter:20,justify:"space-between",children:[(0,t.jsxs)(K.Z,{xs:24,sm:24,md:12,lg:12,xl:6,className:v()["data-search-item"],children:[(0,t.jsx)("div",{className:v()["data-search-prefix"],children:"\u95E8\u5E97"}),(0,t.jsx)(h.Z,{className:v()["data-search-sufixx"],value:De,dropdownStyle:{maxHeight:400,overflow:"auto"},treeData:Be,placeholder:"\u8BF7\u9009\u62E9\u95E8\u5E97",treeDefaultExpandAll:!0,onChange:function(o){return Pe(o)}})]}),(0,t.jsxs)(K.Z,{xs:24,sm:24,md:12,lg:12,xl:6,className:v()["data-search-item"],children:[(0,t.jsx)("div",{className:v()["data-search-prefix"],children:"\u5546\u54C1"}),(0,t.jsx)(re.Z,{className:v()["data-search-sufixx"],showSearch:!0,mode:"tags",size:"middle",allowClear:!0,placeholder:"\u8BF7\u9009\u62E9\u5546\u54C1",value:Ce,onChange:function(o){return Me(o)},filterOption:function(o,s){return s.children.toLowerCase().includes(o.toLowerCase())},children:Ee.map(function(_,o){return(0,t.jsx)(Option,{children:_.name},_.id)})})]}),(0,t.jsxs)(K.Z,{xs:24,sm:24,md:12,lg:12,xl:6,className:v()["data-search-item"],children:[(0,t.jsx)("div",{className:v()["data-search-prefix"],children:"\u8D77\u59CB\u65F6\u95F4"}),(0,t.jsx)(H,{size:"middle",className:v()["data-search-sufixx"],value:X,onChange:function(o,s){var p=[m()(m()(new Date(s[0])).format("YYYY-MM-DD 00:00:00")),m()(m()(new Date(s[1])).format("YYYY-MM-DD 23:59:59"))];pe(p)}})]})]}),(0,t.jsxs)("div",{className:v()["data-search-btns"],children:[(0,t.jsx)($.Z,{className:v()["search-btn-item"],onClick:qe,children:"\u91CD\u7F6E"}),(0,t.jsx)($.Z,{className:v()["search-btn-item"],type:"primary",onClick:je,children:"\u67E5\u8BE2"})]})]}),(0,t.jsxs)(W.Z,{className:v()["table-card"],children:[(0,t.jsx)("div",{className:v()["download-btn"],children:(0,t.jsx)($.Z,{type:"primary",icon:(0,t.jsx)(ne.Z,{}),size:"middle",children:"\u4E0B\u8F7D"})}),(0,t.jsx)(L.Z,{dataSource:oe,columns:He,pagination:!1}),(0,t.jsx)("div",{className:v()["table-page"],children:(0,t.jsx)(E.Z,{current:I,pageSize:te,total:ie,onChange:Je})})]})]})}},15746:function(j,x,e){"use strict";var n=e(21584);x.Z=n.Z},89032:function(j,x,e){"use strict";var n=e(38663),E=e.n(n),Z=e(6999)},99134:function(j,x,e){"use strict";var n=e(67294),E=(0,n.createContext)({});x.Z=E},21584:function(j,x,e){"use strict";var n=e(96156),E=e(22122),Z=e(90484),L=e(94184),ue=e.n(L),W=e(67294),D=e(53124),$=e(99134),ce=function(r,K){var P={};for(var h in r)Object.prototype.hasOwnProperty.call(r,h)&&K.indexOf(h)<0&&(P[h]=r[h]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var S=0,h=Object.getOwnPropertySymbols(r);S0){var q=c[0]/2;t.paddingLeft=q,t.paddingRight=q}if(c&&c[1]>0&&!l){var H=c[1]/2;t.paddingTop=H,t.paddingBottom=H}return J&&(t.flex=T(J),i===!1&&!t.minWidth&&(t.minWidth=0)),W.createElement("div",(0,E.Z)({},U,{style:(0,E.Z)((0,E.Z)({},t),b),className:ne,ref:K}),v)});x.Z=re},92820:function(j,x,e){"use strict";var n=e(22122),E=e(96156),Z=e(90484),L=e(28481),ue=e(94184),W=e.n(ue),D=e(67294),$=e(53124),ce=e(98082),T=e(24308),se=e(93355),re=e(99134),r=function(a,C){var c={};for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&C.indexOf(i)<0&&(c[i]=a[i]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,i=Object.getOwnPropertySymbols(a);l0?I[0]/-2:void 0,te=I[1]!=null&&I[1]>0?I[1]/-2:void 0;if(ee&&(F.marginLeft=ee,F.marginRight=ee),oe){var ge=(0,L.Z)(I,2);F.rowGap=ge[1]}else te&&(F.marginTop=te,F.marginBottom=te);var de=(0,L.Z)(I,2),le=de[0],ie=de[1],ye=D.useMemo(function(){return{gutter:[le,ie],wrap:Q,supportFlexGap:oe}},[le,ie,Q,oe]);return D.createElement(re.Z.Provider,{value:ye},D.createElement("div",(0,n.Z)({},v,{className:he,style:(0,n.Z)((0,n.Z)({},F),k),ref:C}),B))});x.Z=S},6999:function(j,x,e){"use strict";var n=e(38663),E=e.n(n),Z=e(80638),L=e.n(Z)},71230:function(j,x,e){"use strict";var n=e(92820);x.Z=n.Z},13062:function(j,x,e){"use strict";var n=e(38663),E=e.n(n),Z=e(6999)}}]); diff --git a/dist/p__order__cost-of-sales.e5d4ef37.async.js b/dist/p__order__cost-of-sales.e5d4ef37.async.js deleted file mode 100644 index 116edbe..0000000 --- a/dist/p__order__cost-of-sales.e5d4ef37.async.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[8387,1322,9934,4407,6498,6090,274,6314],{21151:function(j){j.exports={"data-search-card":"data-search-card___2CvcD","data-search-box":"data-search-box___1PGzZ","search-btn-item":"search-btn-item___1e0rg","table-page":"table-page___docNF","loading-card":"loading-card___3JEuH","data-search-item":"data-search-item___3N1fL","data-search-input":"data-search-input___tj-G1","data-search-prefix":"data-search-prefix___ZSSA2","data-search-sufixx":"data-search-sufixx___lh3_G","data-search-btns":"data-search-btns___8r7Ga","download-btn":"download-btn___3pXdA"}},80638:function(){},30805:function(j,x,e){"use strict";e.r(x),e.d(x,{default:function(){return A}});var n=e(14781),E=e(36138),Z=e(66456),L=e(64411),ue=e(58024),W=e(91894),D=e(57663),$=e(71577),ce=e(13062),T=e(71230),se=e(43358),re=e(34041),r=e(89032),K=e(15746),P=e(62999),h=e(54680),S=e(93224),a=e(39428),C=e(34792),c=e(48086),i=e(3182),l=e(2824),z=e(20228),G=e(11382),k=e(14965),B=e(91774),d=e(67294),M=e(78009),Q=e(21151),v=e.n(Q),J=e(11849),b=e(48971),U={getReportSalescost:function(g){return(0,b.WY)("/kitchen/api/report/salescost",{method:"Post",data:g})},goodsList:function(g){return(0,b.WY)("/kitchen/api/goodes/list",{method:"Post",data:g})},goodsTypeList:function(g){return(0,b.WY)("/kitchen/api/goodstype/list",{method:"Post",data:g})},gettree:function(g){return(0,b.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/tree",{data:(0,J.Z)({},g)})}},y=e(30381),m=e.n(y),ne=e(90631),t=e(85893),q=["children"],H=B.Z.RangePicker,R=function(){return(0,t.jsx)("div",{className:v()["loading-card"],children:(0,t.jsx)(G.Z,{size:"large"})})};function A(){var u=(0,d.useState)([]),g=(0,l.Z)(u,2),oe=g[0],_e=g[1],me=(0,d.useState)(1),w=(0,l.Z)(me,2),I=w[0],he=w[1],F=(0,d.useState)(10),ee=(0,l.Z)(F,2),te=ee[0],ge=ee[1],de=(0,d.useState)(0),le=(0,l.Z)(de,2),ie=le[0],ye=le[1],fe=(0,d.useState)(!1),N=(0,l.Z)(fe,2),Y=N[0],O=N[1],ve=(0,d.useState)([m()(m()(new Date(Date.now()-24*60*60*1e3*7)).format("YYYY-MM-DD 00:00:00")),m()(m()(new Date(Date.now())).format("YYYY-MM-DD 23:59:59"))]),ae=(0,l.Z)(ve,2),X=ae[0],pe=ae[1],Le=(0,d.useState)(""),xe=(0,l.Z)(Le,2),De=xe[0],Pe=xe[1],Te=(0,d.useState)([]),Oe=(0,l.Z)(Te,2),Be=Oe[0],We=Oe[1],Ke=(0,d.useState)([]),Ze=(0,l.Z)(Ke,2),Ue=Ze[0],Ne=Ze[1],Ye=(0,d.useState)([]),Se=(0,l.Z)(Ye,2),Ce=Se[0],Me=Se[1],Ge=(0,d.useState)([]),Re=(0,l.Z)(Ge,2),Ee=Re[0],be=Re[1],we=(0,d.useState)([]),Ae=(0,l.Z)(we,2),Fe=Ae[0],$e=Ae[1],ze=(0,d.useState)([]),Ie=(0,l.Z)(ze,2),tt=Ie[0],Qe=Ie[1],Je=function(o,s){he(o),ge(s)},He=[{title:"\u95E8\u5E97\u540D\u79F0",dataIndex:"storeId",key:"storeId",render:function(o){var s=Ue.find(function(p){return p.key===o});return s?(0,t.jsx)("span",{children:s.title}):(0,t.jsx)("span",{children:"\u6682\u65E0\u95E8\u5E97\u540D\u79F0"})}},{title:"\u5546\u54C1\u540D\u79F0",dataIndex:"goodsId",key:"goodsId",render:function(o){var s=Ee.find(function(p){return p.id===o});return console.log(">>>>",Ee,o,s),s?(0,t.jsx)("span",{children:s.name}):(0,t.jsx)("span",{children:"\u6682\u65E0\u5546\u54C1\u540D\u79F0"})}},{title:"\u9500\u552E\u6536\u5165",dataIndex:"salesPrice",key:"salesPrice"},{title:"\u9500\u552E\u6210\u672C",dataIndex:"costPrice",key:"costPrice"},{title:"\u9500\u552E\u6570\u91CF",dataIndex:"salesNum",key:"salesNum"},{title:"\u6210\u672C\u7387\uFF08%\uFF09",dataIndex:"costRate",key:"costRate"}],je=function(){var _=(0,i.Z)((0,a.Z)().mark(function o(){var s,p;return(0,a.Z)().wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return s={storeId:De,goodsId:Ce[0],goodsTypeId:Fe[0],begintime:X[0],endtime:X[1],current:I,pageSize:te},O(!0),V.next=4,U.getReportSalescost(s);case 4:p=V.sent,O(!1),p.statusCode===200?_e(p.data.data):c.default.error(p.errors||"\u83B7\u53D6\u9500\u552E\u6210\u672C\u5931\u8D25");case 7:case"end":return V.stop()}},o)}));return function(){return _.apply(this,arguments)}}(),Xe=function(){var _=(0,i.Z)((0,a.Z)().mark(function o(){var s;return(0,a.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return O(!0),f.next=3,U.gettree();case 3:s=f.sent,O(!1),s.statusCode===200?(We(s.data),Ne(et(s.data))):c.default.error("\u67E5\u8BE2\u5E97\u94FA\u5217\u8868\u5931\u8D25");case 6:case"end":return f.stop()}},o)}));return function(){return _.apply(this,arguments)}}(),Ve=function(){var _=(0,i.Z)((0,a.Z)().mark(function o(){var s;return(0,a.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return O(!0),f.next=3,U.goodsList();case 3:s=f.sent,O(!1),s.statusCode===200?be(s.data):c.default.error("\u67E5\u8BE2\u5546\u54C1\u5217\u8868\u5931\u8D25");case 6:case"end":return f.stop()}},o)}));return function(){return _.apply(this,arguments)}}(),ke=function(){var _=(0,i.Z)((0,a.Z)().mark(function o(){var s;return(0,a.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return O(!0),f.next=3,U.goodsTypeList();case 3:s=f.sent,O(!1),s.statusCode===200?Qe(s.data):c.default.error("\u67E5\u8BE2\u5546\u54C1\u5206\u7C7B\u5217\u8868\u5931\u8D25");case 6:case"end":return f.stop()}},o)}));return function(){return _.apply(this,arguments)}}(),qe=function(){Me([]),Pe([]),$e([]),pe([m()(m()(new Date(Date.now()-24*60*60*1e3*7)).format("YYYY-MM-DD 00:00:00")),m()(m()(new Date(Date.now())).format("YYYY-MM-DD 23:59:59"))])},et=function _(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return o.forEach(function(p){var f=p.children,V=(0,S.Z)(p,q);s.push(V),f&&f.length>0&&_(f,s)}),s};return(0,d.useEffect)(function(){je(),Xe(),Ve(),ke()},[]),(0,t.jsxs)(M.ZP,{children:[Y?(0,t.jsx)(R,{}):null,(0,t.jsxs)(W.Z,{className:v()["data-search-card"],children:[(0,t.jsxs)(T.Z,{gutter:20,justify:"space-between",children:[(0,t.jsxs)(K.Z,{xs:24,sm:24,md:12,lg:12,xl:6,className:v()["data-search-item"],children:[(0,t.jsx)("div",{className:v()["data-search-prefix"],children:"\u95E8\u5E97"}),(0,t.jsx)(h.Z,{className:v()["data-search-sufixx"],value:De,dropdownStyle:{maxHeight:400,overflow:"auto"},treeData:Be,placeholder:"\u8BF7\u9009\u62E9\u95E8\u5E97",treeDefaultExpandAll:!0,onChange:function(o){return Pe(o)}})]}),(0,t.jsxs)(K.Z,{xs:24,sm:24,md:12,lg:12,xl:6,className:v()["data-search-item"],children:[(0,t.jsx)("div",{className:v()["data-search-prefix"],children:"\u5546\u54C1"}),(0,t.jsx)(re.Z,{className:v()["data-search-sufixx"],showSearch:!0,mode:"tags",size:"middle",allowClear:!0,placeholder:"\u8BF7\u9009\u62E9\u5546\u54C1",value:Ce,onChange:function(o){return Me(o)},filterOption:function(o,s){return s.children.toLowerCase().includes(o.toLowerCase())},children:Ee.map(function(_,o){return(0,t.jsx)(Option,{children:_.name},_.id)})})]}),(0,t.jsxs)(K.Z,{xs:24,sm:24,md:12,lg:12,xl:6,className:v()["data-search-item"],children:[(0,t.jsx)("div",{className:v()["data-search-prefix"],children:"\u8D77\u59CB\u65F6\u95F4"}),(0,t.jsx)(H,{size:"middle",className:v()["data-search-sufixx"],value:X,onChange:function(o,s){var p=[m()(m()(new Date(s[0])).format("YYYY-MM-DD 00:00:00")),m()(m()(new Date(s[1])).format("YYYY-MM-DD 23:59:59"))];pe(p)}})]})]}),(0,t.jsxs)("div",{className:v()["data-search-btns"],children:[(0,t.jsx)($.Z,{className:v()["search-btn-item"],onClick:qe,children:"\u91CD\u7F6E"}),(0,t.jsx)($.Z,{className:v()["search-btn-item"],type:"primary",onClick:je,children:"\u67E5\u8BE2"})]})]}),(0,t.jsxs)(W.Z,{className:v()["table-card"],children:[(0,t.jsx)("div",{className:v()["download-btn"],children:(0,t.jsx)($.Z,{type:"primary",icon:(0,t.jsx)(ne.Z,{}),size:"middle",children:"\u4E0B\u8F7D"})}),(0,t.jsx)(L.Z,{dataSource:oe,columns:He,pagination:!1}),(0,t.jsx)("div",{className:v()["table-page"],children:(0,t.jsx)(E.Z,{current:I,pageSize:te,total:ie,onChange:Je})})]})]})}},15746:function(j,x,e){"use strict";var n=e(21584);x.Z=n.Z},89032:function(j,x,e){"use strict";var n=e(38663),E=e.n(n),Z=e(6999)},99134:function(j,x,e){"use strict";var n=e(67294),E=(0,n.createContext)({});x.Z=E},21584:function(j,x,e){"use strict";var n=e(96156),E=e(22122),Z=e(90484),L=e(94184),ue=e.n(L),W=e(67294),D=e(53124),$=e(99134),ce=function(r,K){var P={};for(var h in r)Object.prototype.hasOwnProperty.call(r,h)&&K.indexOf(h)<0&&(P[h]=r[h]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var S=0,h=Object.getOwnPropertySymbols(r);S0){var q=c[0]/2;t.paddingLeft=q,t.paddingRight=q}if(c&&c[1]>0&&!l){var H=c[1]/2;t.paddingTop=H,t.paddingBottom=H}return J&&(t.flex=T(J),i===!1&&!t.minWidth&&(t.minWidth=0)),W.createElement("div",(0,E.Z)({},U,{style:(0,E.Z)((0,E.Z)({},t),b),className:ne,ref:K}),v)});x.Z=re},92820:function(j,x,e){"use strict";var n=e(22122),E=e(96156),Z=e(90484),L=e(28481),ue=e(94184),W=e.n(ue),D=e(67294),$=e(53124),ce=e(98082),T=e(24308),se=e(93355),re=e(99134),r=function(a,C){var c={};for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&C.indexOf(i)<0&&(c[i]=a[i]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,i=Object.getOwnPropertySymbols(a);l0?I[0]/-2:void 0,te=I[1]!=null&&I[1]>0?I[1]/-2:void 0;if(ee&&(F.marginLeft=ee,F.marginRight=ee),oe){var ge=(0,L.Z)(I,2);F.rowGap=ge[1]}else te&&(F.marginTop=te,F.marginBottom=te);var de=(0,L.Z)(I,2),le=de[0],ie=de[1],ye=D.useMemo(function(){return{gutter:[le,ie],wrap:Q,supportFlexGap:oe}},[le,ie,Q,oe]);return D.createElement(re.Z.Provider,{value:ye},D.createElement("div",(0,n.Z)({},v,{className:he,style:(0,n.Z)((0,n.Z)({},F),k),ref:C}),B))});x.Z=S},6999:function(j,x,e){"use strict";var n=e(38663),E=e.n(n),Z=e(80638),L=e.n(Z)},71230:function(j,x,e){"use strict";var n=e(92820);x.Z=n.Z},13062:function(j,x,e){"use strict";var n=e(38663),E=e.n(n),Z=e(6999)}}]); diff --git a/dist/p__order__gross-profit-store-sales.6de00989.async.js b/dist/p__order__gross-profit-store-sales.6de00989.async.js deleted file mode 100644 index 4fe6e3b..0000000 --- a/dist/p__order__gross-profit-store-sales.6de00989.async.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[5003,1322,9934,4407,6498,6090,274,6314],{1759:function(R){R.exports={"data-search-card":"data-search-card____3y2v","data-search-box":"data-search-box___18vv5","search-btn-item":"search-btn-item___1bmDV","table-page":"table-page___3xfjM","loading-card":"loading-card___dcQnu","data-search-item":"data-search-item___23DXw","data-search-input":"data-search-input___3WC5d","data-search-prefix":"data-search-prefix___Psc0s","data-search-sufixx":"data-search-sufixx___1MMan","data-search-btns":"data-search-btns___OgJ-7","download-btn":"download-btn___3uVYa"}},80638:function(){},3608:function(R,E,e){"use strict";e.r(E),e.d(E,{default:function(){return w}});var n=e(14781),i=e(36138),P=e(66456),A=e(64411),ue=e(58024),W=e(91894),h=e(13062),ee=e(71230),ce=e(57663),M=e(71577),te=e(89032),H=e(15746),a=e(62999),F=e(54680),D=e(93224),o=e(39428),Z=e(34792),r=e(48086),x=e(3182),s=e(2824),d=e(20228),y=e(11382),$=e(14965),N=e(91774),_=e(67294),j=e(78009),I=e(1759),l=e.n(I),G=e(11849),V=e(48971),b={getReportOrgsalesmargin:function(v){return(0,V.WY)("/kitchen/api/report/orgsalesmargin",{method:"Post",data:v})},gettree:function(v){return(0,V.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/tree",{data:(0,G.Z)({},v)})}},ae=e(30381),f=e.n(ae),m=e(90631),t=e(85893),re=["children"],C=N.Z.RangePicker,X=function(){return(0,t.jsx)("div",{className:l()["loading-card"],children:(0,t.jsx)(y.Z,{size:"large"})})};function w(){var g=(0,_.useState)([]),v=(0,s.Z)(g,2),u=v[0],K=v[1],se=(0,_.useState)(1),de=(0,s.Z)(se,2),ie=de[0],z=de[1],L=(0,_.useState)(10),fe=(0,s.Z)(L,2),U=fe[0],ne=fe[1],le=(0,_.useState)(0),ve=(0,s.Z)(le,2),_e=ve[0],he=ve[1],me=(0,_.useState)(!1),Ee=(0,s.Z)(me,2),ge=Ee[0],S=Ee[1],Y=(0,_.useState)([f()(f()(new Date(Date.now()-24*60*60*1e3*7)).format("YYYY-MM-DD 00:00:00")),f()(f()(new Date(Date.now())).format("YYYY-MM-DD 23:59:59"))]),J=(0,s.Z)(Y,2),k=J[0],q=J[1],oe=(0,_.useState)([]),De=(0,s.Z)(oe,2),xe=De[0],ye=De[1],Ce=(0,_.useState)([]),Oe=(0,s.Z)(Ce,2),pe=Oe[0],Ze=Oe[1],Se=(0,_.useState)([]),Pe=(0,s.Z)(Se,2),Re=Pe[0],Ae=Pe[1],je=[{title:"\u95E8\u5E97\u540D\u79F0",dataIndex:"storeId",key:"storeId",render:function(O){var c=Re.find(function(p){return p.key===O});return c?(0,t.jsx)("span",{children:c.title}):(0,t.jsx)("span",{children:"\u6682\u65E0\u95E8\u5E97\u540D\u79F0"})}},{title:"\u6BDB\u5229\u7387\uFF08%\uFF09",dataIndex:"marginRatio",key:"marginRatio"}],Ie=function(O,c){z(O),ne(c)},Me=function(){var T=(0,x.Z)((0,o.Z)().mark(function O(){var c,p;return(0,o.Z)().wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:return c={storeId:xe[0],begintime:k[0],endtime:k[1],current:ie,pageSize:U},S(!0),Q.next=4,b.getReportOrgsalesmargin(c);case 4:p=Q.sent,S(!1),p.statusCode===200?K(p.data.data):r.default.error(p.errors||"\u83B7\u53D6\u9500\u552E\u6210\u672C\u5931\u8D25");case 7:case"end":return Q.stop()}},O)}));return function(){return T.apply(this,arguments)}}(),Le=function(){var T=(0,x.Z)((0,o.Z)().mark(function O(){var c;return(0,o.Z)().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return S(!0),B.next=3,b.gettree({});case 3:c=B.sent,S(!1),c.statusCode===200?(Ze(c.data),Ae(Be(c.data))):r.default.error("\u67E5\u8BE2\u5E97\u94FA\u5217\u8868\u5931\u8D25");case 6:case"end":return B.stop()}},O)}));return function(){return T.apply(this,arguments)}}(),Te=function(){ye([]),q([f()(f()(new Date(Date.now()-24*60*60*1e3*7)).format("YYYY-MM-DD 00:00:00")),f()(f()(new Date(Date.now())).format("YYYY-MM-DD 23:59:59"))])},Be=function T(O){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return O.forEach(function(p){var B=p.children,Q=(0,D.Z)(p,re);c.push(Q),B&&B.length>0&&T(B,c)}),c};return(0,_.useEffect)(function(){Me(),Le()},[]),(0,t.jsxs)(j.ZP,{children:[ge?(0,t.jsx)(X,{}):null,(0,t.jsx)(W.Z,{className:l()["data-search-card"],children:(0,t.jsxs)(ee.Z,{gutter:20,justify:"start",children:[(0,t.jsxs)(H.Z,{xs:24,sm:24,md:12,lg:12,xl:8,className:l()["data-search-item"],children:[(0,t.jsx)("div",{className:l()["data-search-prefix"],children:"\u95E8\u5E97"}),(0,t.jsx)(F.Z,{className:l()["data-search-sufixx"],value:xe,dropdownStyle:{maxHeight:400,overflow:"auto"},treeData:pe,placeholder:"\u8BF7\u9009\u62E9\u95E8\u5E97",treeDefaultExpandAll:!0,onChange:function(O){return ye(O)}})]}),(0,t.jsxs)(H.Z,{xs:24,sm:24,md:12,lg:12,xl:8,className:l()["data-search-item"],children:[(0,t.jsx)("div",{className:l()["data-search-prefix"],children:"\u8D77\u59CB\u65F6\u95F4"}),(0,t.jsx)(C,{size:"middle",className:l()["data-search-sufixx"],value:k,onChange:function(O,c){var p=[f()(f()(new Date(c[0])).format("YYYY-MM-DD 00:00:00")),f()(f()(new Date(c[1])).format("YYYY-MM-DD 23:59:59"))];q(p)}})]}),(0,t.jsxs)("div",{className:l()["data-search-btns"],children:[(0,t.jsx)(M.Z,{className:l()["search-btn-item"],onClick:Te,children:"\u91CD\u7F6E"}),(0,t.jsx)(M.Z,{className:l()["search-btn-item"],type:"primary",onClick:Me,children:"\u67E5\u8BE2"})]})]})}),(0,t.jsxs)(W.Z,{className:l()["table-card"],children:[(0,t.jsx)("div",{className:l()["download-btn"],children:(0,t.jsx)(M.Z,{type:"primary",icon:(0,t.jsx)(m.Z,{}),size:"middle",children:"\u4E0B\u8F7D"})}),(0,t.jsx)(A.Z,{dataSource:u,columns:je,pagination:!1}),(0,t.jsx)("div",{className:l()["table-page"],children:(0,t.jsx)(i.Z,{current:ie,pageSize:U,total:_e,onChange:Ie})})]})]})}},15746:function(R,E,e){"use strict";var n=e(21584);E.Z=n.Z},89032:function(R,E,e){"use strict";var n=e(38663),i=e.n(n),P=e(6999)},99134:function(R,E,e){"use strict";var n=e(67294),i=(0,n.createContext)({});E.Z=i},21584:function(R,E,e){"use strict";var n=e(96156),i=e(22122),P=e(90484),A=e(94184),ue=e.n(A),W=e(67294),h=e(53124),ee=e(99134),ce=function(a,F){var D={};for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&F.indexOf(o)<0&&(D[o]=a[o]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Z=0,o=Object.getOwnPropertySymbols(a);Z0){var X=s[0]/2;C.paddingLeft=X,C.paddingRight=X}if(s&&s[1]>0&&!y){var w=s[1]/2;C.paddingTop=w,C.paddingBottom=w}return b&&(C.flex=M(b),d===!1&&!C.minWidth&&(C.minWidth=0)),W.createElement("div",(0,i.Z)({},f,{style:(0,i.Z)((0,i.Z)({},C),ae),className:re,ref:F}),V)});E.Z=H},92820:function(R,E,e){"use strict";var n=e(22122),i=e(96156),P=e(90484),A=e(28481),ue=e(94184),W=e.n(ue),h=e(67294),ee=e(53124),ce=e(98082),M=e(24308),te=e(93355),H=e(99134),a=function(r,x){var s={};for(var d in r)Object.prototype.hasOwnProperty.call(r,d)&&x.indexOf(d)<0&&(s[d]=r[d]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var y=0,d=Object.getOwnPropertySymbols(r);y0?L[0]/-2:void 0,le=L[1]!=null&&L[1]>0?L[1]/-2:void 0;if(ne&&(U.marginLeft=ne,U.marginRight=ne),se){var ve=(0,A.Z)(L,2);U.rowGap=ve[1]}else le&&(U.marginTop=le,U.marginBottom=le);var _e=(0,A.Z)(L,2),he=_e[0],me=_e[1],Ee=h.useMemo(function(){return{gutter:[he,me],wrap:G,supportFlexGap:se}},[he,me,G,se]);return h.createElement(H.Z.Provider,{value:Ee},h.createElement("div",(0,n.Z)({},V,{className:fe,style:(0,n.Z)((0,n.Z)({},U),_),ref:x}),j))});E.Z=Z},6999:function(R,E,e){"use strict";var n=e(38663),i=e.n(n),P=e(80638),A=e.n(P)},71230:function(R,E,e){"use strict";var n=e(92820);E.Z=n.Z},13062:function(R,E,e){"use strict";var n=e(38663),i=e.n(n),P=e(6999)}}]); diff --git a/dist/p__order__gross-profit-store-sales.c6196cd7.async.js b/dist/p__order__gross-profit-store-sales.c6196cd7.async.js new file mode 100644 index 0000000..d986b90 --- /dev/null +++ b/dist/p__order__gross-profit-store-sales.c6196cd7.async.js @@ -0,0 +1 @@ +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[5003,1322,9464,1981,2869,7013,9719,2383],{1759:function(R){R.exports={"data-search-card":"data-search-card____3y2v","data-search-box":"data-search-box___18vv5","search-btn-item":"search-btn-item___1bmDV","table-page":"table-page___3xfjM","loading-card":"loading-card___dcQnu","data-search-item":"data-search-item___23DXw","data-search-input":"data-search-input___3WC5d","data-search-prefix":"data-search-prefix___Psc0s","data-search-sufixx":"data-search-sufixx___1MMan","data-search-btns":"data-search-btns___OgJ-7","download-btn":"download-btn___3uVYa"}},80638:function(){},3608:function(R,E,e){"use strict";e.r(E),e.d(E,{default:function(){return w}});var n=e(14781),i=e(36138),P=e(66456),A=e(64411),ue=e(58024),W=e(91894),h=e(13062),ee=e(71230),ce=e(57663),M=e(71577),te=e(89032),H=e(15746),a=e(62999),F=e(54680),D=e(93224),o=e(39428),Z=e(34792),r=e(48086),x=e(3182),s=e(2824),d=e(20228),y=e(11382),$=e(14965),N=e(91774),_=e(67294),j=e(78009),I=e(1759),l=e.n(I),G=e(11849),V=e(48971),b={getReportOrgsalesmargin:function(v){return(0,V.WY)("/kitchen/api/report/orgsalesmargin",{method:"Post",data:v})},gettree:function(v){return(0,V.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/tree",{data:(0,G.Z)({},v)})}},ae=e(30381),f=e.n(ae),m=e(90631),t=e(85893),re=["children"],C=N.Z.RangePicker,X=function(){return(0,t.jsx)("div",{className:l()["loading-card"],children:(0,t.jsx)(y.Z,{size:"large"})})};function w(){var g=(0,_.useState)([]),v=(0,s.Z)(g,2),u=v[0],K=v[1],se=(0,_.useState)(1),de=(0,s.Z)(se,2),ie=de[0],z=de[1],L=(0,_.useState)(10),fe=(0,s.Z)(L,2),U=fe[0],ne=fe[1],le=(0,_.useState)(0),ve=(0,s.Z)(le,2),_e=ve[0],he=ve[1],me=(0,_.useState)(!1),Ee=(0,s.Z)(me,2),ge=Ee[0],S=Ee[1],Y=(0,_.useState)([f()(f()(new Date(Date.now()-24*60*60*1e3*7)).format("YYYY-MM-DD 00:00:00")),f()(f()(new Date(Date.now())).format("YYYY-MM-DD 23:59:59"))]),J=(0,s.Z)(Y,2),k=J[0],q=J[1],oe=(0,_.useState)([]),De=(0,s.Z)(oe,2),xe=De[0],ye=De[1],Ce=(0,_.useState)([]),Oe=(0,s.Z)(Ce,2),pe=Oe[0],Ze=Oe[1],Se=(0,_.useState)([]),Pe=(0,s.Z)(Se,2),Re=Pe[0],Ae=Pe[1],je=[{title:"\u95E8\u5E97\u540D\u79F0",dataIndex:"storeId",key:"storeId",render:function(O){var c=Re.find(function(p){return p.key===O});return c?(0,t.jsx)("span",{children:c.title}):(0,t.jsx)("span",{children:"\u6682\u65E0\u95E8\u5E97\u540D\u79F0"})}},{title:"\u6BDB\u5229\u7387\uFF08%\uFF09",dataIndex:"marginRatio",key:"marginRatio"}],Ie=function(O,c){z(O),ne(c)},Me=function(){var T=(0,x.Z)((0,o.Z)().mark(function O(){var c,p;return(0,o.Z)().wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:return c={storeId:xe[0],begintime:k[0],endtime:k[1],current:ie,pageSize:U},S(!0),Q.next=4,b.getReportOrgsalesmargin(c);case 4:p=Q.sent,S(!1),p.statusCode===200?K(p.data.data):r.default.error(p.errors||"\u83B7\u53D6\u9500\u552E\u6210\u672C\u5931\u8D25");case 7:case"end":return Q.stop()}},O)}));return function(){return T.apply(this,arguments)}}(),Le=function(){var T=(0,x.Z)((0,o.Z)().mark(function O(){var c;return(0,o.Z)().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return S(!0),B.next=3,b.gettree({});case 3:c=B.sent,S(!1),c.statusCode===200?(Ze(c.data),Ae(Be(c.data))):r.default.error("\u67E5\u8BE2\u5E97\u94FA\u5217\u8868\u5931\u8D25");case 6:case"end":return B.stop()}},O)}));return function(){return T.apply(this,arguments)}}(),Te=function(){ye([]),q([f()(f()(new Date(Date.now()-24*60*60*1e3*7)).format("YYYY-MM-DD 00:00:00")),f()(f()(new Date(Date.now())).format("YYYY-MM-DD 23:59:59"))])},Be=function T(O){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return O.forEach(function(p){var B=p.children,Q=(0,D.Z)(p,re);c.push(Q),B&&B.length>0&&T(B,c)}),c};return(0,_.useEffect)(function(){Me(),Le()},[]),(0,t.jsxs)(j.ZP,{children:[ge?(0,t.jsx)(X,{}):null,(0,t.jsx)(W.Z,{className:l()["data-search-card"],children:(0,t.jsxs)(ee.Z,{gutter:20,justify:"start",children:[(0,t.jsxs)(H.Z,{xs:24,sm:24,md:12,lg:12,xl:8,className:l()["data-search-item"],children:[(0,t.jsx)("div",{className:l()["data-search-prefix"],children:"\u95E8\u5E97"}),(0,t.jsx)(F.Z,{className:l()["data-search-sufixx"],value:xe,dropdownStyle:{maxHeight:400,overflow:"auto"},treeData:pe,placeholder:"\u8BF7\u9009\u62E9\u95E8\u5E97",treeDefaultExpandAll:!0,onChange:function(O){return ye(O)}})]}),(0,t.jsxs)(H.Z,{xs:24,sm:24,md:12,lg:12,xl:8,className:l()["data-search-item"],children:[(0,t.jsx)("div",{className:l()["data-search-prefix"],children:"\u8D77\u59CB\u65F6\u95F4"}),(0,t.jsx)(C,{size:"middle",className:l()["data-search-sufixx"],value:k,onChange:function(O,c){var p=[f()(f()(new Date(c[0])).format("YYYY-MM-DD 00:00:00")),f()(f()(new Date(c[1])).format("YYYY-MM-DD 23:59:59"))];q(p)}})]}),(0,t.jsxs)("div",{className:l()["data-search-btns"],children:[(0,t.jsx)(M.Z,{className:l()["search-btn-item"],onClick:Te,children:"\u91CD\u7F6E"}),(0,t.jsx)(M.Z,{className:l()["search-btn-item"],type:"primary",onClick:Me,children:"\u67E5\u8BE2"})]})]})}),(0,t.jsxs)(W.Z,{className:l()["table-card"],children:[(0,t.jsx)("div",{className:l()["download-btn"],children:(0,t.jsx)(M.Z,{type:"primary",icon:(0,t.jsx)(m.Z,{}),size:"middle",children:"\u4E0B\u8F7D"})}),(0,t.jsx)(A.Z,{dataSource:u,columns:je,pagination:!1}),(0,t.jsx)("div",{className:l()["table-page"],children:(0,t.jsx)(i.Z,{current:ie,pageSize:U,total:_e,onChange:Ie})})]})]})}},15746:function(R,E,e){"use strict";var n=e(21584);E.Z=n.Z},89032:function(R,E,e){"use strict";var n=e(38663),i=e.n(n),P=e(6999)},99134:function(R,E,e){"use strict";var n=e(67294),i=(0,n.createContext)({});E.Z=i},21584:function(R,E,e){"use strict";var n=e(96156),i=e(22122),P=e(90484),A=e(94184),ue=e.n(A),W=e(67294),h=e(53124),ee=e(99134),ce=function(a,F){var D={};for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&F.indexOf(o)<0&&(D[o]=a[o]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Z=0,o=Object.getOwnPropertySymbols(a);Z0){var X=s[0]/2;C.paddingLeft=X,C.paddingRight=X}if(s&&s[1]>0&&!y){var w=s[1]/2;C.paddingTop=w,C.paddingBottom=w}return b&&(C.flex=M(b),d===!1&&!C.minWidth&&(C.minWidth=0)),W.createElement("div",(0,i.Z)({},f,{style:(0,i.Z)((0,i.Z)({},C),ae),className:re,ref:F}),V)});E.Z=H},92820:function(R,E,e){"use strict";var n=e(22122),i=e(96156),P=e(90484),A=e(28481),ue=e(94184),W=e.n(ue),h=e(67294),ee=e(53124),ce=e(98082),M=e(24308),te=e(93355),H=e(99134),a=function(r,x){var s={};for(var d in r)Object.prototype.hasOwnProperty.call(r,d)&&x.indexOf(d)<0&&(s[d]=r[d]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var y=0,d=Object.getOwnPropertySymbols(r);y0?L[0]/-2:void 0,le=L[1]!=null&&L[1]>0?L[1]/-2:void 0;if(ne&&(U.marginLeft=ne,U.marginRight=ne),se){var ve=(0,A.Z)(L,2);U.rowGap=ve[1]}else le&&(U.marginTop=le,U.marginBottom=le);var _e=(0,A.Z)(L,2),he=_e[0],me=_e[1],Ee=h.useMemo(function(){return{gutter:[he,me],wrap:G,supportFlexGap:se}},[he,me,G,se]);return h.createElement(H.Z.Provider,{value:Ee},h.createElement("div",(0,n.Z)({},V,{className:fe,style:(0,n.Z)((0,n.Z)({},U),_),ref:x}),j))});E.Z=Z},6999:function(R,E,e){"use strict";var n=e(38663),i=e.n(n),P=e(80638),A=e.n(P)},71230:function(R,E,e){"use strict";var n=e(92820);E.Z=n.Z},13062:function(R,E,e){"use strict";var n=e(38663),i=e.n(n),P=e(6999)}}]); diff --git a/dist/p__order__order-flow-manage.bd5f9307.async.js b/dist/p__order__order-flow-manage.44faa7f5.async.js similarity index 62% rename from dist/p__order__order-flow-manage.bd5f9307.async.js rename to dist/p__order__order-flow-manage.44faa7f5.async.js index b402b95..7bd18b3 100644 --- a/dist/p__order__order-flow-manage.bd5f9307.async.js +++ b/dist/p__order__order-flow-manage.44faa7f5.async.js @@ -1 +1 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[6287],{90306:function(U,D,e){"use strict";e.r(D);var c=e(57663),i=e(71577),a=e(11849),m=e(47673),F=e(4107),b=e(93224),T=e(43358),L=e(34041),p=e(2824),x=e(39428),k=e(34792),C=e(48086),P=e(3182),n=e(90631),_=e(67294),j=e(78009),N=e(16894),I=e(53667),R=e.n(I),f=e(46389),W=e(26177),u=e(85893),G=["defaultRender"],Y=null,S=function(){var A=(0,_.useState)(),y=(0,p.Z)(A,2),o=y[0],M=y[1],s=(0,_.useState)(!1),Z=(0,p.Z)(s,2),K=Z[0],w=Z[1],J=(0,_.useState)([]),V=(0,p.Z)(J,2),Q=V[0],X=V[1],q=(0,_.useState)([]),$=(0,p.Z)(q,2),de=$[0],ee=$[1],te=(0,_.useRef)(),re=(0,_.useState)([]),H=(0,p.Z)(re,2),z=H[0],ae=H[1];(0,_.useEffect)(function(){function l(){f.Z.srdList().then(function(t){var r=t.data;r==null||r.forEach(function(d){d.value=d.id,d.label=d.name}),X(r)})}l()},[]);function se(){f.Z.GetFlowExport(z).then(function(l){var t=URL.createObjectURL(new Blob([l])),r="\u8BA2\u5355\u6D41\u6C34.xlsx",d=document.createElement("a");d.href=t,d.download=r,d.click(),URL.revokeObjectURL(t)})}var ne=[{title:"\u4E3B\u952E",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0},{title:"\u8BA2\u5355\u65F6\u95F4",dataIndex:"order_CreateTime",valueType:"dateRange",hideInTable:!0,search:{transform:function(t){return{order_CreateTime:t[0],order_EndTime:t[1]}}}},{title:"\u624B\u673A\u53F7",dataIndex:"Customer_Tel",hideInTable:!0},{title:"\u5E97\u94FA\u540D\u79F0",dataIndex:"storeId",hideInTable:!0,valueType:"select",renderFormItem:function(){return(0,u.jsx)(L.Z,{mode:"multiple",showArrow:!0,optionFilterProp:"label",placeholder:"\u8BF7\u9009\u62E9\u5E97\u94FA",style:{width:"100%"},options:Q})}},{title:"\u4EA4\u6613\u5355\u53F7",dataIndex:"order_Number",hideInSearch:!0},{title:"\u5E97\u94FA\u540D\u79F0",dataIndex:"storeName",hideInSearch:!0},{title:"\u5E94\u4ED8\u91D1\u989D",dataIndex:"order_OriginalMoney",renderText:function(t){return"".concat(t,"\xA5")},hideInSearch:!0},{title:"\u5B9E\u4ED8\u91D1\u989D",dataIndex:"order_RealMoney",hideInSearch:!0,renderText:function(t){return"".concat(t,"\xA5")}},{title:"\u5E94\u4ED8\u91D1\u989D(\u9000)",dataIndex:"refundOriginalMoney",renderText:function(t){return"".concat(t,"\xA5")},hideInSearch:!0},{title:"\u5B9E\u4ED8\u91D1\u989D(\u9000)",dataIndex:"refundRealMoney",hideInSearch:!0,renderText:function(t){return"".concat(t,"\xA5")}},{title:"\u6570\u91CF",dataIndex:"order_Count",hideInSearch:!0},{title:"\u652F\u4ED8\u7C7B\u578B",dataIndex:"payMode",valueEnum:{0:{text:"\u5FAE\u4FE1\u652F\u4ED8"},1:{text:"\u652F\u4ED8\u5B9D"},2:{text:"\u4F59\u989D"},3:{text:"\u94F6\u8054"},4:{text:"\u73B0\u91D1"}}},{title:"\u521B\u5EFA\u65F6\u95F4",sorter:!0,dataIndex:"order_CreateTime",valueType:"dateTime",hideInSearch:!0,renderFormItem:function(t,r,d){var v=r.defaultRender,E=(0,b.Z)(r,G),O=d.getFieldValue("status");return"".concat(O)==="0"?!1:"".concat(O)==="3"?(0,u.jsx)(F.Z,(0,a.Z)((0,a.Z)({},E),{},{placeholder:"\u8BF7\u8F93\u5165\u5F02\u5E38\u539F\u56E0\uFF01"})):v(t)}},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(t,r){return[(0,u.jsx)("a",{onClick:function(){M(r),w(!0)},children:"\u67E5\u770B\u8BE6\u60C5"},"config"),(0,u.jsx)("a",{onClick:function(){f.Z.printsmallticket({orderId:r.id}).then(function(v){v.data?C.default.success("\u6253\u5370\u6210\u529F"):C.default.error("\u6253\u5370\u5931\u8D25")})},children:"\u6253\u5370\u5C0F\u7968"},"config")]}}],oe=function(){var l=(0,P.Z)((0,x.Z)().mark(function t(){var r,d,v,E,O,h;return(0,x.Z)().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return g.next=2,f.Z.GetFlowExport(z);case 2:r=g.sent,r.isSuccess?(d={},v=new Date,E="\u8BA2\u5355\u6D41\u6C34"+v.toLocaleString().replaceAll("/","-"),d.fileName=E,O=["storeTypeName","storeName","order_Number","order_OriginalMoney","order_RealMoney","refundOriginalMoney","refundRealMoney","order_Count","order_CreateTime"],d.datas=[{sheetData:r.data,sheetName:E,sheetFilter:O,sheetHeader:["\u5E97\u94FA\u5206\u7C7B","\u5E97\u94FA\u540D\u79F0","\u4EA4\u6613\u5355\u53F7","\u5E94\u4ED8\u91D1\u989D","\u5B9E\u4ED8\u91D1\u989D","\u5E94\u4ED8\u91D1\u989D(\u9000)","\u5B9E\u4ED8\u91D1\u989D(\u9000)","\u5B50\u8BA2\u5355\u6570\u91CF","\u521B\u5EFA\u65F6\u95F4"]}],h=new(R())(d),h.saveExcel()):C.default.error(r.errors||"\u5BFC\u51FA\u5931\u8D25");case 4:case"end":return g.stop()}},t)}));return function(){return l.apply(this,arguments)}}();return(0,u.jsxs)(j.ZP,{children:[(0,u.jsx)(N.ZP,{headerTitle:"\u8BA2\u5355\u6D41\u6C34",actionRef:te,rowKey:"orderFlowId",search:{labelWidth:120},toolBarRender:function(){return[(0,u.jsxs)(i.Z,{type:"primary",onClick:oe,children:[(0,u.jsx)(n.Z,{})," \u5BFC\u51FA"]},"create")]},columns:ne,request:function(){var l=(0,P.Z)((0,x.Z)().mark(function t(r,d,v){var E;return(0,x.Z)().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return r.storeTypeId!=null&&(r.storeTypeId=srdTypeList[r.storeTypeId].storeTypeId),h.next=3,f.Z.orderList(r);case 3:return E=h.sent,ae(r),ee(E.data.data),h.abrupt("return",{data:E.data.data,success:!0,total:E.data.total});case 7:case"end":return h.stop()}},t)}));return function(t,r,d){return l.apply(this,arguments)}}()}),!!o&&(0,u.jsx)(W.Z,{onCancel:function(){M(void 0),w(!1)},createModalVisible:K,values:o||{}})]})};D.default=S},26177:function(U,D,e){"use strict";var c=e(71194),i=e(50146),a=e(98858),m=e(4914),F=e(34792),b=e(48086),T=e(39428),L=e(3182),p=e(2824),x=e(67294),k=e(16894),C=e(12826),P=e(46389),n=e(85893),_={},j=function(I){var R,f,W,u,G=I.createModalVisible,Y=I.onCancel,S=(0,x.useState)([]),B=(0,p.Z)(S,2),A=B[0],y=B[1];return(0,n.jsxs)(i.Z,{title:"\u8BA2\u5355\u8BE6\u60C5",width:1e3,visible:I.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,destroyOnClose:!0,onCancel:function(){return Y()},maskClosable:!1,children:[(0,n.jsx)(C.ZP,{title:"\u8BA2\u5355\u4FE1\u606F",request:(0,L.Z)((0,T.Z)().mark(function o(){return(0,T.Z)().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,P.Z.GetOrderDetails({id:I.values.id});case 2:return _=s.sent,y(_),s.abrupt("return",Promise.resolve({success:!0,data:_}));case 5:case"end":return s.stop()}},o)})),columns:[{title:"\u4F1A\u5458\u59D3\u540D",key:"customer_Name",dataIndex:"customer_Name"},{title:"\u624B\u673A\u53F7",key:"customer_Tel",dataIndex:"customer_Tel"},{title:"\u8BA2\u5355\u6D41\u6C34",key:"order_Number",dataIndex:"order_Number"},{title:"\u8BA2\u5355\u53F7",key:"transaction_ID",dataIndex:"transaction_ID"},{title:"\u4EA4\u6613\u5355\u53F7",key:"trade_no",dataIndex:"trade_no"},{title:"\u6392\u961F\u53F7",key:"order_SortID",dataIndex:"order_SortID"},{title:"\u6298\u6263",key:"discount",dataIndex:"discount"},{title:"\u5B9E\u4ED8\u91D1\u989D",dataIndex:"order_RealMoney",valueType:"money",fieldProps:{moneySymbol:"\xA5"}},{title:"\u5E94\u4ED8\u91D1\u989D",dataIndex:"order_OriginalMoney",valueType:"money",fieldProps:{moneySymbol:"\xA5"}},{title:"\u5B9E\u4ED8\u91D1\u989D(\u9000)",dataIndex:"refundRealMoney",valueType:"money",fieldProps:{moneySymbol:"\xA5"}},{title:"\u5E94\u4ED8\u91D1\u989D(\u9000)",dataIndex:"refundOriginalMoney",valueType:"money",fieldProps:{moneySymbol:"\xA5"}},{title:"\u6570\u91CF",dataIndex:"order_Count",hideInSearch:!0},{title:"\u652F\u4ED8\u65B9\u5F0F",dataIndex:"payMode",key:"payMode"},{title:"\u8BA2\u5355\u72B6\u6001",dataIndex:"order_Status",key:"order_Status"},{title:"\u6D88\u8D39\u91D1\u989D",dataIndex:"recharge",key:"recharge"},{title:"\u6D88\u8D39\u8D60\u9001\u91D1\u989D",dataIndex:"rechargeBalance",key:"rechargeBalance"}]}),(0,n.jsx)("h3",{style:{fontWeight:"bold",fontSize:16,marginTop:30},children:"\u5546\u54C1\u5217\u8868"}),(0,n.jsx)(k.ZP,{rowKey:"id",request:(0,L.Z)((0,T.Z)().mark(function o(){return(0,T.Z)().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,P.Z.GetOrderDetails({id:I.values.id});case 2:return _=s.sent,s.abrupt("return",{data:_.detailList,success:!0});case 4:case"end":return s.stop()}},o)})),columns:[{title:"\u5546\u54C1\u5206\u7C7B",key:"goodsTypeName",dataIndex:"goodsTypeName"},{title:"\u5546\u54C1\u540D\u79F0",key:"goodsName",dataIndex:"goodsName"},{title:"\u5E94\u4ED8\u91D1\u989D",key:"originalMoney",dataIndex:"originalMoney",valueType:"money",fieldProps:{moneySymbol:"\xA5"}},{title:"\u5B9E\u4ED8\u91D1\u989D",dataIndex:"realMoney",valueType:"money",fieldProps:{moneySymbol:"\xA5"}},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(M,s){return[(0,n.jsx)("a",{onClick:function(){P.Z.printsmallticket({orderId:I.values.id,subOrderId:s.id}).then(function(K){debugger;K.data?b.default.success("\u6253\u5370\u6210\u529F"):b.default.error("\u6253\u5370\u5931\u8D25")})},children:"\u6253\u5370\u5C0F\u7968"},"config")]}}],toolBarRender:!1,search:!1}),(0,n.jsx)(m.Z,{title:"\u4F18\u60E0\u5238",children:(R=_)===null||R===void 0||(f=R.paperCoupons)===null||f===void 0?void 0:f.map(function(o){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(m.Z.Item,{label:"\u5E73\u53F0",children:o.platformName}),(0,n.jsx)(m.Z.Item,{label:"\u4F18\u60E0\u5238",children:o.name}),(0,n.jsx)(m.Z.Item,{label:"\u4F18\u60E0\u91D1\u989D",children:o.amount})]})})}),(0,n.jsx)(m.Z,{column:5,title:"\u62B5\u6263\u5238",children:(W=_)===null||W===void 0||(u=W.goodsCoupons)===null||u===void 0?void 0:u.map(function(o){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(m.Z.Item,{label:"\u5E73\u53F0",children:o.platformName}),(0,n.jsx)(m.Z.Item,{label:"\u62B5\u6263\u5238",children:o.name}),(0,n.jsx)(m.Z.Item,{label:"\u5546\u54C1",children:o.goodsName}),(0,n.jsx)(m.Z.Item,{label:"\u5546\u54C1\u539F\u4EF7",children:o.goodsAmount}),(0,n.jsx)(m.Z.Item,{label:"\u5E73\u53F0\u552E\u4EF7",children:o.platformAmount})]})})})]})};D.Z=j},46389:function(U,D,e){"use strict";var c=e(48971);D.Z={orderList:function(a){return a.isreport=!0,(0,c.WY)("/kitchen/api/order/order-detail-flow",{method:"Post",data:a})},srdTypeList:function(a){return(0,c.WY)("/kitchen/api/storetype/list",{method:"Post",data:a})},srdList:function(a){return(0,c.WY)("/kitchen/api/store/list",{method:"Post",data:a})},goodsList:function(a){return(0,c.WY)("/kitchen/api/goodes/list",{method:"Post",data:a})},goodsTypeList:function(a){return(0,c.WY)("/kitchen/api/goodstype/list",{method:"Post",data:a})},StartRefund:function(a){return(0,c.WY)("/kitchen/api/refund/StartOrderRefund",{method:"Post",params:a})},GetOrderDetails:function(a){return(0,c.WY)("/kitchen/api/Order/GetOrderDetails",{method:"Post",params:a})},GetFlowExport:function(a){return(0,c.WY)("/kitchen/api/Order/GetFlowExport",{method:"Post",data:a})},printsmallticket:function(a){return(0,c.WY)("/kitchen/api/printer/print-small-ticket",{method:"Post",data:a})}}}}]); +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[6287],{90306:function(U,v,e){"use strict";e.r(v);var c=e(57663),i=e(71577),a=e(11849),m=e(47673),F=e(4107),g=e(93224),T=e(43358),b=e(34041),P=e(2824),D=e(39428),N=e(34792),C=e(48086),x=e(3182),n=e(90631),_=e(67294),j=e(78009),k=e(16894),I=e(53667),B=e.n(I),f=e(46389),A=e(26177),u=e(85893),G=["defaultRender"],Y=null,S=function(){var W=(0,_.useState)(),y=(0,P.Z)(W,2),d=y[0],M=y[1],s=(0,_.useState)(!1),Z=(0,P.Z)(s,2),K=Z[0],w=Z[1],J=(0,_.useState)([]),V=(0,P.Z)(J,2),Q=V[0],X=V[1],q=(0,_.useState)([]),$=(0,P.Z)(q,2),oe=$[0],ee=$[1],te=(0,_.useRef)(),re=(0,_.useState)([]),H=(0,P.Z)(re,2),z=H[0],ae=H[1];(0,_.useEffect)(function(){function l(){f.Z.srdList().then(function(t){var r=t.data;r==null||r.forEach(function(o){o.value=o.id,o.label=o.name}),X(r)})}l()},[]);function se(){f.Z.GetFlowExport(z).then(function(l){var t=URL.createObjectURL(new Blob([l])),r="\u8BA2\u5355\u6D41\u6C34.xlsx",o=document.createElement("a");o.href=t,o.download=r,o.click(),URL.revokeObjectURL(t)})}var ne=[{title:"\u4E3B\u952E",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0},{title:"\u8BA2\u5355\u65F6\u95F4",dataIndex:"order_CreateTime",valueType:"dateRange",hideInTable:!0,search:{transform:function(t){return{order_CreateTime:t[0],order_EndTime:t[1]}}}},{title:"\u624B\u673A\u53F7",dataIndex:"Customer_Tel",hideInTable:!0},{title:"\u5E97\u94FA\u540D\u79F0",dataIndex:"storeId",hideInTable:!0,valueType:"select",renderFormItem:function(){return(0,u.jsx)(b.Z,{mode:"multiple",showArrow:!0,optionFilterProp:"label",placeholder:"\u8BF7\u9009\u62E9\u5E97\u94FA",style:{width:"100%"},options:Q})}},{title:"\u4EA4\u6613\u5355\u53F7",dataIndex:"order_Number",hideInSearch:!0},{title:"\u5E97\u94FA\u540D\u79F0",dataIndex:"storeName",hideInSearch:!0},{title:"\u5E94\u4ED8\u91D1\u989D",dataIndex:"order_OriginalMoney",renderText:function(t){return"".concat(t,"\xA5")},hideInSearch:!0},{title:"\u5B9E\u4ED8\u91D1\u989D",dataIndex:"order_RealMoney",hideInSearch:!0,renderText:function(t){return"".concat(t,"\xA5")}},{title:"\u5E94\u4ED8\u91D1\u989D(\u9000)",dataIndex:"refundOriginalMoney",renderText:function(t){return"".concat(t,"\xA5")},hideInSearch:!0},{title:"\u5B9E\u4ED8\u91D1\u989D(\u9000)",dataIndex:"refundRealMoney",hideInSearch:!0,renderText:function(t){return"".concat(t,"\xA5")}},{title:"\u6570\u91CF",dataIndex:"order_Count",hideInSearch:!0},{title:"\u652F\u4ED8\u7C7B\u578B",dataIndex:"payMode",valueEnum:{0:{text:"\u5FAE\u4FE1\u652F\u4ED8"},1:{text:"\u652F\u4ED8\u5B9D"},2:{text:"\u4F59\u989D"},3:{text:"\u94F6\u8054"},4:{text:"\u73B0\u91D1"}}},{title:"\u521B\u5EFA\u65F6\u95F4",sorter:!0,dataIndex:"order_CreateTime",valueType:"dateTime",hideInSearch:!0,renderFormItem:function(t,r,o){var p=r.defaultRender,E=(0,g.Z)(r,G),O=o.getFieldValue("status");return"".concat(O)==="0"?!1:"".concat(O)==="3"?(0,u.jsx)(F.Z,(0,a.Z)((0,a.Z)({},E),{},{placeholder:"\u8BF7\u8F93\u5165\u5F02\u5E38\u539F\u56E0\uFF01"})):p(t)}},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(t,r){return[(0,u.jsx)("a",{onClick:function(){M(r),w(!0)},children:"\u67E5\u770B\u8BE6\u60C5"},"config"),(0,u.jsx)("a",{onClick:function(){f.Z.printsmallticket({orderId:r.id}).then(function(p){p.data?C.default.success("\u6253\u5370\u6210\u529F"):C.default.error("\u6253\u5370\u5931\u8D25")})},children:"\u6253\u5370\u5C0F\u7968"},"config")]}}],de=function(){var l=(0,x.Z)((0,D.Z)().mark(function t(){var r,o,p,E,O,h;return(0,D.Z)().wrap(function(R){for(;;)switch(R.prev=R.next){case 0:return R.next=2,f.Z.GetFlowExport(z);case 2:r=R.sent,r.isSuccess?(o={},p=new Date,E="\u8BA2\u5355\u6D41\u6C34"+p.toLocaleString().replaceAll("/","-"),o.fileName=E,O=["storeTypeName","storeName","order_Number","order_OriginalMoney","order_RealMoney","refundOriginalMoney","refundRealMoney","order_Count","order_CreateTime"],o.datas=[{sheetData:r.data,sheetName:E,sheetFilter:O,sheetHeader:["\u5E97\u94FA\u5206\u7C7B","\u5E97\u94FA\u540D\u79F0","\u4EA4\u6613\u5355\u53F7","\u5E94\u4ED8\u91D1\u989D","\u5B9E\u4ED8\u91D1\u989D","\u5E94\u4ED8\u91D1\u989D(\u9000)","\u5B9E\u4ED8\u91D1\u989D(\u9000)","\u5B50\u8BA2\u5355\u6570\u91CF","\u521B\u5EFA\u65F6\u95F4"]}],h=new(B())(o),h.saveExcel()):C.default.error(r.errors||"\u5BFC\u51FA\u5931\u8D25");case 4:case"end":return R.stop()}},t)}));return function(){return l.apply(this,arguments)}}();return(0,u.jsxs)(j.ZP,{children:[(0,u.jsx)(k.ZP,{headerTitle:"\u8BA2\u5355\u6D41\u6C34",actionRef:te,rowKey:"orderFlowId",search:{labelWidth:120},toolBarRender:function(){return[(0,u.jsxs)(i.Z,{type:"primary",onClick:de,children:[(0,u.jsx)(n.Z,{})," \u5BFC\u51FA"]},"create")]},columns:ne,request:function(){var l=(0,x.Z)((0,D.Z)().mark(function t(r,o,p){var E;return(0,D.Z)().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return r.storeTypeId!=null&&(r.storeTypeId=srdTypeList[r.storeTypeId].storeTypeId),h.next=3,f.Z.orderList(r);case 3:return E=h.sent,ae(r),ee(E.data.data),h.abrupt("return",{data:E.data.data,success:!0,total:E.data.total});case 7:case"end":return h.stop()}},t)}));return function(t,r,o){return l.apply(this,arguments)}}()}),!!d&&(0,u.jsx)(A.Z,{onCancel:function(){M(void 0),w(!1)},createModalVisible:K,values:d||{}})]})};v.default=S},26177:function(U,v,e){"use strict";var c=e(71194),i=e(50146),a=e(98858),m=e(4914),F=e(34792),g=e(48086),T=e(39428),b=e(3182),P=e(2824),D=e(67294),N=e(16894),C=e(12826),x=e(46389),n=e(85893),_={},j=function(I){var B,f,A,u,G=I.createModalVisible,Y=I.onCancel,S=(0,D.useState)([]),L=(0,P.Z)(S,2),W=L[0],y=L[1];return(0,n.jsxs)(i.Z,{title:"\u8BA2\u5355\u8BE6\u60C5",width:1e3,visible:I.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,destroyOnClose:!0,onCancel:function(){return Y()},maskClosable:!1,children:[(0,n.jsx)(C.ZP,{title:"\u8BA2\u5355\u4FE1\u606F",request:(0,b.Z)((0,T.Z)().mark(function d(){return(0,T.Z)().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,x.Z.GetOrderDetails({id:I.values.id});case 2:return _=s.sent,y(_),s.abrupt("return",Promise.resolve({success:!0,data:_}));case 5:case"end":return s.stop()}},d)})),columns:[{title:"\u4F1A\u5458\u59D3\u540D",key:"customer_Name",dataIndex:"customer_Name"},{title:"\u624B\u673A\u53F7",key:"customer_Tel",dataIndex:"customer_Tel"},{title:"\u8BA2\u5355\u6D41\u6C34",key:"order_Number",dataIndex:"order_Number"},{title:"\u8BA2\u5355\u53F7",key:"transaction_ID",dataIndex:"transaction_ID"},{title:"\u4EA4\u6613\u5355\u53F7",key:"trade_no",dataIndex:"trade_no"},{title:"\u6392\u961F\u53F7",key:"order_SortID",dataIndex:"order_SortID"},{title:"\u6298\u6263",key:"discount",dataIndex:"discount"},{title:"\u5B9E\u4ED8\u91D1\u989D",dataIndex:"order_RealMoney",valueType:"money",fieldProps:{moneySymbol:"\xA5"}},{title:"\u5E94\u4ED8\u91D1\u989D",dataIndex:"order_OriginalMoney",valueType:"money",fieldProps:{moneySymbol:"\xA5"}},{title:"\u5B9E\u4ED8\u91D1\u989D(\u9000)",dataIndex:"refundRealMoney",valueType:"money",fieldProps:{moneySymbol:"\xA5"}},{title:"\u5E94\u4ED8\u91D1\u989D(\u9000)",dataIndex:"refundOriginalMoney",valueType:"money",fieldProps:{moneySymbol:"\xA5"}},{title:"\u6570\u91CF",dataIndex:"order_Count",hideInSearch:!0},{title:"\u652F\u4ED8\u65B9\u5F0F",dataIndex:"payMode",key:"payMode"},{title:"\u8BA2\u5355\u72B6\u6001",dataIndex:"order_Status",key:"order_Status"},{title:"\u6D88\u8D39\u91D1\u989D",dataIndex:"recharge",key:"recharge"},{title:"\u6D88\u8D39\u8D60\u9001\u91D1\u989D",dataIndex:"rechargeBalance",key:"rechargeBalance"}]}),(0,n.jsx)("h3",{style:{fontWeight:"bold",fontSize:16,marginTop:30},children:"\u5546\u54C1\u5217\u8868"}),(0,n.jsx)(N.ZP,{rowKey:"id",request:(0,b.Z)((0,T.Z)().mark(function d(){return(0,T.Z)().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,x.Z.GetOrderDetails({id:I.values.id});case 2:return _=s.sent,s.abrupt("return",{data:_.detailList,success:!0});case 4:case"end":return s.stop()}},d)})),columns:[{title:"\u5546\u54C1\u5206\u7C7B",key:"goodsTypeName",dataIndex:"goodsTypeName"},{title:"\u5546\u54C1\u540D\u79F0",key:"goodsName",dataIndex:"goodsName"},{title:"\u5E94\u4ED8\u91D1\u989D",key:"originalMoney",dataIndex:"originalMoney",valueType:"money",fieldProps:{moneySymbol:"\xA5"}},{title:"\u5B9E\u4ED8\u91D1\u989D",dataIndex:"realMoney",valueType:"money",fieldProps:{moneySymbol:"\xA5"}},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(M,s){return[(0,n.jsx)("a",{onClick:function(){x.Z.printsmallticket({orderId:I.values.id,subOrderId:s.id}).then(function(K){debugger;K.data?g.default.success("\u6253\u5370\u6210\u529F"):g.default.error("\u6253\u5370\u5931\u8D25")})},children:"\u6253\u5370\u5C0F\u7968"},"config")]}}],toolBarRender:!1,search:!1}),(0,n.jsx)(m.Z,{title:"\u4F18\u60E0\u5238",children:(B=_)===null||B===void 0||(f=B.paperCoupons)===null||f===void 0?void 0:f.map(function(d){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(m.Z.Item,{label:"\u5E73\u53F0",children:d.platformName}),(0,n.jsx)(m.Z.Item,{label:"\u4F18\u60E0\u5238",children:d.name}),(0,n.jsx)(m.Z.Item,{label:"\u4F18\u60E0\u91D1\u989D",children:d.amount})]})})}),(0,n.jsx)(m.Z,{column:5,title:"\u62B5\u6263\u5238",children:(A=_)===null||A===void 0||(u=A.goodsCoupons)===null||u===void 0?void 0:u.map(function(d){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(m.Z.Item,{label:"\u5E73\u53F0",children:d.platformName}),(0,n.jsx)(m.Z.Item,{label:"\u62B5\u6263\u5238",children:d.name}),(0,n.jsx)(m.Z.Item,{label:"\u5546\u54C1",children:d.goodsName}),(0,n.jsx)(m.Z.Item,{label:"\u5546\u54C1\u539F\u4EF7",children:d.goodsAmount}),(0,n.jsx)(m.Z.Item,{label:"\u5E73\u53F0\u552E\u4EF7",children:d.platformAmount})]})})})]})};v.Z=j},46389:function(U,v,e){"use strict";var c=e(48971);v.Z={orderList:function(a){return a.isreport=!0,(0,c.WY)("/kitchen/api/order/order-detail-flow",{method:"Post",data:a})},srdTypeList:function(a){return(0,c.WY)("/kitchen/api/storetype/list",{method:"Post",data:a})},srdList:function(a){return(0,c.WY)("/kitchen/api/store/list",{method:"Post",data:a})},goodsList:function(a){return(0,c.WY)("/kitchen/api/goodes/list",{method:"Post",data:a})},goodsTypeList:function(a){return(0,c.WY)("/kitchen/api/goodstype/list",{method:"Post",data:a})},StartRefund:function(a){return(0,c.WY)("/kitchen/api/refund/StartOrderRefund",{method:"Post",params:a})},GetOrderDetails:function(a){return(0,c.WY)("/kitchen/api/Order/GetOrderDetails",{method:"Post",params:a})},GetFlowExport:function(a){return(0,c.WY)("/kitchen/api/Order/GetFlowExport",{method:"Post",data:a})},printsmallticket:function(a){return(0,c.WY)("/kitchen/api/printer/print-small-ticket",{method:"Post",data:a})}}}}]); diff --git a/dist/p__order__order-market-report.43e0b6fe.async.js b/dist/p__order__order-market-report.43e0b6fe.async.js new file mode 100644 index 0000000..2a18cfd --- /dev/null +++ b/dist/p__order__order-market-report.43e0b6fe.async.js @@ -0,0 +1 @@ +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[2097,1322,9464,1981,2869,7013,9719,2383],{14633:function(D){D.exports={"data-search-card":"data-search-card___22tRu","data-search-box":"data-search-box___1fl3A","search-btn-item":"search-btn-item___3ufuR","table-page":"table-page___331Uq","data-search-left":"data-search-left___29FCy","loading-card":"loading-card___oU1p6"}},87385:function(D,P,t){"use strict";t.r(P),t.d(P,{default:function(){return ne}});var we=t(14781),U=t(36138),Se=t(66456),B=t(64411),Me=t(58024),Z=t(91894),Oe=t(57663),R=t(71577),m=t(39428),De=t(34792),I=t(48086),C=t(3182),u=t(2824),Pe=t(20228),$=t(11382),Ze=t(14965),J=t(91774),Re=t(62999),E=t(54680),s=t(67294),K=t(78009),Q=t(90631),V=t(14633),l=t.n(V),X=t(30381),c=t.n(X),T=t(48971),w={getMarketReportList:function(h){return(0,T.WY)("/kitchen/api/report-statistics/cash-register-report",{method:"Post",data:h})},getOrgTree:function(){return(0,T.WY)("/kitchen/api/report-statistics/org-tree",{method:"GET"})},marketingReportExport:function(h){return(0,T.WY)("/kitchen/api/report-statistics/cash-register-report-export",{method:"Post",data:h})}},q=t(53667),_=t.n(q),r=t(85893),Ee=E.Z.TreeNode,ee=J.Z.RangePicker,te=[{title:"\u65F6\u95F4",dataIndex:"date",key:"date",width:170,align:"center",fixed:"left"},{title:"\u5E97\u94FA",dataIndex:"shopName",key:"shopName",width:170,align:"center",fixed:"left",filters:[{text:"\u56DB\u5DDD\u9ED1\u83E0\u841D\u79D1\u6280",value:"\u56DB\u5DDD\u9ED1\u83E0\u841D\u79D1\u6280"},{text:"\u56DB\u5DDD\u767D\u83E0\u841D\u79D1\u6280",value:"\u56DB\u5DDD\u767D\u83E0\u841D\u79D1\u6280"}],onFilter:function(h,y){return y.shopName.indexOf(h)===0}},{title:"\u8425\u6536",dataIndex:"revenue",key:"revenue",children:[{title:"\u8425\u4E1A\u989D",dataIndex:"turnover",key:"turnover",children:[{title:"\u6D41\u6C34",dataIndex:"revenueFlow",key:"revenueFlow",width:100,align:"center"},{title:"\u5B9E\u6536",dataIndex:"paidAmount",key:"paidAmount",width:100,align:"center"}]},{title:"\u4F18\u60E0\u660E\u7EC6",dataIndex:"discountDetails",key:"discountDetails",children:[{title:"\u4F1A\u5458\u4EF7",dataIndex:"discountMember",key:"discountMember",width:100,align:"center"},{title:"\u4F18\u60E0\u5238",dataIndex:"discountCoupon",key:"discountCoupon",width:100,align:"center"},{title:"\u6D3B\u52A8",dataIndex:"discountActivity",key:"discountActivity",width:100,align:"center"}]}]},{title:"\u5206\u7C7B\u8425\u6536",dataIndex:"classifiedRevenue",key:"classifiedRevenue",children:[{title:"\u5916\u5356\u8425\u4E1A\u989D",dataIndex:"takeOutTurnover",key:"takeOutTurnover",children:[{title:"\u5916\u5356\u8425\u6536",dataIndex:"takeOutRevenue",key:"takeOutRevenue",width:100,align:"center"},{title:"\u7F8E\u56E2\u5916\u5356",dataIndex:"meituanTakeout",key:"meituanTakeout",width:100,align:"center"},{title:"\u997F\u4E86\u4E48\u5916\u5356",dataIndex:"hungryTakeOut",key:"hungryTakeOut",width:100,align:"center"}]},{title:"\u98DF\u5802\u8425\u6536",dataIndex:"canteenRevenue",key:"canteenRevenue",children:[{title:"\u5802\u98DF\u6D41\u6C34",dataIndex:"freshWaterInTheHall",key:"freshWaterInTheHall",width:100,align:"center"},{title:"\u5802\u98DF\u5B9E\u6536",dataIndex:"paidInFood",key:"paidInFood",width:100,align:"center"}]},{title:"\u7B2C\u4E09\u65B9\u5E73\u53F0\u8425\u6536",dataIndex:"thirdPartyPlatformRevenue",key:"thirdPartyPlatformRevenue",children:[{title:"\u5927\u4F17\u70B9\u8BC4",dataIndex:"publicComments",key:"publicComments",width:100,align:"center"},{title:"\u53E3\u7891",dataIndex:"wordOfMouth",key:"wordOfMouth",width:100,align:"center"},{title:"\u6296\u97F3",dataIndex:"tiktok",key:"tiktok",width:100,align:"center"}]}]},{title:"\u5802\u98DF\u5355\u4EF7",dataIndex:"unitPriceCanteenFood",key:"unitPriceCanteenFood",children:[{title:"\u5BA2\u5355\u4EF7",dataIndex:"customerUnitPrice",key:"customerUnitPrice",children:[{title:"\u6D41\u6C34\u5355\u4EF7",dataIndex:"customerRevenueFlow",key:"customerRevenueFlow",width:100,align:"center"},{title:"\u5B9E\u6536\u5355\u4EF7",dataIndex:"customerPaidAmount",key:"customerPaidAmount",width:100,align:"center"}]},{title:"\u5355\u5355\u4EF7",dataIndex:"singleUnitPrice",key:"singleUnitPrice",children:[{title:"\u6D41\u6C34\u5355\u4EF7",dataIndex:"orderRevenueFlow",key:"orderRevenueFlow",width:100,align:"center"},{title:"\u5B9E\u6536\u5355\u4EF7",dataIndex:"orderPaidAmount",key:"orderPaidAmount",width:100,align:"center"}]}]},{title:"\u4EA4\u6613\u7B14\u6570",dataIndex:"numberOfTransactions",key:"numberOfTransactions",children:[{title:"\u73B0\u91D1",dataIndex:"sourceCashCount",key:"sourceCashCount",width:100,align:"center"},{title:"\u5FAE\u4FE1\u652F\u4ED8",dataIndex:"sourceWeChatCount",key:"sourceWeChatCount",width:100,align:"center"},{title:"\u5927\u4F17\u70B9\u8BC4",dataIndex:"numPublicComments",key:"numPublicComments",width:100,align:"center"},{title:"\u53E3\u7891",dataIndex:"numWordOfMouth",key:"numWordOfMouth",width:100,align:"center"},{title:"\u6296\u97F3",dataIndex:"numTiktok",key:"numTiktok",width:100,align:"center"},{title:"\u7F8E\u56E2\u5916\u5356",dataIndex:"numMeituanTakeout",key:"numMeituanTakeout",width:100,align:"center"},{title:"\u997F\u4E86\u4E48\u5916\u5356",dataIndex:"numHungryTakeOut",key:"numHungryTakeOut",width:100,align:"center"}]},{title:"\u6536\u5165\u6784\u6210",dataIndex:"revenueComposition",key:"revenueComposition",children:[{title:"\u6536\u5165\u6765\u6E90",dataIndex:"sourceOfIncome",key:"sourceOfIncome",children:[{title:"\u4F1A\u5458",dataIndex:"memberIncomeMoney",key:"memberIncomeMoney",width:100,align:"center"},{title:"\u975E\u4F1A\u5458",dataIndex:"nonMemberIncomeMoney",key:"nonMemberIncomeMoney",width:100,align:"center"},{title:"\u5916\u5356",dataIndex:"incomeTakeOut",key:"incomeTakeOut",width:100,align:"center"},{title:"\u56E2\u8D2D",dataIndex:"incomeGroupPurchase",key:"incomeGroupPurchase",width:100,align:"center"}]},{title:"\u6536\u5165\u7ED3\u6784",dataIndex:"revenueStructure",key:"revenueStructure",children:[{title:"\u5FAE\u4FE1\u652F\u4ED8",dataIndex:"sourceWeChatMoney",key:"sourceWeChatMoney",width:100,align:"center"},{title:"\u73B0\u91D1\u652F\u4ED8",dataIndex:"sourceCashMoney",key:"sourceCashMoney",width:100,align:"center"},{title:"\u5927\u4F17\u70B9\u8BC4",dataIndex:"incomePublicComments",key:"incomePublicComments",width:100,align:"center"},{title:"\u53E3\u7891",dataIndex:"incomeWordOfMouth",key:"incomeWordOfMouth",width:100,align:"center"},{title:"\u6296\u97F3",dataIndex:"incomeTiktok",key:"incomeTiktok",width:100,align:"center"},{title:"\u7F8E\u56E2\u5916\u5356",dataIndex:"incomeMeituan",key:"incomeMeituan",width:100,align:"center"},{title:"\u997F\u4E86\u4E48\u5916\u5356",dataIndex:"incomeHungry",key:"incomeHungry",width:100,align:"center"}]}]}],ae=function(){return(0,r.jsx)("div",{className:l()["loading-card"],children:(0,r.jsx)($.Z,{size:"large"})})};function ne(){var g=(0,s.useState)([]),h=(0,u.Z)(g,2),y=h[0],N=h[1],re=(0,s.useState)(1),j=(0,u.Z)(re,2),S=j[0],ie=j[1],de=(0,s.useState)(10),Y=(0,u.Z)(de,2),M=Y[0],oe=Y[1],se=(0,s.useState)(0),F=(0,u.Z)(se,2),le=F[0],ue=F[1],ce=(0,s.useState)([]),W=(0,u.Z)(ce,2),he=W[0],me=W[1],ge=(0,s.useState)(!1),A=(0,u.Z)(ge,2),fe=A[0],f=A[1],ve=(0,s.useState)([c()(c()(new Date(Date.now()-24*60*60*1e3*7)).format("YYYY-MM-DD 00:00:00")),c()(c()(new Date(Date.now())).format("YYYY-MM-DD 23:59:59"))]),H=(0,u.Z)(ve,2),v=H[0],ye=H[1],xe=(0,s.useState)(""),L=(0,u.Z)(xe,2),k=L[0],b=L[1];(0,s.useEffect)(function(){z()},[S,M,v]),(0,s.useEffect)(function(){Ie()},[]);var Ne=function(){var i=JSON.parse(JSON.stringify(y)),e={};y.forEach(function(a){Object.keys(a).forEach(function(n){n==="date"?e.date="\u5408\u8BA1":n=="shopName"?e.shopName="":typeof a[n]=="number"?(e[n]&&typeof e[n]=="number"||(e[n]=0),e[n]+=a[n]):e[n]="\u6682\u65E0\u7EDF\u8BA1"})}),i.push(e),N(i)},z=function(){var o=(0,C.Z)((0,m.Z)().mark(function i(){var e,a;return(0,m.Z)().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return e={startTime:v[0],endTime:v[1],current:S,pageSize:M},k.key&&(e.shopId=k.key),f(!0),d.next=5,w.getMarketReportList(e);case 5:a=d.sent,f(!1),a.statusCode===200?(N(a.data.data),ue(a.data.total)):I.default.error(a.errors||"\u83B7\u53D6\u8425\u9500\u62A5\u8868\u5931\u8D25");case 8:case"end":return d.stop()}},i)}));return function(){return o.apply(this,arguments)}}(),ke=function(i,e){ie(i),oe(e)},pe=function(){var o=(0,C.Z)((0,m.Z)().mark(function i(){var e,a,n,d,O,p,G;return(0,m.Z)().wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return e={startTime:v[0],endTime:v[1]},k.key&&(e.shopId=k.key),f(!0),x.next=5,w.marketingReportExport(e);case 5:a=x.sent,f(!1),a.statusCode===200?(n={},d=new Date,O="\u8425\u9500\u62A5\u8868-"+d.toLocaleString().replaceAll("/","-"),n.fileName=O,p=[],Object.keys(a.data[0]).forEach(function(Te){p.push(Te)}),console.log("sheetHeader",p),n.datas=[{sheetData:a.data,sheetName:O,sheetFilter:p,sheetHeader:["ID","\u65F6\u95F4","\u5E97\u94FA\u540D\u79F0","\u5E97\u94FAID","\u8425\u6536\u6D41\u6C34","\u5B9E\u9645\u8425\u6536","\u4F1A\u5458\u6298\u6263","\u4F18\u60E0\u5238\u6298\u6263","\u6D3B\u52A8\u6298\u6263","\u5BA2\u5355\u4EF7-\u6D41\u6C34\u5355\u4EF7","\u5BA2\u5355\u4EF7-\u5B9E\u6536\u5355\u4EF7","\u5355\u5355\u4EF7-\u603B\u6D41\u6C34","\u5355\u5355\u4EF7-\u603B\u5B9E\u6536","\u73B0\u91D1-\u4EA4\u6613\u7B14\u6570","\u73B0\u91D1\u6536\u5165","\u5FAE\u4FE1-\u4EA4\u6613\u7B14\u6570","\u5FAE\u4FE1\u6536\u5165","\u4F1A\u5458\u6536\u5165","\u975E\u4F1A\u5458\u6536\u5165"]}],G=new(_())(n),G.saveExcel()):I.default.error(a.errors||"\u5BFC\u51FA\u5931\u8D25");case 8:case"end":return x.stop()}},i)}));return function(){return o.apply(this,arguments)}}(),Ie=function(){var o=(0,C.Z)((0,m.Z)().mark(function i(){var e,a;return(0,m.Z)().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return f(!0),d.next=3,w.getOrgTree();case 3:e=d.sent,f(!1),e.statusCode===200?(a=e.data,Ce(a),me(a)):I.default.error(e.errors||"\u83B7\u53D6\u7EC4\u7EC7\u6811\u51FA\u9519");case 6:case"end":return d.stop()}},i)}));return function(){return o.apply(this,arguments)}}(),Ce=function o(i){i.forEach(function(e){e.children&&e.children.length>0?o(e.children):e.type===2||e.type===3?e.disabled=!1:e.disabled=!0})};return(0,r.jsxs)(K.ZP,{children:[fe?(0,r.jsx)(ae,{}):null,(0,r.jsx)(Z.Z,{className:l()["data-search-card"],children:(0,r.jsxs)("div",{className:l()["data-search-box"],children:[(0,r.jsxs)("div",{className:l()["data-search-left"],children:[(0,r.jsx)(ee,{className:l()["my-range-picker"],value:v,onChange:function(i,e){var a=[c()(c()(new Date(e[0])).format("YYYY-MM-DD 00:00:00")),c()(c()(new Date(e[1])).format("YYYY-MM-DD 23:59:59"))];ye(a)}}),(0,r.jsx)(E.Z,{style:{width:"300px",marginLeft:"50px"},dropdownStyle:{maxHeight:400,overflow:"auto"},treeData:he,onSelect:function(i,e){e.type===2||e===3?b(e):b("")},placeholder:"\u8BF7\u9009\u62E9\u7EC4\u7EC7\u67B6\u6784",treeDefaultExpandAll:!0})]}),(0,r.jsxs)("div",{className:l()["data-search-btns"],children:[(0,r.jsx)(R.Z,{type:"primary",icon:(0,r.jsx)(Q.Z,{}),size:"middle",onClick:pe,children:"\u4E0B\u8F7D"}),(0,r.jsx)(R.Z,{className:l()["search-btn-item"],type:"primary",onClick:z,children:"\u67E5\u8BE2"})]})]})}),(0,r.jsxs)(Z.Z,{className:l()["table-card"],children:[(0,r.jsx)(B.Z,{dataSource:y,columns:te,bordered:!0,sticky:!0,scroll:{x:1e3},pagination:!1}),(0,r.jsx)("div",{className:l()["table-page"],children:(0,r.jsx)(U.Z,{current:S,pageSize:M,total:le,onChange:ke})})]})]})}}}]); diff --git a/dist/p__order__order-market-report.9d98bafa.async.js b/dist/p__order__order-market-report.9d98bafa.async.js deleted file mode 100644 index a569167..0000000 --- a/dist/p__order__order-market-report.9d98bafa.async.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[2097,1322,9934,4407,6498,6090,274,6314],{14633:function(D){D.exports={"data-search-card":"data-search-card___22tRu","data-search-box":"data-search-box___1fl3A","search-btn-item":"search-btn-item___3ufuR","table-page":"table-page___331Uq","data-search-left":"data-search-left___29FCy","loading-card":"loading-card___oU1p6"}},87385:function(D,P,t){"use strict";t.r(P),t.d(P,{default:function(){return ne}});var we=t(14781),U=t(36138),Se=t(66456),B=t(64411),Me=t(58024),Z=t(91894),Oe=t(57663),R=t(71577),m=t(39428),De=t(34792),I=t(48086),C=t(3182),u=t(2824),Pe=t(20228),$=t(11382),Ze=t(14965),J=t(91774),Re=t(62999),E=t(54680),s=t(67294),K=t(78009),Q=t(90631),V=t(14633),l=t.n(V),X=t(30381),c=t.n(X),T=t(48971),w={getMarketReportList:function(h){return(0,T.WY)("/kitchen/api/report-statistics/cash-register-report",{method:"Post",data:h})},getOrgTree:function(){return(0,T.WY)("/kitchen/api/report-statistics/org-tree",{method:"GET"})},marketingReportExport:function(h){return(0,T.WY)("/kitchen/api/report-statistics/cash-register-report-export",{method:"Post",data:h})}},q=t(53667),_=t.n(q),r=t(85893),Ee=E.Z.TreeNode,ee=J.Z.RangePicker,te=[{title:"\u65F6\u95F4",dataIndex:"date",key:"date",width:170,align:"center",fixed:"left"},{title:"\u5E97\u94FA",dataIndex:"shopName",key:"shopName",width:170,align:"center",fixed:"left",filters:[{text:"\u56DB\u5DDD\u9ED1\u83E0\u841D\u79D1\u6280",value:"\u56DB\u5DDD\u9ED1\u83E0\u841D\u79D1\u6280"},{text:"\u56DB\u5DDD\u767D\u83E0\u841D\u79D1\u6280",value:"\u56DB\u5DDD\u767D\u83E0\u841D\u79D1\u6280"}],onFilter:function(h,y){return y.shopName.indexOf(h)===0}},{title:"\u8425\u6536",dataIndex:"revenue",key:"revenue",children:[{title:"\u8425\u4E1A\u989D",dataIndex:"turnover",key:"turnover",children:[{title:"\u6D41\u6C34",dataIndex:"revenueFlow",key:"revenueFlow",width:100,align:"center"},{title:"\u5B9E\u6536",dataIndex:"paidAmount",key:"paidAmount",width:100,align:"center"}]},{title:"\u4F18\u60E0\u660E\u7EC6",dataIndex:"discountDetails",key:"discountDetails",children:[{title:"\u4F1A\u5458\u4EF7",dataIndex:"discountMember",key:"discountMember",width:100,align:"center"},{title:"\u4F18\u60E0\u5238",dataIndex:"discountCoupon",key:"discountCoupon",width:100,align:"center"},{title:"\u6D3B\u52A8",dataIndex:"discountActivity",key:"discountActivity",width:100,align:"center"}]}]},{title:"\u5206\u7C7B\u8425\u6536",dataIndex:"classifiedRevenue",key:"classifiedRevenue",children:[{title:"\u5916\u5356\u8425\u4E1A\u989D",dataIndex:"takeOutTurnover",key:"takeOutTurnover",children:[{title:"\u5916\u5356\u8425\u6536",dataIndex:"takeOutRevenue",key:"takeOutRevenue",width:100,align:"center"},{title:"\u7F8E\u56E2\u5916\u5356",dataIndex:"meituanTakeout",key:"meituanTakeout",width:100,align:"center"},{title:"\u997F\u4E86\u4E48\u5916\u5356",dataIndex:"hungryTakeOut",key:"hungryTakeOut",width:100,align:"center"}]},{title:"\u98DF\u5802\u8425\u6536",dataIndex:"canteenRevenue",key:"canteenRevenue",children:[{title:"\u5802\u98DF\u6D41\u6C34",dataIndex:"freshWaterInTheHall",key:"freshWaterInTheHall",width:100,align:"center"},{title:"\u5802\u98DF\u5B9E\u6536",dataIndex:"paidInFood",key:"paidInFood",width:100,align:"center"}]},{title:"\u7B2C\u4E09\u65B9\u5E73\u53F0\u8425\u6536",dataIndex:"thirdPartyPlatformRevenue",key:"thirdPartyPlatformRevenue",children:[{title:"\u5927\u4F17\u70B9\u8BC4",dataIndex:"publicComments",key:"publicComments",width:100,align:"center"},{title:"\u53E3\u7891",dataIndex:"wordOfMouth",key:"wordOfMouth",width:100,align:"center"},{title:"\u6296\u97F3",dataIndex:"tiktok",key:"tiktok",width:100,align:"center"}]}]},{title:"\u5802\u98DF\u5355\u4EF7",dataIndex:"unitPriceCanteenFood",key:"unitPriceCanteenFood",children:[{title:"\u5BA2\u5355\u4EF7",dataIndex:"customerUnitPrice",key:"customerUnitPrice",children:[{title:"\u6D41\u6C34\u5355\u4EF7",dataIndex:"customerRevenueFlow",key:"customerRevenueFlow",width:100,align:"center"},{title:"\u5B9E\u6536\u5355\u4EF7",dataIndex:"customerPaidAmount",key:"customerPaidAmount",width:100,align:"center"}]},{title:"\u5355\u5355\u4EF7",dataIndex:"singleUnitPrice",key:"singleUnitPrice",children:[{title:"\u6D41\u6C34\u5355\u4EF7",dataIndex:"orderRevenueFlow",key:"orderRevenueFlow",width:100,align:"center"},{title:"\u5B9E\u6536\u5355\u4EF7",dataIndex:"orderPaidAmount",key:"orderPaidAmount",width:100,align:"center"}]}]},{title:"\u4EA4\u6613\u7B14\u6570",dataIndex:"numberOfTransactions",key:"numberOfTransactions",children:[{title:"\u73B0\u91D1",dataIndex:"sourceCashCount",key:"sourceCashCount",width:100,align:"center"},{title:"\u5FAE\u4FE1\u652F\u4ED8",dataIndex:"sourceWeChatCount",key:"sourceWeChatCount",width:100,align:"center"},{title:"\u5927\u4F17\u70B9\u8BC4",dataIndex:"numPublicComments",key:"numPublicComments",width:100,align:"center"},{title:"\u53E3\u7891",dataIndex:"numWordOfMouth",key:"numWordOfMouth",width:100,align:"center"},{title:"\u6296\u97F3",dataIndex:"numTiktok",key:"numTiktok",width:100,align:"center"},{title:"\u7F8E\u56E2\u5916\u5356",dataIndex:"numMeituanTakeout",key:"numMeituanTakeout",width:100,align:"center"},{title:"\u997F\u4E86\u4E48\u5916\u5356",dataIndex:"numHungryTakeOut",key:"numHungryTakeOut",width:100,align:"center"}]},{title:"\u6536\u5165\u6784\u6210",dataIndex:"revenueComposition",key:"revenueComposition",children:[{title:"\u6536\u5165\u6765\u6E90",dataIndex:"sourceOfIncome",key:"sourceOfIncome",children:[{title:"\u4F1A\u5458",dataIndex:"memberIncomeMoney",key:"memberIncomeMoney",width:100,align:"center"},{title:"\u975E\u4F1A\u5458",dataIndex:"nonMemberIncomeMoney",key:"nonMemberIncomeMoney",width:100,align:"center"},{title:"\u5916\u5356",dataIndex:"incomeTakeOut",key:"incomeTakeOut",width:100,align:"center"},{title:"\u56E2\u8D2D",dataIndex:"incomeGroupPurchase",key:"incomeGroupPurchase",width:100,align:"center"}]},{title:"\u6536\u5165\u7ED3\u6784",dataIndex:"revenueStructure",key:"revenueStructure",children:[{title:"\u5FAE\u4FE1\u652F\u4ED8",dataIndex:"sourceWeChatMoney",key:"sourceWeChatMoney",width:100,align:"center"},{title:"\u73B0\u91D1\u652F\u4ED8",dataIndex:"sourceCashMoney",key:"sourceCashMoney",width:100,align:"center"},{title:"\u5927\u4F17\u70B9\u8BC4",dataIndex:"incomePublicComments",key:"incomePublicComments",width:100,align:"center"},{title:"\u53E3\u7891",dataIndex:"incomeWordOfMouth",key:"incomeWordOfMouth",width:100,align:"center"},{title:"\u6296\u97F3",dataIndex:"incomeTiktok",key:"incomeTiktok",width:100,align:"center"},{title:"\u7F8E\u56E2\u5916\u5356",dataIndex:"incomeMeituan",key:"incomeMeituan",width:100,align:"center"},{title:"\u997F\u4E86\u4E48\u5916\u5356",dataIndex:"incomeHungry",key:"incomeHungry",width:100,align:"center"}]}]}],ae=function(){return(0,r.jsx)("div",{className:l()["loading-card"],children:(0,r.jsx)($.Z,{size:"large"})})};function ne(){var g=(0,s.useState)([]),h=(0,u.Z)(g,2),y=h[0],N=h[1],re=(0,s.useState)(1),j=(0,u.Z)(re,2),S=j[0],ie=j[1],de=(0,s.useState)(10),Y=(0,u.Z)(de,2),M=Y[0],oe=Y[1],se=(0,s.useState)(0),F=(0,u.Z)(se,2),le=F[0],ue=F[1],ce=(0,s.useState)([]),W=(0,u.Z)(ce,2),he=W[0],me=W[1],ge=(0,s.useState)(!1),A=(0,u.Z)(ge,2),fe=A[0],f=A[1],ve=(0,s.useState)([c()(c()(new Date(Date.now()-24*60*60*1e3*7)).format("YYYY-MM-DD 00:00:00")),c()(c()(new Date(Date.now())).format("YYYY-MM-DD 23:59:59"))]),H=(0,u.Z)(ve,2),v=H[0],ye=H[1],xe=(0,s.useState)(""),L=(0,u.Z)(xe,2),k=L[0],b=L[1];(0,s.useEffect)(function(){z()},[S,M,v]),(0,s.useEffect)(function(){Ie()},[]);var Ne=function(){var i=JSON.parse(JSON.stringify(y)),e={};y.forEach(function(a){Object.keys(a).forEach(function(n){n==="date"?e.date="\u5408\u8BA1":n=="shopName"?e.shopName="":typeof a[n]=="number"?(e[n]&&typeof e[n]=="number"||(e[n]=0),e[n]+=a[n]):e[n]="\u6682\u65E0\u7EDF\u8BA1"})}),i.push(e),N(i)},z=function(){var o=(0,C.Z)((0,m.Z)().mark(function i(){var e,a;return(0,m.Z)().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return e={startTime:v[0],endTime:v[1],current:S,pageSize:M},k.key&&(e.shopId=k.key),f(!0),d.next=5,w.getMarketReportList(e);case 5:a=d.sent,f(!1),a.statusCode===200?(N(a.data.data),ue(a.data.total)):I.default.error(a.errors||"\u83B7\u53D6\u8425\u9500\u62A5\u8868\u5931\u8D25");case 8:case"end":return d.stop()}},i)}));return function(){return o.apply(this,arguments)}}(),ke=function(i,e){ie(i),oe(e)},pe=function(){var o=(0,C.Z)((0,m.Z)().mark(function i(){var e,a,n,d,O,p,G;return(0,m.Z)().wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return e={startTime:v[0],endTime:v[1]},k.key&&(e.shopId=k.key),f(!0),x.next=5,w.marketingReportExport(e);case 5:a=x.sent,f(!1),a.statusCode===200?(n={},d=new Date,O="\u8425\u9500\u62A5\u8868-"+d.toLocaleString().replaceAll("/","-"),n.fileName=O,p=[],Object.keys(a.data[0]).forEach(function(Te){p.push(Te)}),console.log("sheetHeader",p),n.datas=[{sheetData:a.data,sheetName:O,sheetFilter:p,sheetHeader:["ID","\u65F6\u95F4","\u5E97\u94FA\u540D\u79F0","\u5E97\u94FAID","\u8425\u6536\u6D41\u6C34","\u5B9E\u9645\u8425\u6536","\u4F1A\u5458\u6298\u6263","\u4F18\u60E0\u5238\u6298\u6263","\u6D3B\u52A8\u6298\u6263","\u5BA2\u5355\u4EF7-\u6D41\u6C34\u5355\u4EF7","\u5BA2\u5355\u4EF7-\u5B9E\u6536\u5355\u4EF7","\u5355\u5355\u4EF7-\u603B\u6D41\u6C34","\u5355\u5355\u4EF7-\u603B\u5B9E\u6536","\u73B0\u91D1-\u4EA4\u6613\u7B14\u6570","\u73B0\u91D1\u6536\u5165","\u5FAE\u4FE1-\u4EA4\u6613\u7B14\u6570","\u5FAE\u4FE1\u6536\u5165","\u4F1A\u5458\u6536\u5165","\u975E\u4F1A\u5458\u6536\u5165"]}],G=new(_())(n),G.saveExcel()):I.default.error(a.errors||"\u5BFC\u51FA\u5931\u8D25");case 8:case"end":return x.stop()}},i)}));return function(){return o.apply(this,arguments)}}(),Ie=function(){var o=(0,C.Z)((0,m.Z)().mark(function i(){var e,a;return(0,m.Z)().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return f(!0),d.next=3,w.getOrgTree();case 3:e=d.sent,f(!1),e.statusCode===200?(a=e.data,Ce(a),me(a)):I.default.error(e.errors||"\u83B7\u53D6\u7EC4\u7EC7\u6811\u51FA\u9519");case 6:case"end":return d.stop()}},i)}));return function(){return o.apply(this,arguments)}}(),Ce=function o(i){i.forEach(function(e){e.children&&e.children.length>0?o(e.children):e.type===2||e.type===3?e.disabled=!1:e.disabled=!0})};return(0,r.jsxs)(K.ZP,{children:[fe?(0,r.jsx)(ae,{}):null,(0,r.jsx)(Z.Z,{className:l()["data-search-card"],children:(0,r.jsxs)("div",{className:l()["data-search-box"],children:[(0,r.jsxs)("div",{className:l()["data-search-left"],children:[(0,r.jsx)(ee,{className:l()["my-range-picker"],value:v,onChange:function(i,e){var a=[c()(c()(new Date(e[0])).format("YYYY-MM-DD 00:00:00")),c()(c()(new Date(e[1])).format("YYYY-MM-DD 23:59:59"))];ye(a)}}),(0,r.jsx)(E.Z,{style:{width:"300px",marginLeft:"50px"},dropdownStyle:{maxHeight:400,overflow:"auto"},treeData:he,onSelect:function(i,e){e.type===2||e===3?b(e):b("")},placeholder:"\u8BF7\u9009\u62E9\u7EC4\u7EC7\u67B6\u6784",treeDefaultExpandAll:!0})]}),(0,r.jsxs)("div",{className:l()["data-search-btns"],children:[(0,r.jsx)(R.Z,{type:"primary",icon:(0,r.jsx)(Q.Z,{}),size:"middle",onClick:pe,children:"\u4E0B\u8F7D"}),(0,r.jsx)(R.Z,{className:l()["search-btn-item"],type:"primary",onClick:z,children:"\u67E5\u8BE2"})]})]})}),(0,r.jsxs)(Z.Z,{className:l()["table-card"],children:[(0,r.jsx)(B.Z,{dataSource:y,columns:te,bordered:!0,sticky:!0,scroll:{x:1e3},pagination:!1}),(0,r.jsx)("div",{className:l()["table-page"],children:(0,r.jsx)(U.Z,{current:S,pageSize:M,total:le,onChange:ke})})]})]})}}}]); diff --git a/dist/p__order__order-member-statement.fa0a7168.async.js b/dist/p__order__order-member-statement.172548ce.async.js similarity index 99% rename from dist/p__order__order-member-statement.fa0a7168.async.js rename to dist/p__order__order-member-statement.172548ce.async.js index de79d36..10130e2 100644 --- a/dist/p__order__order-member-statement.fa0a7168.async.js +++ b/dist/p__order__order-member-statement.172548ce.async.js @@ -1 +1 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[6763],{18974:function(C){C.exports={"data-search-card":"data-search-card___fc1xW","data-search-row":"data-search-row___FtrAv","data-search-item":"data-search-item___g5H_b","data-search-prefix":"data-search-prefix___bxf2p","search-btn-item":"search-btn-item___1lD6h","data-search-day":"data-search-day___1AMa5","search-day-selected":"search-day-selected___1rdk5","data-search-sufixx":"data-search-sufixx___3Ht7c","loading-card":"loading-card___2AdV6","member-card-box":"member-card-box___1GV0Y","member-card-prefix":"member-card-prefix___3LNuc","member-card-sufixx":"member-card-sufixx___AFiDV","new-member":"new-member___2TlTQ","repur-chase":"repur-chase___1cYei","member-card":"member-card___3syWs","member-row-common":"member-row-common___1sZlj"}},5032:function(C){C.exports={"data-search-card":"data-search-card___M6nke","data-search-row":"data-search-row___3PMu2","data-search-item":"data-search-item___2UlXn","data-search-prefix":"data-search-prefix___icpVX","search-btn-item":"search-btn-item___1D2io","data-search-day":"data-search-day___2meX3","search-day-selected":"search-day-selected___X0xyP","data-search-sufixx":"data-search-sufixx___2M50P","loading-card":"loading-card___Et78m","member-card-box":"member-card-box___2eZXL","member-card-prefix":"member-card-prefix___1y0yw","member-card-sufixx":"member-card-sufixx___2v95D","new-member":"new-member___V3uRz","repur-chase":"repur-chase___1mB1Y","member-card":"member-card___5_ExE","member-row-common":"member-row-common___2OrNr"}},97632:function(C,T,e){"use strict";e.d(T,{Z:function(){return t}});var q=e(58024),j=e(91894),ee=e(13062),E=e(71230),ae=e(57663),g=e(71577),M=e(62999),U=e(54680),S=e(89032),v=e(15746),x=e(20228),l=e(11382),W=e(14965),N=e(91774),K=e(67294),m=e(18974),r=e.n(m),s=e(30381),_=e.n(s),n=e(85893),b=N.Z.RangePicker;function t(c){var y=function(){return(0,n.jsx)("div",{className:r()["loading-card"],children:(0,n.jsx)(l.Z,{size:"large"})})};return(0,n.jsxs)("div",{children:[c.showLoading?(0,n.jsx)(y,{}):null,(0,n.jsx)(j.Z,{className:r()["data-search-card"],children:(0,n.jsxs)(E.Z,{gutter:20,className:r()["data-search-row"],children:[(0,n.jsx)(v.Z,{xs:24,sm:24,md:24,lg:12,xl:6,className:r()["data-search-item"],children:(0,n.jsx)(b,{size:"middle",className:r()["data-search-sufixx"],value:c.timeRange,onChange:function(Z,f){var I=[_()(_()(new Date(f[0])).format("YYYY-MM-DD 00:00:00")),_()(_()(new Date(f[1])).format("YYYY-MM-DD 23:59:59"))];c.onTimePickerChange(I)}})}),(0,n.jsxs)(v.Z,{xs:24,sm:24,md:24,lg:12,xl:6,className:r()["data-search-item"],children:[(0,n.jsx)("div",{className:c.searchDayIndex===0?"".concat(r()["data-search-day"]," ").concat(r()["search-day-selected"]):"".concat(r()["data-search-day"]),onClick:function(){return c.onChangeTimeIndex(0)},children:"\u4ECA\u5929"}),(0,n.jsx)("div",{className:c.searchDayIndex===1?"".concat(r()["data-search-day"]," ").concat(r()["search-day-selected"]):"".concat(r()["data-search-day"]),onClick:function(){return c.onChangeTimeIndex(1)},children:"\u6628\u5929"}),(0,n.jsx)("div",{className:c.searchDayIndex===2?"".concat(r()["data-search-day"]," ").concat(r()["search-day-selected"]):"".concat(r()["data-search-day"]),onClick:function(){return c.onChangeTimeIndex(2)},children:"\u8FD17\u5929"}),(0,n.jsx)("div",{className:c.searchDayIndex===3?"".concat(r()["data-search-day"]," ").concat(r()["search-day-selected"]):"".concat(r()["data-search-day"]),onClick:function(){return c.onChangeTimeIndex(3)},children:"\u8FD130\u5929"})]}),(0,n.jsx)(v.Z,{xs:24,sm:24,md:24,lg:12,xl:6,className:r()["data-search-item"],children:(0,n.jsx)(U.Z,{className:r()["data-search-sufixx"],dropdownStyle:{maxHeight:400,overflow:"auto"},value:c.currentOrg.title,treeData:c.orgTree,onSelect:function(Z,f){f.type===2||f===3?c.onCurrentOrgChange(f):c.onCurrentOrgChange("")},placeholder:"\u8BF7\u9009\u62E9\u7EC4\u7EC7\u67B6\u6784",treeDefaultExpandAll:!0})}),(0,n.jsx)(v.Z,{xs:24,sm:24,md:12,lg:12,xl:6,className:r()["data-search-item"],children:(0,n.jsxs)("div",{className:r()["data-search-btns"],children:[(0,n.jsx)(g.Z,{className:r()["search-btn-item"],onClick:c.onResetSearch,children:"\u91CD\u7F6E"}),(0,n.jsx)(g.Z,{className:r()["search-btn-item"],type:"primary",onClick:c.onQueryBtn,children:"\u67E5\u8BE2"})]})})]})})]})}},15111:function(C,T,e){"use strict";e.r(T),e.d(T,{default:function(){return c}});var q=e(13062),j=e(71230),ee=e(89032),E=e(15746),ae=e(58024),g=e(91894),M=e(39428),U=e(34792),S=e(48086),v=e(3182),x=e(2824),l=e(67294),W=e(78009),N=e(97632),K=e(5032),m=e.n(K),r=e(30381),s=e.n(r),_=e(48971),n={getOrgTree:function(){return(0,_.WY)("/kitchen/api/report-statistics/org-tree",{method:"GET"})},getMemberReport:function(u){return(0,_.WY)("/kitchen/api/report-statistics/user-report",{method:"POST",data:u})}},b=e(15916),t=e(85893);function c(){var y=(0,l.useState)(0),u=(0,x.Z)(y,2),Z=u[0],f=u[1],I=(0,l.useState)([s()(s()(new Date(Date.now())).format("YYYY-MM-DD 00:00:00")),s()(s()(new Date(Date.now())).format("YYYY-MM-DD 23:59:59"))]),p=(0,x.Z)(I,2),w=p[0],F=p[1],re=(0,l.useState)([]),V=(0,x.Z)(re,2),te=V[0],se=V[1],ne=(0,l.useState)(!1),z=(0,x.Z)(ne,2),ce=z[0],R=z[1],de=(0,l.useState)(""),G=(0,x.Z)(de,2),B=G[0],X=G[1],oe=(0,l.useState)({userCount:0,newAddUser:[],repurChase:[]}),Q=(0,x.Z)(oe,2),A=Q[0],me=Q[1],ie=(0,l.useState)(0),H=(0,x.Z)(ie,2),le=H[0],ue=H[1],he=(0,l.useState)(0),$=(0,x.Z)(he,2),xe=$[0],fe=$[1],O=null,P=null,De=function(d){f(d);var a=[];switch(d){case 0:a=[s()(s()(new Date(Date.now())).format("YYYY-MM-DD 00:00:00")),s()(s()(new Date(Date.now())).format("YYYY-MM-DD 23:59:59"))];break;case 1:a=[s()(s()(new Date(Date.now()-24*60*60*1e3)).format("YYYY-MM-DD 00:00:00")),s()(s()(new Date(Date.now()-24*60*60*1e3)).format("YYYY-MM-DD 23:59:59"))];break;case 2:a=[s()(s()(new Date(Date.now()-24*60*60*1e3*7)).format("YYYY-MM-DD 00:00:00")),s()(s()(new Date(Date.now())).format("YYYY-MM-DD 23:59:59"))];break;case 3:a=[s()(s()(new Date(Date.now()-24*60*60*1e3*30)).format("YYYY-MM-DD 00:00:00")),s()(s()(new Date(Date.now())).format("YYYY-MM-DD 23:59:59"))];break}F(a)},ve=function(){var h=(0,v.Z)((0,M.Z)().mark(function d(){var a,o;return(0,M.Z)().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return R(!0),i.next=3,n.getOrgTree();case 3:a=i.sent,R(!1),a.statusCode===200?(o=a.data,_e(o),se(o)):S.default.error(a.errors||"\u83B7\u53D6\u7EC4\u7EC7\u6811\u51FA\u9519");case 6:case"end":return i.stop()}},d)}));return function(){return h.apply(this,arguments)}}(),_e=function h(d){d.forEach(function(a){a.children&&a.children.length>0?h(a.children):a.type===2||a.type===3?a.disabled=!1:a.disabled=!0})},J=function(){var h=(0,v.Z)((0,M.Z)().mark(function d(){var a,o,D,i;return(0,M.Z)().wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:return a={shopIds:[B.key],startTime:w[0],endTime:w[1]},B.key||delete a.shopIds,R(!0),Y.next=5,n.getMemberReport(a);case 5:o=Y.sent,R(!1),o.statusCode===200?(D=0,i=0,o.data.newAddUser.forEach(function(L){D+=L.userValue}),o.data.repurChase.forEach(function(L){i+=L.userValue}),ue(D),fe(i),me(o.data)):S.default.error(o.errors||"\u83B7\u53D6\u4F1A\u5458\u62A5\u8868\u5931\u8D25");case 8:case"end":return Y.stop()}},d)}));return function(){return h.apply(this,arguments)}}(),ge=function(){var d=document.getElementById("new-member");O||(O=b.S1(d));var a=[],o=[];A.newAddUser.forEach(function(i){var k=new Date(i.userKey);a.push(k.toLocaleDateString()),o.push(i.userValue)});var D={title:{text:"\u65B0\u589E\u4F1A\u5458"},tooltip:{trigger:"axis"},toolbox:{feature:{saveAsImage:{}}},xAxis:{type:"category",data:a},yAxis:{type:"value"},series:[{data:o,type:"bar"}]};O.setOption(D)},Ce=function(){var d=document.getElementById("repur-chase");P||(P=b.S1(d));var a=[],o=[];A.repurChase.forEach(function(i){a.push(i.userKey),o.push(i.userValue)});var D={title:{text:"\u590D\u8D2D\u6B21\u6570"},tooltip:{trigger:"axis",axisPointer:{label:{show:!0,formatter:"\u590D\u8D2D{value}\u6B21"}}},toolbox:{feature:{saveAsImage:{}}},xAxis:{type:"category",data:a},yAxis:{type:"value"},series:[{data:o,type:"line",smooth:!0}]};P.setOption(D)},Ee=function(){X("")},Me=function(d){X(d)},ye=function(d){F(d)};return(0,l.useEffect)(function(){ve(),J()},[]),(0,l.useEffect)(function(){ge(),Ce(),window.onresize=function(){O&&P&&(O.resize(),P.resize())}},[A]),(0,t.jsxs)(W.ZP,{children:[(0,t.jsx)(N.Z,{orgTree:te,timeRange:w,searchDayIndex:Z,currentOrg:B,showLoading:ce,onTimePickerChange:ye,onChangeTimeIndex:De,onCurrentOrgChange:Me,onResetSearch:Ee,onQueryBtn:J}),(0,t.jsxs)(j.Z,{gutter:10,className:m()["member-row-common"],children:[(0,t.jsx)(E.Z,{xs:24,sm:24,md:24,lg:8,xl:6,children:(0,t.jsxs)(g.Z,{className:m()["member-card"],children:[(0,t.jsxs)("div",{className:m()["member-card-box"],children:[(0,t.jsx)("div",{className:m()["member-card-prefix"],children:"\u4F1A\u5458\u603B\u91CF"}),(0,t.jsx)("div",{className:m()["member-card-sufixx"],children:A.userCount})]}),(0,t.jsxs)("div",{className:m()["member-card-box"],children:[(0,t.jsx)("div",{className:m()["member-card-prefix"],children:"\u65B0\u589E\u4F1A\u5458"}),(0,t.jsx)("div",{className:m()["member-card-sufixx"],children:le})]}),(0,t.jsxs)("div",{className:m()["member-card-box"],children:[(0,t.jsx)("div",{className:m()["member-card-prefix"],children:"\u590D\u8D2D\u6570\u91CF"}),(0,t.jsx)("div",{className:m()["member-card-sufixx"],children:xe})]})]})}),(0,t.jsx)(E.Z,{xs:24,sm:24,md:24,lg:16,xl:18,children:(0,t.jsx)(g.Z,{children:(0,t.jsx)("div",{id:"repur-chase",className:m()["repur-chase"]})})})]}),(0,t.jsx)(j.Z,{children:(0,t.jsx)(E.Z,{xs:24,sm:24,md:24,lg:24,xl:24,children:(0,t.jsx)(g.Z,{children:(0,t.jsx)("div",{id:"new-member",className:m()["new-member"]})})})})]})}}}]); +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[6763],{18974:function(C){C.exports={"data-search-card":"data-search-card___fc1xW","data-search-row":"data-search-row___FtrAv","data-search-item":"data-search-item___g5H_b","data-search-prefix":"data-search-prefix___bxf2p","search-btn-item":"search-btn-item___1lD6h","data-search-day":"data-search-day___1AMa5","search-day-selected":"search-day-selected___1rdk5","data-search-sufixx":"data-search-sufixx___3Ht7c","loading-card":"loading-card___2AdV6","member-card-box":"member-card-box___1GV0Y","member-card-prefix":"member-card-prefix___3LNuc","member-card-sufixx":"member-card-sufixx___AFiDV","new-member":"new-member___2TlTQ","repur-chase":"repur-chase___1cYei","member-card":"member-card___3syWs","member-row-common":"member-row-common___1sZlj"}},5032:function(C){C.exports={"data-search-card":"data-search-card___M6nke","data-search-row":"data-search-row___3PMu2","data-search-item":"data-search-item___2UlXn","data-search-prefix":"data-search-prefix___icpVX","search-btn-item":"search-btn-item___1D2io","data-search-day":"data-search-day___2meX3","search-day-selected":"search-day-selected___X0xyP","data-search-sufixx":"data-search-sufixx___2M50P","loading-card":"loading-card___Et78m","member-card-box":"member-card-box___2eZXL","member-card-prefix":"member-card-prefix___1y0yw","member-card-sufixx":"member-card-sufixx___2v95D","new-member":"new-member___V3uRz","repur-chase":"repur-chase___1mB1Y","member-card":"member-card___5_ExE","member-row-common":"member-row-common___2OrNr"}},97632:function(C,T,e){"use strict";e.d(T,{Z:function(){return t}});var q=e(58024),j=e(91894),ee=e(13062),E=e(71230),ae=e(57663),g=e(71577),M=e(62999),U=e(54680),S=e(89032),v=e(15746),x=e(20228),l=e(11382),W=e(14965),N=e(91774),K=e(67294),m=e(18974),r=e.n(m),s=e(30381),_=e.n(s),n=e(85893),b=N.Z.RangePicker;function t(c){var y=function(){return(0,n.jsx)("div",{className:r()["loading-card"],children:(0,n.jsx)(l.Z,{size:"large"})})};return(0,n.jsxs)("div",{children:[c.showLoading?(0,n.jsx)(y,{}):null,(0,n.jsx)(j.Z,{className:r()["data-search-card"],children:(0,n.jsxs)(E.Z,{gutter:20,className:r()["data-search-row"],children:[(0,n.jsx)(v.Z,{xs:24,sm:24,md:24,lg:12,xl:6,className:r()["data-search-item"],children:(0,n.jsx)(b,{size:"middle",className:r()["data-search-sufixx"],value:c.timeRange,onChange:function(Z,f){var I=[_()(_()(new Date(f[0])).format("YYYY-MM-DD 00:00:00")),_()(_()(new Date(f[1])).format("YYYY-MM-DD 23:59:59"))];c.onTimePickerChange(I)}})}),(0,n.jsxs)(v.Z,{xs:24,sm:24,md:24,lg:12,xl:6,className:r()["data-search-item"],children:[(0,n.jsx)("div",{className:c.searchDayIndex===0?"".concat(r()["data-search-day"]," ").concat(r()["search-day-selected"]):"".concat(r()["data-search-day"]),onClick:function(){return c.onChangeTimeIndex(0)},children:"\u4ECA\u5929"}),(0,n.jsx)("div",{className:c.searchDayIndex===1?"".concat(r()["data-search-day"]," ").concat(r()["search-day-selected"]):"".concat(r()["data-search-day"]),onClick:function(){return c.onChangeTimeIndex(1)},children:"\u6628\u5929"}),(0,n.jsx)("div",{className:c.searchDayIndex===2?"".concat(r()["data-search-day"]," ").concat(r()["search-day-selected"]):"".concat(r()["data-search-day"]),onClick:function(){return c.onChangeTimeIndex(2)},children:"\u8FD17\u5929"}),(0,n.jsx)("div",{className:c.searchDayIndex===3?"".concat(r()["data-search-day"]," ").concat(r()["search-day-selected"]):"".concat(r()["data-search-day"]),onClick:function(){return c.onChangeTimeIndex(3)},children:"\u8FD130\u5929"})]}),(0,n.jsx)(v.Z,{xs:24,sm:24,md:24,lg:12,xl:6,className:r()["data-search-item"],children:(0,n.jsx)(U.Z,{className:r()["data-search-sufixx"],dropdownStyle:{maxHeight:400,overflow:"auto"},value:c.currentOrg.title,treeData:c.orgTree,onSelect:function(Z,f){f.type===2||f===3?c.onCurrentOrgChange(f):c.onCurrentOrgChange("")},placeholder:"\u8BF7\u9009\u62E9\u7EC4\u7EC7\u67B6\u6784",treeDefaultExpandAll:!0})}),(0,n.jsx)(v.Z,{xs:24,sm:24,md:12,lg:12,xl:6,className:r()["data-search-item"],children:(0,n.jsxs)("div",{className:r()["data-search-btns"],children:[(0,n.jsx)(g.Z,{className:r()["search-btn-item"],onClick:c.onResetSearch,children:"\u91CD\u7F6E"}),(0,n.jsx)(g.Z,{className:r()["search-btn-item"],type:"primary",onClick:c.onQueryBtn,children:"\u67E5\u8BE2"})]})})]})})]})}},15111:function(C,T,e){"use strict";e.r(T),e.d(T,{default:function(){return c}});var q=e(13062),j=e(71230),ee=e(89032),E=e(15746),ae=e(58024),g=e(91894),M=e(39428),U=e(34792),S=e(48086),v=e(3182),x=e(2824),l=e(67294),W=e(78009),N=e(97632),K=e(5032),m=e.n(K),r=e(30381),s=e.n(r),_=e(48971),n={getOrgTree:function(){return(0,_.WY)("/kitchen/api/report-statistics/org-tree",{method:"GET"})},getMemberReport:function(u){return(0,_.WY)("/kitchen/api/report-statistics/user-report",{method:"POST",data:u})}},b=e(72866),t=e(85893);function c(){var y=(0,l.useState)(0),u=(0,x.Z)(y,2),Z=u[0],f=u[1],I=(0,l.useState)([s()(s()(new Date(Date.now())).format("YYYY-MM-DD 00:00:00")),s()(s()(new Date(Date.now())).format("YYYY-MM-DD 23:59:59"))]),p=(0,x.Z)(I,2),w=p[0],F=p[1],re=(0,l.useState)([]),V=(0,x.Z)(re,2),te=V[0],se=V[1],ne=(0,l.useState)(!1),z=(0,x.Z)(ne,2),ce=z[0],R=z[1],de=(0,l.useState)(""),G=(0,x.Z)(de,2),B=G[0],X=G[1],oe=(0,l.useState)({userCount:0,newAddUser:[],repurChase:[]}),Q=(0,x.Z)(oe,2),A=Q[0],me=Q[1],ie=(0,l.useState)(0),H=(0,x.Z)(ie,2),le=H[0],ue=H[1],he=(0,l.useState)(0),$=(0,x.Z)(he,2),xe=$[0],fe=$[1],O=null,P=null,De=function(d){f(d);var a=[];switch(d){case 0:a=[s()(s()(new Date(Date.now())).format("YYYY-MM-DD 00:00:00")),s()(s()(new Date(Date.now())).format("YYYY-MM-DD 23:59:59"))];break;case 1:a=[s()(s()(new Date(Date.now()-24*60*60*1e3)).format("YYYY-MM-DD 00:00:00")),s()(s()(new Date(Date.now()-24*60*60*1e3)).format("YYYY-MM-DD 23:59:59"))];break;case 2:a=[s()(s()(new Date(Date.now()-24*60*60*1e3*7)).format("YYYY-MM-DD 00:00:00")),s()(s()(new Date(Date.now())).format("YYYY-MM-DD 23:59:59"))];break;case 3:a=[s()(s()(new Date(Date.now()-24*60*60*1e3*30)).format("YYYY-MM-DD 00:00:00")),s()(s()(new Date(Date.now())).format("YYYY-MM-DD 23:59:59"))];break}F(a)},ve=function(){var h=(0,v.Z)((0,M.Z)().mark(function d(){var a,o;return(0,M.Z)().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return R(!0),i.next=3,n.getOrgTree();case 3:a=i.sent,R(!1),a.statusCode===200?(o=a.data,_e(o),se(o)):S.default.error(a.errors||"\u83B7\u53D6\u7EC4\u7EC7\u6811\u51FA\u9519");case 6:case"end":return i.stop()}},d)}));return function(){return h.apply(this,arguments)}}(),_e=function h(d){d.forEach(function(a){a.children&&a.children.length>0?h(a.children):a.type===2||a.type===3?a.disabled=!1:a.disabled=!0})},J=function(){var h=(0,v.Z)((0,M.Z)().mark(function d(){var a,o,D,i;return(0,M.Z)().wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:return a={shopIds:[B.key],startTime:w[0],endTime:w[1]},B.key||delete a.shopIds,R(!0),Y.next=5,n.getMemberReport(a);case 5:o=Y.sent,R(!1),o.statusCode===200?(D=0,i=0,o.data.newAddUser.forEach(function(L){D+=L.userValue}),o.data.repurChase.forEach(function(L){i+=L.userValue}),ue(D),fe(i),me(o.data)):S.default.error(o.errors||"\u83B7\u53D6\u4F1A\u5458\u62A5\u8868\u5931\u8D25");case 8:case"end":return Y.stop()}},d)}));return function(){return h.apply(this,arguments)}}(),ge=function(){var d=document.getElementById("new-member");O||(O=b.S1(d));var a=[],o=[];A.newAddUser.forEach(function(i){var k=new Date(i.userKey);a.push(k.toLocaleDateString()),o.push(i.userValue)});var D={title:{text:"\u65B0\u589E\u4F1A\u5458"},tooltip:{trigger:"axis"},toolbox:{feature:{saveAsImage:{}}},xAxis:{type:"category",data:a},yAxis:{type:"value"},series:[{data:o,type:"bar"}]};O.setOption(D)},Ce=function(){var d=document.getElementById("repur-chase");P||(P=b.S1(d));var a=[],o=[];A.repurChase.forEach(function(i){a.push(i.userKey),o.push(i.userValue)});var D={title:{text:"\u590D\u8D2D\u6B21\u6570"},tooltip:{trigger:"axis",axisPointer:{label:{show:!0,formatter:"\u590D\u8D2D{value}\u6B21"}}},toolbox:{feature:{saveAsImage:{}}},xAxis:{type:"category",data:a},yAxis:{type:"value"},series:[{data:o,type:"line",smooth:!0}]};P.setOption(D)},Ee=function(){X("")},Me=function(d){X(d)},ye=function(d){F(d)};return(0,l.useEffect)(function(){ve(),J()},[]),(0,l.useEffect)(function(){ge(),Ce(),window.onresize=function(){O&&P&&(O.resize(),P.resize())}},[A]),(0,t.jsxs)(W.ZP,{children:[(0,t.jsx)(N.Z,{orgTree:te,timeRange:w,searchDayIndex:Z,currentOrg:B,showLoading:ce,onTimePickerChange:ye,onChangeTimeIndex:De,onCurrentOrgChange:Me,onResetSearch:Ee,onQueryBtn:J}),(0,t.jsxs)(j.Z,{gutter:10,className:m()["member-row-common"],children:[(0,t.jsx)(E.Z,{xs:24,sm:24,md:24,lg:8,xl:6,children:(0,t.jsxs)(g.Z,{className:m()["member-card"],children:[(0,t.jsxs)("div",{className:m()["member-card-box"],children:[(0,t.jsx)("div",{className:m()["member-card-prefix"],children:"\u4F1A\u5458\u603B\u91CF"}),(0,t.jsx)("div",{className:m()["member-card-sufixx"],children:A.userCount})]}),(0,t.jsxs)("div",{className:m()["member-card-box"],children:[(0,t.jsx)("div",{className:m()["member-card-prefix"],children:"\u65B0\u589E\u4F1A\u5458"}),(0,t.jsx)("div",{className:m()["member-card-sufixx"],children:le})]}),(0,t.jsxs)("div",{className:m()["member-card-box"],children:[(0,t.jsx)("div",{className:m()["member-card-prefix"],children:"\u590D\u8D2D\u6570\u91CF"}),(0,t.jsx)("div",{className:m()["member-card-sufixx"],children:xe})]})]})}),(0,t.jsx)(E.Z,{xs:24,sm:24,md:24,lg:16,xl:18,children:(0,t.jsx)(g.Z,{children:(0,t.jsx)("div",{id:"repur-chase",className:m()["repur-chase"]})})})]}),(0,t.jsx)(j.Z,{children:(0,t.jsx)(E.Z,{xs:24,sm:24,md:24,lg:24,xl:24,children:(0,t.jsx)(g.Z,{children:(0,t.jsx)("div",{id:"new-member",className:m()["new-member"]})})})})]})}}}]); diff --git a/dist/p__order__order-nopay-detail.8b3d0eb0.async.js b/dist/p__order__order-nopay-detail.338fbc17.async.js similarity index 90% rename from dist/p__order__order-nopay-detail.8b3d0eb0.async.js rename to dist/p__order__order-nopay-detail.338fbc17.async.js index aef2c15..f7eec6b 100644 --- a/dist/p__order__order-nopay-detail.8b3d0eb0.async.js +++ b/dist/p__order__order-nopay-detail.338fbc17.async.js @@ -1 +1 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[2369],{26177:function(K,g,e){"use strict";var h=e(71194),f=e(50146),r=e(98858),c=e(4914),z=e(34792),D=e(48086),P=e(39428),W=e(3182),F=e(2824),j=e(67294),N=e(16894),B=e(12826),I=e(46389),n=e(85893),l={},b=function(_){var C,m,E,M,p=_.createModalVisible,A=_.onCancel,k=(0,j.useState)([]),Z=(0,F.Z)(k,2),y=Z[0],a=Z[1];return(0,n.jsxs)(f.Z,{title:"\u8BA2\u5355\u8BE6\u60C5",width:1e3,visible:_.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,destroyOnClose:!0,onCancel:function(){return A()},maskClosable:!1,children:[(0,n.jsx)(B.ZP,{title:"\u8BA2\u5355\u4FE1\u606F",request:(0,W.Z)((0,P.Z)().mark(function d(){return(0,P.Z)().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,I.Z.GetOrderDetails({id:_.values.id});case 2:return l=s.sent,a(l),s.abrupt("return",Promise.resolve({success:!0,data:l}));case 5:case"end":return s.stop()}},d)})),columns:[{title:"\u4F1A\u5458\u59D3\u540D",key:"customer_Name",dataIndex:"customer_Name"},{title:"\u624B\u673A\u53F7",key:"customer_Tel",dataIndex:"customer_Tel"},{title:"\u8BA2\u5355\u6D41\u6C34",key:"order_Number",dataIndex:"order_Number"},{title:"\u8BA2\u5355\u53F7",key:"transaction_ID",dataIndex:"transaction_ID"},{title:"\u4EA4\u6613\u5355\u53F7",key:"trade_no",dataIndex:"trade_no"},{title:"\u6392\u961F\u53F7",key:"order_SortID",dataIndex:"order_SortID"},{title:"\u6298\u6263",key:"discount",dataIndex:"discount"},{title:"\u5B9E\u4ED8\u91D1\u989D",dataIndex:"order_RealMoney",valueType:"money",fieldProps:{moneySymbol:"\xA5"}},{title:"\u5E94\u4ED8\u91D1\u989D",dataIndex:"order_OriginalMoney",valueType:"money",fieldProps:{moneySymbol:"\xA5"}},{title:"\u5B9E\u4ED8\u91D1\u989D(\u9000)",dataIndex:"refundRealMoney",valueType:"money",fieldProps:{moneySymbol:"\xA5"}},{title:"\u5E94\u4ED8\u91D1\u989D(\u9000)",dataIndex:"refundOriginalMoney",valueType:"money",fieldProps:{moneySymbol:"\xA5"}},{title:"\u6570\u91CF",dataIndex:"order_Count",hideInSearch:!0},{title:"\u652F\u4ED8\u65B9\u5F0F",dataIndex:"payMode",key:"payMode"},{title:"\u8BA2\u5355\u72B6\u6001",dataIndex:"order_Status",key:"order_Status"},{title:"\u6D88\u8D39\u91D1\u989D",dataIndex:"recharge",key:"recharge"},{title:"\u6D88\u8D39\u8D60\u9001\u91D1\u989D",dataIndex:"rechargeBalance",key:"rechargeBalance"}]}),(0,n.jsx)("h3",{style:{fontWeight:"bold",fontSize:16,marginTop:30},children:"\u5546\u54C1\u5217\u8868"}),(0,n.jsx)(N.ZP,{rowKey:"id",request:(0,W.Z)((0,P.Z)().mark(function d(){return(0,P.Z)().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,I.Z.GetOrderDetails({id:_.values.id});case 2:return l=s.sent,s.abrupt("return",{data:l.detailList,success:!0});case 4:case"end":return s.stop()}},d)})),columns:[{title:"\u5546\u54C1\u5206\u7C7B",key:"goodsTypeName",dataIndex:"goodsTypeName"},{title:"\u5546\u54C1\u540D\u79F0",key:"goodsName",dataIndex:"goodsName"},{title:"\u5E94\u4ED8\u91D1\u989D",key:"originalMoney",dataIndex:"originalMoney",valueType:"money",fieldProps:{moneySymbol:"\xA5"}},{title:"\u5B9E\u4ED8\u91D1\u989D",dataIndex:"realMoney",valueType:"money",fieldProps:{moneySymbol:"\xA5"}},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(L,s){return[(0,n.jsx)("a",{onClick:function(){I.Z.printsmallticket({orderId:_.values.id,subOrderId:s.id}).then(function(R){debugger;R.data?D.default.success("\u6253\u5370\u6210\u529F"):D.default.error("\u6253\u5370\u5931\u8D25")})},children:"\u6253\u5370\u5C0F\u7968"},"config")]}}],toolBarRender:!1,search:!1}),(0,n.jsx)(c.Z,{title:"\u4F18\u60E0\u5238",children:(C=l)===null||C===void 0||(m=C.paperCoupons)===null||m===void 0?void 0:m.map(function(d){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c.Z.Item,{label:"\u5E73\u53F0",children:d.platformName}),(0,n.jsx)(c.Z.Item,{label:"\u4F18\u60E0\u5238",children:d.name}),(0,n.jsx)(c.Z.Item,{label:"\u4F18\u60E0\u91D1\u989D",children:d.amount})]})})}),(0,n.jsx)(c.Z,{column:5,title:"\u62B5\u6263\u5238",children:(E=l)===null||E===void 0||(M=E.goodsCoupons)===null||M===void 0?void 0:M.map(function(d){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c.Z.Item,{label:"\u5E73\u53F0",children:d.platformName}),(0,n.jsx)(c.Z.Item,{label:"\u62B5\u6263\u5238",children:d.name}),(0,n.jsx)(c.Z.Item,{label:"\u5546\u54C1",children:d.goodsName}),(0,n.jsx)(c.Z.Item,{label:"\u5546\u54C1\u539F\u4EF7",children:d.goodsAmount}),(0,n.jsx)(c.Z.Item,{label:"\u5E73\u53F0\u552E\u4EF7",children:d.platformAmount})]})})})]})};g.Z=b},46389:function(K,g,e){"use strict";var h=e(48971);g.Z={orderList:function(r){return r.isreport=!0,(0,h.WY)("/kitchen/api/order/order-detail-flow",{method:"Post",data:r})},srdTypeList:function(r){return(0,h.WY)("/kitchen/api/storetype/list",{method:"Post",data:r})},srdList:function(r){return(0,h.WY)("/kitchen/api/store/list",{method:"Post",data:r})},goodsList:function(r){return(0,h.WY)("/kitchen/api/goodes/list",{method:"Post",data:r})},goodsTypeList:function(r){return(0,h.WY)("/kitchen/api/goodstype/list",{method:"Post",data:r})},StartRefund:function(r){return(0,h.WY)("/kitchen/api/refund/StartOrderRefund",{method:"Post",params:r})},GetOrderDetails:function(r){return(0,h.WY)("/kitchen/api/Order/GetOrderDetails",{method:"Post",params:r})},GetFlowExport:function(r){return(0,h.WY)("/kitchen/api/Order/GetFlowExport",{method:"Post",data:r})},printsmallticket:function(r){return(0,h.WY)("/kitchen/api/printer/print-small-ticket",{method:"Post",data:r})}}},65585:function(K,g,e){"use strict";e.r(g),e.d(g,{default:function(){return Z}});var h=e(57663),f=e(71577),r=e(39428),c=e(3182),z=e(34792),D=e(48086),P=e(11849),W=e(47673),F=e(4107),j=e(93224),N=e(43358),B=e(34041),I=e(2824),n=e(90631),l=e(67294),b=e(78009),U=e(16894),_=e(53667),C=e.n(_),m=e(48971),E={orderList:function(a){return a.isreport=!0,(0,m.WY)("/kitchen/api/order/psot-unpaid-order",{method:"Post",data:a})},srdTypeList:function(a){return(0,m.WY)("/kitchen/api/storetype/list",{method:"Post",data:a})},srdList:function(a){return(0,m.WY)("/kitchen/api/store/list",{method:"Post",data:a})},goodsList:function(a){return(0,m.WY)("/kitchen/api/goodes/list",{method:"Post",data:a})},goodsTypeList:function(a){return(0,m.WY)("/kitchen/api/goodstype/list",{method:"Post",data:a})},StartRefund:function(a){return(0,m.WY)("/kitchen/api/refund/StartOrderRefund",{method:"Post",params:a})},GetOrderDetails:function(a){return(0,m.WY)("/kitchen/api/Order/GetOrderDetails",{method:"Post",params:a})},GetFlowExport:function(a){return(0,m.WY)("/kitchen/api/Order/GetFlowExport",{method:"Post",data:a})},printsmallticket:function(a){return(0,m.WY)("/kitchen/api/printer/print-small-ticket",{method:"Post",data:a})}},M=e(26177),p=e(85893),A=["defaultRender"],k=function(){var a=(0,l.useState)(),d=(0,I.Z)(a,2),L=d[0],s=d[1],G=(0,l.useState)(!1),R=(0,I.Z)(G,2),J=R[0],Y=R[1],Q=(0,l.useState)([]),w=(0,I.Z)(Q,2),X=w[0],q=w[1],ee=(0,l.useState)([]),V=(0,I.Z)(ee,2),se=V[0],te=V[1],re=(0,l.useRef)(),ae=(0,l.useState)([]),$=(0,I.Z)(ae,2),H=$[0],ne=$[1];(0,l.useEffect)(function(){function u(){E.srdList().then(function(i){var t=i.data;console.log(t),t==null||t.forEach(function(o){o.value=o.id,o.label=o.name}),q(t)})}u()},[]);function ie(){E.GetFlowExport(H).then(function(u){var i=URL.createObjectURL(new Blob([u])),t="\u8BA2\u5355\u6D41\u6C34.xlsx",o=document.createElement("a");o.href=i,o.download=t,o.click(),URL.revokeObjectURL(i)})}var oe=[{title:"\u4E3B\u952E",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0},{title:"\u8BA2\u5355\u65F6\u95F4",dataIndex:"order_CreateTime",valueType:"dateRange",hideInTable:!0,search:{transform:function(i){return{order_CreateTime:i[0],order_EndTime:i[1]}}}},{title:"\u624B\u673A\u53F7",dataIndex:"Customer_Tel",hideInTable:!0},{title:"\u5E97\u94FA\u540D\u79F0",dataIndex:"storeId",hideInTable:!0,valueType:"select",renderFormItem:function(){return(0,p.jsx)(B.Z,{mode:"multiple",showArrow:!0,optionFilterProp:"label",placeholder:"\u8BF7\u9009\u62E9\u5E97\u94FA",style:{width:"100%"},options:X})}},{title:"\u4EA4\u6613\u5355\u53F7",dataIndex:"order_Number",hideInSearch:!0},{title:"\u5E97\u94FA\u540D\u79F0",dataIndex:"storeName",hideInSearch:!0},{title:"\u5E94\u4ED8\u91D1\u989D",dataIndex:"order_OriginalMoney",renderText:function(i){return"".concat(i,"\xA5")},hideInSearch:!0},{title:"\u6570\u91CF",dataIndex:"order_Count",hideInSearch:!0},{title:"\u521B\u5EFA\u65F6\u95F4",sorter:!0,dataIndex:"order_CreateTime",valueType:"dateTime",hideInSearch:!0,renderFormItem:function(i,t,o){var T=t.defaultRender,v=(0,j.Z)(t,A),O=o.getFieldValue("status");return"".concat(O)==="0"?!1:"".concat(O)==="3"?(0,p.jsx)(F.Z,(0,P.Z)((0,P.Z)({},v),{},{placeholder:"\u8BF7\u8F93\u5165\u5F02\u5E38\u539F\u56E0\uFF01"})):T(i)}},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(i,t){return[(0,p.jsx)("a",{onClick:function(){s(t),Y(!0)},children:"\u67E5\u770B\u8BE6\u60C5"},"config"),(0,p.jsx)("a",{onClick:function(){E.printsmallticket({orderId:t.id}).then(function(T){T.data?D.default.success("\u6253\u5370\u6210\u529F"):D.default.error("\u6253\u5370\u5931\u8D25")})},children:"\u6253\u5370\u5C0F\u7968"},"config")]}}],de=function(){var u=(0,c.Z)((0,r.Z)().mark(function i(){var t,o,T,v,O,x;return(0,r.Z)().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return S.next=2,E.GetFlowExport(H);case 2:t=S.sent,t.isSuccess?(o={},T=new Date,v="\u8BA2\u5355\u6D41\u6C34"+T.toLocaleString().replaceAll("/","-"),o.fileName=v,O=["storeTypeName","storeName","order_Number","order_OriginalMoney","order_RealMoney","refundOriginalMoney","refundRealMoney","order_Count","order_CreateTime"],o.datas=[{sheetData:t.data,sheetName:v,sheetFilter:O,sheetHeader:["\u5E97\u94FA\u5206\u7C7B","\u5E97\u94FA\u540D\u79F0","\u4EA4\u6613\u5355\u53F7","\u5E94\u4ED8\u91D1\u989D","\u5B9E\u4ED8\u91D1\u989D","\u5E94\u4ED8\u91D1\u989D(\u9000)","\u5B9E\u4ED8\u91D1\u989D(\u9000)","\u5B50\u8BA2\u5355\u6570\u91CF","\u521B\u5EFA\u65F6\u95F4"]}],x=new(C())(o),x.saveExcel()):D.default.error(t.errors||"\u5BFC\u51FA\u5931\u8D25");case 4:case"end":return S.stop()}},i)}));return function(){return u.apply(this,arguments)}}();return(0,p.jsxs)(b.ZP,{children:[(0,p.jsx)(U.ZP,{headerTitle:"\u8BA2\u5355\u6D41\u6C34",actionRef:re,rowKey:"orderFlowId",search:{labelWidth:120},toolBarRender:function(){return[(0,p.jsxs)(f.Z,{type:"primary",onClick:de,children:[(0,p.jsx)(n.Z,{})," \u5BFC\u51FA"]},"create")]},columns:oe,request:function(){var u=(0,c.Z)((0,r.Z)().mark(function i(t,o,T){var v;return(0,r.Z)().wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return t.storeTypeId!=null&&(t.storeTypeId=srdTypeList[t.storeTypeId].storeTypeId),t.orderStatus=0,x.next=4,E.orderList(t);case 4:return v=x.sent,ne(t),te(v.data.data),x.abrupt("return",{data:v.data.data,success:!0,total:v.data.total});case 8:case"end":return x.stop()}},i)}));return function(i,t,o){return u.apply(this,arguments)}}()}),!!L&&(0,p.jsx)(M.Z,{onCancel:function(){s(void 0),Y(!1)},createModalVisible:J,values:L||{}})]})},Z=k}}]); +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[2369],{26177:function(K,g,e){"use strict";var h=e(71194),f=e(50146),r=e(98858),c=e(4914),z=e(34792),D=e(48086),_=e(39428),F=e(3182),W=e(2824),j=e(67294),N=e(16894),B=e(12826),I=e(46389),n=e(85893),l={},b=function(P){var C,m,E,M,p=P.createModalVisible,A=P.onCancel,k=(0,j.useState)([]),Z=(0,W.Z)(k,2),y=Z[0],a=Z[1];return(0,n.jsxs)(f.Z,{title:"\u8BA2\u5355\u8BE6\u60C5",width:1e3,visible:P.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,destroyOnClose:!0,onCancel:function(){return A()},maskClosable:!1,children:[(0,n.jsx)(B.ZP,{title:"\u8BA2\u5355\u4FE1\u606F",request:(0,F.Z)((0,_.Z)().mark(function d(){return(0,_.Z)().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,I.Z.GetOrderDetails({id:P.values.id});case 2:return l=s.sent,a(l),s.abrupt("return",Promise.resolve({success:!0,data:l}));case 5:case"end":return s.stop()}},d)})),columns:[{title:"\u4F1A\u5458\u59D3\u540D",key:"customer_Name",dataIndex:"customer_Name"},{title:"\u624B\u673A\u53F7",key:"customer_Tel",dataIndex:"customer_Tel"},{title:"\u8BA2\u5355\u6D41\u6C34",key:"order_Number",dataIndex:"order_Number"},{title:"\u8BA2\u5355\u53F7",key:"transaction_ID",dataIndex:"transaction_ID"},{title:"\u4EA4\u6613\u5355\u53F7",key:"trade_no",dataIndex:"trade_no"},{title:"\u6392\u961F\u53F7",key:"order_SortID",dataIndex:"order_SortID"},{title:"\u6298\u6263",key:"discount",dataIndex:"discount"},{title:"\u5B9E\u4ED8\u91D1\u989D",dataIndex:"order_RealMoney",valueType:"money",fieldProps:{moneySymbol:"\xA5"}},{title:"\u5E94\u4ED8\u91D1\u989D",dataIndex:"order_OriginalMoney",valueType:"money",fieldProps:{moneySymbol:"\xA5"}},{title:"\u5B9E\u4ED8\u91D1\u989D(\u9000)",dataIndex:"refundRealMoney",valueType:"money",fieldProps:{moneySymbol:"\xA5"}},{title:"\u5E94\u4ED8\u91D1\u989D(\u9000)",dataIndex:"refundOriginalMoney",valueType:"money",fieldProps:{moneySymbol:"\xA5"}},{title:"\u6570\u91CF",dataIndex:"order_Count",hideInSearch:!0},{title:"\u652F\u4ED8\u65B9\u5F0F",dataIndex:"payMode",key:"payMode"},{title:"\u8BA2\u5355\u72B6\u6001",dataIndex:"order_Status",key:"order_Status"},{title:"\u6D88\u8D39\u91D1\u989D",dataIndex:"recharge",key:"recharge"},{title:"\u6D88\u8D39\u8D60\u9001\u91D1\u989D",dataIndex:"rechargeBalance",key:"rechargeBalance"}]}),(0,n.jsx)("h3",{style:{fontWeight:"bold",fontSize:16,marginTop:30},children:"\u5546\u54C1\u5217\u8868"}),(0,n.jsx)(N.ZP,{rowKey:"id",request:(0,F.Z)((0,_.Z)().mark(function d(){return(0,_.Z)().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,I.Z.GetOrderDetails({id:P.values.id});case 2:return l=s.sent,s.abrupt("return",{data:l.detailList,success:!0});case 4:case"end":return s.stop()}},d)})),columns:[{title:"\u5546\u54C1\u5206\u7C7B",key:"goodsTypeName",dataIndex:"goodsTypeName"},{title:"\u5546\u54C1\u540D\u79F0",key:"goodsName",dataIndex:"goodsName"},{title:"\u5E94\u4ED8\u91D1\u989D",key:"originalMoney",dataIndex:"originalMoney",valueType:"money",fieldProps:{moneySymbol:"\xA5"}},{title:"\u5B9E\u4ED8\u91D1\u989D",dataIndex:"realMoney",valueType:"money",fieldProps:{moneySymbol:"\xA5"}},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(L,s){return[(0,n.jsx)("a",{onClick:function(){I.Z.printsmallticket({orderId:P.values.id,subOrderId:s.id}).then(function(R){debugger;R.data?D.default.success("\u6253\u5370\u6210\u529F"):D.default.error("\u6253\u5370\u5931\u8D25")})},children:"\u6253\u5370\u5C0F\u7968"},"config")]}}],toolBarRender:!1,search:!1}),(0,n.jsx)(c.Z,{title:"\u4F18\u60E0\u5238",children:(C=l)===null||C===void 0||(m=C.paperCoupons)===null||m===void 0?void 0:m.map(function(d){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c.Z.Item,{label:"\u5E73\u53F0",children:d.platformName}),(0,n.jsx)(c.Z.Item,{label:"\u4F18\u60E0\u5238",children:d.name}),(0,n.jsx)(c.Z.Item,{label:"\u4F18\u60E0\u91D1\u989D",children:d.amount})]})})}),(0,n.jsx)(c.Z,{column:5,title:"\u62B5\u6263\u5238",children:(E=l)===null||E===void 0||(M=E.goodsCoupons)===null||M===void 0?void 0:M.map(function(d){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c.Z.Item,{label:"\u5E73\u53F0",children:d.platformName}),(0,n.jsx)(c.Z.Item,{label:"\u62B5\u6263\u5238",children:d.name}),(0,n.jsx)(c.Z.Item,{label:"\u5546\u54C1",children:d.goodsName}),(0,n.jsx)(c.Z.Item,{label:"\u5546\u54C1\u539F\u4EF7",children:d.goodsAmount}),(0,n.jsx)(c.Z.Item,{label:"\u5E73\u53F0\u552E\u4EF7",children:d.platformAmount})]})})})]})};g.Z=b},46389:function(K,g,e){"use strict";var h=e(48971);g.Z={orderList:function(r){return r.isreport=!0,(0,h.WY)("/kitchen/api/order/order-detail-flow",{method:"Post",data:r})},srdTypeList:function(r){return(0,h.WY)("/kitchen/api/storetype/list",{method:"Post",data:r})},srdList:function(r){return(0,h.WY)("/kitchen/api/store/list",{method:"Post",data:r})},goodsList:function(r){return(0,h.WY)("/kitchen/api/goodes/list",{method:"Post",data:r})},goodsTypeList:function(r){return(0,h.WY)("/kitchen/api/goodstype/list",{method:"Post",data:r})},StartRefund:function(r){return(0,h.WY)("/kitchen/api/refund/StartOrderRefund",{method:"Post",params:r})},GetOrderDetails:function(r){return(0,h.WY)("/kitchen/api/Order/GetOrderDetails",{method:"Post",params:r})},GetFlowExport:function(r){return(0,h.WY)("/kitchen/api/Order/GetFlowExport",{method:"Post",data:r})},printsmallticket:function(r){return(0,h.WY)("/kitchen/api/printer/print-small-ticket",{method:"Post",data:r})}}},65585:function(K,g,e){"use strict";e.r(g),e.d(g,{default:function(){return Z}});var h=e(57663),f=e(71577),r=e(39428),c=e(3182),z=e(34792),D=e(48086),_=e(11849),F=e(47673),W=e(4107),j=e(93224),N=e(43358),B=e(34041),I=e(2824),n=e(90631),l=e(67294),b=e(78009),U=e(16894),P=e(53667),C=e.n(P),m=e(48971),E={orderList:function(a){return a.isreport=!0,(0,m.WY)("/kitchen/api/order/psot-unpaid-order",{method:"Post",data:a})},srdTypeList:function(a){return(0,m.WY)("/kitchen/api/storetype/list",{method:"Post",data:a})},srdList:function(a){return(0,m.WY)("/kitchen/api/store/list",{method:"Post",data:a})},goodsList:function(a){return(0,m.WY)("/kitchen/api/goodes/list",{method:"Post",data:a})},goodsTypeList:function(a){return(0,m.WY)("/kitchen/api/goodstype/list",{method:"Post",data:a})},StartRefund:function(a){return(0,m.WY)("/kitchen/api/refund/StartOrderRefund",{method:"Post",params:a})},GetOrderDetails:function(a){return(0,m.WY)("/kitchen/api/Order/GetOrderDetails",{method:"Post",params:a})},GetFlowExport:function(a){return(0,m.WY)("/kitchen/api/Order/GetFlowExport",{method:"Post",data:a})},printsmallticket:function(a){return(0,m.WY)("/kitchen/api/printer/print-small-ticket",{method:"Post",data:a})}},M=e(26177),p=e(85893),A=["defaultRender"],k=function(){var a=(0,l.useState)(),d=(0,I.Z)(a,2),L=d[0],s=d[1],G=(0,l.useState)(!1),R=(0,I.Z)(G,2),J=R[0],Y=R[1],Q=(0,l.useState)([]),w=(0,I.Z)(Q,2),X=w[0],q=w[1],ee=(0,l.useState)([]),V=(0,I.Z)(ee,2),se=V[0],te=V[1],re=(0,l.useRef)(),ae=(0,l.useState)([]),$=(0,I.Z)(ae,2),H=$[0],ne=$[1];(0,l.useEffect)(function(){function u(){E.srdList().then(function(i){var t=i.data;console.log(t),t==null||t.forEach(function(o){o.value=o.id,o.label=o.name}),q(t)})}u()},[]);function ie(){E.GetFlowExport(H).then(function(u){var i=URL.createObjectURL(new Blob([u])),t="\u8BA2\u5355\u6D41\u6C34.xlsx",o=document.createElement("a");o.href=i,o.download=t,o.click(),URL.revokeObjectURL(i)})}var oe=[{title:"\u4E3B\u952E",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0},{title:"\u8BA2\u5355\u65F6\u95F4",dataIndex:"order_CreateTime",valueType:"dateRange",hideInTable:!0,search:{transform:function(i){return{order_CreateTime:i[0],order_EndTime:i[1]}}}},{title:"\u624B\u673A\u53F7",dataIndex:"Customer_Tel",hideInTable:!0},{title:"\u5E97\u94FA\u540D\u79F0",dataIndex:"storeId",hideInTable:!0,valueType:"select",renderFormItem:function(){return(0,p.jsx)(B.Z,{mode:"multiple",showArrow:!0,optionFilterProp:"label",placeholder:"\u8BF7\u9009\u62E9\u5E97\u94FA",style:{width:"100%"},options:X})}},{title:"\u4EA4\u6613\u5355\u53F7",dataIndex:"order_Number",hideInSearch:!0},{title:"\u5E97\u94FA\u540D\u79F0",dataIndex:"storeName",hideInSearch:!0},{title:"\u5E94\u4ED8\u91D1\u989D",dataIndex:"order_OriginalMoney",renderText:function(i){return"".concat(i,"\xA5")},hideInSearch:!0},{title:"\u6570\u91CF",dataIndex:"order_Count",hideInSearch:!0},{title:"\u521B\u5EFA\u65F6\u95F4",sorter:!0,dataIndex:"order_CreateTime",valueType:"dateTime",hideInSearch:!0,renderFormItem:function(i,t,o){var T=t.defaultRender,v=(0,j.Z)(t,A),O=o.getFieldValue("status");return"".concat(O)==="0"?!1:"".concat(O)==="3"?(0,p.jsx)(W.Z,(0,_.Z)((0,_.Z)({},v),{},{placeholder:"\u8BF7\u8F93\u5165\u5F02\u5E38\u539F\u56E0\uFF01"})):T(i)}},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(i,t){return[(0,p.jsx)("a",{onClick:function(){s(t),Y(!0)},children:"\u67E5\u770B\u8BE6\u60C5"},"config"),(0,p.jsx)("a",{onClick:function(){E.printsmallticket({orderId:t.id}).then(function(T){T.data?D.default.success("\u6253\u5370\u6210\u529F"):D.default.error("\u6253\u5370\u5931\u8D25")})},children:"\u6253\u5370\u5C0F\u7968"},"config")]}}],de=function(){var u=(0,c.Z)((0,r.Z)().mark(function i(){var t,o,T,v,O,x;return(0,r.Z)().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return S.next=2,E.GetFlowExport(H);case 2:t=S.sent,t.isSuccess?(o={},T=new Date,v="\u8BA2\u5355\u6D41\u6C34"+T.toLocaleString().replaceAll("/","-"),o.fileName=v,O=["storeTypeName","storeName","order_Number","order_OriginalMoney","order_RealMoney","refundOriginalMoney","refundRealMoney","order_Count","order_CreateTime"],o.datas=[{sheetData:t.data,sheetName:v,sheetFilter:O,sheetHeader:["\u5E97\u94FA\u5206\u7C7B","\u5E97\u94FA\u540D\u79F0","\u4EA4\u6613\u5355\u53F7","\u5E94\u4ED8\u91D1\u989D","\u5B9E\u4ED8\u91D1\u989D","\u5E94\u4ED8\u91D1\u989D(\u9000)","\u5B9E\u4ED8\u91D1\u989D(\u9000)","\u5B50\u8BA2\u5355\u6570\u91CF","\u521B\u5EFA\u65F6\u95F4"]}],x=new(C())(o),x.saveExcel()):D.default.error(t.errors||"\u5BFC\u51FA\u5931\u8D25");case 4:case"end":return S.stop()}},i)}));return function(){return u.apply(this,arguments)}}();return(0,p.jsxs)(b.ZP,{children:[(0,p.jsx)(U.ZP,{headerTitle:"\u8BA2\u5355\u6D41\u6C34",actionRef:re,rowKey:"orderFlowId",search:{labelWidth:120},toolBarRender:function(){return[(0,p.jsxs)(f.Z,{type:"primary",onClick:de,children:[(0,p.jsx)(n.Z,{})," \u5BFC\u51FA"]},"create")]},columns:oe,request:function(){var u=(0,c.Z)((0,r.Z)().mark(function i(t,o,T){var v;return(0,r.Z)().wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return t.storeTypeId!=null&&(t.storeTypeId=srdTypeList[t.storeTypeId].storeTypeId),t.orderStatus=0,x.next=4,E.orderList(t);case 4:return v=x.sent,ne(t),te(v.data.data),x.abrupt("return",{data:v.data.data,success:!0,total:v.data.total});case 8:case"end":return x.stop()}},i)}));return function(i,t,o){return u.apply(this,arguments)}}()}),!!L&&(0,p.jsx)(M.Z,{onCancel:function(){s(void 0),Y(!1)},createModalVisible:J,values:L||{}})]})},Z=k}}]); diff --git a/dist/p__order__order-product-report.6ed7c7d7.async.js b/dist/p__order__order-product-report.75dc89be.async.js similarity index 99% rename from dist/p__order__order-product-report.6ed7c7d7.async.js rename to dist/p__order__order-product-report.75dc89be.async.js index 310b375..16744d2 100644 --- a/dist/p__order__order-product-report.6ed7c7d7.async.js +++ b/dist/p__order__order-product-report.75dc89be.async.js @@ -1 +1 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[1142],{18974:function(f){f.exports={"data-search-card":"data-search-card___fc1xW","data-search-row":"data-search-row___FtrAv","data-search-item":"data-search-item___g5H_b","data-search-prefix":"data-search-prefix___bxf2p","search-btn-item":"search-btn-item___1lD6h","data-search-day":"data-search-day___1AMa5","search-day-selected":"search-day-selected___1rdk5","data-search-sufixx":"data-search-sufixx___3Ht7c","loading-card":"loading-card___2AdV6","member-card-box":"member-card-box___1GV0Y","member-card-prefix":"member-card-prefix___3LNuc","member-card-sufixx":"member-card-sufixx___AFiDV","new-member":"new-member___2TlTQ","repur-chase":"repur-chase___1cYei","member-card":"member-card___3syWs","member-row-common":"member-row-common___1sZlj"}},5525:function(f){f.exports={"top-goods":"top-goods___3IvoO","top-goods-line":"top-goods-line___2RCLw"}},97632:function(f,C,e){"use strict";e.d(C,{Z:function(){return d}});var $=e(58024),Y=e(91894),J=e(13062),M=e(71230),X=e(57663),v=e(71577),x=e(62999),K=e(54680),I=e(89032),m=e(15746),D=e(20228),u=e(11382),U=e(14965),S=e(91774),A=e(67294),j=e(18974),a=e.n(j),R=e(30381),g=e.n(R),n=e(85893),y=S.Z.RangePicker;function d(s){var E=function(){return(0,n.jsx)("div",{className:a()["loading-card"],children:(0,n.jsx)(u.Z,{size:"large"})})};return(0,n.jsxs)("div",{children:[s.showLoading?(0,n.jsx)(E,{}):null,(0,n.jsx)(Y.Z,{className:a()["data-search-card"],children:(0,n.jsxs)(M.Z,{gutter:20,className:a()["data-search-row"],children:[(0,n.jsx)(m.Z,{xs:24,sm:24,md:24,lg:12,xl:6,className:a()["data-search-item"],children:(0,n.jsx)(y,{size:"middle",className:a()["data-search-sufixx"],value:s.timeRange,onChange:function(Z,h){var L=[g()(g()(new Date(h[0])).format("YYYY-MM-DD 00:00:00")),g()(g()(new Date(h[1])).format("YYYY-MM-DD 23:59:59"))];s.onTimePickerChange(L)}})}),(0,n.jsxs)(m.Z,{xs:24,sm:24,md:24,lg:12,xl:6,className:a()["data-search-item"],children:[(0,n.jsx)("div",{className:s.searchDayIndex===0?"".concat(a()["data-search-day"]," ").concat(a()["search-day-selected"]):"".concat(a()["data-search-day"]),onClick:function(){return s.onChangeTimeIndex(0)},children:"\u4ECA\u5929"}),(0,n.jsx)("div",{className:s.searchDayIndex===1?"".concat(a()["data-search-day"]," ").concat(a()["search-day-selected"]):"".concat(a()["data-search-day"]),onClick:function(){return s.onChangeTimeIndex(1)},children:"\u6628\u5929"}),(0,n.jsx)("div",{className:s.searchDayIndex===2?"".concat(a()["data-search-day"]," ").concat(a()["search-day-selected"]):"".concat(a()["data-search-day"]),onClick:function(){return s.onChangeTimeIndex(2)},children:"\u8FD17\u5929"}),(0,n.jsx)("div",{className:s.searchDayIndex===3?"".concat(a()["data-search-day"]," ").concat(a()["search-day-selected"]):"".concat(a()["data-search-day"]),onClick:function(){return s.onChangeTimeIndex(3)},children:"\u8FD130\u5929"})]}),(0,n.jsx)(m.Z,{xs:24,sm:24,md:24,lg:12,xl:6,className:a()["data-search-item"],children:(0,n.jsx)(K.Z,{className:a()["data-search-sufixx"],dropdownStyle:{maxHeight:400,overflow:"auto"},value:s.currentOrg.title,treeData:s.orgTree,onSelect:function(Z,h){h.type===2||h===3?s.onCurrentOrgChange(h):s.onCurrentOrgChange("")},placeholder:"\u8BF7\u9009\u62E9\u7EC4\u7EC7\u67B6\u6784",treeDefaultExpandAll:!0})}),(0,n.jsx)(m.Z,{xs:24,sm:24,md:12,lg:12,xl:6,className:a()["data-search-item"],children:(0,n.jsxs)("div",{className:a()["data-search-btns"],children:[(0,n.jsx)(v.Z,{className:a()["search-btn-item"],onClick:s.onResetSearch,children:"\u91CD\u7F6E"}),(0,n.jsx)(v.Z,{className:a()["search-btn-item"],type:"primary",onClick:s.onQueryBtn,children:"\u67E5\u8BE2"})]})})]})})]})}},99531:function(f,C,e){"use strict";e.r(C),e.d(C,{default:function(){return s}});var $=e(13062),Y=e(71230),J=e(89032),M=e(15746),X=e(58024),v=e(91894),x=e(39428),K=e(34792),I=e(48086),m=e(3182),D=e(2824),u=e(67294),U=e(78009),S=e(97632),A=e(15916),j=e(30381),a=e.n(j),R=e(5525),g=e.n(R),n=e(48971),y={getOrgTree:function(){return(0,n.WY)("/kitchen/api/report-statistics/org-tree",{method:"GET"})},getProductEcharts:function(c){return(0,n.WY)("/kitchen/api/report-statistics/productc",{method:"POST",data:c})}},d=e(85893);function s(){var E=(0,u.useState)(0),c=(0,D.Z)(E,2),Z=c[0],h=c[1],L=(0,u.useState)([a()(a()(new Date(Date.now())).format("YYYY-MM-DD 00:00:00")),a()(a()(new Date(Date.now())).format("YYYY-MM-DD 23:59:59"))]),N=(0,D.Z)(L,2),B=N[0],G=N[1],b=(0,u.useState)([]),p=(0,D.Z)(b,2),k=p[0],q=p[1],ee=(0,u.useState)(!1),w=(0,D.Z)(ee,2),ae=w[0],O=w[1],te=(0,u.useState)(""),H=(0,D.Z)(te,2),W=H[0],F=H[1],ne=(0,u.useState)([]),z=(0,D.Z)(ne,2),Q=z[0],se=z[1],_=null,T=null,re=function(r){h(r);var t=[];switch(r){case 0:t=[a()(a()(new Date(Date.now())).format("YYYY-MM-DD 00:00:00")),a()(a()(new Date(Date.now())).format("YYYY-MM-DD 23:59:59"))];break;case 1:t=[a()(a()(new Date(Date.now()-24*60*60*1e3)).format("YYYY-MM-DD 00:00:00")),a()(a()(new Date(Date.now()-24*60*60*1e3)).format("YYYY-MM-DD 23:59:59"))];break;case 2:t=[a()(a()(new Date(Date.now()-24*60*60*1e3*7)).format("YYYY-MM-DD 00:00:00")),a()(a()(new Date(Date.now())).format("YYYY-MM-DD 23:59:59"))];break;case 3:t=[a()(a()(new Date(Date.now()-24*60*60*1e3*30)).format("YYYY-MM-DD 00:00:00")),a()(a()(new Date(Date.now())).format("YYYY-MM-DD 23:59:59"))];break}G(t)},oe=function(){var i=(0,m.Z)((0,x.Z)().mark(function r(){var t,l;return(0,x.Z)().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return O(!0),o.next=3,y.getOrgTree();case 3:t=o.sent,O(!1),t.statusCode===200?(l=t.data,de(l),q(l)):I.default.error(t.errors||"\u83B7\u53D6\u7EC4\u7EC7\u6811\u51FA\u9519");case 6:case"end":return o.stop()}},r)}));return function(){return i.apply(this,arguments)}}(),de=function i(r){r.forEach(function(t){t.children&&t.children.length>0?i(t.children):t.type===2||t.type===3?t.disabled=!1:t.disabled=!0})},ce=function(){F("")},ie=function(r){F(r)},le=function(r){G(r)},V=function(){var i=(0,m.Z)((0,x.Z)().mark(function r(){var t,l;return(0,x.Z)().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return t={top:10,shopIds:[W.key],startTime:B[0],endTime:B[1]},W.key||delete t.shopIds,O(!0),o.next=5,y.getProductEcharts(t);case 5:l=o.sent,O(!1),l.statusCode===200?se(l.data.topGoods):I.default.error(l.errors||"\u83B7\u53D6\u70ED\u9500\u4EA7\u54C1\u6570\u636E\u51FA\u9519");case 8:case"end":return o.stop()}},r)}));return function(){return i.apply(this,arguments)}}(),ue=function(){var r=document.getElementById("top-goods");T=A.S1(r);var t=[],l=[];Q.forEach(function(o){t.push(o.name),l.push(o.count)});var P={title:{show:!0,text:"\u70ED\u9500\u5546\u54C1"},tooltip:{trigger:"axis",axisPointer:{label:{show:!0,formatter:"\u70ED\u9500\u5546\u54C1"}}},toolbox:{feature:{saveAsImage:{}}},xAxis:{type:"category",data:t},yAxis:{type:"value"},series:[{data:l,type:"bar",showBackground:!0,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)"}}]};P&&T.setOption(P)},he=function(){var r=document.getElementById("top-goods-line");_=A.S1(r);var t={title:{show:!0,text:"\u70ED\u9500\u5546\u54C1"},toolbox:{feature:{saveAsImage:{}}},tooltip:{trigger:"axis",axisPointer:{label:{show:!0,formatter:"\u70ED\u9500\u5546\u54C1"}}},xAxis:{type:"category",data:["00:00","01:00","02:00","03:00","04:00","05:00","06:00"]},yAxis:{type:"value"},series:[{data:[150,230,224,218,135,147,260],type:"line"}]};t&&_.setOption(t)};return(0,u.useEffect)(function(){oe(),V()},[]),(0,u.useEffect)(function(){ue(),he(),window.onresize=function(){_&&T&&(_.resize(),T.resize())}},[Q]),(0,d.jsxs)(U.ZP,{children:[(0,d.jsx)(S.Z,{orgTree:k,timeRange:B,searchDayIndex:Z,currentOrg:W,showLoading:ae,onTimePickerChange:le,onChangeTimeIndex:re,onCurrentOrgChange:ie,onResetSearch:ce,onQueryBtn:V}),(0,d.jsxs)(Y.Z,{gutter:10,children:[(0,d.jsx)(M.Z,{xs:24,sm:24,md:24,lg:8,xl:8,children:(0,d.jsx)(v.Z,{children:(0,d.jsx)("div",{id:"top-goods",className:g()["top-goods"]})})}),(0,d.jsx)(M.Z,{xs:24,sm:24,md:24,lg:16,xl:16,children:(0,d.jsx)(v.Z,{children:(0,d.jsx)("div",{id:"top-goods-line",className:g()["top-goods-line"]})})})]})]})}}}]); +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[1142],{18974:function(f){f.exports={"data-search-card":"data-search-card___fc1xW","data-search-row":"data-search-row___FtrAv","data-search-item":"data-search-item___g5H_b","data-search-prefix":"data-search-prefix___bxf2p","search-btn-item":"search-btn-item___1lD6h","data-search-day":"data-search-day___1AMa5","search-day-selected":"search-day-selected___1rdk5","data-search-sufixx":"data-search-sufixx___3Ht7c","loading-card":"loading-card___2AdV6","member-card-box":"member-card-box___1GV0Y","member-card-prefix":"member-card-prefix___3LNuc","member-card-sufixx":"member-card-sufixx___AFiDV","new-member":"new-member___2TlTQ","repur-chase":"repur-chase___1cYei","member-card":"member-card___3syWs","member-row-common":"member-row-common___1sZlj"}},5525:function(f){f.exports={"top-goods":"top-goods___3IvoO","top-goods-line":"top-goods-line___2RCLw"}},97632:function(f,C,e){"use strict";e.d(C,{Z:function(){return d}});var $=e(58024),Y=e(91894),J=e(13062),M=e(71230),X=e(57663),v=e(71577),x=e(62999),K=e(54680),I=e(89032),m=e(15746),D=e(20228),u=e(11382),U=e(14965),S=e(91774),A=e(67294),j=e(18974),a=e.n(j),R=e(30381),g=e.n(R),n=e(85893),y=S.Z.RangePicker;function d(s){var E=function(){return(0,n.jsx)("div",{className:a()["loading-card"],children:(0,n.jsx)(u.Z,{size:"large"})})};return(0,n.jsxs)("div",{children:[s.showLoading?(0,n.jsx)(E,{}):null,(0,n.jsx)(Y.Z,{className:a()["data-search-card"],children:(0,n.jsxs)(M.Z,{gutter:20,className:a()["data-search-row"],children:[(0,n.jsx)(m.Z,{xs:24,sm:24,md:24,lg:12,xl:6,className:a()["data-search-item"],children:(0,n.jsx)(y,{size:"middle",className:a()["data-search-sufixx"],value:s.timeRange,onChange:function(Z,h){var L=[g()(g()(new Date(h[0])).format("YYYY-MM-DD 00:00:00")),g()(g()(new Date(h[1])).format("YYYY-MM-DD 23:59:59"))];s.onTimePickerChange(L)}})}),(0,n.jsxs)(m.Z,{xs:24,sm:24,md:24,lg:12,xl:6,className:a()["data-search-item"],children:[(0,n.jsx)("div",{className:s.searchDayIndex===0?"".concat(a()["data-search-day"]," ").concat(a()["search-day-selected"]):"".concat(a()["data-search-day"]),onClick:function(){return s.onChangeTimeIndex(0)},children:"\u4ECA\u5929"}),(0,n.jsx)("div",{className:s.searchDayIndex===1?"".concat(a()["data-search-day"]," ").concat(a()["search-day-selected"]):"".concat(a()["data-search-day"]),onClick:function(){return s.onChangeTimeIndex(1)},children:"\u6628\u5929"}),(0,n.jsx)("div",{className:s.searchDayIndex===2?"".concat(a()["data-search-day"]," ").concat(a()["search-day-selected"]):"".concat(a()["data-search-day"]),onClick:function(){return s.onChangeTimeIndex(2)},children:"\u8FD17\u5929"}),(0,n.jsx)("div",{className:s.searchDayIndex===3?"".concat(a()["data-search-day"]," ").concat(a()["search-day-selected"]):"".concat(a()["data-search-day"]),onClick:function(){return s.onChangeTimeIndex(3)},children:"\u8FD130\u5929"})]}),(0,n.jsx)(m.Z,{xs:24,sm:24,md:24,lg:12,xl:6,className:a()["data-search-item"],children:(0,n.jsx)(K.Z,{className:a()["data-search-sufixx"],dropdownStyle:{maxHeight:400,overflow:"auto"},value:s.currentOrg.title,treeData:s.orgTree,onSelect:function(Z,h){h.type===2||h===3?s.onCurrentOrgChange(h):s.onCurrentOrgChange("")},placeholder:"\u8BF7\u9009\u62E9\u7EC4\u7EC7\u67B6\u6784",treeDefaultExpandAll:!0})}),(0,n.jsx)(m.Z,{xs:24,sm:24,md:12,lg:12,xl:6,className:a()["data-search-item"],children:(0,n.jsxs)("div",{className:a()["data-search-btns"],children:[(0,n.jsx)(v.Z,{className:a()["search-btn-item"],onClick:s.onResetSearch,children:"\u91CD\u7F6E"}),(0,n.jsx)(v.Z,{className:a()["search-btn-item"],type:"primary",onClick:s.onQueryBtn,children:"\u67E5\u8BE2"})]})})]})})]})}},99531:function(f,C,e){"use strict";e.r(C),e.d(C,{default:function(){return s}});var $=e(13062),Y=e(71230),J=e(89032),M=e(15746),X=e(58024),v=e(91894),x=e(39428),K=e(34792),I=e(48086),m=e(3182),D=e(2824),u=e(67294),U=e(78009),S=e(97632),A=e(72866),j=e(30381),a=e.n(j),R=e(5525),g=e.n(R),n=e(48971),y={getOrgTree:function(){return(0,n.WY)("/kitchen/api/report-statistics/org-tree",{method:"GET"})},getProductEcharts:function(c){return(0,n.WY)("/kitchen/api/report-statistics/productc",{method:"POST",data:c})}},d=e(85893);function s(){var E=(0,u.useState)(0),c=(0,D.Z)(E,2),Z=c[0],h=c[1],L=(0,u.useState)([a()(a()(new Date(Date.now())).format("YYYY-MM-DD 00:00:00")),a()(a()(new Date(Date.now())).format("YYYY-MM-DD 23:59:59"))]),N=(0,D.Z)(L,2),B=N[0],G=N[1],b=(0,u.useState)([]),p=(0,D.Z)(b,2),k=p[0],q=p[1],ee=(0,u.useState)(!1),w=(0,D.Z)(ee,2),ae=w[0],O=w[1],te=(0,u.useState)(""),H=(0,D.Z)(te,2),W=H[0],F=H[1],ne=(0,u.useState)([]),z=(0,D.Z)(ne,2),Q=z[0],se=z[1],_=null,T=null,re=function(r){h(r);var t=[];switch(r){case 0:t=[a()(a()(new Date(Date.now())).format("YYYY-MM-DD 00:00:00")),a()(a()(new Date(Date.now())).format("YYYY-MM-DD 23:59:59"))];break;case 1:t=[a()(a()(new Date(Date.now()-24*60*60*1e3)).format("YYYY-MM-DD 00:00:00")),a()(a()(new Date(Date.now()-24*60*60*1e3)).format("YYYY-MM-DD 23:59:59"))];break;case 2:t=[a()(a()(new Date(Date.now()-24*60*60*1e3*7)).format("YYYY-MM-DD 00:00:00")),a()(a()(new Date(Date.now())).format("YYYY-MM-DD 23:59:59"))];break;case 3:t=[a()(a()(new Date(Date.now()-24*60*60*1e3*30)).format("YYYY-MM-DD 00:00:00")),a()(a()(new Date(Date.now())).format("YYYY-MM-DD 23:59:59"))];break}G(t)},oe=function(){var i=(0,m.Z)((0,x.Z)().mark(function r(){var t,l;return(0,x.Z)().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return O(!0),o.next=3,y.getOrgTree();case 3:t=o.sent,O(!1),t.statusCode===200?(l=t.data,de(l),q(l)):I.default.error(t.errors||"\u83B7\u53D6\u7EC4\u7EC7\u6811\u51FA\u9519");case 6:case"end":return o.stop()}},r)}));return function(){return i.apply(this,arguments)}}(),de=function i(r){r.forEach(function(t){t.children&&t.children.length>0?i(t.children):t.type===2||t.type===3?t.disabled=!1:t.disabled=!0})},ce=function(){F("")},ie=function(r){F(r)},le=function(r){G(r)},V=function(){var i=(0,m.Z)((0,x.Z)().mark(function r(){var t,l;return(0,x.Z)().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return t={top:10,shopIds:[W.key],startTime:B[0],endTime:B[1]},W.key||delete t.shopIds,O(!0),o.next=5,y.getProductEcharts(t);case 5:l=o.sent,O(!1),l.statusCode===200?se(l.data.topGoods):I.default.error(l.errors||"\u83B7\u53D6\u70ED\u9500\u4EA7\u54C1\u6570\u636E\u51FA\u9519");case 8:case"end":return o.stop()}},r)}));return function(){return i.apply(this,arguments)}}(),ue=function(){var r=document.getElementById("top-goods");T=A.S1(r);var t=[],l=[];Q.forEach(function(o){t.push(o.name),l.push(o.count)});var P={title:{show:!0,text:"\u70ED\u9500\u5546\u54C1"},tooltip:{trigger:"axis",axisPointer:{label:{show:!0,formatter:"\u70ED\u9500\u5546\u54C1"}}},toolbox:{feature:{saveAsImage:{}}},xAxis:{type:"category",data:t},yAxis:{type:"value"},series:[{data:l,type:"bar",showBackground:!0,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)"}}]};P&&T.setOption(P)},he=function(){var r=document.getElementById("top-goods-line");_=A.S1(r);var t={title:{show:!0,text:"\u70ED\u9500\u5546\u54C1"},toolbox:{feature:{saveAsImage:{}}},tooltip:{trigger:"axis",axisPointer:{label:{show:!0,formatter:"\u70ED\u9500\u5546\u54C1"}}},xAxis:{type:"category",data:["00:00","01:00","02:00","03:00","04:00","05:00","06:00"]},yAxis:{type:"value"},series:[{data:[150,230,224,218,135,147,260],type:"line"}]};t&&_.setOption(t)};return(0,u.useEffect)(function(){oe(),V()},[]),(0,u.useEffect)(function(){ue(),he(),window.onresize=function(){_&&T&&(_.resize(),T.resize())}},[Q]),(0,d.jsxs)(U.ZP,{children:[(0,d.jsx)(S.Z,{orgTree:k,timeRange:B,searchDayIndex:Z,currentOrg:W,showLoading:ae,onTimePickerChange:le,onChangeTimeIndex:re,onCurrentOrgChange:ie,onResetSearch:ce,onQueryBtn:V}),(0,d.jsxs)(Y.Z,{gutter:10,children:[(0,d.jsx)(M.Z,{xs:24,sm:24,md:24,lg:8,xl:8,children:(0,d.jsx)(v.Z,{children:(0,d.jsx)("div",{id:"top-goods",className:g()["top-goods"]})})}),(0,d.jsx)(M.Z,{xs:24,sm:24,md:24,lg:16,xl:16,children:(0,d.jsx)(v.Z,{children:(0,d.jsx)("div",{id:"top-goods-line",className:g()["top-goods-line"]})})})]})]})}}}]); diff --git a/dist/p__order__order-report.08635c0c.async.js b/dist/p__order__order-report.08635c0c.async.js deleted file mode 100644 index 005887c..0000000 --- a/dist/p__order__order-report.08635c0c.async.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[7314,1322,9934,4407,6498,6090,274,6314],{79030:function(N){N.exports={"data-search-card":"data-search-card___3UcPL","data-search-box":"data-search-box___3letD","search-btn-item":"search-btn-item____z28A","table-page":"table-page___32bGM","loading-card":"loading-card___3l44P"}},40258:function(N,M,e){"use strict";e.r(M),e.d(M,{default:function(){return oe}});var Te=e(14781),Q=e(36138),Ye=e(66456),U=e(64411),Re=e(58024),L=e(91894),Ne=e(57663),Z=e(71577),Me=e(62999),J=e(54680),f=e(39428),Le=e(34792),j=e(48086),D=e(3182),u=e(2824),Pe=e(20228),K=e(11382),ze=e(49111),V=e(19650),Ie=e(71153),C=e(60331),Ae=e(14965),X=e(91774),l=e(67294),b=e(78009),w=e(79030),i=e.n(w),x=e(48971),E={getOrderReportList:function(d){return(0,x.WY)("/kitchen/api/report-statistics/order-report",{method:"Post",data:d})},getOrgTree:function(){return(0,x.WY)("/kitchen/api/report-statistics/org-tree",{method:"GET"})},orderReportExport:function(d){return(0,x.WY)("/kitchen/api/report-statistics/order-report-export",{method:"Post",data:d})}},q=e(30381),h=e.n(q),_=e(15873),ee=e(90631),te=e(53667),ae=e.n(te),a=e(85893),re=X.Z.RangePicker,se=[{title:"\u4EA4\u6613\u5355\u53F7",dataIndex:"transactionId",key:"transactionId"},{title:"\u5E97\u94FA\u540D\u79F0",dataIndex:"shopName",key:"shopName"},{title:"\u539F\u4EF7\uFF08\uFFE5\uFF09",dataIndex:"orderOriginalMoney",key:"orderOriginalMoney"},{title:"\u4F18\u60E0\uFF08\uFFE5\uFF09",dataIndex:"discountMoney",key:"discountMoney"},{title:"\u5B9E\u9645\u652F\u4ED8\uFF08\uFFE5\uFF09",dataIndex:"orderRealMoney",key:"orderRealMoney"},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"createdAt",key:"createdAt"},{title:"\u8BA2\u5355\u72B6\u6001",key:"orderStatus",render:function(d){var o="";switch(d.orderStatus){case 0:o="\u672A\u4ED8\u6B3E";break;case 1:o="\u5DF2\u4ED8\u6B3E";break;case-1:o="\u9000\u5355\u7533\u8BF7";break;case-2:o="\u9000\u5355\u4E2D";break;case-3:o="\u5DF2\u9000\u5355";break;case-4:o="\u53D6\u6D88\u4EA4\u6613";break;case-5:o="\u64A4\u9500\u7533\u8BF7";break}return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(C.Z,{icon:(0,a.jsx)(_.Z,{}),color:"success",children:o})})}},{title:"\u552E\u540E\u4FE1\u606F",key:"orderStatus",render:function(d){return(0,a.jsx)(a.Fragment,{children:d.isRefund?(0,a.jsx)(C.Z,{color:"error",children:"\u6709"}):(0,a.jsx)(C.Z,{color:"success",children:"\u65E0"})})}},{title:"\u64CD\u4F5C",key:"action",render:function(d,o){return(0,a.jsx)(V.Z,{size:"middle",children:(0,a.jsx)("a",{onClick:function(){x.m8.push({pathname:"/order/order-report/order-report-detail",query:{orderNumber:o.orderNumber}})},children:"\u8BE6\u60C5"})})}}],ne=function(){return(0,a.jsx)("div",{className:i()["loading-card"],children:(0,a.jsx)(K.Z,{size:"large"})})};function oe(){var v=(0,l.useState)([]),d=(0,u.Z)(v,2),o=d[0],P=d[1],de=(0,l.useState)(1),z=(0,u.Z)(de,2),O=z[0],le=z[1],ie=(0,l.useState)(10),I=(0,u.Z)(ie,2),T=I[0],ce=I[1],ue=(0,l.useState)(0),A=(0,u.Z)(ue,2),he=A[0],ve=A[1],fe=(0,l.useState)(!1),F=(0,u.Z)(fe,2),ge=F[0],g=F[1],me=(0,l.useState)(""),k=(0,u.Z)(me,2),S=k[0],B=k[1],pe=(0,l.useState)([]),G=(0,u.Z)(pe,2),ye=G[0],xe=G[1],Se=(0,l.useState)([h()(h()(new Date(Date.now()-24*60*60*1e3*7)).format("YYYY-MM-DD 00:00:00")),h()(h()(new Date(Date.now())).format("YYYY-MM-DD 23:59:59"))]),H=(0,u.Z)(Se,2),p=H[0],Ze=H[1];(0,l.useEffect)(function(){W()},[O,T]),(0,l.useEffect)(function(){De()},[]);var W=function(){var c=(0,D.Z)((0,f.Z)().mark(function s(){var t,r;return(0,f.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return t={startTime:p[0],endTime:p[1],current:O,pageSize:T},S.key&&(t.shopId=S.key),g(!0),n.next=5,E.getOrderReportList(t);case 5:r=n.sent,g(!1),r.statusCode===200?(P(r.data.data),ve(r.data.total)):j.default.error(r.errors||"\u83B7\u53D6\u8BA2\u5355\u62A5\u8868\u5217\u8868\u5931\u8D25");case 8:case"end":return n.stop()}},s)}));return function(){return c.apply(this,arguments)}}(),je=function(s,t){le(s),ce(t)},De=function(){var c=(0,D.Z)((0,f.Z)().mark(function s(){var t,r;return(0,f.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return g(!0),n.next=3,E.getOrgTree();case 3:t=n.sent,g(!1),t.statusCode===200?(r=t.data,Ce(r),xe(r)):j.default.error(t.errors||"\u83B7\u53D6\u7EC4\u7EC7\u6811\u51FA\u9519");case 6:case"end":return n.stop()}},s)}));return function(){return c.apply(this,arguments)}}(),Ce=function c(s){s.forEach(function(t){t.children&&t.children.length>0?c(t.children):t.type===2||t.type===3?t.disabled=!1:t.disabled=!0})},Ee=function(){var c=(0,D.Z)((0,f.Z)().mark(function s(){var t,r,m,n,Y,R,$;return(0,f.Z)().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return t={startTime:p[0],endTime:p[1]},S.key&&(t.shopId=S.key),g(!0),y.next=5,E.orderReportExport(t);case 5:r=y.sent,g(!1),r.statusCode===200?(m={},n=new Date,Y="\u8BA2\u5355\u62A5\u8868-"+n.toLocaleString().replaceAll("/","-"),m.fileName=Y,R=[],Object.keys(r.data[0]).forEach(function(Oe){R.push(Oe)}),m.datas=[{sheetData:r.data,sheetName:Y,sheetFilter:R,sheetHeader:["ID","\u53D6\u9910\u53F7","\u7528\u6237Id","\u4F18\u60E0\u5408\u96C6","\u8BA2\u5355\u53F7\uFF08\u672C\u7CFB\u7EDF\uFF09","\u4EA4\u6613\u53F7","\u5E97\u94FAID","\u5E97\u94FA\u540D\u5B57","\u5546\u54C1\u603B\u4EF7","\u4F18\u60E0\u91D1\u989D","\u5B9E\u4ED8\u91D1\u989D","\u521B\u5EFA\u65F6\u95F4","\u652F\u4ED8\u91D1\u989D\u5F02\u5E38","\u8BA2\u5355\u652F\u4ED8\u65F6\u95F4\u5F02\u5E38","\u8BA2\u5355\u5F02\u5E38","\u552E\u540E\u91D1\u989D\u5F02\u5E38","\u552E\u540E\u65F6\u95F4\u5F02\u5E38","\u552E\u540E\u8BA2\u5355\u5F02\u5E38"]}],$=new(ae())(m),$.saveExcel()):j.default.error(r.errors||"\u5BFC\u51FA\u5931\u8D25");case 8:case"end":return y.stop()}},s)}));return function(){return c.apply(this,arguments)}}();return(0,a.jsxs)(b.ZP,{children:[ge?(0,a.jsx)(ne,{}):null,(0,a.jsx)(L.Z,{className:i()["data-search-card"],children:(0,a.jsxs)("div",{className:i()["data-search-box"],children:[(0,a.jsxs)("div",{className:i()["data-search-left"],children:[(0,a.jsx)(re,{className:i()["my-range-picker"],value:p,onChange:function(s,t){var r=[h()(h()(new Date(t[0])).format("YYYY-MM-DD 00:00:00")),h()(h()(new Date(t[1])).format("YYYY-MM-DD 23:59:59"))];Ze(r)}}),(0,a.jsx)(J.Z,{style:{width:"300px",marginLeft:"50px"},dropdownStyle:{maxHeight:400,overflow:"auto"},treeData:ye,onSelect:function(s,t){console.log("node>>>",t),t.type===2||t===3?B(t):B("")},placeholder:"\u8BF7\u9009\u62E9\u7EC4\u7EC7\u67B6\u6784",treeDefaultExpandAll:!0})]}),(0,a.jsxs)("div",{className:i()["data-search-btns"],children:[(0,a.jsx)(Z.Z,{type:"primary",icon:(0,a.jsx)(ee.Z,{}),size:"middle",onClick:Ee,children:"\u4E0B\u8F7D"}),(0,a.jsx)(Z.Z,{className:i()["search-btn-item"],children:"\u91CD\u7F6E"}),(0,a.jsx)(Z.Z,{className:i()["search-btn-item"],type:"primary",onClick:W,children:"\u67E5\u8BE2"})]})]})}),(0,a.jsxs)(L.Z,{className:i()["table-card"],children:[(0,a.jsx)(U.Z,{dataSource:o,columns:se,pagination:!1}),(0,a.jsx)("div",{className:i()["table-page"],children:(0,a.jsx)(Q.Z,{current:O,pageSize:T,total:he,onChange:je})})]})]})}}}]); diff --git a/dist/p__order__order-report.dbb42468.async.js b/dist/p__order__order-report.dbb42468.async.js new file mode 100644 index 0000000..968f18e --- /dev/null +++ b/dist/p__order__order-report.dbb42468.async.js @@ -0,0 +1 @@ +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[7314,1322,9464,1981,2869,7013,9719,2383],{79030:function(N){N.exports={"data-search-card":"data-search-card___3UcPL","data-search-box":"data-search-box___3letD","search-btn-item":"search-btn-item____z28A","table-page":"table-page___32bGM","loading-card":"loading-card___3l44P"}},40258:function(N,M,e){"use strict";e.r(M),e.d(M,{default:function(){return oe}});var Te=e(14781),Q=e(36138),Ye=e(66456),U=e(64411),Re=e(58024),L=e(91894),Ne=e(57663),Z=e(71577),Me=e(62999),J=e(54680),f=e(39428),Le=e(34792),j=e(48086),D=e(3182),u=e(2824),Pe=e(20228),K=e(11382),ze=e(49111),V=e(19650),Ie=e(71153),C=e(60331),Ae=e(14965),X=e(91774),l=e(67294),b=e(78009),w=e(79030),i=e.n(w),x=e(48971),E={getOrderReportList:function(d){return(0,x.WY)("/kitchen/api/report-statistics/order-report",{method:"Post",data:d})},getOrgTree:function(){return(0,x.WY)("/kitchen/api/report-statistics/org-tree",{method:"GET"})},orderReportExport:function(d){return(0,x.WY)("/kitchen/api/report-statistics/order-report-export",{method:"Post",data:d})}},q=e(30381),h=e.n(q),_=e(15873),ee=e(90631),te=e(53667),ae=e.n(te),a=e(85893),re=X.Z.RangePicker,se=[{title:"\u4EA4\u6613\u5355\u53F7",dataIndex:"transactionId",key:"transactionId"},{title:"\u5E97\u94FA\u540D\u79F0",dataIndex:"shopName",key:"shopName"},{title:"\u539F\u4EF7\uFF08\uFFE5\uFF09",dataIndex:"orderOriginalMoney",key:"orderOriginalMoney"},{title:"\u4F18\u60E0\uFF08\uFFE5\uFF09",dataIndex:"discountMoney",key:"discountMoney"},{title:"\u5B9E\u9645\u652F\u4ED8\uFF08\uFFE5\uFF09",dataIndex:"orderRealMoney",key:"orderRealMoney"},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"createdAt",key:"createdAt"},{title:"\u8BA2\u5355\u72B6\u6001",key:"orderStatus",render:function(d){var o="";switch(d.orderStatus){case 0:o="\u672A\u4ED8\u6B3E";break;case 1:o="\u5DF2\u4ED8\u6B3E";break;case-1:o="\u9000\u5355\u7533\u8BF7";break;case-2:o="\u9000\u5355\u4E2D";break;case-3:o="\u5DF2\u9000\u5355";break;case-4:o="\u53D6\u6D88\u4EA4\u6613";break;case-5:o="\u64A4\u9500\u7533\u8BF7";break}return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(C.Z,{icon:(0,a.jsx)(_.Z,{}),color:"success",children:o})})}},{title:"\u552E\u540E\u4FE1\u606F",key:"orderStatus",render:function(d){return(0,a.jsx)(a.Fragment,{children:d.isRefund?(0,a.jsx)(C.Z,{color:"error",children:"\u6709"}):(0,a.jsx)(C.Z,{color:"success",children:"\u65E0"})})}},{title:"\u64CD\u4F5C",key:"action",render:function(d,o){return(0,a.jsx)(V.Z,{size:"middle",children:(0,a.jsx)("a",{onClick:function(){x.m8.push({pathname:"/order/order-report/order-report-detail",query:{orderNumber:o.orderNumber}})},children:"\u8BE6\u60C5"})})}}],ne=function(){return(0,a.jsx)("div",{className:i()["loading-card"],children:(0,a.jsx)(K.Z,{size:"large"})})};function oe(){var v=(0,l.useState)([]),d=(0,u.Z)(v,2),o=d[0],P=d[1],de=(0,l.useState)(1),z=(0,u.Z)(de,2),O=z[0],le=z[1],ie=(0,l.useState)(10),I=(0,u.Z)(ie,2),T=I[0],ce=I[1],ue=(0,l.useState)(0),A=(0,u.Z)(ue,2),he=A[0],ve=A[1],fe=(0,l.useState)(!1),F=(0,u.Z)(fe,2),ge=F[0],g=F[1],me=(0,l.useState)(""),k=(0,u.Z)(me,2),S=k[0],B=k[1],pe=(0,l.useState)([]),G=(0,u.Z)(pe,2),ye=G[0],xe=G[1],Se=(0,l.useState)([h()(h()(new Date(Date.now()-24*60*60*1e3*7)).format("YYYY-MM-DD 00:00:00")),h()(h()(new Date(Date.now())).format("YYYY-MM-DD 23:59:59"))]),H=(0,u.Z)(Se,2),p=H[0],Ze=H[1];(0,l.useEffect)(function(){W()},[O,T]),(0,l.useEffect)(function(){De()},[]);var W=function(){var c=(0,D.Z)((0,f.Z)().mark(function s(){var t,r;return(0,f.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return t={startTime:p[0],endTime:p[1],current:O,pageSize:T},S.key&&(t.shopId=S.key),g(!0),n.next=5,E.getOrderReportList(t);case 5:r=n.sent,g(!1),r.statusCode===200?(P(r.data.data),ve(r.data.total)):j.default.error(r.errors||"\u83B7\u53D6\u8BA2\u5355\u62A5\u8868\u5217\u8868\u5931\u8D25");case 8:case"end":return n.stop()}},s)}));return function(){return c.apply(this,arguments)}}(),je=function(s,t){le(s),ce(t)},De=function(){var c=(0,D.Z)((0,f.Z)().mark(function s(){var t,r;return(0,f.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return g(!0),n.next=3,E.getOrgTree();case 3:t=n.sent,g(!1),t.statusCode===200?(r=t.data,Ce(r),xe(r)):j.default.error(t.errors||"\u83B7\u53D6\u7EC4\u7EC7\u6811\u51FA\u9519");case 6:case"end":return n.stop()}},s)}));return function(){return c.apply(this,arguments)}}(),Ce=function c(s){s.forEach(function(t){t.children&&t.children.length>0?c(t.children):t.type===2||t.type===3?t.disabled=!1:t.disabled=!0})},Ee=function(){var c=(0,D.Z)((0,f.Z)().mark(function s(){var t,r,m,n,Y,R,$;return(0,f.Z)().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return t={startTime:p[0],endTime:p[1]},S.key&&(t.shopId=S.key),g(!0),y.next=5,E.orderReportExport(t);case 5:r=y.sent,g(!1),r.statusCode===200?(m={},n=new Date,Y="\u8BA2\u5355\u62A5\u8868-"+n.toLocaleString().replaceAll("/","-"),m.fileName=Y,R=[],Object.keys(r.data[0]).forEach(function(Oe){R.push(Oe)}),m.datas=[{sheetData:r.data,sheetName:Y,sheetFilter:R,sheetHeader:["ID","\u53D6\u9910\u53F7","\u7528\u6237Id","\u4F18\u60E0\u5408\u96C6","\u8BA2\u5355\u53F7\uFF08\u672C\u7CFB\u7EDF\uFF09","\u4EA4\u6613\u53F7","\u5E97\u94FAID","\u5E97\u94FA\u540D\u5B57","\u5546\u54C1\u603B\u4EF7","\u4F18\u60E0\u91D1\u989D","\u5B9E\u4ED8\u91D1\u989D","\u521B\u5EFA\u65F6\u95F4","\u652F\u4ED8\u91D1\u989D\u5F02\u5E38","\u8BA2\u5355\u652F\u4ED8\u65F6\u95F4\u5F02\u5E38","\u8BA2\u5355\u5F02\u5E38","\u552E\u540E\u91D1\u989D\u5F02\u5E38","\u552E\u540E\u65F6\u95F4\u5F02\u5E38","\u552E\u540E\u8BA2\u5355\u5F02\u5E38"]}],$=new(ae())(m),$.saveExcel()):j.default.error(r.errors||"\u5BFC\u51FA\u5931\u8D25");case 8:case"end":return y.stop()}},s)}));return function(){return c.apply(this,arguments)}}();return(0,a.jsxs)(b.ZP,{children:[ge?(0,a.jsx)(ne,{}):null,(0,a.jsx)(L.Z,{className:i()["data-search-card"],children:(0,a.jsxs)("div",{className:i()["data-search-box"],children:[(0,a.jsxs)("div",{className:i()["data-search-left"],children:[(0,a.jsx)(re,{className:i()["my-range-picker"],value:p,onChange:function(s,t){var r=[h()(h()(new Date(t[0])).format("YYYY-MM-DD 00:00:00")),h()(h()(new Date(t[1])).format("YYYY-MM-DD 23:59:59"))];Ze(r)}}),(0,a.jsx)(J.Z,{style:{width:"300px",marginLeft:"50px"},dropdownStyle:{maxHeight:400,overflow:"auto"},treeData:ye,onSelect:function(s,t){console.log("node>>>",t),t.type===2||t===3?B(t):B("")},placeholder:"\u8BF7\u9009\u62E9\u7EC4\u7EC7\u67B6\u6784",treeDefaultExpandAll:!0})]}),(0,a.jsxs)("div",{className:i()["data-search-btns"],children:[(0,a.jsx)(Z.Z,{type:"primary",icon:(0,a.jsx)(ee.Z,{}),size:"middle",onClick:Ee,children:"\u4E0B\u8F7D"}),(0,a.jsx)(Z.Z,{className:i()["search-btn-item"],children:"\u91CD\u7F6E"}),(0,a.jsx)(Z.Z,{className:i()["search-btn-item"],type:"primary",onClick:W,children:"\u67E5\u8BE2"})]})]})}),(0,a.jsxs)(L.Z,{className:i()["table-card"],children:[(0,a.jsx)(U.Z,{dataSource:o,columns:se,pagination:!1}),(0,a.jsx)("div",{className:i()["table-page"],children:(0,a.jsx)(Q.Z,{current:O,pageSize:T,total:he,onChange:je})})]})]})}}}]); diff --git a/dist/p__order__order-revenue-statement.98c25366.async.js b/dist/p__order__order-revenue-statement.759637e7.async.js similarity index 99% rename from dist/p__order__order-revenue-statement.98c25366.async.js rename to dist/p__order__order-revenue-statement.759637e7.async.js index 19bd7d7..660449b 100644 --- a/dist/p__order__order-revenue-statement.98c25366.async.js +++ b/dist/p__order__order-revenue-statement.759637e7.async.js @@ -1 +1 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[2642],{18974:function(f){f.exports={"data-search-card":"data-search-card___fc1xW","data-search-row":"data-search-row___FtrAv","data-search-item":"data-search-item___g5H_b","data-search-prefix":"data-search-prefix___bxf2p","search-btn-item":"search-btn-item___1lD6h","data-search-day":"data-search-day___1AMa5","search-day-selected":"search-day-selected___1rdk5","data-search-sufixx":"data-search-sufixx___3Ht7c","loading-card":"loading-card___2AdV6","member-card-box":"member-card-box___1GV0Y","member-card-prefix":"member-card-prefix___3LNuc","member-card-sufixx":"member-card-sufixx___AFiDV","new-member":"new-member___2TlTQ","repur-chase":"repur-chase___1cYei","member-card":"member-card___3syWs","member-row-common":"member-row-common___1sZlj"}},94671:function(f){f.exports={"data-search-card":"data-search-card___3__W1","data-search-box":"data-search-box___1JO3P","search-btn-item":"search-btn-item___pebTO","activity-echarts":"activity-echarts___30Mkv","coupon-ehcarts":"coupon-ehcarts___2woXy"}},97632:function(f,y,e){"use strict";e.d(y,{Z:function(){return C}});var X=e(58024),S=e(91894),q=e(13062),M=e(71230),ee=e(57663),x=e(71577),E=e(62999),N=e(54680),A=e(89032),v=e(15746),h=e(20228),o=e(11382),K=e(14965),R=e(91774),Z=e(67294),I=e(18974),a=e.n(I),j=e(30381),D=e.n(j),r=e(85893),_=R.Z.RangePicker;function C(n){var B=function(){return(0,r.jsx)("div",{className:a()["loading-card"],children:(0,r.jsx)(o.Z,{size:"large"})})};return(0,r.jsxs)("div",{children:[n.showLoading?(0,r.jsx)(B,{}):null,(0,r.jsx)(S.Z,{className:a()["data-search-card"],children:(0,r.jsxs)(M.Z,{gutter:20,className:a()["data-search-row"],children:[(0,r.jsx)(v.Z,{xs:24,sm:24,md:24,lg:12,xl:6,className:a()["data-search-item"],children:(0,r.jsx)(_,{size:"middle",className:a()["data-search-sufixx"],value:n.timeRange,onChange:function(g,m){var L=[D()(D()(new Date(m[0])).format("YYYY-MM-DD 00:00:00")),D()(D()(new Date(m[1])).format("YYYY-MM-DD 23:59:59"))];n.onTimePickerChange(L)}})}),(0,r.jsxs)(v.Z,{xs:24,sm:24,md:24,lg:12,xl:6,className:a()["data-search-item"],children:[(0,r.jsx)("div",{className:n.searchDayIndex===0?"".concat(a()["data-search-day"]," ").concat(a()["search-day-selected"]):"".concat(a()["data-search-day"]),onClick:function(){return n.onChangeTimeIndex(0)},children:"\u4ECA\u5929"}),(0,r.jsx)("div",{className:n.searchDayIndex===1?"".concat(a()["data-search-day"]," ").concat(a()["search-day-selected"]):"".concat(a()["data-search-day"]),onClick:function(){return n.onChangeTimeIndex(1)},children:"\u6628\u5929"}),(0,r.jsx)("div",{className:n.searchDayIndex===2?"".concat(a()["data-search-day"]," ").concat(a()["search-day-selected"]):"".concat(a()["data-search-day"]),onClick:function(){return n.onChangeTimeIndex(2)},children:"\u8FD17\u5929"}),(0,r.jsx)("div",{className:n.searchDayIndex===3?"".concat(a()["data-search-day"]," ").concat(a()["search-day-selected"]):"".concat(a()["data-search-day"]),onClick:function(){return n.onChangeTimeIndex(3)},children:"\u8FD130\u5929"})]}),(0,r.jsx)(v.Z,{xs:24,sm:24,md:24,lg:12,xl:6,className:a()["data-search-item"],children:(0,r.jsx)(N.Z,{className:a()["data-search-sufixx"],dropdownStyle:{maxHeight:400,overflow:"auto"},value:n.currentOrg.title,treeData:n.orgTree,onSelect:function(g,m){m.type===2||m===3?n.onCurrentOrgChange(m):n.onCurrentOrgChange("")},placeholder:"\u8BF7\u9009\u62E9\u7EC4\u7EC7\u67B6\u6784",treeDefaultExpandAll:!0})}),(0,r.jsx)(v.Z,{xs:24,sm:24,md:12,lg:12,xl:6,className:a()["data-search-item"],children:(0,r.jsxs)("div",{className:a()["data-search-btns"],children:[(0,r.jsx)(x.Z,{className:a()["search-btn-item"],onClick:n.onResetSearch,children:"\u91CD\u7F6E"}),(0,r.jsx)(x.Z,{className:a()["search-btn-item"],type:"primary",onClick:n.onQueryBtn,children:"\u67E5\u8BE2"})]})})]})})]})}},25647:function(f,y,e){"use strict";e.r(y),e.d(y,{default:function(){return B}});var X=e(13062),S=e(71230),q=e(89032),M=e(15746),ee=e(58024),x=e(91894),E=e(39428),N=e(34792),A=e(48086),v=e(3182),h=e(2824),o=e(67294),K=e(78009),R=e(97632),Z=e(15916),I=e(30381),a=e.n(I),j=e(94671),D=e.n(j),r=e(11849),_=e(48971),C={getOrgTree:function(){return(0,_.WY)("/kitchen/api/report-statistics/org-tree",{method:"GET"})},getReportStatisticsMarketing:function(g){return(0,_.WY)("/kitchen/api/report-statistics/marketing",{method:"POST",data:(0,r.Z)({},g)})}},n=e(85893);function B(){var l=(0,o.useState)(0),g=(0,h.Z)(l,2),m=g[0],L=g[1],ae=(0,o.useState)([a()(a()(new Date(Date.now())).format("YYYY-MM-DD 00:00:00")),a()(a()(new Date(Date.now())).format("YYYY-MM-DD 23:59:59"))]),U=(0,h.Z)(ae,2),W=U[0],p=U[1],te=(0,o.useState)([]),w=(0,h.Z)(te,2),ne=w[0],re=w[1],se=(0,o.useState)(!1),G=(0,h.Z)(se,2),ce=G[0],O=G[1],oe=(0,o.useState)(""),F=(0,h.Z)(oe,2),Q=F[0],z=F[1],ie=(0,o.useState)([]),b=(0,h.Z)(ie,2),k=b[0],de=b[1],le=(0,o.useState)([]),H=(0,h.Z)(le,2),V=H[0],ue=H[1],T=null,P=null,he=function(s){L(s);var t=[];switch(s){case 0:t=[a()(a()(new Date(Date.now())).format("YYYY-MM-DD 00:00:00")),a()(a()(new Date(Date.now())).format("YYYY-MM-DD 23:59:59"))];break;case 1:t=[a()(a()(new Date(Date.now()-24*60*60*1e3)).format("YYYY-MM-DD 00:00:00")),a()(a()(new Date(Date.now()-24*60*60*1e3)).format("YYYY-MM-DD 23:59:59"))];break;case 2:t=[a()(a()(new Date(Date.now()-24*60*60*1e3*7)).format("YYYY-MM-DD 00:00:00")),a()(a()(new Date(Date.now())).format("YYYY-MM-DD 23:59:59"))];break;case 3:t=[a()(a()(new Date(Date.now()-24*60*60*1e3*30)).format("YYYY-MM-DD 00:00:00")),a()(a()(new Date(Date.now())).format("YYYY-MM-DD 23:59:59"))];break}p(t)},me=function(){var i=(0,v.Z)((0,E.Z)().mark(function s(){var t,u;return(0,E.Z)().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return O(!0),d.next=3,C.getOrgTree();case 3:t=d.sent,O(!1),t.statusCode===200?(u=t.data,ve(u),re(u)):A.default.error(t.errors||"\u83B7\u53D6\u7EC4\u7EC7\u6811\u51FA\u9519");case 6:case"end":return d.stop()}},s)}));return function(){return i.apply(this,arguments)}}(),ve=function i(s){s.forEach(function(t){t.children&&t.children.length>0?i(t.children):t.type===2||t.type===3?t.disabled=!1:t.disabled=!0})},De=function(){z("")},ge=function(s){z(s)},fe=function(s){p(s)},$=function(){var i=(0,v.Z)((0,E.Z)().mark(function s(){var t;return(0,E.Z)().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return O(!0),c.next=3,C.getReportStatisticsMarketing({sTime:W[0]._i,eTime:W[1]._i,key:[Q.key||""]});case 3:t=c.sent,O(!1),t.statusCode===200?(de(t.data.activity),ue(t.data.coupon)):A.default.error(t.errors||"\u83B7\u53D6\u8425\u9500\u62A5\u8868\u5217\u8868\u51FA\u9519");case 6:case"end":return c.stop()}},s)}));return function(){return i.apply(this,arguments)}}(),xe=function(){var s=document.getElementById("activity-echarts");T=Z.S1(s);var t=[],u=[];k.forEach(function(d){t.push(d.activityName),u.push(d.numberParticipants)});var c={title:{text:"\u6D3B\u52A8\u62A5\u8868"},tooltip:{trigger:"axis"},toolbox:{feature:{saveAsImage:{}}},xAxis:{type:"category",data:t},yAxis:{type:"value"},series:[{data:u,type:"bar",showBackground:!0,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)"}}]};c&&T.setOption(c)},Ee=function(){var s=document.getElementById("coupon-ehcarts");P=Z.S1(s);var t=[],u=[],c=[],d=[];V.forEach(function(Y){t.push(Y.couponName),u.push(Y.preferentialAmount),c.push(Y.send),d.push(Y.get)});var J={title:{text:"\u4F18\u60E0\u5238\u62A5\u8868"},tooltip:{trigger:"axis"},legend:{data:["\u4F18\u60E0\u91D1\u989D","\u53D1\u653E\u6570\u91CF","\u9886\u53D6\u6570\u91CF"]},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},toolbox:{feature:{saveAsImage:{}}},xAxis:{type:"category",boundaryGap:!1,data:t},yAxis:{type:"value"},series:[{name:"\u4F18\u60E0\u91D1\u989D",type:"line",stack:"Total",data:u},{name:"\u53D1\u653E\u6570\u91CF",type:"line",stack:"Total",data:c},{name:"\u9886\u53D6\u6570\u91CF",type:"line",stack:"Total",data:d}]};J&&P.setOption(J)};return(0,o.useEffect)(function(){me(),$()},[]),(0,o.useEffect)(function(){xe(),Ee(),window.onresize=function(){T&&P&&(T.resize(),P.resize())}},[k,V]),(0,n.jsxs)(K.ZP,{children:[(0,n.jsx)(R.Z,{orgTree:ne,timeRange:W,searchDayIndex:m,currentOrg:Q,showLoading:ce,onTimePickerChange:fe,onChangeTimeIndex:he,onCurrentOrgChange:ge,onResetSearch:De,onQueryBtn:$}),(0,n.jsxs)(S.Z,{gutter:10,children:[(0,n.jsx)(M.Z,{xs:24,sm:24,md:24,lg:8,xl:8,children:(0,n.jsx)(x.Z,{children:(0,n.jsx)("div",{id:"activity-echarts",className:D()["activity-echarts"]})})}),(0,n.jsx)(M.Z,{xs:24,sm:24,md:24,lg:16,xl:16,children:(0,n.jsx)(x.Z,{children:(0,n.jsx)("div",{id:"coupon-ehcarts",className:D()["coupon-ehcarts"]})})})]})]})}}}]); +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[2642],{18974:function(f){f.exports={"data-search-card":"data-search-card___fc1xW","data-search-row":"data-search-row___FtrAv","data-search-item":"data-search-item___g5H_b","data-search-prefix":"data-search-prefix___bxf2p","search-btn-item":"search-btn-item___1lD6h","data-search-day":"data-search-day___1AMa5","search-day-selected":"search-day-selected___1rdk5","data-search-sufixx":"data-search-sufixx___3Ht7c","loading-card":"loading-card___2AdV6","member-card-box":"member-card-box___1GV0Y","member-card-prefix":"member-card-prefix___3LNuc","member-card-sufixx":"member-card-sufixx___AFiDV","new-member":"new-member___2TlTQ","repur-chase":"repur-chase___1cYei","member-card":"member-card___3syWs","member-row-common":"member-row-common___1sZlj"}},94671:function(f){f.exports={"data-search-card":"data-search-card___3__W1","data-search-box":"data-search-box___1JO3P","search-btn-item":"search-btn-item___pebTO","activity-echarts":"activity-echarts___30Mkv","coupon-ehcarts":"coupon-ehcarts___2woXy"}},97632:function(f,y,e){"use strict";e.d(y,{Z:function(){return C}});var X=e(58024),S=e(91894),q=e(13062),M=e(71230),ee=e(57663),x=e(71577),E=e(62999),N=e(54680),A=e(89032),v=e(15746),h=e(20228),o=e(11382),K=e(14965),R=e(91774),Z=e(67294),I=e(18974),a=e.n(I),j=e(30381),D=e.n(j),r=e(85893),_=R.Z.RangePicker;function C(n){var B=function(){return(0,r.jsx)("div",{className:a()["loading-card"],children:(0,r.jsx)(o.Z,{size:"large"})})};return(0,r.jsxs)("div",{children:[n.showLoading?(0,r.jsx)(B,{}):null,(0,r.jsx)(S.Z,{className:a()["data-search-card"],children:(0,r.jsxs)(M.Z,{gutter:20,className:a()["data-search-row"],children:[(0,r.jsx)(v.Z,{xs:24,sm:24,md:24,lg:12,xl:6,className:a()["data-search-item"],children:(0,r.jsx)(_,{size:"middle",className:a()["data-search-sufixx"],value:n.timeRange,onChange:function(g,m){var L=[D()(D()(new Date(m[0])).format("YYYY-MM-DD 00:00:00")),D()(D()(new Date(m[1])).format("YYYY-MM-DD 23:59:59"))];n.onTimePickerChange(L)}})}),(0,r.jsxs)(v.Z,{xs:24,sm:24,md:24,lg:12,xl:6,className:a()["data-search-item"],children:[(0,r.jsx)("div",{className:n.searchDayIndex===0?"".concat(a()["data-search-day"]," ").concat(a()["search-day-selected"]):"".concat(a()["data-search-day"]),onClick:function(){return n.onChangeTimeIndex(0)},children:"\u4ECA\u5929"}),(0,r.jsx)("div",{className:n.searchDayIndex===1?"".concat(a()["data-search-day"]," ").concat(a()["search-day-selected"]):"".concat(a()["data-search-day"]),onClick:function(){return n.onChangeTimeIndex(1)},children:"\u6628\u5929"}),(0,r.jsx)("div",{className:n.searchDayIndex===2?"".concat(a()["data-search-day"]," ").concat(a()["search-day-selected"]):"".concat(a()["data-search-day"]),onClick:function(){return n.onChangeTimeIndex(2)},children:"\u8FD17\u5929"}),(0,r.jsx)("div",{className:n.searchDayIndex===3?"".concat(a()["data-search-day"]," ").concat(a()["search-day-selected"]):"".concat(a()["data-search-day"]),onClick:function(){return n.onChangeTimeIndex(3)},children:"\u8FD130\u5929"})]}),(0,r.jsx)(v.Z,{xs:24,sm:24,md:24,lg:12,xl:6,className:a()["data-search-item"],children:(0,r.jsx)(N.Z,{className:a()["data-search-sufixx"],dropdownStyle:{maxHeight:400,overflow:"auto"},value:n.currentOrg.title,treeData:n.orgTree,onSelect:function(g,m){m.type===2||m===3?n.onCurrentOrgChange(m):n.onCurrentOrgChange("")},placeholder:"\u8BF7\u9009\u62E9\u7EC4\u7EC7\u67B6\u6784",treeDefaultExpandAll:!0})}),(0,r.jsx)(v.Z,{xs:24,sm:24,md:12,lg:12,xl:6,className:a()["data-search-item"],children:(0,r.jsxs)("div",{className:a()["data-search-btns"],children:[(0,r.jsx)(x.Z,{className:a()["search-btn-item"],onClick:n.onResetSearch,children:"\u91CD\u7F6E"}),(0,r.jsx)(x.Z,{className:a()["search-btn-item"],type:"primary",onClick:n.onQueryBtn,children:"\u67E5\u8BE2"})]})})]})})]})}},25647:function(f,y,e){"use strict";e.r(y),e.d(y,{default:function(){return B}});var X=e(13062),S=e(71230),q=e(89032),M=e(15746),ee=e(58024),x=e(91894),E=e(39428),N=e(34792),A=e(48086),v=e(3182),h=e(2824),o=e(67294),K=e(78009),R=e(97632),Z=e(72866),I=e(30381),a=e.n(I),j=e(94671),D=e.n(j),r=e(11849),_=e(48971),C={getOrgTree:function(){return(0,_.WY)("/kitchen/api/report-statistics/org-tree",{method:"GET"})},getReportStatisticsMarketing:function(g){return(0,_.WY)("/kitchen/api/report-statistics/marketing",{method:"POST",data:(0,r.Z)({},g)})}},n=e(85893);function B(){var l=(0,o.useState)(0),g=(0,h.Z)(l,2),m=g[0],L=g[1],ae=(0,o.useState)([a()(a()(new Date(Date.now())).format("YYYY-MM-DD 00:00:00")),a()(a()(new Date(Date.now())).format("YYYY-MM-DD 23:59:59"))]),U=(0,h.Z)(ae,2),W=U[0],p=U[1],te=(0,o.useState)([]),w=(0,h.Z)(te,2),ne=w[0],re=w[1],se=(0,o.useState)(!1),G=(0,h.Z)(se,2),ce=G[0],O=G[1],oe=(0,o.useState)(""),F=(0,h.Z)(oe,2),Q=F[0],z=F[1],ie=(0,o.useState)([]),b=(0,h.Z)(ie,2),k=b[0],de=b[1],le=(0,o.useState)([]),H=(0,h.Z)(le,2),V=H[0],ue=H[1],T=null,P=null,he=function(s){L(s);var t=[];switch(s){case 0:t=[a()(a()(new Date(Date.now())).format("YYYY-MM-DD 00:00:00")),a()(a()(new Date(Date.now())).format("YYYY-MM-DD 23:59:59"))];break;case 1:t=[a()(a()(new Date(Date.now()-24*60*60*1e3)).format("YYYY-MM-DD 00:00:00")),a()(a()(new Date(Date.now()-24*60*60*1e3)).format("YYYY-MM-DD 23:59:59"))];break;case 2:t=[a()(a()(new Date(Date.now()-24*60*60*1e3*7)).format("YYYY-MM-DD 00:00:00")),a()(a()(new Date(Date.now())).format("YYYY-MM-DD 23:59:59"))];break;case 3:t=[a()(a()(new Date(Date.now()-24*60*60*1e3*30)).format("YYYY-MM-DD 00:00:00")),a()(a()(new Date(Date.now())).format("YYYY-MM-DD 23:59:59"))];break}p(t)},me=function(){var i=(0,v.Z)((0,E.Z)().mark(function s(){var t,u;return(0,E.Z)().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return O(!0),d.next=3,C.getOrgTree();case 3:t=d.sent,O(!1),t.statusCode===200?(u=t.data,ve(u),re(u)):A.default.error(t.errors||"\u83B7\u53D6\u7EC4\u7EC7\u6811\u51FA\u9519");case 6:case"end":return d.stop()}},s)}));return function(){return i.apply(this,arguments)}}(),ve=function i(s){s.forEach(function(t){t.children&&t.children.length>0?i(t.children):t.type===2||t.type===3?t.disabled=!1:t.disabled=!0})},De=function(){z("")},ge=function(s){z(s)},fe=function(s){p(s)},$=function(){var i=(0,v.Z)((0,E.Z)().mark(function s(){var t;return(0,E.Z)().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return O(!0),c.next=3,C.getReportStatisticsMarketing({sTime:W[0]._i,eTime:W[1]._i,key:[Q.key||""]});case 3:t=c.sent,O(!1),t.statusCode===200?(de(t.data.activity),ue(t.data.coupon)):A.default.error(t.errors||"\u83B7\u53D6\u8425\u9500\u62A5\u8868\u5217\u8868\u51FA\u9519");case 6:case"end":return c.stop()}},s)}));return function(){return i.apply(this,arguments)}}(),xe=function(){var s=document.getElementById("activity-echarts");T=Z.S1(s);var t=[],u=[];k.forEach(function(d){t.push(d.activityName),u.push(d.numberParticipants)});var c={title:{text:"\u6D3B\u52A8\u62A5\u8868"},tooltip:{trigger:"axis"},toolbox:{feature:{saveAsImage:{}}},xAxis:{type:"category",data:t},yAxis:{type:"value"},series:[{data:u,type:"bar",showBackground:!0,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)"}}]};c&&T.setOption(c)},Ee=function(){var s=document.getElementById("coupon-ehcarts");P=Z.S1(s);var t=[],u=[],c=[],d=[];V.forEach(function(Y){t.push(Y.couponName),u.push(Y.preferentialAmount),c.push(Y.send),d.push(Y.get)});var J={title:{text:"\u4F18\u60E0\u5238\u62A5\u8868"},tooltip:{trigger:"axis"},legend:{data:["\u4F18\u60E0\u91D1\u989D","\u53D1\u653E\u6570\u91CF","\u9886\u53D6\u6570\u91CF"]},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},toolbox:{feature:{saveAsImage:{}}},xAxis:{type:"category",boundaryGap:!1,data:t},yAxis:{type:"value"},series:[{name:"\u4F18\u60E0\u91D1\u989D",type:"line",stack:"Total",data:u},{name:"\u53D1\u653E\u6570\u91CF",type:"line",stack:"Total",data:c},{name:"\u9886\u53D6\u6570\u91CF",type:"line",stack:"Total",data:d}]};J&&P.setOption(J)};return(0,o.useEffect)(function(){me(),$()},[]),(0,o.useEffect)(function(){xe(),Ee(),window.onresize=function(){T&&P&&(T.resize(),P.resize())}},[k,V]),(0,n.jsxs)(K.ZP,{children:[(0,n.jsx)(R.Z,{orgTree:ne,timeRange:W,searchDayIndex:m,currentOrg:Q,showLoading:ce,onTimePickerChange:fe,onChangeTimeIndex:he,onCurrentOrgChange:ge,onResetSearch:De,onQueryBtn:$}),(0,n.jsxs)(S.Z,{gutter:10,children:[(0,n.jsx)(M.Z,{xs:24,sm:24,md:24,lg:8,xl:8,children:(0,n.jsx)(x.Z,{children:(0,n.jsx)("div",{id:"activity-echarts",className:D()["activity-echarts"]})})}),(0,n.jsx)(M.Z,{xs:24,sm:24,md:24,lg:16,xl:16,children:(0,n.jsx)(x.Z,{children:(0,n.jsx)("div",{id:"coupon-ehcarts",className:D()["coupon-ehcarts"]})})})]})]})}}}]); diff --git a/dist/p__order__order-summary-manage.f752b151.async.js b/dist/p__order__order-summary-manage.181ee0f4.async.js similarity index 85% rename from dist/p__order__order-summary-manage.f752b151.async.js rename to dist/p__order__order-summary-manage.181ee0f4.async.js index e1a5ba6..71a1331 100644 --- a/dist/p__order__order-summary-manage.f752b151.async.js +++ b/dist/p__order__order-summary-manage.181ee0f4.async.js @@ -1 +1 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[8849,1322],{56036:function(G,W,r){"use strict";r.r(W),r.d(W,{default:function(){return d}});var c=r(39428),T=r(3182),x=r(57663),S=r(71577),A=r(62999),Z=r(54680),g=r(2824),E=r(90631),p=r(67294),O=r(78009),_=r(16894),P=r(53667),b=r.n(P),y=r(48971),L={orderSummaryList:function(e){return e.isreport=!0,(0,y.WY)("/kitchen/api/order/order-summary",{method:"Post",data:e})},srdTypeList:function(e){return(0,y.WY)("/kitchen/api/storetype/list",{method:"Post",data:e})},srdList:function(e){return(0,y.WY)("/kitchen/api/store/list",{method:"Post",data:e})},goodsList:function(e){return(0,y.WY)("/kitchen/api/goodes/list",{method:"Post",data:e})},goodsTypeList:function(e){return(0,y.WY)("/kitchen/api/goodstype/list",{method:"Post",data:e})}},w=r(3408),M=r(30381),v=r(85893),n=function(){var e=(0,p.useState)([]),I=(0,g.Z)(e,2),U=I[0],H=I[1],N=(0,p.useState)([]),j=(0,g.Z)(N,2),de=j[0],z=j[1],V=(0,p.useState)([]),B=(0,g.Z)(V,2),oe=B[0],J=B[1],Q=(0,p.useState)([]),Y=(0,g.Z)(Q,2),le=Y[0],X=Y[1],q=(0,p.useState)([]),k=(0,g.Z)(q,2),F=k[0],ee=k[1],te=(0,p.useRef)(),re=(0,p.useState)([]),K=(0,g.Z)(re,2),ne=K[0],ae=K[1],ie=(0,p.useState)([]),$=(0,g.Z)(ie,2),ce=$[0],ue=$[1];(0,p.useEffect)(function(){function f(){(0,w.FM)().then(function(i){a(i.data);function a(u){for(var l in u)u[l].type==2||u[l].type==3?u[l].disabled=!1:u[l].disabled=!0,u[l].children&&a(u[l].children)}ae(i.data);var t={};D(i.data);function D(u){for(var l in u)t[u[l].disabled]=!0,t[u[l].value]={text:u[l].title},u[l].children&&D(u[l].children)}ue(t)})}function s(){L.srdTypeList().then(function(i){var a=i.data;a.forEach(function(t){t.storeTypeId=t.id,t.text=t.name}),H(a)})}function o(){L.srdList().then(function(i){var a=i.data;a.forEach(function(t){t.value=t.id,t.label=t.name}),z(a)})}function R(){L.goodsList().then(function(i){var a=i.data;a.forEach(function(t){t.label=t.name,t.value=t.id}),J(a)})}function m(){L.goodsTypeList().then(function(i){var a=i.data;a.forEach(function(t){t.label=t.name,t.value=t.id}),X(a)})}o(),s(),R(),m(),f()},[]);function se(){var f=F.ReqDetailList,s={},o=[];C.map(function(m,i){i>2&&o.push(m)}),s.fileName="\u8BA2\u5355\u6C47\u603B",s.datas=[{sheetData:F.map(function(m){var i={};return C.forEach(function(a,t){t>2&&(i[a.dataIndex]=m[a.dataIndex])}),i}),sheetName:"\u8BA2\u5355\u6C47\u603B",sheetFilter:o.map(function(m){return m.dataIndex}),sheetHeader:o.map(function(m){return m.title}),columnWidths:o.map(function(){return 9})}];var R=new(b())(s);R.saveExcel()}var C=[{title:"\u4E3B\u952E",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0},{title:"\u5E97\u94FA\u540D\u79F0",dataIndex:"storeId",hideInTable:!0,width:120,renderFormItem:function(){return(0,v.jsx)(Z.Z,{style:{width:"100%"},dropdownStyle:{maxHeight:400,overflow:"auto"},treeData:ne,placeholder:"\u5F52\u5C5E\u95E8\u5E97",treeDefaultExpandAll:!0})}},{title:"\u65E5\u671F\u8303\u56F4",dataIndex:"startTime",valueType:"dateRange",hideInTable:!0,initialValue:[]},{title:"\u5E97\u94FA\u540D\u79F0",dataIndex:"storeName",hideInSearch:!0,width:120},{title:"\u603B\u8BA2\u5355",dataIndex:"sumOrder",hideInSearch:!0,width:120},{title:"\u5E94\u6536\u6B3E\u91D1\u989D",dataIndex:"orderOriginalMoney",renderText:function(s){return"".concat(s,"\xA5")},hideInSearch:!0,width:160},{title:"\u6B63\u5E38\u8BA2\u5355",dataIndex:"successfulCount",hideInSearch:!0,width:120},{title:"\u5B9E\u6536\u4ED8\u6B3E\u91D1\u989D",dataIndex:"orderRealMoney",hideInSearch:!0,renderText:function(s){return"".concat(s,"\xA5")},width:160},{title:"\u4F18\u60E0\u91D1\u989D",dataIndex:"discountMoney",hideInSearch:!0,renderText:function(s){return"".concat(s,"\xA5")},width:120},{title:"\u672A\u652F\u4ED8\u8BA2\u5355",dataIndex:"noPayRealCount",hideInSearch:!0,width:120},{title:"\u672A\u652F\u4ED8\u91D1\u989D",dataIndex:"noPayRealMoney",hideInSearch:!0,renderText:function(s){return"".concat(s,"\xA5")},width:120},{title:"\u9000\u6B3E\u8BA2\u5355",dataIndex:"refundCount",hideInSearch:!0,width:120},{title:"\u9000\u6B3E\u91D1\u989D",dataIndex:"refundRealMoney",hideInSearch:!0,renderText:function(s){return"".concat(s,"\xA5")},width:120}];return(0,v.jsx)(O.ZP,{children:(0,v.jsx)(_.ZP,{headerTitle:"\u8BA2\u5355\u6C47\u603B\u67E5\u8BE2",actionRef:te,rowKey:"id",scroll:{x:1300},search:{labelWidth:120},toolBarRender:function(){return[(0,v.jsxs)(S.Z,{type:"primary",onClick:function(){return se()},children:[(0,v.jsx)(E.Z,{})," \u5BFC\u51FA"]},"create")]},columns:C,request:function(){var f=(0,T.Z)((0,c.Z)().mark(function s(o,R,m){var i,a,t;return(0,c.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return i=[],a=0,o.storeTypeId!=null&&(o.storeTypeId=U[o.storeTypeId].storeTypeId),t={current:o.current,pageSize:o.pageSize,storeId:[o.storeId],Order_CreateTime:o.startTime[0],Order_EndTime:o.startTime[1]},u.next=6,L.orderSummaryList(t).then(function(l){i=l.data.data,a=l.data.total,ee(l.data.data)});case 6:return u.abrupt("return",{data:i,success:!0,total:a});case 7:case"end":return u.stop()}},s)}));return function(s,o,R){return f.apply(this,arguments)}}()})})},d=n},3408:function(G,W,r){"use strict";r.d(W,{lM:function(){return A},IH:function(){return g},mm:function(){return _},eP:function(){return b},FM:function(){return M}});var c=r(39428),T=r(11849),x=r(3182),S=r(48971);function A(n,d){return Z.apply(this,arguments)}function Z(){return Z=(0,x.Z)((0,c.Z)().mark(function n(d,h){return(0,c.Z)().wrap(function(I){for(;;)switch(I.prev=I.next){case 0:return I.abrupt("return",(0,S.WY)("/kitchen/api/sysOrg\u200B/page",{method:"GET",params:(0,T.Z)({},d)}));case 1:case"end":return I.stop()}},n)})),Z.apply(this,arguments)}function g(n){return E.apply(this,arguments)}function E(){return E=(0,x.Z)((0,c.Z)().mark(function n(d){return(0,c.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,S.WY)("/kitchen/api/sysOrg/add",{method:"POST",data:(0,T.Z)({},d)}));case 1:case"end":return e.stop()}},n)})),E.apply(this,arguments)}function p(n){return O.apply(this,arguments)}function O(){return O=_asyncToGenerator(_regeneratorRuntime().mark(function n(d){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("\u200B/kitchen/api\u200B/sysOrg\u200B/list",{method:"POST",data:_objectSpread({},d)}));case 1:case"end":return e.stop()}},n)})),O.apply(this,arguments)}function _(n){return P.apply(this,arguments)}function P(){return P=(0,x.Z)((0,c.Z)().mark(function n(d){return(0,c.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,S.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/delete",{method:"POST",data:(0,T.Z)({},d)}));case 1:case"end":return e.stop()}},n)})),P.apply(this,arguments)}function b(n){return y.apply(this,arguments)}function y(){return y=(0,x.Z)((0,c.Z)().mark(function n(d){return(0,c.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,S.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/edit",{method:"POST",data:(0,T.Z)({},d)}));case 1:case"end":return e.stop()}},n)})),y.apply(this,arguments)}function L(n){return w.apply(this,arguments)}function w(){return w=_asyncToGenerator(_regeneratorRuntime().mark(function n(d){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("/kitchen\u200B/api\u200B/sysOrg\u200B/detail",{method:"POST",data:_objectSpread({},d)}));case 1:case"end":return e.stop()}},n)})),w.apply(this,arguments)}function M(n){return v.apply(this,arguments)}function v(){return v=(0,x.Z)((0,c.Z)().mark(function n(d){return(0,c.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,S.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/tree",{data:(0,T.Z)({},d)}));case 1:case"end":return e.stop()}},n)})),v.apply(this,arguments)}}}]); +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[8849,1322],{56036:function(G,_,r){"use strict";r.r(_),r.d(_,{default:function(){return d}});var c=r(39428),T=r(3182),x=r(57663),S=r(71577),W=r(62999),Z=r(54680),g=r(2824),E=r(90631),p=r(67294),O=r(78009),b=r(16894),P=r(53667),A=r.n(P),y=r(48971),L={orderSummaryList:function(e){return e.isreport=!0,(0,y.WY)("/kitchen/api/order/order-summary",{method:"Post",data:e})},srdTypeList:function(e){return(0,y.WY)("/kitchen/api/storetype/list",{method:"Post",data:e})},srdList:function(e){return(0,y.WY)("/kitchen/api/store/list",{method:"Post",data:e})},goodsList:function(e){return(0,y.WY)("/kitchen/api/goodes/list",{method:"Post",data:e})},goodsTypeList:function(e){return(0,y.WY)("/kitchen/api/goodstype/list",{method:"Post",data:e})}},w=r(3408),M=r(30381),v=r(85893),n=function(){var e=(0,p.useState)([]),I=(0,g.Z)(e,2),U=I[0],H=I[1],N=(0,p.useState)([]),j=(0,g.Z)(N,2),de=j[0],z=j[1],V=(0,p.useState)([]),B=(0,g.Z)(V,2),oe=B[0],J=B[1],Q=(0,p.useState)([]),Y=(0,g.Z)(Q,2),le=Y[0],X=Y[1],q=(0,p.useState)([]),F=(0,g.Z)(q,2),K=F[0],ee=F[1],te=(0,p.useRef)(),re=(0,p.useState)([]),$=(0,g.Z)(re,2),ne=$[0],ae=$[1],ie=(0,p.useState)([]),k=(0,g.Z)(ie,2),ce=k[0],ue=k[1];(0,p.useEffect)(function(){function f(){(0,w.FM)().then(function(i){a(i.data);function a(u){for(var l in u)u[l].type==2||u[l].type==3?u[l].disabled=!1:u[l].disabled=!0,u[l].children&&a(u[l].children)}ae(i.data);var t={};D(i.data);function D(u){for(var l in u)t[u[l].disabled]=!0,t[u[l].value]={text:u[l].title},u[l].children&&D(u[l].children)}ue(t)})}function s(){L.srdTypeList().then(function(i){var a=i.data;a.forEach(function(t){t.storeTypeId=t.id,t.text=t.name}),H(a)})}function o(){L.srdList().then(function(i){var a=i.data;a.forEach(function(t){t.value=t.id,t.label=t.name}),z(a)})}function R(){L.goodsList().then(function(i){var a=i.data;a.forEach(function(t){t.label=t.name,t.value=t.id}),J(a)})}function m(){L.goodsTypeList().then(function(i){var a=i.data;a.forEach(function(t){t.label=t.name,t.value=t.id}),X(a)})}o(),s(),R(),m(),f()},[]);function se(){var f=K.ReqDetailList,s={},o=[];C.map(function(m,i){i>2&&o.push(m)}),s.fileName="\u8BA2\u5355\u6C47\u603B",s.datas=[{sheetData:K.map(function(m){var i={};return C.forEach(function(a,t){t>2&&(i[a.dataIndex]=m[a.dataIndex])}),i}),sheetName:"\u8BA2\u5355\u6C47\u603B",sheetFilter:o.map(function(m){return m.dataIndex}),sheetHeader:o.map(function(m){return m.title}),columnWidths:o.map(function(){return 9})}];var R=new(A())(s);R.saveExcel()}var C=[{title:"\u4E3B\u952E",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0},{title:"\u5E97\u94FA\u540D\u79F0",dataIndex:"storeId",hideInTable:!0,width:120,renderFormItem:function(){return(0,v.jsx)(Z.Z,{style:{width:"100%"},dropdownStyle:{maxHeight:400,overflow:"auto"},treeData:ne,placeholder:"\u5F52\u5C5E\u95E8\u5E97",treeDefaultExpandAll:!0})}},{title:"\u65E5\u671F\u8303\u56F4",dataIndex:"startTime",valueType:"dateRange",hideInTable:!0,initialValue:[]},{title:"\u5E97\u94FA\u540D\u79F0",dataIndex:"storeName",hideInSearch:!0,width:120},{title:"\u603B\u8BA2\u5355",dataIndex:"sumOrder",hideInSearch:!0,width:120},{title:"\u5E94\u6536\u6B3E\u91D1\u989D",dataIndex:"orderOriginalMoney",renderText:function(s){return"".concat(s,"\xA5")},hideInSearch:!0,width:160},{title:"\u6B63\u5E38\u8BA2\u5355",dataIndex:"successfulCount",hideInSearch:!0,width:120},{title:"\u5B9E\u6536\u4ED8\u6B3E\u91D1\u989D",dataIndex:"orderRealMoney",hideInSearch:!0,renderText:function(s){return"".concat(s,"\xA5")},width:160},{title:"\u4F18\u60E0\u91D1\u989D",dataIndex:"discountMoney",hideInSearch:!0,renderText:function(s){return"".concat(s,"\xA5")},width:120},{title:"\u672A\u652F\u4ED8\u8BA2\u5355",dataIndex:"noPayRealCount",hideInSearch:!0,width:120},{title:"\u672A\u652F\u4ED8\u91D1\u989D",dataIndex:"noPayRealMoney",hideInSearch:!0,renderText:function(s){return"".concat(s,"\xA5")},width:120},{title:"\u9000\u6B3E\u8BA2\u5355",dataIndex:"refundCount",hideInSearch:!0,width:120},{title:"\u9000\u6B3E\u91D1\u989D",dataIndex:"refundRealMoney",hideInSearch:!0,renderText:function(s){return"".concat(s,"\xA5")},width:120}];return(0,v.jsx)(O.ZP,{children:(0,v.jsx)(b.ZP,{headerTitle:"\u8BA2\u5355\u6C47\u603B\u67E5\u8BE2",actionRef:te,rowKey:"id",scroll:{x:1300},search:{labelWidth:120},toolBarRender:function(){return[(0,v.jsxs)(S.Z,{type:"primary",onClick:function(){return se()},children:[(0,v.jsx)(E.Z,{})," \u5BFC\u51FA"]},"create")]},columns:C,request:function(){var f=(0,T.Z)((0,c.Z)().mark(function s(o,R,m){var i,a,t;return(0,c.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return i=[],a=0,o.storeTypeId!=null&&(o.storeTypeId=U[o.storeTypeId].storeTypeId),t={current:o.current,pageSize:o.pageSize,storeId:[o.storeId],Order_CreateTime:o.startTime[0],Order_EndTime:o.startTime[1]},u.next=6,L.orderSummaryList(t).then(function(l){i=l.data.data,a=l.data.total,ee(l.data.data)});case 6:return u.abrupt("return",{data:i,success:!0,total:a});case 7:case"end":return u.stop()}},s)}));return function(s,o,R){return f.apply(this,arguments)}}()})})},d=n},3408:function(G,_,r){"use strict";r.d(_,{lM:function(){return W},IH:function(){return g},mm:function(){return b},eP:function(){return A},FM:function(){return M}});var c=r(39428),T=r(11849),x=r(3182),S=r(48971);function W(n,d){return Z.apply(this,arguments)}function Z(){return Z=(0,x.Z)((0,c.Z)().mark(function n(d,h){return(0,c.Z)().wrap(function(I){for(;;)switch(I.prev=I.next){case 0:return I.abrupt("return",(0,S.WY)("/kitchen/api/sysOrg\u200B/page",{method:"GET",params:(0,T.Z)({},d)}));case 1:case"end":return I.stop()}},n)})),Z.apply(this,arguments)}function g(n){return E.apply(this,arguments)}function E(){return E=(0,x.Z)((0,c.Z)().mark(function n(d){return(0,c.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,S.WY)("/kitchen/api/sysOrg/add",{method:"POST",data:(0,T.Z)({},d)}));case 1:case"end":return e.stop()}},n)})),E.apply(this,arguments)}function p(n){return O.apply(this,arguments)}function O(){return O=_asyncToGenerator(_regeneratorRuntime().mark(function n(d){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("\u200B/kitchen/api\u200B/sysOrg\u200B/list",{method:"POST",data:_objectSpread({},d)}));case 1:case"end":return e.stop()}},n)})),O.apply(this,arguments)}function b(n){return P.apply(this,arguments)}function P(){return P=(0,x.Z)((0,c.Z)().mark(function n(d){return(0,c.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,S.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/delete",{method:"POST",data:(0,T.Z)({},d)}));case 1:case"end":return e.stop()}},n)})),P.apply(this,arguments)}function A(n){return y.apply(this,arguments)}function y(){return y=(0,x.Z)((0,c.Z)().mark(function n(d){return(0,c.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,S.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/edit",{method:"POST",data:(0,T.Z)({},d)}));case 1:case"end":return e.stop()}},n)})),y.apply(this,arguments)}function L(n){return w.apply(this,arguments)}function w(){return w=_asyncToGenerator(_regeneratorRuntime().mark(function n(d){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("/kitchen\u200B/api\u200B/sysOrg\u200B/detail",{method:"POST",data:_objectSpread({},d)}));case 1:case"end":return e.stop()}},n)})),w.apply(this,arguments)}function M(n){return v.apply(this,arguments)}function v(){return v=(0,x.Z)((0,c.Z)().mark(function n(d){return(0,c.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,S.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/tree",{data:(0,T.Z)({},d)}));case 1:case"end":return e.stop()}},n)})),v.apply(this,arguments)}}}]); diff --git a/dist/p__order__sales-gross-profit.0905276f.async.js b/dist/p__order__sales-gross-profit.0905276f.async.js deleted file mode 100644 index 204c5da..0000000 --- a/dist/p__order__sales-gross-profit.0905276f.async.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[6713,1322,9934,4407,6498,6090,274,6314],{20498:function(j){j.exports={"data-search-card":"data-search-card___3kFoI","data-search-box":"data-search-box___3DFSh","search-btn-item":"search-btn-item___3Osl6","table-page":"table-page___3f6vl","loading-card":"loading-card___2D0GH","data-search-item":"data-search-item___SinMf","data-search-input":"data-search-input___3n8I5","data-search-prefix":"data-search-prefix___169Gl","data-search-sufixx":"data-search-sufixx___1KyMR","data-search-btns":"data-search-btns___1TGoh","download-btn":"download-btn___3iu0F"}},80638:function(){},51174:function(j,x,e){"use strict";e.r(x),e.d(x,{default:function(){return A}});var n=e(14781),E=e(36138),S=e(66456),L=e(64411),ue=e(58024),W=e(91894),D=e(57663),$=e(71577),ce=e(13062),T=e(71230),se=e(43358),re=e(34041),r=e(89032),K=e(15746),O=e(62999),g=e(54680),Z=e(93224),a=e(39428),C=e(34792),c=e(48086),i=e(3182),l=e(2824),z=e(20228),G=e(11382),k=e(14965),B=e(91774),d=e(67294),M=e(78009),Q=e(20498),v=e.n(Q),J=e(11849),b=e(48971),U={getReportSalesmargin:function(h){return(0,b.WY)("/kitchen/api/report/salesmargin",{method:"Post",data:h})},goodsList:function(h){return(0,b.WY)("/kitchen/api/goodes/list",{method:"Post",data:h})},goodsTypeList:function(h){return(0,b.WY)("/kitchen/api/goodstype/list",{method:"Post",data:h})},gettree:function(h){return(0,b.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/tree",{data:(0,J.Z)({},h)})}},y=e(30381),m=e.n(y),ne=e(90631),t=e(85893),q=["children"],H=B.Z.RangePicker,R=function(){return(0,t.jsx)("div",{className:v()["loading-card"],children:(0,t.jsx)(G.Z,{size:"large"})})};function A(){var u=(0,d.useState)([]),h=(0,l.Z)(u,2),oe=h[0],_e=h[1],me=(0,d.useState)(1),F=(0,l.Z)(me,2),I=F[0],ge=F[1],w=(0,d.useState)(10),ee=(0,l.Z)(w,2),te=ee[0],he=ee[1],de=(0,d.useState)(0),le=(0,l.Z)(de,2),ie=le[0],Ee=le[1],fe=(0,d.useState)(!1),N=(0,l.Z)(fe,2),Y=N[0],P=N[1],ve=(0,d.useState)([m()(m()(new Date(Date.now()-24*60*60*1e3*7)).format("YYYY-MM-DD 00:00:00")),m()(m()(new Date(Date.now())).format("YYYY-MM-DD 23:59:59"))]),ae=(0,l.Z)(ve,2),V=ae[0],ye=ae[1],Le=(0,d.useState)(""),pe=(0,l.Z)(Le,2),xe=pe[0],De=pe[1],Te=(0,d.useState)([]),Oe=(0,l.Z)(Te,2),Be=Oe[0],We=Oe[1],Ke=(0,d.useState)([]),Pe=(0,l.Z)(Ke,2),Ue=Pe[0],Ne=Pe[1],Ye=(0,d.useState)([]),Se=(0,l.Z)(Ye,2),Ze=Se[0],Ce=Se[1],Ge=(0,d.useState)([]),Me=(0,l.Z)(Ge,2),Re=Me[0],be=Me[1],Fe=(0,d.useState)([]),Ae=(0,l.Z)(Fe,2),we=Ae[0],$e=Ae[1],ze=(0,d.useState)([]),Ie=(0,l.Z)(ze,2),tt=Ie[0],Qe=Ie[1],Je=[{title:"\u95E8\u5E97\u540D\u79F0",dataIndex:"storeId",key:"storeId",render:function(o){var s=Ue.find(function(p){return p.key===o});return s?(0,t.jsx)("span",{children:s.title}):(0,t.jsx)("span",{children:"\u6682\u65E0\u95E8\u5E97\u540D\u79F0"})}},{title:"\u5546\u54C1\u540D\u79F0",dataIndex:"goodsId",key:"goodsId",render:function(o){var s=Re.find(function(p){return p.id===o});return s?(0,t.jsx)("span",{children:s.name}):(0,t.jsx)("span",{children:"\u6682\u65E0\u5546\u54C1\u540D\u79F0"})}},{title:"\u6BDB\u5229\u7387\uFF08%\uFF09",dataIndex:"marginRatio",key:"marginRatio"}],He=function(o,s){ge(o),he(s)},je=function(){var _=(0,i.Z)((0,a.Z)().mark(function o(){var s,p;return(0,a.Z)().wrap(function(X){for(;;)switch(X.prev=X.next){case 0:return s={storeId:xe,goodsId:Ze[0],goodsTypeId:we[0],begintime:V[0],endtime:V[1],current:I,pageSize:te},P(!0),X.next=4,U.getReportSalesmargin(s);case 4:p=X.sent,P(!1),p.statusCode===200?_e(p.data.data):c.default.error(p.errors||"\u83B7\u53D6\u9500\u552E\u6210\u672C\u5931\u8D25");case 7:case"end":return X.stop()}},o)}));return function(){return _.apply(this,arguments)}}(),Ve=function(){var _=(0,i.Z)((0,a.Z)().mark(function o(){var s;return(0,a.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return P(!0),f.next=3,U.gettree({});case 3:s=f.sent,P(!1),s.statusCode===200?(We(s.data),Ne(et(s.data))):c.default.error("\u67E5\u8BE2\u5E97\u94FA\u5217\u8868\u5931\u8D25");case 6:case"end":return f.stop()}},o)}));return function(){return _.apply(this,arguments)}}(),Xe=function(){var _=(0,i.Z)((0,a.Z)().mark(function o(){var s;return(0,a.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return P(!0),f.next=3,U.goodsList({});case 3:s=f.sent,P(!1),s.statusCode===200?be(s.data):c.default.error("\u67E5\u8BE2\u5546\u54C1\u5217\u8868\u5931\u8D25");case 6:case"end":return f.stop()}},o)}));return function(){return _.apply(this,arguments)}}(),ke=function(){var _=(0,i.Z)((0,a.Z)().mark(function o(){var s;return(0,a.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return P(!0),f.next=3,U.goodsTypeList({});case 3:s=f.sent,P(!1),s.statusCode===200?Qe(s.data):c.default.error("\u67E5\u8BE2\u5546\u54C1\u5206\u7C7B\u5217\u8868\u5931\u8D25");case 6:case"end":return f.stop()}},o)}));return function(){return _.apply(this,arguments)}}(),qe=function(){Ce([]),De([]),$e([]),ye([m()(m()(new Date(Date.now()-24*60*60*1e3*7)).format("YYYY-MM-DD 00:00:00")),m()(m()(new Date(Date.now())).format("YYYY-MM-DD 23:59:59"))])},et=function _(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return o.forEach(function(p){var f=p.children,X=(0,Z.Z)(p,q);s.push(X),f&&f.length>0&&_(f,s)}),s};return(0,d.useEffect)(function(){je(),Ve(),Xe(),ke()},[]),(0,t.jsxs)(M.ZP,{children:[Y?(0,t.jsx)(R,{}):null,(0,t.jsxs)(W.Z,{className:v()["data-search-card"],children:[(0,t.jsxs)(T.Z,{gutter:20,justify:"space-between",children:[(0,t.jsxs)(K.Z,{xs:24,sm:24,md:12,lg:12,xl:6,className:v()["data-search-item"],children:[(0,t.jsx)("div",{className:v()["data-search-prefix"],children:"\u95E8\u5E97"}),(0,t.jsx)(g.Z,{className:v()["data-search-sufixx"],value:xe,dropdownStyle:{maxHeight:400,overflow:"auto"},treeData:Be,placeholder:"\u8BF7\u9009\u62E9\u95E8\u5E97",treeDefaultExpandAll:!0,onChange:function(o){return De(o)}})]}),(0,t.jsxs)(K.Z,{xs:24,sm:24,md:12,lg:12,xl:6,className:v()["data-search-item"],children:[(0,t.jsx)("div",{className:v()["data-search-prefix"],children:"\u5546\u54C1"}),(0,t.jsx)(re.Z,{className:v()["data-search-sufixx"],showSearch:!0,mode:"tags",size:"middle",allowClear:!0,placeholder:"\u8BF7\u9009\u62E9\u5546\u54C1",value:Ze,onChange:function(o){return Ce(o)},filterOption:function(o,s){return s.children.toLowerCase().includes(o.toLowerCase())},children:Re.map(function(_,o){return(0,t.jsx)(Option,{children:_.name},_.id)})})]}),(0,t.jsxs)(K.Z,{xs:24,sm:24,md:12,lg:12,xl:6,className:v()["data-search-item"],children:[(0,t.jsx)("div",{className:v()["data-search-prefix"],children:"\u8D77\u59CB\u65F6\u95F4"}),(0,t.jsx)(H,{size:"middle",className:v()["data-search-sufixx"],value:V,onChange:function(o,s){var p=[m()(m()(new Date(s[0])).format("YYYY-MM-DD 00:00:00")),m()(m()(new Date(s[1])).format("YYYY-MM-DD 23:59:59"))];ye(p)}})]})]}),(0,t.jsxs)("div",{className:v()["data-search-btns"],children:[(0,t.jsx)($.Z,{className:v()["search-btn-item"],onClick:qe,children:"\u91CD\u7F6E"}),(0,t.jsx)($.Z,{className:v()["search-btn-item"],type:"primary",onClick:je,children:"\u67E5\u8BE2"})]})]}),(0,t.jsxs)(W.Z,{className:v()["table-card"],children:[(0,t.jsx)("div",{className:v()["download-btn"],children:(0,t.jsx)($.Z,{type:"primary",icon:(0,t.jsx)(ne.Z,{}),size:"middle",children:"\u4E0B\u8F7D"})}),(0,t.jsx)(L.Z,{dataSource:oe,columns:Je,pagination:!1}),(0,t.jsx)("div",{className:v()["table-page"],children:(0,t.jsx)(E.Z,{current:I,pageSize:te,total:ie,onChange:He})})]})]})}},15746:function(j,x,e){"use strict";var n=e(21584);x.Z=n.Z},89032:function(j,x,e){"use strict";var n=e(38663),E=e.n(n),S=e(6999)},99134:function(j,x,e){"use strict";var n=e(67294),E=(0,n.createContext)({});x.Z=E},21584:function(j,x,e){"use strict";var n=e(96156),E=e(22122),S=e(90484),L=e(94184),ue=e.n(L),W=e(67294),D=e(53124),$=e(99134),ce=function(r,K){var O={};for(var g in r)Object.prototype.hasOwnProperty.call(r,g)&&K.indexOf(g)<0&&(O[g]=r[g]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Z=0,g=Object.getOwnPropertySymbols(r);Z0){var q=c[0]/2;t.paddingLeft=q,t.paddingRight=q}if(c&&c[1]>0&&!l){var H=c[1]/2;t.paddingTop=H,t.paddingBottom=H}return J&&(t.flex=T(J),i===!1&&!t.minWidth&&(t.minWidth=0)),W.createElement("div",(0,E.Z)({},U,{style:(0,E.Z)((0,E.Z)({},t),b),className:ne,ref:K}),v)});x.Z=re},92820:function(j,x,e){"use strict";var n=e(22122),E=e(96156),S=e(90484),L=e(28481),ue=e(94184),W=e.n(ue),D=e(67294),$=e(53124),ce=e(98082),T=e(24308),se=e(93355),re=e(99134),r=function(a,C){var c={};for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&C.indexOf(i)<0&&(c[i]=a[i]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,i=Object.getOwnPropertySymbols(a);l0?I[0]/-2:void 0,te=I[1]!=null&&I[1]>0?I[1]/-2:void 0;if(ee&&(w.marginLeft=ee,w.marginRight=ee),oe){var he=(0,L.Z)(I,2);w.rowGap=he[1]}else te&&(w.marginTop=te,w.marginBottom=te);var de=(0,L.Z)(I,2),le=de[0],ie=de[1],Ee=D.useMemo(function(){return{gutter:[le,ie],wrap:Q,supportFlexGap:oe}},[le,ie,Q,oe]);return D.createElement(re.Z.Provider,{value:Ee},D.createElement("div",(0,n.Z)({},v,{className:ge,style:(0,n.Z)((0,n.Z)({},w),k),ref:C}),B))});x.Z=Z},6999:function(j,x,e){"use strict";var n=e(38663),E=e.n(n),S=e(80638),L=e.n(S)},71230:function(j,x,e){"use strict";var n=e(92820);x.Z=n.Z},13062:function(j,x,e){"use strict";var n=e(38663),E=e.n(n),S=e(6999)}}]); diff --git a/dist/p__order__sales-gross-profit.296849ec.async.js b/dist/p__order__sales-gross-profit.296849ec.async.js new file mode 100644 index 0000000..ce9608f --- /dev/null +++ b/dist/p__order__sales-gross-profit.296849ec.async.js @@ -0,0 +1 @@ +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[6713,1322,9464,1981,2869,7013,9719,2383],{20498:function(j){j.exports={"data-search-card":"data-search-card___3kFoI","data-search-box":"data-search-box___3DFSh","search-btn-item":"search-btn-item___3Osl6","table-page":"table-page___3f6vl","loading-card":"loading-card___2D0GH","data-search-item":"data-search-item___SinMf","data-search-input":"data-search-input___3n8I5","data-search-prefix":"data-search-prefix___169Gl","data-search-sufixx":"data-search-sufixx___1KyMR","data-search-btns":"data-search-btns___1TGoh","download-btn":"download-btn___3iu0F"}},80638:function(){},51174:function(j,x,e){"use strict";e.r(x),e.d(x,{default:function(){return A}});var n=e(14781),E=e(36138),S=e(66456),L=e(64411),ue=e(58024),W=e(91894),D=e(57663),$=e(71577),ce=e(13062),T=e(71230),se=e(43358),re=e(34041),r=e(89032),K=e(15746),O=e(62999),g=e(54680),Z=e(93224),a=e(39428),C=e(34792),c=e(48086),i=e(3182),l=e(2824),z=e(20228),G=e(11382),k=e(14965),B=e(91774),d=e(67294),M=e(78009),Q=e(20498),v=e.n(Q),J=e(11849),b=e(48971),U={getReportSalesmargin:function(h){return(0,b.WY)("/kitchen/api/report/salesmargin",{method:"Post",data:h})},goodsList:function(h){return(0,b.WY)("/kitchen/api/goodes/list",{method:"Post",data:h})},goodsTypeList:function(h){return(0,b.WY)("/kitchen/api/goodstype/list",{method:"Post",data:h})},gettree:function(h){return(0,b.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/tree",{data:(0,J.Z)({},h)})}},y=e(30381),m=e.n(y),ne=e(90631),t=e(85893),q=["children"],H=B.Z.RangePicker,R=function(){return(0,t.jsx)("div",{className:v()["loading-card"],children:(0,t.jsx)(G.Z,{size:"large"})})};function A(){var u=(0,d.useState)([]),h=(0,l.Z)(u,2),oe=h[0],_e=h[1],me=(0,d.useState)(1),F=(0,l.Z)(me,2),I=F[0],ge=F[1],w=(0,d.useState)(10),ee=(0,l.Z)(w,2),te=ee[0],he=ee[1],de=(0,d.useState)(0),le=(0,l.Z)(de,2),ie=le[0],Ee=le[1],fe=(0,d.useState)(!1),N=(0,l.Z)(fe,2),Y=N[0],P=N[1],ve=(0,d.useState)([m()(m()(new Date(Date.now()-24*60*60*1e3*7)).format("YYYY-MM-DD 00:00:00")),m()(m()(new Date(Date.now())).format("YYYY-MM-DD 23:59:59"))]),ae=(0,l.Z)(ve,2),V=ae[0],ye=ae[1],Le=(0,d.useState)(""),pe=(0,l.Z)(Le,2),xe=pe[0],De=pe[1],Te=(0,d.useState)([]),Oe=(0,l.Z)(Te,2),Be=Oe[0],We=Oe[1],Ke=(0,d.useState)([]),Pe=(0,l.Z)(Ke,2),Ue=Pe[0],Ne=Pe[1],Ye=(0,d.useState)([]),Se=(0,l.Z)(Ye,2),Ze=Se[0],Ce=Se[1],Ge=(0,d.useState)([]),Me=(0,l.Z)(Ge,2),Re=Me[0],be=Me[1],Fe=(0,d.useState)([]),Ae=(0,l.Z)(Fe,2),we=Ae[0],$e=Ae[1],ze=(0,d.useState)([]),Ie=(0,l.Z)(ze,2),tt=Ie[0],Qe=Ie[1],Je=[{title:"\u95E8\u5E97\u540D\u79F0",dataIndex:"storeId",key:"storeId",render:function(o){var s=Ue.find(function(p){return p.key===o});return s?(0,t.jsx)("span",{children:s.title}):(0,t.jsx)("span",{children:"\u6682\u65E0\u95E8\u5E97\u540D\u79F0"})}},{title:"\u5546\u54C1\u540D\u79F0",dataIndex:"goodsId",key:"goodsId",render:function(o){var s=Re.find(function(p){return p.id===o});return s?(0,t.jsx)("span",{children:s.name}):(0,t.jsx)("span",{children:"\u6682\u65E0\u5546\u54C1\u540D\u79F0"})}},{title:"\u6BDB\u5229\u7387\uFF08%\uFF09",dataIndex:"marginRatio",key:"marginRatio"}],He=function(o,s){ge(o),he(s)},je=function(){var _=(0,i.Z)((0,a.Z)().mark(function o(){var s,p;return(0,a.Z)().wrap(function(X){for(;;)switch(X.prev=X.next){case 0:return s={storeId:xe,goodsId:Ze[0],goodsTypeId:we[0],begintime:V[0],endtime:V[1],current:I,pageSize:te},P(!0),X.next=4,U.getReportSalesmargin(s);case 4:p=X.sent,P(!1),p.statusCode===200?_e(p.data.data):c.default.error(p.errors||"\u83B7\u53D6\u9500\u552E\u6210\u672C\u5931\u8D25");case 7:case"end":return X.stop()}},o)}));return function(){return _.apply(this,arguments)}}(),Ve=function(){var _=(0,i.Z)((0,a.Z)().mark(function o(){var s;return(0,a.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return P(!0),f.next=3,U.gettree({});case 3:s=f.sent,P(!1),s.statusCode===200?(We(s.data),Ne(et(s.data))):c.default.error("\u67E5\u8BE2\u5E97\u94FA\u5217\u8868\u5931\u8D25");case 6:case"end":return f.stop()}},o)}));return function(){return _.apply(this,arguments)}}(),Xe=function(){var _=(0,i.Z)((0,a.Z)().mark(function o(){var s;return(0,a.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return P(!0),f.next=3,U.goodsList({});case 3:s=f.sent,P(!1),s.statusCode===200?be(s.data):c.default.error("\u67E5\u8BE2\u5546\u54C1\u5217\u8868\u5931\u8D25");case 6:case"end":return f.stop()}},o)}));return function(){return _.apply(this,arguments)}}(),ke=function(){var _=(0,i.Z)((0,a.Z)().mark(function o(){var s;return(0,a.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return P(!0),f.next=3,U.goodsTypeList({});case 3:s=f.sent,P(!1),s.statusCode===200?Qe(s.data):c.default.error("\u67E5\u8BE2\u5546\u54C1\u5206\u7C7B\u5217\u8868\u5931\u8D25");case 6:case"end":return f.stop()}},o)}));return function(){return _.apply(this,arguments)}}(),qe=function(){Ce([]),De([]),$e([]),ye([m()(m()(new Date(Date.now()-24*60*60*1e3*7)).format("YYYY-MM-DD 00:00:00")),m()(m()(new Date(Date.now())).format("YYYY-MM-DD 23:59:59"))])},et=function _(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return o.forEach(function(p){var f=p.children,X=(0,Z.Z)(p,q);s.push(X),f&&f.length>0&&_(f,s)}),s};return(0,d.useEffect)(function(){je(),Ve(),Xe(),ke()},[]),(0,t.jsxs)(M.ZP,{children:[Y?(0,t.jsx)(R,{}):null,(0,t.jsxs)(W.Z,{className:v()["data-search-card"],children:[(0,t.jsxs)(T.Z,{gutter:20,justify:"space-between",children:[(0,t.jsxs)(K.Z,{xs:24,sm:24,md:12,lg:12,xl:6,className:v()["data-search-item"],children:[(0,t.jsx)("div",{className:v()["data-search-prefix"],children:"\u95E8\u5E97"}),(0,t.jsx)(g.Z,{className:v()["data-search-sufixx"],value:xe,dropdownStyle:{maxHeight:400,overflow:"auto"},treeData:Be,placeholder:"\u8BF7\u9009\u62E9\u95E8\u5E97",treeDefaultExpandAll:!0,onChange:function(o){return De(o)}})]}),(0,t.jsxs)(K.Z,{xs:24,sm:24,md:12,lg:12,xl:6,className:v()["data-search-item"],children:[(0,t.jsx)("div",{className:v()["data-search-prefix"],children:"\u5546\u54C1"}),(0,t.jsx)(re.Z,{className:v()["data-search-sufixx"],showSearch:!0,mode:"tags",size:"middle",allowClear:!0,placeholder:"\u8BF7\u9009\u62E9\u5546\u54C1",value:Ze,onChange:function(o){return Ce(o)},filterOption:function(o,s){return s.children.toLowerCase().includes(o.toLowerCase())},children:Re.map(function(_,o){return(0,t.jsx)(Option,{children:_.name},_.id)})})]}),(0,t.jsxs)(K.Z,{xs:24,sm:24,md:12,lg:12,xl:6,className:v()["data-search-item"],children:[(0,t.jsx)("div",{className:v()["data-search-prefix"],children:"\u8D77\u59CB\u65F6\u95F4"}),(0,t.jsx)(H,{size:"middle",className:v()["data-search-sufixx"],value:V,onChange:function(o,s){var p=[m()(m()(new Date(s[0])).format("YYYY-MM-DD 00:00:00")),m()(m()(new Date(s[1])).format("YYYY-MM-DD 23:59:59"))];ye(p)}})]})]}),(0,t.jsxs)("div",{className:v()["data-search-btns"],children:[(0,t.jsx)($.Z,{className:v()["search-btn-item"],onClick:qe,children:"\u91CD\u7F6E"}),(0,t.jsx)($.Z,{className:v()["search-btn-item"],type:"primary",onClick:je,children:"\u67E5\u8BE2"})]})]}),(0,t.jsxs)(W.Z,{className:v()["table-card"],children:[(0,t.jsx)("div",{className:v()["download-btn"],children:(0,t.jsx)($.Z,{type:"primary",icon:(0,t.jsx)(ne.Z,{}),size:"middle",children:"\u4E0B\u8F7D"})}),(0,t.jsx)(L.Z,{dataSource:oe,columns:Je,pagination:!1}),(0,t.jsx)("div",{className:v()["table-page"],children:(0,t.jsx)(E.Z,{current:I,pageSize:te,total:ie,onChange:He})})]})]})}},15746:function(j,x,e){"use strict";var n=e(21584);x.Z=n.Z},89032:function(j,x,e){"use strict";var n=e(38663),E=e.n(n),S=e(6999)},99134:function(j,x,e){"use strict";var n=e(67294),E=(0,n.createContext)({});x.Z=E},21584:function(j,x,e){"use strict";var n=e(96156),E=e(22122),S=e(90484),L=e(94184),ue=e.n(L),W=e(67294),D=e(53124),$=e(99134),ce=function(r,K){var O={};for(var g in r)Object.prototype.hasOwnProperty.call(r,g)&&K.indexOf(g)<0&&(O[g]=r[g]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Z=0,g=Object.getOwnPropertySymbols(r);Z0){var q=c[0]/2;t.paddingLeft=q,t.paddingRight=q}if(c&&c[1]>0&&!l){var H=c[1]/2;t.paddingTop=H,t.paddingBottom=H}return J&&(t.flex=T(J),i===!1&&!t.minWidth&&(t.minWidth=0)),W.createElement("div",(0,E.Z)({},U,{style:(0,E.Z)((0,E.Z)({},t),b),className:ne,ref:K}),v)});x.Z=re},92820:function(j,x,e){"use strict";var n=e(22122),E=e(96156),S=e(90484),L=e(28481),ue=e(94184),W=e.n(ue),D=e(67294),$=e(53124),ce=e(98082),T=e(24308),se=e(93355),re=e(99134),r=function(a,C){var c={};for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&C.indexOf(i)<0&&(c[i]=a[i]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,i=Object.getOwnPropertySymbols(a);l0?I[0]/-2:void 0,te=I[1]!=null&&I[1]>0?I[1]/-2:void 0;if(ee&&(w.marginLeft=ee,w.marginRight=ee),oe){var he=(0,L.Z)(I,2);w.rowGap=he[1]}else te&&(w.marginTop=te,w.marginBottom=te);var de=(0,L.Z)(I,2),le=de[0],ie=de[1],Ee=D.useMemo(function(){return{gutter:[le,ie],wrap:Q,supportFlexGap:oe}},[le,ie,Q,oe]);return D.createElement(re.Z.Provider,{value:Ee},D.createElement("div",(0,n.Z)({},v,{className:ge,style:(0,n.Z)((0,n.Z)({},w),k),ref:C}),B))});x.Z=Z},6999:function(j,x,e){"use strict";var n=e(38663),E=e.n(n),S=e(80638),L=e.n(S)},71230:function(j,x,e){"use strict";var n=e(92820);x.Z=n.Z},13062:function(j,x,e){"use strict";var n=e(38663),E=e.n(n),S=e(6999)}}]); diff --git a/dist/p__order__salesReport.22117989.async.js b/dist/p__order__salesReport.22117989.async.js deleted file mode 100644 index d08ba41..0000000 --- a/dist/p__order__salesReport.22117989.async.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[5679,1322,9934,4407,6498,6090,274,6314],{33388:function(T){T.exports={"welcome-head":"welcome-head___2uLA1","welcome-head-org":"welcome-head-org___TTx63","echarts-card-choose":"echarts-card-choose___2oFaE","my-loading":"my-loading___11j2H","device-list":"device-list___D-nOI","my-range-picker":"my-range-picker___3WXGc","tabs-title":"tabs-title___3n9F2"}},80638:function(){},74457:function(T,_,e){"use strict";e.r(_),e.d(_,{default:function(){return z}});var a=e(20228),i=e(11382),O=e(66456),x=e(64411),D=e(58024),c=e(91894),s=e(13062),b=e(71230),$=e(57663),P=e(71577),j=e(89032),w=e(15746),t=e(39428),H=e(3182),d=e(2824),v=e(14965),C=e(91774),n=e(18106),g=e(86629),r=e(67294),f=e(78009),h=e(33388),p=e.n(h),N=e(30381),u=e.n(N),B=e(48971),I={GetSalesReport:function(L){return(0,B.WY)("/kitchen/api/Order/GetSalesReport",{method:"Post",data:L})}},R=e(51496),l=e(85893),oe=g.Z.TabPane,J=C.Z.RangePicker,ee=function(){var L=(0,r.useState)("left"),Q=(0,d.Z)(L,2),Z=Q[0],te=Q[1],V=(0,r.useState)(1),M=(0,d.Z)(V,2),y=M[0],o=M[1],U=(0,r.useState)([]),k=(0,d.Z)(U,2),ue=k[0],ie=k[1],X=(0,r.useState)([u()(u()(new Date(Date.now())).format("YYYY-MM-DD 00:00:00")),u()(u()(new Date(Date.now())).format("YYYY-MM-DD 23:59:59"))]),S=(0,d.Z)(X,2),ae=S[0],K=S[1],ne=(0,r.useState)(!1),q=(0,d.Z)(ne,2),fe=q[0],re=q[1],ce=[{title:"\u540D\u79F0",dataIndex:"name",hideInSearch:!0},{title:"\u9500\u552E\u6570\u91CF",dataIndex:"saleCount",hideInSearch:!0}];(0,r.useEffect)(function(){se()},[y]);var se=function(){var F=(0,H.Z)((0,t.Z)().mark(function W(){var E,A,G;return(0,t.Z)().wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:return re(!0),E=u()(ae[0]).format("YYYY-MM-DD HH:mm:ss"),A=u()(ae[1]).format("YYYY-MM-DD HH:mm:ss"),Y.next=5,I.GetSalesReport({type:y,startTime:E,endTime:A});case 5:G=Y.sent,G.forEach(function(le){le.key=(0,R.x0)()}),ie(G),re(!1);case 9:case"end":return Y.stop()}},W)}));return function(){return F.apply(this,arguments)}}();return(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)(f.ZP,{children:[(0,l.jsx)(c.Z,{style:{marginBottom:"30px"},children:(0,l.jsxs)(b.Z,{children:[(0,l.jsx)(w.Z,{xs:24,sm:12,md:12,lg:12,xl:6,style:{margin:"10px 0"},children:(0,l.jsxs)("div",{className:p()["echarts-card-choose"],children:[(0,l.jsx)("div",{className:p()["echarts-card-choose-text"],children:"\u8D77\u6B62\u65F6\u95F4\uFF1A"}),(0,l.jsx)(J,{showTime:!0,style:{width:"70%"},className:p()["my-range-picker"],value:ae,onChange:function(W,E){var A=[u()(u()(new Date(E[0])).format("YYYY-MM-DD 00:00:00")),u()(u()(new Date(E[1])).format("YYYY-MM-DD 23:59:59"))];K(A)}})]})}),(0,l.jsxs)(w.Z,{xs:24,sm:12,md:12,lg:12,xl:6,style:{margin:"10px 0"},children:[(0,l.jsx)(P.Z,{className:p()["echarts-card-btn"],type:"primary",style:{width:"100px",marginRight:"10px"},onClick:function(){return se()},children:"\u67E5\u8BE2"}),(0,l.jsx)(P.Z,{className:p()["echarts-card-btn"],style:{width:"100px"},onClick:function(){K([u()(u()(new Date(Date.now())).format("YYYY-MM-DD 00:00:00")),u()(u()(new Date(Date.now())).format("YYYY-MM-DD 23:59:59"))])},children:"\u91CD\u7F6E"})]})]})}),(0,l.jsx)(c.Z,{children:(0,l.jsx)(i.Z,{spinning:fe,delay:500,children:(0,l.jsx)(g.Z,{tabPosition:Z,value:y,onChange:function(W){o(W)},items:new Array(2).fill(null).map(function(F,W){var E=String(W+1);return{label:E==1?"\u5206\u7C7B\u7EDF\u8BA1":"\u5355\u54C1\u7EDF\u8BA1",key:E,children:(0,l.jsx)(x.Z,{columns:ce,dataSource:ue})}})})})})]})})},z=ee},15746:function(T,_,e){"use strict";var a=e(21584);_.Z=a.Z},89032:function(T,_,e){"use strict";var a=e(38663),i=e.n(a),O=e(6999)},99134:function(T,_,e){"use strict";var a=e(67294),i=(0,a.createContext)({});_.Z=i},21584:function(T,_,e){"use strict";var a=e(96156),i=e(22122),O=e(90484),x=e(94184),D=e.n(x),c=e(67294),s=e(53124),b=e(99134),$=function(t,H){var d={};for(var v in t)Object.prototype.hasOwnProperty.call(t,v)&&H.indexOf(v)<0&&(d[v]=t[v]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var C=0,v=Object.getOwnPropertySymbols(t);C0){var te=r[0]/2;Z.paddingLeft=te,Z.paddingRight=te}if(r&&r[1]>0&&!h){var V=r[1]/2;Z.paddingTop=V,Z.paddingBottom=V}return J&&(Z.flex=P(J),f===!1&&!Z.minWidth&&(Z.minWidth=0)),c.createElement("div",(0,i.Z)({},z,{style:(0,i.Z)((0,i.Z)({},Z),ee),className:Q,ref:H}),oe)});_.Z=w},92820:function(T,_,e){"use strict";var a=e(22122),i=e(96156),O=e(90484),x=e(28481),D=e(94184),c=e.n(D),s=e(67294),b=e(53124),$=e(98082),P=e(24308),j=e(93355),w=e(99134),t=function(n,g){var r={};for(var f in n)Object.prototype.hasOwnProperty.call(n,f)&&g.indexOf(f)<0&&(r[f]=n[f]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var h=0,f=Object.getOwnPropertySymbols(n);h0?S[0]/-2:void 0,q=S[1]!=null&&S[1]>0?S[1]/-2:void 0;if(ne&&(K.marginLeft=ne,K.marginRight=ne),k){var fe=(0,x.Z)(S,2);K.rowGap=fe[1]}else q&&(K.marginTop=q,K.marginBottom=q);var re=(0,x.Z)(S,2),ce=re[0],se=re[1],F=s.useMemo(function(){return{gutter:[ce,se],wrap:l,supportFlexGap:k}},[ce,se,l,k]);return s.createElement(w.Z.Provider,{value:F},s.createElement("div",(0,a.Z)({},oe,{className:ae,style:(0,a.Z)((0,a.Z)({},K),u),ref:g}),B))});_.Z=C},6999:function(T,_,e){"use strict";var a=e(38663),i=e.n(a),O=e(80638),x=e.n(O)},71230:function(T,_,e){"use strict";var a=e(92820);_.Z=a.Z},13062:function(T,_,e){"use strict";var a=e(38663),i=e.n(a),O=e(6999)},51496:function(T,_,e){"use strict";e.d(_,{x0:function(){return x}});let a=D=>crypto.getRandomValues(new Uint8Array(D)),i=(D,c,s)=>{let b=(2<{let j="";for(;;){let w=s($),t=$;for(;t--;)if(j+=D[w[t]&b]||"",j.length===P)return j}}},O=(D,c=21)=>i(D,c,a),x=(D=21)=>crypto.getRandomValues(new Uint8Array(D)).reduce((c,s)=>(s&=63,s<36?c+=s.toString(36):s<62?c+=(s-26).toString(36).toUpperCase():s>62?c+="-":c+="_",c),"")}}]); diff --git a/dist/p__order__salesReport.53d415d3.async.js b/dist/p__order__salesReport.53d415d3.async.js new file mode 100644 index 0000000..3eae6c3 --- /dev/null +++ b/dist/p__order__salesReport.53d415d3.async.js @@ -0,0 +1 @@ +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[5679,1322,9464,1981,2869,7013,9719,2383],{33388:function(T){T.exports={"welcome-head":"welcome-head___2uLA1","welcome-head-org":"welcome-head-org___TTx63","echarts-card-choose":"echarts-card-choose___2oFaE","my-loading":"my-loading___11j2H","device-list":"device-list___D-nOI","my-range-picker":"my-range-picker___3WXGc","tabs-title":"tabs-title___3n9F2"}},80638:function(){},74457:function(T,_,e){"use strict";e.r(_),e.d(_,{default:function(){return z}});var a=e(20228),i=e(11382),O=e(66456),x=e(64411),D=e(58024),c=e(91894),s=e(13062),b=e(71230),$=e(57663),P=e(71577),j=e(89032),w=e(15746),t=e(39428),H=e(3182),d=e(2824),v=e(14965),C=e(91774),n=e(18106),g=e(95562),r=e(67294),f=e(78009),h=e(33388),p=e.n(h),N=e(30381),u=e.n(N),B=e(48971),I={GetSalesReport:function(L){return(0,B.WY)("/kitchen/api/Order/GetSalesReport",{method:"Post",data:L})}},R=e(51496),l=e(85893),oe=g.Z.TabPane,J=C.Z.RangePicker,ee=function(){var L=(0,r.useState)("left"),Q=(0,d.Z)(L,2),Z=Q[0],te=Q[1],V=(0,r.useState)(1),M=(0,d.Z)(V,2),y=M[0],o=M[1],U=(0,r.useState)([]),k=(0,d.Z)(U,2),ue=k[0],ie=k[1],X=(0,r.useState)([u()(u()(new Date(Date.now())).format("YYYY-MM-DD 00:00:00")),u()(u()(new Date(Date.now())).format("YYYY-MM-DD 23:59:59"))]),S=(0,d.Z)(X,2),ae=S[0],K=S[1],ne=(0,r.useState)(!1),q=(0,d.Z)(ne,2),fe=q[0],re=q[1],ce=[{title:"\u540D\u79F0",dataIndex:"name",hideInSearch:!0},{title:"\u9500\u552E\u6570\u91CF",dataIndex:"saleCount",hideInSearch:!0}];(0,r.useEffect)(function(){se()},[y]);var se=function(){var F=(0,H.Z)((0,t.Z)().mark(function W(){var E,A,G;return(0,t.Z)().wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:return re(!0),E=u()(ae[0]).format("YYYY-MM-DD HH:mm:ss"),A=u()(ae[1]).format("YYYY-MM-DD HH:mm:ss"),Y.next=5,I.GetSalesReport({type:y,startTime:E,endTime:A});case 5:G=Y.sent,G.forEach(function(le){le.key=(0,R.x0)()}),ie(G),re(!1);case 9:case"end":return Y.stop()}},W)}));return function(){return F.apply(this,arguments)}}();return(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)(f.ZP,{children:[(0,l.jsx)(c.Z,{style:{marginBottom:"30px"},children:(0,l.jsxs)(b.Z,{children:[(0,l.jsx)(w.Z,{xs:24,sm:12,md:12,lg:12,xl:6,style:{margin:"10px 0"},children:(0,l.jsxs)("div",{className:p()["echarts-card-choose"],children:[(0,l.jsx)("div",{className:p()["echarts-card-choose-text"],children:"\u8D77\u6B62\u65F6\u95F4\uFF1A"}),(0,l.jsx)(J,{showTime:!0,style:{width:"70%"},className:p()["my-range-picker"],value:ae,onChange:function(W,E){var A=[u()(u()(new Date(E[0])).format("YYYY-MM-DD 00:00:00")),u()(u()(new Date(E[1])).format("YYYY-MM-DD 23:59:59"))];K(A)}})]})}),(0,l.jsxs)(w.Z,{xs:24,sm:12,md:12,lg:12,xl:6,style:{margin:"10px 0"},children:[(0,l.jsx)(P.Z,{className:p()["echarts-card-btn"],type:"primary",style:{width:"100px",marginRight:"10px"},onClick:function(){return se()},children:"\u67E5\u8BE2"}),(0,l.jsx)(P.Z,{className:p()["echarts-card-btn"],style:{width:"100px"},onClick:function(){K([u()(u()(new Date(Date.now())).format("YYYY-MM-DD 00:00:00")),u()(u()(new Date(Date.now())).format("YYYY-MM-DD 23:59:59"))])},children:"\u91CD\u7F6E"})]})]})}),(0,l.jsx)(c.Z,{children:(0,l.jsx)(i.Z,{spinning:fe,delay:500,children:(0,l.jsx)(g.Z,{tabPosition:Z,value:y,onChange:function(W){o(W)},items:new Array(2).fill(null).map(function(F,W){var E=String(W+1);return{label:E==1?"\u5206\u7C7B\u7EDF\u8BA1":"\u5355\u54C1\u7EDF\u8BA1",key:E,children:(0,l.jsx)(x.Z,{columns:ce,dataSource:ue})}})})})})]})})},z=ee},15746:function(T,_,e){"use strict";var a=e(21584);_.Z=a.Z},89032:function(T,_,e){"use strict";var a=e(38663),i=e.n(a),O=e(6999)},99134:function(T,_,e){"use strict";var a=e(67294),i=(0,a.createContext)({});_.Z=i},21584:function(T,_,e){"use strict";var a=e(96156),i=e(22122),O=e(90484),x=e(94184),D=e.n(x),c=e(67294),s=e(53124),b=e(99134),$=function(t,H){var d={};for(var v in t)Object.prototype.hasOwnProperty.call(t,v)&&H.indexOf(v)<0&&(d[v]=t[v]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var C=0,v=Object.getOwnPropertySymbols(t);C0){var te=r[0]/2;Z.paddingLeft=te,Z.paddingRight=te}if(r&&r[1]>0&&!h){var V=r[1]/2;Z.paddingTop=V,Z.paddingBottom=V}return J&&(Z.flex=P(J),f===!1&&!Z.minWidth&&(Z.minWidth=0)),c.createElement("div",(0,i.Z)({},z,{style:(0,i.Z)((0,i.Z)({},Z),ee),className:Q,ref:H}),oe)});_.Z=w},92820:function(T,_,e){"use strict";var a=e(22122),i=e(96156),O=e(90484),x=e(28481),D=e(94184),c=e.n(D),s=e(67294),b=e(53124),$=e(98082),P=e(24308),j=e(93355),w=e(99134),t=function(n,g){var r={};for(var f in n)Object.prototype.hasOwnProperty.call(n,f)&&g.indexOf(f)<0&&(r[f]=n[f]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var h=0,f=Object.getOwnPropertySymbols(n);h0?S[0]/-2:void 0,q=S[1]!=null&&S[1]>0?S[1]/-2:void 0;if(ne&&(K.marginLeft=ne,K.marginRight=ne),k){var fe=(0,x.Z)(S,2);K.rowGap=fe[1]}else q&&(K.marginTop=q,K.marginBottom=q);var re=(0,x.Z)(S,2),ce=re[0],se=re[1],F=s.useMemo(function(){return{gutter:[ce,se],wrap:l,supportFlexGap:k}},[ce,se,l,k]);return s.createElement(w.Z.Provider,{value:F},s.createElement("div",(0,a.Z)({},oe,{className:ae,style:(0,a.Z)((0,a.Z)({},K),u),ref:g}),B))});_.Z=C},6999:function(T,_,e){"use strict";var a=e(38663),i=e.n(a),O=e(80638),x=e.n(O)},71230:function(T,_,e){"use strict";var a=e(92820);_.Z=a.Z},13062:function(T,_,e){"use strict";var a=e(38663),i=e.n(a),O=e(6999)},51496:function(T,_,e){"use strict";e.d(_,{x0:function(){return x}});let a=D=>crypto.getRandomValues(new Uint8Array(D)),i=(D,c,s)=>{let b=(2<{let j="";for(;;){let w=s($),t=$;for(;t--;)if(j+=D[w[t]&b]||"",j.length===P)return j}}},O=(D,c=21)=>i(D,c,a),x=(D=21)=>crypto.getRandomValues(new Uint8Array(D)).reduce((c,s)=>(s&=63,s<36?c+=s.toString(36):s<62?c+=(s-26).toString(36).toUpperCase():s>62?c+="-":c+="_",c),"")}}]); diff --git a/dist/p__quickStart.529882b4.async.js b/dist/p__quickStart.529882b4.async.js deleted file mode 100644 index 6900606..0000000 --- a/dist/p__quickStart.529882b4.async.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[7825,1322,9934,4407,6498,6090,274,6314,8326],{87246:function(He){He.exports={add_row_content:"add_row_content___1MhOu",add_row_btn:"add_row_btn___55ubX"}},54970:function(He){He.exports={steps_btns:"steps_btns___1fzSt"}},88307:function(He){He.exports={store_config_container:"store_config_container___3YQ4e",choose_store_state:"choose_store_state___3iWn1"}},69038:function(He){He.exports={steps_navbar:"steps_navbar___xiemh",steps_navbar_bottom:"steps_navbar_bottom___3LJIq",steps_content:"steps_content___3jwbG",common_row:"common_row___3vO0H",choose_change_state:"choose_change_state___RcNtV",add_row_content:"add_row_content___3lFj7",add_row_btn:"add_row_btn___FtgXy",ant_descriptions_row:"ant_descriptions_row___1O_JD",ant_descriptions_item_title:"ant_descriptions_item_title___2AaU8",ant_descriptions_item_label:"ant_descriptions_item_label___3bihx",ant_descriptions_item_content:"ant_descriptions_item_content___1840s",current_selected_obj:"current_selected_obj___2DxAP",current_selected_cmp:"current_selected_cmp___2T66U",sure_add_btn:"sure_add_btn___c4Fz9",add_to_some_box:"add_to_some_box___1T4b6",wait_add_list:"wait_add_list___2n8fz",success_add_list:"success_add_list___2fDeC"}},60170:function(He,Zt,d){"use strict";d.r(Zt),d.d(Zt,{default:function(){return pn}});var Sn=d(57106),Dt=d(6129),Fn=d(57663),O=d(71577),jn=d(58024),ot=d(91894),Ae=d(11849),u=d(2824),Bn=d(35556),Ct=d(75899),a=d(67294),Et=d(69038),_=d.n(Et),Mt=d(78009),wn=d(71194),Ie=d(50146),In=d(77883),nt=d(85986),Tn=d(62999),yt=d(54680),c=d(39428),bn=d(34792),f=d(48086),K=d(3182),Dn=d(9715),n=d(55843),En=d(43358),h=d(34041),Mn=d(47673),w=d(4107),Ot=d(77153),k=d(48971),j={getOrgTree:function(){return(0,k.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/tree",{method:"GET"})},AddOrg:function(t){return(0,k.WY)("/kitchen/api/sysOrg/add",{method:"POST",data:(0,Ae.Z)({},t)})},UpdateOrg:function(t){return(0,k.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/edit",{method:"POST",data:(0,Ae.Z)({},t)})},getPayTemplateList:function(){return(0,k.WY)("/kitchen/api/paytemplate/getPayTemplatePageList",{method:"post",data:{current:1,pageSize:100}})},AddDeviceInfo:function(t){return(0,k.WY)("/kitchen/api/Device/AddDeviceInfo",{method:"POST",data:t})},UpdateDeviceInfo:function(t){return(0,k.WY)("/kitchen/api/Device/UpdateDeviceInfo",{method:"POST",data:t})},GetDicList:function(t){return(0,k.WY)("/kitchen/api/dict-data/dic-list/".concat(t),{method:"Get"})},GetDeviceType:function(){return(0,k.WY)("\u200B/kitchen/api/Device/GetDeviceType",{method:"GET"})},GetDeviceVersions:function(){return(0,k.WY)("\u200B/kitchen/api/Device/GetDeviceVersions",{method:"post"})},AddDeviceType:function(t){return(0,k.WY)("/kitchen/api/Device/AddDeviceType",{method:"POST",data:t})},GetDeviceInfoPage:function(t){return(0,k.WY)("/kitchen/api/Device/GetDeviceInfoPage",{method:"POST",data:t})},getpage:function(t,xe){return(0,k.WY)("/kitchen/api/sysOrg\u200B/page",{method:"GET",params:(0,Ae.Z)({},t)})},GetFoodMenuInfoPage:function(t){return(0,k.WY)("/kitchen/api/FoodMenu/GetFoodMenuInfoPage",{method:"POST",data:t})},AddFoodMenu:function(t){return(0,k.WY)("/kitchen/api/FoodMenu/AddUpdateFoodMenu",{method:"POST",data:t})},UpdateFoodMenu:function(t){return(0,k.WY)("/kitchen/api/FoodMenu/AddUpdateFoodMenu",{method:"POST",data:t})},GetDeviceGoods:function(t){return(0,k.WY)("/kitchen/api/Device/GetDeviceGoods",{method:"POST",data:t})},AddGoods:function(t){return(0,k.WY)("/kitchen/api/goods",{method:"POST",data:t})},UpdateGoods:function(t){return(0,k.WY)("/kitchen/api/goods",{method:"PUT",data:t})},GetUnitList:function(t){return(0,k.WY)("/kitchen/api/goods-unit/type",{method:"Post",data:t})},GetGoodsbigType:function(t){return(0,k.WY)("/kitchen/api/goods-type/big-goods-types",{method:"POST",data:t})},GetGoodsSmallType:function(t){return(0,k.WY)("/kitchen/api/goods-type/goods-types",{method:"POST",data:t})},GetCosRequestURL:function(t){return(0,k.WY)("/kitchen/api/systemconfig/GetCosRequestSignURL",{method:"POST",data:t})},CreateUnit:function(t){return(0,k.WY)("/kitchen/api/goods-unit",{method:"POST",data:t})},AddGoodsTypeListNew:function(t){return(0,k.WY)("/kitchen/api/goods-type/goods-type-new",{method:"post",data:t})},AddGoodsSmallType:function(t){return(0,k.WY)("/kitchen/api/goods-type",{method:"POST",data:t})},GetgoodsList:function(t){return(0,k.WY)("/kitchen/api/goods/goodss",{method:"Post",data:t})},GetBomPage:function(t){return(0,k.WY)("/kitchen/api/bom/getpage",{method:"Post",data:t})},AddBom:function(t){return(0,k.WY)("/kitchen/api/bom/add",{method:"Post",data:t})},UpdateBom:function(t){return(0,k.WY)("/kitchen/api/bom/update",{method:"Post",data:t})},GetBomTypePage:function(t){return(0,k.WY)("/kitchen/api/bom/getbomtypepage",{method:"Post",data:t})},CreateBomType:function(t){return(0,k.WY)("/kitchen/api/bom/addbomtype",{method:"Post",data:t})},AddMaterial:function(t){return(0,k.WY)("/kitchen/api/product/",{method:"POST",data:(0,Ae.Z)({},t)})},UpdateMaterial:function(t){return(0,k.WY)("/kitchen/api/product/",{method:"PUT",data:(0,Ae.Z)({},t)})},GetMaterialPage:function(t){return(0,k.WY)("/kitchen/api/product/product-list",{method:"Post",data:t})},GetMaterialTypeList:function(t){return(0,k.WY)("/kitchen/api/product-type/type-list",{method:"GET",params:(0,Ae.Z)({},t)})},GetMaterialUintList:function(t){return(0,k.WY)("/kitchen/api/unit/uint-list",{method:"GET",params:(0,Ae.Z)({},t)})},AddMaterialUnit:function(t){return(0,k.WY)("/kitchen/api/unit",{method:"POST",data:t})},AddMaterialType:function(t){return(0,k.WY)("/kitchen/api/product-type",{method:"POST",data:t})},QuickStartAdd:function(t){return(0,k.WY)("/kitchen/api/quickstart/add",{method:"POST",data:t})}},On=d(88307),et=d(49101),Xe=d(51496),e=d(85893),kt=h.Z.Option,at,At=function(t){var xe=(0,a.useState)(null),se=(0,u.Z)(xe,2),Y=se[0],me=se[1],V=(0,a.useState)(null),R=(0,u.Z)(V,2),ee=R[0],L=R[1],X=(0,a.useState)([]),Z=(0,u.Z)(X,2),I=Z[0],$=Z[1],te=(0,a.useState)(null),Q=(0,u.Z)(te,2),re=Q[0],ge=Q[1],ce=function(){re?t.handleOk(re):f.default.error("\u8BF7\u9009\u62E9\u5E97\u94FA\u5730\u5740")},le=function(M){if(M&&Y){Y.clearOverlays();var g=I.find(function(ue){return ue.uid===M});if(g){ge(g);var T=new BMapGL.Point(g.point.lng,g.point.lat);Y.centerAndZoom(T,16);var q=new BMapGL.Marker(T);Y.addOverlay(q);var fe=new BMapGL.InfoWindow(g.address,{width:200,height:100,title:g.title,message:g.address});q.addEventListener("click",function(){Y.openInfoWindow(fe,T)})}}},H=function(M){if(at&&(clearTimeout(at),at=null),Y)if(ee===null){var g=new BMapGL.LocalSearch(Y,{onSearchComplete:function(q){q&&$(JSON.parse(JSON.stringify(q._pois)))}});at=setTimeout(function(){g.search(M)},300),L(g)}else at=setTimeout(function(){ee.search(M)},300)},pe=function(){var M=new BMapGL.Map("baidu_map_container");M.enableScrollWheelZoom(!0),M.setHeading(64.5),M.setTilt(73);var g=new BMapGL.LocalCity;g.get(function(T){T&&M.centerAndZoom(new BMapGL.Point(T.center.lng,T.center.lat),12)}),me(M)};return(0,a.useEffect)(function(){pe()},[]),(0,e.jsx)(e.Fragment,{children:(0,e.jsxs)(Ie.Z,{width:800,title:"\u9009\u62E9\u5E97\u94FA\u5750\u6807",visible:t.isShowBaiduMap,onOk:ce,onCancel:t.handleCancel,children:[(0,e.jsx)(h.Z,{showSearch:!0,placeholder:"\u8BF7\u8F93\u5165\u5730\u5740",onChange:le,onSearch:H,defaultActiveFirstOption:!1,showArrow:!1,filterOption:!1,notFoundContent:null,style:{width:"100%",marginBottom:"10px"},size:"large",children:I==null?void 0:I.map(function(B){return(0,e.jsxs)(kt,{value:B.uid,children:[B.title," \u3010",B.address,"\u3011"]},B.uid)})}),(0,e.jsx)("div",{id:"baidu_map_container",style:{width:"750px",height:"700px"}})]})})},Gt=At,St="message",Pt=function(t){var xe=(0,a.useState)(0),se=(0,u.Z)(xe,2),Y=se[0],me=se[1],V=(0,a.useState)(20),R=(0,u.Z)(V,2),ee=R[0],L=R[1],X=w.Z.TextArea,Z=h.Z.Option,I=h.Z.OptGroup,$=n.Z.useForm(),te=(0,u.Z)($,1),Q=te[0],re=(0,a.useState)([]),ge=(0,u.Z)(re,2),ce=ge[0],le=ge[1],H=(0,a.useState)([]),pe=(0,u.Z)(H,2),B=pe[0],M=pe[1],g=function(){var oe=(0,K.Z)((0,c.Z)().mark(function ne(b){var Ze,ae;return(0,c.Z)().wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:if(f.default.loading("\u6B63\u5728\u914D\u7F6E",St),!b.id){Ce.next=8;break}return Ce.next=4,j.UpdateOrg(b);case 4:Ze=Ce.sent,Ze.succeeded?(f.default.success("\u4FEE\u6539\u6210\u529F"),ye(!1),U.current.reload()):f.default.error(Ze.errors||"\u4FEE\u6539\u51FA\u9519"),Ce.next=13;break;case 8:return b.code=(0,Xe.x0)(),Ce.next=11,j.AddOrg(b);case 11:ae=Ce.sent,ae.succeeded?(f.default.success("\u6DFB\u52A0\u6210\u529F"),U.current.reload(),ye(!1)):f.default.error(JSON.stringify(ae.errors)||"\u6DFB\u52A0\u51FA\u9519");case 13:f.default.destroy(St);case 14:case"end":return Ce.stop()}},ne)}));return function(b){return oe.apply(this,arguments)}}(),T=(0,a.useState)({id:""}),q=(0,u.Z)(T,2),fe=q[0],ue=q[1],J=(0,a.useState)(!1),A=(0,u.Z)(J,2),z=A[0],ye=A[1],U=(0,a.useRef)(),we=function(){var oe=(0,K.Z)((0,c.Z)().mark(function ne(){var b,Ze;return(0,c.Z)().wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.next=2,j.getOrgTree();case 2:b=Se.sent,b.statusCode===200?(Ze=[{key:"0",parentId:"0",title:"\u9876\u7EA7",value:"0",children:b.data||[]}],le(Ze)):f.default.error(b.errors||"\u83B7\u53D6\u95E8\u5E97\u67B6\u6784\u51FA\u9519");case 4:case"end":return Se.stop()}},ne)}));return function(){return oe.apply(this,arguments)}}(),je=function(){var oe=(0,K.Z)((0,c.Z)().mark(function ne(){var b;return(0,c.Z)().wrap(function(ae){for(;;)switch(ae.prev=ae.next){case 0:return ae.next=2,j.getPayTemplateList();case 2:b=ae.sent,b.statusCode===200?M(b.data.data):f.default.error(b.errors||"\u83B7\u53D6\u83B7\u53D6\u652F\u4ED8\u65B9\u5F0F\u51FA\u9519");case 4:case"end":return ae.stop()}},ne)}));return function(){return oe.apply(this,arguments)}}(),Te=[{title:"\u4E3B\u952E",dataIndex:"id",tip:"key",hideInSearch:!0,hideInTable:!0},{title:"\u95E8\u5E97\u540D\u79F0",dataIndex:"name"},{title:"\u95E8\u5E97\u7F16\u7801",dataIndex:"code"},{title:"\u95E8\u5E97\u7C7B\u578B",dataIndex:"type",valueEnum:{0:{text:"\u673A\u6784"},1:{text:"\u914D\u9001\u4E2D\u5FC3"},2:{text:"\u76F4\u8425\u5E97"},3:{text:"\u52A0\u76DF\u5E97"}}},{title:"\u7535\u8BDD",dataIndex:"tel",hideInSearch:!0},{title:"\u6392\u5E8F",dataIndex:"sort",valueType:"digit",hideInSearch:!0},{title:"\u63CF\u8FF0",dataIndex:"remark",valueType:"textarea",hideInSearch:!0},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(ne,b){return[(0,e.jsx)("a",{onClick:function(){ue(b),ye(!0),Q.setFieldsValue(b)},children:"\u66F4\u65B0"},"config")]}}],Ue=(0,a.useState)([]),Ge=(0,u.Z)(Ue,2),Ke=Ge[0],Pe=Ge[1],be=(0,a.useState)(!1),Be=(0,u.Z)(be,2),De=Be[0],Ne=Be[1],_e=function(ne){var b=Q.getFieldsValue(!0);b.store_Loc="".concat(ne.point.lng.toFixed(10),",").concat(ne.point.lat.toFixed(10)),b.store_Addr=ne.address,Q.setFieldsValue(b),Ne(!1),f.default.success("\u95E8\u5E97\u5750\u6807\u8BBE\u7F6E\u6210\u529F\uFF01")};return(0,a.useEffect)(function(){t.storeConfig.id&&Pe([t.storeConfig.id]),we(),je()},[]),(0,e.jsxs)(e.Fragment,{children:[De&&(0,e.jsx)(Gt,{isShowBaiduMap:De,handleOk:_e,handleCancel:function(){return Ne(!1)}}),(0,e.jsx)(Ie.Z,{width:600,title:fe.id?"\u7F16\u8F91\u95E8\u5E97\u67B6\u6784":"\u65B0\u589E\u95E8\u5E97\u67B6\u6784",visible:z,footer:!1,onCancel:function(){return ye(!1)},children:(0,e.jsxs)(n.Z,{form:Q,layout:"horizontal",preserve:!1,labelCol:{span:4},onFinish:g,children:[(0,e.jsx)(n.Z.Item,{name:"id",hidden:!0,children:(0,e.jsx)(w.Z,{})}),(0,e.jsx)(n.Z.Item,{name:"code",hidden:!0,label:"\u95E8\u5E97\u7F16\u7801",children:(0,e.jsx)(w.Z,{placeholder:"\u8BF7\u8F93\u5165\u95E8\u5E97\u7F16\u7801"})}),(0,e.jsx)(n.Z.Item,{name:"name",label:"\u95E8\u5E97\u540D\u79F0",rules:[{required:!0,max:64}],children:(0,e.jsx)(w.Z,{placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0"})}),(0,e.jsx)(n.Z.Item,{name:"pid",label:"\u6240\u5C5E\u673A\u6784",rules:[{required:!0}],children:(0,e.jsx)(yt.Z,{style:{width:"100%"},dropdownStyle:{maxHeight:400,overflow:"auto"},treeData:ce,placeholder:"\u8BF7\u9009\u62E9\u6240\u5C5E\u673A\u6784",treeDefaultExpandAll:!0})}),(0,e.jsx)(n.Z.Item,{name:"type",label:"\u95E8\u5E97\u7C7B\u578B",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u95E8\u5E97\u7C7B\u578B"}],children:(0,e.jsx)(h.Z,{placeholder:"\u8BF7\u9009\u62E9\u673A\u6784\u7C7B\u578B",children:(0,e.jsxs)(I,{children:[(0,e.jsx)(h.Z.Option,{value:2,children:"\u76F4\u8425\u5E97"}),(0,e.jsx)(h.Z.Option,{value:3,children:"\u52A0\u76DF\u5E97"})]})})}),(0,e.jsx)(n.Z.Item,{name:"payTemplateId",label:"\u652F\u4ED8\u6A21\u677F",children:(0,e.jsx)(h.Z,{placeholder:"\u8BF7\u9009\u62E9\u652F\u4ED8\u6A21\u677F",children:B==null?void 0:B.map(function(oe){return(0,e.jsx)(Z,{value:oe.id,children:oe.name},oe.id)})})}),(0,e.jsx)("div",{className:_().add_row_content,children:(0,e.jsx)(n.Z.Item,{label:"\u5E97\u94FA\u5750\u6807",name:"store_Loc",rules:[{required:!0,max:100,pattern:/^[-\+]?\d+(\.\d+)\,[-\+]?\d+(\.\d+)$/,message:"\u7ECF\u7EAC\u5EA6\u683C\u5F0F\u4E0D\u5BF9"}],children:(0,e.jsx)(w.Z,{style:{width:"55%"},placeholder:"104.070734,30.575041"})})}),(0,e.jsx)(n.Z.Item,{label:"\u5E97\u94FA\u5730\u5740",name:"store_Addr",rules:[{required:!0,max:100}],children:(0,e.jsx)(w.Z,{placeholder:"\u6210\u90FD\u5E02\u6B66\u4FAF\u533A\u6842\u6EAA\u8857\u9053\u73AF\u7403\u4E2D\u5FC3N5-9111C"})}),(0,e.jsx)(n.Z.Item,{name:"tel",label:"\u7535\u8BDD",rules:[{max:20}],children:(0,e.jsx)(w.Z,{placeholder:"\u8BF7\u8F93\u5165\u8054\u7CFB\u7535\u8BDD"})}),(0,e.jsx)(n.Z.Item,{name:"sort",label:"\u6392\u5E8F",children:(0,e.jsx)(nt.Z,{min:1,step:1,precision:0})}),(0,e.jsx)(n.Z.Item,{name:"remark",label:"\u5907\u6CE8",children:(0,e.jsx)(X,{rows:4,rules:[{max:500}]})}),(0,e.jsx)(n.Z.Item,{children:(0,e.jsx)(O.Z,{type:"primary",htmlType:"submit",children:"\u786E\u5B9A"})})]})}),(0,e.jsx)(Ot.Z,{search:!1,style:{width:"100%"},headerTitle:"\u95E8\u5E97\u5217\u8868",actionRef:U,rowKey:"id",rowSelection:{type:"radio",onChange:function(ne,b){Pe(ne),t.onSelectedChange("storeConfig",b[0])},selectedRowKeys:Ke},request:function(){var oe=(0,K.Z)((0,c.Z)().mark(function ne(b){var Ze,ae,Se;return(0,c.Z)().wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:return Ze=[],ae=0,Ee.next=4,j.getpage(b).then(function(Fe){Ze=Fe.data.data,ae=Fe.data.total});case 4:return Se=Ze.filter(function(Fe){return Fe.type===2||Fe.type===3}),Ee.abrupt("return",{data:Se,success:!0,total:ae});case 6:case"end":return Ee.stop()}},ne)}));return function(ne){return oe.apply(this,arguments)}}(),columns:Te,pagination:{current:Y,pageSize:ee,onChange:function(ne,b){me(ne),L(b)}},toolBarRender:function(){return[(0,e.jsx)(O.Z,{icon:(0,e.jsx)(et.Z,{}),type:"primary",onClick:function(){Q.resetFields(),ue({id:""}),ye(!0)},children:"\u65B0\u5EFA"},"button")]}})]})},Rt=Pt,qe=d(16894),Ut=d(87246),Ft=d.n(Ut),jt="message",Nt=function(t){var xe=h.Z.Option,se=h.Z.OptGroup,Y=n.Z.useForm(),me=(0,u.Z)(Y,1),V=me[0],R=n.Z.useForm(),ee=(0,u.Z)(R,1),L=ee[0],X=(0,a.useState)([]),Z=(0,u.Z)(X,2),I=Z[0],$=Z[1],te=(0,a.useState)([]),Q=(0,u.Z)(te,2),re=Q[0],ge=Q[1],ce=(0,a.useState)({}),le=(0,u.Z)(ce,2),H=le[0],pe=le[1],B=(0,a.useState)([]),M=(0,u.Z)(B,2),g=M[0],T=M[1],q=(0,a.useState)([]),fe=(0,u.Z)(q,2),ue=fe[0],J=fe[1],A=(0,a.useState)(!1),z=(0,u.Z)(A,2),ye=z[0],U=z[1],we=(0,a.useState)({id:""}),je=(0,u.Z)(we,2),Te=je[0],Ue=je[1],Ge=(0,a.useState)(!1),Ke=(0,u.Z)(Ge,2),Pe=Ke[0],be=Ke[1],Be=function(){var F=(0,K.Z)((0,c.Z)().mark(function S(r){var i,s;return(0,c.Z)().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:if(f.default.loading("\u6B63\u5728\u914D\u7F6E",jt),!r.id){m.next=8;break}return m.next=4,j.UpdateDeviceInfo(r);case 4:i=m.sent,i.succeeded?(f.default.success("\u4FEE\u6539\u6210\u529F"),be(!1),b.current.reload()):f.default.error(i.errors||"\u4FEE\u6539\u51FA\u9519"),m.next=12;break;case 8:return m.next=10,j.AddDeviceInfo(r);case 10:s=m.sent,s.succeeded?(f.default.success("\u6DFB\u52A0\u6210\u529F"),b.current.reload(),be(!1)):f.default.error(s.errors||"\u6DFB\u52A0\u6210\u51FA\u9519");case 12:f.default.destroy(jt),b.current.reload();case 14:case"end":return m.stop()}},S)}));return function(r){return F.apply(this,arguments)}}(),De=function(){var F=(0,K.Z)((0,c.Z)().mark(function S(){var r;return(0,c.Z)().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,j.GetDicList("DeviceClientType");case 2:r=s.sent,r.statusCode===200?(r.data.forEach(function(x){x.code=x.code,x.value=x.code}),$(r.data)):f.default.error(r.errors||"\u83B7\u53D6\u8BBE\u5907\u7C7B\u578B\u51FA\u9519");case 4:case"end":return s.stop()}},S)}));return function(){return F.apply(this,arguments)}}(),Ne=function(){var F=(0,K.Z)((0,c.Z)().mark(function S(){var r;return(0,c.Z)().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,j.getOrgTree();case 2:r=s.sent,r.statusCode===200?T(r.data):f.default.error(r.errors||"\u83B7\u53D6\u7EC4\u7EC7\u67B6\u6784\u51FA\u9519");case 4:case"end":return s.stop()}},S)}));return function(){return F.apply(this,arguments)}}(),_e=function(){var F=(0,K.Z)((0,c.Z)().mark(function S(){var r,i;return(0,c.Z)().wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return x.next=2,j.GetDeviceType();case 2:r=x.sent,r.statusCode===200?(i={},r.data.forEach(function(m){i[m.id]={text:m.name}}),pe(i),ge(r.data)):f.default.error(r.errors||"\u83B7\u53D6\u8BBE\u5907\u5206\u7C7B\u51FA\u9519");case 4:case"end":return x.stop()}},S)}));return function(){return F.apply(this,arguments)}}(),oe=function(){var F=(0,K.Z)((0,c.Z)().mark(function S(){var r;return(0,c.Z)().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,j.GetDeviceVersions();case 2:r=s.sent,r.statusCode===200?J(r.data):f.default.error(r.errors||"\u83B7\u53D6\u8BBE\u5907\u7248\u672C\u51FA\u9519");case 4:case"end":return s.stop()}},S)}));return function(){return F.apply(this,arguments)}}(),ne=function(){var F=(0,K.Z)((0,c.Z)().mark(function S(r){var i;return(0,c.Z)().wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return x.next=2,j.AddDeviceType(r);case 2:i=x.sent,i.data?(f.default.success("\u8BBE\u5907\u5206\u7C7B\u6DFB\u52A0\u6210\u529F\uFF01"),U(!1),_e()):f.default.error(i.errors||"\u6DFB\u52A0\u8BBE\u5907\u5206\u7C7B\u51FA\u9519");case 4:case"end":return x.stop()}},S)}));return function(r){return F.apply(this,arguments)}}(),b=(0,a.useRef)(),Ze=(0,a.useState)([]),ae=(0,u.Z)(Ze,2),Se=ae[0],Ce=ae[1],Ee=[{title:"\u4E3B\u952E",dataIndex:"id",hideInSearch:!0,hideInTable:!0,tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key"},{title:"\u8BBE\u5907\u540D\u79F0",dataIndex:"deviceName",valueType:"textarea"},{title:"\u6240\u5C5E\u95E8\u5E97",dataIndex:"orgId",hideInSearch:!0,render:function(S,r){return(0,e.jsx)("div",{children:t.storeConfig.name})}},{title:"\u8BBE\u5907\u7C7B\u578B",dataIndex:"deviceTypeKey",valueEnum:I,hideInSearch:!0},{title:"\u8BBE\u5907\u5206\u7C7B",dataIndex:"deviceTypeId",valueEnum:H},{title:"\u72B6\u6001",dataIndex:"status",valueEnum:{0:{text:"\u6B63\u5E38",status:"Processing"},1:{text:"\u505C\u7528",status:"Success"}},hideInSearch:!0},{title:"\u8BBE\u5907\u5730\u5740",dataIndex:"deviceAddr",search:!1,valueType:"textarea"},{title:"\u5750\u6807",dataIndex:"deviceLoc",valueType:"textarea",search:!1},{title:"\u8BBE\u5907\u901A\u9053\u6570\u91CF",dataIndex:"materialQuantity",valueType:"textarea",search:!1},{title:"\u8BBE\u5907\u552F\u4E00key",dataIndex:"autoKey",search:!1},{title:"\u5F52\u5C5E\u95E8\u5E97\u552F\u4E00key",dataIndex:"orgKey",search:!1},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(S,r){return[(0,e.jsx)("a",{onClick:function(){Ue(r),be(!0),L.setFieldsValue(r)},children:"\u66F4\u65B0"},"config")]}}],Fe=(0,a.useState)(0),ze=(0,u.Z)(Fe,2),Ve=ze[0],Me=ze[1],Je=(0,a.useState)(20),Qe=(0,u.Z)(Je,2),Le=Qe[0],Oe=Qe[1];return(0,a.useEffect)(function(){var F;(F=t.deviceConfig)!==null&&F!==void 0&&F.id&&Ce([t.deviceConfig.id]),Ne(),_e(),De(),oe()},[]),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(qe.ZP,{style:{width:"100%"},headerTitle:"\u8BBE\u5907\u4FE1\u606F",actionRef:b,rowKey:"id",search:!1,pagination:{current:Ve,pageSize:Le,onChange:function(S,r){Me(S),Oe(r)}},request:function(){var F=(0,K.Z)((0,c.Z)().mark(function S(r){var i,s;return(0,c.Z)().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return i=[],s=0,m.next=4,j.GetDeviceInfoPage(r).then(function(ie){i=ie.data.data,s=ie.data.total});case 4:return i=i.filter(function(ie){return ie.orgId===t.storeConfig.id}),m.abrupt("return",{data:i,success:!0,total:s});case 6:case"end":return m.stop()}},S)}));return function(S){return F.apply(this,arguments)}}(),columns:Ee,rowSelection:{type:"radio",onChange:function(S,r){Ce(S),t.onSelectedChange("deviceConfig",r[0])},selectedRowKeys:Se},toolBarRender:function(){return[(0,e.jsx)(O.Z,{icon:(0,e.jsx)(et.Z,{}),type:"primary",onClick:function(){L.resetFields();var r=L.getFieldsValue();r.orgId=t.storeConfig.id,r.deviceLoc=t.storeConfig.store_Loc,r.deviceAddr=t.storeConfig.store_Addr,L.setFieldsValue(r),Ue({id:""}),be(!0)},children:"\u65B0\u5EFA"},"button")]}}),(0,e.jsx)(Ie.Z,{width:600,title:Te.id?"\u7F16\u8F91\u8BBE\u5907":"\u65B0\u589E\u8BBE\u5907",visible:Pe,footer:!1,onCancel:function(){return be(!1)},children:(0,e.jsxs)(n.Z,{layout:"Horizontal",labelCol:{span:6},preserve:!1,form:L,onFinish:Be,children:[(0,e.jsx)(n.Z.Item,{name:"id",hidden:!0,children:(0,e.jsx)(w.Z,{})}),(0,e.jsx)(n.Z.Item,{label:"\u8BBE\u5907\u540D\u79F0",name:"deviceName",rules:[{required:!0,max:50}],children:(0,e.jsx)(w.Z,{})}),(0,e.jsx)(n.Z.Item,{label:"\u8BBE\u5907\u7C7B\u578B",name:"deviceTypeKey",rules:[{required:!0}],children:(0,e.jsx)(h.Z,{children:I.map(function(F,S){return(0,e.jsx)(h.Z.Option,{index:S,value:F.code,children:F.value},F.code)})})}),(0,e.jsx)(n.Z.Item,{name:"orgId",label:"\u5F52\u5C5E\u95E8\u5E97",rules:[{required:!0}],children:(0,e.jsx)(yt.Z,{disabled:!0,style:{width:"100%"},dropdownStyle:{maxHeight:400,overflow:"auto"},treeData:g,placeholder:"\u5F52\u5C5E\u95E8\u5E97",treeDefaultExpandAll:!0})}),(0,e.jsxs)("div",{className:Ft().add_row_content,children:[(0,e.jsx)(n.Z.Item,{label:"\u8BBE\u5907\u5206\u7C7B",name:"deviceTypeId",rules:[{required:!0}],children:(0,e.jsx)(h.Z,{style:{width:"75%"},children:re.map(function(F,S){return(0,e.jsx)(h.Z.Option,{index:S,value:F.id,children:F.name},F.id)})})}),(0,e.jsx)(O.Z,{type:"primary",className:Ft().add_row_btn,onClick:function(){U(!0),V.resetFields()},children:"\u6DFB\u52A0\u5206\u7C7B"})]}),(0,e.jsx)(n.Z.Item,{noStyle:!0,shouldUpdate:function(S,r){return S.deviceTypeKey!==r.deviceTypeKey},children:function(S){var r=S.getFieldValue;return r("deviceTypeKey")==="TMC"?(0,e.jsx)(n.Z.Item,{name:"deviceVersion",label:"\u8BBE\u5907\u7248\u672C",initialValue:"WorryFreeEdition",children:(0,e.jsx)(h.Z,{children:ue.map(function(i,s){return(0,e.jsx)(h.Z.Option,{index:s,value:i.code,children:i.name},i.code)})})}):null}}),(0,e.jsx)(n.Z.Item,{label:"\u8BBE\u5907\u5750\u6807",name:"deviceLoc",children:(0,e.jsx)(w.Z,{placeholder:"104.070734,30.575041"})}),(0,e.jsx)(n.Z.Item,{label:"\u72B6\u6001",name:"status",children:(0,e.jsx)(h.Z,{placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001",defaultValue:0,children:(0,e.jsxs)(se,{children:[(0,e.jsx)(h.Z.Option,{value:0,children:"\u6B63\u5E38"}),(0,e.jsx)(h.Z.Option,{value:1,children:"\u505C\u7528"})]})})}),(0,e.jsx)(n.Z.Item,{noStyle:!0,shouldUpdate:function(S,r){return S.deviceTypeKey!==r.deviceTypeKey},children:function(S){var r=S.getFieldValue;return r("deviceTypeKey")==="TMC"?(0,e.jsx)(n.Z.Item,{label:"\u8BBE\u5907\u901A\u9053\u6570\u91CF",name:"materialQuantity",children:(0,e.jsx)(nt.Z,{style:{width:"100%"}})}):null}}),(0,e.jsx)(n.Z.Item,{label:"\u8BBE\u5907\u8BE6\u7EC6\u5730\u5740",name:"deviceAddr",children:(0,e.jsx)(w.Z,{placeholder:"\u6210\u90FD\u5E02\u6B66\u4FAF\u533A\u6842\u6EAA\u8857\u9053\u73AF\u7403\u4E2D\u5FC3N5-9111C"})}),(0,e.jsx)(n.Z.Item,{children:(0,e.jsx)(O.Z,{type:"primary",htmlType:"submit",children:"\u786E\u5B9A"})})]})}),(0,e.jsx)(Ie.Z,{title:"\u6DFB\u52A0\u8BBE\u5907\u5206\u7C7B",visible:ye,footer:!1,onCancel:function(){return U(!1)},children:(0,e.jsxs)(n.Z,{layout:"vertical",onFinish:ne,form:V,children:[(0,e.jsx)(n.Z.Item,{name:"id",hidden:!0,children:(0,e.jsx)(w.Z,{})}),(0,e.jsx)(n.Z.Item,{label:"\u7C7B\u578B\u540D\u79F0",name:"name",rules:[{required:!0,max:50}],children:(0,e.jsx)(w.Z,{})}),(0,e.jsx)(n.Z.Item,{children:(0,e.jsx)(O.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})})]})},_t=Nt,tt="message",Lt=function(t){var xe=n.Z.useForm(),se=(0,u.Z)(xe,1),Y=se[0],me=function(){var J=(0,K.Z)((0,c.Z)().mark(function A(z){return(0,c.Z)().wrap(function(U){for(;;)switch(U.prev=U.next){case 0:if(!z.id){U.next=13;break}return U.prev=1,f.default.loading("\u6B63\u5728\u4FEE\u6539",tt),U.next=5,j.UpdateFoodMenu(z).then(function(we){f.default.destroy(tt),we.data?(f.default.success("\u4FEE\u6539\u6210\u529F"),$(!1),te.current.reload()):f.default.error("\u4FEE\u6539\u5931\u8D25")});case 5:U.next=11;break;case 7:U.prev=7,U.t0=U.catch(1),f.default.destroy(tt),f.default.error("\u4FEE\u6539\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01");case 11:U.next=23;break;case 13:return U.prev=13,f.default.loading("\u6B63\u5728\u6DFB\u52A0",tt),U.next=17,j.AddFoodMenu(z).then(function(we){f.default.destroy(tt),we.data?(f.default.success("\u6DFB\u52A0\u6210\u529F"),$(!1),te.current.reload()):f.default.error("\u6DFB\u52A0\u5931\u8D25")});case 17:U.next=23;break;case 19:U.prev=19,U.t1=U.catch(13),f.default.destroy(tt),f.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01");case 23:case"end":return U.stop()}},A,null,[[1,7],[13,19]])}));return function(z){return J.apply(this,arguments)}}(),V=(0,a.useState)({id:""}),R=(0,u.Z)(V,2),ee=R[0],L=R[1],X=(0,a.useState)(!1),Z=(0,u.Z)(X,2),I=Z[0],$=Z[1],te=(0,a.useRef)(),Q=(0,a.useState)(1),re=(0,u.Z)(Q,2),ge=re[0],ce=re[1],le=(0,a.useState)(10),H=(0,u.Z)(le,2),pe=H[0],B=H[1],M=(0,a.useState)([]),g=(0,u.Z)(M,2),T=g[0],q=g[1],fe=[{title:"\u4E3B\u952E",dataIndex:"id",hideInSearch:!0,hideInTable:!0,tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key"},{title:"\u83DC\u8C31\u7F16\u7801",dataIndex:"code",valueType:"textarea"},{title:"\u83DC\u8C31\u540D\u79F0",dataIndex:"name",valueType:"textarea"},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(A,z){return[(0,e.jsx)("a",{onClick:function(){L(z),$(!0),Y.setFieldsValue(z)},children:"\u66F4\u65B0"},"config")]}}],ue=function(){if(t.foodMenuConfig.length>0){var A=[];t.foodMenuConfig.forEach(function(z){A.push(z.id)}),q(A)}};return(0,a.useEffect)(function(){ue()},[]),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(qe.ZP,{style:{width:"100%"},headerTitle:"\u83DC\u8C31\u5217\u8868",actionRef:te,rowKey:"id",search:!1,pagination:{current:ge,pageSize:pe,onChange:function(A,z){ce(A),B(z)}},request:function(){var J=(0,K.Z)((0,c.Z)().mark(function A(z){var ye,U;return(0,c.Z)().wrap(function(je){for(;;)switch(je.prev=je.next){case 0:return ye=[],U=0,je.next=4,j.GetFoodMenuInfoPage(z).then(function(Te){ye=Te.data.data,U=Te.data.total});case 4:return je.abrupt("return",{data:ye,success:!0,total:U});case 5:case"end":return je.stop()}},A)}));return function(A){return J.apply(this,arguments)}}(),columns:fe,rowSelection:{type:"checkbox",onChange:function(A,z){q(A),t.onSelectedChange("foodMenuConfig",z)},selectedRowKeys:T},toolBarRender:function(){return[(0,e.jsx)(O.Z,{icon:(0,e.jsx)(et.Z,{}),type:"primary",onClick:function(){Y.resetFields();var z=Y.getFieldsValue();z.code=(0,Xe.x0)().substring(0,20),Y.setFieldsValue(z),L({id:""}),$(!0)},children:"\u65B0\u5EFA"},"button")]}}),(0,e.jsx)(Ie.Z,{width:600,title:ee.id?"\u7F16\u8F91\u83DC\u8C31":"\u65B0\u589E\u83DC\u8C31",visible:I,footer:!1,onCancel:function(){return $(!1)},children:(0,e.jsxs)(n.Z,{form:Y,layout:"Horizontal",preserve:!1,onFinish:me,style:{width:"100%"},children:[(0,e.jsx)(n.Z.Item,{name:"id",hidden:!0,children:(0,e.jsx)(w.Z,{})}),(0,e.jsx)(n.Z.Item,{label:"\u83DC\u8C31\u7F16\u7801",name:"code",rules:[{required:!0,max:50}],children:(0,e.jsx)(w.Z,{disabled:!0})}),(0,e.jsx)(n.Z.Item,{label:"\u83DC\u8C31\u540D\u79F0",name:"name",rules:[{required:!0,max:20}],children:(0,e.jsx)(w.Z,{})}),(0,e.jsx)(n.Z.Item,{children:(0,e.jsx)(O.Z,{type:"primary",htmlType:"submit",children:"\u786E\u5B9A"})})]})})]})},$t=Lt,kn=d(57338),mt=d(273),An=d(66456),pt=d(64411),Gn=d(77576),Bt=d(12028),Pn=d(43185),Wt=d(93009),Rn=d(74379),Re=d(38648),Kt=d(84391),zt=d(9669),Yt=d.n(zt),wt="message",Vt=function(t){var xe=h.Z.Option,se=h.Z.OptGroup,Y=(0,a.useState)(),me=(0,u.Z)(Y,2),V=me[0],R=me[1],ee=(0,a.useState)([]),L=(0,u.Z)(ee,2),X=L[0],Z=L[1],I=(0,a.useState)([]),$=(0,u.Z)(I,2),te=$[0],Q=$[1],re=(0,a.useState)([]),ge=(0,u.Z)(re,2),ce=ge[0],le=ge[1],H=n.Z.useForm(),pe=(0,u.Z)(H,1),B=pe[0],M=(0,a.useState)(!1),g=(0,u.Z)(M,2),T=g[0],q=g[1],fe=(0,a.useState)(!1),ue=(0,u.Z)(fe,2),J=ue[0],A=ue[1],z=n.Z.useForm(),ye=(0,u.Z)(z,1),U=ye[0],we=(0,a.useState)(!1),je=(0,u.Z)(we,2),Te=je[0],Ue=je[1],Ge=(0,a.useState)(0),Ke=(0,u.Z)(Ge,2),Pe=Ke[0],be=Ke[1],Be=(0,a.useState)(10),De=(0,u.Z)(Be,2),Ne=De[0],_e=De[1],oe=function(){var l=(0,K.Z)((0,c.Z)().mark(function o(){var C;return(0,c.Z)().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return E.next=2,j.GetUnitList({current:1,pageSize:200});case 2:C=E.sent,C.statusCode===200&&Z(C.data.data);case 4:case"end":return E.stop()}},o)}));return function(){return l.apply(this,arguments)}}(),ne=function(){var l=(0,K.Z)((0,c.Z)().mark(function o(){var C;return(0,c.Z)().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return E.next=2,j.GetGoodsbigType({current:1,status:0,pageSize:1e3});case 2:C=E.sent,C.statusCode===200&&Q(C.data.data);case 4:case"end":return E.stop()}},o)}));return function(){return l.apply(this,arguments)}}(),b=function(){var l=(0,K.Z)((0,c.Z)().mark(function o(){var C;return(0,c.Z)().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return E.next=2,j.GetGoodsSmallType({current:1,status:0,pageSize:1e3});case 2:C=E.sent,C.statusCode===200&&le(C.data.data);case 4:case"end":return E.stop()}},o)}));return function(){return l.apply(this,arguments)}}(),Ze={name:"file",showUploadList:!1,multiple:!1,accept:".png, .jpg, .jpeg, .gif",headers:{"Content-Type":"application/octet-stream"},customRequest:function(o){var C=o.action,D=o.file,E=o.headers,he=o.onError,de=o.onProgress,Ye=o.onSuccess,vn=o.withCredentials;console.log("\u4E0A\u4F20\u56FE\u7247",D);var gn=D.name.lastIndexOf("."),xn=D.name.substr(gn+1),Tt=null;return j.GetCosRequestURL({directory:"goods",fileExtension:xn,method:"PUT"}).then(function(ht){C=ht.allUrl;var bt=new FileReader;bt.readAsArrayBuffer(D),bt.onload=function(Zn){Tt=Zn.target.result,Yt().put(C,Tt,{withCredentials:vn,headers:E,onUploadProgress:function(st){var Cn=st.total,yn=st.loaded;de({percent:Math.round(yn/Cn*100).toFixed(2)},D)}}).then(function(xt){if(xt.status==200||xt.statusText=="OK"){R(ht.seeUrl);var st=B.getFieldsValue();st.imgUrl=ht.seeUrl,B.setFieldsValue(st)}}).catch(he)}}),{abort:function(){console.log("upload progress is aborted.")}}}},ae=function(){var l=(0,K.Z)((0,c.Z)().mark(function o(C){var D,E;return(0,c.Z)().wrap(function(de){for(;;)switch(de.prev=de.next){case 0:if(delete C.imgUrl1,f.default.loading("\u6B63\u5728\u914D\u7F6E",wt),!C.id){de.next=9;break}return de.next=5,j.UpdateGoods(C);case 5:D=de.sent,D.succeeded?(f.default.success("\u4FEE\u6539\u6210\u529F"),Le(!1),Oe.current.reload()):f.default.error(D.errors||"\u4FEE\u6539\u51FA\u9519"),de.next=13;break;case 9:return de.next=11,j.AddGoods(C);case 11:E=de.sent,E.data?(f.default.success("\u6DFB\u52A0\u6210\u529F"),Oe.current.reload(),Le(!1)):f.default.error(E.errors||"\u6DFB\u52A0\u6210\u51FA\u9519");case 13:f.default.destroy(wt);case 14:case"end":return de.stop()}},o)}));return function(C){return l.apply(this,arguments)}}(),Se=[{title:"\u4E3B\u952E",dataIndex:"id",hideInTable:!0,hideInSearch:!0},{title:"\u56FE\u7247\u5730\u5740",dataIndex:"imgUrl",hideInTable:!0,hideInSearch:!0},{title:"\u7F16\u7801",dataIndex:"code",valueType:"textarea"},{title:"\u540D\u79F0",dataIndex:"name",valueType:"textarea"},{title:"\u57FA\u7840\u4EF7\u683C",dataIndex:"price",hideInForm:!0,renderText:function(o){return"".concat(o,"\xA5")},hideInSearch:!0},{title:"\u4F1A\u5458\u4EF7",dataIndex:"vipPrice",hideInForm:!0,renderText:function(o){return"".concat(o,"\xA5")},hideInSearch:!0},{title:"\u5546\u54C1\u5C0F\u7C7B",dataIndex:"goodsTypeName",hideInForm:!0,hideInSearch:!0},{title:"\u5546\u54C1\u7C7B\u578B",dataIndex:"goodsTypeId",hideInForm:!0,hideInTable:!0},{title:"\u5546\u54C1\u5C5E\u6027",dataIndex:"goodsAttribute",hideInForm:!0,valueEnum:{0:{text:"\u5355\u54C1"},1:{text:"\u5957\u9910"}}},{title:"\u72B6\u6001",dataIndex:"status",hideInForm:!0,valueEnum:{0:{text:"\u6B63\u5E38",status:"Processing"},1:{text:"\u505C\u7528",status:"Error"},2:{text:"\u5220\u9664",status:"Error"}}},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"createAt",valueType:"date"},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(o,C){return[(0,e.jsx)("a",{onClick:function(){Ve(C),Le(!0),B.setFieldsValue(C)},children:"\u66F4\u65B0"},"config")]}}],Ce=[{title:"\u540D\u79F0",dataIndex:"name",valueType:"textarea"}],Ee=(0,a.useState)({id:""}),Fe=(0,u.Z)(Ee,2),ze=Fe[0],Ve=Fe[1],Me=(0,a.useState)(!1),Je=(0,u.Z)(Me,2),Qe=Je[0],Le=Je[1],Oe=(0,a.useRef)(),F=(0,a.useState)([]),S=(0,u.Z)(F,2),r=S[0],i=S[1],s=(0,a.useState)([]),x=(0,u.Z)(s,2),m=x[0],ie=x[1],ve=(0,a.useState)(!1),ke=(0,u.Z)(ve,2),dt=ke[0],ct=ke[1],ut=(0,a.useState)([]),ft=(0,u.Z)(ut,2),gt=ft[0],it=ft[1],G=(0,a.useState)(t.foodMenuConfig[0].id),p=(0,u.Z)(G,2),v=p[0],W=p[1],N=[{title:"\u540D\u79F0",dataIndex:"name",valueType:"textarea"},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(o,C){return[(0,e.jsx)("a",{onClick:function(){t.onAddGoodsToFoodMenu(v,C,!1)},children:"\u79FB\u51FA\u83DC\u8C31"})]}}],P=function(){if(m.length===0){Re.default.error({message:"\u5546\u54C1\u6DFB\u52A0\u5230\u83DC\u8C31\u51FA\u9519",description:"\u8BF7\u9009\u62E9\u5546\u54C1",placement:"topRight"});return}t.onAddGoodsToFoodMenu(v,m),i([]),ie([])};return(0,a.useEffect)(function(){oe(),ne(),b()},[]),(0,a.useEffect)(function(){var l=t.foodMenuConfig.find(function(o){return o.id===v});it(l?l.goodsConfig:[])},[t.foodMenuConfig,v]),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(Ie.Z,{width:600,title:ze.id?"\u7F16\u8F91\u5546\u54C1":"\u65B0\u589E\u5546\u54C1",visible:Qe,footer:!1,onCancel:function(){return Le(!1)},children:(0,e.jsxs)(n.Z,{labelCol:{span:4},layout:"horizontal",preserve:!1,onFinish:ae,form:B,children:[(0,e.jsx)(n.Z.Item,{name:"id",hidden:!0,children:(0,e.jsx)(w.Z,{})}),(0,e.jsx)(n.Z.Item,{name:"code",label:"\u5546\u54C1\u7F16\u7801",hidden:!0,children:(0,e.jsx)(w.Z,{disabled:!0})}),(0,e.jsx)(n.Z.Item,{name:"name",label:"\u5546\u54C1\u540D\u79F0",rules:[{required:!0}],children:(0,e.jsx)(w.Z,{})}),(0,e.jsxs)("div",{className:_().add_row_content,children:[(0,e.jsx)(n.Z.Item,{name:"goodsUintId",label:"\u5546\u54C1\u5355\u4F4D",rules:[{required:!0}],children:(0,e.jsx)(h.Z,{style:{width:"75%"},children:X.map(function(l,o){return(0,e.jsx)(h.Z.Option,{index:o,value:l.id,children:l.name},l.id)})})}),(0,e.jsx)(O.Z,{type:"primary",className:_().add_row_btn,onClick:function(){return q(!0)},children:"\u6DFB\u52A0\u5355\u4F4D"})]}),(0,e.jsxs)("div",{className:_().add_row_content,children:[(0,e.jsx)(n.Z.Item,{name:"parentTypeID",label:"\u5546\u54C1\u5927\u7C7B",rules:[{required:!0}],children:(0,e.jsx)(h.Z,{style:{width:"75%"},children:te.map(function(l,o){return(0,e.jsx)(h.Z.Option,{index:o,value:l.id,children:l.name},l.id)})})}),(0,e.jsx)(O.Z,{type:"primary",className:_().add_row_btn,onClick:function(){return A(!0)},children:"\u6DFB\u52A0\u5927\u7C7B"})]}),(0,e.jsxs)("div",{className:_().add_row_content,children:[(0,e.jsx)(n.Z.Item,{name:"goodsTypeId",label:"\u5546\u54C1\u5C0F\u7C7B",rules:[{required:!0}],children:(0,e.jsx)(h.Z,{style:{width:"75%"},children:ce.map(function(l,o){return(0,e.jsx)(h.Z.Option,{index:o,value:l.id,children:l.goodsType_Name},l.id)})})}),(0,e.jsx)(O.Z,{type:"primary",className:_().add_row_btn,onClick:function(){return Ue(!0)},children:"\u6DFB\u52A0\u5C0F\u7C7B"})]}),(0,e.jsx)(n.Z.Item,{name:"price",label:"\u5546\u54C1\u4EF7\u683C",rules:[{required:!0}],children:(0,e.jsx)(nt.Z,{placeholder:"\u4EF7\u683C",min:0,style:{width:"100%"}})}),(0,e.jsx)(n.Z.Item,{name:"vipPrice",label:"\u4F1A\u5458\u4EF7\u683C",children:(0,e.jsx)(nt.Z,{placeholder:"\u4F1A\u5458\u4EF7",min:0,style:{width:"100%"}})}),(0,e.jsx)(n.Z.Item,{name:"goodsAttribute",label:"\u5546\u54C1\u5C5E\u6027",defaultValue:0,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5546\u54C1\u5C5E\u6027"}],children:(0,e.jsx)(h.Z,{placeholder:"\u8BF7\u9009\u62E9\u5546\u54C1\u5C5E\u6027",children:(0,e.jsxs)(se,{children:[(0,e.jsx)(h.Z.Option,{value:0,children:"\u5355\u54C1"}),(0,e.jsx)(h.Z.Option,{value:1,children:"\u5957\u9910"})]})})}),(0,e.jsx)(n.Z.Item,{name:"status",label:"\u72B6\u6001",defaultValue:0,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u72B6\u6001"}],children:(0,e.jsx)(h.Z,{placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001",children:(0,e.jsxs)(se,{children:[(0,e.jsx)(h.Z.Option,{value:0,children:"\u6B63\u5E38"}),(0,e.jsx)(h.Z.Option,{value:1,children:"\u505C\u7528"})]})})}),(0,e.jsx)(n.Z.Item,{name:"remark",label:"\u5907\u6CE8",children:(0,e.jsx)(w.Z,{})}),(0,e.jsx)(n.Z.Item,{name:"imgUrl",hidden:!0,children:(0,e.jsx)(w.Z,{})}),(0,e.jsx)(n.Z.Item,{name:"imgUrl1",label:"\u5546\u54C1\u56FE\u7247\u5730\u5740",children:(0,e.jsx)(Wt.Z,(0,Ae.Z)((0,Ae.Z)({},Ze),{},{children:ze.imgUrl?(0,e.jsx)("img",{src:ze.imgUrl,alt:"avatar",style:{width:"100%"}}):(0,e.jsx)(O.Z,{icon:(0,e.jsx)(Kt.Z,{}),children:"\u4E0A\u4F20"})}))}),(0,e.jsx)(n.Z.Item,{label:"\u662F\u5426\u79F0\u91CD",name:"isWeigh",valuePropName:"checked",initialValue:"false",children:(0,e.jsx)(Bt.Z,{checkedChildren:"\u662F",unCheckedChildren:"\u5426",defaultChecked:"false"})}),(0,e.jsx)(n.Z.Item,{children:(0,e.jsx)(O.Z,{type:"primary",htmlType:"submit",children:"\u786E\u5B9A"})})]})}),(0,e.jsx)(qe.ZP,{actionRef:Oe,style:{width:"100%"},headerTitle:"\u5546\u54C1\u5217\u8868",rowKey:"id",search:{labelWidth:120},pagination:{current:Pe,pageSize:Ne,onChange:function(o,C){be(o),_e(C)}},request:function(){var l=(0,K.Z)((0,c.Z)().mark(function o(C){var D,E;return(0,c.Z)().wrap(function(de){for(;;)switch(de.prev=de.next){case 0:return D=[],E=0,de.next=4,j.GetgoodsList(C).then(function(Ye){D=Ye.data.data,E=Ye.data.total});case 4:return de.abrupt("return",{data:D,success:!0,total:E});case 5:case"end":return de.stop()}},o)}));return function(o){return l.apply(this,arguments)}}(),columns:Se,toolBarRender:function(){return[(0,e.jsx)(O.Z,{icon:(0,e.jsx)(et.Z,{}),type:"primary",onClick:function(){B.resetFields(),Ve({id:""}),Le(!0)},children:"\u65B0\u5EFA"},"button"),(0,e.jsx)(O.Z,{type:"primary",onClick:function(){ct(!0)},children:"\u5173\u8054\u83DC\u8C31"},"button")]}}),(0,e.jsx)(Ie.Z,{title:"\u65B0\u5EFA\u5546\u54C1\u5355\u4F4D",width:640,visible:T,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){q(!1)},destroyOnClose:!0,maskClosable:!1,children:(0,e.jsxs)(n.Z,{layout:"vertical",preserve:!1,onFinish:function(){var l=(0,K.Z)((0,c.Z)().mark(function o(C){var D;return(0,c.Z)().wrap(function(he){for(;;)switch(he.prev=he.next){case 0:return he.next=2,j.CreateUnit(C);case 2:D=he.sent,D.data?(f.default.success("\u5546\u54C1\u5355\u4F4D\u6DFB\u52A0\u6210\u529F"),q(!1),oe()):f.default.error(D.errors||"\u5546\u54C1\u5355\u4F4D\u6DFB\u52A0\u5931\u8D25");case 4:case"end":return he.stop()}},o)}));return function(o){return l.apply(this,arguments)}}(),children:[(0,e.jsx)(n.Z.Item,{name:"id",hidden:!0,children:(0,e.jsx)(w.Z,{})}),(0,e.jsx)(n.Z.Item,{name:"name",label:"\u5546\u54C1\u5355\u4F4D\u540D\u79F0",rules:[{required:!0,max:64}],children:(0,e.jsx)(w.Z,{placeholder:"\u5546\u54C1\u5355\u4F4D\u540D\u79F0"})}),(0,e.jsx)(n.Z.Item,{name:"status",label:"\u72B6\u6001",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u72B6\u6001"}],children:(0,e.jsx)(h.Z,{placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001",children:(0,e.jsxs)(se,{children:[(0,e.jsx)(h.Z.Option,{value:"0",children:"\u6B63\u5E38"}),(0,e.jsx)(h.Z.Option,{value:"1",children:"\u505C\u7528"})]})})}),(0,e.jsx)(n.Z.Item,{children:(0,e.jsx)(O.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})}),(0,e.jsx)(Ie.Z,{title:"\u65B0\u5EFA\u5546\u54C1\u5927\u7C7B",width:640,visible:J,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){A(!1)},destroyOnClose:!0,children:(0,e.jsxs)(n.Z,{form:U,labelCol:{span:6},layout:"horizontal",preserve:!1,onFinish:function(){var l=(0,K.Z)((0,c.Z)().mark(function o(C){var D;return(0,c.Z)().wrap(function(he){for(;;)switch(he.prev=he.next){case 0:return he.next=2,j.AddGoodsTypeListNew(C);case 2:D=he.sent,D.data?(f.default.success("\u5546\u54C1\u5927\u7C7B\u6DFB\u52A0\u6210\u529F"),A(!1),ne()):f.default.error(D.errors||"\u5546\u54C1\u5927\u7C7B\u6DFB\u52A0\u5931\u8D25");case 4:case"end":return he.stop()}},o)}));return function(o){return l.apply(this,arguments)}}(),children:[(0,e.jsx)(n.Z.Item,{name:"id",hidden:!0,children:(0,e.jsx)(w.Z,{})}),(0,e.jsx)(n.Z.Item,{name:"name",label:"\u5546\u54C1\u5927\u7C7B\u540D\u79F0",rules:[{required:!0,max:50}],children:(0,e.jsx)(w.Z,{})}),(0,e.jsx)(n.Z.Item,{name:"status",label:"\u72B6\u6001",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u72B6\u6001"}],children:(0,e.jsx)(h.Z,{placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001",children:(0,e.jsxs)(se,{children:[(0,e.jsx)(h.Z.Option,{value:"0",children:"\u6B63\u5E38"}),(0,e.jsx)(h.Z.Option,{value:"1",children:"\u505C\u7528"})]})})}),(0,e.jsx)(n.Z.Item,{name:"remark",label:"\u5907\u6CE8",children:(0,e.jsx)(w.Z,{})}),(0,e.jsx)(n.Z.Item,{children:(0,e.jsx)(O.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})}),(0,e.jsx)(Ie.Z,{title:"\u65B0\u5EFA\u5546\u54C1\u5C0F\u7C7B",width:640,visible:Te,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){Ue(!1)},destroyOnClose:!0,children:(0,e.jsxs)(n.Z,{labelCol:{span:6},layout:"horizontal",preserve:!1,onFinish:function(){var l=(0,K.Z)((0,c.Z)().mark(function o(C){var D;return(0,c.Z)().wrap(function(he){for(;;)switch(he.prev=he.next){case 0:return he.next=2,j.AddGoodsSmallType(C);case 2:D=he.sent,D.data?(f.default.success("\u5546\u54C1\u5C0F\u7C7B\u6DFB\u52A0\u6210\u529F"),Ue(!1),b()):f.default.error(D.errors||"\u5546\u54C1\u5C0F\u7C7B\u6DFB\u52A0\u5931\u8D25");case 4:case"end":return he.stop()}},o)}));return function(o){return l.apply(this,arguments)}}(),children:[(0,e.jsx)(n.Z.Item,{name:"id",hidden:!0,children:(0,e.jsx)(w.Z,{})}),(0,e.jsx)(n.Z.Item,{name:"goodsType_Name",label:"\u5546\u54C1\u5C0F\u7C7B\u540D\u79F0",rules:[{required:!0,max:50}],children:(0,e.jsx)(w.Z,{})}),(0,e.jsx)(n.Z.Item,{name:"status",label:"\u72B6\u6001",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u72B6\u6001"}],children:(0,e.jsx)(h.Z,{placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001",children:(0,e.jsxs)(se,{children:[(0,e.jsx)(h.Z.Option,{value:"0",children:"\u6B63\u5E38"}),(0,e.jsx)(h.Z.Option,{value:"1",children:"\u505C\u7528"})]})})}),(0,e.jsx)(n.Z.Item,{name:"remark",label:"\u5907\u6CE8",children:(0,e.jsx)(w.Z,{})}),(0,e.jsx)(n.Z.Item,{children:(0,e.jsx)(O.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})}),(0,e.jsxs)(mt.Z,{width:800,title:"\u5546\u54C1\u6DFB\u52A0\u5230\u83DC\u8C31",placement:"right",onClose:function(){return ct(!1)},visible:dt,children:[(0,e.jsxs)("div",{style:{display:"flex",alignItems:"center",marginBottom:"10px"},children:[(0,e.jsx)("div",{className:_().current_selected_obj,children:"\u5F53\u524D\u83DC\u8C31\uFF1A"}),(0,e.jsx)(h.Z,{className:_().current_selected_cmp,onChange:function(o){W(o)},placeholder:"\u8BF7\u9009\u62E9\u83DC\u8C31",value:v,size:"large",children:t.foodMenuConfig.map(function(l){return(0,e.jsx)(xe,{value:l.id,children:l.name},l.id)})})]}),(0,e.jsxs)("div",{className:_().add_to_some_box,children:[(0,e.jsx)(qe.ZP,{actionRef:Oe,className:_().wait_add_list,headerTitle:"\u5F85\u6DFB\u52A0\u5546\u54C1\u5217\u8868",rowKey:"id",search:!1,pagination:{current:Pe,pageSize:Ne,onChange:function(o,C){be(o),_e(C)}},request:function(){var l=(0,K.Z)((0,c.Z)().mark(function o(C){var D,E;return(0,c.Z)().wrap(function(de){for(;;)switch(de.prev=de.next){case 0:return D=[],C.goodsTypeId!=null&&(C.goodsTypeId=goodsTypes[C.goodsTypeId].goodsTypeId),E=0,de.next=5,j.GetgoodsList(C).then(function(Ye){D=Ye.data.data,E=Ye.data.total});case 5:return de.abrupt("return",{data:D,success:!0,total:E});case 6:case"end":return de.stop()}},o)}));return function(o){return l.apply(this,arguments)}}(),columns:Ce,rowSelection:{type:"checkbox",onSelect:function(o,C){var D=JSON.parse(JSON.stringify(m)),E=JSON.parse(JSON.stringify(r)),he=D.findIndex(function(Ye){return Ye.id===o.id}),de=E.findIndex(function(Ye){return Ye===o.id});C?(he<0&&D.push(o),de<0&&E.push(o.id)):(he>-1&&D.splice(he,1),de>-1&&E.splice(de,1)),ie(D),i(E)},onChange:function(o,C){o.length===0&&i([]),C.length===0&&ie([])},selectedRowKeys:r}}),(0,e.jsx)(pt.Z,{className:_().success_add_list,rowKey:"id",columns:N,dataSource:gt})]}),(0,e.jsx)(O.Z,{className:_().sure_add_btn,type:"primary",onClick:P,children:"\u786E\u5B9A\u6DFB\u52A0"})]})]})},Jt=Vt,Un=d(49111),Qt=d(19650),Nn=d(71153),Ht=d(60331),qt=function(t){var xe,se,Y=n.Z.useForm(),me=(0,u.Z)(Y,1),V=me[0],R=function(){var r=(0,K.Z)((0,c.Z)().mark(function i(s){return(0,c.Z)().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:s.id?j.UpdateBom(s).then(function(ie){ie.data?f.default.success("\u4FEE\u6539\u6210\u529F"):f.default.error("\u4FEE\u6539\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),De.current.reload(),Be(!1)}):j.AddBom(s).then(function(ie){ie.data?(f.default.success("\u6DFB\u52A0\u6210\u529F"),De.current.reload(),Be(!1)):f.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01")});case 1:case"end":return m.stop()}},i)}));return function(s){return r.apply(this,arguments)}}(),ee=[{title:"\u4E3B\u952E",dataIndex:"id",hideInTable:!0,hideInSearch:!0},{title:"\u914D\u65B9\u7F16\u7801",dataIndex:"code",hideInForm:!0,hideInSearch:!0},{title:"\u914D\u65B9\u540D\u79F0",dataIndex:"name",hideInForm:!0,hideInSearch:!0},{title:"\u6392\u5E8F",dataIndex:"sort",hideInForm:!0,hideInSearch:!0},{title:"\u914D\u65B9\u5206\u7C7B",dataIndex:"bomTypeList",search:!1,width:450,render:function(i,s){return(0,e.jsx)(Qt.Z,{children:ue.filter(function(x){var m=s.bomTypeList.find(function(ve){return ve===x.id}),ie=ue.find(function(ve){return ve.id===m});return ie!=null||void 0}).map(function(x){return(0,e.jsx)(Ht.Z,{color:"#87d068",children:x.name},x.id)})})}},{title:"\u914D\u65B9\u7C7B\u578B",dataIndex:"isMain",hideInForm:!0,valueEnum:{false:{text:"\u8F85\u6599\u914D\u65B9",status:"Processing"},true:{text:"\u4E3B\u6599\u914D\u65B9",status:"Success"}}},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(i,s){return[(0,e.jsx)("a",{type:"primary",onClick:function(){Be(!0),Ge(s),V.setFieldsValue(s)},children:"\u66F4\u65B0"},"primary3")]}}],L=[{title:"\u914D\u65B9\u540D\u79F0",dataIndex:"name",hideInForm:!0,hideInSearch:!0}],X=(0,a.useState)(0),Z=(0,u.Z)(X,2),I=Z[0],$=Z[1],te=(0,a.useState)(5),Q=(0,u.Z)(te,2),re=Q[0],ge=Q[1],ce=(0,a.useState)([]),le=(0,u.Z)(ce,2),H=le[0],pe=le[1],B=(0,a.useState)([]),M=(0,u.Z)(B,2),g=M[0],T=M[1],q=(0,a.useState)([]),fe=(0,u.Z)(q,2),ue=fe[0],J=fe[1],A=(0,a.useState)(!1),z=(0,u.Z)(A,2),ye=z[0],U=z[1],we=function(){var r=(0,K.Z)((0,c.Z)().mark(function i(){var s;return(0,c.Z)().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.next=2,j.GetBomTypePage({current:1,pagesize:1e3});case 2:s=m.sent,s.statusCode===200&&J(s.data.data);case 4:case"end":return m.stop()}},i)}));return function(){return r.apply(this,arguments)}}(),je=(0,a.useState)({id:""}),Te=(0,u.Z)(je,2),Ue=Te[0],Ge=Te[1],Ke=(0,a.useState)(!1),Pe=(0,u.Z)(Ke,2),be=Pe[0],Be=Pe[1],De=(0,a.useRef)(),Ne=(0,a.useState)(!1),_e=(0,u.Z)(Ne,2),oe=_e[0],ne=_e[1],b=(0,a.useState)(""),Ze=(0,u.Z)(b,2),ae=Ze[0],Se=Ze[1],Ce=(0,a.useState)([]),Ee=(0,u.Z)(Ce,2),Fe=Ee[0],ze=Ee[1],Ve=(0,a.useState)([]),Me=(0,u.Z)(Ve,2),Je=Me[0],Qe=Me[1],Le=[{title:"\u914D\u65B9\u540D\u79F0",dataIndex:"name",hideInForm:!0,hideInSearch:!0},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(i,s){return[(0,e.jsx)("a",{type:"primary",onClick:function(){t.onBomRelationGoods(s.goodsId,s,!1)},children:"\u79FB\u9664\u914D\u65B9"},"primary3")]}}],Oe=function(){var i=[];t.foodMenuConfig.forEach(function(s){var x=s.id;s.goodsConfig&&s.goodsConfig.forEach(function(m){m.foodMenuId=x;var ie=i.find(function(ve){return ve.id===m.id});ie||i.push(m)})}),ae||Se(i[0].id),ze(i)},F=function(){var i=Fe.find(function(s){return s.id===ae});i&&i.bomConfig?Qe(i.bomConfig):Qe([])},S=function(){if(H.length===0){Re.default.error({message:"\u914D\u65B9\u5173\u8054\u5546\u54C1\u51FA\u9519",description:"\u8BF7\u9009\u62E9\u914D\u65B9",placement:"topRight"});return}var i=Fe.find(function(s){return s.id===ae});i&&(H.forEach(function(s){s.foodMenuId=i.foodMenuId,s.goodsId=i.id}),t.onBomRelationGoods(i.id,H),T([]),pe([]))};return(0,a.useEffect)(function(){we()},[]),(0,a.useEffect)(function(){Oe()},[t.foodMenuConfig]),(0,a.useEffect)(function(){F()},[Fe,ae]),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(Ie.Z,{width:600,title:Ue.id?"\u7F16\u8F91\u914D\u65B9":"\u65B0\u589E\u914D\u65B9",visible:be,footer:!1,onCancel:function(){return Be(!1)},children:(0,e.jsxs)(n.Z,{labelCol:{span:4},layout:"horizontal",preserve:!1,onFinish:R,form:V,children:[(0,e.jsx)(n.Z.Item,{name:"id",hidden:!0,children:(0,e.jsx)(w.Z,{})}),(0,e.jsx)(n.Z.Item,{name:"code",label:"\u914D\u65B9\u7F16\u7801",rules:[{required:!0}],children:(0,e.jsx)(w.Z,{disabled:!0,placeholder:"\u914D\u65B9\u7F16\u7801"})}),(0,e.jsx)(n.Z.Item,{name:"name",label:"\u914D\u65B9\u540D\u79F0",rules:[{required:!0}],children:(0,e.jsx)(w.Z,{placeholder:"\u914D\u65B9\u540D\u79F0"})}),(0,e.jsxs)("div",{className:_().add_row_content,children:[(0,e.jsx)(n.Z.Item,{name:"bomTypeList",label:"\u914D\u65B9\u7C7B\u578B",rules:[{required:!0}],children:(0,e.jsx)(h.Z,{style:{width:"70%"},mode:"multiple",allowClear:!0,children:ue.map(function(r,i){return(0,e.jsx)(h.Z.Option,{index:r.id,value:r.id,children:r.name},r.id)})})}),(0,e.jsx)(O.Z,{type:"primary",className:_().add_row_btn,onClick:function(){return U(!0)},children:"\u6DFB\u52A0\u914D\u65B9\u7C7B\u578B"})]}),(0,e.jsx)(n.Z.Item,{name:"isMain",label:"\u914D\u65B9\u7C7B\u578B",children:(0,e.jsx)(Bt.Z,{checkedChildren:"\u4E3B\u6599",unCheckedChildren:"\u8F85\u6599"})}),(0,e.jsx)(n.Z.Item,{name:"sort",label:"\u6392\u5E8F",rules:[{required:!0}],children:(0,e.jsx)(nt.Z,{placeholder:"\u6392\u5E8F",min:1})}),(0,e.jsx)(n.Z.Item,{children:(0,e.jsx)(O.Z,{type:"primary",htmlType:"submit",children:"\u786E\u5B9A"})})]})}),(0,e.jsx)(Ie.Z,{title:"\u65B0\u5EFA\u914D\u65B9\u7C7B\u578B",width:640,bodyStyle:{padding:"32px 40px 48px"},visible:ye,footer:null,onCancel:function(){U(!1)},destroyOnClose:!0,maskClosable:!1,children:(0,e.jsxs)(n.Z,{layout:"vertical",preserve:!1,initialValues:t==null?void 0:t.values,onFinish:function(){var r=(0,K.Z)((0,c.Z)().mark(function i(s){var x;return(0,c.Z)().wrap(function(ie){for(;;)switch(ie.prev=ie.next){case 0:return ie.next=2,j.CreateBomType(s);case 2:x=ie.sent,x.data?(f.default.success("\u914D\u65B9\u7C7B\u522B\u6DFB\u52A0\u6210\u529F"),U(!1),we()):f.default.error(x.errors||"\u914D\u65B9\u7C7B\u522B\u6DFB\u52A0\u5931\u8D25");case 4:case"end":return ie.stop()}},i)}));return function(i){return r.apply(this,arguments)}}(),children:[(0,e.jsx)(n.Z.Item,{name:"id",hidden:!0,children:(0,e.jsx)(w.Z,{})}),(0,e.jsx)(n.Z.Item,{name:"name",label:"\u914D\u65B9\u7C7B\u578B\u540D\u79F0",rules:[{required:!0,max:64,whitespace:!0}],children:(0,e.jsx)(w.Z,{placeholder:"\u8BF7\u8F93\u5165\u914D\u65B9\u7C7B\u578B\u540D\u79F0"})}),(0,e.jsx)(n.Z.Item,{name:"pertain",label:"\u5F52\u5C5E",defaultValue:t==null||(xe=t.values)===null||xe===void 0?void 0:xe.pertain,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7C7B\u578B\u5F52\u5C5E"}],children:(0,e.jsxs)(h.Z,{placeholder:"\u8BF7\u9009\u62E9\u7C7B\u578B\u5F52\u5C5E",children:[(0,e.jsx)(Option,{value:"1",children:"\u65E0"}),(0,e.jsx)(Option,{value:"2",children:"TMC "})]})}),(0,e.jsx)(n.Z.Item,{name:"status",label:"\u72B6\u6001",defaultValue:t==null||(se=t.values)===null||se===void 0?void 0:se.status,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u72B6\u6001"}],children:(0,e.jsxs)(h.Z,{placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001",children:[(0,e.jsx)(Option,{value:"0",children:"\u6B63\u5E38"}),(0,e.jsx)(Option,{value:"1",children:"\u505C\u7528"})]})}),(0,e.jsx)(n.Z.Item,{children:(0,e.jsx)(O.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})}),(0,e.jsx)(qe.ZP,{actionRef:De,style:{width:"100%"},headerTitle:"\u914D\u65B9\u5217\u8868",rowKey:"id",pagination:{current:I,pageSize:re,onChange:function(i,s){$(i),ge(s)}},search:!1,request:function(){var r=(0,K.Z)((0,c.Z)().mark(function i(s){var x,m;return(0,c.Z)().wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:return x=[],m=0,ve.next=4,j.GetBomPage(s).then(function(ke){x=ke.data.data,m=ke.data.total});case 4:return ve.abrupt("return",{data:x,success:!0,total:m});case 5:case"end":return ve.stop()}},i)}));return function(i){return r.apply(this,arguments)}}(),columns:ee,toolBarRender:function(){return[(0,e.jsx)(O.Z,{icon:(0,e.jsx)(et.Z,{}),type:"primary",onClick:function(){V.resetFields();var s=V.getFieldsValue();s.code=(0,Xe.x0)().substring(0,20),V.setFieldsValue(s),Ge({id:""}),Be(!0)},children:"\u65B0\u5EFA"},"button"),(0,e.jsx)(O.Z,{type:"primary",onClick:function(){ne(!0)},children:"\u5173\u8054\u5546\u54C1"},"button")]}}),(0,e.jsxs)(mt.Z,{width:800,title:"\u914D\u65B9\u5173\u8054\u5546\u54C1",placement:"right",onClose:function(){return ne(!1)},visible:oe,children:[(0,e.jsxs)("div",{style:{display:"flex",alignItems:"center",marginBottom:"10px"},children:[(0,e.jsx)("div",{className:_().current_selected_obj,children:"\u5F53\u524D\u5546\u54C1\uFF1A"}),(0,e.jsx)(h.Z,{className:_().current_selected_cmp,onChange:function(i){Se(i)},placeholder:"\u8BF7\u9009\u62E9\u5546\u54C1",value:ae,size:"large",children:Fe.map(function(r){return(0,e.jsx)(Option,{value:r.id,children:r.name},r.id)})})]}),(0,e.jsxs)("div",{className:_().add_to_some_box,children:[(0,e.jsx)(qe.ZP,{actionRef:De,className:_().wait_add_list,headerTitle:"\u914D\u65B9\u5217\u8868",rowKey:"id",pagination:{current:I,pageSize:re,onChange:function(i,s){$(i),ge(s)}},search:!1,request:function(){var r=(0,K.Z)((0,c.Z)().mark(function i(s){var x,m;return(0,c.Z)().wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:return x=[],m=0,ve.next=4,j.GetBomPage(s).then(function(ke){x=ke.data.data,m=ke.data.total});case 4:return ve.abrupt("return",{data:x,success:!0,total:m});case 5:case"end":return ve.stop()}},i)}));return function(i){return r.apply(this,arguments)}}(),columns:L,rowSelection:{type:"checkbox",onSelect:function(i,s){var x=JSON.parse(JSON.stringify(H)),m=JSON.parse(JSON.stringify(g)),ie=x.findIndex(function(ke){return ke.id===i.id}),ve=m.findIndex(function(ke){return ke===i.id});s?(ie<0&&x.push(i),ve<0&&m.push(i.id)):(ie>-1&&x.splice(ie,1),ve>-1&&m.splice(ve,1)),pe(x),T(m)},onChange:function(i,s){i.length===0&&T([]),s.length===0&&pe([])},selectedRowKeys:g}}),(0,e.jsx)(pt.Z,{className:_().success_add_list,rowKey:"id",columns:Le,dataSource:Je})]}),(0,e.jsx)(O.Z,{className:_().sure_add_btn,type:"primary",onClick:S,children:"\u786E\u5B9A\u5173\u8054"})]})]})},Xt=qt,_n=d(13062),en=d(71230),Ln=d(89032),$e=d(15746),tn=d(952),lt=d(5966),rt=d(64317),vt=d(31199),nn=h.Z.Option,It=h.Z.OptGroup,We={name:"\u7269\u6599\u540D\u79F0",stockUint:"\u5E93\u5B58\u5355\u4F4D",specs:"\u7269\u6599\u89C4\u683C",code:"\u7269\u6599\u7F16\u7801",aittribute:"\u7269\u6599\u5C5E\u6027",typeID:"\u7269\u6599\u7C7B\u522B",status:"\u7269\u6599\u72B6\u6001",price:"\u6210\u672C\u4EF7",netrecovery:"\u51C0\u6599\u7387(%)",OutstockUint:"\u51FA\u5E93\u5355\u4F4D",proportion:"\u6362\u7B97\u6BD4\u4F8B(%)"},an=function(t){var xe=n.Z.useForm(),se=(0,u.Z)(xe,1),Y=se[0],me=(0,a.useState)(1),V=(0,u.Z)(me,2),R=V[0],ee=V[1],L=(0,a.useState)(10),X=(0,u.Z)(L,2),Z=X[0],I=X[1],$=(0,a.useState)([]),te=(0,u.Z)($,2),Q=te[0],re=te[1],ge=(0,a.useState)([]),ce=(0,u.Z)(ge,2),le=ce[0],H=ce[1],pe=(0,a.useRef)(),B=function(){var G=(0,K.Z)((0,c.Z)().mark(function p(v){return(0,c.Z)().wrap(function(N){for(;;)switch(N.prev=N.next){case 0:v.id?j.UpdateMaterial(v).then(function(P){P.data?(f.default.success("\u4FEE\u6539\u6210\u529F"),ae(!1),pe.current.reload()):f.default.error("\u4FEE\u6539\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01")}):j.AddMaterial(v).then(function(P){P.data?(f.default.success("\u6DFB\u52A0\u6210\u529F"),ae(!1),pe.current.reload()):f.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01")});case 1:case"end":return N.stop()}},p)}));return function(v){return G.apply(this,arguments)}}(),M=[{title:"\u7269\u6599\u540D\u79F0",dataIndex:"name",ellipsis:!0,formItemProps:{rules:[{required:!0,message:"\u540D\u79F0\u4E3A\u5FC5\u586B\u9879"}]}},{title:"\u7269\u6599\u5C5E\u6027",dataIndex:"aittribute",valueEnum:{0:{text:"\u6210\u54C1"},1:{text:"\u534A\u6210\u54C1"},2:{text:"\u6613\u8017\u54C1"}}},{title:"\u72B6\u6001",dataIndex:"status",hideInForm:!0,valueEnum:{0:{text:"\u6B63\u5E38",status:"Processing"},1:{text:"\u505C\u7528",status:"Success"}}},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(p,v){return[(0,e.jsx)("a",{type:"primary",onClick:function(){ae(!0),oe(v),Y.setFieldsValue(v)},children:"\u66F4\u65B0"},"primary3")]}}],g=[{title:"\u7269\u6599\u540D\u79F0",dataIndex:"name",ellipsis:!0,formItemProps:{rules:[{required:!0,message:"\u540D\u79F0\u4E3A\u5FC5\u586B\u9879"}]}}],T=(0,a.useState)([]),q=(0,u.Z)(T,2),fe=q[0],ue=q[1],J=(0,a.useState)([]),A=(0,u.Z)(J,2),z=A[0],ye=A[1],U=function(){var G=(0,K.Z)((0,c.Z)().mark(function p(){var v;return(0,c.Z)().wrap(function(N){for(;;)switch(N.prev=N.next){case 0:return N.next=2,j.GetMaterialTypeList();case 2:v=N.sent,v.statusCode===200?(v.data.forEach(function(P){P.value=P.id,P.label=P.name}),ue(v.data)):f.default.error(v.errors||"\u83B7\u53D6\u7269\u6599\u7C7B\u522B\u51FA\u9519");case 4:case"end":return N.stop()}},p)}));return function(){return G.apply(this,arguments)}}(),we=function(){var G=(0,K.Z)((0,c.Z)().mark(function p(){var v;return(0,c.Z)().wrap(function(N){for(;;)switch(N.prev=N.next){case 0:return N.next=2,j.GetMaterialUintList();case 2:v=N.sent,v.statusCode===200?(v.data.forEach(function(P){P.value=P.id,P.label=P.name}),ye(v.data)):f.default.error(v.errors||"\u83B7\u53D6\u7269\u6599\u7C7B\u522B\u51FA\u9519");case 4:case"end":return N.stop()}},p)}));return function(){return G.apply(this,arguments)}}(),je=(0,a.useState)(!1),Te=(0,u.Z)(je,2),Ue=Te[0],Ge=Te[1],Ke=(0,a.useState)(!1),Pe=(0,u.Z)(Ke,2),be=Pe[0],Be=Pe[1],De=(0,a.useState)({id:""}),Ne=(0,u.Z)(De,2),_e=Ne[0],oe=Ne[1],ne=(0,a.useState)(!1),b=(0,u.Z)(ne,2),Ze=b[0],ae=b[1],Se=(0,a.useState)(!1),Ce=(0,u.Z)(Se,2),Ee=Ce[0],Fe=Ce[1],ze=(0,a.useState)(""),Ve=(0,u.Z)(ze,2),Me=Ve[0],Je=Ve[1],Qe=(0,a.useState)([]),Le=(0,u.Z)(Qe,2),Oe=Le[0],F=Le[1],S=(0,a.useState)([]),r=(0,u.Z)(S,2),i=r[0],s=r[1],x=[{title:"\u7269\u6599\u540D\u79F0",dataIndex:"name",ellipsis:!0,formItemProps:{rules:[{required:!0,message:"\u540D\u79F0\u4E3A\u5FC5\u586B\u9879"}]}},{title:"\u7269\u6599\u6570\u91CF",dataIndex:"BomQty",width:50},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(p,v){return[(0,e.jsx)("a",{type:"primary",onClick:function(){var N=Oe.find(function(P){return P.id===Me});N&&t.onMaterialRelationBom(N.id,v,!1)},children:"\u79FB\u9664\u7269\u6599"},"primary3"),(0,e.jsx)("a",{type:"primary",style:{marginLeft:"10px"},onClick:function(){it.setFieldsValue(v),ut(!0)},children:"\u8BBE\u7F6E\u6570\u91CF"},"primary3")]}}],m=function(){var p,v=[];if((p=t.foodMenuConfig)===null||p===void 0||p.forEach(function(N){var P;(P=N.goodsConfig)===null||P===void 0||P.forEach(function(l){var o;(o=l.bomConfig)===null||o===void 0||o.forEach(function(C){var D=v.find(function(E){return E.id===C.id});D||(C.goodsId=l.id,v.push(C))})})}),!Me){var W;Je((W=v[0])===null||W===void 0?void 0:W.id)}F(v)},ie=function(){if(Q.length===0){Re.default.error({message:"\u914D\u65B9\u5173\u8054\u5546\u54C1\u51FA\u9519",description:"\u8BF7\u9009\u62E9\u914D\u65B9",placement:"topRight"});return}var p=Oe.find(function(W){return W.id===Me});if(p){var v=JSON.parse(JSON.stringify(Q));v.forEach(function(W){W.BomQty=0}),t.onMaterialRelationBom(p.id,v),H([]),re([])}},ve=function(){var p=Oe.find(function(v){return v.id===Me});p&&p.materialConfig?s(p.materialConfig):s([])},ke=(0,a.useState)(!1),dt=(0,u.Z)(ke,2),ct=dt[0],ut=dt[1],ft=n.Z.useForm(),gt=(0,u.Z)(ft,1),it=gt[0];return(0,a.useEffect)(function(){U(),we()},[]),(0,a.useEffect)(function(){m()},[t.foodMenuConfig]),(0,a.useEffect)(function(){ve()},[Oe,Me]),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(Ie.Z,{width:800,title:_e.id?"\u7F16\u8F91\u7269\u6599":"\u65B0\u589E\u7269\u6599",visible:Ze,footer:!1,onCancel:function(){return ae(!1)},children:(0,e.jsxs)(tn.ZP,{form:Y,labelCol:{span:6},layout:"horizontal",hideRequiredMark:!0,initialValues:t.materialConfig,onFinish:B,submitter:!1,children:[(0,e.jsxs)(en.Z,{gutter:16,children:[(0,e.jsx)($e.Z,{lg:12,md:12,sm:24,children:(0,e.jsx)(lt.Z,{label:We.code,name:"code",rules:[{required:!0,max:50}],placeholder:"\u8BF7\u8F93\u5165\u539F\u6599\u7F16\u7801"})}),(0,e.jsxs)($e.Z,{lg:12,md:12,sm:24,children:[(0,e.jsx)(lt.Z,{name:"id",hidden:!0}),(0,e.jsx)(lt.Z,{label:We.name,name:"name",rules:[{required:!0,max:50}],placeholder:"\u8BF7\u8F93\u5165\u539F\u6599\u540D\u79F0"})]}),(0,e.jsx)($e.Z,{lg:12,md:12,sm:24,children:(0,e.jsx)(lt.Z,{label:We.specs,name:"specs",rules:[{required:!0,max:500}],placeholder:"\u8BF7\u8F93\u5165\u89C4\u683C\u578B\u53F7"})}),(0,e.jsx)($e.Z,{lg:12,md:12,sm:24,children:(0,e.jsx)(rt.Z,{label:We.aittribute,name:"aittribute",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7269\u6599\u5C5E\u6027"}],options:[{value:"0",label:"\u6210\u54C1"},{value:"1",label:"\u534A\u6210\u54C1"},{value:"2",label:"\u6613\u8017\u54C1"}],placeholder:"\u8BF7\u9009\u62E9\u7269\u6599\u5C5E\u6027"})}),(0,e.jsx)($e.Z,{lg:12,md:12,sm:24,children:(0,e.jsx)(vt.Z,{label:We.price,name:"price",placeholder:"\u8BF7\u8F93\u5165\u6210\u672C\u4EF7",min:1})}),(0,e.jsx)($e.Z,{lg:12,md:12,sm:24,children:(0,e.jsx)(vt.Z,{label:We.netrecovery,name:"netrecovery",min:1,max:100,placeholder:"\u8BF7\u8F93\u5165\u51C0\u6599\u7387"})}),(0,e.jsx)($e.Z,{lg:12,md:12,sm:24,children:(0,e.jsxs)("div",{className:_().add_row_content,children:[(0,e.jsx)(rt.Z,{style:{width:"65%"},label:We.typeID,name:"typeID",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7269\u6599\u7C7B\u522B"}],options:fe,placeholder:"\u8BF7\u9009\u62E9\u7269\u6599\u7C7B\u522B"}),(0,e.jsx)(O.Z,{onClick:function(){return Ge(!0)},type:"primary",className:_().add_row_btn,children:"\u6DFB\u52A0\u7C7B\u522B"})]})}),(0,e.jsx)($e.Z,{lg:12,md:12,sm:24,children:(0,e.jsxs)("div",{className:_().add_row_content,children:[(0,e.jsx)(rt.Z,{style:{width:"65%"},label:We.stockUint,name:"stockUint",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5355\u4F4D"}],options:z,placeholder:"\u8BF7\u9009\u62E9\u5355\u4F4D"}),(0,e.jsx)(O.Z,{onClick:function(){return Be(!0)},type:"primary",className:_().add_row_btn,children:"\u6DFB\u52A0\u5355\u4F4D"})]})}),(0,e.jsx)($e.Z,{lg:12,md:12,sm:24,children:(0,e.jsxs)("div",{className:_().add_row_content,children:[(0,e.jsx)(rt.Z,{style:{width:"65%"},label:We.OutstockUint,name:"outstockUint",options:z,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u51FA\u5E93\u5355\u4F4D"}],placeholder:"\u8BF7\u9009\u62E9\u51FA\u5E93\u5355\u4F4D"}),(0,e.jsx)(O.Z,{onClick:function(){return Be(!0)},type:"primary",className:_().add_row_btn,children:"\u6DFB\u52A0\u5355\u4F4D"})]})}),(0,e.jsx)($e.Z,{lg:12,md:12,sm:24,children:(0,e.jsx)(vt.Z,{label:We.proportion,name:"proportion",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u51FA\u5165\u5E93\u6362\u7B97\u6BD4\u4F8B"}],placeholder:"\u8BF7\u8F93\u5165\u6362\u7B97\u6BD4\u4F8B"})}),(0,e.jsx)($e.Z,{lg:12,md:12,sm:24,children:(0,e.jsx)(rt.Z,{label:We.status,name:"status",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u72B6\u6001"}],options:[{value:"0",label:"\u6B63\u5E38"},{value:"1",label:"\u505C\u7528"}],placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001"})})]}),(0,e.jsx)(n.Z.Item,{children:(0,e.jsx)(O.Z,{type:"primary",htmlType:"submit",children:"\u786E\u5B9A"})})]})}),(0,e.jsx)(qe.ZP,{actionRef:pe,headerTitle:"\u7269\u6599\u5217\u8868",rowKey:"id",search:{labelWidth:120},pagination:{current:R,pageSize:Z,onChange:function(p,v){ee(p),I(v)}},request:function(){var G=(0,K.Z)((0,c.Z)().mark(function p(v){var W,N;return(0,c.Z)().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return W=[],N=0,l.next=4,j.GetMaterialPage(v).then(function(o){W=o.data.data,N=o.data.total});case 4:return l.abrupt("return",{data:W,success:!0,total:N});case 5:case"end":return l.stop()}},p)}));return function(p){return G.apply(this,arguments)}}(),columns:M,toolBarRender:function(){return[(0,e.jsx)(O.Z,{icon:(0,e.jsx)(et.Z,{}),type:"primary",onClick:function(){Y.resetFields(),oe({id:""}),ae(!0)},children:"\u65B0\u5EFA"},"button"),(0,e.jsx)(O.Z,{type:"primary",onClick:function(){Fe(!0)},children:"\u5173\u8054\u914D\u65B9"},"button")]}}),(0,e.jsx)(Ie.Z,{title:"\u6DFB\u52A0\u7269\u6599\u5355\u4F4D",width:640,visible:be,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){Be(!1)},destroyOnClose:!0,maskClosable:!1,children:(0,e.jsxs)(n.Z,{layout:"vertical",preserve:!1,onFinish:function(){var G=(0,K.Z)((0,c.Z)().mark(function p(v){var W;return(0,c.Z)().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return P.next=2,j.AddMaterialUnit(v);case 2:W=P.sent,W.data?(f.default.success("\u6DFB\u52A0\u6210\u529F"),Be(!1),we()):f.default.error(W.errors||"\u7269\u6599\u5355\u4F4D\u6DFB\u52A0\u5931\u8D25");case 4:case"end":return P.stop()}},p)}));return function(p){return G.apply(this,arguments)}}(),children:[(0,e.jsx)(n.Z.Item,{name:"id",hidden:!0,children:(0,e.jsx)(w.Z,{})}),(0,e.jsx)(n.Z.Item,{name:"name",label:"\u7269\u6599\u5355\u4F4D\u540D\u79F0",rules:[{required:!0,max:64}],children:(0,e.jsx)(w.Z,{placeholder:"\u7269\u6599\u5355\u4F4D\u540D\u79F0"})}),(0,e.jsx)(n.Z.Item,{name:"status",label:"\u72B6\u6001",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u72B6\u6001"}],children:(0,e.jsx)(h.Z,{placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001",children:(0,e.jsxs)(It,{children:[(0,e.jsx)(h.Z.Option,{value:"0",children:"\u6B63\u5E38"}),(0,e.jsx)(h.Z.Option,{value:"1",children:"\u505C\u7528"})]})})}),(0,e.jsx)(n.Z.Item,{children:(0,e.jsx)(O.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})}),(0,e.jsx)(Ie.Z,{title:"\u6DFB\u52A0\u7269\u6599\u5206\u7C7B",width:640,visible:Ue,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){Ge(!1)},destroyOnClose:!0,maskClosable:!1,children:(0,e.jsxs)(n.Z,{layout:"vertical",preserve:!1,onFinish:function(){var G=(0,K.Z)((0,c.Z)().mark(function p(v){var W;return(0,c.Z)().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return P.next=2,j.AddMaterialType(v);case 2:W=P.sent,W.data?(f.default.success("\u6DFB\u52A0\u6210\u529F"),Ge(!1),U()):f.default.error(W.errors||"\u7269\u6599\u5206\u7C7B\u6DFB\u52A0\u5931\u8D25");case 4:case"end":return P.stop()}},p)}));return function(p){return G.apply(this,arguments)}}(),children:[(0,e.jsx)(n.Z.Item,{name:"id",hidden:!0,children:(0,e.jsx)(w.Z,{})}),(0,e.jsx)(n.Z.Item,{name:"name",label:"\u7269\u6599\u5206\u7C7B\u540D\u79F0",rules:[{required:!0,max:64,whitespace:!0}],children:(0,e.jsx)(w.Z,{placeholder:"\u8BF7\u8F93\u5165\u7269\u7269\u6599\u5206\u7C7B\u79F0"})}),(0,e.jsx)(n.Z.Item,{name:"status",label:"\u72B6\u6001",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7269\u6599\u5206\u7C7B\u72B6\u6001"}],children:(0,e.jsx)(h.Z,{placeholder:"\u8BF7\u9009\u62E9\u7269\u6599\u5206\u7C7B\u72B6\u6001",children:(0,e.jsxs)(It,{children:[(0,e.jsx)(h.Z.Option,{value:"0",children:"\u6B63\u5E38"}),(0,e.jsx)(h.Z.Option,{value:"1",children:"\u505C\u7528"})]})})}),(0,e.jsx)(n.Z.Item,{children:(0,e.jsx)(O.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})}),(0,e.jsxs)(mt.Z,{width:900,title:"\u7269\u6599\u5173\u8054\u914D\u65B9",placement:"right",onClose:function(){return Fe(!1)},visible:Ee,children:[(0,e.jsxs)("div",{style:{display:"flex",alignItems:"center",marginBottom:"10px"},children:[(0,e.jsx)("div",{className:_().current_selected_obj,children:"\u5F53\u524D\u914D\u65B9\uFF1A"}),(0,e.jsx)(h.Z,{className:_().current_selected_cmp,onChange:function(p){console.log("setCurrentSelectedBom",p),Je(p)},placeholder:"\u8BF7\u9009\u62E9\u914D\u65B9",value:Me,size:"large",children:Oe.map(function(G){return(0,e.jsx)(nn,{value:G.id,children:G.name},G.id)})})]}),(0,e.jsxs)("div",{className:_().add_to_some_box,children:[(0,e.jsx)(qe.ZP,{className:_().wait_add_list,actionRef:pe,headerTitle:"\u7269\u6599\u5217\u8868",rowKey:"id",search:!1,pagination:{current:R,pageSize:Z,onChange:function(p,v){ee(p),I(v)}},request:function(){var G=(0,K.Z)((0,c.Z)().mark(function p(v){var W,N;return(0,c.Z)().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return W=[],N=0,l.next=4,j.GetMaterialPage(v).then(function(o){W=o.data.data,N=o.data.total});case 4:return l.abrupt("return",{data:W,success:!0,total:N});case 5:case"end":return l.stop()}},p)}));return function(p){return G.apply(this,arguments)}}(),columns:g,rowSelection:{type:"checkbox",onSelect:function(p,v){var W=JSON.parse(JSON.stringify(Q)),N=JSON.parse(JSON.stringify(le)),P=W.findIndex(function(o){return o.id===p.id}),l=N.findIndex(function(o){return o===p.id});v?(P<0&&W.push(p),l<0&&N.push(p.id)):(P>-1&&W.splice(P,1),l>-1&&N.splice(l,1)),re(W),H(N)},onChange:function(p,v){p.length===0&&H([]),v.length===0&&re([])},selectedRowKeys:le}}),(0,e.jsx)(pt.Z,{className:_().success_add_list,rowKey:"id",columns:x,dataSource:i})]}),(0,e.jsx)(O.Z,{className:_().sure_add_btn,type:"primary",onClick:ie,children:"\u786E\u5B9A\u5173\u8054"})]}),(0,e.jsx)(Ie.Z,{title:"\u8BBE\u7F6E\u7269\u6599\u6570\u91CF",visible:ct,footer:null,onCancel:function(){return ut(!1)},children:(0,e.jsxs)(n.Z,{form:it,name:"basic",labelCol:{span:8},wrapperCol:{span:16},initialValues:{remember:!0},onFinish:function(p){t.onUpdateMaterial(Me,p),ut(!1)},autoComplete:"off",children:[(0,e.jsx)(n.Z.Item,{name:"id",hidden:!0,children:(0,e.jsx)(w.Z,{})}),(0,e.jsx)(n.Z.Item,{label:"\u7269\u6599\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u7269\u6599\u540D\u79F0"}],children:(0,e.jsx)(w.Z,{disabled:!0})}),(0,e.jsx)(n.Z.Item,{label:"\u7269\u6599\u6570\u91CF",name:"BomQty",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u7269\u6599\u6570\u91CF"}],children:(0,e.jsx)(w.Z,{})}),(0,e.jsx)(n.Z.Item,{wrapperCol:{offset:8,span:16},children:(0,e.jsx)(O.Z,{type:"primary",htmlType:"submit",children:"\u786E\u5B9A"})})]})})]})},rn=an,$n=d(73935),un=d(75009),sn=function(t){var xe=(0,a.useState)({id:t.storeConfig.id,value:{name:t.storeConfig.name},children:[{id:t.deviceConfig.id,value:{name:t.deviceConfig.deviceName},children:[]}]}),se=(0,u.Z)(xe,2),Y=se[0],me=se[1],V=function(){var ee=JSON.parse(JSON.stringify(Y));t.foodMenuConfig.forEach(function(L,X){ee.children[0].children[X]={id:(0,Xe.x0)(),value:{name:L.name},children:[]},L==null||L.goodsConfig.forEach(function(Z,I){ee.children[0].children[X].children[I]={id:(0,Xe.x0)(),value:{name:Z.name},children:[]},Z==null||Z.bomConfig.forEach(function($,te){ee.children[0].children[X].children[I].children[te]={id:(0,Xe.x0)(),value:{name:$.name},children:[]},$==null||$.materialConfig.forEach(function(Q,re){ee.children[0].children[X].children[I].children[te].children[re]={id:(0,Xe.x0)(),value:{name:Q.name}}})})})}),me(ee)};return(0,a.useEffect)(function(){V()},[]),(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(un.Z,{style:{width:"100%",height:"auto"},data:Y,behaviors:["drag-canvas","zoom-canvas"],nodeCfg:{autoWidth:!0}})})},on=sn,ln=d(54970),dn=d.n(ln),cn=function(t){var xe=function(){var me,V,R;switch(t.current){case 0:(me=t.storeConfig)!==null&&me!==void 0&&me.id?t.next():Re.default.error({message:"\u95E8\u5E97\u914D\u7F6E\u51FA\u9519",description:"\u8BF7\u9009\u62E9\u95E8\u5E97\uFF01",placement:"topRight"});break;case 1:(V=t.deviceConfig)!==null&&V!==void 0&&V.id?t.next():Re.default.error({message:"\u8BBE\u5907\u914D\u7F6E\u51FA\u9519",description:"\u8BF7\u9009\u62E9\u8BBE\u5907\uFF01",placement:"topRight"});break;case 2:((R=t.foodMenuConfig)===null||R===void 0?void 0:R.length)>0?t.next():Re.default.error({message:"\u83DC\u8C31\u914D\u7F6E\u51FA\u9519",description:"\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u83DC\u8C31\uFF01",placement:"topRight"});break;case 3:for(var ee=0;ee0&&(0,e.jsxs)(O.Z,{style:{margin:"0 8px"},onClick:t.prev,children:["\u4E0A\u4E00\u6B65\uFF1A",t.steps[t.current-1]]}),t.current2&&arguments[2]!==void 0?arguments[2]:!0,q=JSON.parse(JSON.stringify(Z)),fe=q.foodMenuConfig.find(function(J){return J.id===M});if(T&&fe)fe.goodsConfig=g;else{var ue=fe.goodsConfig.findIndex(function(J){return J.id===g.id});ue>-1&&fe.goodsConfig.splice(ue,1)}I(q)},Q=function(M,g){var T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,q=JSON.parse(JSON.stringify(Z));q.foodMenuConfig.forEach(function(fe){var ue=fe.goodsConfig.find(function(A){return A.id===M});if(ue){if(T)ue.bomConfig=g;else{var J=ue.bomConfig.findIndex(function(A){return A.id===g.id});J>-1&&ue.bomConfig.splice(J,1)}I(q)}})},re=function(M,g){var T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,q=JSON.parse(JSON.stringify(Z));q.foodMenuConfig.forEach(function(fe){fe.goodsConfig.forEach(function(ue){var J=ue.bomConfig.find(function(z){return z.id===M});if(J){if(T)J.materialConfig=g;else{var A=J.materialConfig.findIndex(function(z){return z.id===g.id});A>-1&&J.materialConfig.splice(A,1)}I(q)}})})},ge=function(M,g){var T=JSON.parse(JSON.stringify(Z));T.foodMenuConfig.forEach(function(q){q.goodsConfig.forEach(function(fe){var ue=fe.bomConfig.find(function(A){return A.id===M});if(ue){var J=ue.materialConfig.find(function(A){return A.id===g.id});J&&(J.BomQty=Number.parseFloat(g.BomQty)||0,I(T))}})})},ce=function(){ee(R+1)},le=function(){ee(R-1)},H=["\u95E8\u5E97\u914D\u7F6E","\u8BBE\u5907\u914D\u7F6E","\u83DC\u8C31\u914D\u7F6E","\u5546\u54C1\u914D\u7F6E","\u914D\u65B9\u914D\u7F6E","\u7269\u6599\u914D\u7F6E","\u786E\u8BA4\u914D\u7F6E"],pe=[(0,e.jsx)(Rt,{storeConfig:Z.storeConfig,current:R,steps:H,next:ce,onSelectedChange:$}),(0,e.jsx)(_t,{storeConfig:Z.storeConfig,deviceConfig:Z.deviceConfig,current:R,steps:H,prev:le,next:ce,onSelectedChange:$}),(0,e.jsx)($t,{foodMenuConfig:Z.foodMenuConfig,current:R,steps:H,prev:le,next:ce,onSelectedChange:$}),(0,e.jsx)(Jt,{deviceConfig:Z.deviceConfig,foodMenuConfig:Z.foodMenuConfig,current:R,steps:H,onAddGoodsToFoodMenu:te,prev:le,next:ce}),(0,e.jsx)(Xt,{foodMenuConfig:Z.foodMenuConfig,current:R,steps:H,prev:le,next:ce,onBomRelationGoods:Q}),(0,e.jsx)(rn,{foodMenuConfig:Z.foodMenuConfig,current:R,steps:H,onMaterialRelationBom:re,onUpdateMaterial:ge,prev:le,next:ce}),(0,e.jsx)(on,(0,Ae.Z)((0,Ae.Z)({},Z),{},{current:R,steps:H,prev:le}))];return(0,a.useEffect)(function(){console.log("\u5BF9\u8C61\u66F4\u65B0",Z)},[Z]),(0,e.jsxs)(Mt.ZP,{children:[(0,e.jsx)("div",{className:_().steps_navbar,children:(0,e.jsx)(ot.Z,{children:(0,e.jsx)(Ct.Z,{current:R,children:H.map(function(B){return(0,e.jsx)(hn,{title:B},B)})})})}),se?(0,e.jsx)(ot.Z,{children:(0,e.jsx)(Dt.ZP,{status:"success",title:"\u6210\u529F\u914D\u7F6E\u6240\u6709\u4FE1\u606F\uFF01",subTitle:"\u6B22\u8FCE\u518D\u6B21\u4F7F\u7528\uFF01",extra:[(0,e.jsx)(O.Z,{type:"primary",onClick:function(){I({storeConfig:{},deviceConfig:{},foodMenuConfig:[]}),ee(0),Y(!1)},children:"\u5FEB\u901F\u5F00\u59CB"},"console")]})}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(ot.Z,{children:(0,e.jsx)("div",{className:_().steps_content,children:pe[R]})}),(0,e.jsx)("div",{className:_().steps_navbar_bottom,children:(0,e.jsx)(ot.Z,{children:(0,e.jsx)(fn,(0,Ae.Z)((0,Ae.Z)({},Z),{},{current:R,steps:H,prev:le,next:ce,success:function(){return Y(!0)}}))})})]})]})},pn=mn}}]); diff --git a/dist/p__quickStart.73d685e1.async.js b/dist/p__quickStart.73d685e1.async.js new file mode 100644 index 0000000..04b33f8 --- /dev/null +++ b/dist/p__quickStart.73d685e1.async.js @@ -0,0 +1 @@ +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[7825,1322,9464,1981,2869,7013,9719,2383,4670],{87246:function(He){He.exports={add_row_content:"add_row_content___1MhOu",add_row_btn:"add_row_btn___55ubX"}},54970:function(He){He.exports={steps_btns:"steps_btns___1fzSt"}},88307:function(He){He.exports={store_config_container:"store_config_container___3YQ4e",choose_store_state:"choose_store_state___3iWn1"}},69038:function(He){He.exports={steps_navbar:"steps_navbar___xiemh",steps_navbar_bottom:"steps_navbar_bottom___3LJIq",steps_content:"steps_content___3jwbG",common_row:"common_row___3vO0H",choose_change_state:"choose_change_state___RcNtV",add_row_content:"add_row_content___3lFj7",add_row_btn:"add_row_btn___FtgXy",ant_descriptions_row:"ant_descriptions_row___1O_JD",ant_descriptions_item_title:"ant_descriptions_item_title___2AaU8",ant_descriptions_item_label:"ant_descriptions_item_label___3bihx",ant_descriptions_item_content:"ant_descriptions_item_content___1840s",current_selected_obj:"current_selected_obj___2DxAP",current_selected_cmp:"current_selected_cmp___2T66U",sure_add_btn:"sure_add_btn___c4Fz9",add_to_some_box:"add_to_some_box___1T4b6",wait_add_list:"wait_add_list___2n8fz",success_add_list:"success_add_list___2fDeC"}},60170:function(He,Zt,d){"use strict";d.r(Zt),d.d(Zt,{default:function(){return pn}});var Sn=d(57106),Dt=d(6129),Fn=d(57663),O=d(71577),jn=d(58024),ot=d(91894),Ae=d(11849),u=d(2824),Bn=d(35556),Ct=d(75899),a=d(67294),Et=d(69038),_=d.n(Et),Mt=d(78009),wn=d(71194),Ie=d(50146),In=d(77883),nt=d(85986),Tn=d(62999),yt=d(54680),c=d(39428),bn=d(34792),f=d(48086),K=d(3182),Dn=d(9715),n=d(55843),En=d(43358),h=d(34041),Mn=d(47673),w=d(4107),Ot=d(77153),k=d(48971),j={getOrgTree:function(){return(0,k.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/tree",{method:"GET"})},AddOrg:function(t){return(0,k.WY)("/kitchen/api/sysOrg/add",{method:"POST",data:(0,Ae.Z)({},t)})},UpdateOrg:function(t){return(0,k.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/edit",{method:"POST",data:(0,Ae.Z)({},t)})},getPayTemplateList:function(){return(0,k.WY)("/kitchen/api/paytemplate/getPayTemplatePageList",{method:"post",data:{current:1,pageSize:100}})},AddDeviceInfo:function(t){return(0,k.WY)("/kitchen/api/Device/AddDeviceInfo",{method:"POST",data:t})},UpdateDeviceInfo:function(t){return(0,k.WY)("/kitchen/api/Device/UpdateDeviceInfo",{method:"POST",data:t})},GetDicList:function(t){return(0,k.WY)("/kitchen/api/dict-data/dic-list/".concat(t),{method:"Get"})},GetDeviceType:function(){return(0,k.WY)("\u200B/kitchen/api/Device/GetDeviceType",{method:"GET"})},GetDeviceVersions:function(){return(0,k.WY)("\u200B/kitchen/api/Device/GetDeviceVersions",{method:"post"})},AddDeviceType:function(t){return(0,k.WY)("/kitchen/api/Device/AddDeviceType",{method:"POST",data:t})},GetDeviceInfoPage:function(t){return(0,k.WY)("/kitchen/api/Device/GetDeviceInfoPage",{method:"POST",data:t})},getpage:function(t,xe){return(0,k.WY)("/kitchen/api/sysOrg\u200B/page",{method:"GET",params:(0,Ae.Z)({},t)})},GetFoodMenuInfoPage:function(t){return(0,k.WY)("/kitchen/api/FoodMenu/GetFoodMenuInfoPage",{method:"POST",data:t})},AddFoodMenu:function(t){return(0,k.WY)("/kitchen/api/FoodMenu/AddUpdateFoodMenu",{method:"POST",data:t})},UpdateFoodMenu:function(t){return(0,k.WY)("/kitchen/api/FoodMenu/AddUpdateFoodMenu",{method:"POST",data:t})},GetDeviceGoods:function(t){return(0,k.WY)("/kitchen/api/Device/GetDeviceGoods",{method:"POST",data:t})},AddGoods:function(t){return(0,k.WY)("/kitchen/api/goods",{method:"POST",data:t})},UpdateGoods:function(t){return(0,k.WY)("/kitchen/api/goods",{method:"PUT",data:t})},GetUnitList:function(t){return(0,k.WY)("/kitchen/api/goods-unit/type",{method:"Post",data:t})},GetGoodsbigType:function(t){return(0,k.WY)("/kitchen/api/goods-type/big-goods-types",{method:"POST",data:t})},GetGoodsSmallType:function(t){return(0,k.WY)("/kitchen/api/goods-type/goods-types",{method:"POST",data:t})},GetCosRequestURL:function(t){return(0,k.WY)("/kitchen/api/systemconfig/GetCosRequestSignURL",{method:"POST",data:t})},CreateUnit:function(t){return(0,k.WY)("/kitchen/api/goods-unit",{method:"POST",data:t})},AddGoodsTypeListNew:function(t){return(0,k.WY)("/kitchen/api/goods-type/goods-type-new",{method:"post",data:t})},AddGoodsSmallType:function(t){return(0,k.WY)("/kitchen/api/goods-type",{method:"POST",data:t})},GetgoodsList:function(t){return(0,k.WY)("/kitchen/api/goods/goodss",{method:"Post",data:t})},GetBomPage:function(t){return(0,k.WY)("/kitchen/api/bom/getpage",{method:"Post",data:t})},AddBom:function(t){return(0,k.WY)("/kitchen/api/bom/add",{method:"Post",data:t})},UpdateBom:function(t){return(0,k.WY)("/kitchen/api/bom/update",{method:"Post",data:t})},GetBomTypePage:function(t){return(0,k.WY)("/kitchen/api/bom/getbomtypepage",{method:"Post",data:t})},CreateBomType:function(t){return(0,k.WY)("/kitchen/api/bom/addbomtype",{method:"Post",data:t})},AddMaterial:function(t){return(0,k.WY)("/kitchen/api/product/",{method:"POST",data:(0,Ae.Z)({},t)})},UpdateMaterial:function(t){return(0,k.WY)("/kitchen/api/product/",{method:"PUT",data:(0,Ae.Z)({},t)})},GetMaterialPage:function(t){return(0,k.WY)("/kitchen/api/product/product-list",{method:"Post",data:t})},GetMaterialTypeList:function(t){return(0,k.WY)("/kitchen/api/product-type/type-list",{method:"GET",params:(0,Ae.Z)({},t)})},GetMaterialUintList:function(t){return(0,k.WY)("/kitchen/api/unit/uint-list",{method:"GET",params:(0,Ae.Z)({},t)})},AddMaterialUnit:function(t){return(0,k.WY)("/kitchen/api/unit",{method:"POST",data:t})},AddMaterialType:function(t){return(0,k.WY)("/kitchen/api/product-type",{method:"POST",data:t})},QuickStartAdd:function(t){return(0,k.WY)("/kitchen/api/quickstart/add",{method:"POST",data:t})}},On=d(88307),et=d(49101),Xe=d(51496),e=d(85893),kt=h.Z.Option,at,At=function(t){var xe=(0,a.useState)(null),se=(0,u.Z)(xe,2),Y=se[0],me=se[1],V=(0,a.useState)(null),R=(0,u.Z)(V,2),ee=R[0],L=R[1],X=(0,a.useState)([]),Z=(0,u.Z)(X,2),I=Z[0],$=Z[1],te=(0,a.useState)(null),Q=(0,u.Z)(te,2),re=Q[0],ge=Q[1],ce=function(){re?t.handleOk(re):f.default.error("\u8BF7\u9009\u62E9\u5E97\u94FA\u5730\u5740")},le=function(M){if(M&&Y){Y.clearOverlays();var g=I.find(function(ue){return ue.uid===M});if(g){ge(g);var T=new BMapGL.Point(g.point.lng,g.point.lat);Y.centerAndZoom(T,16);var q=new BMapGL.Marker(T);Y.addOverlay(q);var fe=new BMapGL.InfoWindow(g.address,{width:200,height:100,title:g.title,message:g.address});q.addEventListener("click",function(){Y.openInfoWindow(fe,T)})}}},H=function(M){if(at&&(clearTimeout(at),at=null),Y)if(ee===null){var g=new BMapGL.LocalSearch(Y,{onSearchComplete:function(q){q&&$(JSON.parse(JSON.stringify(q._pois)))}});at=setTimeout(function(){g.search(M)},300),L(g)}else at=setTimeout(function(){ee.search(M)},300)},pe=function(){var M=new BMapGL.Map("baidu_map_container");M.enableScrollWheelZoom(!0),M.setHeading(64.5),M.setTilt(73);var g=new BMapGL.LocalCity;g.get(function(T){T&&M.centerAndZoom(new BMapGL.Point(T.center.lng,T.center.lat),12)}),me(M)};return(0,a.useEffect)(function(){pe()},[]),(0,e.jsx)(e.Fragment,{children:(0,e.jsxs)(Ie.Z,{width:800,title:"\u9009\u62E9\u5E97\u94FA\u5750\u6807",visible:t.isShowBaiduMap,onOk:ce,onCancel:t.handleCancel,children:[(0,e.jsx)(h.Z,{showSearch:!0,placeholder:"\u8BF7\u8F93\u5165\u5730\u5740",onChange:le,onSearch:H,defaultActiveFirstOption:!1,showArrow:!1,filterOption:!1,notFoundContent:null,style:{width:"100%",marginBottom:"10px"},size:"large",children:I==null?void 0:I.map(function(B){return(0,e.jsxs)(kt,{value:B.uid,children:[B.title," \u3010",B.address,"\u3011"]},B.uid)})}),(0,e.jsx)("div",{id:"baidu_map_container",style:{width:"750px",height:"700px"}})]})})},Gt=At,St="message",Pt=function(t){var xe=(0,a.useState)(0),se=(0,u.Z)(xe,2),Y=se[0],me=se[1],V=(0,a.useState)(20),R=(0,u.Z)(V,2),ee=R[0],L=R[1],X=w.Z.TextArea,Z=h.Z.Option,I=h.Z.OptGroup,$=n.Z.useForm(),te=(0,u.Z)($,1),Q=te[0],re=(0,a.useState)([]),ge=(0,u.Z)(re,2),ce=ge[0],le=ge[1],H=(0,a.useState)([]),pe=(0,u.Z)(H,2),B=pe[0],M=pe[1],g=function(){var oe=(0,K.Z)((0,c.Z)().mark(function ne(b){var Ze,ae;return(0,c.Z)().wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:if(f.default.loading("\u6B63\u5728\u914D\u7F6E",St),!b.id){Ce.next=8;break}return Ce.next=4,j.UpdateOrg(b);case 4:Ze=Ce.sent,Ze.succeeded?(f.default.success("\u4FEE\u6539\u6210\u529F"),ye(!1),U.current.reload()):f.default.error(Ze.errors||"\u4FEE\u6539\u51FA\u9519"),Ce.next=13;break;case 8:return b.code=(0,Xe.x0)(),Ce.next=11,j.AddOrg(b);case 11:ae=Ce.sent,ae.succeeded?(f.default.success("\u6DFB\u52A0\u6210\u529F"),U.current.reload(),ye(!1)):f.default.error(JSON.stringify(ae.errors)||"\u6DFB\u52A0\u51FA\u9519");case 13:f.default.destroy(St);case 14:case"end":return Ce.stop()}},ne)}));return function(b){return oe.apply(this,arguments)}}(),T=(0,a.useState)({id:""}),q=(0,u.Z)(T,2),fe=q[0],ue=q[1],J=(0,a.useState)(!1),A=(0,u.Z)(J,2),z=A[0],ye=A[1],U=(0,a.useRef)(),we=function(){var oe=(0,K.Z)((0,c.Z)().mark(function ne(){var b,Ze;return(0,c.Z)().wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.next=2,j.getOrgTree();case 2:b=Se.sent,b.statusCode===200?(Ze=[{key:"0",parentId:"0",title:"\u9876\u7EA7",value:"0",children:b.data||[]}],le(Ze)):f.default.error(b.errors||"\u83B7\u53D6\u95E8\u5E97\u67B6\u6784\u51FA\u9519");case 4:case"end":return Se.stop()}},ne)}));return function(){return oe.apply(this,arguments)}}(),je=function(){var oe=(0,K.Z)((0,c.Z)().mark(function ne(){var b;return(0,c.Z)().wrap(function(ae){for(;;)switch(ae.prev=ae.next){case 0:return ae.next=2,j.getPayTemplateList();case 2:b=ae.sent,b.statusCode===200?M(b.data.data):f.default.error(b.errors||"\u83B7\u53D6\u83B7\u53D6\u652F\u4ED8\u65B9\u5F0F\u51FA\u9519");case 4:case"end":return ae.stop()}},ne)}));return function(){return oe.apply(this,arguments)}}(),Te=[{title:"\u4E3B\u952E",dataIndex:"id",tip:"key",hideInSearch:!0,hideInTable:!0},{title:"\u95E8\u5E97\u540D\u79F0",dataIndex:"name"},{title:"\u95E8\u5E97\u7F16\u7801",dataIndex:"code"},{title:"\u95E8\u5E97\u7C7B\u578B",dataIndex:"type",valueEnum:{0:{text:"\u673A\u6784"},1:{text:"\u914D\u9001\u4E2D\u5FC3"},2:{text:"\u76F4\u8425\u5E97"},3:{text:"\u52A0\u76DF\u5E97"}}},{title:"\u7535\u8BDD",dataIndex:"tel",hideInSearch:!0},{title:"\u6392\u5E8F",dataIndex:"sort",valueType:"digit",hideInSearch:!0},{title:"\u63CF\u8FF0",dataIndex:"remark",valueType:"textarea",hideInSearch:!0},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(ne,b){return[(0,e.jsx)("a",{onClick:function(){ue(b),ye(!0),Q.setFieldsValue(b)},children:"\u66F4\u65B0"},"config")]}}],Ue=(0,a.useState)([]),Ge=(0,u.Z)(Ue,2),Ke=Ge[0],Pe=Ge[1],be=(0,a.useState)(!1),Be=(0,u.Z)(be,2),De=Be[0],Ne=Be[1],_e=function(ne){var b=Q.getFieldsValue(!0);b.store_Loc="".concat(ne.point.lng.toFixed(10),",").concat(ne.point.lat.toFixed(10)),b.store_Addr=ne.address,Q.setFieldsValue(b),Ne(!1),f.default.success("\u95E8\u5E97\u5750\u6807\u8BBE\u7F6E\u6210\u529F\uFF01")};return(0,a.useEffect)(function(){t.storeConfig.id&&Pe([t.storeConfig.id]),we(),je()},[]),(0,e.jsxs)(e.Fragment,{children:[De&&(0,e.jsx)(Gt,{isShowBaiduMap:De,handleOk:_e,handleCancel:function(){return Ne(!1)}}),(0,e.jsx)(Ie.Z,{width:600,title:fe.id?"\u7F16\u8F91\u95E8\u5E97\u67B6\u6784":"\u65B0\u589E\u95E8\u5E97\u67B6\u6784",visible:z,footer:!1,onCancel:function(){return ye(!1)},children:(0,e.jsxs)(n.Z,{form:Q,layout:"horizontal",preserve:!1,labelCol:{span:4},onFinish:g,children:[(0,e.jsx)(n.Z.Item,{name:"id",hidden:!0,children:(0,e.jsx)(w.Z,{})}),(0,e.jsx)(n.Z.Item,{name:"code",hidden:!0,label:"\u95E8\u5E97\u7F16\u7801",children:(0,e.jsx)(w.Z,{placeholder:"\u8BF7\u8F93\u5165\u95E8\u5E97\u7F16\u7801"})}),(0,e.jsx)(n.Z.Item,{name:"name",label:"\u95E8\u5E97\u540D\u79F0",rules:[{required:!0,max:64}],children:(0,e.jsx)(w.Z,{placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0"})}),(0,e.jsx)(n.Z.Item,{name:"pid",label:"\u6240\u5C5E\u673A\u6784",rules:[{required:!0}],children:(0,e.jsx)(yt.Z,{style:{width:"100%"},dropdownStyle:{maxHeight:400,overflow:"auto"},treeData:ce,placeholder:"\u8BF7\u9009\u62E9\u6240\u5C5E\u673A\u6784",treeDefaultExpandAll:!0})}),(0,e.jsx)(n.Z.Item,{name:"type",label:"\u95E8\u5E97\u7C7B\u578B",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u95E8\u5E97\u7C7B\u578B"}],children:(0,e.jsx)(h.Z,{placeholder:"\u8BF7\u9009\u62E9\u673A\u6784\u7C7B\u578B",children:(0,e.jsxs)(I,{children:[(0,e.jsx)(h.Z.Option,{value:2,children:"\u76F4\u8425\u5E97"}),(0,e.jsx)(h.Z.Option,{value:3,children:"\u52A0\u76DF\u5E97"})]})})}),(0,e.jsx)(n.Z.Item,{name:"payTemplateId",label:"\u652F\u4ED8\u6A21\u677F",children:(0,e.jsx)(h.Z,{placeholder:"\u8BF7\u9009\u62E9\u652F\u4ED8\u6A21\u677F",children:B==null?void 0:B.map(function(oe){return(0,e.jsx)(Z,{value:oe.id,children:oe.name},oe.id)})})}),(0,e.jsx)("div",{className:_().add_row_content,children:(0,e.jsx)(n.Z.Item,{label:"\u5E97\u94FA\u5750\u6807",name:"store_Loc",rules:[{required:!0,max:100,pattern:/^[-\+]?\d+(\.\d+)\,[-\+]?\d+(\.\d+)$/,message:"\u7ECF\u7EAC\u5EA6\u683C\u5F0F\u4E0D\u5BF9"}],children:(0,e.jsx)(w.Z,{style:{width:"55%"},placeholder:"104.070734,30.575041"})})}),(0,e.jsx)(n.Z.Item,{label:"\u5E97\u94FA\u5730\u5740",name:"store_Addr",rules:[{required:!0,max:100}],children:(0,e.jsx)(w.Z,{placeholder:"\u6210\u90FD\u5E02\u6B66\u4FAF\u533A\u6842\u6EAA\u8857\u9053\u73AF\u7403\u4E2D\u5FC3N5-9111C"})}),(0,e.jsx)(n.Z.Item,{name:"tel",label:"\u7535\u8BDD",rules:[{max:20}],children:(0,e.jsx)(w.Z,{placeholder:"\u8BF7\u8F93\u5165\u8054\u7CFB\u7535\u8BDD"})}),(0,e.jsx)(n.Z.Item,{name:"sort",label:"\u6392\u5E8F",children:(0,e.jsx)(nt.Z,{min:1,step:1,precision:0})}),(0,e.jsx)(n.Z.Item,{name:"remark",label:"\u5907\u6CE8",children:(0,e.jsx)(X,{rows:4,rules:[{max:500}]})}),(0,e.jsx)(n.Z.Item,{children:(0,e.jsx)(O.Z,{type:"primary",htmlType:"submit",children:"\u786E\u5B9A"})})]})}),(0,e.jsx)(Ot.Z,{search:!1,style:{width:"100%"},headerTitle:"\u95E8\u5E97\u5217\u8868",actionRef:U,rowKey:"id",rowSelection:{type:"radio",onChange:function(ne,b){Pe(ne),t.onSelectedChange("storeConfig",b[0])},selectedRowKeys:Ke},request:function(){var oe=(0,K.Z)((0,c.Z)().mark(function ne(b){var Ze,ae,Se;return(0,c.Z)().wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:return Ze=[],ae=0,Ee.next=4,j.getpage(b).then(function(Fe){Ze=Fe.data.data,ae=Fe.data.total});case 4:return Se=Ze.filter(function(Fe){return Fe.type===2||Fe.type===3}),Ee.abrupt("return",{data:Se,success:!0,total:ae});case 6:case"end":return Ee.stop()}},ne)}));return function(ne){return oe.apply(this,arguments)}}(),columns:Te,pagination:{current:Y,pageSize:ee,onChange:function(ne,b){me(ne),L(b)}},toolBarRender:function(){return[(0,e.jsx)(O.Z,{icon:(0,e.jsx)(et.Z,{}),type:"primary",onClick:function(){Q.resetFields(),ue({id:""}),ye(!0)},children:"\u65B0\u5EFA"},"button")]}})]})},Rt=Pt,qe=d(16894),Ut=d(87246),Ft=d.n(Ut),jt="message",Nt=function(t){var xe=h.Z.Option,se=h.Z.OptGroup,Y=n.Z.useForm(),me=(0,u.Z)(Y,1),V=me[0],R=n.Z.useForm(),ee=(0,u.Z)(R,1),L=ee[0],X=(0,a.useState)([]),Z=(0,u.Z)(X,2),I=Z[0],$=Z[1],te=(0,a.useState)([]),Q=(0,u.Z)(te,2),re=Q[0],ge=Q[1],ce=(0,a.useState)({}),le=(0,u.Z)(ce,2),H=le[0],pe=le[1],B=(0,a.useState)([]),M=(0,u.Z)(B,2),g=M[0],T=M[1],q=(0,a.useState)([]),fe=(0,u.Z)(q,2),ue=fe[0],J=fe[1],A=(0,a.useState)(!1),z=(0,u.Z)(A,2),ye=z[0],U=z[1],we=(0,a.useState)({id:""}),je=(0,u.Z)(we,2),Te=je[0],Ue=je[1],Ge=(0,a.useState)(!1),Ke=(0,u.Z)(Ge,2),Pe=Ke[0],be=Ke[1],Be=function(){var F=(0,K.Z)((0,c.Z)().mark(function S(r){var i,s;return(0,c.Z)().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:if(f.default.loading("\u6B63\u5728\u914D\u7F6E",jt),!r.id){m.next=8;break}return m.next=4,j.UpdateDeviceInfo(r);case 4:i=m.sent,i.succeeded?(f.default.success("\u4FEE\u6539\u6210\u529F"),be(!1),b.current.reload()):f.default.error(i.errors||"\u4FEE\u6539\u51FA\u9519"),m.next=12;break;case 8:return m.next=10,j.AddDeviceInfo(r);case 10:s=m.sent,s.succeeded?(f.default.success("\u6DFB\u52A0\u6210\u529F"),b.current.reload(),be(!1)):f.default.error(s.errors||"\u6DFB\u52A0\u6210\u51FA\u9519");case 12:f.default.destroy(jt),b.current.reload();case 14:case"end":return m.stop()}},S)}));return function(r){return F.apply(this,arguments)}}(),De=function(){var F=(0,K.Z)((0,c.Z)().mark(function S(){var r;return(0,c.Z)().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,j.GetDicList("DeviceClientType");case 2:r=s.sent,r.statusCode===200?(r.data.forEach(function(x){x.code=x.code,x.value=x.code}),$(r.data)):f.default.error(r.errors||"\u83B7\u53D6\u8BBE\u5907\u7C7B\u578B\u51FA\u9519");case 4:case"end":return s.stop()}},S)}));return function(){return F.apply(this,arguments)}}(),Ne=function(){var F=(0,K.Z)((0,c.Z)().mark(function S(){var r;return(0,c.Z)().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,j.getOrgTree();case 2:r=s.sent,r.statusCode===200?T(r.data):f.default.error(r.errors||"\u83B7\u53D6\u7EC4\u7EC7\u67B6\u6784\u51FA\u9519");case 4:case"end":return s.stop()}},S)}));return function(){return F.apply(this,arguments)}}(),_e=function(){var F=(0,K.Z)((0,c.Z)().mark(function S(){var r,i;return(0,c.Z)().wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return x.next=2,j.GetDeviceType();case 2:r=x.sent,r.statusCode===200?(i={},r.data.forEach(function(m){i[m.id]={text:m.name}}),pe(i),ge(r.data)):f.default.error(r.errors||"\u83B7\u53D6\u8BBE\u5907\u5206\u7C7B\u51FA\u9519");case 4:case"end":return x.stop()}},S)}));return function(){return F.apply(this,arguments)}}(),oe=function(){var F=(0,K.Z)((0,c.Z)().mark(function S(){var r;return(0,c.Z)().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,j.GetDeviceVersions();case 2:r=s.sent,r.statusCode===200?J(r.data):f.default.error(r.errors||"\u83B7\u53D6\u8BBE\u5907\u7248\u672C\u51FA\u9519");case 4:case"end":return s.stop()}},S)}));return function(){return F.apply(this,arguments)}}(),ne=function(){var F=(0,K.Z)((0,c.Z)().mark(function S(r){var i;return(0,c.Z)().wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return x.next=2,j.AddDeviceType(r);case 2:i=x.sent,i.data?(f.default.success("\u8BBE\u5907\u5206\u7C7B\u6DFB\u52A0\u6210\u529F\uFF01"),U(!1),_e()):f.default.error(i.errors||"\u6DFB\u52A0\u8BBE\u5907\u5206\u7C7B\u51FA\u9519");case 4:case"end":return x.stop()}},S)}));return function(r){return F.apply(this,arguments)}}(),b=(0,a.useRef)(),Ze=(0,a.useState)([]),ae=(0,u.Z)(Ze,2),Se=ae[0],Ce=ae[1],Ee=[{title:"\u4E3B\u952E",dataIndex:"id",hideInSearch:!0,hideInTable:!0,tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key"},{title:"\u8BBE\u5907\u540D\u79F0",dataIndex:"deviceName",valueType:"textarea"},{title:"\u6240\u5C5E\u95E8\u5E97",dataIndex:"orgId",hideInSearch:!0,render:function(S,r){return(0,e.jsx)("div",{children:t.storeConfig.name})}},{title:"\u8BBE\u5907\u7C7B\u578B",dataIndex:"deviceTypeKey",valueEnum:I,hideInSearch:!0},{title:"\u8BBE\u5907\u5206\u7C7B",dataIndex:"deviceTypeId",valueEnum:H},{title:"\u72B6\u6001",dataIndex:"status",valueEnum:{0:{text:"\u6B63\u5E38",status:"Processing"},1:{text:"\u505C\u7528",status:"Success"}},hideInSearch:!0},{title:"\u8BBE\u5907\u5730\u5740",dataIndex:"deviceAddr",search:!1,valueType:"textarea"},{title:"\u5750\u6807",dataIndex:"deviceLoc",valueType:"textarea",search:!1},{title:"\u8BBE\u5907\u901A\u9053\u6570\u91CF",dataIndex:"materialQuantity",valueType:"textarea",search:!1},{title:"\u8BBE\u5907\u552F\u4E00key",dataIndex:"autoKey",search:!1},{title:"\u5F52\u5C5E\u95E8\u5E97\u552F\u4E00key",dataIndex:"orgKey",search:!1},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(S,r){return[(0,e.jsx)("a",{onClick:function(){Ue(r),be(!0),L.setFieldsValue(r)},children:"\u66F4\u65B0"},"config")]}}],Fe=(0,a.useState)(0),ze=(0,u.Z)(Fe,2),Ve=ze[0],Me=ze[1],Je=(0,a.useState)(20),Qe=(0,u.Z)(Je,2),Le=Qe[0],Oe=Qe[1];return(0,a.useEffect)(function(){var F;(F=t.deviceConfig)!==null&&F!==void 0&&F.id&&Ce([t.deviceConfig.id]),Ne(),_e(),De(),oe()},[]),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(qe.ZP,{style:{width:"100%"},headerTitle:"\u8BBE\u5907\u4FE1\u606F",actionRef:b,rowKey:"id",search:!1,pagination:{current:Ve,pageSize:Le,onChange:function(S,r){Me(S),Oe(r)}},request:function(){var F=(0,K.Z)((0,c.Z)().mark(function S(r){var i,s;return(0,c.Z)().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return i=[],s=0,m.next=4,j.GetDeviceInfoPage(r).then(function(ie){i=ie.data.data,s=ie.data.total});case 4:return i=i.filter(function(ie){return ie.orgId===t.storeConfig.id}),m.abrupt("return",{data:i,success:!0,total:s});case 6:case"end":return m.stop()}},S)}));return function(S){return F.apply(this,arguments)}}(),columns:Ee,rowSelection:{type:"radio",onChange:function(S,r){Ce(S),t.onSelectedChange("deviceConfig",r[0])},selectedRowKeys:Se},toolBarRender:function(){return[(0,e.jsx)(O.Z,{icon:(0,e.jsx)(et.Z,{}),type:"primary",onClick:function(){L.resetFields();var r=L.getFieldsValue();r.orgId=t.storeConfig.id,r.deviceLoc=t.storeConfig.store_Loc,r.deviceAddr=t.storeConfig.store_Addr,L.setFieldsValue(r),Ue({id:""}),be(!0)},children:"\u65B0\u5EFA"},"button")]}}),(0,e.jsx)(Ie.Z,{width:600,title:Te.id?"\u7F16\u8F91\u8BBE\u5907":"\u65B0\u589E\u8BBE\u5907",visible:Pe,footer:!1,onCancel:function(){return be(!1)},children:(0,e.jsxs)(n.Z,{layout:"Horizontal",labelCol:{span:6},preserve:!1,form:L,onFinish:Be,children:[(0,e.jsx)(n.Z.Item,{name:"id",hidden:!0,children:(0,e.jsx)(w.Z,{})}),(0,e.jsx)(n.Z.Item,{label:"\u8BBE\u5907\u540D\u79F0",name:"deviceName",rules:[{required:!0,max:50}],children:(0,e.jsx)(w.Z,{})}),(0,e.jsx)(n.Z.Item,{label:"\u8BBE\u5907\u7C7B\u578B",name:"deviceTypeKey",rules:[{required:!0}],children:(0,e.jsx)(h.Z,{children:I.map(function(F,S){return(0,e.jsx)(h.Z.Option,{index:S,value:F.code,children:F.value},F.code)})})}),(0,e.jsx)(n.Z.Item,{name:"orgId",label:"\u5F52\u5C5E\u95E8\u5E97",rules:[{required:!0}],children:(0,e.jsx)(yt.Z,{disabled:!0,style:{width:"100%"},dropdownStyle:{maxHeight:400,overflow:"auto"},treeData:g,placeholder:"\u5F52\u5C5E\u95E8\u5E97",treeDefaultExpandAll:!0})}),(0,e.jsxs)("div",{className:Ft().add_row_content,children:[(0,e.jsx)(n.Z.Item,{label:"\u8BBE\u5907\u5206\u7C7B",name:"deviceTypeId",rules:[{required:!0}],children:(0,e.jsx)(h.Z,{style:{width:"75%"},children:re.map(function(F,S){return(0,e.jsx)(h.Z.Option,{index:S,value:F.id,children:F.name},F.id)})})}),(0,e.jsx)(O.Z,{type:"primary",className:Ft().add_row_btn,onClick:function(){U(!0),V.resetFields()},children:"\u6DFB\u52A0\u5206\u7C7B"})]}),(0,e.jsx)(n.Z.Item,{noStyle:!0,shouldUpdate:function(S,r){return S.deviceTypeKey!==r.deviceTypeKey},children:function(S){var r=S.getFieldValue;return r("deviceTypeKey")==="TMC"?(0,e.jsx)(n.Z.Item,{name:"deviceVersion",label:"\u8BBE\u5907\u7248\u672C",initialValue:"WorryFreeEdition",children:(0,e.jsx)(h.Z,{children:ue.map(function(i,s){return(0,e.jsx)(h.Z.Option,{index:s,value:i.code,children:i.name},i.code)})})}):null}}),(0,e.jsx)(n.Z.Item,{label:"\u8BBE\u5907\u5750\u6807",name:"deviceLoc",children:(0,e.jsx)(w.Z,{placeholder:"104.070734,30.575041"})}),(0,e.jsx)(n.Z.Item,{label:"\u72B6\u6001",name:"status",children:(0,e.jsx)(h.Z,{placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001",defaultValue:0,children:(0,e.jsxs)(se,{children:[(0,e.jsx)(h.Z.Option,{value:0,children:"\u6B63\u5E38"}),(0,e.jsx)(h.Z.Option,{value:1,children:"\u505C\u7528"})]})})}),(0,e.jsx)(n.Z.Item,{noStyle:!0,shouldUpdate:function(S,r){return S.deviceTypeKey!==r.deviceTypeKey},children:function(S){var r=S.getFieldValue;return r("deviceTypeKey")==="TMC"?(0,e.jsx)(n.Z.Item,{label:"\u8BBE\u5907\u901A\u9053\u6570\u91CF",name:"materialQuantity",children:(0,e.jsx)(nt.Z,{style:{width:"100%"}})}):null}}),(0,e.jsx)(n.Z.Item,{label:"\u8BBE\u5907\u8BE6\u7EC6\u5730\u5740",name:"deviceAddr",children:(0,e.jsx)(w.Z,{placeholder:"\u6210\u90FD\u5E02\u6B66\u4FAF\u533A\u6842\u6EAA\u8857\u9053\u73AF\u7403\u4E2D\u5FC3N5-9111C"})}),(0,e.jsx)(n.Z.Item,{children:(0,e.jsx)(O.Z,{type:"primary",htmlType:"submit",children:"\u786E\u5B9A"})})]})}),(0,e.jsx)(Ie.Z,{title:"\u6DFB\u52A0\u8BBE\u5907\u5206\u7C7B",visible:ye,footer:!1,onCancel:function(){return U(!1)},children:(0,e.jsxs)(n.Z,{layout:"vertical",onFinish:ne,form:V,children:[(0,e.jsx)(n.Z.Item,{name:"id",hidden:!0,children:(0,e.jsx)(w.Z,{})}),(0,e.jsx)(n.Z.Item,{label:"\u7C7B\u578B\u540D\u79F0",name:"name",rules:[{required:!0,max:50}],children:(0,e.jsx)(w.Z,{})}),(0,e.jsx)(n.Z.Item,{children:(0,e.jsx)(O.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})})]})},_t=Nt,tt="message",Lt=function(t){var xe=n.Z.useForm(),se=(0,u.Z)(xe,1),Y=se[0],me=function(){var J=(0,K.Z)((0,c.Z)().mark(function A(z){return(0,c.Z)().wrap(function(U){for(;;)switch(U.prev=U.next){case 0:if(!z.id){U.next=13;break}return U.prev=1,f.default.loading("\u6B63\u5728\u4FEE\u6539",tt),U.next=5,j.UpdateFoodMenu(z).then(function(we){f.default.destroy(tt),we.data?(f.default.success("\u4FEE\u6539\u6210\u529F"),$(!1),te.current.reload()):f.default.error("\u4FEE\u6539\u5931\u8D25")});case 5:U.next=11;break;case 7:U.prev=7,U.t0=U.catch(1),f.default.destroy(tt),f.default.error("\u4FEE\u6539\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01");case 11:U.next=23;break;case 13:return U.prev=13,f.default.loading("\u6B63\u5728\u6DFB\u52A0",tt),U.next=17,j.AddFoodMenu(z).then(function(we){f.default.destroy(tt),we.data?(f.default.success("\u6DFB\u52A0\u6210\u529F"),$(!1),te.current.reload()):f.default.error("\u6DFB\u52A0\u5931\u8D25")});case 17:U.next=23;break;case 19:U.prev=19,U.t1=U.catch(13),f.default.destroy(tt),f.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01");case 23:case"end":return U.stop()}},A,null,[[1,7],[13,19]])}));return function(z){return J.apply(this,arguments)}}(),V=(0,a.useState)({id:""}),R=(0,u.Z)(V,2),ee=R[0],L=R[1],X=(0,a.useState)(!1),Z=(0,u.Z)(X,2),I=Z[0],$=Z[1],te=(0,a.useRef)(),Q=(0,a.useState)(1),re=(0,u.Z)(Q,2),ge=re[0],ce=re[1],le=(0,a.useState)(10),H=(0,u.Z)(le,2),pe=H[0],B=H[1],M=(0,a.useState)([]),g=(0,u.Z)(M,2),T=g[0],q=g[1],fe=[{title:"\u4E3B\u952E",dataIndex:"id",hideInSearch:!0,hideInTable:!0,tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key"},{title:"\u83DC\u8C31\u7F16\u7801",dataIndex:"code",valueType:"textarea"},{title:"\u83DC\u8C31\u540D\u79F0",dataIndex:"name",valueType:"textarea"},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(A,z){return[(0,e.jsx)("a",{onClick:function(){L(z),$(!0),Y.setFieldsValue(z)},children:"\u66F4\u65B0"},"config")]}}],ue=function(){if(t.foodMenuConfig.length>0){var A=[];t.foodMenuConfig.forEach(function(z){A.push(z.id)}),q(A)}};return(0,a.useEffect)(function(){ue()},[]),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(qe.ZP,{style:{width:"100%"},headerTitle:"\u83DC\u8C31\u5217\u8868",actionRef:te,rowKey:"id",search:!1,pagination:{current:ge,pageSize:pe,onChange:function(A,z){ce(A),B(z)}},request:function(){var J=(0,K.Z)((0,c.Z)().mark(function A(z){var ye,U;return(0,c.Z)().wrap(function(je){for(;;)switch(je.prev=je.next){case 0:return ye=[],U=0,je.next=4,j.GetFoodMenuInfoPage(z).then(function(Te){ye=Te.data.data,U=Te.data.total});case 4:return je.abrupt("return",{data:ye,success:!0,total:U});case 5:case"end":return je.stop()}},A)}));return function(A){return J.apply(this,arguments)}}(),columns:fe,rowSelection:{type:"checkbox",onChange:function(A,z){q(A),t.onSelectedChange("foodMenuConfig",z)},selectedRowKeys:T},toolBarRender:function(){return[(0,e.jsx)(O.Z,{icon:(0,e.jsx)(et.Z,{}),type:"primary",onClick:function(){Y.resetFields();var z=Y.getFieldsValue();z.code=(0,Xe.x0)().substring(0,20),Y.setFieldsValue(z),L({id:""}),$(!0)},children:"\u65B0\u5EFA"},"button")]}}),(0,e.jsx)(Ie.Z,{width:600,title:ee.id?"\u7F16\u8F91\u83DC\u8C31":"\u65B0\u589E\u83DC\u8C31",visible:I,footer:!1,onCancel:function(){return $(!1)},children:(0,e.jsxs)(n.Z,{form:Y,layout:"Horizontal",preserve:!1,onFinish:me,style:{width:"100%"},children:[(0,e.jsx)(n.Z.Item,{name:"id",hidden:!0,children:(0,e.jsx)(w.Z,{})}),(0,e.jsx)(n.Z.Item,{label:"\u83DC\u8C31\u7F16\u7801",name:"code",rules:[{required:!0,max:50}],children:(0,e.jsx)(w.Z,{disabled:!0})}),(0,e.jsx)(n.Z.Item,{label:"\u83DC\u8C31\u540D\u79F0",name:"name",rules:[{required:!0,max:20}],children:(0,e.jsx)(w.Z,{})}),(0,e.jsx)(n.Z.Item,{children:(0,e.jsx)(O.Z,{type:"primary",htmlType:"submit",children:"\u786E\u5B9A"})})]})})]})},$t=Lt,kn=d(57338),mt=d(273),An=d(66456),pt=d(64411),Gn=d(77576),Bt=d(12028),Pn=d(43185),Wt=d(93009),Rn=d(74379),Re=d(38648),Kt=d(84391),zt=d(9669),Yt=d.n(zt),wt="message",Vt=function(t){var xe=h.Z.Option,se=h.Z.OptGroup,Y=(0,a.useState)(),me=(0,u.Z)(Y,2),V=me[0],R=me[1],ee=(0,a.useState)([]),L=(0,u.Z)(ee,2),X=L[0],Z=L[1],I=(0,a.useState)([]),$=(0,u.Z)(I,2),te=$[0],Q=$[1],re=(0,a.useState)([]),ge=(0,u.Z)(re,2),ce=ge[0],le=ge[1],H=n.Z.useForm(),pe=(0,u.Z)(H,1),B=pe[0],M=(0,a.useState)(!1),g=(0,u.Z)(M,2),T=g[0],q=g[1],fe=(0,a.useState)(!1),ue=(0,u.Z)(fe,2),J=ue[0],A=ue[1],z=n.Z.useForm(),ye=(0,u.Z)(z,1),U=ye[0],we=(0,a.useState)(!1),je=(0,u.Z)(we,2),Te=je[0],Ue=je[1],Ge=(0,a.useState)(0),Ke=(0,u.Z)(Ge,2),Pe=Ke[0],be=Ke[1],Be=(0,a.useState)(10),De=(0,u.Z)(Be,2),Ne=De[0],_e=De[1],oe=function(){var l=(0,K.Z)((0,c.Z)().mark(function o(){var C;return(0,c.Z)().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return E.next=2,j.GetUnitList({current:1,pageSize:200});case 2:C=E.sent,C.statusCode===200&&Z(C.data.data);case 4:case"end":return E.stop()}},o)}));return function(){return l.apply(this,arguments)}}(),ne=function(){var l=(0,K.Z)((0,c.Z)().mark(function o(){var C;return(0,c.Z)().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return E.next=2,j.GetGoodsbigType({current:1,status:0,pageSize:1e3});case 2:C=E.sent,C.statusCode===200&&Q(C.data.data);case 4:case"end":return E.stop()}},o)}));return function(){return l.apply(this,arguments)}}(),b=function(){var l=(0,K.Z)((0,c.Z)().mark(function o(){var C;return(0,c.Z)().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return E.next=2,j.GetGoodsSmallType({current:1,status:0,pageSize:1e3});case 2:C=E.sent,C.statusCode===200&&le(C.data.data);case 4:case"end":return E.stop()}},o)}));return function(){return l.apply(this,arguments)}}(),Ze={name:"file",showUploadList:!1,multiple:!1,accept:".png, .jpg, .jpeg, .gif",headers:{"Content-Type":"application/octet-stream"},customRequest:function(o){var C=o.action,D=o.file,E=o.headers,he=o.onError,de=o.onProgress,Ye=o.onSuccess,vn=o.withCredentials;console.log("\u4E0A\u4F20\u56FE\u7247",D);var gn=D.name.lastIndexOf("."),xn=D.name.substr(gn+1),Tt=null;return j.GetCosRequestURL({directory:"goods",fileExtension:xn,method:"PUT"}).then(function(ht){C=ht.allUrl;var bt=new FileReader;bt.readAsArrayBuffer(D),bt.onload=function(Zn){Tt=Zn.target.result,Yt().put(C,Tt,{withCredentials:vn,headers:E,onUploadProgress:function(st){var Cn=st.total,yn=st.loaded;de({percent:Math.round(yn/Cn*100).toFixed(2)},D)}}).then(function(xt){if(xt.status==200||xt.statusText=="OK"){R(ht.seeUrl);var st=B.getFieldsValue();st.imgUrl=ht.seeUrl,B.setFieldsValue(st)}}).catch(he)}}),{abort:function(){console.log("upload progress is aborted.")}}}},ae=function(){var l=(0,K.Z)((0,c.Z)().mark(function o(C){var D,E;return(0,c.Z)().wrap(function(de){for(;;)switch(de.prev=de.next){case 0:if(delete C.imgUrl1,f.default.loading("\u6B63\u5728\u914D\u7F6E",wt),!C.id){de.next=9;break}return de.next=5,j.UpdateGoods(C);case 5:D=de.sent,D.succeeded?(f.default.success("\u4FEE\u6539\u6210\u529F"),Le(!1),Oe.current.reload()):f.default.error(D.errors||"\u4FEE\u6539\u51FA\u9519"),de.next=13;break;case 9:return de.next=11,j.AddGoods(C);case 11:E=de.sent,E.data?(f.default.success("\u6DFB\u52A0\u6210\u529F"),Oe.current.reload(),Le(!1)):f.default.error(E.errors||"\u6DFB\u52A0\u6210\u51FA\u9519");case 13:f.default.destroy(wt);case 14:case"end":return de.stop()}},o)}));return function(C){return l.apply(this,arguments)}}(),Se=[{title:"\u4E3B\u952E",dataIndex:"id",hideInTable:!0,hideInSearch:!0},{title:"\u56FE\u7247\u5730\u5740",dataIndex:"imgUrl",hideInTable:!0,hideInSearch:!0},{title:"\u7F16\u7801",dataIndex:"code",valueType:"textarea"},{title:"\u540D\u79F0",dataIndex:"name",valueType:"textarea"},{title:"\u57FA\u7840\u4EF7\u683C",dataIndex:"price",hideInForm:!0,renderText:function(o){return"".concat(o,"\xA5")},hideInSearch:!0},{title:"\u4F1A\u5458\u4EF7",dataIndex:"vipPrice",hideInForm:!0,renderText:function(o){return"".concat(o,"\xA5")},hideInSearch:!0},{title:"\u5546\u54C1\u5C0F\u7C7B",dataIndex:"goodsTypeName",hideInForm:!0,hideInSearch:!0},{title:"\u5546\u54C1\u7C7B\u578B",dataIndex:"goodsTypeId",hideInForm:!0,hideInTable:!0},{title:"\u5546\u54C1\u5C5E\u6027",dataIndex:"goodsAttribute",hideInForm:!0,valueEnum:{0:{text:"\u5355\u54C1"},1:{text:"\u5957\u9910"}}},{title:"\u72B6\u6001",dataIndex:"status",hideInForm:!0,valueEnum:{0:{text:"\u6B63\u5E38",status:"Processing"},1:{text:"\u505C\u7528",status:"Error"},2:{text:"\u5220\u9664",status:"Error"}}},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"createAt",valueType:"date"},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(o,C){return[(0,e.jsx)("a",{onClick:function(){Ve(C),Le(!0),B.setFieldsValue(C)},children:"\u66F4\u65B0"},"config")]}}],Ce=[{title:"\u540D\u79F0",dataIndex:"name",valueType:"textarea"}],Ee=(0,a.useState)({id:""}),Fe=(0,u.Z)(Ee,2),ze=Fe[0],Ve=Fe[1],Me=(0,a.useState)(!1),Je=(0,u.Z)(Me,2),Qe=Je[0],Le=Je[1],Oe=(0,a.useRef)(),F=(0,a.useState)([]),S=(0,u.Z)(F,2),r=S[0],i=S[1],s=(0,a.useState)([]),x=(0,u.Z)(s,2),m=x[0],ie=x[1],ve=(0,a.useState)(!1),ke=(0,u.Z)(ve,2),dt=ke[0],ct=ke[1],ut=(0,a.useState)([]),ft=(0,u.Z)(ut,2),gt=ft[0],it=ft[1],G=(0,a.useState)(t.foodMenuConfig[0].id),p=(0,u.Z)(G,2),v=p[0],W=p[1],N=[{title:"\u540D\u79F0",dataIndex:"name",valueType:"textarea"},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(o,C){return[(0,e.jsx)("a",{onClick:function(){t.onAddGoodsToFoodMenu(v,C,!1)},children:"\u79FB\u51FA\u83DC\u8C31"})]}}],P=function(){if(m.length===0){Re.default.error({message:"\u5546\u54C1\u6DFB\u52A0\u5230\u83DC\u8C31\u51FA\u9519",description:"\u8BF7\u9009\u62E9\u5546\u54C1",placement:"topRight"});return}t.onAddGoodsToFoodMenu(v,m),i([]),ie([])};return(0,a.useEffect)(function(){oe(),ne(),b()},[]),(0,a.useEffect)(function(){var l=t.foodMenuConfig.find(function(o){return o.id===v});it(l?l.goodsConfig:[])},[t.foodMenuConfig,v]),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(Ie.Z,{width:600,title:ze.id?"\u7F16\u8F91\u5546\u54C1":"\u65B0\u589E\u5546\u54C1",visible:Qe,footer:!1,onCancel:function(){return Le(!1)},children:(0,e.jsxs)(n.Z,{labelCol:{span:4},layout:"horizontal",preserve:!1,onFinish:ae,form:B,children:[(0,e.jsx)(n.Z.Item,{name:"id",hidden:!0,children:(0,e.jsx)(w.Z,{})}),(0,e.jsx)(n.Z.Item,{name:"code",label:"\u5546\u54C1\u7F16\u7801",hidden:!0,children:(0,e.jsx)(w.Z,{disabled:!0})}),(0,e.jsx)(n.Z.Item,{name:"name",label:"\u5546\u54C1\u540D\u79F0",rules:[{required:!0}],children:(0,e.jsx)(w.Z,{})}),(0,e.jsxs)("div",{className:_().add_row_content,children:[(0,e.jsx)(n.Z.Item,{name:"goodsUintId",label:"\u5546\u54C1\u5355\u4F4D",rules:[{required:!0}],children:(0,e.jsx)(h.Z,{style:{width:"75%"},children:X.map(function(l,o){return(0,e.jsx)(h.Z.Option,{index:o,value:l.id,children:l.name},l.id)})})}),(0,e.jsx)(O.Z,{type:"primary",className:_().add_row_btn,onClick:function(){return q(!0)},children:"\u6DFB\u52A0\u5355\u4F4D"})]}),(0,e.jsxs)("div",{className:_().add_row_content,children:[(0,e.jsx)(n.Z.Item,{name:"parentTypeID",label:"\u5546\u54C1\u5927\u7C7B",rules:[{required:!0}],children:(0,e.jsx)(h.Z,{style:{width:"75%"},children:te.map(function(l,o){return(0,e.jsx)(h.Z.Option,{index:o,value:l.id,children:l.name},l.id)})})}),(0,e.jsx)(O.Z,{type:"primary",className:_().add_row_btn,onClick:function(){return A(!0)},children:"\u6DFB\u52A0\u5927\u7C7B"})]}),(0,e.jsxs)("div",{className:_().add_row_content,children:[(0,e.jsx)(n.Z.Item,{name:"goodsTypeId",label:"\u5546\u54C1\u5C0F\u7C7B",rules:[{required:!0}],children:(0,e.jsx)(h.Z,{style:{width:"75%"},children:ce.map(function(l,o){return(0,e.jsx)(h.Z.Option,{index:o,value:l.id,children:l.goodsType_Name},l.id)})})}),(0,e.jsx)(O.Z,{type:"primary",className:_().add_row_btn,onClick:function(){return Ue(!0)},children:"\u6DFB\u52A0\u5C0F\u7C7B"})]}),(0,e.jsx)(n.Z.Item,{name:"price",label:"\u5546\u54C1\u4EF7\u683C",rules:[{required:!0}],children:(0,e.jsx)(nt.Z,{placeholder:"\u4EF7\u683C",min:0,style:{width:"100%"}})}),(0,e.jsx)(n.Z.Item,{name:"vipPrice",label:"\u4F1A\u5458\u4EF7\u683C",children:(0,e.jsx)(nt.Z,{placeholder:"\u4F1A\u5458\u4EF7",min:0,style:{width:"100%"}})}),(0,e.jsx)(n.Z.Item,{name:"goodsAttribute",label:"\u5546\u54C1\u5C5E\u6027",defaultValue:0,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5546\u54C1\u5C5E\u6027"}],children:(0,e.jsx)(h.Z,{placeholder:"\u8BF7\u9009\u62E9\u5546\u54C1\u5C5E\u6027",children:(0,e.jsxs)(se,{children:[(0,e.jsx)(h.Z.Option,{value:0,children:"\u5355\u54C1"}),(0,e.jsx)(h.Z.Option,{value:1,children:"\u5957\u9910"})]})})}),(0,e.jsx)(n.Z.Item,{name:"status",label:"\u72B6\u6001",defaultValue:0,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u72B6\u6001"}],children:(0,e.jsx)(h.Z,{placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001",children:(0,e.jsxs)(se,{children:[(0,e.jsx)(h.Z.Option,{value:0,children:"\u6B63\u5E38"}),(0,e.jsx)(h.Z.Option,{value:1,children:"\u505C\u7528"})]})})}),(0,e.jsx)(n.Z.Item,{name:"remark",label:"\u5907\u6CE8",children:(0,e.jsx)(w.Z,{})}),(0,e.jsx)(n.Z.Item,{name:"imgUrl",hidden:!0,children:(0,e.jsx)(w.Z,{})}),(0,e.jsx)(n.Z.Item,{name:"imgUrl1",label:"\u5546\u54C1\u56FE\u7247\u5730\u5740",children:(0,e.jsx)(Wt.Z,(0,Ae.Z)((0,Ae.Z)({},Ze),{},{children:ze.imgUrl?(0,e.jsx)("img",{src:ze.imgUrl,alt:"avatar",style:{width:"100%"}}):(0,e.jsx)(O.Z,{icon:(0,e.jsx)(Kt.Z,{}),children:"\u4E0A\u4F20"})}))}),(0,e.jsx)(n.Z.Item,{label:"\u662F\u5426\u79F0\u91CD",name:"isWeigh",valuePropName:"checked",initialValue:"false",children:(0,e.jsx)(Bt.Z,{checkedChildren:"\u662F",unCheckedChildren:"\u5426",defaultChecked:"false"})}),(0,e.jsx)(n.Z.Item,{children:(0,e.jsx)(O.Z,{type:"primary",htmlType:"submit",children:"\u786E\u5B9A"})})]})}),(0,e.jsx)(qe.ZP,{actionRef:Oe,style:{width:"100%"},headerTitle:"\u5546\u54C1\u5217\u8868",rowKey:"id",search:{labelWidth:120},pagination:{current:Pe,pageSize:Ne,onChange:function(o,C){be(o),_e(C)}},request:function(){var l=(0,K.Z)((0,c.Z)().mark(function o(C){var D,E;return(0,c.Z)().wrap(function(de){for(;;)switch(de.prev=de.next){case 0:return D=[],E=0,de.next=4,j.GetgoodsList(C).then(function(Ye){D=Ye.data.data,E=Ye.data.total});case 4:return de.abrupt("return",{data:D,success:!0,total:E});case 5:case"end":return de.stop()}},o)}));return function(o){return l.apply(this,arguments)}}(),columns:Se,toolBarRender:function(){return[(0,e.jsx)(O.Z,{icon:(0,e.jsx)(et.Z,{}),type:"primary",onClick:function(){B.resetFields(),Ve({id:""}),Le(!0)},children:"\u65B0\u5EFA"},"button"),(0,e.jsx)(O.Z,{type:"primary",onClick:function(){ct(!0)},children:"\u5173\u8054\u83DC\u8C31"},"button")]}}),(0,e.jsx)(Ie.Z,{title:"\u65B0\u5EFA\u5546\u54C1\u5355\u4F4D",width:640,visible:T,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){q(!1)},destroyOnClose:!0,maskClosable:!1,children:(0,e.jsxs)(n.Z,{layout:"vertical",preserve:!1,onFinish:function(){var l=(0,K.Z)((0,c.Z)().mark(function o(C){var D;return(0,c.Z)().wrap(function(he){for(;;)switch(he.prev=he.next){case 0:return he.next=2,j.CreateUnit(C);case 2:D=he.sent,D.data?(f.default.success("\u5546\u54C1\u5355\u4F4D\u6DFB\u52A0\u6210\u529F"),q(!1),oe()):f.default.error(D.errors||"\u5546\u54C1\u5355\u4F4D\u6DFB\u52A0\u5931\u8D25");case 4:case"end":return he.stop()}},o)}));return function(o){return l.apply(this,arguments)}}(),children:[(0,e.jsx)(n.Z.Item,{name:"id",hidden:!0,children:(0,e.jsx)(w.Z,{})}),(0,e.jsx)(n.Z.Item,{name:"name",label:"\u5546\u54C1\u5355\u4F4D\u540D\u79F0",rules:[{required:!0,max:64}],children:(0,e.jsx)(w.Z,{placeholder:"\u5546\u54C1\u5355\u4F4D\u540D\u79F0"})}),(0,e.jsx)(n.Z.Item,{name:"status",label:"\u72B6\u6001",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u72B6\u6001"}],children:(0,e.jsx)(h.Z,{placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001",children:(0,e.jsxs)(se,{children:[(0,e.jsx)(h.Z.Option,{value:"0",children:"\u6B63\u5E38"}),(0,e.jsx)(h.Z.Option,{value:"1",children:"\u505C\u7528"})]})})}),(0,e.jsx)(n.Z.Item,{children:(0,e.jsx)(O.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})}),(0,e.jsx)(Ie.Z,{title:"\u65B0\u5EFA\u5546\u54C1\u5927\u7C7B",width:640,visible:J,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){A(!1)},destroyOnClose:!0,children:(0,e.jsxs)(n.Z,{form:U,labelCol:{span:6},layout:"horizontal",preserve:!1,onFinish:function(){var l=(0,K.Z)((0,c.Z)().mark(function o(C){var D;return(0,c.Z)().wrap(function(he){for(;;)switch(he.prev=he.next){case 0:return he.next=2,j.AddGoodsTypeListNew(C);case 2:D=he.sent,D.data?(f.default.success("\u5546\u54C1\u5927\u7C7B\u6DFB\u52A0\u6210\u529F"),A(!1),ne()):f.default.error(D.errors||"\u5546\u54C1\u5927\u7C7B\u6DFB\u52A0\u5931\u8D25");case 4:case"end":return he.stop()}},o)}));return function(o){return l.apply(this,arguments)}}(),children:[(0,e.jsx)(n.Z.Item,{name:"id",hidden:!0,children:(0,e.jsx)(w.Z,{})}),(0,e.jsx)(n.Z.Item,{name:"name",label:"\u5546\u54C1\u5927\u7C7B\u540D\u79F0",rules:[{required:!0,max:50}],children:(0,e.jsx)(w.Z,{})}),(0,e.jsx)(n.Z.Item,{name:"status",label:"\u72B6\u6001",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u72B6\u6001"}],children:(0,e.jsx)(h.Z,{placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001",children:(0,e.jsxs)(se,{children:[(0,e.jsx)(h.Z.Option,{value:"0",children:"\u6B63\u5E38"}),(0,e.jsx)(h.Z.Option,{value:"1",children:"\u505C\u7528"})]})})}),(0,e.jsx)(n.Z.Item,{name:"remark",label:"\u5907\u6CE8",children:(0,e.jsx)(w.Z,{})}),(0,e.jsx)(n.Z.Item,{children:(0,e.jsx)(O.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})}),(0,e.jsx)(Ie.Z,{title:"\u65B0\u5EFA\u5546\u54C1\u5C0F\u7C7B",width:640,visible:Te,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){Ue(!1)},destroyOnClose:!0,children:(0,e.jsxs)(n.Z,{labelCol:{span:6},layout:"horizontal",preserve:!1,onFinish:function(){var l=(0,K.Z)((0,c.Z)().mark(function o(C){var D;return(0,c.Z)().wrap(function(he){for(;;)switch(he.prev=he.next){case 0:return he.next=2,j.AddGoodsSmallType(C);case 2:D=he.sent,D.data?(f.default.success("\u5546\u54C1\u5C0F\u7C7B\u6DFB\u52A0\u6210\u529F"),Ue(!1),b()):f.default.error(D.errors||"\u5546\u54C1\u5C0F\u7C7B\u6DFB\u52A0\u5931\u8D25");case 4:case"end":return he.stop()}},o)}));return function(o){return l.apply(this,arguments)}}(),children:[(0,e.jsx)(n.Z.Item,{name:"id",hidden:!0,children:(0,e.jsx)(w.Z,{})}),(0,e.jsx)(n.Z.Item,{name:"goodsType_Name",label:"\u5546\u54C1\u5C0F\u7C7B\u540D\u79F0",rules:[{required:!0,max:50}],children:(0,e.jsx)(w.Z,{})}),(0,e.jsx)(n.Z.Item,{name:"status",label:"\u72B6\u6001",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u72B6\u6001"}],children:(0,e.jsx)(h.Z,{placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001",children:(0,e.jsxs)(se,{children:[(0,e.jsx)(h.Z.Option,{value:"0",children:"\u6B63\u5E38"}),(0,e.jsx)(h.Z.Option,{value:"1",children:"\u505C\u7528"})]})})}),(0,e.jsx)(n.Z.Item,{name:"remark",label:"\u5907\u6CE8",children:(0,e.jsx)(w.Z,{})}),(0,e.jsx)(n.Z.Item,{children:(0,e.jsx)(O.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})}),(0,e.jsxs)(mt.Z,{width:800,title:"\u5546\u54C1\u6DFB\u52A0\u5230\u83DC\u8C31",placement:"right",onClose:function(){return ct(!1)},visible:dt,children:[(0,e.jsxs)("div",{style:{display:"flex",alignItems:"center",marginBottom:"10px"},children:[(0,e.jsx)("div",{className:_().current_selected_obj,children:"\u5F53\u524D\u83DC\u8C31\uFF1A"}),(0,e.jsx)(h.Z,{className:_().current_selected_cmp,onChange:function(o){W(o)},placeholder:"\u8BF7\u9009\u62E9\u83DC\u8C31",value:v,size:"large",children:t.foodMenuConfig.map(function(l){return(0,e.jsx)(xe,{value:l.id,children:l.name},l.id)})})]}),(0,e.jsxs)("div",{className:_().add_to_some_box,children:[(0,e.jsx)(qe.ZP,{actionRef:Oe,className:_().wait_add_list,headerTitle:"\u5F85\u6DFB\u52A0\u5546\u54C1\u5217\u8868",rowKey:"id",search:!1,pagination:{current:Pe,pageSize:Ne,onChange:function(o,C){be(o),_e(C)}},request:function(){var l=(0,K.Z)((0,c.Z)().mark(function o(C){var D,E;return(0,c.Z)().wrap(function(de){for(;;)switch(de.prev=de.next){case 0:return D=[],C.goodsTypeId!=null&&(C.goodsTypeId=goodsTypes[C.goodsTypeId].goodsTypeId),E=0,de.next=5,j.GetgoodsList(C).then(function(Ye){D=Ye.data.data,E=Ye.data.total});case 5:return de.abrupt("return",{data:D,success:!0,total:E});case 6:case"end":return de.stop()}},o)}));return function(o){return l.apply(this,arguments)}}(),columns:Ce,rowSelection:{type:"checkbox",onSelect:function(o,C){var D=JSON.parse(JSON.stringify(m)),E=JSON.parse(JSON.stringify(r)),he=D.findIndex(function(Ye){return Ye.id===o.id}),de=E.findIndex(function(Ye){return Ye===o.id});C?(he<0&&D.push(o),de<0&&E.push(o.id)):(he>-1&&D.splice(he,1),de>-1&&E.splice(de,1)),ie(D),i(E)},onChange:function(o,C){o.length===0&&i([]),C.length===0&&ie([])},selectedRowKeys:r}}),(0,e.jsx)(pt.Z,{className:_().success_add_list,rowKey:"id",columns:N,dataSource:gt})]}),(0,e.jsx)(O.Z,{className:_().sure_add_btn,type:"primary",onClick:P,children:"\u786E\u5B9A\u6DFB\u52A0"})]})]})},Jt=Vt,Un=d(49111),Qt=d(19650),Nn=d(71153),Ht=d(60331),qt=function(t){var xe,se,Y=n.Z.useForm(),me=(0,u.Z)(Y,1),V=me[0],R=function(){var r=(0,K.Z)((0,c.Z)().mark(function i(s){return(0,c.Z)().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:s.id?j.UpdateBom(s).then(function(ie){ie.data?f.default.success("\u4FEE\u6539\u6210\u529F"):f.default.error("\u4FEE\u6539\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),De.current.reload(),Be(!1)}):j.AddBom(s).then(function(ie){ie.data?(f.default.success("\u6DFB\u52A0\u6210\u529F"),De.current.reload(),Be(!1)):f.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01")});case 1:case"end":return m.stop()}},i)}));return function(s){return r.apply(this,arguments)}}(),ee=[{title:"\u4E3B\u952E",dataIndex:"id",hideInTable:!0,hideInSearch:!0},{title:"\u914D\u65B9\u7F16\u7801",dataIndex:"code",hideInForm:!0,hideInSearch:!0},{title:"\u914D\u65B9\u540D\u79F0",dataIndex:"name",hideInForm:!0,hideInSearch:!0},{title:"\u6392\u5E8F",dataIndex:"sort",hideInForm:!0,hideInSearch:!0},{title:"\u914D\u65B9\u5206\u7C7B",dataIndex:"bomTypeList",search:!1,width:450,render:function(i,s){return(0,e.jsx)(Qt.Z,{children:ue.filter(function(x){var m=s.bomTypeList.find(function(ve){return ve===x.id}),ie=ue.find(function(ve){return ve.id===m});return ie!=null||void 0}).map(function(x){return(0,e.jsx)(Ht.Z,{color:"#87d068",children:x.name},x.id)})})}},{title:"\u914D\u65B9\u7C7B\u578B",dataIndex:"isMain",hideInForm:!0,valueEnum:{false:{text:"\u8F85\u6599\u914D\u65B9",status:"Processing"},true:{text:"\u4E3B\u6599\u914D\u65B9",status:"Success"}}},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(i,s){return[(0,e.jsx)("a",{type:"primary",onClick:function(){Be(!0),Ge(s),V.setFieldsValue(s)},children:"\u66F4\u65B0"},"primary3")]}}],L=[{title:"\u914D\u65B9\u540D\u79F0",dataIndex:"name",hideInForm:!0,hideInSearch:!0}],X=(0,a.useState)(0),Z=(0,u.Z)(X,2),I=Z[0],$=Z[1],te=(0,a.useState)(5),Q=(0,u.Z)(te,2),re=Q[0],ge=Q[1],ce=(0,a.useState)([]),le=(0,u.Z)(ce,2),H=le[0],pe=le[1],B=(0,a.useState)([]),M=(0,u.Z)(B,2),g=M[0],T=M[1],q=(0,a.useState)([]),fe=(0,u.Z)(q,2),ue=fe[0],J=fe[1],A=(0,a.useState)(!1),z=(0,u.Z)(A,2),ye=z[0],U=z[1],we=function(){var r=(0,K.Z)((0,c.Z)().mark(function i(){var s;return(0,c.Z)().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.next=2,j.GetBomTypePage({current:1,pagesize:1e3});case 2:s=m.sent,s.statusCode===200&&J(s.data.data);case 4:case"end":return m.stop()}},i)}));return function(){return r.apply(this,arguments)}}(),je=(0,a.useState)({id:""}),Te=(0,u.Z)(je,2),Ue=Te[0],Ge=Te[1],Ke=(0,a.useState)(!1),Pe=(0,u.Z)(Ke,2),be=Pe[0],Be=Pe[1],De=(0,a.useRef)(),Ne=(0,a.useState)(!1),_e=(0,u.Z)(Ne,2),oe=_e[0],ne=_e[1],b=(0,a.useState)(""),Ze=(0,u.Z)(b,2),ae=Ze[0],Se=Ze[1],Ce=(0,a.useState)([]),Ee=(0,u.Z)(Ce,2),Fe=Ee[0],ze=Ee[1],Ve=(0,a.useState)([]),Me=(0,u.Z)(Ve,2),Je=Me[0],Qe=Me[1],Le=[{title:"\u914D\u65B9\u540D\u79F0",dataIndex:"name",hideInForm:!0,hideInSearch:!0},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(i,s){return[(0,e.jsx)("a",{type:"primary",onClick:function(){t.onBomRelationGoods(s.goodsId,s,!1)},children:"\u79FB\u9664\u914D\u65B9"},"primary3")]}}],Oe=function(){var i=[];t.foodMenuConfig.forEach(function(s){var x=s.id;s.goodsConfig&&s.goodsConfig.forEach(function(m){m.foodMenuId=x;var ie=i.find(function(ve){return ve.id===m.id});ie||i.push(m)})}),ae||Se(i[0].id),ze(i)},F=function(){var i=Fe.find(function(s){return s.id===ae});i&&i.bomConfig?Qe(i.bomConfig):Qe([])},S=function(){if(H.length===0){Re.default.error({message:"\u914D\u65B9\u5173\u8054\u5546\u54C1\u51FA\u9519",description:"\u8BF7\u9009\u62E9\u914D\u65B9",placement:"topRight"});return}var i=Fe.find(function(s){return s.id===ae});i&&(H.forEach(function(s){s.foodMenuId=i.foodMenuId,s.goodsId=i.id}),t.onBomRelationGoods(i.id,H),T([]),pe([]))};return(0,a.useEffect)(function(){we()},[]),(0,a.useEffect)(function(){Oe()},[t.foodMenuConfig]),(0,a.useEffect)(function(){F()},[Fe,ae]),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(Ie.Z,{width:600,title:Ue.id?"\u7F16\u8F91\u914D\u65B9":"\u65B0\u589E\u914D\u65B9",visible:be,footer:!1,onCancel:function(){return Be(!1)},children:(0,e.jsxs)(n.Z,{labelCol:{span:4},layout:"horizontal",preserve:!1,onFinish:R,form:V,children:[(0,e.jsx)(n.Z.Item,{name:"id",hidden:!0,children:(0,e.jsx)(w.Z,{})}),(0,e.jsx)(n.Z.Item,{name:"code",label:"\u914D\u65B9\u7F16\u7801",rules:[{required:!0}],children:(0,e.jsx)(w.Z,{disabled:!0,placeholder:"\u914D\u65B9\u7F16\u7801"})}),(0,e.jsx)(n.Z.Item,{name:"name",label:"\u914D\u65B9\u540D\u79F0",rules:[{required:!0}],children:(0,e.jsx)(w.Z,{placeholder:"\u914D\u65B9\u540D\u79F0"})}),(0,e.jsxs)("div",{className:_().add_row_content,children:[(0,e.jsx)(n.Z.Item,{name:"bomTypeList",label:"\u914D\u65B9\u7C7B\u578B",rules:[{required:!0}],children:(0,e.jsx)(h.Z,{style:{width:"70%"},mode:"multiple",allowClear:!0,children:ue.map(function(r,i){return(0,e.jsx)(h.Z.Option,{index:r.id,value:r.id,children:r.name},r.id)})})}),(0,e.jsx)(O.Z,{type:"primary",className:_().add_row_btn,onClick:function(){return U(!0)},children:"\u6DFB\u52A0\u914D\u65B9\u7C7B\u578B"})]}),(0,e.jsx)(n.Z.Item,{name:"isMain",label:"\u914D\u65B9\u7C7B\u578B",children:(0,e.jsx)(Bt.Z,{checkedChildren:"\u4E3B\u6599",unCheckedChildren:"\u8F85\u6599"})}),(0,e.jsx)(n.Z.Item,{name:"sort",label:"\u6392\u5E8F",rules:[{required:!0}],children:(0,e.jsx)(nt.Z,{placeholder:"\u6392\u5E8F",min:1})}),(0,e.jsx)(n.Z.Item,{children:(0,e.jsx)(O.Z,{type:"primary",htmlType:"submit",children:"\u786E\u5B9A"})})]})}),(0,e.jsx)(Ie.Z,{title:"\u65B0\u5EFA\u914D\u65B9\u7C7B\u578B",width:640,bodyStyle:{padding:"32px 40px 48px"},visible:ye,footer:null,onCancel:function(){U(!1)},destroyOnClose:!0,maskClosable:!1,children:(0,e.jsxs)(n.Z,{layout:"vertical",preserve:!1,initialValues:t==null?void 0:t.values,onFinish:function(){var r=(0,K.Z)((0,c.Z)().mark(function i(s){var x;return(0,c.Z)().wrap(function(ie){for(;;)switch(ie.prev=ie.next){case 0:return ie.next=2,j.CreateBomType(s);case 2:x=ie.sent,x.data?(f.default.success("\u914D\u65B9\u7C7B\u522B\u6DFB\u52A0\u6210\u529F"),U(!1),we()):f.default.error(x.errors||"\u914D\u65B9\u7C7B\u522B\u6DFB\u52A0\u5931\u8D25");case 4:case"end":return ie.stop()}},i)}));return function(i){return r.apply(this,arguments)}}(),children:[(0,e.jsx)(n.Z.Item,{name:"id",hidden:!0,children:(0,e.jsx)(w.Z,{})}),(0,e.jsx)(n.Z.Item,{name:"name",label:"\u914D\u65B9\u7C7B\u578B\u540D\u79F0",rules:[{required:!0,max:64,whitespace:!0}],children:(0,e.jsx)(w.Z,{placeholder:"\u8BF7\u8F93\u5165\u914D\u65B9\u7C7B\u578B\u540D\u79F0"})}),(0,e.jsx)(n.Z.Item,{name:"pertain",label:"\u5F52\u5C5E",defaultValue:t==null||(xe=t.values)===null||xe===void 0?void 0:xe.pertain,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7C7B\u578B\u5F52\u5C5E"}],children:(0,e.jsxs)(h.Z,{placeholder:"\u8BF7\u9009\u62E9\u7C7B\u578B\u5F52\u5C5E",children:[(0,e.jsx)(Option,{value:"1",children:"\u65E0"}),(0,e.jsx)(Option,{value:"2",children:"TMC "})]})}),(0,e.jsx)(n.Z.Item,{name:"status",label:"\u72B6\u6001",defaultValue:t==null||(se=t.values)===null||se===void 0?void 0:se.status,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u72B6\u6001"}],children:(0,e.jsxs)(h.Z,{placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001",children:[(0,e.jsx)(Option,{value:"0",children:"\u6B63\u5E38"}),(0,e.jsx)(Option,{value:"1",children:"\u505C\u7528"})]})}),(0,e.jsx)(n.Z.Item,{children:(0,e.jsx)(O.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})}),(0,e.jsx)(qe.ZP,{actionRef:De,style:{width:"100%"},headerTitle:"\u914D\u65B9\u5217\u8868",rowKey:"id",pagination:{current:I,pageSize:re,onChange:function(i,s){$(i),ge(s)}},search:!1,request:function(){var r=(0,K.Z)((0,c.Z)().mark(function i(s){var x,m;return(0,c.Z)().wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:return x=[],m=0,ve.next=4,j.GetBomPage(s).then(function(ke){x=ke.data.data,m=ke.data.total});case 4:return ve.abrupt("return",{data:x,success:!0,total:m});case 5:case"end":return ve.stop()}},i)}));return function(i){return r.apply(this,arguments)}}(),columns:ee,toolBarRender:function(){return[(0,e.jsx)(O.Z,{icon:(0,e.jsx)(et.Z,{}),type:"primary",onClick:function(){V.resetFields();var s=V.getFieldsValue();s.code=(0,Xe.x0)().substring(0,20),V.setFieldsValue(s),Ge({id:""}),Be(!0)},children:"\u65B0\u5EFA"},"button"),(0,e.jsx)(O.Z,{type:"primary",onClick:function(){ne(!0)},children:"\u5173\u8054\u5546\u54C1"},"button")]}}),(0,e.jsxs)(mt.Z,{width:800,title:"\u914D\u65B9\u5173\u8054\u5546\u54C1",placement:"right",onClose:function(){return ne(!1)},visible:oe,children:[(0,e.jsxs)("div",{style:{display:"flex",alignItems:"center",marginBottom:"10px"},children:[(0,e.jsx)("div",{className:_().current_selected_obj,children:"\u5F53\u524D\u5546\u54C1\uFF1A"}),(0,e.jsx)(h.Z,{className:_().current_selected_cmp,onChange:function(i){Se(i)},placeholder:"\u8BF7\u9009\u62E9\u5546\u54C1",value:ae,size:"large",children:Fe.map(function(r){return(0,e.jsx)(Option,{value:r.id,children:r.name},r.id)})})]}),(0,e.jsxs)("div",{className:_().add_to_some_box,children:[(0,e.jsx)(qe.ZP,{actionRef:De,className:_().wait_add_list,headerTitle:"\u914D\u65B9\u5217\u8868",rowKey:"id",pagination:{current:I,pageSize:re,onChange:function(i,s){$(i),ge(s)}},search:!1,request:function(){var r=(0,K.Z)((0,c.Z)().mark(function i(s){var x,m;return(0,c.Z)().wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:return x=[],m=0,ve.next=4,j.GetBomPage(s).then(function(ke){x=ke.data.data,m=ke.data.total});case 4:return ve.abrupt("return",{data:x,success:!0,total:m});case 5:case"end":return ve.stop()}},i)}));return function(i){return r.apply(this,arguments)}}(),columns:L,rowSelection:{type:"checkbox",onSelect:function(i,s){var x=JSON.parse(JSON.stringify(H)),m=JSON.parse(JSON.stringify(g)),ie=x.findIndex(function(ke){return ke.id===i.id}),ve=m.findIndex(function(ke){return ke===i.id});s?(ie<0&&x.push(i),ve<0&&m.push(i.id)):(ie>-1&&x.splice(ie,1),ve>-1&&m.splice(ve,1)),pe(x),T(m)},onChange:function(i,s){i.length===0&&T([]),s.length===0&&pe([])},selectedRowKeys:g}}),(0,e.jsx)(pt.Z,{className:_().success_add_list,rowKey:"id",columns:Le,dataSource:Je})]}),(0,e.jsx)(O.Z,{className:_().sure_add_btn,type:"primary",onClick:S,children:"\u786E\u5B9A\u5173\u8054"})]})]})},Xt=qt,_n=d(13062),en=d(71230),Ln=d(89032),$e=d(15746),tn=d(952),lt=d(5966),rt=d(64317),vt=d(31199),nn=h.Z.Option,It=h.Z.OptGroup,We={name:"\u7269\u6599\u540D\u79F0",stockUint:"\u5E93\u5B58\u5355\u4F4D",specs:"\u7269\u6599\u89C4\u683C",code:"\u7269\u6599\u7F16\u7801",aittribute:"\u7269\u6599\u5C5E\u6027",typeID:"\u7269\u6599\u7C7B\u522B",status:"\u7269\u6599\u72B6\u6001",price:"\u6210\u672C\u4EF7",netrecovery:"\u51C0\u6599\u7387(%)",OutstockUint:"\u51FA\u5E93\u5355\u4F4D",proportion:"\u6362\u7B97\u6BD4\u4F8B(%)"},an=function(t){var xe=n.Z.useForm(),se=(0,u.Z)(xe,1),Y=se[0],me=(0,a.useState)(1),V=(0,u.Z)(me,2),R=V[0],ee=V[1],L=(0,a.useState)(10),X=(0,u.Z)(L,2),Z=X[0],I=X[1],$=(0,a.useState)([]),te=(0,u.Z)($,2),Q=te[0],re=te[1],ge=(0,a.useState)([]),ce=(0,u.Z)(ge,2),le=ce[0],H=ce[1],pe=(0,a.useRef)(),B=function(){var G=(0,K.Z)((0,c.Z)().mark(function p(v){return(0,c.Z)().wrap(function(N){for(;;)switch(N.prev=N.next){case 0:v.id?j.UpdateMaterial(v).then(function(P){P.data?(f.default.success("\u4FEE\u6539\u6210\u529F"),ae(!1),pe.current.reload()):f.default.error("\u4FEE\u6539\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01")}):j.AddMaterial(v).then(function(P){P.data?(f.default.success("\u6DFB\u52A0\u6210\u529F"),ae(!1),pe.current.reload()):f.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01")});case 1:case"end":return N.stop()}},p)}));return function(v){return G.apply(this,arguments)}}(),M=[{title:"\u7269\u6599\u540D\u79F0",dataIndex:"name",ellipsis:!0,formItemProps:{rules:[{required:!0,message:"\u540D\u79F0\u4E3A\u5FC5\u586B\u9879"}]}},{title:"\u7269\u6599\u5C5E\u6027",dataIndex:"aittribute",valueEnum:{0:{text:"\u6210\u54C1"},1:{text:"\u534A\u6210\u54C1"},2:{text:"\u6613\u8017\u54C1"}}},{title:"\u72B6\u6001",dataIndex:"status",hideInForm:!0,valueEnum:{0:{text:"\u6B63\u5E38",status:"Processing"},1:{text:"\u505C\u7528",status:"Success"}}},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(p,v){return[(0,e.jsx)("a",{type:"primary",onClick:function(){ae(!0),oe(v),Y.setFieldsValue(v)},children:"\u66F4\u65B0"},"primary3")]}}],g=[{title:"\u7269\u6599\u540D\u79F0",dataIndex:"name",ellipsis:!0,formItemProps:{rules:[{required:!0,message:"\u540D\u79F0\u4E3A\u5FC5\u586B\u9879"}]}}],T=(0,a.useState)([]),q=(0,u.Z)(T,2),fe=q[0],ue=q[1],J=(0,a.useState)([]),A=(0,u.Z)(J,2),z=A[0],ye=A[1],U=function(){var G=(0,K.Z)((0,c.Z)().mark(function p(){var v;return(0,c.Z)().wrap(function(N){for(;;)switch(N.prev=N.next){case 0:return N.next=2,j.GetMaterialTypeList();case 2:v=N.sent,v.statusCode===200?(v.data.forEach(function(P){P.value=P.id,P.label=P.name}),ue(v.data)):f.default.error(v.errors||"\u83B7\u53D6\u7269\u6599\u7C7B\u522B\u51FA\u9519");case 4:case"end":return N.stop()}},p)}));return function(){return G.apply(this,arguments)}}(),we=function(){var G=(0,K.Z)((0,c.Z)().mark(function p(){var v;return(0,c.Z)().wrap(function(N){for(;;)switch(N.prev=N.next){case 0:return N.next=2,j.GetMaterialUintList();case 2:v=N.sent,v.statusCode===200?(v.data.forEach(function(P){P.value=P.id,P.label=P.name}),ye(v.data)):f.default.error(v.errors||"\u83B7\u53D6\u7269\u6599\u7C7B\u522B\u51FA\u9519");case 4:case"end":return N.stop()}},p)}));return function(){return G.apply(this,arguments)}}(),je=(0,a.useState)(!1),Te=(0,u.Z)(je,2),Ue=Te[0],Ge=Te[1],Ke=(0,a.useState)(!1),Pe=(0,u.Z)(Ke,2),be=Pe[0],Be=Pe[1],De=(0,a.useState)({id:""}),Ne=(0,u.Z)(De,2),_e=Ne[0],oe=Ne[1],ne=(0,a.useState)(!1),b=(0,u.Z)(ne,2),Ze=b[0],ae=b[1],Se=(0,a.useState)(!1),Ce=(0,u.Z)(Se,2),Ee=Ce[0],Fe=Ce[1],ze=(0,a.useState)(""),Ve=(0,u.Z)(ze,2),Me=Ve[0],Je=Ve[1],Qe=(0,a.useState)([]),Le=(0,u.Z)(Qe,2),Oe=Le[0],F=Le[1],S=(0,a.useState)([]),r=(0,u.Z)(S,2),i=r[0],s=r[1],x=[{title:"\u7269\u6599\u540D\u79F0",dataIndex:"name",ellipsis:!0,formItemProps:{rules:[{required:!0,message:"\u540D\u79F0\u4E3A\u5FC5\u586B\u9879"}]}},{title:"\u7269\u6599\u6570\u91CF",dataIndex:"BomQty",width:50},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(p,v){return[(0,e.jsx)("a",{type:"primary",onClick:function(){var N=Oe.find(function(P){return P.id===Me});N&&t.onMaterialRelationBom(N.id,v,!1)},children:"\u79FB\u9664\u7269\u6599"},"primary3"),(0,e.jsx)("a",{type:"primary",style:{marginLeft:"10px"},onClick:function(){it.setFieldsValue(v),ut(!0)},children:"\u8BBE\u7F6E\u6570\u91CF"},"primary3")]}}],m=function(){var p,v=[];if((p=t.foodMenuConfig)===null||p===void 0||p.forEach(function(N){var P;(P=N.goodsConfig)===null||P===void 0||P.forEach(function(l){var o;(o=l.bomConfig)===null||o===void 0||o.forEach(function(C){var D=v.find(function(E){return E.id===C.id});D||(C.goodsId=l.id,v.push(C))})})}),!Me){var W;Je((W=v[0])===null||W===void 0?void 0:W.id)}F(v)},ie=function(){if(Q.length===0){Re.default.error({message:"\u914D\u65B9\u5173\u8054\u5546\u54C1\u51FA\u9519",description:"\u8BF7\u9009\u62E9\u914D\u65B9",placement:"topRight"});return}var p=Oe.find(function(W){return W.id===Me});if(p){var v=JSON.parse(JSON.stringify(Q));v.forEach(function(W){W.BomQty=0}),t.onMaterialRelationBom(p.id,v),H([]),re([])}},ve=function(){var p=Oe.find(function(v){return v.id===Me});p&&p.materialConfig?s(p.materialConfig):s([])},ke=(0,a.useState)(!1),dt=(0,u.Z)(ke,2),ct=dt[0],ut=dt[1],ft=n.Z.useForm(),gt=(0,u.Z)(ft,1),it=gt[0];return(0,a.useEffect)(function(){U(),we()},[]),(0,a.useEffect)(function(){m()},[t.foodMenuConfig]),(0,a.useEffect)(function(){ve()},[Oe,Me]),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(Ie.Z,{width:800,title:_e.id?"\u7F16\u8F91\u7269\u6599":"\u65B0\u589E\u7269\u6599",visible:Ze,footer:!1,onCancel:function(){return ae(!1)},children:(0,e.jsxs)(tn.ZP,{form:Y,labelCol:{span:6},layout:"horizontal",hideRequiredMark:!0,initialValues:t.materialConfig,onFinish:B,submitter:!1,children:[(0,e.jsxs)(en.Z,{gutter:16,children:[(0,e.jsx)($e.Z,{lg:12,md:12,sm:24,children:(0,e.jsx)(lt.Z,{label:We.code,name:"code",rules:[{required:!0,max:50}],placeholder:"\u8BF7\u8F93\u5165\u539F\u6599\u7F16\u7801"})}),(0,e.jsxs)($e.Z,{lg:12,md:12,sm:24,children:[(0,e.jsx)(lt.Z,{name:"id",hidden:!0}),(0,e.jsx)(lt.Z,{label:We.name,name:"name",rules:[{required:!0,max:50}],placeholder:"\u8BF7\u8F93\u5165\u539F\u6599\u540D\u79F0"})]}),(0,e.jsx)($e.Z,{lg:12,md:12,sm:24,children:(0,e.jsx)(lt.Z,{label:We.specs,name:"specs",rules:[{required:!0,max:500}],placeholder:"\u8BF7\u8F93\u5165\u89C4\u683C\u578B\u53F7"})}),(0,e.jsx)($e.Z,{lg:12,md:12,sm:24,children:(0,e.jsx)(rt.Z,{label:We.aittribute,name:"aittribute",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7269\u6599\u5C5E\u6027"}],options:[{value:"0",label:"\u6210\u54C1"},{value:"1",label:"\u534A\u6210\u54C1"},{value:"2",label:"\u6613\u8017\u54C1"}],placeholder:"\u8BF7\u9009\u62E9\u7269\u6599\u5C5E\u6027"})}),(0,e.jsx)($e.Z,{lg:12,md:12,sm:24,children:(0,e.jsx)(vt.Z,{label:We.price,name:"price",placeholder:"\u8BF7\u8F93\u5165\u6210\u672C\u4EF7",min:1})}),(0,e.jsx)($e.Z,{lg:12,md:12,sm:24,children:(0,e.jsx)(vt.Z,{label:We.netrecovery,name:"netrecovery",min:1,max:100,placeholder:"\u8BF7\u8F93\u5165\u51C0\u6599\u7387"})}),(0,e.jsx)($e.Z,{lg:12,md:12,sm:24,children:(0,e.jsxs)("div",{className:_().add_row_content,children:[(0,e.jsx)(rt.Z,{style:{width:"65%"},label:We.typeID,name:"typeID",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7269\u6599\u7C7B\u522B"}],options:fe,placeholder:"\u8BF7\u9009\u62E9\u7269\u6599\u7C7B\u522B"}),(0,e.jsx)(O.Z,{onClick:function(){return Ge(!0)},type:"primary",className:_().add_row_btn,children:"\u6DFB\u52A0\u7C7B\u522B"})]})}),(0,e.jsx)($e.Z,{lg:12,md:12,sm:24,children:(0,e.jsxs)("div",{className:_().add_row_content,children:[(0,e.jsx)(rt.Z,{style:{width:"65%"},label:We.stockUint,name:"stockUint",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5355\u4F4D"}],options:z,placeholder:"\u8BF7\u9009\u62E9\u5355\u4F4D"}),(0,e.jsx)(O.Z,{onClick:function(){return Be(!0)},type:"primary",className:_().add_row_btn,children:"\u6DFB\u52A0\u5355\u4F4D"})]})}),(0,e.jsx)($e.Z,{lg:12,md:12,sm:24,children:(0,e.jsxs)("div",{className:_().add_row_content,children:[(0,e.jsx)(rt.Z,{style:{width:"65%"},label:We.OutstockUint,name:"outstockUint",options:z,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u51FA\u5E93\u5355\u4F4D"}],placeholder:"\u8BF7\u9009\u62E9\u51FA\u5E93\u5355\u4F4D"}),(0,e.jsx)(O.Z,{onClick:function(){return Be(!0)},type:"primary",className:_().add_row_btn,children:"\u6DFB\u52A0\u5355\u4F4D"})]})}),(0,e.jsx)($e.Z,{lg:12,md:12,sm:24,children:(0,e.jsx)(vt.Z,{label:We.proportion,name:"proportion",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u51FA\u5165\u5E93\u6362\u7B97\u6BD4\u4F8B"}],placeholder:"\u8BF7\u8F93\u5165\u6362\u7B97\u6BD4\u4F8B"})}),(0,e.jsx)($e.Z,{lg:12,md:12,sm:24,children:(0,e.jsx)(rt.Z,{label:We.status,name:"status",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u72B6\u6001"}],options:[{value:"0",label:"\u6B63\u5E38"},{value:"1",label:"\u505C\u7528"}],placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001"})})]}),(0,e.jsx)(n.Z.Item,{children:(0,e.jsx)(O.Z,{type:"primary",htmlType:"submit",children:"\u786E\u5B9A"})})]})}),(0,e.jsx)(qe.ZP,{actionRef:pe,headerTitle:"\u7269\u6599\u5217\u8868",rowKey:"id",search:{labelWidth:120},pagination:{current:R,pageSize:Z,onChange:function(p,v){ee(p),I(v)}},request:function(){var G=(0,K.Z)((0,c.Z)().mark(function p(v){var W,N;return(0,c.Z)().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return W=[],N=0,l.next=4,j.GetMaterialPage(v).then(function(o){W=o.data.data,N=o.data.total});case 4:return l.abrupt("return",{data:W,success:!0,total:N});case 5:case"end":return l.stop()}},p)}));return function(p){return G.apply(this,arguments)}}(),columns:M,toolBarRender:function(){return[(0,e.jsx)(O.Z,{icon:(0,e.jsx)(et.Z,{}),type:"primary",onClick:function(){Y.resetFields(),oe({id:""}),ae(!0)},children:"\u65B0\u5EFA"},"button"),(0,e.jsx)(O.Z,{type:"primary",onClick:function(){Fe(!0)},children:"\u5173\u8054\u914D\u65B9"},"button")]}}),(0,e.jsx)(Ie.Z,{title:"\u6DFB\u52A0\u7269\u6599\u5355\u4F4D",width:640,visible:be,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){Be(!1)},destroyOnClose:!0,maskClosable:!1,children:(0,e.jsxs)(n.Z,{layout:"vertical",preserve:!1,onFinish:function(){var G=(0,K.Z)((0,c.Z)().mark(function p(v){var W;return(0,c.Z)().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return P.next=2,j.AddMaterialUnit(v);case 2:W=P.sent,W.data?(f.default.success("\u6DFB\u52A0\u6210\u529F"),Be(!1),we()):f.default.error(W.errors||"\u7269\u6599\u5355\u4F4D\u6DFB\u52A0\u5931\u8D25");case 4:case"end":return P.stop()}},p)}));return function(p){return G.apply(this,arguments)}}(),children:[(0,e.jsx)(n.Z.Item,{name:"id",hidden:!0,children:(0,e.jsx)(w.Z,{})}),(0,e.jsx)(n.Z.Item,{name:"name",label:"\u7269\u6599\u5355\u4F4D\u540D\u79F0",rules:[{required:!0,max:64}],children:(0,e.jsx)(w.Z,{placeholder:"\u7269\u6599\u5355\u4F4D\u540D\u79F0"})}),(0,e.jsx)(n.Z.Item,{name:"status",label:"\u72B6\u6001",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u72B6\u6001"}],children:(0,e.jsx)(h.Z,{placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001",children:(0,e.jsxs)(It,{children:[(0,e.jsx)(h.Z.Option,{value:"0",children:"\u6B63\u5E38"}),(0,e.jsx)(h.Z.Option,{value:"1",children:"\u505C\u7528"})]})})}),(0,e.jsx)(n.Z.Item,{children:(0,e.jsx)(O.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})}),(0,e.jsx)(Ie.Z,{title:"\u6DFB\u52A0\u7269\u6599\u5206\u7C7B",width:640,visible:Ue,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){Ge(!1)},destroyOnClose:!0,maskClosable:!1,children:(0,e.jsxs)(n.Z,{layout:"vertical",preserve:!1,onFinish:function(){var G=(0,K.Z)((0,c.Z)().mark(function p(v){var W;return(0,c.Z)().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return P.next=2,j.AddMaterialType(v);case 2:W=P.sent,W.data?(f.default.success("\u6DFB\u52A0\u6210\u529F"),Ge(!1),U()):f.default.error(W.errors||"\u7269\u6599\u5206\u7C7B\u6DFB\u52A0\u5931\u8D25");case 4:case"end":return P.stop()}},p)}));return function(p){return G.apply(this,arguments)}}(),children:[(0,e.jsx)(n.Z.Item,{name:"id",hidden:!0,children:(0,e.jsx)(w.Z,{})}),(0,e.jsx)(n.Z.Item,{name:"name",label:"\u7269\u6599\u5206\u7C7B\u540D\u79F0",rules:[{required:!0,max:64,whitespace:!0}],children:(0,e.jsx)(w.Z,{placeholder:"\u8BF7\u8F93\u5165\u7269\u7269\u6599\u5206\u7C7B\u79F0"})}),(0,e.jsx)(n.Z.Item,{name:"status",label:"\u72B6\u6001",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7269\u6599\u5206\u7C7B\u72B6\u6001"}],children:(0,e.jsx)(h.Z,{placeholder:"\u8BF7\u9009\u62E9\u7269\u6599\u5206\u7C7B\u72B6\u6001",children:(0,e.jsxs)(It,{children:[(0,e.jsx)(h.Z.Option,{value:"0",children:"\u6B63\u5E38"}),(0,e.jsx)(h.Z.Option,{value:"1",children:"\u505C\u7528"})]})})}),(0,e.jsx)(n.Z.Item,{children:(0,e.jsx)(O.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})}),(0,e.jsxs)(mt.Z,{width:900,title:"\u7269\u6599\u5173\u8054\u914D\u65B9",placement:"right",onClose:function(){return Fe(!1)},visible:Ee,children:[(0,e.jsxs)("div",{style:{display:"flex",alignItems:"center",marginBottom:"10px"},children:[(0,e.jsx)("div",{className:_().current_selected_obj,children:"\u5F53\u524D\u914D\u65B9\uFF1A"}),(0,e.jsx)(h.Z,{className:_().current_selected_cmp,onChange:function(p){console.log("setCurrentSelectedBom",p),Je(p)},placeholder:"\u8BF7\u9009\u62E9\u914D\u65B9",value:Me,size:"large",children:Oe.map(function(G){return(0,e.jsx)(nn,{value:G.id,children:G.name},G.id)})})]}),(0,e.jsxs)("div",{className:_().add_to_some_box,children:[(0,e.jsx)(qe.ZP,{className:_().wait_add_list,actionRef:pe,headerTitle:"\u7269\u6599\u5217\u8868",rowKey:"id",search:!1,pagination:{current:R,pageSize:Z,onChange:function(p,v){ee(p),I(v)}},request:function(){var G=(0,K.Z)((0,c.Z)().mark(function p(v){var W,N;return(0,c.Z)().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return W=[],N=0,l.next=4,j.GetMaterialPage(v).then(function(o){W=o.data.data,N=o.data.total});case 4:return l.abrupt("return",{data:W,success:!0,total:N});case 5:case"end":return l.stop()}},p)}));return function(p){return G.apply(this,arguments)}}(),columns:g,rowSelection:{type:"checkbox",onSelect:function(p,v){var W=JSON.parse(JSON.stringify(Q)),N=JSON.parse(JSON.stringify(le)),P=W.findIndex(function(o){return o.id===p.id}),l=N.findIndex(function(o){return o===p.id});v?(P<0&&W.push(p),l<0&&N.push(p.id)):(P>-1&&W.splice(P,1),l>-1&&N.splice(l,1)),re(W),H(N)},onChange:function(p,v){p.length===0&&H([]),v.length===0&&re([])},selectedRowKeys:le}}),(0,e.jsx)(pt.Z,{className:_().success_add_list,rowKey:"id",columns:x,dataSource:i})]}),(0,e.jsx)(O.Z,{className:_().sure_add_btn,type:"primary",onClick:ie,children:"\u786E\u5B9A\u5173\u8054"})]}),(0,e.jsx)(Ie.Z,{title:"\u8BBE\u7F6E\u7269\u6599\u6570\u91CF",visible:ct,footer:null,onCancel:function(){return ut(!1)},children:(0,e.jsxs)(n.Z,{form:it,name:"basic",labelCol:{span:8},wrapperCol:{span:16},initialValues:{remember:!0},onFinish:function(p){t.onUpdateMaterial(Me,p),ut(!1)},autoComplete:"off",children:[(0,e.jsx)(n.Z.Item,{name:"id",hidden:!0,children:(0,e.jsx)(w.Z,{})}),(0,e.jsx)(n.Z.Item,{label:"\u7269\u6599\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u7269\u6599\u540D\u79F0"}],children:(0,e.jsx)(w.Z,{disabled:!0})}),(0,e.jsx)(n.Z.Item,{label:"\u7269\u6599\u6570\u91CF",name:"BomQty",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u7269\u6599\u6570\u91CF"}],children:(0,e.jsx)(w.Z,{})}),(0,e.jsx)(n.Z.Item,{wrapperCol:{offset:8,span:16},children:(0,e.jsx)(O.Z,{type:"primary",htmlType:"submit",children:"\u786E\u5B9A"})})]})})]})},rn=an,$n=d(73935),un=d(75009),sn=function(t){var xe=(0,a.useState)({id:t.storeConfig.id,value:{name:t.storeConfig.name},children:[{id:t.deviceConfig.id,value:{name:t.deviceConfig.deviceName},children:[]}]}),se=(0,u.Z)(xe,2),Y=se[0],me=se[1],V=function(){var ee=JSON.parse(JSON.stringify(Y));t.foodMenuConfig.forEach(function(L,X){ee.children[0].children[X]={id:(0,Xe.x0)(),value:{name:L.name},children:[]},L==null||L.goodsConfig.forEach(function(Z,I){ee.children[0].children[X].children[I]={id:(0,Xe.x0)(),value:{name:Z.name},children:[]},Z==null||Z.bomConfig.forEach(function($,te){ee.children[0].children[X].children[I].children[te]={id:(0,Xe.x0)(),value:{name:$.name},children:[]},$==null||$.materialConfig.forEach(function(Q,re){ee.children[0].children[X].children[I].children[te].children[re]={id:(0,Xe.x0)(),value:{name:Q.name}}})})})}),me(ee)};return(0,a.useEffect)(function(){V()},[]),(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(un.Z,{style:{width:"100%",height:"auto"},data:Y,behaviors:["drag-canvas","zoom-canvas"],nodeCfg:{autoWidth:!0}})})},on=sn,ln=d(54970),dn=d.n(ln),cn=function(t){var xe=function(){var me,V,R;switch(t.current){case 0:(me=t.storeConfig)!==null&&me!==void 0&&me.id?t.next():Re.default.error({message:"\u95E8\u5E97\u914D\u7F6E\u51FA\u9519",description:"\u8BF7\u9009\u62E9\u95E8\u5E97\uFF01",placement:"topRight"});break;case 1:(V=t.deviceConfig)!==null&&V!==void 0&&V.id?t.next():Re.default.error({message:"\u8BBE\u5907\u914D\u7F6E\u51FA\u9519",description:"\u8BF7\u9009\u62E9\u8BBE\u5907\uFF01",placement:"topRight"});break;case 2:((R=t.foodMenuConfig)===null||R===void 0?void 0:R.length)>0?t.next():Re.default.error({message:"\u83DC\u8C31\u914D\u7F6E\u51FA\u9519",description:"\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u83DC\u8C31\uFF01",placement:"topRight"});break;case 3:for(var ee=0;ee0&&(0,e.jsxs)(O.Z,{style:{margin:"0 8px"},onClick:t.prev,children:["\u4E0A\u4E00\u6B65\uFF1A",t.steps[t.current-1]]}),t.current2&&arguments[2]!==void 0?arguments[2]:!0,q=JSON.parse(JSON.stringify(Z)),fe=q.foodMenuConfig.find(function(J){return J.id===M});if(T&&fe)fe.goodsConfig=g;else{var ue=fe.goodsConfig.findIndex(function(J){return J.id===g.id});ue>-1&&fe.goodsConfig.splice(ue,1)}I(q)},Q=function(M,g){var T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,q=JSON.parse(JSON.stringify(Z));q.foodMenuConfig.forEach(function(fe){var ue=fe.goodsConfig.find(function(A){return A.id===M});if(ue){if(T)ue.bomConfig=g;else{var J=ue.bomConfig.findIndex(function(A){return A.id===g.id});J>-1&&ue.bomConfig.splice(J,1)}I(q)}})},re=function(M,g){var T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,q=JSON.parse(JSON.stringify(Z));q.foodMenuConfig.forEach(function(fe){fe.goodsConfig.forEach(function(ue){var J=ue.bomConfig.find(function(z){return z.id===M});if(J){if(T)J.materialConfig=g;else{var A=J.materialConfig.findIndex(function(z){return z.id===g.id});A>-1&&J.materialConfig.splice(A,1)}I(q)}})})},ge=function(M,g){var T=JSON.parse(JSON.stringify(Z));T.foodMenuConfig.forEach(function(q){q.goodsConfig.forEach(function(fe){var ue=fe.bomConfig.find(function(A){return A.id===M});if(ue){var J=ue.materialConfig.find(function(A){return A.id===g.id});J&&(J.BomQty=Number.parseFloat(g.BomQty)||0,I(T))}})})},ce=function(){ee(R+1)},le=function(){ee(R-1)},H=["\u95E8\u5E97\u914D\u7F6E","\u8BBE\u5907\u914D\u7F6E","\u83DC\u8C31\u914D\u7F6E","\u5546\u54C1\u914D\u7F6E","\u914D\u65B9\u914D\u7F6E","\u7269\u6599\u914D\u7F6E","\u786E\u8BA4\u914D\u7F6E"],pe=[(0,e.jsx)(Rt,{storeConfig:Z.storeConfig,current:R,steps:H,next:ce,onSelectedChange:$}),(0,e.jsx)(_t,{storeConfig:Z.storeConfig,deviceConfig:Z.deviceConfig,current:R,steps:H,prev:le,next:ce,onSelectedChange:$}),(0,e.jsx)($t,{foodMenuConfig:Z.foodMenuConfig,current:R,steps:H,prev:le,next:ce,onSelectedChange:$}),(0,e.jsx)(Jt,{deviceConfig:Z.deviceConfig,foodMenuConfig:Z.foodMenuConfig,current:R,steps:H,onAddGoodsToFoodMenu:te,prev:le,next:ce}),(0,e.jsx)(Xt,{foodMenuConfig:Z.foodMenuConfig,current:R,steps:H,prev:le,next:ce,onBomRelationGoods:Q}),(0,e.jsx)(rn,{foodMenuConfig:Z.foodMenuConfig,current:R,steps:H,onMaterialRelationBom:re,onUpdateMaterial:ge,prev:le,next:ce}),(0,e.jsx)(on,(0,Ae.Z)((0,Ae.Z)({},Z),{},{current:R,steps:H,prev:le}))];return(0,a.useEffect)(function(){console.log("\u5BF9\u8C61\u66F4\u65B0",Z)},[Z]),(0,e.jsxs)(Mt.ZP,{children:[(0,e.jsx)("div",{className:_().steps_navbar,children:(0,e.jsx)(ot.Z,{children:(0,e.jsx)(Ct.Z,{current:R,children:H.map(function(B){return(0,e.jsx)(hn,{title:B},B)})})})}),se?(0,e.jsx)(ot.Z,{children:(0,e.jsx)(Dt.ZP,{status:"success",title:"\u6210\u529F\u914D\u7F6E\u6240\u6709\u4FE1\u606F\uFF01",subTitle:"\u6B22\u8FCE\u518D\u6B21\u4F7F\u7528\uFF01",extra:[(0,e.jsx)(O.Z,{type:"primary",onClick:function(){I({storeConfig:{},deviceConfig:{},foodMenuConfig:[]}),ee(0),Y(!1)},children:"\u5FEB\u901F\u5F00\u59CB"},"console")]})}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(ot.Z,{children:(0,e.jsx)("div",{className:_().steps_content,children:pe[R]})}),(0,e.jsx)("div",{className:_().steps_navbar_bottom,children:(0,e.jsx)(ot.Z,{children:(0,e.jsx)(fn,(0,Ae.Z)((0,Ae.Z)({},Z),{},{current:R,steps:H,prev:le,next:ce,success:function(){return Y(!0)}}))})})]})]})},pn=mn}}]); diff --git a/dist/p__split__account.306db08c.async.js b/dist/p__split__account.7df24ef1.async.js similarity index 89% rename from dist/p__split__account.306db08c.async.js rename to dist/p__split__account.7df24ef1.async.js index a20a075..bf4b0c3 100644 --- a/dist/p__split__account.306db08c.async.js +++ b/dist/p__split__account.7df24ef1.async.js @@ -1 +1 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[7633],{91884:function(xe,Q,t){"use strict";t.r(Q),t.d(Q,{default:function(){return Ge}});var b=t(57338),M=t(273),G=t(62350),_=t(24565),i=t(39428),x=t(3182),X=t(57663),N=t(71577),o=t(11849),ce=t(47673),D=t(4107),y=t(93224),T=t(34792),v=t(48086),r=t(2824),de=t(49101),j=t(67294),je=t(78009),Se=t(85224),De=t(16894),Ae=t(12826),nt=t(71194),Fe=t(50146),rt=t(49111),Ce=t(19650),at=t(77883),Ee=t(85986),ut=t(88983),ee=t(47933),st=t(62999),Ie=t(54680),lt=t(9715),p=t(55843),it=t(43358),E=t(34041),Be=t(59465),e=t(85893),Pe=["key","name","fieldKey"],be=function(l){var A=E.Z.Option,n=E.Z.OptGroup;return(0,e.jsx)(Fe.Z,{title:l.values.id?"\u7F16\u8F91":"\u65B0\u5EFA",width:1400,visible:l.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){l.onCancel()},destroyOnClose:!0,maskClosable:!1,children:(0,e.jsxs)(p.Z,{layout:"vertical",preserve:!1,initialValues:l.values,onFinish:l.onFinish,children:[(0,e.jsx)(p.Z.Item,{name:"id",hidden:!0,children:(0,e.jsx)(D.Z,{})}),(0,e.jsx)(p.Z.Item,{name:"storeId",label:"\u9009\u62E9\u5E97\u94FA",rules:[{required:!0}],children:(0,e.jsx)(Ie.Z,{style:{width:"100%"},dropdownStyle:{maxHeight:400,overflow:"auto"},treeData:l.OrgData,placeholder:"\u5F52\u5C5E\u95E8\u5E97",treeDefaultExpandAll:!0})}),(0,e.jsx)(p.Z.Item,{label:"\u5206\u8D26\u8D26\u6237",children:(0,e.jsx)(p.Z.List,{name:"businessList",children:function(U,V){var ie=V.add,oe=V.remove;return(0,e.jsxs)(e.Fragment,{children:[U.map(function($){var R=$.key,F=$.name,I=$.fieldKey,B=(0,y.Z)($,Pe);return(0,e.jsxs)(Ce.Z,{style:{display:"flex",marginBottom:8},align:"baseline",children:[(0,e.jsx)(p.Z.Item,(0,o.Z)((0,o.Z)({},B),{},{label:"\u5206\u8D26\u8D26\u6237\u7C7B\u522B",name:[F,"accountType"],fieldKey:[I,"accountType"],rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5206\u8D26\u8D26\u6237\u7C7B\u522B"}],children:(0,e.jsxs)(ee.ZP.Group,{children:[(0,e.jsx)(ee.ZP,{value:0,children:"\u5546\u6237"}),(0,e.jsx)(ee.ZP,{value:1,children:"\u4E2A\u4EBA"})]})})),(0,e.jsx)(p.Z.Item,(0,o.Z)((0,o.Z)({},B),{},{label:"\u5206\u8D26\u8D26\u6237\u540D\u79F0",name:[F,"businessName"],fieldKey:[I,"businessName"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5206\u8D26\u8D26\u6237\u540D\u79F0"}],children:(0,e.jsx)(D.Z,{placeholder:"\u5206\u8D26\u8D26\u6237\u540D\u79F0"})})),(0,e.jsx)(p.Z.Item,(0,o.Z)((0,o.Z)({},B),{},{label:"\u5206\u8D26\u8D26\u6237\u53F7",name:[F,"businessId"],fieldKey:[I,"businessId"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5206\u8D26\u8D26\u6237\u53F7"}],children:(0,e.jsx)(D.Z,{placeholder:"\u5206\u8D26\u8D26\u6237\u53F7",style:{width:250}})})),(0,e.jsx)(p.Z.Item,(0,o.Z)((0,o.Z)({},B),{},{name:[F,"orderType"],fieldKey:[I,"orderType"],label:"\u8BA2\u5355\u7C7B\u578B",rules:[{required:!0}],children:(0,e.jsx)(E.Z,{style:{width:120},children:(0,e.jsxs)(n,{children:[(0,e.jsx)(E.Z.Option,{value:0,children:"\u4E3B\u8BA2\u5355"}),(0,e.jsx)(E.Z.Option,{value:1,children:"\u5B50\u8BA2\u5355"})]})})})),(0,e.jsx)(p.Z.Item,(0,o.Z)((0,o.Z)({},B),{},{name:[F,"splitType"],fieldKey:[I,"splitType"],label:"\u5206\u8D26\u7C7B\u578B",rules:[{required:!0}],children:(0,e.jsx)(E.Z,{style:{width:120},children:(0,e.jsxs)(n,{children:[(0,e.jsx)(E.Z.Option,{value:0,children:"\u6BD4\u4F8B\u5206\u8D26"}),(0,e.jsx)(E.Z.Option,{value:1,children:"\u56FA\u5B9A\u91D1\u989D"})]})})})),(0,e.jsx)(p.Z.Item,{noStyle:!0,shouldUpdate:function(P,O){var K,k,J;return(P==null||(K=P.businessList[R])===null||K===void 0?void 0:K.splitType)!=null||(P==null||(k=P.businessList[R])===null||k===void 0?void 0:k.splitType)!==(O==null||(J=O.businessList[R])===null||J===void 0?void 0:J.splitType)},children:function(P){var O,K=P.getFieldValue;return((O=K("businessList")[R])===null||O===void 0?void 0:O.splitType)!="1"?(0,e.jsx)(p.Z.Item,(0,o.Z)((0,o.Z)({},B),{},{label:"\u5206\u8D26\u6BD4\u4F8B",name:[F,"proportion"],fieldKey:[I,"proportion"],rules:[{required:!1,message:"\u8BF7\u8F93\u5165\u5206\u8D26\u6BD4\u4F8B"}],children:(0,e.jsx)(Ee.Z,{step:.1,min:0,max:1,precision:2,style:{width:150}})})):(0,e.jsx)(p.Z.Item,(0,o.Z)((0,o.Z)({},B),{},{label:"\u56FA\u5B9A\u91D1\u989D",name:[F,"fixedMoney"],fieldKey:[I,"fixedMoney"],rules:[{required:!1,message:"\u8BF7\u8F93\u5165\u56FA\u5B9A\u91D1\u989D"}],children:(0,e.jsx)(D.Z,{placeholder:"\u56FA\u5B9A\u91D1\u989D",style:{width:150}})}))}}),(0,e.jsx)(p.Z.Item,(0,o.Z)((0,o.Z)({},B),{},{label:"\u5206\u8D26\u63CF\u8FF0",name:[F,"remark"],fieldKey:[I,"remark"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5206\u8D26\u63CF\u8FF0"}],children:(0,e.jsx)(D.Z,{placeholder:"\u5206\u8D26\u63CF\u8FF0"})})),(0,e.jsx)(Be.Z,{onClick:function(){return oe(F)}})]},R)}),(0,e.jsx)(p.Z.Item,{children:(0,e.jsx)(N.Z,{type:"dashed",onClick:function(){return ie()},block:!0,icon:(0,e.jsx)(de.Z,{}),children:"\u6DFB\u52A0"})})]})}})}),(0,e.jsx)(p.Z.Item,{name:"planId",label:"\u5206\u8D26\u65B9\u6848",rules:[{required:!0}],children:(0,e.jsx)(E.Z,{children:l.planArray.map(function(S,U){return(0,e.jsx)(E.Z.Option,{index:U,value:S.id,children:S.text},S.id)})})}),(0,e.jsx)(p.Z.Item,{name:"remark",label:"\u5907\u6CE8",rules:[{required:!1,max:64}],children:(0,e.jsx)(D.Z,{placeholder:"\u5907\u6CE8"})}),(0,e.jsx)(p.Z.Item,{children:(0,e.jsx)(N.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})})},Te=be,w=t(48971);function Oe(d){return te.apply(this,arguments)}function te(){return te=(0,x.Z)((0,i.Z)().mark(function d(l){return(0,i.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,w.WY)("/kitchen/api/split-account/account-details-page",{method:"Post",data:l}));case 1:case"end":return n.stop()}},d)})),te.apply(this,arguments)}function Le(d){return ne.apply(this,arguments)}function ne(){return ne=(0,x.Z)((0,i.Z)().mark(function d(l){return(0,i.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,w.WY)("/kitchen/api/split-account/split-account-detail",{method:"POST",data:l}));case 1:case"end":return n.stop()}},d)})),ne.apply(this,arguments)}function Re(d){return re.apply(this,arguments)}function re(){return re=(0,x.Z)((0,i.Z)().mark(function d(l){return(0,i.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,w.WY)("/kitchen/api/split-account/account-details",{method:"PUT",data:l}));case 1:case"end":return n.stop()}},d)})),re.apply(this,arguments)}function We(d){return ae.apply(this,arguments)}function ae(){return ae=(0,x.Z)((0,i.Z)().mark(function d(l){return(0,i.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return console.log(l),n.abrupt("return",(0,w.WY)("/kitchen/api/split-account/account-detail",{method:"DELETE",data:l}));case 2:case"end":return n.stop()}},d)})),ae.apply(this,arguments)}function we(d){return ue.apply(this,arguments)}function ue(){return ue=(0,x.Z)((0,i.Z)().mark(function d(l){return(0,i.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,w.WY)("\u200B/kitchen/api\u200B/store-info\u200B/store-info-page",{method:"POST",data:l}));case 1:case"end":return n.stop()}},d)})),ue.apply(this,arguments)}function $e(d,l){return se.apply(this,arguments)}function se(){return se=(0,x.Z)((0,i.Z)().mark(function d(l,A){return(0,i.Z)().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return S.abrupt("return",(0,w.WY)("/kitchen/api/split-business/business/".concat(l,"/").concat(A),{method:"GET"}));case 1:case"end":return S.stop()}},d)})),se.apply(this,arguments)}function Ke(d){return le.apply(this,arguments)}function le(){return le=(0,x.Z)((0,i.Z)().mark(function d(l){return(0,i.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,w.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/tree",{data:(0,o.Z)({},l)}));case 1:case"end":return n.stop()}},d)})),le.apply(this,arguments)}var Me=t(69918),ke=["defaultRender"],Ye=function(){var l=(0,j.useState)(),A=(0,r.Z)(l,2),n=A[0],S=A[1],U=(0,j.useState)([]),V=(0,r.Z)(U,2),ie=V[0],oe=V[1],$=(0,j.useState)(),R=(0,r.Z)($,2),F=R[0],I=R[1],B=(0,j.useState)([]),z=(0,r.Z)(B,2),P=z[0],O=z[1],K=(0,j.useState)([]),k=(0,r.Z)(K,2),J=k[0],Ne=k[1],Ue=(0,j.useState)([]),pe=(0,r.Z)(Ue,2),ot=pe[0],Ve=pe[1];(0,j.useEffect)(function(){var s=function(g){var f=(0,Me.t1)({current:1,pageSize:1e3}).then(function(Z){var c={},m=[];Z.data.data.forEach(function(L){m.push({text:L.planName,id:L.id}),c[L.id]={text:L.planName}}),oe(m),S(c)})},a=function(g){var f=we({current:1,pageSize:1e3}).then(function(Z){var c={},m=[];Z.data.data.forEach(function(L){m.push({text:L.store_Name,id:L.id}),c[L.id]={text:L.store_Name}}),O(m),I(c)})};function u(){Ke().then(function(h){g(h.data);function g(c){for(var m in c)c[m].type==2||c[m].type==3?c[m].disabled=!1:c[m].disabled=!0,c[m].children&&g(c[m].children)}Ne(h.data);var f={};Z(h.data);function Z(c){for(var m in c)f[c[m].disabled]=!0,f[c[m].value]={text:c[m].title},c[m].children&&Z(c[m].children)}Ve(f)})}u(),s(),a()},[]);var ze=(0,j.useState)(!1),he=(0,r.Z)(ze,2),Je=he[0],q=he[1],He=(0,j.useState)(!1),fe=(0,r.Z)(He,2),Qe=fe[0],me=fe[1],W=(0,j.useRef)(),Xe=(0,j.useState)(),ve=(0,r.Z)(Xe,2),C=ve[0],H=ve[1],qe=(0,j.useState)([]),Ze=(0,r.Z)(qe,2),Y=Ze[0],ye=Ze[1];function _e(s){try{return Le(JSON.stringify(s)),v.default.success("\u6DFB\u52A0\u6210\u529F"),W.current.reload(),!0}catch(a){return v.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),!1}}function et(s){try{return Re(JSON.stringify(s)).then(function(a){a.data?(v.default.success("\u4FEE\u6539\u6210\u529F"),W.current.reload()):v.default.error("\u4FEE\u6539\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01")}),!0}catch(a){return v.default.error("\u4FEE\u6539\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),!1}}function tt(){try{return We(Y.map(function(s,a){return s.id})).then(function(s){s.data?v.default.success("\u5220\u9664\u6210\u529F\uFF0C\u5373\u5C06\u5237\u65B0"):v.default.error("\u5220\u9664\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5")}),W.current.reload(),!0}catch(s){v.default.error("\u5220\u9664\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5")}}function ct(s){try{return removeSingleAccount(s).then(function(a){a.data?(v.default.success("\u5220\u9664\u6210\u529F\uFF0C\u5373\u5C06\u5237\u65B0"),W.current.reload()):v.default.error("\u5220\u9664\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5")}),!0}catch(a){v.default.error("\u5220\u9664\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5")}}var ge=[{title:"\u4E3B\u952E",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0,render:function(a,u){return(0,e.jsx)("a",{onClick:function(){H(u),me(!0)},children:a})}},{title:"\u5E97\u94FA",dataIndex:"storeId",valueEnum:F},{title:"\u5206\u8D26\u65B9\u6848",dataIndex:"planId",valueEnum:n},{title:"\u5907\u6CE8",dataIndex:"remark",valueType:"textarea",hideInSearch:!0},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"createAt",valueType:"dateTime",hideInSearch:!0,renderFormItem:function(a,u,h){var g=u.defaultRender,f=(0,y.Z)(u,ke),Z=h.getFieldValue("state");return"".concat(Z)==="0"?!1:"".concat(Z)==="3"?(0,e.jsx)(D.Z,(0,o.Z)((0,o.Z)({},f),{},{placeholder:"\u8BF7\u8F93\u5165\u5F02\u5E38\u539F\u56E0\uFF01"})):g(a)}},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(a,u){return[(0,e.jsx)("a",{onClick:function(){$e(u.storeId,u.planId).then(function(g){g.data&&(q(!0),H(function(){return u.businessList=g.data,u}))})},children:"\u66F4\u65B0"},"config")]}}];return(0,e.jsxs)(je.ZP,{children:[(0,e.jsx)(De.ZP,{headerTitle:"\u5206\u8D26\u8D26\u6237",actionRef:W,rowKey:"id",search:{labelWidth:120},columns:ge,toolBarRender:function(){return[(0,e.jsxs)(N.Z,{type:"primary",onClick:function(){q(!0),H({})},children:[(0,e.jsx)(de.Z,{})," \u65B0\u5EFA"]},"primary")]},request:function(){var s=(0,x.Z)((0,i.Z)().mark(function a(u){var h,g;return(0,i.Z)().wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:return h=[],g=0,Z.next=4,Oe(u).then(function(c){h=c.data.data,g=c.data.total});case 4:return Z.abrupt("return",{data:h,success:!0,total:g});case 5:case"end":return Z.stop()}},a)}));return function(a){return s.apply(this,arguments)}}(),rowSelection:{onChange:function(a,u){ye(u)}}}),(Y==null?void 0:Y.length)>0&&(0,e.jsx)(Se.Z,{extra:(0,e.jsxs)("div",{children:["\u5DF2\u9009\u62E9"," ",(0,e.jsx)("a",{style:{fontWeight:600},children:Y.length})," ","\u9879 \xA0\xA0"]}),children:(0,e.jsx)(_.Z,{type:"primary",title:"\u786E\u8BA4\u662F\u5426\u5220\u9664\u9009\u4E2D\u9879\uFF1F",okText:"\u662F",cancelText:"\u5426",onConfirm:function(){var a,u;tt(Y),ye([]),(a=W.current)===null||a===void 0||(u=a.reloadAndRest)===null||u===void 0||u.call(a)},onCancel:function(){},children:(0,e.jsx)("a",{href:"#",children:"\u6279\u91CF\u5220\u9664"})},"primary")}),(0,e.jsx)(Te,{OrgData:J,planArray:ie,storeArray:P,onFinish:function(){var s=(0,x.Z)((0,i.Z)().mark(function a(u){var h;return(0,i.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:if(h=!1,!u.id){f.next=7;break}return f.next=4,et(u);case 4:h=f.sent,f.next=10;break;case 7:return f.next=9,_e(u);case 9:h=f.sent;case 10:h&&(q(!1),W.current&&W.current.reload());case 11:case"end":return f.stop()}},a)}));return function(a){return s.apply(this,arguments)}}(),onCancel:function(){H(void 0),q(!1)},createModalVisible:Je,values:C||{}}),(0,e.jsx)(M.Z,{width:600,visible:Qe,onClose:function(){H(void 0),me(!1)},closable:!1,children:(C==null?void 0:C.name)&&(0,e.jsx)(Ae.ZP,{column:2,title:C==null?void 0:C.name,request:(0,x.Z)((0,i.Z)().mark(function s(){return(0,i.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",{data:C||{}});case 1:case"end":return u.stop()}},s)})),params:{id:C==null?void 0:C.name},columns:ge})})]})},Ge=Ye},69918:function(xe,Q,t){"use strict";t.d(Q,{t1:function(){return _},n4:function(){return x},Vs:function(){return N},Wt:function(){return ce}});var b=t(39428),M=t(3182),G=t(48971);function _(y){return i.apply(this,arguments)}function i(){return i=(0,M.Z)((0,b.Z)().mark(function y(T){return(0,b.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,G.WY)("/kitchen/api/split-plan/split-plan-page",{method:"Post",data:T}));case 1:case"end":return r.stop()}},y)})),i.apply(this,arguments)}function x(y){return X.apply(this,arguments)}function X(){return X=(0,M.Z)((0,b.Z)().mark(function y(T){return(0,b.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,G.WY)("/kitchen/api/split-plan/split-plan",{method:"POST",data:T}));case 1:case"end":return r.stop()}},y)})),X.apply(this,arguments)}function N(y){return o.apply(this,arguments)}function o(){return o=(0,M.Z)((0,b.Z)().mark(function y(T){return(0,b.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,G.WY)("/kitchen/api/split-plan/split-plan",{method:"PUT",data:T}));case 1:case"end":return r.stop()}},y)})),o.apply(this,arguments)}function ce(y){return D.apply(this,arguments)}function D(){return D=(0,M.Z)((0,b.Z)().mark(function y(T){return(0,b.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return console.log(T),r.abrupt("return",(0,G.WY)("/kitchen/api/split-plan/split-plan",{method:"DELETE",data:T}));case 2:case"end":return r.stop()}},y)})),D.apply(this,arguments)}}}]); +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[7633],{91884:function(xe,Q,t){"use strict";t.r(Q),t.d(Q,{default:function(){return Ge}});var b=t(57338),M=t(273),G=t(62350),_=t(24565),i=t(39428),x=t(3182),X=t(57663),N=t(71577),o=t(11849),ce=t(47673),D=t(4107),y=t(93224),T=t(34792),v=t(48086),r=t(2824),de=t(49101),j=t(67294),je=t(78009),Se=t(85224),De=t(16894),Ae=t(12826),nt=t(71194),Fe=t(50146),rt=t(49111),Ce=t(19650),at=t(77883),Ee=t(85986),ut=t(88983),ee=t(47933),st=t(62999),Ie=t(54680),lt=t(9715),p=t(55843),it=t(43358),E=t(34041),Be=t(59465),e=t(85893),Pe=["key","name","fieldKey"],be=function(l){var A=E.Z.Option,n=E.Z.OptGroup;return(0,e.jsx)(Fe.Z,{title:l.values.id?"\u7F16\u8F91":"\u65B0\u5EFA",width:1400,visible:l.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){l.onCancel()},destroyOnClose:!0,maskClosable:!1,children:(0,e.jsxs)(p.Z,{layout:"vertical",preserve:!1,initialValues:l.values,onFinish:l.onFinish,children:[(0,e.jsx)(p.Z.Item,{name:"id",hidden:!0,children:(0,e.jsx)(D.Z,{})}),(0,e.jsx)(p.Z.Item,{name:"storeId",label:"\u9009\u62E9\u5E97\u94FA",rules:[{required:!0}],children:(0,e.jsx)(Ie.Z,{style:{width:"100%"},dropdownStyle:{maxHeight:400,overflow:"auto"},treeData:l.OrgData,placeholder:"\u5F52\u5C5E\u95E8\u5E97",treeDefaultExpandAll:!0})}),(0,e.jsx)(p.Z.Item,{label:"\u5206\u8D26\u8D26\u6237",children:(0,e.jsx)(p.Z.List,{name:"businessList",children:function(U,V){var ie=V.add,oe=V.remove;return(0,e.jsxs)(e.Fragment,{children:[U.map(function(W){var R=W.key,F=W.name,I=W.fieldKey,B=(0,y.Z)(W,Pe);return(0,e.jsxs)(Ce.Z,{style:{display:"flex",marginBottom:8},align:"baseline",children:[(0,e.jsx)(p.Z.Item,(0,o.Z)((0,o.Z)({},B),{},{label:"\u5206\u8D26\u8D26\u6237\u7C7B\u522B",name:[F,"accountType"],fieldKey:[I,"accountType"],rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5206\u8D26\u8D26\u6237\u7C7B\u522B"}],children:(0,e.jsxs)(ee.ZP.Group,{children:[(0,e.jsx)(ee.ZP,{value:0,children:"\u5546\u6237"}),(0,e.jsx)(ee.ZP,{value:1,children:"\u4E2A\u4EBA"})]})})),(0,e.jsx)(p.Z.Item,(0,o.Z)((0,o.Z)({},B),{},{label:"\u5206\u8D26\u8D26\u6237\u540D\u79F0",name:[F,"businessName"],fieldKey:[I,"businessName"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5206\u8D26\u8D26\u6237\u540D\u79F0"}],children:(0,e.jsx)(D.Z,{placeholder:"\u5206\u8D26\u8D26\u6237\u540D\u79F0"})})),(0,e.jsx)(p.Z.Item,(0,o.Z)((0,o.Z)({},B),{},{label:"\u5206\u8D26\u8D26\u6237\u53F7",name:[F,"businessId"],fieldKey:[I,"businessId"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5206\u8D26\u8D26\u6237\u53F7"}],children:(0,e.jsx)(D.Z,{placeholder:"\u5206\u8D26\u8D26\u6237\u53F7",style:{width:250}})})),(0,e.jsx)(p.Z.Item,(0,o.Z)((0,o.Z)({},B),{},{name:[F,"orderType"],fieldKey:[I,"orderType"],label:"\u8BA2\u5355\u7C7B\u578B",rules:[{required:!0}],children:(0,e.jsx)(E.Z,{style:{width:120},children:(0,e.jsxs)(n,{children:[(0,e.jsx)(E.Z.Option,{value:0,children:"\u4E3B\u8BA2\u5355"}),(0,e.jsx)(E.Z.Option,{value:1,children:"\u5B50\u8BA2\u5355"})]})})})),(0,e.jsx)(p.Z.Item,(0,o.Z)((0,o.Z)({},B),{},{name:[F,"splitType"],fieldKey:[I,"splitType"],label:"\u5206\u8D26\u7C7B\u578B",rules:[{required:!0}],children:(0,e.jsx)(E.Z,{style:{width:120},children:(0,e.jsxs)(n,{children:[(0,e.jsx)(E.Z.Option,{value:0,children:"\u6BD4\u4F8B\u5206\u8D26"}),(0,e.jsx)(E.Z.Option,{value:1,children:"\u56FA\u5B9A\u91D1\u989D"})]})})})),(0,e.jsx)(p.Z.Item,{noStyle:!0,shouldUpdate:function(P,O){var K,k,J;return(P==null||(K=P.businessList[R])===null||K===void 0?void 0:K.splitType)!=null||(P==null||(k=P.businessList[R])===null||k===void 0?void 0:k.splitType)!==(O==null||(J=O.businessList[R])===null||J===void 0?void 0:J.splitType)},children:function(P){var O,K=P.getFieldValue;return((O=K("businessList")[R])===null||O===void 0?void 0:O.splitType)!="1"?(0,e.jsx)(p.Z.Item,(0,o.Z)((0,o.Z)({},B),{},{label:"\u5206\u8D26\u6BD4\u4F8B",name:[F,"proportion"],fieldKey:[I,"proportion"],rules:[{required:!1,message:"\u8BF7\u8F93\u5165\u5206\u8D26\u6BD4\u4F8B"}],children:(0,e.jsx)(Ee.Z,{step:.1,min:0,max:1,precision:2,style:{width:150}})})):(0,e.jsx)(p.Z.Item,(0,o.Z)((0,o.Z)({},B),{},{label:"\u56FA\u5B9A\u91D1\u989D",name:[F,"fixedMoney"],fieldKey:[I,"fixedMoney"],rules:[{required:!1,message:"\u8BF7\u8F93\u5165\u56FA\u5B9A\u91D1\u989D"}],children:(0,e.jsx)(D.Z,{placeholder:"\u56FA\u5B9A\u91D1\u989D",style:{width:150}})}))}}),(0,e.jsx)(p.Z.Item,(0,o.Z)((0,o.Z)({},B),{},{label:"\u5206\u8D26\u63CF\u8FF0",name:[F,"remark"],fieldKey:[I,"remark"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5206\u8D26\u63CF\u8FF0"}],children:(0,e.jsx)(D.Z,{placeholder:"\u5206\u8D26\u63CF\u8FF0"})})),(0,e.jsx)(Be.Z,{onClick:function(){return oe(F)}})]},R)}),(0,e.jsx)(p.Z.Item,{children:(0,e.jsx)(N.Z,{type:"dashed",onClick:function(){return ie()},block:!0,icon:(0,e.jsx)(de.Z,{}),children:"\u6DFB\u52A0"})})]})}})}),(0,e.jsx)(p.Z.Item,{name:"planId",label:"\u5206\u8D26\u65B9\u6848",rules:[{required:!0}],children:(0,e.jsx)(E.Z,{children:l.planArray.map(function(S,U){return(0,e.jsx)(E.Z.Option,{index:U,value:S.id,children:S.text},S.id)})})}),(0,e.jsx)(p.Z.Item,{name:"remark",label:"\u5907\u6CE8",rules:[{required:!1,max:64}],children:(0,e.jsx)(D.Z,{placeholder:"\u5907\u6CE8"})}),(0,e.jsx)(p.Z.Item,{children:(0,e.jsx)(N.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})})},Te=be,$=t(48971);function Oe(d){return te.apply(this,arguments)}function te(){return te=(0,x.Z)((0,i.Z)().mark(function d(l){return(0,i.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,$.WY)("/kitchen/api/split-account/account-details-page",{method:"Post",data:l}));case 1:case"end":return n.stop()}},d)})),te.apply(this,arguments)}function Le(d){return ne.apply(this,arguments)}function ne(){return ne=(0,x.Z)((0,i.Z)().mark(function d(l){return(0,i.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,$.WY)("/kitchen/api/split-account/split-account-detail",{method:"POST",data:l}));case 1:case"end":return n.stop()}},d)})),ne.apply(this,arguments)}function Re(d){return re.apply(this,arguments)}function re(){return re=(0,x.Z)((0,i.Z)().mark(function d(l){return(0,i.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,$.WY)("/kitchen/api/split-account/account-details",{method:"PUT",data:l}));case 1:case"end":return n.stop()}},d)})),re.apply(this,arguments)}function we(d){return ae.apply(this,arguments)}function ae(){return ae=(0,x.Z)((0,i.Z)().mark(function d(l){return(0,i.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return console.log(l),n.abrupt("return",(0,$.WY)("/kitchen/api/split-account/account-detail",{method:"DELETE",data:l}));case 2:case"end":return n.stop()}},d)})),ae.apply(this,arguments)}function $e(d){return ue.apply(this,arguments)}function ue(){return ue=(0,x.Z)((0,i.Z)().mark(function d(l){return(0,i.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,$.WY)("\u200B/kitchen/api\u200B/store-info\u200B/store-info-page",{method:"POST",data:l}));case 1:case"end":return n.stop()}},d)})),ue.apply(this,arguments)}function We(d,l){return se.apply(this,arguments)}function se(){return se=(0,x.Z)((0,i.Z)().mark(function d(l,A){return(0,i.Z)().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return S.abrupt("return",(0,$.WY)("/kitchen/api/split-business/business/".concat(l,"/").concat(A),{method:"GET"}));case 1:case"end":return S.stop()}},d)})),se.apply(this,arguments)}function Ke(d){return le.apply(this,arguments)}function le(){return le=(0,x.Z)((0,i.Z)().mark(function d(l){return(0,i.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,$.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/tree",{data:(0,o.Z)({},l)}));case 1:case"end":return n.stop()}},d)})),le.apply(this,arguments)}var Me=t(69918),ke=["defaultRender"],Ye=function(){var l=(0,j.useState)(),A=(0,r.Z)(l,2),n=A[0],S=A[1],U=(0,j.useState)([]),V=(0,r.Z)(U,2),ie=V[0],oe=V[1],W=(0,j.useState)(),R=(0,r.Z)(W,2),F=R[0],I=R[1],B=(0,j.useState)([]),z=(0,r.Z)(B,2),P=z[0],O=z[1],K=(0,j.useState)([]),k=(0,r.Z)(K,2),J=k[0],Ne=k[1],Ue=(0,j.useState)([]),pe=(0,r.Z)(Ue,2),ot=pe[0],Ve=pe[1];(0,j.useEffect)(function(){var s=function(g){var f=(0,Me.t1)({current:1,pageSize:1e3}).then(function(Z){var c={},m=[];Z.data.data.forEach(function(L){m.push({text:L.planName,id:L.id}),c[L.id]={text:L.planName}}),oe(m),S(c)})},a=function(g){var f=$e({current:1,pageSize:1e3}).then(function(Z){var c={},m=[];Z.data.data.forEach(function(L){m.push({text:L.store_Name,id:L.id}),c[L.id]={text:L.store_Name}}),O(m),I(c)})};function u(){Ke().then(function(h){g(h.data);function g(c){for(var m in c)c[m].type==2||c[m].type==3?c[m].disabled=!1:c[m].disabled=!0,c[m].children&&g(c[m].children)}Ne(h.data);var f={};Z(h.data);function Z(c){for(var m in c)f[c[m].disabled]=!0,f[c[m].value]={text:c[m].title},c[m].children&&Z(c[m].children)}Ve(f)})}u(),s(),a()},[]);var ze=(0,j.useState)(!1),he=(0,r.Z)(ze,2),Je=he[0],q=he[1],He=(0,j.useState)(!1),fe=(0,r.Z)(He,2),Qe=fe[0],me=fe[1],w=(0,j.useRef)(),Xe=(0,j.useState)(),ve=(0,r.Z)(Xe,2),C=ve[0],H=ve[1],qe=(0,j.useState)([]),Ze=(0,r.Z)(qe,2),Y=Ze[0],ye=Ze[1];function _e(s){try{return Le(JSON.stringify(s)),v.default.success("\u6DFB\u52A0\u6210\u529F"),w.current.reload(),!0}catch(a){return v.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),!1}}function et(s){try{return Re(JSON.stringify(s)).then(function(a){a.data?(v.default.success("\u4FEE\u6539\u6210\u529F"),w.current.reload()):v.default.error("\u4FEE\u6539\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01")}),!0}catch(a){return v.default.error("\u4FEE\u6539\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),!1}}function tt(){try{return we(Y.map(function(s,a){return s.id})).then(function(s){s.data?v.default.success("\u5220\u9664\u6210\u529F\uFF0C\u5373\u5C06\u5237\u65B0"):v.default.error("\u5220\u9664\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5")}),w.current.reload(),!0}catch(s){v.default.error("\u5220\u9664\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5")}}function ct(s){try{return removeSingleAccount(s).then(function(a){a.data?(v.default.success("\u5220\u9664\u6210\u529F\uFF0C\u5373\u5C06\u5237\u65B0"),w.current.reload()):v.default.error("\u5220\u9664\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5")}),!0}catch(a){v.default.error("\u5220\u9664\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5")}}var ge=[{title:"\u4E3B\u952E",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0,render:function(a,u){return(0,e.jsx)("a",{onClick:function(){H(u),me(!0)},children:a})}},{title:"\u5E97\u94FA",dataIndex:"storeId",valueEnum:F},{title:"\u5206\u8D26\u65B9\u6848",dataIndex:"planId",valueEnum:n},{title:"\u5907\u6CE8",dataIndex:"remark",valueType:"textarea",hideInSearch:!0},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"createAt",valueType:"dateTime",hideInSearch:!0,renderFormItem:function(a,u,h){var g=u.defaultRender,f=(0,y.Z)(u,ke),Z=h.getFieldValue("state");return"".concat(Z)==="0"?!1:"".concat(Z)==="3"?(0,e.jsx)(D.Z,(0,o.Z)((0,o.Z)({},f),{},{placeholder:"\u8BF7\u8F93\u5165\u5F02\u5E38\u539F\u56E0\uFF01"})):g(a)}},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(a,u){return[(0,e.jsx)("a",{onClick:function(){We(u.storeId,u.planId).then(function(g){g.data&&(q(!0),H(function(){return u.businessList=g.data,u}))})},children:"\u66F4\u65B0"},"config")]}}];return(0,e.jsxs)(je.ZP,{children:[(0,e.jsx)(De.ZP,{headerTitle:"\u5206\u8D26\u8D26\u6237",actionRef:w,rowKey:"id",search:{labelWidth:120},columns:ge,toolBarRender:function(){return[(0,e.jsxs)(N.Z,{type:"primary",onClick:function(){q(!0),H({})},children:[(0,e.jsx)(de.Z,{})," \u65B0\u5EFA"]},"primary")]},request:function(){var s=(0,x.Z)((0,i.Z)().mark(function a(u){var h,g;return(0,i.Z)().wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:return h=[],g=0,Z.next=4,Oe(u).then(function(c){h=c.data.data,g=c.data.total});case 4:return Z.abrupt("return",{data:h,success:!0,total:g});case 5:case"end":return Z.stop()}},a)}));return function(a){return s.apply(this,arguments)}}(),rowSelection:{onChange:function(a,u){ye(u)}}}),(Y==null?void 0:Y.length)>0&&(0,e.jsx)(Se.Z,{extra:(0,e.jsxs)("div",{children:["\u5DF2\u9009\u62E9"," ",(0,e.jsx)("a",{style:{fontWeight:600},children:Y.length})," ","\u9879 \xA0\xA0"]}),children:(0,e.jsx)(_.Z,{type:"primary",title:"\u786E\u8BA4\u662F\u5426\u5220\u9664\u9009\u4E2D\u9879\uFF1F",okText:"\u662F",cancelText:"\u5426",onConfirm:function(){var a,u;tt(Y),ye([]),(a=w.current)===null||a===void 0||(u=a.reloadAndRest)===null||u===void 0||u.call(a)},onCancel:function(){},children:(0,e.jsx)("a",{href:"#",children:"\u6279\u91CF\u5220\u9664"})},"primary")}),(0,e.jsx)(Te,{OrgData:J,planArray:ie,storeArray:P,onFinish:function(){var s=(0,x.Z)((0,i.Z)().mark(function a(u){var h;return(0,i.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:if(h=!1,!u.id){f.next=7;break}return f.next=4,et(u);case 4:h=f.sent,f.next=10;break;case 7:return f.next=9,_e(u);case 9:h=f.sent;case 10:h&&(q(!1),w.current&&w.current.reload());case 11:case"end":return f.stop()}},a)}));return function(a){return s.apply(this,arguments)}}(),onCancel:function(){H(void 0),q(!1)},createModalVisible:Je,values:C||{}}),(0,e.jsx)(M.Z,{width:600,visible:Qe,onClose:function(){H(void 0),me(!1)},closable:!1,children:(C==null?void 0:C.name)&&(0,e.jsx)(Ae.ZP,{column:2,title:C==null?void 0:C.name,request:(0,x.Z)((0,i.Z)().mark(function s(){return(0,i.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",{data:C||{}});case 1:case"end":return u.stop()}},s)})),params:{id:C==null?void 0:C.name},columns:ge})})]})},Ge=Ye},69918:function(xe,Q,t){"use strict";t.d(Q,{t1:function(){return _},n4:function(){return x},Vs:function(){return N},Wt:function(){return ce}});var b=t(39428),M=t(3182),G=t(48971);function _(y){return i.apply(this,arguments)}function i(){return i=(0,M.Z)((0,b.Z)().mark(function y(T){return(0,b.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,G.WY)("/kitchen/api/split-plan/split-plan-page",{method:"Post",data:T}));case 1:case"end":return r.stop()}},y)})),i.apply(this,arguments)}function x(y){return X.apply(this,arguments)}function X(){return X=(0,M.Z)((0,b.Z)().mark(function y(T){return(0,b.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,G.WY)("/kitchen/api/split-plan/split-plan",{method:"POST",data:T}));case 1:case"end":return r.stop()}},y)})),X.apply(this,arguments)}function N(y){return o.apply(this,arguments)}function o(){return o=(0,M.Z)((0,b.Z)().mark(function y(T){return(0,b.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,G.WY)("/kitchen/api/split-plan/split-plan",{method:"PUT",data:T}));case 1:case"end":return r.stop()}},y)})),o.apply(this,arguments)}function ce(y){return D.apply(this,arguments)}function D(){return D=(0,M.Z)((0,b.Z)().mark(function y(T){return(0,b.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return console.log(T),r.abrupt("return",(0,G.WY)("/kitchen/api/split-plan/split-plan",{method:"DELETE",data:T}));case 2:case"end":return r.stop()}},y)})),D.apply(this,arguments)}}}]); diff --git a/dist/p__split__plan.a96b624b.async.js b/dist/p__split__plan.9bd63172.async.js similarity index 92% rename from dist/p__split__plan.a96b624b.async.js rename to dist/p__split__plan.9bd63172.async.js index eda6747..41217ab 100644 --- a/dist/p__split__plan.a96b624b.async.js +++ b/dist/p__split__plan.9bd63172.async.js @@ -1 +1 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[4728],{63088:function(H,P,e){"use strict";e.r(P),e.d(P,{default:function(){return ne}});var h=e(57338),x=e(273),g=e(62350),W=e(24565),c=e(39428),C=e(3182),F=e(57663),E=e(71577),I=e(34792),s=e(48086),p=e(2824),i=e(49101),u=e(67294),S=e(78009),l=e(85224),G=e(16894),J=e(12826),oe=e(71194),z=e(50146),de=e(77883),k=e(85986),ce=e(9715),Z=e(55843),me=e(47673),M=e(4107),fe=e(14965),Q=e(91774),X=e(30381),$=e.n(X),t=e(85893),q=function(o){var A=Q.Z.RangePicker,O=M.Z.TextArea,v=[];return o.values&&(v.push(o.values.planStartTime),v.push(o.values.planEndTime)),o.values.planDate=v,(0,t.jsx)(z.Z,{title:o.values.id?"\u7F16\u8F91":"\u65B0\u5EFA",width:700,visible:o.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){o.onCancel()},destroyOnClose:!0,maskClosable:!1,children:(0,t.jsxs)(Z.Z,{layout:"Horizontal",preserve:!1,initialValues:o.values,onFinish:o.onFinish,children:[(0,t.jsx)(Z.Z.Item,{name:"id",hidden:!0,children:(0,t.jsx)(M.Z,{})}),(0,t.jsx)(Z.Z.Item,{name:"planName",label:"\u65B9\u6848\u540D\u79F0",rules:[{required:!0,max:20,whitespace:!0}],children:(0,t.jsx)(M.Z,{placeholder:"\u65B9\u6848\u540D\u79F0"})}),(0,t.jsx)(Z.Z.Item,{name:"planDate",label:"\u9009\u62E9\u65F6\u95F4",rules:[{required:!0}],children:(0,t.jsx)(A,{showTime:!0,format:"YYYY-MM-DD HH:mm:ss"})}),(0,t.jsx)(Z.Z.Item,{name:"serviceFee",label:"\u670D\u52A1\u8D39\u6BD4\u4F8B",rules:[{required:!0}],children:(0,t.jsx)(k.Z,{step:.01,min:0,max:1,defaultValue:0,precision:2})}),(0,t.jsx)(Z.Z.Item,{name:"remark",label:"\u5907\u6CE8",rules:[{required:!1,max:255}],children:(0,t.jsx)(O,{rows:4,placeholder:"\u8BF7\u8F93\u5165\u5907\u6CE8"})}),(0,t.jsx)(Z.Z.Item,{children:(0,t.jsx)(E.Z,{type:"primary",htmlType:"submit",style:{float:"right"},children:"\u4FDD\u5B58"})})]})})},_=q,R=e(69918),ee=function(){var o=(0,u.useState)(!1),A=(0,p.Z)(o,2),O=A[0],v=A[1],V=(0,u.useState)(!1),Y=(0,p.Z)(V,2),ae=Y[0],b=Y[1],y=(0,u.useRef)(),re=(0,u.useState)(),K=(0,p.Z)(re,2),d=K[0],j=K[1],le=(0,u.useState)([]),L=(0,p.Z)(le,2),T=L[0],w=L[1];function ue(a){try{return(0,R.n4)(JSON.stringify(a)),s.default.success("\u6DFB\u52A0\u6210\u529F"),y.current.reload(),!0}catch(r){return s.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),!1}}function se(a){try{return(0,R.Vs)(JSON.stringify(a)).then(function(r){r.data?(s.default.success("\u4FEE\u6539\u6210\u529F"),y.current.reload()):s.default.error("\u4FEE\u6539\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01")}),!0}catch(r){return s.default.error("\u4FEE\u6539\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),!1}}function ie(){try{return(0,R.Wt)(T.map(function(a,r){return a.id})).then(function(a){a.data?s.default.success("\u5220\u9664\u6210\u529F\uFF0C\u5373\u5C06\u5237\u65B0"):s.default.error("\u5220\u9664\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5")}),y.current.reload(),!0}catch(a){s.default.error("\u5220\u9664\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5")}}function he(a){try{return removeSingleAccount(a).then(function(r){r.data?(s.default.success("\u5220\u9664\u6210\u529F\uFF0C\u5373\u5C06\u5237\u65B0"),y.current.reload()):s.default.error("\u5220\u9664\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5")}),!0}catch(r){s.default.error("\u5220\u9664\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5")}}var U=[{title:"\u4E3B\u952E",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0,render:function(r,n){return(0,t.jsx)("a",{onClick:function(){j(n),b(!0)},children:r})}},{title:"\u5206\u8D26\u65B9\u6848\u540D\u79F0",dataIndex:"planName",valueType:"textarea"},{title:"\u5F00\u59CB\u65F6\u95F4",hideInSearch:!0,dataIndex:"planStartTime",valueType:"dateTime"},{title:"\u7ED3\u675F\u65F6\u95F4",hideInSearch:!0,dataIndex:"planEndTime",valueType:"dateTime"},{title:"\u670D\u52A1\u8D39\u6BD4\u4F8B",dataIndex:"serviceFee",valueType:"textarea",hideInSearch:!0},{title:"\u5907\u6CE8",dataIndex:"remark",valueType:"textarea",hideInSearch:!0},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"createAt",valueType:"textarea",hideInSearch:!0},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(r,n){return[(0,t.jsx)("a",{onClick:function(){v(!0),j(function(){return n.planStartTime!=null&&(n.planStartTime=$()(n.planStartTime),n.planEndTime=$()(n.planEndTime)),n})},children:"\u66F4\u65B0"},"config")]}}];return(0,t.jsxs)(S.ZP,{children:[(0,t.jsx)(G.ZP,{headerTitle:"\u5206\u8D26\u65B9\u6848",actionRef:y,rowKey:"id",search:{labelWidth:120},columns:U,toolBarRender:function(){return[(0,t.jsxs)(E.Z,{type:"primary",onClick:function(){v(!0),j({})},children:[(0,t.jsx)(i.Z,{})," \u65B0\u5EFA"]},"primary")]},request:function(){var a=(0,C.Z)((0,c.Z)().mark(function r(n){var m,B;return(0,c.Z)().wrap(function(D){for(;;)switch(D.prev=D.next){case 0:return m=[],B=0,D.next=4,(0,R.t1)(n).then(function(N){m=N.data.data,B=N.data.total});case 4:return D.abrupt("return",{data:m,success:!0,total:B});case 5:case"end":return D.stop()}},r)}));return function(r){return a.apply(this,arguments)}}(),rowSelection:{onChange:function(r,n){w(n)}}}),(T==null?void 0:T.length)>0&&(0,t.jsx)(l.Z,{extra:(0,t.jsxs)("div",{children:["\u5DF2\u9009\u62E9"," ",(0,t.jsx)("a",{style:{fontWeight:600},children:T.length})," ","\u9879 \xA0\xA0"]}),children:(0,t.jsx)(W.Z,{type:"primary",title:"\u786E\u8BA4\u662F\u5426\u5220\u9664\u9009\u4E2D\u9879\uFF1F",okText:"\u662F",cancelText:"\u5426",onConfirm:function(){var r,n;ie(T),w([]),(r=y.current)===null||r===void 0||(n=r.reloadAndRest)===null||n===void 0||n.call(r)},onCancel:function(){},children:(0,t.jsx)("a",{href:"#",children:"\u6279\u91CF\u5220\u9664"})},"primary")}),(0,t.jsx)(_,{onFinish:function(){var a=(0,C.Z)((0,c.Z)().mark(function r(n){var m;return(0,c.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:if(m=!1,n.planStartTime=new Date(n.planDate[0]),n.planEndTime=new Date(n.planDate[1]),!n.id){f.next=9;break}return f.next=6,se(n);case 6:m=f.sent,f.next=12;break;case 9:return f.next=11,ue(n);case 11:m=f.sent;case 12:m&&(v(!1),y.current&&y.current.reload());case 13:case"end":return f.stop()}},r)}));return function(r){return a.apply(this,arguments)}}(),onCancel:function(){j(void 0),v(!1)},createModalVisible:O,values:d||{}}),(0,t.jsx)(x.Z,{width:600,visible:ae,onClose:function(){j(void 0),b(!1)},closable:!1,children:(d==null?void 0:d.name)&&(0,t.jsx)(J.ZP,{column:2,title:d==null?void 0:d.name,request:(0,C.Z)((0,c.Z)().mark(function a(){return(0,c.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",{data:d||{}});case 1:case"end":return n.stop()}},a)})),params:{id:d==null?void 0:d.name},columns:U})})]})},ne=ee},69918:function(H,P,e){"use strict";e.d(P,{t1:function(){return W},n4:function(){return C},Vs:function(){return E},Wt:function(){return s}});var h=e(39428),x=e(3182),g=e(48971);function W(i){return c.apply(this,arguments)}function c(){return c=(0,x.Z)((0,h.Z)().mark(function i(u){return(0,h.Z)().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",(0,g.WY)("/kitchen/api/split-plan/split-plan-page",{method:"Post",data:u}));case 1:case"end":return l.stop()}},i)})),c.apply(this,arguments)}function C(i){return F.apply(this,arguments)}function F(){return F=(0,x.Z)((0,h.Z)().mark(function i(u){return(0,h.Z)().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",(0,g.WY)("/kitchen/api/split-plan/split-plan",{method:"POST",data:u}));case 1:case"end":return l.stop()}},i)})),F.apply(this,arguments)}function E(i){return I.apply(this,arguments)}function I(){return I=(0,x.Z)((0,h.Z)().mark(function i(u){return(0,h.Z)().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",(0,g.WY)("/kitchen/api/split-plan/split-plan",{method:"PUT",data:u}));case 1:case"end":return l.stop()}},i)})),I.apply(this,arguments)}function s(i){return p.apply(this,arguments)}function p(){return p=(0,x.Z)((0,h.Z)().mark(function i(u){return(0,h.Z)().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return console.log(u),l.abrupt("return",(0,g.WY)("/kitchen/api/split-plan/split-plan",{method:"DELETE",data:u}));case 2:case"end":return l.stop()}},i)})),p.apply(this,arguments)}}}]); +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[4728],{63088:function(H,P,e){"use strict";e.r(P),e.d(P,{default:function(){return ne}});var h=e(57338),x=e(273),g=e(62350),M=e(24565),c=e(39428),C=e(3182),F=e(57663),E=e(71577),I=e(34792),s=e(48086),p=e(2824),i=e(49101),u=e(67294),S=e(78009),l=e(85224),G=e(16894),J=e(12826),oe=e(71194),z=e(50146),de=e(77883),Q=e(85986),ce=e(9715),Z=e(55843),me=e(47673),W=e(4107),fe=e(14965),X=e(91774),k=e(30381),$=e.n(k),t=e(85893),q=function(o){var A=X.Z.RangePicker,O=W.Z.TextArea,v=[];return o.values&&(v.push(o.values.planStartTime),v.push(o.values.planEndTime)),o.values.planDate=v,(0,t.jsx)(z.Z,{title:o.values.id?"\u7F16\u8F91":"\u65B0\u5EFA",width:700,visible:o.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){o.onCancel()},destroyOnClose:!0,maskClosable:!1,children:(0,t.jsxs)(Z.Z,{layout:"Horizontal",preserve:!1,initialValues:o.values,onFinish:o.onFinish,children:[(0,t.jsx)(Z.Z.Item,{name:"id",hidden:!0,children:(0,t.jsx)(W.Z,{})}),(0,t.jsx)(Z.Z.Item,{name:"planName",label:"\u65B9\u6848\u540D\u79F0",rules:[{required:!0,max:20,whitespace:!0}],children:(0,t.jsx)(W.Z,{placeholder:"\u65B9\u6848\u540D\u79F0"})}),(0,t.jsx)(Z.Z.Item,{name:"planDate",label:"\u9009\u62E9\u65F6\u95F4",rules:[{required:!0}],children:(0,t.jsx)(A,{showTime:!0,format:"YYYY-MM-DD HH:mm:ss"})}),(0,t.jsx)(Z.Z.Item,{name:"serviceFee",label:"\u670D\u52A1\u8D39\u6BD4\u4F8B",rules:[{required:!0}],children:(0,t.jsx)(Q.Z,{step:.01,min:0,max:1,defaultValue:0,precision:2})}),(0,t.jsx)(Z.Z.Item,{name:"remark",label:"\u5907\u6CE8",rules:[{required:!1,max:255}],children:(0,t.jsx)(O,{rows:4,placeholder:"\u8BF7\u8F93\u5165\u5907\u6CE8"})}),(0,t.jsx)(Z.Z.Item,{children:(0,t.jsx)(E.Z,{type:"primary",htmlType:"submit",style:{float:"right"},children:"\u4FDD\u5B58"})})]})})},_=q,R=e(69918),ee=function(){var o=(0,u.useState)(!1),A=(0,p.Z)(o,2),O=A[0],v=A[1],V=(0,u.useState)(!1),Y=(0,p.Z)(V,2),ae=Y[0],b=Y[1],y=(0,u.useRef)(),re=(0,u.useState)(),K=(0,p.Z)(re,2),d=K[0],j=K[1],le=(0,u.useState)([]),L=(0,p.Z)(le,2),T=L[0],w=L[1];function ue(a){try{return(0,R.n4)(JSON.stringify(a)),s.default.success("\u6DFB\u52A0\u6210\u529F"),y.current.reload(),!0}catch(r){return s.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),!1}}function se(a){try{return(0,R.Vs)(JSON.stringify(a)).then(function(r){r.data?(s.default.success("\u4FEE\u6539\u6210\u529F"),y.current.reload()):s.default.error("\u4FEE\u6539\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01")}),!0}catch(r){return s.default.error("\u4FEE\u6539\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),!1}}function ie(){try{return(0,R.Wt)(T.map(function(a,r){return a.id})).then(function(a){a.data?s.default.success("\u5220\u9664\u6210\u529F\uFF0C\u5373\u5C06\u5237\u65B0"):s.default.error("\u5220\u9664\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5")}),y.current.reload(),!0}catch(a){s.default.error("\u5220\u9664\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5")}}function he(a){try{return removeSingleAccount(a).then(function(r){r.data?(s.default.success("\u5220\u9664\u6210\u529F\uFF0C\u5373\u5C06\u5237\u65B0"),y.current.reload()):s.default.error("\u5220\u9664\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5")}),!0}catch(r){s.default.error("\u5220\u9664\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5")}}var U=[{title:"\u4E3B\u952E",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0,render:function(r,n){return(0,t.jsx)("a",{onClick:function(){j(n),b(!0)},children:r})}},{title:"\u5206\u8D26\u65B9\u6848\u540D\u79F0",dataIndex:"planName",valueType:"textarea"},{title:"\u5F00\u59CB\u65F6\u95F4",hideInSearch:!0,dataIndex:"planStartTime",valueType:"dateTime"},{title:"\u7ED3\u675F\u65F6\u95F4",hideInSearch:!0,dataIndex:"planEndTime",valueType:"dateTime"},{title:"\u670D\u52A1\u8D39\u6BD4\u4F8B",dataIndex:"serviceFee",valueType:"textarea",hideInSearch:!0},{title:"\u5907\u6CE8",dataIndex:"remark",valueType:"textarea",hideInSearch:!0},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"createAt",valueType:"textarea",hideInSearch:!0},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(r,n){return[(0,t.jsx)("a",{onClick:function(){v(!0),j(function(){return n.planStartTime!=null&&(n.planStartTime=$()(n.planStartTime),n.planEndTime=$()(n.planEndTime)),n})},children:"\u66F4\u65B0"},"config")]}}];return(0,t.jsxs)(S.ZP,{children:[(0,t.jsx)(G.ZP,{headerTitle:"\u5206\u8D26\u65B9\u6848",actionRef:y,rowKey:"id",search:{labelWidth:120},columns:U,toolBarRender:function(){return[(0,t.jsxs)(E.Z,{type:"primary",onClick:function(){v(!0),j({})},children:[(0,t.jsx)(i.Z,{})," \u65B0\u5EFA"]},"primary")]},request:function(){var a=(0,C.Z)((0,c.Z)().mark(function r(n){var m,B;return(0,c.Z)().wrap(function(D){for(;;)switch(D.prev=D.next){case 0:return m=[],B=0,D.next=4,(0,R.t1)(n).then(function(N){m=N.data.data,B=N.data.total});case 4:return D.abrupt("return",{data:m,success:!0,total:B});case 5:case"end":return D.stop()}},r)}));return function(r){return a.apply(this,arguments)}}(),rowSelection:{onChange:function(r,n){w(n)}}}),(T==null?void 0:T.length)>0&&(0,t.jsx)(l.Z,{extra:(0,t.jsxs)("div",{children:["\u5DF2\u9009\u62E9"," ",(0,t.jsx)("a",{style:{fontWeight:600},children:T.length})," ","\u9879 \xA0\xA0"]}),children:(0,t.jsx)(M.Z,{type:"primary",title:"\u786E\u8BA4\u662F\u5426\u5220\u9664\u9009\u4E2D\u9879\uFF1F",okText:"\u662F",cancelText:"\u5426",onConfirm:function(){var r,n;ie(T),w([]),(r=y.current)===null||r===void 0||(n=r.reloadAndRest)===null||n===void 0||n.call(r)},onCancel:function(){},children:(0,t.jsx)("a",{href:"#",children:"\u6279\u91CF\u5220\u9664"})},"primary")}),(0,t.jsx)(_,{onFinish:function(){var a=(0,C.Z)((0,c.Z)().mark(function r(n){var m;return(0,c.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:if(m=!1,n.planStartTime=new Date(n.planDate[0]),n.planEndTime=new Date(n.planDate[1]),!n.id){f.next=9;break}return f.next=6,se(n);case 6:m=f.sent,f.next=12;break;case 9:return f.next=11,ue(n);case 11:m=f.sent;case 12:m&&(v(!1),y.current&&y.current.reload());case 13:case"end":return f.stop()}},r)}));return function(r){return a.apply(this,arguments)}}(),onCancel:function(){j(void 0),v(!1)},createModalVisible:O,values:d||{}}),(0,t.jsx)(x.Z,{width:600,visible:ae,onClose:function(){j(void 0),b(!1)},closable:!1,children:(d==null?void 0:d.name)&&(0,t.jsx)(J.ZP,{column:2,title:d==null?void 0:d.name,request:(0,C.Z)((0,c.Z)().mark(function a(){return(0,c.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",{data:d||{}});case 1:case"end":return n.stop()}},a)})),params:{id:d==null?void 0:d.name},columns:U})})]})},ne=ee},69918:function(H,P,e){"use strict";e.d(P,{t1:function(){return M},n4:function(){return C},Vs:function(){return E},Wt:function(){return s}});var h=e(39428),x=e(3182),g=e(48971);function M(i){return c.apply(this,arguments)}function c(){return c=(0,x.Z)((0,h.Z)().mark(function i(u){return(0,h.Z)().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",(0,g.WY)("/kitchen/api/split-plan/split-plan-page",{method:"Post",data:u}));case 1:case"end":return l.stop()}},i)})),c.apply(this,arguments)}function C(i){return F.apply(this,arguments)}function F(){return F=(0,x.Z)((0,h.Z)().mark(function i(u){return(0,h.Z)().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",(0,g.WY)("/kitchen/api/split-plan/split-plan",{method:"POST",data:u}));case 1:case"end":return l.stop()}},i)})),F.apply(this,arguments)}function E(i){return I.apply(this,arguments)}function I(){return I=(0,x.Z)((0,h.Z)().mark(function i(u){return(0,h.Z)().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",(0,g.WY)("/kitchen/api/split-plan/split-plan",{method:"PUT",data:u}));case 1:case"end":return l.stop()}},i)})),I.apply(this,arguments)}function s(i){return p.apply(this,arguments)}function p(){return p=(0,x.Z)((0,h.Z)().mark(function i(u){return(0,h.Z)().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return console.log(u),l.abrupt("return",(0,g.WY)("/kitchen/api/split-plan/split-plan",{method:"DELETE",data:u}));case 2:case"end":return l.stop()}},i)})),p.apply(this,arguments)}}}]); diff --git a/dist/p__store__printer__printerTemplate.003d8237.async.js b/dist/p__store__printer__printerTemplate.003d8237.async.js deleted file mode 100644 index 20cf758..0000000 --- a/dist/p__store__printer__printerTemplate.003d8237.async.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[9999,1322,9934,4407,6498,6090,274,6314],{1958:function(te,E,t){"use strict";t.r(E),t.d(E,{default:function(){return M}});var re=t(13062),W=t(71230),ne=t(89032),A=t(15746),ae=t(58024),C=t(91894),Y=t(86582),se=t(88983),F=t(47933),u=t(39428),ue=t(34792),I=t(48086),c=t(3182),y=t(2824),ie=t(18106),B=t(86629),N=t(78009),h=t(67294),l=t(952),p=t(1705),Z=t(48971);function L(a){return P.apply(this,arguments)}function P(){return P=(0,c.Z)((0,u.Z)().mark(function a(d){return(0,u.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,Z.WY)("/kitchen/api/printer/printer-templater",{method:"get",data:d}));case 1:case"end":return r.stop()}},a)})),P.apply(this,arguments)}function U(a){return j.apply(this,arguments)}function j(){return j=(0,c.Z)((0,u.Z)().mark(function a(d){return(0,u.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,Z.WY)("/kitchen/api/printer/printer-template",{method:"post",data:d}));case 1:case"end":return r.stop()}},a)})),j.apply(this,arguments)}function z(a){return x.apply(this,arguments)}function x(){return x=(0,c.Z)((0,u.Z)().mark(function a(d){return(0,u.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,Z.WY)("/kitchen/api/printer/printer-template",{method:"put",data:d}));case 1:case"end":return r.stop()}},a)})),x.apply(this,arguments)}function V(a){return T.apply(this,arguments)}function T(){return T=(0,c.Z)((0,u.Z)().mark(function a(d){return(0,u.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,Z.WY)("/kitchen/api/printer/del-printer-templater",{method:"post",data:d}));case 1:case"end":return r.stop()}},a)})),T.apply(this,arguments)}var e=t(85893),H=B.Z.TabPane,J=function(){var d=(0,h.useRef)(),f=(0,h.useState)([]),r=(0,y.Z)(f,2),v=r[0],G=r[1],O=(0,h.useState)(),$=(0,y.Z)(O,2),b=$[0],g=$[1],Q=(0,h.useState)(!1),D=(0,y.Z)(Q,2),X=D[0],w=D[1];(0,h.useEffect)(function(){S()},[]),(0,h.useEffect)(function(){},[b]);var S=function(){L().then(function(n){var i;G(n.data),g((i=n.data[0])===null||i===void 0?void 0:i.id)})},k=function(n){return(0,e.jsxs)(l.ZP,{onFinish:function(){var i=(0,c.Z)((0,u.Z)().mark(function m(K){var R;return(0,u.Z)().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:if(X){s.next=6;break}return s.next=3,z(K);case 3:s.t0=s.sent,s.next=9;break;case 6:return s.next=8,U(K);case 8:s.t0=s.sent;case 9:R=s.t0,R.data?(S(),I.default.success("\u6210\u529F")):I.default.success("\u5931\u8D25");case 11:case"end":return s.stop()}},m)}));return function(m){return i.apply(this,arguments)}}(),labelCol:{span:4},formRef:d,layout:"horizontal",initialValues:{id:n.id,title:n.title,subtitle:n.subtitle,explain:n.explain,isShowPrintTime:n.isShowPrintTime,isShowNumber:n.isShowNumber,Footer:n.Footer,type:n.type},autoFocusFirstInput:!0,children:[(0,e.jsx)(l.ZP.Item,{name:"id",hidden:!0,children:(0,e.jsx)(p.ZP,{mode:"edit"})}),(0,e.jsx)(l.ZP.Item,{name:"type",label:"\u5C0F\u7968\u7C7B\u578B",rules:[{required:!0}],children:(0,e.jsxs)(F.ZP.Group,{children:[(0,e.jsx)(F.ZP,{value:1,children:"\u6536\u94F6(\u51FA\u9910)\u5C0F\u7968"}),(0,e.jsx)(F.ZP,{value:2,children:"\u8D34\u7EB8\u5C0F\u7968"})]})}),(0,e.jsx)(l.ZP.Item,{name:"title",label:"\u6807\u9898",placeholder:"\u6807\u9898",children:(0,e.jsx)(p.ZP,{mode:"edit"})}),(0,e.jsx)(l.ZP.Item,{style:{marginTop:"-10px"},name:"subtitle",label:"\u526F\u6807\u9898",placeholder:"\u526F\u6807\u9898",children:(0,e.jsx)(p.ZP,{mode:"edit"})}),(0,e.jsx)(l.ZP.Item,{style:{marginTop:"-10px"},name:"explain",label:"\u8BF4\u660E\uFF08\u6B22\u8FCE\u8BED\uFF09",placeholder:"\u8BF4\u660E\uFF08\u6B22\u8FCE\u8BED\uFF09",children:(0,e.jsx)(p.ZP,{mode:"edit"})}),(0,e.jsx)(l.ZP.Item,{style:{marginTop:"-10px"},name:"isShowPrintTime",label:"\u662F\u5426\u663E\u793A\u65F6\u95F4",placeholder:"",children:(0,e.jsx)(p.ZP,{mode:"edit",valueType:"switch"})}),(0,e.jsx)(l.ZP.Item,{style:{marginTop:"-10px"},name:"isShowNumber",label:"\u662F\u5426\u663E\u793A\u8BA2\u5355\u53F7",placeholder:"",children:(0,e.jsx)(p.ZP,{mode:"edit",valueType:"switch"})}),(0,e.jsx)(l.ZP.Item,{style:{marginTop:"-10px"},name:"Footer",label:"\u9875\u811A",placeholder:"\u9875\u811A",children:(0,e.jsx)(p.ZP,{mode:"edit"})})]})},q=function(n){g(n)},_=function(n,i){i=="remove"?(w(!1),V([n]).then(function(m){S()})):(w(!0),ee(n))},ee=function(n){var i="\u6A21\u677F"+v.length,m=(0,Y.Z)(v);m.push({title:"\u6A21\u677F"+m.length,content:(0,e.jsx)("div",{children:" "}),id:i}),g(i),G(m)};return(0,e.jsx)(N.ZP,{children:(0,e.jsx)(B.Z,{type:"editable-card",onChange:q,activeKey:b,onEdit:_,children:v==null?void 0:v.map(function(o){return(0,e.jsx)(H,{tab:o.title,children:(0,e.jsxs)(W.Z,{children:[(0,e.jsx)(A.Z,{span:12,push:12,children:(0,e.jsx)(C.Z,{children:k(o)})}),(0,e.jsx)(A.Z,{span:12,pull:12,children:(0,e.jsx)(C.Z,{children:"\u6A21\u677F\u6837\u5F0F"})})]})},o.id)})})})},M=J}}]); diff --git a/dist/p__store__printer__printerTemplate.85273370.async.js b/dist/p__store__printer__printerTemplate.85273370.async.js new file mode 100644 index 0000000..e28bcfb --- /dev/null +++ b/dist/p__store__printer__printerTemplate.85273370.async.js @@ -0,0 +1 @@ +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[9999,1322,9464,1981,2869,7013,9719,2383],{1958:function(te,E,t){"use strict";t.r(E),t.d(E,{default:function(){return M}});var re=t(13062),W=t(71230),ne=t(89032),A=t(15746),ae=t(58024),C=t(91894),Y=t(86582),se=t(88983),F=t(47933),u=t(39428),ue=t(34792),I=t(48086),c=t(3182),y=t(2824),ie=t(18106),B=t(95562),N=t(78009),h=t(67294),l=t(952),p=t(1705),Z=t(48971);function L(a){return P.apply(this,arguments)}function P(){return P=(0,c.Z)((0,u.Z)().mark(function a(d){return(0,u.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,Z.WY)("/kitchen/api/printer/printer-templater",{method:"get",data:d}));case 1:case"end":return r.stop()}},a)})),P.apply(this,arguments)}function U(a){return j.apply(this,arguments)}function j(){return j=(0,c.Z)((0,u.Z)().mark(function a(d){return(0,u.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,Z.WY)("/kitchen/api/printer/printer-template",{method:"post",data:d}));case 1:case"end":return r.stop()}},a)})),j.apply(this,arguments)}function z(a){return x.apply(this,arguments)}function x(){return x=(0,c.Z)((0,u.Z)().mark(function a(d){return(0,u.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,Z.WY)("/kitchen/api/printer/printer-template",{method:"put",data:d}));case 1:case"end":return r.stop()}},a)})),x.apply(this,arguments)}function V(a){return T.apply(this,arguments)}function T(){return T=(0,c.Z)((0,u.Z)().mark(function a(d){return(0,u.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,Z.WY)("/kitchen/api/printer/del-printer-templater",{method:"post",data:d}));case 1:case"end":return r.stop()}},a)})),T.apply(this,arguments)}var e=t(85893),H=B.Z.TabPane,J=function(){var d=(0,h.useRef)(),f=(0,h.useState)([]),r=(0,y.Z)(f,2),v=r[0],G=r[1],O=(0,h.useState)(),$=(0,y.Z)(O,2),b=$[0],g=$[1],Q=(0,h.useState)(!1),D=(0,y.Z)(Q,2),X=D[0],w=D[1];(0,h.useEffect)(function(){S()},[]),(0,h.useEffect)(function(){},[b]);var S=function(){L().then(function(n){var i;G(n.data),g((i=n.data[0])===null||i===void 0?void 0:i.id)})},k=function(n){return(0,e.jsxs)(l.ZP,{onFinish:function(){var i=(0,c.Z)((0,u.Z)().mark(function m(K){var R;return(0,u.Z)().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:if(X){s.next=6;break}return s.next=3,z(K);case 3:s.t0=s.sent,s.next=9;break;case 6:return s.next=8,U(K);case 8:s.t0=s.sent;case 9:R=s.t0,R.data?(S(),I.default.success("\u6210\u529F")):I.default.success("\u5931\u8D25");case 11:case"end":return s.stop()}},m)}));return function(m){return i.apply(this,arguments)}}(),labelCol:{span:4},formRef:d,layout:"horizontal",initialValues:{id:n.id,title:n.title,subtitle:n.subtitle,explain:n.explain,isShowPrintTime:n.isShowPrintTime,isShowNumber:n.isShowNumber,Footer:n.Footer,type:n.type},autoFocusFirstInput:!0,children:[(0,e.jsx)(l.ZP.Item,{name:"id",hidden:!0,children:(0,e.jsx)(p.ZP,{mode:"edit"})}),(0,e.jsx)(l.ZP.Item,{name:"type",label:"\u5C0F\u7968\u7C7B\u578B",rules:[{required:!0}],children:(0,e.jsxs)(F.ZP.Group,{children:[(0,e.jsx)(F.ZP,{value:1,children:"\u6536\u94F6(\u51FA\u9910)\u5C0F\u7968"}),(0,e.jsx)(F.ZP,{value:2,children:"\u8D34\u7EB8\u5C0F\u7968"})]})}),(0,e.jsx)(l.ZP.Item,{name:"title",label:"\u6807\u9898",placeholder:"\u6807\u9898",children:(0,e.jsx)(p.ZP,{mode:"edit"})}),(0,e.jsx)(l.ZP.Item,{style:{marginTop:"-10px"},name:"subtitle",label:"\u526F\u6807\u9898",placeholder:"\u526F\u6807\u9898",children:(0,e.jsx)(p.ZP,{mode:"edit"})}),(0,e.jsx)(l.ZP.Item,{style:{marginTop:"-10px"},name:"explain",label:"\u8BF4\u660E\uFF08\u6B22\u8FCE\u8BED\uFF09",placeholder:"\u8BF4\u660E\uFF08\u6B22\u8FCE\u8BED\uFF09",children:(0,e.jsx)(p.ZP,{mode:"edit"})}),(0,e.jsx)(l.ZP.Item,{style:{marginTop:"-10px"},name:"isShowPrintTime",label:"\u662F\u5426\u663E\u793A\u65F6\u95F4",placeholder:"",children:(0,e.jsx)(p.ZP,{mode:"edit",valueType:"switch"})}),(0,e.jsx)(l.ZP.Item,{style:{marginTop:"-10px"},name:"isShowNumber",label:"\u662F\u5426\u663E\u793A\u8BA2\u5355\u53F7",placeholder:"",children:(0,e.jsx)(p.ZP,{mode:"edit",valueType:"switch"})}),(0,e.jsx)(l.ZP.Item,{style:{marginTop:"-10px"},name:"Footer",label:"\u9875\u811A",placeholder:"\u9875\u811A",children:(0,e.jsx)(p.ZP,{mode:"edit"})})]})},q=function(n){g(n)},_=function(n,i){i=="remove"?(w(!1),V([n]).then(function(m){S()})):(w(!0),ee(n))},ee=function(n){var i="\u6A21\u677F"+v.length,m=(0,Y.Z)(v);m.push({title:"\u6A21\u677F"+m.length,content:(0,e.jsx)("div",{children:" "}),id:i}),g(i),G(m)};return(0,e.jsx)(N.ZP,{children:(0,e.jsx)(B.Z,{type:"editable-card",onChange:q,activeKey:b,onEdit:_,children:v==null?void 0:v.map(function(o){return(0,e.jsx)(H,{tab:o.title,children:(0,e.jsxs)(W.Z,{children:[(0,e.jsx)(A.Z,{span:12,push:12,children:(0,e.jsx)(C.Z,{children:k(o)})}),(0,e.jsx)(A.Z,{span:12,pull:12,children:(0,e.jsx)(C.Z,{children:"\u6A21\u677F\u6837\u5F0F"})})]})},o.id)})})})},M=J}}]); diff --git a/dist/p__store__storeGoodsInfo.d30ff034.async.js b/dist/p__store__storeGoodsInfo.240cfce6.async.js similarity index 99% rename from dist/p__store__storeGoodsInfo.d30ff034.async.js rename to dist/p__store__storeGoodsInfo.240cfce6.async.js index 9c00032..ddcf612 100644 --- a/dist/p__store__storeGoodsInfo.d30ff034.async.js +++ b/dist/p__store__storeGoodsInfo.240cfce6.async.js @@ -1 +1 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[8099,1322],{52953:function(){},98712:function(ye,K,u){"use strict";u.r(K),u.d(K,{default:function(){return Ue}});var fe=u(57663),pe=u(71577),B=u(11849),n=u(39428),Ke=u(34792),x=u(48086),y=u(3182),M=u(2824),Ye=u(18106),Ce=u(86629),Ze=u(49101),w=u(67294),Ie=u(78009),P=u(48971);function we(r){return Y.apply(this,arguments)}function Y(){return Y=(0,y.Z)((0,n.Z)().mark(function r(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,P.WY)("/kitchen/api/Store/GetStoreList",{method:"POST",data:t}));case 1:case"end":return e.stop()}},r)})),Y.apply(this,arguments)}function ze(r){return z.apply(this,arguments)}function z(){return z=_asyncToGenerator(_regeneratorRuntime().mark(function r(t){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("/kitchen/api/select/GetCokingWorkList"));case 1:case"end":return e.stop()}},r)})),z.apply(this,arguments)}function ke(r){return _.apply(this,arguments)}function _(){return _=(0,y.Z)((0,n.Z)().mark(function r(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,P.WY)("\u200B\u200B/kitchen/api/Store/GetStoreGoods",{method:"POST",data:t}));case 1:case"end":return e.stop()}},r)})),_.apply(this,arguments)}function Fe(r){return J.apply(this,arguments)}function J(){return J=(0,y.Z)((0,n.Z)().mark(function r(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,P.WY)("/kitchen/api/Store/UpdateStoreGood",{method:"put",data:t}));case 1:case"end":return e.stop()}},r)})),J.apply(this,arguments)}function De(r){return V.apply(this,arguments)}function V(){return V=(0,y.Z)((0,n.Z)().mark(function r(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,P.WY)("/kitchen/api/goods/stopgoods",{method:"POST",data:t}));case 1:case"end":return e.stop()}},r)})),V.apply(this,arguments)}function je(r){return X.apply(this,arguments)}function X(){return X=(0,y.Z)((0,n.Z)().mark(function r(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,P.WY)("/kitchen/api/Store/UpdateStoreGood",{method:"put",data:t}));case 1:case"end":return e.stop()}},r)})),X.apply(this,arguments)}function _e(r){return H.apply(this,arguments)}function H(){return H=_asyncToGenerator(_regeneratorRuntime().mark(function r(t){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("/kitchen/api/store-info/store-good",{method:"POST",data:t}));case 1:case"end":return e.stop()}},r)})),H.apply(this,arguments)}function Je(r){return Q.apply(this,arguments)}function Q(){return Q=_asyncToGenerator(_regeneratorRuntime().mark(function r(t){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("/kitchen/api/store-info/del-store-good",{method:"POST",data:t}));case 1:case"end":return e.stop()}},r)})),Q.apply(this,arguments)}function Ve(){return q.apply(this,arguments)}function q(){return q=_asyncToGenerator(_regeneratorRuntime().mark(function r(){var t;return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t={current:1,pageSize:1e3,goods_Enable:0},e.abrupt("return",request("/kitchen/api/goods/goodss",{method:"Post",data:t}));case 2:case"end":return e.stop()}},r)})),q.apply(this,arguments)}function Xe(r){return request("/kitchen//api/Store/StoreGoodsAllUpdate",{method:"post",data:r})}function He(r){return request("/kitchen/api/log/request-log-page",{method:"post",data:r})}function he(r){return ee.apply(this,arguments)}function ee(){return ee=(0,y.Z)((0,n.Z)().mark(function r(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,P.WY)("/kitchen/api/FoodMenu/GetShopFoodMenuPage",{method:"POST",data:t}));case 1:case"end":return e.stop()}},r)})),ee.apply(this,arguments)}function Qe(r){return te.apply(this,arguments)}function te(){return te=_asyncToGenerator(_regeneratorRuntime().mark(function r(t){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("/kitchen/api/FoodMenu/GetFoodMenuGoodsPage_V2",{method:"POST",data:_objectSpread({},t)}));case 1:case"end":return e.stop()}},r)})),te.apply(this,arguments)}function Ge(r){return re.apply(this,arguments)}function re(){return re=(0,y.Z)((0,n.Z)().mark(function r(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,P.WY)("/kitchen/api/Device/GetDeviceInfoPage",{method:"POST",data:t}));case 1:case"end":return e.stop()}},r)})),re.apply(this,arguments)}function ve(r){return ne.apply(this,arguments)}function ne(){return ne=(0,y.Z)((0,n.Z)().mark(function r(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,P.WY)("/kitchen/api/goodes/AddGoodDevice",{method:"POST",data:t}));case 1:case"end":return e.stop()}},r)})),ne.apply(this,arguments)}function xe(r,t){return ae.apply(this,arguments)}function ae(){return ae=(0,y.Z)((0,n.Z)().mark(function r(t,l){return(0,n.Z)().wrap(function(k){for(;;)switch(k.prev=k.next){case 0:return k.abrupt("return",(0,P.WY)("/kitchen/api/goodes/GetGoodDevice?foodId=".concat(t,"&storeId=").concat(l),{method:"GET"}));case 1:case"end":return k.stop()}},r)})),ae.apply(this,arguments)}function Oe(r){return se.apply(this,arguments)}function se(){return se=(0,y.Z)((0,n.Z)().mark(function r(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,P.WY)("/kitchen/api/FoodMenu/GetFoodMenuInfoPage",{method:"POST",data:t}));case 1:case"end":return e.stop()}},r)})),se.apply(this,arguments)}function Ee(r){return ue.apply(this,arguments)}function ue(){return ue=(0,y.Z)((0,n.Z)().mark(function r(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,P.WY)("/kitchen/api/FoodMenu/StoreAddFoodMenuNew",{method:"POST",data:t}));case 1:case"end":return e.stop()}},r)})),ue.apply(this,arguments)}var oe=u(16894),qe=u(71194),et=u(77883),tt=u(9715),rt=u(47673),nt=u(43358),c=u(85893),at=function(t){var l=_Select.Option,e=_Select.OptGroup,k=useState([]),m=_slicedToArray(k,2),E=m[0],b=m[1],O=useState([]),h=_slicedToArray(O,2),I=h[0],g=h[1];return _jsx(_Modal,{title:t.values.id?"\u7F16\u8F91":"\u65B0\u5EFA",width:640,visible:t.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){t.onCancel()},destroyOnClose:!0,children:_jsxs(_Form,{layout:"vertical",preserve:!1,initialValues:t.values,onFinish:t.onFinish,children:[_jsx(_Form.Item,{name:"id",hidden:!0,children:_jsx(_Input,{})}),_jsx(_Form.Item,{label:"\u4EF7\u683C",name:"price",rules:[{required:!0}],children:_jsx(_InputNumber,{placeholder:"\u4EF7\u683C",min:0})}),_jsx(_Form.Item,{label:"\u4F1A\u5458\u4EF7\u683C",name:"vipPrice",rules:[{required:!0}],children:_jsx(_InputNumber,{placeholder:"\u4EF7\u683C",min:0})}),_jsx(_Form.Item,{label:"\u72B6\u6001",name:"status",rules:[{required:!0}],children:_jsxs(_Select,{placeholder:"\u72B6\u6001",children:[_jsx(l,{value:1,children:"\u4E0B\u67B6"}),_jsx(l,{value:0,children:"\u4E0A\u67B6"})]})}),_jsx(_Form.Item,{children:_jsx(_Button,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})})},st=null,ut=u(57338),ot=u(98858),it=function(t){var l=useRef(),e=useState({}),k=_slicedToArray(e,2),m=k[0],E=k[1],b=useState(!1),O=_slicedToArray(b,2),h=O[0],I=O[1],g=function(){var s=_asyncToGenerator(_regeneratorRuntime().mark(function i(a){return _regeneratorRuntime().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:E({ip:a.ip,refererUrl:a.refererUrl,requestUrl:a.requestURL,parameters:a.requestData,returnResult:a.resultData});case 1:case"end":return j.stop()}},i)}));return function(a){return s.apply(this,arguments)}}(),S=new Map;S.set(!0,{text:"\u5F02\u5E38",status:"Error"}),S.set(!1,{text:"\u6B63\u5E38",status:"Success"});var d=[{title:"\u4E3B\u952E",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684key",hideInSearch:!0,hideInTable:!0},{title:"\u64CD\u4F5C\u4EBA",dataIndex:"name",valueType:"textarea"},{title:"\u64CD\u4F5C\u8BF4\u660E",dataIndex:"methodName",valueType:"textarea",hideInSearch:!0},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"createAt",valueType:"date",hideInForm:!0},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(i,a){return[_jsx("a",{onClick:_asyncToGenerator(_regeneratorRuntime().mark(function C(){return _regeneratorRuntime().wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return A.next=2,g(a);case 2:I(!0);case 3:case"end":return A.stop()}},C)})),children:"\u8BE6\u60C5"},a.id)]}}],o=useIntl();return _jsxs(PageContainer,{children:[_jsx(ProTable,{search:!1,headerTitle:"\u64CD\u4F5C\u65E5\u5FD7",actionRef:l,rowKey:"id",request:function(){var s=_asyncToGenerator(_regeneratorRuntime().mark(function i(a){var C,j;return _regeneratorRuntime().wrap(function($){for(;;)switch($.prev=$.next){case 0:return C=[],j=0,a.value=t.storeId,a.method=["AddStoreGoodAsync","DelStoreGoodAsync","UpdateStoreGoodsAsync"],$.next=6,GetRequestLogPageAsync(JSON.stringify(a)).then(function(L){C=L.data.data,j=L.data.total});case 6:return $.abrupt("return",{data:C,success:!0,total:j});case 7:case"end":return $.stop()}},i)}));return function(i){return s.apply(this,arguments)}}(),columns:d,pagination:{defaultPageSize:10}}),_jsxs(_Drawer,{title:"\u8BE6\u60C5",placement:"right",size:"large",onClose:function(){I(!1)},visible:h,children:[_jsxs(_Descriptions,{column:1,children:[_jsx(_Descriptions.Item,{label:"\u64CD\u4F5CIP",children:_jsx(Field,{text:m.ip})}),_jsx(_Descriptions.Item,{label:"\u53C2\u8003\u5730\u5740",children:_jsx(Field,{text:m.refererUrl})}),_jsx(_Descriptions.Item,{label:"\u8BF7\u6C42\u5730\u5740",children:_jsx(Field,{text:m.requestUrl})})]}),_jsxs(_Descriptions,{children:[_jsxs(_Descriptions.Item,{label:"\u8BF7\u6C42\u6570\u636E",children:[_jsx("a",{onClick:function(){var i=document.createElement("input");i.value=m.parameters,document.body.appendChild(i),i.select(),document.execCommand("Copy"),_message.success("\u590D\u5236\u6210\u529F"),i.remove()},children:_jsx(CopyOutlined,{})}),_jsx("div",{style:{width:"220px",overflow:"scroll",overflowX:"auto"},children:_jsx(Field,{text:m.parameters,valueType:"jsonCode"})})]}),_jsxs(_Descriptions.Item,{label:"\u8FD4\u56DE\u6570\u636E",children:[_jsx("a",{onClick:function(){var i=document.createElement("input");i.value=m.returnResult,document.body.appendChild(i),i.select(),document.execCommand("Copy"),_message.success("\u590D\u5236\u6210\u529F"),i.remove()},children:_jsx(CopyOutlined,{})}),_jsx("div",{style:{width:"400px",overflow:"scroll",overflowX:"auto"},children:_jsx(Field,{text:m.returnResult,valueType:"jsonCode"})})]})]})]},"1")]})},lt=null,N=u(50146),dt=u(59250),Te=u(13013),ct=u(49111),me=u(19650),ft=u(62350),ie=u(24565),ge=u(85986),Me=u(4107),W=u(55843),le=u(34041),de="message",be=function(t){var l=le.Z.Option,e=W.Z.useForm(),k=(0,M.Z)(e,1),m=k[0],E=function(){t.goods&&m.setFieldsValue(t.goods)},b=function(){var O=(0,y.Z)((0,n.Z)().mark(function h(){var I,g;return(0,n.Z)().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.next=2,m.validateFields();case 2:return I=d.sent,d.prev=3,x.default.loading("\u6B63\u5728\u4FEE\u6539",de),x.default.destroy(de),d.next=8,je((0,B.Z)((0,B.Z)({},t.goods),I));case 8:g=d.sent,x.default.destroy(de),g.statusCode===200?(x.default.success("\u4FEE\u6539\u6210\u529F"),t.onOk()):x.default.success("\u4FEE\u6539\u5931\u8D25"),d.next=16;break;case 13:d.prev=13,d.t0=d.catch(3),x.default.error("\u4FEE\u6539\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01");case 16:case"end":return d.stop()}},h,null,[[3,13]])}));return function(){return O.apply(this,arguments)}}();return(0,w.useEffect)(function(){E()},[]),(0,c.jsx)(N.Z,{title:"\u7F16\u8F91\u3010".concat(t.goods.goods_Name,"\u3011"),width:640,visible:t.open,onOk:b,onCancel:t.onCancel,destroyOnClose:!0,children:(0,c.jsxs)(W.Z,{layout:"vertical",form:m,children:[(0,c.jsx)(W.Z.Item,{name:"id",hidden:!0,children:(0,c.jsx)(Me.Z,{})}),(0,c.jsx)(W.Z.Item,{label:"\u4EF7\u683C",name:"price",rules:[{required:!0}],children:(0,c.jsx)(ge.Z,{placeholder:"\u4EF7\u683C",min:0})}),(0,c.jsx)(W.Z.Item,{label:"\u4F1A\u5458\u4EF7\u683C",name:"vipPrice",rules:[{required:!0}],children:(0,c.jsx)(ge.Z,{placeholder:"\u4EF7\u683C",min:0})}),(0,c.jsx)(W.Z.Item,{label:"\u72B6\u6001",name:"status",rules:[{required:!0}],children:(0,c.jsxs)(le.Z,{placeholder:"\u72B6\u6001",children:[(0,c.jsx)(l,{value:1,children:"\u4E0B\u67B6"}),(0,c.jsx)(l,{value:0,children:"\u4E0A\u67B6"})]})})]})})},Pe=be,pt="message",Re=function(t){var l=(0,w.useState)([]),e=(0,M.Z)(l,2),k=e[0],m=e[1],E=(0,w.useState)([]),b=(0,M.Z)(E,2),O=b[0],h=b[1],I=function(){var d=(0,y.Z)((0,n.Z)().mark(function o(){var s,i;return(0,n.Z)().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return s=[],O.forEach(function(j){s.push({deviceId:j})}),C.next=4,ve({foodMenuId:t.foodMenu.id,foods:t.goods.goodsId,isDevice:t.isDevice,deviceIds:s});case 4:i=C.sent,i.statusCode===200?(x.default.success("\u7ED1\u5B9A\u6210\u529F\uFF01"),t.onOk()):x.default.error(JSON.stringify(i.errors)||"\u5546\u54C1\u7ED1\u5B9A\u8BBE\u5907\u5931\u8D25");case 6:case"end":return C.stop()}},o)}));return function(){return d.apply(this,arguments)}}(),g=function(){var d=(0,y.Z)((0,n.Z)().mark(function o(){var s,i;return(0,n.Z)().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return C.next=2,Ge({current:1,pageSize:999,storeId:t.storeId});case 2:i=C.sent,i.statusCode===200&&(s=i.data)!==null&&s!==void 0&&s.data?(i.data.data.forEach(function(j){j.label=j.deviceName,j.value=j.id}),m(i.data.data)):x.default.error(JSON.stringify(i.errors)||"\u83B7\u53D6\u8BBE\u5907\u5217\u8868\u5931\u8D25");case 4:case"end":return C.stop()}},o)}));return function(){return d.apply(this,arguments)}}(),S=function(){var d=(0,y.Z)((0,n.Z)().mark(function o(){var s;return(0,n.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(!(t.goods&&t.storeId)){a.next=5;break}return a.next=3,xe(t.goods.goodsId,t.storeId);case 3:s=a.sent,s.statusCode===200&&h(s.data);case 5:case"end":return a.stop()}},o)}));return function(){return d.apply(this,arguments)}}();return(0,w.useEffect)(function(){g(),S()},[]),(0,c.jsx)(N.Z,{title:"\u3010".concat(t.goods.goods_Name,"\u3011\u7ED1\u5B9A\u8BBE\u5907"),width:640,bodyStyle:{height:"300px"},visible:t.open,onOk:I,onCancel:t.onCancel,destroyOnClose:!0,children:(0,c.jsx)(le.Z,{mode:"multiple",allowClear:!0,style:{width:"100%"},placeholder:"\u8BF7\u9009\u62E9\u8BBE\u5907\uFF01",onChange:h,options:k,value:O})})},Ae=Re,$e=function(t){var l=(0,w.useRef)(),e=(0,w.useState)(!1),k=(0,M.Z)(e,2),m=k[0],E=k[1],b=(0,w.useState)(),O=(0,M.Z)(b,2),h=O[0],I=O[1],g=(0,w.useState)(!1),S=(0,M.Z)(g,2),d=S[0],o=S[1],s=(0,w.useState)([]),i=(0,M.Z)(s,2),a=i[0],C=i[1],j=(0,w.useState)(0),A=(0,M.Z)(j,2),$=A[0],L=A[1],U=function(){var G=(0,y.Z)((0,n.Z)().mark(function F(f,D){var Z;return(0,n.Z)().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:if(!(f.key=="1"||f.key=="2")){p.next=5;break}L(f.key),o(!0),p.next=13;break;case 5:if(I(D),f.key!="0"){p.next=13;break}return console.log(h),p.next=10,ve({foodMenuId:h.foodMenuId,foods:h.goodsId,deviceIds:[],isDevice:f.key});case 10:Z=p.sent,console.log(Z),Z.statusCode===200?(x.default.success("\u4FEE\u6539\u6210\u529F\uFF01"),l.current.reload()):x.default.error(JSON.stringify(Z.errors)||"\u4FEE\u6539\u5931\u8D25");case 13:case"end":return p.stop()}},F)}));return function(f,D){return G.apply(this,arguments)}}(),ce=[{title:"\u4E3B\u952E",dataIndex:"id",hideInSearch:!0,hideInTable:!0,tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key"},{title:"\u5546\u54C1",dataIndex:"goods_Name",valueType:"textarea"},{title:"\u5546\u54C1\u4EF7\u683C",dataIndex:"price",valueType:"money",hideInSearch:!0},{title:"\u5546\u54C1\u4F1A\u5458\u4EF7\u683C",dataIndex:"vipPrice",valueType:"money",hideInSearch:!0},{title:"\u5236\u4F5C\u65B9\u5F0F",dataIndex:"isDevice",valueEnum:{0:{text:"\u5E97\u94FA",status:"Processing"},1:{text:"\u8BBE\u5907",status:"Success"},2:{text:"\u8BBE\u5907\u626B\u7801",status:"Warning"}}},{title:"\u72B6\u6001",dataIndex:"status",valueEnum:{0:{text:"\u4E0A\u67B6",status:"Processing"},1:{text:"\u4E0B\u67B6",status:"Success"}}},{title:"\u4F30\u6E05",dataIndex:"stopSales",valueEnum:{0:{text:"\u9500\u552E",status:"Processing"},1:{text:"\u4F30\u6E05",status:"Success"}}},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(F,f){return[(0,c.jsx)("a",{onClick:function(){I(f),E(!0)},children:"\u7F16\u8F91"},"update"),(0,c.jsx)(ie.Z,{title:"\u786E\u5B9A\u8981".concat(f.stopSales==0?"\u4F30\u6E05":"\u9500\u552E","\u5417\uFF1F"),onConfirm:(0,y.Z)((0,n.Z)().mark(function D(){var Z,v,p;return(0,n.Z)().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:return Z=0,f.stopSales==0?Z=1:Z=0,v=[{goodsId:f.foodId,storeId:f.storeId,StopSales:Z}],T.next=5,De(v);case 5:p=T.sent,p.statusCode===200&&p.data?(x.default.success("\u64CD\u4F5C\u6210\u529F\uFF01"),l.current.reload()):x.default.error(JSON.stringify(p.errors)||"\u64CD\u4F5C\u5931\u8D25");case 7:case"end":return T.stop()}},D)})),okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",children:(0,c.jsx)("a",{onClick:(0,y.Z)((0,n.Z)().mark(function D(){return(0,n.Z)().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:case"end":return v.stop()}},D)})),children:f.stopSales==0?"\u4F30\u6E05":"\u9500\u552E"})},"stopSales"),(0,c.jsx)(ie.Z,{title:"\u786E\u5B9A\u8981".concat(f.status==0?"\u4E0B\u67B6":"\u4E0A\u67B6","\u5417\uFF1F"),onConfirm:(0,y.Z)((0,n.Z)().mark(function D(){var Z;return(0,n.Z)().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return f.status=f.status==0?1:0,p.next=3,Fe(f);case 3:Z=p.sent,Z.data?(l.current.reload(),x.default.success("\u64CD\u4F5C\u6210\u529F\uFF01")):x.default.error(JSON.stringify(Z.errors)||"\u64CD\u4F5C\u5931\u8D25");case 5:case"end":return p.stop()}},D)})),okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",children:(0,c.jsx)("a",{children:f.status==0?"\u4E0B\u67B6":"\u4E0A\u67B6"})},"status"),(0,c.jsx)(Te.Z,{menu:{items:a,selectable:!0,onClick:U,defaultSelectedKeys:[]},trigger:["click"],children:(0,c.jsx)("a",{onClick:function(Z){U(Z,f)},children:(0,c.jsx)(me.Z,{children:"\u5236\u4F5C\u65B9\u5F0F"})})}),(0,c.jsx)("a",{onClick:function(){P.m8.push({pathname:"/store/storeAddGoodsInfo",query:{isAdd:!1,values:f,storeId:t.storeId}})},children:"\u52A0\u8D2D\u5546\u54C1"},"config")]}}];return(0,w.useEffect)(function(){C([{key:"1",label:"\u8BBE\u5907\u5236\u4F5C"},{key:"0",label:"\u5E97\u94FA\u5236\u4F5C"},{key:"2",label:"\u8BBE\u5907\u626B\u7801\u5236\u4F5C"}])},[]),(0,c.jsxs)(N.Z,{destroyOnClose:!0,footer:null,width:1200,title:t.foodMenu.name,visible:t.open,onCancel:t.onCancel,children:[(0,c.jsx)(oe.ZP,{columns:ce,actionRef:l,pagination:{pageSize:10},request:(0,y.Z)((0,n.Z)().mark(function G(){var F,f,D,Z,v,p=arguments;return(0,n.Z)().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:if(f=p.length>0&&p[0]!==void 0?p[0]:{},D=p.length>1?p[1]:void 0,Z=p.length>2?p[2]:void 0,!(t.storeId&&(F=t.foodMenu)!==null&&F!==void 0&&F.id)){T.next=12;break}return T.next=6,ke((0,B.Z)((0,B.Z)({},f),{},{goodsName:f.goods_Name,storeId:t.storeId,foodMenuId:t.foodMenu.id}));case 6:if(v=T.sent,v.statusCode!==200){T.next=11;break}return T.abrupt("return",{data:v.data.data,success:!0,total:v.data.total});case 11:return T.abrupt("return",[]);case 12:return T.abrupt("return",[]);case 13:case"end":return T.stop()}},G)})),rowKey:"id",headerTitle:"\u5546\u54C1\u5217\u8868"}),m&&h&&(0,c.jsx)(Pe,{open:m,goods:h,onCancel:function(){return E(!1)},onOk:function(){l.current.reload(),E(!1)}}),d&&(0,c.jsx)(Ae,{open:d,goods:h,foodMenu:t.foodMenu,storeId:t.storeId,isDevice:$,onCancel:function(){return o(!1)},onOk:function(){l.current.reload(),o(!1)}})]})},Be=$e,Se=u(86582),Le=function(t){var l=(0,w.useRef)(),e=(0,w.useState)([]),k=(0,M.Z)(e,2),m=k[0],E=k[1],b=[{title:"\u83DC\u8C31\u540D\u79F0",dataIndex:"name"},{title:"\u83DC\u8C31\u7F16\u7801",dataIndex:"code",hideInSearch:!0},{title:"\u83DC\u8C31\u6392\u5E8F",dataIndex:"sort",hideInSearch:!0}],O=function(){var I=(0,y.Z)((0,n.Z)().mark(function g(){var S;return(0,n.Z)().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,Ee({foodMenuIds:m,storeId:t.storeId});case 2:S=o.sent,S.statusCode===200?(x.default.success("\u7ED1\u5B9A\u6210\u529F\uFF01"),t.onOk()):x.default.error(S.errors||"\u7ED1\u5B9A\u83DC\u8C31\u5931\u8D25");case 4:case"end":return o.stop()}},g)}));return function(){return I.apply(this,arguments)}}(),h=function(){var I=(0,y.Z)((0,n.Z)().mark(function g(){var S,d,o,s;return(0,n.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(t.storeId){a.next=2;break}return a.abrupt("return",[]);case 2:return a.next=4,he({current:1,pageSize:999,storeId:t.storeId});case 4:S=a.sent,S.statusCode===200&&(s=[],(d=S.data)===null||d===void 0||(o=d.data)===null||o===void 0||o.forEach(function(C){s.push(C.id)}),E(s));case 6:case"end":return a.stop()}},g)}));return function(){return I.apply(this,arguments)}}();return(0,w.useEffect)(function(){h()},[]),(0,c.jsx)(N.Z,{destroyOnClose:!0,width:1200,title:"\u7ED1\u5B9A\u83DC\u8C31",visible:t.open,onOk:O,onCancel:t.onCancel,children:(0,c.jsx)(oe.ZP,{columns:b,actionRef:l,pagination:{pageSize:10},request:(0,y.Z)((0,n.Z)().mark(function I(){var g,S,d,o,s=arguments;return(0,n.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(g=s.length>0&&s[0]!==void 0?s[0]:{},S=s.length>1?s[1]:void 0,d=s.length>2?s[2]:void 0,!t.storeId){a.next=12;break}return a.next=6,Oe((0,B.Z)({},g));case 6:if(o=a.sent,o.statusCode!==200){a.next=11;break}return a.abrupt("return",{data:o.data.data,success:!0,total:o.data.total});case 11:return a.abrupt("return",[]);case 12:return a.abrupt("return",[]);case 13:case"end":return a.stop()}},I)})),rowSelection:{type:"checkbox",selectedRowKeys:m,onSelect:function(g,S){var d=(0,Se.Z)(m),o=d.findIndex(function(s){return s===g.id});S?o<0&&d.push(g.id):o>-1&&d.splice(o,1),E(d)},onSelectAll:function(g,S,d){var o=(0,Se.Z)(m);g?S.forEach(function(s){if(!!s){var i=o.findIndex(function(a){return a===s.id});i<0&&o.push(s.id)}}):d.forEach(function(s){var i=o.findIndex(function(a){return a===s.id});i>-1&&o.splice(i,1)}),E(o)}},tableAlertOptionRender:function(){return(0,c.jsx)(me.Z,{size:16,children:(0,c.jsx)(ie.Z,{title:"\u6B64\u64CD\u4F5C\u4F1A\u53D6\u6D88\u6240\u6709\u9009\u4E2D\u9879\uFF0C\u786E\u5B9A\u8981\u53D6\u6D88\u5417\uFF1F",onConfirm:function(){return E([])},okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",children:(0,c.jsx)("a",{children:"\u53D6\u6D88\u9009\u62E9"})})})},rowKey:"id",headerTitle:"\u83DC\u8C31\u5217\u8868"})})},We=Le,ht=Ce.Z.TabPane,vt="message",Ne=function(t){var l=(0,w.useRef)(),e=(0,w.useState)([]),k=(0,M.Z)(e,2),m=k[0],E=k[1],b=(0,w.useState)(),O=(0,M.Z)(b,2),h=O[0],I=O[1],g=(0,w.useState)(!1),S=(0,M.Z)(g,2),d=S[0],o=S[1],s=(0,w.useState)(),i=(0,M.Z)(s,2),a=i[0],C=i[1],j=(0,w.useState)(!1),A=(0,M.Z)(j,2),$=A[0],L=A[1],U=function(){var G=(0,y.Z)((0,n.Z)().mark(function F(){var f,D;return(0,n.Z)().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.next=2,we({current:1,pageSize:999});case 2:f=v.sent,f.statusCode===200?((D=f.data)===null||D===void 0||D.forEach(function(p){p.value=p.id,p.label=p.name}),f.data.length>0&&I(f.data[0].id),E(f.data)):x.default.error(JSON.stringify(f.errors)||"\u83B7\u53D6\u95E8\u5E97\u5217\u8868\u5931\u8D25\uFF01");case 4:case"end":return v.stop()}},F)}));return function(){return G.apply(this,arguments)}}(),ce=[{title:"\u5E97\u94FA",dataIndex:"storeId",valueType:"select",hideInTable:!0,fieldProps:{options:m,value:h,onChange:function(F){I(F)}}},{title:"\u83DC\u8C31\u540D\u79F0",dataIndex:"name",hideInSearch:!0},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(F,f){return[(0,c.jsx)("a",{onClick:function(){C(f),o(!0)},children:"\u83DC\u8C31\u5546\u54C1"},"food-menu-list")]}}];return(0,w.useEffect)(function(){U()},[]),(0,w.useEffect)(function(){h&&l.current&&l.current.reload()},[h]),(0,c.jsxs)(Ie.ZP,{children:[(0,c.jsx)(oe.ZP,{columns:ce,actionRef:l,pagination:{pageSize:10},request:(0,y.Z)((0,n.Z)().mark(function G(){var F,f,D,Z,v=arguments;return(0,n.Z)().wrap(function(R){for(;;)switch(R.prev=R.next){case 0:if(F=v.length>0&&v[0]!==void 0?v[0]:{},f=v.length>1?v[1]:void 0,D=v.length>2?v[2]:void 0,h){R.next=5;break}return R.abrupt("return",[]);case 5:return R.next=7,he((0,B.Z)((0,B.Z)({},F),{},{storeId:h}));case 7:if(Z=R.sent,Z.statusCode!==200){R.next=10;break}return R.abrupt("return",{data:Z.data.data,success:!0,total:Z.data.total});case 10:return R.abrupt("return",[]);case 11:case"end":return R.stop()}},G)})),rowKey:"id",headerTitle:"\u83DC\u8C31\u5217\u8868",toolBarRender:function(){return[(0,c.jsx)(pe.Z,{icon:(0,c.jsx)(Ze.Z,{}),onClick:function(){L(!0)},type:"primary",children:"\u5173\u8054\u52A0\u76DF\u5546\u83DC\u8C31"},"button")]}}),d&&h&&a&&(0,c.jsx)(Be,{foodMenu:a,open:d,storeId:h,onCancel:function(){return o(!1)},onOk:function(){return o(!1)}}),$&&h&&(0,c.jsx)(We,{open:$,storeId:h,onCancel:function(){return L(!1)},onOk:function(){var F;L(!1),(F=l.current)===null||F===void 0||F.reload()}})]})},Ue=Ne},98858:function(ye,K,u){"use strict";var fe=u(38663),pe=u.n(fe),B=u(52953),n=u.n(B)}}]); +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[8099,1322],{52953:function(){},98712:function(ye,K,u){"use strict";u.r(K),u.d(K,{default:function(){return Ue}});var fe=u(57663),pe=u(71577),B=u(11849),n=u(39428),Ke=u(34792),x=u(48086),y=u(3182),M=u(2824),Ye=u(18106),Ce=u(95562),Ze=u(49101),w=u(67294),Ie=u(78009),P=u(48971);function we(r){return Y.apply(this,arguments)}function Y(){return Y=(0,y.Z)((0,n.Z)().mark(function r(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,P.WY)("/kitchen/api/Store/GetStoreList",{method:"POST",data:t}));case 1:case"end":return e.stop()}},r)})),Y.apply(this,arguments)}function ze(r){return z.apply(this,arguments)}function z(){return z=_asyncToGenerator(_regeneratorRuntime().mark(function r(t){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("/kitchen/api/select/GetCokingWorkList"));case 1:case"end":return e.stop()}},r)})),z.apply(this,arguments)}function ke(r){return _.apply(this,arguments)}function _(){return _=(0,y.Z)((0,n.Z)().mark(function r(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,P.WY)("\u200B\u200B/kitchen/api/Store/GetStoreGoods",{method:"POST",data:t}));case 1:case"end":return e.stop()}},r)})),_.apply(this,arguments)}function Fe(r){return J.apply(this,arguments)}function J(){return J=(0,y.Z)((0,n.Z)().mark(function r(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,P.WY)("/kitchen/api/Store/UpdateStoreGood",{method:"put",data:t}));case 1:case"end":return e.stop()}},r)})),J.apply(this,arguments)}function De(r){return V.apply(this,arguments)}function V(){return V=(0,y.Z)((0,n.Z)().mark(function r(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,P.WY)("/kitchen/api/goods/stopgoods",{method:"POST",data:t}));case 1:case"end":return e.stop()}},r)})),V.apply(this,arguments)}function je(r){return X.apply(this,arguments)}function X(){return X=(0,y.Z)((0,n.Z)().mark(function r(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,P.WY)("/kitchen/api/Store/UpdateStoreGood",{method:"put",data:t}));case 1:case"end":return e.stop()}},r)})),X.apply(this,arguments)}function _e(r){return H.apply(this,arguments)}function H(){return H=_asyncToGenerator(_regeneratorRuntime().mark(function r(t){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("/kitchen/api/store-info/store-good",{method:"POST",data:t}));case 1:case"end":return e.stop()}},r)})),H.apply(this,arguments)}function Je(r){return Q.apply(this,arguments)}function Q(){return Q=_asyncToGenerator(_regeneratorRuntime().mark(function r(t){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("/kitchen/api/store-info/del-store-good",{method:"POST",data:t}));case 1:case"end":return e.stop()}},r)})),Q.apply(this,arguments)}function Ve(){return q.apply(this,arguments)}function q(){return q=_asyncToGenerator(_regeneratorRuntime().mark(function r(){var t;return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t={current:1,pageSize:1e3,goods_Enable:0},e.abrupt("return",request("/kitchen/api/goods/goodss",{method:"Post",data:t}));case 2:case"end":return e.stop()}},r)})),q.apply(this,arguments)}function Xe(r){return request("/kitchen//api/Store/StoreGoodsAllUpdate",{method:"post",data:r})}function He(r){return request("/kitchen/api/log/request-log-page",{method:"post",data:r})}function he(r){return ee.apply(this,arguments)}function ee(){return ee=(0,y.Z)((0,n.Z)().mark(function r(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,P.WY)("/kitchen/api/FoodMenu/GetShopFoodMenuPage",{method:"POST",data:t}));case 1:case"end":return e.stop()}},r)})),ee.apply(this,arguments)}function Qe(r){return te.apply(this,arguments)}function te(){return te=_asyncToGenerator(_regeneratorRuntime().mark(function r(t){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("/kitchen/api/FoodMenu/GetFoodMenuGoodsPage_V2",{method:"POST",data:_objectSpread({},t)}));case 1:case"end":return e.stop()}},r)})),te.apply(this,arguments)}function Ge(r){return re.apply(this,arguments)}function re(){return re=(0,y.Z)((0,n.Z)().mark(function r(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,P.WY)("/kitchen/api/Device/GetDeviceInfoPage",{method:"POST",data:t}));case 1:case"end":return e.stop()}},r)})),re.apply(this,arguments)}function ve(r){return ne.apply(this,arguments)}function ne(){return ne=(0,y.Z)((0,n.Z)().mark(function r(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,P.WY)("/kitchen/api/goodes/AddGoodDevice",{method:"POST",data:t}));case 1:case"end":return e.stop()}},r)})),ne.apply(this,arguments)}function xe(r,t){return ae.apply(this,arguments)}function ae(){return ae=(0,y.Z)((0,n.Z)().mark(function r(t,l){return(0,n.Z)().wrap(function(k){for(;;)switch(k.prev=k.next){case 0:return k.abrupt("return",(0,P.WY)("/kitchen/api/goodes/GetGoodDevice?foodId=".concat(t,"&storeId=").concat(l),{method:"GET"}));case 1:case"end":return k.stop()}},r)})),ae.apply(this,arguments)}function Oe(r){return se.apply(this,arguments)}function se(){return se=(0,y.Z)((0,n.Z)().mark(function r(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,P.WY)("/kitchen/api/FoodMenu/GetFoodMenuInfoPage",{method:"POST",data:t}));case 1:case"end":return e.stop()}},r)})),se.apply(this,arguments)}function Ee(r){return ue.apply(this,arguments)}function ue(){return ue=(0,y.Z)((0,n.Z)().mark(function r(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,P.WY)("/kitchen/api/FoodMenu/StoreAddFoodMenuNew",{method:"POST",data:t}));case 1:case"end":return e.stop()}},r)})),ue.apply(this,arguments)}var oe=u(16894),qe=u(71194),et=u(77883),tt=u(9715),rt=u(47673),nt=u(43358),c=u(85893),at=function(t){var l=_Select.Option,e=_Select.OptGroup,k=useState([]),m=_slicedToArray(k,2),E=m[0],b=m[1],O=useState([]),h=_slicedToArray(O,2),I=h[0],g=h[1];return _jsx(_Modal,{title:t.values.id?"\u7F16\u8F91":"\u65B0\u5EFA",width:640,visible:t.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){t.onCancel()},destroyOnClose:!0,children:_jsxs(_Form,{layout:"vertical",preserve:!1,initialValues:t.values,onFinish:t.onFinish,children:[_jsx(_Form.Item,{name:"id",hidden:!0,children:_jsx(_Input,{})}),_jsx(_Form.Item,{label:"\u4EF7\u683C",name:"price",rules:[{required:!0}],children:_jsx(_InputNumber,{placeholder:"\u4EF7\u683C",min:0})}),_jsx(_Form.Item,{label:"\u4F1A\u5458\u4EF7\u683C",name:"vipPrice",rules:[{required:!0}],children:_jsx(_InputNumber,{placeholder:"\u4EF7\u683C",min:0})}),_jsx(_Form.Item,{label:"\u72B6\u6001",name:"status",rules:[{required:!0}],children:_jsxs(_Select,{placeholder:"\u72B6\u6001",children:[_jsx(l,{value:1,children:"\u4E0B\u67B6"}),_jsx(l,{value:0,children:"\u4E0A\u67B6"})]})}),_jsx(_Form.Item,{children:_jsx(_Button,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})})},st=null,ut=u(57338),ot=u(98858),it=function(t){var l=useRef(),e=useState({}),k=_slicedToArray(e,2),m=k[0],E=k[1],b=useState(!1),O=_slicedToArray(b,2),h=O[0],I=O[1],g=function(){var s=_asyncToGenerator(_regeneratorRuntime().mark(function i(a){return _regeneratorRuntime().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:E({ip:a.ip,refererUrl:a.refererUrl,requestUrl:a.requestURL,parameters:a.requestData,returnResult:a.resultData});case 1:case"end":return j.stop()}},i)}));return function(a){return s.apply(this,arguments)}}(),S=new Map;S.set(!0,{text:"\u5F02\u5E38",status:"Error"}),S.set(!1,{text:"\u6B63\u5E38",status:"Success"});var d=[{title:"\u4E3B\u952E",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684key",hideInSearch:!0,hideInTable:!0},{title:"\u64CD\u4F5C\u4EBA",dataIndex:"name",valueType:"textarea"},{title:"\u64CD\u4F5C\u8BF4\u660E",dataIndex:"methodName",valueType:"textarea",hideInSearch:!0},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"createAt",valueType:"date",hideInForm:!0},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(i,a){return[_jsx("a",{onClick:_asyncToGenerator(_regeneratorRuntime().mark(function C(){return _regeneratorRuntime().wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return A.next=2,g(a);case 2:I(!0);case 3:case"end":return A.stop()}},C)})),children:"\u8BE6\u60C5"},a.id)]}}],o=useIntl();return _jsxs(PageContainer,{children:[_jsx(ProTable,{search:!1,headerTitle:"\u64CD\u4F5C\u65E5\u5FD7",actionRef:l,rowKey:"id",request:function(){var s=_asyncToGenerator(_regeneratorRuntime().mark(function i(a){var C,j;return _regeneratorRuntime().wrap(function($){for(;;)switch($.prev=$.next){case 0:return C=[],j=0,a.value=t.storeId,a.method=["AddStoreGoodAsync","DelStoreGoodAsync","UpdateStoreGoodsAsync"],$.next=6,GetRequestLogPageAsync(JSON.stringify(a)).then(function(L){C=L.data.data,j=L.data.total});case 6:return $.abrupt("return",{data:C,success:!0,total:j});case 7:case"end":return $.stop()}},i)}));return function(i){return s.apply(this,arguments)}}(),columns:d,pagination:{defaultPageSize:10}}),_jsxs(_Drawer,{title:"\u8BE6\u60C5",placement:"right",size:"large",onClose:function(){I(!1)},visible:h,children:[_jsxs(_Descriptions,{column:1,children:[_jsx(_Descriptions.Item,{label:"\u64CD\u4F5CIP",children:_jsx(Field,{text:m.ip})}),_jsx(_Descriptions.Item,{label:"\u53C2\u8003\u5730\u5740",children:_jsx(Field,{text:m.refererUrl})}),_jsx(_Descriptions.Item,{label:"\u8BF7\u6C42\u5730\u5740",children:_jsx(Field,{text:m.requestUrl})})]}),_jsxs(_Descriptions,{children:[_jsxs(_Descriptions.Item,{label:"\u8BF7\u6C42\u6570\u636E",children:[_jsx("a",{onClick:function(){var i=document.createElement("input");i.value=m.parameters,document.body.appendChild(i),i.select(),document.execCommand("Copy"),_message.success("\u590D\u5236\u6210\u529F"),i.remove()},children:_jsx(CopyOutlined,{})}),_jsx("div",{style:{width:"220px",overflow:"scroll",overflowX:"auto"},children:_jsx(Field,{text:m.parameters,valueType:"jsonCode"})})]}),_jsxs(_Descriptions.Item,{label:"\u8FD4\u56DE\u6570\u636E",children:[_jsx("a",{onClick:function(){var i=document.createElement("input");i.value=m.returnResult,document.body.appendChild(i),i.select(),document.execCommand("Copy"),_message.success("\u590D\u5236\u6210\u529F"),i.remove()},children:_jsx(CopyOutlined,{})}),_jsx("div",{style:{width:"400px",overflow:"scroll",overflowX:"auto"},children:_jsx(Field,{text:m.returnResult,valueType:"jsonCode"})})]})]})]},"1")]})},lt=null,N=u(50146),dt=u(59250),Te=u(13013),ct=u(49111),me=u(19650),ft=u(62350),ie=u(24565),ge=u(85986),Me=u(4107),W=u(55843),le=u(34041),de="message",be=function(t){var l=le.Z.Option,e=W.Z.useForm(),k=(0,M.Z)(e,1),m=k[0],E=function(){t.goods&&m.setFieldsValue(t.goods)},b=function(){var O=(0,y.Z)((0,n.Z)().mark(function h(){var I,g;return(0,n.Z)().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.next=2,m.validateFields();case 2:return I=d.sent,d.prev=3,x.default.loading("\u6B63\u5728\u4FEE\u6539",de),x.default.destroy(de),d.next=8,je((0,B.Z)((0,B.Z)({},t.goods),I));case 8:g=d.sent,x.default.destroy(de),g.statusCode===200?(x.default.success("\u4FEE\u6539\u6210\u529F"),t.onOk()):x.default.success("\u4FEE\u6539\u5931\u8D25"),d.next=16;break;case 13:d.prev=13,d.t0=d.catch(3),x.default.error("\u4FEE\u6539\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01");case 16:case"end":return d.stop()}},h,null,[[3,13]])}));return function(){return O.apply(this,arguments)}}();return(0,w.useEffect)(function(){E()},[]),(0,c.jsx)(N.Z,{title:"\u7F16\u8F91\u3010".concat(t.goods.goods_Name,"\u3011"),width:640,visible:t.open,onOk:b,onCancel:t.onCancel,destroyOnClose:!0,children:(0,c.jsxs)(W.Z,{layout:"vertical",form:m,children:[(0,c.jsx)(W.Z.Item,{name:"id",hidden:!0,children:(0,c.jsx)(Me.Z,{})}),(0,c.jsx)(W.Z.Item,{label:"\u4EF7\u683C",name:"price",rules:[{required:!0}],children:(0,c.jsx)(ge.Z,{placeholder:"\u4EF7\u683C",min:0})}),(0,c.jsx)(W.Z.Item,{label:"\u4F1A\u5458\u4EF7\u683C",name:"vipPrice",rules:[{required:!0}],children:(0,c.jsx)(ge.Z,{placeholder:"\u4EF7\u683C",min:0})}),(0,c.jsx)(W.Z.Item,{label:"\u72B6\u6001",name:"status",rules:[{required:!0}],children:(0,c.jsxs)(le.Z,{placeholder:"\u72B6\u6001",children:[(0,c.jsx)(l,{value:1,children:"\u4E0B\u67B6"}),(0,c.jsx)(l,{value:0,children:"\u4E0A\u67B6"})]})})]})})},Pe=be,pt="message",Re=function(t){var l=(0,w.useState)([]),e=(0,M.Z)(l,2),k=e[0],m=e[1],E=(0,w.useState)([]),b=(0,M.Z)(E,2),O=b[0],h=b[1],I=function(){var d=(0,y.Z)((0,n.Z)().mark(function o(){var s,i;return(0,n.Z)().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return s=[],O.forEach(function(j){s.push({deviceId:j})}),C.next=4,ve({foodMenuId:t.foodMenu.id,foods:t.goods.goodsId,isDevice:t.isDevice,deviceIds:s});case 4:i=C.sent,i.statusCode===200?(x.default.success("\u7ED1\u5B9A\u6210\u529F\uFF01"),t.onOk()):x.default.error(JSON.stringify(i.errors)||"\u5546\u54C1\u7ED1\u5B9A\u8BBE\u5907\u5931\u8D25");case 6:case"end":return C.stop()}},o)}));return function(){return d.apply(this,arguments)}}(),g=function(){var d=(0,y.Z)((0,n.Z)().mark(function o(){var s,i;return(0,n.Z)().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return C.next=2,Ge({current:1,pageSize:999,storeId:t.storeId});case 2:i=C.sent,i.statusCode===200&&(s=i.data)!==null&&s!==void 0&&s.data?(i.data.data.forEach(function(j){j.label=j.deviceName,j.value=j.id}),m(i.data.data)):x.default.error(JSON.stringify(i.errors)||"\u83B7\u53D6\u8BBE\u5907\u5217\u8868\u5931\u8D25");case 4:case"end":return C.stop()}},o)}));return function(){return d.apply(this,arguments)}}(),S=function(){var d=(0,y.Z)((0,n.Z)().mark(function o(){var s;return(0,n.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(!(t.goods&&t.storeId)){a.next=5;break}return a.next=3,xe(t.goods.goodsId,t.storeId);case 3:s=a.sent,s.statusCode===200&&h(s.data);case 5:case"end":return a.stop()}},o)}));return function(){return d.apply(this,arguments)}}();return(0,w.useEffect)(function(){g(),S()},[]),(0,c.jsx)(N.Z,{title:"\u3010".concat(t.goods.goods_Name,"\u3011\u7ED1\u5B9A\u8BBE\u5907"),width:640,bodyStyle:{height:"300px"},visible:t.open,onOk:I,onCancel:t.onCancel,destroyOnClose:!0,children:(0,c.jsx)(le.Z,{mode:"multiple",allowClear:!0,style:{width:"100%"},placeholder:"\u8BF7\u9009\u62E9\u8BBE\u5907\uFF01",onChange:h,options:k,value:O})})},Ae=Re,$e=function(t){var l=(0,w.useRef)(),e=(0,w.useState)(!1),k=(0,M.Z)(e,2),m=k[0],E=k[1],b=(0,w.useState)(),O=(0,M.Z)(b,2),h=O[0],I=O[1],g=(0,w.useState)(!1),S=(0,M.Z)(g,2),d=S[0],o=S[1],s=(0,w.useState)([]),i=(0,M.Z)(s,2),a=i[0],C=i[1],j=(0,w.useState)(0),A=(0,M.Z)(j,2),$=A[0],L=A[1],U=function(){var G=(0,y.Z)((0,n.Z)().mark(function F(f,D){var Z;return(0,n.Z)().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:if(!(f.key=="1"||f.key=="2")){p.next=5;break}L(f.key),o(!0),p.next=13;break;case 5:if(I(D),f.key!="0"){p.next=13;break}return console.log(h),p.next=10,ve({foodMenuId:h.foodMenuId,foods:h.goodsId,deviceIds:[],isDevice:f.key});case 10:Z=p.sent,console.log(Z),Z.statusCode===200?(x.default.success("\u4FEE\u6539\u6210\u529F\uFF01"),l.current.reload()):x.default.error(JSON.stringify(Z.errors)||"\u4FEE\u6539\u5931\u8D25");case 13:case"end":return p.stop()}},F)}));return function(f,D){return G.apply(this,arguments)}}(),ce=[{title:"\u4E3B\u952E",dataIndex:"id",hideInSearch:!0,hideInTable:!0,tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key"},{title:"\u5546\u54C1",dataIndex:"goods_Name",valueType:"textarea"},{title:"\u5546\u54C1\u4EF7\u683C",dataIndex:"price",valueType:"money",hideInSearch:!0},{title:"\u5546\u54C1\u4F1A\u5458\u4EF7\u683C",dataIndex:"vipPrice",valueType:"money",hideInSearch:!0},{title:"\u5236\u4F5C\u65B9\u5F0F",dataIndex:"isDevice",valueEnum:{0:{text:"\u5E97\u94FA",status:"Processing"},1:{text:"\u8BBE\u5907",status:"Success"},2:{text:"\u8BBE\u5907\u626B\u7801",status:"Warning"}}},{title:"\u72B6\u6001",dataIndex:"status",valueEnum:{0:{text:"\u4E0A\u67B6",status:"Processing"},1:{text:"\u4E0B\u67B6",status:"Success"}}},{title:"\u4F30\u6E05",dataIndex:"stopSales",valueEnum:{0:{text:"\u9500\u552E",status:"Processing"},1:{text:"\u4F30\u6E05",status:"Success"}}},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(F,f){return[(0,c.jsx)("a",{onClick:function(){I(f),E(!0)},children:"\u7F16\u8F91"},"update"),(0,c.jsx)(ie.Z,{title:"\u786E\u5B9A\u8981".concat(f.stopSales==0?"\u4F30\u6E05":"\u9500\u552E","\u5417\uFF1F"),onConfirm:(0,y.Z)((0,n.Z)().mark(function D(){var Z,v,p;return(0,n.Z)().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:return Z=0,f.stopSales==0?Z=1:Z=0,v=[{goodsId:f.foodId,storeId:f.storeId,StopSales:Z}],T.next=5,De(v);case 5:p=T.sent,p.statusCode===200&&p.data?(x.default.success("\u64CD\u4F5C\u6210\u529F\uFF01"),l.current.reload()):x.default.error(JSON.stringify(p.errors)||"\u64CD\u4F5C\u5931\u8D25");case 7:case"end":return T.stop()}},D)})),okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",children:(0,c.jsx)("a",{onClick:(0,y.Z)((0,n.Z)().mark(function D(){return(0,n.Z)().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:case"end":return v.stop()}},D)})),children:f.stopSales==0?"\u4F30\u6E05":"\u9500\u552E"})},"stopSales"),(0,c.jsx)(ie.Z,{title:"\u786E\u5B9A\u8981".concat(f.status==0?"\u4E0B\u67B6":"\u4E0A\u67B6","\u5417\uFF1F"),onConfirm:(0,y.Z)((0,n.Z)().mark(function D(){var Z;return(0,n.Z)().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return f.status=f.status==0?1:0,p.next=3,Fe(f);case 3:Z=p.sent,Z.data?(l.current.reload(),x.default.success("\u64CD\u4F5C\u6210\u529F\uFF01")):x.default.error(JSON.stringify(Z.errors)||"\u64CD\u4F5C\u5931\u8D25");case 5:case"end":return p.stop()}},D)})),okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",children:(0,c.jsx)("a",{children:f.status==0?"\u4E0B\u67B6":"\u4E0A\u67B6"})},"status"),(0,c.jsx)(Te.Z,{menu:{items:a,selectable:!0,onClick:U,defaultSelectedKeys:[]},trigger:["click"],children:(0,c.jsx)("a",{onClick:function(Z){U(Z,f)},children:(0,c.jsx)(me.Z,{children:"\u5236\u4F5C\u65B9\u5F0F"})})}),(0,c.jsx)("a",{onClick:function(){P.m8.push({pathname:"/store/storeAddGoodsInfo",query:{isAdd:!1,values:f,storeId:t.storeId}})},children:"\u52A0\u8D2D\u5546\u54C1"},"config")]}}];return(0,w.useEffect)(function(){C([{key:"1",label:"\u8BBE\u5907\u5236\u4F5C"},{key:"0",label:"\u5E97\u94FA\u5236\u4F5C"},{key:"2",label:"\u8BBE\u5907\u626B\u7801\u5236\u4F5C"}])},[]),(0,c.jsxs)(N.Z,{destroyOnClose:!0,footer:null,width:1200,title:t.foodMenu.name,visible:t.open,onCancel:t.onCancel,children:[(0,c.jsx)(oe.ZP,{columns:ce,actionRef:l,pagination:{pageSize:10},request:(0,y.Z)((0,n.Z)().mark(function G(){var F,f,D,Z,v,p=arguments;return(0,n.Z)().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:if(f=p.length>0&&p[0]!==void 0?p[0]:{},D=p.length>1?p[1]:void 0,Z=p.length>2?p[2]:void 0,!(t.storeId&&(F=t.foodMenu)!==null&&F!==void 0&&F.id)){T.next=12;break}return T.next=6,ke((0,B.Z)((0,B.Z)({},f),{},{goodsName:f.goods_Name,storeId:t.storeId,foodMenuId:t.foodMenu.id}));case 6:if(v=T.sent,v.statusCode!==200){T.next=11;break}return T.abrupt("return",{data:v.data.data,success:!0,total:v.data.total});case 11:return T.abrupt("return",[]);case 12:return T.abrupt("return",[]);case 13:case"end":return T.stop()}},G)})),rowKey:"id",headerTitle:"\u5546\u54C1\u5217\u8868"}),m&&h&&(0,c.jsx)(Pe,{open:m,goods:h,onCancel:function(){return E(!1)},onOk:function(){l.current.reload(),E(!1)}}),d&&(0,c.jsx)(Ae,{open:d,goods:h,foodMenu:t.foodMenu,storeId:t.storeId,isDevice:$,onCancel:function(){return o(!1)},onOk:function(){l.current.reload(),o(!1)}})]})},Be=$e,Se=u(86582),Le=function(t){var l=(0,w.useRef)(),e=(0,w.useState)([]),k=(0,M.Z)(e,2),m=k[0],E=k[1],b=[{title:"\u83DC\u8C31\u540D\u79F0",dataIndex:"name"},{title:"\u83DC\u8C31\u7F16\u7801",dataIndex:"code",hideInSearch:!0},{title:"\u83DC\u8C31\u6392\u5E8F",dataIndex:"sort",hideInSearch:!0}],O=function(){var I=(0,y.Z)((0,n.Z)().mark(function g(){var S;return(0,n.Z)().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,Ee({foodMenuIds:m,storeId:t.storeId});case 2:S=o.sent,S.statusCode===200?(x.default.success("\u7ED1\u5B9A\u6210\u529F\uFF01"),t.onOk()):x.default.error(S.errors||"\u7ED1\u5B9A\u83DC\u8C31\u5931\u8D25");case 4:case"end":return o.stop()}},g)}));return function(){return I.apply(this,arguments)}}(),h=function(){var I=(0,y.Z)((0,n.Z)().mark(function g(){var S,d,o,s;return(0,n.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(t.storeId){a.next=2;break}return a.abrupt("return",[]);case 2:return a.next=4,he({current:1,pageSize:999,storeId:t.storeId});case 4:S=a.sent,S.statusCode===200&&(s=[],(d=S.data)===null||d===void 0||(o=d.data)===null||o===void 0||o.forEach(function(C){s.push(C.id)}),E(s));case 6:case"end":return a.stop()}},g)}));return function(){return I.apply(this,arguments)}}();return(0,w.useEffect)(function(){h()},[]),(0,c.jsx)(N.Z,{destroyOnClose:!0,width:1200,title:"\u7ED1\u5B9A\u83DC\u8C31",visible:t.open,onOk:O,onCancel:t.onCancel,children:(0,c.jsx)(oe.ZP,{columns:b,actionRef:l,pagination:{pageSize:10},request:(0,y.Z)((0,n.Z)().mark(function I(){var g,S,d,o,s=arguments;return(0,n.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(g=s.length>0&&s[0]!==void 0?s[0]:{},S=s.length>1?s[1]:void 0,d=s.length>2?s[2]:void 0,!t.storeId){a.next=12;break}return a.next=6,Oe((0,B.Z)({},g));case 6:if(o=a.sent,o.statusCode!==200){a.next=11;break}return a.abrupt("return",{data:o.data.data,success:!0,total:o.data.total});case 11:return a.abrupt("return",[]);case 12:return a.abrupt("return",[]);case 13:case"end":return a.stop()}},I)})),rowSelection:{type:"checkbox",selectedRowKeys:m,onSelect:function(g,S){var d=(0,Se.Z)(m),o=d.findIndex(function(s){return s===g.id});S?o<0&&d.push(g.id):o>-1&&d.splice(o,1),E(d)},onSelectAll:function(g,S,d){var o=(0,Se.Z)(m);g?S.forEach(function(s){if(!!s){var i=o.findIndex(function(a){return a===s.id});i<0&&o.push(s.id)}}):d.forEach(function(s){var i=o.findIndex(function(a){return a===s.id});i>-1&&o.splice(i,1)}),E(o)}},tableAlertOptionRender:function(){return(0,c.jsx)(me.Z,{size:16,children:(0,c.jsx)(ie.Z,{title:"\u6B64\u64CD\u4F5C\u4F1A\u53D6\u6D88\u6240\u6709\u9009\u4E2D\u9879\uFF0C\u786E\u5B9A\u8981\u53D6\u6D88\u5417\uFF1F",onConfirm:function(){return E([])},okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",children:(0,c.jsx)("a",{children:"\u53D6\u6D88\u9009\u62E9"})})})},rowKey:"id",headerTitle:"\u83DC\u8C31\u5217\u8868"})})},We=Le,ht=Ce.Z.TabPane,vt="message",Ne=function(t){var l=(0,w.useRef)(),e=(0,w.useState)([]),k=(0,M.Z)(e,2),m=k[0],E=k[1],b=(0,w.useState)(),O=(0,M.Z)(b,2),h=O[0],I=O[1],g=(0,w.useState)(!1),S=(0,M.Z)(g,2),d=S[0],o=S[1],s=(0,w.useState)(),i=(0,M.Z)(s,2),a=i[0],C=i[1],j=(0,w.useState)(!1),A=(0,M.Z)(j,2),$=A[0],L=A[1],U=function(){var G=(0,y.Z)((0,n.Z)().mark(function F(){var f,D;return(0,n.Z)().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.next=2,we({current:1,pageSize:999});case 2:f=v.sent,f.statusCode===200?((D=f.data)===null||D===void 0||D.forEach(function(p){p.value=p.id,p.label=p.name}),f.data.length>0&&I(f.data[0].id),E(f.data)):x.default.error(JSON.stringify(f.errors)||"\u83B7\u53D6\u95E8\u5E97\u5217\u8868\u5931\u8D25\uFF01");case 4:case"end":return v.stop()}},F)}));return function(){return G.apply(this,arguments)}}(),ce=[{title:"\u5E97\u94FA",dataIndex:"storeId",valueType:"select",hideInTable:!0,fieldProps:{options:m,value:h,onChange:function(F){I(F)}}},{title:"\u83DC\u8C31\u540D\u79F0",dataIndex:"name",hideInSearch:!0},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(F,f){return[(0,c.jsx)("a",{onClick:function(){C(f),o(!0)},children:"\u83DC\u8C31\u5546\u54C1"},"food-menu-list")]}}];return(0,w.useEffect)(function(){U()},[]),(0,w.useEffect)(function(){h&&l.current&&l.current.reload()},[h]),(0,c.jsxs)(Ie.ZP,{children:[(0,c.jsx)(oe.ZP,{columns:ce,actionRef:l,pagination:{pageSize:10},request:(0,y.Z)((0,n.Z)().mark(function G(){var F,f,D,Z,v=arguments;return(0,n.Z)().wrap(function(R){for(;;)switch(R.prev=R.next){case 0:if(F=v.length>0&&v[0]!==void 0?v[0]:{},f=v.length>1?v[1]:void 0,D=v.length>2?v[2]:void 0,h){R.next=5;break}return R.abrupt("return",[]);case 5:return R.next=7,he((0,B.Z)((0,B.Z)({},F),{},{storeId:h}));case 7:if(Z=R.sent,Z.statusCode!==200){R.next=10;break}return R.abrupt("return",{data:Z.data.data,success:!0,total:Z.data.total});case 10:return R.abrupt("return",[]);case 11:case"end":return R.stop()}},G)})),rowKey:"id",headerTitle:"\u83DC\u8C31\u5217\u8868",toolBarRender:function(){return[(0,c.jsx)(pe.Z,{icon:(0,c.jsx)(Ze.Z,{}),onClick:function(){L(!0)},type:"primary",children:"\u5173\u8054\u52A0\u76DF\u5546\u83DC\u8C31"},"button")]}}),d&&h&&a&&(0,c.jsx)(Be,{foodMenu:a,open:d,storeId:h,onCancel:function(){return o(!1)},onOk:function(){return o(!1)}}),$&&h&&(0,c.jsx)(We,{open:$,storeId:h,onCancel:function(){return L(!1)},onOk:function(){var F;L(!1),(F=l.current)===null||F===void 0||F.reload()}})]})},Ue=Ne},98858:function(ye,K,u){"use strict";var fe=u(38663),pe=u.n(fe),B=u(52953),n=u.n(B)}}]); diff --git a/dist/p__store__storeInfo.972c18e5.async.js b/dist/p__store__storeInfo.807b8347.async.js similarity index 76% rename from dist/p__store__storeInfo.972c18e5.async.js rename to dist/p__store__storeInfo.807b8347.async.js index 1ed7643..ae376f3 100644 --- a/dist/p__store__storeInfo.972c18e5.async.js +++ b/dist/p__store__storeInfo.807b8347.async.js @@ -1 +1 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[1262,1322],{94075:function(ge,X,o){"use strict";o.r(X),o.d(X,{default:function(){return Rt}});var k=o(57663),j=o(71577),D=o(71194),P=o(50146),g=o(2824),n=o(39428),K=o(34792),s=o(48086),d=o(3182),V=o(49101),y=o(67294),w=o(78009),T=o(85224),R=o(16894),f=o(79361),se=o.n(f),Le=o(62999),le=o(54680),_=o(9715),m=o(55843),ee=o(47673),v=o(4107),ie=o(43358),E=o(34041),r=o(85893),tt=function(t){var p=E.Z.Option,e=E.Z.OptGroup;return(0,r.jsx)(P.Z,{title:t.values.id?"\u7F16\u8F91":"\u65B0\u5EFA",width:640,visible:t.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){t.onCancel()},destroyOnClose:!0,children:(0,r.jsxs)(m.Z,{layout:"Horizontal",labelCol:{span:4},preserve:!1,initialValues:t.values,onFinish:t.onFinish,children:[(0,r.jsx)(m.Z.Item,{name:"id",hidden:!0,children:(0,r.jsx)(v.Z,{})}),(0,r.jsx)(m.Z.Item,{label:"\u5E97\u94FA\u540D\u79F0",name:"store_Name",rules:[{required:!0}],children:(0,r.jsx)(v.Z,{})}),(0,r.jsx)(m.Z.Item,{label:"\u5E97\u94FA\u5730\u5740",name:"store_Addr",rules:[{required:!0}],children:(0,r.jsx)(v.Z,{})}),(0,r.jsx)(m.Z.Item,{label:"\u8054\u7CFB\u7535\u8BDD",name:"store_Tel",rules:[{required:!0}],children:(0,r.jsx)(v.Z,{placeholder:"\u591A\u4E2A\u624B\u673A\u53F7\u7528,\u5206\u9694"})}),(0,r.jsx)(m.Z.Item,{label:"\u72B6\u6001",name:"store_Status",rules:[{required:!0}],children:(0,r.jsx)(E.Z,{placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001",children:(0,r.jsxs)(e,{children:[(0,r.jsx)(E.Z.Option,{value:0,children:"\u6B63\u5E38"}),(0,r.jsx)(E.Z.Option,{value:1,children:"\u505C\u7528"})]})})}),(0,r.jsx)(m.Z.Item,{label:"\u8BBE\u5907\u5206\u7C7B",name:"storeTypeKey",rules:[{required:!0}],children:(0,r.jsx)(E.Z,{children:t.dicData.map(function(l,c){return(0,r.jsx)(E.Z.Option,{index:c,value:l.id,children:l.text},l.id)})})}),(0,r.jsx)(m.Z.Item,{label:"\u56FE\u6807",name:"store_ImgUrl",rules:[{required:!0}],children:(0,r.jsx)(v.Z,{})}),(0,r.jsx)(m.Z.Item,{label:"\u5750\u6807",name:"store_Loc",rules:[{required:!0}],children:(0,r.jsx)(v.Z,{})}),(0,r.jsx)(m.Z.Item,{label:"\u7C7B\u578B",name:"store_TypeId",rules:[{required:!0}],children:(0,r.jsx)(E.Z,{children:t.storeType.map(function(l,c){return(0,r.jsx)(E.Z.Option,{index:c,value:l.id,children:l.text},l.id)})})}),(0,r.jsx)(m.Z.Item,{name:"orgId",label:"\u6240\u5C5E\u673A\u6784",rules:[{required:!0}],children:(0,r.jsx)(le.Z,{style:{width:"100%"},dropdownStyle:{maxHeight:400,overflow:"auto"},treeData:t.OrgData,placeholder:"\u8BF7\u9009\u62E9\u6240\u5C5E\u673A\u6784",treeDefaultExpandAll:!0})}),(0,r.jsx)(m.Z.Item,{label:"\u7B49\u7EA7",name:"store_LevelId",rules:[{required:!0}],children:(0,r.jsx)(E.Z,{children:t.storeLevel.map(function(l,c){return(0,r.jsx)(E.Z.Option,{index:c,value:l.id,children:l.text},l.id)})})}),(0,r.jsx)(m.Z.Item,{children:(0,r.jsx)(j.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})})},rt=tt,qt=o(77883),Ue=o(85986),B=o(48971);function nt(u){return Se.apply(this,arguments)}function Se(){return Se=(0,d.Z)((0,n.Z)().mark(function u(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,B.WY)("\u200B\u200B/kitchen/api/store-info/store-goods",{method:"POST",data:t}));case 1:case"end":return e.stop()}},u)})),Se.apply(this,arguments)}function at(){return we.apply(this,arguments)}function we(){return we=(0,d.Z)((0,n.Z)().mark(function u(){var t;return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t={current:1,pageSize:1e3,goods_Enable:0},e.abrupt("return",(0,B.WY)("/kitchen/api/goods/goodss",{method:"Post",data:t}));case 2:case"end":return e.stop()}},u)})),we.apply(this,arguments)}function ut(u){return be.apply(this,arguments)}function be(){return be=(0,d.Z)((0,n.Z)().mark(function u(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,B.WY)("/kitchen/api/store-info/store-goods",{method:"put",data:t}));case 1:case"end":return e.stop()}},u)})),be.apply(this,arguments)}function st(u){return ke.apply(this,arguments)}function ke(){return ke=(0,d.Z)((0,n.Z)().mark(function u(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,B.WY)("/kitchen/api/store-info/store-goods-status",{method:"put",data:t}));case 1:case"end":return e.stop()}},u)})),ke.apply(this,arguments)}function lt(u){return Ce.apply(this,arguments)}function Ce(){return Ce=(0,d.Z)((0,n.Z)().mark(function u(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,B.WY)("/kitchen/api/store-info/store-good",{method:"POST",data:t}));case 1:case"end":return e.stop()}},u)})),Ce.apply(this,arguments)}function it(u){return je.apply(this,arguments)}function je(){return je=(0,d.Z)((0,n.Z)().mark(function u(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,B.WY)("/kitchen/api/store-info/del-store-good",{method:"POST",data:t}));case 1:case"end":return e.stop()}},u)})),je.apply(this,arguments)}var ot=function(t){var p=E.Z.Option,e=E.Z.OptGroup,l=(0,y.useState)([]),c=(0,g.Z)(l,2),S=c[0],z=c[1];return(0,y.useEffect)(function(){var x=function(){at().then(function($){var q=[];$.data.data.forEach(function(H){q.push({text:H.name,id:H.id})}),z(q)})};x()},[]),(0,r.jsx)(P.Z,{title:t.values.id?"\u7F16\u8F91":"\u65B0\u5EFA",width:640,visible:t.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){t.onCancel()},destroyOnClose:!0,children:(0,r.jsxs)(m.Z,{layout:"vertical",preserve:!1,initialValues:t.values,onFinish:t.onFinish,children:[(0,r.jsx)(m.Z.Item,{name:"id",hidden:!0,children:(0,r.jsx)(v.Z,{})}),(0,r.jsx)(m.Z.Item,{label:"\u5546\u54C1",name:"goods_Id",rules:[{required:!0}],children:(0,r.jsx)(E.Z,{children:S.map(function(x,J){return(0,r.jsx)(E.Z.Option,{index:J,value:x.id,children:x.text},x.id)})})}),(0,r.jsx)(m.Z.Item,{label:"\u4EF7\u683C",name:"price",rules:[{required:!0}],children:(0,r.jsx)(Ue.Z,{placeholder:"\u4EF7\u683C",min:0})}),(0,r.jsx)(m.Z.Item,{label:"\u72B6\u6001",name:"goods_Enable",rules:[{required:!0}],children:(0,r.jsxs)(E.Z,{placeholder:"\u72B6\u6001",children:[(0,r.jsx)(p,{value:1,children:"\u6B63\u5E38"}),(0,r.jsx)(p,{value:0,children:"\u505C\u7528"})]})}),(0,r.jsx)(m.Z.Item,{children:(0,r.jsx)(j.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})})},ct=ot,te="message",dt=function(){var u=(0,d.Z)((0,n.Z)().mark(function t(p){return(0,n.Z)().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.prev=0,s.default.loading("\u6B63\u5728\u4FEE\u6539",te),s.default.destroy(te),l.next=5,ut(JSON.stringify(p)).then(function(c){return s.default.destroy(te),c.data?(s.default.success("\u4FEE\u6539\u6210\u529F"),!0):(s.default.success("\u4FEE\u6539\u5931\u8D25"),!1)});case 5:l.next=11;break;case 7:return l.prev=7,l.t0=l.catch(0),s.default.error("\u4FEE\u6539\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),l.abrupt("return",!1);case 11:case"end":return l.stop()}},t,null,[[0,7]])}));return function(p){return u.apply(this,arguments)}}(),pt=function(){var u=(0,d.Z)((0,n.Z)().mark(function t(p){var e;return(0,n.Z)().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.prev=0,s.default.loading("\u6B63\u5728\u5220\u9664",te),e=[],p.forEach(function(S){e.push(S.id)}),c.next=6,it(e).then(function(S){return s.default.destroy(te),S.data?(s.default.success("\u5220\u9664\u6210\u529F"),!0):(s.default.success("\u5220\u9664\u5931\u8D25"),!1)});case 6:c.next=12;break;case 8:return c.prev=8,c.t0=c.catch(0),s.default.error("\u5220\u9664\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),c.abrupt("return",!1);case 12:case"end":return c.stop()}},t,null,[[0,8]])}));return function(p){return u.apply(this,arguments)}}(),ft=function(t){var p=(0,y.useState)(!1),e=(0,g.Z)(p,2),l=e[0],c=e[1],S=(0,y.useState)(!1),z=(0,g.Z)(S,2),x=z[0],J=z[1],$=(0,y.useRef)(),q=(0,y.useState)(),H=(0,g.Z)(q,2),ce=H[0],Q=H[1],de=(0,y.useState)([]),ae=(0,g.Z)(de,2),me=ae[0],ue=ae[1],pe=function(){var b=(0,d.Z)((0,n.Z)().mark(function h(i){return(0,n.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,i.store_Id=t.values.id,s.default.loading("\u6B63\u5728\u6DFB\u52A0",te),a.next=5,lt(JSON.stringify(i)).then(function(C){return s.default.destroy(te),C.data?(s.default.success("\u6DFB\u52A0\u6210\u529F"),!0):(s.default.error("\u6DFB\u52A0\u5931\u8D25"),!1)});case 5:a.next=11;break;case 7:return a.prev=7,a.t0=a.catch(0),s.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),a.abrupt("return",!1);case 11:case"end":return a.stop()}},h,null,[[0,7]])}));return function(i){return b.apply(this,arguments)}}(),fe=[{title:"\u4E3B\u952E",dataIndex:"id",hideInSearch:!0,hideInTable:!0,tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key"},{title:"\u5546\u54C1",dataIndex:"goods_Name",valueType:"textarea"},{title:"\u5546\u54C1\u4EF7\u683C",dataIndex:"price",valueType:"money"},{title:"\u72B6\u6001",dataIndex:"goods_Enable",valueEnum:{1:{text:"\u6B63\u5E38",status:"Processing"},0:{text:"\u505C\u7528",status:"Success"}}},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"createAt",hideInForm:!0,search:!1},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(h,i){return[(0,r.jsxs)("a",{onClick:function(){c(!0),Q(i)},children:[" ","\u66F4\u65B0"]},"config"),(0,r.jsxs)("a",{onClick:function(){i.goods_Enable=i.goods_Enable==0?1:0,st(i).then(function(a){a.data&&$.current.reload()})},children:[" ",i.goods_Enable==0?"\u505C\u7528":"\u6B63\u5E38"]},"primary"),,(0,r.jsx)("a",{onClick:function(){pt([i]),$.current.reload()},children:"\u5220\u9664"},"config")]}}];return(0,r.jsx)(P.Z,{width:1200,bodyStyle:{padding:"32px 40px 48px"},destroyOnClose:!0,title:"\u5546\u54C1\u4E0A\u67B6",visible:t.storeGoodsModalVisible,footer:!1,onCancel:function(){return t.onCancel()},maskClosable:!1,children:(0,r.jsxs)(w.ZP,{header:{title:"",breadcrumb:{}},children:[(0,r.jsx)(R.ZP,{headerTitle:"",actionRef:$,rowKey:"id",search:!1,toolBarRender:function(){return[(0,r.jsxs)(j.Z,{type:"primary",onClick:function(){c(!0)},children:[(0,r.jsx)(V.Z,{})," \u65B0\u589E\u4E0A\u67B6\u5546\u54C1"]},"primary")]},request:function(){var b=(0,d.Z)((0,n.Z)().mark(function h(i){var Z,a;return(0,n.Z)().wrap(function(U){for(;;)switch(U.prev=U.next){case 0:return Z=[],a=0,i.StoreId=t.values.id,U.next=5,nt(i).then(function(re){Z=re.data.data,a=re.data.total});case 5:return U.abrupt("return",{data:Z,success:!0,total:a});case 6:case"end":return U.stop()}},h)}));return function(h){return b.apply(this,arguments)}}(),columns:fe,rowSelection:{onChange:function(h,i){ue(i)}}}),(0,r.jsx)(ct,{onFinish:function(){var b=(0,d.Z)((0,n.Z)().mark(function h(i){var Z;return(0,n.Z)().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:Z=!1,i.id?Z=dt(i):Z=pe(i),Z&&(c(!1),Q(void 0),$.current.reload());case 3:case"end":return C.stop()}},h)}));return function(h){return b.apply(this,arguments)}}(),onCancel:function(){c(!1),Q(void 0)},createModalVisible:l,values:ce||{}})]})})},ht=ft,er=o(62350),Ye=o(24565);function mt(u){return Ae.apply(this,arguments)}function Ae(){return Ae=(0,d.Z)((0,n.Z)().mark(function u(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,B.WY)("/kitchen/api/store-info/store-batching-stock-page",{method:"POST",data:t}));case 1:case"end":return e.stop()}},u)})),Ae.apply(this,arguments)}function vt(u){return _e.apply(this,arguments)}function _e(){return _e=(0,d.Z)((0,n.Z)().mark(function u(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,B.WY)("/kitchen/api/store-info/store-batching-stoc",{method:"POST",data:t}));case 1:case"end":return e.stop()}},u)})),_e.apply(this,arguments)}function yt(u){return Ie.apply(this,arguments)}function Ie(){return Ie=(0,d.Z)((0,n.Z)().mark(function u(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,B.WY)("/kitchen/api/store-info/store-batching-stoc",{method:"put",data:t}));case 1:case"end":return e.stop()}},u)})),Ie.apply(this,arguments)}function tr(u){return Ee.apply(this,arguments)}function Ee(){return Ee=_asyncToGenerator(_regeneratorRuntime().mark(function u(t){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t={current:1,pageSize:1e3},e.abrupt("return",request("/kitchen/api/goods/goodss",{method:"post",data:t}));case 2:case"end":return e.stop()}},u)})),Ee.apply(this,arguments)}function Zt(u){return Te.apply(this,arguments)}function Te(){return Te=(0,d.Z)((0,n.Z)().mark(function u(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,B.WY)("/kitchen/api/frachisee-stock-adjust/product-lists",{method:"post",data:t}));case 1:case"end":return e.stop()}},u)})),Te.apply(this,arguments)}function gt(u){return Be.apply(this,arguments)}function Be(){return Be=(0,d.Z)((0,n.Z)().mark(function u(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,B.WY)("/kitchen/api/store-info/push-stock/".concat(t),{method:"post"}));case 1:case"end":return e.stop()}},u)})),Be.apply(this,arguments)}function St(u){return xe.apply(this,arguments)}function xe(){return xe=(0,d.Z)((0,n.Z)().mark(function u(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,B.WY)("/kitchen/api/frachisee-stock-adjust/check-stock-adjust/".concat(t),{method:"POST"}));case 1:case"end":return e.stop()}},u)})),xe.apply(this,arguments)}function wt(u){return Oe.apply(this,arguments)}function Oe(){return Oe=(0,d.Z)((0,n.Z)().mark(function u(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,B.WY)("/kitchen/api/store-info/".concat(t),{method:"DELETE"}));case 1:case"end":return e.stop()}},u)})),Oe.apply(this,arguments)}var bt=function(t){var p=E.Z.Option,e=E.Z.OptGroup,l=(0,y.useState)([]),c=(0,g.Z)(l,2),S=c[0],z=c[1];return console.log("ffgbvc",t.Store_Id),(0,y.useEffect)(function(){var x=function(){Zt({Store_Id:t.Store_Id}).then(function($){z($.data)})};x()},[]),(0,r.jsx)(P.Z,{title:t.values.id?"\u7F16\u8F91":"\u65B0\u5EFA",width:640,visible:t.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){t.onCancel()},destroyOnClose:!0,children:(0,r.jsxs)(m.Z,{layout:"vertical",preserve:!1,initialValues:t.values,onFinish:t.onFinish,children:[(0,r.jsx)(m.Z.Item,{name:"id",hidden:!0,children:(0,r.jsx)(v.Z,{})}),(0,r.jsx)(m.Z.Item,{name:"batching_Id",label:"\u539F\u6599\u540D\u79F0",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u539F\u6599\u540D\u79F0"}],children:(0,r.jsx)(E.Z,{placeholder:"\u8BF7\u9009\u62E9\u539F\u6599\u540D\u79F0",children:S.map(function(x,J){return(0,r.jsx)(E.Z.Option,{index:J,value:x.id,children:x.name},x.id)})})}),(0,r.jsx)(m.Z.Item,{name:"batching_Loc",label:"\u5E93\u5B58\u4F4D\u7F6E",rules:[{required:!0}],defaultValue:"0",children:(0,r.jsx)(v.Z,{placeholder:"\u8F93\u5165\u5E93\u5B58\u4F4D\u7F6E\u7F16\u7801"})}),(0,r.jsx)(m.Z.Item,{name:"batching_Count",label:"\u539F\u6599\u6570\u91CF",rules:[{required:!0}],defaultValue:"0",children:(0,r.jsx)(Ue.Z,{min:0,placeholder:"\u8BF7\u8F93\u5165\u539F\u6599\u6570\u91CF"})}),(0,r.jsx)(m.Z.Item,{children:(0,r.jsx)(j.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})})},kt=bt,N="message",Ct=function(t){var p=(0,y.useState)(!1),e=(0,g.Z)(p,2),l=e[0],c=e[1],S=(0,y.useRef)(),z=(0,y.useState)(),x=(0,g.Z)(z,2),J=x[0],$=x[1],q=(0,y.useState)([]),H=(0,g.Z)(q,2),ce=H[0],Q=H[1],de=function(){var b=(0,d.Z)((0,n.Z)().mark(function h(i){return(0,n.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,i.store_Id=t.values.id,s.default.loading("\u6B63\u5728\u6DFB\u52A0",N),a.next=5,vt(JSON.stringify(i)).then(function(C){return s.default.destroy(N),C.data?(s.default.success("\u6DFB\u52A0\u6210\u529F"),S.current.reload(),!0):(s.default.error("\u6DFB\u52A0\u5931\u8D25"+C.errors),S.current.reload(),!1)});case 5:a.next=12;break;case 7:return a.prev=7,a.t0=a.catch(0),s.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),S.current.reload(),a.abrupt("return",!1);case 12:case"end":return a.stop()}},h,null,[[0,7]])}));return function(i){return b.apply(this,arguments)}}(),ae=function(){var b=(0,d.Z)((0,n.Z)().mark(function h(i){return(0,n.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,s.default.loading("\u6B63\u5728\u540C\u6B65",N),a.next=4,gt(i).then(function(C){return s.default.destroy(N),C.data?(Q([]),s.default.success("\u540C\u6B65\u6210\u529F"),S.current.reload(),!0):(s.default.success("\u540C\u6B65\u5931\u8D25"),S.current.reload(),!1)});case 4:a.next=11;break;case 6:return a.prev=6,a.t0=a.catch(0),s.default.error("\u540C\u6B65\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),S.current.reload(),a.abrupt("return",!1);case 11:case"end":return a.stop()}},h,null,[[0,6]])}));return function(i){return b.apply(this,arguments)}}(),me=function(){var b=(0,d.Z)((0,n.Z)().mark(function h(i){return(0,n.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,s.default.loading("\u6B63\u5728\u83B7\u53D6",N),s.default.destroy(N),a.next=5,St(i).then(function(C){return s.default.destroy(N),C.data?(s.default.success("\u83B7\u53D6\u6210\u529F"),S.current.reload(),!0):(s.default.error("\u83B7\u53D6\u5931\u8D25"+C.errors),S.current.reload(),!1)});case 5:a.next=12;break;case 7:return a.prev=7,a.t0=a.catch(0),s.default.error("\u83B7\u53D6\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),S.current.reload(),a.abrupt("return",!1);case 12:case"end":return a.stop()}},h,null,[[0,7]])}));return function(i){return b.apply(this,arguments)}}(),ue=function(){var b=(0,d.Z)((0,n.Z)().mark(function h(i){return(0,n.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,wt(i).then(function(C){C.data?(s.default.success("\u5220\u9664\u6210\u529F\uFF0C\u5373\u5C06\u5237\u65B0"),S.current.reload()):(s.default.error("\u5220\u9664\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5"),S.current.reload())});case 3:return a.abrupt("return",!0);case 6:a.prev=6,a.t0=a.catch(0),s.default.error("\u5220\u9664\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5"),S.current.reload();case 10:case"end":return a.stop()}},h,null,[[0,6]])}));return function(i){return b.apply(this,arguments)}}(),pe=function(){var b=(0,d.Z)((0,n.Z)().mark(function h(i){return(0,n.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,s.default.loading("\u6B63\u5728\u4FEE\u6539",N),s.default.destroy(N),i.store_Id=t.values.id,a.next=6,yt(JSON.stringify(i)).then(function(C){return s.default.destroy(N),C.data?(s.default.success("\u4FEE\u6539\u6210\u529F"),!0):(s.default.error("\u4FEE\u6539\u5931\u8D25"+C.errors),!1)});case 6:a.next=12;break;case 8:return a.prev=8,a.t0=a.catch(0),s.default.error("\u4FEE\u6539\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),a.abrupt("return",!1);case 12:case"end":return a.stop()}},h,null,[[0,8]])}));return function(i){return b.apply(this,arguments)}}(),fe=[{title:"\u4E3B\u952E",dataIndex:"id",hideInSearch:!0,hideInTable:!0,tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key"},{title:"\u7269\u6599",dataIndex:"batching_Name",valueType:"textarea"},{title:"\u6570\u91CF",dataIndex:"batching_Count",valueType:"textarea"},{title:"\u5E93\u4F4D",dataIndex:"batching_Loc",valueEnum:{1:{text:"1"},2:{text:"2"},3:{text:"3"},4:{text:"4"},5:{text:"5"},6:{text:"6"}}},{title:"\u540C\u6B65",dataIndex:"synchronize",valueEnum:{0:{text:"\u672A\u540C\u6B65",status:"Processing"},1:{text:"\u5DF2\u540C\u6B65",status:"Success"}}},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"createAt",hideInForm:!0,search:!1},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(h,i){return[(0,r.jsxs)("a",{onClick:function(){c(!0),$(i)},children:[" ","\u4FEE\u6539"]},"config"),(0,r.jsx)(Ye.Z,{type:"primary",title:"\u786E\u8BA4\u5220\u9664\u5417\uFF1F",okText:"\u662F",cancelText:"\u5426",onConfirm:function(){ue(i.id)},onCancel:function(){},children:(0,r.jsx)("a",{href:"#",children:"\u5220\u9664"})},"primary")]}}];return(0,r.jsx)(P.Z,{width:1200,bodyStyle:{padding:"32px 40px 48px"},destroyOnClose:!0,title:(t.values==null?"":t.values.store_Name)+"\u5E93\u5B58\u539F\u6599\u8C03\u6574",search:!1,visible:t.stockModalVisible,footer:!1,onCancel:function(){return t.onCancel()},maskClosable:!1,children:(0,r.jsxs)(w.ZP,{header:{title:"",breadcrumb:{}},children:[(0,r.jsx)(R.ZP,{headerTitle:"",actionRef:S,rowKey:"id",search:!1,toolBarRender:function(){return[(0,r.jsx)(Ye.Z,{type:"primary",title:"\u83B7\u53D6\u5B9E\u65F6\u5E93\u5B58\u4F1A\u8986\u76D6\u672C\u6B21\u8865\u8D27\u6570\u636E",okText:"\u662F",cancelText:"\u5426",onConfirm:function(){me(t.values.id)},onCancel:function(){},children:(0,r.jsx)(j.Z,{type:"primary",children:"\u83B7\u53D6\u5B9E\u65F6\u5E93\u5B58"},"primary")},"primary"),(0,r.jsx)(j.Z,{type:"primary",onClick:function(){if(ce.length==0)s.default.error("\u8BF7\u9009\u62E9\u9700\u8981\u540C\u6B65\u7684\u6570\u636E\uFF01\uFF01");else{var i,Z;ae(t.values.id),(i=S.current)===null||i===void 0||(Z=i.reloadAndRest)===null||Z===void 0||Z.call(i)}},children:"\u540C\u6B65\u5E93\u5B58\u539F\u6599"},"primary"),(0,r.jsxs)(j.Z,{type:"primary",onClick:function(){c(!0)},children:[(0,r.jsx)(V.Z,{})," \u65B0\u589E\u5E93\u5B58\u539F\u6599"]},"primary")]},request:function(){var b=(0,d.Z)((0,n.Z)().mark(function h(i){var Z,a;return(0,n.Z)().wrap(function(U){for(;;)switch(U.prev=U.next){case 0:return Z=[],a=0,i.store_Id=t.values.id,U.next=5,mt(i).then(function(re){Z=re.data.data,a=re.data.total});case 5:return U.abrupt("return",{data:Z,success:!0,total:a});case 6:case"end":return U.stop()}},h)}));return function(h){return b.apply(this,arguments)}}(),columns:fe,rowSelection:{onChange:function(h,i){Q(i)}}}),(0,r.jsx)(kt,{Store_Id:t.values==null?"":t.values.id,onFinish:function(){var b=(0,d.Z)((0,n.Z)().mark(function h(i){var Z;return(0,n.Z)().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:Z=!1,i.id?Z=pe(i):Z=de(i),Z&&(c(!1),$(void 0),S.current.reload());case 3:case"end":return C.stop()}},h)}));return function(h){return b.apply(this,arguments)}}(),onCancel:function(){c(!1),$(void 0)},createModalVisible:l,values:J||{}})]})})},jt=Ct;function At(u){return De.apply(this,arguments)}function De(){return De=(0,d.Z)((0,n.Z)().mark(function u(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,B.WY)("\u200B/kitchen/api\u200B/store-info\u200B/store-info-page",{method:"POST",data:t}));case 1:case"end":return e.stop()}},u)})),De.apply(this,arguments)}function _t(u){return Pe.apply(this,arguments)}function Pe(){return Pe=(0,d.Z)((0,n.Z)().mark(function u(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,B.WY)("/kitchen/api/dict-data/dic-list/".concat(t),{method:"Get"}));case 1:case"end":return e.stop()}},u)})),Pe.apply(this,arguments)}function It(u){return Fe.apply(this,arguments)}function Fe(){return Fe=(0,d.Z)((0,n.Z)().mark(function u(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,B.WY)("/kitchen/api\u200B/store-info\u200B/store-info",{method:"POST",data:t}));case 1:case"end":return e.stop()}},u)})),Fe.apply(this,arguments)}function Et(u){return Ge.apply(this,arguments)}function Ge(){return Ge=(0,d.Z)((0,n.Z)().mark(function u(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,B.WY)("/kitchen/api/store-info/store-infofo",{method:"put",data:t}));case 1:case"end":return e.stop()}},u)})),Ge.apply(this,arguments)}function Tt(u){return We.apply(this,arguments)}function We(){return We=(0,d.Z)((0,n.Z)().mark(function u(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,B.WY)("/kitchen/api/store-info/store-status",{method:"put",data:t}));case 1:case"end":return e.stop()}},u)})),We.apply(this,arguments)}function Bt(u){return Re.apply(this,arguments)}function Re(){return Re=(0,d.Z)((0,n.Z)().mark(function u(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,B.WY)("\u200B\u200B/kitchen/api/store-info/del-store-info",{method:"POST",data:t}));case 1:case"end":return e.stop()}},u)})),Re.apply(this,arguments)}var xt=o(41877),Ot=o(94595),Dt=o(3408),oe="message",Pt=function(){var u=(0,d.Z)((0,n.Z)().mark(function t(p){return(0,n.Z)().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.prev=0,s.default.loading("\u6B63\u5728\u6DFB\u52A0",oe),l.next=4,It(JSON.stringify(p)).then(function(c){return s.default.destroy(oe),c.data?(s.default.success("\u6DFB\u52A0\u6210\u529F"),!0):(s.default.error("\u6DFB\u52A0\u5931\u8D25"),!1)});case 4:l.next=10;break;case 6:return l.prev=6,l.t0=l.catch(0),s.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),l.abrupt("return",!1);case 10:case"end":return l.stop()}},t,null,[[0,6]])}));return function(p){return u.apply(this,arguments)}}(),Ft=function(){var u=(0,d.Z)((0,n.Z)().mark(function t(p){return(0,n.Z)().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.prev=0,s.default.loading("\u6B63\u5728\u4FEE\u6539",oe),s.default.destroy(oe),l.next=5,Et(JSON.stringify(p)).then(function(c){return s.default.destroy(oe),c.data?(s.default.success("\u4FEE\u6539\u6210\u529F"),!0):(s.default.success("\u4FEE\u6539\u5931\u8D25"),!1)});case 5:l.next=11;break;case 7:return l.prev=7,l.t0=l.catch(0),s.default.error("\u4FEE\u6539\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),l.abrupt("return",!1);case 11:case"end":return l.stop()}},t,null,[[0,7]])}));return function(p){return u.apply(this,arguments)}}(),Gt=function(){var u=(0,d.Z)((0,n.Z)().mark(function t(p){var e;return(0,n.Z)().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.prev=0,s.default.loading("\u6B63\u5728\u5220\u9664"),e=[],p.forEach(function(S){e.push(S.id)}),c.next=6,Bt(e).then(function(S){return S.data?(s.default.success("\u5220\u9664\u6210\u529F"),!0):(s.default.success("\u5220\u9664\u5931\u8D25"),!1)});case 6:c.next=12;break;case 8:return c.prev=8,c.t0=c.catch(0),s.default.error("\u5220\u9664\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),c.abrupt("return",!1);case 12:case"end":return c.stop()}},t,null,[[0,8]])}));return function(p){return u.apply(this,arguments)}}(),Wt=function(){var t=(0,y.useState)(),p=(0,g.Z)(t,2),e=p[0],l=p[1],c=(0,y.useState)(),S=(0,g.Z)(c,2),z=S[0],x=S[1],J=(0,y.useState)([]),$=(0,g.Z)(J,2),q=$[0],H=$[1],ce=(0,y.useState)([]),Q=(0,g.Z)(ce,2),de=Q[0],ae=Q[1],me=(0,y.useState)([]),ue=(0,g.Z)(me,2),pe=ue[0],fe=ue[1],b=(0,y.useState)([]),h=(0,g.Z)(b,2),i=h[0],Z=h[1],a=(0,y.useState)([]),C=(0,g.Z)(a,2),U=C[0],re=C[1],$t=(0,y.useState)([]),Ve=(0,g.Z)($t,2),Mt=Ve[0],Lt=Ve[1];(0,y.useEffect)(function(){var L=function(){(0,xt.ow)({current:1,pageSize:1e3}).then(function(Y){var G={},W=[];Y.data.data.forEach(function(O){W.push({text:O.storeType_Name,id:O.id}),G[O.id]={text:O.storeType_Name}}),console.log(G),ae(W),x(G)})},M=function(Y){var G=(0,Ot.k3)({current:1,pageSize:1e3}).then(function(W){var O={},et=[];W.data.data.forEach(function(Ze){et.push({text:Ze.storeLevel_Name,id:Ze.id}),O[Ze.id]={text:Ze.storeLevel_Name}}),l(O),H(et)})};function A(){(0,Dt.FM)().then(function(I){fe(I.data);var Y={};G(I.data);function G(W){for(var O in W)Y[W[O].value]={text:W[O].title},W[O].children&&G(W[O].children)}Z(Y)})}A(),L(),M();function F(){_t("DeviceClientType").then(function(I){var Y=I.data,G={};if(I.succeeded){var W=[];Y.forEach(function(O){G[O.code]={text:O.remark},W.push({batchingType:O.code,text:O.remark,value:O.code,label:O.remark})}),re(G),Lt(W)}})}F()},[]);var Ut=(0,y.useState)(!1),Ke=(0,g.Z)(Ut,2),Yt=Ke[0],ve=Ke[1],Vt=(0,y.useState)(!1),Ne=(0,g.Z)(Vt,2),Kt=Ne[0],$e=Ne[1],Nt=(0,y.useState)(!1),ze=(0,g.Z)(Nt,2),zt=ze[0],Je=ze[1],Jt=(0,y.useState)(!1),He=(0,g.Z)(Jt,2),rr=He[0],nr=He[1],ye=(0,y.useRef)(),Ht=(0,y.useState)(),Qe=(0,g.Z)(Ht,2),Me=Qe[0],ne=Qe[1],Qt=(0,y.useState)([]),Xe=(0,g.Z)(Qt,2),he=Xe[0],qe=Xe[1],ar=function(){$e(!1)},Xt=[{title:"\u4E3B\u952E",dataIndex:"id",hideInSearch:!0,hideInTable:!0,tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key"},{title:"\u5E97\u94FA\u540D\u79F0",dataIndex:"store_Name",valueType:"textarea"},{title:"\u8054\u7CFB\u7535\u8BDD",dataIndex:"store_Tel",valueType:"textarea"},{title:"\u5E97\u94FA\u5730\u5740",dataIndex:"store_Addr",search:!1,valueType:"textarea"},{title:"\u56FE\u6807",dataIndex:"store_ImgUrl",search:!1,valueType:"textarea"},{title:"\u5E97\u94FA\u7C7B\u578B",dataIndex:"store_TypeId",valueEnum:z},{title:"\u5F52\u5C5E\u673A\u6784",dataIndex:"orgId",search:!1,valueEnum:i},{title:"\u5E97\u94FA\u7B49\u7EA7",dataIndex:"store_LevelId",search:!1,valueEnum:e},{title:"\u5750\u6807",dataIndex:"store_Loc",valueType:"textarea",search:!1},{title:"\u8D1F\u8D23\u4EBA",dataIndex:"store_Cadre",valueType:"textarea",search:!1},{title:"\u72B6\u6001",dataIndex:"store_Status",valueEnum:{0:{text:"\u6B63\u5E38",status:"Processing"},1:{text:"\u505C\u7528",status:"Success"}}},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(M,A){return[(0,r.jsxs)("a",{onClick:function(){ve(!0),ne(A)},children:[" ","\u66F4\u65B0"]},"primary"),(0,r.jsxs)("a",{onClick:function(){A.store_Status=A.store_Status==0?1:0,Tt(A).then(function(I){I.data&&ye.current.reload()})},children:[" ",A.store_Status==0?"\u505C\u7528":"\u6B63\u5E38"]},"primary"),(0,r.jsxs)("a",{onClick:function(){ne(A),$e(!0)},children:[" ","\u5546\u54C1\u4E0A\u67B6"]},"primary"),(0,r.jsxs)("a",{onClick:function(){ne(A),Je(!0)},children:[" ","\u5E93\u5B58\u8C03\u62E8"]},"primary"),(0,r.jsxs)("a",{onClick:function(){var I={title:"\u5E97\u94FA\u4E8C\u7EF4\u7801",content:(0,r.jsx)(se(),{id:"qrCode",value:"https://black-pa.com:5443/lead?StoreId=".concat(A.id,"&StoreType="),size:200,fgColor:"#000000",style:{margin:"auto"}})};P.Z.info(I)},children:[" ","\u5E97\u94FA\u4E8C\u7EF4\u7801"]},"primary")]}}];return(0,r.jsxs)(w.ZP,{children:[(0,r.jsx)(R.ZP,{headerTitle:"\u5E97\u94FA\u7C7B\u578B",actionRef:ye,rowKey:"id",search:{labelWidth:120},scroll:{x:2e3},toolBarRender:function(){return[(0,r.jsxs)(j.Z,{type:"primary",onClick:function(){ve(!0)},children:[(0,r.jsx)(V.Z,{})," \u65B0\u5EFA"]},"primary")]},request:function(){var L=(0,d.Z)((0,n.Z)().mark(function M(A){var F,I;return(0,n.Z)().wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return F=[],I=0,G.next=4,At(A).then(function(W){F=W.data.data,I=W.data.total});case 4:return G.abrupt("return",{data:F,success:!0,total:I});case 5:case"end":return G.stop()}},M)}));return function(M){return L.apply(this,arguments)}}(),columns:Xt,rowSelection:{onChange:function(M,A){qe(A)}}}),(he==null?void 0:he.length)>0&&(0,r.jsx)(T.Z,{extra:(0,r.jsxs)("div",{children:["\u5DF2\u9009\u62E9"," ",(0,r.jsx)("a",{style:{fontWeight:600},children:he.length})," ","\u9879 \xA0\xA0"]}),children:(0,r.jsx)(j.Z,{onClick:(0,d.Z)((0,n.Z)().mark(function L(){var M,A;return(0,n.Z)().wrap(function(I){for(;;)switch(I.prev=I.next){case 0:return I.next=2,Gt(he);case 2:qe([]),(M=ye.current)===null||M===void 0||(A=M.reloadAndRest)===null||A===void 0||A.call(M);case 4:case"end":return I.stop()}},L)})),children:"\u5220\u9664"})}),(0,r.jsx)(rt,{storeLevel:q,storeType:de,OrgData:pe,dicData:Mt,onFinish:function(){var L=(0,d.Z)((0,n.Z)().mark(function M(A){var F;return(0,n.Z)().wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:F=!1,A.id?F=Ft(A):F=Pt(A),F&&(ve(!1),ne(void 0),ye.current.reload());case 3:case"end":return Y.stop()}},M)}));return function(M){return L.apply(this,arguments)}}(),onCancel:function(){ve(!1),ne(void 0)},createModalVisible:Yt,values:Me||{}}),(0,r.jsx)(ht,{onCancel:function(){$e(!1),ne({})},storeGoodsModalVisible:Kt,values:Me}),(0,r.jsx)(jt,{onCancel:function(){Je(!1),ne({})},stockModalVisible:zt,values:Me})]})},Rt=Wt},94595:function(ge,X,o){"use strict";o.d(X,{k3:function(){return P},ef:function(){return n},EQ:function(){return s},mv:function(){return V}});var k=o(39428),j=o(3182),D=o(48971);function P(w){return g.apply(this,arguments)}function g(){return g=(0,j.Z)((0,k.Z)().mark(function w(T){return(0,k.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.abrupt("return",(0,D.WY)("/kitchen/api/store/store-level-page",{method:"POST",data:T}));case 1:case"end":return f.stop()}},w)})),g.apply(this,arguments)}function n(w){return K.apply(this,arguments)}function K(){return K=(0,j.Z)((0,k.Z)().mark(function w(T){return(0,k.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.abrupt("return",(0,D.WY)("/kitchen/api\u200B/store\u200B/store-level",{method:"POST",data:T}));case 1:case"end":return f.stop()}},w)})),K.apply(this,arguments)}function s(w){return d.apply(this,arguments)}function d(){return d=(0,j.Z)((0,k.Z)().mark(function w(T){return(0,k.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.abrupt("return",(0,D.WY)("/kitchen/api/store/store-level",{method:"put",data:T}));case 1:case"end":return f.stop()}},w)})),d.apply(this,arguments)}function V(w){return y.apply(this,arguments)}function y(){return y=(0,j.Z)((0,k.Z)().mark(function w(T){return(0,k.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.abrupt("return",(0,D.WY)("/kitchen/api\u200B/store\u200B/del-store-level",{method:"POST",data:T}));case 1:case"end":return f.stop()}},w)})),y.apply(this,arguments)}},41877:function(ge,X,o){"use strict";o.d(X,{ow:function(){return P},U7:function(){return n},z7:function(){return s},Ym:function(){return V}});var k=o(39428),j=o(3182),D=o(48971);function P(w){return g.apply(this,arguments)}function g(){return g=(0,j.Z)((0,k.Z)().mark(function w(T){return(0,k.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.abrupt("return",(0,D.WY)("/kitchen/api/store/store-type-page",{method:"POST",data:T}));case 1:case"end":return f.stop()}},w)})),g.apply(this,arguments)}function n(w){return K.apply(this,arguments)}function K(){return K=(0,j.Z)((0,k.Z)().mark(function w(T){return(0,k.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.abrupt("return",(0,D.WY)("/kitchen/api\u200B/store\u200B/store-type",{method:"POST",data:T}));case 1:case"end":return f.stop()}},w)})),K.apply(this,arguments)}function s(w){return d.apply(this,arguments)}function d(){return d=(0,j.Z)((0,k.Z)().mark(function w(T){return(0,k.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.abrupt("return",(0,D.WY)("/kitchen\u200B/api\u200B/store\u200B/store-type",{method:"put",data:T}));case 1:case"end":return f.stop()}},w)})),d.apply(this,arguments)}function V(w){return y.apply(this,arguments)}function y(){return y=(0,j.Z)((0,k.Z)().mark(function w(T){return(0,k.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.abrupt("return",(0,D.WY)("\u200B/kitchen/api/store/del-store-type",{method:"POST",data:T}));case 1:case"end":return f.stop()}},w)})),y.apply(this,arguments)}},3408:function(ge,X,o){"use strict";o.d(X,{lM:function(){return g},IH:function(){return K},mm:function(){return y},eP:function(){return T},FM:function(){return Le}});var k=o(39428),j=o(11849),D=o(3182),P=o(48971);function g(_,m){return n.apply(this,arguments)}function n(){return n=(0,D.Z)((0,k.Z)().mark(function _(m,ee){return(0,k.Z)().wrap(function(ie){for(;;)switch(ie.prev=ie.next){case 0:return ie.abrupt("return",(0,P.WY)("/kitchen/api/sysOrg\u200B/page",{method:"GET",params:(0,j.Z)({},m)}));case 1:case"end":return ie.stop()}},_)})),n.apply(this,arguments)}function K(_){return s.apply(this,arguments)}function s(){return s=(0,D.Z)((0,k.Z)().mark(function _(m){return(0,k.Z)().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.abrupt("return",(0,P.WY)("/kitchen/api/sysOrg/add",{method:"POST",data:(0,j.Z)({},m)}));case 1:case"end":return v.stop()}},_)})),s.apply(this,arguments)}function d(_){return V.apply(this,arguments)}function V(){return V=_asyncToGenerator(_regeneratorRuntime().mark(function _(m){return _regeneratorRuntime().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.abrupt("return",request("\u200B/kitchen/api\u200B/sysOrg\u200B/list",{method:"POST",data:_objectSpread({},m)}));case 1:case"end":return v.stop()}},_)})),V.apply(this,arguments)}function y(_){return w.apply(this,arguments)}function w(){return w=(0,D.Z)((0,k.Z)().mark(function _(m){return(0,k.Z)().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.abrupt("return",(0,P.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/delete",{method:"POST",data:(0,j.Z)({},m)}));case 1:case"end":return v.stop()}},_)})),w.apply(this,arguments)}function T(_){return R.apply(this,arguments)}function R(){return R=(0,D.Z)((0,k.Z)().mark(function _(m){return(0,k.Z)().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.abrupt("return",(0,P.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/edit",{method:"POST",data:(0,j.Z)({},m)}));case 1:case"end":return v.stop()}},_)})),R.apply(this,arguments)}function f(_){return se.apply(this,arguments)}function se(){return se=_asyncToGenerator(_regeneratorRuntime().mark(function _(m){return _regeneratorRuntime().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.abrupt("return",request("/kitchen\u200B/api\u200B/sysOrg\u200B/detail",{method:"POST",data:_objectSpread({},m)}));case 1:case"end":return v.stop()}},_)})),se.apply(this,arguments)}function Le(_){return le.apply(this,arguments)}function le(){return le=(0,D.Z)((0,k.Z)().mark(function _(m){return(0,k.Z)().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.abrupt("return",(0,P.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/tree",{data:(0,j.Z)({},m)}));case 1:case"end":return v.stop()}},_)})),le.apply(this,arguments)}}}]); +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[1262,1322],{94075:function(ge,X,o){"use strict";o.r(X),o.d(X,{default:function(){return Wt}});var k=o(57663),j=o(71577),P=o(71194),D=o(50146),g=o(2824),n=o(39428),K=o(34792),s=o(48086),d=o(3182),V=o(49101),y=o(67294),w=o(78009),E=o(85224),W=o(16894),f=o(79361),se=o.n(f),Le=o(62999),le=o(54680),_=o(9715),m=o(55843),ee=o(47673),v=o(4107),ie=o(43358),I=o(34041),r=o(85893),tt=function(t){var p=I.Z.Option,e=I.Z.OptGroup;return(0,r.jsx)(D.Z,{title:t.values.id?"\u7F16\u8F91":"\u65B0\u5EFA",width:640,visible:t.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){t.onCancel()},destroyOnClose:!0,children:(0,r.jsxs)(m.Z,{layout:"Horizontal",labelCol:{span:4},preserve:!1,initialValues:t.values,onFinish:t.onFinish,children:[(0,r.jsx)(m.Z.Item,{name:"id",hidden:!0,children:(0,r.jsx)(v.Z,{})}),(0,r.jsx)(m.Z.Item,{label:"\u5E97\u94FA\u540D\u79F0",name:"store_Name",rules:[{required:!0}],children:(0,r.jsx)(v.Z,{})}),(0,r.jsx)(m.Z.Item,{label:"\u5E97\u94FA\u5730\u5740",name:"store_Addr",rules:[{required:!0}],children:(0,r.jsx)(v.Z,{})}),(0,r.jsx)(m.Z.Item,{label:"\u8054\u7CFB\u7535\u8BDD",name:"store_Tel",rules:[{required:!0}],children:(0,r.jsx)(v.Z,{placeholder:"\u591A\u4E2A\u624B\u673A\u53F7\u7528,\u5206\u9694"})}),(0,r.jsx)(m.Z.Item,{label:"\u72B6\u6001",name:"store_Status",rules:[{required:!0}],children:(0,r.jsx)(I.Z,{placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001",children:(0,r.jsxs)(e,{children:[(0,r.jsx)(I.Z.Option,{value:0,children:"\u6B63\u5E38"}),(0,r.jsx)(I.Z.Option,{value:1,children:"\u505C\u7528"})]})})}),(0,r.jsx)(m.Z.Item,{label:"\u8BBE\u5907\u5206\u7C7B",name:"storeTypeKey",rules:[{required:!0}],children:(0,r.jsx)(I.Z,{children:t.dicData.map(function(l,c){return(0,r.jsx)(I.Z.Option,{index:c,value:l.id,children:l.text},l.id)})})}),(0,r.jsx)(m.Z.Item,{label:"\u56FE\u6807",name:"store_ImgUrl",rules:[{required:!0}],children:(0,r.jsx)(v.Z,{})}),(0,r.jsx)(m.Z.Item,{label:"\u5750\u6807",name:"store_Loc",rules:[{required:!0}],children:(0,r.jsx)(v.Z,{})}),(0,r.jsx)(m.Z.Item,{label:"\u7C7B\u578B",name:"store_TypeId",rules:[{required:!0}],children:(0,r.jsx)(I.Z,{children:t.storeType.map(function(l,c){return(0,r.jsx)(I.Z.Option,{index:c,value:l.id,children:l.text},l.id)})})}),(0,r.jsx)(m.Z.Item,{name:"orgId",label:"\u6240\u5C5E\u673A\u6784",rules:[{required:!0}],children:(0,r.jsx)(le.Z,{style:{width:"100%"},dropdownStyle:{maxHeight:400,overflow:"auto"},treeData:t.OrgData,placeholder:"\u8BF7\u9009\u62E9\u6240\u5C5E\u673A\u6784",treeDefaultExpandAll:!0})}),(0,r.jsx)(m.Z.Item,{label:"\u7B49\u7EA7",name:"store_LevelId",rules:[{required:!0}],children:(0,r.jsx)(I.Z,{children:t.storeLevel.map(function(l,c){return(0,r.jsx)(I.Z.Option,{index:c,value:l.id,children:l.text},l.id)})})}),(0,r.jsx)(m.Z.Item,{children:(0,r.jsx)(j.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})})},rt=tt,qt=o(77883),Ue=o(85986),T=o(48971);function nt(u){return Se.apply(this,arguments)}function Se(){return Se=(0,d.Z)((0,n.Z)().mark(function u(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,T.WY)("\u200B\u200B/kitchen/api/store-info/store-goods",{method:"POST",data:t}));case 1:case"end":return e.stop()}},u)})),Se.apply(this,arguments)}function at(){return we.apply(this,arguments)}function we(){return we=(0,d.Z)((0,n.Z)().mark(function u(){var t;return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t={current:1,pageSize:1e3,goods_Enable:0},e.abrupt("return",(0,T.WY)("/kitchen/api/goods/goodss",{method:"Post",data:t}));case 2:case"end":return e.stop()}},u)})),we.apply(this,arguments)}function ut(u){return be.apply(this,arguments)}function be(){return be=(0,d.Z)((0,n.Z)().mark(function u(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,T.WY)("/kitchen/api/store-info/store-goods",{method:"put",data:t}));case 1:case"end":return e.stop()}},u)})),be.apply(this,arguments)}function st(u){return ke.apply(this,arguments)}function ke(){return ke=(0,d.Z)((0,n.Z)().mark(function u(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,T.WY)("/kitchen/api/store-info/store-goods-status",{method:"put",data:t}));case 1:case"end":return e.stop()}},u)})),ke.apply(this,arguments)}function lt(u){return Ce.apply(this,arguments)}function Ce(){return Ce=(0,d.Z)((0,n.Z)().mark(function u(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,T.WY)("/kitchen/api/store-info/store-good",{method:"POST",data:t}));case 1:case"end":return e.stop()}},u)})),Ce.apply(this,arguments)}function it(u){return je.apply(this,arguments)}function je(){return je=(0,d.Z)((0,n.Z)().mark(function u(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,T.WY)("/kitchen/api/store-info/del-store-good",{method:"POST",data:t}));case 1:case"end":return e.stop()}},u)})),je.apply(this,arguments)}var ot=function(t){var p=I.Z.Option,e=I.Z.OptGroup,l=(0,y.useState)([]),c=(0,g.Z)(l,2),S=c[0],z=c[1];return(0,y.useEffect)(function(){var x=function(){at().then(function($){var q=[];$.data.data.forEach(function(H){q.push({text:H.name,id:H.id})}),z(q)})};x()},[]),(0,r.jsx)(D.Z,{title:t.values.id?"\u7F16\u8F91":"\u65B0\u5EFA",width:640,visible:t.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){t.onCancel()},destroyOnClose:!0,children:(0,r.jsxs)(m.Z,{layout:"vertical",preserve:!1,initialValues:t.values,onFinish:t.onFinish,children:[(0,r.jsx)(m.Z.Item,{name:"id",hidden:!0,children:(0,r.jsx)(v.Z,{})}),(0,r.jsx)(m.Z.Item,{label:"\u5546\u54C1",name:"goods_Id",rules:[{required:!0}],children:(0,r.jsx)(I.Z,{children:S.map(function(x,J){return(0,r.jsx)(I.Z.Option,{index:J,value:x.id,children:x.text},x.id)})})}),(0,r.jsx)(m.Z.Item,{label:"\u4EF7\u683C",name:"price",rules:[{required:!0}],children:(0,r.jsx)(Ue.Z,{placeholder:"\u4EF7\u683C",min:0})}),(0,r.jsx)(m.Z.Item,{label:"\u72B6\u6001",name:"goods_Enable",rules:[{required:!0}],children:(0,r.jsxs)(I.Z,{placeholder:"\u72B6\u6001",children:[(0,r.jsx)(p,{value:1,children:"\u6B63\u5E38"}),(0,r.jsx)(p,{value:0,children:"\u505C\u7528"})]})}),(0,r.jsx)(m.Z.Item,{children:(0,r.jsx)(j.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})})},ct=ot,te="message",dt=function(){var u=(0,d.Z)((0,n.Z)().mark(function t(p){return(0,n.Z)().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.prev=0,s.default.loading("\u6B63\u5728\u4FEE\u6539",te),s.default.destroy(te),l.next=5,ut(JSON.stringify(p)).then(function(c){return s.default.destroy(te),c.data?(s.default.success("\u4FEE\u6539\u6210\u529F"),!0):(s.default.success("\u4FEE\u6539\u5931\u8D25"),!1)});case 5:l.next=11;break;case 7:return l.prev=7,l.t0=l.catch(0),s.default.error("\u4FEE\u6539\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),l.abrupt("return",!1);case 11:case"end":return l.stop()}},t,null,[[0,7]])}));return function(p){return u.apply(this,arguments)}}(),pt=function(){var u=(0,d.Z)((0,n.Z)().mark(function t(p){var e;return(0,n.Z)().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.prev=0,s.default.loading("\u6B63\u5728\u5220\u9664",te),e=[],p.forEach(function(S){e.push(S.id)}),c.next=6,it(e).then(function(S){return s.default.destroy(te),S.data?(s.default.success("\u5220\u9664\u6210\u529F"),!0):(s.default.success("\u5220\u9664\u5931\u8D25"),!1)});case 6:c.next=12;break;case 8:return c.prev=8,c.t0=c.catch(0),s.default.error("\u5220\u9664\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),c.abrupt("return",!1);case 12:case"end":return c.stop()}},t,null,[[0,8]])}));return function(p){return u.apply(this,arguments)}}(),ft=function(t){var p=(0,y.useState)(!1),e=(0,g.Z)(p,2),l=e[0],c=e[1],S=(0,y.useState)(!1),z=(0,g.Z)(S,2),x=z[0],J=z[1],$=(0,y.useRef)(),q=(0,y.useState)(),H=(0,g.Z)(q,2),ce=H[0],Q=H[1],de=(0,y.useState)([]),ae=(0,g.Z)(de,2),me=ae[0],ue=ae[1],pe=function(){var b=(0,d.Z)((0,n.Z)().mark(function h(i){return(0,n.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,i.store_Id=t.values.id,s.default.loading("\u6B63\u5728\u6DFB\u52A0",te),a.next=5,lt(JSON.stringify(i)).then(function(C){return s.default.destroy(te),C.data?(s.default.success("\u6DFB\u52A0\u6210\u529F"),!0):(s.default.error("\u6DFB\u52A0\u5931\u8D25"),!1)});case 5:a.next=11;break;case 7:return a.prev=7,a.t0=a.catch(0),s.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),a.abrupt("return",!1);case 11:case"end":return a.stop()}},h,null,[[0,7]])}));return function(i){return b.apply(this,arguments)}}(),fe=[{title:"\u4E3B\u952E",dataIndex:"id",hideInSearch:!0,hideInTable:!0,tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key"},{title:"\u5546\u54C1",dataIndex:"goods_Name",valueType:"textarea"},{title:"\u5546\u54C1\u4EF7\u683C",dataIndex:"price",valueType:"money"},{title:"\u72B6\u6001",dataIndex:"goods_Enable",valueEnum:{1:{text:"\u6B63\u5E38",status:"Processing"},0:{text:"\u505C\u7528",status:"Success"}}},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"createAt",hideInForm:!0,search:!1},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(h,i){return[(0,r.jsxs)("a",{onClick:function(){c(!0),Q(i)},children:[" ","\u66F4\u65B0"]},"config"),(0,r.jsxs)("a",{onClick:function(){i.goods_Enable=i.goods_Enable==0?1:0,st(i).then(function(a){a.data&&$.current.reload()})},children:[" ",i.goods_Enable==0?"\u505C\u7528":"\u6B63\u5E38"]},"primary"),,(0,r.jsx)("a",{onClick:function(){pt([i]),$.current.reload()},children:"\u5220\u9664"},"config")]}}];return(0,r.jsx)(D.Z,{width:1200,bodyStyle:{padding:"32px 40px 48px"},destroyOnClose:!0,title:"\u5546\u54C1\u4E0A\u67B6",visible:t.storeGoodsModalVisible,footer:!1,onCancel:function(){return t.onCancel()},maskClosable:!1,children:(0,r.jsxs)(w.ZP,{header:{title:"",breadcrumb:{}},children:[(0,r.jsx)(W.ZP,{headerTitle:"",actionRef:$,rowKey:"id",search:!1,toolBarRender:function(){return[(0,r.jsxs)(j.Z,{type:"primary",onClick:function(){c(!0)},children:[(0,r.jsx)(V.Z,{})," \u65B0\u589E\u4E0A\u67B6\u5546\u54C1"]},"primary")]},request:function(){var b=(0,d.Z)((0,n.Z)().mark(function h(i){var Z,a;return(0,n.Z)().wrap(function(U){for(;;)switch(U.prev=U.next){case 0:return Z=[],a=0,i.StoreId=t.values.id,U.next=5,nt(i).then(function(re){Z=re.data.data,a=re.data.total});case 5:return U.abrupt("return",{data:Z,success:!0,total:a});case 6:case"end":return U.stop()}},h)}));return function(h){return b.apply(this,arguments)}}(),columns:fe,rowSelection:{onChange:function(h,i){ue(i)}}}),(0,r.jsx)(ct,{onFinish:function(){var b=(0,d.Z)((0,n.Z)().mark(function h(i){var Z;return(0,n.Z)().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:Z=!1,i.id?Z=dt(i):Z=pe(i),Z&&(c(!1),Q(void 0),$.current.reload());case 3:case"end":return C.stop()}},h)}));return function(h){return b.apply(this,arguments)}}(),onCancel:function(){c(!1),Q(void 0)},createModalVisible:l,values:ce||{}})]})})},ht=ft,er=o(62350),Ye=o(24565);function mt(u){return Ae.apply(this,arguments)}function Ae(){return Ae=(0,d.Z)((0,n.Z)().mark(function u(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,T.WY)("/kitchen/api/store-info/store-batching-stock-page",{method:"POST",data:t}));case 1:case"end":return e.stop()}},u)})),Ae.apply(this,arguments)}function vt(u){return _e.apply(this,arguments)}function _e(){return _e=(0,d.Z)((0,n.Z)().mark(function u(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,T.WY)("/kitchen/api/store-info/store-batching-stoc",{method:"POST",data:t}));case 1:case"end":return e.stop()}},u)})),_e.apply(this,arguments)}function yt(u){return Be.apply(this,arguments)}function Be(){return Be=(0,d.Z)((0,n.Z)().mark(function u(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,T.WY)("/kitchen/api/store-info/store-batching-stoc",{method:"put",data:t}));case 1:case"end":return e.stop()}},u)})),Be.apply(this,arguments)}function tr(u){return Ie.apply(this,arguments)}function Ie(){return Ie=_asyncToGenerator(_regeneratorRuntime().mark(function u(t){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t={current:1,pageSize:1e3},e.abrupt("return",request("/kitchen/api/goods/goodss",{method:"post",data:t}));case 2:case"end":return e.stop()}},u)})),Ie.apply(this,arguments)}function Zt(u){return Ee.apply(this,arguments)}function Ee(){return Ee=(0,d.Z)((0,n.Z)().mark(function u(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,T.WY)("/kitchen/api/frachisee-stock-adjust/product-lists",{method:"post",data:t}));case 1:case"end":return e.stop()}},u)})),Ee.apply(this,arguments)}function gt(u){return Te.apply(this,arguments)}function Te(){return Te=(0,d.Z)((0,n.Z)().mark(function u(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,T.WY)("/kitchen/api/store-info/push-stock/".concat(t),{method:"post"}));case 1:case"end":return e.stop()}},u)})),Te.apply(this,arguments)}function St(u){return xe.apply(this,arguments)}function xe(){return xe=(0,d.Z)((0,n.Z)().mark(function u(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,T.WY)("/kitchen/api/frachisee-stock-adjust/check-stock-adjust/".concat(t),{method:"POST"}));case 1:case"end":return e.stop()}},u)})),xe.apply(this,arguments)}function wt(u){return Oe.apply(this,arguments)}function Oe(){return Oe=(0,d.Z)((0,n.Z)().mark(function u(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,T.WY)("/kitchen/api/store-info/".concat(t),{method:"DELETE"}));case 1:case"end":return e.stop()}},u)})),Oe.apply(this,arguments)}var bt=function(t){var p=I.Z.Option,e=I.Z.OptGroup,l=(0,y.useState)([]),c=(0,g.Z)(l,2),S=c[0],z=c[1];return console.log("ffgbvc",t.Store_Id),(0,y.useEffect)(function(){var x=function(){Zt({Store_Id:t.Store_Id}).then(function($){z($.data)})};x()},[]),(0,r.jsx)(D.Z,{title:t.values.id?"\u7F16\u8F91":"\u65B0\u5EFA",width:640,visible:t.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){t.onCancel()},destroyOnClose:!0,children:(0,r.jsxs)(m.Z,{layout:"vertical",preserve:!1,initialValues:t.values,onFinish:t.onFinish,children:[(0,r.jsx)(m.Z.Item,{name:"id",hidden:!0,children:(0,r.jsx)(v.Z,{})}),(0,r.jsx)(m.Z.Item,{name:"batching_Id",label:"\u539F\u6599\u540D\u79F0",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u539F\u6599\u540D\u79F0"}],children:(0,r.jsx)(I.Z,{placeholder:"\u8BF7\u9009\u62E9\u539F\u6599\u540D\u79F0",children:S.map(function(x,J){return(0,r.jsx)(I.Z.Option,{index:J,value:x.id,children:x.name},x.id)})})}),(0,r.jsx)(m.Z.Item,{name:"batching_Loc",label:"\u5E93\u5B58\u4F4D\u7F6E",rules:[{required:!0}],defaultValue:"0",children:(0,r.jsx)(v.Z,{placeholder:"\u8F93\u5165\u5E93\u5B58\u4F4D\u7F6E\u7F16\u7801"})}),(0,r.jsx)(m.Z.Item,{name:"batching_Count",label:"\u539F\u6599\u6570\u91CF",rules:[{required:!0}],defaultValue:"0",children:(0,r.jsx)(Ue.Z,{min:0,placeholder:"\u8BF7\u8F93\u5165\u539F\u6599\u6570\u91CF"})}),(0,r.jsx)(m.Z.Item,{children:(0,r.jsx)(j.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})})},kt=bt,N="message",Ct=function(t){var p=(0,y.useState)(!1),e=(0,g.Z)(p,2),l=e[0],c=e[1],S=(0,y.useRef)(),z=(0,y.useState)(),x=(0,g.Z)(z,2),J=x[0],$=x[1],q=(0,y.useState)([]),H=(0,g.Z)(q,2),ce=H[0],Q=H[1],de=function(){var b=(0,d.Z)((0,n.Z)().mark(function h(i){return(0,n.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,i.store_Id=t.values.id,s.default.loading("\u6B63\u5728\u6DFB\u52A0",N),a.next=5,vt(JSON.stringify(i)).then(function(C){return s.default.destroy(N),C.data?(s.default.success("\u6DFB\u52A0\u6210\u529F"),S.current.reload(),!0):(s.default.error("\u6DFB\u52A0\u5931\u8D25"+C.errors),S.current.reload(),!1)});case 5:a.next=12;break;case 7:return a.prev=7,a.t0=a.catch(0),s.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),S.current.reload(),a.abrupt("return",!1);case 12:case"end":return a.stop()}},h,null,[[0,7]])}));return function(i){return b.apply(this,arguments)}}(),ae=function(){var b=(0,d.Z)((0,n.Z)().mark(function h(i){return(0,n.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,s.default.loading("\u6B63\u5728\u540C\u6B65",N),a.next=4,gt(i).then(function(C){return s.default.destroy(N),C.data?(Q([]),s.default.success("\u540C\u6B65\u6210\u529F"),S.current.reload(),!0):(s.default.success("\u540C\u6B65\u5931\u8D25"),S.current.reload(),!1)});case 4:a.next=11;break;case 6:return a.prev=6,a.t0=a.catch(0),s.default.error("\u540C\u6B65\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),S.current.reload(),a.abrupt("return",!1);case 11:case"end":return a.stop()}},h,null,[[0,6]])}));return function(i){return b.apply(this,arguments)}}(),me=function(){var b=(0,d.Z)((0,n.Z)().mark(function h(i){return(0,n.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,s.default.loading("\u6B63\u5728\u83B7\u53D6",N),s.default.destroy(N),a.next=5,St(i).then(function(C){return s.default.destroy(N),C.data?(s.default.success("\u83B7\u53D6\u6210\u529F"),S.current.reload(),!0):(s.default.error("\u83B7\u53D6\u5931\u8D25"+C.errors),S.current.reload(),!1)});case 5:a.next=12;break;case 7:return a.prev=7,a.t0=a.catch(0),s.default.error("\u83B7\u53D6\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),S.current.reload(),a.abrupt("return",!1);case 12:case"end":return a.stop()}},h,null,[[0,7]])}));return function(i){return b.apply(this,arguments)}}(),ue=function(){var b=(0,d.Z)((0,n.Z)().mark(function h(i){return(0,n.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,wt(i).then(function(C){C.data?(s.default.success("\u5220\u9664\u6210\u529F\uFF0C\u5373\u5C06\u5237\u65B0"),S.current.reload()):(s.default.error("\u5220\u9664\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5"),S.current.reload())});case 3:return a.abrupt("return",!0);case 6:a.prev=6,a.t0=a.catch(0),s.default.error("\u5220\u9664\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5"),S.current.reload();case 10:case"end":return a.stop()}},h,null,[[0,6]])}));return function(i){return b.apply(this,arguments)}}(),pe=function(){var b=(0,d.Z)((0,n.Z)().mark(function h(i){return(0,n.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,s.default.loading("\u6B63\u5728\u4FEE\u6539",N),s.default.destroy(N),i.store_Id=t.values.id,a.next=6,yt(JSON.stringify(i)).then(function(C){return s.default.destroy(N),C.data?(s.default.success("\u4FEE\u6539\u6210\u529F"),!0):(s.default.error("\u4FEE\u6539\u5931\u8D25"+C.errors),!1)});case 6:a.next=12;break;case 8:return a.prev=8,a.t0=a.catch(0),s.default.error("\u4FEE\u6539\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),a.abrupt("return",!1);case 12:case"end":return a.stop()}},h,null,[[0,8]])}));return function(i){return b.apply(this,arguments)}}(),fe=[{title:"\u4E3B\u952E",dataIndex:"id",hideInSearch:!0,hideInTable:!0,tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key"},{title:"\u7269\u6599",dataIndex:"batching_Name",valueType:"textarea"},{title:"\u6570\u91CF",dataIndex:"batching_Count",valueType:"textarea"},{title:"\u5E93\u4F4D",dataIndex:"batching_Loc",valueEnum:{1:{text:"1"},2:{text:"2"},3:{text:"3"},4:{text:"4"},5:{text:"5"},6:{text:"6"}}},{title:"\u540C\u6B65",dataIndex:"synchronize",valueEnum:{0:{text:"\u672A\u540C\u6B65",status:"Processing"},1:{text:"\u5DF2\u540C\u6B65",status:"Success"}}},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"createAt",hideInForm:!0,search:!1},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(h,i){return[(0,r.jsxs)("a",{onClick:function(){c(!0),$(i)},children:[" ","\u4FEE\u6539"]},"config"),(0,r.jsx)(Ye.Z,{type:"primary",title:"\u786E\u8BA4\u5220\u9664\u5417\uFF1F",okText:"\u662F",cancelText:"\u5426",onConfirm:function(){ue(i.id)},onCancel:function(){},children:(0,r.jsx)("a",{href:"#",children:"\u5220\u9664"})},"primary")]}}];return(0,r.jsx)(D.Z,{width:1200,bodyStyle:{padding:"32px 40px 48px"},destroyOnClose:!0,title:(t.values==null?"":t.values.store_Name)+"\u5E93\u5B58\u539F\u6599\u8C03\u6574",search:!1,visible:t.stockModalVisible,footer:!1,onCancel:function(){return t.onCancel()},maskClosable:!1,children:(0,r.jsxs)(w.ZP,{header:{title:"",breadcrumb:{}},children:[(0,r.jsx)(W.ZP,{headerTitle:"",actionRef:S,rowKey:"id",search:!1,toolBarRender:function(){return[(0,r.jsx)(Ye.Z,{type:"primary",title:"\u83B7\u53D6\u5B9E\u65F6\u5E93\u5B58\u4F1A\u8986\u76D6\u672C\u6B21\u8865\u8D27\u6570\u636E",okText:"\u662F",cancelText:"\u5426",onConfirm:function(){me(t.values.id)},onCancel:function(){},children:(0,r.jsx)(j.Z,{type:"primary",children:"\u83B7\u53D6\u5B9E\u65F6\u5E93\u5B58"},"primary")},"primary"),(0,r.jsx)(j.Z,{type:"primary",onClick:function(){if(ce.length==0)s.default.error("\u8BF7\u9009\u62E9\u9700\u8981\u540C\u6B65\u7684\u6570\u636E\uFF01\uFF01");else{var i,Z;ae(t.values.id),(i=S.current)===null||i===void 0||(Z=i.reloadAndRest)===null||Z===void 0||Z.call(i)}},children:"\u540C\u6B65\u5E93\u5B58\u539F\u6599"},"primary"),(0,r.jsxs)(j.Z,{type:"primary",onClick:function(){c(!0)},children:[(0,r.jsx)(V.Z,{})," \u65B0\u589E\u5E93\u5B58\u539F\u6599"]},"primary")]},request:function(){var b=(0,d.Z)((0,n.Z)().mark(function h(i){var Z,a;return(0,n.Z)().wrap(function(U){for(;;)switch(U.prev=U.next){case 0:return Z=[],a=0,i.store_Id=t.values.id,U.next=5,mt(i).then(function(re){Z=re.data.data,a=re.data.total});case 5:return U.abrupt("return",{data:Z,success:!0,total:a});case 6:case"end":return U.stop()}},h)}));return function(h){return b.apply(this,arguments)}}(),columns:fe,rowSelection:{onChange:function(h,i){Q(i)}}}),(0,r.jsx)(kt,{Store_Id:t.values==null?"":t.values.id,onFinish:function(){var b=(0,d.Z)((0,n.Z)().mark(function h(i){var Z;return(0,n.Z)().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:Z=!1,i.id?Z=pe(i):Z=de(i),Z&&(c(!1),$(void 0),S.current.reload());case 3:case"end":return C.stop()}},h)}));return function(h){return b.apply(this,arguments)}}(),onCancel:function(){c(!1),$(void 0)},createModalVisible:l,values:J||{}})]})})},jt=Ct;function At(u){return Pe.apply(this,arguments)}function Pe(){return Pe=(0,d.Z)((0,n.Z)().mark(function u(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,T.WY)("\u200B/kitchen/api\u200B/store-info\u200B/store-info-page",{method:"POST",data:t}));case 1:case"end":return e.stop()}},u)})),Pe.apply(this,arguments)}function _t(u){return De.apply(this,arguments)}function De(){return De=(0,d.Z)((0,n.Z)().mark(function u(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,T.WY)("/kitchen/api/dict-data/dic-list/".concat(t),{method:"Get"}));case 1:case"end":return e.stop()}},u)})),De.apply(this,arguments)}function Bt(u){return Fe.apply(this,arguments)}function Fe(){return Fe=(0,d.Z)((0,n.Z)().mark(function u(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,T.WY)("/kitchen/api\u200B/store-info\u200B/store-info",{method:"POST",data:t}));case 1:case"end":return e.stop()}},u)})),Fe.apply(this,arguments)}function It(u){return Ge.apply(this,arguments)}function Ge(){return Ge=(0,d.Z)((0,n.Z)().mark(function u(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,T.WY)("/kitchen/api/store-info/store-infofo",{method:"put",data:t}));case 1:case"end":return e.stop()}},u)})),Ge.apply(this,arguments)}function Et(u){return Re.apply(this,arguments)}function Re(){return Re=(0,d.Z)((0,n.Z)().mark(function u(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,T.WY)("/kitchen/api/store-info/store-status",{method:"put",data:t}));case 1:case"end":return e.stop()}},u)})),Re.apply(this,arguments)}function Tt(u){return We.apply(this,arguments)}function We(){return We=(0,d.Z)((0,n.Z)().mark(function u(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,T.WY)("\u200B\u200B/kitchen/api/store-info/del-store-info",{method:"POST",data:t}));case 1:case"end":return e.stop()}},u)})),We.apply(this,arguments)}var xt=o(41877),Ot=o(94595),Pt=o(3408),oe="message",Dt=function(){var u=(0,d.Z)((0,n.Z)().mark(function t(p){return(0,n.Z)().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.prev=0,s.default.loading("\u6B63\u5728\u6DFB\u52A0",oe),l.next=4,Bt(JSON.stringify(p)).then(function(c){return s.default.destroy(oe),c.data?(s.default.success("\u6DFB\u52A0\u6210\u529F"),!0):(s.default.error("\u6DFB\u52A0\u5931\u8D25"),!1)});case 4:l.next=10;break;case 6:return l.prev=6,l.t0=l.catch(0),s.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),l.abrupt("return",!1);case 10:case"end":return l.stop()}},t,null,[[0,6]])}));return function(p){return u.apply(this,arguments)}}(),Ft=function(){var u=(0,d.Z)((0,n.Z)().mark(function t(p){return(0,n.Z)().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.prev=0,s.default.loading("\u6B63\u5728\u4FEE\u6539",oe),s.default.destroy(oe),l.next=5,It(JSON.stringify(p)).then(function(c){return s.default.destroy(oe),c.data?(s.default.success("\u4FEE\u6539\u6210\u529F"),!0):(s.default.success("\u4FEE\u6539\u5931\u8D25"),!1)});case 5:l.next=11;break;case 7:return l.prev=7,l.t0=l.catch(0),s.default.error("\u4FEE\u6539\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),l.abrupt("return",!1);case 11:case"end":return l.stop()}},t,null,[[0,7]])}));return function(p){return u.apply(this,arguments)}}(),Gt=function(){var u=(0,d.Z)((0,n.Z)().mark(function t(p){var e;return(0,n.Z)().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.prev=0,s.default.loading("\u6B63\u5728\u5220\u9664"),e=[],p.forEach(function(S){e.push(S.id)}),c.next=6,Tt(e).then(function(S){return S.data?(s.default.success("\u5220\u9664\u6210\u529F"),!0):(s.default.success("\u5220\u9664\u5931\u8D25"),!1)});case 6:c.next=12;break;case 8:return c.prev=8,c.t0=c.catch(0),s.default.error("\u5220\u9664\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),c.abrupt("return",!1);case 12:case"end":return c.stop()}},t,null,[[0,8]])}));return function(p){return u.apply(this,arguments)}}(),Rt=function(){var t=(0,y.useState)(),p=(0,g.Z)(t,2),e=p[0],l=p[1],c=(0,y.useState)(),S=(0,g.Z)(c,2),z=S[0],x=S[1],J=(0,y.useState)([]),$=(0,g.Z)(J,2),q=$[0],H=$[1],ce=(0,y.useState)([]),Q=(0,g.Z)(ce,2),de=Q[0],ae=Q[1],me=(0,y.useState)([]),ue=(0,g.Z)(me,2),pe=ue[0],fe=ue[1],b=(0,y.useState)([]),h=(0,g.Z)(b,2),i=h[0],Z=h[1],a=(0,y.useState)([]),C=(0,g.Z)(a,2),U=C[0],re=C[1],$t=(0,y.useState)([]),Ve=(0,g.Z)($t,2),Mt=Ve[0],Lt=Ve[1];(0,y.useEffect)(function(){var L=function(){(0,xt.ow)({current:1,pageSize:1e3}).then(function(Y){var G={},R=[];Y.data.data.forEach(function(O){R.push({text:O.storeType_Name,id:O.id}),G[O.id]={text:O.storeType_Name}}),console.log(G),ae(R),x(G)})},M=function(Y){var G=(0,Ot.k3)({current:1,pageSize:1e3}).then(function(R){var O={},et=[];R.data.data.forEach(function(Ze){et.push({text:Ze.storeLevel_Name,id:Ze.id}),O[Ze.id]={text:Ze.storeLevel_Name}}),l(O),H(et)})};function A(){(0,Pt.FM)().then(function(B){fe(B.data);var Y={};G(B.data);function G(R){for(var O in R)Y[R[O].value]={text:R[O].title},R[O].children&&G(R[O].children)}Z(Y)})}A(),L(),M();function F(){_t("DeviceClientType").then(function(B){var Y=B.data,G={};if(B.succeeded){var R=[];Y.forEach(function(O){G[O.code]={text:O.remark},R.push({batchingType:O.code,text:O.remark,value:O.code,label:O.remark})}),re(G),Lt(R)}})}F()},[]);var Ut=(0,y.useState)(!1),Ke=(0,g.Z)(Ut,2),Yt=Ke[0],ve=Ke[1],Vt=(0,y.useState)(!1),Ne=(0,g.Z)(Vt,2),Kt=Ne[0],$e=Ne[1],Nt=(0,y.useState)(!1),ze=(0,g.Z)(Nt,2),zt=ze[0],Je=ze[1],Jt=(0,y.useState)(!1),He=(0,g.Z)(Jt,2),rr=He[0],nr=He[1],ye=(0,y.useRef)(),Ht=(0,y.useState)(),Qe=(0,g.Z)(Ht,2),Me=Qe[0],ne=Qe[1],Qt=(0,y.useState)([]),Xe=(0,g.Z)(Qt,2),he=Xe[0],qe=Xe[1],ar=function(){$e(!1)},Xt=[{title:"\u4E3B\u952E",dataIndex:"id",hideInSearch:!0,hideInTable:!0,tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key"},{title:"\u5E97\u94FA\u540D\u79F0",dataIndex:"store_Name",valueType:"textarea"},{title:"\u8054\u7CFB\u7535\u8BDD",dataIndex:"store_Tel",valueType:"textarea"},{title:"\u5E97\u94FA\u5730\u5740",dataIndex:"store_Addr",search:!1,valueType:"textarea"},{title:"\u56FE\u6807",dataIndex:"store_ImgUrl",search:!1,valueType:"textarea"},{title:"\u5E97\u94FA\u7C7B\u578B",dataIndex:"store_TypeId",valueEnum:z},{title:"\u5F52\u5C5E\u673A\u6784",dataIndex:"orgId",search:!1,valueEnum:i},{title:"\u5E97\u94FA\u7B49\u7EA7",dataIndex:"store_LevelId",search:!1,valueEnum:e},{title:"\u5750\u6807",dataIndex:"store_Loc",valueType:"textarea",search:!1},{title:"\u8D1F\u8D23\u4EBA",dataIndex:"store_Cadre",valueType:"textarea",search:!1},{title:"\u72B6\u6001",dataIndex:"store_Status",valueEnum:{0:{text:"\u6B63\u5E38",status:"Processing"},1:{text:"\u505C\u7528",status:"Success"}}},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(M,A){return[(0,r.jsxs)("a",{onClick:function(){ve(!0),ne(A)},children:[" ","\u66F4\u65B0"]},"primary"),(0,r.jsxs)("a",{onClick:function(){A.store_Status=A.store_Status==0?1:0,Et(A).then(function(B){B.data&&ye.current.reload()})},children:[" ",A.store_Status==0?"\u505C\u7528":"\u6B63\u5E38"]},"primary"),(0,r.jsxs)("a",{onClick:function(){ne(A),$e(!0)},children:[" ","\u5546\u54C1\u4E0A\u67B6"]},"primary"),(0,r.jsxs)("a",{onClick:function(){ne(A),Je(!0)},children:[" ","\u5E93\u5B58\u8C03\u62E8"]},"primary"),(0,r.jsxs)("a",{onClick:function(){var B={title:"\u5E97\u94FA\u4E8C\u7EF4\u7801",content:(0,r.jsx)(se(),{id:"qrCode",value:"https://black-pa.com:5443/lead?StoreId=".concat(A.id,"&StoreType="),size:200,fgColor:"#000000",style:{margin:"auto"}})};D.Z.info(B)},children:[" ","\u5E97\u94FA\u4E8C\u7EF4\u7801"]},"primary")]}}];return(0,r.jsxs)(w.ZP,{children:[(0,r.jsx)(W.ZP,{headerTitle:"\u5E97\u94FA\u7C7B\u578B",actionRef:ye,rowKey:"id",search:{labelWidth:120},scroll:{x:2e3},toolBarRender:function(){return[(0,r.jsxs)(j.Z,{type:"primary",onClick:function(){ve(!0)},children:[(0,r.jsx)(V.Z,{})," \u65B0\u5EFA"]},"primary")]},request:function(){var L=(0,d.Z)((0,n.Z)().mark(function M(A){var F,B;return(0,n.Z)().wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return F=[],B=0,G.next=4,At(A).then(function(R){F=R.data.data,B=R.data.total});case 4:return G.abrupt("return",{data:F,success:!0,total:B});case 5:case"end":return G.stop()}},M)}));return function(M){return L.apply(this,arguments)}}(),columns:Xt,rowSelection:{onChange:function(M,A){qe(A)}}}),(he==null?void 0:he.length)>0&&(0,r.jsx)(E.Z,{extra:(0,r.jsxs)("div",{children:["\u5DF2\u9009\u62E9"," ",(0,r.jsx)("a",{style:{fontWeight:600},children:he.length})," ","\u9879 \xA0\xA0"]}),children:(0,r.jsx)(j.Z,{onClick:(0,d.Z)((0,n.Z)().mark(function L(){var M,A;return(0,n.Z)().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return B.next=2,Gt(he);case 2:qe([]),(M=ye.current)===null||M===void 0||(A=M.reloadAndRest)===null||A===void 0||A.call(M);case 4:case"end":return B.stop()}},L)})),children:"\u5220\u9664"})}),(0,r.jsx)(rt,{storeLevel:q,storeType:de,OrgData:pe,dicData:Mt,onFinish:function(){var L=(0,d.Z)((0,n.Z)().mark(function M(A){var F;return(0,n.Z)().wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:F=!1,A.id?F=Ft(A):F=Dt(A),F&&(ve(!1),ne(void 0),ye.current.reload());case 3:case"end":return Y.stop()}},M)}));return function(M){return L.apply(this,arguments)}}(),onCancel:function(){ve(!1),ne(void 0)},createModalVisible:Yt,values:Me||{}}),(0,r.jsx)(ht,{onCancel:function(){$e(!1),ne({})},storeGoodsModalVisible:Kt,values:Me}),(0,r.jsx)(jt,{onCancel:function(){Je(!1),ne({})},stockModalVisible:zt,values:Me})]})},Wt=Rt},94595:function(ge,X,o){"use strict";o.d(X,{k3:function(){return D},ef:function(){return n},EQ:function(){return s},mv:function(){return V}});var k=o(39428),j=o(3182),P=o(48971);function D(w){return g.apply(this,arguments)}function g(){return g=(0,j.Z)((0,k.Z)().mark(function w(E){return(0,k.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.abrupt("return",(0,P.WY)("/kitchen/api/store/store-level-page",{method:"POST",data:E}));case 1:case"end":return f.stop()}},w)})),g.apply(this,arguments)}function n(w){return K.apply(this,arguments)}function K(){return K=(0,j.Z)((0,k.Z)().mark(function w(E){return(0,k.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.abrupt("return",(0,P.WY)("/kitchen/api\u200B/store\u200B/store-level",{method:"POST",data:E}));case 1:case"end":return f.stop()}},w)})),K.apply(this,arguments)}function s(w){return d.apply(this,arguments)}function d(){return d=(0,j.Z)((0,k.Z)().mark(function w(E){return(0,k.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.abrupt("return",(0,P.WY)("/kitchen/api/store/store-level",{method:"put",data:E}));case 1:case"end":return f.stop()}},w)})),d.apply(this,arguments)}function V(w){return y.apply(this,arguments)}function y(){return y=(0,j.Z)((0,k.Z)().mark(function w(E){return(0,k.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.abrupt("return",(0,P.WY)("/kitchen/api\u200B/store\u200B/del-store-level",{method:"POST",data:E}));case 1:case"end":return f.stop()}},w)})),y.apply(this,arguments)}},41877:function(ge,X,o){"use strict";o.d(X,{ow:function(){return D},U7:function(){return n},z7:function(){return s},Ym:function(){return V}});var k=o(39428),j=o(3182),P=o(48971);function D(w){return g.apply(this,arguments)}function g(){return g=(0,j.Z)((0,k.Z)().mark(function w(E){return(0,k.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.abrupt("return",(0,P.WY)("/kitchen/api/store/store-type-page",{method:"POST",data:E}));case 1:case"end":return f.stop()}},w)})),g.apply(this,arguments)}function n(w){return K.apply(this,arguments)}function K(){return K=(0,j.Z)((0,k.Z)().mark(function w(E){return(0,k.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.abrupt("return",(0,P.WY)("/kitchen/api\u200B/store\u200B/store-type",{method:"POST",data:E}));case 1:case"end":return f.stop()}},w)})),K.apply(this,arguments)}function s(w){return d.apply(this,arguments)}function d(){return d=(0,j.Z)((0,k.Z)().mark(function w(E){return(0,k.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.abrupt("return",(0,P.WY)("/kitchen\u200B/api\u200B/store\u200B/store-type",{method:"put",data:E}));case 1:case"end":return f.stop()}},w)})),d.apply(this,arguments)}function V(w){return y.apply(this,arguments)}function y(){return y=(0,j.Z)((0,k.Z)().mark(function w(E){return(0,k.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.abrupt("return",(0,P.WY)("\u200B/kitchen/api/store/del-store-type",{method:"POST",data:E}));case 1:case"end":return f.stop()}},w)})),y.apply(this,arguments)}},3408:function(ge,X,o){"use strict";o.d(X,{lM:function(){return g},IH:function(){return K},mm:function(){return y},eP:function(){return E},FM:function(){return Le}});var k=o(39428),j=o(11849),P=o(3182),D=o(48971);function g(_,m){return n.apply(this,arguments)}function n(){return n=(0,P.Z)((0,k.Z)().mark(function _(m,ee){return(0,k.Z)().wrap(function(ie){for(;;)switch(ie.prev=ie.next){case 0:return ie.abrupt("return",(0,D.WY)("/kitchen/api/sysOrg\u200B/page",{method:"GET",params:(0,j.Z)({},m)}));case 1:case"end":return ie.stop()}},_)})),n.apply(this,arguments)}function K(_){return s.apply(this,arguments)}function s(){return s=(0,P.Z)((0,k.Z)().mark(function _(m){return(0,k.Z)().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.abrupt("return",(0,D.WY)("/kitchen/api/sysOrg/add",{method:"POST",data:(0,j.Z)({},m)}));case 1:case"end":return v.stop()}},_)})),s.apply(this,arguments)}function d(_){return V.apply(this,arguments)}function V(){return V=_asyncToGenerator(_regeneratorRuntime().mark(function _(m){return _regeneratorRuntime().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.abrupt("return",request("\u200B/kitchen/api\u200B/sysOrg\u200B/list",{method:"POST",data:_objectSpread({},m)}));case 1:case"end":return v.stop()}},_)})),V.apply(this,arguments)}function y(_){return w.apply(this,arguments)}function w(){return w=(0,P.Z)((0,k.Z)().mark(function _(m){return(0,k.Z)().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.abrupt("return",(0,D.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/delete",{method:"POST",data:(0,j.Z)({},m)}));case 1:case"end":return v.stop()}},_)})),w.apply(this,arguments)}function E(_){return W.apply(this,arguments)}function W(){return W=(0,P.Z)((0,k.Z)().mark(function _(m){return(0,k.Z)().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.abrupt("return",(0,D.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/edit",{method:"POST",data:(0,j.Z)({},m)}));case 1:case"end":return v.stop()}},_)})),W.apply(this,arguments)}function f(_){return se.apply(this,arguments)}function se(){return se=_asyncToGenerator(_regeneratorRuntime().mark(function _(m){return _regeneratorRuntime().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.abrupt("return",request("/kitchen\u200B/api\u200B/sysOrg\u200B/detail",{method:"POST",data:_objectSpread({},m)}));case 1:case"end":return v.stop()}},_)})),se.apply(this,arguments)}function Le(_){return le.apply(this,arguments)}function le(){return le=(0,P.Z)((0,k.Z)().mark(function _(m){return(0,k.Z)().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.abrupt("return",(0,D.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/tree",{data:(0,j.Z)({},m)}));case 1:case"end":return v.stop()}},_)})),le.apply(this,arguments)}}}]); diff --git a/dist/p__store__storeLevel.f8b80206.async.js b/dist/p__store__storeLevel.e47d1ec2.async.js similarity index 60% rename from dist/p__store__storeLevel.f8b80206.async.js rename to dist/p__store__storeLevel.e47d1ec2.async.js index e6b412a..be39324 100644 --- a/dist/p__store__storeLevel.f8b80206.async.js +++ b/dist/p__store__storeLevel.e47d1ec2.async.js @@ -1 +1 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[5815,1322],{73937:function(V,B,e){"use strict";e.r(B),e.d(B,{default:function(){return X}});var v=e(57663),g=e(71577),p=e(2824),l=e(39428),D=e(34792),a=e(48086),f=e(3182),L=e(49101),m=e(67294),W=e(78009),R=e(85224),i=e(16894),S=e(71194),O=e(50146),t=e(9715),E=e(55843),te=e(47673),b=e(4107),ne=e(43358),x=e(34041),n=e(85893),N=function(s){var c=x.Z.Option,C=x.Z.OptGroup;return(0,n.jsx)(O.Z,{title:s.values.id?"\u7F16\u8F91":"\u65B0\u5EFA",width:640,visible:s.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){s.onCancel()},destroyOnClose:!0,children:(0,n.jsxs)(E.Z,{layout:"vertical",preserve:!1,initialValues:s.values,onFinish:s.onFinish,children:[(0,n.jsx)(E.Z.Item,{name:"id",hidden:!0,children:(0,n.jsx)(b.Z,{})}),(0,n.jsx)(E.Z.Item,{label:"\u7B49\u7EA7",name:"storeLevel_Name",rules:[{required:!0}],children:(0,n.jsx)(b.Z,{})}),(0,n.jsx)(E.Z.Item,{children:(0,n.jsx)(g.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})})},Y=N,I=e(94595),P="message",J=function(){var A=(0,f.Z)((0,l.Z)().mark(function s(c){return(0,l.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,a.default.loading("\u6B63\u5728\u6DFB\u52A0",P),r.next=4,(0,I.ef)(JSON.stringify(c)).then(function(u){return a.default.destroy(P),u.data?(a.default.success("\u6DFB\u52A0\u6210\u529F"),!0):(a.default.error("\u6DFB\u52A0\u5931\u8D25"),!1)});case 4:r.next=10;break;case 6:return r.prev=6,r.t0=r.catch(0),a.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),r.abrupt("return",!1);case 10:case"end":return r.stop()}},s,null,[[0,6]])}));return function(c){return A.apply(this,arguments)}}(),Q=function(){var A=(0,f.Z)((0,l.Z)().mark(function s(c){return(0,l.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,a.default.loading("\u6B63\u5728\u4FEE\u6539",P),a.default.destroy(P),r.next=5,(0,I.EQ)(JSON.stringify(c)).then(function(u){return a.default.destroy(P),u.data?(a.default.success("\u4FEE\u6539\u6210\u529F"),!0):(a.default.success("\u4FEE\u6539\u5931\u8D25"),!1)});case 5:r.next=11;break;case 7:return r.prev=7,r.t0=r.catch(0),a.default.error("\u4FEE\u6539\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),r.abrupt("return",!1);case 11:case"end":return r.stop()}},s,null,[[0,7]])}));return function(c){return A.apply(this,arguments)}}(),z=function(){var A=(0,f.Z)((0,l.Z)().mark(function s(c){var C;return(0,l.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.prev=0,a.default.loading("\u6B63\u5728\u5220\u9664"),C=[],c.forEach(function(j){C.push(j.id)}),u.next=6,(0,I.mv)(C).then(function(j){return j.data?(a.default.success("\u5220\u9664\u6210\u529F"),!0):(a.default.success("\u5220\u9664\u5931\u8D25"),!1)});case 6:u.next=12;break;case 8:return u.prev=8,u.t0=u.catch(0),a.default.error("\u5220\u9664\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),u.abrupt("return",!1);case 12:case"end":return u.stop()}},s,null,[[0,8]])}));return function(c){return A.apply(this,arguments)}}(),H=function(){var s=(0,m.useState)(!1),c=(0,p.Z)(s,2),C=c[0],r=c[1],u=(0,m.useState)(!1),j=(0,p.Z)(u,2),ae=j[0],se=j[1],$=(0,m.useRef)(),q=(0,m.useState)(),G=(0,p.Z)(q,2),_=G[0],M=G[1],ee=(0,m.useState)([]),k=(0,p.Z)(ee,2),T=k[0],U=k[1],re=[{title:"\u4E3B\u952E",dataIndex:"id",hideInSearch:!0,hideInTable:!0,tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key"},{title:"\u7B49\u7EA7",dataIndex:"storeLevel_Name",valueType:"textarea",ellipsis:!0},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"createAt",hideInForm:!0,search:!1},{title:"\u4FEE\u6539\u65F6\u95F4",dataIndex:"updateAt",hideInForm:!0,search:!1},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(d,o){return[(0,n.jsx)("a",{onClick:function(){r(!0),M(o)},children:" \u66F4\u65B0"},"config")]}}];return(0,n.jsxs)(W.ZP,{children:[(0,n.jsx)(i.ZP,{headerTitle:"\u5E97\u94FA\u7C7B\u578B",actionRef:$,rowKey:"id",search:{labelWidth:120},toolBarRender:function(){return[(0,n.jsxs)(g.Z,{type:"primary",onClick:function(){r(!0)},children:[(0,n.jsx)(L.Z,{})," \u65B0\u5EFA"]},"primary")]},request:function(){var y=(0,f.Z)((0,l.Z)().mark(function d(o){var h,Z;return(0,l.Z)().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return h=[],Z=0,w.next=4,(0,I.k3)(o).then(function(K){h=K.data.data,Z=K.data.total});case 4:return w.abrupt("return",{data:h,success:!0,total:Z});case 5:case"end":return w.stop()}},d)}));return function(d){return y.apply(this,arguments)}}(),columns:re,rowSelection:{onChange:function(d,o){U(o)}}}),(T==null?void 0:T.length)>0&&(0,n.jsx)(R.Z,{extra:(0,n.jsxs)("div",{children:["\u5DF2\u9009\u62E9"," ",(0,n.jsx)("a",{style:{fontWeight:600},children:T.length})," ","\u9879 \xA0\xA0"]}),children:(0,n.jsx)(g.Z,{onClick:(0,f.Z)((0,l.Z)().mark(function y(){var d,o;return(0,l.Z)().wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:return Z.next=2,z(T);case 2:U([]),(d=$.current)===null||d===void 0||(o=d.reloadAndRest)===null||o===void 0||o.call(d);case 4:case"end":return Z.stop()}},y)})),children:"\u5220\u9664"})}),(0,n.jsx)(Y,{onFinish:function(){var y=(0,f.Z)((0,l.Z)().mark(function d(o){var h;return(0,l.Z)().wrap(function(F){for(;;)switch(F.prev=F.next){case 0:h=!1,o.id?h=Q(o):h=J(o),h&&(r(!1),M(void 0),$.current.reload());case 3:case"end":return F.stop()}},d)}));return function(d){return y.apply(this,arguments)}}(),onCancel:function(){r(!1),M(void 0)},createModalVisible:C,values:_||{}})]})},X=H},94595:function(V,B,e){"use strict";e.d(B,{k3:function(){return l},ef:function(){return a},EQ:function(){return L},mv:function(){return W}});var v=e(39428),g=e(3182),p=e(48971);function l(i){return D.apply(this,arguments)}function D(){return D=(0,g.Z)((0,v.Z)().mark(function i(S){return(0,v.Z)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,p.WY)("/kitchen/api/store/store-level-page",{method:"POST",data:S}));case 1:case"end":return t.stop()}},i)})),D.apply(this,arguments)}function a(i){return f.apply(this,arguments)}function f(){return f=(0,g.Z)((0,v.Z)().mark(function i(S){return(0,v.Z)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,p.WY)("/kitchen/api\u200B/store\u200B/store-level",{method:"POST",data:S}));case 1:case"end":return t.stop()}},i)})),f.apply(this,arguments)}function L(i){return m.apply(this,arguments)}function m(){return m=(0,g.Z)((0,v.Z)().mark(function i(S){return(0,v.Z)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,p.WY)("/kitchen/api/store/store-level",{method:"put",data:S}));case 1:case"end":return t.stop()}},i)})),m.apply(this,arguments)}function W(i){return R.apply(this,arguments)}function R(){return R=(0,g.Z)((0,v.Z)().mark(function i(S){return(0,v.Z)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,p.WY)("/kitchen/api\u200B/store\u200B/del-store-level",{method:"POST",data:S}));case 1:case"end":return t.stop()}},i)})),R.apply(this,arguments)}}}]); +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[5815,1322],{73937:function(V,w,e){"use strict";e.r(w),e.d(w,{default:function(){return X}});var v=e(57663),g=e(71577),p=e(2824),l=e(39428),D=e(34792),a=e(48086),f=e(3182),L=e(49101),m=e(67294),$=e(78009),P=e(85224),i=e(16894),S=e(71194),R=e(50146),t=e(9715),E=e(55843),te=e(47673),b=e(4107),ne=e(43358),x=e(34041),n=e(85893),N=function(s){var c=x.Z.Option,A=x.Z.OptGroup;return(0,n.jsx)(R.Z,{title:s.values.id?"\u7F16\u8F91":"\u65B0\u5EFA",width:640,visible:s.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){s.onCancel()},destroyOnClose:!0,children:(0,n.jsxs)(E.Z,{layout:"vertical",preserve:!1,initialValues:s.values,onFinish:s.onFinish,children:[(0,n.jsx)(E.Z.Item,{name:"id",hidden:!0,children:(0,n.jsx)(b.Z,{})}),(0,n.jsx)(E.Z.Item,{label:"\u7B49\u7EA7",name:"storeLevel_Name",rules:[{required:!0}],children:(0,n.jsx)(b.Z,{})}),(0,n.jsx)(E.Z.Item,{children:(0,n.jsx)(g.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})})},Y=N,I=e(94595),B="message",J=function(){var C=(0,f.Z)((0,l.Z)().mark(function s(c){return(0,l.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,a.default.loading("\u6B63\u5728\u6DFB\u52A0",B),r.next=4,(0,I.ef)(JSON.stringify(c)).then(function(u){return a.default.destroy(B),u.data?(a.default.success("\u6DFB\u52A0\u6210\u529F"),!0):(a.default.error("\u6DFB\u52A0\u5931\u8D25"),!1)});case 4:r.next=10;break;case 6:return r.prev=6,r.t0=r.catch(0),a.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),r.abrupt("return",!1);case 10:case"end":return r.stop()}},s,null,[[0,6]])}));return function(c){return C.apply(this,arguments)}}(),Q=function(){var C=(0,f.Z)((0,l.Z)().mark(function s(c){return(0,l.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,a.default.loading("\u6B63\u5728\u4FEE\u6539",B),a.default.destroy(B),r.next=5,(0,I.EQ)(JSON.stringify(c)).then(function(u){return a.default.destroy(B),u.data?(a.default.success("\u4FEE\u6539\u6210\u529F"),!0):(a.default.success("\u4FEE\u6539\u5931\u8D25"),!1)});case 5:r.next=11;break;case 7:return r.prev=7,r.t0=r.catch(0),a.default.error("\u4FEE\u6539\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),r.abrupt("return",!1);case 11:case"end":return r.stop()}},s,null,[[0,7]])}));return function(c){return C.apply(this,arguments)}}(),z=function(){var C=(0,f.Z)((0,l.Z)().mark(function s(c){var A;return(0,l.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.prev=0,a.default.loading("\u6B63\u5728\u5220\u9664"),A=[],c.forEach(function(j){A.push(j.id)}),u.next=6,(0,I.mv)(A).then(function(j){return j.data?(a.default.success("\u5220\u9664\u6210\u529F"),!0):(a.default.success("\u5220\u9664\u5931\u8D25"),!1)});case 6:u.next=12;break;case 8:return u.prev=8,u.t0=u.catch(0),a.default.error("\u5220\u9664\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),u.abrupt("return",!1);case 12:case"end":return u.stop()}},s,null,[[0,8]])}));return function(c){return C.apply(this,arguments)}}(),H=function(){var s=(0,m.useState)(!1),c=(0,p.Z)(s,2),A=c[0],r=c[1],u=(0,m.useState)(!1),j=(0,p.Z)(u,2),ae=j[0],se=j[1],M=(0,m.useRef)(),q=(0,m.useState)(),G=(0,p.Z)(q,2),_=G[0],W=G[1],ee=(0,m.useState)([]),U=(0,p.Z)(ee,2),O=U[0],K=U[1],re=[{title:"\u4E3B\u952E",dataIndex:"id",hideInSearch:!0,hideInTable:!0,tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key"},{title:"\u7B49\u7EA7",dataIndex:"storeLevel_Name",valueType:"textarea",ellipsis:!0},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"createAt",hideInForm:!0,search:!1},{title:"\u4FEE\u6539\u65F6\u95F4",dataIndex:"updateAt",hideInForm:!0,search:!1},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(d,o){return[(0,n.jsx)("a",{onClick:function(){r(!0),W(o)},children:" \u66F4\u65B0"},"config")]}}];return(0,n.jsxs)($.ZP,{children:[(0,n.jsx)(i.ZP,{headerTitle:"\u5E97\u94FA\u7C7B\u578B",actionRef:M,rowKey:"id",search:{labelWidth:120},toolBarRender:function(){return[(0,n.jsxs)(g.Z,{type:"primary",onClick:function(){r(!0)},children:[(0,n.jsx)(L.Z,{})," \u65B0\u5EFA"]},"primary")]},request:function(){var y=(0,f.Z)((0,l.Z)().mark(function d(o){var h,Z;return(0,l.Z)().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:return h=[],Z=0,T.next=4,(0,I.k3)(o).then(function(k){h=k.data.data,Z=k.data.total});case 4:return T.abrupt("return",{data:h,success:!0,total:Z});case 5:case"end":return T.stop()}},d)}));return function(d){return y.apply(this,arguments)}}(),columns:re,rowSelection:{onChange:function(d,o){K(o)}}}),(O==null?void 0:O.length)>0&&(0,n.jsx)(P.Z,{extra:(0,n.jsxs)("div",{children:["\u5DF2\u9009\u62E9"," ",(0,n.jsx)("a",{style:{fontWeight:600},children:O.length})," ","\u9879 \xA0\xA0"]}),children:(0,n.jsx)(g.Z,{onClick:(0,f.Z)((0,l.Z)().mark(function y(){var d,o;return(0,l.Z)().wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:return Z.next=2,z(O);case 2:K([]),(d=M.current)===null||d===void 0||(o=d.reloadAndRest)===null||o===void 0||o.call(d);case 4:case"end":return Z.stop()}},y)})),children:"\u5220\u9664"})}),(0,n.jsx)(Y,{onFinish:function(){var y=(0,f.Z)((0,l.Z)().mark(function d(o){var h;return(0,l.Z)().wrap(function(F){for(;;)switch(F.prev=F.next){case 0:h=!1,o.id?h=Q(o):h=J(o),h&&(r(!1),W(void 0),M.current.reload());case 3:case"end":return F.stop()}},d)}));return function(d){return y.apply(this,arguments)}}(),onCancel:function(){r(!1),W(void 0)},createModalVisible:A,values:_||{}})]})},X=H},94595:function(V,w,e){"use strict";e.d(w,{k3:function(){return l},ef:function(){return a},EQ:function(){return L},mv:function(){return $}});var v=e(39428),g=e(3182),p=e(48971);function l(i){return D.apply(this,arguments)}function D(){return D=(0,g.Z)((0,v.Z)().mark(function i(S){return(0,v.Z)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,p.WY)("/kitchen/api/store/store-level-page",{method:"POST",data:S}));case 1:case"end":return t.stop()}},i)})),D.apply(this,arguments)}function a(i){return f.apply(this,arguments)}function f(){return f=(0,g.Z)((0,v.Z)().mark(function i(S){return(0,v.Z)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,p.WY)("/kitchen/api\u200B/store\u200B/store-level",{method:"POST",data:S}));case 1:case"end":return t.stop()}},i)})),f.apply(this,arguments)}function L(i){return m.apply(this,arguments)}function m(){return m=(0,g.Z)((0,v.Z)().mark(function i(S){return(0,v.Z)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,p.WY)("/kitchen/api/store/store-level",{method:"put",data:S}));case 1:case"end":return t.stop()}},i)})),m.apply(this,arguments)}function $(i){return P.apply(this,arguments)}function P(){return P=(0,g.Z)((0,v.Z)().mark(function i(S){return(0,v.Z)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,p.WY)("/kitchen/api\u200B/store\u200B/del-store-level",{method:"POST",data:S}));case 1:case"end":return t.stop()}},i)})),P.apply(this,arguments)}}}]); diff --git a/dist/p__store__storeStaff.ce2a499e.async.js b/dist/p__store__storeStaff.a161860a.async.js similarity index 75% rename from dist/p__store__storeStaff.ce2a499e.async.js rename to dist/p__store__storeStaff.a161860a.async.js index 356b862..75e15b5 100644 --- a/dist/p__store__storeStaff.ce2a499e.async.js +++ b/dist/p__store__storeStaff.a161860a.async.js @@ -1 +1 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[7025,1322],{77287:function(se,k,t){"use strict";t.r(k),t.d(k,{default:function(){return ge}});var S=t(71194),x=t(50146),P=t(9715),f=t(55843),z=t(47673),C=t(4107),Q=t(57663),E=t(71577),I=t(2824),n=t(39428),X=t(34792),d=t(48086),y=t(3182),B=t(49101),b=t(67294),R=t(78009),G=t(85224),W=t(16894),c=t(79361),g=t(62999),T=t(54680),a=t(43358),O=t(34041),e=t(85893),ue=function(u){var m=O.Z.Option,r=O.Z.OptGroup;return(0,e.jsx)(x.Z,{title:u.values.id?"\u7F16\u8F91":"\u65B0\u5EFA",width:640,visible:u.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){u.onCancel()},destroyOnClose:!0,children:(0,e.jsxs)(f.Z,{preserve:!1,initialValues:u.values,onFinish:u.onFinish,children:[(0,e.jsx)(f.Z.Item,{name:"id",hidden:!0,children:(0,e.jsx)(C.Z,{})}),(0,e.jsx)(f.Z.Item,{label:"\u540D\u79F0",name:"name",rules:[{required:!0}],children:(0,e.jsx)(C.Z,{})}),(0,e.jsx)(f.Z.Item,{label:"\u7535\u8BDD",name:"phone",rules:[{required:!0}],children:(0,e.jsx)(C.Z,{})}),(0,e.jsx)(f.Z.Item,{label:"\u5DE5\u53F7",name:"number",rules:[{required:!0}],children:(0,e.jsx)(C.Z,{})}),(0,e.jsx)(f.Z.Item,{name:"shopId",label:"\u95E8\u5E97",rules:[{required:!0}],children:(0,e.jsx)(T.Z,{style:{width:"100%"},dropdownStyle:{maxHeight:400,overflow:"auto"},treeData:u.OrgData,placeholder:"\u95E8\u5E97",treeDefaultExpandAll:!0})}),(0,e.jsx)(f.Z.Item,{name:"status",label:"\u72B6\u6001",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u72B6\u6001"}],children:(0,e.jsx)(O.Z,{placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001",children:(0,e.jsxs)(r,{children:[(0,e.jsx)(O.Z.Option,{value:0,children:"\u6B63\u5E38"}),(0,e.jsx)(O.Z.Option,{value:1,children:"\u505C\u7528"}),(0,e.jsx)(O.Z.Option,{value:2,children:"\u5220\u9664"})]})})}),(0,e.jsx)(f.Z.Item,{children:(0,e.jsx)(E.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})})},le=ue,$=t(48971);function ie(i){return U.apply(this,arguments)}function U(){return U=(0,y.Z)((0,n.Z)().mark(function i(u){return(0,n.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,$.WY)("/kitchen/api/store-staff/store-staff-page",{method:"POST",data:u}));case 1:case"end":return r.stop()}},i)})),U.apply(this,arguments)}function de(i){return Y.apply(this,arguments)}function Y(){return Y=(0,y.Z)((0,n.Z)().mark(function i(u){return(0,n.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,$.WY)("/kitchen/api/store-staff/store-staff",{method:"POST",data:u}));case 1:case"end":return r.stop()}},i)})),Y.apply(this,arguments)}function ce(i){return L.apply(this,arguments)}function L(){return L=(0,y.Z)((0,n.Z)().mark(function i(u){return(0,n.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,$.WY)("/kitchen\u200B/api/store-staff/store-staff",{method:"put",data:u}));case 1:case"end":return r.stop()}},i)})),L.apply(this,arguments)}function oe(i){return K.apply(this,arguments)}function K(){return K=(0,y.Z)((0,n.Z)().mark(function i(u){return(0,n.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,$.WY)("\u200B/kitchen/api/store-staff/del-store-staff",{method:"POST",data:u}));case 1:case"end":return r.stop()}},i)})),K.apply(this,arguments)}function fe(i){return V.apply(this,arguments)}function V(){return V=(0,y.Z)((0,n.Z)().mark(function i(u){return(0,n.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,$.WY)("/kitchen\u200B//api/cashierplatformapplication/storestaffpwd",{method:"put",data:u}));case 1:case"end":return r.stop()}},i)})),V.apply(this,arguments)}var pe=t(3408),A="message",he=function(){var i=(0,y.Z)((0,n.Z)().mark(function u(m){return(0,n.Z)().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.prev=0,d.default.loading("\u6B63\u5728\u6DFB\u52A0",A),s.next=4,de(JSON.stringify(m)).then(function(Z){return d.default.destroy(A),Z.data?(d.default.success("\u6DFB\u52A0\u6210\u529F"),!0):(d.default.error("\u6DFB\u52A0\u5931\u8D25"),!1)});case 4:s.next=10;break;case 6:return s.prev=6,s.t0=s.catch(0),d.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),s.abrupt("return",!1);case 10:case"end":return s.stop()}},u,null,[[0,6]])}));return function(m){return i.apply(this,arguments)}}(),me=function(){var i=(0,y.Z)((0,n.Z)().mark(function u(m){return(0,n.Z)().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.prev=0,d.default.loading("\u6B63\u5728\u4FEE\u6539",A),d.default.destroy(A),s.next=5,ce(JSON.stringify(m)).then(function(Z){return d.default.destroy(A),Z.data?(d.default.success("\u4FEE\u6539\u6210\u529F"),!0):(d.default.error("\u4FEE\u6539\u5931\u8D25"),!1)});case 5:s.next=11;break;case 7:return s.prev=7,s.t0=s.catch(0),d.default.error("\u4FEE\u6539\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),s.abrupt("return",!1);case 11:case"end":return s.stop()}},u,null,[[0,7]])}));return function(m){return i.apply(this,arguments)}}(),ve=function(){var i=(0,y.Z)((0,n.Z)().mark(function u(m){var r;return(0,n.Z)().wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:return Z.prev=0,d.default.loading("\u6B63\u5728\u5220\u9664"),r=[],m.forEach(function(D){r.push(D.id)}),Z.next=6,oe(r).then(function(D){return D.data?(d.default.success("\u5220\u9664\u6210\u529F"),!0):(d.default.error("\u5220\u9664\u5931\u8D25"),!1)});case 6:Z.next=12;break;case 8:return Z.prev=8,Z.t0=Z.catch(0),d.default.error("\u5220\u9664\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),Z.abrupt("return",!1);case 12:case"end":return Z.stop()}},u,null,[[0,8]])}));return function(m){return i.apply(this,arguments)}}(),Ze=function(){var u=(0,b.useState)(!1),m=(0,I.Z)(u,2),r=m[0],s=m[1],Z=(0,b.useState)(!1),D=(0,I.Z)(Z,2),ye=D[0],J=D[1],je=(0,b.useState)(!1),q=(0,I.Z)(je,2),Pe=q[0],De=q[1],N=(0,b.useRef)(),we=(0,b.useState)(),_=(0,I.Z)(we,2),H=_[0],M=_[1],Se=(0,b.useState)([]),ee=(0,I.Z)(Se,2),F=ee[0],te=ee[1],Oe=(0,b.useState)([]),re=(0,I.Z)(Oe,2),Ce=re[0],be=re[1],xe=(0,b.useState)([]),ae=(0,I.Z)(xe,2),Ee=ae[0],Ie=ae[1];(0,b.useEffect)(function(){function j(){(0,pe.FM)().then(function(p){l(p.data);function l(o){for(var h in o)o[h].type==2||o[h].type==3?o[h].disabled=!1:o[h].disabled=!0,o[h].children&&l(o[h].children)}be(p.data);var v={};w(p.data);function w(o){for(var h in o)v[o[h].disabled]=!0,v[o[h].value]={text:o[h].title},o[h].children&&w(o[h].children)}Ie(v)})}j()},[]);var Te=[{title:"\u4E3B\u952E",dataIndex:"id",hideInSearch:!0,hideInTable:!0,tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key"},{title:"\u540D\u79F0",dataIndex:"name",valueType:"textarea",search:!1},{title:"\u7535\u8BDD",dataIndex:"phone",valueType:"textarea",search:!1},{title:"\u804C\u5DE5\u7F16\u53F7",dataIndex:"number",valueType:"textarea",search:!1},{title:"\u5F52\u5C5E\u95E8\u5E97",dataIndex:"shopId",search:!1,valueEnum:Ee},{title:"\u72B6\u6001",dataIndex:"status",hideInForm:!0,search:!1,valueEnum:{0:{text:"\u6B63\u5E38",status:"Processing"},1:{text:"\u505C\u7528",status:"Success"},2:{text:"\u5220\u9664",status:"Error"}}},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"createAt",hideInForm:!0,search:!1},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(p,l){return[(0,e.jsx)("a",{onClick:function(){s(!0),M(l)},children:" \u66F4\u65B0"},"config"),(0,e.jsx)("a",{onClick:function(){J(!0),l.pwd="",M(l)},children:" \u4FEE\u6539\u5BC6\u7801"},"config")]}}];return(0,e.jsxs)(R.ZP,{children:[(0,e.jsx)(W.ZP,{headerTitle:"\u5E97\u94FA\u7C7B\u578B",actionRef:N,rowKey:"id",search:{labelWidth:120},toolBarRender:function(){return[(0,e.jsxs)(E.Z,{type:"primary",onClick:function(){s(!0)},children:[(0,e.jsx)(B.Z,{})," \u65B0\u5EFA"]},"primary")]},request:function(){var j=(0,y.Z)((0,n.Z)().mark(function p(l){var v,w;return(0,n.Z)().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return v=[],w=0,h.next=4,ie(l).then(function(ne){v=ne.data.data,w=ne.data.total});case 4:return h.abrupt("return",{data:v,success:!0,total:w});case 5:case"end":return h.stop()}},p)}));return function(p){return j.apply(this,arguments)}}(),columns:Te,rowSelection:{onChange:function(p,l){te(l)}}}),(F==null?void 0:F.length)>0&&(0,e.jsx)(G.Z,{extra:(0,e.jsxs)("div",{children:["\u5DF2\u9009\u62E9"," ",(0,e.jsx)("a",{style:{fontWeight:600},children:F.length})," ","\u9879 \xA0\xA0"]}),children:(0,e.jsx)(E.Z,{onClick:(0,y.Z)((0,n.Z)().mark(function j(){var p,l;return(0,n.Z)().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return w.next=2,ve(F);case 2:te([]),(p=N.current)===null||p===void 0||(l=p.reloadAndRest)===null||l===void 0||l.call(p);case 4:case"end":return w.stop()}},j)})),children:"\u5220\u9664"})}),(0,e.jsx)(le,{onFinish:function(){var j=(0,y.Z)((0,n.Z)().mark(function p(l){var v;return(0,n.Z)().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:v=!1,l.id?v=me(l):v=he(l),v&&(s(!1),M(void 0),N.current.reload());case 3:case"end":return o.stop()}},p)}));return function(p){return j.apply(this,arguments)}}(),onCancel:function(){s(!1),M(void 0)},createModalVisible:r,OrgData:Ce,values:H||{}}),(0,e.jsx)(x.Z,{title:"\u4FEE\u6539\u5BC6\u7801",open:ye,footer:null,onCancel:function(){J(!1)},children:(0,e.jsxs)(f.Z,{preserve:!1,onFinish:(0,y.Z)((0,n.Z)().mark(function j(){return(0,n.Z)().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,fe(JSON.stringify(H)).then(function(v){v.data?(d.default.success("\u4FEE\u6539\u6210\u529F"),J(!1)):d.default.error("\u4FEE\u6539\u5931\u8D25")});case 2:case"end":return l.stop()}},j)})),initialValues:H,children:[(0,e.jsx)(f.Z.Item,{name:"id",hidden:!0,children:(0,e.jsx)(C.Z,{})}),(0,e.jsx)(f.Z.Item,{label:"\u5BC6\u7801",name:"pwd",rules:[{required:!0}],children:(0,e.jsx)(C.Z,{})}),(0,e.jsx)(f.Z.Item,{children:(0,e.jsx)(E.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})})]})},ge=Ze},3408:function(se,k,t){"use strict";t.d(k,{lM:function(){return z},IH:function(){return Q},mm:function(){return X},eP:function(){return y},FM:function(){return G}});var S=t(39428),x=t(11849),P=t(3182),f=t(48971);function z(c,g){return C.apply(this,arguments)}function C(){return C=(0,P.Z)((0,S.Z)().mark(function c(g,T){return(0,S.Z)().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return O.abrupt("return",(0,f.WY)("/kitchen/api/sysOrg\u200B/page",{method:"GET",params:(0,x.Z)({},g)}));case 1:case"end":return O.stop()}},c)})),C.apply(this,arguments)}function Q(c){return E.apply(this,arguments)}function E(){return E=(0,P.Z)((0,S.Z)().mark(function c(g){return(0,S.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,f.WY)("/kitchen/api/sysOrg/add",{method:"POST",data:(0,x.Z)({},g)}));case 1:case"end":return a.stop()}},c)})),E.apply(this,arguments)}function I(c){return n.apply(this,arguments)}function n(){return n=_asyncToGenerator(_regeneratorRuntime().mark(function c(g){return _regeneratorRuntime().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",request("\u200B/kitchen/api\u200B/sysOrg\u200B/list",{method:"POST",data:_objectSpread({},g)}));case 1:case"end":return a.stop()}},c)})),n.apply(this,arguments)}function X(c){return d.apply(this,arguments)}function d(){return d=(0,P.Z)((0,S.Z)().mark(function c(g){return(0,S.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,f.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/delete",{method:"POST",data:(0,x.Z)({},g)}));case 1:case"end":return a.stop()}},c)})),d.apply(this,arguments)}function y(c){return B.apply(this,arguments)}function B(){return B=(0,P.Z)((0,S.Z)().mark(function c(g){return(0,S.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,f.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/edit",{method:"POST",data:(0,x.Z)({},g)}));case 1:case"end":return a.stop()}},c)})),B.apply(this,arguments)}function b(c){return R.apply(this,arguments)}function R(){return R=_asyncToGenerator(_regeneratorRuntime().mark(function c(g){return _regeneratorRuntime().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",request("/kitchen\u200B/api\u200B/sysOrg\u200B/detail",{method:"POST",data:_objectSpread({},g)}));case 1:case"end":return a.stop()}},c)})),R.apply(this,arguments)}function G(c){return W.apply(this,arguments)}function W(){return W=(0,P.Z)((0,S.Z)().mark(function c(g){return(0,S.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,f.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/tree",{data:(0,x.Z)({},g)}));case 1:case"end":return a.stop()}},c)})),W.apply(this,arguments)}}}]); +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[7025,1322],{77287:function(se,W,t){"use strict";t.r(W),t.d(W,{default:function(){return ge}});var S=t(71194),x=t(50146),T=t(9715),f=t(55843),z=t(47673),C=t(4107),Q=t(57663),E=t(71577),P=t(2824),n=t(39428),X=t(34792),d=t(48086),y=t(3182),D=t(49101),b=t(67294),A=t(78009),G=t(85224),R=t(16894),c=t(79361),g=t(62999),I=t(54680),a=t(43358),O=t(34041),e=t(85893),ue=function(u){var m=O.Z.Option,r=O.Z.OptGroup;return(0,e.jsx)(x.Z,{title:u.values.id?"\u7F16\u8F91":"\u65B0\u5EFA",width:640,visible:u.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){u.onCancel()},destroyOnClose:!0,children:(0,e.jsxs)(f.Z,{preserve:!1,initialValues:u.values,onFinish:u.onFinish,children:[(0,e.jsx)(f.Z.Item,{name:"id",hidden:!0,children:(0,e.jsx)(C.Z,{})}),(0,e.jsx)(f.Z.Item,{label:"\u540D\u79F0",name:"name",rules:[{required:!0}],children:(0,e.jsx)(C.Z,{})}),(0,e.jsx)(f.Z.Item,{label:"\u7535\u8BDD",name:"phone",rules:[{required:!0}],children:(0,e.jsx)(C.Z,{})}),(0,e.jsx)(f.Z.Item,{label:"\u5DE5\u53F7",name:"number",rules:[{required:!0}],children:(0,e.jsx)(C.Z,{})}),(0,e.jsx)(f.Z.Item,{name:"shopId",label:"\u95E8\u5E97",rules:[{required:!0}],children:(0,e.jsx)(I.Z,{style:{width:"100%"},dropdownStyle:{maxHeight:400,overflow:"auto"},treeData:u.OrgData,placeholder:"\u95E8\u5E97",treeDefaultExpandAll:!0})}),(0,e.jsx)(f.Z.Item,{name:"status",label:"\u72B6\u6001",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u72B6\u6001"}],children:(0,e.jsx)(O.Z,{placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001",children:(0,e.jsxs)(r,{children:[(0,e.jsx)(O.Z.Option,{value:0,children:"\u6B63\u5E38"}),(0,e.jsx)(O.Z.Option,{value:1,children:"\u505C\u7528"}),(0,e.jsx)(O.Z.Option,{value:2,children:"\u5220\u9664"})]})})}),(0,e.jsx)(f.Z.Item,{children:(0,e.jsx)(E.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})})},le=ue,$=t(48971);function ie(i){return U.apply(this,arguments)}function U(){return U=(0,y.Z)((0,n.Z)().mark(function i(u){return(0,n.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,$.WY)("/kitchen/api/store-staff/store-staff-page",{method:"POST",data:u}));case 1:case"end":return r.stop()}},i)})),U.apply(this,arguments)}function de(i){return Y.apply(this,arguments)}function Y(){return Y=(0,y.Z)((0,n.Z)().mark(function i(u){return(0,n.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,$.WY)("/kitchen/api/store-staff/store-staff",{method:"POST",data:u}));case 1:case"end":return r.stop()}},i)})),Y.apply(this,arguments)}function ce(i){return L.apply(this,arguments)}function L(){return L=(0,y.Z)((0,n.Z)().mark(function i(u){return(0,n.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,$.WY)("/kitchen\u200B/api/store-staff/store-staff",{method:"put",data:u}));case 1:case"end":return r.stop()}},i)})),L.apply(this,arguments)}function oe(i){return K.apply(this,arguments)}function K(){return K=(0,y.Z)((0,n.Z)().mark(function i(u){return(0,n.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,$.WY)("\u200B/kitchen/api/store-staff/del-store-staff",{method:"POST",data:u}));case 1:case"end":return r.stop()}},i)})),K.apply(this,arguments)}function fe(i){return V.apply(this,arguments)}function V(){return V=(0,y.Z)((0,n.Z)().mark(function i(u){return(0,n.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,$.WY)("/kitchen\u200B//api/cashierplatformapplication/storestaffpwd",{method:"put",data:u}));case 1:case"end":return r.stop()}},i)})),V.apply(this,arguments)}var pe=t(3408),F="message",he=function(){var i=(0,y.Z)((0,n.Z)().mark(function u(m){return(0,n.Z)().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.prev=0,d.default.loading("\u6B63\u5728\u6DFB\u52A0",F),s.next=4,de(JSON.stringify(m)).then(function(Z){return d.default.destroy(F),Z.data?(d.default.success("\u6DFB\u52A0\u6210\u529F"),!0):(d.default.error("\u6DFB\u52A0\u5931\u8D25"),!1)});case 4:s.next=10;break;case 6:return s.prev=6,s.t0=s.catch(0),d.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),s.abrupt("return",!1);case 10:case"end":return s.stop()}},u,null,[[0,6]])}));return function(m){return i.apply(this,arguments)}}(),me=function(){var i=(0,y.Z)((0,n.Z)().mark(function u(m){return(0,n.Z)().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.prev=0,d.default.loading("\u6B63\u5728\u4FEE\u6539",F),d.default.destroy(F),s.next=5,ce(JSON.stringify(m)).then(function(Z){return d.default.destroy(F),Z.data?(d.default.success("\u4FEE\u6539\u6210\u529F"),!0):(d.default.error("\u4FEE\u6539\u5931\u8D25"),!1)});case 5:s.next=11;break;case 7:return s.prev=7,s.t0=s.catch(0),d.default.error("\u4FEE\u6539\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),s.abrupt("return",!1);case 11:case"end":return s.stop()}},u,null,[[0,7]])}));return function(m){return i.apply(this,arguments)}}(),ve=function(){var i=(0,y.Z)((0,n.Z)().mark(function u(m){var r;return(0,n.Z)().wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:return Z.prev=0,d.default.loading("\u6B63\u5728\u5220\u9664"),r=[],m.forEach(function(B){r.push(B.id)}),Z.next=6,oe(r).then(function(B){return B.data?(d.default.success("\u5220\u9664\u6210\u529F"),!0):(d.default.error("\u5220\u9664\u5931\u8D25"),!1)});case 6:Z.next=12;break;case 8:return Z.prev=8,Z.t0=Z.catch(0),d.default.error("\u5220\u9664\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),Z.abrupt("return",!1);case 12:case"end":return Z.stop()}},u,null,[[0,8]])}));return function(m){return i.apply(this,arguments)}}(),Ze=function(){var u=(0,b.useState)(!1),m=(0,P.Z)(u,2),r=m[0],s=m[1],Z=(0,b.useState)(!1),B=(0,P.Z)(Z,2),ye=B[0],J=B[1],je=(0,b.useState)(!1),q=(0,P.Z)(je,2),Te=q[0],Be=q[1],N=(0,b.useRef)(),we=(0,b.useState)(),_=(0,P.Z)(we,2),H=_[0],k=_[1],Se=(0,b.useState)([]),ee=(0,P.Z)(Se,2),M=ee[0],te=ee[1],Oe=(0,b.useState)([]),re=(0,P.Z)(Oe,2),Ce=re[0],be=re[1],xe=(0,b.useState)([]),ae=(0,P.Z)(xe,2),Ee=ae[0],Pe=ae[1];(0,b.useEffect)(function(){function j(){(0,pe.FM)().then(function(p){l(p.data);function l(o){for(var h in o)o[h].type==2||o[h].type==3?o[h].disabled=!1:o[h].disabled=!0,o[h].children&&l(o[h].children)}be(p.data);var v={};w(p.data);function w(o){for(var h in o)v[o[h].disabled]=!0,v[o[h].value]={text:o[h].title},o[h].children&&w(o[h].children)}Pe(v)})}j()},[]);var Ie=[{title:"\u4E3B\u952E",dataIndex:"id",hideInSearch:!0,hideInTable:!0,tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key"},{title:"\u540D\u79F0",dataIndex:"name",valueType:"textarea",search:!1},{title:"\u7535\u8BDD",dataIndex:"phone",valueType:"textarea",search:!1},{title:"\u804C\u5DE5\u7F16\u53F7",dataIndex:"number",valueType:"textarea",search:!1},{title:"\u5F52\u5C5E\u95E8\u5E97",dataIndex:"shopId",search:!1,valueEnum:Ee},{title:"\u72B6\u6001",dataIndex:"status",hideInForm:!0,search:!1,valueEnum:{0:{text:"\u6B63\u5E38",status:"Processing"},1:{text:"\u505C\u7528",status:"Success"},2:{text:"\u5220\u9664",status:"Error"}}},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"createAt",hideInForm:!0,search:!1},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(p,l){return[(0,e.jsx)("a",{onClick:function(){s(!0),k(l)},children:" \u66F4\u65B0"},"config"),(0,e.jsx)("a",{onClick:function(){J(!0),l.pwd="",k(l)},children:" \u4FEE\u6539\u5BC6\u7801"},"config")]}}];return(0,e.jsxs)(A.ZP,{children:[(0,e.jsx)(R.ZP,{headerTitle:"\u5E97\u94FA\u7C7B\u578B",actionRef:N,rowKey:"id",search:{labelWidth:120},toolBarRender:function(){return[(0,e.jsxs)(E.Z,{type:"primary",onClick:function(){s(!0)},children:[(0,e.jsx)(D.Z,{})," \u65B0\u5EFA"]},"primary")]},request:function(){var j=(0,y.Z)((0,n.Z)().mark(function p(l){var v,w;return(0,n.Z)().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return v=[],w=0,h.next=4,ie(l).then(function(ne){v=ne.data.data,w=ne.data.total});case 4:return h.abrupt("return",{data:v,success:!0,total:w});case 5:case"end":return h.stop()}},p)}));return function(p){return j.apply(this,arguments)}}(),columns:Ie,rowSelection:{onChange:function(p,l){te(l)}}}),(M==null?void 0:M.length)>0&&(0,e.jsx)(G.Z,{extra:(0,e.jsxs)("div",{children:["\u5DF2\u9009\u62E9"," ",(0,e.jsx)("a",{style:{fontWeight:600},children:M.length})," ","\u9879 \xA0\xA0"]}),children:(0,e.jsx)(E.Z,{onClick:(0,y.Z)((0,n.Z)().mark(function j(){var p,l;return(0,n.Z)().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return w.next=2,ve(M);case 2:te([]),(p=N.current)===null||p===void 0||(l=p.reloadAndRest)===null||l===void 0||l.call(p);case 4:case"end":return w.stop()}},j)})),children:"\u5220\u9664"})}),(0,e.jsx)(le,{onFinish:function(){var j=(0,y.Z)((0,n.Z)().mark(function p(l){var v;return(0,n.Z)().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:v=!1,l.id?v=me(l):v=he(l),v&&(s(!1),k(void 0),N.current.reload());case 3:case"end":return o.stop()}},p)}));return function(p){return j.apply(this,arguments)}}(),onCancel:function(){s(!1),k(void 0)},createModalVisible:r,OrgData:Ce,values:H||{}}),(0,e.jsx)(x.Z,{title:"\u4FEE\u6539\u5BC6\u7801",open:ye,footer:null,onCancel:function(){J(!1)},children:(0,e.jsxs)(f.Z,{preserve:!1,onFinish:(0,y.Z)((0,n.Z)().mark(function j(){return(0,n.Z)().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,fe(JSON.stringify(H)).then(function(v){v.data?(d.default.success("\u4FEE\u6539\u6210\u529F"),J(!1)):d.default.error("\u4FEE\u6539\u5931\u8D25")});case 2:case"end":return l.stop()}},j)})),initialValues:H,children:[(0,e.jsx)(f.Z.Item,{name:"id",hidden:!0,children:(0,e.jsx)(C.Z,{})}),(0,e.jsx)(f.Z.Item,{label:"\u5BC6\u7801",name:"pwd",rules:[{required:!0}],children:(0,e.jsx)(C.Z,{})}),(0,e.jsx)(f.Z.Item,{children:(0,e.jsx)(E.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})})]})},ge=Ze},3408:function(se,W,t){"use strict";t.d(W,{lM:function(){return z},IH:function(){return Q},mm:function(){return X},eP:function(){return y},FM:function(){return G}});var S=t(39428),x=t(11849),T=t(3182),f=t(48971);function z(c,g){return C.apply(this,arguments)}function C(){return C=(0,T.Z)((0,S.Z)().mark(function c(g,I){return(0,S.Z)().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return O.abrupt("return",(0,f.WY)("/kitchen/api/sysOrg\u200B/page",{method:"GET",params:(0,x.Z)({},g)}));case 1:case"end":return O.stop()}},c)})),C.apply(this,arguments)}function Q(c){return E.apply(this,arguments)}function E(){return E=(0,T.Z)((0,S.Z)().mark(function c(g){return(0,S.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,f.WY)("/kitchen/api/sysOrg/add",{method:"POST",data:(0,x.Z)({},g)}));case 1:case"end":return a.stop()}},c)})),E.apply(this,arguments)}function P(c){return n.apply(this,arguments)}function n(){return n=_asyncToGenerator(_regeneratorRuntime().mark(function c(g){return _regeneratorRuntime().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",request("\u200B/kitchen/api\u200B/sysOrg\u200B/list",{method:"POST",data:_objectSpread({},g)}));case 1:case"end":return a.stop()}},c)})),n.apply(this,arguments)}function X(c){return d.apply(this,arguments)}function d(){return d=(0,T.Z)((0,S.Z)().mark(function c(g){return(0,S.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,f.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/delete",{method:"POST",data:(0,x.Z)({},g)}));case 1:case"end":return a.stop()}},c)})),d.apply(this,arguments)}function y(c){return D.apply(this,arguments)}function D(){return D=(0,T.Z)((0,S.Z)().mark(function c(g){return(0,S.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,f.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/edit",{method:"POST",data:(0,x.Z)({},g)}));case 1:case"end":return a.stop()}},c)})),D.apply(this,arguments)}function b(c){return A.apply(this,arguments)}function A(){return A=_asyncToGenerator(_regeneratorRuntime().mark(function c(g){return _regeneratorRuntime().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",request("/kitchen\u200B/api\u200B/sysOrg\u200B/detail",{method:"POST",data:_objectSpread({},g)}));case 1:case"end":return a.stop()}},c)})),A.apply(this,arguments)}function G(c){return R.apply(this,arguments)}function R(){return R=(0,T.Z)((0,S.Z)().mark(function c(g){return(0,S.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,f.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/tree",{data:(0,x.Z)({},g)}));case 1:case"end":return a.stop()}},c)})),R.apply(this,arguments)}}}]); diff --git a/dist/p__store__storeType.2bb94262.async.js b/dist/p__store__storeType.60c12a0e.async.js similarity index 79% rename from dist/p__store__storeType.2bb94262.async.js rename to dist/p__store__storeType.60c12a0e.async.js index 37e1f48..b4a5013 100644 --- a/dist/p__store__storeType.2bb94262.async.js +++ b/dist/p__store__storeType.60c12a0e.async.js @@ -1 +1 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[6956,1322],{44499:function(V,F,e){"use strict";e.r(F),e.d(F,{default:function(){return q}});var v=e(57663),S=e(71577),B=e(71194),P=e(50146),C=e(2824),l=e(39428),w=e(34792),a=e(48086),p=e(3182),$=e(49101),m=e(67294),o=e(78009),y=e(85224),x=e(16894),n=e(79361),N=e.n(n),ne=e(9715),E=e(55843),ae=e(47673),U=e(4107),ue=e(43358),T=e(34041),r=e(85893),z=function(u){var c=T.Z.Option,Z=T.Z.OptGroup;return(0,r.jsx)(P.Z,{title:u.values.id?"\u7F16\u8F91":"\u65B0\u5EFA",width:640,visible:u.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){u.onCancel()},destroyOnClose:!0,children:(0,r.jsxs)(E.Z,{layout:"vertical",preserve:!1,initialValues:u.values,onFinish:u.onFinish,children:[(0,r.jsx)(E.Z.Item,{name:"id",hidden:!0,children:(0,r.jsx)(U.Z,{})}),(0,r.jsx)(E.Z.Item,{label:"\u7C7B\u578B\u540D\u79F0",name:"storeType_Name",rules:[{required:!0}],children:(0,r.jsx)(U.Z,{})}),(0,r.jsx)(E.Z.Item,{name:"status",label:"\u72B6\u6001",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u72B6\u6001"}],children:(0,r.jsx)(T.Z,{placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001",children:(0,r.jsxs)(Z,{children:[(0,r.jsx)(T.Z.Option,{value:0,children:"\u6B63\u5E38"}),(0,r.jsx)(T.Z.Option,{value:1,children:"\u505C\u7528"}),(0,r.jsx)(T.Z.Option,{value:2,children:"\u5220\u9664"})]})})}),(0,r.jsx)(E.Z.Item,{children:(0,r.jsx)(S.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})})},L=z,D=e(41877),O="message",J=function(){var j=(0,p.Z)((0,l.Z)().mark(function u(c){return(0,l.Z)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,a.default.loading("\u6B63\u5728\u6DFB\u52A0",O),t.next=4,(0,D.U7)(JSON.stringify(c)).then(function(s){return a.default.destroy(O),s.data?(a.default.success("\u6DFB\u52A0\u6210\u529F"),!0):(a.default.error("\u6DFB\u52A0\u5931\u8D25"),!1)});case 4:t.next=10;break;case 6:return t.prev=6,t.t0=t.catch(0),a.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),t.abrupt("return",!1);case 10:case"end":return t.stop()}},u,null,[[0,6]])}));return function(c){return j.apply(this,arguments)}}(),H=function(){var j=(0,p.Z)((0,l.Z)().mark(function u(c){return(0,l.Z)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,a.default.loading("\u6B63\u5728\u4FEE\u6539",O),a.default.destroy(O),t.next=5,(0,D.z7)(JSON.stringify(c)).then(function(s){return a.default.destroy(O),s.data?(a.default.success("\u4FEE\u6539\u6210\u529F"),!0):(a.default.success("\u4FEE\u6539\u5931\u8D25"),!1)});case 5:t.next=11;break;case 7:return t.prev=7,t.t0=t.catch(0),a.default.error("\u4FEE\u6539\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),t.abrupt("return",!1);case 11:case"end":return t.stop()}},u,null,[[0,7]])}));return function(c){return j.apply(this,arguments)}}(),Q=function(){var j=(0,p.Z)((0,l.Z)().mark(function u(c){var Z;return(0,l.Z)().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.prev=0,a.default.loading("\u6B63\u5728\u5220\u9664"),Z=[],c.forEach(function(A){Z.push(A.id)}),s.next=6,(0,D.Ym)(Z).then(function(A){return A.data?(a.default.success("\u5220\u9664\u6210\u529F"),!0):(a.default.success("\u5220\u9664\u5931\u8D25"),!1)});case 6:s.next=12;break;case 8:return s.prev=8,s.t0=s.catch(0),a.default.error("\u5220\u9664\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),s.abrupt("return",!1);case 12:case"end":return s.stop()}},u,null,[[0,8]])}));return function(c){return j.apply(this,arguments)}}(),X=function(){var u=(0,m.useState)(!1),c=(0,C.Z)(u,2),Z=c[0],t=c[1],s=(0,m.useState)(!1),A=(0,C.Z)(s,2),se=A[0],le=A[1],b=(0,m.useRef)(),_=(0,m.useState)(),G=(0,C.Z)(_,2),ee=G[0],M=G[1],te=(0,m.useState)([]),k=(0,C.Z)(te,2),I=k[0],K=k[1],re=[{title:"\u4E3B\u952E",dataIndex:"id",hideInSearch:!0,hideInTable:!0,tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key"},{title:"\u7C7B\u578B\u540D\u79F0",dataIndex:"storeType_Name",valueType:"textarea"},{title:"\u72B6\u6001",dataIndex:"status",hideInForm:!0,valueEnum:{0:{text:"\u6B63\u5E38",status:"Processing"},1:{text:"\u505C\u7528",status:"Success"},2:{text:"\u5220\u9664",status:"Error"}}},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"createAt",hideInForm:!0,search:!1},{title:"\u4FEE\u6539\u65F6\u95F4",dataIndex:"updateAt",hideInForm:!0,search:!1},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(d,i){return[(0,r.jsx)("a",{onClick:function(){t(!0),M(i)},children:" \u66F4\u65B0"},"config"),(0,r.jsxs)("a",{onClick:function(){var h={title:"\u5E97\u94FA\u4E8C\u7EF4\u7801",content:(0,r.jsx)(N(),{id:"qrCode",value:"https://black-pa.com:5444/lead?StoreId=&StoreType=".concat(i.id),size:200,fgColor:"#000000",style:{margin:"auto"}})};P.Z.info(h)},children:[" ","\u5E97\u94FA\u4E8C\u7EF4\u7801"]},"primary")]}}];return(0,r.jsxs)(o.ZP,{children:[(0,r.jsx)(x.ZP,{headerTitle:"\u5E97\u94FA\u7C7B\u578B",actionRef:b,rowKey:"id",search:{labelWidth:120},toolBarRender:function(){return[(0,r.jsxs)(S.Z,{type:"primary",onClick:function(){t(!0)},children:[(0,r.jsx)($.Z,{})," \u65B0\u5EFA"]},"primary")]},request:function(){var g=(0,p.Z)((0,l.Z)().mark(function d(i){var f,h;return(0,l.Z)().wrap(function(R){for(;;)switch(R.prev=R.next){case 0:return f=[],h=0,R.next=4,(0,D.ow)(i).then(function(Y){f=Y.data.data,h=Y.data.total});case 4:return R.abrupt("return",{data:f,success:!0,total:h});case 5:case"end":return R.stop()}},d)}));return function(d){return g.apply(this,arguments)}}(),columns:re,rowSelection:{onChange:function(d,i){K(i)}}}),(I==null?void 0:I.length)>0&&(0,r.jsx)(y.Z,{extra:(0,r.jsxs)("div",{children:["\u5DF2\u9009\u62E9"," ",(0,r.jsx)("a",{style:{fontWeight:600},children:I.length})," ","\u9879 \xA0\xA0"]}),children:(0,r.jsx)(S.Z,{onClick:(0,p.Z)((0,l.Z)().mark(function g(){var d,i;return(0,l.Z)().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.next=2,Q(I);case 2:K([]),(d=b.current)===null||d===void 0||(i=d.reloadAndRest)===null||i===void 0||i.call(d);case 4:case"end":return h.stop()}},g)})),children:"\u5220\u9664"})}),(0,r.jsx)(L,{onFinish:function(){var g=(0,p.Z)((0,l.Z)().mark(function d(i){var f;return(0,l.Z)().wrap(function(W){for(;;)switch(W.prev=W.next){case 0:f=!1,i.id?f=H(i):f=J(i),f&&(t(!1),M(void 0),b.current.reload());case 3:case"end":return W.stop()}},d)}));return function(d){return g.apply(this,arguments)}}(),onCancel:function(){t(!1),M(void 0)},createModalVisible:Z,values:ee||{}})]})},q=X},41877:function(V,F,e){"use strict";e.d(F,{ow:function(){return P},U7:function(){return l},z7:function(){return a},Ym:function(){return $}});var v=e(39428),S=e(3182),B=e(48971);function P(o){return C.apply(this,arguments)}function C(){return C=(0,S.Z)((0,v.Z)().mark(function o(y){return(0,v.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,B.WY)("/kitchen/api/store/store-type-page",{method:"POST",data:y}));case 1:case"end":return n.stop()}},o)})),C.apply(this,arguments)}function l(o){return w.apply(this,arguments)}function w(){return w=(0,S.Z)((0,v.Z)().mark(function o(y){return(0,v.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,B.WY)("/kitchen/api\u200B/store\u200B/store-type",{method:"POST",data:y}));case 1:case"end":return n.stop()}},o)})),w.apply(this,arguments)}function a(o){return p.apply(this,arguments)}function p(){return p=(0,S.Z)((0,v.Z)().mark(function o(y){return(0,v.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,B.WY)("/kitchen\u200B/api\u200B/store\u200B/store-type",{method:"put",data:y}));case 1:case"end":return n.stop()}},o)})),p.apply(this,arguments)}function $(o){return m.apply(this,arguments)}function m(){return m=(0,S.Z)((0,v.Z)().mark(function o(y){return(0,v.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,B.WY)("\u200B/kitchen/api/store/del-store-type",{method:"POST",data:y}));case 1:case"end":return n.stop()}},o)})),m.apply(this,arguments)}}}]); +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[6956,1322],{44499:function(k,R,e){"use strict";e.r(R),e.d(R,{default:function(){return q}});var v=e(57663),S=e(71577),B=e(71194),F=e(50146),C=e(2824),l=e(39428),w=e(34792),a=e(48086),p=e(3182),b=e(49101),m=e(67294),o=e(78009),y=e(85224),x=e(16894),n=e(79361),N=e.n(n),ne=e(9715),E=e(55843),ae=e(47673),U=e(4107),ue=e(43358),T=e(34041),r=e(85893),z=function(u){var c=T.Z.Option,Z=T.Z.OptGroup;return(0,r.jsx)(F.Z,{title:u.values.id?"\u7F16\u8F91":"\u65B0\u5EFA",width:640,visible:u.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){u.onCancel()},destroyOnClose:!0,children:(0,r.jsxs)(E.Z,{layout:"vertical",preserve:!1,initialValues:u.values,onFinish:u.onFinish,children:[(0,r.jsx)(E.Z.Item,{name:"id",hidden:!0,children:(0,r.jsx)(U.Z,{})}),(0,r.jsx)(E.Z.Item,{label:"\u7C7B\u578B\u540D\u79F0",name:"storeType_Name",rules:[{required:!0}],children:(0,r.jsx)(U.Z,{})}),(0,r.jsx)(E.Z.Item,{name:"status",label:"\u72B6\u6001",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u72B6\u6001"}],children:(0,r.jsx)(T.Z,{placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001",children:(0,r.jsxs)(Z,{children:[(0,r.jsx)(T.Z.Option,{value:0,children:"\u6B63\u5E38"}),(0,r.jsx)(T.Z.Option,{value:1,children:"\u505C\u7528"}),(0,r.jsx)(T.Z.Option,{value:2,children:"\u5220\u9664"})]})})}),(0,r.jsx)(E.Z.Item,{children:(0,r.jsx)(S.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})})},L=z,D=e(41877),O="message",J=function(){var j=(0,p.Z)((0,l.Z)().mark(function u(c){return(0,l.Z)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,a.default.loading("\u6B63\u5728\u6DFB\u52A0",O),t.next=4,(0,D.U7)(JSON.stringify(c)).then(function(s){return a.default.destroy(O),s.data?(a.default.success("\u6DFB\u52A0\u6210\u529F"),!0):(a.default.error("\u6DFB\u52A0\u5931\u8D25"),!1)});case 4:t.next=10;break;case 6:return t.prev=6,t.t0=t.catch(0),a.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),t.abrupt("return",!1);case 10:case"end":return t.stop()}},u,null,[[0,6]])}));return function(c){return j.apply(this,arguments)}}(),H=function(){var j=(0,p.Z)((0,l.Z)().mark(function u(c){return(0,l.Z)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,a.default.loading("\u6B63\u5728\u4FEE\u6539",O),a.default.destroy(O),t.next=5,(0,D.z7)(JSON.stringify(c)).then(function(s){return a.default.destroy(O),s.data?(a.default.success("\u4FEE\u6539\u6210\u529F"),!0):(a.default.success("\u4FEE\u6539\u5931\u8D25"),!1)});case 5:t.next=11;break;case 7:return t.prev=7,t.t0=t.catch(0),a.default.error("\u4FEE\u6539\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),t.abrupt("return",!1);case 11:case"end":return t.stop()}},u,null,[[0,7]])}));return function(c){return j.apply(this,arguments)}}(),Q=function(){var j=(0,p.Z)((0,l.Z)().mark(function u(c){var Z;return(0,l.Z)().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.prev=0,a.default.loading("\u6B63\u5728\u5220\u9664"),Z=[],c.forEach(function(A){Z.push(A.id)}),s.next=6,(0,D.Ym)(Z).then(function(A){return A.data?(a.default.success("\u5220\u9664\u6210\u529F"),!0):(a.default.success("\u5220\u9664\u5931\u8D25"),!1)});case 6:s.next=12;break;case 8:return s.prev=8,s.t0=s.catch(0),a.default.error("\u5220\u9664\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),s.abrupt("return",!1);case 12:case"end":return s.stop()}},u,null,[[0,8]])}));return function(c){return j.apply(this,arguments)}}(),X=function(){var u=(0,m.useState)(!1),c=(0,C.Z)(u,2),Z=c[0],t=c[1],s=(0,m.useState)(!1),A=(0,C.Z)(s,2),se=A[0],le=A[1],M=(0,m.useRef)(),_=(0,m.useState)(),G=(0,C.Z)(_,2),ee=G[0],W=G[1],te=(0,m.useState)([]),K=(0,C.Z)(te,2),P=K[0],Y=K[1],re=[{title:"\u4E3B\u952E",dataIndex:"id",hideInSearch:!0,hideInTable:!0,tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key"},{title:"\u7C7B\u578B\u540D\u79F0",dataIndex:"storeType_Name",valueType:"textarea"},{title:"\u72B6\u6001",dataIndex:"status",hideInForm:!0,valueEnum:{0:{text:"\u6B63\u5E38",status:"Processing"},1:{text:"\u505C\u7528",status:"Success"},2:{text:"\u5220\u9664",status:"Error"}}},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"createAt",hideInForm:!0,search:!1},{title:"\u4FEE\u6539\u65F6\u95F4",dataIndex:"updateAt",hideInForm:!0,search:!1},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(d,i){return[(0,r.jsx)("a",{onClick:function(){t(!0),W(i)},children:" \u66F4\u65B0"},"config"),(0,r.jsxs)("a",{onClick:function(){var h={title:"\u5E97\u94FA\u4E8C\u7EF4\u7801",content:(0,r.jsx)(N(),{id:"qrCode",value:"https://black-pa.com:5444/lead?StoreId=&StoreType=".concat(i.id),size:200,fgColor:"#000000",style:{margin:"auto"}})};F.Z.info(h)},children:[" ","\u5E97\u94FA\u4E8C\u7EF4\u7801"]},"primary")]}}];return(0,r.jsxs)(o.ZP,{children:[(0,r.jsx)(x.ZP,{headerTitle:"\u5E97\u94FA\u7C7B\u578B",actionRef:M,rowKey:"id",search:{labelWidth:120},toolBarRender:function(){return[(0,r.jsxs)(S.Z,{type:"primary",onClick:function(){t(!0)},children:[(0,r.jsx)(b.Z,{})," \u65B0\u5EFA"]},"primary")]},request:function(){var g=(0,p.Z)((0,l.Z)().mark(function d(i){var f,h;return(0,l.Z)().wrap(function(I){for(;;)switch(I.prev=I.next){case 0:return f=[],h=0,I.next=4,(0,D.ow)(i).then(function(V){f=V.data.data,h=V.data.total});case 4:return I.abrupt("return",{data:f,success:!0,total:h});case 5:case"end":return I.stop()}},d)}));return function(d){return g.apply(this,arguments)}}(),columns:re,rowSelection:{onChange:function(d,i){Y(i)}}}),(P==null?void 0:P.length)>0&&(0,r.jsx)(y.Z,{extra:(0,r.jsxs)("div",{children:["\u5DF2\u9009\u62E9"," ",(0,r.jsx)("a",{style:{fontWeight:600},children:P.length})," ","\u9879 \xA0\xA0"]}),children:(0,r.jsx)(S.Z,{onClick:(0,p.Z)((0,l.Z)().mark(function g(){var d,i;return(0,l.Z)().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.next=2,Q(P);case 2:Y([]),(d=M.current)===null||d===void 0||(i=d.reloadAndRest)===null||i===void 0||i.call(d);case 4:case"end":return h.stop()}},g)})),children:"\u5220\u9664"})}),(0,r.jsx)(L,{onFinish:function(){var g=(0,p.Z)((0,l.Z)().mark(function d(i){var f;return(0,l.Z)().wrap(function($){for(;;)switch($.prev=$.next){case 0:f=!1,i.id?f=H(i):f=J(i),f&&(t(!1),W(void 0),M.current.reload());case 3:case"end":return $.stop()}},d)}));return function(d){return g.apply(this,arguments)}}(),onCancel:function(){t(!1),W(void 0)},createModalVisible:Z,values:ee||{}})]})},q=X},41877:function(k,R,e){"use strict";e.d(R,{ow:function(){return F},U7:function(){return l},z7:function(){return a},Ym:function(){return b}});var v=e(39428),S=e(3182),B=e(48971);function F(o){return C.apply(this,arguments)}function C(){return C=(0,S.Z)((0,v.Z)().mark(function o(y){return(0,v.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,B.WY)("/kitchen/api/store/store-type-page",{method:"POST",data:y}));case 1:case"end":return n.stop()}},o)})),C.apply(this,arguments)}function l(o){return w.apply(this,arguments)}function w(){return w=(0,S.Z)((0,v.Z)().mark(function o(y){return(0,v.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,B.WY)("/kitchen/api\u200B/store\u200B/store-type",{method:"POST",data:y}));case 1:case"end":return n.stop()}},o)})),w.apply(this,arguments)}function a(o){return p.apply(this,arguments)}function p(){return p=(0,S.Z)((0,v.Z)().mark(function o(y){return(0,v.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,B.WY)("/kitchen\u200B/api\u200B/store\u200B/store-type",{method:"put",data:y}));case 1:case"end":return n.stop()}},o)})),p.apply(this,arguments)}function b(o){return m.apply(this,arguments)}function m(){return m=(0,S.Z)((0,v.Z)().mark(function o(y){return(0,v.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,B.WY)("\u200B/kitchen/api/store/del-store-type",{method:"POST",data:y}));case 1:case"end":return n.stop()}},o)})),m.apply(this,arguments)}}}]); diff --git a/dist/p__sys__org.8894d665.async.js b/dist/p__sys__org.88680671.async.js similarity index 89% rename from dist/p__sys__org.8894d665.async.js rename to dist/p__sys__org.88680671.async.js index d7245ec..9219176 100644 --- a/dist/p__sys__org.8894d665.async.js +++ b/dist/p__sys__org.88680671.async.js @@ -1 +1 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[6442],{97742:function(ee){ee.exports={store_config_container:"store_config_container___2LSwE",choose_store_state:"choose_store_state___36VpX",add_row_content:"add_row_content___LoP14",add_row_btn:"add_row_btn___3o2fm"}},83341:function(ee,k,t){"use strict";t.d(k,{O:function(){return g}});function g(F){F=F||32;for(var M="ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz",S=M.length,H="012345678",R=H.length,V="",O=0;O=2&&(x=(0,e.jsx)("a",{onClick:function(){Fe.m8.push({pathname:"/sys/storemanage",query:{isAdd:!1,values:i.id}})},children:"\u5E97\u94FA\u7BA1\u7406"},"primary2")),[(0,e.jsxs)("a",{onClick:function(){w(i),u(!0)},children:[" ","\u4FEE\u6539"]},"primary3"),x]}}];return(0,p.useEffect)(function(){function v(){(0,K.FM)().then(function(h){ve(h.data)})}v()},[]),(0,e.jsxs)(se.ZP,{children:[(0,e.jsx)(l.ZP,{headerTitle:"\u7EC4\u7EC7\u5217\u8868",actionRef:Y,rowKey:"id",search:{labelWidth:120},tableRender:function(h,i){return(0,e.jsxs)("div",{style:{display:"flex",width:"100%"},children:[(0,e.jsx)(R.Z,{title:"\u673A\u6784\u90E8\u95E8",children:(0,e.jsx)(O.Z,{defaultExpandAll:!0,onSelect:function(E){return Re(E[0])},treeData:me})}),(0,e.jsx)("div",{style:{flex:1},children:i})]})},toolBarRender:function(){return[(0,e.jsxs)(S.Z,{type:"primary",onClick:function(){var i={code:(0,Be.O)(4)};w(i),u(!0)},children:[(0,e.jsx)(pe.Z,{})," \u65B0\u5EFA"]},"primary1")]},params:{Pid:Pe},request:function(){var v=(0,B.Z)((0,c.Z)().mark(function h(i){var x,E;return(0,c.Z)().wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return x=[],E=0,G.next=4,(0,K.lM)(i).then(function(ge){x=ge.data.data,E=ge.data.total});case 4:return G.abrupt("return",{data:x,success:!0,total:E});case 5:case"end":return G.stop()}},h)}));return function(h){return v.apply(this,arguments)}}(),columns:ye}),(P==null?void 0:P.length)>0&&(0,e.jsxs)(N.Z,{extra:(0,e.jsxs)("div",{children:["\u5DF2\u9009\u62E9"," ",(0,e.jsx)("a",{style:{fontWeight:600},children:P.length})," ","\u9879 \xA0\xA0",(0,e.jsxs)("span",{children:["\u670D\u52A1\u8C03\u7528\u6B21\u6570\u603B\u8BA1 ",P.reduce(function(v,h){return v+h.callNo},0)," \u4E07"]})]}),children:[(0,e.jsx)(S.Z,{onClick:(0,B.Z)((0,c.Z)().mark(function v(){var h,i;return(0,c.Z)().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return E.next=2,De(P);case 2:Oe([]),(h=Y.current)===null||h===void 0||(i=h.reloadAndRest)===null||i===void 0||i.call(h);case 4:case"end":return E.stop()}},v)})),children:"\u6279\u91CF\u5220\u9664"}),(0,e.jsx)(S.Z,{type:"primary",children:"\u6279\u91CF\u5BA1\u6279"})]}),d&&(0,e.jsx)(Ee,{treeDatas:[{key:"0",parentId:"0",title:"\u9876\u7EA7",value:"0",children:me}],onFinish:function(){var v=(0,B.Z)((0,c.Z)().mark(function h(i){var x;return(0,c.Z)().wrap(function(D){for(;;)switch(D.prev=D.next){case 0:if(x=!1,!i.id){D.next=7;break}return D.next=4,be(i);case 4:x=D.sent,D.next=10;break;case 7:return D.next=9,Ae(i);case 9:x=D.sent;case 10:x&&(u(!1),Y.current&&((0,K.FM)().then(function(G){ve(G.data)}),Y.current.reload()));case 11:case"end":return D.stop()}},h)}));return function(h){return v.apply(this,arguments)}}(),onCancel:function(){u(!1),w({})},modalVisible:d,values:q||{}}),(0,e.jsx)(F.Z,{width:600,visible:ce,onClose:function(){b(void 0),he(!1)},closable:!1,children:(s==null?void 0:s.name)&&(0,e.jsx)(f.ZP,{column:2,title:s==null?void 0:s.name,request:(0,B.Z)((0,c.Z)().mark(function v(){return(0,c.Z)().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.abrupt("return",{data:s||{}});case 1:case"end":return i.stop()}},v)})),params:{id:s==null?void 0:s.name},columns:ye})})]})},we=Me},3408:function(ee,k,t){"use strict";t.d(k,{lM:function(){return H},IH:function(){return V},mm:function(){return te},eP:function(){return j},FM:function(){return se}});var g=t(39428),F=t(11849),M=t(3182),S=t(48971);function H(l,f){return R.apply(this,arguments)}function R(){return R=(0,M.Z)((0,g.Z)().mark(function l(f,L){return(0,g.Z)().wrap(function(z){for(;;)switch(z.prev=z.next){case 0:return z.abrupt("return",(0,S.WY)("/kitchen/api/sysOrg\u200B/page",{method:"GET",params:(0,F.Z)({},f)}));case 1:case"end":return z.stop()}},l)})),R.apply(this,arguments)}function V(l){return O.apply(this,arguments)}function O(){return O=(0,M.Z)((0,g.Z)().mark(function l(f){return(0,g.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,S.WY)("/kitchen/api/sysOrg/add",{method:"POST",data:(0,F.Z)({},f)}));case 1:case"end":return a.stop()}},l)})),O.apply(this,arguments)}function Z(l){return c.apply(this,arguments)}function c(){return c=_asyncToGenerator(_regeneratorRuntime().mark(function l(f){return _regeneratorRuntime().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",request("\u200B/kitchen/api\u200B/sysOrg\u200B/list",{method:"POST",data:_objectSpread({},f)}));case 1:case"end":return a.stop()}},l)})),c.apply(this,arguments)}function te(l){return re.apply(this,arguments)}function re(){return re=(0,M.Z)((0,g.Z)().mark(function l(f){return(0,g.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,S.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/delete",{method:"POST",data:(0,F.Z)({},f)}));case 1:case"end":return a.stop()}},l)})),re.apply(this,arguments)}function j(l){return B.apply(this,arguments)}function B(){return B=(0,M.Z)((0,g.Z)().mark(function l(f){return(0,g.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,S.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/edit",{method:"POST",data:(0,F.Z)({},f)}));case 1:case"end":return a.stop()}},l)})),B.apply(this,arguments)}function pe(l){return p.apply(this,arguments)}function p(){return p=_asyncToGenerator(_regeneratorRuntime().mark(function l(f){return _regeneratorRuntime().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",request("/kitchen\u200B/api\u200B/sysOrg\u200B/detail",{method:"POST",data:_objectSpread({},f)}));case 1:case"end":return a.stop()}},l)})),p.apply(this,arguments)}function se(l){return N.apply(this,arguments)}function N(){return N=(0,M.Z)((0,g.Z)().mark(function l(f){return(0,g.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,S.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/tree",{data:(0,F.Z)({},f)}));case 1:case"end":return a.stop()}},l)})),N.apply(this,arguments)}}}]); +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[6442],{97742:function(ee){ee.exports={store_config_container:"store_config_container___2LSwE",choose_store_state:"choose_store_state___36VpX",add_row_content:"add_row_content___LoP14",add_row_btn:"add_row_btn___3o2fm"}},83341:function(ee,V,t){"use strict";t.d(V,{O:function(){return g}});function g(F){F=F||32;for(var M="ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz",S=M.length,H="012345678",R=H.length,k="",O=0;O=2&&(x=(0,e.jsx)("a",{onClick:function(){Fe.m8.push({pathname:"/sys/storemanage",query:{isAdd:!1,values:i.id}})},children:"\u5E97\u94FA\u7BA1\u7406"},"primary2")),[(0,e.jsxs)("a",{onClick:function(){w(i),u(!0)},children:[" ","\u4FEE\u6539"]},"primary3"),x]}}];return(0,p.useEffect)(function(){function v(){(0,K.FM)().then(function(h){ve(h.data)})}v()},[]),(0,e.jsxs)(se.ZP,{children:[(0,e.jsx)(l.ZP,{headerTitle:"\u7EC4\u7EC7\u5217\u8868",actionRef:Y,rowKey:"id",search:{labelWidth:120},tableRender:function(h,i){return(0,e.jsxs)("div",{style:{display:"flex",width:"100%"},children:[(0,e.jsx)(R.Z,{title:"\u673A\u6784\u90E8\u95E8",children:(0,e.jsx)(O.Z,{defaultExpandAll:!0,onSelect:function(E){return Re(E[0])},treeData:me})}),(0,e.jsx)("div",{style:{flex:1},children:i})]})},toolBarRender:function(){return[(0,e.jsxs)(S.Z,{type:"primary",onClick:function(){var i={code:(0,Be.O)(4)};w(i),u(!0)},children:[(0,e.jsx)(pe.Z,{})," \u65B0\u5EFA"]},"primary1")]},params:{Pid:Pe},request:function(){var v=(0,B.Z)((0,c.Z)().mark(function h(i){var x,E;return(0,c.Z)().wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return x=[],E=0,G.next=4,(0,K.lM)(i).then(function(ge){x=ge.data.data,E=ge.data.total});case 4:return G.abrupt("return",{data:x,success:!0,total:E});case 5:case"end":return G.stop()}},h)}));return function(h){return v.apply(this,arguments)}}(),columns:ye}),(P==null?void 0:P.length)>0&&(0,e.jsxs)(N.Z,{extra:(0,e.jsxs)("div",{children:["\u5DF2\u9009\u62E9"," ",(0,e.jsx)("a",{style:{fontWeight:600},children:P.length})," ","\u9879 \xA0\xA0",(0,e.jsxs)("span",{children:["\u670D\u52A1\u8C03\u7528\u6B21\u6570\u603B\u8BA1 ",P.reduce(function(v,h){return v+h.callNo},0)," \u4E07"]})]}),children:[(0,e.jsx)(S.Z,{onClick:(0,B.Z)((0,c.Z)().mark(function v(){var h,i;return(0,c.Z)().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return E.next=2,De(P);case 2:Oe([]),(h=Y.current)===null||h===void 0||(i=h.reloadAndRest)===null||i===void 0||i.call(h);case 4:case"end":return E.stop()}},v)})),children:"\u6279\u91CF\u5220\u9664"}),(0,e.jsx)(S.Z,{type:"primary",children:"\u6279\u91CF\u5BA1\u6279"})]}),d&&(0,e.jsx)(Ee,{treeDatas:[{key:"0",parentId:"0",title:"\u9876\u7EA7",value:"0",children:me}],onFinish:function(){var v=(0,B.Z)((0,c.Z)().mark(function h(i){var x;return(0,c.Z)().wrap(function(D){for(;;)switch(D.prev=D.next){case 0:if(x=!1,!i.id){D.next=7;break}return D.next=4,be(i);case 4:x=D.sent,D.next=10;break;case 7:return D.next=9,Ae(i);case 9:x=D.sent;case 10:x&&(u(!1),Y.current&&((0,K.FM)().then(function(G){ve(G.data)}),Y.current.reload()));case 11:case"end":return D.stop()}},h)}));return function(h){return v.apply(this,arguments)}}(),onCancel:function(){u(!1),w({})},modalVisible:d,values:q||{}}),(0,e.jsx)(F.Z,{width:600,visible:ce,onClose:function(){b(void 0),he(!1)},closable:!1,children:(s==null?void 0:s.name)&&(0,e.jsx)(f.ZP,{column:2,title:s==null?void 0:s.name,request:(0,B.Z)((0,c.Z)().mark(function v(){return(0,c.Z)().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.abrupt("return",{data:s||{}});case 1:case"end":return i.stop()}},v)})),params:{id:s==null?void 0:s.name},columns:ye})})]})},we=Me},3408:function(ee,V,t){"use strict";t.d(V,{lM:function(){return H},IH:function(){return k},mm:function(){return te},eP:function(){return j},FM:function(){return se}});var g=t(39428),F=t(11849),M=t(3182),S=t(48971);function H(l,f){return R.apply(this,arguments)}function R(){return R=(0,M.Z)((0,g.Z)().mark(function l(f,L){return(0,g.Z)().wrap(function(z){for(;;)switch(z.prev=z.next){case 0:return z.abrupt("return",(0,S.WY)("/kitchen/api/sysOrg\u200B/page",{method:"GET",params:(0,F.Z)({},f)}));case 1:case"end":return z.stop()}},l)})),R.apply(this,arguments)}function k(l){return O.apply(this,arguments)}function O(){return O=(0,M.Z)((0,g.Z)().mark(function l(f){return(0,g.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,S.WY)("/kitchen/api/sysOrg/add",{method:"POST",data:(0,F.Z)({},f)}));case 1:case"end":return a.stop()}},l)})),O.apply(this,arguments)}function Z(l){return c.apply(this,arguments)}function c(){return c=_asyncToGenerator(_regeneratorRuntime().mark(function l(f){return _regeneratorRuntime().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",request("\u200B/kitchen/api\u200B/sysOrg\u200B/list",{method:"POST",data:_objectSpread({},f)}));case 1:case"end":return a.stop()}},l)})),c.apply(this,arguments)}function te(l){return re.apply(this,arguments)}function re(){return re=(0,M.Z)((0,g.Z)().mark(function l(f){return(0,g.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,S.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/delete",{method:"POST",data:(0,F.Z)({},f)}));case 1:case"end":return a.stop()}},l)})),re.apply(this,arguments)}function j(l){return B.apply(this,arguments)}function B(){return B=(0,M.Z)((0,g.Z)().mark(function l(f){return(0,g.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,S.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/edit",{method:"POST",data:(0,F.Z)({},f)}));case 1:case"end":return a.stop()}},l)})),B.apply(this,arguments)}function pe(l){return p.apply(this,arguments)}function p(){return p=_asyncToGenerator(_regeneratorRuntime().mark(function l(f){return _regeneratorRuntime().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",request("/kitchen\u200B/api\u200B/sysOrg\u200B/detail",{method:"POST",data:_objectSpread({},f)}));case 1:case"end":return a.stop()}},l)})),p.apply(this,arguments)}function se(l){return N.apply(this,arguments)}function N(){return N=(0,M.Z)((0,g.Z)().mark(function l(f){return(0,g.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,S.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/tree",{data:(0,F.Z)({},f)}));case 1:case"end":return a.stop()}},l)})),N.apply(this,arguments)}}}]); diff --git a/dist/p__sys__storemanage.046969cf.async.js b/dist/p__sys__storemanage.046969cf.async.js new file mode 100644 index 0000000..031d3cb --- /dev/null +++ b/dist/p__sys__storemanage.046969cf.async.js @@ -0,0 +1 @@ +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[4978,1322,9464,1981,2869,7013,9719,2383],{3408:function(N,I,t){"use strict";t.d(I,{lM:function(){return k},IH:function(){return A},mm:function(){return W},eP:function(){return j},FM:function(){return L}});var h=t(39428),D=t(11849),i=t(3182),f=t(48971);function k(a,u){return E.apply(this,arguments)}function E(){return E=(0,i.Z)((0,h.Z)().mark(function a(u,P){return(0,h.Z)().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return w.abrupt("return",(0,f.WY)("/kitchen/api/sysOrg\u200B/page",{method:"GET",params:(0,D.Z)({},u)}));case 1:case"end":return w.stop()}},a)})),E.apply(this,arguments)}function A(a){return v.apply(this,arguments)}function v(){return v=(0,i.Z)((0,h.Z)().mark(function a(u){return(0,h.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,f.WY)("/kitchen/api/sysOrg/add",{method:"POST",data:(0,D.Z)({},u)}));case 1:case"end":return e.stop()}},a)})),v.apply(this,arguments)}function Q(a){return _.apply(this,arguments)}function _(){return _=_asyncToGenerator(_regeneratorRuntime().mark(function a(u){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("\u200B/kitchen/api\u200B/sysOrg\u200B/list",{method:"POST",data:_objectSpread({},u)}));case 1:case"end":return e.stop()}},a)})),_.apply(this,arguments)}function W(a){return p.apply(this,arguments)}function p(){return p=(0,i.Z)((0,h.Z)().mark(function a(u){return(0,h.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,f.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/delete",{method:"POST",data:(0,D.Z)({},u)}));case 1:case"end":return e.stop()}},a)})),p.apply(this,arguments)}function j(a){return T.apply(this,arguments)}function T(){return T=(0,i.Z)((0,h.Z)().mark(function a(u){return(0,h.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,f.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/edit",{method:"POST",data:(0,D.Z)({},u)}));case 1:case"end":return e.stop()}},a)})),T.apply(this,arguments)}function B(a){return O.apply(this,arguments)}function O(){return O=_asyncToGenerator(_regeneratorRuntime().mark(function a(u){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("/kitchen\u200B/api\u200B/sysOrg\u200B/detail",{method:"POST",data:_objectSpread({},u)}));case 1:case"end":return e.stop()}},a)})),O.apply(this,arguments)}function L(a){return b.apply(this,arguments)}function b(){return b=(0,i.Z)((0,h.Z)().mark(function a(u){return(0,h.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,f.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/tree",{data:(0,D.Z)({},u)}));case 1:case"end":return e.stop()}},a)})),b.apply(this,arguments)}},6025:function(N,I,t){"use strict";t.r(I),t.d(I,{default:function(){return J}});var h=t(58024),D=t(91894),i=t(39428),f=t(3182),k=t(34792),E=t(48086),A=t(11849),v=t(2824),Q=t(43358),_=t(34041),W=t(78009),p=t(67294),j=t(16894),T=t(48971);function B(o){return O.apply(this,arguments)}function O(){return O=(0,f.Z)((0,i.Z)().mark(function o(Z){return(0,i.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,T.WY)("/kitchen/api/Device/GetDeviceInfoPage",{method:"POST",data:Z}));case 1:case"end":return r.stop()}},o)})),O.apply(this,arguments)}function L(o){return b.apply(this,arguments)}function b(){return b=(0,f.Z)((0,i.Z)().mark(function o(Z){return(0,i.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,T.WY)("/kitchen/api/dict-data/dic-list/".concat(Z),{method:"Get"}));case 1:case"end":return r.stop()}},o)})),b.apply(this,arguments)}function a(o){return u.apply(this,arguments)}function u(){return u=(0,f.Z)((0,i.Z)().mark(function o(Z){return(0,i.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,T.WY)("\u200B/kitchen/api/Device/GetDeviceType",{method:"GET"}));case 1:case"end":return r.stop()}},o)})),u.apply(this,arguments)}function P(){return e.apply(this,arguments)}function e(){return e=_asyncToGenerator(_regeneratorRuntime().mark(function o(){return _regeneratorRuntime().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.abrupt("return",request("/kitchen/api/Device/StoreDeviceTree",{method:"GET"}));case 1:case"end":return m.stop()}},o)})),e.apply(this,arguments)}function w(o){return R.apply(this,arguments)}function R(){return R=(0,f.Z)((0,i.Z)().mark(function o(Z){return(0,i.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,T.WY)("/kitchen/api/Device/UpdateDeviceInfo",{method:"POST",data:Z}));case 1:case"end":return r.stop()}},o)})),R.apply(this,arguments)}var V=t(3408),G=t(85893),Se=_.Z.Option,De=_.Z.OptGroup,z=function(Z){console.log(1),console.log(Z);var m=(0,p.useRef)(),r=(0,p.useState)(),K=(0,v.Z)(r,2),X=K[0],q=K[1],ee=(0,p.useState)([]),$=(0,v.Z)(ee,2),Oe=$[0],te=$[1],ae=(0,p.useState)([]),M=(0,v.Z)(ae,2),be=M[0],re=M[1],ne=(0,p.useState)([]),x=(0,v.Z)(ne,2),ue=x[0],se=x[1],ie=(0,p.useState)([]),Y=(0,v.Z)(ie,2),ce=Y[0],le=Y[1],oe=(0,p.useState)([]),U=(0,v.Z)(oe,2),Pe=U[0],pe=U[1];(0,p.useEffect)(function(){var S=function(){a().then(function(s){var l={},d=[];s.data.forEach(function(n){d.push({text:n.name,id:n.id}),l[n.id]={text:n.name}}),te(d),q(l)})};function g(){(0,V.FM)().then(function(c){re(c.data);var s={};l(c.data);function l(d){for(var n in d)s[d[n].value]={text:d[n].title},d[n].children&&l(d[n].children)}se(s)})}g(),S();function y(){L("DeviceClientType").then(function(c){var s=c.data,l={};if(c.succeeded){var d=[];s.forEach(function(n){l[n.code]={text:n.code},d.push({code:n.code,value:n.code})}),le(l),pe(d)}})}y()},[]);var de=(0,p.useState)({operationKey:"basis",tabActiveKey:"basis"}),F=(0,v.Z)(de,2),H=F[0],he=F[1],fe=function(g){he((0,A.Z)((0,A.Z)({},H),{},{operationKey:g}))},ve=[{key:"basis",tab:"\u5E97\u94FA\u7BA1\u7406"}],me=[{title:"\u4E3B\u952E",dataIndex:"id",hideInSearch:!0,hideInTable:!0,tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key"},{title:"\u8BBE\u5907\u540D\u79F0",dataIndex:"deviceName",valueType:"textarea"},{title:"\u8BBE\u5907\u7C7B\u578B",dataIndex:"deviceTypeKey",valueEnum:ce},{title:"\u5F52\u5C5E\u95E8\u5E97",dataIndex:"orgId",search:!1,valueEnum:ue},{title:"\u8BBE\u5907\u5730\u5740",dataIndex:"deviceAddr",search:!1,valueType:"textarea"},{title:"\u8BBE\u5907\u5206\u7C7B",dataIndex:"deviceTypeId",valueEnum:X},{title:"\u5750\u6807",dataIndex:"deviceLoc",valueType:"textarea",search:!1},{title:"\u72B6\u6001",dataIndex:"status",valueEnum:{0:{text:"\u6B63\u5E38",status:"Processing"},1:{text:"\u505C\u7528",status:"Success"}}},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(g,y){return[(0,G.jsx)("a",{type:"primary",onClick:function(){y.status=y.status==0?1:0,w(y).then(function(s){s.data?m.current.reload():E.default.error("\u66F4\u65B0\u5931\u8D25")})},children:y.status==1?"\u542F\u7528":"\u7981\u7528"},"primary")]}}],ge={basis:(0,G.jsx)(D.Z,{title:"\u5E97\u94FA\u7BA1\u7406",style:{marginBottom:24},bordered:!1,children:(0,G.jsx)(j.ZP,{actionRef:m,rowKey:"id",search:!1,request:function(){var S=(0,f.Z)((0,i.Z)().mark(function g(y){var c,s,l;return(0,i.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return c=[],s=[],l=0,n.next=5,B(y).then(function(Ze){var Te=ye(window.location.search,"values");c=Ze.data.data;for(var C=0;C @@ -221,6 +221,6 @@ - + diff --git a/dist/refundment/index.html b/dist/refundment/index.html index 3cc4489..9f5c647 100644 --- a/dist/refundment/index.html +++ b/dist/refundment/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/refundment/orderAfterSales/index.html b/dist/refundment/orderAfterSales/index.html index 3cc4489..9f5c647 100644 --- a/dist/refundment/orderAfterSales/index.html +++ b/dist/refundment/orderAfterSales/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/split/FranchiseePlan/index.html b/dist/split/FranchiseePlan/index.html index 3cc4489..9f5c647 100644 --- a/dist/split/FranchiseePlan/index.html +++ b/dist/split/FranchiseePlan/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/split/account/index.html b/dist/split/account/index.html index 3cc4489..9f5c647 100644 --- a/dist/split/account/index.html +++ b/dist/split/account/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/split/index.html b/dist/split/index.html index 3cc4489..9f5c647 100644 --- a/dist/split/index.html +++ b/dist/split/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/split/plan/index.html b/dist/split/plan/index.html index 3cc4489..9f5c647 100644 --- a/dist/split/plan/index.html +++ b/dist/split/plan/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/split/splitOrders/index.html b/dist/split/splitOrders/index.html index 3cc4489..9f5c647 100644 --- a/dist/split/splitOrders/index.html +++ b/dist/split/splitOrders/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/stockManager/index.html b/dist/stockManager/index.html index 3cc4489..9f5c647 100644 --- a/dist/stockManager/index.html +++ b/dist/stockManager/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/stockManager/stockInventory/index.html b/dist/stockManager/stockInventory/index.html index 3cc4489..9f5c647 100644 --- a/dist/stockManager/stockInventory/index.html +++ b/dist/stockManager/stockInventory/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/stockManager/stockItem/index.html b/dist/stockManager/stockItem/index.html index 3cc4489..9f5c647 100644 --- a/dist/stockManager/stockItem/index.html +++ b/dist/stockManager/stockItem/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/stockManager/stockReports/index.html b/dist/stockManager/stockReports/index.html index 3cc4489..9f5c647 100644 --- a/dist/stockManager/stockReports/index.html +++ b/dist/stockManager/stockReports/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/store/index.html b/dist/store/index.html index 3cc4489..9f5c647 100644 --- a/dist/store/index.html +++ b/dist/store/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/store/printer/Printer/index.html b/dist/store/printer/Printer/index.html index 3cc4489..9f5c647 100644 --- a/dist/store/printer/Printer/index.html +++ b/dist/store/printer/Printer/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/store/printer/printerTemplate/index.html b/dist/store/printer/printerTemplate/index.html index 3cc4489..9f5c647 100644 --- a/dist/store/printer/printerTemplate/index.html +++ b/dist/store/printer/printerTemplate/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/store/storeAddGoodsInfo/index.html b/dist/store/storeAddGoodsInfo/index.html index 3cc4489..9f5c647 100644 --- a/dist/store/storeAddGoodsInfo/index.html +++ b/dist/store/storeAddGoodsInfo/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/store/storeAdvertisement/index.html b/dist/store/storeAdvertisement/index.html index 3cc4489..9f5c647 100644 --- a/dist/store/storeAdvertisement/index.html +++ b/dist/store/storeAdvertisement/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/store/storeDesktopNumber/index.html b/dist/store/storeDesktopNumber/index.html index 3cc4489..9f5c647 100644 --- a/dist/store/storeDesktopNumber/index.html +++ b/dist/store/storeDesktopNumber/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/store/storeGoodsInfo/index.html b/dist/store/storeGoodsInfo/index.html index 3cc4489..9f5c647 100644 --- a/dist/store/storeGoodsInfo/index.html +++ b/dist/store/storeGoodsInfo/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/store/storeInfo/index.html b/dist/store/storeInfo/index.html index 3cc4489..9f5c647 100644 --- a/dist/store/storeInfo/index.html +++ b/dist/store/storeInfo/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/store/storeLevel/index.html b/dist/store/storeLevel/index.html index 3cc4489..9f5c647 100644 --- a/dist/store/storeLevel/index.html +++ b/dist/store/storeLevel/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/store/storeStaff/index.html b/dist/store/storeStaff/index.html index 3cc4489..9f5c647 100644 --- a/dist/store/storeStaff/index.html +++ b/dist/store/storeStaff/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/store/storeType/index.html b/dist/store/storeType/index.html index 3cc4489..9f5c647 100644 --- a/dist/store/storeType/index.html +++ b/dist/store/storeType/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/sys/company/index.html b/dist/sys/company/index.html index 3cc4489..9f5c647 100644 --- a/dist/sys/company/index.html +++ b/dist/sys/company/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/sys/companyApply/index.html b/dist/sys/companyApply/index.html index 3cc4489..9f5c647 100644 --- a/dist/sys/companyApply/index.html +++ b/dist/sys/companyApply/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/sys/deviceTypeConfig/index.html b/dist/sys/deviceTypeConfig/index.html index 3cc4489..9f5c647 100644 --- a/dist/sys/deviceTypeConfig/index.html +++ b/dist/sys/deviceTypeConfig/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/sys/dictionary/dictdata/index.html b/dist/sys/dictionary/dictdata/index.html index 3cc4489..9f5c647 100644 --- a/dist/sys/dictionary/dictdata/index.html +++ b/dist/sys/dictionary/dictdata/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/sys/dictionary/dicttype/index.html b/dist/sys/dictionary/dicttype/index.html index 3cc4489..9f5c647 100644 --- a/dist/sys/dictionary/dicttype/index.html +++ b/dist/sys/dictionary/dicttype/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/sys/index.html b/dist/sys/index.html index 3cc4489..9f5c647 100644 --- a/dist/sys/index.html +++ b/dist/sys/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/sys/log/index.html b/dist/sys/log/index.html index 3cc4489..9f5c647 100644 --- a/dist/sys/log/index.html +++ b/dist/sys/log/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/sys/menus/index.html b/dist/sys/menus/index.html index 3cc4489..9f5c647 100644 --- a/dist/sys/menus/index.html +++ b/dist/sys/menus/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/sys/org/index.html b/dist/sys/org/index.html index 3cc4489..9f5c647 100644 --- a/dist/sys/org/index.html +++ b/dist/sys/org/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/sys/paytemplate/index.html b/dist/sys/paytemplate/index.html index 3cc4489..9f5c647 100644 --- a/dist/sys/paytemplate/index.html +++ b/dist/sys/paytemplate/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/sys/roles/index.html b/dist/sys/roles/index.html index 3cc4489..9f5c647 100644 --- a/dist/sys/roles/index.html +++ b/dist/sys/roles/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/sys/storemanage/index.html b/dist/sys/storemanage/index.html index 3cc4489..9f5c647 100644 --- a/dist/sys/storemanage/index.html +++ b/dist/sys/storemanage/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/sys/sysSettings/index.html b/dist/sys/sysSettings/index.html index 3cc4489..9f5c647 100644 --- a/dist/sys/sysSettings/index.html +++ b/dist/sys/sysSettings/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/sys/user/index.html b/dist/sys/user/index.html index 3cc4489..9f5c647 100644 --- a/dist/sys/user/index.html +++ b/dist/sys/user/index.html @@ -29,7 +29,7 @@ window.routerBase = "/"; @@ -221,6 +221,6 @@ - + diff --git a/dist/t__plugin-layout__Layout.ea081145.async.js b/dist/t__plugin-layout__Layout.5d0197aa.async.js similarity index 56% rename from dist/t__plugin-layout__Layout.ea081145.async.js rename to dist/t__plugin-layout__Layout.5d0197aa.async.js index d4a0a6f..5705cf7 100644 --- a/dist/t__plugin-layout__Layout.ea081145.async.js +++ b/dist/t__plugin-layout__Layout.5d0197aa.async.js @@ -1,8 +1,8 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[6301],{64335:function(me,oe,c){"use strict";var h=c(67294),C=(0,h.createContext)({});oe.Z=C},16254:function(me){me.exports=ge,me.exports.parse=C,me.exports.compile=Z,me.exports.tokensToFunction=y,me.exports.tokensToRegExp=be;var oe="/",c="./",h=new RegExp(["(\\\\.)","(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?"].join("|"),"g");function C(S,$){for(var O=[],L=0,m=0,l="",pe=$&&$.delimiter||oe,de=$&&$.delimiters||c,I=!1,H;(H=h.exec(S))!==null;){var ve=H[0],W=H[1],D=H.index;if(l+=S.slice(m,D),m=D+ve.length,W){l+=W[1],I=!0;continue}var k="",Se=S[m],ue=H[2],Ze=H[3],ye=H[4],Re=H[5];if(!I&&l.length){var ie=l.length-1;de.indexOf(l[ie])>-1&&(k=l[ie],l=l.slice(0,ie))}l&&(O.push(l),l="",I=!1);var we=k!==""&&Se!==void 0&&Se!==k,Pe=Re==="+"||Re==="*",X=Re==="?"||Re==="*",x=k||pe,N=Ze||ye;O.push({name:ue||L++,prefix:k,delimiter:x,optional:X,repeat:Pe,partial:we,pattern:N?M(N):"[^"+j(x)+"]+?"})}return(l||m-1;else{var k=D.repeat?"(?:"+D.pattern+")(?:"+j(D.delimiter)+"(?:"+D.pattern+"))*":D.pattern;$&&$.push(D),D.optional?D.partial?H+=j(D.prefix)+"("+k+")?":H+="(?:"+j(D.prefix)+"("+k+"))?":H+=j(D.prefix)+"("+k+")"}}return l?(L||(H+="(?:"+pe+")?"),H+=I==="$"?"$":"(?="+I+")"):(L||(H+="(?:"+pe+"(?="+I+"))?"),ve||(H+="(?="+pe+"|"+I+")")),new RegExp(H,K(O))}function ge(S,$,O){return S instanceof RegExp?_(S,$):Array.isArray(S)?le(S,$,O):B(S,$,O)}},80430:function(me){"use strict";var oe=!1,c=function(){};if(oe){var h=function(Z,y){var j=arguments.length;y=new Array(j>1?j-1:0);for(var M=1;M2?j-2:0);for(var M=2;M(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var O="rc-util-locker-".concat(Date.now()),L=0;function m(W){var D=!!W,k=C.useState(function(){return L+=1,"".concat(O,"_").concat(L)}),Se=(0,h.Z)(k,1),ue=Se[0];(0,le.Z)(function(){if(D){var Ze=(0,S.Z)(),ye=$();(0,ge.hq)(` +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[6301],{64335:function(me,ae,c){"use strict";var h=c(67294),C=(0,h.createContext)({});ae.Z=C},16254:function(me){me.exports=Ce,me.exports.parse=C,me.exports.compile=Z,me.exports.tokensToFunction=y,me.exports.tokensToRegExp=xe;var ae="/",c="./",h=new RegExp(["(\\\\.)","(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?"].join("|"),"g");function C(S,W){for(var T=[],B=0,m=0,l="",ye=W&&W.delimiter||ae,ce=W&&W.delimiters||c,D=!1,z;(z=h.exec(S))!==null;){var de=z[0],fe=z[1],A=z.index;if(l+=S.slice(m,A),m=A+de.length,fe){l+=fe[1],D=!0;continue}var U="",ge=S[m],Ee=z[2],se=z[3],Ze=z[4],he=z[5];if(!D&&l.length){var ve=l.length-1;ce.indexOf(l[ve])>-1&&(U=l[ve],l=l.slice(0,ve))}l&&(T.push(l),l="",D=!1);var Se=U!==""&&ge!==void 0&&ge!==U,we=he==="+"||he==="*",G=he==="?"||he==="*",x=U||ye,N=se||Ze;T.push({name:Ee||B++,prefix:U,delimiter:x,optional:G,repeat:we,partial:Se,pattern:N?M(N):"[^"+P(x)+"]+?"})}return(l||m-1;else{var U=A.repeat?"(?:"+A.pattern+")(?:"+P(A.delimiter)+"(?:"+A.pattern+"))*":A.pattern;W&&W.push(A),A.optional?A.partial?z+=P(A.prefix)+"("+U+")?":z+="(?:"+P(A.prefix)+"("+U+"))?":z+=P(A.prefix)+"("+U+")"}}return l?(B||(z+="(?:"+ye+")?"),z+=D==="$"?"$":"(?="+D+")"):(B||(z+="(?:"+ye+"(?="+D+"))?"),de||(z+="(?="+ye+"|"+D+")")),new RegExp(z,K(T))}function Ce(S,W,T){return S instanceof RegExp?k(S,W):Array.isArray(S)?ue(S,W,T):F(S,W,T)}},80430:function(me){"use strict";var ae=!1,c=function(){};if(ae){var h=function(Z,y){var P=arguments.length;y=new Array(P>1?P-1:0);for(var M=1;M2?P-2:0);for(var M=2;M(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var B="rc-util-locker-".concat(Date.now()),m=0;function l(A){var U=!!A,ge=C.useState(function(){return m+=1,"".concat(B,"_").concat(m)}),Ee=(0,h.Z)(ge,1),se=Ee[0];(0,F.Z)(function(){if(U){var Ze=(0,W.Z)(),he=T();(0,S.hq)(` html body { overflow-y: hidden; - `.concat(ye?"width: calc(100% - ".concat(Ze,"px);"):"",` -}`),ue)}else(0,ge.jL)(ue);return function(){(0,ge.jL)(ue)}},[D,ue])}var l=!1;function pe(W){return typeof W=="boolean"&&(l=W),l}var de=function(D){return D===!1?!1:!(0,y.Z)()||!D?null:typeof D=="string"?document.querySelector(D):typeof D=="function"?D():D},I=C.forwardRef(function(W,D){var k=W.open,Se=W.autoLock,ue=W.getContainer,Ze=W.debug,ye=W.autoDestroy,Re=ye===void 0?!0:ye,ie=W.children,we=C.useState(k),Pe=(0,h.Z)(we,2),X=Pe[0],x=Pe[1],N=X||k;C.useEffect(function(){(Re||k)&&x(k)},[k,Re]);var A=C.useState(function(){return de(ue)}),U=(0,h.Z)(A,2),Q=U[0],ne=U[1];C.useEffect(function(){var $e=de(ue);ne($e!=null?$e:null)});var Y=be(N&&!Q,Ze),z=(0,h.Z)(Y,2),F=z[0],se=z[1],G=Q!=null?Q:F;m(Se&&k&&(0,y.Z)()&&(G===F||G===document.body));var fe=null;if(ie&&(0,j.Yr)(ie)&&D){var Ne=ie;fe=Ne.ref}var ze=(0,j.x1)(fe,D);if(!N||!(0,y.Z)()||Q===void 0)return null;var Ue=G===!1||pe(),He=ie;return D&&(He=C.cloneElement(ie,{ref:ze})),C.createElement(K.Provider,{value:se},Ue?He:(0,Z.createPortal)(He,G))}),H=I,ve=H},7700:function(){},2828:function(){},17124:function(){},43361:function(){},17212:function(){},18067:function(){},50799:function(me,oe,c){"use strict";c.r(oe),c.d(oe,{default:function(){return ti}});var h=c(11849),C=c(2824),Z=c(67294),y=c(48971),j=c(79004),M=c(93224),K=c(73727),_=c(24793),le=c(97183),B=c(96156),be=c(55507),ge=c(92137),S=c(81253),$=c(84305),O=c(39559),L=c(28481),m=c(28991),l=c(85893),pe=c(78775),de=c(56725),I=c(12044);function H(n,e){var t=typeof n.pageName=="string"?n.title:e;(0,Z.useEffect)(function(){(0,I.Z)()&&t&&(document.title=t)},[n.title,t])}var ve=H,W=c(21879),D=c.n(W),k=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function Se(n,e){return!!(n===e||k(n)&&k(e))}function ue(n,e){if(n.length!==e.length)return!1;for(var t=0;t=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122||o===95){i+=n[a++];continue}break}if(!i)throw new TypeError("Missing parameter name at "+t);e.push({type:"NAME",index:t,value:i}),t=a;continue}if(r==="("){var u=1,s="",a=t+1;if(n[a]==="?")throw new TypeError('Pattern cannot start with "?" at '+a);for(;a-1:q===void 0;i||(b+="(?:"+v+"(?="+f+"))?"),ae||(b+="(?="+v+"|"+f+")")}return new RegExp(b,A(t))}function z(n,e,t){return n instanceof RegExp?U(n,e):Array.isArray(n)?Q(n,e,t):ne(n,e,t)}function F(n,e){return e>>>n|e<<32-n}function se(n,e,t){return n&e^~n&t}function G(n,e,t){return n&e^n&t^e&t}function fe(n){return F(2,n)^F(13,n)^F(22,n)}function Ne(n){return F(6,n)^F(11,n)^F(25,n)}function ze(n){return F(7,n)^F(18,n)^n>>>3}function Ue(n){return F(17,n)^F(19,n)^n>>>10}function He(n,e){return n[e&15]+=Ue(n[e+14&15])+n[e+9&15]+ze(n[e+1&15])}var $e=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],T,re,ee,Ge="0123456789abcdef";function We(n,e){var t=(n&65535)+(e&65535),r=(n>>16)+(e>>16)+(t>>16);return r<<16|t&65535}function dt(){T=new Array(8),re=new Array(2),ee=new Array(64),re[0]=re[1]=0,T[0]=1779033703,T[1]=3144134277,T[2]=1013904242,T[3]=2773480762,T[4]=1359893119,T[5]=2600822924,T[6]=528734635,T[7]=1541459225}function et(){var n,e,t,r,i,a,o,u,s,d,g=new Array(16);n=T[0],e=T[1],t=T[2],r=T[3],i=T[4],a=T[5],o=T[6],u=T[7];for(var f=0;f<16;f++)g[f]=ee[(f<<2)+3]|ee[(f<<2)+2]<<8|ee[(f<<2)+1]<<16|ee[f<<2]<<24;for(var v=0;v<64;v++)s=u+Ne(i)+se(i,a,o)+$e[v],v<16?s+=g[v]:s+=He(g,v),d=fe(n)+G(n,e,t),u=o,o=a,a=i,i=We(r,s),r=t,t=e,e=n,n=We(s,d);T[0]+=n,T[1]+=e,T[2]+=t,T[3]+=r,T[4]+=i,T[5]+=a,T[6]+=o,T[7]+=u}function ft(n,e){var t,r,i=0;r=re[0]>>3&63;var a=e&63;for((re[0]+=e<<3)>29,t=0;t+63>3&63;if(ee[n++]=128,n<=56)for(var e=n;e<56;e++)ee[e]=0;else{for(var t=n;t<64;t++)ee[t]=0;et();for(var r=0;r<56;r++)ee[r]=0}ee[56]=re[1]>>>24&255,ee[57]=re[1]>>>16&255,ee[58]=re[1]>>>8&255,ee[59]=re[1]&255,ee[60]=re[0]>>>24&255,ee[61]=re[0]>>>16&255,ee[62]=re[0]>>>8&255,ee[63]=re[0]&255,et()}function $t(){for(var n=0,e=new Array(32),t=0;t<8;t++)e[n++]=T[t]>>>24&255,e[n++]=T[t]>>>16&255,e[n++]=T[t]>>>8&255,e[n++]=T[t]&255;return e}function mt(){for(var n=new String,e=0;e<8;e++)for(var t=28;t>=0;t-=4)n+=Ge.charAt(T[e]>>>t&15);return n}function Mt(n){return dt(),ft(n,n.length),vt(),mt()}var Zt=Mt;function Rt(n){return Rt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Rt(n)}var Ln=["pro_layout_parentKeys","children","icon","flatMenu","indexRoute","routes"];function Bn(n,e){return $n(n)||Hn(n,e)||St(n,e)||zn()}function zn(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. + `.concat(he?"width: calc(100% - ".concat(Ze,"px);"):"",` +}`),se)}else(0,S.jL)(se);return function(){(0,S.jL)(se)}},[U,se])}var ye=!1;function ce(A){return typeof A=="boolean"&&(ye=A),ye}var D=function(U){return U===!1?!1:!(0,y.Z)()||!U?null:typeof U=="string"?document.querySelector(U):typeof U=="function"?U():U},z=C.forwardRef(function(A,U){var ge=A.open,Ee=A.autoLock,se=A.getContainer,Ze=A.debug,he=A.autoDestroy,ve=he===void 0?!0:he,Se=A.children,we=C.useState(ge),G=(0,h.Z)(we,2),x=G[0],N=G[1],H=x||ge;C.useEffect(function(){(ve||ge)&&N(ge)},[ge,ve]);var L=C.useState(function(){return D(se)}),q=(0,h.Z)(L,2),V=q[0],Y=q[1];C.useEffect(function(){var O=D(se);Y(O!=null?O:null)});var $=Ce(H&&!V,Ze),I=(0,h.Z)($,2),ie=I[0],J=I[1],oe=V!=null?V:ie;l(Ee&&ge&&(0,y.Z)()&&(oe===ie||oe===document.body));var Pe=null;if(Se&&(0,M.Yr)(Se)&&U){var ze=Se;Pe=ze.ref}var Ke=(0,M.x1)(Pe,U);if(!H||!(0,y.Z)()||V===void 0)return null;var _e=oe===!1||ce(),He=Se;return U&&(He=C.cloneElement(Se,{ref:Ke})),C.createElement(k.Provider,{value:J},_e?He:(0,Z.createPortal)(He,oe))}),de=z,fe=de},7700:function(){},2828:function(){},17124:function(){},43361:function(){},17212:function(){},18067:function(){},50799:function(me,ae,c){"use strict";c.r(ae),c.d(ae,{default:function(){return ti}});var h=c(11849),C=c(2824),Z=c(67294),y=c(48971),P=c(79004),M=c(93224),K=c(73727),k=c(24793),ue=c(97183),F=c(96156),xe=c(55507),Ce=c(92137),S=c(81253),W=c(84305),T=c(39559),B=c(28481),m=c(28991),l=c(85893),ye=c(78775),ce=c(56725),D=c(12044);function z(n,e){var t=typeof n.pageName=="string"?n.title:e;(0,Z.useEffect)(function(){(0,D.Z)()&&t&&(document.title=t)},[n.title,t])}var de=z,fe=c(21879),A=c.n(fe),U=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function ge(n,e){return!!(n===e||U(n)&&U(e))}function Ee(n,e){if(n.length!==e.length)return!1;for(var t=0;t=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122||o===95){i+=n[a++];continue}break}if(!i)throw new TypeError("Missing parameter name at "+t);e.push({type:"NAME",index:t,value:i}),t=a;continue}if(r==="("){var u=1,s="",a=t+1;if(n[a]==="?")throw new TypeError('Pattern cannot start with "?" at '+a);for(;a-1:_===void 0;i||(b+="(?:"+v+"(?="+f+"))?"),re||(b+="(?="+v+"|"+f+")")}return new RegExp(b,H(t))}function $(n,e,t){return n instanceof RegExp?L(n,e):Array.isArray(n)?q(n,e,t):V(n,e,t)}function I(n,e){return e>>>n|e<<32-n}function ie(n,e,t){return n&e^~n&t}function J(n,e,t){return n&e^n&t^e&t}function oe(n){return I(2,n)^I(13,n)^I(22,n)}function Pe(n){return I(6,n)^I(11,n)^I(25,n)}function ze(n){return I(7,n)^I(18,n)^n>>>3}function Ke(n){return I(17,n)^I(19,n)^n>>>10}function _e(n,e){return n[e&15]+=Ke(n[e+14&15])+n[e+9&15]+ze(n[e+1&15])}var He=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],O,ne,ee,Ue="0123456789abcdef";function $e(n,e){var t=(n&65535)+(e&65535),r=(n>>16)+(e>>16)+(t>>16);return r<<16|t&65535}function dt(){O=new Array(8),ne=new Array(2),ee=new Array(64),ne[0]=ne[1]=0,O[0]=1779033703,O[1]=3144134277,O[2]=1013904242,O[3]=2773480762,O[4]=1359893119,O[5]=2600822924,O[6]=528734635,O[7]=1541459225}function et(){var n,e,t,r,i,a,o,u,s,d,g=new Array(16);n=O[0],e=O[1],t=O[2],r=O[3],i=O[4],a=O[5],o=O[6],u=O[7];for(var f=0;f<16;f++)g[f]=ee[(f<<2)+3]|ee[(f<<2)+2]<<8|ee[(f<<2)+1]<<16|ee[f<<2]<<24;for(var v=0;v<64;v++)s=u+Pe(i)+ie(i,a,o)+He[v],v<16?s+=g[v]:s+=_e(g,v),d=oe(n)+J(n,e,t),u=o,o=a,a=i,i=$e(r,s),r=t,t=e,e=n,n=$e(s,d);O[0]+=n,O[1]+=e,O[2]+=t,O[3]+=r,O[4]+=i,O[5]+=a,O[6]+=o,O[7]+=u}function ft(n,e){var t,r,i=0;r=ne[0]>>3&63;var a=e&63;for((ne[0]+=e<<3)>29,t=0;t+63>3&63;if(ee[n++]=128,n<=56)for(var e=n;e<56;e++)ee[e]=0;else{for(var t=n;t<64;t++)ee[t]=0;et();for(var r=0;r<56;r++)ee[r]=0}ee[56]=ne[1]>>>24&255,ee[57]=ne[1]>>>16&255,ee[58]=ne[1]>>>8&255,ee[59]=ne[1]&255,ee[60]=ne[0]>>>24&255,ee[61]=ne[0]>>>16&255,ee[62]=ne[0]>>>8&255,ee[63]=ne[0]&255,et()}function $t(){for(var n=0,e=new Array(32),t=0;t<8;t++)e[n++]=O[t]>>>24&255,e[n++]=O[t]>>>16&255,e[n++]=O[t]>>>8&255,e[n++]=O[t]&255;return e}function mt(){for(var n=new String,e=0;e<8;e++)for(var t=28;t>=0;t-=4)n+=Ue.charAt(O[e]>>>t&15);return n}function Mt(n){return dt(),ft(n,n.length),vt(),mt()}var Zt=Mt;function Rt(n){return Rt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Rt(n)}var Ln=["pro_layout_parentKeys","children","icon","flatMenu","indexRoute","routes"];function Bn(n,e){return $n(n)||Hn(n,e)||St(n,e)||zn()}function zn(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Hn(n,e){var t=n==null?null:typeof Symbol!="undefined"&&n[Symbol.iterator]||n["@@iterator"];if(t!=null){var r=[],i=!0,a=!1,o,u;try{for(t=t.call(n);!(i=(o=t.next()).done)&&(r.push(o.value),!(e&&r.length===e));i=!0);}catch(s){a=!0,u=s}finally{try{!i&&t.return!=null&&t.return()}finally{if(a)throw u}}return r}}function $n(n){if(Array.isArray(n))return n}function Wn(n,e){var t=typeof Symbol!="undefined"&&n[Symbol.iterator]||n["@@iterator"];if(!t){if(Array.isArray(n)||(t=St(n))||e&&n&&typeof n.length=="number"){t&&(n=t);var r=0,i=function(){};return{s:i,n:function(){return r>=n.length?{done:!0}:{done:!1,value:n[r++]}},e:function(d){throw d},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,o=!1,u;return{s:function(){t=t.call(n)},n:function(){var d=t.next();return a=d.done,d},e:function(d){o=!0,u=d},f:function(){try{!a&&t.return!=null&&t.return()}finally{if(o)throw u}}}}function Kn(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function Wt(n,e){for(var t=0;tn.length)&&(e=n.length);for(var t=0,r=new Array(e);t=0)&&(!Object.prototype.propertyIsEnumerable.call(n,r)||(t[r]=n[r]))}return t}function er(n,e){if(n==null)return{};var t={},r=Object.keys(n),i,a;for(a=0;a=0)&&(t[i]=n[i]);return t}function Gt(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function ce(n){for(var e=1;e0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"/";return e.endsWith("/*")?e.replace("/*","/"):(e||t).startsWith("/")||Pt(e)?e:"/".concat(t,"/").concat(e).replace(/\/\//g,"/").replace(/\/\//g,"/")},rr=function(e,t){var r=e.menu,i=r===void 0?{}:r,a=e.indexRoute,o=e.path,u=o===void 0?"":o,s=e.children||e[xe],d=i.name,g=d===void 0?e.name:d,f=i.icon,v=f===void 0?e.icon:f,b=i.hideChildren,R=b===void 0?e.hideChildren:b,w=i.flatMenu,p=w===void 0?e.flatMenu:w,P=a&&Object.keys(a).join(",")!=="redirect"?[ce({path:u,menu:i},a)].concat(s||[]):s,E=ce({},e);if(g&&(E.name=g),v&&(E.icon=v),P&&P.length){if(R)return delete E[xe],delete E.children,E;var te=Nt(ce(ce({},t),{},{data:P}),e);if(p)return te;E[xe]=te}return E},Te=function(e){return Array.isArray(e)&&e.length>0};function Nt(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{path:"/"},t=n.data,r=n.formatMessage,i=n.parentName,a=n.locale;return!t||!Array.isArray(t)?[]:t.filter(function(o){return o?Te(o[xe])||Te(o.children)||o.path||o.originPath||o.layout?!0:(o.redirect||o.unaccessible,!1):!1}).filter(function(o){var u,s;return(o==null||(u=o.menu)===null||u===void 0?void 0:u.name)||(o==null?void 0:o.flatMenu)||(o==null||(s=o.menu)===null||s===void 0?void 0:s.flatMenu)?!0:o.menu!==!1}).map(function(o){var u=ce({},o);return u.unaccessible&&delete u.name,u.path==="*"&&(u.path="."),u.path==="/*"&&(u.path="."),!u.path&&u.originPath&&(u.path=u.originPath),u}).map(function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{path:"/"},u=o.children||o[xe],s=Vt(o.path,e?e.path:"/"),d=o.name,g=nr(o,i||"menu"),f=g!==!1&&a!==!1&&r&&g?r({id:g,defaultMessage:d}):d,v=e.pro_layout_parentKeys,b=v===void 0?[]:v,R=e.children,w=e.icon,p=e.flatMenu,P=e.indexRoute,E=e.routes,te=_n(e,Ln),q=new Set([].concat(Ut(b),Ut(o.parentKeys||[])));e.key&&q.add(e.key);var ae=ce(ce(ce({},te),{},{menu:void 0},o),{},{path:s,locale:g,key:o.key||tr(ce(ce({},o),{},{path:s})),pro_layout_parentKeys:Array.from(q).filter(function(he){return he&&he!=="/"})});if(f?ae.name=f:delete ae.name,ae.menu===void 0&&delete ae.menu,Te(u)){var V=Nt(ce(ce({},n),{},{data:u,parentName:g||""}),ae);Te(V)&&(ae[xe]=V,ae.children=V)}return rr(ae,n)}).flat(1)}var ar=ye(Nt,D()),ir=function n(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.filter(function(t){return t&&(t.name||Te(t[xe])||Te(t.children))&&!t.hideInMenu&&!t.redirect}).map(function(t){var r=ce({},t),i=r.children||r[xe];if(Te(i)&&!r.hideChildrenInMenu&&i.some(function(u){return u&&!!u.name})){var a,o=n(i);if(o.length)return ce(ce({},r),{},(a={},rt(a,xe,o),rt(a,"children",o),a))}return ce(ce({},t),{},rt({},xe,void 0))}).filter(function(t){return t})},or=function(n){Gn(t,n);var e=Vn(t);function t(){return Kn(this,t),e.apply(this,arguments)}return Un(t,[{key:"get",value:function(i){var a;try{var o=Wn(this.entries()),u;try{for(o.s();!(u=o.n()).done;){var s=Bn(u.value,2),d=s[0],g=s[1],f=at(d);if(!Pt(d)&&z(f,[]).test(i)){a=g;break}}}catch(v){o.e(v)}finally{o.f()}}catch(v){a=void 0}return a}}]),t}(Et(Map)),lr=function(e){var t=new or,r=function i(a,o){a.forEach(function(u){var s=u.children||u[xe];Te(s)&&i(s,u);var d=Vt(u.path,o?o.path:"/");t.set(at(d),u)})};return r(e),t},ur=ye(lr,D()),sr=function n(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(function(t){var r=t.children||t[xe];if(Te(r)){var i=n(r);if(i.length)return ce(ce({},t),{},rt({},xe,i))}var a=ce({},t);return delete a[xe],delete a.children,a}).filter(function(t){return t})},cr=function(e,t,r,i){var a=ar({data:e,formatMessage:r,locale:t}),o=i?sr(a):ir(a),u=ur(a);return{breadcrumb:u,menuData:o}},Qt=cr;function Yt(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function ht(n){for(var e=1;e0&&arguments[0]!==void 0?arguments[0]:[],t={};return e.forEach(function(r){if(!(!r||!r.key)){var i=r.children||r[xe];t[at(r.path||r.key||"/")]=ht({},r),t[r.key||r.path||"/"]=ht({},r),i&&(t=ht(ht({},t),n(i)))}}),t},Xt=fr,vr=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;return e.filter(function(i){if(i==="/"&&t==="/")return!0;if(i!=="/"&&i!=="/*"&&i&&!Pt(i)){var a=at(i);try{if(r&&z("".concat(a)).test(t)||z("".concat(a),[]).test(t)||z("".concat(a,"/(.*)")).test(t))return!0}catch(o){}}return!1}).sort(function(i,a){return i===t?10:a===t?-10:i.substr(1).split("/").length-a.substr(1).split("/").length})},mr=function(e,t,r,i){var a=Xt(t),o=Object.keys(a),u=vr(o,e||"/",i);return!u||u.length<1?[]:(r||(u=[u[u.length-1]]),u.map(function(s){var d=a[s]||{pro_layout_parentKeys:"",key:""},g=new Map,f=(d.pro_layout_parentKeys||[]).map(function(v){return g.has(v)?null:(g.set(v,!0),a[v])}).filter(function(v){return v});return d.key&&f.push(d),f}).flat(1))},Jt=mr,gr=c(94184),Me=c.n(gr),kt=c(97435),hr=c(21770),qt=c(29405),pr=c(38069),yr=c(80430),xr=c.n(yr),xi=c(7700),Cr=c(83832),Ci=c(57338),br=c(273),Mr=c(57186);function Zr(){var n=(0,Z.useState)([]),e=(0,L.Z)(n,2),t=e[0],r=e[1];return{flatMenuKeys:t,setFlatMenuKeys:r}}var Rr=(0,Mr.f)(Zr),pt=Rr,bi=c(30887),yt=c(28682),Er=c(1351),Sr=c(76629),Mi=c(18446),jr=c(19586),xt=c(85061),_t=c(5991),en=c(6610),tn=c(91321),Pr=c(16165),Nr=function(e){if(!e||!e.startsWith("http"))return!1;try{var t=new URL(e);return!!t}catch(r){return!1}},wt=Nr;function wr(n){return/\w.(png|jpg|jpeg|svg|webp|gif|bmp)$/i.test(n)}var Or=wr,Tr={navTheme:"dark",layout:"side",contentWidth:"Fluid",fixedHeader:!1,fixSiderbar:!1,headerHeight:48,iconfontUrl:"",primaryColor:"#1890ff",splitMenus:!1},nn=Tr,rn=function n(e){return(e||[]).reduce(function(t,r){if(r.key&&t.push(r.key),r.routes){var i=t.concat(n(r.routes)||[]);return i}return t},[])},an={daybreak:"#1890ff",dust:"#F5222D",volcano:"#FA541C",sunset:"#FAAD14",cyan:"#13C2C2",green:"#52C41A",geekblue:"#2F54EB",purple:"#722ED1"};function Zi(n){return n&&an[n]?an[n]:n}function it(n){return n.map(function(e){var t=e.children||e.routes,r=(0,m.Z)({},e);if(!r.name||r.hideInMenu)return null;if(r&&(r==null?void 0:r.routes)){if(!r.hideChildrenInMenu&&t.some(function(i){return i&&i.name&&!i.hideInMenu}))return(0,m.Z)((0,m.Z)({},e),{},{children:it(t),routes:it(t)});delete r.routes,delete r.children}return r}).filter(function(e){return e})}var Ri=c(43361),on=(0,tn.Z)({scriptUrl:nn.iconfontUrl}),ln=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"icon-";if(typeof e=="string"&&e!==""){if(wt(e)||Or(e))return(0,l.jsx)(Pr.Z,{component:function(){return(0,l.jsx)("img",{src:e,alt:"icon",className:"ant-pro-sider-menu-icon"})}});if(e.startsWith(t))return(0,l.jsx)(on,{type:e})}return e},Dr=(0,_t.Z)(function n(e){var t=this;(0,en.Z)(this,n),this.props=void 0,this.getNavMenuItems=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],i=arguments.length>1?arguments[1]:void 0;return r.map(function(a){return t.getSubMenuOrItem(a,i)}).filter(function(a){return a})},this.getSubMenuOrItem=function(r,i){var a=(r==null?void 0:r.children)||(r==null?void 0:r.routes);if(Array.isArray(a)&&a.length>0){var o=t.getIntlName(r),u=t.props,s=u.subMenuItemRender,d=u.prefixCls,g=u.menu,f=u.iconPrefixes,v=r.icon?(0,l.jsxs)("span",{className:"".concat(d,"-menu-item"),title:o,children:[!i&&ln(r.icon,f),(0,l.jsx)("span",{className:"".concat(d,"-menu-item-title"),children:o})]}):(0,l.jsx)("span",{className:"".concat(d,"-menu-item"),title:o,children:o}),b=s?s((0,m.Z)((0,m.Z)({},r),{},{isUrl:!1}),v,t.props):v;return{type:(g==null?void 0:g.type)==="group"?"group":void 0,label:b,children:t.getNavMenuItems(a,!0),onTitleClick:r.onTitleClick,key:r.key||r.path}}return{label:t.getMenuItemPath(r,i),title:t.getIntlName(r),key:r.key||r.path,disabled:r.disabled,onClick:function(w){var p;wt(r==null?void 0:r.path)&&window.open(r.path,"_blank"),(p=r.onTitleClick)===null||p===void 0||p.call(r,w)}}},this.getIntlName=function(r){var i=r.name,a=r.locale,o=t.props,u=o.menu,s=o.formatMessage;return a&&(u==null?void 0:u.locale)!==!1?s==null?void 0:s({id:a,defaultMessage:i}):i},this.getMenuItemPath=function(r,i){var a=t.conversionPath(r.path||"/"),o=t.props,u=o.location,s=u===void 0?{pathname:"/"}:u,d=o.isMobile,g=o.onCollapse,f=o.menuItemRender,v=o.iconPrefixes,b=t.getIntlName(r),R=t.props.prefixCls,w=i?null:ln(r.icon,v),p=wt(a),P=(0,l.jsxs)("span",{className:Me()("".concat(R,"-menu-item"),(0,B.Z)({},"".concat(R,"-menu-item-link"),p)),children:[w,(0,l.jsx)("span",{className:"".concat(R,"-menu-item-title"),children:b})]});if(f){var E=(0,m.Z)((0,m.Z)({},r),{},{isUrl:p,itemPath:a,isMobile:d,replace:a===s.pathname,onClick:function(){p&&window.open(a,"_blank"),g&&g(!0)},children:void 0});return f(E,P,t.props)}return P},this.conversionPath=function(r){return r&&r.indexOf("http")===0?r:"/".concat(r||"").replace(/\/+/g,"/")},this.props=e}),Ar=function(e,t){var r=t.layout,i=t.collapsed,a={};return e&&!i&&["side","mix"].includes(r||"mix")&&(a={openKeys:e}),a},un=function(e){var t=e.theme,r=e.mode,i=e.className,a=e.handleOpenChange,o=e.style,u=e.menuData,s=e.menu,d=e.matchMenuKeys,g=e.iconfontUrl,f=e.collapsed,v=e.selectedKeys,b=e.onSelect,R=e.openKeys,w=(0,Z.useRef)([]),p=pt.useContainer(),P=p.flatMenuKeys,E=(0,de.Z)(s==null?void 0:s.defaultOpenAll),te=(0,L.Z)(E,2),q=te[0],ae=te[1],V=(0,de.Z)(function(){return(s==null?void 0:s.defaultOpenAll)?rn(u)||[]:R===!1?!1:[]},{value:R===!1?void 0:R,onChange:a}),he=(0,L.Z)(V,2),Ce=he[0],J=he[1],Oe=(0,de.Z)([],{value:v,onChange:b?function(Ke){b&&Ke&&b(Ke)}:void 0}),De=(0,L.Z)(Oe,2),Ae=De[0],Ie=De[1];(0,Z.useEffect)(function(){(s==null?void 0:s.defaultOpenAll)||R===!1||P.length||d&&(J(d),Ie(d))},[d.join("-")]),(0,Z.useEffect)(function(){g&&(on=(0,tn.Z)({scriptUrl:g}))},[g]),(0,Z.useEffect)(function(){if(d.join("-")!==(Ae||[]).join("-")&&Ie(d),!q&&R!==!1&&d.join("-")!==(Ce||[]).join("-")){var Ke=d;(s==null?void 0:s.autoClose)===!1&&(Ke=Array.from(new Set([].concat((0,xt.Z)(d),(0,xt.Z)(Ce||[]))))),J(Ke)}else(s==null?void 0:s.ignoreFlatMenu)&&q?J(rn(u)):P.length>0&&ae(!1)},[d.join("-"),f]);var Ve=(0,Z.useMemo)(function(){return Ar(Ce,e)},[Ce&&Ce.join(","),e.layout,e.collapsed]),Qe=(0,Z.useState)(function(){return new Dr(e)}),Ye=(0,L.Z)(Qe,1),Fe=Ye[0];if(s==null?void 0:s.loading)return(0,l.jsx)("div",{style:(r==null?void 0:r.includes("inline"))?{padding:24}:{marginTop:16},children:(0,l.jsx)(jr.Z,{active:!0,title:!1,paragraph:{rows:(r==null?void 0:r.includes("inline"))?6:1}})});var Le=Me()(i,{"top-nav-menu":r==="horizontal"});Fe.props=e,e.openKeys===!1&&!e.handleOpenChange&&(w.current=d);var je=e.postMenuData?e.postMenuData(u):u;return je&&(je==null?void 0:je.length)<1?null:(0,Z.createElement)(yt.Z,(0,m.Z)((0,m.Z)({},Ve),{},{key:"Menu",mode:r,items:Fe.getNavMenuItems(je,!1),inlineIndent:16,defaultOpenKeys:w.current,theme:t,selectedKeys:Ae,style:o,className:Le,onOpenChange:J},e.menuProps))};un.defaultProps={postMenuData:function(e){return e||[]}};var sn=un,Ir=le.Z.Sider,cn=function(e){return typeof e=="string"?(0,l.jsx)("img",{src:e,alt:"logo"}):typeof e=="function"?e():e},Ot=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"menuHeaderRender",r=e.logo,i=e.title,a=e.layout,o=e[t||""];if(o===!1)return null;var u=cn(r),s=(0,l.jsx)("h1",{children:i!=null?i:"Ant Design Pro"});return o?o(u,e.collapsed?null:s,e):a==="mix"&&t==="menuHeaderRender"?null:(0,l.jsxs)("a",{children:[u,e.collapsed?null:s]})},dn=function(e){return e?(0,l.jsx)(Er.Z,{}):(0,l.jsx)(Sr.Z,{})},Fr=function(e){var t,r=e.collapsed,i=e.fixSiderbar,a=e.menuFooterRender,o=e.onCollapse,u=e.theme,s=e.siderWidth,d=e.isMobile,g=e.onMenuHeaderClick,f=e.breakpoint,v=f===void 0?"lg":f,b=e.style,R=e.layout,w=e.menuExtraRender,p=w===void 0?!1:w,P=e.collapsedButtonRender,E=P===void 0?dn:P,te=e.links,q=e.menuContentRender,ae=e.prefixCls,V=e.onOpenChange,he=e.headerHeight,Ce=e.logoStyle,J="".concat(ae,"-sider"),Oe=pt.useContainer(),De=Oe.flatMenuKeys,Ae=Me()("".concat(J),(t={},(0,B.Z)(t,"".concat(J,"-fixed"),i),(0,B.Z)(t,"".concat(J,"-layout-").concat(R),R&&!d),(0,B.Z)(t,"".concat(J,"-light"),u!=="dark"),t)),Ie=Ot(e),Ve=p&&p(e),Qe=q!==!1&&De&&(0,Z.createElement)(sn,(0,m.Z)((0,m.Z)({},e),{},{key:"base-menu",mode:"inline",handleOpenChange:V,style:{width:"100%"},className:"".concat(J,"-menu")})),Ye=q?q(e,Qe):Qe,Fe=(te||[]).map(function(Le,je){return{className:"".concat(J,"-link"),label:Le,key:je}});return E&&!d&&Fe.push({className:"".concat(J,"-collapsed-button"),title:!1,key:"collapsed",onClick:function(){o&&o(!r)},label:E(r)}),(0,l.jsxs)(l.Fragment,{children:[i&&(0,l.jsx)("div",{style:(0,m.Z)({width:r?48:s,overflow:"hidden",flex:"0 0 ".concat(r?48:s,"px"),maxWidth:r?48:s,minWidth:r?48:s,transition:"background-color 0.3s, min-width 0.3s, max-width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)"},b)}),(0,l.jsxs)(Ir,{collapsible:!0,trigger:null,collapsed:r,breakpoint:v===!1?void 0:v,onCollapse:function(je){d||o==null||o(je)},collapsedWidth:48,style:(0,m.Z)({overflow:"hidden",paddingTop:R==="mix"&&!d?he:void 0},b),width:s,theme:u,className:Ae,children:[Ie&&(0,l.jsx)("div",{className:Me()("".concat(J,"-logo"),(0,B.Z)({},"".concat(J,"-collapsed"),r)),onClick:R!=="mix"?g:void 0,id:"logo",style:Ce,children:Ie}),Ve&&(0,l.jsx)("div",{className:"".concat(J,"-extra ").concat(!Ie&&"".concat(J,"-extra-no-logo")),children:Ve}),(0,l.jsx)("div",{style:{flex:1,overflowY:"auto",overflowX:"hidden"},children:Ye}),(0,l.jsx)("div",{className:"".concat(J,"-links"),children:(0,l.jsx)(yt.Z,{theme:u,inlineIndent:16,className:"".concat(J,"-link-menu"),selectedKeys:[],openKeys:[],mode:"inline",items:Fe})}),a&&(0,l.jsx)("div",{className:Me()("".concat(J,"-footer"),(0,B.Z)({},"".concat(J,"-footer-collapsed"),!r)),children:a(e)})]})]})},fn=Fr,Lr=function(e){var t=e.isMobile,r=e.menuData,i=e.siderWidth,a=e.collapsed,o=e.onCollapse,u=e.style,s=e.className,d=e.hide,g=e.getContainer,f=e.prefixCls,v=e.matchMenuKeys,b=pt.useContainer(),R=b.setFlatMenuKeys;(0,Z.useEffect)(function(){if(!(!r||r.length<1)){var p=Xt(r);R(Object.keys(p))}},[v.join("-")]),(0,Z.useEffect)(function(){t===!0&&(o==null||o(!0))},[t]);var w=(0,kt.Z)(e,["className","style"]);return d?null:t?(0,l.jsx)(br.Z,{visible:!a,placement:"left",className:Me()("".concat(f,"-drawer-sider"),s),onClose:function(){return o==null?void 0:o(!0)},style:(0,m.Z)({padding:0,height:"100vh"},u),getContainer:g,width:i,bodyStyle:{height:"100vh",padding:0,display:"flex",flexDirection:"row"},children:(0,l.jsx)(fn,(0,m.Z)((0,m.Z)({},w),{},{className:Me()("".concat(f,"-sider"),s),collapsed:t?!1:a,splitMenus:!1}))}):(0,l.jsx)(fn,(0,m.Z)((0,m.Z)({className:Me()("".concat(f,"-sider"),s)},w),{},{style:u}))},vn=Lr,Br=c(63485),zr=c(16254),Tt=c.n(zr),Hr=function(e,t,r){if(r){var i=(0,xt.Z)(r.keys()).find(function(o){return Tt()(o).test(e)});if(i)return r.get(i)}if(t){var a=Object.keys(t).find(function(o){return Tt()(o).test(e)});if(a)return t[a]}return{path:""}},mn=function(e,t){var r=e.pathname,i=r===void 0?"/":r,a=e.breadcrumb,o=e.breadcrumbMap,u=e.formatMessage,s=e.title,d=e.menu,g=d===void 0?{locale:!1}:d,f=t?"":s||"",v=Hr(i,a,o);if(!v)return{title:f,id:"",pageName:f};var b=v.name;return g.locale!==!1&&v.locale&&u&&(b=u({id:v.locale||"",defaultMessage:v.name})),b?t||!s?{title:b,id:v.locale||"",pageName:b}:{title:"".concat(b," - ").concat(s),id:v.locale||"",pageName:b}:{title:f,id:v.locale||"",pageName:f}},Ei=function(e,t){return mn(e,t).title},Si=null,$r=c(10379),Wr=c(44144),Kr=c(10178),Ur=c(48717),ji=c(17212),Gr=["rightContentRender","prefixCls"],Vr=function(e){var t=e.rightContentRender,r=e.prefixCls,i=(0,S.Z)(e,Gr),a=(0,Z.useState)("auto"),o=(0,L.Z)(a,2),u=o[0],s=o[1],d=(0,Kr.Z)(function(){var g=(0,ge.Z)((0,be.Z)().mark(function f(v){return(0,be.Z)().wrap(function(R){for(;;)switch(R.prev=R.next){case 0:s(v);case 1:case"end":return R.stop()}},f)}));return function(f){return g.apply(this,arguments)}}(),160);return(0,l.jsx)("div",{className:"".concat(r,"-right-content"),style:{minWidth:u},children:(0,l.jsx)("div",{style:{paddingRight:8},children:(0,l.jsx)(Ur.Z,{onResize:function(f){var v=f.width;d.run(v)},children:t&&(0,l.jsx)("div",{className:"".concat(r,"-right-content-resize"),children:t((0,m.Z)((0,m.Z)({},i),{},{rightContentSize:u}))})})})})},Qr=function(e){var t=(0,Z.useRef)(null),r=e.theme,i=e.onMenuHeaderClick,a=e.contentWidth,o=e.rightContentRender,u=e.className,s=e.style,d=e.headerContentRender,g=e.layout,f="".concat(e.prefixCls||"ant-pro","-top-nav-header"),v=Ot((0,m.Z)((0,m.Z)({},e),{},{collapsed:!1}),g==="mix"?"headerTitleRender":void 0),b=Me()(f,u,{light:r==="light"}),R=(0,l.jsx)(sn,(0,m.Z)((0,m.Z)({},e),e.menuProps)),w=d?d==null?void 0:d(e,R):R;return(0,l.jsx)("div",{className:b,style:s,children:(0,l.jsxs)("div",{ref:t,className:"".concat(f,"-main ").concat(a==="Fixed"?"wide":""),children:[v&&(0,l.jsx)("div",{className:"".concat(f,"-main-left"),onClick:i,children:(0,l.jsx)("div",{className:"".concat(f,"-logo"),id:"logo",children:v},"logo")}),(0,l.jsx)("div",{style:{flex:1},className:"".concat(f,"-menu"),children:w}),o&&(0,l.jsx)(Vr,(0,m.Z)({rightContentRender:o,prefixCls:f},e))]})})},gn=Qr,Pi=c(17124),Yr=function(e,t){return e===!1?null:e?e(t,null):t},Xr=function(e){var t=e.isMobile,r=e.logo,i=e.collapsed,a=e.onCollapse,o=e.collapsedButtonRender,u=o===void 0?dn:o,s=e.rightContentRender,d=e.menuHeaderRender,g=e.onMenuHeaderClick,f=e.className,v=e.style,b=e.layout,R=e.children,w=e.headerTheme,p=w===void 0?"dark":w,P=e.splitMenus,E=e.menuData,te=e.prefixCls,q=(0,Z.useContext)(O.ZP.ConfigContext),ae=q.direction,V="".concat(te,"-global-header"),he=Me()(f,V,(0,B.Z)({},"".concat(V,"-layout-").concat(b),b&&p==="dark"));if(b==="mix"&&!t&&P){var Ce=(E||[]).map(function(Ae){return(0,m.Z)((0,m.Z)({},Ae),{},{children:void 0,routes:void 0})}),J=it(Ce);return(0,l.jsx)(gn,(0,m.Z)((0,m.Z)({mode:"horizontal"},e),{},{splitMenus:!1,menuData:J,theme:p}))}var Oe=Me()("".concat(V,"-logo"),(0,B.Z)({},"".concat(V,"-logo-rtl"),ae==="rtl")),De=(0,l.jsx)("span",{className:Oe,children:(0,l.jsx)("a",{children:cn(r)})},"logo");return(0,l.jsxs)("div",{className:he,style:(0,m.Z)({},v),children:[t&&Yr(d,De),t&&u&&(0,l.jsx)("span",{className:"".concat(V,"-collapsed-button"),onClick:function(){a&&a(!i)},children:u(i)}),b==="mix"&&!t&&(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("div",{className:Oe,onClick:g,children:Ot((0,m.Z)((0,m.Z)({},e),{},{collapsed:!1}),"headerTitleRender")})}),(0,l.jsx)("div",{style:{flex:1},children:R}),s&&s(e)]})},Jr=Xr,Ni=c(2828),hn=le.Z.Header,kr=function(n){(0,$r.Z)(t,n);var e=(0,Wr.Z)(t);function t(){var r;(0,en.Z)(this,t);for(var i=arguments.length,a=new Array(i),o=0;o