-
Notifications
You must be signed in to change notification settings - Fork 0
/
bba66976.js
1 lines (1 loc) · 28.5 KB
/
bba66976.js
1
(window.webpackJsonp=window.webpackJsonp||[]).push([[44,41,43],{"+KLJ":function(W,T,t){"use strict";var s=t("wx14"),y=t("rePB"),a=t("ODXe"),O=t("q1tI"),U=t("4i/N"),$=t("Ue1A"),P=t("RCxd"),L=t("+YFz"),ne=t("2BaD"),he=t("jO45"),se=t("IMoZ"),ae=t("zueq"),D=t("jN4g"),V=t("8XRh"),re=t("TSYQ"),j=t.n(re),ge=t("H84U");function Ve(M){return Object.keys(M).reduce(function(E,p){return(p.substr(0,5)==="data-"||p.substr(0,5)==="aria-"||p==="role")&&p.substr(0,7)!=="data-__"&&(E[p]=M[p]),E},{})}var Ye=t("1OyB"),Ie=t("vuIU"),Ne=t("Ji7U"),g=t("LK+K"),d=function(M){Object(Ne.a)(p,M);var E=Object(g.a)(p);function p(){var x;return Object(Ye.a)(this,p),x=E.apply(this,arguments),x.state={error:void 0,info:{componentStack:""}},x}return Object(Ie.a)(p,[{key:"componentDidCatch",value:function(R,Y){this.setState({error:R,info:Y})}},{key:"render",value:function(){var R=this.props,Y=R.message,q=R.description,de=R.children,me=this.state,ue=me.error,ye=me.info,Te=ye&&ye.componentStack?ye.componentStack:null,Le=typeof Y=="undefined"?(ue||"").toString():Y,Re=typeof q=="undefined"?Te:q;return ue?O.createElement(pe,{type:"error",message:Le,description:O.createElement("pre",null,Re)}):de}}]),p}(O.Component),S=t("0n0R"),c=function(M,E){var p={};for(var x in M)Object.prototype.hasOwnProperty.call(M,x)&&E.indexOf(x)<0&&(p[x]=M[x]);if(M!=null&&typeof Object.getOwnPropertySymbols=="function")for(var R=0,x=Object.getOwnPropertySymbols(M);R<x.length;R++)E.indexOf(x[R])<0&&Object.prototype.propertyIsEnumerable.call(M,x[R])&&(p[x[R]]=M[x[R]]);return p},b={success:he.a,info:ae.a,error:D.a,warning:se.a},Oe={success:$.a,info:L.a,error:ne.a,warning:P.a},ce=function(E){var p,x=E.description,R=E.prefixCls,Y=E.message,q=E.banner,de=E.className,me=de===void 0?"":de,ue=E.style,ye=E.onMouseEnter,Te=E.onMouseLeave,Le=E.onClick,Re=E.afterClose,be=E.showIcon,Ue=E.closable,Ce=E.closeText,Ee=E.action,h=c(E,["description","prefixCls","message","banner","className","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","action"]),De=O.useState(!1),Me=Object(a.a)(De,2),ze=Me[0],ke=Me[1],we=O.useRef(),He=O.useContext(ge.b),Xe=He.getPrefixCls,I=He.direction,z=Xe("alert",R),k=function(w){var fe;ke(!0),(fe=h.onClose)===null||fe===void 0||fe.call(h,w)},Ae=function(){var w=h.type;return w!==void 0?w:q?"warning":"info"},xe=Ce?!0:Ue,We=Ae(),$e=function(){var w=h.icon,fe=(x?Oe:b)[We]||null;return w?Object(S.c)(w,O.createElement("span",{className:"".concat(z,"-icon")},w),function(){return{className:j()("".concat(z,"-icon"),Object(y.a)({},w.props.className,w.props.className))}}):O.createElement(fe,{className:"".concat(z,"-icon")})},Fe=function(){return xe?O.createElement("button",{type:"button",onClick:k,className:"".concat(z,"-close-icon"),tabIndex:0},Ce?O.createElement("span",{className:"".concat(z,"-close-text")},Ce):O.createElement(U.a,null)):null},Ge=q&&be===void 0?!0:be,Ze=j()(z,"".concat(z,"-").concat(We),(p={},Object(y.a)(p,"".concat(z,"-with-description"),!!x),Object(y.a)(p,"".concat(z,"-no-icon"),!Ge),Object(y.a)(p,"".concat(z,"-banner"),!!q),Object(y.a)(p,"".concat(z,"-rtl"),I==="rtl"),p),me),_e=Ve(h);return O.createElement(V.b,{visible:!ze,motionName:"".concat(z,"-motion"),motionAppear:!1,motionEnter:!1,onLeaveStart:function(w){return{maxHeight:w.offsetHeight}},onLeaveEnd:Re},function(ve){var w=ve.className,fe=ve.style;return O.createElement("div",Object(s.a)({ref:we,"data-show":!ze,className:j()(Ze,w),style:Object(s.a)(Object(s.a)({},ue),fe),onMouseEnter:ye,onMouseLeave:Te,onClick:Le,role:"alert"},_e),Ge?$e():null,O.createElement("div",{className:"".concat(z,"-content")},O.createElement("div",{className:"".concat(z,"-message")},Y),O.createElement("div",{className:"".concat(z,"-description")},x)),Ee?O.createElement("div",{className:"".concat(z,"-action")},Ee):null,Fe())})};ce.ErrorBoundary=d;var pe=T.a=ce},"+QRC":function(W,T,t){"use strict";var s=t("E9nw"),y={"text/plain":"Text","text/html":"Url",default:"Text"},a="Copy to clipboard: #{key}, Enter";function O($){var P=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return $.replace(/#{\s*key\s*}/g,P)}function U($,P){var L,ne,he,se,ae,D,V=!1;P||(P={}),L=P.debug||!1;try{he=s(),se=document.createRange(),ae=document.getSelection(),D=document.createElement("span"),D.textContent=$,D.style.all="unset",D.style.position="fixed",D.style.top=0,D.style.clip="rect(0, 0, 0, 0)",D.style.whiteSpace="pre",D.style.webkitUserSelect="text",D.style.MozUserSelect="text",D.style.msUserSelect="text",D.style.userSelect="text",D.addEventListener("copy",function(j){if(j.stopPropagation(),P.format)if(j.preventDefault(),typeof j.clipboardData=="undefined"){L&&console.warn("unable to use e.clipboardData"),L&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var ge=y[P.format]||y.default;window.clipboardData.setData(ge,$)}else j.clipboardData.clearData(),j.clipboardData.setData(P.format,$);P.onCopy&&(j.preventDefault(),P.onCopy(j.clipboardData))}),document.body.appendChild(D),se.selectNodeContents(D),ae.addRange(se);var re=document.execCommand("copy");if(!re)throw new Error("copy command was unsuccessful");V=!0}catch(j){L&&console.error("unable to copy using execCommand: ",j),L&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(P.format||"text",$),P.onCopy&&P.onCopy(window.clipboardData),V=!0}catch(ge){L&&console.error("unable to copy using clipboardData: ",ge),L&&console.error("falling back to prompt"),ne=O("message"in P?P.message:a),window.prompt(ne,$)}}finally{ae&&(typeof ae.removeRange=="function"?ae.removeRange(se):ae.removeAllRanges()),D&&document.body.removeChild(D),he()}return V}W.exports=U},"/qDX":function(W,T,t){},"14J3":function(W,T,t){"use strict";var s=t("cIOH"),y=t.n(s),a=t("1GLa")},BMrR:function(W,T,t){"use strict";var s=t("qrJ5");T.a=s.a},E9nw:function(W,T){W.exports=function(){var t=document.getSelection();if(!t.rangeCount)return function(){};for(var s=document.activeElement,y=[],a=0;a<t.rangeCount;a++)y.push(t.getRangeAt(a));switch(s.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":s.blur();break;default:s=null;break}return t.removeAllRanges(),function(){t.type==="Caret"&&t.removeAllRanges(),t.rangeCount||y.forEach(function(O){t.addRange(O)}),s&&s.focus()}}},G3dp:function(W,T,t){"use strict";var s=t("q1tI"),y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"},a=y,O=t("6VBw"),U=function(L,ne){return s.createElement(O.a,Object.assign({},L,{ref:ne,icon:a}))};U.displayName="EditOutlined";var $=T.a=s.forwardRef(U)},IzEo:function(W,T,t){"use strict";var s=t("cIOH"),y=t.n(s),a=t("lnY3"),O=t.n(a),U=t("Znn+"),$=t("14J3"),P=t("jCWc")},YkAm:function(W,T,t){},bx4M:function(W,T,t){"use strict";var s=t("rePB"),y=t("wx14"),a=t("q1tI"),O=t("TSYQ"),U=t.n(O),$=t("bT9E"),P=t("H84U"),L=function(g,d){var S={};for(var c in g)Object.prototype.hasOwnProperty.call(g,c)&&d.indexOf(c)<0&&(S[c]=g[c]);if(g!=null&&typeof Object.getOwnPropertySymbols=="function")for(var b=0,c=Object.getOwnPropertySymbols(g);b<c.length;b++)d.indexOf(c[b])<0&&Object.prototype.propertyIsEnumerable.call(g,c[b])&&(S[c[b]]=g[c[b]]);return S},ne=function(d){var S=d.prefixCls,c=d.className,b=d.hoverable,Oe=b===void 0?!0:b,ce=L(d,["prefixCls","className","hoverable"]);return a.createElement(P.a,null,function(pe){var M=pe.getPrefixCls,E=M("card",S),p=U()("".concat(E,"-grid"),c,Object(s.a)({},"".concat(E,"-grid-hoverable"),Oe));return a.createElement("div",Object(y.a)({},ce,{className:p}))})},he=ne,se=function(g,d){var S={};for(var c in g)Object.prototype.hasOwnProperty.call(g,c)&&d.indexOf(c)<0&&(S[c]=g[c]);if(g!=null&&typeof Object.getOwnPropertySymbols=="function")for(var b=0,c=Object.getOwnPropertySymbols(g);b<c.length;b++)d.indexOf(c[b])<0&&Object.prototype.propertyIsEnumerable.call(g,c[b])&&(S[c[b]]=g[c[b]]);return S},ae=function(d){return a.createElement(P.a,null,function(S){var c=S.getPrefixCls,b=d.prefixCls,Oe=d.className,ce=d.avatar,pe=d.title,M=d.description,E=se(d,["prefixCls","className","avatar","title","description"]),p=c("card",b),x=U()("".concat(p,"-meta"),Oe),R=ce?a.createElement("div",{className:"".concat(p,"-meta-avatar")},ce):null,Y=pe?a.createElement("div",{className:"".concat(p,"-meta-title")},pe):null,q=M?a.createElement("div",{className:"".concat(p,"-meta-description")},M):null,de=Y||q?a.createElement("div",{className:"".concat(p,"-meta-detail")},Y,q):null;return a.createElement("div",Object(y.a)({},E,{className:x}),R,de)})},D=ae,V=t("ZTPi"),re=t("BMrR"),j=t("kPKH"),ge=t("3Nzz"),Ve=function(g,d){var S={};for(var c in g)Object.prototype.hasOwnProperty.call(g,c)&&d.indexOf(c)<0&&(S[c]=g[c]);if(g!=null&&typeof Object.getOwnPropertySymbols=="function")for(var b=0,c=Object.getOwnPropertySymbols(g);b<c.length;b++)d.indexOf(c[b])<0&&Object.prototype.propertyIsEnumerable.call(g,c[b])&&(S[c[b]]=g[c[b]]);return S};function Ye(g){var d=g.map(function(S,c){return a.createElement("li",{style:{width:"".concat(100/g.length,"%")},key:"action-".concat(c)},a.createElement("span",null,S))});return d}var Ie=function(d){var S,c,b=a.useContext(P.b),Oe=b.getPrefixCls,ce=b.direction,pe=a.useContext(ge.b),M=function(Je){var Pe;(Pe=d.onTabChange)===null||Pe===void 0||Pe.call(d,Je)},E=function(){var Je;return a.Children.forEach(d.children,function(Pe){Pe&&Pe.type&&Pe.type===he&&(Je=!0)}),Je},p=d.prefixCls,x=d.className,R=d.extra,Y=d.headStyle,q=Y===void 0?{}:Y,de=d.bodyStyle,me=de===void 0?{}:de,ue=d.title,ye=d.loading,Te=d.bordered,Le=Te===void 0?!0:Te,Re=d.size,be=d.type,Ue=d.cover,Ce=d.actions,Ee=d.tabList,h=d.children,De=d.activeTabKey,Me=d.defaultActiveTabKey,ze=d.tabBarExtraContent,ke=d.hoverable,we=d.tabProps,He=we===void 0?{}:we,Xe=Ve(d,["prefixCls","className","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps"]),I=Oe("card",p),z=me.padding===0||me.padding==="0px"?{padding:24}:void 0,k=a.createElement("div",{className:"".concat(I,"-loading-block")}),Ae=a.createElement("div",{className:"".concat(I,"-loading-content"),style:z},a.createElement(re.a,{gutter:8},a.createElement(j.a,{span:22},k)),a.createElement(re.a,{gutter:8},a.createElement(j.a,{span:8},k),a.createElement(j.a,{span:15},k)),a.createElement(re.a,{gutter:8},a.createElement(j.a,{span:6},k),a.createElement(j.a,{span:18},k)),a.createElement(re.a,{gutter:8},a.createElement(j.a,{span:13},k),a.createElement(j.a,{span:9},k)),a.createElement(re.a,{gutter:8},a.createElement(j.a,{span:4},k),a.createElement(j.a,{span:3},k),a.createElement(j.a,{span:16},k))),xe=De!==void 0,We=Object(y.a)(Object(y.a)({},He),(S={},Object(s.a)(S,xe?"activeKey":"defaultActiveKey",xe?De:Me),Object(s.a)(S,"tabBarExtraContent",ze),S)),$e,Fe=Ee&&Ee.length?a.createElement(V.a,Object(y.a)({size:"large"},We,{className:"".concat(I,"-head-tabs"),onChange:M}),Ee.map(function(Be){return a.createElement(V.a.TabPane,{tab:Be.tab,disabled:Be.disabled,key:Be.key})})):null;(ue||R||Fe)&&($e=a.createElement("div",{className:"".concat(I,"-head"),style:q},a.createElement("div",{className:"".concat(I,"-head-wrapper")},ue&&a.createElement("div",{className:"".concat(I,"-head-title")},ue),R&&a.createElement("div",{className:"".concat(I,"-extra")},R)),Fe));var Ge=Ue?a.createElement("div",{className:"".concat(I,"-cover")},Ue):null,Ze=a.createElement("div",{className:"".concat(I,"-body"),style:me},ye?Ae:h),_e=Ce&&Ce.length?a.createElement("ul",{className:"".concat(I,"-actions")},Ye(Ce)):null,ve=Object($.a)(Xe,["onTabChange"]),w=Re||pe,fe=U()(I,(c={},Object(s.a)(c,"".concat(I,"-loading"),ye),Object(s.a)(c,"".concat(I,"-bordered"),Le),Object(s.a)(c,"".concat(I,"-hoverable"),ke),Object(s.a)(c,"".concat(I,"-contain-grid"),E()),Object(s.a)(c,"".concat(I,"-contain-tabs"),Ee&&Ee.length),Object(s.a)(c,"".concat(I,"-").concat(w),w),Object(s.a)(c,"".concat(I,"-type-").concat(be),!!be),Object(s.a)(c,"".concat(I,"-rtl"),ce==="rtl"),c),x);return a.createElement("div",Object(y.a)({},ve,{className:fe}),$e,Ge,Ze,_e)};Ie.Grid=he,Ie.Meta=D;var Ne=T.a=Ie},fOrg:function(W,T,t){"use strict";var s=t("cIOH"),y=t.n(s),a=t("YkAm"),O=t.n(a)},jCWc:function(W,T,t){"use strict";var s=t("cIOH"),y=t.n(s),a=t("1GLa")},kPKH:function(W,T,t){"use strict";var s=t("/kpp");T.a=s.a},lfch:function(W,T,t){"use strict";var s=t("q1tI"),y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},a=y,O=t("6VBw"),U=function(L,ne){return s.createElement(O.a,Object.assign({},L,{ref:ne,icon:a}))};U.displayName="CopyOutlined";var $=T.a=s.forwardRef(U)},lnY3:function(W,T,t){},tU7J:function(W,T,t){"use strict";var s=t("cIOH"),y=t.n(s),a=t("/qDX"),O=t.n(a),U=t("5Dmo"),$=t("5NDa")},wFql:function(W,T,t){"use strict";var s=t("wx14"),y=t("rePB"),a=t("q1tI"),O=t("TSYQ"),U=t.n(O),$=t("c+Xe"),P=t("H84U"),L=t("uaoM"),ne=function(o,r){var l={};for(var e in o)Object.prototype.hasOwnProperty.call(o,e)&&r.indexOf(e)<0&&(l[e]=o[e]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,e=Object.getOwnPropertySymbols(o);n<e.length;n++)r.indexOf(e[n])<0&&Object.prototype.propertyIsEnumerable.call(o,e[n])&&(l[e[n]]=o[e[n]]);return l},he=function(r,l){var e=r.prefixCls,n=r.component,i=n===void 0?"article":n,u=r.className,f=r["aria-label"],v=r.setContentRef,m=r.children,B=ne(r,["prefixCls","component","className","aria-label","setContentRef","children"]),C=l;return v&&(Object(L.a)(!1,"Typography","`setContentRef` is deprecated. Please use `ref` instead."),C=Object($.a)(l,v)),a.createElement(P.a,null,function(G){var H=G.getPrefixCls,oe=G.direction,ee=i,J=H("typography",e),ie=U()(J,Object(y.a)({},"".concat(J,"-rtl"),oe==="rtl"),u);return a.createElement(ee,Object(s.a)({className:ie,"aria-label":f,ref:C},B),m)})},se=a.forwardRef(he);se.displayName="Typography";var ae=se,D=ae,V=t("U8pU"),re=t("bT9E"),j=t("KQm4"),ge=t("1OyB"),Ve=t("vuIU"),Ye=t("Ji7U"),Ie=t("LK+K"),Ne=t("Zm9Q"),g=t("+QRC"),d=t.n(g),S=t("G3dp"),c=t("bRQS"),b=t("lfch"),Oe=t("t23M"),ce=t("wEI+"),pe=t("YMnH"),M=t("gDlH"),E=t("oHiP"),p=t("R3zJ"),x=t("3S7+"),R=t("ODXe"),Y=t("4IlW"),q={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"},de=q,me=t("6VBw"),ue=function(r,l){return a.createElement(me.a,Object.assign({},r,{ref:l,icon:de}))};ue.displayName="EnterOutlined";var ye=a.forwardRef(ue),Te=t("whJP"),Le=function(r){var l=r.prefixCls,e=r["aria-label"],n=r.className,i=r.style,u=r.direction,f=r.maxLength,v=r.autoSize,m=v===void 0?!0:v,B=r.value,C=r.onSave,G=r.onCancel,H=r.onEnd,oe=a.useRef(),ee=a.useRef(!1),J=a.useRef(),ie=a.useState(B),je=Object(R.a)(ie,2),te=je[0],Se=je[1];a.useEffect(function(){Se(B)},[B]),a.useEffect(function(){if(oe.current&&oe.current.resizableTextArea){var A=oe.current.resizableTextArea.textArea;A.focus();var K=A.value.length;A.setSelectionRange(K,K)}},[]);var Ke=function(K){var X=K.target;Se(X.value.replace(/[\n\r]/g,""))},N=function(){ee.current=!0},F=function(){ee.current=!1},Q=function(K){var X=K.keyCode;ee.current||(J.current=X)},Z=function(){C(te.trim())},le=function(K){var X=K.keyCode,et=K.ctrlKey,tt=K.altKey,nt=K.metaKey,at=K.shiftKey;J.current===X&&!ee.current&&!et&&!tt&&!nt&&!at&&(X===Y.a.ENTER?(Z(),H==null||H()):X===Y.a.ESC&&G())},_=function(){Z()},Qe=U()(l,"".concat(l,"-edit-content"),Object(y.a)({},"".concat(l,"-rtl"),u==="rtl"),n);return a.createElement("div",{className:Qe,style:i},a.createElement(Te.a,{ref:oe,maxLength:f,value:te,onChange:Ke,onKeyDown:Q,onKeyUp:le,onCompositionStart:N,onCompositionEnd:F,onBlur:_,"aria-label":e,autoSize:m}),a.createElement(ye,{className:"".concat(l,"-edit-content-confirm")}))},Re=Le,be=t("i8i4"),Ue=1,Ce=3,Ee=8,h,De={padding:0,margin:0,display:"inline",lineHeight:"inherit"};function Me(o){if(!o)return 0;var r=o.match(/^\d*(\.\d*)?/);return r?Number(r[0]):0}function ze(o){var r=Array.prototype.slice.apply(o);return r.map(function(l){return"".concat(l,": ").concat(o.getPropertyValue(l),";")}).join("")}function ke(o){var r=[];return o.forEach(function(l){var e=r[r.length-1];typeof l=="string"&&typeof e=="string"?r[r.length-1]+=l:r.push(l)}),r}var we=function(o,r,l,e,n){h||(h=document.createElement("div"),h.setAttribute("aria-hidden","true"),document.body.appendChild(h));var i=r.rows,u=r.suffix,f=u===void 0?"":u,v=window.getComputedStyle(o),m=ze(v),B=Me(v.lineHeight),C=Math.round(B*(i+1)+Me(v.paddingTop)+Me(v.paddingBottom));h.setAttribute("style",m),h.style.position="fixed",h.style.left="0",h.style.height="auto",h.style.minHeight="auto",h.style.maxHeight="auto",h.style.top="-999999px",h.style.zIndex="-1000",h.style.textOverflow="clip",h.style.whiteSpace="normal",h.style.webkitLineClamp="none";var G=ke(Object(Ne.a)(l));Object(be.render)(a.createElement("div",{style:De},a.createElement("span",{style:De},G,f),a.createElement("span",{style:De},e)),h);function H(){return h.offsetHeight<C}if(H())return Object(be.unmountComponentAtNode)(h),{content:l,text:h.innerHTML,ellipsis:!1};var oe=Array.prototype.slice.apply(h.childNodes[0].childNodes[0].cloneNode(!0).childNodes).filter(function(N){var F=N.nodeType;return F!==Ee}),ee=Array.prototype.slice.apply(h.childNodes[0].childNodes[1].cloneNode(!0).childNodes);Object(be.unmountComponentAtNode)(h);var J=[];h.innerHTML="";var ie=document.createElement("span");h.appendChild(ie);var je=document.createTextNode(n+f);ie.appendChild(je),ee.forEach(function(N){h.appendChild(N)});function te(N){ie.insertBefore(N,je)}function Se(N,F){var Q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,Z=arguments.length>3&&arguments[3]!==void 0?arguments[3]:F.length,le=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,_=Math.floor((Q+Z)/2),Qe=F.slice(0,_);if(N.textContent=Qe,Q>=Z-1)for(var A=Z;A>=Q;A-=1){var K=F.slice(0,A);if(N.textContent=K,H()||!K)return A===F.length?{finished:!1,reactNode:F}:{finished:!0,reactNode:K}}return H()?Se(N,F,_,Z,_):Se(N,F,Q,_,le)}function Ke(N,F){var Q=N.nodeType;if(Q===Ue)return te(N),H()?{finished:!1,reactNode:G[F]}:(ie.removeChild(N),{finished:!0,reactNode:null});if(Q===Ce){var Z=N.textContent||"",le=document.createTextNode(Z);return te(le),Se(le,Z)}return{finished:!1,reactNode:null}}return oe.some(function(N,F){var Q=Ke(N,F),Z=Q.finished,le=Q.reactNode;return le&&J.push(le),Z}),{content:J,text:h.innerHTML,ellipsis:!0}},He=function(o,r){var l={};for(var e in o)Object.prototype.hasOwnProperty.call(o,e)&&r.indexOf(e)<0&&(l[e]=o[e]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,e=Object.getOwnPropertySymbols(o);n<e.length;n++)r.indexOf(e[n])<0&&Object.prototype.propertyIsEnumerable.call(o,e[n])&&(l[e[n]]=o[e[n]]);return l},Xe=Object(p.c)("webkitLineClamp"),I=Object(p.c)("textOverflow");function z(o,r){var l=o.mark,e=o.code,n=o.underline,i=o.delete,u=o.strong,f=o.keyboard,v=r;function m(B,C){!B||(v=a.createElement(C,{},v))}return m(u,"strong"),m(n,"u"),m(i,"del"),m(e,"code"),m(l,"mark"),m(f,"kbd"),v}var k="...",Ae=function(o){Object(Ye.a)(l,o);var r=Object(Ie.a)(l);function l(){var e;return Object(ge.a)(this,l),e=r.apply(this,arguments),e.contentRef=a.createRef(),e.state={edit:!1,copied:!1,ellipsisText:"",ellipsisContent:null,isEllipsis:!1,expanded:!1,clientRendered:!1},e.getPrefixCls=function(){var n=e.props.prefixCls,i=e.context.getPrefixCls;return i("typography",n)},e.onExpandClick=function(n){var i,u=e.getEllipsis(),f=u.onExpand;e.setState({expanded:!0}),(i=f)===null||i===void 0||i(n)},e.onEditClick=function(){e.triggerEdit(!0)},e.onEditChange=function(n){var i=e.getEditable(),u=i.onChange;u==null||u(n),e.triggerEdit(!1)},e.onEditCancel=function(){var n,i;(i=(n=e.getEditable()).onCancel)===null||i===void 0||i.call(n),e.triggerEdit(!1)},e.onCopyClick=function(n){n.preventDefault();var i=e.props,u=i.children,f=i.copyable,v=Object(s.a)({},Object(V.a)(f)==="object"?f:null);v.text===void 0&&(v.text=String(u)),d()(v.text||""),e.setState({copied:!0},function(){v.onCopy&&v.onCopy(),e.copyId=window.setTimeout(function(){e.setState({copied:!1})},3e3)})},e.setEditRef=function(n){e.editIcon=n},e.triggerEdit=function(n){var i=e.getEditable(),u=i.onStart;n&&u&&u(),e.setState({edit:n},function(){!n&&e.editIcon&&e.editIcon.focus()})},e.resizeOnNextFrame=function(){E.a.cancel(e.rafId),e.rafId=Object(E.a)(function(){e.syncEllipsis()})},e}return Object(Ve.a)(l,[{key:"componentDidMount",value:function(){this.setState({clientRendered:!0}),this.resizeOnNextFrame()}},{key:"componentDidUpdate",value:function(n){var i=this.props.children,u=this.getEllipsis(),f=this.getEllipsis(n);(i!==n.children||u.rows!==f.rows)&&this.resizeOnNextFrame()}},{key:"componentWillUnmount",value:function(){window.clearTimeout(this.copyId),E.a.cancel(this.rafId)}},{key:"getEditable",value:function(n){var i=this.state.edit,u=n||this.props,f=u.editable;return f?Object(s.a)({editing:i},Object(V.a)(f)==="object"?f:null):{editing:i}}},{key:"getEllipsis",value:function(n){var i=n||this.props,u=i.ellipsis;return u?Object(s.a)({rows:1,expandable:!1},Object(V.a)(u)==="object"?u:null):{}}},{key:"canUseCSSEllipsis",value:function(){var n=this.state.clientRendered,i=this.props,u=i.editable,f=i.copyable,v=this.getEllipsis(),m=v.rows,B=v.expandable,C=v.suffix,G=v.onEllipsis,H=v.tooltip;return C||H||u||f||B||!n||G?!1:m===1?I:Xe}},{key:"syncEllipsis",value:function(){var n=this.state,i=n.ellipsisText,u=n.isEllipsis,f=n.expanded,v=this.getEllipsis(),m=v.rows,B=v.suffix,C=v.onEllipsis,G=this.props.children;if(!(!m||m<0||!this.contentRef.current||f)&&!this.canUseCSSEllipsis()){Object(L.a)(Object(Ne.a)(G).every(function(ie){return typeof ie=="string"}),"Typography","`ellipsis` should use string as children only.");var H=we(this.contentRef.current,{rows:m,suffix:B},G,this.renderOperations(!0),k),oe=H.content,ee=H.text,J=H.ellipsis;(i!==ee||u!==J)&&(this.setState({ellipsisText:ee,ellipsisContent:oe,isEllipsis:J}),u!==J&&C&&C(J))}}},{key:"renderExpand",value:function(n){var i=this.getEllipsis(),u=i.expandable,f=i.symbol,v=this.state,m=v.expanded,B=v.isEllipsis;if(!u||!n&&(m||!B))return null;var C;return f?C=f:C=this.expandStr,a.createElement("a",{key:"expand",className:"".concat(this.getPrefixCls(),"-expand"),onClick:this.onExpandClick,"aria-label":this.expandStr},C)}},{key:"renderEdit",value:function(){var n=this.props.editable;if(!!n){var i=n.icon,u=n.tooltip,f=Object(Ne.a)(u)[0]||this.editStr,v=typeof f=="string"?f:"";return a.createElement(x.a,{key:"edit",title:u===!1?"":f},a.createElement(M.a,{ref:this.setEditRef,className:"".concat(this.getPrefixCls(),"-edit"),onClick:this.onEditClick,"aria-label":v},i||a.createElement(S.a,{role:"button"})))}}},{key:"renderCopy",value:function(){var n=this.state.copied,i=this.props.copyable;if(!!i){var u=this.getPrefixCls(),f=i.tooltips,v=Object(Ne.a)(f);v.length===0&&(v=[this.copyStr,this.copiedStr]);var m=n?v[1]:v[0],B=typeof m=="string"?m:"",C=Object(Ne.a)(i.icon);return a.createElement(x.a,{key:"copy",title:f===!1?"":m},a.createElement(M.a,{className:U()("".concat(u,"-copy"),n&&"".concat(u,"-copy-success")),onClick:this.onCopyClick,"aria-label":B},n?C[1]||a.createElement(c.a,null):C[0]||a.createElement(b.a,null)))}}},{key:"renderEditInput",value:function(){var n=this.props,i=n.children,u=n.className,f=n.style,v=this.context.direction,m=this.getEditable(),B=m.maxLength,C=m.autoSize,G=m.onEnd;return a.createElement(Re,{value:typeof i=="string"?i:"",onSave:this.onEditChange,onCancel:this.onEditCancel,onEnd:G,prefixCls:this.getPrefixCls(),className:u,style:f,direction:v,maxLength:B,autoSize:C})}},{key:"renderOperations",value:function(n){return[this.renderExpand(n),this.renderEdit(),this.renderCopy()].filter(function(i){return i})}},{key:"renderContent",value:function(){var n=this,i=this.state,u=i.ellipsisContent,f=i.isEllipsis,v=i.expanded,m=this.props,B=m.component,C=m.children,G=m.className,H=m.type,oe=m.disabled,ee=m.style,J=He(m,["component","children","className","type","disabled","style"]),ie=this.context.direction,je=this.getEllipsis(),te=je.rows,Se=je.suffix,Ke=je.tooltip,N=this.getPrefixCls(),F=Object(re.a)(J,["prefixCls","editable","copyable","ellipsis","mark","code","delete","underline","strong","keyboard"].concat(Object(j.a)(ce.a))),Q=this.canUseCSSEllipsis(),Z=te===1&&Q,le=te&&te>1&&Q,_=C;if(te&&f&&!v&&!Q){var Qe=J.title,A=Qe||"";!Qe&&(typeof C=="string"||typeof C=="number")&&(A=String(C)),A=A==null?void 0:A.slice(String(u||"").length),_=a.createElement(a.Fragment,null,u,a.createElement("span",{title:A,"aria-hidden":"true"},k),Se),Ke&&(_=a.createElement(x.a,{title:Ke===!0?C:Ke},a.createElement("span",null,_)))}else _=a.createElement(a.Fragment,null,C,Se);return _=z(this.props,_),a.createElement(pe.a,{componentName:"Text"},function(K){var X,et=K.edit,tt=K.copy,nt=K.copied,at=K.expand;return n.editStr=et,n.copyStr=tt,n.copiedStr=nt,n.expandStr=at,a.createElement(Oe.a,{onResize:n.resizeOnNextFrame,disabled:!te},a.createElement(D,Object(s.a)({className:U()((X={},Object(y.a)(X,"".concat(N,"-").concat(H),H),Object(y.a)(X,"".concat(N,"-disabled"),oe),Object(y.a)(X,"".concat(N,"-ellipsis"),te),Object(y.a)(X,"".concat(N,"-ellipsis-single-line"),Z),Object(y.a)(X,"".concat(N,"-ellipsis-multiple-line"),le),X),G),style:Object(s.a)(Object(s.a)({},ee),{WebkitLineClamp:le?te:void 0}),component:B,ref:n.contentRef,direction:ie},F),_,n.renderOperations()))})}},{key:"render",value:function(){var n=this.getEditable(),i=n.editing;return i?this.renderEditInput():this.renderContent()}}],[{key:"getDerivedStateFromProps",value:function(n){var i=n.children,u=n.editable;return Object(L.a)(!u||typeof i=="string","Typography","When `editable` is enabled, the `children` should use string."),{}}}]),l}(a.Component);Ae.contextType=P.b,Ae.defaultProps={children:""};var xe=Ae,We=function(o,r){var l={};for(var e in o)Object.prototype.hasOwnProperty.call(o,e)&&r.indexOf(e)<0&&(l[e]=o[e]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,e=Object.getOwnPropertySymbols(o);n<e.length;n++)r.indexOf(e[n])<0&&Object.prototype.propertyIsEnumerable.call(o,e[n])&&(l[e[n]]=o[e[n]]);return l},$e=function(r){var l=r.ellipsis,e=We(r,["ellipsis"]),n=a.useMemo(function(){return l&&Object(V.a)(l)==="object"?Object(re.a)(l,["expandable","rows"]):l},[l]);return Object(L.a)(Object(V.a)(l)!=="object"||!l||!("expandable"in l)&&!("rows"in l),"Typography.Text","`ellipsis` do not support `expandable` or `rows` props."),a.createElement(xe,Object(s.a)({},e,{ellipsis:n,component:"span"}))},Fe=$e,Ge=function(o,r){var l={};for(var e in o)Object.prototype.hasOwnProperty.call(o,e)&&r.indexOf(e)<0&&(l[e]=o[e]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,e=Object.getOwnPropertySymbols(o);n<e.length;n++)r.indexOf(e[n])<0&&Object.prototype.propertyIsEnumerable.call(o,e[n])&&(l[e[n]]=o[e[n]]);return l},Ze=function(r,l){var e=r.ellipsis,n=r.rel,i=Ge(r,["ellipsis","rel"]);Object(L.a)(Object(V.a)(e)!=="object","Typography.Link","`ellipsis` only supports boolean value.");var u=a.useRef(null);a.useImperativeHandle(l,function(){var v;return(v=u.current)===null||v===void 0?void 0:v.contentRef.current});var f=Object(s.a)(Object(s.a)({},i),{rel:n===void 0&&i.target==="_blank"?"noopener noreferrer":n});return delete f.navigate,a.createElement(xe,Object(s.a)({},f,{ref:u,ellipsis:!!e,component:"a"}))},_e=a.forwardRef(Ze),ve=t("CWQg"),w=function(o,r){var l={};for(var e in o)Object.prototype.hasOwnProperty.call(o,e)&&r.indexOf(e)<0&&(l[e]=o[e]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,e=Object.getOwnPropertySymbols(o);n<e.length;n++)r.indexOf(e[n])<0&&Object.prototype.propertyIsEnumerable.call(o,e[n])&&(l[e[n]]=o[e[n]]);return l},fe=Object(ve.b)(1,2,3,4,5),Be=function(r){var l=r.level,e=l===void 0?1:l,n=w(r,["level"]),i;return fe.indexOf(e)!==-1?i="h".concat(e):(Object(L.a)(!1,"Typography.Title","Title only accept `1 | 2 | 3 | 4 | 5` as `level` value. And `5` need 4.6.0+ version."),i="h1"),a.createElement(xe,Object(s.a)({},n,{component:i}))},Je=Be,Pe=function(r){return a.createElement(xe,Object(s.a)({},r,{component:"div"}))},rt=Pe,qe=D;qe.Text=Fe,qe.Link=_e,qe.Title=Je,qe.Paragraph=rt;var ot=T.a=qe}}]);