|
|
(self.webpackChunk=self.webpackChunk||[]).push([[7046],{40001:function(tn,Me,c){"use strict";c.d(Me,{Z:function(){return _}});var x=c(96663),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"},G=S,v=c(7657),P=function(p,Ce){return W.createElement(v.Z,(0,x.Z)({},p,{ref:Ce,icon:G}))},I=W.forwardRef(P),_=I},84105:function(tn,Me,c){"use strict";c.d(Me,{Z:function(){return _}});var x=c(96663),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"},G=S,v=c(7657),P=function(p,Ce){return W.createElement(v.Z,(0,x.Z)({},p,{ref:Ce,icon:G}))},I=W.forwardRef(P),_=I},73331:function(tn,Me,c){"use strict";c.d(Me,{Z:function(){return _}});var x=c(96663),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"},G=S,v=c(7657),P=function(p,Ce){return W.createElement(v.Z,(0,x.Z)({},p,{ref:Ce,icon:G}))},I=W.forwardRef(P),_=I},15277:function(tn,Me,c){"use strict";c.d(Me,{Z:function(){return _}});var x=c(96663),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"},G=S,v=c(7657),P=function(p,Ce){return W.createElement(v.Z,(0,x.Z)({},p,{ref:Ce,icon:G}))},I=W.forwardRef(P),_=I},61485:function(tn,Me,c){"use strict";c.d(Me,{Z:function(){return _}});var x=c(96663),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"},G=S,v=c(7657),P=function(p,Ce){return W.createElement(v.Z,(0,x.Z)({},p,{ref:Ce,icon:G}))},I=W.forwardRef(P),_=I},47472:function(tn,Me,c){"use strict";c.d(Me,{Z:function(){return _}});var x=c(96663),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"},G=S,v=c(7657),P=function(p,Ce){return W.createElement(v.Z,(0,x.Z)({},p,{ref:Ce,icon:G}))},I=W.forwardRef(P),_=I},35593:function(tn,Me,c){"use strict";c.d(Me,{Z:function(){return ze}});var x=c(44127),W=c(72071),S=c(6620),G=c(43403),v=c(92310),P=c.n(v),I=c(29301),_=c(76846),se=c(96452),p=c(6089),Ce=c(80402),D=c(34280),me=c(49658),j=c(59301),he=c(96663),Be=c(77900),Ye=c(8654);function Ie(O){var Z=O.prefixCls,M=O.align,k=O.arrow,q=O.arrowPos,re=k||{},ye=re.className,ie=re.content,De=q.x,ge=De===void 0?0:De,Ne=q.y,we=Ne===void 0?0:Ne,Te=j.useRef();if(!M||!M.points)return null;var $e={position:"absolute"};if(M.autoArrow!==!1){var oe=M.points[0],Qe=M.points[1],Ze=oe[0],Ge=oe[1],rt=Qe[0],wt=Qe[1];Ze===rt||!["t","b"].includes(Ze)?$e.top=we:Ze==="t"?$e.top=0:$e.bottom=0,Ge===wt||!["l","r"].includes(Ge)?$e.left=ge:Ge==="l"?$e.left=0:$e.right=0}return j.createElement("div",{ref:Te,className:P()("".concat(Z,"-arrow"),ye),style:$e},ie)}function Se(O){var Z=O.prefixCls,M=O.open,k=O.zIndex,q=O.mask,re=O.motion;return q?j.createElement(Be.default,(0,he.Z)({},re,{motionAppear:!0,visible:M,removeOnLeave:!0}),function(ye){var ie=ye.className;return j.createElement("div",{style:{zIndex:k},className:P()("".concat(Z,"-mask"),ie)})}):null}var ne=j.memo(function(O){var Z=O.children;return Z},function(O,Z){return Z.cache}),Q=ne,C=j.forwardRef(function(O,Z){var M=O.popup,k=O.className,q=O.prefixCls,re=O.style,ye=O.target,ie=O.onVisibleChanged,De=O.open,ge=O.keepDom,Ne=O.fresh,we=O.onClick,Te=O.mask,$e=O.arrow,oe=O.arrowPos,Qe=O.align,Ze=O.motion,Ge=O.maskMotion,rt=O.forceRender,wt=O.getPopupContainer,ke=O.autoDestroy,Ot=O.portal,It=O.zIndex,_t=O.onMouseEnter,Vt=O.onMouseLeave,fn=O.onPointerEnter,dn=O.ready,un=O.offsetX,En=O.offsetY,On=O.offsetR,Ft=O.offsetB,nn=O.onAlign,Ht=O.onPrepare,cn=O.stretch,Nt=O.targetWidth,hn=O.targetHeight,rn=typeof M=="function"?M():M,Xt=De||ge,In=(wt==null?void 0:wt.length)>0,Bn=j.useState(!wt||!In),ir=(0,W.Z)(Bn,2),Vn=ir[0],pn=ir[1];if((0,D.Z)(function(){!Vn&&In&&ye&&pn(!0)},[Vn,In,ye]),!Vn)return null;var tt="auto",xt={left:"-1000vw",top:"-1000vh",right:tt,bottom:tt};if(dn||!De){var m,K=Qe.points,ae=Qe.dynamicInset||((m=Qe._experimental)===null||m===void 0?void 0:m.dynamicInset),d=ae&&K[0][1]==="r",h=ae&&K[0][0]==="b";d?(xt.right=On,xt.left=tt):(xt.left=un,xt.right=tt),h?(xt.bottom=Ft,xt.top=tt):(xt.top=En,xt.bottom=tt)}var E={};return cn&&(cn.includes("height")&&hn?E.height=hn:cn.includes("minHeight")&&hn&&(E.minHeight=hn),cn.includes("width")&&Nt?E.width=Nt:cn.includes("minWidth")&&Nt&&(E.minWidth=Nt)),De||(E.pointerEvents="none"),j.createElement(Ot,{open:rt||Xt,getContainer:wt&&function(){return wt(ye)},autoDestroy:ke},j.createElement(Se,{prefixCls:q,open:De,zIndex:It,mask:Te,motion:Ge}),j.createElement(I.Z,{onResize:nn,disabled:!De},function(H){return j.createElement(Be.default,(0,he.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:rt,leavedClassName:"".concat(q,"-hidden")},Ze,{onAppearPrepare:Ht,onEnterPrepare:Ht,visible:De,onVisibleChanged:function(ee){var te;Ze==null||(te=Ze.onVisibleChanged)===null||te===void 0||te.call(Ze,ee),ie(ee)}}),function(be,ee){var te=be.className,ve=be.style,Le=P()(q,te,k);return j.createElement("div",{ref:(0,Ye.sQ)(H,Z,ee),className:Le,style:(0,x.Z)((0,x.Z)((0,x.Z)((0,x.Z)({"--arrow-x":"".concat(oe.x||0,"px"),"--arrow-y":"".concat(oe.y||0,"px")},xt),E),ve),{},{boxSizing:"border-box",zIndex:It},re),onMouseEnter:_t,onMouseLeave:Vt,onPointerEnter:fn,onClick:we},$e&&j.createElement(Ie,{prefixCls:q,arrow:$e,arrowPos:oe,align:Qe}),j.createElement(Q,{cache:!De&&!Ne},rn))})}))}),f=C,b=j.forwardRef(function(O,Z){var M=O.children,k=O.getTriggerDOMNode,q=(0,Ye.Yr)(M),re=j.useCallback(function(ie){(0,Ye.mH)(Z,k?k(ie):ie)},[k]),ye=(0,Ye.x1)(re,M.ref);return q?j.cloneElement(M,{ref:ye}):M}),T=b,J=j.createContext(null),F=J;function Ae(O){return O?Array.isArray(O)?O:[O]:[]}function le(O,Z,M,k){return j.useMemo(function(){var q=Ae(M!=null?M:Z),re=Ae(k!=null?k:Z),ye=new Set(q),ie=new Set(re);return O&&(ye.has("hover")&&(ye.delete("hover"),ye.add("click")),ie.has("hover")&&(ie.delete("hover"),ie.add("click"))),[ye,ie]},[O,Z,M,k])}var R=c(29194);function w(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],M=arguments.length>2?arguments[2]:void 0;return M?O[0]===Z[0]:O[0]===Z[0]&&O[1]===Z[1]}function z(O,Z,M,k){for(var q=M.points,re=Object.keys(O),ye=0;ye<re.length;ye+=1){var ie,De=re[ye];if(w((ie=O[De])===null||ie===void 0?void 0:ie.points,q,k))return"".concat(Z,"-placement-").concat(De)}return""}function $(O,Z,M,k){return Z||(M?{motionName:"".concat(O,"-").concat(M)}:k?{motionName:k}:null)}function Y(O){return O.ownerDocument.defaultView}function U(O){for(var Z=[],M=O==null?void 0:O.parentElement,k=["hidden","scroll","clip","auto"];M;){var q=Y(M).getComputedStyle(M),re=q.overflowX,ye=q.overflowY,ie=q.overflow;[re,ye,ie].some(function(De){return k.includes(De)})&&Z.push(M),M=M.parentElement}return Z}function B(O){var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(O)?Z:O}function V(O){return B(parseFloat(O),0)}function fe(O,Z){var M=(0,x.Z)({},O);return(Z||[]).forEach(function(k){if(!(k instanceof HTMLBodyElement||k instanceof HTMLHtmlElement)){var q=Y(k).getComputedStyle(k),re=q.overflow,ye=q.overflowClipMargin,ie=q.borderTopWidth,De=q.borderBottomWidth,ge=q.borderLeftWidth,Ne=q.borderRightWidth,we=k.getBoundingClientRect(),Te=k.offsetHeight,$e=k.clientHeight,oe=k.offsetWidth,Qe=k.clientWidth,Ze=V(ie),Ge=V(De),rt=V(ge),wt=V(Ne),ke=B(Math.round(we.width/oe*1e3)/1e3),Ot=B(Math.round(we.height/Te*1e3)/1e3),It=(oe-Qe-rt-wt)*ke,_t=(Te-$e-Ze-Ge)*Ot,Vt=Ze*Ot,fn=Ge*Ot,dn=rt*ke,un=wt*ke,En=0,On=0;if(re==="clip"){var Ft=V(ye);En=Ft*ke,On=Ft*Ot}var nn=we.x+dn-En,Ht=we.y+Vt-On,cn=nn+we.width+2*En-dn-un-It,Nt=Ht+we.height+2*On-Vt-fn-_t;M.left=Math.max(M.left,nn),M.top=Math.max(M.top,Ht),M.right=Math.min(M.right,cn),M.bottom=Math.min(M.bottom,Nt)}}),M}function ue(O){var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,M="".concat(Z),k=M.match(/^(.*)\%$/);return k?O*(parseFloat(k[1])/100):parseFloat(M)}function We(O,Z){var M=Z||[],k=(0,W.Z)(M,2),q=k[0],re=k[1];return[ue(O.width,q),ue(O.height,re)]}function Ke(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[O[0],O[1]]}function xe(O,Z){var M=Z[0],k=Z[1],q,re;return M==="t"?re=O.y:M==="b"?re=O.y+O.height:re=O.y+O.height/2,k==="l"?q=O.x:k==="r"?q=O.x+O.width:q=O.x+O.width/2,{x:q,y:re}}function Pe(O,Z){var M={t:"b",b:"t",l:"r",r:"l"};return O.map(function(k,q){return q===Z?M[k]||"c":k}).join("")}function Re(O,Z,M,k,q,re,ye){var ie=j.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:q[k]||{}}),De=(0,W.Z)(ie,2),ge=De[0],Ne=De[1],we=j.useRef(0),Te=j.useMemo(function(){return Z?U(Z):[]},[Z]),$e=j.useRef({}),oe=function(){$e.current={}};O||oe();var Qe=(0,p.Z)(function(){if(Z&&M&&O){let pt=function(Sn,wn){var qn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Le,ar=rn.x+Sn,mr=rn.y+wn,kn=ar+m,yr=mr+xt,Yr=Math.max(ar,qn.left),oi=Math.max(mr,qn.top),ci=Math.min(kn,qn.right),Fr=Math.min(yr,qn.bottom);return Math.max(0,(ci-Yr)*(Fr-oi))},gt=function(){an=rn.y+it,sn=an+xt,qt=rn.x+ht,jt=qt+m};var rt,wt,ke=Z,Ot=ke.ownerDocument,It=Y(ke),_t=It.getComputedStyle(ke),Vt=_t.width,fn=_t.height,dn=_t.position,un=ke.style.left,En=ke.style.top,On=ke.style.right,Ft=ke.style.bottom,nn=ke.style.overflow,Ht=(0,x.Z)((0,x.Z)({},q[k]),re),cn=Ot.createElement("div");(rt=ke.parentElement)===null||rt===void 0||rt.appendChild(cn),cn.style.left="".concat(ke.offsetLeft,"px"),cn.style.top="".concat(ke.offsetTop,"px"),cn.style.position=dn,cn.style.height="".concat(ke.offsetHeight,"px"),cn.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 Nt;if(Array.isArray(M))Nt={x:M[0],y:M[1],width:0,height:0};else{var hn=M.getBoundingClientRect();Nt={x:hn.x,y:hn.y,width:hn.width,height:hn.height}}var rn=ke.getBoundingClientRect(),Xt=Ot.documentElement,In=Xt.clientWidth,Bn=Xt.clientHeight,ir=Xt.scrollWidth,Vn=Xt.scrollHeight,pn=Xt.scrollTop,tt=Xt.scrollLeft,xt=rn.height,m=rn.width,K=Nt.height,ae=Nt.width,d={left:0,top:0,right:In,bottom:Bn},h={left:-tt,top:-pn,right:ir-tt,bottom:Vn-pn},E=Ht.htmlRegion,H="visible",be="visibleFirst";E!=="scroll"&&E!==be&&(E=H);var ee=E===be,te=fe(h,Te),ve=fe(d,Te),Le=E===H?ve:te,Ue=ee?ve:Le;ke.style.left="auto",ke.style.top="auto",ke.style.right="0",ke.style.bottom="0";var A=ke.getBoundingClientRect();ke.style.left=un,ke.style.top=En,ke.style.right=On,ke.style.bottom=Ft,ke.style.overflow=nn,(wt=ke.parentElement)===null||wt===void 0||wt.removeChild(cn);var ce=B(Math.round(m/parseFloat(Vt)*1e3)/1e3),Je=B(Math.round(xt/parseFloat(fn)*1e3)/1e3);if(ce===0||Je===0||(0,_.Sh)(M)&&!(0,R.Z)(M))return;var Fe=Ht.offset,Ve=Ht.targetOffset,Xe=We(rn,Fe),mt=(0,W.Z)(Xe,2),pe=mt[0],Ee=mt[1],_e=We(Nt,Ve),dt=(0,W.Z)(_e,2),ot=dt[0],yt=dt[1];Nt.x-=ot,Nt.y-=yt;var en=Ht.points||[],Mt=(0,W.Z)(en,2),Bt=Mt[0],Yt=Mt[1],Rt=Ke(Yt),kt=Ke(Bt),ln=xe(Nt,Rt),on=xe(rn,kt),Qt=(0,x.Z)({},Ht),ht=ln.x-on.x+pe,it=ln.y-on.y+Ee,zt=pt(ht,it),Lt=pt(ht,it,ve),bn=xe(Nt,["t","l"]),Kt=xe(rn,["t","l"]),Jt=xe(Nt,["b","r"]),mn=xe(rn,["b","r"]),Zt=Ht.overflow||{},Nn=Zt.adjustX,Gn=Zt.adjustY,At=Zt.shiftX,vt=Zt.shiftY,bt=function(wn){return typeof wn=="boolean"?wn:wn>=0},an,sn,qt,jt;gt();var yn=bt(Gn),Rn=kt[0]===Rt[0];if(yn&&kt[0]==="t"&&(sn>Ue.bottom||$e.current.bt)){var xn=it;Rn?xn-=xt-K:xn=bn.y-mn.y-Ee;var Pn=pt(ht,xn),at=pt(ht,xn,ve);Pn>zt||Pn===zt&&(!ee||at>=Lt)?($e.current.bt=!0,it=xn,Ee=-Ee,Qt.points=[Pe(kt,0),Pe(Rt,0)]):$e.current.bt=!1}if(yn&&kt[0]==="b"&&(an<Ue.top||$e.current.tb)){var He=it;Rn?He+=xt-K:He=Jt.y-Kt.y-Ee;var Et=pt(ht,He),Tt=pt(ht,He,ve);Et>zt||Et===zt&&(!ee||Tt>=Lt)?($e.current.tb=!0,it=He,Ee=-Ee,Qt.points=[Pe(kt,0),Pe(Rt,0)]):$e.current.tb=!1}var Ln=bt(Nn),dr=kt[1]===Rt[1];if(Ln&&kt[1]==="l"&&(jt>Ue.right||$e.current.rl)){var zn=ht;dr?zn-=m-ae:zn=bn.x-mn.x-pe;var Yn=pt(zn,it),jn=pt(zn,it,ve);Yn>zt||Yn===zt&&(!ee||jn>=Lt)?($e.current.rl=!0,ht=zn,pe=-pe,Qt.points=[Pe(kt,1),Pe(Rt,1)]):$e.current.rl=!1}if(Ln&&kt[1]==="r"&&(qt<Ue.left||$e.current.lr)){var Hn=ht;dr?Hn+=m-ae:Hn=Jt.x-Kt.x-pe;var An=pt(Hn,it),Jn=pt(Hn,it,ve);An>zt||An===zt&&(!ee||Jn>=Lt)?($e.current.lr=!0,ht=Hn,pe=-pe,Qt.points=[Pe(kt,1),Pe(Rt,1)]):$e.current.lr=!1}gt();var Zn=At===!0?0:At;typeof Zn=="number"&&(qt<ve.left&&(ht-=qt-ve.left-pe,Nt.x+ae<ve.left+Zn&&(ht+=Nt.x-ve.left+ae-Zn)),jt>ve.right&&(ht-=jt-ve.right-pe,Nt.x>ve.right-Zn&&(ht+=Nt.x-ve.right+Zn)));var _n=vt===!0?0:vt;typeof _n=="number"&&(an<ve.top&&(it-=an-ve.top-Ee,Nt.y+K<ve.top+_n&&(it+=Nt.y-ve.top+K-_n)),sn>ve.bottom&&(it-=sn-ve.bottom-Ee,Nt.y>ve.bottom-_n&&(it+=Nt.y-ve.bottom+_n)));var xr=rn.x+ht,Mr=xr+m,vr=rn.y+it,Hr=vr+xt,tr=Nt.x,gr=tr+ae,pr=Nt.y,ii=pr+K,qr=Math.max(xr,tr),Ur=Math.min(Mr,gr),jr=(qr+Ur)/2,ei=jr-xr,ti=Math.max(vr,pr),$r=Math.min(Hr,ii),Ir=(ti+$r)/2,Xr=Ir-vr;ye==null||ye(Z,Qt);var St=A.right-rn.x-(ht+rn.width),Ut=A.bottom-rn.y-(it+rn.height);Ne({ready:!0,offsetX:ht/ce,offsetY:it/Je,offsetR:St/ce,offsetB:Ut/Je,arrowX:ei/ce,arrowY:Xr/Je,scaleX:ce,scaleY:Je,align:Qt})}}),Ze=function(){we.current+=1;var wt=we.current;Promise.resolve().then(function(){we.current===wt&&Qe()})},Ge=function(){Ne(function(wt){return(0,x.Z)((0,x.Z)({},wt),{},{ready:!1})})};return(0,D.Z)(Ge,[k]),(0,D.Z)(function(){O||Ge()},[O]),[ge.ready,ge.offsetX,ge.offsetY,ge.offsetR,ge.offsetB,ge.arrowX,ge.arrowY,ge.scaleX,ge.scaleY,ge.align,Ze]}var Ct=c(19127);function $t(O,Z,M,k,q){(0,D.Z)(function(){if(O&&Z&&M){let we=function(){k(),q()};var re=Z,ye=M,ie=U(re),De=U(ye),ge=Y(ye),Ne=new Set([ge].concat((0,Ct.Z)(ie),(0,Ct.Z)(De)));return Ne.forEach(function(Te){Te.addEventListener("scroll",we,{passive:!0})}),ge.addEventListener("resize",we,{passive:!0}),k(),function(){Ne.forEach(function(Te){Te.removeEventListener("scroll",we),ge.removeEventListener("resize",we)})}}},[O,Z,M])}var ct=c(48736),nt=c(16089);function Pt(O,Z,M,k,q,re,ye,ie){var De=j.useRef(O),ge=j.useRef(!1);De.current!==O&&(ge.current=!0,De.current=O),j.useEffect(function(){var Ne=(0,nt.Z)(function(){ge.current=!1});return function(){nt.Z.cancel(Ne)}},[O]),j.useEffect(function(){if(Z&&k&&(!q||re)){var Ne=function(){var dn=!1,un=function(Ft){var nn=Ft.target;dn=ye(nn)},En=function(Ft){var nn=Ft.target;!ge.current&&De.current&&!dn&&!ye(nn)&&ie(!1)};return[un,En]},we=Ne(),Te=(0,W.Z)(we,2),$e=Te[0],oe=Te[1],Qe=Ne(),Ze=(0,W.Z)(Qe,2),Ge=Ze[0],rt=Ze[1],wt=Y(k);wt.addEventListener("mousedown",$e,!0),wt.addEventListener("click",oe,!0),wt.addEventListener("contextmenu",oe,!0);var ke=(0,se.A)(M);if(ke&&(ke.addEventListener("mousedown",Ge,!0),ke.addEventListener("click",rt,!0),ke.addEventListener("contextmenu",rt,!0)),0)var Ot,It,_t,Vt;return function(){wt.removeEventListener("mousedown",$e,!0),wt.removeEventListener("click",oe,!0),wt.removeEventListener("contextmenu",oe,!0),ke&&(ke.removeEventListener("mousedown",Ge,!0),ke.removeEventListener("click",rt,!0),ke.removeEventListener("contextmenu",rt,!0))}}},[Z,M,k,q,re])}var st=["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 X(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:G.Z,Z=j.forwardRef(function(M,k){var q=M.prefixCls,re=q===void 0?"rc-trigger-popup":q,ye=M.children,ie=M.action,De=ie===void 0?"hover":ie,ge=M.showAction,Ne=M.hideAction,we=M.popupVisible,Te=M.defaultPopupVisible,$e=M.onPopupVisibleChange,oe=M.afterPopupVisibleChange,Qe=M.mouseEnterDelay,Ze=M.mouseLeaveDelay,Ge=Ze===void 0?.1:Ze,rt=M.focusDelay,wt=M.blurDelay,ke=M.mask,Ot=M.maskClosable,It=Ot===void 0?!0:Ot,_t=M.getPopupContainer,Vt=M.forceRender,fn=M.autoDestroy,dn=M.destroyPopupOnHide,un=M.popup,En=M.popupClassName,On=M.popupStyle,Ft=M.popupPlacement,nn=M.builtinPlacements,Ht=nn===void 0?{}:nn,cn=M.popupAlign,Nt=M.zIndex,hn=M.stretch,rn=M.getPopupClassNameFromAlign,Xt=M.fresh,In=M.alignPoint,Bn=M.onPopupClick,ir=M.onPopupAlign,Vn=M.arrow,pn=M.popupMotion,tt=M.maskMotion,xt=M.popupTransitionName,m=M.popupAnimation,K=M.maskTransitionName,ae=M.maskAnimation,d=M.className,h=M.getTriggerDOMNode,E=(0,S.Z)(M,st),H=fn||dn||!1,be=j.useState(!1),ee=(0,W.Z)(be,2),te=ee[0],ve=ee[1];(0,D.Z)(function(){ve((0,me.Z)())},[]);var Le=j.useRef({}),Ue=j.useContext(F),A=j.useMemo(function(){return{registerSubPopup:function(Gt,Mn){Le.current[Gt]=Mn,Ue==null||Ue.registerSubPopup(Gt,Mn)}}},[Ue]),ce=(0,Ce.Z)(),Je=j.useState(null),Fe=(0,W.Z)(Je,2),Ve=Fe[0],Xe=Fe[1],mt=(0,p.Z)(function(ut){(0,_.Sh)(ut)&&Ve!==ut&&Xe(ut),Ue==null||Ue.registerSubPopup(ce,ut)}),pe=j.useState(null),Ee=(0,W.Z)(pe,2),_e=Ee[0],dt=Ee[1],ot=j.useRef(null),yt=(0,p.Z)(function(ut){(0,_.Sh)(ut)&&_e!==ut&&(dt(ut),ot.current=ut)}),en=j.Children.only(ye),Mt=(en==null?void 0:en.props)||{},Bt={},Yt=(0,p.Z)(function(ut){var Gt,Mn,Dn=_e;return(Dn==null?void 0:Dn.contains(ut))||((Gt=(0,se.A)(Dn))===null||Gt===void 0?void 0:Gt.host)===ut||ut===Dn||(Ve==null?void 0:Ve.contains(ut))||((Mn=(0,se.A)(Ve))===null||Mn===void 0?void 0:Mn.host)===ut||ut===Ve||Object.values(Le.current).some(function(Fn){return(Fn==null?void 0:Fn.contains(ut))||ut===Fn})}),Rt=$(re,pn,m,xt),kt=$(re,tt,ae,K),ln=j.useState(Te||!1),on=(0,W.Z)(ln,2),Qt=on[0],ht=on[1],it=we!=null?we:Qt,zt=(0,p.Z)(function(ut){we===void 0&&ht(ut)});(0,D.Z)(function(){ht(we||!1)},[we]);var Lt=j.useRef(it);Lt.current=it;var bn=j.useRef([]);bn.current=[];var Kt=(0,p.Z)(function(ut){var Gt;zt(ut),((Gt=bn.current[bn.current.length-1])!==null&&Gt!==void 0?Gt:it)!==ut&&(bn.current.push(ut),$e==null||$e(ut))}),Jt=j.useRef(),mn=function(){clearTimeout(Jt.current)},Zt=function(Gt){var Mn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;mn(),Mn===0?Kt(Gt):Jt.current=setTimeout(function(){Kt(Gt)},Mn*1e3)};j.useEffect(function(){return mn},[]);var Nn=j.useState(!1),Gn=(0,W.Z)(Nn,2),At=Gn[0],vt=Gn[1];(0,D.Z)(function(ut){(!ut||it)&&vt(!0)},[it]);var bt=j.useState(null),an=(0,W.Z)(bt,2),sn=an[0],qt=an[1],jt=j.useState([0,0]),yn=(0,W.Z)(jt,2),Rn=yn[0],xn=yn[1],Pn=function(Gt){xn([Gt.clientX,Gt.clientY])},at=Re(it,Ve,In?Rn:_e,Ft,Ht,cn,ir),He=(0,W.Z)(at,11),Et=He[0],Tt=He[1],Ln=He[2],dr=He[3],zn=He[4],Yn=He[5],jn=He[6],Hn=He[7],An=He[8],Jn=He[9],Zn=He[10],_n=le(te,De,ge,Ne),xr=(0,W.Z)(_n,2),Mr=xr[0],vr=xr[1],Hr=Mr.has("click"),tr=vr.has("click")||vr.has("contextMenu"),gr=(0,p.Z)(function(){At||Zn()}),pr=function(){Lt.current&&In&&tr&&Zt(!1)};$t(it,_e,Ve,gr,pr),(0,D.Z)(function(){gr()},[Rn,Ft]),(0,D.Z)(function(){it&&!(Ht!=null&&Ht[Ft])&&gr()},[JSON.stringify(cn)]);var ii=j.useMemo(function(){var ut=z(Ht,re,Jn,In);return P()(ut,rn==null?void 0:rn(Jn))},[Jn,rn,Ht,re,In]);j.useImperativeHandle(k,function(){return{nativeElement:ot.current,forceAlign:gr}});var qr=j.useState(0),Ur=(0,W.Z)(qr,2),jr=Ur[0],ei=Ur[1],ti=j.useState(0),$r=(0,W.Z)(ti,2),Ir=$r[0],Xr=$r[1],St=function(){if(hn&&_e){var Gt=_e.getBoundingClientRect();ei(Gt.width),Xr(Gt.height)}},Ut=function(){St(),gr()},pt=function(Gt){vt(!1),Zn(),oe==null||oe(Gt)},gt=function(){return new Promise(function(Gt){St(),qt(function(){return Gt})})};(0,D.Z)(function(){sn&&(Zn(),sn(),qt(null))},[sn]);function Sn(ut,Gt,Mn,Dn){Bt[ut]=function(Fn){var ni;Dn==null||Dn(Fn),Zt(Gt,Mn);for(var fi=arguments.length,Rr=new Array(fi>1?fi-1:0),Lr=1;Lr<fi;Lr++)Rr[Lr-1]=arguments[Lr];(ni=Mt[ut])===null||ni===void 0||ni.call.apply(ni,[Mt,Fn].concat(Rr))}}(Hr||tr)&&(Bt.onClick=function(ut){var Gt;Lt.current&&tr?Zt(!1):!Lt.current&&Hr&&(Pn(ut),Zt(!0));for(var Mn=arguments.length,Dn=new Array(Mn>1?Mn-1:0),Fn=1;Fn<Mn;Fn++)Dn[Fn-1]=arguments[Fn];(Gt=Mt.onClick)===null||Gt===void 0||Gt.call.apply(Gt,[Mt,ut].concat(Dn))}),Pt(it,tr,_e,Ve,ke,It,Yt,Zt);var wn=Mr.has("hover"),qn=vr.has("hover"),ar,mr;wn&&(Sn("onMouseEnter",!0,Qe,function(ut){Pn(ut)}),Sn("onPointerEnter",!0,Qe,function(ut){Pn(ut)}),ar=function(Gt){(it||At)&&Ve!==null&&Ve!==void 0&&Ve.contains(Gt.target)&&Zt(!0,Qe)},In&&(Bt.onMouseMove=function(ut){var Gt;(Gt=Mt.onMouseMove)===null||Gt===void 0||Gt.call(Mt,ut)})),qn&&(Sn("onMouseLeave",!1,Ge),Sn("onPointerLeave",!1,Ge),mr=function(){Zt(!1,Ge)}),Mr.has("focus")&&Sn("onFocus",!0,rt),vr.has("focus")&&Sn("onBlur",!1,wt),Mr.has("contextMenu")&&(Bt.onContextMenu=function(ut){var Gt;Lt.current&&vr.has("contextMenu")?Zt(!1):(Pn(ut),Zt(!0)),ut.preventDefault();for(var Mn=arguments.length,Dn=new Array(Mn>1?Mn-1:0),Fn=1;Fn<Mn;Fn++)Dn[Fn-1]=arguments[Fn];(Gt=Mt.onContextMenu)===null||Gt===void 0||Gt.call.apply(Gt,[Mt,ut].concat(Dn))}),d&&(Bt.className=P()(Mt.className,d));var kn=(0,x.Z)((0,x.Z)({},Mt),Bt),yr={},Yr=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Yr.forEach(function(ut){E[ut]&&(yr[ut]=function(){for(var Gt,Mn=arguments.length,Dn=new Array(Mn),Fn=0;Fn<Mn;Fn++)Dn[Fn]=arguments[Fn];(Gt=kn[ut])===null||Gt===void 0||Gt.call.apply(Gt,[kn].concat(Dn)),E[ut].apply(E,Dn)})});var oi=j.cloneElement(en,(0,x.Z)((0,x.Z)({},kn),yr)),ci={x:Yn,y:jn},Fr=Vn?(0,x.Z)({},Vn!==!0?Vn:{}):null;return j.createElement(j.Fragment,null,j.createElement(I.Z,{disabled:!it,ref:yt,onResize:Ut},j.createElement(T,{getTriggerDOMNode:h},oi)),j.createElement(F.Provider,{value:A},j.createElement(f,{portal:O,ref:mt,prefixCls:re,popup:un,className:P()(En,ii),style:On,target:_e,onMouseEnter:ar,onMouseLeave:mr,onPointerEnter:ar,zIndex:Nt,open:it,keepDom:At,fresh:Xt,onClick:Bn,mask:ke,motion:Rt,maskMotion:kt,onVisibleChanged:pt,onPrepare:gt,forceRender:Vt,autoDestroy:H,getPopupContainer:_t,align:Jn,arrow:Fr,arrowPos:ci,ready:Et,offsetX:Tt,offsetY:Ln,offsetR:dr,offsetB:zn,onAlign:gr,stretch:hn,targetWidth:jr/Hn,targetHeight:Ir/An})))});return Z}var ze=X(G.Z)},37036:function(){"use strict"},95625:function(){"use strict"},9165:function(tn,Me,c){"use strict";c.d(Me,{t:function(){return D}});var x=c(59301),W=c(3113),S={buttonFixed:"buttonFixed___vyq30",button:"button___hxmYv",buttonWrap:"buttonWrap___uK8dl"},G=c(92310),v=c.n(G),P=Object.defineProperty,I=Object.getOwnPropertySymbols,_=Object.prototype.hasOwnProperty,se=Object.prototype.propertyIsEnumerable,p=(me,j,he)=>j in me?P(me,j,{enumerable:!0,configurable:!0,writable:!0,value:he}):me[j]=he,Ce=(me,j)=>{for(var he in j||(j={}))_.call(j,he)&&p(me,he,j[he]);if(I)for(var he of I(j))se.call(j,he)&&p(me,he,j[he]);return me};const D=({cancelText:me="\u53D6\u6D88",okText:j="\u786E\u5B9A",loading:he=!1,hasOkBtn:Be=!0,hasCancelBtn:Ye=!0,okButtonProps:Ie={},onCancel:Se=()=>{},onOk:ne=()=>{},className:Q=""})=>x.createElement("div",{className:v()(S.buttonFixed,Q)},x.createElement("div",{className:S.buttonWrap},Ye&&x.createElement(W.ZP,{size:"middle",className:`${S.button} mr20`,onClick:Se},me),Be&&x.createElement(W.ZP,Ce({size:"middle",type:"primary",className:`${S.button} mr20`,loading:he,onClick:ne},Ie),j)))},97692:function(tn,Me,c){"use strict";c.d(Me,{h:function(){return Q}});var x=c(59301),W=c(57809),S=c(78241),G=c(3113),v=c(89780),P=c.n(v),I=c(37036),_=c(95625),se=Object.defineProperty,p=Object.defineProperties,Ce=Object.getOwnPropertyDescriptors,D=Object.getOwnPropertySymbols,me=Object.prototype.hasOwnProperty,j=Object.prototype.propertyIsEnumerable,he=(C,f,b)=>f in C?se(C,f,{enumerable:!0,configurable:!0,writable:!0,value:b}):C[f]=b,Be=(C,f)=>{for(var b in f||(f={}))me.call(f,b)&&he(C,b,f[b]);if(D)for(var b of D(f))j.call(f,b)&&he(C,b,f[b]);return C},Ye=(C,f)=>p(C,Ce(f));const Ie=W.default.Option,Se={labelCol:{span:4},wrapperCol:{span:20}},ne={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"]};Me.Z=({callback:C,onCancel:f})=>{const[b,T]=(0,x.useState)("python");function J(Ae){T(ne[Ae][1])}function F(Ae){C(Ae)}return x.createElement(S.default,Ye(Be({},Se),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:F,style:{width:500}}),x.createElement(S.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},x.createElement(W.default,{getPopupContainer:Ae=>Ae.parentNode,onChange:J},Object.keys(ne).map(Ae=>x.createElement(Ie,{key:Ae,value:Ae},ne[Ae][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(G.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),x.createElement(G.ZP,{type:"ghost",onClick:f},"\u53D6\u6D88")))};function Q({value:C,onChange:f,mode:b,options:T={}}){const J=(0,x.useRef)(),[F,Ae]=(0,x.useState)();return(0,x.useEffect)(()=>{if(F){let le=function(R){const w=R.getValue();f&&f(w)};return F.on("change",le),()=>{F.off("change",le)}}},[F,f]),(0,x.useEffect)(()=>{F&&F.setOption("mode",b)},[F,b]),(0,x.useEffect)(()=>{F&&(C!==F.getValue()||C==="")&&setTimeout(()=>{F.setValue(C||"")},300)},[F,C]),(0,x.useEffect)(()=>{if(J.current&&!F){const le=P().fromTextArea(J.current,Be({mode:b,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},T));Ae(le)}},[J.current,F]),x.createElement("div",{className:"my-codemirror-container"},x.createElement("textarea",{ref:J}))}},30072:function(tn,Me,c){"use strict";c.r(Me),c.d(Me,{default:function(){return Ye}});var x=c(59301),W=c(89070),S=c(78241),G=c(92832),v=c(97692),P=c(9165),I={bg:"bg___YV4bB",wrap:"wrap___kzW1f",title:"title___qum64",path:"path___G15kO",colorBlue:"colorBlue___LDjoN",width240:"width240___QOLSj"},_=Object.defineProperty,se=Object.getOwnPropertySymbols,p=Object.prototype.hasOwnProperty,Ce=Object.prototype.propertyIsEnumerable,D=(Ie,Se,ne)=>Se in Ie?_(Ie,Se,{enumerable:!0,configurable:!0,writable:!0,value:ne}):Ie[Se]=ne,me=(Ie,Se)=>{for(var ne in Se||(Se={}))p.call(Se,ne)&&D(Ie,ne,Se[ne]);if(se)for(var ne of se(Se))Ce.call(Se,ne)&&D(Ie,ne,Se[ne]);return Ie},j=(Ie,Se)=>{var ne={};for(var Q in Ie)p.call(Ie,Q)&&Se.indexOf(Q)<0&&(ne[Q]=Ie[Q]);if(Ie!=null&&se)for(var Q of se(Ie))Se.indexOf(Q)<0&&Ce.call(Ie,Q)&&(ne[Q]=Ie[Q]);return ne},he=(Ie,Se,ne)=>new Promise((Q,C)=>{var f=J=>{try{T(ne.next(J))}catch(F){C(F)}},b=J=>{try{T(ne.throw(J))}catch(F){C(F)}},T=J=>J.done?Q(J.value):Promise.resolve(J.value).then(f,b);T((ne=ne.apply(Ie,Se)).next())});const Be=Ie=>{var Se=Ie,{shixunsDetail:ne,globalSetting:Q,loading:C,user:f,dispatch:b}=Se,T=j(Se,["shixunsDetail","globalSetting","loading","user","dispatch"]);const J=(0,W.useLocation)(),[F,Ae]=(0,x.useState)({}),le=(0,x.useRef)(),R=(0,x.useRef)(),[w]=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 B=sessionStorage.getItem("pathArray");if(B){const V=B.split(",").join("/"),fe=V.indexOf("/")===0?V.substr(1):V;$(fe)}},[]),(0,x.useEffect)(()=>{var B,V,fe,ue;R.current=(V=(B=J.pathname)==null?void 0:B.split("/"))==null?void 0:V[2],le.current=((ue=(fe=J.pathname)==null?void 0:fe.split("/"))==null?void 0:ue[3])==="repository"},[]);const Y=(...B)=>he(void 0,[...B],function*(V={}){if(yield b({type:"shixunsDetail/addRepositoryFile",payload:{id:R.current,message:V.commitMessage,content:V.codeMirror,path:`${z?`${z}/`:""}${V.path||""}`,secret_repository:le.current?void 0:!0}})){const ue=le.current?`/shixuns/${R.current}/repository${z?`/master/shixun_show/${z}`:""}`:`/shixuns/${R.current}/secret_repository`;W.history.replace(ue)}}),U=()=>{var B,V;W.history.push(`/shixuns/${R.current}/${(V=(B=J.pathname)==null?void 0:B.split("/"))==null?void 0:V[3]}${z?`/master/shixun_show/${z}`:""}`)};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:w,scrollToFirstError:!0,layout:"vertical",onFinish:Y,onValuesChange:()=>Ae(me({},w.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"},z?`${z}/`:""),x.createElement(G.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(G.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(P.t,{okButtonProps:{htmlType:"submit"},onCancel:U})))))};var Ye=(0,W.connect)(({shixunsDetail:Ie,loading:Se,globalSetting:ne,user:Q})=>({shixunsDetail:Ie,globalSetting:ne,user:Q,loading:Se.models.index}))(Be)},36785:function(tn,Me,c){"use strict";c.d(Me,{o2:function(){return v},yT:function(){return P}});var x=c(19127),W=c(33166);const S=W.i.map(I=>`${I}-inverse`),G=["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 P(I){return G.includes(I)}},79676:function(tn,Me,c){"use strict";c.d(Me,{Z:function(){return P}});var x=c(19447);function W(I,_,se,p){if(p===!1)return{adjustX:!1,adjustY:!1};const Ce=p&&typeof p=="object"?p:{},D={};switch(I){case"top":case"bottom":D.shiftX=_.dropdownArrowOffset*2+se;break;case"left":case"right":D.shiftY=_.dropdownArrowOffsetVertical*2+se;break}const me=Object.assign(Object.assign({},D),Ce);return me.shiftX||(me.adjustX=!0),me.shiftY||(me.adjustY=!0),me}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"]}},G={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 P(I){const{arrowWidth:_,autoAdjustOverflow:se,arrowPointAtCenter:p,offset:Ce,borderRadius:D,visibleFirst:me}=I,j=_/2,he={};return Object.keys(S).forEach(Be=>{const Ye=p&&G[Be]||S[Be],Ie=Object.assign(Object.assign({},Ye),{offset:[0,0]});switch(he[Be]=Ie,v.has(Be)&&(Ie.autoArrow=!1),Be){case"top":case"topLeft":case"topRight":Ie.offset[1]=-j-Ce;break;case"bottom":case"bottomLeft":case"bottomRight":Ie.offset[1]=j+Ce;break;case"left":case"leftTop":case"leftBottom":Ie.offset[0]=-j-Ce;break;case"right":case"rightTop":case"rightBottom":Ie.offset[0]=j+Ce;break}const Se=(0,x.fS)({contentRadius:D,limitVerticalRadius:!0});if(p)switch(Be){case"topLeft":case"bottomLeft":Ie.offset[0]=-Se.dropdownArrowOffset-j;break;case"topRight":case"bottomRight":Ie.offset[0]=Se.dropdownArrowOffset+j;break;case"leftTop":case"rightTop":Ie.offset[1]=-Se.dropdownArrowOffset-j;break;case"leftBottom":case"rightBottom":Ie.offset[1]=Se.dropdownArrowOffset+j;break}Ie.overflow=W(Be,Se,_,se),me&&(Ie.htmlRegion="visibleFirst")}),he}},19080:function(tn,Me,c){"use strict";c.d(Me,{F:function(){return v},Z:function(){return G}});var x=c(92310),W=c.n(x);const S=null;function G(P,I,_){return W()({[`${P}-status-success`]:I==="success",[`${P}-status-warning`]:I==="warning",[`${P}-status-error`]:I==="error",[`${P}-status-validating`]:I==="validating",[`${P}-has-feedback`]:_})}const v=(P,I)=>I||P},93891:function(tn,Me,c){"use strict";var x=c(59301),W=c(36355),S=c(64165);const G=v=>{const{componentName:P}=v,{getPrefixCls:I}=(0,x.useContext)(W.E_),_=I("empty");switch(P){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:`${_}-small`});default:return x.createElement(S.Z,null)}};Me.Z=G},64165:function(tn,Me,c){"use strict";c.d(Me,{Z:function(){return ne}});var x=c(92310),W=c.n(x),S=c(59301),G=c(36355),v=c(9763),P=c(64993),I=c(88088),se=()=>{const[,Q]=(0,I.Z)(),f=new P.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"}))))},Ce=()=>{const[,Q]=(0,I.Z)(),{colorFill:C,colorFillTertiary:f,colorFillQuaternary:b,colorBgContainer:T}=Q,{borderColor:J,shadowColor:F,contentColor:Ae}=(0,S.useMemo)(()=>({borderColor:new P.C(C).onBackground(T).toHexShortString(),shadowColor:new P.C(f).onBackground(T).toHexShortString(),contentColor:new P.C(b).onBackground(T).toHexShortString()}),[C,f,b,T]);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:F,cx:"32",cy:"33",rx:"32",ry:"7"}),S.createElement("g",{fillRule:"nonzero",stroke:J},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:Ae}))))},D=c(83116),me=c(37613);const j=Q=>{const{componentCls:C,margin:f,marginXS:b,marginXL:T,fontSize:J,lineHeight:F}=Q;return{[C]:{marginInline:b,fontSize:J,lineHeight:F,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:T,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 he=(0,D.Z)("Empty",Q=>{const{componentCls:C,controlHeightLG:f}=Q,b=(0,me.TS)(Q,{emptyImgCls:`${C}-img`,emptyImgHeight:f*2.5,emptyImgHeightMD:f,emptyImgHeightSM:f*.875});return[j(b)]}),Be=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 T=0,b=Object.getOwnPropertySymbols(Q);T<b.length;T++)C.indexOf(b[T])<0&&Object.prototype.propertyIsEnumerable.call(Q,b[T])&&(f[b[T]]=Q[b[T]]);return f};const Ye=S.createElement(se,null),Ie=S.createElement(Ce,null),Se=Q=>{var{className:C,rootClassName:f,prefixCls:b,image:T=Ye,description:J,children:F,imageStyle:Ae,style:le}=Q,R=Be(Q,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:w,direction:z,empty:$}=S.useContext(G.E_),Y=w("empty",b),[U,B]=he(Y),[V]=(0,v.Z)("Empty"),fe=typeof J!="undefined"?J:V==null?void 0:V.description,ue=typeof fe=="string"?fe:"empty";let We=null;return typeof T=="string"?We=S.createElement("img",{alt:ue,src:T}):We=T,U(S.createElement("div",Object.assign({className:W()(B,Y,$==null?void 0:$.className,{[`${Y}-normal`]:T===Ie,[`${Y}-rtl`]:z==="rtl"},C,f),style:Object.assign(Object.assign({},$==null?void 0:$.style),le)},R),S.createElement("div",{className:`${Y}-image`,style:Ae},We),fe&&S.createElement("div",{className:`${Y}-description`},fe),F&&S.createElement("div",{className:`${Y}-footer`},F)))};Se.PRESENTED_IMAGE_DEFAULT=Ye,Se.PRESENTED_IMAGE_SIMPLE=Ie;var ne=Se},78241:function(tn,Me,c){"use strict";c.d(Me,{default:function(){return xt}});var x=c(19127),W=c(92310),S=c.n(W),G=c(77900),v=c(59301),P=c(62892),I=c(32441);function _(m){const[K,ae]=v.useState(m);return v.useEffect(()=>{const d=setTimeout(()=>{ae(m)},m.length?0:10);return()=>{clearTimeout(d)}},[m]),K}var se=c(17313),p=c(29878),Ce=c(8378),D=c(37613),me=c(83116),he=m=>{const{componentCls:K}=m,ae=`${K}-show-help`,d=`${K}-show-help-item`;return{[ae]:{transition:`opacity ${m.motionDurationSlow} ${m.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[d]:{overflow:"hidden",transition:`height ${m.motionDurationSlow} ${m.motionEaseInOut},
|
|
|
opacity ${m.motionDurationSlow} ${m.motionEaseInOut},
|
|
|
transform ${m.motionDurationSlow} ${m.motionEaseInOut} !important`,[`&${d}-appear, &${d}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${d}-leave-active`]:{transform:"translateY(-5px)"}}}}};const Be=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}}),Ye=(m,K)=>{const{formItemCls:ae}=m;return{[ae]:{[`${ae}-label > label`]:{height:K},[`${ae}-control-input`]:{minHeight:K}}}},Ie=m=>{const{componentCls:K}=m;return{[m.componentCls]:Object.assign(Object.assign(Object.assign({},(0,se.Wf)(m)),Be(m)),{[`${K}-text`]:{display:"inline-block",paddingInlineEnd:m.paddingSM},"&-small":Object.assign({},Ye(m,m.controlHeightSM)),"&-large":Object.assign({},Ye(m,m.controlHeightLG))})}},Se=m=>{const{formItemCls:K,iconCls:ae,componentCls:d,rootPrefixCls:h,labelRequiredMarkColor:E,labelColor:H,labelFontSize:be,labelHeight:ee,labelColonMarginInlineStart:te,labelColonMarginInlineEnd:ve,itemMarginBottom:Le}=m;return{[K]:Object.assign(Object.assign({},(0,se.Wf)(m)),{marginBottom:Le,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
|
&-hidden.${h}-row`]:{display:"none"},"&-has-warning":{[`${K}-split`]:{color:m.colorError}},"&-has-error":{[`${K}-split`]:{color:m.colorWarning}},[`${K}-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:H,fontSize:be,[`> ${ae}`]:{fontSize:m.fontSize,verticalAlign:"top"},[`&${K}-required:not(${K}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:m.marginXXS,color:E,fontSize:m.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${d}-hide-required-mark &`]:{display:"none"}},[`${K}-optional`]:{display:"inline-block",marginInlineStart:m.marginXXS,color:m.colorTextDescription,[`${d}-hide-required-mark &`]:{display:"none"}},[`${K}-tooltip`]:{color:m.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:m.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:te,marginInlineEnd:ve},[`&${K}-no-colon::after`]:{content:'"\\a0"'}}},[`${K}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${h}-col-'"]):not([class*="' ${h}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:m.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[K]:{"&-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 ${K}-explain`]:{height:"auto",opacity:1},[`${K}-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}}})}},ne=m=>{const{componentCls:K,formItemCls:ae}=m;return{[`${K}-horizontal`]:{[`${ae}-label`]:{flexGrow:0},[`${ae}-control`]:{flex:"1 1 0",minWidth:0},[`${ae}-label[class$='-24'], ${ae}-label[class*='-24 ']`]:{[`& + ${ae}-control`]:{minWidth:"unset"}}}}},Q=m=>{const{componentCls:K,formItemCls:ae}=m;return{[`${K}-inline`]:{display:"flex",flexWrap:"wrap",[ae]:{flex:"none",marginInlineEnd:m.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${ae}-label,
|
|
|
> ${ae}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${ae}-label`]:{flex:"none"},[`${K}-text`]:{display:"inline-block"},[`${ae}-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:K,formItemCls:ae,rootPrefixCls:d}=m;return{[`${ae} ${ae}-label`]:C(m),[K]:{[ae]:{flexWrap:"wrap",[`${ae}-label, ${ae}-control`]:{[`&:not([class*=" ${d}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},b=m=>{const{componentCls:K,formItemCls:ae,rootPrefixCls:d}=m;return{[`${K}-vertical`]:{[ae]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${K}-item-control`]:{width:"100%"}}},[`${K}-vertical ${ae}-label,
|
|
|
.${d}-col-24${ae}-label,
|
|
|
.${d}-col-xl-24${ae}-label`]:C(m),[`@media (max-width: ${m.screenXSMax}px)`]:[f(m),{[K]:{[`.${d}-col-xs-24${ae}-label`]:C(m)}}],[`@media (max-width: ${m.screenSMMax}px)`]:{[K]:{[`.${d}-col-sm-24${ae}-label`]:C(m)}},[`@media (max-width: ${m.screenMDMax}px)`]:{[K]:{[`.${d}-col-md-24${ae}-label`]:C(m)}},[`@media (max-width: ${m.screenLGMax}px)`]:{[K]:{[`.${d}-col-lg-24${ae}-label`]:C(m)}}}},T=(m,K)=>(0,D.TS)(m,{formItemCls:`${m.componentCls}-item`,rootPrefixCls:K});var J=(0,me.Z)("Form",(m,K)=>{let{rootPrefixCls:ae}=K;const d=T(m,ae);return[Ie(d),Se(d),he(d),ne(d),Q(d),b(d),(0,Ce.Z)(d),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 F=[];function Ae(m,K,ae){let d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof m=="string"?m:`${K}-${d}`,error:m,errorStatus:ae}}var R=m=>{let{help:K,helpStatus:ae,errors:d=F,warnings:h=F,className:E,fieldId:H,onVisibleChanged:be}=m;const{prefixCls:ee}=v.useContext(I.Rk),te=`${ee}-item-explain`,[,ve]=J(ee),Le=(0,v.useMemo)(()=>(0,P.Z)(ee),[ee]),Ue=_(d),A=_(h),ce=v.useMemo(()=>K!=null?[Ae(K,"help",ae)]:[].concat((0,x.Z)(Ue.map((Fe,Ve)=>Ae(Fe,"error","error",Ve))),(0,x.Z)(A.map((Fe,Ve)=>Ae(Fe,"warning","warning",Ve)))),[K,ae,Ue,A]),Je={};return H&&(Je.id=`${H}_help`),v.createElement(G.default,{motionDeadline:Le.motionDeadline,motionName:`${ee}-show-help`,visible:!!ce.length,onVisibleChanged:be},Fe=>{const{className:Ve,style:Xe}=Fe;return v.createElement("div",Object.assign({},Je,{className:S()(te,Ve,E,ve),style:Xe,role:"alert"}),v.createElement(G.CSSMotionList,Object.assign({keys:ce},(0,P.Z)(ee),{motionName:`${ee}-show-help-item`,component:!1}),mt=>{const{key:pe,error:Ee,errorStatus:_e,className:dt,style:ot}=mt;return v.createElement("div",{key:pe,className:S()(dt,{[`${te}-${_e}`]:_e}),style:ot},Ee)}))})},w=c(95013),z=c(36355),$=c(1684),Y=c(52946),U=c(19716),B=c(16722);const V=["parentNode"],fe="form_item";function ue(m){return m===void 0||m===!1?[]:Array.isArray(m)?m:[m]}function We(m,K){if(!m.length)return;const ae=m.join("_");return K?`${K}_${ae}`:V.includes(ae)?`${fe}_${ae}`:ae}function Ke(m,K,ae,d,h,E){let H=d;return E!==void 0?H=E:ae.validating?H="validating":m.length?H="error":K.length?H="warning":(ae.touched||h&&ae.validated)&&(H="success"),H}function xe(m){return ue(m).join("_")}function Pe(m){const[K]=(0,w.useForm)(),ae=v.useRef({}),d=v.useMemo(()=>m!=null?m:Object.assign(Object.assign({},K),{__INTERNAL__:{itemRef:h=>E=>{const H=xe(h);E?ae.current[H]=E:delete ae.current[H]}},scrollToField:function(h){let E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const H=ue(h),be=We(H,d.__INTERNAL__.name),ee=be?document.getElementById(be):null;ee&&(0,B.Z)(ee,Object.assign({scrollMode:"if-needed",block:"nearest"},E))},getFieldInstance:h=>{const E=xe(h);return ae.current[E]}}),[m,K]);return[d]}var Re=c(28726),Ct=function(m,K){var ae={};for(var d in m)Object.prototype.hasOwnProperty.call(m,d)&&K.indexOf(d)<0&&(ae[d]=m[d]);if(m!=null&&typeof Object.getOwnPropertySymbols=="function")for(var h=0,d=Object.getOwnPropertySymbols(m);h<d.length;h++)K.indexOf(d[h])<0&&Object.prototype.propertyIsEnumerable.call(m,d[h])&&(ae[d[h]]=m[d[h]]);return ae};const $t=(m,K)=>{const ae=v.useContext($.Z),{getPrefixCls:d,direction:h,form:E}=v.useContext(z.E_),{prefixCls:H,className:be,rootClassName:ee,size:te,disabled:ve=ae,form:Le,colon:Ue,labelAlign:A,labelWrap:ce,labelCol:Je,wrapperCol:Fe,hideRequiredMark:Ve,layout:Xe="horizontal",scrollToFirstError:mt,requiredMark:pe,onFinishFailed:Ee,name:_e,style:dt,feedbackIcons:ot}=m,yt=Ct(m,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),en=(0,U.Z)(te),Mt=v.useContext(Re.Z),Bt=(0,v.useMemo)(()=>pe!==void 0?pe:E&&E.requiredMark!==void 0?E.requiredMark:!Ve,[Ve,pe,E]),Yt=Ue!=null?Ue:E==null?void 0:E.colon,Rt=d("form",H),[kt,ln]=J(Rt),on=S()(Rt,`${Rt}-${Xe}`,{[`${Rt}-hide-required-mark`]:Bt===!1,[`${Rt}-rtl`]:h==="rtl",[`${Rt}-${en}`]:en},ln,E==null?void 0:E.className,be,ee),[Qt]=Pe(Le),{__INTERNAL__:ht}=Qt;ht.name=_e;const it=(0,v.useMemo)(()=>({name:_e,labelAlign:A,labelCol:Je,labelWrap:ce,wrapperCol:Fe,vertical:Xe==="vertical",colon:Yt,requiredMark:Bt,itemRef:ht.itemRef,form:Qt,feedbackIcons:ot}),[_e,A,Je,Fe,Xe,Yt,Bt,Qt,ot]);v.useImperativeHandle(K,()=>Qt);const zt=(bn,Kt)=>{if(bn){let Jt={block:"nearest"};typeof bn=="object"&&(Jt=bn),Qt.scrollToField(Kt,Jt)}},Lt=bn=>{if(Ee==null||Ee(bn),bn.errorFields.length){const Kt=bn.errorFields[0].name;if(mt!==void 0){zt(mt,Kt);return}E&&E.scrollToFirstError!==void 0&&zt(E.scrollToFirstError,Kt)}};return kt(v.createElement($.n,{disabled:ve},v.createElement(Y.q,{size:en},v.createElement(I.RV,Object.assign({},{validateMessages:Mt}),v.createElement(I.q3.Provider,{value:it},v.createElement(w.default,Object.assign({id:_e},yt,{name:_e,onFinishFailed:Lt,form:Qt,style:Object.assign(Object.assign({},E==null?void 0:E.style),dt),className:on})))))))};var nt=v.forwardRef($t),Pt=c(41799),st=c(8654),X=c(92343),ze=c(11592);function O(m){if(typeof m=="function")return m;const K=(0,ze.Z)(m);return K.length<=1?K[0]:K}const Z=()=>{const{status:m,errors:K=[],warnings:ae=[]}=(0,v.useContext)(I.aM);return{status:m,errors:K,warnings:ae}};Z.Context=I.aM;var M=Z,k=c(16089);function q(m){const[K,ae]=v.useState(m),d=(0,v.useRef)(null),h=(0,v.useRef)([]),E=(0,v.useRef)(!1);v.useEffect(()=>(E.current=!1,()=>{E.current=!0,k.Z.cancel(d.current),d.current=null}),[]);function H(be){E.current||(d.current===null&&(h.current=[],d.current=(0,k.Z)(()=>{d.current=null,ae(ee=>{let te=ee;return h.current.forEach(ve=>{te=ve(te)}),te})})),h.current.push(be))}return[K,H]}function re(){const{itemRef:m}=v.useContext(I.q3),K=v.useRef({});function ae(d,h){const E=h&&typeof h=="object"&&h.ref,H=d.join("_");return(K.current.name!==H||K.current.originRef!==E)&&(K.current.name=H,K.current.originRef=E,K.current.ref=(0,st.sQ)(m(d),E)),K.current.ref}return ae}var ye=c(29194),ie=c(34280),De=c(2738),ge=c(27382),Ne=c(37028);const we=m=>{const{formItemCls:K}=m;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${K}-control`]:{display:"flex"}}}};var Te=(0,me.b)(["Form","item-item"],(m,K)=>{let{rootPrefixCls:ae}=K;const d=T(m,ae);return[we(d)]}),oe=m=>{const{prefixCls:K,status:ae,wrapperCol:d,children:h,errors:E,warnings:H,_internalItemRender:be,extra:ee,help:te,fieldId:ve,marginBottom:Le,onErrorVisibleChanged:Ue}=m,A=`${K}-item`,ce=v.useContext(I.q3),Je=d||ce.wrapperCol||{},Fe=S()(`${A}-control`,Je.className),Ve=v.useMemo(()=>Object.assign({},ce),[ce]);delete Ve.labelCol,delete Ve.wrapperCol;const Xe=v.createElement("div",{className:`${A}-control-input`},v.createElement("div",{className:`${A}-control-input-content`},h)),mt=v.useMemo(()=>({prefixCls:K,status:ae}),[K,ae]),pe=Le!==null||E.length||H.length?v.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},v.createElement(I.Rk.Provider,{value:mt},v.createElement(R,{fieldId:ve,errors:E,warnings:H,help:te,helpStatus:ae,className:`${A}-explain-connected`,onVisibleChanged:Ue})),!!Le&&v.createElement("div",{style:{width:0,height:Le}})):null,Ee={};ve&&(Ee.id=`${ve}_extra`);const _e=ee?v.createElement("div",Object.assign({},Ee,{className:`${A}-extra`}),ee):null,dt=be&&be.mark==="pro_table_render"&&be.render?be.render(m,{input:Xe,errorList:pe,extra:_e}):v.createElement(v.Fragment,null,Xe,pe,_e);return v.createElement(I.q3.Provider,{value:Ve},v.createElement(Ne.Z,Object.assign({},Je,{className:Fe}),dt),v.createElement(Te,{prefixCls:K}))},Qe=c(61485),Ze=c(31724),Ge=c(9763),rt=c(6848),wt=function(m,K){var ae={};for(var d in m)Object.prototype.hasOwnProperty.call(m,d)&&K.indexOf(d)<0&&(ae[d]=m[d]);if(m!=null&&typeof Object.getOwnPropertySymbols=="function")for(var h=0,d=Object.getOwnPropertySymbols(m);h<d.length;h++)K.indexOf(d[h])<0&&Object.prototype.propertyIsEnumerable.call(m,d[h])&&(ae[d[h]]=m[d[h]]);return ae};function ke(m){return m?typeof m=="object"&&!v.isValidElement(m)?m:{title:m}:null}var It=m=>{let{prefixCls:K,label:ae,htmlFor:d,labelCol:h,labelAlign:E,colon:H,required:be,requiredMark:ee,tooltip:te}=m;var ve;const[Le]=(0,Ge.Z)("Form"),{vertical:Ue,labelAlign:A,labelCol:ce,labelWrap:Je,colon:Fe}=v.useContext(I.q3);if(!ae)return null;const Ve=h||ce||{},Xe=E||A,mt=`${K}-item-label`,pe=S()(mt,Xe==="left"&&`${mt}-left`,Ve.className,{[`${mt}-wrap`]:!!Je});let Ee=ae;const _e=H===!0||Fe!==!1&&H!==!1;_e&&!Ue&&typeof ae=="string"&&ae.trim()!==""&&(Ee=ae.replace(/[:|:]\s*$/,""));const ot=ke(te);if(ot){const{icon:Bt=v.createElement(Qe.Z,null)}=ot,Yt=wt(ot,["icon"]),Rt=v.createElement(rt.Z,Object.assign({},Yt),v.cloneElement(Bt,{className:`${K}-item-tooltip`,title:""}));Ee=v.createElement(v.Fragment,null,Ee,Rt)}const yt=ee==="optional",en=typeof ee=="function";en?Ee=ee(Ee,{required:!!be}):yt&&!be&&(Ee=v.createElement(v.Fragment,null,Ee,v.createElement("span",{className:`${K}-item-optional`,title:""},(Le==null?void 0:Le.optional)||((ve=Ze.Z.Form)===null||ve===void 0?void 0:ve.optional))));const Mt=S()({[`${K}-item-required`]:be,[`${K}-item-required-mark-optional`]:yt||en,[`${K}-item-no-colon`]:!_e});return v.createElement(Ne.Z,Object.assign({},Ve,{className:pe}),v.createElement("label",{htmlFor:d,className:Mt,title:typeof ae=="string"?ae:""},Ee))},_t=c(29679),Vt=c(19248),fn=c(96512),dn=c(58617);const un={success:_t.Z,warning:fn.Z,error:Vt.Z,validating:dn.Z};function En(m){let{children:K,errors:ae,warnings:d,hasFeedback:h,validateStatus:E,prefixCls:H,meta:be,noStyle:ee}=m;const te=`${H}-item`,{feedbackIcons:ve}=v.useContext(I.q3),Le=Ke(ae,d,be,null,!!h,E),{isFormItemInput:Ue,status:A}=v.useContext(I.aM),ce=v.useMemo(()=>{var Je;let Fe;if(h){const mt=h!==!0&&h.icons||ve,pe=Le&&((Je=mt==null?void 0:mt({status:Le,errors:ae,warnings:d}))===null||Je===void 0?void 0:Je[Le]),Ee=Le&&un[Le];Fe=pe!==!1&&Ee?v.createElement("span",{className:S()(`${te}-feedback-icon`,`${te}-feedback-icon-${Le}`)},pe||v.createElement(Ee,null)):null}let Ve=!0,Xe=Le||"";return ee&&(Ve=Ue,Xe=(Le!=null?Le:A)||""),{status:Xe,errors:ae,warnings:d,hasFeedback:!!h,feedbackIcon:Fe,isFormItemInput:Ve}},[Le,h,ee,Ue,A]);return v.createElement(I.aM.Provider,{value:ce},K)}var On=function(m,K){var ae={};for(var d in m)Object.prototype.hasOwnProperty.call(m,d)&&K.indexOf(d)<0&&(ae[d]=m[d]);if(m!=null&&typeof Object.getOwnPropertySymbols=="function")for(var h=0,d=Object.getOwnPropertySymbols(m);h<d.length;h++)K.indexOf(d[h])<0&&Object.prototype.propertyIsEnumerable.call(m,d[h])&&(ae[d[h]]=m[d[h]]);return ae};function Ft(m){const{prefixCls:K,className:ae,rootClassName:d,style:h,help:E,errors:H,warnings:be,validateStatus:ee,meta:te,hasFeedback:ve,hidden:Le,children:Ue,fieldId:A,required:ce,isRequired:Je,onSubItemMetaChange:Fe}=m,Ve=On(m,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),Xe=`${K}-item`,{requiredMark:mt}=v.useContext(I.q3),pe=v.useRef(null),Ee=_(H),_e=_(be),dt=E!=null,ot=!!(dt||H.length||be.length),yt=!!pe.current&&(0,ye.Z)(pe.current),[en,Mt]=v.useState(null);(0,ie.Z)(()=>{if(ot&&pe.current){const ln=getComputedStyle(pe.current);Mt(parseInt(ln.marginBottom,10))}},[ot,yt]);const Bt=ln=>{ln||Mt(null)},Rt=function(){let ln=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const on=ln?Ee:te.errors,Qt=ln?_e:te.warnings;return Ke(on,Qt,te,"",!!ve,ee)}(),kt=S()(Xe,ae,d,{[`${Xe}-with-help`]:dt||Ee.length||_e.length,[`${Xe}-has-feedback`]:Rt&&ve,[`${Xe}-has-success`]:Rt==="success",[`${Xe}-has-warning`]:Rt==="warning",[`${Xe}-has-error`]:Rt==="error",[`${Xe}-is-validating`]:Rt==="validating",[`${Xe}-hidden`]:Le});return v.createElement("div",{className:kt,style:h,ref:pe},v.createElement(ge.Z,Object.assign({className:`${Xe}-row`},(0,De.Z)(Ve,["_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(It,Object.assign({htmlFor:A},m,{requiredMark:mt,required:ce!=null?ce:Je,prefixCls:K})),v.createElement(oe,Object.assign({},m,te,{errors:Ee,warnings:_e,prefixCls:K,status:Rt,help:E,marginBottom:en,onErrorVisibleChanged:Bt}),v.createElement(I.qI.Provider,{value:Fe},v.createElement(En,{prefixCls:K,meta:te,errors:te.errors,warnings:te.warnings,hasFeedback:ve,validateStatus:Rt},Ue)))),!!en&&v.createElement("div",{className:`${Xe}-margin-offset`,style:{marginBottom:-en}}))}const nn="__SPLIT__",Ht=null,cn=v.memo(m=>{let{children:K}=m;return K},(m,K)=>m.value===K.value&&m.update===K.update&&m.childProps.length===K.childProps.length&&m.childProps.every((ae,d)=>ae===K.childProps[d]));function Nt(m){return m!=null}function hn(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function rn(m){const{name:K,noStyle:ae,className:d,dependencies:h,prefixCls:E,shouldUpdate:H,rules:be,children:ee,required:te,label:ve,messageVariables:Le,trigger:Ue="onChange",validateTrigger:A,hidden:ce,help:Je}=m,{getPrefixCls:Fe}=v.useContext(z.E_),{name:Ve}=v.useContext(I.q3),Xe=O(ee),mt=typeof Xe=="function",pe=v.useContext(I.qI),{validateTrigger:Ee}=v.useContext(w.FieldContext),_e=A!==void 0?A:Ee,dt=Nt(K),ot=Fe("form",E),[yt,en]=J(ot),Mt=v.useContext(w.ListContext),Bt=v.useRef(),[Yt,Rt]=q({}),[kt,ln]=(0,Pt.Z)(()=>hn()),on=Kt=>{const Jt=Mt==null?void 0:Mt.getKey(Kt.name);if(ln(Kt.destroy?hn():Kt,!0),ae&&Je!==!1&&pe){let mn=Kt.name;if(Kt.destroy)mn=Bt.current||mn;else if(Jt!==void 0){const[Zt,Nn]=Jt;mn=[Zt].concat((0,x.Z)(Nn)),Bt.current=mn}pe(Kt,mn)}},Qt=(Kt,Jt)=>{Rt(mn=>{const Zt=Object.assign({},mn),Gn=[].concat((0,x.Z)(Kt.name.slice(0,-1)),(0,x.Z)(Jt)).join(nn);return Kt.destroy?delete Zt[Gn]:Zt[Gn]=Kt,Zt})},[ht,it]=v.useMemo(()=>{const Kt=(0,x.Z)(kt.errors),Jt=(0,x.Z)(kt.warnings);return Object.values(Yt).forEach(mn=>{Kt.push.apply(Kt,(0,x.Z)(mn.errors||[])),Jt.push.apply(Jt,(0,x.Z)(mn.warnings||[]))}),[Kt,Jt]},[Yt,kt.errors,kt.warnings]),zt=re();function Lt(Kt,Jt,mn){return ae&&!ce?v.createElement(En,{prefixCls:ot,hasFeedback:m.hasFeedback,validateStatus:m.validateStatus,meta:kt,errors:ht,warnings:it,noStyle:!0},Kt):v.createElement(Ft,Object.assign({key:"row"},m,{className:S()(d,en),prefixCls:ot,fieldId:Jt,isRequired:mn,errors:ht,warnings:it,meta:kt,onSubItemMetaChange:Qt}),Kt)}if(!dt&&!mt&&!h)return yt(Lt(Xe));let bn={};return typeof ve=="string"?bn.label=ve:K&&(bn.label=String(K)),Le&&(bn=Object.assign(Object.assign({},bn),Le)),yt(v.createElement(w.Field,Object.assign({},m,{messageVariables:bn,trigger:Ue,validateTrigger:_e,onMetaChange:on}),(Kt,Jt,mn)=>{const Zt=ue(K).length&&Jt?Jt.name:[],Nn=We(Zt,Ve),Gn=te!==void 0?te:!!(be&&be.some(bt=>{if(bt&&typeof bt=="object"&&bt.required&&!bt.warningOnly)return!0;if(typeof bt=="function"){const an=bt(mn);return an&&an.required&&!an.warningOnly}return!1})),At=Object.assign({},Kt);let vt=null;if(Array.isArray(Xe)&&dt)vt=Xe;else if(!(mt&&(!(H||h)||dt))){if(!(h&&!mt&&!dt))if((0,X.l$)(Xe)){const bt=Object.assign(Object.assign({},Xe.props),At);if(bt.id||(bt.id=Nn),Je||ht.length>0||it.length>0||m.extra){const qt=[];(Je||ht.length>0)&&qt.push(`${Nn}_help`),m.extra&&qt.push(`${Nn}_extra`),bt["aria-describedby"]=qt.join(" ")}ht.length>0&&(bt["aria-invalid"]="true"),Gn&&(bt["aria-required"]="true"),(0,st.Yr)(Xe)&&(bt.ref=zt(Zt,Xe)),new Set([].concat((0,x.Z)(ue(Ue)),(0,x.Z)(ue(_e)))).forEach(qt=>{bt[qt]=function(){for(var jt,yn,Rn,xn,Pn,at=arguments.length,He=new Array(at),Et=0;Et<at;Et++)He[Et]=arguments[Et];(Rn=At[qt])===null||Rn===void 0||(jt=Rn).call.apply(jt,[At].concat(He)),(Pn=(xn=Xe.props)[qt])===null||Pn===void 0||(yn=Pn).call.apply(yn,[xn].concat(He))}});const sn=[bt["aria-required"],bt["aria-invalid"],bt["aria-describedby"]];vt=v.createElement(cn,{value:At[m.valuePropName||"value"],update:Xe,childProps:sn},(0,X.Tm)(Xe,bt))}else mt&&(H||h)&&!dt?vt=Xe(mn):vt=Xe}return Lt(vt,Nn,Gn)}))}const Xt=rn;Xt.useStatus=M;var In=Xt,Bn=function(m,K){var ae={};for(var d in m)Object.prototype.hasOwnProperty.call(m,d)&&K.indexOf(d)<0&&(ae[d]=m[d]);if(m!=null&&typeof Object.getOwnPropertySymbols=="function")for(var h=0,d=Object.getOwnPropertySymbols(m);h<d.length;h++)K.indexOf(d[h])<0&&Object.prototype.propertyIsEnumerable.call(m,d[h])&&(ae[d[h]]=m[d[h]]);return ae},Vn=m=>{var{prefixCls:K,children:ae}=m,d=Bn(m,["prefixCls","children"]);const{getPrefixCls:h}=v.useContext(z.E_),E=h("form",K),H=v.useMemo(()=>({prefixCls:E,status:"error"}),[E]);return v.createElement(w.List,Object.assign({},d),(be,ee,te)=>v.createElement(I.Rk.Provider,{value:H},ae(be.map(ve=>Object.assign(Object.assign({},ve),{fieldKey:ve.key})),ee,{errors:te.errors,warnings:te.warnings})))};function pn(){const{form:m}=(0,v.useContext)(I.q3);return m}const tt=nt;tt.Item=In,tt.List=Vn,tt.ErrorList=R,tt.useForm=Pe,tt.useFormInstance=pn,tt.useWatch=w.useWatch,tt.Provider=I.RV,tt.create=()=>{};var xt=tt},9432:function(tn,Me,c){"use strict";c.d(Me,{Z:function(){return Se},n:function(){return Ye}});var x=c(19248),W=c(92310),S=c.n(W),G=c(93681),v=c(8654),P=c(59301),I=c(19080),_=c(36355),se=c(1684),p=c(19716),Ce=c(32441),D=c(33234),me=c(59412),j=c(9937);function he(ne){return!!(ne.prefix||ne.suffix||ne.allowClear)}var Be=function(ne,Q){var C={};for(var f in ne)Object.prototype.hasOwnProperty.call(ne,f)&&Q.indexOf(f)<0&&(C[f]=ne[f]);if(ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var b=0,f=Object.getOwnPropertySymbols(ne);b<f.length;b++)Q.indexOf(f[b])<0&&Object.prototype.propertyIsEnumerable.call(ne,f[b])&&(C[f[b]]=ne[f[b]]);return C};function Ye(ne,Q){if(!ne)return;ne.focus(Q);const{cursor:C}=Q||{};if(C){const f=ne.value.length;switch(C){case"start":ne.setSelectionRange(0,0);break;case"end":ne.setSelectionRange(f,f);break;default:ne.setSelectionRange(0,f);break}}}var Se=(0,P.forwardRef)((ne,Q)=>{var C;const{prefixCls:f,bordered:b=!0,status:T,size:J,disabled:F,onBlur:Ae,onFocus:le,suffix:R,allowClear:w,addonAfter:z,addonBefore:$,className:Y,style:U,styles:B,rootClassName:V,onChange:fe,classNames:ue}=ne,We=Be(ne,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:Ke,direction:xe,input:Pe}=P.useContext(_.E_),Re=Ke("input",f),Ct=(0,P.useRef)(null),[$t,ct]=(0,j.ZP)(Re),{compactSize:nt,compactItemClassnames:Pt}=(0,D.ri)(Re,xe),st=(0,p.Z)(Te=>{var $e;return($e=J!=null?J:nt)!==null&&$e!==void 0?$e:Te}),X=P.useContext(se.Z),ze=F!=null?F:X,{status:O,hasFeedback:Z,feedbackIcon:M}=(0,P.useContext)(Ce.aM),k=(0,I.F)(O,T),q=he(ne)||!!Z,re=(0,P.useRef)(q);(0,P.useEffect)(()=>{var Te;q&&re.current,re.current=q},[q]);const ye=(0,me.Z)(Ct,!0),ie=Te=>{ye(),Ae==null||Ae(Te)},De=Te=>{ye(),le==null||le(Te)},ge=Te=>{ye(),fe==null||fe(Te)},Ne=(Z||R)&&P.createElement(P.Fragment,null,R,Z&&M);let we;return typeof w=="object"&&(w!=null&&w.clearIcon)?we=w:w&&(we={clearIcon:P.createElement(x.Z,null)}),$t(P.createElement(G.default,Object.assign({ref:(0,v.sQ)(Q,Ct),prefixCls:Re,autoComplete:Pe==null?void 0:Pe.autoComplete},We,{disabled:ze,onBlur:ie,onFocus:De,style:Object.assign(Object.assign({},Pe==null?void 0:Pe.style),U),styles:Object.assign(Object.assign({},Pe==null?void 0:Pe.styles),B),suffix:Ne,allowClear:we,className:S()(Y,V,Pt,Pe==null?void 0:Pe.className),onChange:ge,addonAfter:z&&P.createElement(D.BR,null,P.createElement(Ce.Ux,{override:!0,status:!0},z)),addonBefore:$&&P.createElement(D.BR,null,P.createElement(Ce.Ux,{override:!0,status:!0},$)),classNames:Object.assign(Object.assign(Object.assign({},ue),Pe==null?void 0:Pe.classNames),{input:S()({[`${Re}-sm`]:st==="small",[`${Re}-lg`]:st==="large",[`${Re}-rtl`]:xe==="rtl",[`${Re}-borderless`]:!b},!q&&(0,I.Z)(Re,k),ue==null?void 0:ue.input,(C=Pe==null?void 0:Pe.classNames)===null||C===void 0?void 0:C.input,ct)}),classes:{affixWrapper:S()({[`${Re}-affix-wrapper-sm`]:st==="small",[`${Re}-affix-wrapper-lg`]:st==="large",[`${Re}-affix-wrapper-rtl`]:xe==="rtl",[`${Re}-affix-wrapper-borderless`]:!b},(0,I.Z)(`${Re}-affix-wrapper`,k,Z),ct),wrapper:S()({[`${Re}-group-rtl`]:xe==="rtl"},ct),group:S()({[`${Re}-group-wrapper-sm`]:st==="small",[`${Re}-group-wrapper-lg`]:st==="large",[`${Re}-group-wrapper-rtl`]:xe==="rtl",[`${Re}-group-wrapper-disabled`]:ze},(0,I.Z)(`${Re}-group-wrapper`,k,Z),ct)}})))})},1643:function(tn,Me,c){"use strict";var x=c(19248),W=c(92310),S=c.n(W),G=c(9296),v=c(59301),P=c(19080),I=c(36355),_=c(1684),se=c(19716),p=c(32441),Ce=c(9432),D=c(9937),me=function(he,Be){var Ye={};for(var Ie in he)Object.prototype.hasOwnProperty.call(he,Ie)&&Be.indexOf(Ie)<0&&(Ye[Ie]=he[Ie]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Se=0,Ie=Object.getOwnPropertySymbols(he);Se<Ie.length;Se++)Be.indexOf(Ie[Se])<0&&Object.prototype.propertyIsEnumerable.call(he,Ie[Se])&&(Ye[Ie[Se]]=he[Ie[Se]]);return Ye};const j=(0,v.forwardRef)((he,Be)=>{const{prefixCls:Ye,bordered:Ie=!0,size:Se,disabled:ne,status:Q,allowClear:C,showCount:f,classNames:b,rootClassName:T,className:J}=he,F=me(he,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:Ae,direction:le}=v.useContext(I.E_),R=(0,se.Z)(Se),w=v.useContext(_.Z),z=ne!=null?ne:w,{status:$,hasFeedback:Y,feedbackIcon:U}=v.useContext(p.aM),B=(0,P.F)($,Q),V=v.useRef(null);v.useImperativeHandle(Be,()=>{var xe;return{resizableTextArea:(xe=V.current)===null||xe===void 0?void 0:xe.resizableTextArea,focus:Pe=>{var Re,Ct;(0,Ce.n)((Ct=(Re=V.current)===null||Re===void 0?void 0:Re.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=Ae("input",Ye);let ue;typeof C=="object"&&(C!=null&&C.clearIcon)?ue=C:C&&(ue={clearIcon:v.createElement(x.Z,null)});const[We,Ke]=(0,D.ZP)(fe);return We(v.createElement(G.default,Object.assign({},F,{disabled:z,allowClear:ue,className:S()(J,T),classes:{affixWrapper:S()(`${fe}-textarea-affix-wrapper`,{[`${fe}-affix-wrapper-rtl`]:le==="rtl",[`${fe}-affix-wrapper-borderless`]:!Ie,[`${fe}-affix-wrapper-sm`]:R==="small",[`${fe}-affix-wrapper-lg`]:R==="large",[`${fe}-textarea-show-count`]:f},(0,P.Z)(`${fe}-affix-wrapper`,B),Ke)},classNames:Object.assign(Object.assign({},b),{textarea:S()({[`${fe}-borderless`]:!Ie,[`${fe}-sm`]:R==="small",[`${fe}-lg`]:R==="large"},(0,P.Z)(fe,B),Ke,b==null?void 0:b.textarea)}),prefixCls:fe,suffix:Y&&v.createElement("span",{className:`${fe}-textarea-suffix`},U),showCount:f,ref:V})))});Me.Z=j},59412:function(tn,Me,c){"use strict";c.d(Me,{Z:function(){return W}});var x=c(59301);function W(S,G){const v=(0,x.useRef)([]),P=()=>{v.current.push(setTimeout(()=>{var I,_,se,p;!((I=S.current)===null||I===void 0)&&I.input&&((_=S.current)===null||_===void 0?void 0:_.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)(()=>(G&&P(),()=>v.current.forEach(I=>{I&&clearTimeout(I)})),[]),P}},92832:function(tn,Me,c){"use strict";c.d(Me,{default:function(){return R}});var x=c(92310),W=c.n(x),S=c(59301),G=c(36355),v=c(32441),P=c(9937),_=w=>{const{getPrefixCls:z,direction:$}=(0,S.useContext)(G.E_),{prefixCls:Y,className:U}=w,B=z("input-group",Y),V=z("input"),[fe,ue]=(0,P.ZP)(V),We=W()(B,{[`${B}-lg`]:w.size==="large",[`${B}-sm`]:w.size==="small",[`${B}-compact`]:w.compact,[`${B}-rtl`]:$==="rtl"},ue,U),Ke=(0,S.useContext)(v.aM),xe=(0,S.useMemo)(()=>Object.assign(Object.assign({},Ke),{isFormItemInput:!1}),[Ke]);return fe(S.createElement("span",{className:We,style:w.style,onMouseEnter:w.onMouseEnter,onMouseLeave:w.onMouseLeave,onFocus:w.onFocus,onBlur:w.onBlur},S.createElement(v.aM.Provider,{value:xe},w.children)))},se=c(9432),p=c(73331),Ce=c(15277),D=c(2738),me=c(8654),j=c(59412),he=function(w,z){var $={};for(var Y in w)Object.prototype.hasOwnProperty.call(w,Y)&&z.indexOf(Y)<0&&($[Y]=w[Y]);if(w!=null&&typeof Object.getOwnPropertySymbols=="function")for(var U=0,Y=Object.getOwnPropertySymbols(w);U<Y.length;U++)z.indexOf(Y[U])<0&&Object.prototype.propertyIsEnumerable.call(w,Y[U])&&($[Y[U]]=w[Y[U]]);return $};const Be=w=>w?S.createElement(Ce.Z,null):S.createElement(p.Z,null),Ye={click:"onClick",hover:"onMouseOver"};var Se=S.forwardRef((w,z)=>{const{visibilityToggle:$=!0}=w,Y=typeof $=="object"&&$.visible!==void 0,[U,B]=(0,S.useState)(()=>Y?$.visible:!1),V=(0,S.useRef)(null);S.useEffect(()=>{Y&&B($.visible)},[Y,$]);const fe=(0,j.Z)(V),ue=()=>{const{disabled:ze}=w;ze||(U&&fe(),B(O=>{var Z;const M=!O;return typeof $=="object"&&((Z=$.onVisibleChange)===null||Z===void 0||Z.call($,M)),M}))},We=ze=>{const{action:O="click",iconRender:Z=Be}=w,M=Ye[O]||"",k=Z(U),q={[M]:ue,className:`${ze}-icon`,key:"passwordIcon",onMouseDown:re=>{re.preventDefault()},onMouseUp:re=>{re.preventDefault()}};return S.cloneElement(S.isValidElement(k)?k:S.createElement("span",null,k),q)},{className:Ke,prefixCls:xe,inputPrefixCls:Pe,size:Re}=w,Ct=he(w,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:$t}=S.useContext(G.E_),ct=$t("input",Pe),nt=$t("input-password",xe),Pt=$&&We(nt),st=W()(nt,Ke,{[`${nt}-${Re}`]:!!Re}),X=Object.assign(Object.assign({},(0,D.Z)(Ct,["suffix","iconRender","visibilityToggle"])),{type:U?"text":"password",className:st,prefixCls:ct,suffix:Pt});return Re&&(X.size=Re),S.createElement(se.Z,Object.assign({ref:(0,me.sQ)(z,V)},X))}),ne=c(47472),Q=c(92343),C=c(3113),f=c(19716),b=c(33234),T=function(w,z){var $={};for(var Y in w)Object.prototype.hasOwnProperty.call(w,Y)&&z.indexOf(Y)<0&&($[Y]=w[Y]);if(w!=null&&typeof Object.getOwnPropertySymbols=="function")for(var U=0,Y=Object.getOwnPropertySymbols(w);U<Y.length;U++)z.indexOf(Y[U])<0&&Object.prototype.propertyIsEnumerable.call(w,Y[U])&&($[Y[U]]=w[Y[U]]);return $},F=S.forwardRef((w,z)=>{const{prefixCls:$,inputPrefixCls:Y,className:U,size:B,suffix:V,enterButton:fe=!1,addonAfter:ue,loading:We,disabled:Ke,onSearch:xe,onChange:Pe,onCompositionStart:Re,onCompositionEnd:Ct}=w,$t=T(w,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:ct,direction:nt}=S.useContext(G.E_),Pt=S.useRef(!1),st=ct("input-search",$),X=ct("input",Y),{compactSize:ze}=(0,b.ri)(st,nt),O=(0,f.Z)(oe=>{var Qe;return(Qe=B!=null?B:ze)!==null&&Qe!==void 0?Qe:oe}),Z=S.useRef(null),M=oe=>{oe&&oe.target&&oe.type==="click"&&xe&&xe(oe.target.value,oe,{source:"clear"}),Pe&&Pe(oe)},k=oe=>{var Qe;document.activeElement===((Qe=Z.current)===null||Qe===void 0?void 0:Qe.input)&&oe.preventDefault()},q=oe=>{var Qe,Ze;xe&&xe((Ze=(Qe=Z.current)===null||Qe===void 0?void 0:Qe.input)===null||Ze===void 0?void 0:Ze.value,oe,{source:"input"})},re=oe=>{Pt.current||We||q(oe)},ye=typeof fe=="boolean"?S.createElement(ne.Z,null):null,ie=`${st}-button`;let De;const ge=fe||{},Ne=ge.type&&ge.type.__ANT_BUTTON===!0;Ne||ge.type==="button"?De=(0,Q.Tm)(ge,Object.assign({onMouseDown:k,onClick:oe=>{var Qe,Ze;(Ze=(Qe=ge==null?void 0:ge.props)===null||Qe===void 0?void 0:Qe.onClick)===null||Ze===void 0||Ze.call(Qe,oe),q(oe)},key:"enterButton"},Ne?{className:ie,size:O}:{})):De=S.createElement(C.ZP,{className:ie,type:fe?"primary":void 0,size:O,disabled:Ke,key:"enterButton",onMouseDown:k,onClick:q,loading:We,icon:ye},fe),ue&&(De=[De,(0,Q.Tm)(ue,{key:"addonAfter"})]);const we=W()(st,{[`${st}-rtl`]:nt==="rtl",[`${st}-${O}`]:!!O,[`${st}-with-button`]:!!fe},U),Te=oe=>{Pt.current=!0,Re==null||Re(oe)},$e=oe=>{Pt.current=!1,Ct==null||Ct(oe)};return S.createElement(se.Z,Object.assign({ref:(0,me.sQ)(Z,z),onPressEnter:re},$t,{size:O,onCompositionStart:Te,onCompositionEnd:$e,prefixCls:X,addonAfter:De,suffix:V,onChange:M,className:we,disabled:Ke}))}),Ae=c(1643);const le=se.Z;le.Group=_,le.Search=F,le.TextArea=Ae.Z,le.Password=Se;var R=le},9937:function(tn,Me,c){"use strict";c.d(Me,{M1:function(){return I},TM:function(){return Q},Xy:function(){return _},bi:function(){return Ce},e5:function(){return ne},ik:function(){return D},nz:function(){return v},pU:function(){return P},s7:function(){return me},x0:function(){return p}});var x=c(17313),W=c(74207),S=c(37613),G=c(83116);const v=C=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:C,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),P=C=>({borderColor:C.hoverBorderColor}),I=C=>({borderColor:C.activeBorderColor,boxShadow:C.activeShadow,outline:0}),_=C=>({color:C.colorTextDisabled,backgroundColor:C.colorBgContainerDisabled,borderColor:C.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},P((0,S.TS)(C,{hoverBorderColor:C.colorBorder})))}),se=C=>{const{paddingBlockLG:f,fontSizeLG:b,lineHeightLG:T,borderRadiusLG:J,paddingInlineLG:F}=C;return{padding:`${f}px ${F}px`,fontSize:b,lineHeight:T,borderRadius:J}},p=C=>({padding:`${C.paddingBlockSM}px ${C.paddingInlineSM}px`,borderRadius:C.borderRadiusSM}),Ce=(C,f)=>{const{componentCls:b,colorError:T,colorWarning:J,errorActiveShadow:F,warningActiveShadow:Ae,colorErrorBorderHover:le,colorWarningBorderHover:R}=C;return{[`&-status-error:not(${f}-disabled):not(${f}-borderless)${f}`]:{borderColor:T,"&:hover":{borderColor:le},"&:focus, &-focused":Object.assign({},I((0,S.TS)(C,{activeBorderColor:T,activeShadow:F}))),[`${b}-prefix, ${b}-suffix`]:{color:T}},[`&-status-warning:not(${f}-disabled):not(${f}-borderless)${f}`]:{borderColor:J,"&:hover":{borderColor:R},"&:focus, &-focused":Object.assign({},I((0,S.TS)(C,{activeBorderColor:J,activeShadow:Ae}))),[`${b}-prefix, ${b}-suffix`]:{color:J}}}},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({},P(C)),"&:focus, &-focused":Object.assign({},I(C)),"&-disabled, &[disabled]":Object.assign({},_(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"}}),me=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}}}})}},j=C=>{const{componentCls:f,controlHeightSM:b,lineWidth:T}=C,F=(b-T*2-16)/2;return{[f]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,x.Wf)(C)),D(C)),Ce(C,f)),{'&[type="color"]':{height:C.controlHeight,[`&${f}-lg`]:{height:C.controlHeightLG},[`&${f}-sm`]:{height:b,paddingTop:F,paddingBottom:F}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},he=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`}}}},Be=C=>{const{componentCls:f,inputAffixPadding:b,colorTextDescription:T,motionDurationSlow:J,colorIcon:F,colorIconHover:Ae,iconCls:le}=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({},P(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:T},"&-show-count-has-suffix":{marginInlineEnd:C.paddingXXS},"&-prefix":{marginInlineEnd:b},"&-suffix":{marginInlineStart:b}}}),he(C)),{[`${le}${f}-password-icon`]:{color:F,cursor:"pointer",transition:`all ${J}`,"&:hover":{color:Ae}}}),Ce(C,`${f}-affix-wrapper`))}},Ye=C=>{const{componentCls:f,colorError:b,colorWarning:T,borderRadiusLG:J,borderRadiusSM:F}=C;return{[`${f}-group`]:Object.assign(Object.assign(Object.assign({},(0,x.Wf)(C)),me(C)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${f}-group-addon`]:{borderRadius:J,fontSize:C.fontSizeLG}},"&-sm":{[`${f}-group-addon`]:{borderRadius:F}},"&-status-error":{[`${f}-group-addon`]:{color:b,borderColor:b}},"&-status-warning":{[`${f}-group-addon`]:{color:T,borderColor:T}},"&-disabled":{[`${f}-group-addon`]:Object.assign({},_(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}}}})}},Ie=C=>{const{componentCls:f,antCls:b}=C,T=`${f}-search`;return{[T]:{[`${f}`]:{"&:hover, &:focus":{borderColor:C.colorPrimaryHover,[`+ ${f}-group-addon ${T}-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,[`${T}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:C.borderRadius,borderEndEndRadius:C.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${T}-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}}}},[`${T}-button`]:{height:C.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${T}-button`]:{height:C.controlHeightLG},[`&-small ${T}-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}}}}},Se=C=>{const{componentCls:f,paddingLG:b}=C,T=`${f}-textarea`;return{[T]:{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${T}-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},[`${T}-suffix`]:{position:"absolute",top:0,insetInlineEnd:C.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}};function ne(C){return(0,S.TS)(C,{inputAffixPadding:C.paddingXXS})}const Q=C=>{const{controlHeight:f,fontSize:b,lineHeight:T,lineWidth:J,controlHeightSM:F,controlHeightLG:Ae,fontSizeLG:le,lineHeightLG:R,paddingSM:w,controlPaddingHorizontalSM:z,controlPaddingHorizontal:$,colorFillAlter:Y,colorPrimaryHover:U,controlOutlineWidth:B,controlOutline:V,colorErrorOutline:fe,colorWarningOutline:ue}=C;return{paddingBlock:Math.max(Math.round((f-b*T)/2*10)/10-J,3),paddingBlockSM:Math.max(Math.round((F-b*T)/2*10)/10-J,0),paddingBlockLG:Math.ceil((Ae-le*R)/2*10)/10-J,paddingInline:w-J,paddingInlineSM:z-J,paddingInlineLG:$-J,addonBg:Y,activeBorderColor:U,hoverBorderColor:U,activeShadow:`0 0 0 ${B}px ${V}`,errorActiveShadow:`0 0 0 ${B}px ${fe}`,warningActiveShadow:`0 0 0 ${B}px ${ue}`}};Me.ZP=(0,G.Z)("Input",C=>{const f=(0,S.TS)(C,ne(C));return[j(f),Se(f),Be(f),Ye(f),Ie(f),(0,W.c)(f)]},Q)},57809:function(tn,Me,c){"use strict";var x=c(92310),W=c.n(x),S=c(77861),G=c(2738),v=c(59301),P=c(53487),I=c(62892),_=c(19080),se=c(36355),p=c(1684),Ce=c(93891),D=c(19716),me=c(32441),j=c(33234),he=c(14154),Be=c(58582),Ye=c(84443),Ie=c(66339),Se=function(b,T){var J={};for(var F in b)Object.prototype.hasOwnProperty.call(b,F)&&T.indexOf(F)<0&&(J[F]=b[F]);if(b!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,F=Object.getOwnPropertySymbols(b);Ae<F.length;Ae++)T.indexOf(F[Ae])<0&&Object.prototype.propertyIsEnumerable.call(b,F[Ae])&&(J[F[Ae]]=b[F[Ae]]);return J};const ne="SECRET_COMBOBOX_MODE_DO_NOT_USE",Q=(b,T)=>{var J,{prefixCls:F,bordered:Ae=!0,className:le,rootClassName:R,getPopupContainer:w,popupClassName:z,dropdownClassName:$,listHeight:Y=256,placement:U,listItemHeight:B=24,size:V,disabled:fe,notFoundContent:ue,status:We,builtinPlacements:Ke,dropdownMatchSelectWidth:xe,popupMatchSelectWidth:Pe,direction:Re,style:Ct,allowClear:$t}=b,ct=Se(b,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:nt,getPrefixCls:Pt,renderEmpty:st,direction:X,virtual:ze,popupMatchSelectWidth:O,popupOverflow:Z,select:M}=v.useContext(se.E_),k=Pt("select",F),q=Pt(),re=Re!=null?Re:X,{compactSize:ye,compactItemClassnames:ie}=(0,j.ri)(k,re),[De,ge]=(0,he.Z)(k),Ne=v.useMemo(()=>{const{mode:cn}=ct;if(cn!=="combobox")return cn===ne?"combobox":cn},[ct.mode]),we=Ne==="multiple"||Ne==="tags",Te=(0,Ye.Z)(ct.suffixIcon,ct.showArrow),$e=(J=Pe!=null?Pe:xe)!==null&&J!==void 0?J:O,{status:oe,hasFeedback:Qe,isFormItemInput:Ze,feedbackIcon:Ge}=v.useContext(me.aM),rt=(0,_.F)(oe,We);let wt;ue!==void 0?wt=ue:Ne==="combobox"?wt=null:wt=(st==null?void 0:st("Select"))||v.createElement(Ce.Z,{componentName:"Select"});const{suffixIcon:ke,itemIcon:Ot,removeIcon:It,clearIcon:_t}=(0,Ie.Z)(Object.assign(Object.assign({},ct),{multiple:we,hasFeedback:Qe,feedbackIcon:Ge,showSuffixIcon:Te,prefixCls:k,showArrow:ct.showArrow,componentName:"Select"})),Vt=$t===!0?{clearIcon:_t}:$t,fn=(0,G.Z)(ct,["suffixIcon","itemIcon"]),dn=W()(z||$,{[`${k}-dropdown-${re}`]:re==="rtl"},R,ge),un=(0,D.Z)(cn=>{var Nt;return(Nt=V!=null?V:ye)!==null&&Nt!==void 0?Nt:cn}),En=v.useContext(p.Z),On=fe!=null?fe:En,Ft=W()({[`${k}-lg`]:un==="large",[`${k}-sm`]:un==="small",[`${k}-rtl`]:re==="rtl",[`${k}-borderless`]:!Ae,[`${k}-in-form-item`]:Ze},(0,_.Z)(k,rt,Qe),ie,M==null?void 0:M.className,le,R,ge),nn=v.useMemo(()=>U!==void 0?U:re==="rtl"?"bottomRight":"bottomLeft",[U,re]),Ht=(0,Be.Z)(Ke,Z);return De(v.createElement(S.ZP,Object.assign({ref:T,virtual:ze,showSearch:M==null?void 0:M.showSearch},fn,{style:Object.assign(Object.assign({},M==null?void 0:M.style),Ct),dropdownMatchSelectWidth:$e,builtinPlacements:Ht,transitionName:(0,I.m)(q,"slide-up",ct.transitionName),listHeight:Y,listItemHeight:B,mode:Ne,prefixCls:k,placement:nn,direction:re,suffixIcon:ke,menuItemSelectedIcon:Ot,removeIcon:It,allowClear:Vt,notFoundContent:wt,className:Ft,getPopupContainer:w||nt,dropdownClassName:dn,disabled:On})))},C=v.forwardRef(Q),f=(0,P.Z)(C);C.SECRET_COMBOBOX_MODE_DO_NOT_USE=ne,C.Option=S.Wx,C.OptGroup=S.Xo,C._InternalPanelDoNotUseOrYouWillBeFired=f,Me.default=C},14154:function(tn,Me,c){"use strict";c.d(Me,{Z:function(){return C}});var x=c(17313),W=c(74207),S=c(37613),G=c(83116),v=c(13826),P=c(92899);const I=f=>{const{optionHeight:b,optionFontSize:T,optionLineHeight:J,optionPadding:F}=f;return{position:"relative",display:"block",minHeight:b,padding:F,color:f.colorText,fontWeight:"normal",fontSize:T,lineHeight:J,boxSizing:"border-box"}};var se=f=>{const{antCls:b,componentCls:T}=f,J=`${T}-item`,F=`&${b}-slide-up-enter${b}-slide-up-enter-active`,Ae=`&${b}-slide-up-appear${b}-slide-up-appear-active`,le=`&${b}-slide-up-leave${b}-slide-up-leave-active`,R=`${T}-dropdown-placement-`;return[{[`${T}-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,[`
|
|
|
${F}${R}bottomLeft,
|
|
|
${Ae}${R}bottomLeft
|
|
|
`]:{animationName:v.fJ},[`
|
|
|
${F}${R}topLeft,
|
|
|
${Ae}${R}topLeft,
|
|
|
${F}${R}topRight,
|
|
|
${Ae}${R}topRight
|
|
|
`]:{animationName:v.Qt},[`${le}${R}bottomLeft`]:{animationName:v.Uw},[`
|
|
|
${le}${R}topLeft,
|
|
|
${le}${R}topRight
|
|
|
`]:{animationName:v.ly},"&-hidden":{display:"none"},[`${J}`]: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(${J}-option-disabled)`]:{backgroundColor:f.optionActiveBg},[`&-selected:not(${J}-option-disabled)`]:{color:f.optionSelectedColor,fontWeight:f.optionSelectedFontWeight,backgroundColor:f.optionSelectedBg,[`${J}-option-state`]:{color:f.colorPrimary}},"&-disabled":{[`&${J}-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,P.Fm)(f,"move-up"),(0,P.Fm)(f,"move-down")]};const p=2,Ce=f=>{let{controlHeightSM:b,controlHeight:T,lineWidth:J}=f;const F=(T-b)/2-J,Ae=Math.ceil(F/2);return[F,Ae]};function D(f,b){const{componentCls:T,iconCls:J}=f,F=`${T}-selection-overflow`,Ae=f.multipleSelectItemHeight,[le]=Ce(f),R=b?`${T}-${b}`:"";return{[`${T}-multiple${R}`]:{fontSize:f.fontSize,[F]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${T}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${le-p}px ${p*2}px`,borderRadius:f.borderRadius,[`${T}-show-search&`]:{cursor:"text"},[`${T}-disabled&`]:{background:f.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${p}px 0`,lineHeight:`${Ae}px`,visibility:"hidden",content:'"\\a0"'}},[`
|
|
|
&${T}-show-arrow ${T}-selector,
|
|
|
&${T}-allow-clear ${T}-selector
|
|
|
`]:{paddingInlineEnd:f.fontSizeIcon+f.controlPaddingHorizontal},[`${T}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:Ae,marginTop:p,marginBottom:p,lineHeight:`${Ae-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,[`${T}-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",[`> ${J}`]:{verticalAlign:"-0.2em"},"&:hover":{color:f.colorIconHover}})},[`${F}-item + ${F}-item`]:{[`${T}-selection-search`]:{marginInlineStart:0}},[`${T}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:f.inputPaddingHorizontalBase-le,"\n &-input,\n &-mirror\n ":{height:Ae,fontFamily:f.fontFamily,lineHeight:`${Ae}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"}},[`${T}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:f.inputPaddingHorizontalBase,insetInlineEnd:f.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${f.motionDurationSlow}`}}}}var j=f=>{const{componentCls:b}=f,T=(0,S.TS)(f,{controlHeight:f.controlHeightSM,multipleSelectItemHeight:f.controlHeightXS,borderRadius:f.borderRadiusSM,borderRadiusSM:f.borderRadiusXS}),J=(0,S.TS)(f,{fontSize:f.fontSizeLG,controlHeight:f.controlHeightLG,multipleSelectItemHeight:f.multipleItemHeightLG,borderRadius:f.borderRadiusLG,borderRadiusSM:f.borderRadius}),[,F]=Ce(f);return[D(f),D(T,"sm"),{[`${b}-multiple${b}-sm`]:{[`${b}-selection-placeholder`]:{insetInline:f.controlPaddingHorizontalSM-f.lineWidth},[`${b}-selection-search`]:{marginInlineStart:F}}},D(J,"lg")]};function he(f,b){const{componentCls:T,inputPaddingHorizontalBase:J,borderRadius:F}=f,Ae=f.controlHeight-f.lineWidth*2,le=Math.ceil(f.fontSize*1.25),R=b?`${T}-${b}`:"";return{[`${T}-single${R}`]:{fontSize:f.fontSize,[`${T}-selector`]:Object.assign(Object.assign({},(0,x.Wf)(f)),{display:"flex",borderRadius:F,[`${T}-selection-search`]:{position:"absolute",top:0,insetInlineStart:J,insetInlineEnd:J,bottom:0,"&-input":{width:"100%"}},[`
|
|
|
${T}-selection-item,
|
|
|
${T}-selection-placeholder
|
|
|
`]:{padding:0,lineHeight:`${Ae}px`,transition:`all ${f.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${Ae}px`}},[`${T}-selection-item`]:{position:"relative",userSelect:"none"},[`${T}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${T}-selection-item:after`,`${T}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
|
|
|
&${T}-show-arrow ${T}-selection-item,
|
|
|
&${T}-show-arrow ${T}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:le},[`&${T}-open ${T}-selection-item`]:{color:f.colorTextPlaceholder},[`&:not(${T}-customize-input)`]:{[`${T}-selector`]:{width:"100%",height:f.controlHeight,padding:`0 ${J}px`,[`${T}-selection-search-input`]:{height:Ae},"&:after":{lineHeight:`${Ae}px`}}},[`&${T}-customize-input`]:{[`${T}-selector`]:{"&:after":{display:"none"},[`${T}-selection-search`]:{position:"static",width:"100%"},[`${T}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${J}px`,"&:after":{display:"none"}}}}}}}function Be(f){const{componentCls:b}=f,T=f.controlPaddingHorizontalSM-f.lineWidth;return[he(f),he((0,S.TS)(f,{controlHeight:f.controlHeightSM,borderRadius:f.borderRadiusSM}),"sm"),{[`${b}-single${b}-sm`]:{[`&:not(${b}-customize-input)`]:{[`${b}-selection-search`]:{insetInlineStart:T,insetInlineEnd:T},[`${b}-selector`]:{padding:`0 ${T}px`},[`&${b}-show-arrow ${b}-selection-search`]:{insetInlineEnd:T+f.fontSize*1.5},[`
|
|
|
&${b}-show-arrow ${b}-selection-item,
|
|
|
&${b}-show-arrow ${b}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:f.fontSize*1.5}}}},he((0,S.TS)(f,{controlHeight:f.singleItemHeightLG,fontSize:f.fontSizeLG,borderRadius:f.borderRadiusLG}),"lg")]}const Ye=f=>{const{componentCls:b,selectorBg:T}=f;return{position:"relative",backgroundColor:T,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"}}}},Ie=function(f,b){let T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:J,borderHoverColor:F,outlineColor:Ae,antCls:le}=b,R=T?{[`${J}-selector`]:{borderColor:F}}:{};return{[f]:{[`&:not(${J}-disabled):not(${J}-customize-input):not(${le}-pagination-size-changer)`]:Object.assign(Object.assign({},R),{[`${J}-focused& ${J}-selector`]:{borderColor:F,boxShadow:`0 0 0 ${b.controlOutlineWidth}px ${Ae}`,outline:0},[`&:hover ${J}-selector`]:{borderColor:F}})}}},Se=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"}}}},ne=f=>{const{componentCls:b,inputPaddingHorizontalBase:T,iconCls:J}=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({},Ye(f)),Se(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:T,height:f.fontSizeIcon,marginTop:-f.fontSizeIcon/2,color:f.colorTextQuaternary,fontSize:f.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[J]:{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:T,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:T+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%"}}},ne(f),Be(f),j(f),se(f),{[`${b}-rtl`]:{direction:"rtl"}},Ie(b,(0,S.TS)(f,{borderHoverColor:f.colorPrimaryHover,outlineColor:f.controlOutline})),Ie(`${b}-status-error`,(0,S.TS)(f,{borderHoverColor:f.colorErrorHover,outlineColor:f.colorErrorOutline}),!0),Ie(`${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,G.Z)("Select",(f,b)=>{let{rootPrefixCls:T}=b;const J=(0,S.TS)(f,{rootPrefixCls:T,inputPaddingHorizontalBase:f.paddingSM-1,multipleSelectItemHeight:f.multipleItemHeight});return[Q(J)]},f=>{const{fontSize:b,lineHeight:T,controlHeight:J,controlPaddingHorizontal:F,zIndexPopupBase:Ae,colorText:le,fontWeightStrong:R,controlItemBgActive:w,controlItemBgHover:z,colorBgContainer:$,colorFillSecondary:Y,controlHeightLG:U,controlHeightSM:B,colorBgContainerDisabled:V,colorTextDisabled:fe}=f;return{zIndexPopup:Ae+50,optionSelectedColor:le,optionSelectedFontWeight:R,optionSelectedBg:w,optionActiveBg:z,optionPadding:`${(J-b*T)/2}px ${F}px`,optionFontSize:b,optionLineHeight:T,optionHeight:J,selectorBg:$,clearBg:$,singleItemHeightLG:U,multipleItemBg:Y,multipleItemBorderColor:"transparent",multipleItemHeight:B,multipleItemHeightLG:J,multipleSelectorBgDisabled:V,multipleItemColorDisabled:fe,multipleItemBorderColorDisabled:"transparent"}})},58582:function(tn,Me,c){"use strict";c.d(Me,{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,G){return S||x(G)}},84443:function(tn,Me,c){"use strict";c.d(Me,{Z:function(){return x}});function x(W,S){return S!==void 0?S:W!==null}},66339:function(tn,Me,c){"use strict";c.d(Me,{Z:function(){return _}});var x=c(40001),W=c(19248),S=c(99267),G=c(84105),v=c(58617),P=c(47472),I=c(59301);function _(se){let{suffixIcon:p,clearIcon:Ce,menuItemSelectedIcon:D,removeIcon:me,loading:j,multiple:he,hasFeedback:Be,prefixCls:Ye,showSuffixIcon:Ie,feedbackIcon:Se,showArrow:ne,componentName:Q}=se;const C=Ce!=null?Ce:I.createElement(W.Z,null),f=F=>p===null&&!Be&&!ne?null:I.createElement(I.Fragment,null,Ie!==!1&&F,Be&&Se);let b=null;if(p!==void 0)b=f(p);else if(j)b=f(I.createElement(v.Z,{spin:!0}));else{const F=`${Ye}-suffix`;b=Ae=>{let{open:le,showSearch:R}=Ae;return f(le&&R?I.createElement(P.Z,{className:F}):I.createElement(G.Z,{className:F}))}}let T=null;D!==void 0?T=D:he?T=I.createElement(x.Z,null):T=null;let J=null;return me!==void 0?J=me:J=I.createElement(S.Z,null),{clearIcon:C,suffixIcon:b,itemIcon:T,removeIcon:J}}},8378:function(tn,Me){"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`}}});Me.Z=c},92899:function(tn,Me,c){"use strict";c.d(Me,{Fm:function(){return D}});var x=c(93083),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}}),G=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}}),P=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}}),_=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}}),Ce={"move-up":{inKeyframes:se,outKeyframes:p},"move-down":{inKeyframes:S,outKeyframes:G},"move-left":{inKeyframes:v,outKeyframes:P},"move-right":{inKeyframes:I,outKeyframes:_}},D=(me,j)=>{const{antCls:he}=me,Be=`${he}-${j}`,{inKeyframes:Ye,outKeyframes:Ie}=Ce[j];return[(0,W.R)(Be,Ye,Ie,me.motionDurationMid),{[`
|
|
|
${Be}-enter,
|
|
|
${Be}-appear
|
|
|
`]:{opacity:0,animationTimingFunction:me.motionEaseOutCirc},[`${Be}-leave`]:{animationTimingFunction:me.motionEaseInOutCirc}}]}},13826:function(tn,Me,c){"use strict";c.d(Me,{Qt:function(){return v},Uw:function(){return G},fJ:function(){return S},ly:function(){return P},oN:function(){return D}});var x=c(93083),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}}),G=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}}),P=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}}),_=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}}),Ce={"slide-up":{inKeyframes:S,outKeyframes:G},"slide-down":{inKeyframes:v,outKeyframes:P},"slide-left":{inKeyframes:I,outKeyframes:_},"slide-right":{inKeyframes:se,outKeyframes:p}},D=(me,j)=>{const{antCls:he}=me,Be=`${he}-${j}`,{inKeyframes:Ye,outKeyframes:Ie}=Ce[j];return[(0,W.R)(Be,Ye,Ie,me.motionDurationMid),{[`
|
|
|
${Be}-enter,
|
|
|
${Be}-appear
|
|
|
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:me.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${Be}-leave`]:{animationTimingFunction:me.motionEaseInQuint}}]}},19447:function(tn,Me,c){"use strict";c.d(Me,{ZP:function(){return v},fS:function(){return S},qN:function(){return W}});var x=c(47585);const W=8;function S(P){const I=W,{contentRadius:_,limitVerticalRadius:se}=P,p=_>12?_+2:12;return{dropdownArrowOffset:p,dropdownArrowOffsetVertical:se?I:p}}function G(P,I){return P?I:{}}function v(P,I){const{componentCls:_,sizePopupArrow:se,borderRadiusXS:p,borderRadiusOuter:Ce,boxShadowPopoverArrow:D}=P,{colorBg:me,contentRadius:j=P.borderRadiusLG,limitVerticalRadius:he,arrowDistance:Be=0,arrowPlacement:Ye={left:!0,right:!0,top:!0,bottom:!0}}=I,{dropdownArrowOffsetVertical:Ie,dropdownArrowOffset:Se}=S({contentRadius:j,limitVerticalRadius:he});return{[_]:Object.assign(Object.assign(Object.assign(Object.assign({[`${_}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},(0,x.r)(se,p,Ce,me,D)),{"&:before":{background:me}})]},G(!!Ye.top,{[[`&-placement-top ${_}-arrow`,`&-placement-topLeft ${_}-arrow`,`&-placement-topRight ${_}-arrow`].join(",")]:{bottom:Be,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${_}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${_}-arrow`]:{left:{_skip_check_:!0,value:Se}},[`&-placement-topRight ${_}-arrow`]:{right:{_skip_check_:!0,value:Se}}})),G(!!Ye.bottom,{[[`&-placement-bottom ${_}-arrow`,`&-placement-bottomLeft ${_}-arrow`,`&-placement-bottomRight ${_}-arrow`].join(",")]:{top:Be,transform:"translateY(-100%)"},[`&-placement-bottom ${_}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${_}-arrow`]:{left:{_skip_check_:!0,value:Se}},[`&-placement-bottomRight ${_}-arrow`]:{right:{_skip_check_:!0,value:Se}}})),G(!!Ye.left,{[[`&-placement-left ${_}-arrow`,`&-placement-leftTop ${_}-arrow`,`&-placement-leftBottom ${_}-arrow`].join(",")]:{right:{_skip_check_:!0,value:Be},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${_}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${_}-arrow`]:{top:Ie},[`&-placement-leftBottom ${_}-arrow`]:{bottom:Ie}})),G(!!Ye.right,{[[`&-placement-right ${_}-arrow`,`&-placement-rightTop ${_}-arrow`,`&-placement-rightBottom ${_}-arrow`].join(",")]:{left:{_skip_check_:!0,value:Be},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${_}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${_}-arrow`]:{top:Ie},[`&-placement-rightBottom ${_}-arrow`]:{bottom:Ie}}))}}},47585:function(tn,Me,c){"use strict";c.d(Me,{r:function(){return x}});const x=(W,S,G,v,P)=>{const I=W/2,_=0,se=I,p=G*1/Math.sqrt(2),Ce=I-G*(1-1/Math.sqrt(2)),D=I-S*(1/Math.sqrt(2)),me=G*(Math.sqrt(2)-1)+S*(1/Math.sqrt(2)),j=2*I-D,he=me,Be=2*I-p,Ye=Ce,Ie=2*I-_,Se=se,ne=I*Math.sqrt(2)+G*(Math.sqrt(2)-2),Q=G*(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 ${_} ${se} A ${G} ${G} 0 0 0 ${p} ${Ce} L ${D} ${me} A ${S} ${S} 0 0 1 ${j} ${he} L ${Be} ${Ye} A ${G} ${G} 0 0 0 ${Ie} ${Se} Z')`]},content:'""'},"&::after":{content:'""',position:"absolute",width:ne,height:ne,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${S}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:P,zIndex:0,background:"transparent"}}}},33166:function(tn,Me,c){"use strict";c.d(Me,{i:function(){return x}});const x=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"]},45157:function(tn,Me,c){"use strict";c.d(Me,{Z:function(){return W}});var x=c(33166);function W(S,G){return x.i.reduce((v,P)=>{const I=S[`${P}1`],_=S[`${P}3`],se=S[`${P}6`],p=S[`${P}7`];return Object.assign(Object.assign({},v),G(P,{lightColor:I,lightBorderColor:_,darkColor:se,textColor:p}))},{})}},6848:function(tn,Me,c){"use strict";c.d(Me,{Z:function(){return Ae}});var x=c(59301),W=c(92310),S=c.n(W),G=c(55477),v=c(18929),P=c(62892),I=c(79676),_=c(92343),se=c(36355),p=c(33234),Ce=c(88088),D=c(17313),me=c(29878),j=c(19447),he=c(45157),Be=c(37613),Ye=c(83116);const Ie=le=>{const{componentCls:R,tooltipMaxWidth:w,tooltipColor:z,tooltipBg:$,tooltipBorderRadius:Y,zIndexPopup:U,controlHeight:B,boxShadowSecondary:V,paddingSM:fe,paddingXS:ue,tooltipRadiusOuter:We}=le;return[{[R]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,D.Wf)(le)),{position:"absolute",zIndex:U,display:"block",width:"max-content",maxWidth:w,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":$,[`${R}-inner`]:{minWidth:B,minHeight:B,padding:`${fe/2}px ${ue}px`,color:z,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:$,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,j.qN)}},[`${R}-content`]:{position:"relative"}}),(0,he.Z)(le,(Ke,xe)=>{let{darkColor:Pe}=xe;return{[`&${R}-${Ke}`]:{[`${R}-inner`]:{backgroundColor:Pe},[`${R}-arrow`]:{"--antd-arrow-background-color":Pe}}}})),{"&-rtl":{direction:"rtl"}})},(0,j.ZP)((0,Be.TS)(le,{borderRadiusOuter:We}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:Y,limitVerticalRadius:!0}),{[`${R}-pure`]:{position:"relative",maxWidth:"none",margin:le.sizePopupArrow}}]};var Se=(le,R)=>(0,Ye.Z)("Tooltip",z=>{if(R===!1)return[];const{borderRadius:$,colorTextLightSolid:Y,colorBgDefault:U,borderRadiusOuter:B}=z,V=(0,Be.TS)(z,{tooltipMaxWidth:250,tooltipColor:Y,tooltipBorderRadius:$,tooltipBg:U,tooltipRadiusOuter:B>4?4:B});return[Ie(V),(0,me._y)(z,"zoom-big-fast")]},z=>{let{zIndexPopupBase:$,colorBgSpotlight:Y}=z;return{zIndexPopup:$+70,colorBgDefault:Y}},{resetStyle:!1})(le),ne=c(36785);function Q(le,R){const w=(0,ne.o2)(R),z=S()({[`${le}-${R}`]:R&&w}),$={},Y={};return R&&!w&&($.background=R,Y["--antd-arrow-background-color"]=R),{className:z,overlayStyle:$,arrowStyle:Y}}var f=le=>{const{prefixCls:R,className:w,placement:z="top",title:$,color:Y,overlayInnerStyle:U}=le,{getPrefixCls:B}=x.useContext(se.E_),V=B("tooltip",R),[fe,ue]=Se(V,!0),We=Q(V,Y),Ke=We.arrowStyle,xe=Object.assign(Object.assign({},U),We.overlayStyle),Pe=S()(ue,V,`${V}-pure`,`${V}-placement-${z}`,w,We.className);return fe(x.createElement("div",{className:Pe,style:Ke},x.createElement("div",{className:`${V}-arrow`}),x.createElement(G.G,Object.assign({},le,{className:ue,prefixCls:V,overlayInnerStyle:xe}),$)))},b=function(le,R){var w={};for(var z in le)Object.prototype.hasOwnProperty.call(le,z)&&R.indexOf(z)<0&&(w[z]=le[z]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $=0,z=Object.getOwnPropertySymbols(le);$<z.length;$++)R.indexOf(z[$])<0&&Object.prototype.propertyIsEnumerable.call(le,z[$])&&(w[z[$]]=le[z[$]]);return w};const T=(le,R)=>{const w={},z=Object.assign({},le);return R.forEach($=>{le&&$ in le&&(w[$]=le[$],delete z[$])}),{picked:w,omitted:z}};function J(le,R){const w=le.type;if((w.__ANT_BUTTON===!0||le.type==="button")&&le.props.disabled||w.__ANT_SWITCH===!0&&(le.props.disabled||le.props.loading)||w.__ANT_RADIO===!0&&le.props.disabled){const{picked:z,omitted:$}=T(le.props.style,["position","left","right","top","bottom","float","display","zIndex"]),Y=Object.assign(Object.assign({display:"inline-block"},z),{cursor:"not-allowed",width:le.props.block?"100%":void 0}),U=Object.assign(Object.assign({},$),{pointerEvents:"none"}),B=(0,_.Tm)(le,{style:U,className:null});return x.createElement("span",{style:Y,className:S()(le.props.className,`${R}-disabled-compatible-wrapper`)},B)}return le}const F=x.forwardRef((le,R)=>{var w,z;const{prefixCls:$,openClassName:Y,getTooltipContainer:U,overlayClassName:B,color:V,overlayInnerStyle:fe,children:ue,afterOpenChange:We,afterVisibleChange:Ke,destroyTooltipOnHide:xe,arrow:Pe=!0,title:Re,overlay:Ct,builtinPlacements:$t,arrowPointAtCenter:ct=!1,autoAdjustOverflow:nt=!0}=le,Pt=!!Pe,[,st]=(0,Ce.Z)(),{getPopupContainer:X,getPrefixCls:ze,direction:O}=x.useContext(se.E_),Z=x.useRef(null),M=()=>{var Ft;(Ft=Z.current)===null||Ft===void 0||Ft.forceAlign()};x.useImperativeHandle(R,()=>({forceAlign:M,forcePopupAlign:()=>{M()}}));const[k,q]=(0,v.Z)(!1,{value:(w=le.open)!==null&&w!==void 0?w:le.visible,defaultValue:(z=le.defaultOpen)!==null&&z!==void 0?z:le.defaultVisible}),re=!Re&&!Ct&&Re!==0,ye=Ft=>{var nn,Ht;q(re?!1:Ft),re||((nn=le.onOpenChange)===null||nn===void 0||nn.call(le,Ft),(Ht=le.onVisibleChange)===null||Ht===void 0||Ht.call(le,Ft))},ie=x.useMemo(()=>{var Ft,nn;let Ht=ct;return typeof Pe=="object"&&(Ht=(nn=(Ft=Pe.pointAtCenter)!==null&&Ft!==void 0?Ft:Pe.arrowPointAtCenter)!==null&&nn!==void 0?nn:ct),$t||(0,I.Z)({arrowPointAtCenter:Ht,autoAdjustOverflow:nt,arrowWidth:Pt?st.sizePopupArrow:0,borderRadius:st.borderRadius,offset:st.marginXXS,visibleFirst:!0})},[ct,Pe,$t,st]),De=x.useMemo(()=>Re===0?Re:Ct||Re||"",[Ct,Re]),ge=x.createElement(p.BR,null,typeof De=="function"?De():De),{getPopupContainer:Ne,placement:we="top",mouseEnterDelay:Te=.1,mouseLeaveDelay:$e=.1,overlayStyle:oe,rootClassName:Qe}=le,Ze=b(le,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),Ge=ze("tooltip",$),rt=ze(),wt=le["data-popover-inject"];let ke=k;!("open"in le)&&!("visible"in le)&&re&&(ke=!1);const Ot=J((0,_.l$)(ue)&&!(0,_.M2)(ue)?ue:x.createElement("span",null,ue),Ge),It=Ot.props,_t=!It.className||typeof It.className=="string"?S()(It.className,Y||`${Ge}-open`):It.className,[Vt,fn]=Se(Ge,!wt),dn=Q(Ge,V),un=dn.arrowStyle,En=Object.assign(Object.assign({},fe),dn.overlayStyle),On=S()(B,{[`${Ge}-rtl`]:O==="rtl"},dn.className,Qe,fn);return Vt(x.createElement(G.Z,Object.assign({},Ze,{showArrow:Pt,placement:we,mouseEnterDelay:Te,mouseLeaveDelay:$e,prefixCls:Ge,overlayClassName:On,overlayStyle:Object.assign(Object.assign({},un),oe),getTooltipContainer:Ne||U||X,ref:Z,builtinPlacements:ie,overlay:ge,visible:ke,onVisibleChange:ye,afterVisibleChange:We!=null?We:Ke,overlayInnerStyle:En,arrowContent:x.createElement("span",{className:`${Ge}-arrow-content`}),motion:{motionName:(0,P.m)(rt,"zoom-big-fast",le.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!xe}),ke?(0,_.Tm)(Ot,{className:_t}):Ot))});F._InternalPanelDoNotUseOrYouWillBeFired=f;var Ae=F},89780:function(tn){(function(Me,c){tn.exports=c()})(this,function(){"use strict";var Me=navigator.userAgent,c=navigator.platform,x=/gecko\/\d/i.test(Me),W=/MSIE \d/.test(Me),S=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Me),G=/Edge\/(\d+)/.exec(Me),v=W||S||G,P=v&&(W?document.documentMode||6:+(G||S)[1]),I=!G&&/WebKit\//.test(Me),_=I&&/Qt\/\d+\.\d+/.test(Me),se=!G&&/Chrome\//.test(Me),p=/Opera\//.test(Me),Ce=/Apple Computer/.test(navigator.vendor),D=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Me),me=/PhantomJS/.test(Me),j=!G&&/AppleWebKit/.test(Me)&&/Mobile\/\w+/.test(Me),he=/Android/.test(Me),Be=j||he||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Me),Ye=j||/Mac/.test(c),Ie=/\bCrOS\b/.test(Me),Se=/win/i.test(c),ne=p&&Me.match(/Version\/(\d*\.\d*)/);ne&&(ne=Number(ne[1])),ne&&ne>=15&&(p=!1,I=!0);var Q=Ye&&(_||p&&(ne==null||ne<12.11)),C=x||v&&P>=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 T(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function J(e,t){return T(e).appendChild(t)}function F(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 Ae(e,t,r,n){var i=F(e,t,r,n);return i.setAttribute("role","presentation"),i}var le;document.createRange?le=function(e,t,r,n){var i=document.createRange();return i.setEnd(n||e,r),i.setStart(e,t),i}:le=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 w(){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 z(e,t){var r=e.className;f(t).test(r)||(e.className+=(r?" ":"")+t)}function $(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()};j?Y=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:v&&(Y=function(e){try{e.select()}catch(t){}});function U(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function B(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=U(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 We=50,Ke={toString:function(){return"CodeMirror.Pass"}},xe={scroll:!1},Pe={origin:"*mouse"},Re={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 ct(e){for(;$t.length<=e;)$t.push(nt($t)+" ");return $t[e]}function nt(e){return e[e.length-1]}function Pt(e,t){for(var r=[],n=0;n<e.length;n++)r[n]=t(e[n],n);return r}function st(e,t,r){for(var n=0,i=r(t);n<e.length&&r(e[n])<=i;)n++;e.splice(n,0,t)}function X(){}function ze(e,t){var r;return Object.create?r=Object.create(e):(X.prototype=e,r=new X),t&&B(t,r),r}var O=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Z(e){return/\w/.test(e)||e>"\x80"&&(e.toUpperCase()!=e.toLowerCase()||O.test(e))}function M(e,t){return t?t.source.indexOf("\\w")>-1&&Z(e)?!0:t.test(e):Z(e)}function k(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var q=/[\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 re(e){return e.charCodeAt(0)>=768&&q.test(e)}function ye(e,t,r){for(;(r<0?t>0:t<e.length)&&re(e.charAt(t));)t+=r;return t}function ie(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 De(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 ge=null;function Ne(e,t,r){var n;ge=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:ge=i),o.from==t&&(o.from!=o.to&&r!="before"?n=i:ge=i)}return n!=null?n:ge}var we=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=[],de=0;de<N;++de)L.push(r(u.charCodeAt(de)));for(var Oe=0,je=y;Oe<N;++Oe){var qe=L[Oe];qe=="m"?L[Oe]=je:je=qe}for(var lt=0,et=y;lt<N;++lt){var ft=L[lt];ft=="1"&&et=="r"?L[lt]="n":o.test(ft)&&(et=ft,ft=="r"&&(L[lt]="R"))}for(var Wt=1,Dt=L[0];Wt<N-1;++Wt){var gn=L[Wt];gn=="+"&&Dt=="1"&&L[Wt+1]=="1"?L[Wt]="1":gn==","&&Dt==L[Wt+1]&&(Dt=="1"||Dt=="n")&&(L[Wt]=Dt),Dt=gn}for(var Wn=0;Wn<N;++Wn){var cr=L[Wn];if(cr==",")L[Wn]="N";else if(cr=="%"){var Xn=void 0;for(Xn=Wn+1;Xn<N&&L[Xn]=="%";++Xn);for(var Br=Wn&&L[Wn-1]=="!"||Xn<N&&L[Xn]=="1"?"1":"N",Dr=Wn;Dr<Xn;++Dr)L[Dr]=Br;Wn=Xn-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 or=0;or<N;++or)if(i.test(L[or])){var rr=void 0;for(rr=or+1;rr<N&&i.test(L[rr]);++rr);for(var Qn=(or?L[or-1]:y)=="L",Ar=(rr<N?L[rr]:y)=="L",_i=Qn==Ar?Qn?"L":"R":y,Si=or;Si<rr;++Si)L[Si]=_i;or=rr-1}for(var Cr=[],ri,fr=0;fr<N;)if(a.test(L[fr])){var ba=fr;for(++fr;fr<N&&a.test(L[fr]);++fr);Cr.push(new s(0,ba,fr))}else{var ui=fr,Ri=Cr.length,Li=g=="rtl"?1:0;for(++fr;fr<N&&L[fr]!="L";++fr);for(var Or=ui;Or<fr;)if(l.test(L[Or])){ui<Or&&(Cr.splice(Ri,0,new s(1,ui,Or)),Ri+=Li);var ki=Or;for(++Or;Or<fr&&l.test(L[Or]);++Or);Cr.splice(Ri,0,new s(2,ki,Or)),Ri+=Li,ui=Or}else++Or;ui<fr&&Cr.splice(Ri,0,new s(1,ui,fr))}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))),nt(Cr).level==1&&(ri=u.match(/\s+$/))&&(nt(Cr).to-=ri[0].length,Cr.push(new s(0,N-ri[0].length,N)))),g=="rtl"?Cr.reverse():Cr}}();function Te(e,t){var r=e.order;return r==null&&(r=e.order=we(e.text,t)),r}var $e=[],oe=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]||$e).concat(r)}};function Qe(e,t){return e._handlers&&e._handlers[t]||$e}function Ze(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 Ge(e,t){var r=Qe(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 rt(e,t,r){return typeof t=="string"&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),Ge(e,r||t.type,e,t),Vt(t)||t.codemirrorIgnore}function wt(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 Qe(e,t).length>0}function Ot(e){e.prototype.on=function(t,r){oe(this,t,r)},e.prototype.off=function(t,r){Ze(this,t,r)}}function It(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function _t(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Vt(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function fn(e){It(e),_t(e)}function dn(e){return e.target||e.srcElement}function un(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),Ye&&e.ctrlKey&&t==1&&(t=3),t}var En=function(){if(v&&P<9)return!1;var e=F("div");return"draggable"in e||"dragDrop"in e}(),On;function Ft(e){if(On==null){var t=F("span","\u200B");J(e,F("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(On=t.offsetWidth<=1&&t.offsetHeight>2&&!(v&&P<8))}var r=On?F("span","\u200B"):F("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return r.setAttribute("cm-text",""),r}var nn;function Ht(e){if(nn!=null)return nn;var t=J(e,document.createTextNode("A\u062EA")),r=le(t,0,1).getBoundingClientRect(),n=le(t,1,2).getBoundingClientRect();return T(e),!r||r.left==r.right?!1:nn=n.right-r.right<3}var cn=`
|
|
|
|
|
|
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/)},Nt=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},hn=function(){var e=F("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),rn=null;function Xt(e){if(rn!=null)return rn;var t=J(e,F("span","x")),r=t.getBoundingClientRect(),n=le(t,0,1).getBoundingClientRect();return rn=Math.abs(r.left-n.left)>1}var In={},Bn={};function ir(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),In[e]=t}function Vn(e,t){Bn[e]=t}function pn(e){if(typeof e=="string"&&Bn.hasOwnProperty(e))e=Bn[e];else if(e&&typeof e.name=="string"&&Bn.hasOwnProperty(e.name)){var t=Bn[e.name];typeof t=="string"&&(t={name:t}),e=ze(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return pn("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return pn("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function tt(e,t){t=pn(t);var r=In[t.name];if(!r)return tt(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]={};B(t,r)}function K(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 ae(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 d(e,t,r){return e.startState?e.startState(t,r):!0}var h=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};h.prototype.eol=function(){return this.pos>=this.string.length},h.prototype.sol=function(){return this.pos==this.lineStart},h.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},h.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},h.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},h.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},h.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},h.prototype.skipToEnd=function(){this.pos=this.string.length},h.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},h.prototype.backUp=function(e){this.pos-=e},h.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)},h.prototype.indentation=function(){return V(this.string,null,this.tabSize)-(this.lineStart?V(this.string,this.lineStart,this.tabSize):0)},h.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)}},h.prototype.current=function(){return this.string.slice(this.start,this.pos)},h.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},h.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},h.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function E(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 H(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 te(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 ve(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 Le(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 Je(e,t){return e.sticky==t.sticky&&ce(e,t)==0}function Fe(e){return A(e.line,e.ch)}function Ve(e,t){return ce(e,t)<0?t:e}function Xe(e,t){return ce(e,t)<0?e:t}function mt(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function pe(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,E(e,r).text.length):Ee(t,E(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 _e(e,t){for(var r=[],n=0;n<t.length;n++)r[n]=pe(e,t[n]);return r}var dt=function(e,t){this.state=e,this.lookAhead=t},ot=function(e,t,r,n){this.state=t,this.doc=e,this.line=r,this.maxLookAhead=n||0,this.baseTokens=null,this.baseTokenPos=1};ot.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return t!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},ot.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}},ot.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},ot.fromSaved=function(e,t,r){return t instanceof dt?new ot(e,K(e.mode,t.state),r,t.lookAhead):new ot(e,K(e.mode,t),r)},ot.prototype.save=function(e){var t=e!==!1?K(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new dt(t,this.maxLookAhead):t};function yt(e,t,r,n){var i=[e.state.modeGen],o={};Qt(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,Qt(e,t.text,g.mode,r,function(L,de){for(var Oe=y;N<L;){var je=i[y];je>L&&i.splice(y,1,L,i[y+1],je),y+=2,N=Math.min(L,je)}if(de)if(g.opaque)i.splice(Oe,y-Oe,L,"overlay "+de),y=Oe+2;else for(;Oe<y;Oe+=2){var qe=i[Oe+1];i[Oe+1]=(qe?qe+" ":"")+"overlay "+de}},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 en(e,t,r){if(!t.styles||t.styles[0]!=e.state.modeGen){var n=Mt(e,te(t)),i=t.text.length>e.options.maxHighlightLength&&K(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 Mt(e,t,r){var n=e.doc,i=e.display;if(!n.mode.startState)return new ot(n,!0,t);var o=ht(e,t,r),a=o>n.first&&E(n,o-1).stateAfter,l=a?ot.fromSaved(n,a,o):new ot(n,d(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 h(t,e.options.tabSize,r);for(o.start=o.pos=n||0,t==""&&Yt(i,r.state);!o.eol();)Rt(i,o,r.state),o.start=o.pos}function Yt(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var r=ae(e,t);if(r.mode.blankLine)return r.mode.blankLine(r.state)}}function Rt(e,t,r,n){for(var i=0;i<10;i++){n&&(n[0]=ae(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 kt=function(e,t,r){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=r};function ln(e,t,r,n){var i=e.doc,o=i.mode,a;t=pe(i,t);var l=E(i,t.line),s=Mt(e,t.line,r),u=new h(l.text,e.options.tabSize,s),g;for(n&&(g=[]);(n||u.pos<t.ch)&&!u.eol();)u.start=u.pos,a=Rt(o,u,s.state),n&&g.push(new kt(u,a,K(i.mode,s.state)));return n?g:new kt(u,a,s.state)}function on(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 Qt(e,t,r,n,i,o,a){var l=r.flattenSpans;l==null&&(l=e.options.flattenSpans);var s=0,u=null,g=new h(t,e.options.tabSize,n),y,N=e.options.addModeClass&&[null];for(t==""&&on(Yt(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=on(Rt(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 de=Math.min(g.pos,s+5e3);i(de,u),s=de}}function ht(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=E(o,l-1),u=s.stateAfter;if(u&&(!r||l+(u instanceof dt?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 it(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=E(e,n).stateAfter;if(i&&(!(i instanceof dt)||n+i.lookAhead<t)){r=n+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,r)}}var zt=!1,Lt=!1;function bn(){zt=!0}function Kt(){Lt=!0}function Jt(e,t,r){this.marker=e,this.from=t,this.to=r}function mn(e,t){if(e)for(var r=0;r<e.length;++r){var n=e[r];if(n.marker==t)return n}}function Zt(e,t){for(var r,n=0;n<e.length;++n)e[n]!=t&&(r||(r=[])).push(e[n]);return r}function Nn(e,t){e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],t.marker.attachLine(e)}function Gn(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 Jt(a,o.from,s?null:o.to))}}return n}function At(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 Jt(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=Le(e,t.from.line)&&E(e,t.from.line).markedSpans,n=Le(e,t.to.line)&&E(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=Gn(r,i,a),s=At(n,o,a),u=t.text.length==1,g=nt(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=mn(s,N.marker);L?u&&(N.to=L.to==null?null:L.to+g):N.to=i}}if(s)for(var de=0;de<s.length;++de){var Oe=s[de];if(Oe.to!=null&&(Oe.to+=g),Oe.from==null){var je=mn(l,Oe.marker);je||(Oe.from=g,u&&(l||(l=[])).push(Oe))}else Oe.from+=g,u&&(l||(l=[])).push(Oe)}l&&(l=bt(l)),s&&s!=l&&(s=bt(s));var qe=[l];if(!u){var lt=t.text.length-2,et;if(lt>0&&l)for(var ft=0;ft<l.length;++ft)l[ft].to==null&&(et||(et=[])).push(new Jt(l[ft].marker,null,null));for(var Wt=0;Wt<lt;++Wt)qe.push(et);qe.push(s)}return qe}function bt(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 an(e,t,r){var n=null;if(e.iter(t.line,r.line+1,function(L){if(L.markedSpans)for(var de=0;de<L.markedSpans.length;++de){var Oe=L.markedSpans[de].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 sn(e){var t=e.markedSpans;if(t){for(var r=0;r<t.length;++r)t[r].marker.detachLine(e);e.markedSpans=null}}function qt(e,t){if(t){for(var r=0;r<t.length;++r)t[r].marker.attachLine(e);e.markedSpans=t}}function jt(e){return e.inclusiveLeft?-1:0}function yn(e){return e.inclusiveRight?1:0}function Rn(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)||jt(e)-jt(t);if(o)return-o;var a=ce(n.to,i.to)||yn(e)-yn(t);return a||t.id-e.id}function xn(e,t){var r=Lt&&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||Rn(n,i.marker)<0)&&(n=i.marker);return n}function Pn(e){return xn(e,!0)}function at(e){return xn(e,!1)}function He(e,t){var r=Lt&&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||Rn(n,o.marker)<0)&&(n=o.marker)}return n}function Et(e,t,r,n,i){var o=E(e,t),a=Lt&&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)||jt(s.marker)-jt(i),y=ce(u.to,n)||yn(s.marker)-yn(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 Tt(e){for(var t;t=Pn(e);)e=t.find(-1,!0).line;return e}function Ln(e){for(var t;t=at(e);)e=t.find(1,!0).line;return e}function dr(e){for(var t,r;t=at(e);)e=t.find(1,!0).line,(r||(r=[])).push(e);return r}function zn(e,t){var r=E(e,t),n=Tt(r);return r==n?t:te(n)}function Yn(e,t){if(t>e.lastLine())return t;var r=E(e,t),n;if(!jn(e,r))return t;for(;n=at(r);)r=n.find(1,!0).line;return te(r)+1}function jn(e,t){var r=Lt&&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&&Hn(e,t,n))return!0}}}function Hn(e,t,r){if(r.to==null){var n=r.marker.find(1,!0);return Hn(e,n.line,mn(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)&&Hn(e,t,i))return!0}function An(e){e=Tt(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 Jn(e){if(e.height==0)return 0;for(var t=e.text.length,r,n=e;r=Pn(n);){var i=r.find(0,!0);n=i.from.line,t+=i.from.ch-i.to.ch}for(n=e;r=at(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 Zn(e){var t=e.display,r=e.doc;t.maxLine=E(r,r.first),t.maxLineLength=Jn(t.maxLine),t.maxLineChanged=!0,r.iter(function(n){var i=Jn(n);i>t.maxLineLength&&(t.maxLineLength=i,t.maxLine=n)})}var _n=function(e,t,r){this.text=e,qt(this,t),this.height=r?r(this):1};_n.prototype.lineNo=function(){return te(this)},Ot(_n);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),sn(e),qt(e,r);var i=n?n(e):1;i!=e.height&&ee(e,i)}function Mr(e){e.parent=null,sn(e)}var vr={},Hr={};function tr(e,t){if(!e||/^\s*$/.test(e))return null;var r=t.addModeClass?Hr:vr;return r[e]||(r[e]=e.replace(/\S+/g,"cm-$&"))}function gr(e,t){var r=Ae("span",null,null,I?"padding-right: .1px":null),n={pre:Ae("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,Ht(e.display.measure)&&(a=Te(o,e.doc.direction))&&(n.addToken=Ur(n.addToken,a)),n.map=[];var l=t!=e.display.externalMeasured&&te(o);ei(o,n,en(e,o,l)),o.styleClasses&&(o.styleClasses.bgClass&&(n.bgClass=$(o.styleClasses.bgClass,n.bgClass||"")),o.styleClasses.textClass&&(n.textClass=$(o.styleClasses.textClass,n.textClass||""))),n.map.length==0&&n.map.push(0,0,n.content.appendChild(Ft(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 Ge(e,"renderLine",e,t.line,n.pre),n.pre.className&&(n.textClass=$(n.pre.className,n.textClass||"")),n}function pr(e){var t=F("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&&P<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 de=document.createTextNode(l.slice(y,y+L));v&&P<9?g.appendChild(F("span",[de])):g.appendChild(de),e.map.push(e.pos,e.pos+L,de),e.col+=L,e.pos+=L}if(!N)break;y+=L+1;var Oe=void 0;if(N[0]==" "){var je=e.cm.options.tabSize,qe=je-e.col%je;Oe=g.appendChild(F("span",ct(qe),"cm-tab")),Oe.setAttribute("role","presentation"),Oe.setAttribute("cm-text"," "),e.col+=qe}else N[0]=="\r"||N[0]==`
|
|
|
`?(Oe=g.appendChild(F("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&&P<9?g.appendChild(F("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 lt=r||"";n&&(lt+=n),i&&(lt+=i);var et=F("span",[g],lt,o);if(a)for(var ft in a)a.hasOwnProperty(ft)&&ft!="style"&&ft!="class"&&et.setAttribute(ft,a[ft]);return e.content.appendChild(et)}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 Ur(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,de,Oe,je,qe,lt;;){if(L==s){de=Oe=je=N="",lt=null,qe=null,L=1/0;for(var et=[],ft=void 0,Wt=0;Wt<n.length;++Wt){var Dt=n[Wt],gn=Dt.marker;if(gn.type=="bookmark"&&Dt.from==s&&gn.widgetNode)et.push(gn);else if(Dt.from<=s&&(Dt.to==null||Dt.to>s||gn.collapsed&&Dt.to==s&&Dt.from==s)){if(Dt.to!=null&&Dt.to!=s&&L>Dt.to&&(L=Dt.to,Oe=""),gn.className&&(de+=" "+gn.className),gn.css&&(N=(N?N+";":"")+gn.css),gn.startStyle&&Dt.from==s&&(je+=" "+gn.startStyle),gn.endStyle&&Dt.to==L&&(ft||(ft=[])).push(gn.endStyle,Dt.to),gn.title&&((lt||(lt={})).title=gn.title),gn.attributes)for(var Wn in gn.attributes)(lt||(lt={}))[Wn]=gn.attributes[Wn];gn.collapsed&&(!qe||Rn(qe.marker,gn)<0)&&(qe=Dt)}else Dt.from>s&&L>Dt.from&&(L=Dt.from)}if(ft)for(var cr=0;cr<ft.length;cr+=2)ft[cr+1]==L&&(Oe+=" "+ft[cr]);if(!qe||qe.from==s)for(var Xn=0;Xn<et.length;++Xn)jr(t,0,et[Xn]);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 Br=Math.min(l,L);;){if(g){var Dr=s+g.length;if(!qe){var nr=Dr>Br?g.slice(0,Br-s):g;t.addToken(t,nr,y?y+de:de,je,s+nr.length==L?Oe:"",N,lt)}if(Dr>=Br){g=g.slice(Br-s),s=Br;break}s=Dr,je=""}g=i.slice(o,o=r[u++]),y=tr(r[u++],t.cm.options)}}}function ti(e,t,r){this.line=t,this.rest=dr(t),this.size=this.rest?te(nt(this.rest))-r+1:1,this.node=this.text=null,this.hidden=jn(e,t)}function $r(e,t,r){for(var n=[],i,o=t;o<r;o=i){var a=new ti(e.doc,E(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 Ut(e,t){var r=e.ownsGroup;if(r)try{St(r)}finally{Ir=null,t(r)}}var pt=null;function gt(e,t){var r=Qe(e,t);if(r.length){var n=Array.prototype.slice.call(arguments,2),i;Ir?i=Ir.delayedCallbacks:pt?i=pt:(i=pt=[],setTimeout(Sn,0));for(var o=function(l){i.push(function(){return r[l].apply(null,n)})},a=0;a<r.length;++a)o(a)}}function Sn(){var e=pt;pt=null;for(var t=0;t<e.length;++t)e[t]()}function wn(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 qn(e){return e.node==e.text&&(e.node=F("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),v&&P<8&&(e.node.style.zIndex=2)),e.node}function ar(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=qn(t);t.background=n.insertBefore(F("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){ar(e,t),t.line.wrapClass?qn(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=qn(t);t.gutterBackground=F("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=qn(t),l=t.gutter=F("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(F("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(F("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(ut(e,t.line,t,r,!0),t.rest)for(var n=0;n<t.rest.length;n++)ut(e,t.rest[n],t,r,!1)}function ut(e,t,r,n,i){if(t.widgets)for(var o=qn(r),a=0,l=t.widgets;a<l.length;++a){var s=l[a],u=F("div",[s.node],"CodeMirror-linewidget"+(s.className?" "+s.className:""));s.handleMouseEvents||u.setAttribute("cm-ignore-events","true"),Gt(s,u,r,n),e.display.input.setUneditable(u),i&&s.above?o.insertBefore(u,r.gutter||r.text):o.appendChild(u),gt(s,"redraw")}}function Gt(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 Mn(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;"),J(t.display.measure,F("div",[e.node],null,r))}return e.height=e.node.parentNode.offsetHeight}function Dn(e,t){for(var r=dn(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 Fn(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=J(e.measure,F("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 We-e.display.nativeBarWidth}function Lr(e){return e.display.scroller.clientWidth-Rr(e)-e.display.barWidth}function Ui(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(te(e.rest[i])>r)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}function jo(e,t){t=Tt(t);var r=te(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,J(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=te(t),n=Xi(e,r);n&&!n.text?n=null:n&&n.changes&&(wn(e,n,r,Uo(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=Cn(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 Cn(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&&re(t.line.text.charAt(i.coverStart+a));)--a;for(;i.coverStart+l<i.coverEnd&&re(t.line.text.charAt(i.coverStart+l));)++l;if(v&&P<9&&a==0&&l==i.coverEnd-i.coverStart?u=o.parentNode.getBoundingClientRect():u=Qi(le(o,a,l).getClientRects(),n),u.left||u.right||a==0)break;l=a,a=a-1,s="right"}v&&P<11&&(u=vn(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&&P<9&&!a&&(!u||!u.left&&!u.right)){var N=o.parentNode.getClientRects()[0];N?u={left:N.left,right:N.left+Ti(e.display),top:N.top,bottom:N.bottom}:u=Co}for(var L=u.top-t.rect.top,de=u.bottom-t.rect.top,Oe=(L+de)/2,je=t.view.measure.heights,qe=0;qe<je.length-1&&!(Oe<je[qe]);qe++);var lt=qe?je[qe-1]:0,et=je[qe],ft={left:(s=="right"?u.right:u.left)-t.rect.left,right:(s=="left"?u.left:u.right)-t.rect.left,top:lt,bottom:et};return!u.left&&!u.right&&(ft.bogus=!0),e.options.singleCursorHeightPerLine||(ft.rtop=L,ft.rbottom=de),ft}function vn(e,t){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Xt(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 lr(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,T(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)lr(e.display.view[t])}function Kn(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&&he?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function zr(){return se&&he?-(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+=Mn(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=An(t);if(n=="local"?a+=Fn(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=E(e.doc,t.line)),Kr(e,n,Gi(e,n,t.ch,i),r)}function Zr(e,t,r,n,i,o){n=n||E(e.doc,t.line),i||(i=di(e,n));function a(de,Oe){var je=Vr(e,i,de,Oe?"right":"left",o);return Oe?je.left=je.right:je.right=je.left,Kr(e,n,je,r)}var l=Te(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(de,Oe,je){var qe=l[Oe],lt=qe.level==1;return a(je?de-1:de,lt!=je)}var y=Ne(l,s,u),N=ge,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=pe(e.doc,t),e.options.lineWrapping||(r=Ti(e.display)*t.ch);var n=E(e.doc,t.line),i=An(n)+Fn(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 _o(e,t,r){var n=e.doc;if(r+=e.display.viewOffset,r<0)return Ko(n.first,0,null,-1,-1);var i=ve(n,r),o=n.first+n.size-1;if(i>o)return Ko(n.first+n.size-1,E(n,o).text.length,null,1,1);t<0&&(t=0);for(var a=E(n,i);;){var l=Hl(e,a,i,t,r),s=He(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=E(n,i=u.line)}}function xa(e,t,r,n){n-=ai(t);var i=t.text.length,o=ie(function(a){return Vr(e,r,a-1).bottom<=n},i,0);return i=ie(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 ko(e,t,r,n){return e.bottom<=r?!1:e.top>r?!0:(n?e.left:e.right)>t}function Hl(e,t,r,n,i){i-=An(t);var o=di(e,t),a=ai(t),l=0,s=t.text.length,u=!0,g=Te(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,de=ie(function(Wt){var Dt=Vr(e,o,Wt);return Dt.top+=a,Dt.bottom+=a,ko(Dt,n,i,!1)?(Dt.top<=i&&Dt.left<=n&&(N=Wt,L=Dt),!0):!1},l,s),Oe,je,qe=!1;if(L){var lt=n-L.left<L.right-n,et=lt==u;de=N+(et?0:1),je=et?"after":"before",Oe=lt?L.left:L.right}else{!u&&(de==s||de==l)&&de++,je=de==0?"after":de==t.text.length?"before":Vr(e,o,de-(u?1:0)).bottom+a<=i==u?"after":"before";var ft=Zr(e,A(r,de,je),"line",t,o);Oe=ft.left,qe=i<ft.top?-1:i>=ft.bottom?1:0}return de=ye(t.text,de,1),Ko(r,de,je,qe,n-Oe)}function jl(e,t,r,n,i,o,a){var l=ie(function(y){var N=i[y],L=N.level!=1;return ko(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);ko(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 de=L.level!=1,Oe=Vr(e,n,de?Math.min(u,L.to)-1:Math.max(s,L.from)).right,je=Oe<o?o-Oe+1e9:Oe-o;(!g||y>je)&&(g=L,y=je)}}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 Pi(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(Ci==null){Ci=F("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)Ci.appendChild(document.createTextNode("x")),Ci.appendChild(F("br"));Ci.appendChild(document.createTextNode("x"))}J(e.measure,Ci);var r=Ci.offsetHeight/50;return r>3&&(e.cachedTextHeight=r),T(e.measure),r||1}function Ti(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var t=F("span","xxxxxxxxxx"),r=F("pre",[t],"CodeMirror-line-like");J(e.measure,r);var n=t.getBoundingClientRect(),i=(n.right-n.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function Uo(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=Pi(e.display),r=e.options.lineWrapping,n=r&&Math.max(5,e.display.scroller.clientWidth/Ti(e.display)-3);return function(i){if(jn(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&&dn(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=_o(e,o,a),u;if(n&&s.xRel>0&&(u=E(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)/Ti(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 Pr(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)Lt&&zn(e.doc,t)<i.viewTo&&vi(e);else if(r<=i.viewFrom)Lt&&Yn(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(!Lt||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(;zn(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 _l(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||kl(e,l,o)}}return n}function Ia(e,t,r){var n=Zr(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),i=r.appendChild(F("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(F("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 kl(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(et,ft,Wt,Dt){ft<0&&(ft=0),ft=Math.round(ft),Dt=Math.round(Dt),o.appendChild(F("div",null,"CodeMirror-selected","position: absolute; left: "+et+`px;
|
|
|
top: `+ft+"px; width: "+(Wt==null?s-et:Wt)+`px;
|
|
|
height: `+(Dt-ft)+"px"))}function y(et,ft,Wt){var Dt=E(i,et),gn=Dt.text.length,Wn,cr;function Xn(nr,Nr){return Gr(e,A(et,nr),"div",Dt,Nr)}function Br(nr,Nr,hr){var or=wa(e,Dt,null,nr),rr=Nr=="ltr"==(hr=="after")?"left":"right",Qn=hr=="after"?or.begin:or.end-(/\s/.test(Dt.text.charAt(or.end-1))?2:1);return Xn(Qn,rr)[rr]}var Dr=Te(Dt,i.direction);return De(Dr,ft||0,Wt==null?gn:Wt,function(nr,Nr,hr,or){var rr=hr=="ltr",Qn=Xn(nr,rr?"left":"right"),Ar=Xn(Nr-1,rr?"right":"left"),_i=ft==null&&nr==0,Si=Wt==null&&Nr==gn,Cr=or==0,ri=!Dr||or==Dr.length-1;if(Ar.top-Qn.top<=3){var fr=(u?_i:Si)&&Cr,ba=(u?Si:_i)&&ri,ui=fr?l:(rr?Qn:Ar).left,Ri=ba?s:(rr?Ar:Qn).right;g(ui,Qn.top,Ri-ui,Qn.bottom)}else{var Li,Or,ki,Sa;rr?(Li=u&&_i&&Cr?l:Qn.left,Or=u?s:Br(nr,hr,"before"),ki=u?l:Br(Nr,hr,"after"),Sa=u&&Si&&ri?s:Ar.right):(Li=u?Br(nr,hr,"before"):l,Or=!u&&_i&&Cr?s:Qn.right,ki=!u&&Si&&ri?l:Ar.left,Sa=u?Br(Nr,hr,"after"):s),g(Li,Qn.top,Or-Li,Qn.bottom),Qn.bottom<Ar.top&&g(l,Qn.bottom,null,Ar.top),g(ki,Ar.top,Sa-ki,Ar.bottom)}(!Wn||wo(Qn,Wn)<0)&&(Wn=Qn),wo(Ar,Wn)<0&&(Wn=Ar),(!cr||wo(Qn,cr)<0)&&(cr=Qn),wo(Ar,cr)<0&&(cr=Ar)}),{start:Wn,end:cr}}var N=t.from(),L=t.to();if(N.line==L.line)y(N.line,N.ch,L.ch);else{var de=E(i,N.line),Oe=E(i,L.line),je=Tt(de)==Tt(Oe),qe=y(N.line,N.ch,je?de.text.length+1:null).end,lt=y(L.line,je?0:null,L.ch).start;je&&(qe.top<lt.top-2?(g(qe.right,qe.top,null,qe.bottom),g(l,lt.top,lt.left,lt.bottom)):g(qe.right,qe.top,lt.left-qe.right,qe.bottom)),qe.bottom<lt.top&&g(l,qe.bottom,null,lt.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||(Ge(e,"focus",e,t),e.state.focused=!0,z(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&&(Ge(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&&P<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),Pa(i.line),i.rest))for(var y=0;y<i.rest.length;y++)Pa(i.rest[y]);if(l>e.display.sizerWidth){var N=Math.ceil(l/Ti(e.display));N>e.display.maxLineLength&&(e.display.maxLineLength=N,e.display.maxLine=i.line,e.display.maxLineChanged=!0)}}}}function Pa(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-Fn(e));var i=r&&r.bottom!=null?r.bottom:n+e.wrapper.clientHeight,o=ve(t,n),a=ve(t,i);if(r&&r.ensure){var l=r.ensure.from.line,s=r.ensure.to.line;l<o?(o=l,a=ve(t,An(E(t,l))+e.wrapper.clientHeight)):Math.min(s,t.lastLine())>=a&&(o=ve(t,An(E(t,s))-e.wrapper.clientHeight),a=s)}return{from:o,to:Math.max(a,o+1)}}function Ul(e,t){if(!rt(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&&!me){var o=F("div","\u200B",null,`position: absolute;
|
|
|
top: `+(t.top-r.viewOffset-Fn(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=Pi(e.display);t.top<0&&(t.top=0);var i=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:r.scroller.scrollTop,o=Ui(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,de=t.right-t.left>L;return de&&(t.right=t.left+L),t.left<10?a.scrollLeft=0:t.left<N?a.scrollLeft=Math.max(0,t.left+y-(de?0:10)):t.right>L+N-3&&(a.scrollLeft=t.right+(de?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);Ta(e,r,n,t.margin)}}function Ta(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=F("div",[F("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=F("div",[F("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");n.tabIndex=i.tabIndex=-1,e(n),e(i),oe(n,"scroll",function(){n.clientHeight&&t(n.scrollTop,"vertical")}),oe(i,"scroll",function(){i.clientWidth&&t(i.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,v&&P<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=Ye&&!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),oe(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&&z(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&&Ut(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&&Zn(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==w();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,pe(n,e.scrollToPos.from),pe(n,e.scrollToPos.to),e.scrollToPos.margin);Ul(t,i)}var o=e.maybeHiddenMarkers,a=e.maybeUnhiddenMarkers;if(o)for(var l=0;l<o.length;++l)o[l].lines.length||Ge(o[l],"hide");if(a)for(var s=0;s<a.length;++s)a[s].lines.length&&Ge(a[s],"unhide");r.wrapper.offsetHeight&&(n.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&Ge(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 sr(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 ur(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,U(rs,e))}function rs(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var r=+new Date+e.options.workTime,n=Mt(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?K(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=Uo(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++)Ge.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=w();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==w())&&(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=Uo(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)),Lt&&(o=zn(e.doc,o),a=Yn(e.doc,a));var l=o!=r.viewFrom||a!=r.viewTo||r.lastWrapHeight!=t.wrapperHeight||r.lastWrapWidth!=t.wrapperWidth;_l(e,o,a),r.viewOffset=An(E(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),T(r.cursorDiv),T(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)-Ui(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(de){var Oe=de.nextSibling;return I&&Ye&&e.display.currentWheelTarget==de?de.style.display="none":de.parentNode.removeChild(de),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),wn(e,y,u,r)),L&&(T(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(F("div",[F("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;T(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(F("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),Pr(e),za(e)}function ss(e,t,r,n){var i=this;this.input=r,i.scrollbarFiller=F("div",null,"CodeMirror-scrollbar-filler"),i.scrollbarFiller.setAttribute("cm-not-content","true"),i.gutterFiller=F("div",null,"CodeMirror-gutter-filler"),i.gutterFiller.setAttribute("cm-not-content","true"),i.lineDiv=Ae("div",null,"CodeMirror-code"),i.selectionDiv=F("div",null,null,"position: relative; z-index: 1"),i.cursorDiv=F("div",null,"CodeMirror-cursors"),i.measure=F("div",null,"CodeMirror-measure"),i.lineMeasure=F("div",null,"CodeMirror-measure"),i.lineSpace=Ae("div",[i.measure,i.lineMeasure,i.selectionDiv,i.cursorDiv,i.lineDiv],null,"position: relative; outline: none");var o=Ae("div",[i.lineSpace],"CodeMirror-lines");i.mover=F("div",[o],null,"position: relative"),i.sizer=F("div",[i.mover],"CodeMirror-sizer"),i.sizerWidth=null,i.heightForcer=F("div",null,null,"position: absolute; height: "+We+"px; width: 1px;"),i.gutters=F("div",null,"CodeMirror-gutters"),i.lineGutter=null,i.scroller=F("div",[i.sizer,i.heightForcer,i.gutters],"CodeMirror-scroll"),i.scroller.setAttribute("tabIndex","-1"),i.wrapper=F("div",[i.scrollbarFiller,i.gutterFiller,i.scroller],"CodeMirror"),v&&P<8&&(i.gutters.style.zIndex=-1,i.scroller.style.paddingRight=0),!I&&!(x&&Be)&&(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,_r=null;v?_r=-.53:x?_r=15:se?_r=-.7:Ce&&(_r=-1/3);function Ba(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=Ba(e);return t.x*=_r,t.y*=_r,t}function Ha(e,t){var r=Ba(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&&Ye&&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&&_r!=null){i&&s&&eo(e,Math.max(0,a.scrollTop+i*_r)),Ei(e,Math.max(0,a.scrollLeft+n*_r)),(!i||i&&s)&&It(t),o.wheelStartX=null;return}if(i&&_r!=null){var N=i*_r,L=e.doc.scrollTop,de=L+o.wrapper.clientHeight;N<0?L=Math.max(0,L+N-50):de=Math.min(e.doc.height,de+N+50),ea(e,{top:L,bottom:de})}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,je=a.scrollTop-o.wheelStartY,qe=je&&o.wheelDY&&je/o.wheelDY||Oe&&o.wheelDX&&Oe/o.wheelDX;o.wheelStartX=o.wheelStartY=null,qe&&(_r=(_r*Ro+qe)/(Ro+1),++Ro)}},200)):(o.wheelDX+=n,o.wheelDY+=i))}}var kr=function(e,t){this.ranges=e,this.primIndex=t};kr.prototype.primary=function(){return this.ranges[this.primIndex]},kr.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(!Je(r.anchor,n.anchor)||!Je(r.head,n.head))return!1}return!0},kr.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new Tn(Fe(this.ranges[t].anchor),Fe(this.ranges[t].head));return new kr(e,this.primIndex)},kr.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},kr.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 Tn=function(e,t){this.anchor=e,this.head=t};Tn.prototype.from=function(){return Xe(this.anchor,this.head)},Tn.prototype.to=function(){return Ve(this.anchor,this.head)},Tn.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=Xe(l.from(),a.from()),g=Ve(l.to(),a.to()),y=l.empty()?a.from()==a.head:l.from()==l.head;o<=r&&--r,t.splice(--o,2,new Tn(y?g:u,y?u:g))}}return new kr(t,r)}function gi(e,t){return new kr([new Tn(e,t||e)],0)}function pi(e){return e.text?A(e.from.line+e.text.length-1,nt(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 Tn(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 Tn(y?u:s,y?s:u)}else n[a]=new Tn(s,s)}return new kr(n,e.sel.primIndex)}function oa(e){e.doc.mode=tt(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&&Pr(e)}function _a(e,t){return t.from.ch==0&&t.to.ch==0&&nt(t.text)==""&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function aa(e,t,r,n){function i(lt){return r?r[lt]:null}function o(lt,et,ft){xr(lt,et,ft,n),gt(lt,"change",lt,t)}function a(lt,et){for(var ft=[],Wt=lt;Wt<et;++Wt)ft.push(new _n(u[Wt],i(Wt),n));return ft}var l=t.from,s=t.to,u=t.text,g=E(e,l.line),y=E(e,s.line),N=nt(u),L=i(u.length-1),de=s.line-l.line;if(t.full)e.insert(0,a(0,u.length)),e.remove(u.length,e.size-u.length);else if(_a(e,t)){var Oe=a(0,u.length-1);o(y,y.text,L),de&&e.remove(l.line,de),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 je=a(1,u.length-1);je.push(new _n(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,je)}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,de);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);de>1&&e.remove(l.line+1,de-1),e.insert(l.line+1,qe)}gt(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 ka(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,Go(e),oa(e),Ua(e),e.options.lineWrapping||Zn(e),e.options.mode=t.modeOption,Pr(e)}function Ua(e){(e.doc.direction=="rtl"?z:b)(e.display.lineDiv,"CodeMirror-rtl")}function fs(e){Wr(e,function(){Ua(e),Pr(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:Fe(t.from),to:pi(t),text:H(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=nt(e);if(t.ranges)e.pop();else break}}function ds(e,t){if(t)return Va(e.done),nt(e.done);if(e.done.length&&!nt(e.done).ranges)return nt(e.done);if(e.done.length>1&&!e.done[e.done.length-2].ranges)return e.done.pop(),nt(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=nt(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=nt(i.done);for((!s||!s.ranges)&&Po(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||Ge(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,nt(i.done),t))?i.done[i.done.length-1]=t:Po(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=r,n&&n.clearRedo!==!1&&Va(i.undone)}function Po(e,t){var r=nt(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?kr.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&&(nt(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 Tn(i,t)}else return new Tn(r||t,t)}function To(e,t,r,n,i){i==null&&(i=e.cm&&(e.cm.display.shift||e.extend)),Sr(e,new kr([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 Tn(pe(e,i[o].anchor),pe(e,i[o].head))},origin:r&&r.origin};return Ge(e,"beforeSelectionChange",e,n),e.cm&&Ge(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=nt(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,wt(e.cm)),gt(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 Tn(s,u))}return i?Qr(e.cm,i,t.primIndex):t}function Fi(e,t,r,n,i){var o=E(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&&(Ge(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?pe(e,A(t.line-1)):null:r>0&&t.ch==(n||E(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()),xe)}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=pe(e,i)),o&&(n.to=pe(e,o)),a&&(n.text=a),l!==void 0&&(n.origin=l)}),Ge(e,"beforeChange",e,n),e.cm&&Ge(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 sr(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&&an(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(Po(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=[];Po(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 je=o.changes[Oe];if(je.origin=t,y&&!ol(e,je,!1))return l.length=0,{};g.push(la(e,je));var qe=Oe?ia(e,je):nt(l);ao(e,je,qe,Ya(e,je)),!Oe&&e.cm&&e.cm.scrollIntoView({from:je.from,to:pi(je)});var lt=[];mi(e,function(et,ft){!ft&&ue(lt,et.history)==-1&&(cl(et.history,je),lt.push(et.history)),ao(et,je,null,Ya(et,je))})},L=o.changes.length-1;L>=0;--L){var de=N(L);if(de)return de.v}}}}function ll(e,t){if(t!=0&&(e.first+=t,e.sel=new kr(Pt(e.sel.ranges,function(i){return new Tn(A(i.anchor.line+t,i.anchor.ch),A(i.head.line+t,i.head.ch))}),e.sel.primIndex),e.cm)){Pr(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 sr(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:[nt(t.text)],origin:t.origin}}var o=e.lastLine();t.to.line>o&&(t={from:t.from,to:A(o,E(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=H(e,t.from,t.to),r||(r=ia(e,t)),e.cm?ys(e.cm,t,n):aa(e,t,n),Do(e,r,xe),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=te(Tt(E(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&&wt(e),aa(n,t,r,Ea(e)),e.options.lineWrapping||(n.iter(s,o.line+t.text.length,function(L){var de=Jn(L);de>i.maxLineLength&&(i.maxLine=L,i.maxLineLength=de,i.maxLineChanged=!0,l=!1)}),l&&(e.curOp.updateMaxLine=!0)),it(n,o.line),ro(e,400);var u=t.text.length-(a.line-o.line)-1;t.full?Pr(e):o.line==a.line&&t.text.length==1&&!_a(e.doc,t)?hi(e,o.line,"text"):Pr(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&>(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=E(e,mt(e,t)):i=te(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),gt(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=te(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=Mn(this);ee(r,Math.max(0,r.height-o)),e&&(Wr(e,function(){fl(e,r,-o),hi(e,n,"widget")}),gt(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=Mn(this)-t;i&&(jn(this.doc,n)||ee(n,n.height+i),r&&Wr(r,function(){r.curOp.forceUpdate=!0,fl(r,n,i),gt(r,"lineWidgetChanged",r,e,te(n))}))},Ot(co);function fl(e,t,r){An(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&&!jn(e,a)){var s=An(a)<e.scrollTop;ee(a,a.height+Mn(i)),s&&Jo(o,i.height),o.curOp.forceUpdate=!0}return!0}),o&>(o,"lineWidgetAdded",o,i,typeof t=="number"?t:te(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&>(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=mn(a.markedSpans,this);e&&!this.collapsed?hi(e,te(a),"text"):e&&(l.to!=null&&(i=te(a)),l.from!=null&&(n=te(a))),a.markedSpans=Zt(a.markedSpans,l),l.from==null&&this.collapsed&&!jn(this.doc,a)&&e&&ee(a,Pi(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var s=0;s<this.lines.length;++s){var u=Tt(this.lines[s]),g=Jn(u);g>e.display.maxLineLength&&(e.display.maxLine=u,e.display.maxLineLength=g,e.display.maxLineChanged=!0)}n!=null&&e&&this.collapsed&&Pr(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&>(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=mn(o.markedSpans,this);if(a.from!=null&&(r=A(t?o:te(o),a.from),e==-1))return r;if(a.to!=null&&(n=A(t?o:te(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=te(t.line),a=Xi(n,o);if(a&&(lr(a),n.curOp.selectionChanged=n.curOp.forceUpdate=!0),n.curOp.updateMaxLine=!0,!jn(r.doc,i)&&r.height!=null){var l=r.height;r.height=null;var s=Mn(r)-l;s&&ee(i,i.height+s)}gt(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)}},Ot(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 sr(e.cm,Wi)(e,t,r,n,i);var o=new yi(e,i),a=ce(t,r);if(n&&B(n,o,!1),a>0||a==0&&o.clearWhenEmpty!==!1)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=Ae("span",[o.replacedWith],"CodeMirror-widget"),n.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),n.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(Et(e,t.line,t,r,o)||t.line!=r.line&&Et(e,r.line,t,r,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");Kt()}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&&Tt(y)==s.display.maxLine&&(u=!0),o.collapsed&&l!=t.line&&ee(y,0),Nn(y,new Jt(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){jn(e,y)&&ee(y,0)}),o.clearOnEnter&&oe(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)Pr(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),gt(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();gt(this,"clear")}},fo.prototype.find=function(e,t){return this.primary.find(e,t)},Ot(fo);function Ss(e,t,r,n,i){n=B(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,pe(s,t),pe(s,r),n,i));for(var u=0;u<s.linked.length;++u)if(s.linked[u].isParent)return;a=nt(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,Tr=function(e,t,r,n,i){if(!(this instanceof Tr))return new Tr(e,t,r,n,i);r==null&&(r=0),uo.call(this,[new so([new _n("",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),xe)};Tr.prototype=ze(uo.prototype,{constructor:Tr,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:ur(function(e){var t=A(this.first,0),r=this.first+this.size-1;zi(this,{from:t,to:A(r,E(this,r).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&qi(this.cm,0,0),Sr(this,gi(t),xe)}),replaceRange:function(e,t,r,n){t=pe(this,t),r=r?pe(this,r):t,Zi(this,e,t,r,n)},getRange:function(e,t,r){var n=H(this,pe(this,e),pe(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(Le(this,e))return E(this,e)},getLineNumber:function(e){return te(e)},getLineHandleVisualStart:function(e){return typeof e=="number"&&(e=E(this,e)),Tt(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return pe(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:ur(function(e,t,r){Ja(this,pe(this,typeof e=="number"?A(e,t||0):e),null,r)}),setSelection:ur(function(e,t,r){Ja(this,pe(this,e),pe(this,t||e),r)}),extendSelection:ur(function(e,t,r){To(this,pe(this,e),t&&pe(this,t),r)}),extendSelections:ur(function(e,t){Qa(this,_e(this,e),t)}),extendSelectionsBy:ur(function(e,t){var r=Pt(this.sel.ranges,e);Qa(this,_e(this,r),t)}),setSelections:ur(function(e,t,r){if(e.length){for(var n=[],i=0;i<e.length;i++)n[i]=new Tn(pe(this,e[i].anchor),pe(this,e[i].head));t==null&&(t=Math.min(e.length-1,this.sel.primIndex)),Sr(this,Qr(this.cm,n,t),r)}}),addSelection:ur(function(e,t,r){var n=this.sel.ranges.slice(0);n.push(new Tn(pe(this,e),pe(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=H(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=H(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:ur(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:ur(function(){Ao(this,"undo")}),redo:ur(function(){Ao(this,"redo")}),undoSelection:ur(function(){Ao(this,"undo",!0)}),redoSelection:ur(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:ur(function(e,t,r){return lo(this,e,"gutter",function(n){var i=n.gutterMarkers||(n.gutterMarkers={});return i[t]=r,!r&&k(i)&&(n.gutterMarkers=null),!0})}),clearGutter:ur(function(e){var t=this;this.iter(function(r){r.gutterMarkers&&r.gutterMarkers[e]&&lo(t,r,"gutter",function(){return r.gutterMarkers[e]=null,k(r.gutterMarkers)&&(r.gutterMarkers=null),!0})})}),lineInfo:function(e){var t;if(typeof e=="number"){if(!Le(this,e)||(t=e,e=E(this,e),!e))return null}else if(t=te(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:ur(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:ur(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:ur(function(e,t,r){return bs(this,e,t,r)}),removeLineWidget:function(e){e.clear()},markText:function(e,t,r){return Wi(this,pe(this,e),pe(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=pe(this,e),Wi(this,e,e,r,"bookmark")},findMarksAt:function(e){e=pe(this,e);var t=[],r=E(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=pe(this,e),t=pe(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}),pe(this,A(r,t))},indexFromPos:function(e){e=pe(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 Tr(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 Tr(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):cn(e)},lineSeparator:function(){return this.lineSep||`
|
|
|
`},setDirection:ur(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))})}),Tr.prototype.eachLine=Tr.prototype.iter;var vl=0;function Es(e){var t=this;if(gl(t),!(rt(t,e)||Dn(t.display,e))){It(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&&sr(t,function(){r=pe(t.doc,r);var L={from:r,to:r,text:t.doc.splitLines(o.filter(function(de){return de!=null}).join(t.doc.lineSeparator())),origin:"paste"};zi(t.doc,L),qa(t.doc,gi(pe(t.doc,r),pe(t.doc,pi(L))))})()},s=function(L,de){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 je=Oe.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(je)){l();return}o[de]=je,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)){fn(t);return}if(!(rt(e,t)||Dn(e.display,t))&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!Ce)){var r=F("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=F("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),J(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;oe(window,"resize",function(){e==null&&(e=setTimeout(function(){e=null,pl(Ls)},100))}),oe(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=Ye?si.macDefault:si.pcDefault;function Ps(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 Ts(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=Pt(r.split(" "),Ps),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 Bi(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 Bi(e,t.fallthrough,r,n);for(var o=0;o<t.fallthrough.length;o++){var a=Bi(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 Hi(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,nt(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=ye(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=Te(r,t.doc.direction);if(o){var a=i<0?nt(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=ie(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=Te(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=Ne(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,lt){return ca(t,qe instanceof A?qe.ch:qe,lt)},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 de=function(qe,lt,et){for(var ft=function(Wn,cr){return cr?new A(r.line,l(Wn,1),"before"):new A(r.line,Wn,"after")};qe>=0&&qe<i.length;qe+=lt){var Wt=i[qe],Dt=lt>0==(Wt.level!=1),gn=Dt?et.begin:l(et.end,-1);if(Wt.from<=gn&&gn<Wt.to||(gn=Dt?Wt.from:l(Wt.to,-1),et.begin<=gn&&gn<et.end))return ft(gn,Dt)}},Oe=de(o+n,n,g);if(Oe)return Oe;var je=n>0?g.end:l(g.begin,-1);return je!=null&&!(n>0&&je==t.text.length)&&(Oe=de(n>0?0:i.length-1,n,u(je)),Oe)?Oe:null}var go={selectAll:il,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),xe)},killLine:function(e){return Hi(e,function(t){if(t.empty()){var r=E(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 Hi(e,function(t){return{from:A(t.from().line,0),to:pe(e.doc,A(t.to().line+1,0))}})},delLineLeft:function(e){return Hi(e,function(t){return{from:A(t.from().line,0),to:t.from()}})},delWrappedLineLeft:function(e){return Hi(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 Hi(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")},Re)},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")},Re)},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},Re)},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(ct(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=E(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=E(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 Tn(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=E(e.doc,t),n=Tt(r);return n!=r&&(t=te(n)),da(!0,e,n,t,1)}function Ns(e,t){var r=E(e.doc,t),n=Ln(r);return n!=r&&(t=te(n)),da(!0,e,r,t,-1)}function xl(e,t){var r=Cl(e,t.line),n=E(e.doc,r.line),i=Te(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=Bi(t,e.state.keyMaps[n],r,e);if(i)return i}return e.options.extraKeys&&Bi(t,e.options.extraKeys,r,e)||Bi(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"&>(e,"keyHandled",e,t,r),(i=="handled"||i=="multi")&&(It(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=w(),!rt(t,e))){v&&P<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&&!hn&&(Ye?e.metaKey:e.ctrlKey)&&t.replaceSelection("",null,"cut")),x&&!Ye&&!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;z(t,"CodeMirror-crosshair");function r(n){(n.keyCode==18||!n.altKey)&&(b(t,"CodeMirror-crosshair"),Ze(document,"keyup",r),Ze(document,"mouseover",r))}oe(document,"keyup",r),oe(document,"mouseover",r)}function Ml(e){e.keyCode==16&&(this.doc.sel.shift=!1),rt(this,e)}function Il(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField())&&!(Dn(t.display,e)||rt(t,e)||e.ctrlKey&&!e.altKey||Ye&&e.metaKey)){var r=e.keyCode,n=e.charCode;if(p&&r==ha){ha=null,It(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(!(rt(t,e)||r.activeTouch&&r.input.supportsTouch())){if(r.input.ensurePolled(),r.shift=e.shiftKey,Dn(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=un(e),o=n?Ws(n,i):"single";window.focus(),i==1&&t.state.selectingText&&t.state.selectingText(e),!(n&&Bs(t,i,n,o,e))&&(i==1?n?js(t,n,o,e):dn(e)==r.scroller&&It(e):i==2?(n&&To(t.doc,n),setTimeout(function(){return r.input.focus()},20)):i==3&&(C?t.display.input.onContextMenu(e):La(t)))}}}function Bs(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 Hs(e,t,r){var n=e.getOption("configureMouse"),i=n?n(e,t,r):{};if(i.unit==null){var o=Ie?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=Ye?r.metaKey:r.ctrlKey),i.moveOnDrag==null&&(i.moveOnDrag=!(Ye?r.altKey:r.ctrlKey)),i}function js(e,t,r,n){v?setTimeout(U(Ra,e),0):e.curOp.focus=w();var i=Hs(e,r,n),o=e.doc.sel,a;e.options.dragDrop&&En&&!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):_s(e,n,t,i)}function Ks(e,t,r,n){var i=e.display,o=!1,a=sr(e,function(u){I&&(i.scroller.draggable=!1),e.state.draggingText=!1,Ze(i.wrapper.ownerDocument,"mouseup",a),Ze(i.wrapper.ownerDocument,"mousemove",l),Ze(i.scroller,"dragstart",s),Ze(i.scroller,"drop",a),o||(It(u),n.addNew||To(e.doc,r,null,null,n.extend),I&&!Ce||v&&P==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(),oe(i.wrapper.ownerDocument,"mouseup",a),oe(i.wrapper.ownerDocument,"mousemove",l),oe(i.scroller,"dragstart",s),oe(i.scroller,"drop",a),La(e),setTimeout(function(){return i.input.focus()},20)}function Ll(e,t,r){if(r=="char")return new Tn(t,t);if(r=="word")return e.findWordAt(t);if(r=="line")return new Tn(A(t.line,0),pe(e.doc,A(t.line+1,0)));var n=r(e,t);return new Tn(n.from,n.to)}function _s(e,t,r,n){var i=e.display,o=e.doc;It(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 Tn(r,r)):(a=o.sel.primary(),l=o.sel.primIndex),n.unit=="rectangle")n.addNew||(a=new Tn(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 kr([a],0),Pe),s=o.sel);var y=r;function N(et){if(ce(y,et)!=0)if(y=et,n.unit=="rectangle"){for(var ft=[],Wt=e.options.tabSize,Dt=V(E(o,r.line).text,r.ch,Wt),gn=V(E(o,et.line).text,et.ch,Wt),Wn=Math.min(Dt,gn),cr=Math.max(Dt,gn),Xn=Math.min(r.line,et.line),Br=Math.min(e.lastLine(),Math.max(r.line,et.line));Xn<=Br;Xn++){var Dr=E(o,Xn).text,nr=Ct(Dr,Wn,Wt);Wn==cr?ft.push(new Tn(A(Xn,nr),A(Xn,nr))):Dr.length>nr&&ft.push(new Tn(A(Xn,nr),A(Xn,Ct(Dr,cr,Wt))))}ft.length||ft.push(new Tn(r,r)),Sr(o,Qr(e,s.ranges.slice(0,l).concat(ft),l),{origin:"*mouse",scroll:!1}),e.scrollIntoView(et)}else{var Nr=a,hr=Ll(e,et,n.unit),or=Nr.anchor,rr;ce(hr.anchor,or)>0?(rr=hr.head,or=Xe(Nr.from(),hr.anchor)):(rr=hr.anchor,or=Ve(Nr.to(),hr.head));var Qn=s.ranges.slice(0);Qn[l]=ks(e,new Tn(pe(o,or),rr)),Sr(o,Qr(e,Qn,l),Pe)}}var L=i.wrapper.getBoundingClientRect(),de=0;function Oe(et){var ft=++de,Wt=xi(e,et,!0,n.unit=="rectangle");if(Wt)if(ce(Wt,y)!=0){e.curOp.focus=w(),N(Wt);var Dt=Oo(i,o);(Wt.line>=Dt.to||Wt.line<Dt.from)&&setTimeout(sr(e,function(){de==ft&&Oe(et)}),150)}else{var gn=et.clientY<L.top?-20:et.clientY>L.bottom?20:0;gn&&setTimeout(sr(e,function(){de==ft&&(i.scroller.scrollTop+=gn,Oe(et))}),50)}}function je(et){e.state.selectingText=!1,de=1/0,et&&(It(et),i.input.focus()),Ze(i.wrapper.ownerDocument,"mousemove",qe),Ze(i.wrapper.ownerDocument,"mouseup",lt),o.history.lastSelOrigin=null}var qe=sr(e,function(et){et.buttons===0||!un(et)?je(et):Oe(et)}),lt=sr(e,je);e.state.selectingText=lt,oe(i.wrapper.ownerDocument,"mousemove",qe),oe(i.wrapper.ownerDocument,"mouseup",lt)}function ks(e,t){var r=t.anchor,n=t.head,i=E(e.doc,r.line);if(ce(r,n)==0&&r.sticky==n.sticky)return t;var o=Te(i);if(!o)return t;var a=Ne(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=Ne(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),de=L?N.from:N.to,Oe=L?"after":"before";return r.ch==de&&r.sticky==Oe?t:new Tn(new A(r.line,de,Oe),n)}function Pl(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&&It(t);var a=e.display,l=a.lineDiv.getBoundingClientRect();if(o>l.bottom||!ke(e,r))return Vt(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=ve(e.doc,o),y=e.display.gutterSpecs[s];return Ge(e,r,e,g,y.className,t),Vt(t)}}}function ga(e,t){return Pl(e,t,"gutterClick",!0)}function Tl(e,t){Dn(e.display,t)||Us(e,t)||rt(e,t,"contextmenu")||C||e.display.input.onContextMenu(t)}function Us(e,t){return ke(e,"gutterContextMenu")?Pl(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-"),Kn(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),Kn(n),Pr(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",Be?"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",!Se),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?oe:Ze;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?(z(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(b(e.display.wrapper,"CodeMirror-wrap"),Zn(e)),Go(e),Pr(e),Kn(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?B(t):{},B(Nl,t,!1);var n=t.value;typeof n=="string"?n=new Tr(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&&!Be&&o.input.focus(),v&&P<11&&setTimeout(function(){return r.display.input.reset(!0)},20),Ys(this),Is(),Mi(this),this.curOp.forceUpdate=!0,ka(this,n),t.autofocus&&!Be||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;oe(t.scroller,"mousedown",sr(e,Rl)),v&&P<11?oe(t.scroller,"dblclick",sr(e,function(s){if(!rt(e,s)){var u=xi(e,s);if(!(!u||ga(e,s)||Dn(e.display,s))){It(s);var g=e.findWordAt(u);To(e.doc,g.anchor,g.head)}}})):oe(t.scroller,"dblclick",function(s){return rt(e,s)||It(s)}),oe(t.scroller,"contextmenu",function(s){return Tl(e,s)}),oe(t.input.getField(),"contextmenu",function(s){t.scroller.contains(s.target)||Tl(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}oe(t.scroller,"touchstart",function(s){if(!rt(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)}}),oe(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),oe(t.scroller,"touchend",function(s){var u=t.activeTouch;if(u&&!Dn(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 Tn(g,g):!u.prev.prev||a(u,u.prev.prev)?y=e.findWordAt(g):y=new Tn(A(g.line,0),pe(e.doc,A(g.line+1,0))),e.setSelection(y.anchor,y.head),e.focus(),It(s)}i()}),oe(t.scroller,"touchcancel",i),oe(t.scroller,"scroll",function(){t.scroller.clientHeight&&(eo(e,t.scroller.scrollTop),Ei(e,t.scroller.scrollLeft,!0),Ge(e,"scroll",e))}),oe(t.scroller,"mousewheel",function(s){return Ha(e,s)}),oe(t.scroller,"DOMMouseScroll",function(s){return Ha(e,s)}),oe(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(s){rt(e,s)||fn(s)},over:function(s){rt(e,s)||(Ms(e,s),fn(s))},start:function(s){return Os(e,s)},drop:sr(e,Es),leave:function(s){rt(e,s)||gl(e)}};var l=t.input.getField();oe(l,"keyup",function(s){return Ml.call(e,s)}),oe(l,"keydown",sr(e,Ol)),oe(l,"keypress",sr(e,Il)),oe(l,"focus",function(s){return Yo(e,s)}),oe(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=Mt(e,t).state:r="prev");var a=e.options.tabSize,l=E(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(E(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+=ct(g-N)),y!=u)return Zi(i,y,A(t,0),A(t,u.length),"+input"),l.stateAfter=null,!0;for(var de=0;de<i.sel.ranges.length;de++){var Oe=i.sel.ranges[de];if(Oe.head.line==t&&Oe.head.ch<u.length){var je=A(t,u.length);ua(i,de,new Tn(je,je));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=cn(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=Pt(s,function(qe){return[qe]}));for(var y=e.curOp.updateInput,N=n.ranges.length-1;N>=0;N--){var L=n.ranges[N],de=L.from(),Oe=L.to();L.empty()&&(r&&r>0?de=A(de.line,de.ch-r):e.state.overwrite&&!l?Oe=A(Oe.line,Math.min(E(o,Oe.line).text.length,Oe.ch+nt(s).length)):l&&Jr&&Jr.lineWise&&Jr.text.join(`
|
|
|
`)==s.join(`
|
|
|
`)&&(de=Oe=A(de.line,0)));var je={from:de,to:Oe,text:u?u[N%u.length]:s,origin:i||(l?"paste":e.state.cutIncoming>a?"cut":"+input")};zi(e.doc,je),gt(e,"inputRead",e,je)}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(E(e.doc,i.head.line).text.slice(0,i.head.ch))&&(a=bo(e,i.head.line,"smart"));a&>(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=F("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),t=F("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return I?e.style.width="1000px":e.setAttribute("wrap","off"),j&&(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)&&sr(this,t[n])(this,i,a),Ge(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.");st(this.state.overlays,{mode:o,modeSpec:n,opaque:i&&i.opaque,priority:i&&i.priority||0},function(a){return a.priority}),this.state.modeGen++,Pr(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++,Pr(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"),Le(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 Tn(s,N[a].to()),xe)}}}),getTokenAt:function(n,i){return ln(this,n,i)},getLineTokens:function(n,i){return ln(this,A(n),i,!0)},getTokenTypeAt:function(n){n=pe(this.doc,n);var i=en(this,E(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=mt(o,n==null?o.first+o.size-1:n),Mt(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=pe(this.doc,n):o=n?a.from():a.to(),Zr(this,o,i||"page")},charCoords:function(n,i){return Gr(this,pe(this.doc,n),i||"page")},coordsChar:function(n,i){return n=li(this,n,i||"page"),_o(this,n.left,n.top)},lineAtHeight:function(n,i){return n=li(this,{top:n,left:0},i||"page").top,ve(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=E(this.doc,n)}else l=n;return Kr(this,l,{top:0,left:0},i||"page",o||a).top+(a?this.doc.height-An(l):0)},defaultTextHeight:function(){return Pi(this.display)},defaultCharWidth:function(){return Ti(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,pe(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=pe(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()},Re)}),deleteH:Er(function(n,i){var o=this.doc.sel,a=this.doc;o.somethingSelected()?a.replaceSelection("",null,"+delete"):Hi(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=pe(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},Re),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=E(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=M(u,s)?function(y){return M(y,s)}:/\s/.test(u)?function(y){return/\s/.test(y)}:function(y){return!/\s/.test(y)&&!M(y)};a>0&&g(o.charAt(a-1));)--a;for(;l<o.length&&g(o.charAt(l));)++l}return new Tn(A(n.line,a),A(n.line,l))},toggleOverwrite:function(n){n!=null&&n==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?z(this.display.cursorDiv,"CodeMirror-overwrite"):b(this.display.cursorDiv,"CodeMirror-overwrite"),Ge(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==w()},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:Ui(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):Ta(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,Ge(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;Pr(this),this.curOp.forceUpdate=!0,Kn(this),qi(this,this.doc.scrollLeft,this.doc.scrollTop),ta(this.display),(n==null||Math.abs(n-Pi(this.display))>.5||this.options.lineWrapping)&&Go(this),Ge(this,"refresh",this)}),swapDoc:Er(function(n){var i=this.doc;return i.cm=null,this.state.selectingText&&this.state.selectingText(),ka(this,n),Kn(this),this.display.input.reset(),qi(this,n.scrollLeft,n.scrollTop),this.curOp.forceScroll=!0,gt(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}},Ot(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=E(e,t.line),s=i&&e.direction=="rtl"?-r:r;function u(){var lt=t.line+s;return lt<e.first||lt>=e.first+e.size?!1:(t=new A(lt,t.ch,t.sticky),l=E(e,lt))}function g(lt){var et;if(n=="codepoint"){var ft=l.text.charCodeAt(t.ch+(n>0?0:-1));isNaN(ft)?et=null:et=new A(t.line,Math.max(0,Math.min(l.text.length,t.ch+r*(ft>=55296&&ft<56320?2:1))),-r)}else i?et=Ds(e.cm,l,t,r):et=fa(l,t,r);if(et==null)if(!lt&&u())t=da(i,e.cm,l,t.line,s);else return!1;else t=et;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"),de=!0;!(r<0&&!g(!de));de=!1){var Oe=l.text.charAt(t.ch)||`
|
|
|
`,je=M(Oe,L)?"w":N&&Oe==`
|
|
|
`?"n":!N||/\s/.test(Oe)?null:"p";if(N&&!de&&!je&&(je="s"),y&&y!=je){r<0&&(r=1,g(),t.sticky="after");break}if(je&&(y=je),r>0&&!g(!de))break}var qe=No(e,t,o,a,!0);return Je(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*Pi(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=_o(e,o,a),!!u.outside;){if(r<0?a<=0:a>=i.height){u.hitSide=!0;break}a+=r*5}return u}var $n=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};$n.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}oe(i,"paste",function(l){!o(l)||rt(n,l)||Al(l,n)||P<=11&&setTimeout(sr(n,function(){return t.updateFromDOM()}),20)}),oe(i,"compositionstart",function(l){t.composing={data:l.data,done:!1}}),oe(i,"compositionupdate",function(l){t.composing||(t.composing={data:l.data,done:!1})}),oe(i,"compositionend",function(l){t.composing&&(l.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),oe(i,"touchstart",function(){return r.forceCompositionEnd()}),oe(i,"input",function(){t.composing||t.readFromDOMSoon()});function a(l){if(!(!o(l)||rt(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,xe),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)}}oe(i,"copy",a),oe(i,"cut",a)},$n.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},$n.prototype.prepareSelection=function(){var e=Ma(this.cm,!1);return e.focus=document.activeElement==this.div,e},$n.prototype.showSelection=function(e,t){!e||!this.cm.display.view.length||((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},$n.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},$n.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=Bo(t,e.anchorNode,e.anchorOffset),a=Bo(t,e.focusNode,e.focusOffset);if(!(o&&!o.bad&&a&&!a.bad&&ce(Xe(o,a),n)==0&&ce(Ve(o,a),i)==0)){var l=t.display.view,s=n.line>=t.display.viewFrom&&Bl(t,n)||{node:l[0].measure.map[2],offset:0},u=i.line<t.display.viewTo&&Bl(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=le(s.node,s.offset,u.offset,u.node)}catch(de){}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()}},$n.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)},$n.prototype.showMultipleSelections=function(e){J(this.cm.display.cursorDiv,e.cursors),J(this.cm.display.selectionDiv,e.selection)},$n.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},$n.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return R(this.div,t)},$n.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},$n.prototype.blur=function(){this.div.blur()},$n.prototype.getField=function(){return this.div},$n.prototype.supportsTouch=function(){return!0},$n.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)},$n.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},$n.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var e=this.getSelection(),t=this.cm;if(he&&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=Bo(t,e.anchorNode,e.anchorOffset),n=Bo(t,e.focusNode,e.focusOffset);r&&n&&Wr(t,function(){Sr(t.doc,gi(r,n),xe),(r.bad||n.bad)&&(t.curOp.selectionChanged=!0)})}}},$n.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,E(e.doc,n.line-1).length)),i.ch==E(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=te(t.view[0].line),l=t.view[0].node):(a=te(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=te(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=H(e.doc,A(a,0),A(u,E(e.doc,u).text.length));y.length>1&&N.length>1;)if(nt(y)==nt(N))y.pop(),N.pop(),u--;else if(y[0]==N[0])y.shift(),N.shift(),a++;else break;for(var L=0,de=0,Oe=y[0],je=N[0],qe=Math.min(Oe.length,je.length);L<qe&&Oe.charCodeAt(L)==je.charCodeAt(L);)++L;for(var lt=nt(y),et=nt(N),ft=Math.min(lt.length-(y.length==1?L:0),et.length-(N.length==1?L:0));de<ft&<.charCodeAt(lt.length-de-1)==et.charCodeAt(et.length-de-1);)++de;if(y.length==1&&N.length==1&&a==n.line)for(;L&&L>n.ch&<.charCodeAt(lt.length-de-1)==et.charCodeAt(et.length-de-1);)L--,de++;y[y.length-1]=lt.slice(0,lt.length-de).replace(/^\u200b+/,""),y[0]=y[0].slice(L).replace(/\u200b+$/,"");var Wt=A(a,L),Dt=A(u,N.length?nt(N).length-de:0);if(y.length>1||y[0]||ce(Wt,Dt))return Zi(e.doc,y,Wt,Dt,"+input"),!0},$n.prototype.ensurePolled=function(){this.forceCompositionEnd()},$n.prototype.reset=function(){this.forceCompositionEnd()},$n.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},$n.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))},$n.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&Wr(this.cm,function(){return Pr(e.cm)})},$n.prototype.setUneditable=function(e){e.contentEditable="false"},$n.prototype.onKeyPress=function(e){e.charCode==0||this.composing||(e.preventDefault(),this.cm.isReadOnly()||sr(this.cm,ma)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0))},$n.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},$n.prototype.onContextMenu=function(){},$n.prototype.resetPosition=function(){},$n.prototype.needsContentAttribute=!0;function Bl(e,t){var r=Xi(e,t.line);if(!r||r.hidden)return null;var n=E(e.doc,t.line),i=Vi(r,n,t.line),o=Te(n,e.doc.direction),a="left";if(o){var l=Ne(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(de){return de.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 de=L.getAttribute("cm-text");if(de){y(de);return}var Oe=L.getAttribute("cm-marker"),je;if(Oe){var qe=e.findMarks(A(n,0),A(i+1,0),u(+Oe));qe.length&&(je=qe[0].find(0))&&y(H(e.doc,je.from,je.to).join(l));return}if(L.getAttribute("contenteditable")=="false")return;var lt=/^(pre|div|p|li|table|br)$/i.test(L.nodeName);if(!/^br$/i.test(L.nodeName)&&L.textContent.length==0)return;lt&&g();for(var et=0;et<L.childNodes.length;et++)N(L.childNodes[et]);/^(pre|p)$/i.test(L.nodeName)&&(s=!0),lt&&(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 Bo(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(te(e.line),0),!0);if(t==n&&(i=!0,t=n.childNodes[r],r=0,!t)){var o=e.rest?nt(e.rest):e.line;return Ki(A(te(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(je,qe,lt){for(var et=-1;et<(u?u.length:0);et++)for(var ft=et<0?s.map:u[et],Wt=0;Wt<ft.length;Wt+=3){var Dt=ft[Wt+2];if(Dt==je||Dt==qe){var gn=te(et<0?e.line:e.rest[et]),Wn=ft[Wt]+lt;return(lt<0||Dt!=je)&&(Wn=ft[Wt+(lt?1:0)]),A(gn,Wn)}}}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 de=l.previousSibling,Oe=r;de;de=de.previousSibling){if(y=g(de,de.firstChild,-1),y)return Ki(A(y.line,y.ch+Oe),i);Oe+=de.textContent.length}}var er=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new fe,this.hasSelection=!1,this.composing=null};er.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),j&&(i.style.width="0px"),oe(i,"input",function(){v&&P>=9&&t.hasSelection&&(t.hasSelection=null),r.poll()}),oe(i,"paste",function(a){rt(n,a)||Al(a,n)||(n.state.pasteIncoming=+new Date,r.fastPoll())});function o(a){if(!rt(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,xe):(r.prevInput="",i.value=l.text.join(`
|
|
|
`),Y(i))}else return;a.type=="cut"&&(n.state.cutIncoming=+new Date)}}oe(i,"cut",o),oe(i,"copy",o),oe(e.scroller,"paste",function(a){if(!(Dn(e,a)||rt(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)}}),oe(e.lineSpace,"selectstart",function(a){Dn(e,a)||It(a)}),oe(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"})}}),oe(i,"compositionend",function(){r.composing&&(r.poll(),r.composing.range.clear(),r.composing=null)})},er.prototype.createField=function(e){this.wrapper=Zl(),this.textarea=this.wrapper.firstChild},er.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},er.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},er.prototype.showSelection=function(e){var t=this.cm,r=t.display;J(r.cursorDiv,e.cursors),J(r.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},er.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&&P>=9&&(this.hasSelection=r)}else e||(this.prevInput=this.textarea.value="",v&&P>=9&&(this.hasSelection=null))}},er.prototype.getField=function(){return this.textarea},er.prototype.supportsTouch=function(){return!1},er.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!Be||w()!=this.textarea))try{this.textarea.focus()}catch(e){}},er.prototype.blur=function(){this.textarea.blur()},er.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},er.prototype.receivedFocus=function(){this.slowPoll()},er.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},er.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)},er.prototype.poll=function(){var e=this,t=this.cm,r=this.textarea,n=this.prevInput;if(this.contextMenuPending||!t.state.focused||Nt(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&&P>=9&&this.hasSelection===i||Ye&&/[\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},er.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},er.prototype.onKeyPress=function(){v&&P>=9&&(this.hasSelection=null),this.fastPoll()},er.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&&sr(r,Sr)(r.doc,gi(o),xe);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(),je="\u200B"+(Oe?i.value:"");i.value="\u21DA",i.value=je,t.prevInput=Oe?"":"\u200B",i.selectionStart=1,i.selectionEnd=je.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&&P<9&&n.scrollbars.setScrollTop(n.scroller.scrollTop=a),i.selectionStart!=null)){(!v||v&&P<9)&&N();var Oe=0,je=function(){n.selForContextMenu==r.doc.sel&&i.selectionStart==0&&i.selectionEnd>0&&t.prevInput=="\u200B"?sr(r,il)(r):Oe++<10?n.detectingSelectAll=setTimeout(je,500):(n.selForContextMenu=null,n.input.reset())};n.detectingSelectAll=setTimeout(je,200)}}if(v&&P>=9&&N(),C){fn(e);var de=function(){Ze(window,"mouseup",de),setTimeout(L,20)};oe(window,"mouseup",de)}else setTimeout(L,50)},er.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},er.prototype.setUneditable=function(){},er.prototype.needsContentAttribute=!1;function tu(e,t){if(t=t?B(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=w();t.autofocus=r==e||e.getAttribute("autofocus")!=null&&r==document.body}function n(){e.value=l.getValue()}var i;if(e.form&&(oe(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&&(Ze(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=Ze,e.on=oe,e.wheelEventPixels=us,e.Doc=Tr,e.splitLines=cn,e.countColumn=V,e.findColumn=Ct,e.isWordChar=Z,e.Pass=Ke,e.signal=Ge,e.Line=_n,e.changeEnd=pi,e.scrollbarModel=Aa,e.Pos=A,e.cmpPos=ce,e.modes=In,e.mimeModes=Bn,e.resolveMode=pn,e.getMode=tt,e.modeExtensions=xt,e.extendMode=m,e.copyState=K,e.startState=d,e.innerMode=ae,e.commands=go,e.keyMap=si,e.keyName=Sl,e.isModifierKey=yl,e.lookupKey=Bi,e.normalizeKeyMap=Ts,e.StringStream=h,e.SharedTextMarker=fo,e.TextMarker=yi,e.LineWidget=co,e.e_preventDefault=It,e.e_stopPropagation=_t,e.e_stop=fn,e.addClass=z,e.contains=R,e.rmClass=b,e.keyNames=bi}Vs(Un),Qs(Un);var ru="iter insert remove copy getEditor constructor".split(" ");for(var Ho in Tr.prototype)Tr.prototype.hasOwnProperty(Ho)&&ue(ru,Ho)<0&&(Un.prototype[Ho]=function(e){return function(){return e.apply(this.doc,arguments)}}(Tr.prototype[Ho]));return Ot(Tr),Un.inputStyles={textarea:er,contenteditable:$n},Un.defineMode=function(e){!Un.defaults.mode&&e!="null"&&(Un.defaults.mode=e),ir.apply(this,arguments)},Un.defineMIME=Vn,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){Tr.prototype[e]=t},Un.fromTextArea=tu,nu(Un),Un.version="5.58.2",Un})},93681:function(tn,Me,c){"use strict";c.r(Me),c.d(Me,{BaseInput:function(){return p},default:function(){return Se}});var x=c(96663),W=c(44127),S=c(90493),G=c(20135),v=c(92310),P=c.n(v),I=c(59301),_=c(5643),se=function(Q){var C,f,b=Q.inputElement,T=Q.prefixCls,J=Q.prefix,F=Q.suffix,Ae=Q.addonBefore,le=Q.addonAfter,R=Q.className,w=Q.style,z=Q.disabled,$=Q.readOnly,Y=Q.focused,U=Q.triggerFocus,B=Q.allowClear,V=Q.value,fe=Q.handleReset,ue=Q.hidden,We=Q.classes,Ke=Q.classNames,xe=Q.dataAttrs,Pe=Q.styles,Re=Q.components,Ct=(Re==null?void 0:Re.affixWrapper)||"span",$t=(Re==null?void 0:Re.groupWrapper)||"span",ct=(Re==null?void 0:Re.wrapper)||"span",nt=(Re==null?void 0:Re.groupAddon)||"span",Pt=(0,I.useRef)(null),st=function(ge){var Ne;(Ne=Pt.current)!==null&&Ne!==void 0&&Ne.contains(ge.target)&&(U==null||U())},X=function(){var ge;if(!B)return null;var Ne=!z&&!$&&V,we="".concat(T,"-clear-icon"),Te=(0,G.Z)(B)==="object"&&B!==null&&B!==void 0&&B.clearIcon?B.clearIcon:"\u2716";return I.createElement("span",{onClick:fe,onMouseDown:function(oe){return oe.preventDefault()},className:P()(we,(ge={},(0,S.Z)(ge,"".concat(we,"-hidden"),!Ne),(0,S.Z)(ge,"".concat(we,"-has-suffix"),!!F),ge)),role:"button",tabIndex:-1},Te)},ze=(0,I.cloneElement)(b,{value:V,hidden:ue,className:P()((C=b.props)===null||C===void 0?void 0:C.className,!(0,_.X3)(Q)&&!(0,_.He)(Q)&&R)||null,style:(0,W.Z)((0,W.Z)({},(f=b.props)===null||f===void 0?void 0:f.style),!(0,_.X3)(Q)&&!(0,_.He)(Q)?w:{})});if((0,_.X3)(Q)){var O,Z="".concat(T,"-affix-wrapper"),M=P()(Z,(O={},(0,S.Z)(O,"".concat(Z,"-disabled"),z),(0,S.Z)(O,"".concat(Z,"-focused"),Y),(0,S.Z)(O,"".concat(Z,"-readonly"),$),(0,S.Z)(O,"".concat(Z,"-input-with-clear-btn"),F&&B&&V),O),!(0,_.He)(Q)&&R,We==null?void 0:We.affixWrapper,Ke==null?void 0:Ke.affixWrapper),k=(F||B)&&I.createElement("span",{className:P()("".concat(T,"-suffix"),Ke==null?void 0:Ke.suffix),style:Pe==null?void 0:Pe.suffix},X(),F);ze=I.createElement(Ct,(0,x.Z)({className:M,style:(0,W.Z)((0,W.Z)({},(0,_.He)(Q)?void 0:w),Pe==null?void 0:Pe.affixWrapper),hidden:!(0,_.He)(Q)&&ue,onClick:st},xe==null?void 0:xe.affixWrapper,{ref:Pt}),J&&I.createElement("span",{className:P()("".concat(T,"-prefix"),Ke==null?void 0:Ke.prefix),style:Pe==null?void 0:Pe.prefix},J),(0,I.cloneElement)(b,{value:V,hidden:null}),k)}if((0,_.He)(Q)){var q="".concat(T,"-group"),re="".concat(q,"-addon"),ye=P()("".concat(T,"-wrapper"),q,We==null?void 0:We.wrapper),ie=P()("".concat(T,"-group-wrapper"),R,We==null?void 0:We.group);return I.createElement($t,{className:ie,style:w,hidden:ue},I.createElement(ct,{className:ye},Ae&&I.createElement(nt,{className:re},Ae),(0,I.cloneElement)(ze,{hidden:null}),le&&I.createElement(nt,{className:re},le)))}return ze},p=se,Ce=c(19127),D=c(72071),me=c(6620),j=c(18929),he=c(2738),Be=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","classes","classNames","styles"],Ye=(0,I.forwardRef)(function(ne,Q){var C=ne.autoComplete,f=ne.onChange,b=ne.onFocus,T=ne.onBlur,J=ne.onPressEnter,F=ne.onKeyDown,Ae=ne.prefixCls,le=Ae===void 0?"rc-input":Ae,R=ne.disabled,w=ne.htmlSize,z=ne.className,$=ne.maxLength,Y=ne.suffix,U=ne.showCount,B=ne.type,V=B===void 0?"text":B,fe=ne.classes,ue=ne.classNames,We=ne.styles,Ke=(0,me.Z)(ne,Be),xe=(0,j.Z)(ne.defaultValue,{value:ne.value}),Pe=(0,D.Z)(xe,2),Re=Pe[0],Ct=Pe[1],$t=(0,I.useState)(!1),ct=(0,D.Z)($t,2),nt=ct[0],Pt=ct[1],st=(0,I.useRef)(null),X=function(ie){st.current&&(0,_.nH)(st.current,ie)};(0,I.useImperativeHandle)(Q,function(){return{focus:X,blur:function(){var ie;(ie=st.current)===null||ie===void 0||ie.blur()},setSelectionRange:function(ie,De,ge){var Ne;(Ne=st.current)===null||Ne===void 0||Ne.setSelectionRange(ie,De,ge)},select:function(){var ie;(ie=st.current)===null||ie===void 0||ie.select()},input:st.current}}),(0,I.useEffect)(function(){Pt(function(ye){return ye&&R?!1:ye})},[R]);var ze=function(ie){ne.value===void 0&&Ct(ie.target.value),st.current&&(0,_.rJ)(st.current,ie,f)},O=function(ie){J&&ie.key==="Enter"&&J(ie),F==null||F(ie)},Z=function(ie){Pt(!0),b==null||b(ie)},M=function(ie){Pt(!1),T==null||T(ie)},k=function(ie){Ct(""),X(),st.current&&(0,_.rJ)(st.current,ie,f)},q=function(){var ie=(0,he.Z)(ne,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","classes","htmlSize","styles","classNames"]);return I.createElement("input",(0,x.Z)({autoComplete:C},ie,{onChange:ze,onFocus:Z,onBlur:M,onKeyDown:O,className:P()(le,(0,S.Z)({},"".concat(le,"-disabled"),R),ue==null?void 0:ue.input),style:We==null?void 0:We.input,ref:st,size:w,type:V}))},re=function(){var ie=Number($)>0;if(Y||U){var De=(0,_.D7)(Re),ge=(0,Ce.Z)(De).length,Ne=(0,G.Z)(U)==="object"?U.formatter({value:De,count:ge,maxLength:$}):"".concat(ge).concat(ie?" / ".concat($):"");return I.createElement(I.Fragment,null,!!U&&I.createElement("span",{className:P()("".concat(le,"-show-count-suffix"),(0,S.Z)({},"".concat(le,"-show-count-has-suffix"),!!Y),ue==null?void 0:ue.count),style:(0,W.Z)({},We==null?void 0:We.count)},Ne),Y)}return null};return I.createElement(p,(0,x.Z)({},Ke,{prefixCls:le,className:z,inputElement:q(),handleReset:k,value:(0,_.D7)(Re),focused:nt,triggerFocus:X,suffix:re(),disabled:R,classes:fe,classNames:ue,styles:We}))}),Ie=Ye,Se=Ie},5643:function(tn,Me,c){"use strict";c.d(Me,{D7:function(){return v},He:function(){return x},X3:function(){return W},nH:function(){return G},rJ:function(){return S}});function x(P){return!!(P.addonBefore||P.addonAfter)}function W(P){return!!(P.prefix||P.suffix||P.allowClear)}function S(P,I,_,se){if(_){var p=I;if(I.type==="click"){var Ce=P.cloneNode(!0);p=Object.create(I,{target:{value:Ce},currentTarget:{value:Ce}}),Ce.value="",_(p);return}if(se!==void 0){p=Object.create(I,{target:{value:P},currentTarget:{value:P}}),P.value=se,_(p);return}_(p)}}function G(P,I){if(P){P.focus(I);var _=I||{},se=_.cursor;if(se){var p=P.value.length;switch(se){case"start":P.setSelectionRange(0,0);break;case"end":P.setSelectionRange(p,p);break;default:P.setSelectionRange(0,p)}}}}function v(P){return typeof P=="undefined"||P===null?"":String(P)}},11780:function(tn,Me,c){"use strict";c.d(Me,{Z:function(){return U}});var x=c(96663),W=c(44127),S=c(72071),G=c(6620),v=c(59301),P=c(92310),I=c.n(P),_=c(29301),se=c(34280),p=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Ce=void 0;function D(B,V){var fe=B.prefixCls,ue=B.invalidate,We=B.item,Ke=B.renderItem,xe=B.responsive,Pe=B.responsiveDisabled,Re=B.registerSize,Ct=B.itemKey,$t=B.className,ct=B.style,nt=B.children,Pt=B.display,st=B.order,X=B.component,ze=X===void 0?"div":X,O=(0,G.Z)(B,p),Z=xe&&!Pt;function M(ie){Re(Ct,ie)}v.useEffect(function(){return function(){M(null)}},[]);var k=Ke&&We!==Ce?Ke(We,{index:st}):nt,q;ue||(q={opacity:Z?0:1,height:Z?0:Ce,overflowY:Z?"hidden":Ce,order:xe?st:Ce,pointerEvents:Z?"none":Ce,position:Z?"absolute":Ce});var re={};Z&&(re["aria-hidden"]=!0);var ye=v.createElement(ze,(0,x.Z)({className:I()(!ue&&fe,$t),style:(0,W.Z)((0,W.Z)({},q),ct)},re,O,{ref:V}),k);return xe&&(ye=v.createElement(_.Z,{onResize:function(De){var ge=De.offsetWidth;M(ge)},disabled:Pe},ye)),ye}var me=v.forwardRef(D);me.displayName="Item";var j=me,he=c(6089),Be=c(4676),Ye=c(16089);function Ie(B){if(typeof MessageChannel=="undefined")(0,Ye.Z)(B);else{var V=new MessageChannel;V.port1.onmessage=function(){return B()},V.port2.postMessage(void 0)}}function Se(){var B=v.useRef(null),V=function(ue){B.current||(B.current=[],Ie(function(){(0,Be.unstable_batchedUpdates)(function(){B.current.forEach(function(We){We()}),B.current=null})})),B.current.push(ue)};return V}function ne(B,V){var fe=v.useState(V),ue=(0,S.Z)(fe,2),We=ue[0],Ke=ue[1],xe=(0,he.Z)(function(Pe){B(function(){Ke(Pe)})});return[We,xe]}var Q=v.createContext(null),C=["component"],f=["className"],b=["className"],T=function(V,fe){var ue=v.useContext(Q);if(!ue){var We=V.component,Ke=We===void 0?"div":We,xe=(0,G.Z)(V,C);return v.createElement(Ke,(0,x.Z)({},xe,{ref:fe}))}var Pe=ue.className,Re=(0,G.Z)(ue,f),Ct=V.className,$t=(0,G.Z)(V,b);return v.createElement(Q.Provider,{value:null},v.createElement(j,(0,x.Z)({ref:fe,className:I()(Pe,Ct)},Re,$t)))},J=v.forwardRef(T);J.displayName="RawItem";var F=J,Ae=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],le="responsive",R="invalidate";function w(B){return"+ ".concat(B.length," ...")}function z(B,V){var fe=B.prefixCls,ue=fe===void 0?"rc-overflow":fe,We=B.data,Ke=We===void 0?[]:We,xe=B.renderItem,Pe=B.renderRawItem,Re=B.itemKey,Ct=B.itemWidth,$t=Ct===void 0?10:Ct,ct=B.ssr,nt=B.style,Pt=B.className,st=B.maxCount,X=B.renderRest,ze=B.renderRawRest,O=B.suffix,Z=B.component,M=Z===void 0?"div":Z,k=B.itemComponent,q=B.onVisibleChange,re=(0,G.Z)(B,Ae),ye=ct==="full",ie=Se(),De=ne(ie,null),ge=(0,S.Z)(De,2),Ne=ge[0],we=ge[1],Te=Ne||0,$e=ne(ie,new Map),oe=(0,S.Z)($e,2),Qe=oe[0],Ze=oe[1],Ge=ne(ie,0),rt=(0,S.Z)(Ge,2),wt=rt[0],ke=rt[1],Ot=ne(ie,0),It=(0,S.Z)(Ot,2),_t=It[0],Vt=It[1],fn=ne(ie,0),dn=(0,S.Z)(fn,2),un=dn[0],En=dn[1],On=(0,v.useState)(null),Ft=(0,S.Z)(On,2),nn=Ft[0],Ht=Ft[1],cn=(0,v.useState)(null),Nt=(0,S.Z)(cn,2),hn=Nt[0],rn=Nt[1],Xt=v.useMemo(function(){return hn===null&&ye?Number.MAX_SAFE_INTEGER:hn||0},[hn,Ne]),In=(0,v.useState)(!1),Bn=(0,S.Z)(In,2),ir=Bn[0],Vn=Bn[1],pn="".concat(ue,"-item"),tt=Math.max(wt,_t),xt=st===le,m=Ke.length&&xt,K=st===R,ae=m||typeof st=="number"&&Ke.length>st,d=(0,v.useMemo)(function(){var Ee=Ke;return m?Ne===null&&ye?Ee=Ke:Ee=Ke.slice(0,Math.min(Ke.length,Te/$t)):typeof st=="number"&&(Ee=Ke.slice(0,st)),Ee},[Ke,$t,Ne,st,m]),h=(0,v.useMemo)(function(){return m?Ke.slice(Xt+1):Ke.slice(d.length)},[Ke,d,m,Xt]),E=(0,v.useCallback)(function(Ee,_e){var dt;return typeof Re=="function"?Re(Ee):(dt=Re&&(Ee==null?void 0:Ee[Re]))!==null&&dt!==void 0?dt:_e},[Re]),H=(0,v.useCallback)(xe||function(Ee){return Ee},[xe]);function be(Ee,_e,dt){hn===Ee&&(_e===void 0||_e===nn)||(rn(Ee),dt||(Vn(Ee<Ke.length-1),q==null||q(Ee)),_e!==void 0&&Ht(_e))}function ee(Ee,_e){we(_e.clientWidth)}function te(Ee,_e){Ze(function(dt){var ot=new Map(dt);return _e===null?ot.delete(Ee):ot.set(Ee,_e),ot})}function ve(Ee,_e){Vt(_e),ke(_t)}function Le(Ee,_e){En(_e)}function Ue(Ee){return Qe.get(E(d[Ee],Ee))}(0,se.Z)(function(){if(Te&&typeof tt=="number"&&d){var Ee=un,_e=d.length,dt=_e-1;if(!_e){be(0,null);return}for(var ot=0;ot<_e;ot+=1){var yt=Ue(ot);if(ye&&(yt=yt||0),yt===void 0){be(ot-1,void 0,!0);break}if(Ee+=yt,dt===0&&Ee<=Te||ot===dt-1&&Ee+Ue(dt)<=Te){be(dt,null);break}else if(Ee+tt>Te){be(ot-1,Ee-yt-un+_t);break}}O&&Ue(0)+un>Te&&Ht(null)}},[Te,Qe,_t,un,E,d]);var A=ir&&!!h.length,ce={};nn!==null&&m&&(ce={position:"absolute",left:nn,top:0});var Je={prefixCls:pn,responsive:m,component:k,invalidate:K},Fe=Pe?function(Ee,_e){var dt=E(Ee,_e);return v.createElement(Q.Provider,{key:dt,value:(0,W.Z)((0,W.Z)({},Je),{},{order:_e,item:Ee,itemKey:dt,registerSize:te,display:_e<=Xt})},Pe(Ee,_e))}:function(Ee,_e){var dt=E(Ee,_e);return v.createElement(j,(0,x.Z)({},Je,{order:_e,key:dt,item:Ee,renderItem:H,itemKey:dt,registerSize:te,display:_e<=Xt}))},Ve={order:A?Xt:Number.MAX_SAFE_INTEGER,className:"".concat(pn,"-rest"),registerSize:ve,display:A},Xe=X||w,mt=ze?v.createElement(Q.Provider,{value:(0,W.Z)((0,W.Z)({},Je),Ve)},ze(h)):v.createElement(j,(0,x.Z)({},Je,Ve),typeof Xe=="function"?Xe(h):Xe),pe=v.createElement(M,(0,x.Z)({className:I()(!K&&ue,Pt),style:nt,ref:V},re),d.map(Fe),ae?mt:null,O&&v.createElement(j,(0,x.Z)({},Je,{responsive:xt,responsiveDisabled:!m,order:Xt,className:"".concat(pn,"-suffix"),registerSize:Le,display:!0,style:ce}),O));return xt?v.createElement(_.Z,{onResize:ee,disabled:!m},pe):pe}var $=v.forwardRef(z);$.displayName="Overflow",$.Item=F,$.RESPONSIVE=le,$.INVALIDATE=R;var Y=$,U=Y},29301:function(tn,Me,c){"use strict";c.d(Me,{Z:function(){return R}});var x=c(96663),W=c(59301),S=c(11592),G=c(48736),v=c(44127),P=c(20135),I=c(76846),_=c(8654),se=W.createContext(null);function p(w){var z=w.children,$=w.onBatchResize,Y=W.useRef(0),U=W.useRef([]),B=W.useContext(se),V=W.useCallback(function(fe,ue,We){Y.current+=1;var Ke=Y.current;U.current.push({size:fe,element:ue,data:We}),Promise.resolve().then(function(){Ke===Y.current&&($==null||$(U.current),U.current=[])}),B==null||B(fe,ue,We)},[$,B]);return W.createElement(se.Provider,{value:V},z)}var Ce=c(76374),D=new Map;function me(w){w.forEach(function(z){var $,Y=z.target;($=D.get(Y))===null||$===void 0||$.forEach(function(U){return U(Y)})})}var j=new Ce.Z(me),he=null,Be=null;function Ye(w,z){D.has(w)||(D.set(w,new Set),j.observe(w)),D.get(w).add(z)}function Ie(w,z){D.has(w)&&(D.get(w).delete(z),D.get(w).size||(j.unobserve(w),D.delete(w)))}var Se=c(52884),ne=c(95727),Q=c(65711),C=c(85745),f=function(w){(0,Q.Z)($,w);var z=(0,C.Z)($);function $(){return(0,Se.Z)(this,$),z.apply(this,arguments)}return(0,ne.Z)($,[{key:"render",value:function(){return this.props.children}}]),$}(W.Component);function b(w,z){var $=w.children,Y=w.disabled,U=W.useRef(null),B=W.useRef(null),V=W.useContext(se),fe=typeof $=="function",ue=fe?$(U):$,We=W.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),Ke=!fe&&W.isValidElement(ue)&&(0,_.Yr)(ue),xe=Ke?(0,_.C4)(ue):null,Pe=(0,_.x1)(xe,U),Re=function(){var nt;return(0,I.ZP)(U.current)||(U.current&&(0,P.Z)(U.current)==="object"?(0,I.ZP)((nt=U.current)===null||nt===void 0?void 0:nt.nativeElement):null)||(0,I.ZP)(B.current)};W.useImperativeHandle(z,function(){return Re()});var Ct=W.useRef(w);Ct.current=w;var $t=W.useCallback(function(ct){var nt=Ct.current,Pt=nt.onResize,st=nt.data,X=ct.getBoundingClientRect(),ze=X.width,O=X.height,Z=ct.offsetWidth,M=ct.offsetHeight,k=Math.floor(ze),q=Math.floor(O);if(We.current.width!==k||We.current.height!==q||We.current.offsetWidth!==Z||We.current.offsetHeight!==M){var re={width:k,height:q,offsetWidth:Z,offsetHeight:M};We.current=re;var ye=Z===Math.round(ze)?ze:Z,ie=M===Math.round(O)?O:M,De=(0,v.Z)((0,v.Z)({},re),{},{offsetWidth:ye,offsetHeight:ie});V==null||V(De,ct,st),Pt&&Promise.resolve().then(function(){Pt(De,ct)})}},[]);return W.useEffect(function(){var ct=Re();return ct&&!Y&&Ye(ct,$t),function(){return Ie(ct,$t)}},[U.current,Y]),W.createElement(f,{ref:B},Ke?W.cloneElement(ue,{ref:Pe}):ue)}var T=W.forwardRef(b),J=T,F="rc-observer-key";function Ae(w,z){var $=w.children,Y=typeof $=="function"?[$]:(0,S.Z)($);return Y.map(function(U,B){var V=(U==null?void 0:U.key)||"".concat(F,"-").concat(B);return W.createElement(J,(0,x.Z)({},w,{key:V,ref:B===0?z:void 0}),U)})}var le=W.forwardRef(Ae);le.Collection=p;var R=le},17115:function(tn,Me,c){"use strict";c.d(Me,{ZP:function(){return I}});var x=c(72071),W=c(59301),S=c(47273),G=0,v=(0,S.Z)();function P(){var _;return v?(_=G,G+=1):_="TEST_OR_SSR",_}function I(_){var se=W.useState(),p=(0,x.Z)(se,2),Ce=p[0],D=p[1];return W.useEffect(function(){D("rc_select_".concat(P()))},[]),_||Ce}},77861:function(tn,Me,c){"use strict";c.d(Me,{Ac:function(){return we},Xo:function(){return Vt},Wx:function(){return dn},ZP:function(){return ae},lk:function(){return Q}});var x=c(96663),W=c(19127),S=c(90493),G=c(44127),v=c(72071),P=c(6620),I=c(20135),_=c(18929),se=c(48736),p=c(59301),Ce=c(92310),D=c.n(Ce),me=c(34280),j=c(49658),he=c(10228),Be=c(8654),Ye=function(h){var E=h.className,H=h.customizeIcon,be=h.customizeIconProps,ee=h.onMouseDown,te=h.onClick,ve=h.children,Le;return typeof H=="function"?Le=H(be):Le=H,p.createElement("span",{className:E,onMouseDown:function(A){A.preventDefault(),ee&&ee(A)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:te,"aria-hidden":!0},Le!==void 0?Le:p.createElement("span",{className:D()(E.split(/\s+/).map(function(Ue){return"".concat(Ue,"-icon")}))},ve))},Ie=Ye;function Se(d,h,E,H,be){var ee=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,te=arguments.length>6?arguments[6]:void 0,ve=arguments.length>7?arguments[7]:void 0,Le=p.useMemo(function(){if((0,I.Z)(H)==="object")return H.clearIcon;if(be)return be},[H,be]),Ue=p.useMemo(function(){return!!(!ee&&H&&(E.length||te)&&!(ve==="combobox"&&te===""))},[H,ee,E.length,te,ve]);return{allowClear:Ue,clearIcon:p.createElement(Ie,{className:"".concat(d,"-clear"),onMouseDown:h,customizeIcon:Le},"\xD7")}}var ne=p.createContext(null);function Q(){return p.useContext(ne)}function C(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,h=p.useState(!1),E=(0,v.Z)(h,2),H=E[0],be=E[1],ee=p.useRef(null),te=function(){window.clearTimeout(ee.current)};p.useEffect(function(){return te},[]);var ve=function(Ue,A){te(),ee.current=window.setTimeout(function(){be(Ue),A&&A()},d)};return[H,ve,te]}function f(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,h=p.useRef(null),E=p.useRef(null);p.useEffect(function(){return function(){window.clearTimeout(E.current)}},[]);function H(be){(be||h.current===null)&&(h.current=be),window.clearTimeout(E.current),E.current=window.setTimeout(function(){h.current=null},d)}return[function(){return h.current},H]}function b(d,h,E,H){var be=p.useRef(null);be.current={open:h,triggerOpen:E,customizedTrigger:H},p.useEffect(function(){function ee(te){var ve;if(!((ve=be.current)!==null&&ve!==void 0&&ve.customizedTrigger)){var Le=te.target;Le.shadowRoot&&te.composed&&(Le=te.composedPath()[0]||Le),be.current.open&&d().filter(function(Ue){return Ue}).every(function(Ue){return!Ue.contains(Le)&&Ue!==Le})&&be.current.triggerOpen(!1)}}return window.addEventListener("mousedown",ee),function(){return window.removeEventListener("mousedown",ee)}},[])}var T=c(26112),J=c(11780),F=function(h,E){var H,be,ee=h.prefixCls,te=h.id,ve=h.inputElement,Le=h.disabled,Ue=h.tabIndex,A=h.autoFocus,ce=h.autoComplete,Je=h.editable,Fe=h.activeDescendantId,Ve=h.value,Xe=h.maxLength,mt=h.onKeyDown,pe=h.onMouseDown,Ee=h.onChange,_e=h.onPaste,dt=h.onCompositionStart,ot=h.onCompositionEnd,yt=h.open,en=h.attrs,Mt=ve||p.createElement("input",null),Bt=Mt,Yt=Bt.ref,Rt=Bt.props,kt=Rt.onKeyDown,ln=Rt.onChange,on=Rt.onMouseDown,Qt=Rt.onCompositionStart,ht=Rt.onCompositionEnd,it=Rt.style;return(0,se.Kp)(!("maxLength"in Mt.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),Mt=p.cloneElement(Mt,(0,G.Z)((0,G.Z)((0,G.Z)({type:"search"},Rt),{},{id:te,ref:(0,Be.sQ)(E,Yt),disabled:Le,tabIndex:Ue,autoComplete:ce||"off",autoFocus:A,className:D()("".concat(ee,"-selection-search-input"),(H=Mt)===null||H===void 0||(be=H.props)===null||be===void 0?void 0:be.className),role:"combobox","aria-label":"Search","aria-expanded":yt||!1,"aria-haspopup":"listbox","aria-owns":"".concat(te,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(te,"_list"),"aria-activedescendant":yt?Fe:void 0},en),{},{value:Je?Ve:"",maxLength:Xe,readOnly:!Je,unselectable:Je?null:"on",style:(0,G.Z)((0,G.Z)({},it),{},{opacity:Je?null:0}),onKeyDown:function(Lt){mt(Lt),kt&&kt(Lt)},onMouseDown:function(Lt){pe(Lt),on&&on(Lt)},onChange:function(Lt){Ee(Lt),ln&&ln(Lt)},onCompositionStart:function(Lt){dt(Lt),Qt&&Qt(Lt)},onCompositionEnd:function(Lt){ot(Lt),ht&&ht(Lt)},onPaste:_e})),Mt},Ae=p.forwardRef(F);Ae.displayName="Input";var le=Ae;function R(d){return Array.isArray(d)?d:d!==void 0?[d]:[]}var w=typeof window!="undefined"&&window.document&&window.document.documentElement,z=w;function $(d){return d!=null}function Y(d){return!d&&d!==0}function U(d){return["string","number"].includes((0,I.Z)(d))}function B(d){var h=void 0;return d&&(U(d.title)?h=d.title.toString():U(d.label)&&(h=d.label.toString())),h}function V(d,h){z?p.useLayoutEffect(d,h):p.useEffect(d,h)}function fe(d){var h;return(h=d.key)!==null&&h!==void 0?h:d.value}var ue=function(h){h.preventDefault(),h.stopPropagation()},We=function(h){var E=h.id,H=h.prefixCls,be=h.values,ee=h.open,te=h.searchValue,ve=h.autoClearSearchValue,Le=h.inputRef,Ue=h.placeholder,A=h.disabled,ce=h.mode,Je=h.showSearch,Fe=h.autoFocus,Ve=h.autoComplete,Xe=h.activeDescendantId,mt=h.tabIndex,pe=h.removeIcon,Ee=h.maxTagCount,_e=h.maxTagTextLength,dt=h.maxTagPlaceholder,ot=dt===void 0?function(jt){return"+ ".concat(jt.length," ...")}:dt,yt=h.tagRender,en=h.onToggleOpen,Mt=h.onRemove,Bt=h.onInputChange,Yt=h.onInputPaste,Rt=h.onInputKeyDown,kt=h.onInputMouseDown,ln=h.onInputCompositionStart,on=h.onInputCompositionEnd,Qt=p.useRef(null),ht=(0,p.useState)(0),it=(0,v.Z)(ht,2),zt=it[0],Lt=it[1],bn=(0,p.useState)(!1),Kt=(0,v.Z)(bn,2),Jt=Kt[0],mn=Kt[1],Zt="".concat(H,"-selection"),Nn=ee||ce==="multiple"&&ve===!1||ce==="tags"?te:"",Gn=ce==="tags"||ce==="multiple"&&ve===!1||Je&&(ee||Jt);V(function(){Lt(Qt.current.scrollWidth)},[Nn]);function At(jt,yn,Rn,xn,Pn){return p.createElement("span",{className:D()("".concat(Zt,"-item"),(0,S.Z)({},"".concat(Zt,"-item-disabled"),Rn)),title:B(jt)},p.createElement("span",{className:"".concat(Zt,"-item-content")},yn),xn&&p.createElement(Ie,{className:"".concat(Zt,"-item-remove"),onMouseDown:ue,onClick:Pn,customizeIcon:pe},"\xD7"))}function vt(jt,yn,Rn,xn,Pn){var at=function(Et){ue(Et),en(!ee)};return p.createElement("span",{onMouseDown:at},yt({label:yn,value:jt,disabled:Rn,closable:xn,onClose:Pn}))}function bt(jt){var yn=jt.disabled,Rn=jt.label,xn=jt.value,Pn=!A&&!yn,at=Rn;if(typeof _e=="number"&&(typeof Rn=="string"||typeof Rn=="number")){var He=String(at);He.length>_e&&(at="".concat(He.slice(0,_e),"..."))}var Et=function(Ln){Ln&&Ln.stopPropagation(),Mt(jt)};return typeof yt=="function"?vt(xn,at,yn,Pn,Et):At(jt,at,yn,Pn,Et)}function an(jt){var yn=typeof ot=="function"?ot(jt):ot;return At({title:yn},yn,!1)}var sn=p.createElement("div",{className:"".concat(Zt,"-search"),style:{width:zt},onFocus:function(){mn(!0)},onBlur:function(){mn(!1)}},p.createElement(le,{ref:Le,open:ee,prefixCls:H,id:E,inputElement:null,disabled:A,autoFocus:Fe,autoComplete:Ve,editable:Gn,activeDescendantId:Xe,value:Nn,onKeyDown:Rt,onMouseDown:kt,onChange:Bt,onPaste:Yt,onCompositionStart:ln,onCompositionEnd:on,tabIndex:mt,attrs:(0,T.Z)(h,!0)}),p.createElement("span",{ref:Qt,className:"".concat(Zt,"-search-mirror"),"aria-hidden":!0},Nn,"\xA0")),qt=p.createElement(J.Z,{prefixCls:"".concat(Zt,"-overflow"),data:be,renderItem:bt,renderRest:an,suffix:sn,itemKey:fe,maxCount:Ee});return p.createElement(p.Fragment,null,qt,!be.length&&!Nn&&p.createElement("span",{className:"".concat(Zt,"-placeholder")},Ue))},Ke=We,xe=function(h){var E=h.inputElement,H=h.prefixCls,be=h.id,ee=h.inputRef,te=h.disabled,ve=h.autoFocus,Le=h.autoComplete,Ue=h.activeDescendantId,A=h.mode,ce=h.open,Je=h.values,Fe=h.placeholder,Ve=h.tabIndex,Xe=h.showSearch,mt=h.searchValue,pe=h.activeValue,Ee=h.maxLength,_e=h.onInputKeyDown,dt=h.onInputMouseDown,ot=h.onInputChange,yt=h.onInputPaste,en=h.onInputCompositionStart,Mt=h.onInputCompositionEnd,Bt=h.title,Yt=p.useState(!1),Rt=(0,v.Z)(Yt,2),kt=Rt[0],ln=Rt[1],on=A==="combobox",Qt=on||Xe,ht=Je[0],it=mt||"";on&&pe&&!kt&&(it=pe),p.useEffect(function(){on&&ln(!1)},[on,pe]);var zt=A!=="combobox"&&!ce&&!Xe?!1:!!it,Lt=Bt===void 0?B(ht):Bt,bn=function(){if(ht)return null;var Jt=zt?{visibility:"hidden"}:void 0;return p.createElement("span",{className:"".concat(H,"-selection-placeholder"),style:Jt},Fe)};return p.createElement(p.Fragment,null,p.createElement("span",{className:"".concat(H,"-selection-search")},p.createElement(le,{ref:ee,prefixCls:H,id:be,open:ce,inputElement:E,disabled:te,autoFocus:ve,autoComplete:Le,editable:Qt,activeDescendantId:Ue,value:it,onKeyDown:_e,onMouseDown:dt,onChange:function(Jt){ln(!0),ot(Jt)},onPaste:yt,onCompositionStart:en,onCompositionEnd:Mt,tabIndex:Ve,attrs:(0,T.Z)(h,!0),maxLength:on?Ee:void 0})),!on&&ht?p.createElement("span",{className:"".concat(H,"-selection-item"),title:Lt,style:zt?{visibility:"hidden"}:void 0},ht.label):null,bn())},Pe=xe;function Re(d){return![he.Z.ESC,he.Z.SHIFT,he.Z.BACKSPACE,he.Z.TAB,he.Z.WIN_KEY,he.Z.ALT,he.Z.META,he.Z.WIN_KEY_RIGHT,he.Z.CTRL,he.Z.SEMICOLON,he.Z.EQUALS,he.Z.CAPS_LOCK,he.Z.CONTEXT_MENU,he.Z.F1,he.Z.F2,he.Z.F3,he.Z.F4,he.Z.F5,he.Z.F6,he.Z.F7,he.Z.F8,he.Z.F9,he.Z.F10,he.Z.F11,he.Z.F12].includes(d)}var Ct=function(h,E){var H=(0,p.useRef)(null),be=(0,p.useRef)(!1),ee=h.prefixCls,te=h.open,ve=h.mode,Le=h.showSearch,Ue=h.tokenWithEnter,A=h.autoClearSearchValue,ce=h.onSearch,Je=h.onSearchSubmit,Fe=h.onToggleOpen,Ve=h.onInputKeyDown,Xe=h.domRef;p.useImperativeHandle(E,function(){return{focus:function(){H.current.focus()},blur:function(){H.current.blur()}}});var mt=f(0),pe=(0,v.Z)(mt,2),Ee=pe[0],_e=pe[1],dt=function(it){var zt=it.which;(zt===he.Z.UP||zt===he.Z.DOWN)&&it.preventDefault(),Ve&&Ve(it),zt===he.Z.ENTER&&ve==="tags"&&!be.current&&!te&&(Je==null||Je(it.target.value)),Re(zt)&&Fe(!0)},ot=function(){_e(!0)},yt=(0,p.useRef)(null),en=function(it){ce(it,!0,be.current)!==!1&&Fe(!0)},Mt=function(){be.current=!0},Bt=function(it){be.current=!1,ve!=="combobox"&&en(it.target.value)},Yt=function(it){var zt=it.target.value;if(Ue&&yt.current&&/[\r\n]/.test(yt.current)){var Lt=yt.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");zt=zt.replace(Lt,yt.current)}yt.current=null,en(zt)},Rt=function(it){var zt=it.clipboardData,Lt=zt.getData("text");yt.current=Lt},kt=function(it){var zt=it.target;if(zt!==H.current){var Lt=document.body.style.msTouchAction!==void 0;Lt?setTimeout(function(){H.current.focus()}):H.current.focus()}},ln=function(it){var zt=Ee();it.target!==H.current&&!zt&&ve!=="combobox"&&it.preventDefault(),(ve!=="combobox"&&(!Le||!zt)||!te)&&(te&&A!==!1&&ce("",!0,!1),Fe())},on={inputRef:H,onInputKeyDown:dt,onInputMouseDown:ot,onInputChange:Yt,onInputPaste:Rt,onInputCompositionStart:Mt,onInputCompositionEnd:Bt},Qt=ve==="multiple"||ve==="tags"?p.createElement(Ke,(0,x.Z)({},h,on)):p.createElement(Pe,(0,x.Z)({},h,on));return p.createElement("div",{ref:Xe,className:"".concat(ee,"-selector"),onClick:kt,onMouseDown:ln},Qt)},$t=p.forwardRef(Ct);$t.displayName="Selector";var ct=$t,nt=c(35593),Pt=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],st=function(h){var E=h===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:E,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:E,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:E,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:E,adjustY:1},htmlRegion:"scroll"}}},X=function(h,E){var H=h.prefixCls,be=h.disabled,ee=h.visible,te=h.children,ve=h.popupElement,Le=h.animation,Ue=h.transitionName,A=h.dropdownStyle,ce=h.dropdownClassName,Je=h.direction,Fe=Je===void 0?"ltr":Je,Ve=h.placement,Xe=h.builtinPlacements,mt=h.dropdownMatchSelectWidth,pe=h.dropdownRender,Ee=h.dropdownAlign,_e=h.getPopupContainer,dt=h.empty,ot=h.getTriggerDOMNode,yt=h.onPopupVisibleChange,en=h.onPopupMouseEnter,Mt=(0,P.Z)(h,Pt),Bt="".concat(H,"-dropdown"),Yt=ve;pe&&(Yt=pe(ve));var Rt=p.useMemo(function(){return Xe||st(mt)},[Xe,mt]),kt=Le?"".concat(Bt,"-").concat(Le):Ue,ln=typeof mt=="number",on=p.useMemo(function(){return ln?null:mt===!1?"minWidth":"width"},[mt,ln]),Qt=A;ln&&(Qt=(0,G.Z)((0,G.Z)({},Qt),{},{width:mt}));var ht=p.useRef(null);return p.useImperativeHandle(E,function(){return{getPopupElement:function(){return ht.current}}}),p.createElement(nt.Z,(0,x.Z)({},Mt,{showAction:yt?["click"]:[],hideAction:yt?["click"]:[],popupPlacement:Ve||(Fe==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Rt,prefixCls:Bt,popupTransitionName:kt,popup:p.createElement("div",{ref:ht,onMouseEnter:en},Yt),stretch:on,popupAlign:Ee,popupVisible:ee,getPopupContainer:_e,popupClassName:D()(ce,(0,S.Z)({},"".concat(Bt,"-empty"),dt)),popupStyle:Qt,getTriggerDOMNode:ot,onPopupVisibleChange:yt}),te)},ze=p.forwardRef(X);ze.displayName="SelectTrigger";var O=ze,Z=c(4537);function M(d,h){var E=d.key,H;return"value"in d&&(H=d.value),E!=null?E:H!==void 0?H:"rc-index-key-".concat(h)}function k(d,h){var E=d||{},H=E.label,be=E.value,ee=E.options,te=E.groupLabel,ve=H||(h?"children":"label");return{label:ve,value:be||"value",options:ee||"options",groupLabel:te||ve}}function q(d){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},E=h.fieldNames,H=h.childrenAsData,be=[],ee=k(E,!1),te=ee.label,ve=ee.value,Le=ee.options,Ue=ee.groupLabel;function A(ce,Je){ce.forEach(function(Fe){if(Je||!(Le in Fe)){var Ve=Fe[ve];be.push({key:M(Fe,be.length),groupOption:Je,data:Fe,label:Fe[te],value:Ve})}else{var Xe=Fe[Ue];Xe===void 0&&H&&(Xe=Fe.label),be.push({key:M(Fe,be.length),group:!0,data:Fe,label:Xe}),A(Fe[Le],!0)}})}return A(d,!1),be}function re(d){var h=(0,G.Z)({},d);return"props"in h||Object.defineProperty(h,"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`."),h}}),h}function ye(d,h){if(!h||!h.length)return null;var E=!1;function H(ee,te){var ve=(0,Z.Z)(te),Le=ve[0],Ue=ve.slice(1);if(!Le)return[ee];var A=ee.split(Le);return E=E||A.length>1,A.reduce(function(ce,Je){return[].concat((0,W.Z)(ce),(0,W.Z)(H(Je,Ue)))},[]).filter(function(ce){return ce})}var be=H(d,h);return E?be:null}var ie=["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"],De=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function ge(d){return d==="tags"||d==="multiple"}var Ne=p.forwardRef(function(d,h){var E,H,be=d.id,ee=d.prefixCls,te=d.className,ve=d.showSearch,Le=d.tagRender,Ue=d.direction,A=d.omitDomProps,ce=d.displayValues,Je=d.onDisplayValuesChange,Fe=d.emptyOptions,Ve=d.notFoundContent,Xe=Ve===void 0?"Not Found":Ve,mt=d.onClear,pe=d.mode,Ee=d.disabled,_e=d.loading,dt=d.getInputElement,ot=d.getRawInputElement,yt=d.open,en=d.defaultOpen,Mt=d.onDropdownVisibleChange,Bt=d.activeValue,Yt=d.onActiveValueChange,Rt=d.activeDescendantId,kt=d.searchValue,ln=d.autoClearSearchValue,on=d.onSearch,Qt=d.onSearchSplit,ht=d.tokenSeparators,it=d.allowClear,zt=d.suffixIcon,Lt=d.clearIcon,bn=d.OptionList,Kt=d.animation,Jt=d.transitionName,mn=d.dropdownStyle,Zt=d.dropdownClassName,Nn=d.dropdownMatchSelectWidth,Gn=d.dropdownRender,At=d.dropdownAlign,vt=d.placement,bt=d.builtinPlacements,an=d.getPopupContainer,sn=d.showAction,qt=sn===void 0?[]:sn,jt=d.onFocus,yn=d.onBlur,Rn=d.onKeyUp,xn=d.onKeyDown,Pn=d.onMouseDown,at=(0,P.Z)(d,ie),He=ge(pe),Et=(ve!==void 0?ve:He)||pe==="combobox",Tt=(0,G.Z)({},at);De.forEach(function(Cn){delete Tt[Cn]}),A==null||A.forEach(function(Cn){delete Tt[Cn]});var Ln=p.useState(!1),dr=(0,v.Z)(Ln,2),zn=dr[0],Yn=dr[1];p.useEffect(function(){Yn((0,j.Z)())},[]);var jn=p.useRef(null),Hn=p.useRef(null),An=p.useRef(null),Jn=p.useRef(null),Zn=p.useRef(null),_n=C(),xr=(0,v.Z)(_n,3),Mr=xr[0],vr=xr[1],Hr=xr[2];p.useImperativeHandle(h,function(){var Cn,vn;return{focus:(Cn=Jn.current)===null||Cn===void 0?void 0:Cn.focus,blur:(vn=Jn.current)===null||vn===void 0?void 0:vn.blur,scrollTo:function(br){var Kn;return(Kn=Zn.current)===null||Kn===void 0?void 0:Kn.scrollTo(br)}}});var tr=p.useMemo(function(){var Cn;if(pe!=="combobox")return kt;var vn=(Cn=ce[0])===null||Cn===void 0?void 0:Cn.value;return typeof vn=="string"||typeof vn=="number"?String(vn):""},[kt,pe,ce]),gr=pe==="combobox"&&typeof dt=="function"&&dt()||null,pr=typeof ot=="function"&&ot(),ii=(0,Be.x1)(Hn,pr==null||(E=pr.props)===null||E===void 0?void 0:E.ref),qr=p.useState(!1),Ur=(0,v.Z)(qr,2),jr=Ur[0],ei=Ur[1];(0,me.Z)(function(){ei(!0)},[]);var ti=(0,_.Z)(!1,{defaultValue:en,value:yt}),$r=(0,v.Z)(ti,2),Ir=$r[0],Xr=$r[1],St=jr?Ir:!1,Ut=!Xe&&Fe;(Ee||Ut&&St&&pe==="combobox")&&(St=!1);var pt=Ut?!1:St,gt=p.useCallback(function(Cn){var vn=Cn!==void 0?Cn:!St;Ee||(Xr(vn),St!==vn&&(Mt==null||Mt(vn)))},[Ee,St,Xr,Mt]),Sn=p.useMemo(function(){return(ht||[]).some(function(Cn){return[`
|
|
|
`,`\r
|
|
|
`].includes(Cn)})},[ht]),wn=function(vn,lr,br){var Kn=!0,wr=vn;Yt==null||Yt(null);var zr=br?null:ye(vn,ht);return pe!=="combobox"&&zr&&(wr="",Qt==null||Qt(zr),gt(!1),Kn=!1),on&&tr!==wr&&on(wr,{source:lr?"typing":"effect"}),Kn},qn=function(vn){!vn||!vn.trim()||on(vn,{source:"submit"})};p.useEffect(function(){!St&&!He&&pe!=="combobox"&&wn("",!1,!1)},[St]),p.useEffect(function(){Ir&&Ee&&Xr(!1),Ee&&vr(!1)},[Ee]);var ar=f(),mr=(0,v.Z)(ar,2),kn=mr[0],yr=mr[1],Yr=function(vn){var lr=kn(),br=vn.which;if(br===he.Z.ENTER&&(pe!=="combobox"&&vn.preventDefault(),St||gt(!0)),yr(!!tr),br===he.Z.BACKSPACE&&!lr&&He&&!tr&&ce.length){for(var Kn=(0,W.Z)(ce),wr=null,zr=Kn.length-1;zr>=0;zr-=1){var ai=Kn[zr];if(!ai.disabled){Kn.splice(zr,1),wr=ai;break}}wr&&Je(Kn,{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&&Zn.current){var Zr;(Zr=Zn.current).onKeyDown.apply(Zr,[vn].concat(li))}xn==null||xn.apply(void 0,[vn].concat(li))},oi=function(vn){for(var lr=arguments.length,br=new Array(lr>1?lr-1:0),Kn=1;Kn<lr;Kn++)br[Kn-1]=arguments[Kn];if(St&&Zn.current){var wr;(wr=Zn.current).onKeyUp.apply(wr,[vn].concat(br))}Rn==null||Rn.apply(void 0,[vn].concat(br))},ci=function(vn){var lr=ce.filter(function(br){return br!==vn});Je(lr,{type:"remove",values:[vn]})},Fr=p.useRef(!1),ut=function(){vr(!0),Ee||(jt&&!Fr.current&&jt.apply(void 0,arguments),qt.includes("focus")&>(!0)),Fr.current=!0},Gt=function(){vr(!1,function(){Fr.current=!1,gt(!1)}),!Ee&&(tr&&(pe==="tags"?on(tr,{source:"submit"}):pe==="multiple"&&on("",{source:"blur"})),yn&&yn.apply(void 0,arguments))},Mn=[];p.useEffect(function(){return function(){Mn.forEach(function(Cn){return clearTimeout(Cn)}),Mn.splice(0,Mn.length)}},[]);var Dn=function(vn){var lr,br=vn.target,Kn=(lr=An.current)===null||lr===void 0?void 0:lr.getPopupElement();if(Kn&&Kn.contains(br)){var wr=setTimeout(function(){var li=Mn.indexOf(wr);if(li!==-1&&Mn.splice(li,1),Hr(),!zn&&!Kn.contains(document.activeElement)){var Gr;(Gr=Jn.current)===null||Gr===void 0||Gr.focus()}});Mn.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];Pn==null||Pn.apply(void 0,[vn].concat(ai))},Fn=p.useState({}),ni=(0,v.Z)(Fn,2),fi=ni[1];function Rr(){fi({})}var Lr;pr&&(Lr=function(vn){gt(vn)}),b(function(){var Cn;return[jn.current,(Cn=An.current)===null||Cn===void 0?void 0:Cn.getPopupElement()]},pt,gt,!!pr);var Ui=p.useMemo(function(){return(0,G.Z)((0,G.Z)({},d),{},{notFoundContent:Xe,open:St,triggerOpen:pt,id:be,showSearch:Et,multiple:He,toggleOpen:gt})},[d,Xe,pt,St,be,Et,He,gt]),So=!!zt||_e,Vi;So&&(Vi=p.createElement(Ie,{className:D()("".concat(ee,"-arrow"),(0,S.Z)({},"".concat(ee,"-arrow-loading"),_e)),customizeIcon:zt,customizeIconProps:{loading:_e,searchValue:tr,open:St,focused:Mr,showSearch:Et}}));var jo=function(){var vn;mt==null||mt(),(vn=Jn.current)===null||vn===void 0||vn.focus(),Je([],{type:"clear",values:ce}),wn("",!1,!1)},Gi=Se(ee,jo,ce,it,Lt,Ee,tr,pe),Xi=Gi.allowClear,di=Gi.clearIcon,Vr=p.createElement(bn,{ref:Zn}),Co=D()(ee,te,(H={},(0,S.Z)(H,"".concat(ee,"-focused"),Mr),(0,S.Z)(H,"".concat(ee,"-multiple"),He),(0,S.Z)(H,"".concat(ee,"-single"),!He),(0,S.Z)(H,"".concat(ee,"-allow-clear"),it),(0,S.Z)(H,"".concat(ee,"-show-arrow"),So),(0,S.Z)(H,"".concat(ee,"-disabled"),Ee),(0,S.Z)(H,"".concat(ee,"-loading"),_e),(0,S.Z)(H,"".concat(ee,"-open"),St),(0,S.Z)(H,"".concat(ee,"-customize-input"),gr),(0,S.Z)(H,"".concat(ee,"-show-search"),Et),H)),Yi=p.createElement(O,{ref:An,disabled:Ee,prefixCls:ee,visible:pt,popupElement:Vr,animation:Kt,transitionName:Jt,dropdownStyle:mn,dropdownClassName:Zt,direction:Ue,dropdownMatchSelectWidth:Nn,dropdownRender:Gn,dropdownAlign:At,placement:vt,builtinPlacements:bt,getPopupContainer:an,empty:Fe,getTriggerDOMNode:function(){return Hn.current},onPopupVisibleChange:Lr,onPopupMouseEnter:Rr},pr?p.cloneElement(pr,{ref:ii}):p.createElement(ct,(0,x.Z)({},d,{domRef:Hn,prefixCls:ee,inputElement:gr,ref:Jn,id:be,showSearch:Et,autoClearSearchValue:ln,mode:pe,activeDescendantId:Rt,tagRender:Le,values:ce,open:St,onToggleOpen:gt,activeValue:Bt,searchValue:tr,onSearch:wn,onSearchSubmit:qn,onRemove:ci,tokenWithEnter:Sn}))),Qi;return pr?Qi=Yi:Qi=p.createElement("div",(0,x.Z)({className:Co},Tt,{ref:jn,onMouseDown:Dn,onKeyDown:Yr,onKeyUp:oi,onFocus:ut,onBlur:Gt}),Mr&&!St&&p.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(ce.map(function(Cn){var vn=Cn.label,lr=Cn.value;return["number","string"].includes((0,I.Z)(vn))?vn:lr}).join(", "))),Yi,Vi,Xi&&di),p.createElement(ne.Provider,{value:Ui},Qi)}),we=Ne,Te=function(d,h){var E=p.useRef({values:new Map,options:new Map}),H=p.useMemo(function(){var ee=E.current,te=ee.values,ve=ee.options,Le=d.map(function(ce){if(ce.label===void 0){var Je;return(0,G.Z)((0,G.Z)({},ce),{},{label:(Je=te.get(ce.value))===null||Je===void 0?void 0:Je.label})}return ce}),Ue=new Map,A=new Map;return Le.forEach(function(ce){Ue.set(ce.value,ce),A.set(ce.value,h.get(ce.value)||ve.get(ce.value))}),E.current.values=Ue,E.current.options=A,Le},[d,h]),be=p.useCallback(function(ee){return h.get(ee)||E.current.options.get(ee)},[h]);return[H,be]};function $e(d,h){return R(d).join("").toUpperCase().includes(h)}var oe=function(d,h,E,H,be){return p.useMemo(function(){if(!E||H===!1)return d;var ee=h.options,te=h.label,ve=h.value,Le=[],Ue=typeof H=="function",A=E.toUpperCase(),ce=Ue?H:function(Fe,Ve){return be?$e(Ve[be],A):Ve[ee]?$e(Ve[te!=="children"?te:"label"],A):$e(Ve[ve],A)},Je=Ue?function(Fe){return re(Fe)}:function(Fe){return Fe};return d.forEach(function(Fe){if(Fe[ee]){var Ve=ce(E,Je(Fe));if(Ve)Le.push(Fe);else{var Xe=Fe[ee].filter(function(mt){return ce(E,Je(mt))});Xe.length&&Le.push((0,G.Z)((0,G.Z)({},Fe),{},(0,S.Z)({},ee,Xe)))}return}ce(E,Je(Fe))&&Le.push(Fe)}),Le},[d,H,be,E,h])},Qe=c(17115),Ze=c(11592),Ge=["children","value"],rt=["children"];function wt(d){var h=d,E=h.key,H=h.props,be=H.children,ee=H.value,te=(0,P.Z)(H,Ge);return(0,G.Z)({key:E,value:ee!==void 0?ee:E,children:be},te)}function ke(d){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,Ze.Z)(d).map(function(E,H){if(!p.isValidElement(E)||!E.type)return null;var be=E,ee=be.type.isSelectOptGroup,te=be.key,ve=be.props,Le=ve.children,Ue=(0,P.Z)(ve,rt);return h||!ee?wt(E):(0,G.Z)((0,G.Z)({key:"__RC_SELECT_GRP__".concat(te===null?H:te,"__"),label:te},Ue),{},{options:ke(Le)})}).filter(function(E){return E})}function Ot(d,h,E,H,be){return p.useMemo(function(){var ee=d,te=!d;te&&(ee=ke(h));var ve=new Map,Le=new Map,Ue=function(Je,Fe,Ve){Ve&&typeof Ve=="string"&&Je.set(Fe[Ve],Fe)};function A(ce){for(var Je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Fe=0;Fe<ce.length;Fe+=1){var Ve=ce[Fe];!Ve[E.options]||Je?(ve.set(Ve[E.value],Ve),Ue(Le,Ve,E.label),Ue(Le,Ve,H),Ue(Le,Ve,be)):A(Ve[E.options],!0)}}return A(ee),{options:ee,valueOptions:ve,labelOptions:Le}},[d,h,E,H,be])}function It(d){var h=p.useRef();h.current=d;var E=p.useCallback(function(){return h.current.apply(h,arguments)},[]);return E}var _t=function(){return null};_t.isSelectOptGroup=!0;var Vt=_t,fn=function(){return null};fn.isSelectOption=!0;var dn=fn,un=c(80547),En=c(2738),On=c(24916),Ft=p.createContext(null),nn=Ft;function Ht(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var cn=["disabled","title","children","style","className"];function Nt(d){return typeof d=="string"||typeof d=="number"}var hn=function(h,E){var H=Q(),be=H.prefixCls,ee=H.id,te=H.open,ve=H.multiple,Le=H.mode,Ue=H.searchValue,A=H.toggleOpen,ce=H.notFoundContent,Je=H.onPopupScroll,Fe=p.useContext(nn),Ve=Fe.flattenOptions,Xe=Fe.onActiveValue,mt=Fe.defaultActiveFirstOption,pe=Fe.onSelect,Ee=Fe.menuItemSelectedIcon,_e=Fe.rawValues,dt=Fe.fieldNames,ot=Fe.virtual,yt=Fe.direction,en=Fe.listHeight,Mt=Fe.listItemHeight,Bt="".concat(be,"-item"),Yt=(0,un.Z)(function(){return Ve},[te,Ve],function(At,vt){return vt[0]&&At[1]!==vt[1]}),Rt=p.useRef(null),kt=function(vt){vt.preventDefault()},ln=function(vt){Rt.current&&Rt.current.scrollTo(typeof vt=="number"?{index:vt}:vt)},on=function(vt){for(var bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,an=Yt.length,sn=0;sn<an;sn+=1){var qt=(vt+sn*bt+an)%an,jt=Yt[qt],yn=jt.group,Rn=jt.data;if(!yn&&!Rn.disabled)return qt}return-1},Qt=p.useState(function(){return on(0)}),ht=(0,v.Z)(Qt,2),it=ht[0],zt=ht[1],Lt=function(vt){var bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;zt(vt);var an={source:bt?"keyboard":"mouse"},sn=Yt[vt];if(!sn){Xe(null,-1,an);return}Xe(sn.value,vt,an)};(0,p.useEffect)(function(){Lt(mt!==!1?on(0):-1)},[Yt.length,Ue]);var bn=p.useCallback(function(At){return _e.has(At)&&Le!=="combobox"},[Le,(0,W.Z)(_e).toString(),_e.size]);(0,p.useEffect)(function(){var At=setTimeout(function(){if(!ve&&te&&_e.size===1){var bt=Array.from(_e)[0],an=Yt.findIndex(function(sn){var qt=sn.data;return qt.value===bt});an!==-1&&(Lt(an),ln(an))}});if(te){var vt;(vt=Rt.current)===null||vt===void 0||vt.scrollTo(void 0)}return function(){return clearTimeout(At)}},[te,Ue,Ve.length]);var Kt=function(vt){vt!==void 0&&pe(vt,{selected:!_e.has(vt)}),ve||A(!1)};if(p.useImperativeHandle(E,function(){return{onKeyDown:function(vt){var bt=vt.which,an=vt.ctrlKey;switch(bt){case he.Z.N:case he.Z.P:case he.Z.UP:case he.Z.DOWN:{var sn=0;if(bt===he.Z.UP?sn=-1:bt===he.Z.DOWN?sn=1:Ht()&&an&&(bt===he.Z.N?sn=1:bt===he.Z.P&&(sn=-1)),sn!==0){var qt=on(it+sn,sn);ln(qt),Lt(qt,!0)}break}case he.Z.ENTER:{var jt=Yt[it];jt&&!jt.data.disabled?Kt(jt.value):Kt(void 0),te&&vt.preventDefault();break}case he.Z.ESC:A(!1),te&&vt.stopPropagation()}},onKeyUp:function(){},scrollTo:function(vt){ln(vt)}}}),Yt.length===0)return p.createElement("div",{role:"listbox",id:"".concat(ee,"_list"),className:"".concat(Bt,"-empty"),onMouseDown:kt},ce);var Jt=Object.keys(dt).map(function(At){return dt[At]}),mn=function(vt){return vt.label};function Zt(At,vt){var bt=At.group;return{role:bt?"presentation":"option",id:"".concat(ee,"_list_").concat(vt)}}var Nn=function(vt){var bt=Yt[vt];if(!bt)return null;var an=bt.data||{},sn=an.value,qt=bt.group,jt=(0,T.Z)(an,!0),yn=mn(bt);return bt?p.createElement("div",(0,x.Z)({"aria-label":typeof yn=="string"&&!qt?yn:null},jt,{key:vt},Zt(bt,vt),{"aria-selected":bn(sn)}),sn):null},Gn={role:"listbox",id:"".concat(ee,"_list")};return p.createElement(p.Fragment,null,ot&&p.createElement("div",(0,x.Z)({},Gn,{style:{height:0,width:0,overflow:"hidden"}}),Nn(it-1),Nn(it),Nn(it+1)),p.createElement(On.Z,{itemKey:"key",ref:Rt,data:Yt,height:en,itemHeight:Mt,fullHeight:!1,onMouseDown:kt,onScroll:Je,virtual:ot,direction:yt,innerProps:ot?null:Gn},function(At,vt){var bt,an=At.group,sn=At.groupOption,qt=At.data,jt=At.label,yn=At.value,Rn=qt.key;if(an){var xn,Pn=(xn=qt.title)!==null&&xn!==void 0?xn:Nt(jt)?jt.toString():void 0;return p.createElement("div",{className:D()(Bt,"".concat(Bt,"-group")),title:Pn},jt!==void 0?jt:Rn)}var at=qt.disabled,He=qt.title,Et=qt.children,Tt=qt.style,Ln=qt.className,dr=(0,P.Z)(qt,cn),zn=(0,En.Z)(dr,Jt),Yn=bn(yn),jn="".concat(Bt,"-option"),Hn=D()(Bt,jn,Ln,(bt={},(0,S.Z)(bt,"".concat(jn,"-grouped"),sn),(0,S.Z)(bt,"".concat(jn,"-active"),it===vt&&!at),(0,S.Z)(bt,"".concat(jn,"-disabled"),at),(0,S.Z)(bt,"".concat(jn,"-selected"),Yn),bt)),An=mn(At),Jn=!Ee||typeof Ee=="function"||Yn,Zn=typeof An=="number"?An:An||yn,_n=Nt(Zn)?Zn.toString():void 0;return He!==void 0&&(_n=He),p.createElement("div",(0,x.Z)({},(0,T.Z)(zn),ot?{}:Zt(At,vt),{"aria-selected":Yn,className:Hn,title:_n,onMouseMove:function(){it===vt||at||Lt(vt)},onClick:function(){at||Kt(yn)},style:Tt}),p.createElement("div",{className:"".concat(jn,"-content")},Zn),p.isValidElement(Ee)||Yn,Jn&&p.createElement(Ie,{className:"".concat(Bt,"-option-state"),customizeIcon:Ee,customizeIconProps:{isSelected:Yn}},Yn?"\u2713":null))}))},rn=p.forwardRef(hn);rn.displayName="OptionList";var Xt=rn;function In(d){var h=d.mode,E=d.options,H=d.children,be=d.backfill,ee=d.allowClear,te=d.placeholder,ve=d.getInputElement,Le=d.showSearch,Ue=d.onSearch,A=d.defaultOpen,ce=d.autoFocus,Je=d.labelInValue,Fe=d.value,Ve=d.inputValue,Xe=d.optionLabelProp,mt=isMultiple(h),pe=Le!==void 0?Le:mt||h==="combobox",Ee=E||convertChildrenToData(H);if(warning(h!=="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."),h==="tags"||h==="combobox"){var _e=Ee.some(function(yt){return yt.options?yt.options.some(function(en){return typeof("value"in en?en.value:en.key)=="number"}):typeof("value"in yt?yt.value:yt.key)=="number"});warning(!_e,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(h!=="combobox"||!Xe,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(h==="combobox"||!be,"`backfill` only works with `combobox` mode."),warning(h==="combobox"||!ve,"`getInputElement` only work with `combobox` mode."),noteOnce(h!=="combobox"||!ve||!ee||!te,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Ue&&!pe&&h!=="combobox"&&h!=="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."),Fe!=null){var dt=toArray(Fe);warning(!Je||dt.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(!mt||Array.isArray(Fe),"`value` should be array when `mode` is `multiple` or `tags`")}if(H){var ot=null;toNodeArray(H).some(function(yt){if(!React.isValidElement(yt)||!yt.type)return!1;var en=yt,Mt=en.type;if(Mt.isSelectOption)return!1;if(Mt.isSelectOptGroup){var Bt=toNodeArray(yt.props.children).every(function(Yt){return!React.isValidElement(Yt)||!yt.type||Yt.type.isSelectOption?!0:(ot=Yt.type,!1)});return!Bt}return ot=Mt,!0}),ot&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(ot.displayName||ot.name||ot,"`.")),warning(Ve===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Bn(d,h){if(d){var E=function H(be){for(var ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,te=0;te<be.length;te++){var ve=be[te];if(ve[h==null?void 0:h.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!ee&&Array.isArray(ve[h==null?void 0:h.options])&&H(ve[h==null?void 0:h.options],!0))break}};E(d)}}var ir=null,Vn=["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"],pn=["inputValue"];function tt(d){return!d||(0,I.Z)(d)!=="object"}var xt=p.forwardRef(function(d,h){var E=d.id,H=d.mode,be=d.prefixCls,ee=be===void 0?"rc-select":be,te=d.backfill,ve=d.fieldNames,Le=d.inputValue,Ue=d.searchValue,A=d.onSearch,ce=d.autoClearSearchValue,Je=ce===void 0?!0:ce,Fe=d.onSelect,Ve=d.onDeselect,Xe=d.dropdownMatchSelectWidth,mt=Xe===void 0?!0:Xe,pe=d.filterOption,Ee=d.filterSort,_e=d.optionFilterProp,dt=d.optionLabelProp,ot=d.options,yt=d.children,en=d.defaultActiveFirstOption,Mt=d.menuItemSelectedIcon,Bt=d.virtual,Yt=d.direction,Rt=d.listHeight,kt=Rt===void 0?200:Rt,ln=d.listItemHeight,on=ln===void 0?20:ln,Qt=d.value,ht=d.defaultValue,it=d.labelInValue,zt=d.onChange,Lt=(0,P.Z)(d,Vn),bn=(0,Qe.ZP)(E),Kt=ge(H),Jt=!!(!ot&&yt),mn=p.useMemo(function(){return pe===void 0&&H==="combobox"?!1:pe},[pe,H]),Zt=p.useMemo(function(){return k(ve,Jt)},[JSON.stringify(ve),Jt]),Nn=(0,_.Z)("",{value:Ue!==void 0?Ue:Le,postState:function(Ut){return Ut||""}}),Gn=(0,v.Z)(Nn,2),At=Gn[0],vt=Gn[1],bt=Ot(ot,yt,Zt,_e,dt),an=bt.valueOptions,sn=bt.labelOptions,qt=bt.options,jt=p.useCallback(function(St){var Ut=R(St);return Ut.map(function(pt){var gt,Sn,wn,qn,ar;if(tt(pt))gt=pt;else{var mr;wn=pt.key,Sn=pt.label,gt=(mr=pt.value)!==null&&mr!==void 0?mr:wn}var kn=an.get(gt);if(kn){var yr;if(Sn===void 0&&(Sn=kn==null?void 0:kn[dt||Zt.label]),wn===void 0&&(wn=(yr=kn==null?void 0:kn.key)!==null&&yr!==void 0?yr:gt),qn=kn==null?void 0:kn.disabled,ar=kn==null?void 0:kn.title,0)var Yr}return{label:Sn,value:gt,key:wn,disabled:qn,title:ar}})},[Zt,dt,an]),yn=(0,_.Z)(ht,{value:Qt}),Rn=(0,v.Z)(yn,2),xn=Rn[0],Pn=Rn[1],at=p.useMemo(function(){var St,Ut=jt(xn);return H==="combobox"&&Y((St=Ut[0])===null||St===void 0?void 0:St.value)?[]:Ut},[xn,jt,H]),He=Te(at,an),Et=(0,v.Z)(He,2),Tt=Et[0],Ln=Et[1],dr=p.useMemo(function(){if(!H&&Tt.length===1){var St=Tt[0];if(St.value===null&&(St.label===null||St.label===void 0))return[]}return Tt.map(function(Ut){var pt;return(0,G.Z)((0,G.Z)({},Ut),{},{label:(pt=Ut.label)!==null&&pt!==void 0?pt:Ut.value})})},[H,Tt]),zn=p.useMemo(function(){return new Set(Tt.map(function(St){return St.value}))},[Tt]);p.useEffect(function(){if(H==="combobox"){var St,Ut=(St=Tt[0])===null||St===void 0?void 0:St.value;vt($(Ut)?String(Ut):"")}},[Tt]);var Yn=It(function(St,Ut){var pt,gt=Ut!=null?Ut:St;return pt={},(0,S.Z)(pt,Zt.value,St),(0,S.Z)(pt,Zt.label,gt),pt}),jn=p.useMemo(function(){if(H!=="tags")return qt;var St=(0,W.Z)(qt),Ut=function(gt){return an.has(gt)};return(0,W.Z)(Tt).sort(function(pt,gt){return pt.value<gt.value?-1:1}).forEach(function(pt){var gt=pt.value;Ut(gt)||St.push(Yn(gt,pt.label))}),St},[Yn,qt,an,Tt,H]),Hn=oe(jn,Zt,At,mn,_e),An=p.useMemo(function(){return H!=="tags"||!At||Hn.some(function(St){return St[_e||"value"]===At})||Hn.some(function(St){return St[Zt.value]===At})?Hn:[Yn(At)].concat((0,W.Z)(Hn))},[Yn,_e,H,Hn,At,Zt]),Jn=p.useMemo(function(){return Ee?(0,W.Z)(An).sort(function(St,Ut){return Ee(St,Ut)}):An},[An,Ee]),Zn=p.useMemo(function(){return q(Jn,{fieldNames:Zt,childrenAsData:Jt})},[Jn,Zt,Jt]),_n=function(Ut){var pt=jt(Ut);if(Pn(pt),zt&&(pt.length!==Tt.length||pt.some(function(wn,qn){var ar;return((ar=Tt[qn])===null||ar===void 0?void 0:ar.value)!==(wn==null?void 0:wn.value)}))){var gt=it?pt:pt.map(function(wn){return wn.value}),Sn=pt.map(function(wn){return re(Ln(wn.value))});zt(Kt?gt:gt[0],Kt?Sn:Sn[0])}},xr=p.useState(null),Mr=(0,v.Z)(xr,2),vr=Mr[0],Hr=Mr[1],tr=p.useState(0),gr=(0,v.Z)(tr,2),pr=gr[0],ii=gr[1],qr=en!==void 0?en:H!=="combobox",Ur=p.useCallback(function(St,Ut){var pt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},gt=pt.source,Sn=gt===void 0?"keyboard":gt;ii(Ut),te&&H==="combobox"&&St!==null&&Sn==="keyboard"&&Hr(String(St))},[te,H]),jr=function(Ut,pt,gt){var Sn=function(){var Fr,ut=Ln(Ut);return[it?{label:ut==null?void 0:ut[Zt.label],value:Ut,key:(Fr=ut==null?void 0:ut.key)!==null&&Fr!==void 0?Fr:Ut}:Ut,re(ut)]};if(pt&&Fe){var wn=Sn(),qn=(0,v.Z)(wn,2),ar=qn[0],mr=qn[1];Fe(ar,mr)}else if(!pt&&Ve&>!=="clear"){var kn=Sn(),yr=(0,v.Z)(kn,2),Yr=yr[0],oi=yr[1];Ve(Yr,oi)}},ei=It(function(St,Ut){var pt,gt=Kt?Ut.selected:!0;gt?pt=Kt?[].concat((0,W.Z)(Tt),[St]):[St]:pt=Tt.filter(function(Sn){return Sn.value!==St}),_n(pt),jr(St,gt),H==="combobox"?Hr(""):(!ge||Je)&&(vt(""),Hr(""))}),ti=function(Ut,pt){_n(Ut);var gt=pt.type,Sn=pt.values;(gt==="remove"||gt==="clear")&&Sn.forEach(function(wn){jr(wn.value,!1,gt)})},$r=function(Ut,pt){if(vt(Ut),Hr(null),pt.source==="submit"){var gt=(Ut||"").trim();if(gt){var Sn=Array.from(new Set([].concat((0,W.Z)(zn),[gt])));_n(Sn),jr(gt,!0),vt("")}return}pt.source!=="blur"&&(H==="combobox"&&_n(Ut),A==null||A(Ut))},Ir=function(Ut){var pt=Ut;H!=="tags"&&(pt=Ut.map(function(Sn){var wn=sn.get(Sn);return wn==null?void 0:wn.value}).filter(function(Sn){return Sn!==void 0}));var gt=Array.from(new Set([].concat((0,W.Z)(zn),(0,W.Z)(pt))));_n(gt),gt.forEach(function(Sn){jr(Sn,!0)})},Xr=p.useMemo(function(){var St=Bt!==!1&&mt!==!1;return(0,G.Z)((0,G.Z)({},bt),{},{flattenOptions:Zn,onActiveValue:Ur,defaultActiveFirstOption:qr,onSelect:ei,menuItemSelectedIcon:Mt,rawValues:zn,fieldNames:Zt,virtual:St,direction:Yt,listHeight:kt,listItemHeight:on,childrenAsData:Jt})},[bt,Zn,Ur,qr,ei,Mt,zn,Zt,Bt,mt,kt,on,Jt]);return p.createElement(nn.Provider,{value:Xr},p.createElement(we,(0,x.Z)({},Lt,{id:bn,prefixCls:ee,ref:h,omitDomProps:pn,mode:H,displayValues:dr,onDisplayValuesChange:ti,direction:Yt,searchValue:At,onSearch:$r,autoClearSearchValue:Je,onSearchSplit:Ir,dropdownMatchSelectWidth:mt,OptionList:Xt,emptyOptions:!Zn.length,activeValue:vr,activeDescendantId:"".concat(bn,"_list_").concat(pr)})))}),m=xt;m.Option=dn,m.OptGroup=Vt;var K=m,ae=K},9296:function(tn,Me,c){"use strict";c.r(Me),c.d(Me,{ResizableTextArea:function(){return Ae},default:function(){return Y}});var x=c(96663),W=c(44127),S=c(90493),G=c(20135),v=c(72071),P=c(6620),I=c(19127),_=c(92310),se=c.n(_),p=c(93681),Ce=c(5643),D=c(18929),me=c(59301),j=c(29301),he=c(34280),Be=c(16089),Ye=`
|
|
|
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;
|
|
|
`,Ie=["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"],Se={},ne;function Q(U){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,V=U.getAttribute("id")||U.getAttribute("data-reactid")||U.getAttribute("name");if(B&&Se[V])return Se[V];var fe=window.getComputedStyle(U),ue=fe.getPropertyValue("box-sizing")||fe.getPropertyValue("-moz-box-sizing")||fe.getPropertyValue("-webkit-box-sizing"),We=parseFloat(fe.getPropertyValue("padding-bottom"))+parseFloat(fe.getPropertyValue("padding-top")),Ke=parseFloat(fe.getPropertyValue("border-bottom-width"))+parseFloat(fe.getPropertyValue("border-top-width")),xe=Ie.map(function(Re){return"".concat(Re,":").concat(fe.getPropertyValue(Re))}).join(";"),Pe={sizingStyle:xe,paddingSize:We,borderSize:Ke,boxSizing:ue};return B&&V&&(Se[V]=Pe),Pe}function C(U){var B=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;ne||(ne=document.createElement("textarea"),ne.setAttribute("tab-index","-1"),ne.setAttribute("aria-hidden","true"),document.body.appendChild(ne)),U.getAttribute("wrap")?ne.setAttribute("wrap",U.getAttribute("wrap")):ne.removeAttribute("wrap");var ue=Q(U,B),We=ue.paddingSize,Ke=ue.borderSize,xe=ue.boxSizing,Pe=ue.sizingStyle;ne.setAttribute("style","".concat(Pe,";").concat(Ye)),ne.value=U.value||U.placeholder||"";var Re=void 0,Ct=void 0,$t,ct=ne.scrollHeight;if(xe==="border-box"?ct+=Ke:xe==="content-box"&&(ct-=We),V!==null||fe!==null){ne.value=" ";var nt=ne.scrollHeight-We;V!==null&&(Re=nt*V,xe==="border-box"&&(Re=Re+We+Ke),ct=Math.max(Re,ct)),fe!==null&&(Ct=nt*fe,xe==="border-box"&&(Ct=Ct+We+Ke),$t=ct>Ct?"":"hidden",ct=Math.min(Ct,ct))}var Pt={height:ct,overflowY:$t,resize:"none"};return Re&&(Pt.minHeight=Re),Ct&&(Pt.maxHeight=Ct),Pt}var f=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],b=0,T=1,J=2,F=me.forwardRef(function(U,B){var V=U,fe=V.prefixCls,ue=V.onPressEnter,We=V.defaultValue,Ke=V.value,xe=V.autoSize,Pe=V.onResize,Re=V.className,Ct=V.style,$t=V.disabled,ct=V.onChange,nt=V.onInternalAutoSize,Pt=(0,P.Z)(V,f),st=(0,D.Z)(We,{value:Ke,postState:function(Vt){return Vt!=null?Vt:""}}),X=(0,v.Z)(st,2),ze=X[0],O=X[1],Z=function(Vt){O(Vt.target.value),ct==null||ct(Vt)},M=me.useRef();me.useImperativeHandle(B,function(){return{textArea:M.current}});var k=me.useMemo(function(){return xe&&(0,G.Z)(xe)==="object"?[xe.minRows,xe.maxRows]:[]},[xe]),q=(0,v.Z)(k,2),re=q[0],ye=q[1],ie=!!xe,De=function(){try{if(document.activeElement===M.current){var Vt=M.current,fn=Vt.selectionStart,dn=Vt.selectionEnd,un=Vt.scrollTop;M.current.setSelectionRange(fn,dn),M.current.scrollTop=un}}catch(En){}},ge=me.useState(J),Ne=(0,v.Z)(ge,2),we=Ne[0],Te=Ne[1],$e=me.useState(),oe=(0,v.Z)($e,2),Qe=oe[0],Ze=oe[1],Ge=function(){Te(b)};(0,he.Z)(function(){ie&&Ge()},[Ke,re,ye,ie]),(0,he.Z)(function(){if(we===b)Te(T);else if(we===T){var _t=C(M.current,!1,re,ye);Te(J),Ze(_t)}else De()},[we]);var rt=me.useRef(),wt=function(){Be.Z.cancel(rt.current)},ke=function(Vt){we===J&&(Pe==null||Pe(Vt),xe&&(wt(),rt.current=(0,Be.Z)(function(){Ge()})))};me.useEffect(function(){return wt},[]);var Ot=ie?Qe:null,It=(0,W.Z)((0,W.Z)({},Ct),Ot);return(we===b||we===T)&&(It.overflowY="hidden",It.overflowX="hidden"),me.createElement(j.Z,{onResize:ke,disabled:!(xe||Pe)},me.createElement("textarea",(0,x.Z)({},Pt,{ref:M,style:It,className:se()(fe,Re,(0,S.Z)({},"".concat(fe,"-disabled"),$t)),disabled:$t,value:ze,onChange:Z})))}),Ae=F,le=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function R(U,B){return(0,I.Z)(U||"").slice(0,B).join("")}function w(U,B,V,fe){var ue=V;return U?ue=R(V,fe):(0,I.Z)(B||"").length<V.length&&(0,I.Z)(V||"").length>fe&&(ue=B),ue}var z=me.forwardRef(function(U,B){var V,fe=U.defaultValue,ue=U.value,We=U.onFocus,Ke=U.onBlur,xe=U.onChange,Pe=U.allowClear,Re=U.maxLength,Ct=U.onCompositionStart,$t=U.onCompositionEnd,ct=U.suffix,nt=U.prefixCls,Pt=nt===void 0?"rc-textarea":nt,st=U.classes,X=U.showCount,ze=U.className,O=U.style,Z=U.disabled,M=U.hidden,k=U.classNames,q=U.styles,re=U.onResize,ye=(0,P.Z)(U,le),ie=(0,D.Z)(fe,{value:ue,defaultValue:fe}),De=(0,v.Z)(ie,2),ge=De[0],Ne=De[1],we=(0,me.useRef)(null),Te=me.useState(!1),$e=(0,v.Z)(Te,2),oe=$e[0],Qe=$e[1],Ze=me.useState(!1),Ge=(0,v.Z)(Ze,2),rt=Ge[0],wt=Ge[1],ke=me.useRef(),Ot=me.useRef(0),It=me.useState(null),_t=(0,v.Z)(It,2),Vt=_t[0],fn=_t[1],dn=function(){var tt;(tt=we.current)===null||tt===void 0||tt.textArea.focus()};(0,me.useImperativeHandle)(B,function(){return{resizableTextArea:we.current,focus:dn,blur:function(){var tt;(tt=we.current)===null||tt===void 0||tt.textArea.blur()}}}),(0,me.useEffect)(function(){Qe(function(pn){return!Z&&pn})},[Z]);var un=Number(Re)>0,En=function(tt){wt(!0),ke.current=ge,Ot.current=tt.currentTarget.selectionStart,Ct==null||Ct(tt)},On=function(tt){wt(!1);var xt=tt.currentTarget.value;if(un){var m,K=Ot.current>=Re+1||Ot.current===((m=ke.current)===null||m===void 0?void 0:m.length);xt=w(K,ke.current,xt,Re)}xt!==ge&&(Ne(xt),(0,Ce.rJ)(tt.currentTarget,tt,xe,xt)),$t==null||$t(tt)},Ft=function(tt){var xt=tt.target.value;if(!rt&&un){var m=tt.target.selectionStart>=Re+1||tt.target.selectionStart===xt.length||!tt.target.selectionStart;xt=w(m,ge,xt,Re)}Ne(xt),(0,Ce.rJ)(tt.currentTarget,tt,xe,xt)},nn=function(tt){var xt=ye.onPressEnter,m=ye.onKeyDown;tt.key==="Enter"&&xt&&xt(tt),m==null||m(tt)},Ht=function(tt){Qe(!0),We==null||We(tt)},cn=function(tt){Qe(!1),Ke==null||Ke(tt)},Nt=function(tt){var xt;Ne(""),dn(),(0,Ce.rJ)((xt=we.current)===null||xt===void 0?void 0:xt.textArea,tt,xe)},hn=(0,Ce.D7)(ge);!rt&&un&&ue==null&&(hn=R(hn,Re));var rn=ct,Xt;if(X){var In=(0,I.Z)(hn).length;(0,G.Z)(X)==="object"?Xt=X.formatter({value:hn,count:In,maxLength:Re}):Xt="".concat(In).concat(un?" / ".concat(Re):""),rn=me.createElement(me.Fragment,null,rn,me.createElement("span",{className:se()("".concat(Pt,"-data-count"),k==null?void 0:k.count),style:q==null?void 0:q.count},Xt))}var Bn=function(tt){var xt;re==null||re(tt),(xt=we.current)!==null&&xt!==void 0&&xt.textArea.style.height&&fn(!0)},ir=!ye.autoSize&&!X&&!Pe,Vn=me.createElement(p.BaseInput,{value:hn,allowClear:Pe,handleReset:Nt,suffix:rn,prefixCls:Pt,classes:{affixWrapper:se()(st==null?void 0:st.affixWrapper,(V={},(0,S.Z)(V,"".concat(Pt,"-show-count"),X),(0,S.Z)(V,"".concat(Pt,"-textarea-allow-clear"),Pe),V))},disabled:Z,focused:oe,className:ze,style:(0,W.Z)((0,W.Z)({},O),Vt&&!ir?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Xt=="string"?Xt:void 0}},hidden:M,inputElement:me.createElement(Ae,(0,x.Z)({},ye,{onKeyDown:nn,onChange:Ft,onFocus:Ht,onBlur:cn,onCompositionStart:En,onCompositionEnd:On,className:k==null?void 0:k.textarea,style:(0,W.Z)((0,W.Z)({},q==null?void 0:q.textarea),{},{resize:O==null?void 0:O.resize}),disabled:Z,prefixCls:Pt,onResize:Bn,ref:we}))});return Vn}),$=z,Y=$},55477:function(tn,Me,c){"use strict";c.d(Me,{G:function(){return me},Z:function(){return Ye}});var x=c(96663),W=c(44127),S=c(6620),G=c(35593),v=c(59301),P={shiftX:64,adjustY:1},I={adjustX:1,shiftY:!0},_=[0,0],se={left:{points:["cr","cl"],overflow:I,offset:[-4,0],targetOffset:_},right:{points:["cl","cr"],overflow:I,offset:[4,0],targetOffset:_},top:{points:["bc","tc"],overflow:P,offset:[0,-4],targetOffset:_},bottom:{points:["tc","bc"],overflow:P,offset:[0,4],targetOffset:_},topLeft:{points:["bl","tl"],overflow:P,offset:[0,-4],targetOffset:_},leftTop:{points:["tr","tl"],overflow:I,offset:[-4,0],targetOffset:_},topRight:{points:["br","tr"],overflow:P,offset:[0,-4],targetOffset:_},rightTop:{points:["tl","tr"],overflow:I,offset:[4,0],targetOffset:_},bottomRight:{points:["tr","br"],overflow:P,offset:[0,4],targetOffset:_},rightBottom:{points:["bl","br"],overflow:I,offset:[4,0],targetOffset:_},bottomLeft:{points:["tl","bl"],overflow:P,offset:[0,4],targetOffset:_},leftBottom:{points:["br","bl"],overflow:I,offset:[-4,0],targetOffset:_}},p=null,Ce=c(92310),D=c.n(Ce);function me(Ie){var Se=Ie.children,ne=Ie.prefixCls,Q=Ie.id,C=Ie.overlayInnerStyle,f=Ie.className,b=Ie.style;return v.createElement("div",{className:D()("".concat(ne,"-content"),f),style:b},v.createElement("div",{className:"".concat(ne,"-inner"),id:Q,role:"tooltip",style:C},typeof Se=="function"?Se():Se))}var j=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],he=function(Se,ne){var Q=Se.overlayClassName,C=Se.trigger,f=C===void 0?["hover"]:C,b=Se.mouseEnterDelay,T=b===void 0?0:b,J=Se.mouseLeaveDelay,F=J===void 0?.1:J,Ae=Se.overlayStyle,le=Se.prefixCls,R=le===void 0?"rc-tooltip":le,w=Se.children,z=Se.onVisibleChange,$=Se.afterVisibleChange,Y=Se.transitionName,U=Se.animation,B=Se.motion,V=Se.placement,fe=V===void 0?"right":V,ue=Se.align,We=ue===void 0?{}:ue,Ke=Se.destroyTooltipOnHide,xe=Ke===void 0?!1:Ke,Pe=Se.defaultVisible,Re=Se.getTooltipContainer,Ct=Se.overlayInnerStyle,$t=Se.arrowContent,ct=Se.overlay,nt=Se.id,Pt=Se.showArrow,st=Pt===void 0?!0:Pt,X=(0,S.Z)(Se,j),ze=(0,v.useRef)(null);(0,v.useImperativeHandle)(ne,function(){return ze.current});var O=(0,W.Z)({},X);"visible"in Se&&(O.popupVisible=Se.visible);var Z=function(){return v.createElement(me,{key:"content",prefixCls:R,id:nt,overlayInnerStyle:Ct},ct)};return v.createElement(G.Z,(0,x.Z)({popupClassName:Q,prefixCls:R,popup:Z,action:f,builtinPlacements:se,popupPlacement:fe,ref:ze,popupAlign:We,getPopupContainer:Re,onPopupVisibleChange:z,afterPopupVisibleChange:$,popupTransitionName:Y,popupAnimation:U,popupMotion:B,defaultPopupVisible:Pe,autoDestroy:xe,mouseLeaveDelay:F,popupStyle:Ae,mouseEnterDelay:T,arrow:st},O),w)},Be=(0,v.forwardRef)(he),Ye=Be},49658:function(tn,Me){"use strict";Me.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))}},24916:function(tn,Me,c){"use strict";c.d(Me,{Z:function(){return st}});var x=c(96663),W=c(20135),S=c(44127),G=c(90493),v=c(72071),P=c(6620),I=c(92310),_=c.n(I),se=c(29301),p=c(70425),Ce=c(34280),D=c(59301),me=c(4676),j=D.forwardRef(function(X,ze){var O=X.height,Z=X.offsetY,M=X.offsetX,k=X.children,q=X.prefixCls,re=X.onInnerResize,ye=X.innerProps,ie=X.rtl,De=X.extra,ge={},Ne={display:"flex",flexDirection:"column"};return Z!==void 0&&(ge={height:O,position:"relative",overflow:"hidden"},Ne=(0,S.Z)((0,S.Z)({},Ne),{},(0,G.Z)((0,G.Z)((0,G.Z)((0,G.Z)((0,G.Z)({transform:"translateY(".concat(Z,"px)")},ie?"marginRight":"marginLeft",-M),"position","absolute"),"left",0),"right",0),"top",0))),D.createElement("div",{style:ge},D.createElement(se.Z,{onResize:function(Te){var $e=Te.offsetHeight;$e&&re&&re()}},D.createElement("div",(0,x.Z)({style:Ne,className:_()((0,G.Z)({},"".concat(q,"-holder-inner"),q)),ref:ze},ye),k,De)))});j.displayName="Filler";var he=j;function Be(X){var ze=X.children,O=X.setRef,Z=D.useCallback(function(M){O(M)},[]);return D.cloneElement(ze,{ref:Z})}function Ye(X,ze,O,Z,M,k,q,re){var ye=re.getKey;return X.slice(ze,O+1).map(function(ie,De){var ge=ze+De,Ne=q(ie,ge,{style:{width:Z},offsetX:M}),we=ye(ie);return D.createElement(Be,{key:we,setRef:function($e){return k(ie,$e)}},Ne)})}function Ie(X,ze,O,Z){var M=O-X,k=ze-O,q=Math.min(M,k)*2;if(Z<=q){var re=Math.floor(Z/2);return Z%2?O+re+1:O-re}return M>k?O-(Z-k):O+(Z-M)}function Se(X,ze,O){var Z=X.length,M=ze.length,k,q;if(Z===0&&M===0)return null;Z<M?(k=X,q=ze):(k=ze,q=X);var re={__EMPTY_ITEM__:!0};function ye(Te){return Te!==void 0?O(Te):re}for(var ie=null,De=Math.abs(Z-M)!==1,ge=0;ge<q.length;ge+=1){var Ne=ye(k[ge]),we=ye(q[ge]);if(Ne!==we){ie=ge,De=De||Ne!==ye(q[ge+1]);break}}return ie===null?null:{index:ie,multiple:De}}function ne(X,ze,O){var Z=D.useState(X),M=(0,v.Z)(Z,2),k=M[0],q=M[1],re=D.useState(null),ye=(0,v.Z)(re,2),ie=ye[0],De=ye[1];return D.useEffect(function(){var ge=Se(k||[],X||[],ze);(ge==null?void 0:ge.index)!==void 0&&(O==null||O(ge.index),De(X[ge.index])),q(X)},[X]),[ie]}var Q=c(16089),C=(typeof navigator=="undefined"?"undefined":(0,W.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),f=C,b=function(X,ze,O,Z){var M=(0,D.useRef)(!1),k=(0,D.useRef)(null);function q(){clearTimeout(k.current),M.current=!0,k.current=setTimeout(function(){M.current=!1},50)}var re=(0,D.useRef)({top:X,bottom:ze,left:O,right:Z});return re.current.top=X,re.current.bottom=ze,re.current.left=O,re.current.right=Z,function(ye,ie){var De=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,ge=ye?ie<0&&re.current.left||ie>0&&re.current.right:ie<0&&re.current.top||ie>0&&re.current.bottom;return De&&ge?(clearTimeout(k.current),M.current=!1):(!ge||M.current)&&q(),!M.current&&ge}};function T(X,ze,O,Z,M,k,q){var re=(0,D.useRef)(0),ye=(0,D.useRef)(null),ie=(0,D.useRef)(null),De=(0,D.useRef)(!1),ge=b(ze,O,Z,M);function Ne(Ze,Ge){if(Q.Z.cancel(ye.current),!ge(!1,Ge)){var rt=Ze;if(!rt._virtualHandled)rt._virtualHandled=!0;else return;re.current+=Ge,ie.current=Ge,f||rt.preventDefault(),ye.current=(0,Q.Z)(function(){var wt=De.current?10:1;q(re.current*wt,!1),re.current=0})}}function we(Ze,Ge){q(Ge,!0),f||Ze.preventDefault()}var Te=(0,D.useRef)(null),$e=(0,D.useRef)(null);function oe(Ze){if(X){Q.Z.cancel($e.current),$e.current=(0,Q.Z)(function(){Te.current=null},2);var Ge=Ze.deltaX,rt=Ze.deltaY,wt=Ze.shiftKey,ke=Ge,Ot=rt;(Te.current==="sx"||!Te.current&&wt&&rt&&!Ge)&&(ke=rt,Ot=0,Te.current="sx");var It=Math.abs(ke),_t=Math.abs(Ot);Te.current===null&&(Te.current=k&&It>_t?"x":"y"),Te.current==="y"?Ne(Ze,Ot):we(Ze,ke)}}function Qe(Ze){X&&(De.current=Ze.detail===ie.current)}return[oe,Qe]}function J(X,ze,O,Z){var M=D.useMemo(function(){return[new Map,[]]},[X,O.id,Z]),k=(0,v.Z)(M,2),q=k[0],re=k[1],ye=function(De){var ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:De,Ne=q.get(De),we=q.get(ge);if(Ne===void 0||we===void 0)for(var Te=X.length,$e=re.length;$e<Te;$e+=1){var oe,Qe=X[$e],Ze=ze(Qe);q.set(Ze,$e);var Ge=(oe=O.get(Ze))!==null&&oe!==void 0?oe:Z;if(re[$e]=(re[$e-1]||0)+Ge,Ze===De&&(Ne=$e),Ze===ge&&(we=$e),Ne!==void 0&&we!==void 0)break}return{top:re[Ne-1]||0,bottom:re[we]}};return ye}var F=c(52884),Ae=c(95727),le=function(){function X(){(0,F.Z)(this,X),(0,G.Z)(this,"maps",void 0),(0,G.Z)(this,"id",0),(0,G.Z)(this,"diffKeys",new Set),this.maps=Object.create(null)}return(0,Ae.Z)(X,[{key:"set",value:function(O,Z){this.maps[O]=Z,this.id+=1,this.diffKeys.add(O)}},{key:"get",value:function(O){return this.maps[O]}},{key:"resetRecord",value:function(){this.diffKeys.clear()}},{key:"getRecord",value:function(){return this.diffKeys}}]),X}(),R=le;function w(X){var ze=parseFloat(X);return isNaN(ze)?0:ze}function z(X,ze,O){var Z=D.useState(0),M=(0,v.Z)(Z,2),k=M[0],q=M[1],re=(0,D.useRef)(new Map),ye=(0,D.useRef)(new R),ie=(0,D.useRef)(0);function De(){ie.current+=1}function ge(){var we=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;De();var Te=function(){var Qe=!1;re.current.forEach(function(Ze,Ge){if(Ze&&Ze.offsetParent){var rt=Ze.offsetHeight,wt=getComputedStyle(Ze),ke=wt.marginTop,Ot=wt.marginBottom,It=w(ke),_t=w(Ot),Vt=rt+It+_t;ye.current.get(Ge)!==Vt&&(ye.current.set(Ge,Vt),Qe=!0)}}),Qe&&q(function(Ze){return Ze+1})};if(we)Te();else{ie.current+=1;var $e=ie.current;Promise.resolve().then(function(){$e===ie.current&&Te()})}}function Ne(we,Te){var $e=X(we),oe=re.current.get($e);Te?(re.current.set($e,Te),ge()):re.current.delete($e),!oe!=!Te&&(Te?ze==null||ze(we):O==null||O(we))}return(0,D.useEffect)(function(){return De},[]),[Ne,ge,ye.current,k]}var $=14/15;function Y(X,ze,O){var Z=(0,D.useRef)(!1),M=(0,D.useRef)(0),k=(0,D.useRef)(0),q=(0,D.useRef)(null),re=(0,D.useRef)(null),ye,ie=function(we){if(Z.current){var Te=Math.ceil(we.touches[0].pageX),$e=Math.ceil(we.touches[0].pageY),oe=M.current-Te,Qe=k.current-$e,Ze=Math.abs(oe)>Math.abs(Qe);Ze?M.current=Te:k.current=$e;var Ge=O(Ze,Ze?oe:Qe,!1,we);Ge&&we.preventDefault(),clearInterval(re.current),Ge&&(re.current=setInterval(function(){Ze?oe*=$:Qe*=$;var rt=Math.floor(Ze?oe:Qe);(!O(Ze,rt,!0)||Math.abs(rt)<=.1)&&clearInterval(re.current)},16))}},De=function(){Z.current=!1,ye()},ge=function(we){ye(),we.touches.length===1&&!Z.current&&(Z.current=!0,M.current=Math.ceil(we.touches[0].pageX),k.current=Math.ceil(we.touches[0].pageY),q.current=we.target,q.current.addEventListener("touchmove",ie,{passive:!1}),q.current.addEventListener("touchend",De,{passive:!0}))};ye=function(){q.current&&(q.current.removeEventListener("touchmove",ie),q.current.removeEventListener("touchend",De))},(0,Ce.Z)(function(){return X&&ze.current.addEventListener("touchstart",ge,{passive:!0}),function(){var Ne;(Ne=ze.current)===null||Ne===void 0||Ne.removeEventListener("touchstart",ge),ye(),clearInterval(re.current)}},[X])}function U(X){return Math.floor(Math.pow(X,.5))}function B(X,ze){var O="touches"in X?X.touches[0]:X;return O[ze?"pageX":"pageY"]-window[ze?"scrollX":"scrollY"]}function V(X,ze,O){D.useEffect(function(){var Z=ze.current;if(X&&Z){var M=!1,k,q,re=function(){Q.Z.cancel(k)},ye=function Ne(){re(),k=(0,Q.Z)(function(){O(q),Ne()})},ie=function(we){if(!we.target.draggable){var Te=we;Te._virtualHandled||(Te._virtualHandled=!0,M=!0)}},De=function(){M=!1,re()},ge=function(we){if(M){var Te=B(we,!1),$e=Z.getBoundingClientRect(),oe=$e.top,Qe=$e.bottom;if(Te<=oe){var Ze=oe-Te;q=-U(Ze),ye()}else if(Te>=Qe){var Ge=Te-Qe;q=U(Ge),ye()}else re()}};return Z.addEventListener("mousedown",ie),Z.ownerDocument.addEventListener("mouseup",De),Z.ownerDocument.addEventListener("mousemove",ge),function(){Z.removeEventListener("mousedown",ie),Z.ownerDocument.removeEventListener("mouseup",De),Z.ownerDocument.removeEventListener("mousemove",ge),re()}}},[X])}var fe=10;function ue(X,ze,O,Z,M,k,q,re){var ye=D.useRef(),ie=D.useState(null),De=(0,v.Z)(ie,2),ge=De[0],Ne=De[1];return(0,Ce.Z)(function(){if(ge&&ge.times<fe){if(!X.current){Ne(function(cn){return(0,S.Z)({},cn)});return}k();var we=ge.targetAlign,Te=ge.originAlign,$e=ge.index,oe=ge.offset,Qe=X.current.clientHeight,Ze=!1,Ge=we,rt=null;if(Qe){for(var wt=we||Te,ke=0,Ot=0,It=0,_t=Math.min(ze.length-1,$e),Vt=0;Vt<=_t;Vt+=1){var fn=M(ze[Vt]);Ot=ke;var dn=O.get(fn);It=Ot+(dn===void 0?Z:dn),ke=It}for(var un=wt==="top"?oe:Qe-oe,En=_t;En>=0;En-=1){var On=M(ze[En]),Ft=O.get(On);if(Ft===void 0){Ze=!0;break}if(un-=Ft,un<=0)break}switch(wt){case"top":rt=Ot-oe;break;case"bottom":rt=It-Qe+oe;break;default:{var nn=X.current.scrollTop,Ht=nn+Qe;Ot<nn?Ge="top":It>Ht&&(Ge="bottom")}}rt!==null&&q(rt),rt!==ge.lastTop&&(Ze=!0)}Ze&&Ne((0,S.Z)((0,S.Z)({},ge),{},{times:ge.times+1,targetAlign:Ge,lastTop:rt}))}},[ge,X.current]),function(we){if(we==null){re();return}if(Q.Z.cancel(ye.current),typeof we=="number")q(we);else if(we&&(0,W.Z)(we)==="object"){var Te,$e=we.align;"index"in we?Te=we.index:Te=ze.findIndex(function(Ze){return M(Ze)===we.key});var oe=we.offset,Qe=oe===void 0?0:oe;Ne({times:0,index:Te,offset:Qe,originAlign:$e})}}}var We=D.forwardRef(function(X,ze){var O=X.prefixCls,Z=X.rtl,M=X.scrollOffset,k=X.scrollRange,q=X.onStartMove,re=X.onStopMove,ye=X.onScroll,ie=X.horizontal,De=X.spinSize,ge=X.containerSize,Ne=X.style,we=X.thumbStyle,Te=X.showScrollBar,$e=D.useState(!1),oe=(0,v.Z)($e,2),Qe=oe[0],Ze=oe[1],Ge=D.useState(null),rt=(0,v.Z)(Ge,2),wt=rt[0],ke=rt[1],Ot=D.useState(null),It=(0,v.Z)(Ot,2),_t=It[0],Vt=It[1],fn=!Z,dn=D.useRef(),un=D.useRef(),En=D.useState(Te),On=(0,v.Z)(En,2),Ft=On[0],nn=On[1],Ht=D.useRef(),cn=function(){Te===!0||Te===!1||(clearTimeout(Ht.current),nn(!0),Ht.current=setTimeout(function(){nn(!1)},3e3))},Nt=k-ge||0,hn=ge-De||0,rn=D.useMemo(function(){if(M===0||Nt===0)return 0;var m=M/Nt;return m*hn},[M,Nt,hn]),Xt=function(K){K.stopPropagation(),K.preventDefault()},In=D.useRef({top:rn,dragging:Qe,pageY:wt,startTop:_t});In.current={top:rn,dragging:Qe,pageY:wt,startTop:_t};var Bn=function(K){Ze(!0),ke(B(K,ie)),Vt(In.current.top),q(),K.stopPropagation(),K.preventDefault()};D.useEffect(function(){var m=function(h){h.preventDefault()},K=dn.current,ae=un.current;return K.addEventListener("touchstart",m,{passive:!1}),ae.addEventListener("touchstart",Bn,{passive:!1}),function(){K.removeEventListener("touchstart",m),ae.removeEventListener("touchstart",Bn)}},[]);var ir=D.useRef();ir.current=Nt;var Vn=D.useRef();Vn.current=hn,D.useEffect(function(){if(Qe){var m,K=function(h){var E=In.current,H=E.dragging,be=E.pageY,ee=E.startTop;Q.Z.cancel(m);var te=dn.current.getBoundingClientRect(),ve=ge/(ie?te.width:te.height);if(H){var Le=(B(h,ie)-be)*ve,Ue=ee;!fn&&ie?Ue-=Le:Ue+=Le;var A=ir.current,ce=Vn.current,Je=ce?Ue/ce:0,Fe=Math.ceil(Je*A);Fe=Math.max(Fe,0),Fe=Math.min(Fe,A),m=(0,Q.Z)(function(){ye(Fe,ie)})}},ae=function(){Ze(!1),re()};return window.addEventListener("mousemove",K,{passive:!0}),window.addEventListener("touchmove",K,{passive:!0}),window.addEventListener("mouseup",ae,{passive:!0}),window.addEventListener("touchend",ae,{passive:!0}),function(){window.removeEventListener("mousemove",K),window.removeEventListener("touchmove",K),window.removeEventListener("mouseup",ae),window.removeEventListener("touchend",ae),Q.Z.cancel(m)}}},[Qe]),D.useEffect(function(){return cn(),function(){clearTimeout(Ht.current)}},[M]),D.useImperativeHandle(ze,function(){return{delayHidden:cn}});var pn="".concat(O,"-scrollbar"),tt={position:"absolute",visibility:Ft?null:"hidden"},xt={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return ie?(tt.height=8,tt.left=0,tt.right=0,tt.bottom=0,xt.height="100%",xt.width=De,fn?xt.left=rn:xt.right=rn):(tt.width=8,tt.top=0,tt.bottom=0,fn?tt.right=0:tt.left=0,xt.width="100%",xt.height=De,xt.top=rn),D.createElement("div",{ref:dn,className:_()(pn,(0,G.Z)((0,G.Z)((0,G.Z)({},"".concat(pn,"-horizontal"),ie),"".concat(pn,"-vertical"),!ie),"".concat(pn,"-visible"),Ft)),style:(0,S.Z)((0,S.Z)({},tt),Ne),onMouseDown:Xt,onMouseMove:cn},D.createElement("div",{ref:un,className:_()("".concat(pn,"-thumb"),(0,G.Z)({},"".concat(pn,"-thumb-moving"),Qe)),style:(0,S.Z)((0,S.Z)({},xt),we),onMouseDown:Bn}))}),Ke=We,xe=20;function Pe(){var X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,O=X/ze*X;return isNaN(O)&&(O=0),O=Math.max(O,xe),Math.floor(O)}var Re=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Ct=[],$t={overflowY:"auto",overflowAnchor:"none"};function ct(X,ze){var O=X.prefixCls,Z=O===void 0?"rc-virtual-list":O,M=X.className,k=X.height,q=X.itemHeight,re=X.fullHeight,ye=re===void 0?!0:re,ie=X.style,De=X.data,ge=X.children,Ne=X.itemKey,we=X.virtual,Te=X.direction,$e=X.scrollWidth,oe=X.component,Qe=oe===void 0?"div":oe,Ze=X.onScroll,Ge=X.onVirtualScroll,rt=X.onVisibleChange,wt=X.innerProps,ke=X.extraRender,Ot=X.styles,It=X.showScrollBar,_t=It===void 0?"optional":It,Vt=(0,P.Z)(X,Re),fn=D.useCallback(function(at){return typeof Ne=="function"?Ne(at):at==null?void 0:at[Ne]},[Ne]),dn=z(fn,null,null),un=(0,v.Z)(dn,4),En=un[0],On=un[1],Ft=un[2],nn=un[3],Ht=!!(we!==!1&&k&&q),cn=D.useMemo(function(){return Object.values(Ft.maps).reduce(function(at,He){return at+He},0)},[Ft.id,Ft.maps]),Nt=Ht&&De&&(Math.max(q*De.length,cn)>k||!!$e),hn=Te==="rtl",rn=_()(Z,(0,G.Z)({},"".concat(Z,"-rtl"),hn),M),Xt=De||Ct,In=(0,D.useRef)(),Bn=(0,D.useRef)(),ir=(0,D.useRef)(),Vn=(0,D.useState)(0),pn=(0,v.Z)(Vn,2),tt=pn[0],xt=pn[1],m=(0,D.useState)(0),K=(0,v.Z)(m,2),ae=K[0],d=K[1],h=(0,D.useState)(!1),E=(0,v.Z)(h,2),H=E[0],be=E[1],ee=function(){be(!0)},te=function(){be(!1)},ve={getKey:fn};function Le(at){xt(function(He){var Et;typeof at=="function"?Et=at(He):Et=at;var Tt=on(Et);return In.current.scrollTop=Tt,Tt})}var Ue=(0,D.useRef)({start:0,end:Xt.length}),A=(0,D.useRef)(),ce=ne(Xt,fn),Je=(0,v.Z)(ce,1),Fe=Je[0];A.current=Fe;var Ve=D.useMemo(function(){if(!Ht)return{scrollHeight:void 0,start:0,end:Xt.length-1,offset:void 0};if(!Nt){var at;return{scrollHeight:((at=Bn.current)===null||at===void 0?void 0:at.offsetHeight)||0,start:0,end:Xt.length-1,offset:void 0}}for(var He=0,Et,Tt,Ln,dr=Xt.length,zn=0;zn<dr;zn+=1){var Yn=Xt[zn],jn=fn(Yn),Hn=Ft.get(jn),An=He+(Hn===void 0?q:Hn);An>=tt&&Et===void 0&&(Et=zn,Tt=He),An>tt+k&&Ln===void 0&&(Ln=zn),He=An}return Et===void 0&&(Et=0,Tt=0,Ln=Math.ceil(k/q)),Ln===void 0&&(Ln=Xt.length-1),Ln=Math.min(Ln+1,Xt.length-1),{scrollHeight:He,start:Et,end:Ln,offset:Tt}},[Nt,Ht,tt,Xt,nn,k]),Xe=Ve.scrollHeight,mt=Ve.start,pe=Ve.end,Ee=Ve.offset;Ue.current.start=mt,Ue.current.end=pe,D.useLayoutEffect(function(){var at=Ft.getRecord();if(at.size===1){var He=Array.from(at)[0],Et=Xt[mt];if(Et){var Tt=fn(Et);if(Tt===He){var Ln=Ft.get(He),dr=Ln-q;Le(function(zn){return zn+dr})}}}Ft.resetRecord()},[Xe]);var _e=D.useState({width:0,height:k}),dt=(0,v.Z)(_e,2),ot=dt[0],yt=dt[1],en=function(He){yt({width:He.offsetWidth,height:He.offsetHeight})},Mt=(0,D.useRef)(),Bt=(0,D.useRef)(),Yt=D.useMemo(function(){return Pe(ot.width,$e)},[ot.width,$e]),Rt=D.useMemo(function(){return Pe(ot.height,Xe)},[ot.height,Xe]),kt=Xe-k,ln=(0,D.useRef)(kt);ln.current=kt;function on(at){var He=at;return Number.isNaN(ln.current)||(He=Math.min(He,ln.current)),He=Math.max(He,0),He}var Qt=tt<=0,ht=tt>=kt,it=ae<=0,zt=ae>=$e,Lt=b(Qt,ht,it,zt),bn=function(){return{x:hn?-ae:ae,y:tt}},Kt=(0,D.useRef)(bn()),Jt=(0,p.useEvent)(function(at){if(Ge){var He=(0,S.Z)((0,S.Z)({},bn()),at);(Kt.current.x!==He.x||Kt.current.y!==He.y)&&(Ge(He),Kt.current=He)}});function mn(at,He){var Et=at;He?((0,me.flushSync)(function(){d(Et)}),Jt()):Le(Et)}function Zt(at){var He=at.currentTarget.scrollTop;He!==tt&&Le(He),Ze==null||Ze(at),Jt()}var Nn=function(He){var Et=He,Tt=$e?$e-ot.width:0;return Et=Math.max(Et,0),Et=Math.min(Et,Tt),Et},Gn=(0,p.useEvent)(function(at,He){He?((0,me.flushSync)(function(){d(function(Et){var Tt=Et+(hn?-at:at);return Nn(Tt)})}),Jt()):Le(function(Et){var Tt=Et+at;return Tt})}),At=T(Ht,Qt,ht,it,zt,!!$e,Gn),vt=(0,v.Z)(At,2),bt=vt[0],an=vt[1];Y(Ht,In,function(at,He,Et,Tt){var Ln=Tt;return Lt(at,He,Et)?!1:!Ln||!Ln._virtualHandled?(Ln&&(Ln._virtualHandled=!0),bt({preventDefault:function(){},deltaX:at?He:0,deltaY:at?0:He}),!0):!1}),V(Nt,In,function(at){Le(function(He){return He+at})}),(0,Ce.Z)(function(){function at(Et){var Tt=Qt&&Et.detail<0,Ln=ht&&Et.detail>0;Ht&&!Tt&&!Ln&&Et.preventDefault()}var He=In.current;return He.addEventListener("wheel",bt,{passive:!1}),He.addEventListener("DOMMouseScroll",an,{passive:!0}),He.addEventListener("MozMousePixelScroll",at,{passive:!1}),function(){He.removeEventListener("wheel",bt),He.removeEventListener("DOMMouseScroll",an),He.removeEventListener("MozMousePixelScroll",at)}},[Ht,Qt,ht]),(0,Ce.Z)(function(){if($e){var at=Nn(ae);d(at),Jt({x:at})}},[ot.width,$e]);var sn=function(){var He,Et;(He=Mt.current)===null||He===void 0||He.delayHidden(),(Et=Bt.current)===null||Et===void 0||Et.delayHidden()},qt=ue(In,Xt,Ft,q,fn,function(){return On(!0)},Le,sn);D.useImperativeHandle(ze,function(){return{nativeElement:ir.current,getScrollInfo:bn,scrollTo:function(He){function Et(Tt){return Tt&&(0,W.Z)(Tt)==="object"&&("left"in Tt||"top"in Tt)}Et(He)?(He.left!==void 0&&d(Nn(He.left)),qt(He.top)):qt(He)}}}),(0,Ce.Z)(function(){if(rt){var at=Xt.slice(mt,pe+1);rt(at,Xt)}},[mt,pe,Xt]);var jt=J(Xt,fn,Ft,q),yn=ke==null?void 0:ke({start:mt,end:pe,virtual:Nt,offsetX:ae,offsetY:Ee,rtl:hn,getSize:jt}),Rn=Ye(Xt,mt,pe,$e,ae,En,ge,ve),xn=null;k&&(xn=(0,S.Z)((0,G.Z)({},ye?"height":"maxHeight",k),$t),Ht&&(xn.overflowY="hidden",$e&&(xn.overflowX="hidden"),H&&(xn.pointerEvents="none")));var Pn={};return hn&&(Pn.dir="rtl"),D.createElement("div",(0,x.Z)({ref:ir,style:(0,S.Z)((0,S.Z)({},ie),{},{position:"relative"}),className:rn},Pn,Vt),D.createElement(se.Z,{onResize:en},D.createElement(Qe,{className:"".concat(Z,"-holder"),style:xn,ref:In,onScroll:Zt,onMouseEnter:sn},D.createElement(he,{prefixCls:Z,height:Xe,offsetX:ae,offsetY:Ee,scrollWidth:$e,onInnerResize:On,ref:Bn,innerProps:wt,rtl:hn,extra:yn},Rn))),Nt&&Xe>k&&D.createElement(Ke,{ref:Mt,prefixCls:Z,scrollOffset:tt,scrollRange:Xe,rtl:hn,onScroll:mn,onStartMove:ee,onStopMove:te,spinSize:Rt,containerSize:ot.height,style:Ot==null?void 0:Ot.verticalScrollBar,thumbStyle:Ot==null?void 0:Ot.verticalScrollBarThumb,showScrollBar:_t}),Nt&&$e>ot.width&&D.createElement(Ke,{ref:Bt,prefixCls:Z,scrollOffset:ae,scrollRange:$e,rtl:hn,onScroll:mn,onStartMove:ee,onStopMove:te,spinSize:Yt,containerSize:ot.width,horizontal:!0,style:Ot==null?void 0:Ot.horizontalScrollBar,thumbStyle:Ot==null?void 0:Ot.horizontalScrollBarThumb,showScrollBar:_t}))}var nt=D.forwardRef(ct);nt.displayName="List";var Pt=nt,st=Pt},76374:function(tn,Me,c){"use strict";var x=function(){if(typeof Map!="undefined")return Map;function R(w,z){var $=-1;return w.some(function(Y,U){return Y[0]===z?($=U,!0):!1}),$}return function(){function w(){this.__entries__=[]}return Object.defineProperty(w.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),w.prototype.get=function(z){var $=R(this.__entries__,z),Y=this.__entries__[$];return Y&&Y[1]},w.prototype.set=function(z,$){var Y=R(this.__entries__,z);~Y?this.__entries__[Y][1]=$:this.__entries__.push([z,$])},w.prototype.delete=function(z){var $=this.__entries__,Y=R($,z);~Y&&$.splice(Y,1)},w.prototype.has=function(z){return!!~R(this.__entries__,z)},w.prototype.clear=function(){this.__entries__.splice(0)},w.prototype.forEach=function(z,$){$===void 0&&($=null);for(var Y=0,U=this.__entries__;Y<U.length;Y++){var B=U[Y];z.call($,B[1],B[0])}},w}()}(),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")()}(),G=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(S):function(R){return setTimeout(function(){return R(Date.now())},1e3/60)}}(),v=2;function P(R,w){var z=!1,$=!1,Y=0;function U(){z&&(z=!1,R()),$&&V()}function B(){G(U)}function V(){var fe=Date.now();if(z){if(fe-Y<v)return;$=!0}else z=!0,$=!1,setTimeout(B,w);Y=fe}return V}var I=20,_=["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=P(this.refresh.bind(this),I)}return R.prototype.addObserver=function(w){~this.observers_.indexOf(w)||this.observers_.push(w),this.connected_||this.connect_()},R.prototype.removeObserver=function(w){var z=this.observers_,$=z.indexOf(w);~$&&z.splice($,1),!z.length&&this.connected_&&this.disconnect_()},R.prototype.refresh=function(){var w=this.updateObservers_();w&&this.refresh()},R.prototype.updateObservers_=function(){var w=this.observers_.filter(function(z){return z.gatherActive(),z.hasActive()});return w.forEach(function(z){return z.broadcastActive()}),w.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(w){var z=w.propertyName,$=z===void 0?"":z,Y=_.some(function(U){return!!~$.indexOf(U)});Y&&this.refresh()},R.getInstance=function(){return this.instance_||(this.instance_=new R),this.instance_},R.instance_=null,R}(),Ce=function(R,w){for(var z=0,$=Object.keys(w);z<$.length;z++){var Y=$[z];Object.defineProperty(R,Y,{value:w[Y],enumerable:!1,writable:!1,configurable:!0})}return R},D=function(R){var w=R&&R.ownerDocument&&R.ownerDocument.defaultView;return w||S},me=f(0,0,0,0);function j(R){return parseFloat(R)||0}function he(R){for(var w=[],z=1;z<arguments.length;z++)w[z-1]=arguments[z];return w.reduce(function($,Y){var U=R["border-"+Y+"-width"];return $+j(U)},0)}function Be(R){for(var w=["top","right","bottom","left"],z={},$=0,Y=w;$<Y.length;$++){var U=Y[$],B=R["padding-"+U];z[U]=j(B)}return z}function Ye(R){var w=R.getBBox();return f(0,0,w.width,w.height)}function Ie(R){var w=R.clientWidth,z=R.clientHeight;if(!w&&!z)return me;var $=D(R).getComputedStyle(R),Y=Be($),U=Y.left+Y.right,B=Y.top+Y.bottom,V=j($.width),fe=j($.height);if($.boxSizing==="border-box"&&(Math.round(V+U)!==w&&(V-=he($,"left","right")+U),Math.round(fe+B)!==z&&(fe-=he($,"top","bottom")+B)),!ne(R)){var ue=Math.round(V+U)-w,We=Math.round(fe+B)-z;Math.abs(ue)!==1&&(V-=ue),Math.abs(We)!==1&&(fe-=We)}return f(Y.left,Y.top,V,fe)}var Se=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 ne(R){return R===D(R).document.documentElement}function Q(R){return W?Se(R)?Ye(R):Ie(R):me}function C(R){var w=R.x,z=R.y,$=R.width,Y=R.height,U=typeof DOMRectReadOnly!="undefined"?DOMRectReadOnly:Object,B=Object.create(U.prototype);return Ce(B,{x:w,y:z,width:$,height:Y,top:z,right:w+$,bottom:Y+z,left:w}),B}function f(R,w,z,$){return{x:R,y:w,width:z,height:$}}var b=function(){function R(w){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=f(0,0,0,0),this.target=w}return R.prototype.isActive=function(){var w=Q(this.target);return this.contentRect_=w,w.width!==this.broadcastWidth||w.height!==this.broadcastHeight},R.prototype.broadcastRect=function(){var w=this.contentRect_;return this.broadcastWidth=w.width,this.broadcastHeight=w.height,w},R}(),T=function(){function R(w,z){var $=C(z);Ce(this,{target:w,contentRect:$})}return R}(),J=function(){function R(w,z,$){if(this.activeObservations_=[],this.observations_=new x,typeof w!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=w,this.controller_=z,this.callbackCtx_=$}return R.prototype.observe=function(w){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(w instanceof D(w).Element))throw new TypeError('parameter 1 is not of type "Element".');var z=this.observations_;z.has(w)||(z.set(w,new b(w)),this.controller_.addObserver(this),this.controller_.refresh())}},R.prototype.unobserve=function(w){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(w instanceof D(w).Element))throw new TypeError('parameter 1 is not of type "Element".');var z=this.observations_;z.has(w)&&(z.delete(w),z.size||this.controller_.removeObserver(this))}},R.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},R.prototype.gatherActive=function(){var w=this;this.clearActive(),this.observations_.forEach(function(z){z.isActive()&&w.activeObservations_.push(z)})},R.prototype.broadcastActive=function(){if(this.hasActive()){var w=this.callbackCtx_,z=this.activeObservations_.map(function($){return new T($.target,$.broadcastRect())});this.callback_.call(w,z,w),this.clearActive()}},R.prototype.clearActive=function(){this.activeObservations_.splice(0)},R.prototype.hasActive=function(){return this.activeObservations_.length>0},R}(),F=typeof WeakMap!="undefined"?new WeakMap:new x,Ae=function(){function R(w){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 z=p.getInstance(),$=new J(w,z,this);F.set(this,$)}return R}();["observe","unobserve","disconnect"].forEach(function(R){Ae.prototype[R]=function(){var w;return(w=F.get(this))[R].apply(w,arguments)}});var le=function(){return typeof S.ResizeObserver!="undefined"?S.ResizeObserver:Ae}();Me.Z=le},16722:function(tn,Me,c){"use strict";c.d(Me,{Z:function(){return _}});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 Ce=getComputedStyle(se,null);return W(Ce.overflowY,p)||W(Ce.overflowX,p)||(D=>{const me=(j=>{if(!j.ownerDocument||!j.ownerDocument.defaultView)return null;try{return j.ownerDocument.defaultView.frameElement}catch(he){return null}})(D);return!!me&&(me.clientHeight<D.scrollHeight||me.clientWidth<D.scrollWidth)})(se)}return!1},G=(se,p,Ce,D,me,j,he,Be)=>j<se&&he>p||j>se&&he<p?0:j<=se&&Be<=Ce||he>=p&&Be>=Ce?j-se-D:he>p&&Be<Ce||j<se&&Be>Ce?he-p+me:0,v=se=>{const p=se.parentElement;return p==null?se.getRootNode().host||null:p},P=(se,p)=>{var Ce,D,me,j;if(typeof document=="undefined")return[];const{scrollMode:he,block:Be,inline:Ye,boundary:Ie,skipOverflowHiddenElements:Se}=p,ne=typeof Ie=="function"?Ie:Ke=>Ke!==Ie;if(!x(se))throw new TypeError("Invalid target");const Q=document.scrollingElement||document.documentElement,C=[];let f=se;for(;x(f)&&ne(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,Se)&&C.push(f)}const b=(D=(Ce=window.visualViewport)==null?void 0:Ce.width)!=null?D:innerWidth,T=(j=(me=window.visualViewport)==null?void 0:me.height)!=null?j:innerHeight,{scrollX:J,scrollY:F}=window,{height:Ae,width:le,top:R,right:w,bottom:z,left:$}=se.getBoundingClientRect(),{top:Y,right:U,bottom:B,left:V}=(Ke=>{const xe=window.getComputedStyle(Ke);return{top:parseFloat(xe.scrollMarginTop)||0,right:parseFloat(xe.scrollMarginRight)||0,bottom:parseFloat(xe.scrollMarginBottom)||0,left:parseFloat(xe.scrollMarginLeft)||0}})(se);let fe=Be==="start"||Be==="nearest"?R-Y:Be==="end"?z+B:R+Ae/2-Y+B,ue=Ye==="center"?$+le/2-V+U:Ye==="end"?w+U:$-V;const We=[];for(let Ke=0;Ke<C.length;Ke++){const xe=C[Ke],{height:Pe,width:Re,top:Ct,right:$t,bottom:ct,left:nt}=xe.getBoundingClientRect();if(he==="if-needed"&&R>=0&&$>=0&&z<=T&&w<=b&&(xe===Q&&!S(xe)||R>=Ct&&z<=ct&&$>=nt&&w<=$t))return We;const Pt=getComputedStyle(xe),st=parseInt(Pt.borderLeftWidth,10),X=parseInt(Pt.borderTopWidth,10),ze=parseInt(Pt.borderRightWidth,10),O=parseInt(Pt.borderBottomWidth,10);let Z=0,M=0;const k="offsetWidth"in xe?xe.offsetWidth-xe.clientWidth-st-ze:0,q="offsetHeight"in xe?xe.offsetHeight-xe.clientHeight-X-O:0,re="offsetWidth"in xe?xe.offsetWidth===0?0:Re/xe.offsetWidth:0,ye="offsetHeight"in xe?xe.offsetHeight===0?0:Pe/xe.offsetHeight:0;if(Q===xe)Z=Be==="start"?fe:Be==="end"?fe-T:Be==="nearest"?G(F,F+T,T,X,O,F+fe,F+fe+Ae,Ae):fe-T/2,M=Ye==="start"?ue:Ye==="center"?ue-b/2:Ye==="end"?ue-b:G(J,J+b,b,st,ze,J+ue,J+ue+le,le),Z=Math.max(0,Z+F),M=Math.max(0,M+J);else{Z=Be==="start"?fe-Ct-X:Be==="end"?fe-ct+O+q:Be==="nearest"?G(Ct,ct,Pe,X,O+q,fe,fe+Ae,Ae):fe-(Ct+Pe/2)+q/2,M=Ye==="start"?ue-nt-st:Ye==="center"?ue-(nt+Re/2)+k/2:Ye==="end"?ue-$t+ze+k:G(nt,$t,Re,st,ze+k,ue,ue+le,le);const{scrollLeft:ie,scrollTop:De}=xe;Z=ye===0?0:Math.max(0,Math.min(De+Z/ye,xe.scrollHeight-Pe/ye+q)),M=re===0?0:Math.max(0,Math.min(ie+M/re,xe.scrollWidth-Re/re+k)),fe+=De-Z,ue+=ie-M}We.push({el:xe,top:Z,left:M})}return We},I=se=>se===!1?{block:"end",inline:"nearest"}:(p=>p===Object(p)&&Object.keys(p).length!==0)(se)?se:{block:"start",inline:"nearest"};function _(se,p){if(!se.isConnected||!(me=>{let j=me;for(;j&&j.parentNode;){if(j.parentNode===document)return!0;j=j.parentNode instanceof ShadowRoot?j.parentNode.host:j.parentNode}return!1})(se))return;const Ce=(me=>{const j=window.getComputedStyle(me);return{top:parseFloat(j.scrollMarginTop)||0,right:parseFloat(j.scrollMarginRight)||0,bottom:parseFloat(j.scrollMarginBottom)||0,left:parseFloat(j.scrollMarginLeft)||0}})(se);if((me=>typeof me=="object"&&typeof me.behavior=="function")(p))return p.behavior(P(se,p));const D=typeof p=="boolean"||p==null?void 0:p.behavior;for(const{el:me,top:j,left:he}of P(se,I(p))){const Be=j-Ce.top+Ce.bottom,Ye=he-Ce.left+Ce.right;me.scroll({top:Be,left:Ye,behavior:D})}}}}]);
|