(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7742],{7742:function(e,t,n){"use strict";n.d(t,{Z:function(){return be}});var r=n(87462),i=n(4942),o=n(67294),a=n(94184),l=n.n(a),c=n(42550),s=n(65632),p=n(21687),d=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},u=function(e,t){var n=e.prefixCls,a=e.component,u=void 0===a?"article":a,f=e.className,y=e["aria-label"],h=e.setContentRef,m=e.children,v=d(e,["prefixCls","component","className","aria-label","setContentRef","children"]),g=t;return h&&((0,p.Z)(!1,"Typography","`setContentRef` is deprecated. Please use `ref` instead."),g=(0,c.sQ)(t,h)),o.createElement(s.C,null,(function(e){var t=e.getPrefixCls,a=e.direction,c=u,s=t("typography",n),p=l()(s,(0,i.Z)({},"".concat(s,"-rtl"),"rtl"===a),f);return o.createElement(c,(0,r.Z)({className:p,"aria-label":y,ref:g},v),m)}))},f=o.forwardRef(u);f.displayName="Typography";var y=f,h=n(71002),m=n(98423),v=n(93433),g=n(15671),b=n(43144),E=n(60136),x=n(29388),C=n(50344),w=n(1884),Z=n.n(w),O=n(1413),S={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"},k=n(30076),N=function(e,t){return o.createElement(k.Z,(0,O.Z)((0,O.Z)({},e),{},{ref:t,icon:S}))};N.displayName="EditOutlined";var R=o.forwardRef(N),T=n(79508),P={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"},j=function(e,t){return o.createElement(k.Z,(0,O.Z)((0,O.Z)({},e),{},{ref:t,icon:P}))};j.displayName="CopyOutlined";var D=o.forwardRef(j),A=n(4084),I=n(69224),z=n(42051),L=n(15105),H=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},M={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-block"},U=o.forwardRef((function(e,t){var n=e.style,i=e.noStyle,a=e.disabled,l=H(e,["style","noStyle","disabled"]),c={};return i||(c=(0,r.Z)({},M)),a&&(c.pointerEvents="none"),c=(0,r.Z)((0,r.Z)({},c),n),o.createElement("div",(0,r.Z)({role:"button",tabIndex:0,ref:t},l,{onKeyDown:function(e){e.keyCode===L.Z.ENTER&&e.preventDefault()},onKeyUp:function(t){var n=t.keyCode,r=e.onClick;n===L.Z.ENTER&&r&&r()},style:c}))})),K=n(32637),B=n(31808),F=n(31097),V=n(29439),_={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"},W=function(e,t){return o.createElement(k.Z,(0,O.Z)((0,O.Z)({},e),{},{ref:t,icon:_}))};W.displayName="EnterOutlined";var G,Q=o.forwardRef(W),X=n(45839),q=function(e){var t=e.prefixCls,n=e["aria-label"],r=e.className,a=e.style,c=e.direction,s=e.maxLength,p=e.autoSize,d=void 0===p||p,u=e.value,f=e.onSave,y=e.onCancel,h=e.onEnd,m=o.useRef(),v=o.useRef(!1),g=o.useRef(),b=o.useState(u),E=(0,V.Z)(b,2),x=E[0],C=E[1];o.useEffect((function(){C(u)}),[u]),o.useEffect((function(){if(m.current&&m.current.resizableTextArea){var e=m.current.resizableTextArea.textArea;e.focus();var t=e.value.length;e.setSelectionRange(t,t)}}),[]);var w=function(){f(x.trim())},Z=l()(t,"".concat(t,"-edit-content"),(0,i.Z)({},"".concat(t,"-rtl"),"rtl"===c),r);return o.createElement("div",{className:Z,style:a},o.createElement(X.Z,{ref:m,maxLength:s,value:x,onChange:function(e){var t=e.target;C(t.value.replace(/[\n\r]/g,""))},onKeyDown:function(e){var t=e.keyCode;v.current||(g.current=t)},onKeyUp:function(e){var t=e.keyCode,n=e.ctrlKey,r=e.altKey,i=e.metaKey,o=e.shiftKey;g.current!==t||v.current||n||r||i||o||(t===L.Z.ENTER?(w(),null===h||void 0===h||h()):t===L.Z.ESC&&y())},onCompositionStart:function(){v.current=!0},onCompositionEnd:function(){v.current=!1},onBlur:function(){w()},"aria-label":n,autoSize:d}),o.createElement(Q,{className:"".concat(t,"-edit-content-confirm")}))},J=n(73935),Y={padding:0,margin:0,display:"inline",lineHeight:"inherit"};function $(e){if(!e)return 0;var t=e.match(/^\d*(\.\d*)?/);return t?Number(t[0]):0}function ee(e,t){e.setAttribute("aria-hidden","true");var n,r=window.getComputedStyle(t),i=(n=r,Array.prototype.slice.apply(n).map((function(e){return"".concat(e,": ").concat(n.getPropertyValue(e),";")})).join(""));e.setAttribute("style",i),e.style.position="fixed",e.style.left="0",e.style.height="auto",e.style.minHeight="auto",e.style.maxHeight="auto",e.style.top="-999999px",e.style.zIndex="-1000",e.style.textOverflow="clip",e.style.whiteSpace="normal",e.style.webkitLineClamp="none"}var te=function(e,t,n,r,i){G||(G=document.createElement("div")).setAttribute("aria-hidden","true"),G.parentNode||document.body.appendChild(G);var a=t.rows,l=t.suffix,c=void 0===l?"":l,s=window.getComputedStyle(e),p=function(e){var t=document.createElement("div");ee(t,e),t.appendChild(document.createTextNode("text")),document.body.appendChild(t);var n=t.offsetHeight,r=$(window.getComputedStyle(e).lineHeight);return document.body.removeChild(t),n>r?n:r}(e),d=Math.floor(p)*(a+1)+$(s.paddingTop)+$(s.paddingBottom);ee(G,e);var u=function(e){var t=[];return e.forEach((function(e){var n=t[t.length-1];"string"===typeof e&&"string"===typeof n?t[t.length-1]+=e:t.push(e)})),t}((0,C.Z)(n));function f(){return Math.ceil(G.getBoundingClientRect().height)<d}if((0,J.render)(o.createElement("div",{style:Y},o.createElement("span",{style:Y},u,c),o.createElement("span",{style:Y},r)),G),f())return(0,J.unmountComponentAtNode)(G),{content:n,text:G.innerHTML,ellipsis:!1};var y=Array.prototype.slice.apply(G.childNodes[0].childNodes[0].cloneNode(!0).childNodes).filter((function(e){return 8!==e.nodeType})),h=Array.prototype.slice.apply(G.childNodes[0].childNodes[1].cloneNode(!0).childNodes);(0,J.unmountComponentAtNode)(G);var m=[];G.innerHTML="";var v=document.createElement("span");G.appendChild(v);var g=document.createTextNode(i+c);function b(e){v.insertBefore(e,g)}function E(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.length,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=Math.floor((n+r)/2),a=t.slice(0,o);if(e.textContent=a,n>=r-1)for(var l=r;l>=n;l-=1){var c=t.slice(0,l);if(e.textContent=c,f()||!c)return l===t.length?{finished:!1,reactNode:t}:{finished:!0,reactNode:c}}return f()?E(e,t,o,r,o):E(e,t,n,o,i)}function x(e,t){var n=e.nodeType;if(1===n)return b(e),f()?{finished:!1,reactNode:u[t]}:(v.removeChild(e),{finished:!0,reactNode:null});if(3===n){var r=e.textContent||"",i=document.createTextNode(r);return b(i),E(i,r)}return{finished:!1,reactNode:null}}return v.appendChild(g),h.forEach((function(e){G.appendChild(e)})),y.some((function(e,t){var n=x(e,t),r=n.finished,i=n.reactNode;return i&&m.push(i),r})),{content:m,text:G.innerHTML,ellipsis:!0}},ne=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},re=(0,B.GL)("webkitLineClamp"),ie=(0,B.GL)("textOverflow");function oe(e,t,n){return!0===e||void 0===e?t:e||n&&t}var ae=function(e){(0,E.Z)(n,e);var t=(0,x.Z)(n);function n(){var e;return(0,g.Z)(this,n),(e=t.apply(this,arguments)).contentRef=o.createRef(),e.state={edit:!1,copied:!1,ellipsisText:"",ellipsisContent:null,isEllipsis:!1,expanded:!1,clientRendered:!1},e.getPrefixCls=function(){var t=e.props.prefixCls;return(0,e.context.getPrefixCls)("typography",t)},e.onExpandClick=function(t){var n,r=e.getEllipsis().onExpand;e.setState({expanded:!0}),null===(n=r)||void 0===n||n(t)},e.onEditClick=function(t){t.preventDefault(),e.triggerEdit(!0)},e.onEditChange=function(t){var n=e.getEditable().onChange;null===n||void 0===n||n(t),e.triggerEdit(!1)},e.onEditCancel=function(){var t,n;null===(n=(t=e.getEditable()).onCancel)||void 0===n||n.call(t),e.triggerEdit(!1)},e.onCopyClick=function(t){t.preventDefault();var n=e.props,i=n.children,o=n.copyable,a=(0,r.Z)({},"object"===(0,h.Z)(o)?o:null);void 0===a.text&&(a.text=String(i)),Z()(a.text||""),e.setState({copied:!0},(function(){a.onCopy&&a.onCopy(),e.copyId=window.setTimeout((function(){e.setState({copied:!1})}),3e3)}))},e.setEditRef=function(t){e.editIcon=t},e.triggerEdit=function(t){var n=e.getEditable().onStart;t&&n&&n(),e.setState({edit:t},(function(){!t&&e.editIcon&&e.editIcon.focus()}))},e.resizeOnNextFrame=function(){K.Z.cancel(e.rafId),e.rafId=(0,K.Z)((function(){e.syncEllipsis()}))},e}return(0,b.Z)(n,[{key:"componentDidMount",value:function(){this.setState({clientRendered:!0}),this.resizeOnNextFrame()}},{key:"componentDidUpdate",value:function(e){var t=this.props.children,n=this.getEllipsis(),r=this.getEllipsis(e);t===e.children&&n.rows===r.rows||this.resizeOnNextFrame()}},{key:"componentWillUnmount",value:function(){window.clearTimeout(this.copyId),K.Z.cancel(this.rafId)}},{key:"getEditable",value:function(e){var t=this.state.edit,n=(e||this.props).editable;return n?(0,r.Z)({editing:t},"object"===(0,h.Z)(n)?n:null):{editing:t}}},{key:"getEllipsis",value:function(e){var t=(e||this.props).ellipsis;return t?(0,r.Z)({rows:1,expandable:!1},"object"===(0,h.Z)(t)?t:null):{}}},{key:"canUseCSSEllipsis",value:function(){var e=this.state.clientRendered,t=this.props,n=t.editable,r=t.copyable,i=this.getEllipsis(),o=i.rows,a=i.expandable,l=i.suffix,c=i.onEllipsis,s=i.tooltip;return!l&&!s&&(!(n||r||a||!e||c)&&(1===o?ie:re))}},{key:"syncEllipsis",value:function(){var e=this.state,t=e.ellipsisText,n=e.isEllipsis,r=e.expanded,i=this.getEllipsis(),o=i.rows,a=i.suffix,l=i.onEllipsis,c=this.props.children;if(o&&!(o<0)&&this.contentRef.current&&!r&&!this.canUseCSSEllipsis()){(0,p.Z)((0,C.Z)(c).every((function(e){return"string"===typeof e})),"Typography","`ellipsis` should use string as children only.");var s=te(this.contentRef.current,{rows:o,suffix:a},c,this.renderOperations(!0),"..."),d=s.content,u=s.text,f=s.ellipsis;t===u&&n===f||(this.setState({ellipsisText:u,ellipsisContent:d,isEllipsis:f}),n!==f&&l&&l(f))}}},{key:"renderExpand",value:function(e){var t,n=this.getEllipsis(),r=n.expandable,i=n.symbol,a=this.state,l=a.expanded,c=a.isEllipsis;return r&&(e||!l&&c)?(t=i||this.expandStr,o.createElement("a",{key:"expand",className:"".concat(this.getPrefixCls(),"-expand"),onClick:this.onExpandClick,"aria-label":this.expandStr},t)):null}},{key:"renderEdit",value:function(){var e=this.props.editable;if(e){var t=e.icon,n=e.tooltip,r=(0,C.Z)(n)[0]||this.editStr,i="string"===typeof r?r:"";return o.createElement(F.Z,{key:"edit",title:!1===n?"":r},o.createElement(U,{ref:this.setEditRef,className:"".concat(this.getPrefixCls(),"-edit"),onClick:this.onEditClick,"aria-label":i},t||o.createElement(R,{role:"button"})))}}},{key:"renderCopy",value:function(){var e=this.state.copied,t=this.props.copyable;if(t){var n=this.getPrefixCls(),r=t.tooltips,i=t.icon,a=Array.isArray(r)?r:[r],c=Array.isArray(i)?i:[i],s=e?oe(a[1],this.copiedStr):oe(a[0],this.copyStr),p=e?this.copiedStr:this.copyStr,d="string"===typeof s?s:p;return o.createElement(F.Z,{key:"copy",title:s},o.createElement(U,{className:l()("".concat(n,"-copy"),e&&"".concat(n,"-copy-success")),onClick:this.onCopyClick,"aria-label":d},e?oe(c[1],o.createElement(T.Z,null),!0):oe(c[0],o.createElement(D,null),!0)))}}},{key:"renderEditInput",value:function(){var e=this.props,t=e.children,n=e.className,r=e.style,i=this.context.direction,a=this.getEditable(),l=a.maxLength,c=a.autoSize,s=a.onEnd;return o.createElement(q,{value:"string"===typeof t?t:"",onSave:this.onEditChange,onCancel:this.onEditCancel,onEnd:s,prefixCls:this.getPrefixCls(),className:n,style:r,direction:i,maxLength:l,autoSize:c})}},{key:"renderOperations",value:function(e){return[this.renderExpand(e),this.renderEdit(),this.renderCopy()].filter((function(e){return e}))}},{key:"renderContent",value:function(){var e=this,t=this.state,n=t.ellipsisContent,a=t.isEllipsis,c=t.expanded,s=this.props,p=s.component,d=s.children,u=s.className,f=s.type,h=s.disabled,g=s.style,b=ne(s,["component","children","className","type","disabled","style"]),E=this.context.direction,x=this.getEllipsis(),C=x.rows,w=x.suffix,Z=x.tooltip,O=this.getPrefixCls(),S=(0,m.Z)(b,["prefixCls","editable","copyable","ellipsis","mark","code","delete","underline","strong","keyboard","italic"].concat((0,v.Z)(I.nf))),k=this.canUseCSSEllipsis(),N=1===C&&k,R=C&&C>1&&k,T=d;if(C&&a&&!c&&!k){var P=b.title,j=P||"";P||"string"!==typeof d&&"number"!==typeof d||(j=String(d)),j=j.slice(String(n||"").length),T=o.createElement(o.Fragment,null,n,o.createElement("span",{title:j,"aria-hidden":"true"},"..."),w),Z&&(T=o.createElement(F.Z,{title:!0===Z?d:Z},o.createElement("span",null,T)))}else T=o.createElement(o.Fragment,null,d,w);return T=function(e,t){var n=e.mark,r=e.code,i=e.underline,a=e.delete,l=e.strong,c=e.keyboard,s=e.italic,p=t;function d(e,t){e&&(p=o.createElement(t,{},p))}return d(l,"strong"),d(i,"u"),d(a,"del"),d(r,"code"),d(n,"mark"),d(c,"kbd"),d(s,"i"),p}(this.props,T),o.createElement(z.Z,{componentName:"Text"},(function(t){var n,a=t.edit,c=t.copy,s=t.copied,d=t.expand;return e.editStr=a,e.copyStr=c,e.copiedStr=s,e.expandStr=d,o.createElement(A.default,{onResize:e.resizeOnNextFrame,disabled:k},o.createElement(y,(0,r.Z)({className:l()((n={},(0,i.Z)(n,"".concat(O,"-").concat(f),f),(0,i.Z)(n,"".concat(O,"-disabled"),h),(0,i.Z)(n,"".concat(O,"-ellipsis"),C),(0,i.Z)(n,"".concat(O,"-single-line"),1===C),(0,i.Z)(n,"".concat(O,"-ellipsis-single-line"),N),(0,i.Z)(n,"".concat(O,"-ellipsis-multiple-line"),R),n),u),style:(0,r.Z)((0,r.Z)({},g),{WebkitLineClamp:R?C:void 0}),component:p,ref:e.contentRef,direction:E},S),T,e.renderOperations()))}))}},{key:"render",value:function(){return this.getEditable().editing?this.renderEditInput():this.renderContent()}}],[{key:"getDerivedStateFromProps",value:function(e){var t=e.children,n=e.editable;return(0,p.Z)(!n||"string"===typeof t,"Typography","When `editable` is enabled, the `children` should use string."),{}}}]),n}(o.Component);ae.contextType=s.E_,ae.defaultProps={children:""};var le=ae,ce=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},se=function(e){var t=e.ellipsis,n=ce(e,["ellipsis"]),i=o.useMemo((function(){return t&&"object"===(0,h.Z)(t)?(0,m.Z)(t,["expandable","rows"]):t}),[t]);return(0,p.Z)("object"!==(0,h.Z)(t)||!t||!("expandable"in t)&&!("rows"in t),"Typography.Text","`ellipsis` do not support `expandable` or `rows` props."),o.createElement(le,(0,r.Z)({},n,{ellipsis:i,component:"span"}))},pe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},de=function(e,t){var n=e.ellipsis,i=e.rel,a=pe(e,["ellipsis","rel"]);(0,p.Z)("object"!==(0,h.Z)(n),"Typography.Link","`ellipsis` only supports boolean value.");var l=o.useRef(null);o.useImperativeHandle(t,(function(){var e;return null===(e=l.current)||void 0===e?void 0:e.contentRef.current}));var c=(0,r.Z)((0,r.Z)({},a),{rel:void 0===i&&"_blank"===a.target?"noopener noreferrer":i});return delete c.navigate,o.createElement(le,(0,r.Z)({},c,{ref:l,ellipsis:!!n,component:"a"}))},ue=o.forwardRef(de),fe=n(93355),ye=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},he=(0,fe.a)(1,2,3,4,5),me=function(e){var t,n=e.level,i=void 0===n?1:n,a=ye(e,["level"]);return-1!==he.indexOf(i)?t="h".concat(i):((0,p.Z)(!1,"Typography.Title","Title only accept `1 | 2 | 3 | 4 | 5` as `level` value. And `5` need 4.6.0+ version."),t="h1"),o.createElement(le,(0,r.Z)({},a,{component:t}))},ve=function(e){return o.createElement(le,(0,r.Z)({},e,{component:"div"}))},ge=y;ge.Text=se,ge.Link=ue,ge.Title=me,ge.Paragraph=ve;var be=ge},1884:function(e,t,n){"use strict";var r=n(11742),i={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,o,a,l,c,s,p=!1;t||(t={}),n=t.debug||!1;try{if(a=r(),l=document.createRange(),c=document.getSelection(),(s=document.createElement("span")).textContent=e,s.style.all="unset",s.style.position="fixed",s.style.top=0,s.style.clip="rect(0, 0, 0, 0)",s.style.whiteSpace="pre",s.style.webkitUserSelect="text",s.style.MozUserSelect="text",s.style.msUserSelect="text",s.style.userSelect="text",s.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),"undefined"===typeof r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var o=i[t.format]||i.default;window.clipboardData.setData(o,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(s),l.selectNodeContents(s),c.addRange(l),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");p=!0}catch(d){n&&console.error("unable to copy using execCommand: ",d),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),p=!0}catch(d){n&&console.error("unable to copy using clipboardData: ",d),n&&console.error("falling back to prompt"),o=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(o,e)}}finally{c&&("function"==typeof c.removeRange?c.removeRange(l):c.removeAllRanges()),s&&document.body.removeChild(s),a()}return p}},11742:function(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}}}]);