You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NewEduCoderBuild/14566.7b41251a.async.js

12 lines
24 KiB

(self.webpackChunk=self.webpackChunk||[]).push([[14566,528],{72625:function(ye,ee,m){"use strict";m.d(ee,{Z:function(){return q}});var $=m(81253),I=m(96156),k=m(6610),Z=m(5991),K=m(10379),y=m(46070),Y=m(77608),de=m(12924),X=m.n(de),me=m(94184),c=m.n(me),v=m(15105);function z(O,C){var S=Object.keys(O);if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(O);C&&(h=h.filter(function(e){return Object.getOwnPropertyDescriptor(O,e).enumerable})),S.push.apply(S,h)}return S}function w(O){for(var C=1;C<arguments.length;C++){var S=arguments[C]!=null?arguments[C]:{};C%2?z(Object(S),!0).forEach(function(h){(0,I.Z)(O,h,S[h])}):Object.getOwnPropertyDescriptors?Object.defineProperties(O,Object.getOwnPropertyDescriptors(S)):z(Object(S)).forEach(function(h){Object.defineProperty(O,h,Object.getOwnPropertyDescriptor(S,h))})}return O}function M(O){var C=A();return function(){var h=(0,Y.Z)(O),e;if(C){var n=(0,Y.Z)(this).constructor;e=Reflect.construct(h,arguments,n)}else e=h.apply(this,arguments);return(0,y.Z)(this,e)}}function A(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(O){return!1}}function R(){}function G(O){O.preventDefault()}var ce=function(C){return C.replace(/[^\w.-]+/g,"")},oe=200,te=600,F=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1,W=function(C){return C!=null},_=function(C,S){return S===C||typeof S=="number"&&typeof C=="number"&&isNaN(S)&&isNaN(C)},Q=function(O){(0,K.Z)(S,O);var C=M(S);function S(h){var e;(0,k.Z)(this,S),e=C.call(this,h),e.onKeyDown=function(t){var i=e.props,o=i.onKeyDown,f=i.onPressEnter;if(t.keyCode===v.Z.UP){var l=e.getRatio(t);e.up(t,l,null),e.stop()}else if(t.keyCode===v.Z.DOWN){var D=e.getRatio(t);e.down(t,D,null),e.stop()}else t.keyCode===v.Z.ENTER&&f&&f(t);if(e.recordCursorPosition(),e.lastKeyCode=t.keyCode,o){for(var T=arguments.length,U=new Array(T>1?T-1:0),V=1;V<T;V++)U[V-1]=arguments[V];o.apply(void 0,[t].concat(U))}},e.onKeyUp=function(t){var i=e.props.onKeyUp;if(e.stop(),e.recordCursorPosition(),i){for(var o=arguments.length,f=new Array(o>1?o-1:0),l=1;l<o;l++)f[l-1]=arguments[l];i.apply(void 0,[t].concat(f))}},e.onChange=function(t){var i=e.props.onChange;e.state.focused&&(e.inputting=!0),e.rawInput=e.props.parser(e.getValueFromEvent(t)),e.setState({inputValue:e.rawInput}),i(e.toNumber(e.rawInput))},e.onMouseUp=function(){var t=e.props.onMouseUp;e.recordCursorPosition(),t&&t.apply(void 0,arguments)},e.onFocus=function(){var t;e.setState({focused:!0}),(t=e.props).onFocus.apply(t,arguments)},e.onBlur=function(){var t=e.props.onBlur;e.inputting=!1,e.setState({focused:!1});var i=e.getCurrentValidValue(e.state.inputValue),o=e.setValue(i,R);if(t){var f=e.input.value,l=e.getInputDisplayValue({focus:!1,value:o});e.input.value=l&&Number(l),t.apply(void 0,arguments),e.input.value=f}},e.getRatio=function(t){var i=1;return t.metaKey||t.ctrlKey?i=.1:t.shiftKey&&(i=10),i},e.getFullNum=function(t){return isNaN(t)?t:/e/i.test(String(t))?Number(t).toFixed(18).replace(/\.?0+$/,""):t},e.getPrecision=function(t){if(W(e.props.precision))return e.props.precision;var i=String(t);if(i.indexOf("e-")>=0)return parseInt(i.slice(i.indexOf("e-")+2),10);var o=0;return i.indexOf(".")>=0&&(o=i.length-i.indexOf(".")-1),o},e.getInputDisplayValue=function(t){var i=t||e.state,o=i.focused,f=i.inputValue,l=i.value,D;o?D=f:D=e.toPrecisionAsStep(l),D==null&&(D="");var T=e.formatWrapper(D);return W(e.props.decimalSeparator)&&(T=T.toString().replace(".",e.props.decimalSeparator)),T},e.recordCursorPosition=function(){try{e.cursorStart=e.input.selectionStart,e.cursorEnd=e.input.selectionEnd,e.currentValue=e.input.value,e.cursorBefore=e.input.value.substring(0,e.cursorStart),e.cursorAfter=e.input.value.substring(e.cursorEnd)}catch(t){}},e.restoreByAfter=function(t){if(t===void 0)return!1;var i=e.input.value,o=i.lastIndexOf(t);if(o===-1)return!1;var f=e.cursorBefore.length;return e.lastKeyCode===v.Z.DELETE&&e.cursorBefore.charAt(f-1)===t[0]?(e.fixCaret(f,f),!0):o+t.length===i.length?(e.fixCaret(o,o),!0):!1},e.partRestoreByAfter=function(t){return t===void 0?!1:Array.prototype.some.call(t,function(i,o){var f=t.substring(o);return e.restoreByAfter(f)})},e.isNotCompleteNumber=function(t){return isNaN(t)||t===""||t===null||t&&t.toString().indexOf(".")===t.toString().length-1},e.stop=function(){e.autoStepTimer&&clearTimeout(e.autoStepTimer)},e.down=function(t,i,o){e.pressingUpOrDown=!0,e.step("down",t,i,o)},e.up=function(t,i,o){e.pressingUpOrDown=!0,e.step("up",t,i,o)},e.saveInput=function(t){e.input=t};var n=h.value;n===void 0&&(n=h.defaultValue),e.state={focused:h.autoFocus};var a=e.getValidValue(e.toNumber(n));return e.state=w(w({},e.state),{},{inputValue:e.toPrecisionAsStep(a),value:a}),e}return(0,Z.Z)(S,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(e){var n=this.props,a=n.value,t=n.onChange,i=n.max,o=n.min,f=this.state.focused;if(e){if(!_(e.value,a)||!_(e.max,i)||!_(e.min,o)){var l=f?a:this.getValidValue(a),D;this.pressingUpOrDown?D=l:this.inputting?D=this.rawInput:D=this.toPrecisionAsStep(l),this.setState({value:l,inputValue:D})}var T="value"in this.props?a:this.state.value;"max"in this.props&&e.max!==i&&typeof T=="number"&&T>i&&t&&t(i),"min"in this.props&&e.min!==o&&typeof T=="number"&&T<o&&t&&t(o)}try{if(this.cursorStart!==void 0&&this.state.focused){if(!this.partRestoreByAfter(this.cursorAfter)&&this.state.value!==this.props.value){var U=this.cursorStart+1;this.cursorAfter?this.lastKeyCode===v.Z.BACKSPACE?U=this.cursorStart-1:this.lastKeyCode===v.Z.DELETE&&(U=this.cursorStart):U=this.input.value.length,this.fixCaret(U,U)}else if(this.currentValue===this.input.value)switch(this.lastKeyCode){case v.Z.BACKSPACE:this.fixCaret(this.cursorStart-1,this.cursorStart-1);break;case v.Z.DELETE:this.fixCaret(this.cursorStart+1,this.cursorStart+1);break;default:}}}catch(V){}if(this.lastKeyCode=null,!this.pressingUpOrDown)return;this.props.focusOnUpDown&&this.state.focused&&(document.activeElement!==this.input&&this.focus())}},{key:"componentWillUnmount",value:function(){this.stop()}},{key:"getCurrentValidValue",value:function(e){var n=e;return n===""?n="":this.isNotCompleteNumber(parseFloat(n))?n=this.state.value:n=this.getValidValue(n),this.toNumber(n)}},{key:"getValueFromEvent",value:function(e){var n=e.target.value.trim().replace(/。/g,".");return W(this.props.decimalSeparator)&&(n=n.replace(this.props.decimalSeparator,".")),n}},{key:"getValidValue",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.props.min,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.props.max,t=parseFloat(e);return isNaN(t)?e:(t<n&&(t=n),t>a&&(t=a),t)}},{key:"setValue",value:function(e,n){var a=this.props.precision,t=this.isNotCompleteNumber(parseFloat(e))?null:parseFloat(e),i=this.state.value,o=i===void 0?null:i,f=this.state.inputValue,l=f===void 0?null:f,D=typeof t=="number"?t.toFixed(a):"".concat(t),T=t!==o||D!=="".concat(l);return"value"in this.props?(l=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:l},n)):this.setState({value:t,inputValue:this.toPrecisionAsStep(e)},n),T&&this.props.onChange(t),t}},{key:"getMaxPrecision",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,a=this.props,t=a.precision,i=a.step;if(W(t))return t;var o=this.getPrecision(n),f=this.getPrecision(i),l=this.getPrecision(e);return e?Math.max(l,o+f):o+f}},{key:"getPrecisionFactor",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,a=this.getMaxPrecision(e,n);return Math.pow(10,a)}},{key:"focus",value:function(){this.input.focus(),this.recordCursorPosition()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"formatWrapper",value:function(e){return this.props.formatter?this.props.formatter(e):e}},{key:"toPrecisionAsStep",value:function(e){if(this.isNotCompleteNumber(e)||e==="")return e;var n=Math.abs(this.getMaxPrecision(e));return isNaN(n)?e.toString():Number(e).toFixed(n)}},{key:"toNumber",value:function(e){var n=this.props.precision,a=this.state.focused,t=e&&e.length>16&&a;return this.isNotCompleteNumber(e)||t?e:W(n)?Math.round(e*Math.pow(10,n))/Math.pow(10,n):Number(e)}},{key:"upStep",value:function(e,n){var a=this.props.step,t=this.getPrecisionFactor(e,n),i=Math.abs(this.getMaxPrecision(e,n)),o=((t*e+t*a*n)/t).toFixed(i);return this.toNumber(o)}},{key:"downStep",value:function(e,n){var a=this.props.step,t=this.getPrecisionFactor(e,n),i=Math.abs(this.getMaxPrecision(e,n)),o=((t*e-t*a*n)/t).toFixed(i);return this.toNumber(o)}},{key:"step",value:function(e,n){var a=this,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,i=arguments.length>3?arguments[3]:void 0;this.stop(),n&&(n.persist(),n.preventDefault());var o=this.props;if(o.disabled)return;var f=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(f))return;var l=this["".concat(e,"Step")](f,t),D=l>o.max||l<o.min;if(l>o.max?l=o.max:l<o.min&&(l=o.min),this.setValue(l,null),this.setState({focused:!0},function(){a.pressingUpOrDown=!1}),D)return;this.autoStepTimer=setTimeout(function(){a[e](n,t,!0)},i?oe:te)}},{key:"fixCaret",value:function(e,n){if(e===void 0||n===void 0||!this.input||!this.input.value)return;try{var a=this.input.selectionStart,t=this.input.selectionEnd;(e!==a||n!==t)&&this.input.setSelectionRange(e,n)}catch(i){}}},{key:"render",value:function(){var e,n=this.props,a=n.prefixCls,t=n.disabled,i=n.readOnly,o=n.useTouch,f=n.autoComplete,l=n.upHandler,D=n.downHandler,T=n.className,U=n.max,V=n.min,s=n.style,E=n.title,d=n.onMouseEnter,u=n.onMouseLeave,r=n.onMouseOver,p=n.onMouseOut,g=n.required,b=n.onClick,x=n.tabIndex,N=n.type,P=n.placeholder,j=n.id,L=n.inputMode,B=n.pattern,se=n.step,ne=n.maxLength,ue=n.autoFocus,re=n.name,fe=n.onPaste,le=n.onInput,ae=(0,$.Z)(n,["prefixCls","disabled","readOnly","useTouch","autoComplete","upHandler","downHandler","className","max","min","style","title","onMouseEnter","onMouseLeave","onMouseOver","onMouseOut","required","onClick","tabIndex","type","placeholder","id","inputMode","pattern","step","maxLength","autoFocus","name","onPaste","onInput"]),pe=this.state,H=pe.value,ve=pe.focused,xe=c()(a,(e={},(0,I.Z)(e,T,!!T),(0,I.Z)(e,"".concat(a,"-disabled"),t),(0,I.Z)(e,"".concat(a,"-focused"),ve),e)),ge={};Object.keys(ae).forEach(function(ie){(ie.substr(0,5)==="data-"||ie.substr(0,5)==="aria-"||ie==="role")&&(ge[ie]=ae[ie])});var he=!i&&!t,Ce=this.getInputDisplayValue(null),Ne=(H||H===0)&&(isNaN(H)||Number(H)>=U),Re=(H||H===0)&&(isNaN(H)||Number(H)<=V),be=Ne||t||i,Ee=Re||t||i,Se=c()("".concat(a,"-handler"),"".concat(a,"-handler-up"),(0,I.Z)({},"".concat(a,"-handler-up-disabled"),be)),we=c()("".concat(a,"-handler"),"".concat(a,"-handler-down"),(0,I.Z)({},"".concat(a,"-handler-down-disabled"),Ee)),Ae=o?{onTouchStart:be?R:this.up,onTouchEnd:this.stop}:{onMouseDown:be?R:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},Oe=o?{onTouchStart:Ee?R:this.down,onTouchEnd:this.stop}:{onMouseDown:Ee?R:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return X().createElement("div",{className:xe,style:s,title:E,onMouseEnter:d,onMouseLeave:u,onMouseOver:r,onMouseOut:p,onFocus:function(){return null},onBlur:function(){return null}},X().createElement("div",{className:"".concat(a,"-handler-wrap")},X().createElement("span",Object.assign({unselectable:"on"},Ae,{role:"button","aria-label":"Increase Value","aria-disabled":be,className:Se}),l||X().createElement("span",{unselectable:"on",className:"".concat(a,"-handler-up-inner"),onClick:G})),X().createElement("span",Object.assign({unselectable:"on"},Oe,{role:"button","aria-label":"Decrease Value","aria-disabled":Ee,className:we}),D||X().createElement("span",{unselectable:"on",className:"".concat(a,"-handler-down-inner"),onClick:G}))),X().createElement("div",{className:"".concat(a,"-input-wrap")},X().createElement("input",Object.assign({role:"spinbutton","aria-valuemin":V,"aria-valuemax":U,"aria-valuenow":H,required:g,type:N,placeholder:P,onPaste:fe,onClick:b,onMouseUp:this.onMouseUp,className:"".concat(a,"-input"),tabIndex:x,autoComplete:f,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:he?this.onKeyDown:R,onKeyUp:he?this.onKeyUp:R,autoFocus:ue,maxLength:ne,readOnly:i,disabled:t,max:U,min:V,step:se,name:re,title:E,id:j,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(Ce),pattern:B,inputMode:L,onInput:le},ge))))}}]),S}(X().Component);Q.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:F,min:-F,step:1,style:{},onChange:R,onKeyDown:R,onPressEnter:R,onFocus:R,onBlur:R,parser:ce,required:!1,autoComplete:"off"};var J=Q,q=J},81656:function(ye,ee,m){"use strict";m.r(ee),m.d(ee,{ResizableTextArea:function(){return T},default:function(){return V}});var $=m(22122),I=m(6610),k=m(5991),Z=m(10379),K=m(54070),y=m(12924),Y=m(28991),de=m(96156),X=m(50344),me=m(80334),c=m(42550),v=m(34203),z=m(91033),w=new Map;function M(s){s.forEach(function(E){var d,u=E.target;(d=w.get(u))===null||d===void 0||d.forEach(function(r){return r(u)})})}var A=new z.default(M),R=null,G=null;function ce(s,E){w.has(s)||(w.set(s,new Set),A.observe(s)),w.get(s).add(E)}function oe(s,E){w.has(s)&&(w.get(s).delete(E),w.get(s).size||(A.unobserve(s),w.delete(s)))}var te=function(s){(0,Z.Z)(d,s);var E=(0,K.Z)(d);function d(){return(0,I.Z)(this,d),E.apply(this,arguments)}return(0,k.Z)(d,[{key:"render",value:function(){return this.props.children}}]),d}(y.Component),F=y.createContext(null);function W(s){var E=s.children,d=s.onBatchResize,u=y.useRef(0),r=y.useRef([]),p=y.useContext(F),g=y.useCallback(function(b,x,N){u.current+=1;var P=u.current;r.current.push({size:b,element:x,data:N}),Promise.resolve().then(function(){P===u.current&&(d==null||d(r.current),r.current=[])}),p==null||p(b,x,N)},[d,p]);return y.createElement(F.Provider,{value:g},E)}function _(s){var E=s.children,d=s.disabled,u=y.useRef(null),r=y.useRef(null),p=y.useContext(F),g=y.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),b=y.isValidElement(E)&&(0,c.Yr)(E),x=b?E.ref:null,N=y.useMemo(function(){return(0,c.sQ)(x,u)},[x,u]),P=y.useRef(s);P.current=s;var j=y.useCallback(function(L){var B=P.current,se=B.onResize,ne=B.data,ue=L.getBoundingClientRect(),re=ue.width,fe=ue.height,le=L.offsetWidth,ae=L.offsetHeight,pe=Math.floor(re),H=Math.floor(fe);if(g.current.width!==pe||g.current.height!==H||g.current.offsetWidth!==le||g.current.offsetHeight!==ae){var ve={width:pe,height:H,offsetWidth:le,offsetHeight:ae};g.current=ve;var xe=le===Math.round(re)?re:le,ge=ae===Math.round(fe)?fe:ae,he=(0,Y.Z)((0,Y.Z)({},ve),{},{offsetWidth:xe,offsetHeight:ge});p==null||p(he,L,ne),se&&Promise.resolve().then(function(){se(he,L)})}},[]);return y.useEffect(function(){var L=(0,v.Z)(u.current)||(0,v.Z)(r.current);return L&&!d&&ce(L,j),function(){return oe(L,j)}},[u.current,d]),y.createElement(te,{ref:r},b?y.cloneElement(E,{ref:N}):E)}var Q="rc-observer-key";function J(s){var E=s.children,d=(0,X.Z)(E);return d.map(function(u,r){var p=(u==null?void 0:u.key)||"".concat(Q,"-").concat(r);return y.createElement(_,(0,$.Z)({},s,{key:p}),u)})}J.Collection=W;var q=J,O=m(98423),C=m(94184),S=m.n(C),h=`
min-height:0 !important;
max-height:none !important;
height:0 !important;
visibility:hidden !important;
overflow:hidden !important;
position:absolute !important;
z-index:-1000 !important;
top:0 !important;
right:0 !important
`,e=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],n={},a;function t(s){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,d=s.getAttribute("id")||s.getAttribute("data-reactid")||s.getAttribute("name");if(E&&n[d])return n[d];var u=window.getComputedStyle(s),r=u.getPropertyValue("box-sizing")||u.getPropertyValue("-moz-box-sizing")||u.getPropertyValue("-webkit-box-sizing"),p=parseFloat(u.getPropertyValue("padding-bottom"))+parseFloat(u.getPropertyValue("padding-top")),g=parseFloat(u.getPropertyValue("border-bottom-width"))+parseFloat(u.getPropertyValue("border-top-width")),b=e.map(function(N){return"".concat(N,":").concat(u.getPropertyValue(N))}).join(";"),x={sizingStyle:b,paddingSize:p,borderSize:g,boxSizing:r};return E&&d&&(n[d]=x),x}function i(s){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;a||(a=document.createElement("textarea"),a.setAttribute("tab-index","-1"),a.setAttribute("aria-hidden","true"),document.body.appendChild(a)),s.getAttribute("wrap")?a.setAttribute("wrap",s.getAttribute("wrap")):a.removeAttribute("wrap");var r=t(s,E),p=r.paddingSize,g=r.borderSize,b=r.boxSizing,x=r.sizingStyle;a.setAttribute("style","".concat(x,";").concat(h)),a.value=s.value||s.placeholder||"";var N=Number.MIN_SAFE_INTEGER,P=Number.MAX_SAFE_INTEGER,j=a.scrollHeight,L;if(b==="border-box"?j+=g:b==="content-box"&&(j-=p),d!==null||u!==null){a.value=" ";var B=a.scrollHeight-p;d!==null&&(N=B*d,b==="border-box"&&(N=N+p+g),j=Math.max(N,j)),u!==null&&(P=B*u,b==="border-box"&&(P=P+p+g),L=j>P?"":"hidden",j=Math.min(P,j))}return{height:j,minHeight:N,maxHeight:P,overflowY:L,resize:"none"}}var o=m(96774),f=m.n(o),l;(function(s){s[s.NONE=0]="NONE",s[s.RESIZING=1]="RESIZING",s[s.RESIZED=2]="RESIZED"})(l||(l={}));var D=function(s){(0,Z.Z)(d,s);var E=(0,K.Z)(d);function d(u){var r;return(0,I.Z)(this,d),r=E.call(this,u),r.nextFrameActionId=void 0,r.resizeFrameId=void 0,r.textArea=void 0,r.saveTextArea=function(p){r.textArea=p},r.handleResize=function(p){var g=r.state.resizeStatus,b=r.props,x=b.autoSize,N=b.onResize;if(g!==l.NONE)return;typeof N=="function"&&N(p),x&&r.resizeOnNextFrame()},r.resizeOnNextFrame=function(){cancelAnimationFrame(r.nextFrameActionId),r.nextFrameActionId=requestAnimationFrame(r.resizeTextarea)},r.resizeTextarea=function(){var p=r.props.autoSize;if(!p||!r.textArea)return;var g=p.minRows,b=p.maxRows,x=i(r.textArea,!1,g,b);r.setState({textareaStyles:x,resizeStatus:l.RESIZING},function(){cancelAnimationFrame(r.resizeFrameId),r.resizeFrameId=requestAnimationFrame(function(){r.setState({resizeStatus:l.RESIZED},function(){r.resizeFrameId=requestAnimationFrame(function(){r.setState({resizeStatus:l.NONE}),r.fixFirefoxAutoScroll()})})})})},r.renderTextArea=function(){var p=r.props,g=p.prefixCls,b=g===void 0?"rc-textarea":g,x=p.autoSize,N=p.onResize,P=p.className,j=p.disabled,L=r.state,B=L.textareaStyles,se=L.resizeStatus,ne=(0,O.Z)(r.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),ue=S()(b,P,(0,de.Z)({},"".concat(b,"-disabled"),j));"value"in ne&&(ne.value=ne.value||"");var re=(0,Y.Z)((0,Y.Z)((0,Y.Z)({},r.props.style),B),se===l.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return y.createElement(q,{onResize:r.handleResize,disabled:!(x||N)},y.createElement("textarea",(0,$.Z)({},ne,{className:ue,style:re,ref:r.saveTextArea})))},r.state={textareaStyles:{},resizeStatus:l.NONE},r}return(0,k.Z)(d,[{key:"componentDidUpdate",value:function(r){(r.value!==this.props.value||!f()(r.autoSize,this.props.autoSize))&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var r=this.textArea.selectionStart,p=this.textArea.selectionEnd;this.textArea.setSelectionRange(r,p)}}catch(g){}}},{key:"render",value:function(){return this.renderTextArea()}}]),d}(y.Component),T=D,U=function(s){(0,Z.Z)(d,s);var E=(0,K.Z)(d);function d(u){var r;(0,I.Z)(this,d),r=E.call(this,u),r.resizableTextArea=void 0,r.focus=function(){r.resizableTextArea.textArea.focus()},r.saveTextArea=function(g){r.resizableTextArea=g},r.handleChange=function(g){var b=r.props.onChange;r.setValue(g.target.value,function(){r.resizableTextArea.resizeTextarea()}),b&&b(g)},r.handleKeyDown=function(g){var b=r.props,x=b.onPressEnter,N=b.onKeyDown;g.keyCode===13&&x&&x(g),N&&N(g)};var p=typeof u.value=="undefined"||u.value===null?u.defaultValue:u.value;return r.state={value:p},r}return(0,k.Z)(d,[{key:"setValue",value:function(r,p){"value"in this.props||this.setState({value:r},p)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return y.createElement(T,(0,$.Z)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(r){return"value"in r?{value:r.value}:null}}]),d}(y.Component),V=U},98423:function(ye,ee,m){"use strict";m.d(ee,{Z:function(){return I}});var $=m(28991);function I(k,Z){var K=(0,$.Z)({},k);return Array.isArray(Z)&&Z.forEach(function(y){delete K[y]}),K}},64239:function(ye,ee,m){"use strict";m.d(ee,{Z:function(){return me}});function $(c){return typeof c=="object"&&c!=null&&c.nodeType===1}function I(c,v){return(!v||c!=="hidden")&&c!=="visible"&&c!=="clip"}function k(c,v){if(c.clientHeight<c.scrollHeight||c.clientWidth<c.scrollWidth){var z=getComputedStyle(c,null);return I(z.overflowY,v)||I(z.overflowX,v)||function(w){var M=function(A){if(!A.ownerDocument||!A.ownerDocument.defaultView)return null;try{return A.ownerDocument.defaultView.frameElement}catch(R){return null}}(w);return!!M&&(M.clientHeight<w.scrollHeight||M.clientWidth<w.scrollWidth)}(c)}return!1}function Z(c,v,z,w,M,A,R,G){return A<c&&R>v||A>c&&R<v?0:A<=c&&G<=z||R>=v&&G>=z?A-c-w:R>v&&G<z||A<c&&G>z?R-v+M:0}function K(c,v){var z=window,w=v.scrollMode,M=v.block,A=v.inline,R=v.boundary,G=v.skipOverflowHiddenElements,ce=typeof R=="function"?R:function(B){return B!==R};if(!$(c))throw new TypeError("Invalid target");for(var oe=document.scrollingElement||document.documentElement,te=[],F=c;$(F)&&ce(F);){if((F=F.parentElement)===oe){te.push(F);break}F!=null&&F===document.body&&k(F)&&!k(document.documentElement)||F!=null&&k(F,G)&&te.push(F)}for(var W=z.visualViewport?z.visualViewport.width:innerWidth,_=z.visualViewport?z.visualViewport.height:innerHeight,Q=window.scrollX||pageXOffset,J=window.scrollY||pageYOffset,q=c.getBoundingClientRect(),O=q.height,C=q.width,S=q.top,h=q.right,e=q.bottom,n=q.left,a=M==="start"||M==="nearest"?S:M==="end"?e:S+O/2,t=A==="center"?n+C/2:A==="end"?h:n,i=[],o=0;o<te.length;o++){var f=te[o],l=f.getBoundingClientRect(),D=l.height,T=l.width,U=l.top,V=l.right,s=l.bottom,E=l.left;if(w==="if-needed"&&S>=0&&n>=0&&e<=_&&h<=W&&S>=U&&e<=s&&n>=E&&h<=V)return i;var d=getComputedStyle(f),u=parseInt(d.borderLeftWidth,10),r=parseInt(d.borderTopWidth,10),p=parseInt(d.borderRightWidth,10),g=parseInt(d.borderBottomWidth,10),b=0,x=0,N="offsetWidth"in f?f.offsetWidth-f.clientWidth-u-p:0,P="offsetHeight"in f?f.offsetHeight-f.clientHeight-r-g:0;if(oe===f)b=M==="start"?a:M==="end"?a-_:M==="nearest"?Z(J,J+_,_,r,g,J+a,J+a+O,O):a-_/2,x=A==="start"?t:A==="center"?t-W/2:A==="end"?t-W:Z(Q,Q+W,W,u,p,Q+t,Q+t+C,C),b=Math.max(0,b+J),x=Math.max(0,x+Q);else{b=M==="start"?a-U-r:M==="end"?a-s+g+P:M==="nearest"?Z(U,s,D,r,g+P,a,a+O,O):a-(U+D/2)+P/2,x=A==="start"?t-E-u:A==="center"?t-(E+T/2)+N/2:A==="end"?t-V+p+N:Z(E,V,T,u,p+N,t,t+C,C);var j=f.scrollLeft,L=f.scrollTop;a+=L-(b=Math.max(0,Math.min(L+b,f.scrollHeight-D+P))),t+=j-(x=Math.max(0,Math.min(j+x,f.scrollWidth-T+N)))}i.push({el:f,top:b,left:x})}return i}function y(c){return c===Object(c)&&Object.keys(c).length!==0}function Y(c,v){v===void 0&&(v="auto");var z="scrollBehavior"in document.body.style;c.forEach(function(w){var M=w.el,A=w.top,R=w.left;M.scroll&&z?M.scroll({top:A,left:R,behavior:v}):(M.scrollTop=A,M.scrollLeft=R)})}function de(c){return c===!1?{block:"end",inline:"nearest"}:y(c)?c:{block:"start",inline:"nearest"}}function X(c,v){var z=!c.ownerDocument.documentElement.contains(c);if(y(v)&&typeof v.behavior=="function")return v.behavior(z?[]:K(c,v));if(z)return;var w=de(v);return Y(K(c,w),w.behavior)}var me=X}}]);