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/p__Shixuns__Detail__Reposit...

90 lines
386 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

(self.webpackChunk=self.webpackChunk||[]).push([[7046],{10402:function(rn,Te,c){"use strict";c.d(Te,{Z:function(){return k}});var x=c(5891),W=c(59301),S={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},X=S,v=c(88853),T=function(p,Se){return W.createElement(v.Z,(0,x.Z)({},p,{ref:Se,icon:X}))},I=W.forwardRef(T),k=I},18290:function(rn,Te,c){"use strict";c.d(Te,{Z:function(){return k}});var x=c(5891),W=c(59301),S={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},X=S,v=c(88853),T=function(p,Se){return W.createElement(v.Z,(0,x.Z)({},p,{ref:Se,icon:X}))},I=W.forwardRef(T),k=I},61441:function(rn,Te,c){"use strict";c.d(Te,{Z:function(){return k}});var x=c(5891),W=c(59301),S={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},X=S,v=c(88853),T=function(p,Se){return W.createElement(v.Z,(0,x.Z)({},p,{ref:Se,icon:X}))},I=W.forwardRef(T),k=I},30631:function(rn,Te,c){"use strict";c.d(Te,{Z:function(){return k}});var x=c(5891),W=c(59301),S={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},X=S,v=c(88853),T=function(p,Se){return W.createElement(v.Z,(0,x.Z)({},p,{ref:Se,icon:X}))},I=W.forwardRef(T),k=I},86902:function(rn,Te,c){"use strict";c.d(Te,{Z:function(){return k}});var x=c(5891),W=c(59301),S={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},X=S,v=c(88853),T=function(p,Se){return W.createElement(v.Z,(0,x.Z)({},p,{ref:Se,icon:X}))},I=W.forwardRef(T),k=I},21970:function(rn,Te,c){"use strict";c.d(Te,{Z:function(){return k}});var x=c(5891),W=c(59301),S={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},X=S,v=c(88853),T=function(p,Se){return W.createElement(v.Z,(0,x.Z)({},p,{ref:Se,icon:X}))},I=W.forwardRef(T),k=I},35593:function(rn,Te,c){"use strict";c.d(Te,{Z:function(){return J}});var x=c(57259),W=c(29043),S=c(19149),X=c(43403),v=c(92310),T=c.n(v),I=c(29301),k=c(85899),se=c(70653),p=c(8107),Se=c(49879),D=c(28800),pe=c(93144),K=c(59301),ge=c(5891),We=c(43469),Ve=c(20475);function Re(M){var F=M.prefixCls,w=M.align,U=M.arrow,te=M.arrowPos,oe=U||{},ae=oe.className,de=oe.content,Ie=te.x,we=Ie===void 0?0:Ie,xe=te.y,Ae=xe===void 0?0:xe,Le=K.useRef();if(!w||!w.points)return null;var ze={position:"absolute"};if(w.autoArrow!==!1){var _=w.points[0],_e=w.points[1],nt=_[0],Fe=_[1],Xe=_e[0],ot=_e[1];nt===Xe||!["t","b"].includes(nt)?ze.top=Ae:nt==="t"?ze.top=0:ze.bottom=0,Fe===ot||!["l","r"].includes(Fe)?ze.left=we:Fe==="l"?ze.left=0:ze.right=0}return K.createElement("div",{ref:Le,className:T()("".concat(F,"-arrow"),ae),style:ze},de)}function ye(M){var F=M.prefixCls,w=M.open,U=M.zIndex,te=M.mask,oe=M.motion;return te?K.createElement(We.default,(0,ge.Z)({},oe,{motionAppear:!0,visible:w,removeOnLeave:!0}),function(ae){var de=ae.className;return K.createElement("div",{style:{zIndex:U},className:T()("".concat(F,"-mask"),de)})}):null}var re=K.memo(function(M){var F=M.children;return F},function(M,F){return F.cache}),Q=re,C=K.forwardRef(function(M,F){var w=M.popup,U=M.className,te=M.prefixCls,oe=M.style,ae=M.target,de=M.onVisibleChanged,Ie=M.open,we=M.keepDom,xe=M.fresh,Ae=M.onClick,Le=M.mask,ze=M.arrow,_=M.arrowPos,_e=M.align,nt=M.motion,Fe=M.maskMotion,Xe=M.forceRender,ot=M.getPopupContainer,ke=M.autoDestroy,Wt=M.portal,ht=M.zIndex,Ut=M.onMouseEnter,At=M.onMouseLeave,gn=M.onPointerEnter,tn=M.ready,pn=M.offsetX,Mn=M.offsetY,fn=M.offsetR,sn=M.offsetB,Ht=M.onAlign,on=M.onPrepare,Yt=M.stretch,Lt=M.targetWidth,En=M.targetHeight,Tt=typeof w=="function"?w():w,yn=Ie||we,Pn=(ot==null?void 0:ot.length)>0,Zn=K.useState(!ot||!Pn),or=(0,W.Z)(Zn,2),jn=or[0],an=or[1];if((0,D.Z)(function(){!jn&&Pn&&ae&&an(!0)},[jn,Pn,ae]),!jn)return null;var it="auto",xt={left:"-1000vw",top:"-1000vh",right:it,bottom:it};if(tn||!Ie){var m,B=_e.points,le=_e.dynamicInset||((m=_e._experimental)===null||m===void 0?void 0:m.dynamicInset),h=le&&B[0][1]==="r",d=le&&B[0][0]==="b";h?(xt.right=fn,xt.left=it):(xt.left=pn,xt.right=it),d?(xt.bottom=sn,xt.top=it):(xt.top=Mn,xt.bottom=it)}var O={};return Yt&&(Yt.includes("height")&&En?O.height=En:Yt.includes("minHeight")&&En&&(O.minHeight=En),Yt.includes("width")&&Lt?O.width=Lt:Yt.includes("minWidth")&&Lt&&(O.minWidth=Lt)),Ie||(O.pointerEvents="none"),K.createElement(Wt,{open:Xe||yn,getContainer:ot&&function(){return ot(ae)},autoDestroy:ke},K.createElement(ye,{prefixCls:te,open:Ie,zIndex:ht,mask:Le,motion:Fe}),K.createElement(I.Z,{onResize:Ht,disabled:!Ie},function(j){return K.createElement(We.default,(0,ge.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:Xe,leavedClassName:"".concat(te,"-hidden")},nt,{onAppearPrepare:on,onEnterPrepare:on,visible:Ie,onVisibleChanged:function(ee){var ne;nt==null||(ne=nt.onVisibleChanged)===null||ne===void 0||ne.call(nt,ee),de(ee)}}),function(be,ee){var ne=be.className,he=be.style,De=T()(te,ne,U);return K.createElement("div",{ref:(0,Ve.sQ)(j,F,ee),className:De,style:(0,x.Z)((0,x.Z)((0,x.Z)((0,x.Z)({"--arrow-x":"".concat(_.x||0,"px"),"--arrow-y":"".concat(_.y||0,"px")},xt),O),he),{},{boxSizing:"border-box",zIndex:ht},oe),onMouseEnter:Ut,onMouseLeave:At,onPointerEnter:gn,onClick:Ae},ze&&K.createElement(Re,{prefixCls:te,arrow:ze,arrowPos:_,align:_e}),K.createElement(Q,{cache:!Ie&&!xe},Tt))})}))}),f=C,b=K.forwardRef(function(M,F){var w=M.children,U=M.getTriggerDOMNode,te=(0,Ve.Yr)(w),oe=K.useCallback(function(de){(0,Ve.mH)(F,U?U(de):de)},[U]),ae=(0,Ve.x1)(oe,w.ref);return te?K.cloneElement(w,{ref:ae}):w}),P=b,q=K.createContext(null),z=q;function Ne(M){return M?Array.isArray(M)?M:[M]:[]}function ie(M,F,w,U){return K.useMemo(function(){var te=Ne(w!=null?w:F),oe=Ne(U!=null?U:F),ae=new Set(te),de=new Set(oe);return M&&(ae.has("hover")&&(ae.delete("hover"),ae.add("click")),de.has("hover")&&(de.delete("hover"),de.add("click"))),[ae,de]},[M,F,w,U])}var R=c(48886);function E(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],w=arguments.length>2?arguments[2]:void 0;return w?M[0]===F[0]:M[0]===F[0]&&M[1]===F[1]}function $(M,F,w,U){for(var te=w.points,oe=Object.keys(M),ae=0;ae<oe.length;ae+=1){var de,Ie=oe[ae];if(E((de=M[Ie])===null||de===void 0?void 0:de.points,te,U))return"".concat(F,"-placement-").concat(Ie)}return""}function Z(M,F,w,U){return F||(w?{motionName:"".concat(M,"-").concat(w)}:U?{motionName:U}:null)}function Y(M){return M.ownerDocument.defaultView}function G(M){for(var F=[],w=M==null?void 0:M.parentElement,U=["hidden","scroll","clip","auto"];w;){var te=Y(w).getComputedStyle(w),oe=te.overflowX,ae=te.overflowY,de=te.overflow;[oe,ae,de].some(function(Ie){return U.includes(Ie)})&&F.push(w),w=w.parentElement}return F}function H(M){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(M)?F:M}function V(M){return H(parseFloat(M),0)}function fe(M,F){var w=(0,x.Z)({},M);return(F||[]).forEach(function(U){if(!(U instanceof HTMLBodyElement||U instanceof HTMLHtmlElement)){var te=Y(U).getComputedStyle(U),oe=te.overflow,ae=te.overflowClipMargin,de=te.borderTopWidth,Ie=te.borderBottomWidth,we=te.borderLeftWidth,xe=te.borderRightWidth,Ae=U.getBoundingClientRect(),Le=U.offsetHeight,ze=U.clientHeight,_=U.offsetWidth,_e=U.clientWidth,nt=V(de),Fe=V(Ie),Xe=V(we),ot=V(xe),ke=H(Math.round(Ae.width/_*1e3)/1e3),Wt=H(Math.round(Ae.height/Le*1e3)/1e3),ht=(_-_e-Xe-ot)*ke,Ut=(Le-ze-nt-Fe)*Wt,At=nt*Wt,gn=Fe*Wt,tn=Xe*ke,pn=ot*ke,Mn=0,fn=0;if(oe==="clip"){var sn=V(ae);Mn=sn*ke,fn=sn*Wt}var Ht=Ae.x+tn-Mn,on=Ae.y+At-fn,Yt=Ht+Ae.width+2*Mn-tn-pn-ht,Lt=on+Ae.height+2*fn-At-gn-Ut;w.left=Math.max(w.left,Ht),w.top=Math.max(w.top,on),w.right=Math.min(w.right,Yt),w.bottom=Math.min(w.bottom,Lt)}}),w}function ue(M){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,w="".concat(F),U=w.match(/^(.*)\%$/);return U?M*(parseFloat(U[1])/100):parseFloat(w)}function Ze(M,F){var w=F||[],U=(0,W.Z)(w,2),te=U[0],oe=U[1];return[ue(M.width,te),ue(M.height,oe)]}function Ke(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[M[0],M[1]]}function Ce(M,F){var w=F[0],U=F[1],te,oe;return w==="t"?oe=M.y:w==="b"?oe=M.y+M.height:oe=M.y+M.height/2,U==="l"?te=M.x:U==="r"?te=M.x+M.width:te=M.x+M.width/2,{x:te,y:oe}}function Pe(M,F){var w={t:"b",b:"t",l:"r",r:"l"};return M.map(function(U,te){return te===F?w[U]||"c":U}).join("")}function Me(M,F,w,U,te,oe,ae){var de=K.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:te[U]||{}}),Ie=(0,W.Z)(de,2),we=Ie[0],xe=Ie[1],Ae=K.useRef(0),Le=K.useMemo(function(){return F?G(F):[]},[F]),ze=K.useRef({}),_=function(){ze.current={}};M||_();var _e=(0,p.Z)(function(){if(F&&w&&M){let mt=function(xn,On){var Jn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:De,lr=Tt.x+xn,mr=Tt.y+On,kn=lr+m,yr=mr+xt,Yr=Math.max(lr,Jn.left),oi=Math.max(mr,Jn.top),ci=Math.min(kn,Jn.right),Fr=Math.min(yr,Jn.bottom);return Math.max(0,(ci-Yr)*(Fr-oi))},pt=function(){un=Tt.y+et,cn=un+xt,nn=Tt.x+bt,Kt=nn+m};var Xe,ot,ke=F,Wt=ke.ownerDocument,ht=Y(ke),Ut=ht.getComputedStyle(ke),At=Ut.width,gn=Ut.height,tn=Ut.position,pn=ke.style.left,Mn=ke.style.top,fn=ke.style.right,sn=ke.style.bottom,Ht=ke.style.overflow,on=(0,x.Z)((0,x.Z)({},te[U]),oe),Yt=Wt.createElement("div");(Xe=ke.parentElement)===null||Xe===void 0||Xe.appendChild(Yt),Yt.style.left="".concat(ke.offsetLeft,"px"),Yt.style.top="".concat(ke.offsetTop,"px"),Yt.style.position=tn,Yt.style.height="".concat(ke.offsetHeight,"px"),Yt.style.width="".concat(ke.offsetWidth,"px"),ke.style.left="0",ke.style.top="0",ke.style.right="auto",ke.style.bottom="auto",ke.style.overflow="hidden";var Lt;if(Array.isArray(w))Lt={x:w[0],y:w[1],width:0,height:0};else{var En=w.getBoundingClientRect();Lt={x:En.x,y:En.y,width:En.width,height:En.height}}var Tt=ke.getBoundingClientRect(),yn=Wt.documentElement,Pn=yn.clientWidth,Zn=yn.clientHeight,or=yn.scrollWidth,jn=yn.scrollHeight,an=yn.scrollTop,it=yn.scrollLeft,xt=Tt.height,m=Tt.width,B=Lt.height,le=Lt.width,h={left:0,top:0,right:Pn,bottom:Zn},d={left:-it,top:-an,right:or-it,bottom:jn-an},O=on.htmlRegion,j="visible",be="visibleFirst";O!=="scroll"&&O!==be&&(O=j);var ee=O===be,ne=fe(d,Le),he=fe(h,Le),De=O===j?he:ne,Ue=ee?he:De;ke.style.left="auto",ke.style.top="auto",ke.style.right="0",ke.style.bottom="0";var A=ke.getBoundingClientRect();ke.style.left=pn,ke.style.top=Mn,ke.style.right=fn,ke.style.bottom=sn,ke.style.overflow=Ht,(ot=ke.parentElement)===null||ot===void 0||ot.removeChild(Yt);var ce=H(Math.round(m/parseFloat(At)*1e3)/1e3),Ye=H(Math.round(xt/parseFloat(gn)*1e3)/1e3);if(ce===0||Ye===0||(0,k.Sh)(w)&&!(0,R.Z)(w))return;var $e=on.offset,je=on.targetOffset,Ge=Ze(Tt,$e),wt=(0,W.Z)(Ge,2),me=wt[0],Ee=wt[1],He=Ze(Lt,je),at=(0,W.Z)(He,2),ct=at[0],yt=at[1];Lt.x-=ct,Lt.y-=yt;var Qt=on.points||[],It=(0,W.Z)(Qt,2),Bt=It[0],Jt=It[1],Ot=Ke(Jt),_t=Ke(Bt),dn=Ce(Lt,Ot),qt=Ce(Tt,_t),en=(0,x.Z)({},on),bt=dn.x-qt.x+me,et=dn.y-qt.y+Ee,zt=mt(bt,et),Mt=mt(bt,et,he),bn=Ce(Lt,["t","l"]),jt=Ce(Tt,["t","l"]),ln=Ce(Lt,["b","r"]),Sn=Ce(Tt,["b","r"]),Dt=on.overflow||{},An=Dt.adjustX,_n=Dt.adjustY,Nt=Dt.shiftX,vt=Dt.shiftY,Et=function(On){return typeof On=="boolean"?On:On>=0},un,cn,nn,Kt;pt();var mn=Et(_n),Cn=_t[0]===Ot[0];if(mn&&_t[0]==="t"&&(cn>Ue.bottom||ze.current.bt)){var Rn=et;Cn?Rn-=xt-B:Rn=bn.y-Sn.y-Ee;var rt=mt(bt,Rn),qe=mt(bt,Rn,he);rt>zt||rt===zt&&(!ee||qe>=Mt)?(ze.current.bt=!0,et=Rn,Ee=-Ee,en.points=[Pe(_t,0),Pe(Ot,0)]):ze.current.bt=!1}if(mn&&_t[0]==="b"&&(un<Ue.top||ze.current.tb)){var lt=et;Cn?lt+=xt-B:lt=ln.y-jt.y-Ee;var Vt=mt(bt,lt),Zt=mt(bt,lt,he);Vt>zt||Vt===zt&&(!ee||Zt>=Mt)?(ze.current.tb=!0,et=lt,Ee=-Ee,en.points=[Pe(_t,0),Pe(Ot,0)]):ze.current.tb=!1}var er=Et(An),ar=_t[1]===Ot[1];if(er&&_t[1]==="l"&&(Kt>Ue.right||ze.current.rl)){var Yn=bt;ar?Yn-=m-le:Yn=bn.x-Sn.x-me;var Gn=mt(Yn,et),Wn=mt(Yn,et,he);Gn>zt||Gn===zt&&(!ee||Wn>=Mt)?(ze.current.rl=!0,bt=Yn,me=-me,en.points=[Pe(_t,1),Pe(Ot,1)]):ze.current.rl=!1}if(er&&_t[1]==="r"&&(nn<Ue.left||ze.current.lr)){var $n=bt;ar?$n+=m-le:$n=ln.x-jt.x-me;var Hn=mt($n,et),Qn=mt($n,et,he);Hn>zt||Hn===zt&&(!ee||Qn>=Mt)?(ze.current.lr=!0,bt=$n,me=-me,en.points=[Pe(_t,1),Pe(Ot,1)]):ze.current.lr=!1}pt();var Fn=Nt===!0?0:Nt;typeof Fn=="number"&&(nn<he.left&&(bt-=nn-he.left-me,Lt.x+le<he.left+Fn&&(bt+=Lt.x-he.left+le-Fn)),Kt>he.right&&(bt-=Kt-he.right-me,Lt.x>he.right-Fn&&(bt+=Lt.x-he.right+Fn)));var Kn=vt===!0?0:vt;typeof Kn=="number"&&(un<he.top&&(et-=un-he.top-Ee,Lt.y+B<he.top+Kn&&(et+=Lt.y-he.top+B-Kn)),cn>he.bottom&&(et-=cn-he.bottom-Ee,Lt.y>he.bottom-Kn&&(et+=Lt.y-he.bottom+Kn)));var xr=Tt.x+bt,Mr=xr+m,vr=Tt.y+et,Br=vr+xt,tr=Lt.x,gr=tr+le,pr=Lt.y,ii=pr+B,qr=Math.max(xr,tr),_r=Math.min(Mr,gr),jr=(qr+_r)/2,ei=jr-xr,ti=Math.max(vr,pr),$r=Math.min(Br,ii),Ir=(ti+$r)/2,Xr=Ir-vr;ae==null||ae(F,en);var St=A.right-Tt.x-(bt+Tt.width),Gt=A.bottom-Tt.y-(et+Tt.height);xe({ready:!0,offsetX:bt/ce,offsetY:et/Ye,offsetR:St/ce,offsetB:Gt/Ye,arrowX:ei/ce,arrowY:Xr/Ye,scaleX:ce,scaleY:Ye,align:en})}}),nt=function(){Ae.current+=1;var ot=Ae.current;Promise.resolve().then(function(){Ae.current===ot&&_e()})},Fe=function(){xe(function(ot){return(0,x.Z)((0,x.Z)({},ot),{},{ready:!1})})};return(0,D.Z)(Fe,[U]),(0,D.Z)(function(){M||Fe()},[M]),[we.ready,we.offsetX,we.offsetY,we.offsetR,we.offsetB,we.arrowX,we.arrowY,we.scaleX,we.scaleY,we.align,nt]}var Ct=c(26390);function $t(M,F,w,U,te){(0,D.Z)(function(){if(M&&F&&w){let Ae=function(){U(),te()};var oe=F,ae=w,de=G(oe),Ie=G(ae),we=Y(ae),xe=new Set([we].concat((0,Ct.Z)(de),(0,Ct.Z)(Ie)));return xe.forEach(function(Le){Le.addEventListener("scroll",Ae,{passive:!0})}),we.addEventListener("resize",Ae,{passive:!0}),U(),function(){xe.forEach(function(Le){Le.removeEventListener("scroll",Ae),we.removeEventListener("resize",Ae)})}}},[M,F,w])}var dt=c(51395),tt=c(23073);function Rt(M,F,w,U,te,oe,ae,de){var Ie=K.useRef(M),we=K.useRef(!1);Ie.current!==M&&(we.current=!0,Ie.current=M),K.useEffect(function(){var xe=(0,tt.Z)(function(){we.current=!1});return function(){tt.Z.cancel(xe)}},[M]),K.useEffect(function(){if(F&&U&&(!te||oe)){var xe=function(){var tn=!1,pn=function(sn){var Ht=sn.target;tn=ae(Ht)},Mn=function(sn){var Ht=sn.target;!we.current&&Ie.current&&!tn&&!ae(Ht)&&de(!1)};return[pn,Mn]},Ae=xe(),Le=(0,W.Z)(Ae,2),ze=Le[0],_=Le[1],_e=xe(),nt=(0,W.Z)(_e,2),Fe=nt[0],Xe=nt[1],ot=Y(U);ot.addEventListener("mousedown",ze,!0),ot.addEventListener("click",_,!0),ot.addEventListener("contextmenu",_,!0);var ke=(0,se.A)(w);if(ke&&(ke.addEventListener("mousedown",Fe,!0),ke.addEventListener("click",Xe,!0),ke.addEventListener("contextmenu",Xe,!0)),0)var Wt,ht,Ut,At;return function(){ot.removeEventListener("mousedown",ze,!0),ot.removeEventListener("click",_,!0),ot.removeEventListener("contextmenu",_,!0),ke&&(ke.removeEventListener("mousedown",Fe,!0),ke.removeEventListener("click",Xe,!0),ke.removeEventListener("contextmenu",Xe,!0))}}},[F,w,U,te,oe])}var ut=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function kt(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:X.Z,F=K.forwardRef(function(w,U){var te=w.prefixCls,oe=te===void 0?"rc-trigger-popup":te,ae=w.children,de=w.action,Ie=de===void 0?"hover":de,we=w.showAction,xe=w.hideAction,Ae=w.popupVisible,Le=w.defaultPopupVisible,ze=w.onPopupVisibleChange,_=w.afterPopupVisibleChange,_e=w.mouseEnterDelay,nt=w.mouseLeaveDelay,Fe=nt===void 0?.1:nt,Xe=w.focusDelay,ot=w.blurDelay,ke=w.mask,Wt=w.maskClosable,ht=Wt===void 0?!0:Wt,Ut=w.getPopupContainer,At=w.forceRender,gn=w.autoDestroy,tn=w.destroyPopupOnHide,pn=w.popup,Mn=w.popupClassName,fn=w.popupStyle,sn=w.popupPlacement,Ht=w.builtinPlacements,on=Ht===void 0?{}:Ht,Yt=w.popupAlign,Lt=w.zIndex,En=w.stretch,Tt=w.getPopupClassNameFromAlign,yn=w.fresh,Pn=w.alignPoint,Zn=w.onPopupClick,or=w.onPopupAlign,jn=w.arrow,an=w.popupMotion,it=w.maskMotion,xt=w.popupTransitionName,m=w.popupAnimation,B=w.maskTransitionName,le=w.maskAnimation,h=w.className,d=w.getTriggerDOMNode,O=(0,S.Z)(w,ut),j=gn||tn||!1,be=K.useState(!1),ee=(0,W.Z)(be,2),ne=ee[0],he=ee[1];(0,D.Z)(function(){he((0,pe.Z)())},[]);var De=K.useRef({}),Ue=K.useContext(z),A=K.useMemo(function(){return{registerSubPopup:function(Xt,In){De.current[Xt]=In,Ue==null||Ue.registerSubPopup(Xt,In)}}},[Ue]),ce=(0,Se.Z)(),Ye=K.useState(null),$e=(0,W.Z)(Ye,2),je=$e[0],Ge=$e[1],wt=(0,p.Z)(function(ft){(0,k.Sh)(ft)&&je!==ft&&Ge(ft),Ue==null||Ue.registerSubPopup(ce,ft)}),me=K.useState(null),Ee=(0,W.Z)(me,2),He=Ee[0],at=Ee[1],ct=K.useRef(null),yt=(0,p.Z)(function(ft){(0,k.Sh)(ft)&&He!==ft&&(at(ft),ct.current=ft)}),Qt=K.Children.only(ae),It=(Qt==null?void 0:Qt.props)||{},Bt={},Jt=(0,p.Z)(function(ft){var Xt,In,Tn=He;return(Tn==null?void 0:Tn.contains(ft))||((Xt=(0,se.A)(Tn))===null||Xt===void 0?void 0:Xt.host)===ft||ft===Tn||(je==null?void 0:je.contains(ft))||((In=(0,se.A)(je))===null||In===void 0?void 0:In.host)===ft||ft===je||Object.values(De.current).some(function(Nn){return(Nn==null?void 0:Nn.contains(ft))||ft===Nn})}),Ot=Z(oe,an,m,xt),_t=Z(oe,it,le,B),dn=K.useState(Le||!1),qt=(0,W.Z)(dn,2),en=qt[0],bt=qt[1],et=Ae!=null?Ae:en,zt=(0,p.Z)(function(ft){Ae===void 0&&bt(ft)});(0,D.Z)(function(){bt(Ae||!1)},[Ae]);var Mt=K.useRef(et);Mt.current=et;var bn=K.useRef([]);bn.current=[];var jt=(0,p.Z)(function(ft){var Xt;zt(ft),((Xt=bn.current[bn.current.length-1])!==null&&Xt!==void 0?Xt:et)!==ft&&(bn.current.push(ft),ze==null||ze(ft))}),ln=K.useRef(),Sn=function(){clearTimeout(ln.current)},Dt=function(Xt){var In=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Sn(),In===0?jt(Xt):ln.current=setTimeout(function(){jt(Xt)},In*1e3)};K.useEffect(function(){return Sn},[]);var An=K.useState(!1),_n=(0,W.Z)(An,2),Nt=_n[0],vt=_n[1];(0,D.Z)(function(ft){(!ft||et)&&vt(!0)},[et]);var Et=K.useState(null),un=(0,W.Z)(Et,2),cn=un[0],nn=un[1],Kt=K.useState([0,0]),mn=(0,W.Z)(Kt,2),Cn=mn[0],Rn=mn[1],rt=function(Xt){Rn([Xt.clientX,Xt.clientY])},qe=Me(et,je,Pn?Cn:He,sn,on,Yt,or),lt=(0,W.Z)(qe,11),Vt=lt[0],Zt=lt[1],er=lt[2],ar=lt[3],Yn=lt[4],Gn=lt[5],Wn=lt[6],$n=lt[7],Hn=lt[8],Qn=lt[9],Fn=lt[10],Kn=ie(ne,Ie,we,xe),xr=(0,W.Z)(Kn,2),Mr=xr[0],vr=xr[1],Br=Mr.has("click"),tr=vr.has("click")||vr.has("contextMenu"),gr=(0,p.Z)(function(){Nt||Fn()}),pr=function(){Mt.current&&Pn&&tr&&Dt(!1)};$t(et,He,je,gr,pr),(0,D.Z)(function(){gr()},[Cn,sn]),(0,D.Z)(function(){et&&!(on!=null&&on[sn])&&gr()},[JSON.stringify(Yt)]);var ii=K.useMemo(function(){var ft=$(on,oe,Qn,Pn);return T()(ft,Tt==null?void 0:Tt(Qn))},[Qn,Tt,on,oe,Pn]);K.useImperativeHandle(U,function(){return{nativeElement:ct.current,forceAlign:gr}});var qr=K.useState(0),_r=(0,W.Z)(qr,2),jr=_r[0],ei=_r[1],ti=K.useState(0),$r=(0,W.Z)(ti,2),Ir=$r[0],Xr=$r[1],St=function(){if(En&&He){var Xt=He.getBoundingClientRect();ei(Xt.width),Xr(Xt.height)}},Gt=function(){St(),gr()},mt=function(Xt){vt(!1),Fn(),_==null||_(Xt)},pt=function(){return new Promise(function(Xt){St(),nn(function(){return Xt})})};(0,D.Z)(function(){cn&&(Fn(),cn(),nn(null))},[cn]);function xn(ft,Xt,In,Tn){Bt[ft]=function(Nn){var ni;Tn==null||Tn(Nn),Dt(Xt,In);for(var fi=arguments.length,Rr=new Array(fi>1?fi-1:0),Lr=1;Lr<fi;Lr++)Rr[Lr-1]=arguments[Lr];(ni=It[ft])===null||ni===void 0||ni.call.apply(ni,[It,Nn].concat(Rr))}}(Br||tr)&&(Bt.onClick=function(ft){var Xt;Mt.current&&tr?Dt(!1):!Mt.current&&Br&&(rt(ft),Dt(!0));for(var In=arguments.length,Tn=new Array(In>1?In-1:0),Nn=1;Nn<In;Nn++)Tn[Nn-1]=arguments[Nn];(Xt=It.onClick)===null||Xt===void 0||Xt.call.apply(Xt,[It,ft].concat(Tn))}),Rt(et,tr,He,je,ke,ht,Jt,Dt);var On=Mr.has("hover"),Jn=vr.has("hover"),lr,mr;On&&(xn("onMouseEnter",!0,_e,function(ft){rt(ft)}),xn("onPointerEnter",!0,_e,function(ft){rt(ft)}),lr=function(Xt){(et||Nt)&&je!==null&&je!==void 0&&je.contains(Xt.target)&&Dt(!0,_e)},Pn&&(Bt.onMouseMove=function(ft){var Xt;(Xt=It.onMouseMove)===null||Xt===void 0||Xt.call(It,ft)})),Jn&&(xn("onMouseLeave",!1,Fe),xn("onPointerLeave",!1,Fe),mr=function(){Dt(!1,Fe)}),Mr.has("focus")&&xn("onFocus",!0,Xe),vr.has("focus")&&xn("onBlur",!1,ot),Mr.has("contextMenu")&&(Bt.onContextMenu=function(ft){var Xt;Mt.current&&vr.has("contextMenu")?Dt(!1):(rt(ft),Dt(!0)),ft.preventDefault();for(var In=arguments.length,Tn=new Array(In>1?In-1:0),Nn=1;Nn<In;Nn++)Tn[Nn-1]=arguments[Nn];(Xt=It.onContextMenu)===null||Xt===void 0||Xt.call.apply(Xt,[It,ft].concat(Tn))}),h&&(Bt.className=T()(It.className,h));var kn=(0,x.Z)((0,x.Z)({},It),Bt),yr={},Yr=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Yr.forEach(function(ft){O[ft]&&(yr[ft]=function(){for(var Xt,In=arguments.length,Tn=new Array(In),Nn=0;Nn<In;Nn++)Tn[Nn]=arguments[Nn];(Xt=kn[ft])===null||Xt===void 0||Xt.call.apply(Xt,[kn].concat(Tn)),O[ft].apply(O,Tn)})});var oi=K.cloneElement(Qt,(0,x.Z)((0,x.Z)({},kn),yr)),ci={x:Gn,y:Wn},Fr=jn?(0,x.Z)({},jn!==!0?jn:{}):null;return K.createElement(K.Fragment,null,K.createElement(I.Z,{disabled:!et,ref:yt,onResize:Gt},K.createElement(P,{getTriggerDOMNode:d},oi)),K.createElement(z.Provider,{value:A},K.createElement(f,{portal:M,ref:wt,prefixCls:oe,popup:pn,className:T()(Mn,ii),style:fn,target:He,onMouseEnter:lr,onMouseLeave:mr,onPointerEnter:lr,zIndex:Lt,open:et,keepDom:Nt,fresh:yn,onClick:Zn,mask:ke,motion:Ot,maskMotion:_t,onVisibleChanged:mt,onPrepare:pt,forceRender:At,autoDestroy:j,getPopupContainer:Ut,align:Qn,arrow:Fr,arrowPos:ci,ready:Vt,offsetX:Zt,offsetY:er,offsetR:ar,offsetB:Yn,onAlign:gr,stretch:En,targetWidth:jr/$n,targetHeight:Ir/Hn})))});return F}var J=kt(X.Z)},79906:function(){"use strict"},23744:function(rn,Te,c){"use strict";c.d(Te,{t:function(){return D}});var x=c(59301),W=c(3113),S={buttonFixed:"buttonFixed___vyq30",button:"button___hxmYv",buttonWrap:"buttonWrap___uK8dl"},X=c(92310),v=c.n(X),T=Object.defineProperty,I=Object.getOwnPropertySymbols,k=Object.prototype.hasOwnProperty,se=Object.prototype.propertyIsEnumerable,p=(pe,K,ge)=>K in pe?T(pe,K,{enumerable:!0,configurable:!0,writable:!0,value:ge}):pe[K]=ge,Se=(pe,K)=>{for(var ge in K||(K={}))k.call(K,ge)&&p(pe,ge,K[ge]);if(I)for(var ge of I(K))se.call(K,ge)&&p(pe,ge,K[ge]);return pe};const D=({cancelText:pe="\u53D6\u6D88",okText:K="\u786E\u5B9A",loading:ge=!1,hasOkBtn:We=!0,hasCancelBtn:Ve=!0,okButtonProps:Re={},onCancel:ye=()=>{},onOk:re=()=>{},className:Q=""})=>x.createElement("div",{className:v()(S.buttonFixed,Q)},x.createElement("div",{className:S.buttonWrap},Ve&&x.createElement(W.ZP,{size:"middle",className:`${S.button} mr20`,onClick:ye},pe),We&&x.createElement(W.ZP,Se({size:"middle",type:"primary",className:`${S.button} mr20`,loading:ge,onClick:re},Re),K)))},36866:function(rn,Te,c){"use strict";c.d(Te,{h:function(){return Q},Z:function(){return re}});var x=c(59301),W=c(57809),S=c(78241),X=c(3113),v=c(89780),T=c.n(v),I=c(79906),k=Object.defineProperty,se=Object.defineProperties,p=Object.getOwnPropertyDescriptors,Se=Object.getOwnPropertySymbols,D=Object.prototype.hasOwnProperty,pe=Object.prototype.propertyIsEnumerable,K=(C,f,b)=>f in C?k(C,f,{enumerable:!0,configurable:!0,writable:!0,value:b}):C[f]=b,ge=(C,f)=>{for(var b in f||(f={}))D.call(f,b)&&K(C,b,f[b]);if(Se)for(var b of Se(f))pe.call(f,b)&&K(C,b,f[b]);return C},We=(C,f)=>se(C,p(f));const Ve=W.default.Option,Re={labelCol:{span:4},wrapperCol:{span:20}},ye={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};var re=({callback:C,onCancel:f})=>{const[b,P]=(0,x.useState)("python");function q(Ne){P(ye[Ne][1])}function z(Ne){C(Ne)}return x.createElement(S.default,We(ge({},Re),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:z,style:{width:500}}),x.createElement(S.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},x.createElement(W.default,{getPopupContainer:Ne=>Ne.parentNode,onChange:q},Object.keys(ye).map(Ne=>x.createElement(Ve,{key:Ne,value:Ne},ye[Ne][0])))),x.createElement(S.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},x.createElement(Q,{mode:b})),x.createElement("div",{className:"flex-container flex-end"},x.createElement(X.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),x.createElement(X.ZP,{type:"ghost",onClick:f},"\u53D6\u6D88")))};function Q({value:C,onChange:f,mode:b,options:P={}}){const q=(0,x.useRef)(),[z,Ne]=(0,x.useState)();return(0,x.useEffect)(()=>{if(z){let ie=function(R){const E=R.getValue();f&&f(E)};return z.on("change",ie),()=>{z.off("change",ie)}}},[z,f]),(0,x.useEffect)(()=>{z&&z.setOption("mode",b)},[z,b]),(0,x.useEffect)(()=>{z&&(C!==z.getValue()||C==="")&&setTimeout(()=>{z.setValue(C||"")},300)},[z,C]),(0,x.useEffect)(()=>{if(q.current&&!z){const ie=T().fromTextArea(q.current,ge({mode:b,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},P));Ne(ie)}},[q.current,z]),x.createElement("div",{className:"my-codemirror-container"},x.createElement("textarea",{ref:q}))}},83540:function(rn,Te,c){"use strict";c.r(Te),c.d(Te,{default:function(){return Ve}});var x=c(59301),W=c(42203),S=c(78241),X=c(92832),v=c(36866),T=c(23744),I={bg:"bg___YV4bB",wrap:"wrap___kzW1f",title:"title___qum64",path:"path___G15kO",colorBlue:"colorBlue___LDjoN",width240:"width240___QOLSj"},k=Object.defineProperty,se=Object.getOwnPropertySymbols,p=Object.prototype.hasOwnProperty,Se=Object.prototype.propertyIsEnumerable,D=(Re,ye,re)=>ye in Re?k(Re,ye,{enumerable:!0,configurable:!0,writable:!0,value:re}):Re[ye]=re,pe=(Re,ye)=>{for(var re in ye||(ye={}))p.call(ye,re)&&D(Re,re,ye[re]);if(se)for(var re of se(ye))Se.call(ye,re)&&D(Re,re,ye[re]);return Re},K=(Re,ye)=>{var re={};for(var Q in Re)p.call(Re,Q)&&ye.indexOf(Q)<0&&(re[Q]=Re[Q]);if(Re!=null&&se)for(var Q of se(Re))ye.indexOf(Q)<0&&Se.call(Re,Q)&&(re[Q]=Re[Q]);return re},ge=(Re,ye,re)=>new Promise((Q,C)=>{var f=q=>{try{P(re.next(q))}catch(z){C(z)}},b=q=>{try{P(re.throw(q))}catch(z){C(z)}},P=q=>q.done?Q(q.value):Promise.resolve(q.value).then(f,b);P((re=re.apply(Re,ye)).next())});const We=Re=>{var ye=Re,{shixunsDetail:re,globalSetting:Q,loading:C,user:f,dispatch:b}=ye,P=K(ye,["shixunsDetail","globalSetting","loading","user","dispatch"]);const q=(0,W.useLocation)(),[z,Ne]=(0,x.useState)({}),ie=(0,x.useRef)(),R=(0,x.useRef)(),[E]=S.default.useForm(),[$,Z]=(0,x.useState)("");(0,x.useEffect)(()=>(b({type:"globalSetting/footerToggle",payload:!1}),()=>{b({type:"globalSetting/footerToggle",payload:!0})}),[]),(0,x.useEffect)(()=>{const H=sessionStorage.getItem("pathArray");if(H){const V=H.split(",").join("/"),fe=V.indexOf("/")===0?V.substr(1):V;Z(fe)}},[]),(0,x.useEffect)(()=>{var H,V,fe,ue;R.current=(V=(H=q.pathname)==null?void 0:H.split("/"))==null?void 0:V[2],ie.current=((ue=(fe=q.pathname)==null?void 0:fe.split("/"))==null?void 0:ue[3])==="repository"},[]);const Y=(...H)=>ge(void 0,[...H],function*(V={}){if(yield b({type:"shixunsDetail/addRepositoryFile",payload:{id:R.current,message:V.commitMessage,content:V.codeMirror,path:`${$?`${$}/`:""}${V.path||""}`,secret_repository:ie.current?void 0:!0}})){const ue=ie.current?`/shixuns/${R.current}/repository${$?`/master/shixun_show/${$}`:""}`:`/shixuns/${R.current}/secret_repository`;W.history.replace(ue)}}),G=()=>{var H,V;W.history.push(`/shixuns/${R.current}/${(V=(H=q.pathname)==null?void 0:H.split("/"))==null?void 0:V[3]}${$?`/master/shixun_show/${$}`:""}`)};return x.createElement("section",{className:I.bg},x.createElement("div",{className:I.wrap},x.createElement("div",{className:I.title},"\u65B0\u5EFA\u6587\u4EF6"),x.createElement(S.default,{className:"mt10",form:E,scrollToFirstError:!0,layout:"vertical",onFinish:Y,onValuesChange:()=>Ne(pe({},E.getFieldsValue()))},x.createElement(S.default.Item,{label:"\u6587\u4EF6\u540D\u79F0\u6216\u6587\u4EF6\u8DEF\u5F84\uFF1A"},x.createElement(S.default.Item,{name:"path",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D\u79F0\u6216\u6587\u4EF6\u8DEF\u5F84"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}],noStyle:!0},x.createElement("span",null,x.createElement("span",{className:"mr5"},$?`${$}/`:""),x.createElement(X.default,{className:I.width240,placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D\u79F0\u6216\u6587\u4EF6\u8DEF\u5F84"}))),x.createElement("span",{className:"ml5"},"\u63D0\u793A\uFF1A1.\u8F93\u5165\u6587\u4EF6\u540D\u53EF\u4EE5\u521B\u5EFA\u4E00\u4E2A\u65B0\u6587\u4EF6\uFF1B2.\u8F93\u5165\u65B0\u6587\u4EF6\u5939\u540D/\u65B0\u6587\u4EF6\u540D\u53EF\u4EE5\u521B\u5EFA\u65B0\u6587\u4EF6\u5939\u548C\u65B0\u6587\u4EF6\u3002\uFF08\u5982\uFF1Astep1/HelloWorld.java\uFF09")),x.createElement(S.default.Item,{label:"\u63D0\u4EA4\u4FE1\u606F\uFF1A",name:"commitMessage",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u63D0\u4EA4\u4FE1\u606F"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},x.createElement(X.default,{placeholder:"\u8BF7\u8F93\u5165\u672C\u6B21\u63D0\u4EA4\u7684\u4E3B\u8981\u4FE1\u606F\uFF0C\u5408\u7406\u7684\u63CF\u8FF0\u4FE1\u606F\u6709\u5229\u4E8E\u4EE3\u7801\u5386\u53F2\u8BB0\u5F55\u7684\u7BA1\u7406"})),x.createElement("div",{className:"mt10 mb20"},x.createElement(S.default.Item,{name:"codeMirror",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5185\u5BB9"}]},x.createElement(v.h,{options:{modal:"javascript",lineNumbers:!0,theme:"railscasts",indentUnit:4,matchBrackets:!0,autoRefresh:!0,smartIndent:!0,extraKeys:{"Alt-/":"autocomplete"},autofocus:!0,styleActiveLine:!0,lint:!0,linkurl:"",gutters:["CodeMirror-linenumbers","breakpoints","CodeMirror-lint-markers"]}}))),x.createElement(S.default.Item,{noStyle:!0},x.createElement(T.t,{okButtonProps:{htmlType:"submit"},onCancel:G})))))};var Ve=(0,W.connect)(({shixunsDetail:Re,loading:ye,globalSetting:re,user:Q})=>({shixunsDetail:Re,globalSetting:re,user:Q,loading:ye.models.index}))(We)},36785:function(rn,Te,c){"use strict";c.d(Te,{o2:function(){return v},yT:function(){return T}});var x=c(26390),W=c(33166);const S=W.i.map(I=>`${I}-inverse`),X=["success","processing","error","default","warning"];function v(I){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat((0,x.Z)(S),(0,x.Z)(W.i)).includes(I):W.i.includes(I)}function T(I){return X.includes(I)}},79676:function(rn,Te,c){"use strict";c.d(Te,{Z:function(){return T}});var x=c(19447);function W(I,k,se,p){if(p===!1)return{adjustX:!1,adjustY:!1};const Se=p&&typeof p=="object"?p:{},D={};switch(I){case"top":case"bottom":D.shiftX=k.dropdownArrowOffset*2+se;break;case"left":case"right":D.shiftY=k.dropdownArrowOffsetVertical*2+se;break}const pe=Object.assign(Object.assign({},D),Se);return pe.shiftX||(pe.adjustX=!0),pe.shiftY||(pe.adjustY=!0),pe}const S={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},X={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},v=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function T(I){const{arrowWidth:k,autoAdjustOverflow:se,arrowPointAtCenter:p,offset:Se,borderRadius:D,visibleFirst:pe}=I,K=k/2,ge={};return Object.keys(S).forEach(We=>{const Ve=p&&X[We]||S[We],Re=Object.assign(Object.assign({},Ve),{offset:[0,0]});switch(ge[We]=Re,v.has(We)&&(Re.autoArrow=!1),We){case"top":case"topLeft":case"topRight":Re.offset[1]=-K-Se;break;case"bottom":case"bottomLeft":case"bottomRight":Re.offset[1]=K+Se;break;case"left":case"leftTop":case"leftBottom":Re.offset[0]=-K-Se;break;case"right":case"rightTop":case"rightBottom":Re.offset[0]=K+Se;break}const ye=(0,x.fS)({contentRadius:D,limitVerticalRadius:!0});if(p)switch(We){case"topLeft":case"bottomLeft":Re.offset[0]=-ye.dropdownArrowOffset-K;break;case"topRight":case"bottomRight":Re.offset[0]=ye.dropdownArrowOffset+K;break;case"leftTop":case"rightTop":Re.offset[1]=-ye.dropdownArrowOffset-K;break;case"leftBottom":case"rightBottom":Re.offset[1]=ye.dropdownArrowOffset+K;break}Re.overflow=W(We,ye,k,se),pe&&(Re.htmlRegion="visibleFirst")}),ge}},19080:function(rn,Te,c){"use strict";c.d(Te,{F:function(){return v},Z:function(){return X}});var x=c(92310),W=c.n(x);const S=null;function X(T,I,k){return W()({[`${T}-status-success`]:I==="success",[`${T}-status-warning`]:I==="warning",[`${T}-status-error`]:I==="error",[`${T}-status-validating`]:I==="validating",[`${T}-has-feedback`]:k})}const v=(T,I)=>I||T},93891:function(rn,Te,c){"use strict";var x=c(59301),W=c(36355),S=c(64165);const X=v=>{const{componentName:T}=v,{getPrefixCls:I}=(0,x.useContext)(W.E_),k=I("empty");switch(T){case"Table":case"List":return x.createElement(S.Z,{image:S.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return x.createElement(S.Z,{image:S.Z.PRESENTED_IMAGE_SIMPLE,className:`${k}-small`});default:return x.createElement(S.Z,null)}};Te.Z=X},64165:function(rn,Te,c){"use strict";c.d(Te,{Z:function(){return re}});var x=c(92310),W=c.n(x),S=c(59301),X=c(36355),v=c(9763),T=c(64993),I=c(88088),se=()=>{const[,Q]=(0,I.Z)(),f=new T.C(Q.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return S.createElement("svg",{style:f,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},S.createElement("g",{fill:"none",fillRule:"evenodd"},S.createElement("g",{transform:"translate(24 31.67)"},S.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),S.createElement("path",{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",fill:"#AEB8C2"}),S.createElement("path",{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",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),S.createElement("path",{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",fill:"#F5F5F7"}),S.createElement("path",{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",fill:"#DCE0E6"})),S.createElement("path",{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",fill:"#DCE0E6"}),S.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},S.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),S.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},Se=()=>{const[,Q]=(0,I.Z)(),{colorFill:C,colorFillTertiary:f,colorFillQuaternary:b,colorBgContainer:P}=Q,{borderColor:q,shadowColor:z,contentColor:Ne}=(0,S.useMemo)(()=>({borderColor:new T.C(C).onBackground(P).toHexShortString(),shadowColor:new T.C(f).onBackground(P).toHexShortString(),contentColor:new T.C(b).onBackground(P).toHexShortString()}),[C,f,b,P]);return S.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},S.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},S.createElement("ellipse",{fill:z,cx:"32",cy:"33",rx:"32",ry:"7"}),S.createElement("g",{fillRule:"nonzero",stroke:q},S.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"}),S.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",fill:Ne}))))},D=c(83116),pe=c(37613);const K=Q=>{const{componentCls:C,margin:f,marginXS:b,marginXL:P,fontSize:q,lineHeight:z}=Q;return{[C]:{marginInline:b,fontSize:q,lineHeight:z,textAlign:"center",[`${C}-image`]:{height:Q.emptyImgHeight,marginBottom:b,opacity:Q.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${C}-description`]:{color:Q.colorText},[`${C}-footer`]:{marginTop:f},"&-normal":{marginBlock:P,color:Q.colorTextDisabled,[`${C}-description`]:{color:Q.colorTextDisabled},[`${C}-image`]:{height:Q.emptyImgHeightMD}},"&-small":{marginBlock:b,color:Q.colorTextDisabled,[`${C}-image`]:{height:Q.emptyImgHeightSM}}}}};var ge=(0,D.Z)("Empty",Q=>{const{componentCls:C,controlHeightLG:f}=Q,b=(0,pe.TS)(Q,{emptyImgCls:`${C}-img`,emptyImgHeight:f*2.5,emptyImgHeightMD:f,emptyImgHeightSM:f*.875});return[K(b)]}),We=function(Q,C){var f={};for(var b in Q)Object.prototype.hasOwnProperty.call(Q,b)&&C.indexOf(b)<0&&(f[b]=Q[b]);if(Q!=null&&typeof Object.getOwnPropertySymbols=="function")for(var P=0,b=Object.getOwnPropertySymbols(Q);P<b.length;P++)C.indexOf(b[P])<0&&Object.prototype.propertyIsEnumerable.call(Q,b[P])&&(f[b[P]]=Q[b[P]]);return f};const Ve=S.createElement(se,null),Re=S.createElement(Se,null),ye=Q=>{var{className:C,rootClassName:f,prefixCls:b,image:P=Ve,description:q,children:z,imageStyle:Ne,style:ie}=Q,R=We(Q,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:E,direction:$,empty:Z}=S.useContext(X.E_),Y=E("empty",b),[G,H]=ge(Y),[V]=(0,v.Z)("Empty"),fe=typeof q!="undefined"?q:V==null?void 0:V.description,ue=typeof fe=="string"?fe:"empty";let Ze=null;return typeof P=="string"?Ze=S.createElement("img",{alt:ue,src:P}):Ze=P,G(S.createElement("div",Object.assign({className:W()(H,Y,Z==null?void 0:Z.className,{[`${Y}-normal`]:P===Re,[`${Y}-rtl`]:$==="rtl"},C,f),style:Object.assign(Object.assign({},Z==null?void 0:Z.style),ie)},R),S.createElement("div",{className:`${Y}-image`,style:Ne},Ze),fe&&S.createElement("div",{className:`${Y}-description`},fe),z&&S.createElement("div",{className:`${Y}-footer`},z)))};ye.PRESENTED_IMAGE_DEFAULT=Ve,ye.PRESENTED_IMAGE_SIMPLE=Re;var re=ye},78241:function(rn,Te,c){"use strict";c.d(Te,{default:function(){return xt}});var x=c(26390),W=c(92310),S=c.n(W),X=c(43469),v=c(59301),T=c(62892),I=c(32441);function k(m){const[B,le]=v.useState(m);return v.useEffect(()=>{const h=setTimeout(()=>{le(m)},m.length?0:10);return()=>{clearTimeout(h)}},[m]),B}var se=c(17313),p=c(29878),Se=c(8378),D=c(37613),pe=c(83116),ge=m=>{const{componentCls:B}=m,le=`${B}-show-help`,h=`${B}-show-help-item`;return{[le]:{transition:`opacity ${m.motionDurationSlow} ${m.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[h]:{overflow:"hidden",transition:`height ${m.motionDurationSlow} ${m.motionEaseInOut},
opacity ${m.motionDurationSlow} ${m.motionEaseInOut},
transform ${m.motionDurationSlow} ${m.motionEaseInOut} !important`,[`&${h}-appear, &${h}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${h}-leave-active`]:{transform:"translateY(-5px)"}}}}};const We=m=>({legend:{display:"block",width:"100%",marginBottom:m.marginLG,padding:0,color:m.colorTextDescription,fontSize:m.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${m.lineWidth}px ${m.lineType} ${m.colorBorder}`},label:{fontSize:m.fontSize},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${m.controlOutlineWidth}px ${m.controlOutline}`},output:{display:"block",paddingTop:15,color:m.colorText,fontSize:m.fontSize,lineHeight:m.lineHeight}}),Ve=(m,B)=>{const{formItemCls:le}=m;return{[le]:{[`${le}-label > label`]:{height:B},[`${le}-control-input`]:{minHeight:B}}}},Re=m=>{const{componentCls:B}=m;return{[m.componentCls]:Object.assign(Object.assign(Object.assign({},(0,se.Wf)(m)),We(m)),{[`${B}-text`]:{display:"inline-block",paddingInlineEnd:m.paddingSM},"&-small":Object.assign({},Ve(m,m.controlHeightSM)),"&-large":Object.assign({},Ve(m,m.controlHeightLG))})}},ye=m=>{const{formItemCls:B,iconCls:le,componentCls:h,rootPrefixCls:d,labelRequiredMarkColor:O,labelColor:j,labelFontSize:be,labelHeight:ee,labelColonMarginInlineStart:ne,labelColonMarginInlineEnd:he,itemMarginBottom:De}=m;return{[B]:Object.assign(Object.assign({},(0,se.Wf)(m)),{marginBottom:De,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
&-hidden.${d}-row`]:{display:"none"},"&-has-warning":{[`${B}-split`]:{color:m.colorError}},"&-has-error":{[`${B}-split`]:{color:m.colorWarning}},[`${B}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${m.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:ee,color:j,fontSize:be,[`> ${le}`]:{fontSize:m.fontSize,verticalAlign:"top"},[`&${B}-required:not(${B}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:m.marginXXS,color:O,fontSize:m.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${h}-hide-required-mark &`]:{display:"none"}},[`${B}-optional`]:{display:"inline-block",marginInlineStart:m.marginXXS,color:m.colorTextDescription,[`${h}-hide-required-mark &`]:{display:"none"}},[`${B}-tooltip`]:{color:m.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:m.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:ne,marginInlineEnd:he},[`&${B}-no-colon::after`]:{content:'"\\a0"'}}},[`${B}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${d}-col-'"]):not([class*="' ${d}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:m.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[B]:{"&-explain, &-extra":{clear:"both",color:m.colorTextDescription,fontSize:m.fontSize,lineHeight:m.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:m.controlHeightSM,transition:`color ${m.motionDurationMid} ${m.motionEaseOut}`},"&-explain":{"&-error":{color:m.colorError},"&-warning":{color:m.colorWarning}}},[`&-with-help ${B}-explain`]:{height:"auto",opacity:1},[`${B}-feedback-icon`]:{fontSize:m.fontSize,textAlign:"center",visibility:"visible",animationName:p.kr,animationDuration:m.motionDurationMid,animationTimingFunction:m.motionEaseOutBack,pointerEvents:"none","&-success":{color:m.colorSuccess},"&-error":{color:m.colorError},"&-warning":{color:m.colorWarning},"&-validating":{color:m.colorPrimary}}})}},re=m=>{const{componentCls:B,formItemCls:le}=m;return{[`${B}-horizontal`]:{[`${le}-label`]:{flexGrow:0},[`${le}-control`]:{flex:"1 1 0",minWidth:0},[`${le}-label[class$='-24'], ${le}-label[class*='-24 ']`]:{[`& + ${le}-control`]:{minWidth:"unset"}}}}},Q=m=>{const{componentCls:B,formItemCls:le}=m;return{[`${B}-inline`]:{display:"flex",flexWrap:"wrap",[le]:{flex:"none",marginInlineEnd:m.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${le}-label,
> ${le}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${le}-label`]:{flex:"none"},[`${B}-text`]:{display:"inline-block"},[`${le}-has-feedback`]:{display:"inline-block"}}}}},C=m=>({padding:m.verticalLabelPadding,margin:m.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),f=m=>{const{componentCls:B,formItemCls:le,rootPrefixCls:h}=m;return{[`${le} ${le}-label`]:C(m),[B]:{[le]:{flexWrap:"wrap",[`${le}-label, ${le}-control`]:{[`&:not([class*=" ${h}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},b=m=>{const{componentCls:B,formItemCls:le,rootPrefixCls:h}=m;return{[`${B}-vertical`]:{[le]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${B}-item-control`]:{width:"100%"}}},[`${B}-vertical ${le}-label,
.${h}-col-24${le}-label,
.${h}-col-xl-24${le}-label`]:C(m),[`@media (max-width: ${m.screenXSMax}px)`]:[f(m),{[B]:{[`.${h}-col-xs-24${le}-label`]:C(m)}}],[`@media (max-width: ${m.screenSMMax}px)`]:{[B]:{[`.${h}-col-sm-24${le}-label`]:C(m)}},[`@media (max-width: ${m.screenMDMax}px)`]:{[B]:{[`.${h}-col-md-24${le}-label`]:C(m)}},[`@media (max-width: ${m.screenLGMax}px)`]:{[B]:{[`.${h}-col-lg-24${le}-label`]:C(m)}}}},P=(m,B)=>(0,D.TS)(m,{formItemCls:`${m.componentCls}-item`,rootPrefixCls:B});var q=(0,pe.Z)("Form",(m,B)=>{let{rootPrefixCls:le}=B;const h=P(m,le);return[Re(h),ye(h),ge(h),re(h),Q(h),b(h),(0,Se.Z)(h),p.kr]},m=>({labelRequiredMarkColor:m.colorError,labelColor:m.colorTextHeading,labelFontSize:m.fontSize,labelHeight:m.controlHeight,labelColonMarginInlineStart:m.marginXXS/2,labelColonMarginInlineEnd:m.marginXS,itemMarginBottom:m.marginLG,verticalLabelPadding:`0 0 ${m.paddingXS}px`,verticalLabelMargin:0}),{order:-1e3});const z=[];function Ne(m,B,le){let h=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof m=="string"?m:`${B}-${h}`,error:m,errorStatus:le}}var R=m=>{let{help:B,helpStatus:le,errors:h=z,warnings:d=z,className:O,fieldId:j,onVisibleChanged:be}=m;const{prefixCls:ee}=v.useContext(I.Rk),ne=`${ee}-item-explain`,[,he]=q(ee),De=(0,v.useMemo)(()=>(0,T.Z)(ee),[ee]),Ue=k(h),A=k(d),ce=v.useMemo(()=>B!=null?[Ne(B,"help",le)]:[].concat((0,x.Z)(Ue.map(($e,je)=>Ne($e,"error","error",je))),(0,x.Z)(A.map(($e,je)=>Ne($e,"warning","warning",je)))),[B,le,Ue,A]),Ye={};return j&&(Ye.id=`${j}_help`),v.createElement(X.default,{motionDeadline:De.motionDeadline,motionName:`${ee}-show-help`,visible:!!ce.length,onVisibleChanged:be},$e=>{const{className:je,style:Ge}=$e;return v.createElement("div",Object.assign({},Ye,{className:S()(ne,je,O,he),style:Ge,role:"alert"}),v.createElement(X.CSSMotionList,Object.assign({keys:ce},(0,T.Z)(ee),{motionName:`${ee}-show-help-item`,component:!1}),wt=>{const{key:me,error:Ee,errorStatus:He,className:at,style:ct}=wt;return v.createElement("div",{key:me,className:S()(at,{[`${ne}-${He}`]:He}),style:ct},Ee)}))})},E=c(95013),$=c(36355),Z=c(1684),Y=c(52946),G=c(19716),H=c(16722);const V=["parentNode"],fe="form_item";function ue(m){return m===void 0||m===!1?[]:Array.isArray(m)?m:[m]}function Ze(m,B){if(!m.length)return;const le=m.join("_");return B?`${B}_${le}`:V.includes(le)?`${fe}_${le}`:le}function Ke(m,B,le,h,d,O){let j=h;return O!==void 0?j=O:le.validating?j="validating":m.length?j="error":B.length?j="warning":(le.touched||d&&le.validated)&&(j="success"),j}function Ce(m){return ue(m).join("_")}function Pe(m){const[B]=(0,E.useForm)(),le=v.useRef({}),h=v.useMemo(()=>m!=null?m:Object.assign(Object.assign({},B),{__INTERNAL__:{itemRef:d=>O=>{const j=Ce(d);O?le.current[j]=O:delete le.current[j]}},scrollToField:function(d){let O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const j=ue(d),be=Ze(j,h.__INTERNAL__.name),ee=be?document.getElementById(be):null;ee&&(0,H.Z)(ee,Object.assign({scrollMode:"if-needed",block:"nearest"},O))},getFieldInstance:d=>{const O=Ce(d);return le.current[O]}}),[m,B]);return[h]}var Me=c(28726),Ct=function(m,B){var le={};for(var h in m)Object.prototype.hasOwnProperty.call(m,h)&&B.indexOf(h)<0&&(le[h]=m[h]);if(m!=null&&typeof Object.getOwnPropertySymbols=="function")for(var d=0,h=Object.getOwnPropertySymbols(m);d<h.length;d++)B.indexOf(h[d])<0&&Object.prototype.propertyIsEnumerable.call(m,h[d])&&(le[h[d]]=m[h[d]]);return le};const $t=(m,B)=>{const le=v.useContext(Z.Z),{getPrefixCls:h,direction:d,form:O}=v.useContext($.E_),{prefixCls:j,className:be,rootClassName:ee,size:ne,disabled:he=le,form:De,colon:Ue,labelAlign:A,labelWrap:ce,labelCol:Ye,wrapperCol:$e,hideRequiredMark:je,layout:Ge="horizontal",scrollToFirstError:wt,requiredMark:me,onFinishFailed:Ee,name:He,style:at,feedbackIcons:ct}=m,yt=Ct(m,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),Qt=(0,G.Z)(ne),It=v.useContext(Me.Z),Bt=(0,v.useMemo)(()=>me!==void 0?me:O&&O.requiredMark!==void 0?O.requiredMark:!je,[je,me,O]),Jt=Ue!=null?Ue:O==null?void 0:O.colon,Ot=h("form",j),[_t,dn]=q(Ot),qt=S()(Ot,`${Ot}-${Ge}`,{[`${Ot}-hide-required-mark`]:Bt===!1,[`${Ot}-rtl`]:d==="rtl",[`${Ot}-${Qt}`]:Qt},dn,O==null?void 0:O.className,be,ee),[en]=Pe(De),{__INTERNAL__:bt}=en;bt.name=He;const et=(0,v.useMemo)(()=>({name:He,labelAlign:A,labelCol:Ye,labelWrap:ce,wrapperCol:$e,vertical:Ge==="vertical",colon:Jt,requiredMark:Bt,itemRef:bt.itemRef,form:en,feedbackIcons:ct}),[He,A,Ye,$e,Ge,Jt,Bt,en,ct]);v.useImperativeHandle(B,()=>en);const zt=(bn,jt)=>{if(bn){let ln={block:"nearest"};typeof bn=="object"&&(ln=bn),en.scrollToField(jt,ln)}},Mt=bn=>{if(Ee==null||Ee(bn),bn.errorFields.length){const jt=bn.errorFields[0].name;if(wt!==void 0){zt(wt,jt);return}O&&O.scrollToFirstError!==void 0&&zt(O.scrollToFirstError,jt)}};return _t(v.createElement(Z.n,{disabled:he},v.createElement(Y.q,{size:Qt},v.createElement(I.RV,Object.assign({},{validateMessages:It}),v.createElement(I.q3.Provider,{value:et},v.createElement(E.default,Object.assign({id:He},yt,{name:He,onFinishFailed:Mt,form:en,style:Object.assign(Object.assign({},O==null?void 0:O.style),at),className:qt})))))))};var tt=v.forwardRef($t),Rt=c(12383),ut=c(20475),kt=c(92343),J=c(38298);function M(m){if(typeof m=="function")return m;const B=(0,J.Z)(m);return B.length<=1?B[0]:B}const F=()=>{const{status:m,errors:B=[],warnings:le=[]}=(0,v.useContext)(I.aM);return{status:m,errors:B,warnings:le}};F.Context=I.aM;var w=F,U=c(23073);function te(m){const[B,le]=v.useState(m),h=(0,v.useRef)(null),d=(0,v.useRef)([]),O=(0,v.useRef)(!1);v.useEffect(()=>(O.current=!1,()=>{O.current=!0,U.Z.cancel(h.current),h.current=null}),[]);function j(be){O.current||(h.current===null&&(d.current=[],h.current=(0,U.Z)(()=>{h.current=null,le(ee=>{let ne=ee;return d.current.forEach(he=>{ne=he(ne)}),ne})})),d.current.push(be))}return[B,j]}function oe(){const{itemRef:m}=v.useContext(I.q3),B=v.useRef({});function le(h,d){const O=d&&typeof d=="object"&&d.ref,j=h.join("_");return(B.current.name!==j||B.current.originRef!==O)&&(B.current.name=j,B.current.originRef=O,B.current.ref=(0,ut.sQ)(m(h),O)),B.current.ref}return le}var ae=c(48886),de=c(28800),Ie=c(64002),we=c(27382),xe=c(37028);const Ae=m=>{const{formItemCls:B}=m;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${B}-control`]:{display:"flex"}}}};var Le=(0,pe.b)(["Form","item-item"],(m,B)=>{let{rootPrefixCls:le}=B;const h=P(m,le);return[Ae(h)]}),_=m=>{const{prefixCls:B,status:le,wrapperCol:h,children:d,errors:O,warnings:j,_internalItemRender:be,extra:ee,help:ne,fieldId:he,marginBottom:De,onErrorVisibleChanged:Ue}=m,A=`${B}-item`,ce=v.useContext(I.q3),Ye=h||ce.wrapperCol||{},$e=S()(`${A}-control`,Ye.className),je=v.useMemo(()=>Object.assign({},ce),[ce]);delete je.labelCol,delete je.wrapperCol;const Ge=v.createElement("div",{className:`${A}-control-input`},v.createElement("div",{className:`${A}-control-input-content`},d)),wt=v.useMemo(()=>({prefixCls:B,status:le}),[B,le]),me=De!==null||O.length||j.length?v.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},v.createElement(I.Rk.Provider,{value:wt},v.createElement(R,{fieldId:he,errors:O,warnings:j,help:ne,helpStatus:le,className:`${A}-explain-connected`,onVisibleChanged:Ue})),!!De&&v.createElement("div",{style:{width:0,height:De}})):null,Ee={};he&&(Ee.id=`${he}_extra`);const He=ee?v.createElement("div",Object.assign({},Ee,{className:`${A}-extra`}),ee):null,at=be&&be.mark==="pro_table_render"&&be.render?be.render(m,{input:Ge,errorList:me,extra:He}):v.createElement(v.Fragment,null,Ge,me,He);return v.createElement(I.q3.Provider,{value:je},v.createElement(xe.Z,Object.assign({},Ye,{className:$e}),at),v.createElement(Le,{prefixCls:B}))},_e=c(86902),nt=c(31724),Fe=c(9763),Xe=c(6848),ot=function(m,B){var le={};for(var h in m)Object.prototype.hasOwnProperty.call(m,h)&&B.indexOf(h)<0&&(le[h]=m[h]);if(m!=null&&typeof Object.getOwnPropertySymbols=="function")for(var d=0,h=Object.getOwnPropertySymbols(m);d<h.length;d++)B.indexOf(h[d])<0&&Object.prototype.propertyIsEnumerable.call(m,h[d])&&(le[h[d]]=m[h[d]]);return le};function ke(m){return m?typeof m=="object"&&!v.isValidElement(m)?m:{title:m}:null}var ht=m=>{let{prefixCls:B,label:le,htmlFor:h,labelCol:d,labelAlign:O,colon:j,required:be,requiredMark:ee,tooltip:ne}=m;var he;const[De]=(0,Fe.Z)("Form"),{vertical:Ue,labelAlign:A,labelCol:ce,labelWrap:Ye,colon:$e}=v.useContext(I.q3);if(!le)return null;const je=d||ce||{},Ge=O||A,wt=`${B}-item-label`,me=S()(wt,Ge==="left"&&`${wt}-left`,je.className,{[`${wt}-wrap`]:!!Ye});let Ee=le;const He=j===!0||$e!==!1&&j!==!1;He&&!Ue&&typeof le=="string"&&le.trim()!==""&&(Ee=le.replace(/[:|]\s*$/,""));const ct=ke(ne);if(ct){const{icon:Bt=v.createElement(_e.Z,null)}=ct,Jt=ot(ct,["icon"]),Ot=v.createElement(Xe.Z,Object.assign({},Jt),v.cloneElement(Bt,{className:`${B}-item-tooltip`,title:""}));Ee=v.createElement(v.Fragment,null,Ee,Ot)}const yt=ee==="optional",Qt=typeof ee=="function";Qt?Ee=ee(Ee,{required:!!be}):yt&&!be&&(Ee=v.createElement(v.Fragment,null,Ee,v.createElement("span",{className:`${B}-item-optional`,title:""},(De==null?void 0:De.optional)||((he=nt.Z.Form)===null||he===void 0?void 0:he.optional))));const It=S()({[`${B}-item-required`]:be,[`${B}-item-required-mark-optional`]:yt||Qt,[`${B}-item-no-colon`]:!He});return v.createElement(xe.Z,Object.assign({},je,{className:me}),v.createElement("label",{htmlFor:h,className:It,title:typeof le=="string"?le:""},Ee))},Ut=c(79999),At=c(33130),gn=c(85404),tn=c(50023);const pn={success:Ut.Z,warning:gn.Z,error:At.Z,validating:tn.Z};function Mn(m){let{children:B,errors:le,warnings:h,hasFeedback:d,validateStatus:O,prefixCls:j,meta:be,noStyle:ee}=m;const ne=`${j}-item`,{feedbackIcons:he}=v.useContext(I.q3),De=Ke(le,h,be,null,!!d,O),{isFormItemInput:Ue,status:A}=v.useContext(I.aM),ce=v.useMemo(()=>{var Ye;let $e;if(d){const wt=d!==!0&&d.icons||he,me=De&&((Ye=wt==null?void 0:wt({status:De,errors:le,warnings:h}))===null||Ye===void 0?void 0:Ye[De]),Ee=De&&pn[De];$e=me!==!1&&Ee?v.createElement("span",{className:S()(`${ne}-feedback-icon`,`${ne}-feedback-icon-${De}`)},me||v.createElement(Ee,null)):null}let je=!0,Ge=De||"";return ee&&(je=Ue,Ge=(De!=null?De:A)||""),{status:Ge,errors:le,warnings:h,hasFeedback:!!d,feedbackIcon:$e,isFormItemInput:je}},[De,d,ee,Ue,A]);return v.createElement(I.aM.Provider,{value:ce},B)}var fn=function(m,B){var le={};for(var h in m)Object.prototype.hasOwnProperty.call(m,h)&&B.indexOf(h)<0&&(le[h]=m[h]);if(m!=null&&typeof Object.getOwnPropertySymbols=="function")for(var d=0,h=Object.getOwnPropertySymbols(m);d<h.length;d++)B.indexOf(h[d])<0&&Object.prototype.propertyIsEnumerable.call(m,h[d])&&(le[h[d]]=m[h[d]]);return le};function sn(m){const{prefixCls:B,className:le,rootClassName:h,style:d,help:O,errors:j,warnings:be,validateStatus:ee,meta:ne,hasFeedback:he,hidden:De,children:Ue,fieldId:A,required:ce,isRequired:Ye,onSubItemMetaChange:$e}=m,je=fn(m,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),Ge=`${B}-item`,{requiredMark:wt}=v.useContext(I.q3),me=v.useRef(null),Ee=k(j),He=k(be),at=O!=null,ct=!!(at||j.length||be.length),yt=!!me.current&&(0,ae.Z)(me.current),[Qt,It]=v.useState(null);(0,de.Z)(()=>{if(ct&&me.current){const dn=getComputedStyle(me.current);It(parseInt(dn.marginBottom,10))}},[ct,yt]);const Bt=dn=>{dn||It(null)},Ot=function(){let dn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const qt=dn?Ee:ne.errors,en=dn?He:ne.warnings;return Ke(qt,en,ne,"",!!he,ee)}(),_t=S()(Ge,le,h,{[`${Ge}-with-help`]:at||Ee.length||He.length,[`${Ge}-has-feedback`]:Ot&&he,[`${Ge}-has-success`]:Ot==="success",[`${Ge}-has-warning`]:Ot==="warning",[`${Ge}-has-error`]:Ot==="error",[`${Ge}-is-validating`]:Ot==="validating",[`${Ge}-hidden`]:De});return v.createElement("div",{className:_t,style:d,ref:me},v.createElement(we.Z,Object.assign({className:`${Ge}-row`},(0,Ie.Z)(je,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),v.createElement(ht,Object.assign({htmlFor:A},m,{requiredMark:wt,required:ce!=null?ce:Ye,prefixCls:B})),v.createElement(_,Object.assign({},m,ne,{errors:Ee,warnings:He,prefixCls:B,status:Ot,help:O,marginBottom:Qt,onErrorVisibleChanged:Bt}),v.createElement(I.qI.Provider,{value:$e},v.createElement(Mn,{prefixCls:B,meta:ne,errors:ne.errors,warnings:ne.warnings,hasFeedback:he,validateStatus:Ot},Ue)))),!!Qt&&v.createElement("div",{className:`${Ge}-margin-offset`,style:{marginBottom:-Qt}}))}const Ht="__SPLIT__",on=null,Yt=v.memo(m=>{let{children:B}=m;return B},(m,B)=>m.value===B.value&&m.update===B.update&&m.childProps.length===B.childProps.length&&m.childProps.every((le,h)=>le===B.childProps[h]));function Lt(m){return m!=null}function En(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function Tt(m){const{name:B,noStyle:le,className:h,dependencies:d,prefixCls:O,shouldUpdate:j,rules:be,children:ee,required:ne,label:he,messageVariables:De,trigger:Ue="onChange",validateTrigger:A,hidden:ce,help:Ye}=m,{getPrefixCls:$e}=v.useContext($.E_),{name:je}=v.useContext(I.q3),Ge=M(ee),wt=typeof Ge=="function",me=v.useContext(I.qI),{validateTrigger:Ee}=v.useContext(E.FieldContext),He=A!==void 0?A:Ee,at=Lt(B),ct=$e("form",O),[yt,Qt]=q(ct),It=v.useContext(E.ListContext),Bt=v.useRef(),[Jt,Ot]=te({}),[_t,dn]=(0,Rt.Z)(()=>En()),qt=jt=>{const ln=It==null?void 0:It.getKey(jt.name);if(dn(jt.destroy?En():jt,!0),le&&Ye!==!1&&me){let Sn=jt.name;if(jt.destroy)Sn=Bt.current||Sn;else if(ln!==void 0){const[Dt,An]=ln;Sn=[Dt].concat((0,x.Z)(An)),Bt.current=Sn}me(jt,Sn)}},en=(jt,ln)=>{Ot(Sn=>{const Dt=Object.assign({},Sn),_n=[].concat((0,x.Z)(jt.name.slice(0,-1)),(0,x.Z)(ln)).join(Ht);return jt.destroy?delete Dt[_n]:Dt[_n]=jt,Dt})},[bt,et]=v.useMemo(()=>{const jt=(0,x.Z)(_t.errors),ln=(0,x.Z)(_t.warnings);return Object.values(Jt).forEach(Sn=>{jt.push.apply(jt,(0,x.Z)(Sn.errors||[])),ln.push.apply(ln,(0,x.Z)(Sn.warnings||[]))}),[jt,ln]},[Jt,_t.errors,_t.warnings]),zt=oe();function Mt(jt,ln,Sn){return le&&!ce?v.createElement(Mn,{prefixCls:ct,hasFeedback:m.hasFeedback,validateStatus:m.validateStatus,meta:_t,errors:bt,warnings:et,noStyle:!0},jt):v.createElement(sn,Object.assign({key:"row"},m,{className:S()(h,Qt),prefixCls:ct,fieldId:ln,isRequired:Sn,errors:bt,warnings:et,meta:_t,onSubItemMetaChange:en}),jt)}if(!at&&!wt&&!d)return yt(Mt(Ge));let bn={};return typeof he=="string"?bn.label=he:B&&(bn.label=String(B)),De&&(bn=Object.assign(Object.assign({},bn),De)),yt(v.createElement(E.Field,Object.assign({},m,{messageVariables:bn,trigger:Ue,validateTrigger:He,onMetaChange:qt}),(jt,ln,Sn)=>{const Dt=ue(B).length&&ln?ln.name:[],An=Ze(Dt,je),_n=ne!==void 0?ne:!!(be&&be.some(Et=>{if(Et&&typeof Et=="object"&&Et.required&&!Et.warningOnly)return!0;if(typeof Et=="function"){const un=Et(Sn);return un&&un.required&&!un.warningOnly}return!1})),Nt=Object.assign({},jt);let vt=null;if(Array.isArray(Ge)&&at)vt=Ge;else if(!(wt&&(!(j||d)||at))){if(!(d&&!wt&&!at))if((0,kt.l$)(Ge)){const Et=Object.assign(Object.assign({},Ge.props),Nt);if(Et.id||(Et.id=An),Ye||bt.length>0||et.length>0||m.extra){const nn=[];(Ye||bt.length>0)&&nn.push(`${An}_help`),m.extra&&nn.push(`${An}_extra`),Et["aria-describedby"]=nn.join(" ")}bt.length>0&&(Et["aria-invalid"]="true"),_n&&(Et["aria-required"]="true"),(0,ut.Yr)(Ge)&&(Et.ref=zt(Dt,Ge)),new Set([].concat((0,x.Z)(ue(Ue)),(0,x.Z)(ue(He)))).forEach(nn=>{Et[nn]=function(){for(var Kt,mn,Cn,Rn,rt,qe=arguments.length,lt=new Array(qe),Vt=0;Vt<qe;Vt++)lt[Vt]=arguments[Vt];(Cn=Nt[nn])===null||Cn===void 0||(Kt=Cn).call.apply(Kt,[Nt].concat(lt)),(rt=(Rn=Ge.props)[nn])===null||rt===void 0||(mn=rt).call.apply(mn,[Rn].concat(lt))}});const cn=[Et["aria-required"],Et["aria-invalid"],Et["aria-describedby"]];vt=v.createElement(Yt,{value:Nt[m.valuePropName||"value"],update:Ge,childProps:cn},(0,kt.Tm)(Ge,Et))}else wt&&(j||d)&&!at?vt=Ge(Sn):vt=Ge}return Mt(vt,An,_n)}))}const yn=Tt;yn.useStatus=w;var Pn=yn,Zn=function(m,B){var le={};for(var h in m)Object.prototype.hasOwnProperty.call(m,h)&&B.indexOf(h)<0&&(le[h]=m[h]);if(m!=null&&typeof Object.getOwnPropertySymbols=="function")for(var d=0,h=Object.getOwnPropertySymbols(m);d<h.length;d++)B.indexOf(h[d])<0&&Object.prototype.propertyIsEnumerable.call(m,h[d])&&(le[h[d]]=m[h[d]]);return le},jn=m=>{var{prefixCls:B,children:le}=m,h=Zn(m,["prefixCls","children"]);const{getPrefixCls:d}=v.useContext($.E_),O=d("form",B),j=v.useMemo(()=>({prefixCls:O,status:"error"}),[O]);return v.createElement(E.List,Object.assign({},h),(be,ee,ne)=>v.createElement(I.Rk.Provider,{value:j},le(be.map(he=>Object.assign(Object.assign({},he),{fieldKey:he.key})),ee,{errors:ne.errors,warnings:ne.warnings})))};function an(){const{form:m}=(0,v.useContext)(I.q3);return m}const it=tt;it.Item=Pn,it.List=jn,it.ErrorList=R,it.useForm=Pe,it.useFormInstance=an,it.useWatch=E.useWatch,it.Provider=I.RV,it.create=()=>{};var xt=it},9432:function(rn,Te,c){"use strict";c.d(Te,{Z:function(){return ye},n:function(){return Ve}});var x=c(33130),W=c(92310),S=c.n(W),X=c(93681),v=c(20475),T=c(59301),I=c(19080),k=c(36355),se=c(1684),p=c(19716),Se=c(32441),D=c(33234),pe=c(59412),K=c(9937);function ge(re){return!!(re.prefix||re.suffix||re.allowClear)}var We=function(re,Q){var C={};for(var f in re)Object.prototype.hasOwnProperty.call(re,f)&&Q.indexOf(f)<0&&(C[f]=re[f]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var b=0,f=Object.getOwnPropertySymbols(re);b<f.length;b++)Q.indexOf(f[b])<0&&Object.prototype.propertyIsEnumerable.call(re,f[b])&&(C[f[b]]=re[f[b]]);return C};function Ve(re,Q){if(!re)return;re.focus(Q);const{cursor:C}=Q||{};if(C){const f=re.value.length;switch(C){case"start":re.setSelectionRange(0,0);break;case"end":re.setSelectionRange(f,f);break;default:re.setSelectionRange(0,f);break}}}var ye=(0,T.forwardRef)((re,Q)=>{var C;const{prefixCls:f,bordered:b=!0,status:P,size:q,disabled:z,onBlur:Ne,onFocus:ie,suffix:R,allowClear:E,addonAfter:$,addonBefore:Z,className:Y,style:G,styles:H,rootClassName:V,onChange:fe,classNames:ue}=re,Ze=We(re,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:Ke,direction:Ce,input:Pe}=T.useContext(k.E_),Me=Ke("input",f),Ct=(0,T.useRef)(null),[$t,dt]=(0,K.ZP)(Me),{compactSize:tt,compactItemClassnames:Rt}=(0,D.ri)(Me,Ce),ut=(0,p.Z)(Le=>{var ze;return(ze=q!=null?q:tt)!==null&&ze!==void 0?ze:Le}),kt=T.useContext(se.Z),J=z!=null?z:kt,{status:M,hasFeedback:F,feedbackIcon:w}=(0,T.useContext)(Se.aM),U=(0,I.F)(M,P),te=ge(re)||!!F,oe=(0,T.useRef)(te);(0,T.useEffect)(()=>{var Le;te&&oe.current,oe.current=te},[te]);const ae=(0,pe.Z)(Ct,!0),de=Le=>{ae(),Ne==null||Ne(Le)},Ie=Le=>{ae(),ie==null||ie(Le)},we=Le=>{ae(),fe==null||fe(Le)},xe=(F||R)&&T.createElement(T.Fragment,null,R,F&&w);let Ae;return typeof E=="object"&&(E!=null&&E.clearIcon)?Ae=E:E&&(Ae={clearIcon:T.createElement(x.Z,null)}),$t(T.createElement(X.default,Object.assign({ref:(0,v.sQ)(Q,Ct),prefixCls:Me,autoComplete:Pe==null?void 0:Pe.autoComplete},Ze,{disabled:J,onBlur:de,onFocus:Ie,style:Object.assign(Object.assign({},Pe==null?void 0:Pe.style),G),styles:Object.assign(Object.assign({},Pe==null?void 0:Pe.styles),H),suffix:xe,allowClear:Ae,className:S()(Y,V,Rt,Pe==null?void 0:Pe.className),onChange:we,addonAfter:$&&T.createElement(D.BR,null,T.createElement(Se.Ux,{override:!0,status:!0},$)),addonBefore:Z&&T.createElement(D.BR,null,T.createElement(Se.Ux,{override:!0,status:!0},Z)),classNames:Object.assign(Object.assign(Object.assign({},ue),Pe==null?void 0:Pe.classNames),{input:S()({[`${Me}-sm`]:ut==="small",[`${Me}-lg`]:ut==="large",[`${Me}-rtl`]:Ce==="rtl",[`${Me}-borderless`]:!b},!te&&(0,I.Z)(Me,U),ue==null?void 0:ue.input,(C=Pe==null?void 0:Pe.classNames)===null||C===void 0?void 0:C.input,dt)}),classes:{affixWrapper:S()({[`${Me}-affix-wrapper-sm`]:ut==="small",[`${Me}-affix-wrapper-lg`]:ut==="large",[`${Me}-affix-wrapper-rtl`]:Ce==="rtl",[`${Me}-affix-wrapper-borderless`]:!b},(0,I.Z)(`${Me}-affix-wrapper`,U,F),dt),wrapper:S()({[`${Me}-group-rtl`]:Ce==="rtl"},dt),group:S()({[`${Me}-group-wrapper-sm`]:ut==="small",[`${Me}-group-wrapper-lg`]:ut==="large",[`${Me}-group-wrapper-rtl`]:Ce==="rtl",[`${Me}-group-wrapper-disabled`]:J},(0,I.Z)(`${Me}-group-wrapper`,U,F),dt)}})))})},1643:function(rn,Te,c){"use strict";var x=c(33130),W=c(92310),S=c.n(W),X=c(9296),v=c(59301),T=c(19080),I=c(36355),k=c(1684),se=c(19716),p=c(32441),Se=c(9432),D=c(9937),pe=function(ge,We){var Ve={};for(var Re in ge)Object.prototype.hasOwnProperty.call(ge,Re)&&We.indexOf(Re)<0&&(Ve[Re]=ge[Re]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,Re=Object.getOwnPropertySymbols(ge);ye<Re.length;ye++)We.indexOf(Re[ye])<0&&Object.prototype.propertyIsEnumerable.call(ge,Re[ye])&&(Ve[Re[ye]]=ge[Re[ye]]);return Ve};const K=(0,v.forwardRef)((ge,We)=>{const{prefixCls:Ve,bordered:Re=!0,size:ye,disabled:re,status:Q,allowClear:C,showCount:f,classNames:b,rootClassName:P,className:q}=ge,z=pe(ge,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:Ne,direction:ie}=v.useContext(I.E_),R=(0,se.Z)(ye),E=v.useContext(k.Z),$=re!=null?re:E,{status:Z,hasFeedback:Y,feedbackIcon:G}=v.useContext(p.aM),H=(0,T.F)(Z,Q),V=v.useRef(null);v.useImperativeHandle(We,()=>{var Ce;return{resizableTextArea:(Ce=V.current)===null||Ce===void 0?void 0:Ce.resizableTextArea,focus:Pe=>{var Me,Ct;(0,Se.n)((Ct=(Me=V.current)===null||Me===void 0?void 0:Me.resizableTextArea)===null||Ct===void 0?void 0:Ct.textArea,Pe)},blur:()=>{var Pe;return(Pe=V.current)===null||Pe===void 0?void 0:Pe.blur()}}});const fe=Ne("input",Ve);let ue;typeof C=="object"&&(C!=null&&C.clearIcon)?ue=C:C&&(ue={clearIcon:v.createElement(x.Z,null)});const[Ze,Ke]=(0,D.ZP)(fe);return Ze(v.createElement(X.default,Object.assign({},z,{disabled:$,allowClear:ue,className:S()(q,P),classes:{affixWrapper:S()(`${fe}-textarea-affix-wrapper`,{[`${fe}-affix-wrapper-rtl`]:ie==="rtl",[`${fe}-affix-wrapper-borderless`]:!Re,[`${fe}-affix-wrapper-sm`]:R==="small",[`${fe}-affix-wrapper-lg`]:R==="large",[`${fe}-textarea-show-count`]:f},(0,T.Z)(`${fe}-affix-wrapper`,H),Ke)},classNames:Object.assign(Object.assign({},b),{textarea:S()({[`${fe}-borderless`]:!Re,[`${fe}-sm`]:R==="small",[`${fe}-lg`]:R==="large"},(0,T.Z)(fe,H),Ke,b==null?void 0:b.textarea)}),prefixCls:fe,suffix:Y&&v.createElement("span",{className:`${fe}-textarea-suffix`},G),showCount:f,ref:V})))});Te.Z=K},59412:function(rn,Te,c){"use strict";c.d(Te,{Z:function(){return W}});var x=c(59301);function W(S,X){const v=(0,x.useRef)([]),T=()=>{v.current.push(setTimeout(()=>{var I,k,se,p;!((I=S.current)===null||I===void 0)&&I.input&&((k=S.current)===null||k===void 0?void 0:k.input.getAttribute("type"))==="password"&&(!((se=S.current)===null||se===void 0)&&se.input.hasAttribute("value"))&&((p=S.current)===null||p===void 0||p.input.removeAttribute("value"))}))};return(0,x.useEffect)(()=>(X&&T(),()=>v.current.forEach(I=>{I&&clearTimeout(I)})),[]),T}},92832:function(rn,Te,c){"use strict";c.d(Te,{default:function(){return R}});var x=c(92310),W=c.n(x),S=c(59301),X=c(36355),v=c(32441),T=c(9937),k=E=>{const{getPrefixCls:$,direction:Z}=(0,S.useContext)(X.E_),{prefixCls:Y,className:G}=E,H=$("input-group",Y),V=$("input"),[fe,ue]=(0,T.ZP)(V),Ze=W()(H,{[`${H}-lg`]:E.size==="large",[`${H}-sm`]:E.size==="small",[`${H}-compact`]:E.compact,[`${H}-rtl`]:Z==="rtl"},ue,G),Ke=(0,S.useContext)(v.aM),Ce=(0,S.useMemo)(()=>Object.assign(Object.assign({},Ke),{isFormItemInput:!1}),[Ke]);return fe(S.createElement("span",{className:Ze,style:E.style,onMouseEnter:E.onMouseEnter,onMouseLeave:E.onMouseLeave,onFocus:E.onFocus,onBlur:E.onBlur},S.createElement(v.aM.Provider,{value:Ce},E.children)))},se=c(9432),p=c(61441),Se=c(30631),D=c(64002),pe=c(20475),K=c(59412),ge=function(E,$){var Z={};for(var Y in E)Object.prototype.hasOwnProperty.call(E,Y)&&$.indexOf(Y)<0&&(Z[Y]=E[Y]);if(E!=null&&typeof Object.getOwnPropertySymbols=="function")for(var G=0,Y=Object.getOwnPropertySymbols(E);G<Y.length;G++)$.indexOf(Y[G])<0&&Object.prototype.propertyIsEnumerable.call(E,Y[G])&&(Z[Y[G]]=E[Y[G]]);return Z};const We=E=>E?S.createElement(Se.Z,null):S.createElement(p.Z,null),Ve={click:"onClick",hover:"onMouseOver"};var ye=S.forwardRef((E,$)=>{const{visibilityToggle:Z=!0}=E,Y=typeof Z=="object"&&Z.visible!==void 0,[G,H]=(0,S.useState)(()=>Y?Z.visible:!1),V=(0,S.useRef)(null);S.useEffect(()=>{Y&&H(Z.visible)},[Y,Z]);const fe=(0,K.Z)(V),ue=()=>{const{disabled:J}=E;J||(G&&fe(),H(M=>{var F;const w=!M;return typeof Z=="object"&&((F=Z.onVisibleChange)===null||F===void 0||F.call(Z,w)),w}))},Ze=J=>{const{action:M="click",iconRender:F=We}=E,w=Ve[M]||"",U=F(G),te={[w]:ue,className:`${J}-icon`,key:"passwordIcon",onMouseDown:oe=>{oe.preventDefault()},onMouseUp:oe=>{oe.preventDefault()}};return S.cloneElement(S.isValidElement(U)?U:S.createElement("span",null,U),te)},{className:Ke,prefixCls:Ce,inputPrefixCls:Pe,size:Me}=E,Ct=ge(E,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:$t}=S.useContext(X.E_),dt=$t("input",Pe),tt=$t("input-password",Ce),Rt=Z&&Ze(tt),ut=W()(tt,Ke,{[`${tt}-${Me}`]:!!Me}),kt=Object.assign(Object.assign({},(0,D.Z)(Ct,["suffix","iconRender","visibilityToggle"])),{type:G?"text":"password",className:ut,prefixCls:dt,suffix:Rt});return Me&&(kt.size=Me),S.createElement(se.Z,Object.assign({ref:(0,pe.sQ)($,V)},kt))}),re=c(21970),Q=c(92343),C=c(3113),f=c(19716),b=c(33234),P=function(E,$){var Z={};for(var Y in E)Object.prototype.hasOwnProperty.call(E,Y)&&$.indexOf(Y)<0&&(Z[Y]=E[Y]);if(E!=null&&typeof Object.getOwnPropertySymbols=="function")for(var G=0,Y=Object.getOwnPropertySymbols(E);G<Y.length;G++)$.indexOf(Y[G])<0&&Object.prototype.propertyIsEnumerable.call(E,Y[G])&&(Z[Y[G]]=E[Y[G]]);return Z},z=S.forwardRef((E,$)=>{const{prefixCls:Z,inputPrefixCls:Y,className:G,size:H,suffix:V,enterButton:fe=!1,addonAfter:ue,loading:Ze,disabled:Ke,onSearch:Ce,onChange:Pe,onCompositionStart:Me,onCompositionEnd:Ct}=E,$t=P(E,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:dt,direction:tt}=S.useContext(X.E_),Rt=S.useRef(!1),ut=dt("input-search",Z),kt=dt("input",Y),{compactSize:J}=(0,b.ri)(ut,tt),M=(0,f.Z)(_=>{var _e;return(_e=H!=null?H:J)!==null&&_e!==void 0?_e:_}),F=S.useRef(null),w=_=>{_&&_.target&&_.type==="click"&&Ce&&Ce(_.target.value,_,{source:"clear"}),Pe&&Pe(_)},U=_=>{var _e;document.activeElement===((_e=F.current)===null||_e===void 0?void 0:_e.input)&&_.preventDefault()},te=_=>{var _e,nt;Ce&&Ce((nt=(_e=F.current)===null||_e===void 0?void 0:_e.input)===null||nt===void 0?void 0:nt.value,_,{source:"input"})},oe=_=>{Rt.current||Ze||te(_)},ae=typeof fe=="boolean"?S.createElement(re.Z,null):null,de=`${ut}-button`;let Ie;const we=fe||{},xe=we.type&&we.type.__ANT_BUTTON===!0;xe||we.type==="button"?Ie=(0,Q.Tm)(we,Object.assign({onMouseDown:U,onClick:_=>{var _e,nt;(nt=(_e=we==null?void 0:we.props)===null||_e===void 0?void 0:_e.onClick)===null||nt===void 0||nt.call(_e,_),te(_)},key:"enterButton"},xe?{className:de,size:M}:{})):Ie=S.createElement(C.ZP,{className:de,type:fe?"primary":void 0,size:M,disabled:Ke,key:"enterButton",onMouseDown:U,onClick:te,loading:Ze,icon:ae},fe),ue&&(Ie=[Ie,(0,Q.Tm)(ue,{key:"addonAfter"})]);const Ae=W()(ut,{[`${ut}-rtl`]:tt==="rtl",[`${ut}-${M}`]:!!M,[`${ut}-with-button`]:!!fe},G),Le=_=>{Rt.current=!0,Me==null||Me(_)},ze=_=>{Rt.current=!1,Ct==null||Ct(_)};return S.createElement(se.Z,Object.assign({ref:(0,pe.sQ)(F,$),onPressEnter:oe},$t,{size:M,onCompositionStart:Le,onCompositionEnd:ze,prefixCls:kt,addonAfter:Ie,suffix:V,onChange:w,className:Ae,disabled:Ke}))}),Ne=c(1643);const ie=se.Z;ie.Group=k,ie.Search=z,ie.TextArea=Ne.Z,ie.Password=ye;var R=ie},9937:function(rn,Te,c){"use strict";c.d(Te,{M1:function(){return I},TM:function(){return Q},Xy:function(){return k},bi:function(){return Se},e5:function(){return re},ik:function(){return D},nz:function(){return v},pU:function(){return T},s7:function(){return pe},x0:function(){return p}});var x=c(17313),W=c(74207),S=c(37613),X=c(83116);const v=C=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:C,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),T=C=>({borderColor:C.hoverBorderColor}),I=C=>({borderColor:C.activeBorderColor,boxShadow:C.activeShadow,outline:0}),k=C=>({color:C.colorTextDisabled,backgroundColor:C.colorBgContainerDisabled,borderColor:C.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},T((0,S.TS)(C,{hoverBorderColor:C.colorBorder})))}),se=C=>{const{paddingBlockLG:f,fontSizeLG:b,lineHeightLG:P,borderRadiusLG:q,paddingInlineLG:z}=C;return{padding:`${f}px ${z}px`,fontSize:b,lineHeight:P,borderRadius:q}},p=C=>({padding:`${C.paddingBlockSM}px ${C.paddingInlineSM}px`,borderRadius:C.borderRadiusSM}),Se=(C,f)=>{const{componentCls:b,colorError:P,colorWarning:q,errorActiveShadow:z,warningActiveShadow:Ne,colorErrorBorderHover:ie,colorWarningBorderHover:R}=C;return{[`&-status-error:not(${f}-disabled):not(${f}-borderless)${f}`]:{borderColor:P,"&:hover":{borderColor:ie},"&:focus, &-focused":Object.assign({},I((0,S.TS)(C,{activeBorderColor:P,activeShadow:z}))),[`${b}-prefix, ${b}-suffix`]:{color:P}},[`&-status-warning:not(${f}-disabled):not(${f}-borderless)${f}`]:{borderColor:q,"&:hover":{borderColor:R},"&:focus, &-focused":Object.assign({},I((0,S.TS)(C,{activeBorderColor:q,activeShadow:Ne}))),[`${b}-prefix, ${b}-suffix`]:{color:q}}}},D=C=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${C.paddingBlock}px ${C.paddingInline}px`,color:C.colorText,fontSize:C.fontSize,lineHeight:C.lineHeight,backgroundColor:C.colorBgContainer,backgroundImage:"none",borderWidth:C.lineWidth,borderStyle:C.lineType,borderColor:C.colorBorder,borderRadius:C.borderRadius,transition:`all ${C.motionDurationMid}`},v(C.colorTextPlaceholder)),{"&:hover":Object.assign({},T(C)),"&:focus, &-focused":Object.assign({},I(C)),"&-disabled, &[disabled]":Object.assign({},k(C)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:C.controlHeight,lineHeight:C.lineHeight,verticalAlign:"bottom",transition:`all ${C.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},se(C)),"&-sm":Object.assign({},p(C)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),pe=C=>{const{componentCls:f,antCls:b}=C;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:C.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${f}, &-lg > ${f}-group-addon`]:Object.assign({},se(C)),[`&-sm ${f}, &-sm > ${f}-group-addon`]:Object.assign({},p(C)),[`&-lg ${b}-select-single ${b}-select-selector`]:{height:C.controlHeightLG},[`&-sm ${b}-select-single ${b}-select-selector`]:{height:C.controlHeightSM},[`> ${f}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${f}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${C.paddingInline}px`,color:C.colorText,fontWeight:"normal",fontSize:C.fontSize,textAlign:"center",backgroundColor:C.colorFillAlter,border:`${C.lineWidth}px ${C.lineType} ${C.colorBorder}`,borderRadius:C.borderRadius,transition:`all ${C.motionDurationSlow}`,lineHeight:1,[`${b}-select`]:{margin:`-${C.paddingBlock+1}px -${C.paddingInline}px`,[`&${b}-select-single:not(${b}-select-customize-input)`]:{[`${b}-select-selector`]:{backgroundColor:"inherit",border:`${C.lineWidth}px ${C.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${b}-select-selector`]:{color:C.colorPrimary}}},[`${b}-cascader-picker`]:{margin:`-9px -${C.paddingInline}px`,backgroundColor:"transparent",[`${b}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${f}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${f}-search-with-button &`]:{zIndex:0}}},[`> ${f}:first-child, ${f}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${b}-select ${b}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${f}-affix-wrapper`]:{[`&:not(:first-child) ${f}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${f}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${f}:last-child, ${f}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${b}-select ${b}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${f}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${f}-search &`]:{borderStartStartRadius:C.borderRadius,borderEndStartRadius:C.borderRadius}},[`&:not(:first-child), ${f}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${f}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,x.dF)()),{[`${f}-group-addon, ${f}-group-wrap, > ${f}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:C.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`
& > ${f}-affix-wrapper,
& > ${f}-number-affix-wrapper,
& > ${b}-picker-range
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-C.lineWidth,borderInlineEndWidth:C.lineWidth},[`${f}`]:{float:"none"},[`& > ${b}-select > ${b}-select-selector,
& > ${b}-select-auto-complete ${f},
& > ${b}-cascader-picker ${f},
& > ${f}-group-wrapper ${f}`]:{borderInlineEndWidth:C.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${b}-select-focused`]:{zIndex:1},[`& > ${b}-select > ${b}-select-arrow`]:{zIndex:1},[`& > *:first-child,
& > ${b}-select:first-child > ${b}-select-selector,
& > ${b}-select-auto-complete:first-child ${f},
& > ${b}-cascader-picker:first-child ${f}`]:{borderStartStartRadius:C.borderRadius,borderEndStartRadius:C.borderRadius},[`& > *:last-child,
& > ${b}-select:last-child > ${b}-select-selector,
& > ${b}-cascader-picker:last-child ${f},
& > ${b}-cascader-picker-focused:last-child ${f}`]:{borderInlineEndWidth:C.lineWidth,borderStartEndRadius:C.borderRadius,borderEndEndRadius:C.borderRadius},[`& > ${b}-select-auto-complete ${f}`]:{verticalAlign:"top"},[`${f}-group-wrapper + ${f}-group-wrapper`]:{marginInlineStart:-C.lineWidth,[`${f}-affix-wrapper`]:{borderRadius:0}},[`${f}-group-wrapper:not(:last-child)`]:{[`&${f}-search > ${f}-group`]:{[`& > ${f}-group-addon > ${f}-search-button`]:{borderRadius:0},[`& > ${f}`]:{borderStartStartRadius:C.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:C.borderRadius}}}})}},K=C=>{const{componentCls:f,controlHeightSM:b,lineWidth:P}=C,z=(b-P*2-16)/2;return{[f]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,x.Wf)(C)),D(C)),Se(C,f)),{'&[type="color"]':{height:C.controlHeight,[`&${f}-lg`]:{height:C.controlHeightLG},[`&${f}-sm`]:{height:b,paddingTop:z,paddingBottom:z}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},ge=C=>{const{componentCls:f}=C;return{[`${f}-clear-icon`]:{margin:0,color:C.colorTextQuaternary,fontSize:C.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${C.motionDurationSlow}`,"&:hover":{color:C.colorTextTertiary},"&:active":{color:C.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${C.inputAffixPadding}px`}}}},We=C=>{const{componentCls:f,inputAffixPadding:b,colorTextDescription:P,motionDurationSlow:q,colorIcon:z,colorIconHover:Ne,iconCls:ie}=C;return{[`${f}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},D(C)),{display:"inline-flex",[`&:not(${f}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},T(C)),{zIndex:1,[`${f}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${f}[disabled]`]:{background:"transparent"}},[`> input${f}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${f}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:C.paddingXS}},"&-show-count-suffix":{color:P},"&-show-count-has-suffix":{marginInlineEnd:C.paddingXXS},"&-prefix":{marginInlineEnd:b},"&-suffix":{marginInlineStart:b}}}),ge(C)),{[`${ie}${f}-password-icon`]:{color:z,cursor:"pointer",transition:`all ${q}`,"&:hover":{color:Ne}}}),Se(C,`${f}-affix-wrapper`))}},Ve=C=>{const{componentCls:f,colorError:b,colorWarning:P,borderRadiusLG:q,borderRadiusSM:z}=C;return{[`${f}-group`]:Object.assign(Object.assign(Object.assign({},(0,x.Wf)(C)),pe(C)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${f}-group-addon`]:{borderRadius:q,fontSize:C.fontSizeLG}},"&-sm":{[`${f}-group-addon`]:{borderRadius:z}},"&-status-error":{[`${f}-group-addon`]:{color:b,borderColor:b}},"&-status-warning":{[`${f}-group-addon`]:{color:P,borderColor:P}},"&-disabled":{[`${f}-group-addon`]:Object.assign({},k(C))},[`&:not(${f}-compact-first-item):not(${f}-compact-last-item)${f}-compact-item`]:{[`${f}, ${f}-group-addon`]:{borderRadius:0}},[`&:not(${f}-compact-last-item)${f}-compact-first-item`]:{[`${f}, ${f}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${f}-compact-first-item)${f}-compact-last-item`]:{[`${f}, ${f}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}})}},Re=C=>{const{componentCls:f,antCls:b}=C,P=`${f}-search`;return{[P]:{[`${f}`]:{"&:hover, &:focus":{borderColor:C.colorPrimaryHover,[`+ ${f}-group-addon ${P}-button:not(${b}-btn-primary)`]:{borderInlineStartColor:C.colorPrimaryHover}}},[`${f}-affix-wrapper`]:{borderRadius:0},[`${f}-lg`]:{lineHeight:C.lineHeightLG-2e-4},[`> ${f}-group`]:{[`> ${f}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${P}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:C.borderRadius,borderEndEndRadius:C.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${P}-button:not(${b}-btn-primary)`]:{color:C.colorTextDescription,"&:hover":{color:C.colorPrimaryHover},"&:active":{color:C.colorPrimaryActive},[`&${b}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${P}-button`]:{height:C.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${P}-button`]:{height:C.controlHeightLG},[`&-small ${P}-button`]:{height:C.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${f}-compact-item`]:{[`&:not(${f}-compact-last-item)`]:{[`${f}-group-addon`]:{[`${f}-search-button`]:{marginInlineEnd:-C.lineWidth,borderRadius:0}}},[`&:not(${f}-compact-first-item)`]:{[`${f},${f}-affix-wrapper`]:{borderRadius:0}},[`> ${f}-group-addon ${f}-search-button,
> ${f},
${f}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${f}-affix-wrapper-focused`]:{zIndex:2}}}}},ye=C=>{const{componentCls:f,paddingLG:b}=C,P=`${f}-textarea`;return{[P]:{position:"relative","&-show-count":{[`> ${f}`]:{height:"100%"},[`${f}-data-count`]:{position:"absolute",bottom:-C.fontSize*C.lineHeight,insetInlineEnd:0,color:C.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${f}`]:{paddingInlineEnd:b}},[`&-affix-wrapper${P}-has-feedback`]:{[`${f}`]:{paddingInlineEnd:b}},[`&-affix-wrapper${f}-affix-wrapper`]:{padding:0,[`> textarea${f}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${f}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${f}-clear-icon`]:{position:"absolute",insetInlineEnd:C.paddingXS,insetBlockStart:C.paddingXS},[`${P}-suffix`]:{position:"absolute",top:0,insetInlineEnd:C.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}};function re(C){return(0,S.TS)(C,{inputAffixPadding:C.paddingXXS})}const Q=C=>{const{controlHeight:f,fontSize:b,lineHeight:P,lineWidth:q,controlHeightSM:z,controlHeightLG:Ne,fontSizeLG:ie,lineHeightLG:R,paddingSM:E,controlPaddingHorizontalSM:$,controlPaddingHorizontal:Z,colorFillAlter:Y,colorPrimaryHover:G,controlOutlineWidth:H,controlOutline:V,colorErrorOutline:fe,colorWarningOutline:ue}=C;return{paddingBlock:Math.max(Math.round((f-b*P)/2*10)/10-q,3),paddingBlockSM:Math.max(Math.round((z-b*P)/2*10)/10-q,0),paddingBlockLG:Math.ceil((Ne-ie*R)/2*10)/10-q,paddingInline:E-q,paddingInlineSM:$-q,paddingInlineLG:Z-q,addonBg:Y,activeBorderColor:G,hoverBorderColor:G,activeShadow:`0 0 0 ${H}px ${V}`,errorActiveShadow:`0 0 0 ${H}px ${fe}`,warningActiveShadow:`0 0 0 ${H}px ${ue}`}};Te.ZP=(0,X.Z)("Input",C=>{const f=(0,S.TS)(C,re(C));return[K(f),ye(f),We(f),Ve(f),Re(f),(0,W.c)(f)]},Q)},57809:function(rn,Te,c){"use strict";var x=c(92310),W=c.n(x),S=c(77861),X=c(64002),v=c(59301),T=c(53487),I=c(62892),k=c(19080),se=c(36355),p=c(1684),Se=c(93891),D=c(19716),pe=c(32441),K=c(33234),ge=c(14154),We=c(58582),Ve=c(84443),Re=c(66339),ye=function(b,P){var q={};for(var z in b)Object.prototype.hasOwnProperty.call(b,z)&&P.indexOf(z)<0&&(q[z]=b[z]);if(b!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ne=0,z=Object.getOwnPropertySymbols(b);Ne<z.length;Ne++)P.indexOf(z[Ne])<0&&Object.prototype.propertyIsEnumerable.call(b,z[Ne])&&(q[z[Ne]]=b[z[Ne]]);return q};const re="SECRET_COMBOBOX_MODE_DO_NOT_USE",Q=(b,P)=>{var q,{prefixCls:z,bordered:Ne=!0,className:ie,rootClassName:R,getPopupContainer:E,popupClassName:$,dropdownClassName:Z,listHeight:Y=256,placement:G,listItemHeight:H=24,size:V,disabled:fe,notFoundContent:ue,status:Ze,builtinPlacements:Ke,dropdownMatchSelectWidth:Ce,popupMatchSelectWidth:Pe,direction:Me,style:Ct,allowClear:$t}=b,dt=ye(b,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:tt,getPrefixCls:Rt,renderEmpty:ut,direction:kt,virtual:J,popupMatchSelectWidth:M,popupOverflow:F,select:w}=v.useContext(se.E_),U=Rt("select",z),te=Rt(),oe=Me!=null?Me:kt,{compactSize:ae,compactItemClassnames:de}=(0,K.ri)(U,oe),[Ie,we]=(0,ge.Z)(U),xe=v.useMemo(()=>{const{mode:Yt}=dt;if(Yt!=="combobox")return Yt===re?"combobox":Yt},[dt.mode]),Ae=xe==="multiple"||xe==="tags",Le=(0,Ve.Z)(dt.suffixIcon,dt.showArrow),ze=(q=Pe!=null?Pe:Ce)!==null&&q!==void 0?q:M,{status:_,hasFeedback:_e,isFormItemInput:nt,feedbackIcon:Fe}=v.useContext(pe.aM),Xe=(0,k.F)(_,Ze);let ot;ue!==void 0?ot=ue:xe==="combobox"?ot=null:ot=(ut==null?void 0:ut("Select"))||v.createElement(Se.Z,{componentName:"Select"});const{suffixIcon:ke,itemIcon:Wt,removeIcon:ht,clearIcon:Ut}=(0,Re.Z)(Object.assign(Object.assign({},dt),{multiple:Ae,hasFeedback:_e,feedbackIcon:Fe,showSuffixIcon:Le,prefixCls:U,showArrow:dt.showArrow,componentName:"Select"})),At=$t===!0?{clearIcon:Ut}:$t,gn=(0,X.Z)(dt,["suffixIcon","itemIcon"]),tn=W()($||Z,{[`${U}-dropdown-${oe}`]:oe==="rtl"},R,we),pn=(0,D.Z)(Yt=>{var Lt;return(Lt=V!=null?V:ae)!==null&&Lt!==void 0?Lt:Yt}),Mn=v.useContext(p.Z),fn=fe!=null?fe:Mn,sn=W()({[`${U}-lg`]:pn==="large",[`${U}-sm`]:pn==="small",[`${U}-rtl`]:oe==="rtl",[`${U}-borderless`]:!Ne,[`${U}-in-form-item`]:nt},(0,k.Z)(U,Xe,_e),de,w==null?void 0:w.className,ie,R,we),Ht=v.useMemo(()=>G!==void 0?G:oe==="rtl"?"bottomRight":"bottomLeft",[G,oe]),on=(0,We.Z)(Ke,F);return Ie(v.createElement(S.ZP,Object.assign({ref:P,virtual:J,showSearch:w==null?void 0:w.showSearch},gn,{style:Object.assign(Object.assign({},w==null?void 0:w.style),Ct),dropdownMatchSelectWidth:ze,builtinPlacements:on,transitionName:(0,I.m)(te,"slide-up",dt.transitionName),listHeight:Y,listItemHeight:H,mode:xe,prefixCls:U,placement:Ht,direction:oe,suffixIcon:ke,menuItemSelectedIcon:Wt,removeIcon:ht,allowClear:At,notFoundContent:ot,className:sn,getPopupContainer:E||tt,dropdownClassName:tn,disabled:fn})))},C=v.forwardRef(Q),f=(0,T.Z)(C);C.SECRET_COMBOBOX_MODE_DO_NOT_USE=re,C.Option=S.Wx,C.OptGroup=S.Xo,C._InternalPanelDoNotUseOrYouWillBeFired=f,Te.default=C},14154:function(rn,Te,c){"use strict";c.d(Te,{Z:function(){return C}});var x=c(17313),W=c(74207),S=c(37613),X=c(83116),v=c(13826),T=c(92899);const I=f=>{const{optionHeight:b,optionFontSize:P,optionLineHeight:q,optionPadding:z}=f;return{position:"relative",display:"block",minHeight:b,padding:z,color:f.colorText,fontWeight:"normal",fontSize:P,lineHeight:q,boxSizing:"border-box"}};var se=f=>{const{antCls:b,componentCls:P}=f,q=`${P}-item`,z=`&${b}-slide-up-enter${b}-slide-up-enter-active`,Ne=`&${b}-slide-up-appear${b}-slide-up-appear-active`,ie=`&${b}-slide-up-leave${b}-slide-up-leave-active`,R=`${P}-dropdown-placement-`;return[{[`${P}-dropdown`]:Object.assign(Object.assign({},(0,x.Wf)(f)),{position:"absolute",top:-9999,zIndex:f.zIndexPopup,boxSizing:"border-box",padding:f.paddingXXS,overflow:"hidden",fontSize:f.fontSize,fontVariant:"initial",backgroundColor:f.colorBgElevated,borderRadius:f.borderRadiusLG,outline:"none",boxShadow:f.boxShadowSecondary,[`
${z}${R}bottomLeft,
${Ne}${R}bottomLeft
`]:{animationName:v.fJ},[`
${z}${R}topLeft,
${Ne}${R}topLeft,
${z}${R}topRight,
${Ne}${R}topRight
`]:{animationName:v.Qt},[`${ie}${R}bottomLeft`]:{animationName:v.Uw},[`
${ie}${R}topLeft,
${ie}${R}topRight
`]:{animationName:v.ly},"&-hidden":{display:"none"},[`${q}`]:Object.assign(Object.assign({},I(f)),{cursor:"pointer",transition:`background ${f.motionDurationSlow} ease`,borderRadius:f.borderRadiusSM,"&-group":{color:f.colorTextDescription,fontSize:f.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},x.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${q}-option-disabled)`]:{backgroundColor:f.optionActiveBg},[`&-selected:not(${q}-option-disabled)`]:{color:f.optionSelectedColor,fontWeight:f.optionSelectedFontWeight,backgroundColor:f.optionSelectedBg,[`${q}-option-state`]:{color:f.colorPrimary}},"&-disabled":{[`&${q}-option-selected`]:{backgroundColor:f.colorBgContainerDisabled},color:f.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:f.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,v.oN)(f,"slide-up"),(0,v.oN)(f,"slide-down"),(0,T.Fm)(f,"move-up"),(0,T.Fm)(f,"move-down")]};const p=2,Se=f=>{let{controlHeightSM:b,controlHeight:P,lineWidth:q}=f;const z=(P-b)/2-q,Ne=Math.ceil(z/2);return[z,Ne]};function D(f,b){const{componentCls:P,iconCls:q}=f,z=`${P}-selection-overflow`,Ne=f.multipleSelectItemHeight,[ie]=Se(f),R=b?`${P}-${b}`:"";return{[`${P}-multiple${R}`]:{fontSize:f.fontSize,[z]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${P}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${ie-p}px ${p*2}px`,borderRadius:f.borderRadius,[`${P}-show-search&`]:{cursor:"text"},[`${P}-disabled&`]:{background:f.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${p}px 0`,lineHeight:`${Ne}px`,visibility:"hidden",content:'"\\a0"'}},[`
&${P}-show-arrow ${P}-selector,
&${P}-allow-clear ${P}-selector
`]:{paddingInlineEnd:f.fontSizeIcon+f.controlPaddingHorizontal},[`${P}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:Ne,marginTop:p,marginBottom:p,lineHeight:`${Ne-f.lineWidth*2}px`,background:f.multipleItemBg,border:`${f.lineWidth}px ${f.lineType} ${f.multipleItemBorderColor}`,borderRadius:f.borderRadiusSM,cursor:"default",transition:`font-size ${f.motionDurationSlow}, line-height ${f.motionDurationSlow}, height ${f.motionDurationSlow}`,userSelect:"none",marginInlineEnd:p*2,paddingInlineStart:f.paddingXS,paddingInlineEnd:f.paddingXS/2,[`${P}-disabled&`]:{color:f.multipleItemColorDisabled,borderColor:f.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:f.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,x.Ro)()),{display:"inline-flex",alignItems:"center",color:f.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${q}`]:{verticalAlign:"-0.2em"},"&:hover":{color:f.colorIconHover}})},[`${z}-item + ${z}-item`]:{[`${P}-selection-search`]:{marginInlineStart:0}},[`${P}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:f.inputPaddingHorizontalBase-ie,"\n &-input,\n &-mirror\n ":{height:Ne,fontFamily:f.fontFamily,lineHeight:`${Ne}px`,transition:`all ${f.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${P}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:f.inputPaddingHorizontalBase,insetInlineEnd:f.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${f.motionDurationSlow}`}}}}var K=f=>{const{componentCls:b}=f,P=(0,S.TS)(f,{controlHeight:f.controlHeightSM,multipleSelectItemHeight:f.controlHeightXS,borderRadius:f.borderRadiusSM,borderRadiusSM:f.borderRadiusXS}),q=(0,S.TS)(f,{fontSize:f.fontSizeLG,controlHeight:f.controlHeightLG,multipleSelectItemHeight:f.multipleItemHeightLG,borderRadius:f.borderRadiusLG,borderRadiusSM:f.borderRadius}),[,z]=Se(f);return[D(f),D(P,"sm"),{[`${b}-multiple${b}-sm`]:{[`${b}-selection-placeholder`]:{insetInline:f.controlPaddingHorizontalSM-f.lineWidth},[`${b}-selection-search`]:{marginInlineStart:z}}},D(q,"lg")]};function ge(f,b){const{componentCls:P,inputPaddingHorizontalBase:q,borderRadius:z}=f,Ne=f.controlHeight-f.lineWidth*2,ie=Math.ceil(f.fontSize*1.25),R=b?`${P}-${b}`:"";return{[`${P}-single${R}`]:{fontSize:f.fontSize,[`${P}-selector`]:Object.assign(Object.assign({},(0,x.Wf)(f)),{display:"flex",borderRadius:z,[`${P}-selection-search`]:{position:"absolute",top:0,insetInlineStart:q,insetInlineEnd:q,bottom:0,"&-input":{width:"100%"}},[`
${P}-selection-item,
${P}-selection-placeholder
`]:{padding:0,lineHeight:`${Ne}px`,transition:`all ${f.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${Ne}px`}},[`${P}-selection-item`]:{position:"relative",userSelect:"none"},[`${P}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${P}-selection-item:after`,`${P}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
&${P}-show-arrow ${P}-selection-item,
&${P}-show-arrow ${P}-selection-placeholder
`]:{paddingInlineEnd:ie},[`&${P}-open ${P}-selection-item`]:{color:f.colorTextPlaceholder},[`&:not(${P}-customize-input)`]:{[`${P}-selector`]:{width:"100%",height:f.controlHeight,padding:`0 ${q}px`,[`${P}-selection-search-input`]:{height:Ne},"&:after":{lineHeight:`${Ne}px`}}},[`&${P}-customize-input`]:{[`${P}-selector`]:{"&:after":{display:"none"},[`${P}-selection-search`]:{position:"static",width:"100%"},[`${P}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${q}px`,"&:after":{display:"none"}}}}}}}function We(f){const{componentCls:b}=f,P=f.controlPaddingHorizontalSM-f.lineWidth;return[ge(f),ge((0,S.TS)(f,{controlHeight:f.controlHeightSM,borderRadius:f.borderRadiusSM}),"sm"),{[`${b}-single${b}-sm`]:{[`&:not(${b}-customize-input)`]:{[`${b}-selection-search`]:{insetInlineStart:P,insetInlineEnd:P},[`${b}-selector`]:{padding:`0 ${P}px`},[`&${b}-show-arrow ${b}-selection-search`]:{insetInlineEnd:P+f.fontSize*1.5},[`
&${b}-show-arrow ${b}-selection-item,
&${b}-show-arrow ${b}-selection-placeholder
`]:{paddingInlineEnd:f.fontSize*1.5}}}},ge((0,S.TS)(f,{controlHeight:f.singleItemHeightLG,fontSize:f.fontSizeLG,borderRadius:f.borderRadiusLG}),"lg")]}const Ve=f=>{const{componentCls:b,selectorBg:P}=f;return{position:"relative",backgroundColor:P,border:`${f.lineWidth}px ${f.lineType} ${f.colorBorder}`,transition:`all ${f.motionDurationMid} ${f.motionEaseInOut}`,input:{cursor:"pointer"},[`${b}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${b}-disabled&`]:{color:f.colorTextDisabled,background:f.colorBgContainerDisabled,cursor:"not-allowed",[`${b}-multiple&`]:{background:f.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},Re=function(f,b){let P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:q,borderHoverColor:z,outlineColor:Ne,antCls:ie}=b,R=P?{[`${q}-selector`]:{borderColor:z}}:{};return{[f]:{[`&:not(${q}-disabled):not(${q}-customize-input):not(${ie}-pagination-size-changer)`]:Object.assign(Object.assign({},R),{[`${q}-focused& ${q}-selector`]:{borderColor:z,boxShadow:`0 0 0 ${b.controlOutlineWidth}px ${Ne}`,outline:0},[`&:hover ${q}-selector`]:{borderColor:z}})}}},ye=f=>{const{componentCls:b}=f;return{[`${b}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},re=f=>{const{componentCls:b,inputPaddingHorizontalBase:P,iconCls:q}=f;return{[b]:Object.assign(Object.assign({},(0,x.Wf)(f)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${b}-customize-input) ${b}-selector`]:Object.assign(Object.assign({},Ve(f)),ye(f)),[`${b}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},x.vS),[`${b}-selection-placeholder`]:Object.assign(Object.assign({},x.vS),{flex:1,color:f.colorTextPlaceholder,pointerEvents:"none"}),[`${b}-arrow`]:Object.assign(Object.assign({},(0,x.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:P,height:f.fontSizeIcon,marginTop:-f.fontSizeIcon/2,color:f.colorTextQuaternary,fontSize:f.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[q]:{verticalAlign:"top",transition:`transform ${f.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${b}-suffix)`]:{pointerEvents:"auto"}},[`${b}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${b}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:P,zIndex:1,display:"inline-block",width:f.fontSizeIcon,height:f.fontSizeIcon,marginTop:-f.fontSizeIcon/2,color:f.colorTextQuaternary,fontSize:f.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:f.clearBg,cursor:"pointer",opacity:0,transition:`color ${f.motionDurationMid} ease, opacity ${f.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:f.colorTextTertiary}},"&:hover":{[`${b}-clear`]:{opacity:1}}}),[`${b}-has-feedback`]:{[`${b}-clear`]:{insetInlineEnd:P+f.fontSize+f.paddingXS}}}},Q=f=>{const{componentCls:b}=f;return[{[b]:{[`&-borderless ${b}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${b}-in-form-item`]:{width:"100%"}}},re(f),We(f),K(f),se(f),{[`${b}-rtl`]:{direction:"rtl"}},Re(b,(0,S.TS)(f,{borderHoverColor:f.colorPrimaryHover,outlineColor:f.controlOutline})),Re(`${b}-status-error`,(0,S.TS)(f,{borderHoverColor:f.colorErrorHover,outlineColor:f.colorErrorOutline}),!0),Re(`${b}-status-warning`,(0,S.TS)(f,{borderHoverColor:f.colorWarningHover,outlineColor:f.colorWarningOutline}),!0),(0,W.c)(f,{borderElCls:`${b}-selector`,focusElCls:`${b}-focused`})]};var C=(0,X.Z)("Select",(f,b)=>{let{rootPrefixCls:P}=b;const q=(0,S.TS)(f,{rootPrefixCls:P,inputPaddingHorizontalBase:f.paddingSM-1,multipleSelectItemHeight:f.multipleItemHeight});return[Q(q)]},f=>{const{fontSize:b,lineHeight:P,controlHeight:q,controlPaddingHorizontal:z,zIndexPopupBase:Ne,colorText:ie,fontWeightStrong:R,controlItemBgActive:E,controlItemBgHover:$,colorBgContainer:Z,colorFillSecondary:Y,controlHeightLG:G,controlHeightSM:H,colorBgContainerDisabled:V,colorTextDisabled:fe}=f;return{zIndexPopup:Ne+50,optionSelectedColor:ie,optionSelectedFontWeight:R,optionSelectedBg:E,optionActiveBg:$,optionPadding:`${(q-b*P)/2}px ${z}px`,optionFontSize:b,optionLineHeight:P,optionHeight:q,selectorBg:Z,clearBg:Z,singleItemHeightLG:G,multipleItemBg:Y,multipleItemBorderColor:"transparent",multipleItemHeight:H,multipleItemHeightLG:q,multipleSelectorBgDisabled:V,multipleItemColorDisabled:fe,multipleItemBorderColorDisabled:"transparent"}})},58582:function(rn,Te,c){"use strict";c.d(Te,{Z:function(){return W}});const x=S=>{const v={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:S==="scroll"?"scroll":"visible",_experimental:{dynamicInset:!0}};return{bottomLeft:Object.assign(Object.assign({},v),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},v),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},v),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},v),{points:["br","tr"],offset:[0,-4]})}};function W(S,X){return S||x(X)}},84443:function(rn,Te,c){"use strict";c.d(Te,{Z:function(){return x}});function x(W,S){return S!==void 0?S:W!==null}},66339:function(rn,Te,c){"use strict";c.d(Te,{Z:function(){return k}});var x=c(10402),W=c(33130),S=c(72119),X=c(18290),v=c(50023),T=c(21970),I=c(59301);function k(se){let{suffixIcon:p,clearIcon:Se,menuItemSelectedIcon:D,removeIcon:pe,loading:K,multiple:ge,hasFeedback:We,prefixCls:Ve,showSuffixIcon:Re,feedbackIcon:ye,showArrow:re,componentName:Q}=se;const C=Se!=null?Se:I.createElement(W.Z,null),f=z=>p===null&&!We&&!re?null:I.createElement(I.Fragment,null,Re!==!1&&z,We&&ye);let b=null;if(p!==void 0)b=f(p);else if(K)b=f(I.createElement(v.Z,{spin:!0}));else{const z=`${Ve}-suffix`;b=Ne=>{let{open:ie,showSearch:R}=Ne;return f(ie&&R?I.createElement(T.Z,{className:z}):I.createElement(X.Z,{className:z}))}}let P=null;D!==void 0?P=D:ge?P=I.createElement(x.Z,null):P=null;let q=null;return pe!==void 0?q=pe:q=I.createElement(S.Z,null),{clearIcon:C,suffixIcon:b,itemIcon:P,removeIcon:q}}},8378:function(rn,Te){"use strict";const c=x=>({[x.componentCls]:{[`${x.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${x.motionDurationMid} ${x.motionEaseInOut},
opacity ${x.motionDurationMid} ${x.motionEaseInOut} !important`}},[`${x.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${x.motionDurationMid} ${x.motionEaseInOut},
opacity ${x.motionDurationMid} ${x.motionEaseInOut} !important`}}});Te.Z=c},92899:function(rn,Te,c){"use strict";c.d(Te,{Fm:function(){return D}});var x=c(9792),W=c(95406);const S=new x.Keyframes("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),X=new x.Keyframes("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),v=new x.Keyframes("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),T=new x.Keyframes("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),I=new x.Keyframes("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),k=new x.Keyframes("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),se=new x.Keyframes("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),p=new x.Keyframes("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),Se={"move-up":{inKeyframes:se,outKeyframes:p},"move-down":{inKeyframes:S,outKeyframes:X},"move-left":{inKeyframes:v,outKeyframes:T},"move-right":{inKeyframes:I,outKeyframes:k}},D=(pe,K)=>{const{antCls:ge}=pe,We=`${ge}-${K}`,{inKeyframes:Ve,outKeyframes:Re}=Se[K];return[(0,W.R)(We,Ve,Re,pe.motionDurationMid),{[`
${We}-enter,
${We}-appear
`]:{opacity:0,animationTimingFunction:pe.motionEaseOutCirc},[`${We}-leave`]:{animationTimingFunction:pe.motionEaseInOutCirc}}]}},13826:function(rn,Te,c){"use strict";c.d(Te,{Qt:function(){return v},Uw:function(){return X},fJ:function(){return S},ly:function(){return T},oN:function(){return D}});var x=c(9792),W=c(95406);const S=new x.Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),X=new x.Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),v=new x.Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),T=new x.Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),I=new x.Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),k=new x.Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),se=new x.Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),p=new x.Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),Se={"slide-up":{inKeyframes:S,outKeyframes:X},"slide-down":{inKeyframes:v,outKeyframes:T},"slide-left":{inKeyframes:I,outKeyframes:k},"slide-right":{inKeyframes:se,outKeyframes:p}},D=(pe,K)=>{const{antCls:ge}=pe,We=`${ge}-${K}`,{inKeyframes:Ve,outKeyframes:Re}=Se[K];return[(0,W.R)(We,Ve,Re,pe.motionDurationMid),{[`
${We}-enter,
${We}-appear
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:pe.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${We}-leave`]:{animationTimingFunction:pe.motionEaseInQuint}}]}},19447:function(rn,Te,c){"use strict";c.d(Te,{ZP:function(){return v},fS:function(){return S},qN:function(){return W}});var x=c(47585);const W=8;function S(T){const I=W,{contentRadius:k,limitVerticalRadius:se}=T,p=k>12?k+2:12;return{dropdownArrowOffset:p,dropdownArrowOffsetVertical:se?I:p}}function X(T,I){return T?I:{}}function v(T,I){const{componentCls:k,sizePopupArrow:se,borderRadiusXS:p,borderRadiusOuter:Se,boxShadowPopoverArrow:D}=T,{colorBg:pe,contentRadius:K=T.borderRadiusLG,limitVerticalRadius:ge,arrowDistance:We=0,arrowPlacement:Ve={left:!0,right:!0,top:!0,bottom:!0}}=I,{dropdownArrowOffsetVertical:Re,dropdownArrowOffset:ye}=S({contentRadius:K,limitVerticalRadius:ge});return{[k]:Object.assign(Object.assign(Object.assign(Object.assign({[`${k}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},(0,x.r)(se,p,Se,pe,D)),{"&:before":{background:pe}})]},X(!!Ve.top,{[[`&-placement-top ${k}-arrow`,`&-placement-topLeft ${k}-arrow`,`&-placement-topRight ${k}-arrow`].join(",")]:{bottom:We,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${k}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${k}-arrow`]:{left:{_skip_check_:!0,value:ye}},[`&-placement-topRight ${k}-arrow`]:{right:{_skip_check_:!0,value:ye}}})),X(!!Ve.bottom,{[[`&-placement-bottom ${k}-arrow`,`&-placement-bottomLeft ${k}-arrow`,`&-placement-bottomRight ${k}-arrow`].join(",")]:{top:We,transform:"translateY(-100%)"},[`&-placement-bottom ${k}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${k}-arrow`]:{left:{_skip_check_:!0,value:ye}},[`&-placement-bottomRight ${k}-arrow`]:{right:{_skip_check_:!0,value:ye}}})),X(!!Ve.left,{[[`&-placement-left ${k}-arrow`,`&-placement-leftTop ${k}-arrow`,`&-placement-leftBottom ${k}-arrow`].join(",")]:{right:{_skip_check_:!0,value:We},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${k}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${k}-arrow`]:{top:Re},[`&-placement-leftBottom ${k}-arrow`]:{bottom:Re}})),X(!!Ve.right,{[[`&-placement-right ${k}-arrow`,`&-placement-rightTop ${k}-arrow`,`&-placement-rightBottom ${k}-arrow`].join(",")]:{left:{_skip_check_:!0,value:We},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${k}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${k}-arrow`]:{top:Re},[`&-placement-rightBottom ${k}-arrow`]:{bottom:Re}}))}}},47585:function(rn,Te,c){"use strict";c.d(Te,{r:function(){return x}});const x=(W,S,X,v,T)=>{const I=W/2,k=0,se=I,p=X*1/Math.sqrt(2),Se=I-X*(1-1/Math.sqrt(2)),D=I-S*(1/Math.sqrt(2)),pe=X*(Math.sqrt(2)-1)+S*(1/Math.sqrt(2)),K=2*I-D,ge=pe,We=2*I-p,Ve=Se,Re=2*I-k,ye=se,re=I*Math.sqrt(2)+X*(Math.sqrt(2)-2),Q=X*(Math.sqrt(2)-1);return{pointerEvents:"none",width:W,height:W,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:W,height:W/2,background:v,clipPath:{_multi_value_:!0,value:[`polygon(${Q}px 100%, 50% ${Q}px, ${2*I-Q}px 100%, ${Q}px 100%)`,`path('M ${k} ${se} A ${X} ${X} 0 0 0 ${p} ${Se} L ${D} ${pe} A ${S} ${S} 0 0 1 ${K} ${ge} L ${We} ${Ve} A ${X} ${X} 0 0 0 ${Re} ${ye} Z')`]},content:'""'},"&::after":{content:'""',position:"absolute",width:re,height:re,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${S}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:T,zIndex:0,background:"transparent"}}}},33166:function(rn,Te,c){"use strict";c.d(Te,{i:function(){return x}});const x=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"]},45157:function(rn,Te,c){"use strict";c.d(Te,{Z:function(){return W}});var x=c(33166);function W(S,X){return x.i.reduce((v,T)=>{const I=S[`${T}1`],k=S[`${T}3`],se=S[`${T}6`],p=S[`${T}7`];return Object.assign(Object.assign({},v),X(T,{lightColor:I,lightBorderColor:k,darkColor:se,textColor:p}))},{})}},6848:function(rn,Te,c){"use strict";c.d(Te,{Z:function(){return Ne}});var x=c(59301),W=c(92310),S=c.n(W),X=c(55477),v=c(35788),T=c(62892),I=c(79676),k=c(92343),se=c(36355),p=c(33234),Se=c(88088),D=c(17313),pe=c(29878),K=c(19447),ge=c(45157),We=c(37613),Ve=c(83116);const Re=ie=>{const{componentCls:R,tooltipMaxWidth:E,tooltipColor:$,tooltipBg:Z,tooltipBorderRadius:Y,zIndexPopup:G,controlHeight:H,boxShadowSecondary:V,paddingSM:fe,paddingXS:ue,tooltipRadiusOuter:Ze}=ie;return[{[R]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,D.Wf)(ie)),{position:"absolute",zIndex:G,display:"block",width:"max-content",maxWidth:E,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":Z,[`${R}-inner`]:{minWidth:H,minHeight:H,padding:`${fe/2}px ${ue}px`,color:$,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:Z,borderRadius:Y,boxShadow:V,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${R}-inner`]:{borderRadius:Math.min(Y,K.qN)}},[`${R}-content`]:{position:"relative"}}),(0,ge.Z)(ie,(Ke,Ce)=>{let{darkColor:Pe}=Ce;return{[`&${R}-${Ke}`]:{[`${R}-inner`]:{backgroundColor:Pe},[`${R}-arrow`]:{"--antd-arrow-background-color":Pe}}}})),{"&-rtl":{direction:"rtl"}})},(0,K.ZP)((0,We.TS)(ie,{borderRadiusOuter:Ze}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:Y,limitVerticalRadius:!0}),{[`${R}-pure`]:{position:"relative",maxWidth:"none",margin:ie.sizePopupArrow}}]};var ye=(ie,R)=>(0,Ve.Z)("Tooltip",$=>{if(R===!1)return[];const{borderRadius:Z,colorTextLightSolid:Y,colorBgDefault:G,borderRadiusOuter:H}=$,V=(0,We.TS)($,{tooltipMaxWidth:250,tooltipColor:Y,tooltipBorderRadius:Z,tooltipBg:G,tooltipRadiusOuter:H>4?4:H});return[Re(V),(0,pe._y)($,"zoom-big-fast")]},$=>{let{zIndexPopupBase:Z,colorBgSpotlight:Y}=$;return{zIndexPopup:Z+70,colorBgDefault:Y}},{resetStyle:!1})(ie),re=c(36785);function Q(ie,R){const E=(0,re.o2)(R),$=S()({[`${ie}-${R}`]:R&&E}),Z={},Y={};return R&&!E&&(Z.background=R,Y["--antd-arrow-background-color"]=R),{className:$,overlayStyle:Z,arrowStyle:Y}}var f=ie=>{const{prefixCls:R,className:E,placement:$="top",title:Z,color:Y,overlayInnerStyle:G}=ie,{getPrefixCls:H}=x.useContext(se.E_),V=H("tooltip",R),[fe,ue]=ye(V,!0),Ze=Q(V,Y),Ke=Ze.arrowStyle,Ce=Object.assign(Object.assign({},G),Ze.overlayStyle),Pe=S()(ue,V,`${V}-pure`,`${V}-placement-${$}`,E,Ze.className);return fe(x.createElement("div",{className:Pe,style:Ke},x.createElement("div",{className:`${V}-arrow`}),x.createElement(X.G,Object.assign({},ie,{className:ue,prefixCls:V,overlayInnerStyle:Ce}),Z)))},b=function(ie,R){var E={};for(var $ in ie)Object.prototype.hasOwnProperty.call(ie,$)&&R.indexOf($)<0&&(E[$]=ie[$]);if(ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Z=0,$=Object.getOwnPropertySymbols(ie);Z<$.length;Z++)R.indexOf($[Z])<0&&Object.prototype.propertyIsEnumerable.call(ie,$[Z])&&(E[$[Z]]=ie[$[Z]]);return E};const P=(ie,R)=>{const E={},$=Object.assign({},ie);return R.forEach(Z=>{ie&&Z in ie&&(E[Z]=ie[Z],delete $[Z])}),{picked:E,omitted:$}};function q(ie,R){const E=ie.type;if((E.__ANT_BUTTON===!0||ie.type==="button")&&ie.props.disabled||E.__ANT_SWITCH===!0&&(ie.props.disabled||ie.props.loading)||E.__ANT_RADIO===!0&&ie.props.disabled){const{picked:$,omitted:Z}=P(ie.props.style,["position","left","right","top","bottom","float","display","zIndex"]),Y=Object.assign(Object.assign({display:"inline-block"},$),{cursor:"not-allowed",width:ie.props.block?"100%":void 0}),G=Object.assign(Object.assign({},Z),{pointerEvents:"none"}),H=(0,k.Tm)(ie,{style:G,className:null});return x.createElement("span",{style:Y,className:S()(ie.props.className,`${R}-disabled-compatible-wrapper`)},H)}return ie}const z=x.forwardRef((ie,R)=>{var E,$;const{prefixCls:Z,openClassName:Y,getTooltipContainer:G,overlayClassName:H,color:V,overlayInnerStyle:fe,children:ue,afterOpenChange:Ze,afterVisibleChange:Ke,destroyTooltipOnHide:Ce,arrow:Pe=!0,title:Me,overlay:Ct,builtinPlacements:$t,arrowPointAtCenter:dt=!1,autoAdjustOverflow:tt=!0}=ie,Rt=!!Pe,[,ut]=(0,Se.Z)(),{getPopupContainer:kt,getPrefixCls:J,direction:M}=x.useContext(se.E_),F=x.useRef(null),w=()=>{var sn;(sn=F.current)===null||sn===void 0||sn.forceAlign()};x.useImperativeHandle(R,()=>({forceAlign:w,forcePopupAlign:()=>{w()}}));const[U,te]=(0,v.Z)(!1,{value:(E=ie.open)!==null&&E!==void 0?E:ie.visible,defaultValue:($=ie.defaultOpen)!==null&&$!==void 0?$:ie.defaultVisible}),oe=!Me&&!Ct&&Me!==0,ae=sn=>{var Ht,on;te(oe?!1:sn),oe||((Ht=ie.onOpenChange)===null||Ht===void 0||Ht.call(ie,sn),(on=ie.onVisibleChange)===null||on===void 0||on.call(ie,sn))},de=x.useMemo(()=>{var sn,Ht;let on=dt;return typeof Pe=="object"&&(on=(Ht=(sn=Pe.pointAtCenter)!==null&&sn!==void 0?sn:Pe.arrowPointAtCenter)!==null&&Ht!==void 0?Ht:dt),$t||(0,I.Z)({arrowPointAtCenter:on,autoAdjustOverflow:tt,arrowWidth:Rt?ut.sizePopupArrow:0,borderRadius:ut.borderRadius,offset:ut.marginXXS,visibleFirst:!0})},[dt,Pe,$t,ut]),Ie=x.useMemo(()=>Me===0?Me:Ct||Me||"",[Ct,Me]),we=x.createElement(p.BR,null,typeof Ie=="function"?Ie():Ie),{getPopupContainer:xe,placement:Ae="top",mouseEnterDelay:Le=.1,mouseLeaveDelay:ze=.1,overlayStyle:_,rootClassName:_e}=ie,nt=b(ie,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),Fe=J("tooltip",Z),Xe=J(),ot=ie["data-popover-inject"];let ke=U;!("open"in ie)&&!("visible"in ie)&&oe&&(ke=!1);const Wt=q((0,k.l$)(ue)&&!(0,k.M2)(ue)?ue:x.createElement("span",null,ue),Fe),ht=Wt.props,Ut=!ht.className||typeof ht.className=="string"?S()(ht.className,Y||`${Fe}-open`):ht.className,[At,gn]=ye(Fe,!ot),tn=Q(Fe,V),pn=tn.arrowStyle,Mn=Object.assign(Object.assign({},fe),tn.overlayStyle),fn=S()(H,{[`${Fe}-rtl`]:M==="rtl"},tn.className,_e,gn);return At(x.createElement(X.Z,Object.assign({},nt,{showArrow:Rt,placement:Ae,mouseEnterDelay:Le,mouseLeaveDelay:ze,prefixCls:Fe,overlayClassName:fn,overlayStyle:Object.assign(Object.assign({},pn),_),getTooltipContainer:xe||G||kt,ref:F,builtinPlacements:de,overlay:we,visible:ke,onVisibleChange:ae,afterVisibleChange:Ze!=null?Ze:Ke,overlayInnerStyle:Mn,arrowContent:x.createElement("span",{className:`${Fe}-arrow-content`}),motion:{motionName:(0,T.m)(Xe,"zoom-big-fast",ie.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!Ce}),ke?(0,k.Tm)(Wt,{className:Ut}):Wt))});z._InternalPanelDoNotUseOrYouWillBeFired=f;var Ne=z},89780:function(rn){(function(Te,c){rn.exports=c()})(this,function(){"use strict";var Te=navigator.userAgent,c=navigator.platform,x=/gecko\/\d/i.test(Te),W=/MSIE \d/.test(Te),S=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Te),X=/Edge\/(\d+)/.exec(Te),v=W||S||X,T=v&&(W?document.documentMode||6:+(X||S)[1]),I=!X&&/WebKit\//.test(Te),k=I&&/Qt\/\d+\.\d+/.test(Te),se=!X&&/Chrome\//.test(Te),p=/Opera\//.test(Te),Se=/Apple Computer/.test(navigator.vendor),D=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Te),pe=/PhantomJS/.test(Te),K=!X&&/AppleWebKit/.test(Te)&&/Mobile\/\w+/.test(Te),ge=/Android/.test(Te),We=K||ge||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Te),Ve=K||/Mac/.test(c),Re=/\bCrOS\b/.test(Te),ye=/win/i.test(c),re=p&&Te.match(/Version\/(\d*\.\d*)/);re&&(re=Number(re[1])),re&&re>=15&&(p=!1,I=!0);var Q=Ve&&(k||p&&(re==null||re<12.11)),C=x||v&&T>=9;function f(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var b=function(e,t){var r=e.className,n=f(t).exec(r);if(n){var i=r.slice(n.index+n[0].length);e.className=r.slice(0,n.index)+(i?n[1]+i:"")}};function P(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function q(e,t){return P(e).appendChild(t)}function z(e,t,r,n){var i=document.createElement(e);if(r&&(i.className=r),n&&(i.style.cssText=n),typeof t=="string")i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o<t.length;++o)i.appendChild(t[o]);return i}function Ne(e,t,r,n){var i=z(e,t,r,n);return i.setAttribute("role","presentation"),i}var ie;document.createRange?ie=function(e,t,r,n){var i=document.createRange();return i.setEnd(n||e,r),i.setStart(e,t),i}:ie=function(e,t,r){var n=document.body.createTextRange();try{n.moveToElementText(e.parentNode)}catch(i){return n}return n.collapse(!0),n.moveEnd("character",r),n.moveStart("character",t),n};function R(e,t){if(t.nodeType==3&&(t=t.parentNode),e.contains)return e.contains(t);do if(t.nodeType==11&&(t=t.host),t==e)return!0;while(t=t.parentNode)}function E(){var e;try{e=document.activeElement}catch(t){e=document.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function $(e,t){var r=e.className;f(t).test(r)||(e.className+=(r?" ":"")+t)}function Z(e,t){for(var r=e.split(" "),n=0;n<r.length;n++)r[n]&&!f(r[n]).test(t)&&(t+=" "+r[n]);return t}var Y=function(e){e.select()};K?Y=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:v&&(Y=function(e){try{e.select()}catch(t){}});function G(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function H(e,t,r){t||(t={});for(var n in e)e.hasOwnProperty(n)&&(r!==!1||!t.hasOwnProperty(n))&&(t[n]=e[n]);return t}function V(e,t,r,n,i){t==null&&(t=e.search(/[^\s\u00a0]/),t==-1&&(t=e.length));for(var o=n||0,a=i||0;;){var l=e.indexOf(" ",o);if(l<0||l>=t)return a+(t-o);a+=l-o,a+=r-a%r,o=l+1}}var fe=function(){this.id=null,this.f=null,this.time=0,this.handler=G(this.onTimeout,this)};fe.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},fe.prototype.set=function(e,t){this.f=t;var r=+new Date+e;(!this.id||r<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=r)};function ue(e,t){for(var r=0;r<e.length;++r)if(e[r]==t)return r;return-1}var Ze=50,Ke={toString:function(){return"CodeMirror.Pass"}},Ce={scroll:!1},Pe={origin:"*mouse"},Me={origin:"+move"};function Ct(e,t,r){for(var n=0,i=0;;){var o=e.indexOf(" ",n);o==-1&&(o=e.length);var a=o-n;if(o==e.length||i+a>=t)return n+Math.min(a,t-i);if(i+=o-n,i+=r-i%r,n=o+1,i>=t)return n}}var $t=[""];function dt(e){for(;$t.length<=e;)$t.push(tt($t)+" ");return $t[e]}function tt(e){return e[e.length-1]}function Rt(e,t){for(var r=[],n=0;n<e.length;n++)r[n]=t(e[n],n);return r}function ut(e,t,r){for(var n=0,i=r(t);n<e.length&&r(e[n])<=i;)n++;e.splice(n,0,t)}function kt(){}function J(e,t){var r;return Object.create?r=Object.create(e):(kt.prototype=e,r=new kt),t&&H(t,r),r}var M=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function F(e){return/\w/.test(e)||e>"\x80"&&(e.toUpperCase()!=e.toLowerCase()||M.test(e))}function w(e,t){return t?t.source.indexOf("\\w")>-1&&F(e)?!0:t.test(e):F(e)}function U(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var te=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function oe(e){return e.charCodeAt(0)>=768&&te.test(e)}function ae(e,t,r){for(;(r<0?t>0:t<e.length)&&oe(e.charAt(t));)t+=r;return t}function de(e,t,r){for(var n=t>r?-1:1;;){if(t==r)return t;var i=(t+r)/2,o=n<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:r;e(o)?r=o:t=o+n}}function Ie(e,t,r,n){if(!e)return n(t,r,"ltr",0);for(var i=!1,o=0;o<e.length;++o){var a=e[o];(a.from<r&&a.to>t||t==r&&a.to==t)&&(n(Math.max(a.from,t),Math.min(a.to,r),a.level==1?"rtl":"ltr",o),i=!0)}i||n(t,r,"ltr")}var we=null;function xe(e,t,r){var n;we=null;for(var i=0;i<e.length;++i){var o=e[i];if(o.from<t&&o.to>t)return i;o.to==t&&(o.from!=o.to&&r=="before"?n=i:we=i),o.from==t&&(o.from!=o.to&&r!="before"?n=i:we=i)}return n!=null?n:we}var Ae=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function r(u){return u<=247?e.charAt(u):1424<=u&&u<=1524?"R":1536<=u&&u<=1785?t.charAt(u-1536):1774<=u&&u<=2220?"r":8192<=u&&u<=8203?"w":u==8204?"b":"L"}var n=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,i=/[stwN]/,o=/[LRr]/,a=/[Lb1n]/,l=/[1n]/;function s(u,g,y){this.level=u,this.from=g,this.to=y}return function(u,g){var y=g=="ltr"?"L":"R";if(u.length==0||g=="ltr"&&!n.test(u))return!1;for(var N=u.length,L=[],ve=0;ve<N;++ve)L.push(r(u.charCodeAt(ve)));for(var Oe=0,Be=y;Oe<N;++Oe){var Qe=L[Oe];Qe=="m"?L[Oe]=Be:Be=Qe}for(var st=0,Je=y;st<N;++st){var gt=L[st];gt=="1"&&Je=="r"?L[st]="n":o.test(gt)&&(Je=gt,gt=="r"&&(L[st]="R"))}for(var Ft=1,Pt=L[0];Ft<N-1;++Ft){var vn=L[Ft];vn=="+"&&Pt=="1"&&L[Ft+1]=="1"?L[Ft]="1":vn==","&&Pt==L[Ft+1]&&(Pt=="1"||Pt=="n")&&(L[Ft]=Pt),Pt=vn}for(var zn=0;zn<N;++zn){var fr=L[zn];if(fr==",")L[zn]="N";else if(fr=="%"){var Vn=void 0;for(Vn=zn+1;Vn<N&&L[Vn]=="%";++Vn);for(var Hr=zn&&L[zn-1]=="!"||Vn<N&&L[Vn]=="1"?"1":"N",Dr=zn;Dr<Vn;++Dr)L[Dr]=Hr;zn=Vn-1}}for(var nr=0,Nr=y;nr<N;++nr){var hr=L[nr];Nr=="L"&&hr=="1"?L[nr]="L":o.test(hr)&&(Nr=hr)}for(var ir=0;ir<N;++ir)if(i.test(L[ir])){var rr=void 0;for(rr=ir+1;rr<N&&i.test(L[rr]);++rr);for(var Xn=(ir?L[ir-1]:y)=="L",Ar=(rr<N?L[rr]:y)=="L",ki=Xn==Ar?Xn?"L":"R":y,Si=ir;Si<rr;++Si)L[Si]=ki;ir=rr-1}for(var Cr=[],ri,dr=0;dr<N;)if(a.test(L[dr])){var ba=dr;for(++dr;dr<N&&a.test(L[dr]);++dr);Cr.push(new s(0,ba,dr))}else{var ui=dr,Ri=Cr.length,Li=g=="rtl"?1:0;for(++dr;dr<N&&L[dr]!="L";++dr);for(var Or=ui;Or<dr;)if(l.test(L[Or])){ui<Or&&(Cr.splice(Ri,0,new s(1,ui,Or)),Ri+=Li);var Ui=Or;for(++Or;Or<dr&&l.test(L[Or]);++Or);Cr.splice(Ri,0,new s(2,Ui,Or)),Ri+=Li,ui=Or}else++Or;ui<dr&&Cr.splice(Ri,0,new s(1,ui,dr))}return g=="ltr"&&(Cr[0].level==1&&(ri=u.match(/^\s+/))&&(Cr[0].from=ri[0].length,Cr.unshift(new s(0,0,ri[0].length))),tt(Cr).level==1&&(ri=u.match(/\s+$/))&&(tt(Cr).to-=ri[0].length,Cr.push(new s(0,N-ri[0].length,N)))),g=="rtl"?Cr.reverse():Cr}}();function Le(e,t){var r=e.order;return r==null&&(r=e.order=Ae(e.text,t)),r}var ze=[],_=function(e,t,r){if(e.addEventListener)e.addEventListener(t,r,!1);else if(e.attachEvent)e.attachEvent("on"+t,r);else{var n=e._handlers||(e._handlers={});n[t]=(n[t]||ze).concat(r)}};function _e(e,t){return e._handlers&&e._handlers[t]||ze}function nt(e,t,r){if(e.removeEventListener)e.removeEventListener(t,r,!1);else if(e.detachEvent)e.detachEvent("on"+t,r);else{var n=e._handlers,i=n&&n[t];if(i){var o=ue(i,r);o>-1&&(n[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function Fe(e,t){var r=_e(e,t);if(r.length)for(var n=Array.prototype.slice.call(arguments,2),i=0;i<r.length;++i)r[i].apply(null,n)}function Xe(e,t,r){return typeof t=="string"&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),Fe(e,r||t.type,e,t),At(t)||t.codemirrorIgnore}function ot(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var r=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),n=0;n<t.length;++n)ue(r,t[n])==-1&&r.push(t[n])}function ke(e,t){return _e(e,t).length>0}function Wt(e){e.prototype.on=function(t,r){_(this,t,r)},e.prototype.off=function(t,r){nt(this,t,r)}}function ht(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Ut(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function At(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function gn(e){ht(e),Ut(e)}function tn(e){return e.target||e.srcElement}function pn(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),Ve&&e.ctrlKey&&t==1&&(t=3),t}var Mn=function(){if(v&&T<9)return!1;var e=z("div");return"draggable"in e||"dragDrop"in e}(),fn;function sn(e){if(fn==null){var t=z("span","\u200B");q(e,z("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(fn=t.offsetWidth<=1&&t.offsetHeight>2&&!(v&&T<8))}var r=fn?z("span","\u200B"):z("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return r.setAttribute("cm-text",""),r}var Ht;function on(e){if(Ht!=null)return Ht;var t=q(e,document.createTextNode("A\u062EA")),r=ie(t,0,1).getBoundingClientRect(),n=ie(t,1,2).getBoundingClientRect();return P(e),!r||r.left==r.right?!1:Ht=n.right-r.right<3}var Yt=`
b`.split(/\n/).length!=3?function(e){for(var t=0,r=[],n=e.length;t<=n;){var i=e.indexOf(`
`,t);i==-1&&(i=e.length);var o=e.slice(t,e.charAt(i-1)=="\r"?i-1:i),a=o.indexOf("\r");a!=-1?(r.push(o.slice(0,a)),t+=a+1):(r.push(o),t=i+1)}return r}:function(e){return e.split(/\r\n?|\n/)},Lt=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(t){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(r){}return!t||t.parentElement()!=e?!1:t.compareEndPoints("StartToEnd",t)!=0},En=function(){var e=z("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),Tt=null;function yn(e){if(Tt!=null)return Tt;var t=q(e,z("span","x")),r=t.getBoundingClientRect(),n=ie(t,0,1).getBoundingClientRect();return Tt=Math.abs(r.left-n.left)>1}var Pn={},Zn={};function or(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Pn[e]=t}function jn(e,t){Zn[e]=t}function an(e){if(typeof e=="string"&&Zn.hasOwnProperty(e))e=Zn[e];else if(e&&typeof e.name=="string"&&Zn.hasOwnProperty(e.name)){var t=Zn[e.name];typeof t=="string"&&(t={name:t}),e=J(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return an("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return an("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function it(e,t){t=an(t);var r=Pn[t.name];if(!r)return it(e,"text/plain");var n=r(e,t);if(xt.hasOwnProperty(t.name)){var i=xt[t.name];for(var o in i)i.hasOwnProperty(o)&&(n.hasOwnProperty(o)&&(n["_"+o]=n[o]),n[o]=i[o])}if(n.name=t.name,t.helperType&&(n.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)n[a]=t.modeProps[a];return n}var xt={};function m(e,t){var r=xt.hasOwnProperty(e)?xt[e]:xt[e]={};H(t,r)}function B(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var r={};for(var n in t){var i=t[n];i instanceof Array&&(i=i.concat([])),r[n]=i}return r}function le(e,t){for(var r;e.innerMode&&(r=e.innerMode(t),!(!r||r.mode==e));)t=r.state,e=r.mode;return r||{mode:e,state:t}}function h(e,t,r){return e.startState?e.startState(t,r):!0}var d=function(e,t,r){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=r};d.prototype.eol=function(){return this.pos>=this.string.length},d.prototype.sol=function(){return this.pos==this.lineStart},d.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},d.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},d.prototype.eat=function(e){var t=this.string.charAt(this.pos),r;if(typeof e=="string"?r=t==e:r=t&&(e.test?e.test(t):e(t)),r)return++this.pos,t},d.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},d.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},d.prototype.skipToEnd=function(){this.pos=this.string.length},d.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},d.prototype.backUp=function(e){this.pos-=e},d.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=V(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?V(this.string,this.lineStart,this.tabSize):0)},d.prototype.indentation=function(){return V(this.string,null,this.tabSize)-(this.lineStart?V(this.string,this.lineStart,this.tabSize):0)},d.prototype.match=function(e,t,r){if(typeof e=="string"){var n=function(a){return r?a.toLowerCase():a},i=this.string.substr(this.pos,e.length);if(n(i)==n(e))return t!==!1&&(this.pos+=e.length),!0}else{var o=this.string.slice(this.pos).match(e);return o&&o.index>0?null:(o&&t!==!1&&(this.pos+=o[0].length),o)}},d.prototype.current=function(){return this.string.slice(this.start,this.pos)},d.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},d.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},d.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function O(e,t){if(t-=e.first,t<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var r=e;!r.lines;)for(var n=0;;++n){var i=r.children[n],o=i.chunkSize();if(t<o){r=i;break}t-=o}return r.lines[t]}function j(e,t,r){var n=[],i=t.line;return e.iter(t.line,r.line+1,function(o){var a=o.text;i==r.line&&(a=a.slice(0,r.ch)),i==t.line&&(a=a.slice(t.ch)),n.push(a),++i}),n}function be(e,t,r){var n=[];return e.iter(t,r,function(i){n.push(i.text)}),n}function ee(e,t){var r=t-e.height;if(r)for(var n=e;n;n=n.parent)n.height+=r}function ne(e){if(e.parent==null)return null;for(var t=e.parent,r=ue(t.lines,e),n=t.parent;n;t=n,n=n.parent)for(var i=0;n.children[i]!=t;++i)r+=n.children[i].chunkSize();return r+t.first}function he(e,t){var r=e.first;e:do{for(var n=0;n<e.children.length;++n){var i=e.children[n],o=i.height;if(t<o){e=i;continue e}t-=o,r+=i.chunkSize()}return r}while(!e.lines);for(var a=0;a<e.lines.length;++a){var l=e.lines[a],s=l.height;if(t<s)break;t-=s}return r+a}function De(e,t){return t>=e.first&&t<e.first+e.size}function Ue(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function A(e,t,r){if(r===void 0&&(r=null),!(this instanceof A))return new A(e,t,r);this.line=e,this.ch=t,this.sticky=r}function ce(e,t){return e.line-t.line||e.ch-t.ch}function Ye(e,t){return e.sticky==t.sticky&&ce(e,t)==0}function $e(e){return A(e.line,e.ch)}function je(e,t){return ce(e,t)<0?t:e}function Ge(e,t){return ce(e,t)<0?e:t}function wt(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function me(e,t){if(t.line<e.first)return A(e.first,0);var r=e.first+e.size-1;return t.line>r?A(r,O(e,r).text.length):Ee(t,O(e,t.line).text.length)}function Ee(e,t){var r=e.ch;return r==null||r>t?A(e.line,t):r<0?A(e.line,0):e}function He(e,t){for(var r=[],n=0;n<t.length;n++)r[n]=me(e,t[n]);return r}var at=function(e,t){this.state=e,this.lookAhead=t},ct=function(e,t,r,n){this.state=t,this.doc=e,this.line=r,this.maxLookAhead=n||0,this.baseTokens=null,this.baseTokenPos=1};ct.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return t!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},ct.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},ct.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},ct.fromSaved=function(e,t,r){return t instanceof at?new ct(e,B(e.mode,t.state),r,t.lookAhead):new ct(e,B(e.mode,t),r)},ct.prototype.save=function(e){var t=e!==!1?B(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new at(t,this.maxLookAhead):t};function yt(e,t,r,n){var i=[e.state.modeGen],o={};en(e,t.text,e.doc.mode,r,function(u,g){return i.push(u,g)},o,n);for(var a=r.state,l=function(u){r.baseTokens=i;var g=e.state.overlays[u],y=1,N=0;r.state=!0,en(e,t.text,g.mode,r,function(L,ve){for(var Oe=y;N<L;){var Be=i[y];Be>L&&i.splice(y,1,L,i[y+1],Be),y+=2,N=Math.min(L,Be)}if(ve)if(g.opaque)i.splice(Oe,y-Oe,L,"overlay "+ve),y=Oe+2;else for(;Oe<y;Oe+=2){var Qe=i[Oe+1];i[Oe+1]=(Qe?Qe+" ":"")+"overlay "+ve}},o),r.state=a,r.baseTokens=null,r.baseTokenPos=1},s=0;s<e.state.overlays.length;++s)l(s);return{styles:i,classes:o.bgClass||o.textClass?o:null}}function Qt(e,t,r){if(!t.styles||t.styles[0]!=e.state.modeGen){var n=It(e,ne(t)),i=t.text.length>e.options.maxHighlightLength&&B(e.doc.mode,n.state),o=yt(e,t,n);i&&(n.state=i),t.stateAfter=n.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),r===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function It(e,t,r){var n=e.doc,i=e.display;if(!n.mode.startState)return new ct(n,!0,t);var o=bt(e,t,r),a=o>n.first&&O(n,o-1).stateAfter,l=a?ct.fromSaved(n,a,o):new ct(n,h(n.mode),o);return n.iter(o,t,function(s){Bt(e,s.text,l);var u=l.line;s.stateAfter=u==t-1||u%5==0||u>=i.viewFrom&&u<i.viewTo?l.save():null,l.nextLine()}),r&&(n.modeFrontier=l.line),l}function Bt(e,t,r,n){var i=e.doc.mode,o=new d(t,e.options.tabSize,r);for(o.start=o.pos=n||0,t==""&&Jt(i,r.state);!o.eol();)Ot(i,o,r.state),o.start=o.pos}function Jt(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var r=le(e,t);if(r.mode.blankLine)return r.mode.blankLine(r.state)}}function Ot(e,t,r,n){for(var i=0;i<10;i++){n&&(n[0]=le(e,r).mode);var o=e.token(t,r);if(t.pos>t.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}var _t=function(e,t,r){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=r};function dn(e,t,r,n){var i=e.doc,o=i.mode,a;t=me(i,t);var l=O(i,t.line),s=It(e,t.line,r),u=new d(l.text,e.options.tabSize,s),g;for(n&&(g=[]);(n||u.pos<t.ch)&&!u.eol();)u.start=u.pos,a=Ot(o,u,s.state),n&&g.push(new _t(u,a,B(i.mode,s.state)));return n?g:new _t(u,a,s.state)}function qt(e,t){if(e)for(;;){var r=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!r)break;e=e.slice(0,r.index)+e.slice(r.index+r[0].length);var n=r[1]?"bgClass":"textClass";t[n]==null?t[n]=r[2]:new RegExp("(?:^|\\s)"+r[2]+"(?:$|\\s)").test(t[n])||(t[n]+=" "+r[2])}return e}function en(e,t,r,n,i,o,a){var l=r.flattenSpans;l==null&&(l=e.options.flattenSpans);var s=0,u=null,g=new d(t,e.options.tabSize,n),y,N=e.options.addModeClass&&[null];for(t==""&&qt(Jt(r,n.state),o);!g.eol();){if(g.pos>e.options.maxHighlightLength?(l=!1,a&&Bt(e,t,n,g.pos),g.pos=t.length,y=null):y=qt(Ot(r,g,n.state,N),o),N){var L=N[0].name;L&&(y="m-"+(y?L+" "+y:L))}if(!l||u!=y){for(;s<g.start;)s=Math.min(g.start,s+5e3),i(s,u);u=y}g.start=g.pos}for(;s<g.pos;){var ve=Math.min(g.pos,s+5e3);i(ve,u),s=ve}}function bt(e,t,r){for(var n,i,o=e.doc,a=r?-1:t-(e.doc.mode.innerMode?1e3:100),l=t;l>a;--l){if(l<=o.first)return o.first;var s=O(o,l-1),u=s.stateAfter;if(u&&(!r||l+(u instanceof at?u.lookAhead:0)<=o.modeFrontier))return l;var g=V(s.text,null,e.options.tabSize);(i==null||n>g)&&(i=l-1,n=g)}return i}function et(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var r=e.first,n=t-1;n>r;n--){var i=O(e,n).stateAfter;if(i&&(!(i instanceof at)||n+i.lookAhead<t)){r=n+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,r)}}var zt=!1,Mt=!1;function bn(){zt=!0}function jt(){Mt=!0}function ln(e,t,r){this.marker=e,this.from=t,this.to=r}function Sn(e,t){if(e)for(var r=0;r<e.length;++r){var n=e[r];if(n.marker==t)return n}}function Dt(e,t){for(var r,n=0;n<e.length;++n)e[n]!=t&&(r||(r=[])).push(e[n]);return r}function An(e,t){e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],t.marker.attachLine(e)}function _n(e,t,r){var n;if(e)for(var i=0;i<e.length;++i){var o=e[i],a=o.marker,l=o.from==null||(a.inclusiveLeft?o.from<=t:o.from<t);if(l||o.from==t&&a.type=="bookmark"&&(!r||!o.marker.insertLeft)){var s=o.to==null||(a.inclusiveRight?o.to>=t:o.to>t);(n||(n=[])).push(new ln(a,o.from,s?null:o.to))}}return n}function Nt(e,t,r){var n;if(e)for(var i=0;i<e.length;++i){var o=e[i],a=o.marker,l=o.to==null||(a.inclusiveRight?o.to>=t:o.to>t);if(l||o.from==t&&a.type=="bookmark"&&(!r||o.marker.insertLeft)){var s=o.from==null||(a.inclusiveLeft?o.from<=t:o.from<t);(n||(n=[])).push(new ln(a,s?null:o.from-t,o.to==null?null:o.to-t))}}return n}function vt(e,t){if(t.full)return null;var r=De(e,t.from.line)&&O(e,t.from.line).markedSpans,n=De(e,t.to.line)&&O(e,t.to.line).markedSpans;if(!r&&!n)return null;var i=t.from.ch,o=t.to.ch,a=ce(t.from,t.to)==0,l=_n(r,i,a),s=Nt(n,o,a),u=t.text.length==1,g=tt(t.text).length+(u?i:0);if(l)for(var y=0;y<l.length;++y){var N=l[y];if(N.to==null){var L=Sn(s,N.marker);L?u&&(N.to=L.to==null?null:L.to+g):N.to=i}}if(s)for(var ve=0;ve<s.length;++ve){var Oe=s[ve];if(Oe.to!=null&&(Oe.to+=g),Oe.from==null){var Be=Sn(l,Oe.marker);Be||(Oe.from=g,u&&(l||(l=[])).push(Oe))}else Oe.from+=g,u&&(l||(l=[])).push(Oe)}l&&(l=Et(l)),s&&s!=l&&(s=Et(s));var Qe=[l];if(!u){var st=t.text.length-2,Je;if(st>0&&l)for(var gt=0;gt<l.length;++gt)l[gt].to==null&&(Je||(Je=[])).push(new ln(l[gt].marker,null,null));for(var Ft=0;Ft<st;++Ft)Qe.push(Je);Qe.push(s)}return Qe}function Et(e){for(var t=0;t<e.length;++t){var r=e[t];r.from!=null&&r.from==r.to&&r.marker.clearWhenEmpty!==!1&&e.splice(t--,1)}return e.length?e:null}function un(e,t,r){var n=null;if(e.iter(t.line,r.line+1,function(L){if(L.markedSpans)for(var ve=0;ve<L.markedSpans.length;++ve){var Oe=L.markedSpans[ve].marker;Oe.readOnly&&(!n||ue(n,Oe)==-1)&&(n||(n=[])).push(Oe)}}),!n)return null;for(var i=[{from:t,to:r}],o=0;o<n.length;++o)for(var a=n[o],l=a.find(0),s=0;s<i.length;++s){var u=i[s];if(!(ce(u.to,l.from)<0||ce(u.from,l.to)>0)){var g=[s,1],y=ce(u.from,l.from),N=ce(u.to,l.to);(y<0||!a.inclusiveLeft&&!y)&&g.push({from:u.from,to:l.from}),(N>0||!a.inclusiveRight&&!N)&&g.push({from:l.to,to:u.to}),i.splice.apply(i,g),s+=g.length-3}}return i}function cn(e){var t=e.markedSpans;if(t){for(var r=0;r<t.length;++r)t[r].marker.detachLine(e);e.markedSpans=null}}function nn(e,t){if(t){for(var r=0;r<t.length;++r)t[r].marker.attachLine(e);e.markedSpans=t}}function Kt(e){return e.inclusiveLeft?-1:0}function mn(e){return e.inclusiveRight?1:0}function Cn(e,t){var r=e.lines.length-t.lines.length;if(r!=0)return r;var n=e.find(),i=t.find(),o=ce(n.from,i.from)||Kt(e)-Kt(t);if(o)return-o;var a=ce(n.to,i.to)||mn(e)-mn(t);return a||t.id-e.id}function Rn(e,t){var r=Mt&&e.markedSpans,n;if(r)for(var i=void 0,o=0;o<r.length;++o)i=r[o],i.marker.collapsed&&(t?i.from:i.to)==null&&(!n||Cn(n,i.marker)<0)&&(n=i.marker);return n}function rt(e){return Rn(e,!0)}function qe(e){return Rn(e,!1)}function lt(e,t){var r=Mt&&e.markedSpans,n;if(r)for(var i=0;i<r.length;++i){var o=r[i];o.marker.collapsed&&(o.from==null||o.from<t)&&(o.to==null||o.to>t)&&(!n||Cn(n,o.marker)<0)&&(n=o.marker)}return n}function Vt(e,t,r,n,i){var o=O(e,t),a=Mt&&o.markedSpans;if(a)for(var l=0;l<a.length;++l){var s=a[l];if(s.marker.collapsed){var u=s.marker.find(0),g=ce(u.from,r)||Kt(s.marker)-Kt(i),y=ce(u.to,n)||mn(s.marker)-mn(i);if(!(g>=0&&y<=0||g<=0&&y>=0)&&(g<=0&&(s.marker.inclusiveRight&&i.inclusiveLeft?ce(u.to,r)>=0:ce(u.to,r)>0)||g>=0&&(s.marker.inclusiveRight&&i.inclusiveLeft?ce(u.from,n)<=0:ce(u.from,n)<0)))return!0}}}function Zt(e){for(var t;t=rt(e);)e=t.find(-1,!0).line;return e}function er(e){for(var t;t=qe(e);)e=t.find(1,!0).line;return e}function ar(e){for(var t,r;t=qe(e);)e=t.find(1,!0).line,(r||(r=[])).push(e);return r}function Yn(e,t){var r=O(e,t),n=Zt(r);return r==n?t:ne(n)}function Gn(e,t){if(t>e.lastLine())return t;var r=O(e,t),n;if(!Wn(e,r))return t;for(;n=qe(r);)r=n.find(1,!0).line;return ne(r)+1}function Wn(e,t){var r=Mt&&t.markedSpans;if(r){for(var n=void 0,i=0;i<r.length;++i)if(n=r[i],!!n.marker.collapsed){if(n.from==null)return!0;if(!n.marker.widgetNode&&n.from==0&&n.marker.inclusiveLeft&&$n(e,t,n))return!0}}}function $n(e,t,r){if(r.to==null){var n=r.marker.find(1,!0);return $n(e,n.line,Sn(n.line.markedSpans,r.marker))}if(r.marker.inclusiveRight&&r.to==t.text.length)return!0;for(var i=void 0,o=0;o<t.markedSpans.length;++o)if(i=t.markedSpans[o],i.marker.collapsed&&!i.marker.widgetNode&&i.from==r.to&&(i.to==null||i.to!=r.from)&&(i.marker.inclusiveLeft||r.marker.inclusiveRight)&&$n(e,t,i))return!0}function Hn(e){e=Zt(e);for(var t=0,r=e.parent,n=0;n<r.lines.length;++n){var i=r.lines[n];if(i==e)break;t+=i.height}for(var o=r.parent;o;r=o,o=r.parent)for(var a=0;a<o.children.length;++a){var l=o.children[a];if(l==r)break;t+=l.height}return t}function Qn(e){if(e.height==0)return 0;for(var t=e.text.length,r,n=e;r=rt(n);){var i=r.find(0,!0);n=i.from.line,t+=i.from.ch-i.to.ch}for(n=e;r=qe(n);){var o=r.find(0,!0);t-=n.text.length-o.from.ch,n=o.to.line,t+=n.text.length-o.to.ch}return t}function Fn(e){var t=e.display,r=e.doc;t.maxLine=O(r,r.first),t.maxLineLength=Qn(t.maxLine),t.maxLineChanged=!0,r.iter(function(n){var i=Qn(n);i>t.maxLineLength&&(t.maxLineLength=i,t.maxLine=n)})}var Kn=function(e,t,r){this.text=e,nn(this,t),this.height=r?r(this):1};Kn.prototype.lineNo=function(){return ne(this)},Wt(Kn);function xr(e,t,r,n){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),cn(e),nn(e,r);var i=n?n(e):1;i!=e.height&&ee(e,i)}function Mr(e){e.parent=null,cn(e)}var vr={},Br={};function tr(e,t){if(!e||/^\s*$/.test(e))return null;var r=t.addModeClass?Br:vr;return r[e]||(r[e]=e.replace(/\S+/g,"cm-$&"))}function gr(e,t){var r=Ne("span",null,null,I?"padding-right: .1px":null),n={pre:Ne("pre",[r],"CodeMirror-line"),content:r,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var o=i?t.rest[i-1]:t.line,a=void 0;n.pos=0,n.addToken=ii,on(e.display.measure)&&(a=Le(o,e.doc.direction))&&(n.addToken=_r(n.addToken,a)),n.map=[];var l=t!=e.display.externalMeasured&&ne(o);ei(o,n,Qt(e,o,l)),o.styleClasses&&(o.styleClasses.bgClass&&(n.bgClass=Z(o.styleClasses.bgClass,n.bgClass||"")),o.styleClasses.textClass&&(n.textClass=Z(o.styleClasses.textClass,n.textClass||""))),n.map.length==0&&n.map.push(0,0,n.content.appendChild(sn(e.display.measure))),i==0?(t.measure.map=n.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(n.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(I){var s=n.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(n.content.className="cm-tab-wrap-hack")}return Fe(e,"renderLine",e,t.line,n.pre),n.pre.className&&(n.textClass=Z(n.pre.className,n.textClass||"")),n}function pr(e){var t=z("span","\u2022","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function ii(e,t,r,n,i,o,a){if(t){var l=e.splitSpaces?qr(t,e.trailingSpace):t,s=e.cm.state.specialChars,u=!1,g;if(!s.test(t))e.col+=t.length,g=document.createTextNode(l),e.map.push(e.pos,e.pos+t.length,g),v&&T<9&&(u=!0),e.pos+=t.length;else{g=document.createDocumentFragment();for(var y=0;;){s.lastIndex=y;var N=s.exec(t),L=N?N.index-y:t.length-y;if(L){var ve=document.createTextNode(l.slice(y,y+L));v&&T<9?g.appendChild(z("span",[ve])):g.appendChild(ve),e.map.push(e.pos,e.pos+L,ve),e.col+=L,e.pos+=L}if(!N)break;y+=L+1;var Oe=void 0;if(N[0]==" "){var Be=e.cm.options.tabSize,Qe=Be-e.col%Be;Oe=g.appendChild(z("span",dt(Qe),"cm-tab")),Oe.setAttribute("role","presentation"),Oe.setAttribute("cm-text"," "),e.col+=Qe}else N[0]=="\r"||N[0]==`
`?(Oe=g.appendChild(z("span",N[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Oe.setAttribute("cm-text",N[0]),e.col+=1):(Oe=e.cm.options.specialCharPlaceholder(N[0]),Oe.setAttribute("cm-text",N[0]),v&&T<9?g.appendChild(z("span",[Oe])):g.appendChild(Oe),e.col+=1);e.map.push(e.pos,e.pos+1,Oe),e.pos++}}if(e.trailingSpace=l.charCodeAt(t.length-1)==32,r||n||i||u||o||a){var st=r||"";n&&(st+=n),i&&(st+=i);var Je=z("span",[g],st,o);if(a)for(var gt in a)a.hasOwnProperty(gt)&&gt!="style"&&gt!="class"&&Je.setAttribute(gt,a[gt]);return e.content.appendChild(Je)}e.content.appendChild(g)}}function qr(e,t){if(e.length>1&&!/ /.test(e))return e;for(var r=t,n="",i=0;i<e.length;i++){var o=e.charAt(i);o==" "&&r&&(i==e.length-1||e.charCodeAt(i+1)==32)&&(o="\xA0"),n+=o,r=o==" "}return n}function _r(e,t){return function(r,n,i,o,a,l,s){i=i?i+" cm-force-border":"cm-force-border";for(var u=r.pos,g=u+n.length;;){for(var y=void 0,N=0;N<t.length&&(y=t[N],!(y.to>u&&y.from<=u));N++);if(y.to>=g)return e(r,n,i,o,a,l,s);e(r,n.slice(0,y.to-u),i,o,null,l,s),o=null,n=n.slice(y.to-u),u=y.to}}}function jr(e,t,r,n){var i=!n&&r.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!n&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",r.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function ei(e,t,r){var n=e.markedSpans,i=e.text,o=0;if(!n){for(var a=1;a<r.length;a+=2)t.addToken(t,i.slice(o,o=r[a]),tr(r[a+1],t.cm.options));return}for(var l=i.length,s=0,u=1,g="",y,N,L=0,ve,Oe,Be,Qe,st;;){if(L==s){ve=Oe=Be=N="",st=null,Qe=null,L=1/0;for(var Je=[],gt=void 0,Ft=0;Ft<n.length;++Ft){var Pt=n[Ft],vn=Pt.marker;if(vn.type=="bookmark"&&Pt.from==s&&vn.widgetNode)Je.push(vn);else if(Pt.from<=s&&(Pt.to==null||Pt.to>s||vn.collapsed&&Pt.to==s&&Pt.from==s)){if(Pt.to!=null&&Pt.to!=s&&L>Pt.to&&(L=Pt.to,Oe=""),vn.className&&(ve+=" "+vn.className),vn.css&&(N=(N?N+";":"")+vn.css),vn.startStyle&&Pt.from==s&&(Be+=" "+vn.startStyle),vn.endStyle&&Pt.to==L&&(gt||(gt=[])).push(vn.endStyle,Pt.to),vn.title&&((st||(st={})).title=vn.title),vn.attributes)for(var zn in vn.attributes)(st||(st={}))[zn]=vn.attributes[zn];vn.collapsed&&(!Qe||Cn(Qe.marker,vn)<0)&&(Qe=Pt)}else Pt.from>s&&L>Pt.from&&(L=Pt.from)}if(gt)for(var fr=0;fr<gt.length;fr+=2)gt[fr+1]==L&&(Oe+=" "+gt[fr]);if(!Qe||Qe.from==s)for(var Vn=0;Vn<Je.length;++Vn)jr(t,0,Je[Vn]);if(Qe&&(Qe.from||0)==s){if(jr(t,(Qe.to==null?l+1:Qe.to)-s,Qe.marker,Qe.from==null),Qe.to==null)return;Qe.to==s&&(Qe=!1)}}if(s>=l)break;for(var Hr=Math.min(l,L);;){if(g){var Dr=s+g.length;if(!Qe){var nr=Dr>Hr?g.slice(0,Hr-s):g;t.addToken(t,nr,y?y+ve:ve,Be,s+nr.length==L?Oe:"",N,st)}if(Dr>=Hr){g=g.slice(Hr-s),s=Hr;break}s=Dr,Be=""}g=i.slice(o,o=r[u++]),y=tr(r[u++],t.cm.options)}}}function ti(e,t,r){this.line=t,this.rest=ar(t),this.size=this.rest?ne(tt(this.rest))-r+1:1,this.node=this.text=null,this.hidden=Wn(e,t)}function $r(e,t,r){for(var n=[],i,o=t;o<r;o=i){var a=new ti(e.doc,O(e.doc,o),o);i=o+a.size,n.push(a)}return n}var Ir=null;function Xr(e){Ir?Ir.ops.push(e):e.ownsGroup=Ir={ops:[e],delayedCallbacks:[]}}function St(e){var t=e.delayedCallbacks,r=0;do{for(;r<t.length;r++)t[r].call(null);for(var n=0;n<e.ops.length;n++){var i=e.ops[n];if(i.cursorActivityHandlers)for(;i.cursorActivityCalled<i.cursorActivityHandlers.length;)i.cursorActivityHandlers[i.cursorActivityCalled++].call(null,i.cm)}}while(r<t.length)}function Gt(e,t){var r=e.ownsGroup;if(r)try{St(r)}finally{Ir=null,t(r)}}var mt=null;function pt(e,t){var r=_e(e,t);if(r.length){var n=Array.prototype.slice.call(arguments,2),i;Ir?i=Ir.delayedCallbacks:mt?i=mt:(i=mt=[],setTimeout(xn,0));for(var o=function(l){i.push(function(){return r[l].apply(null,n)})},a=0;a<r.length;++a)o(a)}}function xn(){var e=mt;mt=null;for(var t=0;t<e.length;++t)e[t]()}function On(e,t,r,n){for(var i=0;i<t.changes.length;i++){var o=t.changes[i];o=="text"?kn(e,t):o=="gutter"?Yr(e,t,r,n):o=="class"?yr(e,t):o=="widget"&&oi(e,t,n)}t.changes=null}function Jn(e){return e.node==e.text&&(e.node=z("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),v&&T<8&&(e.node.style.zIndex=2)),e.node}function lr(e,t){var r=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(r&&(r+=" CodeMirror-linebackground"),t.background)r?t.background.className=r:(t.background.parentNode.removeChild(t.background),t.background=null);else if(r){var n=Jn(t);t.background=n.insertBefore(z("div",null,r),n.firstChild),e.display.input.setUneditable(t.background)}}function mr(e,t){var r=e.display.externalMeasured;return r&&r.line==t.line?(e.display.externalMeasured=null,t.measure=r.measure,r.built):gr(e,t)}function kn(e,t){var r=t.text.className,n=mr(e,t);t.text==t.node&&(t.node=n.pre),t.text.parentNode.replaceChild(n.pre,t.text),t.text=n.pre,n.bgClass!=t.bgClass||n.textClass!=t.textClass?(t.bgClass=n.bgClass,t.textClass=n.textClass,yr(e,t)):r&&(t.text.className=r)}function yr(e,t){lr(e,t),t.line.wrapClass?Jn(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var r=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=r||""}function Yr(e,t,r,n){if(t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass){var i=Jn(t);t.gutterBackground=z("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?n.fixedPos:-n.gutterTotalWidth)+"px; width: "+n.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),i.insertBefore(t.gutterBackground,t.text)}var o=t.line.gutterMarkers;if(e.options.lineNumbers||o){var a=Jn(t),l=t.gutter=z("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?n.fixedPos:-n.gutterTotalWidth)+"px");if(e.display.input.setUneditable(l),a.insertBefore(l,t.text),t.line.gutterClass&&(l.className+=" "+t.line.gutterClass),e.options.lineNumbers&&(!o||!o["CodeMirror-linenumbers"])&&(t.lineNumber=l.appendChild(z("div",Ue(e.options,r),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+n.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),o)for(var s=0;s<e.display.gutterSpecs.length;++s){var u=e.display.gutterSpecs[s].className,g=o.hasOwnProperty(u)&&o[u];g&&l.appendChild(z("div",[g],"CodeMirror-gutter-elt","left: "+n.gutterLeft[u]+"px; width: "+n.gutterWidth[u]+"px"))}}}function oi(e,t,r){t.alignable&&(t.alignable=null);for(var n=f("CodeMirror-linewidget"),i=t.node.firstChild,o=void 0;i;i=o)o=i.nextSibling,n.test(i.className)&&t.node.removeChild(i);Fr(e,t,r)}function ci(e,t,r,n){var i=mr(e,t);return t.text=t.node=i.pre,i.bgClass&&(t.bgClass=i.bgClass),i.textClass&&(t.textClass=i.textClass),yr(e,t),Yr(e,t,r,n),Fr(e,t,n),t.node}function Fr(e,t,r){if(ft(e,t.line,t,r,!0),t.rest)for(var n=0;n<t.rest.length;n++)ft(e,t.rest[n],t,r,!1)}function ft(e,t,r,n,i){if(t.widgets)for(var o=Jn(r),a=0,l=t.widgets;a<l.length;++a){var s=l[a],u=z("div",[s.node],"CodeMirror-linewidget"+(s.className?" "+s.className:""));s.handleMouseEvents||u.setAttribute("cm-ignore-events","true"),Xt(s,u,r,n),e.display.input.setUneditable(u),i&&s.above?o.insertBefore(u,r.gutter||r.text):o.appendChild(u),pt(s,"redraw")}}function Xt(e,t,r,n){if(e.noHScroll){(r.alignable||(r.alignable=[])).push(t);var i=n.wrapperWidth;t.style.left=n.fixedPos+"px",e.coverGutter||(i-=n.gutterTotalWidth,t.style.paddingLeft=n.gutterTotalWidth+"px"),t.style.width=i+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-n.gutterTotalWidth+"px"))}function In(e){if(e.height!=null)return e.height;var t=e.doc.cm;if(!t)return 0;if(!R(document.body,e.node)){var r="position: relative;";e.coverGutter&&(r+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(r+="width: "+t.display.wrapper.clientWidth+"px;"),q(t.display.measure,z("div",[e.node],null,r))}return e.height=e.node.parentNode.offsetHeight}function Tn(e,t){for(var r=tn(t);r!=e.wrapper;r=r.parentNode)if(!r||r.nodeType==1&&r.getAttribute("cm-ignore-events")=="true"||r.parentNode==e.sizer&&r!=e.mover)return!0}function Nn(e){return e.lineSpace.offsetTop}function ni(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function fi(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=q(e.measure,z("pre","x","CodeMirror-line-like")),r=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,n={left:parseInt(r.paddingLeft),right:parseInt(r.paddingRight)};return!isNaN(n.left)&&!isNaN(n.right)&&(e.cachedPaddingH=n),n}function Rr(e){return Ze-e.display.nativeBarWidth}function Lr(e){return e.display.scroller.clientWidth-Rr(e)-e.display.barWidth}function _i(e){return e.display.scroller.clientHeight-Rr(e)-e.display.barHeight}function So(e,t,r){var n=e.options.lineWrapping,i=n&&Lr(e);if(!t.measure.heights||n&&t.measure.width!=i){var o=t.measure.heights=[];if(n){t.measure.width=i;for(var a=t.text.firstChild.getClientRects(),l=0;l<a.length-1;l++){var s=a[l],u=a[l+1];Math.abs(s.bottom-u.bottom)>2&&o.push((s.bottom+u.top)/2-r.top)}}o.push(r.bottom-r.top)}}function Vi(e,t,r){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var n=0;n<e.rest.length;n++)if(e.rest[n]==t)return{map:e.measure.maps[n],cache:e.measure.caches[n]};for(var i=0;i<e.rest.length;i++)if(ne(e.rest[i])>r)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}function jo(e,t){t=Zt(t);var r=ne(t),n=e.display.externalMeasured=new ti(e.doc,t,r);n.lineN=r;var i=n.built=gr(e,n);return n.text=i.pre,q(e.display.lineMeasure,i.pre),n}function Gi(e,t,r,n){return Vr(e,di(e,t),r,n)}function Xi(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[wi(e,t)];var r=e.display.externalMeasured;if(r&&t>=r.lineN&&t<r.lineN+r.size)return r}function di(e,t){var r=ne(t),n=Xi(e,r);n&&!n.text?n=null:n&&n.changes&&(On(e,n,r,_o(e)),e.curOp.forceUpdate=!0),n||(n=jo(e,t));var i=Vi(n,t,r);return{line:t,view:n,rect:null,map:i.map,cache:i.cache,before:i.before,hasHeights:!1}}function Vr(e,t,r,n,i){t.before&&(r=-1);var o=r+(n||""),a;return t.cache.hasOwnProperty(o)?a=t.cache[o]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(So(e,t.view,t.rect),t.hasHeights=!0),a=wn(e,t,r,n),a.bogus||(t.cache[o]=a)),{left:a.left,right:a.right,top:i?a.rtop:a.top,bottom:i?a.rbottom:a.bottom}}var Co={left:0,right:0,top:0,bottom:0};function Yi(e,t,r){for(var n,i,o,a,l,s,u=0;u<e.length;u+=3)if(l=e[u],s=e[u+1],t<l?(i=0,o=1,a="left"):t<s?(i=t-l,o=i+1):(u==e.length-3||t==s&&e[u+3]>t)&&(o=s-l,i=o-1,t>=s&&(a="right")),i!=null){if(n=e[u+2],l==s&&r==(n.insertLeft?"left":"right")&&(a=r),r=="left"&&i==0)for(;u&&e[u-2]==e[u-3]&&e[u-1].insertLeft;)n=e[(u-=3)+2],a="left";if(r=="right"&&i==s-l)for(;u<e.length-3&&e[u+3]==e[u+4]&&!e[u+5].insertLeft;)n=e[(u+=3)+2],a="right";break}return{node:n,start:i,end:o,collapse:a,coverStart:l,coverEnd:s}}function Qi(e,t){var r=Co;if(t=="left")for(var n=0;n<e.length&&(r=e[n]).left==r.right;n++);else for(var i=e.length-1;i>=0&&(r=e[i]).left==r.right;i--);return r}function wn(e,t,r,n){var i=Yi(t.map,r,n),o=i.node,a=i.start,l=i.end,s=i.collapse,u;if(o.nodeType==3){for(var g=0;g<4;g++){for(;a&&oe(t.line.text.charAt(i.coverStart+a));)--a;for(;i.coverStart+l<i.coverEnd&&oe(t.line.text.charAt(i.coverStart+l));)++l;if(v&&T<9&&a==0&&l==i.coverEnd-i.coverStart?u=o.parentNode.getBoundingClientRect():u=Qi(ie(o,a,l).getClientRects(),n),u.left||u.right||a==0)break;l=a,a=a-1,s="right"}v&&T<11&&(u=hn(e.display.measure,u))}else{a>0&&(s=n="right");var y;e.options.lineWrapping&&(y=o.getClientRects()).length>1?u=y[n=="right"?y.length-1:0]:u=o.getBoundingClientRect()}if(v&&T<9&&!a&&(!u||!u.left&&!u.right)){var N=o.parentNode.getClientRects()[0];N?u={left:N.left,right:N.left+Pi(e.display),top:N.top,bottom:N.bottom}:u=Co}for(var L=u.top-t.rect.top,ve=u.bottom-t.rect.top,Oe=(L+ve)/2,Be=t.view.measure.heights,Qe=0;Qe<Be.length-1&&!(Oe<Be[Qe]);Qe++);var st=Qe?Be[Qe-1]:0,Je=Be[Qe],gt={left:(s=="right"?u.right:u.left)-t.rect.left,right:(s=="left"?u.left:u.right)-t.rect.left,top:st,bottom:Je};return!u.left&&!u.right&&(gt.bogus=!0),e.options.singleCursorHeightPerLine||(gt.rtop=L,gt.rbottom=ve),gt}function hn(e,t){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!yn(e))return t;var r=screen.logicalXDPI/screen.deviceXDPI,n=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*r,right:t.right*r,top:t.top*n,bottom:t.bottom*n}}function sr(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function br(e){e.display.externalMeasure=null,P(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)sr(e.display.view[t])}function Bn(e){br(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function wr(){return se&&ge?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function zr(){return se&&ge?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function ai(e){var t=0;if(e.widgets)for(var r=0;r<e.widgets.length;++r)e.widgets[r].above&&(t+=In(e.widgets[r]));return t}function Kr(e,t,r,n,i){if(!i){var o=ai(t);r.top+=o,r.bottom+=o}if(n=="line")return r;n||(n="local");var a=Hn(t);if(n=="local"?a+=Nn(e.display):a-=e.display.viewOffset,n=="page"||n=="window"){var l=e.display.lineSpace.getBoundingClientRect();a+=l.top+(n=="window"?0:zr());var s=l.left+(n=="window"?0:wr());r.left+=s,r.right+=s}return r.top+=a,r.bottom+=a,r}function li(e,t,r){if(r=="div")return t;var n=t.left,i=t.top;if(r=="page")n-=wr(),i-=zr();else if(r=="local"||!r){var o=e.display.sizer.getBoundingClientRect();n+=o.left,i+=o.top}var a=e.display.lineSpace.getBoundingClientRect();return{left:n-a.left,top:i-a.top}}function Gr(e,t,r,n,i){return n||(n=O(e.doc,t.line)),Kr(e,n,Gi(e,n,t.ch,i),r)}function Zr(e,t,r,n,i,o){n=n||O(e.doc,t.line),i||(i=di(e,n));function a(ve,Oe){var Be=Vr(e,i,ve,Oe?"right":"left",o);return Oe?Be.left=Be.right:Be.right=Be.left,Kr(e,n,Be,r)}var l=Le(n,e.doc.direction),s=t.ch,u=t.sticky;if(s>=n.text.length?(s=n.text.length,u="before"):s<=0&&(s=0,u="after"),!l)return a(u=="before"?s-1:s,u=="before");function g(ve,Oe,Be){var Qe=l[Oe],st=Qe.level==1;return a(Be?ve-1:ve,st!=Be)}var y=xe(l,s,u),N=we,L=g(s,y,u=="before");return N!=null&&(L.other=g(s,N,u!="before")),L}function Ca(e,t){var r=0;t=me(e.doc,t),e.options.lineWrapping||(r=Pi(e.display)*t.ch);var n=O(e.doc,t.line),i=Hn(n)+Nn(e.display);return{left:r,right:r,top:i,bottom:i+n.height}}function Ko(e,t,r,n,i){var o=A(e,t,r);return o.xRel=i,n&&(o.outside=n),o}function ko(e,t,r){var n=e.doc;if(r+=e.display.viewOffset,r<0)return Ko(n.first,0,null,-1,-1);var i=he(n,r),o=n.first+n.size-1;if(i>o)return Ko(n.first+n.size-1,O(n,o).text.length,null,1,1);t<0&&(t=0);for(var a=O(n,i);;){var l=Bl(e,a,i,t,r),s=lt(a,l.ch+(l.xRel>0||l.outside>0?1:0));if(!s)return l;var u=s.find(1);if(u.line==i)return u;a=O(n,i=u.line)}}function xa(e,t,r,n){n-=ai(t);var i=t.text.length,o=de(function(a){return Vr(e,r,a-1).bottom<=n},i,0);return i=de(function(a){return Vr(e,r,a).top>n},o,i),{begin:o,end:i}}function wa(e,t,r,n){r||(r=di(e,t));var i=Kr(e,t,Vr(e,r,n),"line").top;return xa(e,t,r,i)}function Uo(e,t,r,n){return e.bottom<=r?!1:e.top>r?!0:(n?e.left:e.right)>t}function Bl(e,t,r,n,i){i-=Hn(t);var o=di(e,t),a=ai(t),l=0,s=t.text.length,u=!0,g=Le(t,e.doc.direction);if(g){var y=(e.options.lineWrapping?Kl:jl)(e,t,r,o,g,n,i);u=y.level!=1,l=u?y.from:y.to-1,s=u?y.to:y.from-1}var N=null,L=null,ve=de(function(Ft){var Pt=Vr(e,o,Ft);return Pt.top+=a,Pt.bottom+=a,Uo(Pt,n,i,!1)?(Pt.top<=i&&Pt.left<=n&&(N=Ft,L=Pt),!0):!1},l,s),Oe,Be,Qe=!1;if(L){var st=n-L.left<L.right-n,Je=st==u;ve=N+(Je?0:1),Be=Je?"after":"before",Oe=st?L.left:L.right}else{!u&&(ve==s||ve==l)&&ve++,Be=ve==0?"after":ve==t.text.length?"before":Vr(e,o,ve-(u?1:0)).bottom+a<=i==u?"after":"before";var gt=Zr(e,A(r,ve,Be),"line",t,o);Oe=gt.left,Qe=i<gt.top?-1:i>=gt.bottom?1:0}return ve=ae(t.text,ve,1),Ko(r,ve,Be,Qe,n-Oe)}function jl(e,t,r,n,i,o,a){var l=de(function(y){var N=i[y],L=N.level!=1;return Uo(Zr(e,A(r,L?N.to:N.from,L?"before":"after"),"line",t,n),o,a,!0)},0,i.length-1),s=i[l];if(l>0){var u=s.level!=1,g=Zr(e,A(r,u?s.from:s.to,u?"after":"before"),"line",t,n);Uo(g,o,a,!0)&&g.top>a&&(s=i[l-1])}return s}function Kl(e,t,r,n,i,o,a){var l=xa(e,t,n,a),s=l.begin,u=l.end;/\s/.test(t.text.charAt(u-1))&&u--;for(var g=null,y=null,N=0;N<i.length;N++){var L=i[N];if(!(L.from>=u||L.to<=s)){var ve=L.level!=1,Oe=Vr(e,n,ve?Math.min(u,L.to)-1:Math.max(s,L.from)).right,Be=Oe<o?o-Oe+1e9:Oe-o;(!g||y>Be)&&(g=L,y=Be)}}return g||(g=i[i.length-1]),g.from<s&&(g={from:s,to:g.to,level:g.level}),g.to>u&&(g={from:g.from,to:u,level:g.level}),g}var Ci;function Ti(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(Ci==null){Ci=z("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)Ci.appendChild(document.createTextNode("x")),Ci.appendChild(z("br"));Ci.appendChild(document.createTextNode("x"))}q(e.measure,Ci);var r=Ci.offsetHeight/50;return r>3&&(e.cachedTextHeight=r),P(e.measure),r||1}function Pi(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var t=z("span","xxxxxxxxxx"),r=z("pre",[t],"CodeMirror-line-like");q(e.measure,r);var n=t.getBoundingClientRect(),i=(n.right-n.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function _o(e){for(var t=e.display,r={},n={},i=t.gutters.clientLeft,o=t.gutters.firstChild,a=0;o;o=o.nextSibling,++a){var l=e.display.gutterSpecs[a].className;r[l]=o.offsetLeft+o.clientLeft+i,n[l]=o.clientWidth}return{fixedPos:Vo(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:r,gutterWidth:n,wrapperWidth:t.wrapper.clientWidth}}function Vo(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Ea(e){var t=Ti(e.display),r=e.options.lineWrapping,n=r&&Math.max(5,e.display.scroller.clientWidth/Pi(e.display)-3);return function(i){if(Wn(e.doc,i))return 0;var o=0;if(i.widgets)for(var a=0;a<i.widgets.length;a++)i.widgets[a].height&&(o+=i.widgets[a].height);return r?o+(Math.ceil(i.text.length/n)||1)*t:o+t}}function Go(e){var t=e.doc,r=Ea(e);t.iter(function(n){var i=r(n);i!=n.height&&ee(n,i)})}function xi(e,t,r,n){var i=e.display;if(!r&&tn(t).getAttribute("cm-not-content")=="true")return null;var o,a,l=i.lineSpace.getBoundingClientRect();try{o=t.clientX-l.left,a=t.clientY-l.top}catch(y){return null}var s=ko(e,o,a),u;if(n&&s.xRel>0&&(u=O(e.doc,s.line).text).length==s.ch){var g=V(u,u.length,e.options.tabSize)-u.length;s=A(s.line,Math.max(0,Math.round((o-fi(e.display).left)/Pi(e.display))-g))}return s}function wi(e,t){if(t>=e.display.viewTo||(t-=e.display.viewFrom,t<0))return null;for(var r=e.display.view,n=0;n<r.length;n++)if(t-=r[n].size,t<0)return n}function Tr(e,t,r,n){t==null&&(t=e.doc.first),r==null&&(r=e.doc.first+e.doc.size),n||(n=0);var i=e.display;if(n&&r<i.viewTo&&(i.updateLineNumbers==null||i.updateLineNumbers>t)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)Mt&&Yn(e.doc,t)<i.viewTo&&vi(e);else if(r<=i.viewFrom)Mt&&Gn(e.doc,r+n)>i.viewFrom?vi(e):(i.viewFrom+=n,i.viewTo+=n);else if(t<=i.viewFrom&&r>=i.viewTo)vi(e);else if(t<=i.viewFrom){var o=xo(e,r,r+n,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=n):vi(e)}else if(r>=i.viewTo){var a=xo(e,t,t,-1);a?(i.view=i.view.slice(0,a.index),i.viewTo=a.lineN):vi(e)}else{var l=xo(e,t,t,-1),s=xo(e,r,r+n,1);l&&s?(i.view=i.view.slice(0,l.index).concat($r(e,l.lineN,s.lineN)).concat(i.view.slice(s.index)),i.viewTo+=n):vi(e)}var u=i.externalMeasured;u&&(r<u.lineN?u.lineN+=n:t<u.lineN+u.size&&(i.externalMeasured=null))}function hi(e,t,r){e.curOp.viewChanged=!0;var n=e.display,i=e.display.externalMeasured;if(i&&t>=i.lineN&&t<i.lineN+i.size&&(n.externalMeasured=null),!(t<n.viewFrom||t>=n.viewTo)){var o=n.view[wi(e,t)];if(o.node!=null){var a=o.changes||(o.changes=[]);ue(a,r)==-1&&a.push(r)}}}function vi(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function xo(e,t,r,n){var i=wi(e,t),o,a=e.display.view;if(!Mt||r==e.doc.first+e.doc.size)return{index:i,lineN:r};for(var l=e.display.viewFrom,s=0;s<i;s++)l+=a[s].size;if(l!=t){if(n>0){if(i==a.length-1)return null;o=l+a[i].size-t,i++}else o=l-t;t+=o,r+=o}for(;Yn(e.doc,r)!=r;){if(i==(n<0?0:a.length-1))return null;r+=n*a[i-(n<0?1:0)].size,i+=n}return{index:i,lineN:r}}function kl(e,t,r){var n=e.display,i=n.view;i.length==0||t>=n.viewTo||r<=n.viewFrom?(n.view=$r(e,t,r),n.viewFrom=t):(n.viewFrom>t?n.view=$r(e,t,n.viewFrom).concat(n.view):n.viewFrom<t&&(n.view=n.view.slice(wi(e,t))),n.viewFrom=t,n.viewTo<r?n.view=n.view.concat($r(e,n.viewTo,r)):n.viewTo>r&&(n.view=n.view.slice(0,wi(e,r)))),n.viewTo=r}function Oa(e){for(var t=e.display.view,r=0,n=0;n<t.length;n++){var i=t[n];!i.hidden&&(!i.node||i.changes)&&++r}return r}function Ji(e){e.display.input.showSelection(e.display.input.prepareSelection())}function Ma(e,t){t===void 0&&(t=!0);for(var r=e.doc,n={},i=n.cursors=document.createDocumentFragment(),o=n.selection=document.createDocumentFragment(),a=0;a<r.sel.ranges.length;a++)if(!(!t&&a==r.sel.primIndex)){var l=r.sel.ranges[a];if(!(l.from().line>=e.display.viewTo||l.to().line<e.display.viewFrom)){var s=l.empty();(s||e.options.showCursorWhenSelecting)&&Ia(e,l.head,i),s||Ul(e,l,o)}}return n}function Ia(e,t,r){var n=Zr(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),i=r.appendChild(z("div","\xA0","CodeMirror-cursor"));if(i.style.left=n.left+"px",i.style.top=n.top+"px",i.style.height=Math.max(0,n.bottom-n.top)*e.options.cursorHeight+"px",n.other){var o=r.appendChild(z("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));o.style.display="",o.style.left=n.other.left+"px",o.style.top=n.other.top+"px",o.style.height=(n.other.bottom-n.other.top)*.85+"px"}}function wo(e,t){return e.top-t.top||e.left-t.left}function Ul(e,t,r){var n=e.display,i=e.doc,o=document.createDocumentFragment(),a=fi(e.display),l=a.left,s=Math.max(n.sizerWidth,Lr(e)-n.sizer.offsetLeft)-a.right,u=i.direction=="ltr";function g(Je,gt,Ft,Pt){gt<0&&(gt=0),gt=Math.round(gt),Pt=Math.round(Pt),o.appendChild(z("div",null,"CodeMirror-selected","position: absolute; left: "+Je+`px;
top: `+gt+"px; width: "+(Ft==null?s-Je:Ft)+`px;
height: `+(Pt-gt)+"px"))}function y(Je,gt,Ft){var Pt=O(i,Je),vn=Pt.text.length,zn,fr;function Vn(nr,Nr){return Gr(e,A(Je,nr),"div",Pt,Nr)}function Hr(nr,Nr,hr){var ir=wa(e,Pt,null,nr),rr=Nr=="ltr"==(hr=="after")?"left":"right",Xn=hr=="after"?ir.begin:ir.end-(/\s/.test(Pt.text.charAt(ir.end-1))?2:1);return Vn(Xn,rr)[rr]}var Dr=Le(Pt,i.direction);return Ie(Dr,gt||0,Ft==null?vn:Ft,function(nr,Nr,hr,ir){var rr=hr=="ltr",Xn=Vn(nr,rr?"left":"right"),Ar=Vn(Nr-1,rr?"right":"left"),ki=gt==null&&nr==0,Si=Ft==null&&Nr==vn,Cr=ir==0,ri=!Dr||ir==Dr.length-1;if(Ar.top-Xn.top<=3){var dr=(u?ki:Si)&&Cr,ba=(u?Si:ki)&&ri,ui=dr?l:(rr?Xn:Ar).left,Ri=ba?s:(rr?Ar:Xn).right;g(ui,Xn.top,Ri-ui,Xn.bottom)}else{var Li,Or,Ui,Sa;rr?(Li=u&&ki&&Cr?l:Xn.left,Or=u?s:Hr(nr,hr,"before"),Ui=u?l:Hr(Nr,hr,"after"),Sa=u&&Si&&ri?s:Ar.right):(Li=u?Hr(nr,hr,"before"):l,Or=!u&&ki&&Cr?s:Xn.right,Ui=!u&&Si&&ri?l:Ar.left,Sa=u?Hr(Nr,hr,"after"):s),g(Li,Xn.top,Or-Li,Xn.bottom),Xn.bottom<Ar.top&&g(l,Xn.bottom,null,Ar.top),g(Ui,Ar.top,Sa-Ui,Ar.bottom)}(!zn||wo(Xn,zn)<0)&&(zn=Xn),wo(Ar,zn)<0&&(zn=Ar),(!fr||wo(Xn,fr)<0)&&(fr=Xn),wo(Ar,fr)<0&&(fr=Ar)}),{start:zn,end:fr}}var N=t.from(),L=t.to();if(N.line==L.line)y(N.line,N.ch,L.ch);else{var ve=O(i,N.line),Oe=O(i,L.line),Be=Zt(ve)==Zt(Oe),Qe=y(N.line,N.ch,Be?ve.text.length+1:null).end,st=y(L.line,Be?0:null,L.ch).start;Be&&(Qe.top<st.top-2?(g(Qe.right,Qe.top,null,Qe.bottom),g(l,st.top,st.left,st.bottom)):g(Qe.right,Qe.top,st.left-Qe.right,Qe.bottom)),Qe.bottom<st.top&&g(l,Qe.bottom,null,st.top)}r.appendChild(o)}function Xo(e){if(e.state.focused){var t=e.display;clearInterval(t.blinker);var r=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval(function(){e.hasFocus()||Di(e),t.cursorDiv.style.visibility=(r=!r)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Ra(e){e.state.focused||(e.display.input.focus(),Yo(e))}function La(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,Di(e))},100)}function Yo(e,t){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),e.options.readOnly!="nocursor"&&(e.state.focused||(Fe(e,"focus",e,t),e.state.focused=!0,$(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),I&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),Xo(e))}function Di(e,t){e.state.delayingBlurEvent||(e.state.focused&&(Fe(e,"blur",e,t),e.state.focused=!1,b(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function Eo(e){for(var t=e.display,r=t.lineDiv.offsetTop,n=0;n<t.view.length;n++){var i=t.view[n],o=e.options.lineWrapping,a=void 0,l=0;if(!i.hidden){if(v&&T<8){var s=i.node.offsetTop+i.node.offsetHeight;a=s-r,r=s}else{var u=i.node.getBoundingClientRect();a=u.bottom-u.top,!o&&i.text.firstChild&&(l=i.text.firstChild.getBoundingClientRect().right-u.left-1)}var g=i.line.height-a;if((g>.005||g<-.005)&&(ee(i.line,a),Ta(i.line),i.rest))for(var y=0;y<i.rest.length;y++)Ta(i.rest[y]);if(l>e.display.sizerWidth){var N=Math.ceil(l/Pi(e.display));N>e.display.maxLineLength&&(e.display.maxLineLength=N,e.display.maxLine=i.line,e.display.maxLineChanged=!0)}}}}function Ta(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var r=e.widgets[t],n=r.node.parentNode;n&&(r.height=n.offsetHeight)}}function Oo(e,t,r){var n=r&&r.top!=null?Math.max(0,r.top):e.scroller.scrollTop;n=Math.floor(n-Nn(e));var i=r&&r.bottom!=null?r.bottom:n+e.wrapper.clientHeight,o=he(t,n),a=he(t,i);if(r&&r.ensure){var l=r.ensure.from.line,s=r.ensure.to.line;l<o?(o=l,a=he(t,Hn(O(t,l))+e.wrapper.clientHeight)):Math.min(s,t.lastLine())>=a&&(o=he(t,Hn(O(t,s))-e.wrapper.clientHeight),a=s)}return{from:o,to:Math.max(a,o+1)}}function _l(e,t){if(!Xe(e,"scrollCursorIntoView")){var r=e.display,n=r.sizer.getBoundingClientRect(),i=null;if(t.top+n.top<0?i=!0:t.bottom+n.top>(window.innerHeight||document.documentElement.clientHeight)&&(i=!1),i!=null&&!pe){var o=z("div","\u200B",null,`position: absolute;
top: `+(t.top-r.viewOffset-Nn(e.display))+`px;
height: `+(t.bottom-t.top+Rr(e)+r.barHeight)+`px;
left: `+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(o),o.scrollIntoView(i),e.display.lineSpace.removeChild(o)}}}function Vl(e,t,r,n){n==null&&(n=0);var i;!e.options.lineWrapping&&t==r&&(t=t.ch?A(t.line,t.sticky=="before"?t.ch-1:t.ch,"after"):t,r=t.sticky=="before"?A(t.line,t.ch+1,"before"):t);for(var o=0;o<5;o++){var a=!1,l=Zr(e,t),s=!r||r==t?l:Zr(e,r);i={left:Math.min(l.left,s.left),top:Math.min(l.top,s.top)-n,right:Math.max(l.left,s.left),bottom:Math.max(l.bottom,s.bottom)+n};var u=Qo(e,i),g=e.doc.scrollTop,y=e.doc.scrollLeft;if(u.scrollTop!=null&&(eo(e,u.scrollTop),Math.abs(e.doc.scrollTop-g)>1&&(a=!0)),u.scrollLeft!=null&&(Ei(e,u.scrollLeft),Math.abs(e.doc.scrollLeft-y)>1&&(a=!0)),!a)break}return i}function Gl(e,t){var r=Qo(e,t);r.scrollTop!=null&&eo(e,r.scrollTop),r.scrollLeft!=null&&Ei(e,r.scrollLeft)}function Qo(e,t){var r=e.display,n=Ti(e.display);t.top<0&&(t.top=0);var i=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:r.scroller.scrollTop,o=_i(e),a={};t.bottom-t.top>o&&(t.bottom=t.top+o);var l=e.doc.height+ni(r),s=t.top<n,u=t.bottom>l-n;if(t.top<i)a.scrollTop=s?0:t.top;else if(t.bottom>i+o){var g=Math.min(t.top,(u?l:t.bottom)-o);g!=i&&(a.scrollTop=g)}var y=e.options.fixedGutter?0:r.gutters.offsetWidth,N=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:r.scroller.scrollLeft-y,L=Lr(e)-r.gutters.offsetWidth,ve=t.right-t.left>L;return ve&&(t.right=t.left+L),t.left<10?a.scrollLeft=0:t.left<N?a.scrollLeft=Math.max(0,t.left+y-(ve?0:10)):t.right>L+N-3&&(a.scrollLeft=t.right+(ve?0:10)-L),a}function Jo(e,t){t!=null&&(Mo(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+t)}function Ni(e){Mo(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function qi(e,t,r){(t!=null||r!=null)&&Mo(e),t!=null&&(e.curOp.scrollLeft=t),r!=null&&(e.curOp.scrollTop=r)}function Xl(e,t){Mo(e),e.curOp.scrollToPos=t}function Mo(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var r=Ca(e,t.from),n=Ca(e,t.to);Pa(e,r,n,t.margin)}}function Pa(e,t,r,n){var i=Qo(e,{left:Math.min(t.left,r.left),top:Math.min(t.top,r.top)-n,right:Math.max(t.right,r.right),bottom:Math.max(t.bottom,r.bottom)+n});qi(e,i.scrollLeft,i.scrollTop)}function eo(e,t){Math.abs(e.doc.scrollTop-t)<2||(x||ea(e,{top:t}),Da(e,t,!0),x&&ea(e),ro(e,100))}function Da(e,t,r){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),!(e.display.scroller.scrollTop==t&&!r)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function Ei(e,t,r,n){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),!((r?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!n)&&(e.doc.scrollLeft=t,za(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function to(e){var t=e.display,r=t.gutters.offsetWidth,n=Math.round(e.doc.height+ni(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?r:0,docHeight:n,scrollHeight:n+Rr(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:r}}var Oi=function(e,t,r){this.cm=r;var n=this.vert=z("div",[z("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=z("div",[z("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");n.tabIndex=i.tabIndex=-1,e(n),e(i),_(n,"scroll",function(){n.clientHeight&&t(n.scrollTop,"vertical")}),_(i,"scroll",function(){i.clientWidth&&t(i.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,v&&T<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Oi.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,r=e.scrollHeight>e.clientHeight+1,n=e.nativeBarWidth;if(r){this.vert.style.display="block",this.vert.style.bottom=t?n+"px":"0";var i=e.viewHeight-(t?n:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=r?n+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(r?n:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(n==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:r?n:0,bottom:t?n:0}},Oi.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Oi.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Oi.prototype.zeroWidthHack=function(){var e=Ve&&!D?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new fe,this.disableVert=new fe},Oi.prototype.enableZeroWidthBar=function(e,t,r){e.style.pointerEvents="auto";function n(){var i=e.getBoundingClientRect(),o=r=="vert"?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1);o!=e?e.style.pointerEvents="none":t.set(1e3,n)}t.set(1e3,n)},Oi.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var no=function(){};no.prototype.update=function(){return{bottom:0,right:0}},no.prototype.setScrollLeft=function(){},no.prototype.setScrollTop=function(){},no.prototype.clear=function(){};function Ai(e,t){t||(t=to(e));var r=e.display.barWidth,n=e.display.barHeight;Na(e,t);for(var i=0;i<4&&r!=e.display.barWidth||n!=e.display.barHeight;i++)r!=e.display.barWidth&&e.options.lineWrapping&&Eo(e),Na(e,to(e)),r=e.display.barWidth,n=e.display.barHeight}function Na(e,t){var r=e.display,n=r.scrollbars.update(t);r.sizer.style.paddingRight=(r.barWidth=n.right)+"px",r.sizer.style.paddingBottom=(r.barHeight=n.bottom)+"px",r.heightForcer.style.borderBottom=n.bottom+"px solid transparent",n.right&&n.bottom?(r.scrollbarFiller.style.display="block",r.scrollbarFiller.style.height=n.bottom+"px",r.scrollbarFiller.style.width=n.right+"px"):r.scrollbarFiller.style.display="",n.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(r.gutterFiller.style.display="block",r.gutterFiller.style.height=n.bottom+"px",r.gutterFiller.style.width=t.gutterWidth+"px"):r.gutterFiller.style.display=""}var Aa={native:Oi,null:no};function $a(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&b(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Aa[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),_(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,r){r=="horizontal"?Ei(e,t):eo(e,t)},e),e.display.scrollbars.addClass&&$(e.display.wrapper,e.display.scrollbars.addClass)}var Yl=0;function Mi(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Yl},Xr(e.curOp)}function Ii(e){var t=e.curOp;t&&Gt(t,function(r){for(var n=0;n<r.ops.length;n++)r.ops[n].cm.curOp=null;Ql(r)})}function Ql(e){for(var t=e.ops,r=0;r<t.length;r++)Jl(t[r]);for(var n=0;n<t.length;n++)ql(t[n]);for(var i=0;i<t.length;i++)es(t[i]);for(var o=0;o<t.length;o++)ts(t[o]);for(var a=0;a<t.length;a++)ns(t[a])}function Jl(e){var t=e.cm,r=t.display;is(t),e.updateMaxLine&&Fn(t),e.mustUpdate=e.viewChanged||e.forceUpdate||e.scrollTop!=null||e.scrollToPos&&(e.scrollToPos.from.line<r.viewFrom||e.scrollToPos.to.line>=r.viewTo)||r.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Io(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function ql(e){e.updatedDisplay=e.mustUpdate&&qo(e.cm,e.update)}function es(e){var t=e.cm,r=t.display;e.updatedDisplay&&Eo(t),e.barMeasure=to(t),r.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Gi(t,r.maxLine,r.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(r.scroller.clientWidth,r.sizer.offsetLeft+e.adjustWidthTo+Rr(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,r.sizer.offsetLeft+e.adjustWidthTo-Lr(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=r.input.prepareSelection())}function ts(e){var t=e.cm;e.adjustWidthTo!=null&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&Ei(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var r=e.focus&&e.focus==E();e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,r),(e.updatedDisplay||e.startHeight!=t.doc.height)&&Ai(t,e.barMeasure),e.updatedDisplay&&na(t,e.barMeasure),e.selectionChanged&&Xo(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),r&&Ra(e.cm)}function ns(e){var t=e.cm,r=t.display,n=t.doc;if(e.updatedDisplay&&Fa(t,e.update),r.wheelStartX!=null&&(e.scrollTop!=null||e.scrollLeft!=null||e.scrollToPos)&&(r.wheelStartX=r.wheelStartY=null),e.scrollTop!=null&&Da(t,e.scrollTop,e.forceScroll),e.scrollLeft!=null&&Ei(t,e.scrollLeft,!0,!0),e.scrollToPos){var i=Vl(t,me(n,e.scrollToPos.from),me(n,e.scrollToPos.to),e.scrollToPos.margin);_l(t,i)}var o=e.maybeHiddenMarkers,a=e.maybeUnhiddenMarkers;if(o)for(var l=0;l<o.length;++l)o[l].lines.length||Fe(o[l],"hide");if(a)for(var s=0;s<a.length;++s)a[s].lines.length&&Fe(a[s],"unhide");r.wrapper.offsetHeight&&(n.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&Fe(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function Wr(e,t){if(e.curOp)return t();Mi(e);try{return t()}finally{Ii(e)}}function ur(e,t){return function(){if(e.curOp)return t.apply(e,arguments);Mi(e);try{return t.apply(e,arguments)}finally{Ii(e)}}}function Er(e){return function(){if(this.curOp)return e.apply(this,arguments);Mi(this);try{return e.apply(this,arguments)}finally{Ii(this)}}}function cr(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);Mi(t);try{return e.apply(this,arguments)}finally{Ii(t)}}}function ro(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,G(rs,e))}function rs(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var r=+new Date+e.options.workTime,n=It(e,t.highlightFrontier),i=[];t.iter(n.line,Math.min(t.first+t.size,e.display.viewTo+500),function(o){if(n.line>=e.display.viewFrom){var a=o.styles,l=o.text.length>e.options.maxHighlightLength?B(t.mode,n.state):null,s=yt(e,o,n,!0);l&&(n.state=l),o.styles=s.styles;var u=o.styleClasses,g=s.classes;g?o.styleClasses=g:u&&(o.styleClasses=null);for(var y=!a||a.length!=o.styles.length||u!=g&&(!u||!g||u.bgClass!=g.bgClass||u.textClass!=g.textClass),N=0;!y&&N<a.length;++N)y=a[N]!=o.styles[N];y&&i.push(n.line),o.stateAfter=n.save(),n.nextLine()}else o.text.length<=e.options.maxHighlightLength&&Bt(e,o.text,n),o.stateAfter=n.line%5==0?n.save():null,n.nextLine();if(+new Date>r)return ro(e,e.options.workDelay),!0}),t.highlightFrontier=n.line,t.modeFrontier=Math.max(t.modeFrontier,n.line),i.length&&Wr(e,function(){for(var o=0;o<i.length;o++)hi(e,i[o],"text")})}}var Io=function(e,t,r){var n=e.display;this.viewport=t,this.visible=Oo(n,e.doc,t),this.editorIsHidden=!n.wrapper.offsetWidth,this.wrapperHeight=n.wrapper.clientHeight,this.wrapperWidth=n.wrapper.clientWidth,this.oldDisplayWidth=Lr(e),this.force=r,this.dims=_o(e),this.events=[]};Io.prototype.signal=function(e,t){ke(e,t)&&this.events.push(arguments)},Io.prototype.finish=function(){for(var e=0;e<this.events.length;e++)Fe.apply(null,this.events[e])};function is(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=Rr(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=Rr(e)+"px",t.scrollbarsClipped=!0)}function os(e){if(e.hasFocus())return null;var t=E();if(!t||!R(e.display.lineDiv,t))return null;var r={activeElt:t};if(window.getSelection){var n=window.getSelection();n.anchorNode&&n.extend&&R(e.display.lineDiv,n.anchorNode)&&(r.anchorNode=n.anchorNode,r.anchorOffset=n.anchorOffset,r.focusNode=n.focusNode,r.focusOffset=n.focusOffset)}return r}function as(e){if(!(!e||!e.activeElt||e.activeElt==E())&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&R(document.body,e.anchorNode)&&R(document.body,e.focusNode))){var t=window.getSelection(),r=document.createRange();r.setEnd(e.anchorNode,e.anchorOffset),r.collapse(!1),t.removeAllRanges(),t.addRange(r),t.extend(e.focusNode,e.focusOffset)}}function qo(e,t){var r=e.display,n=e.doc;if(t.editorIsHidden)return vi(e),!1;if(!t.force&&t.visible.from>=r.viewFrom&&t.visible.to<=r.viewTo&&(r.updateLineNumbers==null||r.updateLineNumbers>=r.viewTo)&&r.renderedView==r.view&&Oa(e)==0)return!1;Za(e)&&(vi(e),t.dims=_o(e));var i=n.first+n.size,o=Math.max(t.visible.from-e.options.viewportMargin,n.first),a=Math.min(i,t.visible.to+e.options.viewportMargin);r.viewFrom<o&&o-r.viewFrom<20&&(o=Math.max(n.first,r.viewFrom)),r.viewTo>a&&r.viewTo-a<20&&(a=Math.min(i,r.viewTo)),Mt&&(o=Yn(e.doc,o),a=Gn(e.doc,a));var l=o!=r.viewFrom||a!=r.viewTo||r.lastWrapHeight!=t.wrapperHeight||r.lastWrapWidth!=t.wrapperWidth;kl(e,o,a),r.viewOffset=Hn(O(e.doc,r.viewFrom)),e.display.mover.style.top=r.viewOffset+"px";var s=Oa(e);if(!l&&s==0&&!t.force&&r.renderedView==r.view&&(r.updateLineNumbers==null||r.updateLineNumbers>=r.viewTo))return!1;var u=os(e);return s>4&&(r.lineDiv.style.display="none"),ls(e,r.updateLineNumbers,t.dims),s>4&&(r.lineDiv.style.display=""),r.renderedView=r.view,as(u),P(r.cursorDiv),P(r.selectionDiv),r.gutters.style.height=r.sizer.style.minHeight=0,l&&(r.lastWrapHeight=t.wrapperHeight,r.lastWrapWidth=t.wrapperWidth,ro(e,400)),r.updateLineNumbers=null,!0}function Fa(e,t){for(var r=t.viewport,n=!0;;n=!1){if(!n||!e.options.lineWrapping||t.oldDisplayWidth==Lr(e)){if(r&&r.top!=null&&(r={top:Math.min(e.doc.height+ni(e.display)-_i(e),r.top)}),t.visible=Oo(e.display,e.doc,r),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break}else n&&(t.visible=Oo(e.display,e.doc,r));if(!qo(e,t))break;Eo(e);var i=to(e);Ji(e),Ai(e,i),na(e,i),t.force=!1}t.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function ea(e,t){var r=new Io(e,t);if(qo(e,r)){Eo(e),Fa(e,r);var n=to(e);Ji(e),Ai(e,n),na(e,n),r.finish()}}function ls(e,t,r){var n=e.display,i=e.options.lineNumbers,o=n.lineDiv,a=o.firstChild;function l(ve){var Oe=ve.nextSibling;return I&&Ve&&e.display.currentWheelTarget==ve?ve.style.display="none":ve.parentNode.removeChild(ve),Oe}for(var s=n.view,u=n.viewFrom,g=0;g<s.length;g++){var y=s[g];if(!y.hidden)if(!y.node||y.node.parentNode!=o){var N=ci(e,y,u,r);o.insertBefore(N,a)}else{for(;a!=y.node;)a=l(a);var L=i&&t!=null&&t<=u&&y.lineNumber;y.changes&&(ue(y.changes,"gutter")>-1&&(L=!1),On(e,y,u,r)),L&&(P(y.lineNumber),y.lineNumber.appendChild(document.createTextNode(Ue(e.options,u)))),a=y.node.nextSibling}u+=y.size}for(;a;)a=l(a)}function ta(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px"}function na(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Rr(e)+"px"}function za(e){var t=e.display,r=t.view;if(!(!t.alignWidgets&&(!t.gutters.firstChild||!e.options.fixedGutter))){for(var n=Vo(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=n+"px",a=0;a<r.length;a++)if(!r[a].hidden){e.options.fixedGutter&&(r[a].gutter&&(r[a].gutter.style.left=o),r[a].gutterBackground&&(r[a].gutterBackground.style.left=o));var l=r[a].alignable;if(l)for(var s=0;s<l.length;s++)l[s].style.left=o}e.options.fixedGutter&&(t.gutters.style.left=n+i+"px")}}function Za(e){if(!e.options.lineNumbers)return!1;var t=e.doc,r=Ue(e.options,t.first+t.size-1),n=e.display;if(r.length!=n.lineNumChars){var i=n.measure.appendChild(z("div",[z("div",r)],"CodeMirror-linenumber CodeMirror-gutter-elt")),o=i.firstChild.offsetWidth,a=i.offsetWidth-o;return n.lineGutter.style.width="",n.lineNumInnerWidth=Math.max(o,n.lineGutter.offsetWidth-a)+1,n.lineNumWidth=n.lineNumInnerWidth+a,n.lineNumChars=n.lineNumInnerWidth?r.length:-1,n.lineGutter.style.width=n.lineNumWidth+"px",ta(e.display),!0}return!1}function ra(e,t){for(var r=[],n=!1,i=0;i<e.length;i++){var o=e[i],a=null;if(typeof o!="string"&&(a=o.style,o=o.className),o=="CodeMirror-linenumbers")if(t)n=!0;else continue;r.push({className:o,style:a})}return t&&!n&&r.push({className:"CodeMirror-linenumbers",style:null}),r}function Wa(e){var t=e.gutters,r=e.gutterSpecs;P(t),e.lineGutter=null;for(var n=0;n<r.length;++n){var i=r[n],o=i.className,a=i.style,l=t.appendChild(z("div",null,"CodeMirror-gutter "+o));a&&(l.style.cssText=a),o=="CodeMirror-linenumbers"&&(e.lineGutter=l,l.style.width=(e.lineNumWidth||1)+"px")}t.style.display=r.length?"":"none",ta(e)}function io(e){Wa(e.display),Tr(e),za(e)}function ss(e,t,r,n){var i=this;this.input=r,i.scrollbarFiller=z("div",null,"CodeMirror-scrollbar-filler"),i.scrollbarFiller.setAttribute("cm-not-content","true"),i.gutterFiller=z("div",null,"CodeMirror-gutter-filler"),i.gutterFiller.setAttribute("cm-not-content","true"),i.lineDiv=Ne("div",null,"CodeMirror-code"),i.selectionDiv=z("div",null,null,"position: relative; z-index: 1"),i.cursorDiv=z("div",null,"CodeMirror-cursors"),i.measure=z("div",null,"CodeMirror-measure"),i.lineMeasure=z("div",null,"CodeMirror-measure"),i.lineSpace=Ne("div",[i.measure,i.lineMeasure,i.selectionDiv,i.cursorDiv,i.lineDiv],null,"position: relative; outline: none");var o=Ne("div",[i.lineSpace],"CodeMirror-lines");i.mover=z("div",[o],null,"position: relative"),i.sizer=z("div",[i.mover],"CodeMirror-sizer"),i.sizerWidth=null,i.heightForcer=z("div",null,null,"position: absolute; height: "+Ze+"px; width: 1px;"),i.gutters=z("div",null,"CodeMirror-gutters"),i.lineGutter=null,i.scroller=z("div",[i.sizer,i.heightForcer,i.gutters],"CodeMirror-scroll"),i.scroller.setAttribute("tabIndex","-1"),i.wrapper=z("div",[i.scrollbarFiller,i.gutterFiller,i.scroller],"CodeMirror"),v&&T<8&&(i.gutters.style.zIndex=-1,i.scroller.style.paddingRight=0),!I&&!(x&&We)&&(i.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(i.wrapper):e(i.wrapper)),i.viewFrom=i.viewTo=t.first,i.reportedViewFrom=i.reportedViewTo=t.first,i.view=[],i.renderedView=null,i.externalMeasured=null,i.viewOffset=0,i.lastWrapHeight=i.lastWrapWidth=0,i.updateLineNumbers=null,i.nativeBarWidth=i.barHeight=i.barWidth=0,i.scrollbarsClipped=!1,i.lineNumWidth=i.lineNumInnerWidth=i.lineNumChars=null,i.alignWidgets=!1,i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.maxLine=null,i.maxLineLength=0,i.maxLineChanged=!1,i.wheelDX=i.wheelDY=i.wheelStartX=i.wheelStartY=null,i.shift=!1,i.selForContextMenu=null,i.activeTouch=null,i.gutterSpecs=ra(n.gutters,n.lineNumbers),Wa(i),r.init(i)}var Ro=0,kr=null;v?kr=-.53:x?kr=15:se?kr=-.7:Se&&(kr=-1/3);function Ha(e){var t=e.wheelDeltaX,r=e.wheelDeltaY;return t==null&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),r==null&&e.detail&&e.axis==e.VERTICAL_AXIS?r=e.detail:r==null&&(r=e.wheelDelta),{x:t,y:r}}function us(e){var t=Ha(e);return t.x*=kr,t.y*=kr,t}function Ba(e,t){var r=Ha(t),n=r.x,i=r.y,o=e.display,a=o.scroller,l=a.scrollWidth>a.clientWidth,s=a.scrollHeight>a.clientHeight;if(n&&l||i&&s){if(i&&Ve&&I){e:for(var u=t.target,g=o.view;u!=a;u=u.parentNode)for(var y=0;y<g.length;y++)if(g[y].node==u){e.display.currentWheelTarget=u;break e}}if(n&&!x&&!p&&kr!=null){i&&s&&eo(e,Math.max(0,a.scrollTop+i*kr)),Ei(e,Math.max(0,a.scrollLeft+n*kr)),(!i||i&&s)&&ht(t),o.wheelStartX=null;return}if(i&&kr!=null){var N=i*kr,L=e.doc.scrollTop,ve=L+o.wrapper.clientHeight;N<0?L=Math.max(0,L+N-50):ve=Math.min(e.doc.height,ve+N+50),ea(e,{top:L,bottom:ve})}Ro<20&&(o.wheelStartX==null?(o.wheelStartX=a.scrollLeft,o.wheelStartY=a.scrollTop,o.wheelDX=n,o.wheelDY=i,setTimeout(function(){if(o.wheelStartX!=null){var Oe=a.scrollLeft-o.wheelStartX,Be=a.scrollTop-o.wheelStartY,Qe=Be&&o.wheelDY&&Be/o.wheelDY||Oe&&o.wheelDX&&Oe/o.wheelDX;o.wheelStartX=o.wheelStartY=null,Qe&&(kr=(kr*Ro+Qe)/(Ro+1),++Ro)}},200)):(o.wheelDX+=n,o.wheelDY+=i))}}var Ur=function(e,t){this.ranges=e,this.primIndex=t};Ur.prototype.primary=function(){return this.ranges[this.primIndex]},Ur.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t<this.ranges.length;t++){var r=this.ranges[t],n=e.ranges[t];if(!Ye(r.anchor,n.anchor)||!Ye(r.head,n.head))return!1}return!0},Ur.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new Ln($e(this.ranges[t].anchor),$e(this.ranges[t].head));return new Ur(e,this.primIndex)},Ur.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},Ur.prototype.contains=function(e,t){t||(t=e);for(var r=0;r<this.ranges.length;r++){var n=this.ranges[r];if(ce(t,n.from())>=0&&ce(e,n.to())<=0)return r}return-1};var Ln=function(e,t){this.anchor=e,this.head=t};Ln.prototype.from=function(){return Ge(this.anchor,this.head)},Ln.prototype.to=function(){return je(this.anchor,this.head)},Ln.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Qr(e,t,r){var n=e&&e.options.selectionsMayTouch,i=t[r];t.sort(function(N,L){return ce(N.from(),L.from())}),r=ue(t,i);for(var o=1;o<t.length;o++){var a=t[o],l=t[o-1],s=ce(l.to(),a.from());if(n&&!a.empty()?s>0:s>=0){var u=Ge(l.from(),a.from()),g=je(l.to(),a.to()),y=l.empty()?a.from()==a.head:l.from()==l.head;o<=r&&--r,t.splice(--o,2,new Ln(y?g:u,y?u:g))}}return new Ur(t,r)}function gi(e,t){return new Ur([new Ln(e,t||e)],0)}function pi(e){return e.text?A(e.from.line+e.text.length-1,tt(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function ja(e,t){if(ce(e,t.from)<0)return e;if(ce(e,t.to)<=0)return pi(t);var r=e.line+t.text.length-(t.to.line-t.from.line)-1,n=e.ch;return e.line==t.to.line&&(n+=pi(t).ch-t.to.ch),A(r,n)}function ia(e,t){for(var r=[],n=0;n<e.sel.ranges.length;n++){var i=e.sel.ranges[n];r.push(new Ln(ja(i.anchor,t),ja(i.head,t)))}return Qr(e.cm,r,e.sel.primIndex)}function Ka(e,t,r){return e.line==t.line?A(r.line,e.ch-t.ch+r.ch):A(r.line+(e.line-t.line),e.ch)}function cs(e,t,r){for(var n=[],i=A(e.first,0),o=i,a=0;a<t.length;a++){var l=t[a],s=Ka(l.from,i,o),u=Ka(pi(l),i,o);if(i=l.to,o=u,r=="around"){var g=e.sel.ranges[a],y=ce(g.head,g.anchor)<0;n[a]=new Ln(y?u:s,y?s:u)}else n[a]=new Ln(s,s)}return new Ur(n,e.sel.primIndex)}function oa(e){e.doc.mode=it(e.options,e.doc.modeOption),oo(e)}function oo(e){e.doc.iter(function(t){t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null)}),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,ro(e,100),e.state.modeGen++,e.curOp&&Tr(e)}function ka(e,t){return t.from.ch==0&&t.to.ch==0&&tt(t.text)==""&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function aa(e,t,r,n){function i(st){return r?r[st]:null}function o(st,Je,gt){xr(st,Je,gt,n),pt(st,"change",st,t)}function a(st,Je){for(var gt=[],Ft=st;Ft<Je;++Ft)gt.push(new Kn(u[Ft],i(Ft),n));return gt}var l=t.from,s=t.to,u=t.text,g=O(e,l.line),y=O(e,s.line),N=tt(u),L=i(u.length-1),ve=s.line-l.line;if(t.full)e.insert(0,a(0,u.length)),e.remove(u.length,e.size-u.length);else if(ka(e,t)){var Oe=a(0,u.length-1);o(y,y.text,L),ve&&e.remove(l.line,ve),Oe.length&&e.insert(l.line,Oe)}else if(g==y)if(u.length==1)o(g,g.text.slice(0,l.ch)+N+g.text.slice(s.ch),L);else{var Be=a(1,u.length-1);Be.push(new Kn(N+g.text.slice(s.ch),L,n)),o(g,g.text.slice(0,l.ch)+u[0],i(0)),e.insert(l.line+1,Be)}else if(u.length==1)o(g,g.text.slice(0,l.ch)+u[0]+y.text.slice(s.ch),i(0)),e.remove(l.line+1,ve);else{o(g,g.text.slice(0,l.ch)+u[0],i(0)),o(y,N+y.text.slice(s.ch),L);var Qe=a(1,u.length-1);ve>1&&e.remove(l.line+1,ve-1),e.insert(l.line+1,Qe)}pt(e,"change",e,t)}function mi(e,t,r){function n(i,o,a){if(i.linked)for(var l=0;l<i.linked.length;++l){var s=i.linked[l];if(s.doc!=o){var u=a&&s.sharedHist;r&&!u||(t(s.doc,u),n(s.doc,i,u))}}}n(e,null,!0)}function Ua(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,Go(e),oa(e),_a(e),e.options.lineWrapping||Fn(e),e.options.mode=t.modeOption,Tr(e)}function _a(e){(e.doc.direction=="rtl"?$:b)(e.display.lineDiv,"CodeMirror-rtl")}function fs(e){Wr(e,function(){_a(e),Tr(e)})}function Lo(e){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e||1}function la(e,t){var r={from:$e(t.from),to:pi(t),text:j(e,t.from,t.to)};return Xa(e,r,t.from.line,t.to.line+1),mi(e,function(n){return Xa(n,r,t.from.line,t.to.line+1)},!0),r}function Va(e){for(;e.length;){var t=tt(e);if(t.ranges)e.pop();else break}}function ds(e,t){if(t)return Va(e.done),tt(e.done);if(e.done.length&&!tt(e.done).ranges)return tt(e.done);if(e.done.length>1&&!e.done[e.done.length-2].ranges)return e.done.pop(),tt(e.done)}function Ga(e,t,r,n){var i=e.history;i.undone.length=0;var o=+new Date,a,l;if((i.lastOp==n||i.lastOrigin==t.origin&&t.origin&&(t.origin.charAt(0)=="+"&&i.lastModTime>o-(e.cm?e.cm.options.historyEventDelay:500)||t.origin.charAt(0)=="*"))&&(a=ds(i,i.lastOp==n)))l=tt(a.changes),ce(t.from,t.to)==0&&ce(t.from,l.to)==0?l.to=pi(t):a.changes.push(la(e,t));else{var s=tt(i.done);for((!s||!s.ranges)&&To(e.sel,i.done),a={changes:[la(e,t)],generation:i.generation},i.done.push(a);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(r),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=o,i.lastOp=i.lastSelOp=n,i.lastOrigin=i.lastSelOrigin=t.origin,l||Fe(e,"historyAdded")}function hs(e,t,r,n){var i=t.charAt(0);return i=="*"||i=="+"&&r.ranges.length==n.ranges.length&&r.somethingSelected()==n.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function vs(e,t,r,n){var i=e.history,o=n&&n.origin;r==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||hs(e,o,tt(i.done),t))?i.done[i.done.length-1]=t:To(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=r,n&&n.clearRedo!==!1&&Va(i.undone)}function To(e,t){var r=tt(t);r&&r.ranges&&r.equals(e)||t.push(e)}function Xa(e,t,r,n){var i=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,r),Math.min(e.first+e.size,n),function(a){a.markedSpans&&((i||(i=t["spans_"+e.id]={}))[o]=a.markedSpans),++o})}function gs(e){if(!e)return null;for(var t,r=0;r<e.length;++r)e[r].marker.explicitlyCleared?t||(t=e.slice(0,r)):t&&t.push(e[r]);return t?t.length?t:null:e}function ps(e,t){var r=t["spans_"+e.id];if(!r)return null;for(var n=[],i=0;i<t.text.length;++i)n.push(gs(r[i]));return n}function Ya(e,t){var r=ps(e,t),n=vt(e,t);if(!r)return n;if(!n)return r;for(var i=0;i<r.length;++i){var o=r[i],a=n[i];if(o&&a)e:for(var l=0;l<a.length;++l){for(var s=a[l],u=0;u<o.length;++u)if(o[u].marker==s.marker)continue e;o.push(s)}else a&&(r[i]=a)}return r}function $i(e,t,r){for(var n=[],i=0;i<e.length;++i){var o=e[i];if(o.ranges){n.push(r?Ur.prototype.deepCopy.call(o):o);continue}var a=o.changes,l=[];n.push({changes:l});for(var s=0;s<a.length;++s){var u=a[s],g=void 0;if(l.push({from:u.from,to:u.to,text:u.text}),t)for(var y in u)(g=y.match(/^spans_(\d+)$/))&&ue(t,Number(g[1]))>-1&&(tt(l)[y]=u[y],delete u[y])}}return n}function sa(e,t,r,n){if(n){var i=e.anchor;if(r){var o=ce(t,i)<0;o!=ce(r,i)<0?(i=t,t=r):o!=ce(t,r)<0&&(t=r)}return new Ln(i,t)}else return new Ln(r||t,t)}function Po(e,t,r,n,i){i==null&&(i=e.cm&&(e.cm.display.shift||e.extend)),Sr(e,new Ur([sa(e.sel.primary(),t,r,i)],0),n)}function Qa(e,t,r){for(var n=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o<e.sel.ranges.length;o++)n[o]=sa(e.sel.ranges[o],t[o],null,i);var a=Qr(e.cm,n,e.sel.primIndex);Sr(e,a,r)}function ua(e,t,r,n){var i=e.sel.ranges.slice(0);i[t]=r,Sr(e,Qr(e.cm,i,e.sel.primIndex),n)}function Ja(e,t,r,n){Sr(e,gi(t,r),n)}function ms(e,t,r){var n={ranges:t.ranges,update:function(i){this.ranges=[];for(var o=0;o<i.length;o++)this.ranges[o]=new Ln(me(e,i[o].anchor),me(e,i[o].head))},origin:r&&r.origin};return Fe(e,"beforeSelectionChange",e,n),e.cm&&Fe(e.cm,"beforeSelectionChange",e.cm,n),n.ranges!=t.ranges?Qr(e.cm,n.ranges,n.ranges.length-1):t}function qa(e,t,r){var n=e.history.done,i=tt(n);i&&i.ranges?(n[n.length-1]=t,Do(e,t,r)):Sr(e,t,r)}function Sr(e,t,r){Do(e,t,r),vs(e,e.sel,e.cm?e.cm.curOp.id:NaN,r)}function Do(e,t,r){(ke(e,"beforeSelectionChange")||e.cm&&ke(e.cm,"beforeSelectionChange"))&&(t=ms(e,t,r));var n=r&&r.bias||(ce(t.primary().head,e.sel.primary().head)<0?-1:1);el(e,nl(e,t,n,!0)),!(r&&r.scroll===!1)&&e.cm&&Ni(e.cm)}function el(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,ot(e.cm)),pt(e,"cursorActivity",e))}function tl(e){el(e,nl(e,e.sel,null,!1))}function nl(e,t,r,n){for(var i,o=0;o<t.ranges.length;o++){var a=t.ranges[o],l=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[o],s=No(e,a.anchor,l&&l.anchor,r,n),u=No(e,a.head,l&&l.head,r,n);(i||s!=a.anchor||u!=a.head)&&(i||(i=t.ranges.slice(0,o)),i[o]=new Ln(s,u))}return i?Qr(e.cm,i,t.primIndex):t}function Fi(e,t,r,n,i){var o=O(e,t.line);if(o.markedSpans)for(var a=0;a<o.markedSpans.length;++a){var l=o.markedSpans[a],s=l.marker,u="selectLeft"in s?!s.selectLeft:s.inclusiveLeft,g="selectRight"in s?!s.selectRight:s.inclusiveRight;if((l.from==null||(u?l.from<=t.ch:l.from<t.ch))&&(l.to==null||(g?l.to>=t.ch:l.to>t.ch))){if(i&&(Fe(s,"beforeCursorEnter"),s.explicitlyCleared))if(o.markedSpans){--a;continue}else break;if(!s.atomic)continue;if(r){var y=s.find(n<0?1:-1),N=void 0;if((n<0?g:u)&&(y=rl(e,y,-n,y&&y.line==t.line?o:null)),y&&y.line==t.line&&(N=ce(y,r))&&(n<0?N<0:N>0))return Fi(e,y,t,n,i)}var L=s.find(n<0?-1:1);return(n<0?u:g)&&(L=rl(e,L,n,L.line==t.line?o:null)),L?Fi(e,L,t,n,i):null}}return t}function No(e,t,r,n,i){var o=n||1,a=Fi(e,t,r,o,i)||!i&&Fi(e,t,r,o,!0)||Fi(e,t,r,-o,i)||!i&&Fi(e,t,r,-o,!0);return a||(e.cantEdit=!0,A(e.first,0))}function rl(e,t,r,n){return r<0&&t.ch==0?t.line>e.first?me(e,A(t.line-1)):null:r>0&&t.ch==(n||O(e,t.line)).text.length?t.line<e.first+e.size-1?A(t.line+1,0):null:new A(t.line,t.ch+r)}function il(e){e.setSelection(A(e.firstLine(),0),A(e.lastLine()),Ce)}function ol(e,t,r){var n={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return n.canceled=!0}};return r&&(n.update=function(i,o,a,l){i&&(n.from=me(e,i)),o&&(n.to=me(e,o)),a&&(n.text=a),l!==void 0&&(n.origin=l)}),Fe(e,"beforeChange",e,n),e.cm&&Fe(e.cm,"beforeChange",e.cm,n),n.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:n.from,to:n.to,text:n.text,origin:n.origin}}function zi(e,t,r){if(e.cm){if(!e.cm.curOp)return ur(e.cm,zi)(e,t,r);if(e.cm.state.suppressEdits)return}if(!((ke(e,"beforeChange")||e.cm&&ke(e.cm,"beforeChange"))&&(t=ol(e,t,!0),!t))){var n=zt&&!r&&un(e,t.from,t.to);if(n)for(var i=n.length-1;i>=0;--i)al(e,{from:n[i].from,to:n[i].to,text:i?[""]:t.text,origin:t.origin});else al(e,t)}}function al(e,t){if(!(t.text.length==1&&t.text[0]==""&&ce(t.from,t.to)==0)){var r=ia(e,t);Ga(e,t,r,e.cm?e.cm.curOp.id:NaN),ao(e,t,r,vt(e,t));var n=[];mi(e,function(i,o){!o&&ue(n,i.history)==-1&&(cl(i.history,t),n.push(i.history)),ao(i,t,null,vt(i,t))})}}function Ao(e,t,r){var n=e.cm&&e.cm.state.suppressEdits;if(!(n&&!r)){for(var i=e.history,o,a=e.sel,l=t=="undo"?i.done:i.undone,s=t=="undo"?i.undone:i.done,u=0;u<l.length&&(o=l[u],!(r?o.ranges&&!o.equals(e.sel):!o.ranges));u++);if(u!=l.length){for(i.lastOrigin=i.lastSelOrigin=null;;)if(o=l.pop(),o.ranges){if(To(o,s),r&&!o.equals(e.sel)){Sr(e,o,{clearRedo:!1});return}a=o}else if(n){l.push(o);return}else break;var g=[];To(a,s),s.push({changes:g,generation:i.generation}),i.generation=o.generation||++i.maxGeneration;for(var y=ke(e,"beforeChange")||e.cm&&ke(e.cm,"beforeChange"),N=function(Oe){var Be=o.changes[Oe];if(Be.origin=t,y&&!ol(e,Be,!1))return l.length=0,{};g.push(la(e,Be));var Qe=Oe?ia(e,Be):tt(l);ao(e,Be,Qe,Ya(e,Be)),!Oe&&e.cm&&e.cm.scrollIntoView({from:Be.from,to:pi(Be)});var st=[];mi(e,function(Je,gt){!gt&&ue(st,Je.history)==-1&&(cl(Je.history,Be),st.push(Je.history)),ao(Je,Be,null,Ya(Je,Be))})},L=o.changes.length-1;L>=0;--L){var ve=N(L);if(ve)return ve.v}}}}function ll(e,t){if(t!=0&&(e.first+=t,e.sel=new Ur(Rt(e.sel.ranges,function(i){return new Ln(A(i.anchor.line+t,i.anchor.ch),A(i.head.line+t,i.head.ch))}),e.sel.primIndex),e.cm)){Tr(e.cm,e.first,e.first-t,t);for(var r=e.cm.display,n=r.viewFrom;n<r.viewTo;n++)hi(e.cm,n,"gutter")}}function ao(e,t,r,n){if(e.cm&&!e.cm.curOp)return ur(e.cm,ao)(e,t,r,n);if(t.to.line<e.first){ll(e,t.text.length-1-(t.to.line-t.from.line));return}if(!(t.from.line>e.lastLine())){if(t.from.line<e.first){var i=t.text.length-1-(e.first-t.from.line);ll(e,i),t={from:A(e.first,0),to:A(t.to.line+i,t.to.ch),text:[tt(t.text)],origin:t.origin}}var o=e.lastLine();t.to.line>o&&(t={from:t.from,to:A(o,O(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=j(e,t.from,t.to),r||(r=ia(e,t)),e.cm?ys(e.cm,t,n):aa(e,t,n),Do(e,r,Ce),e.cantEdit&&No(e,A(e.firstLine(),0))&&(e.cantEdit=!1)}}function ys(e,t,r){var n=e.doc,i=e.display,o=t.from,a=t.to,l=!1,s=o.line;e.options.lineWrapping||(s=ne(Zt(O(n,o.line))),n.iter(s,a.line+1,function(L){if(L==i.maxLine)return l=!0,!0})),n.sel.contains(t.from,t.to)>-1&&ot(e),aa(n,t,r,Ea(e)),e.options.lineWrapping||(n.iter(s,o.line+t.text.length,function(L){var ve=Qn(L);ve>i.maxLineLength&&(i.maxLine=L,i.maxLineLength=ve,i.maxLineChanged=!0,l=!1)}),l&&(e.curOp.updateMaxLine=!0)),et(n,o.line),ro(e,400);var u=t.text.length-(a.line-o.line)-1;t.full?Tr(e):o.line==a.line&&t.text.length==1&&!ka(e.doc,t)?hi(e,o.line,"text"):Tr(e,o.line,a.line+1,u);var g=ke(e,"changes"),y=ke(e,"change");if(y||g){var N={from:o,to:a,text:t.text,removed:t.removed,origin:t.origin};y&&pt(e,"change",e,N),g&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(N)}e.display.selForContextMenu=null}function Zi(e,t,r,n,i){var o;n||(n=r),ce(n,r)<0&&(o=[n,r],r=o[0],n=o[1]),typeof t=="string"&&(t=e.splitLines(t)),zi(e,{from:r,to:n,text:t,origin:i})}function sl(e,t,r,n){r<e.line?e.line+=n:t<e.line&&(e.line=t,e.ch=0)}function ul(e,t,r,n){for(var i=0;i<e.length;++i){var o=e[i],a=!0;if(o.ranges){o.copied||(o=e[i]=o.deepCopy(),o.copied=!0);for(var l=0;l<o.ranges.length;l++)sl(o.ranges[l].anchor,t,r,n),sl(o.ranges[l].head,t,r,n);continue}for(var s=0;s<o.changes.length;++s){var u=o.changes[s];if(r<u.from.line)u.from=A(u.from.line+n,u.from.ch),u.to=A(u.to.line+n,u.to.ch);else if(t<=u.to.line){a=!1;break}}a||(e.splice(0,i+1),i=0)}}function cl(e,t){var r=t.from.line,n=t.to.line,i=t.text.length-(n-r)-1;ul(e.done,r,n,i),ul(e.undone,r,n,i)}function lo(e,t,r,n){var i=t,o=t;return typeof t=="number"?o=O(e,wt(e,t)):i=ne(t),i==null?null:(n(o,i)&&e.cm&&hi(e.cm,i,r),o)}function so(e){this.lines=e,this.parent=null;for(var t=0,r=0;r<e.length;++r)e[r].parent=this,t+=e[r].height;this.height=t}so.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var r=e,n=e+t;r<n;++r){var i=this.lines[r];this.height-=i.height,Mr(i),pt(i,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,r){this.height+=r,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var n=0;n<t.length;++n)t[n].parent=this},iterN:function(e,t,r){for(var n=e+t;e<n;++e)if(r(this.lines[e]))return!0}};function uo(e){this.children=e;for(var t=0,r=0,n=0;n<e.length;++n){var i=e[n];t+=i.chunkSize(),r+=i.height,i.parent=this}this.size=t,this.height=r,this.parent=null}uo.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var r=0;r<this.children.length;++r){var n=this.children[r],i=n.chunkSize();if(e<i){var o=Math.min(t,i-e),a=n.height;if(n.removeInner(e,o),this.height-=a-n.height,i==o&&(this.children.splice(r--,1),n.parent=null),(t-=o)==0)break;e=0}else e-=i}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof so))){var l=[];this.collapse(l),this.children=[new so(l)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t<this.children.length;++t)this.children[t].collapse(e)},insertInner:function(e,t,r){this.size+=t.length,this.height+=r;for(var n=0;n<this.children.length;++n){var i=this.children[n],o=i.chunkSize();if(e<=o){if(i.insertInner(e,t,r),i.lines&&i.lines.length>50){for(var a=i.lines.length%25+25,l=a;l<i.lines.length;){var s=new so(i.lines.slice(l,l+=25));i.height-=s.height,this.children.splice(++n,0,s),s.parent=this}i.lines=i.lines.slice(0,a),this.maybeSpill()}break}e-=o}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=e.children.splice(e.children.length-5,5),r=new uo(t);if(e.parent){e.size-=r.size,e.height-=r.height;var i=ue(e.parent.children,e);e.parent.children.splice(i+1,0,r)}else{var n=new uo(e.children);n.parent=e,e.children=[n,r],e=n}r.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,r){for(var n=0;n<this.children.length;++n){var i=this.children[n],o=i.chunkSize();if(e<o){var a=Math.min(t,o-e);if(i.iterN(e,a,r))return!0;if((t-=a)==0)break;e=0}else e-=o}}};var co=function(e,t,r){if(r)for(var n in r)r.hasOwnProperty(n)&&(this[n]=r[n]);this.doc=e,this.node=t};co.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,r=this.line,n=ne(r);if(!(n==null||!t)){for(var i=0;i<t.length;++i)t[i]==this&&t.splice(i--,1);t.length||(r.widgets=null);var o=In(this);ee(r,Math.max(0,r.height-o)),e&&(Wr(e,function(){fl(e,r,-o),hi(e,n,"widget")}),pt(e,"lineWidgetCleared",e,this,n))}},co.prototype.changed=function(){var e=this,t=this.height,r=this.doc.cm,n=this.line;this.height=null;var i=In(this)-t;i&&(Wn(this.doc,n)||ee(n,n.height+i),r&&Wr(r,function(){r.curOp.forceUpdate=!0,fl(r,n,i),pt(r,"lineWidgetChanged",r,e,ne(n))}))},Wt(co);function fl(e,t,r){Hn(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&Jo(e,r)}function bs(e,t,r,n){var i=new co(e,r,n),o=e.cm;return o&&i.noHScroll&&(o.display.alignWidgets=!0),lo(e,t,"widget",function(a){var l=a.widgets||(a.widgets=[]);if(i.insertAt==null?l.push(i):l.splice(Math.min(l.length-1,Math.max(0,i.insertAt)),0,i),i.line=a,o&&!Wn(e,a)){var s=Hn(a)<e.scrollTop;ee(a,a.height+In(i)),s&&Jo(o,i.height),o.curOp.forceUpdate=!0}return!0}),o&&pt(o,"lineWidgetAdded",o,i,typeof t=="number"?t:ne(t)),i}var dl=0,yi=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++dl};yi.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&Mi(e),ke(this,"clear")){var r=this.find();r&&pt(this,"clear",r.from,r.to)}for(var n=null,i=null,o=0;o<this.lines.length;++o){var a=this.lines[o],l=Sn(a.markedSpans,this);e&&!this.collapsed?hi(e,ne(a),"text"):e&&(l.to!=null&&(i=ne(a)),l.from!=null&&(n=ne(a))),a.markedSpans=Dt(a.markedSpans,l),l.from==null&&this.collapsed&&!Wn(this.doc,a)&&e&&ee(a,Ti(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var s=0;s<this.lines.length;++s){var u=Zt(this.lines[s]),g=Qn(u);g>e.display.maxLineLength&&(e.display.maxLine=u,e.display.maxLineLength=g,e.display.maxLineChanged=!0)}n!=null&&e&&this.collapsed&&Tr(e,n,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&tl(e.doc)),e&&pt(e,"markerCleared",e,this,n,i),t&&Ii(e),this.parent&&this.parent.clear()}},yi.prototype.find=function(e,t){e==null&&this.type=="bookmark"&&(e=1);for(var r,n,i=0;i<this.lines.length;++i){var o=this.lines[i],a=Sn(o.markedSpans,this);if(a.from!=null&&(r=A(t?o:ne(o),a.from),e==-1))return r;if(a.to!=null&&(n=A(t?o:ne(o),a.to),e==1))return n}return r&&{from:r,to:n}},yi.prototype.changed=function(){var e=this,t=this.find(-1,!0),r=this,n=this.doc.cm;!t||!n||Wr(n,function(){var i=t.line,o=ne(t.line),a=Xi(n,o);if(a&&(sr(a),n.curOp.selectionChanged=n.curOp.forceUpdate=!0),n.curOp.updateMaxLine=!0,!Wn(r.doc,i)&&r.height!=null){var l=r.height;r.height=null;var s=In(r)-l;s&&ee(i,i.height+s)}pt(n,"markerChanged",n,e)})},yi.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(!t.maybeHiddenMarkers||ue(t.maybeHiddenMarkers,this)==-1)&&(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},yi.prototype.detachLine=function(e){if(this.lines.splice(ue(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},Wt(yi);function Wi(e,t,r,n,i){if(n&&n.shared)return Ss(e,t,r,n,i);if(e.cm&&!e.cm.curOp)return ur(e.cm,Wi)(e,t,r,n,i);var o=new yi(e,i),a=ce(t,r);if(n&&H(n,o,!1),a>0||a==0&&o.clearWhenEmpty!==!1)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=Ne("span",[o.replacedWith],"CodeMirror-widget"),n.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),n.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(Vt(e,t.line,t,r,o)||t.line!=r.line&&Vt(e,r.line,t,r,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");jt()}o.addToHistory&&Ga(e,{from:t,to:r,origin:"markText"},e.sel,NaN);var l=t.line,s=e.cm,u;if(e.iter(l,r.line+1,function(y){s&&o.collapsed&&!s.options.lineWrapping&&Zt(y)==s.display.maxLine&&(u=!0),o.collapsed&&l!=t.line&&ee(y,0),An(y,new ln(o,l==t.line?t.ch:null,l==r.line?r.ch:null)),++l}),o.collapsed&&e.iter(t.line,r.line+1,function(y){Wn(e,y)&&ee(y,0)}),o.clearOnEnter&&_(o,"beforeCursorEnter",function(){return o.clear()}),o.readOnly&&(bn(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++dl,o.atomic=!0),s){if(u&&(s.curOp.updateMaxLine=!0),o.collapsed)Tr(s,t.line,r.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var g=t.line;g<=r.line;g++)hi(s,g,"text");o.atomic&&tl(s.doc),pt(s,"markerAdded",s,o)}return o}var fo=function(e,t){this.markers=e,this.primary=t;for(var r=0;r<e.length;++r)e[r].parent=this};fo.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();pt(this,"clear")}},fo.prototype.find=function(e,t){return this.primary.find(e,t)},Wt(fo);function Ss(e,t,r,n,i){n=H(n),n.shared=!1;var o=[Wi(e,t,r,n,i)],a=o[0],l=n.widgetNode;return mi(e,function(s){l&&(n.widgetNode=l.cloneNode(!0)),o.push(Wi(s,me(s,t),me(s,r),n,i));for(var u=0;u<s.linked.length;++u)if(s.linked[u].isParent)return;a=tt(o)}),new fo(o,a)}function hl(e){return e.findMarks(A(e.first,0),e.clipPos(A(e.lastLine())),function(t){return t.parent})}function Cs(e,t){for(var r=0;r<t.length;r++){var n=t[r],i=n.find(),o=e.clipPos(i.from),a=e.clipPos(i.to);if(ce(o,a)){var l=Wi(e,o,a,n.primary,n.primary.type);n.markers.push(l),l.parent=n}}}function xs(e){for(var t=function(n){var i=e[n],o=[i.primary.doc];mi(i.primary.doc,function(s){return o.push(s)});for(var a=0;a<i.markers.length;a++){var l=i.markers[a];ue(o,l.doc)==-1&&(l.parent=null,i.markers.splice(a--,1))}},r=0;r<e.length;r++)t(r)}var ws=0,Pr=function(e,t,r,n,i){if(!(this instanceof Pr))return new Pr(e,t,r,n,i);r==null&&(r=0),uo.call(this,[new so([new Kn("",null)])]),this.first=r,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=r;var o=A(r,0);this.sel=gi(o),this.history=new Lo(null),this.id=++ws,this.modeOption=t,this.lineSep=n,this.direction=i=="rtl"?"rtl":"ltr",this.extend=!1,typeof e=="string"&&(e=this.splitLines(e)),aa(this,{from:o,to:o,text:e}),Sr(this,gi(o),Ce)};Pr.prototype=J(uo.prototype,{constructor:Pr,iter:function(e,t,r){r?this.iterN(e-this.first,t-e,r):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var r=0,n=0;n<t.length;++n)r+=t[n].height;this.insertInner(e-this.first,t,r)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=be(this,this.first,this.first+this.size);return e===!1?t:t.join(e||this.lineSeparator())},setValue:cr(function(e){var t=A(this.first,0),r=this.first+this.size-1;zi(this,{from:t,to:A(r,O(this,r).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&qi(this.cm,0,0),Sr(this,gi(t),Ce)}),replaceRange:function(e,t,r,n){t=me(this,t),r=r?me(this,r):t,Zi(this,e,t,r,n)},getRange:function(e,t,r){var n=j(this,me(this,e),me(this,t));return r===!1?n:n.join(r||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(De(this,e))return O(this,e)},getLineNumber:function(e){return ne(e)},getLineHandleVisualStart:function(e){return typeof e=="number"&&(e=O(this,e)),Zt(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return me(this,e)},getCursor:function(e){var t=this.sel.primary(),r;return e==null||e=="head"?r=t.head:e=="anchor"?r=t.anchor:e=="end"||e=="to"||e===!1?r=t.to():r=t.from(),r},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:cr(function(e,t,r){Ja(this,me(this,typeof e=="number"?A(e,t||0):e),null,r)}),setSelection:cr(function(e,t,r){Ja(this,me(this,e),me(this,t||e),r)}),extendSelection:cr(function(e,t,r){Po(this,me(this,e),t&&me(this,t),r)}),extendSelections:cr(function(e,t){Qa(this,He(this,e),t)}),extendSelectionsBy:cr(function(e,t){var r=Rt(this.sel.ranges,e);Qa(this,He(this,r),t)}),setSelections:cr(function(e,t,r){if(e.length){for(var n=[],i=0;i<e.length;i++)n[i]=new Ln(me(this,e[i].anchor),me(this,e[i].head));t==null&&(t=Math.min(e.length-1,this.sel.primIndex)),Sr(this,Qr(this.cm,n,t),r)}}),addSelection:cr(function(e,t,r){var n=this.sel.ranges.slice(0);n.push(new Ln(me(this,e),me(this,t||e))),Sr(this,Qr(this.cm,n,n.length-1),r)}),getSelection:function(e){for(var t=this.sel.ranges,r,n=0;n<t.length;n++){var i=j(this,t[n].from(),t[n].to());r=r?r.concat(i):i}return e===!1?r:r.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],r=this.sel.ranges,n=0;n<r.length;n++){var i=j(this,r[n].from(),r[n].to());e!==!1&&(i=i.join(e||this.lineSeparator())),t[n]=i}return t},replaceSelection:function(e,t,r){for(var n=[],i=0;i<this.sel.ranges.length;i++)n[i]=e;this.replaceSelections(n,t,r||"+input")},replaceSelections:cr(function(e,t,r){for(var n=[],i=this.sel,o=0;o<i.ranges.length;o++){var a=i.ranges[o];n[o]={from:a.from(),to:a.to(),text:this.splitLines(e[o]),origin:r}}for(var l=t&&t!="end"&&cs(this,n,t),s=n.length-1;s>=0;s--)zi(this,n[s]);l?qa(this,l):this.cm&&Ni(this.cm)}),undo:cr(function(){Ao(this,"undo")}),redo:cr(function(){Ao(this,"redo")}),undoSelection:cr(function(){Ao(this,"undo",!0)}),redoSelection:cr(function(){Ao(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,r=0,n=0;n<e.done.length;n++)e.done[n].ranges||++t;for(var i=0;i<e.undone.length;i++)e.undone[i].ranges||++r;return{undo:t,redo:r}},clearHistory:function(){var e=this;this.history=new Lo(this.history.maxGeneration),mi(this,function(t){return t.history=e.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:$i(this.history.done),undone:$i(this.history.undone)}},setHistory:function(e){var t=this.history=new Lo(this.history.maxGeneration);t.done=$i(e.done.slice(0),null,!0),t.undone=$i(e.undone.slice(0),null,!0)},setGutterMarker:cr(function(e,t,r){return lo(this,e,"gutter",function(n){var i=n.gutterMarkers||(n.gutterMarkers={});return i[t]=r,!r&&U(i)&&(n.gutterMarkers=null),!0})}),clearGutter:cr(function(e){var t=this;this.iter(function(r){r.gutterMarkers&&r.gutterMarkers[e]&&lo(t,r,"gutter",function(){return r.gutterMarkers[e]=null,U(r.gutterMarkers)&&(r.gutterMarkers=null),!0})})}),lineInfo:function(e){var t;if(typeof e=="number"){if(!De(this,e)||(t=e,e=O(this,e),!e))return null}else if(t=ne(e),t==null)return null;return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:cr(function(e,t,r){return lo(this,e,t=="gutter"?"gutter":"class",function(n){var i=t=="text"?"textClass":t=="background"?"bgClass":t=="gutter"?"gutterClass":"wrapClass";if(!n[i])n[i]=r;else{if(f(r).test(n[i]))return!1;n[i]+=" "+r}return!0})}),removeLineClass:cr(function(e,t,r){return lo(this,e,t=="gutter"?"gutter":"class",function(n){var i=t=="text"?"textClass":t=="background"?"bgClass":t=="gutter"?"gutterClass":"wrapClass",o=n[i];if(o)if(r==null)n[i]=null;else{var a=o.match(f(r));if(!a)return!1;var l=a.index+a[0].length;n[i]=o.slice(0,a.index)+(!a.index||l==o.length?"":" ")+o.slice(l)||null}else return!1;return!0})}),addLineWidget:cr(function(e,t,r){return bs(this,e,t,r)}),removeLineWidget:function(e){e.clear()},markText:function(e,t,r){return Wi(this,me(this,e),me(this,t),r,r&&r.type||"range")},setBookmark:function(e,t){var r={replacedWith:t&&(t.nodeType==null?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return e=me(this,e),Wi(this,e,e,r,"bookmark")},findMarksAt:function(e){e=me(this,e);var t=[],r=O(this,e.line).markedSpans;if(r)for(var n=0;n<r.length;++n){var i=r[n];(i.from==null||i.from<=e.ch)&&(i.to==null||i.to>=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,r){e=me(this,e),t=me(this,t);var n=[],i=e.line;return this.iter(e.line,t.line+1,function(o){var a=o.markedSpans;if(a)for(var l=0;l<a.length;l++){var s=a[l];!(s.to!=null&&i==e.line&&e.ch>=s.to||s.from==null&&i!=e.line||s.from!=null&&i==t.line&&s.from>=t.ch)&&(!r||r(s.marker))&&n.push(s.marker.parent||s.marker)}++i}),n},getAllMarks:function(){var e=[];return this.iter(function(t){var r=t.markedSpans;if(r)for(var n=0;n<r.length;++n)r[n].from!=null&&e.push(r[n].marker)}),e},posFromIndex:function(e){var t,r=this.first,n=this.lineSeparator().length;return this.iter(function(i){var o=i.text.length+n;if(o>e)return t=e,!0;e-=o,++r}),me(this,A(r,t))},indexFromPos:function(e){e=me(this,e);var t=e.ch;if(e.line<this.first||e.ch<0)return 0;var r=this.lineSeparator().length;return this.iter(this.first,e.line,function(n){t+=n.text.length+r}),t},copy:function(e){var t=new Pr(be(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){e||(e={});var t=this.first,r=this.first+this.size;e.from!=null&&e.from>t&&(t=e.from),e.to!=null&&e.to<r&&(r=e.to);var n=new Pr(be(this,t,r),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(n.history=this.history),(this.linked||(this.linked=[])).push({doc:n,sharedHist:e.sharedHist}),n.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],Cs(n,hl(this)),n},unlinkDoc:function(e){if(e instanceof Un&&(e=e.doc),this.linked)for(var t=0;t<this.linked.length;++t){var r=this.linked[t];if(r.doc==e){this.linked.splice(t,1),e.unlinkDoc(this),xs(hl(this));break}}if(e.history==this.history){var n=[e.id];mi(e,function(i){return n.push(i.id)},!0),e.history=new Lo(null),e.history.done=$i(this.history.done,n),e.history.undone=$i(this.history.undone,n)}},iterLinkedDocs:function(e){mi(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):Yt(e)},lineSeparator:function(){return this.lineSep||`
`},setDirection:cr(function(e){e!="rtl"&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter(function(t){return t.order=null}),this.cm&&fs(this.cm))})}),Pr.prototype.eachLine=Pr.prototype.iter;var vl=0;function Es(e){var t=this;if(gl(t),!(Xe(t,e)||Tn(t.display,e))){ht(e),v&&(vl=+new Date);var r=xi(t,e,!0),n=e.dataTransfer.files;if(!(!r||t.isReadOnly()))if(n&&n.length&&window.FileReader&&window.File)for(var i=n.length,o=Array(i),a=0,l=function(){++a==i&&ur(t,function(){r=me(t.doc,r);var L={from:r,to:r,text:t.doc.splitLines(o.filter(function(ve){return ve!=null}).join(t.doc.lineSeparator())),origin:"paste"};zi(t.doc,L),qa(t.doc,gi(me(t.doc,r),me(t.doc,pi(L))))})()},s=function(L,ve){if(t.options.allowDropFileTypes&&ue(t.options.allowDropFileTypes,L.type)==-1){l();return}var Oe=new FileReader;Oe.onerror=function(){return l()},Oe.onload=function(){var Be=Oe.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Be)){l();return}o[ve]=Be,l()},Oe.readAsText(L)},u=0;u<n.length;u++)s(n[u],u);else{if(t.state.draggingText&&t.doc.sel.contains(r)>-1){t.state.draggingText(e),setTimeout(function(){return t.display.input.focus()},20);return}try{var g=e.dataTransfer.getData("Text");if(g){var y;if(t.state.draggingText&&!t.state.draggingText.copy&&(y=t.listSelections()),Do(t.doc,gi(r,r)),y)for(var N=0;N<y.length;++N)Zi(t.doc,"",y[N].anchor,y[N].head,"drag");t.replaceSelection(g,"around","paste"),t.display.input.focus()}}catch(L){}}}}function Os(e,t){if(v&&(!e.state.draggingText||+new Date-vl<100)){gn(t);return}if(!(Xe(e,t)||Tn(e.display,t))&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!Se)){var r=z("img",null,null,"position: fixed; left: 0; top: 0;");r.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",p&&(r.width=r.height=1,e.display.wrapper.appendChild(r),r._top=r.offsetTop),t.dataTransfer.setDragImage(r,0,0),p&&r.parentNode.removeChild(r)}}function Ms(e,t){var r=xi(e,t);if(r){var n=document.createDocumentFragment();Ia(e,r,n),e.display.dragCursor||(e.display.dragCursor=z("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),q(e.display.dragCursor,n)}}function gl(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function pl(e){if(document.getElementsByClassName){for(var t=document.getElementsByClassName("CodeMirror"),r=[],n=0;n<t.length;n++){var i=t[n].CodeMirror;i&&r.push(i)}r.length&&r[0].operation(function(){for(var o=0;o<r.length;o++)e(r[o])})}}var ml=!1;function Is(){ml||(Rs(),ml=!0)}function Rs(){var e;_(window,"resize",function(){e==null&&(e=setTimeout(function(){e=null,pl(Ls)},100))}),_(window,"blur",function(){return pl(Di)})}function Ls(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var bi={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},ho=0;ho<10;ho++)bi[ho+48]=bi[ho+96]=String(ho);for(var $o=65;$o<=90;$o++)bi[$o]=String.fromCharCode($o);for(var vo=1;vo<=12;vo++)bi[vo+111]=bi[vo+63235]="F"+vo;var si={};si.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},si.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},si.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},si.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},si.default=Ve?si.macDefault:si.pcDefault;function Ts(e){var t=e.split(/-(?!$)/);e=t[t.length-1];for(var r,n,i,o,a=0;a<t.length-1;a++){var l=t[a];if(/^(cmd|meta|m)$/i.test(l))o=!0;else if(/^a(lt)?$/i.test(l))r=!0;else if(/^(c|ctrl|control)$/i.test(l))n=!0;else if(/^s(hift)?$/i.test(l))i=!0;else throw new Error("Unrecognized modifier name: "+l)}return r&&(e="Alt-"+e),n&&(e="Ctrl-"+e),o&&(e="Cmd-"+e),i&&(e="Shift-"+e),e}function Ps(e){var t={};for(var r in e)if(e.hasOwnProperty(r)){var n=e[r];if(/^(name|fallthrough|(de|at)tach)$/.test(r))continue;if(n=="..."){delete e[r];continue}for(var i=Rt(r.split(" "),Ts),o=0;o<i.length;o++){var a=void 0,l=void 0;o==i.length-1?(l=i.join(" "),a=n):(l=i.slice(0,o+1).join(" "),a="...");var s=t[l];if(!s)t[l]=a;else if(s!=a)throw new Error("Inconsistent bindings for "+l)}delete e[r]}for(var u in t)e[u]=t[u];return e}function Hi(e,t,r,n){t=Fo(t);var i=t.call?t.call(e,n):t[e];if(i===!1)return"nothing";if(i==="...")return"multi";if(i!=null&&r(i))return"handled";if(t.fallthrough){if(Object.prototype.toString.call(t.fallthrough)!="[object Array]")return Hi(e,t.fallthrough,r,n);for(var o=0;o<t.fallthrough.length;o++){var a=Hi(e,t.fallthrough[o],r,n);if(a)return a}}}function yl(e){var t=typeof e=="string"?e:bi[e.keyCode];return t=="Ctrl"||t=="Alt"||t=="Shift"||t=="Mod"}function bl(e,t,r){var n=e;return t.altKey&&n!="Alt"&&(e="Alt-"+e),(Q?t.metaKey:t.ctrlKey)&&n!="Ctrl"&&(e="Ctrl-"+e),(Q?t.ctrlKey:t.metaKey)&&n!="Mod"&&(e="Cmd-"+e),!r&&t.shiftKey&&n!="Shift"&&(e="Shift-"+e),e}function Sl(e,t){if(p&&e.keyCode==34&&e.char)return!1;var r=bi[e.keyCode];return r==null||e.altGraphKey?!1:(e.keyCode==3&&e.code&&(r=e.code),bl(r,e,t))}function Fo(e){return typeof e=="string"?si[e]:e}function Bi(e,t){for(var r=e.doc.sel.ranges,n=[],i=0;i<r.length;i++){for(var o=t(r[i]);n.length&&ce(o.from,tt(n).to)<=0;){var a=n.pop();if(ce(a.from,o.from)<0){o.from=a.from;break}}n.push(o)}Wr(e,function(){for(var l=n.length-1;l>=0;l--)Zi(e.doc,"",n[l].from,n[l].to,"+delete");Ni(e)})}function ca(e,t,r){var n=ae(e.text,t+r,r);return n<0||n>e.text.length?null:n}function fa(e,t,r){var n=ca(e,t.ch,r);return n==null?null:new A(t.line,n,r<0?"after":"before")}function da(e,t,r,n,i){if(e){t.doc.direction=="rtl"&&(i=-i);var o=Le(r,t.doc.direction);if(o){var a=i<0?tt(o):o[0],l=i<0==(a.level==1),s=l?"after":"before",u;if(a.level>0||t.doc.direction=="rtl"){var g=di(t,r);u=i<0?r.text.length-1:0;var y=Vr(t,g,u).top;u=de(function(N){return Vr(t,g,N).top==y},i<0==(a.level==1)?a.from:a.to-1,u),s=="before"&&(u=ca(r,u,1))}else u=i<0?a.to:a.from;return new A(n,u,s)}}return new A(n,i<0?r.text.length:0,i<0?"before":"after")}function Ds(e,t,r,n){var i=Le(t,e.doc.direction);if(!i)return fa(t,r,n);r.ch>=t.text.length?(r.ch=t.text.length,r.sticky="before"):r.ch<=0&&(r.ch=0,r.sticky="after");var o=xe(i,r.ch,r.sticky),a=i[o];if(e.doc.direction=="ltr"&&a.level%2==0&&(n>0?a.to>r.ch:a.from<r.ch))return fa(t,r,n);var l=function(Qe,st){return ca(t,Qe instanceof A?Qe.ch:Qe,st)},s,u=function(Qe){return e.options.lineWrapping?(s=s||di(e,t),wa(e,t,s,Qe)):{begin:0,end:t.text.length}},g=u(r.sticky=="before"?l(r,-1):r.ch);if(e.doc.direction=="rtl"||a.level==1){var y=a.level==1==n<0,N=l(r,y?1:-1);if(N!=null&&(y?N<=a.to&&N<=g.end:N>=a.from&&N>=g.begin)){var L=y?"before":"after";return new A(r.line,N,L)}}var ve=function(Qe,st,Je){for(var gt=function(zn,fr){return fr?new A(r.line,l(zn,1),"before"):new A(r.line,zn,"after")};Qe>=0&&Qe<i.length;Qe+=st){var Ft=i[Qe],Pt=st>0==(Ft.level!=1),vn=Pt?Je.begin:l(Je.end,-1);if(Ft.from<=vn&&vn<Ft.to||(vn=Pt?Ft.from:l(Ft.to,-1),Je.begin<=vn&&vn<Je.end))return gt(vn,Pt)}},Oe=ve(o+n,n,g);if(Oe)return Oe;var Be=n>0?g.end:l(g.begin,-1);return Be!=null&&!(n>0&&Be==t.text.length)&&(Oe=ve(n>0?0:i.length-1,n,u(Be)),Oe)?Oe:null}var go={selectAll:il,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),Ce)},killLine:function(e){return Bi(e,function(t){if(t.empty()){var r=O(e.doc,t.head.line).text.length;return t.head.ch==r&&t.head.line<e.lastLine()?{from:t.head,to:A(t.head.line+1,0)}:{from:t.head,to:A(t.head.line,r)}}else return{from:t.from(),to:t.to()}})},deleteLine:function(e){return Bi(e,function(t){return{from:A(t.from().line,0),to:me(e.doc,A(t.to().line+1,0))}})},delLineLeft:function(e){return Bi(e,function(t){return{from:A(t.from().line,0),to:t.from()}})},delWrappedLineLeft:function(e){return Bi(e,function(t){var r=e.charCoords(t.head,"div").top+5,n=e.coordsChar({left:0,top:r},"div");return{from:n,to:t.from()}})},delWrappedLineRight:function(e){return Bi(e,function(t){var r=e.charCoords(t.head,"div").top+5,n=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:r},"div");return{from:t.from(),to:n}})},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(A(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(A(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(t){return Cl(e,t.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(t){return xl(e,t.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(t){return Ns(e,t.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(t){var r=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:r},"div")},Me)},goLineLeft:function(e){return e.extendSelectionsBy(function(t){var r=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:r},"div")},Me)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(t){var r=e.cursorCoords(t.head,"div").top+5,n=e.coordsChar({left:0,top:r},"div");return n.ch<e.getLine(n.line).search(/\S/)?xl(e,t.head):n},Me)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection(" ")},insertSoftTab:function(e){for(var t=[],r=e.listSelections(),n=e.options.tabSize,i=0;i<r.length;i++){var o=r[i].from(),a=V(e.getLine(o.line),o.ch,n);t.push(dt(n-a%n))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return Wr(e,function(){for(var t=e.listSelections(),r=[],n=0;n<t.length;n++)if(t[n].empty()){var i=t[n].head,o=O(e.doc,i.line).text;if(o){if(i.ch==o.length&&(i=new A(i.line,i.ch-1)),i.ch>0)i=new A(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),A(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var a=O(e.doc,i.line-1).text;a&&(i=new A(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),A(i.line-1,a.length-1),i,"+transpose"))}}r.push(new Ln(i,i))}e.setSelections(r)})},newlineAndIndent:function(e){return Wr(e,function(){for(var t=e.listSelections(),r=t.length-1;r>=0;r--)e.replaceRange(e.doc.lineSeparator(),t[r].anchor,t[r].head,"+input");t=e.listSelections();for(var n=0;n<t.length;n++)e.indentLine(t[n].from().line,null,!0);Ni(e)})},openLine:function(e){return e.replaceSelection(`
`,"start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function Cl(e,t){var r=O(e.doc,t),n=Zt(r);return n!=r&&(t=ne(n)),da(!0,e,n,t,1)}function Ns(e,t){var r=O(e.doc,t),n=er(r);return n!=r&&(t=ne(n)),da(!0,e,r,t,-1)}function xl(e,t){var r=Cl(e,t.line),n=O(e.doc,r.line),i=Le(n,e.doc.direction);if(!i||i[0].level==0){var o=Math.max(r.ch,n.text.search(/\S/)),a=t.line==r.line&&t.ch<=o&&t.ch;return A(r.line,a?0:o,r.sticky)}return r}function zo(e,t,r){if(typeof t=="string"&&(t=go[t],!t))return!1;e.display.input.ensurePolled();var n=e.display.shift,i=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),r&&(e.display.shift=!1),i=t(e)!=Ke}finally{e.display.shift=n,e.state.suppressEdits=!1}return i}function As(e,t,r){for(var n=0;n<e.state.keyMaps.length;n++){var i=Hi(t,e.state.keyMaps[n],r,e);if(i)return i}return e.options.extraKeys&&Hi(t,e.options.extraKeys,r,e)||Hi(t,e.options.keyMap,r,e)}var $s=new fe;function po(e,t,r,n){var i=e.state.keySeq;if(i){if(yl(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:$s.set(50,function(){e.state.keySeq==i&&(e.state.keySeq=null,e.display.input.reset())}),wl(e,i+" "+t,r,n))return!0}return wl(e,t,r,n)}function wl(e,t,r,n){var i=As(e,t,n);return i=="multi"&&(e.state.keySeq=t),i=="handled"&&pt(e,"keyHandled",e,t,r),(i=="handled"||i=="multi")&&(ht(r),Xo(e)),!!i}function El(e,t){var r=Sl(t,!0);return r?t.shiftKey&&!e.state.keySeq?po(e,"Shift-"+r,t,function(n){return zo(e,n,!0)})||po(e,r,t,function(n){if(typeof n=="string"?/^go[A-Z]/.test(n):n.motion)return zo(e,n)}):po(e,r,t,function(n){return zo(e,n)}):!1}function Fs(e,t,r){return po(e,"'"+r+"'",t,function(n){return zo(e,n,!0)})}var ha=null;function Ol(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField())&&(t.curOp.focus=E(),!Xe(t,e))){v&&T<11&&e.keyCode==27&&(e.returnValue=!1);var r=e.keyCode;t.display.shift=r==16||e.shiftKey;var n=El(t,e);p&&(ha=n?r:null,!n&&r==88&&!En&&(Ve?e.metaKey:e.ctrlKey)&&t.replaceSelection("",null,"cut")),x&&!Ve&&!n&&r==46&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),r==18&&!/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)&&zs(t)}}function zs(e){var t=e.display.lineDiv;$(t,"CodeMirror-crosshair");function r(n){(n.keyCode==18||!n.altKey)&&(b(t,"CodeMirror-crosshair"),nt(document,"keyup",r),nt(document,"mouseover",r))}_(document,"keyup",r),_(document,"mouseover",r)}function Ml(e){e.keyCode==16&&(this.doc.sel.shift=!1),Xe(this,e)}function Il(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField())&&!(Tn(t.display,e)||Xe(t,e)||e.ctrlKey&&!e.altKey||Ve&&e.metaKey)){var r=e.keyCode,n=e.charCode;if(p&&r==ha){ha=null,ht(e);return}if(!(p&&(!e.which||e.which<10)&&El(t,e))){var i=String.fromCharCode(n==null?r:n);i!="\b"&&(Fs(t,e,i)||t.display.input.onKeyPress(e))}}}var Zs=400,va=function(e,t,r){this.time=e,this.pos=t,this.button=r};va.prototype.compare=function(e,t,r){return this.time+Zs>e&&ce(t,this.pos)==0&&r==this.button};var mo,yo;function Ws(e,t){var r=+new Date;return yo&&yo.compare(r,e,t)?(mo=yo=null,"triple"):mo&&mo.compare(r,e,t)?(yo=new va(r,e,t),mo=null,"double"):(mo=new va(r,e,t),yo=null,"single")}function Rl(e){var t=this,r=t.display;if(!(Xe(t,e)||r.activeTouch&&r.input.supportsTouch())){if(r.input.ensurePolled(),r.shift=e.shiftKey,Tn(r,e)){I||(r.scroller.draggable=!1,setTimeout(function(){return r.scroller.draggable=!0},100));return}if(!ga(t,e)){var n=xi(t,e),i=pn(e),o=n?Ws(n,i):"single";window.focus(),i==1&&t.state.selectingText&&t.state.selectingText(e),!(n&&Hs(t,i,n,o,e))&&(i==1?n?js(t,n,o,e):tn(e)==r.scroller&&ht(e):i==2?(n&&Po(t.doc,n),setTimeout(function(){return r.input.focus()},20)):i==3&&(C?t.display.input.onContextMenu(e):La(t)))}}}function Hs(e,t,r,n,i){var o="Click";return n=="double"?o="Double"+o:n=="triple"&&(o="Triple"+o),o=(t==1?"Left":t==2?"Middle":"Right")+o,po(e,bl(o,i),i,function(a){if(typeof a=="string"&&(a=go[a]),!a)return!1;var l=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),l=a(e,r)!=Ke}finally{e.state.suppressEdits=!1}return l})}function Bs(e,t,r){var n=e.getOption("configureMouse"),i=n?n(e,t,r):{};if(i.unit==null){var o=Re?r.shiftKey&&r.metaKey:r.altKey;i.unit=o?"rectangle":t=="single"?"char":t=="double"?"word":"line"}return(i.extend==null||e.doc.extend)&&(i.extend=e.doc.extend||r.shiftKey),i.addNew==null&&(i.addNew=Ve?r.metaKey:r.ctrlKey),i.moveOnDrag==null&&(i.moveOnDrag=!(Ve?r.altKey:r.ctrlKey)),i}function js(e,t,r,n){v?setTimeout(G(Ra,e),0):e.curOp.focus=E();var i=Bs(e,r,n),o=e.doc.sel,a;e.options.dragDrop&&Mn&&!e.isReadOnly()&&r=="single"&&(a=o.contains(t))>-1&&(ce((a=o.ranges[a]).from(),t)<0||t.xRel>0)&&(ce(a.to(),t)>0||t.xRel<0)?Ks(e,n,t,i):ks(e,n,t,i)}function Ks(e,t,r,n){var i=e.display,o=!1,a=ur(e,function(u){I&&(i.scroller.draggable=!1),e.state.draggingText=!1,nt(i.wrapper.ownerDocument,"mouseup",a),nt(i.wrapper.ownerDocument,"mousemove",l),nt(i.scroller,"dragstart",s),nt(i.scroller,"drop",a),o||(ht(u),n.addNew||Po(e.doc,r,null,null,n.extend),I&&!Se||v&&T==9?setTimeout(function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()},20):i.input.focus())}),l=function(u){o=o||Math.abs(t.clientX-u.clientX)+Math.abs(t.clientY-u.clientY)>=10},s=function(){return o=!0};I&&(i.scroller.draggable=!0),e.state.draggingText=a,a.copy=!n.moveOnDrag,i.scroller.dragDrop&&i.scroller.dragDrop(),_(i.wrapper.ownerDocument,"mouseup",a),_(i.wrapper.ownerDocument,"mousemove",l),_(i.scroller,"dragstart",s),_(i.scroller,"drop",a),La(e),setTimeout(function(){return i.input.focus()},20)}function Ll(e,t,r){if(r=="char")return new Ln(t,t);if(r=="word")return e.findWordAt(t);if(r=="line")return new Ln(A(t.line,0),me(e.doc,A(t.line+1,0)));var n=r(e,t);return new Ln(n.from,n.to)}function ks(e,t,r,n){var i=e.display,o=e.doc;ht(t);var a,l,s=o.sel,u=s.ranges;if(n.addNew&&!n.extend?(l=o.sel.contains(r),l>-1?a=u[l]:a=new Ln(r,r)):(a=o.sel.primary(),l=o.sel.primIndex),n.unit=="rectangle")n.addNew||(a=new Ln(r,r)),r=xi(e,t,!0,!0),l=-1;else{var g=Ll(e,r,n.unit);n.extend?a=sa(a,g.anchor,g.head,n.extend):a=g}n.addNew?l==-1?(l=u.length,Sr(o,Qr(e,u.concat([a]),l),{scroll:!1,origin:"*mouse"})):u.length>1&&u[l].empty()&&n.unit=="char"&&!n.extend?(Sr(o,Qr(e,u.slice(0,l).concat(u.slice(l+1)),0),{scroll:!1,origin:"*mouse"}),s=o.sel):ua(o,l,a,Pe):(l=0,Sr(o,new Ur([a],0),Pe),s=o.sel);var y=r;function N(Je){if(ce(y,Je)!=0)if(y=Je,n.unit=="rectangle"){for(var gt=[],Ft=e.options.tabSize,Pt=V(O(o,r.line).text,r.ch,Ft),vn=V(O(o,Je.line).text,Je.ch,Ft),zn=Math.min(Pt,vn),fr=Math.max(Pt,vn),Vn=Math.min(r.line,Je.line),Hr=Math.min(e.lastLine(),Math.max(r.line,Je.line));Vn<=Hr;Vn++){var Dr=O(o,Vn).text,nr=Ct(Dr,zn,Ft);zn==fr?gt.push(new Ln(A(Vn,nr),A(Vn,nr))):Dr.length>nr&&gt.push(new Ln(A(Vn,nr),A(Vn,Ct(Dr,fr,Ft))))}gt.length||gt.push(new Ln(r,r)),Sr(o,Qr(e,s.ranges.slice(0,l).concat(gt),l),{origin:"*mouse",scroll:!1}),e.scrollIntoView(Je)}else{var Nr=a,hr=Ll(e,Je,n.unit),ir=Nr.anchor,rr;ce(hr.anchor,ir)>0?(rr=hr.head,ir=Ge(Nr.from(),hr.anchor)):(rr=hr.anchor,ir=je(Nr.to(),hr.head));var Xn=s.ranges.slice(0);Xn[l]=Us(e,new Ln(me(o,ir),rr)),Sr(o,Qr(e,Xn,l),Pe)}}var L=i.wrapper.getBoundingClientRect(),ve=0;function Oe(Je){var gt=++ve,Ft=xi(e,Je,!0,n.unit=="rectangle");if(Ft)if(ce(Ft,y)!=0){e.curOp.focus=E(),N(Ft);var Pt=Oo(i,o);(Ft.line>=Pt.to||Ft.line<Pt.from)&&setTimeout(ur(e,function(){ve==gt&&Oe(Je)}),150)}else{var vn=Je.clientY<L.top?-20:Je.clientY>L.bottom?20:0;vn&&setTimeout(ur(e,function(){ve==gt&&(i.scroller.scrollTop+=vn,Oe(Je))}),50)}}function Be(Je){e.state.selectingText=!1,ve=1/0,Je&&(ht(Je),i.input.focus()),nt(i.wrapper.ownerDocument,"mousemove",Qe),nt(i.wrapper.ownerDocument,"mouseup",st),o.history.lastSelOrigin=null}var Qe=ur(e,function(Je){Je.buttons===0||!pn(Je)?Be(Je):Oe(Je)}),st=ur(e,Be);e.state.selectingText=st,_(i.wrapper.ownerDocument,"mousemove",Qe),_(i.wrapper.ownerDocument,"mouseup",st)}function Us(e,t){var r=t.anchor,n=t.head,i=O(e.doc,r.line);if(ce(r,n)==0&&r.sticky==n.sticky)return t;var o=Le(i);if(!o)return t;var a=xe(o,r.ch,r.sticky),l=o[a];if(l.from!=r.ch&&l.to!=r.ch)return t;var s=a+(l.from==r.ch==(l.level!=1)?0:1);if(s==0||s==o.length)return t;var u;if(n.line!=r.line)u=(n.line-r.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var g=xe(o,n.ch,n.sticky),y=g-a||(n.ch-r.ch)*(l.level==1?-1:1);g==s-1||g==s?u=y<0:u=y>0}var N=o[s+(u?-1:0)],L=u==(N.level==1),ve=L?N.from:N.to,Oe=L?"after":"before";return r.ch==ve&&r.sticky==Oe?t:new Ln(new A(r.line,ve,Oe),n)}function Tl(e,t,r,n){var i,o;if(t.touches)i=t.touches[0].clientX,o=t.touches[0].clientY;else try{i=t.clientX,o=t.clientY}catch(N){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;n&&ht(t);var a=e.display,l=a.lineDiv.getBoundingClientRect();if(o>l.bottom||!ke(e,r))return At(t);o-=l.top-a.viewOffset;for(var s=0;s<e.display.gutterSpecs.length;++s){var u=a.gutters.childNodes[s];if(u&&u.getBoundingClientRect().right>=i){var g=he(e.doc,o),y=e.display.gutterSpecs[s];return Fe(e,r,e,g,y.className,t),At(t)}}}function ga(e,t){return Tl(e,t,"gutterClick",!0)}function Pl(e,t){Tn(e.display,t)||_s(e,t)||Xe(e,t,"contextmenu")||C||e.display.input.onContextMenu(t)}function _s(e,t){return ke(e,"gutterContextMenu")?Tl(e,t,"gutterContextMenu",!1):!1}function Dl(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Bn(e)}var ji={toString:function(){return"CodeMirror.Init"}},Nl={},Zo={};function Vs(e){var t=e.optionHandlers;function r(n,i,o,a){e.defaults[n]=i,o&&(t[n]=a?function(l,s,u){u!=ji&&o(l,s,u)}:o)}e.defineOption=r,e.Init=ji,r("value","",function(n,i){return n.setValue(i)},!0),r("mode",null,function(n,i){n.doc.modeOption=i,oa(n)},!0),r("indentUnit",2,oa,!0),r("indentWithTabs",!1),r("smartIndent",!0),r("tabSize",4,function(n){oo(n),Bn(n),Tr(n)},!0),r("lineSeparator",null,function(n,i){if(n.doc.lineSep=i,!!i){var o=[],a=n.doc.first;n.doc.iter(function(s){for(var u=0;;){var g=s.text.indexOf(i,u);if(g==-1)break;u=g+i.length,o.push(A(a,g))}a++});for(var l=o.length-1;l>=0;l--)Zi(n.doc,i,o[l],A(o[l].line,o[l].ch+i.length))}}),r("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(n,i,o){n.state.specialChars=new RegExp(i.source+(i.test(" ")?"":"| "),"g"),o!=ji&&n.refresh()}),r("specialCharPlaceholder",pr,function(n){return n.refresh()},!0),r("electricChars",!0),r("inputStyle",We?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),r("spellcheck",!1,function(n,i){return n.getInputField().spellcheck=i},!0),r("autocorrect",!1,function(n,i){return n.getInputField().autocorrect=i},!0),r("autocapitalize",!1,function(n,i){return n.getInputField().autocapitalize=i},!0),r("rtlMoveVisually",!ye),r("wholeLineUpdateBefore",!0),r("theme","default",function(n){Dl(n),io(n)},!0),r("keyMap","default",function(n,i,o){var a=Fo(i),l=o!=ji&&Fo(o);l&&l.detach&&l.detach(n,a),a.attach&&a.attach(n,l||null)}),r("extraKeys",null),r("configureMouse",null),r("lineWrapping",!1,Xs,!0),r("gutters",[],function(n,i){n.display.gutterSpecs=ra(i,n.options.lineNumbers),io(n)},!0),r("fixedGutter",!0,function(n,i){n.display.gutters.style.left=i?Vo(n.display)+"px":"0",n.refresh()},!0),r("coverGutterNextToScrollbar",!1,function(n){return Ai(n)},!0),r("scrollbarStyle","native",function(n){$a(n),Ai(n),n.display.scrollbars.setScrollTop(n.doc.scrollTop),n.display.scrollbars.setScrollLeft(n.doc.scrollLeft)},!0),r("lineNumbers",!1,function(n,i){n.display.gutterSpecs=ra(n.options.gutters,i),io(n)},!0),r("firstLineNumber",1,io,!0),r("lineNumberFormatter",function(n){return n},io,!0),r("showCursorWhenSelecting",!1,Ji,!0),r("resetSelectionOnContextMenu",!0),r("lineWiseCopyCut",!0),r("pasteLinesPerSelection",!0),r("selectionsMayTouch",!1),r("readOnly",!1,function(n,i){i=="nocursor"&&(Di(n),n.display.input.blur()),n.display.input.readOnlyChanged(i)}),r("screenReaderLabel",null,function(n,i){i=i===""?null:i,n.display.input.screenReaderLabelChanged(i)}),r("disableInput",!1,function(n,i){i||n.display.input.reset()},!0),r("dragDrop",!0,Gs),r("allowDropFileTypes",null),r("cursorBlinkRate",530),r("cursorScrollMargin",0),r("cursorHeight",1,Ji,!0),r("singleCursorHeightPerLine",!0,Ji,!0),r("workTime",100),r("workDelay",100),r("flattenSpans",!0,oo,!0),r("addModeClass",!1,oo,!0),r("pollInterval",100),r("undoDepth",200,function(n,i){return n.doc.history.undoDepth=i}),r("historyEventDelay",1250),r("viewportMargin",10,function(n){return n.refresh()},!0),r("maxHighlightLength",1e4,oo,!0),r("moveInputWithCursor",!0,function(n,i){i||n.display.input.resetPosition()}),r("tabindex",null,function(n,i){return n.display.input.getField().tabIndex=i||""}),r("autofocus",null),r("direction","ltr",function(n,i){return n.doc.setDirection(i)},!0),r("phrases",null)}function Gs(e,t,r){var n=r&&r!=ji;if(!t!=!n){var i=e.display.dragFunctions,o=t?_:nt;o(e.display.scroller,"dragstart",i.start),o(e.display.scroller,"dragenter",i.enter),o(e.display.scroller,"dragover",i.over),o(e.display.scroller,"dragleave",i.leave),o(e.display.scroller,"drop",i.drop)}}function Xs(e){e.options.lineWrapping?($(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(b(e.display.wrapper,"CodeMirror-wrap"),Fn(e)),Go(e),Tr(e),Bn(e),setTimeout(function(){return Ai(e)},100)}function Un(e,t){var r=this;if(!(this instanceof Un))return new Un(e,t);this.options=t=t?H(t):{},H(Nl,t,!1);var n=t.value;typeof n=="string"?n=new Pr(n,t.mode,null,t.lineSeparator,t.direction):t.mode&&(n.modeOption=t.mode),this.doc=n;var i=new Un.inputStyles[t.inputStyle](this),o=this.display=new ss(e,n,i,t);o.wrapper.CodeMirror=this,Dl(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),$a(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new fe,keySeq:null,specialChars:null},t.autofocus&&!We&&o.input.focus(),v&&T<11&&setTimeout(function(){return r.display.input.reset(!0)},20),Ys(this),Is(),Mi(this),this.curOp.forceUpdate=!0,Ua(this,n),t.autofocus&&!We||this.hasFocus()?setTimeout(function(){r.hasFocus()&&!r.state.focused&&Yo(r)},20):Di(this);for(var a in Zo)Zo.hasOwnProperty(a)&&Zo[a](this,t[a],ji);Za(this),t.finishInit&&t.finishInit(this);for(var l=0;l<pa.length;++l)pa[l](this);Ii(this),I&&t.lineWrapping&&getComputedStyle(o.lineDiv).textRendering=="optimizelegibility"&&(o.lineDiv.style.textRendering="auto")}Un.defaults=Nl,Un.optionHandlers=Zo;function Ys(e){var t=e.display;_(t.scroller,"mousedown",ur(e,Rl)),v&&T<11?_(t.scroller,"dblclick",ur(e,function(s){if(!Xe(e,s)){var u=xi(e,s);if(!(!u||ga(e,s)||Tn(e.display,s))){ht(s);var g=e.findWordAt(u);Po(e.doc,g.anchor,g.head)}}})):_(t.scroller,"dblclick",function(s){return Xe(e,s)||ht(s)}),_(t.scroller,"contextmenu",function(s){return Pl(e,s)}),_(t.input.getField(),"contextmenu",function(s){t.scroller.contains(s.target)||Pl(e,s)});var r,n={end:0};function i(){t.activeTouch&&(r=setTimeout(function(){return t.activeTouch=null},1e3),n=t.activeTouch,n.end=+new Date)}function o(s){if(s.touches.length!=1)return!1;var u=s.touches[0];return u.radiusX<=1&&u.radiusY<=1}function a(s,u){if(u.left==null)return!0;var g=u.left-s.left,y=u.top-s.top;return g*g+y*y>20*20}_(t.scroller,"touchstart",function(s){if(!Xe(e,s)&&!o(s)&&!ga(e,s)){t.input.ensurePolled(),clearTimeout(r);var u=+new Date;t.activeTouch={start:u,moved:!1,prev:u-n.end<=300?n:null},s.touches.length==1&&(t.activeTouch.left=s.touches[0].pageX,t.activeTouch.top=s.touches[0].pageY)}}),_(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),_(t.scroller,"touchend",function(s){var u=t.activeTouch;if(u&&!Tn(t,s)&&u.left!=null&&!u.moved&&new Date-u.start<300){var g=e.coordsChar(t.activeTouch,"page"),y;!u.prev||a(u,u.prev)?y=new Ln(g,g):!u.prev.prev||a(u,u.prev.prev)?y=e.findWordAt(g):y=new Ln(A(g.line,0),me(e.doc,A(g.line+1,0))),e.setSelection(y.anchor,y.head),e.focus(),ht(s)}i()}),_(t.scroller,"touchcancel",i),_(t.scroller,"scroll",function(){t.scroller.clientHeight&&(eo(e,t.scroller.scrollTop),Ei(e,t.scroller.scrollLeft,!0),Fe(e,"scroll",e))}),_(t.scroller,"mousewheel",function(s){return Ba(e,s)}),_(t.scroller,"DOMMouseScroll",function(s){return Ba(e,s)}),_(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(s){Xe(e,s)||gn(s)},over:function(s){Xe(e,s)||(Ms(e,s),gn(s))},start:function(s){return Os(e,s)},drop:ur(e,Es),leave:function(s){Xe(e,s)||gl(e)}};var l=t.input.getField();_(l,"keyup",function(s){return Ml.call(e,s)}),_(l,"keydown",ur(e,Ol)),_(l,"keypress",ur(e,Il)),_(l,"focus",function(s){return Yo(e,s)}),_(l,"blur",function(s){return Di(e,s)})}var pa=[];Un.defineInitHook=function(e){return pa.push(e)};function bo(e,t,r,n){var i=e.doc,o;r==null&&(r="add"),r=="smart"&&(i.mode.indent?o=It(e,t).state:r="prev");var a=e.options.tabSize,l=O(i,t),s=V(l.text,null,a);l.stateAfter&&(l.stateAfter=null);var u=l.text.match(/^\s*/)[0],g;if(!n&&!/\S/.test(l.text))g=0,r="not";else if(r=="smart"&&(g=i.mode.indent(o,l.text.slice(u.length),l.text),g==Ke||g>150)){if(!n)return;r="prev"}r=="prev"?t>i.first?g=V(O(i,t-1).text,null,a):g=0:r=="add"?g=s+e.options.indentUnit:r=="subtract"?g=s-e.options.indentUnit:typeof r=="number"&&(g=s+r),g=Math.max(0,g);var y="",N=0;if(e.options.indentWithTabs)for(var L=Math.floor(g/a);L;--L)N+=a,y+=" ";if(N<g&&(y+=dt(g-N)),y!=u)return Zi(i,y,A(t,0),A(t,u.length),"+input"),l.stateAfter=null,!0;for(var ve=0;ve<i.sel.ranges.length;ve++){var Oe=i.sel.ranges[ve];if(Oe.head.line==t&&Oe.head.ch<u.length){var Be=A(t,u.length);ua(i,ve,new Ln(Be,Be));break}}}var Jr=null;function Wo(e){Jr=e}function ma(e,t,r,n,i){var o=e.doc;e.display.shift=!1,n||(n=o.sel);var a=+new Date-200,l=i=="paste"||e.state.pasteIncoming>a,s=Yt(t),u=null;if(l&&n.ranges.length>1)if(Jr&&Jr.text.join(`
`)==t){if(n.ranges.length%Jr.text.length==0){u=[];for(var g=0;g<Jr.text.length;g++)u.push(o.splitLines(Jr.text[g]))}}else s.length==n.ranges.length&&e.options.pasteLinesPerSelection&&(u=Rt(s,function(Qe){return[Qe]}));for(var y=e.curOp.updateInput,N=n.ranges.length-1;N>=0;N--){var L=n.ranges[N],ve=L.from(),Oe=L.to();L.empty()&&(r&&r>0?ve=A(ve.line,ve.ch-r):e.state.overwrite&&!l?Oe=A(Oe.line,Math.min(O(o,Oe.line).text.length,Oe.ch+tt(s).length)):l&&Jr&&Jr.lineWise&&Jr.text.join(`
`)==s.join(`
`)&&(ve=Oe=A(ve.line,0)));var Be={from:ve,to:Oe,text:u?u[N%u.length]:s,origin:i||(l?"paste":e.state.cutIncoming>a?"cut":"+input")};zi(e.doc,Be),pt(e,"inputRead",e,Be)}t&&!l&&$l(e,t),Ni(e),e.curOp.updateInput<2&&(e.curOp.updateInput=y),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Al(e,t){var r=e.clipboardData&&e.clipboardData.getData("Text");if(r)return e.preventDefault(),!t.isReadOnly()&&!t.options.disableInput&&Wr(t,function(){return ma(t,r,0,null,"paste")}),!0}function $l(e,t){if(!(!e.options.electricChars||!e.options.smartIndent))for(var r=e.doc.sel,n=r.ranges.length-1;n>=0;n--){var i=r.ranges[n];if(!(i.head.ch>100||n&&r.ranges[n-1].head.line==i.head.line)){var o=e.getModeAt(i.head),a=!1;if(o.electricChars){for(var l=0;l<o.electricChars.length;l++)if(t.indexOf(o.electricChars.charAt(l))>-1){a=bo(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(O(e.doc,i.head.line).text.slice(0,i.head.ch))&&(a=bo(e,i.head.line,"smart"));a&&pt(e,"electricInput",e,i.head.line)}}}function Fl(e){for(var t=[],r=[],n=0;n<e.doc.sel.ranges.length;n++){var i=e.doc.sel.ranges[n].head.line,o={anchor:A(i,0),head:A(i+1,0)};r.push(o),t.push(e.getRange(o.anchor,o.head))}return{text:t,ranges:r}}function zl(e,t,r,n){e.setAttribute("autocorrect",r?"":"off"),e.setAttribute("autocapitalize",n?"":"off"),e.setAttribute("spellcheck",!!t)}function Zl(){var e=z("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),t=z("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return I?e.style.width="1000px":e.setAttribute("wrap","off"),K&&(e.style.border="1px solid black"),zl(e),t}function Qs(e){var t=e.optionHandlers,r=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(n,i){var o=this.options,a=o[n];o[n]==i&&n!="mode"||(o[n]=i,t.hasOwnProperty(n)&&ur(this,t[n])(this,i,a),Fe(this,"optionChange",this,n))},getOption:function(n){return this.options[n]},getDoc:function(){return this.doc},addKeyMap:function(n,i){this.state.keyMaps[i?"push":"unshift"](Fo(n))},removeKeyMap:function(n){for(var i=this.state.keyMaps,o=0;o<i.length;++o)if(i[o]==n||i[o].name==n)return i.splice(o,1),!0},addOverlay:Er(function(n,i){var o=n.token?n:e.getMode(this.options,n);if(o.startState)throw new Error("Overlays may not be stateful.");ut(this.state.overlays,{mode:o,modeSpec:n,opaque:i&&i.opaque,priority:i&&i.priority||0},function(a){return a.priority}),this.state.modeGen++,Tr(this)}),removeOverlay:Er(function(n){for(var i=this.state.overlays,o=0;o<i.length;++o){var a=i[o].modeSpec;if(a==n||typeof n=="string"&&a.name==n){i.splice(o,1),this.state.modeGen++,Tr(this);return}}}),indentLine:Er(function(n,i,o){typeof i!="string"&&typeof i!="number"&&(i==null?i=this.options.smartIndent?"smart":"prev":i=i?"add":"subtract"),De(this.doc,n)&&bo(this,n,i,o)}),indentSelection:Er(function(n){for(var i=this.doc.sel.ranges,o=-1,a=0;a<i.length;a++){var l=i[a];if(l.empty())l.head.line>o&&(bo(this,l.head.line,n,!0),o=l.head.line,a==this.doc.sel.primIndex&&Ni(this));else{var s=l.from(),u=l.to(),g=Math.max(o,s.line);o=Math.min(this.lastLine(),u.line-(u.ch?0:1))+1;for(var y=g;y<o;++y)bo(this,y,n);var N=this.doc.sel.ranges;s.ch==0&&i.length==N.length&&N[a].from().ch>0&&ua(this.doc,a,new Ln(s,N[a].to()),Ce)}}}),getTokenAt:function(n,i){return dn(this,n,i)},getLineTokens:function(n,i){return dn(this,A(n),i,!0)},getTokenTypeAt:function(n){n=me(this.doc,n);var i=Qt(this,O(this.doc,n.line)),o=0,a=(i.length-1)/2,l=n.ch,s;if(l==0)s=i[2];else for(;;){var u=o+a>>1;if((u?i[u*2-1]:0)>=l)a=u;else if(i[u*2+1]<l)o=u+1;else{s=i[u*2+2];break}}var g=s?s.indexOf("overlay "):-1;return g<0?s:g==0?null:s.slice(0,g-1)},getModeAt:function(n){var i=this.doc.mode;return i.innerMode?e.innerMode(i,this.getTokenAt(n).state).mode:i},getHelper:function(n,i){return this.getHelpers(n,i)[0]},getHelpers:function(n,i){var o=[];if(!r.hasOwnProperty(i))return o;var a=r[i],l=this.getModeAt(n);if(typeof l[i]=="string")a[l[i]]&&o.push(a[l[i]]);else if(l[i])for(var s=0;s<l[i].length;s++){var u=a[l[i][s]];u&&o.push(u)}else l.helperType&&a[l.helperType]?o.push(a[l.helperType]):a[l.name]&&o.push(a[l.name]);for(var g=0;g<a._global.length;g++){var y=a._global[g];y.pred(l,this)&&ue(o,y.val)==-1&&o.push(y.val)}return o},getStateAfter:function(n,i){var o=this.doc;return n=wt(o,n==null?o.first+o.size-1:n),It(this,n+1,i).state},cursorCoords:function(n,i){var o,a=this.doc.sel.primary();return n==null?o=a.head:typeof n=="object"?o=me(this.doc,n):o=n?a.from():a.to(),Zr(this,o,i||"page")},charCoords:function(n,i){return Gr(this,me(this.doc,n),i||"page")},coordsChar:function(n,i){return n=li(this,n,i||"page"),ko(this,n.left,n.top)},lineAtHeight:function(n,i){return n=li(this,{top:n,left:0},i||"page").top,he(this.doc,n+this.display.viewOffset)},heightAtLine:function(n,i,o){var a=!1,l;if(typeof n=="number"){var s=this.doc.first+this.doc.size-1;n<this.doc.first?n=this.doc.first:n>s&&(n=s,a=!0),l=O(this.doc,n)}else l=n;return Kr(this,l,{top:0,left:0},i||"page",o||a).top+(a?this.doc.height-Hn(l):0)},defaultTextHeight:function(){return Ti(this.display)},defaultCharWidth:function(){return Pi(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(n,i,o,a,l){var s=this.display;n=Zr(this,me(this.doc,n));var u=n.bottom,g=n.left;if(i.style.position="absolute",i.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(i),s.sizer.appendChild(i),a=="over")u=n.top;else if(a=="above"||a=="near"){var y=Math.max(s.wrapper.clientHeight,this.doc.height),N=Math.max(s.sizer.clientWidth,s.lineSpace.clientWidth);(a=="above"||n.bottom+i.offsetHeight>y)&&n.top>i.offsetHeight?u=n.top-i.offsetHeight:n.bottom+i.offsetHeight<=y&&(u=n.bottom),g+i.offsetWidth>N&&(g=N-i.offsetWidth)}i.style.top=u+"px",i.style.left=i.style.right="",l=="right"?(g=s.sizer.clientWidth-i.offsetWidth,i.style.right="0px"):(l=="left"?g=0:l=="middle"&&(g=(s.sizer.clientWidth-i.offsetWidth)/2),i.style.left=g+"px"),o&&Gl(this,{left:g,top:u,right:g+i.offsetWidth,bottom:u+i.offsetHeight})},triggerOnKeyDown:Er(Ol),triggerOnKeyPress:Er(Il),triggerOnKeyUp:Ml,triggerOnMouseDown:Er(Rl),execCommand:function(n){if(go.hasOwnProperty(n))return go[n].call(null,this)},triggerElectric:Er(function(n){$l(this,n)}),findPosH:function(n,i,o,a){var l=1;i<0&&(l=-1,i=-i);for(var s=me(this.doc,n),u=0;u<i&&(s=ya(this.doc,s,l,o,a),!s.hitSide);++u);return s},moveH:Er(function(n,i){var o=this;this.extendSelectionsBy(function(a){return o.display.shift||o.doc.extend||a.empty()?ya(o.doc,a.head,n,i,o.options.rtlMoveVisually):n<0?a.from():a.to()},Me)}),deleteH:Er(function(n,i){var o=this.doc.sel,a=this.doc;o.somethingSelected()?a.replaceSelection("",null,"+delete"):Bi(this,function(l){var s=ya(a,l.head,n,i,!1);return n<0?{from:s,to:l.head}:{from:l.head,to:s}})}),findPosV:function(n,i,o,a){var l=1,s=a;i<0&&(l=-1,i=-i);for(var u=me(this.doc,n),g=0;g<i;++g){var y=Zr(this,u,"div");if(s==null?s=y.left:y.left=s,u=Wl(this,y,l,o),u.hitSide)break}return u},moveV:Er(function(n,i){var o=this,a=this.doc,l=[],s=!this.display.shift&&!a.extend&&a.sel.somethingSelected();if(a.extendSelectionsBy(function(g){if(s)return n<0?g.from():g.to();var y=Zr(o,g.head,"div");g.goalColumn!=null&&(y.left=g.goalColumn),l.push(y.left);var N=Wl(o,y,n,i);return i=="page"&&g==a.sel.primary()&&Jo(o,Gr(o,N,"div").top-y.top),N},Me),l.length)for(var u=0;u<a.sel.ranges.length;u++)a.sel.ranges[u].goalColumn=l[u]}),findWordAt:function(n){var i=this.doc,o=O(i,n.line).text,a=n.ch,l=n.ch;if(o){var s=this.getHelper(n,"wordChars");(n.sticky=="before"||l==o.length)&&a?--a:++l;for(var u=o.charAt(a),g=w(u,s)?function(y){return w(y,s)}:/\s/.test(u)?function(y){return/\s/.test(y)}:function(y){return!/\s/.test(y)&&!w(y)};a>0&&g(o.charAt(a-1));)--a;for(;l<o.length&&g(o.charAt(l));)++l}return new Ln(A(n.line,a),A(n.line,l))},toggleOverwrite:function(n){n!=null&&n==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?$(this.display.cursorDiv,"CodeMirror-overwrite"):b(this.display.cursorDiv,"CodeMirror-overwrite"),Fe(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==E()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Er(function(n,i){qi(this,n,i)}),getScrollInfo:function(){var n=this.display.scroller;return{left:n.scrollLeft,top:n.scrollTop,height:n.scrollHeight-Rr(this)-this.display.barHeight,width:n.scrollWidth-Rr(this)-this.display.barWidth,clientHeight:_i(this),clientWidth:Lr(this)}},scrollIntoView:Er(function(n,i){n==null?(n={from:this.doc.sel.primary().head,to:null},i==null&&(i=this.options.cursorScrollMargin)):typeof n=="number"?n={from:A(n,0),to:null}:n.from==null&&(n={from:n,to:null}),n.to||(n.to=n.from),n.margin=i||0,n.from.line!=null?Xl(this,n):Pa(this,n.from,n.to,n.margin)}),setSize:Er(function(n,i){var o=this,a=function(s){return typeof s=="number"||/^\d+$/.test(String(s))?s+"px":s};n!=null&&(this.display.wrapper.style.width=a(n)),i!=null&&(this.display.wrapper.style.height=a(i)),this.options.lineWrapping&&br(this);var l=this.display.viewFrom;this.doc.iter(l,this.display.viewTo,function(s){if(s.widgets){for(var u=0;u<s.widgets.length;u++)if(s.widgets[u].noHScroll){hi(o,l,"widget");break}}++l}),this.curOp.forceUpdate=!0,Fe(this,"refresh",this)}),operation:function(n){return Wr(this,n)},startOperation:function(){return Mi(this)},endOperation:function(){return Ii(this)},refresh:Er(function(){var n=this.display.cachedTextHeight;Tr(this),this.curOp.forceUpdate=!0,Bn(this),qi(this,this.doc.scrollLeft,this.doc.scrollTop),ta(this.display),(n==null||Math.abs(n-Ti(this.display))>.5||this.options.lineWrapping)&&Go(this),Fe(this,"refresh",this)}),swapDoc:Er(function(n){var i=this.doc;return i.cm=null,this.state.selectingText&&this.state.selectingText(),Ua(this,n),Bn(this),this.display.input.reset(),qi(this,n.scrollLeft,n.scrollTop),this.curOp.forceScroll=!0,pt(this,"swapDoc",this,i),i}),phrase:function(n){var i=this.options.phrases;return i&&Object.prototype.hasOwnProperty.call(i,n)?i[n]:n},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Wt(e),e.registerHelper=function(n,i,o){r.hasOwnProperty(n)||(r[n]=e[n]={_global:[]}),r[n][i]=o},e.registerGlobalHelper=function(n,i,o,a){e.registerHelper(n,i,a),r[n]._global.push({pred:o,val:a})}}function ya(e,t,r,n,i){var o=t,a=r,l=O(e,t.line),s=i&&e.direction=="rtl"?-r:r;function u(){var st=t.line+s;return st<e.first||st>=e.first+e.size?!1:(t=new A(st,t.ch,t.sticky),l=O(e,st))}function g(st){var Je;if(n=="codepoint"){var gt=l.text.charCodeAt(t.ch+(n>0?0:-1));isNaN(gt)?Je=null:Je=new A(t.line,Math.max(0,Math.min(l.text.length,t.ch+r*(gt>=55296&&gt<56320?2:1))),-r)}else i?Je=Ds(e.cm,l,t,r):Je=fa(l,t,r);if(Je==null)if(!st&&u())t=da(i,e.cm,l,t.line,s);else return!1;else t=Je;return!0}if(n=="char"||n=="codepoint")g();else if(n=="column")g(!0);else if(n=="word"||n=="group")for(var y=null,N=n=="group",L=e.cm&&e.cm.getHelper(t,"wordChars"),ve=!0;!(r<0&&!g(!ve));ve=!1){var Oe=l.text.charAt(t.ch)||`
`,Be=w(Oe,L)?"w":N&&Oe==`
`?"n":!N||/\s/.test(Oe)?null:"p";if(N&&!ve&&!Be&&(Be="s"),y&&y!=Be){r<0&&(r=1,g(),t.sticky="after");break}if(Be&&(y=Be),r>0&&!g(!ve))break}var Qe=No(e,t,o,a,!0);return Ye(o,Qe)&&(Qe.hitSide=!0),Qe}function Wl(e,t,r,n){var i=e.doc,o=t.left,a;if(n=="page"){var l=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),s=Math.max(l-.5*Ti(e.display),3);a=(r>0?t.bottom:t.top)+r*s}else n=="line"&&(a=r>0?t.bottom+3:t.top-3);for(var u;u=ko(e,o,a),!!u.outside;){if(r<0?a<=0:a>=i.height){u.hitSide=!0;break}a+=r*5}return u}var Dn=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new fe,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Dn.prototype.init=function(e){var t=this,r=this,n=r.cm,i=r.div=e.lineDiv;zl(i,n.options.spellcheck,n.options.autocorrect,n.options.autocapitalize);function o(l){for(var s=l.target;s;s=s.parentNode){if(s==i)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(s.className))break}return!1}_(i,"paste",function(l){!o(l)||Xe(n,l)||Al(l,n)||T<=11&&setTimeout(ur(n,function(){return t.updateFromDOM()}),20)}),_(i,"compositionstart",function(l){t.composing={data:l.data,done:!1}}),_(i,"compositionupdate",function(l){t.composing||(t.composing={data:l.data,done:!1})}),_(i,"compositionend",function(l){t.composing&&(l.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),_(i,"touchstart",function(){return r.forceCompositionEnd()}),_(i,"input",function(){t.composing||t.readFromDOMSoon()});function a(l){if(!(!o(l)||Xe(n,l))){if(n.somethingSelected())Wo({lineWise:!1,text:n.getSelections()}),l.type=="cut"&&n.replaceSelection("",null,"cut");else if(n.options.lineWiseCopyCut){var s=Fl(n);Wo({lineWise:!0,text:s.text}),l.type=="cut"&&n.operation(function(){n.setSelections(s.ranges,0,Ce),n.replaceSelection("",null,"cut")})}else return;if(l.clipboardData){l.clipboardData.clearData();var u=Jr.text.join(`
`);if(l.clipboardData.setData("Text",u),l.clipboardData.getData("Text")==u){l.preventDefault();return}}var g=Zl(),y=g.firstChild;n.display.lineSpace.insertBefore(g,n.display.lineSpace.firstChild),y.value=Jr.text.join(`
`);var N=document.activeElement;Y(y),setTimeout(function(){n.display.lineSpace.removeChild(g),N.focus(),N==i&&r.showPrimarySelection()},50)}}_(i,"copy",a),_(i,"cut",a)},Dn.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},Dn.prototype.prepareSelection=function(){var e=Ma(this.cm,!1);return e.focus=document.activeElement==this.div,e},Dn.prototype.showSelection=function(e,t){!e||!this.cm.display.view.length||((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},Dn.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Dn.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,r=t.doc.sel.primary(),n=r.from(),i=r.to();if(t.display.viewTo==t.display.viewFrom||n.line>=t.display.viewTo||i.line<t.display.viewFrom){e.removeAllRanges();return}var o=Ho(t,e.anchorNode,e.anchorOffset),a=Ho(t,e.focusNode,e.focusOffset);if(!(o&&!o.bad&&a&&!a.bad&&ce(Ge(o,a),n)==0&&ce(je(o,a),i)==0)){var l=t.display.view,s=n.line>=t.display.viewFrom&&Hl(t,n)||{node:l[0].measure.map[2],offset:0},u=i.line<t.display.viewTo&&Hl(t,i);if(!u){var g=l[l.length-1].measure,y=g.maps?g.maps[g.maps.length-1]:g.map;u={node:y[y.length-1],offset:y[y.length-2]-y[y.length-3]}}if(!s||!u){e.removeAllRanges();return}var N=e.rangeCount&&e.getRangeAt(0),L;try{L=ie(s.node,s.offset,u.offset,u.node)}catch(ve){}L&&(!x&&t.state.focused?(e.collapse(s.node,s.offset),L.collapsed||(e.removeAllRanges(),e.addRange(L))):(e.removeAllRanges(),e.addRange(L)),N&&e.anchorNode==null?e.addRange(N):x&&this.startGracePeriod()),this.rememberSelection()}},Dn.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation(function(){return e.cm.curOp.selectionChanged=!0})},20)},Dn.prototype.showMultipleSelections=function(e){q(this.cm.display.cursorDiv,e.cursors),q(this.cm.display.selectionDiv,e.selection)},Dn.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},Dn.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return R(this.div,t)},Dn.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Dn.prototype.blur=function(){this.div.blur()},Dn.prototype.getField=function(){return this.div},Dn.prototype.supportsTouch=function(){return!0},Dn.prototype.receivedFocus=function(){var e=this;this.selectionInEditor()?this.pollSelection():Wr(this.cm,function(){return e.cm.curOp.selectionChanged=!0});function t(){e.cm.state.focused&&(e.pollSelection(),e.polling.set(e.cm.options.pollInterval,t))}this.polling.set(this.cm.options.pollInterval,t)},Dn.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},Dn.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var e=this.getSelection(),t=this.cm;if(ge&&se&&this.cm.display.gutterSpecs.length&&Js(e.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var r=Ho(t,e.anchorNode,e.anchorOffset),n=Ho(t,e.focusNode,e.focusOffset);r&&n&&Wr(t,function(){Sr(t.doc,gi(r,n),Ce),(r.bad||n.bad)&&(t.curOp.selectionChanged=!0)})}}},Dn.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e=this.cm,t=e.display,r=e.doc.sel.primary(),n=r.from(),i=r.to();if(n.ch==0&&n.line>e.firstLine()&&(n=A(n.line-1,O(e.doc,n.line-1).length)),i.ch==O(e.doc,i.line).text.length&&i.line<e.lastLine()&&(i=A(i.line+1,0)),n.line<t.viewFrom||i.line>t.viewTo-1)return!1;var o,a,l;n.line==t.viewFrom||(o=wi(e,n.line))==0?(a=ne(t.view[0].line),l=t.view[0].node):(a=ne(t.view[o].line),l=t.view[o-1].node.nextSibling);var s=wi(e,i.line),u,g;if(s==t.view.length-1?(u=t.viewTo-1,g=t.lineDiv.lastChild):(u=ne(t.view[s+1].line)-1,g=t.view[s+1].node.previousSibling),!l)return!1;for(var y=e.doc.splitLines(qs(e,l,g,a,u)),N=j(e.doc,A(a,0),A(u,O(e.doc,u).text.length));y.length>1&&N.length>1;)if(tt(y)==tt(N))y.pop(),N.pop(),u--;else if(y[0]==N[0])y.shift(),N.shift(),a++;else break;for(var L=0,ve=0,Oe=y[0],Be=N[0],Qe=Math.min(Oe.length,Be.length);L<Qe&&Oe.charCodeAt(L)==Be.charCodeAt(L);)++L;for(var st=tt(y),Je=tt(N),gt=Math.min(st.length-(y.length==1?L:0),Je.length-(N.length==1?L:0));ve<gt&&st.charCodeAt(st.length-ve-1)==Je.charCodeAt(Je.length-ve-1);)++ve;if(y.length==1&&N.length==1&&a==n.line)for(;L&&L>n.ch&&st.charCodeAt(st.length-ve-1)==Je.charCodeAt(Je.length-ve-1);)L--,ve++;y[y.length-1]=st.slice(0,st.length-ve).replace(/^\u200b+/,""),y[0]=y[0].slice(L).replace(/\u200b+$/,"");var Ft=A(a,L),Pt=A(u,N.length?tt(N).length-ve:0);if(y.length>1||y[0]||ce(Ft,Pt))return Zi(e.doc,y,Ft,Pt,"+input"),!0},Dn.prototype.ensurePolled=function(){this.forceCompositionEnd()},Dn.prototype.reset=function(){this.forceCompositionEnd()},Dn.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Dn.prototype.readFromDOMSoon=function(){var e=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing)if(e.composing.done)e.composing=null;else return;e.updateFromDOM()},80))},Dn.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&Wr(this.cm,function(){return Tr(e.cm)})},Dn.prototype.setUneditable=function(e){e.contentEditable="false"},Dn.prototype.onKeyPress=function(e){e.charCode==0||this.composing||(e.preventDefault(),this.cm.isReadOnly()||ur(this.cm,ma)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0))},Dn.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},Dn.prototype.onContextMenu=function(){},Dn.prototype.resetPosition=function(){},Dn.prototype.needsContentAttribute=!0;function Hl(e,t){var r=Xi(e,t.line);if(!r||r.hidden)return null;var n=O(e.doc,t.line),i=Vi(r,n,t.line),o=Le(n,e.doc.direction),a="left";if(o){var l=xe(o,t.ch);a=l%2?"right":"left"}var s=Yi(i.map,t.ch,a);return s.offset=s.collapse=="right"?s.end:s.start,s}function Js(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function Ki(e,t){return t&&(e.bad=!0),e}function qs(e,t,r,n,i){var o="",a=!1,l=e.doc.lineSeparator(),s=!1;function u(L){return function(ve){return ve.id==L}}function g(){a&&(o+=l,s&&(o+=l),a=s=!1)}function y(L){L&&(g(),o+=L)}function N(L){if(L.nodeType==1){var ve=L.getAttribute("cm-text");if(ve){y(ve);return}var Oe=L.getAttribute("cm-marker"),Be;if(Oe){var Qe=e.findMarks(A(n,0),A(i+1,0),u(+Oe));Qe.length&&(Be=Qe[0].find(0))&&y(j(e.doc,Be.from,Be.to).join(l));return}if(L.getAttribute("contenteditable")=="false")return;var st=/^(pre|div|p|li|table|br)$/i.test(L.nodeName);if(!/^br$/i.test(L.nodeName)&&L.textContent.length==0)return;st&&g();for(var Je=0;Je<L.childNodes.length;Je++)N(L.childNodes[Je]);/^(pre|p)$/i.test(L.nodeName)&&(s=!0),st&&(a=!0)}else L.nodeType==3&&y(L.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;N(t),t!=r;)t=t.nextSibling,s=!1;return o}function Ho(e,t,r){var n;if(t==e.display.lineDiv){if(n=e.display.lineDiv.childNodes[r],!n)return Ki(e.clipPos(A(e.display.viewTo-1)),!0);t=null,r=0}else for(n=t;;n=n.parentNode){if(!n||n==e.display.lineDiv)return null;if(n.parentNode&&n.parentNode==e.display.lineDiv)break}for(var i=0;i<e.display.view.length;i++){var o=e.display.view[i];if(o.node==n)return eu(o,t,r)}}function eu(e,t,r){var n=e.text.firstChild,i=!1;if(!t||!R(n,t))return Ki(A(ne(e.line),0),!0);if(t==n&&(i=!0,t=n.childNodes[r],r=0,!t)){var o=e.rest?tt(e.rest):e.line;return Ki(A(ne(o),o.text.length),i)}var a=t.nodeType==3?t:null,l=t;for(!a&&t.childNodes.length==1&&t.firstChild.nodeType==3&&(a=t.firstChild,r&&(r=a.nodeValue.length));l.parentNode!=n;)l=l.parentNode;var s=e.measure,u=s.maps;function g(Be,Qe,st){for(var Je=-1;Je<(u?u.length:0);Je++)for(var gt=Je<0?s.map:u[Je],Ft=0;Ft<gt.length;Ft+=3){var Pt=gt[Ft+2];if(Pt==Be||Pt==Qe){var vn=ne(Je<0?e.line:e.rest[Je]),zn=gt[Ft]+st;return(st<0||Pt!=Be)&&(zn=gt[Ft+(st?1:0)]),A(vn,zn)}}}var y=g(a,l,r);if(y)return Ki(y,i);for(var N=l.nextSibling,L=a?a.nodeValue.length-r:0;N;N=N.nextSibling){if(y=g(N,N.firstChild,0),y)return Ki(A(y.line,y.ch-L),i);L+=N.textContent.length}for(var ve=l.previousSibling,Oe=r;ve;ve=ve.previousSibling){if(y=g(ve,ve.firstChild,-1),y)return Ki(A(y.line,y.ch+Oe),i);Oe+=ve.textContent.length}}var qn=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new fe,this.hasSelection=!1,this.composing=null};qn.prototype.init=function(e){var t=this,r=this,n=this.cm;this.createField(e);var i=this.textarea;e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),K&&(i.style.width="0px"),_(i,"input",function(){v&&T>=9&&t.hasSelection&&(t.hasSelection=null),r.poll()}),_(i,"paste",function(a){Xe(n,a)||Al(a,n)||(n.state.pasteIncoming=+new Date,r.fastPoll())});function o(a){if(!Xe(n,a)){if(n.somethingSelected())Wo({lineWise:!1,text:n.getSelections()});else if(n.options.lineWiseCopyCut){var l=Fl(n);Wo({lineWise:!0,text:l.text}),a.type=="cut"?n.setSelections(l.ranges,null,Ce):(r.prevInput="",i.value=l.text.join(`
`),Y(i))}else return;a.type=="cut"&&(n.state.cutIncoming=+new Date)}}_(i,"cut",o),_(i,"copy",o),_(e.scroller,"paste",function(a){if(!(Tn(e,a)||Xe(n,a))){if(!i.dispatchEvent){n.state.pasteIncoming=+new Date,r.focus();return}var l=new Event("paste");l.clipboardData=a.clipboardData,i.dispatchEvent(l)}}),_(e.lineSpace,"selectstart",function(a){Tn(e,a)||ht(a)}),_(i,"compositionstart",function(){var a=n.getCursor("from");r.composing&&r.composing.range.clear(),r.composing={start:a,range:n.markText(a,n.getCursor("to"),{className:"CodeMirror-composing"})}}),_(i,"compositionend",function(){r.composing&&(r.poll(),r.composing.range.clear(),r.composing=null)})},qn.prototype.createField=function(e){this.wrapper=Zl(),this.textarea=this.wrapper.firstChild},qn.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},qn.prototype.prepareSelection=function(){var e=this.cm,t=e.display,r=e.doc,n=Ma(e);if(e.options.moveInputWithCursor){var i=Zr(e,r.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();n.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+a.top-o.top)),n.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+a.left-o.left))}return n},qn.prototype.showSelection=function(e){var t=this.cm,r=t.display;q(r.cursorDiv,e.cursors),q(r.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},qn.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing)){var t=this.cm;if(t.somethingSelected()){this.prevInput="";var r=t.getSelection();this.textarea.value=r,t.state.focused&&Y(this.textarea),v&&T>=9&&(this.hasSelection=r)}else e||(this.prevInput=this.textarea.value="",v&&T>=9&&(this.hasSelection=null))}},qn.prototype.getField=function(){return this.textarea},qn.prototype.supportsTouch=function(){return!1},qn.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!We||E()!=this.textarea))try{this.textarea.focus()}catch(e){}},qn.prototype.blur=function(){this.textarea.blur()},qn.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},qn.prototype.receivedFocus=function(){this.slowPoll()},qn.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},qn.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0;function r(){var n=t.poll();!n&&!e?(e=!0,t.polling.set(60,r)):(t.pollingFast=!1,t.slowPoll())}t.polling.set(20,r)},qn.prototype.poll=function(){var e=this,t=this.cm,r=this.textarea,n=this.prevInput;if(this.contextMenuPending||!t.state.focused||Lt(r)&&!n&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=r.value;if(i==n&&!t.somethingSelected())return!1;if(v&&T>=9&&this.hasSelection===i||Ve&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(o==8203&&!n&&(n="\u200B"),o==8666)return this.reset(),this.cm.execCommand("undo")}for(var a=0,l=Math.min(n.length,i.length);a<l&&n.charCodeAt(a)==i.charCodeAt(a);)++a;return Wr(t,function(){ma(t,i.slice(a),n.length-a,null,e.composing?"*compose":null),i.length>1e3||i.indexOf(`
`)>-1?r.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},qn.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},qn.prototype.onKeyPress=function(){v&&T>=9&&(this.hasSelection=null),this.fastPoll()},qn.prototype.onContextMenu=function(e){var t=this,r=t.cm,n=r.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var o=xi(r,e),a=n.scroller.scrollTop;if(!o||p)return;var l=r.options.resetSelectionOnContextMenu;l&&r.doc.sel.contains(o)==-1&&ur(r,Sr)(r.doc,gi(o),Ce);var s=i.style.cssText,u=t.wrapper.style.cssText,g=t.wrapper.offsetParent.getBoundingClientRect();t.wrapper.style.cssText="position: static",i.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(e.clientY-g.top-5)+"px; left: "+(e.clientX-g.left-5)+`px;
z-index: 1000; background: `+(v?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var y;I&&(y=window.scrollY),n.input.focus(),I&&window.scrollTo(null,y),n.input.reset(),r.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=L,n.selForContextMenu=r.doc.sel,clearTimeout(n.detectingSelectAll);function N(){if(i.selectionStart!=null){var Oe=r.somethingSelected(),Be="\u200B"+(Oe?i.value:"");i.value="\u21DA",i.value=Be,t.prevInput=Oe?"":"\u200B",i.selectionStart=1,i.selectionEnd=Be.length,n.selForContextMenu=r.doc.sel}}function L(){if(t.contextMenuPending==L&&(t.contextMenuPending=!1,t.wrapper.style.cssText=u,i.style.cssText=s,v&&T<9&&n.scrollbars.setScrollTop(n.scroller.scrollTop=a),i.selectionStart!=null)){(!v||v&&T<9)&&N();var Oe=0,Be=function(){n.selForContextMenu==r.doc.sel&&i.selectionStart==0&&i.selectionEnd>0&&t.prevInput=="\u200B"?ur(r,il)(r):Oe++<10?n.detectingSelectAll=setTimeout(Be,500):(n.selForContextMenu=null,n.input.reset())};n.detectingSelectAll=setTimeout(Be,200)}}if(v&&T>=9&&N(),C){gn(e);var ve=function(){nt(window,"mouseup",ve),setTimeout(L,20)};_(window,"mouseup",ve)}else setTimeout(L,50)},qn.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},qn.prototype.setUneditable=function(){},qn.prototype.needsContentAttribute=!1;function tu(e,t){if(t=t?H(t):{},t.value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),t.autofocus==null){var r=E();t.autofocus=r==e||e.getAttribute("autofocus")!=null&&r==document.body}function n(){e.value=l.getValue()}var i;if(e.form&&(_(e.form,"submit",n),!t.leaveSubmitMethodAlone)){var o=e.form;i=o.submit;try{var a=o.submit=function(){n(),o.submit=i,o.submit(),o.submit=a}}catch(s){}}t.finishInit=function(s){s.save=n,s.getTextArea=function(){return e},s.toTextArea=function(){s.toTextArea=isNaN,n(),e.parentNode.removeChild(s.getWrapperElement()),e.style.display="",e.form&&(nt(e.form,"submit",n),!t.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=i))}},e.style.display="none";var l=Un(function(s){return e.parentNode.insertBefore(s,e.nextSibling)},t);return l}function nu(e){e.off=nt,e.on=_,e.wheelEventPixels=us,e.Doc=Pr,e.splitLines=Yt,e.countColumn=V,e.findColumn=Ct,e.isWordChar=F,e.Pass=Ke,e.signal=Fe,e.Line=Kn,e.changeEnd=pi,e.scrollbarModel=Aa,e.Pos=A,e.cmpPos=ce,e.modes=Pn,e.mimeModes=Zn,e.resolveMode=an,e.getMode=it,e.modeExtensions=xt,e.extendMode=m,e.copyState=B,e.startState=h,e.innerMode=le,e.commands=go,e.keyMap=si,e.keyName=Sl,e.isModifierKey=yl,e.lookupKey=Hi,e.normalizeKeyMap=Ps,e.StringStream=d,e.SharedTextMarker=fo,e.TextMarker=yi,e.LineWidget=co,e.e_preventDefault=ht,e.e_stopPropagation=Ut,e.e_stop=gn,e.addClass=$,e.contains=R,e.rmClass=b,e.keyNames=bi}Vs(Un),Qs(Un);var ru="iter insert remove copy getEditor constructor".split(" ");for(var Bo in Pr.prototype)Pr.prototype.hasOwnProperty(Bo)&&ue(ru,Bo)<0&&(Un.prototype[Bo]=function(e){return function(){return e.apply(this.doc,arguments)}}(Pr.prototype[Bo]));return Wt(Pr),Un.inputStyles={textarea:qn,contenteditable:Dn},Un.defineMode=function(e){!Un.defaults.mode&&e!="null"&&(Un.defaults.mode=e),or.apply(this,arguments)},Un.defineMIME=jn,Un.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Un.defineMIME("text/plain","null"),Un.defineExtension=function(e,t){Un.prototype[e]=t},Un.defineDocExtension=function(e,t){Pr.prototype[e]=t},Un.fromTextArea=tu,nu(Un),Un.version="5.58.2",Un})},93681:function(rn,Te,c){"use strict";c.r(Te),c.d(Te,{BaseInput:function(){return p},default:function(){return ye}});var x=c(5891),W=c(57259),S=c(80962),X=c(80665),v=c(92310),T=c.n(v),I=c(59301),k=c(5643),se=function(Q){var C,f,b=Q.inputElement,P=Q.prefixCls,q=Q.prefix,z=Q.suffix,Ne=Q.addonBefore,ie=Q.addonAfter,R=Q.className,E=Q.style,$=Q.disabled,Z=Q.readOnly,Y=Q.focused,G=Q.triggerFocus,H=Q.allowClear,V=Q.value,fe=Q.handleReset,ue=Q.hidden,Ze=Q.classes,Ke=Q.classNames,Ce=Q.dataAttrs,Pe=Q.styles,Me=Q.components,Ct=(Me==null?void 0:Me.affixWrapper)||"span",$t=(Me==null?void 0:Me.groupWrapper)||"span",dt=(Me==null?void 0:Me.wrapper)||"span",tt=(Me==null?void 0:Me.groupAddon)||"span",Rt=(0,I.useRef)(null),ut=function(we){var xe;(xe=Rt.current)!==null&&xe!==void 0&&xe.contains(we.target)&&(G==null||G())},kt=function(){var we;if(!H)return null;var xe=!$&&!Z&&V,Ae="".concat(P,"-clear-icon"),Le=(0,X.Z)(H)==="object"&&H!==null&&H!==void 0&&H.clearIcon?H.clearIcon:"\u2716";return I.createElement("span",{onClick:fe,onMouseDown:function(_){return _.preventDefault()},className:T()(Ae,(we={},(0,S.Z)(we,"".concat(Ae,"-hidden"),!xe),(0,S.Z)(we,"".concat(Ae,"-has-suffix"),!!z),we)),role:"button",tabIndex:-1},Le)},J=(0,I.cloneElement)(b,{value:V,hidden:ue,className:T()((C=b.props)===null||C===void 0?void 0:C.className,!(0,k.X3)(Q)&&!(0,k.He)(Q)&&R)||null,style:(0,W.Z)((0,W.Z)({},(f=b.props)===null||f===void 0?void 0:f.style),!(0,k.X3)(Q)&&!(0,k.He)(Q)?E:{})});if((0,k.X3)(Q)){var M,F="".concat(P,"-affix-wrapper"),w=T()(F,(M={},(0,S.Z)(M,"".concat(F,"-disabled"),$),(0,S.Z)(M,"".concat(F,"-focused"),Y),(0,S.Z)(M,"".concat(F,"-readonly"),Z),(0,S.Z)(M,"".concat(F,"-input-with-clear-btn"),z&&H&&V),M),!(0,k.He)(Q)&&R,Ze==null?void 0:Ze.affixWrapper,Ke==null?void 0:Ke.affixWrapper),U=(z||H)&&I.createElement("span",{className:T()("".concat(P,"-suffix"),Ke==null?void 0:Ke.suffix),style:Pe==null?void 0:Pe.suffix},kt(),z);J=I.createElement(Ct,(0,x.Z)({className:w,style:(0,W.Z)((0,W.Z)({},(0,k.He)(Q)?void 0:E),Pe==null?void 0:Pe.affixWrapper),hidden:!(0,k.He)(Q)&&ue,onClick:ut},Ce==null?void 0:Ce.affixWrapper,{ref:Rt}),q&&I.createElement("span",{className:T()("".concat(P,"-prefix"),Ke==null?void 0:Ke.prefix),style:Pe==null?void 0:Pe.prefix},q),(0,I.cloneElement)(b,{value:V,hidden:null}),U)}if((0,k.He)(Q)){var te="".concat(P,"-group"),oe="".concat(te,"-addon"),ae=T()("".concat(P,"-wrapper"),te,Ze==null?void 0:Ze.wrapper),de=T()("".concat(P,"-group-wrapper"),R,Ze==null?void 0:Ze.group);return I.createElement($t,{className:de,style:E,hidden:ue},I.createElement(dt,{className:ae},Ne&&I.createElement(tt,{className:oe},Ne),(0,I.cloneElement)(J,{hidden:null}),ie&&I.createElement(tt,{className:oe},ie)))}return J},p=se,Se=c(26390),D=c(29043),pe=c(19149),K=c(35788),ge=c(64002),We=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","classes","classNames","styles"],Ve=(0,I.forwardRef)(function(re,Q){var C=re.autoComplete,f=re.onChange,b=re.onFocus,P=re.onBlur,q=re.onPressEnter,z=re.onKeyDown,Ne=re.prefixCls,ie=Ne===void 0?"rc-input":Ne,R=re.disabled,E=re.htmlSize,$=re.className,Z=re.maxLength,Y=re.suffix,G=re.showCount,H=re.type,V=H===void 0?"text":H,fe=re.classes,ue=re.classNames,Ze=re.styles,Ke=(0,pe.Z)(re,We),Ce=(0,K.Z)(re.defaultValue,{value:re.value}),Pe=(0,D.Z)(Ce,2),Me=Pe[0],Ct=Pe[1],$t=(0,I.useState)(!1),dt=(0,D.Z)($t,2),tt=dt[0],Rt=dt[1],ut=(0,I.useRef)(null),kt=function(de){ut.current&&(0,k.nH)(ut.current,de)};(0,I.useImperativeHandle)(Q,function(){return{focus:kt,blur:function(){var de;(de=ut.current)===null||de===void 0||de.blur()},setSelectionRange:function(de,Ie,we){var xe;(xe=ut.current)===null||xe===void 0||xe.setSelectionRange(de,Ie,we)},select:function(){var de;(de=ut.current)===null||de===void 0||de.select()},input:ut.current}}),(0,I.useEffect)(function(){Rt(function(ae){return ae&&R?!1:ae})},[R]);var J=function(de){re.value===void 0&&Ct(de.target.value),ut.current&&(0,k.rJ)(ut.current,de,f)},M=function(de){q&&de.key==="Enter"&&q(de),z==null||z(de)},F=function(de){Rt(!0),b==null||b(de)},w=function(de){Rt(!1),P==null||P(de)},U=function(de){Ct(""),kt(),ut.current&&(0,k.rJ)(ut.current,de,f)},te=function(){var de=(0,ge.Z)(re,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","classes","htmlSize","styles","classNames"]);return I.createElement("input",(0,x.Z)({autoComplete:C},de,{onChange:J,onFocus:F,onBlur:w,onKeyDown:M,className:T()(ie,(0,S.Z)({},"".concat(ie,"-disabled"),R),ue==null?void 0:ue.input),style:Ze==null?void 0:Ze.input,ref:ut,size:E,type:V}))},oe=function(){var de=Number(Z)>0;if(Y||G){var Ie=(0,k.D7)(Me),we=(0,Se.Z)(Ie).length,xe=(0,X.Z)(G)==="object"?G.formatter({value:Ie,count:we,maxLength:Z}):"".concat(we).concat(de?" / ".concat(Z):"");return I.createElement(I.Fragment,null,!!G&&I.createElement("span",{className:T()("".concat(ie,"-show-count-suffix"),(0,S.Z)({},"".concat(ie,"-show-count-has-suffix"),!!Y),ue==null?void 0:ue.count),style:(0,W.Z)({},Ze==null?void 0:Ze.count)},xe),Y)}return null};return I.createElement(p,(0,x.Z)({},Ke,{prefixCls:ie,className:$,inputElement:te(),handleReset:U,value:(0,k.D7)(Me),focused:tt,triggerFocus:kt,suffix:oe(),disabled:R,classes:fe,classNames:ue,styles:Ze}))}),Re=Ve,ye=Re},5643:function(rn,Te,c){"use strict";c.d(Te,{D7:function(){return v},He:function(){return x},X3:function(){return W},nH:function(){return X},rJ:function(){return S}});function x(T){return!!(T.addonBefore||T.addonAfter)}function W(T){return!!(T.prefix||T.suffix||T.allowClear)}function S(T,I,k,se){if(k){var p=I;if(I.type==="click"){var Se=T.cloneNode(!0);p=Object.create(I,{target:{value:Se},currentTarget:{value:Se}}),Se.value="",k(p);return}if(se!==void 0){p=Object.create(I,{target:{value:T},currentTarget:{value:T}}),T.value=se,k(p);return}k(p)}}function X(T,I){if(T){T.focus(I);var k=I||{},se=k.cursor;if(se){var p=T.value.length;switch(se){case"start":T.setSelectionRange(0,0);break;case"end":T.setSelectionRange(p,p);break;default:T.setSelectionRange(0,p)}}}}function v(T){return typeof T=="undefined"||T===null?"":String(T)}},11780:function(rn,Te,c){"use strict";c.d(Te,{Z:function(){return G}});var x=c(5891),W=c(57259),S=c(29043),X=c(19149),v=c(59301),T=c(92310),I=c.n(T),k=c(29301),se=c(28800),p=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Se=void 0;function D(H,V){var fe=H.prefixCls,ue=H.invalidate,Ze=H.item,Ke=H.renderItem,Ce=H.responsive,Pe=H.responsiveDisabled,Me=H.registerSize,Ct=H.itemKey,$t=H.className,dt=H.style,tt=H.children,Rt=H.display,ut=H.order,kt=H.component,J=kt===void 0?"div":kt,M=(0,X.Z)(H,p),F=Ce&&!Rt;function w(de){Me(Ct,de)}v.useEffect(function(){return function(){w(null)}},[]);var U=Ke&&Ze!==Se?Ke(Ze,{index:ut}):tt,te;ue||(te={opacity:F?0:1,height:F?0:Se,overflowY:F?"hidden":Se,order:Ce?ut:Se,pointerEvents:F?"none":Se,position:F?"absolute":Se});var oe={};F&&(oe["aria-hidden"]=!0);var ae=v.createElement(J,(0,x.Z)({className:I()(!ue&&fe,$t),style:(0,W.Z)((0,W.Z)({},te),dt)},oe,M,{ref:V}),U);return Ce&&(ae=v.createElement(k.Z,{onResize:function(Ie){var we=Ie.offsetWidth;w(we)},disabled:Pe},ae)),ae}var pe=v.forwardRef(D);pe.displayName="Item";var K=pe,ge=c(8107),We=c(4676),Ve=c(23073);function Re(H){if(typeof MessageChannel=="undefined")(0,Ve.Z)(H);else{var V=new MessageChannel;V.port1.onmessage=function(){return H()},V.port2.postMessage(void 0)}}function ye(){var H=v.useRef(null),V=function(ue){H.current||(H.current=[],Re(function(){(0,We.unstable_batchedUpdates)(function(){H.current.forEach(function(Ze){Ze()}),H.current=null})})),H.current.push(ue)};return V}function re(H,V){var fe=v.useState(V),ue=(0,S.Z)(fe,2),Ze=ue[0],Ke=ue[1],Ce=(0,ge.Z)(function(Pe){H(function(){Ke(Pe)})});return[Ze,Ce]}var Q=v.createContext(null),C=["component"],f=["className"],b=["className"],P=function(V,fe){var ue=v.useContext(Q);if(!ue){var Ze=V.component,Ke=Ze===void 0?"div":Ze,Ce=(0,X.Z)(V,C);return v.createElement(Ke,(0,x.Z)({},Ce,{ref:fe}))}var Pe=ue.className,Me=(0,X.Z)(ue,f),Ct=V.className,$t=(0,X.Z)(V,b);return v.createElement(Q.Provider,{value:null},v.createElement(K,(0,x.Z)({ref:fe,className:I()(Pe,Ct)},Me,$t)))},q=v.forwardRef(P);q.displayName="RawItem";var z=q,Ne=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],ie="responsive",R="invalidate";function E(H){return"+ ".concat(H.length," ...")}function $(H,V){var fe=H.prefixCls,ue=fe===void 0?"rc-overflow":fe,Ze=H.data,Ke=Ze===void 0?[]:Ze,Ce=H.renderItem,Pe=H.renderRawItem,Me=H.itemKey,Ct=H.itemWidth,$t=Ct===void 0?10:Ct,dt=H.ssr,tt=H.style,Rt=H.className,ut=H.maxCount,kt=H.renderRest,J=H.renderRawRest,M=H.suffix,F=H.component,w=F===void 0?"div":F,U=H.itemComponent,te=H.onVisibleChange,oe=(0,X.Z)(H,Ne),ae=dt==="full",de=ye(),Ie=re(de,null),we=(0,S.Z)(Ie,2),xe=we[0],Ae=we[1],Le=xe||0,ze=re(de,new Map),_=(0,S.Z)(ze,2),_e=_[0],nt=_[1],Fe=re(de,0),Xe=(0,S.Z)(Fe,2),ot=Xe[0],ke=Xe[1],Wt=re(de,0),ht=(0,S.Z)(Wt,2),Ut=ht[0],At=ht[1],gn=re(de,0),tn=(0,S.Z)(gn,2),pn=tn[0],Mn=tn[1],fn=(0,v.useState)(null),sn=(0,S.Z)(fn,2),Ht=sn[0],on=sn[1],Yt=(0,v.useState)(null),Lt=(0,S.Z)(Yt,2),En=Lt[0],Tt=Lt[1],yn=v.useMemo(function(){return En===null&&ae?Number.MAX_SAFE_INTEGER:En||0},[En,xe]),Pn=(0,v.useState)(!1),Zn=(0,S.Z)(Pn,2),or=Zn[0],jn=Zn[1],an="".concat(ue,"-item"),it=Math.max(ot,Ut),xt=ut===ie,m=Ke.length&&xt,B=ut===R,le=m||typeof ut=="number"&&Ke.length>ut,h=(0,v.useMemo)(function(){var Ee=Ke;return m?xe===null&&ae?Ee=Ke:Ee=Ke.slice(0,Math.min(Ke.length,Le/$t)):typeof ut=="number"&&(Ee=Ke.slice(0,ut)),Ee},[Ke,$t,xe,ut,m]),d=(0,v.useMemo)(function(){return m?Ke.slice(yn+1):Ke.slice(h.length)},[Ke,h,m,yn]),O=(0,v.useCallback)(function(Ee,He){var at;return typeof Me=="function"?Me(Ee):(at=Me&&(Ee==null?void 0:Ee[Me]))!==null&&at!==void 0?at:He},[Me]),j=(0,v.useCallback)(Ce||function(Ee){return Ee},[Ce]);function be(Ee,He,at){En===Ee&&(He===void 0||He===Ht)||(Tt(Ee),at||(jn(Ee<Ke.length-1),te==null||te(Ee)),He!==void 0&&on(He))}function ee(Ee,He){Ae(He.clientWidth)}function ne(Ee,He){nt(function(at){var ct=new Map(at);return He===null?ct.delete(Ee):ct.set(Ee,He),ct})}function he(Ee,He){At(He),ke(Ut)}function De(Ee,He){Mn(He)}function Ue(Ee){return _e.get(O(h[Ee],Ee))}(0,se.Z)(function(){if(Le&&typeof it=="number"&&h){var Ee=pn,He=h.length,at=He-1;if(!He){be(0,null);return}for(var ct=0;ct<He;ct+=1){var yt=Ue(ct);if(ae&&(yt=yt||0),yt===void 0){be(ct-1,void 0,!0);break}if(Ee+=yt,at===0&&Ee<=Le||ct===at-1&&Ee+Ue(at)<=Le){be(at,null);break}else if(Ee+it>Le){be(ct-1,Ee-yt-pn+Ut);break}}M&&Ue(0)+pn>Le&&on(null)}},[Le,_e,Ut,pn,O,h]);var A=or&&!!d.length,ce={};Ht!==null&&m&&(ce={position:"absolute",left:Ht,top:0});var Ye={prefixCls:an,responsive:m,component:U,invalidate:B},$e=Pe?function(Ee,He){var at=O(Ee,He);return v.createElement(Q.Provider,{key:at,value:(0,W.Z)((0,W.Z)({},Ye),{},{order:He,item:Ee,itemKey:at,registerSize:ne,display:He<=yn})},Pe(Ee,He))}:function(Ee,He){var at=O(Ee,He);return v.createElement(K,(0,x.Z)({},Ye,{order:He,key:at,item:Ee,renderItem:j,itemKey:at,registerSize:ne,display:He<=yn}))},je={order:A?yn:Number.MAX_SAFE_INTEGER,className:"".concat(an,"-rest"),registerSize:he,display:A},Ge=kt||E,wt=J?v.createElement(Q.Provider,{value:(0,W.Z)((0,W.Z)({},Ye),je)},J(d)):v.createElement(K,(0,x.Z)({},Ye,je),typeof Ge=="function"?Ge(d):Ge),me=v.createElement(w,(0,x.Z)({className:I()(!B&&ue,Rt),style:tt,ref:V},oe),h.map($e),le?wt:null,M&&v.createElement(K,(0,x.Z)({},Ye,{responsive:xt,responsiveDisabled:!m,order:yn,className:"".concat(an,"-suffix"),registerSize:De,display:!0,style:ce}),M));return xt?v.createElement(k.Z,{onResize:ee,disabled:!m},me):me}var Z=v.forwardRef($);Z.displayName="Overflow",Z.Item=z,Z.RESPONSIVE=ie,Z.INVALIDATE=R;var Y=Z,G=Y},29301:function(rn,Te,c){"use strict";c.d(Te,{Z:function(){return R}});var x=c(5891),W=c(59301),S=c(38298),X=c(51395),v=c(57259),T=c(80665),I=c(85899),k=c(20475),se=W.createContext(null);function p(E){var $=E.children,Z=E.onBatchResize,Y=W.useRef(0),G=W.useRef([]),H=W.useContext(se),V=W.useCallback(function(fe,ue,Ze){Y.current+=1;var Ke=Y.current;G.current.push({size:fe,element:ue,data:Ze}),Promise.resolve().then(function(){Ke===Y.current&&(Z==null||Z(G.current),G.current=[])}),H==null||H(fe,ue,Ze)},[Z,H]);return W.createElement(se.Provider,{value:V},$)}var Se=c(76374),D=new Map;function pe(E){E.forEach(function($){var Z,Y=$.target;(Z=D.get(Y))===null||Z===void 0||Z.forEach(function(G){return G(Y)})})}var K=new Se.Z(pe),ge=null,We=null;function Ve(E,$){D.has(E)||(D.set(E,new Set),K.observe(E)),D.get(E).add($)}function Re(E,$){D.has(E)&&(D.get(E).delete($),D.get(E).size||(K.unobserve(E),D.delete(E)))}var ye=c(79545),re=c(68550),Q=c(17928),C=c(7711),f=function(E){(0,Q.Z)(Z,E);var $=(0,C.Z)(Z);function Z(){return(0,ye.Z)(this,Z),$.apply(this,arguments)}return(0,re.Z)(Z,[{key:"render",value:function(){return this.props.children}}]),Z}(W.Component);function b(E,$){var Z=E.children,Y=E.disabled,G=W.useRef(null),H=W.useRef(null),V=W.useContext(se),fe=typeof Z=="function",ue=fe?Z(G):Z,Ze=W.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),Ke=!fe&&W.isValidElement(ue)&&(0,k.Yr)(ue),Ce=Ke?(0,k.C4)(ue):null,Pe=(0,k.x1)(Ce,G),Me=function(){var tt;return(0,I.ZP)(G.current)||(G.current&&(0,T.Z)(G.current)==="object"?(0,I.ZP)((tt=G.current)===null||tt===void 0?void 0:tt.nativeElement):null)||(0,I.ZP)(H.current)};W.useImperativeHandle($,function(){return Me()});var Ct=W.useRef(E);Ct.current=E;var $t=W.useCallback(function(dt){var tt=Ct.current,Rt=tt.onResize,ut=tt.data,kt=dt.getBoundingClientRect(),J=kt.width,M=kt.height,F=dt.offsetWidth,w=dt.offsetHeight,U=Math.floor(J),te=Math.floor(M);if(Ze.current.width!==U||Ze.current.height!==te||Ze.current.offsetWidth!==F||Ze.current.offsetHeight!==w){var oe={width:U,height:te,offsetWidth:F,offsetHeight:w};Ze.current=oe;var ae=F===Math.round(J)?J:F,de=w===Math.round(M)?M:w,Ie=(0,v.Z)((0,v.Z)({},oe),{},{offsetWidth:ae,offsetHeight:de});V==null||V(Ie,dt,ut),Rt&&Promise.resolve().then(function(){Rt(Ie,dt)})}},[]);return W.useEffect(function(){var dt=Me();return dt&&!Y&&Ve(dt,$t),function(){return Re(dt,$t)}},[G.current,Y]),W.createElement(f,{ref:H},Ke?W.cloneElement(ue,{ref:Pe}):ue)}var P=W.forwardRef(b),q=P,z="rc-observer-key";function Ne(E,$){var Z=E.children,Y=typeof Z=="function"?[Z]:(0,S.Z)(Z);return Y.map(function(G,H){var V=(G==null?void 0:G.key)||"".concat(z,"-").concat(H);return W.createElement(q,(0,x.Z)({},E,{key:V,ref:H===0?$:void 0}),G)})}var ie=W.forwardRef(Ne);ie.Collection=p;var R=ie},17115:function(rn,Te,c){"use strict";c.d(Te,{ZP:function(){return I}});var x=c(29043),W=c(59301),S=c(87746),X=0,v=(0,S.Z)();function T(){var k;return v?(k=X,X+=1):k="TEST_OR_SSR",k}function I(k){var se=W.useState(),p=(0,x.Z)(se,2),Se=p[0],D=p[1];return W.useEffect(function(){D("rc_select_".concat(T()))},[]),k||Se}},77861:function(rn,Te,c){"use strict";c.d(Te,{Ac:function(){return Ae},Xo:function(){return At},Wx:function(){return tn},ZP:function(){return le},lk:function(){return Q}});var x=c(5891),W=c(26390),S=c(80962),X=c(57259),v=c(29043),T=c(19149),I=c(80665),k=c(35788),se=c(51395),p=c(59301),Se=c(92310),D=c.n(Se),pe=c(28800),K=c(93144),ge=c(85108),We=c(20475),Ve=function(d){var O=d.className,j=d.customizeIcon,be=d.customizeIconProps,ee=d.onMouseDown,ne=d.onClick,he=d.children,De;return typeof j=="function"?De=j(be):De=j,p.createElement("span",{className:O,onMouseDown:function(A){A.preventDefault(),ee&&ee(A)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:ne,"aria-hidden":!0},De!==void 0?De:p.createElement("span",{className:D()(O.split(/\s+/).map(function(Ue){return"".concat(Ue,"-icon")}))},he))},Re=Ve;function ye(h,d,O,j,be){var ee=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,ne=arguments.length>6?arguments[6]:void 0,he=arguments.length>7?arguments[7]:void 0,De=p.useMemo(function(){if((0,I.Z)(j)==="object")return j.clearIcon;if(be)return be},[j,be]),Ue=p.useMemo(function(){return!!(!ee&&j&&(O.length||ne)&&!(he==="combobox"&&ne===""))},[j,ee,O.length,ne,he]);return{allowClear:Ue,clearIcon:p.createElement(Re,{className:"".concat(h,"-clear"),onMouseDown:d,customizeIcon:De},"\xD7")}}var re=p.createContext(null);function Q(){return p.useContext(re)}function C(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,d=p.useState(!1),O=(0,v.Z)(d,2),j=O[0],be=O[1],ee=p.useRef(null),ne=function(){window.clearTimeout(ee.current)};p.useEffect(function(){return ne},[]);var he=function(Ue,A){ne(),ee.current=window.setTimeout(function(){be(Ue),A&&A()},h)};return[j,he,ne]}function f(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,d=p.useRef(null),O=p.useRef(null);p.useEffect(function(){return function(){window.clearTimeout(O.current)}},[]);function j(be){(be||d.current===null)&&(d.current=be),window.clearTimeout(O.current),O.current=window.setTimeout(function(){d.current=null},h)}return[function(){return d.current},j]}function b(h,d,O,j){var be=p.useRef(null);be.current={open:d,triggerOpen:O,customizedTrigger:j},p.useEffect(function(){function ee(ne){var he;if(!((he=be.current)!==null&&he!==void 0&&he.customizedTrigger)){var De=ne.target;De.shadowRoot&&ne.composed&&(De=ne.composedPath()[0]||De),be.current.open&&h().filter(function(Ue){return Ue}).every(function(Ue){return!Ue.contains(De)&&Ue!==De})&&be.current.triggerOpen(!1)}}return window.addEventListener("mousedown",ee),function(){return window.removeEventListener("mousedown",ee)}},[])}var P=c(36994),q=c(11780),z=function(d,O){var j,be,ee=d.prefixCls,ne=d.id,he=d.inputElement,De=d.disabled,Ue=d.tabIndex,A=d.autoFocus,ce=d.autoComplete,Ye=d.editable,$e=d.activeDescendantId,je=d.value,Ge=d.maxLength,wt=d.onKeyDown,me=d.onMouseDown,Ee=d.onChange,He=d.onPaste,at=d.onCompositionStart,ct=d.onCompositionEnd,yt=d.open,Qt=d.attrs,It=he||p.createElement("input",null),Bt=It,Jt=Bt.ref,Ot=Bt.props,_t=Ot.onKeyDown,dn=Ot.onChange,qt=Ot.onMouseDown,en=Ot.onCompositionStart,bt=Ot.onCompositionEnd,et=Ot.style;return(0,se.Kp)(!("maxLength"in It.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),It=p.cloneElement(It,(0,X.Z)((0,X.Z)((0,X.Z)({type:"search"},Ot),{},{id:ne,ref:(0,We.sQ)(O,Jt),disabled:De,tabIndex:Ue,autoComplete:ce||"off",autoFocus:A,className:D()("".concat(ee,"-selection-search-input"),(j=It)===null||j===void 0||(be=j.props)===null||be===void 0?void 0:be.className),role:"combobox","aria-label":"Search","aria-expanded":yt||!1,"aria-haspopup":"listbox","aria-owns":"".concat(ne,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(ne,"_list"),"aria-activedescendant":yt?$e:void 0},Qt),{},{value:Ye?je:"",maxLength:Ge,readOnly:!Ye,unselectable:Ye?null:"on",style:(0,X.Z)((0,X.Z)({},et),{},{opacity:Ye?null:0}),onKeyDown:function(Mt){wt(Mt),_t&&_t(Mt)},onMouseDown:function(Mt){me(Mt),qt&&qt(Mt)},onChange:function(Mt){Ee(Mt),dn&&dn(Mt)},onCompositionStart:function(Mt){at(Mt),en&&en(Mt)},onCompositionEnd:function(Mt){ct(Mt),bt&&bt(Mt)},onPaste:He})),It},Ne=p.forwardRef(z);Ne.displayName="Input";var ie=Ne;function R(h){return Array.isArray(h)?h:h!==void 0?[h]:[]}var E=typeof window!="undefined"&&window.document&&window.document.documentElement,$=E;function Z(h){return h!=null}function Y(h){return!h&&h!==0}function G(h){return["string","number"].includes((0,I.Z)(h))}function H(h){var d=void 0;return h&&(G(h.title)?d=h.title.toString():G(h.label)&&(d=h.label.toString())),d}function V(h,d){$?p.useLayoutEffect(h,d):p.useEffect(h,d)}function fe(h){var d;return(d=h.key)!==null&&d!==void 0?d:h.value}var ue=function(d){d.preventDefault(),d.stopPropagation()},Ze=function(d){var O=d.id,j=d.prefixCls,be=d.values,ee=d.open,ne=d.searchValue,he=d.autoClearSearchValue,De=d.inputRef,Ue=d.placeholder,A=d.disabled,ce=d.mode,Ye=d.showSearch,$e=d.autoFocus,je=d.autoComplete,Ge=d.activeDescendantId,wt=d.tabIndex,me=d.removeIcon,Ee=d.maxTagCount,He=d.maxTagTextLength,at=d.maxTagPlaceholder,ct=at===void 0?function(Kt){return"+ ".concat(Kt.length," ...")}:at,yt=d.tagRender,Qt=d.onToggleOpen,It=d.onRemove,Bt=d.onInputChange,Jt=d.onInputPaste,Ot=d.onInputKeyDown,_t=d.onInputMouseDown,dn=d.onInputCompositionStart,qt=d.onInputCompositionEnd,en=p.useRef(null),bt=(0,p.useState)(0),et=(0,v.Z)(bt,2),zt=et[0],Mt=et[1],bn=(0,p.useState)(!1),jt=(0,v.Z)(bn,2),ln=jt[0],Sn=jt[1],Dt="".concat(j,"-selection"),An=ee||ce==="multiple"&&he===!1||ce==="tags"?ne:"",_n=ce==="tags"||ce==="multiple"&&he===!1||Ye&&(ee||ln);V(function(){Mt(en.current.scrollWidth)},[An]);function Nt(Kt,mn,Cn,Rn,rt){return p.createElement("span",{className:D()("".concat(Dt,"-item"),(0,S.Z)({},"".concat(Dt,"-item-disabled"),Cn)),title:H(Kt)},p.createElement("span",{className:"".concat(Dt,"-item-content")},mn),Rn&&p.createElement(Re,{className:"".concat(Dt,"-item-remove"),onMouseDown:ue,onClick:rt,customizeIcon:me},"\xD7"))}function vt(Kt,mn,Cn,Rn,rt){var qe=function(Vt){ue(Vt),Qt(!ee)};return p.createElement("span",{onMouseDown:qe},yt({label:mn,value:Kt,disabled:Cn,closable:Rn,onClose:rt}))}function Et(Kt){var mn=Kt.disabled,Cn=Kt.label,Rn=Kt.value,rt=!A&&!mn,qe=Cn;if(typeof He=="number"&&(typeof Cn=="string"||typeof Cn=="number")){var lt=String(qe);lt.length>He&&(qe="".concat(lt.slice(0,He),"..."))}var Vt=function(er){er&&er.stopPropagation(),It(Kt)};return typeof yt=="function"?vt(Rn,qe,mn,rt,Vt):Nt(Kt,qe,mn,rt,Vt)}function un(Kt){var mn=typeof ct=="function"?ct(Kt):ct;return Nt({title:mn},mn,!1)}var cn=p.createElement("div",{className:"".concat(Dt,"-search"),style:{width:zt},onFocus:function(){Sn(!0)},onBlur:function(){Sn(!1)}},p.createElement(ie,{ref:De,open:ee,prefixCls:j,id:O,inputElement:null,disabled:A,autoFocus:$e,autoComplete:je,editable:_n,activeDescendantId:Ge,value:An,onKeyDown:Ot,onMouseDown:_t,onChange:Bt,onPaste:Jt,onCompositionStart:dn,onCompositionEnd:qt,tabIndex:wt,attrs:(0,P.Z)(d,!0)}),p.createElement("span",{ref:en,className:"".concat(Dt,"-search-mirror"),"aria-hidden":!0},An,"\xA0")),nn=p.createElement(q.Z,{prefixCls:"".concat(Dt,"-overflow"),data:be,renderItem:Et,renderRest:un,suffix:cn,itemKey:fe,maxCount:Ee});return p.createElement(p.Fragment,null,nn,!be.length&&!An&&p.createElement("span",{className:"".concat(Dt,"-placeholder")},Ue))},Ke=Ze,Ce=function(d){var O=d.inputElement,j=d.prefixCls,be=d.id,ee=d.inputRef,ne=d.disabled,he=d.autoFocus,De=d.autoComplete,Ue=d.activeDescendantId,A=d.mode,ce=d.open,Ye=d.values,$e=d.placeholder,je=d.tabIndex,Ge=d.showSearch,wt=d.searchValue,me=d.activeValue,Ee=d.maxLength,He=d.onInputKeyDown,at=d.onInputMouseDown,ct=d.onInputChange,yt=d.onInputPaste,Qt=d.onInputCompositionStart,It=d.onInputCompositionEnd,Bt=d.title,Jt=p.useState(!1),Ot=(0,v.Z)(Jt,2),_t=Ot[0],dn=Ot[1],qt=A==="combobox",en=qt||Ge,bt=Ye[0],et=wt||"";qt&&me&&!_t&&(et=me),p.useEffect(function(){qt&&dn(!1)},[qt,me]);var zt=A!=="combobox"&&!ce&&!Ge?!1:!!et,Mt=Bt===void 0?H(bt):Bt,bn=function(){if(bt)return null;var ln=zt?{visibility:"hidden"}:void 0;return p.createElement("span",{className:"".concat(j,"-selection-placeholder"),style:ln},$e)};return p.createElement(p.Fragment,null,p.createElement("span",{className:"".concat(j,"-selection-search")},p.createElement(ie,{ref:ee,prefixCls:j,id:be,open:ce,inputElement:O,disabled:ne,autoFocus:he,autoComplete:De,editable:en,activeDescendantId:Ue,value:et,onKeyDown:He,onMouseDown:at,onChange:function(ln){dn(!0),ct(ln)},onPaste:yt,onCompositionStart:Qt,onCompositionEnd:It,tabIndex:je,attrs:(0,P.Z)(d,!0),maxLength:qt?Ee:void 0})),!qt&&bt?p.createElement("span",{className:"".concat(j,"-selection-item"),title:Mt,style:zt?{visibility:"hidden"}:void 0},bt.label):null,bn())},Pe=Ce;function Me(h){return![ge.Z.ESC,ge.Z.SHIFT,ge.Z.BACKSPACE,ge.Z.TAB,ge.Z.WIN_KEY,ge.Z.ALT,ge.Z.META,ge.Z.WIN_KEY_RIGHT,ge.Z.CTRL,ge.Z.SEMICOLON,ge.Z.EQUALS,ge.Z.CAPS_LOCK,ge.Z.CONTEXT_MENU,ge.Z.F1,ge.Z.F2,ge.Z.F3,ge.Z.F4,ge.Z.F5,ge.Z.F6,ge.Z.F7,ge.Z.F8,ge.Z.F9,ge.Z.F10,ge.Z.F11,ge.Z.F12].includes(h)}var Ct=function(d,O){var j=(0,p.useRef)(null),be=(0,p.useRef)(!1),ee=d.prefixCls,ne=d.open,he=d.mode,De=d.showSearch,Ue=d.tokenWithEnter,A=d.autoClearSearchValue,ce=d.onSearch,Ye=d.onSearchSubmit,$e=d.onToggleOpen,je=d.onInputKeyDown,Ge=d.domRef;p.useImperativeHandle(O,function(){return{focus:function(){j.current.focus()},blur:function(){j.current.blur()}}});var wt=f(0),me=(0,v.Z)(wt,2),Ee=me[0],He=me[1],at=function(et){var zt=et.which;(zt===ge.Z.UP||zt===ge.Z.DOWN)&&et.preventDefault(),je&&je(et),zt===ge.Z.ENTER&&he==="tags"&&!be.current&&!ne&&(Ye==null||Ye(et.target.value)),Me(zt)&&$e(!0)},ct=function(){He(!0)},yt=(0,p.useRef)(null),Qt=function(et){ce(et,!0,be.current)!==!1&&$e(!0)},It=function(){be.current=!0},Bt=function(et){be.current=!1,he!=="combobox"&&Qt(et.target.value)},Jt=function(et){var zt=et.target.value;if(Ue&&yt.current&&/[\r\n]/.test(yt.current)){var Mt=yt.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");zt=zt.replace(Mt,yt.current)}yt.current=null,Qt(zt)},Ot=function(et){var zt=et.clipboardData,Mt=zt.getData("text");yt.current=Mt},_t=function(et){var zt=et.target;if(zt!==j.current){var Mt=document.body.style.msTouchAction!==void 0;Mt?setTimeout(function(){j.current.focus()}):j.current.focus()}},dn=function(et){var zt=Ee();et.target!==j.current&&!zt&&he!=="combobox"&&et.preventDefault(),(he!=="combobox"&&(!De||!zt)||!ne)&&(ne&&A!==!1&&ce("",!0,!1),$e())},qt={inputRef:j,onInputKeyDown:at,onInputMouseDown:ct,onInputChange:Jt,onInputPaste:Ot,onInputCompositionStart:It,onInputCompositionEnd:Bt},en=he==="multiple"||he==="tags"?p.createElement(Ke,(0,x.Z)({},d,qt)):p.createElement(Pe,(0,x.Z)({},d,qt));return p.createElement("div",{ref:Ge,className:"".concat(ee,"-selector"),onClick:_t,onMouseDown:dn},en)},$t=p.forwardRef(Ct);$t.displayName="Selector";var dt=$t,tt=c(35593),Rt=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],ut=function(d){var O=d===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:O,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:O,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:O,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:O,adjustY:1},htmlRegion:"scroll"}}},kt=function(d,O){var j=d.prefixCls,be=d.disabled,ee=d.visible,ne=d.children,he=d.popupElement,De=d.animation,Ue=d.transitionName,A=d.dropdownStyle,ce=d.dropdownClassName,Ye=d.direction,$e=Ye===void 0?"ltr":Ye,je=d.placement,Ge=d.builtinPlacements,wt=d.dropdownMatchSelectWidth,me=d.dropdownRender,Ee=d.dropdownAlign,He=d.getPopupContainer,at=d.empty,ct=d.getTriggerDOMNode,yt=d.onPopupVisibleChange,Qt=d.onPopupMouseEnter,It=(0,T.Z)(d,Rt),Bt="".concat(j,"-dropdown"),Jt=he;me&&(Jt=me(he));var Ot=p.useMemo(function(){return Ge||ut(wt)},[Ge,wt]),_t=De?"".concat(Bt,"-").concat(De):Ue,dn=typeof wt=="number",qt=p.useMemo(function(){return dn?null:wt===!1?"minWidth":"width"},[wt,dn]),en=A;dn&&(en=(0,X.Z)((0,X.Z)({},en),{},{width:wt}));var bt=p.useRef(null);return p.useImperativeHandle(O,function(){return{getPopupElement:function(){return bt.current}}}),p.createElement(tt.Z,(0,x.Z)({},It,{showAction:yt?["click"]:[],hideAction:yt?["click"]:[],popupPlacement:je||($e==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Ot,prefixCls:Bt,popupTransitionName:_t,popup:p.createElement("div",{ref:bt,onMouseEnter:Qt},Jt),stretch:qt,popupAlign:Ee,popupVisible:ee,getPopupContainer:He,popupClassName:D()(ce,(0,S.Z)({},"".concat(Bt,"-empty"),at)),popupStyle:en,getTriggerDOMNode:ct,onPopupVisibleChange:yt}),ne)},J=p.forwardRef(kt);J.displayName="SelectTrigger";var M=J,F=c(17953);function w(h,d){var O=h.key,j;return"value"in h&&(j=h.value),O!=null?O:j!==void 0?j:"rc-index-key-".concat(d)}function U(h,d){var O=h||{},j=O.label,be=O.value,ee=O.options,ne=O.groupLabel,he=j||(d?"children":"label");return{label:he,value:be||"value",options:ee||"options",groupLabel:ne||he}}function te(h){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},O=d.fieldNames,j=d.childrenAsData,be=[],ee=U(O,!1),ne=ee.label,he=ee.value,De=ee.options,Ue=ee.groupLabel;function A(ce,Ye){ce.forEach(function($e){if(Ye||!(De in $e)){var je=$e[he];be.push({key:w($e,be.length),groupOption:Ye,data:$e,label:$e[ne],value:je})}else{var Ge=$e[Ue];Ge===void 0&&j&&(Ge=$e.label),be.push({key:w($e,be.length),group:!0,data:$e,label:Ge}),A($e[De],!0)}})}return A(h,!1),be}function oe(h){var d=(0,X.Z)({},h);return"props"in d||Object.defineProperty(d,"props",{get:function(){return(0,se.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),d}}),d}function ae(h,d){if(!d||!d.length)return null;var O=!1;function j(ee,ne){var he=(0,F.Z)(ne),De=he[0],Ue=he.slice(1);if(!De)return[ee];var A=ee.split(De);return O=O||A.length>1,A.reduce(function(ce,Ye){return[].concat((0,W.Z)(ce),(0,W.Z)(j(Ye,Ue)))},[]).filter(function(ce){return ce})}var be=j(h,d);return O?be:null}var de=["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","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],Ie=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function we(h){return h==="tags"||h==="multiple"}var xe=p.forwardRef(function(h,d){var O,j,be=h.id,ee=h.prefixCls,ne=h.className,he=h.showSearch,De=h.tagRender,Ue=h.direction,A=h.omitDomProps,ce=h.displayValues,Ye=h.onDisplayValuesChange,$e=h.emptyOptions,je=h.notFoundContent,Ge=je===void 0?"Not Found":je,wt=h.onClear,me=h.mode,Ee=h.disabled,He=h.loading,at=h.getInputElement,ct=h.getRawInputElement,yt=h.open,Qt=h.defaultOpen,It=h.onDropdownVisibleChange,Bt=h.activeValue,Jt=h.onActiveValueChange,Ot=h.activeDescendantId,_t=h.searchValue,dn=h.autoClearSearchValue,qt=h.onSearch,en=h.onSearchSplit,bt=h.tokenSeparators,et=h.allowClear,zt=h.suffixIcon,Mt=h.clearIcon,bn=h.OptionList,jt=h.animation,ln=h.transitionName,Sn=h.dropdownStyle,Dt=h.dropdownClassName,An=h.dropdownMatchSelectWidth,_n=h.dropdownRender,Nt=h.dropdownAlign,vt=h.placement,Et=h.builtinPlacements,un=h.getPopupContainer,cn=h.showAction,nn=cn===void 0?[]:cn,Kt=h.onFocus,mn=h.onBlur,Cn=h.onKeyUp,Rn=h.onKeyDown,rt=h.onMouseDown,qe=(0,T.Z)(h,de),lt=we(me),Vt=(he!==void 0?he:lt)||me==="combobox",Zt=(0,X.Z)({},qe);Ie.forEach(function(wn){delete Zt[wn]}),A==null||A.forEach(function(wn){delete Zt[wn]});var er=p.useState(!1),ar=(0,v.Z)(er,2),Yn=ar[0],Gn=ar[1];p.useEffect(function(){Gn((0,K.Z)())},[]);var Wn=p.useRef(null),$n=p.useRef(null),Hn=p.useRef(null),Qn=p.useRef(null),Fn=p.useRef(null),Kn=C(),xr=(0,v.Z)(Kn,3),Mr=xr[0],vr=xr[1],Br=xr[2];p.useImperativeHandle(d,function(){var wn,hn;return{focus:(wn=Qn.current)===null||wn===void 0?void 0:wn.focus,blur:(hn=Qn.current)===null||hn===void 0?void 0:hn.blur,scrollTo:function(br){var Bn;return(Bn=Fn.current)===null||Bn===void 0?void 0:Bn.scrollTo(br)}}});var tr=p.useMemo(function(){var wn;if(me!=="combobox")return _t;var hn=(wn=ce[0])===null||wn===void 0?void 0:wn.value;return typeof hn=="string"||typeof hn=="number"?String(hn):""},[_t,me,ce]),gr=me==="combobox"&&typeof at=="function"&&at()||null,pr=typeof ct=="function"&&ct(),ii=(0,We.x1)($n,pr==null||(O=pr.props)===null||O===void 0?void 0:O.ref),qr=p.useState(!1),_r=(0,v.Z)(qr,2),jr=_r[0],ei=_r[1];(0,pe.Z)(function(){ei(!0)},[]);var ti=(0,k.Z)(!1,{defaultValue:Qt,value:yt}),$r=(0,v.Z)(ti,2),Ir=$r[0],Xr=$r[1],St=jr?Ir:!1,Gt=!Ge&&$e;(Ee||Gt&&St&&me==="combobox")&&(St=!1);var mt=Gt?!1:St,pt=p.useCallback(function(wn){var hn=wn!==void 0?wn:!St;Ee||(Xr(hn),St!==hn&&(It==null||It(hn)))},[Ee,St,Xr,It]),xn=p.useMemo(function(){return(bt||[]).some(function(wn){return[`
`,`\r
`].includes(wn)})},[bt]),On=function(hn,sr,br){var Bn=!0,wr=hn;Jt==null||Jt(null);var zr=br?null:ae(hn,bt);return me!=="combobox"&&zr&&(wr="",en==null||en(zr),pt(!1),Bn=!1),qt&&tr!==wr&&qt(wr,{source:sr?"typing":"effect"}),Bn},Jn=function(hn){!hn||!hn.trim()||qt(hn,{source:"submit"})};p.useEffect(function(){!St&&!lt&&me!=="combobox"&&On("",!1,!1)},[St]),p.useEffect(function(){Ir&&Ee&&Xr(!1),Ee&&vr(!1)},[Ee]);var lr=f(),mr=(0,v.Z)(lr,2),kn=mr[0],yr=mr[1],Yr=function(hn){var sr=kn(),br=hn.which;if(br===ge.Z.ENTER&&(me!=="combobox"&&hn.preventDefault(),St||pt(!0)),yr(!!tr),br===ge.Z.BACKSPACE&&!sr&&lt&&!tr&&ce.length){for(var Bn=(0,W.Z)(ce),wr=null,zr=Bn.length-1;zr>=0;zr-=1){var ai=Bn[zr];if(!ai.disabled){Bn.splice(zr,1),wr=ai;break}}wr&&Ye(Bn,{type:"remove",values:[wr]})}for(var Kr=arguments.length,li=new Array(Kr>1?Kr-1:0),Gr=1;Gr<Kr;Gr++)li[Gr-1]=arguments[Gr];if(St&&Fn.current){var Zr;(Zr=Fn.current).onKeyDown.apply(Zr,[hn].concat(li))}Rn==null||Rn.apply(void 0,[hn].concat(li))},oi=function(hn){for(var sr=arguments.length,br=new Array(sr>1?sr-1:0),Bn=1;Bn<sr;Bn++)br[Bn-1]=arguments[Bn];if(St&&Fn.current){var wr;(wr=Fn.current).onKeyUp.apply(wr,[hn].concat(br))}Cn==null||Cn.apply(void 0,[hn].concat(br))},ci=function(hn){var sr=ce.filter(function(br){return br!==hn});Ye(sr,{type:"remove",values:[hn]})},Fr=p.useRef(!1),ft=function(){vr(!0),Ee||(Kt&&!Fr.current&&Kt.apply(void 0,arguments),nn.includes("focus")&&pt(!0)),Fr.current=!0},Xt=function(){vr(!1,function(){Fr.current=!1,pt(!1)}),!Ee&&(tr&&(me==="tags"?qt(tr,{source:"submit"}):me==="multiple"&&qt("",{source:"blur"})),mn&&mn.apply(void 0,arguments))},In=[];p.useEffect(function(){return function(){In.forEach(function(wn){return clearTimeout(wn)}),In.splice(0,In.length)}},[]);var Tn=function(hn){var sr,br=hn.target,Bn=(sr=Hn.current)===null||sr===void 0?void 0:sr.getPopupElement();if(Bn&&Bn.contains(br)){var wr=setTimeout(function(){var li=In.indexOf(wr);if(li!==-1&&In.splice(li,1),Br(),!Yn&&!Bn.contains(document.activeElement)){var Gr;(Gr=Qn.current)===null||Gr===void 0||Gr.focus()}});In.push(wr)}for(var zr=arguments.length,ai=new Array(zr>1?zr-1:0),Kr=1;Kr<zr;Kr++)ai[Kr-1]=arguments[Kr];rt==null||rt.apply(void 0,[hn].concat(ai))},Nn=p.useState({}),ni=(0,v.Z)(Nn,2),fi=ni[1];function Rr(){fi({})}var Lr;pr&&(Lr=function(hn){pt(hn)}),b(function(){var wn;return[Wn.current,(wn=Hn.current)===null||wn===void 0?void 0:wn.getPopupElement()]},mt,pt,!!pr);var _i=p.useMemo(function(){return(0,X.Z)((0,X.Z)({},h),{},{notFoundContent:Ge,open:St,triggerOpen:mt,id:be,showSearch:Vt,multiple:lt,toggleOpen:pt})},[h,Ge,mt,St,be,Vt,lt,pt]),So=!!zt||He,Vi;So&&(Vi=p.createElement(Re,{className:D()("".concat(ee,"-arrow"),(0,S.Z)({},"".concat(ee,"-arrow-loading"),He)),customizeIcon:zt,customizeIconProps:{loading:He,searchValue:tr,open:St,focused:Mr,showSearch:Vt}}));var jo=function(){var hn;wt==null||wt(),(hn=Qn.current)===null||hn===void 0||hn.focus(),Ye([],{type:"clear",values:ce}),On("",!1,!1)},Gi=ye(ee,jo,ce,et,Mt,Ee,tr,me),Xi=Gi.allowClear,di=Gi.clearIcon,Vr=p.createElement(bn,{ref:Fn}),Co=D()(ee,ne,(j={},(0,S.Z)(j,"".concat(ee,"-focused"),Mr),(0,S.Z)(j,"".concat(ee,"-multiple"),lt),(0,S.Z)(j,"".concat(ee,"-single"),!lt),(0,S.Z)(j,"".concat(ee,"-allow-clear"),et),(0,S.Z)(j,"".concat(ee,"-show-arrow"),So),(0,S.Z)(j,"".concat(ee,"-disabled"),Ee),(0,S.Z)(j,"".concat(ee,"-loading"),He),(0,S.Z)(j,"".concat(ee,"-open"),St),(0,S.Z)(j,"".concat(ee,"-customize-input"),gr),(0,S.Z)(j,"".concat(ee,"-show-search"),Vt),j)),Yi=p.createElement(M,{ref:Hn,disabled:Ee,prefixCls:ee,visible:mt,popupElement:Vr,animation:jt,transitionName:ln,dropdownStyle:Sn,dropdownClassName:Dt,direction:Ue,dropdownMatchSelectWidth:An,dropdownRender:_n,dropdownAlign:Nt,placement:vt,builtinPlacements:Et,getPopupContainer:un,empty:$e,getTriggerDOMNode:function(){return $n.current},onPopupVisibleChange:Lr,onPopupMouseEnter:Rr},pr?p.cloneElement(pr,{ref:ii}):p.createElement(dt,(0,x.Z)({},h,{domRef:$n,prefixCls:ee,inputElement:gr,ref:Qn,id:be,showSearch:Vt,autoClearSearchValue:dn,mode:me,activeDescendantId:Ot,tagRender:De,values:ce,open:St,onToggleOpen:pt,activeValue:Bt,searchValue:tr,onSearch:On,onSearchSubmit:Jn,onRemove:ci,tokenWithEnter:xn}))),Qi;return pr?Qi=Yi:Qi=p.createElement("div",(0,x.Z)({className:Co},Zt,{ref:Wn,onMouseDown:Tn,onKeyDown:Yr,onKeyUp:oi,onFocus:ft,onBlur:Xt}),Mr&&!St&&p.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(ce.map(function(wn){var hn=wn.label,sr=wn.value;return["number","string"].includes((0,I.Z)(hn))?hn:sr}).join(", "))),Yi,Vi,Xi&&di),p.createElement(re.Provider,{value:_i},Qi)}),Ae=xe,Le=function(h,d){var O=p.useRef({values:new Map,options:new Map}),j=p.useMemo(function(){var ee=O.current,ne=ee.values,he=ee.options,De=h.map(function(ce){if(ce.label===void 0){var Ye;return(0,X.Z)((0,X.Z)({},ce),{},{label:(Ye=ne.get(ce.value))===null||Ye===void 0?void 0:Ye.label})}return ce}),Ue=new Map,A=new Map;return De.forEach(function(ce){Ue.set(ce.value,ce),A.set(ce.value,d.get(ce.value)||he.get(ce.value))}),O.current.values=Ue,O.current.options=A,De},[h,d]),be=p.useCallback(function(ee){return d.get(ee)||O.current.options.get(ee)},[d]);return[j,be]};function ze(h,d){return R(h).join("").toUpperCase().includes(d)}var _=function(h,d,O,j,be){return p.useMemo(function(){if(!O||j===!1)return h;var ee=d.options,ne=d.label,he=d.value,De=[],Ue=typeof j=="function",A=O.toUpperCase(),ce=Ue?j:function($e,je){return be?ze(je[be],A):je[ee]?ze(je[ne!=="children"?ne:"label"],A):ze(je[he],A)},Ye=Ue?function($e){return oe($e)}:function($e){return $e};return h.forEach(function($e){if($e[ee]){var je=ce(O,Ye($e));if(je)De.push($e);else{var Ge=$e[ee].filter(function(wt){return ce(O,Ye(wt))});Ge.length&&De.push((0,X.Z)((0,X.Z)({},$e),{},(0,S.Z)({},ee,Ge)))}return}ce(O,Ye($e))&&De.push($e)}),De},[h,j,be,O,d])},_e=c(17115),nt=c(38298),Fe=["children","value"],Xe=["children"];function ot(h){var d=h,O=d.key,j=d.props,be=j.children,ee=j.value,ne=(0,T.Z)(j,Fe);return(0,X.Z)({key:O,value:ee!==void 0?ee:O,children:be},ne)}function ke(h){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,nt.Z)(h).map(function(O,j){if(!p.isValidElement(O)||!O.type)return null;var be=O,ee=be.type.isSelectOptGroup,ne=be.key,he=be.props,De=he.children,Ue=(0,T.Z)(he,Xe);return d||!ee?ot(O):(0,X.Z)((0,X.Z)({key:"__RC_SELECT_GRP__".concat(ne===null?j:ne,"__"),label:ne},Ue),{},{options:ke(De)})}).filter(function(O){return O})}function Wt(h,d,O,j,be){return p.useMemo(function(){var ee=h,ne=!h;ne&&(ee=ke(d));var he=new Map,De=new Map,Ue=function(Ye,$e,je){je&&typeof je=="string"&&Ye.set($e[je],$e)};function A(ce){for(var Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,$e=0;$e<ce.length;$e+=1){var je=ce[$e];!je[O.options]||Ye?(he.set(je[O.value],je),Ue(De,je,O.label),Ue(De,je,j),Ue(De,je,be)):A(je[O.options],!0)}}return A(ee),{options:ee,valueOptions:he,labelOptions:De}},[h,d,O,j,be])}function ht(h){var d=p.useRef();d.current=h;var O=p.useCallback(function(){return d.current.apply(d,arguments)},[]);return O}var Ut=function(){return null};Ut.isSelectOptGroup=!0;var At=Ut,gn=function(){return null};gn.isSelectOption=!0;var tn=gn,pn=c(79722),Mn=c(64002),fn=c(21881),sn=p.createContext(null),Ht=sn;function on(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Yt=["disabled","title","children","style","className"];function Lt(h){return typeof h=="string"||typeof h=="number"}var En=function(d,O){var j=Q(),be=j.prefixCls,ee=j.id,ne=j.open,he=j.multiple,De=j.mode,Ue=j.searchValue,A=j.toggleOpen,ce=j.notFoundContent,Ye=j.onPopupScroll,$e=p.useContext(Ht),je=$e.flattenOptions,Ge=$e.onActiveValue,wt=$e.defaultActiveFirstOption,me=$e.onSelect,Ee=$e.menuItemSelectedIcon,He=$e.rawValues,at=$e.fieldNames,ct=$e.virtual,yt=$e.direction,Qt=$e.listHeight,It=$e.listItemHeight,Bt="".concat(be,"-item"),Jt=(0,pn.Z)(function(){return je},[ne,je],function(Nt,vt){return vt[0]&&Nt[1]!==vt[1]}),Ot=p.useRef(null),_t=function(vt){vt.preventDefault()},dn=function(vt){Ot.current&&Ot.current.scrollTo(typeof vt=="number"?{index:vt}:vt)},qt=function(vt){for(var Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,un=Jt.length,cn=0;cn<un;cn+=1){var nn=(vt+cn*Et+un)%un,Kt=Jt[nn],mn=Kt.group,Cn=Kt.data;if(!mn&&!Cn.disabled)return nn}return-1},en=p.useState(function(){return qt(0)}),bt=(0,v.Z)(en,2),et=bt[0],zt=bt[1],Mt=function(vt){var Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;zt(vt);var un={source:Et?"keyboard":"mouse"},cn=Jt[vt];if(!cn){Ge(null,-1,un);return}Ge(cn.value,vt,un)};(0,p.useEffect)(function(){Mt(wt!==!1?qt(0):-1)},[Jt.length,Ue]);var bn=p.useCallback(function(Nt){return He.has(Nt)&&De!=="combobox"},[De,(0,W.Z)(He).toString(),He.size]);(0,p.useEffect)(function(){var Nt=setTimeout(function(){if(!he&&ne&&He.size===1){var Et=Array.from(He)[0],un=Jt.findIndex(function(cn){var nn=cn.data;return nn.value===Et});un!==-1&&(Mt(un),dn(un))}});if(ne){var vt;(vt=Ot.current)===null||vt===void 0||vt.scrollTo(void 0)}return function(){return clearTimeout(Nt)}},[ne,Ue,je.length]);var jt=function(vt){vt!==void 0&&me(vt,{selected:!He.has(vt)}),he||A(!1)};if(p.useImperativeHandle(O,function(){return{onKeyDown:function(vt){var Et=vt.which,un=vt.ctrlKey;switch(Et){case ge.Z.N:case ge.Z.P:case ge.Z.UP:case ge.Z.DOWN:{var cn=0;if(Et===ge.Z.UP?cn=-1:Et===ge.Z.DOWN?cn=1:on()&&un&&(Et===ge.Z.N?cn=1:Et===ge.Z.P&&(cn=-1)),cn!==0){var nn=qt(et+cn,cn);dn(nn),Mt(nn,!0)}break}case ge.Z.ENTER:{var Kt=Jt[et];Kt&&!Kt.data.disabled?jt(Kt.value):jt(void 0),ne&&vt.preventDefault();break}case ge.Z.ESC:A(!1),ne&&vt.stopPropagation()}},onKeyUp:function(){},scrollTo:function(vt){dn(vt)}}}),Jt.length===0)return p.createElement("div",{role:"listbox",id:"".concat(ee,"_list"),className:"".concat(Bt,"-empty"),onMouseDown:_t},ce);var ln=Object.keys(at).map(function(Nt){return at[Nt]}),Sn=function(vt){return vt.label};function Dt(Nt,vt){var Et=Nt.group;return{role:Et?"presentation":"option",id:"".concat(ee,"_list_").concat(vt)}}var An=function(vt){var Et=Jt[vt];if(!Et)return null;var un=Et.data||{},cn=un.value,nn=Et.group,Kt=(0,P.Z)(un,!0),mn=Sn(Et);return Et?p.createElement("div",(0,x.Z)({"aria-label":typeof mn=="string"&&!nn?mn:null},Kt,{key:vt},Dt(Et,vt),{"aria-selected":bn(cn)}),cn):null},_n={role:"listbox",id:"".concat(ee,"_list")};return p.createElement(p.Fragment,null,ct&&p.createElement("div",(0,x.Z)({},_n,{style:{height:0,width:0,overflow:"hidden"}}),An(et-1),An(et),An(et+1)),p.createElement(fn.Z,{itemKey:"key",ref:Ot,data:Jt,height:Qt,itemHeight:It,fullHeight:!1,onMouseDown:_t,onScroll:Ye,virtual:ct,direction:yt,innerProps:ct?null:_n},function(Nt,vt){var Et,un=Nt.group,cn=Nt.groupOption,nn=Nt.data,Kt=Nt.label,mn=Nt.value,Cn=nn.key;if(un){var Rn,rt=(Rn=nn.title)!==null&&Rn!==void 0?Rn:Lt(Kt)?Kt.toString():void 0;return p.createElement("div",{className:D()(Bt,"".concat(Bt,"-group")),title:rt},Kt!==void 0?Kt:Cn)}var qe=nn.disabled,lt=nn.title,Vt=nn.children,Zt=nn.style,er=nn.className,ar=(0,T.Z)(nn,Yt),Yn=(0,Mn.Z)(ar,ln),Gn=bn(mn),Wn="".concat(Bt,"-option"),$n=D()(Bt,Wn,er,(Et={},(0,S.Z)(Et,"".concat(Wn,"-grouped"),cn),(0,S.Z)(Et,"".concat(Wn,"-active"),et===vt&&!qe),(0,S.Z)(Et,"".concat(Wn,"-disabled"),qe),(0,S.Z)(Et,"".concat(Wn,"-selected"),Gn),Et)),Hn=Sn(Nt),Qn=!Ee||typeof Ee=="function"||Gn,Fn=typeof Hn=="number"?Hn:Hn||mn,Kn=Lt(Fn)?Fn.toString():void 0;return lt!==void 0&&(Kn=lt),p.createElement("div",(0,x.Z)({},(0,P.Z)(Yn),ct?{}:Dt(Nt,vt),{"aria-selected":Gn,className:$n,title:Kn,onMouseMove:function(){et===vt||qe||Mt(vt)},onClick:function(){qe||jt(mn)},style:Zt}),p.createElement("div",{className:"".concat(Wn,"-content")},Fn),p.isValidElement(Ee)||Gn,Qn&&p.createElement(Re,{className:"".concat(Bt,"-option-state"),customizeIcon:Ee,customizeIconProps:{isSelected:Gn}},Gn?"\u2713":null))}))},Tt=p.forwardRef(En);Tt.displayName="OptionList";var yn=Tt;function Pn(h){var d=h.mode,O=h.options,j=h.children,be=h.backfill,ee=h.allowClear,ne=h.placeholder,he=h.getInputElement,De=h.showSearch,Ue=h.onSearch,A=h.defaultOpen,ce=h.autoFocus,Ye=h.labelInValue,$e=h.value,je=h.inputValue,Ge=h.optionLabelProp,wt=isMultiple(d),me=De!==void 0?De:wt||d==="combobox",Ee=O||convertChildrenToData(j);if(warning(d!=="tags"||Ee.every(function(yt){return!yt.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),d==="tags"||d==="combobox"){var He=Ee.some(function(yt){return yt.options?yt.options.some(function(Qt){return typeof("value"in Qt?Qt.value:Qt.key)=="number"}):typeof("value"in yt?yt.value:yt.key)=="number"});warning(!He,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(d!=="combobox"||!Ge,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(d==="combobox"||!be,"`backfill` only works with `combobox` mode."),warning(d==="combobox"||!he,"`getInputElement` only work with `combobox` mode."),noteOnce(d!=="combobox"||!he||!ee||!ne,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Ue&&!me&&d!=="combobox"&&d!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!A||ce,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),$e!=null){var at=toArray($e);warning(!Ye||at.every(function(yt){return _typeof(yt)==="object"&&("key"in yt||"value"in yt)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!wt||Array.isArray($e),"`value` should be array when `mode` is `multiple` or `tags`")}if(j){var ct=null;toNodeArray(j).some(function(yt){if(!React.isValidElement(yt)||!yt.type)return!1;var Qt=yt,It=Qt.type;if(It.isSelectOption)return!1;if(It.isSelectOptGroup){var Bt=toNodeArray(yt.props.children).every(function(Jt){return!React.isValidElement(Jt)||!yt.type||Jt.type.isSelectOption?!0:(ct=Jt.type,!1)});return!Bt}return ct=It,!0}),ct&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(ct.displayName||ct.name||ct,"`.")),warning(je===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Zn(h,d){if(h){var O=function j(be){for(var ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ne=0;ne<be.length;ne++){var he=be[ne];if(he[d==null?void 0:d.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!ee&&Array.isArray(he[d==null?void 0:d.options])&&j(he[d==null?void 0:d.options],!0))break}};O(h)}}var or=null,jn=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"],an=["inputValue"];function it(h){return!h||(0,I.Z)(h)!=="object"}var xt=p.forwardRef(function(h,d){var O=h.id,j=h.mode,be=h.prefixCls,ee=be===void 0?"rc-select":be,ne=h.backfill,he=h.fieldNames,De=h.inputValue,Ue=h.searchValue,A=h.onSearch,ce=h.autoClearSearchValue,Ye=ce===void 0?!0:ce,$e=h.onSelect,je=h.onDeselect,Ge=h.dropdownMatchSelectWidth,wt=Ge===void 0?!0:Ge,me=h.filterOption,Ee=h.filterSort,He=h.optionFilterProp,at=h.optionLabelProp,ct=h.options,yt=h.children,Qt=h.defaultActiveFirstOption,It=h.menuItemSelectedIcon,Bt=h.virtual,Jt=h.direction,Ot=h.listHeight,_t=Ot===void 0?200:Ot,dn=h.listItemHeight,qt=dn===void 0?20:dn,en=h.value,bt=h.defaultValue,et=h.labelInValue,zt=h.onChange,Mt=(0,T.Z)(h,jn),bn=(0,_e.ZP)(O),jt=we(j),ln=!!(!ct&&yt),Sn=p.useMemo(function(){return me===void 0&&j==="combobox"?!1:me},[me,j]),Dt=p.useMemo(function(){return U(he,ln)},[JSON.stringify(he),ln]),An=(0,k.Z)("",{value:Ue!==void 0?Ue:De,postState:function(Gt){return Gt||""}}),_n=(0,v.Z)(An,2),Nt=_n[0],vt=_n[1],Et=Wt(ct,yt,Dt,He,at),un=Et.valueOptions,cn=Et.labelOptions,nn=Et.options,Kt=p.useCallback(function(St){var Gt=R(St);return Gt.map(function(mt){var pt,xn,On,Jn,lr;if(it(mt))pt=mt;else{var mr;On=mt.key,xn=mt.label,pt=(mr=mt.value)!==null&&mr!==void 0?mr:On}var kn=un.get(pt);if(kn){var yr;if(xn===void 0&&(xn=kn==null?void 0:kn[at||Dt.label]),On===void 0&&(On=(yr=kn==null?void 0:kn.key)!==null&&yr!==void 0?yr:pt),Jn=kn==null?void 0:kn.disabled,lr=kn==null?void 0:kn.title,0)var Yr}return{label:xn,value:pt,key:On,disabled:Jn,title:lr}})},[Dt,at,un]),mn=(0,k.Z)(bt,{value:en}),Cn=(0,v.Z)(mn,2),Rn=Cn[0],rt=Cn[1],qe=p.useMemo(function(){var St,Gt=Kt(Rn);return j==="combobox"&&Y((St=Gt[0])===null||St===void 0?void 0:St.value)?[]:Gt},[Rn,Kt,j]),lt=Le(qe,un),Vt=(0,v.Z)(lt,2),Zt=Vt[0],er=Vt[1],ar=p.useMemo(function(){if(!j&&Zt.length===1){var St=Zt[0];if(St.value===null&&(St.label===null||St.label===void 0))return[]}return Zt.map(function(Gt){var mt;return(0,X.Z)((0,X.Z)({},Gt),{},{label:(mt=Gt.label)!==null&&mt!==void 0?mt:Gt.value})})},[j,Zt]),Yn=p.useMemo(function(){return new Set(Zt.map(function(St){return St.value}))},[Zt]);p.useEffect(function(){if(j==="combobox"){var St,Gt=(St=Zt[0])===null||St===void 0?void 0:St.value;vt(Z(Gt)?String(Gt):"")}},[Zt]);var Gn=ht(function(St,Gt){var mt,pt=Gt!=null?Gt:St;return mt={},(0,S.Z)(mt,Dt.value,St),(0,S.Z)(mt,Dt.label,pt),mt}),Wn=p.useMemo(function(){if(j!=="tags")return nn;var St=(0,W.Z)(nn),Gt=function(pt){return un.has(pt)};return(0,W.Z)(Zt).sort(function(mt,pt){return mt.value<pt.value?-1:1}).forEach(function(mt){var pt=mt.value;Gt(pt)||St.push(Gn(pt,mt.label))}),St},[Gn,nn,un,Zt,j]),$n=_(Wn,Dt,Nt,Sn,He),Hn=p.useMemo(function(){return j!=="tags"||!Nt||$n.some(function(St){return St[He||"value"]===Nt})||$n.some(function(St){return St[Dt.value]===Nt})?$n:[Gn(Nt)].concat((0,W.Z)($n))},[Gn,He,j,$n,Nt,Dt]),Qn=p.useMemo(function(){return Ee?(0,W.Z)(Hn).sort(function(St,Gt){return Ee(St,Gt)}):Hn},[Hn,Ee]),Fn=p.useMemo(function(){return te(Qn,{fieldNames:Dt,childrenAsData:ln})},[Qn,Dt,ln]),Kn=function(Gt){var mt=Kt(Gt);if(rt(mt),zt&&(mt.length!==Zt.length||mt.some(function(On,Jn){var lr;return((lr=Zt[Jn])===null||lr===void 0?void 0:lr.value)!==(On==null?void 0:On.value)}))){var pt=et?mt:mt.map(function(On){return On.value}),xn=mt.map(function(On){return oe(er(On.value))});zt(jt?pt:pt[0],jt?xn:xn[0])}},xr=p.useState(null),Mr=(0,v.Z)(xr,2),vr=Mr[0],Br=Mr[1],tr=p.useState(0),gr=(0,v.Z)(tr,2),pr=gr[0],ii=gr[1],qr=Qt!==void 0?Qt:j!=="combobox",_r=p.useCallback(function(St,Gt){var mt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},pt=mt.source,xn=pt===void 0?"keyboard":pt;ii(Gt),ne&&j==="combobox"&&St!==null&&xn==="keyboard"&&Br(String(St))},[ne,j]),jr=function(Gt,mt,pt){var xn=function(){var Fr,ft=er(Gt);return[et?{label:ft==null?void 0:ft[Dt.label],value:Gt,key:(Fr=ft==null?void 0:ft.key)!==null&&Fr!==void 0?Fr:Gt}:Gt,oe(ft)]};if(mt&&$e){var On=xn(),Jn=(0,v.Z)(On,2),lr=Jn[0],mr=Jn[1];$e(lr,mr)}else if(!mt&&je&&pt!=="clear"){var kn=xn(),yr=(0,v.Z)(kn,2),Yr=yr[0],oi=yr[1];je(Yr,oi)}},ei=ht(function(St,Gt){var mt,pt=jt?Gt.selected:!0;pt?mt=jt?[].concat((0,W.Z)(Zt),[St]):[St]:mt=Zt.filter(function(xn){return xn.value!==St}),Kn(mt),jr(St,pt),j==="combobox"?Br(""):(!we||Ye)&&(vt(""),Br(""))}),ti=function(Gt,mt){Kn(Gt);var pt=mt.type,xn=mt.values;(pt==="remove"||pt==="clear")&&xn.forEach(function(On){jr(On.value,!1,pt)})},$r=function(Gt,mt){if(vt(Gt),Br(null),mt.source==="submit"){var pt=(Gt||"").trim();if(pt){var xn=Array.from(new Set([].concat((0,W.Z)(Yn),[pt])));Kn(xn),jr(pt,!0),vt("")}return}mt.source!=="blur"&&(j==="combobox"&&Kn(Gt),A==null||A(Gt))},Ir=function(Gt){var mt=Gt;j!=="tags"&&(mt=Gt.map(function(xn){var On=cn.get(xn);return On==null?void 0:On.value}).filter(function(xn){return xn!==void 0}));var pt=Array.from(new Set([].concat((0,W.Z)(Yn),(0,W.Z)(mt))));Kn(pt),pt.forEach(function(xn){jr(xn,!0)})},Xr=p.useMemo(function(){var St=Bt!==!1&&wt!==!1;return(0,X.Z)((0,X.Z)({},Et),{},{flattenOptions:Fn,onActiveValue:_r,defaultActiveFirstOption:qr,onSelect:ei,menuItemSelectedIcon:It,rawValues:Yn,fieldNames:Dt,virtual:St,direction:Jt,listHeight:_t,listItemHeight:qt,childrenAsData:ln})},[Et,Fn,_r,qr,ei,It,Yn,Dt,Bt,wt,_t,qt,ln]);return p.createElement(Ht.Provider,{value:Xr},p.createElement(Ae,(0,x.Z)({},Mt,{id:bn,prefixCls:ee,ref:d,omitDomProps:an,mode:j,displayValues:ar,onDisplayValuesChange:ti,direction:Jt,searchValue:Nt,onSearch:$r,autoClearSearchValue:Ye,onSearchSplit:Ir,dropdownMatchSelectWidth:wt,OptionList:yn,emptyOptions:!Fn.length,activeValue:vr,activeDescendantId:"".concat(bn,"_list_").concat(pr)})))}),m=xt;m.Option=tn,m.OptGroup=At;var B=m,le=B},9296:function(rn,Te,c){"use strict";c.r(Te),c.d(Te,{ResizableTextArea:function(){return Ne},default:function(){return Y}});var x=c(5891),W=c(57259),S=c(80962),X=c(80665),v=c(29043),T=c(19149),I=c(26390),k=c(92310),se=c.n(k),p=c(93681),Se=c(5643),D=c(35788),pe=c(59301),K=c(29301),ge=c(28800),We=c(23073),Ve=`
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;
pointer-events: none !important;
`,Re=["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","white-space"],ye={},re;function Q(G){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,V=G.getAttribute("id")||G.getAttribute("data-reactid")||G.getAttribute("name");if(H&&ye[V])return ye[V];var fe=window.getComputedStyle(G),ue=fe.getPropertyValue("box-sizing")||fe.getPropertyValue("-moz-box-sizing")||fe.getPropertyValue("-webkit-box-sizing"),Ze=parseFloat(fe.getPropertyValue("padding-bottom"))+parseFloat(fe.getPropertyValue("padding-top")),Ke=parseFloat(fe.getPropertyValue("border-bottom-width"))+parseFloat(fe.getPropertyValue("border-top-width")),Ce=Re.map(function(Me){return"".concat(Me,":").concat(fe.getPropertyValue(Me))}).join(";"),Pe={sizingStyle:Ce,paddingSize:Ze,borderSize:Ke,boxSizing:ue};return H&&V&&(ye[V]=Pe),Pe}function C(G){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,V=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,fe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;re||(re=document.createElement("textarea"),re.setAttribute("tab-index","-1"),re.setAttribute("aria-hidden","true"),document.body.appendChild(re)),G.getAttribute("wrap")?re.setAttribute("wrap",G.getAttribute("wrap")):re.removeAttribute("wrap");var ue=Q(G,H),Ze=ue.paddingSize,Ke=ue.borderSize,Ce=ue.boxSizing,Pe=ue.sizingStyle;re.setAttribute("style","".concat(Pe,";").concat(Ve)),re.value=G.value||G.placeholder||"";var Me=void 0,Ct=void 0,$t,dt=re.scrollHeight;if(Ce==="border-box"?dt+=Ke:Ce==="content-box"&&(dt-=Ze),V!==null||fe!==null){re.value=" ";var tt=re.scrollHeight-Ze;V!==null&&(Me=tt*V,Ce==="border-box"&&(Me=Me+Ze+Ke),dt=Math.max(Me,dt)),fe!==null&&(Ct=tt*fe,Ce==="border-box"&&(Ct=Ct+Ze+Ke),$t=dt>Ct?"":"hidden",dt=Math.min(Ct,dt))}var Rt={height:dt,overflowY:$t,resize:"none"};return Me&&(Rt.minHeight=Me),Ct&&(Rt.maxHeight=Ct),Rt}var f=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],b=0,P=1,q=2,z=pe.forwardRef(function(G,H){var V=G,fe=V.prefixCls,ue=V.onPressEnter,Ze=V.defaultValue,Ke=V.value,Ce=V.autoSize,Pe=V.onResize,Me=V.className,Ct=V.style,$t=V.disabled,dt=V.onChange,tt=V.onInternalAutoSize,Rt=(0,T.Z)(V,f),ut=(0,D.Z)(Ze,{value:Ke,postState:function(At){return At!=null?At:""}}),kt=(0,v.Z)(ut,2),J=kt[0],M=kt[1],F=function(At){M(At.target.value),dt==null||dt(At)},w=pe.useRef();pe.useImperativeHandle(H,function(){return{textArea:w.current}});var U=pe.useMemo(function(){return Ce&&(0,X.Z)(Ce)==="object"?[Ce.minRows,Ce.maxRows]:[]},[Ce]),te=(0,v.Z)(U,2),oe=te[0],ae=te[1],de=!!Ce,Ie=function(){try{if(document.activeElement===w.current){var At=w.current,gn=At.selectionStart,tn=At.selectionEnd,pn=At.scrollTop;w.current.setSelectionRange(gn,tn),w.current.scrollTop=pn}}catch(Mn){}},we=pe.useState(q),xe=(0,v.Z)(we,2),Ae=xe[0],Le=xe[1],ze=pe.useState(),_=(0,v.Z)(ze,2),_e=_[0],nt=_[1],Fe=function(){Le(b)};(0,ge.Z)(function(){de&&Fe()},[Ke,oe,ae,de]),(0,ge.Z)(function(){if(Ae===b)Le(P);else if(Ae===P){var Ut=C(w.current,!1,oe,ae);Le(q),nt(Ut)}else Ie()},[Ae]);var Xe=pe.useRef(),ot=function(){We.Z.cancel(Xe.current)},ke=function(At){Ae===q&&(Pe==null||Pe(At),Ce&&(ot(),Xe.current=(0,We.Z)(function(){Fe()})))};pe.useEffect(function(){return ot},[]);var Wt=de?_e:null,ht=(0,W.Z)((0,W.Z)({},Ct),Wt);return(Ae===b||Ae===P)&&(ht.overflowY="hidden",ht.overflowX="hidden"),pe.createElement(K.Z,{onResize:ke,disabled:!(Ce||Pe)},pe.createElement("textarea",(0,x.Z)({},Rt,{ref:w,style:ht,className:se()(fe,Me,(0,S.Z)({},"".concat(fe,"-disabled"),$t)),disabled:$t,value:J,onChange:F})))}),Ne=z,ie=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function R(G,H){return(0,I.Z)(G||"").slice(0,H).join("")}function E(G,H,V,fe){var ue=V;return G?ue=R(V,fe):(0,I.Z)(H||"").length<V.length&&(0,I.Z)(V||"").length>fe&&(ue=H),ue}var $=pe.forwardRef(function(G,H){var V,fe=G.defaultValue,ue=G.value,Ze=G.onFocus,Ke=G.onBlur,Ce=G.onChange,Pe=G.allowClear,Me=G.maxLength,Ct=G.onCompositionStart,$t=G.onCompositionEnd,dt=G.suffix,tt=G.prefixCls,Rt=tt===void 0?"rc-textarea":tt,ut=G.classes,kt=G.showCount,J=G.className,M=G.style,F=G.disabled,w=G.hidden,U=G.classNames,te=G.styles,oe=G.onResize,ae=(0,T.Z)(G,ie),de=(0,D.Z)(fe,{value:ue,defaultValue:fe}),Ie=(0,v.Z)(de,2),we=Ie[0],xe=Ie[1],Ae=(0,pe.useRef)(null),Le=pe.useState(!1),ze=(0,v.Z)(Le,2),_=ze[0],_e=ze[1],nt=pe.useState(!1),Fe=(0,v.Z)(nt,2),Xe=Fe[0],ot=Fe[1],ke=pe.useRef(),Wt=pe.useRef(0),ht=pe.useState(null),Ut=(0,v.Z)(ht,2),At=Ut[0],gn=Ut[1],tn=function(){var it;(it=Ae.current)===null||it===void 0||it.textArea.focus()};(0,pe.useImperativeHandle)(H,function(){return{resizableTextArea:Ae.current,focus:tn,blur:function(){var it;(it=Ae.current)===null||it===void 0||it.textArea.blur()}}}),(0,pe.useEffect)(function(){_e(function(an){return!F&&an})},[F]);var pn=Number(Me)>0,Mn=function(it){ot(!0),ke.current=we,Wt.current=it.currentTarget.selectionStart,Ct==null||Ct(it)},fn=function(it){ot(!1);var xt=it.currentTarget.value;if(pn){var m,B=Wt.current>=Me+1||Wt.current===((m=ke.current)===null||m===void 0?void 0:m.length);xt=E(B,ke.current,xt,Me)}xt!==we&&(xe(xt),(0,Se.rJ)(it.currentTarget,it,Ce,xt)),$t==null||$t(it)},sn=function(it){var xt=it.target.value;if(!Xe&&pn){var m=it.target.selectionStart>=Me+1||it.target.selectionStart===xt.length||!it.target.selectionStart;xt=E(m,we,xt,Me)}xe(xt),(0,Se.rJ)(it.currentTarget,it,Ce,xt)},Ht=function(it){var xt=ae.onPressEnter,m=ae.onKeyDown;it.key==="Enter"&&xt&&xt(it),m==null||m(it)},on=function(it){_e(!0),Ze==null||Ze(it)},Yt=function(it){_e(!1),Ke==null||Ke(it)},Lt=function(it){var xt;xe(""),tn(),(0,Se.rJ)((xt=Ae.current)===null||xt===void 0?void 0:xt.textArea,it,Ce)},En=(0,Se.D7)(we);!Xe&&pn&&ue==null&&(En=R(En,Me));var Tt=dt,yn;if(kt){var Pn=(0,I.Z)(En).length;(0,X.Z)(kt)==="object"?yn=kt.formatter({value:En,count:Pn,maxLength:Me}):yn="".concat(Pn).concat(pn?" / ".concat(Me):""),Tt=pe.createElement(pe.Fragment,null,Tt,pe.createElement("span",{className:se()("".concat(Rt,"-data-count"),U==null?void 0:U.count),style:te==null?void 0:te.count},yn))}var Zn=function(it){var xt;oe==null||oe(it),(xt=Ae.current)!==null&&xt!==void 0&&xt.textArea.style.height&&gn(!0)},or=!ae.autoSize&&!kt&&!Pe,jn=pe.createElement(p.BaseInput,{value:En,allowClear:Pe,handleReset:Lt,suffix:Tt,prefixCls:Rt,classes:{affixWrapper:se()(ut==null?void 0:ut.affixWrapper,(V={},(0,S.Z)(V,"".concat(Rt,"-show-count"),kt),(0,S.Z)(V,"".concat(Rt,"-textarea-allow-clear"),Pe),V))},disabled:F,focused:_,className:J,style:(0,W.Z)((0,W.Z)({},M),At&&!or?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof yn=="string"?yn:void 0}},hidden:w,inputElement:pe.createElement(Ne,(0,x.Z)({},ae,{onKeyDown:Ht,onChange:sn,onFocus:on,onBlur:Yt,onCompositionStart:Mn,onCompositionEnd:fn,className:U==null?void 0:U.textarea,style:(0,W.Z)((0,W.Z)({},te==null?void 0:te.textarea),{},{resize:M==null?void 0:M.resize}),disabled:F,prefixCls:Rt,onResize:Zn,ref:Ae}))});return jn}),Z=$,Y=Z},55477:function(rn,Te,c){"use strict";c.d(Te,{G:function(){return pe},Z:function(){return Ve}});var x=c(5891),W=c(57259),S=c(19149),X=c(35593),v=c(59301),T={shiftX:64,adjustY:1},I={adjustX:1,shiftY:!0},k=[0,0],se={left:{points:["cr","cl"],overflow:I,offset:[-4,0],targetOffset:k},right:{points:["cl","cr"],overflow:I,offset:[4,0],targetOffset:k},top:{points:["bc","tc"],overflow:T,offset:[0,-4],targetOffset:k},bottom:{points:["tc","bc"],overflow:T,offset:[0,4],targetOffset:k},topLeft:{points:["bl","tl"],overflow:T,offset:[0,-4],targetOffset:k},leftTop:{points:["tr","tl"],overflow:I,offset:[-4,0],targetOffset:k},topRight:{points:["br","tr"],overflow:T,offset:[0,-4],targetOffset:k},rightTop:{points:["tl","tr"],overflow:I,offset:[4,0],targetOffset:k},bottomRight:{points:["tr","br"],overflow:T,offset:[0,4],targetOffset:k},rightBottom:{points:["bl","br"],overflow:I,offset:[4,0],targetOffset:k},bottomLeft:{points:["tl","bl"],overflow:T,offset:[0,4],targetOffset:k},leftBottom:{points:["br","bl"],overflow:I,offset:[-4,0],targetOffset:k}},p=null,Se=c(92310),D=c.n(Se);function pe(Re){var ye=Re.children,re=Re.prefixCls,Q=Re.id,C=Re.overlayInnerStyle,f=Re.className,b=Re.style;return v.createElement("div",{className:D()("".concat(re,"-content"),f),style:b},v.createElement("div",{className:"".concat(re,"-inner"),id:Q,role:"tooltip",style:C},typeof ye=="function"?ye():ye))}var K=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],ge=function(ye,re){var Q=ye.overlayClassName,C=ye.trigger,f=C===void 0?["hover"]:C,b=ye.mouseEnterDelay,P=b===void 0?0:b,q=ye.mouseLeaveDelay,z=q===void 0?.1:q,Ne=ye.overlayStyle,ie=ye.prefixCls,R=ie===void 0?"rc-tooltip":ie,E=ye.children,$=ye.onVisibleChange,Z=ye.afterVisibleChange,Y=ye.transitionName,G=ye.animation,H=ye.motion,V=ye.placement,fe=V===void 0?"right":V,ue=ye.align,Ze=ue===void 0?{}:ue,Ke=ye.destroyTooltipOnHide,Ce=Ke===void 0?!1:Ke,Pe=ye.defaultVisible,Me=ye.getTooltipContainer,Ct=ye.overlayInnerStyle,$t=ye.arrowContent,dt=ye.overlay,tt=ye.id,Rt=ye.showArrow,ut=Rt===void 0?!0:Rt,kt=(0,S.Z)(ye,K),J=(0,v.useRef)(null);(0,v.useImperativeHandle)(re,function(){return J.current});var M=(0,W.Z)({},kt);"visible"in ye&&(M.popupVisible=ye.visible);var F=function(){return v.createElement(pe,{key:"content",prefixCls:R,id:tt,overlayInnerStyle:Ct},dt)};return v.createElement(X.Z,(0,x.Z)({popupClassName:Q,prefixCls:R,popup:F,action:f,builtinPlacements:se,popupPlacement:fe,ref:J,popupAlign:Ze,getPopupContainer:Me,onPopupVisibleChange:$,afterPopupVisibleChange:Z,popupTransitionName:Y,popupAnimation:G,popupMotion:H,defaultPopupVisible:Pe,autoDestroy:Ce,mouseLeaveDelay:z,popupStyle:Ne,mouseEnterDelay:P,arrow:ut},M),E)},We=(0,v.forwardRef)(ge),Ve=We},93144:function(rn,Te){"use strict";Te.Z=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var c=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(c)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(c==null?void 0:c.substr(0,4))}},21881:function(rn,Te,c){"use strict";c.d(Te,{Z:function(){return kt}});var x=c(5891),W=c(80665),S=c(57259),X=c(80962),v=c(29043),T=c(19149),I=c(92310),k=c.n(I),se=c(29301),p=c(80764),Se=c(28800),D=c(59301),pe=c(4676),K=D.forwardRef(function(J,M){var F=J.height,w=J.offsetY,U=J.offsetX,te=J.children,oe=J.prefixCls,ae=J.onInnerResize,de=J.innerProps,Ie=J.rtl,we=J.extra,xe={},Ae={display:"flex",flexDirection:"column"};return w!==void 0&&(xe={height:F,position:"relative",overflow:"hidden"},Ae=(0,S.Z)((0,S.Z)({},Ae),{},(0,X.Z)((0,X.Z)((0,X.Z)((0,X.Z)((0,X.Z)({transform:"translateY(".concat(w,"px)")},Ie?"marginRight":"marginLeft",-U),"position","absolute"),"left",0),"right",0),"top",0))),D.createElement("div",{style:xe},D.createElement(se.Z,{onResize:function(ze){var _=ze.offsetHeight;_&&ae&&ae()}},D.createElement("div",(0,x.Z)({style:Ae,className:k()((0,X.Z)({},"".concat(oe,"-holder-inner"),oe)),ref:M},de),te,we)))});K.displayName="Filler";var ge=K;function We(J){var M=J.children,F=J.setRef,w=D.useCallback(function(U){F(U)},[]);return D.cloneElement(M,{ref:w})}function Ve(J,M,F,w,U,te,oe,ae){var de=ae.getKey;return J.slice(M,F+1).map(function(Ie,we){var xe=M+we,Ae=oe(Ie,xe,{style:{width:w},offsetX:U}),Le=de(Ie);return D.createElement(We,{key:Le,setRef:function(_){return te(Ie,_)}},Ae)})}function Re(J,M,F,w){var U=F-J,te=M-F,oe=Math.min(U,te)*2;if(w<=oe){var ae=Math.floor(w/2);return w%2?F+ae+1:F-ae}return U>te?F-(w-te):F+(w-U)}function ye(J,M,F){var w=J.length,U=M.length,te,oe;if(w===0&&U===0)return null;w<U?(te=J,oe=M):(te=M,oe=J);var ae={__EMPTY_ITEM__:!0};function de(ze){return ze!==void 0?F(ze):ae}for(var Ie=null,we=Math.abs(w-U)!==1,xe=0;xe<oe.length;xe+=1){var Ae=de(te[xe]),Le=de(oe[xe]);if(Ae!==Le){Ie=xe,we=we||Ae!==de(oe[xe+1]);break}}return Ie===null?null:{index:Ie,multiple:we}}function re(J,M,F){var w=D.useState(J),U=(0,v.Z)(w,2),te=U[0],oe=U[1],ae=D.useState(null),de=(0,v.Z)(ae,2),Ie=de[0],we=de[1];return D.useEffect(function(){var xe=ye(te||[],J||[],M);(xe==null?void 0:xe.index)!==void 0&&(F==null||F(xe.index),we(J[xe.index])),oe(J)},[J]),[Ie]}var Q=c(23073),C=(typeof navigator=="undefined"?"undefined":(0,W.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),f=C,b=function(J,M,F,w){var U=(0,D.useRef)(!1),te=(0,D.useRef)(null);function oe(){clearTimeout(te.current),U.current=!0,te.current=setTimeout(function(){U.current=!1},50)}var ae=(0,D.useRef)({top:J,bottom:M,left:F,right:w});return ae.current.top=J,ae.current.bottom=M,ae.current.left=F,ae.current.right=w,function(de,Ie){var we=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,xe=de?Ie<0&&ae.current.left||Ie>0&&ae.current.right:Ie<0&&ae.current.top||Ie>0&&ae.current.bottom;return we&&xe?(clearTimeout(te.current),U.current=!1):(!xe||U.current)&&oe(),!U.current&&xe}};function P(J,M,F,w,U,te,oe){var ae=(0,D.useRef)(0),de=(0,D.useRef)(null),Ie=(0,D.useRef)(null),we=(0,D.useRef)(!1),xe=b(M,F,w,U);function Ae(Fe,Xe){if(Q.Z.cancel(de.current),!xe(!1,Xe)){var ot=Fe;if(!ot._virtualHandled)ot._virtualHandled=!0;else return;ae.current+=Xe,Ie.current=Xe,f||ot.preventDefault(),de.current=(0,Q.Z)(function(){var ke=we.current?10:1;oe(ae.current*ke,!1),ae.current=0})}}function Le(Fe,Xe){oe(Xe,!0),f||Fe.preventDefault()}var ze=(0,D.useRef)(null),_=(0,D.useRef)(null);function _e(Fe){if(J){Q.Z.cancel(_.current),_.current=(0,Q.Z)(function(){ze.current=null},2);var Xe=Fe.deltaX,ot=Fe.deltaY,ke=Fe.shiftKey,Wt=Xe,ht=ot;(ze.current==="sx"||!ze.current&&ke&&ot&&!Xe)&&(Wt=ot,ht=0,ze.current="sx");var Ut=Math.abs(Wt),At=Math.abs(ht);ze.current===null&&(ze.current=te&&Ut>At?"x":"y"),ze.current==="y"?Ae(Fe,ht):Le(Fe,Wt)}}function nt(Fe){J&&(we.current=Fe.detail===Ie.current)}return[_e,nt]}function q(J,M,F,w){var U=D.useMemo(function(){return[new Map,[]]},[J,F.id,w]),te=(0,v.Z)(U,2),oe=te[0],ae=te[1],de=function(we){var xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:we,Ae=oe.get(we),Le=oe.get(xe);if(Ae===void 0||Le===void 0)for(var ze=J.length,_=ae.length;_<ze;_+=1){var _e,nt=J[_],Fe=M(nt);oe.set(Fe,_);var Xe=(_e=F.get(Fe))!==null&&_e!==void 0?_e:w;if(ae[_]=(ae[_-1]||0)+Xe,Fe===we&&(Ae=_),Fe===xe&&(Le=_),Ae!==void 0&&Le!==void 0)break}return{top:ae[Ae-1]||0,bottom:ae[Le]}};return de}var z=c(85899),Ne=c(79545),ie=c(68550),R=function(){function J(){(0,Ne.Z)(this,J),(0,X.Z)(this,"maps",void 0),(0,X.Z)(this,"id",0),(0,X.Z)(this,"diffKeys",new Set),this.maps=Object.create(null)}return(0,ie.Z)(J,[{key:"set",value:function(F,w){this.maps[F]=w,this.id+=1,this.diffKeys.add(F)}},{key:"get",value:function(F){return this.maps[F]}},{key:"resetRecord",value:function(){this.diffKeys.clear()}},{key:"getRecord",value:function(){return this.diffKeys}}]),J}(),E=R;function $(J){var M=parseFloat(J);return isNaN(M)?0:M}function Z(J,M,F){var w=D.useState(0),U=(0,v.Z)(w,2),te=U[0],oe=U[1],ae=(0,D.useRef)(new Map),de=(0,D.useRef)(new E),Ie=(0,D.useRef)(0);function we(){Ie.current+=1}function xe(){var Le=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;we();var ze=function(){var nt=!1;ae.current.forEach(function(Fe,Xe){if(Fe&&Fe.offsetParent){var ot=(0,z.ZP)(Fe),ke=ot.offsetHeight,Wt=getComputedStyle(ot),ht=Wt.marginTop,Ut=Wt.marginBottom,At=$(ht),gn=$(Ut),tn=ke+At+gn;de.current.get(Xe)!==tn&&(de.current.set(Xe,tn),nt=!0)}}),nt&&oe(function(Fe){return Fe+1})};if(Le)ze();else{Ie.current+=1;var _=Ie.current;Promise.resolve().then(function(){_===Ie.current&&ze()})}}function Ae(Le,ze){var _=J(Le),_e=ae.current.get(_);ze?(ae.current.set(_,ze),xe()):ae.current.delete(_),!_e!=!ze&&(ze?M==null||M(Le):F==null||F(Le))}return(0,D.useEffect)(function(){return we},[]),[Ae,xe,de.current,te]}var Y=14/15;function G(J,M,F){var w=(0,D.useRef)(!1),U=(0,D.useRef)(0),te=(0,D.useRef)(0),oe=(0,D.useRef)(null),ae=(0,D.useRef)(null),de,Ie=function(Le){if(w.current){var ze=Math.ceil(Le.touches[0].pageX),_=Math.ceil(Le.touches[0].pageY),_e=U.current-ze,nt=te.current-_,Fe=Math.abs(_e)>Math.abs(nt);Fe?U.current=ze:te.current=_;var Xe=F(Fe,Fe?_e:nt,!1,Le);Xe&&Le.preventDefault(),clearInterval(ae.current),Xe&&(ae.current=setInterval(function(){Fe?_e*=Y:nt*=Y;var ot=Math.floor(Fe?_e:nt);(!F(Fe,ot,!0)||Math.abs(ot)<=.1)&&clearInterval(ae.current)},16))}},we=function(){w.current=!1,de()},xe=function(Le){de(),Le.touches.length===1&&!w.current&&(w.current=!0,U.current=Math.ceil(Le.touches[0].pageX),te.current=Math.ceil(Le.touches[0].pageY),oe.current=Le.target,oe.current.addEventListener("touchmove",Ie,{passive:!1}),oe.current.addEventListener("touchend",we,{passive:!0}))};de=function(){oe.current&&(oe.current.removeEventListener("touchmove",Ie),oe.current.removeEventListener("touchend",we))},(0,Se.Z)(function(){return J&&M.current.addEventListener("touchstart",xe,{passive:!0}),function(){var Ae;(Ae=M.current)===null||Ae===void 0||Ae.removeEventListener("touchstart",xe),de(),clearInterval(ae.current)}},[J])}function H(J){return Math.floor(Math.pow(J,.5))}function V(J,M){var F="touches"in J?J.touches[0]:J;return F[M?"pageX":"pageY"]-window[M?"scrollX":"scrollY"]}function fe(J,M,F){D.useEffect(function(){var w=M.current;if(J&&w){var U=!1,te,oe,ae=function(){Q.Z.cancel(te)},de=function Ae(){ae(),te=(0,Q.Z)(function(){F(oe),Ae()})},Ie=function(Le){var ze=Le;ze._virtualHandled||(ze._virtualHandled=!0,U=!0)},we=function(){U=!1,ae()},xe=function(Le){if(U){var ze=V(Le,!1),_=w.getBoundingClientRect(),_e=_.top,nt=_.bottom;if(ze<=_e){var Fe=_e-ze;oe=-H(Fe),de()}else if(ze>=nt){var Xe=ze-nt;oe=H(Xe),de()}else ae()}};return w.addEventListener("mousedown",Ie),w.ownerDocument.addEventListener("mouseup",we),w.ownerDocument.addEventListener("mousemove",xe),function(){w.removeEventListener("mousedown",Ie),w.ownerDocument.removeEventListener("mouseup",we),w.ownerDocument.removeEventListener("mousemove",xe),ae()}}},[J])}var ue=10;function Ze(J,M,F,w,U,te,oe,ae){var de=D.useRef(),Ie=D.useState(null),we=(0,v.Z)(Ie,2),xe=we[0],Ae=we[1];return(0,Se.Z)(function(){if(xe&&xe.times<ue){if(!J.current){Ae(function(Lt){return(0,S.Z)({},Lt)});return}te();var Le=xe.targetAlign,ze=xe.originAlign,_=xe.index,_e=xe.offset,nt=J.current.clientHeight,Fe=!1,Xe=Le,ot=null;if(nt){for(var ke=Le||ze,Wt=0,ht=0,Ut=0,At=Math.min(M.length-1,_),gn=0;gn<=At;gn+=1){var tn=U(M[gn]);ht=Wt;var pn=F.get(tn);Ut=ht+(pn===void 0?w:pn),Wt=Ut}for(var Mn=ke==="top"?_e:nt-_e,fn=At;fn>=0;fn-=1){var sn=U(M[fn]),Ht=F.get(sn);if(Ht===void 0){Fe=!0;break}if(Mn-=Ht,Mn<=0)break}switch(ke){case"top":ot=ht-_e;break;case"bottom":ot=Ut-nt+_e;break;default:{var on=J.current.scrollTop,Yt=on+nt;ht<on?Xe="top":Ut>Yt&&(Xe="bottom")}}ot!==null&&oe(ot),ot!==xe.lastTop&&(Fe=!0)}Fe&&Ae((0,S.Z)((0,S.Z)({},xe),{},{times:xe.times+1,targetAlign:Xe,lastTop:ot}))}},[xe,J.current]),function(Le){if(Le==null){ae();return}if(Q.Z.cancel(de.current),typeof Le=="number")oe(Le);else if(Le&&(0,W.Z)(Le)==="object"){var ze,_=Le.align;"index"in Le?ze=Le.index:ze=M.findIndex(function(Fe){return U(Fe)===Le.key});var _e=Le.offset,nt=_e===void 0?0:_e;Ae({times:0,index:ze,offset:nt,originAlign:_})}}}var Ke=D.forwardRef(function(J,M){var F=J.prefixCls,w=J.rtl,U=J.scrollOffset,te=J.scrollRange,oe=J.onStartMove,ae=J.onStopMove,de=J.onScroll,Ie=J.horizontal,we=J.spinSize,xe=J.containerSize,Ae=J.style,Le=J.thumbStyle,ze=D.useState(!1),_=(0,v.Z)(ze,2),_e=_[0],nt=_[1],Fe=D.useState(null),Xe=(0,v.Z)(Fe,2),ot=Xe[0],ke=Xe[1],Wt=D.useState(null),ht=(0,v.Z)(Wt,2),Ut=ht[0],At=ht[1],gn=!w,tn=D.useRef(),pn=D.useRef(),Mn=D.useState(!1),fn=(0,v.Z)(Mn,2),sn=fn[0],Ht=fn[1],on=D.useRef(),Yt=function(){clearTimeout(on.current),Ht(!0),on.current=setTimeout(function(){Ht(!1)},3e3)},Lt=te-xe||0,En=xe-we||0,Tt=D.useMemo(function(){if(U===0||Lt===0)return 0;var m=U/Lt;return m*En},[U,Lt,En]),yn=function(B){B.stopPropagation(),B.preventDefault()},Pn=D.useRef({top:Tt,dragging:_e,pageY:ot,startTop:Ut});Pn.current={top:Tt,dragging:_e,pageY:ot,startTop:Ut};var Zn=function(B){nt(!0),ke(V(B,Ie)),At(Pn.current.top),oe(),B.stopPropagation(),B.preventDefault()};D.useEffect(function(){var m=function(d){d.preventDefault()},B=tn.current,le=pn.current;return B.addEventListener("touchstart",m,{passive:!1}),le.addEventListener("touchstart",Zn,{passive:!1}),function(){B.removeEventListener("touchstart",m),le.removeEventListener("touchstart",Zn)}},[]);var or=D.useRef();or.current=Lt;var jn=D.useRef();jn.current=En,D.useEffect(function(){if(_e){var m,B=function(d){var O=Pn.current,j=O.dragging,be=O.pageY,ee=O.startTop;Q.Z.cancel(m);var ne=tn.current.getBoundingClientRect(),he=xe/(Ie?ne.width:ne.height);if(j){var De=(V(d,Ie)-be)*he,Ue=ee;!gn&&Ie?Ue-=De:Ue+=De;var A=or.current,ce=jn.current,Ye=ce?Ue/ce:0,$e=Math.ceil(Ye*A);$e=Math.max($e,0),$e=Math.min($e,A),m=(0,Q.Z)(function(){de($e,Ie)})}},le=function(){nt(!1),ae()};return window.addEventListener("mousemove",B,{passive:!0}),window.addEventListener("touchmove",B,{passive:!0}),window.addEventListener("mouseup",le,{passive:!0}),window.addEventListener("touchend",le,{passive:!0}),function(){window.removeEventListener("mousemove",B),window.removeEventListener("touchmove",B),window.removeEventListener("mouseup",le),window.removeEventListener("touchend",le),Q.Z.cancel(m)}}},[_e]),D.useEffect(function(){return Yt(),function(){clearTimeout(on.current)}},[U]),D.useImperativeHandle(M,function(){return{delayHidden:Yt}});var an="".concat(F,"-scrollbar"),it={position:"absolute",visibility:sn?null:"hidden"},xt={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return Ie?(it.height=8,it.left=0,it.right=0,it.bottom=0,xt.height="100%",xt.width=we,gn?xt.left=Tt:xt.right=Tt):(it.width=8,it.top=0,it.bottom=0,gn?it.right=0:it.left=0,xt.width="100%",xt.height=we,xt.top=Tt),D.createElement("div",{ref:tn,className:k()(an,(0,X.Z)((0,X.Z)((0,X.Z)({},"".concat(an,"-horizontal"),Ie),"".concat(an,"-vertical"),!Ie),"".concat(an,"-visible"),sn)),style:(0,S.Z)((0,S.Z)({},it),Ae),onMouseDown:yn,onMouseMove:Yt},D.createElement("div",{ref:pn,className:k()("".concat(an,"-thumb"),(0,X.Z)({},"".concat(an,"-thumb-moving"),_e)),style:(0,S.Z)((0,S.Z)({},xt),Le),onMouseDown:Zn}))}),Ce=Ke,Pe=20;function Me(){var J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,F=J/M*J;return isNaN(F)&&(F=0),F=Math.max(F,Pe),Math.floor(F)}var Ct=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],$t=[],dt={overflowY:"auto",overflowAnchor:"none"};function tt(J,M){var F=J.prefixCls,w=F===void 0?"rc-virtual-list":F,U=J.className,te=J.height,oe=J.itemHeight,ae=J.fullHeight,de=ae===void 0?!0:ae,Ie=J.style,we=J.data,xe=J.children,Ae=J.itemKey,Le=J.virtual,ze=J.direction,_=J.scrollWidth,_e=J.component,nt=_e===void 0?"div":_e,Fe=J.onScroll,Xe=J.onVirtualScroll,ot=J.onVisibleChange,ke=J.innerProps,Wt=J.extraRender,ht=J.styles,Ut=(0,T.Z)(J,Ct),At=D.useCallback(function(rt){return typeof Ae=="function"?Ae(rt):rt==null?void 0:rt[Ae]},[Ae]),gn=Z(At,null,null),tn=(0,v.Z)(gn,4),pn=tn[0],Mn=tn[1],fn=tn[2],sn=tn[3],Ht=!!(Le!==!1&&te&&oe),on=D.useMemo(function(){return Object.values(fn.maps).reduce(function(rt,qe){return rt+qe},0)},[fn.id,fn.maps]),Yt=Ht&&we&&(Math.max(oe*we.length,on)>te||!!_),Lt=ze==="rtl",En=k()(w,(0,X.Z)({},"".concat(w,"-rtl"),Lt),U),Tt=we||$t,yn=(0,D.useRef)(),Pn=(0,D.useRef)(),Zn=(0,D.useRef)(),or=(0,D.useState)(0),jn=(0,v.Z)(or,2),an=jn[0],it=jn[1],xt=(0,D.useState)(0),m=(0,v.Z)(xt,2),B=m[0],le=m[1],h=(0,D.useState)(!1),d=(0,v.Z)(h,2),O=d[0],j=d[1],be=function(){j(!0)},ee=function(){j(!1)},ne={getKey:At};function he(rt){it(function(qe){var lt;typeof rt=="function"?lt=rt(qe):lt=rt;var Vt=dn(lt);return yn.current.scrollTop=Vt,Vt})}var De=(0,D.useRef)({start:0,end:Tt.length}),Ue=(0,D.useRef)(),A=re(Tt,At),ce=(0,v.Z)(A,1),Ye=ce[0];Ue.current=Ye;var $e=D.useMemo(function(){if(!Ht)return{scrollHeight:void 0,start:0,end:Tt.length-1,offset:void 0};if(!Yt){var rt;return{scrollHeight:((rt=Pn.current)===null||rt===void 0?void 0:rt.offsetHeight)||0,start:0,end:Tt.length-1,offset:void 0}}for(var qe=0,lt,Vt,Zt,er=Tt.length,ar=0;ar<er;ar+=1){var Yn=Tt[ar],Gn=At(Yn),Wn=fn.get(Gn),$n=qe+(Wn===void 0?oe:Wn);$n>=an&&lt===void 0&&(lt=ar,Vt=qe),$n>an+te&&Zt===void 0&&(Zt=ar),qe=$n}return lt===void 0&&(lt=0,Vt=0,Zt=Math.ceil(te/oe)),Zt===void 0&&(Zt=Tt.length-1),Zt=Math.min(Zt+1,Tt.length-1),{scrollHeight:qe,start:lt,end:Zt,offset:Vt}},[Yt,Ht,an,Tt,sn,te]),je=$e.scrollHeight,Ge=$e.start,wt=$e.end,me=$e.offset;De.current.start=Ge,De.current.end=wt,D.useLayoutEffect(function(){var rt=fn.getRecord();if(rt.size===1){var qe=Array.from(rt)[0],lt=At(Tt[Ge]);if(lt===qe){var Vt=fn.get(qe),Zt=Vt-oe;he(function(er){return er+Zt})}}fn.resetRecord()},[je]);var Ee=D.useState({width:0,height:te}),He=(0,v.Z)(Ee,2),at=He[0],ct=He[1],yt=function(qe){ct({width:qe.offsetWidth,height:qe.offsetHeight})},Qt=(0,D.useRef)(),It=(0,D.useRef)(),Bt=D.useMemo(function(){return Me(at.width,_)},[at.width,_]),Jt=D.useMemo(function(){return Me(at.height,je)},[at.height,je]),Ot=je-te,_t=(0,D.useRef)(Ot);_t.current=Ot;function dn(rt){var qe=rt;return Number.isNaN(_t.current)||(qe=Math.min(qe,_t.current)),qe=Math.max(qe,0),qe}var qt=an<=0,en=an>=Ot,bt=B<=0,et=B>=_,zt=b(qt,en,bt,et),Mt=function(){return{x:Lt?-B:B,y:an}},bn=(0,D.useRef)(Mt()),jt=(0,p.useEvent)(function(rt){if(Xe){var qe=(0,S.Z)((0,S.Z)({},Mt()),rt);(bn.current.x!==qe.x||bn.current.y!==qe.y)&&(Xe(qe),bn.current=qe)}});function ln(rt,qe){var lt=rt;qe?((0,pe.flushSync)(function(){le(lt)}),jt()):he(lt)}function Sn(rt){var qe=rt.currentTarget.scrollTop;qe!==an&&he(qe),Fe==null||Fe(rt),jt()}var Dt=function(qe){var lt=qe,Vt=_?_-at.width:0;return lt=Math.max(lt,0),lt=Math.min(lt,Vt),lt},An=(0,p.useEvent)(function(rt,qe){qe?((0,pe.flushSync)(function(){le(function(lt){var Vt=lt+(Lt?-rt:rt);return Dt(Vt)})}),jt()):he(function(lt){var Vt=lt+rt;return Vt})}),_n=P(Ht,qt,en,bt,et,!!_,An),Nt=(0,v.Z)(_n,2),vt=Nt[0],Et=Nt[1];G(Ht,yn,function(rt,qe,lt,Vt){var Zt=Vt;return zt(rt,qe,lt)?!1:!Zt||!Zt._virtualHandled?(Zt&&(Zt._virtualHandled=!0),vt({preventDefault:function(){},deltaX:rt?qe:0,deltaY:rt?0:qe}),!0):!1}),fe(Yt,yn,function(rt){he(function(qe){return qe+rt})}),(0,Se.Z)(function(){function rt(lt){var Vt=qt&&lt.detail<0,Zt=en&&lt.detail>0;Ht&&!Vt&&!Zt&&lt.preventDefault()}var qe=yn.current;return qe.addEventListener("wheel",vt,{passive:!1}),qe.addEventListener("DOMMouseScroll",Et,{passive:!0}),qe.addEventListener("MozMousePixelScroll",rt,{passive:!1}),function(){qe.removeEventListener("wheel",vt),qe.removeEventListener("DOMMouseScroll",Et),qe.removeEventListener("MozMousePixelScroll",rt)}},[Ht,qt,en]),(0,Se.Z)(function(){if(_){var rt=Dt(B);le(rt),jt({x:rt})}},[at.width,_]);var un=function(){var qe,lt;(qe=Qt.current)===null||qe===void 0||qe.delayHidden(),(lt=It.current)===null||lt===void 0||lt.delayHidden()},cn=Ze(yn,Tt,fn,oe,At,function(){return Mn(!0)},he,un);D.useImperativeHandle(M,function(){return{nativeElement:Zn.current,getScrollInfo:Mt,scrollTo:function(qe){function lt(Vt){return Vt&&(0,W.Z)(Vt)==="object"&&("left"in Vt||"top"in Vt)}lt(qe)?(qe.left!==void 0&&le(Dt(qe.left)),cn(qe.top)):cn(qe)}}}),(0,Se.Z)(function(){if(ot){var rt=Tt.slice(Ge,wt+1);ot(rt,Tt)}},[Ge,wt,Tt]);var nn=q(Tt,At,fn,oe),Kt=Wt==null?void 0:Wt({start:Ge,end:wt,virtual:Yt,offsetX:B,offsetY:me,rtl:Lt,getSize:nn}),mn=Ve(Tt,Ge,wt,_,B,pn,xe,ne),Cn=null;te&&(Cn=(0,S.Z)((0,X.Z)({},de?"height":"maxHeight",te),dt),Ht&&(Cn.overflowY="hidden",_&&(Cn.overflowX="hidden"),O&&(Cn.pointerEvents="none")));var Rn={};return Lt&&(Rn.dir="rtl"),D.createElement("div",(0,x.Z)({ref:Zn,style:(0,S.Z)((0,S.Z)({},Ie),{},{position:"relative"}),className:En},Rn,Ut),D.createElement(se.Z,{onResize:yt},D.createElement(nt,{className:"".concat(w,"-holder"),style:Cn,ref:yn,onScroll:Sn,onMouseEnter:un},D.createElement(ge,{prefixCls:w,height:je,offsetX:B,offsetY:me,scrollWidth:_,onInnerResize:Mn,ref:Pn,innerProps:ke,rtl:Lt,extra:Kt},mn))),Yt&&je>te&&D.createElement(Ce,{ref:Qt,prefixCls:w,scrollOffset:an,scrollRange:je,rtl:Lt,onScroll:ln,onStartMove:be,onStopMove:ee,spinSize:Jt,containerSize:at.height,style:ht==null?void 0:ht.verticalScrollBar,thumbStyle:ht==null?void 0:ht.verticalScrollBarThumb}),Yt&&_>at.width&&D.createElement(Ce,{ref:It,prefixCls:w,scrollOffset:B,scrollRange:_,rtl:Lt,onScroll:ln,onStartMove:be,onStopMove:ee,spinSize:Bt,containerSize:at.width,horizontal:!0,style:ht==null?void 0:ht.horizontalScrollBar,thumbStyle:ht==null?void 0:ht.horizontalScrollBarThumb}))}var Rt=D.forwardRef(tt);Rt.displayName="List";var ut=Rt,kt=ut},76374:function(rn,Te,c){"use strict";var x=function(){if(typeof Map!="undefined")return Map;function R(E,$){var Z=-1;return E.some(function(Y,G){return Y[0]===$?(Z=G,!0):!1}),Z}return function(){function E(){this.__entries__=[]}return Object.defineProperty(E.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),E.prototype.get=function($){var Z=R(this.__entries__,$),Y=this.__entries__[Z];return Y&&Y[1]},E.prototype.set=function($,Z){var Y=R(this.__entries__,$);~Y?this.__entries__[Y][1]=Z:this.__entries__.push([$,Z])},E.prototype.delete=function($){var Z=this.__entries__,Y=R(Z,$);~Y&&Z.splice(Y,1)},E.prototype.has=function($){return!!~R(this.__entries__,$)},E.prototype.clear=function(){this.__entries__.splice(0)},E.prototype.forEach=function($,Z){Z===void 0&&(Z=null);for(var Y=0,G=this.__entries__;Y<G.length;Y++){var H=G[Y];$.call(Z,H[1],H[0])}},E}()}(),W=typeof window!="undefined"&&typeof document!="undefined"&&window.document===document,S=function(){return typeof c.g!="undefined"&&c.g.Math===Math?c.g:typeof self!="undefined"&&self.Math===Math?self:typeof window!="undefined"&&window.Math===Math?window:Function("return this")()}(),X=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(S):function(R){return setTimeout(function(){return R(Date.now())},1e3/60)}}(),v=2;function T(R,E){var $=!1,Z=!1,Y=0;function G(){$&&($=!1,R()),Z&&V()}function H(){X(G)}function V(){var fe=Date.now();if($){if(fe-Y<v)return;Z=!0}else $=!0,Z=!1,setTimeout(H,E);Y=fe}return V}var I=20,k=["top","right","bottom","left","width","height","size","weight"],se=typeof MutationObserver!="undefined",p=function(){function R(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=T(this.refresh.bind(this),I)}return R.prototype.addObserver=function(E){~this.observers_.indexOf(E)||this.observers_.push(E),this.connected_||this.connect_()},R.prototype.removeObserver=function(E){var $=this.observers_,Z=$.indexOf(E);~Z&&$.splice(Z,1),!$.length&&this.connected_&&this.disconnect_()},R.prototype.refresh=function(){var E=this.updateObservers_();E&&this.refresh()},R.prototype.updateObservers_=function(){var E=this.observers_.filter(function($){return $.gatherActive(),$.hasActive()});return E.forEach(function($){return $.broadcastActive()}),E.length>0},R.prototype.connect_=function(){!W||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),se?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},R.prototype.disconnect_=function(){!W||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},R.prototype.onTransitionEnd_=function(E){var $=E.propertyName,Z=$===void 0?"":$,Y=k.some(function(G){return!!~Z.indexOf(G)});Y&&this.refresh()},R.getInstance=function(){return this.instance_||(this.instance_=new R),this.instance_},R.instance_=null,R}(),Se=function(R,E){for(var $=0,Z=Object.keys(E);$<Z.length;$++){var Y=Z[$];Object.defineProperty(R,Y,{value:E[Y],enumerable:!1,writable:!1,configurable:!0})}return R},D=function(R){var E=R&&R.ownerDocument&&R.ownerDocument.defaultView;return E||S},pe=f(0,0,0,0);function K(R){return parseFloat(R)||0}function ge(R){for(var E=[],$=1;$<arguments.length;$++)E[$-1]=arguments[$];return E.reduce(function(Z,Y){var G=R["border-"+Y+"-width"];return Z+K(G)},0)}function We(R){for(var E=["top","right","bottom","left"],$={},Z=0,Y=E;Z<Y.length;Z++){var G=Y[Z],H=R["padding-"+G];$[G]=K(H)}return $}function Ve(R){var E=R.getBBox();return f(0,0,E.width,E.height)}function Re(R){var E=R.clientWidth,$=R.clientHeight;if(!E&&!$)return pe;var Z=D(R).getComputedStyle(R),Y=We(Z),G=Y.left+Y.right,H=Y.top+Y.bottom,V=K(Z.width),fe=K(Z.height);if(Z.boxSizing==="border-box"&&(Math.round(V+G)!==E&&(V-=ge(Z,"left","right")+G),Math.round(fe+H)!==$&&(fe-=ge(Z,"top","bottom")+H)),!re(R)){var ue=Math.round(V+G)-E,Ze=Math.round(fe+H)-$;Math.abs(ue)!==1&&(V-=ue),Math.abs(Ze)!==1&&(fe-=Ze)}return f(Y.left,Y.top,V,fe)}var ye=function(){return typeof SVGGraphicsElement!="undefined"?function(R){return R instanceof D(R).SVGGraphicsElement}:function(R){return R instanceof D(R).SVGElement&&typeof R.getBBox=="function"}}();function re(R){return R===D(R).document.documentElement}function Q(R){return W?ye(R)?Ve(R):Re(R):pe}function C(R){var E=R.x,$=R.y,Z=R.width,Y=R.height,G=typeof DOMRectReadOnly!="undefined"?DOMRectReadOnly:Object,H=Object.create(G.prototype);return Se(H,{x:E,y:$,width:Z,height:Y,top:$,right:E+Z,bottom:Y+$,left:E}),H}function f(R,E,$,Z){return{x:R,y:E,width:$,height:Z}}var b=function(){function R(E){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=f(0,0,0,0),this.target=E}return R.prototype.isActive=function(){var E=Q(this.target);return this.contentRect_=E,E.width!==this.broadcastWidth||E.height!==this.broadcastHeight},R.prototype.broadcastRect=function(){var E=this.contentRect_;return this.broadcastWidth=E.width,this.broadcastHeight=E.height,E},R}(),P=function(){function R(E,$){var Z=C($);Se(this,{target:E,contentRect:Z})}return R}(),q=function(){function R(E,$,Z){if(this.activeObservations_=[],this.observations_=new x,typeof E!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=E,this.controller_=$,this.callbackCtx_=Z}return R.prototype.observe=function(E){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(E instanceof D(E).Element))throw new TypeError('parameter 1 is not of type "Element".');var $=this.observations_;$.has(E)||($.set(E,new b(E)),this.controller_.addObserver(this),this.controller_.refresh())}},R.prototype.unobserve=function(E){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(E instanceof D(E).Element))throw new TypeError('parameter 1 is not of type "Element".');var $=this.observations_;$.has(E)&&($.delete(E),$.size||this.controller_.removeObserver(this))}},R.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},R.prototype.gatherActive=function(){var E=this;this.clearActive(),this.observations_.forEach(function($){$.isActive()&&E.activeObservations_.push($)})},R.prototype.broadcastActive=function(){if(this.hasActive()){var E=this.callbackCtx_,$=this.activeObservations_.map(function(Z){return new P(Z.target,Z.broadcastRect())});this.callback_.call(E,$,E),this.clearActive()}},R.prototype.clearActive=function(){this.activeObservations_.splice(0)},R.prototype.hasActive=function(){return this.activeObservations_.length>0},R}(),z=typeof WeakMap!="undefined"?new WeakMap:new x,Ne=function(){function R(E){if(!(this instanceof R))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var $=p.getInstance(),Z=new q(E,$,this);z.set(this,Z)}return R}();["observe","unobserve","disconnect"].forEach(function(R){Ne.prototype[R]=function(){var E;return(E=z.get(this))[R].apply(E,arguments)}});var ie=function(){return typeof S.ResizeObserver!="undefined"?S.ResizeObserver:Ne}();Te.Z=ie},16722:function(rn,Te,c){"use strict";c.d(Te,{Z:function(){return k}});const x=se=>typeof se=="object"&&se!=null&&se.nodeType===1,W=(se,p)=>(!p||se!=="hidden")&&se!=="visible"&&se!=="clip",S=(se,p)=>{if(se.clientHeight<se.scrollHeight||se.clientWidth<se.scrollWidth){const Se=getComputedStyle(se,null);return W(Se.overflowY,p)||W(Se.overflowX,p)||(D=>{const pe=(K=>{if(!K.ownerDocument||!K.ownerDocument.defaultView)return null;try{return K.ownerDocument.defaultView.frameElement}catch(ge){return null}})(D);return!!pe&&(pe.clientHeight<D.scrollHeight||pe.clientWidth<D.scrollWidth)})(se)}return!1},X=(se,p,Se,D,pe,K,ge,We)=>K<se&&ge>p||K>se&&ge<p?0:K<=se&&We<=Se||ge>=p&&We>=Se?K-se-D:ge>p&&We<Se||K<se&&We>Se?ge-p+pe:0,v=se=>{const p=se.parentElement;return p==null?se.getRootNode().host||null:p},T=(se,p)=>{var Se,D,pe,K;if(typeof document=="undefined")return[];const{scrollMode:ge,block:We,inline:Ve,boundary:Re,skipOverflowHiddenElements:ye}=p,re=typeof Re=="function"?Re:Ke=>Ke!==Re;if(!x(se))throw new TypeError("Invalid target");const Q=document.scrollingElement||document.documentElement,C=[];let f=se;for(;x(f)&&re(f);){if(f=v(f),f===Q){C.push(f);break}f!=null&&f===document.body&&S(f)&&!S(document.documentElement)||f!=null&&S(f,ye)&&C.push(f)}const b=(D=(Se=window.visualViewport)==null?void 0:Se.width)!=null?D:innerWidth,P=(K=(pe=window.visualViewport)==null?void 0:pe.height)!=null?K:innerHeight,{scrollX:q,scrollY:z}=window,{height:Ne,width:ie,top:R,right:E,bottom:$,left:Z}=se.getBoundingClientRect(),{top:Y,right:G,bottom:H,left:V}=(Ke=>{const Ce=window.getComputedStyle(Ke);return{top:parseFloat(Ce.scrollMarginTop)||0,right:parseFloat(Ce.scrollMarginRight)||0,bottom:parseFloat(Ce.scrollMarginBottom)||0,left:parseFloat(Ce.scrollMarginLeft)||0}})(se);let fe=We==="start"||We==="nearest"?R-Y:We==="end"?$+H:R+Ne/2-Y+H,ue=Ve==="center"?Z+ie/2-V+G:Ve==="end"?E+G:Z-V;const Ze=[];for(let Ke=0;Ke<C.length;Ke++){const Ce=C[Ke],{height:Pe,width:Me,top:Ct,right:$t,bottom:dt,left:tt}=Ce.getBoundingClientRect();if(ge==="if-needed"&&R>=0&&Z>=0&&$<=P&&E<=b&&(Ce===Q&&!S(Ce)||R>=Ct&&$<=dt&&Z>=tt&&E<=$t))return Ze;const Rt=getComputedStyle(Ce),ut=parseInt(Rt.borderLeftWidth,10),kt=parseInt(Rt.borderTopWidth,10),J=parseInt(Rt.borderRightWidth,10),M=parseInt(Rt.borderBottomWidth,10);let F=0,w=0;const U="offsetWidth"in Ce?Ce.offsetWidth-Ce.clientWidth-ut-J:0,te="offsetHeight"in Ce?Ce.offsetHeight-Ce.clientHeight-kt-M:0,oe="offsetWidth"in Ce?Ce.offsetWidth===0?0:Me/Ce.offsetWidth:0,ae="offsetHeight"in Ce?Ce.offsetHeight===0?0:Pe/Ce.offsetHeight:0;if(Q===Ce)F=We==="start"?fe:We==="end"?fe-P:We==="nearest"?X(z,z+P,P,kt,M,z+fe,z+fe+Ne,Ne):fe-P/2,w=Ve==="start"?ue:Ve==="center"?ue-b/2:Ve==="end"?ue-b:X(q,q+b,b,ut,J,q+ue,q+ue+ie,ie),F=Math.max(0,F+z),w=Math.max(0,w+q);else{F=We==="start"?fe-Ct-kt:We==="end"?fe-dt+M+te:We==="nearest"?X(Ct,dt,Pe,kt,M+te,fe,fe+Ne,Ne):fe-(Ct+Pe/2)+te/2,w=Ve==="start"?ue-tt-ut:Ve==="center"?ue-(tt+Me/2)+U/2:Ve==="end"?ue-$t+J+U:X(tt,$t,Me,ut,J+U,ue,ue+ie,ie);const{scrollLeft:de,scrollTop:Ie}=Ce;F=ae===0?0:Math.max(0,Math.min(Ie+F/ae,Ce.scrollHeight-Pe/ae+te)),w=oe===0?0:Math.max(0,Math.min(de+w/oe,Ce.scrollWidth-Me/oe+U)),fe+=Ie-F,ue+=de-w}Ze.push({el:Ce,top:F,left:w})}return Ze},I=se=>se===!1?{block:"end",inline:"nearest"}:(p=>p===Object(p)&&Object.keys(p).length!==0)(se)?se:{block:"start",inline:"nearest"};function k(se,p){if(!se.isConnected||!(pe=>{let K=pe;for(;K&&K.parentNode;){if(K.parentNode===document)return!0;K=K.parentNode instanceof ShadowRoot?K.parentNode.host:K.parentNode}return!1})(se))return;const Se=(pe=>{const K=window.getComputedStyle(pe);return{top:parseFloat(K.scrollMarginTop)||0,right:parseFloat(K.scrollMarginRight)||0,bottom:parseFloat(K.scrollMarginBottom)||0,left:parseFloat(K.scrollMarginLeft)||0}})(se);if((pe=>typeof pe=="object"&&typeof pe.behavior=="function")(p))return p.behavior(T(se,p));const D=typeof p=="boolean"||p==null?void 0:p.behavior;for(const{el:pe,top:K,left:ge}of T(se,I(p))){const We=K-Se.top+Se.bottom,Ve=ge-Se.left+Se.right;pe.scroll({top:We,left:Ve,behavior:D})}}}}]);