(self.webpackChunk=self.webpackChunk||[]).push([[7046],{40001:function(nn,xe,f){"use strict";f.d(xe,{Z:function(){return ye}});var E=f(92413),J=f(59301),C={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"},j=C,p=f(7657),P=function(y,Ce){return J.createElement(p.Z,(0,E.Z)({},y,{ref:Ce,icon:j}))},T=J.forwardRef(P),ye=T},84105:function(nn,xe,f){"use strict";f.d(xe,{Z:function(){return ye}});var E=f(92413),J=f(59301),C={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"},j=C,p=f(7657),P=function(y,Ce){return J.createElement(p.Z,(0,E.Z)({},y,{ref:Ce,icon:j}))},T=J.forwardRef(P),ye=T},73331:function(nn,xe,f){"use strict";f.d(xe,{Z:function(){return ye}});var E=f(92413),J=f(59301),C={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"},j=C,p=f(7657),P=function(y,Ce){return J.createElement(p.Z,(0,E.Z)({},y,{ref:Ce,icon:j}))},T=J.forwardRef(P),ye=T},15277:function(nn,xe,f){"use strict";f.d(xe,{Z:function(){return ye}});var E=f(92413),J=f(59301),C={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"},j=C,p=f(7657),P=function(y,Ce){return J.createElement(p.Z,(0,E.Z)({},y,{ref:Ce,icon:j}))},T=J.forwardRef(P),ye=T},61485:function(nn,xe,f){"use strict";f.d(xe,{Z:function(){return ye}});var E=f(92413),J=f(59301),C={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"},j=C,p=f(7657),P=function(y,Ce){return J.createElement(p.Z,(0,E.Z)({},y,{ref:Ce,icon:j}))},T=J.forwardRef(P),ye=T},47472:function(nn,xe,f){"use strict";f.d(xe,{Z:function(){return ye}});var E=f(92413),J=f(59301),C={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"},j=C,p=f(7657),P=function(y,Ce){return J.createElement(p.Z,(0,E.Z)({},y,{ref:Ce,icon:j}))},T=J.forwardRef(P),ye=T},37036:function(){"use strict"},95625:function(){"use strict"},9165:function(nn,xe,f){"use strict";f.d(xe,{t:function(){return N}});var E=f(59301),J=f(3113),C={buttonFixed:"buttonFixed___vyq30",button:"button___hxmYv",buttonWrap:"buttonWrap___uK8dl"},j=f(92310),p=f.n(j),P=Object.defineProperty,T=Object.getOwnPropertySymbols,ye=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,y=(ve,Oe,k)=>Oe in ve?P(ve,Oe,{enumerable:!0,configurable:!0,writable:!0,value:k}):ve[Oe]=k,Ce=(ve,Oe)=>{for(var k in Oe||(Oe={}))ye.call(Oe,k)&&y(ve,k,Oe[k]);if(T)for(var k of T(Oe))te.call(Oe,k)&&y(ve,k,Oe[k]);return ve};const N=({cancelText:ve="\u53D6\u6D88",okText:Oe="\u786E\u5B9A",loading:k=!1,hasOkBtn:Xe=!0,hasCancelBtn:nt=!0,okButtonProps:Ze={},onCancel:tt=()=>{},onOk:_=()=>{},className:Z=""})=>E.createElement("div",{className:p()(C.buttonFixed,Z)},E.createElement("div",{className:C.buttonWrap},nt&&E.createElement(J.ZP,{size:"middle",className:`${C.button} mr20`,onClick:tt},ve),Xe&&E.createElement(J.ZP,Ce({size:"middle",type:"primary",className:`${C.button} mr20`,loading:k,onClick:_},Ze),Oe)))},97692:function(nn,xe,f){"use strict";f.d(xe,{h:function(){return Z}});var E=f(59301),J=f(57809),C=f(78241),j=f(3113),p=f(89780),P=f.n(p),T=f(37036),ye=f(95625),te=Object.defineProperty,y=Object.defineProperties,Ce=Object.getOwnPropertyDescriptors,N=Object.getOwnPropertySymbols,ve=Object.prototype.hasOwnProperty,Oe=Object.prototype.propertyIsEnumerable,k=(S,c,b)=>c in S?te(S,c,{enumerable:!0,configurable:!0,writable:!0,value:b}):S[c]=b,Xe=(S,c)=>{for(var b in c||(c={}))ve.call(c,b)&&k(S,b,c[b]);if(N)for(var b of N(c))Oe.call(c,b)&&k(S,b,c[b]);return S},nt=(S,c)=>y(S,Ce(c));const Ze=J.default.Option,tt={labelCol:{span:4},wrapperCol:{span:20}},_={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"]};xe.Z=({callback:S,onCancel:c})=>{const[b,I]=(0,E.useState)("python");function F(be){I(_[be][1])}function R(be){S(be)}return E.createElement(C.default,nt(Xe({},tt),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:R,style:{width:500}}),E.createElement(C.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},E.createElement(J.default,{getPopupContainer:be=>be.parentNode,onChange:F},Object.keys(_).map(be=>E.createElement(Ze,{key:be,value:be},_[be][0])))),E.createElement(C.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},E.createElement(Z,{mode:b})),E.createElement("div",{className:"flex-container flex-end"},E.createElement(j.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),E.createElement(j.ZP,{type:"ghost",onClick:c},"\u53D6\u6D88")))};function Z({value:S,onChange:c,mode:b,options:I={}}){const F=(0,E.useRef)(),[R,be]=(0,E.useState)();return(0,E.useEffect)(()=>{if(R){let We=function(Ae){const me=Ae.getValue();c&&c(me)};return R.on("change",We),()=>{R.off("change",We)}}},[R,c]),(0,E.useEffect)(()=>{R&&R.setOption("mode",b)},[R,b]),(0,E.useEffect)(()=>{R&&(S!==R.getValue()||S==="")&&setTimeout(()=>{R.setValue(S||"")},300)},[R,S]),(0,E.useEffect)(()=>{if(F.current&&!R){const We=P().fromTextArea(F.current,Xe({mode:b,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},I));be(We)}},[F.current,R]),E.createElement("div",{className:"my-codemirror-container"},E.createElement("textarea",{ref:F}))}},30072:function(nn,xe,f){"use strict";f.r(xe),f.d(xe,{default:function(){return nt}});var E=f(59301),J=f(89070),C=f(78241),j=f(92832),p=f(97692),P=f(9165),T={bg:"bg___YV4bB",wrap:"wrap___kzW1f",title:"title___qum64",path:"path___G15kO",colorBlue:"colorBlue___LDjoN",width240:"width240___QOLSj"},ye=Object.defineProperty,te=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,Ce=Object.prototype.propertyIsEnumerable,N=(Ze,tt,_)=>tt in Ze?ye(Ze,tt,{enumerable:!0,configurable:!0,writable:!0,value:_}):Ze[tt]=_,ve=(Ze,tt)=>{for(var _ in tt||(tt={}))y.call(tt,_)&&N(Ze,_,tt[_]);if(te)for(var _ of te(tt))Ce.call(tt,_)&&N(Ze,_,tt[_]);return Ze},Oe=(Ze,tt)=>{var _={};for(var Z in Ze)y.call(Ze,Z)&&tt.indexOf(Z)<0&&(_[Z]=Ze[Z]);if(Ze!=null&&te)for(var Z of te(Ze))tt.indexOf(Z)<0&&Ce.call(Ze,Z)&&(_[Z]=Ze[Z]);return _},k=(Ze,tt,_)=>new Promise((Z,S)=>{var c=F=>{try{I(_.next(F))}catch(R){S(R)}},b=F=>{try{I(_.throw(F))}catch(R){S(R)}},I=F=>F.done?Z(F.value):Promise.resolve(F.value).then(c,b);I((_=_.apply(Ze,tt)).next())});const Xe=Ze=>{var tt=Ze,{shixunsDetail:_,globalSetting:Z,loading:S,user:c,dispatch:b}=tt,I=Oe(tt,["shixunsDetail","globalSetting","loading","user","dispatch"]);const F=(0,J.useLocation)(),[R,be]=(0,E.useState)({}),We=(0,E.useRef)(),Ae=(0,E.useRef)(),[me]=C.default.useForm(),[ut,ke]=(0,E.useState)("");(0,E.useEffect)(()=>(b({type:"globalSetting/footerToggle",payload:!1}),()=>{b({type:"globalSetting/footerToggle",payload:!0})}),[]),(0,E.useEffect)(()=>{const H=sessionStorage.getItem("pathArray");if(H){const G=H.split(",").join("/"),q=G.indexOf("/")===0?G.substr(1):G;ke(q)}},[]),(0,E.useEffect)(()=>{var H,G,q,ee;Ae.current=(G=(H=F.pathname)==null?void 0:H.split("/"))==null?void 0:G[2],We.current=((ee=(q=F.pathname)==null?void 0:q.split("/"))==null?void 0:ee[3])==="repository"},[]);const Ge=(...H)=>k(void 0,[...H],function*(G={}){if(yield b({type:"shixunsDetail/addRepositoryFile",payload:{id:Ae.current,message:G.commitMessage,content:G.codeMirror,path:`${ut?`${ut}/`:""}${G.path||""}`,secret_repository:We.current?void 0:!0}})){const ee=We.current?`/shixuns/${Ae.current}/repository${ut?`/master/shixun_show/${ut}`:""}`:`/shixuns/${Ae.current}/secret_repository`;J.history.replace(ee)}}),ae=()=>{var H,G;J.history.push(`/shixuns/${Ae.current}/${(G=(H=F.pathname)==null?void 0:H.split("/"))==null?void 0:G[3]}${ut?`/master/shixun_show/${ut}`:""}`)};return E.createElement("section",{className:T.bg},E.createElement("div",{className:T.wrap},E.createElement("div",{className:T.title},"\u65B0\u5EFA\u6587\u4EF6"),E.createElement(C.default,{className:"mt10",form:me,scrollToFirstError:!0,layout:"vertical",onFinish:Ge,onValuesChange:()=>be(ve({},me.getFieldsValue()))},E.createElement(C.default.Item,{label:"\u6587\u4EF6\u540D\u79F0\u6216\u6587\u4EF6\u8DEF\u5F84\uFF1A"},E.createElement(C.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},E.createElement("span",null,E.createElement("span",{className:"mr5"},ut?`${ut}/`:""),E.createElement(j.default,{className:T.width240,placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D\u79F0\u6216\u6587\u4EF6\u8DEF\u5F84"}))),E.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")),E.createElement(C.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"}]},E.createElement(j.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"})),E.createElement("div",{className:"mt10 mb20"},E.createElement(C.default.Item,{name:"codeMirror",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5185\u5BB9"}]},E.createElement(p.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"]}}))),E.createElement(C.default.Item,{noStyle:!0},E.createElement(P.t,{okButtonProps:{htmlType:"submit"},onCancel:ae})))))};var nt=(0,J.connect)(({shixunsDetail:Ze,loading:tt,globalSetting:_,user:Z})=>({shixunsDetail:Ze,globalSetting:_,user:Z,loading:tt.models.index}))(Xe)},19080:function(nn,xe,f){"use strict";f.d(xe,{F:function(){return p},Z:function(){return j}});var E=f(92310),J=f.n(E);const C=null;function j(P,T,ye){return J()({[`${P}-status-success`]:T==="success",[`${P}-status-warning`]:T==="warning",[`${P}-status-error`]:T==="error",[`${P}-status-validating`]:T==="validating",[`${P}-has-feedback`]:ye})}const p=(P,T)=>T||P},93891:function(nn,xe,f){"use strict";var E=f(59301),J=f(36355),C=f(64165);const j=p=>{const{componentName:P}=p,{getPrefixCls:T}=(0,E.useContext)(J.E_),ye=T("empty");switch(P){case"Table":case"List":return E.createElement(C.Z,{image:C.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return E.createElement(C.Z,{image:C.Z.PRESENTED_IMAGE_SIMPLE,className:`${ye}-small`});default:return E.createElement(C.Z,null)}};xe.Z=j},64165:function(nn,xe,f){"use strict";f.d(xe,{Z:function(){return _}});var E=f(92310),J=f.n(E),C=f(59301),j=f(36355),p=f(9763),P=f(64993),T=f(88088),te=()=>{const[,Z]=(0,T.Z)(),c=new P.C(Z.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return C.createElement("svg",{style:c,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},C.createElement("g",{fill:"none",fillRule:"evenodd"},C.createElement("g",{transform:"translate(24 31.67)"},C.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),C.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"}),C.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)"}),C.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"}),C.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"})),C.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"}),C.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},C.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),C.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},Ce=()=>{const[,Z]=(0,T.Z)(),{colorFill:S,colorFillTertiary:c,colorFillQuaternary:b,colorBgContainer:I}=Z,{borderColor:F,shadowColor:R,contentColor:be}=(0,C.useMemo)(()=>({borderColor:new P.C(S).onBackground(I).toHexShortString(),shadowColor:new P.C(c).onBackground(I).toHexShortString(),contentColor:new P.C(b).onBackground(I).toHexShortString()}),[S,c,b,I]);return C.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},C.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},C.createElement("ellipse",{fill:R,cx:"32",cy:"33",rx:"32",ry:"7"}),C.createElement("g",{fillRule:"nonzero",stroke:F},C.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"}),C.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:be}))))},N=f(83116),ve=f(37613);const Oe=Z=>{const{componentCls:S,margin:c,marginXS:b,marginXL:I,fontSize:F,lineHeight:R}=Z;return{[S]:{marginInline:b,fontSize:F,lineHeight:R,textAlign:"center",[`${S}-image`]:{height:Z.emptyImgHeight,marginBottom:b,opacity:Z.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${S}-description`]:{color:Z.colorText},[`${S}-footer`]:{marginTop:c},"&-normal":{marginBlock:I,color:Z.colorTextDisabled,[`${S}-description`]:{color:Z.colorTextDisabled},[`${S}-image`]:{height:Z.emptyImgHeightMD}},"&-small":{marginBlock:b,color:Z.colorTextDisabled,[`${S}-image`]:{height:Z.emptyImgHeightSM}}}}};var k=(0,N.Z)("Empty",Z=>{const{componentCls:S,controlHeightLG:c}=Z,b=(0,ve.TS)(Z,{emptyImgCls:`${S}-img`,emptyImgHeight:c*2.5,emptyImgHeightMD:c,emptyImgHeightSM:c*.875});return[Oe(b)]}),Xe=function(Z,S){var c={};for(var b in Z)Object.prototype.hasOwnProperty.call(Z,b)&&S.indexOf(b)<0&&(c[b]=Z[b]);if(Z!=null&&typeof Object.getOwnPropertySymbols=="function")for(var I=0,b=Object.getOwnPropertySymbols(Z);I{var{className:S,rootClassName:c,prefixCls:b,image:I=nt,description:F,children:R,imageStyle:be,style:We}=Z,Ae=Xe(Z,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:me,direction:ut,empty:ke}=C.useContext(j.E_),Ge=me("empty",b),[ae,H]=k(Ge),[G]=(0,p.Z)("Empty"),q=typeof F!="undefined"?F:G==null?void 0:G.description,ee=typeof q=="string"?q:"empty";let Ve=null;return typeof I=="string"?Ve=C.createElement("img",{alt:ee,src:I}):Ve=I,ae(C.createElement("div",Object.assign({className:J()(H,Ge,ke==null?void 0:ke.className,{[`${Ge}-normal`]:I===Ze,[`${Ge}-rtl`]:ut==="rtl"},S,c),style:Object.assign(Object.assign({},ke==null?void 0:ke.style),We)},Ae),C.createElement("div",{className:`${Ge}-image`,style:be},Ve),q&&C.createElement("div",{className:`${Ge}-description`},q),R&&C.createElement("div",{className:`${Ge}-footer`},R)))};tt.PRESENTED_IMAGE_DEFAULT=nt,tt.PRESENTED_IMAGE_SIMPLE=Ze;var _=tt},78241:function(nn,xe,f){"use strict";f.d(xe,{default:function(){return Mt}});var E=f(26407),J=f(92310),C=f.n(J),j=f(77900),p=f(59301),P=f(62892),T=f(32441);function ye(g){const[D,W]=p.useState(g);return p.useEffect(()=>{const d=setTimeout(()=>{W(g)},g.length?0:10);return()=>{clearTimeout(d)}},[g]),D}var te=f(17313),y=f(29878),Ce=f(8378),N=f(37613),ve=f(83116),k=g=>{const{componentCls:D}=g,W=`${D}-show-help`,d=`${D}-show-help-item`;return{[W]:{transition:`opacity ${g.motionDurationSlow} ${g.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[d]:{overflow:"hidden",transition:`height ${g.motionDurationSlow} ${g.motionEaseInOut}, opacity ${g.motionDurationSlow} ${g.motionEaseInOut}, transform ${g.motionDurationSlow} ${g.motionEaseInOut} !important`,[`&${d}-appear, &${d}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${d}-leave-active`]:{transform:"translateY(-5px)"}}}}};const Xe=g=>({legend:{display:"block",width:"100%",marginBottom:g.marginLG,padding:0,color:g.colorTextDescription,fontSize:g.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${g.lineWidth}px ${g.lineType} ${g.colorBorder}`},label:{fontSize:g.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 ${g.controlOutlineWidth}px ${g.controlOutline}`},output:{display:"block",paddingTop:15,color:g.colorText,fontSize:g.fontSize,lineHeight:g.lineHeight}}),nt=(g,D)=>{const{formItemCls:W}=g;return{[W]:{[`${W}-label > label`]:{height:D},[`${W}-control-input`]:{minHeight:D}}}},Ze=g=>{const{componentCls:D}=g;return{[g.componentCls]:Object.assign(Object.assign(Object.assign({},(0,te.Wf)(g)),Xe(g)),{[`${D}-text`]:{display:"inline-block",paddingInlineEnd:g.paddingSM},"&-small":Object.assign({},nt(g,g.controlHeightSM)),"&-large":Object.assign({},nt(g,g.controlHeightLG))})}},tt=g=>{const{formItemCls:D,iconCls:W,componentCls:d,rootPrefixCls:h,labelRequiredMarkColor:x,labelColor:L,labelFontSize:Q,labelHeight:B,labelColonMarginInlineStart:$,labelColonMarginInlineEnd:se,itemMarginBottom:ie}=g;return{[D]:Object.assign(Object.assign({},(0,te.Wf)(g)),{marginBottom:ie,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden, &-hidden.${h}-row`]:{display:"none"},"&-has-warning":{[`${D}-split`]:{color:g.colorError}},"&-has-error":{[`${D}-split`]:{color:g.colorWarning}},[`${D}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${g.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:B,color:L,fontSize:Q,[`> ${W}`]:{fontSize:g.fontSize,verticalAlign:"top"},[`&${D}-required:not(${D}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:g.marginXXS,color:x,fontSize:g.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${d}-hide-required-mark &`]:{display:"none"}},[`${D}-optional`]:{display:"inline-block",marginInlineStart:g.marginXXS,color:g.colorTextDescription,[`${d}-hide-required-mark &`]:{display:"none"}},[`${D}-tooltip`]:{color:g.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:g.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:$,marginInlineEnd:se},[`&${D}-no-colon::after`]:{content:'"\\a0"'}}},[`${D}-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:g.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[D]:{"&-explain, &-extra":{clear:"both",color:g.colorTextDescription,fontSize:g.fontSize,lineHeight:g.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:g.controlHeightSM,transition:`color ${g.motionDurationMid} ${g.motionEaseOut}`},"&-explain":{"&-error":{color:g.colorError},"&-warning":{color:g.colorWarning}}},[`&-with-help ${D}-explain`]:{height:"auto",opacity:1},[`${D}-feedback-icon`]:{fontSize:g.fontSize,textAlign:"center",visibility:"visible",animationName:y.kr,animationDuration:g.motionDurationMid,animationTimingFunction:g.motionEaseOutBack,pointerEvents:"none","&-success":{color:g.colorSuccess},"&-error":{color:g.colorError},"&-warning":{color:g.colorWarning},"&-validating":{color:g.colorPrimary}}})}},_=g=>{const{componentCls:D,formItemCls:W}=g;return{[`${D}-horizontal`]:{[`${W}-label`]:{flexGrow:0},[`${W}-control`]:{flex:"1 1 0",minWidth:0},[`${W}-label[class$='-24'], ${W}-label[class*='-24 ']`]:{[`& + ${W}-control`]:{minWidth:"unset"}}}}},Z=g=>{const{componentCls:D,formItemCls:W}=g;return{[`${D}-inline`]:{display:"flex",flexWrap:"wrap",[W]:{flex:"none",marginInlineEnd:g.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${W}-label, > ${W}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${W}-label`]:{flex:"none"},[`${D}-text`]:{display:"inline-block"},[`${W}-has-feedback`]:{display:"inline-block"}}}}},S=g=>({padding:g.verticalLabelPadding,margin:g.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),c=g=>{const{componentCls:D,formItemCls:W,rootPrefixCls:d}=g;return{[`${W} ${W}-label`]:S(g),[D]:{[W]:{flexWrap:"wrap",[`${W}-label, ${W}-control`]:{[`&:not([class*=" ${d}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},b=g=>{const{componentCls:D,formItemCls:W,rootPrefixCls:d}=g;return{[`${D}-vertical`]:{[W]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${D}-item-control`]:{width:"100%"}}},[`${D}-vertical ${W}-label, .${d}-col-24${W}-label, .${d}-col-xl-24${W}-label`]:S(g),[`@media (max-width: ${g.screenXSMax}px)`]:[c(g),{[D]:{[`.${d}-col-xs-24${W}-label`]:S(g)}}],[`@media (max-width: ${g.screenSMMax}px)`]:{[D]:{[`.${d}-col-sm-24${W}-label`]:S(g)}},[`@media (max-width: ${g.screenMDMax}px)`]:{[D]:{[`.${d}-col-md-24${W}-label`]:S(g)}},[`@media (max-width: ${g.screenLGMax}px)`]:{[D]:{[`.${d}-col-lg-24${W}-label`]:S(g)}}}},I=(g,D)=>(0,N.TS)(g,{formItemCls:`${g.componentCls}-item`,rootPrefixCls:D});var F=(0,ve.Z)("Form",(g,D)=>{let{rootPrefixCls:W}=D;const d=I(g,W);return[Ze(d),tt(d),k(d),_(d),Z(d),b(d),(0,Ce.Z)(d),y.kr]},g=>({labelRequiredMarkColor:g.colorError,labelColor:g.colorTextHeading,labelFontSize:g.fontSize,labelHeight:g.controlHeight,labelColonMarginInlineStart:g.marginXXS/2,labelColonMarginInlineEnd:g.marginXS,itemMarginBottom:g.marginLG,verticalLabelPadding:`0 0 ${g.paddingXS}px`,verticalLabelMargin:0}),{order:-1e3});const R=[];function be(g,D,W){let d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof g=="string"?g:`${D}-${d}`,error:g,errorStatus:W}}var Ae=g=>{let{help:D,helpStatus:W,errors:d=R,warnings:h=R,className:x,fieldId:L,onVisibleChanged:Q}=g;const{prefixCls:B}=p.useContext(T.Rk),$=`${B}-item-explain`,[,se]=F(B),ie=(0,p.useMemo)(()=>(0,P.Z)(B),[B]),Fe=ye(d),M=ye(h),K=p.useMemo(()=>D!=null?[be(D,"help",W)]:[].concat((0,E.Z)(Fe.map((pe,Be)=>be(pe,"error","error",Be))),(0,E.Z)(M.map((pe,Be)=>be(pe,"warning","warning",Be)))),[D,W,Fe,M]),Ke={};return L&&(Ke.id=`${L}_help`),p.createElement(j.default,{motionDeadline:ie.motionDeadline,motionName:`${B}-show-help`,visible:!!K.length,onVisibleChanged:Q},pe=>{const{className:Be,style:Te}=pe;return p.createElement("div",Object.assign({},Ke,{className:C()($,Be,x,se),style:Te,role:"alert"}),p.createElement(j.CSSMotionList,Object.assign({keys:K},(0,P.Z)(B),{motionName:`${B}-show-help-item`,component:!1}),ft=>{const{key:Y,error:oe,errorStatus:De,className:it,style:_e}=ft;return p.createElement("div",{key:Y,className:C()(it,{[`${$}-${De}`]:De}),style:_e},oe)}))})},me=f(95013),ut=f(36355),ke=f(1684),Ge=f(52946),ae=f(19716),H=f(16722);const G=["parentNode"],q="form_item";function ee(g){return g===void 0||g===!1?[]:Array.isArray(g)?g:[g]}function Ve(g,D){if(!g.length)return;const W=g.join("_");return D?`${D}_${W}`:G.includes(W)?`${q}_${W}`:W}function $e(g,D,W,d,h,x){let L=d;return x!==void 0?L=x:W.validating?L="validating":g.length?L="error":D.length?L="warning":(W.touched||h&&W.validated)&&(L="success"),L}function ue(g){return ee(g).join("_")}function Me(g){const[D]=(0,me.useForm)(),W=p.useRef({}),d=p.useMemo(()=>g!=null?g:Object.assign(Object.assign({},D),{__INTERNAL__:{itemRef:h=>x=>{const L=ue(h);x?W.current[L]=x:delete W.current[L]}},scrollToField:function(h){let x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const L=ee(h),Q=Ve(L,d.__INTERNAL__.name),B=Q?document.getElementById(Q):null;B&&(0,H.Z)(B,Object.assign({scrollMode:"if-needed",block:"nearest"},x))},getFieldInstance:h=>{const x=ue(h);return W.current[x]}}),[g,D]);return[d]}var fe=f(28726),bt=function(g,D){var W={};for(var d in g)Object.prototype.hasOwnProperty.call(g,d)&&D.indexOf(d)<0&&(W[d]=g[d]);if(g!=null&&typeof Object.getOwnPropertySymbols=="function")for(var h=0,d=Object.getOwnPropertySymbols(g);h{const W=p.useContext(ke.Z),{getPrefixCls:d,direction:h,form:x}=p.useContext(ut.E_),{prefixCls:L,className:Q,rootClassName:B,size:$,disabled:se=W,form:ie,colon:Fe,labelAlign:M,labelWrap:K,labelCol:Ke,wrapperCol:pe,hideRequiredMark:Be,layout:Te="horizontal",scrollToFirstError:ft,requiredMark:Y,onFinishFailed:oe,name:De,style:it,feedbackIcons:_e}=g,lt=bt(g,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),_t=(0,ae.Z)($),Rt=p.useContext(fe.Z),$t=(0,p.useMemo)(()=>Y!==void 0?Y:x&&x.requiredMark!==void 0?x.requiredMark:!Be,[Be,Y,x]),zt=Fe!=null?Fe:x==null?void 0:x.colon,wt=d("form",L),[qt,Ut]=F(wt),jt=C()(wt,`${wt}-${Te}`,{[`${wt}-hide-required-mark`]:$t===!1,[`${wt}-rtl`]:h==="rtl",[`${wt}-${_t}`]:_t},Ut,x==null?void 0:x.className,Q,B),[kt]=Me(ie),{__INTERNAL__:Lt}=kt;Lt.name=De;const xt=(0,p.useMemo)(()=>({name:De,labelAlign:M,labelCol:Ke,labelWrap:K,wrapperCol:pe,vertical:Te==="vertical",colon:zt,requiredMark:$t,itemRef:Lt.itemRef,form:kt,feedbackIcons:_e}),[De,M,Ke,pe,Te,zt,$t,kt,_e]);p.useImperativeHandle(D,()=>kt);const Wt=(fn,Nt)=>{if(fn){let Ht={block:"nearest"};typeof fn=="object"&&(Ht=fn),kt.scrollToField(Nt,Ht)}},Et=fn=>{if(oe==null||oe(fn),fn.errorFields.length){const Nt=fn.errorFields[0].name;if(ft!==void 0){Wt(ft,Nt);return}x&&x.scrollToFirstError!==void 0&&Wt(x.scrollToFirstError,Nt)}};return qt(p.createElement(ke.n,{disabled:se},p.createElement(Ge.q,{size:_t},p.createElement(T.RV,Object.assign({},{validateMessages:Rt}),p.createElement(T.q3.Provider,{value:xt},p.createElement(me.default,Object.assign({id:De},lt,{name:De,onFinishFailed:Et,form:kt,style:Object.assign(Object.assign({},x==null?void 0:x.style),it),className:jt})))))))};var et=p.forwardRef(Dt),Ot=f(41799),at=f(8654),A=f(92343),we=f(11592);function le(g){if(typeof g=="function")return g;const D=(0,we.Z)(g);return D.length<=1?D[0]:D}const V=()=>{const{status:g,errors:D=[],warnings:W=[]}=(0,p.useContext)(T.aM);return{status:g,errors:D,warnings:W}};V.Context=T.aM;var re=V,de=f(16089);function Se(g){const[D,W]=p.useState(g),d=(0,p.useRef)(null),h=(0,p.useRef)([]),x=(0,p.useRef)(!1);p.useEffect(()=>(x.current=!1,()=>{x.current=!0,de.Z.cancel(d.current),d.current=null}),[]);function L(Q){x.current||(d.current===null&&(h.current=[],d.current=(0,de.Z)(()=>{d.current=null,W(B=>{let $=B;return h.current.forEach(se=>{$=se($)}),$})})),h.current.push(Q))}return[D,L]}function he(){const{itemRef:g}=p.useContext(T.q3),D=p.useRef({});function W(d,h){const x=h&&typeof h=="object"&&h.ref,L=d.join("_");return(D.current.name!==L||D.current.originRef!==x)&&(D.current.name=L,D.current.originRef=x,D.current.ref=(0,at.sQ)(g(d),x)),D.current.ref}return W}var Re=f(29194),ne=f(34280),Ye=f(2738),ce=f(27382),Ie=f(37028);const Le=g=>{const{formItemCls:D}=g;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${D}-control`]:{display:"flex"}}}};var Ee=(0,ve.b)(["Form","item-item"],(g,D)=>{let{rootPrefixCls:W}=D;const d=I(g,W);return[Le(d)]}),U=g=>{const{prefixCls:D,status:W,wrapperCol:d,children:h,errors:x,warnings:L,_internalItemRender:Q,extra:B,help:$,fieldId:se,marginBottom:ie,onErrorVisibleChanged:Fe}=g,M=`${D}-item`,K=p.useContext(T.q3),Ke=d||K.wrapperCol||{},pe=C()(`${M}-control`,Ke.className),Be=p.useMemo(()=>Object.assign({},K),[K]);delete Be.labelCol,delete Be.wrapperCol;const Te=p.createElement("div",{className:`${M}-control-input`},p.createElement("div",{className:`${M}-control-input-content`},h)),ft=p.useMemo(()=>({prefixCls:D,status:W}),[D,W]),Y=ie!==null||x.length||L.length?p.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},p.createElement(T.Rk.Provider,{value:ft},p.createElement(Ae,{fieldId:se,errors:x,warnings:L,help:$,helpStatus:W,className:`${M}-explain-connected`,onVisibleChanged:Fe})),!!ie&&p.createElement("div",{style:{width:0,height:ie}})):null,oe={};se&&(oe.id=`${se}_extra`);const De=B?p.createElement("div",Object.assign({},oe,{className:`${M}-extra`}),B):null,it=Q&&Q.mark==="pro_table_render"&&Q.render?Q.render(g,{input:Te,errorList:Y,extra:De}):p.createElement(p.Fragment,null,Te,Y,De);return p.createElement(T.q3.Provider,{value:Be},p.createElement(Ie.Z,Object.assign({},Ke,{className:pe}),it),p.createElement(Ee,{prefixCls:D}))},rt=f(61485),He=f(31724),ct=f(9763),vt=f(6848),rn=function(g,D){var W={};for(var d in g)Object.prototype.hasOwnProperty.call(g,d)&&D.indexOf(d)<0&&(W[d]=g[d]);if(g!=null&&typeof Object.getOwnPropertySymbols=="function")for(var h=0,d=Object.getOwnPropertySymbols(g);h{let{prefixCls:D,label:W,htmlFor:d,labelCol:h,labelAlign:x,colon:L,required:Q,requiredMark:B,tooltip:$}=g;var se;const[ie]=(0,ct.Z)("Form"),{vertical:Fe,labelAlign:M,labelCol:K,labelWrap:Ke,colon:pe}=p.useContext(T.q3);if(!W)return null;const Be=h||K||{},Te=x||M,ft=`${D}-item-label`,Y=C()(ft,Te==="left"&&`${ft}-left`,Be.className,{[`${ft}-wrap`]:!!Ke});let oe=W;const De=L===!0||pe!==!1&&L!==!1;De&&!Fe&&typeof W=="string"&&W.trim()!==""&&(oe=W.replace(/[:|:]\s*$/,""));const _e=Zt($);if(_e){const{icon:$t=p.createElement(rt.Z,null)}=_e,zt=rn(_e,["icon"]),wt=p.createElement(vt.Z,Object.assign({},zt),p.cloneElement($t,{className:`${D}-item-tooltip`,title:""}));oe=p.createElement(p.Fragment,null,oe,wt)}const lt=B==="optional",_t=typeof B=="function";_t?oe=B(oe,{required:!!Q}):lt&&!Q&&(oe=p.createElement(p.Fragment,null,oe,p.createElement("span",{className:`${D}-item-optional`,title:""},(ie==null?void 0:ie.optional)||((se=He.Z.Form)===null||se===void 0?void 0:se.optional))));const Rt=C()({[`${D}-item-required`]:Q,[`${D}-item-required-mark-optional`]:lt||_t,[`${D}-item-no-colon`]:!De});return p.createElement(Ie.Z,Object.assign({},Be,{className:Y}),p.createElement("label",{htmlFor:d,className:Rt,title:typeof W=="string"?W:""},oe))},Xt=f(29679),Yt=f(19248),sn=f(96512),Cn=f(58617);const un={success:Xt.Z,warning:sn.Z,error:Yt.Z,validating:Cn.Z};function zn(g){let{children:D,errors:W,warnings:d,hasFeedback:h,validateStatus:x,prefixCls:L,meta:Q,noStyle:B}=g;const $=`${L}-item`,{feedbackIcons:se}=p.useContext(T.q3),ie=$e(W,d,Q,null,!!h,x),{isFormItemInput:Fe,status:M}=p.useContext(T.aM),K=p.useMemo(()=>{var Ke;let pe;if(h){const ft=h!==!0&&h.icons||se,Y=ie&&((Ke=ft==null?void 0:ft({status:ie,errors:W,warnings:d}))===null||Ke===void 0?void 0:Ke[ie]),oe=ie&&un[ie];pe=Y!==!1&&oe?p.createElement("span",{className:C()(`${$}-feedback-icon`,`${$}-feedback-icon-${ie}`)},Y||p.createElement(oe,null)):null}let Be=!0,Te=ie||"";return B&&(Be=Fe,Te=(ie!=null?ie:M)||""),{status:Te,errors:W,warnings:d,hasFeedback:!!h,feedbackIcon:pe,isFormItemInput:Be}},[ie,h,B,Fe,M]);return p.createElement(T.aM.Provider,{value:K},D)}var Wn=function(g,D){var W={};for(var d in g)Object.prototype.hasOwnProperty.call(g,d)&&D.indexOf(d)<0&&(W[d]=g[d]);if(g!=null&&typeof Object.getOwnPropertySymbols=="function")for(var h=0,d=Object.getOwnPropertySymbols(g);h{if(_e&&Y.current){const Ut=getComputedStyle(Y.current);Rt(parseInt(Ut.marginBottom,10))}},[_e,lt]);const $t=Ut=>{Ut||Rt(null)},wt=function(){let Ut=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const jt=Ut?oe:$.errors,kt=Ut?De:$.warnings;return $e(jt,kt,$,"",!!se,B)}(),qt=C()(Te,W,d,{[`${Te}-with-help`]:it||oe.length||De.length,[`${Te}-has-feedback`]:wt&&se,[`${Te}-has-success`]:wt==="success",[`${Te}-has-warning`]:wt==="warning",[`${Te}-has-error`]:wt==="error",[`${Te}-is-validating`]:wt==="validating",[`${Te}-hidden`]:ie});return p.createElement("div",{className:qt,style:h,ref:Y},p.createElement(ce.Z,Object.assign({className:`${Te}-row`},(0,Ye.Z)(Be,["_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"])),p.createElement(Pt,Object.assign({htmlFor:M},g,{requiredMark:ft,required:K!=null?K:Ke,prefixCls:D})),p.createElement(U,Object.assign({},g,$,{errors:oe,warnings:De,prefixCls:D,status:wt,help:x,marginBottom:_t,onErrorVisibleChanged:$t}),p.createElement(T.qI.Provider,{value:pe},p.createElement(zn,{prefixCls:D,meta:$,errors:$.errors,warnings:$.warnings,hasFeedback:se,validateStatus:wt},Fe)))),!!_t&&p.createElement("div",{className:`${Te}-margin-offset`,style:{marginBottom:-_t}}))}const Ln="__SPLIT__",wn=null,In=p.memo(g=>{let{children:D}=g;return D},(g,D)=>g.value===D.value&&g.update===D.update&&g.childProps.length===D.childProps.length&&g.childProps.every((W,d)=>W===D.childProps[d]));function xn(g){return g!=null}function dn(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function Nn(g){const{name:D,noStyle:W,className:d,dependencies:h,prefixCls:x,shouldUpdate:L,rules:Q,children:B,required:$,label:se,messageVariables:ie,trigger:Fe="onChange",validateTrigger:M,hidden:K,help:Ke}=g,{getPrefixCls:pe}=p.useContext(ut.E_),{name:Be}=p.useContext(T.q3),Te=le(B),ft=typeof Te=="function",Y=p.useContext(T.qI),{validateTrigger:oe}=p.useContext(me.FieldContext),De=M!==void 0?M:oe,it=xn(D),_e=pe("form",x),[lt,_t]=F(_e),Rt=p.useContext(me.ListContext),$t=p.useRef(),[zt,wt]=Se({}),[qt,Ut]=(0,Ot.Z)(()=>dn()),jt=Nt=>{const Ht=Rt==null?void 0:Rt.getKey(Nt.name);if(Ut(Nt.destroy?dn():Nt,!0),W&&Ke!==!1&&Y){let an=Nt.name;if(Nt.destroy)an=$t.current||an;else if(Ht!==void 0){const[Gt,En]=Ht;an=[Gt].concat((0,E.Z)(En)),$t.current=an}Y(Nt,an)}},kt=(Nt,Ht)=>{wt(an=>{const Gt=Object.assign({},an),Un=[].concat((0,E.Z)(Nt.name.slice(0,-1)),(0,E.Z)(Ht)).join(Ln);return Nt.destroy?delete Gt[Un]:Gt[Un]=Nt,Gt})},[Lt,xt]=p.useMemo(()=>{const Nt=(0,E.Z)(qt.errors),Ht=(0,E.Z)(qt.warnings);return Object.values(zt).forEach(an=>{Nt.push.apply(Nt,(0,E.Z)(an.errors||[])),Ht.push.apply(Ht,(0,E.Z)(an.warnings||[]))}),[Nt,Ht]},[zt,qt.errors,qt.warnings]),Wt=he();function Et(Nt,Ht,an){return W&&!K?p.createElement(zn,{prefixCls:_e,hasFeedback:g.hasFeedback,validateStatus:g.validateStatus,meta:qt,errors:Lt,warnings:xt,noStyle:!0},Nt):p.createElement(pn,Object.assign({key:"row"},g,{className:C()(d,_t),prefixCls:_e,fieldId:Ht,isRequired:an,errors:Lt,warnings:xt,meta:qt,onSubItemMetaChange:kt}),Nt)}if(!it&&!ft&&!h)return lt(Et(Te));let fn={};return typeof se=="string"?fn.label=se:D&&(fn.label=String(D)),ie&&(fn=Object.assign(Object.assign({},fn),ie)),lt(p.createElement(me.Field,Object.assign({},g,{messageVariables:fn,trigger:Fe,validateTrigger:De,onMetaChange:jt}),(Nt,Ht,an)=>{const Gt=ee(D).length&&Ht?Ht.name:[],En=Ve(Gt,Be),Un=$!==void 0?$:!!(Q&&Q.some(dt=>{if(dt&&typeof dt=="object"&&dt.required&&!dt.warningOnly)return!0;if(typeof dt=="function"){const en=dt(an);return en&&en.required&&!en.warningOnly}return!1})),It=Object.assign({},Nt);let st=null;if(Array.isArray(Te)&&it)st=Te;else if(!(ft&&(!(L||h)||it))){if(!(h&&!ft&&!it))if((0,A.l$)(Te)){const dt=Object.assign(Object.assign({},Te.props),It);if(dt.id||(dt.id=En),Ke||Lt.length>0||xt.length>0||g.extra){const Vt=[];(Ke||Lt.length>0)&&Vt.push(`${En}_help`),g.extra&&Vt.push(`${En}_extra`),dt["aria-describedby"]=Vt.join(" ")}Lt.length>0&&(dt["aria-invalid"]="true"),Un&&(dt["aria-required"]="true"),(0,at.Yr)(Te)&&(dt.ref=Wt(Gt,Te)),new Set([].concat((0,E.Z)(ee(Fe)),(0,E.Z)(ee(De)))).forEach(Vt=>{dt[Vt]=function(){for(var At,ln,gn,mn,Tn,je=arguments.length,ze=new Array(je),pt=0;pt{var{prefixCls:D,children:W}=g,d=Hn(g,["prefixCls","children"]);const{getPrefixCls:h}=p.useContext(ut.E_),x=h("form",D),L=p.useMemo(()=>({prefixCls:x,status:"error"}),[x]);return p.createElement(me.List,Object.assign({},d),(Q,B,$)=>p.createElement(T.Rk.Provider,{value:L},W(Q.map(se=>Object.assign(Object.assign({},se),{fieldKey:se.key})),B,{errors:$.errors,warnings:$.warnings})))};function on(){const{form:g}=(0,p.useContext)(T.q3);return g}const Qe=et;Qe.Item=An,Qe.List=pr,Qe.ErrorList=Ae,Qe.useForm=Me,Qe.useFormInstance=on,Qe.useWatch=me.useWatch,Qe.Provider=T.RV,Qe.create=()=>{};var Mt=Qe},9432:function(nn,xe,f){"use strict";f.d(xe,{Z:function(){return tt},n:function(){return nt}});var E=f(19248),J=f(92310),C=f.n(J),j=f(93681),p=f(8654),P=f(59301),T=f(19080),ye=f(36355),te=f(1684),y=f(19716),Ce=f(32441),N=f(33234),ve=f(59412),Oe=f(9937);function k(_){return!!(_.prefix||_.suffix||_.allowClear)}var Xe=function(_,Z){var S={};for(var c in _)Object.prototype.hasOwnProperty.call(_,c)&&Z.indexOf(c)<0&&(S[c]=_[c]);if(_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var b=0,c=Object.getOwnPropertySymbols(_);b{var S;const{prefixCls:c,bordered:b=!0,status:I,size:F,disabled:R,onBlur:be,onFocus:We,suffix:Ae,allowClear:me,addonAfter:ut,addonBefore:ke,className:Ge,style:ae,styles:H,rootClassName:G,onChange:q,classNames:ee}=_,Ve=Xe(_,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:$e,direction:ue,input:Me}=P.useContext(ye.E_),fe=$e("input",c),bt=(0,P.useRef)(null),[Dt,St]=(0,Oe.ZP)(fe),{compactSize:et,compactItemClassnames:Ot}=(0,N.ri)(fe,ue),at=(0,y.Z)(Ee=>{var Je;return(Je=F!=null?F:et)!==null&&Je!==void 0?Je:Ee}),A=P.useContext(te.Z),we=R!=null?R:A,{status:le,hasFeedback:V,feedbackIcon:re}=(0,P.useContext)(Ce.aM),de=(0,T.F)(le,I),Se=k(_)||!!V,he=(0,P.useRef)(Se);(0,P.useEffect)(()=>{var Ee;Se&&he.current,he.current=Se},[Se]);const Re=(0,ve.Z)(bt,!0),ne=Ee=>{Re(),be==null||be(Ee)},Ye=Ee=>{Re(),We==null||We(Ee)},ce=Ee=>{Re(),q==null||q(Ee)},Ie=(V||Ae)&&P.createElement(P.Fragment,null,Ae,V&&re);let Le;return typeof me=="object"&&(me!=null&&me.clearIcon)?Le=me:me&&(Le={clearIcon:P.createElement(E.Z,null)}),Dt(P.createElement(j.default,Object.assign({ref:(0,p.sQ)(Z,bt),prefixCls:fe,autoComplete:Me==null?void 0:Me.autoComplete},Ve,{disabled:we,onBlur:ne,onFocus:Ye,style:Object.assign(Object.assign({},Me==null?void 0:Me.style),ae),styles:Object.assign(Object.assign({},Me==null?void 0:Me.styles),H),suffix:Ie,allowClear:Le,className:C()(Ge,G,Ot,Me==null?void 0:Me.className),onChange:ce,addonAfter:ut&&P.createElement(N.BR,null,P.createElement(Ce.Ux,{override:!0,status:!0},ut)),addonBefore:ke&&P.createElement(N.BR,null,P.createElement(Ce.Ux,{override:!0,status:!0},ke)),classNames:Object.assign(Object.assign(Object.assign({},ee),Me==null?void 0:Me.classNames),{input:C()({[`${fe}-sm`]:at==="small",[`${fe}-lg`]:at==="large",[`${fe}-rtl`]:ue==="rtl",[`${fe}-borderless`]:!b},!Se&&(0,T.Z)(fe,de),ee==null?void 0:ee.input,(S=Me==null?void 0:Me.classNames)===null||S===void 0?void 0:S.input,St)}),classes:{affixWrapper:C()({[`${fe}-affix-wrapper-sm`]:at==="small",[`${fe}-affix-wrapper-lg`]:at==="large",[`${fe}-affix-wrapper-rtl`]:ue==="rtl",[`${fe}-affix-wrapper-borderless`]:!b},(0,T.Z)(`${fe}-affix-wrapper`,de,V),St),wrapper:C()({[`${fe}-group-rtl`]:ue==="rtl"},St),group:C()({[`${fe}-group-wrapper-sm`]:at==="small",[`${fe}-group-wrapper-lg`]:at==="large",[`${fe}-group-wrapper-rtl`]:ue==="rtl",[`${fe}-group-wrapper-disabled`]:we},(0,T.Z)(`${fe}-group-wrapper`,de,V),St)}})))})},1643:function(nn,xe,f){"use strict";var E=f(19248),J=f(92310),C=f.n(J),j=f(9296),p=f(59301),P=f(19080),T=f(36355),ye=f(1684),te=f(19716),y=f(32441),Ce=f(9432),N=f(9937),ve=function(k,Xe){var nt={};for(var Ze in k)Object.prototype.hasOwnProperty.call(k,Ze)&&Xe.indexOf(Ze)<0&&(nt[Ze]=k[Ze]);if(k!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tt=0,Ze=Object.getOwnPropertySymbols(k);tt{const{prefixCls:nt,bordered:Ze=!0,size:tt,disabled:_,status:Z,allowClear:S,showCount:c,classNames:b,rootClassName:I,className:F}=k,R=ve(k,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:be,direction:We}=p.useContext(T.E_),Ae=(0,te.Z)(tt),me=p.useContext(ye.Z),ut=_!=null?_:me,{status:ke,hasFeedback:Ge,feedbackIcon:ae}=p.useContext(y.aM),H=(0,P.F)(ke,Z),G=p.useRef(null);p.useImperativeHandle(Xe,()=>{var ue;return{resizableTextArea:(ue=G.current)===null||ue===void 0?void 0:ue.resizableTextArea,focus:Me=>{var fe,bt;(0,Ce.n)((bt=(fe=G.current)===null||fe===void 0?void 0:fe.resizableTextArea)===null||bt===void 0?void 0:bt.textArea,Me)},blur:()=>{var Me;return(Me=G.current)===null||Me===void 0?void 0:Me.blur()}}});const q=be("input",nt);let ee;typeof S=="object"&&(S!=null&&S.clearIcon)?ee=S:S&&(ee={clearIcon:p.createElement(E.Z,null)});const[Ve,$e]=(0,N.ZP)(q);return Ve(p.createElement(j.default,Object.assign({},R,{disabled:ut,allowClear:ee,className:C()(F,I),classes:{affixWrapper:C()(`${q}-textarea-affix-wrapper`,{[`${q}-affix-wrapper-rtl`]:We==="rtl",[`${q}-affix-wrapper-borderless`]:!Ze,[`${q}-affix-wrapper-sm`]:Ae==="small",[`${q}-affix-wrapper-lg`]:Ae==="large",[`${q}-textarea-show-count`]:c},(0,P.Z)(`${q}-affix-wrapper`,H),$e)},classNames:Object.assign(Object.assign({},b),{textarea:C()({[`${q}-borderless`]:!Ze,[`${q}-sm`]:Ae==="small",[`${q}-lg`]:Ae==="large"},(0,P.Z)(q,H),$e,b==null?void 0:b.textarea)}),prefixCls:q,suffix:Ge&&p.createElement("span",{className:`${q}-textarea-suffix`},ae),showCount:c,ref:G})))});xe.Z=Oe},59412:function(nn,xe,f){"use strict";f.d(xe,{Z:function(){return J}});var E=f(59301);function J(C,j){const p=(0,E.useRef)([]),P=()=>{p.current.push(setTimeout(()=>{var T,ye,te,y;!((T=C.current)===null||T===void 0)&&T.input&&((ye=C.current)===null||ye===void 0?void 0:ye.input.getAttribute("type"))==="password"&&(!((te=C.current)===null||te===void 0)&&te.input.hasAttribute("value"))&&((y=C.current)===null||y===void 0||y.input.removeAttribute("value"))}))};return(0,E.useEffect)(()=>(j&&P(),()=>p.current.forEach(T=>{T&&clearTimeout(T)})),[]),P}},92832:function(nn,xe,f){"use strict";f.d(xe,{default:function(){return Ae}});var E=f(92310),J=f.n(E),C=f(59301),j=f(36355),p=f(32441),P=f(9937),ye=me=>{const{getPrefixCls:ut,direction:ke}=(0,C.useContext)(j.E_),{prefixCls:Ge,className:ae}=me,H=ut("input-group",Ge),G=ut("input"),[q,ee]=(0,P.ZP)(G),Ve=J()(H,{[`${H}-lg`]:me.size==="large",[`${H}-sm`]:me.size==="small",[`${H}-compact`]:me.compact,[`${H}-rtl`]:ke==="rtl"},ee,ae),$e=(0,C.useContext)(p.aM),ue=(0,C.useMemo)(()=>Object.assign(Object.assign({},$e),{isFormItemInput:!1}),[$e]);return q(C.createElement("span",{className:Ve,style:me.style,onMouseEnter:me.onMouseEnter,onMouseLeave:me.onMouseLeave,onFocus:me.onFocus,onBlur:me.onBlur},C.createElement(p.aM.Provider,{value:ue},me.children)))},te=f(9432),y=f(73331),Ce=f(15277),N=f(2738),ve=f(8654),Oe=f(59412),k=function(me,ut){var ke={};for(var Ge in me)Object.prototype.hasOwnProperty.call(me,Ge)&&ut.indexOf(Ge)<0&&(ke[Ge]=me[Ge]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ae=0,Ge=Object.getOwnPropertySymbols(me);aeme?C.createElement(Ce.Z,null):C.createElement(y.Z,null),nt={click:"onClick",hover:"onMouseOver"};var tt=C.forwardRef((me,ut)=>{const{visibilityToggle:ke=!0}=me,Ge=typeof ke=="object"&&ke.visible!==void 0,[ae,H]=(0,C.useState)(()=>Ge?ke.visible:!1),G=(0,C.useRef)(null);C.useEffect(()=>{Ge&&H(ke.visible)},[Ge,ke]);const q=(0,Oe.Z)(G),ee=()=>{const{disabled:we}=me;we||(ae&&q(),H(le=>{var V;const re=!le;return typeof ke=="object"&&((V=ke.onVisibleChange)===null||V===void 0||V.call(ke,re)),re}))},Ve=we=>{const{action:le="click",iconRender:V=Xe}=me,re=nt[le]||"",de=V(ae),Se={[re]:ee,className:`${we}-icon`,key:"passwordIcon",onMouseDown:he=>{he.preventDefault()},onMouseUp:he=>{he.preventDefault()}};return C.cloneElement(C.isValidElement(de)?de:C.createElement("span",null,de),Se)},{className:$e,prefixCls:ue,inputPrefixCls:Me,size:fe}=me,bt=k(me,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:Dt}=C.useContext(j.E_),St=Dt("input",Me),et=Dt("input-password",ue),Ot=ke&&Ve(et),at=J()(et,$e,{[`${et}-${fe}`]:!!fe}),A=Object.assign(Object.assign({},(0,N.Z)(bt,["suffix","iconRender","visibilityToggle"])),{type:ae?"text":"password",className:at,prefixCls:St,suffix:Ot});return fe&&(A.size=fe),C.createElement(te.Z,Object.assign({ref:(0,ve.sQ)(ut,G)},A))}),_=f(47472),Z=f(92343),S=f(3113),c=f(19716),b=f(33234),I=function(me,ut){var ke={};for(var Ge in me)Object.prototype.hasOwnProperty.call(me,Ge)&&ut.indexOf(Ge)<0&&(ke[Ge]=me[Ge]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ae=0,Ge=Object.getOwnPropertySymbols(me);ae{const{prefixCls:ke,inputPrefixCls:Ge,className:ae,size:H,suffix:G,enterButton:q=!1,addonAfter:ee,loading:Ve,disabled:$e,onSearch:ue,onChange:Me,onCompositionStart:fe,onCompositionEnd:bt}=me,Dt=I(me,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:St,direction:et}=C.useContext(j.E_),Ot=C.useRef(!1),at=St("input-search",ke),A=St("input",Ge),{compactSize:we}=(0,b.ri)(at,et),le=(0,c.Z)(U=>{var rt;return(rt=H!=null?H:we)!==null&&rt!==void 0?rt:U}),V=C.useRef(null),re=U=>{U&&U.target&&U.type==="click"&&ue&&ue(U.target.value,U,{source:"clear"}),Me&&Me(U)},de=U=>{var rt;document.activeElement===((rt=V.current)===null||rt===void 0?void 0:rt.input)&&U.preventDefault()},Se=U=>{var rt,He;ue&&ue((He=(rt=V.current)===null||rt===void 0?void 0:rt.input)===null||He===void 0?void 0:He.value,U,{source:"input"})},he=U=>{Ot.current||Ve||Se(U)},Re=typeof q=="boolean"?C.createElement(_.Z,null):null,ne=`${at}-button`;let Ye;const ce=q||{},Ie=ce.type&&ce.type.__ANT_BUTTON===!0;Ie||ce.type==="button"?Ye=(0,Z.Tm)(ce,Object.assign({onMouseDown:de,onClick:U=>{var rt,He;(He=(rt=ce==null?void 0:ce.props)===null||rt===void 0?void 0:rt.onClick)===null||He===void 0||He.call(rt,U),Se(U)},key:"enterButton"},Ie?{className:ne,size:le}:{})):Ye=C.createElement(S.ZP,{className:ne,type:q?"primary":void 0,size:le,disabled:$e,key:"enterButton",onMouseDown:de,onClick:Se,loading:Ve,icon:Re},q),ee&&(Ye=[Ye,(0,Z.Tm)(ee,{key:"addonAfter"})]);const Le=J()(at,{[`${at}-rtl`]:et==="rtl",[`${at}-${le}`]:!!le,[`${at}-with-button`]:!!q},ae),Ee=U=>{Ot.current=!0,fe==null||fe(U)},Je=U=>{Ot.current=!1,bt==null||bt(U)};return C.createElement(te.Z,Object.assign({ref:(0,ve.sQ)(V,ut),onPressEnter:he},Dt,{size:le,onCompositionStart:Ee,onCompositionEnd:Je,prefixCls:A,addonAfter:Ye,suffix:G,onChange:re,className:Le,disabled:$e}))}),be=f(1643);const We=te.Z;We.Group=ye,We.Search=R,We.TextArea=be.Z,We.Password=tt;var Ae=We},9937:function(nn,xe,f){"use strict";f.d(xe,{M1:function(){return T},TM:function(){return Z},Xy:function(){return ye},bi:function(){return Ce},e5:function(){return _},ik:function(){return N},nz:function(){return p},pU:function(){return P},s7:function(){return ve},x0:function(){return y}});var E=f(17313),J=f(74207),C=f(37613),j=f(83116);const p=S=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:S,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),P=S=>({borderColor:S.hoverBorderColor}),T=S=>({borderColor:S.activeBorderColor,boxShadow:S.activeShadow,outline:0}),ye=S=>({color:S.colorTextDisabled,backgroundColor:S.colorBgContainerDisabled,borderColor:S.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},P((0,C.TS)(S,{hoverBorderColor:S.colorBorder})))}),te=S=>{const{paddingBlockLG:c,fontSizeLG:b,lineHeightLG:I,borderRadiusLG:F,paddingInlineLG:R}=S;return{padding:`${c}px ${R}px`,fontSize:b,lineHeight:I,borderRadius:F}},y=S=>({padding:`${S.paddingBlockSM}px ${S.paddingInlineSM}px`,borderRadius:S.borderRadiusSM}),Ce=(S,c)=>{const{componentCls:b,colorError:I,colorWarning:F,errorActiveShadow:R,warningActiveShadow:be,colorErrorBorderHover:We,colorWarningBorderHover:Ae}=S;return{[`&-status-error:not(${c}-disabled):not(${c}-borderless)${c}`]:{borderColor:I,"&:hover":{borderColor:We},"&:focus, &-focused":Object.assign({},T((0,C.TS)(S,{activeBorderColor:I,activeShadow:R}))),[`${b}-prefix, ${b}-suffix`]:{color:I}},[`&-status-warning:not(${c}-disabled):not(${c}-borderless)${c}`]:{borderColor:F,"&:hover":{borderColor:Ae},"&:focus, &-focused":Object.assign({},T((0,C.TS)(S,{activeBorderColor:F,activeShadow:be}))),[`${b}-prefix, ${b}-suffix`]:{color:F}}}},N=S=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${S.paddingBlock}px ${S.paddingInline}px`,color:S.colorText,fontSize:S.fontSize,lineHeight:S.lineHeight,backgroundColor:S.colorBgContainer,backgroundImage:"none",borderWidth:S.lineWidth,borderStyle:S.lineType,borderColor:S.colorBorder,borderRadius:S.borderRadius,transition:`all ${S.motionDurationMid}`},p(S.colorTextPlaceholder)),{"&:hover":Object.assign({},P(S)),"&:focus, &-focused":Object.assign({},T(S)),"&-disabled, &[disabled]":Object.assign({},ye(S)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:S.controlHeight,lineHeight:S.lineHeight,verticalAlign:"bottom",transition:`all ${S.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},te(S)),"&-sm":Object.assign({},y(S)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),ve=S=>{const{componentCls:c,antCls:b}=S;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:S.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${c}, &-lg > ${c}-group-addon`]:Object.assign({},te(S)),[`&-sm ${c}, &-sm > ${c}-group-addon`]:Object.assign({},y(S)),[`&-lg ${b}-select-single ${b}-select-selector`]:{height:S.controlHeightLG},[`&-sm ${b}-select-single ${b}-select-selector`]:{height:S.controlHeightSM},[`> ${c}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${c}-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 ${S.paddingInline}px`,color:S.colorText,fontWeight:"normal",fontSize:S.fontSize,textAlign:"center",backgroundColor:S.colorFillAlter,border:`${S.lineWidth}px ${S.lineType} ${S.colorBorder}`,borderRadius:S.borderRadius,transition:`all ${S.motionDurationSlow}`,lineHeight:1,[`${b}-select`]:{margin:`-${S.paddingBlock+1}px -${S.paddingInline}px`,[`&${b}-select-single:not(${b}-select-customize-input)`]:{[`${b}-select-selector`]:{backgroundColor:"inherit",border:`${S.lineWidth}px ${S.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${b}-select-selector`]:{color:S.colorPrimary}}},[`${b}-cascader-picker`]:{margin:`-9px -${S.paddingInline}px`,backgroundColor:"transparent",[`${b}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${c}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${c}-search-with-button &`]:{zIndex:0}}},[`> ${c}:first-child, ${c}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${b}-select ${b}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${c}-affix-wrapper`]:{[`&:not(:first-child) ${c}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${c}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${c}:last-child, ${c}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${b}-select ${b}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${c}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${c}-search &`]:{borderStartStartRadius:S.borderRadius,borderEndStartRadius:S.borderRadius}},[`&:not(:first-child), ${c}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${c}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,E.dF)()),{[`${c}-group-addon, ${c}-group-wrap, > ${c}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:S.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[` & > ${c}-affix-wrapper, & > ${c}-number-affix-wrapper, & > ${b}-picker-range `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-S.lineWidth,borderInlineEndWidth:S.lineWidth},[`${c}`]:{float:"none"},[`& > ${b}-select > ${b}-select-selector, & > ${b}-select-auto-complete ${c}, & > ${b}-cascader-picker ${c}, & > ${c}-group-wrapper ${c}`]:{borderInlineEndWidth:S.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 ${c}, & > ${b}-cascader-picker:first-child ${c}`]:{borderStartStartRadius:S.borderRadius,borderEndStartRadius:S.borderRadius},[`& > *:last-child, & > ${b}-select:last-child > ${b}-select-selector, & > ${b}-cascader-picker:last-child ${c}, & > ${b}-cascader-picker-focused:last-child ${c}`]:{borderInlineEndWidth:S.lineWidth,borderStartEndRadius:S.borderRadius,borderEndEndRadius:S.borderRadius},[`& > ${b}-select-auto-complete ${c}`]:{verticalAlign:"top"},[`${c}-group-wrapper + ${c}-group-wrapper`]:{marginInlineStart:-S.lineWidth,[`${c}-affix-wrapper`]:{borderRadius:0}},[`${c}-group-wrapper:not(:last-child)`]:{[`&${c}-search > ${c}-group`]:{[`& > ${c}-group-addon > ${c}-search-button`]:{borderRadius:0},[`& > ${c}`]:{borderStartStartRadius:S.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:S.borderRadius}}}})}},Oe=S=>{const{componentCls:c,controlHeightSM:b,lineWidth:I}=S,R=(b-I*2-16)/2;return{[c]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,E.Wf)(S)),N(S)),Ce(S,c)),{'&[type="color"]':{height:S.controlHeight,[`&${c}-lg`]:{height:S.controlHeightLG},[`&${c}-sm`]:{height:b,paddingTop:R,paddingBottom:R}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},k=S=>{const{componentCls:c}=S;return{[`${c}-clear-icon`]:{margin:0,color:S.colorTextQuaternary,fontSize:S.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${S.motionDurationSlow}`,"&:hover":{color:S.colorTextTertiary},"&:active":{color:S.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${S.inputAffixPadding}px`}}}},Xe=S=>{const{componentCls:c,inputAffixPadding:b,colorTextDescription:I,motionDurationSlow:F,colorIcon:R,colorIconHover:be,iconCls:We}=S;return{[`${c}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},N(S)),{display:"inline-flex",[`&:not(${c}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},P(S)),{zIndex:1,[`${c}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${c}[disabled]`]:{background:"transparent"}},[`> input${c}`]:{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"'},[`${c}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:S.paddingXS}},"&-show-count-suffix":{color:I},"&-show-count-has-suffix":{marginInlineEnd:S.paddingXXS},"&-prefix":{marginInlineEnd:b},"&-suffix":{marginInlineStart:b}}}),k(S)),{[`${We}${c}-password-icon`]:{color:R,cursor:"pointer",transition:`all ${F}`,"&:hover":{color:be}}}),Ce(S,`${c}-affix-wrapper`))}},nt=S=>{const{componentCls:c,colorError:b,colorWarning:I,borderRadiusLG:F,borderRadiusSM:R}=S;return{[`${c}-group`]:Object.assign(Object.assign(Object.assign({},(0,E.Wf)(S)),ve(S)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${c}-group-addon`]:{borderRadius:F,fontSize:S.fontSizeLG}},"&-sm":{[`${c}-group-addon`]:{borderRadius:R}},"&-status-error":{[`${c}-group-addon`]:{color:b,borderColor:b}},"&-status-warning":{[`${c}-group-addon`]:{color:I,borderColor:I}},"&-disabled":{[`${c}-group-addon`]:Object.assign({},ye(S))},[`&:not(${c}-compact-first-item):not(${c}-compact-last-item)${c}-compact-item`]:{[`${c}, ${c}-group-addon`]:{borderRadius:0}},[`&:not(${c}-compact-last-item)${c}-compact-first-item`]:{[`${c}, ${c}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${c}-compact-first-item)${c}-compact-last-item`]:{[`${c}, ${c}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}})}},Ze=S=>{const{componentCls:c,antCls:b}=S,I=`${c}-search`;return{[I]:{[`${c}`]:{"&:hover, &:focus":{borderColor:S.colorPrimaryHover,[`+ ${c}-group-addon ${I}-button:not(${b}-btn-primary)`]:{borderInlineStartColor:S.colorPrimaryHover}}},[`${c}-affix-wrapper`]:{borderRadius:0},[`${c}-lg`]:{lineHeight:S.lineHeightLG-2e-4},[`> ${c}-group`]:{[`> ${c}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${I}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:S.borderRadius,borderEndEndRadius:S.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${I}-button:not(${b}-btn-primary)`]:{color:S.colorTextDescription,"&:hover":{color:S.colorPrimaryHover},"&:active":{color:S.colorPrimaryActive},[`&${b}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${I}-button`]:{height:S.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${I}-button`]:{height:S.controlHeightLG},[`&-small ${I}-button`]:{height:S.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${c}-compact-item`]:{[`&:not(${c}-compact-last-item)`]:{[`${c}-group-addon`]:{[`${c}-search-button`]:{marginInlineEnd:-S.lineWidth,borderRadius:0}}},[`&:not(${c}-compact-first-item)`]:{[`${c},${c}-affix-wrapper`]:{borderRadius:0}},[`> ${c}-group-addon ${c}-search-button, > ${c}, ${c}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${c}-affix-wrapper-focused`]:{zIndex:2}}}}},tt=S=>{const{componentCls:c,paddingLG:b}=S,I=`${c}-textarea`;return{[I]:{position:"relative","&-show-count":{[`> ${c}`]:{height:"100%"},[`${c}-data-count`]:{position:"absolute",bottom:-S.fontSize*S.lineHeight,insetInlineEnd:0,color:S.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${c}`]:{paddingInlineEnd:b}},[`&-affix-wrapper${I}-has-feedback`]:{[`${c}`]:{paddingInlineEnd:b}},[`&-affix-wrapper${c}-affix-wrapper`]:{padding:0,[`> textarea${c}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${c}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${c}-clear-icon`]:{position:"absolute",insetInlineEnd:S.paddingXS,insetBlockStart:S.paddingXS},[`${I}-suffix`]:{position:"absolute",top:0,insetInlineEnd:S.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}};function _(S){return(0,C.TS)(S,{inputAffixPadding:S.paddingXXS})}const Z=S=>{const{controlHeight:c,fontSize:b,lineHeight:I,lineWidth:F,controlHeightSM:R,controlHeightLG:be,fontSizeLG:We,lineHeightLG:Ae,paddingSM:me,controlPaddingHorizontalSM:ut,controlPaddingHorizontal:ke,colorFillAlter:Ge,colorPrimaryHover:ae,controlOutlineWidth:H,controlOutline:G,colorErrorOutline:q,colorWarningOutline:ee}=S;return{paddingBlock:Math.max(Math.round((c-b*I)/2*10)/10-F,3),paddingBlockSM:Math.max(Math.round((R-b*I)/2*10)/10-F,0),paddingBlockLG:Math.ceil((be-We*Ae)/2*10)/10-F,paddingInline:me-F,paddingInlineSM:ut-F,paddingInlineLG:ke-F,addonBg:Ge,activeBorderColor:ae,hoverBorderColor:ae,activeShadow:`0 0 0 ${H}px ${G}`,errorActiveShadow:`0 0 0 ${H}px ${q}`,warningActiveShadow:`0 0 0 ${H}px ${ee}`}};xe.ZP=(0,j.Z)("Input",S=>{const c=(0,C.TS)(S,_(S));return[Oe(c),tt(c),Xe(c),nt(c),Ze(c),(0,J.c)(c)]},Z)},57809:function(nn,xe,f){"use strict";var E=f(92310),J=f.n(E),C=f(77861),j=f(2738),p=f(59301),P=f(53487),T=f(62892),ye=f(19080),te=f(36355),y=f(1684),Ce=f(93891),N=f(19716),ve=f(32441),Oe=f(33234),k=f(14154),Xe=f(58582),nt=f(84443),Ze=f(66339),tt=function(b,I){var F={};for(var R in b)Object.prototype.hasOwnProperty.call(b,R)&&I.indexOf(R)<0&&(F[R]=b[R]);if(b!=null&&typeof Object.getOwnPropertySymbols=="function")for(var be=0,R=Object.getOwnPropertySymbols(b);be{var F,{prefixCls:R,bordered:be=!0,className:We,rootClassName:Ae,getPopupContainer:me,popupClassName:ut,dropdownClassName:ke,listHeight:Ge=256,placement:ae,listItemHeight:H=24,size:G,disabled:q,notFoundContent:ee,status:Ve,builtinPlacements:$e,dropdownMatchSelectWidth:ue,popupMatchSelectWidth:Me,direction:fe,style:bt,allowClear:Dt}=b,St=tt(b,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:et,getPrefixCls:Ot,renderEmpty:at,direction:A,virtual:we,popupMatchSelectWidth:le,popupOverflow:V,select:re}=p.useContext(te.E_),de=Ot("select",R),Se=Ot(),he=fe!=null?fe:A,{compactSize:Re,compactItemClassnames:ne}=(0,Oe.ri)(de,he),[Ye,ce]=(0,k.Z)(de),Ie=p.useMemo(()=>{const{mode:In}=St;if(In!=="combobox")return In===_?"combobox":In},[St.mode]),Le=Ie==="multiple"||Ie==="tags",Ee=(0,nt.Z)(St.suffixIcon,St.showArrow),Je=(F=Me!=null?Me:ue)!==null&&F!==void 0?F:le,{status:U,hasFeedback:rt,isFormItemInput:He,feedbackIcon:ct}=p.useContext(ve.aM),vt=(0,ye.F)(U,Ve);let rn;ee!==void 0?rn=ee:Ie==="combobox"?rn=null:rn=(at==null?void 0:at("Select"))||p.createElement(Ce.Z,{componentName:"Select"});const{suffixIcon:Zt,itemIcon:Ft,removeIcon:Pt,clearIcon:Xt}=(0,Ze.Z)(Object.assign(Object.assign({},St),{multiple:Le,hasFeedback:rt,feedbackIcon:ct,showSuffixIcon:Ee,prefixCls:de,showArrow:St.showArrow,componentName:"Select"})),Yt=Dt===!0?{clearIcon:Xt}:Dt,sn=(0,j.Z)(St,["suffixIcon","itemIcon"]),Cn=J()(ut||ke,{[`${de}-dropdown-${he}`]:he==="rtl"},Ae,ce),un=(0,N.Z)(In=>{var xn;return(xn=G!=null?G:Re)!==null&&xn!==void 0?xn:In}),zn=p.useContext(y.Z),Wn=q!=null?q:zn,pn=J()({[`${de}-lg`]:un==="large",[`${de}-sm`]:un==="small",[`${de}-rtl`]:he==="rtl",[`${de}-borderless`]:!be,[`${de}-in-form-item`]:He},(0,ye.Z)(de,vt,rt),ne,re==null?void 0:re.className,We,Ae,ce),Ln=p.useMemo(()=>ae!==void 0?ae:he==="rtl"?"bottomRight":"bottomLeft",[ae,he]),wn=(0,Xe.Z)($e,V);return Ye(p.createElement(C.ZP,Object.assign({ref:I,virtual:we,showSearch:re==null?void 0:re.showSearch},sn,{style:Object.assign(Object.assign({},re==null?void 0:re.style),bt),dropdownMatchSelectWidth:Je,builtinPlacements:wn,transitionName:(0,T.m)(Se,"slide-up",St.transitionName),listHeight:Ge,listItemHeight:H,mode:Ie,prefixCls:de,placement:Ln,direction:he,suffixIcon:Zt,menuItemSelectedIcon:Ft,removeIcon:Pt,allowClear:Yt,notFoundContent:rn,className:pn,getPopupContainer:me||et,dropdownClassName:Cn,disabled:Wn})))},S=p.forwardRef(Z),c=(0,P.Z)(S);S.SECRET_COMBOBOX_MODE_DO_NOT_USE=_,S.Option=C.Wx,S.OptGroup=C.Xo,S._InternalPanelDoNotUseOrYouWillBeFired=c,xe.default=S},14154:function(nn,xe,f){"use strict";f.d(xe,{Z:function(){return S}});var E=f(17313),J=f(74207),C=f(37613),j=f(83116),p=f(13826),P=f(92899);const T=c=>{const{optionHeight:b,optionFontSize:I,optionLineHeight:F,optionPadding:R}=c;return{position:"relative",display:"block",minHeight:b,padding:R,color:c.colorText,fontWeight:"normal",fontSize:I,lineHeight:F,boxSizing:"border-box"}};var te=c=>{const{antCls:b,componentCls:I}=c,F=`${I}-item`,R=`&${b}-slide-up-enter${b}-slide-up-enter-active`,be=`&${b}-slide-up-appear${b}-slide-up-appear-active`,We=`&${b}-slide-up-leave${b}-slide-up-leave-active`,Ae=`${I}-dropdown-placement-`;return[{[`${I}-dropdown`]:Object.assign(Object.assign({},(0,E.Wf)(c)),{position:"absolute",top:-9999,zIndex:c.zIndexPopup,boxSizing:"border-box",padding:c.paddingXXS,overflow:"hidden",fontSize:c.fontSize,fontVariant:"initial",backgroundColor:c.colorBgElevated,borderRadius:c.borderRadiusLG,outline:"none",boxShadow:c.boxShadowSecondary,[` ${R}${Ae}bottomLeft, ${be}${Ae}bottomLeft `]:{animationName:p.fJ},[` ${R}${Ae}topLeft, ${be}${Ae}topLeft, ${R}${Ae}topRight, ${be}${Ae}topRight `]:{animationName:p.Qt},[`${We}${Ae}bottomLeft`]:{animationName:p.Uw},[` ${We}${Ae}topLeft, ${We}${Ae}topRight `]:{animationName:p.ly},"&-hidden":{display:"none"},[`${F}`]:Object.assign(Object.assign({},T(c)),{cursor:"pointer",transition:`background ${c.motionDurationSlow} ease`,borderRadius:c.borderRadiusSM,"&-group":{color:c.colorTextDescription,fontSize:c.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},E.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${F}-option-disabled)`]:{backgroundColor:c.optionActiveBg},[`&-selected:not(${F}-option-disabled)`]:{color:c.optionSelectedColor,fontWeight:c.optionSelectedFontWeight,backgroundColor:c.optionSelectedBg,[`${F}-option-state`]:{color:c.colorPrimary}},"&-disabled":{[`&${F}-option-selected`]:{backgroundColor:c.colorBgContainerDisabled},color:c.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:c.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,p.oN)(c,"slide-up"),(0,p.oN)(c,"slide-down"),(0,P.Fm)(c,"move-up"),(0,P.Fm)(c,"move-down")]};const y=2,Ce=c=>{let{controlHeightSM:b,controlHeight:I,lineWidth:F}=c;const R=(I-b)/2-F,be=Math.ceil(R/2);return[R,be]};function N(c,b){const{componentCls:I,iconCls:F}=c,R=`${I}-selection-overflow`,be=c.multipleSelectItemHeight,[We]=Ce(c),Ae=b?`${I}-${b}`:"";return{[`${I}-multiple${Ae}`]:{fontSize:c.fontSize,[R]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${I}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${We-y}px ${y*2}px`,borderRadius:c.borderRadius,[`${I}-show-search&`]:{cursor:"text"},[`${I}-disabled&`]:{background:c.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${y}px 0`,lineHeight:`${be}px`,visibility:"hidden",content:'"\\a0"'}},[` &${I}-show-arrow ${I}-selector, &${I}-allow-clear ${I}-selector `]:{paddingInlineEnd:c.fontSizeIcon+c.controlPaddingHorizontal},[`${I}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:be,marginTop:y,marginBottom:y,lineHeight:`${be-c.lineWidth*2}px`,background:c.multipleItemBg,border:`${c.lineWidth}px ${c.lineType} ${c.multipleItemBorderColor}`,borderRadius:c.borderRadiusSM,cursor:"default",transition:`font-size ${c.motionDurationSlow}, line-height ${c.motionDurationSlow}, height ${c.motionDurationSlow}`,userSelect:"none",marginInlineEnd:y*2,paddingInlineStart:c.paddingXS,paddingInlineEnd:c.paddingXS/2,[`${I}-disabled&`]:{color:c.multipleItemColorDisabled,borderColor:c.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:c.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,E.Ro)()),{display:"inline-flex",alignItems:"center",color:c.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${F}`]:{verticalAlign:"-0.2em"},"&:hover":{color:c.colorIconHover}})},[`${R}-item + ${R}-item`]:{[`${I}-selection-search`]:{marginInlineStart:0}},[`${I}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:c.inputPaddingHorizontalBase-We,"\n &-input,\n &-mirror\n ":{height:be,fontFamily:c.fontFamily,lineHeight:`${be}px`,transition:`all ${c.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${I}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:c.inputPaddingHorizontalBase,insetInlineEnd:c.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${c.motionDurationSlow}`}}}}var Oe=c=>{const{componentCls:b}=c,I=(0,C.TS)(c,{controlHeight:c.controlHeightSM,multipleSelectItemHeight:c.controlHeightXS,borderRadius:c.borderRadiusSM,borderRadiusSM:c.borderRadiusXS}),F=(0,C.TS)(c,{fontSize:c.fontSizeLG,controlHeight:c.controlHeightLG,multipleSelectItemHeight:c.multipleItemHeightLG,borderRadius:c.borderRadiusLG,borderRadiusSM:c.borderRadius}),[,R]=Ce(c);return[N(c),N(I,"sm"),{[`${b}-multiple${b}-sm`]:{[`${b}-selection-placeholder`]:{insetInline:c.controlPaddingHorizontalSM-c.lineWidth},[`${b}-selection-search`]:{marginInlineStart:R}}},N(F,"lg")]};function k(c,b){const{componentCls:I,inputPaddingHorizontalBase:F,borderRadius:R}=c,be=c.controlHeight-c.lineWidth*2,We=Math.ceil(c.fontSize*1.25),Ae=b?`${I}-${b}`:"";return{[`${I}-single${Ae}`]:{fontSize:c.fontSize,[`${I}-selector`]:Object.assign(Object.assign({},(0,E.Wf)(c)),{display:"flex",borderRadius:R,[`${I}-selection-search`]:{position:"absolute",top:0,insetInlineStart:F,insetInlineEnd:F,bottom:0,"&-input":{width:"100%"}},[` ${I}-selection-item, ${I}-selection-placeholder `]:{padding:0,lineHeight:`${be}px`,transition:`all ${c.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${be}px`}},[`${I}-selection-item`]:{position:"relative",userSelect:"none"},[`${I}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${I}-selection-item:after`,`${I}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[` &${I}-show-arrow ${I}-selection-item, &${I}-show-arrow ${I}-selection-placeholder `]:{paddingInlineEnd:We},[`&${I}-open ${I}-selection-item`]:{color:c.colorTextPlaceholder},[`&:not(${I}-customize-input)`]:{[`${I}-selector`]:{width:"100%",height:c.controlHeight,padding:`0 ${F}px`,[`${I}-selection-search-input`]:{height:be},"&:after":{lineHeight:`${be}px`}}},[`&${I}-customize-input`]:{[`${I}-selector`]:{"&:after":{display:"none"},[`${I}-selection-search`]:{position:"static",width:"100%"},[`${I}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${F}px`,"&:after":{display:"none"}}}}}}}function Xe(c){const{componentCls:b}=c,I=c.controlPaddingHorizontalSM-c.lineWidth;return[k(c),k((0,C.TS)(c,{controlHeight:c.controlHeightSM,borderRadius:c.borderRadiusSM}),"sm"),{[`${b}-single${b}-sm`]:{[`&:not(${b}-customize-input)`]:{[`${b}-selection-search`]:{insetInlineStart:I,insetInlineEnd:I},[`${b}-selector`]:{padding:`0 ${I}px`},[`&${b}-show-arrow ${b}-selection-search`]:{insetInlineEnd:I+c.fontSize*1.5},[` &${b}-show-arrow ${b}-selection-item, &${b}-show-arrow ${b}-selection-placeholder `]:{paddingInlineEnd:c.fontSize*1.5}}}},k((0,C.TS)(c,{controlHeight:c.singleItemHeightLG,fontSize:c.fontSizeLG,borderRadius:c.borderRadiusLG}),"lg")]}const nt=c=>{const{componentCls:b,selectorBg:I}=c;return{position:"relative",backgroundColor:I,border:`${c.lineWidth}px ${c.lineType} ${c.colorBorder}`,transition:`all ${c.motionDurationMid} ${c.motionEaseInOut}`,input:{cursor:"pointer"},[`${b}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${b}-disabled&`]:{color:c.colorTextDisabled,background:c.colorBgContainerDisabled,cursor:"not-allowed",[`${b}-multiple&`]:{background:c.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},Ze=function(c,b){let I=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:F,borderHoverColor:R,outlineColor:be,antCls:We}=b,Ae=I?{[`${F}-selector`]:{borderColor:R}}:{};return{[c]:{[`&:not(${F}-disabled):not(${F}-customize-input):not(${We}-pagination-size-changer)`]:Object.assign(Object.assign({},Ae),{[`${F}-focused& ${F}-selector`]:{borderColor:R,boxShadow:`0 0 0 ${b.controlOutlineWidth}px ${be}`,outline:0},[`&:hover ${F}-selector`]:{borderColor:R}})}}},tt=c=>{const{componentCls:b}=c;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"}}}},_=c=>{const{componentCls:b,inputPaddingHorizontalBase:I,iconCls:F}=c;return{[b]:Object.assign(Object.assign({},(0,E.Wf)(c)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${b}-customize-input) ${b}-selector`]:Object.assign(Object.assign({},nt(c)),tt(c)),[`${b}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},E.vS),[`${b}-selection-placeholder`]:Object.assign(Object.assign({},E.vS),{flex:1,color:c.colorTextPlaceholder,pointerEvents:"none"}),[`${b}-arrow`]:Object.assign(Object.assign({},(0,E.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:I,height:c.fontSizeIcon,marginTop:-c.fontSizeIcon/2,color:c.colorTextQuaternary,fontSize:c.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[F]:{verticalAlign:"top",transition:`transform ${c.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:I,zIndex:1,display:"inline-block",width:c.fontSizeIcon,height:c.fontSizeIcon,marginTop:-c.fontSizeIcon/2,color:c.colorTextQuaternary,fontSize:c.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:c.clearBg,cursor:"pointer",opacity:0,transition:`color ${c.motionDurationMid} ease, opacity ${c.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:c.colorTextTertiary}},"&:hover":{[`${b}-clear`]:{opacity:1}}}),[`${b}-has-feedback`]:{[`${b}-clear`]:{insetInlineEnd:I+c.fontSize+c.paddingXS}}}},Z=c=>{const{componentCls:b}=c;return[{[b]:{[`&-borderless ${b}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${b}-in-form-item`]:{width:"100%"}}},_(c),Xe(c),Oe(c),te(c),{[`${b}-rtl`]:{direction:"rtl"}},Ze(b,(0,C.TS)(c,{borderHoverColor:c.colorPrimaryHover,outlineColor:c.controlOutline})),Ze(`${b}-status-error`,(0,C.TS)(c,{borderHoverColor:c.colorErrorHover,outlineColor:c.colorErrorOutline}),!0),Ze(`${b}-status-warning`,(0,C.TS)(c,{borderHoverColor:c.colorWarningHover,outlineColor:c.colorWarningOutline}),!0),(0,J.c)(c,{borderElCls:`${b}-selector`,focusElCls:`${b}-focused`})]};var S=(0,j.Z)("Select",(c,b)=>{let{rootPrefixCls:I}=b;const F=(0,C.TS)(c,{rootPrefixCls:I,inputPaddingHorizontalBase:c.paddingSM-1,multipleSelectItemHeight:c.multipleItemHeight});return[Z(F)]},c=>{const{fontSize:b,lineHeight:I,controlHeight:F,controlPaddingHorizontal:R,zIndexPopupBase:be,colorText:We,fontWeightStrong:Ae,controlItemBgActive:me,controlItemBgHover:ut,colorBgContainer:ke,colorFillSecondary:Ge,controlHeightLG:ae,controlHeightSM:H,colorBgContainerDisabled:G,colorTextDisabled:q}=c;return{zIndexPopup:be+50,optionSelectedColor:We,optionSelectedFontWeight:Ae,optionSelectedBg:me,optionActiveBg:ut,optionPadding:`${(F-b*I)/2}px ${R}px`,optionFontSize:b,optionLineHeight:I,optionHeight:F,selectorBg:ke,clearBg:ke,singleItemHeightLG:ae,multipleItemBg:Ge,multipleItemBorderColor:"transparent",multipleItemHeight:H,multipleItemHeightLG:F,multipleSelectorBgDisabled:G,multipleItemColorDisabled:q,multipleItemBorderColorDisabled:"transparent"}})},58582:function(nn,xe,f){"use strict";f.d(xe,{Z:function(){return J}});const E=C=>{const p={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:C==="scroll"?"scroll":"visible",_experimental:{dynamicInset:!0}};return{bottomLeft:Object.assign(Object.assign({},p),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},p),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},p),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},p),{points:["br","tr"],offset:[0,-4]})}};function J(C,j){return C||E(j)}},84443:function(nn,xe,f){"use strict";f.d(xe,{Z:function(){return E}});function E(J,C){return C!==void 0?C:J!==null}},66339:function(nn,xe,f){"use strict";f.d(xe,{Z:function(){return ye}});var E=f(40001),J=f(19248),C=f(99267),j=f(84105),p=f(58617),P=f(47472),T=f(59301);function ye(te){let{suffixIcon:y,clearIcon:Ce,menuItemSelectedIcon:N,removeIcon:ve,loading:Oe,multiple:k,hasFeedback:Xe,prefixCls:nt,showSuffixIcon:Ze,feedbackIcon:tt,showArrow:_,componentName:Z}=te;const S=Ce!=null?Ce:T.createElement(J.Z,null),c=R=>y===null&&!Xe&&!_?null:T.createElement(T.Fragment,null,Ze!==!1&&R,Xe&&tt);let b=null;if(y!==void 0)b=c(y);else if(Oe)b=c(T.createElement(p.Z,{spin:!0}));else{const R=`${nt}-suffix`;b=be=>{let{open:We,showSearch:Ae}=be;return c(We&&Ae?T.createElement(P.Z,{className:R}):T.createElement(j.Z,{className:R}))}}let I=null;N!==void 0?I=N:k?I=T.createElement(E.Z,null):I=null;let F=null;return ve!==void 0?F=ve:F=T.createElement(C.Z,null),{clearIcon:S,suffixIcon:b,itemIcon:I,removeIcon:F}}},8378:function(nn,xe){"use strict";const f=E=>({[E.componentCls]:{[`${E.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${E.motionDurationMid} ${E.motionEaseInOut}, opacity ${E.motionDurationMid} ${E.motionEaseInOut} !important`}},[`${E.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${E.motionDurationMid} ${E.motionEaseInOut}, opacity ${E.motionDurationMid} ${E.motionEaseInOut} !important`}}});xe.Z=f},92899:function(nn,xe,f){"use strict";f.d(xe,{Fm:function(){return N}});var E=f(93083),J=f(95406);const C=new E.Keyframes("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),j=new E.Keyframes("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),p=new E.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 E.Keyframes("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),T=new E.Keyframes("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),ye=new E.Keyframes("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),te=new E.Keyframes("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),y=new E.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:te,outKeyframes:y},"move-down":{inKeyframes:C,outKeyframes:j},"move-left":{inKeyframes:p,outKeyframes:P},"move-right":{inKeyframes:T,outKeyframes:ye}},N=(ve,Oe)=>{const{antCls:k}=ve,Xe=`${k}-${Oe}`,{inKeyframes:nt,outKeyframes:Ze}=Ce[Oe];return[(0,J.R)(Xe,nt,Ze,ve.motionDurationMid),{[` ${Xe}-enter, ${Xe}-appear `]:{opacity:0,animationTimingFunction:ve.motionEaseOutCirc},[`${Xe}-leave`]:{animationTimingFunction:ve.motionEaseInOutCirc}}]}},13826:function(nn,xe,f){"use strict";f.d(xe,{Qt:function(){return p},Uw:function(){return j},fJ:function(){return C},ly:function(){return P},oN:function(){return N}});var E=f(93083),J=f(95406);const C=new E.Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),j=new E.Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),p=new E.Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),P=new E.Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),T=new E.Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),ye=new E.Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),te=new E.Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),y=new E.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:C,outKeyframes:j},"slide-down":{inKeyframes:p,outKeyframes:P},"slide-left":{inKeyframes:T,outKeyframes:ye},"slide-right":{inKeyframes:te,outKeyframes:y}},N=(ve,Oe)=>{const{antCls:k}=ve,Xe=`${k}-${Oe}`,{inKeyframes:nt,outKeyframes:Ze}=Ce[Oe];return[(0,J.R)(Xe,nt,Ze,ve.motionDurationMid),{[` ${Xe}-enter, ${Xe}-appear `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:ve.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${Xe}-leave`]:{animationTimingFunction:ve.motionEaseInQuint}}]}},89780:function(nn){(function(xe,f){nn.exports=f()})(this,function(){"use strict";var xe=navigator.userAgent,f=navigator.platform,E=/gecko\/\d/i.test(xe),J=/MSIE \d/.test(xe),C=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(xe),j=/Edge\/(\d+)/.exec(xe),p=J||C||j,P=p&&(J?document.documentMode||6:+(j||C)[1]),T=!j&&/WebKit\//.test(xe),ye=T&&/Qt\/\d+\.\d+/.test(xe),te=!j&&/Chrome\//.test(xe),y=/Opera\//.test(xe),Ce=/Apple Computer/.test(navigator.vendor),N=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(xe),ve=/PhantomJS/.test(xe),Oe=!j&&/AppleWebKit/.test(xe)&&/Mobile\/\w+/.test(xe),k=/Android/.test(xe),Xe=Oe||k||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(xe),nt=Oe||/Mac/.test(f),Ze=/\bCrOS\b/.test(xe),tt=/win/i.test(f),_=y&&xe.match(/Version\/(\d*\.\d*)/);_&&(_=Number(_[1])),_&&_>=15&&(y=!1,T=!0);var Z=nt&&(ye||y&&(_==null||_<12.11)),S=E||p&&P>=9;function c(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var b=function(e,t){var r=e.className,n=c(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 I(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function F(e,t){return I(e).appendChild(t)}function R(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)return a+(t-o);a+=l-o,a+=r-a%r,o=l+1}}var q=function(){this.id=null,this.f=null,this.time=0,this.handler=ae(this.onTimeout,this)};q.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},q.prototype.set=function(e,t){this.f=t;var r=+new Date+e;(!this.id||r=t)return n+Math.min(a,t-i);if(i+=o-n,i+=r-i%r,n=o+1,i>=t)return n}}var Dt=[""];function St(e){for(;Dt.length<=e;)Dt.push(et(Dt)+" ");return Dt[e]}function et(e){return e[e.length-1]}function Ot(e,t){for(var r=[],n=0;n"\x80"&&(e.toUpperCase()!=e.toLowerCase()||le.test(e))}function re(e,t){return t?t.source.indexOf("\\w")>-1&&V(e)?!0:t.test(e):V(e)}function de(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var Se=/[\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 he(e){return e.charCodeAt(0)>=768&&Se.test(e)}function Re(e,t,r){for(;(r<0?t>0:tr?-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 Ye(e,t,r,n){if(!e)return n(t,r,"ltr",0);for(var i=!1,o=0;ot||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 ce=null;function Ie(e,t,r){var n;ce=null;for(var i=0;it)return i;o.to==t&&(o.from!=o.to&&r=="before"?n=i:ce=i),o.from==t&&(o.from!=o.to&&r!="before"?n=i:ce=i)}return n!=null?n:ce}var Le=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,v,m){this.level=u,this.from=v,this.to=m}return function(u,v){var m=v=="ltr"?"L":"R";if(u.length==0||v=="ltr"&&!n.test(u))return!1;for(var O=u.length,w=[],z=0;z-1&&(n[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function ct(e,t){var r=rt(e,t);if(r.length)for(var n=Array.prototype.slice.call(arguments,2),i=0;i0}function Ft(e){e.prototype.on=function(t,r){U(this,t,r)},e.prototype.off=function(t,r){He(this,t,r)}}function Pt(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Xt(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Yt(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function sn(e){Pt(e),Xt(e)}function Cn(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)),nt&&e.ctrlKey&&t==1&&(t=3),t}var zn=function(){if(p&&P<9)return!1;var e=R("div");return"draggable"in e||"dragDrop"in e}(),Wn;function pn(e){if(Wn==null){var t=R("span","\u200B");F(e,R("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(Wn=t.offsetWidth<=1&&t.offsetHeight>2&&!(p&&P<8))}var r=Wn?R("span","\u200B"):R("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return r.setAttribute("cm-text",""),r}var Ln;function wn(e){if(Ln!=null)return Ln;var t=F(e,document.createTextNode("A\u062EA")),r=We(t,0,1).getBoundingClientRect(),n=We(t,1,2).getBoundingClientRect();return I(e),!r||r.left==r.right?!1:Ln=n.right-r.right<3}var In=` 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/)},xn=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},dn=function(){var e=R("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),Nn=null;function Qt(e){if(Nn!=null)return Nn;var t=F(e,R("span","x")),r=t.getBoundingClientRect(),n=We(t,0,1).getBoundingClientRect();return Nn=Math.abs(r.left-n.left)>1}var An={},Hn={};function Sr(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),An[e]=t}function pr(e,t){Hn[e]=t}function on(e){if(typeof e=="string"&&Hn.hasOwnProperty(e))e=Hn[e];else if(e&&typeof e.name=="string"&&Hn.hasOwnProperty(e.name)){var t=Hn[e.name];typeof t=="string"&&(t={name:t}),e=we(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return on("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return on("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function Qe(e,t){t=on(t);var r=An[t.name];if(!r)return Qe(e,"text/plain");var n=r(e,t);if(Mt.hasOwnProperty(t.name)){var i=Mt[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 Mt={};function g(e,t){var r=Mt.hasOwnProperty(e)?Mt[e]:Mt[e]={};H(t,r)}function D(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 W(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.post},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.lastColumnPos0?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 x(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=e.first&&tr?M(r,x(e,r).text.length):oe(t,x(e,t.line).text.length)}function oe(e,t){var r=e.ch;return r==null||r>t?M(e.line,t):r<0?M(e.line,0):e}function De(e,t){for(var r=[],n=0;nthis.maxLookAhead&&(this.maxLookAhead=e),t},_e.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}},_e.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},_e.fromSaved=function(e,t,r){return t instanceof it?new _e(e,D(e.mode,t.state),r,t.lookAhead):new _e(e,D(e.mode,t),r)},_e.prototype.save=function(e){var t=e!==!1?D(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new it(t,this.maxLookAhead):t};function lt(e,t,r,n){var i=[e.state.modeGen],o={};kt(e,t.text,e.doc.mode,r,function(u,v){return i.push(u,v)},o,n);for(var a=r.state,l=function(u){r.baseTokens=i;var v=e.state.overlays[u],m=1,O=0;r.state=!0,kt(e,t.text,v.mode,r,function(w,z){for(var X=m;Ow&&i.splice(m,1,w,i[m+1],ge),m+=2,O=Math.min(w,ge)}if(z)if(v.opaque)i.splice(X,m-X,w,"overlay "+z),m=X+2;else for(;Xe.options.maxHighlightLength&&D(e.doc.mode,n.state),o=lt(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 Rt(e,t,r){var n=e.doc,i=e.display;if(!n.mode.startState)return new _e(n,!0,t);var o=Lt(e,t,r),a=o>n.first&&x(n,o-1).stateAfter,l=a?_e.fromSaved(n,a,o):new _e(n,d(n.mode),o);return n.iter(o,t,function(s){$t(e,s.text,l);var u=l.line;s.stateAfter=u==t-1||u%5==0||u>=i.viewFrom&&ut.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}var qt=function(e,t,r){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=r};function Ut(e,t,r,n){var i=e.doc,o=i.mode,a;t=Y(i,t);var l=x(i,t.line),s=Rt(e,t.line,r),u=new h(l.text,e.options.tabSize,s),v;for(n&&(v=[]);(n||u.pose.options.maxHighlightLength?(l=!1,a&&$t(e,t,n,v.pos),v.pos=t.length,m=null):m=jt(wt(r,v,n.state,O),o),O){var w=O[0].name;w&&(m="m-"+(m?w+" "+m:w))}if(!l||u!=m){for(;sa;--l){if(l<=o.first)return o.first;var s=x(o,l-1),u=s.stateAfter;if(u&&(!r||l+(u instanceof it?u.lookAhead:0)<=o.modeFrontier))return l;var v=G(s.text,null,e.options.tabSize);(i==null||n>v)&&(i=l-1,n=v)}return i}function xt(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontierr;n--){var i=x(e,n).stateAfter;if(i&&(!(i instanceof it)||n+i.lookAhead=t:o.to>t);(n||(n=[])).push(new Ht(a,o.from,s?null:o.to))}}return n}function It(e,t,r){var n;if(e)for(var i=0;i=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.from0&&l)for(var qe=0;qe0)){var v=[s,1],m=K(u.from,l.from),O=K(u.to,l.to);(m<0||!a.inclusiveLeft&&!m)&&v.push({from:u.from,to:l.from}),(O>0||!a.inclusiveRight&&!O)&&v.push({from:l.to,to:u.to}),i.splice.apply(i,v),s+=v.length-3}}return i}function tn(e){var t=e.markedSpans;if(t){for(var r=0;rt)&&(!n||gn(n,o.marker)<0)&&(n=o.marker)}return n}function pt(e,t,r,n,i){var o=x(e,t),a=Et&&o.markedSpans;if(a)for(var l=0;l=0&&m<=0||v<=0&&m>=0)&&(v<=0&&(s.marker.inclusiveRight&&i.inclusiveLeft?K(u.to,r)>=0:K(u.to,r)>0)||v>=0&&(s.marker.inclusiveRight&&i.inclusiveLeft?K(u.from,n)<=0:K(u.from,n)<0)))return!0}}}function mt(e){for(var t;t=Tn(e);)e=t.find(-1,!0).line;return e}function vn(e){for(var t;t=je(e);)e=t.find(1,!0).line;return e}function Cr(e){for(var t,r;t=je(e);)e=t.find(1,!0).line,(r||(r=[])).push(e);return r}function Kn(e,t){var r=x(e,t),n=mt(r);return r==n?t:$(n)}function Jn(e,t){if(t>e.lastLine())return t;var r=x(e,t),n;if(!Fn(e,r))return t;for(;n=je(r);)r=n.find(1,!0).line;return $(r)+1}function Fn(e,t){var r=Et&&t.markedSpans;if(r){for(var n=void 0,i=0;it.maxLineLength&&(t.maxLineLength=i,t.maxLine=n)})}var tr=function(e,t,r){this.text=e,Vt(this,t),this.height=r?r(this):1};tr.prototype.lineNo=function(){return $(this)},Ft(tr);function Kr(e,t,r,n){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),tn(e),Vt(e,r);var i=n?n(e):1;i!=e.height&&B(e,i)}function Xr(e){e.parent=null,tn(e)}var li={},Yr={};function xr(e,t){if(!e||/^\s*$/.test(e))return null;var r=t.addModeClass?Yr:li;return r[e]||(r[e]=e.replace(/\S+/g,"cm-$&"))}function Qr(e,t){var r=be("span",null,null,T?"padding-right: .1px":null),n={pre:be("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=Bi,wn(e.display.measure)&&(a=Ee(o,e.doc.direction))&&(n.addToken=si(n.addToken,a)),n.map=[];var l=t!=e.display.externalMeasured&&$(o);Ci(o,n,_t(e,o,l)),o.styleClasses&&(o.styleClasses.bgClass&&(n.bgClass=ke(o.styleClasses.bgClass,n.bgClass||"")),o.styleClasses.textClass&&(n.textClass=ke(o.styleClasses.textClass,n.textClass||""))),n.map.length==0&&n.map.push(0,0,n.content.appendChild(pn(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(T){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 ct(e,"renderLine",e,t.line,n.pre),n.pre.className&&(n.textClass=ke(n.pre.className,n.textClass||"")),n}function Ir(e){var t=R("span","\u2022","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function Bi(e,t,r,n,i,o,a){if(t){var l=e.splitSpaces?Si(t,e.trailingSpace):t,s=e.cm.state.specialChars,u=!1,v;if(!s.test(t))e.col+=t.length,v=document.createTextNode(l),e.map.push(e.pos,e.pos+t.length,v),p&&P<9&&(u=!0),e.pos+=t.length;else{v=document.createDocumentFragment();for(var m=0;;){s.lastIndex=m;var O=s.exec(t),w=O?O.index-m:t.length-m;if(w){var z=document.createTextNode(l.slice(m,m+w));p&&P<9?v.appendChild(R("span",[z])):v.appendChild(z),e.map.push(e.pos,e.pos+w,z),e.col+=w,e.pos+=w}if(!O)break;m+=w+1;var X=void 0;if(O[0]==" "){var ge=e.cm.options.tabSize,Pe=ge-e.col%ge;X=v.appendChild(R("span",St(Pe),"cm-tab")),X.setAttribute("role","presentation"),X.setAttribute("cm-text"," "),e.col+=Pe}else O[0]=="\r"||O[0]==` `?(X=v.appendChild(R("span",O[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),X.setAttribute("cm-text",O[0]),e.col+=1):(X=e.cm.options.specialCharPlaceholder(O[0]),X.setAttribute("cm-text",O[0]),p&&P<9?v.appendChild(R("span",[X])):v.appendChild(X),e.col+=1);e.map.push(e.pos,e.pos+1,X),e.pos++}}if(e.trailingSpace=l.charCodeAt(t.length-1)==32,r||n||i||u||o||a){var Ue=r||"";n&&(Ue+=n),i&&(Ue+=i);var Ne=R("span",[v],Ue,o);if(a)for(var qe in a)a.hasOwnProperty(qe)&&qe!="style"&&qe!="class"&&Ne.setAttribute(qe,a[qe]);return e.content.appendChild(Ne)}e.content.appendChild(v)}}function Si(e,t){if(e.length>1&&!/ /.test(e))return e;for(var r=t,n="",i=0;iu&&m.from<=u));O++);if(m.to>=v)return e(r,n,i,o,a,l,s);e(r,n.slice(0,m.to-u),i,o,null,l,s),o=null,n=n.slice(m.to-u),u=m.to}}}function _r(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 Ci(e,t,r){var n=e.markedSpans,i=e.text,o=0;if(!n){for(var a=1;as||Kt.collapsed&>.to==s&>.from==s)){if(gt.to!=null&>.to!=s&&w>gt.to&&(w=gt.to,X=""),Kt.className&&(z+=" "+Kt.className),Kt.css&&(O=(O?O+";":"")+Kt.css),Kt.startStyle&>.from==s&&(ge+=" "+Kt.startStyle),Kt.endStyle&>.to==w&&(qe||(qe=[])).push(Kt.endStyle,gt.to),Kt.title&&((Ue||(Ue={})).title=Kt.title),Kt.attributes)for(var Sn in Kt.attributes)(Ue||(Ue={}))[Sn]=Kt.attributes[Sn];Kt.collapsed&&(!Pe||gn(Pe.marker,Kt)<0)&&(Pe=gt)}else gt.from>s&&w>gt.from&&(w=gt.from)}if(qe)for(var Yn=0;Yn=l)break;for(var br=Math.min(l,w);;){if(v){var dr=s+v.length;if(!Pe){var Bn=dr>br?v.slice(0,br-s):v;t.addToken(t,Bn,m?m+z:z,ge,s+Bn.length==w?X:"",O,Ue)}if(dr>=br){v=v.slice(br-s),s=br;break}s=dr,ge=""}v=i.slice(o,o=r[u++]),m=xr(r[u++],t.cm.options)}}}function xi(e,t,r){this.line=t,this.rest=Cr(t),this.size=this.rest?$(et(this.rest))-r+1:1,this.node=this.text=null,this.hidden=Fn(e,t)}function Ur(e,t,r){for(var n=[],i,o=t;o2&&o.push((s.bottom+u.top)/2-r.top)}}o.push(r.bottom-r.top)}}function Ui(e,t,r){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var n=0;nr)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}function Ko(e,t){t=mt(t);var r=$(t),n=e.display.externalMeasured=new xi(e.doc,t,r);n.lineN=r;var i=n.built=Qr(e,n);return n.text=i.pre,F(e.display.lineMeasure,i.pre),n}function ji(e,t,r,n){return Pr(e,Jr(e,t),r,n)}function ki(e,t){if(t>=e.display.viewFrom&&t=r.lineN&&tt)&&(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=0&&(r=e[i]).left==r.right;i--);return r}function Jt(e,t,r,n){var i=Gi(t.map,r,n),o=i.node,a=i.start,l=i.end,s=i.collapse,u;if(o.nodeType==3){for(var v=0;v<4;v++){for(;a&&he(t.line.text.charAt(i.coverStart+a));)--a;for(;i.coverStart+l0&&(s=n="right");var m;e.options.lineWrapping&&(m=o.getClientRects()).length>1?u=m[n=="right"?m.length-1:0]:u=o.getBoundingClientRect()}if(p&&P<9&&!a&&(!u||!u.left&&!u.right)){var O=o.parentNode.getClientRects()[0];O?u={left:O.left,right:O.left+Oi(e.display),top:O.top,bottom:O.bottom}:u=So}for(var w=u.top-t.rect.top,z=u.bottom-t.rect.top,X=(w+z)/2,ge=t.view.measure.heights,Pe=0;Pe=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 v(z,X,ge){var Pe=l[X],Ue=Pe.level==1;return a(ge?z-1:z,Ue!=ge)}var m=Ie(l,s,u),O=ce,w=v(s,m,u=="before");return O!=null&&(w.other=v(s,O,u!="before")),w}function Ca(e,t){var r=0;t=Y(e.doc,t),e.options.lineWrapping||(r=Oi(e.display)*t.ch);var n=x(e.doc,t.line),i=Mn(n)+wi(e.display);return{left:r,right:r,top:i,bottom:i+n.height}}function _o(e,t,r,n,i){var o=M(e,t,r);return o.xRel=i,n&&(o.outside=n),o}function Uo(e,t,r){var n=e.doc;if(r+=e.display.viewOffset,r<0)return _o(n.first,0,null,-1,-1);var i=se(n,r),o=n.first+n.size-1;if(i>o)return _o(n.first+n.size-1,x(n,o).text.length,null,1,1);t<0&&(t=0);for(var a=x(n,i);;){var l=Zl(e,a,i,t,r),s=ze(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=x(n,i=u.line)}}function xa(e,t,r,n){n-=jr(t);var i=t.text.length,o=ne(function(a){return Pr(e,r,a-1).bottom<=n},i,0);return i=ne(function(a){return Pr(e,r,a).top>n},o,i),{begin:o,end:i}}function wa(e,t,r,n){r||(r=Jr(e,t));var i=wr(e,t,Pr(e,r,n),"line").top;return xa(e,t,r,i)}function jo(e,t,r,n){return e.bottom<=r?!1:e.top>r?!0:(n?e.left:e.right)>t}function Zl(e,t,r,n,i){i-=Mn(t);var o=Jr(e,t),a=jr(t),l=0,s=t.text.length,u=!0,v=Ee(t,e.doc.direction);if(v){var m=(e.options.lineWrapping?_l:Kl)(e,t,r,o,v,n,i);u=m.level!=1,l=u?m.from:m.to-1,s=u?m.to:m.from-1}var O=null,w=null,z=ne(function(Ct){var gt=Pr(e,o,Ct);return gt.top+=a,gt.bottom+=a,jo(gt,n,i,!1)?(gt.top<=i&>.left<=n&&(O=Ct,w=gt),!0):!1},l,s),X,ge,Pe=!1;if(w){var Ue=n-w.left=qe.bottom?1:0}return z=Re(t.text,z,1),_o(r,z,ge,Pe,n-X)}function Kl(e,t,r,n,i,o,a){var l=ne(function(m){var O=i[m],w=O.level!=1;return jo(mr(e,M(r,w?O.to:O.from,w?"before":"after"),"line",t,n),o,a,!0)},0,i.length-1),s=i[l];if(l>0){var u=s.level!=1,v=mr(e,M(r,u?s.from:s.to,u?"after":"before"),"line",t,n);jo(v,o,a,!0)&&v.top>a&&(s=i[l-1])}return s}function _l(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 v=null,m=null,O=0;O=u||w.to<=s)){var z=w.level!=1,X=Pr(e,n,z?Math.min(u,w.to)-1:Math.max(s,w.from)).right,ge=Xge)&&(v=w,m=ge)}}return v||(v=i[i.length-1]),v.fromu&&(v={from:v.from,to:u,level:v.level}),v}var fi;function Ei(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(fi==null){fi=R("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)fi.appendChild(document.createTextNode("x")),fi.appendChild(R("br"));fi.appendChild(document.createTextNode("x"))}F(e.measure,fi);var r=fi.offsetHeight/50;return r>3&&(e.cachedTextHeight=r),I(e.measure),r||1}function Oi(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var t=R("span","xxxxxxxxxx"),r=R("pre",[t],"CodeMirror-line-like");F(e.measure,r);var n=t.getBoundingClientRect(),i=(n.right-n.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function ko(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:Go(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:r,gutterWidth:n,wrapperWidth:t.wrapper.clientWidth}}function Go(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Ea(e){var t=Ei(e.display),r=e.options.lineWrapping,n=r&&Math.max(5,e.display.scroller.clientWidth/Oi(e.display)-3);return function(i){if(Fn(e.doc,i))return 0;var o=0;if(i.widgets)for(var a=0;a0&&(u=x(e.doc,s.line).text).length==s.ch){var v=G(u,u.length,e.options.tabSize)-u.length;s=M(s.line,Math.max(0,Math.round((o-yo(e.display).left)/Oi(e.display))-v))}return s}function hi(e,t){if(t>=e.display.viewTo||(t-=e.display.viewFrom,t<0))return null;for(var r=e.display.view,n=0;nt)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)Et&&Kn(e.doc,t)i.viewFrom?ei(e):(i.viewFrom+=n,i.viewTo+=n);else if(t<=i.viewFrom&&r>=i.viewTo)ei(e);else if(t<=i.viewFrom){var o=Co(e,r,r+n,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=n):ei(e)}else if(r>=i.viewTo){var a=Co(e,t,t,-1);a?(i.view=i.view.slice(0,a.index),i.viewTo=a.lineN):ei(e)}else{var l=Co(e,t,t,-1),s=Co(e,r,r+n,1);l&&s?(i.view=i.view.slice(0,l.index).concat(Ur(e,l.lineN,s.lineN)).concat(i.view.slice(s.index)),i.viewTo+=n):ei(e)}var u=i.externalMeasured;u&&(r=i.lineN&&t=n.viewTo)){var o=n.view[hi(e,t)];if(o.node!=null){var a=o.changes||(o.changes=[]);ee(a,r)==-1&&a.push(r)}}}function ei(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Co(e,t,r,n){var i=hi(e,t),o,a=e.display.view;if(!Et||r==e.doc.first+e.doc.size)return{index:i,lineN:r};for(var l=e.display.viewFrom,s=0;s0){if(i==a.length-1)return null;o=l+a[i].size-t,i++}else o=l-t;t+=o,r+=o}for(;Kn(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 Ul(e,t,r){var n=e.display,i=n.view;i.length==0||t>=n.viewTo||r<=n.viewFrom?(n.view=Ur(e,t,r),n.viewFrom=t):(n.viewFrom>t?n.view=Ur(e,t,n.viewFrom).concat(n.view):n.viewFromr&&(n.view=n.view.slice(0,hi(e,r)))),n.viewTo=r}function Oa(e){for(var t=e.display.view,r=0,n=0;n=e.display.viewTo||l.to().line0?t.blinker=setInterval(function(){e.hasFocus()||Ii(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,Ii(e))},100)}function Yo(e,t){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),e.options.readOnly!="nocursor"&&(e.state.focused||(ct(e,"focus",e,t),e.state.focused=!0,ut(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),T&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),Xo(e))}function Ii(e,t){e.state.delayingBlurEvent||(e.state.focused&&(ct(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 wo(e){for(var t=e.display,r=t.lineDiv.offsetTop,n=0;n.005||v<-.005)&&(B(i.line,a),Ta(i.line),i.rest))for(var m=0;me.display.sizerWidth){var O=Math.ceil(l/Oi(e.display));O>e.display.maxLineLength&&(e.display.maxLineLength=O,e.display.maxLine=i.line,e.display.maxLineChanged=!0)}}}}function Ta(e){if(e.widgets)for(var t=0;t=a&&(o=se(t,Mn(x(t,s))-e.wrapper.clientHeight),a=s)}return{from:o,to:Math.max(a,o+1)}}function kl(e,t){if(!vt(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&&!ve){var o=R("div","\u200B",null,`position: absolute; top: `+(t.top-r.viewOffset-wi(e.display))+`px; height: `+(t.bottom-t.top+Dr(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 Gl(e,t,r,n){n==null&&(n=0);var i;!e.options.lineWrapping&&t==r&&(t=t.ch?M(t.line,t.sticky=="before"?t.ch-1:t.ch,"after"):t,r=t.sticky=="before"?M(t.line,t.ch+1,"before"):t);for(var o=0;o<5;o++){var a=!1,l=mr(e,t),s=!r||r==t?l:mr(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),v=e.doc.scrollTop,m=e.doc.scrollLeft;if(u.scrollTop!=null&&(Qi(e,u.scrollTop),Math.abs(e.doc.scrollTop-v)>1&&(a=!0)),u.scrollLeft!=null&&(vi(e,u.scrollLeft),Math.abs(e.doc.scrollLeft-m)>1&&(a=!0)),!a)break}return i}function Vl(e,t){var r=Qo(e,t);r.scrollTop!=null&&Qi(e,r.scrollTop),r.scrollLeft!=null&&vi(e,r.scrollLeft)}function Qo(e,t){var r=e.display,n=Ei(e.display);t.top<0&&(t.top=0);var i=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:r.scroller.scrollTop,o=_i(e),a={};t.bottom-t.top>o&&(t.bottom=t.top+o);var l=e.doc.height+Ki(r),s=t.topl-n;if(t.topi+o){var v=Math.min(t.top,(u?l:t.bottom)-o);v!=i&&(a.scrollTop=v)}var m=e.options.fixedGutter?0:r.gutters.offsetWidth,O=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:r.scroller.scrollLeft-m,w=Br(e)-r.gutters.offsetWidth,z=t.right-t.left>w;return z&&(t.right=t.left+w),t.left<10?a.scrollLeft=0:t.leftw+O-3&&(a.scrollLeft=t.right+(z?0:10)-w),a}function Jo(e,t){t!=null&&(Oo(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+t)}function Mi(e){Oo(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function Yi(e,t,r){(t!=null||r!=null)&&Oo(e),t!=null&&(e.curOp.scrollLeft=t),r!=null&&(e.curOp.scrollTop=r)}function Xl(e,t){Oo(e),e.curOp.scrollToPos=t}function Oo(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var r=Ca(e,t.from),n=Ca(e,t.to);Da(e,r,n,t.margin)}}function Da(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});Yi(e,i.scrollLeft,i.scrollTop)}function Qi(e,t){Math.abs(e.doc.scrollTop-t)<2||(E||ea(e,{top:t}),Pa(e,t,!0),E&&ea(e),eo(e,100))}function Pa(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 vi(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 Ji(e){var t=e.display,r=t.gutters.offsetWidth,n=Math.round(e.doc.height+Ki(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+Dr(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:r}}var pi=function(e,t,r){this.cm=r;var n=this.vert=R("div",[R("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=R("div",[R("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");n.tabIndex=i.tabIndex=-1,e(n),e(i),U(n,"scroll",function(){n.clientHeight&&t(n.scrollTop,"vertical")}),U(i,"scroll",function(){i.clientWidth&&t(i.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,p&&P<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};pi.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}},pi.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},pi.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},pi.prototype.zeroWidthHack=function(){var e=nt&&!N?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new q,this.disableVert=new q},pi.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)},pi.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var qi=function(){};qi.prototype.update=function(){return{bottom:0,right:0}},qi.prototype.setScrollLeft=function(){},qi.prototype.setScrollTop=function(){},qi.prototype.clear=function(){};function Ri(e,t){t||(t=Ji(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&&wo(e),Na(e,Ji(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:pi,null:qi};function Fa(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),U(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"?vi(e,t):Qi(e,t)},e),e.display.scrollbars.addClass&&ut(e.display.wrapper,e.display.scrollbars.addClass)}var Yl=0;function gi(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},ui(e.curOp)}function mi(e){var t=e.curOp;t&&Tt(t,function(r){for(var n=0;n=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&&wo(t),e.barMeasure=Ji(t),r.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=ji(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+Dr(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,r.sizer.offsetLeft+e.adjustWidthTo-Br(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=e.display.viewTo)){var r=+new Date+e.options.workTime,n=Rt(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?D(t.mode,n.state):null,s=lt(e,o,n,!0);l&&(n.state=l),o.styles=s.styles;var u=o.styleClasses,v=s.classes;v?o.styleClasses=v:u&&(o.styleClasses=null);for(var m=!a||a.length!=o.styles.length||u!=v&&(!u||!v||u.bgClass!=v.bgClass||u.textClass!=v.textClass),O=0;!m&&Or)return eo(e,e.options.workDelay),!0}),t.highlightFrontier=n.line,t.modeFrontier=Math.max(t.modeFrontier,n.line),i.length&&yr(e,function(){for(var o=0;o=r.viewFrom&&t.visible.to<=r.viewTo&&(r.updateLineNumbers==null||r.updateLineNumbers>=r.viewTo)&&r.renderedView==r.view&&Oa(e)==0)return!1;Wa(e)&&(ei(e),t.dims=ko(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.viewFroma&&r.viewTo-a<20&&(a=Math.min(i,r.viewTo)),Et&&(o=Kn(e.doc,o),a=Jn(e.doc,a));var l=o!=r.viewFrom||a!=r.viewTo||r.lastWrapHeight!=t.wrapperHeight||r.lastWrapWidth!=t.wrapperWidth;Ul(e,o,a),r.viewOffset=Mn(x(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),I(r.cursorDiv),I(r.selectionDiv),r.gutters.style.height=r.sizer.style.minHeight=0,l&&(r.lastWrapHeight=t.wrapperHeight,r.lastWrapWidth=t.wrapperWidth,eo(e,400)),r.updateLineNumbers=null,!0}function $a(e,t){for(var r=t.viewport,n=!0;;n=!1){if(!n||!e.options.lineWrapping||t.oldDisplayWidth==Br(e)){if(r&&r.top!=null&&(r={top:Math.min(e.doc.height+Ki(e.display)-_i(e),r.top)}),t.visible=Eo(e.display,e.doc,r),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break}else n&&(t.visible=Eo(e.display,e.doc,r));if(!qo(e,t))break;wo(e);var i=Ji(e);Xi(e),Ri(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)){wo(e),$a(e,r);var n=Ji(e);Xi(e),Ri(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(z){var X=z.nextSibling;return T&&nt&&e.display.currentWheelTarget==z?z.style.display="none":z.parentNode.removeChild(z),X}for(var s=n.view,u=n.viewFrom,v=0;v-1&&(w=!1),bn(e,m,u,r)),w&&(I(m.lineNumber),m.lineNumber.appendChild(document.createTextNode(Fe(e.options,u)))),a=m.node.nextSibling}u+=m.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+Dr(e)+"px"}function za(e){var t=e.display,r=t.view;if(!(!t.alignWidgets&&(!t.gutters.firstChild||!e.options.fixedGutter))){for(var n=Go(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=n+"px",a=0;aa.clientWidth,s=a.scrollHeight>a.clientHeight;if(n&&l||i&&s){if(i&&nt&&T){e:for(var u=t.target,v=o.view;u!=a;u=u.parentNode)for(var m=0;m=0&&K(e,n.to())<=0)return r}return-1};var cn=function(e,t){this.anchor=e,this.head=t};cn.prototype.from=function(){return Te(this.anchor,this.head)},cn.prototype.to=function(){return Be(this.anchor,this.head)},cn.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function zr(e,t,r){var n=e&&e.options.selectionsMayTouch,i=t[r];t.sort(function(O,w){return K(O.from(),w.from())}),r=ee(t,i);for(var o=1;o0:s>=0){var u=Te(l.from(),a.from()),v=Be(l.to(),a.to()),m=l.empty()?a.from()==a.head:l.from()==l.head;o<=r&&--r,t.splice(--o,2,new cn(m?v:u,m?u:v))}}return new Or(t,r)}function ti(e,t){return new Or([new cn(e,t||e)],0)}function ni(e){return e.text?M(e.from.line+e.text.length-1,et(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function Ka(e,t){if(K(e,t.from)<0)return e;if(K(e,t.to)<=0)return ni(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+=ni(t).ch-t.to.ch),M(r,n)}function ia(e,t){for(var r=[],n=0;n1&&e.remove(l.line+1,z-1),e.insert(l.line+1,Pe)}ot(e,"change",e,t)}function ri(e,t,r){function n(i,o,a){if(i.linked)for(var l=0;l1&&!e.done[e.done.length-2].ranges)return e.done.pop(),et(e.done)}function Va(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=et(a.changes),K(t.from,t.to)==0&&K(t.from,l.to)==0?l.to=ni(t):a.changes.push(la(e,t));else{var s=et(i.done);for((!s||!s.ranges)&&Lo(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||ct(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,et(i.done),t))?i.done[i.done.length-1]=t:Lo(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=r,n&&n.clearRedo!==!1&&Ga(i.undone)}function Lo(e,t){var r=et(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 ps(e){if(!e)return null;for(var t,r=0;r-1&&(et(l)[m]=u[m],delete u[m])}}return n}function sa(e,t,r,n){if(n){var i=e.anchor;if(r){var o=K(t,i)<0;o!=K(r,i)<0?(i=t,t=r):o!=K(t,r)<0&&(t=r)}return new cn(i,t)}else return new cn(r||t,t)}function To(e,t,r,n,i){i==null&&(i=e.cm&&(e.cm.display.shift||e.extend)),rr(e,new Or([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=t.ch:l.to>t.ch))){if(i&&(ct(s,"beforeCursorEnter"),s.explicitlyCleared))if(o.markedSpans){--a;continue}else break;if(!s.atomic)continue;if(r){var m=s.find(n<0?1:-1),O=void 0;if((n<0?v:u)&&(m=rl(e,m,-n,m&&m.line==t.line?o:null)),m&&m.line==t.line&&(O=K(m,r))&&(n<0?O<0:O>0))return Ti(e,m,t,n,i)}var w=s.find(n<0?-1:1);return(n<0?u:v)&&(w=rl(e,w,n,w.line==t.line?o:null)),w?Ti(e,w,t,n,i):null}}return t}function Po(e,t,r,n,i){var o=n||1,a=Ti(e,t,r,o,i)||!i&&Ti(e,t,r,o,!0)||Ti(e,t,r,-o,i)||!i&&Ti(e,t,r,-o,!0);return a||(e.cantEdit=!0,M(e.first,0))}function rl(e,t,r,n){return r<0&&t.ch==0?t.line>e.first?Y(e,M(t.line-1)):null:r>0&&t.ch==(n||x(e,t.line)).text.length?t.line=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]==""&&K(t.from,t.to)==0)){var r=ia(e,t);Va(e,t,r,e.cm?e.cm.curOp.id:NaN),ro(e,t,r,st(e,t));var n=[];ri(e,function(i,o){!o&&ee(n,i.history)==-1&&(cl(i.history,t),n.push(i.history)),ro(i,t,null,st(i,t))})}}function No(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=0;--w){var z=O(w);if(z)return z.v}}}}function ll(e,t){if(t!=0&&(e.first+=t,e.sel=new Or(Ot(e.sel.ranges,function(i){return new cn(M(i.anchor.line+t,i.anchor.ch),M(i.head.line+t,i.head.ch))}),e.sel.primIndex),e.cm)){cr(e.cm,e.first,e.first-t,t);for(var r=e.cm.display,n=r.viewFrom;ne.lastLine())){if(t.from.lineo&&(t={from:t.from,to:M(o,x(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=L(e,t.from,t.to),r||(r=ia(e,t)),e.cm?ys(e.cm,t,n):aa(e,t,n),Do(e,r,ue),e.cantEdit&&Po(e,M(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=$(mt(x(n,o.line))),n.iter(s,a.line+1,function(w){if(w==i.maxLine)return l=!0,!0})),n.sel.contains(t.from,t.to)>-1&&rn(e),aa(n,t,r,Ea(e)),e.options.lineWrapping||(n.iter(s,o.line+t.text.length,function(w){var z=sr(w);z>i.maxLineLength&&(i.maxLine=w,i.maxLineLength=z,i.maxLineChanged=!0,l=!1)}),l&&(e.curOp.updateMaxLine=!0)),xt(n,o.line),eo(e,400);var u=t.text.length-(a.line-o.line)-1;t.full?cr(e):o.line==a.line&&t.text.length==1&&!Ua(e.doc,t)?qr(e,o.line,"text"):cr(e,o.line,a.line+1,u);var v=Zt(e,"changes"),m=Zt(e,"change");if(m||v){var O={from:o,to:a,text:t.text,removed:t.removed,origin:t.origin};m&&ot(e,"change",e,O),v&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(O)}e.display.selForContextMenu=null}function Pi(e,t,r,n,i){var o;n||(n=r),K(n,r)<0&&(o=[n,r],r=o[0],n=o[1]),typeof t=="string"&&(t=e.splitLines(t)),Di(e,{from:r,to:n,text:t,origin:i})}function sl(e,t,r,n){r1||!(this.children[0]instanceof oo))){var l=[];this.collapse(l),this.children=[new oo(l)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var a=i.lines.length%25+25,l=a;l10);e.parent.maybeSpill()}},iterN:function(e,t,r){for(var n=0;ne.display.maxLineLength&&(e.display.maxLine=u,e.display.maxLineLength=v,e.display.maxLineChanged=!0)}n!=null&&e&&this.collapsed&&cr(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&&ot(e,"markerCleared",e,this,n,i),t&&mi(e),this.parent&&this.parent.clear()}},ii.prototype.find=function(e,t){e==null&&this.type=="bookmark"&&(e=1);for(var r,n,i=0;i0||a==0&&o.clearWhenEmpty!==!1)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=be("span",[o.replacedWith],"CodeMirror-widget"),n.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),n.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(pt(e,t.line,t,r,o)||t.line!=r.line&&pt(e,r.line,t,r,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");Nt()}o.addToHistory&&Va(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(m){s&&o.collapsed&&!s.options.lineWrapping&&mt(m)==s.display.maxLine&&(u=!0),o.collapsed&&l!=t.line&&B(m,0),En(m,new Ht(o,l==t.line?t.ch:null,l==r.line?r.ch:null)),++l}),o.collapsed&&e.iter(t.line,r.line+1,function(m){Fn(e,m)&&B(m,0)}),o.clearOnEnter&&U(o,"beforeCursorEnter",function(){return o.clear()}),o.readOnly&&(fn(),(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)cr(s,t.line,r.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var v=t.line;v<=r.line;v++)qr(s,v,"text");o.atomic&&tl(s.doc),ot(s,"markerAdded",s,o)}return o}var so=function(e,t){this.markers=e,this.primary=t;for(var r=0;r=0;s--)Di(this,n[s]);l?qa(this,l):this.cm&&Mi(this.cm)}),undo:Xn(function(){No(this,"undo")}),redo:Xn(function(){No(this,"redo")}),undoSelection:Xn(function(){No(this,"undo",!0)}),redoSelection:Xn(function(){No(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.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,r){e=Y(this,e),t=Y(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=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;ne)return t=e,!0;e-=o,++r}),Y(this,M(r,t))},indexFromPos:function(e){e=Y(this,e);var t=e.ch;if(e.linet&&(t=e.from),e.to!=null&&e.to-1){t.state.draggingText(e),setTimeout(function(){return t.display.input.focus()},20);return}try{var v=e.dataTransfer.getData("Text");if(v){var m;if(t.state.draggingText&&!t.state.draggingText.copy&&(m=t.listSelections()),Do(t.doc,ti(r,r)),m)for(var O=0;O=0;l--)Pi(e.doc,"",n[l].from,n[l].to,"+delete");Mi(e)})}function ca(e,t,r){var n=Re(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 M(t.line,n,r<0?"after":"before")}function da(e,t,r,n,i){if(e){t.doc.direction=="rtl"&&(i=-i);var o=Ee(r,t.doc.direction);if(o){var a=i<0?et(o):o[0],l=i<0==(a.level==1),s=l?"after":"before",u;if(a.level>0||t.doc.direction=="rtl"){var v=Jr(t,r);u=i<0?r.text.length-1:0;var m=Pr(t,v,u).top;u=ne(function(O){return Pr(t,v,O).top==m},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 M(n,u,s)}}return new M(n,i<0?r.text.length:0,i<0?"before":"after")}function Ps(e,t,r,n){var i=Ee(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=Ie(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=a.from&&O>=v.begin)){var w=m?"before":"after";return new M(r.line,O,w)}}var z=function(Pe,Ue,Ne){for(var qe=function(Sn,Yn){return Yn?new M(r.line,l(Sn,1),"before"):new M(r.line,Sn,"after")};Pe>=0&&Pe0==(Ct.level!=1),Kt=gt?Ne.begin:l(Ne.end,-1);if(Ct.from<=Kt&&Kt0?v.end:l(v.begin,-1);return ge!=null&&!(n>0&&ge==t.text.length)&&(X=z(n>0?0:i.length-1,n,u(ge)),X)?X:null}var fo={selectAll:il,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),ue)},killLine:function(e){return Fi(e,function(t){if(t.empty()){var r=x(e.doc,t.head.line).text.length;return t.head.ch==r&&t.head.line0)i=new M(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),M(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var a=x(e.doc,i.line-1).text;a&&(i=new M(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),M(i.line-1,a.length-1),i,"+transpose"))}}r.push(new cn(i,i))}e.setSelections(r)})},newlineAndIndent:function(e){return yr(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;ne&&K(t,this.pos)==0&&r==this.button};var vo,po;function Hs(e,t){var r=+new Date;return po&&po.compare(r,e,t)?(vo=po=null,"triple"):vo&&vo.compare(r,e,t)?(po=new va(r,e,t),vo=null,"double"):(vo=new va(r,e,t),po=null,"single")}function Rl(e){var t=this,r=t.display;if(!(vt(t,e)||r.activeTouch&&r.input.supportsTouch())){if(r.input.ensurePolled(),r.shift=e.shiftKey,$r(r,e)){T||(r.scroller.draggable=!1,setTimeout(function(){return r.scroller.draggable=!0},100));return}if(!pa(t,e)){var n=di(t,e),i=un(e),o=n?Hs(n,i):"single";window.focus(),i==1&&t.state.selectingText&&t.state.selectingText(e),!(n&&Bs(t,i,n,o,e))&&(i==1?n?Ks(t,n,o,e):Cn(e)==r.scroller&&Pt(e):i==2?(n&&To(t.doc,n),setTimeout(function(){return r.input.focus()},20)):i==3&&(S?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,ho(e,bl(o,i),i,function(a){if(typeof a=="string"&&(a=fo[a]),!a)return!1;var l=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),l=a(e,r)!=$e}finally{e.state.suppressEdits=!1}return l})}function Zs(e,t,r){var n=e.getOption("configureMouse"),i=n?n(e,t,r):{};if(i.unit==null){var o=Ze?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=nt?r.metaKey:r.ctrlKey),i.moveOnDrag==null&&(i.moveOnDrag=!(nt?r.altKey:r.ctrlKey)),i}function Ks(e,t,r,n){p?setTimeout(ae(Ra,e),0):e.curOp.focus=me();var i=Zs(e,r,n),o=e.doc.sel,a;e.options.dragDrop&&zn&&!e.isReadOnly()&&r=="single"&&(a=o.contains(t))>-1&&(K((a=o.ranges[a]).from(),t)<0||t.xRel>0)&&(K(a.to(),t)>0||t.xRel<0)?_s(e,n,t,i):Us(e,n,t,i)}function _s(e,t,r,n){var i=e.display,o=!1,a=Vn(e,function(u){T&&(i.scroller.draggable=!1),e.state.draggingText=!1,He(i.wrapper.ownerDocument,"mouseup",a),He(i.wrapper.ownerDocument,"mousemove",l),He(i.scroller,"dragstart",s),He(i.scroller,"drop",a),o||(Pt(u),n.addNew||To(e.doc,r,null,null,n.extend),T&&!Ce||p&&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};T&&(i.scroller.draggable=!0),e.state.draggingText=a,a.copy=!n.moveOnDrag,i.scroller.dragDrop&&i.scroller.dragDrop(),U(i.wrapper.ownerDocument,"mouseup",a),U(i.wrapper.ownerDocument,"mousemove",l),U(i.scroller,"dragstart",s),U(i.scroller,"drop",a),La(e),setTimeout(function(){return i.input.focus()},20)}function Ll(e,t,r){if(r=="char")return new cn(t,t);if(r=="word")return e.findWordAt(t);if(r=="line")return new cn(M(t.line,0),Y(e.doc,M(t.line+1,0)));var n=r(e,t);return new cn(n.from,n.to)}function Us(e,t,r,n){var i=e.display,o=e.doc;Pt(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 cn(r,r)):(a=o.sel.primary(),l=o.sel.primIndex),n.unit=="rectangle")n.addNew||(a=new cn(r,r)),r=di(e,t,!0,!0),l=-1;else{var v=Ll(e,r,n.unit);n.extend?a=sa(a,v.anchor,v.head,n.extend):a=v}n.addNew?l==-1?(l=u.length,rr(o,zr(e,u.concat([a]),l),{scroll:!1,origin:"*mouse"})):u.length>1&&u[l].empty()&&n.unit=="char"&&!n.extend?(rr(o,zr(e,u.slice(0,l).concat(u.slice(l+1)),0),{scroll:!1,origin:"*mouse"}),s=o.sel):ua(o,l,a,Me):(l=0,rr(o,new Or([a],0),Me),s=o.sel);var m=r;function O(Ne){if(K(m,Ne)!=0)if(m=Ne,n.unit=="rectangle"){for(var qe=[],Ct=e.options.tabSize,gt=G(x(o,r.line).text,r.ch,Ct),Kt=G(x(o,Ne.line).text,Ne.ch,Ct),Sn=Math.min(gt,Kt),Yn=Math.max(gt,Kt),Dn=Math.min(r.line,Ne.line),br=Math.min(e.lastLine(),Math.max(r.line,Ne.line));Dn<=br;Dn++){var dr=x(o,Dn).text,Bn=bt(dr,Sn,Ct);Sn==Yn?qe.push(new cn(M(Dn,Bn),M(Dn,Bn))):dr.length>Bn&&qe.push(new cn(M(Dn,Bn),M(Dn,bt(dr,Yn,Ct))))}qe.length||qe.push(new cn(r,r)),rr(o,zr(e,s.ranges.slice(0,l).concat(qe),l),{origin:"*mouse",scroll:!1}),e.scrollIntoView(Ne)}else{var hr=a,er=Ll(e,Ne,n.unit),_n=hr.anchor,Zn;K(er.anchor,_n)>0?(Zn=er.head,_n=Te(hr.from(),er.anchor)):(Zn=er.anchor,_n=Be(hr.to(),er.head));var Pn=s.ranges.slice(0);Pn[l]=js(e,new cn(Y(o,_n),Zn)),rr(o,zr(e,Pn,l),Me)}}var w=i.wrapper.getBoundingClientRect(),z=0;function X(Ne){var qe=++z,Ct=di(e,Ne,!0,n.unit=="rectangle");if(Ct)if(K(Ct,m)!=0){e.curOp.focus=me(),O(Ct);var gt=Eo(i,o);(Ct.line>=gt.to||Ct.linew.bottom?20:0;Kt&&setTimeout(Vn(e,function(){z==qe&&(i.scroller.scrollTop+=Kt,X(Ne))}),50)}}function ge(Ne){e.state.selectingText=!1,z=1/0,Ne&&(Pt(Ne),i.input.focus()),He(i.wrapper.ownerDocument,"mousemove",Pe),He(i.wrapper.ownerDocument,"mouseup",Ue),o.history.lastSelOrigin=null}var Pe=Vn(e,function(Ne){Ne.buttons===0||!un(Ne)?ge(Ne):X(Ne)}),Ue=Vn(e,ge);e.state.selectingText=Ue,U(i.wrapper.ownerDocument,"mousemove",Pe),U(i.wrapper.ownerDocument,"mouseup",Ue)}function js(e,t){var r=t.anchor,n=t.head,i=x(e.doc,r.line);if(K(r,n)==0&&r.sticky==n.sticky)return t;var o=Ee(i);if(!o)return t;var a=Ie(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 v=Ie(o,n.ch,n.sticky),m=v-a||(n.ch-r.ch)*(l.level==1?-1:1);v==s-1||v==s?u=m<0:u=m>0}var O=o[s+(u?-1:0)],w=u==(O.level==1),z=w?O.from:O.to,X=w?"after":"before";return r.ch==z&&r.sticky==X?t:new cn(new M(r.line,z,X),n)}function Tl(e,t,r,n){var i,o;if(t.touches)i=t.touches[0].clientX,o=t.touches[0].clientY;else try{i=t.clientX,o=t.clientY}catch(O){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;n&&Pt(t);var a=e.display,l=a.lineDiv.getBoundingClientRect();if(o>l.bottom||!Zt(e,r))return Yt(t);o-=l.top-a.viewOffset;for(var s=0;s=i){var v=se(e.doc,o),m=e.display.gutterSpecs[s];return ct(e,r,e,v,m.className,t),Yt(t)}}}function pa(e,t){return Tl(e,t,"gutterClick",!0)}function Dl(e,t){$r(e.display,t)||ks(e,t)||vt(e,t,"contextmenu")||S||e.display.input.onContextMenu(t)}function ks(e,t){return Zt(e,"gutterContextMenu")?Tl(e,t,"gutterContextMenu",!1):!1}function Pl(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),On(e)}var $i={toString:function(){return"CodeMirror.Init"}},Nl={},zo={};function Gs(e){var t=e.optionHandlers;function r(n,i,o,a){e.defaults[n]=i,o&&(t[n]=a?function(l,s,u){u!=$i&&o(l,s,u)}:o)}e.defineOption=r,e.Init=$i,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){no(n),On(n),cr(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 v=s.text.indexOf(i,u);if(v==-1)break;u=v+i.length,o.push(M(a,v))}a++});for(var l=o.length-1;l>=0;l--)Pi(n.doc,i,o[l],M(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!=$i&&n.refresh()}),r("specialCharPlaceholder",Ir,function(n){return n.refresh()},!0),r("electricChars",!0),r("inputStyle",Xe?"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",!tt),r("wholeLineUpdateBefore",!0),r("theme","default",function(n){Pl(n),to(n)},!0),r("keyMap","default",function(n,i,o){var a=Fo(i),l=o!=$i&&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),to(n)},!0),r("fixedGutter",!0,function(n,i){n.display.gutters.style.left=i?Go(n.display)+"px":"0",n.refresh()},!0),r("coverGutterNextToScrollbar",!1,function(n){return Ri(n)},!0),r("scrollbarStyle","native",function(n){Fa(n),Ri(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),to(n)},!0),r("firstLineNumber",1,to,!0),r("lineNumberFormatter",function(n){return n},to,!0),r("showCursorWhenSelecting",!1,Xi,!0),r("resetSelectionOnContextMenu",!0),r("lineWiseCopyCut",!0),r("pasteLinesPerSelection",!0),r("selectionsMayTouch",!1),r("readOnly",!1,function(n,i){i=="nocursor"&&(Ii(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,Vs),r("allowDropFileTypes",null),r("cursorBlinkRate",530),r("cursorScrollMargin",0),r("cursorHeight",1,Xi,!0),r("singleCursorHeightPerLine",!0,Xi,!0),r("workTime",100),r("workDelay",100),r("flattenSpans",!0,no,!0),r("addModeClass",!1,no,!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,no,!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 Vs(e,t,r){var n=r&&r!=$i;if(!t!=!n){var i=e.display.dragFunctions,o=t?U:He;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?(ut(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(b(e.display.wrapper,"CodeMirror-wrap"),qn(e)),Vo(e),cr(e),On(e),setTimeout(function(){return Ri(e)},100)}function Rn(e,t){var r=this;if(!(this instanceof Rn))return new Rn(e,t);this.options=t=t?H(t):{},H(Nl,t,!1);var n=t.value;typeof n=="string"?n=new fr(n,t.mode,null,t.lineSeparator,t.direction):t.mode&&(n.modeOption=t.mode),this.doc=n;var i=new Rn.inputStyles[t.inputStyle](this),o=this.display=new ss(e,n,i,t);o.wrapper.CodeMirror=this,Pl(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Fa(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 q,keySeq:null,specialChars:null},t.autofocus&&!Xe&&o.input.focus(),p&&P<11&&setTimeout(function(){return r.display.input.reset(!0)},20),Ys(this),Ms(),gi(this),this.curOp.forceUpdate=!0,ja(this,n),t.autofocus&&!Xe||this.hasFocus()?setTimeout(function(){r.hasFocus()&&!r.state.focused&&Yo(r)},20):Ii(this);for(var a in zo)zo.hasOwnProperty(a)&&zo[a](this,t[a],$i);Wa(this),t.finishInit&&t.finishInit(this);for(var l=0;l20*20}U(t.scroller,"touchstart",function(s){if(!vt(e,s)&&!o(s)&&!pa(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)}}),U(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),U(t.scroller,"touchend",function(s){var u=t.activeTouch;if(u&&!$r(t,s)&&u.left!=null&&!u.moved&&new Date-u.start<300){var v=e.coordsChar(t.activeTouch,"page"),m;!u.prev||a(u,u.prev)?m=new cn(v,v):!u.prev.prev||a(u,u.prev.prev)?m=e.findWordAt(v):m=new cn(M(v.line,0),Y(e.doc,M(v.line+1,0))),e.setSelection(m.anchor,m.head),e.focus(),Pt(s)}i()}),U(t.scroller,"touchcancel",i),U(t.scroller,"scroll",function(){t.scroller.clientHeight&&(Qi(e,t.scroller.scrollTop),vi(e,t.scroller.scrollLeft,!0),ct(e,"scroll",e))}),U(t.scroller,"mousewheel",function(s){return Za(e,s)}),U(t.scroller,"DOMMouseScroll",function(s){return Za(e,s)}),U(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(s){vt(e,s)||sn(s)},over:function(s){vt(e,s)||(Is(e,s),sn(s))},start:function(s){return Os(e,s)},drop:Vn(e,Es),leave:function(s){vt(e,s)||pl(e)}};var l=t.input.getField();U(l,"keyup",function(s){return Il.call(e,s)}),U(l,"keydown",Vn(e,Ol)),U(l,"keypress",Vn(e,Ml)),U(l,"focus",function(s){return Yo(e,s)}),U(l,"blur",function(s){return Ii(e,s)})}var ga=[];Rn.defineInitHook=function(e){return ga.push(e)};function go(e,t,r,n){var i=e.doc,o;r==null&&(r="add"),r=="smart"&&(i.mode.indent?o=Rt(e,t).state:r="prev");var a=e.options.tabSize,l=x(i,t),s=G(l.text,null,a);l.stateAfter&&(l.stateAfter=null);var u=l.text.match(/^\s*/)[0],v;if(!n&&!/\S/.test(l.text))v=0,r="not";else if(r=="smart"&&(v=i.mode.indent(o,l.text.slice(u.length),l.text),v==$e||v>150)){if(!n)return;r="prev"}r=="prev"?t>i.first?v=G(x(i,t-1).text,null,a):v=0:r=="add"?v=s+e.options.indentUnit:r=="subtract"?v=s-e.options.indentUnit:typeof r=="number"&&(v=s+r),v=Math.max(0,v);var m="",O=0;if(e.options.indentWithTabs)for(var w=Math.floor(v/a);w;--w)O+=a,m+=" ";if(Oa,s=In(t),u=null;if(l&&n.ranges.length>1)if(Wr&&Wr.text.join(` `)==t){if(n.ranges.length%Wr.text.length==0){u=[];for(var v=0;v=0;O--){var w=n.ranges[O],z=w.from(),X=w.to();w.empty()&&(r&&r>0?z=M(z.line,z.ch-r):e.state.overwrite&&!l?X=M(X.line,Math.min(x(o,X.line).text.length,X.ch+et(s).length)):l&&Wr&&Wr.lineWise&&Wr.text.join(` `)==s.join(` `)&&(z=X=M(z.line,0)));var ge={from:z,to:X,text:u?u[O%u.length]:s,origin:i||(l?"paste":e.state.cutIncoming>a?"cut":"+input")};Di(e.doc,ge),ot(e,"inputRead",e,ge)}t&&!l&&Fl(e,t),Mi(e),e.curOp.updateInput<2&&(e.curOp.updateInput=m),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&&yr(t,function(){return ma(t,r,0,null,"paste")}),!0}function Fl(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-1){a=go(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(x(e.doc,i.head.line).text.slice(0,i.head.ch))&&(a=go(e,i.head.line,"smart"));a&&ot(e,"electricInput",e,i.head.line)}}}function $l(e){for(var t=[],r=[],n=0;no&&(go(this,l.head.line,n,!0),o=l.head.line,a==this.doc.sel.primIndex&&Mi(this));else{var s=l.from(),u=l.to(),v=Math.max(o,s.line);o=Math.min(this.lastLine(),u.line-(u.ch?0:1))+1;for(var m=v;m0&&ua(this.doc,a,new cn(s,O[a].to()),ue)}}}),getTokenAt:function(n,i){return Ut(this,n,i)},getLineTokens:function(n,i){return Ut(this,M(n),i,!0)},getTokenTypeAt:function(n){n=Y(this.doc,n);var i=_t(this,x(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]s&&(n=s,a=!0),l=x(this.doc,n)}else l=n;return wr(this,l,{top:0,left:0},i||"page",o||a).top+(a?this.doc.height-Mn(l):0)},defaultTextHeight:function(){return Ei(this.display)},defaultCharWidth:function(){return Oi(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=mr(this,Y(this.doc,n));var u=n.bottom,v=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 m=Math.max(s.wrapper.clientHeight,this.doc.height),O=Math.max(s.sizer.clientWidth,s.lineSpace.clientWidth);(a=="above"||n.bottom+i.offsetHeight>m)&&n.top>i.offsetHeight?u=n.top-i.offsetHeight:n.bottom+i.offsetHeight<=m&&(u=n.bottom),v+i.offsetWidth>O&&(v=O-i.offsetWidth)}i.style.top=u+"px",i.style.left=i.style.right="",l=="right"?(v=s.sizer.clientWidth-i.offsetWidth,i.style.right="0px"):(l=="left"?v=0:l=="middle"&&(v=(s.sizer.clientWidth-i.offsetWidth)/2),i.style.left=v+"px"),o&&Vl(this,{left:v,top:u,right:v+i.offsetWidth,bottom:u+i.offsetHeight})},triggerOnKeyDown:ar(Ol),triggerOnKeyPress:ar(Ml),triggerOnKeyUp:Il,triggerOnMouseDown:ar(Rl),execCommand:function(n){if(fo.hasOwnProperty(n))return fo[n].call(null,this)},triggerElectric:ar(function(n){Fl(this,n)}),findPosH:function(n,i,o,a){var l=1;i<0&&(l=-1,i=-i);for(var s=Y(this.doc,n),u=0;u0&&v(o.charAt(a-1));)--a;for(;l.5||this.options.lineWrapping)&&Vo(this),ct(this,"refresh",this)}),swapDoc:ar(function(n){var i=this.doc;return i.cm=null,this.state.selectingText&&this.state.selectingText(),ja(this,n),On(this),this.display.input.reset(),Yi(this,n.scrollLeft,n.scrollTop),this.curOp.forceScroll=!0,ot(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}},Ft(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=x(e,t.line),s=i&&e.direction=="rtl"?-r:r;function u(){var Ue=t.line+s;return Ue=e.first+e.size?!1:(t=new M(Ue,t.ch,t.sticky),l=x(e,Ue))}function v(Ue){var Ne;if(n=="codepoint"){var qe=l.text.charCodeAt(t.ch+(n>0?0:-1));isNaN(qe)?Ne=null:Ne=new M(t.line,Math.max(0,Math.min(l.text.length,t.ch+r*(qe>=55296&&qe<56320?2:1))),-r)}else i?Ne=Ps(e.cm,l,t,r):Ne=fa(l,t,r);if(Ne==null)if(!Ue&&u())t=da(i,e.cm,l,t.line,s);else return!1;else t=Ne;return!0}if(n=="char"||n=="codepoint")v();else if(n=="column")v(!0);else if(n=="word"||n=="group")for(var m=null,O=n=="group",w=e.cm&&e.cm.getHelper(t,"wordChars"),z=!0;!(r<0&&!v(!z));z=!1){var X=l.text.charAt(t.ch)||` `,ge=re(X,w)?"w":O&&X==` `?"n":!O||/\s/.test(X)?null:"p";if(O&&!z&&!ge&&(ge="s"),m&&m!=ge){r<0&&(r=1,v(),t.sticky="after");break}if(ge&&(m=ge),r>0&&!v(!z))break}var Pe=Po(e,t,o,a,!0);return Ke(o,Pe)&&(Pe.hitSide=!0),Pe}function Hl(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*Ei(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=Uo(e,o,a),!!u.outside;){if(r<0?a<=0:a>=i.height){u.hitSide=!0;break}a+=r*5}return u}var hn=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new q,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};hn.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}U(i,"paste",function(l){!o(l)||vt(n,l)||Al(l,n)||P<=11&&setTimeout(Vn(n,function(){return t.updateFromDOM()}),20)}),U(i,"compositionstart",function(l){t.composing={data:l.data,done:!1}}),U(i,"compositionupdate",function(l){t.composing||(t.composing={data:l.data,done:!1})}),U(i,"compositionend",function(l){t.composing&&(l.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),U(i,"touchstart",function(){return r.forceCompositionEnd()}),U(i,"input",function(){t.composing||t.readFromDOMSoon()});function a(l){if(!(!o(l)||vt(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=$l(n);Wo({lineWise:!0,text:s.text}),l.type=="cut"&&n.operation(function(){n.setSelections(s.ranges,0,ue),n.replaceSelection("",null,"cut")})}else return;if(l.clipboardData){l.clipboardData.clearData();var u=Wr.text.join(` `);if(l.clipboardData.setData("Text",u),l.clipboardData.getData("Text")==u){l.preventDefault();return}}var v=Wl(),m=v.firstChild;n.display.lineSpace.insertBefore(v,n.display.lineSpace.firstChild),m.value=Wr.text.join(` `);var O=document.activeElement;Ge(m),setTimeout(function(){n.display.lineSpace.removeChild(v),O.focus(),O==i&&r.showPrimarySelection()},50)}}U(i,"copy",a),U(i,"cut",a)},hn.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},hn.prototype.prepareSelection=function(){var e=Ia(this.cm,!1);return e.focus=document.activeElement==this.div,e},hn.prototype.showSelection=function(e,t){!e||!this.cm.display.view.length||((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},hn.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},hn.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&&Bl(t,n)||{node:l[0].measure.map[2],offset:0},u=i.linee.firstLine()&&(n=M(n.line-1,x(e.doc,n.line-1).length)),i.ch==x(e.doc,i.line).text.length&&i.linet.viewTo-1)return!1;var o,a,l;n.line==t.viewFrom||(o=hi(e,n.line))==0?(a=$(t.view[0].line),l=t.view[0].node):(a=$(t.view[o].line),l=t.view[o-1].node.nextSibling);var s=hi(e,i.line),u,v;if(s==t.view.length-1?(u=t.viewTo-1,v=t.lineDiv.lastChild):(u=$(t.view[s+1].line)-1,v=t.view[s+1].node.previousSibling),!l)return!1;for(var m=e.doc.splitLines(qs(e,l,v,a,u)),O=L(e.doc,M(a,0),M(u,x(e.doc,u).text.length));m.length>1&&O.length>1;)if(et(m)==et(O))m.pop(),O.pop(),u--;else if(m[0]==O[0])m.shift(),O.shift(),a++;else break;for(var w=0,z=0,X=m[0],ge=O[0],Pe=Math.min(X.length,ge.length);wn.ch&&Ue.charCodeAt(Ue.length-z-1)==Ne.charCodeAt(Ne.length-z-1);)w--,z++;m[m.length-1]=Ue.slice(0,Ue.length-z).replace(/^\u200b+/,""),m[0]=m[0].slice(w).replace(/\u200b+$/,"");var Ct=M(a,w),gt=M(u,O.length?et(O).length-z:0);if(m.length>1||m[0]||K(Ct,gt))return Pi(e.doc,m,Ct,gt,"+input"),!0},hn.prototype.ensurePolled=function(){this.forceCompositionEnd()},hn.prototype.reset=function(){this.forceCompositionEnd()},hn.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},hn.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))},hn.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&yr(this.cm,function(){return cr(e.cm)})},hn.prototype.setUneditable=function(e){e.contentEditable="false"},hn.prototype.onKeyPress=function(e){e.charCode==0||this.composing||(e.preventDefault(),this.cm.isReadOnly()||Vn(this.cm,ma)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0))},hn.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},hn.prototype.onContextMenu=function(){},hn.prototype.resetPosition=function(){},hn.prototype.needsContentAttribute=!0;function Bl(e,t){var r=ki(e,t.line);if(!r||r.hidden)return null;var n=x(e.doc,t.line),i=Ui(r,n,t.line),o=Ee(n,e.doc.direction),a="left";if(o){var l=Ie(o,t.ch);a=l%2?"right":"left"}var s=Gi(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 zi(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(w){return function(z){return z.id==w}}function v(){a&&(o+=l,s&&(o+=l),a=s=!1)}function m(w){w&&(v(),o+=w)}function O(w){if(w.nodeType==1){var z=w.getAttribute("cm-text");if(z){m(z);return}var X=w.getAttribute("cm-marker"),ge;if(X){var Pe=e.findMarks(M(n,0),M(i+1,0),u(+X));Pe.length&&(ge=Pe[0].find(0))&&m(L(e.doc,ge.from,ge.to).join(l));return}if(w.getAttribute("contenteditable")=="false")return;var Ue=/^(pre|div|p|li|table|br)$/i.test(w.nodeName);if(!/^br$/i.test(w.nodeName)&&w.textContent.length==0)return;Ue&&v();for(var Ne=0;Ne=9&&t.hasSelection&&(t.hasSelection=null),r.poll()}),U(i,"paste",function(a){vt(n,a)||Al(a,n)||(n.state.pasteIncoming=+new Date,r.fastPoll())});function o(a){if(!vt(n,a)){if(n.somethingSelected())Wo({lineWise:!1,text:n.getSelections()});else if(n.options.lineWiseCopyCut){var l=$l(n);Wo({lineWise:!0,text:l.text}),a.type=="cut"?n.setSelections(l.ranges,null,ue):(r.prevInput="",i.value=l.text.join(` `),Ge(i))}else return;a.type=="cut"&&(n.state.cutIncoming=+new Date)}}U(i,"cut",o),U(i,"copy",o),U(e.scroller,"paste",function(a){if(!($r(e,a)||vt(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)}}),U(e.lineSpace,"selectstart",function(a){$r(e,a)||Pt(a)}),U(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"})}}),U(i,"compositionend",function(){r.composing&&(r.poll(),r.composing.range.clear(),r.composing=null)})},$n.prototype.createField=function(e){this.wrapper=Wl(),this.textarea=this.wrapper.firstChild},$n.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},$n.prototype.prepareSelection=function(){var e=this.cm,t=e.display,r=e.doc,n=Ia(e);if(e.options.moveInputWithCursor){var i=mr(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},$n.prototype.showSelection=function(e){var t=this.cm,r=t.display;F(r.cursorDiv,e.cursors),F(r.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},$n.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&&Ge(this.textarea),p&&P>=9&&(this.hasSelection=r)}else e||(this.prevInput=this.textarea.value="",p&&P>=9&&(this.hasSelection=null))}},$n.prototype.getField=function(){return this.textarea},$n.prototype.supportsTouch=function(){return!1},$n.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!Xe||me()!=this.textarea))try{this.textarea.focus()}catch(e){}},$n.prototype.blur=function(){this.textarea.blur()},$n.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},$n.prototype.receivedFocus=function(){this.slowPoll()},$n.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},$n.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)},$n.prototype.poll=function(){var e=this,t=this.cm,r=this.textarea,n=this.prevInput;if(this.contextMenuPending||!t.state.focused||xn(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(p&&P>=9&&this.hasSelection===i||nt&&/[\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);a1e3||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},$n.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},$n.prototype.onKeyPress=function(){p&&P>=9&&(this.hasSelection=null),this.fastPoll()},$n.prototype.onContextMenu=function(e){var t=this,r=t.cm,n=r.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var o=di(r,e),a=n.scroller.scrollTop;if(!o||y)return;var l=r.options.resetSelectionOnContextMenu;l&&r.doc.sel.contains(o)==-1&&Vn(r,rr)(r.doc,ti(o),ue);var s=i.style.cssText,u=t.wrapper.style.cssText,v=t.wrapper.offsetParent.getBoundingClientRect();t.wrapper.style.cssText="position: static",i.style.cssText=`position: absolute; width: 30px; height: 30px; top: `+(e.clientY-v.top-5)+"px; left: "+(e.clientX-v.left-5)+`px; z-index: 1000; background: `+(p?"rgba(255, 255, 255, .05)":"transparent")+`; outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var m;T&&(m=window.scrollY),n.input.focus(),T&&window.scrollTo(null,m),n.input.reset(),r.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=w,n.selForContextMenu=r.doc.sel,clearTimeout(n.detectingSelectAll);function O(){if(i.selectionStart!=null){var X=r.somethingSelected(),ge="\u200B"+(X?i.value:"");i.value="\u21DA",i.value=ge,t.prevInput=X?"":"\u200B",i.selectionStart=1,i.selectionEnd=ge.length,n.selForContextMenu=r.doc.sel}}function w(){if(t.contextMenuPending==w&&(t.contextMenuPending=!1,t.wrapper.style.cssText=u,i.style.cssText=s,p&&P<9&&n.scrollbars.setScrollTop(n.scroller.scrollTop=a),i.selectionStart!=null)){(!p||p&&P<9)&&O();var X=0,ge=function(){n.selForContextMenu==r.doc.sel&&i.selectionStart==0&&i.selectionEnd>0&&t.prevInput=="\u200B"?Vn(r,il)(r):X++<10?n.detectingSelectAll=setTimeout(ge,500):(n.selForContextMenu=null,n.input.reset())};n.detectingSelectAll=setTimeout(ge,200)}}if(p&&P>=9&&O(),S){sn(e);var z=function(){He(window,"mouseup",z),setTimeout(w,20)};U(window,"mouseup",z)}else setTimeout(w,50)},$n.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},$n.prototype.setUneditable=function(){},$n.prototype.needsContentAttribute=!1;function tu(e,t){if(t=t?H(t):{},t.value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),t.autofocus==null){var r=me();t.autofocus=r==e||e.getAttribute("autofocus")!=null&&r==document.body}function n(){e.value=l.getValue()}var i;if(e.form&&(U(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&&(He(e.form,"submit",n),!t.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=i))}},e.style.display="none";var l=Rn(function(s){return e.parentNode.insertBefore(s,e.nextSibling)},t);return l}function nu(e){e.off=He,e.on=U,e.wheelEventPixels=us,e.Doc=fr,e.splitLines=In,e.countColumn=G,e.findColumn=bt,e.isWordChar=V,e.Pass=$e,e.signal=ct,e.Line=tr,e.changeEnd=ni,e.scrollbarModel=Aa,e.Pos=M,e.cmpPos=K,e.modes=An,e.mimeModes=Hn,e.resolveMode=on,e.getMode=Qe,e.modeExtensions=Mt,e.extendMode=g,e.copyState=D,e.startState=d,e.innerMode=W,e.commands=fo,e.keyMap=Gr,e.keyName=Sl,e.isModifierKey=yl,e.lookupKey=Ai,e.normalizeKeyMap=Ds,e.StringStream=h,e.SharedTextMarker=so,e.TextMarker=ii,e.LineWidget=lo,e.e_preventDefault=Pt,e.e_stopPropagation=Xt,e.e_stop=sn,e.addClass=ut,e.contains=Ae,e.rmClass=b,e.keyNames=oi}Gs(Rn),Qs(Rn);var ru="iter insert remove copy getEditor constructor".split(" ");for(var Bo in fr.prototype)fr.prototype.hasOwnProperty(Bo)&&ee(ru,Bo)<0&&(Rn.prototype[Bo]=function(e){return function(){return e.apply(this.doc,arguments)}}(fr.prototype[Bo]));return Ft(fr),Rn.inputStyles={textarea:$n,contenteditable:hn},Rn.defineMode=function(e){!Rn.defaults.mode&&e!="null"&&(Rn.defaults.mode=e),Sr.apply(this,arguments)},Rn.defineMIME=pr,Rn.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Rn.defineMIME("text/plain","null"),Rn.defineExtension=function(e,t){Rn.prototype[e]=t},Rn.defineDocExtension=function(e,t){fr.prototype[e]=t},Rn.fromTextArea=tu,nu(Rn),Rn.version="5.58.2",Rn})},93681:function(nn,xe,f){"use strict";f.r(xe),f.d(xe,{BaseInput:function(){return y},default:function(){return tt}});var E=f(92413),J=f(33708),C=f(400),j=f(39559),p=f(92310),P=f.n(p),T=f(59301),ye=f(5643),te=function(Z){var S,c,b=Z.inputElement,I=Z.prefixCls,F=Z.prefix,R=Z.suffix,be=Z.addonBefore,We=Z.addonAfter,Ae=Z.className,me=Z.style,ut=Z.disabled,ke=Z.readOnly,Ge=Z.focused,ae=Z.triggerFocus,H=Z.allowClear,G=Z.value,q=Z.handleReset,ee=Z.hidden,Ve=Z.classes,$e=Z.classNames,ue=Z.dataAttrs,Me=Z.styles,fe=Z.components,bt=(fe==null?void 0:fe.affixWrapper)||"span",Dt=(fe==null?void 0:fe.groupWrapper)||"span",St=(fe==null?void 0:fe.wrapper)||"span",et=(fe==null?void 0:fe.groupAddon)||"span",Ot=(0,T.useRef)(null),at=function(ce){var Ie;(Ie=Ot.current)!==null&&Ie!==void 0&&Ie.contains(ce.target)&&(ae==null||ae())},A=function(){var ce;if(!H)return null;var Ie=!ut&&!ke&&G,Le="".concat(I,"-clear-icon"),Ee=(0,j.Z)(H)==="object"&&H!==null&&H!==void 0&&H.clearIcon?H.clearIcon:"\u2716";return T.createElement("span",{onClick:q,onMouseDown:function(U){return U.preventDefault()},className:P()(Le,(ce={},(0,C.Z)(ce,"".concat(Le,"-hidden"),!Ie),(0,C.Z)(ce,"".concat(Le,"-has-suffix"),!!R),ce)),role:"button",tabIndex:-1},Ee)},we=(0,T.cloneElement)(b,{value:G,hidden:ee,className:P()((S=b.props)===null||S===void 0?void 0:S.className,!(0,ye.X3)(Z)&&!(0,ye.He)(Z)&&Ae)||null,style:(0,J.Z)((0,J.Z)({},(c=b.props)===null||c===void 0?void 0:c.style),!(0,ye.X3)(Z)&&!(0,ye.He)(Z)?me:{})});if((0,ye.X3)(Z)){var le,V="".concat(I,"-affix-wrapper"),re=P()(V,(le={},(0,C.Z)(le,"".concat(V,"-disabled"),ut),(0,C.Z)(le,"".concat(V,"-focused"),Ge),(0,C.Z)(le,"".concat(V,"-readonly"),ke),(0,C.Z)(le,"".concat(V,"-input-with-clear-btn"),R&&H&&G),le),!(0,ye.He)(Z)&&Ae,Ve==null?void 0:Ve.affixWrapper,$e==null?void 0:$e.affixWrapper),de=(R||H)&&T.createElement("span",{className:P()("".concat(I,"-suffix"),$e==null?void 0:$e.suffix),style:Me==null?void 0:Me.suffix},A(),R);we=T.createElement(bt,(0,E.Z)({className:re,style:(0,J.Z)((0,J.Z)({},(0,ye.He)(Z)?void 0:me),Me==null?void 0:Me.affixWrapper),hidden:!(0,ye.He)(Z)&&ee,onClick:at},ue==null?void 0:ue.affixWrapper,{ref:Ot}),F&&T.createElement("span",{className:P()("".concat(I,"-prefix"),$e==null?void 0:$e.prefix),style:Me==null?void 0:Me.prefix},F),(0,T.cloneElement)(b,{value:G,hidden:null}),de)}if((0,ye.He)(Z)){var Se="".concat(I,"-group"),he="".concat(Se,"-addon"),Re=P()("".concat(I,"-wrapper"),Se,Ve==null?void 0:Ve.wrapper),ne=P()("".concat(I,"-group-wrapper"),Ae,Ve==null?void 0:Ve.group);return T.createElement(Dt,{className:ne,style:me,hidden:ee},T.createElement(St,{className:Re},be&&T.createElement(et,{className:he},be),(0,T.cloneElement)(we,{hidden:null}),We&&T.createElement(et,{className:he},We)))}return we},y=te,Ce=f(26407),N=f(33606),ve=f(37061),Oe=f(18929),k=f(2738),Xe=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","classes","classNames","styles"],nt=(0,T.forwardRef)(function(_,Z){var S=_.autoComplete,c=_.onChange,b=_.onFocus,I=_.onBlur,F=_.onPressEnter,R=_.onKeyDown,be=_.prefixCls,We=be===void 0?"rc-input":be,Ae=_.disabled,me=_.htmlSize,ut=_.className,ke=_.maxLength,Ge=_.suffix,ae=_.showCount,H=_.type,G=H===void 0?"text":H,q=_.classes,ee=_.classNames,Ve=_.styles,$e=(0,ve.Z)(_,Xe),ue=(0,Oe.Z)(_.defaultValue,{value:_.value}),Me=(0,N.Z)(ue,2),fe=Me[0],bt=Me[1],Dt=(0,T.useState)(!1),St=(0,N.Z)(Dt,2),et=St[0],Ot=St[1],at=(0,T.useRef)(null),A=function(ne){at.current&&(0,ye.nH)(at.current,ne)};(0,T.useImperativeHandle)(Z,function(){return{focus:A,blur:function(){var ne;(ne=at.current)===null||ne===void 0||ne.blur()},setSelectionRange:function(ne,Ye,ce){var Ie;(Ie=at.current)===null||Ie===void 0||Ie.setSelectionRange(ne,Ye,ce)},select:function(){var ne;(ne=at.current)===null||ne===void 0||ne.select()},input:at.current}}),(0,T.useEffect)(function(){Ot(function(Re){return Re&&Ae?!1:Re})},[Ae]);var we=function(ne){_.value===void 0&&bt(ne.target.value),at.current&&(0,ye.rJ)(at.current,ne,c)},le=function(ne){F&&ne.key==="Enter"&&F(ne),R==null||R(ne)},V=function(ne){Ot(!0),b==null||b(ne)},re=function(ne){Ot(!1),I==null||I(ne)},de=function(ne){bt(""),A(),at.current&&(0,ye.rJ)(at.current,ne,c)},Se=function(){var ne=(0,k.Z)(_,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","classes","htmlSize","styles","classNames"]);return T.createElement("input",(0,E.Z)({autoComplete:S},ne,{onChange:we,onFocus:V,onBlur:re,onKeyDown:le,className:P()(We,(0,C.Z)({},"".concat(We,"-disabled"),Ae),ee==null?void 0:ee.input),style:Ve==null?void 0:Ve.input,ref:at,size:me,type:G}))},he=function(){var ne=Number(ke)>0;if(Ge||ae){var Ye=(0,ye.D7)(fe),ce=(0,Ce.Z)(Ye).length,Ie=(0,j.Z)(ae)==="object"?ae.formatter({value:Ye,count:ce,maxLength:ke}):"".concat(ce).concat(ne?" / ".concat(ke):"");return T.createElement(T.Fragment,null,!!ae&&T.createElement("span",{className:P()("".concat(We,"-show-count-suffix"),(0,C.Z)({},"".concat(We,"-show-count-has-suffix"),!!Ge),ee==null?void 0:ee.count),style:(0,J.Z)({},Ve==null?void 0:Ve.count)},Ie),Ge)}return null};return T.createElement(y,(0,E.Z)({},$e,{prefixCls:We,className:ut,inputElement:Se(),handleReset:de,value:(0,ye.D7)(fe),focused:et,triggerFocus:A,suffix:he(),disabled:Ae,classes:q,classNames:ee,styles:Ve}))}),Ze=nt,tt=Ze},5643:function(nn,xe,f){"use strict";f.d(xe,{D7:function(){return p},He:function(){return E},X3:function(){return J},nH:function(){return j},rJ:function(){return C}});function E(P){return!!(P.addonBefore||P.addonAfter)}function J(P){return!!(P.prefix||P.suffix||P.allowClear)}function C(P,T,ye,te){if(ye){var y=T;if(T.type==="click"){var Ce=P.cloneNode(!0);y=Object.create(T,{target:{value:Ce},currentTarget:{value:Ce}}),Ce.value="",ye(y);return}if(te!==void 0){y=Object.create(T,{target:{value:P},currentTarget:{value:P}}),P.value=te,ye(y);return}ye(y)}}function j(P,T){if(P){P.focus(T);var ye=T||{},te=ye.cursor;if(te){var y=P.value.length;switch(te){case"start":P.setSelectionRange(0,0);break;case"end":P.setSelectionRange(y,y);break;default:P.setSelectionRange(0,y)}}}}function p(P){return typeof P=="undefined"||P===null?"":String(P)}},11780:function(nn,xe,f){"use strict";f.d(xe,{Z:function(){return ae}});var E=f(92413),J=f(33708),C=f(33606),j=f(37061),p=f(59301),P=f(92310),T=f.n(P),ye=f(29301),te=f(34280),y=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Ce=void 0;function N(H,G){var q=H.prefixCls,ee=H.invalidate,Ve=H.item,$e=H.renderItem,ue=H.responsive,Me=H.responsiveDisabled,fe=H.registerSize,bt=H.itemKey,Dt=H.className,St=H.style,et=H.children,Ot=H.display,at=H.order,A=H.component,we=A===void 0?"div":A,le=(0,j.Z)(H,y),V=ue&&!Ot;function re(ne){fe(bt,ne)}p.useEffect(function(){return function(){re(null)}},[]);var de=$e&&Ve!==Ce?$e(Ve,{index:at}):et,Se;ee||(Se={opacity:V?0:1,height:V?0:Ce,overflowY:V?"hidden":Ce,order:ue?at:Ce,pointerEvents:V?"none":Ce,position:V?"absolute":Ce});var he={};V&&(he["aria-hidden"]=!0);var Re=p.createElement(we,(0,E.Z)({className:T()(!ee&&q,Dt),style:(0,J.Z)((0,J.Z)({},Se),St)},he,le,{ref:G}),de);return ue&&(Re=p.createElement(ye.Z,{onResize:function(Ye){var ce=Ye.offsetWidth;re(ce)},disabled:Me},Re)),Re}var ve=p.forwardRef(N);ve.displayName="Item";var Oe=ve,k=f(6089),Xe=f(4676),nt=f(16089);function Ze(H){if(typeof MessageChannel=="undefined")(0,nt.Z)(H);else{var G=new MessageChannel;G.port1.onmessage=function(){return H()},G.port2.postMessage(void 0)}}function tt(){var H=p.useRef(null),G=function(ee){H.current||(H.current=[],Ze(function(){(0,Xe.unstable_batchedUpdates)(function(){H.current.forEach(function(Ve){Ve()}),H.current=null})})),H.current.push(ee)};return G}function _(H,G){var q=p.useState(G),ee=(0,C.Z)(q,2),Ve=ee[0],$e=ee[1],ue=(0,k.Z)(function(Me){H(function(){$e(Me)})});return[Ve,ue]}var Z=p.createContext(null),S=["component"],c=["className"],b=["className"],I=function(G,q){var ee=p.useContext(Z);if(!ee){var Ve=G.component,$e=Ve===void 0?"div":Ve,ue=(0,j.Z)(G,S);return p.createElement($e,(0,E.Z)({},ue,{ref:q}))}var Me=ee.className,fe=(0,j.Z)(ee,c),bt=G.className,Dt=(0,j.Z)(G,b);return p.createElement(Z.Provider,{value:null},p.createElement(Oe,(0,E.Z)({ref:q,className:T()(Me,bt)},fe,Dt)))},F=p.forwardRef(I);F.displayName="RawItem";var R=F,be=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],We="responsive",Ae="invalidate";function me(H){return"+ ".concat(H.length," ...")}function ut(H,G){var q=H.prefixCls,ee=q===void 0?"rc-overflow":q,Ve=H.data,$e=Ve===void 0?[]:Ve,ue=H.renderItem,Me=H.renderRawItem,fe=H.itemKey,bt=H.itemWidth,Dt=bt===void 0?10:bt,St=H.ssr,et=H.style,Ot=H.className,at=H.maxCount,A=H.renderRest,we=H.renderRawRest,le=H.suffix,V=H.component,re=V===void 0?"div":V,de=H.itemComponent,Se=H.onVisibleChange,he=(0,j.Z)(H,be),Re=St==="full",ne=tt(),Ye=_(ne,null),ce=(0,C.Z)(Ye,2),Ie=ce[0],Le=ce[1],Ee=Ie||0,Je=_(ne,new Map),U=(0,C.Z)(Je,2),rt=U[0],He=U[1],ct=_(ne,0),vt=(0,C.Z)(ct,2),rn=vt[0],Zt=vt[1],Ft=_(ne,0),Pt=(0,C.Z)(Ft,2),Xt=Pt[0],Yt=Pt[1],sn=_(ne,0),Cn=(0,C.Z)(sn,2),un=Cn[0],zn=Cn[1],Wn=(0,p.useState)(null),pn=(0,C.Z)(Wn,2),Ln=pn[0],wn=pn[1],In=(0,p.useState)(null),xn=(0,C.Z)(In,2),dn=xn[0],Nn=xn[1],Qt=p.useMemo(function(){return dn===null&&Re?Number.MAX_SAFE_INTEGER:dn||0},[dn,Ie]),An=(0,p.useState)(!1),Hn=(0,C.Z)(An,2),Sr=Hn[0],pr=Hn[1],on="".concat(ee,"-item"),Qe=Math.max(rn,Xt),Mt=at===We,g=$e.length&&Mt,D=at===Ae,W=g||typeof at=="number"&&$e.length>at,d=(0,p.useMemo)(function(){var oe=$e;return g?Ie===null&&Re?oe=$e:oe=$e.slice(0,Math.min($e.length,Ee/Dt)):typeof at=="number"&&(oe=$e.slice(0,at)),oe},[$e,Dt,Ie,at,g]),h=(0,p.useMemo)(function(){return g?$e.slice(Qt+1):$e.slice(d.length)},[$e,d,g,Qt]),x=(0,p.useCallback)(function(oe,De){var it;return typeof fe=="function"?fe(oe):(it=fe&&(oe==null?void 0:oe[fe]))!==null&&it!==void 0?it:De},[fe]),L=(0,p.useCallback)(ue||function(oe){return oe},[ue]);function Q(oe,De,it){dn===oe&&(De===void 0||De===Ln)||(Nn(oe),it||(pr(oe<$e.length-1),Se==null||Se(oe)),De!==void 0&&wn(De))}function B(oe,De){Le(De.clientWidth)}function $(oe,De){He(function(it){var _e=new Map(it);return De===null?_e.delete(oe):_e.set(oe,De),_e})}function se(oe,De){Yt(De),Zt(Xt)}function ie(oe,De){zn(De)}function Fe(oe){return rt.get(x(d[oe],oe))}(0,te.Z)(function(){if(Ee&&typeof Qe=="number"&&d){var oe=un,De=d.length,it=De-1;if(!De){Q(0,null);return}for(var _e=0;_eEe){Q(_e-1,oe-lt-un+Xt);break}}le&&Fe(0)+un>Ee&&wn(null)}},[Ee,rt,Xt,un,x,d]);var M=Sr&&!!h.length,K={};Ln!==null&&g&&(K={position:"absolute",left:Ln,top:0});var Ke={prefixCls:on,responsive:g,component:de,invalidate:D},pe=Me?function(oe,De){var it=x(oe,De);return p.createElement(Z.Provider,{key:it,value:(0,J.Z)((0,J.Z)({},Ke),{},{order:De,item:oe,itemKey:it,registerSize:$,display:De<=Qt})},Me(oe,De))}:function(oe,De){var it=x(oe,De);return p.createElement(Oe,(0,E.Z)({},Ke,{order:De,key:it,item:oe,renderItem:L,itemKey:it,registerSize:$,display:De<=Qt}))},Be={order:M?Qt:Number.MAX_SAFE_INTEGER,className:"".concat(on,"-rest"),registerSize:se,display:M},Te=A||me,ft=we?p.createElement(Z.Provider,{value:(0,J.Z)((0,J.Z)({},Ke),Be)},we(h)):p.createElement(Oe,(0,E.Z)({},Ke,Be),typeof Te=="function"?Te(h):Te),Y=p.createElement(re,(0,E.Z)({className:T()(!D&&ee,Ot),style:et,ref:G},he),d.map(pe),W?ft:null,le&&p.createElement(Oe,(0,E.Z)({},Ke,{responsive:Mt,responsiveDisabled:!g,order:Qt,className:"".concat(on,"-suffix"),registerSize:ie,display:!0,style:K}),le));return Mt?p.createElement(ye.Z,{onResize:B,disabled:!g},Y):Y}var ke=p.forwardRef(ut);ke.displayName="Overflow",ke.Item=R,ke.RESPONSIVE=We,ke.INVALIDATE=Ae;var Ge=ke,ae=Ge},17115:function(nn,xe,f){"use strict";f.d(xe,{ZP:function(){return T}});var E=f(33606),J=f(59301),C=f(47273),j=0,p=(0,C.Z)();function P(){var ye;return p?(ye=j,j+=1):ye="TEST_OR_SSR",ye}function T(ye){var te=J.useState(),y=(0,E.Z)(te,2),Ce=y[0],N=y[1];return J.useEffect(function(){N("rc_select_".concat(P()))},[]),ye||Ce}},77861:function(nn,xe,f){"use strict";f.d(xe,{Ac:function(){return Le},Xo:function(){return Yt},Wx:function(){return Cn},ZP:function(){return W},lk:function(){return Z}});var E=f(92413),J=f(26407),C=f(400),j=f(33708),p=f(33606),P=f(37061),T=f(39559),ye=f(18929),te=f(48736),y=f(59301),Ce=f(92310),N=f.n(Ce),ve=f(34280),Oe=f(49658),k=f(10228),Xe=f(8654),nt=function(h){var x=h.className,L=h.customizeIcon,Q=h.customizeIconProps,B=h.onMouseDown,$=h.onClick,se=h.children,ie;return typeof L=="function"?ie=L(Q):ie=L,y.createElement("span",{className:x,onMouseDown:function(M){M.preventDefault(),B&&B(M)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:$,"aria-hidden":!0},ie!==void 0?ie:y.createElement("span",{className:N()(x.split(/\s+/).map(function(Fe){return"".concat(Fe,"-icon")}))},se))},Ze=nt;function tt(d,h,x,L,Q){var B=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,$=arguments.length>6?arguments[6]:void 0,se=arguments.length>7?arguments[7]:void 0,ie=y.useMemo(function(){if((0,T.Z)(L)==="object")return L.clearIcon;if(Q)return Q},[L,Q]),Fe=y.useMemo(function(){return!!(!B&&L&&(x.length||$)&&!(se==="combobox"&&$===""))},[L,B,x.length,$,se]);return{allowClear:Fe,clearIcon:y.createElement(Ze,{className:"".concat(d,"-clear"),onMouseDown:h,customizeIcon:ie},"\xD7")}}var _=y.createContext(null);function Z(){return y.useContext(_)}function S(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,h=y.useState(!1),x=(0,p.Z)(h,2),L=x[0],Q=x[1],B=y.useRef(null),$=function(){window.clearTimeout(B.current)};y.useEffect(function(){return $},[]);var se=function(Fe,M){$(),B.current=window.setTimeout(function(){Q(Fe),M&&M()},d)};return[L,se,$]}function c(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,h=y.useRef(null),x=y.useRef(null);y.useEffect(function(){return function(){window.clearTimeout(x.current)}},[]);function L(Q){(Q||h.current===null)&&(h.current=Q),window.clearTimeout(x.current),x.current=window.setTimeout(function(){h.current=null},d)}return[function(){return h.current},L]}function b(d,h,x,L){var Q=y.useRef(null);Q.current={open:h,triggerOpen:x,customizedTrigger:L},y.useEffect(function(){function B($){var se;if(!((se=Q.current)!==null&&se!==void 0&&se.customizedTrigger)){var ie=$.target;ie.shadowRoot&&$.composed&&(ie=$.composedPath()[0]||ie),Q.current.open&&d().filter(function(Fe){return Fe}).every(function(Fe){return!Fe.contains(ie)&&Fe!==ie})&&Q.current.triggerOpen(!1)}}return window.addEventListener("mousedown",B),function(){return window.removeEventListener("mousedown",B)}},[])}var I=f(26112),F=f(11780),R=function(h,x){var L,Q,B=h.prefixCls,$=h.id,se=h.inputElement,ie=h.disabled,Fe=h.tabIndex,M=h.autoFocus,K=h.autoComplete,Ke=h.editable,pe=h.activeDescendantId,Be=h.value,Te=h.maxLength,ft=h.onKeyDown,Y=h.onMouseDown,oe=h.onChange,De=h.onPaste,it=h.onCompositionStart,_e=h.onCompositionEnd,lt=h.open,_t=h.attrs,Rt=se||y.createElement("input",null),$t=Rt,zt=$t.ref,wt=$t.props,qt=wt.onKeyDown,Ut=wt.onChange,jt=wt.onMouseDown,kt=wt.onCompositionStart,Lt=wt.onCompositionEnd,xt=wt.style;return(0,te.Kp)(!("maxLength"in Rt.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),Rt=y.cloneElement(Rt,(0,j.Z)((0,j.Z)((0,j.Z)({type:"search"},wt),{},{id:$,ref:(0,Xe.sQ)(x,zt),disabled:ie,tabIndex:Fe,autoComplete:K||"off",autoFocus:M,className:N()("".concat(B,"-selection-search-input"),(L=Rt)===null||L===void 0||(Q=L.props)===null||Q===void 0?void 0:Q.className),role:"combobox","aria-label":"Search","aria-expanded":lt||!1,"aria-haspopup":"listbox","aria-owns":"".concat($,"_list"),"aria-autocomplete":"list","aria-controls":"".concat($,"_list"),"aria-activedescendant":lt?pe:void 0},_t),{},{value:Ke?Be:"",maxLength:Te,readOnly:!Ke,unselectable:Ke?null:"on",style:(0,j.Z)((0,j.Z)({},xt),{},{opacity:Ke?null:0}),onKeyDown:function(Et){ft(Et),qt&&qt(Et)},onMouseDown:function(Et){Y(Et),jt&&jt(Et)},onChange:function(Et){oe(Et),Ut&&Ut(Et)},onCompositionStart:function(Et){it(Et),kt&&kt(Et)},onCompositionEnd:function(Et){_e(Et),Lt&&Lt(Et)},onPaste:De})),Rt},be=y.forwardRef(R);be.displayName="Input";var We=be;function Ae(d){return Array.isArray(d)?d:d!==void 0?[d]:[]}var me=typeof window!="undefined"&&window.document&&window.document.documentElement,ut=me;function ke(d){return d!=null}function Ge(d){return!d&&d!==0}function ae(d){return["string","number"].includes((0,T.Z)(d))}function H(d){var h=void 0;return d&&(ae(d.title)?h=d.title.toString():ae(d.label)&&(h=d.label.toString())),h}function G(d,h){ut?y.useLayoutEffect(d,h):y.useEffect(d,h)}function q(d){var h;return(h=d.key)!==null&&h!==void 0?h:d.value}var ee=function(h){h.preventDefault(),h.stopPropagation()},Ve=function(h){var x=h.id,L=h.prefixCls,Q=h.values,B=h.open,$=h.searchValue,se=h.autoClearSearchValue,ie=h.inputRef,Fe=h.placeholder,M=h.disabled,K=h.mode,Ke=h.showSearch,pe=h.autoFocus,Be=h.autoComplete,Te=h.activeDescendantId,ft=h.tabIndex,Y=h.removeIcon,oe=h.maxTagCount,De=h.maxTagTextLength,it=h.maxTagPlaceholder,_e=it===void 0?function(At){return"+ ".concat(At.length," ...")}:it,lt=h.tagRender,_t=h.onToggleOpen,Rt=h.onRemove,$t=h.onInputChange,zt=h.onInputPaste,wt=h.onInputKeyDown,qt=h.onInputMouseDown,Ut=h.onInputCompositionStart,jt=h.onInputCompositionEnd,kt=y.useRef(null),Lt=(0,y.useState)(0),xt=(0,p.Z)(Lt,2),Wt=xt[0],Et=xt[1],fn=(0,y.useState)(!1),Nt=(0,p.Z)(fn,2),Ht=Nt[0],an=Nt[1],Gt="".concat(L,"-selection"),En=B||K==="multiple"&&se===!1||K==="tags"?$:"",Un=K==="tags"||K==="multiple"&&se===!1||Ke&&(B||Ht);G(function(){Et(kt.current.scrollWidth)},[En]);function It(At,ln,gn,mn,Tn){return y.createElement("span",{className:N()("".concat(Gt,"-item"),(0,C.Z)({},"".concat(Gt,"-item-disabled"),gn)),title:H(At)},y.createElement("span",{className:"".concat(Gt,"-item-content")},ln),mn&&y.createElement(Ze,{className:"".concat(Gt,"-item-remove"),onMouseDown:ee,onClick:Tn,customizeIcon:Y},"\xD7"))}function st(At,ln,gn,mn,Tn){var je=function(pt){ee(pt),_t(!B)};return y.createElement("span",{onMouseDown:je},lt({label:ln,value:At,disabled:gn,closable:mn,onClose:Tn}))}function dt(At){var ln=At.disabled,gn=At.label,mn=At.value,Tn=!M&&!ln,je=gn;if(typeof De=="number"&&(typeof gn=="string"||typeof gn=="number")){var ze=String(je);ze.length>De&&(je="".concat(ze.slice(0,De),"..."))}var pt=function(vn){vn&&vn.stopPropagation(),Rt(At)};return typeof lt=="function"?st(mn,je,ln,Tn,pt):It(At,je,ln,Tn,pt)}function en(At){var ln=typeof _e=="function"?_e(At):_e;return It({title:ln},ln,!1)}var tn=y.createElement("div",{className:"".concat(Gt,"-search"),style:{width:Wt},onFocus:function(){an(!0)},onBlur:function(){an(!1)}},y.createElement(We,{ref:ie,open:B,prefixCls:L,id:x,inputElement:null,disabled:M,autoFocus:pe,autoComplete:Be,editable:Un,activeDescendantId:Te,value:En,onKeyDown:wt,onMouseDown:qt,onChange:$t,onPaste:zt,onCompositionStart:Ut,onCompositionEnd:jt,tabIndex:ft,attrs:(0,I.Z)(h,!0)}),y.createElement("span",{ref:kt,className:"".concat(Gt,"-search-mirror"),"aria-hidden":!0},En,"\xA0")),Vt=y.createElement(F.Z,{prefixCls:"".concat(Gt,"-overflow"),data:Q,renderItem:dt,renderRest:en,suffix:tn,itemKey:q,maxCount:oe});return y.createElement(y.Fragment,null,Vt,!Q.length&&!En&&y.createElement("span",{className:"".concat(Gt,"-placeholder")},Fe))},$e=Ve,ue=function(h){var x=h.inputElement,L=h.prefixCls,Q=h.id,B=h.inputRef,$=h.disabled,se=h.autoFocus,ie=h.autoComplete,Fe=h.activeDescendantId,M=h.mode,K=h.open,Ke=h.values,pe=h.placeholder,Be=h.tabIndex,Te=h.showSearch,ft=h.searchValue,Y=h.activeValue,oe=h.maxLength,De=h.onInputKeyDown,it=h.onInputMouseDown,_e=h.onInputChange,lt=h.onInputPaste,_t=h.onInputCompositionStart,Rt=h.onInputCompositionEnd,$t=h.title,zt=y.useState(!1),wt=(0,p.Z)(zt,2),qt=wt[0],Ut=wt[1],jt=M==="combobox",kt=jt||Te,Lt=Ke[0],xt=ft||"";jt&&Y&&!qt&&(xt=Y),y.useEffect(function(){jt&&Ut(!1)},[jt,Y]);var Wt=M!=="combobox"&&!K&&!Te?!1:!!xt,Et=$t===void 0?H(Lt):$t,fn=function(){if(Lt)return null;var Ht=Wt?{visibility:"hidden"}:void 0;return y.createElement("span",{className:"".concat(L,"-selection-placeholder"),style:Ht},pe)};return y.createElement(y.Fragment,null,y.createElement("span",{className:"".concat(L,"-selection-search")},y.createElement(We,{ref:B,prefixCls:L,id:Q,open:K,inputElement:x,disabled:$,autoFocus:se,autoComplete:ie,editable:kt,activeDescendantId:Fe,value:xt,onKeyDown:De,onMouseDown:it,onChange:function(Ht){Ut(!0),_e(Ht)},onPaste:lt,onCompositionStart:_t,onCompositionEnd:Rt,tabIndex:Be,attrs:(0,I.Z)(h,!0),maxLength:jt?oe:void 0})),!jt&&Lt?y.createElement("span",{className:"".concat(L,"-selection-item"),title:Et,style:Wt?{visibility:"hidden"}:void 0},Lt.label):null,fn())},Me=ue;function fe(d){return![k.Z.ESC,k.Z.SHIFT,k.Z.BACKSPACE,k.Z.TAB,k.Z.WIN_KEY,k.Z.ALT,k.Z.META,k.Z.WIN_KEY_RIGHT,k.Z.CTRL,k.Z.SEMICOLON,k.Z.EQUALS,k.Z.CAPS_LOCK,k.Z.CONTEXT_MENU,k.Z.F1,k.Z.F2,k.Z.F3,k.Z.F4,k.Z.F5,k.Z.F6,k.Z.F7,k.Z.F8,k.Z.F9,k.Z.F10,k.Z.F11,k.Z.F12].includes(d)}var bt=function(h,x){var L=(0,y.useRef)(null),Q=(0,y.useRef)(!1),B=h.prefixCls,$=h.open,se=h.mode,ie=h.showSearch,Fe=h.tokenWithEnter,M=h.autoClearSearchValue,K=h.onSearch,Ke=h.onSearchSubmit,pe=h.onToggleOpen,Be=h.onInputKeyDown,Te=h.domRef;y.useImperativeHandle(x,function(){return{focus:function(){L.current.focus()},blur:function(){L.current.blur()}}});var ft=c(0),Y=(0,p.Z)(ft,2),oe=Y[0],De=Y[1],it=function(xt){var Wt=xt.which;(Wt===k.Z.UP||Wt===k.Z.DOWN)&&xt.preventDefault(),Be&&Be(xt),Wt===k.Z.ENTER&&se==="tags"&&!Q.current&&!$&&(Ke==null||Ke(xt.target.value)),fe(Wt)&&pe(!0)},_e=function(){De(!0)},lt=(0,y.useRef)(null),_t=function(xt){K(xt,!0,Q.current)!==!1&&pe(!0)},Rt=function(){Q.current=!0},$t=function(xt){Q.current=!1,se!=="combobox"&&_t(xt.target.value)},zt=function(xt){var Wt=xt.target.value;if(Fe&<.current&&/[\r\n]/.test(lt.current)){var Et=lt.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Wt=Wt.replace(Et,lt.current)}lt.current=null,_t(Wt)},wt=function(xt){var Wt=xt.clipboardData,Et=Wt.getData("text");lt.current=Et},qt=function(xt){var Wt=xt.target;if(Wt!==L.current){var Et=document.body.style.msTouchAction!==void 0;Et?setTimeout(function(){L.current.focus()}):L.current.focus()}},Ut=function(xt){var Wt=oe();xt.target!==L.current&&!Wt&&se!=="combobox"&&xt.preventDefault(),(se!=="combobox"&&(!ie||!Wt)||!$)&&($&&M!==!1&&K("",!0,!1),pe())},jt={inputRef:L,onInputKeyDown:it,onInputMouseDown:_e,onInputChange:zt,onInputPaste:wt,onInputCompositionStart:Rt,onInputCompositionEnd:$t},kt=se==="multiple"||se==="tags"?y.createElement($e,(0,E.Z)({},h,jt)):y.createElement(Me,(0,E.Z)({},h,jt));return y.createElement("div",{ref:Te,className:"".concat(B,"-selector"),onClick:qt,onMouseDown:Ut},kt)},Dt=y.forwardRef(bt);Dt.displayName="Selector";var St=Dt,et=f(35593),Ot=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],at=function(h){var x=h===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:x,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:x,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:x,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:x,adjustY:1},htmlRegion:"scroll"}}},A=function(h,x){var L=h.prefixCls,Q=h.disabled,B=h.visible,$=h.children,se=h.popupElement,ie=h.animation,Fe=h.transitionName,M=h.dropdownStyle,K=h.dropdownClassName,Ke=h.direction,pe=Ke===void 0?"ltr":Ke,Be=h.placement,Te=h.builtinPlacements,ft=h.dropdownMatchSelectWidth,Y=h.dropdownRender,oe=h.dropdownAlign,De=h.getPopupContainer,it=h.empty,_e=h.getTriggerDOMNode,lt=h.onPopupVisibleChange,_t=h.onPopupMouseEnter,Rt=(0,P.Z)(h,Ot),$t="".concat(L,"-dropdown"),zt=se;Y&&(zt=Y(se));var wt=y.useMemo(function(){return Te||at(ft)},[Te,ft]),qt=ie?"".concat($t,"-").concat(ie):Fe,Ut=typeof ft=="number",jt=y.useMemo(function(){return Ut?null:ft===!1?"minWidth":"width"},[ft,Ut]),kt=M;Ut&&(kt=(0,j.Z)((0,j.Z)({},kt),{},{width:ft}));var Lt=y.useRef(null);return y.useImperativeHandle(x,function(){return{getPopupElement:function(){return Lt.current}}}),y.createElement(et.Z,(0,E.Z)({},Rt,{showAction:lt?["click"]:[],hideAction:lt?["click"]:[],popupPlacement:Be||(pe==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:wt,prefixCls:$t,popupTransitionName:qt,popup:y.createElement("div",{ref:Lt,onMouseEnter:_t},zt),stretch:jt,popupAlign:oe,popupVisible:B,getPopupContainer:De,popupClassName:N()(K,(0,C.Z)({},"".concat($t,"-empty"),it)),popupStyle:kt,getTriggerDOMNode:_e,onPopupVisibleChange:lt}),$)},we=y.forwardRef(A);we.displayName="SelectTrigger";var le=we,V=f(34589);function re(d,h){var x=d.key,L;return"value"in d&&(L=d.value),x!=null?x:L!==void 0?L:"rc-index-key-".concat(h)}function de(d,h){var x=d||{},L=x.label,Q=x.value,B=x.options,$=x.groupLabel,se=L||(h?"children":"label");return{label:se,value:Q||"value",options:B||"options",groupLabel:$||se}}function Se(d){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},x=h.fieldNames,L=h.childrenAsData,Q=[],B=de(x,!1),$=B.label,se=B.value,ie=B.options,Fe=B.groupLabel;function M(K,Ke){K.forEach(function(pe){if(Ke||!(ie in pe)){var Be=pe[se];Q.push({key:re(pe,Q.length),groupOption:Ke,data:pe,label:pe[$],value:Be})}else{var Te=pe[Fe];Te===void 0&&L&&(Te=pe.label),Q.push({key:re(pe,Q.length),group:!0,data:pe,label:Te}),M(pe[ie],!0)}})}return M(d,!1),Q}function he(d){var h=(0,j.Z)({},d);return"props"in h||Object.defineProperty(h,"props",{get:function(){return(0,te.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),h}}),h}function Re(d,h){if(!h||!h.length)return null;var x=!1;function L(B,$){var se=(0,V.Z)($),ie=se[0],Fe=se.slice(1);if(!ie)return[B];var M=B.split(ie);return x=x||M.length>1,M.reduce(function(K,Ke){return[].concat((0,J.Z)(K),(0,J.Z)(L(Ke,Fe)))},[]).filter(function(K){return K})}var Q=L(d,h);return x?Q:null}var ne=["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"],Ye=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function ce(d){return d==="tags"||d==="multiple"}var Ie=y.forwardRef(function(d,h){var x,L,Q=d.id,B=d.prefixCls,$=d.className,se=d.showSearch,ie=d.tagRender,Fe=d.direction,M=d.omitDomProps,K=d.displayValues,Ke=d.onDisplayValuesChange,pe=d.emptyOptions,Be=d.notFoundContent,Te=Be===void 0?"Not Found":Be,ft=d.onClear,Y=d.mode,oe=d.disabled,De=d.loading,it=d.getInputElement,_e=d.getRawInputElement,lt=d.open,_t=d.defaultOpen,Rt=d.onDropdownVisibleChange,$t=d.activeValue,zt=d.onActiveValueChange,wt=d.activeDescendantId,qt=d.searchValue,Ut=d.autoClearSearchValue,jt=d.onSearch,kt=d.onSearchSplit,Lt=d.tokenSeparators,xt=d.allowClear,Wt=d.suffixIcon,Et=d.clearIcon,fn=d.OptionList,Nt=d.animation,Ht=d.transitionName,an=d.dropdownStyle,Gt=d.dropdownClassName,En=d.dropdownMatchSelectWidth,Un=d.dropdownRender,It=d.dropdownAlign,st=d.placement,dt=d.builtinPlacements,en=d.getPopupContainer,tn=d.showAction,Vt=tn===void 0?[]:tn,At=d.onFocus,ln=d.onBlur,gn=d.onKeyUp,mn=d.onKeyDown,Tn=d.onMouseDown,je=(0,P.Z)(d,ne),ze=ce(Y),pt=(se!==void 0?se:ze)||Y==="combobox",mt=(0,j.Z)({},je);Ye.forEach(function(Jt){delete mt[Jt]}),M==null||M.forEach(function(Jt){delete mt[Jt]});var vn=y.useState(!1),Cr=(0,p.Z)(vn,2),Kn=Cr[0],Jn=Cr[1];y.useEffect(function(){Jn((0,Oe.Z)())},[]);var Fn=y.useRef(null),jn=y.useRef(null),Mn=y.useRef(null),sr=y.useRef(null),qn=y.useRef(null),tr=S(),Kr=(0,p.Z)(tr,3),Xr=Kr[0],li=Kr[1],Yr=Kr[2];y.useImperativeHandle(h,function(){var Jt,Bt;return{focus:(Jt=sr.current)===null||Jt===void 0?void 0:Jt.focus,blur:(Bt=sr.current)===null||Bt===void 0?void 0:Bt.blur,scrollTo:function(nr){var On;return(On=qn.current)===null||On===void 0?void 0:On.scrollTo(nr)}}});var xr=y.useMemo(function(){var Jt;if(Y!=="combobox")return qt;var Bt=(Jt=K[0])===null||Jt===void 0?void 0:Jt.value;return typeof Bt=="string"||typeof Bt=="number"?String(Bt):""},[qt,Y,K]),Qr=Y==="combobox"&&typeof it=="function"&&it()||null,Ir=typeof _e=="function"&&_e(),Bi=(0,Xe.x1)(jn,Ir==null||(x=Ir.props)===null||x===void 0?void 0:x.ref),Si=y.useState(!1),si=(0,p.Z)(Si,2),_r=si[0],Ci=si[1];(0,ve.Z)(function(){Ci(!0)},[]);var xi=(0,ye.Z)(!1,{defaultValue:_t,value:lt}),Ur=(0,p.Z)(xi,2),Ar=Ur[0],ui=Ur[1],ht=_r?Ar:!1,Tt=!Te&&pe;(oe||Tt&&ht&&Y==="combobox")&&(ht=!1);var yt=Tt?!1:ht,ot=y.useCallback(function(Jt){var Bt=Jt!==void 0?Jt:!ht;oe||(ui(Bt),ht!==Bt&&(Rt==null||Rt(Bt)))},[oe,ht,ui,Rt]),yn=y.useMemo(function(){return(Lt||[]).some(function(Jt){return[` `,`\r `].includes(Jt)})},[Lt]),bn=function(Bt,Gn,nr){var On=!0,or=Bt;zt==null||zt(null);var gr=nr?null:Re(Bt,Lt);return Y!=="combobox"&&gr&&(or="",kt==null||kt(gr),ot(!1),On=!1),jt&&xr!==or&&jt(or,{source:Gn?"typing":"effect"}),On},ur=function(Bt){!Bt||!Bt.trim()||jt(Bt,{source:"submit"})};y.useEffect(function(){!ht&&!ze&&Y!=="combobox"&&bn("",!1,!1)},[ht]),y.useEffect(function(){Ar&&oe&&ui(!1),oe&&li(!1)},[oe]);var Mr=c(),Fr=(0,p.Z)(Mr,2),kn=Fr[0],Rr=Fr[1],ci=function(Bt){var Gn=kn(),nr=Bt.which;if(nr===k.Z.ENTER&&(Y!=="combobox"&&Bt.preventDefault(),ht||ot(!0)),Rr(!!xr),nr===k.Z.BACKSPACE&&!Gn&&ze&&!xr&&K.length){for(var On=(0,J.Z)(K),or=null,gr=On.length-1;gr>=0;gr-=1){var jr=On[gr];if(!jr.disabled){On.splice(gr,1),or=jr;break}}or&&Ke(On,{type:"remove",values:[or]})}for(var wr=arguments.length,kr=new Array(wr>1?wr-1:0),Nr=1;Nr1?Gn-1:0),On=1;On1?gr-1:0),wr=1;wr1&&arguments[1]!==void 0?arguments[1]:!1;return(0,He.Z)(d).map(function(x,L){if(!y.isValidElement(x)||!x.type)return null;var Q=x,B=Q.type.isSelectOptGroup,$=Q.key,se=Q.props,ie=se.children,Fe=(0,P.Z)(se,vt);return h||!B?rn(x):(0,j.Z)((0,j.Z)({key:"__RC_SELECT_GRP__".concat($===null?L:$,"__"),label:$},Fe),{},{options:Zt(ie)})}).filter(function(x){return x})}function Ft(d,h,x,L,Q){return y.useMemo(function(){var B=d,$=!d;$&&(B=Zt(h));var se=new Map,ie=new Map,Fe=function(Ke,pe,Be){Be&&typeof Be=="string"&&Ke.set(pe[Be],pe)};function M(K){for(var Ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,pe=0;pe1&&arguments[1]!==void 0?arguments[1]:1,en=zt.length,tn=0;tn1&&arguments[1]!==void 0?arguments[1]:!1;Wt(st);var en={source:dt?"keyboard":"mouse"},tn=zt[st];if(!tn){Te(null,-1,en);return}Te(tn.value,st,en)};(0,y.useEffect)(function(){Et(ft!==!1?jt(0):-1)},[zt.length,Fe]);var fn=y.useCallback(function(It){return De.has(It)&&ie!=="combobox"},[ie,(0,J.Z)(De).toString(),De.size]);(0,y.useEffect)(function(){var It=setTimeout(function(){if(!se&&$&&De.size===1){var dt=Array.from(De)[0],en=zt.findIndex(function(tn){var Vt=tn.data;return Vt.value===dt});en!==-1&&(Et(en),Ut(en))}});if($){var st;(st=wt.current)===null||st===void 0||st.scrollTo(void 0)}return function(){return clearTimeout(It)}},[$,Fe,Be.length]);var Nt=function(st){st!==void 0&&Y(st,{selected:!De.has(st)}),se||M(!1)};if(y.useImperativeHandle(x,function(){return{onKeyDown:function(st){var dt=st.which,en=st.ctrlKey;switch(dt){case k.Z.N:case k.Z.P:case k.Z.UP:case k.Z.DOWN:{var tn=0;if(dt===k.Z.UP?tn=-1:dt===k.Z.DOWN?tn=1:wn()&&en&&(dt===k.Z.N?tn=1:dt===k.Z.P&&(tn=-1)),tn!==0){var Vt=jt(xt+tn,tn);Ut(Vt),Et(Vt,!0)}break}case k.Z.ENTER:{var At=zt[xt];At&&!At.data.disabled?Nt(At.value):Nt(void 0),$&&st.preventDefault();break}case k.Z.ESC:M(!1),$&&st.stopPropagation()}},onKeyUp:function(){},scrollTo:function(st){Ut(st)}}}),zt.length===0)return y.createElement("div",{role:"listbox",id:"".concat(B,"_list"),className:"".concat($t,"-empty"),onMouseDown:qt},K);var Ht=Object.keys(it).map(function(It){return it[It]}),an=function(st){return st.label};function Gt(It,st){var dt=It.group;return{role:dt?"presentation":"option",id:"".concat(B,"_list_").concat(st)}}var En=function(st){var dt=zt[st];if(!dt)return null;var en=dt.data||{},tn=en.value,Vt=dt.group,At=(0,I.Z)(en,!0),ln=an(dt);return dt?y.createElement("div",(0,E.Z)({"aria-label":typeof ln=="string"&&!Vt?ln:null},At,{key:st},Gt(dt,st),{"aria-selected":fn(tn)}),tn):null},Un={role:"listbox",id:"".concat(B,"_list")};return y.createElement(y.Fragment,null,_e&&y.createElement("div",(0,E.Z)({},Un,{style:{height:0,width:0,overflow:"hidden"}}),En(xt-1),En(xt),En(xt+1)),y.createElement(Wn.Z,{itemKey:"key",ref:wt,data:zt,height:_t,itemHeight:Rt,fullHeight:!1,onMouseDown:qt,onScroll:Ke,virtual:_e,direction:lt,innerProps:_e?null:Un},function(It,st){var dt,en=It.group,tn=It.groupOption,Vt=It.data,At=It.label,ln=It.value,gn=Vt.key;if(en){var mn,Tn=(mn=Vt.title)!==null&&mn!==void 0?mn:xn(At)?At.toString():void 0;return y.createElement("div",{className:N()($t,"".concat($t,"-group")),title:Tn},At!==void 0?At:gn)}var je=Vt.disabled,ze=Vt.title,pt=Vt.children,mt=Vt.style,vn=Vt.className,Cr=(0,P.Z)(Vt,In),Kn=(0,zn.Z)(Cr,Ht),Jn=fn(ln),Fn="".concat($t,"-option"),jn=N()($t,Fn,vn,(dt={},(0,C.Z)(dt,"".concat(Fn,"-grouped"),tn),(0,C.Z)(dt,"".concat(Fn,"-active"),xt===st&&!je),(0,C.Z)(dt,"".concat(Fn,"-disabled"),je),(0,C.Z)(dt,"".concat(Fn,"-selected"),Jn),dt)),Mn=an(It),sr=!oe||typeof oe=="function"||Jn,qn=typeof Mn=="number"?Mn:Mn||ln,tr=xn(qn)?qn.toString():void 0;return ze!==void 0&&(tr=ze),y.createElement("div",(0,E.Z)({},(0,I.Z)(Kn),_e?{}:Gt(It,st),{"aria-selected":Jn,className:jn,title:tr,onMouseMove:function(){xt===st||je||Et(st)},onClick:function(){je||Nt(ln)},style:mt}),y.createElement("div",{className:"".concat(Fn,"-content")},qn),y.isValidElement(oe)||Jn,sr&&y.createElement(Ze,{className:"".concat($t,"-option-state"),customizeIcon:oe,customizeIconProps:{isSelected:Jn}},Jn?"\u2713":null))}))},Nn=y.forwardRef(dn);Nn.displayName="OptionList";var Qt=Nn;function An(d){var h=d.mode,x=d.options,L=d.children,Q=d.backfill,B=d.allowClear,$=d.placeholder,se=d.getInputElement,ie=d.showSearch,Fe=d.onSearch,M=d.defaultOpen,K=d.autoFocus,Ke=d.labelInValue,pe=d.value,Be=d.inputValue,Te=d.optionLabelProp,ft=isMultiple(h),Y=ie!==void 0?ie:ft||h==="combobox",oe=x||convertChildrenToData(L);if(warning(h!=="tags"||oe.every(function(lt){return!lt.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),h==="tags"||h==="combobox"){var De=oe.some(function(lt){return lt.options?lt.options.some(function(_t){return typeof("value"in _t?_t.value:_t.key)=="number"}):typeof("value"in lt?lt.value:lt.key)=="number"});warning(!De,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(h!=="combobox"||!Te,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(h==="combobox"||!Q,"`backfill` only works with `combobox` mode."),warning(h==="combobox"||!se,"`getInputElement` only work with `combobox` mode."),noteOnce(h!=="combobox"||!se||!B||!$,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Fe&&!Y&&h!=="combobox"&&h!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!M||K,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),pe!=null){var it=toArray(pe);warning(!Ke||it.every(function(lt){return _typeof(lt)==="object"&&("key"in lt||"value"in lt)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!ft||Array.isArray(pe),"`value` should be array when `mode` is `multiple` or `tags`")}if(L){var _e=null;toNodeArray(L).some(function(lt){if(!React.isValidElement(lt)||!lt.type)return!1;var _t=lt,Rt=_t.type;if(Rt.isSelectOption)return!1;if(Rt.isSelectOptGroup){var $t=toNodeArray(lt.props.children).every(function(zt){return!React.isValidElement(zt)||!lt.type||zt.type.isSelectOption?!0:(_e=zt.type,!1)});return!$t}return _e=Rt,!0}),_e&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(_e.displayName||_e.name||_e,"`.")),warning(Be===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Hn(d,h){if(d){var x=function L(Q){for(var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,$=0;$2&&arguments[2]!==void 0?arguments[2]:{},ot=yt.source,yn=ot===void 0?"keyboard":ot;Bi(Tt),$&&L==="combobox"&&ht!==null&&yn==="keyboard"&&Yr(String(ht))},[$,L]),_r=function(Tt,yt,ot){var yn=function(){var Hr,Lr=vn(Tt);return[xt?{label:Lr==null?void 0:Lr[Gt.label],value:Tt,key:(Hr=Lr==null?void 0:Lr.key)!==null&&Hr!==void 0?Hr:Tt}:Tt,he(Lr)]};if(yt&&pe){var bn=yn(),ur=(0,p.Z)(bn,2),Mr=ur[0],Fr=ur[1];pe(Mr,Fr)}else if(!yt&&Be&&ot!=="clear"){var kn=yn(),Rr=(0,p.Z)(kn,2),ci=Rr[0],Zi=Rr[1];Be(ci,Zi)}},Ci=Pt(function(ht,Tt){var yt,ot=Nt?Tt.selected:!0;ot?yt=Nt?[].concat((0,J.Z)(mt),[ht]):[ht]:yt=mt.filter(function(yn){return yn.value!==ht}),tr(yt),_r(ht,ot),L==="combobox"?Yr(""):(!ce||Ke)&&(st(""),Yr(""))}),xi=function(Tt,yt){tr(Tt);var ot=yt.type,yn=yt.values;(ot==="remove"||ot==="clear")&&yn.forEach(function(bn){_r(bn.value,!1,ot)})},Ur=function(Tt,yt){if(st(Tt),Yr(null),yt.source==="submit"){var ot=(Tt||"").trim();if(ot){var yn=Array.from(new Set([].concat((0,J.Z)(Kn),[ot])));tr(yn),_r(ot,!0),st("")}return}yt.source!=="blur"&&(L==="combobox"&&tr(Tt),M==null||M(Tt))},Ar=function(Tt){var yt=Tt;L!=="tags"&&(yt=Tt.map(function(yn){var bn=tn.get(yn);return bn==null?void 0:bn.value}).filter(function(yn){return yn!==void 0}));var ot=Array.from(new Set([].concat((0,J.Z)(Kn),(0,J.Z)(yt))));tr(ot),ot.forEach(function(yn){_r(yn,!0)})},ui=y.useMemo(function(){var ht=$t!==!1&&ft!==!1;return(0,j.Z)((0,j.Z)({},dt),{},{flattenOptions:qn,onActiveValue:si,defaultActiveFirstOption:Si,onSelect:Ci,menuItemSelectedIcon:Rt,rawValues:Kn,fieldNames:Gt,virtual:ht,direction:zt,listHeight:qt,listItemHeight:jt,childrenAsData:Ht})},[dt,qn,si,Si,Ci,Rt,Kn,Gt,$t,ft,qt,jt,Ht]);return y.createElement(Ln.Provider,{value:ui},y.createElement(Le,(0,E.Z)({},Et,{id:fn,prefixCls:B,ref:h,omitDomProps:on,mode:L,displayValues:Cr,onDisplayValuesChange:xi,direction:zt,searchValue:It,onSearch:Ur,autoClearSearchValue:Ke,onSearchSplit:Ar,dropdownMatchSelectWidth:ft,OptionList:Qt,emptyOptions:!qn.length,activeValue:li,activeDescendantId:"".concat(fn,"_list_").concat(Ir)})))}),g=Mt;g.Option=Cn,g.OptGroup=Yt;var D=g,W=D},9296:function(nn,xe,f){"use strict";f.r(xe),f.d(xe,{ResizableTextArea:function(){return be},default:function(){return Ge}});var E=f(92413),J=f(33708),C=f(400),j=f(39559),p=f(33606),P=f(37061),T=f(26407),ye=f(92310),te=f.n(ye),y=f(93681),Ce=f(5643),N=f(18929),ve=f(59301),Oe=f(29301),k=f(34280),Xe=f(16089),nt=` 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; `,Ze=["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"],tt={},_;function Z(ae){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,G=ae.getAttribute("id")||ae.getAttribute("data-reactid")||ae.getAttribute("name");if(H&&tt[G])return tt[G];var q=window.getComputedStyle(ae),ee=q.getPropertyValue("box-sizing")||q.getPropertyValue("-moz-box-sizing")||q.getPropertyValue("-webkit-box-sizing"),Ve=parseFloat(q.getPropertyValue("padding-bottom"))+parseFloat(q.getPropertyValue("padding-top")),$e=parseFloat(q.getPropertyValue("border-bottom-width"))+parseFloat(q.getPropertyValue("border-top-width")),ue=Ze.map(function(fe){return"".concat(fe,":").concat(q.getPropertyValue(fe))}).join(";"),Me={sizingStyle:ue,paddingSize:Ve,borderSize:$e,boxSizing:ee};return H&&G&&(tt[G]=Me),Me}function S(ae){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,G=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,q=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;_||(_=document.createElement("textarea"),_.setAttribute("tab-index","-1"),_.setAttribute("aria-hidden","true"),document.body.appendChild(_)),ae.getAttribute("wrap")?_.setAttribute("wrap",ae.getAttribute("wrap")):_.removeAttribute("wrap");var ee=Z(ae,H),Ve=ee.paddingSize,$e=ee.borderSize,ue=ee.boxSizing,Me=ee.sizingStyle;_.setAttribute("style","".concat(Me,";").concat(nt)),_.value=ae.value||ae.placeholder||"";var fe=void 0,bt=void 0,Dt,St=_.scrollHeight;if(ue==="border-box"?St+=$e:ue==="content-box"&&(St-=Ve),G!==null||q!==null){_.value=" ";var et=_.scrollHeight-Ve;G!==null&&(fe=et*G,ue==="border-box"&&(fe=fe+Ve+$e),St=Math.max(fe,St)),q!==null&&(bt=et*q,ue==="border-box"&&(bt=bt+Ve+$e),Dt=St>bt?"":"hidden",St=Math.min(bt,St))}var Ot={height:St,overflowY:Dt,resize:"none"};return fe&&(Ot.minHeight=fe),bt&&(Ot.maxHeight=bt),Ot}var c=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],b=0,I=1,F=2,R=ve.forwardRef(function(ae,H){var G=ae,q=G.prefixCls,ee=G.onPressEnter,Ve=G.defaultValue,$e=G.value,ue=G.autoSize,Me=G.onResize,fe=G.className,bt=G.style,Dt=G.disabled,St=G.onChange,et=G.onInternalAutoSize,Ot=(0,P.Z)(G,c),at=(0,N.Z)(Ve,{value:$e,postState:function(Yt){return Yt!=null?Yt:""}}),A=(0,p.Z)(at,2),we=A[0],le=A[1],V=function(Yt){le(Yt.target.value),St==null||St(Yt)},re=ve.useRef();ve.useImperativeHandle(H,function(){return{textArea:re.current}});var de=ve.useMemo(function(){return ue&&(0,j.Z)(ue)==="object"?[ue.minRows,ue.maxRows]:[]},[ue]),Se=(0,p.Z)(de,2),he=Se[0],Re=Se[1],ne=!!ue,Ye=function(){try{if(document.activeElement===re.current){var Yt=re.current,sn=Yt.selectionStart,Cn=Yt.selectionEnd,un=Yt.scrollTop;re.current.setSelectionRange(sn,Cn),re.current.scrollTop=un}}catch(zn){}},ce=ve.useState(F),Ie=(0,p.Z)(ce,2),Le=Ie[0],Ee=Ie[1],Je=ve.useState(),U=(0,p.Z)(Je,2),rt=U[0],He=U[1],ct=function(){Ee(b)};(0,k.Z)(function(){ne&&ct()},[$e,he,Re,ne]),(0,k.Z)(function(){if(Le===b)Ee(I);else if(Le===I){var Xt=S(re.current,!1,he,Re);Ee(F),He(Xt)}else Ye()},[Le]);var vt=ve.useRef(),rn=function(){Xe.Z.cancel(vt.current)},Zt=function(Yt){Le===F&&(Me==null||Me(Yt),ue&&(rn(),vt.current=(0,Xe.Z)(function(){ct()})))};ve.useEffect(function(){return rn},[]);var Ft=ne?rt:null,Pt=(0,J.Z)((0,J.Z)({},bt),Ft);return(Le===b||Le===I)&&(Pt.overflowY="hidden",Pt.overflowX="hidden"),ve.createElement(Oe.Z,{onResize:Zt,disabled:!(ue||Me)},ve.createElement("textarea",(0,E.Z)({},Ot,{ref:re,style:Pt,className:te()(q,fe,(0,C.Z)({},"".concat(q,"-disabled"),Dt)),disabled:Dt,value:we,onChange:V})))}),be=R,We=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function Ae(ae,H){return(0,T.Z)(ae||"").slice(0,H).join("")}function me(ae,H,G,q){var ee=G;return ae?ee=Ae(G,q):(0,T.Z)(H||"").lengthq&&(ee=H),ee}var ut=ve.forwardRef(function(ae,H){var G,q=ae.defaultValue,ee=ae.value,Ve=ae.onFocus,$e=ae.onBlur,ue=ae.onChange,Me=ae.allowClear,fe=ae.maxLength,bt=ae.onCompositionStart,Dt=ae.onCompositionEnd,St=ae.suffix,et=ae.prefixCls,Ot=et===void 0?"rc-textarea":et,at=ae.classes,A=ae.showCount,we=ae.className,le=ae.style,V=ae.disabled,re=ae.hidden,de=ae.classNames,Se=ae.styles,he=ae.onResize,Re=(0,P.Z)(ae,We),ne=(0,N.Z)(q,{value:ee,defaultValue:q}),Ye=(0,p.Z)(ne,2),ce=Ye[0],Ie=Ye[1],Le=(0,ve.useRef)(null),Ee=ve.useState(!1),Je=(0,p.Z)(Ee,2),U=Je[0],rt=Je[1],He=ve.useState(!1),ct=(0,p.Z)(He,2),vt=ct[0],rn=ct[1],Zt=ve.useRef(),Ft=ve.useRef(0),Pt=ve.useState(null),Xt=(0,p.Z)(Pt,2),Yt=Xt[0],sn=Xt[1],Cn=function(){var Qe;(Qe=Le.current)===null||Qe===void 0||Qe.textArea.focus()};(0,ve.useImperativeHandle)(H,function(){return{resizableTextArea:Le.current,focus:Cn,blur:function(){var Qe;(Qe=Le.current)===null||Qe===void 0||Qe.textArea.blur()}}}),(0,ve.useEffect)(function(){rt(function(on){return!V&&on})},[V]);var un=Number(fe)>0,zn=function(Qe){rn(!0),Zt.current=ce,Ft.current=Qe.currentTarget.selectionStart,bt==null||bt(Qe)},Wn=function(Qe){rn(!1);var Mt=Qe.currentTarget.value;if(un){var g,D=Ft.current>=fe+1||Ft.current===((g=Zt.current)===null||g===void 0?void 0:g.length);Mt=me(D,Zt.current,Mt,fe)}Mt!==ce&&(Ie(Mt),(0,Ce.rJ)(Qe.currentTarget,Qe,ue,Mt)),Dt==null||Dt(Qe)},pn=function(Qe){var Mt=Qe.target.value;if(!vt&&un){var g=Qe.target.selectionStart>=fe+1||Qe.target.selectionStart===Mt.length||!Qe.target.selectionStart;Mt=me(g,ce,Mt,fe)}Ie(Mt),(0,Ce.rJ)(Qe.currentTarget,Qe,ue,Mt)},Ln=function(Qe){var Mt=Re.onPressEnter,g=Re.onKeyDown;Qe.key==="Enter"&&Mt&&Mt(Qe),g==null||g(Qe)},wn=function(Qe){rt(!0),Ve==null||Ve(Qe)},In=function(Qe){rt(!1),$e==null||$e(Qe)},xn=function(Qe){var Mt;Ie(""),Cn(),(0,Ce.rJ)((Mt=Le.current)===null||Mt===void 0?void 0:Mt.textArea,Qe,ue)},dn=(0,Ce.D7)(ce);!vt&&un&&ee==null&&(dn=Ae(dn,fe));var Nn=St,Qt;if(A){var An=(0,T.Z)(dn).length;(0,j.Z)(A)==="object"?Qt=A.formatter({value:dn,count:An,maxLength:fe}):Qt="".concat(An).concat(un?" / ".concat(fe):""),Nn=ve.createElement(ve.Fragment,null,Nn,ve.createElement("span",{className:te()("".concat(Ot,"-data-count"),de==null?void 0:de.count),style:Se==null?void 0:Se.count},Qt))}var Hn=function(Qe){var Mt;he==null||he(Qe),(Mt=Le.current)!==null&&Mt!==void 0&&Mt.textArea.style.height&&sn(!0)},Sr=!Re.autoSize&&!A&&!Me,pr=ve.createElement(y.BaseInput,{value:dn,allowClear:Me,handleReset:xn,suffix:Nn,prefixCls:Ot,classes:{affixWrapper:te()(at==null?void 0:at.affixWrapper,(G={},(0,C.Z)(G,"".concat(Ot,"-show-count"),A),(0,C.Z)(G,"".concat(Ot,"-textarea-allow-clear"),Me),G))},disabled:V,focused:U,className:we,style:(0,J.Z)((0,J.Z)({},le),Yt&&!Sr?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Qt=="string"?Qt:void 0}},hidden:re,inputElement:ve.createElement(be,(0,E.Z)({},Re,{onKeyDown:Ln,onChange:pn,onFocus:wn,onBlur:In,onCompositionStart:zn,onCompositionEnd:Wn,className:de==null?void 0:de.textarea,style:(0,J.Z)((0,J.Z)({},Se==null?void 0:Se.textarea),{},{resize:le==null?void 0:le.resize}),disabled:V,prefixCls:Ot,onResize:Hn,ref:Le}))});return pr}),ke=ut,Ge=ke},24916:function(nn,xe,f){"use strict";f.d(xe,{Z:function(){return at}});var E=f(92413),J=f(39559),C=f(33708),j=f(400),p=f(33606),P=f(37061),T=f(92310),ye=f.n(T),te=f(29301),y=f(70425),Ce=f(34280),N=f(59301),ve=f(4676),Oe=N.forwardRef(function(A,we){var le=A.height,V=A.offsetY,re=A.offsetX,de=A.children,Se=A.prefixCls,he=A.onInnerResize,Re=A.innerProps,ne=A.rtl,Ye=A.extra,ce={},Ie={display:"flex",flexDirection:"column"};return V!==void 0&&(ce={height:le,position:"relative",overflow:"hidden"},Ie=(0,C.Z)((0,C.Z)({},Ie),{},(0,j.Z)((0,j.Z)((0,j.Z)((0,j.Z)((0,j.Z)({transform:"translateY(".concat(V,"px)")},ne?"marginRight":"marginLeft",-re),"position","absolute"),"left",0),"right",0),"top",0))),N.createElement("div",{style:ce},N.createElement(te.Z,{onResize:function(Ee){var Je=Ee.offsetHeight;Je&&he&&he()}},N.createElement("div",(0,E.Z)({style:Ie,className:ye()((0,j.Z)({},"".concat(Se,"-holder-inner"),Se)),ref:we},Re),de,Ye)))});Oe.displayName="Filler";var k=Oe;function Xe(A){var we=A.children,le=A.setRef,V=N.useCallback(function(re){le(re)},[]);return N.cloneElement(we,{ref:V})}function nt(A,we,le,V,re,de,Se,he){var Re=he.getKey;return A.slice(we,le+1).map(function(ne,Ye){var ce=we+Ye,Ie=Se(ne,ce,{style:{width:V},offsetX:re}),Le=Re(ne);return N.createElement(Xe,{key:Le,setRef:function(Je){return de(ne,Je)}},Ie)})}function Ze(A,we,le,V){var re=le-A,de=we-le,Se=Math.min(re,de)*2;if(V<=Se){var he=Math.floor(V/2);return V%2?le+he+1:le-he}return re>de?le-(V-de):le+(V-re)}function tt(A,we,le){var V=A.length,re=we.length,de,Se;if(V===0&&re===0)return null;V2&&arguments[2]!==void 0?arguments[2]:!1,ce=Re?ne<0&&he.current.left||ne>0&&he.current.right:ne<0&&he.current.top||ne>0&&he.current.bottom;return Ye&&ce?(clearTimeout(de.current),re.current=!1):(!ce||re.current)&&Se(),!re.current&&ce}};function I(A,we,le,V,re,de,Se){var he=(0,N.useRef)(0),Re=(0,N.useRef)(null),ne=(0,N.useRef)(null),Ye=(0,N.useRef)(!1),ce=b(we,le,V,re);function Ie(He,ct){if(Z.Z.cancel(Re.current),!ce(!1,ct)){var vt=He;if(!vt._virtualHandled)vt._virtualHandled=!0;else return;he.current+=ct,ne.current=ct,c||vt.preventDefault(),Re.current=(0,Z.Z)(function(){var rn=Ye.current?10:1;Se(he.current*rn,!1),he.current=0})}}function Le(He,ct){Se(ct,!0),c||He.preventDefault()}var Ee=(0,N.useRef)(null),Je=(0,N.useRef)(null);function U(He){if(A){Z.Z.cancel(Je.current),Je.current=(0,Z.Z)(function(){Ee.current=null},2);var ct=He.deltaX,vt=He.deltaY,rn=He.shiftKey,Zt=ct,Ft=vt;(Ee.current==="sx"||!Ee.current&&rn&&vt&&!ct)&&(Zt=vt,Ft=0,Ee.current="sx");var Pt=Math.abs(Zt),Xt=Math.abs(Ft);Ee.current===null&&(Ee.current=de&&Pt>Xt?"x":"y"),Ee.current==="y"?Ie(He,Ft):Le(He,Zt)}}function rt(He){A&&(Ye.current=He.detail===ne.current)}return[U,rt]}function F(A,we,le,V){var re=N.useMemo(function(){return[new Map,[]]},[A,le.id,V]),de=(0,p.Z)(re,2),Se=de[0],he=de[1],Re=function(Ye){var ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ye,Ie=Se.get(Ye),Le=Se.get(ce);if(Ie===void 0||Le===void 0)for(var Ee=A.length,Je=he.length;Je0&&arguments[0]!==void 0?arguments[0]:!1;Ye();var Ee=function(){var rt=!1;he.current.forEach(function(He,ct){if(He&&He.offsetParent){var vt=He.offsetHeight,rn=getComputedStyle(He),Zt=rn.marginTop,Ft=rn.marginBottom,Pt=me(Zt),Xt=me(Ft),Yt=vt+Pt+Xt;Re.current.get(ct)!==Yt&&(Re.current.set(ct,Yt),rt=!0)}}),rt&&Se(function(He){return He+1})};if(Le)Ee();else{ne.current+=1;var Je=ne.current;Promise.resolve().then(function(){Je===ne.current&&Ee()})}}function Ie(Le,Ee){var Je=A(Le),U=he.current.get(Je);Ee?(he.current.set(Je,Ee),ce()):he.current.delete(Je),!U!=!Ee&&(Ee?we==null||we(Le):le==null||le(Le))}return(0,N.useEffect)(function(){return Ye},[]),[Ie,ce,Re.current,de]}var ke=14/15;function Ge(A,we,le){var V=(0,N.useRef)(!1),re=(0,N.useRef)(0),de=(0,N.useRef)(0),Se=(0,N.useRef)(null),he=(0,N.useRef)(null),Re,ne=function(Le){if(V.current){var Ee=Math.ceil(Le.touches[0].pageX),Je=Math.ceil(Le.touches[0].pageY),U=re.current-Ee,rt=de.current-Je,He=Math.abs(U)>Math.abs(rt);He?re.current=Ee:de.current=Je;var ct=le(He,He?U:rt,!1,Le);ct&&Le.preventDefault(),clearInterval(he.current),ct&&(he.current=setInterval(function(){He?U*=ke:rt*=ke;var vt=Math.floor(He?U:rt);(!le(He,vt,!0)||Math.abs(vt)<=.1)&&clearInterval(he.current)},16))}},Ye=function(){V.current=!1,Re()},ce=function(Le){Re(),Le.touches.length===1&&!V.current&&(V.current=!0,re.current=Math.ceil(Le.touches[0].pageX),de.current=Math.ceil(Le.touches[0].pageY),Se.current=Le.target,Se.current.addEventListener("touchmove",ne,{passive:!1}),Se.current.addEventListener("touchend",Ye,{passive:!0}))};Re=function(){Se.current&&(Se.current.removeEventListener("touchmove",ne),Se.current.removeEventListener("touchend",Ye))},(0,Ce.Z)(function(){return A&&we.current.addEventListener("touchstart",ce,{passive:!0}),function(){var Ie;(Ie=we.current)===null||Ie===void 0||Ie.removeEventListener("touchstart",ce),Re(),clearInterval(he.current)}},[A])}function ae(A){return Math.floor(Math.pow(A,.5))}function H(A,we){var le="touches"in A?A.touches[0]:A;return le[we?"pageX":"pageY"]-window[we?"scrollX":"scrollY"]}function G(A,we,le){N.useEffect(function(){var V=we.current;if(A&&V){var re=!1,de,Se,he=function(){Z.Z.cancel(de)},Re=function Ie(){he(),de=(0,Z.Z)(function(){le(Se),Ie()})},ne=function(Le){if(!Le.target.draggable){var Ee=Le;Ee._virtualHandled||(Ee._virtualHandled=!0,re=!0)}},Ye=function(){re=!1,he()},ce=function(Le){if(re){var Ee=H(Le,!1),Je=V.getBoundingClientRect(),U=Je.top,rt=Je.bottom;if(Ee<=U){var He=U-Ee;Se=-ae(He),Re()}else if(Ee>=rt){var ct=Ee-rt;Se=ae(ct),Re()}else he()}};return V.addEventListener("mousedown",ne),V.ownerDocument.addEventListener("mouseup",Ye),V.ownerDocument.addEventListener("mousemove",ce),function(){V.removeEventListener("mousedown",ne),V.ownerDocument.removeEventListener("mouseup",Ye),V.ownerDocument.removeEventListener("mousemove",ce),he()}}},[A])}var q=10;function ee(A,we,le,V,re,de,Se,he){var Re=N.useRef(),ne=N.useState(null),Ye=(0,p.Z)(ne,2),ce=Ye[0],Ie=Ye[1];return(0,Ce.Z)(function(){if(ce&&ce.times=0;zn-=1){var Wn=re(we[zn]),pn=le.get(Wn);if(pn===void 0){He=!0;break}if(un-=pn,un<=0)break}switch(rn){case"top":vt=Ft-U;break;case"bottom":vt=Pt-rt+U;break;default:{var Ln=A.current.scrollTop,wn=Ln+rt;Ftwn&&(ct="bottom")}}vt!==null&&Se(vt),vt!==ce.lastTop&&(He=!0)}He&&Ie((0,C.Z)((0,C.Z)({},ce),{},{times:ce.times+1,targetAlign:ct,lastTop:vt}))}},[ce,A.current]),function(Le){if(Le==null){he();return}if(Z.Z.cancel(Re.current),typeof Le=="number")Se(Le);else if(Le&&(0,J.Z)(Le)==="object"){var Ee,Je=Le.align;"index"in Le?Ee=Le.index:Ee=we.findIndex(function(He){return re(He)===Le.key});var U=Le.offset,rt=U===void 0?0:U;Ie({times:0,index:Ee,offset:rt,originAlign:Je})}}}var Ve=N.forwardRef(function(A,we){var le=A.prefixCls,V=A.rtl,re=A.scrollOffset,de=A.scrollRange,Se=A.onStartMove,he=A.onStopMove,Re=A.onScroll,ne=A.horizontal,Ye=A.spinSize,ce=A.containerSize,Ie=A.style,Le=A.thumbStyle,Ee=A.showScrollBar,Je=N.useState(!1),U=(0,p.Z)(Je,2),rt=U[0],He=U[1],ct=N.useState(null),vt=(0,p.Z)(ct,2),rn=vt[0],Zt=vt[1],Ft=N.useState(null),Pt=(0,p.Z)(Ft,2),Xt=Pt[0],Yt=Pt[1],sn=!V,Cn=N.useRef(),un=N.useRef(),zn=N.useState(Ee),Wn=(0,p.Z)(zn,2),pn=Wn[0],Ln=Wn[1],wn=N.useRef(),In=function(){Ee===!0||Ee===!1||(clearTimeout(wn.current),Ln(!0),wn.current=setTimeout(function(){Ln(!1)},3e3))},xn=de-ce||0,dn=ce-Ye||0,Nn=N.useMemo(function(){if(re===0||xn===0)return 0;var g=re/xn;return g*dn},[re,xn,dn]),Qt=function(D){D.stopPropagation(),D.preventDefault()},An=N.useRef({top:Nn,dragging:rt,pageY:rn,startTop:Xt});An.current={top:Nn,dragging:rt,pageY:rn,startTop:Xt};var Hn=function(D){He(!0),Zt(H(D,ne)),Yt(An.current.top),Se(),D.stopPropagation(),D.preventDefault()};N.useEffect(function(){var g=function(h){h.preventDefault()},D=Cn.current,W=un.current;return D.addEventListener("touchstart",g,{passive:!1}),W.addEventListener("touchstart",Hn,{passive:!1}),function(){D.removeEventListener("touchstart",g),W.removeEventListener("touchstart",Hn)}},[]);var Sr=N.useRef();Sr.current=xn;var pr=N.useRef();pr.current=dn,N.useEffect(function(){if(rt){var g,D=function(h){var x=An.current,L=x.dragging,Q=x.pageY,B=x.startTop;Z.Z.cancel(g);var $=Cn.current.getBoundingClientRect(),se=ce/(ne?$.width:$.height);if(L){var ie=(H(h,ne)-Q)*se,Fe=B;!sn&&ne?Fe-=ie:Fe+=ie;var M=Sr.current,K=pr.current,Ke=K?Fe/K:0,pe=Math.ceil(Ke*M);pe=Math.max(pe,0),pe=Math.min(pe,M),g=(0,Z.Z)(function(){Re(pe,ne)})}},W=function(){He(!1),he()};return window.addEventListener("mousemove",D,{passive:!0}),window.addEventListener("touchmove",D,{passive:!0}),window.addEventListener("mouseup",W,{passive:!0}),window.addEventListener("touchend",W,{passive:!0}),function(){window.removeEventListener("mousemove",D),window.removeEventListener("touchmove",D),window.removeEventListener("mouseup",W),window.removeEventListener("touchend",W),Z.Z.cancel(g)}}},[rt]),N.useEffect(function(){return In(),function(){clearTimeout(wn.current)}},[re]),N.useImperativeHandle(we,function(){return{delayHidden:In}});var on="".concat(le,"-scrollbar"),Qe={position:"absolute",visibility:pn?null:"hidden"},Mt={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return ne?(Qe.height=8,Qe.left=0,Qe.right=0,Qe.bottom=0,Mt.height="100%",Mt.width=Ye,sn?Mt.left=Nn:Mt.right=Nn):(Qe.width=8,Qe.top=0,Qe.bottom=0,sn?Qe.right=0:Qe.left=0,Mt.width="100%",Mt.height=Ye,Mt.top=Nn),N.createElement("div",{ref:Cn,className:ye()(on,(0,j.Z)((0,j.Z)((0,j.Z)({},"".concat(on,"-horizontal"),ne),"".concat(on,"-vertical"),!ne),"".concat(on,"-visible"),pn)),style:(0,C.Z)((0,C.Z)({},Qe),Ie),onMouseDown:Qt,onMouseMove:In},N.createElement("div",{ref:un,className:ye()("".concat(on,"-thumb"),(0,j.Z)({},"".concat(on,"-thumb-moving"),rt)),style:(0,C.Z)((0,C.Z)({},Mt),Le),onMouseDown:Hn}))}),$e=Ve,ue=20;function Me(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,le=A/we*A;return isNaN(le)&&(le=0),le=Math.max(le,ue),Math.floor(le)}var fe=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],bt=[],Dt={overflowY:"auto",overflowAnchor:"none"};function St(A,we){var le=A.prefixCls,V=le===void 0?"rc-virtual-list":le,re=A.className,de=A.height,Se=A.itemHeight,he=A.fullHeight,Re=he===void 0?!0:he,ne=A.style,Ye=A.data,ce=A.children,Ie=A.itemKey,Le=A.virtual,Ee=A.direction,Je=A.scrollWidth,U=A.component,rt=U===void 0?"div":U,He=A.onScroll,ct=A.onVirtualScroll,vt=A.onVisibleChange,rn=A.innerProps,Zt=A.extraRender,Ft=A.styles,Pt=A.showScrollBar,Xt=Pt===void 0?"optional":Pt,Yt=(0,P.Z)(A,fe),sn=N.useCallback(function(je){return typeof Ie=="function"?Ie(je):je==null?void 0:je[Ie]},[Ie]),Cn=ut(sn,null,null),un=(0,p.Z)(Cn,4),zn=un[0],Wn=un[1],pn=un[2],Ln=un[3],wn=!!(Le!==!1&&de&&Se),In=N.useMemo(function(){return Object.values(pn.maps).reduce(function(je,ze){return je+ze},0)},[pn.id,pn.maps]),xn=wn&&Ye&&(Math.max(Se*Ye.length,In)>de||!!Je),dn=Ee==="rtl",Nn=ye()(V,(0,j.Z)({},"".concat(V,"-rtl"),dn),re),Qt=Ye||bt,An=(0,N.useRef)(),Hn=(0,N.useRef)(),Sr=(0,N.useRef)(),pr=(0,N.useState)(0),on=(0,p.Z)(pr,2),Qe=on[0],Mt=on[1],g=(0,N.useState)(0),D=(0,p.Z)(g,2),W=D[0],d=D[1],h=(0,N.useState)(!1),x=(0,p.Z)(h,2),L=x[0],Q=x[1],B=function(){Q(!0)},$=function(){Q(!1)},se={getKey:sn};function ie(je){Mt(function(ze){var pt;typeof je=="function"?pt=je(ze):pt=je;var mt=jt(pt);return An.current.scrollTop=mt,mt})}var Fe=(0,N.useRef)({start:0,end:Qt.length}),M=(0,N.useRef)(),K=_(Qt,sn),Ke=(0,p.Z)(K,1),pe=Ke[0];M.current=pe;var Be=N.useMemo(function(){if(!wn)return{scrollHeight:void 0,start:0,end:Qt.length-1,offset:void 0};if(!xn){var je;return{scrollHeight:((je=Hn.current)===null||je===void 0?void 0:je.offsetHeight)||0,start:0,end:Qt.length-1,offset:void 0}}for(var ze=0,pt,mt,vn,Cr=Qt.length,Kn=0;Kn=Qe&&pt===void 0&&(pt=Kn,mt=ze),Mn>Qe+de&&vn===void 0&&(vn=Kn),ze=Mn}return pt===void 0&&(pt=0,mt=0,vn=Math.ceil(de/Se)),vn===void 0&&(vn=Qt.length-1),vn=Math.min(vn+1,Qt.length-1),{scrollHeight:ze,start:pt,end:vn,offset:mt}},[xn,wn,Qe,Qt,Ln,de]),Te=Be.scrollHeight,ft=Be.start,Y=Be.end,oe=Be.offset;Fe.current.start=ft,Fe.current.end=Y,N.useLayoutEffect(function(){var je=pn.getRecord();if(je.size===1){var ze=Array.from(je)[0],pt=Qt[ft];if(pt){var mt=sn(pt);if(mt===ze){var vn=pn.get(ze),Cr=vn-Se;ie(function(Kn){return Kn+Cr})}}}pn.resetRecord()},[Te]);var De=N.useState({width:0,height:de}),it=(0,p.Z)(De,2),_e=it[0],lt=it[1],_t=function(ze){lt({width:ze.offsetWidth,height:ze.offsetHeight})},Rt=(0,N.useRef)(),$t=(0,N.useRef)(),zt=N.useMemo(function(){return Me(_e.width,Je)},[_e.width,Je]),wt=N.useMemo(function(){return Me(_e.height,Te)},[_e.height,Te]),qt=Te-de,Ut=(0,N.useRef)(qt);Ut.current=qt;function jt(je){var ze=je;return Number.isNaN(Ut.current)||(ze=Math.min(ze,Ut.current)),ze=Math.max(ze,0),ze}var kt=Qe<=0,Lt=Qe>=qt,xt=W<=0,Wt=W>=Je,Et=b(kt,Lt,xt,Wt),fn=function(){return{x:dn?-W:W,y:Qe}},Nt=(0,N.useRef)(fn()),Ht=(0,y.useEvent)(function(je){if(ct){var ze=(0,C.Z)((0,C.Z)({},fn()),je);(Nt.current.x!==ze.x||Nt.current.y!==ze.y)&&(ct(ze),Nt.current=ze)}});function an(je,ze){var pt=je;ze?((0,ve.flushSync)(function(){d(pt)}),Ht()):ie(pt)}function Gt(je){var ze=je.currentTarget.scrollTop;ze!==Qe&&ie(ze),He==null||He(je),Ht()}var En=function(ze){var pt=ze,mt=Je?Je-_e.width:0;return pt=Math.max(pt,0),pt=Math.min(pt,mt),pt},Un=(0,y.useEvent)(function(je,ze){ze?((0,ve.flushSync)(function(){d(function(pt){var mt=pt+(dn?-je:je);return En(mt)})}),Ht()):ie(function(pt){var mt=pt+je;return mt})}),It=I(wn,kt,Lt,xt,Wt,!!Je,Un),st=(0,p.Z)(It,2),dt=st[0],en=st[1];Ge(wn,An,function(je,ze,pt,mt){var vn=mt;return Et(je,ze,pt)?!1:!vn||!vn._virtualHandled?(vn&&(vn._virtualHandled=!0),dt({preventDefault:function(){},deltaX:je?ze:0,deltaY:je?0:ze}),!0):!1}),G(xn,An,function(je){ie(function(ze){return ze+je})}),(0,Ce.Z)(function(){function je(pt){var mt=kt&&pt.detail<0,vn=Lt&&pt.detail>0;wn&&!mt&&!vn&&pt.preventDefault()}var ze=An.current;return ze.addEventListener("wheel",dt,{passive:!1}),ze.addEventListener("DOMMouseScroll",en,{passive:!0}),ze.addEventListener("MozMousePixelScroll",je,{passive:!1}),function(){ze.removeEventListener("wheel",dt),ze.removeEventListener("DOMMouseScroll",en),ze.removeEventListener("MozMousePixelScroll",je)}},[wn,kt,Lt]),(0,Ce.Z)(function(){if(Je){var je=En(W);d(je),Ht({x:je})}},[_e.width,Je]);var tn=function(){var ze,pt;(ze=Rt.current)===null||ze===void 0||ze.delayHidden(),(pt=$t.current)===null||pt===void 0||pt.delayHidden()},Vt=ee(An,Qt,pn,Se,sn,function(){return Wn(!0)},ie,tn);N.useImperativeHandle(we,function(){return{nativeElement:Sr.current,getScrollInfo:fn,scrollTo:function(ze){function pt(mt){return mt&&(0,J.Z)(mt)==="object"&&("left"in mt||"top"in mt)}pt(ze)?(ze.left!==void 0&&d(En(ze.left)),Vt(ze.top)):Vt(ze)}}}),(0,Ce.Z)(function(){if(vt){var je=Qt.slice(ft,Y+1);vt(je,Qt)}},[ft,Y,Qt]);var At=F(Qt,sn,pn,Se),ln=Zt==null?void 0:Zt({start:ft,end:Y,virtual:xn,offsetX:W,offsetY:oe,rtl:dn,getSize:At}),gn=nt(Qt,ft,Y,Je,W,zn,ce,se),mn=null;de&&(mn=(0,C.Z)((0,j.Z)({},Re?"height":"maxHeight",de),Dt),wn&&(mn.overflowY="hidden",Je&&(mn.overflowX="hidden"),L&&(mn.pointerEvents="none")));var Tn={};return dn&&(Tn.dir="rtl"),N.createElement("div",(0,E.Z)({ref:Sr,style:(0,C.Z)((0,C.Z)({},ne),{},{position:"relative"}),className:Nn},Tn,Yt),N.createElement(te.Z,{onResize:_t},N.createElement(rt,{className:"".concat(V,"-holder"),style:mn,ref:An,onScroll:Gt,onMouseEnter:tn},N.createElement(k,{prefixCls:V,height:Te,offsetX:W,offsetY:oe,scrollWidth:Je,onInnerResize:Wn,ref:Hn,innerProps:rn,rtl:dn,extra:ln},gn))),xn&&Te>de&&N.createElement($e,{ref:Rt,prefixCls:V,scrollOffset:Qe,scrollRange:Te,rtl:dn,onScroll:an,onStartMove:B,onStopMove:$,spinSize:wt,containerSize:_e.height,style:Ft==null?void 0:Ft.verticalScrollBar,thumbStyle:Ft==null?void 0:Ft.verticalScrollBarThumb,showScrollBar:Xt}),xn&&Je>_e.width&&N.createElement($e,{ref:$t,prefixCls:V,scrollOffset:W,scrollRange:Je,rtl:dn,onScroll:an,onStartMove:B,onStopMove:$,spinSize:zt,containerSize:_e.width,horizontal:!0,style:Ft==null?void 0:Ft.horizontalScrollBar,thumbStyle:Ft==null?void 0:Ft.horizontalScrollBarThumb,showScrollBar:Xt}))}var et=N.forwardRef(St);et.displayName="List";var Ot=et,at=Ot},16722:function(nn,xe,f){"use strict";f.d(xe,{Z:function(){return ye}});const E=te=>typeof te=="object"&&te!=null&&te.nodeType===1,J=(te,y)=>(!y||te!=="hidden")&&te!=="visible"&&te!=="clip",C=(te,y)=>{if(te.clientHeight{const ve=(Oe=>{if(!Oe.ownerDocument||!Oe.ownerDocument.defaultView)return null;try{return Oe.ownerDocument.defaultView.frameElement}catch(k){return null}})(N);return!!ve&&(ve.clientHeightOey||Oe>te&&k=y&&Xe>=Ce?Oe-te-N:k>y&&XeCe?k-y+ve:0,p=te=>{const y=te.parentElement;return y==null?te.getRootNode().host||null:y},P=(te,y)=>{var Ce,N,ve,Oe;if(typeof document=="undefined")return[];const{scrollMode:k,block:Xe,inline:nt,boundary:Ze,skipOverflowHiddenElements:tt}=y,_=typeof Ze=="function"?Ze:$e=>$e!==Ze;if(!E(te))throw new TypeError("Invalid target");const Z=document.scrollingElement||document.documentElement,S=[];let c=te;for(;E(c)&&_(c);){if(c=p(c),c===Z){S.push(c);break}c!=null&&c===document.body&&C(c)&&!C(document.documentElement)||c!=null&&C(c,tt)&&S.push(c)}const b=(N=(Ce=window.visualViewport)==null?void 0:Ce.width)!=null?N:innerWidth,I=(Oe=(ve=window.visualViewport)==null?void 0:ve.height)!=null?Oe:innerHeight,{scrollX:F,scrollY:R}=window,{height:be,width:We,top:Ae,right:me,bottom:ut,left:ke}=te.getBoundingClientRect(),{top:Ge,right:ae,bottom:H,left:G}=($e=>{const ue=window.getComputedStyle($e);return{top:parseFloat(ue.scrollMarginTop)||0,right:parseFloat(ue.scrollMarginRight)||0,bottom:parseFloat(ue.scrollMarginBottom)||0,left:parseFloat(ue.scrollMarginLeft)||0}})(te);let q=Xe==="start"||Xe==="nearest"?Ae-Ge:Xe==="end"?ut+H:Ae+be/2-Ge+H,ee=nt==="center"?ke+We/2-G+ae:nt==="end"?me+ae:ke-G;const Ve=[];for(let $e=0;$e=0&&ke>=0&&ut<=I&&me<=b&&(ue===Z&&!C(ue)||Ae>=bt&&ut<=St&&ke>=et&&me<=Dt))return Ve;const Ot=getComputedStyle(ue),at=parseInt(Ot.borderLeftWidth,10),A=parseInt(Ot.borderTopWidth,10),we=parseInt(Ot.borderRightWidth,10),le=parseInt(Ot.borderBottomWidth,10);let V=0,re=0;const de="offsetWidth"in ue?ue.offsetWidth-ue.clientWidth-at-we:0,Se="offsetHeight"in ue?ue.offsetHeight-ue.clientHeight-A-le:0,he="offsetWidth"in ue?ue.offsetWidth===0?0:fe/ue.offsetWidth:0,Re="offsetHeight"in ue?ue.offsetHeight===0?0:Me/ue.offsetHeight:0;if(Z===ue)V=Xe==="start"?q:Xe==="end"?q-I:Xe==="nearest"?j(R,R+I,I,A,le,R+q,R+q+be,be):q-I/2,re=nt==="start"?ee:nt==="center"?ee-b/2:nt==="end"?ee-b:j(F,F+b,b,at,we,F+ee,F+ee+We,We),V=Math.max(0,V+R),re=Math.max(0,re+F);else{V=Xe==="start"?q-bt-A:Xe==="end"?q-St+le+Se:Xe==="nearest"?j(bt,St,Me,A,le+Se,q,q+be,be):q-(bt+Me/2)+Se/2,re=nt==="start"?ee-et-at:nt==="center"?ee-(et+fe/2)+de/2:nt==="end"?ee-Dt+we+de:j(et,Dt,fe,at,we+de,ee,ee+We,We);const{scrollLeft:ne,scrollTop:Ye}=ue;V=Re===0?0:Math.max(0,Math.min(Ye+V/Re,ue.scrollHeight-Me/Re+Se)),re=he===0?0:Math.max(0,Math.min(ne+re/he,ue.scrollWidth-fe/he+de)),q+=Ye-V,ee+=ne-re}Ve.push({el:ue,top:V,left:re})}return Ve},T=te=>te===!1?{block:"end",inline:"nearest"}:(y=>y===Object(y)&&Object.keys(y).length!==0)(te)?te:{block:"start",inline:"nearest"};function ye(te,y){if(!te.isConnected||!(ve=>{let Oe=ve;for(;Oe&&Oe.parentNode;){if(Oe.parentNode===document)return!0;Oe=Oe.parentNode instanceof ShadowRoot?Oe.parentNode.host:Oe.parentNode}return!1})(te))return;const Ce=(ve=>{const Oe=window.getComputedStyle(ve);return{top:parseFloat(Oe.scrollMarginTop)||0,right:parseFloat(Oe.scrollMarginRight)||0,bottom:parseFloat(Oe.scrollMarginBottom)||0,left:parseFloat(Oe.scrollMarginLeft)||0}})(te);if((ve=>typeof ve=="object"&&typeof ve.behavior=="function")(y))return y.behavior(P(te,y));const N=typeof y=="boolean"||y==null?void 0:y.behavior;for(const{el:ve,top:Oe,left:k}of P(te,T(y))){const Xe=Oe-Ce.top+Ce.bottom,nt=k-Ce.left+Ce.right;ve.scroll({top:Xe,left:nt,behavior:N})}}}}]);